diff options
Diffstat (limited to 'contrib/gcc/langhooks.h')
-rw-r--r-- | contrib/gcc/langhooks.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/contrib/gcc/langhooks.h b/contrib/gcc/langhooks.h index 56b818f..7a3c3bd 100644 --- a/contrib/gcc/langhooks.h +++ b/contrib/gcc/langhooks.h @@ -93,7 +93,10 @@ struct lang_hooks /* Called when all command line options have been parsed. Should do any required consistency checks, modifications etc. Complex initialization should be left to the "init" callback, since GC - and the identifier hashes are set up between now and then. */ + and the identifier hashes are set up between now and then. + + If errorcount is non-zero after this call the compiler exits + immediately and the finish hook is not called. */ void (*post_options) PARAMS ((void)); /* Called after post_options, to initialize the front end. The main @@ -153,6 +156,12 @@ struct lang_hooks warning that the front end does not use such a parser. */ void (*set_yydebug) PARAMS ((int)); + /* Called from expr_size to calculate the size of the value of an + expression in a language-dependent way. Returns a tree for the size + in bytes. A frontend can call lhd_expr_size to get the default + semantics in cases that it doesn't want to handle specially. */ + tree (*expr_size) PARAMS ((tree)); + struct lang_hooks_for_tree_inlining tree_inlining; struct lang_hooks_for_tree_dump tree_dump; |