[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FW: [openrisc] GCC problem



* Raymond Chow (rchow@nimbuswireless.com) wrote:
> 
> Thank you for your suggestion to use gcc-3.2.3. It helped, and my problem
> was
> solved but only in non-optimized mode (O0). With any optimization (levels 1,
> 2
> or 3) turned on, system crashes and SP, FP, LR and PC registers get
> corrupted.
> Debugging and analyzing the assembly code for non-optimized and optimized
> version
> of the API where system usually crashes, I noticed that the difference is
> how extensively
> FP register is used for stack store/load operations when optimization is
> turned off, and is
> not used at all when optimization is on. I wonder why is this big difference
> how FP is
> used, and is there a some compiler option that can be used to fix this
> problem?

it would be helpful if you would provide some more detailed information on
your setup, what are you trying to achieve and if possible a simple testcase.

m.
--
To unsubscribe from openrisc mailing list please visit http://www.opencores.org/mailinglists.shtml