[Bug c/91107] __attribute__((pure)) to function with non-const pointers

2019-07-08 Thread colomar.6.4.3 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91107 --- Comment #2 from Alejandro Colomar --- Technically it can modify globals as long as that doesn't affect the state of the program, but in this case it is affecting the state of the program, so it isn't a pure function. Fair enough, then the bu

[Bug c/91107] __attribute__((pure)) to function with non-const pointers

2019-07-08 Thread colomar.6.4.3 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91107 --- Comment #2 from Alejandro Colomar --- Technically it can modify globals as long as that doesn't affect the state of the program, but in this case it is affecting the state of the program, so it isn't a pure function. Fair enough, then the bu

[Bug c/91107] __attribute__((pure)) to function with non-const pointers

2019-07-08 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91107 Richard Biener changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---