binutils-gdb/sim/mips
Mike Frysinger 7eb2a68f28 sim: mips: delete unused PSIZE define
It's unclear what this define is for as it appears to be unused, and
has never been used in the history of the mips sim.  Delete it to tidy
up, and to fix build errors for Windows targets that have a standard
"PSIZE" struct in their system headers.  This doesn't show up yet as
most sim files don't include many system headers, but enabling sockser
code for mingw uncovers the conflict.

Unfortunately the error produced by gcc is inscrutable, but running
it through the preprocessor manually manages to provide a pointer to
the underlying issue.

$ i686-w64-mingw32-gcc ... -c -o dv-sockser.o ../../../../sim/mips/../common/dv-sockser.c
<command-line>: error: expected identifier or '(' before numeric constant
In file included from /usr/i686-w64-mingw32/usr/include/windows.h:71,
                 from /usr/i686-w64-mingw32/usr/include/winsock2.h:23,
                 from ../../gnulib/import/sys/socket.h:684,
                 from ../../gnulib/import/netinet/in.h:43,
                 from ../../../../sim/mips/../common/dv-sockser.c:39:
/usr/i686-w64-mingw32/usr/include/wingdi.h:2934:59: error: unknown type name 'LPSIZE'; did you mean 'LPSIZEL'?
 2934 |   WINGDIAPI WINBOOL WINAPI GetAspectRatioFilterEx(HDC hdc,LPSIZE lpsize);
      |                                                           ^~~~~~
      |                                                           LPSIZEL
...

$ i686-w64-mingw32-gcc ... -E -dD -o dv-sockser.i ../../../../sim/mips/../common/dv-sockser.c
$ i686-w64-mingw32-gcc -c dv-sockser.i
In file included from /usr/i686-w64-mingw32/usr/include/windows.h:69,
                 from /usr/i686-w64-mingw32/usr/include/winsock2.h:23,
                 from ../../gnulib/import/sys/socket.h:684,
                 from ../../gnulib/import/netinet/in.h:43,
                 from ../../../../sim/mips/../common/dv-sockser.c:39:
/usr/i686-w64-mingw32/usr/include/windef.h:104:9: error: expected identifier or '(' before numeric constant
  104 | } SIZE,*PSIZE,*LPSIZE;
      |         ^~
2021-09-09 00:34:21 -04:00
..
aclocal.m4 sim: unify reserved instruction bits settings 2021-07-01 20:53:00 -04:00
ChangeLog-2021 sim: rename ChangeLog files to ChangeLog-2021 2021-08-17 20:27:36 -04:00
configure sim: unify reserved instruction bits settings 2021-07-01 20:53:00 -04:00
configure.ac sim: unify reserved instruction bits settings 2021-07-01 20:53:00 -04:00
cp1.c sim: switch config.h usage to defs.h 2021-05-16 22:38:41 -04:00
cp1.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
dsp2.igen Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
dsp.c sim: switch config.h usage to defs.h 2021-05-16 22:38:41 -04:00
dsp.igen Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
dv-tx3904cpu.c sim: switch config.h usage to defs.h 2021-05-16 22:38:41 -04:00
dv-tx3904irc.c sim: mips: fix uninitialized register use 2021-06-16 01:51:32 -04:00
dv-tx3904sio.c sim: mips: tweak buffer sign 2021-06-16 01:53:09 -04:00
dv-tx3904tmr.c sim: switch config.h usage to defs.h 2021-05-16 22:38:41 -04:00
interp.c sim: split sim-signal.h include out 2021-06-18 00:50:14 -04:00
m16.dc
m16.igen [PATCH] Add micromips support to the MIPS simulator 2015-09-25 15:52:18 +01:00
m16e.igen Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
m16run.c sim: switch config.h usage to defs.h 2021-05-16 22:38:41 -04:00
Makefile.in sim: hw: rework configure option & device selection 2021-06-21 21:36:51 -04:00
mdmx.c sim: switch config.h usage to defs.h 2021-05-16 22:38:41 -04:00
mdmx.igen Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
micromips16.dc [PATCH] Add micromips support to the MIPS simulator 2015-09-25 15:52:18 +01:00
micromips.dc [PATCH] Add micromips support to the MIPS simulator 2015-09-25 15:52:18 +01:00
micromips.igen sim: mips: invert sim_state storage 2021-05-17 01:00:08 -04:00
micromipsdsp.igen Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
micromipsrun.c sim: mips: invert sim_state storage 2021-05-17 01:00:08 -04:00
mips3d.igen Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
mips3264r2.igen Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
mips.dc
mips.igen sim: mips: fix builds for r3900 cpus due to missing check_u64 2016-11-11 01:28:36 -05:00
sb1.igen Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
sim-main.c sim: switch config.h usage to defs.h 2021-05-16 22:38:41 -04:00
sim-main.h sim: mips: delete unused PSIZE define 2021-09-09 00:34:21 -04:00
smartmips.igen Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
tx.igen
vr.igen