public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/33115]  New: -march=native is not supported under x86 darwin
@ 2007-08-19 19:46 pinskia at gcc dot gnu dot org
  2007-08-19 21:12 ` [Bug target/33115] " dje at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-08-19 19:46 UTC (permalink / raw)
  To: gcc-bugs

Mentioned here:
http://gcc.gnu.org/ml/gcc-help/2007-08/msg00200.html

And I tested it to make sure it was still not supported:
[andrew-pinskis-computer:~] apinski% ~/local-gcc/bin/gcc -march=native t.c -O2
-o - -S
t.c:1: error: bad value (native) for -march= switch
t.c:1: error: bad value (native) for -mtune= switch
[andrew-pinskis-computer:~] apinski% uname -a
Darwin andrew-pinskis-computer.local 8.10.1 Darwin Kernel Version 8.10.1: Wed
May 23 16:33:00 PDT 2007; root:xnu-792.22.5~1/RELEASE_I386 i386 i386


-- 
           Summary: -march=native is not supported under x86 darwin
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org
 GCC build triplet: i386-apple-darwin8.10
  GCC host triplet: i386-apple-darwin8.10
GCC target triplet: i386-apple-darwin8.10


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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug target/33115] -march=native is not supported under x86 darwin
  2007-08-19 19:46 [Bug target/33115] New: -march=native is not supported under x86 darwin pinskia at gcc dot gnu dot org
@ 2007-08-19 21:12 ` dje at gcc dot gnu dot org
  2007-08-19 21:39 ` pinskia at gmail dot com
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: dje at gcc dot gnu dot org @ 2007-08-19 21:12 UTC (permalink / raw)
  To: gcc-bugs



------- 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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug target/33115] -march=native is not supported under x86 darwin
  2007-08-19 19:46 [Bug target/33115] New: -march=native is not supported under x86 darwin pinskia at gcc dot gnu dot org
  2007-08-19 21:12 ` [Bug target/33115] " dje at gcc dot gnu dot org
@ 2007-08-19 21:39 ` pinskia at gmail dot com
  2007-08-19 21:40 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gmail dot com @ 2007-08-19 21:39 UTC (permalink / raw)
  To: gcc-bugs



------- 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 -0000, dje at gcc dot gnu dot org
<gcc-bugzilla@gcc.gnu.org> 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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug target/33115] -march=native is not supported under x86 darwin
  2007-08-19 19:46 [Bug target/33115] New: -march=native is not supported under x86 darwin pinskia at gcc dot gnu dot org
  2007-08-19 21:12 ` [Bug target/33115] " dje at gcc dot gnu dot org
  2007-08-19 21:39 ` pinskia at gmail dot com
@ 2007-08-19 21:40 ` pinskia at gcc dot gnu dot org
  2007-08-19 23:19 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-08-19 21:40 UTC (permalink / raw)
  To: gcc-bugs



------- 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|0000-00-00 00:00:00         |2007-08-19 21:40:38
               date|                            |


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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug target/33115] -march=native is not supported under x86 darwin
  2007-08-19 19:46 [Bug target/33115] New: -march=native is not supported under x86 darwin pinskia at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2007-08-19 21:40 ` pinskia at gcc dot gnu dot org
@ 2007-08-19 23:19 ` pinskia at gcc dot gnu dot org
  2007-08-20  5:16 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-08-19 23:19 UTC (permalink / raw)
  To: gcc-bugs



------- 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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug target/33115] -march=native is not supported under x86 darwin
  2007-08-19 19:46 [Bug target/33115] New: -march=native is not supported under x86 darwin pinskia at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2007-08-19 23:19 ` pinskia at gcc dot gnu dot org
@ 2007-08-20  5:16 ` pinskia at gcc dot gnu dot org
  2007-08-20  5:30 ` pinskia at gcc dot gnu dot org
  2007-08-22 10:03 ` pinskia at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-08-20  5:16 UTC (permalink / raw)
  To: gcc-bugs



------- 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=gcc&view=rev&rev=127635
Log:
2007-08-19  Andrew Pinski  <pinskia@gmail.com>

        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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug target/33115] -march=native is not supported under x86 darwin
  2007-08-19 19:46 [Bug target/33115] New: -march=native is not supported under x86 darwin pinskia at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2007-08-20  5:16 ` pinskia at gcc dot gnu dot org
@ 2007-08-20  5:30 ` pinskia at gcc dot gnu dot org
  2007-08-22 10:03 ` pinskia at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-08-20  5:30 UTC (permalink / raw)
  To: gcc-bugs



------- 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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug target/33115] -march=native is not supported under x86 darwin
  2007-08-19 19:46 [Bug target/33115] New: -march=native is not supported under x86 darwin pinskia at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2007-08-20  5:30 ` pinskia at gcc dot gnu dot org
@ 2007-08-22 10:03 ` pinskia at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-08-22 10:03 UTC (permalink / raw)
  To: gcc-bugs



------- 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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2007-08-22 10:03 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-19 19:46 [Bug target/33115] New: -march=native is not supported under x86 darwin pinskia at gcc dot gnu dot org
2007-08-19 21:12 ` [Bug target/33115] " dje at gcc dot gnu dot org
2007-08-19 21:39 ` pinskia at gmail dot com
2007-08-19 21:40 ` pinskia at gcc dot gnu dot org
2007-08-19 23:19 ` pinskia at gcc dot gnu dot org
2007-08-20  5:16 ` pinskia at gcc dot gnu dot org
2007-08-20  5:30 ` pinskia at gcc dot gnu dot org
2007-08-22 10:03 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).