lm32 build problem.

2014-10-07 Thread Toshi Morita
version: 4.9.1 host compiler: gcc-4.8.2 host OS: Ubuntu 14.04 target: lm32-unknown-elf Here's the problem I see: tm@tm-VirtualBox:~/lm32-toolchain/lm32-gcc$ ../gcc-4.9.1/configure --prefix=/home/tm/bin --target=lm32-uclibc-elf --enable-languges=c ; make ... checking if /home/tm/lm32-toolchain/lm3

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

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-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: -mfmovd enabled by default for SH2A but not for SH4

2008-02-21 Thread Toshi Morita
Naveen H.S. wrote: > SH2A, SH4 and SH4A FPU targets support mode switching i.e. switching > between single precision and double precision. Double-precision FPU > is also available for the above mentioned targets. > > The option "-mfmovd" is enabled by default for SH2A which generates > "fmov.d"

Calling functions through a pointerI

2017-10-12 Thread Toshi Morita via gcc
This isn't a GCC question specifically - it's more of a C language question. I'm involved in a discussion involving C language function pointers. The other party claims calling functions through a function pointer is "undefined behavior" because it's not specifically mentioned in the C language