aboutsummaryrefslogtreecommitdiff
path: root/gcc/genautomata.c
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2003-07-09 00:44:34 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2003-07-09 00:44:34 +0000
commitec049fdb0fd92e48e3d8e28e23d6dc5340331796 (patch)
treede9aaefcc4ca5501862b82012e9dc7f369354405 /gcc/genautomata.c
parent9e7facfd47ed8da719ee0693ffb170e5d3d21379 (diff)
downloadgcc-ec049fdb0fd92e48e3d8e28e23d6dc5340331796.zip
gcc-ec049fdb0fd92e48e3d8e28e23d6dc5340331796.tar.gz
gcc-ec049fdb0fd92e48e3d8e28e23d6dc5340331796.tar.bz2
genattr.c (internal_dfa_insn_code): Don't prototype.
* genattr.c (internal_dfa_insn_code): Don't prototype. * genattrtab.c (attr_desc): Add `static_p' field. (expand_units): Make blockage range and ready cost functions static. (write_attr_get): Don't add extern prototypes in C file. Mark static functions as appropriate. (find_attr, make_internal_attr): Initialize static_p. * genattrtab.h (ATTR_STATIC): New macro. * genautomata.c (output_internal_reset_func): Mark output function as inline. (make_internal_dfa_insn_code_attr): Mark output function as static. From-SVN: r69116
Diffstat (limited to 'gcc/genautomata.c')
-rw-r--r--gcc/genautomata.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/genautomata.c b/gcc/genautomata.c
index 635d362..bafb255 100644
--- a/gcc/genautomata.c
+++ b/gcc/genautomata.c
@@ -8572,7 +8572,7 @@ output_dead_lock_func (void)
static void
output_internal_reset_func (void)
{
- fprintf (output_file, "static void\n%s (struct %s *%s)\n",
+ fprintf (output_file, "static inline void\n%s (struct %s *%s)\n",
INTERNAL_RESET_FUNC_NAME, CHIP_NAME, CHIP_PARAMETER_NAME);
fprintf (output_file, "{\n memset (%s, 0, sizeof (struct %s));\n}\n\n",
CHIP_PARAMETER_NAME, CHIP_NAME);
@@ -9474,7 +9474,7 @@ make_internal_dfa_insn_code_attr (void)
(attr_printf (sizeof ("*")
+ strlen (INTERNAL_DFA_INSN_CODE_FUNC_NAME) + 1,
"*%s", INTERNAL_DFA_INSN_CODE_FUNC_NAME),
- condexp, ATTR_NONE);
+ condexp, ATTR_STATIC);
}