aboutsummaryrefslogtreecommitdiff
path: root/gcc/stmt.c
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2000-02-21 23:27:01 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2000-02-21 23:27:01 +0000
commit47ee9bcb614d58ea60d228bb11563d7df4d279ec (patch)
treeab68a041c8b2cd79695b0babfdcf3e374beeb39a /gcc/stmt.c
parent24c3bf687d847ec0fadeae8157e01eb09453d94d (diff)
downloadgcc-47ee9bcb614d58ea60d228bb11563d7df4d279ec.zip
gcc-47ee9bcb614d58ea60d228bb11563d7df4d279ec.tar.gz
gcc-47ee9bcb614d58ea60d228bb11563d7df4d279ec.tar.bz2
defaults.h (ASM_OUTPUT_ASCII): Constify a char*.
* defaults.h (ASM_OUTPUT_ASCII): Constify a char*. * flow.c (get_common_dest, chain_reorder_blocks, make_reorder_chain, fixup_reorder_chain, skip_insns_between_block): Add static prototypes. (life_analysis): Wrap variable `i' with macro ELIMINABLE_REGS. * haifa-sched.c (rank_for_schedule): Don't cast away const-ness. * integrate.c (compare_blocks, find_block): Likewise. * rtl.c (fatal_with_file_and_line): Add ATTRIBUTE_PRINTF_2. * rtl.h (set_file_and_line_for_stmt): Constify a char*. * stmt.c (stmt_status, set_file_and_line_for_stmt, expand_asm_operands): Likewise. From-SVN: r32094
Diffstat (limited to 'gcc/stmt.c')
-rw-r--r--gcc/stmt.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/stmt.c b/gcc/stmt.c
index 95ee980..7c4c563 100644
--- a/gcc/stmt.c
+++ b/gcc/stmt.c
@@ -373,7 +373,7 @@ struct stmt_status
/* Filename and line number of last line-number note,
whether we actually emitted it or not. */
- char *x_emit_filename;
+ const char *x_emit_filename;
int x_emit_lineno;
struct goto_fixup *x_goto_fixup_chain;
@@ -639,7 +639,7 @@ in_control_zone_p ()
/* Record the current file and line. Called from emit_line_note. */
void
set_file_and_line_for_stmt (file, line)
- char *file;
+ const char *file;
int line;
{
/* If we're outputting an inline function, and we add a line note,
@@ -1351,7 +1351,7 @@ expand_asm_operands (string, outputs, inputs, clobbers, vol, filename, line)
nclobbers = 0;
for (tail = clobbers; tail; tail = TREE_CHAIN (tail))
{
- char *regname = TREE_STRING_POINTER (TREE_VALUE (tail));
+ const char *regname = TREE_STRING_POINTER (TREE_VALUE (tail));
i = decode_reg_name (regname);
if (i >= 0 || i == -4)
@@ -1379,7 +1379,7 @@ expand_asm_operands (string, outputs, inputs, clobbers, vol, filename, line)
tmp = outputs;
while (tmp)
{
- char *constraint = TREE_STRING_POINTER (TREE_PURPOSE (tmp));
+ const char *constraint = TREE_STRING_POINTER (TREE_PURPOSE (tmp));
if (n_occurrences (',', constraint) != nalternatives)
{
@@ -1797,7 +1797,7 @@ expand_asm_operands (string, outputs, inputs, clobbers, vol, filename, line)
for (tail = clobbers; tail; tail = TREE_CHAIN (tail))
{
- char *regname = TREE_STRING_POINTER (TREE_VALUE (tail));
+ const char *regname = TREE_STRING_POINTER (TREE_VALUE (tail));
int j = decode_reg_name (regname);
if (j < 0)