aboutsummaryrefslogtreecommitdiff
path: root/gcc/vec.h
diff options
context:
space:
mode:
authorAndrew Haley <aph@redhat.com>2008-07-03 10:31:03 +0000
committerAndrew Haley <aph@gcc.gnu.org>2008-07-03 10:31:03 +0000
commit70d3fcabfd2d4446b6ff44454c8f81d51ab92f8b (patch)
treed9226b0dea63dab1260bbce71d51094a417caf69 /gcc/vec.h
parentd92007910f9e9033056d558dd4a49e4828cc0067 (diff)
downloadgcc-70d3fcabfd2d4446b6ff44454c8f81d51ab92f8b.zip
gcc-70d3fcabfd2d4446b6ff44454c8f81d51ab92f8b.tar.gz
gcc-70d3fcabfd2d4446b6ff44454c8f81d51ab92f8b.tar.bz2
re PR bootstrap/33304 (Bootstrap failure on solaris2 using cc due to empty macro arguments)
2008-07-03 Andrew Haley <aph@redhat.com> PR bootstrap/33304 * vec.h (VEC_TA): New. (DEF_VEC_I, DEF_VEC_P, DEF_VEC_ALLOC_I, DEF_VEC_ALLOC_P, DEF_VEC_O, DEF_VEC_ALLOC_O: Use VEC_TA. * c-common.c (C_COMMON_FIXED_TYPES_SAT): New macro. (C_COMMON_FIXED_MODE_TYPES_SAT): New macro. (C_COMMON_FIXED_TYPES): Remove first arg. (C_COMMON_FIXED_MODE_TYPES): Likewise. * tree.c (MAKE_FIXED_TYPE_NODE): Break into two macros, MAKE_FIXED_TYPE_NODE and MAKE_FIXED_TYPE_NODE_WIDTH in order not to use empty macro arguments. From-SVN: r137413
Diffstat (limited to 'gcc/vec.h')
-rw-r--r--gcc/vec.h18
1 files changed, 12 insertions, 6 deletions
diff --git a/gcc/vec.h b/gcc/vec.h
index 10bdcc5..c07ee22 100644
--- a/gcc/vec.h
+++ b/gcc/vec.h
@@ -480,6 +480,12 @@ typedef struct VEC(T,A) GTY \
VEC(T,B) base; \
} VEC(T,A)
+#define VEC_TA(T,B,A) \
+typedef struct VEC(T,A) \
+{ \
+ VEC(T,B) base; \
+} VEC(T,A)
+
/* Convert to base type. */
#define VEC_BASE(P) ((P) ? &(P)->base : 0)
@@ -491,11 +497,11 @@ static inline void VEC_OP (T,must_be,integral_type) (void) \
} \
\
VEC_T(T,base); \
-VEC_TA_GTY(T,base,none,); \
+VEC_TA(T,base,none); \
DEF_VEC_FUNC_P(T) \
struct vec_swallow_trailing_semi
#define DEF_VEC_ALLOC_I(T,A) \
-VEC_TA_GTY(T,base,A,); \
+VEC_TA(T,base,A); \
DEF_VEC_ALLOC_FUNC_I(T,A) \
struct vec_swallow_trailing_semi
@@ -507,11 +513,11 @@ static inline void VEC_OP (T,must_be,pointer_type) (void) \
} \
\
VEC_T_GTY(T,base); \
-VEC_TA_GTY(T,base,none,); \
+VEC_TA(T,base,none); \
DEF_VEC_FUNC_P(T) \
struct vec_swallow_trailing_semi
#define DEF_VEC_ALLOC_P(T,A) \
-VEC_TA_GTY(T,base,A,); \
+VEC_TA(T,base,A); \
DEF_VEC_ALLOC_FUNC_P(T,A) \
struct vec_swallow_trailing_semi
@@ -797,11 +803,11 @@ static inline T *VEC_OP (T,A,safe_insert) \
/* Vector of object. */
#define DEF_VEC_O(T) \
VEC_T_GTY(T,base); \
-VEC_TA_GTY(T,base,none,); \
+VEC_TA(T,base,none); \
DEF_VEC_FUNC_O(T) \
struct vec_swallow_trailing_semi
#define DEF_VEC_ALLOC_O(T,A) \
-VEC_TA_GTY(T,base,A,); \
+VEC_TA(T,base,A); \
DEF_VEC_ALLOC_FUNC_O(T,A) \
struct vec_swallow_trailing_semi