summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authordannysmith <dannysmith@138bc75d-0d04-0410-961f-82ee72b054a4>2004-02-10 23:05:58 +0000
committerdannysmith <dannysmith@138bc75d-0d04-0410-961f-82ee72b054a4>2004-02-10 23:05:58 +0000
commitcd2749e38a78e55b80139c92b2fe26f0b71c0f74 (patch)
treebcb9f6cee47f3d63907da0fe781fce9cc926a71e /gcc
parent533741d3ff96903ba0f319153c2001131fc7d6bf (diff)
downloadgcc-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/ChangeLog6
-rw-r--r--gcc/real.c2
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;