public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug preprocessor/35061] New: #pragma pop_macro causes ICE if no macro value on stack
@ 2008-02-03 8:40 dannysmith at users dot sourceforge dot net
2008-02-06 10:57 ` [Bug preprocessor/35061] " fxcoudert at gcc dot gnu dot org
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: dannysmith at users dot sourceforge dot net @ 2008-02-03 8:40 UTC (permalink / raw)
To: gcc-bugs
A "#pragma pop_macro" without a preceding "#pragma push_macro" triggers an ICE
on mingw32
// pop_macro.c
#define X 1
int main()
{
// # pragma push_macro("X")
# undef X
# define X 2
# pragma pop_macro("X")
return 0;
}
gcc pop_macro.c
pop_macro.c: In function 'main':
pop_macro.c:9: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
--
Summary: #pragma pop_macro causes ICE if no macro value on stack
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: preprocessor
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dannysmith at users dot sourceforge dot net
GCC target triplet: i686-pc-mingw32
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35061
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug preprocessor/35061] #pragma pop_macro causes ICE if no macro value on stack
2008-02-03 8:40 [Bug preprocessor/35061] New: #pragma pop_macro causes ICE if no macro value on stack dannysmith at users dot sourceforge dot net
@ 2008-02-06 10:57 ` fxcoudert at gcc dot gnu dot org
2008-02-06 17:30 ` dannysmith at users dot sourceforge dot net
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2008-02-06 10:57 UTC (permalink / raw)
To: gcc-bugs
--
fxcoudert at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2008-02-06 10:56:34
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35061
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug preprocessor/35061] #pragma pop_macro causes ICE if no macro value on stack
2008-02-03 8:40 [Bug preprocessor/35061] New: #pragma pop_macro causes ICE if no macro value on stack dannysmith at users dot sourceforge dot net
2008-02-06 10:57 ` [Bug preprocessor/35061] " fxcoudert at gcc dot gnu dot org
@ 2008-02-06 17:30 ` dannysmith at users dot sourceforge dot net
2008-02-14 21:43 ` dannysmith at gcc dot gnu dot org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: dannysmith at users dot sourceforge dot net @ 2008-02-06 17:30 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from dannysmith at users dot sourceforge dot net 2008-02-06 17:29 -------
Patch at:
http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00120.html
--
dannysmith at users dot sourceforge dot net changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |dannysmith at users dot
|dot org |sourceforge dot net
Status|NEW |ASSIGNED
Last reconfirmed|2008-02-06 10:56:34 |2008-02-06 17:29:23
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35061
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug preprocessor/35061] #pragma pop_macro causes ICE if no macro value on stack
2008-02-03 8:40 [Bug preprocessor/35061] New: #pragma pop_macro causes ICE if no macro value on stack dannysmith at users dot sourceforge dot net
2008-02-06 10:57 ` [Bug preprocessor/35061] " fxcoudert at gcc dot gnu dot org
2008-02-06 17:30 ` dannysmith at users dot sourceforge dot net
@ 2008-02-14 21:43 ` dannysmith at gcc dot gnu dot org
2008-02-14 21:45 ` dannysmith at users dot sourceforge dot net
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: dannysmith at gcc dot gnu dot org @ 2008-02-14 21:43 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from dannysmith at gcc dot gnu dot org 2008-02-14 21:42 -------
Subject: Bug 35061
Author: dannysmith
Date: Thu Feb 14 21:41:40 2008
New Revision: 132322
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=132322
Log:
PR preprocessor/35061
gcc
* c-pragma.c (handle_pragma_pop_macro): Check that
pushed_macro_table has been allocated.
testsuite
* gcc.dg/cpp/pragma_pop_macro-1.c: New file
Added:
trunk/gcc/testsuite/gcc.dg/cpp/pragma-pop_macro-1.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/c-pragma.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35061
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug preprocessor/35061] #pragma pop_macro causes ICE if no macro value on stack
2008-02-03 8:40 [Bug preprocessor/35061] New: #pragma pop_macro causes ICE if no macro value on stack dannysmith at users dot sourceforge dot net
` (2 preceding siblings ...)
2008-02-14 21:43 ` dannysmith at gcc dot gnu dot org
@ 2008-02-14 21:45 ` dannysmith at users dot sourceforge dot net
2008-02-14 22:18 ` ubizjak at gmail dot com
2008-02-15 14:19 ` ubizjak at gmail dot com
5 siblings, 0 replies; 7+ messages in thread
From: dannysmith at users dot sourceforge dot net @ 2008-02-14 21:45 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from dannysmith at users dot sourceforge dot net 2008-02-14 21:44 -------
Fixed
--
dannysmith at users dot sourceforge dot net changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.3.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35061
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug preprocessor/35061] #pragma pop_macro causes ICE if no macro value on stack
2008-02-03 8:40 [Bug preprocessor/35061] New: #pragma pop_macro causes ICE if no macro value on stack dannysmith at users dot sourceforge dot net
` (3 preceding siblings ...)
2008-02-14 21:45 ` dannysmith at users dot sourceforge dot net
@ 2008-02-14 22:18 ` ubizjak at gmail dot com
2008-02-15 14:19 ` ubizjak at gmail dot com
5 siblings, 0 replies; 7+ messages in thread
From: ubizjak at gmail dot com @ 2008-02-14 22:18 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from ubizjak at gmail dot com 2008-02-14 22:17 -------
Fixed for real.
--
ubizjak at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35061
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug preprocessor/35061] #pragma pop_macro causes ICE if no macro value on stack
2008-02-03 8:40 [Bug preprocessor/35061] New: #pragma pop_macro causes ICE if no macro value on stack dannysmith at users dot sourceforge dot net
` (4 preceding siblings ...)
2008-02-14 22:18 ` ubizjak at gmail dot com
@ 2008-02-15 14:19 ` ubizjak at gmail dot com
5 siblings, 0 replies; 7+ messages in thread
From: ubizjak at gmail dot com @ 2008-02-15 14:19 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from ubizjak at gmail dot com 2008-02-15 14:18 -------
(In reply to comment #4)
> Fixed for real.
Wrong dg-do directive in the testcase was fixed by:
Author: uros
Date: Fri Feb 15 14:17:41 2008
New Revision: 132343
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=132343
Log:
* gcc.dg/cpp/pragma-pop_macro-1.c: Fix dg-do directive.
Modified:
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/gcc.dg/cpp/pragma-pop_macro-1.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35061
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2008-02-15 14:19 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-03 8:40 [Bug preprocessor/35061] New: #pragma pop_macro causes ICE if no macro value on stack dannysmith at users dot sourceforge dot net
2008-02-06 10:57 ` [Bug preprocessor/35061] " fxcoudert at gcc dot gnu dot org
2008-02-06 17:30 ` dannysmith at users dot sourceforge dot net
2008-02-14 21:43 ` dannysmith at gcc dot gnu dot org
2008-02-14 21:45 ` dannysmith at users dot sourceforge dot net
2008-02-14 22:18 ` ubizjak at gmail dot com
2008-02-15 14:19 ` ubizjak at gmail dot com
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).