[Bug c/68960] __attribute__ ((aligned ())) is ignored for OpenMP private variables

2016-02-11 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68960

Jakub Jelinek  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #8 from Jakub Jelinek  ---
Fixed.

[Bug c/68960] __attribute__ ((aligned ())) is ignored for OpenMP private variables

2016-02-11 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68960

--- Comment #7 from Jakub Jelinek  ---
Author: jakub
Date: Thu Feb 11 09:13:42 2016
New Revision: 233327

URL: https://gcc.gnu.org/viewcvs?rev=233327=gcc=rev
Log:
Backported from mainline
2016-01-07  Jakub Jelinek  

PR middle-end/68960
* gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
it and DECL_ALIGN too.

* testsuite/libgomp.c/pr68960.c: New test.

Added:
branches/gcc-4_9-branch/libgomp/testsuite/libgomp.c/pr68960.c
Modified:
branches/gcc-4_9-branch/gcc/ChangeLog
branches/gcc-4_9-branch/gcc/gimple-expr.c
branches/gcc-4_9-branch/libgomp/ChangeLog

[Bug c/68960] __attribute__ ((aligned ())) is ignored for OpenMP private variables

2016-02-10 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68960

--- Comment #5 from Jakub Jelinek  ---
Author: jakub
Date: Wed Feb 10 18:28:44 2016
New Revision: 233288

URL: https://gcc.gnu.org/viewcvs?rev=233288=gcc=rev
Log:
Backported from mainline
2016-01-07  Jakub Jelinek  

PR middle-end/68960
* gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
it and DECL_ALIGN too.

* testsuite/libgomp.c/pr68960.c: New test.

Added:
branches/gcc-5-branch/libgomp/testsuite/libgomp.c/pr68960.c
Modified:
branches/gcc-5-branch/gcc/ChangeLog
branches/gcc-5-branch/gcc/gimple-expr.c
branches/gcc-5-branch/libgomp/ChangeLog

[Bug c/68960] __attribute__ ((aligned ())) is ignored for OpenMP private variables

2016-02-10 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68960

--- Comment #6 from Jakub Jelinek  ---
Fixed also for 5.4+.

[Bug c/68960] __attribute__ ((aligned ())) is ignored for OpenMP private variables

2016-01-07 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68960

--- Comment #4 from Jakub Jelinek  ---
Fixed for GCC 6+ so far.

[Bug c/68960] __attribute__ ((aligned ())) is ignored for OpenMP private variables

2016-01-05 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68960

Jakub Jelinek  changed:

   What|Removed |Added

 Status|UNCONFIRMED |ASSIGNED
   Last reconfirmed||2016-01-05
   Assignee|unassigned at gcc dot gnu.org  |jakub at gcc dot gnu.org
 Ever confirmed|0   |1

--- Comment #2 from Jakub Jelinek  ---
Created attachment 37230
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37230=edit
gcc6-pr68960.patch

Untested fix.

[Bug c/68960] __attribute__ ((aligned ())) is ignored for OpenMP private variables

2016-01-05 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68960

Marek Polacek  changed:

   What|Removed |Added

 CC||mpolacek at gcc dot gnu.org
   Severity|major   |normal

--- Comment #1 from Marek Polacek  ---
GCC 4.8 is no longer supported.  Please try some supported version.