All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] svn commit: trunk/buildroot/toolchain/gcc/4.2
@ 2006-12-28  8:47 aldot at uclibc.org
  0 siblings, 0 replies; 12+ messages in thread
From: aldot at uclibc.org @ 2006-12-28  8:47 UTC (permalink / raw)
  To: buildroot

Author: aldot
Date: 2006-12-28 00:47:36 -0800 (Thu, 28 Dec 2006)
New Revision: 17097

Log:
- add option to disable LFS and regenerate configure
  Will send upstream later on.


Added:
   trunk/buildroot/toolchain/gcc/4.2/307-libstdc++-largefile-reconf.patch


Changeset:
Added: trunk/buildroot/toolchain/gcc/4.2/307-libstdc++-largefile-reconf.patch
===================================================================
--- trunk/buildroot/toolchain/gcc/4.2/307-libstdc++-largefile-reconf.patch	2006-12-28 08:46:30 UTC (rev 17096)
+++ trunk/buildroot/toolchain/gcc/4.2/307-libstdc++-largefile-reconf.patch	2006-12-28 08:47:36 UTC (rev 17097)
@@ -0,0 +1,450 @@
+diff -dup gcc-4.2.orig/libstdc++-v3/acinclude.m4 gcc-4.2/libstdc++-v3/acinclude.m4
+--- gcc-4.2.orig/libstdc++-v3/acinclude.m4	2006-12-27 12:58:40.000000000 +0100
++++ gcc-4.2/libstdc++-v3/acinclude.m4	2006-12-27 13:38:30.000000000 +0100
+@@ -554,7 +554,7 @@ AC_DEFUN([GLIBCXX_CHECK_LFS], [
+       [glibcxx_cv_LFS=yes],
+       [glibcxx_cv_LFS=no])
+   ])
+-  if test $glibcxx_cv_LFS = yes; then
++  if test $glibcxx_cv_LFS = yes && test $enable_largefile = yes; then
+     AC_DEFINE(_GLIBCXX_USE_LFS, 1, [Define if LFS support is available.])
+   fi
+   AC_MSG_RESULT($glibcxx_cv_LFS)
+diff -dup gcc-4.2.orig/libstdc++-v3/configure.ac gcc-4.2/libstdc++-v3/configure.ac
+--- gcc-4.2.orig/libstdc++-v3/configure.ac	2006-12-27 12:58:40.000000000 +0100
++++ gcc-4.2/libstdc++-v3/configure.ac	2006-12-27 13:38:30.000000000 +0100
+@@ -96,6 +96,7 @@ GLIBCXX_ENABLE_HOSTED
+ GLIBCXX_ENABLE_SJLJ_EXCEPTIONS
+ GLIBCXX_ENABLE_PCH($is_hosted)
+ 
++AC_SYS_LARGEFILE
+ # Enable all the variable C++ runtime options.  
+ GLIBCXX_ENABLE_CSTDIO
+ GLIBCXX_ENABLE_CLOCALE
+diff -dup gcc-4.2.orig/libstdc++-v3/crossconfig.m4 gcc-4.2/libstdc++-v3/crossconfig.m4
+--- gcc-4.2.orig/libstdc++-v3/crossconfig.m4	2006-12-27 12:08:05.000000000 +0100
++++ gcc-4.2/libstdc++-v3/crossconfig.m4	2006-12-27 13:25:16.000000000 +0100
+@@ -162,7 +162,9 @@ case "${host}" in
+         # Don't enable LFS with uClinux
+         ;;
+       *)
++	if test x"$enable_lfs" = x"yes"; then
+         AC_DEFINE(_GLIBCXX_USE_LFS)
++	fi
+     esac
+ 
+     # For showmanyc_helper().
+diff -dup gcc-4.2.orig/libstdc++-v3/configure gcc-4.2/libstdc++-v3/configure
+--- gcc-4.2.orig/libstdc++-v3/configure	2006-12-27 12:58:40.000000000 +0100
++++ gcc-4.2/libstdc++-v3/configure	2006-12-27 13:38:30.000000000 +0100
+@@ -858,6 +858,7 @@ Optional Features:
+                           [default=auto]
+   --enable-libstdcxx-pch  build pre-compiled libstdc++ headers
+                           [default=$is_hosted]
++  --disable-largefile     omit support for large files
+   --enable-cstdio=PACKAGE use target-specific I/O package
+                           [default=stdio]
+   --enable-clocale[=MODEL]
+@@ -4740,7 +4741,7 @@ test x"$pic_mode" = xno && libtool_flags
+ case $host in
+ *-*-irix6*)
+   # Find out which ABI we are using.
+-  echo '#line 4743 "configure"' > conftest.$ac_ext
++  echo '#line 4744 "configure"' > conftest.$ac_ext
+   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+   (eval $ac_compile) 2>&5
+   ac_status=$?
+@@ -5489,6 +5490,370 @@ echo "${ECHO_T}$enable_libstdcxx_pch" >&
+ 
+ 
+ 
++# Check whether --enable-largefile or --disable-largefile was given.
++if test "${enable_largefile+set}" = set; then
++  enableval="$enable_largefile"
++
++fi;
++if test "$enable_largefile" != no; then
++
++  echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
++echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
++if test "${ac_cv_sys_largefile_CC+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  ac_cv_sys_largefile_CC=no
++     if test "$GCC" != yes; then
++       ac_save_CC=$CC
++       while :; do
++     	 # IRIX 6.2 and later do not support large files by default,
++     	 # so use the C compiler's -n32 option if that helps.
++	 cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#include <sys/types.h>
++ /* Check that off_t can represent 2**63 - 1 correctly.
++    We can't simply define LARGE_OFF_T to be 9223372036854775807,
++    since some C++ compilers masquerading as C compilers
++    incorrectly reject 9223372036854775807.  */
++#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
++  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
++		       && LARGE_OFF_T % 2147483647 == 1)
++		      ? 1 : -1];
++int
++main ()
++{
++
++  ;
++  return 0;
++}
++_ACEOF
++     	 rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++  (eval $ac_compile) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++	 { ac_try='test -z "$ac_c_werror_flag"
++			 || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++	 { ac_try='test -s conftest.$ac_objext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  break
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++fi
++rm -f conftest.err conftest.$ac_objext
++     	 CC="$CC -n32"
++     	 rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++  (eval $ac_compile) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++	 { ac_try='test -z "$ac_c_werror_flag"
++			 || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++	 { ac_try='test -s conftest.$ac_objext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_sys_largefile_CC=' -n32'; break
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++fi
++rm -f conftest.err conftest.$ac_objext
++	 break
++       done
++       CC=$ac_save_CC
++       rm -f conftest.$ac_ext
++    fi
++fi
++echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
++echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
++  if test "$ac_cv_sys_largefile_CC" != no; then
++    CC=$CC$ac_cv_sys_largefile_CC
++  fi
++
++  echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
++echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
++if test "${ac_cv_sys_file_offset_bits+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  while :; do
++  ac_cv_sys_file_offset_bits=no
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#include <sys/types.h>
++ /* Check that off_t can represent 2**63 - 1 correctly.
++    We can't simply define LARGE_OFF_T to be 9223372036854775807,
++    since some C++ compilers masquerading as C compilers
++    incorrectly reject 9223372036854775807.  */
++#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
++  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
++		       && LARGE_OFF_T % 2147483647 == 1)
++		      ? 1 : -1];
++int
++main ()
++{
++
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++  (eval $ac_compile) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++	 { ac_try='test -z "$ac_c_werror_flag"
++			 || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++	 { ac_try='test -s conftest.$ac_objext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  break
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#define _FILE_OFFSET_BITS 64
++#include <sys/types.h>
++ /* Check that off_t can represent 2**63 - 1 correctly.
++    We can't simply define LARGE_OFF_T to be 9223372036854775807,
++    since some C++ compilers masquerading as C compilers
++    incorrectly reject 9223372036854775807.  */
++#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
++  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
++		       && LARGE_OFF_T % 2147483647 == 1)
++		      ? 1 : -1];
++int
++main ()
++{
++
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++  (eval $ac_compile) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++	 { ac_try='test -z "$ac_c_werror_flag"
++			 || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++	 { ac_try='test -s conftest.$ac_objext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_sys_file_offset_bits=64; break
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++  break
++done
++fi
++echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
++echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
++if test "$ac_cv_sys_file_offset_bits" != no; then
++
++cat >>confdefs.h <<_ACEOF
++#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
++_ACEOF
++
++fi
++rm -f conftest*
++  echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
++echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
++if test "${ac_cv_sys_large_files+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  while :; do
++  ac_cv_sys_large_files=no
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#include <sys/types.h>
++ /* Check that off_t can represent 2**63 - 1 correctly.
++    We can't simply define LARGE_OFF_T to be 9223372036854775807,
++    since some C++ compilers masquerading as C compilers
++    incorrectly reject 9223372036854775807.  */
++#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
++  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
++		       && LARGE_OFF_T % 2147483647 == 1)
++		      ? 1 : -1];
++int
++main ()
++{
++
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++  (eval $ac_compile) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++	 { ac_try='test -z "$ac_c_werror_flag"
++			 || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++	 { ac_try='test -s conftest.$ac_objext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  break
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#define _LARGE_FILES 1
++#include <sys/types.h>
++ /* Check that off_t can represent 2**63 - 1 correctly.
++    We can't simply define LARGE_OFF_T to be 9223372036854775807,
++    since some C++ compilers masquerading as C compilers
++    incorrectly reject 9223372036854775807.  */
++#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
++  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
++		       && LARGE_OFF_T % 2147483647 == 1)
++		      ? 1 : -1];
++int
++main ()
++{
++
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++  (eval $ac_compile) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++	 { ac_try='test -z "$ac_c_werror_flag"
++			 || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++	 { ac_try='test -s conftest.$ac_objext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_sys_large_files=1; break
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++  break
++done
++fi
++echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
++echo "${ECHO_T}$ac_cv_sys_large_files" >&6
++if test "$ac_cv_sys_large_files" != no; then
++
++cat >>confdefs.h <<_ACEOF
++#define _LARGE_FILES $ac_cv_sys_large_files
++_ACEOF
++
++fi
++rm -f conftest*
++fi
++
+ # Enable all the variable C++ runtime options.
+ 
+   echo "$as_me:$LINENO: checking for underlying I/O to use" >&5
+@@ -30152,7 +30517,7 @@ rm -f conftest.err conftest.$ac_objext \
+ 
+ fi
+ 
+-  if test $glibcxx_cv_LFS = yes; then
++  if test $glibcxx_cv_LFS = yes && test $enable_largefile = yes; then
+ 
+ cat >>confdefs.h <<\_ACEOF
+ #define _GLIBCXX_USE_LFS 1
+@@ -99434,10 +99799,12 @@ _ACEOF
+         # Don't enable LFS with uClinux
+         ;;
+       *)
++	if test x"$enable_lfs" = x"yes"; then
+         cat >>confdefs.h <<\_ACEOF
+ #define _GLIBCXX_USE_LFS 1
+ _ACEOF
+ 
++	fi
+     esac
+ 
+     # For showmanyc_helper().
+

^ permalink raw reply	[flat|nested] 12+ messages in thread
* [Buildroot] svn commit: trunk/buildroot/toolchain/gcc/4.2
@ 2007-02-10 19:36 aldot at uclibc.org
  0 siblings, 0 replies; 12+ messages in thread
From: aldot at uclibc.org @ 2007-02-10 19:36 UTC (permalink / raw)
  To: buildroot

Author: aldot
Date: 2007-02-10 11:36:25 -0800 (Sat, 10 Feb 2007)
New Revision: 17850

Log:
- add first hunk to fix PR30620


Added:
   trunk/buildroot/toolchain/gcc/4.2/402-libbackend_dep_gcov-iov.h.patch


Changeset:
Added: trunk/buildroot/toolchain/gcc/4.2/402-libbackend_dep_gcov-iov.h.patch
===================================================================
--- trunk/buildroot/toolchain/gcc/4.2/402-libbackend_dep_gcov-iov.h.patch	                        (rev 0)
+++ trunk/buildroot/toolchain/gcc/4.2/402-libbackend_dep_gcov-iov.h.patch	2007-02-10 19:36:25 UTC (rev 17850)
@@ -0,0 +1,13 @@
+Index: gcc-4.2/gcc/Makefile.in
+===================================================================
+--- gcc-4.2/gcc/Makefile.in	(revision 121758)
++++ gcc-4.2/gcc/Makefile.in	(working copy)
+@@ -2658,7 +2658,7 @@ mips-tdump.o : mips-tdump.c $(CONFIG_H) 
+ # FIXME: writing proper dependencies for this is a *LOT* of work.
+ libbackend.o : $(OBJS-common:.o=.c) $(out_file) \
+   insn-config.h insn-flags.h insn-codes.h insn-constants.h \
+-  insn-attr.h  $(DATESTAMP) $(BASEVER) $(DEVPHASE)
++  insn-attr.h  $(DATESTAMP) $(BASEVER) $(DEVPHASE) gcov-iov.h
+ 	$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) \
+ 	  -DTARGET_NAME=\"$(target_noncanonical)\" \
+ 	  -DLOCALEDIR=\"$(localedir)\" \

^ permalink raw reply	[flat|nested] 12+ messages in thread
* [Buildroot] svn commit: trunk/buildroot/toolchain/gcc/4.2
@ 2007-01-22 19:22 aldot at uclibc.org
  0 siblings, 0 replies; 12+ messages in thread
From: aldot at uclibc.org @ 2007-01-22 19:22 UTC (permalink / raw)
  To: buildroot

Author: aldot
Date: 2007-01-22 11:22:55 -0800 (Mon, 22 Jan 2007)
New Revision: 17474

Log:
- remove accidentally checked in debugging cruft


Removed:
   trunk/buildroot/toolchain/gcc/4.2/900-gengtype-verbose-error.patch


Changeset:
Deleted: trunk/buildroot/toolchain/gcc/4.2/900-gengtype-verbose-error.patch
===================================================================
--- trunk/buildroot/toolchain/gcc/4.2/900-gengtype-verbose-error.patch	2007-01-22 19:17:23 UTC (rev 17473)
+++ trunk/buildroot/toolchain/gcc/4.2/900-gengtype-verbose-error.patch	2007-01-22 19:22:55 UTC (rev 17474)
@@ -1,27 +0,0 @@
-Index: gcc-4.2/gcc/gengtype-lex.l
-===================================================================
---- gcc-4.2/gcc/gengtype-lex.l	(revision 121000)
-+++ gcc-4.2/gcc/gengtype-lex.l	(working copy)
-@@ -535,13 +535,19 @@
- macro_input (char *buffer, unsigned size)
- {
-   unsigned result;
-+  int old_errno;
- 
-   result = fread (buffer, 1, size, yyin);
-+  old_errno = errno;
-   if (result)
-     /*NOP*/;
--  else if (ferror (yyin))
--    YY_FATAL_ERROR ("read of source file failed");
--  else if (macro_expns)
-+  else if (ferror (yyin)) {
-+    char *err_msg;
-+    err_msg = xasprintf ("read of source file '%s:%d' failed",
-+    			lexer_line.file,
-+    			lexer_line.line);
-+    YY_FATAL_ERROR (err_msg);
-+  } else if (macro_expns)
-     {
-       const char *expn;
-       unsigned len;

^ permalink raw reply	[flat|nested] 12+ messages in thread
* [Buildroot] svn commit: trunk/buildroot/toolchain/gcc/4.2
@ 2007-01-08 18:35 aldot at uclibc.org
  0 siblings, 0 replies; 12+ messages in thread
From: aldot at uclibc.org @ 2007-01-08 18:35 UTC (permalink / raw)
  To: buildroot

Author: aldot
Date: 2007-01-08 10:35:27 -0800 (Mon, 08 Jan 2007)
New Revision: 17202

Log:
- Adjust patches to take recent upstream fixes into account.


Removed:
   trunk/buildroot/toolchain/gcc/4.2/307-libstdc++-largefile-reconf.patch

Modified:
   trunk/buildroot/toolchain/gcc/4.2/100-uclibc-conf.patch


Changeset:
Modified: trunk/buildroot/toolchain/gcc/4.2/100-uclibc-conf.patch
===================================================================
--- trunk/buildroot/toolchain/gcc/4.2/100-uclibc-conf.patch	2007-01-08 16:38:33 UTC (rev 17201)
+++ trunk/buildroot/toolchain/gcc/4.2/100-uclibc-conf.patch	2007-01-08 18:35:27 UTC (rev 17202)
@@ -35,26 +35,6 @@
    lt_cv_deplibs_check_method=pass_all
    ;;
  
-@@ -99523,7 +99523,7 @@
- 
-     case "$target" in
-       *-uclinux*)
--        # Don't enable LFS with uClibc
-+        # Don't enable LFS with uClinux
-         ;;
-       *)
-         cat >>confdefs.h <<\_ACEOF
---- gcc/libstdc++-v3/crossconfig.m4
-+++ gcc/libstdc++-v3/crossconfig.m4
-@@ -161,7 +161,7 @@
-     AC_DEFINE(HAVE_INT64_T)
-     case "$target" in
-       *-uclinux*)
--        # Don't enable LFS with uClibc
-+        # Don't enable LFS with uClinux
-         ;;
-       *)
-         AC_DEFINE(_GLIBCXX_USE_LFS)
 --- gcc/zlib/configure
 +++ gcc/zlib/configure
 @@ -3422,7 +3422,7 @@

Deleted: trunk/buildroot/toolchain/gcc/4.2/307-libstdc++-largefile-reconf.patch
===================================================================
--- trunk/buildroot/toolchain/gcc/4.2/307-libstdc++-largefile-reconf.patch	2007-01-08 16:38:33 UTC (rev 17201)
+++ trunk/buildroot/toolchain/gcc/4.2/307-libstdc++-largefile-reconf.patch	2007-01-08 18:35:27 UTC (rev 17202)
@@ -1,131 +0,0 @@
---- gcc-4.2.orig/libstdc++-v3/configure	(revision 120449)
-+++ gcc-4.2/libstdc++-v3/configure	(working copy)
-@@ -99359,17 +99359,104 @@
- #define HAVE_INT64_T 1
- _ACEOF
- 
--    case "$target" in
--      *-uclinux*)
--        # Don't enable LFS with uClinux
--        ;;
--      *)
--        cat >>confdefs.h <<\_ACEOF
-+
-+
-+
-+  ac_ext=cc
-+ac_cpp='$CXXCPP $CPPFLAGS'
-+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
-+
-+  ac_save_CXXFLAGS="$CXXFLAGS"
-+  CXXFLAGS="$CXXFLAGS -fno-exceptions"
-+  echo "$as_me:$LINENO: checking for LFS support" >&5
-+echo $ECHO_N "checking for LFS support... $ECHO_C" >&6
-+  if test "${glibcxx_cv_LFS+set}" = set; then
-+  echo $ECHO_N "(cached) $ECHO_C" >&6
-+else
-+
-+    if test x$gcc_no_link = xyes; then
-+  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
-+echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
-+   { (exit 1); exit 1; }; }
-+fi
-+cat >conftest.$ac_ext <<_ACEOF
-+/* confdefs.h.  */
-+_ACEOF
-+cat confdefs.h >>conftest.$ac_ext
-+cat >>conftest.$ac_ext <<_ACEOF
-+/* end confdefs.h.  */
-+#include <unistd.h>
-+       #include <stdio.h>
-+       #include <sys/stat.h>
-+
-+int
-+main ()
-+{
-+FILE* fp;
-+       fopen64("t", "w");
-+       fseeko64(fp, 0, SEEK_CUR);
-+       ftello64(fp);
-+       lseek64(1, 0, SEEK_CUR);
-+       struct stat64 buf;
-+       fstat64(1, &buf);
-+  ;
-+  return 0;
-+}
-+_ACEOF
-+rm -f conftest.$ac_objext conftest$ac_exeext
-+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
-+  (eval $ac_link) 2>conftest.er1
-+  ac_status=$?
-+  grep -v '^ *+' conftest.er1 >conftest.err
-+  rm -f conftest.er1
-+  cat conftest.err >&5
-+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-+  (exit $ac_status); } &&
-+	 { ac_try='test -z "$ac_cxx_werror_flag"
-+			 || test ! -s conftest.err'
-+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
-+  (eval $ac_try) 2>&5
-+  ac_status=$?
-+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-+  (exit $ac_status); }; } &&
-+	 { ac_try='test -s conftest$ac_exeext'
-+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
-+  (eval $ac_try) 2>&5
-+  ac_status=$?
-+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-+  (exit $ac_status); }; }; then
-+  glibcxx_cv_LFS=yes
-+else
-+  echo "$as_me: failed program was:" >&5
-+sed 's/^/| /' conftest.$ac_ext >&5
-+
-+glibcxx_cv_LFS=no
-+fi
-+rm -f conftest.err conftest.$ac_objext \
-+      conftest$ac_exeext conftest.$ac_ext
-+
-+fi
-+
-+  if test $glibcxx_cv_LFS = yes; then
-+
-+cat >>confdefs.h <<\_ACEOF
- #define _GLIBCXX_USE_LFS 1
- _ACEOF
- 
--    esac
-+  fi
-+  echo "$as_me:$LINENO: result: $glibcxx_cv_LFS" >&5
-+echo "${ECHO_T}$glibcxx_cv_LFS" >&6
-+  CXXFLAGS="$ac_save_CXXFLAGS"
-+  ac_ext=c
-+ac_cpp='$CPP $CPPFLAGS'
-+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-+ac_compiler_gnu=$ac_cv_c_compiler_gnu
- 
-+
-+
-     # For showmanyc_helper().
- 
- 
---- gcc-4.2.orig/libstdc++-v3/crossconfig.m4	(revision 120449)
-+++ gcc-4.2/libstdc++-v3/crossconfig.m4	(working copy)
-@@ -157,13 +157,7 @@
- 
-     # For LFS.
-     AC_DEFINE(HAVE_INT64_T)
--    case "$target" in
--      *-uclinux*)
--        # Don't enable LFS with uClinux
--        ;;
--      *)
--        AC_DEFINE(_GLIBCXX_USE_LFS)
--    esac
-+    GLIBCXX_CHECK_LFS
- 
-     # For showmanyc_helper().
-     AC_CHECK_HEADERS(sys/ioctl.h sys/filio.h)

^ permalink raw reply	[flat|nested] 12+ messages in thread
* [Buildroot] svn commit: trunk/buildroot/toolchain/gcc/4.2
@ 2007-01-06 19:39 aldot at uclibc.org
  0 siblings, 0 replies; 12+ messages in thread
From: aldot at uclibc.org @ 2007-01-06 19:39 UTC (permalink / raw)
  To: buildroot

Author: aldot
Date: 2007-01-06 11:39:51 -0800 (Sat, 06 Jan 2007)
New Revision: 17172

Log:
- simpler patch from Paolo Carlini for http://gcc.gnu.org/PR30365


Modified:
   trunk/buildroot/toolchain/gcc/4.2/307-libstdc++-largefile-reconf.patch


Changeset:
Modified: trunk/buildroot/toolchain/gcc/4.2/307-libstdc++-largefile-reconf.patch
===================================================================
--- trunk/buildroot/toolchain/gcc/4.2/307-libstdc++-largefile-reconf.patch	2007-01-06 10:31:45 UTC (rev 17171)
+++ trunk/buildroot/toolchain/gcc/4.2/307-libstdc++-largefile-reconf.patch	2007-01-06 19:39:51 UTC (rev 17172)
@@ -1,450 +1,131 @@
-diff -dup gcc-4.2.orig/libstdc++-v3/acinclude.m4 gcc-4.2/libstdc++-v3/acinclude.m4
---- gcc-4.2.orig/libstdc++-v3/acinclude.m4	2006-12-27 12:58:40.000000000 +0100
-+++ gcc-4.2/libstdc++-v3/acinclude.m4	2006-12-27 13:38:30.000000000 +0100
-@@ -554,7 +554,7 @@ AC_DEFUN([GLIBCXX_CHECK_LFS], [
-       [glibcxx_cv_LFS=yes],
-       [glibcxx_cv_LFS=no])
-   ])
--  if test $glibcxx_cv_LFS = yes; then
-+  if test $glibcxx_cv_LFS = yes && test $enable_largefile = yes; then
-     AC_DEFINE(_GLIBCXX_USE_LFS, 1, [Define if LFS support is available.])
-   fi
-   AC_MSG_RESULT($glibcxx_cv_LFS)
-diff -dup gcc-4.2.orig/libstdc++-v3/configure.ac gcc-4.2/libstdc++-v3/configure.ac
---- gcc-4.2.orig/libstdc++-v3/configure.ac	2006-12-27 12:58:40.000000000 +0100
-+++ gcc-4.2/libstdc++-v3/configure.ac	2006-12-27 13:38:30.000000000 +0100
-@@ -96,6 +96,7 @@ GLIBCXX_ENABLE_HOSTED
- GLIBCXX_ENABLE_SJLJ_EXCEPTIONS
- GLIBCXX_ENABLE_PCH($is_hosted)
+--- gcc-4.2.orig/libstdc++-v3/configure	(revision 120449)
++++ gcc-4.2/libstdc++-v3/configure	(working copy)
+@@ -99359,17 +99359,104 @@
+ #define HAVE_INT64_T 1
+ _ACEOF
  
-+AC_SYS_LARGEFILE
- # Enable all the variable C++ runtime options.  
- GLIBCXX_ENABLE_CSTDIO
- GLIBCXX_ENABLE_CLOCALE
-diff -dup gcc-4.2.orig/libstdc++-v3/crossconfig.m4 gcc-4.2/libstdc++-v3/crossconfig.m4
---- gcc-4.2.orig/libstdc++-v3/crossconfig.m4	2006-12-27 12:08:05.000000000 +0100
-+++ gcc-4.2/libstdc++-v3/crossconfig.m4	2006-12-27 13:25:16.000000000 +0100
-@@ -162,7 +162,9 @@ case "${host}" in
-         # Don't enable LFS with uClinux
-         ;;
-       *)
-+	if test x"$enable_largefile" = x"yes"; then
-         AC_DEFINE(_GLIBCXX_USE_LFS)
-+	fi
-     esac
- 
-     # For showmanyc_helper().
-diff -dup gcc-4.2.orig/libstdc++-v3/configure gcc-4.2/libstdc++-v3/configure
---- gcc-4.2.orig/libstdc++-v3/configure	2006-12-27 12:58:40.000000000 +0100
-+++ gcc-4.2/libstdc++-v3/configure	2006-12-27 13:38:30.000000000 +0100
-@@ -858,6 +858,7 @@ Optional Features:
-                           [default=auto]
-   --enable-libstdcxx-pch  build pre-compiled libstdc++ headers
-                           [default=$is_hosted]
-+  --disable-largefile     omit support for large files
-   --enable-cstdio=PACKAGE use target-specific I/O package
-                           [default=stdio]
-   --enable-clocale[=MODEL]
-@@ -4740,7 +4741,7 @@ test x"$pic_mode" = xno && libtool_flags
- case $host in
- *-*-irix6*)
-   # Find out which ABI we are using.
--  echo '#line 4743 "configure"' > conftest.$ac_ext
-+  echo '#line 4744 "configure"' > conftest.$ac_ext
-   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
-   (eval $ac_compile) 2>&5
-   ac_status=$?
-@@ -5489,6 +5490,370 @@ echo "${ECHO_T}$enable_libstdcxx_pch" >&
- 
- 
- 
-+# Check whether --enable-largefile or --disable-largefile was given.
-+if test "${enable_largefile+set}" = set; then
-+  enableval="$enable_largefile"
+-    case "$target" in
+-      *-uclinux*)
+-        # Don't enable LFS with uClinux
+-        ;;
+-      *)
+-        cat >>confdefs.h <<\_ACEOF
 +
-+fi;
-+if test "$enable_largefile" != no; then
 +
-+  echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
-+echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
-+if test "${ac_cv_sys_largefile_CC+set}" = set; then
-+  echo $ECHO_N "(cached) $ECHO_C" >&6
-+else
-+  ac_cv_sys_largefile_CC=no
-+     if test "$GCC" != yes; then
-+       ac_save_CC=$CC
-+       while :; do
-+     	 # IRIX 6.2 and later do not support large files by default,
-+     	 # so use the C compiler's -n32 option if that helps.
-+	 cat >conftest.$ac_ext <<_ACEOF
-+/* confdefs.h.  */
-+_ACEOF
-+cat confdefs.h >>conftest.$ac_ext
-+cat >>conftest.$ac_ext <<_ACEOF
-+/* end confdefs.h.  */
-+#include <sys/types.h>
-+ /* Check that off_t can represent 2**63 - 1 correctly.
-+    We can't simply define LARGE_OFF_T to be 9223372036854775807,
-+    since some C++ compilers masquerading as C compilers
-+    incorrectly reject 9223372036854775807.  */
-+#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
-+  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
-+		       && LARGE_OFF_T % 2147483647 == 1)
-+		      ? 1 : -1];
-+int
-+main ()
-+{
 +
-+  ;
-+  return 0;
-+}
-+_ACEOF
-+     	 rm -f conftest.$ac_objext
-+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
-+  (eval $ac_compile) 2>conftest.er1
-+  ac_status=$?
-+  grep -v '^ *+' conftest.er1 >conftest.err
-+  rm -f conftest.er1
-+  cat conftest.err >&5
-+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-+  (exit $ac_status); } &&
-+	 { ac_try='test -z "$ac_c_werror_flag"
-+			 || test ! -s conftest.err'
-+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
-+  (eval $ac_try) 2>&5
-+  ac_status=$?
-+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-+  (exit $ac_status); }; } &&
-+	 { ac_try='test -s conftest.$ac_objext'
-+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
-+  (eval $ac_try) 2>&5
-+  ac_status=$?
-+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-+  (exit $ac_status); }; }; then
-+  break
-+else
-+  echo "$as_me: failed program was:" >&5
-+sed 's/^/| /' conftest.$ac_ext >&5
++  ac_ext=cc
++ac_cpp='$CXXCPP $CPPFLAGS'
++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 +
-+fi
-+rm -f conftest.err conftest.$ac_objext
-+     	 CC="$CC -n32"
-+     	 rm -f conftest.$ac_objext
-+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
-+  (eval $ac_compile) 2>conftest.er1
-+  ac_status=$?
-+  grep -v '^ *+' conftest.er1 >conftest.err
-+  rm -f conftest.er1
-+  cat conftest.err >&5
-+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-+  (exit $ac_status); } &&
-+	 { ac_try='test -z "$ac_c_werror_flag"
-+			 || test ! -s conftest.err'
-+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
-+  (eval $ac_try) 2>&5
-+  ac_status=$?
-+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-+  (exit $ac_status); }; } &&
-+	 { ac_try='test -s conftest.$ac_objext'
-+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
-+  (eval $ac_try) 2>&5
-+  ac_status=$?
-+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-+  (exit $ac_status); }; }; then
-+  ac_cv_sys_largefile_CC=' -n32'; break
-+else
-+  echo "$as_me: failed program was:" >&5
-+sed 's/^/| /' conftest.$ac_ext >&5
-+
-+fi
-+rm -f conftest.err conftest.$ac_objext
-+	 break
-+       done
-+       CC=$ac_save_CC
-+       rm -f conftest.$ac_ext
-+    fi
-+fi
-+echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
-+echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
-+  if test "$ac_cv_sys_largefile_CC" != no; then
-+    CC=$CC$ac_cv_sys_largefile_CC
-+  fi
-+
-+  echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
-+echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
-+if test "${ac_cv_sys_file_offset_bits+set}" = set; then
++  ac_save_CXXFLAGS="$CXXFLAGS"
++  CXXFLAGS="$CXXFLAGS -fno-exceptions"
++  echo "$as_me:$LINENO: checking for LFS support" >&5
++echo $ECHO_N "checking for LFS support... $ECHO_C" >&6
++  if test "${glibcxx_cv_LFS+set}" = set; then
 +  echo $ECHO_N "(cached) $ECHO_C" >&6
 +else
-+  while :; do
-+  ac_cv_sys_file_offset_bits=no
-+  cat >conftest.$ac_ext <<_ACEOF
-+/* confdefs.h.  */
-+_ACEOF
-+cat confdefs.h >>conftest.$ac_ext
-+cat >>conftest.$ac_ext <<_ACEOF
-+/* end confdefs.h.  */
-+#include <sys/types.h>
-+ /* Check that off_t can represent 2**63 - 1 correctly.
-+    We can't simply define LARGE_OFF_T to be 9223372036854775807,
-+    since some C++ compilers masquerading as C compilers
-+    incorrectly reject 9223372036854775807.  */
-+#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
-+  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
-+		       && LARGE_OFF_T % 2147483647 == 1)
-+		      ? 1 : -1];
-+int
-+main ()
-+{
 +
-+  ;
-+  return 0;
-+}
-+_ACEOF
-+rm -f conftest.$ac_objext
-+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
-+  (eval $ac_compile) 2>conftest.er1
-+  ac_status=$?
-+  grep -v '^ *+' conftest.er1 >conftest.err
-+  rm -f conftest.er1
-+  cat conftest.err >&5
-+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-+  (exit $ac_status); } &&
-+	 { ac_try='test -z "$ac_c_werror_flag"
-+			 || test ! -s conftest.err'
-+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
-+  (eval $ac_try) 2>&5
-+  ac_status=$?
-+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-+  (exit $ac_status); }; } &&
-+	 { ac_try='test -s conftest.$ac_objext'
-+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
-+  (eval $ac_try) 2>&5
-+  ac_status=$?
-+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-+  (exit $ac_status); }; }; then
-+  break
-+else
-+  echo "$as_me: failed program was:" >&5
-+sed 's/^/| /' conftest.$ac_ext >&5
-+
++    if test x$gcc_no_link = xyes; then
++  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
++echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
++   { (exit 1); exit 1; }; }
 +fi
-+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
-+  cat >conftest.$ac_ext <<_ACEOF
++cat >conftest.$ac_ext <<_ACEOF
 +/* confdefs.h.  */
 +_ACEOF
 +cat confdefs.h >>conftest.$ac_ext
 +cat >>conftest.$ac_ext <<_ACEOF
 +/* end confdefs.h.  */
-+#define _FILE_OFFSET_BITS 64
-+#include <sys/types.h>
-+ /* Check that off_t can represent 2**63 - 1 correctly.
-+    We can't simply define LARGE_OFF_T to be 9223372036854775807,
-+    since some C++ compilers masquerading as C compilers
-+    incorrectly reject 9223372036854775807.  */
-+#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
-+  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
-+		       && LARGE_OFF_T % 2147483647 == 1)
-+		      ? 1 : -1];
-+int
-+main ()
-+{
++#include <unistd.h>
++       #include <stdio.h>
++       #include <sys/stat.h>
 +
-+  ;
-+  return 0;
-+}
-+_ACEOF
-+rm -f conftest.$ac_objext
-+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
-+  (eval $ac_compile) 2>conftest.er1
-+  ac_status=$?
-+  grep -v '^ *+' conftest.er1 >conftest.err
-+  rm -f conftest.er1
-+  cat conftest.err >&5
-+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-+  (exit $ac_status); } &&
-+	 { ac_try='test -z "$ac_c_werror_flag"
-+			 || test ! -s conftest.err'
-+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
-+  (eval $ac_try) 2>&5
-+  ac_status=$?
-+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-+  (exit $ac_status); }; } &&
-+	 { ac_try='test -s conftest.$ac_objext'
-+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
-+  (eval $ac_try) 2>&5
-+  ac_status=$?
-+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-+  (exit $ac_status); }; }; then
-+  ac_cv_sys_file_offset_bits=64; break
-+else
-+  echo "$as_me: failed program was:" >&5
-+sed 's/^/| /' conftest.$ac_ext >&5
-+
-+fi
-+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
-+  break
-+done
-+fi
-+echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
-+echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
-+if test "$ac_cv_sys_file_offset_bits" != no; then
-+
-+cat >>confdefs.h <<_ACEOF
-+#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
-+_ACEOF
-+
-+fi
-+rm -f conftest*
-+  echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
-+echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
-+if test "${ac_cv_sys_large_files+set}" = set; then
-+  echo $ECHO_N "(cached) $ECHO_C" >&6
-+else
-+  while :; do
-+  ac_cv_sys_large_files=no
-+  cat >conftest.$ac_ext <<_ACEOF
-+/* confdefs.h.  */
-+_ACEOF
-+cat confdefs.h >>conftest.$ac_ext
-+cat >>conftest.$ac_ext <<_ACEOF
-+/* end confdefs.h.  */
-+#include <sys/types.h>
-+ /* Check that off_t can represent 2**63 - 1 correctly.
-+    We can't simply define LARGE_OFF_T to be 9223372036854775807,
-+    since some C++ compilers masquerading as C compilers
-+    incorrectly reject 9223372036854775807.  */
-+#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
-+  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
-+		       && LARGE_OFF_T % 2147483647 == 1)
-+		      ? 1 : -1];
 +int
 +main ()
 +{
-+
++FILE* fp;
++       fopen64("t", "w");
++       fseeko64(fp, 0, SEEK_CUR);
++       ftello64(fp);
++       lseek64(1, 0, SEEK_CUR);
++       struct stat64 buf;
++       fstat64(1, &buf);
 +  ;
 +  return 0;
 +}
 +_ACEOF
-+rm -f conftest.$ac_objext
-+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
-+  (eval $ac_compile) 2>conftest.er1
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>conftest.er1
 +  ac_status=$?
 +  grep -v '^ *+' conftest.er1 >conftest.err
 +  rm -f conftest.er1
 +  cat conftest.err >&5
 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); } &&
-+	 { ac_try='test -z "$ac_c_werror_flag"
++	 { ac_try='test -z "$ac_cxx_werror_flag"
 +			 || test ! -s conftest.err'
 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 +  (eval $ac_try) 2>&5
 +  ac_status=$?
 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); }; } &&
-+	 { ac_try='test -s conftest.$ac_objext'
++	 { ac_try='test -s conftest$ac_exeext'
 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 +  (eval $ac_try) 2>&5
 +  ac_status=$?
 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 +  (exit $ac_status); }; }; then
-+  break
++  glibcxx_cv_LFS=yes
 +else
 +  echo "$as_me: failed program was:" >&5
 +sed 's/^/| /' conftest.$ac_ext >&5
 +
++glibcxx_cv_LFS=no
 +fi
-+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
-+  cat >conftest.$ac_ext <<_ACEOF
-+/* confdefs.h.  */
-+_ACEOF
-+cat confdefs.h >>conftest.$ac_ext
-+cat >>conftest.$ac_ext <<_ACEOF
-+/* end confdefs.h.  */
-+#define _LARGE_FILES 1
-+#include <sys/types.h>
-+ /* Check that off_t can represent 2**63 - 1 correctly.
-+    We can't simply define LARGE_OFF_T to be 9223372036854775807,
-+    since some C++ compilers masquerading as C compilers
-+    incorrectly reject 9223372036854775807.  */
-+#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
-+  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
-+		       && LARGE_OFF_T % 2147483647 == 1)
-+		      ? 1 : -1];
-+int
-+main ()
-+{
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
 +
-+  ;
-+  return 0;
-+}
-+_ACEOF
-+rm -f conftest.$ac_objext
-+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
-+  (eval $ac_compile) 2>conftest.er1
-+  ac_status=$?
-+  grep -v '^ *+' conftest.er1 >conftest.err
-+  rm -f conftest.er1
-+  cat conftest.err >&5
-+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-+  (exit $ac_status); } &&
-+	 { ac_try='test -z "$ac_c_werror_flag"
-+			 || test ! -s conftest.err'
-+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
-+  (eval $ac_try) 2>&5
-+  ac_status=$?
-+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-+  (exit $ac_status); }; } &&
-+	 { ac_try='test -s conftest.$ac_objext'
-+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
-+  (eval $ac_try) 2>&5
-+  ac_status=$?
-+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-+  (exit $ac_status); }; }; then
-+  ac_cv_sys_large_files=1; break
-+else
-+  echo "$as_me: failed program was:" >&5
-+sed 's/^/| /' conftest.$ac_ext >&5
-+
 +fi
-+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
-+  break
-+done
-+fi
-+echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
-+echo "${ECHO_T}$ac_cv_sys_large_files" >&6
-+if test "$ac_cv_sys_large_files" != no; then
 +
-+cat >>confdefs.h <<_ACEOF
-+#define _LARGE_FILES $ac_cv_sys_large_files
-+_ACEOF
++  if test $glibcxx_cv_LFS = yes; then
 +
-+fi
-+rm -f conftest*
-+fi
-+
- # Enable all the variable C++ runtime options.
++cat >>confdefs.h <<\_ACEOF
+ #define _GLIBCXX_USE_LFS 1
+ _ACEOF
  
-   echo "$as_me:$LINENO: checking for underlying I/O to use" >&5
-@@ -30152,7 +30517,7 @@ rm -f conftest.err conftest.$ac_objext \
+-    esac
++  fi
++  echo "$as_me:$LINENO: result: $glibcxx_cv_LFS" >&5
++echo "${ECHO_T}$glibcxx_cv_LFS" >&6
++  CXXFLAGS="$ac_save_CXXFLAGS"
++  ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
  
- fi
++
++
+     # For showmanyc_helper().
  
--  if test $glibcxx_cv_LFS = yes; then
-+  if test $glibcxx_cv_LFS = yes && test $enable_largefile = yes; then
  
- cat >>confdefs.h <<\_ACEOF
- #define _GLIBCXX_USE_LFS 1
-@@ -99434,10 +99799,12 @@ _ACEOF
-         # Don't enable LFS with uClinux
-         ;;
-       *)
-+	if test x"$enable_largefile" = x"yes"; then
-         cat >>confdefs.h <<\_ACEOF
- #define _GLIBCXX_USE_LFS 1
- _ACEOF
+--- gcc-4.2.orig/libstdc++-v3/crossconfig.m4	(revision 120449)
++++ gcc-4.2/libstdc++-v3/crossconfig.m4	(working copy)
+@@ -157,13 +157,7 @@
  
-+	fi
-     esac
+     # For LFS.
+     AC_DEFINE(HAVE_INT64_T)
+-    case "$target" in
+-      *-uclinux*)
+-        # Don't enable LFS with uClinux
+-        ;;
+-      *)
+-        AC_DEFINE(_GLIBCXX_USE_LFS)
+-    esac
++    GLIBCXX_CHECK_LFS
  
      # For showmanyc_helper().
-
+     AC_CHECK_HEADERS(sys/ioctl.h sys/filio.h)

^ permalink raw reply	[flat|nested] 12+ messages in thread
* [Buildroot] svn commit: trunk/buildroot/toolchain/gcc/4.2
@ 2007-01-04 20:24 aldot at uclibc.org
  0 siblings, 0 replies; 12+ messages in thread
From: aldot at uclibc.org @ 2007-01-04 20:24 UTC (permalink / raw)
  To: buildroot

Author: aldot
Date: 2007-01-04 12:24:28 -0800 (Thu, 04 Jan 2007)
New Revision: 17158

Log:
- fix typo


Modified:
   trunk/buildroot/toolchain/gcc/4.2/307-libstdc++-largefile-reconf.patch


Changeset:
Modified: trunk/buildroot/toolchain/gcc/4.2/307-libstdc++-largefile-reconf.patch
===================================================================
--- trunk/buildroot/toolchain/gcc/4.2/307-libstdc++-largefile-reconf.patch	2007-01-04 18:02:32 UTC (rev 17157)
+++ trunk/buildroot/toolchain/gcc/4.2/307-libstdc++-largefile-reconf.patch	2007-01-04 20:24:28 UTC (rev 17158)
@@ -28,7 +28,7 @@
          # Don't enable LFS with uClinux
          ;;
        *)
-+	if test x"$enable_lfs" = x"yes"; then
++	if test x"$enable_largefile" = x"yes"; then
          AC_DEFINE(_GLIBCXX_USE_LFS)
 +	fi
      esac
@@ -438,7 +438,7 @@
          # Don't enable LFS with uClinux
          ;;
        *)
-+	if test x"$enable_lfs" = x"yes"; then
++	if test x"$enable_largefile" = x"yes"; then
          cat >>confdefs.h <<\_ACEOF
  #define _GLIBCXX_USE_LFS 1
  _ACEOF

^ permalink raw reply	[flat|nested] 12+ messages in thread
* [Buildroot] svn commit: trunk/buildroot/toolchain/gcc/4.2
@ 2006-12-28  8:46 aldot at uclibc.org
  0 siblings, 0 replies; 12+ messages in thread
From: aldot at uclibc.org @ 2006-12-28  8:46 UTC (permalink / raw)
  To: buildroot

Author: aldot
Date: 2006-12-28 00:46:30 -0800 (Thu, 28 Dec 2006)
New Revision: 17096

Log:
- add missing namespace specifiers. Fixes compilation error.


Added:
   trunk/buildroot/toolchain/gcc/4.2/306-libstdc++-namespace.patch


Changeset:
Added: trunk/buildroot/toolchain/gcc/4.2/306-libstdc++-namespace.patch
===================================================================
--- trunk/buildroot/toolchain/gcc/4.2/306-libstdc++-namespace.patch	2006-12-28 05:44:47 UTC (rev 17095)
+++ trunk/buildroot/toolchain/gcc/4.2/306-libstdc++-namespace.patch	2006-12-28 08:46:30 UTC (rev 17096)
@@ -0,0 +1,36 @@
+diff -rup gcc-4.2.orig/libstdc++-v3/config/locale/uclibc/messages_members.h gcc-4.2/libstdc++-v3/config/locale/uclibc/messages_members.h
+--- gcc-4.2.orig/libstdc++-v3/config/locale/uclibc/messages_members.h	2006-12-22 13:06:56.000000000 +0100
++++ gcc-4.2/libstdc++-v3/config/locale/uclibc/messages_members.h	2006-12-22 15:23:41.000000000 +0100
+@@ -32,7 +32,8 @@
+ //
+ 
+ // Written by Benjamin Kosnik <bkoz@redhat.com>
+-
++namespace std
++{
+ #ifdef __UCLIBC_MJN3_ONLY__
+ #warning fix prototypes for *textdomain funcs
+ #endif
+@@ -115,3 +116,4 @@
+ 	   this->_S_create_c_locale(this->_M_c_locale_messages, __s); 
+ 	 }
+      }
++}
+diff -rup gcc-4.2.orig/libstdc++-v3/config/locale/uclibc/time_members.h gcc-4.2/libstdc++-v3/config/locale/uclibc/time_members.h
+--- gcc-4.2.orig/libstdc++-v3/config/locale/uclibc/time_members.h	2006-12-22 13:06:56.000000000 +0100
++++ gcc-4.2/libstdc++-v3/config/locale/uclibc/time_members.h	2006-12-22 15:20:31.000000000 +0100
+@@ -33,7 +33,8 @@
+ //
+ 
+ // Written by Benjamin Kosnik <bkoz@redhat.com>
+-
++namespace std
++{
+   template<typename _CharT>
+     __timepunct<_CharT>::__timepunct(size_t __refs) 
+     : facet(__refs), _M_data(NULL), _M_c_locale_timepunct(NULL), 
+@@ -74,3 +75,4 @@
+       delete _M_data; 
+       _S_destroy_c_locale(_M_c_locale_timepunct); 
+     }
++}

^ permalink raw reply	[flat|nested] 12+ messages in thread
* [Buildroot] svn commit: trunk/buildroot/toolchain/gcc/4.2
@ 2006-12-13 23:25 aldot at uclibc.org
  0 siblings, 0 replies; 12+ messages in thread
From: aldot at uclibc.org @ 2006-12-13 23:25 UTC (permalink / raw)
  To: buildroot

Author: aldot
Date: 2006-12-13 15:25:52 -0800 (Wed, 13 Dec 2006)
New Revision: 16911

Log:
- convert mudflap to non-legacy SUSv3


Added:
   trunk/buildroot/toolchain/gcc/4.2/305-libmudflap-susv3-legacy.patch


Changeset:
Added: trunk/buildroot/toolchain/gcc/4.2/305-libmudflap-susv3-legacy.patch
===================================================================
--- trunk/buildroot/toolchain/gcc/4.2/305-libmudflap-susv3-legacy.patch	2006-12-13 23:18:02 UTC (rev 16910)
+++ trunk/buildroot/toolchain/gcc/4.2/305-libmudflap-susv3-legacy.patch	2006-12-13 23:25:52 UTC (rev 16911)
@@ -0,0 +1,49 @@
+Index: gcc-4.2/libmudflap/mf-hooks2.c
+===================================================================
+--- gcc-4.2/libmudflap/mf-hooks2.c	(revision 119834)
++++ gcc-4.2/libmudflap/mf-hooks2.c	(working copy)
+@@ -427,7 +427,7 @@
+ {
+   TRACE ("%s\n", __PRETTY_FUNCTION__);
+   MF_VALIDATE_EXTENT(s, n, __MF_CHECK_WRITE, "bzero region");
+-  bzero (s, n);
++  memset (s, 0, n);
+ }
+ 
+ 
+@@ -437,7 +437,7 @@
+   TRACE ("%s\n", __PRETTY_FUNCTION__);
+   MF_VALIDATE_EXTENT(src, n, __MF_CHECK_READ, "bcopy src");
+   MF_VALIDATE_EXTENT(dest, n, __MF_CHECK_WRITE, "bcopy dest");
+-  bcopy (src, dest, n);
++  memmove (dest, src, n);
+ }
+ 
+ 
+@@ -447,7 +447,7 @@
+   TRACE ("%s\n", __PRETTY_FUNCTION__);
+   MF_VALIDATE_EXTENT(s1, n, __MF_CHECK_READ, "bcmp 1st arg");
+   MF_VALIDATE_EXTENT(s2, n, __MF_CHECK_READ, "bcmp 2nd arg");
+-  return bcmp (s1, s2, n);
++  return n == 0 ? 0 : memcmp (s1, s2, n);
+ }
+ 
+ 
+@@ -456,7 +456,7 @@
+   size_t n = strlen (s);
+   TRACE ("%s\n", __PRETTY_FUNCTION__);
+   MF_VALIDATE_EXTENT(s, CLAMPADD(n, 1), __MF_CHECK_READ, "index region");
+-  return index (s, c);
++  return strchr (s, c);
+ }
+ 
+ 
+@@ -465,7 +465,7 @@
+   size_t n = strlen (s);
+   TRACE ("%s\n", __PRETTY_FUNCTION__);
+   MF_VALIDATE_EXTENT(s, CLAMPADD(n, 1), __MF_CHECK_READ, "rindex region");
+-  return rindex (s, c);
++  return strrchr (s, c);
+ }
+ 
+ /* XXX:  stpcpy, memccpy */

^ permalink raw reply	[flat|nested] 12+ messages in thread
* [Buildroot] svn commit: trunk/buildroot/toolchain/gcc/4.2
@ 2006-09-28 10:35 aldot at uclibc.org
  0 siblings, 0 replies; 12+ messages in thread
From: aldot at uclibc.org @ 2006-09-28 10:35 UTC (permalink / raw)
  To: buildroot

Author: aldot
Date: 2006-09-28 03:35:12 -0700 (Thu, 28 Sep 2006)
New Revision: 16247

Log:
- rediff against current trunk.
  Now compiles again if locale is turned off..


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


Changeset:
Modified: trunk/buildroot/toolchain/gcc/4.2/205-uclibc-locale-update.patch
===================================================================
--- trunk/buildroot/toolchain/gcc/4.2/205-uclibc-locale-update.patch	2006-09-28 10:30:29 UTC (rev 16246)
+++ trunk/buildroot/toolchain/gcc/4.2/205-uclibc-locale-update.patch	2006-09-28 10:35:12 UTC (rev 16247)
@@ -81,27 +81,6 @@
        __freelocale(__cloc); 
    }
  
---- gcc/libstdc++-v3/config/locale/uclibc/c_locale.h.uclibc200_update~	2006-03-10 15:32:37 +0100
-+++ gcc/libstdc++-v3/config/locale/uclibc/c_locale.h	2006-03-10 15:39:14 +0100
-@@ -45,15 +45,16 @@
- #ifdef __UCLIBC_MJN3_ONLY__
- #warning fix this
- #endif
--#ifdef __UCLIBC_HAS_LOCALE__
-+#ifdef _GLIBCXX_USE_ICONV
- #include <iconv.h>		// For codecvt using iconv, iconv_t
- #endif
--#ifdef __UCLIBC_HAS_GETTEXT_AWARENESS__
-+#ifdef HAVE_LIBINTL_H
- #include <libintl.h> 		// For messages
- #endif
- #include <cstdarg>
- #ifdef __UCLIBC_MJN3_ONLY__
- #warning what is _GLIBCXX_C_LOCALE_GNU for
-+// psm: used in os/gnu-linux/ctype_noninline.h
- #endif
- #define _GLIBCXX_C_LOCALE_GNU 1
- 
 --- gcc/libstdc++-v3/config/locale/uclibc/ctype_members.cc.uclibc200_update~	2006-03-10 15:32:37 +0100
 +++ gcc/libstdc++-v3/config/locale/uclibc/ctype_members.cc	2006-03-10 15:39:14 +0100
 @@ -33,9 +33,14 @@
@@ -279,3 +258,90 @@
      }
  
    template<typename _CharT>
+--- gcc-4.2/libstdc++-v3/config/locale/uclibc/c_locale.h.old	2006-09-28 11:39:00.000000000 +0200
++++ gcc-4.2/libstdc++-v3/config/locale/uclibc/c_locale.h	2006-09-28 12:10:41.000000000 +0200
+@@ -39,21 +39,23 @@
+ #pragma GCC system_header
+ 
+ #include <cstring>              // get std::strlen
+-#include <cstdio>               // get std::snprintf or std::sprintf
++#include <cstdio>               // get std::vsnprintf or std::vsprintf
+ #include <clocale>
+ #include <langinfo.h>		// For codecvt
+ #ifdef __UCLIBC_MJN3_ONLY__
+ #warning fix this
+ #endif
+-#ifdef __UCLIBC_HAS_LOCALE__
++#ifdef _GLIBCXX_USE_ICONV
+ #include <iconv.h>		// For codecvt using iconv, iconv_t
+ #endif
+-#ifdef __UCLIBC_HAS_GETTEXT_AWARENESS__
+-#include <libintl.h> 		// For messages
++#ifdef HAVE_LIBINTL_H
++#include <libintl.h>		// For messages
+ #endif
++#include <cstdarg>
+ 
+ #ifdef __UCLIBC_MJN3_ONLY__
+ #warning what is _GLIBCXX_C_LOCALE_GNU for
++// psm: used in os/gnu-linux/ctype_noninline.h
+ #endif
+ #define _GLIBCXX_C_LOCALE_GNU 1
+ 
+@@ -62,7 +64,7 @@
+ #endif
+ // #define _GLIBCXX_NUM_CATEGORIES 6
+ #define _GLIBCXX_NUM_CATEGORIES 0
+- 
++
+ #ifdef __UCLIBC_HAS_XLOCALE__
+ namespace __gnu_cxx
+ {
+@@ -79,22 +81,24 @@
+   typedef int*			__c_locale;
+ #endif
+ 
+-  // Convert numeric value of type _Tv to string and return length of
+-  // string.  If snprintf is available use it, otherwise fall back to
+-  // the unsafe sprintf which, in general, can be dangerous and should
++  // Convert numeric value of type double to string and return length of
++  // string.  If vsnprintf is available use it, otherwise fall back to
++  // the unsafe vsprintf which, in general, can be dangerous and should
+   // be avoided.
+-  template<typename _Tv>
+-    int
+-    __convert_from_v(char* __out, 
+-		     const int __size __attribute__ ((__unused__)),
+-		     const char* __fmt,
+-#ifdef __UCLIBC_HAS_XCLOCALE__
+-		     _Tv __v, const __c_locale& __cloc, int __prec)
++    inline int
++    __convert_from_v(const __c_locale&
++#ifndef __UCLIBC_HAS_XCLOCALE__
++					__cloc __attribute__ ((__unused__))
++#endif
++		     ,
++		     char* __out,
++		     const int __size,
++		     const char* __fmt, ...)
+     {
++      va_list __args;
++#ifdef __UCLIBC_HAS_XCLOCALE__
+       __c_locale __old = __gnu_cxx::__uselocale(__cloc);
+ #else
+-		     _Tv __v, const __c_locale&, int __prec)
+-    {
+ # ifdef __UCLIBC_HAS_LOCALE__
+       char* __old = std::setlocale(LC_ALL, NULL);
+       char* __sav = new char[std::strlen(__old) + 1];
+@@ -103,7 +107,9 @@
+ # endif
+ #endif
+ 
+-      const int __ret = std::snprintf(__out, __size, __fmt, __prec, __v);
++      va_start(__args, __fmt);
++      const int __ret = std::vsnprintf(__out, __size, __fmt, __args);
++      va_end(__args);
+ 
+ #ifdef __UCLIBC_HAS_XCLOCALE__
+       __gnu_cxx::__uselocale(__old);

^ permalink raw reply	[flat|nested] 12+ messages in thread
* [Buildroot] svn commit: trunk/buildroot/toolchain/gcc/4.2
@ 2006-09-28 10:30 aldot at uclibc.org
  0 siblings, 0 replies; 12+ messages in thread
From: aldot at uclibc.org @ 2006-09-28 10:30 UTC (permalink / raw)
  To: buildroot

Author: aldot
Date: 2006-09-28 03:30:29 -0700 (Thu, 28 Sep 2006)
New Revision: 16246

Log:
- rediff against current trunk


Modified:
   trunk/buildroot/toolchain/gcc/4.2/800-arm-bigendian.patch


Changeset:
Modified: trunk/buildroot/toolchain/gcc/4.2/800-arm-bigendian.patch
===================================================================
--- trunk/buildroot/toolchain/gcc/4.2/800-arm-bigendian.patch	2006-09-28 10:19:43 UTC (rev 16245)
+++ trunk/buildroot/toolchain/gcc/4.2/800-arm-bigendian.patch	2006-09-28 10:30:29 UTC (rev 16246)
@@ -51,17 +51,17 @@
     SUBTARGET_EXTRA_LINK_SPEC
  
  #undef  LINK_SPEC
---- gcc-4.2.0/gcc/config.gcc
-+++ gcc-4.2.0/gcc/config.gcc
-@@ -694,6 +694,11 @@
- 	;;
- arm*-*-linux*)			# ARM GNU/Linux with ELF
- 	tm_file="dbxelf.h elfos.h linux.h arm/elf.h arm/linux-gas.h arm/linux-elf.h" 
-+	case $target in
+--- gcc-4.2.0/gcc/config.gcc.orig	2006-09-22 14:53:41.000000000 +0200
++++ gcc-4.2.0/gcc/config.gcc	2006-09-25 10:45:21.000000000 +0200
+@@ -696,6 +696,11 @@
+ 	tm_file="dbxelf.h elfos.h linux.h arm/elf.h arm/linux-gas.h arm/linux-elf.h"
+ 	tmake_file="${tmake_file} t-linux arm/t-arm"
+ 	case ${target} in
 +	arm*b-*)
 +		tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=1"
 +		;;
 +	esac
- 	tmake_file="${tmake_file} t-linux arm/t-arm"
- 	case ${target} in
++	case ${target} in
  	arm*-*-linux-*eabi)
+ 	    tm_file="$tm_file arm/bpabi.h arm/linux-eabi.h"
+ 	    tmake_file="$tmake_file arm/t-arm-elf arm/t-bpabi arm/t-linux-eabi"

^ permalink raw reply	[flat|nested] 12+ messages in thread
* [Buildroot] svn commit: trunk/buildroot/toolchain/gcc/4.2
@ 2006-09-11 18:12 aldot at uclibc.org
  0 siblings, 0 replies; 12+ messages in thread
From: aldot at uclibc.org @ 2006-09-11 18:12 UTC (permalink / raw)
  To: buildroot

Author: aldot
Date: 2006-09-11 11:12:13 -0700 (Mon, 11 Sep 2006)
New Revision: 16103

Log:
- add missing include


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


Changeset:
Modified: trunk/buildroot/toolchain/gcc/4.2/205-uclibc-locale-update.patch
===================================================================
--- trunk/buildroot/toolchain/gcc/4.2/205-uclibc-locale-update.patch	2006-09-11 17:42:44 UTC (rev 16102)
+++ trunk/buildroot/toolchain/gcc/4.2/205-uclibc-locale-update.patch	2006-09-11 18:12:13 UTC (rev 16103)
@@ -95,7 +95,7 @@
 +#ifdef HAVE_LIBINTL_H
  #include <libintl.h> 		// For messages
  #endif
- 
+ #include <cstdarg>
  #ifdef __UCLIBC_MJN3_ONLY__
  #warning what is _GLIBCXX_C_LOCALE_GNU for
 +// psm: used in os/gnu-linux/ctype_noninline.h

^ permalink raw reply	[flat|nested] 12+ messages in thread
* [Buildroot] svn commit: trunk/buildroot/toolchain/gcc/4.2
@ 2006-08-28 11:39 aldot at uclibc.org
  0 siblings, 0 replies; 12+ messages in thread
From: aldot at uclibc.org @ 2006-08-28 11:39 UTC (permalink / raw)
  To: buildroot

Author: aldot
Date: 2006-08-28 04:39:05 -0700 (Mon, 28 Aug 2006)
New Revision: 15999

Log:
- add rope-index patch, updated for 4.2.0


Added:
   trunk/buildroot/toolchain/gcc/4.2/304-index_macro.patch


Changeset:
Added: trunk/buildroot/toolchain/gcc/4.2/304-index_macro.patch
===================================================================
--- trunk/buildroot/toolchain/gcc/4.2/304-index_macro.patch	2006-08-28 09:41:49 UTC (rev 15998)
+++ trunk/buildroot/toolchain/gcc/4.2/304-index_macro.patch	2006-08-28 11:39:05 UTC (rev 15999)
@@ -0,0 +1,24 @@
+--- gcc-4.1.0/libstdc++-v3/include/ext/rope.mps	2006-03-24 01:49:51 +0100
++++ gcc-4.1.0/libstdc++-v3/include/ext/rope	2006-03-24 01:49:37 +0100
+@@ -59,6 +59,9 @@
+ #include <bits/allocator.h>
+ #include <ext/hash_fun.h>
+ 
++/* cope w/ index defined as macro, SuSv3 proposal */
++#undef index
++
+ # ifdef __GC
+ #   define __GC_CONST const
+ # else
+--- gcc-4.1.0/libstdc++-v3/include/ext/ropeimpl.h.mps	2006-03-24 01:50:04 +0100
++++ gcc-4.1.0/libstdc++-v3/include/ext/ropeimpl.h	2006-03-24 01:50:28 +0100
+@@ -53,6 +53,9 @@
+ #include <ext/memory> // For uninitialized_copy_n
+ #include <ext/numeric> // For power
+ 
++/* cope w/ index defined as macro, SuSv3 proposal */
++#undef index
++
+ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
+
+   using std::size_t;

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

end of thread, other threads:[~2007-02-10 19:36 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-28  8:47 [Buildroot] svn commit: trunk/buildroot/toolchain/gcc/4.2 aldot at uclibc.org
  -- strict thread matches above, loose matches on Subject: below --
2007-02-10 19:36 aldot at uclibc.org
2007-01-22 19:22 aldot at uclibc.org
2007-01-08 18:35 aldot at uclibc.org
2007-01-06 19:39 aldot at uclibc.org
2007-01-04 20:24 aldot at uclibc.org
2006-12-28  8:46 aldot at uclibc.org
2006-12-13 23:25 aldot at uclibc.org
2006-09-28 10:35 aldot at uclibc.org
2006-09-28 10:30 aldot at uclibc.org
2006-09-11 18:12 aldot at uclibc.org
2006-08-28 11:39 aldot at uclibc.org

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.