[Bug c/101645] warn about neg of unsigned type should be added to -Wsign-conversion

2021-07-28 Thread matthew at wil dot cx via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101645 --- Comment #4 from Matthew Wilcox --- On second thoughts -Wsign-conversion is useless. Consider that it warns on this: unsigned long f(unsigned long x, int y) { return x + y; } Both gcc and clang emit a warning, which makes it useless.

[Bug c/101645] New: -Wsign-conversion misses negation of unsigned int

2021-07-27 Thread matthew at wil dot cx via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101645 Bug ID: 101645 Summary: -Wsign-conversion misses negation of unsigned int Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component

[Bug c/99997] Missed optimisation with -Os

2021-04-09 Thread matthew at wil dot cx via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=7 Matthew Wilcox changed: What|Removed |Added CC||matthew at wil dot cx --- Comment #1 fr

[Bug c/97287] New: Warn for expanding range of an arithmetic type

2020-10-04 Thread matthew at wil dot cx via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97287 Bug ID: 97287 Summary: Warn for expanding range of an arithmetic type Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c