[Bug target/33115] -march=native is not supported under x86 darwin

2007-08-22 Thread pinskia at gcc dot gnu dot org


--- Comment #7 from pinskia at gcc dot gnu dot org  2007-08-22 10:03 ---
*** Bug 33144 has been marked as a duplicate of this bug. ***


-- 

pinskia at gcc dot gnu dot org changed:

   What|Removed |Added

 CC||fago at caltech dot edu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33115



[Bug target/33115] -march=native is not supported under x86 darwin

2007-08-19 Thread dje at gcc dot gnu dot org


--- Comment #1 from dje at gcc dot gnu dot org  2007-08-19 21:12 ---
x86 darwin should be able to re-use the implementation from
rs6000/driver-rs6000.c because the kernel interfaces to query the information
are the same.


-- 

dje at gcc dot gnu dot org changed:

   What|Removed |Added

 CC||dje at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33115



[Bug target/33115] -march=native is not supported under x86 darwin

2007-08-19 Thread pinskia at gmail dot com


--- Comment #2 from pinskia at gmail dot com  2007-08-19 21:39 ---
Subject: Re:  -march=native is not supported under x86 darwin

On 19 Aug 2007 21:12:22 -, dje at gcc dot gnu dot org
[EMAIL PROTECTED] wrote:
 x86 darwin should be able to re-use the implementation from
 rs6000/driver-rs6000.c because the kernel interfaces to query the information
 are the same.

Well and i386/driver-i386.c uses inline-asm so it should able to use that also.
EXTRA_GCC_OBJS =driver-i386.o darwin-driver.o
We are able to compile driver-i386.c but just not use it.

The problem is that CC1_SPEC does not use %(cc1_cpu).

Thanks,
Andrew Pinski


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33115



[Bug target/33115] -march=native is not supported under x86 darwin

2007-08-19 Thread pinskia at gcc dot gnu dot org


--- Comment #3 from pinskia at gcc dot gnu dot org  2007-08-19 21:40 ---
Mine as explained in comment #2 in how to fix this issue.


-- 

pinskia at gcc dot gnu dot org changed:

   What|Removed |Added

 AssignedTo|unassigned at gcc dot gnu   |pinskia at gcc dot gnu dot
   |dot org |org
 Status|UNCONFIRMED |ASSIGNED
 Ever Confirmed|0   |1
   Last reconfirmed|-00-00 00:00:00 |2007-08-19 21:40:38
   date||


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33115



[Bug target/33115] -march=native is not supported under x86 darwin

2007-08-19 Thread pinskia at gcc dot gnu dot org


--- Comment #4 from pinskia at gcc dot gnu dot org  2007-08-19 23:18 ---
Patch in testing:
Index: config/i386/darwin.h
===
--- config/i386/darwin.h(revision 127626)
+++ config/i386/darwin.h(working copy)
@@ -89,7 +89,7 @@ along with GCC; see the file COPYING3.  
the kernel or some such.  */

 #undef CC1_SPEC
-#define CC1_SPEC %{!mkernel:%{!static:%{!mdynamic-no-pic:-fPIC}}} \
+#define CC1_SPEC %(cc1_cpu)%{!mkernel:%{!static:%{!mdynamic-no-pic:-fPIC}}} \
   %{!mmacosx-version-min=*:-mmacosx-version-min=%(darwin_minversion)} \
   %{g: %{!fno-eliminate-unused-debug-symbols: -feliminate-unused-debug-symbols
}}



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33115



[Bug target/33115] -march=native is not supported under x86 darwin

2007-08-19 Thread pinskia at gcc dot gnu dot org


--- Comment #5 from pinskia at gcc dot gnu dot org  2007-08-20 05:16 ---
Subject: Bug 33115

Author: pinskia
Date: Mon Aug 20 05:16:10 2007
New Revision: 127635

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=127635
Log:
2007-08-19  Andrew Pinski  [EMAIL PROTECTED]

PR target/33115
* config/i386/darwin.h (CC1_SPEC): Add %(cc1_cpu) in front.


Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/i386/darwin.h


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33115



[Bug target/33115] -march=native is not supported under x86 darwin

2007-08-19 Thread pinskia at gcc dot gnu dot org


--- Comment #6 from pinskia at gcc dot gnu dot org  2007-08-20 05:30 ---
Fixed (I added a space after %(cc1_cpu) for the final patch).


-- 

pinskia at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED
   Target Milestone|--- |4.3.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33115