Sun C on Linux doesn't complain about the attributes sprinkled
Steve Peters [Fri, 26 May 2006 13:33:54 +0000 (13:33 +0000)]
through the code in all cases, even though attributes are not
supported.  In some cases, however, it does.

p4raw-id: //depot/perl@28309

hints/linux.sh

index 8dbe32f..7f348ef 100644 (file)
@@ -88,6 +88,15 @@ case "`${cc:-cc} -V 2>&1`" in
     optimize='-xO2'
     cccdlflags='-KPIC'
     lddlflags='-G -Bdynamic'
+    # Sun C doesn't support gcc attributes, but, in many cases, doesn't
+    # complain either.  Not all cases, though.
+    d_attribute_format='undef'
+    d_attribute_malloc='undef'
+    d_attribute_nonnull='undef'
+    d_attribute_noreturn='undef'
+    d_attribute_pure='undef'
+    d_attribute_unused='undef'
+    d_attribute_warn_unused_result='undef'
     ;;
 esac