This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Problem building libiberty
- To: gcc-bugs at gcc dot gnu dot org
- Subject: Re: Problem building libiberty
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Fri, 16 Jun 2000 11:43:28 -0400 (EDT)
> From: Mark Kettenis <kettenis@wins.uva.nl>
>
> Hi Kaveh,
>
> The following change:
>
> 2000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
>
> * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
> __extension__.
>
> causes a problem building libiberty on rs6000-ibm-aix3.2.5 with gcc 2.7.2:
>
> gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I/home/kettenis/CVS/src/libiberty/../include
> -W -Wall -Wtraditional -pedantic /home/kettenis/CVS/src/libiberty/mkstemps.c
> /home/kettenis/CVS/src/libiberty/mkstemps.c:42: parse error before `__extension__'
>
> I noticed the problem when building GDB (our libiberty was just resynced
> with GCC), but I'm pretty sure the same problem exists in GCC's master
> copy. Obviously a bug in gcc 2.7.2, but introducing a hard error to
> avoid a warning defeats its purpose a bit :-(.
> Mark
If you also resync the include dir (specifically include/ansidecl.h,)
that should fix it.
--
Kaveh R. Ghazi Engagement Manager / Project Services
ghazi@caip.rutgers.edu Qwest Internet Solutions