This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/37275] [4.4 Regression] ICE when compile libgomp/task.c
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Sep 2008 22:18:19 -0000
- Subject: [Bug middle-end/37275] [4.4 Regression] ICE when compile libgomp/task.c
- References: <bug-37275-15353@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from jakub at gcc dot gnu dot org 2008-09-03 22:18 -------
What happens here is that there is a variable (task) initialized from
a value within thread local aggregate (gomp_tls_data.task) and it is never
modified, and as i386 has very few registers and register preassure is high,
its pseudo is replaced by equiv mem, which happens to be:
(mem/s/f/c:SI (plus:SI (plus:SI (unspec:SI [
(const_int 0 [0x0])
] 18)
(reg:SI 3 bx [168]))
(const_int 36 [0x24])) [16 gomp_tls_data.task+0 S4 A32])
(the unspec there is thread pointer). This is then what dwarf2out sees and
fails on gcc_unreachable, because it doesn't handle that UNSPEC.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37275