re PR middle-end/15054 (Bad code due to overlapping stack temporaries)
authorUlrich Weigand <uweigand@de.ibm.com>
Sat, 1 May 2004 11:37:39 +0000 (11:37 +0000)
committerUlrich Weigand <uweigand@gcc.gnu.org>
Sat, 1 May 2004 11:37:39 +0000 (11:37 +0000)
commite2655d15d9a2ae54844cd1adcba26dde3ba69cb9
tree7ba1e7f7f32be96437efdde842245355194dc4f6
parent77306e3e64b98c52415f407f0451d15e429a2a30
re PR middle-end/15054 (Bad code due to overlapping stack temporaries)

PR middle-end/15054
* expr.c (expand_expr_real): Do not call preserve_temp_slots
on a TARGET_EXPR temp.
* function.c (assign_stack_temp_for_type): Set 'keep' flag for
TARGET_EXPR temp slots.

PR middle-end/15054
* g++.dg/opt/pr15054.C: New test.

From-SVN: r81384
gcc/ChangeLog
gcc/expr.c
gcc/function.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/opt/pr15054.C [new file with mode: 0644]