[llvm-commits] [llvm-gcc-4.2] r65465 - /llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp

Devang Patel dpatel at apple.com
Wed Feb 25 13:57:39 PST 2009


On Feb 25, 2009, at 11:41 AM, Bill Wendling wrote:

> Devang,
>
> I can't do a build of llvm-gcc with this patch. Could you check it  
> out please?

Your system g++-4.0 compiler is crashing while compiling these five  
lines of innocent code. Fix it :)

I simplified the code. rev. 65475. See if it helps.
-
Devang
>
>
> -bw
>
> On Wed, Feb 25, 2009 at 11:22 AM, Devang Patel <dpatel at apple.com>  
> wrote:
>> Author: dpatel
>> Date: Wed Feb 25 13:22:30 2009
>> New Revision: 65465
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=65465&view=rev
>> Log:
>> Use original name if is available.
>> Thanks Dale!
>>
>> Modified:
>>    llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp
>>
>> Modified: llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp
>> URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp?rev=65465&r1=65464&r2=65465&view=diff
>>
>> = 
>> = 
>> = 
>> = 
>> = 
>> = 
>> = 
>> = 
>> = 
>> =====================================================================
>> --- llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp (original)
>> +++ llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp Wed Feb 25 13:22:30 2009
>> @@ -343,7 +343,12 @@
>>   expanded_location Loc =  
>> expand_location(DECL_SOURCE_LOCATION(decl));
>>   DIType TyD = getOrCreateType(TREE_TYPE(decl));
>>   DebugFactory.CreateGlobalVariable(getOrCreateCompileUnit(Loc.file),
>> -                                    GV->getNameStr(), GV- 
>> >getNameStr(),
>> +                                    GV->getNameStr(),
>> +                                    DECL_NAME(decl) ?
>> +                                     
>> (IDENTIFIER_POINTER(DECL_NAME(decl)) ?
>> +                                      
>> IDENTIFIER_POINTER(DECL_NAME(decl)) :
>> +                                     GV->getNameStr()) :
>> +                                    GV->getNameStr(),
>>                                     getLinkageName(decl),
>>                                      
>> getOrCreateCompileUnit(Loc.file), Loc.line,
>>                                     TyD, GV->hasInternalLinkage(),
>>
>>
>> _______________________________________________
>> 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

-
Devang






More information about the llvm-commits mailing list