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 tree-optimization/25643] VRP does not remove -fbounds-check for Fortran
Date: Sat, 12 Jan 2008 13:35:00 -0000	[thread overview]
Message-ID: <20080112124800.30416.qmail@sourceware.org> (raw)
In-Reply-To: <bug-25643-6528@http.gcc.gnu.org/bugzilla/>



------- Comment #10 from pinskia at gcc dot gnu dot org  2008-01-12 12:48 -------
There should be no call to _gfortran_runtime_error_at and I still get one:
  # i_2 = PHI <1(3), i_27(6)>
  if (i_2 > size.1_4)
    goto <bb 5>;
  else
    goto <bb 6>;

<bb 5>:
  # i_32 = PHI <i_2(4)>  _gfortran_runtime_error_at (&"At line 7 of file
t.f90"[1]{lb: 1 sz: 1}, &"Array reference out of bounds for array \'v\', upper
bound of dimension 1 exceeded (%ld > %ld)"[1]{lb: 1 sz: 1}, i_32, size.1_4);


Yes one call to _gfortran_runtime_error_at is removed but that is the lower
bound one.

Even the C testcase has the same issue.
we still get a call to abort:
L4:
        call    _abort


-- 


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


  parent reply	other threads:[~2008-01-12 12:48 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-02 19:54 [Bug tree-optimization/25643] New: VRP does not remove -fbounds-checking " pinskia at gcc dot gnu dot org
2006-01-02 20:23 ` [Bug tree-optimization/25643] VRP does not remove -fbounds-check " pinskia at gcc dot gnu dot org
2006-01-03 20:37 ` pinskia at gcc dot gnu dot org
2006-01-07 16:20 ` pinskia at gcc dot gnu dot org
2006-01-29 21:05 ` pinskia at gcc dot gnu dot org
2006-05-01  6:18 ` pinskia at gcc dot gnu dot org
2006-05-01 10:09 ` baldrick at free dot fr
2008-01-12 12:48 ` rguenth at gcc dot gnu dot org
2008-01-12 12:49 ` rguenth at gcc dot gnu dot org
2008-01-12 13:06 ` rguenth at gcc dot gnu dot org
2008-01-12 13:17 ` pinskia at gcc dot gnu dot org
2008-01-12 13:35 ` pinskia at gcc dot gnu dot org [this message]
2008-01-12 13:53 ` pinskia at gcc dot gnu dot org
2008-01-12 15:15 ` rguenth at gcc dot gnu dot org
2008-03-14 16:40 ` rguenth at gcc dot gnu dot org
     [not found] <bug-25643-4@http.gcc.gnu.org/bugzilla/>
2012-06-29 13:23 ` rguenth at gcc dot gnu.org
2023-09-03  3:24 ` pinskia at gcc dot gnu.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=20080112124800.30416.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).