public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/21274] New: SSA Crash, reproducable
@ 2005-04-29  4:50 callahan at sci dot utah dot edu
  2005-04-29  7:14 ` [Bug c++/21274] " pinskia at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: callahan at sci dot utah dot edu @ 2005-04-29  4:50 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2128 bytes --]

The g++-4.0 in the Ubuntu Hoary repository crashes on the following file.



------- crash-4.0.cc starts here ---------------------------------------
/*

prompt> g++-4.0 -msse2 -O3 -ftree-vectorize -ftree-vectorizer-verbose=5 -c
crash-4.0.cc
crash-4.0.cc:11: note: Alignment of access forced using peeling.
crash-4.0.cc:11: note: LOOP VECTORIZED.
crash-4.0.cc:26: note: Alignment of access forced using peeling.crash-4.0.cc: In
function ‘DenseMatrix* mat_identity(int)’:
crash-4.0.cc:21: internal compiler error: in gimplify_expr, at gimplify.c:4070
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
For Debian GNU/Linux specific bug reporting instructions,
see <URL:file:///usr/share/doc/gcc-4.0/README.Bugs>.

prompt> g++-4.0 --version
 g++-4.0 (GCC) 4.0.0 20050301 (prerelease) (Debian 4.0-0pre6ubuntu7)
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

prompt> uname -a
Linux tamale 2.6.10-5-amd64-generic #1 Tue Apr 5 12:21:57 UTC 2005 x86_64 GNU/Linux

*/

class DenseMatrix
{
  int rows_, cols_;
  double *ptr_;
public:
  DenseMatrix(int nr, int nc) : rows_(nr), cols_(nc)
  {
    ptr_ = new double[nr * nc];
  }
  
  void zero() { for (int i = 0; i < rows_ * cols_; i++) ptr_[i] = 0.0; } 

  inline double* operator[](int r)
  {
    return ptr_ + r * cols_;
  }
};


//! Create Identity Matrix
DenseMatrix *mat_identity(int len) 
{
  DenseMatrix *eye = new DenseMatrix(len, len);

  eye->zero();
  for (int i=0; i<len; i++)
  {
    (*eye)[i][i]=1;
  }
  return eye;
}

-- 
           Summary: SSA Crash, reproducable
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: callahan at sci dot utah dot edu
                CC: gcc-bugs at gcc dot gnu dot org


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


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2005-09-13 19:48 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-29  4:50 [Bug c++/21274] New: SSA Crash, reproducable callahan at sci dot utah dot edu
2005-04-29  7:14 ` [Bug c++/21274] " pinskia at gcc dot gnu dot org
2005-04-29 13:57 ` callahan at sci dot utah dot edu
2005-05-02 16:27 ` dorit at il dot ibm dot com
2005-05-02 16:36 ` callahan at sci dot utah dot edu
2005-09-13 19:32 ` callahan at sci dot utah dot edu
2005-09-13 19:41 ` [Bug middle-end/21274] " pinskia at gcc dot gnu dot org
2005-09-13 19:41 ` [Bug c++/21274] " pinskia at gcc dot gnu dot org
2005-09-13 19:45 ` [Bug tree-optimization/21274] " pinskia at gcc dot gnu dot org
2005-09-13 19:48 ` pinskia at gcc dot gnu dot org

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).