Re: [Patch] Emit error for negative _Alignas alignment values

2013-04-29 Thread Joseph S. Myers
On Thu, 25 Apr 2013, Senthil Kumar Selvaraj wrote: > On Wed, Apr 24, 2013 at 03:18:51PM +, Joseph S. Myers wrote: > > On Wed, 3 Apr 2013, Senthil Kumar Selvaraj wrote: > > > > > 2013-04-03Senthil Kumar Selvaraj > > > > > > > > > * c-common.c (check_user_alignment): Emit error fo

Re: [Patch] Emit error for negative _Alignas alignment values

2013-04-24 Thread Senthil Kumar Selvaraj
On Wed, Apr 24, 2013 at 03:18:51PM +, Joseph S. Myers wrote: > On Wed, 3 Apr 2013, Senthil Kumar Selvaraj wrote: > > > 2013-04-03 Senthil Kumar Selvaraj > > > > * c-common.c (check_user_alignment): Emit error for negative values > > > > * gcc.dg/c1x-align-3.c: Add test for neg

Re: [Patch] Emit error for negative _Alignas alignment values

2013-04-24 Thread Joseph S. Myers
On Wed, 3 Apr 2013, Senthil Kumar Selvaraj wrote: > 2013-04-03Senthil Kumar Selvaraj > > * c-common.c (check_user_alignment): Emit error for negative values > > * gcc.dg/c1x-align-3.c: Add test for negative power of 2 OK (but note there should be a "." at the end of each C

[Patch] Emit error for negative _Alignas alignment values

2013-04-03 Thread Senthil Kumar Selvaraj
This patch detects and emits an error if the value provided in _Alignas is negative. The fix was approved pending full regression testing in a previous discussion (http://gcc.gnu.org/ml/gcc/2013-03/msg00282.html). To add to that patch, I have added a testcase that explicitly checks for the error f