cfgexpand.c (asm_clobber_reg_is_valid): Also produce error when stack pointer is...
authorDimitar Dimitrov <dimitar@dinux.eu>
Tue, 11 Dec 2018 15:50:51 +0000 (15:50 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Tue, 11 Dec 2018 15:50:51 +0000 (15:50 +0000)
commit5b238a4591932c5e5a28fa8f9b3a413a3ce641a6
tree7942157d661299dbb5b1d291fdd2283ad78ec3a4
parentf9d4d3cf937b5a94d461a51799018dfb33262650
cfgexpand.c (asm_clobber_reg_is_valid): Also produce error when stack pointer is clobbered.

gcc/
2018-12-11  Dimitar Dimitrov  <dimitar@dinux.eu>

* cfgexpand.c (asm_clobber_reg_is_valid): Also produce
error when stack pointer is clobbered.
(expand_asm_stmt): Refactor clobber check in separate function.

gcc/testsuite/
2018-12-11  Dimitar Dimitrov  <dimitar@dinux.eu>

* gcc.target/i386/pr52813.c: New test.

From-SVN: r267025
gcc/ChangeLog
gcc/cfgexpand.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr52813.c [new file with mode: 0644]