This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Bug rtl-optimization/33676] libgfortran bootstrap failure: selected_int_kind.f90:22: Segmentation fault, wrong code with -fomit-frame-pointer
- From: "Uros Bizjak" <ubizjak at gmail dot com>
- To: "Kenneth Zadeck" <zadeck at naturalbridge dot com>
- Cc: "GCC Patches" <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 12 Oct 2007 07:57:04 +0200
- Subject: Re: [Bug rtl-optimization/33676] libgfortran bootstrap failure: selected_int_kind.f90:22: Segmentation fault, wrong code with -fomit-frame-pointer
Hello!
> 2007-10-11 Kenneth Zadeck <zadeck@naturalbridge.com>
> PR middle-end/33676
> * gcc.dg/torture/pr33676.c: New.
This is wrong place for tests that fail with "-fomit-frame-pointer".
dg-torture will cycle all optimization levels, but
-fomit-frame-pointer will be checked only at -O3. However, since we
know that the testcase fails with "-O0 -fomit-frame-pointer", gcc.dg
is a better place for this.
> +/* { dg-do run } */
> +/* { dg-options "-march=i586 -fomit-frame-pointer" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */
Also, runtime tests should use -mtune=...
I have fixed these compile flags and moved the testcase to better home.
Uros.