summaryrefslogtreecommitdiff
path: root/gcc/xcoffout.c
diff options
context:
space:
mode:
authordje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>2000-05-06 04:31:16 +0000
committerdje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>2000-05-06 04:31:16 +0000
commitc1bdf4c1e5752f255972edea4765e5618a2fe89d (patch)
tree62ad42d48030262a517599d08cf827074ae13051 /gcc/xcoffout.c
parent8b2d4ee01fd6403f31cd64d44397866c005f6768 (diff)
downloadgcc-c1bdf4c1e5752f255972edea4765e5618a2fe89d.tar.gz
* xcoffout.c (xcoff_current_include_file,
xcoff_current_function_file, xcoff_lastfile): Constify char *. (xcoffout_source_file, xcoffout_source_line): Make filename 'const char *'. (xcoffout_declare_function): Make name 'const char *'. (xcoffout_end_epilogue): Make fname 'const char *' * xcoffout.h (xcoff_current_include_file, xcoff_lastfile, xcoffout_declare_function, xcoffout_source_line): Match above. * aix43.h (SUBTARGET_OVERRIDE_OPTIONS): -mpowerpc64 without -maix64 is error. * rs6000.c (print_operand): Fix lossage typo. (output_cbranch): Remove "cr" decoration for now. * rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Make alias 'const char *'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33720 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/xcoffout.c')
-rw-r--r--gcc/xcoffout.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/gcc/xcoffout.c b/gcc/xcoffout.c
index 695beb6cec8..e706acc9950 100644
--- a/gcc/xcoffout.c
+++ b/gcc/xcoffout.c
@@ -61,14 +61,14 @@ static int xcoff_inlining = 0;
/* Name of the current include file. */
-char *xcoff_current_include_file;
+const char *xcoff_current_include_file;
/* Name of the current function file. This is the file the `.bf' is
emitted from. In case a line is emitted from a different file,
(by including that file of course), then the line number will be
absolute. */
-static char *xcoff_current_function_file;
+static const char *xcoff_current_function_file;
/* Names of bss and data sections. These should be unique names for each
compilation unit. */
@@ -79,7 +79,7 @@ char *xcoff_read_only_section_name;
/* Last source file name mentioned in a NOTE insn. */
-char *xcoff_lastfile;
+const char *xcoff_lastfile;
/* Macro definitions used below. */
@@ -329,7 +329,7 @@ stab_to_sclass (stab)
void
xcoffout_source_file (file, filename, inline_p)
FILE *file;
- char *filename;
+ const char *filename;
int inline_p;
{
if (filename
@@ -354,7 +354,7 @@ xcoffout_source_file (file, filename, inline_p)
}
if (!xcoff_lastfile)
- ggc_add_string_root (&xcoff_lastfile, 1);
+ ggc_add_string_root ((char **) &xcoff_lastfile, 1);
xcoff_lastfile = filename;
}
@@ -366,7 +366,7 @@ xcoffout_source_file (file, filename, inline_p)
void
xcoffout_source_line (file, filename, note)
FILE *file;
- char *filename;
+ const char *filename;
rtx note;
{
xcoffout_source_file (file, filename, RTX_INTEGRATED_P (note));
@@ -460,9 +460,9 @@ void
xcoffout_declare_function (file, decl, name)
FILE *file;
tree decl;
- char *name;
+ const char *name;
{
- char *n = name;
+ char *n = (char *) name;
int i;
if (*n == '*')
@@ -537,7 +537,7 @@ xcoffout_end_epilogue (file)
aux entry. So, we emit a label after the last instruction which can
be used by the .function pseudo op to calculate the function size. */
- char *fname = XSTR (XEXP (DECL_RTL (current_function_decl), 0), 0);
+ const char *fname = XSTR (XEXP (DECL_RTL (current_function_decl), 0), 0);
if (*fname == '*')
++fname;
fprintf (file, "FE..");