Bug 29472 - [4.2 Regression] in reload, at reload1.c:1081 on m68k with -O2 -fPIC
Summary: [4.2 Regression] in reload, at reload1.c:1081 on m68k with -O2 -fPIC
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 4.1.2
: P5 normal
Target Milestone: 4.3.0
Assignee: Not yet assigned to anyone
URL:
Keywords: ice-on-valid-code
Depends on:
Blocks:
 
Reported: 2006-10-14 21:06 UTC by Martin Michlmayr
Modified: 2009-03-30 19:39 UTC (History)
4 users (show)

See Also:
Host:
Target: m68k-linux-gnu
Build:
Known to work: 3.3.6 3.4.6 4.3.0
Known to fail: 4.0.3 4.0.4 4.1.1 4.2.0 4.2.5
Last reconfirmed:


Attachments
testcase (515 bytes, text/plain)
2006-10-14 21:06 UTC, Martin Michlmayr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Michlmayr 2006-10-14 21:06:40 UTC
I get the following ICE on m68k with -O2 -fPIC.  It fails with gcc 4.0, 4.1 and 4.2, and works with 3.3/3.4.

(sid)115:tbm@usurper: ~] /home/tbm/tmp/gcc/4.1-m68k/gcc/g++ -B/home/tbm/tmp/gcc/4.1-m68k/gcc -O2 -fPIC blender-IK_QSegment.cpp
blender-IK_QSegment.cpp: In member function 'bool IK_QSwingSegment::UpdateAngle(const IK_QJacobian&, MT_Vector3&, bool*)':
blender-IK_QSegment.cpp:85: internal compiler error: in reload, at reload1.c:1079
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
zsh: exit 1     /home/tbm/tmp/gcc/4.1-m68k/gcc/g++ -B/home/tbm/tmp/gcc/4.1-m68k/gcc -O2 -fPIC
(sid)116:tbm@usurper: ~] /home/tbm/tmp/gcc/4.2-m68k-117734/gcc/g++ -B/home/tbm/tmp/gcc/4.2-m68k-117734/gcc/g++ -O2 -fPIC blender-IK_QSegment.cpp
blender-IK_QSegment.cpp: In member function 'bool IK_QSwingSegment::UpdateAngle(const IK_QJacobian&, MT_Vector3&, bool*)':
blender-IK_QSegment.cpp:85: internal compiler error: in reload, at reload1.c:1081
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
zsh: exit 1     /home/tbm/tmp/gcc/4.2-m68k-117734/gcc/g++  -O2 -fPIC blender-IK_QSegment.cpp
(sid)117:tbm@usurper: ~]
Comment 1 Martin Michlmayr 2006-10-14 21:06:58 UTC
Created attachment 12430 [details]
testcase
Comment 2 Gabriel Dos Reis 2007-02-03 20:38:39 UTC
won't fix in GCC-4.0.x.  Adjusting milestone.
Comment 3 Steven Bosscher 2007-12-18 20:33:42 UTC
Martin, is this a bug you can still reproduce with the current SVN trunk?  If so, could you provide a backtrace from gdb?
Comment 4 Martin Michlmayr 2007-12-19 02:04:41 UTC
Breakpoint 1, fancy_abort (file=0x803da8 "gcc/reload1.c", line=1086,
    function=0x803be1 "reload") at gcc/diagnostic.c:640
640     {
(gdb) where
#0  fancy_abort (file=0x803da8 "gcc/reload1.c", line=1086,
    function=0x803be1 "reload") at gcc/diagnostic.c:640
#1  0x0000000000668070 in reload (first=0x2ae9c3a13ac0, global=1)
    at gcc/reload1.c:1086
#2  0x00000000007253a7 in rest_of_handle_global_alloc ()
    at gcc/global.c:626
#3  0x00000000006a0408 in execute_one_pass (pass=0x98c1a0)
    at gcc/passes.c:881
#4  0x00000000006a056c in execute_pass_list (pass=0x98c1a0)
    at gcc/passes.c:932
#5  0x00000000006a057e in execute_pass_list (pass=0x98aa00)
    at gcc/passes.c:933
#6  0x00000000004d0a1e in tree_rest_of_compilation (fndecl=0x2ae9c39d9e00)
    at gcc/tree-optimize.c:462
#7  0x0000000000473949 in expand_body (fn=0x2ae9c39d9e00)
    at gcc/cp/semantics.c:3095
#8  0x00000000006cb374 in cgraph_expand_function (node=0x2ae9c39ea240)
    at gcc/cgraphunit.c:1243
#9  0x00000000006cbcb5 in cgraph_optimize () at gcc/cgraphunit.c:1308
#10 0x00000000004414af in cp_finish_file () at gcc/cp/decl2.c:3355
#11 0x00000000004b64ba in c_common_parse_file (set_yydebug=<value optimized out>)
    at gcc/c-opts.c:1182
#12 0x0000000000682628 in toplev_main (argc=<value optimized out>, argv=<value optimized out>)
    at gcc/toplev.c:1032
#13 0x00002ae9c351b4ca in __libc_start_main () from /lib/libc.so.6
#14 0x000000000040273a in _start () at ../sysdeps/x86_64/elf/start.S:113
(gdb)
Comment 5 Martin Michlmayr 2007-12-19 02:33:46 UTC
works with 4.3.0 20071219.
Comment 6 Martin Michlmayr 2007-12-19 02:34:38 UTC
(In reply to comment #4)
> Breakpoint 1, fancy_abort (file=0x803da8 "gcc/reload1.c", line=1086,
>     function=0x803be1 "reload") at gcc/diagnostic.c:640

This was with 4.2 (from SVN).
Comment 7 Joseph S. Myers 2008-07-04 21:39:16 UTC
Closing 4.1 branch.
Comment 8 Joseph S. Myers 2009-03-30 19:39:41 UTC
Closing 4.2 branch, fixed in 4.3.