On Tue, 2012-10-09 at 18:33 +0900, Kaz Kojima wrote: > Oleg Endo <oleg.e...@t-online.de> wrote: > > This adds the reduced test case as mentioned by Kaz in the PR to the > > test suite. > > Tested with > > make -k check-gcc RUNTESTFLAGS="compile.exp=pr34777* > > --target_board=sh-sim > > \{-m2/-ml,-m2/-mb,-m2a/-mb,-m4/-ml,-m4/-mb,-m4a/-ml,-m4a/-mb}" > > > > OK? > > It should be put into gcc.target/sh instead of gcc.c-torture/compile > and tested with -Os -fschedule-insns -fPIC -mprefergot, shouldn't it? >
Uhm, yes, I forgot to add the -fschedule-insns and -mprefergot options. Regarding the -Os option, I think it's better to test this one at multiple optimization levels, just in case. I've looked through gcc.c-torture/compile and found some target specific test cases there, so I thought it would be OK to do the same :) Some targets also have their own torture subdir. If it's better, I could also create gcc.target/sh/torture. Cheers, Oleg