aboutsummaryrefslogtreecommitdiff
path: root/gcc/function.c
diff options
context:
space:
mode:
authorRoger Sayle <sayle@gcc.gnu.org>2004-02-29 14:07:44 +0000
committerRoger Sayle <sayle@gcc.gnu.org>2004-02-29 14:07:44 +0000
commitbc41842bb22e5682e8b808cb77e611d7cb6d8f64 (patch)
tree357716b9392e3994c718f459d97bc805a5894b34 /gcc/function.c
parent8b425082620f9718aa9ac08fe3145c44eb8cad94 (diff)
downloadgcc-bc41842bb22e5682e8b808cb77e611d7cb6d8f64.zip
gcc-bc41842bb22e5682e8b808cb77e611d7cb6d8f64.tar.gz
gcc-bc41842bb22e5682e8b808cb77e611d7cb6d8f64.tar.bz2
[multiple changes]
2004-02-29 Waldek Hebisch <hebisch@math.uni.wroc.pl> PR middle-end/14203 * function.c (uninitialized_vars_warning): Use DECL_RTL_SET_P instead of testing whether DECL_RTL is not NULL. 2004-02-29 Roger Sayle <roger@eyesopen.com> PR middle-end/14203 * g++.dg/warn/Wunused-6.C: New test case. From-SVN: r78648
Diffstat (limited to 'gcc/function.c')
-rw-r--r--gcc/function.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/function.c b/gcc/function.c
index 84f0e85..623f78c 100644
--- a/gcc/function.c
+++ b/gcc/function.c
@@ -5702,7 +5702,7 @@ uninitialized_vars_warning (tree block)
flow.c that the entire aggregate was initialized.
Unions are troublesome because members may be shorter. */
&& ! AGGREGATE_TYPE_P (TREE_TYPE (decl))
- && DECL_RTL (decl) != 0
+ && DECL_RTL_SET_P (decl)
&& GET_CODE (DECL_RTL (decl)) == REG
/* Global optimizations can make it difficult to determine if a
particular variable has been initialized. However, a VAR_DECL
@@ -5717,7 +5717,7 @@ uninitialized_vars_warning (tree block)
decl, decl);
if (extra_warnings
&& TREE_CODE (decl) == VAR_DECL
- && DECL_RTL (decl) != 0
+ && DECL_RTL_SET_P (decl)
&& GET_CODE (DECL_RTL (decl)) == REG
&& regno_clobbered_at_setjmp (REGNO (DECL_RTL (decl))))
warning ("%Jvariable '%D' might be clobbered by `longjmp' or `vfork'",