gccxml_gem 0.9.1-x86-darwin-9 → 0.9.2-x86-darwin-9
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +5 -1
- data/bin/gccxml +0 -0
- data/bin/gccxml_cc1plus +0 -0
- data/gccxml.rb +5 -5
- data/share/gccxml-0.9/GCC/3.2/bits/gthr-default.h +581 -0
- data/share/gccxml-0.9/GCC/3.4/bits/gthr-default.h +664 -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/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 +27 -37
- 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}
|