aboutsummaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2001-10-19 19:37:09 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2001-10-19 19:37:09 +0000
commit6894579f1447dc6c18560804bd1b1e9e293aa9b7 (patch)
treef1097dc96a2df41737fb22b6cdea43f07d8cc9cd /gcc/config
parent368a164799eb94baa3711e1982a74018471e1a16 (diff)
downloadgcc-6894579f1447dc6c18560804bd1b1e9e293aa9b7.zip
gcc-6894579f1447dc6c18560804bd1b1e9e293aa9b7.tar.gz
gcc-6894579f1447dc6c18560804bd1b1e9e293aa9b7.tar.bz2
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
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/1750a/1750a.c2
-rw-r--r--gcc/config/1750a/1750a.h11
-rw-r--r--gcc/config/1750a/1750a.md2
3 files changed, 8 insertions, 7 deletions
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: