public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: preprocessor/3824: With -traditional, CPP 0xffffffff > 0 but C 0xffffffff < 0
@ 2001-08-05 14:43 neil
0 siblings, 0 replies; 3+ messages in thread
From: neil @ 2001-08-05 14:43 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, h.b.furuseth, neil
Synopsis: With -traditional, CPP 0xffffffff > 0 but C 0xffffffff < 0
State-Changed-From-To: analyzed->closed
State-Changed-By: neil
State-Changed-When: Sun Aug 5 14:43:00 2001
State-Changed-Why:
Fixed.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3824&database=gcc
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: preprocessor/3824: With -traditional, CPP 0xffffffff > 0 but C 0xffffffff < 0
@ 2001-08-05 11:23 neil
0 siblings, 0 replies; 3+ messages in thread
From: neil @ 2001-08-05 11:23 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, h.b.furuseth, neil, nobody
Synopsis: With -traditional, CPP 0xffffffff > 0 but C 0xffffffff < 0
Responsible-Changed-From-To: unassigned->neil
Responsible-Changed-By: neil
Responsible-Changed-When: Sun Aug 5 11:23:58 2001
Responsible-Changed-Why:
Patch in progress (for 3.1).
State-Changed-From-To: open->analyzed
State-Changed-By: neil
State-Changed-When: Sun Aug 5 11:23:58 2001
State-Changed-Why:
Confirmed as a bug.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3824&database=gcc
^ permalink raw reply [flat|nested] 3+ messages in thread
* preprocessor/3824: With -traditional, CPP 0xffffffff > 0 but C 0xffffffff < 0
@ 2001-07-25 14:06 h.b.furuseth
0 siblings, 0 replies; 3+ messages in thread
From: h.b.furuseth @ 2001-07-25 14:06 UTC (permalink / raw)
To: gcc-gnats
>Number: 3824
>Category: preprocessor
>Synopsis: With -traditional, CPP 0xffffffff > 0 but C 0xffffffff < 0
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: wrong-code
>Submitter-Id: net
>Arrival-Date: Wed Jul 25 14:06:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Hallvard B Furuseth
>Release: 3.0
>Organization:
>Environment:
System: SunOS bombur.uio.no 5.8 Generic_108528-03 sun4u sparc SUNW,Ultra-5_10
Architecture: sun4
host: sparc-sun-solaris2.8
build: sparc-sun-solaris2.8
target: sparc-sun-solaris2.8
configured with: ./configure --quiet --enable-version-specific-runtime-libs --prefix=/usit/bombur/hbf --program-suffix=-3.0
>Description:
With gcc -traditional and 32-bit int/long,
0xffffffff is positive in the preprocessor but negative in C.
>How-To-Repeat:
bash$ cat a.c
extern int puts();
int main()
{
#if 0xffffffff < 0
puts("cpp:negative");
#else
puts("cpp:positive");
#endif
puts(0xffffffff < 0 ? "c:negative" : "c:positive");
return 0;
}
bash$ gcc3 -traditional a.c && ./a.out
cpp:positive
c:negative
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-08-05 14:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-05 14:43 preprocessor/3824: With -traditional, CPP 0xffffffff > 0 but C 0xffffffff < 0 neil
-- strict thread matches above, loose matches on Subject: below --
2001-08-05 11:23 neil
2001-07-25 14:06 h.b.furuseth
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).