This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problem in function in-lining


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 || mort@bork.org || PGP/GnuPG: 0x4C7F2BEE

Attachment: signature.asc
Description: Digital signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]