summaryrefslogtreecommitdiff
path: root/hints
diff options
context:
space:
mode:
authorAndy Dougherty <doughera@lafayette.edu>2013-02-27 13:06:07 -0500
committerKarl Williamson <khw@cpan.org>2014-10-21 09:26:49 -0600
commit636a024b8c315521b8ddde9c3a7d31cea4e8d2f2 (patch)
treea3f5875785a35ac9ab91a694c3b646b3ee030e00 /hints
parenta4c2c75af551764534f9f8cb6afd4ef6ba514f45 (diff)
downloadperl-636a024b8c315521b8ddde9c3a7d31cea4e8d2f2.tar.gz
Disable gcc-style function attributes on z/OS.
John Goodyear <johngood@us.ibm.com> reports that the z/OS C compiler supports the attribute keyword, but not exactly the same as gcc. Instead of a "warning", the compiler emits an "INFORMATIONAL" message that Configure fails to detect. Until Configure is fixed, just disable the attributes altogether. John Goodyear
Diffstat (limited to 'hints')
-rw-r--r--hints/os390.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/hints/os390.sh b/hints/os390.sh
index 892d36d391..d9b0f8afbd 100644
--- a/hints/os390.sh
+++ b/hints/os390.sh
@@ -231,3 +231,22 @@ d_gethostbyaddr_r='undef'
d_gethostbyname_r='undef'
d_gethostent_r='undef'
+# The z/OS C compiler compiler supports the attribute keyword, but in a
+# limited manner.
+#
+# Ideally, Configure's tests should test the attributes as they are expected
+# to be used in perl, and, ideally, those tests would fail on z/OS.
+# Until then, just tell Configure to ignore the attributes. Currently,
+# Configure thinks attributes are supported because it does not recognize
+# warning messages like this:
+#
+# INFORMATIONAL CCN4108 ./proto.h:4534  The use of keyword '__attribute__' is non-portable.
+
+d_attribute_deprecated='undef'
+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'