https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46854
Segher Boessenkool changed:
What|Removed |Added
Status|NEW |RESOLVED
CC|
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46854
--- Comment #4 from joakim.tjernlund at transmode dot se 2010-12-09 18:23:59 UTC ---
Here is the copy an an earlier mail I sent to the list in November:
Using gcc 4.4.4 -Os on
loop(long *to, long *from, long len)
{
for (; len; --len)
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46854
--- Comment #3 from joakim.tjernlund at transmode dot se 2010-12-09 18:21:50 UTC ---
(In reply to comment #2)
> Note, -O2 generates mostly the code you want, except that it looks the address
> of the string twice:
>
> Here is the code generated w
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46854
Michael Meissner changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last reconfirmed|
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46854
--- Comment #1 from joakim.tjernlund at transmode dot se 2010-12-09 09:10:50 UTC ---
Somewhat related observation:
It would be nice if gcc could optimize
static inline const char *test(int i)
{
const char *p = "abc\0def\0gef";
for(; i; --