This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
The tool needs to know what functions to ignore.
If you want that information to propogate from the source code, you
should do it by adding some annotation to the debug info which says
that the inline function is uninteresting, rather than removing debug
info. This way, tools _can_ step into the function if they are asked
to by the user.
And one way to annotate and propagate this info is to use special attribute. Any other alternative ?
Yes. My point is that the attribute should ADD to the debug info, not SUBTRACT.
In the same way as it will solve GDB's. Once you have inlining data,
you can choose to ignore specific inline functions as not interesting -
the difference is that the consumer can now make this choice, instead
of the producer. Then you credit the samples taken in those inline
functions to their call sites using DW_AT_call_line.
- End user programmer did not write these inline functions. They are supplied by GCC.
- End user programmer does not see them as inline functions.
- Consumer of this info, CHUD tools, does not know that this is supplied by GCC and not by end user programmer.
Since, GCC is supplying these intrinsics, it should supply them in such a way that they are not represented as small functions. Note that, these headers already uses inlining related attributes (and not leave it on end user to set appropriate optimization flags) to accomplish this in some sense.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |