* [Bug c/11459] -stdc=c90 -pedantic -ansi warns about C90's non long-long support when in C99 mode
2003-07-08 4:56 [Bug c/11459] New: -stdc=c90 -pedantic warns about C90's non long-long support when in C99 mode debian-gcc at lists dot debian dot org
@ 2003-07-08 20:11 ` pinskia at physics dot uc dot edu
2003-07-09 5:44 ` Neil Booth
2003-07-08 23:57 ` [Bug c/11459] -stdc=c99 " neroden at gcc dot gnu dot org
` (10 subsequent siblings)
11 siblings, 1 reply; 14+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-07-08 20:11 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11459
pinskia at physics dot uc dot edu changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|-stdc=c90 -pedantic warns |-stdc=c90 -pedantic -ansi
|about C90's non long-long |warns about C90's non long-
|support when in C99 mode |long support when in C99
| |mode
------- Additional Comments From pinskia at physics dot uc dot edu 2003-07-08 20:11 -------
The bug report is wrong because with those options, I do not get the warning but reading
the bug report which is this is forward from, I see that the option -ansi is there, I do not
know what is should happen when you say '-std=c99 -ansi' or '-ansi -std=c99', should gcc
put into c89 or c99? Could some else look at this bug and say what should gcc do?
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [Bug c/11459] -stdc=c90 -pedantic -ansi warns about C90's non long-long support when in C99 mode
2003-07-08 20:11 ` [Bug c/11459] -stdc=c90 -pedantic -ansi " pinskia at physics dot uc dot edu
@ 2003-07-09 5:44 ` Neil Booth
0 siblings, 0 replies; 14+ messages in thread
From: Neil Booth @ 2003-07-09 5:44 UTC (permalink / raw)
To: pinskia at physics dot uc dot edu; +Cc: gcc-bugs
pinskia at physics dot uc dot edu wrote:-
> pinskia at physics dot uc dot edu changed:
>
> What |Removed |Added
> ----------------------------------------------------------------------------
> Summary|-stdc=c90 -pedantic warns |-stdc=c90 -pedantic -ansi
> |about C90's non long-long |warns about C90's non long-
> |support when in C99 mode |long support when in C99
> | |mode
>
>
> ------- Additional Comments From pinskia at physics dot uc dot edu 2003-07-08 20:11 -------
> The bug report is wrong because with those options, I do not get the warning but reading
> the bug report which is this is forward from, I see that the option -ansi is there, I do not
> know what is should happen when you say '-std=c99 -ansi' or '-ansi -std=c99', should gcc
> put into c89 or c99? Could some else look at this bug and say what should gcc do?
-ansi means -std=c89. Which ever comes later of -ansi and -std=c99 should win; this
is the general rule (sadly some exceptions are insisted on).
Neil.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c/11459] -stdc=c99 -pedantic -ansi warns about C90's non long-long support when in C99 mode
2003-07-08 4:56 [Bug c/11459] New: -stdc=c90 -pedantic warns about C90's non long-long support when in C99 mode debian-gcc at lists dot debian dot org
2003-07-08 20:11 ` [Bug c/11459] -stdc=c90 -pedantic -ansi " pinskia at physics dot uc dot edu
@ 2003-07-08 23:57 ` neroden at gcc dot gnu dot org
2003-07-09 5:45 ` neil at daikokuya dot co dot uk
` (9 subsequent siblings)
11 siblings, 0 replies; 14+ messages in thread
From: neroden at gcc dot gnu dot org @ 2003-07-08 23:57 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11459
neroden at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|-stdc=c90 -pedantic -ansi |-stdc=c99 -pedantic -ansi
|warns about C90's non long- |warns about C90's non long-
|long support when in C99 |long support when in C99
|mode |mode
------- Additional Comments From neroden at gcc dot gnu dot org 2003-07-08 23:57 -------
If -ansi is considered equivalent to -std=c90 or -std=c89, which I believe it is,then I think that one of the following should happen:* The last one on the command line should win. This is the generalprinciple with conflicting options, I think.* A "conflicting options" error should be produced.Maybe this sort of thing can be cleared up with the options rewrite currently in progress.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c/11459] -stdc=c99 -pedantic -ansi warns about C90's non long-long support when in C99 mode
2003-07-08 4:56 [Bug c/11459] New: -stdc=c90 -pedantic warns about C90's non long-long support when in C99 mode debian-gcc at lists dot debian dot org
2003-07-08 20:11 ` [Bug c/11459] -stdc=c90 -pedantic -ansi " pinskia at physics dot uc dot edu
2003-07-08 23:57 ` [Bug c/11459] -stdc=c99 " neroden at gcc dot gnu dot org
@ 2003-07-09 5:45 ` neil at daikokuya dot co dot uk
2003-07-09 7:27 ` neroden at gcc dot gnu dot org
` (8 subsequent siblings)
11 siblings, 0 replies; 14+ messages in thread
From: neil at daikokuya dot co dot uk @ 2003-07-09 5:45 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11459
------- Additional Comments From neil at daikokuya dot co dot uk 2003-07-09 05:45 -------
Subject: Re: -stdc=c90 -pedantic -ansi warns about C90's non long-long support when in C99 mode
pinskia at physics dot uc dot edu wrote:-
> pinskia at physics dot uc dot edu changed:
>
> What |Removed |Added
> ----------------------------------------------------------------------------
> Summary|-stdc=c90 -pedantic warns |-stdc=c90 -pedantic -ansi
> |about C90's non long-long |warns about C90's non long-
> |support when in C99 mode |long support when in C99
> | |mode
>
>
> ------- Additional Comments From pinskia at physics dot uc dot edu 2003-07-08 20:11 -------
> The bug report is wrong because with those options, I do not get the warning but reading
> the bug report which is this is forward from, I see that the option -ansi is there, I do not
> know what is should happen when you say '-std=c99 -ansi' or '-ansi -std=c99', should gcc
> put into c89 or c99? Could some else look at this bug and say what should gcc do?
-ansi means -std=c89. Which ever comes later of -ansi and -std=c99 should win; this
is the general rule (sadly some exceptions are insisted on).
Neil.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c/11459] -stdc=c99 -pedantic -ansi warns about C90's non long-long support when in C99 mode
2003-07-08 4:56 [Bug c/11459] New: -stdc=c90 -pedantic warns about C90's non long-long support when in C99 mode debian-gcc at lists dot debian dot org
` (2 preceding siblings ...)
2003-07-09 5:45 ` neil at daikokuya dot co dot uk
@ 2003-07-09 7:27 ` neroden at gcc dot gnu dot org
2003-07-09 7:28 ` [Bug c/11459] -ansi -std=c99 -pedantic " neroden at gcc dot gnu dot org
` (7 subsequent siblings)
11 siblings, 0 replies; 14+ messages in thread
From: neroden at gcc dot gnu dot org @ 2003-07-09 7:27 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11459
neroden at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2003-07-09 07:27:11
date| |
------- Additional Comments From neroden at gcc dot gnu dot org 2003-07-09 07:27 -------
Whichever is later should win. Hopefully this can be addressed with the options rewrite.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c/11459] -ansi -std=c99 -pedantic warns about C90's non long-long support when in C99 mode
2003-07-08 4:56 [Bug c/11459] New: -stdc=c90 -pedantic warns about C90's non long-long support when in C99 mode debian-gcc at lists dot debian dot org
` (3 preceding siblings ...)
2003-07-09 7:27 ` neroden at gcc dot gnu dot org
@ 2003-07-09 7:28 ` neroden at gcc dot gnu dot org
2003-08-23 0:15 ` dhazeghi at yahoo dot com
` (6 subsequent siblings)
11 siblings, 0 replies; 14+ messages in thread
From: neroden at gcc dot gnu dot org @ 2003-07-09 7:28 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11459
neroden at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|-stdc=c99 -pedantic -ansi |-ansi -std=c99 -pedantic
|warns about C90's non long- |warns about C90's non long-
|long support when in C99 |long support when in C99
|mode |mode
------- Additional Comments From neroden at gcc dot gnu dot org 2003-07-09 07:28 -------
The correct command line to use on the test case to trigger trouble is:
cc -ansi -std=c99 -pedantic -Wall
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c/11459] -ansi -std=c99 -pedantic warns about C90's non long-long support when in C99 mode
2003-07-08 4:56 [Bug c/11459] New: -stdc=c90 -pedantic warns about C90's non long-long support when in C99 mode debian-gcc at lists dot debian dot org
` (4 preceding siblings ...)
2003-07-09 7:28 ` [Bug c/11459] -ansi -std=c99 -pedantic " neroden at gcc dot gnu dot org
@ 2003-08-23 0:15 ` dhazeghi at yahoo dot com
2003-10-24 18:11 ` dhazeghi at yahoo dot com
` (5 subsequent siblings)
11 siblings, 0 replies; 14+ messages in thread
From: dhazeghi at yahoo dot com @ 2003-08-23 0:15 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11459
dhazeghi at yahoo dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.4 |---
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c/11459] -ansi -std=c99 -pedantic warns about C90's non long-long support when in C99 mode
2003-07-08 4:56 [Bug c/11459] New: -stdc=c90 -pedantic warns about C90's non long-long support when in C99 mode debian-gcc at lists dot debian dot org
` (5 preceding siblings ...)
2003-08-23 0:15 ` dhazeghi at yahoo dot com
@ 2003-10-24 18:11 ` dhazeghi at yahoo dot com
2004-09-25 18:23 ` pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
11 siblings, 0 replies; 14+ messages in thread
From: dhazeghi at yahoo dot com @ 2003-10-24 18:11 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11459
dhazeghi at yahoo dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2003-07-18 22:31:14 |2003-10-24 18:08:53
date| |
------- Additional Comments From dhazeghi at yahoo dot com 2003-10-24 18:08 -------
Still present on mainline.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c/11459] -ansi -std=c99 -pedantic warns about C90's non long-long support when in C99 mode
2003-07-08 4:56 [Bug c/11459] New: -stdc=c90 -pedantic warns about C90's non long-long support when in C99 mode debian-gcc at lists dot debian dot org
` (6 preceding siblings ...)
2003-10-24 18:11 ` dhazeghi at yahoo dot com
@ 2004-09-25 18:23 ` pinskia at gcc dot gnu dot org
2004-09-26 0:59 ` cvs-commit at gcc dot gnu dot org
` (3 subsequent siblings)
11 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-09-25 18:23 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-09-25 18:23 -------
Patch here: <http://gcc.gnu.org/ml/gcc-patches/2004-09/msg02661.html>.
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |patch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11459
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c/11459] -ansi -std=c99 -pedantic warns about C90's non long-long support when in C99 mode
2003-07-08 4:56 [Bug c/11459] New: -stdc=c90 -pedantic warns about C90's non long-long support when in C99 mode debian-gcc at lists dot debian dot org
` (7 preceding siblings ...)
2004-09-25 18:23 ` pinskia at gcc dot gnu dot org
@ 2004-09-26 0:59 ` cvs-commit at gcc dot gnu dot org
2004-09-26 1:02 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
11 siblings, 0 replies; 14+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-09-26 0:59 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-09-26 00:59 -------
Subject: Bug 11459
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: jsm28@gcc.gnu.org 2004-09-26 00:59:45
Modified files:
gcc : ChangeLog gcc.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/gcc.dg: pr11459-1.c
Log message:
PR c/11459
* gcc.c (cpp_options, cc1_options): Preserve relative order of
-std and -ansi options.
testsuite:
* gcc.dg/pr11459-1.c: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.5627&r2=2.5628
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/gcc.c.diff?cvsroot=gcc&r1=1.434&r2=1.435
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.4350&r2=1.4351
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/pr11459-1.c.diff?cvsroot=gcc&r1=NONE&r2=1.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11459
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c/11459] -ansi -std=c99 -pedantic warns about C90's non long-long support when in C99 mode
2003-07-08 4:56 [Bug c/11459] New: -stdc=c90 -pedantic warns about C90's non long-long support when in C99 mode debian-gcc at lists dot debian dot org
` (8 preceding siblings ...)
2004-09-26 0:59 ` cvs-commit at gcc dot gnu dot org
@ 2004-09-26 1:02 ` pinskia at gcc dot gnu dot org
2005-05-01 10:34 ` cvs-commit at gcc dot gnu dot org
2005-05-01 11:00 ` jsm28 at gcc dot gnu dot org
11 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-09-26 1:02 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-09-26 01:02 -------
Fixed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.0.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11459
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c/11459] -ansi -std=c99 -pedantic warns about C90's non long-long support when in C99 mode
2003-07-08 4:56 [Bug c/11459] New: -stdc=c90 -pedantic warns about C90's non long-long support when in C99 mode debian-gcc at lists dot debian dot org
` (9 preceding siblings ...)
2004-09-26 1:02 ` pinskia at gcc dot gnu dot org
@ 2005-05-01 10:34 ` cvs-commit at gcc dot gnu dot org
2005-05-01 11:00 ` jsm28 at gcc dot gnu dot org
11 siblings, 0 replies; 14+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-05-01 10:34 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-05-01 10:33 -------
Subject: Bug 11459
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-3_4-branch
Changes by: jsm28@gcc.gnu.org 2005-05-01 10:33:40
Modified files:
gcc : ChangeLog gcc.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/gcc.dg: pr11459-1.c pr18502-1.c
Log message:
PR c/11459
PR c/18502
* gcc.c (cpp_unique_options): Remove %{trigraphs}.
(cpp_options, cc1_options): Change %{std*} %{ansi} to
%{std*&ansi&trigraphs}.
testsuite:
* gcc.dg/pr11459-1.c, gcc.dg/pr18502-1.c: New tests.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=2.2326.2.845&r2=2.2326.2.846
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/gcc.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.403.4.11&r2=1.403.4.12
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.3389.2.382&r2=1.3389.2.383
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/pr11459-1.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.1.54.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/pr18502-1.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.1.28.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11459
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c/11459] -ansi -std=c99 -pedantic warns about C90's non long-long support when in C99 mode
2003-07-08 4:56 [Bug c/11459] New: -stdc=c90 -pedantic warns about C90's non long-long support when in C99 mode debian-gcc at lists dot debian dot org
` (10 preceding siblings ...)
2005-05-01 10:34 ` cvs-commit at gcc dot gnu dot org
@ 2005-05-01 11:00 ` jsm28 at gcc dot gnu dot org
11 siblings, 0 replies; 14+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2005-05-01 11:00 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.0.0 |3.4.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11459
^ permalink raw reply [flat|nested] 14+ messages in thread