https://gcc.gnu.org/bugzilla/show_bug.cgi?id=34747
Martin Sebor changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
CC|
Hi,
I compile the following code with arm gcc 4.6 (x86 is the similar with one of
4.7 snapshot).
I noticed a is written to memory three times instead of being added by 3 and
written at the
end. Doesn't restrict guarantee a won't be aliased to p so 3 a++ can be
optimized?
Thanks,
Bingfeng Mei
On Tue, Sep 6, 2011 at 5:30 PM, Bingfeng Mei b...@broadcom.com wrote:
Hi,
I compile the following code with arm gcc 4.6 (x86 is the similar with one of
4.7 snapshot).
I noticed a is written to memory three times instead of being added by 3
and written at the
end. Doesn't restrict guarantee
-Original Message-
From: Richard Guenther [mailto:richard.guent...@gmail.com]
Sent: 06 September 2011 16:42
To: Bingfeng Mei
Cc: gcc@gcc.gnu.org
Subject: Re: Is this correct behaviour?
On Tue, Sep 6, 2011 at 5:30 PM, Bingfeng Mei b...@broadcom.com wrote:
Hi,
I compile
Bingfeng Mei b...@broadcom.com writes:
Then how do I tell compiler that a is not aliased if I have to use global
variable?
Thanks,
Bingfeng Mei
int a;
int P[100];
void foo (int * restrict p)
{
P[0] = *p;
a++;
P[1] = *p;
a++;
P[2] = *p;
a++;
}
How about
--- Comment #4 from andry at inbox dot ru 2008-05-15 14:06 ---
Version 4.3.0 (Release), the same tests still failing.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34747
--- Comment #3 from andry at inbox dot ru 2008-01-28 01:16 ---
I build trunk (2008.01.27) and run test. Several tests still failing:
FAILED: test5
FAILED: test7
FAILED: test20
FAILED: test21
FAILED: test25
FAILED: test26
FAILED: test37
FAILED: test46
FAILED: test47
FAILED: test48
10
--- Comment #2 from andry at inbox dot ru 2008-01-12 08:42 ---
(In reply to comment #1)
I think this is really just PR 10179 which was fixed for 4.3.0.
Could you test it on 4.3?
I tried to make trunk, but stopped with error:
configure: failed program was:
| /* confdefs.h. */
|
|
;
}
///
Test failes with 33 errors.
For example, Microsoft Visual Stidio 2003/2005/2008 C++ behavies all tests
correct and without any failures.
--
Summary: __attribute__((aligned(x)))+__alignof != correct
behaviour
--- Comment #1 from pinskia at gcc dot gnu dot org 2008-01-12 03:27 ---
I think this is really just PR 10179 which was fixed for 4.3.0.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34747
10 matches
Mail list logo