summaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
authordje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>2001-12-02 22:54:52 +0000
committerdje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>2001-12-02 22:54:52 +0000
commit6e06ecdf6db9e0af8e947cbf7fea9ad7d32d78c1 (patch)
tree5462c5b58ef5dbe160898dd9f74bc23cd40673c2 /gcc/config
parentc75516fb9f0f0acc7a4437d69bcd1f8343af8e5a (diff)
downloadgcc-6e06ecdf6db9e0af8e947cbf7fea9ad7d32d78c1.tar.gz
* config/rs6000/xcoff.h (ASM_OUTPUT_INTERNAL_LABEL): Display count
unsigned. (ASM_GENERATE_INTERNAL_LABEL): Same. (UNIQUE_SECTION): Fix typo. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47538 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/rs6000/xcoff.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/config/rs6000/xcoff.h b/gcc/config/rs6000/xcoff.h
index 22a6c18e12a..d5a6ff082a6 100644
--- a/gcc/config/rs6000/xcoff.h
+++ b/gcc/config/rs6000/xcoff.h
@@ -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); \
} \