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] Fix target/16557, x86-darwin does not build


GCC is invoking as with unknown option -feliminate-unused-debug-symbols on
i686-pc-darwin:
as -arch i686 -force_cpusubtype_ALL -feliminate-unused-debug-symbols -o libgcc/./_muldi3.o /var/tmp//cchko8GG.s


It looks like a misplaced patch which caused this.
The patch here corrects that error.


OK? It got me further on a cross build from powerpc-apple-darwin to i686-pc-darwin and I will post the next patch which got me past building libgcc.

ChangeLog:
	* config/i386/darwin.h (CC1_SPEC): Move the -g SPECs from ...
	(ASM_SPEC): here.

Patch:
Index: darwin.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/i386/darwin.h,v
retrieving revision 1.17
diff -u -p -r1.17 darwin.h
--- darwin.h	17 Jul 2004 19:04:26 -0000	1.17
+++ darwin.h	21 Jul 2004 00:18:44 -0000
@@ -39,13 +39,13 @@ Boston, MA 02111-1307, USA.  */
    the kernel or some such.  */

 #undef CC1_SPEC
-#define CC1_SPEC "%{!static:-fPIC}"
+#define CC1_SPEC "%{!static:-fPIC}\
+  %{gused: -g -feliminate-unused-debug-symbols %<gused }\
+  %{gfull: -g -fno-eliminate-unused-debug-symbols %<gfull }\
+  %{g: %{!gfull: -feliminate-unused-debug-symbols %<gfull }}"

 #define ASM_SPEC "-arch i686 \
   -force_cpusubtype_ALL \
-  %{gused: -g -feliminate-unused-debug-symbols %<gused }\
-  %{gfull: -g -fno-eliminate-unused-debug-symbols %<gfull }\
-  %{g: %{!gfull: -feliminate-unused-debug-symbols %<gfull }}\
   %{Zforce_cpusubtype_ALL:-force_cpusubtype_ALL} \
   %{!Zforce_cpusubtype_ALL:%{mmmx:-force_cpusubtype_ALL}\
 			   %{msse:-force_cpusubtype_ALL}\


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