public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/37286] [4.4 regression] gfortran, trunk: ICE subst_stack_regs_pat, at reg-stack.c:1537
Date: Sat, 30 Aug 2008 23:04:00 -0000	[thread overview]
Message-ID: <20080830230240.32558.qmail@sourceware.org> (raw)
In-Reply-To: <bug-37286-2736@http.gcc.gnu.org/bugzilla/>



------- Comment #4 from pinskia at gcc dot gnu dot org  2008-08-30 23:02 -------
Here is a C++ testcase (you can convert it to C if you want by changing the
references to pointers and such):
int gni97 = 97, gnj97 = 33;
double gnu[97];

extern void g(void);

double f(double & min, float & max)
{
  double prephitmp35;
  double prephitmp24;
  float monte_temp;
  int D1505;
  prephitmp35 = min;
  prephitmp24 = max;
  if (prephitmp35 > prephitmp24)
    {
      g();
      prephitmp35 = min;
      prephitmp24 = max;
    }
  else
    {
      D1505 = gni97 - 1;
      monte_temp = gnu[D1505] - gnu[gnj97-1];
      if (monte_temp < 0)
        {
          monte_temp = monte_temp + 1.0;
        }
      gnu[D1505] = monte_temp;
    }
  return monte_temp * (prephitmp24 + prephitmp35) + prephitmp35;
}


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  GCC build triplet|i686-pc-linux-gnu           |
   GCC host triplet|i686-pc-linux-gnu           |
 GCC target triplet|i686-pc-linux-gnu           |i?86-*-* x86_64-*-* (-m32)


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37286


  parent reply	other threads:[~2008-08-30 23:04 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-30  7:17 [Bug fortran/37286] New: " martin at mpa-garching dot mpg dot de
2008-08-30  7:19 ` [Bug fortran/37286] " martin at mpa-garching dot mpg dot de
2008-08-30  7:35 ` [Bug target/37286] [4.4 regression] " pinskia at gcc dot gnu dot org
2008-08-30 14:06 ` [Bug rtl-optimization/37286] " ubizjak at gmail dot com
2008-08-30 14:18 ` ubizjak at gmail dot com
2008-08-30 23:04 ` pinskia at gcc dot gnu dot org [this message]
2008-08-30 23:14 ` pinskia at gcc dot gnu dot org
2008-09-09 20:32 ` jsm28 at gcc dot gnu dot org
2008-10-15 18:24 ` pinskia at gcc dot gnu dot org
2008-10-20 12:50 ` martin at mpa-garching dot mpg dot de
2008-10-20 19:38 ` ubizjak at gmail dot com
2008-11-03 14:27 ` [Bug middle-end/37286] " ubizjak at gmail dot com
2008-11-03 14:28 ` ubizjak at gmail dot com
2008-11-03 15:20 ` ubizjak at gmail dot com
2008-11-05 10:00 ` uros at gcc dot gnu dot org
2008-11-05 10:06 ` jakub at gcc dot gnu dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080830230240.32558.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).