public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [r14-5930 Regression] FAIL: gcc.c-torture/compile/libcall-2.c   -Os  (test for excess errors) on Linux/x86_64
@ 2023-11-28 23:19 haochen.jiang
  2023-11-29  6:51 ` Jose E. Marchesi
  0 siblings, 1 reply; 11+ messages in thread
From: haochen.jiang @ 2023-11-28 23:19 UTC (permalink / raw)
  To: jose.marchesi, gcc-regression, gcc-patches, haochen.jiang

On Linux/x86_64,

f31a019d1161ec78846473da743aedf49cca8c27 is the first bad commit
commit f31a019d1161ec78846473da743aedf49cca8c27
Author: Jose E. Marchesi <jose.marchesi@oracle.com>
Date:   Fri Nov 24 06:30:28 2023 +0100

    Emit funcall external declarations only if actually used.

caused

FAIL: gcc.c-torture/compile/libcall-2.c   -O0  (test for excess errors)
FAIL: gcc.c-torture/compile/libcall-2.c   -O1  (test for excess errors)
FAIL: gcc.c-torture/compile/libcall-2.c   -O2 -flto -fno-use-linker-plugin -flto-partition=none  (test for excess errors)
FAIL: gcc.c-torture/compile/libcall-2.c   -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects  (test for excess errors)
FAIL: gcc.c-torture/compile/libcall-2.c   -O2  (test for excess errors)
FAIL: gcc.c-torture/compile/libcall-2.c   -O3 -g  (test for excess errors)
FAIL: gcc.c-torture/compile/libcall-2.c   -Os  (test for excess errors)

with GCC configured with

../../gcc/configure --prefix=/export/users/haochenj/src/gcc-bisect/master/master/r14-5930/usr --enable-clocale=gnu --with-system-zlib --with-demangler-in-ld --with-fpmath=sse --enable-languages=c,c++,fortran --enable-cet --without-isl --enable-libmpx x86_64-linux --disable-bootstrap

To reproduce:

$ cd {build_dir}/gcc && make check RUNTESTFLAGS="compile.exp=gcc.c-torture/compile/libcall-2.c --target_board='unix{-m32}'"
$ cd {build_dir}/gcc && make check RUNTESTFLAGS="compile.exp=gcc.c-torture/compile/libcall-2.c --target_board='unix{-m32\ -march=cascadelake}'"

(Please do not reply to this email, for question about this report, contact me at haochen dot jiang at intel.com.)
(If you met problems with cascadelake related, disabling AVX512F in command line might save that.)
(However, please make sure that there is no potential problems with AVX512.)

^ permalink raw reply	[flat|nested] 11+ messages in thread
* Re: [r14-5930 Regression] FAIL: gcc.c-torture/compile/libcall-2.c -Os (test for excess errors) on Linux/x86_64
@ 2023-12-01 13:55 FX Coudert
  2023-12-01 14:38 ` Iain Sandoe
  0 siblings, 1 reply; 11+ messages in thread
From: FX Coudert @ 2023-12-01 13:55 UTC (permalink / raw)
  To: GCC Patches; +Cc: Jakub Jelinek, jose.marchesi, Iain Sandoe

That commit makes gcc.target/i386/libcall-1.c on darwin:

FAIL: gcc.target/i386/libcall-1.c scan-assembler globl\t__divti3

because the pattern is not found, the only mention of divti3 in the generated assembly is:

LCFI0:
        movabsq $_b@GOTOFF, %rdx
        movabsq $___divti3@PLTOFF, %rax
        leaq    L2(%rip), %r15
        pushq   %rbx


The source code is:

---
/* Make sure that external refences for libcalls are generated even for
   indirect calls.  */

/* { dg-do compile { target int128 } } */
/* { dg-options "-O2 -mcmodel=large" } */
/* { dg-final { scan-assembler "globl\t__divti3" } } */

__int128 a, b; void foo () { a = a / b; }
---

Looking at, for example, gcc.target/i386/falign-functions-3.c it seems that test avoids scanning for global references on darwin. Probably the new test needs the same exception.

FX

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2023-12-11  8:23 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-28 23:19 [r14-5930 Regression] FAIL: gcc.c-torture/compile/libcall-2.c -Os (test for excess errors) on Linux/x86_64 haochen.jiang
2023-11-29  6:51 ` Jose E. Marchesi
2023-11-29  7:51   ` Jakub Jelinek
2023-11-29  8:20     ` Jose E. Marchesi
2023-11-29  8:22       ` Jakub Jelinek
2023-11-29  8:32         ` Jose E. Marchesi
2023-12-01 13:55 FX Coudert
2023-12-01 14:38 ` Iain Sandoe
2023-12-02  9:04   ` FX Coudert
2023-12-04  8:40     ` Jose E. Marchesi
2023-12-11  8:23       ` FX Coudert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).