OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [Wstrict-overflow-19.c] - Blame information for rev 689

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-fstrict-overflow -O2 -Wstrict-overflow" } */
3
 
4
/* Don't warn about an overflow when threading jumps.  We used to get
5
   a warning from comparing bounds generated by VRP.  */
6
 
7
int
8
bar(int a, int b, int n)
9
{
10
  if (b > a)
11
    n = a - b;
12
  if (a >= b)
13
    n = 1;
14
  return n;
15
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.