From 6894579f1447dc6c18560804bd1b1e9e293aa9b7 Mon Sep 17 00:00:00 2001 From: "Kaveh R. Ghazi" Date: Fri, 19 Oct 2001 19:37:09 +0000 Subject: calls.c (emit_call_1): Mark parameter with ATTRIBUTE_UNUSED. * calls.c (emit_call_1): Mark parameter with ATTRIBUTE_UNUSED. * 1750a.c (print_operand): Fix format specifier warning. * 1750a.h (ASM_FILE_START): Don't discard pointer qualifier. * 1750a.md: Likewise. * gcc.c (init_gcc_specs): Wrap with ENABLE_SHARED_LIBGCC. * genemit.c (output_add_clobbers): Mark parameter with ATTRIBUTE_UNUSED. * genrecog.c (write_subroutine): Likewise. * integrate.c (expand_inline_function): Delete unused variable. * varasm.c (remove_from_pending_weak_list): Wrap with ASM_WEAKEN_LABEL. From-SVN: r46358 --- gcc/config/1750a/1750a.c | 2 +- gcc/config/1750a/1750a.h | 11 ++++++----- gcc/config/1750a/1750a.md | 2 +- 3 files changed, 8 insertions(+), 7 deletions(-) (limited to 'gcc/config') diff --git a/gcc/config/1750a/1750a.c b/gcc/config/1750a/1750a.c index 4856de2..8f2ba21 100644 --- a/gcc/config/1750a/1750a.c +++ b/gcc/config/1750a/1750a.c @@ -652,7 +652,7 @@ print_operand (file, x, letter) case CALL: fprintf (file, "CALL nargs="); - fprintf (file, HOST_PTR_PRINTF, XEXP (x, 1)); + fprintf (file, HOST_PTR_PRINTF, (PTR) XEXP (x, 1)); fprintf (file, ", func is either '%s' or '%s'", XSTR (XEXP (XEXP (x, 0), 1), 0), XSTR (XEXP (x, 0), 1)); break; diff --git a/gcc/config/1750a/1750a.h b/gcc/config/1750a/1750a.h index ac6e7ee..07af479 100644 --- a/gcc/config/1750a/1750a.h +++ b/gcc/config/1750a/1750a.h @@ -857,15 +857,16 @@ enum reg_class { NO_REGS, R2, R0_1, INDEX_REGS, BASE_REGS, ALL_REGS, LIM_REG_CLA /* Output at beginning of assembler file. */ #define ASM_FILE_START(FILE) { \ - char *p, name[40]; \ - if ((p = (char *)strrchr(main_input_filename,'/')) != NULL ? 1 : \ - (p = (char *)strrchr(main_input_filename,']')) != NULL) \ + char *p2, name[40]; \ + const char *p; \ + if ((p = strrchr(main_input_filename,'/')) != NULL ? 1 : \ + (p = strrchr(main_input_filename,']')) != NULL) \ p++; \ else \ p = main_input_filename; \ strcpy(name,p); \ - if ((p = (char *)strchr(name,'.'))) \ - *p = '\0'; \ + if ((p2 = strchr(name,'.'))) \ + *p2 = '\0'; \ fprintf(FILE,"\tname %s\n",name); \ fprintf(FILE,"\tnolist\n\tinclude \"ms1750.inc\"\n\tlist\n\n"); \ fprintf(FILE,"\tglobal\t__main\n\n"); } diff --git a/gcc/config/1750a/1750a.md b/gcc/config/1750a/1750a.md index e9a4deb..1f4098f 100644 --- a/gcc/config/1750a/1750a.md +++ b/gcc/config/1750a/1750a.md @@ -667,7 +667,7 @@ "" "* { - char *istr; + const char *istr; switch(which_alternative) { case 0: -- cgit v1.1