* [PATCH] Remove UINT_MAX undef from powerpc/xm-aix.h
@ 2004-08-12 5:09 Joel Brobecker
2004-08-12 11:47 ` Michael Chastain
0 siblings, 1 reply; 4+ messages in thread
From: Joel Brobecker @ 2004-08-12 5:09 UTC (permalink / raw)
To: Peter Schauer, Kevin Buettner; +Cc: gdb-patches
[-- Attachment #1: Type: text/plain, Size: 539 bytes --]
Re: http://sources.redhat.com/ml/gdb-patches/2004-08/msg00428.html
I have committed the following change. I tested this change by checking
visually that the value defined by the system is identical to the value
provided by GDB. I also tested it by running the testsuite on both
AIX 4.3.2 and 5.1. No regression.
2004-08-11 Joel Brobecker <brobecker@gnat.com>
* config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
If it turns out that we need this on a certain system, I will fix the
problem in directly in configure.
--
Joel
[-- Attachment #2: xm.diff --]
[-- Type: text/plain, Size: 714 bytes --]
Index: xm-aix.h
===================================================================
RCS file: /cvs/src/src/gdb/config/powerpc/xm-aix.h,v
retrieving revision 1.5
diff -u -p -r1.5 xm-aix.h
--- xm-aix.h 11 Aug 2004 22:28:33 -0000 1.5
+++ xm-aix.h 12 Aug 2004 04:59:39 -0000
@@ -18,9 +18,3 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
-
-/* UINT_MAX is defined in <sys/limits.h> as a decimal constant (4294967295)
- which is too large to fit in a signed int when it is parsed by the
- compiler, so it issues a diagnostic. Just undef it here so that we
- use gdb's version in defs.h */
-#undef UINT_MAX
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Remove UINT_MAX undef from powerpc/xm-aix.h
2004-08-12 5:09 [PATCH] Remove UINT_MAX undef from powerpc/xm-aix.h Joel Brobecker
@ 2004-08-12 11:47 ` Michael Chastain
2004-08-12 12:56 ` Daniel Jacobowitz
2004-08-12 15:07 ` Joel Brobecker
0 siblings, 2 replies; 4+ messages in thread
From: Michael Chastain @ 2004-08-12 11:47 UTC (permalink / raw)
To: Peter.Schauer, kevinb, brobecker; +Cc: gdb-patches
Joel Brobecker <brobecker@gnat.com> wrote:
> I also tested it by running the testsuite on both AIX 4.3.2 and 5.1.
What compiler are you using to build gdb: gcc, or some IBM compiler,
or both?
Just looking at the comment, I suspect that the #undef was there
to work around a compiler warning from some IBM compiler.
Michael C
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Remove UINT_MAX undef from powerpc/xm-aix.h
2004-08-12 11:47 ` Michael Chastain
@ 2004-08-12 12:56 ` Daniel Jacobowitz
2004-08-12 15:07 ` Joel Brobecker
1 sibling, 0 replies; 4+ messages in thread
From: Daniel Jacobowitz @ 2004-08-12 12:56 UTC (permalink / raw)
To: Michael Chastain; +Cc: Peter.Schauer, kevinb, brobecker, gdb-patches
On Thu, Aug 12, 2004 at 07:46:32AM -0400, Michael Chastain wrote:
> Joel Brobecker <brobecker@gnat.com> wrote:
> > I also tested it by running the testsuite on both AIX 4.3.2 and 5.1.
>
> What compiler are you using to build gdb: gcc, or some IBM compiler,
> or both?
>
> Just looking at the comment, I suspect that the #undef was there
> to work around a compiler warning from some IBM compiler.
GCC would generate the same warning; it would be a bug in the AIX
system headers for some old AIX.
--
Daniel Jacobowitz
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Remove UINT_MAX undef from powerpc/xm-aix.h
2004-08-12 11:47 ` Michael Chastain
2004-08-12 12:56 ` Daniel Jacobowitz
@ 2004-08-12 15:07 ` Joel Brobecker
1 sibling, 0 replies; 4+ messages in thread
From: Joel Brobecker @ 2004-08-12 15:07 UTC (permalink / raw)
To: Michael Chastain; +Cc: Peter.Schauer, kevinb, gdb-patches
> What compiler are you using to build gdb: gcc, or some IBM compiler,
> or both?
Just for the record, I'm using GCC.
--
Joel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-08-12 15:07 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-12 5:09 [PATCH] Remove UINT_MAX undef from powerpc/xm-aix.h Joel Brobecker
2004-08-12 11:47 ` Michael Chastain
2004-08-12 12:56 ` Daniel Jacobowitz
2004-08-12 15:07 ` Joel Brobecker
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox