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: sizeof on const


Tal Agmon wrote:
I have noticed that the following line yields different results for
different GCC (for our target) versions :
      long a = sizeof(0100000000000);

There are probably multiple causes. I suggest you debug gcc to see what is happening. See the c_sizeof_or_alignof function in c-common.c. The differences may be happening earlier during parsing, so look at that also.
--
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com



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