This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

c/3076: gcc 2.96 (or 3.0) -ANSI does not work right



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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]