This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: HPUX testsuite tweakage
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- To: zack at codesourcery dot com
- Cc: gcc-patches at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org, mitchell at codesourcery dot com
- Date: Fri, 9 Apr 2004 13:41:02 -0400 (EDT)
- Subject: Re: HPUX testsuite tweakage
- References: <877jwpxefx.fsf@egil.codesourcery.com>
> +# Return true if named sections are supported on this target.
> +proc check_named_sections_available { } {
> + global named_sections_available_saved
> + global tool
> +
> + if [info exists named_sections_available_saved] {
> + verbose "check_named_sections_available returning saved $named_sections_available_saved" 2
> + } else {
> + verbose "check_named_sections_available compiling testfile" 2
> + set f [open "tmp.c" "w"]
> + # Compile a small test program.
> + puts $f "int __attribute__ ((section(\"whatever\"))) foo;\n"
> + close $f
> + set lines [${tool}_target_compile "tmp.c" "tmp.o" object ""]
> + file delete "tmp.c"
> +
> + if [string match "" $lines] then {
> + # No error messages, everything is OK.
> + set named_sections_available_saved 1
> + } else {
> + set named_sections_available_saved 0
> + }
> +
> + verbose "check_named_sections_available returning $named_sections_available_saved" 2
> + }
Nice, this may help fix some spurious named section failures on irix6.
In addition to parse/attr-ctor1.C, I think gcc.dg/compat/sdata would
benefit too. Can you incorporate this update in there also? See:
http://gcc.gnu.org/ml/gcc-testresults/2004-04/msg00412.html
However as you can see in the above test report, I run multiple passes
and I only get these failures with the o32 ABI. The other ABIs run
the named section tests just fine.
So I'm wondering whether the cache variable
named_sections_available_saved is saved across multi-pass runs. I
wouldn't want to cache the result in that case.
(Testing your patch on irix will take a long time, so I thought I'd
ask first in case you or someone with more powerful tcl-fu knows.)
--Kaveh
--
Kaveh R. Ghazi ghazi@caip.rutgers.edu