public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/30336]  New: -mtune=native is wrong when not built with gcc
@ 2006-12-31  0:15 hjl at lucon dot org
  2006-12-31  1:23 ` [Bug target/30336] " pinskia at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: hjl at lucon dot org @ 2006-12-31  0:15 UTC (permalink / raw)
  To: gcc-bugs

When gcc isn't built with gcc, we get

  if (arch)
    {   
      /* FIXME: i386 is wrong for 64bit compiler.  How can we tell if
         we are generating 64bit or 32bit code?  */
      cpu = "i386";
    }   
  else
    cpu = "generic";

It is suggested to use size of (void *):

http://gcc.gnu.org/ml/gcc/2006-12/msg00651.html

However, it only checks the pointer size  of the compiler which  is used to
build
gcc, not the pointer size of the gcc.


-- 
           Summary: -mtune=native is wrong when not built with gcc
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: hjl at lucon dot org
GCC target triplet: i686-pc-linux-gnu


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


^ permalink raw reply	[flat|nested] 5+ messages in thread
[parent not found: <bug-30336-4@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2021-08-30 19:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-31  0:15 [Bug target/30336] New: -mtune=native is wrong when not built with gcc hjl at lucon dot org
2006-12-31  1:23 ` [Bug target/30336] " pinskia at gcc dot gnu dot org
2006-12-31  9:26 ` hjl at lucon dot org
2006-12-31 10:26 ` pinskia at gcc dot gnu dot org
     [not found] <bug-30336-4@http.gcc.gnu.org/bugzilla/>
2021-08-30 19:50 ` pinskia at gcc dot gnu.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).