This is the mail archive of the gcc@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]

C++ Compilation Broken on *-rtems*


Hi,

I am not sure why this broke but it is very generic.

c++locale.cc: In function 'void std::__convert_to_v(const char*, _Tv&, std::_Ios_Iostate&, int* const&) [with _Tv = long double]':
c++locale.cc:167: error: 'sscanf' was not declared in this scope


I have hacked around this locally by including cstdio.

RTEMS uses libstdc++-v3/config/locale/generic/c_locale.cc
I posted test results for revision 138905 dated 20080809 at
http://gcc.gnu.org/ml/gcc-testresults/2008-08/msg01091.html
so I think it was one of these but I don't see why.

Any thoughts on the correct solution?

+2008-08-11 Paolo Carlini <paolo.carlini@oracle.com>
+
+ * configure.ac: Run GLIBCXX_CHECK_STDIO_MACROS unconditionally.
+ * configure: Regenerate.
+
+2008-08-10 Paolo Carlini <paolo.carlini@oracle.com>
+
+ * include/tr1_impl/type_traits (_DEFINE_SPEC*): Simplify.
+ (_DEFINE_SPEC_BODY): Remove.
+ (__is_void_helper, __is_integral_helper, __is_floating_point_helper,
+ __is_member_object_pointer_helper, __is_member_function_pointer_helper,
+ __remove_pointer_helper): Add.
+ (is_void, is_integral, is_floating_point, is_member_object_pointer,
+ is_member_function_pointer, remove_pointer): Use the latter.
+ * include/tr1/type_traits (_DEFINE_SPEC): Simplify.
+ (_DEFINE_SPEC_HELPER): Remove.
+ (__is_signed_helper, __is_unsigned_helper): Add.
+ (is_signed, is_unsigned): Use the latter.
+
2008-08-09 Paolo Carlini <paolo.carlini@oracle.com>


+       Revert fix for libstdc++/35637, thanks to other/36901.
+       * include/tr1_impl/type_traits (__is_function_helper): New, uses
+       variadic templates.
+       (is_function): Forward to the latter.
+       (__in_array): Remove.
+


-- Joel Sherrill, Ph.D. Director of Research & Development joel.sherrill@OARcorp.com On-Line Applications Research Ask me about RTEMS: a free RTOS Huntsville AL 35805 Support Available (256) 722-9985



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