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

Bernd Trog <[email protected]>
Newsgroups gmane.comp.gcc.prs
Message-ID <[email protected]>
The following reply was made to PR inline-asm/10857; it has been noted by GNATS.

From: Bernd Trog <[email protected]>
To: [email protected], [email protected], [email protected],
  [email protected], [email protected], [email protected]
Cc:  
Subject: Re: inline-asm/10857: Inlining a function with inline-asm: "error: impossible constraint in `asm'"
Date: Wed, 21 May 2003 02:38:42 -0700 (PDT)

 --- [email protected] 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  <[email protected]>
 +
 +       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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.