This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Ada] Fix bad interaction between -s and --RTS

The 'gnatmake' tool features the -s option which forces a recompilation if 
compiler switches have changed since the previous compilation.  Now it was 
mishaving in conjunction with some --RTS options that are mapped to multilib
compiler switches.

Bootstrapped/regtested on i586-suse-linux, applied on the mainline.

2007-11-01  Eric Botcazou  <>

	* lang-specs.h: Move translation of -fRTS= after -gnatez switch.

Eric Botcazou
Index: lang-specs.h
--- lang-specs.h	(revision 129762)
+++ lang-specs.h	(working copy)
@@ -34,15 +34,15 @@
  %{!S:%{!c:%e-c or -S required for Ada}}\
  gnat1 %{I*} %{k8:-gnatk8} %{w:-gnatws} %{!Q:-quiet} %{nostdinc*}\
-    -dumpbase %{.adb:%b.adb}%{}%{!.adb:%{!.ads:%b.ada}} "
+    -dumpbase %{.adb:%b.adb}%{}%{!.adb:%{!.ads:%b.ada}}\
+    %{O*} %{W*} %{w} %{p} %{pg:-p} %{a} %{f*} %{d*} %{g*&m*} "
 #if defined(TARGET_VXWORKS_RTP)
    "%{fRTS=rtp:-mrtp} "
    "%{fRTS=sjlj:-fsjlj} "
-   "%{O*} %{W*} %{w} %{p} %{pg:-p} %{a} %{f*} %{d*} %{g*&m*} %1\
-    %{!S:%{o*:%w%*-gnatO}} \
+   "%1 %{!S:%{o*:%w%*-gnatO}} \
     %i %{S:%W{o*}%{!o*:-o %b.s}} \
     %{gnatc*|gnats*: -o %j} %{-param*} \
     %{!gnatc*:%{!gnats*:%(invoke_as)}}", 0, 0, 0},

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]