Commit 0edf3afe by Richard Biener Committed by Richard Biener

c-decl.c (warn_if_shadowing): Do not test DECL_FROM_INLINE.

2018-10-02  Richard Biener  <rguenther@suse.de>

	c/
	* c-decl.c (warn_if_shadowing): Do not test DECL_FROM_INLINE.

	cp/
	* name-lookup.c (check_local_shadow): Do not test DECL_FROM_INLINE.

From-SVN: r264779
parent cd6ae117
2018-10-02 Richard Biener <rguenther@suse.de>
* c-decl.c (warn_if_shadowing): Do not test DECL_FROM_INLINE.
2018-09-26 Joseph Myers <joseph@codesourcery.com> 2018-09-26 Joseph Myers <joseph@codesourcery.com>
PR c/87390 PR c/87390
......
...@@ -2784,9 +2784,7 @@ warn_if_shadowing (tree new_decl) ...@@ -2784,9 +2784,7 @@ warn_if_shadowing (tree new_decl)
|| warn_shadow_local || warn_shadow_local
|| warn_shadow_compatible_local) || warn_shadow_compatible_local)
/* No shadow warnings for internally generated vars. */ /* No shadow warnings for internally generated vars. */
|| DECL_IS_BUILTIN (new_decl) || DECL_IS_BUILTIN (new_decl))
/* No shadow warnings for vars made for inlining. */
|| DECL_FROM_INLINE (new_decl))
return; return;
/* Is anything being shadowed? Invisible decls do not count. */ /* Is anything being shadowed? Invisible decls do not count. */
......
2018-10-02 Richard Biener <rguenther@suse.de>
* name-lookup.c (check_local_shadow): Do not test DECL_FROM_INLINE.
2018-09-28 Eric Botcazou <ebotcazou@adacore.com> 2018-09-28 Eric Botcazou <ebotcazou@adacore.com>
Pierre-Marie de Rodat <derodat@adacore.com> Pierre-Marie de Rodat <derodat@adacore.com>
......
...@@ -2628,10 +2628,6 @@ check_local_shadow (tree decl) ...@@ -2628,10 +2628,6 @@ check_local_shadow (tree decl)
if (TREE_CODE (decl) == PARM_DECL && !DECL_CONTEXT (decl)) if (TREE_CODE (decl) == PARM_DECL && !DECL_CONTEXT (decl))
return; return;
/* Inline decls shadow nothing. */
if (DECL_FROM_INLINE (decl))
return;
/* External decls are something else. */ /* External decls are something else. */
if (DECL_EXTERNAL (decl)) if (DECL_EXTERNAL (decl))
return; return;
......
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