Re: mips-elf-gcc -fno-delayed-branch problem

2011-06-10 Thread Hans-Peter Nilsson
On Thu, 19 May 2011, Richard Sandiford wrote: > Maybe it would be worth breaking with tradition and making > -fno-delayed-branch imply -Wa,-O0 though. Back in the day, > the assembler's version of delayed-branch filling was applied > to pretty much every function, so the separation was probably >

Re: mips-elf-gcc -fno-delayed-branch problem

2011-05-23 Thread Toshi Morita
The -O1 sounds like a reasonable choice. Thanks for looking at the problem. Toshi --- On Sat, 5/21/11, Richard Sandiford wrote: > From: Richard Sandiford > Subject: Re: mips-elf-gcc -fno-delayed-branch problem > To: "Toshi Morita" > Cc: gcc@gcc.gnu.org > Date: Satu

Re: mips-elf-gcc -fno-delayed-branch problem

2011-05-21 Thread Richard Sandiford
Toshi Morita writes: > Maybe GAS could recognize -fno-delayed-branch to selectively disable > branch slot filling? I'd agree if it was -mno-delayed-branch. I think -f* options are generally compiler options, while -m* options are target options that could in principle be passed down to either th

Re: mips-elf-gcc -fno-delayed-branch problem

2011-05-19 Thread Toshi Morita
ard Sandiford > Subject: Re: mips-elf-gcc -fno-delayed-branch problem > To: "Toshi Morita" > Cc: gcc@gcc.gnu.org > Date: Thursday, May 19, 2011, 1:03 AM > Toshi Morita > writes: > > There's a problem where compiling code with > -fno-delayed-branch still &g

Re: mips-elf-gcc -fno-delayed-branch problem

2011-05-19 Thread Richard Sandiford
Toshi Morita writes: > There's a problem where compiling code with -fno-delayed-branch still > fills branch delay slots. > [...] > The problem appears to be caused with GNU AS. It now has the > capability to reorder instructions, and there is no ".set noreorder" > emitted by the compiler, so the a

mips-elf-gcc -fno-delayed-branch problem

2011-05-18 Thread Toshi Morita
target: mips-elf version: 4.4.1 There's a problem where compiling code with -fno-delayed-branch still fills branch delay slots. [ubxju10]/home/jupiter/tmorita/dhrystone/test 1097 % cat minlib.c #include int printf(const char *format, ...) { register int a0 asm ("a0"); register