gcc/libstdc++-v3
Jonathan Wakely 769fae76df libstdc++: Fix some algos for 16-bit size_t [PR108221]
Some standard algorithms fail to compile when size_t or ptrdiff_t is
narrower than int. The __lg helper function is ambiguous if ptrdiff_t is
short or __int20, so replace it with a function template that works for
those types as well as signed/unsigned int/long/long long. The helpers
for stable_sort perform arithmetic on size values and assume the types
won't change, which isn't true if the type promotes to int.

libstdc++-v3/ChangeLog:

	PR libstdc++/108221
	* include/bits/stl_algobase.h (__lg): Replace six overloads with
	a single function template for all integer types.
	* include/bits/stl_algo.h (__merge_adaptive_resize): Cast
	arithmetic results back to _Distance.
2023-01-10 10:09:21 +00:00
..
config Fix atomic operations on PA-RISC 2.0 processors. 2023-01-05 18:15:18 +00:00
doc libstdc++: Change return type of std::bit_width to int (LWG 3656) 2022-11-25 00:22:01 +00:00
include libstdc++: Fix some algos for 16-bit size_t [PR108221] 2023-01-10 10:09:21 +00:00
libsupc++ libstdc++: Fix _Hash_bytes for I16LP32 targets [PR107885] 2022-11-28 16:57:35 +00:00
po libstdc++: Don't use gstdint.h anymore 2022-10-29 00:55:42 +01:00
python libstdc++: Fix <chrono> printers for Python 2 [PR108212] 2023-01-05 16:28:43 +00:00
scripts libstdc++: use grep -E instead of egrep in scripts 2022-06-24 20:31:31 +08:00
src Always define WIN32_LEAN_AND_MEAN before <windows.h> 2023-01-07 06:51:06 +00:00
testsuite libstdc++: Add feature-test macros for implemented C++23 views [PR108260] 2023-01-06 10:32:10 -05:00
acinclude.m4 Reimplement GNU threads library on native Windows 2022-12-23 23:58:06 +00:00
aclocal.m4 libstdc++: Don't use gstdint.h anymore 2022-10-29 00:55:42 +01:00
ChangeLog Daily bump. 2023-01-08 00:16:59 +00:00
ChangeLog-1998
ChangeLog-1999
ChangeLog-2000
ChangeLog-2001
ChangeLog-2002
ChangeLog-2003
ChangeLog-2004
ChangeLog-2005
ChangeLog-2006
ChangeLog-2007
ChangeLog-2008
ChangeLog-2009
ChangeLog-2010
ChangeLog-2011
ChangeLog-2012
ChangeLog-2013
ChangeLog-2014
ChangeLog-2015
ChangeLog-2016
ChangeLog-2017
ChangeLog-2018
ChangeLog-2019
ChangeLog-2020
ChangeLog-2021 Rotate ChangeLog files - part 1 - add ChangeLog-2021. 2022-01-03 10:18:16 +01:00
ChangeLog-2022 Rotate ChangeLog files. 2023-01-01 16:20:13 +01:00
config.h.in Reimplement GNU threads library on native Windows 2022-12-23 23:58:06 +00:00
configure Reimplement GNU threads library on native Windows 2022-12-23 23:58:06 +00:00
configure.ac libstdc++: Implement C++20 time zone support in <chrono> 2022-12-22 23:34:20 +00:00
configure.host
crossconfig.m4 libstdc++: Allow emergency EH alloc pool size to be tuned [PR68606] 2022-10-11 16:21:48 +01:00
fragment.am
linkage.m4
Makefile.am Update copyright years. 2022-01-03 10:42:10 +01:00
Makefile.in libstdc++: Don't use gstdint.h anymore 2022-10-29 00:55:42 +01:00
README

file: libstdc++-v3/README

New users may wish to point their web browsers to the file
index.html in the 'doc/html' subdirectory.  It contains brief
building instructions and notes on how to configure the library in
interesting ways.