[Bug tree-optimization/106087] [12/13 Regression] ICE with inline-asm with multiple output and assigned only static vars

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Jul 7 21:51:36 GMT 2022


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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Segmentation fault in       |[12/13 Regression] ICE with
                   |GIMPLE pass: ccp            |inline-asm with multiple
                   |                            |output and assigned only
                   |                            |static vars
           Keywords|                            |inline-asm
   Target Milestone|---                         |12.2
             Status|REOPENED                    |NEW

--- Comment #9 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Looks like it is a latent bug in how simple_dce_from_worklist handles
inline-asm.

The statement which is removed which should not be but is:
__asm__("cpuid" : "=a" r$a_18, "=b" r$b_19, "=c" r$c_20, "=d" r$d_21 : "0"
1073741827);


More information about the Gcc-bugs mailing list