delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/07/23/09:57:25

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
Message-ID: <4C49A4A9.8040501@gmail.com>
Date: Fri, 23 Jul 2010 15:18:17 +0100
From: Dave Korn <dave DOT korn DOT cygwin AT gmail DOT com>
User-Agent: Thunderbird 2.0.0.17 (Windows/20080914)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: When will the next gcc come out
References: <AANLkTimFKJE-S3uvTSu5Pav16poAaU4Ym8vGs96Q=zTm AT mail DOT gmail DOT com> <AANLkTimXs6dcQE8inCh9bNABKL0dgStEP_VFEiUqSOu9 AT mail DOT gmail DOT com> <AANLkTi=RzGekyTSKhYLjvsUF6bg4=Wq6c9oGiF+OGdAo AT mail DOT gmail DOT com>
In-Reply-To: <AANLkTi=RzGekyTSKhYLjvsUF6bg4=Wq6c9oGiF+OGdAo@mail.gmail.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On 23/07/2010 10:02, Huang Bambo wrote:

> 
> Gcc optimized out some code like
> *fp++ = *format_string ++;
> 
> When I gdb to that line and "print fp", gdb reported that fp is optized out...

  You need to check in more detail than that.  GCC may have optimised away the
fp variable, but kept the functionality implied by the line.  You'd need to
study the assembly code to see if it really did what the C code said it should
do or not.

    cheers,
      DaveK

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019