public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug preprocessor/18502] New: trigraphs don't work with -std=gnu99
@ 2004-11-15 14:55 rwxr-xr-x at gmx dot de
2004-11-15 15:15 ` [Bug c/18502] " pinskia at gcc dot gnu dot org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: rwxr-xr-x at gmx dot de @ 2004-11-15 14:55 UTC (permalink / raw)
To: gcc-bugs
Hello,
$ echo '??-' | gcc -P -E -trigraphs -std=gnu99 -trigraphs -
<stdin>:1:1: warning: trigraph ??- ignored, use -trigraphs to enable
??-
$
That shouldn't happen. Apparently -trigraphs is ignored with -std=gnu99. Weird.
Lukas
--
Summary: trigraphs don't work with -std=gnu99
Product: gcc
Version: 3.4.3
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: preprocessor
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: rwxr-xr-x at gmx dot de
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18502
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/18502] trigraphs don't work with -std=gnu99
2004-11-15 14:55 [Bug preprocessor/18502] New: trigraphs don't work with -std=gnu99 rwxr-xr-x at gmx dot de
@ 2004-11-15 15:15 ` pinskia at gcc dot gnu dot org
2004-11-15 15:51 ` joseph at codesourcery dot com
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-15 15:15 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-11-15 15:15 -------
Confirmed, the problem is either in the C front-end (which is really the code which drives the
preprocessor library) or in the C driver part:
/Users/pinskia/local/libexec/gcc/powerpc-apple-darwin7.6.0/4.0.0/cc1 -E -quiet -v -P -trigraphs
-trigraphs -D__DYNAMIC__ -D__APPLE_CC__=1 - -fPIC -std=gnu99
Note how -std=gnu99 is done after -trigraphs.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Component|preprocessor |c
Ever Confirmed| |1
Keywords| |diagnostic
Last reconfirmed|0000-00-00 00:00:00 |2004-11-15 15:15:48
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18502
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/18502] trigraphs don't work with -std=gnu99
2004-11-15 14:55 [Bug preprocessor/18502] New: trigraphs don't work with -std=gnu99 rwxr-xr-x at gmx dot de
2004-11-15 15:15 ` [Bug c/18502] " pinskia at gcc dot gnu dot org
@ 2004-11-15 15:51 ` joseph at codesourcery dot com
2005-02-01 23:29 ` [Bug c/18502] [3.3/3.4/4.0 Regression] " jsm28 at gcc dot gnu dot org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: joseph at codesourcery dot com @ 2004-11-15 15:51 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From joseph at codesourcery dot com 2004-11-15 15:51 -------
Subject: Re: trigraphs don't work with -std=gnu99
On Mon, 15 Nov 2004, pinskia at gcc dot gnu dot org wrote:
> Confirmed, the problem is either in the C front-end (which is really the code which drives the
> preprocessor library) or in the C driver part:
> /Users/pinskia/local/libexec/gcc/powerpc-apple-darwin7.6.0/4.0.0/cc1 -E -quiet -v -P -trigraphs
> -trigraphs -D__DYNAMIC__ -D__APPLE_CC__=1 - -fPIC -std=gnu99
>
> Note how -std=gnu99 is done after -trigraphs.
In that case the sorting needs to be disabled between these options just
as -ansi and -std options are sorted together in specs (%{std*&ansi}, was
bug 11459).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18502
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/18502] [3.3/3.4/4.0 Regression] trigraphs don't work with -std=gnu99
2004-11-15 14:55 [Bug preprocessor/18502] New: trigraphs don't work with -std=gnu99 rwxr-xr-x at gmx dot de
2004-11-15 15:15 ` [Bug c/18502] " pinskia at gcc dot gnu dot org
2004-11-15 15:51 ` joseph at codesourcery dot com
@ 2005-02-01 23:29 ` jsm28 at gcc dot gnu dot org
2005-05-01 10:34 ` [Bug c/18502] [3.3/3.4 " cvs-commit at gcc dot gnu dot org
2005-05-03 20:04 ` jsm28 at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2005-02-01 23:29 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From jsm28 at gcc dot gnu dot org 2005-02-01 23:29 -------
This is a regression from 3.0.x. Working on a patch.
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |jsm28 at gcc dot gnu dot org
|dot org |
Status|NEW |ASSIGNED
Known to fail| |3.2.3 3.3.4 3.4.3 4.0.0
Known to work| |3.0.4
Last reconfirmed|2004-11-15 15:15:48 |2005-02-01 23:29:25
date| |
Summary|trigraphs don't work with - |[3.3/3.4/4.0 Regression]
|std=gnu99 |trigraphs don't work with -
| |std=gnu99
Target Milestone|--- |4.0.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18502
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/18502] [3.3/3.4 Regression] trigraphs don't work with -std=gnu99
2004-11-15 14:55 [Bug preprocessor/18502] New: trigraphs don't work with -std=gnu99 rwxr-xr-x at gmx dot de
` (2 preceding siblings ...)
2005-02-01 23:29 ` [Bug c/18502] [3.3/3.4/4.0 Regression] " jsm28 at gcc dot gnu dot org
@ 2005-05-01 10:34 ` cvs-commit at gcc dot gnu dot org
2005-05-03 20:04 ` jsm28 at gcc dot gnu dot org
4 siblings, 0 replies; 6+ 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 18502
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=18502
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/18502] [3.3/3.4 Regression] trigraphs don't work with -std=gnu99
2004-11-15 14:55 [Bug preprocessor/18502] New: trigraphs don't work with -std=gnu99 rwxr-xr-x at gmx dot de
` (3 preceding siblings ...)
2005-05-01 10:34 ` [Bug c/18502] [3.3/3.4 " cvs-commit at gcc dot gnu dot org
@ 2005-05-03 20:04 ` jsm28 at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2005-05-03 20:04 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From jsm28 at gcc dot gnu dot org 2005-05-03 20:04 -------
Fixed for 3.4.4. Will not now be fixed on 3.3 branch.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18502
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2005-05-03 20:04 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-15 14:55 [Bug preprocessor/18502] New: trigraphs don't work with -std=gnu99 rwxr-xr-x at gmx dot de
2004-11-15 15:15 ` [Bug c/18502] " pinskia at gcc dot gnu dot org
2004-11-15 15:51 ` joseph at codesourcery dot com
2005-02-01 23:29 ` [Bug c/18502] [3.3/3.4/4.0 Regression] " jsm28 at gcc dot gnu dot org
2005-05-01 10:34 ` [Bug c/18502] [3.3/3.4 " cvs-commit at gcc dot gnu dot org
2005-05-03 20:04 ` jsm28 at gcc dot gnu dot org
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).