You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't know of anyone planning to do this, but it is generally only produced when using "-g3" since it bloats generated debug information significantly.
Debug info macros is already support in dwarf4 format starting from revision 294637.
In order to enable debug info macros you can use -fdebug-macro flag with -g.
In fact, this flag will work with all debug info flags other than -g0.
If we want to be compatible with GCC, we need to enable debug info macros when using -g3.
To do that, we need to map "-g3" to "-cc1 -debug-info-macro -debug-info-kind=standalone".
Extended Description
Consider the test:
$ cat test2.c
#define ADD1(x) (x+1)
int n = 0;
int main(int argc) {
int n = ADD1(argc);
return n;
}
Macro ADD1 is not mentioned in debug info for test2.c. Are there any plans on adding debug info for macros in clang?
Compilation line: clang -g -O0 test2.c -emit-llvm -o test2.bc -S
Olga Chupina
Software Engineer
Intel Compiler Team
Intel Corp.
The text was updated successfully, but these errors were encountered: