gcc/libstdc++-v3/testsuite/27_io
Martin Sebor 9a27acc30a Make full use of context-sensitive ranges in access warnings.
gcc/ChangeLog:

	* builtins.c (check_strncat_sizes): Pass access_data ctor additional
	arguments.
	(expand_builtin_memcmp): Move code to gimple-ssa-warn-access.cc.
	(expand_builtin_fork_or_exec): Same.
	* gimple-array-bounds.cc (array_bounds_checker::check_mem_ref): Pass
	compute_objsize additional arguments.
	(inbounds_memaccess_p): Same.
	(array_bounds_checker::check_array_bounds): Add an assert.  Stash
	statement in a member.
	(check_array_bounds_dom_walker::before_dom_children): Same.
	* gimple-array-bounds.h (array_bounds_checker::m_stmt): New member.
	* gimple-ssa-sprintf.c (get_destination_size): Add an argument.
	(handle_printf_call): Pass a new argument.
	* gimple-ssa-warn-access.cc (get_size_range): Add an argument.
	(check_access): Add an argument and pass it along to callees.
	(check_read_access): Make a member function.
	(pass_waccess::check_strcat): Pass access_data ctor additional
	arguments.
	(pass_waccess::check_strncat): Same.
	(pass_waccess::check_stxcpy): Same.
	(pass_waccess::check_stxncpy): Same.
	(pass_waccess::check_strncmp): Same.
	(pass_waccess::check_read_access): Same.
	(pass_waccess::check_builtin): Same.
	(pass_waccess::maybe_check_access_sizes): Same.
	(pass_waccess::maybe_check_dealloc_call): Same.
	* gimple-ssa-warn-access.h (check_read_access): Declare a new
	member function.
	* pointer-query.cc (compute_objsize_r): Add an argument.
	(gimple_call_return_array): Same.
	(gimple_call_alloc_size): Same.
	(access_ref::access_ref): Same.
	(access_ref::get_ref): Same.
	(pointer_query::get_ref): Same.
	(handle_min_max_size): Pass an arguments to callees.
	(handle_array_ref): Add an argument.
	(handle_mem_ref): Same.
	(compute_objsize): Same.
	* pointer-query.h (struct access_ref): Adjust signatures.
	(struct access_data): Same.
	(gimple_call_alloc_size): Add an argument.
	(gimple_parm_array_size): Same.
	(compute_objsize): Same.
	* tree-ssa-strlen.c (strlen_pass::adjust_last_stmt): Pass an additional
	argument to compute_objsize.
	(strlen_pass::maybe_warn_overflow): Same.
	(maybe_diag_stxncpy_trunc): Same.

gcc/testsuite/ChangeLog:

	* gcc.dg/Wstringop-overflow-22.c: Correct typos.
	* gcc.dg/Wstringop-overflow-81.c: New test.

libstdc++-v3/ChangeLog:

	* testsuite/21_strings/basic_string/capacity/1.cc: Also suppress
	-Wstringop-overread.
	* testsuite/27_io/filesystem/path/factory/u8path-char8_t.cc: Same.
2021-10-26 16:53:23 -06:00
..
basic_filebuf libstdc++: Move test that depends on wchar_t I/O to wchar_t sub-directory 2021-10-09 00:57:48 +01:00
basic_fstream libstdc++: Remove redundant -std=gnu++17 options from filesystem tests 2021-05-10 16:22:53 +01:00
basic_ifstream libstdc++: Remove redundant -std=gnu++17 options from filesystem tests 2021-05-10 16:22:53 +01:00
basic_ios
basic_iostream libstdc++: Rename tests with incorrect extension 2021-09-17 12:40:41 +01:00
basic_istream libstdc++: Implement LWG 415 for std::ws 2021-06-28 13:34:49 +01:00
basic_istringstream libstdc++: Only use dynamic_cast in tests when RTTI is enabled 2021-02-12 14:30:13 +00:00
basic_ofstream libstdc++: Remove redundant -std=gnu++17 options from filesystem tests 2021-05-10 16:22:53 +01:00
basic_ostream libstdc++: Improve test for printing volatile pointers 2021-10-05 15:56:55 +01:00
basic_ostringstream libstdc++: Only use dynamic_cast in tests when RTTI is enabled 2021-02-12 14:30:13 +00:00
basic_streambuf
basic_stringbuf
basic_stringstream libstdc++: Only use dynamic_cast in tests when RTTI is enabled 2021-02-12 14:30:13 +00:00
basic_syncbuf
basic_syncstream
filesystem Make full use of context-sensitive ranges in access warnings. 2021-10-26 16:53:23 -06:00
fpos
headers libstdc++: Do not assume std::FILE is complete [PR 99270] 2021-02-25 15:35:58 +00:00
ios_base
manipulators libstdc++: Remove redundant -std=gnu++17 option from remaining tests 2021-05-10 16:22:54 +01:00
objects
types libstdc++: Remove redundant -std=gnu++17 option from remaining tests 2021-05-10 16:22:54 +01:00
rvalue_streams-2.cc libstdc++: Implement LWG 1203 for rvalue iostreams 2021-04-30 14:33:19 +01:00
rvalue_streams.cc libstdc++: Implement LWG 1203 for rvalue iostreams 2021-04-30 14:33:19 +01:00