aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>1998-10-23 13:12:09 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>1998-10-23 13:12:09 +0000
commitdf4f7565feb1b58b9f2864825dd40bd38d3c6d40 (patch)
treedaed9565f86589d44f90424cc1a1fd599a4e6926
parentd1e6b55b7aad1d74979f9ea5c3029340e8e36707 (diff)
downloadgcc-df4f7565feb1b58b9f2864825dd40bd38d3c6d40.zip
gcc-df4f7565feb1b58b9f2864825dd40bd38d3c6d40.tar.gz
gcc-df4f7565feb1b58b9f2864825dd40bd38d3c6d40.tar.bz2
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
-rw-r--r--gcc/ChangeLog8
-rw-r--r--gcc/config/sparc/sparc.h29
-rw-r--r--gcc/config/svr4.h2
3 files changed, 24 insertions, 15 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index f39d2f6..a23998a 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/config/sparc/sparc.h b/gcc/config/sparc/sparc.h
index 177c332..5b50c2e 100644
--- a/gcc/config/sparc/sparc.h
+++ b/gcc/config/sparc/sparc.h
@@ -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)
diff --git a/gcc/config/svr4.h b/gcc/config/svr4.h
index ef7a1d9..1211f68 100644
--- a/gcc/config/svr4.h
+++ b/gcc/config/svr4.h
@@ -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) \
{ \