https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79902

            Bug ID: 79902
           Summary: ICE in rebuild_frequencies, at predict.c:3689
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: ipa
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
                CC: hubicka at ucw dot cz
  Target Milestone: ---

We ICE on:

$ gcc /home/marxin/Programming/gcc/gcc/testsuite/gcc.target/i386/pr78419.c -O3
-fbranch-probabilities
/home/marxin/Programming/gcc/gcc/testsuite/gcc.target/i386/pr78419.c:15:1:
error: attribute(target("foo")) is unknown
 bar (double *__restrict a, double *__restrict b, int n) /* { dg-error
"attribute\[^\n\r]*foo\[^\n\r]* is unknown" } */
 ^~~
/home/marxin/Programming/gcc/gcc/testsuite/gcc.target/i386/pr78419.c: In
function ‘bar._GLOBAL___foo.resolver.part.4’:
/home/marxin/Programming/gcc/gcc/testsuite/gcc.target/i386/pr78419.c:24:1:
internal compiler error: in rebuild_frequencies, at predict.c:3689
 }
 ^
0xb3de98 rebuild_frequencies()
        ../../gcc/predict.c:3689
0xc8a374 tree_function_versioning(tree_node*, tree_node*, vec<ipa_replace_map*,
va_gc, vl_embed>*, bool, bitmap_head*, bool, bitmap_head*, basic_block_def*)
        ../../gcc/tree-inline.c:6007
0x8027e0 cgraph_node::create_version_clone_with_body(vec<cgraph_edge*, va_heap,
vl_ptr>, vec<ipa_replace_map*, va_gc, vl_embed>*, bitmap_head*, bool,
bitmap_head*, basic_block_def*, char const*)
        ../../gcc/cgraphclones.c:1003
0x1346ded split_function
        ../../gcc/ipa-split.c:1359
0x1346ded execute_split_functions
        ../../gcc/ipa-split.c:1865
0x1348258 execute_feedback_split_functions
        ../../gcc/ipa-split.c:1928
0x1348258 execute
        ../../gcc/ipa-split.c:1960

I'll fix that.

Reply via email to