This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Patch: gcc/real.c `error' label warning
- To: gcc-patches at gcc dot gnu dot org
- Subject: Patch: gcc/real.c `error' label warning
- From: Rodney Brown <rdb at localhost>
- Date: Thu, 27 Jul 2000 09:00:42 +1000 (EST)
- Reply-To: RDBrown at mira dot net, RodneyBrown at pmsc dot com
0724/gcc/real.c:5272: warning: traditional C lacks a separate namespace for labels, identifier `error' conflicts
2000-07-27 Rodney Brown <RodneyBrown@pmsc.com>
* real.c (asctoeg): rename `error' label to unexpected_char_error
--- gcc/real.c.orig Mon Apr 17 10:54:25 2000
+++ gcc/real.c Wed Jul 26 23:49:15 2000
@@ -5173,7 +5173,7 @@ asctoeg (ss, y, oprec)
&& (c != '\0')
&& (c != '\n') && (c != '\r') && (c != ' ')
&& (c != ','))
- goto error;
+ goto unexpected_char_error;
--sp;
while (*sp == '0')
*sp-- = 'z';
@@ -5243,18 +5243,18 @@ asctoeg (ss, y, oprec)
goto expnt;
case '.': /* decimal point */
if (decflg)
- goto error;
+ goto unexpected_char_error;
++decflg;
break;
case '-':
nsign = 0xffff;
if (sgnflg)
- goto error;
+ goto unexpected_char_error;
++sgnflg;
break;
case '+':
if (sgnflg)
- goto error;
+ goto unexpected_char_error;
++sgnflg;
break;
case ',':
@@ -5267,7 +5267,7 @@ asctoeg (ss, y, oprec)
case 'I':
goto infinite;
default:
- error:
+ unexpected_char_error:
#ifdef NANS
einan (yy);
#else