atom feed6 messages in org.freebsd.freebsd-currentRe: a 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:Re: a gcc3.1 bug ?
From:Bill Huey (Hui) (bil@gnuppy.monkey.org)
Date:Jul 28, 2002 3:10:39 am
List:org.freebsd.freebsd-current

On Sun, Jul 28, 2002 at 02:40:15PM +0800, Huang wen hui wrote:

/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' ...

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

Does gcc31 have bug ?

"Revisited"

Do it like this:

#undef pthread_attr_default #undef pthread_mutexattr_default #undef pthread_condattr_default

#include <uthread/pthread_private.h>

before the header files is included.

I'm a bit surprised that my changes to those source files (HotSpot) weren't included in the latest release. Building it otherwise is just going to be pure hell.

bill

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