On 9/29/2010 3:53 PM, Richard Henderson wrote:

> The test program in target-supports.exp is broken, since
> it doesn't preclude the use of cleanups instead.  Indeed,
> the init/cleanup3.C seems to be essentially identical to
> the target-supports test.

Why isn't the test program in target-supports.exp just a link-time test
that __cxa_atexit exists?  In other words:

  void main () {
     __cxa_atexit (...);
  }

Is the idea that we want to be able to run the tests with
-fno-use-cxa-atexit in the command-line options?  I guess we have to
worry about that.  In that case, yes, I guess an assembly-scan test in
target-supports.exp is the best that we can do.

-- 
Mark Mitchell
CodeSourcery
m...@codesourcery.com
(650) 331-3385 x713

Reply via email to