aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Kenner <kenner@vlsi1.ultra.nyu.edu>2000-06-06 12:08:44 +0000
committerRichard Kenner <kenner@gcc.gnu.org>2000-06-06 08:08:44 -0400
commitdf07dc5beb013b1487e8a98505dbe8f0f1a365d0 (patch)
treec65cc863cc00153b220c95248110c2faf81d3a13
parent538962e7de38bd58b7ed00709f7aeb7b3ea1314f (diff)
downloadgcc-df07dc5beb013b1487e8a98505dbe8f0f1a365d0.zip
gcc-df07dc5beb013b1487e8a98505dbe8f0f1a365d0.tar.gz
gcc-df07dc5beb013b1487e8a98505dbe8f0f1a365d0.tar.bz2
sdbout.c (struct sdb_file): NAME now const.
* sdbout.c (struct sdb_file): NAME now const. (sdbout_init): input_file_name now const. (sdbout_start_new_source_file): FILENAME now const. * sdbout.c (sdbout_init, sdbout_start_new_source_file): Reflect above. From-SVN: r34426
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/sdbout.c6
-rw-r--r--gcc/sdbout.h4
3 files changed, 12 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 1056434..d0e57ee 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+Tue Jun 6 08:17:26 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
+
+ * sdbout.c (struct sdb_file): NAME now const.
+ (sdbout_init): input_file_name now const.
+ (sdbout_start_new_source_file): FILENAME now const.
+ * sdbout.c (sdbout_init, sdbout_start_new_source_file): Reflect above.
+
2000-06-06 Gabriel Dos Reis <gdr@codesourcery.com>
* c-typeck.c (build_conditional_expr): Handle complex data types.
diff --git a/gcc/sdbout.c b/gcc/sdbout.c
index 6433c67..f0075d5 100644
--- a/gcc/sdbout.c
+++ b/gcc/sdbout.c
@@ -327,7 +327,7 @@ output_file_directive (asm_out_file, (FILENAME))
struct sdb_file
{
struct sdb_file *next;
- char *name;
+ const char *name;
};
/* This is the top of the stack. */
@@ -341,7 +341,7 @@ static struct sdb_file *current_file;
void
sdbout_init (asm_file, input_file_name, syms)
FILE *asm_file ATTRIBUTE_UNUSED;
- char *input_file_name ATTRIBUTE_UNUSED;
+ const char *input_file_name ATTRIBUTE_UNUSED;
tree syms ATTRIBUTE_UNUSED;
{
#ifdef MIPS_DEBUGGING_INFO
@@ -1645,7 +1645,7 @@ sdbout_label (insn)
void
sdbout_start_new_source_file (filename)
- char *filename ATTRIBUTE_UNUSED;
+ const char *filename ATTRIBUTE_UNUSED;
{
#ifdef MIPS_DEBUGGING_INFO
struct sdb_file *n = (struct sdb_file *) xmalloc (sizeof *n);
diff --git a/gcc/sdbout.h b/gcc/sdbout.h
index 49581cd..41e4fda 100644
--- a/gcc/sdbout.h
+++ b/gcc/sdbout.h
@@ -18,7 +18,7 @@ along with GNU CC; see the file COPYING. If not, write to
the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
-extern void sdbout_init PARAMS ((FILE *, char*, tree));
+extern void sdbout_init PARAMS ((FILE *, const char *, tree));
extern void sdbout_begin_function PARAMS ((int));
extern void sdbout_end_function PARAMS ((int));
@@ -33,7 +33,7 @@ extern void sdbout_types PARAMS ((tree));
extern void sdbout_end_epilogue PARAMS ((void));
-extern void sdbout_start_new_source_file PARAMS ((char *));
+extern void sdbout_start_new_source_file PARAMS ((const char *));
extern void sdbout_resume_previous_source_file PARAMS ((void));
extern void sdbout_mark_begin_function PARAMS ((void));