[Bug c/66963] __builtin_constant_p and __builtin_choose_expr do not agree on what is a constexpr with -O2

2015-07-29 Thread nicstange at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66963 --- Comment #6 from Nicolai Stange nicstange at gmail dot com --- Thank you for your clarifications, Andrew and Joseph. As far as I am concerned, this bug can be marked as resolved/rejected/whatever you like.

[Bug c/66963] New: __builtin_constant_p and __builtin_choose_expr do not agree on what is a constexpr with -O2

2015-07-21 Thread nicstange at gmail dot com
Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: nicstange at gmail dot com Target Milestone: --- The first argument to __builtin_choose_expr() must be a constant expression. However, at -O2, the following

[Bug c/66963] __builtin_constant_p and __builtin_choose_expr do not agree on what is a constexpr with -O2

2015-07-21 Thread nicstange at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66963 --- Comment #3 from Nicolai Stange nicstange at gmail dot com --- (In reply to Andrew Pinski from comment #1) I thought this is documented somewhere but __builtin_choose_expr only really accept constant literals and not constexprs. https

[Bug c/66963] __builtin_constant_p and __builtin_choose_expr do not agree on what is a constexpr with -O2

2015-07-21 Thread nicstange at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66963 --- Comment #4 from Nicolai Stange nicstange at gmail dot com --- Sorry, misunderstanding at my side. You probably did not mean constexprs in the sense of C99, 6.6, but constexprs in the sense of constant folded expressions.

[Bug target/66579] New: frv target: -gsplit-dwarf confuses assembler

2015-06-17 Thread nicstange at gmail dot com
: target Assignee: unassigned at gcc dot gnu.org Reporter: nicstange at gmail dot com Target Milestone: --- Created attachment 35797 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=35797action=edit Testcase Adding `-gsplit-dwarf' leads to doubly defined symbols even in trivial

[Bug target/66579] frv target: -gsplit-dwarf confuses assembler

2015-06-17 Thread nicstange at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66579 --- Comment #1 from Nicolai Stange nicstange at gmail dot com --- Created attachment 35798 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=35798action=edit Output of `gcc -S -gsplit-dwarf' on Testcase