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 - Use EXTRA_SPECS l...



details:   https://anonhg.NetBSD.org/src/rev/7a3bac9e676b
branches:  trunk
changeset: 846217:7a3bac9e676b
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Nov 05 20:06:41 2019 +0000

description:
- Use EXTRA_SPECS like we did for aarch64 instead of SUBSUBTARGET_EXTRA_SPECS
  so that assembly specs get propagated (they were lost before)
- adjust the block register padding (like the other OS's) so that code compiles
- XXX: linker still broken for shared libraries because the os specific spec
  is not chosen

diffstat:

 external/gpl3/gcc/dist/gcc/config/rs6000/netbsd64.h |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (23 lines):

diff -r 503a0778b2b2 -r 7a3bac9e676b external/gpl3/gcc/dist/gcc/config/rs6000/netbsd64.h
--- a/external/gpl3/gcc/dist/gcc/config/rs6000/netbsd64.h       Tue Nov 05 19:59:35 2019 +0000
+++ b/external/gpl3/gcc/dist/gcc/config/rs6000/netbsd64.h       Tue Nov 05 20:06:41 2019 +0000
@@ -204,8 +204,8 @@
 %{,assembler|,assembler-with-cpp: %{mregnames} %{mno-regnames}}" \
   ENDIAN_SELECT(" -mbig", " -mlittle", DEFAULT_ASM_ENDIAN)
 
-#undef SUBSUBTARGET_EXTRA_SPECS
-#define SUBSUBTARGET_EXTRA_SPECS \
+#undef EXTRA_SPECS
+#define EXTRA_SPECS \
   { "asm_spec_common",         ASM_SPEC_COMMON },                      \
   { "asm_spec32",              ASM_SPEC32 },                           \
   { "asm_spec64",              ASM_SPEC64 },                           \
@@ -296,7 +296,7 @@
    registers and memory.  FIRST is nonzero if this is the only
    element.  */
 #define BLOCK_REG_PADDING(MODE, TYPE, FIRST) \
-  (!(FIRST) ? upward : FUNCTION_ARG_PADDING (MODE, TYPE))
+  (!(FIRST) ? PAD_UPWARD : targetm.calls.function_arg_padding (MODE, TYPE))
 
 /* NetBSD doesn't support saving and restoring 64-bit regs in a 32-bit
    process.  */



Home | Main Index | Thread Index | Old Index