gcc/libgcc/config
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
..
aarch64 libgcc: Decrease size of _Unwind_FrameState and even more size of cleared area in uw_frame_state_for 2022-10-06 11:04:52 +02:00
alpha libgcc: Decrease size of _Unwind_FrameState and even more size of cleared area in uw_frame_state_for 2022-10-06 11:04:52 +02:00
arc libgcc, arc: Fix build 2022-10-07 00:16:11 +02:00
arm
avr Daily bump. 2022-09-20 00:17:49 +00:00
bfin libgcc: Decrease size of _Unwind_FrameState and even more size of cleared area in uw_frame_state_for 2022-10-06 11:04:52 +02:00
bpf
c6x
cris
csky libgcc: Decrease size of _Unwind_FrameState and even more size of cleared area in uw_frame_state_for 2022-10-06 11:04:52 +02:00
epiphany
fr30
frv
ft32
gcn
h8300
i386 Always define WIN32_LEAN_AND_MEAN before <windows.h> 2023-01-07 06:51:06 +00:00
ia64
iq2000
libbid Update Copyright year in ChangeLog files 2023-01-02 09:23:36 +01:00
lm32
loongarch libgcc: Decrease size of _Unwind_FrameState and even more size of cleared area in uw_frame_state_for 2022-10-06 11:04:52 +02:00
m32c
m32r
m68k libgcc: Decrease size of _Unwind_FrameState and even more size of cleared area in uw_frame_state_for 2022-10-06 11:04:52 +02:00
mcore
microblaze
mips libgcc: Decrease size of _Unwind_FrameState and even more size of cleared area in uw_frame_state_for 2022-10-06 11:04:52 +02:00
mmix
moxie
msp430
nds32 libgcc: Decrease size of _Unwind_FrameState and even more size of cleared area in uw_frame_state_for 2022-10-06 11:04:52 +02:00
nios2 libgcc: Decrease size of _Unwind_FrameState and even more size of cleared area in uw_frame_state_for 2022-10-06 11:04:52 +02:00
nvptx
or1k libgcc: Decrease size of _Unwind_FrameState and even more size of cleared area in uw_frame_state_for 2022-10-06 11:04:52 +02:00
pa libgcc: Decrease size of _Unwind_FrameState and even more size of cleared area in uw_frame_state_for 2022-10-06 11:04:52 +02:00
pdp11
pru
riscv libgcc: Decrease size of _Unwind_FrameState and even more size of cleared area in uw_frame_state_for 2022-10-06 11:04:52 +02:00
rl78
rs6000 libgcc: Decrease size of _Unwind_FrameState and even more size of cleared area in uw_frame_state_for 2022-10-06 11:04:52 +02:00
rx
s390 libgcc: Decrease size of _Unwind_FrameState and even more size of cleared area in uw_frame_state_for 2022-10-06 11:04:52 +02:00
score
sh libgcc: Decrease size of _Unwind_FrameState and even more size of cleared area in uw_frame_state_for 2022-10-06 11:04:52 +02:00
sol2
sparc libgcc: Decrease size of _Unwind_FrameState and even more size of cleared area in uw_frame_state_for 2022-10-06 11:04:52 +02:00
stormy16
v850
vax
visium
vms
xtensa libgcc: xtensa: remove stray symbols from X*HAL macro definitions 2022-12-08 01:16:56 -08:00
darwin-64.c
darwin-crt-tm.c
darwin-crt3.c
darwin-unwind.ver
darwin10-unwind-find-enc-func.c
gthr-lynx.h
gthr-rtems.h
gthr-vxworks-cond.c
gthr-vxworks-thread.c
gthr-vxworks-tls.c
gthr-vxworks.c
gthr-vxworks.h Prevent secondary warning from diagnostic tweak in gthr-vxworks.h 2022-10-02 09:13:14 +00:00
hardfp.c
libgcc-glibc.ver
libgcc-libsystem.ver
no-sfp-machine.h
no-unwind.h
t-crtfm
t-crtstuff-pic
t-darwin
t-darwin-ehs
t-dfprules
t-eh-dw2-dip
t-fdpbit
t-fixedpoint-gnu-prefix
t-fpbit
t-freebsd-thread
t-gnu-prefix
t-gthr-noweak
t-gthr-vxworks
t-gthr-vxworksae
t-hardfp
t-hardfp-sfdf
t-libgcc-pic
t-libunwind
t-libunwind-elf
t-linux
t-openbsd-thread
t-rtems
t-slibgcc
t-slibgcc-darwin libgcc, Darwin: No early install for the compatibility libgcc_s.1.dylib. 2022-12-24 13:52:46 +00:00
t-slibgcc-elf-ver
t-slibgcc-fuchsia
t-slibgcc-gld
t-slibgcc-gld-nover
t-slibgcc-hpux
t-slibgcc-libgcc
t-slibgcc-nolc-override
t-slibgcc-sld
t-slibgcc-vms
t-softfp
t-softfp-compat
t-softfp-excl
t-softfp-sfdf
t-softfp-sfdftf
t-softfp-tf
t-stack
t-tls
t-vxcrtstuff
t-vxcrtstuffS
t-vxworks Adjust LIBGCC2_INCLUDES for VxWorks and augment comment 2022-10-02 09:33:00 +00:00
t-vxworksae
unwind-dw2-fde-darwin.c
vxcrtstuff.c Improve comments and INITFINI macro use in vxcrtsutff.c 2022-09-29 18:02:21 +00:00