atom feed6 messages in org.freebsd.freebsd-currenta gcc3.1 bug ?
FromSent OnAttachments
Huang wen huiJul 27, 2002 11:39 pm 
Szilveszter AdamJul 28, 2002 12:47 am 
Bill Huey (Hui)Jul 28, 2002 2:45 am 
Bill Huey (Hui)Jul 28, 2002 3:10 am 
Greg LewisJul 28, 2002 9:12 am 
Bill Huey (Hui)Jul 28, 2002 4:20 pm 
Subject:a gcc3.1 bug ?
From:Huang wen hui (hw@mail.gddsn.org.cn)
Date:Jul 27, 2002 11:39:53 pm
List:org.freebsd.freebsd-current

hi,

I used gcc3.1 from ports to compile jdk1.3.1-p7 hotspot, I got problem in compiing /usr/src/lib/libc_r/uthread/pthread_private.h :

------------------------------------------------------------------------------------------------------------------------------------------------------------------------- /* Default thread attributes: */ SCLASS struct pthread_attr pthread_attr_default <--------------------------947 #ifdef GLOBAL_PTHREAD_PRIVATE = { SCHED_RR, 0, TIMESLICE_USEC, PTHREAD_DEFAULT_PRIORITY, PTHREAD_CREATE_RUNNING, PTHREAD_CREATE_JOINABLE, NULL, NULL, NULL, PTHREAD_STACK_DEFAULT, -1 }; #else ; #endif

/* Default mutex attributes: */ SCLASS struct pthread_mutex_attr pthread_mutexattr_default #ifdef GLOBAL_PTHREAD_PRIVATE = { PTHREAD_MUTEX_DEFAULT, PTHREAD_PRIO_NONE, 0, 0 }; #else ; #endif

/* Default condition variable attributes: */ SCLASS struct pthread_cond_attr pthread_condattr_default #ifdef GLOBAL_PTHREAD_PRIVATE = { COND_TYPE_FAST, 0 }; #else ; #endif

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Compiling /usr/ports/java/jdk13/work/hotspot1.3.1/build/linux/../../src/os_cpu/linux_i486/vm/os_linux_i486.cpp In file included from /usr/ports/java/jdk13/work/hotspot1.3.1/src/os_cpu/linux_i486/vm/os_linux_i486.cpp:41: /usr/src/lib/libc_r/uthread/pthread_private.h:947: parse error before `__null' /usr/src/lib/libc_r/uthread/pthread_private.h:957: parse error before `__null' /usr/src/lib/libc_r/uthread/pthread_private.h:965: parse error before `__null' gmake[2]: *** [os_linux_i486.o] Error 1 gmake[2]: Leaving directory `/usr/ports/java/jdk13/work/hotspot1.3.1/build/linux/linux_i486_core/jvmg' gmake[1]: *** [the_vm] Error 2 gmake[1]: Leaving directory `/usr/ports/java/jdk13/work/hotspot1.3.1/build/linux/linux_i486_core/jvmg' gmake: *** [jvmgcore] Error 2

but if I change " pthread_attr pthread_attr_default " to other name, the compiler will pass.

Does gcc31 have bug ?

--hwh

To Unsubscribe: send mail to majo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message