diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-04-06 12:03:16 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-04-06 12:03:16 +0000 |
commit | cd5ffd887e5678a166dc4cf1f1e3c76e26ec321d (patch) | |
tree | 41648733bb08f0139c0ad96d79953b1e77d616ff /gcc/genoutput.c | |
parent | 726118741a3b5ed2c20f8ec6d37e38e04a02d6e6 (diff) | |
download | gcc-cd5ffd887e5678a166dc4cf1f1e3c76e26ec321d.tar.gz |
* gansidecl.h: Check if compiler supports __attribute__. Provide
definitions for ATTRIBUTE_UNUSED and ATTRIBUTE_PRINTF using
__attribute__ when its available. Also provide definitions for
ATTRIBUTE_PRINTF_1, ATTRIBUTE_PRINTF_2 and ATTRIBUTE_PRINTF_3 in
terms of ATTRIBUTE_PRINTF.
* genoutput.c (process_template): Use ATTRIBUTE_UNUSED in place
of __attribute__.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19019 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/genoutput.c')
-rw-r--r-- | gcc/genoutput.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/gcc/genoutput.c b/gcc/genoutput.c index 6af827dcb6e..540685d3db5 100644 --- a/gcc/genoutput.c +++ b/gcc/genoutput.c @@ -562,13 +562,8 @@ process_template (d, template) printf ("\nstatic char *\n"); printf ("output_%d (operands, insn)\n", d->code_number); - printf ("#ifdef __GNUC__\n"); - printf (" rtx *operands __attribute__ ((unused));\n"); - printf (" rtx insn __attribute__ ((unused));\n"); - printf ("#else\n"); - printf (" rtx *operands;\n"); - printf (" rtx insn;\n"); - printf ("#endif\n"); + printf (" rtx *operands ATTRIBUTE_UNUSED;\n"); + printf (" rtx insn ATTRIBUTE_UNUSED;\n"); printf ("{\n"); /* If the assembler code template starts with a @ it is a newline-separated |