kill some warnings, should help cross-compilers
This commit is contained in:
parent
d7cb30421a
commit
d57441d59e
20
lang/egcs/stable/patches/patch-gcc_config_i386_gas_h
Normal file
20
lang/egcs/stable/patches/patch-gcc_config_i386_gas_h
Normal file
@ -0,0 +1,20 @@
|
||||
$OpenBSD: patch-gcc_config_i386_gas_h,v 1.1 2001/09/12 22:15:22 espie Exp $
|
||||
--- gcc/config/i386/gas.h.orig Tue Sep 11 23:40:24 2001
|
||||
+++ gcc/config/i386/gas.h Tue Sep 11 23:41:39 2001
|
||||
@@ -150,14 +150,14 @@ Boston, MA 02111-1307, USA. */
|
||||
|
||||
#undef ASM_GENERATE_INTERNAL_LABEL
|
||||
#define ASM_GENERATE_INTERNAL_LABEL(BUF,PREFIX,NUMBER) \
|
||||
- sprintf ((BUF), ".%s%d", (PREFIX), (NUMBER))
|
||||
+ sprintf ((BUF), ".%s%lu", (PREFIX), (unsigned long)(NUMBER))
|
||||
|
||||
/* This is how to output an internal numbered label where
|
||||
PREFIX is the class of label and NUM is the number within the class. */
|
||||
|
||||
#undef ASM_OUTPUT_INTERNAL_LABEL
|
||||
#define ASM_OUTPUT_INTERNAL_LABEL(FILE,PREFIX,NUM) \
|
||||
- fprintf (FILE, ".%s%d:\n", PREFIX, NUM)
|
||||
+ fprintf ((FILE), ".%s%lu:\n", (PREFIX), (unsigned long)(NUM))
|
||||
|
||||
#endif /* NO_UNDERSCORES */
|
||||
|
Loading…
x
Reference in New Issue
Block a user