public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/32304] New: ICE in set_mem_attributes_minus_bitpos
@ 2007-06-12 14:11 wouter dot vermaelen at scarlet dot be
2007-06-12 14:20 ` [Bug middle-end/32304] [4.3 Regression] " pinskia at gcc dot gnu dot org
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: wouter dot vermaelen at scarlet dot be @ 2007-06-12 14:11 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 617 bytes --]
> cat bug.ii
struct S {
S() {}
};
S f() {
static S s;
return s;
}
> g++ -O bug.ii
bug2.ii: In function S f():
bug2.ii:6: internal compiler error: in set_mem_attributes_minus_bitpos, at
emit-rtl.c:1573
--
Summary: ICE in set_mem_attributes_minus_bitpos
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: wouter dot vermaelen at scarlet dot be
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32304
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug middle-end/32304] [4.3 Regression] ICE in set_mem_attributes_minus_bitpos
2007-06-12 14:11 [Bug c++/32304] New: ICE in set_mem_attributes_minus_bitpos wouter dot vermaelen at scarlet dot be
@ 2007-06-12 14:20 ` pinskia at gcc dot gnu dot org
2007-06-12 14:23 ` pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-06-12 14:20 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2007-06-12 14:20 -------
readonly is set on this decl which is wrong.
I think I know what is wrong.
ipa-reference.c sets TREE_READONLY on the decl when it really should not be
(even though it is readonly now).
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pinskia at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Component|c++ |middle-end
Ever Confirmed|0 |1
Keywords| |ice-on-valid-code
Last reconfirmed|0000-00-00 00:00:00 |2007-06-12 14:20:18
date| |
Summary|ICE in |[4.3 Regression] ICE in
|set_mem_attributes_minus_bit|set_mem_attributes_minus_bit
|pos |pos
Target Milestone|--- |4.3.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32304
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug middle-end/32304] [4.3 Regression] ICE in set_mem_attributes_minus_bitpos
2007-06-12 14:11 [Bug c++/32304] New: ICE in set_mem_attributes_minus_bitpos wouter dot vermaelen at scarlet dot be
2007-06-12 14:20 ` [Bug middle-end/32304] [4.3 Regression] " pinskia at gcc dot gnu dot org
@ 2007-06-12 14:23 ` pinskia at gcc dot gnu dot org
2007-06-12 18:16 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-06-12 14:23 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pinskia at gcc dot gnu dot org 2007-06-12 14:22 -------
*** Bug 31685 has been marked as a duplicate of this bug. ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32304
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug middle-end/32304] [4.3 Regression] ICE in set_mem_attributes_minus_bitpos
2007-06-12 14:11 [Bug c++/32304] New: ICE in set_mem_attributes_minus_bitpos wouter dot vermaelen at scarlet dot be
2007-06-12 14:20 ` [Bug middle-end/32304] [4.3 Regression] " pinskia at gcc dot gnu dot org
2007-06-12 14:23 ` pinskia at gcc dot gnu dot org
@ 2007-06-12 18:16 ` pinskia at gcc dot gnu dot org
2007-06-29 18:45 ` mmitchel at gcc dot gnu dot org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-06-12 18:16 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from pinskia at gcc dot gnu dot org 2007-06-12 18:16 -------
The patch which fixes the problem:
Index: ipa-reference.c
===================================================================
--- ipa-reference.c (revision 125637)
+++ ipa-reference.c (working copy)
@@ -269,6 +269,10 @@
if (DECL_EXTERNAL (t) || TREE_PUBLIC (t))
return false;
+ /* We cannot touch decl's whos types need constructing. */
+ if (TYPE_NEEDS_CONSTRUCTING (TREE_TYPE (t)))
+ return false;
+
/* This is a variable we care about. Check if we have seen it
before, and if not add it the set of variables we care about. */
if (!bitmap_bit_p (all_module_statics, DECL_UID (t)))
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |pinskia at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32304
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug middle-end/32304] [4.3 Regression] ICE in set_mem_attributes_minus_bitpos
2007-06-12 14:11 [Bug c++/32304] New: ICE in set_mem_attributes_minus_bitpos wouter dot vermaelen at scarlet dot be
` (2 preceding siblings ...)
2007-06-12 18:16 ` pinskia at gcc dot gnu dot org
@ 2007-06-29 18:45 ` mmitchel at gcc dot gnu dot org
2007-08-04 0:06 ` pinskia at gcc dot gnu dot org
2007-08-04 0:07 ` pinskia at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2007-06-29 18:45 UTC (permalink / raw)
To: gcc-bugs
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32304
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug middle-end/32304] [4.3 Regression] ICE in set_mem_attributes_minus_bitpos
2007-06-12 14:11 [Bug c++/32304] New: ICE in set_mem_attributes_minus_bitpos wouter dot vermaelen at scarlet dot be
` (3 preceding siblings ...)
2007-06-29 18:45 ` mmitchel at gcc dot gnu dot org
@ 2007-08-04 0:06 ` pinskia at gcc dot gnu dot org
2007-08-04 0:07 ` pinskia at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-08-04 0:06 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from pinskia at gcc dot gnu dot org 2007-08-04 00:06 -------
Subject: Bug 32304
Author: pinskia
Date: Sat Aug 4 00:05:56 2007
New Revision: 127191
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=127191
Log:
2007-08-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
PR middle-end/32304
* ipa-reference.c (has_proper_scope_for_analysis): Return false when
the decl's type has TYPE_NEEDS_CONSTRUCTING set.
2007-08-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
PR middle-end/32304
* g++.dg/torture/pr32304.C: New testcase.
Added:
trunk/gcc/testsuite/g++.dg/torture/pr32304.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/ipa-reference.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32304
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug middle-end/32304] [4.3 Regression] ICE in set_mem_attributes_minus_bitpos
2007-06-12 14:11 [Bug c++/32304] New: ICE in set_mem_attributes_minus_bitpos wouter dot vermaelen at scarlet dot be
` (4 preceding siblings ...)
2007-08-04 0:06 ` pinskia at gcc dot gnu dot org
@ 2007-08-04 0:07 ` pinskia at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-08-04 0:07 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from pinskia at gcc dot gnu dot org 2007-08-04 00:06 -------
Fixed.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32304
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2007-08-04 0:07 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-12 14:11 [Bug c++/32304] New: ICE in set_mem_attributes_minus_bitpos wouter dot vermaelen at scarlet dot be
2007-06-12 14:20 ` [Bug middle-end/32304] [4.3 Regression] " pinskia at gcc dot gnu dot org
2007-06-12 14:23 ` pinskia at gcc dot gnu dot org
2007-06-12 18:16 ` pinskia at gcc dot gnu dot org
2007-06-29 18:45 ` mmitchel at gcc dot gnu dot org
2007-08-04 0:06 ` pinskia at gcc dot gnu dot org
2007-08-04 0:07 ` 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).