This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/30908] -Os inlines functions that are called more than once (optimization regression)
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Feb 2007 09:12:20 -0000
- Subject: [Bug middle-end/30908] -Os inlines functions that are called more than once (optimization regression)
- References: <bug-30908-11199@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #16 from pinskia at gcc dot gnu dot org 2007-02-24 09:12 -------
Hmm, on PPC, changing wait to take "long long" instead of int, still makes the
inline case a little shorter (8 bytes/2 instructions). Though that is just not
fully true.
If I change main to be:
for (;f();) {
x = 1;
wait(100);
x = 0;
wait(100);
}
Which does not have an infinite loop, the non inline case is one instruction (4
bytes) less so really the cost of > WORD_SIZE should be about twice as much for
the arthimenatic.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2007-02-24 09:12:20
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30908