problem with operator new
problem with operator new
- Subject: problem with operator new
- From: Chris Bergmann <email@hidden>
- Date: Wed, 3 May 2006 18:29:11 +1000
Hi all, I’m having a problem with an overridden global-scope operator new on the intel macs. It appears that a different link order is used on the intel macs (both natively and in rosetta) than what is used on the powerpc. The result of this is that the OS libraries are sometimes using our overridden operator new, causing a crash when the version of ‘new’ and ‘delete’ used don’t match. I can almost work around this by making our operators hidden inlines, however in some cases the compiler chooses not to use inline versions, even with the always_inline attribute on (i assume the issue here is inlining depth.) This reverses the problem – the OS libraries are fine but sometimes our code will use the wrong operators. I’ve also tried supplying both inline and out-of-line versions of the operators manually, however gcc doesn’t allow me to use visibility attributes with the out-of-line operators. This brings me back to the original problem. To reiterate, i’m not seeing any evidence of this problem on the powerpc version of the app when running on a powerpc. Any advice? chris |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden