public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c/3076: gcc 2.96 (or 3.0) -ANSI does not work right
@ 2001-06-07 23:09 neil
  0 siblings, 0 replies; 3+ messages in thread
From: neil @ 2001-06-07 23:09 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, tony_hsu

Synopsis: gcc 2.96 (or 3.0) -ANSI does not work right

State-Changed-From-To: open->closed
State-Changed-By: neil
State-Changed-When: Thu Jun  7 23:09:49 2001
State-Changed-Why:
    Not a bug.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3076&database=gcc


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: c/3076: gcc 2.96 (or 3.0) -ANSI does not work right
@ 2001-06-07 16:36 Zack Weinberg
  0 siblings, 0 replies; 3+ messages in thread
From: Zack Weinberg @ 2001-06-07 16:36 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR c/3076; it has been noted by GNATS.

From: "Zack Weinberg" <zackw@stanford.edu>
To: tony_hsu@amdahl.com
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: c/3076: gcc 2.96 (or 3.0) -ANSI does not work right
Date: Thu, 7 Jun 2001 16:34:35 -0700

 On Thu, Jun 07, 2001 at 05:55:18PM -0000, tony_hsu@amdahl.com wrote:
 
 > >Synopsis:       gcc 2.96 (or 3.0) -ANSI does not work right
 ...
 
 > $ gcc -ANSI t.c
 > 
 > Under 2.96 + RedHat7.0 + Intel PIII
 > Internal error: Segmentation fault (program cpp0)
 > 
 > Under CodeSourcery's OnLine TestCompilation
 > : missing '(' after predicate
 
 GCC's command line options are case sensitive.  The option you are
 trying to use is spelled -ansi; however, we encourage the use of the
 -std option instead (-std=c89 for the 1989 C standard, -std=c99 for
 the 1999 revision).
 
 -ANSI is interpreted as a use of the -A option with an invalid
 argument. "missing '(' after predicate" is a correct, although
 unhelpful, error message.
 
 Red Hat's 2.96 crashes because of a bug that was fixed a long time ago
 in the official source tree.  GCC 3.0 (as you saw from the online test
 compilation form) will not crash.  2.95.x also does not crash.  You
 should report this crash to Red Hat; we cannot fix bugs in their
 version of the compiler.
 
 [Could someone please close this bug report?  I do not have GNATS
 write privileges.]
 
 zw


^ permalink raw reply	[flat|nested] 3+ messages in thread

* c/3076: gcc 2.96 (or 3.0) -ANSI does not work right
@ 2001-06-07 10:56 tony_hsu
  0 siblings, 0 replies; 3+ messages in thread
From: tony_hsu @ 2001-06-07 10:56 UTC (permalink / raw)
  To: gcc-gnats

>Number:         3076
>Category:       c
>Synopsis:       gcc 2.96 (or 3.0) -ANSI does not work right
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jun 07 10:56:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Tony Hsu
>Release:        2.96 20000731 or 3.0 20010607
>Organization:
>Environment:
RedHat 7.0 w/ Intel Pentium III

or 

CodeSourcery's OnLine TestCompilation
>Description:
$ gcc -ANSI t.c

Under 2.96 + RedHat7.0 + Intel PIII
Internal error: Segmentation fault (program cpp0)

Under CodeSourcery's OnLine TestCompilation
: missing '(' after predicate

>How-To-Repeat:
$ cat t.c 
main()
{
}

$ gcc -ANSI t.c  

(or any .c file)
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/plain; name="report.txt"
Content-Disposition: inline; filename="report.txt"

$ gcc -v -save-temps -ANSI t.c
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.0)
 /usr/lib/gcc-lib/i386-redhat-linux/2.96/cpp0 -lang-c -v -ANSI -D__GNUC__=2 -D__GNUC_MINOR__=96 -D__GNUC_PATCHLEVEL__=0 -D__ELF__ -Dunix -Dlinux -D__ELF__ -D__unix__ -D__linux__ -D__unix -D__linux -Asystem(posix) -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -D__tune_i386__ d1e5.c d1e5.i
GNU CPP version 2.96 20000731 (Red Hat Linux 7.0) (cpplib)
 (i386 Linux/ELF)
ignoring nonexistent directory "/usr/local/include"
ignoring nonexistent directory "/usr/i386-redhat-linux/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/lib/gcc-lib/i386-redhat-linux/2.96/include
 /usr/include
End of search list.
gcc: Internal error: Segmentation fault (program cpp0)
Please submit a full bug report.
See <URL: http://www.gnu.org/software/gcc/bugs.html > for instructions.

$ cat t.c
main()
{
}

*** Note ***
The size of t.i is 0 byte.   



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-06-07 23:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-07 23:09 c/3076: gcc 2.96 (or 3.0) -ANSI does not work right neil
  -- strict thread matches above, loose matches on Subject: below --
2001-06-07 16:36 Zack Weinberg
2001-06-07 10:56 tony_hsu

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).