This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch, fortran + C testsuite, 4.2] Accept -Wno-all (PR 30437)


François-Xavier Coudert wrote:
This is a backport of a patch by Manuel Lopez-Ibanez, which fixes
Fortran's only 4.2 regression, PR 30437.  Currently regtesting on
i686-pc-linux-gnu.  Ok to commit to 4.2, assuming it passes?

OK.

Thanks!


I still need an OK from someone who can approve the gcc.dg testsuite portions of this patch, I think. I'm reattaching those for convenience of reviewers; the ChangeLog entry for them is simply "New."

- Brooks
/* PR 30437: Test negative of -Wall
   Don't change this without changing Wall.c as well.  */
/* { dg-do compile } */
/* { dg-options "-Wall -Wno-all" } */

void foo()
{
  int a;
  5 * (a == 1) | (a == 2);  /* { dg-bogus "no effect" "no effect" } */
}

/* PR 30437: Test -Wall 
   Don't change this without changing Wno-all.c as well.  */
/* { dg-do compile } */
/* { dg-options "-Wall" } */

void foo()
{
  int a;
  5 * (a == 1) | (a == 2);  /* { dg-warning "no effect" "no effect" } */
}

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]