[committed,MSP430] Add "cleanup-saved-temps" directive to gcc.target/msp430/pr80993.c

Message ID 20190805151309.1ee4ac2a@jozef-kubuntu
State New
Headers show
Series
  • [committed,MSP430] Add "cleanup-saved-temps" directive to gcc.target/msp430/pr80993.c
Related show

Commit Message

Jozef Lawrynowicz Aug. 5, 2019, 2:13 p.m.
This fixes linker errors about different memory models in object files
when the large/small memory models are tested one after the other in the same
build directory, by cleaning up the temporary LTO files required to be
generated for this test.

Applied on trunk.

Patch

From a64c89e01c11b167e7113a49914eac79f4c1044c Mon Sep 17 00:00:00 2001
From: jozefl <jozefl@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Mon, 5 Aug 2019 14:02:35 +0000
Subject: [PATCH] 2019-08-05  Jozef Lawrynowicz  <jozef.l@mittosystems.com>

	* gcc.target/msp430/pr80993.c: Add cleanup-saved-temps to final
	actions.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@274116 138bc75d-0d04-0410-961f-82ee72b054a4
---
 gcc/testsuite/ChangeLog                   | 5 +++++
 gcc/testsuite/gcc.target/msp430/pr80993.c | 1 +
 2 files changed, 6 insertions(+)

diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index cff940e0b28..ca99dc67f1b 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@ 
+2019-08-05  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
+
+	* gcc.target/msp430/pr80993.c: Add cleanup-saved-temps to final
+	actions.
+
 2019-08-05  Martin Liska  <mliska@suse.cz>
 
 	PR c++/91334
diff --git a/gcc/testsuite/gcc.target/msp430/pr80993.c b/gcc/testsuite/gcc.target/msp430/pr80993.c
index 4da5cf95532..6cea2b85434 100644
--- a/gcc/testsuite/gcc.target/msp430/pr80993.c
+++ b/gcc/testsuite/gcc.target/msp430/pr80993.c
@@ -1,6 +1,7 @@ 
 /* { dg-do link } */
 /* { dg-options "--save-temps -msim -flto -Os" } */
 /* { dg-final { scan-file "pr80993.exe.ltrans0.s" no_ref_handler } } */
+/* { dg-final { cleanup-saved-temps } } */
 
 void __attribute__((interrupt)) no_ref_handler (void)
 {
-- 
2.17.1