summaryrefslogtreecommitdiff
path: root/gcc/optc-gen.awk
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2011-02-08 17:41:00 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2011-02-08 17:41:00 +0000
commit5e46b0c65bad1b8569d6005f86465ecb020a6715 (patch)
tree8fc008788b764f0ba0d67864e8566ca53db122f5 /gcc/optc-gen.awk
parent32243d46707ec76650af0e33cdf77ee3fc3600eb (diff)
downloadgcc-5e46b0c65bad1b8569d6005f86465ecb020a6715.tar.gz
common.opt (fcx-limited-range): Add SetByCombined flag.
* common.opt (fcx-limited-range): Add SetByCombined flag. (ffinite-math-only, fmath-errno, frounding-math): Likewise. (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise. (fassociative-math, freciprocal-math): Likewise. (funsafe-math-optimizations): Likewise. * opth-gen.awk: Handle SetByCombined. * optc-gen.awk: Likewise. * opts.c (set_fast_math_flags): Don't override flag if set by frontend. (set_unsafe_math_optimizations_flags): Likewise. * doc/options.texi (Option properties): Document SetByCombined. From-SVN: r169930
Diffstat (limited to 'gcc/optc-gen.awk')
-rw-r--r--gcc/optc-gen.awk6
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/optc-gen.awk b/gcc/optc-gen.awk
index 4aaa2a6041a..502b23bf6e0 100644
--- a/gcc/optc-gen.awk
+++ b/gcc/optc-gen.awk
@@ -1,4 +1,4 @@
-# Copyright (C) 2003, 2004, 2007, 2008, 2009, 2010
+# Copyright (C) 2003, 2004, 2007, 2008, 2009, 2010, 2011
# Free Software Foundation, Inc.
# Contributed by Kelley Cook, June 2004.
# Original code from Neil Booth, May 2003.
@@ -250,6 +250,10 @@ for (i = 0; i < n_opts; i++) {
print "#undef x_" name
}
}
+for (i = 0; i < n_opts; i++) {
+ if (flag_set_p("SetByCombined", flags[i]))
+ print " false, /* frontend_set_" var_name(flags[i]) " */"
+}
print "};"
print ""
print "struct gcc_options global_options;"