diff --git a/NEWS b/NEWS index 760f9399..cd5d6ae6 100644 --- a/NEWS +++ b/NEWS @@ -92,6 +92,11 @@ GNU Bison NEWS %printer/%destructor, which resulted in compiler errors if there are backslashes or double-quotes in the grammar file name. +*** Portability on ICC + + The Intel compiler claims compatibility with GCC, yet rejects its _Pragma. + Generated parsers now work around this. + * Noteworthy changes in release 3.0.5 (2018-05-27) [stable] ** Bug fixes diff --git a/THANKS b/THANKS index 9cf3ef22..3a68d2ef 100644 --- a/THANKS +++ b/THANKS @@ -89,6 +89,7 @@ Martin Mokrejs mmokrejs@natur.cuni.cz Martin Nylin martin.nylin@linuxmail.org Matt Kraai kraai@alumni.cmu.edu Matt Rosing rosing@peakfive.com +Maxim Prohorenko Maxim.Prohorenko@gmail.com Michael Catanzaro mcatanzaro@gnome.org Michael Felt mamfelt@gmail.com Michael Hayes m.hayes@elec.canterbury.ac.nz diff --git a/data/c.m4 b/data/c.m4 index c28ffc61..346b8fd3 100644 --- a/data/c.m4 +++ b/data/c.m4 @@ -242,7 +242,7 @@ m4_define([b4_attribute_define], # define YYUSE(E) /* empty */ #endif -#if defined __GNUC__ && 407 <= __GNUC__ * 100 + __GNUC_MINOR__ +#if defined __GNUC__ && ! defined __ICC && 407 <= __GNUC__ * 100 + __GNUC_MINOR__ /* Suppress an incorrect diagnostic about yylval being uninitialized. */ # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \ _Pragma ("GCC diagnostic push") \