mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-19 20:20:26 +08:00
cp-tree.h (DECL_CLONED_FUNCTION_P): Avoid wild reads by not looking at DECL_CLONED_FUNCTION for non-functions.
* cp-tree.h (DECL_CLONED_FUNCTION_P): Avoid wild reads by not looking at DECL_CLONED_FUNCTION for non-functions. From-SVN: r38876
This commit is contained in:
parent
23d4e4cc4a
commit
31d95fc6e6
@ -1,3 +1,8 @@
|
||||
2001-01-10 Mark Mitchell <mark@codesourcery.com>
|
||||
|
||||
* cp-tree.h (DECL_CLONED_FUNCTION_P): Avoid wild reads by not
|
||||
looking at DECL_CLONED_FUNCTION for non-functions.
|
||||
|
||||
2001-01-10 Nathan Sidwell <nathan@codesourcery.com>
|
||||
|
||||
* error.c (dump_template_parameter): Use parm to determine how
|
||||
|
@ -1959,7 +1959,9 @@ struct lang_decl
|
||||
/* Nonzero if NODE (a FUNCTION_DECL) is a cloned constructor or
|
||||
destructor. */
|
||||
#define DECL_CLONED_FUNCTION_P(NODE) \
|
||||
(DECL_LANG_SPECIFIC (NODE) \
|
||||
((TREE_CODE (NODE) == FUNCTION_DECL \
|
||||
|| TREE_CODE (NODE) == TEMPLATE_DECL) \
|
||||
&& DECL_LANG_SPECIFIC (NODE) \
|
||||
&& DECL_CLONED_FUNCTION (NODE) != NULL_TREE)
|
||||
|
||||
/* If DECL_CLONED_FUNCTION_P holds, this is the function that was
|
||||
|
Loading…
Reference in New Issue
Block a user