OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* decl.c (finish_method): Give methods once-only linkage.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
genflags.c
diff --git
a/gcc/genflags.c
b/gcc/genflags.c
index
1eb3a73
..
a52e18a
100644
(file)
--- 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,
- 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.
This file is part of GCC.
@@
-102,10
+102,8
@@
gen_macro (const char *name, int real, int expect)
{
int i;
{
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);
/* #define GEN_CALL(A, B, C, D) gen_call((A), (B)) */
fputs ("#define GEN_", stdout);
@@
-179,13
+177,11
@@
gen_proto (rtx insn)
{
putchar ('(');
for (i = 0; i < num-1; i++)
{
putchar ('(');
for (i = 0; i < num-1; i++)
- printf ("%c, ", 'a' + i);
- printf ("%c)\n", 'a' + i);
- for (i = 0; i < num; 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
}
else
- puts ("()");
+ puts ("(
void
)");
puts ("{\n return 0;\n}");
}
puts ("{\n return 0;\n}");
}
@@
-211,7
+207,7
@@
gen_insn (rtx insn)
max_id_len = len;
if (truth == 0)
max_id_len = len;
if (truth == 0)
- /*
emit nothing
*/;
+ /*
Emit nothing.
*/;
else if (truth == 1)
printf ("#define HAVE_%s 1\n", name);
else
else if (truth == 1)
printf ("#define HAVE_%s 1\n", name);
else
@@
-247,9
+243,6
@@
main (int argc, char **argv)
direct calls to their generators in C code. */
insn_elision = 0;
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);
if (init_md_reader_args (argc, argv) != SUCCESS_EXIT_CODE)
return (FATAL_EXIT_CODE);
@@
-289,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 *
/* 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;
}
{
return NULL;
}