https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81566

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |NEW
           Assignee|msebor at gcc dot gnu.org          |unassigned at gcc dot 
gnu.org
            Summary|[6/7/8 Regression] invalid  |[6/7 Regression] invalid
                   |attribute aligned accepted  |attribute aligned accepted
                   |on functions                |on functions

--- Comment #8 from Martin Sebor <msebor at gcc dot gnu.org> ---
Fixed in 8.0 via r255469.  GCC 8 issues the warnings below.  Removing the 8
regression.

The patch seems too big to backport to older branches though it may be possible
to extract just the subset of the patch that fixes this issue and backport it. 
I don't expect to have the cycles to work on in in stage 3/4 so I'll unassign
myself from the bug for now.

pr81566.c:3:1: warning: ignoring attribute ‘aligned (4)’ because it conflicts
with attribute ‘aligned (16)’ [-Wattributes]
 int __attribute__ ((aligned (4))) f (void);
 ^~~
pr81566.c:1:31: note: previous declaration here
 int __attribute__ ((aligned)) f (void);
                               ^
pr81566.c:4:1: warning: ignoring attribute ‘aligned (2)’ because it conflicts
with attribute ‘aligned (16)’ [-Wattributes]
 int __attribute__ ((aligned (2))) f (void);
 ^~~
pr81566.c:3:35: note: previous declaration here
 int __attribute__ ((aligned (4))) f (void);
                                   ^
pr81566.c:5:1: warning: ignoring attribute ‘aligned (1)’ because it conflicts
with attribute ‘aligned (16)’ [-Wattributes]
 int __attribute__ ((aligned (1))) f (void);
 ^~~
pr81566.c:4:35: note: previous declaration here
 int __attribute__ ((aligned (2))) f (void);
                                   ^
pr81566.c:11:1: warning: ignoring attribute ‘aligned (1)’ because it conflicts
with attribute ‘aligned (2)’ [-Wattributes]
 int __attribute__ ((aligned (1))) g (void);
 ^~~
pr81566.c:10:35: note: previous declaration here
 int __attribute__ ((aligned (2))) g (void);
                                   ^

Reply via email to