Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/gcc/dist/gcc/config/rs6000 Do not override STA...



details:   https://anonhg.NetBSD.org/src/rev/66562f8263fc
branches:  trunk
changeset: 1006666:66562f8263fc
user:      uwe <uwe%NetBSD.org@localhost>
date:      Wed Jan 22 21:39:43 2020 +0000

description:
Do not override STACK_BOUNDARY in netbsd.h

sysv4.h already overrides PREFERRED_STACK_BOUNDARY b/c SYSV ABI
requires 16 bytes alignment for %sp anyway and so we already get that
for free.

More importantly this also fixes alloca() in GCC 8, that was somehow
confused by that STACK_BOUNDARY value we had and created a buffer that
overlapped top local variable slots.

diffstat:

 external/gpl3/gcc/dist/gcc/config/rs6000/netbsd.h |  4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diffs (14 lines):

diff -r 8ad265419d0f -r 66562f8263fc external/gpl3/gcc/dist/gcc/config/rs6000/netbsd.h
--- a/external/gpl3/gcc/dist/gcc/config/rs6000/netbsd.h Wed Jan 22 21:21:24 2020 +0000
+++ b/external/gpl3/gcc/dist/gcc/config/rs6000/netbsd.h Wed Jan 22 21:39:43 2020 +0000
@@ -138,10 +138,6 @@
 #define TRAMPOLINE_SIZE 48
 #endif
 
-/* Override STACK_BOUNDARY to use Altivec compliant one.  */
-#undef STACK_BOUNDARY
-#define STACK_BOUNDARY 128
-
 /* Use standard DWARF numbering for DWARF debugging information.  */
 #define RS6000_USE_DWARF_NUMBERING
 



Home | Main Index | Thread Index | Old Index