[Bug tree-optimization/65752] Too strong optimizations int - pointer casts

2015-05-26 Thread gil.hur at sf dot snu.ac.kr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65752 --- Comment #35 from Chung-Kil Hur gil.hur at sf dot snu.ac.kr --- (In reply to rguent...@suse.de from comment #34) On Sat, 23 May 2015, gil.hur at sf dot snu.ac.kr wrote: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65752 --- Comment

[Bug tree-optimization/65752] Too strong optimizations int - pointer casts

2015-05-26 Thread gil.hur at sf dot snu.ac.kr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65752 --- Comment #37 from Chung-Kil Hur gil.hur at sf dot snu.ac.kr --- (In reply to rguent...@suse.de from comment #36) On Tue, 26 May 2015, gil.hur at sf dot snu.ac.kr wrote: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65752 --- Comment

[Bug tree-optimization/65752] Too strong optimizations int - pointer casts

2015-05-23 Thread gil.hur at sf dot snu.ac.kr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65752 --- Comment #33 from Chung-Kil Hur gil.hur at sf dot snu.ac.kr --- Dear Richard, Thanks for the detailed response. I have a suggestion for a solution of the problem, which is based on my paper to appear at PLDI 2015. * A Formal C Memory Model

[Bug tree-optimization/65752] Too strong optimizations int - pointer casts

2015-05-21 Thread gil.hur at sf dot snu.ac.kr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65752 --- Comment #29 from Chung-Kil Hur gil.hur at sf dot snu.ac.kr --- Dear Richard, This time, I think I constructed a real bug. Please have a look and correct me if I am wrong. = #include stdio.h int main() { int x = 0

[Bug tree-optimization/65752] Too strong optimizations int - pointer casts

2015-05-20 Thread gil.hur at sf dot snu.ac.kr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65752 --- Comment #26 from Chung-Kil Hur gil.hur at sf dot snu.ac.kr --- Thanks for the detailed explanations. The C standard only guarantees that you can convert a pointer to uintptr_t and back, it doesn't guarantee that you can convert a modified

[Bug tree-optimization/65752] Too strong optimizations int - pointer casts

2015-05-20 Thread gil.hur at sf dot snu.ac.kr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65752 --- Comment #27 from Chung-Kil Hur gil.hur at sf dot snu.ac.kr --- (In reply to Chung-Kil Hur from comment #26) Thanks for the detailed explanations. The C standard only guarantees that you can convert a pointer to uintptr_t and back

[Bug tree-optimization/65752] Too strong optimizations int - pointer casts

2015-05-19 Thread gil.hur at sf dot snu.ac.kr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65752 --- Comment #15 from Chung-Kil Hur gil.hur at sf dot snu.ac.kr --- Hi Richard, Thanks for the explanation. But, what I wonder was how to justify such an optimization, rather than how it works. I have a better example. This might be a real bug

[Bug tree-optimization/65752] Too strong optimizations int - pointer casts

2015-05-19 Thread gil.hur at sf dot snu.ac.kr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65752 --- Comment #17 from Chung-Kil Hur gil.hur at sf dot snu.ac.kr --- Hi Richard, I modified the example further. #include stdio.h int main() { int x = 0; uintptr_t xp = (uintptr_t) x; uintptr_t i, j; for (i = 0; i xp; i++) { } j = i

[Bug tree-optimization/65752] Too strong optimizations int - pointer casts

2015-05-19 Thread gil.hur at sf dot snu.ac.kr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65752 --- Comment #21 from Chung-Kil Hur gil.hur at sf dot snu.ac.kr --- (In reply to Marek Polacek from comment #20) (In reply to Chung-Kil Hur from comment #19) (In reply to rguent...@suse.de from comment #18) On Tue, 19 May 2015, gil.hur at sf

[Bug tree-optimization/65752] Too strong optimizations int - pointer casts

2015-05-19 Thread gil.hur at sf dot snu.ac.kr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65752 --- Comment #22 from Chung-Kil Hur gil.hur at sf dot snu.ac.kr --- (In reply to Chung-Kil Hur from comment #21) (In reply to Marek Polacek from comment #20) (In reply to Chung-Kil Hur from comment #19) (In reply to rguent...@suse.de from

[Bug tree-optimization/65752] Too strong optimizations int - pointer casts

2015-05-19 Thread gil.hur at sf dot snu.ac.kr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65752 --- Comment #19 from Chung-Kil Hur gil.hur at sf dot snu.ac.kr --- (In reply to rguent...@suse.de from comment #18) On Tue, 19 May 2015, gil.hur at sf dot snu.ac.kr wrote: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65752 --- Comment

[Bug tree-optimization/65752] Too strong optimizations int - pointer casts

2015-05-19 Thread gil.hur at sf dot snu.ac.kr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65752 --- Comment #24 from Chung-Kil Hur gil.hur at sf dot snu.ac.kr --- (In reply to schwab from comment #23) gil.hur at sf dot snu.ac.kr gcc-bugzi...@gcc.gnu.org writes: Since hello is not printed, I think the if-statement is the same as no-op

[Bug tree-optimization/65752] Too strong optimizations int - pointer casts

2015-05-18 Thread gil.hur at sf dot snu.ac.kr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65752 Chung-Kil Hur gil.hur at sf dot snu.ac.kr changed: What|Removed |Added CC||gil.hur at sf