mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-26 22:01:34 +08:00
Fix comdat_group check with Solaris as
* lib/target-supports.exp (check_effective_target_comdat_group): Allow for Solaris as comdat syntax. * g++.dg/debug/dwarf2/nested-4.C: Xfail scan-assembler-times on Solaris with comdat_group support and as. From-SVN: r257272
This commit is contained in:
parent
2be4dfcbc1
commit
02b7dbb9e4
@ -1,3 +1,11 @@
|
|||||||
|
2018-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
|
||||||
|
|
||||||
|
* lib/target-supports.exp (check_effective_target_comdat_group):
|
||||||
|
Allow for Solaris as comdat syntax.
|
||||||
|
|
||||||
|
* g++.dg/debug/dwarf2/nested-4.C: Xfail scan-assembler-times on
|
||||||
|
Solaris with comdat_group support and as.
|
||||||
|
|
||||||
2018-01-31 Marek Polacek <polacek@redhat.com>
|
2018-01-31 Marek Polacek <polacek@redhat.com>
|
||||||
|
|
||||||
PR c/81779
|
PR c/81779
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
// PR debug/53235
|
// PR debug/53235
|
||||||
// { dg-options "-gdwarf-4 -fdebug-types-section" }
|
// { dg-options "-gdwarf-4 -fdebug-types-section" }
|
||||||
// { dg-final { scan-assembler-times "debug_types" 2 { xfail { powerpc-ibm-aix* || { *-*-darwin* || { *-*-solaris2.1[1-9]* && { ! gas } } } } } } }
|
// { dg-final { scan-assembler-times "debug_types" 2 { xfail { powerpc-ibm-aix* || { *-*-darwin* || { *-*-solaris2.* && { comdat_group && { ! gas } } } } } } } }
|
||||||
|
|
||||||
namespace E {
|
namespace E {
|
||||||
class O {};
|
class O {};
|
||||||
|
@ -8975,7 +8975,7 @@ proc check_effective_target_tls_get_addr_via_got { } {
|
|||||||
# Return 1 if the target uses comdat groups.
|
# Return 1 if the target uses comdat groups.
|
||||||
|
|
||||||
proc check_effective_target_comdat_group {} {
|
proc check_effective_target_comdat_group {} {
|
||||||
return [check_no_messages_and_pattern comdat_group "\.section\[^\n\r]*,comdat" assembly {
|
return [check_no_messages_and_pattern comdat_group "\.section\[^\n\r]*,comdat|\.group\[^\n\r]*,#comdat" assembly {
|
||||||
// C++
|
// C++
|
||||||
inline int foo () { return 1; }
|
inline int foo () { return 1; }
|
||||||
int (*fn) () = foo;
|
int (*fn) () = foo;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user