Andrew Pinski wrote: >"Stupid" example where a const argument can change: >tree a; >int f(const tree b) >{ > TREE_CODE(a) = TREE_CODE (b) + 1; > return TREE_CODE (b); >}
You're not changing the constant argument "b", just what "b" might point to. I don't think there are any optimizing opportunities for arguments declared as const, as opposed to arguments declared as pointing to const. Ross Ridge