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: [PATCH]: Fix PR tree-optimization/21407


Jakub Jelinek <jakub@redhat.com> wrote:

>> I think that the "what is an object" concerns apply in C++ too.  Though
>> you don't have "offsetof" for non-PODs, nothing says you can't just
>> *know* the offset and use it in the exact same way.  I really don't
>> think we can language-lawyer our away arounad the issues here; there is
>> no clear answer in the standard at this point.  We have to choose
ourselves.
>
> Or let the user choose, by providing a compiler switch for that.

We still need to choose the default (that is, enabling it at -O2 or -O3),
which is what will affect users most.
-- 
Giovanni Bajo


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