public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/43384] New: [4.3/4.4/4.5 Regression] ICE: Segmentation fault with invalid K&R-like declaration related to labels
@ 2010-03-15 20:44 zsojka at seznam dot cz
2010-03-15 21:09 ` [Bug c/43384] " zsojka at seznam dot cz
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: zsojka at seznam dot cz @ 2010-03-15 20:44 UTC (permalink / raw)
To: gcc-bugs
Command line:
gcc testcase.c
----- testcase.c -----
void c_direct(p)
void *p = &&lab;
{}
----------------------
3.3.6 gives:
$ gcc-3.3.6 testcase.c
testcase.c: In function `c_direct':
testcase.c:2: error: parameter `p' is initialized
testcase.c:2: error: label `lab' used but not defined
3.4.6 and newer give:
$ /mnt/svn/gcc-trunk/binary-157460-lto/bin/gcc testcase.c
testcase.c: In function 'c_direct':
testcase.c:2:1: error: parameter 'p' is initialized
testcase.c:2:1: internal compiler error: Segmentation fault
(or bail out, without checking)
Valgrind on trunk outputs:
$ valgrind --trace-children=yes /mnt/svn/gcc-trunk/binary-157460-lto/bin/gcc
testcase.c
==5200== Invalid read of size 4
==5200== at 0x49B7EF: bind (c-decl.c:604)
==5200== by 0x49B9C8: bind_label (c-decl.c:670)
==5200== by 0x4A1A68: lookup_label (c-decl.c:3027)
==5200== by 0x4F6035: finish_label_address_expr (c-common.c:5659)
==5200== by 0x50C90C: c_parser_unary_expression (c-parser.c:5141)
==5200== by 0x50D262: c_parser_cast_expression (c-parser.c:5043)
==5200== by 0x50D404: c_parser_binary_expression (c-parser.c:4859)
==5200== by 0x50DA5C: c_parser_conditional_expression (c-parser.c:4645)
==5200== by 0x50DF6E: c_parser_expr_no_commas (c-parser.c:4565)
==5200== by 0x511ADF: c_parser_declaration_or_fndef (c-parser.c:3073)
==5200== by 0x511D75: c_parser_declaration_or_fndef (c-parser.c:1335)
==5200== by 0x5163B7: c_parse_file (c-parser.c:1005)
==5200== Address 0x28 is not stack'd, malloc'd or (recently) free'd
--
Summary: [4.3/4.4/4.5 Regression] ICE: Segmentation fault with
invalid K&R-like declaration related to labels
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: zsojka at seznam dot cz
GCC host triplet: x86_64-pc-linux-gnu
GCC target triplet: x86_64-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43384
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/43384] [4.3/4.4/4.5 Regression] ICE: Segmentation fault with invalid K&R-like declaration related to labels
2010-03-15 20:44 [Bug c/43384] New: [4.3/4.4/4.5 Regression] ICE: Segmentation fault with invalid K&R-like declaration related to labels zsojka at seznam dot cz
@ 2010-03-15 21:09 ` zsojka at seznam dot cz
2010-03-16 11:49 ` [Bug c/43384] [4.3/4.4/4.5 Regression] ICE: Segmentation fault with invalid K&R-like code rguenth at gcc dot gnu dot org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: zsojka at seznam dot cz @ 2010-03-15 21:09 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from zsojka at seznam dot cz 2010-03-15 21:09 -------
Created an attachment (id=20113)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20113&action=view)
different problem
This is probably related problem.
It fails in trunk with:
$ /mnt/svn/gcc-trunk/binary-157460-lto/bin/gcc pr43384-2.c
pr43384-2.c: In function 'foo':
pr43384-2.c:2:1: error: parameter 'p' is initialized
pr43384-2.c:2:11: error: 'q' undeclared (first use in this function)
pr43384-2.c:2:11: note: each undeclared identifier is reported only once for
each function it appears in
pr43384-2.c:3:1: internal compiler error: tree check: expected tree that
contains 'decl minimal' structure, have 'error_mark' in
store_parm_decls_oldstyle, at c-decl.c:7668
And in 4.4 with:
$ /mnt/svn/gcc-4_4/binary-157395-enable-checking/bin/gcc pr43384-2.c
pr43384-2.c: In function 'foo':
pr43384-2.c:2: error: parameter 'p' is initialized
pr43384-2.c:2: error: 'q' undeclared (first use in this function)
pr43384-2.c:2: error: (Each undeclared identifier is reported only once
pr43384-2.c:2: error: for each function it appears in.)
'
tree check: expected tree that contains 'decl minimal' structure, have
'error_mark' in c_tree_printer, at c-objc-common.c:109
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43384
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/43384] [4.3/4.4/4.5 Regression] ICE: Segmentation fault with invalid K&R-like code
2010-03-15 20:44 [Bug c/43384] New: [4.3/4.4/4.5 Regression] ICE: Segmentation fault with invalid K&R-like declaration related to labels zsojka at seznam dot cz
2010-03-15 21:09 ` [Bug c/43384] " zsojka at seznam dot cz
@ 2010-03-16 11:49 ` rguenth at gcc dot gnu dot org
2010-03-17 15:19 ` rguenth at gcc dot gnu dot org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-03-16 11:49 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from rguenth at gcc dot gnu dot org 2010-03-16 11:49 -------
Confirmed.
--
rguenth 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 |2010-03-16 11:49:43
date| |
Target Milestone|--- |4.3.5
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43384
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/43384] [4.3/4.4/4.5 Regression] ICE: Segmentation fault with invalid K&R-like code
2010-03-15 20:44 [Bug c/43384] New: [4.3/4.4/4.5 Regression] ICE: Segmentation fault with invalid K&R-like declaration related to labels zsojka at seznam dot cz
2010-03-15 21:09 ` [Bug c/43384] " zsojka at seznam dot cz
2010-03-16 11:49 ` [Bug c/43384] [4.3/4.4/4.5 Regression] ICE: Segmentation fault with invalid K&R-like code rguenth at gcc dot gnu dot org
@ 2010-03-17 15:19 ` rguenth at gcc dot gnu dot org
2010-03-24 13:49 ` zsojka at seznam dot cz
2010-05-22 18:35 ` [Bug c/43384] [4.3/4.4/4.5/4.6 " rguenth at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-03-17 15:19 UTC (permalink / raw)
To: gcc-bugs
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P5
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43384
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/43384] [4.3/4.4/4.5 Regression] ICE: Segmentation fault with invalid K&R-like code
2010-03-15 20:44 [Bug c/43384] New: [4.3/4.4/4.5 Regression] ICE: Segmentation fault with invalid K&R-like declaration related to labels zsojka at seznam dot cz
` (2 preceding siblings ...)
2010-03-17 15:19 ` rguenth at gcc dot gnu dot org
@ 2010-03-24 13:49 ` zsojka at seznam dot cz
2010-05-22 18:35 ` [Bug c/43384] [4.3/4.4/4.5/4.6 " rguenth at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: zsojka at seznam dot cz @ 2010-03-24 13:49 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from zsojka at seznam dot cz 2010-03-24 13:49 -------
Created an attachment (id=20184)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20184&action=view)
another similiar testcase
3.3.6 gives:
$ gcc-3.3.6 pr43384-3.c
pr43384-3.c: In function `foo':
pr43384-3.c:2: error: parameter `j' is initialized
pr43384-3.c:2: error: `i' undeclared (first use in this function)
pr43384-3.c:2: error: (Each undeclared identifier is reported only once
pr43384-3.c:2: error: for each function it appears in.)
pr43384-3.c:2: error: declaration for parameter `j' but no such parameter
3.4.6 and newer without checking:
$ gcc-3.4.6 pr43384-3.c
pr43384-3.c: In function `foo':
pr43384-3.c:2: error: parameter `j' is initialized
pr43384-3.c:2: error: `i' undeclared (first use in this function)
pr43384-3.c:2: error: (Each undeclared identifier is reported only once
pr43384-3.c:2: error: for each function it appears in.)
pr43384-3.c:2: confused by earlier errors, bailing out
trunk with checking:
$ /mnt/svn/gcc-trunk/binary-157675-lto/bin/gcc pr43384-3.c
pr43384-3.c: In function 'foo':
pr43384-3.c:2:1: error: parameter 'j' is initialized
pr43384-3.c:2:9: error: 'i' undeclared (first use in this function)
pr43384-3.c:2:9: note: each undeclared identifier is reported only once for
each function it appears in
pr43384-3.c:3:1: internal compiler error: tree check: expected tree that
contains 'decl minimal' structure, have 'error_mark' in
store_parm_decls_oldstyle, at c-decl.c:7670
4.4 with checking:
$ /mnt/svn/gcc-4_4/binary-157395-enable-checking/bin/gcc pr43384-3.c
pr43384-3.c: In function 'foo':
pr43384-3.c:2: error: parameter 'j' is initialized
pr43384-3.c:2: error: 'i' undeclared (first use in this function)
pr43384-3.c:2: error: (Each undeclared identifier is reported only once
pr43384-3.c:2: error: for each function it appears in.)
'
tree check: expected tree that contains 'decl minimal' structure, have
'error_mark' in c_tree_printer, at c-objc-common.c:109
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43384
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/43384] [4.3/4.4/4.5/4.6 Regression] ICE: Segmentation fault with invalid K&R-like code
2010-03-15 20:44 [Bug c/43384] New: [4.3/4.4/4.5 Regression] ICE: Segmentation fault with invalid K&R-like declaration related to labels zsojka at seznam dot cz
` (3 preceding siblings ...)
2010-03-24 13:49 ` zsojka at seznam dot cz
@ 2010-05-22 18:35 ` rguenth at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-05-22 18:35 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from rguenth at gcc dot gnu dot org 2010-05-22 18:13 -------
GCC 4.3.5 is being released, adjusting target milestone.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.3.5 |4.3.6
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43384
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2010-05-22 18:35 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-15 20:44 [Bug c/43384] New: [4.3/4.4/4.5 Regression] ICE: Segmentation fault with invalid K&R-like declaration related to labels zsojka at seznam dot cz
2010-03-15 21:09 ` [Bug c/43384] " zsojka at seznam dot cz
2010-03-16 11:49 ` [Bug c/43384] [4.3/4.4/4.5 Regression] ICE: Segmentation fault with invalid K&R-like code rguenth at gcc dot gnu dot org
2010-03-17 15:19 ` rguenth at gcc dot gnu dot org
2010-03-24 13:49 ` zsojka at seznam dot cz
2010-05-22 18:35 ` [Bug c/43384] [4.3/4.4/4.5/4.6 " rguenth 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).