[Bug lto/94311] LTO produces line info entries with invalid line numbers

mark at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Sep 1 11:25:18 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94311

--- Comment #7 from Mark Wielaard <mark at gcc dot gnu.org> ---
Note that the above is in ./install/lib/valgrind/memcheck-amd64-linux

Which has .debug_line entries like:

  [0x00098404]  Set is_stmt to 0
  [0x00098405]  Advance PC by constant 17 to 0x5809993c
  [0x00098406]  Special opcode 103: advance Address by 7 to 0x58099943 and Line 
by 0 to 13372
  [0x00098407]  Set is_stmt to 1
  [0x00098408]  Advance Line by 23257547 to 23270919
  [0x0009840d]  Special opcode 145: advance Address by 10 to 0x5809994d and
Line by 0 to 23270919
  [0x0009840e]  Advance Line by 58034 to 23328953
  [0x00098412]  Special opcode 117: advance Address by 8 to 0x58099955 and Line
by 0 to 23328953
  [0x00098413]  Advance Line by 75462 to 23404415
  [0x00098417]  Special opcode 131: advance Address by 9 to 0x5809995e and Line
by 0 to 23404415
  [0x00098418]  Advance Line by -23388426 to 15989
  [0x0009841d]  Special opcode 187: advance Address by 13 to 0x5809996b and
Line by 0 to 15989

with readelf --debug-dump=decodedline we see:

priv/guest_amd64_toIR.c:
guest_amd64_toIR.c                          1505          0x580998b8           
   x
guest_amd64_toIR.c                         23769          0x580998d8           
   x
guest_amd64_toIR.c                         10611          0x580998f1           
   x
guest_amd64_toIR.c                         10611          0x580998f8        
guest_amd64_toIR.c                         10610          0x580998f8       1   
   x
guest_amd64_toIR.c                         24067          0x58099900           
   x
guest_amd64_toIR.c                         24067          0x58099900       1
guest_amd64_toIR.c                         13368          0x58099917           
   x
guest_amd64_toIR.c                         13368          0x5809991e        
guest_amd64_toIR.c                         14968          0x5809991e       1   
   x
guest_amd64_toIR.c                         13368          0x58099926           
   x
guest_amd64_toIR.c                         13368          0x5809992b        
guest_amd64_toIR.c                         13372          0x5809992b       1   
   x
guest_amd64_toIR.c                         13372          0x58099943        
guest_amd64_toIR.c                      23270919          0x5809994d           
   x
guest_amd64_toIR.c                      23328953          0x58099955           
   x
guest_amd64_toIR.c                      23404415          0x5809995e           
   x
guest_amd64_toIR.c                         15989          0x5809996b           
   x
guest_amd64_toIR.c                         15989          0x58099970        
guest_amd64_toIR.c                         15055          0x58099970       1   
   x
guest_amd64_toIR.c                          1254          0x5809997d           
   x
guest_amd64_toIR.c                          1253          0x58099980           
   x
guest_amd64_toIR.c                           226          0x58099982           
   x
guest_amd64_toIR.c                           226          0x58099987        
guest_amd64_toIR.c                         14316          0x58099987       1   
   x
guest_amd64_toIR.c                           226          0x5809998c           
   x
guest_amd64_toIR.c                           226          0x58099993        
guest_amd64_toIR.c                         14316          0x58099993       1   
   x
guest_amd64_toIR.c                         14315          0x58099996           
   x
guest_amd64_toIR.c                         14316          0x58099999           
   x
guest_amd64_toIR.c                           226          0x5809999c           
   x
guest_amd64_toIR.c                           226          0x580999a0        
guest_amd64_toIR.c                         14316          0x580999a0       1   
   x
guest_amd64_toIR.c                         14316          0x580999a2        
guest_amd64_toIR.c                           226          0x580999a2       1   
   x
guest_amd64_toIR.c                           226          0x580999a7        
guest_amd64_toIR.c                           226          0x580999b4        
guest_amd64_toIR.c                           226          0x580999c5        
guest_amd64_toIR.c                           226          0x580999ca        
guest_amd64_toIR.c                           226          0x580999d7        
guest_amd64_toIR.c                           226          0x580999dc        
guest_amd64_toIR.c                          5664          0x580999dc       1   
   x
guest_amd64_toIR.c                           226          0x580999e0           
   x
guest_amd64_toIR.c                           226          0x580999e4        
guest_amd64_toIR.c                          5664          0x580999e4       1   
   x


More information about the Gcc-bugs mailing list