mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
(union yyalloc): Do not evaluate
YYSTYPE_IS_TRIVIAL or YYSTYPE_IS_TRIVIAL unless they are defined. This fixes a problem reported by John Bowman when the Compaq/HP Alpha cxx compiler happy (e.g. using cxx -D__USE_STD_IOSTREAM -ansi -Wall -gall). (YYCOPY): Do not evaluate __GNUC__ unless it is defined.
This commit is contained in:
@@ -248,7 +248,8 @@ b4_syncline([@oline@], [@ofile@])[
|
|||||||
|
|
||||||
#if (! defined (yyoverflow) \
|
#if (! defined (yyoverflow) \
|
||||||
&& (! defined (__cplusplus) \
|
&& (! defined (__cplusplus) \
|
||||||
|| (]b4_location_if([YYLTYPE_IS_TRIVIAL && ])[YYSTYPE_IS_TRIVIAL)))
|
|| (]b4_location_if([[defined (YYLTYPE_IS_TRIVIAL) && YYLTYPE_IS_TRIVIAL \
|
||||||
|
&& ]])[defined (YYSTYPE_IS_TRIVIAL) && YYSTYPE_IS_TRIVIAL)))
|
||||||
|
|
||||||
/* A type that is properly aligned for any stack member. */
|
/* A type that is properly aligned for any stack member. */
|
||||||
union yyalloc
|
union yyalloc
|
||||||
@@ -275,7 +276,7 @@ union yyalloc
|
|||||||
/* Copy COUNT objects from FROM to TO. The source and destination do
|
/* Copy COUNT objects from FROM to TO. The source and destination do
|
||||||
not overlap. */
|
not overlap. */
|
||||||
# ifndef YYCOPY
|
# ifndef YYCOPY
|
||||||
# if 1 < __GNUC__
|
# if defined (__GNUC__) && 1 < __GNUC__
|
||||||
# define YYCOPY(To, From, Count) \
|
# define YYCOPY(To, From, Count) \
|
||||||
__builtin_memcpy (To, From, (Count) * sizeof (*(From)))
|
__builtin_memcpy (To, From, (Count) * sizeof (*(From)))
|
||||||
# else
|
# else
|
||||||
|
|||||||
Reference in New Issue
Block a user