Skip to content

Commit

Permalink
Merge pull request #39 from antoyo/fix/ira-cost-segfault
Browse files Browse the repository at this point in the history
Fix ira cost segfault
  • Loading branch information
antoyo authored Nov 2, 2023
2 parents b47529f + d9034ac commit b334f15
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions gcc/config/i386/i386-options.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2970,6 +2970,11 @@ ix86_option_override_internal (bool main_args_p,
= opts->x_flag_unsafe_math_optimizations;
target_option_default_node = target_option_current_node
= build_target_option_node (opts, opts_set);
// TODO: check if this is the correct location. It should probably be in some finalizer function, but I don't
// know if there's one.
target_attribute_cache[0] = NULL;
target_attribute_cache[1] = NULL;
target_attribute_cache[2] = NULL;
}

if (opts->x_flag_cf_protection != CF_NONE)
Expand Down

0 comments on commit b334f15

Please sign in to comment.