gccxml_gem 0.9.1-x86-linux → 0.9.2-x86-linux

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,39 @@
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
1
+ diff -r -u old/algorithm new/algorithm
2
+ --- old/algorithm 2009-06-05 10:01:07.000000000 +0200
3
+ +++ new/algorithm 2009-06-05 10:01:43.000000000 +0200
4
+ @@ -880,6 +880,11 @@
5
+ RandomAccessIterator last, Pointer buffer,
6
+ Distance buffer_size, T*, Compare comp);
7
+
8
+ +#if !defined(__MINMAX_DEFINED)
9
+ + template <class T>
10
+ + inline const T& (min)(const T& a, const T& b);
11
+ +#endif
12
+ +
13
+ template <class RandomAccessIterator, class Pointer, class Distance, class T>
14
+ inline void __stable_sort (RandomAccessIterator first,
15
+ RandomAccessIterator last,
16
+ diff -r -u old/istream new/istream
17
+ --- old/istream 2009-06-05 10:01:07.000000000 +0200
18
+ +++ new/istream 2009-06-05 10:01:43.000000000 +0200
19
+ @@ -67,7 +67,7 @@
20
+
21
+ _EXPLICIT basic_istream(basic_streambuf<charT, traits> *sb);
22
+
23
+ - _EXPLICIT basic_istream(EmptyCtor) : basic_ios<charT, traits>(1) {}
24
+ + _EXPLICIT basic_istream(ios_base::EmptyCtor) : basic_ios<charT, traits>(1) {}
25
+ virtual ~basic_istream();
26
+
27
+ class sentry
28
+ @@ -307,7 +307,7 @@
29
+ }
30
+ else
31
+ {
32
+ - ostream_type* ost = stream.tie();
33
+ + basic_ostream<charT, traits>* ost = stream.tie();
34
+ if (ost && ost->rdbuf() != sb)
35
+ ost->flush();
36
+
5
37
  @@ -419,9 +419,11 @@
6
38
  const istream_iterator<T,charT,traits,Distance>& x,
7
39
  const istream_iterator<T,charT,traits,Distance>& y);
@@ -15,37 +47,62 @@ diff -r -u ./istream ../result/istream
15
47
  #endif
16
48
  public:
17
49
  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 */
50
+ diff -r -u old/ostream new/ostream
51
+ --- old/ostream 2009-06-05 10:01:07.000000000 +0200
52
+ +++ new/ostream 2009-06-05 10:01:43.000000000 +0200
53
+ @@ -88,7 +88,7 @@
54
+ typedef basic_ios<charT, traits> ios_type;
24
55
 
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) || ... */
56
+ _EXPLICIT basic_ostream(basic_streambuf<charT, traits> *sb);
57
+ - _EXPLICIT basic_ostream(EmptyCtor) : basic_ios<charT, traits>(1) {}
58
+ + _EXPLICIT basic_ostream(ios_base::EmptyCtor) : basic_ios<charT, traits>(1) {}
59
+ virtual ~basic_ostream();
36
60
 
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
61
+ class sentry {
62
+ @@ -97,8 +97,7 @@
63
+ sentry(basic_ostream<charT,traits>& stream)
64
+ : __stream(stream)
65
+ {
66
+ -
67
+ - streambuf_type* sb = stream.rdbuf();
68
+ + basic_streambuf<charT, traits>* sb = stream.rdbuf();
69
+ if ( sb ) {
70
+ stream.rdbuf()->buffer_mutex_.acquire();
71
+ }
72
+ diff -r -u old/rw/iterator new/rw/iterator
73
+ --- old/rw/iterator 2009-06-05 10:01:07.000000000 +0200
74
+ +++ new/rw/iterator 2009-06-05 10:01:43.000000000 +0200
75
+ @@ -426,10 +426,12 @@
76
+ friend inline difference_type (std::operator-) (const self& x, const self& y);
77
+ friend inline self (std::operator+) (difference_type n, const self& x);
78
+ #else
79
+ - friend inline bool operator== <> (const self& x, const self& y);
80
+ - friend inline bool operator< <> (const self& x, const self& y);
81
+ - friend inline difference_type operator- <> (const self& x, const self& y);
82
+ - friend inline self operator+ <> (difference_type n, const self& x);
83
+ +/* SMOSS 29/08/07 removing 'inline' from friend declarations */
84
+ + friend /*inline*/ bool operator== <> (const self& x, const self& y);
85
+ + friend /*inline*/ bool operator< <> (const self& x, const self& y);
86
+ + friend /*inline*/ difference_type operator- <> (const self& x, const self& y);
87
+ + friend /*inline*/ self operator+ <> (difference_type n, const self& x);
88
+ +/* END SMOSS 29/08/07 removing 'inline' from friend declarations */
89
+ #endif
90
+ protected:
91
+
92
+ @@ -581,7 +583,9 @@
93
+ typedef Reference reference;
94
+ typedef Pointer pointer;
95
+
96
+ - friend inline bool operator== <> (const self& x, const self& y);
97
+ +/* SMOSS 29/08/07 removing 'inline' from friend declarations */
98
+ + friend /*inline*/ bool operator== <> (const self& x, const self& y);
99
+ +/* END SMOSS 29/08/07 removing 'inline' from friend declarations */
100
+
101
+ protected:
102
+
103
+ diff -r -u old/streambuf new/streambuf
104
+ --- old/streambuf 2009-06-05 10:01:07.000000000 +0200
105
+ +++ new/streambuf 2009-06-05 10:01:43.000000000 +0200
49
106
  @@ -927,7 +927,10 @@
50
107
  * int_type snextc()
51
108
  * returns the next character
@@ -70,9 +127,9 @@ diff -r -u ./streambuf ../result/streambuf
70
127
 
71
128
  /*
72
129
  * 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
130
+ diff -r -u old/string new/string
131
+ --- old/string 2009-06-05 10:01:07.000000000 +0200
132
+ +++ new/string 2009-06-05 10:01:43.000000000 +0200
76
133
  @@ -797,7 +797,9 @@
77
134
  // Null string ref
78
135
  //
@@ -84,10 +141,9 @@ diff -r -u ./string ../result/string
84
141
  #endif
85
142
 
86
143
  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
144
+ diff -r -u old/typeinfo new/typeinfo
145
+ --- old/typeinfo 2009-06-05 10:01:07.000000000 +0200
146
+ +++ new/typeinfo 2009-06-05 10:01:43.000000000 +0200
91
147
  @@ -34,7 +34,8 @@
92
148
  // Implementation
93
149
  const void* __data;
@@ -98,71 +154,3 @@ diff -r -u ./typeinfo ../result/typeinfo
98
154
  };
99
155
 
100
156
  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,32 @@
1
+ #!/bin/sh
2
+
3
+ cd `dirname $0`
4
+
5
+ #########################################
6
+ # Patch STL Headers (Non-STLport)
7
+ #########################################
8
+
9
+ CC_INCLUDES=`../find_flags "$@" | perl -ne '($a) = m|-I([/a-zA-Z0-9\._-]+/include/CC)|o ; print "$a\n" if $a'`
10
+
11
+ mkdir -p rw
12
+
13
+ cp $CC_INCLUDES/typeinfo .
14
+ cp $CC_INCLUDES/Cstd/istream .
15
+ cp $CC_INCLUDES/Cstd/ostream .
16
+ cp $CC_INCLUDES/Cstd/streambuf .
17
+ cp $CC_INCLUDES/Cstd/string .
18
+ cp $CC_INCLUDES/Cstd/algorithm .
19
+ cp $CC_INCLUDES/Cstd/rw/iterator rw/iterator
20
+
21
+ gpatch -p1 < Cstd.patch
22
+
23
+ #########################################
24
+ # Patch the standard headers
25
+ #########################################
26
+
27
+ if [ `uname -r` = "5.10" ]
28
+ then
29
+ mkdir -p iso
30
+ cp /usr/include/iso/stdlib_iso.h iso
31
+ gpatch -p1 < std-5.10.patch
32
+ fi
@@ -0,0 +1,22 @@
1
+ diff -r -u old/iso/stdlib_iso.h new/iso/stdlib_iso.h
2
+ --- old/iso/stdlib_iso.h Wed May 20 12:02:31 2009
3
+ +++ new/iso/stdlib_iso.h Wed May 20 12:01:23 2009
4
+ @@ -110,8 +110,10 @@
5
+ extern double atof(const char *);
6
+ extern int atoi(const char *);
7
+ extern long int atol(const char *);
8
+ +/* SMOSS 29/08/07
9
+ extern void *bsearch(const void *, const void *, size_t, size_t,
10
+ int (*)(const void *, const void *));
11
+ +*/
12
+ #if __cplusplus >= 199711L
13
+ extern "C++" {
14
+ void *bsearch(const void *, const void *, size_t, size_t,
15
+ @@ -131,7 +133,6 @@
16
+ extern size_t mbstowcs(wchar_t *_RESTRICT_KYWD, const char *_RESTRICT_KYWD,
17
+ size_t);
18
+ extern int mbtowc(wchar_t *_RESTRICT_KYWD, const char *_RESTRICT_KYWD, size_t);
19
+ -extern void qsort(void *, size_t, size_t, int (*)(const void *, const void *));
20
+ #if __cplusplus >= 199711L
21
+ extern "C++" {
22
+ void qsort(void *, size_t, size_t, int (*)(const void *, const void *));
@@ -1,8 +1,8 @@
1
1
  Sun CC support contributed by Pierre-Olivier Gaillard
2
2
 
3
- This is a small README file regarding gccxml support for Solaris and Sun CC 5.8.
3
+ This is a small README file regarding gccxml support for Solaris and Sun CC.
4
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
5
+ The Sun CC 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
+ ./<CC-version>/adapt_headers.sh
7
7
 
8
- This will produce corrected header files in the 5.8 directory.
8
+ This will produce corrected header files in the corresponding directory.
@@ -4,8 +4,8 @@
4
4
  # Program: GCC-XML
5
5
  # Module: $RCSfile: find_flags,v $
6
6
  # Language: C++
7
- # Date: $Date: 2007/11/28 19:52:06 $
8
- # Version: $Revision: 1.1 $
7
+ # Date: $Date: 2009-06-09 18:18:01 $
8
+ # Version: $Revision: 1.2 $
9
9
  #
10
10
  # Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
11
11
  # See Copyright.txt for details.
@@ -15,7 +15,8 @@
15
15
  # PURPOSE. See the above copyright notices for more information.
16
16
  #
17
17
  #=============================================================================
18
- # Find the CC executable name.
18
+
19
+ # Find the compiler executable name.
19
20
  if test "x$1" = "x" ; then
20
21
  if test "x${CXX}" = "x" ; then
21
22
  CXX=CC
@@ -26,44 +27,25 @@ else
26
27
  CXXFLAGS="$@"
27
28
  fi
28
29
 
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"
30
+ # Find the compiler version
31
+ CXX_VERSION=`${CXX} -V 2>&1 | awk '{print $4}'`
32
+ [ -z "${CXX_VERSION}" ] && echo "Could not find compiler version" && exit 1
53
33
 
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`
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`
58
38
 
59
- # Find CC version
60
- CC_VERSION=`${CXX} -V 2>&1 | awk '{print $4}'`
39
+ # Compute the version-specific support dir
40
+ CXX_SUPPORT_DIR="$SCRIPT_DIR/$CXX_VERSION"
61
41
 
62
- # Use hacked headers for CC 5.8
63
- if [ $CC_VERSION = 5.8 ]; then
64
- INCLUDES="-iwrapper\"$SELFPATH/5.8\" $INCLUDES"
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"
65
48
  fi
66
49
 
67
- # Format and print out the options.
68
- OPTIONS="$MACROS $INCLUDES $SPECIAL"
50
+ # Print out the options
69
51
  echo $OPTIONS
@@ -0,0 +1,42 @@
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:01 $
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
+ GCCXML_PID="$$"
20
+ cat > "/tmp/gccxml_identify_compiler_args$GCCXML_PID.cc" <<!
21
+ #include <>
22
+ !
23
+
24
+ # Find the macro definition options.
25
+ MACROS=`${CXX} ${CXXFLAGS} /tmp/gccxml_identify_compiler_args$GCCXML_PID.cc -E -xdumpmacros=defs 2>&1 |
26
+ awk '{ if ($1 ~ /#define/) printf("-D%s=%s %s %s ",$2,$3,$4,$5) }'`
27
+ MACROS="-D__cplusplus=199711L -D__STDC__ -D_REENTRANT $MACROS"
28
+
29
+ # Find the include path options.
30
+ INCLUDES="`echo '' | ${CXX} -v -E ${CXXFLAGS} ~ 2>&1 | perl -ne 'print m|(-I/[/a-zA-Z0-9\._-]+\s*)|og'`"
31
+ INCLUDES="$INCLUDES -I/usr/include"
32
+
33
+ # Use hacked headers
34
+ if [ -d "$CXX_SUPPORT_DIR" ]; then
35
+ INCLUDES="-iwrapper\"$CXX_SUPPORT_DIR\" $INCLUDES"
36
+ fi
37
+
38
+ # Cleanup
39
+ rm -rf "/tmp/gccxml_identify_compiler_args$GCCXML_PID.cc"
40
+
41
+ # Format the options.
42
+ OPTIONS="$MACROS $INCLUDES $SPECIAL"
@@ -1,2 +1,2 @@
1
1
  GCCXML_COMPILER="/usr/bin/c++"
2
- GCCXML_CXXFLAGS=" "
2
+ GCCXML_CXXFLAGS=""
@@ -0,0 +1,13 @@
1
+ #if defined(__GNUC__)
2
+ GCCXML_SUPPORT="GCC"
3
+ #elif defined(__sgi) && defined(_COMPILER_VERSION)
4
+ GCCXML_SUPPORT="MIPSpro"
5
+ #elif defined(__INTEL_COMPILER) && (__INTEL_COMPILER >= 700)
6
+ GCCXML_SUPPORT="Intel"
7
+ #elif defined(__SUNPRO_CC)
8
+ GCCXML_SUPPORT="Sun"
9
+ #elif defined(__IBMCPP__)
10
+ GCCXML_SUPPORT="IBM"
11
+ #else
12
+ GCCXML_SUPPORT=""
13
+ #endif
@@ -1,4 +1,4 @@
1
- .TH GCC-XML 1 "May 11, 2008" "GCC-XML 0.9.0"
1
+ .TH GCC-XML 1 "October 11, 2009" "GCC-XML 0.9.0"
2
2
  .SH NAME
3
3
  .TP
4
4
  .B gccxml