aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2005-05-27 23:08:31 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2005-05-27 23:08:31 +0000
commit99a3237ac34b2384180f1ebc0c7d46f9c9e22a3e (patch)
tree1d041f1421af18286764deb8400099bb55d718e3 /gcc
parent1c320f82aba94a006bda5a3264681f15685c5e3a (diff)
downloadgcc-99a3237ac34b2384180f1ebc0c7d46f9c9e22a3e.zip
gcc-99a3237ac34b2384180f1ebc0c7d46f9c9e22a3e.tar.gz
gcc-99a3237ac34b2384180f1ebc0c7d46f9c9e22a3e.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/config/mips/mips-protos.h2
-rw-r--r--gcc/config/mips/mips.c2
3 files changed, 9 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 2b4e78b..586f762 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+2005-05-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+
+ * 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 <roger@eyesopen.com>
* 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 8fa82a7..1f6478a 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 146af7a..6ca6daf 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. */