ake possible to
avoid the use of the "memory" keyword.
Would it make it simpler if there is a dedicated syntax to state that memory
from an input pointer is accessed?
For instance, something like:
__asm__ ("repne scasb" : "=c" (count), "+D" (p) : "0" (-1), "a" (0) :
"memory(1)"); or __asm__ ("repne scasb" : "=c" (count), [P] "+D" (p) : "0"
(-1), "a" (0) : "@[P]");
Regards,
Frédéric Recoules
n D.3183;
}
It is both pure and leaf, but the strtol it calls is not. I would however
have thought that because strtol is called from a pure function, it would
have inherited from the pure attribute.
Frédéric Recoules
- Mail original -
De: "Jan Hubicka"
À: "FRÉDÉRIC
not supported, it is?
Frédéric Recoules
- Mail original -
De: "Jan Hubicka"
À: "Richard Biener"
Cc: "gcc" , "FRÉDÉRIC RECOULES"
, mjam...@suse.cz
Envoyé: Samedi 14 Mars 2020 14:05:07
Objet: Re: Thought on inlining indirect function calls
ource transformation than STEP 2 will work and
properly optimize it as x + y * z.
for (int i = z; i > 0; i -= 1)
if (f == &f_add)
x = f_add(x, y);
else
x = f(x, y);
Frédéric Recoules
- Mail original -
De: "Richard Biener"
À: "gcc" ,
too complicated to implement.
Still, easy to say-so without diving into the compiler's code.
I hope it will assist you in your reflections,
Have a nice day,
Frédéric Recoules