[LLVMdev] More configure problems

Henrik Bach henrik_bach_llvm at hotmail.com
Mon Aug 30 23:58:32 PDT 2004


>From: Jeff Cohen <jeffc at jolt-lang.org>
>Date: Mon, 30 Aug 2004 21:46:42 -0700

>FileParser.tab.c: In function `int Fileparse()':
>FileParser.tab.c:2043: error: syntax error before `goto'
>
>The offending lines bison generated are:
>
>/*----------------------------------------------------.
>| yyerrlab1 -- error raised explicitly by an action.  |
>`----------------------------------------------------*/
>yyerrlab1:
>
>   /* Suppress GCC warning that yyerrlab1 is unused when no action
>      invokes YYERROR.  */
>#if defined (__GNUC_MINOR__) && 2093 <= (__GNUC__ * 1000 + __GNUC_MINOR__)
>   __attribute__ ((__unused__))
>#endif
>
>   goto yyerrlab2;     <== line 2043
>
>I'm using bison 1.875.  But it worked the last time, so I don't know why
>it doesn't work now.  Deleting the __attribute__ clause fixes it.
>

Or correctly terminate the statement/line with ; (although it becomes a 
warning about an empty statement).

/Henrik

_________________________________________________________________
Opret en gratis Hotmail-konto  http://www.hotmail.com med udsigt til 250 MB 
lagerkapacitet




More information about the llvm-dev mailing list