[Bug testsuite/83453] FAIL: c-c++-common/Wattributes.c -std=gnu++98 (test for warnings, line 404)

2019-03-16 Thread danglin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83453

John David Anglin  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |FIXED

--- Comment #7 from John David Anglin  ---
Fixed on hppa64-hp-hpux11.11.

[Bug testsuite/83453] FAIL: c-c++-common/Wattributes.c -std=gnu++98 (test for warnings, line 404)

2019-03-16 Thread danglin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83453

--- Comment #6 from John David Anglin  ---
Author: danglin
Date: Sat Mar 16 15:44:25 2019
New Revision: 269727

URL: https://gcc.gnu.org/viewcvs?rev=269727&root=gcc&view=rev
Log:
PR testsuite/83453
* c-c++-common/Wattributes.c: Skip a warning check on hppa*64*-*-*.


Modified:
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/c-c++-common/Wattributes.c

[Bug testsuite/83453] FAIL: c-c++-common/Wattributes.c -std=gnu++98 (test for warnings, line 404)

2019-02-21 Thread dave.anglin at bell dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83453

--- Comment #5 from dave.anglin at bell dot net ---
On 2019-02-21 2:00 p.m., msebor at gcc dot gnu.org wrote:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83453
>
> --- Comment #4 from Martin Sebor  ---
> The checking was relaxed to allow the attribute to specify a less restrictive
> alignment than the minimum provided by the target without triggering the
> warning, so the xfails can be removed.  The rationale for the relaxation is
> that a looser alignment is trivially satisfied by providing a stricter
> alignment.  The following discussion has the background:
> https://gcc.gnu.org/ml/gcc/2018-11/msg00127.html
>
Okay, I will remove hppa64 and s390 error check.  However, it seems the warning
at 404 is not generated
on hppa64 and s390, but it is on other targets.

[Bug testsuite/83453] FAIL: c-c++-common/Wattributes.c -std=gnu++98 (test for warnings, line 404)

2019-02-21 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83453

--- Comment #4 from Martin Sebor  ---
The checking was relaxed to allow the attribute to specify a less restrictive
alignment than the minimum provided by the target without triggering the
warning, so the xfails can be removed.  The rationale for the relaxation is
that a looser alignment is trivially satisfied by providing a stricter
alignment.  The following discussion has the background:
https://gcc.gnu.org/ml/gcc/2018-11/msg00127.html

[Bug testsuite/83453] FAIL: c-c++-common/Wattributes.c -std=gnu++98 (test for warnings, line 404)

2019-02-21 Thread danglin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83453

--- Comment #3 from John David Anglin  ---
The test was fixed to handle error at 404 on hppa64 and s390:

inline int ATTR ((aligned (4)))
  finline_hot_noret_align (int);  /* { dg-warning "ignoring attribute .aligned
\
\(4\\). because it conflicts with attribute .aligned \\(8\\)." "" { target { !
{
 hppa*64*-*-* s390*-*-* } } } } */
/* { dg-error "alignment for '.*finline_hot_noret_align.*' must be at least 8"
"
" { target hppa*64*-*-* s390*-*-* } .-1 } */

However, the error no longer occurs with gcc-9:

/test/gnu/gcc/gcc/gcc/testsuite/c-c++-common/Wattributes.c:398:29: warning:
igno
ring attribute 'cold' because it conflicts with attribute 'hot' [-Wattributes]
/test/gnu/gcc/gcc/gcc/testsuite/c-c++-common/Wattributes.c:395:1: note:
previous
 declaration here
/test/gnu/gcc/gcc/gcc/testsuite/c-c++-common/Wattributes.c:401:29: warning:
igno
ring attribute 'warn_unused_result' because it conflicts with attribute
'noretur
n' [-Wattributes]
/test/gnu/gcc/gcc/gcc/testsuite/c-c++-common/Wattributes.c:398:1: note:
previous
 declaration here
/test/gnu/gcc/gcc/gcc/testsuite/c-c++-common/Wattributes.c:411:29: warning:
igno
ring attribute 'const' because it conflicts with attribute 'noreturn'
[-Wattribu
tes]
/test/gnu/gcc/gcc/gcc/testsuite/c-c++-common/Wattributes.c:408:1: note:
previous
 declaration here
/test/gnu/gcc/gcc/gcc/testsuite/c-c++-common/Wattributes.c:425:1: warning:
ignor
ing attribute 'nocommon' because it conflicts with attribute 'common'
[-Wattribu
tes]
/test/gnu/gcc/gcc/gcc/testsuite/c-c++-common/Wattributes.c:422:1: note:
previous
 declaration here

[Bug testsuite/83453] FAIL: c-c++-common/Wattributes.c -std=gnu++98 (test for warnings, line 404)

2017-12-17 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83453

--- Comment #2 from Martin Sebor  ---
Caused by r255469 (the test was added belatedly, in r27).

[Bug testsuite/83453] FAIL: c-c++-common/Wattributes.c -std=gnu++98 (test for warnings, line 404)

2017-12-17 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83453

Martin Sebor  changed:

   What|Removed |Added

 CC||msebor at gcc dot gnu.org
  Component|c++ |testsuite

--- Comment #1 from Martin Sebor  ---
This is a testsuite issue.