public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/21884] New: [4.1 regression] ICE with -ftree-vectorize
@ 2005-06-02 19:23 bangerth at dealii dot org
  2005-06-02 19:24 ` [Bug tree-optimization/21884] " bangerth at dealii dot org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: bangerth at dealii dot org @ 2005-06-02 19:23 UTC (permalink / raw)
  To: gcc-bugs

This is with today's sources, so unrelated to the previously fixed  
PR 21789 even though the error message is the same. 
 
With attached code, I get this: 
spec/src> c++ -O2 -march=pentium4m -msse2 -ftree-vectorize 
auto_derivative_function.ii 
auto_derivative_function.ii:6859: warning: ‘__malloc__’ attribute ignored 
auto_derivative_function.ii: In member function ‘void 
AutoDerivativeFunction<dim>::gradient_list(const std::vector<Point<dim>, 
std::allocator<Point<dim> > >&, std::vector<Tensor<1, dim>, 
std::allocator<Tensor<1, dim> > >&, unsigned int) const [with int dim = 2]&#8217;: 
auto_derivative_function.ii:32743: internal compiler error: tree check: 
expected ssa_name, have var_decl in verify_ssa, at tree-ssa.c:750 
Please submit a full bug report, 
with preprocessed source if appropriate. 
See <URL:http://gcc.gnu.org/bugs.html> for instructions. 
 
W.

-- 
           Summary: [4.1 regression] ICE with -ftree-vectorize
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P2
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bangerth at dealii dot org
                CC: gcc-bugs at gcc dot gnu dot org


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


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

* [Bug tree-optimization/21884] [4.1 regression] ICE with -ftree-vectorize
  2005-06-02 19:23 [Bug tree-optimization/21884] New: [4.1 regression] ICE with -ftree-vectorize bangerth at dealii dot org
@ 2005-06-02 19:24 ` bangerth at dealii dot org
  2005-06-02 19:29 ` pinskia at gcc dot gnu dot org
                   ` (10 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: bangerth at dealii dot org @ 2005-06-02 19:24 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bangerth at dealii dot org  2005-06-02 19:24 -------
Created an attachment (id=9017)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9017&action=view)
Preprocessed source


-- 


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


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

* [Bug tree-optimization/21884] [4.1 regression] ICE with -ftree-vectorize
  2005-06-02 19:23 [Bug tree-optimization/21884] New: [4.1 regression] ICE with -ftree-vectorize bangerth at dealii dot org
  2005-06-02 19:24 ` [Bug tree-optimization/21884] " bangerth at dealii dot org
@ 2005-06-02 19:29 ` pinskia at gcc dot gnu dot org
  2005-06-02 19:36 ` bangerth at dealii dot org
                   ` (9 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-02 19:29 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-02 19:29 -------
This is most likely related to PR 21155 which is another bug with the same ICE.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
  BugsThisDependsOn|                            |21155
   Target Milestone|---                         |4.1.0


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


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

* [Bug tree-optimization/21884] [4.1 regression] ICE with -ftree-vectorize
  2005-06-02 19:23 [Bug tree-optimization/21884] New: [4.1 regression] ICE with -ftree-vectorize bangerth at dealii dot org
  2005-06-02 19:24 ` [Bug tree-optimization/21884] " bangerth at dealii dot org
  2005-06-02 19:29 ` pinskia at gcc dot gnu dot org
@ 2005-06-02 19:36 ` bangerth at dealii dot org
  2005-06-02 20:18 ` bangerth at dealii dot org
                   ` (8 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: bangerth at dealii dot org @ 2005-06-02 19:36 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bangerth at dealii dot org  2005-06-02 19:36 -------
I don't know -- the failure appears in a completely different place. I see 
this particular ICE on at least half a dozen of my files, but I'll be happy 
holding off finding a reduced testcase until the other PR is fixed. 
 
W. 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dorit at gcc dot gnu dot org


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


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

* [Bug tree-optimization/21884] [4.1 regression] ICE with -ftree-vectorize
  2005-06-02 19:23 [Bug tree-optimization/21884] New: [4.1 regression] ICE with -ftree-vectorize bangerth at dealii dot org
                   ` (2 preceding siblings ...)
  2005-06-02 19:36 ` bangerth at dealii dot org
@ 2005-06-02 20:18 ` bangerth at dealii dot org
  2005-06-05 11:29 ` stefaan dot deroeck at gmail dot com
                   ` (7 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: bangerth at dealii dot org @ 2005-06-02 20:18 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bangerth at dealii dot org  2005-06-02 20:17 -------
Created an attachment (id=9018)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9018&action=view)
Much shorter testcase

I attach another testcase that I managed to get down to approximately 10kloc.
It is only standard include files now, so shouldn't be too hard to reduce
further (if only I had more time...)

It presently gives me this:
spec/src> c++ -O2 -march=pentium4m -msse2 -ftree-vectorize -c x.ii
x.ii:1489: warning: &#8216;__malloc__&#8217; attribute ignored
x.ii: In constructor &#8216;X::X()&#8217;:
x.ii:10161: internal compiler error: tree check: expected ssa_name, have
var_decl in verify_ssa, at tree-ssa.c:750
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.


W.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
Attachment #9017 is|0                           |1
           obsolete|                            |


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


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

* [Bug tree-optimization/21884] [4.1 regression] ICE with -ftree-vectorize
  2005-06-02 19:23 [Bug tree-optimization/21884] New: [4.1 regression] ICE with -ftree-vectorize bangerth at dealii dot org
                   ` (3 preceding siblings ...)
  2005-06-02 20:18 ` bangerth at dealii dot org
@ 2005-06-05 11:29 ` stefaan dot deroeck at gmail dot com
  2005-06-06 23:41 ` kbesaw at us dot ibm dot com
                   ` (6 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: stefaan dot deroeck at gmail dot com @ 2005-06-05 11:29 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |stefaan dot deroeck at gmail
                   |                            |dot com


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


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

* [Bug tree-optimization/21884] [4.1 regression] ICE with -ftree-vectorize
  2005-06-02 19:23 [Bug tree-optimization/21884] New: [4.1 regression] ICE with -ftree-vectorize bangerth at dealii dot org
                   ` (4 preceding siblings ...)
  2005-06-05 11:29 ` stefaan dot deroeck at gmail dot com
@ 2005-06-06 23:41 ` kbesaw at us dot ibm dot com
  2005-06-07  7:35 ` dorit at il dot ibm dot com
                   ` (5 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: kbesaw at us dot ibm dot com @ 2005-06-06 23:41 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From kbesaw at us dot ibm dot com  2005-06-06 23:41 -------
I tried compiling x.ii on power-pc and couldn't reproduce the problem.
I don't know if this means that the problem goes away with recent
patches or that it only occurs when vectorizing on pentium.  I currently
don't have the ability to build and test on pentium.

-- 


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


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

* [Bug tree-optimization/21884] [4.1 regression] ICE with -ftree-vectorize
  2005-06-02 19:23 [Bug tree-optimization/21884] New: [4.1 regression] ICE with -ftree-vectorize bangerth at dealii dot org
                   ` (5 preceding siblings ...)
  2005-06-06 23:41 ` kbesaw at us dot ibm dot com
@ 2005-06-07  7:35 ` dorit at il dot ibm dot com
  2005-06-07  7:54 ` stefaan dot deroeck at gmail dot com
                   ` (4 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: dorit at il dot ibm dot com @ 2005-06-07  7:35 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dorit at il dot ibm dot com  2005-06-07 07:35 -------
> I tried compiling x.ii on power-pc and couldn't reproduce the problem.
> I don't know if this means that the problem goes away with recent
> patches or that it only occurs when vectorizing on pentium.  I currently
> don't have the ability to build and test on pentium.

I tried on powerpc-apple-darwin and on i686-pc-linux-gnu - couldn't reproduce 
the failure


-- 


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


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

* [Bug tree-optimization/21884] [4.1 regression] ICE with -ftree-vectorize
  2005-06-02 19:23 [Bug tree-optimization/21884] New: [4.1 regression] ICE with -ftree-vectorize bangerth at dealii dot org
                   ` (6 preceding siblings ...)
  2005-06-07  7:35 ` dorit at il dot ibm dot com
@ 2005-06-07  7:54 ` stefaan dot deroeck at gmail dot com
  2005-06-07  9:58 ` dorit at il dot ibm dot com
                   ` (3 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: stefaan dot deroeck at gmail dot com @ 2005-06-07  7:54 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From stefaan dot deroeck at gmail dot com  2005-06-07 07:54 -------
Another testcase possibly, that triggers the fault on 20050605 with parameters 
-march=pentium4 -O3 -ftree-vectorize, but not with -O2 or -O1.  Bug 21933 seems
related but doesn't trigger with -O3 or -O2, but does with -O1 (the testcase in
this bug also doesn't use standard includes, so may be easier to track down)

#include <vector>
const int COUNT = 4;
struct A {
  public:
    A() {
      for (int i=0; i<COUNT;++i) x1[i] = 0;
    }
    void * x1[COUNT];
};
struct B : std::vector <A> {
  void p1() {
    clear();
    insert(end(), A());
  }
};
struct C {
  B c1;
  void p2();
};
void C::p2() {
  c1.p1();
}


-- 


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


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

* [Bug tree-optimization/21884] [4.1 regression] ICE with -ftree-vectorize
  2005-06-02 19:23 [Bug tree-optimization/21884] New: [4.1 regression] ICE with -ftree-vectorize bangerth at dealii dot org
                   ` (7 preceding siblings ...)
  2005-06-07  7:54 ` stefaan dot deroeck at gmail dot com
@ 2005-06-07  9:58 ` dorit at il dot ibm dot com
  2005-06-09  8:47 ` dorit at il dot ibm dot com
                   ` (2 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: dorit at il dot ibm dot com @ 2005-06-07  9:58 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dorit at il dot ibm dot com  2005-06-07 09:58 -------
> I tried on powerpc-apple-darwin and on i686-pc-linux-gnu - couldn't reproduce 
> the failure

correction - can't reproduce the failure on powerpc,
but I do see the ICE on i686-pc-linux-gnu with both testcases (from comments #4 
and #7). (I couldn't see the ICE before because I was accidently trying with a 
compiler configured with disable-checking before)



-- 


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


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

* [Bug tree-optimization/21884] [4.1 regression] ICE with -ftree-vectorize
  2005-06-02 19:23 [Bug tree-optimization/21884] New: [4.1 regression] ICE with -ftree-vectorize bangerth at dealii dot org
                   ` (8 preceding siblings ...)
  2005-06-07  9:58 ` dorit at il dot ibm dot com
@ 2005-06-09  8:47 ` dorit at il dot ibm dot com
  2005-06-11 14:19 ` reichelt at gcc dot gnu dot org
  2005-06-13 17:49 ` pinskia at gcc dot gnu dot org
  11 siblings, 0 replies; 13+ messages in thread
From: dorit at il dot ibm dot com @ 2005-06-09  8:47 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dorit at il dot ibm dot com  2005-06-09 08:47 -------
this patch: http://gcc.gnu.org/ml/gcc-patches/2005-06/msg00850.html seems to 
fix this ICE.

-- 


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


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

* [Bug tree-optimization/21884] [4.1 regression] ICE with -ftree-vectorize
  2005-06-02 19:23 [Bug tree-optimization/21884] New: [4.1 regression] ICE with -ftree-vectorize bangerth at dealii dot org
                   ` (9 preceding siblings ...)
  2005-06-09  8:47 ` dorit at il dot ibm dot com
@ 2005-06-11 14:19 ` reichelt at gcc dot gnu dot org
  2005-06-13 17:49 ` pinskia at gcc dot gnu dot org
  11 siblings, 0 replies; 13+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-06-11 14:19 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From reichelt at gcc dot gnu dot org  2005-06-11 14:19 -------
All three testcases (from comment #1, #4, and #7)
got fixed by Keith's patch.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED


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


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

* [Bug tree-optimization/21884] [4.1 regression] ICE with -ftree-vectorize
  2005-06-02 19:23 [Bug tree-optimization/21884] New: [4.1 regression] ICE with -ftree-vectorize bangerth at dealii dot org
                   ` (10 preceding siblings ...)
  2005-06-11 14:19 ` reichelt at gcc dot gnu dot org
@ 2005-06-13 17:49 ` pinskia at gcc dot gnu dot org
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-13 17:49 UTC (permalink / raw)
  To: gcc-bugs



-- 
Bug 21884 depends on bug 21155, which changed state.

Bug 21155 Summary: [4.1 Regression] ICE in ssa tree check compiling crafty with -ftree-vectorize -maltivec
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21155

           What    |Old Value                   |New Value
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

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


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

end of thread, other threads:[~2005-06-13 17:49 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-02 19:23 [Bug tree-optimization/21884] New: [4.1 regression] ICE with -ftree-vectorize bangerth at dealii dot org
2005-06-02 19:24 ` [Bug tree-optimization/21884] " bangerth at dealii dot org
2005-06-02 19:29 ` pinskia at gcc dot gnu dot org
2005-06-02 19:36 ` bangerth at dealii dot org
2005-06-02 20:18 ` bangerth at dealii dot org
2005-06-05 11:29 ` stefaan dot deroeck at gmail dot com
2005-06-06 23:41 ` kbesaw at us dot ibm dot com
2005-06-07  7:35 ` dorit at il dot ibm dot com
2005-06-07  7:54 ` stefaan dot deroeck at gmail dot com
2005-06-07  9:58 ` dorit at il dot ibm dot com
2005-06-09  8:47 ` dorit at il dot ibm dot com
2005-06-11 14:19 ` reichelt at gcc dot gnu dot org
2005-06-13 17:49 ` 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).