[Bug ada/83892] Various ICEs and link-errors with running ACATS with -O2 -g -flto

2021-12-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83892

Andrew Pinski  changed:

   What|Removed |Added

 Depends on||85047

--- Comment #8 from Andrew Pinski  ---
cdd2a01 is recorded as PR 85047, there is a C testcase even.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85047
[Bug 85047] cdd2a01 (and others) FAIL with -flto (VLA type in struct causes
issues)

[Bug ada/83892] Various ICEs and link-errors with running ACATS with -O2 -g -flto

2018-02-10 Thread simon at pushface dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83892

--- Comment #7 from simon at pushface dot org ---
(In reply to rguent...@suse.de from comment #5)

> It would be nice if acats could honor dejagnu RUNTESTFLAGS.  That is,
> I regularly do
> 
> make check RUNTESTFLAGS="--target_board=unix/-g"
> 
> and that should append -g to all flags used.  That might need a "simple"
> acats.exp to wrap the run_acats/all.sh scripts.  Currently acats seems
> to be invoked via check-acats in gcc/ada/gcc-interface/Make-lang.in

I have a patch to do this, but 
(a) I’ve just seen that you said "append", 
(b) if the added switches include -gnat, you’d need to make sure
you only ran "make check-acats" - -g looks like a debug 
option
(c) RUNTESTFLAGS doesn’t get transmitted to the sub-makes in the
check-acats target if you 'make -j'

[Bug ada/83892] Various ICEs and link-errors with running ACATS with -O2 -g -flto

2018-01-22 Thread simon at pushface dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83892

--- Comment #6 from simon at pushface dot org ---
I tried check-gnat, which also shows additional lto-related failures.

Running with lto shows 5 additional FAILs (and 3 fewer PASSes???)

LTO:

Running target unix/-flto/-g0
...
=== gnat Summary ===

# of expected passes2673
# of unexpected failures16
# of expected failures  24
# of unsupported tests  7
/Volumes/Miscellaneous/tmp/gcc-256927-build/gcc/gnatmake version 8.0.1 20180121
(experimental)

No LTO:

Running target unix/-g
...
=== gnat Summary ===

# of expected passes2676
# of unexpected failures11
# of expected failures  24
# of unsupported tests  7
/Volumes/Miscellaneous/tmp/gcc-256927-build/gcc/gnatmake version 8.0.1 20180121
(experimental)

[Bug ada/83892] Various ICEs and link-errors with running ACATS with -O2 -g -flto

2018-01-22 Thread rguenther at suse dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83892

--- Comment #5 from rguenther at suse dot de  ---
On Sun, 21 Jan 2018, simon at pushface dot org wrote:

> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83892
> 
> simon at pushface dot org changed:
> 
>What|Removed |Added
> 
>  CC||simon at pushface dot org
> 
> --- Comment #4 from simon at pushface dot org ---
> I’ve found the same 9 fails as Eric on x86_64-apple-darwin15 with -flto -O2.
> 
> I can’t try with -flto -O2 -g because of pr 83960.
> 
> Please note that I’ve been working on ACATS 4.1f (the latest version, rather 
> than the 15-year-old version 2.5 currently in GCC), hoping to get it included 
> in GCC at some stage, see https://github.com/simonjwright/ACATS; I’ve just 
> checked in a change so that you can say for example
> 
>   make check-acats gccflags='-O2 -g -flto'
> 
> (gccflags is the variable name in the ACATS script) and I’m wondering whether 
> I should choose a more specific name? e.g. ACATS_GCCFLAGS.

It would be nice if acats could honor dejagnu RUNTESTFLAGS.  That is,
I regularly do

make check RUNTESTFLAGS="--target_board=unix/-g"

and that should append -g to all flags used.  That might need a "simple"
acats.exp to wrap the run_acats/all.sh scripts.  Currently acats seems
to be invoked via check-acats in gcc/ada/gcc-interface/Make-lang.in

[Bug ada/83892] Various ICEs and link-errors with running ACATS with -O2 -g -flto

2018-01-21 Thread simon at pushface dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83892

simon at pushface dot org changed:

   What|Removed |Added

 CC||simon at pushface dot org

--- Comment #4 from simon at pushface dot org ---
I’ve found the same 9 fails as Eric on x86_64-apple-darwin15 with -flto -O2.

I can’t try with -flto -O2 -g because of pr 83960.

Please note that I’ve been working on ACATS 4.1f (the latest version, rather 
than the 15-year-old version 2.5 currently in GCC), hoping to get it included 
in GCC at some stage, see https://github.com/simonjwright/ACATS; I’ve just 
checked in a change so that you can say for example

  make check-acats gccflags='-O2 -g -flto'

(gccflags is the variable name in the ACATS script) and I’m wondering whether 
I should choose a more specific name? e.g. ACATS_GCCFLAGS.

[Bug ada/83892] Various ICEs and link-errors with running ACATS with -O2 -g -flto

2018-01-17 Thread ebotcazou at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83892

--- Comment #3 from Eric Botcazou  ---
> Just as a side-note can we, for increased testing coverage, enable -g with
> acats by default?

Yes, -O2 -g as the default is fine with me.

[Bug ada/83892] Various ICEs and link-errors with running ACATS with -O2 -g -flto

2018-01-17 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83892

--- Comment #2 from Richard Biener  ---
Just as a side-note can we, for increased testing coverage, enable -g with
acats by default?

[Bug ada/83892] Various ICEs and link-errors with running ACATS with -O2 -g -flto

2018-01-17 Thread ebotcazou at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83892

Eric Botcazou  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2018-01-17
 CC||ebotcazou at gcc dot gnu.org
 Ever confirmed|0   |1

--- Comment #1 from Eric Botcazou  ---
Here's what I have with -O2 -flto:

=== acats tests ===
FAIL:   c37010a
FAIL:   c371003
FAIL:   c52008b
FAIL:   c52103x
FAIL:   c52104x
FAIL:   c52104y
FAIL:   cdd2a01
FAIL:   cdd2a02
FAIL:   cdd2a03

=== acats Summary ===
# of expected passes2311
# of unexpected failures9
Native configuration is x86_64-suse-linux-gnu