https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87728
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |alias Status|UNCONFIRMED |NEW Last reconfirmed| |2018-10-24 CC| |rguenth at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- Primary cause: /* If the statement STMT may clobber the memory reference REF return true, otherwise return false. */ bool stmt_may_clobber_ref_p_1 (gimple *stmt, ao_ref *ref, bool tbaa_p) { ... else if (gimple_code (stmt) == GIMPLE_ASM) return true; similarly ref_maybe_used_by_stmt_p (). Not sure if really worth the trouble though.