Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] svn commit: trunk/buildroot/toolchain/gcc/4.2.1
@ 2007-08-25 11:22 aldot at uclibc.org
  0 siblings, 0 replies; 7+ messages in thread
From: aldot at uclibc.org @ 2007-08-25 11:22 UTC (permalink / raw)
  To: buildroot

Author: aldot
Date: 2007-08-25 04:22:51 -0700 (Sat, 25 Aug 2007)
New Revision: 19694

Log:
This patch fixes a bug into ostream::operator<<(double) due to the wrong size
passed into the __convert_from_v method. The wrong size is then passed to
std::snprintf function, that, on uClibc, doens't handle sized 0 buffer.

Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>


Added:
   trunk/buildroot/toolchain/gcc/4.2.1/307-locale_facets.patch


Changeset:
Added: trunk/buildroot/toolchain/gcc/4.2.1/307-locale_facets.patch
===================================================================
--- trunk/buildroot/toolchain/gcc/4.2.1/307-locale_facets.patch	                        (rev 0)
+++ trunk/buildroot/toolchain/gcc/4.2.1/307-locale_facets.patch	2007-08-25 11:22:51 UTC (rev 19694)
@@ -0,0 +1,26 @@
+This patch fixes a bug into ostream::operator<<(double) due to the wrong size
+passed into the __convert_from_v method. The wrong size is then passed to
+std::snprintf function, that, on uClibc, doens't handle sized 0 buffer.
+
+Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
+
+--- gcc-4.2.1/libstdc++-v3/include/bits/locale_facets.tcc	2006-10-17 18:43:47.000000000 +0200
++++ gcc-4.2.1-st/libstdc++-v3/include/bits/locale_facets.tcc	2007-08-22 18:54:23.000000000 +0200
+@@ -1143,7 +1143,7 @@ _GLIBCXX_BEGIN_LDBL_NAMESPACE
+ 	const int __cs_size = __fixed ? __max_exp + __prec + 4
+ 	                              : __max_digits * 2 + __prec;
+ 	char* __cs = static_cast<char*>(__builtin_alloca(__cs_size));
+-	__len = std::__convert_from_v(_S_get_c_locale(), __cs, 0, __fbuf, 
++	__len = std::__convert_from_v(_S_get_c_locale(), __cs, __cs_size, __fbuf, 
+ 				      __prec, __v);
+ #endif
+ 
+@@ -1777,7 +1777,7 @@ _GLIBCXX_BEGIN_LDBL_NAMESPACE
+       // max_exponent10 + 1 for the integer part, + 2 for sign and '\0'.
+       const int __cs_size = numeric_limits<long double>::max_exponent10 + 3;
+       char* __cs = static_cast<char*>(__builtin_alloca(__cs_size));
+-      int __len = std::__convert_from_v(_S_get_c_locale(), __cs, 0, "%.*Lf", 
++      int __len = std::__convert_from_v(_S_get_c_locale(), __cs, __cs_size, "%.*Lf", 
+ 					0, __units);
+ #endif
+       string_type __digits(__len, char_type());

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] svn commit: trunk/buildroot/toolchain/gcc/4.2.1
@ 2007-08-28 18:21 ulf at uclibc.org
  0 siblings, 0 replies; 7+ messages in thread
From: ulf at uclibc.org @ 2007-08-28 18:21 UTC (permalink / raw)
  To: buildroot

Author: ulf
Date: 2007-08-28 11:21:00 -0700 (Tue, 28 Aug 2007)
New Revision: 19714

Log:
Looking at the the gcc-4.2.1 patches for uClibc, I found that the
200-uclibc-locale and 205-uclibc-locale-update patches uses a not 
existing macro
__UCLIBC_HAS_XCLOCALE__ while they should refer to __UCLIBC_HAS_XLOCALE__

Find attached the patches to fix the above mentioned patches

Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>


Modified:
   trunk/buildroot/toolchain/gcc/4.2.1/200-uclibc-locale.patch
   trunk/buildroot/toolchain/gcc/4.2.1/205-uclibc-locale-update.patch


Changeset:
Modified: trunk/buildroot/toolchain/gcc/4.2.1/200-uclibc-locale.patch
===================================================================
--- trunk/buildroot/toolchain/gcc/4.2.1/200-uclibc-locale.patch	2007-08-28 18:18:10 UTC (rev 19713)
+++ trunk/buildroot/toolchain/gcc/4.2.1/200-uclibc-locale.patch	2007-08-28 18:21:00 UTC (rev 19714)
@@ -381,7 +381,7 @@
 +    __convert_from_v(char* __out, 
 +		     const int __size __attribute__ ((__unused__)),
 +		     const char* __fmt,
-+#ifdef __UCLIBC_HAS_XCLOCALE__
++#ifdef __UCLIBC_HAS_XLOCALE__
 +		     _Tv __v, const __c_locale& __cloc, int __prec)
 +    {
 +      __c_locale __old = __gnu_cxx::__uselocale(__cloc);
@@ -398,7 +398,7 @@
 +
 +      const int __ret = std::snprintf(__out, __size, __fmt, __prec, __v);
 +
-+#ifdef __UCLIBC_HAS_XCLOCALE__
++#ifdef __UCLIBC_HAS_XLOCALE__
 +      __gnu_cxx::__uselocale(__old);
 +#elif defined __UCLIBC_HAS_LOCALE__
 +      std::setlocale(LC_ALL, __sav);

Modified: trunk/buildroot/toolchain/gcc/4.2.1/205-uclibc-locale-update.patch
===================================================================
--- trunk/buildroot/toolchain/gcc/4.2.1/205-uclibc-locale-update.patch	2007-08-28 18:18:10 UTC (rev 19713)
+++ trunk/buildroot/toolchain/gcc/4.2.1/205-uclibc-locale-update.patch	2007-08-28 18:21:00 UTC (rev 19714)
@@ -313,11 +313,11 @@
 -    __convert_from_v(char* __out, 
 -		     const int __size __attribute__ ((__unused__)),
 -		     const char* __fmt,
--#ifdef __UCLIBC_HAS_XCLOCALE__
+-#ifdef __UCLIBC_HAS_XLOCALE__
 -		     _Tv __v, const __c_locale& __cloc, int __prec)
 +    inline int
 +    __convert_from_v(const __c_locale&
-+#ifndef __UCLIBC_HAS_XCLOCALE__
++#ifndef __UCLIBC_HAS_XLOCALE__
 +					__cloc __attribute__ ((__unused__))
 +#endif
 +		     ,
@@ -326,7 +326,7 @@
 +		     const char* __fmt, ...)
      {
 +      va_list __args;
-+#ifdef __UCLIBC_HAS_XCLOCALE__
++#ifdef __UCLIBC_HAS_XLOCALE__
        __c_locale __old = __gnu_cxx::__uselocale(__cloc);
  #else
 -		     _Tv __v, const __c_locale&, int __prec)
@@ -343,5 +343,5 @@
 +      const int __ret = std::vsnprintf(__out, __size, __fmt, __args);
 +      va_end(__args);
  
- #ifdef __UCLIBC_HAS_XCLOCALE__
+ #ifdef __UCLIBC_HAS_XLOCALE__
        __gnu_cxx::__uselocale(__old);

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] svn commit: trunk/buildroot/toolchain/gcc/4.2.1
@ 2007-08-30  6:00 ulf at uclibc.org
  0 siblings, 0 replies; 7+ messages in thread
From: ulf at uclibc.org @ 2007-08-30  6:00 UTC (permalink / raw)
  To: buildroot

Author: ulf
Date: 2007-08-29 23:00:36 -0700 (Wed, 29 Aug 2007)
New Revision: 19737

Log:
Revert patch causing g++-4.2.1 build to fail

Modified:
   trunk/buildroot/toolchain/gcc/4.2.1/200-uclibc-locale.patch
   trunk/buildroot/toolchain/gcc/4.2.1/205-uclibc-locale-update.patch


Changeset:
Modified: trunk/buildroot/toolchain/gcc/4.2.1/200-uclibc-locale.patch
===================================================================
--- trunk/buildroot/toolchain/gcc/4.2.1/200-uclibc-locale.patch	2007-08-29 18:34:26 UTC (rev 19736)
+++ trunk/buildroot/toolchain/gcc/4.2.1/200-uclibc-locale.patch	2007-08-30 06:00:36 UTC (rev 19737)
@@ -381,7 +381,7 @@
 +    __convert_from_v(char* __out, 
 +		     const int __size __attribute__ ((__unused__)),
 +		     const char* __fmt,
-+#ifdef __UCLIBC_HAS_XLOCALE__
++#ifdef __UCLIBC_HAS_XCLOCALE__
 +		     _Tv __v, const __c_locale& __cloc, int __prec)
 +    {
 +      __c_locale __old = __gnu_cxx::__uselocale(__cloc);
@@ -398,7 +398,7 @@
 +
 +      const int __ret = std::snprintf(__out, __size, __fmt, __prec, __v);
 +
-+#ifdef __UCLIBC_HAS_XLOCALE__
++#ifdef __UCLIBC_HAS_XCLOCALE__
 +      __gnu_cxx::__uselocale(__old);
 +#elif defined __UCLIBC_HAS_LOCALE__
 +      std::setlocale(LC_ALL, __sav);

Modified: trunk/buildroot/toolchain/gcc/4.2.1/205-uclibc-locale-update.patch
===================================================================
--- trunk/buildroot/toolchain/gcc/4.2.1/205-uclibc-locale-update.patch	2007-08-29 18:34:26 UTC (rev 19736)
+++ trunk/buildroot/toolchain/gcc/4.2.1/205-uclibc-locale-update.patch	2007-08-30 06:00:36 UTC (rev 19737)
@@ -313,11 +313,11 @@
 -    __convert_from_v(char* __out, 
 -		     const int __size __attribute__ ((__unused__)),
 -		     const char* __fmt,
--#ifdef __UCLIBC_HAS_XLOCALE__
+-#ifdef __UCLIBC_HAS_XCLOCALE__
 -		     _Tv __v, const __c_locale& __cloc, int __prec)
 +    inline int
 +    __convert_from_v(const __c_locale&
-+#ifndef __UCLIBC_HAS_XLOCALE__
++#ifndef __UCLIBC_HAS_XCLOCALE__
 +					__cloc __attribute__ ((__unused__))
 +#endif
 +		     ,
@@ -326,7 +326,7 @@
 +		     const char* __fmt, ...)
      {
 +      va_list __args;
-+#ifdef __UCLIBC_HAS_XLOCALE__
++#ifdef __UCLIBC_HAS_XCLOCALE__
        __c_locale __old = __gnu_cxx::__uselocale(__cloc);
  #else
 -		     _Tv __v, const __c_locale&, int __prec)
@@ -343,5 +343,5 @@
 +      const int __ret = std::vsnprintf(__out, __size, __fmt, __args);
 +      va_end(__args);
  
- #ifdef __UCLIBC_HAS_XLOCALE__
+ #ifdef __UCLIBC_HAS_XCLOCALE__
        __gnu_cxx::__uselocale(__old);

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] svn commit: trunk/buildroot/toolchain/gcc/4.2.1
@ 2007-10-17 21:56 ulf at uclibc.org
  0 siblings, 0 replies; 7+ messages in thread
From: ulf at uclibc.org @ 2007-10-17 21:56 UTC (permalink / raw)
  To: buildroot

Author: ulf
Date: 2007-10-17 14:56:21 -0700 (Wed, 17 Oct 2007)
New Revision: 20276

Log:
Softfloat patch

Added:
   trunk/buildroot/toolchain/gcc/4.2.1/910-soft-float.patch


Changeset:
Added: trunk/buildroot/toolchain/gcc/4.2.1/910-soft-float.patch
===================================================================
--- trunk/buildroot/toolchain/gcc/4.2.1/910-soft-float.patch	                        (rev 0)
+++ trunk/buildroot/toolchain/gcc/4.2.1/910-soft-float.patch	2007-10-17 21:56:21 UTC (rev 20276)
@@ -0,0 +1,26 @@
+--- gcc-4.2-20061205/gcc/config/arm/t-linux    2006-12-08 15:18:33.000000000 -0800
++++ gcc-4.2-20061205/gcc/config/arm/t-linux    2006-12-08 15:18:33.000000000 -0800
+@@ -4,7 +4,10 @@
+ LIBGCC2_DEBUG_CFLAGS = -g0
+ 
+ LIB1ASMSRC = arm/lib1funcs.asm
+-LIB1ASMFUNCS = _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_lnx
++LIB1ASMFUNCS = _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_lnx \
++      _negdf2 _addsubdf3 _muldivdf3 _cmpdf2 _unorddf2 _fixdfsi _fixunsdfsi \
++      _truncdfsf2 _negsf2 _addsubsf3 _muldivsf3 _cmpsf2 _unordsf2 \
++      _fixsfsi _fixunssfsi _floatdidf _floatundidf _floatdisf _floatundisf
+ 
+ # MULTILIB_OPTIONS = mhard-float/msoft-float
+ # MULTILIB_DIRNAMES = hard-float soft-float
+
+--- gcc-4.2-20061205/gcc/config/arm/linux-elf.h        2006-12-08 15:18:33.000000000 -0800
++++ gcc-4.2-20061205/gcc/config/arm/linux-elf.h        2006-12-08 15:18:33.000000000 -0800
+@@ -63,7 +63,7 @@
+    %{shared:-lc} \
+    %{!shared:%{profile:-lc_p}%{!profile:-lc}}"
+ 
+-#define LIBGCC_SPEC "%{msoft-float:-lfloat} %{mfloat-abi=soft*:-lfloat} -lgcc"
++#define LIBGCC_SPEC "-lgcc"
+ 
+ #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
+ 

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] svn commit: trunk/buildroot/toolchain/gcc/4.2.1
@ 2008-03-06 22:56 jacmet at uclibc.org
  0 siblings, 0 replies; 7+ messages in thread
From: jacmet at uclibc.org @ 2008-03-06 22:56 UTC (permalink / raw)
  To: buildroot

Author: jacmet
Date: 2008-03-06 14:56:50 -0800 (Thu, 06 Mar 2008)
New Revision: 21261

Log:
gcc 4.2.1: Don't change SUFFIX and bug report URL

SUFFIX and bug report URL shouldn't be set to something atmel specific
if you don't compile for AVR32.

The AVR32 patch should probably only get applied if compiling for AVR32.


Modified:
   trunk/buildroot/toolchain/gcc/4.2.1/900-avr32-atmel.1.3.2.patch


Changeset:
Modified: trunk/buildroot/toolchain/gcc/4.2.1/900-avr32-atmel.1.3.2.patch
===================================================================
--- trunk/buildroot/toolchain/gcc/4.2.1/900-avr32-atmel.1.3.2.patch	2008-03-06 20:11:00 UTC (rev 21260)
+++ trunk/buildroot/toolchain/gcc/4.2.1/900-avr32-atmel.1.3.2.patch	2008-03-06 22:56:50 UTC (rev 21261)
@@ -20505,27 +20505,6 @@
  
  // Bug: g++ was failing to destroy C<int>::a because it was using two
  // different sentry variables for construction and destruction.
-diff -Nrup gcc-4.2.1/gcc/version.c gcc-4.2.1.atmel.1.3.2/gcc/version.c
---- gcc-4.2.1/gcc/version.c	2005-03-16 07:04:10.000000000 +0100
-+++ gcc-4.2.1.atmel.1.3.2/gcc/version.c	2007-09-28 10:33:09.000000000 +0200
-@@ -8,7 +8,7 @@
-    in parentheses.  You may also wish to include a number indicating
-    the revision of your modified compiler.  */
- 
--#define VERSUFFIX ""
-+#define VERSUFFIX "-atmel.1.0.3"
- 
- /* This is the location of the online document giving instructions for
-    reporting bugs.  If you distribute a modified version of GCC,
-@@ -17,7 +17,7 @@
-    forward us bugs reported to you, if you determine that they are
-    not bugs in your modifications.)  */
- 
--const char bug_report_url[] = "<URL:http://gcc.gnu.org/bugs.html>";
-+const char bug_report_url[] = "<URL:http://www.atmel.com/avr32/>";
- 
- /* The complete version string, assembled from several pieces.
-    BASEVER, DATESTAMP, and DEVPHASE are defined by the Makefile.  */
 diff -Nrup gcc-4.2.1/LAST_UPDATED gcc-4.2.1.atmel.1.3.2/LAST_UPDATED
 --- gcc-4.2.1/LAST_UPDATED	2007-07-19 16:33:57.000000000 +0200
 +++ gcc-4.2.1.atmel.1.3.2/LAST_UPDATED	1970-01-01 01:00:00.000000000 +0100

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] svn commit: trunk/buildroot/toolchain/gcc/4.2.1
@ 2008-03-27 19:37 jacmet at uclibc.org
  0 siblings, 0 replies; 7+ messages in thread
From: jacmet at uclibc.org @ 2008-03-27 19:37 UTC (permalink / raw)
  To: buildroot

Author: jacmet
Date: 2008-03-27 12:37:33 -0700 (Thu, 27 Mar 2008)
New Revision: 21520

Log:
gcc 4.2.1: fix undefined reference to fmsub in C++ programs with soft float

Fix 'undefined reference to fmsub' linking errors with C++ programs
when soft float is enabled. Patch by b5331.

Closes #1588.


Added:
   trunk/buildroot/toolchain/gcc/4.2.1/920-soft-float.patch


Changeset:
Added: trunk/buildroot/toolchain/gcc/4.2.1/920-soft-float.patch
===================================================================
--- trunk/buildroot/toolchain/gcc/4.2.1/920-soft-float.patch	                        (rev 0)
+++ trunk/buildroot/toolchain/gcc/4.2.1/920-soft-float.patch	2008-03-27 19:37:33 UTC (rev 21520)
@@ -0,0 +1,21 @@
+diff -uNpr gcc-4.2.1_orig/gcc/config/rs6000/darwin-ldouble.c gcc-4.2.1/gcc/config/rs6000/darwin-ldouble.c
+--- gcc-4.2.1_orig/gcc/config/rs6000/darwin-ldouble.c	2007-03-05 11:54:00.000000000 -0500
++++ gcc-4.2.1/gcc/config/rs6000/darwin-ldouble.c	2008-01-31 17:51:24.000000000 -0500
+@@ -70,6 +70,8 @@ Software Foundation, 51 Franklin Street,
+    but GCC currently generates poor code when a union is used to turn
+    a long double into a pair of doubles.  */
+ 
++#if defined (_SOFT_FLOAT) && defined (__LONG_DOUBLE_128__)
++
+ long double __gcc_qadd (double, double, double, double);
+ long double __gcc_qsub (double, double, double, double);
+ long double __gcc_qmul (double, double, double, double);
+@@ -219,8 +221,6 @@ __gcc_qdiv (double a, double b, double c
+   return z.ldval;
+ }
+ 
+-#if defined (_SOFT_FLOAT) && defined (__LONG_DOUBLE_128__)
+-
+ long double __gcc_qneg (double, double);
+ int __gcc_qeq (double, double, double, double);
+ int __gcc_qne (double, double, double, double);

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] svn commit: trunk/buildroot/toolchain/gcc/4.2.1
@ 2008-03-29 11:07 ulf at uclibc.org
  0 siblings, 0 replies; 7+ messages in thread
From: ulf at uclibc.org @ 2008-03-29 11:07 UTC (permalink / raw)
  To: buildroot

Author: ulf
Date: 2008-03-29 04:07:12 -0700 (Sat, 29 Mar 2008)
New Revision: 21550

Log:
Remove avr32 gcc patches duplicating external source

Removed:
   trunk/buildroot/toolchain/gcc/4.2.1/avr32_patches_break_x86/


Changeset:

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-03-29 11:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-30  6:00 [Buildroot] svn commit: trunk/buildroot/toolchain/gcc/4.2.1 ulf at uclibc.org
  -- strict thread matches above, loose matches on Subject: below --
2008-03-29 11:07 ulf at uclibc.org
2008-03-27 19:37 jacmet at uclibc.org
2008-03-06 22:56 jacmet at uclibc.org
2007-10-17 21:56 ulf at uclibc.org
2007-08-28 18:21 ulf at uclibc.org
2007-08-25 11:22 aldot at uclibc.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox