]> gcc.gnu.org Git - gcc.git/commit
[PR51447] restore the global reg var before returning from main
authorAlexandre Oliva <oliva@adacore.com>
Wed, 10 Jun 2020 20:56:36 +0000 (17:56 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Wed, 10 Jun 2020 20:56:36 +0000 (17:56 -0300)
commit06ef9c119c56568e5f77a5189aa382cb97c95a9e
tree84ad8879bdf6ecf21a79e64f09569a2e6fc0a04f
parenta9eec9625ea7165292958be04899b057804192fb
[PR51447] restore the global reg var before returning from main

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.

for  gcc/testsuite/ChangeLog

PR rtl-optimization/51447
* gcc.c-torture/execute/pr51447.c (main): Preserve call-saved
register.
gcc/testsuite/gcc.c-torture/execute/pr51447.c
This page took 0.058267 seconds and 6 git commands to generate.