This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Yet another function attribute?
>>>>> Jan Hubicka <hubicka@atrey.karlin.mff.cuni.cz> writes:
> While implementing it (I am just doing last checks for first part of
> patch to handle such functions and detect them automatically)
> I found that it match closely "side_effects" attribute in gcc.
> So maybe "noside_effects" can be good name. But it does not represent
> the fact, that function also must be deterministics, so possibly
> someone will tend to add "noside_effects" to functions like inport,
> where it is wrong.
inport has side effects; reading from a volatile lvalue is a side effect.
Jason