]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
i370.c (mvs_function_name_length): Fix signed/unsigned warnings.
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Wed, 4 Jun 2003 17:53:07 +0000 (17:53 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Wed, 4 Jun 2003 17:53:07 +0000 (17:53 +0000)
* i370.c (mvs_function_name_length): Fix signed/unsigned warnings.
* i370.h (mvs_function_name_length): Likewise.
* i960.h (CONSTANT_ALIGNMENT): Likewise.
* mips/linux.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
* pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
* pa.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
* rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Delete unused
variable.

From-SVN: r67458

gcc/ChangeLog
gcc/config/i370/i370.c
gcc/config/i370/i370.h
gcc/config/i960/i960.h
gcc/config/mips/linux.h
gcc/config/pa/pa-pro-end.h
gcc/config/pa/pa.h
gcc/config/rs6000/xcoff.h

index d80ce2058e558e1322bade9179bc70bb5dc1f587..b503f8d6efc83dc679b4495c682776734da803ba 100644 (file)
@@ -1,3 +1,14 @@
+2003-06-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * i370.c (mvs_function_name_length): Fix signed/unsigned warnings. 
+       * i370.h (mvs_function_name_length): Likewise.
+       * i960.h (CONSTANT_ALIGNMENT): Likewise.
+       * mips/linux.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
+       * pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
+       * pa.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
+       * rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Delete unused
+       variable.
+
 2003-06-04  Daniel Jacobowitz  <drow@mvista.com>
 
        * config.gcc: Reorganize --with-cpu logic.  Set
index 5dc63018eea5682935dd538be78f9fd0378bbce6..da26b9e9d6849b0f7d42b7c84ca811683d3392d1 100644 (file)
@@ -85,7 +85,7 @@ int mvs_page_lit;
 char *mvs_function_name = 0;
 
 /* Current function name length.  */
-int mvs_function_name_length = 0;
+size_t mvs_function_name_length = 0;
 
 /* Page number for multi-page functions.  */
 int mvs_page_num = 0;
index 6dedc04ad3322c6d4c0ef84070c3e9217307f3c7..a52bb804a6e544b0c948dc84fcb45d2b72f2ee04 100644 (file)
@@ -54,7 +54,7 @@ extern char *mvs_function_name;
 
 /* The length of the function name malloc'd area.  */
 
-extern int mvs_function_name_length;
+extern size_t mvs_function_name_length;
 
 /* Compile using char instructions (mvc, nc, oc, xc).  On 4341 use this since
    these are more than twice as fast as load-op-store.
index 230cb5d3e2527fe2be4a3e7e281a14afb9a8dce4..87ccef6917bf083ed66f7c93ea3a9f1c59b49c5d 100644 (file)
@@ -422,9 +422,9 @@ extern int target_flags;
    library functions.  */
 #define CONSTANT_ALIGNMENT(EXP, ALIGN) \
   (TREE_CODE (EXP) == STRING_CST       \
-   && i960_object_bytes_bitalign (int_size_in_bytes (TREE_TYPE (EXP))) > (ALIGN) \
+   && i960_object_bytes_bitalign (int_size_in_bytes (TREE_TYPE (EXP))) > (int)(ALIGN) \
    ? i960_object_bytes_bitalign (int_size_in_bytes (TREE_TYPE (EXP)))      \
-   : (ALIGN))
+   : (int)(ALIGN))
 
 /* Macros to determine size of aggregates (structures and unions
    in C).  Normally, these may be defined to simply return the maximum
index 9986fa312f8914c3ca4fc65a38a7c1b02ab19506..50526e94b9e337718b35d0d7c56ede5620928f1a 100644 (file)
@@ -46,7 +46,7 @@ Boston, MA 02111-1307, USA.  */
    `varasm.c' when defining this macro.  */
 #define ASM_OUTPUT_ALIGNED_BSS(FILE, DECL, NAME, SIZE, ALIGN)  \
 do {                                                           \
-  if (SIZE > 0 && SIZE <= mips_section_threshold)              \
+  if (SIZE > 0 && (long)(SIZE) <= mips_section_threshold)      \
     sbss_section ();                                           \
   else                                                         \
     bss_section ();                                            \
index 3d5c0b2b366083256477b29939d6b0469bf1f433..86d1a26b9868810fc2b75a42e2e12d653c05f19a 100644 (file)
@@ -64,7 +64,7 @@ Boston, MA 02111-1307, USA.  */
 { bss_section ();                                                      \
   assemble_name ((FILE), (NAME));                                      \
   fprintf ((FILE), "\t.comm "HOST_WIDE_INT_PRINT_UNSIGNED"\n",         \
-          MAX ((SIZE), ((ALIGNED) / BITS_PER_UNIT)));}
+          MAX ((HOST_WIDE_INT)(SIZE), (HOST_WIDE_INT)((ALIGNED) / BITS_PER_UNIT)));}
 
 /* This says how to output an assembler line to define a local common symbol
    with size SIZE (in bytes) and alignment ALIGN (in bits).  */
index 3936d8c31a0ea9d3f97257822d467c12c2d74bb2..11e162b08d1cc7346933040609f2b9d6c887aee4 100644 (file)
@@ -1764,7 +1764,7 @@ do {                                                                      \
 { bss_section ();                                                      \
   assemble_name ((FILE), (NAME));                                      \
   fprintf ((FILE), "\t.comm "HOST_WIDE_INT_PRINT_UNSIGNED"\n",         \
-          MAX ((SIZE), ((ALIGNED) / BITS_PER_UNIT)));}
+          MAX ((HOST_WIDE_INT)(SIZE), (HOST_WIDE_INT)((ALIGNED) / BITS_PER_UNIT)));}
 
 /* This says how to output an assembler line to define a local common symbol
    with size SIZE (in bytes) and alignment ALIGN (in bits).  */
index a1575372462c16b414d9a7779a509fdd90d14c4c..892017692af9baeaab13e342b739ffb1d281f41d 100644 (file)
@@ -258,8 +258,7 @@ toc_section ()                                              \
    are placeholders which no longer have any use.  */
 
 #define ASM_DECLARE_FUNCTION_NAME(FILE,NAME,DECL)              \
-{ rtx sym_ref = XEXP (DECL_RTL (DECL), 0);                     \
-  if (TREE_PUBLIC (DECL))                                      \
+{ if (TREE_PUBLIC (DECL))                                      \
     {                                                          \
       if (!RS6000_WEAK || !DECL_WEAK (decl))                   \
        {                                                       \