[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bison-1.875: g++ and __attribute__ line
From: |
Paul Eggert |
Subject: |
Re: bison-1.875: g++ and __attribute__ line |
Date: |
Sat, 4 Jan 2003 16:49:47 -0800 (PST) |
> Date: Sat, 4 Jan 2003 07:14:12 -0700 (MST)
> From: "Nelson H. F. Beebe" <address@hidden>
> No, it is not an issue of the gcc version;
Thanks for clarifying this. I installed this patch:
2003-01-04 Paul Eggert <address@hidden>
* data/yacc.c (yyerrlab1): Omit attribute if __cplusplus is defined,
since GNU C++ (as of 3.2.1) does not allow attributes on labels.
Problem reported by Nelson H. F. Beebe.
--- data/yacc.c 3 Jan 2003 14:33:17 -0000 1.49
+++ data/yacc.c 5 Jan 2003 00:48:16 -0000 1.50
@@ -1115,7 +1115,10 @@ yyerrlab1:
invokes YYERROR. MacOS 10.2.3's buggy "smart preprocessor"
insists on the trailing semicolon. */
#if defined (__GNUC_MINOR__) && 2093 <= (__GNUC__ * 1000 + __GNUC_MINOR__)
+ /* GNU C++ (as of version 3.2.1) does not allow attributes on labels. */
+# ifndef __cplusplus
__attribute__ ((__unused__));
+# endif
#endif
]b4_location_if([ yylerrsp = yylsp;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: bison-1.875: g++ and __attribute__ line,
Paul Eggert <=