vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on $WIND_BASE instead of designating a harco...
authorOlivier Hainque <hainque@adacore.com>
Mon, 1 Sep 2014 13:00:56 +0000 (13:00 +0000)
committerOlivier Hainque <hainque@gcc.gnu.org>
Mon, 1 Sep 2014 13:00:56 +0000 (13:00 +0000)
        * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
        $WIND_BASE instead of designating a harcoded arbitrary home dir.
        (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.

From-SVN: r214792

gcc/ChangeLog
gcc/config/vxworksae.h

index ad35a11f7100505740a85d77ac351909949dfee3..390c89eae73b726a90f8460cfc58a7087ac2e0de 100644 (file)
@@ -1,3 +1,9 @@
+2014-09-01  Olivier Hainque  <hainque@adacore.com>
+
+       * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
+       $WIND_BASE instead of designating a harcoded arbitrary home dir.
+       (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
+
 2014-09-01  Richard Biener  <rguenther@suse.de>
 
        * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
index 8f82026d58b4b852f059231cfe9b745b5a73bd5f..1708832510ee170cf46d37ba5cbeb6f965f3ce8f 100644 (file)
@@ -23,9 +23,8 @@ along with GCC; see the file COPYING3.  If not see
 /* Most of the definitions below this point are versions of the
    vxworks.h definitions, without the -mrtp bits.  */
 
-/* The directory containing the VxWorks AE target headers.  */
-#define VXWORKSAE_TARGET_DIR \
-  "/home/tornado/vxworks-ae/latest/target"
+/* Resolve subdirectory of VxWorks AE target headers.  */
+#define VXWORKSAE_TARGET_DIR(SUBDIR) "%:getenv(WIND_BASE /target" SUBDIR ")"
 
 /* Include target/vThreads/h or target/h (depending on the compilation
    mode), and then target/val/h (in either mode).  The macros defined
@@ -35,10 +34,10 @@ along with GCC; see the file COPYING3.  If not see
 #define VXWORKS_ADDITIONAL_CPP_SPEC "                                  \
  %{!nostdinc:%{isystem*}}                                              \
  %{mvthreads:-DVTHREADS=1                                              \
-        %{!nostdinc:-isystem " VXWORKSAE_TARGET_DIR "/vThreads/h}}     \
+        %{!nostdinc:-isystem " VXWORKSAE_TARGET_DIR("/vThreads/h") "}} \
  %{!mvthreads:-DAE653_BUILD=1                                          \
-        %{!nostdinc:-isystem " VXWORKSAE_TARGET_DIR "/h}}              \
- %{!nostdinc:-isystem " VXWORKSAE_TARGET_DIR "/val/h}"
+        %{!nostdinc:-isystem " VXWORKSAE_TARGET_DIR("/h") "}}          \
+ %{!nostdinc:-isystem " VXWORKSAE_TARGET_DIR("/val/h") "}"
 
 #undef VXWORKS_LIB_SPEC
 #define VXWORKS_LIB_SPEC ""