From: Kaveh R. Ghazi Date: Fri, 27 May 2005 23:08:31 +0000 (+0000) Subject: mips-protos.h (mips_declare_object): Add printf attribute. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=99a3237ac34b2384180f1ebc0c7d46f9c9e22a3e;p=gcc.git mips-protos.h (mips_declare_object): Add printf attribute. * config/mips/mips-protos.h (mips_declare_object): Add printf attribute. * config/mips/mips.c (mips_declare_object_name): Fix format argument. From-SVN: r100284 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2b4e78bb3b0..586f7626fb5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2005-05-27 Kaveh R. Ghazi + + * config/mips/mips-protos.h (mips_declare_object): Add printf + attribute. + * config/mips/mips.c (mips_declare_object_name): Fix format + argument. + 2005-05-27 Roger Sayle * reg-stack.c (compensate_edge): Remove original prototype. diff --git a/gcc/config/mips/mips-protos.h b/gcc/config/mips/mips-protos.h index 8fa82a72e3b..1f6478a2f8c 100644 --- a/gcc/config/mips/mips-protos.h +++ b/gcc/config/mips/mips-protos.h @@ -184,7 +184,7 @@ extern void mips_declare_common_object (FILE *, const char *, const char *, unsigned HOST_WIDE_INT, unsigned int, bool); extern void mips_declare_object (FILE *, const char *, const char *, - const char *, ...); + const char *, ...) ATTRIBUTE_PRINTF_4; extern void mips_declare_object_name (FILE *, const char *, tree); extern void mips_finish_declare_object (FILE *, tree, int, int); diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c index 146af7ab60e..6ca6daf50fc 100644 --- a/gcc/config/mips/mips.c +++ b/gcc/config/mips/mips.c @@ -5627,7 +5627,7 @@ mips_declare_object_name (FILE *stream, const char *name, ASM_OUTPUT_SIZE_DIRECTIVE (stream, name, size); } - mips_declare_object (stream, name, "", ":\n", 0); + mips_declare_object (stream, name, "", ":\n"); } /* Implement ASM_FINISH_DECLARE_OBJECT. This is generic ELF stuff. */