diff options
author | dannysmith <dannysmith@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-02-10 23:05:58 +0000 |
---|---|---|
committer | dannysmith <dannysmith@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-02-10 23:05:58 +0000 |
commit | cd2749e38a78e55b80139c92b2fe26f0b71c0f74 (patch) | |
tree | bcb9f6cee47f3d63907da0fe781fce9cc926a71e /gcc | |
parent | 533741d3ff96903ba0f319153c2001131fc7d6bf (diff) | |
download | gcc-cd2749e38a78e55b80139c92b2fe26f0b71c0f74.tar.gz |
PR c/14088
real.c (real_from_string): Look for 'X' as well as 'x' in
hexfloat strings.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@77619 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/real.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5cfcbfa21cd..1311c647c66 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2004-02-10 Danny Smith <dannysmith@users.sourceforge.net> + + PR c/14088 + real.c (real_from_string): Look for 'X' as well as 'x' in + hexfloat strings. + 2004-02-10 Kazu Hirata <kazu@cs.umass.edu> * config/h8300/h8300.md: Remove an incorrect comment about diff --git a/gcc/real.c b/gcc/real.c index 474da31df6c..ed671db0e4d 100644 --- a/gcc/real.c +++ b/gcc/real.c @@ -1769,7 +1769,7 @@ real_from_string (REAL_VALUE_TYPE *r, const char *str) else if (*str == '+') str++; - if (str[0] == '0' && str[1] == 'x') + if (str[0] == '0' && (str[1] == 'x' || str[1] == 'X')) { /* Hexadecimal floating point. */ int pos = SIGNIFICAND_BITS - 4, d; |