This is the mail archive of the gcc@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]

Re: check_cxa_atexit_available


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
mark@codesourcery.com
(650) 331-3385 x713


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