cp-tree.h (error_operand_p): Remove.
/gcc/cp 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com> * cp-tree.h (error_operand_p): Remove. /gcc 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com> * tree.h (error_operand_p): Add. * dbxout.c (dbxout_type_fields): Use the latter. * c-decl.c (add_stmt): Likewise. * gimplify.c (omp_add_variable, omp_notice_variable, gimplify_scan_omp_clauses): Likewise. From-SVN: r174899
This commit is contained in:
parent
3f5ea9dc58
commit
b504a91833
|
@ -1,3 +1,11 @@
|
||||||
|
2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
|
||||||
|
|
||||||
|
* tree.h (error_operand_p): Add.
|
||||||
|
* dbxout.c (dbxout_type_fields): Use the latter.
|
||||||
|
* c-decl.c (add_stmt): Likewise.
|
||||||
|
* gimplify.c (omp_add_variable, omp_notice_variable,
|
||||||
|
gimplify_scan_omp_clauses): Likewise.
|
||||||
|
|
||||||
2011-06-10 Georg-Johann Lay <avr@gjlay.de>
|
2011-06-10 Georg-Johann Lay <avr@gjlay.de>
|
||||||
|
|
||||||
* config/avr/avr.c (avr_function_arg_advance): Fix thinko about
|
* config/avr/avr.c (avr_function_arg_advance): Fix thinko about
|
||||||
|
|
|
@ -565,7 +565,7 @@ add_stmt (tree t)
|
||||||
static bool
|
static bool
|
||||||
decl_jump_unsafe (tree decl)
|
decl_jump_unsafe (tree decl)
|
||||||
{
|
{
|
||||||
if (decl == error_mark_node || TREE_TYPE (decl) == error_mark_node)
|
if (error_operand_p (decl))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
/* Always warn about crossing variably modified types. */
|
/* Always warn about crossing variably modified types. */
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
|
||||||
|
|
||||||
|
* cp-tree.h (error_operand_p): Remove.
|
||||||
|
|
||||||
2011-06-09 David Krauss <potswa@mac.com>
|
2011-06-09 David Krauss <potswa@mac.com>
|
||||||
|
|
||||||
PR c++/49118
|
PR c++/49118
|
||||||
|
|
|
@ -1123,12 +1123,6 @@ struct GTY(()) language_function {
|
||||||
#define ansi_assopname(CODE) \
|
#define ansi_assopname(CODE) \
|
||||||
(assignment_operator_name_info[(int) (CODE)].identifier)
|
(assignment_operator_name_info[(int) (CODE)].identifier)
|
||||||
|
|
||||||
/* True if NODE is an erroneous expression. */
|
|
||||||
|
|
||||||
#define error_operand_p(NODE) \
|
|
||||||
((NODE) == error_mark_node \
|
|
||||||
|| ((NODE) && TREE_TYPE ((NODE)) == error_mark_node))
|
|
||||||
|
|
||||||
/* TRUE if a tree code represents a statement. */
|
/* TRUE if a tree code represents a statement. */
|
||||||
extern bool statement_code_p[MAX_TREE_CODES];
|
extern bool statement_code_p[MAX_TREE_CODES];
|
||||||
|
|
||||||
|
|
|
@ -1510,7 +1510,7 @@ dbxout_type_fields (tree type)
|
||||||
{
|
{
|
||||||
/* If one of the nodes is an error_mark or its type is then
|
/* If one of the nodes is an error_mark or its type is then
|
||||||
return early. */
|
return early. */
|
||||||
if (tem == error_mark_node || TREE_TYPE (tem) == error_mark_node)
|
if (error_operand_p (tem))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
/* Omit here local type decls until we know how to support them. */
|
/* Omit here local type decls until we know how to support them. */
|
||||||
|
|
|
@ -5448,7 +5448,7 @@ omp_add_variable (struct gimplify_omp_ctx *ctx, tree decl, unsigned int flags)
|
||||||
unsigned int nflags;
|
unsigned int nflags;
|
||||||
tree t;
|
tree t;
|
||||||
|
|
||||||
if (decl == error_mark_node || TREE_TYPE (decl) == error_mark_node)
|
if (error_operand_p (decl))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
/* Never elide decls whose type has TREE_ADDRESSABLE set. This means
|
/* Never elide decls whose type has TREE_ADDRESSABLE set. This means
|
||||||
|
@ -5573,7 +5573,7 @@ omp_notice_variable (struct gimplify_omp_ctx *ctx, tree decl, bool in_code)
|
||||||
unsigned flags = in_code ? GOVD_SEEN : 0;
|
unsigned flags = in_code ? GOVD_SEEN : 0;
|
||||||
bool ret = false, shared;
|
bool ret = false, shared;
|
||||||
|
|
||||||
if (decl == error_mark_node || TREE_TYPE (decl) == error_mark_node)
|
if (error_operand_p (decl))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
/* Threadprivate variables are predetermined. */
|
/* Threadprivate variables are predetermined. */
|
||||||
|
@ -5830,7 +5830,7 @@ gimplify_scan_omp_clauses (tree *list_p, gimple_seq *pre_p,
|
||||||
|
|
||||||
do_add:
|
do_add:
|
||||||
decl = OMP_CLAUSE_DECL (c);
|
decl = OMP_CLAUSE_DECL (c);
|
||||||
if (decl == error_mark_node || TREE_TYPE (decl) == error_mark_node)
|
if (error_operand_p (decl))
|
||||||
{
|
{
|
||||||
remove = true;
|
remove = true;
|
||||||
break;
|
break;
|
||||||
|
@ -5889,7 +5889,7 @@ gimplify_scan_omp_clauses (tree *list_p, gimple_seq *pre_p,
|
||||||
case OMP_CLAUSE_COPYIN:
|
case OMP_CLAUSE_COPYIN:
|
||||||
case OMP_CLAUSE_COPYPRIVATE:
|
case OMP_CLAUSE_COPYPRIVATE:
|
||||||
decl = OMP_CLAUSE_DECL (c);
|
decl = OMP_CLAUSE_DECL (c);
|
||||||
if (decl == error_mark_node || TREE_TYPE (decl) == error_mark_node)
|
if (error_operand_p (decl))
|
||||||
{
|
{
|
||||||
remove = true;
|
remove = true;
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -4053,6 +4053,12 @@ enum ptrmemfunc_vbit_where_t
|
||||||
|
|
||||||
#define NULL_TREE (tree) NULL
|
#define NULL_TREE (tree) NULL
|
||||||
|
|
||||||
|
/* True if NODE is an erroneous expression. */
|
||||||
|
|
||||||
|
#define error_operand_p(NODE) \
|
||||||
|
((NODE) == error_mark_node \
|
||||||
|
|| ((NODE) && TREE_TYPE ((NODE)) == error_mark_node))
|
||||||
|
|
||||||
extern tree decl_assembler_name (tree);
|
extern tree decl_assembler_name (tree);
|
||||||
extern bool decl_assembler_name_equal (tree decl, const_tree asmname);
|
extern bool decl_assembler_name_equal (tree decl, const_tree asmname);
|
||||||
extern hashval_t decl_assembler_name_hash (const_tree asmname);
|
extern hashval_t decl_assembler_name_hash (const_tree asmname);
|
||||||
|
|
Loading…
Reference in New Issue