This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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: Possibly OT: GCC 2.96 on PPC for VxWorks 5.5


On Tuesday 13 June 2006 20:38, Paul Smith wrote:

> As of now, most of my .o's are building identically.  However, there're
> some objects which don't.  After much investigation I've discovered that
> for some .c files, the Linux version of the compiler generates this
> assembly code:
>
>        mulli 9,0,100
>        stw 9,28(31)
>
> while the Solaris version generates this assembly code:
>
>        mr 11,0
>        slwi 9,11,1
>        add 9,9,0
>        slwi 11,9,5
>        add 9,9,11
>        add 0,9,0
>        stw 0,28(31)
>

Looks like (mis)selecting optimising speed verus size. I remember there was a 
similar problem fixed in 3.3

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=7067#c2
http://gcc.gnu.org/gcc-3.3/changes.html#3.3.6


Greetings

Rob

--
For unsubscribe information see http://sourceware.org/lists.html#faq


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