diff options
author | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-03-09 07:16:54 +0000 |
---|---|---|
committer | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-03-09 07:16:54 +0000 |
commit | bc762cf3d1657b4274e4b9f4a2af3b2361a406b5 (patch) | |
tree | 0718b3810f4ff9fa63274bdf554a6dd397897f69 /gcc | |
parent | cf21d54deb79e76085952f707ead3c4c833e6284 (diff) | |
download | gcc-bc762cf3d1657b4274e4b9f4a2af3b2361a406b5.tar.gz |
* real.c (real_nan): Remove neg.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@96169 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 2 | ||||
-rw-r--r-- | gcc/real.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7a2c3aa3d3c..4fee0cfc920 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -14,6 +14,8 @@ * loop-unroll.c (analyze_insns_in_loop): Remove preheader. + * real.c (real_nan): Remove neg. + 2005-03-08 Jeff Law <law@redhat.com> * tree-cfg.c (cleanup_control_flow): If removal of a computed diff --git a/gcc/real.c b/gcc/real.c index 7aceb3df038..5d1a79f57af 100644 --- a/gcc/real.c +++ b/gcc/real.c @@ -2117,7 +2117,6 @@ real_nan (REAL_VALUE_TYPE *r, const char *str, int quiet, else { int base = 10, d; - bool neg = false; memset (r, 0, sizeof (*r)); r->cl = rvc_nan; @@ -2127,7 +2126,7 @@ real_nan (REAL_VALUE_TYPE *r, const char *str, int quiet, while (ISSPACE (*str)) str++; if (*str == '-') - str++, neg = true; + str++; else if (*str == '+') str++; if (*str == '0') |