Skip to content

Commit 8568519

Browse files
committed
Fix ira cost segfault
1 parent c8add0c commit 8568519

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

gcc/config/i386/i386-options.cc

+5
Original file line numberDiff line numberDiff line change
@@ -3230,6 +3230,11 @@ ix86_option_override_internal (bool main_args_p,
32303230
= opts->x_flag_unsafe_math_optimizations;
32313231
target_option_default_node = target_option_current_node
32323232
= build_target_option_node (opts, opts_set);
3233+
// TODO: check if this is the correct location. It should probably be in some finalizer function, but I don't
3234+
// know if there's one.
3235+
target_attribute_cache[0] = NULL;
3236+
target_attribute_cache[1] = NULL;
3237+
target_attribute_cache[2] = NULL;
32333238
}
32343239

32353240
const bool cf_okay_p = (TARGET_64BIT || TARGET_CMOV);

0 commit comments

Comments
 (0)