gccxml_gem 0.9-x86-linux

Sign up to get free protection for your applications and to get access to all the features.
Files changed (126) hide show
  1. data/Rakefile +75 -0
  2. data/bin/gccxml +0 -0
  3. data/bin/gccxml_cc1plus +0 -0
  4. data/gccxml.rb +50 -0
  5. data/share/doc/gccxml-0.9/Copyright.txt +55 -0
  6. data/share/doc/gccxml-0.9/gccxml.html +168 -0
  7. data/share/doc/gccxml-0.9/gccxml.txt +293 -0
  8. data/share/gccxml-0.9/GCC/2.95/algorithm +76 -0
  9. data/share/gccxml-0.9/GCC/2.95/bitset +17 -0
  10. data/share/gccxml-0.9/GCC/2.95/cctype +24 -0
  11. data/share/gccxml-0.9/GCC/2.95/clocale +14 -0
  12. data/share/gccxml-0.9/GCC/2.95/cmath +33 -0
  13. data/share/gccxml-0.9/GCC/2.95/complex +38 -0
  14. data/share/gccxml-0.9/GCC/2.95/csetjmp +13 -0
  15. data/share/gccxml-0.9/GCC/2.95/csignal +14 -0
  16. data/share/gccxml-0.9/GCC/2.95/cstdarg +12 -0
  17. data/share/gccxml-0.9/GCC/2.95/cstddef +13 -0
  18. data/share/gccxml-0.9/GCC/2.95/cstdio +55 -0
  19. data/share/gccxml-0.9/GCC/2.95/cstdlib +66 -0
  20. data/share/gccxml-0.9/GCC/2.95/cstring +34 -0
  21. data/share/gccxml-0.9/GCC/2.95/ctime +24 -0
  22. data/share/gccxml-0.9/GCC/2.95/cwchar +65 -0
  23. data/share/gccxml-0.9/GCC/2.95/cwctype +31 -0
  24. data/share/gccxml-0.9/GCC/2.95/deque +19 -0
  25. data/share/gccxml-0.9/GCC/2.95/exception +20 -0
  26. data/share/gccxml-0.9/GCC/2.95/fstream +23 -0
  27. data/share/gccxml-0.9/GCC/2.95/functional +64 -0
  28. data/share/gccxml-0.9/GCC/2.95/gccxml_bitset +1066 -0
  29. data/share/gccxml-0.9/GCC/2.95/iomanip +20 -0
  30. data/share/gccxml-0.9/GCC/2.95/iosfwd +20 -0
  31. data/share/gccxml-0.9/GCC/2.95/iostream +27 -0
  32. data/share/gccxml-0.9/GCC/2.95/iterator +39 -0
  33. data/share/gccxml-0.9/GCC/2.95/list +19 -0
  34. data/share/gccxml-0.9/GCC/2.95/map +20 -0
  35. data/share/gccxml-0.9/GCC/2.95/memory +21 -0
  36. data/share/gccxml-0.9/GCC/2.95/new +13 -0
  37. data/share/gccxml-0.9/GCC/2.95/numeric +15 -0
  38. data/share/gccxml-0.9/GCC/2.95/pthread.h +16 -0
  39. data/share/gccxml-0.9/GCC/2.95/queue +20 -0
  40. data/share/gccxml-0.9/GCC/2.95/set +20 -0
  41. data/share/gccxml-0.9/GCC/2.95/sstream +24 -0
  42. data/share/gccxml-0.9/GCC/2.95/stack +19 -0
  43. data/share/gccxml-0.9/GCC/2.95/std/bastring.cc +524 -0
  44. data/share/gccxml-0.9/GCC/2.95/std/complext.h +397 -0
  45. data/share/gccxml-0.9/GCC/2.95/std/dcomplex.h +92 -0
  46. data/share/gccxml-0.9/GCC/2.95/std/fcomplex.h +88 -0
  47. data/share/gccxml-0.9/GCC/2.95/std/gslice_array.h +170 -0
  48. data/share/gccxml-0.9/GCC/2.95/std/indirect_array.h +157 -0
  49. data/share/gccxml-0.9/GCC/2.95/std/ldcomplex.h +96 -0
  50. data/share/gccxml-0.9/GCC/2.95/std/mask_array.h +154 -0
  51. data/share/gccxml-0.9/GCC/2.95/std/slice_array.h +156 -0
  52. data/share/gccxml-0.9/GCC/2.95/std/std_valarray.h +728 -0
  53. data/share/gccxml-0.9/GCC/2.95/std/straits.h +162 -0
  54. data/share/gccxml-0.9/GCC/2.95/std/valarray_meta.h +1035 -0
  55. data/share/gccxml-0.9/GCC/2.95/stdexcept +17 -0
  56. data/share/gccxml-0.9/GCC/2.95/stl_alloc.h +1057 -0
  57. data/share/gccxml-0.9/GCC/2.95/stl_bvector.h +836 -0
  58. data/share/gccxml-0.9/GCC/2.95/stl_deque.h +1699 -0
  59. data/share/gccxml-0.9/GCC/2.95/stl_list.h +843 -0
  60. data/share/gccxml-0.9/GCC/2.95/stl_tree.h +1331 -0
  61. data/share/gccxml-0.9/GCC/2.95/stl_vector.h +828 -0
  62. data/share/gccxml-0.9/GCC/2.95/string +26 -0
  63. data/share/gccxml-0.9/GCC/2.95/strstream +23 -0
  64. data/share/gccxml-0.9/GCC/2.95/typeinfo +11 -0
  65. data/share/gccxml-0.9/GCC/2.95/utility +25 -0
  66. data/share/gccxml-0.9/GCC/2.95/valarray +52 -0
  67. data/share/gccxml-0.9/GCC/2.95/vector +19 -0
  68. data/share/gccxml-0.9/GCC/2.96/sstream +305 -0
  69. data/share/gccxml-0.9/GCC/3.0/pthread.h +16 -0
  70. data/share/gccxml-0.9/GCC/3.1/pthread.h +16 -0
  71. data/share/gccxml-0.9/GCC/3.2/bits/fstream.tcc +500 -0
  72. data/share/gccxml-0.9/GCC/3.2/bits/istream.tcc +1207 -0
  73. data/share/gccxml-0.9/GCC/3.2/bits/locale_facets.h +1810 -0
  74. data/share/gccxml-0.9/GCC/3.2/bits/locale_facets.tcc +2397 -0
  75. data/share/gccxml-0.9/GCC/3.2/bits/messages_members.h +108 -0
  76. data/share/gccxml-0.9/GCC/3.2/bits/ostream.tcc +713 -0
  77. data/share/gccxml-0.9/GCC/3.2/bits/sstream.tcc +241 -0
  78. data/share/gccxml-0.9/GCC/3.2/bits/stl_deque.h +1682 -0
  79. data/share/gccxml-0.9/GCC/3.2/bits/stl_list.h +989 -0
  80. data/share/gccxml-0.9/GCC/3.2/bits/stl_tree.h +1462 -0
  81. data/share/gccxml-0.9/GCC/3.2/bits/stl_vector.h +1085 -0
  82. data/share/gccxml-0.9/GCC/3.2/bits/valarray_meta.h +1063 -0
  83. data/share/gccxml-0.9/GCC/3.2/fstream +579 -0
  84. data/share/gccxml-0.9/GCC/3.2/pthread.h +16 -0
  85. data/share/gccxml-0.9/GCC/3.2/sstream +384 -0
  86. data/share/gccxml-0.9/GCC/3.3/bits/fstream.tcc +530 -0
  87. data/share/gccxml-0.9/GCC/3.3/bits/list.tcc +378 -0
  88. data/share/gccxml-0.9/GCC/3.3/bits/locale_facets.h +2050 -0
  89. data/share/gccxml-0.9/GCC/3.3/bits/messages_members.h +108 -0
  90. data/share/gccxml-0.9/GCC/3.3/bits/sstream.tcc +243 -0
  91. data/share/gccxml-0.9/GCC/3.3/bits/stl_deque.h +1603 -0
  92. data/share/gccxml-0.9/GCC/3.3/bits/stl_list.h +1167 -0
  93. data/share/gccxml-0.9/GCC/3.3/bits/stl_tree.h +1462 -0
  94. data/share/gccxml-0.9/GCC/3.3/bits/stl_vector.h +992 -0
  95. data/share/gccxml-0.9/GCC/3.3/bits/valarray_meta.h +1135 -0
  96. data/share/gccxml-0.9/GCC/3.3/fstream +842 -0
  97. data/share/gccxml-0.9/GCC/3.3/gccxml_builtins.h +22 -0
  98. data/share/gccxml-0.9/GCC/3.3/sstream +638 -0
  99. data/share/gccxml-0.9/GCC/3.4/gccxml_builtins.h +91 -0
  100. data/share/gccxml-0.9/GCC/4.0/gccxml_builtins.h +128 -0
  101. data/share/gccxml-0.9/GCC/4.1/bits/gthr-default.h +618 -0
  102. data/share/gccxml-0.9/GCC/4.1/gccxml_builtins.h +131 -0
  103. data/share/gccxml-0.9/GCC/4.2/gccxml_builtins.h +131 -0
  104. data/share/gccxml-0.9/GCC/find_flags +105 -0
  105. data/share/gccxml-0.9/Intel/find_flags +56 -0
  106. data/share/gccxml-0.9/Intel/pthread.h +16 -0
  107. data/share/gccxml-0.9/MIPSpro/7.3/exception +9 -0
  108. data/share/gccxml-0.9/MIPSpro/7.3/gccxml_mpro_internals.h +21 -0
  109. data/share/gccxml-0.9/MIPSpro/7.3/iomanip +161 -0
  110. data/share/gccxml-0.9/MIPSpro/7.3/ostream +9 -0
  111. data/share/gccxml-0.9/MIPSpro/7.3/stddef.h +9 -0
  112. data/share/gccxml-0.9/MIPSpro/7.3/stl_config.h +9 -0
  113. data/share/gccxml-0.9/MIPSpro/7.3/stl_locale.h +17 -0
  114. data/share/gccxml-0.9/MIPSpro/7.3/stl_monetary.h +14 -0
  115. data/share/gccxml-0.9/MIPSpro/7.3/stl_numeric_facets.h +13 -0
  116. data/share/gccxml-0.9/MIPSpro/7.3/stl_threads.h +11 -0
  117. data/share/gccxml-0.9/MIPSpro/7.3/string +18 -0
  118. data/share/gccxml-0.9/MIPSpro/find_flags +137 -0
  119. data/share/gccxml-0.9/Sun/5.8/adaptation.patch +168 -0
  120. data/share/gccxml-0.9/Sun/README +8 -0
  121. data/share/gccxml-0.9/Sun/adapt_headers.sh +24 -0
  122. data/share/gccxml-0.9/Sun/find_flags +69 -0
  123. data/share/gccxml-0.9/gccxml_config +2 -0
  124. data/share/gccxml-0.9/gccxml_find_flags +93 -0
  125. data/share/man/man1/gccxml.1 +246 -0
  126. metadata +204 -0
@@ -0,0 +1,14 @@
1
+ #ifndef __SGI_STL_INTERNAL_MONETARY_H_GCCXML
2
+ #define __SGI_STL_INTERNAL_MONETARY_H_GCCXML
3
+
4
+ __STL_BEGIN_NAMESPACE
5
+
6
+ template <typename T, bool> class moneypunct;
7
+
8
+ __STL_END_NAMESPACE
9
+
10
+ #include_next <stl_monetary.h>
11
+
12
+ #endif
13
+
14
+
@@ -0,0 +1,13 @@
1
+ #ifndef __SGI_STL_INTERNAL_NUMERIC_FACETS_H_GCCXML
2
+ #define __SGI_STL_INTERNAL_NUMERIC_FACETS_H_GCCXML
3
+
4
+ __STL_BEGIN_NAMESPACE
5
+
6
+ template<class T> class numeric_limits;
7
+
8
+ __STL_END_NAMESPACE
9
+
10
+ #include_next <stl_numeric_facets.h>
11
+
12
+ #endif
13
+
@@ -0,0 +1,11 @@
1
+ #ifndef __SGI_STL_INTERNAL_THREADS_H_GCCXML
2
+ #define __SGI_STL_INTERNAL_THREADS_H_GCCXML
3
+
4
+ #define __add_and_fetch(__l,__v) add_then_test((unsigned long*)__l,__v)
5
+ #define __test_and_set(__l,__v) test_and_set(__l,__v)
6
+ #define __lock_release(__l) asm("sync"); *__l = 0
7
+
8
+ #include_next <stl_threads.h>
9
+
10
+ #endif
11
+
@@ -0,0 +1,18 @@
1
+ #ifndef __SGI_STL_STRING_GCCXML
2
+ #define __SGI_STL_STRING_GCCXML
3
+
4
+ #include <stl_config.h>
5
+
6
+ __STL_BEGIN_NAMESPACE
7
+
8
+ class locale;
9
+ template <class charT> class ctype;
10
+ template <class _Facet> inline const _Facet& use_facet(const locale& __loc);
11
+ class ctype_base;
12
+
13
+ __STL_END_NAMESPACE
14
+
15
+ #include_next <string>
16
+
17
+ #endif
18
+
@@ -0,0 +1,137 @@
1
+ #!/bin/sh
2
+ #=============================================================================
3
+ #
4
+ # Program: GCC-XML
5
+ # Module: $RCSfile: find_flags,v $
6
+ # Language: C++
7
+ # Date: $Date: 2005/08/01 22:11:33 $
8
+ # Version: $Revision: 1.5 $
9
+ #
10
+ # Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
11
+ # See Copyright.txt for details.
12
+ #
13
+ # This software is distributed WITHOUT ANY WARRANTY; without even
14
+ # the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15
+ # PURPOSE. See the above copyright notices for more information.
16
+ #
17
+ #=============================================================================
18
+
19
+ # Find the MIPSPro executable name.
20
+ if test "x$1" = "x" ; then
21
+ if test "x${CXX}" = "x" ; then
22
+ CXX=CC
23
+ fi
24
+ else
25
+ CXX="$1"
26
+ shift
27
+ CXXFLAGS="$@"
28
+ fi
29
+
30
+ GCCXML_PID="$$"
31
+ TESTFILE="find_flags_temp$GCCXML_PID"
32
+
33
+ # Construct a test input file that checks for some builtin definitions
34
+ # in the compiler that are not displayed by the -v option. This list
35
+ # was obtained by running "strings /usr/lib32/cmplrs/fecc" and testing
36
+ # for definitions with a giant version of the string below.
37
+ echo "
38
+ #ifdef _BOOL
39
+ D_BOOL _BOOL
40
+ #endif
41
+ #ifdef _EXPLICIT_IS_KEYWORD
42
+ D_EXPLICIT_IS_KEYWORD _EXPLICIT_IS_KEYWORD
43
+ #endif
44
+ #ifdef _LIBC_IN_NAMESPACE_STD_
45
+ D_LIBC_IN_NAMESPACE_STD_ _LIBC_IN_NAMESPACE_STD_
46
+ #endif
47
+ #ifdef _MEMBER_TEMPLATES
48
+ D_MEMBER_TEMPLATES _MEMBER_TEMPLATES
49
+ #endif
50
+ #ifdef _MUTABLE_IS_KEYWORD
51
+ D_MUTABLE_IS_KEYWORD _MUTABLE_IS_KEYWORD
52
+ #endif
53
+ #ifdef _NAMESPACES
54
+ D_NAMESPACES _NAMESPACES
55
+ #endif
56
+ #ifdef _PARTIAL_SPECIALIZATION_OF_CLASS_TEMPLATES
57
+ D_PARTIAL_SPECIALIZATION_OF_CLASS_TEMPLATES _PARTIAL_SPECIALIZATION_OF_CLASS_TEMPLATES
58
+ #endif
59
+ #ifdef _STANDARD_C_PLUS_PLUS
60
+ D_STANDARD_C_PLUS_PLUS _STANDARD_C_PLUS_PLUS
61
+ #endif
62
+ #ifdef _TYPENAME_IS_KEYWORD
63
+ D_TYPENAME_IS_KEYWORD _TYPENAME_IS_KEYWORD
64
+ #endif
65
+ #ifdef _WCHAR_T
66
+ D_WCHAR_T _WCHAR_T
67
+ #endif
68
+ #ifdef _WCHAR_T_IS_KEYWORD
69
+ D_WCHAR_T_IS_KEYWORD _WCHAR_T_IS_KEYWORD
70
+ #endif
71
+ #ifdef __ANSI_CPP__
72
+ D__ANSI_CPP__ __ANSI_CPP__
73
+ #endif
74
+ #ifdef __ARRAY_OPERATORS
75
+ D__ARRAY_OPERATORS __ARRAY_OPERATORS
76
+ #endif
77
+ #ifdef __EDG_ABI_COMPATIBILITY_VERSION
78
+ D__EDG_ABI_COMPATIBILITY_VERSION __EDG_ABI_COMPATIBILITY_VERSION
79
+ #endif
80
+ #ifdef __EDG_RUNTIME_USES_NAMESPACES
81
+ D__EDG_RUNTIME_USES_NAMESPACES __EDG_RUNTIME_USES_NAMESPACES
82
+ #endif
83
+ #ifdef __EDG_VERSION__
84
+ D__EDG_VERSION__ __EDG_VERSION__
85
+ #endif
86
+ #ifdef __EDG__
87
+ D__EDG__ __EDG__
88
+ #endif
89
+ #ifdef __EXCEPTIONS
90
+ D__EXCEPTIONS __EXCEPTIONS
91
+ #endif
92
+ #ifdef __LIBC_MATH_OVERLOAD__
93
+ D__LIBC_MATH_OVERLOAD__ __LIBC_MATH_OVERLOAD__
94
+ #endif
95
+ #ifdef __RTTI
96
+ D__RTTI __RTTI
97
+ #endif
98
+ #ifdef __STDC__
99
+ D__STDC__ __STDC__
100
+ #endif
101
+ " > /tmp/$TESTFILE.cxx
102
+
103
+ # Find the macro definition options.
104
+ MACROS=`
105
+ ${CXX} ${CXXFLAGS} -E -v /tmp/$TESTFILE.cxx 2>&1 |
106
+ sed -n '/_COMPILER_VERSION/{s/ \/tmp\/'$TESTFILE'.cxx.*$//
107
+ s/ -/\\
108
+ -/g;p;}' |
109
+ sed -n '/^-D.*$/{s/-D\([^=]*\)=\([^ ]\{1,\} .*\)/-D\1='\''\2'\''/;p;}' |
110
+ sed -n 'H;${g;s/\n/ /g;p;}'`
111
+
112
+ # Find the internally defined macros.
113
+ LANGSTD=`
114
+ ${CXX} ${CXXFLAGS} -E -v /tmp/$TESTFILE.cxx 2>&1 |
115
+ sed -n '/^D/ {s/^D/-D/;s/ /=/;p;}' |
116
+ sed -n 'H;${g;s/\n/ /g;p;}'`
117
+
118
+ # Find the include path options.
119
+ INCLUDES=`
120
+ ${CXX} ${CXXFLAGS} -E -v /tmp/$TESTFILE.cxx 2>&1 |
121
+ sed -n '/_COMPILER_VERSION/{s/ \/tmp\/'$TESTFILE'.cxx.*$//
122
+ s/ -/\\
123
+ -/g;p;}' |
124
+ sed -n '/^-I.*$/{p;}' |
125
+ sed -n 'H;${g;s/\n/ /g;p;}'`
126
+
127
+ # The support headers are located where this script is.
128
+ SELFPATH=`echo $0 | sed -n '/\//{s/\/find_flags//;p;}'`
129
+ if test "x$SELFPATH" = "x" ; then SELFPATH="." ; fi
130
+ SELFPATH=`cd "$SELFPATH" ; pwd`
131
+ INCLUDES="-iwrapper\"$SELFPATH/7.3\" $INCLUDES"
132
+
133
+ rm -f /tmp/$TESTFILE.cxx
134
+
135
+ # Format and print out the options.
136
+ OPTIONS="$MACROS $LANGSTD $INCLUDES"
137
+ echo $OPTIONS
@@ -0,0 +1,168 @@
1
+ Common subdirectories: ./iso and ../result/iso
2
+ diff -r -u ./istream ../result/istream
3
+ --- ./istream Fri Nov 16 16:40:47 2007
4
+ +++ ../result/istream Fri Nov 16 15:22:16 2007
5
+ @@ -419,9 +419,11 @@
6
+ const istream_iterator<T,charT,traits,Distance>& x,
7
+ const istream_iterator<T,charT,traits,Distance>& y);
8
+ #else
9
+ - friend inline bool operator== <> (
10
+ +/* SMOSS 29/08/07 inline not allowed in friend declaration */
11
+ + friend /*inline*/ bool operator== <> (
12
+ const istream_iterator<T,charT,traits,Distance>& x,
13
+ const istream_iterator<T,charT,traits,Distance>& y);
14
+ +/* END SMOSS 29/08/07 inline not allowed in friend declaration */
15
+ #endif
16
+ public:
17
+ typedef charT char_type;
18
+ diff -r -u ./math.h ../result/math.h
19
+ --- ./math.h Fri Nov 16 17:25:29 2007
20
+ +++ ../result/math.h Fri Nov 16 15:22:16 2007
21
+ @@ -313,6 +313,11 @@
22
+ #endif
23
+ /* END adopted by C99 */
24
+
25
+ +/* SMOSS 29/08/07 <floatingpoint.h> conflicts with stdlib_iso.h */
26
+ +#ifdef __EXTENSIONS__
27
+ +# undef __EXTENSIONS__
28
+ +#endif //__EXTENSIONS__
29
+ +/* END SMOSS 29/08/07 <floatingpoint.h> conflicts with stdlib_iso.h */
30
+ #if defined(__EXTENSIONS__) || !defined(__cplusplus)
31
+ #include <floatingpoint.h>
32
+ #endif
33
+ @@ -319,6 +324,11 @@
34
+ #endif /* defined(__EXTENSIONS__) || !defined(_XOPEN_SOURCE) */
35
+ #endif /* defined(__EXTENSIONS__) || defined(_XOPEN_SOURCE) || ... */
36
+
37
+ +/* SMOSS 29/08/07 <floatingpoint.h> conflicts with stdlib_iso.h */
38
+ +#ifdef __EXTENSIONS__
39
+ +# define __EXTENSIONS__
40
+ +#endif //__EXTENSIONS__
41
+ +/* END SMOSS 29/08/07 <floatingpoint.h> conflicts with stdlib_iso.h */
42
+ #if defined(__cplusplus) && defined(__GNUC__)
43
+ #undef exception
44
+ #endif
45
+ Common subdirectories: ./rw and ../result/rw
46
+ diff -r -u ./streambuf ../result/streambuf
47
+ --- ./streambuf Fri Nov 16 16:40:47 2007
48
+ +++ ../result/streambuf Fri Nov 16 15:22:16 2007
49
+ @@ -927,7 +927,10 @@
50
+ * int_type snextc()
51
+ * returns the next character
52
+ */
53
+ -
54
+ +/* SMOSS 29/08/07 Can't use typename in template specializations */
55
+ +#ifdef _TYPENAME
56
+ +# define _TYPENAME
57
+ +#endif
58
+ inline _TYPENAME basic_streambuf<char, char_traits<char> >::int_type
59
+ basic_streambuf<char, char_traits<char> >::snextc()
60
+ {
61
+ @@ -1208,6 +1211,11 @@
62
+ {
63
+ return seekpos(sp, which);
64
+ }
65
+ +#ifdef _TYPENAME
66
+ +# define _TYPENAME typename
67
+ +# undef _OLD_TYPENAME
68
+ +#endif
69
+ +/* END SMOSS 29/08/07 Can't use typename in template specializations */
70
+
71
+ /*
72
+ * basic_streambuf *pubsetbuf(char_type *, streamsize)
73
+ diff -r -u ./string ../result/string
74
+ --- ./string Fri Nov 16 16:40:47 2007
75
+ +++ ../result/string Fri Nov 16 15:22:16 2007
76
+ @@ -797,7 +797,9 @@
77
+ // Null string ref
78
+ //
79
+ #ifndef _RWSTD_NO_STATIC_DEF3
80
+ - static __SUNW_GLOBAL const __null_ref_type __nullref;
81
+ +/* SMOSS 29/08/07 Can't resolve #define __SUNW_GLOBAL __global */
82
+ + static /* __SUNW_GLOBAL */ const __null_ref_type __nullref;
83
+ +/* SMOSS 29/08/07 Can't resolve #define __SUNW_GLOBAL __global */
84
+ #endif
85
+
86
+ static __string_ref_type * __getNullRep ()
87
+ Common subdirectories: ./sys and ../result/sys
88
+ diff -r -u ./typeinfo ../result/typeinfo
89
+ --- ./typeinfo Fri Nov 16 16:40:47 2007
90
+ +++ ../result/typeinfo Fri Nov 16 15:22:16 2007
91
+ @@ -34,7 +34,8 @@
92
+ // Implementation
93
+ const void* __data;
94
+ type_info(const void*) throw();
95
+ - friend __Cimpl::__type_info_friend;
96
+ + /* SMOSS 29/08/07 Can't resolve */
97
+ + //friend __Cimpl::__type_info_friend;
98
+ };
99
+
100
+ class bad_typeid: public exception {
101
+ diff -r -u ./iso/stdlib_iso.h ../result/iso/stdlib_iso.h
102
+ --- ./iso/stdlib_iso.h Fri Nov 16 16:40:47 2007
103
+ +++ ../result/iso/stdlib_iso.h Fri Nov 16 15:22:16 2007
104
+ @@ -110,8 +110,10 @@
105
+ extern double atof(const char *);
106
+ extern int atoi(const char *);
107
+ extern long int atol(const char *);
108
+ +/* SMOSS 29/08/07
109
+ extern void *bsearch(const void *, const void *, size_t, size_t,
110
+ int (*)(const void *, const void *));
111
+ +*/
112
+ #if __cplusplus >= 199711L
113
+ extern "C++" {
114
+ void *bsearch(const void *, const void *, size_t, size_t,
115
+ @@ -131,7 +133,6 @@
116
+ extern size_t mbstowcs(wchar_t *_RESTRICT_KYWD, const char *_RESTRICT_KYWD,
117
+ size_t);
118
+ extern int mbtowc(wchar_t *_RESTRICT_KYWD, const char *_RESTRICT_KYWD, size_t);
119
+ -extern void qsort(void *, size_t, size_t, int (*)(const void *, const void *));
120
+ #if __cplusplus >= 199711L
121
+ extern "C++" {
122
+ void qsort(void *, size_t, size_t, int (*)(const void *, const void *));
123
+ diff -r -u ./rw/iterator ../result/rw/iterator
124
+ --- ./rw/iterator Fri Nov 16 17:03:59 2007
125
+ +++ ../result/rw/iterator Fri Nov 16 15:22:16 2007
126
+ @@ -426,10 +426,12 @@
127
+ friend inline difference_type (std::operator-) (const self& x, const self& y);
128
+ friend inline self (std::operator+) (difference_type n, const self& x);
129
+ #else
130
+ - friend inline bool operator== <> (const self& x, const self& y);
131
+ - friend inline bool operator< <> (const self& x, const self& y);
132
+ - friend inline difference_type operator- <> (const self& x, const self& y);
133
+ - friend inline self operator+ <> (difference_type n, const self& x);
134
+ +/* SMOSS 29/08/07 removing 'inline' from friend declarations */
135
+ + friend /*inline*/ bool operator== <> (const self& x, const self& y);
136
+ + friend /*inline*/ bool operator< <> (const self& x, const self& y);
137
+ + friend /*inline*/ difference_type operator- <> (const self& x, const self& y);
138
+ + friend /*inline*/ self operator+ <> (difference_type n, const self& x);
139
+ +/* END SMOSS 29/08/07 removing 'inline' from friend declarations */
140
+ #endif
141
+ protected:
142
+
143
+ @@ -581,7 +583,9 @@
144
+ typedef Reference reference;
145
+ typedef Pointer pointer;
146
+
147
+ - friend inline bool operator== <> (const self& x, const self& y);
148
+ +/* SMOSS 29/08/07 removing 'inline' from friend declarations */
149
+ + friend /*inline*/ bool operator== <> (const self& x, const self& y);
150
+ +/* END SMOSS 29/08/07 removing 'inline' from friend declarations */
151
+
152
+ protected:
153
+
154
+ diff -r -u ./sys/regset.h ../result/sys/regset.h
155
+ --- ./sys/regset.h Fri Nov 16 16:40:47 2007
156
+ +++ ../result/sys/regset.h Fri Nov 16 15:22:16 2007
157
+ @@ -16,7 +16,10 @@
158
+ #pragma ident "@(#)regset.h 1.28 04/09/28 SMI" /* SVr4.0 1.1 */
159
+
160
+ #include <sys/feature_tests.h>
161
+ -
162
+ +/* SMOSS 29/08/07 */
163
+ +//#include <inttypes.h>
164
+ +typedef long long unsigned int uint64_t;
165
+ +/* end SMOSS 29/08/08 */
166
+ #if !defined(_ASM)
167
+ #include <sys/int_types.h>
168
+ #endif
@@ -0,0 +1,8 @@
1
+ Sun CC support contributed by Pierre-Olivier Gaillard
2
+
3
+ This is a small README file regarding gccxml support for Solaris and Sun CC 5.8.
4
+
5
+ The Sun CC headers are not suitable for GCC and need to be adapted. The adapted files may not be redistributed freely. This forces you to perform the following operations:
6
+ ./adapt_headers.sh
7
+
8
+ This will produce corrected header files in the 5.8 directory.
@@ -0,0 +1,24 @@
1
+ #!/bin/sh
2
+
3
+ INCLUDES=/usr/include
4
+ CC_INCLUDES=`find_flags | perl -ne '($a) = m|-I([/a-zA-Z0-9_-]+/include/CC)|o ; print "$a\n" if $a'`
5
+
6
+ cd 5.8
7
+
8
+ cp $INCLUDES/math.h .
9
+ cp $CC_INCLUDES/typeinfo .
10
+ cp $CC_INCLUDES/Cstd/istream .
11
+ cp $CC_INCLUDES/Cstd/streambuf .
12
+ cp $CC_INCLUDES/Cstd/string .
13
+
14
+ mkdir -p rw
15
+ mkdir -p sys
16
+ mkdir -p iso
17
+
18
+ cp $CC_INCLUDES/Cstd/rw/iterator rw/iterator
19
+ cp $INCLUDES/iso/stdio_iso.h iso
20
+ cp $INCLUDES/iso/stdlib_iso.h iso
21
+
22
+ cp $INCLUDES/sys/regset.h sys
23
+
24
+ patch -p1 < adaptation.patch
@@ -0,0 +1,69 @@
1
+ #!/bin/sh
2
+ #=============================================================================
3
+ #
4
+ # Program: GCC-XML
5
+ # Module: $RCSfile: find_flags,v $
6
+ # Language: C++
7
+ # Date: $Date: 2007/11/28 19:52:06 $
8
+ # Version: $Revision: 1.1 $
9
+ #
10
+ # Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
11
+ # See Copyright.txt for details.
12
+ #
13
+ # This software is distributed WITHOUT ANY WARRANTY; without even
14
+ # the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15
+ # PURPOSE. See the above copyright notices for more information.
16
+ #
17
+ #=============================================================================
18
+ # Find the CC executable name.
19
+ if test "x$1" = "x" ; then
20
+ if test "x${CXX}" = "x" ; then
21
+ CXX=CC
22
+ fi
23
+ else
24
+ CXX="$1"
25
+ shift
26
+ CXXFLAGS="$@"
27
+ fi
28
+
29
+ GCCXML_PID="$$"
30
+ cat > "/tmp/gccxml_identify_compiler_args$GCCXML_PID.cc" <<!
31
+ #include <>
32
+ !
33
+
34
+ # Find the macro definition options.
35
+ MACROS=`${CXX} /tmp/gccxml_identify_compiler_args$GCCXML_PID.cc -E -xdumpmacros=defs 2>&1 |
36
+ awk '{ if ($1 ~ /#define/) printf("-D%s=%s %s %s ",$2,$3,$4,$5) }'
37
+ `
38
+ MACROS="-D__cplusplus=199711L -D__STDC__ -D_REENTRANT $MACROS"
39
+
40
+ # Find the include path options.
41
+ #todo test for truss
42
+ INCLUDES=`truss -f -t openat ${CXX} -E /tmp/gccxml_identify_compiler_args$GCCXML_PID.cc 2>&1 |
43
+ awk '{if ($3 ~ /\"[A-Za-z0-9_\/.-]+\",/ && $3 !~ /tmp/)
44
+ if (tempString!=substr($3,2,length($3)-3))
45
+ {
46
+ tempString=substr($3,2,length($3)-3);
47
+ printf("-I%s ",tempString)
48
+ }
49
+ }'`
50
+
51
+ #cleanup
52
+ rm -rf "/tmp/gccxml_identify_compiler_args$GCCXML_PID.cc"
53
+
54
+ # The support headers are located where this script is.
55
+ SELFPATH=`echo $0 | sed -n '/\//{s/\/find_flags//;p;}'`
56
+ if test "x$SELFPATH" = "x" ; then SELFPATH="." ; fi
57
+ SELFPATH=`cd "$SELFPATH" ; pwd`
58
+
59
+ # Find CC version
60
+ CC_VERSION=`${CXX} -V 2>&1 | awk '{print $4}'`
61
+
62
+ # Use hacked headers for CC 5.8
63
+ if [ $CC_VERSION = 5.8 ]; then
64
+ INCLUDES="-iwrapper\"$SELFPATH/5.8\" $INCLUDES"
65
+ fi
66
+
67
+ # Format and print out the options.
68
+ OPTIONS="$MACROS $INCLUDES $SPECIAL"
69
+ echo $OPTIONS
@@ -0,0 +1,2 @@
1
+ GCCXML_COMPILER="/usr/bin/c++"
2
+ GCCXML_CXXFLAGS=" "
@@ -0,0 +1,93 @@
1
+ #!/bin/sh
2
+ #=============================================================================
3
+ #
4
+ # Program: GCC-XML
5
+ # Module: $RCSfile: gccxml_find_flags,v $
6
+ # Language: C++
7
+ # Date: $Date: 2007/11/28 19:52:06 $
8
+ # Version: $Revision: 1.3 $
9
+ #
10
+ # Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
11
+ # See Copyright.txt for details.
12
+ #
13
+ # This software is distributed WITHOUT ANY WARRANTY; without even
14
+ # the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15
+ # PURPOSE. See the above copyright notices for more information.
16
+ #
17
+ #=============================================================================
18
+
19
+ # Find the compiler executable name.
20
+ if test "x$1" = "x" ; then
21
+ if test "x$GCCXML_COMPILER" = "x"; then
22
+ if test "x${CXX}" != "x" ; then
23
+ GCCXML_COMPILER="${CXX}"
24
+ else
25
+ echo "Need to specify compiler name or set GCCXML_COMPILER or CXX."
26
+ exit 1
27
+ fi
28
+ fi
29
+ if test "x$GCCXML_CXXFLAGS" = "x"; then
30
+ if test "x${CXXFLAGS}" != "x" ; then
31
+ GCCXML_CXXFLAGS="${CXXFLAGS}"
32
+ fi
33
+ fi
34
+ else
35
+ GCCXML_COMPILER="$1"
36
+ shift
37
+ GCCXML_CXXFLAGS="$@"
38
+ fi
39
+
40
+ # Use the compiler's preprocessor to identify the compiler.
41
+ GCCXML_PID="$$"
42
+ cat > "/tmp/gccxml_identify_compiler$GCCXML_PID.cc" <<!
43
+ #if defined(__GNUC__)
44
+ GCCXML_SUPPORT="GCC"
45
+ #elif defined(__sgi) && defined(_COMPILER_VERSION)
46
+ GCCXML_SUPPORT="MIPSpro"
47
+ #elif defined(__INTEL_COMPILER) && (__INTEL_COMPILER >= 700)
48
+ GCCXML_SUPPORT="Intel"
49
+ #elif defined(__SUNPRO_CC)
50
+ GCCXML_SUPPORT="Sun"
51
+ #else
52
+ GCCXML_SUPPORT=""
53
+ #endif
54
+ !
55
+
56
+ # Run the compiler's preprocessor on the above code to identify it.
57
+ # (workaround for CC whitespace:)
58
+ if (${GCCXML_COMPILER} ${GCCXML_CXXFLAGS} \
59
+ -E "/tmp/gccxml_identify_compiler$GCCXML_PID.cc" \
60
+ | sed -e 's/[ ^]//g' \
61
+ > "/tmp/gccxml_identify_compiler$GCCXML_PID.pp";
62
+ rm -f "/tmp/gccxml_identify_compiler$GCCXML_PID.cc"
63
+ ) ; then : ; else
64
+ echo "Error running \"${GCCXML_COMPILER} -E\""
65
+ exit 1
66
+ fi
67
+
68
+ # Source the result to get the settings found.
69
+ . "/tmp/gccxml_identify_compiler$GCCXML_PID.pp"
70
+ rm -f "/tmp/gccxml_identify_compiler$GCCXML_PID.pp"
71
+
72
+ # Check if a supported compiler was identified.
73
+ if test "x$GCCXML_SUPPORT" = "x" ; then
74
+ echo "Compiler \"${GCCXML_COMPILER}\" is not supported by GCC-XML."
75
+ exit 1
76
+ fi
77
+
78
+ # The support directories are located near this script.
79
+ SELFPATH=`cd "\`echo $0 | sed -n '/\//{s/\/[^\/]*$//;p;}'\`";pwd`
80
+
81
+ # Find the compiler-specific support directory.
82
+ if test -d "${SELFPATH}/${GCCXML_SUPPORT}" ; then
83
+ GCCXML_SUPPORT_DIR="${SELFPATH}/${GCCXML_SUPPORT}"
84
+ else
85
+ echo "Cannot find GCC_XML compiler support directory ${GCCXML_SUPPORT}."
86
+ exit 1
87
+ fi
88
+
89
+ # Run the compiler-specific flag finding script.
90
+ GCCXML_FLAGS=`"${GCCXML_SUPPORT_DIR}/find_flags" ${GCCXML_COMPILER} ${GCCXML_CXXFLAGS}`
91
+
92
+ # Display the output.
93
+ echo ${GCCXML_FLAGS}