[llvm-commits] [llvm-gcc-4.2] r67712 - in /llvm-gcc-4.2/trunk/gcc/config: arm/darwin.h i386/darwin.h rs6000/darwin.h

Devang Patel dpatel at apple.com
Wed Mar 25 16:55:03 PDT 2009


ok. done.
-
Devang
On Mar 25, 2009, at 4:34 PM, Dan Gohman wrote:

> Hi Devang,
>
> Can you add a brief comment somewhere explaining why
> this is needed? It doesn't have to go into gruesome detail,
> just something simple like "on Darwin, debug info is
> not linked into executables, so -g with LTO will require
> special support" is enough for me.
>
> Thanks,
>
> Dan
>
> On Mar 25, 2009, at 3:32 PM, Devang Patel wrote:
>
>> Author: dpatel
>> Date: Wed Mar 25 17:32:35 2009
>> New Revision: 67712
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=67712&view=rev
>> Log:
>> Ignore -g* in LTO mode.
>>
>> Modified:
>>   llvm-gcc-4.2/trunk/gcc/config/arm/darwin.h
>>   llvm-gcc-4.2/trunk/gcc/config/i386/darwin.h
>>   llvm-gcc-4.2/trunk/gcc/config/rs6000/darwin.h
>>
>> Modified: llvm-gcc-4.2/trunk/gcc/config/arm/darwin.h
>> URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/config/arm/darwin.h?rev=67712&r1=67711&r2=67712&view=diff
>>
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =====================================================================
>> --- llvm-gcc-4.2/trunk/gcc/config/arm/darwin.h (original)
>> +++ llvm-gcc-4.2/trunk/gcc/config/arm/darwin.h Wed Mar 25 17:32:35
>> 2009
>> @@ -36,6 +36,8 @@
>> %{!fbuiltin-strcpy:-fno-builtin-strcpy} \
>> %<fbuiltin-strcat \
>> %<fbuiltin-strcpy \
>> +"/* LLVM LOCAL ignore -g in LTO mode */"\
>> +%{O4|flto: %<g* } \
>> %<pg"
>>
>> #undef LIB_SPEC
>>
>> Modified: llvm-gcc-4.2/trunk/gcc/config/i386/darwin.h
>> URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/config/i386/darwin.h?rev=67712&r1=67711&r2=67712&view=diff
>>
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =====================================================================
>> --- llvm-gcc-4.2/trunk/gcc/config/i386/darwin.h (original)
>> +++ llvm-gcc-4.2/trunk/gcc/config/i386/darwin.h Wed Mar 25 17:32:35
>> 2009
>> @@ -101,6 +101,8 @@
>>  %{!mmacosx-version-min=*: %{!miphoneos-version-min=*: %
>> (darwin_cc1_minversion)}} \
>>  "/* APPLE LOCAL ignore -mcpu=G4 -mcpu=G5 */"\
>>  %<faltivec %<mno-fused-madd %<mlong-branch %<mlongcall %<mcpu=G4
>> %<mcpu=G5 \
>> +  "/* LLVM LOCAL ignore -g in LTO mode */"\
>> +  %{O4|flto: %<g* } \
>>  %{g: %{!fno-eliminate-unused-debug-symbols: -feliminate-unused-
>> debug-symbols }}"
>>
>> /* APPLE LOCAL AltiVec */
>>
>> Modified: llvm-gcc-4.2/trunk/gcc/config/rs6000/darwin.h
>> URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/config/rs6000/darwin.h?rev=67712&r1=67711&r2=67712&view=diff
>>
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =====================================================================
>> --- llvm-gcc-4.2/trunk/gcc/config/rs6000/darwin.h (original)
>> +++ llvm-gcc-4.2/trunk/gcc/config/rs6000/darwin.h Wed Mar 25
>> 17:32:35 2009
>> @@ -114,6 +114,8 @@
>>  "/* APPLE LOCAL ARM 5683689 */"\
>>  %{!mmacosx-version-min=*: %{!miphoneos-version-min=*: %
>> (darwin_cc1_minversion)}} \
>>  "/* APPLE LOCAL -fast or -fastf or -fastcp */"\
>> +  "/* LLVM LOCAL ignore -g in LTO mode */"\
>> +  %{O4|flto: %<g* } \
>>  %{!mkernel:%{!static:%{!fast:%{!fastf:%{!fastcp:%{!mdynamic-no-
>> pic:-fPIC}}}}}}"
>>
>> #define DARWIN_ARCH_SPEC "%{m64:ppc64;:ppc}"
>>
>>
>> _______________________________________________
>> llvm-commits mailing list
>> llvm-commits at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits




More information about the llvm-commits mailing list