From 2b785411c459a847a59e1b980134e8f71e8dbd85 Mon Sep 17 00:00:00 2001 From: tbsaunde Date: Fri, 22 May 2015 01:03:11 +0000 Subject: always define STACK_GROWS_DOWNWARD gcc/c-family/ChangeLog: 2015-05-20 Trevor Saunders * 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 * *.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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223513 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/doc/tm.texi | 12 ++++-------- gcc/doc/tm.texi.in | 12 ++++-------- 2 files changed, 8 insertions(+), 16 deletions(-) (limited to 'gcc/doc') diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi index 3a89eee7933..f2f34978db4 100644 --- a/gcc/doc/tm.texi +++ b/gcc/doc/tm.texi @@ -2921,12 +2921,8 @@ This describes the stack layout and calling conventions. Here is the basic stack layout. @defmac STACK_GROWS_DOWNWARD -Define this macro if pushing a word onto the stack moves the stack -pointer to a smaller address. - -When we say, ``define this macro if @dots{}'', it means that the -compiler checks this macro only with @code{#ifdef} so the precise -definition used does not matter. +Define this macro to be true if pushing a word onto the stack moves the stack +pointer to a smaller address, and false otherwise. @end defmac @defmac STACK_PUSH_CODE @@ -2941,7 +2937,7 @@ to the last item on the stack or whether it points to the space for the next item on the stack. The default is @code{PRE_DEC} when @code{STACK_GROWS_DOWNWARD} is -defined, which is almost always right, and @code{PRE_INC} otherwise, +true, which is almost always right, and @code{PRE_INC} otherwise, which is often wrong. @end defmac @@ -9038,7 +9034,7 @@ The default size is @code{FIRST_PSEUDO_REGISTER * sizeof(void *)}. This macro need only be defined if the target might save registers in the function prologue at an offset to the stack pointer that is not aligned to @code{UNITS_PER_WORD}. The definition should be the negative minimum -alignment if @code{STACK_GROWS_DOWNWARD} is defined, and the positive +alignment if @code{STACK_GROWS_DOWNWARD} is true, and the positive minimum alignment otherwise. @xref{SDB and DWARF}. Only applicable if the target supports DWARF 2 frame unwind information. @end defmac diff --git a/gcc/doc/tm.texi.in b/gcc/doc/tm.texi.in index e76b8a05e90..35b02b7632c 100644 --- a/gcc/doc/tm.texi.in +++ b/gcc/doc/tm.texi.in @@ -2527,12 +2527,8 @@ This describes the stack layout and calling conventions. Here is the basic stack layout. @defmac STACK_GROWS_DOWNWARD -Define this macro if pushing a word onto the stack moves the stack -pointer to a smaller address. - -When we say, ``define this macro if @dots{}'', it means that the -compiler checks this macro only with @code{#ifdef} so the precise -definition used does not matter. +Define this macro to be true if pushing a word onto the stack moves the stack +pointer to a smaller address, and false otherwise. @end defmac @defmac STACK_PUSH_CODE @@ -2547,7 +2543,7 @@ to the last item on the stack or whether it points to the space for the next item on the stack. The default is @code{PRE_DEC} when @code{STACK_GROWS_DOWNWARD} is -defined, which is almost always right, and @code{PRE_INC} otherwise, +true, which is almost always right, and @code{PRE_INC} otherwise, which is often wrong. @end defmac @@ -6559,7 +6555,7 @@ The default size is @code{FIRST_PSEUDO_REGISTER * sizeof(void *)}. This macro need only be defined if the target might save registers in the function prologue at an offset to the stack pointer that is not aligned to @code{UNITS_PER_WORD}. The definition should be the negative minimum -alignment if @code{STACK_GROWS_DOWNWARD} is defined, and the positive +alignment if @code{STACK_GROWS_DOWNWARD} is true, and the positive minimum alignment otherwise. @xref{SDB and DWARF}. Only applicable if the target supports DWARF 2 frame unwind information. @end defmac -- cgit v1.2.1