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 to stop GCC from shifting by a negative number


On Fri, Aug 16, 2002 at 02:08:47PM -0700, Steve Ellcey wrote:
> -       /* Don't attempt bitwise arithmetic on non-integral modes.  */
> -       if (! INTEGRAL_MODE_P (compute_mode))
> +       /* Don't attempt bitwise arithmetic on non-integer modes.  */
> +       if (GET_MODE_CLASS (compute_mode) != MODE_INT
> + 	  && GET_MODE_CLASS (compute_mode) != MODE_PARTIAL_INT)
> +          
>   	{

Please introduce a new macro SCALAR_INT_MODE_P for this test,
and use as needed throughout.  Do not introduce random whitespace.

Ok with that change.


r~


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