aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/debug/pr42767.c
blob: ef7a5c332861f082894d9f0281d38a06f636be14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* PR debug/42767 */
/* { dg-do compile } */
/* { dg-options "-O1 -g" } */

struct lineno_cache_entry
{
  unsigned long size;
};
int
_bfd_link_section_stabs (struct lineno_cache_entry * stabsec)
{
  unsigned long count;
  unsigned char *sym;
  unsigned char *symend;
  unsigned long skip;
  count = stabsec->size / 12;
  for (; sym < symend; sym += 1);
  stabsec->size = (count - skip) * 12;
}