X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gas%2Fconfig%2Ftc-nios2.c;h=a9d3a595a2636940b818f844af059077eb87899c;hb=f85d59c30681f55150bf28225b3873fe2d4b6bf7;hp=db31059fefbdd29acc7d4753575f8aa926e30d66;hpb=3facb0e9a754d2869a139fe135dcd2a58ced2347;p=deliverable%2Fbinutils-gdb.git diff --git a/gas/config/tc-nios2.c b/gas/config/tc-nios2.c index db31059fef..a9d3a595a2 100644 --- a/gas/config/tc-nios2.c +++ b/gas/config/tc-nios2.c @@ -98,7 +98,7 @@ typedef enum } relax_optionT; /* Struct contains all assembler options set with .set. */ -struct +static struct { /* .set noat -> noat = 1 allows assembly code to use at without warning and macro expansions generate a warning. @@ -264,7 +264,7 @@ md_number_to_chars (char *buf, valueT val, int n) of type TYPE, and store the appropriate bytes in *LITP. The number of LITTLENUMS emitted is stored in *SIZEP. An error message is returned, or NULL on OK. */ -char * +const char * md_atof (int type, char *litP, int *sizeP) { int prec; @@ -3540,7 +3540,7 @@ nios2_use_arch (const char *arch) /* The following functions are called by machine-independent parts of the assembler. */ int -md_parse_option (int c, char *arg ATTRIBUTE_UNUSED) +md_parse_option (int c, const char *arg ATTRIBUTE_UNUSED) { switch (c) { @@ -3910,7 +3910,7 @@ md_pcrel_from (fixS *fixP ATTRIBUTE_UNUSED) /* Called just before the assembler exits. */ void -md_end () +md_end (void) { /* FIXME - not yet implemented */ } @@ -3980,7 +3980,7 @@ nios2_cons_align (int size) /* Map 's' to SHF_NIOS2_GPREL. */ /* This is from the Alpha code tc-alpha.c. */ int -nios2_elf_section_letter (int letter, char **ptr_msg) +nios2_elf_section_letter (int letter, const char **ptr_msg) { if (letter == 's') return SHF_NIOS2_GPREL;