re PR rtl-optimization/88253 (Inlining of function incorrectly deletes volatile regis...
authorSenthil Kumar Selvaraj <senthilkumar.selvaraj@microchip.com>
Mon, 17 Dec 2018 10:50:54 +0000 (10:50 +0000)
committerSenthil Kumar Selvaraj <saaadhu@gcc.gnu.org>
Mon, 17 Dec 2018 10:50:54 +0000 (10:50 +0000)
commitd7c00826362598d636ef1eb92a1b194d46b41473
tree8259daac4937112ea61012e745a20a8d4140b029
parent13e08dc93941675cd6a7cf5470b437c4f640c996
re PR rtl-optimization/88253 (Inlining of function incorrectly deletes volatile register access when using XOR in avr-gcc)

Fix PR 88253

gcc/ChangeLog:

PR rtl-optimization/88253
* combine.c (combine_simplify_rtx): Test for side-effects before
substituting by zero.

gcc/testsuite/ChangeLog:

PR rtl-optimization/88253
* gcc.target/avr/pr88253.c: New test.

From-SVN: r267198
gcc/ChangeLog
gcc/combine.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/avr/pr88253.c [new file with mode: 0644]