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: i386-linux cross sh-elf breakage


On Fri, May 19, 2000 at 04:26:32PM -0500, Clinton Popetz wrote:
> 	(optimize_mode_switching): Use MODE_AT_EXIT instead of 
> 	MODE_USES_IN_EXIT_BLOCK.  Change leftover instance of
> 	FP_MODE_NONE to no_mode.

I don't see the need for MODE_AT_EXIT.  It's always going
to be the same as MODE_AT_ENTRY.  In any sane system anyway.
You could rename it if you like to be more clear on that fact;
certainly that's not a large change at this point.

> + #ifdef MODE_AT_EXIT
> + 	  if (bb == (n_basic_blocks - 1) && MODE_AT_EXIT (e) != no_mode 
> + 		  && last_mode != MODE_AT_EXIT (e))

Please don't assume (n_basic_blocks - 1).  Please follow the CFG
edges back from EXIT.  It is rare, but not impossible, for a 
target to have return insns at this stage.



r~

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