String optimization problem with -ffunction/data-sections
Graham Stoney
greyham@research.canon.com.au
Tue Apr 25 18:03:00 GMT 2000
Hi Mike,
Mike Stump writes:
> > To: gcc-bugs@gcc.gnu.org
> > Date: Thu, 20 Apr 2000 16:38:12 +1000 (EST)
> > From: greyham@research.canon.com.au (Graham Stoney)
>
> > I've encountered a problem with constant strings from unused functions not
> > being optimised away along with the function.
>
> Actually, it is worse than this. The strings need to be grouped with
> the thing that references them, with locals allowed across the group,
> or the strings need to be put into the referencing section.
Could you elaborate on why this is necessary please? I'm not sure why the
obvious section usages which work for other data wouldn't work for strings.
Thanks,
Graham
More information about the Gcc-bugs
mailing list