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]

Re: [Ada] Workaround for bootstrap problem on PPC/S390 (PR19853)


    Only in the latter case does the gimplification done during SRA need
    to allocate a new temporary variable (to hold the {.LB0=1, .UB0=0}).

Oh, that's indeed right.  I first thought that was a bug because of the scope
of that template, but then went to look at the documentation of
the attribute and that's what it says:

    It is possible to use @code{Unrestricted_Access} for any type, but care
    must be excercised if it is used to create pointers to unconstrained
    objects. In this case, the resulting pointer has the same scope as the
    context of the attribute, and may not be returned to some enclosing
    scope. For instance, a function cannot use @code{Unrestricted_Access}
    to create a unconstrained pointer and then return that value to the
    caller.


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