From: David Anderson <davea@quasar.engr.sgi.com>
To: gdb-patches@sources.redhat.com
Subject: Re: [RFA] gdb.base/shr1.c: Avoid preprocessor conflict on IRIX
Date: Mon, 29 Jul 2002 23:52:00 -0000 [thread overview]
Message-ID: <200207300332.UAA48966@quasar.engr.sgi.com> (raw)
Kevin Buettner <kevinb@redhat.com> writes:
>Another Irix change. I don't really like this change; I played around
>with compiler options in an attempt to avoid changing the source code,
>but the only one that I came up with which might work is -Usgi. But
>that's dangerous because there may be a system header which depends upon
>``sgi''.
No IRIX header (as distinct from
user-written headers) should be standards-correct and
depend on 'sgi' as it's clearly in the user namespace.
Unfortunately a check thru some IRIX headers finds a few
such broken headers :-(
These are not things most apps would #include
as they go into areas not covered by existing standards.
Otherwise someone would have cleaned them up.
./netns/idp_var.h:#ifdef sgi
./netns/ns_pcb.h:#ifdef sgi
./netns/ns.h:#ifdef sgi
./netns/spp_var.h:#ifdef sgi
./netns/ns_error.h:#ifdef sgi
./netns/spp_timer.h:#ifdef sgi
./netns/ns_if.h:#ifdef sgi
./resolv.h:#if ((!defined(BSD)) || (BSD < 199306)) && !defined(sgi)
./arpa/nameser.h
In nearly all of these 'sgi' has no effect unless 'KERNEL'
is also #defined.
In the other ones the effect on gdb test cases should also be nil.
Normally 'sgi' is defined because it was defined before the
C Standard rules came into effect in 1989.
-Usgi seems perfectly sensible to me on IRIX, for compiling
most test code (as long as the test code is not *looking* for -Dsgi :-)
though given what I just discovered your caution is sensible.
But still I think -Usgi would be fine (untested assertion
on my part).
Sign me a little embarrassed: I would not have thought we
still had any such cruft laying around.
David B. Anderson davea@sgi.com http://reality.sgiweb.org/davea
next reply other threads:[~2002-07-30 3:33 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-29 23:52 David Anderson [this message]
-- strict thread matches above, loose matches on Subject: below --
2002-07-29 16:36 Kevin Buettner
2002-07-30 8:32 ` Andrew Cagney
2002-07-30 11:27 ` Kevin Buettner
2002-08-26 18:39 ` Michael Snyder
2002-12-03 7:59 ` Fernando Nasser
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200207300332.UAA48966@quasar.engr.sgi.com \
--to=davea@quasar.engr.sgi.com \
--cc=gdb-patches@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox