This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/37275] [4.4 Regression] ICE when compile libgomp/task.c



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]