This is the mail archive of the gcc-patches@gcc.gnu.org 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]

[patch] sparc64 freebsd


Hello,

the patch below fixes around 47 test cases.
The problem is that the spec did not separate the object file from the following FBSD_ENDFILE_SPEC.


The error showed up like this:

/usr/bin/ld could not find crtfastmath.ocrtend.o

Adding a space at the end of the ENDFILE_SPEC 'fixes' that.

Is this the right way to do?

if so, ok for main?

Thanks,
Andreas

2006-02-01 Andreas Tobler <a.tobler@schweiz.ch>

	* config/sparc/freebsd.h (ENDFILE_SPEC): Add space to separate
	object files.

Index: config/sparc/freebsd.h
===================================================================
--- config/sparc/freebsd.h (revision 110467)
+++ config/sparc/freebsd.h (working copy)
@@ -1,5 +1,5 @@
/* Definitions for Sun SPARC64 running FreeBSD using the ELF format
- Copyright (C) 2001, 2002, 2004, 2005 Free Software Foundation, Inc.
+ Copyright (C) 2001, 2002, 2004, 2005, 2006 Free Software Foundation, Inc.
Contributed by David E. O'Brien <obrien@FreeBSD.org> and BSDi.


 This file is part of GCC.
@@ -150,9 +150,9 @@
 /* #define DWARF_OFFSET_SIZE PTR_SIZE */

 #undef ENDFILE_SPEC
-#define ENDFILE_SPEC \
-       "%{ffast-math|funsafe-math-optimizations:crtfastmath.o%s}" \
-       FBSD_ENDFILE_SPEC
+#define ENDFILE_SPEC                                           \
+  "%{ffast-math|funsafe-math-optimizations:crtfastmath.o%s} "  \
+  FBSD_ENDFILE_SPEC

/* We use GNU ld so undefine this so that attribute((init_priority)) works. */
#undef CTORS_SECTION_ASM_OP



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