summaryrefslogtreecommitdiff
path: root/gcc/genautomata.c
diff options
context:
space:
mode:
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>2005-02-18 01:21:12 +0000
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>2005-02-18 01:21:12 +0000
commitdadff31e1f479f30eafd81f0758cd86624baea8d (patch)
tree09475a7f0b79bd95adcb35d7d097c2346f6a0310 /gcc/genautomata.c
parent182b909943671fec4328395b5c131e3464f83082 (diff)
downloadgcc-dadff31e1f479f30eafd81f0758cd86624baea8d.tar.gz
* genautomata.c (output_get_cpu_unit_code_func,
output_cpu_unit_reservation_p): Don't generate old-style function definitions. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@95213 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/genautomata.c')
-rw-r--r--gcc/genautomata.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/gcc/genautomata.c b/gcc/genautomata.c
index 64dde93ed8e..5f8e199a7b4 100644
--- a/gcc/genautomata.c
+++ b/gcc/genautomata.c
@@ -8969,9 +8969,8 @@ output_get_cpu_unit_code_func (void)
int i;
unit_decl_t *units;
- fprintf (output_file, "int\n%s (%s)\n\tconst char *%s;\n",
- GET_CPU_UNIT_CODE_FUNC_NAME, CPU_UNIT_NAME_PARAMETER_NAME,
- CPU_UNIT_NAME_PARAMETER_NAME);
+ fprintf (output_file, "int\n%s (const char *%s)\n",
+ GET_CPU_UNIT_CODE_FUNC_NAME, CPU_UNIT_NAME_PARAMETER_NAME);
fprintf (output_file, "{\n struct %s {const char *%s; int %s;};\n",
NAME_CODE_STRUCT_NAME, NAME_MEMBER_NAME, CODE_MEMBER_NAME);
fprintf (output_file, " int %s, %s, %s, %s;\n", CMP_VARIABLE_NAME,
@@ -9018,9 +9017,9 @@ output_cpu_unit_reservation_p (void)
{
automaton_t automaton;
- fprintf (output_file, "int\n%s (%s, %s)\n\t%s %s;\n\tint %s;\n",
- CPU_UNIT_RESERVATION_P_FUNC_NAME, STATE_NAME,
- CPU_CODE_PARAMETER_NAME, STATE_TYPE_NAME, STATE_NAME,
+ fprintf (output_file, "int\n%s (%s %s, int %s)\n",
+ CPU_UNIT_RESERVATION_P_FUNC_NAME,
+ STATE_TYPE_NAME, STATE_NAME,
CPU_CODE_PARAMETER_NAME);
fprintf (output_file, "{\n gcc_assert (%s >= 0 && %s < %d);\n",
CPU_CODE_PARAMETER_NAME, CPU_CODE_PARAMETER_NAME,