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]

Re: Overly-critical sanity check in ix86_compute_frame_size


    It would make a lot more sense to trap this case in assign_stack_local
    instead.  You're just wasting stack space on unnecessary alignment
    otherwise.

That was my first thought, but it's not quite correct.  Even if you
are allocating a zero-size object, the pointer returned must still
meet the alignment restrictions from a definitional perspective and
Ada actually cares (it wouldn't surprise me if there was a test in the
validation suite that checks for this, in fact).

Zero-sized objects aren't exactly common, so I don't see the waste as
a big thing.

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