+2017-03-09 Toma Tabacu <toma.tabacu@imgtec.com>
+
+ * doc/sourcebuild.texi (Effective-Target Keywords, Other attributes):
+ Document rdynamic.
+
2017-03-09 Vladimir Makarov <vmakarov@redhat.com>
PR rtl-optimization/79949
@item pie
Target supports @option{-pie}, @option{-fpie} and @option{-fPIE}.
+@item rdynamic
+Target supports @option{-rdynamic}.
+
@item section_anchors
Target supports section anchors.
+2017-03-09 Toma Tabacu <toma.tabacu@imgtec.com>
+
+ * g++.dg/lto/pr69589_0.C: Add dg-require-effective-target for
+ rdynamic. Remove dg-skip-if for targets which don't support -rdynamic.
+ * lib/target-supports.exp (check_effective_target_rdynamic):
+ New proc.
+
2017-03-09 Richard Biener <rguenther@suse.de>
PR middle-end/79971
// { dg-lto-do link }
// { dg-lto-options "-O2 -rdynamic" }
// { dg-extra-ld-options "-r -nostdlib" }
-// { dg-skip-if "Skip targets without -rdynamic support" { arm*-none-eabi aarch64*-*-elf nios2-*-elf } { "*" } { "" } }
+// { dg-require-effective-target rdynamic }
#pragma GCC visibility push(hidden)
struct A { int &operator[] (long); };
} "-static"]
}
+# Return 1 if we can use the -rdynamic option, 0 otherwise.
+
+proc check_effective_target_rdynamic { } {
+ return [check_no_compiler_messages rdynamic executable {
+ int main() { return 0; }
+ } "-rdynamic"]
+}
+
# Return 1 if cilk-plus is supported by the target, 0 otherwise.
proc check_effective_target_cilkplus { } {