diff options
author | Chandrakala Chavva <cchavva@redhat.com> | 2000-07-10 16:10:15 -0400 |
---|---|---|
committer | Chandra Chavva <cchavva@gcc.gnu.org> | 2000-07-10 16:10:15 -0400 |
commit | 46d3a87396f1e5be05d7ef5709cdb0cc968b10cf (patch) | |
tree | a1b03704b1ab4a43af71f698bb714888ddcdaad6 /gcc/toplev.c | |
parent | 92c26242fab0e2558697221a2597101821b17346 (diff) | |
download | gcc-46d3a87396f1e5be05d7ef5709cdb0cc968b10cf.zip gcc-46d3a87396f1e5be05d7ef5709cdb0cc968b10cf.tar.gz gcc-46d3a87396f1e5be05d7ef5709cdb0cc968b10cf.tar.bz2 |
flags.h: Add new variable flag_single_precision_constant.
* flags.h : Add new variable flag_single_precision_constant.
* toplev.c (display_help) : Add -fsingle-precision-constant option.
(flag_single_precision_constant): New.
* c-lex.c (yylex): Convert floating point constant to single
precision constant.
* invoke.texi : Add documentation for this new option.
From-SVN: r34946
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r-- | gcc/toplev.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c index d02f840..098a2ec 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -744,6 +744,8 @@ int flag_schedule_speculative = 1; int flag_schedule_speculative_load = 0; int flag_schedule_speculative_load_dangerous = 0; +int flag_single_precision_constant; + /* flag_on_branch_count_reg means try to replace add-1,compare,branch tupple by a cheaper branch, on a count register. */ int flag_branch_on_count_reg; @@ -1103,7 +1105,9 @@ lang_independent_options f_options[] = {"bounded-pointers", &flag_bounded_pointers, 1, "Compile pointers as triples: value, base & end" }, {"bounds-check", &flag_bounds_check, 1, - "Generate code to check bounds before dereferencing pointers and arrays" } + "Generate code to check bounds before dereferencing pointers and arrays" }, + {"single-precision-constant", &flag_single_precision_constant, 1, + "Convert floating point constant to single precision constant"} }; #define NUM_ELEM(a) (sizeof (a) / sizeof ((a)[0])) |