This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/40230] it takes too much time to compile using -O2



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]