https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50960
janus at gcc dot gnu.org changed:
What|Removed |Added
Target Milestone|--- |4.7.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50960
--- Comment #21 from janus at gcc dot gnu.org 2011-11-09 09:45:38 UTC ---
Author: janus
Date: Wed Nov 9 09:45:36 2011
New Revision: 181199
URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=181199
Log:
2011-11-09 Janus Weil ja...@gcc.gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50960
--- Comment #22 from janus at gcc dot gnu.org 2011-11-09 15:56:57 UTC ---
Author: janus
Date: Wed Nov 9 15:56:53 2011
New Revision: 181208
URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=181208
Log:
2011-11-09 Janus Weil ja...@gcc.gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50960
janus at gcc dot gnu.org changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
Resolution|
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50960
janus at gcc dot gnu.org changed:
What|Removed |Added
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50960
--- Comment #19 from Tobias Burnus burnus at gcc dot gnu.org 2011-11-07
07:35:24 UTC ---
See also PR 50640 comment 16 and the patch in attachment 25730
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50960
--- Comment #12 from janus at gcc dot gnu.org 2011-11-03 12:06:48 UTC ---
In summary, the combined patches of comment 1, comment 9 and comment 10:
Index: gcc/fortran/class.c
===
---
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50960
--- Comment #13 from Tobias Burnus burnus at gcc dot gnu.org 2011-11-03
14:03:40 UTC ---
Patch for the issue of comment 5: Constants (PARAMETER) which are exists as
global static variables were not marked as TREE_READONLY.
With the patch below
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50960
--- Comment #14 from Richard Guenther rguenth at gcc dot gnu.org 2011-11-03
14:17:52 UTC ---
(In reply to comment #13)
Patch for the issue of comment 5: Constants (PARAMETER) which are exists as
global static variables were not marked as
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50960
--- Comment #15 from Tobias Burnus burnus at gcc dot gnu.org 2011-11-03
14:23:59 UTC ---
(In reply to comment #14)
Yes, that should work iff Fortran does not allow parameter initializers
that require runtime init (like / foo() /, thus a
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50960
--- Comment #16 from Richard Guenther rguenth at gcc dot gnu.org 2011-11-03
14:29:29 UTC ---
(In reply to comment #11)
(In reply to comment #9)
FAIL: gfortran.dg/extends_type_of_1.f03 -O0 (internal compiler error)
FAIL:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50960
--- Comment #17 from Richard Guenther rguenth at gcc dot gnu.org 2011-11-03
14:34:02 UTC ---
(In reply to comment #16)
(In reply to comment #11)
(In reply to comment #9)
FAIL: gfortran.dg/extends_type_of_1.f03 -O0 (internal compiler
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50960
--- Comment #18 from Tobias Burnus burnus at gcc dot gnu.org 2011-11-03
22:32:42 UTC ---
Author: burnus
Date: Thu Nov 3 22:32:37 2011
New Revision: 180878
URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=180878
Log:
2011-11-03 Tobias Burnus
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50960
--- Comment #1 from janus at gcc dot gnu.org 2011-11-02 11:57:44 UTC ---
(In reply to comment #0)
richi and it seems the vtables are not initialized in a way the
optimizers could use them
richi they are not constant
Right. I had
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50960
Richard Guenther rguenth at gcc dot gnu.org changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50960
--- Comment #3 from Richard Guenther rguenth at gcc dot gnu.org 2011-11-02
14:37:35 UTC ---
The vtable object looks like (with the patch):
var_decl 0x75a2c280 __vtab_m_T
type record_type 0x75b37dc8 __vtype_m_T BLK
size
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50960
--- Comment #4 from Richard Guenther rguenth at gcc dot gnu.org 2011-11-02
14:40:09 UTC ---
Doing that in gdb yields to
bb 6:
D.1793_12 = __vtab_m_T;
D.1794_13 = base;
base ();
in the fre1 dump.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50960
--- Comment #5 from Tobias Burnus burnus at gcc dot gnu.org 2011-11-02
14:57:34 UTC ---
(In reply to comment #1)
- if (gfc_add_flavor (vtab-attr, FL_VARIABLE, NULL,
+ if (gfc_add_flavor (vtab-attr, FL_PARAMETER, NULL,
(In reply
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50960
--- Comment #6 from janus at gcc dot gnu.org 2011-11-02 15:08:28 UTC ---
(In reply to comment #1)
I'll try if the following patch survives regtesting
It fails at least on:
FAIL: gfortran.dg/dynamic_dispatch_4.f03 -O0 (test for excess errors)
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50960
--- Comment #7 from Richard Guenther rguenth at gcc dot gnu.org 2011-11-02
15:16:08 UTC ---
(In reply to comment #5)
(In reply to comment #1)
- if (gfc_add_flavor (vtab-attr, FL_VARIABLE, NULL,
+ if (gfc_add_flavor
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50960
--- Comment #8 from janus at gcc dot gnu.org 2011-11-02 16:44:56 UTC ---
(In reply to comment #6)
It fails at least on:
FAIL: gfortran.dg/dynamic_dispatch_4.f03 -O0 (test for excess errors)
Here is a reduced test case:
module foo_mod
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50960
--- Comment #9 from janus at gcc dot gnu.org 2011-11-02 18:49:35 UTC ---
(In reply to comment #6)
It fails at least on:
FAIL: gfortran.dg/dynamic_dispatch_4.f03 -O0 (test for excess errors)
FAIL: gfortran.dg/dynamic_dispatch_5.f03 -O0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50960
--- Comment #10 from janus at gcc dot gnu.org 2011-11-02 20:11:01 UTC ---
(In reply to comment #9)
Apart from the two failures above, the patch in comment 1 also fails on:
FAIL: gfortran.dg/class_15.f03 -O (internal compiler error)
The
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50960
--- Comment #11 from janus at gcc dot gnu.org 2011-11-02 21:17:11 UTC ---
(In reply to comment #9)
FAIL: gfortran.dg/extends_type_of_1.f03 -O0 (internal compiler error)
FAIL: gfortran.dg/extends_type_of_3.f90 -O (internal compiler error)
24 matches
Mail list logo