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]

String content not emitted


Hi!

The following "program" can be compiled without problems.

extern void something(char *s);
char msg[] = "123456";
int main(int argc, char **argv)
{
  something(msg);
  return 0;
}

But I can't compile it correctly with my backend. The content of msg is not emitted; there is only the label. It will be emitted when it the size is at least 8 characters.

I assume the problem is that I set BITS_PER_UNIT to 1 and that there is some size computation that depends on BITS_PER_UNIT >= 8. Is that possible? How can I fix that?

Thanks,
Boris


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