[Bug middle-end/50060] intrinsics not folded by the middle-end

2016-07-20 Thread pbristow at hetp dot u-net.com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50060 --- Comment #11 from Paul A. Bristow --- Thanks for all this, which looks helpful, but I am not able to use unreleased compiler versions, so meanwhile I am working to use a workaround (to allow me to see what other pitfalls lie ahead for the novi

[Bug middle-end/50060] intrinsics not folded by the middle-end

2016-07-20 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50060 Jakub Jelinek changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug middle-end/50060] intrinsics not folded by the middle-end

2016-07-20 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50060 --- Comment #9 from Jakub Jelinek --- Author: jakub Date: Wed Jul 20 14:00:02 2016 New Revision: 238520 URL: https://gcc.gnu.org/viewcvs?rev=238520&root=gcc&view=rev Log: PR c++/50060 * constexpr.c (cxx_eval_builtin_function_call

[Bug middle-end/50060] intrinsics not folded by the middle-end

2016-07-15 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50060 --- Comment #8 from Jakub Jelinek --- Created attachment 38912 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38912&action=edit gcc7-pr50060.patch Untested patch (for -std=c++14 and later only).

[Bug middle-end/50060] intrinsics not folded by the middle-end

2016-07-14 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50060 --- Comment #7 from Jakub Jelinek --- Shouldn't this be solvable in C++14 and later? We still reject it: error: ‘((y = 1), 6.2e-1)’ is not a constant expression but I suppose with some hacking of cp/constexpr.c this could be handled. constexpr d

[Bug middle-end/50060] intrinsics not folded by the middle-end

2016-07-14 Thread pbristow at hetp dot u-net.com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50060 Paul A. Bristow changed: What|Removed |Added CC||pbristow at hetp dot u-net.com --- Com

[Bug middle-end/50060] intrinsics not folded by the middle-end

2011-08-12 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50060 Paolo Carlini changed: What|Removed |Added CC|jason at gcc dot gnu.org| --- Comment #5 from Paolo Carlini 2011-

[Bug middle-end/50060] intrinsics not folded by the middle-end

2011-08-12 Thread jason at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50060 --- Comment #4 from Jason Merrill 2011-08-12 21:17:05 UTC --- (In reply to comment #3) > (It seems more a problem with my C++ test snippets in Comments #1 / #2: I > suppose any definition of such functions isn't viable for constexpr, because > th

[Bug middle-end/50060] intrinsics not folded by the middle-end

2011-08-12 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50060 Paolo Carlini changed: What|Removed |Added CC||jason at gcc dot gnu.org --- Comment #3 f

[Bug middle-end/50060] intrinsics not folded by the middle-end

2011-08-12 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50060 --- Comment #2 from Paolo Carlini 2011-08-12 16:26:00 UTC --- ... frexp also don't understand at the moment. I see a fold_builtin_frexp but the following doesn't compile: int r = 0; constexpr double d = __builtin_frexp(1.0, &r);

[Bug middle-end/50060] intrinsics not folded by the middle-end

2011-08-12 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50060 --- Comment #1 from Paolo Carlini 2011-08-12 16:12:56 UTC --- Uhm, remquo is strange. I see a do_mpfr_remquo but the following C++11 snippet is rejected, I don't know why: int r = 0; constexpr double d = __builtin_remquo(1.0, 1.0, &r);