Re: Let each 'lto_init' determine the default 'LTO_OPTIONS', and 'torture-init' the 'LTO_TORTURE_OPTIONS' (was: Update testsuite to run with slim LTO)

2023-05-09 Thread Christophe Lyon via Gcc-patches
Hi! On Wed, 3 May 2023 at 13:47, Richard Biener via Gcc-patches < gcc-patches@gcc.gnu.org> wrote: > On Wed, 3 May 2023, Thomas Schwinge wrote: > > > Hi! > > > > This very likely isn't the only instance of such a kind of problem in the > > GCC testsuite ;-) -- but it's one that I've run into, and

Re: Let each 'lto_init' determine the default 'LTO_OPTIONS', and 'torture-init' the 'LTO_TORTURE_OPTIONS' (was: Update testsuite to run with slim LTO)

2023-05-03 Thread Richard Biener via Gcc-patches
On Wed, 3 May 2023, Thomas Schwinge wrote: > Hi! > > This very likely isn't the only instance of such a kind of problem in the > GCC testsuite ;-) -- but it's one that I've run into, and analyzed: > > On 2011-09-27T19:23:22+0200, Jan Hubicka wrote: > > this patch updates testsuite to cover both

Let each 'lto_init' determine the default 'LTO_OPTIONS', and 'torture-init' the 'LTO_TORTURE_OPTIONS' (was: Update testsuite to run with slim LTO)

2023-05-03 Thread Thomas Schwinge
ate: Tue, 2 May 2023 19:57:47 +0200 Subject: [PATCH] Let each 'lto_init' determine the default 'LTO_OPTIONS', and 'torture-init' the 'LTO_TORTURE_OPTIONS' Otherwise, for example for 'RUNTESTFLAGS' of '--target_board=unix\{-m64,-m32\}&#x

Re: [RFA:] fix breakage with "Update testsuite to run with slim LTO"

2011-10-24 Thread Richard Guenther
On Fri, Oct 21, 2011 at 1:56 PM, Rainer Orth wrote: > Iain Sandoe writes: > >> It looks like the gnat testsuite is also broken - but HP's fix doesn't >> recover that. >> .. will try and take a look - but short on time today, > > I think I see what's going on: in gnat.log, I find > > Running /vol/

Re: [RFA:] fix breakage with "Update testsuite to run with slim LTO"

2011-10-21 Thread Hans-Peter Nilsson
> Date: Fri, 21 Oct 2011 20:34:05 +0200 > From: Jan Hubicka > I guess we could make ipa-dump/rtl-dump/tree-dump scanning to disable fat lto > and introduce variants intended to scan late tree dumps and ipa execution > dumps... Ok, sounds like a plan. Are there any such scan-tests-with-late-thi

Re: [RFA:] fix breakage with "Update testsuite to run with slim LTO"

2011-10-21 Thread Jan Hubicka
> > Meh... Please no, this was the kind of scatter-patches my patch > aimed to avoid... for example, easy to miss some tests. > > Instead, on top of my patch, just copy the > scan-assembler_required_options proc to a > scan-tree-dump_required_options. ...no wait, should forcing > fat-lto be don

Re: [RFA:] fix breakage with "Update testsuite to run with slim LTO"

2011-10-21 Thread Hans-Peter Nilsson
> Date: Fri, 21 Oct 2011 17:44:15 +0200 > From: Jan Hubicka > I also noticed that tests scanning output of late optimization passes are > now getting UNRESOLVED state with slim LTO. We don't really lose coverage > here because we test fat LTO with the other compilation, but probably easiest > is

Re: [RFA:] fix breakage with "Update testsuite to run with slim LTO"

2011-10-21 Thread Jan Hubicka
> If running the gnat.dg testsuite, lib/gcc-dg.exp is now calling > check_linker_plugin_available early, which ultimately calls > ${tool}_target_compile. For all languages but Ada, > ${tool}_target_compile can compile .c files just fine, but > gnat_target_compile (which uses gnatmake) cannot, so i

Re: [RFA:] fix breakage with "Update testsuite to run with slim LTO"

2011-10-21 Thread Rainer Orth
Iain Sandoe writes: > It looks like the gnat testsuite is also broken - but HP's fix doesn't > recover that. > .. will try and take a look - but short on time today, I think I see what's going on: in gnat.log, I find Running /vol/gcc/src/hg/trunk/local/gcc/testsuite/gnat.dg/dg.exp ... ERROR: tc

Re: [RFA:] fix breakage with "Update testsuite to run with slim LTO"

2011-10-21 Thread Iain Sandoe
On 21 Oct 2011, at 10:31, Jan Hubicka wrote: Date: Fri, 21 Oct 2011 00:19:32 +0200 From: Jan Hubicka Yes, if we scan assembler, we likely want -fno-fat-lto-objects. then IIUC you need to patch *all* torture tests that use scan-assembler and scan-assembler-not. Alternatively, patch somewher

Re: [RFA:] fix breakage with "Update testsuite to run with slim LTO"

2011-10-21 Thread Jan Hubicka
> > Date: Fri, 21 Oct 2011 00:19:32 +0200 > > From: Jan Hubicka > > Yes, if we scan assembler, we likely want -fno-fat-lto-objects. > > > > then IIUC you need to patch *all* torture tests that use > > > scan-assembler and scan-assembler-not. Alternatively, patch > > > somewhere else, like not pa

[RFA:] fix breakage with "Update testsuite to run with slim LTO"

2011-10-20 Thread Hans-Peter Nilsson
> Date: Fri, 21 Oct 2011 00:19:32 +0200 > From: Jan Hubicka > Yes, if we scan assembler, we likely want -fno-fat-lto-objects. > > then IIUC you need to patch *all* torture tests that use > > scan-assembler and scan-assembler-not. Alternatively, patch > > somewhere else, like not passing it if ce

Re: Breakage with "Update testsuite to run with slim LTO"

2011-10-20 Thread Jan Hubicka
> > Date: Tue, 27 Sep 2011 19:23:22 +0200 > > From: Jan Hubicka > > > this patch updates testsuite to cover both fat and slim LTO when linker > > plugin > > is used and also both linker plugin and collect2 paths. I didn't wanted to > > slow down testing too much so I just distributes the flags

Re: Breakage with "Update testsuite to run with slim LTO"

2011-10-20 Thread Andi Kleen
Looks like this patch broke, for cris-elf with TOT binutils: Running /tmp/hpautotest-gcc1/gcc/gcc/testsuite/gcc.dg/torture/dg-torture.exp ... FAIL: gcc.dg/torture/cris-asm-mof-1.c scan-assembler in-asm: .mof FAIL: gcc.dg/torture/cris-asm-mof-1.c scan-assembler out-asm: .mof FAIL: gcc.dg/torture

Breakage with "Update testsuite to run with slim LTO"

2011-10-20 Thread Hans-Peter Nilsson
> Date: Tue, 27 Sep 2011 19:23:22 +0200 > From: Jan Hubicka > this patch updates testsuite to cover both fat and slim LTO when linker plugin > is used and also both linker plugin and collect2 paths. I didn't wanted to > slow down testing too much so I just distributes the flags across existing

Re: Update testsuite to run with slim LTO

2011-09-30 Thread Diego Novillo
On 11-09-27 13:23 , Jan Hubicka wrote: sync and pr34850 tests doesn't pass with slim LTO. The reason is that they excpects diagnostics that is output too late in compilation (usually at expansion time). These should be probably fixed as QOI issue but they are not real bug - the diagnostics will

Update testsuite to run with slim LTO

2011-09-27 Thread Jan Hubicka
Hi, this patch updates testsuite to cover both fat and slim LTO when linker plugin is used and also both linker plugin and collect2 paths. I didn't wanted to slow down testing too much so I just distributes the flags across existing runs with aim to maximize the coverage of testing matrix that is