[Bug c/86092] global constant pointer optimization

2018-06-13 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86092 Richard Biener changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c/86092] global constant pointer optimization

2018-06-08 Thread srinivas.sundar at vvdntech dot in
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86092 --- Comment #5 from Srinivas Achary --- thank you Marc. What I have shown here is just an example sample code. But I have code which makes use of kern_buff_p variable in many place.If I use volatile that might reduce my code speed. Any how the

[Bug c/86092] global constant pointer optimization

2018-06-08 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86092 --- Comment #4 from Marc Glisse --- (In reply to Srinivas Achary from comment #2) > Is there any possibility to make this code work, Remove the 'const', or add 'volatile'. > without changing the variable attribute. -O0 > GCC-4 has no issue

[Bug c/86092] global constant pointer optimization

2018-06-08 Thread srinivas.sundar at vvdntech dot in
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86092 Srinivas Achary changed: What|Removed |Added Status|RESOLVED|UNCONFIRMED

[Bug c/86092] global constant pointer optimization

2018-06-08 Thread srinivas.sundar at vvdntech dot in
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86092 --- Comment #2 from Srinivas Achary --- Sorry that I am new to this. Is there any possibility to make this code work, without changing the variable attribute. GCC-4 has no issue with this code. What special flags have been included in the

[Bug c/86092] global constant pointer optimization

2018-06-08 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86092 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---