https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97989

--- Comment #21 from Stas Sergeev <stsp at users dot sourceforge.net> ---
(In reply to Jakub Jelinek from comment #19)
> It is just that clang doesn't support -g3 at all, as can be seen by clang
> not producing any .debug_macinfo nor .debug_macro sections.

So with -fdebug-macro it actually produces
.debug_macinfo, but still no .debug_macro.
Yet gdb is quite happy with that and can see
the macros.

So...
Why "clang -g3 -fdebug-macro -E -Wp,-P - </dev/null"
doesn't produce anything on screen??
So it works perfectly!
But I don't know how. :)

Reply via email to