Re: gcc and the phantom alloca()?
Re: gcc and the phantom alloca()?
- Subject: Re: gcc and the phantom alloca()?
- From: John Lunt <email@hidden>
- Date: Sat, 10 Jun 2006 17:58:14 +0100
I believe gcc uses alloca(.) for stack variables of variable size.
For example in C if you use
// gnu C extension, or vanilla C++.
int n = foo();
double x[n]; // implicitly allocated using alloca(.)
John.
On 9 Jun 2006, at 23:54, David Alger wrote:
Try preprocessing the file via the contextual menu and then look at
the results. This will show you anything that is being defined in.
David Alger
Family Friendly Software, LLC
http://www.familyfriendlysoftware.com
On Jun 9, 2006, at 1:16 PM, Tom Harrington wrote:
I have a function I'd like to inline, but gcc complains that the
function "can never be inlined because it uses alloca (override using
the always_inline attribute)".
Only... it doesn't use alloca, anywhere. Where would gcc be getting
this from, and what can I do about it? I tried "gcc -E -dD" on the
source file in the hope of rooting out something getting #defined in
or something, but I didn't find any alloca there.
The source file in question is a ".m", with the inline defined in an
imported header. The function in question has a bunch of CF calls.
--
Tom Harrington
email@hidden
AIM: atomicbird1
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40millertel.net
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40roachend.demon.co.uk
This email sent to email@hidden
_______________________________________________
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