Oleg Endo <oleg.e...@t-online.de> wrote:
> The attached patch addresses PR 31640.
> It reduces the the default function alignment when not optimizing for
> size from cache line size (32 bytes) to 4 bytes and sets the loop
> alignment to 4 bytes when not optimizing for size.  Moreover, it brings
> back the -falign-loops option which was always overridden and disabled
> for -m4.
> 
> Tested against rev 182734 with 
> make -k -check RUNTESTFLAGS="--target_board=sh-sim
> \{-m2/-ml,
> -m2/-mb,
> -m2a-single/-mb,
> -m4-single/-ml,
> -m4-single/-mb,
> -m4a-single/-ml,
> -m4a-single/-mb}"
> 
> and no new failures. 
> OK for trunk?
> 
> 2012-01-02  Oleg Endo  <olege...@gcc.gnu.org>
> 
>       PR target/31640
>       * config/sh/sh.h (LOOP_ALIGN): Move logic to ...
>       * config/sh/sh.c (sh_loop_align): ... here.  Don't disable loop
>       alignment for TARGET_HARD_SH4.
>       (sh_option_override): Reduce default function alignment.  Set 
>       loop alignment to 4 bytes when not optimizing for size.

OK for trunk when it returns to stage 1 or 2.

Regards,
        kaz

Reply via email to