Commit cdfff38e by Zack Weinberg Committed by Zack Weinberg

c-parse.in (string action): Do not warn about ANSI string concatenation in system headers.

1999-12-17 13:21 -0800  Zack Weinberg  <zack@rabi.columbia.edu>

	* c-parse.in (string action): Do not warn about ANSI string
	concatenation in system headers.  Affects C parser only.
	* c-parse.y, c-parse.c, c-parse.h: Rebuild.

From-SVN: r30998
parent 6f19291a
1999-12-17 13:21 -0800 Zack Weinberg <zack@rabi.columbia.edu>
* c-parse.in (string action): Do not warn about ANSI string
concatenation in system headers. Affects C parser only.
* c-parse.y, c-parse.c, c-parse.h: Rebuild.
1999-12-16 Jakub Jelinek <jakub@redhat.com> 1999-12-16 Jakub Jelinek <jakub@redhat.com>
* config/sparc/sparc.h (TARGET_ARCH32): Exchange ifdefs so that if * config/sparc/sparc.h (TARGET_ARCH32): Exchange ifdefs so that if
......
typedef union {long itype; tree ttype; enum tree_code code; typedef union {long itype; tree ttype; enum tree_code code;
char *filename; int lineno; int ends_in_label; } YYSTYPE; char *filename; int lineno; int ends_in_label; } YYSTYPE;
#define IDENTIFIER 258 #define IDENTIFIER 257
#define TYPENAME 259 #define TYPENAME 258
#define SCSPEC 260 #define SCSPEC 259
#define TYPESPEC 261 #define TYPESPEC 260
#define TYPE_QUAL 262 #define TYPE_QUAL 261
#define CONSTANT 263 #define CONSTANT 262
#define STRING 264 #define STRING 263
#define ELLIPSIS 265 #define ELLIPSIS 264
#define SIZEOF 266 #define SIZEOF 265
#define ENUM 267 #define ENUM 266
#define STRUCT 268 #define STRUCT 267
#define UNION 269 #define UNION 268
#define IF 270 #define IF 269
#define ELSE 271 #define ELSE 270
#define WHILE 272 #define WHILE 271
#define DO 273 #define DO 272
#define FOR 274 #define FOR 273
#define SWITCH 275 #define SWITCH 274
#define CASE 276 #define CASE 275
#define DEFAULT 277 #define DEFAULT 276
#define BREAK 278 #define BREAK 277
#define CONTINUE 279 #define CONTINUE 278
#define RETURN 280 #define RETURN 279
#define GOTO 281 #define GOTO 280
#define ASM_KEYWORD 282 #define ASM_KEYWORD 281
#define TYPEOF 283 #define TYPEOF 282
#define ALIGNOF 284 #define ALIGNOF 283
#define ATTRIBUTE 285 #define ATTRIBUTE 284
#define EXTENSION 286 #define EXTENSION 285
#define LABEL 287 #define LABEL 286
#define REALPART 288 #define REALPART 287
#define IMAGPART 289 #define IMAGPART 288
#define VA_ARG 290 #define VA_ARG 289
#define END_OF_LINE 291 #define END_OF_LINE 290
#define ASSIGN 292 #define ASSIGN 291
#define OROR 293 #define OROR 292
#define ANDAND 294 #define ANDAND 293
#define EQCOMPARE 295 #define EQCOMPARE 294
#define ARITHCOMPARE 296 #define ARITHCOMPARE 295
#define LSHIFT 297 #define LSHIFT 296
#define RSHIFT 298 #define RSHIFT 297
#define UNARY 299 #define UNARY 298
#define PLUSPLUS 300 #define PLUSPLUS 299
#define MINUSMINUS 301 #define MINUSMINUS 300
#define HYPERUNARY 302 #define HYPERUNARY 301
#define POINTSAT 303 #define POINTSAT 302
#define INTERFACE 304 #define INTERFACE 303
#define IMPLEMENTATION 305 #define IMPLEMENTATION 304
#define END 306 #define END 305
#define SELECTOR 307 #define SELECTOR 306
#define DEFS 308 #define DEFS 307
#define ENCODE 309 #define ENCODE 308
#define CLASSNAME 310 #define CLASSNAME 309
#define PUBLIC 311 #define PUBLIC 310
#define PRIVATE 312 #define PRIVATE 311
#define PROTECTED 313 #define PROTECTED 312
#define PROTOCOL 314 #define PROTOCOL 313
#define OBJECTNAME 315 #define OBJECTNAME 314
#define CLASS 316 #define CLASS 315
#define ALIAS 317 #define ALIAS 316
#define OBJC_STRING 318 #define OBJC_STRING 317
extern YYSTYPE yylval; extern YYSTYPE yylval;
...@@ -894,7 +894,7 @@ string: ...@@ -894,7 +894,7 @@ string:
| string STRING | string STRING
{ $$ = chainon ($1, $2); { $$ = chainon ($1, $2);
ifc ifc
if (warn_traditional) if (warn_traditional && !in_system_header)
warning ("Use of ANSI string concatenation"); warning ("Use of ANSI string concatenation");
end ifc end ifc
} }
......
...@@ -747,7 +747,7 @@ string: ...@@ -747,7 +747,7 @@ string:
STRING STRING
| string STRING | string STRING
{ $$ = chainon ($1, $2); { $$ = chainon ($1, $2);
if (warn_traditional) if (warn_traditional && !in_system_header)
warning ("Use of ANSI string concatenation"); warning ("Use of ANSI string concatenation");
} }
; ;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment