[Bug c/111307] New: RFE: builtin to construct va_list

2023-09-06 Thread equinox-gccbugs at diac24 dot net via Gcc-bugs
Assignee: unassigned at gcc dot gnu.org Reporter: equinox-gccbugs at diac24 dot net Target Milestone: --- A common pattern of defining a pair of varargs functions looks like: void somefuncv(char *spec, va_list ap) { /* ... */ } void somefunc(char *spec

[Bug c/57612] add builtin to assert that expression does not have side effects

2021-03-16 Thread equinox-gccbugs at diac24 dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57612 David L. changed: What|Removed |Added CC||equinox-gccbugs at diac24 dot net

[Bug c/99526] New: Casts should retain typedef information

2021-03-10 Thread equinox-gccbugs at diac24 dot net via Gcc-bugs
Assignee: unassigned at gcc dot gnu.org Reporter: equinox-gccbugs at diac24 dot net Target Milestone: --- Currently, any cast in C will produce the "resolved" type regardless of whether the cast is written using a typedef. E.g.: typedef int i; typedef cons

[Bug c++/41091] Using section attribute in c and c++ function causes section type conflict

2021-02-02 Thread equinox-gccbugs at diac24 dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41091 David L. changed: What|Removed |Added CC||equinox-gccbugs at diac24 dot net

[Bug c/69981] -f[no]keep-static-consts has no effect

2016-02-26 Thread equinox-gccbugs at diac24 dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69981 --- Comment #6 from David L. --- Created attachment 37808 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37808&action=edit patch (gcc-5.3.0) patch attached (probably makes the user's PC explode and burns down their house) varpool_node::fi

[Bug c/69981] -f[no]keep-static-consts has no effect

2016-02-26 Thread equinox-gccbugs at diac24 dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69981 --- Comment #5 from David L. --- (In reply to David L. from comment #4) > Poking around a bit, in wrapup_global_declaration_2() in gcc/toplev.c, the > check for >else if (TREE_READONLY (decl) && !TREE_PUBLIC (decl) >

[Bug c/69981] -f[no]keep-static-consts has no effect

2016-02-26 Thread equinox-gccbugs at diac24 dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69981 --- Comment #3 from David L. --- Poking around a bit, in wrapup_global_declaration_2() in gcc/toplev.c, the check for else if (TREE_READONLY (decl) && !TREE_PUBLIC (decl) && (optimize || !flag_keep_static

[Bug c/69981] -f[no]keep-static-consts has no effect

2016-02-26 Thread equinox-gccbugs at diac24 dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69981 --- Comment #4 from David L. --- Argh, for some reason this submitted in the middle of editing... Poking around a bit, in wrapup_global_declaration_2() in gcc/toplev.c, the check for else if (TREE_READONLY (decl) && !TREE_PUBLIC (decl)

[Bug c/69981] -f[no]keep-static-consts has no effect

2016-02-26 Thread equinox-gccbugs at diac24 dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69981 --- Comment #2 from David L. --- (In reply to Jakub Jelinek from comment #1) > I disagree, removing static consts is an optimization, if you tell the > compiler not to optimize, it doesn't perform the optimizations. Documentation bug then? It s

[Bug c/69981] New: -f[no]keep-static-consts has no effect

2016-02-26 Thread equinox-gccbugs at diac24 dot net
Assignee: unassigned at gcc dot gnu.org Reporter: equinox-gccbugs at diac24 dot net Target Milestone: --- This bug is an extension of #20319; the -fkeep-static-consts option seems to have no effect in either direction. (#20319 was focused on the "-fkeep" variant; my iss

[Bug c/65808] -pedantic -std=gnu11 results in warning for transparent_union usage

2015-04-20 Thread equinox-gccbugs at diac24 dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65808 --- Comment #2 from David L. --- (In reply to Marek Polacek from comment #1) > I don't think it is a bug. If you use -pedantic, it doesn't matter whether > -std=c11 or -std=gnu11 (the default) is in effect. > If you want to suppress the warning,

[Bug c/65808] New: -pedantic -std=gnu11 results in warning for transparent_union usage

2015-04-19 Thread equinox-gccbugs at diac24 dot net
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: equinox-gccbugs at diac24 dot net Created attachment 35359 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35359&action=edit test program, compile with -std=gnu11 -pedantic Tr