This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch to fix -fsyntax-only
- To: bothner at cygnus dot com
- Subject: Re: Patch to fix -fsyntax-only
- From: craig at jcb-sc dot com
- Date: 19 Feb 1999 16:42:26 -0000
- Cc: egcs-patches at egcs dot cygnus dot com
- Cc: craig at jcb-sc dot com
- References: <199902191627.IAA27202@cygnus.com>
>> Reason I ask is, currently, RTL *is* generated, unless you do all
>> your code generation exclusively via expand_expr_stmt (meaning you
>> don't call expand_jump, expand_start_cond, etc.).
>
>We do. And we explicitly suppress rtl generation in the Java front-end.
>See source_end_java_method in java/parse.y:
>
> /* Generate function's code */
> if (BLOCK_EXPR_BODY (DECL_FUNCTION_BODY (fndecl))
> && ! flag_emit_class_files)
> expand_expr_stmt (BLOCK_EXPR_BODY (DECL_FUNCTION_BODY (fndecl)));
>
>So if you remove tests of flag_syntax_only in stmt.c/expr.c, it
>is unlikely to harm jc1.
Just a quick question, purely for the record: by "We do" above,
do you mean you do *all* your code generation exclusively via
expand_expr_stmt, or that you *do* call expand_jump, expand_start_cond,
etc.?
Anyway, thanks for the clarifications!
tq vm, (burley)