public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug preprocessor/29612] New: gcc --save-temps does not give "multi-character character constant" error
@ 2006-10-27 4:40 ian at airs dot com
2006-10-27 4:46 ` [Bug preprocessor/29612] " pinskia at gcc dot gnu dot org
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: ian at airs dot com @ 2006-10-27 4:40 UTC (permalink / raw)
To: gcc-bugs
When I compile this simple C file:
#include <stddef.h>
int main() {
return '\1\2';
}
I get a warning:
foo.c:3:10: warning: multi-character character constant
When I compile the same file using --save-temps, I do not get a warning.
Similarly, if I use -E to produce a preprocessed file, and compile that, I do
not get a warning. This is a bug: options like --save-temps and -E should not
affect the set of warnings which are issued.
However ,I noticed that I do get a warning if I compile with --save-temps
-Wsystem-headers.
This appears to be a bug in libcpp: when a line directive indicates that it is
entering a system header file, it records the current state. However, it
apparently does not restore the old state when it exits the system header file.
The effect is that preprocessor warnings and errors are suppressed in a .i
file if a system header file is included.
--
Summary: gcc --save-temps does not give "multi-character
character constant" error
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: preprocessor
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ian at airs dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29612
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug preprocessor/29612] gcc --save-temps does not give "multi-character character constant" error
2006-10-27 4:40 [Bug preprocessor/29612] New: gcc --save-temps does not give "multi-character character constant" error ian at airs dot com
@ 2006-10-27 4:46 ` pinskia at gcc dot gnu dot org
2006-10-27 4:47 ` [Bug preprocessor/29612] [4.0/4.1/4.2/4.3 Regression] " pinskia at gcc dot gnu dot org
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-10-27 4:46 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pinskia at gcc dot gnu dot
| |org
Keywords| |diagnostic
Known to work| |3.4.0
Target Milestone|--- |4.0.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29612
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug preprocessor/29612] [4.0/4.1/4.2/4.3 Regression] gcc --save-temps does not give "multi-character character constant" error
2006-10-27 4:40 [Bug preprocessor/29612] New: gcc --save-temps does not give "multi-character character constant" error ian at airs dot com
2006-10-27 4:46 ` [Bug preprocessor/29612] " pinskia at gcc dot gnu dot org
@ 2006-10-27 4:47 ` pinskia at gcc dot gnu dot org
2006-11-08 11:02 ` jakub at gcc dot gnu dot org
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-10-27 4:47 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-10-27 04:47 -------
Confirmed, a regression from 3.4.0 which warned:
earth:~>~/ia32_linux_gcc3_4/bin/gcc -W -Wall t.c -save-temps
t.c:3:10: warning: multi-character character constant
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Known to fail| |4.0.4 4.1.2 4.2.0 4.3.0
Last reconfirmed|0000-00-00 00:00:00 |2006-10-27 04:47:37
date| |
Summary|gcc --save-temps does not |[4.0/4.1/4.2/4.3 Regression]
|give "multi-character |gcc --save-temps does not
|character constant" error |give "multi-character
| |character constant" error
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29612
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug preprocessor/29612] [4.0/4.1/4.2/4.3 Regression] gcc --save-temps does not give "multi-character character constant" error
2006-10-27 4:40 [Bug preprocessor/29612] New: gcc --save-temps does not give "multi-character character constant" error ian at airs dot com
2006-10-27 4:46 ` [Bug preprocessor/29612] " pinskia at gcc dot gnu dot org
2006-10-27 4:47 ` [Bug preprocessor/29612] [4.0/4.1/4.2/4.3 Regression] " pinskia at gcc dot gnu dot org
@ 2006-11-08 11:02 ` jakub at gcc dot gnu dot org
2006-11-13 3:38 ` mmitchel at gcc dot gnu dot org
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu dot org @ 2006-11-08 11:02 UTC (permalink / raw)
To: gcc-bugs
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |jakub at gcc dot gnu dot org
|dot org |
Status|NEW |ASSIGNED
Last reconfirmed|2006-10-27 04:47:37 |2006-11-08 11:02:29
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29612
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug preprocessor/29612] [4.0/4.1/4.2/4.3 Regression] gcc --save-temps does not give "multi-character character constant" error
2006-10-27 4:40 [Bug preprocessor/29612] New: gcc --save-temps does not give "multi-character character constant" error ian at airs dot com
` (2 preceding siblings ...)
2006-11-08 11:02 ` jakub at gcc dot gnu dot org
@ 2006-11-13 3:38 ` mmitchel at gcc dot gnu dot org
2006-12-29 8:15 ` jakub at gcc dot gnu dot org
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-11-13 3:38 UTC (permalink / raw)
To: gcc-bugs
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29612
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug preprocessor/29612] [4.0/4.1/4.2/4.3 Regression] gcc --save-temps does not give "multi-character character constant" error
2006-10-27 4:40 [Bug preprocessor/29612] New: gcc --save-temps does not give "multi-character character constant" error ian at airs dot com
` (3 preceding siblings ...)
2006-11-13 3:38 ` mmitchel at gcc dot gnu dot org
@ 2006-12-29 8:15 ` jakub at gcc dot gnu dot org
2006-12-29 8:16 ` jakub at gcc dot gnu dot org
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu dot org @ 2006-12-29 8:15 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from jakub at gcc dot gnu dot org 2006-12-29 08:15 -------
Subject: Bug 29612
Author: jakub
Date: Fri Dec 29 08:15:08 2006
New Revision: 120257
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=120257
Log:
PR preprocessor/29612
* directives.c (do_linemarker): Set pfile->buffer->sysp always, not
only when new_sysp is non-zero.
* gcc.dg/cpp/pr29612-1.c: New test.
* gcc.dg/cpp/pr29612-2.c: New test.
Added:
trunk/gcc/testsuite/gcc.dg/cpp/pr29612-1.c
trunk/gcc/testsuite/gcc.dg/cpp/pr29612-2.c
Modified:
trunk/gcc/testsuite/ChangeLog
trunk/libcpp/ChangeLog
trunk/libcpp/directives.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29612
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug preprocessor/29612] [4.0/4.1/4.2/4.3 Regression] gcc --save-temps does not give "multi-character character constant" error
2006-10-27 4:40 [Bug preprocessor/29612] New: gcc --save-temps does not give "multi-character character constant" error ian at airs dot com
` (4 preceding siblings ...)
2006-12-29 8:15 ` jakub at gcc dot gnu dot org
@ 2006-12-29 8:16 ` jakub at gcc dot gnu dot org
2006-12-29 8:18 ` jakub at gcc dot gnu dot org
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu dot org @ 2006-12-29 8:16 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from jakub at gcc dot gnu dot org 2006-12-29 08:16 -------
Subject: Bug 29612
Author: jakub
Date: Fri Dec 29 08:16:32 2006
New Revision: 120258
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=120258
Log:
PR preprocessor/29612
* directives.c (do_linemarker): Set pfile->buffer->sysp always, not
only when new_sysp is non-zero.
* gcc.dg/cpp/pr29612-1.c: New test.
* gcc.dg/cpp/pr29612-2.c: New test.
Added:
branches/gcc-4_2-branch/gcc/testsuite/gcc.dg/cpp/pr29612-1.c
branches/gcc-4_2-branch/gcc/testsuite/gcc.dg/cpp/pr29612-2.c
Modified:
branches/gcc-4_2-branch/gcc/testsuite/ChangeLog
branches/gcc-4_2-branch/libcpp/ChangeLog
branches/gcc-4_2-branch/libcpp/directives.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29612
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug preprocessor/29612] [4.0/4.1/4.2/4.3 Regression] gcc --save-temps does not give "multi-character character constant" error
2006-10-27 4:40 [Bug preprocessor/29612] New: gcc --save-temps does not give "multi-character character constant" error ian at airs dot com
` (5 preceding siblings ...)
2006-12-29 8:16 ` jakub at gcc dot gnu dot org
@ 2006-12-29 8:18 ` jakub at gcc dot gnu dot org
2006-12-29 8:25 ` [Bug preprocessor/29612] [4.0 " jakub at gcc dot gnu dot org
2007-02-03 20:45 ` gdr at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu dot org @ 2006-12-29 8:18 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from jakub at gcc dot gnu dot org 2006-12-29 08:17 -------
Subject: Bug 29612
Author: jakub
Date: Fri Dec 29 08:17:43 2006
New Revision: 120259
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=120259
Log:
PR preprocessor/29612
* directives.c (do_linemarker): Set pfile->buffer->sysp always, not
only when new_sysp is non-zero.
* gcc.dg/cpp/pr29612-1.c: New test.
* gcc.dg/cpp/pr29612-2.c: New test.
Added:
branches/gcc-4_1-branch/gcc/testsuite/gcc.dg/cpp/pr29612-1.c
branches/gcc-4_1-branch/gcc/testsuite/gcc.dg/cpp/pr29612-2.c
Modified:
branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
branches/gcc-4_1-branch/libcpp/ChangeLog
branches/gcc-4_1-branch/libcpp/directives.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29612
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug preprocessor/29612] [4.0 Regression] gcc --save-temps does not give "multi-character character constant" error
2006-10-27 4:40 [Bug preprocessor/29612] New: gcc --save-temps does not give "multi-character character constant" error ian at airs dot com
` (6 preceding siblings ...)
2006-12-29 8:18 ` jakub at gcc dot gnu dot org
@ 2006-12-29 8:25 ` jakub at gcc dot gnu dot org
2007-02-03 20:45 ` gdr at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu dot org @ 2006-12-29 8:25 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from jakub at gcc dot gnu dot org 2006-12-29 08:25 -------
Fixed in 4.3/4.2/4.1.
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to fail|4.0.4 4.1.2 4.2.0 4.3.0 |4.0.4 4.1.1
Known to work|3.4.0 |3.4.0 4.1.2 4.2.0 4.3.0
Summary|[4.0/4.1/4.2/4.3 Regression]|[4.0 Regression] gcc --save-
|gcc --save-temps does not |temps does not give "multi-
|give "multi-character |character character
|character constant" error |constant" error
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29612
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug preprocessor/29612] [4.0 Regression] gcc --save-temps does not give "multi-character character constant" error
2006-10-27 4:40 [Bug preprocessor/29612] New: gcc --save-temps does not give "multi-character character constant" error ian at airs dot com
` (7 preceding siblings ...)
2006-12-29 8:25 ` [Bug preprocessor/29612] [4.0 " jakub at gcc dot gnu dot org
@ 2007-02-03 20:45 ` gdr at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: gdr at gcc dot gnu dot org @ 2007-02-03 20:45 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from gdr at gcc dot gnu dot org 2007-02-03 20:45 -------
Fixed in GCC-4.1.2.
--
gdr at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|4.0.4 |4.1.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29612
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2007-02-03 20:45 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-27 4:40 [Bug preprocessor/29612] New: gcc --save-temps does not give "multi-character character constant" error ian at airs dot com
2006-10-27 4:46 ` [Bug preprocessor/29612] " pinskia at gcc dot gnu dot org
2006-10-27 4:47 ` [Bug preprocessor/29612] [4.0/4.1/4.2/4.3 Regression] " pinskia at gcc dot gnu dot org
2006-11-08 11:02 ` jakub at gcc dot gnu dot org
2006-11-13 3:38 ` mmitchel at gcc dot gnu dot org
2006-12-29 8:15 ` jakub at gcc dot gnu dot org
2006-12-29 8:16 ` jakub at gcc dot gnu dot org
2006-12-29 8:18 ` jakub at gcc dot gnu dot org
2006-12-29 8:25 ` [Bug preprocessor/29612] [4.0 " jakub at gcc dot gnu dot org
2007-02-03 20:45 ` gdr 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).