Warning fixes:

* sparc.h (EXTRA_SPECS): Add missing initializers.
        (sparc_defer_case_vector): Provide a prototype.
        * svr4.h (ASM_OUTPUT_ASCII): Cast STRING_LIMIT to (long) when
        comparing it to the result of a pointer subtraction.

From-SVN: r23254
This commit is contained in:
Kaveh R. Ghazi 1998-10-23 13:12:09 +00:00 committed by Kaveh Ghazi
parent d1e6b55b7a
commit df4f7565fe
3 changed files with 24 additions and 15 deletions

View File

@ -1,3 +1,11 @@
Fri Oct 23 16:08:39 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* sparc.h (EXTRA_SPECS): Add missing initializers.
(sparc_defer_case_vector): Provide a prototype.
* svr4.h (ASM_OUTPUT_ASCII): Cast STRING_LIMIT to (long) when
comparing it to the result of a pointer subtraction.
Fri Oct 23 15:34:14 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* alpha.c (override_options): Use ISDIGIT(), not isdigit(). Cast

View File

@ -316,20 +316,20 @@ Unrecognized value in TARGET_CPU_DEFAULT.
Do not define this macro if it does not need to do anything. */
#define EXTRA_SPECS \
{ "cpp_cpu", CPP_CPU_SPEC }, \
{ "cpp_cpu_default", CPP_CPU_DEFAULT_SPEC }, \
{ "cpp_arch32", CPP_ARCH32_SPEC }, \
{ "cpp_arch64", CPP_ARCH64_SPEC }, \
{ "cpp_arch_default", CPP_ARCH_DEFAULT_SPEC }, \
{ "cpp_arch", CPP_ARCH_SPEC }, \
{ "cpp_endian", CPP_ENDIAN_SPEC }, \
{ "cpp_subtarget", CPP_SUBTARGET_SPEC }, \
{ "asm_cpu", ASM_CPU_SPEC }, \
{ "asm_cpu_default", ASM_CPU_DEFAULT_SPEC }, \
{ "asm_arch32", ASM_ARCH32_SPEC }, \
{ "asm_arch64", ASM_ARCH64_SPEC }, \
{ "asm_arch_default", ASM_ARCH_DEFAULT_SPEC }, \
{ "asm_arch", ASM_ARCH_SPEC }, \
{ "cpp_cpu", CPP_CPU_SPEC, 0, 0, 0, 0 }, \
{ "cpp_cpu_default", CPP_CPU_DEFAULT_SPEC, 0, 0, 0, 0 }, \
{ "cpp_arch32", CPP_ARCH32_SPEC, 0, 0, 0, 0 }, \
{ "cpp_arch64", CPP_ARCH64_SPEC, 0, 0, 0, 0 }, \
{ "cpp_arch_default", CPP_ARCH_DEFAULT_SPEC, 0, 0, 0, 0 }, \
{ "cpp_arch", CPP_ARCH_SPEC, 0, 0, 0, 0 }, \
{ "cpp_endian", CPP_ENDIAN_SPEC, 0, 0, 0, 0 }, \
{ "cpp_subtarget", CPP_SUBTARGET_SPEC, 0, 0, 0, 0 }, \
{ "asm_cpu", ASM_CPU_SPEC, 0, 0, 0, 0 }, \
{ "asm_cpu_default", ASM_CPU_DEFAULT_SPEC, 0, 0, 0, 0 }, \
{ "asm_arch32", ASM_ARCH32_SPEC, 0, 0, 0, 0 }, \
{ "asm_arch64", ASM_ARCH64_SPEC, 0, 0, 0, 0 }, \
{ "asm_arch_default", ASM_ARCH_DEFAULT_SPEC, 0, 0, 0, 0 }, \
{ "asm_arch", ASM_ARCH_SPEC, 0, 0, 0, 0 }, \
SUBTARGET_EXTRA_SPECS
#define SUBTARGET_EXTRA_SPECS
@ -3029,6 +3029,7 @@ extern int ultrasparc_variable_issue ();
/* This is how we hook in and defer the case-vector until the end of
the function. */
extern void sparc_defer_case_vector ();
#define ASM_OUTPUT_ADDR_VEC(LAB,VEC) \
sparc_defer_case_vector ((LAB),(VEC), 0)

View File

@ -950,7 +950,7 @@ do { \
} \
for (p = _ascii_bytes; p < limit && *p != '\0'; p++) \
continue; \
if (p < limit && (p - _ascii_bytes) <= STRING_LIMIT) \
if (p < limit && (p - _ascii_bytes) <= (long)STRING_LIMIT) \
{ \
if (bytes_in_chunk > 0) \
{ \