aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/spu
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2008-11-14 22:23:03 +0000
committerUlrich Weigand <uweigand@gcc.gnu.org>2008-11-14 22:23:03 +0000
commit5800e0a0f201f8a6b4a179ae0dc335df100086dd (patch)
tree8e6808b6303f6c8217f1adb5ffcd76e6ca854c1f /gcc/config/spu
parent8cc99a4d4717b4bd5cb2362ea3e18d0f745a83eb (diff)
downloadgcc-5800e0a0f201f8a6b4a179ae0dc335df100086dd.zip
gcc-5800e0a0f201f8a6b4a179ae0dc335df100086dd.tar.gz
gcc-5800e0a0f201f8a6b4a179ae0dc335df100086dd.tar.bz2
spu-elf.h (STANDARD_STARTFILE_PREFIX_2): Disable default.
* config/spu/spu-elf.h (STANDARD_STARTFILE_PREFIX_2): Disable default. (STANDARD_INCLUDE_DIR): Redefine to "/include". (LOCAL_INCLUDE_DIR): Undefine. * config/spu/t-spu-elf (NATIVE_SYSTEM_HEADER_DIR): Define. From-SVN: r141870
Diffstat (limited to 'gcc/config/spu')
-rw-r--r--gcc/config/spu/spu-elf.h17
-rw-r--r--gcc/config/spu/t-spu-elf3
2 files changed, 20 insertions, 0 deletions
diff --git a/gcc/config/spu/spu-elf.h b/gcc/config/spu/spu-elf.h
index c04f6d9..b1f8a45 100644
--- a/gcc/config/spu/spu-elf.h
+++ b/gcc/config/spu/spu-elf.h
@@ -24,6 +24,23 @@
asm_output_aligned_bss (FILE, DECL, NAME, SIZE, ALIGN)
+/* The following macros define "native" directory locations; on the SPU,
+ these are used only when building the compiler with --with-sysroot.
+ This can be used to build a pair of PPU and SPU cross-compilers with
+ a common sysroot; the SPU compiler will search for its files in
+ ${sysroot}/include and ${sysroot}/lib. */
+
+/* STANDARD_STARTFILE_PREFIX_1 is "/lib", which we keep.
+ STANDARD_STARTFILE_PREFIX_2 is "/usr/lib" -- we remove this. */
+#undef STANDARD_STARTFILE_PREFIX_2
+#define STANDARD_STARTFILE_PREFIX_2 ""
+
+/* Use "/include" instead of "/usr/include". */
+#undef STANDARD_INCLUDE_DIR
+#define STANDARD_INCLUDE_DIR "/include"
+
+/* We do not provide any "/usr/local/include" directory on SPU. */
+#undef LOCAL_INCLUDE_DIR
/* Provide a STARTFILE_SPEC appropriate for GNU/Linux. Here we add
the GNU/Linux magical crtbegin.o file (see crtstuff.c) which
diff --git a/gcc/config/spu/t-spu-elf b/gcc/config/spu/t-spu-elf
index 017f09d..dbb1b7c 100644
--- a/gcc/config/spu/t-spu-elf
+++ b/gcc/config/spu/t-spu-elf
@@ -14,6 +14,9 @@
# along with GCC; see the file COPYING3. If not see
# <http://www.gnu.org/licenses/>.
+# Define system directory to match STANDARD_INCLUDE_DIR in spu-elf.h,
+# allowing combined SPU/PPU sysroot builds.
+NATIVE_SYSTEM_HEADER_DIR = /include
# Suppress building libgcc1.a
LIBGCC1 =