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 regression/58084] New: FAIL: gcc.dg/torture/pr8081.c -O2 -flto -fno-use-linker-plugin -flto-partition=none (internal compiler error)


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

            Bug ID: 58084
           Summary: FAIL: gcc.dg/torture/pr8081.c  -O2 -flto
                    -fno-use-linker-plugin -flto-partition=none  (internal
                    compiler error)
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: regression
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ktkachov at gcc dot gnu.org

New ICE in the testsuite when targeting arm-none-eabi:

FAIL: gcc.dg/torture/pr8081.c  -O2 -flto -fno-use-linker-plugin
-flto-partition=none  (internal compiler error)
FAIL: gcc.dg/torture/pr8081.c  -O2 -flto -fno-use-linker-plugin
-flto-partition=none  (test for excess errors)
FAIL: gcc.dg/torture/pr8081.c  -O2 -flto -fuse-linker-plugin
-fno-fat-lto-objects  (internal compiler error)
FAIL: gcc.dg/torture/pr8081.c  -O2 -flto -fuse-linker-plugin
-fno-fat-lto-objects  (test for excess errors)
WARNING: gcc.dg/torture/pr8081.c  -O2 -flto -fuse-linker-plugin
-fno-fat-lto-objects  compilation failed to produce executable

example output:

Executing on host: $ROOT/build/obj/gcc2/gcc/xgcc -B$ROOT/build/obj/gcc2/gcc/
$ROOT/gcc/gcc/testsuite/gcc.dg/torture/pr8081.c gcc_tg.o 
-fno-diagnostics-show-caret -fdiagnostics-color=never   -O2 -flto
-fno-use-linker-plugin -flto-partition=none   -specs=rdimon.specs -Wa,-m
no-warn-deprecated      -Wl,-wrap,exit -Wl,-wrap,_exit -Wl,-wrap,main
-Wl,-wrap,abort -lm   -o ./pr8081.exe    (timeout = 300)
$ROOT/gcc/gcc/testsuite/gcc.dg/torture/pr8081.c: In function 'retframe_block':
$ROOT/gcc/gcc/testsuite/gcc.dg/torture/pr8081.c:15:3: error: invalid conversion
in return statement
struct block

struct block

# VUSE <.MEM_6>
return <retval>;
$ROOT/gcc/gcc/testsuite/gcc.dg/torture/pr8081.c:15:3: internal compiler error:
verify_gimple failed
0x89d91d verify_gimple_in_cfg(function*)
        $ROOT/gcc/gcc/tree-cfg.c:4807
0x7c1bf2 execute_function_todo
        $ROOT/gcc/gcc/passes.c:1627
0x7c4d6d execute_todo
        $ROOT/gcc/gcc/passes.c:1660
0x7c6e89 execute_one_ipa_transform_pass
        $ROOT/gcc/gcc/passes.c:1843
0x7c6e89 execute_all_ipa_transforms()
        $ROOT/gcc/gcc/passes.c:1873
0x574348 expand_function
        $ROOT/gcc/gcc/cgraphunit.c:1601
0x575150 expand_all_functions
        $ROOT/gcc/gcc/cgraphunit.c:1712
0x575150 compile()
        $ROOT/gcc/gcc/cgraphunit.c:2049
0x4f9126 lto_main()
        $ROOT/gcc/gcc/lto/lto.c:3872
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
lto-wrapper: $ROOT/build/obj/gcc2/gcc/xgcc returned 1 exit status
collect2: error: lto-wrapper returned 1 exit status
compiler exited with status 1


Bisection shows it started with r201468:

2013-08-02  Jan Hubicka  <jh@suse.cz>

    * lto-cgraph.c (compute_ltrans_boundary): Add abstract origins into
    boundaries.
    * lto-streamer-out.c (tree_is_indexable): Results decls and
    parm decls are not indexable.
    (DFS_write_tree_body): Do not follow args and results.
    (hash_tree): Likewise.
    (output_functions): Rearrange so struct function is needed
    only when real body is output; be able to also ouptut abstract
    functions; output DECL_ARGUMENTS and DECL_RESULT.
    (lto_output): When not in WPA, ale store abstract functions.
    (write_symbol): Do not care about RESULT_DECL.
    (output_symbol_p): Handle correctly sbtract decls.
    * lto-streamer-in.c (input_function): Rearrange so struct
    function can be NULL at entry; allow streaming of
    functions w/o body; store DECL_ARGUMENTS and DECL_RESULT.
    * ipa.c (symtab_remove_unreachable_nodes): Silence confused
    sanity check during LTO.
    * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Skip
    RESULT_DECl and DECL_ARGUMENTS.
    * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
    Likewise.


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