From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12619 invoked by alias); 18 Jan 2007 15:20:56 -0000 Received: (qmail 12535 invoked by uid 48); 18 Jan 2007 15:20:43 -0000 Date: Thu, 18 Jan 2007 15:20:00 -0000 Message-ID: <20070118152043.12534.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c/30475] assert(int+100 > int) optimized away In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "felix-gcc at fefe dot de" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2007-01/txt/msg01475.txt.bz2 ------- Comment #27 from felix-gcc at fefe dot de 2007-01-18 15:20 ------- Oh, so C++ code using vector gets faster, you say? Let's see... This is vector.C from http://ptrace.fefe.de/vector.C It does some assignments to a vector. It runs the loop 10 times and takes the minimum cycle counter. $ g++ -O2 -o vector vector.C $ ./vector 20724 cycles $ g++ -O2 -o vector vector.C -fwrapv $ ./vector 20724 cycles $ And AGAIN you are proven wrong by the facts. Do you have some more "proof" where this came from? Man, this is ridiculous. Just back out that optimization and I'll shut up. -- felix-gcc at fefe dot de changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |UNCONFIRMED Resolution|WONTFIX | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30475