[Bug c/69616] New: optimization of 8 movb

2016-02-02 Thread izaberina at gmail dot com
: unassigned at gcc dot gnu.org Reporter: izaberina at gmail dot com Target Milestone: --- I'm on arch linux on x86_64, using gcc 5.3.0. From this code: char tape[65536]; void f() { tape[0] = 0; tape[1] = 0; tape[2] = 0; tape[3] = 0; tape[4] = 0; tape[5] = 0

[Bug c/70412] New: -Wswitch and functions that can only return a small set of values

2016-03-25 Thread izaberina at gmail dot com
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: izaberina at gmail dot com Target Milestone: --- $ cat wswitch.c #include typedef enum { a, b, c, d, e } letter; letter func (int arg) { if (arg > 0) return a; retur

[Bug c/71926] New: wrong -Wparentheses warning

2016-07-18 Thread izaberina at gmail dot com
: unassigned at gcc dot gnu.org Reporter: izaberina at gmail dot com Target Milestone: --- int main() { int a = 1, b = 2, c = 3, d = 4; if (a = 2 || (b != 3 && c != 4 && d != 5)) return 1; return 0; } -Wparentheses produces the following warni

[Bug c/81166] New: no need to check if the pointer you pass to free is NULL

2017-06-22 Thread izaberina at gmail dot com
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: izaberina at gmail dot com Target Milestone: --- gcc -Os compiles this function void myfree(void *mem) { if (mem) free(mem); } to myfree(void*): testrdi, rdi

[Bug c/83397] void f() { } has zero arguments

2017-12-12 Thread izaberina at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83397 --- Comment #1 from Isabella --- int a; static void __attribute__((noinline)) f1() { a = 7; } void g1(void) { f1(); } static void __attribute__((noinline)) f2(void) { a = 7; } void g2(void) { f2(); } gets compiled to f1: movl $7,

[Bug c/83397] New: void f() { } has zero arguments

2017-12-12 Thread izaberina at gmail dot com
Assignee: unassigned at gcc dot gnu.org Reporter: izaberina at gmail dot com Target Milestone: --- https://godbolt.org/g/8ZcWKk according to c11 6.7.6.3, function prototypes without arguments don't specify anything about their parameters gcc is assuming that f1 takes an unspecified

[Bug c++/106675] New: g++ crashes on funky operators

2022-08-18 Thread izaberina at gmail dot com via Gcc-bugs
++ Assignee: unassigned at gcc dot gnu.org Reporter: izaberina at gmail dot com Target Milestone: --- Created attachment 53472 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53472=edit short repro Attached is a small reproducer of something that originally came from boost::sys