X-Git-Url: http://git.sourceforge.jp/view?a=blobdiff_plain;f=gcc%2Fgenflags.c;h=a52e18a9deffbded49366edbd9655fca2eab60c9;hb=8ad786e6c241d8612462f45f6bf4977878562fba;hp=66e6bd1df01b5781481745ce486514a6815eef5a;hpb=21dda4ee525ebf098542fa3d2ea67e76421b227a;p=pf3gnuchains%2Fgcc-fork.git diff --git a/gcc/genflags.c b/gcc/genflags.c index 66e6bd1df01..a52e18a9def 100644 --- a/gcc/genflags.c +++ b/gcc/genflags.c @@ -2,7 +2,7 @@ - some flags HAVE_... saying which simple standard instructions are available for this machine. Copyright (C) 1987, 1991, 1995, 1998, - 1999, 2000, 2003 Free Software Foundation, Inc. + 1999, 2000, 2003, 2004 Free Software Foundation, Inc. This file is part of GCC. @@ -102,10 +102,8 @@ gen_macro (const char *name, int real, int expect) { int i; - if (real > expect) - abort (); - if (real == 0) - abort (); + gcc_assert (real <= expect); + gcc_assert (real); /* #define GEN_CALL(A, B, C, D) gen_call((A), (B)) */ fputs ("#define GEN_", stdout); @@ -179,8 +177,8 @@ gen_proto (rtx insn) { putchar ('('); for (i = 0; i < num-1; i++) - printf ("rtx %c ATTRIBUTE_UNUSED, ", 'a' + i); - printf ("rtx %c ATTRIBUTE_UNUSED)\n", 'a' + i); + printf ("rtx ARG_UNUSED (%c), ", 'a' + i); + printf ("rtx ARG_UNUSED (%c))\n", 'a' + i); } else puts ("(void)"); @@ -245,9 +243,6 @@ main (int argc, char **argv) direct calls to their generators in C code. */ insn_elision = 0; - if (argc <= 1) - fatal ("no input file name"); - if (init_md_reader_args (argc, argv) != SUCCESS_EXIT_CODE) return (FATAL_EXIT_CODE); @@ -287,7 +282,7 @@ main (int argc, char **argv) /* Define this so we can link with print-rtl.o to get debug_rtx function. */ const char * -get_insn_name (int code ATTRIBUTE_UNUSED) +get_insn_name (int ARG_UNUSED (code)) { return NULL; }