This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH] For the time being avoid some machine dependent foldoptimizations if flag_syntax_only
- From: Roger Sayle <roger at eyesopen dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: Richard Henderson <rth at redhat dot com>, Andrew Haley <aph at redhat dot com>, <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 14 Dec 2004 06:50:25 -0700 (MST)
- Subject: Re: [PATCH] For the time being avoid some machine dependent foldoptimizations if flag_syntax_only
On Tue, 14 Dec 2004, Jakub Jelinek wrote:
> 2004-12-14 Jakub Jelinek <email@example.com>
> * fold-const.c (fold_single_bit_test): If flag_syntax_only, pretend
> LOAD_EXTEND_OP is not defined.
> (fold): Likewise. If flag_syntax_only, don't depend on BITS_PER_WORD.
This is OK for mainline. I agree that the alternate (better?) ways of
doing this are all unlikely for 4.0. Amongst the approaches that could
be considered are tweaking the Java front-end to undo LOAD_EXTEND_OP
when generating bytecode, or eventually "targetm = jvmtargetm;" to
provide/override a minimal target-independent backend (only the subset
of target hooks used by -fsyntax-only which should be extended to include
LOAD_EXTEND_OP, BITS_PER_WORD, etc...).