--- Comment #8 from dberlin at gcc dot gnu dot org 2006-08-09 14:38 ---
I can trivially fix this, but the code isn't going to do what you want when i'm
done, since it is an aliasing violation :)
The assert in question just happens to be good at catching them.
--
http://gcc.gnu.org/
--
dberlin at gcc dot gnu dot org changed:
What|Removed |Added
AssignedTo|unassigned at gcc dot gnu |dberlin at gcc dot gnu dot
|dot org
Package: gcc-4.1
Version: 4.1.1-10
Severity: normal
The following C code works fine with -O0 or -O1 but does not work
correct with -O2
#include
void foo (int arg1)
{
int loc1;
if (arg1 < 0) {
loc1 = -arg1;
printf ("%d\n", loc1 ==
Your message dated Thu, 10 Aug 2006 07:09:57 +0200
with message-id <[EMAIL PROTECTED]>
and subject line Bug#382290: gcc-4.1: O2 optimization problem
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it i
4 matches
Mail list logo