[Bug optimization/11680] member access of C++ class with all methods inline should be optimized better

gdr at integrable-solutions dot net gcc-bugzilla@gcc.gnu.org
Sun Jul 27 09:34:00 GMT 2003


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11680



------- Additional Comments From gdr at integrable-solutions dot net  2003-07-27 09:34 -------
Subject: Re:  New: member access of C++ class with all methods inline should be optimized better

"dbaron at dbaron dot org" <gcc-bugzilla@gcc.gnu.org> writes:

| In particular, the code involved a large inline method that involved repeated
| use of a member variable (being used as a cursor into the output buffer being
| written).  (By default, gcc didn't inline the method.  This was hand-optimized
| by using |__attribute__((always_inline))|.  Should I file a separate bug on
| this, or is it unlikely to be fixed?)

Please fill a bug report. GCC should implement the obvious and original
meaning of "inline".  That it failed is a bug.  
That one should ressort to contorsions and unspeakable syntax like
__attribute__((always_inline)) while we have the obivous syntax is
also a bug.

-- Gaby



More information about the Gcc-bugs mailing list