This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Target-specific pragmas
- To: bosch at gnat dot com (Geert Bosch)
- Subject: Re: Target-specific pragmas
- From: Joern Rennecke <amylaar at redhat dot com>
- Date: Tue, 26 Jun 2001 04:42:27 +0100 (BST)
- Cc: mark at codesourcery dot com (Mark Mitchell),shebs at apple dot com (Stan Shebs), gcc at gcc dot gnu dot org (gcc at gcc dot gnu dot org)
> I really don't want to see us try to do this. It is complex, and the
> semantics are highly non-obvious. What if you inline a writable-string
> function into one that isn't?
>
> The compiler must not do that.
>
> What if you inline a function optimized for speed into one optimized
> for space?
>
> The compiler should not do that.
I think it would be OK if it either tagged the strings from the inlined
function as writable, or made all strings in the larger function writable
(although the latter would be a poorer implementation).