* [committed] [PATCH][GCC] Fix PR88046 testcase.
@ 2019-01-16 17:51 Tamar Christina
0 siblings, 0 replies; only message in thread
From: Tamar Christina @ 2019-01-16 17:51 UTC (permalink / raw)
To: gcc-patches; +Cc: nd
[-- Attachment #1: Type: text/plain, Size: 509 bytes --]
Hi All,
The test tries to link with -shared and compile with -fPIC
without checking to see if the target actually supports this.
This patch adds effective-target requirements for fpic and shared.
Regtested on aarch64-none-elf and x86_64-unknown-linux-gnu and no
issues.
Committed under the GCC obvious rules.
Thanks,
Tamar
gcc/testsuite/ChangeLog:
2019-01-16 Tamar Christina <tamar.christina@arm.com>
PR debug/88046
* g++.dg/lto/pr88046_0.C: Check for shared and fPIC.
--
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: rb10592.patch --]
[-- Type: text/x-diff; name="rb10592.patch", Size: 511 bytes --]
diff --git a/gcc/testsuite/g++.dg/lto/pr88046_0.C b/gcc/testsuite/g++.dg/lto/pr88046_0.C
index a254dd03586b8f79529e318908216993bcd62ff8..734ce86e9b8fb562918bc13bf3db7269362e3bf8 100644
--- a/gcc/testsuite/g++.dg/lto/pr88046_0.C
+++ b/gcc/testsuite/g++.dg/lto/pr88046_0.C
@@ -1,5 +1,7 @@
// { dg-lto-do link }
// { dg-lto-options { { -O2 -fPIC -flto } } }
+// { dg-require-effective-target shared }
+// { dg-require-effective-target fpic }
// { dg-extra-ld-options "-shared -g" }
class a {};
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-01-16 17:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-16 17:51 [committed] [PATCH][GCC] Fix PR88046 testcase Tamar Christina
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).