diff options
Diffstat (limited to 'gcc/toplev.h')
| -rw-r--r-- | gcc/toplev.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gcc/toplev.h b/gcc/toplev.h index 05fca0103a1..f0c37f8c753 100644 --- a/gcc/toplev.h +++ b/gcc/toplev.h @@ -133,10 +133,16 @@ extern int sorrycount; extern const char *progname; -/* Language-specific hooks. */ +/* Language-specific hooks. Can be NULL unless otherwise specified. */ struct lang_hooks { - /* If non-NULL, called when all command line options have been processed. */ + /* Called first, to initialize the front end. */ + void (*init) PARAMS ((void)); + + /* Called last, as a finalizer. */ + void (*finish) PARAMS ((void)); + + /* Called when all command line options have been processed. */ void (*post_options) PARAMS ((void)); }; |

