diff options
Diffstat (limited to 'gcc/tree.c')
-rw-r--r-- | gcc/tree.c | 59 |
1 files changed, 1 insertions, 58 deletions
@@ -2691,9 +2691,7 @@ do { tree _node = (NODE); \ Constants, decls, types and misc nodes cannot be. We define 5 non-variadic functions, from 0 to 4 arguments. This is - enough for all extant tree codes. These functions can be called - directly (preferably!), but can also be obtained via GCC preprocessor - magic within the build macro. */ + enough for all extant tree codes. */ tree build0_stat (enum tree_code code, tree tt MEM_STAT_DECL) @@ -2955,61 +2953,6 @@ build7_stat (enum tree_code code, tree tt, tree arg0, tree arg1, return t; } -/* Backup definition for non-gcc build compilers. */ - -tree -(build) (enum tree_code code, tree tt, ...) -{ - tree t, arg0, arg1, arg2, arg3, arg4, arg5, arg6; - int length = TREE_CODE_LENGTH (code); - va_list p; - - va_start (p, tt); - switch (length) - { - case 0: - t = build0 (code, tt); - break; - case 1: - arg0 = va_arg (p, tree); - t = build1 (code, tt, arg0); - break; - case 2: - arg0 = va_arg (p, tree); - arg1 = va_arg (p, tree); - t = build2 (code, tt, arg0, arg1); - break; - case 3: - arg0 = va_arg (p, tree); - arg1 = va_arg (p, tree); - arg2 = va_arg (p, tree); - t = build3 (code, tt, arg0, arg1, arg2); - break; - case 4: - arg0 = va_arg (p, tree); - arg1 = va_arg (p, tree); - arg2 = va_arg (p, tree); - arg3 = va_arg (p, tree); - t = build4 (code, tt, arg0, arg1, arg2, arg3); - break; - case 7: - arg0 = va_arg (p, tree); - arg1 = va_arg (p, tree); - arg2 = va_arg (p, tree); - arg3 = va_arg (p, tree); - arg4 = va_arg (p, tree); - arg5 = va_arg (p, tree); - arg6 = va_arg (p, tree); - t = build7 (code, tt, arg0, arg1, arg2, arg3, arg4, arg5, arg6); - break; - default: - gcc_unreachable (); - } - va_end (p); - - return t; -} - /* Similar except don't specify the TREE_TYPE and leave the TREE_SIDE_EFFECTS as 0. It is permissible for arguments to be null, |