gcc/libatomic
LIU Hao 902c755930 Always define WIN32_LEAN_AND_MEAN before <windows.h>
Recently, mingw-w64 has got updated <msxml.h> from Wine which is included
indirectly by <windows.h> if `WIN32_LEAN_AND_MEAN` is not defined. The
`IXMLDOMDocument` class has a member function named `abort()`, which gets
affected by our `abort()` macro in "system.h".

`WIN32_LEAN_AND_MEAN` should, nevertheless, always be defined. This
can exclude 'APIs such as Cryptography, DDE, RPC, Shell, and Windows
Sockets' [1], and speed up compilation of these files a bit.

[1] https://learn.microsoft.com/en-us/windows/win32/winprog/using-the-windows-headers

gcc/

	PR middle-end/108300
	* config/xtensa/xtensa-dynconfig.c: Define `WIN32_LEAN_AND_MEAN`
	before <windows.h>.
	* diagnostic-color.cc: Likewise.
	* plugin.cc: Likewise.
	* prefix.cc: Likewise.

gcc/ada/

	PR middle-end/108300
	* adaint.c: Define `WIN32_LEAN_AND_MEAN` before `#include
	<windows.h>`.
	* cio.c: Likewise.
	* ctrl_c.c: Likewise.
	* expect.c: Likewise.
	* gsocket.h: Likewise.
	* mingw32.h: Likewise.
	* mkdir.c: Likewise.
	* rtfinal.c: Likewise.
	* rtinit.c: Likewise.
	* seh_init.c: Likewise.
	* sysdep.c: Likewise.
	* terminals.c: Likewise.
	* tracebak.c: Likewise.

gcc/jit/

	PR middle-end/108300
	* jit-w32.h: Define `WIN32_LEAN_AND_MEAN` before <windows.h>.

libatomic/

	PR middle-end/108300
	* config/mingw/lock.c: Define `WIN32_LEAN_AND_MEAN` before
	<windows.h>.

libffi/

	PR middle-end/108300
	* src/aarch64/ffi.c: Define `WIN32_LEAN_AND_MEAN` before
	<windows.h>.

libgcc/

	PR middle-end/108300
	* config/i386/enable-execute-stack-mingw32.c: Define
	`WIN32_LEAN_AND_MEAN` before <windows.h>.
	* libgcc2.c: Likewise.
	* unwind-generic.h: Likewise.

libgfortran/

	PR middle-end/108300
	* intrinsics/sleep.c: Define `WIN32_LEAN_AND_MEAN` before
	<windows.h>.

libgomp/

	PR middle-end/108300
	* config/mingw32/proc.c: Define `WIN32_LEAN_AND_MEAN` before
	<windows.h>.

libiberty/

	PR middle-end/108300
	* make-temp-file.c: Define `WIN32_LEAN_AND_MEAN` before <windows.h>.
	* pex-win32.c: Likewise.

libssp/

	PR middle-end/108300
	* ssp.c: Define `WIN32_LEAN_AND_MEAN` before <windows.h>.

libstdc++-v3/

	PR middle-end/108300
	* src/c++11/system_error.cc: Define `WIN32_LEAN_AND_MEAN` before
	<windows.h>.
	* src/c++11/thread.cc: Likewise.
	* src/c++17/fs_ops.cc: Likewise.
	* src/filesystem/ops.cc: Likewise.

libvtv/

	PR middle-end/108300
	* vtv_malloc.cc: Define `WIN32_LEAN_AND_MEAN` before <windows.h>.
	* vtv_rts.cc: Likewise.
	* vtv_utils.cc: Likewise.
2023-01-07 06:51:06 +00:00
..
config Always define WIN32_LEAN_AND_MEAN before <windows.h> 2023-01-07 06:51:06 +00:00
testsuite automake: regenerate 2022-08-30 13:26:46 +02:00
.gitignore
acinclude.m4 Add mold detection for libs. 2022-01-31 09:46:44 +01:00
aclocal.m4 Add `--with-toolexeclibdir=' configuration option 2020-01-24 11:24:25 +00:00
auto-config.h.in
cas_n.c Update copyright years. 2022-01-03 10:42:10 +01:00
ChangeLog Update Copyright year in ChangeLog files 2023-01-02 09:23:36 +01:00
configure regenerate configure files 2022-10-12 09:31:32 +02:00
configure.ac make -Werror optional in libatomic/libbacktrace/libgomp/libitm/libsanitizer 2022-02-03 16:10:18 +01:00
configure.tgt libatomic: Add support for LSE and LSE2 2022-11-15 15:08:33 +00:00
exch_n.c Update copyright years. 2022-01-03 10:42:10 +01:00
fadd_n.c Update copyright years. 2022-01-03 10:42:10 +01:00
fand_n.c
fence.c Update copyright years. 2022-01-03 10:42:10 +01:00
fenv.c Update copyright years. 2022-01-03 10:42:10 +01:00
fior_n.c
flag.c Update copyright years. 2022-01-03 10:42:10 +01:00
fnand_n.c
fop_n.c Update copyright years. 2022-01-03 10:42:10 +01:00
fsub_n.c
fxor_n.c
gcas.c Update copyright years. 2022-01-03 10:42:10 +01:00
gexch.c Update copyright years. 2022-01-03 10:42:10 +01:00
glfree.c Update copyright years. 2022-01-03 10:42:10 +01:00
gload.c Update copyright years. 2022-01-03 10:42:10 +01:00
gstore.c Update copyright years. 2022-01-03 10:42:10 +01:00
host-config.h Update copyright years. 2022-01-03 10:42:10 +01:00
init.c
libatomic.map
libatomic_i.h Update copyright years. 2022-01-03 10:42:10 +01:00
load_n.c Update copyright years. 2022-01-03 10:42:10 +01:00
Makefile.am libatomic: Add support for LSE and LSE2 2022-11-15 15:08:33 +00:00
Makefile.in libatomic: regenerate Makefile.in 2022-11-16 15:13:41 +01:00
store_n.c Update copyright years. 2022-01-03 10:42:10 +01:00
tas_n.c [libatomic] Fix return value in libat_test_and_set 2022-03-24 13:30:57 +01:00