public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/15577] [3.5 Regression] ICE when inlining accessor and passing array value by reference pointer
  2004-05-22 21:45 [Bug tree-optimization/15577] New: ICE on legal dalej at apple dot com
@ 2004-05-22 21:45 ` pinskia at gcc dot gnu dot org
  2004-06-09 15:16 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-22 21:45 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-05-21 23:16 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |ice-on-valid-code
      Known to fail|                            |3.5.0
      Known to work|                            |3.4.0
   Last reconfirmed|0000-00-00 00:00:00         |2004-05-21 23:16:24
               date|                            |
            Summary|ICE on legal                |[3.5 Regression] ICE when
                   |                            |inlining accessor and
                   |                            |passing array value by
                   |                            |reference pointer
   Target Milestone|---                         |3.5.0


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


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

* [Bug tree-optimization/15577] New: ICE on legal
@ 2004-05-22 21:45 dalej at apple dot com
  2004-05-22 21:45 ` [Bug tree-optimization/15577] [3.5 Regression] ICE when inlining accessor and passing array value by reference pointer pinskia at gcc dot gnu dot org
  2004-06-09 15:16 ` pinskia at gcc dot gnu dot org
  0 siblings, 2 replies; 3+ messages in thread
From: dalej at apple dot com @ 2004-05-22 21:45 UTC (permalink / raw)
  To: gcc-bugs

Probably an inliner bug.  Fails in mainline as of now.
g++ -O3 vv.cc
vv.cc: In function `long int intrand()':
vv.cc:8: internal compiler error: in emit_move_insn, at expr.c:2799


static long seeds[100];
long opp_nextrand(long& seed)
{
     return seed;
}
long intrand()
{
    return opp_nextrand(seeds[0]);
}


First dump after inlining (gimple) looks like
      long int<D5> <D1542>;
            <D1542> = seeds<D1530>;
which is wrong as seeds is an array.

-- 
           Summary: ICE on legal
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dalej at apple dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: powerpc-apple-darwin7.3.0
  GCC host triplet: powerpc-apple-darwin7.3.0
GCC target triplet: powerpc-apple-darwin7.3.0


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


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

* [Bug tree-optimization/15577] [3.5 Regression] ICE when inlining accessor and passing array value by reference pointer
  2004-05-22 21:45 [Bug tree-optimization/15577] New: ICE on legal dalej at apple dot com
  2004-05-22 21:45 ` [Bug tree-optimization/15577] [3.5 Regression] ICE when inlining accessor and passing array value by reference pointer pinskia at gcc dot gnu dot org
@ 2004-06-09 15:16 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-09 15:16 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-06-09 15:15 -------
Fixed by:
2004-06-02  Andrew Pinski  <pinskia@physics.uc.edu>

        PR tree-optimization/14042
        PR tree-optimization/14729
        PR tree-optimization/14736
        * tree-ssa.c (tree_ssa_useless_type_conversion_1):
        Check the type which the pointer points to
        instead of the pointer types.

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


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


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

end of thread, other threads:[~2004-06-09 15:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-22 21:45 [Bug tree-optimization/15577] New: ICE on legal dalej at apple dot com
2004-05-22 21:45 ` [Bug tree-optimization/15577] [3.5 Regression] ICE when inlining accessor and passing array value by reference pointer pinskia at gcc dot gnu dot org
2004-06-09 15:16 ` 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).