[Bug debug/97344] New: aarch64 tls debuginfo missing location info

2020-10-08 Thread scox at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97344

Bug ID: 97344
   Summary: aarch64 tls debuginfo missing location info
   Product: gcc
   Version: 10.2.1
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: debug
  Assignee: unassigned at gcc dot gnu.org
  Reporter: scox at redhat dot com
  Target Milestone: ---

[Bug debug/97344] aarch64 tls debuginfo missing location info

2020-10-08 Thread scox at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97344

--- Comment #1 from Stan Cox  ---
Created attachment 49335
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49335&action=edit
tls test program

[Bug debug/97344] aarch64 tls debuginfo missing location info

2020-10-08 Thread scox at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97344

--- Comment #2 from Stan Cox  ---
tls variables on aarch64 lack location info:
[6e]variable abbrev: 5
 name (strp) "rage"
 decl_file(data1) tlsdwarf.c (1)
 decl_line(data1) 3
 decl_column  (data1) 24
 type (ref4) [2d]
 external (flag_present) yes

unlike e.g. ppcle
[   10e]variable abbrev: 12
 name (strp) "rage"
 decl_file(data1) get_fs.c (1)
 decl_line(data1) 23
 decl_column  (data1) 24
 type (ref4) [39]
 external (flag_present) yes
 location (exprloc) 
  [ 0] const8u 0
  [ 9] GNU_push_tls_address