diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-07-09 00:44:34 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-07-09 00:44:34 +0000 |
commit | 7492620dc25a8cef1b7ef7427bcf41e09678e797 (patch) | |
tree | de9aaefcc4ca5501862b82012e9dc7f369354405 /gcc/genautomata.c | |
parent | 542f09c7d771834b5db184b76cbaf3ee576954f3 (diff) | |
download | gcc-7492620dc25a8cef1b7ef7427bcf41e09678e797.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@69116 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/genautomata.c')
-rw-r--r-- | gcc/genautomata.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/genautomata.c b/gcc/genautomata.c index 635d3627991..bafb2553cde 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); } |