This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug lto/65015] LTO produces randomly ordered debug information


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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2015-02-11
     Ever confirmed|0                           |1

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed.

int main()
{
  return 0;
}

gcc t.c -g -flto

produces

 <0><166>: Abbrev Number: 1 (DW_TAG_compile_unit)
    <167>   DW_AT_producer    : (indirect string, offset: 0x181): GNU GIMPLE
5.0
.0 20150128 (experimental) [trunk revision 220205] -mtune=generic -march=x86-64 
-mtune=generic -march=x86-64 -g -fmath-errno -fsigned-zeros -ftrapping-math
-fno
-trapv -fno-strict-overflow -fno-openmp -fno-openacc
-fltrans-output-list=/tmp/c
cmHsiT8.ltrans.out -fltrans     
    <16b>   DW_AT_language    : 12      (ANSI C99)
    <16c>   DW_AT_name        : (indirect string, offset: 0x29b):
/tmp/ccmHsiT8.ltrans0.o       

which has both tmpfile names in DW_AT_producer and DW_AT_name.  I have a fix
for the first issue, but I'm not sure what to use for DW_AT_name.  For
-flto-partition=none we get sth like /tmp/ccxWIAkj.o while for regular
LTO we get /tmp/cctZHL25.ltrans0.o.  I can use simple plain "WPA" and "LTRANS".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]