Page MenuHomePhabricator

Please use GitHub pull requests for new patches. Phabricator shutdown timeline

thesamesam (Sam James)
User

Projects

User does not belong to any projects.

User Details

User Since
Sep 19 2021, 7:41 PM (106 w, 1 d)

Gentoo developer. Does various bits.

Recent Activity

Sat, Sep 30

Herald added a project to D92302: [compiler-rt] Implement __atomic_is_lock_free: Restricted Project.
Sat, Sep 30, 8:48 PM · Restricted Project, Restricted Project

Tue, Sep 19

thesamesam updated subscribers of D159171: [libc++][hardening] Remove hardening from release notes, undeprecate safe mode.
Tue, Sep 19, 1:12 AM · Restricted Project, Restricted Project
thesamesam updated subscribers of D159171: [libc++][hardening] Remove hardening from release notes, undeprecate safe mode.
Tue, Sep 19, 1:11 AM · Restricted Project, Restricted Project
thesamesam added a comment to D159171: [libc++][hardening] Remove hardening from release notes, undeprecate safe mode.

a5e5eb17fd9743ea39de35f2779c6dc10729cf9f doesn't really explain the rationale here. Anyway, we picked up that _ENABLE_ASSERTIONS was deprecated thanks to this warning during the RCs (https://bugs.gentoo.org/912223). This change reverting to the old behaviour wasn't in any of the RCs and have now become "experimental" again.

Tue, Sep 19, 1:11 AM · Restricted Project, Restricted Project

Tue, Sep 5

thesamesam added a comment to D159115: [clang-repl] Adapt to the recent dylib-related changes in ORC..

Changing the type from unsigned long long to uintptr_t fix the test for me.

Ah! Nice catch! Can you commit the fix?

Tue, Sep 5, 8:05 AM · Restricted Project, Restricted Project
thesamesam committed rG3403686b7250: [Clang] Fix JIT test on 32-bit systems (authored by thesamesam).
[Clang] Fix JIT test on 32-bit systems
Tue, Sep 5, 8:05 AM · Restricted Project, Restricted Project

Aug 31 2023

thesamesam accepted D159173: [Driver] Report warnings for unclaimed TargetSpecific options for assembler input.

Thank you!

Aug 31 2023, 10:38 PM · Restricted Project, Restricted Project

Aug 28 2023

thesamesam accepted D159010: [Driver,X86] Ignore -mfpmath= for assembler input.
Aug 28 2023, 1:27 PM · Restricted Project, Restricted Project

Aug 22 2023

thesamesam updated subscribers of D158218: [CMake] Deprecate DEFAULT_SYSROOT and GCC_INSTALL_PREFIX.
Aug 22 2023, 4:03 AM · Restricted Project, Restricted Project

Aug 15 2023

thesamesam committed rG002cba03298a: [libc] limits.h: include compiler limits if not already included (authored by alfredfo).
[libc] limits.h: include compiler limits if not already included
Aug 15 2023, 6:59 PM · Restricted Project, Restricted Project
thesamesam closed D158040: [libc] limits.h: include compiler limits if not already included.
Aug 15 2023, 6:59 PM · Restricted Project, Restricted Project
thesamesam accepted D158040: [libc] limits.h: include compiler limits if not already included.

This seems right. I'd normally prefer for Michael to take a look but I'll merge it to unbreak the build. We can revert it later if needed.

Aug 15 2023, 6:58 PM · Restricted Project, Restricted Project

Aug 13 2023

thesamesam committed rG1acbc21d46ba: [libc] Define __UTS_NAME_LENGTH for __APPLE__ (authored by alfredfo).
[libc] Define __UTS_NAME_LENGTH for __APPLE__
Aug 13 2023, 5:57 PM · Restricted Project, Restricted Project
thesamesam closed D157824: [libc] Define __UTS_NAME_LENGTH for __APPLE__.
Aug 13 2023, 5:57 PM · Restricted Project, Restricted Project
thesamesam accepted D157824: [libc] Define __UTS_NAME_LENGTH for __APPLE__.
Aug 13 2023, 5:56 PM · Restricted Project, Restricted Project
thesamesam committed rG0fb3066873fd: [libc] Add limits.h (authored by alfredfo).
[libc] Add limits.h
Aug 13 2023, 5:37 PM · Restricted Project, Restricted Project
thesamesam closed D156961: [libc] Add limits.h.
Aug 13 2023, 5:37 PM · Restricted Project, Restricted Project

Aug 7 2023

Herald added a project to D64903: [ELF] Add -z separate-code and pad the last page of last PF_X PT_LOAD with traps only if -z separate-code is specified: Restricted Project.
Aug 7 2023, 2:31 AM · Restricted Project, Restricted Project

Jul 26 2023

thesamesam committed rGfe9c3c786837: [libc] _INCLUDE_SCUDO: check for compiler-rt in enabled RUNTIMES too (authored by alfredfo).
[libc] _INCLUDE_SCUDO: check for compiler-rt in enabled RUNTIMES too
Jul 26 2023, 9:12 PM · Restricted Project, Restricted Project
thesamesam closed D156388: [libc] _INCLUDE_SCUDO: check for compiler-rt in enabled RUNTIMES too.
Jul 26 2023, 9:12 PM · Restricted Project, Restricted Project
thesamesam accepted D156388: [libc] _INCLUDE_SCUDO: check for compiler-rt in enabled RUNTIMES too.
Jul 26 2023, 7:41 PM · Restricted Project, Restricted Project

Jul 11 2023

thesamesam added a comment to D143241: [Clang] Reset FP options before function instantiations.

During our regular snapshot testing, we've hit this in Gentoo on 32-bit Linux x86: https://github.com/llvm/llvm-project/issues/63704#issuecomment-1631791518.

Jul 11 2023, 8:31 PM · Restricted Project, Restricted Project

Jul 2 2023

thesamesam committed rGcae84d8acf5e: [libc] Correct usage of __unix__ and __linux__ (authored by alfredfo).
[libc] Correct usage of __unix__ and __linux__
Jul 2 2023, 5:09 PM · Restricted Project, Restricted Project
thesamesam added a comment to D153729: [libc] Correct usage of __unix__ and __linux__.

LGTM, and if there are spots where both linux and macos should be accepted then we should probably make those #if defined(__linux__) || defined(__APPLE__)

Jul 2 2023, 5:08 PM · Restricted Project, Restricted Project
thesamesam closed D153729: [libc] Correct usage of __unix__ and __linux__.
Jul 2 2023, 5:08 PM · Restricted Project, Restricted Project
thesamesam accepted D153729: [libc] Correct usage of __unix__ and __linux__.
Jul 2 2023, 5:07 PM · Restricted Project, Restricted Project

Jun 18 2023

thesamesam committed rGc32ba7d5e008: [libc] [NFC] malloc.h: fix include guard typo (authored by alfredfo).
[libc] [NFC] malloc.h: fix include guard typo
Jun 18 2023, 3:09 PM · Restricted Project, Restricted Project
thesamesam closed D153231: [libc] [NFC] malloc.h: fix include guard typo.
Jun 18 2023, 3:08 PM · Restricted Project, Restricted Project
thesamesam accepted D153231: [libc] [NFC] malloc.h: fix include guard typo.
Jun 18 2023, 3:08 PM · Restricted Project, Restricted Project

Jun 15 2023

thesamesam committed rG63eb7c4e6620: [scudo] Do not compile timing.cpp if LLVM_LIBC_INCLUDE_SCUDO=on (authored by alfredfo).
[scudo] Do not compile timing.cpp if LLVM_LIBC_INCLUDE_SCUDO=on
Jun 15 2023, 4:10 PM · Restricted Project, Restricted Project
thesamesam closed D152979: [scudo] Do not compile timing.cpp if LLVM_LIBC_INCLUDE_SCUDO=on.
Jun 15 2023, 4:09 PM · Restricted Project, Restricted Project
thesamesam accepted D152979: [scudo] Do not compile timing.cpp if LLVM_LIBC_INCLUDE_SCUDO=on.
Jun 15 2023, 4:08 PM · Restricted Project, Restricted Project

Jun 14 2023

thesamesam retitled D152979: [scudo] Do not compile timing.cpp if LLVM_LIBC_INCLUDE_SCUDO=on from [scudo] Do not compile timing.cpp if LLVM_LIBC_INCLUDE_SCUDO=on Temporary hack until LLVM libc supports inttypes.h print format macros See: https://github.com/llvm/llvm-project/issues/63317#issuecomment-1591906241 to [scudo] Do not compile timing.cpp if LLVM_LIBC_INCLUDE_SCUDO=on.
Jun 14 2023, 4:17 PM · Restricted Project, Restricted Project

Jun 12 2023

thesamesam committed rG08da9ceb6475: [libc] Fix argument types for {f,}truncate specs (authored by alfredfo).
[libc] Fix argument types for {f,}truncate specs
Jun 12 2023, 10:01 AM · Restricted Project, Restricted Project
thesamesam closed D152664: [libc] Fix argument types for {f,}truncate specs.
Jun 12 2023, 10:00 AM · Restricted Project, Restricted Project
thesamesam accepted D152619: [CMake] Fixes using CMake 3.27.0..

Yes, it's a transitive include which just happened to work before.

Jun 12 2023, 8:39 AM · Restricted Project, Restricted Project

Jun 11 2023

thesamesam accepted D152664: [libc] Fix argument types for {f,}truncate specs.

lgtm, but not a member of llvm-libc

Jun 11 2023, 8:28 PM · Restricted Project, Restricted Project

Jun 10 2023

thesamesam committed rGe3ad7081ac07: [CMake] Add missing CheckCSourceCompiles include (authored by thesamesam).
[CMake] Add missing CheckCSourceCompiles include
Jun 10 2023, 11:21 AM · Restricted Project, Restricted Project
thesamesam closed D152622: [CMake] Add missing CheckCSourceCompiles include.
Jun 10 2023, 11:21 AM · Restricted Project, Restricted Project
thesamesam requested review of D152622: [CMake] Add missing CheckCSourceCompiles include.
Jun 10 2023, 8:46 AM · Restricted Project, Restricted Project

Jun 5 2023

thesamesam committed rGab8d4f5a122f: [CMake] Quote variables where "TARGET" may be a value (authored by thesamesam).
[CMake] Quote variables where "TARGET" may be a value
Jun 5 2023, 6:09 PM · Restricted Project, Restricted Project
thesamesam closed D152121: [CMake] Quote variables where "TARGET" may be a value.
Jun 5 2023, 6:09 PM · Restricted Project, Restricted Project

Jun 4 2023

thesamesam added a reviewer for D152121: [CMake] Quote variables where "TARGET" may be a value: juchem.
Jun 4 2023, 9:22 PM · Restricted Project, Restricted Project
thesamesam updated the diff for D152121: [CMake] Quote variables where "TARGET" may be a value.

Add some additional cases

Jun 4 2023, 9:22 PM · Restricted Project, Restricted Project
thesamesam updated the diff for D152121: [CMake] Quote variables where "TARGET" may be a value.

Tweak commit message

Jun 4 2023, 9:20 PM · Restricted Project, Restricted Project
thesamesam requested review of D152121: [CMake] Quote variables where "TARGET" may be a value.
Jun 4 2023, 9:19 PM · Restricted Project, Restricted Project

May 22 2023

thesamesam committed rG75a0502fe005: [CMake] Set compatibility policy for lists in LLVM-Config.cmake. (authored by juchem).
[CMake] Set compatibility policy for lists in LLVM-Config.cmake.
May 22 2023, 12:07 PM · Restricted Project, Restricted Project
thesamesam closed D150884: depdendent projects fail to build with cmake 3.25 and llvm 16-rc4.
May 22 2023, 12:07 PM · Restricted Project, Restricted Project

May 21 2023

thesamesam accepted D150884: depdendent projects fail to build with cmake 3.25 and llvm 16-rc4.

This looks fine, thank you! I'll land it later today if nobody objects, given the bug has been open for a while and 16.x is broken as a result.

May 21 2023, 8:03 PM · Restricted Project, Restricted Project
thesamesam added a reviewer for D150884: depdendent projects fail to build with cmake 3.25 and llvm 16-rc4: mgorny.
May 21 2023, 8:01 PM · Restricted Project, Restricted Project

May 20 2023

thesamesam added a reverting change for rGb297fd7974b2: [msan] Don't intercept LFS prlimit64/getrlimit64 on musl: rGfda76c428f1e: Revert "[msan] Don't intercept LFS prlimit64/getrlimit64 on musl".
May 20 2023, 6:44 PM · Restricted Project, Restricted Project
thesamesam committed rGfda76c428f1e: Revert "[msan] Don't intercept LFS prlimit64/getrlimit64 on musl" (authored by thesamesam).
Revert "[msan] Don't intercept LFS prlimit64/getrlimit64 on musl"
May 20 2023, 6:44 PM · Restricted Project, Restricted Project
thesamesam added a reverting change for D150925: [msan] Don't intercept LFS prlimit64/getrlimit64 on musl: rGfda76c428f1e: Revert "[msan] Don't intercept LFS prlimit64/getrlimit64 on musl".
May 20 2023, 6:44 PM · Restricted Project, Restricted Project
thesamesam committed rGb297fd7974b2: [msan] Don't intercept LFS prlimit64/getrlimit64 on musl (authored by thesamesam).
[msan] Don't intercept LFS prlimit64/getrlimit64 on musl
May 20 2023, 6:07 PM · Restricted Project, Restricted Project
thesamesam closed D150925: [msan] Don't intercept LFS prlimit64/getrlimit64 on musl.
May 20 2023, 6:06 PM · Restricted Project, Restricted Project

May 18 2023

thesamesam added a comment to D150930: [Driver] Accept and ignore -fno-lifetime-dse argument.

This is just a draft which I've only briefly tested so far. I'm wondering if this is the right place to put the option, as i've not had to write anything in tablegen before.

May 18 2023, 7:59 PM · Restricted Project, Restricted Project
thesamesam requested review of D150930: [Driver] Accept and ignore -fno-lifetime-dse argument.
May 18 2023, 7:58 PM · Restricted Project, Restricted Project
thesamesam added a comment to D150925: [msan] Don't intercept LFS prlimit64/getrlimit64 on musl.

I think we've had a similar set of changes like this before but I can't find them right now...

May 18 2023, 5:59 PM · Restricted Project, Restricted Project
thesamesam added a reviewer for D150925: [msan] Don't intercept LFS prlimit64/getrlimit64 on musl: Restricted Project.
May 18 2023, 5:59 PM · Restricted Project, Restricted Project
thesamesam requested review of D150925: [msan] Don't intercept LFS prlimit64/getrlimit64 on musl.
May 18 2023, 5:59 PM · Restricted Project, Restricted Project

May 17 2023

thesamesam added a comment to D150505: [cmake] Disable GCC lifetime DSE.

The counterpoint would be that _we're_ adding this flag (LLVM needs it) so it makes sense for us to swallow it, i.e. it's not an arbitrary user-defined flag.

May 17 2023, 6:04 PM · Restricted Project, Restricted Project
thesamesam added a comment to D150505: [cmake] Disable GCC lifetime DSE.

Thanks for explaining. @xry111 Are you taking a look or shall I?

May 17 2023, 5:07 PM · Restricted Project, Restricted Project
thesamesam added a comment to D150505: [cmake] Disable GCC lifetime DSE.

I think we can get away with doing that. We already do it with plenty of other GCC args..

May 17 2023, 5:39 AM · Restricted Project, Restricted Project
thesamesam added a comment to D150505: [cmake] Disable GCC lifetime DSE.

It seems this change lets us no longer build LLVM with GCC and then run clang-tidy on it.
In our specific case, we have a downstream project that relies on HandleLLVMOptions, and we run the built clang-tidy on our project.

Is there a possible workaround apart from using Clang to compile?

May 17 2023, 5:35 AM · Restricted Project, Restricted Project

May 15 2023

thesamesam added a comment to D150582: [clangd] Fix test failure when it's built with compiler flags unknown by clang.

Sure & thanks.

May 15 2023, 11:57 PM · Restricted Project, Restricted Project
thesamesam committed rG4ddae8b94139: [clangd] Fix test failure when it's built with compiler flags unknown by clang (authored by xry111).
[clangd] Fix test failure when it's built with compiler flags unknown by clang
May 15 2023, 7:57 PM · Restricted Project, Restricted Project
thesamesam closed D150582: [clangd] Fix test failure when it's built with compiler flags unknown by clang.
May 15 2023, 7:56 PM · Restricted Project, Restricted Project
thesamesam accepted D150582: [clangd] Fix test failure when it's built with compiler flags unknown by clang.

(I even struggled to find docs for the fix we used for clang-tidy, although it obviously works.)

May 15 2023, 7:55 PM · Restricted Project, Restricted Project

May 14 2023

thesamesam committed rG47f5c54f997a: [cmake] Disable GCC lifetime DSE (authored by xry111).
[cmake] Disable GCC lifetime DSE
May 14 2023, 8:35 PM · Restricted Project, Restricted Project
thesamesam closed D150505: [cmake] Disable GCC lifetime DSE.
May 14 2023, 8:35 PM · Restricted Project, Restricted Project
thesamesam added a comment to D150505: [cmake] Disable GCC lifetime DSE.

Phew. Thank you again both.

May 14 2023, 8:32 PM · Restricted Project, Restricted Project

May 13 2023

thesamesam added a comment to D150505: [cmake] Disable GCC lifetime DSE.

Reverted for now to avoid confusing other people. I'll look into this more later today if @xry111 doesn't beat me to it.

May 13 2023, 11:40 PM · Restricted Project, Restricted Project
thesamesam added a reverting change for rGce990b542617: [cmake] Disable GCC lifetime DSE: rG9400c64593b2: Revert "[cmake] Disable GCC lifetime DSE".
May 13 2023, 11:39 PM · Restricted Project, Restricted Project
thesamesam committed rG9400c64593b2: Revert "[cmake] Disable GCC lifetime DSE" (authored by thesamesam).
Revert "[cmake] Disable GCC lifetime DSE"
May 13 2023, 11:39 PM · Restricted Project, Restricted Project
thesamesam added a reverting change for D150505: [cmake] Disable GCC lifetime DSE: rG9400c64593b2: Revert "[cmake] Disable GCC lifetime DSE".
May 13 2023, 11:39 PM · Restricted Project, Restricted Project
thesamesam added inline comments to D150505: [cmake] Disable GCC lifetime DSE.
May 13 2023, 11:13 PM · Restricted Project, Restricted Project
thesamesam added a comment to D150505: [cmake] Disable GCC lifetime DSE.

I can only reproduce it with a GCC-built LLVM.

May 13 2023, 11:12 PM · Restricted Project, Restricted Project
thesamesam added a comment to D150505: [cmake] Disable GCC lifetime DSE.

@dyung Sure, I'll take a look now. If I can't fix it tonight, I'll revert it to keep the bots green.

May 13 2023, 8:11 PM · Restricted Project, Restricted Project
thesamesam added a comment to D150505: [cmake] Disable GCC lifetime DSE.

Apologies - I got the attribution wrong (I forgot that arc doesn't preserve it by default) so I reverted and reapplied with the correct git author.

May 13 2023, 7:47 PM · Restricted Project, Restricted Project
thesamesam committed rGce990b542617: [cmake] Disable GCC lifetime DSE (authored by xry111).
[cmake] Disable GCC lifetime DSE
May 13 2023, 7:47 PM · Restricted Project, Restricted Project
thesamesam committed rGbb974991f4c4: Revert "[cmake] Disable GCC lifetime DSE" (to fix authorship) (authored by thesamesam).
Revert "[cmake] Disable GCC lifetime DSE" (to fix authorship)
May 13 2023, 7:47 PM · Restricted Project, Restricted Project
thesamesam added a reverting change for rG94f7c961c78d: [cmake] Disable GCC lifetime DSE: rGbb974991f4c4: Revert "[cmake] Disable GCC lifetime DSE" (to fix authorship).
May 13 2023, 7:47 PM · Restricted Project, Restricted Project
thesamesam added a reverting change for D150505: [cmake] Disable GCC lifetime DSE: rGbb974991f4c4: Revert "[cmake] Disable GCC lifetime DSE" (to fix authorship).
May 13 2023, 7:46 PM · Restricted Project, Restricted Project
thesamesam committed rG94f7c961c78d: [cmake] Disable GCC lifetime DSE (authored by thesamesam).
[cmake] Disable GCC lifetime DSE
May 13 2023, 12:34 PM · Restricted Project, Restricted Project
thesamesam added a comment to D150505: [cmake] Disable GCC lifetime DSE.

Thank you!

May 13 2023, 12:34 PM · Restricted Project, Restricted Project
thesamesam closed D150505: [cmake] Disable GCC lifetime DSE.
May 13 2023, 12:34 PM · Restricted Project, Restricted Project
thesamesam accepted D150505: [cmake] Disable GCC lifetime DSE.
May 13 2023, 12:27 PM · Restricted Project, Restricted Project

May 12 2023

thesamesam added reviewers for D150505: [cmake] Disable GCC lifetime DSE: tstellar, nikic, eugenis.
May 12 2023, 10:55 PM · Restricted Project, Restricted Project

May 11 2023

thesamesam added a comment to D150226: [Clang] Remove ability to downgrade warning on the diagnostic for setting a non fixed enum to a value outside the range of the enumeration values.

Adding to the concerns raised above, I don't think we're there yet. See https://bugs.gentoo.org/buglist.cgi?quicksearch=enum-constexpr-conversion&list_id=6843355 and keep in mind that a bunch of stuff isn't buildable with Clang 16 yet anyway so I expect a bunch more to be broken on top of that.

May 11 2023, 8:09 PM · Restricted Project

May 4 2023

Herald added a project to D66887: [test-suite] Add GCC C Torture Suite: Restricted Project.
May 4 2023, 6:31 PM · Restricted Project, Restricted Project

Apr 27 2023

thesamesam accepted D149403: [sanitizer] Remove crypt and crypt_r interceptors.
Apr 27 2023, 8:24 PM · Restricted Project, Restricted Project
thesamesam added a comment to D149403: [sanitizer] Remove crypt and crypt_r interceptors.

This loses us coverage on musl and other libcs, unfortunately. musl will be keeping crypt indefinitely, although it does "support" overriding/interposition as well w/ libxcrypt (even if it's somewhat discouraged). But I'm also not sure how we can actually prevent that, so right now, sanitizing crypt at all is dangerous (c.f. the bugs @fweimer shared).

Apr 27 2023, 8:24 PM · Restricted Project, Restricted Project

Apr 26 2023

thesamesam accepted D144073: sanitizers: Disable crypt, crypt_r interceptors for glibc.

Given glibc plans to remove its crypt() anyway, this seems fine.

Apr 26 2023, 12:54 PM · Restricted Project, Restricted Project

Apr 24 2023

Herald added a project to D75056: [Driver] Default to -fno-common for all targets: Restricted Project.
Apr 24 2023, 3:43 PM · Restricted Project, Restricted Project

Apr 16 2023

thesamesam accepted D148496: [compiler-rt] [test] Mark dfsan tests XFAIL on glibc-2.37.

Yes, please. Obviously we want to fix it properly but right now it's a known issue and it's noise when checking for regressions weekly.

Apr 16 2023, 11:02 PM · Restricted Project, Restricted Project

Apr 12 2023

thesamesam added a comment to D147652: [symbolizer] Check existence of input file in GNU mode.

Would it be possible to revert the original changes then reland them with the improvements mentioned above?

Apr 12 2023, 10:01 PM · Restricted Project, Restricted Project

Apr 11 2023

thesamesam added a comment to D147937: fix: Link `atomic` into LLVMOrcJIT on platforms without hardware support for atomics.

You should be able to use the mechanism from https://github.com/llvm/llvm-project/commit/fa981b541365190ae646d2dce575706cd0626cf7 instead for both the original change here and any future changes?

Apr 11 2023, 12:43 AM · Restricted Project, Restricted Project

Mar 27 2023

Herald added a project to D76096: [clang] allow const structs/unions/arrays to be constant expressions for C: Restricted Project.
Mar 27 2023, 11:42 AM · Restricted Project, Restricted Project

Mar 24 2023

thesamesam added a comment to D146804: [libcxx] Add OHOS support.

The atomic changes look fine.

Mar 24 2023, 10:15 PM · Restricted Project, Restricted Project, Restricted Project

Mar 22 2023

thesamesam added a comment to D133375: [CMake] Remove CLANG_DEFAULT_STD_C/CLANG_DEFAULT_STD_CXX.

I've now run into a snag with this. Having clang++.cfg with -std=c++2b makes /usr/bin/clang++ -E -dM - fail with error: invalid argument '-std=c++2b' not allowed with 'C'.
This is invoked by Meson during its configuration process and causes it to fail.

Am I doing something wrong?

Mar 22 2023, 7:20 PM · Restricted Project, Restricted Project, Restricted Project