Re: ld: warning: -mlong-branch no longer needed
Re: ld: warning: -mlong-branch no longer needed
- Subject: Re: ld: warning: -mlong-branch no longer needed
- From: Fritz Anderson <email@hidden>
- Date: Fri, 19 Feb 2010 21:43:40 -0600
[Originally sent to Lyndsey only; reposting to the list.]
Can you clarify?
You say you removed -mlong-branch. My problem is that I can't see where it's set for me to remove it. The command line doesn't have the switch, and the build settings don't turn on the corresponding variable. Also weird is that it's PPC-only; i386 is fine.
The warning seems to be about how crt1.o in the 10.4 SDK was built. I'd expect SDK libraries to be well-behaved, so I worry something is wrong with my installation.
— F
On 19 Feb 2010, at 11:10 AM, Lyndsey Ferguson wrote:
> It shouldn't be anything to worry about. We also had the -mlong-branch and have removed it as we have a policy of 0 compiler warnings. I'm sure you're fine if you want to ignore it.
>
> On Fri, Feb 19, 2010 at 11:37 AM, Fritz Anderson <email@hidden> wrote:
>> Xcode 3.2.1, target 10.4, SDK 10.4, compiler gcc 4.0, compiling for PPC and i386.
>>
>> Is the following warning for the PPC branch of my build anything to worry about?
>>
>> ld: warning: object file compiled with -mlong-branch which is no longer needed. To remove this warning, recompile without -mlong-branch: /Developer/SDKs/MacOSX10.4u.sdk/usr/lib/crt1.o
>>
>> Dragging the target settings into a text file shows GCC_USE_INDIRECT_FUNCTION_CALLS = NO. The problem ld invocation does not include the string "-mlong-branch".
>>
>> The project itself goes back to about 2005, if that means anything.
>
_______________________________________________
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