mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-11 16:27:18 +08:00
cp-tree.h (__eprintf): Remove declaration.
* cp-tree.h (__eprintf): Remove declaration. * tree.c (__eprintf): Remove definition. * cp-tree.h (CLASSTYPE_MARKED_N, SET_CLASSTYPE_MARKED_N, CLEAR_CLASSTYPE_MARKED_N): Avoid signed vs. unsigned warnings. From-SVN: r31573
This commit is contained in:
parent
ae373eda2f
commit
ba793d6e42
@ -1,3 +1,14 @@
|
||||
2000-01-23 Mark Mitchell <mark@codesourcery.com>
|
||||
|
||||
* cp-tree.h (__eprintf): Remove declaration.
|
||||
* tree.c (__eprintf): Remove definition.
|
||||
|
||||
2000-01-23 Zack Weinberg <zack@rabi.columbia.edu>
|
||||
Mark Mitchell <mark@codesourcery.com>
|
||||
|
||||
* cp-tree.h (CLASSTYPE_MARKED_N, SET_CLASSTYPE_MARKED_N,
|
||||
CLEAR_CLASSTYPE_MARKED_N): Avoid signed vs. unsigned warnings.
|
||||
|
||||
2000-01-23 Brad Lucier <lucier@math.purdue.edu>
|
||||
|
||||
* class.c (dump_class_hierarchy): Print HOST_WIDE_INT properly.
|
||||
|
@ -1409,21 +1409,21 @@ struct lang_type
|
||||
/* Mark bits for depth-first and breath-first searches. */
|
||||
|
||||
/* Get the value of the Nth mark bit. */
|
||||
#define CLASSTYPE_MARKED_N(NODE, N) \
|
||||
#define CLASSTYPE_MARKED_N(NODE, N) \
|
||||
(((CLASS_TYPE_P (NODE) ? TYPE_LANG_SPECIFIC (NODE)->marks \
|
||||
: TYPE_ALIAS_SET (NODE)) & (1 << N)) != 0)
|
||||
: ((unsigned) TYPE_ALIAS_SET (NODE))) & (1 << N)) != 0)
|
||||
|
||||
/* Set the Nth mark bit. */
|
||||
#define SET_CLASSTYPE_MARKED_N(NODE, N) \
|
||||
(CLASS_TYPE_P (NODE) \
|
||||
? (TYPE_LANG_SPECIFIC (NODE)->marks |= (1 << (N))) \
|
||||
: (TYPE_ALIAS_SET (NODE) |= (1 << (N))))
|
||||
#define SET_CLASSTYPE_MARKED_N(NODE, N) \
|
||||
(CLASS_TYPE_P (NODE) \
|
||||
? (void) (TYPE_LANG_SPECIFIC (NODE)->marks |= (1 << (N))) \
|
||||
: (void) (TYPE_ALIAS_SET (NODE) |= (1 << (N))))
|
||||
|
||||
/* Clear the Nth mark bit. */
|
||||
#define CLEAR_CLASSTYPE_MARKED_N(NODE, N) \
|
||||
(CLASS_TYPE_P (NODE) \
|
||||
? (TYPE_LANG_SPECIFIC (NODE)->marks &= ~(1 << (N))) \
|
||||
: (TYPE_ALIAS_SET (NODE) &= ~(1 << (N))))
|
||||
#define CLEAR_CLASSTYPE_MARKED_N(NODE, N) \
|
||||
(CLASS_TYPE_P (NODE) \
|
||||
? (void) (TYPE_LANG_SPECIFIC (NODE)->marks &= ~(1 << (N))) \
|
||||
: (void) (TYPE_ALIAS_SET (NODE) &= ~(1 << (N))))
|
||||
|
||||
/* Get the value of the mark bits. */
|
||||
#define CLASSTYPE_MARKED(NODE) CLASSTYPE_MARKED_N(NODE, 0)
|
||||
@ -4164,8 +4164,6 @@ extern const char *lang_printable_name PROTO((tree, int));
|
||||
extern tree build_exception_variant PROTO((tree, tree));
|
||||
extern tree copy_template_template_parm PROTO((tree));
|
||||
extern void print_lang_statistics PROTO((void));
|
||||
extern void __eprintf
|
||||
PROTO((const char *, const char *, unsigned, const char *));
|
||||
extern tree array_type_nelts_total PROTO((tree));
|
||||
extern tree array_type_nelts_top PROTO((tree));
|
||||
extern tree break_out_target_exprs PROTO((tree));
|
||||
|
@ -1482,23 +1482,6 @@ print_lang_statistics ()
|
||||
#endif
|
||||
}
|
||||
|
||||
/* This is used by the `assert' macro. It is provided in libgcc.a,
|
||||
which `cc' doesn't know how to link. Note that the C++ front-end
|
||||
no longer actually uses the `assert' macro (instead, it calls
|
||||
my_friendly_assert). But all of the back-end files still need this. */
|
||||
|
||||
void
|
||||
__eprintf (string, expression, line, filename)
|
||||
const char *string;
|
||||
const char *expression;
|
||||
unsigned line;
|
||||
const char *filename;
|
||||
{
|
||||
fprintf (stderr, string, expression, line, filename);
|
||||
fflush (stderr);
|
||||
abort ();
|
||||
}
|
||||
|
||||
/* Return, as an INTEGER_CST node, the number of elements for TYPE
|
||||
(which is an ARRAY_TYPE). This counts only elements of the top
|
||||
array. */
|
||||
|
Loading…
Reference in New Issue
Block a user