Commit 3c8cd8bd by Richard Kenner

(unitialized_vars_warning, setjmp_args_warning): Reword warning to be

less ambiguous.

From-SVN: r7005
parent 053da6b5
...@@ -4078,13 +4078,13 @@ uninitialized_vars_warning (block) ...@@ -4078,13 +4078,13 @@ uninitialized_vars_warning (block)
&& GET_CODE (DECL_RTL (decl)) == REG && GET_CODE (DECL_RTL (decl)) == REG
&& regno_uninitialized (REGNO (DECL_RTL (decl)))) && regno_uninitialized (REGNO (DECL_RTL (decl))))
warning_with_decl (decl, warning_with_decl (decl,
"`%s' may be used uninitialized in this function"); "`%s' might be used uninitialized in this function");
if (TREE_CODE (decl) == VAR_DECL if (TREE_CODE (decl) == VAR_DECL
&& DECL_RTL (decl) != 0 && DECL_RTL (decl) != 0
&& GET_CODE (DECL_RTL (decl)) == REG && GET_CODE (DECL_RTL (decl)) == REG
&& regno_clobbered_at_setjmp (REGNO (DECL_RTL (decl)))) && regno_clobbered_at_setjmp (REGNO (DECL_RTL (decl))))
warning_with_decl (decl, warning_with_decl (decl,
"variable `%s' may be clobbered by `longjmp' or `vfork'"); "variable `%s' might be clobbered by `longjmp' or `vfork'");
} }
for (sub = BLOCK_SUBBLOCKS (block); sub; sub = TREE_CHAIN (sub)) for (sub = BLOCK_SUBBLOCKS (block); sub; sub = TREE_CHAIN (sub))
uninitialized_vars_warning (sub); uninitialized_vars_warning (sub);
...@@ -4103,7 +4103,7 @@ setjmp_args_warning (block) ...@@ -4103,7 +4103,7 @@ setjmp_args_warning (block)
if (DECL_RTL (decl) != 0 if (DECL_RTL (decl) != 0
&& GET_CODE (DECL_RTL (decl)) == REG && GET_CODE (DECL_RTL (decl)) == REG
&& regno_clobbered_at_setjmp (REGNO (DECL_RTL (decl)))) && regno_clobbered_at_setjmp (REGNO (DECL_RTL (decl))))
warning_with_decl (decl, "argument `%s' may be clobbered by `longjmp' or `vfork'"); warning_with_decl (decl, "argument `%s' might be clobbered by `longjmp' or `vfork'");
} }
/* If this function call setjmp, put all vars into the stack /* If this function call setjmp, put all vars into the stack
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment