[Bug c/59708] clang-compatible checked arithmetic builtins

2015-01-05 Thread pthaugen at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59708 --- Comment #31 from Pat Haugen pthaugen at gcc dot gnu.org --- (In reply to Pat Haugen from comment #30) builtin-arith-overflow-10/11 are target problem, I'm working on a fix. builtin-arith-overflow-10/11 are fixed with the patch for pr64358.

[Bug c/59708] clang-compatible checked arithmetic builtins

2014-12-17 Thread pthaugen at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59708 --- Comment #30 from Pat Haugen pthaugen at gcc dot gnu.org --- (In reply to Pat Haugen from comment #29) (In reply to Jakub Jelinek from comment #28) Assuming fixed. builtin-arith-overflow-14/17 are fixed with the patch, but

[Bug c/59708] clang-compatible checked arithmetic builtins

2014-12-03 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59708 --- Comment #25 from Jakub Jelinek jakub at gcc dot gnu.org --- Created attachment 34179 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=34179action=edit gcc5-pr59708.patch Untested fix for the ppc32 builtin-arith-overflow-14.c failure.

[Bug c/59708] clang-compatible checked arithmetic builtins

2014-12-03 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59708 --- Comment #26 from Jakub Jelinek jakub at gcc dot gnu.org --- Author: jakub Date: Wed Dec 3 20:35:08 2014 New Revision: 218331 URL: https://gcc.gnu.org/viewcvs?rev=218331root=gccview=rev Log: PR c/59708 * expmed.c

[Bug c/59708] clang-compatible checked arithmetic builtins

2014-12-03 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59708 --- Comment #27 from Jakub Jelinek jakub at gcc dot gnu.org --- Author: jakub Date: Wed Dec 3 20:38:44 2014 New Revision: 218333 URL: https://gcc.gnu.org/viewcvs?rev=218333root=gccview=rev Log: PR c/59708 * expmed.c

[Bug c/59708] clang-compatible checked arithmetic builtins

2014-12-03 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59708 Jakub Jelinek jakub at gcc dot gnu.org changed: What|Removed |Added Status|ASSIGNED|RESOLVED

[Bug c/59708] clang-compatible checked arithmetic builtins

2014-12-03 Thread pthaugen at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59708 --- Comment #29 from Pat Haugen pthaugen at gcc dot gnu.org --- (In reply to Jakub Jelinek from comment #28) Assuming fixed. builtin-arith-overflow-14/17 are fixed with the patch, but builtin-arith-overflow-1/10/11 still fail for me.

[Bug c/59708] clang-compatible checked arithmetic builtins

2014-12-02 Thread sch...@linux-m68k.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59708 --- Comment #24 from Andreas Schwab sch...@linux-m68k.org --- builtin-arith-overflow-14.c still fails on ppc32 as of r218249.

[Bug c/59708] clang-compatible checked arithmetic builtins

2014-11-24 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59708 Marek Polacek mpolacek at gcc dot gnu.org changed: What|Removed |Added CC||mpolacek at

[Bug c/59708] clang-compatible checked arithmetic builtins

2014-11-24 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59708 --- Comment #23 from Markus Trippelsdorf trippels at gcc dot gnu.org --- (In reply to Marek Polacek from comment #22) So fixed? Not on ppc64: trippels@gcc2-power8 ~ % cat out_check15 | grep overflow FAIL: gcc.dg/builtin-arith-overflow-1.c

[Bug c/59708] clang-compatible checked arithmetic builtins

2014-11-23 Thread dave.anglin at bell dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59708 --- Comment #21 from dave.anglin at bell dot net --- On 22-Nov-14, at 2:31 AM, jakub at gcc dot gnu.org wrote: Is that with r217946 or later? This is now fixed on hppa-unknown-linux-gnu. -- John David Anglindave.ang...@bell.net

[Bug c/59708] clang-compatible checked arithmetic builtins

2014-11-22 Thread dave.anglin at bell dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59708 --- Comment #20 from dave.anglin at bell dot net --- On 22-Nov-14, at 2:31 AM, jakub at gcc dot gnu.org wrote: Is that with r217946 or later? No. My latest build is r217898. -- John David Anglindave.ang...@bell.net

[Bug c/59708] clang-compatible checked arithmetic builtins

2014-11-21 Thread danglin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59708 John David Anglin danglin at gcc dot gnu.org changed: What|Removed |Added CC||danglin at

[Bug c/59708] clang-compatible checked arithmetic builtins

2014-11-21 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59708 --- Comment #19 from Jakub Jelinek jakub at gcc dot gnu.org --- (In reply to John David Anglin from comment #18) On hppa-unknown-linux-gnu, I get: FAIL: c-c++-common/torture/builtin-arith-overflow-14.c -O0 execution test FAIL:

[Bug c/59708] clang-compatible checked arithmetic builtins

2014-11-17 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59708 Markus Trippelsdorf trippels at gcc dot gnu.org changed: What|Removed |Added CC|

[Bug c/59708] clang-compatible checked arithmetic builtins

2014-11-17 Thread ubizjak at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59708 --- Comment #17 from Uroš Bizjak ubizjak at gmail dot com --- On alpha-linux-gnu, I got following g++ failures: FAIL: c-c++-common/torture/builtin-arith-overflow-17.c -O0 execution test FAIL: c-c++-common/torture/builtin-arith-overflow-17.c

[Bug c/59708] clang-compatible checked arithmetic builtins

2014-11-12 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59708 --- Comment #15 from Jakub Jelinek jakub at gcc dot gnu.org --- Author: jakub Date: Wed Nov 12 12:28:06 2014 New Revision: 217415 URL: https://gcc.gnu.org/viewcvs?rev=217415root=gccview=rev Log: PR c/59708 * builtin-attrs.def

[Bug c/59708] clang-compatible checked arithmetic builtins

2014-11-07 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59708 Jakub Jelinek jakub at gcc dot gnu.org changed: What|Removed |Added Attachment #33912|0 |1 is

[Bug c/59708] clang-compatible checked arithmetic builtins

2014-11-06 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59708 Jakub Jelinek jakub at gcc dot gnu.org changed: What|Removed |Added Attachment #33891|0 |1 is

[Bug c/59708] clang-compatible checked arithmetic builtins

2014-11-05 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59708 Jakub Jelinek jakub at gcc dot gnu.org changed: What|Removed |Added Attachment #33855|0 |1 is

[Bug c/59708] clang-compatible checked arithmetic builtins

2014-10-31 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59708 --- Comment #11 from Jakub Jelinek jakub at gcc dot gnu.org --- Created attachment 33855 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=33855action=edit gcc5-pr59708-wip1.patch WIP untested patch, which implements so far the clang

[Bug c/59708] clang-compatible checked arithmetic builtins

2014-08-24 Thread Martin.vGagern at gmx dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59708 Martin von Gagern Martin.vGagern at gmx dot net changed: What|Removed |Added CC|

[Bug c/59708] clang-compatible checked arithmetic builtins

2014-08-24 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59708 --- Comment #8 from Andrew Pinski pinskia at gcc dot gnu.org --- I rather not have builtins as you can write portable C code that detects overflow just fine. GCC could have internal functions if needed which are used when converting the pattern

[Bug c/59708] clang-compatible checked arithmetic builtins

2014-08-24 Thread Martin.vGagern at gmx dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59708 --- Comment #9 from Martin von Gagern Martin.vGagern at gmx dot net --- (In reply to Andrew Pinski from comment #8) I rather not have builtins as you can write portable C code that detects overflow just fine. GCC could have internal functions

[Bug c/59708] clang-compatible checked arithmetic builtins

2014-08-24 Thread manu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59708 Manuel López-Ibáñez manu at gcc dot gnu.org changed: What|Removed |Added CC||noloader at

[Bug c/59708] clang-compatible checked arithmetic builtins

2014-01-07 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59708 Richard Biener rguenth at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |NEW Last

[Bug c/59708] clang-compatible checked arithmetic builtins

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

[Bug c/59708] clang-compatible checked arithmetic builtins

2014-01-07 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59708 --- Comment #3 from Richard Biener rguenth at gcc dot gnu.org --- (In reply to Jakub Jelinek from comment #2) Not sure I like their naming though, I'd say they should be type generic builtins handled in the FEs depending on the first argument's

[Bug c/59708] clang-compatible checked arithmetic builtins

2014-01-07 Thread josh at joshtriplett dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59708 --- Comment #4 from Josh Triplett josh at joshtriplett dot org --- (In reply to Jakub Jelinek from comment #2) Not sure I like their naming though, I'd say they should be type generic builtins handled in the FEs depending on the first argument's

[Bug c/59708] clang-compatible checked arithmetic builtins

2014-01-07 Thread joseph at codesourcery dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59708 --- Comment #5 from joseph at codesourcery dot com joseph at codesourcery dot com --- See what I said in http://gcc.gnu.org/ml/gcc/2013-10/msg00280.html about the issues with something type-generic regarding detecting overflow on types smaller

[Bug c/59708] clang-compatible checked arithmetic builtins

2014-01-07 Thread josh at joshtriplett dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59708 --- Comment #6 from Josh Triplett josh at joshtriplett dot org --- (In reply to jos...@codesourcery.com from comment #5) See what I said in http://gcc.gnu.org/ml/gcc/2013-10/msg00280.html about the issues with something type-generic regarding