https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89313

Peter Bergner <bergner at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |bergner at gcc dot 
gnu.org

--- Comment #3 from Peter Bergner <bergner at gcc dot gnu.org> ---
This is not a bug in my code, it's just that before my commit, we did not catch
the illegal asm constraint usage and LRA "fixed" up the code without
complaining, but given it generated code different than what the used
requested, it silently generated "wrong" code.

With my commit, we're now generating code that LRA knows is wrong and so ICEs. 
I think the fix is to catch the illegal asm constraint usage and emit a useful
error message, similar to what I did for PR87600 (r265942).  I'll see if I add
some extra test(s) to catch this scenario.  I'm actually surprised the tests I
added didn't catch this already, so there must be something special about this
test case I didn't check for.

Reply via email to