public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/36945]  New: [4.4 Regression] PRE/SCCVN do not handle aggregate function arguments correctly
@ 2008-07-26 18:17 rguenth at gcc dot gnu dot org
  2008-07-26 18:17 ` [Bug tree-optimization/36945] " rguenth at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-07-26 18:17 UTC (permalink / raw)
  To: gcc-bugs

struct Bar { int a; int b; };
struct Foo { int x; struct Bar y; };

int __attribute__((const)) foo (struct Bar);

int bar (int b)
{
  struct Foo f;
  int c;
  while (b--)
    {
      c = foo(f.y);
    }
  return c;
}

./cc1 -quiet -O2 t.i -fdump-tree-all-details
t.i: In function 'bar':
t.i:7: internal compiler error: vector VEC(vn_reference_op_s,base) index domain
error, in create_component_ref_by_pieces at tree-ssa-pre.c:2413
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


-- 
           Summary: [4.4 Regression] PRE/SCCVN do not handle aggregate
                    function arguments correctly
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rguenth at gcc dot gnu dot org


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


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

* [Bug tree-optimization/36945] [4.4 Regression] PRE/SCCVN do not handle aggregate function arguments correctly
  2008-07-26 18:17 [Bug tree-optimization/36945] New: [4.4 Regression] PRE/SCCVN do not handle aggregate function arguments correctly rguenth at gcc dot gnu dot org
@ 2008-07-26 18:17 ` rguenth at gcc dot gnu dot org
  2008-07-26 19:33 ` rguenth at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-07-26 18:17 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from rguenth at gcc dot gnu dot org  2008-07-26 18:17 -------
I'll deal with it.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |rguenth at gcc dot gnu dot
                   |dot org                     |org
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2008-07-26 18:17:11
               date|                            |
   Target Milestone|---                         |4.4.0


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


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

* [Bug tree-optimization/36945] [4.4 Regression] PRE/SCCVN do not handle aggregate function arguments correctly
  2008-07-26 18:17 [Bug tree-optimization/36945] New: [4.4 Regression] PRE/SCCVN do not handle aggregate function arguments correctly rguenth at gcc dot gnu dot org
  2008-07-26 18:17 ` [Bug tree-optimization/36945] " rguenth at gcc dot gnu dot org
@ 2008-07-26 19:33 ` rguenth at gcc dot gnu dot org
  2008-07-29 13:58 ` rguenth at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-07-26 19:33 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from rguenth at gcc dot gnu dot org  2008-07-26 19:33 -------
The simplest solution is to punt value-numbering calls with arguments that
do not fit in one vn_reference_op.


-- 


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


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

* [Bug tree-optimization/36945] [4.4 Regression] PRE/SCCVN do not handle aggregate function arguments correctly
  2008-07-26 18:17 [Bug tree-optimization/36945] New: [4.4 Regression] PRE/SCCVN do not handle aggregate function arguments correctly rguenth at gcc dot gnu dot org
  2008-07-26 18:17 ` [Bug tree-optimization/36945] " rguenth at gcc dot gnu dot org
  2008-07-26 19:33 ` rguenth at gcc dot gnu dot org
@ 2008-07-29 13:58 ` rguenth at gcc dot gnu dot org
  2008-07-29 17:10 ` rguenth at gcc dot gnu dot org
  2008-07-29 17:10 ` rguenth at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-07-29 13:58 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from rguenth at gcc dot gnu dot org  2008-07-29 13:57 -------
I have a patch.


-- 


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


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

* [Bug tree-optimization/36945] [4.4 Regression] PRE/SCCVN do not handle aggregate function arguments correctly
  2008-07-26 18:17 [Bug tree-optimization/36945] New: [4.4 Regression] PRE/SCCVN do not handle aggregate function arguments correctly rguenth at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2008-07-29 17:10 ` rguenth at gcc dot gnu dot org
@ 2008-07-29 17:10 ` rguenth at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-07-29 17:10 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from rguenth at gcc dot gnu dot org  2008-07-29 17:10 -------
Subject: Bug 36945

Author: rguenth
Date: Tue Jul 29 17:09:26 2008
New Revision: 138257

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=138257
Log:
2008-07-29  Richard Guenther  <rguenther@suse.de>

        PR tree-optimization/36945
        * tree-ssa-sccvn.h (copy_reference_ops_from_ref): Declare.
        * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Export.
        Record invariant addresses un-decomposed.
        (copy_reference_ops_from_call): Record reference call
        arguments properly.  Simplify.
        * tree-ssa-pre.c (create_component_ref_by_pieces_1): New
        helper split out from ...
        (create_component_ref_by_pieces): ... here.  Simplify.
        Prepare for recursive invocation for call arguments.
        (create_expression_by_pieces): Adjust call to
        create_component_ref_by_pieces.
        (compute_avail): Process operand 2 of reference ops.

        * gcc.dg/tree-ssa/ssa-pre-18.c: New testcase.

Added:
    trunk/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-18.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-ssa-pre.c
    trunk/gcc/tree-ssa-sccvn.c
    trunk/gcc/tree-ssa-sccvn.h


-- 


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


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

* [Bug tree-optimization/36945] [4.4 Regression] PRE/SCCVN do not handle aggregate function arguments correctly
  2008-07-26 18:17 [Bug tree-optimization/36945] New: [4.4 Regression] PRE/SCCVN do not handle aggregate function arguments correctly rguenth at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2008-07-29 13:58 ` rguenth at gcc dot gnu dot org
@ 2008-07-29 17:10 ` rguenth at gcc dot gnu dot org
  2008-07-29 17:10 ` rguenth at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-07-29 17:10 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from rguenth at gcc dot gnu dot org  2008-07-29 17:09 -------
Fixed.


-- 

rguenth at gcc dot gnu dot org changed:

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


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


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

end of thread, other threads:[~2008-07-29 17:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-26 18:17 [Bug tree-optimization/36945] New: [4.4 Regression] PRE/SCCVN do not handle aggregate function arguments correctly rguenth at gcc dot gnu dot org
2008-07-26 18:17 ` [Bug tree-optimization/36945] " rguenth at gcc dot gnu dot org
2008-07-26 19:33 ` rguenth at gcc dot gnu dot org
2008-07-29 13:58 ` rguenth at gcc dot gnu dot org
2008-07-29 17:10 ` rguenth at gcc dot gnu dot org
2008-07-29 17:10 ` rguenth 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).