Welcome! Log In Create A New Profile

Advanced

[njs] Avoiding aligned attribute detection skip on ppc64le platforms.

Dmitry Volyntsev
July 16, 2019 06:02AM
details: https://hg.nginx.org/njs/rev/f98e8a101b02
branches:
changeset: 1051:f98e8a101b02
user: Dmitry Volyntsev <xeioex@nginx.com>
date: Tue Jul 16 12:57:29 2019 +0300
description:
Avoiding aligned attribute detection skip on ppc64le platforms.

diffstat:

auto/clang | 33 ++++++++++-----------------------
1 files changed, 10 insertions(+), 23 deletions(-)

diffs (44 lines):

diff -r 18396fcfd53b -r f98e8a101b02 auto/clang
--- a/auto/clang Mon Jul 15 19:20:55 2019 +0300
+++ b/auto/clang Tue Jul 16 12:57:29 2019 +0300
@@ -278,30 +278,17 @@ nxt_feature_test="#include <stdlib.h>
. auto/feature


-nxt_os="$NXT_SYSTEM/$NXT_SYSTEM_PLATFORM"
-
-if [ "$nxt_os" = "Linux/ppc64le" ]; then
-
- # Old GNU ld linker may hang on Linux ppc64le platform
- # if some of these features are enabled.
-
- echo "checking for GCC __attribute__ aligned is disabled for $nxt_os."
-
-else
+nxt_feature="GCC __attribute__ aligned"
+nxt_feature_name=NXT_HAVE_GCC_ATTRIBUTE_ALIGNED
+nxt_feature_run=no
+nxt_feature_path=
+nxt_feature_libs=
+nxt_feature_test="int n __attribute__ ((aligned(64)));

- nxt_feature="GCC __attribute__ aligned"
- nxt_feature_name=NXT_HAVE_GCC_ATTRIBUTE_ALIGNED
- nxt_feature_run=no
- nxt_feature_path=
- nxt_feature_libs=
- nxt_feature_test="int n __attribute__ ((aligned(64)));
-
- int main(void) {
- return 0;
- }"
- . auto/feature
-
-fi
+ int main(void) {
+ return 0;
+ }"
+. auto/feature


nxt_feature="Memory sanitizer"
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[njs] Avoiding aligned attribute detection skip on ppc64le platforms.

Dmitry Volyntsev 232 July 16, 2019 06:02AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 158
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready