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: lto gimple types and debug info


Daniel Berlin wrote:

The problem that sizeof creates is different, in that you have no way
to tell where it's been used.

The point is that even if you *did* know, that wouldn't help you. Nothing in the language says that "sizeof (X)" is any different from a constant that has that ABI-specified value. If the compiler emits code that behaves differently based on whether I wrote "sizeof (X)" or "12" (assuming X is a 12-byte structure), then the compiler is broken.


--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713


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