From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1481 invoked by alias); 11 Feb 2015 11:42:16 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 1405 invoked by uid 48); 11 Feb 2015 11:42:13 -0000 From: "conchur at web dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/65015] LTO produces randomly ordered debug information Date: Wed, 11 Feb 2015 11:42:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Version: 4.9.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: conchur at web dot de X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-02/txt/msg01158.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D65015 --- Comment #2 from conchur at web dot de --- Created attachment 34724 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D34724&action=3Dedit Mini Testcases Current results (the -COMPILE things are just out of curiosity): SIMPLE-COMPILE: OK SIMPLE-LINK: OK LTO-COMPILE: FAIL LTO-LINK: FAIL LTO-OBJDUMP: OK LTO-EXTERNAL-DEBUG: FAIL LTO-STRIP-LINK: FAIL LTO-STRIP-EXTERNAL-DEBUG: FAIL LTO-BUILDID-LINK: FAIL LTO-SAVETEMPS-LINK: OK LTO-SAVETEMPS-EXTERNAL-DEBUG: OK The -save-temps was a suggestion by J=C3=A9r=C3=A9my Bobbio and shows that = there is still a problem with the random file names when trying to use LTO to create reproducible builds. At least for the simple one file case >>From gcc-bugs-return-476824-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 11 11:42:12 2015 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 1281 invoked by alias); 11 Feb 2015 11:42:12 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 1232 invoked by uid 48); 11 Feb 2015 11:42:08 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/65015] LTO produces randomly ordered debug information Date: Wed, 11 Feb 2015 11:42:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Version: 4.9.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-02/txt/msg01157.txt.bz2 Content-length: 1400 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65015 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2015-02-11 Ever confirmed|0 |1 --- Comment #1 from Richard Biener --- 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".