Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Mar 2002 10:06:49 -0800 (PST)
From:      Matthew Dillon <dillon@apollo.backplane.com>
To:        "M. Warner Losh" <imp@village.org>
Cc:        philip@sduwebship.student.umd.edu, freebsd-questions@FreeBSD.ORG, current@FreeBSD.ORG
Subject:   Re: 5.0-CURRENT makebuild world fails
Message-ID:  <200203041806.g24I6nb69758@apollo.backplane.com>
References:  <E16hQ8o-0003kX-00@falcon.prod.itd.earthlink.net> <20020303023045.E93659-100000@sduwebship.student.umd.edu> <20020303.143027.105075680.imp@village.org>

next in thread | previous in thread | raw e-mail | index | archive | help

:In message: <20020303023045.E93659-100000@sduwebship.student.umd.edu>
:            "Philip M. Gollucci" <philip@sduwebship.student.umd.edu> writes:
:: cc -O2 -Wall -pipe -pedantic -ansi -march=pentiumpro -elf -Wall
:: -fkeep-inline-functions  -I/usr/src/lib/csu/i386-elf/../common  -c
:: /usr/src/lib/csu/i386-elf/crt1.c:70: warning: ANSI C forbids braced-groups
:: within expressions
:: cc: Internal compiler error: program cc1 got fatal signal 11
:
:Looks like the C compiler really didn't like the braced-groups within
:expressions.
:
:#define get_rtld_cleanup()				\
:    ({ fptr __value;					\
:       __asm__("movl %%edx,%0" : "=rm"(__value));	\
:       __value; })
:...
:    rtld_cleanup = get_rtld_cleanup();
:yet both of these parts of this file hasn't been changed since 1998!
:
:appears to be the real reason since this file is compiled -ansi
:-pedantic.  And it would appear on the surface to still be a problem.
:However, it looks like my version isn't compiling it -ansi -pedantic:
:
:cc -O -pipe  -elf -Wall -fkeep-inline-functions
:-I/dell/imp/FreeBSD/src/lib/csu/i386-elf/../common  -DGCRT -c -o
:gcrt1.o /dell/imp/FreeBSD/src/lib/csu/i386-elf/crt1.c
:
:So something really strange is going on, but I'm not sure what.
:
:Warner

    I always like to say that these things are "Illegal everywhere except
    in GCC on a sunny Sunday".

    This is a misfeature in GCC.  Like dynamically sized arrays declared
    on the stack (which to my horror I actually use sometimes) or dynamic
    braced auto initializers (which I don't).  

    It would be best to cleanup instances of these when we come across them.

					-Matt
					Matthew Dillon 
					<dillon@backplane.com>

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200203041806.g24I6nb69758>