[Bug c++/34747] __attribute__((aligned(x)))+__alignof != correct behaviour

2016-05-07 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=34747 Martin Sebor changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED CC|

Is this correct behaviour?

2011-09-06 Thread Bingfeng Mei
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

Re: Is this correct behaviour?

2011-09-06 Thread Richard Guenther
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

RE: Is this correct behaviour?

2011-09-06 Thread Bingfeng Mei
-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

Re: Is this correct behaviour?

2011-09-06 Thread Ian Lance Taylor
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

[Bug c++/34747] __attribute__((aligned(x)))+__alignof != correct behaviour

2008-05-15 Thread andry at inbox dot ru
--- 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

[Bug c++/34747] __attribute__((aligned(x)))+__alignof != correct behaviour

2008-01-27 Thread andry at inbox dot ru
--- 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

[Bug c++/34747] __attribute__((aligned(x)))+__alignof != correct behaviour

2008-01-12 Thread andry at inbox dot ru
--- 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. */ | |

[Bug c++/34747] New: __attribute__((aligned(x)))+__alignof != correct behaviour

2008-01-11 Thread andry at inbox dot ru
; } /// 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

[Bug c++/34747] __attribute__((aligned(x)))+__alignof != correct behaviour

2008-01-11 Thread pinskia at gcc dot gnu dot org
--- 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