add netbsd/arm EABI target. recognise dwarf2 unwinding in the common arm code. switch convoluted stddef.h logic from relying on include guards having certain names to only applying for netbsd, which should be the sole remaining user. (necessary for netbsd/arm, which uses different include guards for ansi.h) move linux/alpha code out of shared alpha+ELF header. make all netbsd targets include netbsd-stdint.h. Fixes PR pkg/52951. Bump PKGREVISION. bump gcc7-libs PKGREVISION above this one.
40 lines
1.6 KiB
C
40 lines
1.6 KiB
C
$NetBSD: patch-gcc_config_alpha_elf.h,v 1.1 2018/06/17 19:50:52 maya Exp $
|
|
|
|
Move linux-specific definitions to linux file.
|
|
PR target/85095, https://gcc.gnu.org/ml/gcc-patches/2018-05/msg01370.html
|
|
|
|
--- gcc/config/alpha/elf.h.orig 2017-01-01 12:07:43.905435000 +0000
|
|
+++ gcc/config/alpha/elf.h
|
|
@@ -100,32 +100,6 @@ do { \
|
|
ASM_OUTPUT_DEF (FILE, alias, name); \
|
|
} while (0)
|
|
|
|
-/* Provide a STARTFILE_SPEC appropriate for ELF. Here we add the
|
|
- (even more) magical crtbegin.o file which provides part of the
|
|
- support for getting C++ file-scope static object constructed
|
|
- before entering `main'. */
|
|
-
|
|
-#undef STARTFILE_SPEC
|
|
-#ifdef HAVE_LD_PIE
|
|
-#define STARTFILE_SPEC \
|
|
- "%{!shared: %{pg|p:gcrt1.o%s;pie:Scrt1.o%s;:crt1.o%s}}\
|
|
- crti.o%s %{static:crtbeginT.o%s;shared|pie:crtbeginS.o%s;:crtbegin.o%s}"
|
|
-#else
|
|
-#define STARTFILE_SPEC \
|
|
- "%{!shared: %{pg|p:gcrt1.o%s;:crt1.o%s}}\
|
|
- crti.o%s %{static:crtbeginT.o%s;shared|pie:crtbeginS.o%s;:crtbegin.o%s}"
|
|
-#endif
|
|
-
|
|
-/* Provide a ENDFILE_SPEC appropriate for ELF. Here we tack on the
|
|
- magical crtend.o file which provides part of the support for
|
|
- getting C++ file-scope static object constructed before entering
|
|
- `main', followed by a normal ELF "finalizer" file, `crtn.o'. */
|
|
-
|
|
-#undef ENDFILE_SPEC
|
|
-#define ENDFILE_SPEC \
|
|
- "%{Ofast|ffast-math|funsafe-math-optimizations:crtfastmath.o%s} \
|
|
- %{shared|pie:crtendS.o%s;:crtend.o%s} crtn.o%s"
|
|
-
|
|
/* This variable should be set to 'true' if the target ABI requires
|
|
unwinding tables even when exceptions are not used. */
|
|
#define TARGET_UNWIND_TABLES_DEFAULT true
|