[Bug c/90628] __builtin_mul_overflow writes to const qualified integer

2020-11-17 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90628 --- Comment #8 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:2d8b144a2a61b007f59286731275773f6e167be1 commit r11-5077-g2d8b144a2a61b007f59286731275773f6e167be1 Author: Jakub Jelinek Date: Tu

[Bug c/90628] __builtin_mul_overflow writes to const qualified integer

2019-05-29 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90628 Jakub Jelinek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c/90628] __builtin_mul_overflow writes to const qualified integer

2019-05-29 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90628 --- Comment #6 from Jakub Jelinek --- Author: jakub Date: Wed May 29 07:48:37 2019 New Revision: 271732 URL: https://gcc.gnu.org/viewcvs?rev=271732&root=gcc&view=rev Log: PR c/90628 * c-common.c (check_builtin_function_arguments)

[Bug c/90628] __builtin_mul_overflow writes to const qualified integer

2019-05-27 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90628 --- Comment #5 from Jakub Jelinek --- -Wdiscarded-qualifiers is for when the prototype requires pointer to non-const and pointer to const is passed, which is the case for the clang style builtins, but not for __builtin_{add,sub,mul}_overflow, whe

[Bug c/90628] __builtin_mul_overflow writes to const qualified integer

2019-05-27 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90628 --- Comment #4 from Marc Glisse --- I wonder if in C it should be controlled by -Wdiscarded-qualifiers. I am happy with the unconditional error, just asking.

[Bug c/90628] __builtin_mul_overflow writes to const qualified integer

2019-05-27 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90628 Jakub Jelinek changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned a

[Bug c/90628] __builtin_mul_overflow writes to const qualified integer

2019-05-26 Thread gcc.hall at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90628 --- Comment #2 from Jeremy --- (In reply to Marc Glisse from comment #1) > Thanks for the report. > (next time, please include a complete, compilable example, with the > #includes, int main, etc) Sorry, here is a complete program:- #include i

[Bug c/90628] __builtin_mul_overflow writes to const qualified integer

2019-05-25 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90628 Marc Glisse changed: What|Removed |Added Keywords||diagnostic Status|UNCONFIRMED