From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3652 invoked by alias); 22 Oct 2005 01:13:29 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 3642 invoked by uid 22791); 22 Oct 2005 01:13:27 -0000 Received: from smtp1.rz.uni-karlsruhe.de (HELO smtp1.rz.uni-karlsruhe.de) (129.13.185.217) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Sat, 22 Oct 2005 01:13:27 +0000 Received: from c39 (hadic039.hadiko.uni-karlsruhe.de [172.20.41.159]) by smtp1.rz.uni-karlsruhe.de with esmtp (Exim 4.43 #1) id 1ET7wq-0003TS-R0; Sat, 22 Oct 2005 03:13:25 +0200 From: "Amir Bukhari" To: Subject: Gcc -O(1-3) produce worse code on MPC5200 Date: Sat, 22 Oct 2005 01:13:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-SW-Source: 2005-10/txt/msg00136.txt.bz2 Message-ID: <20051022011300.YzflqcnCiKzPY3PZeKLhwdrFc8g85Ul6E7-lAdYP2Pg@z> I use macraiger gcc port for PPC. When I compile my software with gcc -O0 zero the program work as excpected But I as soon as I use optimization option like -O2 my software crash. I can't figure what case this until now. My assumtion is that the stack is got currupted. I use uC-II RTOS as a kernel. Has someone experience such case? Have someone some hints for me? Thanks, Amir