gccxml_gem 0.9.1-x86-cygwin → 0.9.2-x86-cygwin
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +5 -1
- data/bin/gccxml.exe +0 -0
- data/bin/gccxml_cc1plus +0 -0
- data/bin/gccxml_cc1plus.exe +0 -0
- data/gccxml.rb +5 -5
- data/share/doc/gccxml-0.9/Copyright.txt +0 -0
- data/share/doc/gccxml-0.9/gccxml.html +0 -0
- data/share/doc/gccxml-0.9/gccxml.txt +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/algorithm +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/algorithm.h +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/bitset +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/bitset.h +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/cctype +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/cfloat +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/climits +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/cmath +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/complex +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/complex.h +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/cstddef +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/cstdio +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/cstdlib +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/cstring +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/cstring.h +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/ctime +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/cwchar +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/cwctype +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/deque +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/deque.h +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/exception +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/exception.h +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/fstream +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/fstream.h +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/function +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/function.h +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/functional +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/gccxml_typeinfo.h +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/iomanip +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/iomanip.h +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/ios +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/ios.h +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/iosfwd +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/iosfwd.h +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/iostream +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/iostream.h +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/istream +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/istream.h +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/iterator +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/iterator.h +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/limits +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/limits.h +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/list +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/list.h +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/locale +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/locale.h +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/map +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/map.h +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/memory +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/memory.h +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/new +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/new.h +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/numeric +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/numeric.h +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/ostream +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/ostream.h +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/queue +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/queue.h +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/codecvt +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/collate +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/ctype +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/iosbase +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/iotraits +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/iterator +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/lochelp +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/locimpl +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/locvector +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/messages +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/money +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/numbrw +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/numeral +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/rwdispatch.h +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/rwlocale +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/rwstderr_macros.h +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/string_ref +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/time +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/traits +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/tree +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/usefacet +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/valimp +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/rw/vendor +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/set +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/set.h +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/sstream +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/sstream.h +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/stack +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/stack.h +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/stdexcept +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/stdexcept.h +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/streambuf +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/streambuf.h +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/string +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/string.h +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/strstream +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/strstream.h +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/typeinfo +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/typeinfo.h +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/utility +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/utility.h +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/valarray +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/valarray.h +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/vector +0 -0
- data/share/gccxml-0.9/Borland/5.5/Wrappers/vector.h +0 -0
- data/share/gccxml-0.9/Borland/5.5/except.h +0 -0
- data/share/gccxml-0.9/Borland/5.5/gccxml_fstream.h +0 -0
- data/share/gccxml-0.9/Borland/5.5/gccxml_new.h +0 -0
- data/share/gccxml-0.9/Borland/5.5/gccxml_valarray.h +0 -0
- data/share/gccxml-0.9/Borland/5.5/gccxml_vector.h +0 -0
- data/share/gccxml-0.9/Borland/5.5/io.h +0 -0
- data/share/gccxml-0.9/Borland/5.5/oaidl.h +0 -0
- data/share/gccxml-0.9/Borland/5.5/propidl.h +0 -0
- data/share/gccxml-0.9/Borland/5.5/rw/locimpl.h +0 -0
- data/share/gccxml-0.9/Borland/5.5/rw/rwlocale.h +0 -0
- data/share/gccxml-0.9/Borland/5.5/stdarg.h +0 -0
- data/share/gccxml-0.9/Borland/5.5/valarray.cc +0 -0
- data/share/gccxml-0.9/GCC/2.95/algorithm +0 -0
- data/share/gccxml-0.9/GCC/2.95/bitset +0 -0
- data/share/gccxml-0.9/GCC/2.95/cctype +0 -0
- data/share/gccxml-0.9/GCC/2.95/clocale +0 -0
- data/share/gccxml-0.9/GCC/2.95/cmath +0 -0
- data/share/gccxml-0.9/GCC/2.95/complex +0 -0
- data/share/gccxml-0.9/GCC/2.95/csetjmp +0 -0
- data/share/gccxml-0.9/GCC/2.95/csignal +0 -0
- data/share/gccxml-0.9/GCC/2.95/cstdarg +0 -0
- data/share/gccxml-0.9/GCC/2.95/cstddef +0 -0
- data/share/gccxml-0.9/GCC/2.95/cstdio +0 -0
- data/share/gccxml-0.9/GCC/2.95/cstdlib +0 -0
- data/share/gccxml-0.9/GCC/2.95/cstring +0 -0
- data/share/gccxml-0.9/GCC/2.95/ctime +0 -0
- data/share/gccxml-0.9/GCC/2.95/cwchar +0 -0
- data/share/gccxml-0.9/GCC/2.95/cwctype +0 -0
- data/share/gccxml-0.9/GCC/2.95/deque +0 -0
- data/share/gccxml-0.9/GCC/2.95/exception +0 -0
- data/share/gccxml-0.9/GCC/2.95/fstream +0 -0
- data/share/gccxml-0.9/GCC/2.95/functional +0 -0
- data/share/gccxml-0.9/GCC/2.95/gccxml_bitset +0 -0
- data/share/gccxml-0.9/GCC/2.95/iomanip +0 -0
- data/share/gccxml-0.9/GCC/2.95/iosfwd +0 -0
- data/share/gccxml-0.9/GCC/2.95/iostream +0 -0
- data/share/gccxml-0.9/GCC/2.95/iterator +0 -0
- data/share/gccxml-0.9/GCC/2.95/list +0 -0
- data/share/gccxml-0.9/GCC/2.95/map +0 -0
- data/share/gccxml-0.9/GCC/2.95/memory +0 -0
- data/share/gccxml-0.9/GCC/2.95/new +0 -0
- data/share/gccxml-0.9/GCC/2.95/numeric +0 -0
- data/share/gccxml-0.9/GCC/2.95/pthread.h +0 -0
- data/share/gccxml-0.9/GCC/2.95/queue +0 -0
- data/share/gccxml-0.9/GCC/2.95/set +0 -0
- data/share/gccxml-0.9/GCC/2.95/sstream +0 -0
- data/share/gccxml-0.9/GCC/2.95/stack +0 -0
- data/share/gccxml-0.9/GCC/2.95/std/bastring.cc +0 -0
- data/share/gccxml-0.9/GCC/2.95/std/complext.h +0 -0
- data/share/gccxml-0.9/GCC/2.95/std/dcomplex.h +0 -0
- data/share/gccxml-0.9/GCC/2.95/std/fcomplex.h +0 -0
- data/share/gccxml-0.9/GCC/2.95/std/gslice_array.h +0 -0
- data/share/gccxml-0.9/GCC/2.95/std/indirect_array.h +0 -0
- data/share/gccxml-0.9/GCC/2.95/std/ldcomplex.h +0 -0
- data/share/gccxml-0.9/GCC/2.95/std/mask_array.h +0 -0
- data/share/gccxml-0.9/GCC/2.95/std/slice_array.h +0 -0
- data/share/gccxml-0.9/GCC/2.95/std/std_valarray.h +0 -0
- data/share/gccxml-0.9/GCC/2.95/std/straits.h +0 -0
- data/share/gccxml-0.9/GCC/2.95/std/valarray_meta.h +0 -0
- data/share/gccxml-0.9/GCC/2.95/stdexcept +0 -0
- data/share/gccxml-0.9/GCC/2.95/stl_alloc.h +0 -0
- data/share/gccxml-0.9/GCC/2.95/stl_bvector.h +0 -0
- data/share/gccxml-0.9/GCC/2.95/stl_deque.h +0 -0
- data/share/gccxml-0.9/GCC/2.95/stl_list.h +0 -0
- data/share/gccxml-0.9/GCC/2.95/stl_tree.h +0 -0
- data/share/gccxml-0.9/GCC/2.95/stl_vector.h +0 -0
- data/share/gccxml-0.9/GCC/2.95/string +0 -0
- data/share/gccxml-0.9/GCC/2.95/strstream +0 -0
- data/share/gccxml-0.9/GCC/2.95/typeinfo +0 -0
- data/share/gccxml-0.9/GCC/2.95/utility +0 -0
- data/share/gccxml-0.9/GCC/2.95/valarray +0 -0
- data/share/gccxml-0.9/GCC/2.95/vector +0 -0
- data/share/gccxml-0.9/GCC/2.96/sstream +0 -0
- data/share/gccxml-0.9/GCC/3.0/pthread.h +0 -0
- data/share/gccxml-0.9/GCC/3.1/pthread.h +0 -0
- data/share/gccxml-0.9/GCC/3.2/bits/fstream.tcc +0 -0
- data/share/gccxml-0.9/GCC/3.2/bits/gthr-default.h +581 -0
- data/share/gccxml-0.9/GCC/3.2/bits/istream.tcc +0 -0
- data/share/gccxml-0.9/GCC/3.2/bits/locale_facets.h +0 -0
- data/share/gccxml-0.9/GCC/3.2/bits/locale_facets.tcc +0 -0
- data/share/gccxml-0.9/GCC/3.2/bits/messages_members.h +0 -0
- data/share/gccxml-0.9/GCC/3.2/bits/ostream.tcc +0 -0
- data/share/gccxml-0.9/GCC/3.2/bits/sstream.tcc +0 -0
- data/share/gccxml-0.9/GCC/3.2/bits/stl_deque.h +0 -0
- data/share/gccxml-0.9/GCC/3.2/bits/stl_list.h +0 -0
- data/share/gccxml-0.9/GCC/3.2/bits/stl_tree.h +0 -0
- data/share/gccxml-0.9/GCC/3.2/bits/stl_vector.h +0 -0
- data/share/gccxml-0.9/GCC/3.2/bits/valarray_meta.h +0 -0
- data/share/gccxml-0.9/GCC/3.2/fstream +0 -0
- data/share/gccxml-0.9/GCC/3.2/pthread.h +0 -0
- data/share/gccxml-0.9/GCC/3.2/sstream +0 -0
- data/share/gccxml-0.9/GCC/3.3/bits/fstream.tcc +0 -0
- data/share/gccxml-0.9/GCC/3.3/bits/list.tcc +0 -0
- data/share/gccxml-0.9/GCC/3.3/bits/locale_facets.h +0 -0
- data/share/gccxml-0.9/GCC/3.3/bits/messages_members.h +0 -0
- data/share/gccxml-0.9/GCC/3.3/bits/sstream.tcc +0 -0
- data/share/gccxml-0.9/GCC/3.3/bits/stl_deque.h +0 -0
- data/share/gccxml-0.9/GCC/3.3/bits/stl_list.h +0 -0
- data/share/gccxml-0.9/GCC/3.3/bits/stl_tree.h +0 -0
- data/share/gccxml-0.9/GCC/3.3/bits/stl_vector.h +0 -0
- data/share/gccxml-0.9/GCC/3.3/bits/valarray_meta.h +0 -0
- data/share/gccxml-0.9/GCC/3.3/fstream +0 -0
- data/share/gccxml-0.9/GCC/3.3/gccxml_builtins.h +0 -0
- data/share/gccxml-0.9/GCC/3.3/sstream +0 -0
- data/share/gccxml-0.9/GCC/3.4/bits/gthr-default.h +664 -0
- data/share/gccxml-0.9/GCC/3.4/gccxml_builtins.h +0 -0
- data/share/gccxml-0.9/GCC/4.0/gccxml_builtins.h +0 -0
- data/share/gccxml-0.9/GCC/4.1/bits/gthr-default.h +0 -0
- data/share/gccxml-0.9/GCC/4.1/gccxml_builtins.h +0 -0
- data/share/gccxml-0.9/GCC/4.2/gccxml_builtins.h +0 -0
- data/share/gccxml-0.9/GCC/4.3/gccxml_builtins.h +182 -0
- data/share/gccxml-0.9/IBM/8.0/adapt_headers.sh +34 -0
- data/share/gccxml-0.9/IBM/8.0/stdlib.h.patch +27 -0
- data/share/gccxml-0.9/IBM/8.0/xstring.patch +19 -0
- data/share/gccxml-0.9/IBM/README +8 -0
- data/share/gccxml-0.9/IBM/find_flags +51 -0
- data/share/gccxml-0.9/IBM/find_flags_common +48 -0
- data/share/gccxml-0.9/Intel/find_flags +1 -1
- data/share/gccxml-0.9/Intel/pthread.h +0 -0
- data/share/gccxml-0.9/MIPSpro/7.3/exception +0 -0
- data/share/gccxml-0.9/MIPSpro/7.3/gccxml_mpro_internals.h +0 -0
- data/share/gccxml-0.9/MIPSpro/7.3/iomanip +0 -0
- data/share/gccxml-0.9/MIPSpro/7.3/ostream +0 -0
- data/share/gccxml-0.9/MIPSpro/7.3/stddef.h +0 -0
- data/share/gccxml-0.9/MIPSpro/7.3/stl_config.h +0 -0
- data/share/gccxml-0.9/MIPSpro/7.3/stl_locale.h +0 -0
- data/share/gccxml-0.9/MIPSpro/7.3/stl_monetary.h +0 -0
- data/share/gccxml-0.9/MIPSpro/7.3/stl_numeric_facets.h +0 -0
- data/share/gccxml-0.9/MIPSpro/7.3/stl_threads.h +0 -0
- data/share/gccxml-0.9/MIPSpro/7.3/string +0 -0
- data/share/gccxml-0.9/MIPSpro/find_flags +13 -80
- data/share/gccxml-0.9/MIPSpro/mipspro_defs.cxx +63 -0
- data/share/gccxml-0.9/Sun/5.8/{adaptation.patch → Cstd.patch} +96 -108
- data/share/gccxml-0.9/Sun/5.8/adapt_headers.sh +32 -0
- data/share/gccxml-0.9/Sun/5.8/std-5.10.patch +22 -0
- data/share/gccxml-0.9/Sun/README +4 -4
- data/share/gccxml-0.9/Sun/find_flags +20 -38
- data/share/gccxml-0.9/Sun/find_flags_common +42 -0
- data/share/gccxml-0.9/gccxml_config +1 -1
- data/share/gccxml-0.9/gccxml_identify_compiler.cc +13 -0
- data/share/man/man1/gccxml.1 +1 -1
- metadata +28 -42
- data/share/gccxml-0.9/GCC/find_flags +0 -105
- data/share/gccxml-0.9/Sun/adapt_headers.sh +0 -24
- data/share/gccxml-0.9/gccxml_find_flags +0 -93
@@ -1,105 +0,0 @@
|
|
1
|
-
#!/bin/sh
|
2
|
-
#=============================================================================
|
3
|
-
#
|
4
|
-
# Program: GCC-XML
|
5
|
-
# Module: $RCSfile: find_flags,v $
|
6
|
-
# Language: C++
|
7
|
-
# Date: $Date: 2008-03-19 21:14:33 $
|
8
|
-
# Version: $Revision: 1.21 $
|
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 '/^[^ \/].*$/ { if (f) { printf("\n"); exit } }
|
44
|
-
/^[ ]*\/[^ ]*$/ { if (f) { printf("-I%s ",$0) } }
|
45
|
-
/\#include <\.\.\..*$/ {f=1} ' - |
|
46
|
-
sed 's/^-I /-I/;s/ -I / -I/g'
|
47
|
-
`
|
48
|
-
|
49
|
-
# The support headers are located where this script is.
|
50
|
-
SELFPATH=`echo $0 | sed -n '/\//{s/\/find_flags//;p;}'`
|
51
|
-
if test "x$SELFPATH" = "x" ; then SELFPATH="." ; fi
|
52
|
-
SELFPATH=`cd "$SELFPATH" ; pwd`
|
53
|
-
|
54
|
-
# Determine the major version number.
|
55
|
-
MAJOR_VERSION=`
|
56
|
-
echo "__GNUC__" | ${CXX} -v -x c++ -E ${CXXFLAGS} - 2>/dev/null |
|
57
|
-
sed -n '/^[0-9]/{s/[^0-9]//g;p;}'`
|
58
|
-
|
59
|
-
MINOR_VERSION=`
|
60
|
-
echo "__GNUC_MINOR__" | ${CXX} -v -x c++ -E ${CXXFLAGS} - 2>/dev/null |
|
61
|
-
sed -n '/^[0-9]/{s/[^0-9]//g;p;}'`
|
62
|
-
|
63
|
-
# hack to handle bad gcc 4.0 on RedHat
|
64
|
-
if [ "$MAJOR_VERSION" = 4 ]; then
|
65
|
-
if echo "$INCLUDES" | grep "c++/3\.4" > /dev/null 2>&1; then
|
66
|
-
MAJOR_VERSION=3
|
67
|
-
MINOR_VERSION=4
|
68
|
-
fi
|
69
|
-
fi
|
70
|
-
|
71
|
-
# For GCC versions before 3, some special options are needed.
|
72
|
-
if [ "$MAJOR_VERSION" -lt 3 ]; then
|
73
|
-
INCLUDES="-iwrapper\"$SELFPATH/2.95\" $INCLUDES"
|
74
|
-
if [ "$MINOR_VERSION" = 96 ]; then
|
75
|
-
INCLUDES="-iwrapper\"$SELFPATH/2.96\" $INCLUDES"
|
76
|
-
fi
|
77
|
-
elif [ "$MAJOR_VERSION" = 4 -a "$MINOR_VERSION" -ge 3 ]; then
|
78
|
-
INCLUDES="-iwrapper\"$SELFPATH/4.3\" $INCLUDES"
|
79
|
-
SPECIAL="-include \"gccxml_builtins.h\""
|
80
|
-
elif [ "$MAJOR_VERSION" = 4 -a "$MINOR_VERSION" -ge 2 ]; then
|
81
|
-
INCLUDES="-iwrapper\"$SELFPATH/4.2\" $INCLUDES"
|
82
|
-
SPECIAL="-include \"gccxml_builtins.h\""
|
83
|
-
elif [ "$MAJOR_VERSION" = 4 -a "$MINOR_VERSION" -ge 1 ]; then
|
84
|
-
INCLUDES="-iwrapper\"$SELFPATH/4.1\" $INCLUDES"
|
85
|
-
SPECIAL="-include \"gccxml_builtins.h\""
|
86
|
-
elif [ "$MAJOR_VERSION" = 4 -a "$MINOR_VERSION" -ge 0 ]; then
|
87
|
-
INCLUDES="-iwrapper\"$SELFPATH/4.0\" $INCLUDES"
|
88
|
-
SPECIAL="-include \"gccxml_builtins.h\""
|
89
|
-
elif [ "$MAJOR_VERSION" = 3 -a "$MINOR_VERSION" -ge 4 ]; then
|
90
|
-
INCLUDES="-iwrapper\"$SELFPATH/3.4\" $INCLUDES"
|
91
|
-
SPECIAL="-include \"gccxml_builtins.h\""
|
92
|
-
elif [ "$MAJOR_VERSION" = 3 -a "$MINOR_VERSION" = 3 ]; then
|
93
|
-
INCLUDES="-iwrapper\"$SELFPATH/3.3\" $INCLUDES"
|
94
|
-
SPECIAL="-include \"gccxml_builtins.h\""
|
95
|
-
elif [ "$MAJOR_VERSION" = 3 -a "$MINOR_VERSION" = 2 ]; then
|
96
|
-
INCLUDES="-iwrapper\"$SELFPATH/3.2\" $INCLUDES"
|
97
|
-
elif [ "$MAJOR_VERSION" = 3 -a "$MINOR_VERSION" = 1 ]; then
|
98
|
-
INCLUDES="-iwrapper\"$SELFPATH/3.1\" $INCLUDES"
|
99
|
-
elif [ "$MAJOR_VERSION" = 3 -a "$MINOR_VERSION" = 0 ]; then
|
100
|
-
INCLUDES="-iwrapper\"$SELFPATH/3.0\" $INCLUDES"
|
101
|
-
fi
|
102
|
-
|
103
|
-
# Format and print out the options.
|
104
|
-
OPTIONS="$MACROS $INCLUDES $SPECIAL"
|
105
|
-
echo $OPTIONS
|
@@ -1,24 +0,0 @@
|
|
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
|
@@ -1,93 +0,0 @@
|
|
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}
|