You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stdcxx.apache.org by se...@apache.org on 2009/05/26 19:15:07 UTC

svn commit: r778803 - /stdcxx/branches/4.2.x/src/iso2022.cpp

Author: sebor
Date: Tue May 26 17:15:07 2009
New Revision: 778803

URL: http://svn.apache.org/viewvc?rev=778803&view=rev
Log:
2009-05-26  Martin Sebor  <se...@apache.org>

	STDCXX-1036
	* src/iso2022.cpp (__rw_allocate_state): Outlined rarely called
	function to silence gcc 4.4 -Winline warnings: inlining failed:
	call is unlikely and code size would grow.

Modified:
    stdcxx/branches/4.2.x/src/iso2022.cpp

Modified: stdcxx/branches/4.2.x/src/iso2022.cpp
URL: http://svn.apache.org/viewvc/stdcxx/branches/4.2.x/src/iso2022.cpp?rev=778803&r1=778802&r2=778803&view=diff
==============================================================================
--- stdcxx/branches/4.2.x/src/iso2022.cpp (original)
+++ stdcxx/branches/4.2.x/src/iso2022.cpp Tue May 26 17:15:07 2009
@@ -1,6 +1,6 @@
 /***************************************************************************
  *
- * rw_iso2022.cpp
+ * iso2022.cpp
  *
  * $Id$
  *
@@ -416,8 +416,8 @@
 // returns an index in the array of state structures or -1 if none
 // is available; ISO-2022-JP and ISO-2022-JP-2 assume different
 // initializations
-static inline
-int __rw_allocate_state ()
+static inline int
+__rw_allocate_state ()
 {
     _RWSTD_MT_CLASS_GUARD (__rw_iso2022_state_t);
 
@@ -434,8 +434,8 @@
 // deallocates state and makes it available for future conversions
 // if `initial_only' is non-zero suceeds only if the `iso_state'
 // argument represents an initial shift state
-static inline
-void __rw_deallocate_state (__rw_iso2022_state_t &iso_state,
+static void
+__rw_deallocate_state (__rw_iso2022_state_t &iso_state,
                             _RWSTD_MBSTATE_T     &state,
                             bool                  initial_only)
 {