+2012-04-30 Jason Merrill <jason@redhat.com>
+
+ * dwarf2out.c (comdat_symbol_id): Add const.
+ (union die_symbol_or_type_node): Add const to die_symbol.
+ (output_die_symbol, output_die, output_comp_unit): Adjust.
+
2012-04-30 Andrew Stubbs <ams@codesourcery.com>
* config/arm/arm.md (negdi2): Use gen_negdi2_neon.
typedef struct GTY((chain_circular ("%h.die_sib"))) die_struct {
union die_symbol_or_type_node
{
- char * GTY ((tag ("0"))) die_symbol;
+ const char * GTY ((tag ("0"))) die_symbol;
comdat_type_node_ref GTY ((tag ("1"))) die_type_node;
}
GTY ((desc ("use_debug_types"))) die_id;
/* The prefix to attach to symbols on DIEs in the current comdat debug
info section. */
-static char *comdat_symbol_id;
+static const char *comdat_symbol_id;
/* The index of the current symbol within the current comdat CU. */
static unsigned int comdat_symbol_number;
static inline void
output_die_symbol (dw_die_ref die)
{
- char *sym = die->die_id.die_symbol;
+ const char *sym = die->die_id.die_symbol;
if (sym == 0)
return;
}
else
{
- char *sym = AT_ref (a)->die_id.die_symbol;
+ const char *sym = AT_ref (a)->die_id.die_symbol;
int size;
gcc_assert (sym);
static void
output_comp_unit (dw_die_ref die, int output_if_empty)
{
- const char *secname;
- char *oldsym, *tmp;
+ const char *secname, *oldsym;
+ char *tmp;
/* Unless we are outputting main CU, we may throw away empty ones. */
if (!output_if_empty && die->die_child == NULL)