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] Reduce size footprint of empty strings.


On Thu, Feb 25, 2010 at 12:09:23PM +0100, Paolo Carlini wrote:
> .. sorry if my observation is slightly off-topic, or more general: I'm
> surprised by the use of a plain 'int' do index the string! What happens
> on 64-bit machines with strings longer than 2 G?

struct GTY(()) tree_string {
  struct tree_common common;
  int length;
  char str[1];
};

So the patch certainly doesn't make things worse, we don't support string
literals longer than 2GB anyway.

	Jakub


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