public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/51356] New: [4.7 Regression] FAIL: gfortran.dg/anyallcount_1.f90  -O3  (internal compiler error) on powerpc-apple-darwin9 with -m32
Date: Wed, 30 Nov 2011 15:24:00 -0000	[thread overview]
Message-ID: <bug-51356-4@http.gcc.gnu.org/bugzilla/> (raw)

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

             Bug #: 51356
           Summary: [4.7 Regression] FAIL: gfortran.dg/anyallcount_1.f90
                    -O3  (internal compiler error) on
                    powerpc-apple-darwin9 with -m32
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: dominiq@lps.ens.fr
                CC: iains@gcc.gnu.org, irar@gcc.gnu.org, jakub@gcc.gnu.org
              Host: powerpc-apple-darwin9
            Target: powerpc-apple-darwin9
             Build: powerpc-apple-darwin9


Between revisions 181105 (OK) and 181301, the following tests have started to
fail on powerpc-apple-darwin9 with -m32:

FAIL: gfortran.dg/anyallcount_1.f90  -O3 -fomit-frame-pointer  (internal
compiler error)
FAIL: gfortran.dg/anyallcount_1.f90  -O3 -fomit-frame-pointer  (test for excess
errors)
WARNING: gfortran.dg/anyallcount_1.f90  -O3 -fomit-frame-pointer  compilation
failed to produce executable
FAIL: gfortran.dg/anyallcount_1.f90  -O3 -fomit-frame-pointer -funroll-loops 
(internal compiler error)
FAIL: gfortran.dg/anyallcount_1.f90  -O3 -fomit-frame-pointer -funroll-loops 
(test for excess errors)
WARNING: gfortran.dg/anyallcount_1.f90  -O3 -fomit-frame-pointer -funroll-loops
 compilation failed to produce executable
FAIL: gfortran.dg/anyallcount_1.f90  -O3 -fomit-frame-pointer
-funroll-all-loops -finline-functions  (internal compiler error)
FAIL: gfortran.dg/anyallcount_1.f90  -O3 -fomit-frame-pointer
-funroll-all-loops -finline-functions  (test for excess errors)
WARNING: gfortran.dg/anyallcount_1.f90  -O3 -fomit-frame-pointer
-funroll-all-loops -finline-functions  compilation failed to produce executable
FAIL: gfortran.dg/anyallcount_1.f90  -O3 -g  (internal compiler error)
FAIL: gfortran.dg/anyallcount_1.f90  -O3 -g  (test for excess errors)
WARNING: gfortran.dg/anyallcount_1.f90  -O3 -g  compilation failed to produce
executable

This can be reproduced with '-O2 -ftree-vectorize' on the following reduced
test:

program main
   implicit none
   character(len=*), parameter :: f='(3L1)'
   character(len=*), parameter :: g='(3I1)'
   real, dimension(3,3) :: a
   logical(kind=8), dimension(3,3) :: m8
   character(len=3) :: res
   data a /-1.0, -2.0, -3.0, 2.0, 1.0, -2.1, 1.0, 2.0, 3.0 /

   m8 = a > 0

   write (unit=res,fmt=f) any(m8,dim=1)
   if (res /= 'FTT') call abort
   write (unit=res,fmt=f) any(m8,dim=2)
   if (res /= 'TTT') call abort

   write (unit=res,fmt=f) all(m8,dim=1)
   if (res /= 'FFT') call abort
   write (unit=res,fmt=f) all(m8,dim=2)
   if (res /= 'FFF') call abort

   write (unit=res,fmt=g) count(m8,dim=1)
   if (res /= '023') call abort

   write (unit=res,fmt=g) count(m8,dim=2)
   if (res /= '221') call abort

end program main

[karma] /Users/dominiq% gfc -O2 -ftree-vectorize anyallcount_1_red.f90
anyallcount_1_red.f90: In function 'MAIN__':
anyallcount_1_red.f90:2:0: internal compiler error: Bus error

The backtrace I get is

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x0000000c
0x0085eaac in vect_analyze_data_refs_alignment (loop_vinfo=<value temporarily
unavailable, due to optimizations>, bb_vinfo=0x0) at tree-vectorizer.h:333
333              && (loop->inner == (gimple_bb (stmt))->loop_father));
(gdb) bt
#0  0x0085eaac in vect_analyze_data_refs_alignment (loop_vinfo=<value
temporarily unavailable, due to optimizations>, bb_vinfo=0x0) at
tree-vectorizer.h:333
#1  0x0085ea68 in vect_analyze_data_refs_alignment (loop_vinfo=<value
temporarily unavailable, due to optimizations>, bb_vinfo=0x0) at
../../work/gcc/tree-vect-data-refs.c:806

The 'Bus error' is triggered by any of the WRITE statements.


             reply	other threads:[~2011-11-30 14:06 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-30 15:24 dominiq at lps dot ens.fr [this message]
2011-11-30 17:29 ` [Bug tree-optimization/51356] " jakub at gcc dot gnu.org
2011-11-30 18:19 ` jakub at gcc dot gnu.org
2011-12-01  8:32 ` iains at gcc dot gnu.org
2011-12-01 14:57 ` dominiq at lps dot ens.fr
2011-12-01 19:15 ` jakub at gcc dot gnu.org
2011-12-01 19:18 ` jakub 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-51356-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).