OSDN Git Service

Warning fixes:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 23 Oct 1998 13:12:09 +0000 (13:12 +0000)
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 23 Oct 1998 13:12:09 +0000 (13:12 +0000)
        * 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@23254 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/sparc/sparc.h
gcc/config/svr4.h

index f39d2f6..a23998a 100644 (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
index 177c332..5b50c2e 100644 (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)
index ef7a1d9..1211f68 100644 (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)                                   \
                {                                                       \