gccxml_gem 0.9-x86-cygwin
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +75 -0
- data/bin/gccxml.exe +0 -0
- data/bin/gccxml_cc1plus.exe +0 -0
- data/gccxml.rb +50 -0
- data/share/doc/gccxml-0.9/Copyright.txt +55 -0
- data/share/doc/gccxml-0.9/gccxml.html +168 -0
- data/share/doc/gccxml-0.9/gccxml.txt +293 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/algorithm +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/algorithm.h +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/bitset +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/bitset.h +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/cctype +1 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/cfloat +1 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/climits +1 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/cmath +1 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/complex +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/complex.h +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/cstddef +1 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/cstdio +1 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/cstdlib +1 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/cstring +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/cstring.h +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/ctime +1 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/cwchar +1 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/cwctype +1 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/deque +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/deque.h +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/exception +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/exception.h +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/fstream +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/fstream.h +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/function +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/function.h +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/functional +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/gccxml_typeinfo.h +146 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/iomanip +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/iomanip.h +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/ios +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/ios.h +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/iosfwd +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/iosfwd.h +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/iostream +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/iostream.h +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/istream +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/istream.h +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/iterator +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/iterator.h +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/limits +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/limits.h +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/list +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/list.h +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/locale +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/locale.h +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/map +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/map.h +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/memory +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/memory.h +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/new +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/new.h +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/numeric +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/numeric.h +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/ostream +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/ostream.h +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/queue +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/queue.h +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/codecvt +1 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/collate +1 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/ctype +1 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/iosbase +1 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/iotraits +1 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/iterator +1 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/lochelp +1 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/locimpl +1 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/locvector +1 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/messages +1 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/money +1 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/numbrw +1 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/numeral +1 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/rwdispatch.h +1 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/rwlocale +1 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/rwstderr_macros.h +64 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/string_ref +1 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/time +1 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/traits +1 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/tree +1 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/usefacet +1 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/valimp +1 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/vendor +1 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/set +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/set.h +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/sstream +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/sstream.h +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/stack +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/stack.h +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/stdexcept +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/stdexcept.h +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/streambuf +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/streambuf.h +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/string +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/string.h +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/strstream +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/strstream.h +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/typeinfo +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/typeinfo.h +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/utility +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/utility.h +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/valarray +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/valarray.h +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/vector +7 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/vector.h +7 -0
- data/share/gccxml-0.9/Borland/5.5/except.h +154 -0
- data/share/gccxml-0.9/Borland/5.5/gccxml_fstream.h +431 -0
- data/share/gccxml-0.9/Borland/5.5/gccxml_new.h +166 -0
- data/share/gccxml-0.9/Borland/5.5/gccxml_valarray.h +786 -0
- data/share/gccxml-0.9/Borland/5.5/gccxml_vector.h +1457 -0
- data/share/gccxml-0.9/Borland/5.5/io.h +352 -0
- data/share/gccxml-0.9/Borland/5.5/oaidl.h +7006 -0
- data/share/gccxml-0.9/Borland/5.5/propidl.h +1477 -0
- data/share/gccxml-0.9/Borland/5.5/rw/locimpl.h +477 -0
- data/share/gccxml-0.9/Borland/5.5/rw/rwlocale.h +619 -0
- data/share/gccxml-0.9/Borland/5.5/stdarg.h +55 -0
- data/share/gccxml-0.9/Borland/5.5/valarray.cc +2883 -0
- data/share/gccxml-0.9/GCC/2.95/algorithm +76 -0
- data/share/gccxml-0.9/GCC/2.95/bitset +17 -0
- data/share/gccxml-0.9/GCC/2.95/cctype +24 -0
- data/share/gccxml-0.9/GCC/2.95/clocale +14 -0
- data/share/gccxml-0.9/GCC/2.95/cmath +33 -0
- data/share/gccxml-0.9/GCC/2.95/complex +38 -0
- data/share/gccxml-0.9/GCC/2.95/csetjmp +13 -0
- data/share/gccxml-0.9/GCC/2.95/csignal +14 -0
- data/share/gccxml-0.9/GCC/2.95/cstdarg +12 -0
- data/share/gccxml-0.9/GCC/2.95/cstddef +13 -0
- data/share/gccxml-0.9/GCC/2.95/cstdio +55 -0
- data/share/gccxml-0.9/GCC/2.95/cstdlib +66 -0
- data/share/gccxml-0.9/GCC/2.95/cstring +34 -0
- data/share/gccxml-0.9/GCC/2.95/ctime +24 -0
- data/share/gccxml-0.9/GCC/2.95/cwchar +65 -0
- data/share/gccxml-0.9/GCC/2.95/cwctype +31 -0
- data/share/gccxml-0.9/GCC/2.95/deque +19 -0
- data/share/gccxml-0.9/GCC/2.95/exception +20 -0
- data/share/gccxml-0.9/GCC/2.95/fstream +23 -0
- data/share/gccxml-0.9/GCC/2.95/functional +64 -0
- data/share/gccxml-0.9/GCC/2.95/gccxml_bitset +1066 -0
- data/share/gccxml-0.9/GCC/2.95/iomanip +20 -0
- data/share/gccxml-0.9/GCC/2.95/iosfwd +20 -0
- data/share/gccxml-0.9/GCC/2.95/iostream +27 -0
- data/share/gccxml-0.9/GCC/2.95/iterator +39 -0
- data/share/gccxml-0.9/GCC/2.95/list +19 -0
- data/share/gccxml-0.9/GCC/2.95/map +20 -0
- data/share/gccxml-0.9/GCC/2.95/memory +21 -0
- data/share/gccxml-0.9/GCC/2.95/new +13 -0
- data/share/gccxml-0.9/GCC/2.95/numeric +15 -0
- data/share/gccxml-0.9/GCC/2.95/pthread.h +16 -0
- data/share/gccxml-0.9/GCC/2.95/queue +20 -0
- data/share/gccxml-0.9/GCC/2.95/set +20 -0
- data/share/gccxml-0.9/GCC/2.95/sstream +24 -0
- data/share/gccxml-0.9/GCC/2.95/stack +19 -0
- data/share/gccxml-0.9/GCC/2.95/std/bastring.cc +524 -0
- data/share/gccxml-0.9/GCC/2.95/std/complext.h +397 -0
- data/share/gccxml-0.9/GCC/2.95/std/dcomplex.h +92 -0
- data/share/gccxml-0.9/GCC/2.95/std/fcomplex.h +88 -0
- data/share/gccxml-0.9/GCC/2.95/std/gslice_array.h +170 -0
- data/share/gccxml-0.9/GCC/2.95/std/indirect_array.h +157 -0
- data/share/gccxml-0.9/GCC/2.95/std/ldcomplex.h +96 -0
- data/share/gccxml-0.9/GCC/2.95/std/mask_array.h +154 -0
- data/share/gccxml-0.9/GCC/2.95/std/slice_array.h +156 -0
- data/share/gccxml-0.9/GCC/2.95/std/std_valarray.h +728 -0
- data/share/gccxml-0.9/GCC/2.95/std/straits.h +162 -0
- data/share/gccxml-0.9/GCC/2.95/std/valarray_meta.h +1035 -0
- data/share/gccxml-0.9/GCC/2.95/stdexcept +17 -0
- data/share/gccxml-0.9/GCC/2.95/stl_alloc.h +1057 -0
- data/share/gccxml-0.9/GCC/2.95/stl_bvector.h +836 -0
- data/share/gccxml-0.9/GCC/2.95/stl_deque.h +1699 -0
- data/share/gccxml-0.9/GCC/2.95/stl_list.h +843 -0
- data/share/gccxml-0.9/GCC/2.95/stl_tree.h +1331 -0
- data/share/gccxml-0.9/GCC/2.95/stl_vector.h +828 -0
- data/share/gccxml-0.9/GCC/2.95/string +26 -0
- data/share/gccxml-0.9/GCC/2.95/strstream +23 -0
- data/share/gccxml-0.9/GCC/2.95/typeinfo +11 -0
- data/share/gccxml-0.9/GCC/2.95/utility +25 -0
- data/share/gccxml-0.9/GCC/2.95/valarray +52 -0
- data/share/gccxml-0.9/GCC/2.95/vector +19 -0
- data/share/gccxml-0.9/GCC/2.96/sstream +305 -0
- data/share/gccxml-0.9/GCC/3.0/pthread.h +16 -0
- data/share/gccxml-0.9/GCC/3.1/pthread.h +16 -0
- data/share/gccxml-0.9/GCC/3.2/bits/fstream.tcc +500 -0
- data/share/gccxml-0.9/GCC/3.2/bits/istream.tcc +1207 -0
- data/share/gccxml-0.9/GCC/3.2/bits/locale_facets.h +1810 -0
- data/share/gccxml-0.9/GCC/3.2/bits/locale_facets.tcc +2397 -0
- data/share/gccxml-0.9/GCC/3.2/bits/messages_members.h +108 -0
- data/share/gccxml-0.9/GCC/3.2/bits/ostream.tcc +713 -0
- data/share/gccxml-0.9/GCC/3.2/bits/sstream.tcc +241 -0
- data/share/gccxml-0.9/GCC/3.2/bits/stl_deque.h +1682 -0
- data/share/gccxml-0.9/GCC/3.2/bits/stl_list.h +989 -0
- data/share/gccxml-0.9/GCC/3.2/bits/stl_tree.h +1462 -0
- data/share/gccxml-0.9/GCC/3.2/bits/stl_vector.h +1085 -0
- data/share/gccxml-0.9/GCC/3.2/bits/valarray_meta.h +1063 -0
- data/share/gccxml-0.9/GCC/3.2/fstream +579 -0
- data/share/gccxml-0.9/GCC/3.2/pthread.h +16 -0
- data/share/gccxml-0.9/GCC/3.2/sstream +384 -0
- data/share/gccxml-0.9/GCC/3.3/bits/fstream.tcc +530 -0
- data/share/gccxml-0.9/GCC/3.3/bits/list.tcc +378 -0
- data/share/gccxml-0.9/GCC/3.3/bits/locale_facets.h +2050 -0
- data/share/gccxml-0.9/GCC/3.3/bits/messages_members.h +108 -0
- data/share/gccxml-0.9/GCC/3.3/bits/sstream.tcc +243 -0
- data/share/gccxml-0.9/GCC/3.3/bits/stl_deque.h +1603 -0
- data/share/gccxml-0.9/GCC/3.3/bits/stl_list.h +1167 -0
- data/share/gccxml-0.9/GCC/3.3/bits/stl_tree.h +1462 -0
- data/share/gccxml-0.9/GCC/3.3/bits/stl_vector.h +992 -0
- data/share/gccxml-0.9/GCC/3.3/bits/valarray_meta.h +1135 -0
- data/share/gccxml-0.9/GCC/3.3/fstream +842 -0
- data/share/gccxml-0.9/GCC/3.3/gccxml_builtins.h +22 -0
- data/share/gccxml-0.9/GCC/3.3/sstream +638 -0
- data/share/gccxml-0.9/GCC/3.4/gccxml_builtins.h +91 -0
- data/share/gccxml-0.9/GCC/4.0/gccxml_builtins.h +128 -0
- data/share/gccxml-0.9/GCC/4.1/bits/gthr-default.h +618 -0
- data/share/gccxml-0.9/GCC/4.1/gccxml_builtins.h +131 -0
- data/share/gccxml-0.9/GCC/4.2/gccxml_builtins.h +131 -0
- data/share/gccxml-0.9/GCC/find_flags +105 -0
- data/share/gccxml-0.9/Intel/find_flags +56 -0
- data/share/gccxml-0.9/Intel/pthread.h +16 -0
- data/share/gccxml-0.9/MIPSpro/7.3/exception +9 -0
- data/share/gccxml-0.9/MIPSpro/7.3/gccxml_mpro_internals.h +21 -0
- data/share/gccxml-0.9/MIPSpro/7.3/iomanip +161 -0
- data/share/gccxml-0.9/MIPSpro/7.3/ostream +9 -0
- data/share/gccxml-0.9/MIPSpro/7.3/stddef.h +9 -0
- data/share/gccxml-0.9/MIPSpro/7.3/stl_config.h +9 -0
- data/share/gccxml-0.9/MIPSpro/7.3/stl_locale.h +17 -0
- data/share/gccxml-0.9/MIPSpro/7.3/stl_monetary.h +14 -0
- data/share/gccxml-0.9/MIPSpro/7.3/stl_numeric_facets.h +13 -0
- data/share/gccxml-0.9/MIPSpro/7.3/stl_threads.h +11 -0
- data/share/gccxml-0.9/MIPSpro/7.3/string +18 -0
- data/share/gccxml-0.9/MIPSpro/find_flags +137 -0
- data/share/gccxml-0.9/Sun/5.8/adaptation.patch +168 -0
- data/share/gccxml-0.9/Sun/README +8 -0
- data/share/gccxml-0.9/Sun/adapt_headers.sh +24 -0
- data/share/gccxml-0.9/Sun/find_flags +69 -0
- data/share/gccxml-0.9/gccxml_config +2 -0
- data/share/gccxml-0.9/gccxml_find_flags +93 -0
- data/share/man/man1/gccxml.1 +246 -0
- metadata +324 -0
@@ -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,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}
|