Re: Add a mode argument to LEGITIMATE_CONSTANT_P, and make it a hook

2011-04-11 Thread Hans-Peter Nilsson
On Mon, 4 Apr 2011, Richard Sandiford wrote: > Pretty much as the subject says. > OK to install? CRIS and MMIX parts are ok. brgds, H-P PS. FWIW anyone: for "my" targets, a CC to me usually gets a faster response.

Add a mode argument to LEGITIMATE_CONSTANT_P, and make it a hook

2011-04-04 Thread Richard Sandiford
Pretty much as the subject says. This is a prerequisite for fixing target/46329. I've used the mode argument instead of GET_MODE where it seems appropriate. In the end, the only GET_MODEs I kept were in explicit checks for VOIDmode. E.g.: /* double integer constants are ok. */ if (mode == V