On Thu, Apr 13, 2006 at 01:34:10PM +0800, Ching-Hua Chang wrote: > We had ported gcc-3.4.2 to our own RISC, and meet a strange > case in optimization level 3 (-O3). > > The compiler produce wrong assembly code in O3 and > correct result if we add -fno-inline flag. > > It seems that there some problem in function in-lining. > What can I do and what should I do to solve this problem ?
I ran into a similar problem with function inlining on a x86->powerpc405 cross compiler with gcc-3.4.5. As you say, when you explicitly forbid inlining it works fine. I posted a couple weeks ago to the list, but never got any responses. http://gcc.gnu.org/ml/gcc/2006-04/msg00054.html mh -- Martin Hicks || [EMAIL PROTECTED] || PGP/GnuPG: 0x4C7F2BEE
signature.asc
Description: Digital signature