aboutsummaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
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: