2011-01-12 Richard Guenther <rguenther@suse.de>
PR middle-end/32511
* c-common.c (handle_weak_attribute): Warn instead of error
on declaring an inline function weak.
* gcc.dg/attr-weak-1.c: Adjust.
From-SVN: r168652
+2011-01-12 Richard Guenther <rguenther@suse.de>
+
+ PR middle-end/32511
+ * c-common.c (handle_weak_attribute): Warn instead of error
+ on declaring an inline function weak.
+
2011-01-05 Tom Tromey <tromey@redhat.com>
* c-common.h (lvalue_error): Update.
if (TREE_CODE (*node) == FUNCTION_DECL
&& DECL_DECLARED_INLINE_P (*node))
{
- error ("inline function %q+D cannot be declared weak", *node);
+ warning (OPT_Wattributes, "inline function %q+D declared weak", *node);
*no_add_attrs = true;
}
else if (lookup_attribute ("ifunc", DECL_ATTRIBUTES (*node)))
+2011-01-12 Richard Guenther <rguenther@suse.de>
+
+ PR middle-end/32511
+ * gcc.dg/attr-weak-1.c: Adjust.
+
2011-01-11 Paul Thomas <pault@gcc.gnu.org>
PR fortran/47051
/* { dg-do compile } */
-__inline void foo(void) __attribute__((weak)); /* { dg-error "inline.*weak" } */
+__inline void foo(void) __attribute__((weak)); /* { dg-warning "inline.*weak" } */