[PATCH] math: Remove const attribute from totalorder* functions

Joseph Myers joseph@codesourcery.com
Wed Sep 4 19:52:00 GMT 2019


On Wed, 4 Sep 2019, Gabriel F. T. Gomes wrote:

> This commit removes the const attribute from the declarations of all
> totalorder functions, since the pointed-to data is likely to be changed
> by user code between invocations of totalorder*.

This is OK, but it would be better to replace it with __attribute_pure__ 
(the patch with that replacement is also OK, if it works).

-- 
Joseph S. Myers
joseph@codesourcery.com



More information about the Libc-alpha mailing list