summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Release the Abseil Logging libraryGravatar Gennadiy Rozental2022-08-25
| | | | | PiperOrigin-RevId: 470080638 Change-Id: I8d9ddfabc7704c383ed5a73abf0411f4c58a4bf7
* Switch time_state to explicit default initialization instead of value ↵Gravatar Andy Getzendanner2022-08-24
| | | | | | | | | | | | | initialization. It looks to me like the language rules treat these the same for this type, but evidently GCC feels differently. This only matters under TSAN where SpinLock has a non-trivial destructor, and under C++20 where ABSL_CONST_INIT is implemented (as constinit) by gcc. Fixes #1253 PiperOrigin-RevId: 469806751 Change-Id: Ic01b0142101f361bc19c95f9f9474e635669c58d
* spinlock.h: Clean up includesGravatar Abseil Team2022-08-24
| | | | | | | | 1. Removes unused includes 2. Replaces <stdint.h> with <cstdint> PiperOrigin-RevId: 469705016 Change-Id: Ic32871be93d01436f5538c44321faad7bd2e4511
* Fix minor typo in absl/time/time.h comment:Gravatar Abseil Team2022-08-23
| | | | | | | "ToDoubleNanoSeconds" -> "ToDoubleNanoseconds" PiperOrigin-RevId: 469525959 Change-Id: I43488ac8706cb857aa3890249a00fc141129dafa
* Support compilers that are unknown to CMakeGravatar Abseil Team2022-08-22
| | | | | | | | | | | | Abseil failed to configure with `ABSL_PROPAGATE_CXX_STD` if the compiler was not known to CMake: target_compile_features no known features for CXX compiler Turns the error into a warning by checking `CMAKE_CXX_COMPILE_FEATURES` before calling `target_compile_features`. PiperOrigin-RevId: 469254470 Change-Id: Ifba006dcdbf6a7112e382075b24678a792dbc827
* Import of CCTZ from GitHub.Gravatar Abseil Team2022-08-18
| | | | | PiperOrigin-RevId: 468509663 Change-Id: I8b8d57cae59b4f44fb15ceb7a0d0c05310714921
* Change bit_width(T) to return int rather than T.Gravatar Abseil Team2022-08-18
| | | | | | | | This matches std::bit_width(). Bug: chromium:1292951 PiperOrigin-RevId: 468495319 Change-Id: I0e428addb6a7353abbf2063c5c2f5820c3bae789
* Import of CCTZ from GitHub.Gravatar Abseil Team2022-08-17
| | | | | PiperOrigin-RevId: 468322981 Change-Id: I61762a1a83d5b138fd2e1a93035a5087a51a4e84
* Merge pull request #1252 from jwest591:conan-fixGravatar Copybara-Service2022-08-17
|\ | | | | | | | | PiperOrigin-RevId: 468237562 Change-Id: Ibb514d2ffe0d7227f495e612eb74a95a8cf963c3
* | Don't try to enable use of ARM NEON intrinsics when compiling in CUDA device ↵Gravatar Abseil Team2022-08-17
| | | | | | | | | | | | | | mode. They are not available in that configuration, even if the host supports them. PiperOrigin-RevId: 468232254 Change-Id: I1cd26eda2962778b62135a31f477928c3bde1124
| * Fix conan build stepGravatar jwest5912022-08-17
|/ | | Update replace_in_file call to match changes in CMakeLists.
* Fix "unsafe narrowing" warnings in absl, 5/n.Gravatar Abseil Team2022-08-17
| | | | | | | | | | | | | | | Addresses failures with the following, in some files: -Wshorten-64-to-32 -Wimplicit-int-conversion -Wsign-compare -Wsign-conversion -Wtautological-unsigned-zero-compare (This specific CL focuses on .cc files in strings/internal/.) Bug: chromium:1292951 PiperOrigin-RevId: 468215101 Change-Id: I07fa487bcf2cf62d403489c3be7a5997cdef8987
* Fix "unsafe narrowing" warnings in absl, 4/n.Gravatar Abseil Team2022-08-17
| | | | | | | | | | | | | | | Addresses failures with the following, in some files: -Wshorten-64-to-32 -Wimplicit-int-conversion -Wsign-compare -Wsign-conversion -Wtautological-unsigned-zero-compare (This specific CL focuses on .cc files in strings/, except /internal/.) Bug: chromium:1292951 PiperOrigin-RevId: 468205572 Change-Id: Ifce3f1a7a4b2b2c359bf7700a11279bebfef8a15
* Import of CCTZ from GitHub.Gravatar Abseil Team2022-08-16
| | | | | PiperOrigin-RevId: 467992681 Change-Id: I086b3da8dd95b0498d5bc118b9243052586239e6
* Update Abseil platform support policy to point to the Foundational C++Gravatar Derek Mauro2022-08-16
| | | | | | | Support Policy PiperOrigin-RevId: 467974699 Change-Id: I1c3e5537aa8be592cace695f5a2f0adb9045efbe
* Import of CCTZ from GitHub.Gravatar Abseil Team2022-08-16
| | | | | PiperOrigin-RevId: 467950116 Change-Id: Iccb0c80c93f1064a82a5537d4519b041609cddd6
* Add --features=external_include_paths to Bazel CI to ignore warningsGravatar Derek Mauro2022-08-15
| | | | | | | from dependencies PiperOrigin-RevId: 467659690 Change-Id: I4804a825af50594fdd49e8927411b805dc5912f5
* Merge pull request #1250 from jonathan-conder-sm:gcc_72Gravatar Copybara-Service2022-08-12
|\ | | | | | | | | PiperOrigin-RevId: 467205997 Change-Id: I2f579b98cb93486bc07d39e54df386e45d02a3fa
* \ Merge pull request #1249 from evanacox:masterGravatar Copybara-Service2022-08-12
|\ \ | | | | | | | | | | | | PiperOrigin-RevId: 467204807 Change-Id: Id7949726d67a16bf2daead7503f84e8b862fdb5f
| | * Workaround bug in GCC 7.2Gravatar Jonathan Conder2022-08-12
| |/ |/| | | | | | | | | See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83830. Before GCC 7.4, __cpp_lib_has_unique_object_representations was defined but has_unique_object_representations_v was not.
| * change explanation message in `ABSL_USE_SYSTEM_INCLUDES` optionGravatar Evan Cox2022-08-11
| |
| * add new CMake option `ABSL_USE_SYSTEM_INCLUDES`Gravatar Evan Cox2022-08-11
|/ | | | | When using Abseil as a dependency with CMake, files that include Abseil headers and have incompatible warning settings can emit compiler warnings. CMake allows you to mark include directories as `SYSTEM` includes, which causes compilers to ignore warnings from those headers. This adds the new option `ABSL_USE_SYSTEM_INCLUDES`, which makes Abseil's include directories be marked with `SYSTEM`.
* Import of CCTZ from GitHub.Gravatar Abseil Team2022-08-11
| | | | | PiperOrigin-RevId: 467004870 Change-Id: I473c1b14e9e5fe55b8a16a0e1bc4439625a947c8
* Merge pull request #1246 from wxilas21:masterGravatar Copybara-Service2022-08-11
|\ | | | | | | | | PiperOrigin-RevId: 466946900 Change-Id: I4ebb641a46e6988dd98945226428e0a284c942b4
| * Delete #include.Gravatar Kim Hyun2022-08-11
| | | | | | Delete deprecated header include
* | remove unused includes and add missing std includes for absl/status/status.hGravatar Abseil Team2022-08-10
| | | | | | | | | | PiperOrigin-RevId: 466659369 Change-Id: I2bd671ef187604f12371e12a5017cac23fdad35b
| * - Fix deprecated header in visual studio version 17.3.0 C++20Gravatar Hyun2022-08-10
|/
* Sort INTERNAL_DLL_TARGETS for easier maintenance.Gravatar Gennadiy Rozental2022-08-09
| | | | | PiperOrigin-RevId: 466492826 Change-Id: I610fb7f6bbdb682558046c6ae995bcc07ba6f98a
* Disable ABSL_HAVE_STD_IS_TRIVIALLY_ASSIGNABLE for clang-cl.Gravatar Abseil Team2022-08-05
| | | | | | | | | The Lexan and MSVC toolchains both set _MSC_VER. The MSVC toolchain must set `ABSL_HAVE_STD_IS_TRIVIALLY_ASSIGNABLE` and `ABSL_HAVE_STD_IS_TRIVIALLY_CONSTRUCTIBLE`, in order to use Abseil workarounds in the absence of these types. This is not necessary for clang-cl. This change excludes clang-cl from the predicate setting these variables. PiperOrigin-RevId: 465589196 Change-Id: I0426ec4f844aabe7cdde5c60725f6a9a6b16479f
* Map the absl::is_trivially_* functions to their std implGravatar Abseil Team2022-08-05
| | | | | | | There's no point redefining these functions if they are supported by the compiler and the version of libstdc++. Also, some of the builtins used by the absl implementation of these functions (e.g. __has_trivial_destructor) have been deprecated in Clang 15. PiperOrigin-RevId: 465554125 Change-Id: I8674c3a5270ce3c654cdf58ae7dbd9d2bda8faa5
* Add more SimpleAtod / SimpleAtof test coverageGravatar Abseil Team2022-08-04
| | | | | PiperOrigin-RevId: 465451170 Change-Id: I5fd161b1ef156d60d7f9a6ecf493bcf802d581e8
* debugging: handle alternate signal stacks better on RISCVGravatar Saleem Abdulrasool2022-08-04
| | | | | | | | | | | | | In the case that we are unwinding with context, if the retreived frame pointer matches the signal context, assume that the value is valid and do not perform confidence checks. In any other case, continue to perform some validation to avoid returning an incorrect frame pointer. Given that the VDSO path is currently untested, remove the code to simplify the logic in the frame walking. PiperOrigin-RevId: 465360612 Change-Id: Iac656012182a12814bafecf20225ba68b90b4db1
* Revert change "Fix "unsafe narrowing" warnings in absl, 4/n.".Gravatar Thomas Köppe2022-08-04
| | | | | | | The change breaks existing code by changing the return type of absl::bit_width. PiperOrigin-RevId: 465295951 Change-Id: Id4ce7c2ac3699ce22aa2b4851a949f9e0104a3d7
* Fix "unsafe narrowing" warnings in absl, 3/n.Gravatar Abseil Team2022-08-04
| | | | | | | | | | | | | | | Addresses failures with the following, in some files: -Wshorten-64-to-32 -Wimplicit-int-conversion -Wsign-compare -Wsign-conversion -Wtautological-unsigned-zero-compare (This specific CL focuses on .cc files in dirs n-t, except string.) Bug: chromium:1292951 PiperOrigin-RevId: 465287204 Change-Id: I0fe98ff78bf3c08d86992019eb626755f8b6803e
* Fix "unsafe narrowing" warnings in absl, 4/n.Gravatar Abseil Team2022-08-04
| | | | | | | | | | | | | | | Addresses failures with the following, in some files: -Wshorten-64-to-32 -Wimplicit-int-conversion -Wsign-compare -Wsign-conversion -Wtautological-unsigned-zero-compare (This specific CL focuses on .cc files in strings/, except /internal/.) Bug: chromium:1292951 PiperOrigin-RevId: 465285043 Change-Id: I37e9d1b4c4e9aa655b720da1467927af2aba995e
* Fix "unsafe narrowing" warnings in absl, 2/n.Gravatar Abseil Team2022-08-01
| | | | | | | | | | | | | | | Addresses failures with the following, in some files: -Wshorten-64-to-32 -Wimplicit-int-conversion -Wsign-compare -Wsign-conversion -Wtautological-unsigned-zero-compare (This specific CL focuses on .cc files in dirs a-h.) Bug: chromium:1292951 PiperOrigin-RevId: 464541951 Change-Id: If23b63ccea8e9b730159ff1c7288e9300a40b6bd
* debugging: honour `STRICT_UNWINDING` in RISCV pathGravatar Saleem Abdulrasool2022-07-29
| | | | | | | | | | | | | The changes in d6f96eda14aca77748a439f05a567a46ce87e462 enabled handling cases where the stack may be non-contiguous or not fully symbolicated (e.g. in cases of alternate signal stacks). However, it did not properly honour the requests from the caller to perform a strict unwinding where such frames are terminated upon the discontinuity. This repairs that condition. Hoist the alignment check since that is safe to perform early. PiperOrigin-RevId: 464160529 Change-Id: Ic65645928ec60c2a3b4844f3abd4fed1b991edab
* Fix "unsafe narrowing" warnings in absl, 1/n.Gravatar Abseil Team2022-07-28
| | | | | | | | | | | | | | | Addresses failures with the following, in some files: -Wshorten-64-to-32 -Wimplicit-int-conversion -Wsign-compare -Wsign-conversion -Wtautological-unsigned-zero-compare (This specific CL focuses on .h and win32 .inc files.) Bug: chromium:1292951 PiperOrigin-RevId: 463835431 Change-Id: If8e5f7f651d5cd96035e23e4623bdb08a7fedabe
* Add ABSL_IS_TRIVIALLY_RELOCATABLE and ABSL_ATTRIBUTE_TRIVIAL_ABI macros for ↵Gravatar Evan Brown2022-07-27
| | | | | | | use with clang's __is_trivially_relocatable and [[clang::trivial_abi]]. PiperOrigin-RevId: 463668740 Change-Id: I2d2d2f53d8184a7e4f7c848c2a5f5140c2481d72
* Merge pull request #1223 from ElijahPepe:fix/implement-snprintf-safelyGravatar Copybara-Service2022-07-27
|\ | | | | | | | | PiperOrigin-RevId: 463581990 Change-Id: I47359d4d2d2fcd2365b5ff9a5c3b61b5751e4ed2
* | Fix frame pointer alignment check.Gravatar Abseil Team2022-07-26
| | | | | | | | | | | | | | The frame pointer sanity check in NextStackFrame() was more restrictive than it is necessary. The frame pointer is used to load the saved link-register and the address for the next stack frame. So it only needs to be 8-byte aligned. The aarch64 ABI does not specify an alignment requirement for the frame point. PiperOrigin-RevId: 463368519 Change-Id: I473e05181603288f14734fe29013900c7505e201
* | Fixed sign-conversion warning in code.Gravatar Abseil Team2022-07-25
| | | | | | | | | | PiperOrigin-RevId: 463214218 Change-Id: I54a37fd9560b480f9eaf0454670eacf875015fe8
* | Import of CCTZ from GitHub.Gravatar Abseil Team2022-07-25
| | | | | | | | | | PiperOrigin-RevId: 463153060 Change-Id: I6d24915c52bfe6507864df30aad99ba4fea2ea68
* | Add missing include for std::unique_ptrGravatar Abseil Team2022-07-22
| | | | | | | | | | PiperOrigin-RevId: 462681925 Change-Id: Ic5610cb4124b7f60a00817ca2f1d52674b27c168
* | Do not re-close files on EINTRGravatar David Majnemer2022-07-22
| | | | | | | | | | | | | | | | | | POSIX is unclear what state a file descriptor is in after a signal is delivered in the middle of close. On Linux, the file is closed even if it returns -1 with errno=EINTR. As such, do not use errno at all when closing files. PiperOrigin-RevId: 462638735 Change-Id: Ie73da1f3c83b1099bef146e1ea32e9a4818597cf
| * fix: properly create the b integerGravatar Elijah Conners2022-07-21
| | | | | | | | Signed-off-by: Elijah Conners <business@elijahpepe.com>
* | Renamespace absl::raw_logging_internal to absl::raw_log_internal to match ↵Gravatar Andy Getzendanner2022-07-20
| | | | | | | | | | | | | | (upcoming) non-raw logging namespace. PiperOrigin-RevId: 462213222 Change-Id: I3b9371097b368d55cc86b6106d6dec24ce122762
| * fix(mutex): safely call snprintfGravatar Elijah Conners2022-07-19
|/ | | | | | | | | | | In the PostSynchEvent() function, the pos integer uses an implementation of snprintf that is fundamentally unsafe: since the return value of snprintf is the number of characters that would have been written to the buffer, if an operation reaches the end of the buffer with more than one character discarded, the return value will be greater than the buffer size, requiring a check of the buffer's current size. Signed-off-by: Elijah Conners <business@elijahpepe.com>
* Check for negative return values from ReadFromOffsetGravatar David Majnemer2022-07-18
| | | | | | | | | In some places, we check if the amount we read is a multiple of some amount we are interested in. However, ReadFromOffset returns -1 when it errors. Certain record sizes can cause ReadFromOffset to cause us to think that we succeeded when we did not. It also results in confusing messages in logs. PiperOrigin-RevId: 461798762 Change-Id: I8c9c7f2cea4d1789e95e50833d5405239a47f02e
* Use HTTPS RFC URLs, which work regardless of the browser's locale.Gravatar Abseil Team2022-07-18
| | | | | PiperOrigin-RevId: 461737981 Change-Id: Iefb1d703725f0a258b5ee315c55277b261b75418