This is the mail archive of the gcc-patches@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]

Re: GCC 3.3: inline-asm problems


On Fri, 2003-03-21 at 12:52, Jan Hubicka wrote:
> > On Fri, Mar 21, 2003 at 08:45:10PM +0100, Jan Hubicka wrote:
> > > What about making the error message of ellimination to look like error
> > > message of reload? (ie when the instruction is bogus do not abort but
> > > spit out something like "inconsistent asm operand constraints").
> > 
> > I've mentioned this before.  I think it's a good idea.

This new function needs a comment.

> + static void
> + instantiate_virtual_regs_lossage (insn)
> +      rtx insn;
> + {
> +   if (asm_noperands (PATTERN (insn)) >= 0)
> +     {
> +       error_for_asm (insn, "impossible constraint in `asm'");
> +       delete_insn (insn);
> +     }
> +   else
> +     abort ();
> + }


> +   /* We may detect invalid asm statements and deleted them.  */

  /* We may have detected and deleted invalid asm statements.  */

would be more grammatical.

The patch is fine; thanks!

That ought to knock down a couple of PRs...

-- 
Mark Mitchell <mark at codesourcery dot com>
CodeSourcery, LLC


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