Re: gcc optimization changes results
- From: Spoons <root@xxxxxxxxx>
- Date: Mon, 07 Aug 2006 10:46:07 +0200
nirnimesh wrote:
gcc optimizaton (with -O1 or -O2) is producing unexpected and wrong
results for my program. I get correct answers with no optimizations.
I'm using gcc 4.0 on FC4-x86_64. I replaced -O1 with the options it
enabls (from gcc manpage) but that doesn't trace the problem. How
should I approach to solve this problem? What should I be checking?
Not to rain on your parade, but a bug in GCC is less likely than a bug
in your application.
Your problem sounds like undefined behavior somewhere in your program.
.
- Follow-Ups:
- Re: gcc optimization changes results
- From: nirnimesh
- Re: gcc optimization changes results
- References:
- gcc optimization changes results
- From: nirnimesh
- gcc optimization changes results
- Prev by Date: Load balancing using SCHED_RR
- Next by Date: Re: gcc optimization changes results
- Previous by thread: Re: gcc optimization changes results
- Next by thread: Re: gcc optimization changes results
- Index(es):
Relevant Pages
|