public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/13815] New: ICE in loc_descriptor_from_tree
@ 2004-01-22 17:22 jakub at gcc dot gnu dot org
2004-01-22 17:24 ` [Bug debug/13815] " jakub at gcc dot gnu dot org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: jakub at gcc dot gnu dot org @ 2004-01-22 17:22 UTC (permalink / raw)
To: gcc-bugs
--- gcc/testsuite/gcc.dg/debug/debug-7.c 2003-09-15 15:40:47.000000000 +0200
+++ gcc/testsuite/gcc.dg/debug/debug-7.c 2004-01-22 18:18:12.000000000 +0100
@@ -0,0 +1,17 @@
+/* { dg-do compile } */
+/* { dg-options "-dA" } */
+
+typedef __SIZE_TYPE__ size_t;
+
+static inline size_t foo (int n)
+{
+ return (n + sizeof (int) * 8 - 1) / (sizeof (int) * 8);
+}
+
+void bar (int, int *);
+
+void baz (int n)
+{
+ int a[foo (n)];
+ bar (n, a);
+}
causes ICE (e.g. at -Os -g, -O1 -g, -O2 -g).
The problem is that EXPR_WITH_FILE_LOCATION (STMT_EXPR ()) is passed to
loc_descriptor_from_tree whcih doesn't handle statement expressions and/or
inline functions and aborts.
--
Summary: ICE in loc_descriptor_from_tree
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: debug
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jakub at gcc dot gnu dot org
CC: arjanv at redhat dot com,gcc-bugs at gcc dot gnu dot org
GCC target triplet: i386-redhat-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13815
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug debug/13815] ICE in loc_descriptor_from_tree
2004-01-22 17:22 [Bug debug/13815] New: ICE in loc_descriptor_from_tree jakub at gcc dot gnu dot org
@ 2004-01-22 17:24 ` jakub at gcc dot gnu dot org
2004-01-22 17:28 ` [Bug debug/13815] [3.4/3.5 Regression] " pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu dot org @ 2004-01-22 17:24 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From jakub at gcc dot gnu dot org 2004-01-22 17:24 -------
This is a regression from GCC 3.3.x (where the debug info was not complete
but at least it did not ICE), the testcase is distilled from Linux kernel.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13815
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug debug/13815] [3.4/3.5 Regression] ICE in loc_descriptor_from_tree
2004-01-22 17:22 [Bug debug/13815] New: ICE in loc_descriptor_from_tree jakub at gcc dot gnu dot org
2004-01-22 17:24 ` [Bug debug/13815] " jakub at gcc dot gnu dot org
@ 2004-01-22 17:28 ` pinskia at gcc dot gnu dot org
2004-01-22 17:30 ` bangerth at dealii dot org
2004-01-24 5:41 ` pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-22 17:28 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-01-22 17:28 -------
Confirmed, a regression.
>From Phil's regression hunter: Search converges between 2003-02-28-trunk (#233) and 2003-03
-01-trunk (#234).
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |ice-on-valid-code
Last reconfirmed|0000-00-00 00:00:00 |2004-01-22 17:28:11
date| |
Summary|ICE in |[3.4/3.5 Regression] ICE in
|loc_descriptor_from_tree |loc_descriptor_from_tree
Target Milestone|--- |3.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13815
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug debug/13815] [3.4/3.5 Regression] ICE in loc_descriptor_from_tree
2004-01-22 17:22 [Bug debug/13815] New: ICE in loc_descriptor_from_tree jakub at gcc dot gnu dot org
2004-01-22 17:24 ` [Bug debug/13815] " jakub at gcc dot gnu dot org
2004-01-22 17:28 ` [Bug debug/13815] [3.4/3.5 Regression] " pinskia at gcc dot gnu dot org
@ 2004-01-22 17:30 ` bangerth at dealii dot org
2004-01-24 5:41 ` pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: bangerth at dealii dot org @ 2004-01-22 17:30 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From bangerth at dealii dot org 2004-01-22 17:29 -------
Confirmed. It is indeed a regression.
W.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13815
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug debug/13815] [3.4/3.5 Regression] ICE in loc_descriptor_from_tree
2004-01-22 17:22 [Bug debug/13815] New: ICE in loc_descriptor_from_tree jakub at gcc dot gnu dot org
` (2 preceding siblings ...)
2004-01-22 17:30 ` bangerth at dealii dot org
@ 2004-01-24 5:41 ` pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-24 5:41 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-01-24 05:41 -------
This is a dup of bug 12934 which has a shorter testcase which fails now.
*** This bug has been marked as a duplicate of 12934 ***
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13815
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2004-01-24 5:41 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-22 17:22 [Bug debug/13815] New: ICE in loc_descriptor_from_tree jakub at gcc dot gnu dot org
2004-01-22 17:24 ` [Bug debug/13815] " jakub at gcc dot gnu dot org
2004-01-22 17:28 ` [Bug debug/13815] [3.4/3.5 Regression] " pinskia at gcc dot gnu dot org
2004-01-22 17:30 ` bangerth at dealii dot org
2004-01-24 5:41 ` pinskia 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).