r206412 - Fix check failure on hexagon targets.

Diego Novillo dnovillo at google.com
Thu Apr 17 06:40:17 PDT 2014


On Thu, Apr 17, 2014 at 5:12 AM, İsmail Dönmez <ismail at donmez.ws> wrote:
>
> On Thu, Apr 17, 2014 at 12:03 PM, İsmail Dönmez <ismail at donmez.ws> wrote:
>>
>>  -c
>>
/home/abuild/rpmbuild/BUILD/llvm/tools/clang/test/Frontend/optimization-remark.c
>> -Rpass=inline -O0 -gline-tables-only -o /dev/null
>
>
> And here is the backtrace
>
> #0  operator[] (this=<optimized out>, __n=<optimized out>) at
> ../lib/IR/LLVMContextImpl.h:226
> #1  getScopeAndInlinedAt (Ctx=..., this=<optimized out>, Scope=<optimized
> out>, IA=<optimized out>, Ctx=...)
>     at ../lib/IR/DebugLoc.cpp:61
> #2  llvm::DebugLoc::getAsMDNode (this=0xf7ba6544, Ctx=...) at
> ../lib/IR/DebugLoc.cpp:124
> #3  0xf7c462b5 in llvm::DiagnosticInfoOptimizationRemark::getLocation
> (this=<optimized out>, Filename=0xffffb9f0,
>     Line=0xffffb9ec, Column=0xffffb9e8) at ../lib/IR/DiagnosticInfo.cpp:77
> #4  0xf6354595 in clang::BackendConsumer::OptimizationRemarkHandler
> (this=<optimized out>, D=...)

Thanks. This may mean that we found debug metadata in the IR
(isLocationAvailable returned true) but are failing to retrieve the md
node. Regardless, I'm unable to reproduce the failure.  I've built an i386
target and tried it with the exact same flags:

$ Release/bin/clang -cc1 -triple i386-suse-linux -emit-obj -mrelax-all
-disable-free -disable-llvm-verifier -main-file-name optimization-remark.c
-mrelocation-model static -mdisable-fp-elim -fmath-errno -masm-verbose
-mconstructor-aliases -fuse-init-array -target-cpu pentium4
-gline-tables-only -coverage-file /dev/null -resource-dir
Release/lib/clang/3.5.0 -internal-isystem /usr/local/include
-internal-isystem Release/lib/clang/3.5.0/include
 -internal-externc-isystem /include -internal-externc-isystem /usr/include
-O0 -fdebug-compilation-dir $HOME/llvm/tmp  -ferror-limit 19
-fmessage-length 127 -mstackrealign -Rpass=inline -fobjc-runtime=gcc
-fdiagnostics-show-option -fcolor-diagnostics -vectorize-slp -o /dev/null
-x c $HOME/llvm/llvm/tools/clang/test/Frontend/optimization-remark.c
/home/dnovillo/llvm/llvm/tools/clang/test/Frontend/optimization-remark.c:14:1:
remark: foo inlined into bar
      [-Rpass]
int bar(int j) { return foo(j, j - 2); }
^

Could you help me reproduce this? I need to know exactly how you built
clang.


Thanks. Diego.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140417/27e5e223/attachment.html>


More information about the cfe-commits mailing list