This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Fix PR target/20159
- From: Eric Botcazou <ebotcazou at libertysurf dot fr>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 23 Feb 2005 12:54:22 +0100
- Subject: Fix PR target/20159
config/sparc/sol2-ci.asm is assembled with -x assembler for sparc-elf and
sparc-rtems, while it is assembled with -x assembler-with-cpp for Solaris.
The former is wrong, leading to doubly included lines, a regression that was
introduced circa 1998, present in all 3.x compilers.
Tested by building a cross to sparc-elf, applied to all active branches.
2005-02-23 Michael Beach <michaelb@ieee.org>
PR target/20159
* config/sparc/t-elf (startup files): Assemble with CPP.
--
Eric Botcazou
--- config/sparc/t-elf.orig 2005-02-23 20:51:49.373839148 +1100
+++ config/sparc/t-elf 2005-02-23 20:52:20.183617201 +1100
@@ -24,6 +24,6 @@
# Assemble startup files.
crti.o: $(srcdir)/config/sparc/sol2-ci.asm $(GCC_PASSES)
- $(GCC_FOR_TARGET) -c -o crti.o -x assembler $(srcdir)/config/sparc/sol2-ci.asm
+ $(GCC_FOR_TARGET) -c -o crti.o -x assembler-with-cpp $(srcdir)/config/sparc/sol2-ci.asm
crtn.o: $(srcdir)/config/sparc/sol2-cn.asm $(GCC_PASSES)
- $(GCC_FOR_TARGET) -c -o crtn.o -x assembler $(srcdir)/config/sparc/sol2-cn.asm
+ $(GCC_FOR_TARGET) -c -o crtn.o -x assembler-with-cpp $(srcdir)/config/sparc/sol2-cn.asm