This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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]

Re: HPUX testsuite tweakage


 > +# 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]