Commit ba793d6e by Mark Mitchell

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
parent ae373eda
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> 2000-01-23 Brad Lucier <lucier@math.purdue.edu>
* class.c (dump_class_hierarchy): Print HOST_WIDE_INT properly. * class.c (dump_class_hierarchy): Print HOST_WIDE_INT properly.
......
...@@ -1409,21 +1409,21 @@ struct lang_type ...@@ -1409,21 +1409,21 @@ struct lang_type
/* Mark bits for depth-first and breath-first searches. */ /* Mark bits for depth-first and breath-first searches. */
/* Get the value of the Nth mark bit. */ /* 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 \ (((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. */ /* Set the Nth mark bit. */
#define SET_CLASSTYPE_MARKED_N(NODE, N) \ #define SET_CLASSTYPE_MARKED_N(NODE, N) \
(CLASS_TYPE_P (NODE) \ (CLASS_TYPE_P (NODE) \
? (TYPE_LANG_SPECIFIC (NODE)->marks |= (1 << (N))) \ ? (void) (TYPE_LANG_SPECIFIC (NODE)->marks |= (1 << (N))) \
: (TYPE_ALIAS_SET (NODE) |= (1 << (N)))) : (void) (TYPE_ALIAS_SET (NODE) |= (1 << (N))))
/* Clear the Nth mark bit. */ /* Clear the Nth mark bit. */
#define CLEAR_CLASSTYPE_MARKED_N(NODE, N) \ #define CLEAR_CLASSTYPE_MARKED_N(NODE, N) \
(CLASS_TYPE_P (NODE) \ (CLASS_TYPE_P (NODE) \
? (TYPE_LANG_SPECIFIC (NODE)->marks &= ~(1 << (N))) \ ? (void) (TYPE_LANG_SPECIFIC (NODE)->marks &= ~(1 << (N))) \
: (TYPE_ALIAS_SET (NODE) &= ~(1 << (N)))) : (void) (TYPE_ALIAS_SET (NODE) &= ~(1 << (N))))
/* Get the value of the mark bits. */ /* Get the value of the mark bits. */
#define CLASSTYPE_MARKED(NODE) CLASSTYPE_MARKED_N(NODE, 0) #define CLASSTYPE_MARKED(NODE) CLASSTYPE_MARKED_N(NODE, 0)
...@@ -4164,8 +4164,6 @@ extern const char *lang_printable_name PROTO((tree, int)); ...@@ -4164,8 +4164,6 @@ extern const char *lang_printable_name PROTO((tree, int));
extern tree build_exception_variant PROTO((tree, tree)); extern tree build_exception_variant PROTO((tree, tree));
extern tree copy_template_template_parm PROTO((tree)); extern tree copy_template_template_parm PROTO((tree));
extern void print_lang_statistics PROTO((void)); 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_total PROTO((tree));
extern tree array_type_nelts_top PROTO((tree)); extern tree array_type_nelts_top PROTO((tree));
extern tree break_out_target_exprs PROTO((tree)); extern tree break_out_target_exprs PROTO((tree));
......
...@@ -1482,23 +1482,6 @@ print_lang_statistics () ...@@ -1482,23 +1482,6 @@ print_lang_statistics ()
#endif #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 /* Return, as an INTEGER_CST node, the number of elements for TYPE
(which is an ARRAY_TYPE). This counts only elements of the top (which is an ARRAY_TYPE). This counts only elements of the top
array. */ array. */
......
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