public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "aap1 at psu dot edu" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/54522] New: Using "g77 -O -fno-automatic", reassignment of a variable in an if statement in a function triggers a compiler bug.
Date: Fri, 07 Sep 2012 21:30:00 -0000	[thread overview]
Message-ID: <bug-54522-4@http.gcc.gnu.org/bugzilla/> (raw)

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

             Bug #: 54522
           Summary: Using "g77 -O -fno-automatic", reassignment of a
                    variable in an if statement in a function triggers a
                    compiler bug.
    Classification: Unclassified
           Product: gcc
           Version: 3.4.6
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: aap1@psu.edu


C g77 bug found 9/7/2012.
C When command "g77 -c -O -fno-automatic reasssignment_bug.for" is
C used on the included code, the following is produced:
C
C   reassignment_bug.for: In function `dum':
C   In file included from reassignment_bug.for:0:
C   reassignment_bug.for:7: internal compiler error: in gen_reg_rtx, at
C   emit-rtl.c:819
C   Please submit a full bug report,
C   with preprocessed source if appropriate.
C   See <URL:http://bugzilla.redhat.com/bugzilla> for instructions.
C
C The code is non-sensical but valid and should not crash the compiler.
C The logic was found in a larger more complex piece of code where the
C cause was hard to find.
C
C Compiler version from "g77 -v":
C Reading specs from /usr/lib/gcc/x86_64-redhat-linux/3.4.6/specs
C Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
C --infodir=/usr/share/info --enable-shared --enable-threads=posix
C --disable-checking --with-system-zlib --enable-__cxa_atexit
C --disable-libunwind-exceptions --enable-languages=c,c++,f77
C --disable-libgcj --host=x86_64-redhat-linux
C Thread model: posix
C gcc version 3.4.6 20060404 (Red Hat 3.4.6-19.el6)
C
      FUNCTION DUM(A)
      B=A
      IF (B.EQ.1) B=A
      DUM=B
      RETURN
      END


             reply	other threads:[~2012-09-07 21:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-07 21:30 aap1 at psu dot edu [this message]
2012-09-07 21:40 ` [Bug fortran/54522] " pinskia at gcc dot gnu.org
2012-09-09 14:48 ` janus at gcc dot gnu.org
2012-09-09 15:27 ` dominiq at lps dot ens.fr
2012-09-10 10:30 ` rguenth 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=bug-54522-4@http.gcc.gnu.org/bugzilla/ \
    --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).