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] pdp11: fix assembler warning


On 11/08/2010 05:08 PM, Paul Koning wrote:
> +				 GEN_INT (trunc_int_for_mode (INTVAL (x),
> +							      QImode) & 0xff));

This is gen_int_mode.

> +      fprintf (file, "%#o", (int) trunc_int_for_mode (INTVAL (x), HImode) & 0xffff);

Surely the & 0xffff isn't needed, since the value has already
been truncated.  Alternately, if you want an HImode value as
an unsigned number, then the trunc_int_for_mode isn't needed.


r~


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