From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7656 invoked by alias); 19 Feb 2015 09:58:04 -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 7064 invoked by uid 48); 19 Feb 2015 09:58:00 -0000 From: "vries at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug testsuite/65116] New: additional_sources not defined anymore during dg-final Date: Thu, 19 Feb 2015 09:58:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: testsuite X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: trivial X-Bugzilla-Who: vries at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED 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_id short_desc product version bug_status bug_severity priority component assigned_to reporter Message-ID: 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/msg02091.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65116 Bug ID: 65116 Summary: additional_sources not defined anymore during dg-final Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: trivial Priority: P3 Component: testsuite Assignee: unassigned at gcc dot gnu.org Reporter: vries at gcc dot gnu.org When running vect-simd-clone-10.c, a file vect-simd-clone-10a.c.126t.vect is left in the test directory. The testcase lists vect-simd-clone-10a.c as addditional source: ... /* { dg-additional-sources vect-simd-clone-10a.c } */ ... Then the test-case cleans up the respective tree-dump: ... /* { dg-final { cleanup-tree-dump "vect" } } */ ... The cleanup-tree-dump calls cleanup-dump, which intends to take additional_sources into account. However, the global additional_sources declaration is missing, so the exists additional_sources will always return false. And if we add the global additional_sources declaration, it still fails, because additional_sources is empty. It has been reset by dg-additional-files-options, which is called by gcc_target_compile, which is called by gcc-dg-test-1, which is called by gcc-dg-test, which is called by dg-test as ${tool}-dg-test. dg-test does the the dg-final-code processing after the ${tool}-dg-test so at that point additional_sources is empty.