This is the mail archive of the gcc@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]

Re: [RFC] ABI change for variable sized types


    Then David Edelsohn asked me why we didn't just change the ABI.
    
    Somehow, it had never occurred to me that this was an option.  One
    I've grown more and more fond of as I've thought about it over the 
    past two days.

    It would affect, as far as I can tell, only Ada, and only in cases
    in which the size of the type is variable but whose size is not
    computed from the object itself (CONTAINS_PLACEHOLDER_P).

That's not a problem at all.  There's absolutely no requirement in
Ada that variable-sized types be passed by value.  The only types that
*must* be able to be passed by values are scalars.  And the issue of
backwards compatibility from an ABI point of view isn't a concern
since Ada users expect "private" calling conventions between Ada
subprograms anyway.


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