This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: (Broken) stdint.h support for FreeBSD
- From: Dave Korn <dave dot korn dot cygwin at googlemail dot com>
- To: Gerald Pfeifer <gerald at pfeifer dot com>
- Cc: gcc-patches at gcc dot gnu dot org, "Loren J. Rittle" <ljrittle at acm dot org>, "Joseph S. Myers" <joseph at codesourcery dot com>
- Date: Sat, 30 May 2009 12:35:40 +0100
- Subject: Re: (Broken) stdint.h support for FreeBSD
- References: <alpine.LSU.1.99.0905301228570.24313@acrux.dbai.tuwien.ac.at>
Gerald Pfeifer wrote:
> As I had promised, here is a patch to add stdint.h support for FreeBSD.
> The tree has been a bit shaky when I originally developed this, but sadly
> even now that everything else is stable, bootstrap still fails for me:
>
> checking for suffix of object files... configure: error: in
> `/usr/nabil-files/pfeifer/OBJ-0530-1137/i386-unknown-freebsd7.1/libgcc':
> configure: error: cannot compute suffix of object files: cannot compile
> See `config.log' for more details.
> gmake[2]: *** [configure-stage1-target-libgcc] Error 1
> gmake[2]: Leaving directory `/usr/nabil-files/pfeifer/OBJ-0530-1137'
>
> What happens here is that $OBJDIR/./cc1 segfaults. I have a hunch I
> must be missing the obvious. :-( Does any of you see what might be
> wrong here?
A stack trace? ;-)
If it's a segv in c_common_nodes_and_builtins, that means that one of the
name strings you defined in freebsd-stdint.h doesn't match against any of the
predefined types instantiated at the top of that function. Note that it's a
simple string match, so ordering of "(un)signed" and "long/short" must be
identical; it's not parsed to be c-type-semantics aware.
cheers,
DaveK