This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/86092] global constant pointer optimization


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86092

--- Comment #5 from Srinivas Achary <srinivas.sundar at vvdntech dot in> ---
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 kern_buff_p initial value is NULL
and the variable have been allocated the memory during runtime without any
issue.

The problem is during compilation, the compiler optimizes all my conditional
statements used with this constant pointers. Due to this, I am not able to run
my code in New machines.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]