a…@littlepinkcloud.invalid writes:
[...]
> No pass within GCC (and probably any other compiler) may introduce
> undefined behaviour where there was none in the program. That is
> because a later pass might detect the introduced UB and miscompile
> it, or even drop it onto the floor altogether.
I understand what you're trying to say, but this isn't how to say
it. "Undefined behavior" is a circumstance that depends on
program source code and on the state of the abstract machine
during a putative execution. A compiler cannot "introduce
undefined behavior"; what it can do (but shouldn't) is transform
the program being compiled in a way that changes the semantics
required by the language being translated.