mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-05 23:21:31 +08:00
s390.c (s390_emit_prologue): Report the stack size if -fstack-usage is used.
2010-11-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> * gcc/config/s390/s390.c (s390_emit_prologue): Report the stack size if -fstack-usage is used. 2010-11-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> * gcc.dg/stack-usage-1.c: Define SIZE for s390 and s390x. From-SVN: r166531
This commit is contained in:
parent
d0edecea00
commit
5c779305f6
@ -1,3 +1,8 @@
|
||||
2010-11-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
|
||||
|
||||
* gcc/config/s390/s390.c (s390_emit_prologue): Report the stack
|
||||
size if -fstack-usage is used.
|
||||
|
||||
2010-11-10 Richard Guenther <rguenther@suse.de>
|
||||
|
||||
PR tree-optimization/46398
|
||||
|
@ -7948,6 +7948,9 @@ s390_emit_prologue (void)
|
||||
if (!TARGET_PACKED_STACK)
|
||||
next_fpr = cfun_save_high_fprs_p ? 31 : 0;
|
||||
|
||||
if (flag_stack_usage)
|
||||
current_function_static_stack_size = cfun_frame_layout.frame_size;
|
||||
|
||||
/* Decrement stack pointer. */
|
||||
|
||||
if (cfun_frame_layout.frame_size > 0)
|
||||
|
@ -1,3 +1,7 @@
|
||||
2010-11-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
|
||||
|
||||
* gcc.dg/stack-usage-1.c: Define SIZE for s390 and s390x.
|
||||
|
||||
2010-11-10 Eric Botcazou <ebotcazou@adacore.com>
|
||||
|
||||
* gnat.dg/unchecked_convert7.adb: New test.
|
||||
|
@ -35,6 +35,10 @@
|
||||
# define SIZE 240
|
||||
#elif defined (__AVR__)
|
||||
# define SIZE 254
|
||||
#elif defined (__s390x__)
|
||||
# define SIZE 96 /* 256 - 160 bytes for register save area */
|
||||
#elif defined (__s390__)
|
||||
# define SIZE 160 /* 256 - 96 bytes for register save area */
|
||||
#else
|
||||
# define SIZE 256
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user