gccxml_gem 0.9.3-x86-darwin-11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (176) hide show
  1. data/Rakefile +84 -0
  2. data/bin/gccxml +0 -0
  3. data/bin/gccxml_cc1plus +0 -0
  4. data/gccxml.rb +57 -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/gthr-default.h +585 -0
  73. data/share/gccxml-0.9/GCC/3.2/bits/istream.tcc +1207 -0
  74. data/share/gccxml-0.9/GCC/3.2/bits/locale_facets.h +1810 -0
  75. data/share/gccxml-0.9/GCC/3.2/bits/locale_facets.tcc +2397 -0
  76. data/share/gccxml-0.9/GCC/3.2/bits/messages_members.h +108 -0
  77. data/share/gccxml-0.9/GCC/3.2/bits/ostream.tcc +713 -0
  78. data/share/gccxml-0.9/GCC/3.2/bits/sstream.tcc +241 -0
  79. data/share/gccxml-0.9/GCC/3.2/bits/stl_deque.h +1682 -0
  80. data/share/gccxml-0.9/GCC/3.2/bits/stl_list.h +989 -0
  81. data/share/gccxml-0.9/GCC/3.2/bits/stl_tree.h +1462 -0
  82. data/share/gccxml-0.9/GCC/3.2/bits/stl_vector.h +1085 -0
  83. data/share/gccxml-0.9/GCC/3.2/bits/valarray_meta.h +1063 -0
  84. data/share/gccxml-0.9/GCC/3.2/fstream +579 -0
  85. data/share/gccxml-0.9/GCC/3.2/pthread.h +16 -0
  86. data/share/gccxml-0.9/GCC/3.2/sstream +384 -0
  87. data/share/gccxml-0.9/GCC/3.3/bits/fstream.tcc +530 -0
  88. data/share/gccxml-0.9/GCC/3.3/bits/list.tcc +378 -0
  89. data/share/gccxml-0.9/GCC/3.3/bits/locale_facets.h +2050 -0
  90. data/share/gccxml-0.9/GCC/3.3/bits/messages_members.h +108 -0
  91. data/share/gccxml-0.9/GCC/3.3/bits/sstream.tcc +243 -0
  92. data/share/gccxml-0.9/GCC/3.3/bits/stl_deque.h +1603 -0
  93. data/share/gccxml-0.9/GCC/3.3/bits/stl_list.h +1167 -0
  94. data/share/gccxml-0.9/GCC/3.3/bits/stl_tree.h +1462 -0
  95. data/share/gccxml-0.9/GCC/3.3/bits/stl_vector.h +992 -0
  96. data/share/gccxml-0.9/GCC/3.3/bits/valarray_meta.h +1135 -0
  97. data/share/gccxml-0.9/GCC/3.3/fstream +842 -0
  98. data/share/gccxml-0.9/GCC/3.3/gccxml_builtins.h +22 -0
  99. data/share/gccxml-0.9/GCC/3.3/sstream +638 -0
  100. data/share/gccxml-0.9/GCC/3.4/bits/gthr-default.h +669 -0
  101. data/share/gccxml-0.9/GCC/3.4/gccxml_builtins.h +91 -0
  102. data/share/gccxml-0.9/GCC/4.0/emmintrin.h +5 -0
  103. data/share/gccxml-0.9/GCC/4.0/gccxml_apple_emmintrin.h +1037 -0
  104. data/share/gccxml-0.9/GCC/4.0/gccxml_apple_mmintrin.h +669 -0
  105. data/share/gccxml-0.9/GCC/4.0/gccxml_apple_xmmintrin.h +870 -0
  106. data/share/gccxml-0.9/GCC/4.0/gccxml_builtins.h +128 -0
  107. data/share/gccxml-0.9/GCC/4.0/gccxml_gnu_emmintrin.h +977 -0
  108. data/share/gccxml-0.9/GCC/4.0/gccxml_gnu_mmintrin.h +636 -0
  109. data/share/gccxml-0.9/GCC/4.0/gccxml_gnu_xmmintrin.h +833 -0
  110. data/share/gccxml-0.9/GCC/4.0/mmintrin.h +5 -0
  111. data/share/gccxml-0.9/GCC/4.0/xmmintrin.h +5 -0
  112. data/share/gccxml-0.9/GCC/4.1/bits/gthr-default.h +622 -0
  113. data/share/gccxml-0.9/GCC/4.1/emmintrin.h +5 -0
  114. data/share/gccxml-0.9/GCC/4.1/gccxml_apple_emmintrin.h +1509 -0
  115. data/share/gccxml-0.9/GCC/4.1/gccxml_apple_mmintrin.h +942 -0
  116. data/share/gccxml-0.9/GCC/4.1/gccxml_apple_xmmintrin.h +1192 -0
  117. data/share/gccxml-0.9/GCC/4.1/gccxml_builtins.h +131 -0
  118. data/share/gccxml-0.9/GCC/4.1/gccxml_gnu_emmintrin.h +1004 -0
  119. data/share/gccxml-0.9/GCC/4.1/gccxml_gnu_mmintrin.h +637 -0
  120. data/share/gccxml-0.9/GCC/4.1/gccxml_gnu_xmmintrin.h +834 -0
  121. data/share/gccxml-0.9/GCC/4.1/mmintrin.h +5 -0
  122. data/share/gccxml-0.9/GCC/4.1/xmmintrin.h +5 -0
  123. data/share/gccxml-0.9/GCC/4.2/emmintrin.h +5 -0
  124. data/share/gccxml-0.9/GCC/4.2/gccxml_apple_emmintrin.h +1509 -0
  125. data/share/gccxml-0.9/GCC/4.2/gccxml_apple_mmintrin.h +942 -0
  126. data/share/gccxml-0.9/GCC/4.2/gccxml_apple_xmmintrin.h +1192 -0
  127. data/share/gccxml-0.9/GCC/4.2/gccxml_builtins.h +131 -0
  128. data/share/gccxml-0.9/GCC/4.2/gccxml_gnu_emmintrin.h +1013 -0
  129. data/share/gccxml-0.9/GCC/4.2/gccxml_gnu_mmintrin.h +663 -0
  130. data/share/gccxml-0.9/GCC/4.2/gccxml_gnu_xmmintrin.h +860 -0
  131. data/share/gccxml-0.9/GCC/4.2/mmintrin.h +5 -0
  132. data/share/gccxml-0.9/GCC/4.2/xmmintrin.h +5 -0
  133. data/share/gccxml-0.9/GCC/4.3/emmintrin.h +1043 -0
  134. data/share/gccxml-0.9/GCC/4.3/gccxml_builtins.h +183 -0
  135. data/share/gccxml-0.9/GCC/4.3/mmintrin.h +663 -0
  136. data/share/gccxml-0.9/GCC/4.3/xmmintrin.h +867 -0
  137. data/share/gccxml-0.9/GCC/4.4/bits/c++config.h +1431 -0
  138. data/share/gccxml-0.9/GCC/4.4/emmintrin.h +1041 -0
  139. data/share/gccxml-0.9/GCC/4.4/gccxml_builtins.h +153 -0
  140. data/share/gccxml-0.9/GCC/4.4/mmintrin.h +662 -0
  141. data/share/gccxml-0.9/GCC/4.4/xmmintrin.h +864 -0
  142. data/share/gccxml-0.9/GCC/4.5/gccxml_builtins.h +154 -0
  143. data/share/gccxml-0.9/GCC/4.5/iomanip +349 -0
  144. data/share/gccxml-0.9/GCC/COPYING.RUNTIME +73 -0
  145. data/share/gccxml-0.9/GCC/COPYING3 +674 -0
  146. data/share/gccxml-0.9/IBM/8.0/adapt_headers.sh +34 -0
  147. data/share/gccxml-0.9/IBM/8.0/stdlib.h.patch +27 -0
  148. data/share/gccxml-0.9/IBM/8.0/xstring.patch +19 -0
  149. data/share/gccxml-0.9/IBM/README +8 -0
  150. data/share/gccxml-0.9/IBM/find_flags +51 -0
  151. data/share/gccxml-0.9/IBM/find_flags_common +48 -0
  152. data/share/gccxml-0.9/Intel/find_flags +56 -0
  153. data/share/gccxml-0.9/Intel/pthread.h +16 -0
  154. data/share/gccxml-0.9/MIPSpro/7.3/exception +9 -0
  155. data/share/gccxml-0.9/MIPSpro/7.3/gccxml_mpro_internals.h +21 -0
  156. data/share/gccxml-0.9/MIPSpro/7.3/iomanip +161 -0
  157. data/share/gccxml-0.9/MIPSpro/7.3/ostream +9 -0
  158. data/share/gccxml-0.9/MIPSpro/7.3/stddef.h +9 -0
  159. data/share/gccxml-0.9/MIPSpro/7.3/stl_config.h +9 -0
  160. data/share/gccxml-0.9/MIPSpro/7.3/stl_locale.h +17 -0
  161. data/share/gccxml-0.9/MIPSpro/7.3/stl_monetary.h +14 -0
  162. data/share/gccxml-0.9/MIPSpro/7.3/stl_numeric_facets.h +13 -0
  163. data/share/gccxml-0.9/MIPSpro/7.3/stl_threads.h +11 -0
  164. data/share/gccxml-0.9/MIPSpro/7.3/string +18 -0
  165. data/share/gccxml-0.9/MIPSpro/find_flags +70 -0
  166. data/share/gccxml-0.9/MIPSpro/mipspro_defs.cxx +63 -0
  167. data/share/gccxml-0.9/Sun/5.8/Cstd.patch +156 -0
  168. data/share/gccxml-0.9/Sun/5.8/adapt_headers.sh +32 -0
  169. data/share/gccxml-0.9/Sun/5.8/std-5.10.patch +22 -0
  170. data/share/gccxml-0.9/Sun/README +8 -0
  171. data/share/gccxml-0.9/Sun/find_flags +51 -0
  172. data/share/gccxml-0.9/Sun/find_flags_common +42 -0
  173. data/share/gccxml-0.9/gccxml_config +2 -0
  174. data/share/gccxml-0.9/gccxml_identify_compiler.cc +13 -0
  175. data/share/man/man1/gccxml.1 +246 -0
  176. metadata +243 -0
@@ -0,0 +1,34 @@
1
+ #!/bin/sh
2
+
3
+ cd `dirname $0`
4
+
5
+ #########################################
6
+ # Patch C++ Compiler Includes
7
+ #########################################
8
+
9
+ XLC_INCLUDES=`../find_flags "$@" | perl -ne '($a) = m|-I([/a-zA-Z0-9\._-]+)|o ; print "$a\n" if $a'`
10
+
11
+ for f in $XLC_INCLUDES/*
12
+ do
13
+ b=`basename $f`
14
+
15
+ sed \
16
+ -e 's/\(extern[[:space:]]\{1,\}\)"builtin"/\1"C"/g' \
17
+ -e 's/^\([[:space:]]\{1,\}\)??=/\1#/g' \
18
+ -e 's/__IBMCPP__ < 400/!defined(__GCCXML__)/g' \
19
+ -e 's/IBM VisualAge C++ v4 and later compilers/GCCXML/g' \
20
+ -e '/#pragma[[:space:]]\{1,\}implementation/d' \
21
+ $f > $b.tmp
22
+
23
+ if ! cmp -s $f $b.tmp
24
+ then
25
+ echo "modifying $b"
26
+ mv $b.tmp $b
27
+ else
28
+ rm $b.tmp
29
+ fi
30
+
31
+ done
32
+
33
+ patch -s -i stdlib.h.patch
34
+ patch -s -i xstring.patch
@@ -0,0 +1,27 @@
1
+ *** stdlib.h.orig Mon Jun 8 17:46:16 2009
2
+ --- stdlib.h Mon Jun 8 17:46:32 2009
3
+ ***************
4
+ *** 33,43 ****
5
+ # endif
6
+
7
+ # if defined (__MATH__) && defined (_ANSI_C_SOURCE)
8
+ ! inline int abs (int );
9
+ # if defined (__ABS_LONG__)
10
+ extern "C++" inline long abs (long );
11
+ # endif
12
+ ! inline long labs (long );
13
+ # endif
14
+ # if defined (__MATH__) && defined(__XLC13__) && defined(_LONG_LONG) && defined(_ALL_SOURCE)
15
+ inline long long llabs(long long);
16
+ --- 33,43 ----
17
+ # endif
18
+
19
+ # if defined (__MATH__) && defined (_ANSI_C_SOURCE)
20
+ ! extern "C" inline int abs (int );
21
+ # if defined (__ABS_LONG__)
22
+ extern "C++" inline long abs (long );
23
+ # endif
24
+ ! extern "C" inline long labs (long );
25
+ # endif
26
+ # if defined (__MATH__) && defined(__XLC13__) && defined(_LONG_LONG) && defined(_ALL_SOURCE)
27
+ inline long long llabs(long long);
@@ -0,0 +1,19 @@
1
+ *** xstring.orig Mon Jun 8 17:48:44 2009
2
+ --- xstring Mon Jun 8 17:48:56 2009
3
+ ***************
4
+ *** 571,577 ****
5
+ template<class _E, class _Tr, class _A>
6
+ const typename basic_string<_E, _Tr, _A>::size_type
7
+ basic_string<_E, _Tr, _A>::npos =
8
+ ! (basic_string<_E, _Tr, _A>::size_type)(-1);
9
+
10
+ template<class _E, class _Tr, class _A> inline
11
+ void swap(basic_string<_E, _Tr, _A>& _X,
12
+ --- 571,577 ----
13
+ template<class _E, class _Tr, class _A>
14
+ const typename basic_string<_E, _Tr, _A>::size_type
15
+ basic_string<_E, _Tr, _A>::npos =
16
+ ! (typename basic_string<_E, _Tr, _A>::size_type)(-1);
17
+
18
+ template<class _E, class _Tr, class _A> inline
19
+ void swap(basic_string<_E, _Tr, _A>& _X,
@@ -0,0 +1,8 @@
1
+ IBM xlC support contributed by Hady Zalek
2
+
3
+ This is a small README file regarding gccxml support for AIX and IBM xlC.
4
+
5
+ The IBM xlC headers are not suitable for GCC and need to be adapted. The modified files may not be redistributed freely. This forces you to perform the following operations:
6
+ ./<xlC-version>/adapt_headers.sh
7
+
8
+ This will produce corrected header files in the corresponding directory.
@@ -0,0 +1,51 @@
1
+ #!/bin/sh
2
+ #=============================================================================
3
+ #
4
+ # Program: GCC-XML
5
+ # Module: $RCSfile: find_flags,v $
6
+ # Language: C++
7
+ # Date: $Date: 2009-06-09 18:18:45 $
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
+
19
+ # Find the compiler executable name.
20
+ if test "x$1" = "x" ; then
21
+ if test "x${CXX}" = "x" ; then
22
+ CXX=xlC
23
+ fi
24
+ else
25
+ CXX="$1"
26
+ shift
27
+ CXXFLAGS="$@"
28
+ fi
29
+
30
+ # Find the compiler version
31
+ CXX_VERSION=`${CXX} -qversion 2>&1 | perl -ne 'print m|\WV(\d+\.\d+)|o'`
32
+ [ -z "${CXX_VERSION}" ] && echo "Could not find compiler version" && exit 1
33
+
34
+ # Compute the script dir
35
+ SCRIPT_DIR=`dirname $0`
36
+ if test "x$SCRIPT_DIR" = "x" ; then SCRIPT_DIR="." ; fi
37
+ SCRIPT_DIR=`cd "$SCRIPT_DIR" ; pwd`
38
+
39
+ # Compute the version-specific support dir
40
+ CXX_SUPPORT_DIR="$SCRIPT_DIR/$CXX_VERSION"
41
+
42
+ # Use the version-specific find_flags if available
43
+ if [ -f "$CXX_SUPPORT_DIR/find_flags" ]
44
+ then
45
+ . "$CXX_SUPPORT_DIR/find_flags"
46
+ else
47
+ . "$SCRIPT_DIR/find_flags_common"
48
+ fi
49
+
50
+ # Print out the options
51
+ echo $OPTIONS
@@ -0,0 +1,48 @@
1
+ #!/bin/sh
2
+ #=============================================================================
3
+ #
4
+ # Program: GCC-XML
5
+ # Module: $RCSfile: find_flags_common,v $
6
+ # Language: C++
7
+ # Date: $Date: 2009-06-09 18:18:45 $
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
+
19
+ # Find the include path directory.
20
+ CXX_BIN_DIR=$(dirname $(which "${CXX}"))
21
+ CXX_INC_DIR=$(dirname $CXX_BIN_DIR)/include
22
+
23
+ if [ ! -d "$CXX_INC_DIR" ]
24
+ then
25
+ echo "Could not find the xlC include directory in $CXX_INC_DIR"
26
+ exit 1
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} ${CXXFLAGS} /tmp/gccxml_identify_compiler_args$GCCXML_PID.cc -E -V 2>&1 | perl -ne 'print m|(\W-D[^\s]+\s+)|og'`
36
+ MACROS="${MACROS} -D_WCHAR_T -D__MATH__ -D__TOS_AIX__ -D__BUILD_RT__"
37
+
38
+ # Find the include path options.
39
+ INCLUDES="-I${CXX_INC_DIR} -I/usr/include"
40
+
41
+ # Use hacked headers
42
+ INCLUDES="-iwrapper\"$CXX_SUPPORT_DIR\" $INCLUDES"
43
+
44
+ # Cleanup
45
+ rm -rf "/tmp/gccxml_identify_compiler_args$GCCXML_PID.cc"
46
+
47
+ # Format the options.
48
+ OPTIONS="$MACROS $INCLUDES $SPECIAL"
@@ -0,0 +1,56 @@
1
+ #!/bin/sh
2
+ #=============================================================================
3
+ #
4
+ # Program: GCC-XML
5
+ # Module: $RCSfile: find_flags,v $
6
+ # Language: C++
7
+ # Date: $Date: 2005-04-07 12:51:07 $
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 GCC executable name.
20
+ if test "x$1" = "x" ; then
21
+ if test "x${CXX}" = "x" ; then
22
+ CXX=gcc
23
+ fi
24
+ else
25
+ CXX="$1"
26
+ shift
27
+ CXXFLAGS="$@"
28
+ fi
29
+
30
+ # Find the macro definition options.
31
+ MACROS=`echo "" | ${CXX} -x c++ -E -dM ${CXXFLAGS} - 2>/dev/null |
32
+ sed -n '
33
+ /^#define / {s/#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)/-D\1='\''\2'\''/;p;}
34
+ ' |
35
+ awk '
36
+ BEGIN { first=1 }
37
+ /./ { if(first) { printf("%s", $0); first=0 } else { printf(" %s", $0) } }
38
+ '`
39
+
40
+ # Find the include path options.
41
+ INCLUDES=`
42
+ echo "" | ${CXX} -v -x c++ -E ${CXXFLAGS} - 2>&1 |
43
+ awk '/^[ \t]*-I\/.* \\\\$/ { printf("%s ",$1) }
44
+ END {printf("\n")}' -
45
+ `
46
+
47
+ # The support headers are located where this script is.
48
+ SELFPATH=`echo $0 | sed -n '/\//{s/\/find_flags//;p;}'`
49
+ if test "x$SELFPATH" = "x" ; then SELFPATH="." ; fi
50
+ SELFPATH=`cd "$SELFPATH" ; pwd`
51
+
52
+ INCLUDES="-iwrapper\"$SELFPATH\" $INCLUDES"
53
+
54
+ # Format and print out the options.
55
+ OPTIONS="$MACROS -D_WCHAR_T $INCLUDES"
56
+ echo $OPTIONS
@@ -0,0 +1,16 @@
1
+ #ifndef GCCXML_PTHREAD_H
2
+ #define GCCXML_PTHREAD_H
3
+
4
+ /* Some pthread.h files use __thread, which is a keyword for GCC 3.3.
5
+ Change the name for the duration of including pthread.h. */
6
+ #ifndef __thread
7
+ # define __thread gccxml__thread
8
+ # define gccxml__thread gccxml__thread
9
+ #endif
10
+ #include_next <pthread.h>
11
+ #ifdef gccxml__thread
12
+ # undef gccxml__thread
13
+ # undef __thread
14
+ #endif
15
+
16
+ #endif
@@ -0,0 +1,9 @@
1
+ #ifndef __EXCEPTION_GCCXML
2
+ #define __EXCEPTION_GCCXML
3
+
4
+ #include <gccxml_mpro_internals.h>
5
+
6
+ #include_next <exception>
7
+
8
+ #endif
9
+
@@ -0,0 +1,21 @@
1
+ #ifndef __GCCXML_MPRO_INTERNALS
2
+ #define __GCCXML_MPRO_INTERNALS
3
+
4
+ /* These macros are defined internally by SGI CC. */
5
+
6
+ #define _WCHAR_T
7
+ #define _BOOL
8
+ #define _TYPENAME_IS_KEYWORD
9
+ #define _NAMESPACES
10
+ #define _MEMBER_TEMPLATES
11
+ #define _MEMBER_TEMPLATE_KEYWORD
12
+ #define _EXPLICIT_IS_KEYWORD
13
+ #define _WCHAR_T_IS_KEYWORD
14
+ #define __STL_HAS_NAMESPACES
15
+ #define __STL_USE_NEW_IOSTREAMS
16
+ #define __STL_EXPLICIT_FUNCTION_TMPL_ARGS
17
+ #define _PARTIAL_SPECIALIZATION_OF_CLASS_TEMPLATES
18
+ #define __EDG_ABI_COMPATIBILITY_VERSION 229
19
+
20
+ #endif
21
+
@@ -0,0 +1,161 @@
1
+ /*
2
+ * Copyright (c) 1998
3
+ * Silicon Graphics Computer Systems, Inc.
4
+ *
5
+ * Permission to use, copy, modify, distribute and sell this software
6
+ * and its documentation for any purpose is hereby granted without fee,
7
+ * provided that the above copyright notice appear in all copies and
8
+ * that both that copyright notice and this permission notice appear
9
+ * in supporting documentation. Silicon Graphics makes no
10
+ * representations about the suitability of this software for any
11
+ * purpose. It is provided "as is" without express or implied warranty.
12
+ */
13
+
14
+ #ifndef __SGI_STL_IOMANIP
15
+ #define __SGI_STL_IOMANIP
16
+
17
+ #if defined(__sgi) && !defined(__GNUC__) && !defined(_STANDARD_C_PLUS_PLUS)
18
+ #error This header file requires the -LANG:std option
19
+ #endif
20
+
21
+ #include <istream> // Includes <ostream> and <ios>
22
+
23
+ __STL_BEGIN_NAMESPACE
24
+
25
+ //----------------------------------------------------------------------
26
+ // Machinery for defining manipulators.
27
+
28
+ // Class that calls one of ios_base's single-argument member functions.
29
+ template <class _Arg>
30
+ struct _Ios_Manip_1 {
31
+ _Ios_Manip_1(_Arg (ios_base::*__f)(_Arg), const _Arg& __arg)
32
+ : _M_f(__f), _M_arg(__arg)
33
+ {}
34
+
35
+ void operator()(ios_base& __ios) const {
36
+ (__ios.*_M_f)(_M_arg);
37
+ }
38
+
39
+ _Arg (ios_base::*_M_f)(_Arg);
40
+ _Arg _M_arg;
41
+ };
42
+
43
+ // Class that calls one of ios_base's two-argument member functions.
44
+ struct _Ios_Setf_Manip {
45
+ ios_base::fmtflags _M_flag;
46
+ ios_base::fmtflags _M_mask;
47
+ bool _M_two_args;
48
+
49
+ _Ios_Setf_Manip(ios_base::fmtflags __f)
50
+ : _M_flag(__f), _M_mask(0), _M_two_args(false)
51
+ {}
52
+
53
+ _Ios_Setf_Manip(ios_base::fmtflags __f, ios_base::fmtflags __m)
54
+ : _M_flag(__f), _M_mask(__m), _M_two_args(true)
55
+ {}
56
+
57
+ void operator()(ios_base& __ios) const {
58
+ if (_M_two_args)
59
+ __ios.setf(_M_flag, _M_mask);
60
+ else
61
+ __ios.setf(_M_flag);
62
+ }
63
+ };
64
+
65
+
66
+ template <class _CharT, class _Traits, class _Arg>
67
+ inline basic_istream<_CharT, _Traits>&
68
+ operator>>(basic_istream<_CharT, _Traits>& __in,
69
+ const _Ios_Manip_1<_Arg>& __f)
70
+ {
71
+ __f(__in);
72
+ return __in;
73
+ }
74
+
75
+ template <class _CharT, class _Traits, class _Arg>
76
+ inline basic_ostream<_CharT, _Traits>&
77
+ operator<<(basic_ostream<_CharT, _Traits>& __os,
78
+ const _Ios_Manip_1<_Arg>& __f)
79
+ {
80
+ __f(__os);
81
+ return __os;
82
+ }
83
+
84
+ template <class _CharT, class _Traits>
85
+ inline basic_istream<_CharT, _Traits>&
86
+ operator>>(basic_istream<_CharT, _Traits>& __in, const _Ios_Setf_Manip& __f)
87
+ {
88
+ __f(__in);
89
+ return __in;
90
+ }
91
+
92
+ template <class _CharT, class _Traits>
93
+ inline basic_ostream<_CharT, _Traits>&
94
+ operator<<(basic_ostream<_CharT, _Traits>& __os, const _Ios_Setf_Manip& __f)
95
+
96
+ {
97
+ __f(__os);
98
+ return __os;
99
+ }
100
+
101
+ //----------------------------------------------------------------------
102
+ // The ios_base manipulators.
103
+
104
+ inline _Ios_Setf_Manip resetiosflags(ios_base::fmtflags __mask) {
105
+ return _Ios_Setf_Manip(0, __mask);
106
+ }
107
+
108
+ inline _Ios_Setf_Manip setiosflags(ios_base::fmtflags __flag) {
109
+ return _Ios_Setf_Manip(__flag);
110
+ }
111
+
112
+ inline _Ios_Setf_Manip setbase(int __n) {
113
+ ios_base::fmtflags __base = __n == 8 ? ios_base::oct :
114
+ __n == 10 ? ios_base::dec :
115
+ __n == 16 ? ios_base::hex :
116
+ ios_base::fmtflags(0);
117
+ return _Ios_Setf_Manip(__base, ios_base::basefield);
118
+ }
119
+
120
+ inline _Ios_Manip_1<streamsize>
121
+ setprecision(int __n) {
122
+ return _Ios_Manip_1<streamsize>(&ios_base::precision, __n);
123
+ }
124
+
125
+ inline _Ios_Manip_1<streamsize>
126
+ setw(int __n) {
127
+ return _Ios_Manip_1<streamsize>(&ios_base::width, __n);
128
+ }
129
+
130
+ //----------------------------------------------------------------------
131
+ // setfill, a manipulator that operates on basic_ios<> instead of ios_base.
132
+
133
+ template <class _CharT>
134
+ struct _Setfill_Manip {
135
+ _Setfill_Manip(_CharT __c) : _M_c(__c) {}
136
+ _CharT _M_c;
137
+ };
138
+
139
+ template <class _CharT, class _CharT2, class _Traits>
140
+ inline basic_ostream<_CharT, _Traits>&
141
+ operator<<(basic_ostream<_CharT, _Traits>& __os,
142
+ const _Setfill_Manip<_CharT2>& __m)
143
+ {
144
+ __os.fill(__m._M_c);
145
+ return __os;
146
+ }
147
+
148
+ template <class _CharT>
149
+ inline _Setfill_Manip<_CharT>
150
+ setfill(_CharT __c) {
151
+ return _Setfill_Manip<_CharT>(__c);
152
+ }
153
+
154
+
155
+ __STL_END_NAMESPACE
156
+
157
+ #endif /* __SGI_STL_IOMANIP */
158
+
159
+ // Local Variables:
160
+ // mode:C++
161
+ // End:
@@ -0,0 +1,9 @@
1
+ #ifndef __SGI_STL_OSTREAM_GCCXML
2
+ #define __SGI_STL_OSTREAM_GCCXML
3
+
4
+ extern bool uncaught_exception();
5
+
6
+ #include_next <ostream>
7
+
8
+ #endif
9
+
@@ -0,0 +1,9 @@
1
+ #ifndef __STDDEF_H_GCCXML
2
+ #define __STDDEF_H_GCCXML
3
+
4
+ #define _WCHAR_T
5
+
6
+ #include_next <stddef.h>
7
+
8
+ #endif
9
+
@@ -0,0 +1,9 @@
1
+ #ifndef __STL_CONFIG_H_GCCXML
2
+ #define __STL_CONFIG_H_GCCXML
3
+
4
+ #include <gccxml_mpro_internals.h>
5
+
6
+ #include_next <stl_config.h>
7
+
8
+ #endif
9
+
@@ -0,0 +1,17 @@
1
+ #ifndef __SGI_STL_INTERNAL_LOCALE_H_GCCXML
2
+ #define __SGI_STL_INTERNAL_LOCALE_H_GCCXML
3
+
4
+ #include <stl_config.h>
5
+
6
+ __STL_BEGIN_NAMESPACE
7
+
8
+ class locale;
9
+ template <class _CharT> class collate;
10
+ template <class _Facet> inline const _Facet& use_facet(const locale& __loc);
11
+
12
+ __STL_END_NAMESPACE
13
+
14
+ #include_next <stl_locale.h>
15
+
16
+ #endif
17
+
@@ -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,70 @@
1
+ #!/bin/sh
2
+ #=============================================================================
3
+ #
4
+ # Program: GCC-XML
5
+ # Module: $RCSfile: find_flags,v $
6
+ # Language: C++
7
+ # Date: $Date: 2009-09-22 13:16:01 $
8
+ # Version: $Revision: 1.6 $
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
+ SELFDIR=`cd "\`dirname \"$0\"\`";pwd`
31
+
32
+ # This test input file checks for some builtin definitions in the
33
+ # compiler that are not displayed by the -v option. Its list was
34
+ # obtained by running "strings /usr/lib32/cmplrs/fecc" and testing for
35
+ # definitions with a giant version of the string below.
36
+ DEFS_FILE="${SELFDIR}/mipspro_defs.cxx"
37
+
38
+ # Find the macro definition options.
39
+ MACROS=`
40
+ ${CXX} ${CXXFLAGS} -E -v "${DEFS_FILE}" 2>&1 |
41
+ sed -n '/_COMPILER_VERSION/{s| '"${DEFS_FILE}"'.*$||
42
+ s/ -/\\
43
+ -/g;p;}' |
44
+ sed -n '/^-D.*$/{s/-D\([^=]*\)=\([^ ]\{1,\} .*\)/-D\1='\''\2'\''/;p;}' |
45
+ sed -n 'H;${g;s/\n/ /g;p;}'`
46
+
47
+ # Find the internally defined macros.
48
+ LANGSTD=`
49
+ ${CXX} ${CXXFLAGS} -E -v "${DEFS_FILE}" 2>&1 |
50
+ sed -n '/^D/ {s/^D/-D/;s/ /=/;p;}' |
51
+ sed -n 'H;${g;s/\n/ /g;p;}'`
52
+
53
+ # Find the include path options.
54
+ INCLUDES=`
55
+ ${CXX} ${CXXFLAGS} -E -v "${DEFS_FILE}" 2>&1 |
56
+ sed -n '/_COMPILER_VERSION/{s| '"${DEFS_FILE}"'.*$||
57
+ s/ -/\\
58
+ -/g;p;}' |
59
+ sed -n '/^-I.*$/{p;}' |
60
+ sed -n 'H;${g;s/\n/ /g;p;}'`
61
+
62
+ # The support headers are located where this script is.
63
+ SELFPATH=`echo $0 | sed -n '/\//{s/\/find_flags//;p;}'`
64
+ if test "x$SELFPATH" = "x" ; then SELFPATH="." ; fi
65
+ SELFPATH=`cd "$SELFPATH" ; pwd`
66
+ INCLUDES="-iwrapper\"$SELFPATH/7.3\" $INCLUDES"
67
+
68
+ # Format and print out the options.
69
+ OPTIONS="$MACROS $LANGSTD $INCLUDES"
70
+ echo $OPTIONS