diff options
author | Trevor Saunders <tbsaunde+gcc@tbsaunde.org> | 2015-05-22 01:03:11 +0000 |
---|---|---|
committer | Trevor Saunders <tbsaunde@gcc.gnu.org> | 2015-05-22 01:03:11 +0000 |
commit | 62f9f30bfbd23c0e7ca832e40cbad4092789e8dd (patch) | |
tree | caef8679017f122961809268806166d9b3586a86 /gcc/config | |
parent | 47d30549f5d8a59f95202a0ddebf281d98230528 (diff) | |
download | gcc-62f9f30bfbd23c0e7ca832e40cbad4092789e8dd.zip gcc-62f9f30bfbd23c0e7ca832e40cbad4092789e8dd.tar.gz gcc-62f9f30bfbd23c0e7ca832e40cbad4092789e8dd.tar.bz2 |
always define STACK_GROWS_DOWNWARD
gcc/c-family/ChangeLog:
2015-05-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
* c-cppbuiltin.c (c_cpp_builtins): Check the value of
STACK_GROWS_DOWNWARD rather than if it is defined.
gcc/ChangeLog:
2015-05-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
* *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
is defined.
* config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
* defaults.h: Provide default for STACK_GROWS_DOWNWARD.
* doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
* doc/tm.texi: Regenerate.
From-SVN: r223513
Diffstat (limited to 'gcc/config')
32 files changed, 32 insertions, 32 deletions
diff --git a/gcc/config/alpha/alpha.h b/gcc/config/alpha/alpha.h index 196349d..8d2ab23 100644 --- a/gcc/config/alpha/alpha.h +++ b/gcc/config/alpha/alpha.h @@ -564,7 +564,7 @@ extern int alpha_memory_latency; /* Define this if pushing a word on the stack makes the stack pointer a smaller address. */ -#define STACK_GROWS_DOWNWARD +#define STACK_GROWS_DOWNWARD 1 /* Define this to nonzero if the nominal address of the stack frame is at the high-address end of the local variables; diff --git a/gcc/config/arc/arc.h b/gcc/config/arc/arc.h index 66965b0..4fdd654 100644 --- a/gcc/config/arc/arc.h +++ b/gcc/config/arc/arc.h @@ -765,7 +765,7 @@ extern enum reg_class arc_regno_reg_class[]; /* Define this macro if pushing a word onto the stack moves the stack pointer to a smaller address. */ -#define STACK_GROWS_DOWNWARD +#define STACK_GROWS_DOWNWARD 1 /* Define this if the nominal address of the stack frame is at the high-address end of the local variables; diff --git a/gcc/config/avr/avr.h b/gcc/config/avr/avr.h index d8bee77..7439964 100644 --- a/gcc/config/avr/avr.h +++ b/gcc/config/avr/avr.h @@ -290,7 +290,7 @@ enum reg_class { #define STACK_PUSH_CODE POST_DEC -#define STACK_GROWS_DOWNWARD +#define STACK_GROWS_DOWNWARD 1 #define STARTING_FRAME_OFFSET avr_starting_frame_offset() diff --git a/gcc/config/bfin/bfin.h b/gcc/config/bfin/bfin.h index 49cc741..b0d017e 100644 --- a/gcc/config/bfin/bfin.h +++ b/gcc/config/bfin/bfin.h @@ -233,7 +233,7 @@ extern const char *bfin_library_id_string; /* Define this if pushing a word on the stack makes the stack pointer a smaller address. */ -#define STACK_GROWS_DOWNWARD +#define STACK_GROWS_DOWNWARD 1 #define STACK_PUSH_CODE PRE_DEC diff --git a/gcc/config/c6x/c6x.h b/gcc/config/c6x/c6x.h index 9b3fcfb..1c30469 100644 --- a/gcc/config/c6x/c6x.h +++ b/gcc/config/c6x/c6x.h @@ -313,7 +313,7 @@ enum reg_class #define FIRST_PARM_OFFSET(fundecl) 4 #define STARTING_FRAME_OFFSET 0 #define FRAME_GROWS_DOWNWARD 1 -#define STACK_GROWS_DOWNWARD +#define STACK_GROWS_DOWNWARD 1 #define STACK_POINTER_REGNUM REG_B15 #define HARD_FRAME_POINTER_REGNUM REG_A15 diff --git a/gcc/config/cr16/cr16.h b/gcc/config/cr16/cr16.h index e5df6f9..5767be9 100644 --- a/gcc/config/cr16/cr16.h +++ b/gcc/config/cr16/cr16.h @@ -368,7 +368,7 @@ enum reg_class && GET_CODE (XEXP ((XEXP (OP, 0)), 1)) == CONST_INT)) /* Stack layout and calling conventions. */ -#define STACK_GROWS_DOWNWARD +#define STACK_GROWS_DOWNWARD 1 #define STARTING_FRAME_OFFSET 0 diff --git a/gcc/config/cris/cris.h b/gcc/config/cris/cris.h index cb7baf7..aa7dc17 100644 --- a/gcc/config/cris/cris.h +++ b/gcc/config/cris/cris.h @@ -620,7 +620,7 @@ enum reg_class /* Node: Frame Layout */ -#define STACK_GROWS_DOWNWARD +#define STACK_GROWS_DOWNWARD 1 #define FRAME_GROWS_DOWNWARD 1 /* It seems to be indicated in the code (at least 2.1) that this is diff --git a/gcc/config/epiphany/epiphany.h b/gcc/config/epiphany/epiphany.h index dab368c..5515edbe 100644 --- a/gcc/config/epiphany/epiphany.h +++ b/gcc/config/epiphany/epiphany.h @@ -467,7 +467,7 @@ typedef struct GTY (()) machine_function /* Define this macro if pushing a word onto the stack moves the stack pointer to a smaller address. */ -#define STACK_GROWS_DOWNWARD +#define STACK_GROWS_DOWNWARD 1 /* Define this to nonzero if the nominal address of the stack frame is at the high-address end of the local variables; diff --git a/gcc/config/h8300/h8300.h b/gcc/config/h8300/h8300.h index a17d7d5..a829cfa 100644 --- a/gcc/config/h8300/h8300.h +++ b/gcc/config/h8300/h8300.h @@ -360,7 +360,7 @@ enum reg_class { /* Define this if pushing a word on the stack makes the stack pointer a smaller address. */ -#define STACK_GROWS_DOWNWARD +#define STACK_GROWS_DOWNWARD 1 /* Define this to nonzero if the nominal address of the stack frame is at the high-address end of the local variables; diff --git a/gcc/config/i386/i386.h b/gcc/config/i386/i386.h index 5279b2d..40e8f83 100644 --- a/gcc/config/i386/i386.h +++ b/gcc/config/i386/i386.h @@ -1564,7 +1564,7 @@ enum reg_class /* Define this if pushing a word on the stack makes the stack pointer a smaller address. */ -#define STACK_GROWS_DOWNWARD +#define STACK_GROWS_DOWNWARD 1 /* Define this to nonzero if the nominal address of the stack frame is at the high-address end of the local variables; diff --git a/gcc/config/iq2000/iq2000.h b/gcc/config/iq2000/iq2000.h index a10eda3..14a68ce 100644 --- a/gcc/config/iq2000/iq2000.h +++ b/gcc/config/iq2000/iq2000.h @@ -230,7 +230,7 @@ enum reg_class /* Basic Stack Layout. */ -#define STACK_GROWS_DOWNWARD +#define STACK_GROWS_DOWNWARD 1 #define FRAME_GROWS_DOWNWARD 0 diff --git a/gcc/config/m32r/m32r.h b/gcc/config/m32r/m32r.h index ee0c447..66ceae0 100644 --- a/gcc/config/m32r/m32r.h +++ b/gcc/config/m32r/m32r.h @@ -524,7 +524,7 @@ extern enum reg_class m32r_regno_reg_class[FIRST_PSEUDO_REGISTER]; /* Define this macro if pushing a word onto the stack moves the stack pointer to a smaller address. */ -#define STACK_GROWS_DOWNWARD +#define STACK_GROWS_DOWNWARD 1 /* Offset from frame pointer to start allocating local variables at. If FRAME_GROWS_DOWNWARD, this is the offset to the END of the diff --git a/gcc/config/mcore/mcore.h b/gcc/config/mcore/mcore.h index 74860df..0aa9680 100644 --- a/gcc/config/mcore/mcore.h +++ b/gcc/config/mcore/mcore.h @@ -415,7 +415,7 @@ extern const enum reg_class regno_reg_class[FIRST_PSEUDO_REGISTER]; /* Define this if pushing a word on the stack makes the stack pointer a smaller address. */ -#define STACK_GROWS_DOWNWARD +#define STACK_GROWS_DOWNWARD 1 /* Offset within stack frame to start allocating local variables at. If FRAME_GROWS_DOWNWARD, this is the offset to the END of the diff --git a/gcc/config/microblaze/microblaze.h b/gcc/config/microblaze/microblaze.h index fa53848..c832fa0 100644 --- a/gcc/config/microblaze/microblaze.h +++ b/gcc/config/microblaze/microblaze.h @@ -413,7 +413,7 @@ extern enum reg_class microblaze_regno_to_class[]; /* Stack layout; function entry, exit and calling. */ -#define STACK_GROWS_DOWNWARD +#define STACK_GROWS_DOWNWARD 1 /* Changed the starting frame offset to including the new link stuff */ #define STARTING_FRAME_OFFSET \ diff --git a/gcc/config/mips/mips.h b/gcc/config/mips/mips.h index b4c6e5f..bceef31 100644 --- a/gcc/config/mips/mips.h +++ b/gcc/config/mips/mips.h @@ -2234,7 +2234,7 @@ enum reg_class /* Stack layout; function entry, exit and calling. */ -#define STACK_GROWS_DOWNWARD +#define STACK_GROWS_DOWNWARD 1 #define FRAME_GROWS_DOWNWARD flag_stack_protect diff --git a/gcc/config/mmix/mmix.h b/gcc/config/mmix/mmix.h index 1a17582..61ae4d6 100644 --- a/gcc/config/mmix/mmix.h +++ b/gcc/config/mmix/mmix.h @@ -451,7 +451,7 @@ enum reg_class /* Node: Frame Layout */ -#define STACK_GROWS_DOWNWARD +#define STACK_GROWS_DOWNWARD 1 #define FRAME_GROWS_DOWNWARD 1 #define STARTING_FRAME_OFFSET \ diff --git a/gcc/config/mn10300/mn10300.h b/gcc/config/mn10300/mn10300.h index d41dc4e..e5fa70b 100644 --- a/gcc/config/mn10300/mn10300.h +++ b/gcc/config/mn10300/mn10300.h @@ -404,7 +404,7 @@ enum reg_class /* Define this if pushing a word on the stack makes the stack pointer a smaller address. */ -#define STACK_GROWS_DOWNWARD +#define STACK_GROWS_DOWNWARD 1 /* Define this to nonzero if the nominal address of the stack frame is at the high-address end of the local variables; diff --git a/gcc/config/moxie/moxie.h b/gcc/config/moxie/moxie.h index 89e6a38..d20d214 100644 --- a/gcc/config/moxie/moxie.h +++ b/gcc/config/moxie/moxie.h @@ -247,7 +247,7 @@ enum reg_class /* Define this macro if pushing a word onto the stack moves the stack pointer to a smaller address. */ -#define STACK_GROWS_DOWNWARD +#define STACK_GROWS_DOWNWARD 1 #define INITIAL_FRAME_POINTER_OFFSET(DEPTH) (DEPTH) = 0 diff --git a/gcc/config/nds32/nds32.h b/gcc/config/nds32/nds32.h index 963b3a2..dcecea7 100644 --- a/gcc/config/nds32/nds32.h +++ b/gcc/config/nds32/nds32.h @@ -696,7 +696,7 @@ enum reg_class /* Stack Layout and Calling Conventions. */ -#define STACK_GROWS_DOWNWARD +#define STACK_GROWS_DOWNWARD 1 #define FRAME_GROWS_DOWNWARD 1 diff --git a/gcc/config/nios2/nios2.h b/gcc/config/nios2/nios2.h index ac33978..45eb70b 100644 --- a/gcc/config/nios2/nios2.h +++ b/gcc/config/nios2/nios2.h @@ -230,7 +230,7 @@ enum reg_class #define TRAMPOLINE_SIZE 20 /* Stack layout. */ -#define STACK_GROWS_DOWNWARD +#define STACK_GROWS_DOWNWARD 1 #define STARTING_FRAME_OFFSET 0 #define FIRST_PARM_OFFSET(FUNDECL) 0 diff --git a/gcc/config/nvptx/nvptx.h b/gcc/config/nvptx/nvptx.h index 8835906..502e43d 100644 --- a/gcc/config/nvptx/nvptx.h +++ b/gcc/config/nvptx/nvptx.h @@ -150,7 +150,7 @@ enum reg_class #define STARTING_FRAME_OFFSET 0 #define FRAME_GROWS_DOWNWARD 0 -#define STACK_GROWS_DOWNWARD +#define STACK_GROWS_DOWNWARD 1 #define STACK_POINTER_REGNUM 1 #define HARD_FRAME_POINTER_REGNUM 2 diff --git a/gcc/config/pdp11/pdp11.h b/gcc/config/pdp11/pdp11.h index a827f3a..1d947f3 100644 --- a/gcc/config/pdp11/pdp11.h +++ b/gcc/config/pdp11/pdp11.h @@ -289,7 +289,7 @@ enum reg_class { NO_REGS, MUL_REGS, GENERAL_REGS, LOAD_FPU_REGS, NO_LOAD_FPU_REG /* Define this if pushing a word on the stack makes the stack pointer a smaller address. */ -#define STACK_GROWS_DOWNWARD +#define STACK_GROWS_DOWNWARD 1 /* Define this to nonzero if the nominal address of the stack frame is at the high-address end of the local variables; diff --git a/gcc/config/rs6000/rs6000.h b/gcc/config/rs6000/rs6000.h index c93c3ce..bbecf58 100644 --- a/gcc/config/rs6000/rs6000.h +++ b/gcc/config/rs6000/rs6000.h @@ -1563,7 +1563,7 @@ extern enum reg_class rs6000_constraints[RS6000_CONSTRAINT_MAX]; /* Define this if pushing a word on the stack makes the stack pointer a smaller address. */ -#define STACK_GROWS_DOWNWARD +#define STACK_GROWS_DOWNWARD 1 /* Offsets recorded in opcodes are a multiple of this alignment factor. */ #define DWARF_CIE_DATA_ALIGNMENT (-((int) (TARGET_32BIT ? 4 : 8))) diff --git a/gcc/config/s390/s390.h b/gcc/config/s390/s390.h index 6ddd8aa..a9bf9b5 100644 --- a/gcc/config/s390/s390.h +++ b/gcc/config/s390/s390.h @@ -561,7 +561,7 @@ extern const enum reg_class regclass_map[FIRST_PSEUDO_REGISTER]; /* Our stack grows from higher to lower addresses. However, local variables are accessed by positive offsets, and function arguments are stored at increasing addresses. */ -#define STACK_GROWS_DOWNWARD +#define STACK_GROWS_DOWNWARD 1 #define FRAME_GROWS_DOWNWARD 1 /* #undef ARGS_GROW_DOWNWARD */ diff --git a/gcc/config/sh/sh.h b/gcc/config/sh/sh.h index a9b7fa0..3078880 100644 --- a/gcc/config/sh/sh.h +++ b/gcc/config/sh/sh.h @@ -1223,7 +1223,7 @@ extern enum reg_class regno_reg_class[FIRST_PSEUDO_REGISTER]; /* Define this if pushing a word on the stack makes the stack pointer a smaller address. */ -#define STACK_GROWS_DOWNWARD +#define STACK_GROWS_DOWNWARD 1 /* Define this macro to nonzero if the addresses of local variable slots are at negative offsets from the frame pointer. */ diff --git a/gcc/config/sparc/sparc.h b/gcc/config/sparc/sparc.h index 2fae9e8..ce1b68b 100644 --- a/gcc/config/sparc/sparc.h +++ b/gcc/config/sparc/sparc.h @@ -1074,7 +1074,7 @@ extern char leaf_reg_remap[]; /* Define this if pushing a word on the stack makes the stack pointer a smaller address. */ -#define STACK_GROWS_DOWNWARD +#define STACK_GROWS_DOWNWARD 1 /* Define this to nonzero if the nominal address of the stack frame is at the high-address end of the local variables; diff --git a/gcc/config/spu/spu.h b/gcc/config/spu/spu.h index 24d8047..25fa435 100644 --- a/gcc/config/spu/spu.h +++ b/gcc/config/spu/spu.h @@ -237,7 +237,7 @@ targetm.resolve_overloaded_builtin = spu_resolve_overloaded_builtin; \ /* Frame Layout */ -#define STACK_GROWS_DOWNWARD +#define STACK_GROWS_DOWNWARD 1 #define FRAME_GROWS_DOWNWARD 1 diff --git a/gcc/config/tilegx/tilegx.h b/gcc/config/tilegx/tilegx.h index 72a0324..5fa10b3 100644 --- a/gcc/config/tilegx/tilegx.h +++ b/gcc/config/tilegx/tilegx.h @@ -257,7 +257,7 @@ enum reg_class /* Stack layout; function entry, exit and calling. */ -#define STACK_GROWS_DOWNWARD +#define STACK_GROWS_DOWNWARD 1 #define FRAME_GROWS_DOWNWARD 1 #define STARTING_FRAME_OFFSET 0 diff --git a/gcc/config/tilepro/tilepro.h b/gcc/config/tilepro/tilepro.h index e1c790d..f2b7b16 100644 --- a/gcc/config/tilepro/tilepro.h +++ b/gcc/config/tilepro/tilepro.h @@ -221,7 +221,7 @@ enum reg_class /* Stack layout; function entry, exit and calling. */ -#define STACK_GROWS_DOWNWARD +#define STACK_GROWS_DOWNWARD 1 #define FRAME_GROWS_DOWNWARD 1 #define STARTING_FRAME_OFFSET 0 diff --git a/gcc/config/v850/v850.h b/gcc/config/v850/v850.h index 2f0118c..e40fd87 100644 --- a/gcc/config/v850/v850.h +++ b/gcc/config/v850/v850.h @@ -411,7 +411,7 @@ enum reg_class /* Define this if pushing a word on the stack makes the stack pointer a smaller address. */ -#define STACK_GROWS_DOWNWARD +#define STACK_GROWS_DOWNWARD 1 /* Define this to nonzero if the nominal address of the stack frame is at the high-address end of the local variables; diff --git a/gcc/config/vax/vax.h b/gcc/config/vax/vax.h index 7c2d8c6..0b19014 100644 --- a/gcc/config/vax/vax.h +++ b/gcc/config/vax/vax.h @@ -238,7 +238,7 @@ enum reg_class { NO_REGS, ALL_REGS, LIM_REG_CLASSES }; /* Define this if pushing a word on the stack makes the stack pointer a smaller address. */ -#define STACK_GROWS_DOWNWARD +#define STACK_GROWS_DOWNWARD 1 /* Define this to nonzero if the nominal address of the stack frame is at the high-address end of the local variables; diff --git a/gcc/config/xtensa/xtensa.h b/gcc/config/xtensa/xtensa.h index 011411c..615f741 100644 --- a/gcc/config/xtensa/xtensa.h +++ b/gcc/config/xtensa/xtensa.h @@ -459,7 +459,7 @@ enum reg_class /* Stack layout; function entry, exit and calling. */ -#define STACK_GROWS_DOWNWARD +#define STACK_GROWS_DOWNWARD 1 /* Offset within stack frame to start allocating local variables at. */ #define STARTING_FRAME_OFFSET \ |