diff options
author | cchavva <cchavva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-07-10 20:10:15 +0000 |
---|---|---|
committer | cchavva <cchavva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-07-10 20:10:15 +0000 |
commit | 082ea57a619711e031b35d7f7ebc1aeee6c4f82b (patch) | |
tree | a1b03704b1ab4a43af71f698bb714888ddcdaad6 /gcc/c-lex.c | |
parent | d2b33ceff2ee355bdd134e1a3cad994aeb58d9a0 (diff) | |
download | gcc-082ea57a619711e031b35d7f7ebc1aeee6c4f82b.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34946 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-lex.c')
-rw-r--r-- | gcc/c-lex.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/c-lex.c b/gcc/c-lex.c index f720a3f9b47..e38b8070ed6 100644 --- a/gcc/c-lex.c +++ b/gcc/c-lex.c @@ -1176,6 +1176,8 @@ parse_float (data) else { errno = 0; + if (flag_single_precision_constant) + args->type = float_type_node; if (args->base == 16) args->value = REAL_VALUE_HTOF (copy, TYPE_MODE (args->type)); else |