From 511bdc7208ea0589b059a49b2b43c5f761a53e7b Mon Sep 17 00:00:00 2001 From: Braden Obrzut Date: Thu, 2 Jan 2014 19:12:03 -0500 Subject: [PATCH] - Work around GCC 4.8 bug 54570 --- src/parsecontext.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/parsecontext.cpp b/src/parsecontext.cpp index 6fa36b2a8..21b7a0ea6 100644 --- a/src/parsecontext.cpp +++ b/src/parsecontext.cpp @@ -157,6 +157,10 @@ loop: { return TokenTrans[NUM]; } +#if __GNUC__ == 4 && __GNUC_MINOR__ == 8 + // Work around GCC 4.8 bug 54570 causing release build crashes. + asm("" : "+g" (yylval)); +#endif strcpy (yylval->sym, token); return TokenTrans[SYM]; }