This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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]

Re: throw(), pure and const flags on functions


Hi again,
> OK, I will try to look into the c++ config.  If you can provide me with
> patch that adds #defines for pure and const attributes, it would help
> however too :))
>   
Really, nothing special, something like the attached should be ok, at
least for the next steps.

Thanks again for this work!
Paolo.

//////////////
Index: c++config
===================================================================
--- c++config	(revision 146140)
+++ c++config	(working copy)
@@ -314,4 +314,12 @@
 #undef min
 #undef max
 
+#ifndef _GLIBCXX_PURE
+# define _GLIBCXX_PURE __attribute__ ((__pure__))
+#endif
+
+#ifndef _GLIBCXX_CONST
+# define _GLIBCXX_CONST __attribute__ ((__const__))
+#endif
+
 // End of prewritten config; the discovered settings follow.

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