xcoff.h (ASM_OUTPUT_INTERNAL_LABEL): Display count unsigned.
authorDavid Edelsohn <dje@gcc.gnu.org>
Sun, 2 Dec 2001 22:54:52 +0000 (17:54 -0500)
committerDavid Edelsohn <dje@gcc.gnu.org>
Sun, 2 Dec 2001 22:54:52 +0000 (17:54 -0500)
        * config/rs6000/xcoff.h (ASM_OUTPUT_INTERNAL_LABEL): Display count
        unsigned.
        (ASM_GENERATE_INTERNAL_LABEL): Same.
        (UNIQUE_SECTION): Fix typo.

From-SVN: r47538

gcc/ChangeLog
gcc/config/rs6000/xcoff.h

index ba8d4c7a883b2250dfa8f872ab9105e1029464cb..c10750270ac5451e128fe65100410631ce52c11e 100644 (file)
@@ -1,3 +1,10 @@
+2001-12-02  David Edelsohn  <edelsohn@gnu.org>
+
+       * config/rs6000/xcoff.h (ASM_OUTPUT_INTERNAL_LABEL): Display count
+       unsigned.
+       (ASM_GENERATE_INTERNAL_LABEL): Same.
+       (UNIQUE_SECTION): Fix typo.
+
 2001-12-02  Richard Henderson  <rth@redhat.com>
 
        * c-decl.c (duplicate_decls): Conditionalize DECL_SAVED_TREE copy.
@@ -234,7 +241,7 @@ objc:
        strchr, strrchr, isascii, gettimeofday.
        * config.in, configure: Regenerate.
 
-2001-11-30  Zoltan Hidvegi <hzoli@hzoli.2y.net>
+2001-11-30  Zoltan Hidvegi  <hzoli@hzoli.2y.net>
 
        * unroll.c (unroll_loop): Correct special exit cases.
 
index 22a6c18e12a35d42b9ed5e2e20ef27fc965fbb85..d5a6ff082a6f97c2667b2582d6430f5af175719a 100644 (file)
@@ -393,7 +393,7 @@ toc_section ()                                              \
    PREFIX is the class of label and NUM is the number within the class.  */
 
 #define ASM_OUTPUT_INTERNAL_LABEL(FILE,PREFIX,NUM)     \
-  fprintf (FILE, "%s..%d:\n", PREFIX, NUM)
+  fprintf (FILE, "%s..%u:\n", (PREFIX), (unsigned) (NUM))
 
 /* This is how to output an internal label prefix.  rs6000.c uses this
    when generating traceback tables.  */
@@ -414,7 +414,7 @@ toc_section ()                                              \
    This is suitable for output with `assemble_name'.  */
 
 #define ASM_GENERATE_INTERNAL_LABEL(LABEL,PREFIX,NUM)  \
-  sprintf (LABEL, "*%s..%ld", (PREFIX), (long)(NUM))
+  sprintf (LABEL, "*%s..%u", (PREFIX), (unsigned) (NUM))
 
 /* This is how to output an assembler line to define N characters starting
    at P to FILE.  */
@@ -484,7 +484,7 @@ toc_section ()                                              \
     if (TREE_CODE (DECL) == FUNCTION_DECL) {           \
       name = IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (DECL)); \
       len = strlen (name) + 5;                         \
-      string = alloca (len) + 1;                       \
+      string = alloca (len + 1);                       \
       sprintf (string, ".%s[PR]", name);               \
       DECL_SECTION_NAME (DECL) = build_string (len, string); \
     }                                                  \