]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[Ada] Remove vxworks*-crtbe-link.spec
authorJerome Lambourg <lambourg@adacore.com>
Tue, 11 Dec 2018 11:09:52 +0000 (11:09 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Tue, 11 Dec 2018 11:09:52 +0000 (11:09 +0000)
The VxWorks crtbe are now part of libgcc, needed to support C++ on this
target.

2018-12-11  Jerome Lambourg  <lambourg@adacore.com>

gcc/ada/

* Makefile.rtl, gcc-interface/Makefile.in: Remove crtbe bits for
VxWorks.
* libgnat/system-vxworks-arm-rtp-smp.ads,
libgnat/system-vxworks-arm-rtp.ads,
libgnat/system-vxworks-arm.ads,
libgnat/system-vxworks-e500-kernel.ads,
libgnat/system-vxworks-e500-rtp-smp.ads,
libgnat/system-vxworks-e500-rtp.ads,
libgnat/system-vxworks-ppc-kernel.ads,
libgnat/system-vxworks-ppc-rtp-smp.ads,
libgnat/system-vxworks-ppc-rtp.ads,
libgnat/system-vxworks-ppc.ads,
libgnat/system-vxworks-x86-kernel.ads,
libgnat/system-vxworks-x86-rtp-smp.ads,
libgnat/system-vxworks-x86-rtp.ads,
libgnat/system-vxworks7-aarch64-rtp-smp.ads,
libgnat/system-vxworks7-aarch64.ads,
libgnat/system-vxworks7-arm-rtp-smp.ads,
libgnat/system-vxworks7-e500-kernel.ads,
libgnat/system-vxworks7-e500-rtp-smp.ads,
libgnat/system-vxworks7-e500-rtp.ads,
libgnat/system-vxworks7-ppc-kernel.ads,
libgnat/system-vxworks7-ppc-rtp-smp.ads,
libgnat/system-vxworks7-ppc-rtp.ads,
libgnat/system-vxworks7-ppc64-kernel.ads,
libgnat/system-vxworks7-ppc64-rtp-smp.ads,
libgnat/system-vxworks7-x86-kernel.ads,
libgnat/system-vxworks7-x86-rtp-smp.ads,
libgnat/system-vxworks7-x86-rtp.ads,
libgnat/system-vxworks7-x86_64-kernel.ads,
libgnat/system-vxworks7-x86_64-rtp-smp.ads: Remove pragma
Linker_Options for --specs.
* vx_crtbegin.c, vx_crtbegin.inc, vx_crtbegin_array.c,
vx_crtbegin_attr.c, vx_crtend.c, vxworks-gnat-crtbe-link.spec:
Remove.

From-SVN: r266986

38 files changed:
gcc/ada/ChangeLog
gcc/ada/Makefile.rtl
gcc/ada/gcc-interface/Makefile.in
gcc/ada/libgnat/system-vxworks-arm-rtp-smp.ads
gcc/ada/libgnat/system-vxworks-arm-rtp.ads
gcc/ada/libgnat/system-vxworks-arm.ads
gcc/ada/libgnat/system-vxworks-e500-kernel.ads
gcc/ada/libgnat/system-vxworks-e500-rtp-smp.ads
gcc/ada/libgnat/system-vxworks-e500-rtp.ads
gcc/ada/libgnat/system-vxworks-ppc-kernel.ads
gcc/ada/libgnat/system-vxworks-ppc-rtp-smp.ads
gcc/ada/libgnat/system-vxworks-ppc-rtp.ads
gcc/ada/libgnat/system-vxworks-ppc.ads
gcc/ada/libgnat/system-vxworks-x86-kernel.ads
gcc/ada/libgnat/system-vxworks-x86-rtp-smp.ads
gcc/ada/libgnat/system-vxworks-x86-rtp.ads
gcc/ada/libgnat/system-vxworks7-aarch64-rtp-smp.ads
gcc/ada/libgnat/system-vxworks7-aarch64.ads
gcc/ada/libgnat/system-vxworks7-arm-rtp-smp.ads
gcc/ada/libgnat/system-vxworks7-e500-kernel.ads
gcc/ada/libgnat/system-vxworks7-e500-rtp-smp.ads
gcc/ada/libgnat/system-vxworks7-e500-rtp.ads
gcc/ada/libgnat/system-vxworks7-ppc-kernel.ads
gcc/ada/libgnat/system-vxworks7-ppc-rtp-smp.ads
gcc/ada/libgnat/system-vxworks7-ppc-rtp.ads
gcc/ada/libgnat/system-vxworks7-ppc64-kernel.ads
gcc/ada/libgnat/system-vxworks7-ppc64-rtp-smp.ads
gcc/ada/libgnat/system-vxworks7-x86-kernel.ads
gcc/ada/libgnat/system-vxworks7-x86-rtp-smp.ads
gcc/ada/libgnat/system-vxworks7-x86-rtp.ads
gcc/ada/libgnat/system-vxworks7-x86_64-kernel.ads
gcc/ada/libgnat/system-vxworks7-x86_64-rtp-smp.ads
gcc/ada/vx_crtbegin.c [deleted file]
gcc/ada/vx_crtbegin.inc [deleted file]
gcc/ada/vx_crtbegin_array.c [deleted file]
gcc/ada/vx_crtbegin_attr.c [deleted file]
gcc/ada/vx_crtend.c [deleted file]
gcc/ada/vxworks-gnat-crtbe-link.spec [deleted file]

index 50f53b8596589a25e979fbc1f2f298cb05f38a93..4fcbaa943d37a1b783efc1207ea804794a8f6026 100644 (file)
@@ -1,3 +1,41 @@
+2018-12-11  Jerome Lambourg  <lambourg@adacore.com>
+
+       * Makefile.rtl, gcc-interface/Makefile.in: Remove crtbe bits for
+       VxWorks.
+       * libgnat/system-vxworks-arm-rtp-smp.ads,
+       libgnat/system-vxworks-arm-rtp.ads,
+       libgnat/system-vxworks-arm.ads,
+       libgnat/system-vxworks-e500-kernel.ads,
+       libgnat/system-vxworks-e500-rtp-smp.ads,
+       libgnat/system-vxworks-e500-rtp.ads,
+       libgnat/system-vxworks-ppc-kernel.ads,
+       libgnat/system-vxworks-ppc-rtp-smp.ads,
+       libgnat/system-vxworks-ppc-rtp.ads,
+       libgnat/system-vxworks-ppc.ads,
+       libgnat/system-vxworks-x86-kernel.ads,
+       libgnat/system-vxworks-x86-rtp-smp.ads,
+       libgnat/system-vxworks-x86-rtp.ads,
+       libgnat/system-vxworks7-aarch64-rtp-smp.ads,
+       libgnat/system-vxworks7-aarch64.ads,
+       libgnat/system-vxworks7-arm-rtp-smp.ads,
+       libgnat/system-vxworks7-e500-kernel.ads,
+       libgnat/system-vxworks7-e500-rtp-smp.ads,
+       libgnat/system-vxworks7-e500-rtp.ads,
+       libgnat/system-vxworks7-ppc-kernel.ads,
+       libgnat/system-vxworks7-ppc-rtp-smp.ads,
+       libgnat/system-vxworks7-ppc-rtp.ads,
+       libgnat/system-vxworks7-ppc64-kernel.ads,
+       libgnat/system-vxworks7-ppc64-rtp-smp.ads,
+       libgnat/system-vxworks7-x86-kernel.ads,
+       libgnat/system-vxworks7-x86-rtp-smp.ads,
+       libgnat/system-vxworks7-x86-rtp.ads,
+       libgnat/system-vxworks7-x86_64-kernel.ads,
+       libgnat/system-vxworks7-x86_64-rtp-smp.ads: Remove pragma
+       Linker_Options for --specs.
+       * vx_crtbegin.c, vx_crtbegin.inc, vx_crtbegin_array.c,
+       vx_crtbegin_attr.c, vx_crtend.c, vxworks-gnat-crtbe-link.spec:
+       Remove.
+
 2018-12-11  Ed Schonberg  <schonberg@adacore.com>
 
        * sem_ch13.adb (Check_Aspect_At_End_Of_Declarations,
index e1b26de67a66e26c2228e452224f78b507f793c2..775ab9857b6f415db476c250c842f210d224e5be 100644 (file)
@@ -857,16 +857,6 @@ VX_SIGTRAMP_EXTRA_SRCS=sigtramp.h sigtramp-vxworks-target.inc
 # aside the library itself. Typically useful for crtbegin/crtend kind of files.
 EXTRA_ADALIB_OBJS=
 
-# crt files for VxWorks exception tables registration, referenced by
-# spec files in the runtime library.
-VX_CRTBE_EXTRA_ADALIB_OBJS=vx_crtbegin.o vx_crtbegin_array.o vx_crtend.o
-
-# Contructor attributes (with priorities) are only supported on VxWorks 7
-# or for RTPs.
-ifneq ($(strip $(filter vxworks7% rtp%,$(target_os) $(THREAD_KIND))),)
-VX_CRTBE_EXTRA_ADALIB_OBJS+=vx_crtbegin_attr.o
-endif
-
 # GCC spec files to be installed in $(libsubdir), so --specs=<spec-filename>
 # finds them at runtime.
 GCC_SPEC_FILES=
@@ -894,7 +884,6 @@ ifeq ($(strip $(filter-out powerpc% wrs vxworks vxworksspe vxworks7 vxworks7spe,
 
   VX=$(strip $(if $(filter vxworks7%, $(target_os)), vxworks7, vxworks))
   SVX=system-$(VX)
-  GCC_SPEC_FILES+=$(VX)-gnat-crtbe-link.spec
 
   LIBGNAT_TARGET_PAIRS = \
   a-intnam.ads<libgnarl/a-intnam__vxworks.ads \
@@ -991,9 +980,6 @@ ifeq ($(strip $(filter-out powerpc% wrs vxworks vxworksspe vxworks7 vxworks7spe,
 
   EXTRA_LIBGNAT_OBJS+=vx_stack_info.o
 
-  EXTRA_ADALIB_OBJS+=$(VX_CRTBE_EXTRA_ADALIB_OBJS)
-  EXTRA_LIBGNAT_SRCS+=vx_crtbegin.inc
-
   ifeq ($(strip $(filter-out vxworks7%, $(target_os))),)
     ifeq ($(strip $(filter-out powerpc64, $(target_cpu))),)
       GCC_SPEC_FILES+=vxworks7-ppc64-rtp-base-link.spec
@@ -1137,7 +1123,6 @@ ifeq ($(strip $(filter-out %86 x86_64 wrs vxworks vxworks7,$(target_cpu) $(targe
 
   VX=$(strip $(if $(filter vxworks7%, $(target_os)), vxworks7, vxworks))
   SVX=system-$(VX)
-  GCC_SPEC_FILES+=$(VX)-gnat-crtbe-link.spec
 
   ifeq ($(strip $(filter-out x86_64, $(target_cpu))),)
      X86CPU=x86_64
@@ -1262,9 +1247,6 @@ ifeq ($(strip $(filter-out %86 x86_64 wrs vxworks vxworks7,$(target_cpu) $(targe
   EXTRA_LIBGNAT_OBJS+=sigtramp-vxworks.o
   EXTRA_LIBGNAT_SRCS+=$(VX_SIGTRAMP_EXTRA_SRCS)
 
-  EXTRA_ADALIB_OBJS+=$(VX_CRTBE_EXTRA_ADALIB_OBJS)
-  EXTRA_LIBGNAT_SRCS+=vx_crtbegin.inc
-
   ifeq ($(strip $(filter-out vxworks7%, $(target_os))),)
     GCC_SPEC_FILES+=vxworks7-$(X86CPU)-rtp-base-link.spec
   else
@@ -1300,7 +1282,6 @@ ifeq ($(strip $(filter-out aarch64 arm% coff wrs vx%,$(target_cpu) $(target_vend
   endif
 
   SVX=system-$(VX)
-  GCC_SPEC_FILES+=$(VX)-gnat-crtbe-link.spec
 
   LIBGNAT_TARGET_PAIRS = \
   a-intnam.ads<libgnarl/a-intnam__vxworks.ads \
@@ -1379,8 +1360,6 @@ ifeq ($(strip $(filter-out aarch64 arm% coff wrs vx%,$(target_cpu) $(target_vend
     ifeq ($(strip $(filter-out aarch64, $(target_cpu))),)
       GCC_SPEC_FILES+=vxworks7-rtp-base-link.spec
     endif
-    EXTRA_ADALIB_OBJS+=$(VX_CRTBE_EXTRA_ADALIB_OBJS)
-    EXTRA_LIBGNAT_SRCS+=vx_crtbegin.inc
 
     ifneq ($(strip $(filter-out vxworks7%, $(target_os))),)
       GCC_SPEC_FILES+=vxworks-arm-link.spec
index 4d870c2f9ceb2d59f6dcda184f520206fea306ab..0ad07d8861a24c4f573e2c5955f6d395fee359e0 100644 (file)
@@ -834,7 +834,6 @@ gnatlib-sjlj:
        sed \
          -e 's/Frontend_Exceptions.*/Frontend_Exceptions       : constant Boolean := True;/' \
          -e 's/ZCX_By_Default.*/ZCX_By_Default            : constant Boolean := False;/' \
-         -e 's/\(pragma Linker.*crtbe.*\)/--  \1/' \
          $(RTSDIR)/system.ads > $(RTSDIR)/s.ads
        $(MV) $(RTSDIR)/s.ads $(RTSDIR)/system.ads
        $(MAKE) $(FLAGS_TO_PASS) \
@@ -936,21 +935,6 @@ init.o    : init.c adaint.h raise.h
        $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ADA_CFLAGS) \
                 $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
 
-vx_crtbegin.o : vx_crtbegin.c vx_crtbegin.inc
-       $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ADA_CFLAGS) \
-                -iquote $(srcdir) -iquote $(ftop_srcdir)/libgcc \
-                $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
-
-vx_crtbegin_auto.o : vx_crtbegin_auto.c vx_crtbegin.inc
-       $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ADA_CFLAGS) \
-                -iquote $(srcdir) -iquote $(ftop_srcdir)/libgcc \
-                $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
-
-vx_crtend.o : vx_crtend.c
-       $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ADA_CFLAGS) \
-                -iquote $(srcdir) -iquote $(ftop_srcdir)/libgcc \
-                $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
-
 init-vxsim.o : init-vxsim.c
        $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ADA_CFLAGS) \
                 $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
index 75ad23ec817ac9458212d49f564b5eff69fb191e..0e13d119c80d7903f37dfdc2aba3d7d4ede7835d 100644 (file)
@@ -120,10 +120,6 @@ package System is
 
 private
 
-   pragma Linker_Options ("--specs=vxworks-gnat-crtbe-link.spec");
-   --  Pull in crtbegin/crtend objects and register exceptions for ZCX.
-   --  This is commented out by our Makefile for SJLJ runtimes.
-
    pragma Linker_Options ("--specs=vxworks-smp-arm-link.spec");
    pragma Linker_Options ("--specs=vxworks-arm-link.spec");
    --  Setup proper set of -L's for this configuration
index b04784e0b75709d7f22e5a3f6ec1682555bb48bf..2cc3cc23921838d3a50b76ad0e0061ba3a7822b1 100644 (file)
@@ -120,10 +120,6 @@ package System is
 
 private
 
-   pragma Linker_Options ("--specs=vxworks-gnat-crtbe-link.spec");
-   --  Pull in crtbegin/crtend objects and register exceptions for ZCX.
-   --  This is commented out by our Makefile for SJLJ runtimes.
-
    pragma Linker_Options ("--specs=vxworks-arm-link.spec");
    --  Setup proper set of -L's for this configuration
 
index 5c2ebf3b93f04df5940419e9f7b41a4b04d2f875..e9ad7ccf2d09b1430785933528aba352f321d23b 100644 (file)
@@ -118,10 +118,6 @@ package System is
 
 private
 
-   pragma Linker_Options ("--specs=vxworks-gnat-crtbe-link.spec");
-   --  Pull in crtbegin/crtend objects and register exceptions for ZCX.
-   --  This is commented out by our Makefile for SJLJ runtimes.
-
    type Address is mod Memory_Size;
    Null_Address : constant Address := 0;
 
index c31eeaccbba4ece6965abd743e51055c6ecf7f70..498f67027f0d7b2f68dff94c831c55557fb5b658 100644 (file)
@@ -118,10 +118,6 @@ package System is
 
 private
 
-   pragma Linker_Options ("--specs=vxworks-gnat-crtbe-link.spec");
-   --  Pull in crtbegin/crtend objects and register exceptions for ZCX.
-   --  This is commented out by our Makefile for SJLJ runtimes.
-
    type Address is mod Memory_Size;
    Null_Address : constant Address := 0;
 
index e267f4e7c532fb29f1bb2d9b4a04ff8300b9a9bf..83b2de3a73c5cd428c3f26291277876918a1e23e 100644 (file)
@@ -120,10 +120,6 @@ package System is
 
 private
 
-   pragma Linker_Options ("--specs=vxworks-gnat-crtbe-link.spec");
-   --  Pull in crtbegin/crtend objects and register exceptions for ZCX.
-   --  This is commented out by our Makefile for SJLJ runtimes.
-
    pragma Linker_Options ("--specs=vxworks-smp-e500-link.spec");
    pragma Linker_Options ("--specs=vxworks-e500-link.spec");
    --  Setup proper set of -L's for this configuration
index 43da85ff7069855b9c00efbe9a39171268aee2ff..072f27b22b7ddab38f7be6b51a0b12fb0c82c182 100644 (file)
@@ -120,10 +120,6 @@ package System is
 
 private
 
-   pragma Linker_Options ("--specs=vxworks-gnat-crtbe-link.spec");
-   --  Pull in crtbegin/crtend objects and register exceptions for ZCX.
-   --  This is commented out by our Makefile for SJLJ runtimes.
-
    pragma Linker_Options ("--specs=vxworks-e500-link.spec");
    --  Setup proper set of -L's for this configuration
 
index 6954a288327c8388b274dd0c89a7d7faa39242e6..e254495bdbbaaed9b2d0e558f63685b169972fac 100644 (file)
@@ -118,10 +118,6 @@ package System is
 
 private
 
-   pragma Linker_Options ("--specs=vxworks-gnat-crtbe-link.spec");
-   --  Pull in crtbegin/crtend objects and register exceptions for ZCX.
-   --  This is commented out by our Makefile for SJLJ runtimes.
-
    type Address is mod Memory_Size;
    Null_Address : constant Address := 0;
 
index f8187fae762773f0199945a4b24b275007bf6da1..b0ee8164c48ca0465134ee9d57600adae2986a39 100644 (file)
@@ -120,10 +120,6 @@ package System is
 
 private
 
-   pragma Linker_Options ("--specs=vxworks-gnat-crtbe-link.spec");
-   --  Pull in crtbegin/crtend objects and register exceptions for ZCX.
-   --  This is commented out by our Makefile for SJLJ runtimes.
-
    pragma Linker_Options ("--specs=vxworks-smp-ppc-link.spec");
    pragma Linker_Options ("--specs=vxworks-ppc-link.spec");
    --  Setup proper set of -L's for this configuration
index 2c8dd51321bfcd05613db76ae8693c4fd2c6cd0f..aefb37e1a9959dffdf8f50c914756dc424d7e2dd 100644 (file)
@@ -120,10 +120,6 @@ package System is
 
 private
 
-   pragma Linker_Options ("--specs=vxworks-gnat-crtbe-link.spec");
-   --  Pull in crtbegin/crtend objects and register exceptions for ZCX.
-   --  This is commented out by our Makefile for SJLJ runtimes.
-
    pragma Linker_Options ("--specs=vxworks-ppc-link.spec");
    --  Setup proper set of -L's for this configuration
 
index 016496e76e94067f9c77153bc1a1f66e65b8da7d..ac09950db4b40dd395106454c8e36c80f396cc28 100644 (file)
@@ -118,10 +118,6 @@ package System is
 
 private
 
-   pragma Linker_Options ("--specs=vxworks-gnat-crtbe-link.spec");
-   --  Pull in crtbegin/crtend objects and register exceptions for ZCX.
-   --  This is commented out by our Makefile for SJLJ runtimes.
-
    pragma Linker_Options ("--specs=vxworks-ppc-link.spec");
    --  Setup proper set of -L's for this configuration
 
index f21b4168d1f9b48ad8474b72ee50cd0b99394ad2..a9d44e26a2a7ec064783f52c660084c1a7b5e4c7 100644 (file)
@@ -118,10 +118,6 @@ package System is
 
 private
 
-   pragma Linker_Options ("--specs=vxworks-gnat-crtbe-link.spec");
-   --  Pull in crtbegin/crtend objects and register exceptions for ZCX.
-   --  This is commented out by our Makefile for SJLJ runtimes.
-
    pragma Linker_Options ("--specs=vxworks-x86-link.spec");
    --  Setup proper set of -L's for this configuration
 
index 2bc9f29584548d47683c62b60d15e4417de537fd..cbd8611cf1517c9c7da8de3e342d4da37d3286d0 100644 (file)
@@ -118,10 +118,6 @@ package System is
 
 private
 
-   pragma Linker_Options ("--specs=vxworks-gnat-crtbe-link.spec");
-   --  Pull in crtbegin/crtend objects and register exceptions for ZCX.
-   --  This is commented out by our Makefile for SJLJ runtimes.
-
    pragma Linker_Options ("--specs=vxworks-smp-x86-link.spec");
    pragma Linker_Options ("--specs=vxworks-x86-link.spec");
    --  Setup proper set of -L's for this configuration
index 1be6636e7e47d6af49a3aba69693250dc4c57314..a3061f77d0ccb9fe82e5b58e1834d503a84ebe5c 100644 (file)
@@ -118,10 +118,6 @@ package System is
 
 private
 
-   pragma Linker_Options ("--specs=vxworks-gnat-crtbe-link.spec");
-   --  Pull in crtbegin/crtend objects and register exceptions for ZCX.
-   --  This is commented out by our Makefile for SJLJ runtimes.
-
    pragma Linker_Options ("--specs=vxworks-x86-link.spec");
    --  Setup proper set of -L's for this configuration
 
index 4fcc8d4afbc84582022601b6e06909df93dbd56e..57b8dd6480e07023c835a1c372928891e8301f58 100644 (file)
@@ -120,10 +120,6 @@ package System is
 
 private
 
-   pragma Linker_Options ("--specs=vxworks7-gnat-crtbe-link.spec");
-   --  Pull in crtbegin/crtend objects and register exceptions for ZCX.
-   --  This is commented out by our Makefile for SJLJ runtimes.
-
    pragma Linker_Options ("--specs=vxworks7-rtp-base-link.spec");
    --  Define the symbol wrs_rtp_base
 
index c53a6099bcdc4efdd92744e624da9d11518ad598..368dfb1be82d0c047b9fda5876c2c2ec251b81bd 100644 (file)
@@ -120,10 +120,6 @@ package System is
 
 private
 
-   pragma Linker_Options ("--specs=vxworks7-gnat-crtbe-link.spec");
-   --  Pull in crtbegin/crtend objects and register exceptions for ZCX.
-   --  This is commented out by our Makefile for SJLJ runtimes.
-
    type Address is mod Memory_Size;
    Null_Address : constant Address := 0;
 
index df6ee34e2170d2325afcecbbc57e85971cba8f4e..ba88139e5b3cfe743dec125159d60cbe33d7d2e0 100644 (file)
@@ -120,9 +120,6 @@ package System is
 
 private
 
-   pragma Linker_Options ("--specs=vxworks7-rtp-base-link.spec");
-   --  Define the symbol wrs_rtp_base
-
    type Address is mod Memory_Size;
    Null_Address : constant Address := 0;
 
index 7e524ca3c540c77491f2c6145726499cd15840e2..e88042c84db1d8c7ed05248b35941c57e2ff8427 100644 (file)
@@ -118,10 +118,6 @@ package System is
 
 private
 
-   pragma Linker_Options ("--specs=vxworks7-gnat-crtbe-link.spec");
-   --  Pull in crtbegin/crtend objects and register exceptions for ZCX.
-   --  This is commented out by our Makefile for SJLJ runtimes.
-
    type Address is mod Memory_Size;
    Null_Address : constant Address := 0;
 
index fca69e646523f2306aac389f9135c5f48859bc22..2bd54ea3e269bc4d10b70313a133f6f0854b27de 100644 (file)
@@ -120,10 +120,6 @@ package System is
 
 private
 
-   pragma Linker_Options ("--specs=vxworks7-gnat-crtbe-link.spec");
-   --  Pull in crtbegin/crtend objects and register exceptions for ZCX.
-   --  This is commented out by our Makefile for SJLJ runtimes.
-
    pragma Linker_Options ("--specs=vxworks7-rtp-base-link.spec");
    --  Define the symbol wrs_rtp_base
 
index f85eed98abc1757a69fa64383996acb5a19053f2..1f2ec963ccb960fd1cdbea38bd3a06776537d093 100644 (file)
@@ -120,10 +120,6 @@ package System is
 
 private
 
-   pragma Linker_Options ("--specs=vxworks7-gnat-crtbe-link.spec");
-   --  Pull in crtbegin/crtend objects and register exceptions for ZCX.
-   --  This is commented out by our Makefile for SJLJ runtimes.
-
    pragma Linker_Options ("--specs=vxworks-e500-link.spec");
    --  Setup proper set of -L's for this configuration
 
index 18b71498e5632f1458dbaffc9970abd64f2cf1f1..9a97aaf4a8724aa5cd27f194fb2484ce48fc8787 100644 (file)
@@ -118,10 +118,6 @@ package System is
 
 private
 
-   pragma Linker_Options ("--specs=vxworks7-gnat-crtbe-link.spec");
-   --  Pull in crtbegin/crtend objects and register exceptions for ZCX.
-   --  This is commented out by our Makefile for SJLJ runtimes.
-
    type Address is mod Memory_Size;
    Null_Address : constant Address := 0;
 
index 66dc1391b39ea9ebab77a4a4c88aebf67a45d504..d0d702e38667388bb3fd8d1cdc2737d4dd477272 100644 (file)
@@ -120,10 +120,6 @@ package System is
 
 private
 
-   pragma Linker_Options ("--specs=vxworks7-gnat-crtbe-link.spec");
-   --  Pull in crtbegin/crtend objects and register exceptions for ZCX.
-   --  This is commented out by our Makefile for SJLJ runtimes.
-
    pragma Linker_Options ("--specs=vxworks7-rtp-base-link.spec");
    --  Define the symbol wrs_rtp_base
 
index 90c7c88ed3851bb8fb204d00aa70259ee45d0b6f..149ad2bb5b39902e92353493167182cbd3ee74db 100644 (file)
@@ -120,10 +120,6 @@ package System is
 
 private
 
-   pragma Linker_Options ("--specs=vxworks7-gnat-crtbe-link.spec");
-   --  Pull in crtbegin/crtend objects and register exceptions for ZCX.
-   --  This is commented out by our Makefile for SJLJ runtimes.
-
    pragma Linker_Options ("--specs=vxworks-ppc-link.spec");
    --  Setup proper set of -L's for this configuration
 
index bef73b0ea543c34b26b3311291b828d41d9d953e..ab04a429e31c2a2063a75b5200f40c3e3a8b5a7a 100644 (file)
@@ -120,10 +120,6 @@ package System is
 
 private
 
-   pragma Linker_Options ("--specs=vxworks7-gnat-crtbe-link.spec");
-   --  Pull in crtbegin/crtend objects and register exceptions for ZCX.
-   --  This is commented out by our Makefile for SJLJ runtimes.
-
    type Address is mod Memory_Size;
    Null_Address : constant Address := 0;
 
index dd2830988b5a66e61ec093f81fb5d70915d882c3..8d4c3c016fdacc6663588e19612fbd1e87b4a417 100644 (file)
@@ -120,10 +120,6 @@ package System is
 
 private
 
-   pragma Linker_Options ("--specs=vxworks7-gnat-crtbe-link.spec");
-   --  Pull in crtbegin/crtend objects and register exceptions for ZCX.
-   --  This is commented out by our Makefile for SJLJ runtimes.
-
    pragma Linker_Options ("--specs=vxworks7-ppc64-rtp-base-link.spec");
    --  Define the symbol wrs_rtp_base
 
index d325ba39671b74b91176bc24d26912d32c0e612c..20202ad78fa843b2a1142ee47ed9ba5a01c307a8 100644 (file)
@@ -118,10 +118,6 @@ package System is
 
 private
 
-   pragma Linker_Options ("--specs=vxworks7-gnat-crtbe-link.spec");
-   --  Pull in crtbegin/crtend objects and register exceptions for ZCX.
-   --  This is commented out by our Makefile for SJLJ runtimes.
-
    type Address is mod Memory_Size;
    Null_Address : constant Address := 0;
 
index bafd8f6d529d203dfb40424c0d7b468cbd8bba1c..37f7d427cfe6a8d84f709fcb8e3788d27ce09f67 100644 (file)
@@ -118,10 +118,6 @@ package System is
 
 private
 
-   pragma Linker_Options ("--specs=vxworks7-gnat-crtbe-link.spec");
-   --  Pull in crtbegin/crtend objects and register exceptions for ZCX.
-   --  This is commented out by our Makefile for SJLJ runtimes.
-
    pragma Linker_Options ("--specs=vxworks7-x86-rtp-base-link.spec");
    --  Define the symbol wrs_rtp_base
 
index 503d0953c9465c3330553407b171cee6551709b8..8a4542f8bfcace3cea4ac36b8431334dd46a3cf9 100644 (file)
@@ -118,10 +118,6 @@ package System is
 
 private
 
-   pragma Linker_Options ("--specs=vxworks7-gnat-crtbe-link.spec");
-   --  Pull in crtbegin/crtend objects and register exceptions for ZCX.
-   --  This is commented out by our Makefile for SJLJ runtimes.
-
    pragma Linker_Options ("--specs=vxworks-x86-link.spec");
    --  Setup proper set of -L's for this configuration
 
index 39d6fb097814668dee5f243f59d43a7d6c09db81..4d5c4157901af8200ef7e0468b1b4c403db2d573 100644 (file)
@@ -118,10 +118,6 @@ package System is
 
 private
 
-   pragma Linker_Options ("--specs=vxworks7-gnat-crtbe-link.spec");
-   --  Pull in crtbegin/crtend objects and register exceptions for ZCX.
-   --  This is commented out by our Makefile for SJLJ runtimes.
-
    type Address is mod Memory_Size;
    Null_Address : constant Address := 0;
 
index 145b6eeb99cb0df7938a47856347a6d01820d3cf..cb143374aac84c98da22762689bfdc74b59793cd 100644 (file)
@@ -118,10 +118,6 @@ package System is
 
 private
 
-   pragma Linker_Options ("--specs=vxworks7-gnat-crtbe-link.spec");
-   --  Pull in crtbegin/crtend objects and register exceptions for ZCX.
-   --  This is commented out by our Makefile for SJLJ runtimes.
-
    pragma Linker_Options ("--specs=vxworks7-x86_64-rtp-base-link.spec");
    --  Define the symbol wrs_rtp_base
 
diff --git a/gcc/ada/vx_crtbegin.c b/gcc/ada/vx_crtbegin.c
deleted file mode 100644 (file)
index b52bdad..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-/****************************************************************************
- *                                                                          *
- *                         GNAT COMPILER COMPONENTS                         *
- *                                                                          *
- *                          V X _ C R T B E G I N                           *
- *                                                                          *
- *                          C Implementation File                           *
- *                                                                          *
- *              Copyright (C) 2016-2018, Free Software Foundation, Inc.     *
- *                                                                          *
- * GNAT is free software;  you can  redistribute it  and/or modify it under *
- * terms of the  GNU General Public License as published  by the Free Soft- *
- * ware  Foundation;  either version 3,  or (at your option) any later ver- *
- * sion.  GNAT is distributed in the hope that it will be useful, but WITH- *
- * OUT ANY WARRANTY;  without even the  implied warranty of MERCHANTABILITY *
- * or FITNESS FOR A PARTICULAR PURPOSE.                                     *
- *                                                                          *
- * As a special exception under Section 7 of GPL version 3, you are granted *
- * additional permissions described in the GCC Runtime Library Exception,   *
- * version 3.1, as published by the Free Software Foundation.               *
- *                                                                          *
- * You should have received a copy of the GNU General Public License and    *
- * a copy of the GCC Runtime Library Exception along with this program;     *
- * see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see    *
- * <http://www.gnu.org/licenses/>.                                          *
- *                                                                          *
- * GNAT was originally developed  by the GNAT team at  New York University. *
- * Extensive contributions were provided by Ada Core Technologies Inc.      *
- *                                                                          *
- ****************************************************************************/
-
-/* crtbegin kind of file for ehframe registration/deregistration
-   purposes on VxWorks.  This variant exposes just the ctor/dtor functions
-   without any particular attribute.  */
-
-#define CTOR_ATTRIBUTE
-#define DTOR_ATTRIBUTE
-
-#include "vx_crtbegin.inc"
diff --git a/gcc/ada/vx_crtbegin.inc b/gcc/ada/vx_crtbegin.inc
deleted file mode 100644 (file)
index ad3df31..0000000
+++ /dev/null
@@ -1,68 +0,0 @@
-/****************************************************************************
- *                                                                          *
- *                         GNAT COMPILER COMPONENTS                         *
- *                                                                          *
- *                          V X _ C R T B E G I N                           *
- *                                                                          *
- *                          C Implementation File                           *
- *                                                                          *
- *              Copyright (C) 2016, Free Software Foundation, Inc.          *
- *                                                                          *
- * GNAT is free software;  you can  redistribute it  and/or modify it under *
- * terms of the  GNU General Public License as published  by the Free Soft- *
- * ware  Foundation;  either version 3,  or (at your option) any later ver- *
- * sion.  GNAT is distributed in the hope that it will be useful, but WITH- *
- * OUT ANY WARRANTY;  without even the  implied warranty of MERCHANTABILITY *
- * or FITNESS FOR A PARTICULAR PURPOSE.                                     *
- *                                                                          *
- * As a special exception under Section 7 of GPL version 3, you are granted *
- * additional permissions described in the GCC Runtime Library Exception,   *
- * version 3.1, as published by the Free Software Foundation.               *
- *                                                                          *
- * You should have received a copy of the GNU General Public License and    *
- * a copy of the GCC Runtime Library Exception along with this program;     *
- * see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see    *
- * <http://www.gnu.org/licenses/>.                                          *
- *                                                                          *
- * GNAT was originally developed  by the GNAT team at  New York University. *
- * Extensive contributions were provided by Ada Core Technologies Inc.      *
- *                                                                          *
- ****************************************************************************/
-
-/* Common body for the various flavors of vx_crtbegin C sources we need
-   to perform eh frame registration/deregistration in various
-   circumstances.  #includers should define CDTOR_VISIBILITY. */
-
-#include "tconfig.h"
-#include "tsystem.h"
-#include "coretypes.h"
-#include "tm.h"
-#include "unwind-dw2-fde.h"
-
-/* Pick names that the VxWorks muncher will get if involved and leave the
-   symbols with public visibility.  Hiding by default is pointless and even
-   problematic in some configurations.  When the presence of these
-   constructors is an issue, best is not to include the crt object files at
-   all.  */
-
-#define CTOR_NAME _STI__101___crtbe_register_frame
-#define DTOR_NAME _STD__101___crtbe_deregister_frame
-
-void CTOR_NAME (void) CTOR_ATTRIBUTE;
-void DTOR_NAME (void) DTOR_ATTRIBUTE;
-
-static const char __EH_FRAME_BEGIN__[]
-__attribute__((section(EH_FRAME_SECTION_NAME), aligned(4)))
-  = { };
-
-void CTOR_NAME (void)
-{
-  static struct object object;
-  __register_frame_info (__EH_FRAME_BEGIN__, &object);
-}
-
-void DTOR_NAME (void)
-{
-  __deregister_frame_info (__EH_FRAME_BEGIN__);
-}
-
diff --git a/gcc/ada/vx_crtbegin_array.c b/gcc/ada/vx_crtbegin_array.c
deleted file mode 100644 (file)
index b2740ae..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-/****************************************************************************
- *                                                                          *
- *                         GNAT COMPILER COMPONENTS                         *
- *                                                                          *
- *                          V X _ C R T B E G I N                           *
- *                                                                          *
- *                          C Implementation File                           *
- *                                                                          *
- *              Copyright (C) 2016-2018, Free Software Foundation, Inc.     *
- *                                                                          *
- * GNAT is free software;  you can  redistribute it  and/or modify it under *
- * terms of the  GNU General Public License as published  by the Free Soft- *
- * ware  Foundation;  either version 3,  or (at your option) any later ver- *
- * sion.  GNAT is distributed in the hope that it will be useful, but WITH- *
- * OUT ANY WARRANTY;  without even the  implied warranty of MERCHANTABILITY *
- * or FITNESS FOR A PARTICULAR PURPOSE.                                     *
- *                                                                          *
- * As a special exception under Section 7 of GPL version 3, you are granted *
- * additional permissions described in the GCC Runtime Library Exception,   *
- * version 3.1, as published by the Free Software Foundation.               *
- *                                                                          *
- * You should have received a copy of the GNU General Public License and    *
- * a copy of the GCC Runtime Library Exception along with this program;     *
- * see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see    *
- * <http://www.gnu.org/licenses/>.                                          *
- *                                                                          *
- * GNAT was originally developed  by the GNAT team at  New York University. *
- * Extensive contributions were provided by Ada Core Technologies Inc.      *
- *                                                                          *
- ****************************************************************************/
-
-/* crtbegin kind of file for ehframe registration/deregistration
-   purposes on VxWorks.  This variant provides _ctors and _dtors
-   arrays that the kernel module loader knows to process when it has
-   been configured for this purpose (c++ constructor strategy set to
-   automatic).  */
-
-#define CTOR_ATTRIBUTE
-#define DTOR_ATTRIBUTE
-
-#include "vx_crtbegin.inc"
-
-typedef void (*func_ptr) (void);
-func_ptr _dtors [] = {DTOR_NAME, 0};
-func_ptr _ctors [] = {CTOR_NAME, 0};
diff --git a/gcc/ada/vx_crtbegin_attr.c b/gcc/ada/vx_crtbegin_attr.c
deleted file mode 100644 (file)
index f10555d..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-/****************************************************************************
- *                                                                          *
- *                         GNAT COMPILER COMPONENTS                         *
- *                                                                          *
- *                          V X _ C R T B E G I N                           *
- *                                                                          *
- *                          C Implementation File                           *
- *                                                                          *
- *              Copyright (C) 2016-2018, Free Software Foundation, Inc.     *
- *                                                                          *
- * GNAT is free software;  you can  redistribute it  and/or modify it under *
- * terms of the  GNU General Public License as published  by the Free Soft- *
- * ware  Foundation;  either version 3,  or (at your option) any later ver- *
- * sion.  GNAT is distributed in the hope that it will be useful, but WITH- *
- * OUT ANY WARRANTY;  without even the  implied warranty of MERCHANTABILITY *
- * or FITNESS FOR A PARTICULAR PURPOSE.                                     *
- *                                                                          *
- * As a special exception under Section 7 of GPL version 3, you are granted *
- * additional permissions described in the GCC Runtime Library Exception,   *
- * version 3.1, as published by the Free Software Foundation.               *
- *                                                                          *
- * You should have received a copy of the GNU General Public License and    *
- * a copy of the GCC Runtime Library Exception along with this program;     *
- * see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see    *
- * <http://www.gnu.org/licenses/>.                                          *
- *                                                                          *
- * GNAT was originally developed  by the GNAT team at  New York University. *
- * Extensive contributions were provided by Ada Core Technologies Inc.      *
- *                                                                          *
- ****************************************************************************/
-
-/* crtbegin kind of file for ehframe registration/deregistration
-   purposes on VxWorks.  This variant exposes the ctor/dtor functions
-   as explicit constructors referenced from a .ctors/.dtors section.  */
-
-#define CTOR_ATTRIBUTE
-#define DTOR_ATTRIBUTE
-
-#include "vx_crtbegin.inc"
-
-/* 101 is the highest user level priority allowed by VxWorks.  */
-
-static void (* volatile eh_registration_ctors[])()
-  __attribute__((section (".ctors.65424")))
-= { &CTOR_NAME };
-
-static void (* volatile eh_registration_dtors[])()
-  __attribute__((section (".dtors.65424")))
-= { &DTOR_NAME };
diff --git a/gcc/ada/vx_crtend.c b/gcc/ada/vx_crtend.c
deleted file mode 100644 (file)
index 374f41a..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-/****************************************************************************
- *                                                                          *
- *                         GNAT COMPILER COMPONENTS                         *
- *                                                                          *
- *                            V X _ C R T E N D                             *
- *                                                                          *
- *                          C Implementation File                           *
- *                                                                          *
- *              Copyright (C) 2016-2018, Free Software Foundation, Inc.     *
- *                                                                          *
- * GNAT is free software;  you can  redistribute it  and/or modify it under *
- * terms of the  GNU General Public License as published  by the Free Soft- *
- * ware  Foundation;  either version 3,  or (at your option) any later ver- *
- * sion.  GNAT is distributed in the hope that it will be useful, but WITH- *
- * OUT ANY WARRANTY;  without even the  implied warranty of MERCHANTABILITY *
- * or FITNESS FOR A PARTICULAR PURPOSE.                                     *
- *                                                                          *
- * As a special exception under Section 7 of GPL version 3, you are granted *
- * additional permissions described in the GCC Runtime Library Exception,   *
- * version 3.1, as published by the Free Software Foundation.               *
- *                                                                          *
- * You should have received a copy of the GNU General Public License and    *
- * a copy of the GCC Runtime Library Exception along with this program;     *
- * see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see    *
- * <http://www.gnu.org/licenses/>.                                          *
- *                                                                          *
- * GNAT was originally developed  by the GNAT team at  New York University. *
- * Extensive contributions were provided by Ada Core Technologies Inc.      *
- *                                                                          *
- ****************************************************************************/
-
-/* crtend kind of file for ehframe registration/deregistration
-   purposes on VxWorks.  */
-
-#include "tconfig.h"
-#include "tsystem.h"
-#include "coretypes.h"
-#include "tm.h"
-
-# if __INT_MAX__ == 2147483647
-typedef int int32;
-# elif __LONG_MAX__ == 2147483647
-typedef long int32;
-# elif __SHRT_MAX__ == 2147483647
-typedef short int32;
-# else
-#  error "Missing a 4 byte integer"
-# endif
-
-static const int32 __FRAME_END__[]
-     __attribute__ ((used, section(EH_FRAME_SECTION_NAME),
-                    aligned(sizeof(int32))))
-     = { 0 };
diff --git a/gcc/ada/vxworks-gnat-crtbe-link.spec b/gcc/ada/vxworks-gnat-crtbe-link.spec
deleted file mode 100644 (file)
index 81cdbfb..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-*self_spec:
-+ %{!auto-register:%{!noauto-register:-auto-register}} \
-  %{!crtbe:%{!nocrtbe:-crtbe}}
-
-*startfile:
-+ %{crtbe:%{!nocrtbe: \
-    %{mrtp:-l:vx_crtbegin_attr.o%s} \
-    %{!mrtp: \
-      %{auto-register:-l:vx_crtbegin_array.o%s} \
-      %{!auto-register:-l:vx_crtbegin.o%s} \
-     } \
-   }}
-
-*endfile:
-+ %{crtbe:%{!nocrtbe:-l:vx_crtend.o%s}}
-