This is the mail archive of the 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" <> 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 that changed.  The current version says:

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

>> 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
Red Hat GCC Developer                  aoliva@{,}
CS PhD student at IC-Unicamp        oliva@{,}
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]