1. 21 Feb, 2024 1 commit
  2. 20 Feb, 2024 5 commits
  3. 17 Feb, 2024 1 commit
    • PR #1625: absl::is_trivially_relocatable now respects assignment operators · 14b8a4ea
      Imported from GitHub PR https://github.com/abseil/abseil-cpp/pull/1625
      
      Trivial relocatability also requires that the type not do anything weird with its assignment operator; update the type-trait to reflect this. (This is the definition used by BSL, Folly, HPX, Thrust, Parlay, Amadeus, and P1144.)
      
      This is important if we want to use `absl::is_trivially_relocatable` as a gate for memcpy optimizations in `inlined_vector::erase` and/or `inlined_vector::swap`, because in those cases relocation is used to replace part of a sequence involving assignment; the optimization requires an assignment operator that behaves value-semantically.
      
      Clang's builtin currently fails to check the assignment operator, so we stop using it entirely for now. We already refused to use it on Win32, Win64, and Apple, for various unrelated reasons. I'm working on giving Clang's builtin the behavior that would let us re-enable it here.
      
      Assume that any compiler providing both `__cpp_impl_trivially_relocatable` and a builtin `__is_trivially_relocatable(T)` will use the appropriate (P1144) definition for its builtin. Right now there's only one such compiler (the P1144 reference implementation, which forks Clang), so this is largely a moot point, but I'm being optimistic.
      Merge d943abdbabc1b7080aa5f0a2fff3e724135164dc into 34604d5b
      
      Merging this change closes #1625
      
      COPYBARA_INTEGRATE_REVIEW=https://github.com/abseil/abseil-cpp/pull/1625 from Quuxplusone:trivially-relocatable d943abdbabc1b7080aa5f0a2fff3e724135164dc
      PiperOrigin-RevId: 607977323
      Change-Id: I6436a60326c6d1064bdd71ec2e15b86b7a29efd4
      Arthur O'Dwyer committed
  4. 16 Feb, 2024 2 commits
  5. 15 Feb, 2024 1 commit
  6. 14 Feb, 2024 3 commits
  7. 13 Feb, 2024 2 commits
    • PR #1412: Filter out `-Xarch_` flags from pkg-config files · 0a362eb2
      Imported from GitHub PR https://github.com/abseil/abseil-cpp/pull/1412
      
      In Clang, an `-Xarch_` compiler flag indicates that its successor only applies to the specified platform (e.g., `-Xarch_x86_64 -maes`). This is used in `absl/copts/AbseilConfigureCopts.cmake` to selectively enable hardware AES support on Apple platforms.
      
      However, when generating pkg-config files, those `-m` flags are filtered out, while the `-Xarch_` flags that precede them are left untouched. This led to the error reported in #1408.
      
      Fix that by filtering out each `-Xarch_` flag with its successor at once.
      
      Fixes #1408.
      Merge 89d20ab816b7cead56f05d5a6bc5146d1c4f4335 into 34604d5b
      
      Merging this change closes #1412
      
      COPYBARA_INTEGRATE_REVIEW=https://github.com/abseil/abseil-cpp/pull/1412 from ZhongRuoyu:xarch-pkgconfig 89d20ab816b7cead56f05d5a6bc5146d1c4f4335
      PiperOrigin-RevId: 606730193
      Change-Id: I3e177a56721acd3145fd03c64102741898afd2a5
      Ruoyu Zhong committed
    • `demangle`: Add complexity guard to `ParseQRequiresExpr` · 4ea6e47c
      This function copies the parser's state onto the stack in order to perform backtracking.
      Adding a complexity guard will ensure that it fails gracefully, instead of contributing to excessive consumption of stack space.
      
      PiperOrigin-RevId: 606720511
      Change-Id: I2f6f03e5f8bc4cc571a4159ecfc2af6f3e00fa68
      Dino Radakovic committed
  8. 12 Feb, 2024 2 commits
  9. 10 Feb, 2024 1 commit
  10. 09 Feb, 2024 3 commits
  11. 08 Feb, 2024 4 commits
  12. 07 Feb, 2024 6 commits
  13. 06 Feb, 2024 2 commits
  14. 05 Feb, 2024 1 commit
  15. 04 Feb, 2024 1 commit
  16. 03 Feb, 2024 1 commit
  17. 02 Feb, 2024 3 commits
  18. 01 Feb, 2024 1 commit
    • Decrease the precision of absl::Now in x86-64 debug builds · 971eada3
      CycleClock::Now utilizes ABSL_INTERNAL_CYCLECLOCK_SHIFT to discourage reliance
      on the raw CPU cycle counter values. As a side effect, it discourages
      strictly-increasing assumption. Apply the idea to discourage over-reliance on
      the precision of absl::Now/absl::GetCurrentTimeNanos.
      
      Programs relying on a very high precision often exhibit portability issues on
      machines with a lower cycle counter precision, or worse, race conditions. For
      example, Apple M1 emulated x86 RDTSC only guarantees weakly-increasing RDTSC
      values.
      
      x86 clock speed is usually measured in GHz and is still precise after we drop 8
      least significant bits.
      
      PiperOrigin-RevId: 603493500
      Change-Id: Ib1b00075109283f5dbcb39a43fe0ab722351a1e2
      Fangrui Song committed