This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Patch to fix -fsyntax-only


>> 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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]