diff options
| author | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-08-27 06:16:55 +0000 |
|---|---|---|
| committer | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-08-27 06:16:55 +0000 |
| commit | 15aa2acb850e842bfcddfa06106b1eb61d0dcfa4 (patch) | |
| tree | 3197570db73a7a2d65c575cb2807f53794cbb311 | |
| parent | b0a59c167c3cb2b9f4da7de603c759889f993b88 (diff) | |
| download | ppe42-gcc-15aa2acb850e842bfcddfa06106b1eb61d0dcfa4.tar.gz ppe42-gcc-15aa2acb850e842bfcddfa06106b1eb61d0dcfa4.zip | |
1999-08-26 23:09 -0700 Zack Weinberg <zack@bitmover.com>
* i386.h: Declare ix86_cpu_string, ix86_arch_string,
i386_reg_alloc_order, i386_regparm_string,
i386_align_loops_string, i386_align_jumps_string,
i386_align_funcs_string, i386_preferred_stack_boundary_string,
and i386_branch_cost_string as type "const char *".
* i386.c: Define all above strings as type "const char *".
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28919 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 9 | ||||
| -rw-r--r-- | gcc/config/i386/i386.c | 18 | ||||
| -rw-r--r-- | gcc/config/i386/i386.h | 18 |
3 files changed, 27 insertions, 18 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 050e2f1d53e..e2a903859a3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,12 @@ +1999-08-26 23:09 -0700 Zack Weinberg <zack@bitmover.com> + + * i386.h: Declare ix86_cpu_string, ix86_arch_string, + i386_reg_alloc_order, i386_regparm_string, + i386_align_loops_string, i386_align_jumps_string, + i386_align_funcs_string, i386_preferred_stack_boundary_string, + and i386_branch_cost_string as type "const char *". + * i386.c: Define all above strings as type "const char *". + Thu Aug 26 20:36:30 1999 Jim Wilson <wilson@cygnus.com> * dwarf2out.c (output_aranges): Check DWARF_OFFSET_SIZE not PTR_SIZE diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index ef1ba47f5ba..62bbd1b7274 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -182,15 +182,15 @@ enum processor_type ix86_cpu; int ix86_arch; /* Strings to hold which cpu and instruction set architecture to use. */ -char *ix86_cpu_string; /* for -mcpu=<xxx> */ -char *ix86_arch_string; /* for -march=<xxx> */ +const char *ix86_cpu_string; /* for -mcpu=<xxx> */ +const char *ix86_arch_string; /* for -march=<xxx> */ /* Register allocation order */ -char *i386_reg_alloc_order; +const char *i386_reg_alloc_order; static char regs_allocated[FIRST_PSEUDO_REGISTER]; /* # of registers to use to pass arguments. */ -char *i386_regparm_string; +const char *i386_regparm_string; /* i386_regparm_string as a number */ int i386_regparm; @@ -198,24 +198,24 @@ int i386_regparm; /* Alignment to use for loops and jumps: */ /* Power of two alignment for loops. */ -char *i386_align_loops_string; +const char *i386_align_loops_string; /* Power of two alignment for non-loop jumps. */ -char *i386_align_jumps_string; +const char *i386_align_jumps_string; /* Power of two alignment for stack boundary in bytes. */ -char *i386_preferred_stack_boundary_string; +const char *i386_preferred_stack_boundary_string; /* Preferred alignment for stack boundary in bits. */ int i386_preferred_stack_boundary; /* Values 1-5: see jump.c */ int i386_branch_cost; -char *i386_branch_cost_string; +const char *i386_branch_cost_string; /* Power of two alignment for functions. */ int i386_align_funcs; -char *i386_align_funcs_string; +const char *i386_align_funcs_string; /* Power of two alignment for loops. */ int i386_align_loops; diff --git a/gcc/config/i386/i386.h b/gcc/config/i386/i386.h index 3b6385ae13e..7fbfede46ff 100644 --- a/gcc/config/i386/i386.h +++ b/gcc/config/i386/i386.h @@ -2771,15 +2771,15 @@ extern void rewrite_address (); #endif /* Variables in i386.c */ -extern char *ix86_cpu_string; /* for -mcpu=<xxx> */ -extern char *ix86_arch_string; /* for -march=<xxx> */ -extern char *i386_reg_alloc_order; /* register allocation order */ -extern char *i386_regparm_string; /* # registers to use to pass args */ -extern char *i386_align_loops_string; /* power of two alignment for loops */ -extern char *i386_align_jumps_string; /* power of two alignment for non-loop jumps */ -extern char *i386_align_funcs_string; /* power of two alignment for functions */ -extern char *i386_preferred_stack_boundary_string;/* power of two alignment for stack boundary */ -extern char *i386_branch_cost_string; /* values 1-5: see jump.c */ +extern const char *ix86_cpu_string; /* for -mcpu=<xxx> */ +extern const char *ix86_arch_string; /* for -march=<xxx> */ +extern const char *i386_reg_alloc_order; /* register allocation order */ +extern const char *i386_regparm_string; /* # registers to use to pass args */ +extern const char *i386_align_loops_string; /* power of two alignment for loops */ +extern const char *i386_align_jumps_string; /* power of two alignment for non-loop jumps */ +extern const char *i386_align_funcs_string; /* power of two alignment for functions */ +extern const char *i386_preferred_stack_boundary_string;/* power of two alignment for stack boundary */ +extern const char *i386_branch_cost_string; /* values 1-5: see jump.c */ extern int i386_regparm; /* i386_regparm_string as a number */ extern int i386_align_loops; /* power of two alignment for loops */ extern int i386_align_jumps; /* power of two alignment for non-loop jumps */ |

