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 c/38695] New: [4.4 regression] gcc.c-torture/compile/pr37433.c ICE on trunk arm_function_in_section_p


4.3.2 works at -O0/1/2/3 but trunk at rev 142984 works at -O0 and fail at
-O1/2/3

guerby@gcc50:~$ /home/guerby/build-142984/gcc/xgcc
-B/home/guerby/build-142984/gcc/   -O1  -w -c  -o pr37433.o
/home/guerby/trunk/gcc/testsuite/gcc.c-torture/compile/pr37433.c
/home/guerby/trunk/gcc/testsuite/gcc.c-torture/compile/pr37433.c: In function
'regex_subst':
/home/guerby/trunk/gcc/testsuite/gcc.c-torture/compile/pr37433.c:4: internal
compiler error: tree check: expected tree that contains 'decl with visibility'
structure, have 'string_cst' in arm_function_in_section_p, at
config/arm/arm.c:3324
Please submit a full bug report,
with preprocessed source if appropriate.

(gdb) bt
#0  tree_contains_struct_check_failed (node=<value optimized out>, en=<value
optimized out>, file=0x7b1004 "../../trunk/gcc/config/arm/arm.c", line=3324,
function=0x7b0a60 "arm_function_in_section_p")
    at ../../trunk/gcc/tree.c:7228
#1  0x004d82d0 in arm_is_long_call_p (decl=0x4023ed80) at
../../trunk/gcc/config/arm/arm.c:3324
#2  0x00586e94 in gen_call_value (operand0=0x4023ee40, operand1=0x402386e0,
operand2=0x401b4450, operand3=<value optimized out>) at
../../trunk/gcc/config/arm/arm.md:8431
#3  0x000cbe28 in emit_call_1 (funexp=0x4023edc0, fntree=0x40020780,
fndecl=<value optimized out>, funtype=<value optimized out>, stack_size=0,
rounded_stack_size=0, struct_value_size=0, 
    next_arg_reg=0x401b4450, valreg=0x4023ee40, old_inhibit_defer_pop=0,
call_fusage=0x402386d0, ecf_flags=0, args_so_far=0xbefff0b4) at
../../trunk/gcc/calls.c:348
#4  0x000d11d0 in expand_call (exp=<value optimized out>, target=<value
optimized out>, ignore=<value optimized out>) at ../../trunk/gcc/calls.c:2812
#5  0x00168708 in expand_expr_real_1 (exp=0x40020780, target=0x4023eba0,
tmode=<value optimized out>, modifier=<value optimized out>,
alt_rtl=0xbefff274) at ../../trunk/gcc/expr.c:8078
#6  0x00172864 in expand_expr_real (exp=0x40020780, target=<value optimized
out>, tmode=<value optimized out>, modifier=<value optimized out>,
alt_rtl=0xbefff274) at ../../trunk/gcc/expr.c:7125
#7  0x0017931c in store_expr (exp=0x40020780, target=0x4023eba0,
call_param_p=0, nontemporal=0 '\0') at ../../trunk/gcc/expr.c:4611
#8  0x0017be20 in expand_assignment (to=0x401bc160, from=0x40020780,
nontemporal=0 '\0') at ../../trunk/gcc/expr.c:4395
#9  0x001659c8 in expand_expr_real_1 (exp=0x402296b8, target=0x0, tmode=<value
optimized out>, modifier=<value optimized out>, alt_rtl=0x0) at
../../trunk/gcc/expr.c:9232
#10 0x00172864 in expand_expr_real (exp=0x402296b8, target=<value optimized
out>, tmode=<value optimized out>, modifier=<value optimized out>, alt_rtl=0x0)
at ../../trunk/gcc/expr.c:7125
#11 0x0030d444 in expand_expr_stmt (exp=0x7aa65c) at ../../trunk/gcc/expr.h:539
#12 0x0063bcc8 in expand_gimple_basic_block (bb=0x401a8ac0) at
../../trunk/gcc/cfgexpand.c:1980
#13 0x0063cc58 in gimple_expand_cfg () at ../../trunk/gcc/cfgexpand.c:2377
#14 0x0026ebc8 in execute_one_pass (pass=0x91f6cc) at
../../trunk/gcc/passes.c:1279
#15 0x0026ee34 in execute_pass_list (pass=0x91f6cc) at
../../trunk/gcc/passes.c:1328
#16 0x003726f4 in tree_rest_of_compilation (fndecl=0x40232700) at
../../trunk/gcc/tree-optimize.c:419
#17 0x004e92d4 in cgraph_expand_function (node=0x401b0900) at
../../trunk/gcc/cgraphunit.c:1047
#18 0x004eb35c in cgraph_optimize () at ../../trunk/gcc/cgraphunit.c:1106
#19 0x0001cabc in c_write_global_declarations () at
../../trunk/gcc/c-decl.c:8074
#20 0x0031e58c in toplev_main (argc=<value optimized out>, argv=<value
optimized out>) at ../../trunk/gcc/toplev.c:981
#21 0x40095dfc in __libc_start_main () from /lib/libc.so.6
#22 0x0000aa7c in _start ()


-- 
           Summary: [4.4 regression] gcc.c-torture/compile/pr37433.c ICE on
                    trunk arm_function_in_section_p
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: laurent at guerby dot net
 GCC build triplet: arm-linux-gnueabi
  GCC host triplet: arm-linux-gnueabi
GCC target triplet: arm-linux-gnueabi


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38695


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