[Bug middle-end/60092] posix_memalign not recognized to derive alias and alignment info

2014-06-03 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60092 Richard Biener rguenth at gcc dot gnu.org changed: What|Removed |Added Status|ASSIGNED|RESOLVED

[Bug middle-end/60092] posix_memalign not recognized to derive alias and alignment info

2014-04-28 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60092 --- Comment #27 from Richard Biener rguenth at gcc dot gnu.org --- Author: rguenth Date: Mon Apr 28 14:36:13 2014 New Revision: 209863 URL: http://gcc.gnu.org/viewcvs?rev=209863root=gccview=rev Log: 2014-04-28 Richard Biener rguent...@suse.de

[Bug middle-end/60092] posix_memalign not recognized to derive alias and alignment info

2014-04-22 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60092 Jakub Jelinek jakub at gcc dot gnu.org changed: What|Removed |Added Target Milestone|4.9.0 |4.9.1 ---

[Bug middle-end/60092] posix_memalign not recognized to derive alias and alignment info

2014-02-18 Thread ro at CeBiTec dot Uni-Bielefeld.DE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60092 --- Comment #25 from ro at CeBiTec dot Uni-Bielefeld.DE ro at CeBiTec dot Uni-Bielefeld.DE --- --- Comment #24 from Richard Biener rguenth at gcc dot gnu.org --- As the standard doesn't specify that the value is undefined upon error and it

[Bug middle-end/60092] posix_memalign not recognized to derive alias and alignment info

2014-02-15 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60092 --- Comment #24 from Richard Biener rguenth at gcc dot gnu.org --- As the standard doesn't specify that the value is undefined upon error and it only specifies its contents upon successfull completion it implicitely says that it retains the

[Bug middle-end/60092] posix_memalign not recognized to derive alias and alignment info

2014-02-14 Thread ro at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60092 Rainer Orth ro at gcc dot gnu.org changed: What|Removed |Added CC||ro at gcc dot gnu.org

[Bug middle-end/60092] posix_memalign not recognized to derive alias and alignment info

2014-02-14 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60092 --- Comment #22 from Jakub Jelinek jakub at gcc dot gnu.org --- (In reply to Rainer Orth from comment #21) The new test FAILs on Solaris 11 (both SPARC and x86), which, unlike Solaris 10, has posix_memalign in libc: FAIL:

[Bug middle-end/60092] posix_memalign not recognized to derive alias and alignment info

2014-02-14 Thread ro at CeBiTec dot Uni-Bielefeld.DE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60092 --- Comment #23 from ro at CeBiTec dot Uni-Bielefeld.DE ro at CeBiTec dot Uni-Bielefeld.DE --- --- Comment #22 from Jakub Jelinek jakub at gcc dot gnu.org --- (In reply to Rainer Orth from comment #21) The new test FAILs on Solaris 11 (both

[Bug middle-end/60092] posix_memalign not recognized to derive alias and alignment info

2014-02-12 Thread burnus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60092 Tobias Burnus burnus at gcc dot gnu.org changed: What|Removed |Added CC||burnus at gcc

[Bug middle-end/60092] posix_memalign not recognized to derive alias and alignment info

2014-02-12 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60092 --- Comment #19 from Jakub Jelinek jakub at gcc dot gnu.org --- (In reply to Tobias Burnus from comment #18) (In reply to Richard Biener from comment #1) We could lower posix_memalign (ptr, align, size); to posix_memalign (ptr, align,

[Bug middle-end/60092] posix_memalign not recognized to derive alias and alignment info

2014-02-12 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60092 --- Comment #20 from Richard Biener rguenth at gcc dot gnu.org --- Author: rguenth Date: Wed Feb 12 13:36:08 2014 New Revision: 207720 URL: http://gcc.gnu.org/viewcvs?rev=207720root=gccview=rev Log: 2014-02-12 Richard Biener rguent...@suse.de

[Bug middle-end/60092] posix_memalign not recognized to derive alias and alignment info

2014-02-08 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60092 --- Comment #17 from Jakub Jelinek jakub at gcc dot gnu.org --- Author: jakub Date: Sat Feb 8 09:09:01 2014 New Revision: 207628 URL: http://gcc.gnu.org/viewcvs?rev=207628root=gccview=rev Log: PR middle-end/60092 * tree-ssa-ccp.c

[Bug middle-end/60092] posix_memalign not recognized to derive alias and alignment info

2014-02-07 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60092 --- Comment #15 from Richard Biener rguenth at gcc dot gnu.org --- Author: rguenth Date: Fri Feb 7 09:33:23 2014 New Revision: 207595 URL: http://gcc.gnu.org/viewcvs?rev=207595root=gccview=rev Log: 2014-02-07 Richard Biener rguent...@suse.de

[Bug middle-end/60092] posix_memalign not recognized to derive alias and alignment info

2014-02-07 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60092 --- Comment #16 from Richard Biener rguenth at gcc dot gnu.org --- Author: rguenth Date: Fri Feb 7 13:41:10 2014 New Revision: 207598 URL: http://gcc.gnu.org/viewcvs?rev=207598root=gccview=rev Log: 2014-02-07 Richard Biener rguent...@suse.de

[Bug middle-end/60092] posix_memalign not recognized to derive alias and alignment info

2014-02-06 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60092 Richard Biener rguenth at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED

[Bug middle-end/60092] posix_memalign not recognized to derive alias and alignment info

2014-02-06 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60092 Jakub Jelinek jakub at gcc dot gnu.org changed: What|Removed |Added CC||jakub at gcc dot

[Bug middle-end/60092] posix_memalign not recognized to derive alias and alignment info

2014-02-06 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60092 --- Comment #3 from Richard Biener rguenth at gcc dot gnu.org --- Created attachment 32064 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=32064action=edit part #1, aliasing I've implemented the aliasing parts (and the builtin obviously).

[Bug middle-end/60092] posix_memalign not recognized to derive alias and alignment info

2014-02-06 Thread glisse at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60092 --- Comment #4 from Marc Glisse glisse at gcc dot gnu.org --- Hack: when the return value of posix_memalign is ignored, if the platform supports it, replace with a call to aligned_alloc (C11), which has an easier interface.

[Bug middle-end/60092] posix_memalign not recognized to derive alias and alignment info

2014-02-06 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60092 --- Comment #5 from Richard Biener rguenth at gcc dot gnu.org --- Created attachment 32066 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=32066action=edit part #2, C11 aligned_alloc It was noted that aligned_alloc is standard enough to be

[Bug middle-end/60092] posix_memalign not recognized to derive alias and alignment info

2014-02-06 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60092 --- Comment #6 from Jakub Jelinek jakub at gcc dot gnu.org --- (In reply to Marc Glisse from comment #4) Hack: when the return value of posix_memalign is ignored, if the platform supports it, replace with a call to aligned_alloc (C11), which has

[Bug middle-end/60092] posix_memalign not recognized to derive alias and alignment info

2014-02-06 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60092 --- Comment #7 from Richard Biener rguenth at gcc dot gnu.org --- (In reply to Jakub Jelinek from comment #6) (In reply to Marc Glisse from comment #4) Hack: when the return value of posix_memalign is ignored, if the platform supports it,

[Bug middle-end/60092] posix_memalign not recognized to derive alias and alignment info

2014-02-06 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60092 --- Comment #8 from Jakub Jelinek jakub at gcc dot gnu.org --- (In reply to Richard Biener from comment #7) According to the specification this is wrong. Note that changing errno is hindering optimization. For example int foo (int *p) {

[Bug middle-end/60092] posix_memalign not recognized to derive alias and alignment info

2014-02-06 Thread rguenther at suse dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60092 --- Comment #9 from rguenther at suse dot de rguenther at suse dot de --- On Thu, 6 Feb 2014, jakub at gcc dot gnu.org wrote: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60092 --- Comment #8 from Jakub Jelinek jakub at gcc dot gnu.org ---

[Bug middle-end/60092] posix_memalign not recognized to derive alias and alignment info

2014-02-06 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60092 --- Comment #10 from Jakub Jelinek jakub at gcc dot gnu.org --- (In reply to rguent...@suse.de from comment #9) Ok, my manpage says RETURN VALUE aligned_alloc(), memalign(), valloc(), and pvalloc() return a pointer to the

[Bug middle-end/60092] posix_memalign not recognized to derive alias and alignment info

2014-02-06 Thread sch...@linux-m68k.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60092 --- Comment #11 from Andreas Schwab sch...@linux-m68k.org --- If a function is not allowed to change errno this must be explicitly documented.

[Bug middle-end/60092] posix_memalign not recognized to derive alias and alignment info

2014-02-06 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60092 --- Comment #12 from Richard Biener rguenth at gcc dot gnu.org --- (In reply to Andreas Schwab from comment #11) If a function is not allowed to change errno this must be explicitly documented. That means Index: gcc/tree-ssa-alias.c

[Bug middle-end/60092] posix_memalign not recognized to derive alias and alignment info

2014-02-06 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60092 --- Comment #13 from Jakub Jelinek jakub at gcc dot gnu.org --- (In reply to Richard Biener from comment #12) (In reply to Andreas Schwab from comment #11) If a function is not allowed to change errno this must be explicitly documented.

[Bug middle-end/60092] posix_memalign not recognized to derive alias and alignment info

2014-02-06 Thread rguenther at suse dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60092 --- Comment #14 from rguenther at suse dot de rguenther at suse dot de --- On Thu, 6 Feb 2014, jakub at gcc dot gnu.org wrote: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60092 --- Comment #13 from Jakub Jelinek jakub at gcc dot gnu.org ---