This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/30475] assert(int+100 > int) optimized away
- From: "felix-gcc at fefe dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Jan 2007 15:20:43 -0000
- Subject: [Bug c/30475] assert(int+100 > int) optimized away
- References: <bug-30475-3511@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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