re PR regression/40001 (r146817 broke libgloss build for SPU)
authorRichard Guenther <rguenther@suse.de>
Sat, 2 May 2009 17:49:32 +0000 (17:49 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Sat, 2 May 2009 17:49:32 +0000 (17:49 +0000)
commit4636b850f65b40e23bb6f6c7db00adfdab2602da
tree63b674cab8c718bf17708549a9c54440fbe71c18
parent25195e82643714f6f73737cd51c217692acbe836
re PR regression/40001 (r146817 broke libgloss build for SPU)

2009-05-02  Richard Guenther  <rguenther@suse.de>

PR middle-end/40001
* tree-ssa.c (execute_update_addresses_taken): Properly check
if we can mark a variable DECL_GIMPLE_REG_P.
* gimple.c (is_gimple_reg): Re-order check for DECL_GIMPLE_REG_P
back to the end of the function.
(is_gimple_reg_type): Remove complex type special casing.
* gimplify.c (gimplify_bind_expr): Do not set DECL_GIMPLE_REG_P
if not optimizing.

* gcc.target/spu/pr40001.c: New testcase.

From-SVN: r147064
gcc/ChangeLog
gcc/gimple.c
gcc/gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/spu/pr40001.c [new file with mode: 0644]
gcc/tree-ssa.c