Skip to Content.
Sympa Menu

sm-spell-submit - [SM-Spell-Submit]Re: [SM-Discuss] gcc 3.2.1

sm-spell-submit AT lists.ibiblio.org

Subject: Submit list for new spells

List archive

Chronological Thread  
  • From: Sergey A Lipnevich <sergeyli AT pisem.net>
  • To: Jeremy Kolb <jkolb AT brandeis.edu>, "Julian v. Bock" <julian AT openit.de>
  • Cc: sm-spell-submit <sm-spell-submit AT lists.ibiblio.org>
  • Subject: [SM-Spell-Submit]Re: [SM-Discuss] gcc 3.2.1
  • Date: Wed, 20 Nov 2002 09:39:01 -0500

Here's the patch for the spell. I've compiled it yesterday with glibc 2.3.1, everything seems to be alright.
BTW, my gcc2 quits compiling because it somehow gets passed GCC 3-specific parameters, as it did even before GCC 3.2.1 upgrade:

cc1: Invalid option `mmx'
cc1: Invalid option `fpmath=sse'
cc1: Invalid option `sse'
cc1: bad value (pentium3) for -march= switch
make[2]: *** [gencheck.o] Error 1
make[2]: Leaving directory `/usr/src/gcc-2.95.3.bld/gcc'
make[1]: *** [bootstrap] Error 2
make[1]: Leaving directory `/usr/src/gcc-2.95.3.bld/gcc'
make: *** [bootstrap] Error 2

Jeremy Kolb wrote:

apparently gcc 3.2.1 is released, it's mostly bug fixes. i noticed this here, dunno if it's been fixed or not, can't really tell in the list:

8146 (i686 only) gcc 3.2 miscompiles gcc 2.95.3

also it mentions a problem compiling mozilla with pentium4 opts
using gcc 3.2. anyways here are the release notes:

http://gcc.gnu.org/ml/gcc/2002-11/msg00445.html

Jeremy


_______________________________________________
SM-Discuss mailing list
SM-Discuss AT lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/sm-discuss

Index: BUILD
===================================================================
RCS file: /cvsroot/sourcemage/sourcemage/grimoire/devel/gcc/BUILD,v
retrieving revision 1.7
diff -u -r1.7 BUILD
--- BUILD 2002/10/26 01:09:19 1.7
+++ BUILD 2002/11/20 14:32:25
@@ -1,7 +1,5 @@
(

- patch -p1 < $SCRIPT_DIRECTORY/gcc-3.2.patch &&
-
cd $SOURCE_DIRECTORY.bld &&

$SOURCE_DIRECTORY/configure \
Index: DETAILS
===================================================================
RCS file: /cvsroot/sourcemage/sourcemage/grimoire/devel/gcc/DETAILS,v
retrieving revision 1.6
diff -u -r1.6 DETAILS
--- DETAILS 2002/10/04 21:31:22 1.6
+++ DETAILS 2002/11/20 14:32:25
@@ -1,16 +1,16 @@
SPELL=gcc
- VERSION=3.2
+ VERSION=3.2.1
SOURCE=$SPELL-$VERSION.tar.gz
SOURCE_DIRECTORY=$BUILD_DIRECTORY/$SPELL-$VERSION
SOURCE_URL[0]=$GNU_URL/$SPELL/$SOURCE
SOURCE_URL[1]=ftp://ftp.gnu.org/pub/gnu/$SPELL/$SOURCE
- MD5[0]=5e0ba24c0d32104d37f95f76f341962c
+ MD5[0]='c4031cdf83798e36d01a99c7e2ccd03b'
LICENSE[0]=GPL
- WEB_SITE=http://gcc.gnu.org
+ WEB_SITE=http://gcc.gnu.org/
ENTERED=20020525
UPDATED=20020525
MAINTAINER=julian AT wongr.net
- SHORT="gcc is the GNU compiler collection."
+ SHORT="GCC is the GNU Compiler Collection"

cat << EOF
gcc - GNU Compiler Collection.
Index: HISTORY
===================================================================
RCS file: /cvsroot/sourcemage/sourcemage/grimoire/devel/gcc/HISTORY,v
retrieving revision 1.7
diff -u -r1.7 HISTORY
--- HISTORY 2002/10/26 01:09:19 1.7
+++ HISTORY 2002/11/20 14:32:25
@@ -1,3 +1,9 @@
+2002-11-19 Sergey Lipnevich <sergeyli AT pisem.net>
+
+ * DETAILS: Upgrade to 3.2.1.
+ * Removed a patch for 3.2 to coexist with glibc 2.3.
+ * Release notes are here:
http://gcc.gnu.org/ml/gcc/2002-11/msg00445.html.
+
2002-10-26 Julian v. Bock <julian AT wongr.net>

* BUILD: unset LD_PRELOAD before make install because of
problems
Index: gcc-3.2.patch
===================================================================
RCS file: gcc-3.2.patch
diff -N gcc-3.2.patch
--- /tmp/cvsEdDwzA Wed Nov 20 06:32:25 2002
+++ /dev/null Sun Nov 11 06:49:59 2001
@@ -1,237 +0,0 @@
-diff -ruN gcc-3.2/libstdc++-v3/config/locale/gnu/c_locale.cc
gcc-3.2.fixed/libstdc++-v3/config/locale/gnu/c_locale.cc
---- gcc-3.2/libstdc++-v3/config/locale/gnu/c_locale.cc 2002-04-19
09:59:03.000000000 +0200
-+++ gcc-3.2.fixed/libstdc++-v3/config/locale/gnu/c_locale.cc 2002-10-14
04:30:58.000000000 +0200
-@@ -39,6 +39,17 @@
-
- namespace std
- {
-+ extern "C" __typeof (strtol_l) __strtol_l;
-+ extern "C" __typeof (strtoul_l) __strtoul_l;
-+ extern "C" __typeof (strtoll_l) __strtoll_l;
-+ extern "C" __typeof (strtoull_l) __strtoull_l;
-+ extern "C" __typeof (strtof_l) __strtof_l;
-+ extern "C" __typeof (strtod_l) __strtod_l;
-+ extern "C" __typeof (strtold_l) __strtold_l;
-+ extern "C" __typeof (newlocale) __newlocale;
-+ extern "C" __typeof (freelocale) __freelocale;
-+ extern "C" __typeof (duplocale) __duplocale;
-+
- template<>
- void
- __convert_to_v(const char* __s, long& __v, ios_base::iostate& __err,
-diff -ruN gcc-3.2/libstdc++-v3/config/locale/gnu/collate_members.cc
gcc-3.2.fixed/libstdc++-v3/config/locale/gnu/collate_members.cc
---- gcc-3.2/libstdc++-v3/config/locale/gnu/collate_members.cc 2002-04-19
09:59:03.000000000 +0200
-+++ gcc-3.2.fixed/libstdc++-v3/config/locale/gnu/collate_members.cc
2002-10-14 04:30:58.000000000 +0200
-@@ -37,6 +37,11 @@
-
- namespace std
- {
-+ extern "C" __typeof (strcoll_l) __strcoll_l;
-+ extern "C" __typeof (strxfrm_l) __strxfrm_l;
-+ extern "C" __typeof (wcscoll_l) __wcscoll_l;
-+ extern "C" __typeof (wcsxfrm_l) __wcsxfrm_l;
-+
- // These are basically extensions to char_traits, and perhaps should
- // be put there instead of here.
- template<>
-diff -ruN gcc-3.2/libstdc++-v3/config/locale/gnu/ctype_members.cc
gcc-3.2.fixed/libstdc++-v3/config/locale/gnu/ctype_members.cc
---- gcc-3.2/libstdc++-v3/config/locale/gnu/ctype_members.cc 2002-05-24
18:15:25.000000000 +0200
-+++ gcc-3.2.fixed/libstdc++-v3/config/locale/gnu/ctype_members.cc
2002-10-14 04:30:58.000000000 +0200
-@@ -37,6 +37,11 @@
-
- namespace std
- {
-+ extern "C" __typeof (wctype_l) __wctype_l;
-+ extern "C" __typeof (towupper_l) __towupper_l;
-+ extern "C" __typeof (towlower_l) __towlower_l;
-+ extern "C" __typeof (iswctype_l) __iswctype_l;
-+
- // NB: The other ctype<char> specializations are in src/locale.cc and
- // various /config/os/* files.
- template<>
-diff -ruN gcc-3.2/libstdc++-v3/config/locale/gnu/messages_members.cc
gcc-3.2.fixed/libstdc++-v3/config/locale/gnu/messages_members.cc
---- gcc-3.2/libstdc++-v3/config/locale/gnu/messages_members.cc 2002-05-19
00:00:14.000000000 +0200
-+++ gcc-3.2.fixed/libstdc++-v3/config/locale/gnu/messages_members.cc
2002-10-14 04:30:58.000000000 +0200
-@@ -37,6 +37,7 @@
-
- namespace std
- {
-+ extern "C" __typeof (uselocale) __uselocale;
- // Specializations.
- template<>
- string
-diff -ruN gcc-3.2/libstdc++-v3/config/locale/gnu/messages_members.h
gcc-3.2.fixed/libstdc++-v3/config/locale/gnu/messages_members.h
---- gcc-3.2/libstdc++-v3/config/locale/gnu/messages_members.h 2002-05-19
00:00:14.000000000 +0200
-+++ gcc-3.2.fixed/libstdc++-v3/config/locale/gnu/messages_members.h
2002-10-14 04:30:58.000000000 +0200
-@@ -33,6 +33,8 @@
-
- // Written by Benjamin Kosnik <bkoz AT redhat.com>
-
-+ extern "C" __typeof (uselocale) __uselocale;
-+
- // Non-virtual member functions.
- template<typename _CharT>
- typename messages<_CharT>::catalog
-diff -ruN gcc-3.2/libstdc++-v3/config/locale/gnu/monetary_members.cc
gcc-3.2.fixed/libstdc++-v3/config/locale/gnu/monetary_members.cc
---- gcc-3.2/libstdc++-v3/config/locale/gnu/monetary_members.cc 2002-07-27
01:23:42.000000000 +0200
-+++ gcc-3.2.fixed/libstdc++-v3/config/locale/gnu/monetary_members.cc
2002-10-14 04:30:58.000000000 +0200
-@@ -37,6 +37,8 @@
-
- namespace std
- {
-+ extern "C" __typeof (nl_langinfo_l) __nl_langinfo_l;
-+
- // Construct and return valid pattern consisting of some combination of:
- // space none symbol sign value
- money_base::pattern
-diff -ruN gcc-3.2/libstdc++-v3/config/locale/gnu/numeric_members.cc
gcc-3.2.fixed/libstdc++-v3/config/locale/gnu/numeric_members.cc
---- gcc-3.2/libstdc++-v3/config/locale/gnu/numeric_members.cc 2002-04-19
09:59:03.000000000 +0200
-+++ gcc-3.2.fixed/libstdc++-v3/config/locale/gnu/numeric_members.cc
2002-10-14 04:30:58.000000000 +0200
-@@ -37,6 +37,8 @@
-
- namespace std
- {
-+ extern "C" __typeof (nl_langinfo_l) __nl_langinfo_l;
-+
- template<>
- void
- numpunct<char>::_M_initialize_numpunct(__c_locale __cloc)
-diff -ruN gcc-3.2/libstdc++-v3/config/locale/gnu/time_members.cc
gcc-3.2.fixed/libstdc++-v3/config/locale/gnu/time_members.cc
---- gcc-3.2/libstdc++-v3/config/locale/gnu/time_members.cc 2002-05-19
00:00:14.000000000 +0200
-+++ gcc-3.2.fixed/libstdc++-v3/config/locale/gnu/time_members.cc
2002-10-14 04:30:58.000000000 +0200
-@@ -38,6 +38,10 @@
-
- namespace std
- {
-+ extern "C" __typeof (strftime_l) __strftime_l;
-+ extern "C" __typeof (wcsftime_l) __wcsftime_l;
-+ extern "C" __typeof (nl_langinfo_l) __nl_langinfo_l;
-+
- template<>
- __timepunct<char>::~__timepunct()
- {
-@@ -52,7 +56,7 @@
- const tm* __tm) const
- {
- #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
-- __strftime_l(__s, __maxlen, _M_c_locale_timepunct, __format, __tm);
-+ __strftime_l(__s, __maxlen, __format, __tm, _M_c_locale_timepunct);
- #else
- char* __old = strdup(setlocale(LC_ALL, NULL));
- setlocale(LC_ALL, _M_name_timepunct);
-@@ -202,7 +206,7 @@
- const tm* __tm) const
- {
- #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
-- __wcsftime_l(__s, __maxlen, _M_c_locale_timepunct, __format, __tm);
-+ __wcsftime_l(__s, __maxlen, __format, __tm, _M_c_locale_timepunct);
- #else
- char* __old = strdup(setlocale(LC_ALL, NULL));
- setlocale(LC_ALL, _M_name_timepunct);
-diff -ruN gcc-3.2/libstdc++-v3/config/os/gnu-linux/bits/ctype_noninline.h
gcc-3.2.fixed/libstdc++-v3/config/os/gnu-linux/bits/ctype_noninline.h
---- gcc-3.2/libstdc++-v3/config/os/gnu-linux/bits/ctype_noninline.h
2002-04-19 09:59:07.000000000 +0200
-+++ gcc-3.2.fixed/libstdc++-v3/config/os/gnu-linux/bits/ctype_noninline.h
2002-10-14 04:30:48.000000000 +0200
-@@ -34,16 +34,32 @@
-
- // Information as gleaned from /usr/include/ctype.h
-
--#if _GLIBCPP_USE_SHADOW_HEADERS
-- using _C_legacy::__ctype_toupper;
-- using _C_legacy::__ctype_tolower;
-- using _C_legacy::__ctype_b;
--#endif
--
-+#if _GLIBCPP_C_LOCALE_GNU
- const ctype_base::mask*
- ctype<char>::classic_table() throw()
-- { return __ctype_b; }
--
-+ {
-+ if (!_S_c_locale)
-+ _S_create_c_locale(_S_c_locale, "C");
-+ return _S_c_locale->__ctype_b;
-+ }
-+#else
-+ const ctype_base::mask*
-+ ctype<char>::classic_table() throw()
-+ {
-+ const ctype_base::mask* __ret;
-+ char* __old = strdup(setlocale(LC_CTYPE, NULL));
-+ setlocale(LC_CTYPE, "C");
-+#if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
-+ __ret = *__ctype_b_loc();
-+#else
-+ __ret = __ctype_b;
-+#endif
-+ setlocale(LC_CTYPE, __old);
-+ free(__old);
-+ return __ret;
-+ }
-+#endif
-+
- #if _GLIBCPP_C_LOCALE_GNU
- ctype<char>::ctype(__c_locale __cloc, const mask* __table, bool __del,
- size_t __refs)
-@@ -57,17 +73,54 @@
- #else
- ctype<char>::ctype(__c_locale, const mask* __table, bool __del,
- size_t __refs)
-- : __ctype_abstract_base<char>(__refs), _M_del(__table != 0 && __del),
-- _M_toupper(__ctype_toupper), _M_tolower(__ctype_tolower),
-- _M_table(__table ? __table : classic_table())
-- { _M_c_locale_ctype = _S_c_locale; }
-+ : __ctype_abstract_base<char>(__refs), _M_del(__table != 0 && __del)
-+ {
-+ char* __old=strdup(setlocale(LC_CTYPE, NULL));
-+ setlocale(LC_CTYPE, "C");
-+#if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
-+ _M_toupper = *__ctype_toupper_loc();
-+ _M_tolower = *__ctype_tolower_loc();
-+ _M_table = __table ? __table : *__ctype_b_loc();
-+#else
-+ _M_toupper = __ctype_toupper;
-+ _M_tolower = __ctype_tolower;
-+ _M_table = __table ? __table : __ctype_b;
-+#endif
-+ setlocale(LC_CTYPE, __old);
-+ free(__old);
-+ _M_c_locale_ctype = _S_c_locale;
-+ }
- #endif
-
-+#if _GLIBCPP_C_LOCALE_GNU
-+ ctype<char>::ctype(const mask* __table, bool __del, size_t __refs) :
-+ __ctype_abstract_base<char>(__refs), _M_del(__table != 0 && __del)
-+ {
-+ _M_c_locale_ctype = _S_c_locale;
-+ _M_toupper = _M_c_locale_ctype->__ctype_toupper;
-+ _M_tolower = _M_c_locale_ctype->__ctype_tolower;
-+ _M_table = __table ? __table : _M_c_locale_ctype->__ctype_b;
-+ }
-+#else
- ctype<char>::ctype(const mask* __table, bool __del, size_t __refs) :
-- __ctype_abstract_base<char>(__refs), _M_del(__table != 0 && __del),
-- _M_toupper(__ctype_toupper), _M_tolower(__ctype_tolower),
-- _M_table(__table ? __table : classic_table())
-- { _M_c_locale_ctype = _S_c_locale; }
-+ __ctype_abstract_base<char>(__refs), _M_del(__table != 0 && __del)
-+ {
-+ char* __old=strdup(setlocale(LC_CTYPE, NULL));
-+ setlocale(LC_CTYPE, "C");
-+#if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
-+ _M_toupper = *__ctype_toupper_loc();
-+ _M_tolower = *__ctype_tolower_loc();
-+ _M_table = __table ? __table : *__ctype_b_loc();
-+#else
-+ _M_toupper = __ctype_toupper;
-+ _M_tolower = __ctype_tolower;
-+ _M_table = __table ? __table : __ctype_b;
-+#endif
-+ setlocale(LC_CTYPE, __old);
-+ free(__old);
-+ _M_c_locale_ctype = _S_c_locale;
-+ }
-+#endif
-
- char
- ctype<char>::do_toupper(char __c) const


  • [SM-Spell-Submit]Re: [SM-Discuss] gcc 3.2.1, Sergey A Lipnevich, 11/20/2002

Archive powered by MHonArc 2.6.24.

Top of Page