Reviewers: iposva, Description: Add a workaround for a compiler gug in GCC 4.2.3. See issue 122 for details.
TBR=iposva Please review this at http://codereview.chromium.org/8056 SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/ Affected files: M src/top.h Index: src/top.h =================================================================== --- src/top.h (revision 547) +++ src/top.h (working copy) @@ -294,10 +294,16 @@ }; +// TODO(122): If the GCC version is 4.2.0 or higher an additional field is added +// to this class as a workarround for a bug in the generated code found with +// GCC 4.2.3. class SaveContext BASE_EMBEDDED { public: SaveContext() : context_(Top::context()), +#if __GNUC_VERSION__ >= 40200 + dummy_(Top::context()), +#endif prev_(Top::save_context()) { Top::set_save_context(this); } @@ -312,6 +318,9 @@ private: Handle<Context> context_; +#if __GNUC_VERSION__ >= 40200 + Handle<Context> dummy_; +#endif SaveContext* prev_; }; --~--~---------~--~----~------------~-------~--~----~ v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev -~----------~----~----~----~------~----~------~--~---
