gcc/
[official-gcc.git] / gcc / testsuite / gcc.dg / debug / pr42767.c
blob1f0e25fe58e2cc2182ee7e7b99cdcf70cffc0599
1 /* PR debug/42767 */
2 /* { dg-do compile } */
3 /* { dg-options "-O1 -g" } */
5 struct lineno_cache_entry
7 unsigned long size;
8 };
9 _bfd_link_section_stabs (struct lineno_cache_entry * stabsec)
11 unsigned long count;
12 unsigned char *sym;
13 unsigned char *symend;
14 unsigned long skip;
15 count = stabsec->size / 12;
16 for (; sym < symend; sym += 1);
17 stabsec->size = (count - skip) * 12;