From: Michael Snyder <msnyder@redhat.com>
To: Kevin Buettner <kevinb@redhat.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [RFA] gdb.base/shr1.c: Avoid preprocessor conflict on IRIX
Date: Mon, 26 Aug 2002 18:39:00 -0000 [thread overview]
Message-ID: <3D6AD6F4.7CCADBB3@redhat.com> (raw)
In-Reply-To: <1020729232427.ZM11833@localhost.localdomain>
Kevin Buettner wrote:
>
> 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''.
>
> So, I relunctantly submit the following patch for approval...
>
> * gdb.base/shr1.c (sgi): Rename to sgi_ to avoid conflict with
> implicit -Dsgi on Irix systems.
Kevin, did anyone reply?
I think this change is OK -- sgi was wrong to clobber this legal
identifier.
> Index: testsuite/gdb.base/shr1.c
> ===================================================================
> RCS file: /cvs/src/src/gdb/testsuite/gdb.base/shr1.c,v
> retrieving revision 1.1.1.2
> diff -u -p -r1.1.1.2 shr1.c
> --- testsuite/gdb.base/shr1.c 28 Jun 1999 16:04:00 -0000 1.1.1.2
> +++ testsuite/gdb.base/shr1.c 29 Jul 2002 22:28:00 -0000
> @@ -4,7 +4,7 @@
> typedef float f;
>
> float sg = 5.5;
> -int sgi = 2;
> +int sgi_ = 2;
> static int sgs = 7;
>
> #ifdef PROTOTYPES
> @@ -23,7 +23,7 @@ int x;
> }
> mumble = 7.7;
> sg = 6.6;
> - sgi++;
> + sgi_++;
> sgs = 8;
> printf("address of sgs is 0x%x\n", &sgs);
> return 2*x;
next prev parent reply other threads:[~2002-08-27 1:33 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2002-12-03 7:59 ` Fernando Nasser
2002-07-29 23:52 David Anderson
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=3D6AD6F4.7CCADBB3@redhat.com \
--to=msnyder@redhat.com \
--cc=gdb-patches@sources.redhat.com \
--cc=kevinb@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