This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: PATCH: Support the FreeBSD 5.0 system thread library model


On May 12, 2001, "David O'Brien" <obrien@FreeBSD.org> wrote:

> On Sat, May 12, 2001 at 07:14:07AM -0300, Alexandre Oliva wrote:
>> > Is there anyway to get "#define FBSD_MAJOR 5"?
>> 
>> xm_defines='FBSD_MAJOR=5'

> Not unless the C standard has changed: ;-)

It was mkconfig.sh that changed.  The current version says:

for def in $DEFINES; do
    echo "#ifndef $def" | sed 's/=.*//'
    echo "# define $def" | sed 's/=/ /'
    echo "#endif"
done

>> I think you'd be better off introducing a new header file, even if
>> to define only `FBSD_MAJOR 5' in it.

> I'm about to resign myself to that. :-(

Here's an ugly idea: append ' TARGET_FBSD_MAJOR=5' to host_xm_defines
in the FreeBSD case iff $pass2done = yes.

Hm, no, it still won't work, because this will be defined after
freebsd.h is included.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]