c/2896: -std=foo gives error message twice

Joseph Myers jsm28@cam.ac.uk
Tue May 22 01:26:00 GMT 2001


>Number:         2896
>Category:       c
>Synopsis:       -std=foo gives error message twice
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue May 22 01:26:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Joseph S. Myers
>Release:        3.0 20010521 (prerelease)
>Organization:
none
>Environment:
System: Linux digraph 2.2.19 #1 Wed Mar 28 16:01:38 UTC 2001 i686 unknown
Architecture: i686

	
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: ../gcc-3cvs/configure --prefix=/opt/gcc/snapshot --disable-shared --enable-threads=posix --with-system-zlib
>Description:

Giving an unknown standard to -std causes an error message to appear
twice.  This is a regression from 2.95.3, where it only appeared once,
but sufficiently cosmetic that I haven't marked this PR as "high".

>How-To-Repeat:

$ >t.c
$ egcc -c -o /dev/null -std=foo t.c
cc1: unknown C standard `foo'
cc1: unknown C standard `foo'
$ egcc -v
Reading specs from /opt/gcc/snapshot/lib/gcc-lib/i686-pc-linux-gnu/3.0/specs
Configured with: ../gcc-3cvs/configure --prefix=/opt/gcc/snapshot --disable-shared --enable-threads=posix --with-system-zlib
Thread model: posix
gcc version 3.0 20010521 (prerelease)
$ gcc -c -o /dev/null -std=foo t.c
cc1: unknown C standard `foo'
$ gcc -v                          
Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/specs
gcc version 2.95.3 20010315 (release)
$ 

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the Gcc-prs mailing list