[PATCH] Fix PR49718 : allow no_instrument_function attribute in class member definition/declaration
Laurent Alfonsi
laurent.alfonsi@st.com
Wed Jan 8 09:05:00 GMT 2014
All,
I was looking at PR49718. I have enclosed a simple fix for this bug report.
2014-01-07 Laurent Alfonsi <laurent.alfonsi@st.com>
* c-family/c-common.c (handle_no_instrument_function_attribute): Allow
no_instrument_function attribute in class member
definition/declaration.
Looking at the implementation of the function attributes, I see no
reason anymore to keep this error message.
Let me know if I missed something.
I have also added a testcase in the enclosed patch.
2014-01-07 Laurent Alfonsi <laurent.alfonsi@st.com>
PR c++/49718
* g++.dg/pr49718.C: New
gcc/g++/libstdc++ testsuites are ok on x86-64. Ok for trunk ?
Regards,
Laurent
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Fix-PR49718-allow-no_instrument_function-attribute-i.patch
Type: text/x-patch
Size: 2525 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20140108/c9816567/attachment.bin>
More information about the Gcc-patches
mailing list