On Mon, 2024-06-03 at 22:57 +0200, Rainer Orth wrote: > A couple of gcc.dg/analyzer/fd-*.c tests still FAIL on Solaris. The > reason is always the same: they use macros that don't expand to > simple > numbers, something which c/c-parser.cc > (ana::c_translation_unit::consider_macro) cannot handle: > > * <sys/socket.h>: > > #define SOCK_STREAM NC_TPI_COTS /* stream socket */ > #define SOCK_DGRAM NC_TPI_CLTS /* datagram socket */ > > * <sys/fcntl.h>: > > #define O_ACCMODE (O_SEARCH | O_EXEC | 0x3) > > To avoid the resulting noise, this patch skips the affected tests. > > Tested on i386-pc-solaris2.11, sparc-sun-solaris2.11, and > x86_64-pc-linux-gnu. > > Ok for trunk?
Thanks, LGTM. Dave