aboutsummaryrefslogtreecommitdiff
path: root/gcc/dwarfout.c
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2000-04-26 18:31:55 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2000-04-26 18:31:55 +0000
commitd3e3972c5c370807f5e14cb35019eb5700a9158a (patch)
treec9e4454c9cb961ae70c865224f09030767b63ef4 /gcc/dwarfout.c
parent09acb3e19dcf5a220586cf2f160a21a3f1ebe63f (diff)
downloadgcc-d3e3972c5c370807f5e14cb35019eb5700a9158a.zip
gcc-d3e3972c5c370807f5e14cb35019eb5700a9158a.tar.gz
gcc-d3e3972c5c370807f5e14cb35019eb5700a9158a.tar.bz2
dwarf2out.c (dw_cfi_oprnd_struct, [...]): Constify a char*.
* dwarf2out.c (dw_cfi_oprnd_struct, dw_fde_struct, add_fde_cfi, reg_save, dwarf2out_frame_debug_expr, dwarf2out_def_cfa, dwarf2out_window_save, dwarf2out_args_size, dwarf2out_reg_save, dwarf2out_return_save, dwarf2out_return_reg, dwarf2out_stack_adjust, dwarf2out_frame_debug, primary_filename, add_AT_lbl_id, add_AT_lbl_offset, type_tag, decl_start_label, gen_compile_unit_die, dwarf2out_init): Constify a char*. * dwarf2out.h (dwarf2out_init): Likewise. * dwarfout.c (filename_entry, primary_filename, last_filename, type_tag, output_compile_unit_die, dwarfout_init): Likewise. * tree.h (dwarf2out_def_cfa, dwarf2out_window_save, dwarf2out_args_size, dwarf2out_reg_save, dwarf2out_return_save, dwarf2out_return_reg): Likewise. From-SVN: r33448
Diffstat (limited to 'gcc/dwarfout.c')
-rw-r--r--gcc/dwarfout.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/gcc/dwarfout.c b/gcc/dwarfout.c
index fafbcaa..a8b2a4a 100644
--- a/gcc/dwarfout.c
+++ b/gcc/dwarfout.c
@@ -161,7 +161,7 @@ extern int flag_traditional;
struct filename_entry {
unsigned number;
- char * name;
+ const char * name;
};
typedef struct filename_entry filename_entry;
@@ -189,11 +189,11 @@ static unsigned ft_entries;
/* Local pointer to the name of the main input file. Initialized in
dwarfout_init. */
-static char *primary_filename;
+static const char *primary_filename;
/* Pointer to the most recent filename for which we produced some line info. */
-static char *last_filename;
+static const char *last_filename;
/* Counter to generate unique names for DIEs. */
@@ -379,7 +379,7 @@ static inline void src_coords_attribute PARAMS ((unsigned, unsigned));
static inline void pure_or_virtual_attribute PARAMS ((tree));
static void name_and_src_coords_attributes PARAMS ((tree));
static void type_attribute PARAMS ((tree, int, int));
-static char *type_tag PARAMS ((tree));
+static const char *type_tag PARAMS ((tree));
static inline void dienum_push PARAMS ((void));
static inline void dienum_pop PARAMS ((void));
static inline tree member_declared_type PARAMS ((tree));
@@ -3136,11 +3136,11 @@ type_attribute (type, decl_const, decl_volatile)
a pointer to the (string) tag name for the given type, or zero if the
type was declared without a tag. */
-static char *
+static const char *
type_tag (type)
register tree type;
{
- register char *name = 0;
+ register const char *name = 0;
if (TYPE_NAME (type) != 0)
{
@@ -3689,7 +3689,7 @@ static void
output_compile_unit_die (arg)
register void *arg;
{
- register char *main_input_filename = arg;
+ register const char *main_input_filename = arg;
ASM_OUTPUT_DWARF_TAG (asm_out_file, TAG_compile_unit);
sibling_attribute ();
@@ -3722,7 +3722,7 @@ output_compile_unit_die (arg)
last_filename = xstrdup (main_input_filename);
{
- char *wd = getpwd ();
+ const char *wd = getpwd ();
if (wd)
comp_dir_attribute (wd);
}
@@ -5783,7 +5783,7 @@ dwarfout_init (asm_out_file, main_input_filename)
ASM_OUTPUT_PUSH_SECTION (asm_out_file, SFNAMES_SECTION);
ASM_OUTPUT_LABEL (asm_out_file, SFNAMES_BEGIN_LABEL);
{
- register char *pwd = getpwd ();
+ register const char *pwd = getpwd ();
register char *dirname;
if (!pwd)