summaryrefslogtreecommitdiff
path: root/gcc/opth-gen.awk
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/opth-gen.awk')
-rw-r--r--gcc/opth-gen.awk3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/opth-gen.awk b/gcc/opth-gen.awk
index 99b5cff29f9..789f9bf3486 100644
--- a/gcc/opth-gen.awk
+++ b/gcc/opth-gen.awk
@@ -73,6 +73,7 @@ print ""
have_save = 0;
+print "#if !defined(IN_LIBGCC2) && !defined(IN_TARGET_LIBS) && !defined(IN_RTS)"
print "#ifndef GENERATOR_FILE"
print "struct gcc_options\n{"
print "#endif"
@@ -125,9 +126,11 @@ for (i = 0; i < n_opts; i++) {
print "#ifndef GENERATOR_FILE"
print "};"
print "extern struct gcc_options global_options;"
+print "extern const struct gcc_options global_options_init;"
print "extern struct gcc_options global_options_set;"
print "#define target_flags_explicit global_options_set.x_target_flags"
print "#endif"
+print "#endif"
print ""
# All of the optimization switches gathered together so they can be saved and restored.