diff options
author | nickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-06-25 12:33:14 +0000 |
---|---|---|
committer | nickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-06-25 12:33:14 +0000 |
commit | cc16f5e2efeddcfaafe30d7f43daf920708a0114 (patch) | |
tree | 27202676cf7d947ed2645eea121293263fb264d9 /gcc/config/ft32 | |
parent | 5b11c9b9071c416628f26b25abfe59fe6b34d5c4 (diff) | |
download | gcc-cc16f5e2efeddcfaafe30d7f43daf920708a0114.tar.gz |
* config/bfin/bfin.c (bfin_expand_prologue): Set
current_function_static_stack_size if flag_stack_usage_info is
set.
* config/ft32/ft32.c (ft32_expand_prologue): Likewise.
* config/h8300/h8300.c (h8300_expand_prologue): Likewise.
* config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
* config/m32c/m32c.c (m32c_emit_prologue): Likewise.
test * gcc.dg/stack-usage-1.c: Add SIZE values for V850, MN10300,
H8300 and M32R targets.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@224937 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/ft32')
-rw-r--r-- | gcc/config/ft32/ft32.c | 7 | ||||
-rw-r--r-- | gcc/config/ft32/ft32.h | 2 |
2 files changed, 6 insertions, 3 deletions
diff --git a/gcc/config/ft32/ft32.c b/gcc/config/ft32/ft32.c index bc18c23fd83..1630c9c04c4 100644 --- a/gcc/config/ft32/ft32.c +++ b/gcc/config/ft32/ft32.c @@ -59,7 +59,7 @@ #include "basic-block.h" #include "df.h" #include "builtins.h" - +#include "emit-rtl.h" #include <stdint.h> @@ -199,7 +199,7 @@ ft32_print_operand (FILE * file, rtx x, int code) return; case 'm': - fprintf (file, "%d", -INTVAL(x)); + fprintf (file, "%ld", (long) (- INTVAL(x))); return; case 'd': // a DW spec, from an integer alignment (for BLKmode insns) @@ -456,6 +456,9 @@ ft32_expand_prologue (void) ft32_compute_frame (); + if (flag_stack_usage_info) + current_function_static_stack_size = cfun->machine->size_for_adjusting_sp; + if (!must_link () && (cfun->machine->callee_saved_reg_size == 4)) { insn = diff --git a/gcc/config/ft32/ft32.h b/gcc/config/ft32/ft32.h index 0835aaef286..a1722a88c0d 100644 --- a/gcc/config/ft32/ft32.h +++ b/gcc/config/ft32/ft32.h @@ -248,7 +248,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 |