r189200 - in /branches/gcc-4_7-branch/gcc/ada: ...
ebotcazou@gcc.gnu.org
ebotcazou@gcc.gnu.org
Tue Jul 3 08:29:00 GMT 2012
Author: ebotcazou
Date: Tue Jul 3 08:29:04 2012
New Revision: 189200
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=189200
Log:
* exp_disp.adb (Expand_Dispatching_Call): Propagate the convention on
the designated subprogram type and also set Is_Dispatch_Table_Entity.
(Expand_Interface_Thunk): Propagate the convention on the thunk.
(Set_CPP_Constructors_Old): Set Is_Constructor and Convention_CPP on
the internal view of the constructors.
(Set_CPP_Constructors): Likewise.
* sem_prag.adb (Analyze_Pragma) <Pragma_CPP_Constructor>: Set the
convention on the function.
* gcc-interface/gigi.h (is_cplusplus_method): Declare.
* gcc-interface/decl.c (Has_Thiscall_Convention): New macro.
(gnat_to_gnu_entity) <E_Subprogram_Type>: Test it to set the `thiscall'
calling convention
(get_minimal_subprog_decl): Likewise.
(is_cplusplus_method): New predicate.
* gcc-interface/trans.c (Attribute_to_gnu) <Attr_Access>: Issue an
error on access to C++ constructor or member function.
Modified:
branches/gcc-4_7-branch/gcc/ada/ChangeLog
branches/gcc-4_7-branch/gcc/ada/exp_disp.adb
branches/gcc-4_7-branch/gcc/ada/gcc-interface/decl.c
branches/gcc-4_7-branch/gcc/ada/gcc-interface/gigi.h
branches/gcc-4_7-branch/gcc/ada/gcc-interface/trans.c
branches/gcc-4_7-branch/gcc/ada/sem_prag.adb
More information about the Gcc-cvs
mailing list