This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/40230] it takes too much time to compile using -O2
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 May 2009 16:19:16 -0000
- Subject: [Bug c++/40230] it takes too much time to compile using -O2
- References: <bug-40230-17756@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from rguenth at gcc dot gnu dot org 2009-05-23 16:19 -------
This is the effect of inlining that no longer completely happens with <30>.
You can fix it with
struct TermBase {
term_t obj;
term_t get() __attribute__((flatten)) {
return obj;
}
};
note the flatten attribute.
--
rguenth 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 |2009-05-23 16:19:15
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40230