This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: sparc-sun-solaris2.10 and pthread.h fixinclude
- From: "Bruce Korb" <bkorb at gnu dot org>
- To: ctalk at ctalklang dot org, "GCC Patches" <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 23 Jun 2008 08:38:25 -0700
- Subject: Re: sparc-sun-solaris2.10 and pthread.h fixinclude
- References: <E1KAnga-0002Z3-Uo@opti1.gateway.2wire.net>
Hi Robert,
Yep, you've contacted the right person. I'm at my day job, so it might
be a few days before I can poke around. Meanwhile:
> Fixed: pixrect/memvar.h
> sed: command garbled:
/define[ ]\+PTHREAD_MUTEX_INITIALIZER[ ]*\\/,+1s/{ { 0, } }/{ { 0,
0, 0, 0, 0, 0 } }/
That does look garbled. Please examine the "fixincl.x" and inclhack.def files
and see if you can see anything. That sed command should be:
/<line-selection-pattern>/s/<original>/<replacement>/
and I do not see the end-of-line-selection-pattern slash.
> sys/stat.h /export/home/gccb/gcc-4.3-20080619/fixincludes/tests/base/sys/stat.h differ: char 432, line 18
> *** sys/stat.h Mon Jun 23 11:02:10 2008
> --- /export/home/gccb/gcc-4.3-20080619/fixincludes/tests/base/sys/stat.h Mon Mar 26 09:25:26 2007
> ***************
> *** 15,23 ****
>
>
> #if defined( GLIBC_C99_INLINE_2_CHECK )
> - extern int fstat64 (int __fd, struct stat64 *__buf) __THROW __nonnull ((2));
> #ifdef __GNUC_GNU_INLINE__
> extern
> #endif
> __inline__ int
> __NTH (fstat64 (int __fd, struct stat64 *__statbuf))
> --- 15,26 ----
>
>
> #if defined( GLIBC_C99_INLINE_2_CHECK )
> #ifdef __GNUC_GNU_INLINE__
> extern
> + #endif
> + __inline__ int fstat64 (int __fd, struct stat64 *__buf) __THROW __nonnull ((2));
> + #ifdef __GNUC_GNU_INLINE__
> + extern
> #endif
> __inline__ int
> __NTH (fstat64 (int __fd, struct stat64 *__statbuf))
> ./check.sh[2157]: syntax error at line 2157 : `then' unmatched
> make: *** [check] Error 2
Somewhere in inclhack.def, there is a fix named "glibc_c99_inline_2".
It did not fire properly. That will need to be debugged.
Thank you for your report.
Regards, Bruce