[clang] Revert "[AIX] Fix AIX BuildBot failure as AIX linker doesn't support version script." (PR #117444)

2024-11-24 Thread Xing Xue via cfe-commits
https://github.com/xingxue-ibm closed https://github.com/llvm/llvm-project/pull/117444 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [AIX] Fix AIX BuildBot failure as AIX linker doesn't support version script. (PR #117342)

2024-11-23 Thread Xing Xue via cfe-commits
@@ -48,11 +48,13 @@ add_clang_library(clang-cpp ${_OBJECTS} LINK_LIBS ${_DEPS}) +# AIX linker does not support version script +if (NOT ${CMAKE_SYSTEM_NAME} MATCHES "AIX") + configure_file(simple_version_script.map.in simple

[clang] Revert "[AIX] Fix AIX BuildBot failure as AIX linker doesn't support version script." (PR #117444)

2024-11-23 Thread Xing Xue via cfe-commits
https://github.com/xingxue-ibm created https://github.com/llvm/llvm-project/pull/117444 Commit https://github.com/llvm/llvm-project/commit/eaa0a21d21962280dc2c03a09152510f6162a576 has fixed the build problem already so the change in llvm/llvm-project#117342 does not make sense any more. I am

[clang] [AIX] Fix AIX BuildBot failure as AIX linker doesn't support version script. (PR #117342)

2024-11-22 Thread Xing Xue via cfe-commits
https://github.com/xingxue-ibm approved this pull request. Thanks, LGTM! https://github.com/llvm/llvm-project/pull/117342 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libunwind] [libunwind][AIX] Call dlclose only when dlsym() fails (PR #112768)

2024-10-19 Thread Xing Xue via cfe-commits
https://github.com/xingxue-ibm closed https://github.com/llvm/llvm-project/pull/112768 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libunwind] [libunwind][AIX] Call dlclose only when dlsym() fails (PR #112768)

2024-10-17 Thread Xing Xue via cfe-commits
https://github.com/xingxue-ibm updated https://github.com/llvm/llvm-project/pull/112768 >From 2bb223edb6a3a7766606f5c7e6c0aa3fa3e09a63 Mon Sep 17 00:00:00 2001 From: Xing Xue Date: Thu, 17 Oct 2024 14:59:40 -0400 Subject: [PATCH 1/2] Call dlclose() only when dlsym() fails. --- libunwind/src/U

[libunwind] [libunwind][AIX] Call dlclose only when dlsym() fails (PR #112768)

2024-10-17 Thread Xing Xue via cfe-commits
xingxue-ibm wrote: > Should the call be prior to the assert? Good catch! https://github.com/llvm/llvm-project/pull/112768 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libunwind] [libunwind][AIX] Call dlclose only when dlsym() fails (PR #112768)

2024-10-17 Thread Xing Xue via cfe-commits
https://github.com/xingxue-ibm created https://github.com/llvm/llvm-project/pull/112768 The personality routine `__xlcxx_personality_v0` in `libc++abi` is hard-coded in the unwinder as the handler for EH in applications generated by the legacy IBM C++ compiler. The symbol is resolved dynamical

[libunwind] [libunwind][AIX] Remove weak declaration "__xlcxx_personality_v0" (PR #112436)

2024-10-17 Thread Xing Xue via cfe-commits
https://github.com/xingxue-ibm closed https://github.com/llvm/llvm-project/pull/112436 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libunwind] [libunwind][AIX] Remove weak declaration "__xlcxx_personality_v0" (PR #112436)

2024-10-16 Thread Xing Xue via cfe-commits
xingxue-ibm wrote: Since this is an AIX-specific issue and the fix has been approved by AIX compiler and runtime expert @hubert-reinterpretcast (thank you), I plan to land it tomorrow if there are no objections. https://github.com/llvm/llvm-project/pull/112436 _

[libunwind] [libunwind][AIX] Remove weak declaration "__xlcxx_personality_v0" (PR #112436)

2024-10-16 Thread Xing Xue via cfe-commits
xingxue-ibm wrote: > I think a small test case could be added with a `int main(void) {}` C program > linked with -`brtl` and `LDR_PRELOAD`/`LDR_PRELOAD64` set to > `libunwind.a(libunwind.so.1)`. Added a test case `aix_runtime_link.pass.cpp` although the test case needs to be in C. The reason

[libunwind] [libunwind][AIX] Remove weak declaration "__xlcxx_personality_v0" (PR #112436)

2024-10-16 Thread Xing Xue via cfe-commits
@@ -2126,42 +2125,34 @@ bool UnwindCursor::getInfoFromTBTable(pint_t pc, R ®isters) { // function __xlcxx_personality_v0(), which is the personality for the state // table and is exported from libc++abi, is directly assigned as the // handler here. When a legacy X

[libunwind] [libunwind][AIX] Remove weak declaration "__xlcxx_personality_v0" (PR #112436)

2024-10-16 Thread Xing Xue via cfe-commits
@@ -2126,42 +2125,34 @@ bool UnwindCursor::getInfoFromTBTable(pint_t pc, R ®isters) { // function __xlcxx_personality_v0(), which is the personality for the state // table and is exported from libc++abi, is directly assigned as the // handler here. When a legacy X

[libunwind] [libunwind][AIX] Remove weak declaration "__xlcxx_personality_v0" (PR #112436)

2024-10-16 Thread Xing Xue via cfe-commits
@@ -2126,42 +2125,34 @@ bool UnwindCursor::getInfoFromTBTable(pint_t pc, R ®isters) { // function __xlcxx_personality_v0(), which is the personality for the state // table and is exported from libc++abi, is directly assigned as the // handler here. When a legacy X

[libunwind] [libunwind][AIX] Remove weak declaration "__xlcxx_personality_v0" (PR #112436)

2024-10-16 Thread Xing Xue via cfe-commits
https://github.com/xingxue-ibm updated https://github.com/llvm/llvm-project/pull/112436 >From edabcb3b43800c3e12a55325a786600064ccde10 Mon Sep 17 00:00:00 2001 From: Xing Xue Date: Tue, 15 Oct 2024 16:21:29 -0400 Subject: [PATCH 1/3] Remove weak definition "__xlcxx_personality_v0". --- libunw

[libunwind] [libunwind][AIX] Remove weak declaration "__xlcxx_personality_v0" (PR #112436)

2024-10-16 Thread Xing Xue via cfe-commits
xingxue-ibm wrote: > @xingxue-ibm, I edited the PR description text. Please check my edits. Thanks for the editing, @hubert-reinterpretcast! https://github.com/llvm/llvm-project/pull/112436 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https:

[libunwind] [libunwind][AIX] Remove weak definition "__xlcxx_personality_v0" (PR #112436)

2024-10-15 Thread Xing Xue via cfe-commits
https://github.com/xingxue-ibm updated https://github.com/llvm/llvm-project/pull/112436 >From edabcb3b43800c3e12a55325a786600064ccde10 Mon Sep 17 00:00:00 2001 From: Xing Xue Date: Tue, 15 Oct 2024 16:21:29 -0400 Subject: [PATCH 1/2] Remove weak definition "__xlcxx_personality_v0". --- libunw

[libunwind] [libunwind][AIX] Remove weak definition "__xlcxx_personality_v0" (PR #112436)

2024-10-15 Thread Xing Xue via cfe-commits
https://github.com/xingxue-ibm edited https://github.com/llvm/llvm-project/pull/112436 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libunwind] [libunwind][AIX] Remove weak definition "__xlcxx_personality_v0". (PR #112436)

2024-10-15 Thread Xing Xue via cfe-commits
https://github.com/xingxue-ibm created https://github.com/llvm/llvm-project/pull/112436 `__xlcxx_personality_v0` is the personality routine in `libc++abi` for the EH of applications generated by the legacy IBM C++ compiler. Since the EH info generated by the legacy compiler does not provide th

[libcxx] [libcxxabi] [libunwind] [NFC][libc++][libc++abi][libunwind][test] Fix/unify AIX triples used in LIT tests (PR #101196)

2024-08-01 Thread Xing Xue via cfe-commits
xingxue-ibm wrote: /cherry-pick [2d36550](https://github.com/llvm/llvm-project/commit/2d3655037ccfa276cb0949c2ce0cff56985f6637) https://github.com/llvm/llvm-project/pull/101196 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm

[libcxx] [libcxxabi] [libunwind] [NFC][libc++][libc++abi][libunwind][test] Fix/unify AIX triples used in LIT tests (PR #101196)

2024-08-01 Thread Xing Xue via cfe-commits
https://github.com/xingxue-ibm milestoned https://github.com/llvm/llvm-project/pull/101196 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libcxx] [libcxxabi] [libunwind] [NFC][libc++][libc++abi][libunwind][test] Fix/unify AIX triples used in LIT tests (PR #101196)

2024-07-31 Thread Xing Xue via cfe-commits
@@ -6,7 +6,7 @@ // //===--===// -// REQUIRES: target={{powerpc.*-ibm-aix.*}} +// REQUIRES: target={{.+}}-aix{{.*}} xingxue-ibm wrote: Thanks! https://github.com/llvm/llvm-project/pull/10119

[libcxx] [libcxxabi] [libunwind] [NFC][libc++][libc++abi][libunwind][test] Fix/unify AIX triples used in LIT tests (PR #101196)

2024-07-30 Thread Xing Xue via cfe-commits
@@ -6,7 +6,7 @@ // //===--===// -// REQUIRES: target={{powerpc.*-ibm-aix.*}} +// REQUIRES: target={{.+}}-aix{{.*}} xingxue-ibm wrote: I see what you mean, thanks! I can do it if we think it

[libcxx] [libcxxabi] [libunwind] [NFC][libc++][libc++abi][libunwind][test] Fix/unify AIX triples used in LIT tests (PR #101196)

2024-07-30 Thread Xing Xue via cfe-commits
@@ -10,7 +10,7 @@ // on AIX. Option -O3 is required so that the compiler will re-use the value // in the condition register instead of re-evaluating the condition expression. -// REQUIRES: target=powerpc{{(64)?}}-ibm-aix +// REQUIRES: target={{.+}}-aix{{.*}} x

[libcxx] [libcxxabi] [libunwind] [NFC][libc++][libc++abi][libunwind][test] Fix/unify AIX triples used in LIT tests (PR #101196)

2024-07-30 Thread Xing Xue via cfe-commits
@@ -6,7 +6,7 @@ // //===--===// -// REQUIRES: target={{powerpc.*-ibm-aix.*}} +// REQUIRES: target={{.+}}-aix{{.*}} xingxue-ibm wrote: > Why remove the vendor in the vendor specific directory

[libcxx] [libcxxabi] [libunwind] [NFC][libc++][libc++abi][libunwind][test] Fix/unify AIX triples used in LIT tests (PR #101196)

2024-07-30 Thread Xing Xue via cfe-commits
https://github.com/xingxue-ibm created https://github.com/llvm/llvm-project/pull/101196 This patch fixes/unifies AIX target triples used in libc++, libc++abi, and libunwind LIT tests. >From d3fb26a629ec9761037065d1dba67fd8a93414bf Mon Sep 17 00:00:00 2001 From: Xing Xue Date: Tue, 30 Jul 2024

[libunwind] [libunwind][AIX] Fix the wrong traceback from signal handler (PR #101069)

2024-07-29 Thread Xing Xue via cfe-commits
https://github.com/xingxue-ibm updated https://github.com/llvm/llvm-project/pull/101069 >From 05110959c01b5b7d4f2530e4d21232053db939f3 Mon Sep 17 00:00:00 2001 From: Xing Xue Date: Mon, 29 Jul 2024 14:53:36 -0400 Subject: [PATCH 1/2] Fix the problem introduced by upstream patch https://github.

[libunwind] [libunwind][AIX] Fix the wrong traceback from signal handler (PR #101069)

2024-07-29 Thread Xing Xue via cfe-commits
https://github.com/xingxue-ibm created https://github.com/llvm/llvm-project/pull/101069 Patch [llvm#92291](https://github.com/llvm/llvm-project/pull/92291) causes wrong traceback from a signal handler for AIX because the AIX unwinder uses the traceback table at the end of each function instead

[clang] [clang] Default to -fno-sized-deallocation for AIX (PR #97076)

2024-07-01 Thread Xing Xue via cfe-commits
https://github.com/xingxue-ibm closed https://github.com/llvm/llvm-project/pull/97076 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Default to -fno-sized-deallocation for AIX (PR #97076)

2024-06-29 Thread Xing Xue via cfe-commits
https://github.com/xingxue-ibm updated https://github.com/llvm/llvm-project/pull/97076 >From d6a486c4f007297d087fe4454da3ec501e824825 Mon Sep 17 00:00:00 2001 From: Xing Xue Date: Fri, 28 Jun 2024 11:25:25 -0400 Subject: [PATCH 1/2] Default to -fno-sized-deallocation for AIX. --- clang/lib/Dr

[clang] [clang] Default to -fno-sized-deallocation for AIX (PR #97076)

2024-06-28 Thread Xing Xue via cfe-commits
https://github.com/xingxue-ibm created https://github.com/llvm/llvm-project/pull/97076 Some `libc++` LIT test cases and user code define their own version of `operator delete` that are not sized. With `-fno-sized-deallocation`, destructors call the non-sized `operator delete` and it will be re

[libunwind] [libunwind][AIX] Cast NULL as type uintptr_t. (PR #93204)

2024-05-23 Thread Xing Xue via cfe-commits
https://github.com/xingxue-ibm closed https://github.com/llvm/llvm-project/pull/93204 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libunwind] [libunwind][AIX] Cast NULL as type uintptr_t. (PR #93204)

2024-05-23 Thread Xing Xue via cfe-commits
xingxue-ibm wrote: > LGTM, assuming the CI passes Thanks! Seems 3 failures are unrelated. https://github.com/llvm/llvm-project/pull/93204 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commi

[libunwind] [libunwind][AIX] Cast NULL as type uintptr_t. (PR #93204)

2024-05-23 Thread Xing Xue via cfe-commits
https://github.com/xingxue-ibm created https://github.com/llvm/llvm-project/pull/93204 Casting NULL as type `uintptr_t` to allow type checking in both 32-bit and 64-bit mode. >From 1e21301d3b07bd72696f39a0ca8cd19907cdcf71 Mon Sep 17 00:00:00 2001 From: Xing Xue Date: Thu, 23 May 2024 10:51:32

[libunwind] 45d1511 - [libunwind][AIX] Fix problem with stepping up from a leaf function when unwinding started in a signal handler

2023-10-16 Thread Xing Xue via cfe-commits
Author: Xing Xue Date: 2023-10-16T12:24:05-04:00 New Revision: 45d151138008c4880c8f9b77ffc43c23e0a9f1cb URL: https://github.com/llvm/llvm-project/commit/45d151138008c4880c8f9b77ffc43c23e0a9f1cb DIFF: https://github.com/llvm/llvm-project/commit/45d151138008c4880c8f9b77ffc43c23e0a9f1cb.diff LOG:

[clang] b05fa4f - [clang][driver][AIX] Add OpenMP runtime if -fopenmp specified

2023-01-19 Thread Xing Xue via cfe-commits
Author: Xing Xue Date: 2023-01-19T12:46:22-05:00 New Revision: b05fa4faf64d6c6811bbecead13dc7c23ac43aca URL: https://github.com/llvm/llvm-project/commit/b05fa4faf64d6c6811bbecead13dc7c23ac43aca DIFF: https://github.com/llvm/llvm-project/commit/b05fa4faf64d6c6811bbecead13dc7c23ac43aca.diff LOG:

[clang] fa7477e - [Clang][CodeGen][AIX] Map __builtin_frexpl, __builtin_ldexpl, and __builtin_modfl to 'double' version lib calls in 64-bit 'long double' mode

2022-11-18 Thread Xing Xue via cfe-commits
Author: Xing Xue Date: 2022-11-18T11:36:56-05:00 New Revision: fa7477eb87fd262898e78db983c7b0951b87641c URL: https://github.com/llvm/llvm-project/commit/fa7477eb87fd262898e78db983c7b0951b87641c DIFF: https://github.com/llvm/llvm-project/commit/fa7477eb87fd262898e78db983c7b0951b87641c.diff LOG:

[libunwind] 2366c6a - [libunwind][AIX] Implement _Unwind_FindEnclosingFunction() using traceback table on AIX

2022-08-12 Thread Xing Xue via cfe-commits
Author: Xing Xue Date: 2022-08-12T18:07:56-04:00 New Revision: 2366c6adfc95e1aca9afbbbf5251a61552865b55 URL: https://github.com/llvm/llvm-project/commit/2366c6adfc95e1aca9afbbbf5251a61552865b55 DIFF: https://github.com/llvm/llvm-project/commit/2366c6adfc95e1aca9afbbbf5251a61552865b55.diff LOG:

[libunwind] cc8edbe - [libunwind][AIX] Save/restore errno before/after system calls dlopen/dlsym/dlclose

2022-08-08 Thread Xing Xue via cfe-commits
Author: Xing Xue Date: 2022-08-08T17:21:30-04:00 New Revision: cc8edbea7a5f26906ae3d1f7ba0dc5da8fc5afb5 URL: https://github.com/llvm/llvm-project/commit/cc8edbea7a5f26906ae3d1f7ba0dc5da8fc5afb5 DIFF: https://github.com/llvm/llvm-project/commit/cc8edbea7a5f26906ae3d1f7ba0dc5da8fc5afb5.diff LOG:

[libunwind] dfaee3c - [libunwind][ci][AIX] Add libunwind to buildbot CI

2022-06-02 Thread Xing Xue via cfe-commits
Author: Xing Xue Date: 2022-06-02T09:03:10-04:00 New Revision: dfaee3c9cfa17fce6af317ddcae89c6f6550cf94 URL: https://github.com/llvm/llvm-project/commit/dfaee3c9cfa17fce6af317ddcae89c6f6550cf94 DIFF: https://github.com/llvm/llvm-project/commit/dfaee3c9cfa17fce6af317ddcae89c6f6550cf94.diff LOG:

[libunwind] 7165edc - [libunwind][AIX] implementation of the unwinder for AIX

2022-04-13 Thread Xing Xue via cfe-commits
Author: Xing Xue Date: 2022-04-13T13:18:10-04:00 New Revision: 7165edcad76fec2e025414ddf44e76363806fc3d URL: https://github.com/llvm/llvm-project/commit/7165edcad76fec2e025414ddf44e76363806fc3d DIFF: https://github.com/llvm/llvm-project/commit/7165edcad76fec2e025414ddf44e76363806fc3d.diff LOG:

[libunwind] 9c0152c - [libunwind][AIX] implementation of the unwinder for AIX

2022-04-13 Thread Xing Xue via cfe-commits
Author: Xing Xue Date: 2022-04-13T11:29:37-04:00 New Revision: 9c0152cda35f58ad9916b698c7a645d4a4dfeaf2 URL: https://github.com/llvm/llvm-project/commit/9c0152cda35f58ad9916b698c7a645d4a4dfeaf2 DIFF: https://github.com/llvm/llvm-project/commit/9c0152cda35f58ad9916b698c7a645d4a4dfeaf2.diff LOG:

[libunwind] a85da64 - [libunwind][AIX] implementation of the unwinder for AIX

2022-04-13 Thread Xing Xue via cfe-commits
Author: Xing Xue Date: 2022-04-13T11:01:59-04:00 New Revision: a85da649b9ac67afffec6bff9487e6405e1f9cba URL: https://github.com/llvm/llvm-project/commit/a85da649b9ac67afffec6bff9487e6405e1f9cba DIFF: https://github.com/llvm/llvm-project/commit/a85da649b9ac67afffec6bff9487e6405e1f9cba.diff LOG:

[libunwind] 11982ee - [libunwind][AIX] Mark signal_frame.pass.cpp UNSUPPORTED on AIX

2021-11-18 Thread Xing Xue via cfe-commits
Author: Xing Xue Date: 2021-11-18T10:24:58-05:00 New Revision: 11982eed2bc818fdbd525e3237a77a3efeb6a497 URL: https://github.com/llvm/llvm-project/commit/11982eed2bc818fdbd525e3237a77a3efeb6a497 DIFF: https://github.com/llvm/llvm-project/commit/11982eed2bc818fdbd525e3237a77a3efeb6a497.diff LOG:

[libunwind] 8408d3f - [libunwind] NFC: Use macros to accommodate differences in representation of PowerPC assemblers

2021-05-06 Thread Xing Xue via cfe-commits
Author: Xing Xue Date: 2021-05-06T14:33:38-04:00 New Revision: 8408d3f2d814b19da450ff162f47981b55a9703a URL: https://github.com/llvm/llvm-project/commit/8408d3f2d814b19da450ff162f47981b55a9703a DIFF: https://github.com/llvm/llvm-project/commit/8408d3f2d814b19da450ff162f47981b55a9703a.diff LOG:

r364462 - Print NULL as "(null)" in diagnostic message

2019-06-26 Thread Xing Xue via cfe-commits
Author: xingxue Date: Wed Jun 26 12:27:16 2019 New Revision: 364462 URL: http://llvm.org/viewvc/llvm-project?rev=364462&view=rev Log: Print NULL as "(null)" in diagnostic message Summary: Passing a null pointer to the printf family for a %s format specifier leads to undefined behaviour. The test

r363939 - AIX system headers need stdint.h and inttypes.h to be re-enterable

2019-06-20 Thread Xing Xue via cfe-commits
Author: xingxue Date: Thu Jun 20 08:36:32 2019 New Revision: 363939 URL: http://llvm.org/viewvc/llvm-project?rev=363939&view=rev Log: AIX system headers need stdint.h and inttypes.h to be re-enterable Summary: AIX system headers need stdint.h and inttypes.h to be re-enterable when macro _STD_TYP

r360900 - Add AIX Version Macros

2019-05-16 Thread Xing Xue via cfe-commits
Author: xingxue Date: Thu May 16 07:22:37 2019 New Revision: 360900 URL: http://llvm.org/viewvc/llvm-project?rev=360900&view=rev Log: Add AIX Version Macros Summary: - This patch checks the AIX version and defines the appropriate macros. - Follow up to a comment on D59048. Author: andusy Review