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@redhat.com>2008-07-03 10:31:03 +0000
commit0b27f57ce1dbe2b226d4cad615d3b73d73b0ca8b (patch)
treed9226b0dea63dab1260bbce71d51094a417caf69 /gcc/vec.h
parent791f22009661969c00cd12fd60955a3c825b75ff (diff)
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. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@137413 138bc75d-0d04-0410-961f-82ee72b054a4
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 10bdcc5f2e9..c07ee221584 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