https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70214
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |wrong-code Component|c |tree-optimization Summary|external call is not |[6 regression] external |considered a barrier |call is not considered a | |barrier --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Looks like GCC is not treating tst as being able to escape. That is becaue my_h escapes, tst needs to be treated as such also.