Re: [PR51447] restore the global reg var before returning from main

2020-06-09 Thread Jeff Law via Gcc-patches
On Fri, 2020-06-05 at 09:57 -0300, Alexandre Oliva wrote: > The testcase for PR51447, on x86_64, uses rbx as a global register > variable for the global PTR variable. > > A runtime system might legitimately hold in rbx a value expected to be > preserved across the call to main, but its use as a gl

[PR51447] restore the global reg var before returning from main

2020-06-05 Thread Alexandre Oliva
The testcase for PR51447, on x86_64, uses rbx as a global register variable for the global PTR variable. A runtime system might legitimately hold in rbx a value expected to be preserved across the call to main, but its use as a global register variable stops main from preserving it. We've observe