re PR rtl-optimization/32450 (-pg causes miscompilation)
authorUros Bizjak <ubizjak@gmail.com>
Fri, 6 Jul 2007 08:53:15 +0000 (10:53 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Fri, 6 Jul 2007 08:53:15 +0000 (10:53 +0200)
commit56d17681225aa3b26dd0ca0958fe9c4a329b07f4
tree4c202a505d41f55e7d51a4801eabc48fc89c16b9
parent042f720de169cce9094e54e01e2f3b4bde4b63b3
re PR rtl-optimization/32450 (-pg causes miscompilation)

PR rtl_optimization/32450
* function.c (thread_prologue_and_epilogue_insns): Emit blockage insn
to ensure that instructions are not moved into the prologue when
profiling is on.  Remove unused prologue_end variable.
(expand_function_end): Emit blockage insn instead of ASM_INPUT rtx
as a scheduling barrier.

testsuite/ChangeLog:

PR rtl_optimization/32450
* gcc.dg/pr32450.c: New runtime test.

From-SVN: r126403
gcc/ChangeLog
gcc/function.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr32450.c [new file with mode: 0644]