2016-11-16 Richard Biener <rguenther@suse.de>
PR middle-end/78333
* gimplify.c (gimplify_function_tree): Do not instrument
GNU extern inline functions.
* gcc.dg/pr78333.c: New testcase.
From-SVN: r242487
+2016-11-16 Richard Biener <rguenther@suse.de>
+
+ PR middle-end/78333
+ * gimplify.c (gimplify_function_tree): Do not instrument
+ GNU extern inline functions.
+
2016-11-16 Martin Liska <mliska@suse.cz>
PR sanitizer/78270
/* ??? Add some way to ignore exceptions for this TFE. */
if (flag_instrument_function_entry_exit
&& !DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT (fndecl)
+ /* Do not instrument extern inline functions. */
+ && !(DECL_DECLARED_INLINE_P (fndecl)
+ && DECL_EXTERNAL (fndecl)
+ && DECL_DISREGARD_INLINE_LIMITS (fndecl))
&& !flag_instrument_functions_exclude_p (fndecl))
{
tree x;
+2016-11-16 Richard Biener <rguenther@suse.de>
+
+ PR middle-end/78333
+ * gcc.dg/pr78333.c: New testcase.
+
2016-11-16 Martin Liska <mliska@suse.cz>
PR sanitizer/78270
--- /dev/null
+/* { dg-do link } */
+/* { dg-options "-finstrument-functions" } */
+
+extern inline __attribute__((gnu_inline, always_inline)) int foo () { }
+int main()
+{
+ foo ();
+ return 0;
+}