Reducing the altreturn_5.f90 failure on i686-pc-linux-gnu, we get $ cat alt.f90 SUBROUTINE R (i, *, *) INTEGER i RETURN i END $ gdb ~/libexec/gcc/i686-pc-linux-gnu/4.3.0/f951 GNU gdb 6.4.90-debian Copyright (C) 2006 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i486-linux-gnu"...Using host libthread_db library "/lib/i686/cmov/libthread_db.so.1".
(gdb) b fancy_abort Breakpoint 1 at 0x81747c0: file ../../../gcc/trunk/gcc/diagnostic.c, line 654. (gdb) r -fdefault-integer-8 -O1 alt.f90 Starting program: /home/ig25/libexec/gcc/i686-pc-linux-gnu/4.3.0/f951 -fdefault-integer-8 -O1 alt.f90 r Analyzing compilation unit Performing interprocedural optimizations <visibility> <early_local_cleanups> <inline> <static-var> <pure-const>Assembling functions: r Breakpoint 1, fancy_abort (file=0x875c16e "../../../gcc/trunk/gcc/expr.c", line=3316, function=0x875ca0f "emit_move_insn") at ../../../gcc/trunk/gcc/diagnostic.c:654 654 { (gdb) bt #0 fancy_abort (file=0x875c16e "../../../gcc/trunk/gcc/expr.c", line=3316, function=0x875ca0f "emit_move_insn") at ../../../gcc/trunk/gcc/diagnostic.c:654 #1 0x081d63d3 in emit_move_insn (x=0xb7b35d70, y=0xb7b35dd0) at ../../../gcc/trunk/gcc/expr.c:3315 #2 0x0831e856 in expand_value_return (val=0xb7b35dd0) at ../../../gcc/trunk/gcc/stmt.c:1545 #3 0x0831ed0a in expand_return (retval=0xb7b2f594) at ../../../gcc/trunk/gcc/stmt.c:1729 #4 0x081c568a in expand_expr_real_1 (exp=0xb7b29da0, target=0x0, tmode=VOIDmode, modifier=EXPAND_NORMAL, alt_rtl=0x0) at ../../../gcc/trunk/gcc/expr.c:8929 #5 0x081d4e43 in expand_expr_real (exp=0xb7b29da0, target=0xb7ab0210, tmode=VOIDmode, modifier=EXPAND_NORMAL, alt_rtl=0x0) at ../../../gcc/trunk/gcc/expr.c:6902 #6 0x08318d6c in expand_expr_stmt (exp=0xb7b29da0) at ../../../gcc/trunk/gcc/expr.h:503 #7 0x0864acbf in expand_gimple_basic_block (bb=0xb7f29528) at ../../../gcc/trunk/gcc/cfgexpand.c:1614 #8 0x0864bd38 in tree_expand_cfg () at ../../../gcc/trunk/gcc/cfgexpand.c:1921 #9 0x082ab42f in execute_one_pass (pass=0x882e3e0) at ../../../gcc/trunk/gcc/passes.c:1124 #10 0x082ab62f in execute_pass_list (pass=0x882e3e0) ---Type <return> to continue, or q <return> to quit--- at ../../../gcc/trunk/gcc/passes.c:1177 #11 0x0838ebd2 in tree_rest_of_compilation (fndecl=0xb7b2ae00) at ../../../gcc/trunk/gcc/tree-optimize.c:405 #12 0x08502870 in cgraph_expand_function (node=0xb7b2af00) at ../../../gcc/trunk/gcc/cgraphunit.c:1072 #13 0x08504fd0 in cgraph_optimize () at ../../../gcc/trunk/gcc/cgraphunit.c:1141 #14 0x080b96c5 in gfc_be_parse_file (set_yydebug=0) at ../../../gcc/trunk/gcc/fortran/f95-lang.c:305 #15 0x0832db78 in toplev_main (argc=4, argv=0xbfb7c9a4) at ../../../gcc/trunk/gcc/toplev.c:1043 #16 0x0810067f in main (argc=201326619, argv=0x0) at ../../../gcc/trunk/gcc/main.c:35 -- Summary: ICE in emit_move_insn with -fdefault-integer-8 Product: gcc Version: 4.3.0 Status: UNCONFIRMED Keywords: wrong-code Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: tkoenig at gcc dot gnu dot org OtherBugsDependingO 32770 nThis: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32938