aboutsummaryrefslogtreecommitdiff
path: root/gcc/genoutput.c
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>1998-04-06 12:03:16 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>1998-04-06 12:03:16 +0000
commit3286ab57366ae3422fdacff3c2e605ea81a29c44 (patch)
tree41648733bb08f0139c0ad96d79953b1e77d616ff /gcc/genoutput.c
parentd276f2bb0c9b6e5d73ff879433f8a3616ff08373 (diff)
downloadgcc-3286ab57366ae3422fdacff3c2e605ea81a29c44.zip
gcc-3286ab57366ae3422fdacff3c2e605ea81a29c44.tar.gz
gcc-3286ab57366ae3422fdacff3c2e605ea81a29c44.tar.bz2
gansidecl.h: Check if compiler supports __attribute__.
* 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__. From-SVN: r19019
Diffstat (limited to 'gcc/genoutput.c')
-rw-r--r--gcc/genoutput.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/gcc/genoutput.c b/gcc/genoutput.c
index 6af827d..540685d 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