From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from esa2.mentor.iphmx.com (esa2.mentor.iphmx.com [68.232.141.98]) by sourceware.org (Postfix) with ESMTPS id DFE0F3858025 for ; Mon, 1 Nov 2021 20:47:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org DFE0F3858025 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mentor.com IronPort-SDR: ro5QQRkn+4uR0Kx5iJS0oAwern7wROA1JnCSgG+Na2z4mMYJmLY6MS2+hDZIFjdF4W3eRJP1Mm 7Q3Tx0MpL4I5aNjNbpFYxS1rWoFNrBTLcvUisMcN5qEION1tJYZEuJju/N0kEW1DirFlDM8jIT rt27MW3AYsH3t9wzSn0WdmWhxqV+boSLqjbPN+n8cKpJ4q8idmmiFFGa1LFIcX0wxskyG67nbd qyhVHF+8l7S7Uk9vFYPkStBkH5dSnOKZL93hJzTdPD1hg0eqiC9mShe2zm1lqIVfF+NZcLfjxn PY1AQEJl6LcEKTo8LmT/cwOd X-IronPort-AV: E=Sophos;i="5.87,200,1631606400"; d="scan'208";a="67911242" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa2.mentor.iphmx.com with ESMTP; 01 Nov 2021 12:47:10 -0800 IronPort-SDR: KCjJNjRMAR13p9G7Q7fgvB7N4xg1q2ZmIWw8w4JceAx4xQoQ6UPsc3HrSlSS3olMPftgF52Ewr oPxz1NvlTThZT4XPf7auZVC+tnGCkBajJ8AZ11k/ugTUQvfEk+mghBz+KwIo44B/dYL//EMrKY IFM7l7ehZZUop7IBtWYM/ahTkySX1qL5CEPeJetHuNIZtMAhcbTNJ4SQkQMK7FE6ouXzgqhFJu GpwOuFushTYGx3RBISrcVTPm2ur9s5VuNPVAWVyTD2gQIBt1qvE3zNfolSlRRLMz7xPA2Jwoba GtM= Date: Mon, 1 Nov 2021 20:47:04 +0000 From: Joseph Myers X-X-Sender: jsm28@digraph.polyomino.org.uk To: Stafford Horne CC: GLIBC patches Subject: Re: Upstreaming OpenRISC with GCC mainline In-Reply-To: Message-ID: References: User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-05.mgc.mentorg.com (139.181.222.5) To svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) X-Spam-Status: No, score=-3117.2 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, KAM_SHORT, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Nov 2021 20:47:13 -0000 On Sat, 30 Oct 2021, Stafford Horne via Libc-alpha wrote: > Error: >=20 > or1k-glibc-linux-gnu-gcc tst-timespec.c -fdump-analyzer -fdump-lang-a= ll -fdump-tree-all -c -fgnu89-inline -g -O2 -Wall -Wwrite-strings -Wundef = -Werror -fmerge-all-constants -frounding-math -fno-stack-protector -fno-com= mon -Wstrict-prototypes -Wold-style-definition -fmath-errno -I..= /include -I/home/shorne/work/gnu-toolchain/build-many/build/glibcs/or1k-lin= ux-gnu-soft/glibc/support -I/home/shorne/work/gnu-toolchain/build-many/bui= ld/glibcs/or1k-linux-gnu-soft/glibc -I../sysdeps/unix/sysv/linux/or1k -I.= ./sysdeps/or1k/nptl -I../sysdeps/unix/sysv/linux/generic/wordsize-32 -I..= /sysdeps/unix/sysv/linux/generic -I../sysdeps/unix/sysv/linux/include -I..= /sysdeps/unix/sysv/linux -I../sysdeps/nptl -I../sysdeps/pthread -I../sys= deps/gnu -I../sysdeps/unix/inet -I../sysdeps/unix/sysv -I../sysdeps/unix= -I../sysdeps/posix -I../sysdeps/or1k/nofpu -I../sysdeps/ieee754/soft-fp= -I../sysdeps/or1k -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/dbl-64 = -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic -= I.. -I../libio -I. -D_LIBC_REENTRANT -include /home/shorne/work/gnu-toolch= ain/build-many/build/glibcs/or1k-linux-gnu-soft/glibc/libc-modules.h -DMODU= LE_NAME=3Dtestsuite -include ../include/libc-symbols.h -DTOP_NAMESPAC= E=3Dglibc -o /home/shorne/work/gnu-toolchain/build-many/build/glibcs/or1k-l= inux-gnu-soft/glibc/support/tst-timespec.o -MD -MP -MF /home/shorne/work/gn= u-toolchain/build-many/build/glibcs/or1k-linux-gnu-soft/glibc/support/tst-t= imespec.o.dt -MT /home/shorne/work/gnu-toolchain/build-many/build/glibcs/or= 1k-linux-gnu-soft/glibc/support/tst-timespec.o > In file included from tst-timespec.c:22: > ../include/intprops.h:57:3: error: initializer element is not computa= ble at load time > 57 | ((t) (! TYPE_SIGNED (t) = \ > | ^ > tst-timespec.c:48:20: note: in expansion of macro =E2=80=98TYPE_MAXIM= UM=E2=80=99 > 48 | #define TIME_T_MAX TYPE_MAXIMUM (time_t) > | ^~~~~~~~~~~~ > tst-timespec.c:290:19: note: in expansion of macro =E2=80=98TIME_T_MA= X=E2=80=99 > 290 | .upper_bound =3D TIME_T_MAX, .lower_bound =3D 1, .result = =3D 1, > | ^~~~~~~~~~ > ../include/intprops.h:57:3: note: (near initialization for =E2=80=98c= heck_cases[20].upper_bound=E2=80=99) > 57 | ((t) (! TYPE_SIGNED (t) = \ > | ^ > tst-timespec.c:48:20: note: in expansion of macro =E2=80=98TYPE_MAXIM= UM=E2=80=99 > 48 | #define TIME_T_MAX TYPE_MAXIMUM (time_t) > | ^~~~~~~~~~~~ > tst-timespec.c:290:19: note: in expansion of macro =E2=80=98TIME_T_MA= X=E2=80=99 > 290 | .upper_bound =3D TIME_T_MAX, .lower_bound =3D 1, .result = =3D 1, > | ^~~~~~~~~~ >=20 > So maybe we need some more DIAG_* macros here now? No, since (a) this is a plain error, not a warning that's turned to an=20 error by -Werror, so DIAG_* can't help, and (b) it's a definite compiler=20 bug that needs to be fixed in GCC. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103031 --=20 Joseph S. Myers joseph@codesourcery.com=