public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "monaka at monami-software dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/42785] error: impossible constraint in 'asm'
Date: Mon, 18 Jan 2010 23:29:00 -0000	[thread overview]
Message-ID: <20100118232915.17233.qmail@sourceware.org> (raw)
In-Reply-To: <bug-42785-9881@http.gcc.gnu.org/bugzilla/>

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1396 bytes --]



------- Comment #2 from monaka at monami-software dot com  2010-01-18 23:29 -------
(In reply to comment #1)
> If you use -arch ppc, then the host/build is really powerpc-apple-darwin so
> obviously you are configuring GCC incorrectly and the error message is correct
> as that is x86 inline-asm that is being compiled in that source. 

There is no need to use -arch option if we use powerpc-apple-darwin host/build.
I think it can be resolved by a patch follows.

diff --git a/gcc/config/i386/driver-i386.c b/gcc/config/i386/driver-i386.c
index 17694ef..dc69a80 100644
--- a/gcc/config/i386/driver-i386.c
+++ b/gcc/config/i386/driver-i386.c
@@ -25,7 +25,7 @@ along with GCC; see the file COPYING3.  If not see

 const char *host_detect_local_cpu (int argc, const char **argv);

-#ifdef __GNUC__
+#if defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__))
 #include "cpuid.h"

 struct cache_desc


-- 

monaka at monami-software dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|INVALID                     |
            Summary|error: impossible constraint|error: impossible constraint
                   |in �easm�f              |in 'asm'


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


  parent reply	other threads:[~2010-01-18 23:29 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-18  0:31 [Bug bootstrap/42785] New: error: impossible constraint in easmf monaka at monami-software dot com
2010-01-18  0:57 ` [Bug bootstrap/42785] error: impossible constraint in �easm�f pinskia at gcc dot gnu dot org
2010-01-18 23:29 ` monaka at monami-software dot com [this message]
2010-01-19  0:11 ` [Bug bootstrap/42785] error: impossible constraint in 'asm' pinskia at gcc dot gnu dot org
2010-01-19  0:14 ` pinskia at gcc dot gnu dot org
2010-01-19  2:43 ` monaka at monami-software dot com
2010-01-19  2:46 ` pinskia at gcc dot gnu dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100118232915.17233.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).