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]
Other format: [Raw text]

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  <jakub@redhat.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...).

Roger
--


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