[LLVMdev] difference in function prologue generated with clang and gcc

anonymous aspiringllvmdeveloper at gmail.com
Fri Feb 24 04:36:54 PST 2012


Hello

I am trying to run following dejaGNU testcases on Clang compiled output.

/* Inlined inline function must have abstract DIE  */
/* { dg-do compile } */
/* { dg-options "-O2 -gdwarf-2 -dA -fpreprocessed" } */
/* { dg-final { scan-assembler "3.*DW_AT_inline" } } */
#1 "test.h"
inline int t()
{
}
int q()
{
  t();
}

The testcase fails because, DW_AT_inline is not present in assembly output.
Could anyone let me know why DW_AT_inline is not emitted ?
I am aware that Clang uses C99 mode by default.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120224/209abd96/attachment.html>


More information about the llvm-dev mailing list