[Bug c/52708] suboptimal code with __builtin_constant_p

2013-11-10 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52708 Andrew Pinski changed: What|Removed |Added Status|WAITING |ASSIGNED Assignee|unassigned at

[Bug c/52708] suboptimal code with __builtin_constant_p

2012-03-27 Thread tijl at coosemans dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52708 --- Comment #3 from Tijl Coosemans 2012-03-27 11:33:41 UTC --- (In reply to comment #2) > Hm. We delay evaluating __builtin_constant_p to make it possible for inlining > to lead to simplifications that result in a constant. We could of course >

[Bug c/52708] suboptimal code with __builtin_constant_p

2012-03-26 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52708 Richard Guenther changed: What|Removed |Added Status|UNCONFIRMED |WAITING Last reconfirmed|

[Bug c/52708] suboptimal code with __builtin_constant_p

2012-03-25 Thread tijl at coosemans dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52708 --- Comment #1 from Tijl Coosemans 2012-03-25 20:09:34 UTC --- (In reply to comment #0) > Consider the following code: > > > #include > > int bar(void) __attribute__((__const__)); > > int main( int argc, char **argv ) { >