Hi all, a long time ago (in feb. 2005 !) I posted a small patch for a tiny speed-up of gcc. (http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19832)
According to the latest comment, gcc could be teached to detect such cases in order to optimize it away by itself. I do agree that such cases must not be common and that the corresponding speed improvement in the generated code should be really small, but anyway I was wondering if I could go up to the end of the story I started a few years ago. So, my point is : * do you think that adding such a fonctionality is easy ? (i.e. for someone involded in software development, mostly in C for several years and who has basic knowledge on gcc internals and compilers theory in general) * do you think it would be usefull ? * does someone could give me some ideas on where is the best place to do such a treatment ? * does someone would agree to mentor it ? Christophe Jaillet