This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
A while back I brought the check_cxa_atexit_available and dg-require-cxa-atexit tests over from the libstdc++-v3 subdirectory. I was going to use dg-require-cxa-atexit to not run some C++ tests on machines that don't have __cxa_atexit but I got a request to XFAIL them rather than not run them. To do this I would like to create a cxa_atexit effective keyword (by calling the existing check_cxa_atexit_available routine) and use this to XFAIL tests by using: // { dg-do run { xfail { ! { cxa_atexit } } } } in the actual tests. I will send the test changes seperately, this patch is just for the testsuite infrastructure change needed to implement this test. Tested on IA64 HP-UX and Linux. Ok to checkin? Steve Ellcey sje@cup.hp.com 2006-06-01 Steve Ellcey <sje@cup.hp.com> * lib/target-supports.exp (is-effective-target): Add cxa_atexit. (is-effective-target-keyword): Ditto. Index: gcc/testsuite/lib/target-supports.exp =================================================================== --- gcc/testsuite/lib/target-supports.exp (revision 114291) +++ gcc/testsuite/lib/target-supports.exp (working copy) @@ -1749,6 +1749,7 @@ proc is-effective-target { arg } { "vmx_hw" { set selected [check_vmx_hw_available] } "named_sections" { set selected [check_named_sections_available] } "gc_sections" { set selected [check_gc_sections_available] } + "cxa_atexit" { set selected [check_cxa_atexit_available] } default { error "unknown effective target keyword `$arg'" } } } @@ -1767,6 +1768,7 @@ proc is-effective-target-keyword { arg } "vmx_hw" { return 1 } "named_sections" { return 1 } "gc_sections" { return 1 } + "cxa_atexit" { return 1 } default { return 0 } } }
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |