This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Patch, fortran] PR44596 - [OOP] Dynamic dispatch uses broken types


Patch committed as 'obvious' - revision 161801.

The patch follows a suggestion of Richard Guenther to disable TBAA for
vtables by making all pointers to them ref-all.  The better route
would be to provide BINFOs; however I think that the coming evolution
of OOP in gfortran will make this unnecessary, since (I think) the
vtables in a given class will all be the same type.

Bootstrapped and regtested on RHEL5.3/i686

Paul

2010-07-04  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/44596
	PR fortran/44745
	* trans-types.c (gfc_get_derived_type): Derived type fields
	with the vtype attribute must have TYPE_REF_CAN_ALIAS_ALL set.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]