This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/42785] error: impossible constraint in 'asm'
- From: "monaka at monami-software dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Jan 2010 23:29:15 -0000
- Subject: [Bug bootstrap/42785] error: impossible constraint in 'asm'
- References: <bug-42785-9881@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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