inline-asm/10857: Inlining a function with inline-asm: "error: impossible constraint in `asm'"

Bernd Trog berndtrog@yahoo.com
Wed May 21 09:48:00 GMT 2003


--- ehrhardt@mathematik.uni-ulm.de wrote:
>     The patch the prevented this from compiling at -O3 went into gcc-3.4
>     between 20030331 and 20030519.

After spending some CPU cycles on compiling gcc, it looks like:

+Fri Apr 11 00:12:14 CEST 2003  Jan Hubicka  <jh@suse.cz>
+
+       PR inline-asm/8803
+       * function.c (instantate_virtual_regs):  Verify that all ASM
statements
+       match after the virutal regs instantiation.
+


gcc/gcc/function.c:

          instantiate_virtual_regs_1 (&CALL_INSN_FUNCTION_USAGE (insn),
                                      NULL_RTX, 0);
+       
+       /* Past this point all ASM statements should match.  Verify that
+          to avoid failures later in the compilation process.  */
+        if (asm_noperands (PATTERN (insn)) >= 0
+           && ! check_asm_operands (PATTERN (insn)))
+          instantiate_virtual_regs_lossage (insn);
       }

triggered my regression.

Removing that patch from 3.3.0 makes my code compile
again - I'm happy :-)

Maybe its possible to add another condition to that if statement?






__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com



More information about the Gcc-bugs mailing list