[Ada] Add missing spec files for VxWorks runtimes
authorPierre-Marie de Rodat <derodat@adacore.com>
Thu, 31 May 2018 10:47:45 +0000 (10:47 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Thu, 31 May 2018 10:47:45 +0000 (10:47 +0000)
2018-05-31  Pierre-Marie de Rodat  <derodat@adacore.com>

gcc/ada/

* vxworks-arm-link.spec, vxworks-e500-link.spec,
vxworks-gnat-crtbe-link.spec, vxworks-smp-arm-link.spec,
vxworks-smp-e500-link.spec, vxworks-smp-ppc-link.spec,
vxworks-smp-x86-link.spec: New files.

From-SVN: r261017

gcc/ada/ChangeLog
gcc/ada/vxworks-arm-link.spec [new file with mode: 0644]
gcc/ada/vxworks-e500-link.spec [new file with mode: 0644]
gcc/ada/vxworks-gnat-crtbe-link.spec [new file with mode: 0644]
gcc/ada/vxworks-smp-arm-link.spec [new file with mode: 0644]
gcc/ada/vxworks-smp-e500-link.spec [new file with mode: 0644]
gcc/ada/vxworks-smp-ppc-link.spec [new file with mode: 0644]
gcc/ada/vxworks-smp-x86-link.spec [new file with mode: 0644]

index 6aecd8919bc5bec7956e6029da54f7d5e7526819..5590ecaf3b3ccd91517c017e7c8151dff21a12b3 100644 (file)
@@ -1,3 +1,10 @@
+2018-05-31  Pierre-Marie de Rodat  <derodat@adacore.com>
+
+       * vxworks-arm-link.spec, vxworks-e500-link.spec,
+       vxworks-gnat-crtbe-link.spec, vxworks-smp-arm-link.spec,
+       vxworks-smp-e500-link.spec, vxworks-smp-ppc-link.spec,
+       vxworks-smp-x86-link.spec: New files.
+
 2018-05-31  Pierre-Marie de Rodat  <derodat@adacore.com>
 
        * gnatvsn.adb: Re-center the copyright header.
diff --git a/gcc/ada/vxworks-arm-link.spec b/gcc/ada/vxworks-arm-link.spec
new file mode 100644 (file)
index 0000000..71c9832
--- /dev/null
@@ -0,0 +1,4 @@
+*lib:
++ %{mrtp:%{!shared: \
+      -L%:getenv(WIND_BASE /target/lib/usr/lib/arm/ARMARCH7/common) \
+   }}
diff --git a/gcc/ada/vxworks-e500-link.spec b/gcc/ada/vxworks-e500-link.spec
new file mode 100644 (file)
index 0000000..befeba1
--- /dev/null
@@ -0,0 +1,6 @@
+*lib:
++ %{mrtp:%{!shared: \
+     -L%:if-exists-else( \
+         %:getenv(WIND_BASE /target/lib/usr/lib/ppc/PPC32/e500v2common) \
+         %:getenv(WIND_BASE /target/usr/lib/ppc/PPC32/e500v2common)) \
+   }}
diff --git a/gcc/ada/vxworks-gnat-crtbe-link.spec b/gcc/ada/vxworks-gnat-crtbe-link.spec
new file mode 100644 (file)
index 0000000..81cdbfb
--- /dev/null
@@ -0,0 +1,16 @@
+*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}}
+
diff --git a/gcc/ada/vxworks-smp-arm-link.spec b/gcc/ada/vxworks-smp-arm-link.spec
new file mode 100644 (file)
index 0000000..0370716
--- /dev/null
@@ -0,0 +1,4 @@
+*lib:
++ %{mrtp:%{!shared: \
+      -L%:getenv(WIND_BASE /target/lib_smp/usr/lib/arm/ARMARCH7/common) \
+   }}
diff --git a/gcc/ada/vxworks-smp-e500-link.spec b/gcc/ada/vxworks-smp-e500-link.spec
new file mode 100644 (file)
index 0000000..799bd19
--- /dev/null
@@ -0,0 +1,4 @@
+*lib:
++ %{mrtp:%{!shared: \
+     -L%:getenv(WIND_BASE /target/lib_smp/usr/lib/ppc/PPC32/e500v2common) \
+   }}
diff --git a/gcc/ada/vxworks-smp-ppc-link.spec b/gcc/ada/vxworks-smp-ppc-link.spec
new file mode 100644 (file)
index 0000000..b68cac2
--- /dev/null
@@ -0,0 +1,4 @@
+*lib:
++ %{mrtp:%{!shared: \
+     -L%:getenv(WIND_BASE /target/lib_smp/usr/lib/ppc/PPC32/common) \
+   }}
diff --git a/gcc/ada/vxworks-smp-x86-link.spec b/gcc/ada/vxworks-smp-x86-link.spec
new file mode 100644 (file)
index 0000000..98a60c1
--- /dev/null
@@ -0,0 +1,9 @@
+*lib:
++ %{mrtp:%{!shared: \
+    %{vxsim: \
+      -L%:getenv(WIND_BASE /target/lib_smp/usr/lib/simpentium/SIMPENTIUM/common) \
+     } \
+    %{!vxsim: \
+      -L%:getenv(WIND_BASE /target/lib_smp/usr/lib/pentium/PENTIUM4/common) \
+     } \
+   }}