This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug bootstrap/42785] error: impossible constraint in 'asm'



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]