packages: gcc/gcc-branch.diff - updated.

pluto pluto at pld-linux.org
Tue Jun 15 20:24:11 CEST 2010


Author: pluto                        Date: Tue Jun 15 18:24:11 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- updated.

---- Files affected:
packages/gcc:
   gcc-branch.diff (1.32 -> 1.33) 

---- Diffs:

================================================================
Index: packages/gcc/gcc-branch.diff
diff -u packages/gcc/gcc-branch.diff:1.32 packages/gcc/gcc-branch.diff:1.33
--- packages/gcc/gcc-branch.diff:1.32	Tue Jun  8 10:55:30 2010
+++ packages/gcc/gcc-branch.diff	Tue Jun 15 20:24:02 2010
@@ -1,8 +1,190 @@
 Index: configure
 ===================================================================
---- configure	(.../tags/gcc_4_5_0_release)	(wersja 160426)
-+++ configure	(.../branches/gcc-4_5-branch)	(wersja 160426)
-@@ -6574,7 +6574,6 @@
+--- configure	(.../tags/gcc_4_5_0_release)	(revision 160798)
++++ configure	(.../branches/gcc-4_5-branch)	(revision 160798)
+@@ -5996,95 +5996,7 @@
+ 
+ 
+ 
+-
+-
+-target_elf=no
+-case $target in
+-  *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
+-  *-msdosdjgpp* | *-netware* | *-vms* | *-wince* | *-*-pe* | \
+-  alpha*-dec-osf* | *-interix*)
+-    target_elf=no
+-    ;;
+-  *)
+-    target_elf=yes
+-    ;;
+-esac
+-
+-if test $target_elf = yes; then :
+-
+-else
+-  if test x"$default_enable_lto" = x"yes" ; then
+-  enable_lto=no
+-else
+-  if test x"$enable_lto" = x"yes"; then
+-    as_fn_error "LTO support requires an ELF target." "$LINENO" 5
+-  fi
+-fi
+-default_enable_lto=no
+-fi
+-
+-
+-if test x"$enable_lto" = x"yes" ; then
+-  # Make sure that libelf.h and gelf.h are available.
+-
+-# Check whether --with-libelf was given.
+-if test "${with_libelf+set}" = set; then :
+-  withval=$with_libelf;
+-fi
+-
+-
+-
+-# Check whether --with-libelf_include was given.
+-if test "${with_libelf_include+set}" = set; then :
+-  withval=$with_libelf_include;
+-fi
+-
+-
+-
+-# Check whether --with-libelf_lib was given.
+-if test "${with_libelf_lib+set}" = set; then :
+-  withval=$with_libelf_lib;
+-fi
+-
+-
+-  saved_CFLAGS="$CFLAGS"
+-  saved_CPPFLAGS="$CPPFLAGS"
+-  saved_LIBS="$LIBS"
+-
+-  case $with_libelf in
+-    "")
+-      libelflibs="-lelf"
+-      libelfinc="-I/usr/include/libelf"
+-      ;;
+-    *)
+-      libelflibs="-L$with_libelf/lib -lelf"
+-      libelfinc="-I$with_libelf/include -I$with_libelf/include/libelf"
+-      LIBS="$libelflibs $LIBS"
+-      ;;
+-  esac
+-
+-  if test "x$with_libelf_include" != x; then
+-    libelfinc="-I$with_libelf_include"
+-  fi
+-
+-  if test "x$with_libelf_lib" != x; then
+-    libelflibs="-L$with_libelf_lib -lelf"
+-    LIBS="$libelflibs $LIBS"
+-  fi
+-
+-  if test "x$with_libelf$with_libelf_include$with_libelf_lib" = x \
+-     && test -d ${srcdir}/libelf; then
+-    libelflibs='-L$$r/$(HOST_SUBDIR)/libelf/lib -lelf '
+-    libelfinc='-D__LIBELF_INTERNAL__ -I$$r/$(HOST_SUBDIR)/libelf/lib -I$$s/libelf/lib'
+-    LIBS="$libelflibs $LIBS"
+-
+- else
+-
+-  CFLAGS="$CFLAGS $libelfinc"
+-  CPPFLAGS="$CPPFLAGS $libelfinc"
+-  LIBS="$LIBS $libelflibs"
+-
+-  ac_ext=c
++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'
+@@ -6482,7 +6394,83 @@
+ done
+ 
+ 
+-for ac_header in libelf.h
++
++
++
++target_elf=no
++case $target in
++  *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
++  *-msdosdjgpp* | *-netware* | *-vms* | *-wince* | *-*-pe* | \
++  alpha*-dec-osf* | *-interix*)
++    target_elf=no
++    ;;
++  *)
++    target_elf=yes
++    ;;
++esac
++
++if test $target_elf = yes; then :
++  if test x"$enable_lto" = x"yes" ; then
++  # Make sure that libelf.h and gelf.h are available.
++
++# Check whether --with-libelf was given.
++if test "${with_libelf+set}" = set; then :
++  withval=$with_libelf;
++fi
++
++
++
++# Check whether --with-libelf_include was given.
++if test "${with_libelf_include+set}" = set; then :
++  withval=$with_libelf_include;
++fi
++
++
++
++# Check whether --with-libelf_lib was given.
++if test "${with_libelf_lib+set}" = set; then :
++  withval=$with_libelf_lib;
++fi
++
++
++  saved_CFLAGS="$CFLAGS"
++  saved_CPPFLAGS="$CPPFLAGS"
++  saved_LIBS="$LIBS"
++
++  case $with_libelf in
++    "")
++      libelflibs="-lelf"
++      libelfinc="-I/usr/include/libelf"
++      ;;
++    *)
++      libelflibs="-L$with_libelf/lib -lelf"
++      libelfinc="-I$with_libelf/include -I$with_libelf/include/libelf"
++      LIBS="$libelflibs $LIBS"
++      ;;
++  esac
++
++  if test "x$with_libelf_include" != x; then
++    libelfinc="-I$with_libelf_include"
++  fi
++
++  if test "x$with_libelf_lib" != x; then
++    libelflibs="-L$with_libelf_lib -lelf"
++    LIBS="$libelflibs $LIBS"
++  fi
++
++  if test "x$with_libelf$with_libelf_include$with_libelf_lib" = x \
++     && test -d ${srcdir}/libelf; then
++    libelflibs='-L$$r/$(HOST_SUBDIR)/libelf/lib -lelf '
++    libelfinc='-D__LIBELF_INTERNAL__ -I$$r/$(HOST_SUBDIR)/libelf/lib -I$$s/libelf/lib'
++    LIBS="$libelflibs $LIBS"
++
++ else
++
++  CFLAGS="$CFLAGS $libelfinc"
++  CPPFLAGS="$CPPFLAGS $libelfinc"
++  LIBS="$LIBS $libelflibs"
++
++  for ac_header in libelf.h
+ do :
+   ac_fn_c_check_header_mongrel "$LINENO" "libelf.h" "ac_cv_header_libelf_h" "$ac_includes_default"
+ if test "x$ac_cv_header_libelf_h" = x""yes; then :
+@@ -6574,7 +6562,6 @@
        elf_nextscn (0, 0);
        elf_strptr (0, 0, 0);
        elf_getident (0, 0);
@@ -10,7 +192,7 @@
        elf_begin (0, 0, 0);
        elf_ndxscn (0);
        elf_end (0);
-@@ -6594,6 +6593,61 @@
+@@ -6594,6 +6581,61 @@
  rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
  
@@ -72,7 +254,37 @@
      # If we couldn't enable LTO and the user forced it, emit an error.
      if test x"$enable_lto" = x"no" \
         && test x"$default_enable_lto" != x"yes" ; then
-@@ -7610,7 +7664,7 @@
+@@ -6613,8 +6655,29 @@
+ 
+ 
+ fi
++else
++  if test x"$default_enable_lto" = x"yes" ; then
++    # On non-ELF platforms, LTO must be explicitly enabled.
++    enable_lto=no
++  else
++  # Apart from ELF platforms, only Windows supports LTO so far.  It
++  # would also be nice to check the binutils support, but we don't
++  # have gcc_GAS_CHECK_FEATURE available here.  For now, we'll just
++  # warn during gcc/ subconfigure; unless you're bootstrapping with
++  # -flto it won't be needed until after installation anyway.
++    case $target in
++      *-cygwin*|*-mingw*) ;;
++      *) if test x"$enable_lto" = x"yes"; then
++	as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
++        fi
++      ;;
++    esac
++  fi
++  default_enable_lto=no
++fi
+ 
+ 
++
+ # By default, C is the only stage 1 language.
+ stage1_languages=,c,
+ 
+@@ -7610,7 +7673,7 @@
         mv conftest.o conftest.o.g0 &&
         ${CC} -c -g conftest.c &&
         mv conftest.o conftest.o.g &&
@@ -81,10 +293,44 @@
        :
      else
        BUILD_CONFIG=
+Index: Makefile.in
+===================================================================
+--- Makefile.in	(.../tags/gcc_4_5_0_release)	(revision 160798)
++++ Makefile.in	(.../branches/gcc-4_5-branch)	(revision 160798)
+@@ -57763,6 +57763,14 @@
+ configure-stage4-gcc: maybe-all-stage4-gold
+ configure-stageprofile-gcc: maybe-all-stageprofile-gold
+ configure-stagefeedback-gcc: maybe-all-stagefeedback-gold
++configure-gcc: maybe-all-libelf
++
++configure-stage1-gcc: maybe-all-stage1-libelf
++configure-stage2-gcc: maybe-all-stage2-libelf
++configure-stage3-gcc: maybe-all-stage3-libelf
++configure-stage4-gcc: maybe-all-stage4-libelf
++configure-stageprofile-gcc: maybe-all-stageprofile-libelf
++configure-stagefeedback-gcc: maybe-all-stagefeedback-libelf
+ all-gcc: all-libiberty
+ 
+ all-stage1-gcc: all-stage1-libiberty
+@@ -57819,14 +57827,6 @@
+ all-stage4-gcc: maybe-all-stage4-cloog
+ all-stageprofile-gcc: maybe-all-stageprofile-cloog
+ all-stagefeedback-gcc: maybe-all-stagefeedback-cloog
+-all-gcc: maybe-all-libelf
+-
+-all-stage1-gcc: maybe-all-stage1-libelf
+-all-stage2-gcc: maybe-all-stage2-libelf
+-all-stage3-gcc: maybe-all-stage3-libelf
+-all-stage4-gcc: maybe-all-stage4-libelf
+-all-stageprofile-gcc: maybe-all-stageprofile-libelf
+-all-stagefeedback-gcc: maybe-all-stagefeedback-libelf
+ all-gcc: maybe-all-build-texinfo
+ 
+ all-stage1-gcc: maybe-all-build-texinfo
 Index: libgcc/config.host
 ===================================================================
---- libgcc/config.host	(.../tags/gcc_4_5_0_release)	(wersja 160426)
-+++ libgcc/config.host	(.../branches/gcc-4_5-branch)	(wersja 160426)
+--- libgcc/config.host	(.../tags/gcc_4_5_0_release)	(revision 160798)
++++ libgcc/config.host	(.../branches/gcc-4_5-branch)	(revision 160798)
 @@ -600,6 +600,7 @@
  i[34567]86-*-darwin* | x86_64-*-darwin* | \
    i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu | \
@@ -95,8 +341,8 @@
  	if test "${host_address}" = 32; then
 Index: libgcc/config/i386/32/sfp-machine.h
 ===================================================================
---- libgcc/config/i386/32/sfp-machine.h	(.../tags/gcc_4_5_0_release)	(wersja 160426)
-+++ libgcc/config/i386/32/sfp-machine.h	(.../branches/gcc-4_5-branch)	(wersja 160426)
+--- libgcc/config/i386/32/sfp-machine.h	(.../tags/gcc_4_5_0_release)	(revision 160798)
++++ libgcc/config/i386/32/sfp-machine.h	(.../branches/gcc-4_5-branch)	(revision 160798)
 @@ -142,8 +142,8 @@
      if (_fex & FP_EX_DIVZERO)						\
        {									\
@@ -110,8 +356,8 @@
        }									\
 Index: libgcc/ChangeLog
 ===================================================================
---- libgcc/ChangeLog	(.../tags/gcc_4_5_0_release)	(wersja 160426)
-+++ libgcc/ChangeLog	(.../branches/gcc-4_5-branch)	(wersja 160426)
+--- libgcc/ChangeLog	(.../tags/gcc_4_5_0_release)	(revision 160798)
++++ libgcc/ChangeLog	(.../branches/gcc-4_5-branch)	(revision 160798)
 @@ -1,3 +1,15 @@
 +2010-05-19  Rainer Orth  <ro at CeBiTec.Uni-Bielefeld.DE>
 +
@@ -128,10 +374,37 @@
  2010-04-14  Release Manager
  
  	* GCC 4.5.0 released.
+Index: libgomp/configure
+===================================================================
+--- libgomp/configure	(.../tags/gcc_4_5_0_release)	(revision 160798)
++++ libgomp/configure	(.../branches/gcc-4_5-branch)	(revision 160798)
+@@ -15379,7 +15379,7 @@
+ /* end confdefs.h.  */
+ #include <pthread.h>
+ 		__thread int a;
+-		static int *a_in_other_thread;
++		static int *volatile a_in_other_thread;
+ 		static void *
+ 		thread_func (void *arg)
+ 		{
+@@ -15391,11 +15391,11 @@
+ {
+ pthread_t thread;
+ 		void *thread_retval;
+-		int *a_in_main_thread;
++		int *volatile a_in_main_thread;
++		a_in_main_thread = &a;
+ 		if (pthread_create (&thread, (pthread_attr_t *)0,
+ 				    thread_func, (void *)0))
+ 		  return 0;
+-		a_in_main_thread = &a;
+ 		if (pthread_join (thread, &thread_retval))
+ 		  return 0;
+ 		return (a_in_other_thread == a_in_main_thread);
 Index: libgomp/sections.c
 ===================================================================
---- libgomp/sections.c	(.../tags/gcc_4_5_0_release)	(wersja 160426)
-+++ libgomp/sections.c	(.../branches/gcc-4_5-branch)	(wersja 160426)
+--- libgomp/sections.c	(.../tags/gcc_4_5_0_release)	(revision 160798)
++++ libgomp/sections.c	(.../branches/gcc-4_5-branch)	(revision 160798)
 @@ -1,4 +1,4 @@
 -/* Copyright (C) 2005, 2007, 2008, 2009 Free Software Foundation, Inc.
 +/* Copyright (C) 2005, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
@@ -167,9 +440,14 @@
  /* This routine is called when first encountering a sections construct
 Index: libgomp/ChangeLog
 ===================================================================
---- libgomp/ChangeLog	(.../tags/gcc_4_5_0_release)	(wersja 160426)
-+++ libgomp/ChangeLog	(.../branches/gcc-4_5-branch)	(wersja 160426)
-@@ -1,3 +1,24 @@
+--- libgomp/ChangeLog	(.../tags/gcc_4_5_0_release)	(revision 160798)
++++ libgomp/ChangeLog	(.../branches/gcc-4_5-branch)	(revision 160798)
+@@ -1,3 +1,29 @@
++2010-06-10  Iain Sandoe  <iains at gcc.gnu.org>
++
++	PR bootstrap/43170
++	* configure: Regenerate.
++
 +2010-04-26  Jakub Jelinek  <jakub at redhat.com>
 +
 +	PR c/43893
@@ -196,8 +474,8 @@
  	* GCC 4.5.0 released.
 Index: libgomp/testsuite/libgomp.c++/pr43893.C
 ===================================================================
---- libgomp/testsuite/libgomp.c++/pr43893.C	(.../tags/gcc_4_5_0_release)	(wersja 0)
-+++ libgomp/testsuite/libgomp.c++/pr43893.C	(.../branches/gcc-4_5-branch)	(wersja 160426)
+--- libgomp/testsuite/libgomp.c++/pr43893.C	(.../tags/gcc_4_5_0_release)	(revision 0)
++++ libgomp/testsuite/libgomp.c++/pr43893.C	(.../branches/gcc-4_5-branch)	(revision 160798)
 @@ -0,0 +1,125 @@
 +// PR c/43893
 +// { dg-do run }
@@ -326,8 +604,8 @@
 +}
 Index: libgomp/testsuite/libgomp.fortran/vla8.f90
 ===================================================================
---- libgomp/testsuite/libgomp.fortran/vla8.f90	(.../tags/gcc_4_5_0_release)	(wersja 0)
-+++ libgomp/testsuite/libgomp.fortran/vla8.f90	(.../branches/gcc-4_5-branch)	(wersja 160426)
+--- libgomp/testsuite/libgomp.fortran/vla8.f90	(.../tags/gcc_4_5_0_release)	(revision 0)
++++ libgomp/testsuite/libgomp.fortran/vla8.f90	(.../branches/gcc-4_5-branch)	(revision 160798)
 @@ -0,0 +1,254 @@
 +! { dg-do run }
 +
@@ -585,8 +863,8 @@
 +end
 Index: libgomp/testsuite/libgomp.c/pr43893.c
 ===================================================================
---- libgomp/testsuite/libgomp.c/pr43893.c	(.../tags/gcc_4_5_0_release)	(wersja 0)
-+++ libgomp/testsuite/libgomp.c/pr43893.c	(.../branches/gcc-4_5-branch)	(wersja 160426)
+--- libgomp/testsuite/libgomp.c/pr43893.c	(.../tags/gcc_4_5_0_release)	(revision 0)
++++ libgomp/testsuite/libgomp.c/pr43893.c	(.../branches/gcc-4_5-branch)	(revision 160798)
 @@ -0,0 +1,61 @@
 +/* PR c/43893 */
 +/* { dg-do run } */
@@ -651,8 +929,8 @@
 +}
 Index: libgomp/config/linux/proc.c
 ===================================================================
---- libgomp/config/linux/proc.c	(.../tags/gcc_4_5_0_release)	(wersja 160426)
-+++ libgomp/config/linux/proc.c	(.../branches/gcc-4_5-branch)	(wersja 160426)
+--- libgomp/config/linux/proc.c	(.../tags/gcc_4_5_0_release)	(revision 160798)
++++ libgomp/config/linux/proc.c	(.../branches/gcc-4_5-branch)	(revision 160798)
 @@ -1,4 +1,5 @@
 -/* Copyright (C) 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
 +/* Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010
@@ -693,8 +971,8 @@
  #ifdef _SC_NPROCESSORS_ONLN
 Index: libgomp/config/linux/affinity.c
 ===================================================================
---- libgomp/config/linux/affinity.c	(.../tags/gcc_4_5_0_release)	(wersja 160426)
-+++ libgomp/config/linux/affinity.c	(.../branches/gcc-4_5-branch)	(wersja 160426)
+--- libgomp/config/linux/affinity.c	(.../tags/gcc_4_5_0_release)	(revision 160798)
++++ libgomp/config/linux/affinity.c	(.../branches/gcc-4_5-branch)	(revision 160798)
 @@ -1,4 +1,4 @@
 -/* Copyright (C) 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
 +/* Copyright (C) 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
@@ -743,8 +1021,8 @@
    pthread_setaffinity_np (pthread_self (), sizeof (cpuset), &cpuset);
 Index: gcc/tree-vrp.c
 ===================================================================
---- gcc/tree-vrp.c	(.../tags/gcc_4_5_0_release)	(wersja 160426)
-+++ gcc/tree-vrp.c	(.../branches/gcc-4_5-branch)	(wersja 160426)
+--- gcc/tree-vrp.c	(.../tags/gcc_4_5_0_release)	(revision 160798)
++++ gcc/tree-vrp.c	(.../branches/gcc-4_5-branch)	(revision 160798)
 @@ -764,7 +764,28 @@
  	 && integer_zerop (vr->max);
  }
@@ -952,10 +1230,19 @@
    /* Nothing changed, don't add outgoing edges.  */
    return SSA_PROP_NOT_INTERESTING;
  
+@@ -7244,7 +7322,7 @@
+       single_val_range = NULL;
+     }
+ 
+-  substitute_and_fold (single_val_range, vrp_fold_stmt);
++  substitute_and_fold (single_val_range, vrp_fold_stmt, false);
+ 
+   if (warn_array_bounds)
+     check_all_array_refs ();
 Index: gcc/sched-ebb.c
 ===================================================================
---- gcc/sched-ebb.c	(.../tags/gcc_4_5_0_release)	(wersja 160426)
-+++ gcc/sched-ebb.c	(.../branches/gcc-4_5-branch)	(wersja 160426)
+--- gcc/sched-ebb.c	(.../tags/gcc_4_5_0_release)	(revision 160798)
++++ gcc/sched-ebb.c	(.../branches/gcc-4_5-branch)	(revision 160798)
 @@ -463,7 +463,7 @@
  schedule_ebb (rtx head, rtx tail)
  {
@@ -967,8 +1254,8 @@
    last_bb = BLOCK_FOR_INSN (tail);
 Index: gcc/doc/sourcebuild.texi
 ===================================================================
---- gcc/doc/sourcebuild.texi	(.../tags/gcc_4_5_0_release)	(wersja 160426)
-+++ gcc/doc/sourcebuild.texi	(.../branches/gcc-4_5-branch)	(wersja 160426)
+--- gcc/doc/sourcebuild.texi	(.../tags/gcc_4_5_0_release)	(revision 160798)
++++ gcc/doc/sourcebuild.texi	(.../branches/gcc-4_5-branch)	(revision 160798)
 @@ -1094,9 +1094,12 @@
  /* @{ dg-skip-if "" @{ *-*-* @}  @{ "-O2 -g" "-O3 -g" @} @{ "-fpic" @} @} */
  @end smallexample
@@ -1025,8 +1312,8 @@
  
 Index: gcc/doc/standards.texi
 ===================================================================
---- gcc/doc/standards.texi	(.../tags/gcc_4_5_0_release)	(wersja 160426)
-+++ gcc/doc/standards.texi	(.../branches/gcc-4_5-branch)	(wersja 160426)
+--- gcc/doc/standards.texi	(.../tags/gcc_4_5_0_release)	(revision 160798)
++++ gcc/doc/standards.texi	(.../branches/gcc-4_5-branch)	(revision 160798)
 @@ -183,7 +183,7 @@
  available on the ISO C++ committee's web site at
  @uref{http://www.open-std.org/jtc1/sc22/wg21/}. For information
@@ -1038,8 +1325,8 @@
  @option{-pedantic} (or @option{-pedantic-errors} if you want them to be
 Index: gcc/doc/install.texi
 ===================================================================
---- gcc/doc/install.texi	(.../tags/gcc_4_5_0_release)	(wersja 160426)
-+++ gcc/doc/install.texi	(.../branches/gcc-4_5-branch)	(wersja 160426)
+--- gcc/doc/install.texi	(.../tags/gcc_4_5_0_release)	(revision 160798)
++++ gcc/doc/install.texi	(.../branches/gcc-4_5-branch)	(revision 160798)
 @@ -361,7 +361,7 @@
  downloaded from @uref{http://www.mr511.de/software/libelf-0.8.12.tar.gz},
  though it is commonly available in several systems.  The versions in
@@ -1062,8 +1349,8 @@
  (instead of @code{.init} and @code{.fini}) for constructors and
 Index: gcc/lto-symtab.c
 ===================================================================
---- gcc/lto-symtab.c	(.../tags/gcc_4_5_0_release)	(wersja 160426)
-+++ gcc/lto-symtab.c	(.../branches/gcc-4_5-branch)	(wersja 160426)
+--- gcc/lto-symtab.c	(.../tags/gcc_4_5_0_release)	(revision 160798)
++++ gcc/lto-symtab.c	(.../branches/gcc-4_5-branch)	(revision 160798)
 @@ -94,9 +94,10 @@
    const struct lto_symtab_entry_def *base =
       (const struct lto_symtab_entry_def *) p;
@@ -1092,17 +1379,42 @@
      }
  
    e = (lto_symtab_entry_t) *slot;
+Index: gcc/opts-common.c
+===================================================================
+--- gcc/opts-common.c	(.../tags/gcc_4_5_0_release)	(revision 160798)
++++ gcc/opts-common.c	(.../branches/gcc-4_5-branch)	(revision 160798)
+@@ -132,6 +132,10 @@
+ {
+   int argc = *argcp;
+   int *options = XNEWVEC (int, argc);
++  /* We will only return this replacement argv if we remove at least
++     one argument, so it does not need to be size (argc + 1) to
++     make room for the terminating NULL because we will always have
++     freed up at least one slot when we end up using it at all.  */
+   char **argv = XNEWVEC (char *, argc);
+   int i, arg_count, need_prune = 0;
+   const struct cl_option *option;
+@@ -225,6 +229,9 @@
+     {
+       *argcp = arg_count;
+       *argvp = argv;
++      /* Add NULL-termination.  Guaranteed not to overflow because
++	 arg_count here can only be less than argc.  */
++      argv[arg_count] = 0;
+     }
+   else
+     {
 Index: gcc/DATESTAMP
 ===================================================================
---- gcc/DATESTAMP	(.../tags/gcc_4_5_0_release)	(wersja 160426)
-+++ gcc/DATESTAMP	(.../branches/gcc-4_5-branch)	(wersja 160426)
+--- gcc/DATESTAMP	(.../tags/gcc_4_5_0_release)	(revision 160798)
++++ gcc/DATESTAMP	(.../branches/gcc-4_5-branch)	(revision 160798)
 @@ -1 +1 @@
 -20100414
-+20100608
++20100615
 Index: gcc/tree-tailcall.c
 ===================================================================
---- gcc/tree-tailcall.c	(.../tags/gcc_4_5_0_release)	(wersja 160426)
-+++ gcc/tree-tailcall.c	(.../branches/gcc-4_5-branch)	(wersja 160426)
+--- gcc/tree-tailcall.c	(.../tags/gcc_4_5_0_release)	(revision 160798)
++++ gcc/tree-tailcall.c	(.../branches/gcc-4_5-branch)	(revision 160798)
 @@ -375,6 +375,8 @@
    tree m, a;
    basic_block abb;
@@ -1131,8 +1443,8 @@
       value.  The return value should also be dependent on each of them,
 Index: gcc/tree.c
 ===================================================================
---- gcc/tree.c	(.../tags/gcc_4_5_0_release)	(wersja 160426)
-+++ gcc/tree.c	(.../branches/gcc-4_5-branch)	(wersja 160426)
+--- gcc/tree.c	(.../tags/gcc_4_5_0_release)	(revision 160798)
++++ gcc/tree.c	(.../branches/gcc-4_5-branch)	(revision 160798)
 @@ -4265,7 +4265,12 @@
        TYPE_LANG_SLOT_1 (type) = NULL_TREE;
      }
@@ -1183,10 +1495,25 @@
  	       && ! TREE_STATIC (var))
  	      || TREE_CODE (var) == LABEL_DECL
  	      || TREE_CODE (var) == RESULT_DECL));
+Index: gcc/tree.h
+===================================================================
+--- gcc/tree.h	(.../tags/gcc_4_5_0_release)	(revision 160798)
++++ gcc/tree.h	(.../branches/gcc-4_5-branch)	(revision 160798)
+@@ -4940,9 +4940,8 @@
+ extern enum built_in_function builtin_mathfn_code (const_tree);
+ extern tree build_function_call_expr (location_t, tree, tree);
+ extern tree fold_builtin_call_array (location_t, tree, tree, int, tree *);
+-#define build_call_expr(...)\
+-   build_call_expr_loc (UNKNOWN_LOCATION, __VA_ARGS__)
+ extern tree build_call_expr_loc (location_t, tree, int, ...);
++extern tree build_call_expr (tree, int, ...);
+ extern tree mathfn_built_in (tree, enum built_in_function fn);
+ extern tree c_strlen (tree, int);
+ extern tree std_gimplify_va_arg_expr (tree, tree, gimple_seq *, gimple_seq *);
 Index: gcc/ddg.c
 ===================================================================
---- gcc/ddg.c	(.../tags/gcc_4_5_0_release)	(wersja 160426)
-+++ gcc/ddg.c	(.../branches/gcc-4_5-branch)	(wersja 160426)
+--- gcc/ddg.c	(.../tags/gcc_4_5_0_release)	(revision 160798)
++++ gcc/ddg.c	(.../branches/gcc-4_5-branch)	(revision 160798)
 @@ -390,7 +390,7 @@
  {
    int i;
@@ -1198,9 +1525,18 @@
    /* Build the dependence information, using the sched_analyze function.  */
 Index: gcc/configure
 ===================================================================
<<Diff was trimmed, longer than 597 lines>>

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/gcc/gcc-branch.diff?r1=1.32&r2=1.33&f=u



More information about the pld-cvs-commit mailing list