Re: [PATCH] Linux Kernel Markers 0.20 for 2.6.17
Jeremy Fitzhardinge <[email protected]>
| Newsgroups | gmane.linux.kernel,gmane.linux.kernel.tracing,gmane.linux.systemtap |
|---|---|
| Message-ID | <[email protected]> |
Atsushi Nemoto wrote:
> When I compiled this with gcc 4.1.1 (mips), ".markers" section was
> empty.
>
> I suppose "unused" attribute is not suitable for modern gcc. Maybe
> __attribute_used__ should be used?
>
It should be, but it still won't work. There's a gcc bug which ignores
the attribute for local-scope static variables:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29299
J