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: Serge Belyshev <belyshev at depni dot sinp dot msu dot ru>
- To: Kenneth Zadeck <zadeck at naturalbridge dot com>
- Cc: gcc-bugzilla at gcc dot gnu dot org, gcc-patches <gcc-patches at gcc dot gnu dot org>, Eric Botcazou <ebotcazou at libertysurf dot fr>, Steven Bosscher <stevenb dot gcc at gmail dot com>
- Date: Thu, 11 Oct 2007 23:52:29 +0400
- Subject: Re: [Bug rtl-optimization/33676] libgfortran bootstrap failure: selected_int_kind.f90:22: Segmentation fault, wrong code with -fomit-frame-pointer
- References: <bug-33676-231@http.gcc.gnu.org/bugzilla/> <20071011124037.5827.qmail@sourceware.org> <470E4DB3.9050304@naturalbridge.com>
Kenneth Zadeck <zadeck@naturalbridge.com> writes:
> 2007-10-11 Kenneth Zadeck <zadeck@naturalbridge.com>
>
> PR middle-end/33676
> * global.c (build_insn_chain): Include insn that occur between
> basic blocks.
>
> 2007-10-11 Kenneth Zadeck <zadeck@naturalbridge.com>
>
> PR middle-end/33676
> * gcc.c-torture/gcc.dg/torture/pr33676.c: New.
^^ typo, should be:
* gcc.dg/torture/pr33676.c: New.
> Kenny
> Index: testsuite/gcc.dg/torture/pr33676.c
> ===================================================================
> --- testsuite/gcc.dg/torture/pr33676.c (revision 0)
> +++ testsuite/gcc.dg/torture/pr33676.c (revision 0)
> @@ -0,0 +1,53 @@
> +/* { dg-do run } */
> +/* { dg-options "-march=i586 -fomit-frame-pointer" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */
^ better use -march=i386 so testcase wont fail
with SIGILL on i486 machines in case (if ever)
anyone will try to test gcc there.
> +// Small testcase, compile with "-march=i586 -O0 -fomit-frame-pointer":
omit this comment to keep it cleaner and smaller. :)