public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/64528] [5 Regression] ICE: in process_constraint, at tree-ssa-structalias.c:3002 with -O -fno-tree-ccp -fno-tree-dce
       [not found] <bug-64528-4@http.gcc.gnu.org/bugzilla/>
@ 2015-01-09 11:20 ` rguenth at gcc dot gnu.org
  2015-01-12 14:48 ` jakub at gcc dot gnu.org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-01-09 11:20 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64528

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |5.0


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

* [Bug tree-optimization/64528] [5 Regression] ICE: in process_constraint, at tree-ssa-structalias.c:3002 with -O -fno-tree-ccp -fno-tree-dce
       [not found] <bug-64528-4@http.gcc.gnu.org/bugzilla/>
  2015-01-09 11:20 ` [Bug tree-optimization/64528] [5 Regression] ICE: in process_constraint, at tree-ssa-structalias.c:3002 with -O -fno-tree-ccp -fno-tree-dce rguenth at gcc dot gnu.org
@ 2015-01-12 14:48 ` jakub at gcc dot gnu.org
  2015-01-12 15:21 ` [Bug fortran/64528] " jakub at gcc dot gnu.org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-01-12 14:48 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64528

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-01-12
                 CC|                            |jakub at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Started with r211736.


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

* [Bug fortran/64528] [5 Regression] ICE: in process_constraint, at tree-ssa-structalias.c:3002 with -O -fno-tree-ccp -fno-tree-dce
       [not found] <bug-64528-4@http.gcc.gnu.org/bugzilla/>
  2015-01-09 11:20 ` [Bug tree-optimization/64528] [5 Regression] ICE: in process_constraint, at tree-ssa-structalias.c:3002 with -O -fno-tree-ccp -fno-tree-dce rguenth at gcc dot gnu.org
  2015-01-12 14:48 ` jakub at gcc dot gnu.org
@ 2015-01-12 15:21 ` jakub at gcc dot gnu.org
  2015-01-13 12:50 ` rguenth at gcc dot gnu.org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-01-12 15:21 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64528

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |burnus at gcc dot gnu.org
          Component|tree-optimization           |fortran

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
I'd say this is a Fortran FE bug.
The reason this ICEs is that the inliner emits 10 = 11; statement (with
INTEGER_CST on lhs), but that happens because myint PARM_DECL is TREE_READONLY,
which looks wrong when it clearly is assigned to.
The setting of TREE_READONLY happens in trans-decl.c:
2330          /* All implementation args are read-only.  */
2331          TREE_READONLY (parm) = 1;
That looks just wrong at least for some f->sym->attr.value dummy arguments ==
PARM_DECLs, perhaps all?


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

* [Bug fortran/64528] [5 Regression] ICE: in process_constraint, at tree-ssa-structalias.c:3002 with -O -fno-tree-ccp -fno-tree-dce
       [not found] <bug-64528-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2015-01-12 15:21 ` [Bug fortran/64528] " jakub at gcc dot gnu.org
@ 2015-01-13 12:50 ` rguenth at gcc dot gnu.org
  2015-01-13 16:43 ` jakub at gcc dot gnu.org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-01-13 12:50 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64528

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Indeed:

/* In a VAR_DECL, PARM_DECL or FIELD_DECL, or any kind of ..._REF node,
   nonzero means it may not be the lhs of an assignment.
   Nonzero in a FUNCTION_DECL means this function should be treated
   as "const" function (can only read its arguments).  */
#define TREE_READONLY(NODE) (NON_TYPE_CHECK (NODE)->base.readonly_flag)

OTOH the stmt verifier should better catch this error as well.


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

* [Bug fortran/64528] [5 Regression] ICE: in process_constraint, at tree-ssa-structalias.c:3002 with -O -fno-tree-ccp -fno-tree-dce
       [not found] <bug-64528-4@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2015-01-13 12:50 ` rguenth at gcc dot gnu.org
@ 2015-01-13 16:43 ` jakub at gcc dot gnu.org
  2015-01-14 15:26 ` rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-01-13 16:43 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64528

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Tue Jan 13 16:42:22 2015
New Revision: 219543

URL: https://gcc.gnu.org/viewcvs?rev=219543&root=gcc&view=rev
Log:
    PR fortran/64528
    * trans-decl.c (create_function_arglist): Don't set TREE_READONLY
    on dummy args with VALUE attribute.

    * gfortran.dg/pr64528.f90: New test.

Added:
    trunk/gcc/testsuite/gfortran.dg/pr64528.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/trans-decl.c
    trunk/gcc/testsuite/ChangeLog


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

* [Bug fortran/64528] [5 Regression] ICE: in process_constraint, at tree-ssa-structalias.c:3002 with -O -fno-tree-ccp -fno-tree-dce
       [not found] <bug-64528-4@http.gcc.gnu.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2015-01-13 16:43 ` jakub at gcc dot gnu.org
@ 2015-01-14 15:26 ` rguenth at gcc dot gnu.org
  2015-01-14 20:23 ` jakub at gcc dot gnu.org
  2015-02-01 21:52 ` jakub at gcc dot gnu.org
  7 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-01-14 15:26 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64528

Richard Biener <rguenth at gcc dot gnu.org> changed:

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

--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed.


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

* [Bug fortran/64528] [5 Regression] ICE: in process_constraint, at tree-ssa-structalias.c:3002 with -O -fno-tree-ccp -fno-tree-dce
       [not found] <bug-64528-4@http.gcc.gnu.org/bugzilla/>
                   ` (5 preceding siblings ...)
  2015-01-14 15:26 ` rguenth at gcc dot gnu.org
@ 2015-01-14 20:23 ` jakub at gcc dot gnu.org
  2015-02-01 21:52 ` jakub at gcc dot gnu.org
  7 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-01-14 20:23 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64528

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Jan 14 20:22:47 2015
New Revision: 219613

URL: https://gcc.gnu.org/viewcvs?rev=219613&root=gcc&view=rev
Log:
    Backported from mainline
    2015-01-13  Jakub Jelinek  <jakub@redhat.com>

    PR fortran/64528
    * trans-decl.c (create_function_arglist): Don't set TREE_READONLY
    on dummy args with VALUE attribute.

    * gfortran.dg/pr64528.f90: New test.

Added:
    branches/gcc-4_9-branch/gcc/testsuite/gfortran.dg/pr64528.f90
Modified:
    branches/gcc-4_9-branch/gcc/fortran/ChangeLog
    branches/gcc-4_9-branch/gcc/fortran/trans-decl.c
    branches/gcc-4_9-branch/gcc/testsuite/ChangeLog


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

* [Bug fortran/64528] [5 Regression] ICE: in process_constraint, at tree-ssa-structalias.c:3002 with -O -fno-tree-ccp -fno-tree-dce
       [not found] <bug-64528-4@http.gcc.gnu.org/bugzilla/>
                   ` (6 preceding siblings ...)
  2015-01-14 20:23 ` jakub at gcc dot gnu.org
@ 2015-02-01 21:52 ` jakub at gcc dot gnu.org
  7 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-02-01 21:52 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64528

--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Sun Feb  1 21:51:40 2015
New Revision: 220333

URL: https://gcc.gnu.org/viewcvs?rev=220333&root=gcc&view=rev
Log:
    Backported from mainline
    2015-01-13  Jakub Jelinek  <jakub@redhat.com>

    PR fortran/64528
    * trans-decl.c (create_function_arglist): Don't set TREE_READONLY
    on dummy args with VALUE attribute.

    * gfortran.dg/pr64528.f90: New test.

Added:
    branches/gcc-4_8-branch/gcc/testsuite/gfortran.dg/pr64528.f90
Modified:
    branches/gcc-4_8-branch/gcc/fortran/ChangeLog
    branches/gcc-4_8-branch/gcc/fortran/trans-decl.c
    branches/gcc-4_8-branch/gcc/testsuite/ChangeLog


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

end of thread, other threads:[~2015-02-01 21:52 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-64528-4@http.gcc.gnu.org/bugzilla/>
2015-01-09 11:20 ` [Bug tree-optimization/64528] [5 Regression] ICE: in process_constraint, at tree-ssa-structalias.c:3002 with -O -fno-tree-ccp -fno-tree-dce rguenth at gcc dot gnu.org
2015-01-12 14:48 ` jakub at gcc dot gnu.org
2015-01-12 15:21 ` [Bug fortran/64528] " jakub at gcc dot gnu.org
2015-01-13 12:50 ` rguenth at gcc dot gnu.org
2015-01-13 16:43 ` jakub at gcc dot gnu.org
2015-01-14 15:26 ` rguenth at gcc dot gnu.org
2015-01-14 20:23 ` jakub at gcc dot gnu.org
2015-02-01 21:52 ` jakub at gcc dot gnu.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).