]> git.pld-linux.org Git - packages/gcc.git/blobdiff - gcc-branch.diff
- updated
[packages/gcc.git] / gcc-branch.diff
index 095a8b1081df4679bd408795a3104f6ada981d20..416648869cbc043c55ac91fd421572644ab9ec99 100644 (file)
 Index: configure
 ===================================================================
---- configure  (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ configure  (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -5780,8 +5780,6 @@
- # Check for PPL
--ppl_major_version=0
--ppl_minor_version=10
- ppllibs=" -lppl_c -lppl -lgmpxx"
- pplinc=
-@@ -5838,8 +5836,8 @@
- if test "x$with_ppl" != "xno" -a "${ENABLE_PPL_CHECK}" = "yes"; then
-   saved_CFLAGS="$CFLAGS"
-   CFLAGS="$CFLAGS $pplinc $gmpinc"
--  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version $ppl_major_version.$ppl_minor_version of PPL" >&5
--$as_echo_n "checking for version $ppl_major_version.$ppl_minor_version of PPL... " >&6; }
-+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 (or later revision) of PPL" >&5
-+$as_echo_n "checking for version 0.10 (or later revision) of PPL... " >&6; }
-   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h.  */
- #include "ppl_c.h"
-@@ -5847,7 +5845,7 @@
- main ()
- {
--  #if PPL_VERSION_MAJOR != $ppl_major_version || PPL_VERSION_MINOR != $ppl_minor_version
-+  #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 10
-   choke me
-   #endif
-Index: libgomp/configure.tgt
-===================================================================
---- libgomp/configure.tgt      (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ libgomp/configure.tgt      (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -125,6 +125,10 @@
-       config_path="bsd posix"
-       ;;
-+  mips-sgi-irix6*)
-+      # Need to link with -lpthread so libgomp.so is self-contained.
-+      XLDFLAGS="${XLDFLAGS} -lpthread"
-+      ;;
-   *)
-       ;;
-Index: libgomp/ChangeLog
-===================================================================
---- libgomp/ChangeLog  (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ libgomp/ChangeLog  (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -1,3 +1,18 @@
-+2011-01-16  Jakub Jelinek  <jakub@redhat.com>
+--- configure  (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ configure  (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -5117,7 +5117,7 @@
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
+ $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
+-if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
++if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
+   have_gnat=yes
+ else
+   have_gnat=no
+@@ -6944,10 +6944,6 @@
+     extra_arflags_for_target=" -X32_64"
+     extra_nmflags_for_target=" -B -X32_64"
+     ;;
+-  *-*-darwin[3-9]*)
+-    # ranlib before Darwin10 requires the -c flag to look at common symbols.
+-    extra_ranlibflags_for_target=" -c"
+-    ;;
+   mips*-*-pe | sh*-*-pe | *arm-wince-pe)
+     target_makefile_frag="config/mt-wince"
+     ;;
+Index: Makefile.in
+===================================================================
+--- Makefile.in        (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ Makefile.in        (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -60017,6 +60017,7 @@
+ install-gcc: maybe-install-fixincludes
+ install-gcc: maybe-install-lto-plugin
+ install-strip-gcc: maybe-install-strip-fixincludes
++install-strip-gcc: maybe-install-strip-lto-plugin
+ configure-libcpp: configure-libiberty
+ configure-stage1-libcpp: configure-stage1-libiberty
+Index: libgcc/config.host
+===================================================================
+--- libgcc/config.host (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ libgcc/config.host (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -145,15 +145,6 @@
+   asm_hidden_op=.private_extern
+   tmake_file="t-darwin ${cpu_type}/t-darwin t-slibgcc-darwin"
+   ;;
+-*-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
+-  # This is the place-holder for the generic a.out configuration
+-  # of FreeBSD.  No actual configuration resides here since
+-  # there was only ever a bare-bones ix86 configuration for
+-  # a.out and it exists solely in the machine-specific section.
+-  # This place-holder must exist to avoid dropping into
+-  # the generic ELF configuration of FreeBSD (i.e. it must be
+-  # ordered before that section).
+-  ;;
+ *-*-freebsd*)
+   # This is the generic ELF configuration of FreeBSD.  Later
+   # machine-specific sections may refine and add to this
+Index: libgcc/generic-morestack.c
+===================================================================
+--- libgcc/generic-morestack.c (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ libgcc/generic-morestack.c (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -459,8 +459,8 @@
+   sigemptyset (&__morestack_initial_sp.mask);
+   sigfillset (&__morestack_fullmask);
+-#ifdef __linux__
+-  /* On Linux, the first two real time signals are used by the NPTL
++#ifdef __GLIBC__
++  /* In glibc, the first two real time signals are used by the NPTL
+      threading library.  By taking them out of the set of signals, we
+      avoiding copying the signal mask in pthread_sigmask.  More
+      importantly, pthread_sigmask uses less stack space on x86_64.  */
+Index: libgcc/ChangeLog
+===================================================================
+--- libgcc/ChangeLog   (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ libgcc/ChangeLog   (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -1,3 +1,16 @@
++2011-12-15  H.J. Lu  <hongjiu.lu@intel.com>
 +
 +      Backport from mainline
-+      2010-12-14  Jakub Jelinek  <jakub@redhat.com>
-+
-+      PR fortran/46874
-+      * libgomp.fortran/allocatable6.f90: New test.
++      2011-12-14  H.J. Lu  <hongjiu.lu@intel.com>
 +
-+2010-12-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
++      * generic-morestack.c (__generic_morestack_set_initial_sp): Check
++      __GLIBC__ instead of __linux__ when using __SIGRTMIN.
 +
-+      Backport from mainline:
-+      2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
++2011-11-23  Gerald Pfeifer  <gerald@pfeifer.com>
 +
-+      * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
++      * config.host (*-*-freebsd[12], *-*-freebsd[12].*,
++      *-*-freebsd*aout*): Remove.
 +
- 2010-12-16  Release Manager
+ 2011-10-26  Release Manager
  
-       * GCC 4.5.2 released.
-Index: libgomp/testsuite/libgomp.fortran/allocatable6.f90
+       * GCC 4.6.2 released.
+Index: libtool.m4
 ===================================================================
---- libgomp/testsuite/libgomp.fortran/allocatable6.f90 (.../tags/gcc_4_5_2_release)    (wersja 0)
-+++ libgomp/testsuite/libgomp.fortran/allocatable6.f90 (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -0,0 +1,45 @@
-+! PR fortran/46874
-+! { dg-do run }
+--- libtool.m4 (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ libtool.m4 (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -2273,7 +2273,7 @@
+     objformat=`/usr/bin/objformat`
+   else
+     case $host_os in
+-    freebsd[[123]]*) objformat=aout ;;
++    freebsd[[23]].*) objformat=aout ;;
+     *) objformat=elf ;;
+     esac
+   fi
+@@ -2291,7 +2291,7 @@
+   esac
+   shlibpath_var=LD_LIBRARY_PATH
+   case $host_os in
+-  freebsd2*)
++  freebsd2.*)
+     shlibpath_overrides_runpath=yes
+     ;;
+   freebsd3.[[01]]* | freebsdelf3.[[01]]*)
+@@ -4804,7 +4804,7 @@
+       ;;
+     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
+-    freebsd2*)
++    freebsd2.*)
+       _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+       _LT_TAGVAR(hardcode_direct, $1)=yes
+       _LT_TAGVAR(hardcode_minus_L, $1)=yes
+@@ -5751,7 +5751,7 @@
+         esac
+         ;;
+-      freebsd[[12]]*)
++      freebsd2.*)
+         # C++ shared libraries reported to be fairly broken before
+       # switch to ELF
+         _LT_TAGVAR(ld_shlibs, $1)=no
+Index: libgomp/configure
+===================================================================
+--- libgomp/configure  (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ libgomp/configure  (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -9317,7 +9317,7 @@
+       ;;
+     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
+-    freebsd2*)
++    freebsd2.*)
+       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+       hardcode_direct=yes
+       hardcode_minus_L=yes
+@@ -10230,7 +10230,7 @@
+     objformat=`/usr/bin/objformat`
+   else
+     case $host_os in
+-    freebsd[123]*) objformat=aout ;;
++    freebsd[23].*) objformat=aout ;;
+     *) objformat=elf ;;
+     esac
+   fi
+@@ -10248,7 +10248,7 @@
+   esac
+   shlibpath_var=LD_LIBRARY_PATH
+   case $host_os in
+-  freebsd2*)
++  freebsd2.*)
+     shlibpath_overrides_runpath=yes
+     ;;
+   freebsd3.[01]* | freebsdelf3.[01]*)
+@@ -13164,7 +13164,7 @@
+       ;;
+     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
+-    freebsd2*)
++    freebsd2.*)
+       archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+       hardcode_direct_FC=yes
+       hardcode_minus_L_FC=yes
+@@ -13869,7 +13869,7 @@
+     objformat=`/usr/bin/objformat`
+   else
+     case $host_os in
+-    freebsd[123]*) objformat=aout ;;
++    freebsd[23].*) objformat=aout ;;
+     *) objformat=elf ;;
+     esac
+   fi
+@@ -13887,7 +13887,7 @@
+   esac
+   shlibpath_var=LD_LIBRARY_PATH
+   case $host_os in
+-  freebsd2*)
++  freebsd2.*)
+     shlibpath_overrides_runpath=yes
+     ;;
+   freebsd3.[01]* | freebsdelf3.[01]*)
+Index: libgomp/ChangeLog
+===================================================================
+--- libgomp/ChangeLog  (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ libgomp/ChangeLog  (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -1,3 +1,7 @@
++2011-11-20  Andreas Tobler  <andreast@fgznet.ch>
 +
-+  interface
-+    subroutine sub (a, b, c, d, n)
-+      integer :: n
-+      integer, allocatable :: a(:), b(:), c(:), d(:)
-+    end subroutine
-+  end interface
-+
-+  integer, allocatable :: a(:), b(:), c(:), d(:)
-+  integer :: i, j
-+  allocate (a(50), b(50), c(50), d(50))
-+  do i = 1, 50
-+    a(i) = 2 + modulo (i, 7)
-+    b(i) = 179 - modulo (i, 11)
-+  end do
-+  c = 0
-+  d = 2147483647
-+  call sub (a, b, c, d, 50)
-+  do i = 1, 50
-+    j = 0
-+    if (i .eq. 3) then
-+      j = 8
-+    else if (i .gt. 1 .and. i .lt. 9) then
-+      j = 7
-+    end if
-+    if (c(i) .ne. j) call abort
-+    j = 179 - modulo (i, 11)
-+    if (i .gt. 1 .and. i .lt. 9) j = i
-+    if (d(i) .ne. j) call abort
-+  end do
-+  deallocate (a, b, c, d)
-+end
++      * configure: Regenerate.
 +
-+subroutine sub (a, b, c, d, n)
-+  integer :: n
-+  integer, allocatable :: a(:), b(:), c(:), d(:)
-+!$omp parallel do shared(a, b) reduction(+:c) reduction(min:d)
-+  do i = 1, n
-+    c(a(i)) = c(a(i)) + 1
-+    d(i) = min(d(i), b(i))
-+    d(a(i)) = min(d(a(i)), a(i))
-+  end do
-+end
-Index: gcc/tree-vrp.c
+ 2011-10-26  Release Manager
+       * GCC 4.6.2 released.
+Index: libquadmath/configure
 ===================================================================
---- gcc/tree-vrp.c     (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/tree-vrp.c     (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -7290,6 +7290,7 @@
-   size_t i;
-   prop_value_t *single_val_range;
-   bool do_value_subst_p;
-+  unsigned num = num_ssa_names;
+--- libquadmath/configure      (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ libquadmath/configure      (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -8727,7 +8727,7 @@
+       ;;
  
-   if (dump_file)
-     {
-@@ -7301,10 +7302,10 @@
-   /* We may have ended with ranges that have exactly one value.  Those
-      values can be substituted as any other const propagated
-      value using substitute_and_fold.  */
--  single_val_range = XCNEWVEC (prop_value_t, num_ssa_names);
-+  single_val_range = XCNEWVEC (prop_value_t, num);
-   do_value_subst_p = false;
--  for (i = 0; i < num_ssa_names; i++)
-+  for (i = 0; i < num; i++)
-     if (vr_value[i]
-       && vr_value[i]->type == VR_RANGE
-       && vr_value[i]->min == vr_value[i]->max
-@@ -7332,7 +7333,7 @@
-   identify_jump_threads ();
-   /* Free allocated memory.  */
--  for (i = 0; i < num_ssa_names; i++)
-+  for (i = 0; i < num; i++)
-     if (vr_value[i])
-       {
-       BITMAP_FREE (vr_value[i]->equiv);
-Index: gcc/doc/extend.texi
-===================================================================
---- gcc/doc/extend.texi        (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/doc/extend.texi        (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -11873,6 +11873,12 @@
- vector float vec_div (vector float, vector float);
- vector double vec_div (vector double, vector double);
- vector double vec_floor (vector double);
-+vector double vec_ld (int, const vector double *);
-+vector double vec_ld (int, const double *);
-+vector double vec_ldl (int, const vector double *);
-+vector double vec_ldl (int, const double *);
-+vector unsigned char vec_lvsl (int, const volatile double *);
-+vector unsigned char vec_lvsr (int, const volatile double *);
- vector double vec_madd (vector double, vector double, vector double);
- vector double vec_max (vector double, vector double);
- vector double vec_min (vector double, vector double);
-@@ -11899,6 +11905,8 @@
- vector double vec_sub (vector double, vector double);
- vector float vec_sqrt (vector float);
- vector double vec_sqrt (vector double);
-+void vec_st (vector double, int, vector double *);
-+void vec_st (vector double, int, double *);
- vector double vec_trunc (vector double);
- vector double vec_xor (vector double, vector double);
- vector double vec_xor (vector double, vector bool long);
-@@ -11927,8 +11935,66 @@
- int vec_any_nle (vector double, vector double);
- int vec_any_nlt (vector double, vector double);
- int vec_any_numeric (vector double);
-+
-+vector double vec_vsx_ld (int, const vector double *);
-+vector double vec_vsx_ld (int, const double *);
-+vector float vec_vsx_ld (int, const vector float *);
-+vector float vec_vsx_ld (int, const float *);
-+vector bool int vec_vsx_ld (int, const vector bool int *);
-+vector signed int vec_vsx_ld (int, const vector signed int *);
-+vector signed int vec_vsx_ld (int, const int *);
-+vector signed int vec_vsx_ld (int, const long *);
-+vector unsigned int vec_vsx_ld (int, const vector unsigned int *);
-+vector unsigned int vec_vsx_ld (int, const unsigned int *);
-+vector unsigned int vec_vsx_ld (int, const unsigned long *);
-+vector bool short vec_vsx_ld (int, const vector bool short *);
-+vector pixel vec_vsx_ld (int, const vector pixel *);
-+vector signed short vec_vsx_ld (int, const vector signed short *);
-+vector signed short vec_vsx_ld (int, const short *);
-+vector unsigned short vec_vsx_ld (int, const vector unsigned short *);
-+vector unsigned short vec_vsx_ld (int, const unsigned short *);
-+vector bool char vec_vsx_ld (int, const vector bool char *);
-+vector signed char vec_vsx_ld (int, const vector signed char *);
-+vector signed char vec_vsx_ld (int, const signed char *);
-+vector unsigned char vec_vsx_ld (int, const vector unsigned char *);
-+vector unsigned char vec_vsx_ld (int, const unsigned char *);
-+
-+void vec_vsx_st (vector double, int, vector double *);
-+void vec_vsx_st (vector double, int, double *);
-+void vec_vsx_st (vector float, int, vector float *);
-+void vec_vsx_st (vector float, int, float *);
-+void vec_vsx_st (vector signed int, int, vector signed int *);
-+void vec_vsx_st (vector signed int, int, int *);
-+void vec_vsx_st (vector unsigned int, int, vector unsigned int *);
-+void vec_vsx_st (vector unsigned int, int, unsigned int *);
-+void vec_vsx_st (vector bool int, int, vector bool int *);
-+void vec_vsx_st (vector bool int, int, unsigned int *);
-+void vec_vsx_st (vector bool int, int, int *);
-+void vec_vsx_st (vector signed short, int, vector signed short *);
-+void vec_vsx_st (vector signed short, int, short *);
-+void vec_vsx_st (vector unsigned short, int, vector unsigned short *);
-+void vec_vsx_st (vector unsigned short, int, unsigned short *);
-+void vec_vsx_st (vector bool short, int, vector bool short *);
-+void vec_vsx_st (vector bool short, int, unsigned short *);
-+void vec_vsx_st (vector pixel, int, vector pixel *);
-+void vec_vsx_st (vector pixel, int, unsigned short *);
-+void vec_vsx_st (vector pixel, int, short *);
-+void vec_vsx_st (vector bool short, int, short *);
-+void vec_vsx_st (vector signed char, int, vector signed char *);
-+void vec_vsx_st (vector signed char, int, signed char *);
-+void vec_vsx_st (vector unsigned char, int, vector unsigned char *);
-+void vec_vsx_st (vector unsigned char, int, unsigned char *);
-+void vec_vsx_st (vector bool char, int, vector bool char *);
-+void vec_vsx_st (vector bool char, int, unsigned char *);
-+void vec_vsx_st (vector bool char, int, signed char *);
+     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
+-    freebsd2*)
++    freebsd2.*)
+       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+       hardcode_direct=yes
+       hardcode_minus_L=yes
+@@ -9643,7 +9643,7 @@
+     objformat=`/usr/bin/objformat`
+   else
+     case $host_os in
+-    freebsd[123]*) objformat=aout ;;
++    freebsd[23].*) objformat=aout ;;
+     *) objformat=elf ;;
+     esac
+   fi
+@@ -9661,7 +9661,7 @@
+   esac
+   shlibpath_var=LD_LIBRARY_PATH
+   case $host_os in
+-  freebsd2*)
++  freebsd2.*)
+     shlibpath_overrides_runpath=yes
+     ;;
+   freebsd3.[01]* | freebsdelf3.[01]*)
+Index: libquadmath/ChangeLog
+===================================================================
+--- libquadmath/ChangeLog      (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ libquadmath/ChangeLog      (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -1,3 +1,7 @@
++2011-11-20  Andreas Tobler  <andreast@fgznet.ch>
++
++      * configure: Regenerate.
++
+ 2011-10-26  Release Manager
+       * GCC 4.6.2 released.
+Index: gcc/doc/invoke.texi
+===================================================================
+--- gcc/doc/invoke.texi        (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/doc/invoke.texi        (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -7527,8 +7527,8 @@
+ bodies are read from these ELF sections and instantiated as if they
+ had been part of the same translation unit.
+-To use the link-timer optimizer, @option{-flto} needs to be specified at
+-compile time and during the final link.  For example,
++To use the link-time optimizer, @option{-flto} needs to be specified at
++compile time and during the final link.  For example:
+ @smallexample
+ gcc -c -O2 -flto foo.c
+@@ -7536,25 +7536,25 @@
+ gcc -o myprog -flto -O2 foo.o bar.o
  @end smallexample
  
-+Note that the @samp{vec_ld} and @samp{vec_st} builtins will always
-+generate the Altivec @samp{LVX} and @samp{STVX} instructions even
-+if the VSX instruction set is available.  The @samp{vec_vsx_ld} and
-+@samp{vec_vsx_st} builtins will always generate the VSX @samp{LXVD2X},
-+@samp{LXVW4X}, @samp{STXVD2X}, and @samp{STXVW4X} instructions.
-+
- GCC provides a few other builtins on Powerpc to access certain instructions:
+-The first two invocations to GCC will save a bytecode representation
++The first two invocations to GCC save a bytecode representation
+ of GIMPLE into special ELF sections inside @file{foo.o} and
+-@file{bar.o}.  The final invocation will read the GIMPLE bytecode from
+-@file{foo.o} and @file{bar.o}, merge the two files into a single
+-internal image, and compile the result as usual.  Since both
++@file{bar.o}.  The final invocation reads the GIMPLE bytecode from
++@file{foo.o} and @file{bar.o}, merges the two files into a single
++internal image, and compiles the result as usual.  Since both
+ @file{foo.o} and @file{bar.o} are merged into a single image, this
+-causes all the inter-procedural analyses and optimizations in GCC to
++causes all the interprocedural analyses and optimizations in GCC to
+ work across the two files as if they were a single one.  This means,
+-for example, that the inliner will be able to inline functions in
++for example, that the inliner is able to inline functions in
+ @file{bar.o} into functions in @file{foo.o} and vice-versa.
+-Another (simpler) way to enable link-time optimization is,
++Another (simpler) way to enable link-time optimization is:
  @smallexample
- float __builtin_recipdivf (float, float);
-@@ -12799,7 +12865,7 @@
- be a @var{constant-expression}, as defined in 5.19.2 of the ANSI/ISO C++
- standard.
--See @uref{http://people.redhat.com/drepper/tls.pdf,
-+See @uref{http://www.akkadia.org/drepper/tls.pdf,
- ELF Handling For Thread-Local Storage} for a detailed explanation of
- the four thread-local storage addressing models, and how the run-time
- is expected to function.
-Index: gcc/doc/install.texi
-===================================================================
---- gcc/doc/install.texi       (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/doc/install.texi       (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -44,9 +44,9 @@
- @settitle Installing GCC: GNU Free Documentation License
- @end ifset
--@c Copyright (C) 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
--@c 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 
--@c 2010 Free Software Foundation, Inc.
-+@c Copyright (C) 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1997,
-+@c 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
-+@c 2009, 2010, 2011 Free Software Foundation, Inc.
- @c *** Converted to texinfo by Dean Wakerley, dean@wakerley.com
- @c IMPORTANT: whenever you modify this file, run `install.texi2html' to
-@@ -72,8 +72,8 @@
- @c Part 2 Summary Description and Copyright
- @copying
- Copyright @copyright{} 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1997,
--1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
--2008 Free Software Foundation, Inc.
-+1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
-+2009, 2010, 2011 Free Software Foundation, Inc.
- @sp 1
- Permission is granted to copy, distribute and/or modify this document
- under the terms of the GNU Free Documentation License, Version 1.2 or
-@@ -2784,10 +2784,6 @@
- @end itemize
- @item
--Motorola 68HC11/68HC12---@uref{http://www.gnu-m68hc11.org,,GNU
--Development Tools for the Motorola 68HC11/68HC12}.
+ gcc -o myprog -flto -O2 foo.c bar.c
+ @end smallexample
+-The above will generate bytecode for @file{foo.c} and @file{bar.c},
+-merge them together into a single GIMPLE representation and optimize
++The above generates bytecode for @file{foo.c} and @file{bar.c},
++merges them together into a single GIMPLE representation and optimizes
+ them as usual to produce @file{myprog}.
+ The only important thing to keep in mind is that to enable link-time
+@@ -7564,30 +7564,22 @@
+ To make whole program optimization effective, it is necessary to make
+ certain whole program assumptions.  The compiler needs to know
+ what functions and variables can be accessed by libraries and runtime
+-outside of the link time optimized unit.  When supported by the linker,
+-the linker plugin (see @option{-fuse-linker-plugin}) passes to the
+-compiler information about used and externally visible symbols.  When
++outside of the link-time optimized unit.  When supported by the linker,
++the linker plugin (see @option{-fuse-linker-plugin}) passes information
++to the compiler about used and externally visible symbols.  When
+ the linker plugin is not available, @option{-fwhole-program} should be
+-used to allow the compiler to make these assumptions, which will lead
++used to allow the compiler to make these assumptions, which leads
+ to more aggressive optimization decisions.
+ Note that when a file is compiled with @option{-flto}, the generated
+-object file will be larger than a regular object file because it will
+-contain GIMPLE bytecodes and the usual final code.  This means that
+-object files with LTO information can be linked as a normal object
+-file.  So, in the previous example, if the final link is done with
++object file is larger than a regular object file because it 
++contains GIMPLE bytecodes and the usual final code.  This means that
++object files with LTO information can be linked as normal object
++files; if @option{-flto} is not passed to the linker, no
++interprocedural optimizations are applied.
+-@smallexample
+-gcc -o myprog foo.o bar.o
+-@end smallexample
 -
--@item
- @uref{http://www.sco.com/skunkware/devtools/index.html#gcc,,SCO
- OpenServer/Unixware}.
-@@ -3311,23 +3307,8 @@
- @heading @anchor{hppa-hp-hpux10}hppa*-hp-hpux10
- For hpux10.20, we @emph{highly} recommend you pick up the latest sed patch
--@code{PHCO_19798} from HP@.  HP has two sites which provide patches free of
--charge:
-+@code{PHCO_19798} from HP@.
--@itemize @bullet
--@item
--@html
--<a href="http://us.itrc.hp.com/service/home/home.do">US, Canada, Asia-Pacific, and
--Latin-America</a>
--@end html
--@ifnothtml
--@uref{http://us.itrc.hp.com/service/home/home.do,,} US, Canada, Asia-Pacific,
--and Latin-America.
--@end ifnothtml
--@item
--@uref{http://europe.itrc.hp.com/service/home/home.do,,} Europe.
--@end itemize
+-The only difference will be that no inter-procedural optimizations
+-will be applied to produce @file{myprog}.  The two object files
+-@file{foo.o} and @file{bar.o} will be simply sent to the regular
+-linker.
 -
- The C++ ABI has changed incompatibly in GCC 4.0.  COMDAT subspaces are
- used for one-only code and data.  This resolves many of the previous
- problems in using C++ on this target.  However, the ABI is not compatible
-Index: gcc/tree-ssa-loop-im.c
-===================================================================
---- gcc/tree-ssa-loop-im.c     (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/tree-ssa-loop-im.c     (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -2139,7 +2139,7 @@
-   edge ex;
-   for (i = 0; VEC_iterate (edge, exits, i, ex); i++)
--    if (ex->flags & EDGE_ABNORMAL)
-+    if (ex->flags & (EDGE_ABNORMAL | EDGE_EH))
-       return false;
+ Additionally, the optimization flags used to compile individual files
+-are not necessarily related to those used at link-time.  For instance,
++are not necessarily related to those used at link time.  For instance,
  
-   return true;
-Index: gcc/tree-loop-distribution.c
-===================================================================
---- gcc/tree-loop-distribution.c       (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/tree-loop-distribution.c       (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -251,7 +251,7 @@
+ @smallexample
+ gcc -c -O0 -flto foo.c
+@@ -7595,37 +7587,42 @@
+ gcc -o myprog -flto -O3 foo.o bar.o
+ @end smallexample
  
- /* Generate a call to memset.  Return true when the operation succeeded.  */
+-This will produce individual object files with unoptimized assembler
+-code, but the resulting binary @file{myprog} will be optimized at
+-@option{-O3}.  Now, if the final binary is generated without
+-@option{-flto}, then @file{myprog} will not be optimized.
++This produces individual object files with unoptimized assembler
++code, but the resulting binary @file{myprog} is optimized at
++@option{-O3}.  If, instead, the final binary is generated without
++@option{-flto}, then @file{myprog} is not optimized.
+-When producing the final binary with @option{-flto}, GCC will only
+-apply link-time optimizations to those files that contain bytecode.
++When producing the final binary with @option{-flto}, GCC only
++applies link-time optimizations to those files that contain bytecode.
+ Therefore, you can mix and match object files and libraries with
+-GIMPLE bytecodes and final object code.  GCC will automatically select
++GIMPLE bytecodes and final object code.  GCC automatically selects
+ which files to optimize in LTO mode and which files to link without
+ further processing.
+-There are some code generation flags that GCC will preserve when
++There are some code generation flags that GCC preserves when
+ generating bytecodes, as they need to be used during the final link
+ stage.  Currently, the following options are saved into the GIMPLE
+ bytecode files: @option{-fPIC}, @option{-fcommon} and all the
+ @option{-m} target flags.
+-At link time, these options are read-in and reapplied.  Note that the
+-current implementation makes no attempt at recognizing conflicting
+-values for these options.  If two or more files have a conflicting
+-value (e.g., one file is compiled with @option{-fPIC} and another
+-isn't), the compiler will simply use the last value read from the
+-bytecode files.  It is recommended, then, that all the files
+-participating in the same link be compiled with the same options.
++At link time, these options are read in and reapplied.  Note that the
++current implementation makes no attempt to recognize conflicting
++values for these options.  If different files have conflicting option
++values (e.g., one file is compiled with @option{-fPIC} and another
++isn't), the compiler simply uses the last value read from the
++bytecode files.  It is recommended, then, that you compile all the files
++participating in the same link with the same options.
++If LTO encounters objects with C linkage declared with incompatible
++types in separate translation units to be linked together (undefined
++behavior according to ISO C99 6.2.7), a non-fatal diagnostic may be
++issued.  The behavior is still undefined at runtime.
++
+ Another feature of LTO is that it is possible to apply interprocedural
+ optimizations on files written in different languages.  This requires
+-some support in the language front end.  Currently, the C, C++ and
++support in the language front end.  Currently, the C, C++ and
+ Fortran front ends are capable of emitting GIMPLE bytecodes, so
+-something like this should work
++something like this should work:
  
--static bool
-+static void
- generate_memset_zero (gimple stmt, tree op0, tree nb_iter,
-                     gimple_stmt_iterator bsi)
- {
-@@ -265,45 +265,27 @@
-   DR_STMT (dr) = stmt;
-   DR_REF (dr) = op0;
--  if (!dr_analyze_innermost (dr))
--    goto end;
-+  res = dr_analyze_innermost (dr);
-+  gcc_assert (res && stride_of_unit_type_p (DR_STEP (dr), TREE_TYPE (op0)));
--  /* Test for a positive stride, iterating over every element.  */
--  if (integer_zerop (size_binop (MINUS_EXPR,
--                               fold_convert (sizetype, DR_STEP (dr)),
--                               TYPE_SIZE_UNIT (TREE_TYPE (op0)))))
--    {
--      addr_base = fold_convert_loc (loc, sizetype,
--                                  size_binop_loc (loc, PLUS_EXPR,
--                                                  DR_OFFSET (dr),
--                                                  DR_INIT (dr)));
--      addr_base = fold_build2_loc (loc, POINTER_PLUS_EXPR,
--                                 TREE_TYPE (DR_BASE_ADDRESS (dr)),
--                                 DR_BASE_ADDRESS (dr), addr_base);
-+  nb_bytes = build_size_arg_loc (loc, nb_iter, op0, &stmt_list);
-+  addr_base = size_binop_loc (loc, PLUS_EXPR, DR_OFFSET (dr), DR_INIT (dr));
-+  addr_base = fold_convert_loc (loc, sizetype, addr_base);
--      nb_bytes = build_size_arg_loc (loc, nb_iter, op0, &stmt_list);
--    }
--
-   /* Test for a negative stride, iterating over every element.  */
--  else if (integer_zerop (size_binop (PLUS_EXPR,
--                                    TYPE_SIZE_UNIT (TREE_TYPE (op0)),
--                                    fold_convert (sizetype, DR_STEP (dr)))))
-+  if (integer_zerop (size_binop (PLUS_EXPR,
-+                               TYPE_SIZE_UNIT (TREE_TYPE (op0)),
-+                               fold_convert (sizetype, DR_STEP (dr)))))
-     {
--      nb_bytes = build_size_arg_loc (loc, nb_iter, op0, &stmt_list);
+ @smallexample
+ gcc -c -flto foo.c
+@@ -7637,49 +7634,43 @@
+ Notice that the final link is done with @command{g++} to get the C++
+ runtime libraries and @option{-lgfortran} is added to get the Fortran
+ runtime libraries.  In general, when mixing languages in LTO mode, you
+-should use the same link command used when mixing languages in a
+-regular (non-LTO) compilation.  This means that if your build process
+-was mixing languages before, all you need to add is @option{-flto} to
++should use the same link command options as when mixing languages in a
++regular (non-LTO) compilation; all you need to add is @option{-flto} to
+ all the compile and link commands.
+-If LTO encounters objects with C linkage declared with incompatible
+-types in separate translation units to be linked together (undefined
+-behavior according to ISO C99 6.2.7), a non-fatal diagnostic may be
+-issued.  The behavior is still undefined at runtime.
 -
--      addr_base = size_binop_loc (loc, PLUS_EXPR, DR_OFFSET (dr), DR_INIT (dr));
--      addr_base = fold_convert_loc (loc, sizetype, addr_base);
-       addr_base = size_binop_loc (loc, MINUS_EXPR, addr_base,
-                                 fold_convert_loc (loc, sizetype, nb_bytes));
-       addr_base = size_binop_loc (loc, PLUS_EXPR, addr_base,
-                                 TYPE_SIZE_UNIT (TREE_TYPE (op0)));
--      addr_base = fold_build2_loc (loc, POINTER_PLUS_EXPR,
--                                 TREE_TYPE (DR_BASE_ADDRESS (dr)),
--                                 DR_BASE_ADDRESS (dr), addr_base);
-     }
--  else
--    goto end;
-+  addr_base = fold_build2_loc (loc, POINTER_PLUS_EXPR,
-+                             TREE_TYPE (DR_BASE_ADDRESS (dr)),
-+                             DR_BASE_ADDRESS (dr), addr_base);
-   mem = force_gimple_operand (addr_base, &stmts, true, NULL);
-   gimple_seq_add_seq (&stmt_list, stmts);
-@@ -311,14 +293,11 @@
-   fn_call = gimple_build_call (fn, 3, mem, integer_zero_node, nb_bytes);
-   gimple_seq_add_stmt (&stmt_list, fn_call);
-   gsi_insert_seq_after (&bsi, stmt_list, GSI_CONTINUE_LINKING);
--  res = true;
-   if (dump_file && (dump_flags & TDF_DETAILS))
-     fprintf (dump_file, "generated memset zero\n");
-- end:
-   free_data_ref (dr);
--  return res;
- }
+ If object files containing GIMPLE bytecode are stored in a library archive, say
+ @file{libfoo.a}, it is possible to extract and use them in an LTO link if you
+-are using a linker with linker plugin support.  To enable this feature, use
+-the flag @option{-fuse-linker-plugin} at link-time:
++are using a linker with plugin support.  To enable this feature, use
++the flag @option{-fuse-linker-plugin} at link time:
  
- /* Tries to generate a builtin function for the instructions of LOOP
-@@ -332,7 +311,6 @@
-   unsigned i, x = 0;
-   basic_block *bbs;
-   gimple write = NULL;
--  tree op0, op1;
-   gimple_stmt_iterator bsi;
-   tree nb_iter = number_of_exit_cond_executions (loop);
+ @smallexample
+ gcc -o myprog -O2 -flto -fuse-linker-plugin a.o b.o -lfoo
+ @end smallexample
  
-@@ -368,26 +346,17 @@
-       }
-     }
+-With the linker plugin enabled, the linker will extract the needed
+-GIMPLE files from @file{libfoo.a} and pass them on to the running GCC
++With the linker plugin enabled, the linker extracts the needed
++GIMPLE files from @file{libfoo.a} and passes them on to the running GCC
+ to make them part of the aggregated GIMPLE image to be optimized.
+-If you are not using a linker with linker plugin support and/or do not 
+-enable linker plugin then the objects inside @file{libfoo.a}
+-will be extracted and linked as usual, but they will not participate
++If you are not using a linker with plugin support and/or do not
++enable the linker plugin, then the objects inside @file{libfoo.a}
++are extracted and linked as usual, but they do not participate
+ in the LTO optimization process.
+-Link time optimizations do not require the presence of the whole program to
++Link-time optimizations do not require the presence of the whole program to
+ operate.  If the program does not require any symbols to be exported, it is
+-possible to combine @option{-flto} and with @option{-fwhole-program} to allow
++possible to combine @option{-flto} and @option{-fwhole-program} to allow
+ the interprocedural optimizers to use more aggressive assumptions which may
+ lead to improved optimization opportunities. 
+ Use of @option{-fwhole-program} is not needed when linker plugin is
+ active (see @option{-fuse-linker-plugin}).
+-Regarding portability: the current implementation of LTO makes no
+-attempt at generating bytecode that can be ported between different
++The current implementation of LTO makes no
++attempt to generate bytecode that is portable between different
+ types of hosts.  The bytecode files are versioned and there is a
+ strict version check, so bytecode files generated in one version of
+ GCC will not work with an older/newer version of GCC.
+-Link time optimization does not play well with generating debugging
++Link-time optimization does not work well with generation of debugging
+ information.  Combining @option{-flto} with
+ @option{-g} is currently experimental and expected to produce wrong
+ results.
+@@ -7693,15 +7684,15 @@
+ You can also specify @option{-flto=jobserver} to use GNU make's 
+ job server mode to determine the number of parallel jobs. This 
+ is useful when the Makefile calling GCC is already executing in parallel.
+-The parent Makefile will need a @samp{+} prepended to the command recipe
+-for this to work. This will likely only work if @env{MAKE} is 
++You must prepend a @samp{+} to the command recipe in the parent Makefile
++for this to work.  This option likely only works if @env{MAKE} is
+ GNU make.
+ This option is disabled by default.
+ @item -flto-partition=@var{alg}
+ @opindex flto-partition
+-Specify the partitioning algorithm used by the link time optimizer.
++Specify the partitioning algorithm used by the link-time optimizer.
+ The value is either @code{1to1} to specify a partitioning mirroring
+ the original source files or @code{balanced} to specify partitioning
+ into equally sized chunks (whenever possible).  Specifying @code{none}
+@@ -7718,27 +7709,29 @@
+ @item -flto-report
+ Prints a report with internal details on the workings of the link-time
+-optimizer.  The contents of this report vary from version to version,
+-it is meant to be useful to GCC developers when processing object
++optimizer.  The contents of this report vary from version to version.
++It is meant to be useful to GCC developers when processing object
+ files in LTO mode (via @option{-flto}).
+ Disabled by default.
+ @item -fuse-linker-plugin
+-Enables the use of linker plugin during link time optimization.  This option
+-relies on the linker plugin support in linker that is available in gold
++Enables the use of a linker plugin during link-time optimization.  This
++option relies on the linker plugin support in linker that is available in gold
+ or in GNU ld 2.21 or newer.
+-This option enables the extraction of object files with GIMPLE bytecode out of
+-library archives. This improves the quality of optimization by exposing more
+-code the the link time optimizer.  This information specify what symbols 
+-can be accessed externally (by non-LTO object or during dynamic linking).
+-Resulting code quality improvements on binaries (and shared libraries that do
+-use hidden visibility) is similar to @code{-fwhole-program}.  See
+-@option{-flto} for a description on the effect of this flag and how to use it.
++This option enables the extraction of object files with GIMPLE bytecode out
++of library archives. This improves the quality of optimization by exposing
++more code to the link-time optimizer.  This information specifies what
++symbols can be accessed externally (by non-LTO object or during dynamic
++linking).  Resulting code quality improvements on binaries (and shared
++libraries that use hidden visibility) are similar to @code{-fwhole-program}.
++See @option{-flto} for a description of the effect of this flag and how to
++use it.
+-Enabled by default when LTO support in GCC is enabled and GCC was compiled
+-with a linker supporting plugins (GNU ld 2.21 or newer or gold).
++This option is enabled by default when LTO support in GCC is enabled
++and GCC was configured for use with
++a linker supporting plugins (GNU ld 2.21 or newer or gold).
+ @item -fcompare-elim
+ @opindex fcompare-elim
+Index: gcc/c-family/ChangeLog
+===================================================================
+--- gcc/c-family/ChangeLog     (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/c-family/ChangeLog     (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -1,3 +1,15 @@
++2011-11-04  Eric Botcazou  <ebotcazou@adacore.com>
++
++      PR c++/50608
++      * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
++      (fold_offsetof_1): Make global.  Remove STOP_REF argument and adjust.
++      <INDIRECT_REF>: Return the argument.
++      <ARRAY_REF>: Remove special code for negative offset.
++      Call fold_build_pointer_plus instead of size_binop.
++      (fold_offsetof): Remove STOP_REF argument and adjust.
++      * c-common.h (fold_offsetof_1): Declare.
++      (fold_offsetof): Remove STOP_REF argument.
++
+ 2011-10-26  Release Manager
+       * GCC 4.6.2 released.
+Index: gcc/c-family/c-common.c
+===================================================================
+--- gcc/c-family/c-common.c    (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/c-family/c-common.c    (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -1236,13 +1236,7 @@
+         && (op1 = get_base_address (op0)) != NULL_TREE
+         && TREE_CODE (op1) == INDIRECT_REF
+         && TREE_CONSTANT (TREE_OPERAND (op1, 0)))
+-      {
+-        tree offset = fold_offsetof (op0, op1);
+-        op1
+-          = fold_convert_loc (loc, TREE_TYPE (expr), TREE_OPERAND (op1, 0));
+-        ret = fold_build2_loc (loc, POINTER_PLUS_EXPR, TREE_TYPE (expr), op1,
+-                               offset);
+-      }
++      ret = fold_convert_loc (loc, TREE_TYPE (expr), fold_offsetof_1 (op0));
+       else if (op0 != orig_op0 || in_init)
+       ret = in_init
+         ? fold_build1_initializer_loc (loc, code, TREE_TYPE (expr), op0)
+@@ -8459,20 +8453,15 @@
+     return uc;
+ }
  
--  if (!write)
-+  if (!stmt_with_adjacent_zero_store_dr_p (write))
-     goto end;
+-/* Build the result of __builtin_offsetof.  EXPR is a nested sequence of
+-   component references, with STOP_REF, or alternatively an INDIRECT_REF of
+-   NULL, at the bottom; much like the traditional rendering of offsetof as a
+-   macro.  Returns the folded and properly cast result.  */
++/* Fold an offsetof-like expression.  EXPR is a nested sequence of component
++   references with an INDIRECT_REF of a constant at the bottom; much like the
++   traditional rendering of offsetof as a macro.  Return the folded result.  */
+-static tree
+-fold_offsetof_1 (tree expr, tree stop_ref)
++tree
++fold_offsetof_1 (tree expr)
+ {
+-  enum tree_code code = PLUS_EXPR;
+   tree base, off, t;
  
--  op0 = gimple_assign_lhs (write);
--  op1 = gimple_assign_rhs1 (write);
+-  if (expr == stop_ref && TREE_CODE (expr) != ERROR_MARK)
+-    return size_zero_node;
 -
--  if (!(TREE_CODE (op0) == ARRAY_REF
--      || TREE_CODE (op0) == INDIRECT_REF))
--    goto end;
--
-   /* The new statements will be placed before LOOP.  */
-   bsi = gsi_last_bb (loop_preheader_edge (loop)->src);
-+  generate_memset_zero (write, gimple_assign_lhs (write), nb_iter, bsi);
-+  res = true;
--  if (gimple_assign_rhs_code (write) == INTEGER_CST
--      && (integer_zerop (op1) || real_zerop (op1)))
--    res = generate_memset_zero (write, op0, nb_iter, bsi);
--
-   /* If this is the last partition for which we generate code, we have
-      to destroy the loop.  */
--  if (res && !copy_p)
-+  if (!copy_p)
+   switch (TREE_CODE (expr))
      {
-       unsigned nbbs = loop->num_nodes;
-       edge exit = single_exit (loop);
-@@ -531,24 +500,6 @@
- static void rdg_flag_vertex_and_dependent (struct graph *, int, bitmap, bitmap,
-                                          bitmap, bool *);
+     case ERROR_MARK:
+@@ -8489,15 +8478,15 @@
  
--/* Flag all the uses of U.  */
--
--static void
--rdg_flag_all_uses (struct graph *rdg, int u, bitmap partition, bitmap loops,
--                 bitmap processed, bool *part_has_writes)
--{
--  struct graph_edge *e;
--
--  for (e = rdg->vertices[u].succ; e; e = e->succ_next)
--    if (!bitmap_bit_p (processed, e->dest))
--      {
--      rdg_flag_vertex_and_dependent (rdg, e->dest, partition, loops,
--                                     processed, part_has_writes);
--      rdg_flag_all_uses (rdg, e->dest, partition, loops, processed,
--                         part_has_writes);
--      }
--}
--
- /* Flag the uses of U stopping following the information from
-    upstream_mem_writes.  */
+     case NOP_EXPR:
+     case INDIRECT_REF:
+-      if (!integer_zerop (TREE_OPERAND (expr, 0)))
++      if (!TREE_CONSTANT (TREE_OPERAND (expr, 0)))
+       {
+         error ("cannot apply %<offsetof%> to a non constant address");
+         return error_mark_node;
+       }
+-      return size_zero_node;
++      return TREE_OPERAND (expr, 0);
+     case COMPONENT_REF:
+-      base = fold_offsetof_1 (TREE_OPERAND (expr, 0), stop_ref);
++      base = fold_offsetof_1 (TREE_OPERAND (expr, 0));
+       if (base == error_mark_node)
+       return base;
+@@ -8515,21 +8504,14 @@
+       break;
+     case ARRAY_REF:
+-      base = fold_offsetof_1 (TREE_OPERAND (expr, 0), stop_ref);
++      base = fold_offsetof_1 (TREE_OPERAND (expr, 0));
+       if (base == error_mark_node)
+       return base;
+       t = TREE_OPERAND (expr, 1);
+-      if (TREE_CODE (t) == INTEGER_CST && tree_int_cst_sgn (t) < 0)
+-      {
+-        code = MINUS_EXPR;
+-        t = fold_build1_loc (input_location, NEGATE_EXPR, TREE_TYPE (t), t);
+-      }
+-      t = convert (sizetype, t);
+-      off = size_binop (MULT_EXPR, TYPE_SIZE_UNIT (TREE_TYPE (expr)), t);
+       /* Check if the offset goes beyond the upper bound of the array.  */
+-      if (code == PLUS_EXPR && TREE_CODE (t) == INTEGER_CST)
++      if (TREE_CODE (t) == INTEGER_CST && tree_int_cst_sgn (t) >= 0)
+       {
+         tree upbound = array_ref_up_bound (expr);
+         if (upbound != NULL_TREE
+@@ -8569,26 +8551,30 @@
+               }
+           }
+       }
++
++      t = convert (sizetype, t);
++      off = size_binop (MULT_EXPR, TYPE_SIZE_UNIT (TREE_TYPE (expr)), t);
+       break;
  
-@@ -720,68 +671,13 @@
+     case COMPOUND_EXPR:
+       /* Handle static members of volatile structs.  */
+       t = TREE_OPERAND (expr, 1);
+       gcc_assert (TREE_CODE (t) == VAR_DECL);
+-      return fold_offsetof_1 (t, stop_ref);
++      return fold_offsetof_1 (t);
+     default:
+       gcc_unreachable ();
      }
+-  return size_binop (code, base, off);
++  return fold_build2 (POINTER_PLUS_EXPR, TREE_TYPE (base), base, off);
  }
  
--/* Flag all the nodes of RDG containing memory accesses that could
--   potentially belong to arrays already accessed in the current
--   PARTITION.  */
--
--static void
--rdg_flag_similar_memory_accesses (struct graph *rdg, bitmap partition,
--                                bitmap loops, bitmap processed,
--                                VEC (int, heap) **other_stores)
--{
--  bool foo;
--  unsigned i, n;
--  int j, k, kk;
--  bitmap_iterator ii;
--  struct graph_edge *e;
--
--  EXECUTE_IF_SET_IN_BITMAP (partition, 0, i, ii)
--    if (RDG_MEM_WRITE_STMT (rdg, i)
--      || RDG_MEM_READS_STMT (rdg, i))
--      {
--      for (j = 0; j < rdg->n_vertices; j++)
--        if (!bitmap_bit_p (processed, j)
--            && (RDG_MEM_WRITE_STMT (rdg, j)
--                || RDG_MEM_READS_STMT (rdg, j))
--            && rdg_has_similar_memory_accesses (rdg, i, j))
--          {
--            /* Flag first the node J itself, and all the nodes that
--               are needed to compute J.  */
--            rdg_flag_vertex_and_dependent (rdg, j, partition, loops,
--                                           processed, &foo);
--
--            /* When J is a read, we want to coalesce in the same
--               PARTITION all the nodes that are using J: this is
--               needed for better cache locality.  */
--            rdg_flag_all_uses (rdg, j, partition, loops, processed, &foo);
--
--            /* Remove from OTHER_STORES the vertex that we flagged.  */
--            if (RDG_MEM_WRITE_STMT (rdg, j))
--              for (k = 0; VEC_iterate (int, *other_stores, k, kk); k++)
--                if (kk == j)
--                  {
--                    VEC_unordered_remove (int, *other_stores, k);
--                    break;
--                  }
--          }
--
--      /* If the node I has two uses, then keep these together in the
--         same PARTITION.  */
--      for (n = 0, e = rdg->vertices[i].succ; e; e = e->succ_next, n++);
--
--      if (n > 1)
--        rdg_flag_all_uses (rdg, i, partition, loops, processed, &foo);
--      }
--}
--
- /* Returns a bitmap in which all the statements needed for computing
-    the strongly connected component C of the RDG are flagged, also
-    including the loop exit conditions.  */
- static bitmap
- build_rdg_partition_for_component (struct graph *rdg, rdgc c,
--                                 bool *part_has_writes,
--                                 VEC (int, heap) **other_stores)
-+                                 bool *part_has_writes)
++/* Likewise, but convert it to the return type of offsetof.  */
++
+ tree
+-fold_offsetof (tree expr, tree stop_ref)
++fold_offsetof (tree expr)
  {
-   int i, v;
-   bitmap partition = BITMAP_ALLOC (NULL);
-@@ -793,13 +689,6 @@
-       rdg_flag_vertex_and_dependent (rdg, v, partition, loops, processed,
-                                    part_has_writes);
--  /* Also iterate on the array of stores not in the starting vertices,
--     and determine those vertices that have some memory affinity with
--     the current nodes in the component: these are stores to the same
--     arrays, i.e. we're taking care of cache locality.  */
--  rdg_flag_similar_memory_accesses (rdg, partition, loops, processed,
--                                  other_stores);
--
-   rdg_flag_loop_exits (rdg, loops, partition, processed, part_has_writes);
-   BITMAP_FREE (processed);
-@@ -863,6 +752,79 @@
-   BITMAP_FREE (saved_components);
+-  /* Convert back from the internal sizetype to size_t.  */
+-  return convert (size_type_node, fold_offsetof_1 (expr, stop_ref));
++  return convert (size_type_node, fold_offsetof_1 (expr));
  }
  
-+/* Returns true when it is possible to generate a builtin pattern for
-+   the PARTITION of RDG.  For the moment we detect only the memset
-+   zero pattern.  */
+ /* Warn for A ?: C expressions (with B omitted) where A is a boolean 
+Index: gcc/c-family/c-common.h
+===================================================================
+--- gcc/c-family/c-common.h    (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/c-family/c-common.h    (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -916,7 +916,8 @@
+ extern void verify_sequence_points (tree);
+-extern tree fold_offsetof (tree, tree);
++extern tree fold_offsetof_1 (tree);
++extern tree fold_offsetof (tree);
+ /* Places where an lvalue, or modifiable lvalue, may be required.
+    Used to select diagnostic messages in lvalue_error and
+Index: gcc/tree-loop-distribution.c
+===================================================================
+--- gcc/tree-loop-distribution.c       (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/tree-loop-distribution.c       (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -63,6 +63,51 @@
+    predecessor a node that writes to memory.  */
+ static bitmap upstream_mem_writes;
++/* Returns true when DEF is an SSA_NAME defined in LOOP and used after
++   the LOOP.  */
 +
 +static bool
-+can_generate_builtin (struct graph *rdg, bitmap partition)
++ssa_name_has_uses_outside_loop_p (tree def, loop_p loop)
 +{
-+  unsigned i;
-+  bitmap_iterator bi;
-+  int nb_reads = 0;
-+  int nb_writes = 0;
-+  int stores_zero = 0;
-+
-+  EXECUTE_IF_SET_IN_BITMAP (partition, 0, i, bi)
-+    if (RDG_MEM_READS_STMT (rdg, i))
-+      nb_reads++;
-+    else if (RDG_MEM_WRITE_STMT (rdg, i))
-+      {
-+      nb_writes++;
-+      if (stmt_with_adjacent_zero_store_dr_p (RDG_STMT (rdg, i)))
-+        stores_zero++;
-+      }
++  imm_use_iterator imm_iter;
++  use_operand_p use_p;
++
++  FOR_EACH_IMM_USE_FAST (use_p, imm_iter, def)
++    if (loop != loop_containing_stmt (USE_STMT (use_p)))
++      return true;
 +
-+  return stores_zero == 1 && nb_writes == 1 && nb_reads == 0;
++  return false;
 +}
 +
-+/* Returns true when PARTITION1 and PARTITION2 have similar memory
-+   accesses in RDG.  */
++/* Returns true when STMT defines a scalar variable used after the
++   loop.  */
 +
 +static bool
-+similar_memory_accesses (struct graph *rdg, bitmap partition1,
-+                       bitmap partition2)
++stmt_has_scalar_dependences_outside_loop (gimple stmt)
 +{
-+  unsigned i, j;
-+  bitmap_iterator bi, bj;
++  tree name;
 +
-+  EXECUTE_IF_SET_IN_BITMAP (partition1, 0, i, bi)
-+    if (RDG_MEM_WRITE_STMT (rdg, i)
-+      || RDG_MEM_READS_STMT (rdg, i))
-+      EXECUTE_IF_SET_IN_BITMAP (partition2, 0, j, bj)
-+      if (RDG_MEM_WRITE_STMT (rdg, j)
-+          || RDG_MEM_READS_STMT (rdg, j))
-+        if (rdg_has_similar_memory_accesses (rdg, i, j))
-+          return true;
++  switch (gimple_code (stmt))
++    {
++    case GIMPLE_CALL:
++    case GIMPLE_ASSIGN:
++      name = gimple_get_lhs (stmt);
++      break;
 +
-+  return false;
-+}
++    case GIMPLE_PHI:
++      name = gimple_phi_result (stmt);
++      break;
 +
-+/* Fuse all the partitions from PARTITIONS that contain similar memory
-+   references, i.e., we're taking care of cache locality.  This
-+   function does not fuse those partitions that contain patterns that
-+   can be code generated with builtins.  */
++    default:
++      return false;
++    }
 +
-+static void
-+fuse_partitions_with_similar_memory_accesses (struct graph *rdg,
-+                                            VEC (bitmap, heap) **partitions)
-+{
-+  int p1, p2;
-+  bitmap partition1, partition2;
-+
-+  for (p1 = 0; VEC_iterate (bitmap, *partitions, p1, partition1); p1++)
-+    if (!can_generate_builtin (rdg, partition1))
-+      for (p2 = 0; VEC_iterate (bitmap, *partitions, p2, partition2); p2++)
-+      if (p1 != p2
-+          && !can_generate_builtin (rdg, partition2)
-+          && similar_memory_accesses (rdg, partition1, partition2))
-+        {
-+          bitmap_ior_into (partition1, partition2);
-+          VEC_ordered_remove (bitmap, *partitions, p2);
-+          p2--;
-+        }
++  return (name
++        && TREE_CODE (name) == SSA_NAME
++        && ssa_name_has_uses_outside_loop_p (name,
++                                             loop_containing_stmt (stmt)));
 +}
 +
- /* Aggregate several components into a useful partition that is
-    registered in the PARTITIONS vector.  Partitions will be
-    distributed in different loops.  */
-@@ -885,8 +847,7 @@
-       if (bitmap_bit_p (processed, v))
-       continue;
+ /* Update the PHI nodes of NEW_LOOP.  NEW_LOOP is a duplicate of
+    ORIG_LOOP.  */
  
--      np = build_rdg_partition_for_component (rdg, x, &part_has_writes,
--                                            other_stores);
-+      np = build_rdg_partition_for_component (rdg, x, &part_has_writes);
-       bitmap_ior_into (partition, np);
-       bitmap_ior_into (processed, np);
-       BITMAP_FREE (np);
-@@ -932,6 +893,8 @@
-     VEC_safe_push (bitmap, heap, *partitions, partition);
-   else
-     BITMAP_FREE (partition);
+@@ -332,10 +377,18 @@
+       {
+         gimple stmt = gsi_stmt (bsi);
+-        if (gimple_code (stmt) != GIMPLE_LABEL
+-            && !is_gimple_debug (stmt)
+-            && bitmap_bit_p (partition, x++)
+-            && is_gimple_assign (stmt)
++        if (gimple_code (stmt) == GIMPLE_LABEL
++            || is_gimple_debug (stmt))
++          continue;
++
++        if (!bitmap_bit_p (partition, x++))
++          continue;
 +
-+  fuse_partitions_with_similar_memory_accesses (rdg, partitions);
++        /* If the stmt has uses outside of the loop fail.  */
++        if (stmt_has_scalar_dependences_outside_loop (stmt))
++          goto end;
++
++        if (is_gimple_assign (stmt)
+             && !is_gimple_reg (gimple_assign_lhs (stmt)))
+           {
+             /* Don't generate the builtins when there are more than
+@@ -826,48 +879,6 @@
+         }
  }
  
- /* Dump to FILE the PARTITIONS.  */
+-/* Returns true when DEF is an SSA_NAME defined in LOOP and used after
+-   the LOOP.  */
+-
+-static bool
+-ssa_name_has_uses_outside_loop_p (tree def, loop_p loop)
+-{
+-  imm_use_iterator imm_iter;
+-  use_operand_p use_p;
+-
+-  FOR_EACH_IMM_USE_FAST (use_p, imm_iter, def)
+-    if (loop != loop_containing_stmt (USE_STMT (use_p)))
+-      return true;
+-
+-  return false;
+-}
+-
+-/* Returns true when STMT defines a scalar variable used after the
+-   loop.  */
+-
+-static bool
+-stmt_has_scalar_dependences_outside_loop (gimple stmt)
+-{
+-  tree name;
+-
+-  switch (gimple_code (stmt))
+-    {
+-    case GIMPLE_ASSIGN:
+-      name = gimple_assign_lhs (stmt);
+-      break;
+-
+-    case GIMPLE_PHI:
+-      name = gimple_phi_result (stmt);
+-      break;
+-
+-    default:
+-      return false;
+-    }
+-
+-  return TREE_CODE (name) == SSA_NAME
+-    && ssa_name_has_uses_outside_loop_p (name, loop_containing_stmt (stmt));
+-}
+-
+ /* Returns true when STMT will be code generated in a partition of RDG
+    different than PART and that will not be code generated as a
+    builtin.  */
+Index: gcc/java/ChangeLog
+===================================================================
+--- gcc/java/ChangeLog (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/java/ChangeLog (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -1,3 +1,8 @@
++2012-01-23  Andreas Schwab  <schwab@linux-m68k.org>
++
++      * lang.c (java_init_options_struct): Set
++      frontend_set_flag_trapping_math.
++
+ 2011-10-26  Release Manager
+       * GCC 4.6.2 released.
+Index: gcc/java/lang.c
+===================================================================
+--- gcc/java/lang.c    (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/java/lang.c    (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -1,6 +1,6 @@
+ /* Java(TM) language-specific utility routines.
+    Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
+-   2005, 2006, 2007, 2008, 2010 Free Software Foundation, Inc.
++   2005, 2006, 2007, 2008, 2010, 2012 Free Software Foundation, Inc.
+ This file is part of GCC.
+@@ -550,6 +550,7 @@
+   /* In Java floating point operations never trap.  */
+   opts->x_flag_trapping_math = 0;
++  opts->frontend_set_flag_trapping_math = true;
+   /* In Java arithmetic overflow always wraps around.  */
+   opts->x_flag_wrapv = 1;
 Index: gcc/DATESTAMP
 ===================================================================
---- gcc/DATESTAMP      (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/DATESTAMP      (.../branches/gcc-4_5-branch)   (wersja 170084)
+--- gcc/DATESTAMP      (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/DATESTAMP      (.../branches/gcc-4_6-branch)   (wersja 183790)
 @@ -1 +1 @@
--20101216
-+20110212
+-20111026
++20120201
+Index: gcc/configure
+===================================================================
+--- gcc/configure      (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/configure      (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -7442,17 +7442,7 @@
+   RANLIB="$ac_cv_prog_RANLIB"
+ fi
+-case "${host}" in
+-*-*-darwin*)
+-  # By default, the Darwin ranlib will not treat common symbols as
+-  # definitions when  building the archive table of contents.  Other
+-  # ranlibs do that; pass an option to the Darwin ranlib that makes
+-  # it behave similarly.
+-  ranlib_flags="-c"
+-  ;;
+-*)
+-  ranlib_flags=""
+-esac
++ranlib_flags=""
+ # Find a good install program.  We prefer a C program (faster),
+@@ -15740,7 +15730,7 @@
+       ;;
+     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
+-    freebsd2*)
++    freebsd2.*)
+       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+       hardcode_direct=yes
+       hardcode_minus_L=yes
+@@ -16653,7 +16643,7 @@
+     objformat=`/usr/bin/objformat`
+   else
+     case $host_os in
+-    freebsd[123]*) objformat=aout ;;
++    freebsd[23].*) objformat=aout ;;
+     *) objformat=elf ;;
+     esac
+   fi
+@@ -16671,7 +16661,7 @@
+   esac
+   shlibpath_var=LD_LIBRARY_PATH
+   case $host_os in
+-  freebsd2*)
++  freebsd2.*)
+     shlibpath_overrides_runpath=yes
+     ;;
+   freebsd3.[01]* | freebsdelf3.[01]*)
+@@ -17505,7 +17495,7 @@
+   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
+   lt_status=$lt_dlunknown
+   cat > conftest.$ac_ext <<_LT_EOF
+-#line 17508 "configure"
++#line 17498 "configure"
+ #include "confdefs.h"
+ #if HAVE_DLFCN_H
+@@ -17611,7 +17601,7 @@
+   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
+   lt_status=$lt_dlunknown
+   cat > conftest.$ac_ext <<_LT_EOF
+-#line 17614 "configure"
++#line 17604 "configure"
+ #include "confdefs.h"
+ #if HAVE_DLFCN_H
+@@ -18537,7 +18527,7 @@
+         esac
+         ;;
+-      freebsd[12]*)
++      freebsd2.*)
+         # C++ shared libraries reported to be fairly broken before
+       # switch to ELF
+         ld_shlibs_CXX=no
+@@ -20312,7 +20302,7 @@
+     objformat=`/usr/bin/objformat`
+   else
+     case $host_os in
+-    freebsd[123]*) objformat=aout ;;
++    freebsd[23].*) objformat=aout ;;
+     *) objformat=elf ;;
+     esac
+   fi
+@@ -20330,7 +20320,7 @@
+   esac
+   shlibpath_var=LD_LIBRARY_PATH
+   case $host_os in
+-  freebsd2*)
++  freebsd2.*)
+     shlibpath_overrides_runpath=yes
+     ;;
+   freebsd3.[01]* | freebsdelf3.[01]*)
+Index: gcc/objc/objc-next-runtime-abi-01.c
+===================================================================
+--- gcc/objc/objc-next-runtime-abi-01.c        (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/objc/objc-next-runtime-abi-01.c        (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -2871,12 +2871,15 @@
+   return eh_id;
+ }
++/* For NeXT ABI 0 and 1, the personality routines are just those of the 
++   underlying language.  */
++
+ static tree
+ objc_eh_personality (void)
+ {
+   if (!objc_eh_personality_decl)
+ #ifndef OBJCPLUS
+-    objc_eh_personality_decl = build_personality_function ("objc");
++    objc_eh_personality_decl = build_personality_function ("gcc");
+ #else
+     objc_eh_personality_decl = build_personality_function ("gxx");
+ #endif
+Index: gcc/objc/objc-act.c
+===================================================================
+--- gcc/objc/objc-act.c        (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/objc/objc-act.c        (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -3136,9 +3136,8 @@
+   struct string_descriptor *desc, key;
+   void **loc;
+-  /* Prep the string argument.  */
+-  string = fix_string_type (string);
+-  TREE_SET_CODE (string, STRING_CST);
++  /* We should be passed a STRING_CST.  */
++  gcc_checking_assert (TREE_CODE (string) == STRING_CST);
+   length = TREE_STRING_LENGTH (string) - 1;
+   /* The target may have different ideas on how to construct an ObjC string 
+Index: gcc/objc/ChangeLog
+===================================================================
+--- gcc/objc/ChangeLog (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/objc/ChangeLog (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -1,3 +1,18 @@
++2011-11-12  Iain Sandoe  <iains@gcc.gnu.org>
++
++      Backport from mainline
++      2011-10-29  Iain Sandoe  <iains@gcc.gnu.org>
++      
++      PR target/47997
++      * objc-act.c (objc_build_string_object): Remove redundant second
++      call to fix_string_type ().  Add a checking assert that we are,
++      indeed, passed a STRING_CST.
++
++2011-11-12  Iain Sandoe  <iains@gcc.gnu.org>
++
++      * objc-next-runtime-abi-01.c (objc_eh_personality): Use gcc personality
++      for Objective-C m32.
++
+ 2011-10-26  Release Manager
+       * GCC 4.6.2 released.
+Index: gcc/reorg.c
+===================================================================
+--- gcc/reorg.c        (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/reorg.c        (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -3554,9 +3554,11 @@
+           }
+       }
++      /* See if we have a simple (conditional) jump that is useless.  */
+       if (! INSN_ANNULLED_BRANCH_P (delay_insn)
++        && ! condjump_in_parallel_p (delay_insn)
+         && prev_active_insn (target_label) == insn
+-        && ! condjump_in_parallel_p (delay_insn)
++        && ! BARRIER_P (prev_nonnote_insn (target_label))
+ #ifdef HAVE_cc0
+         /* If the last insn in the delay slot sets CC0 for some insn,
+            various code assumes that it is in a delay slot.  We could
 Index: gcc/DEV-PHASE
 ===================================================================
---- gcc/DEV-PHASE      (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/DEV-PHASE      (.../branches/gcc-4_5-branch)   (wersja 170084)
+--- gcc/DEV-PHASE      (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/DEV-PHASE      (.../branches/gcc-4_6-branch)   (wersja 183790)
 @@ -0,0 +1 @@
 +prerelease
 Index: gcc/tree-ssa-sccvn.c
 ===================================================================
---- gcc/tree-ssa-sccvn.c       (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/tree-ssa-sccvn.c       (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -988,6 +988,7 @@
- }
- static tree *last_vuse_ptr;
-+static vn_lookup_kind vn_walk_kind;
- /* Callback for walk_non_aliased_vuses.  Adjusts the vn_reference_t VR_
-    with the current VUSE and performs the expression lookup.  */
-@@ -1063,6 +1064,7 @@
-       size2 = TREE_INT_CST_LOW (gimple_call_arg (def_stmt, 2)) * 8;
-       if ((unsigned HOST_WIDE_INT)size2 / 8
-         == TREE_INT_CST_LOW (gimple_call_arg (def_stmt, 2))
-+        && maxsize2 != -1
-         && operand_equal_p (base, base2, 0)
-         && offset2 <= offset
-         && offset2 + size2 >= offset + maxsize)
-@@ -1086,7 +1088,8 @@
-       HOST_WIDE_INT offset2, size2, maxsize2;
-       base2 = get_ref_base_and_extent (gimple_assign_lhs (def_stmt),
-                                      &offset2, &size2, &maxsize2);
--      if (operand_equal_p (base, base2, 0)
-+      if (maxsize2 != -1
-+        && operand_equal_p (base, base2, 0)
-         && offset2 <= offset
-         && offset2 + size2 >= offset + maxsize)
+--- gcc/tree-ssa-sccvn.c       (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/tree-ssa-sccvn.c       (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -546,6 +546,7 @@
+         tem1.type = TREE_TYPE (tem1.op0);
+         tem1.opcode = TREE_CODE (tem1.op0);
+         vro1 = &tem1;
++        deref1 = false;
+       }
+       if (deref2 && vro2->opcode == ADDR_EXPR)
        {
-@@ -1101,7 +1104,8 @@
-   /* For aggregate copies translate the reference through them if
-      the copy kills ref.  */
--  else if (gimple_assign_single_p (def_stmt)
-+  else if (vn_walk_kind == VN_WALKREWRITE
-+         && gimple_assign_single_p (def_stmt)
-          && (DECL_P (gimple_assign_rhs1 (def_stmt))
-              || INDIRECT_REF_P (gimple_assign_rhs1 (def_stmt))
-              || handled_component_p (gimple_assign_rhs1 (def_stmt))))
-@@ -1116,7 +1120,8 @@
-       /* See if the assignment kills REF.  */
-       base2 = get_ref_base_and_extent (gimple_assign_lhs (def_stmt),
-                                      &offset2, &size2, &maxsize2);
--      if (!operand_equal_p (base, base2, 0)
-+      if (maxsize2 == -1
-+        || !operand_equal_p (base, base2, 0)
-         || offset2 > offset
-         || offset2 + size2 < offset + maxsize)
-       return (void *)-1;
-@@ -1190,7 +1195,7 @@
- tree
- vn_reference_lookup_pieces (tree vuse, alias_set_type set, tree type,
-                           VEC (vn_reference_op_s, heap) *operands,
--                          vn_reference_t *vnresult, bool maywalk)
-+                          vn_reference_t *vnresult, vn_lookup_kind kind)
- {
-   struct vn_reference_s vr1;
-   vn_reference_t tmp;
-@@ -1215,10 +1220,11 @@
-   vn_reference_lookup_1 (&vr1, vnresult);
-   if (!*vnresult
--      && maywalk
-+      && kind != VN_NOWALK
-       && vr1.vuse)
-     {
-       ao_ref r;
-+      vn_walk_kind = kind;
-       if (ao_ref_init_from_vn_reference (&r, set, type, vr1.operands))
-       *vnresult =
-         (vn_reference_t)walk_non_aliased_vuses (&r, vr1.vuse,
-@@ -1241,7 +1247,7 @@
-    stored in the hashtable if one exists.  */
- tree
--vn_reference_lookup (tree op, tree vuse, bool maywalk,
-+vn_reference_lookup (tree op, tree vuse, vn_lookup_kind kind,
-                    vn_reference_t *vnresult)
- {
-   VEC (vn_reference_op_s, heap) *operands;
-@@ -1256,12 +1262,13 @@
-   vr1.set = get_alias_set (op);
-   vr1.hashcode = vn_reference_compute_hash (&vr1);
--  if (maywalk
-+  if (kind != VN_NOWALK
-       && vr1.vuse)
-     {
-       vn_reference_t wvnresult;
-       ao_ref r;
-       ao_ref_init (&r, op);
-+      vn_walk_kind = kind;
-       wvnresult =
-       (vn_reference_t)walk_non_aliased_vuses (&r, vr1.vuse,
-                                               vn_reference_lookup_2,
-@@ -1980,14 +1987,14 @@
-   last_vuse = gimple_vuse (stmt);
-   last_vuse_ptr = &last_vuse;
--  result = vn_reference_lookup (op, gimple_vuse (stmt), true, NULL);
-+  result = vn_reference_lookup (op, gimple_vuse (stmt), VN_WALKREWRITE, NULL);
-   last_vuse_ptr = NULL;
-   /* If we have a VCE, try looking up its operand as it might be stored in
-      a different type.  */
-   if (!result && TREE_CODE (op) == VIEW_CONVERT_EXPR)
-     result = vn_reference_lookup (TREE_OPERAND (op, 0), gimple_vuse (stmt),
--                                true, NULL);
-+                                VN_WALKREWRITE, NULL);
-   /* We handle type-punning through unions by value-numbering based
-      on offset and size of the access.  Be prepared to handle a
-@@ -2098,7 +2105,7 @@
-      Otherwise, the vdefs for the store are used when inserting into
-      the table, since the store generates a new memory state.  */
--  result = vn_reference_lookup (lhs, gimple_vuse (stmt), false, NULL);
-+  result = vn_reference_lookup (lhs, gimple_vuse (stmt), VN_NOWALK, NULL);
-   if (result)
-     {
-Index: gcc/tree-ssa-sccvn.h
-===================================================================
---- gcc/tree-ssa-sccvn.h       (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/tree-ssa-sccvn.h       (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -185,10 +185,11 @@
- void copy_reference_ops_from_call (gimple, VEC(vn_reference_op_s, heap) **);
- bool ao_ref_init_from_vn_reference (ao_ref *, alias_set_type, tree,
-                                   VEC (vn_reference_op_s, heap) *);
-+typedef enum { VN_NOWALK, VN_WALK, VN_WALKREWRITE } vn_lookup_kind;
- tree vn_reference_lookup_pieces (tree, alias_set_type, tree,
-                                VEC (vn_reference_op_s, heap) *,
--                               vn_reference_t *, bool);
--tree vn_reference_lookup (tree, tree, bool, vn_reference_t *);
-+                               vn_reference_t *, vn_lookup_kind);
-+tree vn_reference_lookup (tree, tree, vn_lookup_kind, vn_reference_t *);
- vn_reference_t vn_reference_insert (tree, tree, tree);
- vn_reference_t vn_reference_insert_pieces (tree, alias_set_type, tree,
-                                          VEC (vn_reference_op_s, heap) *,
+@@ -554,7 +555,10 @@
+         tem2.type = TREE_TYPE (tem2.op0);
+         tem2.opcode = TREE_CODE (tem2.op0);
+         vro2 = &tem2;
++        deref2 = false;
+       }
++      if (deref1 != deref2)
++      return false;
+       if (!vn_reference_op_eq (vro1, vro2))
+       return false;
+       ++j;
 Index: gcc/ChangeLog
 ===================================================================
---- gcc/ChangeLog      (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/ChangeLog      (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -1,3 +1,655 @@
-+2011-02-11  Bernd Schmidt  <bernds@codesourcery.com>
+--- gcc/ChangeLog      (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/ChangeLog      (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -1,3 +1,653 @@
++2012-01-31  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
 +
-+      PR rtl-optimization/47166
-+      * reload1.c (emit_reload_insns): Disable the spill_reg_store
-+      mechanism for PRE_MODIFY and POST_MODIFY.
-+      (inc_for_reload): For PRE_MODIFY, return the insn that sets the
-+      reloadreg.
++      Backport from mainline.
++      2011-01-31  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
 +
-+2011-02-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
++      config/arm/thumb2.md (thumb2_mov_notscc): Use MVN for true
++      condition.
 +
-+      Backport from mainline:
-+      2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
++2012-01-31  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
 +
-+      * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
-+      * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
-+      pthread_mutex_unlock): Remove.
-+      * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
-+      * config/pa/t-pa64: Likewise.
-+      * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
-+      shared libc if not linking against libpthread.
-+      * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
++      * config/s390/s390.md ("*ashr<mode>3_and"): Add missing z196 flag
++      to srak instruction.
 +
-+2011-02-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
++2012-01-30  Bin Cheng  <bin.cheng@arm.com>
 +
-+      Backport from mainline:
-+      2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
-+
-+      PR target/47272
-+      * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
-+      Document using vector double with the load/store builtins, and
-+      that the load/store builtins always use Altivec instructions.
-+
-+      * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
-+      to use altivec memory instructions, even on VSX.
-+      (vector_altivec_store_<mode>): Ditto.
-+
-+      * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
-+      function.
-+
-+      * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
-+      V2DF, V2DI support to load/store overloaded builtins.
-+
-+      * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
-+      altivec load/store builtins for V2DF/V2DI types.
-+
-+      * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
-+      set avoid indexed addresses on power6 if -maltivec.
-+      (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
-+      vector_altivec_load/vector_altivec_store builtins.
-+      (altivec_expand_st_builtin): Ditto.
-+      (altivec_expand_builtin): Add VSX memory builtins.
-+      (rs6000_init_builtins): Add V2DI types to internal types.
-+      (altivec_init_builtins): Add support for V2DF/V2DI altivec
-+      load/store builtins.
-+      (rs6000_address_for_altivec): Insure memory address is appropriate
-+      for Altivec.
-+
-+      * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
-+      vec_vsx_ld and vec_vsx_st.
-+      (vsx_store_<mode>): Ditto.
-+
-+      * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
-+      variables to hold long long types for VSX vector memory builtins.
-+      (RS6000_BTI_unsigned_long_long): Ditto.
-+      (long_long_integer_type_internal_node): Ditti.
-+      (long_long_unsigned_type_internal_node): Ditti.
-+
-+      * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
-+      (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
-+      (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
-+
-+      * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
-+      short cuts.
-+      (vec_vsx_st): Ditto.
++      Backport from mainline.
++      2012-01-30  Bin Cheng  <bin.cheng@arm.com>
 +
-+      Backport from mainline:
-+      2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
-+
-+      PR target/47580
-+      * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
-+      gpc_reg_operand instead of vsx_register_operand to match rs6000.md
-+      generator functions.
-+      (vsx_floatuns<VSi><mode>2): Ditto.
-+      (vsx_fix_trunc<mode><VSi>2): Ditto.
-+      (vsx_fixuns_trunc<mode><VSi>2): Ditto.
-+
-+2011-02-02  Nick Clifton  <nickc@redhat.com>
-+
-+      Import these patches from the mainline:
-+      2011-01-31  Nick Clifton  <nickc@redhat.com>
-+
-+      * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
-+      registers inside interrupt handlers if the handler is not a leaf
-+      function.
-+
-+      2011-01-25  Nick Clifton  <nickc@redhat.com>
-+
-+      * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
-+      * config/rx/rx.c (rx_function_value): Likewise.
-+      (rx_promote_function_mode): Likewise.
-+      (gen_safe_add): Place an outsized immediate value inside an UNSPEC
-+      in order to make it legitimate.
-+      * config/rx/rx.md (adddi3_internal): If the second operand is a
-+      MEM make sure that the first operand is the same as the result
-+      register.
-+      (addsi3_unspec): Delete.
-+      (subdi3): Do not accept immediate operands.
-+      (subdi3_internal): Likewise.
-+
-+      2011-01-24  Richard Henderson  <rth@redhat.com>
-+
-+      * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
-+      compound unordered comparisons.
-+      * config/rx/rx.c (rx_split_fp_compare): Remove.
-+      * config/rx/rx-protos.h: Update.
-+      * config/rx/rx.md (gcc_conds, rx_conds): Remove.
-+      (cbranchsf4): Don't call rx_split_fp_compare.
-+      (*cbranchsf4): Use rx_split_cbranch.
-+      (*cmpsf): Don't accept "i" constraint.
-+      (*conditional_branch): Only valid after reload.
-+      (cstoresf4): Merge expander with insn.  Don't call
-+      rx_split_fp_compare.
-+
-+      2011-01-22  Nick Clifton  <nickc@redhat.com>
-+
-+      * config/rx/rx.md (cstoresf4): Pass comparison operator to
-+      rx_split_fp_compare.
-+
-+      2011-01-22  Nick Clifton  <nickc@redhat.com>
-+
-+      * config/rx/rx.md (UNSPEC_CONST): New.
-+      (deallocate_and_return): Wrap the amount popped off the stack in
-+      an UNSPEC_CONST in order to stop it being rejected by
-+      -mmax-constant-size.
-+      (pop_and_return): Add a "(return)" rtx.
-+      (call): Drop the immediate operand.
-+      (call_internal): Likewise.
-+      (call_value): Likewise.
-+      (call_value_internal): Likewise.
-+      (sibcall_internal): Likewise.
-+      (sibcall_value_internal): Likewise.
-+      (sibcall): Likewise.  Generate an explicit call using
-+      sibcall_internal.
-+      (sibcall_value): Likewise.
-+      (mov<>): FAIL if a constant operand is not legitimate.
-+      (addsi3_unpsec): New pattern.
-+
-+      * config/rx/rx.c (rx_print_operand_address): Handle UNPSEC
-+      CONSTs.
-+      (ok_for_max_constant): New function.
-+      (gen_safe_add): New function.
-+      (rx_expand_prologue): Use gen_safe_add.
-+      (rx_expand_epilogue): Likewise.
-+      (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
-+      UNSPEC CONSTs.
-+
-+      2011-01-17  Richard Henderson  <rth@redhat.com>
-+
-+      * config/rx/predicates.md (rx_constshift_operand): Use match_test.
-+      (rx_restricted_mem_operand): New.
-+      (rx_shift_operand): Use register_operand.
-+      (rx_source_operand, rx_compare_operand): Likewise.
-+      * config/rx/rx.md (addsi3_flags): New expander.
-+      (adddi3): Rewrite as expander.
-+      (adc_internal, *adc_flags, adddi3_internal): New patterns.
-+      (subsi3_flags): New expander.
-+      (subdi3): Rewrite as expander.
-+      (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
-+
-+      * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
-+      (rx_init_builtins): Remove sat builtin.
-+      (rx_expand_builtin): Likewise.
-+      * config/rx/rx.md (ssaddsi3): New.
-+      (*sat): Rename from sat.  Represent the CC_REG input.
-+
-+      * config/rx/predicates.md (rshift_operator): New.
-+      * config/rx/rx.c (rx_expand_insv): Remove.
-+      * config/rx/rx-protos.h: Update.
-+      * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
-+      operand to the canonical position.
-+      (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
-+      (*bitclr, *bitclr_in_memory): Similarly.
-+      (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
-+      (insv): Retain the zero_extract in the expansion.
-+
-+      * config/rx/rx.md (bswapsi2): Use = not + for output reload.
-+      (bswaphi2, bitinvert, revw): Likewise.
-+
-+      * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
-+      (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
-+      * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
-+      (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
-+      (bitset, bitset_in_memory): Likewise.
-+      (bitinvert, bitinvert_in_memory): Likewise.
-+      (bitclr, bitclr_in_memory): Likewise.
-+      (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
-+      (rx_strend, rx_cmpstrn): Likewise.
-+      (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
-+      (bitop peep2 patterns): Remove.
-+
-+      * config/rx/rx.c (rx_match_ccmode): New.
-+      * config/rx/rx-protos.h: Update.
-+      * config/rx/rx.md (abssi2): Clobber, don't set flags.
-+      (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
-+      (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
-+      (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
-+      (fix_truncsfsi2, floatsisf2): Likewise.
-+      (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
-+      (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
-+      (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
-+      (*subsi3_flags, *xorsi3_flags): New.
-+
-+      * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
-+
-+      * config/rx/rx.c (rx_print_operand): Remove workaround for
-+      unsplit comparison operations.
-+
-+      * config/rx/rx.md (movsicc): Split after reload.
-+      (*movsicc): Merge *movsieq and *movsine via match_operator.
-+      (*stcc): New pattern.
-+
-+      * config/rx/rx.c (rx_float_compare_mode): Remove.
-+      * config/rx/rx.h (rx_float_compare_mode): Remove.
-+      * config/rx/rx.md (cstoresi4): Split after reload.
-+      (*sccc): New pattern.
-+
-+      * config/rx/predicates.md (label_ref_operand): New.
-+      (rx_z_comparison_operator): New.
-+      (rx_zs_comparison_operator): New.
-+      (rx_fp_comparison_operator): New.
-+      * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
-+      Validate that the flags are set properly for the comparison.
-+      (rx_gen_cond_branch_template): Remove.
-+      (rx_cc_modes_compatible): Remove.
-+      (mode_from_flags): New.
-+      (flags_from_code): Rename from flags_needed_for_conditional.
-+      (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
-+      (rx_select_cc_mode): Likewise.
-+      (rx_split_fp_compare): New.
-+      (rx_split_cbranch): New.
-+      * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
-+      (*cbranchsi4): Use match_operator and rx_split_cbranch.
-+      (*cbranchsf4): Similarly.
-+      (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
-+      match_operator and rx_split_cbranch.
-+      (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
-+      tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
-+      (*cmpsi): Rename from cmpsi.
-+      (*tstsi): Rename from tstsi.
-+      (*cmpsf): Rename from cmpsf; use CC_Fmode.
-+      (*conditional_branch): Rename from conditional_branch.
-+      (*reveresed_conditional_branch): Remove.
-+      (b<code>): Remove expander.
-+      * config/rx/rx-protos.h: Update.
-+
-+      * config/rx/rx.c (rx_compare_redundant): Remove.
-+      * config/rx/rx.md (cmpsi): Don't use it.
-+      * config/rx/rx-protos.h: Update.
-+
-+      * config/rx/rx-modes.def (CC_F): New mode.
-+      * config/rx/rx.c (rx_select_cc_mode): New.
-+      * config/rx/rx.h (SELECT_CC_MODE): Use it.
-+      * config/rx/rx-protos.h: Update.
-+
-+2011-02-01  Richard Guenther  <rguenther@suse.de>
-+
-+      PR tree-optimization/47541
-+      * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
-+      sure to have a field at offset zero.
-+
-+2011-01-31  Nathan Froyd  <froydnj@codesourcery.com>
++      PR target/51835
++      * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
++      for __aeabi_d2iz/__aeabi_d2uiz with hard-float.
 +
-+      Backport from mainline:
-+      2010-12-30  Nathan Froyd  <froydnj@codesourcery.com>
++2012-01-30  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
 +
-+        PR target/44606
-+        * reload1.c (choose_reload_regs): Don't look for equivalences for
-+        output reloads of constant loads.
++      Backport from mainline.
++        2012-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
 +
-+2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
++      PR target/50313
++      * config/arm/arm.c (arm_load_pic_register): Use
++      gen_pic_load_addr_unified. Delete calls to gen_pic_load_addr_32bit
++      , gen_pic_add_dot_plus_eight and gen_pic_add_dot_plus_four.
++      (arm_pic_static_addr): Likewise.
++      (arm_rtx_costs_1): Adjust cost for UNSPEC_PIC_UNIFIED.
++      (arm_note_pic_base): Handle UNSPEC_PIC_UNIFIED.
++      * config/arm/arm.md (UNSPEC_PIC_UNIFIED): Define.
++      (pic_load_addr_unified): New.
 +
-+      * doc/install.texi (hppa-hp-hpux10): Remove references to HP
-+      support sites.
++2012-01-25  Richard Guenther  <rguenther@suse.de>
 +
-+2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
++      * tree-ssa-sccvn.c (vn_reference_eq): Also compare if both
++      bases are dereferenced.
 +
-+      * doc/install.texi: Update copyright years.
++2012-01-24  Richard Guenther  <rguenther@suse.de>
 +
-+2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
++      Forward-port to branch
++      2010-09-21  Jakub Jelinek  <jakub@redhat.com>
 +
-+      * doc/install.texi (Binaries): Remove outdated reference for
-+      Motorola 68HC11/68HC12 downloads.
++      PR middle-end/45678
++      * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: If
++      op0 isn't sufficiently aligned and there is movmisalignM
++      insn for mode, use it to load op0 into a temporary register.
 +
-+2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
++2012-01-20  Eric Botcazou  <ebotcazou@adacore.com>
 +
-+      * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
-+      Drepper's paper.
++      * cfgrtl.c (rtl_dump_bb): Do not dump insns for {ENTRY|EXIT}_BLOCK.
 +
-+2011-01-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
++2012-01-19  Quentin Neill  <quentin.neill@amd.com>
 +
-+      Backport from mainline:
-+      2010-08-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
-+
-+        PR boehm-gc/34544
-+      * gthr-posix.h (__gthread_active_init): Delete.
-+      (__gthread_active_p): Do activity check here.
-+      Don't include errno.h on hppa-hpux.  Update comment.
-+      * gthr-posix95.h (__gthread_active_init): Delete.
-+      (__gthread_active_p): Do activity check here.
-+      Don't include errno.h on hppa-hpux.  Update comment.
-+      * config.gcc (hppa[12]*-*-hpux11*): Define extra_parts.
-+      * config/pa/pa64-hpux.h (LIB_SPEC): When -static is specified, only
-+      add -lpthread when -mt or -pthread is specified.
-+      * config/pa/pa-hpux11.h (LIB_SPEC): likewise.
-+      (LINK_GCC_C_SEQUENCE_SPEC): Define.
-+      * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS): Define.
-+      (stublib.c, pthread_default_stacksize_np-stub.o,
-+      pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o,
-+      $(T)libgcc_stub.a): Add methods.
-+      * config/pa/t-pa64 (LIBGCCSTUB_OBJS): Add pthread stubs.
-+      (stublib.c, pthread_default_stacksize_np-stub.o,
-+      pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o): Add methods.
-+      * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
-+      pthread_mutex_unlock): New stubs.
-+
-+2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
-+
-+      PR rtl-optimization/44469
-+      * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
-+      after removing trivially dead basic blocks.
-+
-+2011-01-25  Richard Guenther  <rguenther@suse.de>
-+
-+      PR tree-optimization/47411
-+      Backport from mainline
-+      2010-06-30  Michael Matz  <matz@suse.de>
++      PR target/48743
++      * config/i386/driver-i386.c (host_detect_local_cpu): Also check
++      family to distinguish PROCESSOR_ATHLON.
 +
-+      PR bootstrap/44699
-+      * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
++2012-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
 +
-+2011-01-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
++      PR tree-optimization/49642
++      * ipa-split.c (forbidden_dominators): New variable.
++      (check_forbidden_calls): New function.
++      (dominated_by_forbidden): Likewise.
++      (consider_split): Check for forbidden dominators.
++      (execute_split_functions): Initialize and free forbidden
++      dominators info; call check_forbidden_calls.
 +
-+      Backport from mainline.
-+      2010-09-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
++2012-01-18  David Edelsohn  <dje.gcc@gmail.com>
 +
-+      PR target/44392
-+      * config/arm/arm.md (bswapsi2): Handle condition correctly
-+      for armv6 and optimize_size.
++      * config/rs6000/rs6000.md (call_value_indirect_aix32): Fix typo
++      in mode of operand[4].
 +
-+2011-01-21  Richard Guenther  <rguenther@suse.de>
++2012-01-15  Uros Bizjak  <ubizjak@gmail.com>
 +
-+      PR tree-optimization/47365
-+      * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
-+      (vn_reference_lookup_pieces): Adjust.
-+      (vn_reference_lookup): Likewise.
-+      * tree-ssa-sccvn.c (vn_walk_kind): New static global.
-+      (vn_reference_lookup_3): Only look through kills if in
-+      VN_WALKREWRITE mode.
-+      (vn_reference_lookup_pieces): Adjust.
-+      (vn_reference_lookup): Likewise.
-+      (visit_reference_op_load): Likewise.
-+      (visit_reference_op_store): Likewise.
-+      * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
-+      (compute_avail): Likewise.
-+      (eliminate): Likewise.
++      PR rtl-optimization/51821
++      * recog.c (peep2_find_free_register): Determine clobbered registers
++      from insn pattern.
 +
-+2011-01-20  Richard Guenther  <rguenther@suse.de>
++2012-01-12  Georg-Johann Lay  <avr@gjlay.de>
 +
-+      PR tree-optimization/47167
-+      * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
-+      Revert previous change, only avoid enumeral type changes.
++      Backport from mainline r183129
++      PR target/51756
++      * config/avr/avr.c (avr_encode_section_info): Test for absence of
++      DECL_EXTERNAL when checking for initializers of progmem variables.
 +
-+2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
++22012-01-12  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
 +
 +      Backport from mainline
-+      2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
-+
-+      PR target/47318
-+      * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to
-+      __m128i.
-+      (_mm_maskstore_pd): Likewise.
-+      (_mm_maskload_ps): Likewise.
-+      (_mm_maskstore_ps): Likewise.
-+      (_mm256_maskload_pd): Change mask to __m256i.
-+      (_mm256_maskstore_pd): Likewise.
-+      (_mm256_maskload_ps): Likewise.
-+      (_mm256_maskstore_ps): Likewise.
-+
-+      * config/i386/i386-builtin-types.def: Updated.
-+      (ix86_expand_special_args_builtin): Likewise.
-+
-+      * config/i386/i386.c (bdesc_special_args): Update
-+      __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
-+      __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
-+      __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
-+      __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
-+
-+      * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
-+      Use <avxpermvecmode> on mask register.
-+      (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
-+
-+2011-01-17  Olivier Hainque  <hainque@adacore.com>
-+            Michael Haubenwallner  <michael.haubenwallner@salomon.at>
-+            Eric Botcazou  <ebotcazou@adacore.com>
-+
-+      PR target/46655
-+      * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
-+      if <= USHRT_MAX in 32-bit mode.
-+
-+2011-01-17  Richard Guenther  <rguenther@suse.de>
++      2012-01-11  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
 +
-+      Backport from mainline
-+      PR tree-optimization/47286
-+      * tree-ssa-structalias.c (new_var_info): Register variables
-+      are global.
++      * config/arm/arm.md (mov_notscc): Use MVN for false condition.
 +
-+      PR tree-optimization/44592
-+      * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Copy
-+      from trunk.
++2012-01-12  Uros Bizjak  <ubizjak@gmail.com>
 +
-+2011-01-16  Jakub Jelinek  <jakub@redhat.com>
++      * config/i386/i386.md (*zero_extendsidi2_rex64): Correct movl template.
++      (x86_shift<mode>_adj_1): Remove operand constraint from operand 3.
 +
-+      Backport from mainline
-+      2011-01-07  Jakub Jelinek  <jakub@redhat.com>
++2012-01-10  Joseph Myers  <joseph@codesourcery.com>
++
++      Revert:
++
++      2008-09-18  Andrew Pinski  <andrew_pinski@playstation.sony.com>
++
++      PR rtl-opt/37451
++      * loop-doloop.c (doloop_modify): New argument zero_extend_p and
++      zero extend count after the correction to it is done.
++      (doloop_optimize): Update call to doloop_modify, don't zero extend
++      count before call.
 +
-+      PR target/47201
-+      * config/i386/i386.c (ix86_delegitimize_address): If
-+      simplify_gen_subreg fails, return orig_x.
++      2008-11-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
 +
-+      2011-01-06  Jakub Jelinek  <jakub@redhat.com>
++      PR rtl-opt/37782
++      * loop-doloop.c (doloop_modify): Add from_mode argument that says what
++      mode count is in.
++      (doloop_optimize): Update call to doloop_modify.
 +
-+      PR c/47150
-+      * c-convert.c (convert): When converting a complex expression
-+      other than COMPLEX_EXPR to a different complex type, ensure
-+      c_save_expr is called instead of save_expr, unless in_late_binary_op.
-+      * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
-+      when converting COMPLEX_TYPE.
++2012-01-09  Richard Sandiford  <rdsandiford@googlemail.com>
 +
-+      2010-12-21  Jakub Jelinek  <jakub@redhat.com>
++      * config/mips/mips.md (loadgp_newabi_<mode>): Add missing earlyclobber.
 +
-+      PR target/46880
-+      * config/i386/sse.md (sse2_loadlpd, sse2_movsd): Fix shufpd source
-+      operand.
++2012-01-09  Eric Botcazou  <ebotcazou@adacore.com>
 +
-+      PR middle-end/45852
-+      * expr.c (store_expr): Ignore alt_rtl if equal to target,
-+      but has side-effects.
++      * config/sparc/sol2-unwind.h (sparc64_is_sighandler): Check that the
++      purported sigacthandler address isn't null before dereferencing it.
++      (sparc_is_sighandler): Likewise.
 +
-+      2010-12-16  Jakub Jelinek  <jakub@redhat.com>
++2012-01-09  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
 +
-+      PR tree-optimization/43655
-+      * tree-ssa-ter.c (is_replaceable_p): Don't use
-+      gimple_references_memory_p for -O0, instead check for load
-+      by looking at rhs.
++      Backport from mainline
++      2011-11-04  Jiangning Liu  <jiangning.liu@arm.com>
++
++      PR rtl-optimization/38644
++      * config/arm/arm.c (thumb1_expand_epilogue): Add memory barrier
++      for epilogue having stack adjustment.
++
++2012-01-09  Eric Botcazou  <ebotcazou@adacore.com>
++
++      PR ada/41929
++      * config/sparc/sol2-unwind.h (sparc64_is_sighandler): Remove SAVPC and
++      add CFA.  Revert back to old code for Solaris 8+ multi-threaded.
++      (sparc_is_sighandler): Likewise.
++      (MD_FALLBACK_FRAME_STATE_FOR): Adjust call to IS_SIGHANDLER.
 +
-+      PR debug/46893
-+      * cfgexpand.c (expand_debug_expr): If GET_MODE (op0) is VOIDmode,
-+      use TYPE_MODE (TREE_TYPE (tem)) instead of mode1.
++2012-01-06  Eric Botcazou  <ebotcazou@adacore.com>
 +
-+      2010-12-10  Jakub Jelinek  <jakub@redhat.com>
++      Backport from mainline
++      2012-01-06  Arnaud Charlet  <charlet@adacore.com>
++
++      * c-decl.c (ext_block): Moved up.
++      (collect_all_refs, for_each_global_decl): Take ext_block into account.
 +
-+      PR rtl-optimization/46804
-+      * regmove.c (optimize_reg_copy_3): Look for REG_EQUAL note
-+      on the setter of src_reg rather than on insn.  If it is
-+      equal to the setter's original SET_SRC, replace it with its
-+      zero or sign extension instead of dropping it.
++2012-01-06  Richard Sandiford  <richard.sandiford@linaro.org>
 +
-+      PR rtl-optimization/46865
-+      * rtl.c (rtx_equal_p_cb, rtx_equal_p): For last operand of
-+      ASM_OPERANDS and ASM_INPUT if integers are different,
-+      call locator_eq.
-+      * jump.c (rtx_renumbered_equal_p): Likewise.
++      PR middle-end/48660
++      * expr.h (copy_blkmode_to_reg): Declare.
++      * expr.c (copy_blkmode_to_reg): New function.
++      (expand_assignment): Don't expand register RESULT_DECLs before
++      the lhs.  Use copy_blkmode_to_reg to copy BLKmode values into a
++      RESULT_DECL register.
++      (expand_expr_real_1): Handle BLKmode decls when looking for promotion.
 +
-+      PR tree-optimization/46864
-+      * tree-ssa-loop-im.c (loop_suitable_for_sm): Return false even
-+      when there are EDGE_EH exit edges.
++2012-01-05  Eric Botcazou  <ebotcazou@adacore.com>
 +
-+      2010-12-09  Jakub Jelinek  <jakub@redhat.com>
++      PR tree-optimization/51315
++      * tree-sra.c (tree_non_aligned_mem_for_access_p): New predicate.
++      (build_accesses_from_assign): Use it instead of tree_non_aligned_mem_p.
 +
-+      PR target/41082
-+      * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Use stvx
-+      instead of stve*x.
-+      (altivec_expand_stv_builtin): For op0 use mode of operand 1 instead
-+      of operand 0.
-+      * config/rs6000/altivec.md (VI_scalar): New mode attr.
-+      (altivec_stve<VI_char>x, *altivec_stvesfx): Use scalar instead of
-+      vector mode for operand 0, put operand 1 into UNSPEC.
++2012-01-04  Eric Botcazou  <ebotcazou@adacore.com>
 +
-+2011-01-13  Nick Clifton  <nickc@redhat.com>
++      PR tree-optimization/51624
++      * tree-sra.c (build_ref_for_model): When replicating a chain of
++      COMPONENT_REFs, stop as soon as the offset would become negative.
 +
-+      Import this fix from the mainline:
-+      2010-10-19  Nick Clifton  <nickc@redhat.com>
++2012-01-04  Richard Guenther  <rguenther@suse.de>
 +
-+      * config/rx/rx.c (rx_function_value): Small integer types are
-+      promoted to SImode.
-+      (rx_promote_function_mode): New function.
-+      (TARGET_PROMOTE_FUNCTION_MODE): Define.
++      PR tree-optimization/49651
++      * tree-ssa-structalias.c (type_can_have_subvars): New function.
++      (var_can_have_subvars): Use it.
++      (get_constraint_for_1): Only consider subfields if there can be any.
 +
-+2011-01-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
++2012-01-03  Sandra Loosemore  <sandra@codesourcery.com>
 +
 +      Backport from mainline:
-+      2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
++      2012-01-02  Sandra Loosemore  <sandra@codesourcery.com>
 +
-+      PR target/43309
-+      * config/i386/i386.c (legitimize_tls_address)
-+      <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
-+      * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
-+      (tls_initial_exec_64_sun): New pattern.
++      * doc/invoke.texi (-flto and related options): Copy-edit.
 +
-+2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
++2012-01-03  Richard Guenther  <rguenther@suse.de>
 +
 +      Backport from mainline
-+      2010-12-30  Eric Botcazou  <ebotcazou@adacore.com>
++      2011-11-10  Richard Guenther  <rguenther@suse.de>
 +
-+      PR target/47038
-+      * config/sparc/sparc.c (sparc_file_end): Call resolve_unique_section
-+      on the GOT helper if USE_HIDDEN_LINKONCE.
++      PR tree-optimization/51042
++      * tree-ssa-pre.c (phi_translate_1): Avoid recursing on
++      self-referential expressions.  Refactor code to avoid duplication.
 +
-+      2010-12-02  Eric Botcazou  <ebotcazou@adacore.com>
++2012-01-03  Richard Guenther  <rguenther@suse.de>
 +
-+      PR target/46685
-+      * config/sparc/sparc.c (can_use_mov_pic_label_ref): New predicate.
-+      (sparc_expand_move): Call it to decide whether to emit the special
-+      mov{si,di}_pic_label_ref patterns.
-+      (sparc_legitimize_pic_address): Call it to decide whether to emit
-+      the regular PIC sequence for labels.  Fix long line.
-+      (sparc_file_end): Set is_thunk for the PIC helper.
++      PR tree-optimization/51070
++      * tree-loop-distribution.c (generate_builtin): Do not replace
++      the loop with a builtin if the partition contains statements which
++      results are used outside of the loop.
++      (stmt_has_scalar_dependences_outside_loop): Properly handle calls.
 +
-+2010-12-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
++2011-12-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
 +
-+      * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
-+      patterns.
++      Backport from the mainline
++      2011-12-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
 +
-+2010-12-27  Yao Qi  <yao@codesourcery.com>
++      * config/rs6000/rs6000.c (rs6000_inner_target_options): Fix thinko
++      in setting options via target #pragma or attribute.
 +
-+      Backport from mainline:
-+      2010-10-14  Yao Qi  <yao@codesourcery.com>
++2011-12-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
++
++      Backport from mainline
++      2011-12-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
 +
-+      PR target/45447
-+      * config/arm/arm.c (arm_build_builtin_va_list): Assign
-+      va_list_name to TYPE_STUB_DECL (va_list_type).
++      PR target/51623
++      * config/rs6000/rs6000.c (rs6000_assemble_integer): Don't call
++      unlikely_text_section_p.  Instead check for being in a code section.
 +
-+2010-12-23  Sebastian Pop  <sebastian.pop@amd.com>
-+          Richard Guenther  <rguenther@suse.de>
++2011-12-23  Richard Guenther  <rguenther@suse.de>
 +
-+      PR tree-optimization/46758
-+      * graphite-sese-to-poly.c (scan_tree_for_params_right_scev): Use
-+      tree_int_to_gmp instead of int_cst_value.
-+      (scan_tree_for_params_int): Same.
-+      (scan_tree_for_params): Same.
-+      (pdr_add_data_dimensions): Use ppl_set_inhomogeneous_tree.
++      PR rtl-optimization/50396
++      * simplify-rtx.c (simplify_binary_operation_1): Properly
++      guard code that only works for integers.
 +
-+2010-12-23  Sebastian Pop  <sebastian.pop@amd.com>
++2011-12-22  Doug Kwan  <dougkwan@google.com>
 +
 +      Backport from mainline
-+      Fix PR45758: reset scevs before Graphite.
-+        2010-09-24  Sebastian Pop  <sebastian.pop@amd.com>
-+
-+      PR tree-optimization/45552
-+      * graphite.c (graphite_initialize): Call scev_reset.
-+
-+2010-12-23  Sebastian Pop  <sebastian.pop@amd.com>
-+
-+      PR tree-optimization/43023
-+      * tree-data-ref.c (mem_write_stride_of_same_size_as_unit_type_p):
-+      Removed.
-+      (stores_zero_from_loop): Call stmt_stores_zero.
-+      (stmt_with_adjacent_zero_store_dr_p): New.
-+      * tree-data-ref.h (stmt_with_adjacent_zero_store_dr_p): Declared.
-+      (stride_of_unit_type_p): New.
-+      * tree-loop-distribution.c (generate_memset_zero): Do not return a
-+      boolean.  Call gcc_assert on stride_of_unit_type_p.
-+      (generate_builtin): Call stmt_stores_zero.
-+      (rdg_flag_all_uses): Removed.
-+      (rdg_flag_similar_memory_accesses): Removed.
-+      (build_rdg_partition_for_component): Removed parameter
-+      other_stores.  Removed call to rdg_flag_similar_memory_accesses.
-+      (can_generate_builtin): New.
-+      (similar_memory_accesses): New.
-+      (fuse_partitions_with_similar_memory_accesses): New.
-+      (rdg_build_partitions): Call
-+      fuse_partitions_with_similar_memory_accesses.
-+
-+2010-12-21  Martin Jambor  <mjambor@suse.cz>
++      2011-03-23  Julian Brown  <julian@codesourcery.com>
 +
-+      Backport from mainline:
-+      2010-12-09  Martin Jambor  <mjambor@suse.cz>
++      * expr.c (expand_expr_real_1): Only use BLKmode for volatile
++      accesses which are not naturally aligned.
 +
-+      PR middle-end/46734
-+      * tree-sra.c (splice_param_accesses): Check that there are not
-+      multiple ADDRESSABLE types.
++      2011-11-20  Joey Ye  <joey.ye@arm.com>
 +
-+2010-12-19  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
++      * expr.c (expand_expr_real_1): Correctly handle strict volatile
++      bitfield loads smaller than mode size.
 +
-+      Backport from mainline:
-+      2010-12-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
-+
-+      PR target/46915
-+      * config/pa/pa.c (branch_to_delay_slot_p): Use next_active_insn instead
-+      of next_real_insn.  Search forward checking for both ASM_INPUT and
-+      ASM_OPERANDS asms until exit condition is found.
-+      (branch_needs_nop_p): Likewise.
-+      (use_skip_p): New function.
-+      (output_cbranch): Use use_skip_p.
-+      (output_bb, output_bvb): Likewise.
-+
-+2010-12-19  Eric Botcazou  <ebotcazou@adacore.com>
-+
-+      PR target/46729
-+      * config/sparc/sparc.h (GLOBAL_OFFSET_TABLE_REGNUM): New macro.
-+      (PIC_OFFSET_TABLE_REGNUM): Rewrite in terms of above macro.
-+      * config/sparc/sparc.c (pic_helper_needed): Delete.
-+      (global_offset_table): Likewise.
-+      (pic_helper_symbol): Rename to...
-+      (got_helper_rtx): ...this.
-+      (global_offset_table_rtx): New global variable.
-+      (sparc_got_symbol): Likewise.
-+      (sparc_got): New static function.
-+      (check_pic): Use local variable and call sparc_got.
-+      (sparc_tls_symbol): Initialize to NULL_RTX.
-+      (sparc_tls_got): In non-PIC mode, reload the GOT register for Sun TLS
-+      and 32-bit ABI and copy the GOT symbol to a new register otherwise.
-+      (get_pc_thunk_name): Rename local variable.
-+      (gen_load_pcrel_sym): New wrapper around load_pcrel_sym{si,di}.
-+      (load_pic_register): Rename to...
-+      (load_got_register): ...this.  Adjust and call gen_load_pcrel_sym.
-+      (sparc_expand_prologue): Do not test flag_pic.
-+      (sparc_output_mi_thunk): Use pic_offset_table_rtx directly.
-+      (sparc_file_end): Test got_helper_rtx instead of pic_helper_needed.
-+      Rename local variable and do not call get_pc_thunk_name again.
-+      * config/sparc/sparc.md (load_pcrel_sym): Add operand #3.
-+
-+2010-12-18  Alexandre Oliva  <aoliva@redhat.com>
-+
-+      PR debug/46756
-+      * jump.c (mark_all_labels): Skip debug insns.
-+
-+2010-12-18  Alexandre Oliva  <aoliva@redhat.com>
-+
-+      PR debug/46782
-+      * cfgcleanup.c (try_forward_edges): Skip debug insns.
-+
-+2010-12-16  Eric Botcazou  <ebotcazou@adacore.com>
-+
-+      * tree-ssa-sccvn.c (vn_reference_lookup_3): Always punt if the call to
-+      get_ref_base_and_extent returns -1 as the max size.
-+
-+2010-12-16  Richard Guenther  <rguenther@suse.de>
-+
-+      * DEV-PHASE: Set back to prerelease.
-+      * BASE-VER: Bump to 4.5.3.
-+
- 2010-12-16  Release Manager
-       * GCC 4.5.2 released.
-Index: gcc/testsuite/gcc.c-torture/compile/pr47150.c
-===================================================================
---- gcc/testsuite/gcc.c-torture/compile/pr47150.c      (.../tags/gcc_4_5_2_release)    (wersja 0)
-+++ gcc/testsuite/gcc.c-torture/compile/pr47150.c      (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -0,0 +1,11 @@
-+/* PR c/47150 */
++2011-12-21  Richard Earnshaw  <rearnsha@arm.com>
 +
-+float _Complex foo (float, float);
++      PR target/51643
++      * arm.c (arm_function_ok_for_sibcall): Use DECL_WEAK in previous
++      change.
 +
-+void
-+bar ()
-+{
-+  float w = 2;
-+  float _Complex b;
-+  b = 0.5 * (foo (0, w) + foo (1, w) / w);
-+}
-Index: gcc/testsuite/gcc.c-torture/compile/20110126-1.c
-===================================================================
---- gcc/testsuite/gcc.c-torture/compile/20110126-1.c   (.../tags/gcc_4_5_2_release)    (wersja 0)
-+++ gcc/testsuite/gcc.c-torture/compile/20110126-1.c   (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -0,0 +1,18 @@
-+/* PR rtl-optimization/44469 */
-+/* Testcase by Siarhei Siamashka <siarhei.siamashka@gmail.com> */
++2011-12-21  Richard Earnshaw  <rearnsha@arm.com>
 +
-+int a (int *t, const char *p)
-+{
-+  if (*t == 0)
-+    {
-+    }
-+  else if (*t == 1)
-+    {
-+      p = (const char *)t;
-+    }
-+  else
-+    __builtin_unreachable();
-+  if (p[0])
-+    return 0;
-+  return 1;
-+}
-Index: gcc/testsuite/gcc.target/arm/pr45447.c
-===================================================================
---- gcc/testsuite/gcc.target/arm/pr45447.c     (.../tags/gcc_4_5_2_release)    (wersja 0)
-+++ gcc/testsuite/gcc.target/arm/pr45447.c     (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -0,0 +1,3 @@
-+/* { dg-do compile } */
-+/* { dg-options "-g -femit-struct-debug-baseonly" } */
-+typedef __builtin_va_list x;
-Index: gcc/testsuite/gcc.target/powerpc/vsx-builtin-8.c
-===================================================================
---- gcc/testsuite/gcc.target/powerpc/vsx-builtin-8.c   (.../tags/gcc_4_5_2_release)    (wersja 0)
-+++ gcc/testsuite/gcc.target/powerpc/vsx-builtin-8.c   (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -0,0 +1,97 @@
-+/* { dg-do compile { target { powerpc*-*-* } } } */
-+/* { dg-skip-if "" { powerpc*-*-darwin* } { "*" } { "" } } */
-+/* { dg-require-effective-target powerpc_vsx_ok } */
-+/* { dg-options "-O3 -mcpu=power7" } */
-+
-+/* Test the various load/store varients.  */
-+
-+#include <altivec.h>
-+
-+#define TEST_COPY(NAME, TYPE)                                         \
-+void NAME ## _copy_native (vector TYPE *a, vector TYPE *b)            \
-+{                                                                     \
-+  *a = *b;                                                            \
-+}                                                                     \
-+                                                                      \
-+void NAME ## _copy_vec (vector TYPE *a, vector TYPE *b)                       \
-+{                                                                     \
-+  vector TYPE x = vec_ld (0, b);                                      \
-+  vec_st (x, 0, a);                                                   \
-+}                                                                     \
-+
-+#define TEST_COPYL(NAME, TYPE)                                                \
-+void NAME ## _lvxl (vector TYPE *a, vector TYPE *b)                   \
-+{                                                                     \
-+  vector TYPE x = vec_ldl (0, b);                                     \
-+  vec_stl (x, 0, a);                                                  \
-+}                                                                     \
-+
-+#define TEST_VSX_COPY(NAME, TYPE)                                     \
-+void NAME ## _copy_vsx (vector TYPE *a, vector TYPE *b)                       \
-+{                                                                     \
-+  vector TYPE x = vec_vsx_ld (0, b);                                  \
-+  vec_vsx_st (x, 0, a);                                                       \
-+}                                                                     \
-+
-+#define TEST_ALIGN(NAME, TYPE)                                                \
-+void NAME ## _align (vector unsigned char *a, TYPE *b)                        \
-+{                                                                     \
-+  vector unsigned char x = vec_lvsl (0, b);                           \
-+  vector unsigned char y = vec_lvsr (0, b);                           \
-+  vec_st (x, 0, a);                                                   \
-+  vec_st (y, 8, a);                                                   \
-+}
++      PR target/51643
++      * arm.c (arm_function_ok_for_sibcall): Don't try to tailcall a
++      weak function on bare-metal EABI targets.
 +
-+#ifndef NO_COPY
-+TEST_COPY(uchar,  unsigned char)
-+TEST_COPY(schar,  signed   char)
-+TEST_COPY(bchar,  bool     char)
-+TEST_COPY(ushort, unsigned short)
-+TEST_COPY(sshort, signed   short)
-+TEST_COPY(bshort, bool     short)
-+TEST_COPY(uint,   unsigned int)
-+TEST_COPY(sint,   signed   int)
-+TEST_COPY(bint,   bool     int)
-+TEST_COPY(float,  float)
-+TEST_COPY(double, double)
-+#endif        /* NO_COPY */
-+
-+#ifndef NO_COPYL
-+TEST_COPYL(uchar,  unsigned char)
-+TEST_COPYL(schar,  signed   char)
-+TEST_COPYL(bchar,  bool     char)
-+TEST_COPYL(ushort, unsigned short)
-+TEST_COPYL(sshort, signed   short)
-+TEST_COPYL(bshort, bool     short)
-+TEST_COPYL(uint,   unsigned int)
-+TEST_COPYL(sint,   signed   int)
-+TEST_COPYL(bint,   bool     int)
-+TEST_COPYL(float,  float)
-+TEST_COPYL(double, double)
-+#endif        /* NO_COPYL */
-+
-+#ifndef NO_ALIGN
-+TEST_ALIGN(uchar,  unsigned char)
-+TEST_ALIGN(schar,  signed   char)
-+TEST_ALIGN(ushort, unsigned short)
-+TEST_ALIGN(sshort, signed   short)
-+TEST_ALIGN(uint,   unsigned int)
-+TEST_ALIGN(sint,   signed   int)
-+TEST_ALIGN(float,  float)
-+TEST_ALIGN(double, double)
-+#endif        /* NO_ALIGN */
-+
-+
-+#ifndef NO_VSX_COPY
-+TEST_VSX_COPY(uchar,  unsigned char)
-+TEST_VSX_COPY(schar,  signed   char)
-+TEST_VSX_COPY(bchar,  bool     char)
-+TEST_VSX_COPY(ushort, unsigned short)
-+TEST_VSX_COPY(sshort, signed   short)
-+TEST_VSX_COPY(bshort, bool     short)
-+TEST_VSX_COPY(uint,   unsigned int)
-+TEST_VSX_COPY(sint,   signed   int)
-+TEST_VSX_COPY(bint,   bool     int)
-+TEST_VSX_COPY(float,  float)
-+TEST_VSX_COPY(double, double)
-+#endif        /* NO_VSX_COPY */
-Index: gcc/testsuite/gcc.target/powerpc/ppc64-abi-dfp-1.c
-===================================================================
---- gcc/testsuite/gcc.target/powerpc/ppc64-abi-dfp-1.c (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/testsuite/gcc.target/powerpc/ppc64-abi-dfp-1.c (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -1,4 +1,5 @@
- /* { dg-do run { target { powerpc64-*-* && { lp64 && dfprt } } } } */
-+/* { dg-skip-if "" { powerpc*-*-darwin* } { "*" } { "" } } */
- /* { dg-options "-std=gnu99 -O2 -fno-strict-aliasing" } */
- /* Testcase to check for ABI compliance of parameter passing
-@@ -31,61 +32,43 @@
- reg_parms_t gparms;
--/* Testcase could break on future gcc's, if parameter regs
--   are changed before this asm.  */
-+/* Wrapper to save the GPRs and FPRs and then jump to the real function.  */
-+#define WRAPPER(NAME)                                                 \
-+__asm__ ("\t.globl\t" #NAME "_asm\n\t"                                        \
-+       ".section \".opd\",\"aw\"\n\t"                                 \
-+       ".align 3\n"                                                   \
-+       #NAME "_asm:\n\t"                                              \
-+       ".quad .L." #NAME "_asm,.TOC.@tocbase,0\n\t"                   \
-+       ".text\n\t"                                                    \
-+       ".type " #NAME "_asm, @function\n"                             \
-+       ".L." #NAME "_asm:\n\t"                                        \
-+       "ld 11,gparms@got(2)\n\t"                                      \
-+       "std 3,0(11)\n\t"                                              \
-+       "std 4,8(11)\n\t"                                              \
-+       "std 5,16(11)\n\t"                                             \
-+       "std 6,24(11)\n\t"                                             \
-+       "std 7,32(11)\n\t"                                             \
-+       "std 8,40(11)\n\t"                                             \
-+       "std 9,48(11)\n\t"                                             \
-+       "std 10,56(11)\n\t"                                            \
-+       "stfd 1,64(11)\n\t"                                            \
-+       "stfd 2,72(11)\n\t"                                            \
-+       "stfd 3,80(11)\n\t"                                            \
-+       "stfd 4,88(11)\n\t"                                            \
-+       "stfd 5,96(11)\n\t"                                            \
-+       "stfd 6,104(11)\n\t"                                           \
-+       "stfd 7,112(11)\n\t"                                           \
-+       "stfd 8,120(11)\n\t"                                           \
-+       "stfd 9,128(11)\n\t"                                           \
-+       "stfd 10,136(11)\n\t"                                          \
-+       "stfd 11,144(11)\n\t"                                          \
-+       "stfd 12,152(11)\n\t"                                          \
-+       "stfd 13,160(11)\n\t"                                          \
-+       "b " #NAME "\n\t"                                              \
-+       ".long 0\n\t"                                                  \
-+       ".byte 0,0,0,0,0,0,0,0\n\t"                                    \
-+       ".size " #NAME ",.-" #NAME "\n")
--#ifndef __MACH__
--#define save_parms(lparms)                            \
--    asm volatile ("ld 11,gparms@got(2)\n\t"                \
--                  "std 3,0(11)\n\t"                   \
--                "std 4,8(11)\n\t"                     \
--                "std 5,16(11)\n\t"                    \
--                "std 6,24(11)\n\t"                    \
--                "std 7,32(11)\n\t"                    \
--                "std 8,40(11)\n\t"                    \
--                "std 9,48(11)\n\t"                    \
--                "std 10,56(11)\n\t"                   \
--                  "stfd 1,64(11)\n\t"                 \
--                "stfd 2,72(11)\n\t"                   \
--                "stfd 3,80(11)\n\t"                   \
--                "stfd 4,88(11)\n\t"                   \
--                "stfd 5,96(11)\n\t"                   \
--                "stfd 6,104(11)\n\t"                  \
--                "stfd 7,112(11)\n\t"                  \
--                "stfd 8,120(11)\n\t"                  \
--                "stfd 9,128(11)\n\t"                  \
--                "stfd 10,136(11)\n\t"                 \
--                "stfd 11,144(11)\n\t"                 \
--                "stfd 12,152(11)\n\t"                 \
--                "stfd 13,160(11)\n\t":::"11", "memory");  \
--                  lparms = gparms;
--#else
--#define save_parms(lparms)                            \
--    asm volatile ("ld r11,gparms@got(r2)\n\t"           \
--                  "std r3,0(r11)\n\t"                 \
--                "std r4,8(r11)\n\t"                   \
--                "std r5,16(r11)\n\t"                  \
--                "std r6,24(r11)\n\t"                  \
--                "std r7,32(r11)\n\t"                  \
--                "std r8,40(r11)\n\t"                  \
--                "std r9,48(r11)\n\t"                  \
--                "std r10,56(r11)\n\t"                 \
--                  "stfd f1,64(r11)\n\t"                       \
--                "stfd f2,72(r11)\n\t"                 \
--                "stfd f3,80(r11)\n\t"                 \
--                "stfd f4,88(r11)\n\t"                 \
--                "stfd f5,96(r11)\n\t"                 \
--                "stfd f6,104(r11)\n\t"                \
--                "stfd f7,112(r11)\n\t"                \
--                "stfd f8,120(r11)\n\t"                \
--                "stfd f9,128(r11)\n\t"                \
--                "stfd f10,136(r11)\n\t"               \
--                "stfd f11,144(r11)\n\t"               \
--                "stfd f12,152(r11)\n\t"               \
--                "stfd f13,160(r11)\n\t":::"r11", "memory");  \
--                  lparms = gparms;
--#endif
--
- typedef struct sf
- {
-   struct sf *backchain;
-@@ -97,6 +80,13 @@
-   unsigned long slot[100];
- } stack_frame_t;
-+extern void func0_asm (double, double, double, double, double, double,
-+                     double, double, double, double, double, double,
-+                     double, double, 
-+                     _Decimal64, _Decimal128, _Decimal64);
-+
-+WRAPPER(func0);
-+
- /* Fill up floating point registers with double arguments, forcing
-    decimal float arguments into the parameter save area.  */
- void __attribute__ ((noinline))
-@@ -105,186 +95,209 @@
-        double a13, double a14, 
-        _Decimal64 a15, _Decimal128 a16, _Decimal64 a17)
- {
--  reg_parms_t lparms;
-   stack_frame_t *sp;
--  save_parms (lparms);
-   sp = __builtin_frame_address (0);
-   sp = sp->backchain;
--  if (a1 != lparms.fprs[0]) FAILURE
--  if (a2 != lparms.fprs[1]) FAILURE
--  if (a3 != lparms.fprs[2]) FAILURE
--  if (a4 != lparms.fprs[3]) FAILURE
--  if (a5 != lparms.fprs[4]) FAILURE
--  if (a6 != lparms.fprs[5]) FAILURE
--  if (a7 != lparms.fprs[6]) FAILURE
--  if (a8 != lparms.fprs[7]) FAILURE
--  if (a9 != lparms.fprs[8]) FAILURE
--  if (a10 != lparms.fprs[9]) FAILURE
--  if (a11 != lparms.fprs[10]) FAILURE
--  if (a12 != lparms.fprs[11]) FAILURE
--  if (a13 != lparms.fprs[12]) FAILURE
-+  if (a1 != gparms.fprs[0]) FAILURE
-+  if (a2 != gparms.fprs[1]) FAILURE
-+  if (a3 != gparms.fprs[2]) FAILURE
-+  if (a4 != gparms.fprs[3]) FAILURE
-+  if (a5 != gparms.fprs[4]) FAILURE
-+  if (a6 != gparms.fprs[5]) FAILURE
-+  if (a7 != gparms.fprs[6]) FAILURE
-+  if (a8 != gparms.fprs[7]) FAILURE
-+  if (a9 != gparms.fprs[8]) FAILURE
-+  if (a10 != gparms.fprs[9]) FAILURE
-+  if (a11 != gparms.fprs[10]) FAILURE
-+  if (a12 != gparms.fprs[11]) FAILURE
-+  if (a13 != gparms.fprs[12]) FAILURE
-   if (a14 != *(double *)&sp->slot[13]) FAILURE
-   if (a15 != *(_Decimal64 *)&sp->slot[14]) FAILURE
-   if (a16 != *(_Decimal128 *)&sp->slot[15]) FAILURE
-   if (a17 != *(_Decimal64 *)&sp->slot[17]) FAILURE
- }
-+extern void func1_asm (double, double, double, double, double, double,
-+                     double, double, double, double, double, double,
-+                     double, _Decimal128 );
++2011-12-21  Uros Bizjak  <ubizjak@gmail.com>
 +
-+WRAPPER(func1);
++      Backport from mainline
++      2011-12-21  Richard Guenther  <rguenther@suse.de>
 +
- void __attribute__ ((noinline))
- func1 (double a1, double a2, double a3, double a4, double a5, double a6,
-        double a7, double a8, double a9, double a10, double a11, double a12,
-        double a13, _Decimal128 a14)
- {
--  reg_parms_t lparms;
-   stack_frame_t *sp;
--  save_parms (lparms);
-   sp = __builtin_frame_address (0);
-   sp = sp->backchain;
--  if (a1 != lparms.fprs[0]) FAILURE
--  if (a2 != lparms.fprs[1]) FAILURE
--  if (a3 != lparms.fprs[2]) FAILURE
--  if (a4 != lparms.fprs[3]) FAILURE
--  if (a5 != lparms.fprs[4]) FAILURE
--  if (a6 != lparms.fprs[5]) FAILURE
--  if (a7 != lparms.fprs[6]) FAILURE
--  if (a8 != lparms.fprs[7]) FAILURE
--  if (a9 != lparms.fprs[8]) FAILURE
--  if (a10 != lparms.fprs[9]) FAILURE
--  if (a11 != lparms.fprs[10]) FAILURE
--  if (a12 != lparms.fprs[11]) FAILURE
--  if (a13 != lparms.fprs[12]) FAILURE
-+  if (a1 != gparms.fprs[0]) FAILURE
-+  if (a2 != gparms.fprs[1]) FAILURE
-+  if (a3 != gparms.fprs[2]) FAILURE
-+  if (a4 != gparms.fprs[3]) FAILURE
-+  if (a5 != gparms.fprs[4]) FAILURE
-+  if (a6 != gparms.fprs[5]) FAILURE
-+  if (a7 != gparms.fprs[6]) FAILURE
-+  if (a8 != gparms.fprs[7]) FAILURE
-+  if (a9 != gparms.fprs[8]) FAILURE
-+  if (a10 != gparms.fprs[9]) FAILURE
-+  if (a11 != gparms.fprs[10]) FAILURE
-+  if (a12 != gparms.fprs[11]) FAILURE
-+  if (a13 != gparms.fprs[12]) FAILURE
-   if (a14 != *(_Decimal128 *)&sp->slot[13]) FAILURE
- }
-+extern void func2_asm (double, double, double, double, double, double,
-+                     double, double, double, double, double, double,
-+                     _Decimal128);
++      PR lto/41159
++      * tree-outof-ssa.c (insert_value_copy_on_edge): Use the
++      mode of the pseudo as destination mode.  Only assert that
++      is equal to the promoted mode of the decl if it is a REG.
 +
-+WRAPPER(func2);
++2011-12-21  Uros Bizjak  <ubizjak@gmail.com>
 +
- void __attribute__ ((noinline))
- func2 (double a1, double a2, double a3, double a4, double a5, double a6,
-        double a7, double a8, double a9, double a10, double a11, double a12,
-        _Decimal128 a13)
- {
--  reg_parms_t lparms;
-   stack_frame_t *sp;
--  save_parms (lparms);
-   sp = __builtin_frame_address (0);
-   sp = sp->backchain;
--  if (a1 != lparms.fprs[0]) FAILURE
--  if (a2 != lparms.fprs[1]) FAILURE
--  if (a3 != lparms.fprs[2]) FAILURE
--  if (a4 != lparms.fprs[3]) FAILURE
--  if (a5 != lparms.fprs[4]) FAILURE
--  if (a6 != lparms.fprs[5]) FAILURE
--  if (a7 != lparms.fprs[6]) FAILURE
--  if (a8 != lparms.fprs[7]) FAILURE
--  if (a9 != lparms.fprs[8]) FAILURE
--  if (a10 != lparms.fprs[9]) FAILURE
--  if (a11 != lparms.fprs[10]) FAILURE
--  if (a12 != lparms.fprs[11]) FAILURE
-+  if (a1 != gparms.fprs[0]) FAILURE
-+  if (a2 != gparms.fprs[1]) FAILURE
-+  if (a3 != gparms.fprs[2]) FAILURE
-+  if (a4 != gparms.fprs[3]) FAILURE
-+  if (a5 != gparms.fprs[4]) FAILURE
-+  if (a6 != gparms.fprs[5]) FAILURE
-+  if (a7 != gparms.fprs[6]) FAILURE
-+  if (a8 != gparms.fprs[7]) FAILURE
-+  if (a9 != gparms.fprs[8]) FAILURE
-+  if (a10 != gparms.fprs[9]) FAILURE
-+  if (a11 != gparms.fprs[10]) FAILURE
-+  if (a12 != gparms.fprs[11]) FAILURE
-   if (a13 != *(_Decimal128 *)&sp->slot[12]) FAILURE
- }
-+extern void func3_asm (_Decimal64, _Decimal128, _Decimal64, _Decimal128,
-+                     _Decimal64, _Decimal128, _Decimal64, _Decimal128,
-+                     _Decimal64, _Decimal128);
++      * config/alpha/linux-unwind.h: Update copyright years.
++      (MD_FROB_UPDATE_CONTEXT): New define.
++      (alpha_frob_update_context): New function.
 +
-+WRAPPER(func3);
++2011-12-19  Martin Jambor  <mjambor@suse.cz>
 +
- void __attribute__ ((noinline))
- func3 (_Decimal64 a1, _Decimal128 a2, _Decimal64 a3, _Decimal128 a4,
-        _Decimal64 a5, _Decimal128 a6, _Decimal64 a7, _Decimal128 a8,
-        _Decimal64 a9, _Decimal128 a10)
- {
--  reg_parms_t lparms;
-   stack_frame_t *sp;
--  save_parms (lparms);
-   sp = __builtin_frame_address (0);
-   sp = sp->backchain;
--  if (a1 != *(_Decimal64 *)&lparms.fprs[0]) FAILURE   /* f1        */
--  if (a2 != *(_Decimal128 *)&lparms.fprs[1]) FAILURE  /* f2 & f3   */
--  if (a3 != *(_Decimal64 *)&lparms.fprs[3]) FAILURE   /* f4        */
--  if (a4 != *(_Decimal128 *)&lparms.fprs[5]) FAILURE  /* f6 & f7   */
--  if (a5 != *(_Decimal64 *)&lparms.fprs[7]) FAILURE   /* f8        */
--  if (a6 != *(_Decimal128 *)&lparms.fprs[9]) FAILURE  /* f10 & f11 */
--  if (a7 != *(_Decimal64 *)&lparms.fprs[11]) FAILURE  /* f12       */
-+  if (a1 != *(_Decimal64 *)&gparms.fprs[0]) FAILURE   /* f1        */
-+  if (a2 != *(_Decimal128 *)&gparms.fprs[1]) FAILURE  /* f2 & f3   */
-+  if (a3 != *(_Decimal64 *)&gparms.fprs[3]) FAILURE   /* f4        */
-+  if (a4 != *(_Decimal128 *)&gparms.fprs[5]) FAILURE  /* f6 & f7   */
-+  if (a5 != *(_Decimal64 *)&gparms.fprs[7]) FAILURE   /* f8        */
-+  if (a6 != *(_Decimal128 *)&gparms.fprs[9]) FAILURE  /* f10 & f11 */
-+  if (a7 != *(_Decimal64 *)&gparms.fprs[11]) FAILURE  /* f12       */
-   if (a8 != *(_Decimal128 *)&sp->slot[10]) FAILURE
-   if (a9 != *(_Decimal64 *)&sp->slot[12]) FAILURE
-   if (a10 != *(_Decimal128 *)&sp->slot[13]) FAILURE
- }
-+extern void func4_asm (_Decimal128, _Decimal64, _Decimal128, _Decimal64,
-+                     _Decimal128, _Decimal64, _Decimal128, _Decimal64);
++      PR tree-optimization/51583
++      * tree-sra.c (load_assign_lhs_subreplacements): Call
++      force_gimple_operand_gsi when necessary also in case of no
++      corresponding replacement on the RHS.
 +
-+WRAPPER(func4);
++2011-12-16  Eric Botcazou  <ebotcazou@adacore.com>
 +
- void __attribute__ ((noinline))
- func4 (_Decimal128 a1, _Decimal64 a2, _Decimal128 a3, _Decimal64 a4,
-        _Decimal128 a5, _Decimal64 a6, _Decimal128 a7, _Decimal64 a8)
- {
--  reg_parms_t lparms;
-   stack_frame_t *sp;
--  save_parms (lparms);
-   sp = __builtin_frame_address (0);
-   sp = sp->backchain;
--  if (a1 != *(_Decimal128 *)&lparms.fprs[1]) FAILURE  /* f2 & f3   */
--  if (a2 != *(_Decimal64 *)&lparms.fprs[3]) FAILURE   /* f4        */
--  if (a3 != *(_Decimal128 *)&lparms.fprs[5]) FAILURE  /* f6 & f7   */
--  if (a4 != *(_Decimal64 *)&lparms.fprs[7]) FAILURE   /* f8        */
--  if (a5 != *(_Decimal128 *)&lparms.fprs[9]) FAILURE  /* f10 & f11 */
--  if (a6 != *(_Decimal64 *)&lparms.fprs[11]) FAILURE  /* f12       */
-+  if (a1 != *(_Decimal128 *)&gparms.fprs[1]) FAILURE  /* f2 & f3   */
-+  if (a2 != *(_Decimal64 *)&gparms.fprs[3]) FAILURE   /* f4        */
-+  if (a3 != *(_Decimal128 *)&gparms.fprs[5]) FAILURE  /* f6 & f7   */
-+  if (a4 != *(_Decimal64 *)&gparms.fprs[7]) FAILURE   /* f8        */
-+  if (a5 != *(_Decimal128 *)&gparms.fprs[9]) FAILURE  /* f10 & f11 */
-+  if (a6 != *(_Decimal64 *)&gparms.fprs[11]) FAILURE  /* f12       */
-   if (a7 != *(_Decimal128 *)&sp->slot[9]) FAILURE
-   if (a8 != *(_Decimal64 *)&sp->slot[11]) FAILURE
- }
-+extern void func5_asm (_Decimal32, _Decimal32, _Decimal32, _Decimal32,
-+                     _Decimal32, _Decimal32, _Decimal32, _Decimal32,
-+                     _Decimal32, _Decimal32, _Decimal32, _Decimal32,
-+                     _Decimal32, _Decimal32, _Decimal32, _Decimal32);
++      * config/sparc/sparc.md (UNSPEC_FRAME_BLOCKAGE): New constant.
++      (frame_blockage): New expander.
++      (frame_blockage<P:mode>): New instruction.
++      * config/sparc/sparc.c (sparc_expand_prologue): When the sequence of
++      instructions establishing the frame isn't atomic, emit frame blockage.
 +
-+WRAPPER(func5);
++2011-12-15  H.J. Lu  <hongjiu.lu@intel.com>
 +
- void __attribute__ ((noinline))
- func5 (_Decimal32 a1, _Decimal32 a2, _Decimal32 a3, _Decimal32 a4,
-        _Decimal32 a5, _Decimal32 a6, _Decimal32 a7, _Decimal32 a8,
-        _Decimal32 a9, _Decimal32 a10, _Decimal32 a11, _Decimal32 a12,
-        _Decimal32 a13, _Decimal32 a14, _Decimal32 a15, _Decimal32 a16)
- {
--  reg_parms_t lparms;
-   stack_frame_t *sp;
--  save_parms (lparms);
-   sp = __builtin_frame_address (0);
-   sp = sp->backchain;
-   /* _Decimal32 is passed in the lower half of an FPR or parameter slot.  */
--  if (a1 != ((d32parm_t *)&lparms.fprs[0])->d) FAILURE                /* f1  */
--  if (a2 != ((d32parm_t *)&lparms.fprs[1])->d) FAILURE                /* f2  */
--  if (a3 != ((d32parm_t *)&lparms.fprs[2])->d) FAILURE                /* f3  */
--  if (a4 != ((d32parm_t *)&lparms.fprs[3])->d) FAILURE                /* f4  */
--  if (a5 != ((d32parm_t *)&lparms.fprs[4])->d) FAILURE                /* f5  */
--  if (a6 != ((d32parm_t *)&lparms.fprs[5])->d) FAILURE                /* f6  */
--  if (a7 != ((d32parm_t *)&lparms.fprs[6])->d) FAILURE                /* f7  */
--  if (a8 != ((d32parm_t *)&lparms.fprs[7])->d) FAILURE                /* f8  */
--  if (a9 != ((d32parm_t *)&lparms.fprs[8])->d) FAILURE                /* f9  */
--  if (a10 != ((d32parm_t *)&lparms.fprs[9])->d) FAILURE               /* f10 */
--  if (a11 != ((d32parm_t *)&lparms.fprs[10])->d) FAILURE      /* f11 */
--  if (a12 != ((d32parm_t *)&lparms.fprs[11])->d) FAILURE      /* f12 */
--  if (a13 != ((d32parm_t *)&lparms.fprs[12])->d) FAILURE      /* f13 */
-+  if (a1 != ((d32parm_t *)&gparms.fprs[0])->d) FAILURE                /* f1  */
-+  if (a2 != ((d32parm_t *)&gparms.fprs[1])->d) FAILURE                /* f2  */
-+  if (a3 != ((d32parm_t *)&gparms.fprs[2])->d) FAILURE                /* f3  */
-+  if (a4 != ((d32parm_t *)&gparms.fprs[3])->d) FAILURE                /* f4  */
-+  if (a5 != ((d32parm_t *)&gparms.fprs[4])->d) FAILURE                /* f5  */
-+  if (a6 != ((d32parm_t *)&gparms.fprs[5])->d) FAILURE                /* f6  */
-+  if (a7 != ((d32parm_t *)&gparms.fprs[6])->d) FAILURE                /* f7  */
-+  if (a8 != ((d32parm_t *)&gparms.fprs[7])->d) FAILURE                /* f8  */
-+  if (a9 != ((d32parm_t *)&gparms.fprs[8])->d) FAILURE                /* f9  */
-+  if (a10 != ((d32parm_t *)&gparms.fprs[9])->d) FAILURE               /* f10 */
-+  if (a11 != ((d32parm_t *)&gparms.fprs[10])->d) FAILURE      /* f11 */
-+  if (a12 != ((d32parm_t *)&gparms.fprs[11])->d) FAILURE      /* f12 */
-+  if (a13 != ((d32parm_t *)&gparms.fprs[12])->d) FAILURE      /* f13 */
-   if (a14 != ((d32parm_t *)&sp->slot[13])->d) FAILURE
-   if (a15 != ((d32parm_t *)&sp->slot[14])->d) FAILURE
-   if (a16 != ((d32parm_t *)&sp->slot[15])->d) FAILURE
- }
-+extern void func6_asm (_Decimal32, _Decimal64, _Decimal128,
-+                     _Decimal32, _Decimal64, _Decimal128,
-+                     _Decimal32, _Decimal64, _Decimal128,
-+                     _Decimal32, _Decimal64, _Decimal128);
++      Backport from mainline.
++      2011-10-28  Chung-Lin Tang  <cltang@codesourcery.com>
 +
-+WRAPPER(func6);
++      PR rtl-optimization/49720
++      * simplify-rtx.c (simplify_relational_operation_1): Detect
++      infinite recursion condition in "(eq/ne (plus x cst1) cst2)
++      simplifies to (eq/ne x (cst2 - cst1))" case.
 +
- void __attribute__ ((noinline))
- func6 (_Decimal32 a1, _Decimal64 a2, _Decimal128 a3,
-        _Decimal32 a4, _Decimal64 a5, _Decimal128 a6,
-        _Decimal32 a7, _Decimal64 a8, _Decimal128 a9,
-        _Decimal32 a10, _Decimal64 a11, _Decimal128 a12)
- {
--  reg_parms_t lparms;
-   stack_frame_t *sp;
--  save_parms (lparms);
-   sp = __builtin_frame_address (0);
-   sp = sp->backchain;
--  if (a1 != ((d32parm_t *)&lparms.fprs[0])->d) FAILURE                /* f1        */
--  if (a2 != *(_Decimal64 *)&lparms.fprs[1]) FAILURE           /* f2        */
--  if (a3 != *(_Decimal128 *)&lparms.fprs[3]) FAILURE          /* f4 & f5   */
--  if (a4 != ((d32parm_t *)&lparms.fprs[5])->d) FAILURE                /* f6        */
--  if (a5 != *(_Decimal64 *)&lparms.fprs[6]) FAILURE           /* f7        */
--  if (a6 != *(_Decimal128 *)&lparms.fprs[7]) FAILURE          /* f8 & f9   */
--  if (a7 != ((d32parm_t *)&lparms.fprs[9])->d) FAILURE                /* f10       */
--  if (a8 != *(_Decimal64 *)&lparms.fprs[10]) FAILURE          /* f11       */
--  if (a9 != *(_Decimal128 *)&lparms.fprs[11]) FAILURE         /* f12 & f13 */
-+  if (a1 != ((d32parm_t *)&gparms.fprs[0])->d) FAILURE                /* f1        */
-+  if (a2 != *(_Decimal64 *)&gparms.fprs[1]) FAILURE           /* f2        */
-+  if (a3 != *(_Decimal128 *)&gparms.fprs[3]) FAILURE          /* f4 & f5   */
-+  if (a4 != ((d32parm_t *)&gparms.fprs[5])->d) FAILURE                /* f6        */
-+  if (a5 != *(_Decimal64 *)&gparms.fprs[6]) FAILURE           /* f7        */
-+  if (a6 != *(_Decimal128 *)&gparms.fprs[7]) FAILURE          /* f8 & f9   */
-+  if (a7 != ((d32parm_t *)&gparms.fprs[9])->d) FAILURE                /* f10       */
-+  if (a8 != *(_Decimal64 *)&gparms.fprs[10]) FAILURE          /* f11       */
-+  if (a9 != *(_Decimal128 *)&gparms.fprs[11]) FAILURE         /* f12 & f13 */
-   if (a10 != ((d32parm_t *)&sp->slot[12])->d) FAILURE
-   if (a11 != *(_Decimal64 *)&sp->slot[13]) FAILURE
- }
-@@ -292,23 +305,23 @@
- int
- main (void)
- {
--  func0 (1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5, 10.5, 11.5, 12.5, 13.5,
--       14.5, 15.2dd, 16.2dl, 17.2dd);
--  func1 (101.5, 102.5, 103.5, 104.5, 105.5, 106.5, 107.5, 108.5, 109.5,
--       110.5, 111.5, 112.5, 113.5, 114.2dd);
--  func2 (201.5, 202.5, 203.5, 204.5, 205.5, 206.5, 207.5, 208.5, 209.5,
--       210.5, 211.5, 212.5, 213.2dd);
--  func3 (301.2dd, 302.2dl, 303.2dd, 304.2dl, 305.2dd, 306.2dl, 307.2dd,
--       308.2dl, 309.2dd, 310.2dl);
--  func4 (401.2dl, 402.2dd, 403.2dl, 404.2dd, 405.2dl, 406.2dd, 407.2dl,
--       408.2dd);
-+  func0_asm (1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5, 10.5, 11.5, 12.5, 13.5,
-+           14.5, 15.2dd, 16.2dl, 17.2dd);
-+  func1_asm (101.5, 102.5, 103.5, 104.5, 105.5, 106.5, 107.5, 108.5, 109.5,
-+           110.5, 111.5, 112.5, 113.5, 114.2dd);
-+  func2_asm (201.5, 202.5, 203.5, 204.5, 205.5, 206.5, 207.5, 208.5, 209.5,
-+           210.5, 211.5, 212.5, 213.2dd);
-+  func3_asm (301.2dd, 302.2dl, 303.2dd, 304.2dl, 305.2dd, 306.2dl, 307.2dd,
-+           308.2dl, 309.2dd, 310.2dl);
-+  func4_asm (401.2dl, 402.2dd, 403.2dl, 404.2dd, 405.2dl, 406.2dd, 407.2dl,
-+           408.2dd);
- #if 0
-   /* _Decimal32 doesn't yet follow the ABI; enable this when it does.  */
--  func5 (501.2df, 502.2df, 503.2df, 504.2df, 505.2df, 506.2df, 507.2df,
--       508.2df, 509.2df, 510.2df, 511.2df, 512.2df, 513.2df, 514.2df,
--       515.2df, 516.2df);
--  func6 (601.2df, 602.2dd, 603.2dl, 604.2df, 605.2dd, 606.2dl,
--       607.2df, 608.2dd, 609.2dl, 610.2df, 611.2dd, 612.2dl);
-+  func5_asm (501.2df, 502.2df, 503.2df, 504.2df, 505.2df, 506.2df, 507.2df,
-+           508.2df, 509.2df, 510.2df, 511.2df, 512.2df, 513.2df, 514.2df,
-+           515.2df, 516.2df);
-+  func6_asm (601.2df, 602.2dd, 603.2dl, 604.2df, 605.2dd, 606.2dl,
-+           607.2df, 608.2dd, 609.2dl, 610.2df, 611.2dd, 612.2dl);
- #endif
-   if (failcnt != 0)
-Index: gcc/testsuite/gcc.target/powerpc/ppc32-abi-dfp-1.c
-===================================================================
---- gcc/testsuite/gcc.target/powerpc/ppc32-abi-dfp-1.c (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/testsuite/gcc.target/powerpc/ppc32-abi-dfp-1.c (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -30,31 +30,6 @@
- reg_parms_t gparms;
--
--/* Testcase could break on future gcc's, if parameter regs
--   are changed before this asm.  */
--
--#define save_parms(lparms)                            \
--    asm volatile ("lis 11,gparms@ha\n\t"              \
--                  "la 11,gparms@l(11)\n\t"            \
--                  "st 3,0(11)\n\t"                    \
--                "st 4,4(11)\n\t"                      \
--                "st 5,8(11)\n\t"                      \
--                "st 6,12(11)\n\t"                     \
--                "st 7,16(11)\n\t"                     \
--                "st 8,20(11)\n\t"                     \
--                "st 9,24(11)\n\t"                     \
--                "st 10,28(11)\n\t"                    \
--                  "stfd 1,32(11)\n\t"                 \
--                "stfd 2,40(11)\n\t"                   \
--                "stfd 3,48(11)\n\t"                   \
--                "stfd 4,56(11)\n\t"                   \
--                "stfd 5,64(11)\n\t"                   \
--                "stfd 6,72(11)\n\t"                   \
--                "stfd 7,80(11)\n\t"                   \
--                "stfd 8,88(11)\n\t":::"11", "memory");  \
--                  lparms = gparms;
--
- typedef struct sf
- {
-   struct sf *backchain;
-@@ -62,115 +37,159 @@
-   unsigned int slot[200];
- } stack_frame_t;
-+/* Wrapper to save the GPRs and FPRs and then jump to the real function.  */
-+#define WRAPPER(NAME)                                                 \
-+__asm__ ("\t.globl\t" #NAME "_asm\n\t"                                        \
-+       ".text\n\t"                                                    \
-+       ".type " #NAME "_asm, @function\n"                             \
-+       #NAME "_asm:\n\t"                                              \
-+       "lis 11,gparms@ha\n\t"                                         \
-+       "la 11,gparms@l(11)\n\t"                                       \
-+       "st 3,0(11)\n\t"                                               \
-+       "st 4,4(11)\n\t"                                               \
-+       "st 5,8(11)\n\t"                                               \
-+       "st 6,12(11)\n\t"                                              \
-+       "st 7,16(11)\n\t"                                              \
-+       "st 8,20(11)\n\t"                                              \
-+       "st 9,24(11)\n\t"                                              \
-+       "st 10,28(11)\n\t"                                             \
-+       "stfd 1,32(11)\n\t"                                            \
-+       "stfd 2,40(11)\n\t"                                            \
-+       "stfd 3,48(11)\n\t"                                            \
-+       "stfd 4,56(11)\n\t"                                            \
-+       "stfd 5,64(11)\n\t"                                            \
-+       "stfd 6,72(11)\n\t"                                            \
-+       "stfd 7,80(11)\n\t"                                            \
-+       "stfd 8,88(11)\n\t"                                            \
-+       "b " #NAME "\n\t"                                              \
-+       ".size " #NAME ",.-" #NAME "\n")
-+
- /* Fill up floating point registers with double arguments, forcing
-    decimal float arguments into the parameter save area.  */
-+extern void func0_asm (double, double, double, double, double,
-+                     double, double, double, _Decimal64, _Decimal128);
-+
-+WRAPPER(func0);
-+
- void __attribute__ ((noinline))
- func0 (double a1, double a2, double a3, double a4, double a5,
-        double a6, double a7, double a8, _Decimal64 a9, _Decimal128 a10)
- {
--  reg_parms_t lparms;
-   stack_frame_t *sp;
--  save_parms (lparms);
-   sp = __builtin_frame_address (0);
-   sp = sp->backchain;
--  if (a1 != lparms.fprs[0]) FAILURE
--  if (a2 != lparms.fprs[1]) FAILURE
--  if (a3 != lparms.fprs[2]) FAILURE
--  if (a4 != lparms.fprs[3]) FAILURE
--  if (a5 != lparms.fprs[4]) FAILURE
--  if (a6 != lparms.fprs[5]) FAILURE
--  if (a7 != lparms.fprs[6]) FAILURE
--  if (a8 != lparms.fprs[7]) FAILURE
-+  if (a1 != gparms.fprs[0]) FAILURE
-+  if (a2 != gparms.fprs[1]) FAILURE
-+  if (a3 != gparms.fprs[2]) FAILURE
-+  if (a4 != gparms.fprs[3]) FAILURE
-+  if (a5 != gparms.fprs[4]) FAILURE
-+  if (a6 != gparms.fprs[5]) FAILURE
-+  if (a7 != gparms.fprs[6]) FAILURE
-+  if (a8 != gparms.fprs[7]) FAILURE
-   if (a9 != *(_Decimal64 *)&sp->slot[0]) FAILURE
-   if (a10 != *(_Decimal128 *)&sp->slot[2]) FAILURE
- }
- /* Alternate 64-bit and 128-bit decimal float arguments, checking that
-    _Decimal128 is always passed in even/odd register pairs.  */
-+extern void func1_asm (_Decimal64, _Decimal128, _Decimal64, _Decimal128,
-+                     _Decimal64, _Decimal128, _Decimal64, _Decimal128);
++2011-12-15  Andreas Tobler  <andreast@fgznet.ch>
 +
-+WRAPPER(func1);
++      Backport from mainline.
++      2011-12-15  Andreas Tobler  <andreast@fgznet.ch>
 +
- void __attribute__ ((noinline))
- func1 (_Decimal64 a1, _Decimal128 a2, _Decimal64 a3, _Decimal128 a4,
-        _Decimal64 a5, _Decimal128 a6, _Decimal64 a7, _Decimal128 a8)
- {
--  reg_parms_t lparms;
-   stack_frame_t *sp;
--  save_parms (lparms);
-   sp = __builtin_frame_address (0);
-   sp = sp->backchain;
--  if (a1 != *(_Decimal64 *)&lparms.fprs[0]) FAILURE   /* f1 */
--  if (a2 != *(_Decimal128 *)&lparms.fprs[1]) FAILURE  /* f2 & f3 */
--  if (a3 != *(_Decimal64 *)&lparms.fprs[3]) FAILURE   /* f4 */
--  if (a4 != *(_Decimal128 *)&lparms.fprs[5]) FAILURE  /* f6 & f7 */
--  if (a5 != *(_Decimal64 *)&lparms.fprs[7]) FAILURE   /* f8 */
-+  if (a1 != *(_Decimal64 *)&gparms.fprs[0]) FAILURE   /* f1 */
-+  if (a2 != *(_Decimal128 *)&gparms.fprs[1]) FAILURE  /* f2 & f3 */
-+  if (a3 != *(_Decimal64 *)&gparms.fprs[3]) FAILURE   /* f4 */
-+  if (a4 != *(_Decimal128 *)&gparms.fprs[5]) FAILURE  /* f6 & f7 */
-+  if (a5 != *(_Decimal64 *)&gparms.fprs[7]) FAILURE   /* f8 */
-   if (a6 != *(_Decimal128 *)&sp->slot[0]) FAILURE
-   if (a7 != *(_Decimal64 *)&sp->slot[4]) FAILURE
-   if (a8 != *(_Decimal128 *)&sp->slot[6]) FAILURE
- }
-+extern void func2_asm (_Decimal128, _Decimal64, _Decimal128, _Decimal64,
-+                     _Decimal128, _Decimal64, _Decimal128, _Decimal64);
++      * config/i386/freebsd.h (TARGET_ASM_FILE_END): Define.
 +
-+WRAPPER(func2);
++2011-12-13  Eric Botcazou  <ebotcazou@adacore.com>
 +
- void __attribute__ ((noinline))
- func2 (_Decimal128 a1, _Decimal64 a2, _Decimal128 a3, _Decimal64 a4,
-        _Decimal128 a5, _Decimal64 a6, _Decimal128 a7, _Decimal64 a8)
- {
--  reg_parms_t lparms;
-   stack_frame_t *sp;
--  save_parms (lparms);
-   sp = __builtin_frame_address (0);
-   sp = sp->backchain;
--  if (a1 != *(_Decimal128 *)&lparms.fprs[1]) FAILURE  /* f2 & f3 */
--  if (a2 != *(_Decimal64 *)&lparms.fprs[3]) FAILURE   /* f4 */
--  if (a3 != *(_Decimal128 *)&lparms.fprs[5]) FAILURE  /* f6 & f7 */
--  if (a4 != *(_Decimal64 *)&lparms.fprs[7]) FAILURE   /* f8 */
-+  if (a1 != *(_Decimal128 *)&gparms.fprs[1]) FAILURE  /* f2 & f3 */
-+  if (a2 != *(_Decimal64 *)&gparms.fprs[3]) FAILURE   /* f4 */
-+  if (a3 != *(_Decimal128 *)&gparms.fprs[5]) FAILURE  /* f6 & f7 */
-+  if (a4 != *(_Decimal64 *)&gparms.fprs[7]) FAILURE   /* f8 */
-   if (a5 != *(_Decimal128 *)&sp->slot[0]) FAILURE
-   if (a6 != *(_Decimal64 *)&sp->slot[4]) FAILURE
-   if (a7 != *(_Decimal128 *)&sp->slot[6]) FAILURE
-   if (a8 != *(_Decimal64 *)&sp->slot[10]) FAILURE
- }
-+extern void func3_asm (_Decimal64, _Decimal128, _Decimal64, _Decimal128,
-+                     _Decimal64);
++      * lto-streamer-out.c (write_symbol): Use proper 64-bit host type.
++      * lto-cgraph.c (input_cgraph_opt_section): Use 'int' for offsets.
++      * lto-streamer-in.c (lto_read_body): Likewise.
++      (lto_input_toplevel_asms): Likewise.
++      * lto-section-in.c (lto_create_simple_input_block): Likewise.
++      * lto-opts.c (lto_read_file_options): Likewise.
++      * ipa-prop.c (ipa_prop_read_section): Likewise.
 +
-+WRAPPER(func3);
++      * df.h (DF_NOTE): Fix typo in comment.
 +
- void __attribute__ ((noinline))
- func3 (_Decimal64 a1, _Decimal128 a2, _Decimal64 a3, _Decimal128 a4,
-        _Decimal64 a5)
- {
--  reg_parms_t lparms;
-   stack_frame_t *sp;
--  save_parms (lparms);
-   sp = __builtin_frame_address (0);
-   sp = sp->backchain;
--  if (a1 != *(_Decimal64 *)&lparms.fprs[0]) FAILURE   /* f1 */
--  if (a2 != *(_Decimal128 *)&lparms.fprs[1]) FAILURE  /* f2 & f3 */
--  if (a3 != *(_Decimal64 *)&lparms.fprs[3]) FAILURE   /* f4 */
--  if (a4 != *(_Decimal128 *)&lparms.fprs[5]) FAILURE  /* f6 & f7 */
-+  if (a1 != *(_Decimal64 *)&gparms.fprs[0]) FAILURE   /* f1 */
-+  if (a2 != *(_Decimal128 *)&gparms.fprs[1]) FAILURE  /* f2 & f3 */
-+  if (a3 != *(_Decimal64 *)&gparms.fprs[3]) FAILURE   /* f4 */
-+  if (a4 != *(_Decimal128 *)&gparms.fprs[5]) FAILURE  /* f6 & f7 */
-   if (a5 != *(_Decimal128 *)&sp->slot[0]) FAILURE
- }
-+extern void func4_asm (_Decimal32, _Decimal32, _Decimal32, _Decimal32,
-+                     _Decimal32, _Decimal32, _Decimal32, _Decimal32,
-+                     _Decimal32, _Decimal32, _Decimal32, _Decimal32,
-+                     _Decimal32, _Decimal32, _Decimal32, _Decimal32);
++2011-12-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
 +
-+WRAPPER(func4);
++      * regmove.c (fixup_match_2): Only access call_used_regs with hard
++      regs.
 +
- void __attribute__ ((noinline))
- func4 (_Decimal32 a1, _Decimal32 a2, _Decimal32 a3, _Decimal32 a4,
-        _Decimal32 a5, _Decimal32 a6, _Decimal32 a7, _Decimal32 a8,
-        _Decimal32 a9, _Decimal32 a10, _Decimal32 a11, _Decimal32 a12,
-        _Decimal32 a13, _Decimal32 a14, _Decimal32 a15, _Decimal32 a16)
- {
--  reg_parms_t lparms;
-   stack_frame_t *sp;
--  save_parms (lparms);
-   sp = __builtin_frame_address (0);
-   sp = sp->backchain;
-   /* _Decimal32 is passed in the lower half of an FPR, or in parameter slot.  */
--  if (a1 != ((d32parm_t *)&lparms.fprs[0])->d) FAILURE                /* f1  */
--  if (a2 != ((d32parm_t *)&lparms.fprs[1])->d) FAILURE                /* f2  */
--  if (a3 != ((d32parm_t *)&lparms.fprs[2])->d) FAILURE                /* f3  */
--  if (a4 != ((d32parm_t *)&lparms.fprs[3])->d) FAILURE                /* f4  */
--  if (a5 != ((d32parm_t *)&lparms.fprs[4])->d) FAILURE                /* f5  */
--  if (a6 != ((d32parm_t *)&lparms.fprs[5])->d) FAILURE                /* f6  */
--  if (a7 != ((d32parm_t *)&lparms.fprs[6])->d) FAILURE                /* f7  */
--  if (a8 != ((d32parm_t *)&lparms.fprs[7])->d) FAILURE                /* f8  */
-+  if (a1 != ((d32parm_t *)&gparms.fprs[0])->d) FAILURE                /* f1  */
-+  if (a2 != ((d32parm_t *)&gparms.fprs[1])->d) FAILURE                /* f2  */
-+  if (a3 != ((d32parm_t *)&gparms.fprs[2])->d) FAILURE                /* f3  */
-+  if (a4 != ((d32parm_t *)&gparms.fprs[3])->d) FAILURE                /* f4  */
-+  if (a5 != ((d32parm_t *)&gparms.fprs[4])->d) FAILURE                /* f5  */
-+  if (a6 != ((d32parm_t *)&gparms.fprs[5])->d) FAILURE                /* f6  */
-+  if (a7 != ((d32parm_t *)&gparms.fprs[6])->d) FAILURE                /* f7  */
-+  if (a8 != ((d32parm_t *)&gparms.fprs[7])->d) FAILURE                /* f8  */
-   if (a9 != *(_Decimal32 *)&sp->slot[0]) FAILURE
-   if (a10 != *(_Decimal32 *)&sp->slot[1]) FAILURE
-   if (a11 != *(_Decimal32 *)&sp->slot[2]) FAILURE
-@@ -181,24 +200,29 @@
-   if (a16 != *(_Decimal32 *)&sp->slot[7]) FAILURE
- }
-+extern void func5_asm (_Decimal32, _Decimal64, _Decimal128,
-+                     _Decimal32, _Decimal64, _Decimal128,
-+                     _Decimal32, _Decimal64, _Decimal128,
-+                     _Decimal32, _Decimal64, _Decimal128);
++2011-12-12  Jakub Jelinek  <jakub@redhat.com>
 +
-+WRAPPER(func5);
++      PR middle-end/51510
++      * calls.c (internal_arg_pointer_based_exp_scan): Don't use
++      VEC_safe_grow_cleared if idx is smaller than VEC_length.
 +
- void __attribute__ ((noinline))
- func5 (_Decimal32 a1, _Decimal64 a2, _Decimal128 a3,
-        _Decimal32 a4, _Decimal64 a5, _Decimal128 a6,
-        _Decimal32 a7, _Decimal64 a8, _Decimal128 a9,
-        _Decimal32 a10, _Decimal64 a11, _Decimal128 a12)
- {
--  reg_parms_t lparms;
-   stack_frame_t *sp;
--  save_parms (lparms);
-   sp = __builtin_frame_address (0);
-   sp = sp->backchain;
--  if (a1 != ((d32parm_t *)&lparms.fprs[0])->d) FAILURE                /* f1      */
--  if (a2 != *(_Decimal64 *)&lparms.fprs[1]) FAILURE           /* f2      */
--  if (a3 != *(_Decimal128 *)&lparms.fprs[3]) FAILURE          /* f4 & f5 */
--  if (a4 != ((d32parm_t *)&lparms.fprs[5])->d) FAILURE                /* f6      */
--  if (a5 != *(_Decimal64 *)&lparms.fprs[6]) FAILURE           /* f7      */
-+  if (a1 != ((d32parm_t *)&gparms.fprs[0])->d) FAILURE                /* f1      */
-+  if (a2 != *(_Decimal64 *)&gparms.fprs[1]) FAILURE           /* f2      */
-+  if (a3 != *(_Decimal128 *)&gparms.fprs[3]) FAILURE          /* f4 & f5 */
-+  if (a4 != ((d32parm_t *)&gparms.fprs[5])->d) FAILURE                /* f6      */
-+  if (a5 != *(_Decimal64 *)&gparms.fprs[6]) FAILURE           /* f7      */
-   if (a6 != *(_Decimal128 *)&sp->slot[0]) FAILURE
-   if (a7 != *(_Decimal32 *)&sp->slot[4]) FAILURE
-@@ -212,15 +236,15 @@
- int
- main ()
- {
--  func0 (1., 2., 3., 4., 5., 6., 7., 8., 9.dd, 10.dl);
--  func1 (1.dd, 2.dl, 3.dd, 4.dl, 5.dd, 6.dl, 7.dd, 8.dl);
--  func2 (1.dl, 2.dd, 3.dl, 4.dd, 5.dl, 6.dd, 7.dl, 8.dd);
--  func3 (1.dd, 2.dl, 3.dd, 4.dl, 5.dl);
--  func4 (501.2df, 502.2df, 503.2df, 504.2df, 505.2df, 506.2df, 507.2df,
--       508.2df, 509.2df, 510.2df, 511.2df, 512.2df, 513.2df, 514.2df,
--       515.2df, 516.2df);
--  func5 (601.2df, 602.2dd, 603.2dl, 604.2df, 605.2dd, 606.2dl,
--       607.2df, 608.2dd, 609.2dl, 610.2df, 611.2dd, 612.2dl);
-+  func0_asm (1., 2., 3., 4., 5., 6., 7., 8., 9.dd, 10.dl);
-+  func1_asm (1.dd, 2.dl, 3.dd, 4.dl, 5.dd, 6.dl, 7.dd, 8.dl);
-+  func2_asm (1.dl, 2.dd, 3.dl, 4.dd, 5.dl, 6.dd, 7.dl, 8.dd);
-+  func3_asm (1.dd, 2.dl, 3.dd, 4.dl, 5.dl);
-+  func4_asm (501.2df, 502.2df, 503.2df, 504.2df, 505.2df, 506.2df, 507.2df,
-+           508.2df, 509.2df, 510.2df, 511.2df, 512.2df, 513.2df, 514.2df,
-+           515.2df, 516.2df);
-+  func5_asm (601.2df, 602.2dd, 603.2dl, 604.2df, 605.2dd, 606.2dl,
-+           607.2df, 608.2dd, 609.2dl, 610.2df, 611.2dd, 612.2dl);
-   if (failcnt != 0)
-     abort ();
-Index: gcc/testsuite/gcc.target/powerpc/avoid-indexed-addresses.c
-===================================================================
---- gcc/testsuite/gcc.target/powerpc/avoid-indexed-addresses.c (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/testsuite/gcc.target/powerpc/avoid-indexed-addresses.c (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -1,5 +1,5 @@
- /* { dg-do compile { target { powerpc*-*-* } } } */
--/* { dg-options "-O2 -mavoid-indexed-addresses" } */
-+/* { dg-options "-O2 -mavoid-indexed-addresses -mno-altivec -mno-vsx" } */
- /* { dg-final { scan-assembler-not "lbzx" } }
-Index: gcc/testsuite/gcc.target/i386/avx-check.h
-===================================================================
---- gcc/testsuite/gcc.target/i386/avx-check.h  (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/testsuite/gcc.target/i386/avx-check.h  (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -20,7 +20,7 @@
-     return 0;
-   /* Run AVX test only if host has AVX support.  */
--  if (ecx & bit_AVX)
-+  if ((ecx & (bit_AVX | bit_OSXSAVE)) == (bit_AVX | bit_OSXSAVE))
-     {
-       do_test ();
- #ifdef DEBUG
-Index: gcc/testsuite/gcc.target/i386/avx-vmaskmovps-256-1.c
-===================================================================
---- gcc/testsuite/gcc.target/i386/avx-vmaskmovps-256-1.c       (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/testsuite/gcc.target/i386/avx-vmaskmovps-256-1.c       (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -16,10 +16,11 @@
-   int i;
-   int m[8] = {mask_v(0), mask_v(1), mask_v(2), mask_v(3), mask_v(4), mask_v(5), mask_v(6), mask_v(7)};
-   float s[8] = {1,2,3,4,5,6,7,8};
--  union256 u, mask;
-+  union256 u;
-+  union256i_d mask;
-   float e [8] = {0.0};
--  mask.x = _mm256_loadu_ps ((float*)m);
-+  mask.x = _mm256_loadu_si256 ((__m256i *)m);
-   u.x = _mm256_maskload_ps (s, mask.x);
-   for (i = 0 ; i < 8; i++) 
-Index: gcc/testsuite/gcc.target/i386/pr46880.c
-===================================================================
---- gcc/testsuite/gcc.target/i386/pr46880.c    (.../tags/gcc_4_5_2_release)    (wersja 0)
-+++ gcc/testsuite/gcc.target/i386/pr46880.c    (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -0,0 +1,28 @@
-+/* PR target/46880 */
-+/* { dg-do run } */
-+/* { dg-options "-O2 -fno-strict-aliasing -msse2" } */
-+/* { dg-require-effective-target sse2_runtime } */
++      Backported from mainline
++      2011-12-11  Jakub Jelinek  <jakub@redhat.com>
 +
-+typedef double __m128d __attribute__ ((__vector_size__ (16), __may_alias__));
-+typedef double (*T)[2];
++      PR tree-optimization/51485
++      * tree-vect-data-refs.c (vect_analyze_data_refs): Give up on
++      DRs in call stmts.
 +
-+static __attribute__ ((noinline, noclone)) __m128d
-+foo (__m128d c, __m128d d)
-+{
-+  T cp = (T) &c;
-+  T dp = (T) &d;
-+  __m128d e = { (*cp)[1], (*dp)[1] };
-+  return e;
-+}
++2011-12-12  Eric Botcazou  <ebotcazou@adacore.com>
 +
-+int
-+main ()
-+{
-+  __m128d c = { 1.0, 2.0 };
-+  __m128d d = { 3.0, 4.0 };
-+  union { __m128d x; double d[2]; } u;
-+  u.x = foo (c, d);
-+  if (u.d[0] != 2.0 || u.d[1] != 4.0)
-+    __builtin_abort ();
-+  return 0;
-+}
-Index: gcc/testsuite/gcc.target/i386/avx-vmaskmovps-1.c
-===================================================================
---- gcc/testsuite/gcc.target/i386/avx-vmaskmovps-1.c   (.../tags/gcc_4_5_2_release)    (wersja 0)
-+++ gcc/testsuite/gcc.target/i386/avx-vmaskmovps-1.c   (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -0,0 +1,31 @@
-+/* { dg-do run } */
-+/* { dg-require-effective-target avx } */
-+/* { dg-options "-O2 -mavx" } */
++      PR tree-optimization/50569
++      * tree-sra.c (build_ref_for_model): Replicate a chain of COMPONENT_REFs
++      in the expression of MODEL instead of just the last one.
 +
-+#include "avx-check.h"
++2011-12-09  Michael Meissner  <meissner@the-meissners.org>
 +
-+#ifndef MASK
-+#define MASK 134
-+#endif
++      Backport from mainline
++      2011-12-09  Michael Meissner  <meissner@the-meissners.org>
 +
-+#define mask_v(pos) (((MASK & (0x1 << (pos))) >> (pos)) << 31)
++      PR rtl-optimization/51469
++      * varasm.c (default_binds_local_p_1): If the symbol is a gnu
++      indirect function, mark the symbol as non-local.
 +
-+void static
-+avx_test (void)
-+{
-+  int i;
-+  int m[4] = {mask_v(0), mask_v(1), mask_v(2), mask_v(3)};
-+  float s[4] = {1,2,3,4};
-+  union128 u;
-+  union128i_d mask;
-+  float e[4] = {0.0};
-+
-+  mask.x = _mm_loadu_si128 ((__m128i *)m);
-+  u.x = _mm_maskload_ps (s, mask.x);
-+
-+  for (i = 0 ; i < 4; i++) 
-+    e[i] = m[i] ? s[i] : 0;
-+   
-+  if (check_union128 (u, e))
-+    abort ();
-+}
-Index: gcc/testsuite/gcc.target/i386/avx-vmaskmovpd-256-1.c
-===================================================================
---- gcc/testsuite/gcc.target/i386/avx-vmaskmovpd-256-1.c       (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/testsuite/gcc.target/i386/avx-vmaskmovpd-256-1.c       (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -14,12 +14,13 @@
- avx_test (void)
- {
-   int i;
--  long long m[8] = {mask_v(0), mask_v(1), mask_v(2), mask_v(3)};
-+  long long m[4] = {mask_v(0), mask_v(1), mask_v(2), mask_v(3)};
-   double s[4] = {1.1, 2.2, 3.3, 4.4};
--  union256d u, mask;
-+  union256d u;
-+  union256i_q mask;
-   double e [4] = {0.0};
--  mask.x = _mm256_loadu_pd ((double*)m);
-+  mask.x = _mm256_loadu_si256 ((__m256i *)m);
-   u.x = _mm256_maskload_pd (s, mask.x);
-   for (i = 0 ; i < 4; i++) 
-Index: gcc/testsuite/gcc.target/i386/avx-vmaskmovpd-1.c
-===================================================================
---- gcc/testsuite/gcc.target/i386/avx-vmaskmovpd-1.c   (.../tags/gcc_4_5_2_release)    (wersja 0)
-+++ gcc/testsuite/gcc.target/i386/avx-vmaskmovpd-1.c   (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -0,0 +1,31 @@
-+/* { dg-do run } */
-+/* { dg-require-effective-target avx } */
-+/* { dg-options "-O2 -mavx" } */
++2011-12-09  Jakub Jelinek  <jakub@redhat.com>
 +
-+#include "avx-check.h"
++      Backport from mainline
++      2011-12-08  Jakub Jelinek  <jakub@redhat.com>
 +
-+#ifndef MASK
-+#define MASK 7
-+#endif
++      PR tree-optimization/51466
++      * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also copy
++      TREE_SIDE_EFFECTS.
 +
-+#define mask_v(pos) (((MASK & (0x1ULL << (pos))) >> (pos)) << 63)
++      2011-11-28  Jakub Jelinek  <jakub@redhat.com>
 +
-+void static
-+avx_test (void)
-+{
-+  int i;
-+  long long m[2] = {mask_v(0), mask_v(1)};
-+  double s[2] = {1.1, 2.2};
-+  union128d u;
-+  union128i_q mask;
-+  double e[2] = {0.0};
-+
-+  mask.x = _mm_loadu_si128 ((__m128i *)m);
-+  u.x = _mm_maskload_pd (s, mask.x);
-+
-+  for (i = 0 ; i < 2; i++) 
-+    e[i] = m[i] ? s[i] : 0;
-+   
-+  if (check_union128d (u, e))
-+    abort ();
-+}
-Index: gcc/testsuite/gcc.target/i386/pr46865-1.c
-===================================================================
---- gcc/testsuite/gcc.target/i386/pr46865-1.c  (.../tags/gcc_4_5_2_release)    (wersja 0)
-+++ gcc/testsuite/gcc.target/i386/pr46865-1.c  (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -0,0 +1,31 @@
-+/* PR rtl-optimization/46865 */
-+/* { dg-do compile } */
-+/* { dg-options "-O2" } */
++      PR tree-optimization/50078
++      * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Copy over
++      TREE_THIS_VOLATILE also from the old to new lhs resp. rhs.
 +
-+extern unsigned long f;
++2011-12-09  Kazu Hirata  <kazu@codesourcery.com>
 +
-+#define m1(f)                                                 \
-+  if (f & 1)                                                  \
-+    asm volatile ("nop /* asmnop */\n");                      \
-+  else                                                                \
-+    asm volatile ("nop /* asmnop */\n");
++      Backport from mainline:
 +
-+#define m2(f)                                                 \
-+  if (f & 1)                                                  \
-+    asm volatile ("nop /* asmnop */\n" : : "i" (6) : "cx");   \
-+  else                                                                \
-+    asm volatile ("nop /* asmnop */\n" : : "i" (6) : "cx");
++      2011-12-05  Kazu Hirata  <kazu@codesourcery.com>
 +
-+void
-+foo (void)
-+{
-+  m1 (f);
-+}
++      PR target/51408
++      * config/arm/arm.md (*minmax_arithsi): Always require the else
++      clause in the MINUS case.
 +
-+void
-+bar (void)
-+{
-+  m2 (f);
-+}
++2011-12-08  Teresa Johnson  <tejohnson@google.com>
 +
-+/* { dg-final { scan-assembler-times "asmnop" 2 } } */
-Index: gcc/testsuite/gcc.target/i386/pr45852.c
-===================================================================
---- gcc/testsuite/gcc.target/i386/pr45852.c    (.../tags/gcc_4_5_2_release)    (wersja 0)
-+++ gcc/testsuite/gcc.target/i386/pr45852.c    (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -0,0 +1,16 @@
-+/* PR middle-end/45852 */
-+/* { dg-options "-O2 -mcmodel=small" } */
-+/* { dg-do compile { target { { i?86-*-linux* x86_64-*-linux* } && lp64 } } } */
-+/* { dg-require-visibility "" } */
++      Backport from mainline:
 +
-+struct S { int s; };
++      2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
 +
-+volatile struct S globvar __attribute__((visibility ("hidden"))) = { -6 };
++      * config/i386/i386.md (*movdi_internal_rex64): Use "!o" constraint
++      instead of "!m" for operand 0, alternative 4.
++      (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
 +
-+void
-+foo (void)
-+{
-+  globvar = globvar;
-+}
++2011-12-08  Jakub Jelinek  <jakub@redhat.com>
 +
-+/* { dg-final { scan-assembler-times "globvar.%?rip" 2 } } */
-Index: gcc/testsuite/gcc.target/i386/avx-vmaskmovps-256-2.c
-===================================================================
---- gcc/testsuite/gcc.target/i386/avx-vmaskmovps-256-2.c       (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/testsuite/gcc.target/i386/avx-vmaskmovps-256-2.c       (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -16,12 +16,13 @@
-   int i;
-   int m[8] = {mask_v(0), mask_v(1), mask_v(2), mask_v(3), mask_v(4), mask_v(5), mask_v(6), mask_v(7)};
-   float s[8] = {1,2,3,4,5,6,7,8};
--  union256 src, mask;
-+  union256 src;
-+  union256i_d mask;
-   float e [8] = {0.0};
-   float d [8] = {0.0};
-   src.x = _mm256_loadu_ps (s);
--  mask.x = _mm256_loadu_ps ((float *)m);
-+  mask.x = _mm256_loadu_si256 ((__m256i *)m);
-   _mm256_maskstore_ps (d, mask.x, src.x);
-   for (i = 0 ; i < 8; i++) 
-Index: gcc/testsuite/gcc.target/i386/avx-vmaskmovps-2.c
-===================================================================
---- gcc/testsuite/gcc.target/i386/avx-vmaskmovps-2.c   (.../tags/gcc_4_5_2_release)    (wersja 0)
-+++ gcc/testsuite/gcc.target/i386/avx-vmaskmovps-2.c   (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -0,0 +1,33 @@
-+/* { dg-do run } */
-+/* { dg-require-effective-target avx } */
-+/* { dg-options "-O2 -mavx" } */
++      Backport from mainline
++      2011-12-05  Jakub Jelinek  <jakub@redhat.com>
 +
-+#include "avx-check.h"
++      PR debug/51410
++      * c-decl.c (pop_scope): Don't add DECL_EXTERNAL decls
++      for debug info if scope is file_scope.
 +
-+#ifndef MASK
-+#define MASK 214
-+#endif
++      PR c/51339
++      * c-decl.c (c_finish_incomplete_decl, finish_decl): Call
++      relayout_decl instead of layout_decl.
 +
-+#define mask_v(pos) (((MASK & (0x1 << (pos))) >> (pos)) << 31)
++      2011-12-05  Jakub Jelinek  <jakub@redhat.com>
++                  Eric Botcazou  <ebotcazou@adacore.com>
 +
-+void static
-+avx_test (void)
-+{
-+  int i;
-+  int m[4] = {mask_v(0), mask_v(1), mask_v(2), mask_v(3)};
-+  float s[4] = {1,2,3,4};
-+  union128 src;
-+  union128i_d mask;
-+  float e[4] = {0.0};
-+  float d[4] = {0.0};
-+
-+  src.x = _mm_loadu_ps (s);
-+  mask.x = _mm_loadu_si128 ((__m128i *)m);
-+  _mm_maskstore_ps (d, mask.x, src.x);
-+
-+  for (i = 0 ; i < 4; i++) 
-+    e[i] = m[i] ? s[i] : 0;
-+   
-+  if (checkVf (d, e, 4))
-+    abort ();
-+}
-Index: gcc/testsuite/gcc.target/i386/avx-vmaskmovpd-256-2.c
-===================================================================
---- gcc/testsuite/gcc.target/i386/avx-vmaskmovpd-256-2.c       (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/testsuite/gcc.target/i386/avx-vmaskmovpd-256-2.c       (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -18,10 +18,11 @@
-   double s[4] = {1.1, 2.2, 3.3, 4.4};
-   double e [4] = {0.0};
-   double d [4] = {0.0};
--  union256d src, mask;
-+  union256d src;
-+  union256i_q mask;
-   
-   src.x = _mm256_loadu_pd (s);
--  mask.x = _mm256_loadu_pd ((double*)m);
-+  mask.x = _mm256_loadu_si256 ((__m256i *)m);
-   _mm256_maskstore_pd (d, mask.x, src.x);
-   for (i = 0 ; i < 4; i++) 
-Index: gcc/testsuite/gcc.target/i386/avx-vmaskmovpd-2.c
-===================================================================
---- gcc/testsuite/gcc.target/i386/avx-vmaskmovpd-2.c   (.../tags/gcc_4_5_2_release)    (wersja 0)
-+++ gcc/testsuite/gcc.target/i386/avx-vmaskmovpd-2.c   (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -0,0 +1,33 @@
-+/* { dg-do run } */
-+/* { dg-require-effective-target avx } */
-+/* { dg-options "-O2 -mavx" } */
++      PR middle-end/51323
++      PR middle-end/50074
++      * calls.c (internal_arg_pointer_exp_state): New variable.
++      (internal_arg_pointer_based_exp_1,
++      internal_arg_pointer_exp_scan): New functions.
++      (internal_arg_pointer_based_exp): New function.
++      (mem_overlaps_already_clobbered_arg_p): Use it.
++      (expand_call): Free internal_arg_pointer_exp_state.cache vector
++      and clear internal_arg_pointer_exp_state.scan_start.
 +
-+#include "avx-check.h"
++      2011-11-30  Jakub Jelinek  <jakub@redhat.com>
 +
-+#ifndef MASK
-+#define MASK 6
-+#endif
++      PR rtl-optimization/48721
++      * sched-deps.c (sched_analyze_insn): For SIBLING_CALL_P set
++      reg_pending_barrier to TRUE_BARRIER.
 +
-+#define mask_v(pos) (((MASK & (0x1ULL << (pos))) >> (pos)) << 63)
++      2011-11-26  Joern Rennecke  <joern.rennecke@embecosm.com>
 +
-+void static
-+avx_test (void)
-+{
-+  int i;
-+  long long m[2] = {mask_v(0), mask_v(1)};
-+  double s[2] = {1.1, 2.2};
-+  double e[2] = {0.0};
-+  double d[2] = {0.0};
-+  union128d src;
-+  union128i_q mask;
-+  
-+  src.x = _mm_loadu_pd (s);
-+  mask.x = _mm_loadu_si128 ((__m128i *)m);
-+  _mm_maskstore_pd (d, mask.x, src.x);
-+
-+  for (i = 0 ; i < 2; i++) 
-+    e[i] = m[i] ? s[i] : 0;
-+   
-+  if (checkVd (d, e, 2))
-+    abort ();
-+}
-Index: gcc/testsuite/gcc.target/i386/pr46865-2.c
-===================================================================
---- gcc/testsuite/gcc.target/i386/pr46865-2.c  (.../tags/gcc_4_5_2_release)    (wersja 0)
-+++ gcc/testsuite/gcc.target/i386/pr46865-2.c  (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -0,0 +1,32 @@
-+/* PR rtl-optimization/46865 */
-+/* { dg-do compile } */
-+/* { dg-options "-O2 -save-temps" } */
++      PR middle-end/50074
++      * calls.c (mem_overlaps_already_clobbered_arg_p):
++      Return false if no outgoing arguments have been stored so far.
 +
-+extern unsigned long f;
++2011-12-08  Eric Botcazou  <ebotcazou@adacore.com>
 +
-+#define m1(f)                                                 \
-+  if (f & 1)                                                  \
-+    asm volatile ("nop /* asmnop */\n");                      \
-+  else                                                                \
-+    asm volatile ("nop /* asmnop */\n");
++      PR tree-optimization/51315
++      * tree-sra.c (tree_non_mode_aligned_mem_p): Rename to...
++      (tree_non_aligned_mem_p): ...this.  Add ALIGN parameter.  Look into
++      MEM_REFs and use get_object_or_type_alignment for them.
++      (build_accesses_from_assign): Adjust for above change.
++      (access_precludes_ipa_sra_p): Likewise.
 +
-+#define m2(f)                                                 \
-+  if (f & 1)                                                  \
-+    asm volatile ("nop /* asmnop */\n" : : "i" (6) : "cx");   \
-+  else                                                                \
-+    asm volatile ("nop /* asmnop */\n" : : "i" (6) : "cx");
++2011-12-06  Martin Jambor  <mjambor@suse.cz>
 +
-+void
-+foo (void)
-+{
-+  m1 (f);
-+}
++      Backport from mainline:
 +
-+void
-+bar (void)
-+{
-+  m2 (f);
-+}
++      2011-12-02  Martin Jambor  <mjambor@suse.cz>
++
++      PR tree-optimization/50622
++      * tree-sra.c (load_assign_lhs_subreplacements): Force gimple operand
++      if both lacc and racc are grp_partial_lhs.
++
++2011-12-06  Iain Sandoe  <iains@gcc.gnu.org>
++
++      * config/rs6000/rs6000.c (darwin_rs6000_override_options): Initialize
++      rs6000_current_abi.
++
++2011-12-06  Alan Modra  <amodra@gmail.com>
++
++      PR target/50906
++      * config/rs6000/rs6000.c (rs6000_emit_prologue <TARGET_SPE_ABI>):
++      Do not mark r11 setup as frame-related.  Pass correct offset to
++      rs6000_emit_savres_rtx.  Correct out-of-line rs6000_frame_related
++      arguments.  Correct sp_offset.  Remove "offset" fudge from
++      in-line rs6000_frame_related call.  Rename misleading variable.
++      Fix comments and whitespace.  Tidy some expressions.
++      (rs6000_emit_epilogue <TARGET_SPE_ABI>): Always set frame_reg_rtx
++      to r11 in out-of-line case.  Correct sp_offset.  Pass correct
++      offset to rs6000_emit_savres_rtx.  Rename misleading variable.
++      Fix comments and whitespace.  Tidy some expressions.
++      (rs6000_emit_epilogue <non-TARGET_SPE_ABI>): Add sp_offset
++      adjustment when !saving_GPRs_inline.  Correct register mode
++      used in address calcs.
++      (rs6000_emit_epilogue <non-TARGET_SPE_ABI>): Similarly when
++      !restoring_GPRs_inline.
++
++2011-12-04  Jérémie Detrey  <Jeremie.Detrey@loria.fr>
++
++      PR target/51393
++      * config/i386/avxintrin.h (_mm256_insert_epi64): Declare second
++      parameter as long long.
++
++2011-12-02  Georg-Johann Lay  <avr@gjlay.de>
++
++      PR target/51002
++      PR target/51345
++      * config/avr/libgcc.S (__prologue_saves__, __epilogue_restores__):
++      Enclose parts using __SP_H__ in !defined (__AVR_HAVE_8BIT_SP__).
++      Add FIXME comments.
++      * config/avr/avr.md (movhi_sp_r_irq_off, movhi_sp_r_irq_on): Set
++      insn condition to !AVR_HAVE_8BIT_SP.
++      * config/avr/avr.c (output_movhi): "clr%B0" instead of "in
++      %B0,__SP_H__" if AVR_HAVE_8BIT_SP.
++      (avr_file_start): Only print "__SP_H__ = 0x3e" if !AVR_HAVE_8BIT_SP.
++      * config/avr/avr-devices.c (avr_mcu_types): ATtiny4313 and
++      AT86RF401 have a 16-bit SP (their manual is bogus).
++
++2011-11-25  Richard Sandiford  <richard.sandiford@linaro.org>
 +
-+/* { dg-final { scan-assembler-times "asmnop" 2 } } */
-+/* { dg-final { cleanup-saved-temps } } */
-Index: gcc/testsuite/gcc.target/mips/save-restore-1.c
-===================================================================
---- gcc/testsuite/gcc.target/mips/save-restore-1.c     (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/testsuite/gcc.target/mips/save-restore-1.c     (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -1,5 +1,6 @@
- /* Check that we can use the save instruction to save varargs.  */
- /* { dg-options "(-mips16) isa_rev>=1 -mabi=32 -O2" } */
-+/* { dg-skip-if "PR target/46610" { mips-sgi-irix6* } } */
- #include <stdarg.h>
-Index: gcc/testsuite/gcc.target/mips/save-restore-3.c
-===================================================================
---- gcc/testsuite/gcc.target/mips/save-restore-3.c     (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/testsuite/gcc.target/mips/save-restore-3.c     (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -1,6 +1,7 @@
- /* Check that we can use the save instruction to save spilled arguments
-    when the argument save area is out of range of a direct load or store.  */
- /* { dg-options "(-mips16) isa_rev>=1 -mabi=32 -O2" } */
-+/* { dg-skip-if "PR target/46610" { mips-sgi-irix6* } } */
- void bar (int *);
-Index: gcc/testsuite/gcc.target/mips/save-restore-4.c
-===================================================================
---- gcc/testsuite/gcc.target/mips/save-restore-4.c     (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/testsuite/gcc.target/mips/save-restore-4.c     (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -1,5 +1,6 @@
- /* Check that we can use the save instruction to save $16, $17 and $31.  */
- /* { dg-options "(-mips16) isa_rev>=1 -mabi=32 -O2" } */
-+/* { dg-skip-if "PR target/46610" { mips-sgi-irix6* } } */
- void bar (void);
-Index: gcc/testsuite/gcc.target/mips/save-restore-5.c
-===================================================================
---- gcc/testsuite/gcc.target/mips/save-restore-5.c     (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/testsuite/gcc.target/mips/save-restore-5.c     (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -1,5 +1,6 @@
- /* Check that we don't try to save the same register twice.  */
- /* { dg-options "(-mips16) isa_rev>=1 -mgp32 -O2" } */
-+/* { dg-skip-if "PR target/46610" { mips-sgi-irix6* } } */
- int bar (int, int, int, int);
- void frob (void);
-Index: gcc/testsuite/gnat.dg/opt13.adb
-===================================================================
---- gcc/testsuite/gnat.dg/opt13.adb    (.../tags/gcc_4_5_2_release)    (wersja 0)
-+++ gcc/testsuite/gnat.dg/opt13.adb    (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -0,0 +1,13 @@
-+-- { dg-do run }
-+-- { dg-options "-O" }
-+
-+with Opt13_Pkg; use Opt13_Pkg;
-+
-+procedure Opt13 is
-+  T : My_Type;
-+begin
-+  Allocate (T);
-+  if N /= 1 then
-+    raise Program_Error;
-+  end if;
-+end;
-Index: gcc/testsuite/gnat.dg/opt13_pkg.adb
-===================================================================
---- gcc/testsuite/gnat.dg/opt13_pkg.adb        (.../tags/gcc_4_5_2_release)    (wersja 0)
-+++ gcc/testsuite/gnat.dg/opt13_pkg.adb        (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -0,0 +1,31 @@
-+package body Opt13_Pkg is
++      Backport from mainline:
 +
-+  subtype Index_Type is Natural range 0 .. 16;
++      2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
 +
-+  type Arr is array (Index_Type range <>) of Integer;
++      PR debug/48190
++      * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
++      (cached_dw_loc_list_def): New structure.
++      (cached_dw_loc_list): New typedef.
++      (cached_dw_loc_list_table): New variable.
++      (cached_dw_loc_list_table_hash): New function.
++      (cached_dw_loc_list_table_eq): Likewise.
++      (add_location_or_const_value_attribute): Take a bool cache_p.
++      Cache the list when the parameter is true.
++      (gen_formal_parameter_die): Update caller.
++      (gen_variable_die): Likewise.
++      (dwarf2out_finish): Likewise.
++      (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
++      while generating debug info for the decl.
++      (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
++      (dwarf2out_init): Initialize cached_dw_loc_list_table.
++      (resolve_addr): Cache the result of resolving a chain of
++      location lists.
 +
-+  type Rec is record
-+    F1, F2, F3 : Float;
-+    N : Natural;
-+    B1, B2 : Boolean;
-+    F4 : Float;
-+  end record;
++2011-11-24  Enkovich Ilya  <ilya.enkovich@intel.com>
 +
-+  type Data (D : Index_Type) is record
-+    A : Arr (1 .. D);
-+    R : Rec;
-+  end record;
++      PR target/51287
++      * i386.c (distance_non_agu_define): Fix insn attr check.
 +
-+  Zero : constant Rec := (0.0, 0.0, 0.0, 0, False, False, 0.0);
++2011-11-20  Andreas Tobler  <andreast@fgznet.ch>
 +
-+  procedure Allocate (T : out My_Type) is
-+  begin
-+    T := new Data (Index_Type'last);
-+    T.R := Zero;
++      * configure: Regenerate.
 +
-+    for I in 1 .. T.A'last loop
-+      N := 1;
-+    end loop;
-+  end;
++2011-11-19  Eric Botcazou  <ebotcazou@adacore.com>
 +
-+end Opt13_Pkg;
-Index: gcc/testsuite/gnat.dg/opt13_pkg.ads
-===================================================================
---- gcc/testsuite/gnat.dg/opt13_pkg.ads        (.../tags/gcc_4_5_2_release)    (wersja 0)
-+++ gcc/testsuite/gnat.dg/opt13_pkg.ads        (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -0,0 +1,15 @@
-+package Opt13_Pkg is
++      PR rtl-optimization/51187
++      * reorg.c (relax_delay_slots): Do not consider a jump useless if there
++      is a barrier between the jump and its target label.
 +
-+    N : Natural := 0;
++2011-11-19  Richard Earnshaw  <rearnsha@arm.com>
 +
-+    type My_Type is private;
++      PR target/50493
++      * config/arm/arm.c (neon_disambiguate_copy): Correctly handle partial
++      overlap of src and dest operands.
 +
-+    procedure Allocate (T : out My_Type);
++2011-11-18  Iain Sandoe  <iains@gcc.gnu.org>
 +
-+private
++      PR target/49992
++      * configure.ac: Remove ranlib special-casing for Darwin.
++      * configure: Regenerate.
 +
-+    type Data;
++2011-11-16  Richard Earnshaw  <rearnsha@arm.com>
++          Bernd Schmidt <bernds@coudesourcery.com>
++          Sebastian Huber <sebastian.huber@embedded-brains.de>
 +
-+    type My_Type is access Data;
++      PR target/49641
++      * config/arm/arm.c (store_multiple_sequence): Avoid cases where
++      the base reg is stored iff compiling for Thumb1.
 +
-+end Opt13_Pkg;
-Index: gcc/testsuite/gcc.dg/pr47201.c
-===================================================================
---- gcc/testsuite/gcc.dg/pr47201.c     (.../tags/gcc_4_5_2_release)    (wersja 0)
-+++ gcc/testsuite/gcc.dg/pr47201.c     (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -0,0 +1,18 @@
-+/* PR target/47201 */
-+/* { dg-do compile } */
-+/* { dg-options "-O -fpic -g" { target fpic } } */
++2011-11-13  Iain Sandoe  <iains@gcc.gnu.org>
 +
-+union U
-+{
-+  __UINTPTR_TYPE__ m;
-+  float d;
-+} u;
++      PR target/48108
++      Backport from mainline r180523
++      * config/darwin.c (top level): Amend comments concerning LTO output.
++      (lto_section_num): New variable.  (darwin_lto_section_e): New GTY.
++      (LTO_SECTS_SECTION, LTO_INDEX_SECTION): New.
++      (LTO_NAMES_SECTION): Rename.
++      (darwin_asm_named_section): Record LTO section counts and switches
++      in a vec of darwin_lto_section_e.
++      (darwin_file_start): Remove unused code.
++      (darwin_file_end): Put an LTO section termination label.  Handle
++      output of the wrapped LTO sections, index and names table.
 +
-+int
-+foo (void)
-+{
-+  union U v = {
-+    (__UINTPTR_TYPE__)&u
-+  };
-+  return u.d == v.d;
-+}
-Index: gcc/testsuite/gcc.dg/pr46893.c
-===================================================================
---- gcc/testsuite/gcc.dg/pr46893.c     (.../tags/gcc_4_5_2_release)    (wersja 0)
-+++ gcc/testsuite/gcc.dg/pr46893.c     (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -0,0 +1,13 @@
-+/* PR debug/46893 */
-+/* { dg-do compile } */
-+/* { dg-options "-O -g" } */
++2011-11-12  Iain Sandoe  <iains@gcc.gnu.org>
 +
-+void
-+foo (void)
-+{
-+  union { unsigned long long l; double d; } u = { 0x7ff0000000000000ULL };
-+  double v = 0, w = -u.d;
++      PR target/45233
++      * config/rs6000/rs6000.c (rs6000_legitimize_reload_address):
++      Only expand a symbol ref. into an access when the entity is defined
++      in the TU.
 +
-+  if (w)
-+    w = v;
-+}
-Index: gcc/testsuite/gcc.dg/20061124-1.c
-===================================================================
---- gcc/testsuite/gcc.dg/20061124-1.c  (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/testsuite/gcc.dg/20061124-1.c  (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -1,5 +1,6 @@
- /* { dg-do run } */
- /* { dg-require-effective-target sync_char_short } */
-+/* { dg-options "-mcpu=v9" { target sparc*-*-* } } */
- /* This testcase failed on s390 because no compare instruction for
-    the check of FLAG was emitted.  */
-Index: gcc/testsuite/gcc.dg/compat/vector-1b_main.c
-===================================================================
---- gcc/testsuite/gcc.dg/compat/vector-1b_main.c       (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/testsuite/gcc.dg/compat/vector-1b_main.c       (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -1,12 +1,10 @@
- /* { dg-skip-if "test AVX vector" { ! { i?86-*-* x86_64-*-* } } } */
--/* { dg-require-effective-target avx } */
-+/* { dg-require-effective-target avx_runtime } */
- /* Test compatibility of vector types: layout between separately-compiled
-    modules, parameter passing, and function return.  This test uses
-    vectors of integer values.  */
--#include "cpuid.h"
--
- extern void vector_1_x (void);
- extern void exit (int);
- int fails;
-@@ -14,14 +12,6 @@
- int
- main ()
- {
--  unsigned int eax, ebx, ecx, edx;
--
--  if (!__get_cpuid (1, &eax, &ebx, &ecx, &edx))
--    return 0;
--
--  /* Run AVX vector test only if host has AVX support.  */
--  if (ecx & bit_AVX)
--    vector_1_x ();
--
-+  vector_1_x ();
-   exit (0);
- }
-Index: gcc/testsuite/gcc.dg/compat/vector-2b_main.c
-===================================================================
---- gcc/testsuite/gcc.dg/compat/vector-2b_main.c       (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/testsuite/gcc.dg/compat/vector-2b_main.c       (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -1,12 +1,10 @@
- /* { dg-skip-if "test AVX support" { ! { i?86-*-* x86_64-*-* } } } */
--/* { dg-require-effective-target avx } */
-+/* { dg-require-effective-target avx_runtime } */
- /* Test compatibility of vector types: layout between separately-compiled
-    modules, parameter passing, and function return.  This test uses
-    vectors of floating points values.  */
--#include "cpuid.h"
--
- extern void vector_2_x (void);
- extern void exit (int);
- int fails;
-@@ -14,14 +12,6 @@
- int
- main ()
- {
--  unsigned int eax, ebx, ecx, edx;
--
--  if (!__get_cpuid (1, &eax, &ebx, &ecx, &edx))
--    return 0;
--
--  /* Run AVX vector test only if host has AVX support.  */
--  if (ecx & bit_AVX)
--    vector_2_x ();
--
-+  vector_2_x ();
-   exit (0);
- }
-Index: gcc/testsuite/gcc.dg/debug/pr46782.c
-===================================================================
---- gcc/testsuite/gcc.dg/debug/pr46782.c       (.../tags/gcc_4_5_2_release)    (wersja 0)
-+++ gcc/testsuite/gcc.dg/debug/pr46782.c       (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -0,0 +1,11 @@
-+/* PR debug/46782 */
-+/* { dg-do compile } */
-+/* { dg-options "-w -O0 -fvar-tracking -fcompare-debug" } */
++2011-11-10  Jakub Jelinek  <jakub@redhat.com>
 +
-+void foo (int i)
-+{
-+  if (i)
-+    i++;
-+  while (i)
-+    ;
-+}
-Index: gcc/testsuite/gcc.dg/graphite/run-id-pr46758.c
-===================================================================
---- gcc/testsuite/gcc.dg/graphite/run-id-pr46758.c     (.../tags/gcc_4_5_2_release)    (wersja 0)
-+++ gcc/testsuite/gcc.dg/graphite/run-id-pr46758.c     (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -0,0 +1,18 @@
-+int
-+movegt (int y, long long a)
-+{
-+  int i;
-+  int ret = 0;
-+  for (i = 0; i < y; i++)
-+    if (a == -1LL << 33)
-+      ret = -1;
-+  return ret;
-+}
++      PR middle-end/51077
++      * tree-object-size.c (addr_object_size): Check TREE_CODE of
++      MEM_REF's operand rather than code of the MEM_REF itself.
 +
-+int
-+main ()
-+{
-+  if (movegt (1, -1LL << 33) != -1)
-+    __builtin_abort ();
-+  return 0;
-+}
-Index: gcc/testsuite/gcc.dg/graphite/pr45552.c
-===================================================================
---- gcc/testsuite/gcc.dg/graphite/pr45552.c    (.../tags/gcc_4_5_2_release)    (wersja 0)
-+++ gcc/testsuite/gcc.dg/graphite/pr45552.c    (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -0,0 +1,46 @@
-+typedef struct
-+{
-+  double z;
-+} Vector;
-+typedef struct
-+{
-+  float *vertex;
-+  float *normal;
-+} VertexArray;
-+typedef struct
-+{
-+  Vector *vertex;
-+  int num_vertex;
-+} ObjectSmooth;
-+typedef struct
-+{
-+  int num_cells;
-+} State;
-+static void *array_from_ObjectSmooth( ObjectSmooth *obj )
-+{
-+  int i, j;
-+  VertexArray *array = (VertexArray *) __builtin_malloc( sizeof( VertexArray ) );
-+  array->vertex = (float *) __builtin_malloc( 3*sizeof(float)*obj->num_vertex );
-+  array->normal = (float *) __builtin_malloc( 3*sizeof(float)*obj->num_vertex );
-+  for (i=0, j=0; i<obj->num_vertex; ++i) {
-+    array->normal[j++] = 9;
-+    array->vertex[j] = obj->vertex[i].z;
-+    array->normal[j++] = 1;
-+  }
-+}
-+static void draw_cell( void )
-+{
-+  glCallList( array_from_ObjectSmooth( (ObjectSmooth *) __builtin_malloc(10) ));
-+}
-+static int render( State *st)
-+{
-+  int b;
-+  for (b=0; b<st->num_cells; ++b) {
-+    draw_cell();
-+    draw_cell();
-+  }
-+}
-+reshape_glcells( int width, int height )
-+{
-+  render( 0 );
-+}
-Index: gcc/testsuite/gcc.dg/torture/pr47365.c
-===================================================================
---- gcc/testsuite/gcc.dg/torture/pr47365.c     (.../tags/gcc_4_5_2_release)    (wersja 0)
-+++ gcc/testsuite/gcc.dg/torture/pr47365.c     (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -0,0 +1,39 @@
-+/* { dg-do run } */
++2011-11-07  Alan Modra  <amodra@gmail.com>
 +
-+struct A
-+{
-+  int i;
-+};
++      PR target/30282
++      * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Always emit
++      blockage for ABI_V4.
 +
-+struct B
-+{
-+  struct A a[2];
-+};
++2011-11-04  Eric Botcazou  <ebotcazou@adacore.com>
 +
-+int i = 1;
-+struct B b = { 0, 3 };
++      PR c++/50608
++      * c-parser.c (c_parser_postfix_expression) <RID_OFFSETOF>: Adjust call
++      to fold_offsetof.
++      * c-typeck.c (build_unary_op) <ADDR_EXPR>: Call fold_offsetof_1.
 +
-+static void
-+test ()
-+{
-+  if (b.a[0].i != i)
-+    {
-+      int t = b.a[0].i;
-+      b.a[0] = b.a[1];
-+      b.a[1].i = t;
-+    }
++2011-11-04  Eric Botcazou  <ebotcazou@adacore.com>
 +
-+  if (b.a[1].i == i)
-+    __builtin_abort ();
++      PR target/50979
++      * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=v8.
 +
-+  if (b.a[0].i == 0)
-+    __builtin_abort ();
-+}
++2011-11-03  Uros Bizjak  <ubizjak@gmail.com>
 +
-+int
-+main ()
-+{
-+  test ();
-+  return 0;
-+}
++      * config/i386/i386.md (lround<X87MODEF:mode><SWI248x:mode>2,
++      rint<mode>2, floor<mode>2, lfloor<MODEF:mode><SWI48:mode>2,
++      btrunc<mode>2, lwp_lwpval<mode>3): Use operands[N] instead of operandN.
 +
-Index: gcc/testsuite/gcc.dg/torture/pr47411.c
-===================================================================
---- gcc/testsuite/gcc.dg/torture/pr47411.c     (.../tags/gcc_4_5_2_release)    (wersja 0)
-+++ gcc/testsuite/gcc.dg/torture/pr47411.c     (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -0,0 +1,42 @@
-+/* { dg-do compile } */
++2011-11-02  Eric Botcazou  <ebotcazou@adacore.com>
 +
-+typedef long unsigned int size_t;
++      PR target/50945
++      * config/sparc/sparc.md (movsf_insn): Reindent constraints.
++      (movsf_insn_no_fpu): Likewise.
++      (movdf_insn_sp32): Likewise.
++      (movdf_insn_sp32_no_fpu): Likewise.
++      (movdf_insn_sp32_v9): Likewise.  Remove redundant GY constraint.
++      (movdf_insn_sp32_v9_no_fpu): Likewise.
++      (movdf_insn_sp64): Likewise.
++      (movdf_insn_sp64_no_fpu): Likewise.
++      (movtf_insn_sp32): Likewise.
++      (movtf_insn_sp32_no_fpu): Likewise.
++      (movtf_insn_sp64): Likewise.
++      (movtf_insn_sp64_hq): Likewise.
++      (movtf_insn_sp64_no_fpu): Likewise.
 +
-+static __inline void *
-+__inline_memcpy_chk (void *__dest, const void *__src, size_t __len)
-+{
-+  return __builtin___memcpy_chk (__dest, __src, __len, __builtin_object_size (__dest, 0));
-+}
++2011-11-02  Bernd Schmidt  <bernds@codesourcery.com>
 +
-+extern void *xmalloc (size_t) __attribute__ ((__malloc__));
++      * cfgcleanup.c (try_head_merge_bb): If get_condition returns
++      NULL for a jump that is a cc0 insn, pick the previous insn for
++      move_before.
 +
-+struct htab { void ** entries; };
++2011-11-01  Uros Bizjak  <ubizjak@gmail.com>
 +
-+typedef struct htab *htab_t;
++      * config/i386/i386.md (splitters for int-float conversion): Use
++      SUBREG_REG on SUBREGs in splitter constraints.
 +
-+extern void ** htab_find_slot (htab_t, const void *);
++2011-11-01  Julian Brown  <julian@codesourcery.com>
 +
-+enum mode_class { MODE_RANDOM, MODE_CC, MODE_INT, MAX_MODE_CLASS };
++      PR rtl-optimization/47918
++      * reload1.c (set_initial_label_offsets): Use initial offsets
++      for labels on the nonlocal_goto_handler_labels chain.
 +
-+struct mode_data
-+{
-+  struct mode_data *next;
-+  enum mode_class cl;
-+};
++2011-10-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
 +
-+static const struct mode_data blank_mode = { 0, MAX_MODE_CLASS };
++      PR target/50691
++      * config/pa/pa.c (emit_move_sequence): Legitimize TLS symbol references.
++      * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Return false for
++      TLS_MODEL_GLOBAL_DYNAMIC and TLS_MODEL_LOCAL_DYNAMIC symbol references.
 +
-+static htab_t modes_by_name;
++2011-10-27  Uros Bizjak  <ubizjak@gmail.com>
 +
-+struct mode_data *
-+new_mode (void)
-+{
-+  struct mode_data *m
-+    = ((struct mode_data *) xmalloc (sizeof (struct mode_data)));
++      PR target/50875
++      * config/i386/sse.md (*avx_unpcklpd256): Remove extra insn
++      constraints.  Change alternative 1 to "x,m,1".
 +
-+  ((__builtin_object_size (m, 0) != (size_t) -1) ? __builtin___memcpy_chk (m, &blank_mode, sizeof (struct mode_data), __builtin_object_size (m, 0)) : __inline_memcpy_chk (m, &blank_mode, sizeof (struct mode_data)));
++2011-10-26  Jakub Jelinek  <jakub@redhat.com>
 +
-+  *htab_find_slot (modes_by_name, m) = m;
++      * BASE-VER: Set to 4.6.3.
++      * DEV-PHASE: Set to prerelease.
 +
-+  return m;
-+}
-Index: gcc/testsuite/gcc.dg/tree-ssa/pr47392.c
+ 2011-10-26  Release Manager
+       * GCC 4.6.2 released.
+@@ -144,8 +794,8 @@
+ 2011-10-07  Bernd Schmidt  <bernds@codesourcery.com>
+-      PR target/49049
+-      * config/arm/arm.md (arm_subsi3_insn): Lose the last alternative.
++      PR target/49049
++      * config/arm/arm.md (arm_subsi3_insn): Lose the last alternative.
+ 2011-10-06  Jakub Jelinek  <jakub@redhat.com>
+@@ -252,7 +902,7 @@
+       * config/rs6000/rs6000.md (probe_stack): Use explicit operand.
+       * config/rs6000/rs6000.c (output_probe_stack_range): Likewise.
+-2011-09-14   Diego Novillo  <dnovillo@google.com>
++2011-09-14  Diego Novillo  <dnovillo@google.com>
+       * tree-vect-stmts.c (vect_transform_stmt): Remove unused
+       local variable ORIG_SCALAR_STMT.
+Index: gcc/testsuite/gcc.target/arm/headmerge-2.c
 ===================================================================
---- gcc/testsuite/gcc.dg/tree-ssa/pr47392.c    (.../tags/gcc_4_5_2_release)    (wersja 0)
-+++ gcc/testsuite/gcc.dg/tree-ssa/pr47392.c    (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -0,0 +1,42 @@
-+/* { dg-do run } */
-+/* { dg-options "-O2 -fdump-tree-pre-stats" } */
-+
-+struct A
-+{
-+  int i;
-+};
-+
-+struct B
-+{
-+  struct A a[2];
-+};
+--- gcc/testsuite/gcc.target/arm/headmerge-2.c (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/testsuite/gcc.target/arm/headmerge-2.c (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -1,6 +1,6 @@
+ /* { dg-do compile }  */
+ /* { dg-options "-O2" }  */
+-/* { dg-final { scan-assembler-times "120" 1 } } */
++/* { dg-final { scan-assembler-times "120\n" 1 } } */
+ extern void foo1 (int);
+ extern void foo2 (int);
+Index: gcc/testsuite/gcc.target/arm/pr49641.c
+===================================================================
+--- gcc/testsuite/gcc.target/arm/pr49641.c     (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ gcc/testsuite/gcc.target/arm/pr49641.c     (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,18 @@
++/* { dg-do compile } */
++/* { dg-options "-mthumb -O2" } */
++/* { dg-require-effective-target arm_thumb1_ok } */
++/* { dg-final { scan-assembler-not "stmia\[\\t \]*r3!\[^\\n]*r3" } } */
++typedef struct {
++  void *t1, *t2, *t3;
++} z;
++extern volatile int y;
++static inline void foo(z *x) {
++  x->t1 = &x->t2;
++  x->t2 = ((void *)0);
++  x->t3 = &x->t1;
++}
++extern z v;
++void bar (void) {
++   y = 0;
++   foo(&v);
++}
+Index: gcc/testsuite/gcc.target/arm/stack-red-zone.c
+===================================================================
+--- gcc/testsuite/gcc.target/arm/stack-red-zone.c      (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ gcc/testsuite/gcc.target/arm/stack-red-zone.c      (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,12 @@
++/* No stack red zone.  PR38644.  */
++/* { dg-options "-mthumb -O2" } */
++/* { dg-final { scan-assembler "ldrb\[^\n\]*\\n\[\t \]*add\[\t \]*sp" } } */
 +
-+int i = 1;
-+struct B b = { 0, 3 };
++extern int doStreamReadBlock (int *, char *, int size, int);
 +
-+static void
-+test ()
++char readStream (int *s)
 +{
-+  if (b.a[0].i != i)
-+    {
-+      int t = b.a[0].i;
-+      b.a[0] = b.a[1];
-+      b.a[1].i = t;
-+    }
-+
-+  if (b.a[1].i == i)
-+    __builtin_abort ();
-+
-+  if (b.a[0].i == 0)
-+    __builtin_abort ();
++       char c = 0;
++       doStreamReadBlock (s, &c, 1, *s);
++       return c;
 +}
+Index: gcc/testsuite/gcc.target/arm/sibcall-2.c
+===================================================================
+--- gcc/testsuite/gcc.target/arm/sibcall-2.c   (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ gcc/testsuite/gcc.target/arm/sibcall-2.c   (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,12 @@
++/* { dg-require-effective-target arm_eabi } */
++/* { dg-do compile } */
++/* { dg-options "-O2 -mabi=aapcs" } */
 +
-+int
-+main ()
++
++extern void __attribute__((weak)) wfunc(void);
++void main(void)
 +{
-+  test ();
-+  return 0;
++  wfunc();  /* Must not tail-call.  */
 +}
 +
-+/* { dg-final { scan-tree-dump "Eliminated: 1" "pre" } } */
-+/* { dg-final { cleanup-tree-dump "pre" } } */
-Index: gcc/testsuite/gcc.dg/tree-ssa/pr47286.c
++/* { dg-final { scan-assembler-not "b\[\\t \]+wfunc" } } */
+Index: gcc/testsuite/gcc.target/arm/pr51835.c
 ===================================================================
---- gcc/testsuite/gcc.dg/tree-ssa/pr47286.c    (.../tags/gcc_4_5_2_release)    (wersja 0)
-+++ gcc/testsuite/gcc.dg/tree-ssa/pr47286.c    (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -0,0 +1,20 @@
+--- gcc/testsuite/gcc.target/arm/pr51835.c     (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ gcc/testsuite/gcc.target/arm/pr51835.c     (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,14 @@
 +/* { dg-do compile } */
-+/* { dg-skip-if "" { ! { i?86-*-* x86_64-*-* } } { "*" } { "" } } */
-+/* { dg-options "-O2 -fdump-tree-optimized" } */
++/* { dg-options "-O2 -mfloat-abi=hard -mfpu=fpv4-sp-d16" }  */
++/* { dg-require-effective-target arm_thumb2_ok } */
 +
-+struct thread_info { int preempt_count; };
-+static inline struct thread_info *current_thread_info(void)
++int func1 (double d)
 +{
-+  register struct thread_info *sp asm("esp");
-+  return sp;
++  return (int)d;
 +}
-+void testcase(void)
++unsigned int func2 (double d)
 +{
-+  current_thread_info()->preempt_count += 1;
++  return (unsigned int)d;
 +}
 +
-+/* We have to make sure that alias analysis treats sp as pointing
-+   to globals and thus the store not optimized away.  */
-+
-+/* { dg-final { scan-tree-dump "->preempt_count =" "optimized" } } */
-+/* { dg-final { cleanup-tree-dump "optimized" } } */
-Index: gcc/testsuite/gcc.dg/tree-ssa/pr42585.c
++/* { dg-final { scan-assembler-times "fmrrd\[\\t \]+r0,\[\\t \]*r1,\[\\t \]*d0" 2 } } */
+Index: gcc/testsuite/gcc.target/powerpc/pr51623.c
 ===================================================================
---- gcc/testsuite/gcc.dg/tree-ssa/pr42585.c    (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/testsuite/gcc.dg/tree-ssa/pr42585.c    (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -32,6 +32,9 @@
- }
- /* The local aggregates . */
--/* { dg-final { scan-tree-dump-times "struct _fat_ptr _ans" 0 "optimized"} } */
--/* { dg-final { scan-tree-dump-times "struct _fat_ptr _T2" 0 "optimized"} } */
-+/* Whether the structs are totally scalarized or not depends on the
-+   MOVE_RATIO macro defintion in the back end.  The scalarization will
-+   not take place when using small values for MOVE_RATIO.  */
-+/* { dg-final { scan-tree-dump-times "struct _fat_ptr _ans" 0 "optimized" { target { ! "powerpc*-*-* arm-*-* sh*-*-* s390*-*-*" } } } } */
-+/* { dg-final { scan-tree-dump-times "struct _fat_ptr _T2" 0 "optimized" { target { ! "powerpc*-*-* arm-*-* sh*-*-* s390*-*-*" } } } } */
- /* { dg-final { cleanup-tree-dump "optimized" } } */
-Index: gcc/testsuite/gcc.dg/pr28796-2.c
-===================================================================
---- gcc/testsuite/gcc.dg/pr28796-2.c   (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/testsuite/gcc.dg/pr28796-2.c   (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -2,6 +2,7 @@
- /* { dg-options "-O2 -funsafe-math-optimizations -fno-finite-math-only -DUNSAFE" } */
- /* { dg-add-options ieee } */
- /* { dg-skip-if "No Inf/NaN support" { spu-*-* } } */
-+/* { dg-skip-if "Bug in _Q_dtoq" { sparc*-sun-solaris2.8 } } */
- #include "tg-tests.h"
-Index: gcc/testsuite/gcc.dg/pr44606.c
-===================================================================
---- gcc/testsuite/gcc.dg/pr44606.c     (.../tags/gcc_4_5_2_release)    (wersja 0)
-+++ gcc/testsuite/gcc.dg/pr44606.c     (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -0,0 +1,52 @@
-+/* PR target/44606 */
-+/* { dg-do run } */
-+/* { dg-options "-O2" } */
+--- gcc/testsuite/gcc.target/powerpc/pr51623.c (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ gcc/testsuite/gcc.target/powerpc/pr51623.c (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,123 @@
++/* PR target/51623 */
++/* { dg-do compile { target { { powerpc*-*-linux* && ilp32 } || { powerpc-*-eabi* } } } } */
++/* { dg-options "-mrelocatable -ffreestanding" } */
 +
-+#include <stdio.h>
++/* This generated an error, since the compiler was calling
++   unlikely_text_section_p in a context where it wasn't valid.  */
 +
-+extern void abort (void);
++typedef long long loff_t;
++typedef unsigned size_t;
 +
-+ typedef struct _PixelPacket {        unsigned char r, g, b; }
-+ PixelPacket;
-+#define ARRAYLEN(X) (sizeof(X)/sizeof(X[0]))
-+PixelPacket q[6];
-+#define COLS (ARRAYLEN(q) - 1)
-+PixelPacket p[2*COLS + 22];
-+#define Minify(POS, WEIGHT) do {      \
-+      total_r += (WEIGHT)*(p[POS].r); \
-+      total_g += (WEIGHT)*(p[POS].g); \
-+      total_b += (WEIGHT)*(p[POS].b); \
-+} while (0)
-+unsigned long columns = COLS;
-+int main(void)
-+{
-+      static const unsigned char answers[COLS] = { 31, 32, 34, 35, 36 };
-+      unsigned long x;
-+      for (x = 0; x < sizeof(p)/sizeof(p[0]); x++) {
-+              p[x].b = (x + 34) | 1;
-+      }
-+      for (x = 0; x < columns; x++) {
-+              double total_r = 0, total_g = 0, total_b = 0;
-+              double saved_r = 0, saved_g = 0, saved_b = 0;
-+              Minify(2*x +  0,  3.0);
-+              Minify(2*x +  1,  7.0);
-+              Minify(2*x +  2,  7.0);
-+              saved_r = total_r;
-+              saved_g = total_g;
-+              Minify(2*x + 11, 15.0);
-+              Minify(2*x + 12,  7.0);
-+              Minify(2*x + 18,  7.0);
-+              Minify(2*x + 19, 15.0);
-+              Minify(2*x + 20, 15.0);
-+              Minify(2*x + 21,  7.0);
-+              q[x].r = (unsigned char)(total_r/128.0 + 0.5);
-+              q[x].g = (unsigned char)(total_g/128.0 + 0.5);
-+              q[x].b = (unsigned char)(total_b/128.0 + 0.5);
-+              fprintf(stderr, "r:%f g:%f b:%f\n", saved_r, saved_g, saved_b);
-+      }
-+      for (x = 0; x < COLS; x++) {
-+              if (answers[x] != q[x].b)
-+                      abort();
-+      }
-+      return 0;
-+}
-Index: gcc/testsuite/gcc.dg/vect/pr43430-1.c
-===================================================================
---- gcc/testsuite/gcc.dg/vect/pr43430-1.c      (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/testsuite/gcc.dg/vect/pr43430-1.c      (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -35,5 +35,5 @@
-   return foo (data_ch1, data_ch2, 1);
- }
--/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
-+/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target vect_condition } } } */
- /* { dg-final { cleanup-tree-dump "vect" } } */
-Index: gcc/testsuite/gcc.dg/vect/slp-multitypes-2.c
-===================================================================
---- gcc/testsuite/gcc.dg/vect/slp-multitypes-2.c       (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/testsuite/gcc.dg/vect/slp-multitypes-2.c       (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -1,4 +1,5 @@
- /* { dg-require-effective-target vect_int } */
-+/* { dg-do run { xfail { sparc*-*-* && ilp32 } } } PR rtl-opt/46603 */
- #include <stdarg.h>
- #include <stdio.h>
-Index: gcc/testsuite/ChangeLog
-===================================================================
---- gcc/testsuite/ChangeLog    (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/testsuite/ChangeLog    (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -1,3 +1,265 @@
-+2011-02-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
 +
-+      PR target/46610
-+      * gcc.target/mips/save-restore-1.c: Skip on mips-sgi-irix6*.
-+      * gcc.target/mips/save-restore-3.c: Likewise.
-+      * gcc.target/mips/save-restore-4.c: Likewise.
-+      * gcc.target/mips/save-restore-5.c: Likewise.
++struct mtd_info {
++  unsigned writesize;
++  unsigned oobsize;
++  const char *name;
++};
 +
-+      PR target/47683
-+      * g++.dg/tree-prof/partition1.C: Skip on mips-sgi-irix*.
-+      * g++.dg/tree-prof/partition2.C: Likewise.
++extern int strcmp(const char *,const char *);
++extern char * strchr(const char *,int);
 +
-+2011-02-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
++struct cmd_tbl_s {
++  char *name;
++};
 +
-+      Backport from mainline:
-+      2010-07-23  Uros Bizjak  <ubizjak@gmail.com>
 +
-+      * lib/target-supports.exp (check_avx_hw_available): New procedure.
-+      (check_effective_target_avx_runtime): New procedure.
++int printf(const char *fmt, ...) __attribute__ ((format (__printf__, 1, 2)));
++void* malloc(size_t);
++void free(void*);
 +
-+      * gcc.dg/compat/vector-1b_main.c: Use avx_runtime effective target.
-+      Remove cpuid.h include and __get_cpuid test.
-+      * gcc.dg/compat/vector-2b_main.c: Ditto.
 +
-+      * gcc.target/i386/avx-check.h (main): Also check bit_OSXSAVE.
++extern int nand_curr_device;
++extern struct mtd_info nand_info[];
 +
-+2011-02-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
++static int nand_dump(struct mtd_info *nand, unsigned long off, int only_oob)
++{
++  int i;
++  unsigned char *datbuf, *oobbuf, *p;
++
++  datbuf = malloc(nand->writesize + nand->oobsize);
++  oobbuf = malloc(nand->oobsize);
++  off &= ~(nand->writesize - 1);
++
++  printf("Page %08lx dump:\n", off);
++  i = nand->writesize >> 4;
++  p = datbuf;
++
++  while (i--) {
++    if (!only_oob)
++      printf("\t%02x %02x %02x %02x %02x %02x %02x %02x"
++           "  %02x %02x %02x %02x %02x %02x %02x %02x\n",
++           p[0], p[1], p[2], p[3], p[4], p[5], p[6], p[7],
++           p[8], p[9], p[10], p[11], p[12], p[13], p[14],
++           p[15]);
++    p += 16;
++  }
 +
-+      Backport from mainline:
-+      2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
-+      PR target/47272
-+      * gcc.target/powerpc/vsx-builtin-8.c: New file, test vec_vsx_ld
-+      and vec_vsx_st.
++  i = nand->oobsize >> 3;
++  free(datbuf);
++  free(oobbuf);
 +
-+      * gcc.target/powerpc/avoid-indexed-addresses.c: Disable altivec
-+      and vsx so a default --with-cpu=power7 doesn't give an error
-+      when -mavoid-indexed-addresses is used.
++  return 0;
++}
 +
-+      * gcc.target/powerpc/ppc32-abi-dfp-1.c: Rewrite to use an asm
-+      wrapper function to save the arguments and then jump to the real
-+      function, rather than depending on the compiler not to move stuff
-+      before an asm.
-+      * gcc.target/powerpc/ppc64-abi-dfp-2.c: Ditto.
++int do_nand(struct cmd_tbl_s * cmdtp, int flag, int argc, char *argv[])
++{
++  int dev;
++  unsigned long  off;
++  char *cmd, *s;
++  struct mtd_info *nand;
 +
-+2011-02-03  Jonathan Wakely  <jwakely.gcc@gmail.com>
++  if (argc < 2)
++    goto usage;
 +
-+      PR c++/47589
-+      * g++.dg/pr47589.C: New test.
++  cmd = argv[1];
 +
-+2011-02-01  Richard Guenther  <rguenther@suse.de>
++  if (strcmp(cmd, "info") == 0) {
++    putc('\n');
++    return 0;
++  }
 +
-+      PR tree-optimization/47541
-+      * g++.dg/torture/pr47541.C: New testcase.
++  if (strcmp(cmd, "device") == 0) {
++    if (argc < 3) {
++      putc('\n');
++    }
++    dev = (int)simple_strtoul(argv[2], ((void *)0), 10);
++    nand_curr_device = dev;
++    return 0;
++  }
 +
-+2011-01-31  Nathan Froyd  <froydnj@codesourcery.com>
++  if (strcmp(cmd, "bad") != 0 && strcmp(cmd, "erase") != 0  )
++    goto usage;
++  
++  if (nand_curr_device < 0 ) {
++    return 1;
++  }
++  nand = &nand_info[nand_curr_device];
 +
-+      Backport from mainline:
-+      2010-12-30  Nathan Froyd  <froydnj@codesourcery.com>
++  if (strcmp(cmd, "erase") == 0 || strcmp(cmd, "scrub") == 0) {
++    int clean = argc > 2 && !strcmp("clean", argv[2]);
++    int scrub = !strcmp(cmd, "scrub");
++    return 0;
++  }
 +
-+        PR target/44606
-+        * gcc.dg/pr44606.c: New test.
++  if (strncmp(cmd, "dump", 4) == 0) {
++    if (argc < 3)
++      goto usage;
 +
-+2011-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
++    s = strchr(cmd, '.');
++    off = (int)simple_strtoul(argv[2], ((void *)0), 16);
++    
++    if (s != ((void *)0) && strcmp(s, ".oob") == 0)
++      nand_dump(nand, off, 1);
++    else
++      nand_dump(nand, off, 0);
++    
++    return 0;
++  }
++usage:
++  cmd_usage(cmdtp);
++  return 1;
++}
 +
-+      * gcc.dg/tree-ssa/pr42585.c: Disable on power, arm, sh, s390 and
-+      s390x.
++void *ptr = do_nand;
+Index: gcc/testsuite/gcc.target/i386/pr51393.c
+===================================================================
+--- gcc/testsuite/gcc.target/i386/pr51393.c    (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ gcc/testsuite/gcc.target/i386/pr51393.c    (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,22 @@
++/* { dg-do run } */
++/* { dg-require-effective-target avx } */
++/* { dg-require-effective-target lp64 } */
++/* { dg-options "-O -mavx" } */
 +
-+2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
++#include "avx-check.h"
++#include <immintrin.h>
 +
-+      * gcc.c-torture/compile/20110126-1.c: New test.
++static void
++__attribute__((noinline))
++avx_test (void)
++{
++  long long in = 0x800000000ll;
++  long long out;
 +
-+2011-01-25  Tobias Burnus  <burnus@net-b.de>
++  __m256i zero = _mm256_setzero_si256();
++  __m256i tmp  = _mm256_insert_epi64 (zero, in, 0);
++  out = _mm256_extract_epi64(tmp, 0);
 +
-+      Backport from mainline
-+      2011-01-17  Jakub Jelinek  <jakub@redhat.com>
++  if (in != out)
++    abort ();
++}
+Index: gcc/testsuite/gcc.target/i386/pr48721.c
+===================================================================
+--- gcc/testsuite/gcc.target/i386/pr48721.c    (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ gcc/testsuite/gcc.target/i386/pr48721.c    (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,51 @@
++/* PR rtl-optimization/48721 */
++/* { dg-do compile } */
++/* { dg-options "-O -foptimize-sibling-calls -fsched2-use-superblocks -fschedule-insns2 -mtune=core2" } */
 +
-+      PR fortran/47331
-+      * gfortran.dg/gomp/pr47331.f90: New test.
++extern unsigned char a[];
++extern int b[], d[], e[], f[], g[], *h[], m[], *n[], o[];
++extern char c[];
 +
-+2011-01-25  Tobias Burnus  <burnus@net-b.de>
++struct S
++{
++  unsigned char s1;
++  int s2, s3, s4, s5, s6, s7, s8;
++};
 +
-+      PR fortran/47448
-+      * gfortran.dg/redefined_intrinsic_assignment_2.f90: New.
++__attribute__((noinline, noclone)) int
++foo (int x)
++{
++  return 0;
++}
 +
-+2011-01-25  Richard Guenther  <rguenther@suse.de>
++int
++bar (int x, struct S *y)
++{
++  int z;
++  switch (x)
++    {
++    case 1:
++    case 2:
++      {
++      int t2, t4, t5, t6, t7, t8;
++      z = o[y->s8 * 6];
++      t8 = *n[m[x] * 5];
++      t4 = *h[y->s7];
++      t7 = z;
++      z = g[f[x] + y->s6];
++      t6 = e[y->s5];
++      t5 = d[c[x] + y->s3 * 17];
++      if (z)
++        t2 = b[z];
++      if (a[z] != y->s1)
++        return foo (x);
++      y->s8 = t8;
++      y->s4 = t4;
++      y->s7 = t7;
++      y->s6 = t6;
++      y->s5 = t5;
++      y->s2 = t2;
++      }
++    }
++  return 0;
++}
+Index: gcc/testsuite/gcc.target/i386/movdi-rex64.c
+===================================================================
+--- gcc/testsuite/gcc.target/i386/movdi-rex64.c        (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ gcc/testsuite/gcc.target/i386/movdi-rex64.c        (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,11 @@
++/* { dg-do compile { target *-*-linux* } } */
++/* { dg-options "-fPIE" } */
 +
-+      PR middle-end/47411
-+      * gcc.dg/torture/pr47411.c: New testcase.
++char *strcpy (char *dest, const char *src);
 +
-+2011-01-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
++static __thread char buffer[25];
++const char * error_message (void)
++{
++    strcpy (buffer, "Unknown code ");
++    return 0;
++}
+Index: gcc/testsuite/lib/gcc-dg.exp
+===================================================================
+--- gcc/testsuite/lib/gcc-dg.exp       (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/testsuite/lib/gcc-dg.exp       (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -565,6 +565,24 @@
+     }
+ }
++# Scan Fortran modules for absence of a given regexp.
++#
++# Argument 0 is the module name
++# Argument 1 is the regexp to match
++proc scan-module-absence { args } {
++    set modfilename [string tolower [lindex $args 0]].mod
++    set fd [open $modfilename r]
++    set text [read $fd]
++    close $fd
++
++    upvar 2 name testcase
++    if [regexp -- [lindex $args 1] $text] {
++      fail "$testcase scan-module [lindex $args 1]"
++    } else {
++      pass "$testcase scan-module [lindex $args 1]"
++    }
++}
 +
-+      * gfortran.dg/cray_pointers_2.f90: Avoid cycling through
-+      optimization options.
+ # Verify that the compiler output file exists, invoked via dg-final.
+ proc output-exists { args } {
+     # Process an optional target or xfail list.
+Index: gcc/testsuite/gfortran.dg/whole_file_35.f90
+===================================================================
+--- gcc/testsuite/gfortran.dg/whole_file_35.f90        (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ gcc/testsuite/gfortran.dg/whole_file_35.f90        (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,28 @@
++! { dg-do compile }
++!
++! PR fortran/50408
++!
++! Contributed by Vittorio Zecca
++!
++       module m
++         type int
++           integer  :: val
++         end type int
++         interface ichar
++           module procedure uch
++        end interface
++       contains
++         function uch (c)
++           character (len=1), intent (in) :: c
++           type (int)                     :: uch
++           intrinsic ichar
++           uch%val = 127 - ichar (c)
++         end function uch 
++       end module m
++
++      program p
++        use m
++        print *,ichar('~') ! must print "1"
++      end program p
++
++! { dg-final { cleanup-modules "m" } }
+Index: gcc/testsuite/gfortran.dg/dummy_procedure_7.f90
+===================================================================
+--- gcc/testsuite/gfortran.dg/dummy_procedure_7.f90    (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ gcc/testsuite/gfortran.dg/dummy_procedure_7.f90    (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,65 @@
++! { dg-do run }
++!
++! PR fortran/52022
++!
 +
-+2011-01-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
++module check
++  integer, save :: icheck = 0
++end module check
 +
-+      * gfortran.dg/array_constructor_33.f90: Use dg-timeout-factor 4.
++module t
++implicit none
++      contains
++subroutine  sol(cost)
++   use check
++   interface 
++        function cost(p) result(y) 
++                double precision,dimension(:) :: p
++                double precision,dimension(:),allocatable :: y
++        end function cost
++   end interface
++
++   if (any (cost([1d0,2d0]) /= [2.d0, 4.d0])) call abort ()
++   icheck = icheck + 1
++end subroutine
 +
-+2011-01-21  Richard Guenther  <rguenther@suse.de>
++end module t
 +
-+      PR tree-optimization/47365
-+      * gcc.dg/torture/pr47365.c: New testcase.
-+      * gcc.dg/tree-ssa/pr47392.c: Likewise.
++module tt
++   procedure(cost1),pointer :: pcost
++contains
++  subroutine init()
++        pcost=>cost1
++  end subroutine
++
++  function cost1(x) result(y)
++        double precision,dimension(:) :: x
++        double precision,dimension(:),allocatable :: y
++        allocate(y(2))
++        y=2d0*x
++  end function cost1
++
++
++
++  function cost(x) result(y)
++        double precision,dimension(:) :: x
++        double precision,dimension(:),allocatable :: y
++        allocate(y(2))
++        y=pcost(x)
++  end function cost
++end module
++
++program test
++        use tt
++        use t
++        use check
++        implicit none
++
++        call init()
++        if (any (cost([3.d0,7.d0]) /= [6.d0, 14.d0])) call abort ()
++        if (icheck /= 0) call abort ()
++        call sol(cost)
++        if (icheck /= 1) call abort ()
++end program test
++
++! { dg-final { cleanup-modules "t tt check" } }
+Index: gcc/testsuite/gfortran.dg/derived_constructor_char_3.f90
+===================================================================
+--- gcc/testsuite/gfortran.dg/derived_constructor_char_3.f90   (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ gcc/testsuite/gfortran.dg/derived_constructor_char_3.f90   (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,30 @@
++! { dg-do compile }
++!
++! PR fortran/51966
++!
++! Contributed by Peter Wind
++!
 +
-+2011-01-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
++  type :: Deriv
++    character(len=10) :: name
++  end type
++  character(len=8), dimension(2), parameter :: &
++       DEF_ECOSYSTEMS = (/ "Gridxxxx", "StringYY" /)
 +
-+      * g++.dg/other/anon5.C: Skip on mips-sgi-irix*.
++  type(Deriv), save :: DepEcoSystem = Deriv(DEF_ECOSYSTEMS(1))
 +
-+2011-01-17  Eric Botcazou  <ebotcazou@adacore.com>
++  if (DepEcoSystem%name /= "Gridxxxx" &
++      .or. DepEcoSystem%name(9:9) /= ' ' &
++      .or. DepEcoSystem%name(10:10) /= ' ') call abort()
++  DepEcoSystem%name = 'ABCDEFGHIJ'
++  call Init_EcoSystems()
++  if (DepEcoSystem%name /= "StringYY" &
++      .or. DepEcoSystem%name(9:9) /= ' ' &
++      .or. DepEcoSystem%name(10:10) /= ' ') call abort()
 +
-+      Backport from mainline
-+      2010-11-22  Eric Botcazou  <ebotcazou@adacore.com>
++contains
++  subroutine Init_EcoSystems()
++    integer :: i =2
++    DepEcoSystem = Deriv(DEF_ECOSYSTEMS(i))
++  end subroutine Init_EcoSystems
++end
+Index: gcc/testsuite/gfortran.dg/move_alloc_8.f90
+===================================================================
+--- gcc/testsuite/gfortran.dg/move_alloc_8.f90 (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ gcc/testsuite/gfortran.dg/move_alloc_8.f90 (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,106 @@
++! { dg-do compile }
++!
++! PR fortran/50684
++!
++! Module "bug" contributed by Martin Steghöfer.
++!
 +
-+      * gcc.dg/pr28796-2.c: SKIP on SPARC/Solaris 8.
++MODULE BUG
++  TYPE MY_TYPE
++    INTEGER, ALLOCATABLE :: VALUE
++  END TYPE
++CONTAINS
++  SUBROUTINE POINTER_INTENT_IN_BUG_WORKING(POINTER_INTENT_IN_VARIABLE)
++    TYPE(MY_TYPE), POINTER, INTENT(IN) :: POINTER_INTENT_IN_VARIABLE
++    TYPE(MY_TYPE), POINTER :: POINTER_VARIABLE_LOCAL
++    INTEGER, ALLOCATABLE :: LOCAL_VALUE
++    
++    POINTER_VARIABLE_LOCAL=>POINTER_INTENT_IN_VARIABLE
++    CALL MOVE_ALLOC(POINTER_VARIABLE_LOCAL%VALUE, LOCAL_VALUE)
++    
++    RETURN
++  END SUBROUTINE POINTER_INTENT_IN_BUG_WORKING
++  
++  SUBROUTINE POINTER_INTENT_IN_BUG_FAILING(POINTER_INTENT_IN_VARIABLE)
++    TYPE(MY_TYPE), POINTER, INTENT(IN) :: POINTER_INTENT_IN_VARIABLE
++    INTEGER, ALLOCATABLE :: LOCAL_VALUE
++    
++    CALL MOVE_ALLOC(POINTER_INTENT_IN_VARIABLE%VALUE, LOCAL_VALUE)
++    
++    RETURN
++  END SUBROUTINE POINTER_INTENT_IN_BUG_FAILING
++end module bug
++
++subroutine test1()
++  TYPE MY_TYPE
++    INTEGER, ALLOCATABLE :: VALUE
++  END TYPE
++CONTAINS
++  SUBROUTINE sub (dt)
++    type(MY_TYPE), intent(in) :: dt
++    INTEGER, ALLOCATABLE :: lv
++    call move_alloc(dt%VALUE, lv) ! { dg-error "cannot be INTENT.IN." }
++  END SUBROUTINE
++end subroutine test1
++
++subroutine test2 (x, px)
++  implicit none
++  type t
++    integer, allocatable :: a
++  end type t
 +
-+      PR rtl-optimization/46603
-+      * gcc.dg/vect/slp-multitypes-2.c: XFAIL execution on SPARC 32-bit.
++  type t2
++    type(t), pointer :: ptr
++    integer, allocatable :: a
++  end type t2
 +
-+      2010-08-31  Bingfeng Mei  <bmei@broadcom.com>
++  type(t2), intent(in) :: x
++  type(t2), pointer, intent(in) :: px
 +
-+      * gcc.dg/vect/pr43430-1.c: Requires vect_condition target.
++  integer, allocatable :: a
++  type(t2), pointer :: ta
 +
-+2011-01-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
++  call move_alloc (px, ta)      ! { dg-error "cannot be INTENT.IN." }
++  call move_alloc (x%a, a)      ! { dg-error "cannot be INTENT.IN." }
++  call move_alloc (x%ptr%a, a)  ! OK (3)
++  call move_alloc (px%a, a)     ! OK (4)
++  call move_alloc (px%ptr%a, a) ! OK (5)
++end subroutine test2
 +
-+      * g++.old-deja/g++.other/init19.C: Don't XFAIL on mips-sgi-irix*.
++subroutine test3 (x, px)
++  implicit none
++  type t
++    integer, allocatable :: a
++  end type t
++
++  type t2
++    class(t), pointer :: ptr
++    integer, allocatable :: a
++  end type t2
++
++  type(t2), intent(in) :: x
++  class(t2), pointer, intent(in) :: px
++
++  integer, allocatable :: a
++  class(t2), pointer :: ta
++
++  call move_alloc (px, ta)      ! { dg-error "cannot be INTENT.IN." }
++  call move_alloc (x%a, a)      ! { dg-error "cannot be INTENT.IN." }
++  call move_alloc (x%ptr%a, a)  ! OK (6)
++  call move_alloc (px%a, a)     ! OK (7)
++  call move_alloc (px%ptr%a, a) ! OK (8)
++end subroutine test3
++
++subroutine test4()
++  TYPE MY_TYPE
++    INTEGER, ALLOCATABLE :: VALUE
++  END TYPE
++CONTAINS
++  SUBROUTINE sub (dt)
++    CLASS(MY_TYPE), intent(in) :: dt
++    INTEGER, ALLOCATABLE :: lv
++    call move_alloc(dt%VALUE, lv) ! { dg-error "cannot be INTENT.IN." }
++  END SUBROUTINE
++end subroutine test4
++
++! { dg-final { cleanup-modules "bug" } }
+Index: gcc/testsuite/gfortran.dg/realloc_on_assign_8.f90
+===================================================================
+--- gcc/testsuite/gfortran.dg/realloc_on_assign_8.f90  (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ gcc/testsuite/gfortran.dg/realloc_on_assign_8.f90  (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,17 @@
++! { dg-do compile }
++!
++! PR fortran/51448
++!
++! Contribued by François Willot
++!
++  PROGRAM MAIN
++  IMPLICIT NONE
++  TYPE mytype
++    REAL b(2)
++  END TYPE mytype
++  TYPE(mytype) a
++  DOUBLE PRECISION, ALLOCATABLE :: x(:)
++  ALLOCATE(x(2))
++  a%b=0.0E0
++  x=a%b
++  END
+Index: gcc/testsuite/gfortran.dg/implicit_pure_2.f90
+===================================================================
+--- gcc/testsuite/gfortran.dg/implicit_pure_2.f90      (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ gcc/testsuite/gfortran.dg/implicit_pure_2.f90      (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,17 @@
++! { dg-do compile }
++! PR 51502 - this was wrongly detected to be implicit pure.
++module m
++  integer :: i
++contains
++  subroutine foo(x)
++    integer, intent(inout) :: x
++    outer: block
++      block
++        i = 5
++      end block
++    end block outer
++  end subroutine foo
++end module m
++
++! { dg-final { scan-module-absence "m" "IMPLICIT_PURE" } }
++! { dg-final { cleanup-modules "m" } }
+Index: gcc/testsuite/gfortran.dg/intrinsic_size_2.f90
+===================================================================
+--- gcc/testsuite/gfortran.dg/intrinsic_size_2.f90     (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ gcc/testsuite/gfortran.dg/intrinsic_size_2.f90     (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,17 @@
++! { dg-do compile }
++!
++! PR fortran/51904
++!
++! Contributed by David Sagan.
++!
 +
-+2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
++call qp_draw_polyline_basic([1.0,2.0])
++contains
++subroutine qp_draw_polyline_basic (x)
++  implicit none
++  real :: x(:), f
++  integer :: i
++  f = 0
++  print *, size(f*x)
++end subroutine
++end
+Index: gcc/testsuite/gfortran.dg/default_initialization_5.f90
+===================================================================
+--- gcc/testsuite/gfortran.dg/default_initialization_5.f90     (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ gcc/testsuite/gfortran.dg/default_initialization_5.f90     (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,66 @@
++! { dg-do  run }
++! { dg-options "-fdump-tree-original" }
++!
++! PR fortran/51435
++!
++! Contributed by darmar.xxl@gmail.com
++!
++module arr_m
++    type arr_t
++        real(8), dimension(:), allocatable :: rsk
++    end type
++    type arr_t2
++        integer :: a = 77
++    end type
++end module arr_m
++!*********************
++module list_m
++    use arr_m
++    implicit none
++
++    type(arr_t2), target :: tgt
++
++    type my_list
++        type(arr_t), pointer :: head => null()
++    end type my_list
++    type my_list2
++        type(arr_t2), pointer :: head => tgt
++    end type my_list2
++end module list_m
++!***********************
++module worker_mod
++    use list_m
++    implicit none
++
++    type data_all_t
++        type(my_list) :: my_data
++    end type data_all_t
++    type data_all_t2
++        type(my_list2) :: my_data
++    end type data_all_t2
++contains
++    subroutine do_job()
++        type(data_all_t) :: dum
++        type(data_all_t2) :: dum2
++
++        if (associated(dum%my_data%head)) then
++          call abort()
++        else
++            print *, 'OK: do_job my_data%head is NOT associated'
++        end if
++
++        if (dum2%my_data%head%a /= 77) &
++          call abort()
++    end subroutine
++end module
++!***************
++program hello
++    use worker_mod
++    implicit none
++    call do_job()
++end program
++
++! { dg-final { scan-tree-dump-times "my_data.head = 0B" 1 "original" } }
++! { dg-final { scan-tree-dump-times "my_data.head = &tgt" 1 "original" } }
++! { dg-final { cleanup-tree-dump "original" } }
++! { dg-final { cleanup-modules "arr_m list_m worker_mod" } }
+Index: gcc/testsuite/gfortran.dg/move_alloc_12.f90
+===================================================================
+--- gcc/testsuite/gfortran.dg/move_alloc_12.f90        (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ gcc/testsuite/gfortran.dg/move_alloc_12.f90        (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,33 @@
++! { dg-do compile }
++!
++! PR fortran/51948
++!
++  type :: t
++  end type t
++contains
++  function func(x, y)
++    class(t) :: y
++    type(t), allocatable :: func
++    type(t), allocatable :: x
++
++    select type (y)
++      type is(t)
++        call move_alloc (x, func)
++    end select
++  end function
++
++  function func2(x, y)
++    class(t) :: y
++    class(t), allocatable :: func2
++    class(t), allocatable :: x
++
++    block
++    block
++    select type (y)
++      type is(t)
++        call move_alloc (x, func2)
++    end select
++    end block
++    end block
++  end function
++end
+Index: gcc/testsuite/gfortran.dg/init_flag_9.f90
+===================================================================
+--- gcc/testsuite/gfortran.dg/init_flag_9.f90  (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ gcc/testsuite/gfortran.dg/init_flag_9.f90  (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,15 @@
++! { dg-do run }
++! { dg-options "-finit-character=89" }
++!
++! PR fortran/51800
++!
 +
-+      Backport from mainline
-+      2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
++subroutine foo(n)
++  character(len=n) :: str
++!  print *, str
++  if (str /= repeat ('Y', n)) call abort()
++end subroutine foo
 +
-+      PR target/47318
-+      * gcc.target/i386/avx-vmaskmovpd-1.c: New.
-+      * gcc.target/i386/avx-vmaskmovpd-2.c: Likewise.
-+      * gcc.target/i386/avx-vmaskmovps-1.c: Likewise.
-+      * gcc.target/i386/avx-vmaskmovps-1.c: Likewise.
++call foo(3)
++call foo(10)
++end
+Index: gcc/testsuite/gfortran.dg/pr50875.f90
+===================================================================
+--- gcc/testsuite/gfortran.dg/pr50875.f90      (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ gcc/testsuite/gfortran.dg/pr50875.f90      (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,39 @@
++! { dg-do compile { target { i?86-*-* x86_64-*-* } } }
++! { dg-options "-O3 -mavx" }
++!
++! PR fortran/50875.f90
 +
-+      * gcc.target/i386/avx-vmaskmovpd-256-1.c (avx_test): Load mask
-+      as __m256i.
-+      * gcc.target/i386/avx-vmaskmovpd-256-2.c (avx_test): Likewise.
-+      * gcc.target/i386/avx-vmaskmovps-256-1.c (avx_test): Likewise.
-+      * gcc.target/i386/avx-vmaskmovps-256-2.c (avx_test): Likewise.
++module test
 +
-+2011-01-17  Richard Guenther  <rguenther@suse.de>
++  implicit none
 +
-+      Backport from mainline
-+      PR tree-optimization/47286
-+      * gcc.dg/tree-ssa/pr47286.c: New testcase.
++  integer, parameter :: dp=kind(1.d0)
 +
-+      PR tree-optimization/44592
-+      * gfortran.dg/pr44592.f90: New testcase.
++  integer :: P = 2
 +
-+2011-01-16  Jakub Jelinek  <jakub@redhat.com>
++  real(kind=dp), allocatable :: real_array_A(:),real_array_B(:,:)
++  complex(kind=dp), allocatable :: cmplx_array_A(:) 
 +
-+      Backport from mainline
-+      2011-01-07  Jakub Jelinek  <jakub@redhat.com>
++contains
 +
-+      PR target/47201
-+      * gcc.dg/pr47201.c: New test.
++  subroutine routine_A
 +
-+      2011-01-06  Jakub Jelinek  <jakub@redhat.com>
++    integer :: i
 +
-+      PR c/47150
-+      * gcc.c-torture/compile/pr47150.c: New test.
++    allocate(cmplx_array_A(P),real_array_B(P,P),real_array_A(P))
 +
-+      2010-12-21  Jakub Jelinek  <jakub@redhat.com>
++    real_array_A = 1
++    real_array_B = 1
 +
-+      PR target/46880
-+      * gcc.target/i386/pr46880.c: New test.
++    do i = 1, p
++       cmplx_array_A = cmplx(real_array_B(:,i),0.0_dp,dp)
++       cmplx_array_A = cmplx_array_A * exp(cmplx(0.0_dp,real_array_A+1))
++    end do
 +
-+      PR middle-end/45852
-+      * gcc.target/i386/pr45852.c: New test.
++    deallocate(cmplx_array_A,real_array_B,real_array_A)
 +
-+      2010-12-16  Jakub Jelinek  <jakub@redhat.com>
++  end subroutine routine_A
 +
-+      PR tree-optimization/43655
-+      * g++.dg/opt/pr43655.C: New test.
++end module test
 +
-+      PR debug/46893
-+      * gcc.dg/pr46893.c: New test.
++! { dg-final { cleanup-modules "test" } }
+Index: gcc/testsuite/gfortran.dg/class_47.f90
+===================================================================
+--- gcc/testsuite/gfortran.dg/class_47.f90     (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ gcc/testsuite/gfortran.dg/class_47.f90     (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,40 @@
++! { dg-do compile }
++!
++! PR fortran/51913
++!
++! Contributed by Alexander Tismer
++!
++MODULE m_sparseMatrix
 +
-+      2010-12-10  Jakub Jelinek  <jakub@redhat.com>
++  implicit none
++  
++  type :: sparseMatrix_t
 +
-+      PR rtl-optimization/46804
-+      * gfortran.dg/pr46804.f90: New test.
++  end type sparseMatrix_t
++END MODULE m_sparseMatrix
 +
-+      PR rtl-optimization/46865
-+      * gcc.target/i386/pr46865-1.c: New test.
-+      * gcc.target/i386/pr46865-2.c: New test.
++!===============================================================================
++module m_subroutine
++!  USE m_sparseMatrix !< when uncommenting this line program works fine
 +
-+      PR tree-optimization/46864
-+      * g++.dg/opt/pr46864.C: New test.
++  implicit none
 +
-+2011-01-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
++  contains
++  subroutine test(matrix)
++    use m_sparseMatrix
++    class(sparseMatrix_t), pointer :: matrix
++  end subroutine
++end module
++
++!===============================================================================
++PROGRAM main
++  use m_subroutine
++  USE m_sparseMatrix
++  implicit none
 +
-+      * gfortran.dg/cray_pointers_2.f90: Use dg-timeout-factor 4.
++  CLASS(sparseMatrix_t), pointer :: sparseMatrix
++  
++  call test(sparseMatrix)
++END PROGRAM
 +
-+2011-01-12  Eric Botcazou  <ebotcazou@adacore.com>
++! { dg-final { cleanup-modules "m_sparsematrix m_subroutine" } }
+Index: gcc/testsuite/gfortran.dg/warn_function_without_result_2.f90
+===================================================================
+--- gcc/testsuite/gfortran.dg/warn_function_without_result_2.f90       (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ gcc/testsuite/gfortran.dg/warn_function_without_result_2.f90       (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,19 @@
++! { dg-do compile }
++! { dg-options "-Wall" }
++!
++! PR fortran/50923
++!
++module m
++contains
++  integer pure function f() ! { dg-warning "Return value of function 'f' at .1. not set" }
++  end function f
++  integer pure function g() result(h) ! { dg-warning "Return value 'h' of function 'g' declared at .1. not set" }
++  end function g
++  integer pure function i()
++    i = 7
++  end function i
++  integer pure function j() result(k)
++    k = 8
++  end function j
++end module m
++! { dg-final { cleanup-modules "mod" } }
+Index: gcc/testsuite/gfortran.dg/implicit_pure_1.f90
+===================================================================
+--- gcc/testsuite/gfortran.dg/implicit_pure_1.f90      (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ gcc/testsuite/gfortran.dg/implicit_pure_1.f90      (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,53 @@
++! { dg-do run }
++!
++! PR fortran/51218
++!
++! Contributed by Harald Anlauf
++!
 +
-+      PR testsuite/33033
-+      * gcc.dg/20061124-1.c: Pass -mcpu=v9 on the SPARC.
++module a
++  implicit none
++  integer :: neval = 0
++contains
++  subroutine inc_eval
++    neval = neval + 1
++  end subroutine inc_eval
++end module a
 +
-+2011-02-01  Thomas Koenig  <tkoenig@gcc.gnu.org>
++module b
++  use a
++  implicit none
++contains
++  function f(x) ! Should be implicit pure
++    real :: f
++    real, intent(in) :: x
++    f = x
++  end function f
++
++  function g(x) ! Should NOT be implicit pure
++    real :: g
++    real, intent(in) :: x
++    call inc_eval
++    g = x
++  end function g
++end module b
++
++program gfcbug114a
++  use a
++  use b
++  implicit none
++  real :: x = 1, y = 1, t, u, v, w
++  if (neval /= 0) call abort ()
++  t = f(x)*f(y)
++  if (neval /= 0) call abort ()
++  u = f(x)*f(y) + f(x)*f(y)
++  if (neval /= 0) call abort ()
++  v = g(x)*g(y)
++  if (neval /= 2) call abort ()
++  w = g(x)*g(y) + g(x)*g(y)
++  if (neval /= 6) call abort ()
++  if (t /= 1.0 .or. u /= 2.0 .or. v /= 1.0 .or. w /= 2) call abort ()
++end program gfcbug114a
++
++! { dg-final { scan-module "b" "IMPLICIT_PURE" } }
++! { dg-final { cleanup-modules "b" } }
+Index: gcc/testsuite/gfortran.dg/init_flag_8.f90
+===================================================================
+--- gcc/testsuite/gfortran.dg/init_flag_8.f90  (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ gcc/testsuite/gfortran.dg/init_flag_8.f90  (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,18 @@
++! { dg-do compile }
++! { dg-options "-fno-automatic -finit-local-zero" }
++!
++! PR fortran/51800
++!
++! Contributed by Mario Baumann
++!
++      SUBROUTINE FOO( N, A )
++      IMPLICIT NONE
++      INTEGER :: N
++      INTEGER :: A(1:N)
++      INTEGER :: J
++      INTEGER :: DUMMY(1:N)
++      DO J=1,N
++         DUMMY(J) = 0
++         A(J) = DUMMY(J)
++      END DO 
++      END SUBROUTINE FOO
+Index: gcc/testsuite/gcc.c-torture/execute/doloop-1.c
+===================================================================
+--- gcc/testsuite/gcc.c-torture/execute/doloop-1.c     (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ gcc/testsuite/gcc.c-torture/execute/doloop-1.c     (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,18 @@
++#include <limits.h>
 +
-+      Backport from mainline
-+      PR fortran/45338
-+      * gfortran.dg/userdef_operator_2.f90:  New test case.
++extern void exit (int);
++extern void abort (void);
 +
-+2010-12-27  Yao Qi  <yao@codesourcery.com>
++volatile unsigned int i;
 +
-+      Backport from mainline:
-+      2010-10-14  Yao Qi  <yao@codesourcery.com>
++int
++main (void)
++{
++  unsigned char z = 0;
 +
-+      PR target/45447
-+      * gcc.target/arm/pr45447.c: New test.
++  do ++i;
++  while (--z > 0);
++  if (i != UCHAR_MAX + 1U)
++    abort ();
++  exit (0);
++}
+Index: gcc/testsuite/gcc.c-torture/execute/20120111-1.c
+===================================================================
+--- gcc/testsuite/gcc.c-torture/execute/20120111-1.c   (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ gcc/testsuite/gcc.c-torture/execute/20120111-1.c   (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,18 @@
++#include <stdlib.h>
++#include <stdint.h>
 +
-+2010-12-24  Eric Botcazou  <ebotcazou@adacore.com>
++uint32_t f0a (uint64_t arg2) __attribute__((noinline));
 +
-+      * gnat.dg/opt13_pkg.ad[sb]: Fix line ending.
++uint32_t
++f0a (uint64_t arg)
++{
++  return ~(arg > -3);
++}
 +
-+2010-12-22  Sebastian Pop  <sebastian.pop@amd.com>
++int main() {
++  uint32_t r1;
++  r1 = f0a (12094370573988097329ULL);
++  if (r1 != ~0U)
++    abort ();
++  return 0;
++}
+Index: gcc/testsuite/gcc.c-torture/execute/pr51466.c
+===================================================================
+--- gcc/testsuite/gcc.c-torture/execute/pr51466.c      (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ gcc/testsuite/gcc.c-torture/execute/pr51466.c      (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,43 @@
++/* PR tree-optimization/51466 */
 +
-+      PR tree-optimization/46758
-+      * gcc.dg/graphite/run-id-pr46758.c: New.
++extern void abort (void);
 +
-+2010-12-23  Sebastian Pop  <sebastian.pop@amd.com>
++__attribute__((noinline, noclone)) int
++foo (int i)
++{
++  volatile int v[4];
++  int *p;
++  v[i] = 6;
++  p = (int *) &v[i];
++  return *p;
++}
 +
-+      PR tree-optimization/45552
-+      * gcc.dg/graphite/pr45552.c
++__attribute__((noinline, noclone)) int
++bar (int i)
++{
++  volatile int v[4];
++  int *p;
++  v[i] = 6;
++  p = (int *) &v[i];
++  *p = 8;
++  return v[i];
++}
 +
++__attribute__((noinline, noclone)) int
++baz (int i)
++{
++  volatile int v[4];
++  int *p;
++  v[i] = 6;
++  p = (int *) &v[0];
++  *p = 8;
++  return v[i];
++}
 +
-+2010-12-23  Sebastian Pop  <sebastian.pop@amd.com>
++int
++main ()
++{
++  if (foo (3) != 6 || bar (2) != 8 || baz (0) != 8 || baz (1) != 6)
++    abort ();
++  return 0;
++}
+Index: gcc/testsuite/gcc.c-torture/execute/20111212-1.c
+===================================================================
+--- gcc/testsuite/gcc.c-torture/execute/20111212-1.c   (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ gcc/testsuite/gcc.c-torture/execute/20111212-1.c   (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,34 @@
++/* PR tree-optimization/50569 */
++/* Reported by Paul Koning <pkoning@gcc.gnu.org> */
++/* Reduced testcase by Mikael Pettersson <mikpe@it.uu.se> */
++
++struct event {
++    struct {
++      unsigned int sec;
++    } sent __attribute__((packed));
++};
 +
-+      PR tree-optimization/43023
-+      * gfortran.dg/ldist-1.f90: Adjust pattern.
-+      * gfortran.dg/ldist-pr43023.f90: New.
++void __attribute__((noinline,noclone)) frob_entry(char *buf)
++{
++    struct event event;
 +
-+2010-12-21  Martin Jambor  <mjambor@suse.cz>
-+
-+      PR middle-end/46734
-+      * g++.dg/tree-ssa/pr46734.C: New test.
-+
-+2010-12-18  Alexandre Oliva  <aoliva@redhat.com>
-+
-+      PR debug/46756
-+      * gfortran.dg/debug/pr46756.f: New.
-+
-+2010-12-18  Alexandre Oliva  <aoliva@redhat.com>
-+
-+      PR debug/46782
-+      * gcc.dg/debug/pr46782.c: New.
-+
-+2010-12-17  Daniel Kraft  <d@domob.eu>
++    __builtin_memcpy(&event, buf, sizeof(event));
++    if (event.sent.sec < 64) {
++      event.sent.sec = -1U;
++      __builtin_memcpy(buf, &event, sizeof(event));
++    }
++}
 +
-+      PR fortran/46794
-+      * gfortran.dg/power2.f90: Initialize variables.
++int main(void)
++{
++    union {
++      char buf[1 + sizeof(struct event)];
++      int align;
++    } u;
 +
-+2010-12-16  Eric Botcazou  <ebotcazou@adacore.com>
++    __builtin_memset(&u, 0, sizeof u);
 +
-+      * gnat.dg/opt13.adb: New test.
-+      * gnat.dg/opt13_pkg.ad[sb]: New helper.
++    frob_entry(&u.buf[1]);
 +
- 2010-12-16  Release Manager
-       * GCC 4.5.2 released.
-Index: gcc/testsuite/g++.old-deja/g++.other/init19.C
-===================================================================
---- gcc/testsuite/g++.old-deja/g++.other/init19.C      (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/testsuite/g++.old-deja/g++.other/init19.C      (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -1,4 +1,4 @@
--// { dg-do run { xfail { { ! cxa_atexit } && { ! *-*-solaris2* } } } }
-+// { dg-do run { xfail { { ! cxa_atexit } && { ! { mips-sgi-irix* *-*-solaris2* } } } } }
- #include <stdlib.h>
- #define assert(x) do { if (! (x)) abort(); } while (0)
-Index: gcc/testsuite/g++.dg/other/anon5.C
-===================================================================
---- gcc/testsuite/g++.dg/other/anon5.C (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/testsuite/g++.dg/other/anon5.C (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -1,5 +1,5 @@
- // PR c++/34094
--// { dg-do link { target { ! { *-*-darwin* *-*-hpux* *-*-solaris2.* alpha*-dec-osf* } } } }
-+// { dg-do link { target { ! { *-*-darwin* *-*-hpux* *-*-solaris2.* alpha*-dec-osf* mips-sgi-irix* } } } }
- // { dg-options "-g" }
- namespace {
-Index: gcc/testsuite/g++.dg/pr47589.C
++    return 0;
++}
+Index: gcc/testsuite/gcc.c-torture/execute/20120105-1.c
 ===================================================================
---- gcc/testsuite/g++.dg/pr47589.C     (.../tags/gcc_4_5_2_release)    (wersja 0)
-+++ gcc/testsuite/g++.dg/pr47589.C     (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -0,0 +1,26 @@
-+// PR c++/47589
-+// { dg-do compile }
-+
-+struct F
+--- gcc/testsuite/gcc.c-torture/execute/20120105-1.c   (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ gcc/testsuite/gcc.c-torture/execute/20120105-1.c   (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,24 @@
++struct __attribute__((packed)) S
 +{
-+    typedef void(*Cb)();
-+
-+    F(Cb);
++  int a, b, c;
 +};
 +
-+struct C
++static int __attribute__ ((noinline,noclone))
++extract(const char *p)
 +{
-+    template<class D> static void f();
-+};
++  struct S s;
++  __builtin_memcpy (&s, p, sizeof(struct S));
++  return s.a;
++}
 +
-+template<class D>
-+struct TF : F
-+{
-+    TF() : F(C::f<D>) { }
-+};
++volatile int i;
 +
-+struct DTC : TF<DTC>
++int main (void)
 +{
-+    DTC() { }
-+};
++  char p[sizeof(struct S) + 1];
++
++  __builtin_memset (p, 0, sizeof(struct S) + 1);
++  i = extract (p + 1);
 +
-Index: gcc/testsuite/g++.dg/tree-ssa/pr46734.C
++  return 0;
++}
+Index: gcc/testsuite/gcc.c-torture/execute/pr51323.c
 ===================================================================
---- gcc/testsuite/g++.dg/tree-ssa/pr46734.C    (.../tags/gcc_4_5_2_release)    (wersja 0)
-+++ gcc/testsuite/g++.dg/tree-ssa/pr46734.C    (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -0,0 +1,34 @@
-+/* { dg-do compile } */
-+/* { dg-options "-O -fipa-sra" } */
+--- gcc/testsuite/gcc.c-torture/execute/pr51323.c      (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ gcc/testsuite/gcc.c-torture/execute/pr51323.c      (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,35 @@
++/* PR middle-end/51323 */
 +
-+struct A
-+{
-+  int *p;
-+  A() {p = (int *) -1;}
-+  ~A() {if (p && p != (int *) -1) *p = 0;}
-+};
++extern void abort (void);
++struct S { int a, b, c; };
++int v;
 +
-+struct B
++__attribute__((noinline, noclone)) void
++foo (int x, int y, int z)
 +{
-+  A a;
-+  char data[23];
-+  B() : a() {data[0] = 0;}
-+};
++  if (x != v || y != 0 || z != 9)
++    abort ();
++}
 +
-+extern A ga;
-+extern int *gi;
-+extern void *gz;
-+extern B *gb;
++static inline int
++baz (const struct S *p)
++{
++  return p->b;
++}
 +
-+static int * __attribute__ ((noinline)) foo (B *b, void *z)
++__attribute__((noinline, noclone)) void
++bar (int x, struct S y)
 +{
-+  __builtin_memcpy (gz, z, 28);
-+  ga = b->a;
-+  return b->a.p;
++  foo (baz (&y), 0, x);
 +}
 +
-+int *bar (B *b, void *z)
++int
++main ()
 +{
-+  gb = b;
-+  return foo (b, z);
++  struct S s;
++  v = 3; s.a = v - 1; s.b = v; s.c = v + 1;
++  bar (9, s);
++  v = 17; s.a = v - 1; s.b = v; s.c = v + 1;
++  bar (9, s);
++  return 0;
 +}
-Index: gcc/testsuite/g++.dg/opt/pr43655.C
+Index: gcc/testsuite/gcc.c-torture/execute/20111208-1.c
 ===================================================================
---- gcc/testsuite/g++.dg/opt/pr43655.C (.../tags/gcc_4_5_2_release)    (wersja 0)
-+++ gcc/testsuite/g++.dg/opt/pr43655.C (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -0,0 +1,34 @@
-+// PR tree-optimization/43655
-+// { dg-do run }
-+// { dg-options "-O0 -ftree-ter" }
+--- gcc/testsuite/gcc.c-torture/execute/20111208-1.c   (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ gcc/testsuite/gcc.c-torture/execute/20111208-1.c   (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,94 @@
++/* PR tree-optimization/51315 */
++/* Reported by Jurij Smakov <jurij@wooyd.org> */
 +
-+extern "C" void abort ();
++typedef unsigned int size_t;
 +
-+struct C
-+{
-+  C (int i) : val(i) { }
-+  C (const C& c) : val(c.val) { }
-+  ~C (void) { val = 999; }
-+  C& operator = (const C& c) { val = c.val; return *this; }
-+  C& inc (int i) { val += i; return *this; }
-+  int val;
-+};
++extern void *memcpy (void *__restrict __dest,
++       __const void *__restrict __src, size_t __n)
++     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
++
++extern size_t strlen (__const char *__s)
++     __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
++
++typedef short int int16_t;
++typedef int int32_t;
++
++extern void abort (void);
 +
-+C
-+f ()
++int a;
++
++static void __attribute__ ((noinline,noclone))
++do_something (int item)
 +{
-+  return C (3);
++  a = item;
 +}
 +
-+C
-+f (int i)
++int
++pack_unpack (char *s, char *p)
 +{
-+  return f ().inc (i);
++  char *send, *pend;
++  char type;
++  int integer_size;
++
++  send = s + strlen (s);
++  pend = p + strlen (p);
++
++  while (p < pend)
++    {
++      type = *p++;
++
++      switch (type)
++ {
++ case 's':
++   integer_size = 2;
++   goto unpack_integer;
++
++ case 'l':
++   integer_size = 4;
++   goto unpack_integer;
++
++ unpack_integer:
++   switch (integer_size)
++     {
++     case 2:
++       {
++  union
++  {
++    int16_t i;
++    char a[sizeof (int16_t)];
++  }
++  v;
++  memcpy (v.a, s, sizeof (int16_t));
++  s += sizeof (int16_t);
++  do_something (v.i);
++       }
++       break;
++
++     case 4:
++       {
++  union
++  {
++    int32_t i;
++    char a[sizeof (int32_t)];
++  }
++  v;
++  memcpy (v.a, s, sizeof (int32_t));
++  s += sizeof (int32_t);
++  do_something (v.i);
++       }
++       break;
++     }
++   break;
++ }
++    }
++  return (int) *s;
 +}
 +
 +int
-+main ()
++main (void)
 +{
-+  if (f (2).val != 5)
++  int n = pack_unpack ("\200\001\377\376\035\300", "sl");
++  if (n != 0)
 +    abort ();
++  return 0;
 +}
-Index: gcc/testsuite/g++.dg/opt/pr46864.C
+Index: gcc/testsuite/gcc.c-torture/execute/doloop-2.c
 ===================================================================
---- gcc/testsuite/g++.dg/opt/pr46864.C (.../tags/gcc_4_5_2_release)    (wersja 0)
-+++ gcc/testsuite/g++.dg/opt/pr46864.C (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -0,0 +1,26 @@
-+// PR tree-optimization/46864
-+// { dg-do compile }
-+// { dg-options "-O -fnon-call-exceptions" }
+--- gcc/testsuite/gcc.c-torture/execute/doloop-2.c     (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ gcc/testsuite/gcc.c-torture/execute/doloop-2.c     (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,18 @@
++#include <limits.h>
++
++extern void exit (int);
++extern void abort (void);
 +
-+int baz ();
++volatile unsigned int i;
 +
-+struct S
++int
++main (void)
 +{
-+  int k;
-+  bool bar () throw ()
-+  {
-+    int m = baz ();
-+    for (int i = 0; i < m; i++)
-+      k = i;
-+    return m;
-+  }
-+};
++  unsigned short z = 0;
++
++  do ++i;
++  while (--z > 0);
++  if (i != USHRT_MAX + 1U)
++    abort ();
++  exit (0);
++}
+Index: gcc/testsuite/gcc.c-torture/compile/pr51077.c
+===================================================================
+--- gcc/testsuite/gcc.c-torture/compile/pr51077.c      (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ gcc/testsuite/gcc.c-torture/compile/pr51077.c      (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,15 @@
++/* PR middle-end/51077 */
 +
-+extern S *s;
++struct S { unsigned char s, t[256]; };
 +
 +void
-+foo ()
++foo (const struct S *x, struct S *y, int z)
 +{
-+  while (baz () && s->bar ())
-+    ;
++  int i;
++  for (i = 0; i < 8; i++)
++    {
++      const struct S *a = &x[i];
++      __builtin___memcpy_chk (y->t, a->t, z, __builtin_object_size (y->t, 0));
++      y = (struct S *) &y->t[z];
++    }
 +}
-Index: gcc/testsuite/g++.dg/tree-prof/partition1.C
-===================================================================
---- gcc/testsuite/g++.dg/tree-prof/partition1.C        (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/testsuite/g++.dg/tree-prof/partition1.C        (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -1,5 +1,6 @@
- /* { dg-require-effective-target freorder } */
- /* { dg-options "-O2 -freorder-blocks-and-partition" } */
-+/* { dg-skip-if "PR target/47683" { mips-sgi-irix* } } */
- struct A { A () __attribute__((noinline)); ~A () __attribute__((noinline)); };
- A::A () { asm volatile ("" : : : "memory"); }
-Index: gcc/testsuite/g++.dg/tree-prof/partition2.C
+Index: gcc/testsuite/gcc.c-torture/compile/20110913-1.c
 ===================================================================
---- gcc/testsuite/g++.dg/tree-prof/partition2.C        (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/testsuite/g++.dg/tree-prof/partition2.C        (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -1,6 +1,7 @@
- // PR middle-end/45458
- // { dg-require-effective-target freorder }
- // { dg-options "-fnon-call-exceptions -freorder-blocks-and-partition" }
-+// { dg-skip-if "PR target/47683" { mips-sgi-irix* } }
- int
- main ()
-Index: gcc/testsuite/g++.dg/torture/pr47541.C
-===================================================================
---- gcc/testsuite/g++.dg/torture/pr47541.C     (.../tags/gcc_4_5_2_release)    (wersja 0)
-+++ gcc/testsuite/g++.dg/torture/pr47541.C     (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -0,0 +1,27 @@
-+/* { dg-do run } */
-+
-+struct Dummy {};
-+struct RefCount : public Dummy {
-+    ~RefCount(); /* Has to be non-pod.  */
-+    int *a;
-+    int *b;
+--- gcc/testsuite/gcc.c-torture/compile/20110913-1.c   (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ gcc/testsuite/gcc.c-torture/compile/20110913-1.c   (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,26 @@
++struct ieee754_double {
++  double d;
 +};
-+RefCount::~RefCount(){}
-+struct Wrapper : public Dummy { RefCount ref; };
-+void __attribute__((noinline,noclone))
-+Push(Wrapper ptr)
++extern const float __exp_deltatable[178];
++float __ieee754_expf (float x)
 +{
-+  *ptr.ref.b = 0;
-+}
-+extern "C" void abort (void);
-+int main()
-+{
-+  int a = 1, b = 1;
-+  Wrapper x;
-+  x.ref.a = &a;
-+  x.ref.b = &b;
-+  Push(x);
-+  if (b != 0)
-+    abort ();
-+  return 0;
++  static const float himark = 88.72283935546875;
++  static const float lomark = -103.972084045410;
++  if (__builtin_isless(x, himark) && __builtin_isgreater(x, lomark))
++    {
++      int tval;
++      double x22, t, result, dx;
++      float delta;
++      struct ieee754_double ex2_u;
++      dx -= t;
++      tval = (int) (t * 512.0);
++      if (t >= 0)
++      delta = - __exp_deltatable[tval];
++      else
++      delta = __exp_deltatable[-tval];
++      x22 = (0.5000000496709180453 * dx + 1.0000001192102037084) * dx + delta;
++      result = x22 * ex2_u.d + ex2_u.d;
++      return (float) result;
++    }
++  return x;
 +}
-Index: gcc/testsuite/lib/target-supports.exp
+Index: gcc/testsuite/gnat.dg/frame_overflow.adb
 ===================================================================
---- gcc/testsuite/lib/target-supports.exp      (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/testsuite/lib/target-supports.exp      (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -1,5 +1,5 @@
--#   Copyright (C) 1999, 2001, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
--#    Free Software Foundation, Inc.
-+#   Copyright (C) 1999, 2001, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
-+#   2011 Free Software Foundation, Inc.
- # This program is free software; you can redistribute it and/or modify
- # it under the terms of the GNU General Public License as published by
-@@ -1005,6 +1005,30 @@
-     }]
- }
-+# Return 1 if the target supports executing AVX instructions, 0
-+# otherwise.  Cache the result.
-+
-+proc check_avx_hw_available { } {
-+    return [check_cached_effective_target avx_hw_available {
-+      # If this is not the right target then we can skip the test.
-+      if { !([istarget x86_64-*-*] || [istarget i?86-*-*]) } {
-+          expr 0
-+      } else {
-+          check_runtime_nocache avx_hw_available {
-+              #include "cpuid.h"
-+              int main ()
-+              {
-+                unsigned int eax, ebx, ecx, edx;
-+                if (__get_cpuid (1, &eax, &ebx, &ecx, &edx))
-+                  return ((ecx & (bit_AVX | bit_OSXSAVE))
-+                          != (bit_AVX | bit_OSXSAVE));
-+                return 1;
-+              }
-+          } ""
-+      }
-+    }]
-+}
-+
- # Return 1 if the target supports running SSE executables, 0 otherwise.
+--- gcc/testsuite/gnat.dg/frame_overflow.adb   (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/testsuite/gnat.dg/frame_overflow.adb   (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -1,27 +1,20 @@
+ -- { dg-do compile }
  
- proc check_effective_target_sse_runtime { } {
-@@ -1025,6 +1049,16 @@
-     }
- }
+-with System;
++package body Frame_Overflow is
  
-+# Return 1 if the target supports running AVX executables, 0 otherwise.
-+
-+proc check_effective_target_avx_runtime { } {
-+    if { [check_effective_target_avx]
-+       && [check_avx_hw_available] } {
-+      return 1
-+    }
-+    return 0
-+}
+-procedure frame_overflow is
+-
+-   type Bitpos_Range_T is range 1..2**(System.Word_Size-1)-1;
+-   type Bitmap_Array_T is array (Bitpos_Range_T) of Boolean;
+-
+-   type Bitmap_T is record
+-      Bits : Bitmap_Array_T := (others => False);
+-   end record;
+-
+-   function
++   function -- { dg-error "too large" }
+      Set_In (Bitmap : Bitmap_T; Bitpos : Bitpos_Range_T)  return Bitmap_T
+    is
+-      Result: Bitmap_T := Bitmap; -- { dg-error "Storage_Error" }
++      Result: Bitmap_T := Bitmap;
+    begin
+       Result.Bits (Bitpos) := True;
+       return Result;
+    end;
+-   function Negate (Bitmap : Bitmap_T) return Bitmap_T is
+-      Result: Bitmap_T; -- { dg-error "Storage_Error" }
++   function -- { dg-error "too large" }
++     Negate (Bitmap : Bitmap_T) return Bitmap_T
++   is
++      Result: Bitmap_T;
+    begin
+       for E in Bitpos_Range_T loop
+         Result.Bits (E) := not Bitmap.Bits (E);
+@@ -29,6 +22,4 @@
+       return Result;
+   end;
+-begin
+-   null;
+-end;
++end Frame_Overflow;
+Index: gcc/testsuite/gnat.dg/frame_overflow.ads
+===================================================================
+--- gcc/testsuite/gnat.dg/frame_overflow.ads   (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ gcc/testsuite/gnat.dg/frame_overflow.ads   (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,17 @@
++with System;
 +
- # Return 1 if the target supports executing VSX instructions, 0
- # otherwise.  Cache the result.
-Index: gcc/testsuite/gfortran.dg/gomp/pr47331.f90
-===================================================================
---- gcc/testsuite/gfortran.dg/gomp/pr47331.f90 (.../tags/gcc_4_5_2_release)    (wersja 0)
-+++ gcc/testsuite/gfortran.dg/gomp/pr47331.f90 (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -0,0 +1,24 @@
-+! PR fortran/47331
-+! { dg-do compile }
-+! { dg-options "-fopenmp -fwhole-file" }
++package Frame_Overflow is
 +
-+subroutine foo
-+  !$omp parallel
-+    call bar ()
-+  !$omp end parallel
-+end subroutine foo
++   type Bitpos_Range_T is range 1..2**(System.Word_Size-1)-1;
++   type Bitmap_Array_T is array (Bitpos_Range_T) of Boolean;
 +
-+subroutine bar
-+  integer :: k
-+  do k=1,5
-+    call baz (k)
-+  end do
-+end subroutine bar
++   type Bitmap_T is record
++      Bits : Bitmap_Array_T := (others => False);
++   end record;
 +
-+subroutine baz (k)
-+  integer :: k
-+end subroutine
++   function
++     Set_In (Bitmap : Bitmap_T; Bitpos : Bitpos_Range_T)  return Bitmap_T;
 +
-+program pr47331
-+  call foo
-+end program pr47331
-Index: gcc/testsuite/gfortran.dg/ldist-1.f90
-===================================================================
---- gcc/testsuite/gfortran.dg/ldist-1.f90      (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/testsuite/gfortran.dg/ldist-1.f90      (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -29,5 +29,8 @@
-   return
- end Subroutine PADEC
--! { dg-final { scan-tree-dump-times "distributed: split to 4 loops" 1 "ldist" } }
-+! There are 5 legal partitions in this code.  Based on the data
-+! locality heuristic, this loop should not be split.
++   function Negate (Bitmap : Bitmap_T) return Bitmap_T;
 +
-+! { dg-final { scan-tree-dump-not "distributed: split to" "ldist" } }
- ! { dg-final { cleanup-tree-dump "ldist" } }
-Index: gcc/testsuite/gfortran.dg/redefined_intrinsic_assignment_2.f90
++end Frame_Overflow;
+Index: gcc/testsuite/gnat.dg/renaming5.adb
 ===================================================================
---- gcc/testsuite/gfortran.dg/redefined_intrinsic_assignment_2.f90     (.../tags/gcc_4_5_2_release)    (wersja 0)
-+++ gcc/testsuite/gfortran.dg/redefined_intrinsic_assignment_2.f90     (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -0,0 +1,68 @@
-+! { dg-do compile }
-+!
-+! PR fortran/47448
-+!
-+! ASSIGNMENT(=) checks. Defined assignment is allowed if and only if
-+! it does not override an intrinsic assignment.
-+!
+--- gcc/testsuite/gnat.dg/renaming5.adb        (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ gcc/testsuite/gnat.dg/renaming5.adb        (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,30 @@
++-- PR ada/46192
++-- Testcase by Rolf Ebert <rolf.ebert.gcc@gmx.de>
 +
-+module test1
-+  interface assignment(=)
-+     module procedure valid, valid2
-+  end interface
-+contains
-+  ! Valid: scalar = array
-+  subroutine valid (lhs,rhs)
-+    integer, intent(out) ::  lhs
-+    integer, intent(in) :: rhs(:)
-+    lhs = rhs(1) 
-+  end subroutine valid
-+
-+  ! Valid: array of different ranks
-+  subroutine valid2 (lhs,rhs)
-+    integer, intent(out) ::  lhs(:)
-+    integer, intent(in) :: rhs(:,:)
-+    lhs(:) = rhs(:,1) 
-+  end subroutine valid2
-+end module test1
-+
-+module test2
-+  interface assignment(=)
-+     module procedure invalid
-+  end interface
-+contains
-+  ! Invalid: scalar = scalar
-+  subroutine invalid (lhs,rhs) ! { dg-error "must not redefine an INTRINSIC type assignment" }
-+    integer, intent(out) ::  lhs
-+    integer, intent(in) :: rhs
-+    lhs = rhs
-+  end subroutine invalid
-+end module test2
-+
-+module test3
-+  interface assignment(=)
-+     module procedure invalid2
-+  end interface
-+contains
-+  ! Invalid: array = scalar
-+  subroutine invalid2 (lhs,rhs) ! { dg-error "must not redefine an INTRINSIC type assignment" }
-+    integer, intent(out) ::  lhs(:)
-+    integer, intent(in) :: rhs
-+    lhs(:) = rhs
-+  end subroutine invalid2
-+end module test3
-+
-+module test4
-+  interface assignment(=)
-+     module procedure invalid3
-+  end interface
-+contains
-+  ! Invalid: array = array for same rank
-+  subroutine invalid3 (lhs,rhs) ! { dg-error "must not redefine an INTRINSIC type assignment" }
-+    integer, intent(out) ::  lhs(:)
-+    integer, intent(in) :: rhs(:)
-+    lhs(:) = rhs(:)
-+  end subroutine invalid3
-+end module test4
-+
-+! { dg-final { cleanup-modules "test1" } }
-Index: gcc/testsuite/gfortran.dg/debug/pr46756.f
-===================================================================
---- gcc/testsuite/gfortran.dg/debug/pr46756.f  (.../tags/gcc_4_5_2_release)    (wersja 0)
-+++ gcc/testsuite/gfortran.dg/debug/pr46756.f  (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -0,0 +1,29 @@
-+C PR debug/46756, reduced from ../20010519-1.f
-+C { dg-do compile }
-+C { dg-options "-O -fcompare-debug" }
-+      LOGICAL QDISK,QDW,QCMPCT
-+      LOGICAL LNOMA,LRAISE,LSCI,LBIG
-+      ASSIGN 801 TO I800 ! { dg-warning "Deleted feature: ASSIGN" "Deleted feature: ASSIGN" }
-+      GOTO 800
-+ 801  CONTINUE
-+      ASSIGN 761 TO I760 ! { dg-warning "Deleted feature: ASSIGN" "Deleted feature: ASSIGN" }
-+ 761  CONTINUE
-+      IF(LSCI) THEN
-+         DO I=1,LENCM
-+         ENDDO
-+      ENDIF
-+      DO WHILE((CVGMX.GT.TOLDIM).AND.(ITER.LT.ITMX))
-+         IF(.NOT.QDW) THEN
-+            ASSIGN 641 to I640 ! { dg-warning "Deleted feature: ASSIGN" "Deleted feature: ASSIGN" }
-+            GOTO 640
-+ 641        CONTINUE
-+         ENDIF
-+      ENDDO
-+      GOTO 700
-+ 640  CONTINUE
-+      GOTO I640 ! { dg-warning "Deleted feature: Assigned" "Assigned GO TO" }
-+ 700  CONTINUE
-+      GOTO I760 ! { dg-warning "Deleted feature: Assigned" "Assigned GO TO" }
-+ 800  CONTINUE
-+      GOTO I800 ! { dg-warning "Deleted feature: Assigned" "Assigned GO TO" }
-+      END
-Index: gcc/testsuite/gfortran.dg/cray_pointers_2.f90
-===================================================================
---- gcc/testsuite/gfortran.dg/cray_pointers_2.f90      (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/testsuite/gfortran.dg/cray_pointers_2.f90      (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -1,5 +1,8 @@
--! { dg-do run }
--! { dg-options "-fcray-pointer -fbounds-check" }
-+! Using two spaces between dg-do and run is a hack to keep gfortran-dg-runtest
-+! from cycling through optimization options for this expensive test.
-+! { dg-do  run }
-+! { dg-options "-O3 -fcray-pointer -fbounds-check" }
-+! { dg-timeout-factor 4 }
- ! Series of routines for testing a Cray pointer implementation
- program craytest
-   common /errors/errors(400)
-Index: gcc/testsuite/gfortran.dg/dependency_39.f90
-===================================================================
---- gcc/testsuite/gfortran.dg/dependency_39.f90        (.../tags/gcc_4_5_2_release)    (wersja 0)
-+++ gcc/testsuite/gfortran.dg/dependency_39.f90        (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -0,0 +1,37 @@
-+! { dg-do run }
-+! PR 45777 - component ref aliases when both are pointers
-+module m1
-+  type t1
-+     integer, dimension(:), allocatable :: data
-+  end type t1
-+contains
-+  subroutine s1(t,d)
-+    integer, dimension(:), pointer :: d
-+    type(t1), pointer :: t
-+    d(1:5)=t%data(3:7)
-+  end subroutine s1
-+  subroutine s2(d,t)
-+    integer, dimension(:), pointer :: d
-+    type(t1), pointer :: t
-+    t%data(3:7) = d(1:5)
-+  end subroutine s2
-+end module m1
-+
-+program main
-+  use m1
-+  type(t1), pointer :: t
-+  integer, dimension(:), pointer :: d
-+  allocate(t)
-+  allocate(t%data(10))
-+  t%data=(/(i,i=1,10)/)
-+  d=>t%data(5:9)
-+  call s1(t,d)
-+  if (any(d.ne.(/3,4,5,6,7/))) call abort()
-+  t%data=(/(i,i=1,10)/)
-+  d=>t%data(1:5)
-+  call s2(d,t)
-+  if (any(t%data.ne.(/1,2,1,2,3,4,5,8,9,10/))) call abort
-+  deallocate(t%data)
-+  deallocate(t)
-+end program main
-+! { dg-final { cleanup-modules "m1" } }
-Index: gcc/testsuite/gfortran.dg/ldist-pr43023.f90
-===================================================================
---- gcc/testsuite/gfortran.dg/ldist-pr43023.f90        (.../tags/gcc_4_5_2_release)    (wersja 0)
-+++ gcc/testsuite/gfortran.dg/ldist-pr43023.f90        (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -0,0 +1,31 @@
-+! { dg-do compile }
-+! { dg-options "-O2 -ftree-loop-distribution" }
++-- { dg-do compile }
++-- { dg-options "-O2 -fdump-tree-optimized" }
 +
-+MODULE NFT_mod
++with System; use System;
 +
-+implicit none
-+integer :: Nangle
-+real:: Z0
-+real, dimension(:,:), allocatable :: Angle
-+real, dimension(:), allocatable :: exth, ezth, hxth, hyth, hyphi
++package body Renaming5 is
 +
-+CONTAINS
++   type Bits_In_Byte is array (0 .. 7) of Boolean;
++   pragma Pack (Bits_In_Byte);
 +
-+SUBROUTINE NFT_Init()
++   A : Bits_In_Byte;
++   for A'Address use System'To_Address(16#c0#);
++   pragma Volatile (A);
 +
-+real :: th, fi
-+integer :: n
++   B : Bits_In_Byte renames A;
 +
-+do n = 1,Nangle
-+  th = Angle(n,1)
-+  fi = Angle(n,2)
++   procedure Proc is
++   begin
++      while B (0) = False loop
++         null;
++      end loop;
++   end;
 +
-+  exth(n) =  cos(fi)*cos(th)
-+  ezth(n) = -sin(th)
-+  hxth(n) = -sin(fi)
-+  hyth(n) =  cos(fi)
-+  hyphi(n) = -sin(fi)
-+end do
-+END SUBROUTINE NFT_Init
++end Renaming5;
 +
-+END MODULE NFT_mod
-Index: gcc/testsuite/gfortran.dg/pr44592.f90
-===================================================================
---- gcc/testsuite/gfortran.dg/pr44592.f90      (.../tags/gcc_4_5_2_release)    (wersja 0)
-+++ gcc/testsuite/gfortran.dg/pr44592.f90      (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -0,0 +1,20 @@
-+! { dg-do run }
-+! { dg-options "-O3" }
-+! From forall_12.f90
-+! Fails with loop reversal at -O3
-+!
-+  character(len=1) :: b(4) = (/"1","2","3","4"/), c(4)
-+  c = b
-+  i = 1
-+  ! This statement must be here for the abort below
-+  b(1:3)(i:i) = b(2:4)(i:i)
-+
-+  b = c
-+  b(4:2:-1)(i:i) = b(3:1:-1)(i:i)
-+
-+  ! This fails.  If the condition is printed, the result is F F F F
-+  if (any (b .ne. (/"1","1","2","3"/))) i = 2
-+  print *, b
-+  print *, b .ne. (/"1","1","2","3"/)
-+  if (i == 2) call abort
-+end
-Index: gcc/testsuite/gfortran.dg/userdef_operator_2.f90
-===================================================================
---- gcc/testsuite/gfortran.dg/userdef_operator_2.f90   (.../tags/gcc_4_5_2_release)    (wersja 0)
-+++ gcc/testsuite/gfortran.dg/userdef_operator_2.f90   (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -0,0 +1,17 @@
-+! { dg-do compile }
-+! PR 45338 - no ICE when cmp is not used explicitly.
-+! Test case by Simon Smart 
-+module test_mod
-+  implicit none
-+contains
-+  subroutine test_fn (cmp)
-+    interface operator(.myop.)
-+       pure function cmp (a, b) result(ret)
-+         integer, intent(in) :: a, b
-+         logical ret
-+       end function cmp
-+    end interface
-+    integer :: a, b
-+    print*, a .myop. b
-+  end subroutine test_fn
-+end module test_mod
-Index: gcc/testsuite/gfortran.dg/array_constructor_33.f90
-===================================================================
---- gcc/testsuite/gfortran.dg/array_constructor_33.f90 (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/testsuite/gfortran.dg/array_constructor_33.f90 (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -1,4 +1,5 @@
- ! { dg-do compile }
-+! { dg-timeout-factor 4 }
- ! PR20923 gfortran slow for large array constructors.
- ! Test case prepared from PR by Jerry DeLisle <jvdelisle@gcc.gnu.org>
- program sel
-Index: gcc/testsuite/gfortran.dg/pr46804.f90
-===================================================================
---- gcc/testsuite/gfortran.dg/pr46804.f90      (.../tags/gcc_4_5_2_release)    (wersja 0)
-+++ gcc/testsuite/gfortran.dg/pr46804.f90      (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -0,0 +1,36 @@
-+! PR rtl-optimization/46804
-+! { dg-do run }
-+! { dg-options "-O -fPIC -fexpensive-optimizations -fgcse -foptimize-register-move -fpeel-loops -fno-tree-loop-optimize" }
-+
-+program main
-+  integer, parameter :: n1 = 2, n2 = 3, n3 = 4, slen = 3
-+  character (len = slen), dimension (n1, n2, n3) :: a
-+  integer (kind = 1), dimension (2, 4) :: shift1
-+  integer (kind = 2), dimension (2, 4) :: shift2
-+  integer (kind = 4), dimension (2, 4) :: shift3
-+  do i3 = 1, n3
-+    do i2 = 1, n2
-+      do i1 = 1, n1
-+        a (i1, i2, i3) = 'ab'(i1:i1) // 'cde'(i2:i2) // 'fghi'(i3:i3)
-+      end do
-+    end do
-+  end do
-+  shift1 (1, :) = (/ 4, 11, 19, 20 /)
-+  shift1 (2, :) = (/ 55, 5, 1, 2 /)
-+  shift2 = shift1
-+  shift3 = shift1
-+  call test (cshift (a, shift2, 2))
-+  call test (cshift (a, shift3, 2))
-+contains
-+  subroutine test (b)
-+    character (len = slen), dimension (n1, n2, n3) :: b
-+    do i3 = 1, n3
-+      do i2 = 1, n2
-+        do i1 = 1, n1
-+          i2p = mod (shift1 (i1, i3) + i2 - 1, n2) + 1
-+          if (b (i1, i2, i3) .ne. a (i1, i2p, i3)) call abort
-+        end do
-+      end do
-+    end do
-+  end subroutine test
-+end program main
-Index: gcc/testsuite/gfortran.dg/power2.f90
++-- { dg-final { scan-tree-dump-times "goto" 2 "optimized" } }
++-- { dg-final { cleanup-tree-dump "optimized" } }
+Index: gcc/testsuite/gnat.dg/renaming5.ads
 ===================================================================
---- gcc/testsuite/gfortran.dg/power2.f90       (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/testsuite/gfortran.dg/power2.f90       (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -13,6 +13,9 @@
-   INTEGER(KIND=1) :: k1
-   INTEGER(KIND=2) :: k2
-+  k1 = 1_1
-+  k2 = 1_2
+--- gcc/testsuite/gnat.dg/renaming5.ads        (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ gcc/testsuite/gnat.dg/renaming5.ads        (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,5 @@
++package Renaming5 is
 +
-   k1 = 1_1 + 1_1**k1
-   k2 = 1_2 + 1_2**k2
-Index: gcc/tree-ssa-copyrename.c
++   procedure Proc;
++
++end Renaming5;
+Index: gcc/testsuite/gnat.dg/specs/addr1.ads
 ===================================================================
---- gcc/tree-ssa-copyrename.c  (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/tree-ssa-copyrename.c  (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -225,11 +225,16 @@
-       ign2 = false;
-     }
+--- gcc/testsuite/gnat.dg/specs/addr1.ads      (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/testsuite/gnat.dg/specs/addr1.ads      (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -15,7 +15,7 @@
+   end record;
+   for Rec2'Size use 64;
  
--  /* Don't coalesce if the two variables are not of the same type.  */
--  if (TREE_TYPE (root1) != TREE_TYPE (root2))
-+  /* Don't coalesce if the two variables aren't type compatible .  */
-+  if (!types_compatible_p (TREE_TYPE (root1), TREE_TYPE (root2))
-+      /* There is a disconnect between the middle-end type-system and
-+         VRP, avoid coalescing enum types with different bounds.  */
-+      || ((TREE_CODE (TREE_TYPE (root1)) == ENUMERAL_TYPE
-+         || TREE_CODE (TREE_TYPE (root2)) == ENUMERAL_TYPE)
-+        && TREE_TYPE (root1) != TREE_TYPE (root2)))
-     {
-       if (debug)
--      fprintf (debug, " : Different types.  No coalesce.\n");
-+      fprintf (debug, " : Incompatible types.  No coalesce.\n");
-       return false;
-     }
+-  A: Arr (1 .. 12);
++  A: Arr (1 .. 4);
  
-Index: gcc/tree-ssa-ccp.c
+   Obj1: Rec1;
+   for Obj1'Address use A'Address; -- { dg-bogus "alignment" }
+Index: gcc/testsuite/gcc.dg/pr45819.c
 ===================================================================
---- gcc/tree-ssa-ccp.c (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/tree-ssa-ccp.c (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -3355,7 +3355,9 @@
-    is replaced.  If the call is expected to produces a result, then it
-    is replaced by an assignment of the new RHS to the result variable.
-    If the result is to be ignored, then the call is replaced by a
--   GIMPLE_NOP.  */
-+   GIMPLE_NOP.  A proper VDEF chain is retained by making the first
-+   VUSE and the last VDEF of the whole sequence be the same as the replaced
-+   statement and using new SSA names for stores in between.  */
- static void
- gimplify_and_update_call_from_tree (gimple_stmt_iterator *si_p, tree expr)
-@@ -3366,17 +3368,36 @@
-   gimple_stmt_iterator i;
-   gimple_seq stmts = gimple_seq_alloc();
-   struct gimplify_ctx gctx;
-+  gimple last = NULL;
-+  gimple laststore = NULL;
-+  tree reaching_vuse;
-   stmt = gsi_stmt (*si_p);
-   gcc_assert (is_gimple_call (stmt));
-   lhs = gimple_call_lhs (stmt);
-+  reaching_vuse = gimple_vuse (stmt);
-   push_gimplify_context (&gctx);
-   if (lhs == NULL_TREE)
--    gimplify_and_add (expr, &stmts);
-+    {
-+      gimplify_and_add (expr, &stmts);
-+      /* We can end up with folding a memcpy of an empty class assignment
-+       which gets optimized away by C++ gimplification.  */
-+      if (gimple_seq_empty_p (stmts))
-+      {
-+        pop_gimplify_context (NULL);
-+        if (gimple_in_ssa_p (cfun))
-+          {
-+            unlink_stmt_vdef (stmt);
-+            release_defs (stmt);
-+          }
-+        gsi_remove (si_p, true);
-+        return;
-+      }
-+    }
-   else
-     tmp = get_initialized_tmp_var (expr, &stmts, NULL);
-@@ -3387,26 +3408,95 @@
-   /* The replacement can expose previously unreferenced variables.  */
-   for (i = gsi_start (stmts); !gsi_end_p (i); gsi_next (&i))
--  {
--    new_stmt = gsi_stmt (i);
--    find_new_referenced_vars (new_stmt);
--    gsi_insert_before (si_p, new_stmt, GSI_NEW_STMT);
--    mark_symbols_for_renaming (new_stmt);
--    gsi_next (si_p);
--  }
-+    {
-+      if (last)
-+      {
-+        gsi_insert_before (si_p, last, GSI_NEW_STMT);
-+        gsi_next (si_p);
-+      }
-+      new_stmt = gsi_stmt (i);
-+      if (gimple_in_ssa_p (cfun))
-+      {
-+        find_new_referenced_vars (new_stmt);
-+        mark_symbols_for_renaming (new_stmt);
-+      }
-+      /* If the new statement has a VUSE, update it with exact SSA name we
-+         know will reach this one.  */
-+      if (gimple_vuse (new_stmt))
-+      {
-+        /* If we've also seen a previous store create a new VDEF for
-+           the latter one, and make that the new reaching VUSE.  */
-+        if (laststore)
-+          {
-+            reaching_vuse = make_ssa_name (gimple_vop (cfun), laststore);
-+            gimple_set_vdef (laststore, reaching_vuse);
-+            update_stmt (laststore);
-+            laststore = NULL;
-+          }
-+        gimple_set_vuse (new_stmt, reaching_vuse);
-+        gimple_set_modified (new_stmt, true);
-+      }
-+      if (gimple_assign_single_p (new_stmt)
-+        && !is_gimple_reg (gimple_assign_lhs (new_stmt)))
-+      {
-+        laststore = new_stmt;
-+      }
-+      last = new_stmt;
-+    }
-   if (lhs == NULL_TREE)
-     {
--      new_stmt = gimple_build_nop ();
--      unlink_stmt_vdef (stmt);
--      release_defs (stmt);
-+      /* If we replace a call without LHS that has a VDEF and our new
-+         sequence ends with a store we must make that store have the same
-+       vdef in order not to break the sequencing.  This can happen
-+       for instance when folding memcpy calls into assignments.  */
-+      if (gimple_vdef (stmt) && laststore)
-+      {
-+        gimple_set_vdef (laststore, gimple_vdef (stmt));
-+        if (TREE_CODE (gimple_vdef (stmt)) == SSA_NAME)
-+          SSA_NAME_DEF_STMT (gimple_vdef (stmt)) = laststore;
-+        update_stmt (laststore);
-+      }
-+      else if (gimple_in_ssa_p (cfun))
-+      {
-+        unlink_stmt_vdef (stmt);
-+        release_defs (stmt);
-+      }
-+      new_stmt = last;
-     }
-   else
-     {
-+      if (last)
-+      {
-+        gsi_insert_before (si_p, last, GSI_NEW_STMT);
-+        gsi_next (si_p);
-+      }
-+      if (laststore && is_gimple_reg (lhs))
-+      {
-+        gimple_set_vdef (laststore, gimple_vdef (stmt));
-+        update_stmt (laststore);
-+        if (TREE_CODE (gimple_vdef (stmt)) == SSA_NAME)
-+          SSA_NAME_DEF_STMT (gimple_vdef (stmt)) = laststore;
-+        laststore = NULL;
-+      }
-+      else if (laststore)
-+      {
-+        reaching_vuse = make_ssa_name (gimple_vop (cfun), laststore);
-+        gimple_set_vdef (laststore, reaching_vuse);
-+        update_stmt (laststore);
-+        laststore = NULL;
-+      }
-       new_stmt = gimple_build_assign (lhs, tmp);
--      gimple_set_vuse (new_stmt, gimple_vuse (stmt));
--      gimple_set_vdef (new_stmt, gimple_vdef (stmt));
--      move_ssa_defining_stmt_for_defs (new_stmt, stmt);
-+      if (!is_gimple_reg (tmp))
-+      gimple_set_vuse (new_stmt, reaching_vuse);
-+      if (!is_gimple_reg (lhs))
-+      {
-+        gimple_set_vdef (new_stmt, gimple_vdef (stmt));
-+        if (TREE_CODE (gimple_vdef (stmt)) == SSA_NAME)
-+          SSA_NAME_DEF_STMT (gimple_vdef (stmt)) = new_stmt;
-+      }
-+      else if (reaching_vuse == gimple_vuse (stmt))
-+      unlink_stmt_vdef (stmt);
-     }
-   gimple_set_location (new_stmt, gimple_location (stmt));
-Index: gcc/xcoffout.c
-===================================================================
---- gcc/xcoffout.c     (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/xcoffout.c     (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -81,8 +81,15 @@
- #define ASM_OUTPUT_LINE(FILE,LINENUM)                                    \
-   do                                                                     \
-     {                                                                    \
-+      /* Make sure we're in a function and prevent output of .line 0, as   \
-+       line # 0 is meant for symbol addresses in xcoff.  Additionally,   \
-+       line numbers are 'unsigned short' in 32-bit mode.  */             \
-       if (xcoff_begin_function_line >= 0)                                \
--      fprintf (FILE, "\t.line\t%d\n", ABS_OR_RELATIVE_LINENO (LINENUM)); \
-+      {                                                                  \
-+        int lno = ABS_OR_RELATIVE_LINENO (LINENUM);                      \
-+        if (lno > 0 && (TARGET_64BIT || lno <= (int)USHRT_MAX))          \
-+          fprintf (FILE, "\t.line\t%d\n", lno);                          \
-+      }                                                                  \
-     }                                                                    \
-   while (0)
-Index: gcc/jump.c
-===================================================================
---- gcc/jump.c (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/jump.c (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -194,7 +194,7 @@
-   rtx prev_nonjump_insn = NULL;
-   for (insn = f; insn; insn = NEXT_INSN (insn))
--    if (INSN_P (insn))
-+    if (NONDEBUG_INSN_P (insn))
-       {
-       mark_jump_label (PATTERN (insn), insn, 0);
-@@ -1728,7 +1728,13 @@
-       case 'i':
-         if (XINT (x, i) != XINT (y, i))
--          return 0;
-+          {
-+            if (((code == ASM_OPERANDS && i == 6)
-+                 || (code == ASM_INPUT && i == 1))
-+                && locator_eq (XINT (x, i), XINT (y, i)))
-+              break;
-+            return 0;
-+          }
-         break;
+--- gcc/testsuite/gcc.dg/pr45819.c     (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/testsuite/gcc.dg/pr45819.c     (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -1,5 +1,5 @@
+ /* { dg-do compile } */
+-/* { dg-options "-O2 -fdump-tree-optimized" } */
++/* { dg-options "-O2 -fdump-tree-optimized -w" } */
  
-       case 't':
-Index: gcc/expr.c
+ struct ehci_regs {
+     char x;
+Index: gcc/testsuite/gcc.dg/gomp/pr51339.c
 ===================================================================
---- gcc/expr.c (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/expr.c (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -4730,7 +4730,10 @@
-       /* If store_expr stores a DECL whose DECL_RTL(exp) == TARGET,
-        but TARGET is not valid memory reference, TEMP will differ
-        from TARGET although it is really the same location.  */
--      && !(alt_rtl && rtx_equal_p (alt_rtl, target))
-+      && !(alt_rtl
-+         && rtx_equal_p (alt_rtl, target)
-+         && !side_effects_p (alt_rtl)
-+         && !side_effects_p (target))
-       /* If there's nothing to copy, don't bother.  Don't call
-        expr_size unless necessary, because some front-ends (C++)
-        expr_size-hook must not be given objects that are not
-Index: gcc/ada/ChangeLog
-===================================================================
---- gcc/ada/ChangeLog  (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/ada/ChangeLog  (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -1,3 +1,13 @@
-+2011-02-08  Eric Botcazou  <ebotcazou@adacore.com>
+--- gcc/testsuite/gcc.dg/gomp/pr51339.c        (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ gcc/testsuite/gcc.dg/gomp/pr51339.c        (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,15 @@
++/* PR c/51339 */
++/* { dg-do compile } */
++/* { dg-options "-fopenmp" } */
 +
-+      * gcc-interface/Makefile.in (x86-64 darwin): Handle multilibs.
++char g[] = "g";
 +
-+2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
++void
++foo (void)
++{
++#pragma omp parallel sections firstprivate (g) lastprivate (g)
++  {
++  #pragma omp section
++    g[0] = 'h';
++  }
++}
+Index: gcc/testsuite/gcc.dg/cpp/assert4.c
+===================================================================
+--- gcc/testsuite/gcc.dg/cpp/assert4.c (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/testsuite/gcc.dg/cpp/assert4.c (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -1,4 +1,4 @@
+-/* Copyright (C) 2003, 2006, 2008 Free Software Foundation, Inc.
++/* Copyright (C) 2003, 2006, 2008, 2009, 2011 Free Software Foundation, Inc.
+    Test builtin preprocessor assertions.
+    By Kaveh Ghazi <ghazi@caip.rutgers.edu>.  */
+@@ -7,7 +7,7 @@
+ /* Check for #system assertions.  */
+-#if defined __gnu_linux__
++#if defined __linux__
+ # if !#system(linux) || !#system(unix) || !#system(posix)
+ #  error
+ # endif
+Index: gcc/testsuite/gcc.dg/pr50078.c
+===================================================================
+--- gcc/testsuite/gcc.dg/pr50078.c     (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ gcc/testsuite/gcc.dg/pr50078.c     (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,14 @@
++/* PR tree-optimization/50078 */
++/* { dg-do compile } */
++/* { dg-options "-O2" } */
 +
-+      * gcc-interface/trans.c (Subprogram_Body_to_gnu): Evaluate the
-+      expressions of the parameter cache within the statement group of
-+      the CICO mechanism.
++unsigned nonvolvar[2];
 +
- 2010-12-16  Release Manager
-       * GCC 4.5.2 released.
-Index: gcc/ada/gcc-interface/Makefile.in
-===================================================================
---- gcc/ada/gcc-interface/Makefile.in  (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/ada/gcc-interface/Makefile.in  (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -2143,11 +2143,17 @@
-     s-taprop.adb<s-taprop-posix.adb \
-     s-taspri.ads<s-taspri-posix.ads \
-     s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
--    a-numaux.ads<a-numaux-x86.ads \
--    a-numaux.adb<a-numaux-x86.adb \
-     g-trasym.ads<g-trasym-unimplemented.ads \
-     g-trasym.adb<g-trasym-unimplemented.adb \
--    system.ads<system-darwin-x86_64.ads
-+    a-numaux.ads<a-numaux-x86.ads \
-+    a-numaux.adb<a-numaux-x86.adb
-+    ifeq ($(strip $(MULTISUBDIR)),/i386)
-+      LIBGNAT_TARGET_PAIRS += \
-+      system.ads<system-darwin-x86.ads
-+    else
-+      LIBGNAT_TARGET_PAIRS += \
-+      system.ads<system-darwin-x86_64.ads
-+    endif
-   endif
-   ifeq ($(strip $(filter-out powerpc%,$(arch))),)
-Index: gcc/ada/gcc-interface/trans.c
-===================================================================
---- gcc/ada/gcc-interface/trans.c      (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/ada/gcc-interface/trans.c      (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -2303,6 +2303,31 @@
-   gnat_poplevel ();
-   gnu_result = end_stmt_group ();
-+  /* If we populated the parameter attributes cache, we need to make sure that
-+     the cached expressions are evaluated on all the possible paths leading to
-+     their uses.  So we force their evaluation on entry of the function.  */
-+  cache = DECL_STRUCT_FUNCTION (gnu_subprog_decl)->language->parm_attr_cache;
-+  if (cache)
-+    {
-+      struct parm_attr_d *pa;
-+      int i;
++void
++test (int arg)
++{
++  unsigned v = *(volatile unsigned *) (&nonvolvar[arg]);
++  *(volatile unsigned *) (&nonvolvar[arg]) = v;
++}
 +
-+      start_stmt_group ();
++/* { dg-final { scan-assembler-times "movl\[^\n\r\]*nonvolvar" 2 { target { { i?86-*-* x86_64-*-* } && nonpic } } } } */
+Index: gcc/testsuite/gcc.dg/debug/dwarf2/pr51410.c
+===================================================================
+--- gcc/testsuite/gcc.dg/debug/dwarf2/pr51410.c        (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ gcc/testsuite/gcc.dg/debug/dwarf2/pr51410.c        (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,13 @@
++/* PR debug/51410 */
++/* { dg-do compile } */
++/* { dg-options "-O0 -gdwarf-2 -dA -fno-merge-debug-strings" } */
 +
-+      for (i = 0; VEC_iterate (parm_attr, cache, i, pa); i++)
-+      {
-+        if (pa->first)
-+          add_stmt_with_node (pa->first, gnat_node);
-+        if (pa->last)
-+          add_stmt_with_node (pa->last, gnat_node);
-+        if (pa->length)
-+          add_stmt_with_node (pa->length, gnat_node);
-+      }
++int x;
 +
-+      add_stmt (gnu_result);
-+      gnu_result = end_stmt_group ();
-+    }
++int
++foo (void)
++{
++  return x;
++}
 +
-   /* If we are dealing with a return from an Ada procedure with parameters
-      passed by copy-in/copy-out, we need to return a record containing the
-      final values of these parameters.  If the list contains only one entry,
-@@ -2341,30 +2366,6 @@
-   pop_stack (&gnu_return_label_stack);
--  /* If we populated the parameter attributes cache, we need to make sure
--     that the cached expressions are evaluated on all possible paths.  */
--  cache = DECL_STRUCT_FUNCTION (gnu_subprog_decl)->language->parm_attr_cache;
--  if (cache)
--    {
--      struct parm_attr_d *pa;
--      int i;
--
--      start_stmt_group ();
--
--      for (i = 0; VEC_iterate (parm_attr, cache, i, pa); i++)
--      {
--        if (pa->first)
--          add_stmt_with_node (pa->first, gnat_node);
--        if (pa->last)
--          add_stmt_with_node (pa->last, gnat_node);
--        if (pa->length)
--          add_stmt_with_node (pa->length, gnat_node);
--      }
--
--      add_stmt (gnu_result);
--      gnu_result = end_stmt_group ();
--    }
--
-   /* Set the end location.  */
-   Sloc_to_locus
-     ((Present (End_Label (Handled_Statement_Sequence (gnat_node)))
-Index: gcc/fortran/openmp.c
-===================================================================
---- gcc/fortran/openmp.c       (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/fortran/openmp.c       (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -1363,6 +1363,31 @@
- }
-+/* Save and clear openmp.c private state.  */
++/* { dg-final { scan-assembler-times "\\(DIE\[^\\r\\n\]*DW_TAG_variable\\)" 1 } } */
+Index: gcc/testsuite/gcc.dg/pr51821.c
+===================================================================
+--- gcc/testsuite/gcc.dg/pr51821.c     (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ gcc/testsuite/gcc.dg/pr51821.c     (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,25 @@
++/* { dg-do run } */
++/* { dg-options "-std=c99 -O2" } */
++/* { dg-options "-std=c99 -O2 -msse" { target { i?86-*-* x86_64-*-* } } } */
++/* { dg-require-effective-target sse_runtime { target { i?86-*-* x86_64-*-* } } } */
 +
-+void
-+gfc_omp_save_and_clear_state (struct gfc_omp_saved_state *state)
-+{
-+  state->ptrs[0] = omp_current_ctx;
-+  state->ptrs[1] = omp_current_do_code;
-+  state->ints[0] = omp_current_do_collapse;
-+  omp_current_ctx = NULL;
-+  omp_current_do_code = NULL;
-+  omp_current_do_collapse = 0;
-+}
++extern void abort (void);
 +
++unsigned int  __attribute__((noinline))
++test (int shift_size)
++{
++  unsigned long long res = ~0;
 +
-+/* Restore openmp.c private state from the saved state.  */
++  return res << shift_size;
++}
 +
-+void
-+gfc_omp_restore_state (struct gfc_omp_saved_state *state)
++int
++main ()
 +{
-+  omp_current_ctx = (struct omp_context *) state->ptrs[0];
-+  omp_current_do_code = (gfc_code *) state->ptrs[1];
-+  omp_current_do_collapse = state->ints[0];
-+}
++  int dst = 32;
 +
++  if (test (dst) != 0)
++    abort ();
 +
- /* Note a DO iterator variable.  This is special in !$omp parallel
-    construct, where they are predetermined private.  */
-Index: gcc/fortran/interface.c
-===================================================================
---- gcc/fortran/interface.c    (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/fortran/interface.c    (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -624,11 +624,12 @@
-       /* Allowed are (per F2003, 12.3.2.1.2 Defined assignments):
-        - First argument an array with different rank than second,
--       - Types and kinds do not conform, and
-+       - First argument is a scalar and second an array,
-+       - Types and kinds do not conform, or
-        - First argument is of derived type.  */
-       if (sym->formal->sym->ts.type != BT_DERIVED
-         && sym->formal->sym->ts.type != BT_CLASS
--        && (r1 == 0 || r1 == r2)
-+        && (r2 == 0 || r1 == r2)
-         && (sym->formal->sym->ts.type == sym->formal->next->sym->ts.type
-             || (gfc_numeric_ts (&sym->formal->sym->ts)
-                 && gfc_numeric_ts (&sym->formal->next->sym->ts))))
-Index: gcc/fortran/trans-array.c
++  return 0;
++}
+Index: gcc/testsuite/gcc.dg/volatile-bitfields-1.c
 ===================================================================
---- gcc/fortran/trans-array.c  (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/fortran/trans-array.c  (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -3389,7 +3389,38 @@
-     }
- }
-+/* Return true if both symbols could refer to the same data object.  Does
-+   not take account of aliasing due to equivalence statements.  */
-+static int
-+symbols_could_alias (gfc_symbol *lsym, gfc_symbol *rsym, bool lsym_pointer,
-+                   bool lsym_target, bool rsym_pointer, bool rsym_target)
-+{
-+  /* Aliasing isn't possible if the symbols have different base types.  */
-+  if (gfc_compare_types (&lsym->ts, &rsym->ts) == 0)
-+    return 0;
+--- gcc/testsuite/gcc.dg/volatile-bitfields-1.c        (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ gcc/testsuite/gcc.dg/volatile-bitfields-1.c        (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,23 @@
++/* { dg-options "-fstrict-volatile-bitfields" } */
++/* { dg-do run } */
 +
-+  /* Pointers can point to other pointers and target objects.  */
++extern int puts(const char *);
++extern void abort(void) __attribute__((noreturn));
 +
-+  if ((lsym_pointer && (rsym_pointer || rsym_target))
-+      || (rsym_pointer && (lsym_pointer || lsym_target)))
-+    return 1;
++typedef struct {
++  volatile unsigned short a:8, b:8;
++} BitStruct;
 +
-+  /* Special case: Argument association, cf. F90 12.4.1.6, F2003 12.4.1.7
-+     and F2008 12.5.2.13 items 3b and 4b. The pointer case (a) is already
-+     checked above.  */
-+  if (lsym->attr.target && rsym->attr.target
-+      && ((lsym->attr.dummy
-+         && (!lsym->attr.dimension || lsym->as->type == AS_ASSUMED_SHAPE))
-+        || (rsym->attr.dummy
-+            && (!rsym->attr.dimension
-+                || rsym->as->type == AS_ASSUMED_SHAPE))))
-+    return 1;
++BitStruct bits = {1, 2};
++
++void check(int i, int j)
++{
++  if (i != 1 || j != 2) puts("FAIL"), abort();
++}
++
++int main ()
++{
++  check(bits.a, bits.b);
 +
 +  return 0;
 +}
+Index: gcc/testsuite/gcc.dg/pr51408.c
+===================================================================
+--- gcc/testsuite/gcc.dg/pr51408.c     (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ gcc/testsuite/gcc.dg/pr51408.c     (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,22 @@
++/* This testcase used to fail because of a bug in 
++   arm.md:*minmax_arithsi.  */
 +
++/* { dg-do run } */
++/* { dg-options "-O1" } */
 +
- /* Return true if the two SS could be aliased, i.e. both point to the same data
-    object.  */
- /* TODO: resolve aliases based on frontend expressions.  */
-@@ -3401,10 +3432,18 @@
-   gfc_ref *rref;
-   gfc_symbol *lsym;
-   gfc_symbol *rsym;
-+  bool lsym_pointer, lsym_target, rsym_pointer, rsym_target;
-   lsym = lss->expr->symtree->n.sym;
-   rsym = rss->expr->symtree->n.sym;
--  if (gfc_symbols_could_alias (lsym, rsym))
++extern void abort (void);
 +
-+  lsym_pointer = lsym->attr.pointer;
-+  lsym_target = lsym->attr.target;
-+  rsym_pointer = rsym->attr.pointer;
-+  rsym_target = rsym->attr.target;
++int __attribute__((noinline))
++foo (int a, int b)
++{
++  int max = (b > 0) ? b : 0;
++  return max - a;
++}
 +
-+  if (symbols_could_alias (lsym, rsym, lsym_pointer, lsym_target,
-+                         rsym_pointer, rsym_target))
-     return 1;
-   if (rsym->ts.type != BT_DERIVED
-@@ -3419,27 +3458,75 @@
-       if (lref->type != REF_COMPONENT)
-       continue;
--      if (gfc_symbols_could_alias (lref->u.c.sym, rsym))
-+      lsym_pointer = lsym_pointer || lref->u.c.sym->attr.pointer;
-+      lsym_target  = lsym_target  || lref->u.c.sym->attr.target;
++int
++main (void)
++{
++  if (foo (3, -1) != -3)
++    abort ();
++  return 0;
++}
+Index: gcc/testsuite/gcc.dg/torture/pr50396.c
+===================================================================
+--- gcc/testsuite/gcc.dg/torture/pr50396.c     (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ gcc/testsuite/gcc.dg/torture/pr50396.c     (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,22 @@
++/* { dg-do run } */
++/* { dg-add-options ieee } */
 +
-+      if (symbols_could_alias (lref->u.c.sym, rsym, lsym_pointer, lsym_target,
-+                             rsym_pointer, rsym_target))
-       return 1;
-+      if ((lsym_pointer && (rsym_pointer || rsym_target))
-+        || (rsym_pointer && (lsym_pointer || lsym_target)))
++extern void abort (void);
++typedef float vf128 __attribute__((vector_size(16)));
++typedef float vf64 __attribute__((vector_size(8)));
++int main()
++{
++#if !__FINITE_MATH_ONLY__
++#if __FLT_HAS_QUIET_NAN__
++  vf128 v = (vf128){ 0.f, 0.f, 0.f, 0.f };
++  vf64 u = (vf64){ 0.f, 0.f };
++  v = v / (vf128){ 0.f, 0.f, 0.f, 0.f };
++  if (v[0] == v[0])
++    abort ();
++  u = u / (vf64){ 0.f, 0.f };
++  if (u[0] == u[0])
++    abort ();
++#endif
++#endif
++  return 0;
++}
+Index: gcc/testsuite/gcc.dg/torture/pr51042.c
+===================================================================
+--- gcc/testsuite/gcc.dg/torture/pr51042.c     (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ gcc/testsuite/gcc.dg/torture/pr51042.c     (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,22 @@
++/* { dg-do compile } */
++
++int a, b;
++
++void
++foo (int x)
++{
++  int e[2];
++  int d;
++  while (x)
++    {
++      for (d = 0; d <= 1; d = 1)
++      if (e[a])
++        break;
++      for (b = 0; b <= 0; b = 1)
 +      {
-+        if (gfc_compare_types (&lref->u.c.component->ts,
-+                               &rsym->ts))
-+          return 1;
++        e[a] = a;
++        if (a)
++          break;
 +      }
++    }
++}
+Index: gcc/testsuite/gcc.dg/torture/pr51070-2.c
+===================================================================
+--- gcc/testsuite/gcc.dg/torture/pr51070-2.c   (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ gcc/testsuite/gcc.dg/torture/pr51070-2.c   (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,35 @@
++/* { dg-do compile } */
++/* { dg-options "-fno-inline" } */
 +
-       for (rref = rss->expr->ref; rref != rss->data.info.ref;
-          rref = rref->next)
-       {
-         if (rref->type != REF_COMPONENT)
-           continue;
--        if (gfc_symbols_could_alias (lref->u.c.sym, rref->u.c.sym))
-+        rsym_pointer = rsym_pointer || rref->u.c.sym->attr.pointer;
-+        rsym_target  = lsym_target  || rref->u.c.sym->attr.target;
++int
++func_4 (int si1, int si2)
++{
++  return si1;
++}
 +
-+        if (symbols_could_alias (lref->u.c.sym, rref->u.c.sym,
-+                                 lsym_pointer, lsym_target,
-+                                 rsym_pointer, rsym_target))
-           return 1;
++int
++func_14 (int left, int right)
++{
++  return 1;
++}
 +
-+        if ((lsym_pointer && (rsym_pointer || rsym_target))
-+            || (rsym_pointer && (lsym_pointer || lsym_target)))
-+          {
-+            if (gfc_compare_types (&lref->u.c.component->ts,
-+                                   &rref->u.c.sym->ts))
-+              return 1;
-+            if (gfc_compare_types (&lref->u.c.sym->ts,
-+                                   &rref->u.c.component->ts))
-+              return 1;
-+            if (gfc_compare_types (&lref->u.c.component->ts,
-+                                   &rref->u.c.component->ts))
-+              return 1;
-+          }
-       }
-     }
-+  lsym_pointer = lsym->attr.pointer;
-+  lsym_target = lsym->attr.target;
-+  lsym_pointer = lsym->attr.pointer;
-+  lsym_target = lsym->attr.target;
++int
++func_37 (int left, int right)
++{
++  return left;
++}
 +
-   for (rref = rss->expr->ref; rref != rss->data.info.ref; rref = rref->next)
-     {
-       if (rref->type != REF_COMPONENT)
-       break;
--      if (gfc_symbols_could_alias (rref->u.c.sym, lsym))
-+      rsym_pointer = rsym_pointer || rref->u.c.sym->attr.pointer;
-+      rsym_target  = lsym_target  || rref->u.c.sym->attr.target;
++int g_92[1024];
++int g_95[1024];
++int g_224;
++int g_352[1024];
++int
++func_9 ()
++{
++  for (; g_224; g_224 += 1)
++    {
++      g_95[0] = func_4 (func_37 (g_92[g_224], 0), 0);
++      g_92[g_224] = 0, g_352[g_224] = func_14 (0, 0);
++    }
++  return 0;
++}
+Index: gcc/testsuite/gcc.dg/torture/pr51070.c
+===================================================================
+--- gcc/testsuite/gcc.dg/torture/pr51070.c     (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ gcc/testsuite/gcc.dg/torture/pr51070.c     (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,34 @@
++/* { dg-do compile } */
 +
-+      if (symbols_could_alias (rref->u.c.sym, lsym,
-+                             lsym_pointer, lsym_target,
-+                             rsym_pointer, rsym_target))
-       return 1;
++int
++func_4 (int si1, int si2)
++{
++  return si1;
++}
 +
-+      if ((lsym_pointer && (rsym_pointer || rsym_target))
-+        || (rsym_pointer && (lsym_pointer || lsym_target)))
-+      {
-+        if (gfc_compare_types (&lsym->ts, &rref->u.c.component->ts))
-+          return 1;
-+      }
-     }
-   return 0;
-Index: gcc/fortran/symbol.c
-===================================================================
---- gcc/fortran/symbol.c       (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/fortran/symbol.c       (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -2733,41 +2733,6 @@
-   return i;
- }
--/* Return true if both symbols could refer to the same data object.  Does
--   not take account of aliasing due to equivalence statements.  */
--
--int
--gfc_symbols_could_alias (gfc_symbol *lsym, gfc_symbol *rsym)
--{
--  /* Aliasing isn't possible if the symbols have different base types.  */
--  if (gfc_compare_types (&lsym->ts, &rsym->ts) == 0)
--    return 0;
--
--  /* Pointers can point to other pointers, target objects and allocatable
--     objects.  Two allocatable objects cannot share the same storage.  */
--  if (lsym->attr.pointer
--      && (rsym->attr.pointer || rsym->attr.allocatable || rsym->attr.target))
--    return 1;
--  if (lsym->attr.target && rsym->attr.pointer)
--    return 1;
--  if (lsym->attr.allocatable && rsym->attr.pointer)
--    return 1;
--
--  /* Special case: Argument association, cf. F90 12.4.1.6, F2003 12.4.1.7
--     and F2008 12.5.2.13 items 3b and 4b. The pointer case (a) is already
--     checked above.  */
--  if (lsym->attr.target && rsym->attr.target
--      && ((lsym->attr.dummy
--         && (!lsym->attr.dimension || lsym->as->type == AS_ASSUMED_SHAPE))
--        || (rsym->attr.dummy
--            && (!rsym->attr.dimension
--                || rsym->as->type == AS_ASSUMED_SHAPE))))
--    return 1;
--
--  return 0;
--}
--
--
- /* Undoes all the changes made to symbols in the current statement.
-    This subroutine is made simpler due to the fact that attributes are
-    never removed once added.  */
-Index: gcc/fortran/trans-openmp.c
-===================================================================
---- gcc/fortran/trans-openmp.c (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/fortran/trans-openmp.c (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -480,13 +480,23 @@
-   gfc_symbol init_val_sym, outer_sym, intrinsic_sym;
-   gfc_expr *e1, *e2, *e3, *e4;
-   gfc_ref *ref;
--  tree decl, backend_decl, stmt;
-+  tree decl, backend_decl, stmt, type, outer_decl;
-   locus old_loc = gfc_current_locus;
-   const char *iname;
-   gfc_try t;
-   decl = OMP_CLAUSE_DECL (c);
-   gfc_current_locus = where;
-+  type = TREE_TYPE (decl);
-+  outer_decl = create_tmp_var_raw (type, NULL);
-+  if (TREE_CODE (decl) == PARM_DECL
-+      && TREE_CODE (type) == REFERENCE_TYPE
-+      && GFC_DESCRIPTOR_TYPE_P (TREE_TYPE (type))
-+      && GFC_TYPE_ARRAY_AKIND (TREE_TYPE (type)) == GFC_ARRAY_ALLOCATABLE)
++int
++func_14 (int left, int right)
++{
++  return 1;
++}
++
++int
++func_37 (int left, int right)
++{
++  return left;
++}
++
++int g_92[1024];
++int g_95[1024];
++int g_224;
++int g_352[1024];
++int
++func_9 ()
++{
++  for (; g_224; g_224 += 1)
 +    {
-+      decl = build_fold_indirect_ref (decl);
-+      type = TREE_TYPE (type);
++      g_95[0] = func_4 (func_37 (g_92[g_224], 0), 0);
++      g_92[g_224] = 0, g_352[g_224] = func_14 (0, 0);
 +    }
-   /* Create a fake symbol for init value.  */
-   memset (&init_val_sym, 0, sizeof (init_val_sym));
-@@ -505,7 +515,9 @@
-   outer_sym.attr.dummy = 0;
-   outer_sym.attr.result = 0;
-   outer_sym.attr.flavor = FL_VARIABLE;
--  outer_sym.backend_decl = create_tmp_var_raw (TREE_TYPE (decl), NULL);
-+  outer_sym.backend_decl = outer_decl;
-+  if (decl != OMP_CLAUSE_DECL (c))
-+    outer_sym.backend_decl = build_fold_indirect_ref (outer_decl);
-   /* Create fake symtrees for it.  */
-   symtree1 = gfc_new_symtree (&root1, sym->name);
-@@ -622,12 +634,12 @@
-   /* Create the init statement list.  */
-   pushlevel (0);
--  if (GFC_DESCRIPTOR_TYPE_P (TREE_TYPE (decl))
--      && GFC_TYPE_ARRAY_AKIND (TREE_TYPE (decl)) == GFC_ARRAY_ALLOCATABLE)
-+  if (GFC_DESCRIPTOR_TYPE_P (type)
-+      && GFC_TYPE_ARRAY_AKIND (type) == GFC_ARRAY_ALLOCATABLE)
-     {
-       /* If decl is an allocatable array, it needs to be allocated
-        with the same bounds as the outer var.  */
--      tree type = TREE_TYPE (decl), rank, size, esize, ptr;
-+      tree rank, size, esize, ptr;
-       stmtblock_t block;
-       gfc_start_block (&block);
-@@ -663,8 +675,8 @@
-   /* Create the merge statement list.  */
-   pushlevel (0);
--  if (GFC_DESCRIPTOR_TYPE_P (TREE_TYPE (decl))
--      && GFC_TYPE_ARRAY_AKIND (TREE_TYPE (decl)) == GFC_ARRAY_ALLOCATABLE)
-+  if (GFC_DESCRIPTOR_TYPE_P (type)
-+      && GFC_TYPE_ARRAY_AKIND (type) == GFC_ARRAY_ALLOCATABLE)
-     {
-       /* If decl is an allocatable array, it needs to be deallocated
-        afterwards.  */
-@@ -684,7 +696,7 @@
-   OMP_CLAUSE_REDUCTION_MERGE (c) = stmt;
-   /* And stick the placeholder VAR_DECL into the clause as well.  */
--  OMP_CLAUSE_REDUCTION_PLACEHOLDER (c) = outer_sym.backend_decl;
-+  OMP_CLAUSE_REDUCTION_PLACEHOLDER (c) = outer_decl;
-   gfc_current_locus = old_loc;
-Index: gcc/fortran/gfortran.h
-===================================================================
---- gcc/fortran/gfortran.h     (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/fortran/gfortran.h     (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -2483,8 +2483,6 @@
- int gfc_get_ha_symbol (const char *, gfc_symbol **);
- int gfc_get_ha_sym_tree (const char *, gfc_symtree **);
--int gfc_symbols_could_alias (gfc_symbol *, gfc_symbol *);
--
- void gfc_undo_symbols (void);
- void gfc_commit_symbols (void);
- void gfc_commit_symbol (gfc_symbol *);
-@@ -2577,11 +2575,14 @@
- gfc_expr *gfc_get_parentheses (gfc_expr *);
- /* openmp.c */
-+struct gfc_omp_saved_state { void *ptrs[2]; int ints[1]; };
- void gfc_free_omp_clauses (gfc_omp_clauses *);
- void gfc_resolve_omp_directive (gfc_code *, gfc_namespace *);
- void gfc_resolve_do_iterator (gfc_code *, gfc_symbol *);
- void gfc_resolve_omp_parallel_blocks (gfc_code *, gfc_namespace *);
- void gfc_resolve_omp_do_blocks (gfc_code *, gfc_namespace *);
-+void gfc_omp_save_and_clear_state (struct gfc_omp_saved_state *);
-+void gfc_omp_restore_state (struct gfc_omp_saved_state *);
- /* expr.c */
- void gfc_free_actual_arglist (gfc_actual_arglist *);
-Index: gcc/fortran/error.c
-===================================================================
---- gcc/fortran/error.c        (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/fortran/error.c        (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -939,7 +939,7 @@
-   buffer_flag = i;
-   if (flag_fatal_errors)
--    exit (1);
-+    exit (FATAL_EXIT_CODE);
- }
-@@ -956,7 +956,7 @@
-   error_print (_("Fatal Error:"), _(gmsgid), argp);
-   va_end (argp);
--  exit (3);
-+  exit (FATAL_EXIT_CODE);
- }
-@@ -1019,7 +1019,7 @@
-       gfc_increment_error_count();
-       if (flag_fatal_errors)
--      exit (1);
-+      exit (FATAL_EXIT_CODE);
-     }
-   return rc;
-Index: gcc/fortran/ChangeLog
++  return 0;
++}
+Index: gcc/testsuite/gcc.dg/tree-ssa/pr49642.c
 ===================================================================
---- gcc/fortran/ChangeLog      (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/fortran/ChangeLog      (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -1,3 +1,61 @@
-+2011-01-25  Tobias Burnus  <burnus@net-b.de>
+--- gcc/testsuite/gcc.dg/tree-ssa/pr49642.c    (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ gcc/testsuite/gcc.dg/tree-ssa/pr49642.c    (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,49 @@
++/* Verify that ipa-split is disabled following __builtin_constant_p.  */
 +
-+      Backport from mainline
-+      2011-01-17  Jakub Jelinek  <jakub@redhat.com>
++/* { dg-do compile } */
++/* { dg-options "-O2 -fdump-tree-optimized" } */
 +
-+      PR fortran/47331
-+      * gfortran.h (struct gfc_omp_saved_state): New type.
-+      (gfc_omp_save_and_clear_state, gfc_omp_restore_state): New prototypes.
-+      * resolve.c (resolve_global_procedure): Call it around gfc_resolve
-+      call.
-+      * openmp.c (gfc_omp_save_and_clear_state, gfc_omp_restore_state): New
-+      functions.
++typedef unsigned int u32;
++typedef unsigned long long u64;
 +
-+2011-01-25  Tobias Burnus  <burnus@net-b.de>
++static inline __attribute__((always_inline)) __attribute__((const))
++int __ilog2_u32(u32 n)
++{
++ int bit;
++ asm ("cntlzw %0,%1" : "=r" (bit) : "r" (n));
++ return 31 - bit;
++}
 +
-+      PR fortran/47448
-+      * interface.c (gfc_check_operator_interface): Fix
-+      defined-assignment check.
 +
-+2011-01-21  Tobias Burnus  <burnus@net-b.de>
++static inline __attribute__((always_inline)) __attribute__((const))
++int __ilog2_u64(u64 n)
++{
++ int bit;
++ asm ("cntlzd %0,%1" : "=r" (bit) : "r" (n));
++ return 63 - bit;
++}
 +
-+      PR fortran/47394
-+      * error.c (gfc_error_now, gfc_fatal_error, gfc_error_check):
-+      Use defined instead of magic number exit status codes.
-+      * scanner.c (include_line, gfc_new_file): Ditto.
-+      * gfortranspec.c (lang_specific_driver): Ditto.
 +
-+2011-01-16  Jakub Jelinek  <jakub@redhat.com>
 +
-+      Backport from mainline
-+      2010-12-14  Jakub Jelinek  <jakub@redhat.com>
++static u64 ehca_map_vaddr(void *caddr);
 +
-+      PR fortran/46874
-+      * trans-openmp.c (gfc_trans_omp_array_reduction): Handle allocatable
-+      dummy variables.
++struct ehca_shca {
++        u32 hca_cap_mr_pgsize;
++};
 +
-+2011-01-16  Thomas Koenig  <tkoenig@gcc.gnu.org>
++static u64 ehca_get_max_hwpage_size(struct ehca_shca *shca)
++{
++ return 1UL << ( __builtin_constant_p(shca->hca_cap_mr_pgsize) ? ( (shca->hca_cap_mr_pgsize) < 1 ? ____ilog2_NaN() : (shca->hca_cap_mr_pgsize) & (1ULL << 63) ? 63 : (shca->hca_cap_mr_pgsize) & (1ULL << 62) ? 62 : (shca->hca_cap_mr_pgsize) & (1ULL << 61) ? 61 : (shca->hca_cap_mr_pgsize) & (1ULL << 60) ? 60 : (shca->hca_cap_mr_pgsize) & (1ULL << 59) ? 59 : (shca->hca_cap_mr_pgsize) & (1ULL << 58) ? 58 : (shca->hca_cap_mr_pgsize) & (1ULL << 57) ? 57 : (shca->hca_cap_mr_pgsize) & (1ULL << 56) ? 56 : (shca->hca_cap_mr_pgsize) & (1ULL << 55) ? 55 : (shca->hca_cap_mr_pgsize) & (1ULL << 54) ? 54 : (shca->hca_cap_mr_pgsize) & (1ULL << 53) ? 53 : (shca->hca_cap_mr_pgsize) & (1ULL << 52) ? 52 : (shca->hca_cap_mr_pgsize) & (1ULL << 51) ? 51 : (shca->hca_cap_mr_pgsize) & (1ULL << 50) ? 50 : (shca->hca_cap_mr_pgsize) & (1ULL << 49) ? 49 : (shca->hca_cap_mr_pgsize) & (1ULL << 48) ? 48 : (shca->hca_cap_mr_pgsize) & (1ULL << 47) ? 47 : (shca->hca_cap_mr_pgsize) & (1ULL << 46) ? 46 : (shca->hca_cap_mr_pgsize) & (1ULL << 45) ? 45 : (shca->hca_cap_mr_pgsize) & (1ULL << 44) ? 44 : (shca->hca_cap_mr_pgsize) & (1ULL << 43) ? 43 : (shca->hca_cap_mr_pgsize) & (1ULL << 42) ? 42 : (shca->hca_cap_mr_pgsize) & (1ULL << 41) ? 41 : (shca->hca_cap_mr_pgsize) & (1ULL << 40) ? 40 : (shca->hca_cap_mr_pgsize) & (1ULL << 39) ? 39 : (shca->hca_cap_mr_pgsize) & (1ULL << 38) ? 38 : (shca->hca_cap_mr_pgsize) & (1ULL << 37) ? 37 : (shca->hca_cap_mr_pgsize) & (1ULL << 36) ? 36 : (shca->hca_cap_mr_pgsize) & (1ULL << 35) ? 35 : (shca->hca_cap_mr_pgsize) & (1ULL << 34) ? 34 : (shca->hca_cap_mr_pgsize) & (1ULL << 33) ? 33 : (shca->hca_cap_mr_pgsize) & (1ULL << 32) ? 32 : (shca->hca_cap_mr_pgsize) & (1ULL << 31) ? 31 : (shca->hca_cap_mr_pgsize) & (1ULL << 30) ? 30 : (shca->hca_cap_mr_pgsize) & (1ULL << 29) ? 29 : (shca->hca_cap_mr_pgsize) & (1ULL << 28) ? 28 : (shca->hca_cap_mr_pgsize) & (1ULL << 27) ? 27 : (shca->hca_cap_mr_pgsize) & (1ULL << 26) ? 26 : (shca->hca_cap_mr_pgsize) & (1ULL << 25) ? 25 : (shca->hca_cap_mr_pgsize) & (1ULL << 24) ? 24 : (shca->hca_cap_mr_pgsize) & (1ULL << 23) ? 23 : (shca->hca_cap_mr_pgsize) & (1ULL << 22) ? 22 : (shca->hca_cap_mr_pgsize) & (1ULL << 21) ? 21 : (shca->hca_cap_mr_pgsize) & (1ULL << 20) ? 20 : (shca->hca_cap_mr_pgsize) & (1ULL << 19) ? 19 : (shca->hca_cap_mr_pgsize) & (1ULL << 18) ? 18 : (shca->hca_cap_mr_pgsize) & (1ULL << 17) ? 17 : (shca->hca_cap_mr_pgsize) & (1ULL << 16) ? 16 : (shca->hca_cap_mr_pgsize) & (1ULL << 15) ? 15 : (shca->hca_cap_mr_pgsize) & (1ULL << 14) ? 14 : (shca->hca_cap_mr_pgsize) & (1ULL << 13) ? 13 : (shca->hca_cap_mr_pgsize) & (1ULL << 12) ? 12 : (shca->hca_cap_mr_pgsize) & (1ULL << 11) ? 11 : (shca->hca_cap_mr_pgsize) & (1ULL << 10) ? 10 : (shca->hca_cap_mr_pgsize) & (1ULL << 9) ? 9 : (shca->hca_cap_mr_pgsize) & (1ULL << 8) ? 8 : (shca->hca_cap_mr_pgsize) & (1ULL << 7) ? 7 : (shca->hca_cap_mr_pgsize) & (1ULL << 6) ? 6 : (shca->hca_cap_mr_pgsize) & (1ULL << 5) ? 5 : (shca->hca_cap_mr_pgsize) & (1ULL << 4) ? 4 : (shca->hca_cap_mr_pgsize) & (1ULL << 3) ? 3 : (shca->hca_cap_mr_pgsize) & (1ULL << 2) ? 2 : (shca->hca_cap_mr_pgsize) & (1ULL << 1) ? 1 : (shca->hca_cap_mr_pgsize) & (1ULL << 0) ? 0 : ____ilog2_NaN() ) : (sizeof(shca->hca_cap_mr_pgsize) <= 4) ? __ilog2_u32(shca->hca_cap_mr_pgsize) : __ilog2_u64(shca->hca_cap_mr_pgsize) );
++}
 +
-+      Backport from trunk
-+      PR fortran/45777
-+      * symbol.c (gfc_symbols_could_alias):  Strip gfc_ prefix,
-+      make static and move in front of its only caller, to ...
-+      * trans-array.c (symbols_could_alias): ... here.
-+      Pass information about pointer and target status as
-+      arguments.  Allocatable arrays don't alias anything
-+      unless they have the POINTER attribute.
-+      (gfc_could_be_alias):  Keep track of pointer and target
-+      status when following references.  Also check if typespecs
-+      of components match those of other components or symbols.
-+      * gfortran.h:  Remove prototype for gfc_symbols_could_alias.
-+
-+2011-01-02  Thomas Koenig  <tkoenig@gcc.gnu.org>
++int x(struct ehca_shca *shca) {
++        return ehca_get_max_hwpage_size(shca);
++}
 +
-+      Backport from mainline
-+      PR fortran/45338
-+      * resolve.c (resolve_operator):  Mark function for user-defined
-+      operator as referenced.
++int y(struct ehca_shca *shca)
++{
++        return ehca_get_max_hwpage_size(shca);
++}
 +
- 2010-12-16  Release Manager
-       * GCC 4.5.2 released.
-Index: gcc/fortran/scanner.c
-===================================================================
---- gcc/fortran/scanner.c      (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/fortran/scanner.c      (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -1841,7 +1841,7 @@
-   filename = gfc_widechar_to_char (begin, -1);
-   if (load_file (filename, NULL, false) == FAILURE)
--    exit (1);
-+    exit (FATAL_EXIT_CODE);
-   gfc_free (filename);
-   return true;
-@@ -2045,7 +2045,7 @@
-     printf ("%s:%3d %s\n", LOCATION_FILE (line_head->location),
-           LOCATION_LINE (line_head->location), line_head->line);
--  exit (0);
-+  exit (SUCCESS_EXIT_CODE);
- #endif
-   return result;
-Index: gcc/fortran/gfortranspec.c
-===================================================================
---- gcc/fortran/gfortranspec.c (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/fortran/gfortranspec.c (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -375,7 +375,7 @@
- You may redistribute copies of GNU Fortran\n\
- under the terms of the GNU General Public License.\n\
- For more information about these matters, see the file named COPYING\n\n"));
--        exit (0);
-+        exit (SUCCESS_EXIT_CODE);
-         break;
-       case OPTION_help:
-Index: gcc/fortran/resolve.c
++/* { dg-final { scan-tree-dump-times "____ilog2_NaN" 0 "optimized" } } */
++/* { dg-final { cleanup-tree-dump "optimized" } } */
+Index: gcc/testsuite/gcc.dg/tree-ssa/pta-ptrarith-1.c
 ===================================================================
---- gcc/fortran/resolve.c      (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/fortran/resolve.c      (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -1810,11 +1810,14 @@
-       if (!gsym->ns->resolved)
-       {
-         gfc_dt_list *old_dt_list;
-+        struct gfc_omp_saved_state old_omp_state;
-         /* Stash away derived types so that the backend_decls do not
-            get mixed up.  */
-         old_dt_list = gfc_derived_types;
-         gfc_derived_types = NULL;
-+        /* And stash away openmp state.  */
-+        gfc_omp_save_and_clear_state (&old_omp_state);
-         gfc_resolve (gsym->ns);
-@@ -1824,6 +1827,8 @@
-         /* Restore the derived types of this namespace.  */
-         gfc_derived_types = old_dt_list;
-+        /* And openmp state.  */
-+        gfc_omp_restore_state (&old_omp_state);
-       }
-       /* Make sure that translation for the gsymbol occurs before
-@@ -3577,9 +3582,12 @@
-       sprintf (msg, _("Operand of user operator '%s' at %%L is %s"),
-                e->value.op.uop->name, gfc_typename (&op1->ts));
-       else
--      sprintf (msg, _("Operands of user operator '%s' at %%L are %s/%s"),
--               e->value.op.uop->name, gfc_typename (&op1->ts),
--               gfc_typename (&op2->ts));
-+      {
-+        sprintf (msg, _("Operands of user operator '%s' at %%L are %s/%s"),
-+                 e->value.op.uop->name, gfc_typename (&op1->ts),
-+                 gfc_typename (&op2->ts));
-+        e->value.op.uop->op->sym->attr.referenced = 1;
-+      }
-       goto bad_op;
+--- gcc/testsuite/gcc.dg/tree-ssa/pta-ptrarith-1.c     (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/testsuite/gcc.dg/tree-ssa/pta-ptrarith-1.c     (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -1,5 +1,5 @@
+ /* { dg-do compile } */
+-/* { dg-options "-O2 -fno-tree-ccp -fdump-tree-ealias" } */
++/* { dg-options "-O2 -fno-tree-forwprop -fno-tree-ccp -fdump-tree-ealias" } */
  
-Index: gcc/regmove.c
+ extern void abort (void);
+ struct X {
+Index: gcc/testsuite/gcc.dg/tree-ssa/pta-ptrarith-2.c
 ===================================================================
---- gcc/regmove.c      (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/regmove.c      (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -513,7 +513,7 @@
-   rtx src_reg = XEXP (src, 0);
-   int src_no = REGNO (src_reg);
-   int dst_no = REGNO (dest);
--  rtx p, set;
-+  rtx p, set, set_insn;
-   enum machine_mode old_mode;
-   basic_block bb = BLOCK_FOR_INSN (insn);
-@@ -551,6 +551,7 @@
-                                GET_MODE_BITSIZE (GET_MODE (src_reg))))
-     return;
-+  set_insn = p;
-   old_mode = GET_MODE (src_reg);
-   PUT_MODE (src_reg, GET_MODE (src));
-   XEXP (src, 0) = SET_SRC (set);
-@@ -583,9 +584,19 @@
-     }
-   else
-     {
--      rtx note = find_reg_note (p, REG_EQUAL, NULL_RTX);
-+      rtx note = find_reg_note (set_insn, REG_EQUAL, NULL_RTX);
-       if (note)
--      remove_note (p, note);
-+      {
-+        if (rtx_equal_p (XEXP (note, 0), XEXP (src, 0)))
-+          {
-+            XEXP (note, 0)
-+              = gen_rtx_fmt_e (GET_CODE (src), GET_MODE (src),
-+                               XEXP (note, 0));
-+            df_notes_rescan (set_insn);
-+          }
-+        else
-+          remove_note (set_insn, note);
-+      }
-     }
- }
+--- gcc/testsuite/gcc.dg/tree-ssa/pta-ptrarith-2.c     (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/testsuite/gcc.dg/tree-ssa/pta-ptrarith-2.c     (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -1,5 +1,5 @@
+ /* { dg-do compile } */
+-/* { dg-options "-O2 -fno-tree-ccp -fdump-tree-ealias" } */
++/* { dg-options "-O2 -fno-tree-forwprop -fno-tree-ccp -fdump-tree-ealias" } */
  
-Index: gcc/BASE-VER
+ extern void abort (void);
+ struct X {
+Index: gcc/testsuite/gcc.dg/tree-ssa/pr51583.c
 ===================================================================
---- gcc/BASE-VER       (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/BASE-VER       (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -1 +1 @@
--4.5.2
-+4.5.3
-Index: gcc/tree-data-ref.c
-===================================================================
---- gcc/tree-data-ref.c        (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/tree-data-ref.c        (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -4594,7 +4594,7 @@
-     for (e = v->succ; e; e = e->succ_next)
-       fprintf (file, " %d", e->dest);
--  fprintf (file, ") \n");
-+  fprintf (file, ")\n");
-   print_gimple_stmt (file, RDGV_STMT (v), 0, TDF_VOPS|TDF_MEMSYMS);
-   fprintf (file, ")\n");
- }
-@@ -4991,6 +4991,38 @@
-   free (bbs);
- }
-+/* Returns true when the statement at STMT is of the form "A[i] = 0"
-+   that contains a data reference on its LHS with a stride of the same
-+   size as its unit type.  */
+--- gcc/testsuite/gcc.dg/tree-ssa/pr51583.c    (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ gcc/testsuite/gcc.dg/tree-ssa/pr51583.c    (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,34 @@
++/* { dg-do compile } */
++/* { dg-options "-O1" } */
 +
-+bool
-+stmt_with_adjacent_zero_store_dr_p (gimple stmt)
++typedef __complex__ double Value;
++
++union U
 +{
-+  tree op0, op1;
-+  bool res;
-+  struct data_reference *dr;
++  Value v;
++  char c[sizeof(Value)];
++};
 +
-+  if (!stmt
-+      || !gimple_vdef (stmt)
-+      || !is_gimple_assign (stmt)
-+      || !gimple_assign_single_p (stmt)
-+      || !(op1 = gimple_assign_rhs1 (stmt))
-+      || !(integer_zerop (op1) || real_zerop (op1)))
-+    return false;
++struct S
++{
++  union U u;
++  int i,j;
++};
++
++Value gv;
++int gi, gj;
 +
-+  dr = XCNEW (struct data_reference);
-+  op0 = gimple_assign_lhs (stmt);
++Value foo (void)
++{
++  struct S s,t;
 +
-+  DR_STMT (dr) = stmt;
-+  DR_REF (dr) = op0;
++  t.i = gi;
++  t.j = gj;
++  t.u.v = gv;
++  t.u.c[0] = 0;
 +
-+  res = dr_analyze_innermost (dr)
-+    && stride_of_unit_type_p (DR_STEP (dr), TREE_TYPE (op0));
++  s = t;
++  __imag__ s.u.v += s.i;
 +
-+  free_data_ref (dr);
-+  return res;
++  return s.u.v;
 +}
-+
- /* For a data reference REF, return the declaration of its base
-    address or NULL_TREE if the base is not determined.  */
-Index: gcc/tree-data-ref.h
+Index: gcc/testsuite/gcc.dg/delay-slot-2.c
 ===================================================================
---- gcc/tree-data-ref.h        (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/tree-data-ref.h        (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -567,7 +567,19 @@
- void remove_similar_memory_refs (VEC (gimple, heap) **);
- bool rdg_defs_used_in_other_loops_p (struct graph *, int);
- bool have_similar_memory_accesses (gimple, gimple);
-+bool stmt_with_adjacent_zero_store_dr_p (gimple);
-+/* Returns true when STRIDE is equal in absolute value to the size of
-+   the unit type of TYPE.  */
+--- gcc/testsuite/gcc.dg/delay-slot-2.c        (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ gcc/testsuite/gcc.dg/delay-slot-2.c        (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,116 @@
++/* PR rtl-optimization/51187 */
++/* Reported by Jurij Smakov <jurij@wooyd.org> */
 +
-+static inline bool
-+stride_of_unit_type_p (tree stride, tree type)
++/* { dg-do compile } */
++/* { dg-options "-g -O2" } */
++
++extern int printf (__const char *__restrict __format, ...);
++extern void print_c_condition (const char *);
++
++enum decision_type
 +{
-+  return tree_int_cst_equal (fold_unary (ABS_EXPR, TREE_TYPE (stride),
-+                                       stride),
-+                           TYPE_SIZE_UNIT (type));
-+}
++  DT_num_insns,
++  DT_mode, DT_code, DT_veclen,
++  DT_elt_zero_int, DT_elt_one_int, DT_elt_zero_wide, DT_elt_zero_wide_safe,
++  DT_const_int,
++  DT_veclen_ge, DT_dup, DT_pred, DT_c_test,
++  DT_accept_op, DT_accept_insn
++};
 +
- /* Determines whether RDG vertices V1 and V2 access to similar memory
-    locations, in which case they have to be in the same partition.  */
-Index: gcc/c-typeck.c
-===================================================================
---- gcc/c-typeck.c     (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/c-typeck.c     (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -5025,10 +5025,10 @@
-     {
-       tree ret;
-       bool save = in_late_binary_op;
--      if (codel == BOOLEAN_TYPE)
-+      if (codel == BOOLEAN_TYPE || codel == COMPLEX_TYPE)
-       in_late_binary_op = true;
-       ret = convert_and_check (type, orig_rhs);
--      if (codel == BOOLEAN_TYPE)
-+      if (codel == BOOLEAN_TYPE || codel == COMPLEX_TYPE)
-       in_late_binary_op = save;
-       return ret;
-     }
-Index: gcc/cfgexpand.c
-===================================================================
---- gcc/cfgexpand.c    (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/cfgexpand.c    (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -2578,7 +2578,7 @@
-           enum machine_mode opmode = GET_MODE (op0);
-           if (opmode == VOIDmode)
--            opmode = mode1;
-+            opmode = TYPE_MODE (TREE_TYPE (tem));
-           /* This condition may hold if we're expanding the address
-              right past the end of an array that turned out not to
-@@ -2599,7 +2599,8 @@
-                                    ? SIGN_EXTRACT
-                                    : ZERO_EXTRACT, mode,
-                                    GET_MODE (op0) != VOIDmode
--                                   ? GET_MODE (op0) : mode1,
-+                                   ? GET_MODE (op0)
-+                                   : TYPE_MODE (TREE_TYPE (tem)),
-                                    op0, GEN_INT (bitsize), GEN_INT (bitpos));
-       }
-Index: gcc/graphite.c
-===================================================================
---- gcc/graphite.c     (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/graphite.c     (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -210,6 +210,7 @@
-       return false;
-     }
++struct decision_test
++{
++  struct decision_test *next;
++  enum decision_type type;
++
++  union
++  {
++    int num_insns;
++
++    struct
++    {
++      const char *name;
++    } pred;
++
++    const char *c_test;
++    int veclen;
++    int dup;
++    long intval;
++    int opno;
++
++    struct {
++      int code_number;
++      int lineno;
++      int num_clobbers_to_add;
++    } insn;
++  } u;
++};
++
++enum routine_type {
++  RECOG, SPLIT, PEEPHOLE2
++};
++
++void
++write_cond (struct decision_test *p, int depth,
++     enum routine_type subroutine_type)
++{
++  switch (p->type)
++    {
++    case DT_num_insns:
++      printf ("peep2_current_count >= %d", p->u.num_insns);
++      break;
++
++    case DT_code:
++      printf ("GET_CODE (x%d) == ", depth);
++      break;
++
++    case DT_veclen:
++      printf ("XVECLEN (x%d, 0) == %d", depth, p->u.veclen);
++      break;
++
++    case DT_elt_zero_int:
++      printf ("XINT (x%d, 0) == %d", depth, (int) p->u.intval);
++      break;
++
++    case DT_elt_one_int:
++      printf ("XINT (x%d, 1) == %d", depth, (int) p->u.intval);
++      break;
++
++    case DT_elt_zero_wide:
++    case DT_elt_zero_wide_safe:
++      printf ("XWINT (x%d, 0) == ", depth);
++      print_host_wide_int (p->u.intval);
++      break;
++
++    case DT_const_int:
++      printf ("x%d == const_int_rtx[MAX_SAVED_CONST_INT + (%d)]",
++       depth, (int) p->u.intval);
++      break;
++
++    case DT_veclen_ge:
++      printf ("XVECLEN (x%d, 0) >= %d", depth, p->u.veclen);
++      break;
++
++    case DT_dup:
++      printf ("rtx_equal_p (x%d, operands[%d])", depth, p->u.dup);
++      break;
++
++    case DT_pred:
++      printf ("%s (x%d)", p->u.pred.name, depth);
++      break;
++
++    case DT_c_test:
++      print_c_condition (p->u.c_test);
++      break;
++
++    case DT_accept_insn:
++      ((void)(__builtin_expect(!(subroutine_type == RECOG), 0) ? __builtin_unreachable(), 0 : 0));
++      ((void)(__builtin_expect(!(p->u.insn.num_clobbers_to_add), 0) ? __builtin_unreachable(), 0 : 0));
++      printf ("pnum_clobbers != NULL");
++      break;
++
++    default:
++      __builtin_unreachable();
++    }
++}
++
++/* { dg-final { scan-assembler "printf" } } */
+Index: gcc/testsuite/ada/acats/overflow.lst
+===================================================================
+--- gcc/testsuite/ada/acats/overflow.lst       (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/testsuite/ada/acats/overflow.lst       (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -14,3 +14,4 @@
+ c460008
+ c460011
+ c4a012b
++cb20004
+Index: gcc/testsuite/ChangeLog
+===================================================================
+--- gcc/testsuite/ChangeLog    (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/testsuite/ChangeLog    (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -1,3 +1,411 @@
++2012-01-30  Bin Cheng  <bin.cheng@arm.com>
++
++      Backport from mainline.
++      2012-01-30  Bin Cheng  <bin.cheng@arm.com>
++
++      PR target/51835
++      * gcc.target/arm/pr51835.c: New testcase.
++
++2012-01-28  Tobias Burnus  <burnus@net-b.de>
++
++      PR fortran/52022
++      * gfortran.dg/dummy_procedure_7.f90: New.
++
++2012-01-25  Jason Merrill  <jason@redhat.com>
++
++      PR target/51934
++      * g++.dg/torture/pr51344.C: Limit to x86.
++
++2012-01-25  Tobias Burnus  <burnus@net-b.de>
++
++      PR fortran/51966
++      * gfortran.dg/derived_constructor_char_3.f90: New.
++
++2012-01-24  Tobias Burnus  <burnus@net-b.de>
++
++      PR fortran/51948
++      * gfortran.dg/move_alloc_12.f90: New.
++
++2012-01-21  Tobias Burnus  <burnus@net-b.de>
++
++      PR fortran/51913
++      * gfortran.dg/class_47.f90: New.
++
++2012-01-21  Eric Botcazou  <ebotcazou@adacore.com>
++
++      * gnat.dg/renaming5.ad[sb]: New test.
++
++2012-01-20  Kai Tietz  <ktietz@redhat.com>
++
++      * g++.dg/torture/pr51344.C: Fix typo.
++
++2012-01-19  Kai Tietz  <ktietz@redhat.com>
++
++      * g++.dg/torture/pr51344.C: New test.
++
++2012-01-19  Tobias Burnus  <burnus@net-b.de>
++
++      PR fortran/51904
++      * gfortran.dg/intrinsic_size_2.f90: New.
++
++2012-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
++
++      PR tree-optimization/49642
++      * gcc.dg/tree-ssa/pr49642.c: New test.
++
++2012-01-16  Jason Merrill  <jason@redhat.com>
++
++      PR c++/51854
++      * g++.dg/abi/mangle60.C: New.
++
++      PR c++/51868
++      * g++.dg/cpp0x/rv-bitfield.C: New.
++      * g++.dg/cpp0x/rv-bitfield2.C: New.
++
++2012-01-15  Uros Bizjak  <ubizjak@gmail.com>
++
++      PR rtl-optimization/51821
++      * gcc.dg/pr51821.c: New test.
++
++2012-01-14  Tobias Burnus  <burnus@net-b.de>
++
++      Backported from mainline
++      2012-01-14  Tobias Burnus  <burnus@net-b.de>
++
++      PR fortran/51800
++      * gfortran.dg/init_flag_8.f90: New.
++      * gfortran.dg/init_flag_9.f90: New.
++
++2012-01-12  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
++
++      Backport from mainline:
++      2012-01-11  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
++
++      * testsuite/gcc.c-torture/execute/20120110-1.c: New testcase.
++
++2012-01-10  Joseph Myers  <joseph@codesourcery.com>
++
++      * gcc.c-torture/execute/doloop-1.c,
++      gcc.c-torture/execute/doloop-2.c: New tests.
++
++2012-01-09  Martin Jambor  <mjambor@suse.cz>
++
++      PR tree-optimization/51759
++      * g++.dg/ipa/pr51759.C: New test.
++
++2012-01-09  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
++
++      Backport from mainline:
++      2011-11-04  Jiangning Liu  <jiangning.liu@arm.com>
++
++      PR rtl-optimization/38644
++      * gcc.target/arm/stack-red-zone.c: New.
++
++2012-01-09  Andrew Stubbs  <ams@codesourcery.com>
++
++      Backport from mainline:
++
++      2012-01-06  Andrew Stubbs  <ams@codesourcery.com>
++
++      * gcc.target/arm/headmerge-2.c: Adjust scan pattern.
++
++2012-01-06  Richard Sandiford  <richard.sandiford@linaro.org>
++
++      PR middle-end/48660
++      * g++.dg/pr48660.C: New test.
++
++2012-01-06  Eric Botcazou  <ebotcazou@adacore.com>
++
++      * ada/acats/overflow.lst: Add cb20004.
++
++2012-01-05  Eric Botcazou  <ebotcazou@adacore.com>
++
++      * gcc.c-torture/execute/20120104-1.c: New test.
++
++2012-01-04  Richard Guenther  <rguenther@suse.de>
++
++      PR tree-optimization/49651
++      * gcc.dg/tree-ssa/pta-ptrarith-1.c: Adjust.
++      * gcc.dg/tree-ssa/pta-ptrarith-2.c: Likewise.
++
++2012-01-03  Richard Guenther  <rguenther@suse.de>
++
++      Backport from mainline
++      2011-11-10  Richard Guenther  <rguenther@suse.de>
++
++      PR tree-optimization/51042
++      * gcc.dg/torture/pr51042.c: New testcase.
++
++2012-01-03  Richard Guenther  <rguenther@suse.de>
++
++      PR tree-optimization/51070
++      * gcc.dg/torture/pr51070.c: New testcase.
++      * gcc.dg/torture/pr51070-2.c: Likewise.
++
++2011-12-20  Dodji Seketeli  <dodji@redhat.com>
++
++      PR debug/49951
++      * g++.dg/gcov/gcov-2.C: Adjust.
++
++2012-01-01  Thomas König  <tkoenig@gcc.gnu.org>
++
++      Backport from trunk
++      PR fortran/51502
++      * lib/gcc-dg.exp (scan-module-absence):  New function.
++      * gfortran.dg/implicit_pure_2.f90:  New test.
++
++2011-12-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
++
++      Backport from mainline
++      2011-12-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
++
++      PR target/51623
++      * gcc.target/powerpc/pr51623.c: New file.
++
++2011-12-28  Uros Bizjak  <ubizjak@gmail.com>
++
++      * gcc.dg/torture/pr50396.c: Use dg-add-options ieee.
++
++2011-12-23  Richard Guenther  <rguenther@suse.de>
++
++      PR rtl-optimization/50396
++      * gcc.dg/torture/pr50396.c: New testcase.
++
++2011-12-22  Doug Kwan  <dougkwan@google.com>
++
++      Backport from mainline
++      2011-11-20  Joey Ye  <joey.ye@arm.com>
++
++      * gcc.dg/volatile-bitfields-1.c: New.
++
++2011-12-21  Richard Earnshaw  <rearnsha@arm.com>
++
++      PR target/51643
++      * gcc.target/arm/sibcall-2.c: New test.
++
++2011-12-19  Martin Jambor  <mjambor@suse.cz>
++
++      PR tree-optimization/51583
++      * gcc.dg/tree-ssa/pr51583.c: New test.
++
++2011-12-16  Jason Merrill  <jason@redhat.com>
++
++      PR c++/51416
++      * g++.dg/cpp0x/auto31.C: New.
++
++2011-12-16  Jason Merrill  <jason@redhat.com>
++
++      PR c++/51331
++      * g++.dg/init/value10.C: New.
++
++2011-12-15  H.J. Lu  <hongjiu.lu@intel.com>
++
++      Backport from mainline.
++      2011-10-28  Chung-Lin Tang  <cltang@codesourcery.com>
++
++      PR rtl-optimization/49720
++      * g++.dg/torture/pr49720.C: New test.
++
++2011-12-14  Jason Merrill  <jason@redhat.com>
++
++      PR c++/51248
++      * g++.dg/other/enum2.C: New.
++
++2011-12-13  Jason Merrill  <jason@redhat.com>
++
++      PR c++/51406
++      PR c++/51161
++      * g++.dg/cpp0x/rv-cast3.C: New.
++      * g++.dg/cpp0x/rv-cast4.C: New.
++
++2011-12-12  Jakub Jelinek  <jakub@redhat.com>
++
++      PR testsuite/51511
++      * gcc.dg/pr45819.c: Add -w to dg-options.
++
++      Backported from mainline
++      2011-12-11  Jakub Jelinek  <jakub@redhat.com>
++
++      PR tree-optimization/51485
++      * g++.dg/vect/pr51485.cc: New test.
++
++2011-12-12  Eric Botcazou  <ebotcazou@adacore.com>
++
++      * gcc.c-torture/execute/20111212-1.c: New test.
++
++2011-12-11  Tobias Burnus  <burnus@net-b.de>
++
++      PR fortran/50923
++      * gfortran.dg/warn_function_without_result_2.f90: New.
++
++2011-12-11  Thomas Koenig  <tkoenig@gcc.gnu.org>
++
++      PR fortran/51338
++      Backport from trunk
++      * gfortran.dg/assumed_charlen_substring_1.f90:  New test.
++
++2011-12-09  Jakub Jelinek  <jakub@redhat.com>
++
++      Backport from mainline
++      2011-12-08  Jakub Jelinek  <jakub@redhat.com>
++
++      PR tree-optimization/51466
++      * gcc.c-torture/execute/pr51466.c: New test.
++
++      2011-11-28  Jakub Jelinek  <jakub@redhat.com>
++
++      PR tree-optimization/50078
++      * gcc.dg/pr50078.c: New test.
++
++2011-12-09  Kazu Hirata  <kazu@codesourcery.com>
++
++      Backport from mainline:
++
++      2011-12-05  Kazu Hirata  <kazu@codesourcery.com>
++
++      PR target/51408
++      * gcc.dg/pr51408.c: New.
++
++2011-12-08  Tobias Burnus  <burnus@net-b.de>
++
++      PR fortran/51448
++      * gfortran.dg/realloc_on_assign_8.f90: New.
++
++2011-12-08  Teresa Johnson  <tejohnson@google.com>
++
++      * gcc.target/i386/movdi-rex64.c: Remove unnecessary
++      unused label.
++
++2011-12-08  Teresa Johnson  <tejohnson@google.com>
++
++      * gcc.target/i386/movdi-rex64.c: Remove unnecessary
++      -Wwrite-strings option.
++
++2011-12-08  Teresa Johnson  <tejohnson@google.com>
++
++      * gcc.target/i386/movdi-rex64.c: New.
++
++2011-12-08  Jakub Jelinek  <jakub@redhat.com>
++
++      Backport from mainline
++      2011-12-05  Jakub Jelinek  <jakub@redhat.com>
++
++      PR debug/51410
++      * gcc.dg/debug/dwarf2/pr51410.c: New test.
++
++      PR c/51339
++      * gcc.dg/gomp/pr51339.c: New test.
++
++      2011-12-05  Jakub Jelinek  <jakub@redhat.com>
++                  Eric Botcazou  <ebotcazou@adacore.com>
++
++      PR middle-end/51323
++      PR middle-end/50074
++      * gcc.c-torture/execute/pr51323.c: New test.
++
++      2011-11-30  Jakub Jelinek  <jakub@redhat.com>
++
++      PR rtl-optimization/48721
++      * gcc.target/i386/pr48721.c: New test.
++
++2011-12-08  Eric Botcazou  <ebotcazou@adacore.com>
++
++      * gcc.c-torture/execute/20111208-1.c: New test.
++
++      Backport from mainline
++      2011-09-25  Eric Botcazou  <ebotcazou@adacore.com>
++
++      * gnat.dg/frame_overflow.ads: New.
++      * gnat.dg/frame_overflow.adb: Adjust.
++      * gnat.dg/specs/addr1.ads: Likewise.
++
++2011-12-06  Tobias Burnus  <burnus@net-b.de>
++
++      PR fortran/51435
++      * gfortran.dg/default_initialization_5.f90: New.
++
++2011-12-06  Martin Jambor  <mjambor@suse.cz>
++
++      PR tree-optimization/50622
++      * g++.dg/tree-ssa/pr50622.C: New test.
++
++2011-12-04  Uros Bizjak  <ubizjak@gmail.com>
++          Jérémie Detrey  <Jeremie.Detrey@loria.fr>
++
++      PR target/51393
++      * gcc.target/i386/pr51393.c: New test.
++
++2011-12-03  Tobias Burnus  <burnus@net-b.de>
++
++      PR fortran/50684
++      * gfortran.dg/move_alloc_8.f90: New.
++
++2011-11-25  Tobias Burnus  <burnus@net-b.de>
++
++      PR fortran/50408
++      * gfortran.dg/whole_file_35.f90: New.
++
++2011-11-24  Tobias Burnus  <burnus@net-b.de>
++
++      PR fortran/51218
++      * resolve.c (pure_subroutine): If called subroutine is
++      impure, unset implicit_pure.
++      (resolve_function): Move impure check to simplify code.
++
++2011-11-22  Paolo Carlini  <paolo.carlini@oracle.com>
++
++      PR c++/51265
++      * g++.dg/cpp0x/decltype36.C: New.
++
++2011-11-19  Eric Botcazou  <ebotcazou@adacore.com>
++
++      * gcc.dg/delay-slot-2.c: New test.
++
++2011-11-18  Joseph Myers  <joseph@codesourcery.com>
++
++      * gcc.dg/cpp/assert4.c: Test __linux__, not __gnu_linux__.
++
++2011-11-18  Paolo Carlini  <paolo.carlini@oracle.com>
++
++      PR c++/51150
++      * g++.dg/cpp0x/pr51150.C: New.
++
++2011-11-16  Richard Earnshaw  <rearnsha@arm.com>
++          Bernd Schmidt <bernds@coudesourcery.com>
++          Sebastian Huber <sebastian.huber@embedded-brains.de>
++
++      PR target/49641
++      * gcc.target/arm/pr49641.c: New test.
++
++2011-11-10  Jakub Jelinek  <jakub@redhat.com>
++
++      PR middle-end/51077
++      * gcc.c-torture/compile/pr51077.c: New test.
++
++2011-11-07  Jason Merrill  <jason@redhat.com>
++
++      PR c++/50870
++      * g++.dg/cpp0x/decltype35.C: New.
++
++2011-11-04  Eric Botcazou  <ebotcazou@adacore.com>
++
++      * g++.dg/other/offsetof7.C: New test.
++
++2011-11-02  Bernd Schmidt  <bernds@codesourcery.com>
++
++      * gcc.c-torture/compile/20110907.c: New file.
++
++2011-10-29  Paolo Carlini  <paolo.carlini@oracle.com>
++
++      PR c++/50901
++      * g++.dg/cpp0x/pr50901.C: New.
++
++2011-10-27  Uros Bizjak  <ubizjak@gmail.com>
++          Steven G. Kargl  <kargl@gcc.gnu.org>
++
++      PR target/50875
++      * gfortran.dg/pr50875.f90: New test.
++
+ 2011-10-26  Release Manager
  
-+  scev_reset ();
-   recompute_all_dominators ();
-   initialize_original_copy_tables ();
-   cloog_initialize ();
-Index: gcc/tree-ssa-pre.c
+       * GCC 4.6.2 released.
+@@ -9,9 +417,9 @@
+ 2011-10-20  Uros Bizjak  <ubizjak@gmail.com>
+-       * gcc.dg/ipa/ipa-sra-2.c: Add dg-require-effective-target
+-       non_strict_align.
+-       * gcc.dg/ipa/ipa-sra-6.c: Ditto.
++      * gcc.dg/ipa/ipa-sra-2.c: Add dg-require-effective-target
++      non_strict_align.
++      * gcc.dg/ipa/ipa-sra-6.c: Ditto.
+ 2011-10-19  Jason Merrill  <jason@redhat.com>
+Index: gcc/testsuite/g++.dg/vect/pr51485.cc
 ===================================================================
---- gcc/tree-ssa-pre.c (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/tree-ssa-pre.c (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -1701,7 +1701,7 @@
-           tree result = vn_reference_lookup_pieces (newvuse, ref->set,
-                                                     ref->type,
-                                                     newoperands,
--                                                    &newref, true);
-+                                                    &newref, VN_WALK);
-           if (newref)
-             VEC_free (vn_reference_op_s, heap, newoperands);
-@@ -2558,6 +2558,10 @@
-     {
-       if (dump_file && (dump_flags & TDF_DETAILS))
-       fprintf (dump_file, "Starting iteration %d\n", num_iterations);
-+      /* ???  We need to clear our PHI translation cache here as the
-+         ANTIC sets shrink and we restrict valid translations to
-+       those having operands with leaders in ANTIC.  Same below
-+       for PA ANTIC computation.  */
-       num_iterations++;
-       changed = false;
-       for (i = n_basic_blocks - NUM_FIXED_BLOCKS - 1; i >= 0; i--)
-@@ -3965,7 +3969,7 @@
-               copy_reference_ops_from_call (stmt, &ops);
-               vn_reference_lookup_pieces (gimple_vuse (stmt), 0,
-                                           gimple_expr_type (stmt),
--                                          ops, &ref, false);
-+                                          ops, &ref, VN_NOWALK);
-               VEC_free (vn_reference_op_s, heap, ops);
-               if (!ref)
-                 continue;
-@@ -4035,7 +4039,7 @@
-                     vn_reference_lookup (gimple_assign_rhs1 (stmt),
-                                          gimple_vuse (stmt),
--                                         true, &ref);
-+                                         VN_WALK, &ref);
-                     if (!ref)
-                       continue;
-@@ -4265,7 +4269,7 @@
-             tree rhs = gimple_assign_rhs1 (stmt);
-             tree val;
-             val = vn_reference_lookup (gimple_assign_lhs (stmt),
--                                       gimple_vuse (stmt), true, NULL);
-+                                       gimple_vuse (stmt), VN_WALK, NULL);
-             if (TREE_CODE (rhs) == SSA_NAME)
-               rhs = VN_INFO (rhs)->valnum;
-             if (val
-Index: gcc/cfgcleanup.c
+--- gcc/testsuite/g++.dg/vect/pr51485.cc       (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ gcc/testsuite/g++.dg/vect/pr51485.cc       (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,14 @@
++/* { dg-do compile } */
++
++struct A { A (); unsigned int a; };
++double bar (A a) throw () __attribute__((pure));
++
++void
++foo (unsigned int x, double *y, A *z)
++{
++  unsigned int i;
++  for (i = 0; i < x; i++)
++    y[i] = bar (z[i]);
++}
++
++/* { dg-final { cleanup-tree-dump "vect" } } */
+Index: gcc/testsuite/g++.dg/pr48660.C
+===================================================================
+--- gcc/testsuite/g++.dg/pr48660.C     (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ gcc/testsuite/g++.dg/pr48660.C     (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,22 @@
++template<int N> struct val { char a[N]; };
++
++class Base
++{
++public:
++  virtual val<1> get1() const = 0;
++  virtual val<2> get2() const = 0;
++  virtual val<3> get3() const = 0;
++  virtual val<4> get4() const = 0;
++};
++
++class Derived : public virtual Base
++{
++public:
++  virtual val<1> get1() const { return foo->get1(); }
++  virtual val<2> get2() const { return foo->get2(); }
++  virtual val<3> get3() const { return foo->get3(); }
++  virtual val<4> get4() const { return foo->get4(); }
++  Base *foo;
++};
++
++Base* make() { return new Derived; }
+Index: gcc/testsuite/g++.dg/abi/mangle60.C
+===================================================================
+--- gcc/testsuite/g++.dg/abi/mangle60.C        (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ gcc/testsuite/g++.dg/abi/mangle60.C        (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,21 @@
++// PR c++/51854
++// { dg-options "" }
++// { dg-excess-errors "" { xfail *-*-* } }
++
++template <unsigned N> struct A;
++
++template <typename U, typename V>
++char foo(U, V);
++
++// { dg-final { scan-assembler "_Z3barIiEvP1AIXszcl3foocvT__ELCi0_42EEEE" } }
++template <typename U>
++void bar(A<sizeof(foo(U(), 42i))> *);
++
++// { dg-final { scan-assembler "_Z3bazIiEvP1AIXszcl3foocvT__ELCf00000000_00000000EEEE" } }
++template <typename U>
++void baz(A<sizeof(foo(U(), 0.0fj))> *);
++
++int main() {
++   bar<int>(0);
++   baz<int>(0);
++}
+Index: gcc/testsuite/g++.dg/init/value10.C
+===================================================================
+--- gcc/testsuite/g++.dg/init/value10.C        (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ gcc/testsuite/g++.dg/init/value10.C        (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,27 @@
++// PR c++/51331
++// { dg-do run }
++
++struct A {
++  A(): x(10) {}
++  virtual ~A() {}
++
++  int x;
++};
++
++struct B: public virtual A {
++};
++
++struct C: public virtual A {
++};
++
++struct D: public B, virtual public C {
++  D(): B(), C() {}  // note an explicit call to C() which is auto-generated
++};
++
++int main() {
++  D* d = new D();
++
++  // Crashes here with the following message:
++  // *** glibc detected *** ./test: free(): invalid next size (fast)
++  delete d;
++}
+Index: gcc/testsuite/g++.dg/other/enum2.C
+===================================================================
+--- gcc/testsuite/g++.dg/other/enum2.C (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ gcc/testsuite/g++.dg/other/enum2.C (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,3 @@
++// PR c++/51248
++
++enum E { e = sizeof(const E*) };
+Index: gcc/testsuite/g++.dg/other/offsetof7.C
+===================================================================
+--- gcc/testsuite/g++.dg/other/offsetof7.C     (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ gcc/testsuite/g++.dg/other/offsetof7.C     (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,17 @@
++// PR c++/50608
++// Testcase by <dberger@oubliette.org>
++// { dg-do compile }
++
++struct A {
++    int offset;
++};
++
++struct B: public A {
++};
++
++struct C {
++    A a;
++    B b;
++};
++
++int fails = __builtin_offsetof (C, b.offset);
+Index: gcc/testsuite/g++.dg/tree-ssa/pr50622.C
+===================================================================
+--- gcc/testsuite/g++.dg/tree-ssa/pr50622.C    (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ gcc/testsuite/g++.dg/tree-ssa/pr50622.C    (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,30 @@
++// { dg-do compile }
++// { dg-options "-O2" }
++
++typedef __complex__ double Value;
++struct LorentzVector
++{
++  LorentzVector & operator+=(const LorentzVector & a) {
++    theX += a.theX;
++    theY += a.theY;
++    theZ += a.theZ;
++    theT += a.theT;
++    return *this;
++  }
++
++  Value theX;
++  Value theY;
++  Value theZ;
++  Value theT;
++};
++
++inline LorentzVector
++operator+(LorentzVector a, const LorentzVector & b) {
++  return a += b;
++}
++
++Value ex, et;
++LorentzVector sum() {
++  LorentzVector v1; v1.theX =ex; v1.theY =ex+et; v1.theZ =ex-et;   v1.theT =et;
++  return v1+v1;
++}
+Index: gcc/testsuite/g++.dg/cpp0x/auto31.C
 ===================================================================
---- gcc/cfgcleanup.c   (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/cfgcleanup.c   (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -482,15 +482,20 @@
-                 /* When not optimizing, ensure that edges or forwarder
-                    blocks with different locus are not optimized out.  */
-                 int locus = single_succ_edge (target)->goto_locus;
-+                rtx last ;
-                 if (locus && goto_locus && !locator_eq (locus, goto_locus))
-                   counter = n_basic_blocks;
-                 else if (locus)
-                   goto_locus = locus;
--                if (INSN_P (BB_END (target)))
-+                last = BB_END (target);
-+                if (DEBUG_INSN_P (last))
-+                  last = prev_nondebug_insn (last);
-+
-+                if (last && INSN_P (last))
-                   {
--                    locus = INSN_LOCATOR (BB_END (target));
-+                    locus = INSN_LOCATOR (last);
-                     if (locus && goto_locus
-                         && !locator_eq (locus, goto_locus))
-@@ -1923,8 +1928,7 @@
-                       }
-                   }
-                 delete_basic_block (b);
--                if (!(mode & CLEANUP_CFGLAYOUT))
--                  changed = true;
-+                changed = true;
-                 /* Avoid trying to remove ENTRY_BLOCK_PTR.  */
-                 b = (c == ENTRY_BLOCK_PTR ? c->next_bb : c);
-                 continue;
-Index: gcc/tree-sra.c
+--- gcc/testsuite/g++.dg/cpp0x/auto31.C        (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ gcc/testsuite/g++.dg/cpp0x/auto31.C        (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,12 @@
++// PR c++/51416
++// { dg-options "-std=c++0x" }
++
++template<typename T, typename... U> void foo(T, U... u)
++{
++  auto foo(u...);             // { dg-error "auto" }
++}
++
++void bar()
++{
++  foo(0);
++}
+Index: gcc/testsuite/g++.dg/cpp0x/pr50901.C
 ===================================================================
---- gcc/tree-sra.c     (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/tree-sra.c     (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -3413,7 +3413,10 @@
-         else if (ac2->size != access->size)
-           return NULL;
--        if (access_precludes_ipa_sra_p (ac2))
-+        if (access_precludes_ipa_sra_p (ac2)
-+            || (ac2->type != access->type
-+                && (TREE_ADDRESSABLE (ac2->type)
-+                    || TREE_ADDRESSABLE (access->type))))
-           return NULL;
-         modification |= ac2->write;
-Index: gcc/c-convert.c
-===================================================================
---- gcc/c-convert.c    (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/c-convert.c    (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -131,6 +131,32 @@
-       goto maybe_fold;
-     case COMPLEX_TYPE:
-+      /* If converting from COMPLEX_TYPE to a different COMPLEX_TYPE
-+       and e is not COMPLEX_EXPR, convert_to_complex uses save_expr,
-+       but for the C FE c_save_expr needs to be called instead.  */
-+      if (TREE_CODE (TREE_TYPE (e)) == COMPLEX_TYPE)
-+      {
-+        tree subtype = TREE_TYPE (type);
-+        tree elt_type = TREE_TYPE (TREE_TYPE (e));
+--- gcc/testsuite/g++.dg/cpp0x/pr50901.C       (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ gcc/testsuite/g++.dg/cpp0x/pr50901.C       (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,9 @@
++// { dg-options "-std=c++0x" }
 +
-+        if (TYPE_MAIN_VARIANT (elt_type) != TYPE_MAIN_VARIANT (subtype)
-+            && TREE_CODE (e) != COMPLEX_EXPR)
-+          {
-+            if (in_late_binary_op)
-+              e = save_expr (e);
-+            else
-+              e = c_save_expr (e);
-+            ret
-+              = fold_build2 (COMPLEX_EXPR, type,
-+                             convert (subtype,
-+                                      fold_build1 (REALPART_EXPR,
-+                                                   elt_type, e)),
-+                             convert (subtype,
-+                                      fold_build1 (IMAGPART_EXPR,
-+                                                   elt_type, e)));
-+            goto maybe_fold;
-+          }
-+      }
-       ret = convert_to_complex (type, e);
-       goto maybe_fold;
-Index: gcc/tree-ssa-ter.c
++template<class T> int foo(int a)
++{
++  const unsigned b = a < 0 ? -a : a;
++  return 0;
++}
++
++int i = foo<float>(1);
+Index: gcc/testsuite/g++.dg/cpp0x/variadic103.C
 ===================================================================
---- gcc/tree-ssa-ter.c (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/tree-ssa-ter.c (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -416,7 +416,9 @@
-     return false;
+--- gcc/testsuite/g++.dg/cpp0x/variadic103.C   (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/testsuite/g++.dg/cpp0x/variadic103.C   (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -5,7 +5,7 @@
  
-   /* Without alias info we can't move around loads.  */
--  if (gimple_references_memory_p (stmt) && !optimize)
-+  if (!optimize
-+      && gimple_assign_single_p (stmt)
-+      && !is_gimple_val (gimple_assign_rhs1 (stmt)))
-     return false;
+ template<class T, class... Args>
+ void test() {
+-  T t(create<Args>()...);     // { dg-error "unknown bound" }
++  T t(create<Args>()...);     // { dg-error "incomplete" }
+   (void) t;
+ }
  
-   /* Float expressions must go through memory if float-store is on.  */
-Index: gcc/rtl.c
+Index: gcc/testsuite/g++.dg/cpp0x/decltype35.C
 ===================================================================
---- gcc/rtl.c  (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/rtl.c  (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -429,7 +429,15 @@
-       case 'n':
-       case 'i':
-         if (XINT (x, i) != XINT (y, i))
--          return 0;
-+          {
-+#ifndef GENERATOR_FILE
-+            if (((code == ASM_OPERANDS && i == 6)
-+                 || (code == ASM_INPUT && i == 1))
-+                && locator_eq (XINT (x, i), XINT (y, i)))
-+              break;
-+#endif
-+            return 0;
-+          }
-         break;
-       case 'V':
-@@ -549,7 +557,15 @@
-       case 'n':
-       case 'i':
-         if (XINT (x, i) != XINT (y, i))
--          return 0;
-+          {
-+#ifndef GENERATOR_FILE
-+            if (((code == ASM_OPERANDS && i == 6)
-+                 || (code == ASM_INPUT && i == 1))
-+                && locator_eq (XINT (x, i), XINT (y, i)))
-+              break;
-+#endif
-+            return 0;
-+          }
-         break;
-       case 'V':
-Index: gcc/graphite-sese-to-poly.c
+--- gcc/testsuite/g++.dg/cpp0x/decltype35.C    (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ gcc/testsuite/g++.dg/cpp0x/decltype35.C    (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,15 @@
++// PR c++/50870
++// { dg-options -std=c++0x }
++
++template <class V>
++  struct impl
++  {
++    template <class T> static T create();
++  };
++
++template <class T, class U, class V, class
++      = decltype(impl<V>::template create<T>()
++             -> impl<V>::template create<U>())>
++struct tester { };
++
++tester<impl<float>*, int, float> ti;
+Index: gcc/testsuite/g++.dg/cpp0x/decltype36.C
+===================================================================
+--- gcc/testsuite/g++.dg/cpp0x/decltype36.C    (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ gcc/testsuite/g++.dg/cpp0x/decltype36.C    (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,21 @@
++// PR c++/51265
++// { dg-options -std=c++0x }
++
++struct Funny
++{
++  int print(int);
++};
++
++template<typename X>
++void c();
++
++template<typename X, X ff>
++void xx()
++{
++  c<decltype(ff)>();
++}
++
++int main()
++{
++  xx<int(Funny::*)(int), &Funny::print>();
++}
+Index: gcc/testsuite/g++.dg/cpp0x/pr51150.C
+===================================================================
+--- gcc/testsuite/g++.dg/cpp0x/pr51150.C       (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ gcc/testsuite/g++.dg/cpp0x/pr51150.C       (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,20 @@
++// PR c++/51150
++// { dg-options "-std=c++0x" }
++
++struct Clock {
++  double Now();
++};
++template <class T> void Foo(Clock* clock) {
++  const int now = clock->Now();
++}
++
++template void Foo<float>(Clock*);
++
++template <class T> void Boo(int val) {
++  const int now1 = (double)(val);
++  const int now2 = const_cast<double>(val); // { dg-error "invalid" }
++  const int now3 = static_cast<double>(val);
++  const int now4 = reinterpret_cast<double>(val); // { dg-error "invalid" }
++}
++
++template void Boo<float>(int);
+Index: gcc/testsuite/g++.dg/cpp0x/rv-bitfield2.C
+===================================================================
+--- gcc/testsuite/g++.dg/cpp0x/rv-bitfield2.C  (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ gcc/testsuite/g++.dg/cpp0x/rv-bitfield2.C  (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,17 @@
++// PR c++/51868
++// { dg-options -std=c++0x }
++
++struct A {
++  A() {}
++  A(const A&) {}
++  A(A&&) {}
++};
++
++struct B {
++  A a;
++  int f : 1;
++};
++
++B func() {
++  return B();
++}
+Index: gcc/testsuite/g++.dg/cpp0x/rv-bitfield.C
+===================================================================
+--- gcc/testsuite/g++.dg/cpp0x/rv-bitfield.C   (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ gcc/testsuite/g++.dg/cpp0x/rv-bitfield.C   (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,12 @@
++// { dg-options -std=c++0x }
++
++struct A
++{
++  int i : 1;
++};
++
++int main()
++{
++  A a;
++  static_cast<int&&>(a.i);
++}
+Index: gcc/testsuite/g++.dg/cpp0x/rv-cast3.C
+===================================================================
+--- gcc/testsuite/g++.dg/cpp0x/rv-cast3.C      (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ gcc/testsuite/g++.dg/cpp0x/rv-cast3.C      (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,18 @@
++// PR c++/51406
++// { dg-do run }
++// { dg-options "-std=c++0x" }
++
++extern "C" int printf(const char *,...);
++extern "C" void abort();
++
++struct A { int a; A() : a(1) {} };
++struct B { int b; B() : b(2) {} };
++struct X : A, B {};
++
++int main() {
++    X x;
++    int a=static_cast<A&&>(x).a;
++    int b=static_cast<B&&>(x).b;
++    // printf ("%d %d\n", a, b);
++    if (a!=1 || b!=2) abort();
++}
+Index: gcc/testsuite/g++.dg/cpp0x/rv-cast4.C
+===================================================================
+--- gcc/testsuite/g++.dg/cpp0x/rv-cast4.C      (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ gcc/testsuite/g++.dg/cpp0x/rv-cast4.C      (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,13 @@
++// PR c++/51161
++// { dg-options "-std=c++0x" }
++
++struct A{};
++struct B : A{};
++struct C : A{};
++struct D : B, C{};
++
++int main()
++{
++  D d;
++  static_cast<A &&>(d);               // { dg-error "ambiguous" }
++}
+Index: gcc/testsuite/g++.dg/gcov/gcov-2.C
 ===================================================================
---- gcc/graphite-sese-to-poly.c        (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/graphite-sese-to-poly.c        (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -715,7 +715,7 @@
-       gcc_assert (TREE_CODE (e) == INTEGER_CST);
+--- gcc/testsuite/g++.dg/gcov/gcov-2.C (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/testsuite/g++.dg/gcov/gcov-2.C (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -20,7 +20,7 @@
  
-       value_init (val);
--      value_set_si (val, int_cst_value (e));
-+      tree_int_to_gmp (e, val);
-       add_value_to_dim (l, expr, val);
-       value_clear (val);
-     }
-@@ -729,16 +729,13 @@
+ void foo()
  {
-   Value val;
-   ppl_Coefficient_t coef;
--  int v = int_cst_value (cst);
-+  tree type = TREE_TYPE (cst);
-   value_init (val);
--  value_set_si (val, 0);
+-  C c;                                        /* count(2) */
++  C c;                                        /* count(1) */
+   c.seti (1);                         /* count(1) */
+ }
  
-   /* Necessary to not get "-1 = 2^n - 1". */
--  if (v < 0)
--    value_sub_int (val, val, -v);
--  else
--    value_add_int (val, val, v);
-+  mpz_set_double_int (val, double_int_sext (tree_to_double_int (cst),
-+                                          TYPE_PRECISION (type)), false);
-   value_multiply (val, val, k);
-   ppl_new_Coefficient (&coef);
-@@ -816,7 +813,7 @@
-             Value val;
-             gcc_assert (host_integerp (TREE_OPERAND (e, 1), 0));
-             value_init (val);
--            value_set_si (val, int_cst_value (TREE_OPERAND (e, 1)));
-+            tree_int_to_gmp (TREE_OPERAND (e, 1), val);
-             value_multiply (val, val, k);
-             scan_tree_for_params (s, TREE_OPERAND (e, 0), c, val);
-             value_clear (val);
-@@ -831,7 +828,7 @@
-             Value val;
-             gcc_assert (host_integerp (TREE_OPERAND (e, 0), 0));
-             value_init (val);
--            value_set_si (val, int_cst_value (TREE_OPERAND (e, 0)));
-+            tree_int_to_gmp (TREE_OPERAND (e, 0), val);
-             value_multiply (val, val, k);
-             scan_tree_for_params (s, TREE_OPERAND (e, 1), c, val);
-             value_clear (val);
-@@ -1717,10 +1714,13 @@
-       /* subscript - low >= 0 */
-       if (host_integerp (low, 0))
-       {
-+        tree minus_low;
+Index: gcc/testsuite/g++.dg/torture/pr51344.C
+===================================================================
+--- gcc/testsuite/g++.dg/torture/pr51344.C     (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ gcc/testsuite/g++.dg/torture/pr51344.C     (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,11 @@
++/* { dg-do compile { target { i?86-*-* && ilp32 } } } */
++class A;
 +
-         ppl_new_Linear_Expression_with_dimension (&expr, accessp_nb_dims);
-         ppl_set_coef (expr, subscript, 1);
--        ppl_set_inhomogeneous (expr, -int_cst_value (low));
-+        minus_low = fold_build1 (NEGATE_EXPR, TREE_TYPE (low), low);
-+        ppl_set_inhomogeneous_tree (expr, minus_low);
-         ppl_new_Constraint (&cstr, expr, PPL_CONSTRAINT_TYPE_GREATER_OR_EQUAL);
-         ppl_Polyhedron_add_constraint (accesses, cstr);
-@@ -1740,7 +1740,7 @@
-         ppl_new_Linear_Expression_with_dimension (&expr, accessp_nb_dims);
-         ppl_set_coef (expr, subscript, -1);
--        ppl_set_inhomogeneous (expr, int_cst_value (high));
-+        ppl_set_inhomogeneous_tree (expr, high);
-         ppl_new_Constraint (&cstr, expr, PPL_CONSTRAINT_TYPE_GREATER_OR_EQUAL);
-         ppl_Polyhedron_add_constraint (accesses, cstr);
-Index: gcc/config.gcc
++template <class T>
++class B
++{
++  friend __attribute__((cdecl)) A& operator >>(A& a, B& b)
++  {
++    return a;
++  }
++};
+Index: gcc/testsuite/g++.dg/torture/pr49720.C
 ===================================================================
---- gcc/config.gcc     (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/config.gcc     (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -1,6 +1,6 @@
- # GCC target-specific configuration file.
- # Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
--# 2008, 2009, 2010 Free Software Foundation, Inc.
-+# 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
- #This file is part of GCC.
-Index: gcc/tree-ssa-structalias.c
+--- gcc/testsuite/g++.dg/torture/pr49720.C     (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ gcc/testsuite/g++.dg/torture/pr49720.C     (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,8 @@
++/* { dg-do compile } */
++
++extern char t_start[], t_end[], t_size[];
++bool foo (void)
++{
++  long size = reinterpret_cast<long>(t_size);
++  return (size == t_end - t_start);
++}
+Index: gcc/testsuite/g++.dg/ipa/pr51759.C
 ===================================================================
---- gcc/tree-ssa-structalias.c (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/tree-ssa-structalias.c (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -369,7 +369,11 @@
-   ret->may_have_pointers = true;
-   ret->is_global_var = (t == NULL_TREE);
-   if (t && DECL_P (t))
--    ret->is_global_var = is_global_var (t);
-+    ret->is_global_var = (is_global_var (t)
-+                        /* We have to treat even local register variables
-+                           as escape points.  */
-+                        || (TREE_CODE (t) == VAR_DECL
-+                            && DECL_HARD_REGISTER (t)));
-   ret->solution = BITMAP_ALLOC (&pta_obstack);
-   ret->oldsolution = BITMAP_ALLOC (&oldpta_obstack);
-   ret->next = NULL;
-@@ -4305,6 +4309,17 @@
-           if (!VEC_empty (fieldoff_s, *fieldstack))
-             pair = VEC_last (fieldoff_s, *fieldstack);
-+          if (!pair
-+              && offset + foff != 0)
-+            {
-+              pair = VEC_safe_push (fieldoff_s, heap, *fieldstack, NULL);
-+              pair->offset = 0;
-+              pair->size = offset + foff;
-+              pair->has_unknown_size = false;
-+              pair->may_have_pointers = false;
-+              pair->only_restrict_pointers = false;
-+            }
+--- gcc/testsuite/g++.dg/ipa/pr51759.C (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ gcc/testsuite/g++.dg/ipa/pr51759.C (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,26 @@
++/* { dg-do run } */
++/* { dg-options "-O2"  } */
 +
-           if (!DECL_SIZE (field)
-               || !host_integerp (DECL_SIZE (field), 1))
-             has_unknown_size = true;
-Index: gcc/gthr-posix.h
++extern "C" void abort (void);
++struct S
++{
++  void __attribute__((noinline)) set(unsigned val)
++    {
++      data = val;
++      if (data != val)
++        abort ();
++    }
++  int pad0;
++  unsigned pad1 : 8;
++  unsigned data : 24;
++  int pad2;
++};
++int main()
++{
++  S s;
++  s.pad2 = -1;
++  s.set(0);
++  if (s.pad2 != -1)
++    abort ();
++}
++
+Index: gcc/cp/typeck.c
 ===================================================================
---- gcc/gthr-posix.h   (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/gthr-posix.h   (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -1,7 +1,7 @@
- /* Threads compatibility routines for libgcc2 and libobjc.  */
- /* Compile this one with gcc.  */
- /* Copyright (C) 1997, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
--   2008, 2009 Free Software Foundation, Inc.
-+   2008, 2009, 2011 Free Software Foundation, Inc.
- This file is part of GCC.
-@@ -250,61 +250,34 @@
-    calls in shared flavors of the HP-UX C library.  Most of the stubs
-    have no functionality.  The details are described in the "libc cumulative
-    patch" for each subversion of HP-UX 11.  There are two special interfaces
--   provided for checking whether an application is linked to a pthread
-+   provided for checking whether an application is linked to a shared pthread
-    library or not.  However, these interfaces aren't available in early
--   libc versions.  We also can't use pthread_once as some libc versions
--   call the init function.  So, we use pthread_create to check whether it
--   is possible to create a thread or not.  The stub implementation returns
--   the error number ENOSYS.  */
-+   libpthread libraries.  We also need a test that works for archive
-+   libraries.  We can't use pthread_once as some libc versions call the
-+   init function.  We also can't use pthread_create or pthread_attr_init
-+   as these create a thread and thereby prevent changing the default stack
-+   size.  The function pthread_default_stacksize_np is available in both
-+   the archive and shared versions of libpthread.   It can be used to
-+   determine the default pthread stack size.  There is a stub in some
-+   shared libc versions which returns a zero size if pthreads are not
-+   active.  We provide an equivalent stub to handle cases where libc
-+   doesn't provide one.  */
- #if defined(__hppa__) && defined(__hpux__)
--#include <errno.h>
--
- static volatile int __gthread_active = -1;
+--- gcc/cp/typeck.c    (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/cp/typeck.c    (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -4835,9 +4835,7 @@
+       && TREE_CONSTANT (TREE_OPERAND (val, 0)))
+     {
+       tree type = build_pointer_type (argtype);
+-      tree op0 = fold_convert (type, TREE_OPERAND (val, 0));
+-      tree op1 = fold_convert (sizetype, fold_offsetof (arg, val));
+-      return fold_build2 (POINTER_PLUS_EXPR, type, op0, op1);
++      return fold_convert (type, fold_offsetof_1 (arg));
+     }
  
--static void *
--__gthread_start (void *__arg __attribute__((unused)))
--{
--  return NULL;
--}
--
--static void __gthread_active_init (void) __attribute__((noinline));
--static void
--__gthread_active_init (void)
--{
--  static pthread_mutex_t __gthread_active_mutex = PTHREAD_MUTEX_INITIALIZER;
--  pthread_t __t;
--  pthread_attr_t __a;
--  int __result;
--
--  __gthrw_(pthread_mutex_lock) (&__gthread_active_mutex);
--  if (__gthread_active < 0)
--    {
--      __gthrw_(pthread_attr_init) (&__a);
--      __gthrw_(pthread_attr_setdetachstate) (&__a, PTHREAD_CREATE_DETACHED);
--      __result = __gthrw_(pthread_create) (&__t, &__a, __gthread_start, NULL);
--      if (__result != ENOSYS)
--      __gthread_active = 1;
--      else
--      __gthread_active = 0;
--      __gthrw_(pthread_attr_destroy) (&__a);
--    }
--  __gthrw_(pthread_mutex_unlock) (&__gthread_active_mutex);
--}
--
- static inline int
- __gthread_active_p (void)
+   /* Handle complex lvalues (when permitted)
+@@ -5698,11 +5696,12 @@
  {
-   /* Avoid reading __gthread_active twice on the main code path.  */
-   int __gthread_active_latest_value = __gthread_active;
-+  size_t __s;
--  /* This test is not protected to avoid taking a lock on the main code
--     path so every update of __gthread_active in a threaded program must
--     be atomic with regard to the result of the test.  */
-   if (__builtin_expect (__gthread_active_latest_value < 0, 0))
+   tree intype;
+   tree result;
++  cp_lvalue_kind clk;
+   /* Assume the cast is valid.  */
+   *valid_p = true;
+-  intype = TREE_TYPE (expr);
++  intype = unlowered_expr_type (expr);
+   /* Save casted types in the function's used types hash table.  */
+   used_types_insert (type);
+@@ -5768,12 +5767,29 @@
+      cv2 T2 if cv2 T2 is reference-compatible with cv1 T1 (8.5.3)."  */
+   if (TREE_CODE (type) == REFERENCE_TYPE
+       && TYPE_REF_IS_RVALUE (type)
+-      && real_lvalue_p (expr)
++      && (clk = real_lvalue_p (expr))
+       && reference_related_p (TREE_TYPE (type), intype)
+       && (c_cast_p || at_least_as_qualified_p (TREE_TYPE (type), intype)))
      {
--      __gthread_active_init ();
-+      pthread_default_stacksize_np (0, &__s);
-+      __gthread_active = __s ? 1 : 0;
-       __gthread_active_latest_value = __gthread_active;
+-      expr = build_typed_address (expr, type);
+-      return convert_from_reference (expr);
++      if (clk == clk_ordinary)
++      {
++        /* Handle the (non-bit-field) lvalue case here by casting to
++           lvalue reference and then changing it to an rvalue reference.
++           Casting an xvalue to rvalue reference will be handled by the
++           main code path.  */
++        tree lref = cp_build_reference_type (TREE_TYPE (type), false);
++        result = (perform_direct_initialization_if_possible
++                  (lref, expr, c_cast_p, complain));
++        result = cp_fold_convert (type, result);
++        /* Make sure we don't fold back down to a named rvalue reference,
++           because that would be an lvalue.  */
++        if (DECL_P (result))
++          result = build1 (NON_LVALUE_EXPR, type, result);
++        return convert_from_reference (result);
++      }
++      else
++      /* For a bit-field or packed field, bind to a temporary.  */
++      expr = rvalue (expr);
      }
  
-Index: gcc/config/sparc/sparc.md
-===================================================================
---- gcc/config/sparc/sparc.md  (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/config/sparc/sparc.md  (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -1106,14 +1106,15 @@
- ;; Load in operand 0 the (absolute) address of operand 1, which is a symbolic
- ;; value subject to a PC-relative relocation.  Operand 2 is a helper function
--;; that adds the PC value at the call point to operand 0.
-+;; that adds the PC value at the call point to register #(operand 3).
- (define_insn "load_pcrel_sym<P:mode>"
-   [(set (match_operand:P 0 "register_operand" "=r")
-       (unspec:P [(match_operand:P 1 "symbolic_operand" "")
--                 (match_operand:P 2 "call_address_operand" "")] UNSPEC_LOAD_PCREL_SYM))
-+                 (match_operand:P 2 "call_address_operand" "")
-+                 (match_operand:P 3 "const_int_operand" "")] UNSPEC_LOAD_PCREL_SYM))
-    (clobber (reg:P 15))]
--  ""
-+  "REGNO (operands[0]) == INTVAL (operands[3])"
+   /* Resolve overloaded address here rather than once in
+Index: gcc/cp/init.c
+===================================================================
+--- gcc/cp/init.c      (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/cp/init.c      (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -141,7 +141,9 @@
+    zero-initialization does not simply mean filling the storage with
+    zero bytes.  FIELD_SIZE, if non-NULL, is the bit size of the field,
+    subfields with bit positions at or above that bit size shouldn't
+-   be added.  */
++   be added.  Note that this only works when the result is assigned
++   to a base COMPONENT_REF; if we only have a pointer to the base subobject,
++   expand_assignment will end up clearing the full size of TYPE.  */
+ static tree
+ build_zero_init_1 (tree type, tree nelts, bool static_storage_p,
+@@ -368,6 +370,12 @@
+ tree
+ build_value_init_noctor (tree type, tsubst_flags_t complain)
  {
-   if (flag_delayed_branch)
-     return "sethi\t%%hi(%a1-4), %0\n\tcall\t%a2\n\t add\t%0, %%lo(%a1+4), %0";
-Index: gcc/config/sparc/sparc.c
++  if (!COMPLETE_TYPE_P (type))
++    {
++      if (complain & tf_error)
++      error ("value-initialization of incomplete type %qT", type);
++      return error_mark_node;
++    }
+   if (CLASS_TYPE_P (type))
+     {
+       gcc_assert (!TYPE_NEEDS_CONSTRUCTING (type));
+Index: gcc/cp/class.c
+===================================================================
+--- gcc/cp/class.c     (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/cp/class.c     (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -464,7 +464,14 @@
+     /* Is this the base field created by build_base_field?  */
+     if (TREE_CODE (field) == FIELD_DECL
+       && DECL_FIELD_IS_BASE (field)
+-      && TREE_TYPE (field) == type)
++      && TREE_TYPE (field) == type
++      /* If we're looking for a field in the most-derived class,
++         also check the field offset; we can have two base fields
++         of the same type if one is an indirect virtual base and one
++         is a direct non-virtual base.  */
++      && (BINFO_INHERITANCE_CHAIN (d_binfo)
++          || tree_int_cst_equal (byte_position (field),
++                                 BINFO_OFFSET (binfo))))
+       {
+       /* We don't use build_class_member_access_expr here, as that
+          has unnecessary checks, and more importantly results in
+@@ -541,6 +548,10 @@
+     {
+       tree pointer_type;
++      /* If this is a non-empty base, use a COMPONENT_REF.  */
++      if (!is_empty_class (BINFO_TYPE (base)))
++      return build_simple_base_path (expr, base);
++
+       pointer_type = build_pointer_type (expr_type);
+       /* We use fold_build2 and fold_convert below to simplify the trees
+Index: gcc/cp/decl.c
 ===================================================================
---- gcc/config/sparc/sparc.c   (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/config/sparc/sparc.c   (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -363,7 +363,7 @@
- static int epilogue_renumber (rtx *, int);
- static bool sparc_assemble_integer (rtx, unsigned int, int);
- static int set_extends (rtx);
--static void load_pic_register (void);
-+static void load_got_register (void);
- static int save_or_restore_regs (int, int, rtx, int, int);
- static void emit_save_or_restore_regs (int);
- static void sparc_asm_function_prologue (FILE *, HOST_WIDE_INT);
-@@ -966,6 +966,36 @@
-   return 0;
+--- gcc/cp/decl.c      (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/cp/decl.c      (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -11540,15 +11540,19 @@
+ static void
+ copy_type_enum (tree dst, tree src)
+ {
+-  TYPE_MIN_VALUE (dst) = TYPE_MIN_VALUE (src);
+-  TYPE_MAX_VALUE (dst) = TYPE_MAX_VALUE (src);
+-  TYPE_SIZE (dst) = TYPE_SIZE (src);
+-  TYPE_SIZE_UNIT (dst) = TYPE_SIZE_UNIT (src);
+-  SET_TYPE_MODE (dst, TYPE_MODE (src));
+-  TYPE_PRECISION (dst) = TYPE_PRECISION (src);
+-  TYPE_ALIGN (dst) = TYPE_ALIGN (src);
+-  TYPE_USER_ALIGN (dst) = TYPE_USER_ALIGN (src);
+-  TYPE_UNSIGNED (dst) = TYPE_UNSIGNED (src);
++  tree t;
++  for (t = dst; t; t = TYPE_NEXT_VARIANT (t))
++    {
++      TYPE_MIN_VALUE (t) = TYPE_MIN_VALUE (src);
++      TYPE_MAX_VALUE (t) = TYPE_MAX_VALUE (src);
++      TYPE_SIZE (t) = TYPE_SIZE (src);
++      TYPE_SIZE_UNIT (t) = TYPE_SIZE_UNIT (src);
++      SET_TYPE_MODE (dst, TYPE_MODE (src));
++      TYPE_PRECISION (t) = TYPE_PRECISION (src);
++      TYPE_ALIGN (t) = TYPE_ALIGN (src);
++      TYPE_USER_ALIGN (t) = TYPE_USER_ALIGN (src);
++      TYPE_UNSIGNED (t) = TYPE_UNSIGNED (src);
++    }
+ }
+ /* Begin compiling the definition of an enumeration type.
+@@ -11903,9 +11907,12 @@
+       return;
+     }
+-  /* Here there should not be any variants of this type.  */
++  /* If this is a forward declaration, there should not be any variants,
++     though we can get a variant in the middle of an enum-specifier with
++     wacky code like 'enum E { e = sizeof(const E*) };'  */
+   gcc_assert (enumtype == TYPE_MAIN_VARIANT (enumtype)
+-            && !TYPE_NEXT_VARIANT (enumtype));
++            && (TYPE_VALUES (enumtype)
++                || !TYPE_NEXT_VARIANT (enumtype)));
  }
  
-+/* Return true if the address of LABEL can be loaded by means of the
-+   mov{si,di}_pic_label_ref patterns in PIC mode.  */
+ /* Build and install a CONST_DECL for an enumeration constant of the
+@@ -13356,8 +13363,17 @@
+       cleanup = call;
+     }
++  /* build_delete sets the location of the destructor call to the
++     current location, even though the destructor is going to be
++     called later, at the end of the current scope.  This can lead to
++     a "jumpy" behaviour for users of debuggers when they step around
++     the end of the block.  So let's unset the location of the
++     destructor call instead.  */
++  if (cleanup != NULL && EXPR_P (cleanup))
++    SET_EXPR_LOCATION (cleanup, UNKNOWN_LOCATION);
+   return cleanup;
+ }
 +
-+static bool
-+can_use_mov_pic_label_ref (rtx label)
-+{
-+  /* VxWorks does not impose a fixed gap between segments; the run-time
-+     gap can be different from the object-file gap.  We therefore can't
-+     assume X - _GLOBAL_OFFSET_TABLE_ is a link-time constant unless we
-+     are absolutely sure that X is in the same segment as the GOT.
-+     Unfortunately, the flexibility of linker scripts means that we
-+     can't be sure of that in general, so assume that GOT-relative
-+     accesses are never valid on VxWorks.  */
-+  if (TARGET_VXWORKS_RTP)
-+    return false;
\f
+ /* When a stmt has been parsed, this function is called.  */
+Index: gcc/cp/ChangeLog
+===================================================================
+--- gcc/cp/ChangeLog   (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/cp/ChangeLog   (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -1,3 +1,79 @@
++2012-01-19  Kai Tietz  <ktietz@redhat.com>
 +
-+  /* Similarly, if the label is non-local, it might end up being placed
-+     in a different section than the current one; now mov_pic_label_ref
-+     requires the label and the code to be in the same section.  */
-+  if (LABEL_REF_NONLOCAL_P (label))
-+    return false;
++      PR c++/51344
++      * decl2.c (save_template_attributes): Use merge_attributes
++      instead of chaining up via TREE_CHAIN.
 +
-+  /* Finally, if we are reordering basic blocks and partition into hot
-+     and cold sections, this might happen for any label.  */
-+  if (flag_reorder_blocks_and_partition)
-+    return false;
++2012-01-16  Jakub Jelinek  <jakub@redhat.com>
 +
-+  return true;
-+}
++      PR c++/51854
++      * mangle.c (write_template_arg_literal): Sorry instead of aborting.
 +
- /* Expand a move instruction.  Return true if all work is done.  */
- bool
-@@ -1000,14 +1030,9 @@
-       if (pic_address_needs_scratch (operands[1]))
-       operands[1] = legitimize_pic_address (operands[1], NULL_RTX);
--      /* VxWorks does not impose a fixed gap between segments; the run-time
--       gap can be different from the object-file gap.  We therefore can't
--       assume X - _GLOBAL_OFFSET_TABLE_ is a link-time constant unless we
--       are absolutely sure that X is in the same segment as the GOT.
--       Unfortunately, the flexibility of linker scripts means that we
--       can't be sure of that in general, so assume that _G_O_T_-relative
--       accesses are never valid on VxWorks.  */
--      if (GET_CODE (operands[1]) == LABEL_REF && !TARGET_VXWORKS_RTP)
-+      /* We cannot use the mov{si,di}_pic_label_ref patterns in all cases.  */
-+      if (GET_CODE (operands[1]) == LABEL_REF
-+        && can_use_mov_pic_label_ref (operands[1]))
-       {
-         if (mode == SImode)
-           {
-@@ -2907,26 +2932,39 @@
++2012-01-16  Jason Merrill  <jason@redhat.com>
++
++      PR c++/51868
++      * typeck.c (build_static_cast_1): Handle bit-fields properly.
++
++2011-12-20  Dodji Seketeli  <dodji@redhat.com>
++
++      PR debug/49951
++      * decl.c (cxx_maybe_build_cleanup): Don't set location of the call
++      to the destructor.
++
++2011-12-16  Jason Merrill  <jason@redhat.com>
++
++      PR c++/51416
++      * init.c (build_value_init_noctor): Check for incomplete type.
++
++2011-12-16  Jason Merrill  <jason@redhat.com>
++
++      PR c++/51331
++      * class.c (convert_to_base_statically): Just call
++      build_simple_base_path.
++      (build_simple_base_path): Check field offset.
++
++2011-12-14  Jason Merrill  <jason@redhat.com>
++
++      PR c++/51248
++      * decl.c (copy_type_enum): Also update variants.
++      (finish_enum): Allow variants of complete enums.
++
++2011-12-13  Jason Merrill  <jason@redhat.com>
++
++      PR c++/51406
++      PR c++/51161
++      * typeck.c (build_static_cast_1): Fix cast of lvalue to
++      base rvalue reference.
++
++2011-11-22  Paolo Carlini  <paolo.carlini@oracle.com>
++
++      PR c++/51265
++      * semantics.c (finish_decltype_type): Handle PTRMEM_CST.
++
++2011-11-18  Paolo Carlini  <paolo.carlini@oracle.com>
++
++      PR c++/51150
++      * pt.c (tsubst_copy_and_build): Handle FIX_TRUNC_EXPR.
++
++2011-11-07  Jason Merrill  <jason@redhat.com>
++
++      PR c++/50870
++      * pt.c (tsubst_copy): Handle NAMESPACE_DECL.
++      (tsubst_copy_and_build) [COMPONENT_REF]: Handle a still-dependent
++      object.
++
++2011-11-04  Eric Botcazou  <ebotcazou@adacore.com>
++
++      PR c++/50608
++      * semantics.c (finish_offsetof): Adjust call to fold_offsetof.
++      * typeck.c (cp_build_addr_expr_1): Call fold_offsetof_1.
++
++2011-10-29  Paolo Carlini  <paolo.carlini@oracle.com>
++
++      PR c++/50901
++      * call.c (build_new_op_1): Handle ABS_EXPR together with the
++      other unary EXPR.
++
+ 2011-10-26  Release Manager
+       * GCC 4.6.2 released.
+Index: gcc/cp/pt.c
+===================================================================
+--- gcc/cp/pt.c        (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/cp/pt.c        (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -11439,6 +11439,9 @@
+       mark_used (t);
+       return t;
++    case NAMESPACE_DECL:
++      return t;
++
+     case OVERLOAD:
+       /* An OVERLOAD will always be a non-dependent overload set; an
+        overload set from function scope will just be represented with an
+@@ -12704,6 +12707,10 @@
+       return build_x_unary_op (TREE_CODE (t), RECUR (TREE_OPERAND (t, 0)),
+                                complain);
++    case FIX_TRUNC_EXPR:
++      return cp_build_unary_op (FIX_TRUNC_EXPR, RECUR (TREE_OPERAND (t, 0)),
++                              0, complain);
++
+     case ADDR_EXPR:
+       op1 = TREE_OPERAND (t, 0);
+       if (TREE_CODE (op1) == LABEL_DECL)
+@@ -13179,7 +13186,9 @@
+       if (member == error_mark_node)
+         return error_mark_node;
+-      if (object_type && !CLASS_TYPE_P (object_type))
++      if (type_dependent_expression_p (object))
++        /* We can't do much here.  */;
++      else if (!CLASS_TYPE_P (object_type))
+         {
+           if (SCALAR_TYPE_P (object_type))
+             {
+Index: gcc/cp/semantics.c
+===================================================================
+--- gcc/cp/semantics.c (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/cp/semantics.c (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -3348,7 +3348,7 @@
      }
+   if (TREE_CODE (expr) == INDIRECT_REF && REFERENCE_REF_P (expr))
+     expr = TREE_OPERAND (expr, 0);
+-  return fold_offsetof (expr, NULL_TREE);
++  return fold_offsetof (expr);
  }
\f
--/* PIC support.  */
--static GTY(()) bool pic_helper_needed = false;
--static GTY(()) rtx pic_helper_symbol;
--static GTY(()) rtx global_offset_table;
-+/* Global Offset Table support.  */
-+static GTY(()) rtx got_helper_rtx = NULL_RTX;
-+static GTY(()) rtx global_offset_table_rtx = NULL_RTX;
  
-+/* Return the SYMBOL_REF for the Global Offset Table.  */
-+
-+static GTY(()) rtx sparc_got_symbol = NULL_RTX;
+ /* Replace the AGGR_INIT_EXPR at *TP with an equivalent CALL_EXPR.  This
+@@ -4927,8 +4927,9 @@
+           gcc_unreachable ();
+         case INTEGER_CST:
++      case PTRMEM_CST:
+           /* We can get here when the id-expression refers to an
+-             enumerator.  */
++             enumerator or non-type template parameter.  */
+           type = TREE_TYPE (expr);
+           break;
+Index: gcc/cp/decl2.c
+===================================================================
+--- gcc/cp/decl2.c     (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/cp/decl2.c     (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -1185,9 +1185,9 @@
+   old_attrs = *q;
+-  /* Place the late attributes at the beginning of the attribute
++  /* Merge the late attributes at the beginning with the attribute
+      list.  */
+-  TREE_CHAIN (tree_last (late_attrs)) = *q;
++  late_attrs = merge_attributes (late_attrs, *q);
+   *q = late_attrs;
+   if (!DECL_P (*decl_p) && *decl_p == TYPE_MAIN_VARIANT (*decl_p))
+Index: gcc/cp/call.c
+===================================================================
+--- gcc/cp/call.c      (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/cp/call.c      (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -4996,6 +4996,7 @@
+     case POSTDECREMENT_EXPR:
+     case REALPART_EXPR:
+     case IMAGPART_EXPR:
++    case ABS_EXPR:
+       return cp_build_unary_op (code, arg1, candidates != 0, complain);
+     case ARRAY_REF:
+Index: gcc/cp/mangle.c
+===================================================================
+--- gcc/cp/mangle.c    (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/cp/mangle.c    (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -2770,7 +2770,8 @@
+       break;
+     default:
+-      gcc_unreachable ();
++      sorry ("mangling %C", TREE_CODE (value));
++      break;
+     }
+   write_char ('E');
+Index: gcc/lto-cgraph.c
+===================================================================
+--- gcc/lto-cgraph.c   (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/lto-cgraph.c   (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -1792,9 +1792,9 @@
+ {
+   const struct lto_function_header *header =
+     (const struct lto_function_header *) data;
+-  const int32_t cfg_offset = sizeof (struct lto_function_header);
+-  const int32_t main_offset = cfg_offset + header->cfg_size;
+-  const int32_t string_offset = main_offset + header->main_size;
++  const int cfg_offset = sizeof (struct lto_function_header);
++  const int main_offset = cfg_offset + header->cfg_size;
++  const int string_offset = main_offset + header->main_size;
+   struct data_in *data_in;
+   struct lto_input_block ib_main;
+   unsigned int i;
+Index: gcc/lto-streamer-out.c
+===================================================================
+--- gcc/lto-streamer-out.c     (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/lto-streamer-out.c     (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -2408,7 +2408,7 @@
+   enum gcc_plugin_symbol_kind kind;
+   enum gcc_plugin_symbol_visibility visibility;
+   int slot_num;
+-  uint64_t size;
++  unsigned HOST_WIDEST_INT size;
+   const char *comdat;
+   unsigned char c;
+@@ -2466,7 +2466,7 @@
+      when symbol has attribute (visibility("hidden")) specified.
+      targetm.binds_local_p check DECL_VISIBILITY_SPECIFIED and gets this
+      right. */
+-     
++
+   if (DECL_EXTERNAL (t)
+       && !targetm.binds_local_p (t))
+     visibility = GCCPV_DEFAULT;
+@@ -2488,14 +2488,9 @@
+       }
+   if (kind == GCCPK_COMMON
+-      && DECL_SIZE (t)
+-      && TREE_CODE (DECL_SIZE (t)) == INTEGER_CST)
+-    {
+-      size = (HOST_BITS_PER_WIDE_INT >= 64)
+-      ? (uint64_t) int_size_in_bytes (TREE_TYPE (t))
+-      : (((uint64_t) TREE_INT_CST_HIGH (DECL_SIZE_UNIT (t))) << 32)
+-              | TREE_INT_CST_LOW (DECL_SIZE_UNIT (t));
+-    }
++      && DECL_SIZE_UNIT (t)
++      && TREE_CODE (DECL_SIZE_UNIT (t)) == INTEGER_CST)
++    size = TREE_INT_CST_LOW (DECL_SIZE_UNIT (t));
+   else
+     size = 0;
+Index: gcc/dwarf2out.c
+===================================================================
+--- gcc/dwarf2out.c    (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/dwarf2out.c    (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -4431,6 +4431,11 @@
+   const char *section; /* Section this loclist is relative to */
+   dw_loc_descr_ref expr;
+   hashval_t hash;
++  /* True if all addresses in this and subsequent lists are known to be
++     resolved.  */
++  bool resolved_addr;
++  /* True if this list has been replaced by dw_loc_next.  */
++  bool replaced;
+   bool emitted;
+ } dw_loc_list_node;
+@@ -6091,6 +6096,19 @@
+ /* Table of decl location linked lists.  */
+ static GTY ((param_is (var_loc_list))) htab_t decl_loc_table;
++/* A cached location list.  */
++struct GTY (()) cached_dw_loc_list_def {
++  /* The DECL_UID of the decl that this entry describes.  */
++  unsigned int decl_id;
++
++  /* The cached location list.  */
++  dw_loc_list_ref loc_list;
++};
++typedef struct cached_dw_loc_list_def cached_dw_loc_list;
++
++/* Table of cached location lists.  */
++static GTY ((param_is (cached_dw_loc_list))) htab_t cached_dw_loc_list_table;
++
+ /* A pointer to the base of a list of references to DIE's that
+    are uniquely identified by their tag, presence/absence of
+    children DIE's, and list of attribute/value pairs.  */
+@@ -6439,7 +6457,7 @@
+ static void insert_double (double_int, unsigned char *);
+ static void insert_float (const_rtx, unsigned char *);
+ static rtx rtl_for_decl_location (tree);
+-static bool add_location_or_const_value_attribute (dw_die_ref, tree,
++static bool add_location_or_const_value_attribute (dw_die_ref, tree, bool,
+                                                  enum dwarf_attribute);
+ static bool tree_add_const_value_attribute (dw_die_ref, tree);
+ static bool tree_add_const_value_attribute_for_decl (dw_die_ref, tree);
+@@ -8173,6 +8191,24 @@
+     htab_find_with_hash (decl_loc_table, decl, DECL_UID (decl));
+ }
++/* Returns a hash value for X (which really is a cached_dw_loc_list_list).  */
 +
-+static rtx
-+sparc_got (void)
++static hashval_t
++cached_dw_loc_list_table_hash (const void *x)
 +{
-+  if (!sparc_got_symbol)
-+    sparc_got_symbol = gen_rtx_SYMBOL_REF (Pmode, "_GLOBAL_OFFSET_TABLE_");
++  return (hashval_t) ((const cached_dw_loc_list *) x)->decl_id;
++}
++
++/* Return nonzero if decl_id of cached_dw_loc_list X is the same as
++   UID of decl *Y.  */
 +
-+  return sparc_got_symbol;
++static int
++cached_dw_loc_list_table_eq (const void *x, const void *y)
++{
++  return (((const cached_dw_loc_list *) x)->decl_id
++        == DECL_UID ((const_tree) y));
 +}
 +
- /* Ensure that we are not using patterns that are not OK with PIC.  */
+ /* Equate a DIE to a particular declaration.  */
  
- int
- check_pic (int i)
- {
-+  rtx op;
+ static void
+@@ -16995,15 +17031,22 @@
+    these things can crop up in other ways also.)  Note that one type of
+    constant value which can be passed into an inlined function is a constant
+    pointer.  This can happen for example if an actual argument in an inlined
+-   function call evaluates to a compile-time constant address.  */
++   function call evaluates to a compile-time constant address.
++   CACHE_P is true if it is worth caching the location list for DECL,
++   so that future calls can reuse it rather than regenerate it from scratch.
++   This is true for BLOCK_NONLOCALIZED_VARS in inlined subroutines,
++   since we will need to refer to them each time the function is inlined.  */
 +
-   switch (flag_pic)
-     {
-     case 1:
--      gcc_assert (GET_CODE (recog_data.operand[i]) != SYMBOL_REF
--                && (GET_CODE (recog_data.operand[i]) != CONST
--                || (GET_CODE (XEXP (recog_data.operand[i], 0)) == MINUS
--                    && (XEXP (XEXP (recog_data.operand[i], 0), 0)
--                        == global_offset_table)
--                    && (GET_CODE (XEXP (XEXP (recog_data.operand[i], 0), 1))
--                        == CONST))));
-+      op = recog_data.operand[i];
-+      gcc_assert (GET_CODE (op) != SYMBOL_REF
-+                && (GET_CODE (op) != CONST
-+                    || (GET_CODE (XEXP (op, 0)) == MINUS
-+                        && XEXP (XEXP (op, 0), 0) == sparc_got ()
-+                        && GET_CODE (XEXP (XEXP (op, 0), 1)) == CONST)));
-     case 2:
-     default:
-       return 1;
-@@ -3161,9 +3199,9 @@
-   return 1;
- }
+ static bool
+-add_location_or_const_value_attribute (dw_die_ref die, tree decl,
++add_location_or_const_value_attribute (dw_die_ref die, tree decl, bool cache_p,
+                                      enum dwarf_attribute attr)
+ {
+   rtx rtl;
+   dw_loc_list_ref list;
+   var_loc_list *loc_list;
++  cached_dw_loc_list *cache;
++  void **slot;
  
--/* Construct the SYMBOL_REF for the tls_get_offset function.  */
-+/* Return the SYMBOL_REF for the tls_get_addr function.  */
+   if (TREE_CODE (decl) == ERROR_MARK)
+     return false;
+@@ -17040,7 +17083,33 @@
+         && add_const_value_attribute (die, rtl))
+        return true;
+     }
+-  list = loc_list_from_tree (decl, decl_by_reference_p (decl) ? 0 : 2);
++  /* If this decl is from BLOCK_NONLOCALIZED_VARS, we might need its
++     list several times.  See if we've already cached the contents.  */
++  list = NULL;
++  if (loc_list == NULL || cached_dw_loc_list_table == NULL)
++    cache_p = false;
++  if (cache_p)
++    {
++      cache = (cached_dw_loc_list *)
++      htab_find_with_hash (cached_dw_loc_list_table, decl, DECL_UID (decl));
++      if (cache)
++      list = cache->loc_list;
++    }
++  if (list == NULL)
++    {
++      list = loc_list_from_tree (decl, decl_by_reference_p (decl) ? 0 : 2);
++      /* It is usually worth caching this result if the decl is from
++       BLOCK_NONLOCALIZED_VARS and if the list has at least two elements.  */
++      if (cache_p && list && list->dw_loc_next)
++      {
++        slot = htab_find_slot_with_hash (cached_dw_loc_list_table, decl,
++                                         DECL_UID (decl), INSERT);
++        cache = ggc_alloc_cleared_cached_dw_loc_list ();
++        cache->decl_id = DECL_UID (decl);
++        cache->loc_list = list;
++        *slot = cache;
++      }
++    }
+   if (list)
+     {
+       add_AT_location_description (die, attr, list);
+@@ -18738,7 +18807,7 @@
+         equate_decl_number_to_die (node, parm_die);
+       if (! DECL_ABSTRACT (node_or_origin))
+       add_location_or_const_value_attribute (parm_die, node_or_origin,
+-                                             DW_AT_location);
++                                             node == NULL, DW_AT_location);
  
--static GTY(()) rtx sparc_tls_symbol;
-+static GTY(()) rtx sparc_tls_symbol = NULL_RTX;
+       break;
  
- static rtx
- sparc_tls_get_addr (void)
-@@ -3174,21 +3212,28 @@
-   return sparc_tls_symbol;
+@@ -18923,6 +18992,7 @@
+   tree context;
+   int was_abstract;
+   htab_t old_decl_loc_table;
++  htab_t old_cached_dw_loc_list_table;
+   /* Make sure we have the actual abstract inline, not a clone.  */
+   decl = DECL_ORIGIN (decl);
+@@ -18937,6 +19007,8 @@
+      get locations in abstract instantces.  */
+   old_decl_loc_table = decl_loc_table;
+   decl_loc_table = NULL;
++  old_cached_dw_loc_list_table = cached_dw_loc_list_table;
++  cached_dw_loc_list_table = NULL;
+   /* Be sure we've emitted the in-class declaration DIE (if any) first, so
+      we don't get confused by DECL_ABSTRACT.  */
+@@ -18961,6 +19033,7 @@
+   current_function_decl = save_fn;
+   decl_loc_table = old_decl_loc_table;
++  cached_dw_loc_list_table = old_cached_dw_loc_list_table;
+   pop_cfun ();
  }
  
-+/* Return the Global Offset Table to be used in TLS mode.  */
-+
- static rtx
- sparc_tls_got (void)
- {
--  rtx temp;
-+  /* In PIC mode, this is just the PIC offset table.  */
-   if (flag_pic)
-     {
-       crtl->uses_pic_offset_table = 1;
-       return pic_offset_table_rtx;
+@@ -19745,9 +19818,8 @@
+           && !TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl_or_origin)))
+       defer_location (decl_or_origin, var_die);
+       else
+-        add_location_or_const_value_attribute (var_die,
+-                                             decl_or_origin,
+-                                             DW_AT_location);
++        add_location_or_const_value_attribute (var_die, decl_or_origin,
++                                             decl == NULL, DW_AT_location);
+       add_pubname (decl_or_origin, var_die);
      }
+   else
+@@ -21534,6 +21606,7 @@
+   dwarf2out_decl (decl);
  
--  if (!global_offset_table)
--    global_offset_table = gen_rtx_SYMBOL_REF (Pmode, "_GLOBAL_OFFSET_TABLE_");
--  temp = gen_reg_rtx (Pmode);
--  emit_move_insn (temp, global_offset_table);
--  return temp;
-+  /* In non-PIC mode, Sun as (unlike GNU as) emits PC-relative relocations for
-+     the GOT symbol with the 32-bit ABI, so we reload the GOT register.  */
-+  if (TARGET_SUN_TLS && TARGET_ARCH32)
-+    {
-+      load_got_register ();
-+      return global_offset_table_rtx;
-+    }
-+
-+  /* In all other cases, we load a new pseudo with the GOT symbol.  */
-+  return copy_to_reg (sparc_got ());
+   htab_empty (decl_loc_table);
++  htab_empty (cached_dw_loc_list_table);
  }
  
- /* Return true if X contains a thread-local symbol.  */
-@@ -3369,7 +3414,7 @@
+ /* Output a marker (i.e. a label) for the beginning of the generated code for
+@@ -22267,6 +22340,11 @@
+   decl_loc_table = htab_create_ggc (10, decl_loc_table_hash,
+                                   decl_loc_table_eq, NULL);
  
-   if (GET_CODE (orig) == SYMBOL_REF
-       /* See the comment in sparc_expand_move.  */
--      || (TARGET_VXWORKS_RTP && GET_CODE (orig) == LABEL_REF))
-+      || (GET_CODE (orig) == LABEL_REF && !can_use_mov_pic_label_ref (orig)))
-     {
-       rtx pic_ref, address;
-       rtx insn;
-@@ -3420,11 +3465,13 @@
-       }
-       else
-       {
--        pic_ref = gen_const_mem (Pmode,
--                                 gen_rtx_PLUS (Pmode,
--                                               pic_offset_table_rtx, address));
-+        pic_ref
-+          = gen_const_mem (Pmode,
-+                           gen_rtx_PLUS (Pmode,
-+                                         pic_offset_table_rtx, address));
-         insn = emit_move_insn (reg, pic_ref);
-       }
++  /* Allocate the cached_dw_loc_list_table.  */
++  cached_dw_loc_list_table
++    = htab_create_ggc (10, cached_dw_loc_list_table_hash,
++                     cached_dw_loc_list_table_eq, NULL);
 +
-       /* Put a REG_EQUAL note on this insn, so that it can be optimized
-        by loop.  */
-       set_unique_reg_note (insn, REG_EQUAL, orig);
-@@ -3462,9 +3509,8 @@
-       return gen_rtx_PLUS (Pmode, base, offset);
-     }
-   else if (GET_CODE (orig) == LABEL_REF)
--    /* ??? Why do we do this?  */
--    /* Now movsi_pic_label_ref uses it, but we ought to be checking that
--       the register is live instead, in case it is eliminated.  */
-+    /* ??? We ought to be checking that the register is live instead, in case
-+       it is eliminated.  */
-     crtl->uses_pic_offset_table = 1;
-   return orig;
-@@ -3529,59 +3575,69 @@
- static void
- get_pc_thunk_name (char name[32], unsigned int regno)
- {
--  const char *pic_name = reg_names[regno];
-+  const char *reg_name = reg_names[regno];
-   /* Skip the leading '%' as that cannot be used in a
-      symbol name.  */
--  pic_name += 1;
-+  reg_name += 1;
-   if (USE_HIDDEN_LINKONCE)
--    sprintf (name, "__sparc_get_pc_thunk.%s", pic_name);
-+    sprintf (name, "__sparc_get_pc_thunk.%s", reg_name);
-   else
-     ASM_GENERATE_INTERNAL_LABEL (name, "LADDPC", regno);
- }
--/* Emit code to load the PIC register.  */
-+/* Wrapper around the load_pcrel_sym{si,di} patterns.  */
+   /* Allocate the initial hunk of the decl_scope_table.  */
+   decl_scope_table = VEC_alloc (tree, gc, 256);
  
--static void
--load_pic_register (void)
-+static rtx
-+gen_load_pcrel_sym (rtx op0, rtx op1, rtx op2, rtx op3)
+@@ -22907,30 +22985,53 @@
  {
-   int orig_flag_pic = flag_pic;
-+  rtx insn;
--  if (TARGET_VXWORKS_RTP)
--    {
--      emit_insn (gen_vxworks_load_got ());
--      emit_use (pic_offset_table_rtx);
--      return;
--    }
-+  /* The load_pcrel_sym{si,di} patterns require absolute addressing.  */
-+  flag_pic = 0;
-+  if (TARGET_ARCH64)
-+    insn = gen_load_pcrel_symdi (op0, op1, op2, op3);
-+  else
-+    insn = gen_load_pcrel_symsi (op0, op1, op2, op3);
-+  flag_pic = orig_flag_pic;
--  /* If we haven't initialized the special PIC symbols, do so now.  */
--  if (!pic_helper_needed)
--    {
--      char name[32];
-+  return insn;
-+}
+   dw_die_ref c;
+   dw_attr_ref a;
+-  dw_loc_list_ref *curr;
++  dw_loc_list_ref *curr, *start, loc;
+   unsigned ix;
+   FOR_EACH_VEC_ELT (dw_attr_node, die->die_attr, ix, a)
+     switch (AT_class (a))
+       {
+       case dw_val_class_loc_list:
+-      curr = AT_loc_list_ptr (a);
+-      while (*curr)
++      start = curr = AT_loc_list_ptr (a);
++      loc = *curr;
++      gcc_assert (loc);
++      /* The same list can be referenced more than once.  See if we have
++         already recorded the result from a previous pass.  */
++      if (loc->replaced)
++        *curr = loc->dw_loc_next;
++      else if (!loc->resolved_addr)
+         {
+-          if (!resolve_addr_in_expr ((*curr)->expr))
++          /* As things stand, we do not expect or allow one die to
++             reference a suffix of another die's location list chain.
++             References must be identical or completely separate.
++             There is therefore no need to cache the result of this
++             pass on any list other than the first; doing so
++             would lead to unnecessary writes.  */
++          while (*curr)
+             {
+-              dw_loc_list_ref next = (*curr)->dw_loc_next;
+-              if (next && (*curr)->ll_symbol)
++              gcc_assert (!(*curr)->replaced && !(*curr)->resolved_addr);
++              if (!resolve_addr_in_expr ((*curr)->expr))
+                 {
+-                  gcc_assert (!next->ll_symbol);
+-                  next->ll_symbol = (*curr)->ll_symbol;
++                  dw_loc_list_ref next = (*curr)->dw_loc_next;
++                  if (next && (*curr)->ll_symbol)
++                    {
++                      gcc_assert (!next->ll_symbol);
++                      next->ll_symbol = (*curr)->ll_symbol;
++                    }
++                  *curr = next;
+                 }
+-              *curr = next;
++              else
++                curr = &(*curr)->dw_loc_next;
+             }
++          if (loc == *start)
++            loc->resolved_addr = 1;
+           else
+-            curr = &(*curr)->dw_loc_next;
++            {
++              loc->replaced = 1;
++              loc->dw_loc_next = *start;
++            }
+         }
+-      if (!AT_loc_list (a))
++      if (!*start)
+         {
+           remove_AT (die, a->dw_attr);
+           ix--;
+@@ -23359,6 +23460,7 @@
+       add_location_or_const_value_attribute (
+         VEC_index (deferred_locations, deferred_locations_list, i)->die,
+         VEC_index (deferred_locations, deferred_locations_list, i)->variable,
++      false,
+       DW_AT_location);
+     }
  
--      pic_helper_needed = true;
-+/* Emit code to load the GOT register.  */
+Index: gcc/expr.c
+===================================================================
+--- gcc/expr.c (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/expr.c (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -2180,6 +2180,111 @@
+   return tgtblk;
+ }
  
--      get_pc_thunk_name (name, REGNO (pic_offset_table_rtx));
--      pic_helper_symbol = gen_rtx_SYMBOL_REF (Pmode, ggc_strdup (name));
-+static void
-+load_got_register (void)
++/* Copy BLKmode value SRC into a register of mode MODE.  Return the
++   register if it contains any data, otherwise return null.
++
++   This is used on targets that return BLKmode values in registers.  */
++
++rtx
++copy_blkmode_to_reg (enum machine_mode mode, tree src)
 +{
-+  /* In PIC mode, this will retrieve pic_offset_table_rtx.  */
-+  if (!global_offset_table_rtx)
-+    global_offset_table_rtx = gen_rtx_REG (Pmode, GLOBAL_OFFSET_TABLE_REGNUM);
--      global_offset_table = gen_rtx_SYMBOL_REF (Pmode, "_GLOBAL_OFFSET_TABLE_");
-+  if (TARGET_VXWORKS_RTP)
-+    emit_insn (gen_vxworks_load_got ());
-+  else
++  int i, n_regs;
++  unsigned HOST_WIDE_INT bitpos, xbitpos, padding_correction = 0, bytes;
++  unsigned int bitsize;
++  rtx *dst_words, dst, x, src_word = NULL_RTX, dst_word = NULL_RTX;
++  enum machine_mode dst_mode;
++
++  gcc_assert (TYPE_MODE (TREE_TYPE (src)) == BLKmode);
++
++  x = expand_normal (src);
++
++  bytes = int_size_in_bytes (TREE_TYPE (src));
++  if (bytes == 0)
++    return NULL_RTX;
++
++  /* If the structure doesn't take up a whole number of words, see
++     whether the register value should be padded on the left or on
++     the right.  Set PADDING_CORRECTION to the number of padding
++     bits needed on the left side.
++
++     In most ABIs, the structure will be returned at the least end of
++     the register, which translates to right padding on little-endian
++     targets and left padding on big-endian targets.  The opposite
++     holds if the structure is returned at the most significant
++     end of the register.  */
++  if (bytes % UNITS_PER_WORD != 0
++      && (targetm.calls.return_in_msb (TREE_TYPE (src))
++        ? !BYTES_BIG_ENDIAN
++        : BYTES_BIG_ENDIAN))
++    padding_correction = (BITS_PER_WORD - ((bytes % UNITS_PER_WORD)
++                                         * BITS_PER_UNIT));
++
++  n_regs = (bytes + UNITS_PER_WORD - 1) / UNITS_PER_WORD;
++  dst_words = XALLOCAVEC (rtx, n_regs);
++  bitsize = MIN (TYPE_ALIGN (TREE_TYPE (src)), BITS_PER_WORD);
++
++  /* Copy the structure BITSIZE bits at a time.  */
++  for (bitpos = 0, xbitpos = padding_correction;
++       bitpos < bytes * BITS_PER_UNIT;
++       bitpos += bitsize, xbitpos += bitsize)
 +    {
-+      /* The GOT symbol is subject to a PC-relative relocation so we need a
-+       helper function to add the PC value and thus get the final value.  */
-+      if (!got_helper_rtx)
++      /* We need a new destination pseudo each time xbitpos is
++       on a word boundary and when xbitpos == padding_correction
++       (the first time through).  */
++      if (xbitpos % BITS_PER_WORD == 0
++        || xbitpos == padding_correction)
 +      {
-+        char name[32];
-+        get_pc_thunk_name (name, GLOBAL_OFFSET_TABLE_REGNUM);
-+        got_helper_rtx = gen_rtx_SYMBOL_REF (Pmode, ggc_strdup (name));
++        /* Generate an appropriate register.  */
++        dst_word = gen_reg_rtx (word_mode);
++        dst_words[xbitpos / BITS_PER_WORD] = dst_word;
++
++        /* Clear the destination before we move anything into it.  */
++        emit_move_insn (dst_word, CONST0_RTX (word_mode));
 +      }
 +
-+      emit_insn (gen_load_pcrel_sym (global_offset_table_rtx, sparc_got (),
-+                                   got_helper_rtx,
-+                                   GEN_INT (GLOBAL_OFFSET_TABLE_REGNUM)));
-     }
++      /* We need a new source operand each time bitpos is on a word
++       boundary.  */
++      if (bitpos % BITS_PER_WORD == 0)
++      src_word = operand_subword_force (x, bitpos / BITS_PER_WORD, BLKmode);
++
++      /* Use bitpos for the source extraction (left justified) and
++       xbitpos for the destination store (right justified).  */
++      store_bit_field (dst_word, bitsize, xbitpos % BITS_PER_WORD, word_mode,
++                     extract_bit_field (src_word, bitsize,
++                                        bitpos % BITS_PER_WORD, 1, false,
++                                        NULL_RTX, word_mode, word_mode));
++    }
++
++  if (mode == BLKmode)
++    {
++      /* Find the smallest integer mode large enough to hold the
++       entire structure.  */
++      for (mode = GET_CLASS_NARROWEST_MODE (MODE_INT);
++         mode != VOIDmode;
++         mode = GET_MODE_WIDER_MODE (mode))
++      /* Have we found a large enough mode?  */
++      if (GET_MODE_SIZE (mode) >= bytes)
++        break;
++
++      /* A suitable mode should have been found.  */
++      gcc_assert (mode != VOIDmode);
++    }
++
++  if (GET_MODE_SIZE (mode) < GET_MODE_SIZE (word_mode))
++    dst_mode = word_mode;
++  else
++    dst_mode = mode;
++  dst = gen_reg_rtx (dst_mode);
++
++  for (i = 0; i < n_regs; i++)
++    emit_move_insn (operand_subword (dst, i, 0, dst_mode), dst_words[i]);
++
++  if (mode != dst_mode)
++    dst = gen_lowpart (mode, dst);
++
++  return dst;
++}
++
+ /* Add a USE expression for REG to the (possibly empty) list pointed
+    to by CALL_FUSAGE.  REG must denote a hard register.  */
+@@ -4382,7 +4487,9 @@
+   if (TREE_CODE (from) == CALL_EXPR && ! aggregate_value_p (from, from)
+       && COMPLETE_TYPE_P (TREE_TYPE (from))
+       && TREE_CODE (TYPE_SIZE (TREE_TYPE (from))) == INTEGER_CST
+-      && ! (((TREE_CODE (to) == VAR_DECL || TREE_CODE (to) == PARM_DECL)
++      && ! (((TREE_CODE (to) == VAR_DECL
++            || TREE_CODE (to) == PARM_DECL
++            || TREE_CODE (to) == RESULT_DECL)
+            && REG_P (DECL_RTL (to)))
+           || TREE_CODE (to) == SSA_NAME))
+     {
+@@ -4428,12 +4535,15 @@
+       rtx temp;
  
--  flag_pic = 0;
--  if (TARGET_ARCH64)
--    emit_insn (gen_load_pcrel_symdi (pic_offset_table_rtx, global_offset_table,
--                                   pic_helper_symbol));
--  else
--    emit_insn (gen_load_pcrel_symsi (pic_offset_table_rtx, global_offset_table,
--                                   pic_helper_symbol));
--  flag_pic = orig_flag_pic;
--
-   /* Need to emit this whether or not we obey regdecls,
-      since setjmp/longjmp can cause life info to screw up.
-      ??? In the case where we don't obey regdecls, this is not sufficient
-      since we may not fall out the bottom.  */
--  emit_use (pic_offset_table_rtx);
-+  emit_use (global_offset_table_rtx);
- }
+       push_temp_slots ();
+-      temp = expand_expr (from, NULL_RTX, GET_MODE (to_rtx), EXPAND_NORMAL);
++      if (REG_P (to_rtx) && TYPE_MODE (TREE_TYPE (from)) == BLKmode)
++      temp = copy_blkmode_to_reg (GET_MODE (to_rtx), from);
++      else
++      temp = expand_expr (from, NULL_RTX, GET_MODE (to_rtx), EXPAND_NORMAL);
  
- /* Emit a call instruction with the pattern given by PAT.  ADDR is the
-@@ -4113,7 +4169,7 @@
+       if (GET_CODE (to_rtx) == PARALLEL)
+       emit_group_load (to_rtx, temp, TREE_TYPE (from),
+                        int_size_in_bytes (TREE_TYPE (from)));
+-      else
++      else if (temp)
+       emit_move_insn (to_rtx, temp);
  
- /* Expand the function prologue.  The prologue is responsible for reserving
-    storage for the frame, saving the call-saved registers and loading the
--   PIC register if needed.  */
-+   GOT register if needed.  */
+       preserve_temp_slots (to_rtx);
+@@ -8533,10 +8643,15 @@
+         return temp;
+       }
  
- void
- sparc_expand_prologue (void)
-@@ -4215,9 +4271,9 @@
-   if (num_gfregs)
-     emit_save_or_restore_regs (SORR_SAVE);
--  /* Load the PIC register if needed.  */
--  if (flag_pic && crtl->uses_pic_offset_table)
--    load_pic_register ();
-+  /* Load the GOT register if needed.  */
-+  if (crtl->uses_pic_offset_table)
-+    load_got_register ();
- }
+-      /* If the mode of DECL_RTL does not match that of the decl, it
+-       must be a promoted value.  We return a SUBREG of the wanted mode,
+-       but mark it so that we know that it was already extended.  */
+-      if (REG_P (decl_rtl) && GET_MODE (decl_rtl) != DECL_MODE (exp))
++      /* If the mode of DECL_RTL does not match that of the decl,
++       there are two cases: we are dealing with a BLKmode value
++       that is returned in a register, or we are dealing with
++       a promoted value.  In the latter case, return a SUBREG
++       of the wanted mode, but mark it so that we know that it
++       was already extended.  */
++      if (REG_P (decl_rtl)
++        && DECL_MODE (exp) != BLKmode
++        && GET_MODE (decl_rtl) != DECL_MODE (exp))
+       {
+         enum machine_mode pmode;
+@@ -9189,8 +9304,16 @@
+               && modifier != EXPAND_CONST_ADDRESS
+               && modifier != EXPAND_INITIALIZER)
+           /* If the field is volatile, we always want an aligned
+-             access.  */
+-          || (volatilep && flag_strict_volatile_bitfields > 0)
++             access.  Do this in following two situations:
++             1. the access is not already naturally
++             aligned, otherwise "normal" (non-bitfield) volatile fields
++             become non-addressable.
++             2. the bitsize is narrower than the access size. Need
++             to extract bitfields from the access.  */
++          || (volatilep && flag_strict_volatile_bitfields > 0
++              && (bitpos % GET_MODE_ALIGNMENT (mode) != 0 
++                  || (mode1 != BLKmode
++                      && bitsize < GET_MODE_SIZE (mode1) * BITS_PER_UNIT)))
+           /* If the field isn't aligned enough to fetch as a memref,
+              fetch it as a bit field.  */
+           || (mode1 != BLKmode
+@@ -9486,10 +9609,32 @@
+        results.  */
+       if (MEM_P (op0))
+       {
++        enum insn_code icode;
++
+         op0 = copy_rtx (op0);
+         if (TYPE_ALIGN_OK (type))
+           set_mem_align (op0, MAX (MEM_ALIGN (op0), TYPE_ALIGN (type)));
++        else if (mode != BLKmode
++                 && MEM_ALIGN (op0) < GET_MODE_ALIGNMENT (mode)
++                 /* If the target does have special handling for unaligned
++                    loads of mode then use them.  */
++                 && ((icode = optab_handler (movmisalign_optab, mode))
++                     != CODE_FOR_nothing))
++          {
++            rtx reg, insn;
++
++            op0 = adjust_address (op0, mode, 0);
++            /* We've already validated the memory, and we're creating a
++               new pseudo destination.  The predicates really can't
++               fail.  */
++            reg = gen_reg_rtx (mode);
++
++            /* Nor can the insn generator.  */
++            insn = GEN_FCN (icode) (reg, op0);
++            emit_insn (insn);
++            return reg;
++          }
+         else if (STRICT_ALIGNMENT
+                  && mode != BLKmode
+                  && MEM_ALIGN (op0) < GET_MODE_ALIGNMENT (mode))
+Index: gcc/expr.h
+===================================================================
+--- gcc/expr.h (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/expr.h (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -324,6 +324,8 @@
+ /* Copy BLKmode object from a set of registers.  */
+ extern rtx copy_blkmode_from_reg (rtx, rtx, tree);
++extern rtx copy_blkmode_to_reg (enum machine_mode, tree);
++
+ /* Mark REG as holding a parameter for the next CALL_INSN.  */
+ extern void use_reg (rtx *, rtx);
+Index: gcc/recog.c
+===================================================================
+--- gcc/recog.c        (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/recog.c        (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -3023,6 +3023,7 @@
+   static int search_ofs;
+   enum reg_class cl;
+   HARD_REG_SET live;
++  df_ref *def_rec;
+   int i;
  
- /* This function generates the assembly code for function entry, which boils
-@@ -8705,7 +8761,7 @@
- /* Emit the sequence of insns SEQ while preserving the registers REG and REG2.
-    This is achieved by means of a manual dynamic stack space allocation in
-    the current frame.  We make the assumption that SEQ doesn't contain any
--   function calls, with the possible exception of calls to the PIC helper.  */
-+   function calls, with the possible exception of calls to the GOT helper.  */
+   gcc_assert (from < MAX_INSNS_PER_PEEP2 + 1);
+@@ -3036,12 +3037,14 @@
  
- static void
- emit_and_preserve (rtx seq, rtx reg, rtx reg2)
-@@ -8868,20 +8924,19 @@
+   while (from != to)
      {
-       /* The hoops we have to jump through in order to generate a sibcall
-        without using delay slots...  */
--      rtx spill_reg, spill_reg2, seq, scratch = gen_rtx_REG (Pmode, 1);
-+      rtx spill_reg, seq, scratch = gen_rtx_REG (Pmode, 1);
+-      HARD_REG_SET this_live;
++      gcc_assert (peep2_insn_data[from].insn != NULL_RTX);
++      /* Don't use registers set or clobbered by the insn.  */
++      for (def_rec = DF_INSN_DEFS (peep2_insn_data[from].insn);
++         *def_rec; def_rec++)
++      SET_HARD_REG_BIT (live, DF_REF_REGNO (*def_rec));
++
+       from = peep2_buf_position (from + 1);
+-      gcc_assert (peep2_insn_data[from].insn != NULL_RTX);
+-      REG_SET_TO_HARD_REG_SET (this_live, peep2_insn_data[from].live_before);
+-      IOR_HARD_REG_SET (live, this_live);
+     }
  
-       if (flag_pic)
-         {
-         spill_reg = gen_rtx_REG (word_mode, 15);  /* %o7 */
--        spill_reg2 = gen_rtx_REG (word_mode, PIC_OFFSET_TABLE_REGNUM);
-         start_sequence ();
--        /* Delay emitting the PIC helper function because it needs to
-+        /* Delay emitting the GOT helper function because it needs to
-            change the section and we are emitting assembly code.  */
--        load_pic_register ();  /* clobbers %o7 */
-+        load_got_register ();  /* clobbers %o7 */
-         scratch = legitimize_pic_address (funexp, scratch);
-         seq = get_insns ();
-         end_sequence ();
--        emit_and_preserve (seq, spill_reg, spill_reg2);
-+        emit_and_preserve (seq, spill_reg, pic_offset_table_rtx);
-       }
-       else if (TARGET_ARCH32)
-       {
-@@ -9032,17 +9087,15 @@
+   cl = (class_str[0] == 'r' ? GENERAL_REGS
+Index: gcc/ada/mlib-tgt-specific-darwin.adb
+===================================================================
+--- gcc/ada/mlib-tgt-specific-darwin.adb       (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/ada/mlib-tgt-specific-darwin.adb       (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -36,8 +36,6 @@
+    --  Non default subprograms
+-   function Archive_Indexer_Options return String_List_Access;
+-
+    procedure Build_Dynamic_Library
+      (Ofiles       : Argument_List;
+       Options      : Argument_List;
+@@ -67,15 +65,6 @@
+                       (1 => Flat_Namespace'Access,
+                        2 => Shared_Libgcc'Access);
+-   -----------------------------
+-   -- Archive_Indexer_Options --
+-   -----------------------------
+-
+-   function Archive_Indexer_Options return String_List_Access is
+-   begin
+-      return new String_List'(1 => new String'("-c"));
+-   end Archive_Indexer_Options;
+-
+    ---------------------------
+    -- Build_Dynamic_Library --
+    ---------------------------
+@@ -180,7 +169,6 @@
+    end Is_Archive_Ext;
+ begin
+-   Archive_Indexer_Options_Ptr := Archive_Indexer_Options'Access;
+    Build_Dynamic_Library_Ptr := Build_Dynamic_Library'Access;
+    DLL_Ext_Ptr := DLL_Ext'Access;
+    Dynamic_Option_Ptr := Dynamic_Option'Access;
+Index: gcc/ada/init.c
+===================================================================
+--- gcc/ada/init.c     (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/ada/init.c     (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -2216,12 +2216,33 @@
+   return 0;
+ }
++#define HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE
++
++void
++__gnat_adjust_context_for_raise (int signo ATTRIBUTE_UNUSED,
++                               void *ucontext ATTRIBUTE_UNUSED)
++{
++#if defined (__x86_64__)
++  /* Work around radar #10302855/pr50678, where the unwinders (libunwind or
++     libgcc_s depending on the system revision) and the DWARF unwind data for
++     the sigtramp have different ideas about register numbering (causing rbx
++     and rdx to be transposed)..  */
++  ucontext_t *uc = (ucontext_t *)ucontext ;
++  unsigned long t = uc->uc_mcontext->__ss.__rbx;
++
++  uc->uc_mcontext->__ss.__rbx = uc->uc_mcontext->__ss.__rdx;
++  uc->uc_mcontext->__ss.__rdx = t;
++#endif
++}
++
  static void
- sparc_file_end (void)
+-__gnat_error_handler (int sig, siginfo_t *si, void *ucontext ATTRIBUTE_UNUSED)
++__gnat_error_handler (int sig, siginfo_t *si, void *ucontext)
  {
--  /* If need to emit the special PIC helper function, do so now.  */
--  if (pic_helper_needed)
-+  /* If we need to emit the special GOT helper function, do so now.  */
-+  if (got_helper_rtx)
-     {
--      unsigned int regno = REGNO (pic_offset_table_rtx);
--      const char *pic_name = reg_names[regno];
--      char name[32];
-+      const char *name = XSTR (got_helper_rtx, 0);
-+      const char *reg_name = reg_names[GLOBAL_OFFSET_TABLE_REGNUM];
- #ifdef DWARF2_UNWIND_INFO
-       bool do_cfi;
- #endif
+   struct Exception_Data *exception;
+   const char *msg;
  
--      get_pc_thunk_name (name, regno);
-       if (USE_HIDDEN_LINKONCE)
-       {
-         tree decl = build_decl (BUILTINS_LOCATION, FUNCTION_DECL,
-@@ -9055,7 +9108,9 @@
-         make_decl_one_only (decl, DECL_ASSEMBLER_NAME (decl));
-         DECL_VISIBILITY (decl) = VISIBILITY_HIDDEN;
-         DECL_VISIBILITY_SPECIFIED (decl) = 1;
-+        resolve_unique_section (decl, 0, flag_function_sections);
-         allocate_struct_function (decl, true);
-+        cfun->is_thunk = 1;
-         current_function_decl = decl;
-         init_varasm_status ();
-         assemble_start_function (decl, name);
-@@ -9076,10 +9131,10 @@
- #endif
-       if (flag_delayed_branch)
-       fprintf (asm_out_file, "\tjmp\t%%o7+8\n\t add\t%%o7, %s, %s\n",
--               pic_name, pic_name);
-+               reg_name, reg_name);
-       else
-       fprintf (asm_out_file, "\tadd\t%%o7, %s, %s\n\tjmp\t%%o7+8\n\t nop\n",
--               pic_name, pic_name);
-+               reg_name, reg_name);
- #ifdef DWARF2_UNWIND_INFO
-       if (do_cfi)
-       fprintf (asm_out_file, "\t.cfi_endproc\n");
-Index: gcc/config/sparc/sparc.h
++  __gnat_adjust_context_for_raise (sig, ucontext);
++
+   switch (sig)
+     {
+     case SIGSEGV:
+Index: gcc/ada/ChangeLog
 ===================================================================
---- gcc/config/sparc/sparc.h   (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/config/sparc/sparc.h   (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -964,10 +964,15 @@
-    not be a register used by the prologue.  */
- #define STATIC_CHAIN_REGNUM (TARGET_ARCH64 ? 5 : 2)
-+/* Register which holds the global offset table, if any.  */
+--- gcc/ada/ChangeLog  (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/ada/ChangeLog  (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -1,3 +1,56 @@
++2012-01-21  Eric Botcazou  <ebotcazou@adacore.com>
 +
-+#define GLOBAL_OFFSET_TABLE_REGNUM 23
++      PR ada/46192
++      * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: In the case of a
++      renaming, preserve the volatileness through the indirection, if any.
 +
- /* Register which holds offset table for position-independent
-    data references.  */
--#define PIC_OFFSET_TABLE_REGNUM (flag_pic ? 23 : INVALID_REGNUM)
-+#define PIC_OFFSET_TABLE_REGNUM \
-+  (flag_pic ? GLOBAL_OFFSET_TABLE_REGNUM : INVALID_REGNUM)
++2012-01-09  Eric Botcazou  <ebotcazou@adacore.com>
++
++      * gcc-interface/trans.c (addressable_p) <COMPONENT_REF>: Fix thinko.
++
++2012-01-02  Eric Botcazou  <ebotcazou@adacore.com>
++
++      * gnatvsn.ads (Current_Year): Bump to 2011.
++
++2011-12-08  Eric Botcazou  <ebotcazou@adacore.com>
++
++      PR tree-optimization/51315
++      Backport from mainline
++      2011-09-25  Eric Botcazou  <ebotcazou@adacore.com>
++
++      * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not promote
++      the alignment if this doesn't prevent BLKmode access to the object.
++
++2011-11-13  Iain Sandoe  <iains@gcc.gnu.org>
++
++      Backport from mainline r181474
++      PR target/50678
++      * init.c (__gnat_error_handler) [Darwin]: Move work-around to the
++      bug filed as radar #10302855 from __gnat_error_handler ...
++      ... to (__gnat_adjust_context_for_raise) [Darwin]: New.
++      (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE) [Darwin]: Define.
++      (__gnat_error_handler) [Darwin]: Use __gnat_adjust_context_for_raise.
++      
++2011-11-18  Tristan Gingold  <gingold@adacore.com>
++          Iain Sandoe  <iains@gcc.gnu.org>
++
++      PR target/49992
++      * mlib-tgt-specific-darwin.adb (Archive_Indexer_Options): Remove.
++      * gcc-interface/Makefile.in (darwin): Remove ranlib special-casing
++      for Darwin.
++
++2011-11-13  Iain Sandoe  <iains@gcc.gnu.org>
++
++      Backport from mainline r181319
++      * gcc-interface/Makefile.in (stamp-gnatlib-$(RTSDIR)): Don't link
++      s-oscons.ads.
++      (OSCONS_CPP, OSCONS_EXTRACT): New.
++      (./bldtools/oscons/xoscons): New Target.
++      ($(RTSDIR)/s-oscons.ads): New Target.
++      (gnatlib): Depend on  $(RTSDIR)/s-oscons.ads.
++      * Make-generated.in: Remove machinery to generate xoscons and
++      ada/s-oscons.ads.
++      
+ 2011-10-26  Release Manager
+       * GCC 4.6.2 released.
+Index: gcc/ada/gnatvsn.ads
+===================================================================
+--- gcc/ada/gnatvsn.ads        (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/ada/gnatvsn.ads        (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -6,7 +6,7 @@
+ --                                                                          --
+ --                                 S p e c                                  --
+ --                                                                          --
+---          Copyright (C) 1992-2010, Free Software Foundation, Inc.         --
++--          Copyright (C) 1992-2011, Free Software Foundation, Inc.         --
+ --                                                                          --
+ -- GNAT is free software;  you can  redistribute it  and/or modify it under --
+ -- terms of the  GNU General Public License as published  by the Free Soft- --
+@@ -92,7 +92,7 @@
+    Verbose_Library_Version : constant String := "GNAT Lib v" & Library_Version;
+    --  Version string stored in e.g. ALI files
+-   Current_Year : constant String := "2010";
++   Current_Year : constant String := "2011";
+    --  Used in printing copyright messages
+ end Gnatvsn;
+Index: gcc/ada/gcc-interface/Makefile.in
+===================================================================
+--- gcc/ada/gcc-interface/Makefile.in  (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/ada/gcc-interface/Makefile.in  (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -2189,7 +2189,6 @@
+   EH_MECHANISM=-gcc
+   GNATLIB_SHARED = gnatlib-shared-darwin
+-  RANLIB = ranlib -c
+   GMEM_LIB = gmemlib
+   LIBRARY_VERSION := $(LIB_VERSION)
+   soext = .dylib
+@@ -2447,21 +2446,52 @@
+       $(foreach PAIR,$(LIBGNAT_TARGET_PAIRS), \
+                 $(LN_S) $(fsrcpfx)ada/$(word 2,$(subst <, ,$(PAIR))) \
+                       $(RTSDIR)/$(word 1,$(subst <, ,$(PAIR)));)
+-# Copy generated target dependent sources
+-      $(RM) $(RTSDIR)/s-oscons.ads
+-      (cd $(RTSDIR); $(LN_S) ../s-oscons.ads s-oscons.ads)
++# Copy tsystem.h
++      $(CP) $(srcdir)/tsystem.h $(RTSDIR)
+       $(RM) ../stamp-gnatlib-$(RTSDIR)
+       touch ../stamp-gnatlib1-$(RTSDIR)
+ # GNULLI End #############################################################
++ifeq ($(strip $(filter-out alpha64 ia64 dec hp vms% openvms% alphavms%,$(subst -, ,$(host)))),)
++OSCONS_CPP=../../$(DECC) -E /comment=as_is -DNATIVE \
++             -DTARGET='""$(target)""' $(fsrcpfx)ada/s-oscons-tmplt.c
++
++OSCONS_EXTRACT=../../$(DECC) -DNATIVE \
++                 -DTARGET='""$(target)""' $(fsrcpfx)ada/s-oscons-tmplt.c ; \
++  ld -o s-oscons-tmplt.exe s-oscons-tmplt.obj; \
++  ./s-oscons-tmplt.exe > s-oscons-tmplt.s
++
++else
++# GCC_FOR_TARGET has paths relative to the gcc directory, so we need to adjust
++# for running it from $(RTSDIR)
++OSCONS_CC=`echo "$(GCC_FOR_TARGET)" \
++  | sed -e 's^\./xgcc^../../xgcc^' -e 's^-B./^-B../../^'`
++OSCONS_CPP=$(OSCONS_CC) $(GNATLIBCFLAGS) -E -C \
++  -DTARGET=\"$(target)\" $(fsrcpfx)ada/s-oscons-tmplt.c > s-oscons-tmplt.i
++OSCONS_EXTRACT=$(OSCONS_CC) -S s-oscons-tmplt.i
++endif
++
++./bldtools/oscons/xoscons: xoscons.adb xutil.ads xutil.adb
++      -$(MKDIR) ./bldtools/oscons
++      $(RM) $(addprefix ./bldtools/oscons/,$(notdir $^))
++      $(CP) $^ ./bldtools/oscons
++      (cd ./bldtools/oscons ; gnatmake -q xoscons)
++
++$(RTSDIR)/s-oscons.ads: ../stamp-gnatlib1-$(RTSDIR) s-oscons-tmplt.c gsocket.h ./bldtools/oscons/xoscons
++      $(RM) $(RTSDIR)/s-oscons-tmplt.i $(RTSDIR)/s-oscons-tmplt.s
++      (cd $(RTSDIR) ; \
++          $(OSCONS_CPP) ; \
++          $(OSCONS_EXTRACT) ; \
++          ../bldtools/oscons/xoscons)
++
+ # Don't use semicolon separated shell commands that involve list expansions.
+ # The semicolon triggers a call to DCL on VMS and DCL can't handle command
+ # line lengths in excess of 256 characters.
+ # Example: cd $(RTSDIR); ar rc libfoo.a $(LONG_LIST_OF_OBJS)
+ # is guaranteed to overflow the buffer.
+-gnatlib: ../stamp-gnatlib1-$(RTSDIR) ../stamp-gnatlib2-$(RTSDIR)
++gnatlib: ../stamp-gnatlib1-$(RTSDIR) ../stamp-gnatlib2-$(RTSDIR) $(RTSDIR)/s-oscons.ads
+       $(MAKE) -C $(RTSDIR) \
+               CC="`echo \"$(GCC_FOR_TARGET)\" \
+               | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'`" \
+Index: gcc/ada/gcc-interface/decl.c
+===================================================================
+--- gcc/ada/gcc-interface/decl.c       (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/ada/gcc-interface/decl.c       (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -808,16 +808,30 @@
+                   && No (Address_Clause (gnat_entity))))
+           && TREE_CODE (TYPE_SIZE (gnu_type)) == INTEGER_CST)
+         {
+-          /* No point in jumping through all the hoops needed in order
++          unsigned int size_cap, align_cap;
++
++          /* No point in promoting the alignment if this doesn't prevent
++             BLKmode access to the object, in particular block copy, as
++             this will for example disable the NRV optimization for it.
++             No point in jumping through all the hoops needed in order
+              to support BIGGEST_ALIGNMENT if we don't really have to.
+              So we cap to the smallest alignment that corresponds to
+              a known efficient memory access pattern of the target.  */
+-          unsigned int align_cap = Is_Atomic (gnat_entity)
+-                                   ? BIGGEST_ALIGNMENT
+-                                   : get_mode_alignment (ptr_mode);
++          if (Is_Atomic (gnat_entity))
++            {
++              size_cap = UINT_MAX;
++              align_cap = BIGGEST_ALIGNMENT;
++            }
++          else
++            {
++              size_cap = MAX_FIXED_MODE_SIZE;
++              align_cap = get_mode_alignment (ptr_mode);
++            }
  
- /* Pick a default value we can notice from override_options:
-    !v9: Default is on.
-Index: gcc/config/rx/rx.h
+           if (!host_integerp (TYPE_SIZE (gnu_type), 1)
+-              || compare_tree_int (TYPE_SIZE (gnu_type), align_cap) >= 0)
++              || compare_tree_int (TYPE_SIZE (gnu_type), size_cap) > 0)
++            align = 0;
++          else if (compare_tree_int (TYPE_SIZE (gnu_type), align_cap) > 0)
+             align = align_cap;
+           else
+             align = ceil_alignment (tree_low_cst (TYPE_SIZE (gnu_type), 1));
+@@ -1009,6 +1023,14 @@
+                  entity is always accessed indirectly through it.  */
+               else
+                 {
++                  /* We need to preserve the volatileness of the renamed
++                     object through the indirection.  */
++                  if (TREE_THIS_VOLATILE (gnu_expr)
++                      && !TYPE_VOLATILE (gnu_type))
++                    gnu_type
++                      = build_qualified_type (gnu_type,
++                                              (TYPE_QUALS (gnu_type)
++                                               | TYPE_QUAL_VOLATILE));
+                   gnu_type = build_reference_type (gnu_type);
+                   inner_const_flag = TREE_READONLY (gnu_expr);
+                   const_flag = true;
+Index: gcc/ada/gcc-interface/trans.c
 ===================================================================
---- gcc/config/rx/rx.h (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/config/rx/rx.h (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -1,5 +1,5 @@
- /* GCC backend definitions for the Renesas RX processor.
--   Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc.
-+   Copyright (C) 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
-    Contributed by Red Hat.
-    This file is part of GCC.
-@@ -25,7 +25,10 @@
-       builtin_define ("__RX__");              \
-       builtin_assert ("cpu=RX");              \
-       if (rx_cpu_type == RX610)                       \
--        builtin_assert ("machine=RX610");     \
-+      {                                       \
-+          builtin_define ("__RX610__");               \
-+          builtin_assert ("machine=RX610");   \
-+      }                                       \
-      else                                     \
-         builtin_assert ("machine=RX600");     \
-                                                       \
-@@ -144,6 +147,10 @@
- #define SIZE_TYPE                     "long unsigned int"
- #undef  PTRDIFF_TYPE
- #define PTRDIFF_TYPE                  "long int"
-+#undef  WCHAR_TYPE
-+#define WCHAR_TYPE                    "long int"
-+#undef  WCHAR_TYPE_SIZE
-+#define WCHAR_TYPE_SIZE                       BITS_PER_WORD
- #define POINTERS_EXTEND_UNSIGNED      1
- #define FUNCTION_MODE                         QImode
- #define CASE_VECTOR_MODE              Pmode
-@@ -260,6 +267,7 @@
- #define LIBCALL_VALUE(MODE)                           \
-   gen_rtx_REG (((GET_MODE_CLASS (MODE) != MODE_INT    \
-+                 || COMPLEX_MODE_P (MODE)             \
-                || GET_MODE_SIZE (MODE) >= 4)          \
-               ? (MODE)                                \
-               : SImode),                              \
-@@ -354,7 +362,7 @@
-   {                                                           \
-     "r0",  "r1",  "r2",   "r3",   "r4",   "r5",   "r6",   "r7",       \
-       "r8",  "r9",  "r10",  "r11",  "r12",  "r13",  "r14",  "r15", "cc"       \
--  };
-+  }
+--- gcc/ada/gcc-interface/trans.c      (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/ada/gcc-interface/trans.c      (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -6,7 +6,7 @@
+  *                                                                          *
+  *                          C Implementation File                           *
+  *                                                                          *
+- *          Copyright (C) 1992-2011, Free Software Foundation, Inc.         *
++ *          Copyright (C) 1992-2012, Free Software Foundation, Inc.         *
+  *                                                                          *
+  * GNAT is free software;  you can  redistribute it  and/or modify it under *
+  * terms of the  GNU General Public License as published  by the Free Soft- *
+@@ -7409,7 +7409,7 @@
+                   || DECL_ALIGN (TREE_OPERAND (gnu_expr, 1))
+                      >= TYPE_ALIGN (TREE_TYPE (gnu_expr))))
+              /* The field of a padding record is always addressable.  */
+-             || TYPE_PADDING_P (TREE_TYPE (TREE_OPERAND (gnu_expr, 0))))
++             || TYPE_IS_PADDING_P (TREE_TYPE (TREE_OPERAND (gnu_expr, 0))))
+             && addressable_p (TREE_OPERAND (gnu_expr, 0), NULL_TREE));
+     case ARRAY_REF:  case ARRAY_RANGE_REF:
+Index: gcc/ada/Make-generated.in
+===================================================================
+--- gcc/ada/Make-generated.in  (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/ada/Make-generated.in  (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -64,37 +64,6 @@
+       $(CP) $^ $(ADA_GEN_SUBDIR)/bldtools/nmake_s
+       (cd $(ADA_GEN_SUBDIR)/bldtools/nmake_s; gnatmake -q xnmake ; ./xnmake -s ../../nmake.ads )
+-ifeq ($(strip $(filter-out alpha64 ia64 dec hp vms% openvms% alphavms%,$(subst -, ,$(host)))),)
+-OSCONS_CPP=../../../$(DECC) -E /comment=as_is -DNATIVE \
+-             -DTARGET='""$(target)""' s-oscons-tmplt.c
+-
+-OSCONS_EXTRACT=../../../$(DECC) -DNATIVE \
+-                 -DTARGET='""$(target)""' s-oscons-tmplt.c ; \
+-  ld -o s-oscons-tmplt.exe s-oscons-tmplt.obj; \
+-  ./s-oscons-tmplt.exe > s-oscons-tmplt.s
+-
+-else
+-# GCC_FOR_TARGET has paths relative to the gcc directory, so we need to ajust
+-# for running it from $(ADA_GEN_SUBDIR)/bldtools/oscons
+-OSCONS_CC=`echo "$(GCC_FOR_TARGET)" \
+-  | sed -e 's^\./xgcc^../../../xgcc^' -e 's^-B./^-B../../../^'`
+-OSCONS_CPP=$(OSCONS_CC) $(GNATLIBCFLAGS) -E -C \
+-  -DTARGET=\"$(target)\" s-oscons-tmplt.c > s-oscons-tmplt.i
+-OSCONS_EXTRACT=$(OSCONS_CC) -S s-oscons-tmplt.i
+-endif
+-
+-$(ADA_GEN_SUBDIR)/s-oscons.ads : $(ADA_GEN_SUBDIR)/s-oscons-tmplt.c $(ADA_GEN_SUBDIR)/gsocket.h $(ADA_GEN_SUBDIR)/xoscons.adb $(ADA_GEN_SUBDIR)/xutil.ads $(ADA_GEN_SUBDIR)/xutil.adb
+-      -$(MKDIR) $(ADA_GEN_SUBDIR)/bldtools/oscons
+-      $(RM) $(addprefix $(ADA_GEN_SUBDIR)/bldtools/oscons/,$(notdir $^))
+-      $(CP) $^ $(ADA_GEN_SUBDIR)/bldtools/oscons
+-      (cd $(ADA_GEN_SUBDIR)/bldtools/oscons ; gnatmake -q xoscons ; \
+-              $(RM) s-oscons-tmplt.i s-oscons-tmplt.s ; \
+-              $(OSCONS_CPP) ; \
+-              $(OSCONS_EXTRACT) ; \
+-              ./xoscons ; \
+-              $(RM) ../../s-oscons.ads ; \
+-              $(CP) s-oscons.ads s-oscons.h ../../)
+-
+ $(ADA_GEN_SUBDIR)/sdefault.adb: $(ADA_GEN_SUBDIR)/stamp-sdefault ; @true
+ $(ADA_GEN_SUBDIR)/stamp-sdefault : $(srcdir)/version.c Makefile
+       $(ECHO) "pragma Style_Checks (Off);" >tmp-sdefault.adb
+Index: gcc/lto-streamer-in.c
+===================================================================
+--- gcc/lto-streamer-in.c      (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/lto-streamer-in.c      (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -1366,9 +1366,9 @@
+ {
+   const struct lto_function_header *header;
+   struct data_in *data_in;
+-  int32_t cfg_offset;
+-  int32_t main_offset;
+-  int32_t string_offset;
++  int cfg_offset;
++  int main_offset;
++  int string_offset;
+   struct lto_input_block ib_cfg;
+   struct lto_input_block ib_main;
+Index: gcc/c-decl.c
+===================================================================
+--- gcc/c-decl.c       (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/c-decl.c       (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -721,7 +721,7 @@
+         complete_array_type (&TREE_TYPE (decl), NULL_TREE, true);
+-        layout_decl (decl, 0);
++        relayout_decl (decl);
+       }
+     }
+ }
+@@ -1200,7 +1200,7 @@
+             DECL_CHAIN (p) = BLOCK_VARS (block);
+             BLOCK_VARS (block) = p;
+           }
+-        else if (VAR_OR_FUNCTION_DECL_P (p))
++        else if (VAR_OR_FUNCTION_DECL_P (p) && scope != file_scope)
+           {
+             /* For block local externs add a special
+                DECL_EXTERNAL decl for debug info generation.  */
+@@ -4261,7 +4261,7 @@
+       if (DECL_INITIAL (decl))
+       TREE_TYPE (DECL_INITIAL (decl)) = type;
+-      layout_decl (decl, 0);
++      relayout_decl (decl);
+     }
  
- #define ADDITIONAL_REGISTER_NAMES     \
- {                                     \
-@@ -616,8 +624,6 @@
- #define PRINT_OPERAND_ADDRESS(FILE, ADDR)     \
-   rx_print_operand_address (FILE, ADDR)
\f
--extern int rx_float_compare_mode;
--\f
- /* This is a version of REG_P that also returns TRUE for SUBREGs.  */
- #define RX_REG_P(rtl) (REG_P (rtl) || GET_CODE (rtl) == SUBREG)
-@@ -655,12 +661,5 @@
- #define REGISTER_MOVE_COST(MODE, FROM, TO)    2
- #define MEMORY_MOVE_COST(MODE, REGCLASS, IN) (2 + memory_move_secondary_cost (MODE, REGCLASS, IN))
-   
--#define SELECT_CC_MODE(OP,X,Y)                                                \
--  (GET_MODE_CLASS (GET_MODE (X)) == MODE_FLOAT ? CC_ZSmode :          \
--    (GET_CODE (X) == PLUS || GET_CODE (X) == MINUS ? CC_ZSCmode :     \
--    (GET_CODE (X) == ABS ? CC_ZSOmode :                                       \
--    (GET_CODE (X) == AND || GET_CODE (X) == NOT || GET_CODE (X) == IOR        \
--     || GET_CODE (X) == XOR || GET_CODE (X) == ROTATE                 \
--     || GET_CODE (X) == ROTATERT || GET_CODE (X) == ASHIFTRT          \
--     || GET_CODE (X) == LSHIFTRT || GET_CODE (X) == ASHIFT ? CC_ZSmode : \
--     CCmode))))
-+#define SELECT_CC_MODE(OP,X,Y)  rx_select_cc_mode ((OP), (X), (Y))
-+
-Index: gcc/config/rx/predicates.md
-===================================================================
---- gcc/config/rx/predicates.md        (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/config/rx/predicates.md        (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -1,5 +1,5 @@
- ;; Predicate definitions for Renesas RX.
--;; Copyright (C) 2008, 2009 Free Software Foundation, Inc.
-+;; Copyright (C) 2008, 2009, 2011 Free Software Foundation, Inc.
- ;; Contributed by Red Hat.
- ;;
- ;; This file is part of GCC.
-@@ -37,40 +37,29 @@
- ;; Only small integers or a value in a register are permitted.
- (define_predicate "rx_shift_operand"
--  (match_code "const_int,reg")
--  {
--    if (CONST_INT_P (op))
--      return IN_RANGE (INTVAL (op), 0, 31);
--    return true;
--  }
-+  (ior (match_operand 0 "register_operand")
-+       (and (match_code "const_int")
-+          (match_test "IN_RANGE (INTVAL (op), 0, 31)")))
- )
+   if (TREE_CODE (decl) == VAR_DECL)
+@@ -9782,6 +9782,9 @@
+     collect_source_ref (LOCATION_FILE (decl_sloc (decl, false)));
+ }
  
- (define_predicate "rx_constshift_operand"
--  (match_code "const_int")
--  {
--    return IN_RANGE (INTVAL (op), 0, 31);
--  }
-+  (and (match_code "const_int")
-+       (match_test "IN_RANGE (INTVAL (op), 0, 31)"))
- )
++/* Preserve the external declarations scope across a garbage collect.  */
++static GTY(()) tree ext_block;
++
+ /* Collect all references relevant to SOURCE_FILE.  */
  
-+(define_predicate "rx_restricted_mem_operand"
-+  (and (match_code "mem")
-+       (match_test "rx_is_restricted_memory_address (XEXP (op, 0), mode)"))
-+)
+ static void
+@@ -9792,6 +9795,8 @@
+   FOR_EACH_VEC_ELT (tree, all_translation_units, i, t)
+     collect_ada_nodes (BLOCK_VARS (DECL_INITIAL (t)), source_file);
 +
- ;; Check that the operand is suitable as the source operand
- ;; for a logic or arithmeitc instruction.  Registers, integers
- ;; and a restricted subset of memory addresses are allowed.
++  collect_ada_nodes (BLOCK_VARS (ext_block), source_file);
+ }
  
- (define_predicate "rx_source_operand"
--  (match_code "const_int,const_double,const,symbol_ref,label_ref,reg,mem")
--  {
--    if (CONSTANT_P (op))
--      return rx_is_legitimate_constant (op);
--
--    if (! MEM_P (op))
--      return true;
--      
--    /* Do not allow size conversions whilst accessing memory.  */
--    if (GET_MODE (op) != mode)
--      return false;
--
--    return rx_is_restricted_memory_address (XEXP (op, 0), mode);
--  }
-+  (ior (match_operand 0 "register_operand")
-+       (match_operand 0 "immediate_operand")
-+       (match_operand 0 "rx_restricted_mem_operand"))
- )
+ /* Iterate over all global declarations and call CALLBACK.  */
+@@ -9810,11 +9815,11 @@
+       for (decl = BLOCK_VARS (decls); decl; decl = TREE_CHAIN (decl))
+       callback (decl);
+     }
++
++  for (decl = BLOCK_VARS (ext_block); decl; decl = TREE_CHAIN (decl))
++    callback (decl);
+ }
  
- ;; Check that the operand is suitable as the source operand
-@@ -79,16 +68,8 @@
- ;; CONST_INTs are not.
- (define_predicate "rx_compare_operand"
--  (match_code "subreg,reg,mem")
--  {
--    if (GET_CODE (op) == SUBREG)
--      return REG_P (XEXP (op, 0));
--    
--    if (! MEM_P (op))
--      return true;
+-/* Preserve the external declarations scope across a garbage collect.  */
+-static GTY(()) tree ext_block;
 -
--    return rx_is_restricted_memory_address (XEXP (op, 0), mode);
--  }
-+  (ior (match_operand 0 "register_operand")
-+       (match_operand 0 "rx_restricted_mem_operand"))
- )
+ void
+ c_write_global_declarations (void)
+ {
+Index: gcc/fortran/interface.c
+===================================================================
+--- gcc/fortran/interface.c    (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/fortran/interface.c    (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -1535,7 +1535,7 @@
+       return 0;
+     }
+     
+-  /* F2003, 12.5.2.5.  */
++  /* F2008, 12.5.2.5.  */
+   if (formal->ts.type == BT_CLASS
+       && (CLASS_DATA (formal)->attr.class_pointer
+           || CLASS_DATA (formal)->attr.allocatable))
+@@ -1547,8 +1547,8 @@
+                       formal->name, &actual->where);
+         return 0;
+       }
+-      if (CLASS_DATA (actual)->ts.u.derived
+-        != CLASS_DATA (formal)->ts.u.derived)
++      if (!gfc_compare_derived_types (CLASS_DATA (actual)->ts.u.derived,
++                                    CLASS_DATA (formal)->ts.u.derived))
+       {
+         if (where)
+           gfc_error ("Actual argument to '%s' at %L must have the same "
+Index: gcc/fortran/trans-expr.c
+===================================================================
+--- gcc/fortran/trans-expr.c   (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/fortran/trans-expr.c   (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -3064,7 +3064,8 @@
+                         || (fsym->attr.proc_pointer
+                             && e->expr_type == EXPR_VARIABLE
+                             && gfc_is_proc_ptr_comp (e, NULL))
+-                        || fsym->attr.allocatable))
++                        || (fsym->attr.allocatable
++                            && fsym->attr.flavor != FL_PROCEDURE)))
+                   {
+                     /* Scalar pointer dummy args require an extra level of
+                        indirection. The null pointer already contains
+Index: gcc/fortran/trans-array.c
+===================================================================
+--- gcc/fortran/trans-array.c  (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/fortran/trans-array.c  (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -6772,8 +6772,17 @@
+                             gfc_array_index_type, cond,
+                             lbound, gfc_index_one_node);
+     }
+-  else if (expr->expr_type == EXPR_VARIABLE)
++
++  if (expr->expr_type == EXPR_FUNCTION)
+     {
++      /* A conversion function, so use the argument.  */
++      gcc_assert (expr->value.function.isym
++                && expr->value.function.isym->conversion);
++      expr = expr->value.function.actual->expr;
++    }
++
++  if (expr->expr_type == EXPR_VARIABLE)
++    {
+       tmp = TREE_TYPE (expr->symtree->n.sym->backend_decl);
+       for (ref = expr->ref; ref; ref = ref->next)
+       {
+@@ -6785,15 +6794,6 @@
+       }
+       return GFC_TYPE_ARRAY_LBOUND(tmp, dim);
+     }
+-  else if (expr->expr_type == EXPR_FUNCTION)
+-    {
+-      /* A conversion function, so use the argument.  */
+-      expr = expr->value.function.actual->expr;
+-      if (expr->expr_type != EXPR_VARIABLE)
+-      return gfc_index_one_node;
+-      desc = TREE_TYPE (expr->symtree->n.sym->backend_decl);
+-      return get_std_lbound (expr, desc, dim, assumed_size);
+-    }
  
- ;; Return true if OP is a store multiple operation.  This looks like:
-@@ -293,3 +274,24 @@
-   element = XVECEXP (op, 0, count - 1);
-   return GET_CODE (element) == RETURN;
- })
+   return gfc_index_one_node;
+ }
+Index: gcc/fortran/ChangeLog
+===================================================================
+--- gcc/fortran/ChangeLog      (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/fortran/ChangeLog      (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -1,3 +1,121 @@
++2012-01-28  Tobias Burnus  <burnus@net-b.de>
 +
-+(define_predicate "label_ref_operand"
-+  (match_code "label_ref")
-+)
++      PR fortran/52022
++      * trans-expr.c (gfc_conv_procedure_call): Fix passing
++      of functions, which return allocatables.
 +
-+(define_predicate "rx_z_comparison_operator"
-+  (match_code "eq,ne")
-+)
++2012-01-25  Tobias Burnus  <burnus@net-b.de>
 +
-+(define_predicate "rx_zs_comparison_operator"
-+  (match_code "eq,ne")
-+)
++      PR fortran/51966
++      * resolve.c (resolve_structure_cons): Only create an
++      array constructors for nonscalars.
 +
-+;; GT and LE omitted due to operand swap required.
-+(define_predicate "rx_fp_comparison_operator"
-+  (match_code "eq,ne,lt,ge,ordered,unordered")
-+)
++2012-01-24  Tobias Burnus  <burnus@net-b.de>
 +
-+(define_predicate "rshift_operator"
-+  (match_code "ashiftrt,lshiftrt")
-+)
-Index: gcc/config/rx/rx-protos.h
-===================================================================
---- gcc/config/rx/rx-protos.h  (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/config/rx/rx-protos.h  (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -1,5 +1,5 @@
- /* Exported function prototypes from the Renesas RX backend.
--   Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc.
-+   Copyright (C) 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
-    Contributed by Red Hat.
-    This file is part of GCC.
-@@ -35,15 +35,17 @@
- extern void             rx_emit_stack_popm (rtx *, bool);
- extern void             rx_emit_stack_pushm (rtx *);
- extern void           rx_expand_epilogue (bool);
--extern bool           rx_expand_insv (rtx *);
- extern const char *   rx_gen_cond_branch_template (rtx, bool);
- extern char *         rx_gen_move_template (rtx *, bool);
- extern bool           rx_is_legitimate_constant (rtx);
- extern bool           rx_is_mode_dependent_addr (rtx);
- extern bool           rx_is_restricted_memory_address (rtx, Mmode);
-+extern bool           rx_match_ccmode (rtx, Mmode);
- extern void           rx_notice_update_cc (rtx body, rtx insn);
- extern void           rx_print_operand (FILE *, rtx, int);
- extern void           rx_print_operand_address (FILE *, rtx);
-+extern Mmode          rx_select_cc_mode (enum rtx_code, rtx, rtx);
-+extern void           rx_split_cbranch (Mmode, enum rtx_code, rtx, rtx, rtx);
- #endif
++      PR fortran/51948
++      * check.c (variable_check): Fix checking for
++      result variables and deeply nested BLOCKs.
++
++2012-01-21  Tobias Burnus  <burnus@net-b.de>
++
++      PR fortran/51913
++      * interface.c (compare_parameter): Fix CLASS comparison.
++
++2012-01-19  Tobias Burnus  <burnus@net-b.de>
++
++      PR fortran/51904
++      *expr.c (gfc_build_intrinsic_call): Also set the symtree.
++
++2012-01-14  Tobias Burnus  <burnus@net-b.de>
++
++      Backported from mainline
++      2012-01-14  Tobias Burnus  <burnus@net-b.de>
++
++      PR fortran/51800
++      * resolve.c (build_default_init_expr): Also initialize
++      nonconstant-length strings with -finit-character=<n>.
++
++2012-01-01  Thomas König  <tkoenig@gcc.gnu.org>
++
++      Backport from trunk
++      PR fortran/51502
++      * expr.c (gfc_check_vardef_context):  When determining
++      implicit pure status, also check for variable definition
++      context.  Walk up namespaces until a procedure is
++      found to reset the implict pure attribute.
++      * resolve.c (gfc_implicit_pure):  Walk up namespaces
++      until a procedure is found.
++
++2011-12-22  Toon Moene  <toon@moene.org>
++
++      PR fortran/51310
++      * resolve.c (build_default_init_expr): Allow non-allocatable,
++      non-compile-time-constant-shape arrays to have a default
++      initializer.
++      * invoke.texi: Delete the restriction on automatic arrays not
++      being initialized by -finit-<type>=<constant>.
++
++2011-12-15  Tobias Burnus  <burnus@net-b.de>
++
++      PR fortran/51550
++      PR fortran/47545
++      PR fortran/49050
++      PR fortran/51075
++      * resolve.c (resolve_fl_derived0): Print not-implemented error
++      for deferred-length character components.
++
++2011-12-11  Tobias Burnus  <burnus@net-b.de>
++
++      PR fortran/50923
++      * trans-decl.c (generate_local_decl): Set TREE_NO_WARNING only
++      if the front end has printed a warning.
++      (gfc_generate_function_code): Fix unset-result warning.
++
++2011-12-11  Thomas Koenig  <tkoenig@gcc.gnu.org>
++
++      PR fortran/51338
++      Backport from trunk
++      * dependency.c (are_identical_variables):  Handle case where
++      end fields of substring references are NULL.
++
++2011-12-08  Toon Moene  <toon@moene.org>
++
++      PR fortran/51310
++      * invoke.texi: Itemize the cases for which
++      -finit-<type>=<constant> doesn't work.
++
++2011-12-08  Tobias Burnus  <burnus@net-b.de>
++
++      PR fortran/51448
++      * fortran/trans-array.c (get_std_lbound): Fix handling of
++      conversion functions.
++
++2011-12-06  Tobias Burnus  <burnus@net-b.de>
++
++      PR fortran/51435
++      * expr.c (gfc_has_default_initializer): Fix handling of
++      DT with initialized pointer components.
++
++2011-12-03  Tobias Burnus  <burnus@net-b.de>
++
++      PR fortran/50684
++      * check.c (variable_check): Fix intent(in) check.
++
++2011-11-25  Tobias Burnus  <burnus@net-b.de>
++
++      PR fortran/50408
++      * trans-decl.c (gfc_get_module_backend_decl): Also copy
++      ts.u.derived from the gsym if the ts.type is BT_CLASS.
++      (gfc_get_extern_function_decl): Copy also the backend_decl
++      for the symbol's ts.u.{derived,cl} from the gsym.
++      * trans-types.c (gfc_copy_dt_decls_ifequal): Directly
++      return if "from" and "to" are the same.
++
++2011-11-24  Tobias Burnus  <burnus@net-b.de>
++
++      PR fortran/51218
++      * gfortran.dg/implicit_pure_1.f90: New.
++
+ 2011-10-26  Release Manager
  
- #ifdef TREE_CODE
-Index: gcc/config/rx/rx.md
+       * GCC 4.6.2 released.
+Index: gcc/fortran/expr.c
 ===================================================================
---- gcc/config/rx/rx.md        (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/config/rx/rx.md        (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -1,5 +1,5 @@
- ;;  Machine Description for Renesas RX processors
--;;  Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc.
-+;;  Copyright (C) 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
- ;;  Contributed by Red Hat.
- ;; This file is part of GCC.
-@@ -19,14 +19,6 @@
- ;; <http://www.gnu.org/licenses/>.
\f
+--- gcc/fortran/expr.c (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/fortran/expr.c (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -3679,6 +3679,8 @@
+         if (!c->attr.pointer
+            && gfc_has_default_initializer (c->ts.u.derived))
+         return true;
++      if (c->attr.pointer && c->initializer)
++        return true;
+       }
+     else
+       {
+@@ -3689,6 +3691,7 @@
+   return false;
+ }
  
--;; This code iterator allows all branch instructions to
--;; be generated from a single define_expand template.
--(define_code_iterator most_cond [eq ne gt ge lt le gtu geu ltu leu
--                               unordered ordered ])
--
--;; Likewise, but only the ones that use Z or S.
--(define_code_iterator zs_cond [eq ne gtu geu ltu leu ])
--
- ;; This code iterator is used for sign- and zero- extensions.
- (define_mode_iterator small_int_modes [(HI "") (QI "")])
++
+ /* Get an expression for a default initializer.  */
  
-@@ -38,15 +30,6 @@
-   [(SF "ALLOW_RX_FPU_INSNS") (SI "") (HI "") (QI "")])
+ gfc_expr *
+@@ -4360,6 +4363,11 @@
+   result->value.function.name = name;
+   result->value.function.isym = isym;
  
++  result->symtree = gfc_find_symtree (gfc_current_ns->sym_root, name);
++  gcc_assert (result->symtree
++            && (result->symtree->n.sym->attr.flavor == FL_PROCEDURE
++                || result->symtree->n.sym->attr.flavor == FL_UNKNOWN));
++
+   va_start (ap, numarg);
+   atail = NULL;
+   for (i = 0; i < numarg; ++i)
+@@ -4520,9 +4528,24 @@
+       return FAILURE;
+     }
  
--;; Used to map RX condition names to GCC
--;; condition names for builtin instructions.
--(define_code_iterator gcc_conds [eq ne gt ge lt le gtu geu ltu leu
--                              unge unlt uneq ltgt])
--(define_code_attr rx_conds [(eq "eq") (ne "ne") (gt "gt") (ge "ge") (lt "lt")
--                          (le "le") (gtu "gtu") (geu "geu") (ltu "ltu")
--                          (leu "leu") (unge "pz") (unlt "n") (uneq "o")
--                          (ltgt "no")])
--
- (define_constants
-   [
-    (SP_REG 0)
-@@ -58,6 +41,7 @@
-    (UNSPEC_RTE             10)
-    (UNSPEC_RTFI            11)
-    (UNSPEC_NAKED           12)
-+   (UNSPEC_CONST           13)
-    
-    (UNSPEC_MOVSTR          20)
-    (UNSPEC_MOVMEM          21)
-@@ -150,6 +134,8 @@
- (define_insn_reservation "throughput_18_latency_18"  1
-   (eq_attr "timings" "1818") "throughput*18")
-+;; ----------------------------------------------------------------------------
-+
- ;; Comparisons
- ;; Note - we do not specify the two instructions necessary to perform
-@@ -160,254 +146,164 @@
- (define_expand "cbranchsi4"
-   [(set (pc)
--      (if_then_else (match_operator 0 "comparison_operator"
--                                    [(match_operand:SI 1 "register_operand")
--                                     (match_operand:SI 2 "rx_source_operand")])
--                    (label_ref (match_operand 3 ""))
--                    (pc)))
--   ]
-+      (if_then_else
-+        (match_operator 0 "comparison_operator"
-+          [(match_operand:SI 1 "register_operand")
-+           (match_operand:SI 2 "rx_source_operand")])
-+        (label_ref (match_operand 3 ""))
-+        (pc)))]
-   ""
--  ""
- )
+-  if (!pointer && gfc_implicit_pure (NULL) && gfc_impure_variable (sym))
+-    gfc_current_ns->proc_name->attr.implicit_pure = 0;
++  if (!pointer && context && gfc_implicit_pure (NULL)
++      && gfc_impure_variable (sym))
++    {
++      gfc_namespace *ns;
++      gfc_symbol *sym;
  
--(define_insn_and_split "*cbranchsi4_<code>"
-+(define_insn_and_split "*cbranchsi4"
-   [(set (pc)
--      (if_then_else (most_cond (match_operand:SI  0 "register_operand"  "r")
--                                  (match_operand:SI  1 "rx_source_operand" "riQ"))
--                    (label_ref (match_operand        2 "" ""))
--                    (pc)))
--   ]
-+      (if_then_else
-+        (match_operator 3 "comparison_operator"
-+          [(match_operand:SI  0 "register_operand"  "r")
-+           (match_operand:SI  1 "rx_source_operand" "riQ")])
-+        (match_operand        2 "label_ref_operand" "")
-+        (pc)))]
-   ""
-   "#"
-   "reload_completed"
-   [(const_int 0)]
--  "
--  /* We contstruct the split by hand as otherwise the JUMP_LABEL
--     attribute is not set correctly on the jump insn.  */
--  emit_insn (gen_cmpsi (operands[0], operands[1]));
--  
--  emit_jump_insn (gen_conditional_branch (operands[2],
--               gen_rtx_fmt_ee (<most_cond:CODE>, CCmode,
--                               gen_rtx_REG (CCmode, CC_REG), const0_rtx)));
--  "
-+{
-+  rx_split_cbranch (CCmode, GET_CODE (operands[3]),
-+                  operands[0], operands[1], operands[2]);
-+  DONE;
-+})
++      for (ns = gfc_current_ns; ns; ns = ns->parent)
++      {
++        sym = ns->proc_name;
++        if (sym == NULL)
++          break;
++        if (sym->attr.flavor == FL_PROCEDURE)
++          {
++            sym->attr.implicit_pure = 0;
++            break;
++          }
++      }
++    }
+   /* Check variable definition context for associate-names.  */
+   if (!pointer && sym->assoc)
+     {
+Index: gcc/fortran/invoke.texi
+===================================================================
+--- gcc/fortran/invoke.texi    (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/fortran/invoke.texi    (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -1438,10 +1438,16 @@
+ the real and imaginary parts of local @code{COMPLEX} variables),
+ @option{-finit-logical=@var{<true|false>}}, and
+ @option{-finit-character=@var{n}} (where @var{n} is an ASCII character
+-value) options.  These options do not initialize components of derived
+-type variables, nor do they initialize variables that appear in an
+-@code{EQUIVALENCE} statement.  (This limitation may be removed in
+-future releases).
++value) options.  These options do not initialize
++@itemize @bullet
++@item
++allocatable arrays
++@item
++components of derived type variables
++@item
++variables that appear in an @code{EQUIVALENCE} statement.
++@end itemize
++(These limitations may be removed in future releases).
+ Note that the @option{-finit-real=nan} option initializes @code{REAL}
+ and @code{COMPLEX} variables with a quiet NaN. For a signalling NaN
+Index: gcc/fortran/trans-types.c
+===================================================================
+--- gcc/fortran/trans-types.c  (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/fortran/trans-types.c  (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -2092,6 +2092,9 @@
+   gfc_component *to_cm;
+   gfc_component *from_cm;
++  if (from == to)
++    return 1;
 +
-+(define_insn "*cmpsi"
-+  [(set (reg:CC CC_REG)
-+      (compare:CC (match_operand:SI 0 "register_operand"  "r,r,r,r,r,r,r")
-+                  (match_operand:SI 1 "rx_source_operand" "r,Uint04,Int08,Sint16,Sint24,i,Q")))]
-+  "reload_completed"
-+  "cmp\t%Q1, %0"
-+  [(set_attr "timings" "11,11,11,11,11,11,33")
-+   (set_attr "length"  "2,2,3,4,5,6,5")]
- )
+   if (from->backend_decl == NULL
+       || !gfc_compare_derived_types (from, to))
+     return 0;
+Index: gcc/fortran/resolve.c
+===================================================================
+--- gcc/fortran/resolve.c      (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/fortran/resolve.c      (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -1053,6 +1053,7 @@
+         && comp->ts.u.cl->length->expr_type == EXPR_CONSTANT
+         && cons->expr->ts.u.cl && cons->expr->ts.u.cl->length
+         && cons->expr->ts.u.cl->length->expr_type == EXPR_CONSTANT
++        && cons->expr->rank != 0
+         && mpz_cmp (cons->expr->ts.u.cl->length->value.integer,
+                     comp->ts.u.cl->length->value.integer) != 0)
+       {
+@@ -3132,11 +3133,11 @@
+                    "procedure within a PURE procedure", name, &expr->where);
+         t = FAILURE;
+       }
++
++      if (gfc_implicit_pure (NULL))
++      gfc_current_ns->proc_name->attr.implicit_pure = 0;
+     }
  
--;; -----------------------------------------------------------------------------
--;; These two are the canonical TST/branch insns.  However, GCC
--;; generates a wide variety of tst-like patterns, we catch those
--;; below.
--(define_insn_and_split "*tstbranchsi4_<code>"
-+;; Canonical method for representing TST.
-+(define_insn_and_split "*cbranchsi4_tst"
-   [(set (pc)
--      (if_then_else (zs_cond (and:SI (match_operand:SI  0 "register_operand"  "r")
--                                     (match_operand:SI  1 "rx_source_operand" "riQ"))
--                             (const_int 0))
--                    (label_ref (match_operand 2 "" ""))
--                    (pc)))
--   ]
-+      (if_then_else
-+        (match_operator 3 "rx_zs_comparison_operator"
-+          [(and:SI (match_operand:SI  0 "register_operand"  "r")
-+                   (match_operand:SI  1 "rx_source_operand" "riQ"))
-+           (const_int 0)])
-+        (match_operand 2 "label_ref_operand" "")
-+        (pc)))]
-   ""
-   "#"
-   "reload_completed"
-   [(const_int 0)]
--  "
--  emit_insn (gen_tstsi (operands[0], operands[1]));
--  
--  emit_jump_insn (gen_conditional_branch (operands[2],
--               gen_rtx_fmt_ee (<zs_cond:CODE>, CCmode,
--                               gen_rtx_REG (CCmode, CC_REG), const0_rtx)));
--  "
--)
-+{
-+  rx_split_cbranch (CC_ZSmode, GET_CODE (operands[3]),
-+                  XEXP (operands[3], 0), XEXP (operands[3], 1),
-+                  operands[2]);
-+  DONE;
-+})
+-  if (!pure_function (expr, &name) && name && gfc_implicit_pure (NULL))
+-    gfc_current_ns->proc_name->attr.implicit_pure = 0;
+-
+   /* Functions without the RECURSIVE attribution are not allowed to
+    * call themselves.  */
+   if (expr->value.function.esym && !expr->value.function.esym->attr.recursive)
+@@ -3195,6 +3196,9 @@
+   else if (gfc_pure (NULL))
+     gfc_error ("Subroutine call to '%s' at %L is not PURE", sym->name,
+              &c->loc);
++
++  if (gfc_implicit_pure (NULL))
++    gfc_current_ns->proc_name->attr.implicit_pure = 0;
+ }
  
--;; Inverse of above
--(define_insn_and_split "*tstbranchsi4_<code>"
-+;; Various other ways that GCC codes "var & const"
-+(define_insn_and_split "*cbranchsi4_tst_ext"
-   [(set (pc)
--      (if_then_else (zs_cond (and:SI (match_operand:SI  0 "register_operand"  "r")
--                                     (match_operand:SI  1 "rx_source_operand" "riQ"))
--                             (const_int 0))
--                    (pc)
--                    (label_ref (match_operand 2 "" ""))))
--   ]
-+      (if_then_else
-+        (match_operator 4 "rx_z_comparison_operator"
-+          [(zero_extract:SI
-+              (match_operand:SI 0 "register_operand" "r")
-+              (match_operand:SI 1 "rx_constshift_operand" "")
-+              (match_operand:SI 2 "rx_constshift_operand" ""))
-+           (const_int 0)])
-+        (match_operand 3 "label_ref_operand" "")
-+        (pc)))]
-   ""
-   "#"
-   "reload_completed"
-   [(const_int 0)]
--  "
--  emit_insn (gen_tstsi (operands[0], operands[1]));
--  
--  emit_jump_insn (gen_conditional_branch (operands[2],
--               gen_rtx_fmt_ee (reverse_condition (<zs_cond:CODE>), CCmode,
--                               gen_rtx_REG (CCmode, CC_REG), const0_rtx)));
--  "
--)
-+{
-+  HOST_WIDE_INT mask;
-+  rtx x;
--;; Various other ways that GCC codes "var & const"
-+  mask = 1;
-+  mask <<= INTVAL (operands[1]);
-+  mask -= 1;
-+  mask <<= INTVAL (operands[2]);
-+  x = gen_rtx_AND (SImode, operands[0], gen_int_mode (mask, SImode));
--(define_insn_and_split "*tstbranchsi4m_eq"
--  [(set (pc)
--      (if_then_else (eq (zero_extract:SI (match_operand:SI  0 "register_operand"  "r")
--                                         (match_operand  1 "rx_constshift_operand" "i")
--                                         (match_operand  2 "rx_constshift_operand" "i"))
--                        (const_int 0))
--                    (label_ref (match_operand        3 "" ""))
--                    (pc)))
--   ]
--  ""
--  "#"
--  ""
--  [(set (pc)
--      (if_then_else (eq (and:SI (match_dup  0)
--                                (match_dup 4))
--                        (const_int 0))
--                    (label_ref (match_dup 3))
--                    (pc)))
--   ]
--  "operands[4] = GEN_INT (((1 << INTVAL (operands[1]))-1) << INTVAL (operands[2]));"
--)
-+  rx_split_cbranch (CC_ZSmode, GET_CODE (operands[4]),
-+                  x, const0_rtx, operands[3]);
-+  DONE;
-+})
  
--(define_insn_and_split "*tstbranchsi4m_ne"
--  [(set (pc)
--      (if_then_else (ne (zero_extract:SI (match_operand:SI  0 "register_operand"  "r")
--                                         (match_operand  1 "rx_constshift_operand" "i")
--                                         (match_operand  2 "rx_constshift_operand" "i"))
--                        (const_int 0))
--                    (label_ref (match_operand        3 "" ""))
--                    (pc)))
--   ]
--  ""
--  "#"
--  ""
--  [(set (pc)
--      (if_then_else (ne (and:SI (match_dup  0)
--                                (match_dup 4))
--                        (const_int 0))
--                    (label_ref (match_dup 3))
--                    (pc)))
--   ]
--  "operands[4] = GEN_INT (((1 << INTVAL (operands[1]))-1) << INTVAL (operands[2]));"
-+(define_insn "*tstsi"
-+  [(set (reg:CC_ZS CC_REG)
-+      (compare:CC_ZS
-+        (and:SI (match_operand:SI 0 "register_operand"  "r,r,r")
-+                (match_operand:SI 1 "rx_source_operand" "r,i,Q"))
-+        (const_int 0)))]
-+  "reload_completed"
-+  "tst\t%Q1, %0"
-+  [(set_attr "timings" "11,11,33")
-+   (set_attr "length"  "3,7,6")]
- )
+@@ -9687,7 +9691,7 @@
+   int i;
+   /* These symbols should never have a default initialization.  */
+-  if ((sym->attr.dimension && !gfc_is_compile_time_shape (sym->as))
++  if (sym->attr.allocatable
+       || sym->attr.external
+       || sym->attr.dummy
+       || sym->attr.pointer
+@@ -9811,6 +9815,26 @@
+         gfc_free_expr (init_expr);
+         init_expr = NULL;
+       }
++      if (!init_expr && gfc_option.flag_init_character == GFC_INIT_CHARACTER_ON
++        && sym->ts.u.cl->length)
++      {
++        gfc_actual_arglist *arg;
++        init_expr = gfc_get_expr ();
++        init_expr->where = sym->declared_at;
++        init_expr->ts = sym->ts;
++        init_expr->expr_type = EXPR_FUNCTION;
++        init_expr->value.function.isym =
++              gfc_intrinsic_function_by_id (GFC_ISYM_REPEAT);
++        init_expr->value.function.name = "repeat";
++        arg = gfc_get_actual_arglist ();
++        arg->expr = gfc_get_character_expr (sym->ts.kind, &sym->declared_at,
++                                            NULL, 1);
++        arg->expr->value.character.string[0]
++              = gfc_option.flag_init_character_value;
++        arg->next = gfc_get_actual_arglist ();
++        arg->next->expr = gfc_copy_expr (sym->ts.u.cl->length);
++        init_expr->value.function.actual = arg;
++      }
+       break;
+         
+     default:
+@@ -9837,10 +9861,12 @@
+   if (init == NULL)
+     return;
  
--;; -----------------------------------------------------------------------------
--
- (define_expand "cbranchsf4"
-   [(set (pc)
--      (if_then_else (match_operator 0 "comparison_operator"
--                                    [(match_operand:SF 1 "register_operand")
--                                     (match_operand:SF 2 "rx_source_operand")])
--                    (label_ref (match_operand 3 ""))
--                    (pc)))
--   ]
-+      (if_then_else
-+        (match_operator 0 "rx_fp_comparison_operator"
-+          [(match_operand:SF 1 "register_operand")
-+           (match_operand:SF 2 "rx_source_operand")])
-+        (label_ref (match_operand 3 ""))
-+        (pc)))]
-   "ALLOW_RX_FPU_INSNS"
--  ""
- )
+-  /* For saved variables, we don't want to add an initializer at 
+-     function entry, so we just add a static initializer.  */
++  /* For saved variables, we don't want to add an initializer at function
++     entry, so we just add a static initializer. Note that automatic variables
++     are stack allocated even with -fno-automatic.  */
+   if (sym->attr.save || sym->ns->save_all 
+-      || gfc_option.flag_max_stack_var_size == 0)
++      || (gfc_option.flag_max_stack_var_size == 0
++        && (!sym->attr.dimension || !is_non_constant_shape_array (sym))))
+     {
+       /* Don't clobber an existing initializer!  */
+       gcc_assert (sym->value == NULL);
+@@ -11394,6 +11420,14 @@
  
--(define_insn_and_split "*cbranchsf4_<code>"
-+(define_insn_and_split "*cbranchsf4"
-   [(set (pc)
--      (if_then_else (most_cond (match_operand:SF  0 "register_operand"  "r")
--                               (match_operand:SF  1 "rx_source_operand" "rFiQ"))
--                    (label_ref (match_operand        2 "" ""))
--                    (pc)))
--   ]
-+      (if_then_else
-+        (match_operator 3 "rx_fp_comparison_operator"
-+          [(match_operand:SF  0 "register_operand"  "r")
-+           (match_operand:SF  1 "rx_source_operand" "rFQ")])
-+        (match_operand        2 "label_ref_operand" "")
-+        (pc)))]
-   "ALLOW_RX_FPU_INSNS"
-   "#"
-   "&& reload_completed"
-   [(const_int 0)]
--  "
--  /* We contstruct the split by hand as otherwise the JUMP_LABEL
--     attribute is not set correctly on the jump insn.  */
--  emit_insn (gen_cmpsf (operands[0], operands[1]));
--  
--  emit_jump_insn (gen_conditional_branch (operands[2],
--               gen_rtx_fmt_ee (<most_cond:CODE>, CCmode,
--                               gen_rtx_REG (CCmode, CC_REG), const0_rtx)));
--  "
--)
-+{
-+  rx_split_cbranch (CC_Fmode, GET_CODE (operands[3]),
-+                  operands[0], operands[1], operands[2]);
-+  DONE;
-+})
+   for (c = sym->components; c != NULL; c = c->next)
+     {
++      /* See PRs 51550, 47545, 48654, 49050, 51075 - and 45170.  */
++      if (c->ts.type == BT_CHARACTER && c->ts.deferred)
++      {
++        gfc_error ("Deferred-length character component '%s' at %L is not "
++                   "yet supported", c->name, &c->loc);
++        return FAILURE;
++      }
++
+       /* F2008, C442.  */
+       if (c->attr.codimension /* FIXME: c->as check due to PR 43412.  */
+         && (!c->attr.allocatable || (c->as && c->as->type != AS_DEFERRED)))
+@@ -12925,24 +12959,25 @@
+ int
+ gfc_implicit_pure (gfc_symbol *sym)
+ {
+-  symbol_attribute attr;
++  gfc_namespace *ns;
  
--(define_insn "tstsi"
--  [(set (reg:CC_ZS CC_REG)
--      (compare:CC_ZS (and:SI (match_operand:SI 0 "register_operand"  "r,r,r")
--                             (match_operand:SI 1 "rx_source_operand" "r,i,Q"))
--                     (const_int 0)))]
--  ""
--  {
--    rx_float_compare_mode = false;
--    return "tst\t%Q1, %0";
--  }
-+(define_insn "*cmpsf"
-+  [(set (reg:CC_F CC_REG)
-+      (compare:CC_F
-+        (match_operand:SF 0 "register_operand"  "r,r,r")
-+        (match_operand:SF 1 "rx_source_operand" "r,F,Q")))]
-+  "ALLOW_RX_FPU_INSNS && reload_completed"
-+  "fcmp\t%1, %0"
-   [(set_attr "timings" "11,11,33")
--   (set_attr "length"   "3,7,6")]
--)
+   if (sym == NULL)
+     {
+-      /* Check if the current namespace is implicit_pure.  */
+-      sym = gfc_current_ns->proc_name;
+-      if (sym == NULL)
+-      return 0;
+-      attr = sym->attr;
+-      if (attr.flavor == FL_PROCEDURE
+-          && attr.implicit_pure && !attr.pure)
+-      return 1;
+-      return 0;
++      /* Check if the current procedure is implicit_pure.  Walk up
++       the procedure list until we find a procedure.  */
++      for (ns = gfc_current_ns; ns; ns = ns->parent)
++      {
++        sym = ns->proc_name;
++        if (sym == NULL)
++          return 0;
++        
++        if (sym->attr.flavor == FL_PROCEDURE)
++          break;
++      }
+     }
 -
--(define_insn "cmpsi"
--  [(set (reg:CC CC_REG)
--      (compare:CC (match_operand:SI 0 "register_operand"  "r,r,r,r,r,r,r")
--                  (match_operand:SI 1 "rx_source_operand" "r,Uint04,Int08,Sint16,Sint24,i,Q")))]
--  ""
--  {
--    rx_float_compare_mode = false;
--    if (rx_compare_redundant (insn))
--      return "; Compare Eliminated: cmp %Q1, %0";
--    return "cmp\t%Q1, %0";
--  }
--  [(set_attr "timings" "11,11,11,11,11,11,33")
--   (set_attr "length"  "2,2,3,4,5,6,5")]
--)
+-  attr = sym->attr;
 -
--;; This pattern is disabled when -fnon-call-exceptions is active because
--;; it could generate a floating point exception, which would introduce an
--;; edge into the flow graph between this insn and the conditional branch
--;; insn to follow, thus breaking the cc0 relationship.  Run the g++ test
--;; g++.dg/eh/080514-1.C to see this happen.
--(define_insn "cmpsf"
--  [(set (reg:CC_ZSO CC_REG)
--      (compare:CC_ZSO (match_operand:SF 0 "register_operand"  "r,r,r")
--                      (match_operand:SF 1 "rx_source_operand" "r,iF,Q")))]
--  "ALLOW_RX_FPU_INSNS"
--  {
--    rx_float_compare_mode = true;
--    return "fcmp\t%1, %0";
--  }
--  [(set_attr "timings" "11,11,33")
-    (set_attr "length" "3,7,5")]
- )
+-  return attr.flavor == FL_PROCEDURE && attr.implicit_pure && !attr.pure;
++  
++  return sym->attr.flavor == FL_PROCEDURE && sym->attr.implicit_pure
++    && !sym->attr.pure;
+ }
  
- ;; Flow Control Instructions:
  
--(define_expand "b<code>"
-+(define_insn "*conditional_branch"
-   [(set (pc)
--        (if_then_else (most_cond (reg:CC CC_REG) (const_int 0))
--                      (label_ref (match_operand 0))
--                      (pc)))]
--  ""
--  ""
--)
--
--(define_insn "conditional_branch"
--  [(set (pc)
--      (if_then_else (match_operator           1 "comparison_operator"
--                                              [(reg:CC CC_REG) (const_int 0)])
--                    (label_ref (match_operand 0 "" ""))
--                    (pc)))]
--  ""
--  {
--    return rx_gen_cond_branch_template (operands[1], false);
--  }
-+      (if_then_else
-+        (match_operator 1 "comparison_operator"
-+          [(reg CC_REG) (const_int 0)])
-+        (label_ref (match_operand 0 "" ""))
-+        (pc)))]
-+  "reload_completed"
-+  "b%B1\t%0"
-   [(set_attr "length" "8")    ;; This length is wrong, but it is
-                               ;; too hard to compute statically.
-    (set_attr "timings" "33")] ;; The timing assumes that the branch is taken.
- )
+Index: gcc/fortran/trans-decl.c
+===================================================================
+--- gcc/fortran/trans-decl.c   (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/fortran/trans-decl.c   (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -677,7 +677,7 @@
+       }
+       else if (s->backend_decl)
+       {
+-        if (sym->ts.type == BT_DERIVED)
++        if (sym->ts.type == BT_DERIVED || sym->ts.type == BT_CLASS)
+           gfc_copy_dt_decls_ifequal (s->ts.u.derived, sym->ts.u.derived,
+                                      true);
+         else if (sym->ts.type == BT_CHARACTER)
+@@ -1602,6 +1602,11 @@
+       gfc_find_symbol (sym->name, gsym->ns, 0, &s);
+       if (s && s->backend_decl)
+       {
++        if (sym->ts.type == BT_DERIVED || sym->ts.type == BT_CLASS)
++          gfc_copy_dt_decls_ifequal (s->ts.u.derived, sym->ts.u.derived,
++                                     true);
++        else if (sym->ts.type == BT_CHARACTER)
++          sym->ts.u.cl->backend_decl = s->ts.u.cl->backend_decl;
+         sym->backend_decl = s->backend_decl;
+         return sym->backend_decl;
+       }
+@@ -4179,10 +4184,16 @@
+                            "declared INTENT(OUT) but was not set and "
+                            "does not have a default initializer",
+                            sym->name, &sym->declared_at);
++            if (sym->backend_decl != NULL_TREE)
++              TREE_NO_WARNING(sym->backend_decl) = 1;
+           }
+         else if (gfc_option.warn_unused_dummy_argument)
+-          gfc_warning ("Unused dummy argument '%s' at %L", sym->name,
++          {
++            gfc_warning ("Unused dummy argument '%s' at %L", sym->name,
+                        &sym->declared_at);
++            if (sym->backend_decl != NULL_TREE)
++              TREE_NO_WARNING(sym->backend_decl) = 1;
++          }
+       }
  
--(define_insn "*reveresed_conditional_branch"
--  [(set (pc)
--      (if_then_else (match_operator 1 "comparison_operator"
--                                    [(reg:CC CC_REG) (const_int 0)])
--                    (pc)
--                    (label_ref (match_operand 0 "" ""))))]
--  ""
--  {
--    return rx_gen_cond_branch_template (operands[1], true);
--  }
--  [(set_attr "length" "8")    ;; This length is wrong, but it is
--                              ;; too hard to compute statically.
--   (set_attr "timings" "33")] ;; The timing assumes that the branch is taken.
--)
-+;; ----------------------------------------------------------------------------
- (define_insn "jump"
-   [(set (pc)
-@@ -448,10 +344,12 @@
-    (set_attr "timings" "55")]
- )
+       /* Warn for unused variables, but not if they're inside a common
+@@ -4227,11 +4238,6 @@
+       mark the symbol now, as well as in traverse_ns, to prevent
+       getting stuck in a circular dependency.  */
+       sym->mark = 1;
+-
+-      /* We do not want the middle-end to warn about unused parameters
+-         as this was already done above.  */
+-      if (sym->attr.dummy && sym->backend_decl != NULL_TREE)
+-        TREE_NO_WARNING(sym->backend_decl) = 1;
+     }
+   else if (sym->attr.flavor == FL_PARAMETER)
+     {
+@@ -4846,11 +4852,11 @@
+       if (result == NULL_TREE)
+       {
+         /* TODO: move to the appropriate place in resolve.c.  */
+-        if (warn_return_type && !sym->attr.referenced && sym == sym->result)
++        if (warn_return_type && sym == sym->result)
+           gfc_warning ("Return value of function '%s' at %L not set",
+                        sym->name, &sym->declared_at);
+-
+-        TREE_NO_WARNING(sym->backend_decl) = 1;
++        if (warn_return_type)
++          TREE_NO_WARNING(sym->backend_decl) = 1;
+       }
+       else
+       gfc_add_expr_to_block (&body, gfc_generate_return ());
+Index: gcc/fortran/check.c
+===================================================================
+--- gcc/fortran/check.c        (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/fortran/check.c        (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -485,23 +485,47 @@
+       && (gfc_current_intrinsic_arg[n]->intent == INTENT_OUT
+         || gfc_current_intrinsic_arg[n]->intent == INTENT_INOUT))
+     {
+-      gfc_error ("'%s' argument of '%s' intrinsic at %L cannot be INTENT(IN)",
+-               gfc_current_intrinsic_arg[n]->name, gfc_current_intrinsic,
+-               &e->where);
+-      return FAILURE;
++      gfc_ref *ref;
++      bool pointer = e->symtree->n.sym->ts.type == BT_CLASS
++                   && CLASS_DATA (e->symtree->n.sym)
++                   ? CLASS_DATA (e->symtree->n.sym)->attr.class_pointer
++                   : e->symtree->n.sym->attr.pointer;
++
++      for (ref = e->ref; ref; ref = ref->next)
++      {
++        if (pointer && ref->type == REF_COMPONENT)
++          break;
++        if (ref->type == REF_COMPONENT
++            && ((ref->u.c.component->ts.type == BT_CLASS
++                 && CLASS_DATA (ref->u.c.component)->attr.class_pointer)
++                || (ref->u.c.component->ts.type != BT_CLASS
++                    && ref->u.c.component->attr.pointer)))
++          break;
++      } 
++
++      if (!ref)
++      {
++        gfc_error ("'%s' argument of '%s' intrinsic at %L cannot be "
++                   "INTENT(IN)", gfc_current_intrinsic_arg[n]->name,
++                   gfc_current_intrinsic, &e->where);
++        return FAILURE;
++      }
+     }
  
-+;; Unspec used so that the constant will not be invalid
-+;; if -mmax-constant-size has been specified.
- (define_insn "deallocate_and_return"
-   [(set (reg:SI SP_REG)
-       (plus:SI (reg:SI SP_REG)
--               (match_operand:SI 0 "immediate_operand" "i")))
-+               (const:SI (unspec:SI [(match_operand 0 "const_int_operand" "n")] UNSPEC_CONST))))
-    (return)]
-   ""
-   "rtsd\t%0"
-@@ -461,9 +359,10 @@
- (define_insn "pop_and_return"
-   [(match_parallel 1 "rx_rtsd_vector"
--                 [(set:SI (reg:SI SP_REG)
--                          (plus:SI (reg:SI SP_REG)
--                                   (match_operand:SI 0 "const_int_operand" "n")))])]
-+     [(set (reg:SI SP_REG)
-+         (plus:SI (reg:SI SP_REG)
-+                  (match_operand:SI 0 "const_int_operand" "n")))])
-+   (return)]
-   "reload_completed"
-   {
-     rx_emit_stack_popm (operands, false);
-@@ -513,14 +412,14 @@
-     if (! rx_call_operand (dest, Pmode))
-       dest = force_reg (Pmode, dest);
--    emit_call_insn (gen_call_internal (dest, operands[1]));
-+    emit_call_insn (gen_call_internal (dest));
-     DONE;
-   }
- )
+   if (e->expr_type == EXPR_VARIABLE
+       && e->symtree->n.sym->attr.flavor != FL_PARAMETER
+-      && (allow_proc
+-        || !e->symtree->n.sym->attr.function
+-        || (e->symtree->n.sym == e->symtree->n.sym->result
+-            && (e->symtree->n.sym == gfc_current_ns->proc_name
+-                || (gfc_current_ns->parent
+-                    && e->symtree->n.sym
+-                       == gfc_current_ns->parent->proc_name)))))
++      && (allow_proc || !e->symtree->n.sym->attr.function))
+     return SUCCESS;
++  if (e->expr_type == EXPR_VARIABLE && e->symtree->n.sym->attr.function
++      && e->symtree->n.sym == e->symtree->n.sym->result)
++    {
++      gfc_namespace *ns;
++      for (ns = gfc_current_ns; ns; ns = ns->parent)
++      if (ns->proc_name == e->symtree->n.sym)
++        return SUCCESS;
++    }
++
+   gfc_error ("'%s' argument of '%s' intrinsic at %L must be a variable",
+            gfc_current_intrinsic_arg[n]->name, gfc_current_intrinsic, &e->where);
  
- (define_insn "call_internal"
-   [(call (mem:QI (match_operand:SI 0 "rx_call_operand" "r,Symbol"))
--       (match_operand:SI         1 "general_operand" "g,g"))
-+       (const_int 0))
-    (clobber (reg:CC CC_REG))]
-   ""
-   "@
-@@ -540,7 +439,7 @@
-     if (! rx_call_operand (dest, Pmode))
-       dest = force_reg (Pmode, dest);
--    emit_call_insn (gen_call_value_internal (operands[0], dest, operands[2]));
-+    emit_call_insn (gen_call_value_internal (operands[0], dest));
-     DONE;
-   }
- )
-@@ -548,7 +447,7 @@
- (define_insn "call_value_internal"
-   [(set (match_operand                  0 "register_operand" "=r,r")
-       (call (mem:QI (match_operand:SI 1 "rx_call_operand"   "r,Symbol"))
--            (match_operand:SI         2 "general_operand"   "g,g")))
-+            (const_int 0)))
-    (clobber (reg:CC CC_REG))]
-   ""
-   "@
-@@ -572,12 +471,14 @@
-   {
-     if (MEM_P (operands[0]))
-       operands[0] = XEXP (operands[0], 0);
-+    emit_call_insn (gen_sibcall_internal (operands[0]));
-+    DONE;
-   }
- )
+Index: gcc/fortran/dependency.c
+===================================================================
+--- gcc/fortran/dependency.c   (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/fortran/dependency.c   (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -163,9 +163,19 @@
+         break;
  
- (define_insn "sibcall_internal"
-   [(call (mem:QI (match_operand:SI 0 "rx_symbolic_call_operand" "Symbol"))
--       (match_operand:SI         1 "general_operand"          "g"))
-+       (const_int 0))
-    (return)]
-   ""
-   "bra\t%A0"
-@@ -595,13 +496,15 @@
-   {
-     if (MEM_P (operands[1]))
-       operands[1] = XEXP (operands[1], 0);
-+    emit_call_insn (gen_sibcall_value_internal (operands[0], operands[1]));
-+    DONE;
-   }
- )
+       case REF_SUBSTRING:
+-        if (gfc_dep_compare_expr (r1->u.ss.start, r2->u.ss.start) != 0
+-            || gfc_dep_compare_expr (r1->u.ss.end, r2->u.ss.end) != 0)
++        if (gfc_dep_compare_expr (r1->u.ss.start, r2->u.ss.start) != 0)
+           return false;
++
++        /* If both are NULL, the end length compares equal, because we
++           are looking at the same variable. This can only happen for
++           assumed- or deferred-length character arguments.  */ 
++
++        if (r1->u.ss.end == NULL && r2->u.ss.end == NULL)
++          break;
++
++        if (gfc_dep_compare_expr (r1->u.ss.end, r2->u.ss.end) != 0)
++          return false;
++        
+         break;
  
- (define_insn "sibcall_value_internal"
-  [(set (match_operand                  0 "register_operand"         "=r")
-        (call (mem:QI (match_operand:SI 1 "rx_symbolic_call_operand" "Symbol"))
--           (match_operand:SI         2 "general_operand"          "g")))
-+           (const_int 0)))
-   (return)]
-   ""
-   "bra\t%A1"
-@@ -653,6 +556,9 @@
-   {
-     if (MEM_P (operand0) && MEM_P (operand1))
-       operands[1] = copy_to_mode_reg (<register_modes:MODE>mode, operand1);
-+    if (CONST_INT_P (operand1)
-+        && ! rx_is_legitimate_constant (operand1))
-+      FAIL;
-   }
- )
+       default:
+Index: gcc/regmove.c
+===================================================================
+--- gcc/regmove.c      (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/regmove.c      (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -860,7 +860,7 @@
+         if (REG_N_CALLS_CROSSED (REGNO (src)) == 0)
+           break;
  
-@@ -688,11 +594,11 @@
- )
+-        if (call_used_regs [REGNO (dst)]
++        if ((HARD_REGISTER_P (dst) && call_used_regs [REGNO (dst)])
+             || find_reg_fusage (p, CLOBBER, dst))
+           break;
+       }
+Index: gcc/configure.ac
+===================================================================
+--- gcc/configure.ac   (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/configure.ac   (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -807,17 +807,7 @@
+ gcc_AC_PROG_LN_S
+ ACX_PROG_LN($LN_S)
+ AC_PROG_RANLIB
+-case "${host}" in
+-*-*-darwin*)
+-  # By default, the Darwin ranlib will not treat common symbols as
+-  # definitions when  building the archive table of contents.  Other 
+-  # ranlibs do that; pass an option to the Darwin ranlib that makes
+-  # it behave similarly.
+-  ranlib_flags="-c" 
+-  ;;
+-*)
+-  ranlib_flags=""
+-esac
++ranlib_flags=""
+ AC_SUBST(ranlib_flags)
+      
+ gcc_AC_PROG_INSTALL
+Index: gcc/BASE-VER
+===================================================================
+--- gcc/BASE-VER       (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/BASE-VER       (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -1 +1 @@
+-4.6.2
++4.6.3
+Index: gcc/df.h
+===================================================================
+--- gcc/df.h   (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/df.h   (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -53,7 +53,7 @@
+ #define DF_RD      3      /* Reaching Defs. */
+ #define DF_CHAIN   4      /* Def-Use and/or Use-Def Chains. */
+ #define DF_WORD_LR 5      /* Subreg tracking lr.  */
+-#define DF_NOTE    6      /* REG_DEF and REG_UNUSED notes. */
++#define DF_NOTE    6      /* REG_DEAD and REG_UNUSED notes.  */
+ #define DF_MD      7      /* Multiple Definitions. */
  
- (define_insn "stack_push"
--  [(set:SI (reg:SI SP_REG)
--         (minus:SI (reg:SI SP_REG)
--                   (const_int 4)))
--   (set:SI (mem:SI (reg:SI SP_REG))
--         (match_operand:SI 0 "register_operand" "r"))]
-+  [(set (reg:SI SP_REG)
-+      (minus:SI (reg:SI SP_REG)
-+                (const_int 4)))
-+   (set (mem:SI (reg:SI SP_REG))
-+      (match_operand:SI 0 "register_operand" "r"))]
-   ""
-   "push.l\t%0"
-   [(set_attr "length" "2")]
-@@ -700,9 +606,9 @@
- (define_insn "stack_pushm"
-   [(match_parallel 1 "rx_store_multiple_vector"
--                 [(set:SI (reg:SI SP_REG)
--                          (minus:SI (reg:SI SP_REG)
--                                    (match_operand:SI 0 "const_int_operand" "n")))])]
-+     [(set (reg:SI SP_REG)
-+         (minus:SI (reg:SI SP_REG)
-+                   (match_operand:SI 0 "const_int_operand" "n")))])]
-   "reload_completed"
-   {
-     rx_emit_stack_pushm (operands);
-@@ -713,11 +619,11 @@
- )
+ #define DF_LAST_PROBLEM_PLUS1 (DF_MD + 1)
+Index: gcc/ipa-split.c
+===================================================================
+--- gcc/ipa-split.c    (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/ipa-split.c    (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -130,6 +130,10 @@
  
- (define_insn "stack_pop"
--  [(set:SI (match_operand:SI 0 "register_operand" "=r")
--         (mem:SI (reg:SI SP_REG)))
--   (set:SI (reg:SI SP_REG)
--         (plus:SI (reg:SI SP_REG)
--                  (const_int 4)))]
-+  [(set (match_operand:SI 0 "register_operand" "=r")
-+      (mem:SI (reg:SI SP_REG)))
-+   (set (reg:SI SP_REG)
-+      (plus:SI (reg:SI SP_REG)
-+               (const_int 4)))]
-   ""
-   "pop\t%0"
-   [(set_attr "length" "2")
-@@ -726,9 +632,9 @@
- (define_insn "stack_popm"
-   [(match_parallel 1 "rx_load_multiple_vector"
--                 [(set:SI (reg:SI SP_REG)
--                          (plus:SI (reg:SI SP_REG)
--                                   (match_operand:SI 0 "const_int_operand" "n")))])]
-+     [(set (reg:SI SP_REG)
-+         (plus:SI (reg:SI SP_REG)
-+                  (match_operand:SI 0 "const_int_operand" "n")))])]
-   "reload_completed"
-   {
-     rx_emit_stack_popm (operands, true);
-@@ -738,68 +644,139 @@
-    (set_attr "timings" "45")] ;; The timing is a guesstimate average timing.
- )
+ struct split_point best_split_point;
  
--;; FIXME: Add memory destination options ?
--(define_insn "cstoresi4"
--  [(set (match_operand:SI   0 "register_operand" "=r,r,r,r,r,r,r")
-+(define_insn_and_split "cstoresi4"
-+  [(set (match_operand:SI   0 "register_operand" "=r")
-       (match_operator:SI  1 "comparison_operator"
--       [(match_operand:SI 2 "register_operand"  "r,r,r,r,r,r,r")
--        (match_operand:SI 3 "rx_source_operand" "r,Uint04,Int08,Sint16,Sint24,i,Q")]))
--   (clobber (reg:CC CC_REG))] ;; Because the cc flags are set based on comparing ops 2 & 3 not the value in op 0.
-+        [(match_operand:SI 2 "register_operand"  "r")
-+         (match_operand:SI 3 "rx_source_operand" "riQ")]))
-+   (clobber (reg:CC CC_REG))]
-   ""
--  {
--    rx_float_compare_mode = false;
--    return "cmp\t%Q3, %Q2\n\tsc%B1.L\t%0";
--  }
--  [(set_attr "timings" "22,22,22,22,22,22,44")
--   (set_attr "length"  "5,5,6,7,8,9,8")]
-+  "#"
-+  "reload_completed"
-+  [(const_int 0)]
-+{
-+  rtx flags, x;
-+
-+  flags = gen_rtx_REG (CCmode, CC_REG);
-+  x = gen_rtx_COMPARE (CCmode, operands[2], operands[3]);
-+  x = gen_rtx_SET (VOIDmode, flags, x);
-+  emit_insn (x);
-+
-+  x = gen_rtx_fmt_ee (GET_CODE (operands[1]), SImode, flags, const0_rtx);
-+  x = gen_rtx_SET (VOIDmode, operands[0], x);
-+  emit_insn (x);
-+  DONE;
-+})
++/* Set of basic blocks that are not allowed to dominate a split point.  */
 +
-+(define_insn "*sccc"
-+  [(set (match_operand:SI 0 "register_operand" "=r")
-+      (match_operator:SI 1 "comparison_operator"
-+        [(reg CC_REG) (const_int 0)]))]
-+  "reload_completed"
-+  "sc%B1.L\t%0"
-+  [(set_attr "length" "3")]
- )
-+(define_insn_and_split "cstoresf4"
-+  [(set (match_operand:SI 0 "register_operand" "=r")
-+      (match_operator:SI 1 "rx_fp_comparison_operator"
-+       [(match_operand:SF 2 "register_operand" "r")
-+        (match_operand:SF 3 "rx_source_operand" "rFQ")]))]
-+  "ALLOW_RX_FPU_INSNS"
-+  "#"
-+  "reload_completed"
-+  [(const_int 0)]
-+{
-+  rtx flags, x;
-+
-+  flags = gen_rtx_REG (CC_Fmode, CC_REG);
-+  x = gen_rtx_COMPARE (CC_Fmode, operands[2], operands[3]);
-+  x = gen_rtx_SET (VOIDmode, flags, x);
-+  emit_insn (x);
-+
-+  x = gen_rtx_fmt_ee (GET_CODE (operands[1]), SImode, flags, const0_rtx);
-+  x = gen_rtx_SET (VOIDmode, operands[0], x);
-+  emit_insn (x);
-+  DONE;
-+})
++static bitmap forbidden_dominators;
 +
- (define_expand "movsicc"
-   [(parallel
-     [(set (match_operand:SI                  0 "register_operand")
-         (if_then_else:SI (match_operand:SI 1 "comparison_operator")
-                          (match_operand:SI 2 "nonmemory_operand")
--                         (match_operand:SI 3 "immediate_operand")))
--     (clobber (reg:CC CC_REG))])] ;; See cstoresi4
-+                         (match_operand:SI 3 "nonmemory_operand")))
-+     (clobber (reg:CC CC_REG))])]
-   ""
--  {
--    if (GET_CODE (operands[1]) != EQ && GET_CODE (operands[1]) != NE)
--      FAIL;
--    if (! CONST_INT_P (operands[3]))
--      FAIL;
--  }
--)
-+{
-+  /* ??? Support other conditions via cstore into a temporary?  */
-+  if (GET_CODE (operands[1]) != EQ && GET_CODE (operands[1]) != NE)
-+    FAIL;
-+  /* One operand must be a constant.  */
-+  if (!CONSTANT_P (operands[2]) && !CONSTANT_P (operands[3]))
-+    FAIL;
-+})
+ static tree find_retval (basic_block return_bb);
  
--(define_insn "*movsieq"
--  [(set (match_operand:SI                      0 "register_operand" "=r,r,r")
--      (if_then_else:SI (eq (match_operand:SI 3 "register_operand"  "r,r,r")
--                           (match_operand:SI 4 "rx_source_operand" "riQ,riQ,riQ"))
--                       (match_operand:SI     1 "nonmemory_operand" "0,i,r")
--                       (match_operand:SI     2 "immediate_operand" "i,i,i")))
--   (clobber (reg:CC CC_REG))] ;; See cstoresi4
--  ""
--  "@
--  cmp\t%Q4, %Q3\n\tstnz\t%2, %0
--  cmp\t%Q4, %Q3\n\tmov.l\t%2, %0\n\tstz\t%1, %0
--  cmp\t%Q4, %Q3\n\tmov.l\t%1, %0\n\tstnz\t%2, %0"
--  [(set_attr "length"  "13,19,15")
--   (set_attr "timings" "22,33,33")]
--)
-+(define_insn_and_split "*movsicc"
-+  [(set (match_operand:SI     0 "register_operand" "=r,r")
-+      (if_then_else:SI
-+        (match_operator 5 "rx_z_comparison_operator"
-+         [(match_operand:SI 3 "register_operand"  "r,r")
-+          (match_operand:SI 4 "rx_source_operand" "riQ,riQ")])
-+        (match_operand:SI   1 "nonmemory_operand" "i,ri")
-+        (match_operand:SI   2 "nonmemory_operand" "ri,i")))
-+   (clobber (reg:CC CC_REG))]
-+  "CONSTANT_P (operands[1]) || CONSTANT_P (operands[2])"
-+  "#"
-+  "&& reload_completed"
-+  [(const_int 0)]
-+{
-+  rtx x, flags, op0, op1, op2;
-+  enum rtx_code cmp_code;
--(define_insn "*movsine"
--  [(set (match_operand:SI                      0 "register_operand" "=r,r,r")
--      (if_then_else:SI (ne (match_operand:SI 3 "register_operand"  "r,r,r")
--                           (match_operand:SI 4 "rx_source_operand" "riQ,riQ,riQ"))
--                       (match_operand:SI     1 "nonmemory_operand" "0,i,r")
--                       (match_operand:SI     2 "immediate_operand" "i,i,i")))
--   (clobber (reg:CC CC_REG))] ;; See cstoresi4
--  ""
--  "@
--  cmp\t%Q4, %Q3\n\tstz\t%2, %0
--  cmp\t%Q4, %Q3\n\tmov.l\t%2, %0\n\tstnz\t%1, %0
--  cmp\t%Q4, %Q3\n\tmov.l\t%1, %0\n\tstz\t%2, %0"
--  [(set_attr "length"  "13,19,15")
--   (set_attr "timings" "22,33,33")]
-+  flags = gen_rtx_REG (CCmode, CC_REG);
-+  x = gen_rtx_COMPARE (CCmode, operands[3], operands[4]);
-+  emit_insn (gen_rtx_SET (VOIDmode, flags, x));
-+
-+  cmp_code = GET_CODE (operands[5]);
-+  op0 = operands[0];
-+  op1 = operands[1];
-+  op2 = operands[2];
-+
-+  /* If OP2 is the constant, reverse the sense of the move.  */
-+  if (!CONSTANT_P (operands[1]))
+ /* Callback for walk_stmt_load_store_addr_ops.  If T is non-SSA automatic
+@@ -270,6 +274,83 @@
+   return ok;
+ }
++/* If STMT is a call, check the callee against a list of forbidden
++   predicate functions.  If a match is found, look for uses of the
++   call result in condition statements that compare against zero.
++   For each such use, find the block targeted by the condition
++   statement for the nonzero result, and set the bit for this block
++   in the forbidden dominators bitmap.  The purpose of this is to avoid
++   selecting a split point where we are likely to lose the chance
++   to optimize away an unused function call.  */
++
++static void
++check_forbidden_calls (gimple stmt)
++{
++  imm_use_iterator use_iter;
++  use_operand_p use_p;
++  tree lhs;
++
++  /* At the moment, __builtin_constant_p is the only forbidden
++     predicate function call (see PR49642).  */
++  if (!gimple_call_builtin_p (stmt, BUILT_IN_CONSTANT_P))
++    return;
++
++  lhs = gimple_call_lhs (stmt);
++
++  if (!lhs || TREE_CODE (lhs) != SSA_NAME)
++    return;
++
++  FOR_EACH_IMM_USE_FAST (use_p, use_iter, lhs)
 +    {
-+      x = op1, op1 = op2, op2 = x;
-+      cmp_code = reverse_condition (cmp_code);
++      tree op1;
++      basic_block use_bb, forbidden_bb;
++      enum tree_code code;
++      edge true_edge, false_edge;
++      gimple use_stmt = USE_STMT (use_p);
++
++      if (gimple_code (use_stmt) != GIMPLE_COND)
++      continue;
++
++      /* Assuming canonical form for GIMPLE_COND here, with constant
++       in second position.  */
++      op1 = gimple_cond_rhs (use_stmt);
++      code = gimple_cond_code (use_stmt);
++      use_bb = gimple_bb (use_stmt);
++
++      extract_true_false_edges_from_block (use_bb, &true_edge, &false_edge);
++
++      /* We're only interested in comparisons that distinguish
++       unambiguously from zero.  */
++      if (!integer_zerop (op1) || code == LE_EXPR || code == GE_EXPR)
++      continue;
++
++      if (code == EQ_EXPR)
++      forbidden_bb = false_edge->dest;
++      else
++      forbidden_bb = true_edge->dest;
++
++      bitmap_set_bit (forbidden_dominators, forbidden_bb->index);
 +    }
++}
 +
-+  /* If OP2 does not match the output, copy it into place.  We have allowed
-+     these alternatives so that the destination can legitimately be one of
-+     the comparison operands without increasing register pressure.  */
-+  if (!rtx_equal_p (op0, op2))
-+    emit_move_insn (op0, op2);
++/* If BB is dominated by any block in the forbidden dominators set,
++   return TRUE; else FALSE.  */
 +
-+  x = gen_rtx_fmt_ee (cmp_code, VOIDmode, flags, const0_rtx);
-+  x = gen_rtx_IF_THEN_ELSE (SImode, x, op1, op0);
-+  emit_insn (gen_rtx_SET (VOIDmode, op0, x));
-+  DONE;
-+})
++static bool
++dominated_by_forbidden (basic_block bb)
++{
++  unsigned dom_bb;
++  bitmap_iterator bi;
 +
-+(define_insn "*stcc"
-+  [(set (match_operand:SI 0 "register_operand" "+r,r,r,r")
-+      (if_then_else:SI
-+        (match_operator 2 "rx_z_comparison_operator"
-+          [(reg CC_REG) (const_int 0)])
-+        (match_operand:SI 1 "immediate_operand" "Sint08,Sint16,Sint24,i")
-+        (match_dup 0)))]
-+  "reload_completed"
-+{
-+  if (GET_CODE (operands[2]) == EQ)
-+    return "stz\t%1, %0";
-+  else
-+    return "stnz\t%1, %0";
++  EXECUTE_IF_SET_IN_BITMAP (forbidden_dominators, 1, dom_bb, bi)
++    {
++      if (dominated_by_p (CDI_DOMINATORS, bb, BASIC_BLOCK (dom_bb)))
++      return true;
++    }
++
++  return false;
 +}
-+  [(set_attr "length" "4,5,6,7")]
- )
++
+ /* We found an split_point CURRENT.  NON_SSA_VARS is bitmap of all non ssa
+    variables used and RETURN_BB is return basic block.
+    See if we can split function here.  */
+@@ -411,6 +492,18 @@
+                "  Refused: split part has non-ssa uses\n");
+       return;
+     }
++
++  /* If the split point is dominated by a forbidden block, reject
++     the split.  */
++  if (!bitmap_empty_p (forbidden_dominators)
++      && dominated_by_forbidden (current->entry_bb))
++    {
++      if (dump_file && (dump_flags & TDF_DETAILS))
++      fprintf (dump_file,
++               "  Refused: split point dominated by forbidden block\n");
++      return;
++    }
++
+   /* See if retval used by return bb is computed by header or split part.
+      When it is computed by split part, we need to produce return statement
+      in the split part and add code to header to pass it around.
+@@ -1329,6 +1422,10 @@
+       return 0;
+     }
  
- ;; Arithmetic Instructions
-@@ -807,9 +784,7 @@
- (define_insn "abssi2"
-   [(set (match_operand:SI         0 "register_operand" "=r,r")
-         (abs:SI (match_operand:SI 1 "register_operand"  "0,r")))
--   (set (reg:CC_ZSO CC_REG)
--      (compare:CC_ZSO (abs:SI (match_dup 1))
--                      (const_int 0)))]
-+   (clobber (reg:CC CC_REG))]
-   ""
-   "@
-   abs\t%0
-@@ -817,13 +792,24 @@
-   [(set_attr "length" "2,3")]
- )
++  /* Initialize bitmap to track forbidden calls.  */
++  forbidden_dominators = BITMAP_ALLOC (NULL);
++  calculate_dominance_info (CDI_DOMINATORS);
++
+   /* Compute local info about basic blocks and determine function size/time.  */
+   VEC_safe_grow_cleared (bb_info, heap, bb_info_vec, last_basic_block + 1);
+   memset (&best_split_point, 0, sizeof (best_split_point));
+@@ -1350,6 +1447,7 @@
+         this_time = estimate_num_insns (stmt, &eni_time_weights) * freq;
+         size += this_size;
+         time += this_time;
++        check_forbidden_calls (stmt);
  
-+(define_insn "*abssi2_flags"
-+  [(set (match_operand:SI         0 "register_operand" "=r,r")
-+        (abs:SI (match_operand:SI 1 "register_operand"  "0,r")))
-+   (set (reg CC_REG)
-+      (compare (abs:SI (match_dup 1))
-+               (const_int 0)))]
-+  "reload_completed && rx_match_ccmode (insn, CC_ZSOmode)"
-+  "@
-+  abs\t%0
-+  abs\t%1, %0"
-+  [(set_attr "length" "2,3")]
-+)
+         if (dump_file && (dump_flags & TDF_DETAILS))
+           {
+@@ -1371,6 +1469,7 @@
+       BITMAP_FREE (best_split_point.split_bbs);
+       todo = TODO_update_ssa | TODO_cleanup_cfg;
+     }
++  BITMAP_FREE (forbidden_dominators);
+   VEC_free (bb_info, heap, bb_info_vec);
+   bb_info_vec = NULL;
+   return todo;
+Index: gcc/lto-section-in.c
+===================================================================
+--- gcc/lto-section-in.c       (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/lto-section-in.c       (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -296,7 +296,7 @@
+     = (const struct lto_simple_header *) data;
+   struct lto_input_block* ib_main;
+-  int32_t main_offset = sizeof (struct lto_simple_header);
++  int main_offset = sizeof (struct lto_simple_header);
+   if (!data)
+     return NULL;
+Index: gcc/tree-vect-data-refs.c
+===================================================================
+--- gcc/tree-vect-data-refs.c  (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/tree-vect-data-refs.c  (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -2631,6 +2631,16 @@
+           return false;
+         }
++      if (is_gimple_call (stmt))
++      {
++        if (vect_print_dump_info (REPORT_UNVECTORIZED_LOCATIONS))
++          {
++            fprintf (vect_dump, "not vectorized: dr in a call ");
++            print_gimple_stmt (vect_dump, stmt, 0, TDF_SLIM);
++          }
++        return false;
++      }
 +
- (define_insn "addsi3"
-   [(set (match_operand:SI          0 "register_operand"  "=r,r,r,r,r,r,r,r,r,r,r,r,r,r")
-       (plus:SI (match_operand:SI 1 "register_operand"  "%0,0,0,0,0,0,0,r,r,r,r,r,r,0")
-                (match_operand:SI 2 "rx_source_operand" "r,Uint04,NEGint4,Sint08,Sint16,Sint24,i,0,r,Sint08,Sint16,Sint24,i,Q")))
--   (set (reg:CC_ZSC CC_REG) ;; See subsi3
--      (compare:CC_ZSC (plus:SI (match_dup 1) (match_dup 2))
--                      (const_int 0)))]
-+   (clobber (reg:CC CC_REG))]
-   ""
-   "@
-   add\t%2, %0
-@@ -844,27 +830,170 @@
-    (set_attr "length"   "2,2,2,3,4,5,6,2,3,3,4,5,6,5")]
- )
+       /* Update DR field in stmt_vec_info struct.  */
  
--(define_insn "adddi3"
--  [(set (match_operand:DI          0 "register_operand" "=r,r,r,r,r,r")
--      (plus:DI (match_operand:DI 1 "register_operand" "%0,0,0,0,0,0")
--               (match_operand:DI 2 "rx_source_operand"
--                                 "r,Sint08,Sint16,Sint24,i,Q")))
--   (set (reg:CC_ZSC CC_REG) ;; See subsi3
--      (compare:CC_ZSC (plus:DI (match_dup 1) (match_dup 2))
--                      (const_int 0)))]
--  ""
--  "add\t%L2, %L0\n\tadc\t%H2, %H0"
--  [(set_attr "timings" "22,22,22,22,22,44")
--   (set_attr "length" "5,7,9,11,13,11")]
-+(define_insn "*addsi3_flags"
-+  [(set (match_operand:SI          0 "register_operand"  "=r,r,r,r,r,r,r,r,r,r,r,r,r,r")
-+      (plus:SI (match_operand:SI 1 "register_operand"  "%0,0,0,0,0,0,0,r,r,r,r,r,r,0")
-+               (match_operand:SI 2 "rx_source_operand" "r,Uint04,NEGint4,Sint08,Sint16,Sint24,i,0,r,Sint08,Sint16,Sint24,i,Q")))
-+   (set (reg CC_REG)
-+      (compare (plus:SI (match_dup 1) (match_dup 2))
-+               (const_int 0)))]
-+  "reload_completed && rx_match_ccmode (insn, CC_ZSCmode)"
-+  "@
-+  add\t%2, %0
-+  add\t%2, %0
-+  sub\t%N2, %0
-+  add\t%2, %0
-+  add\t%2, %0
-+  add\t%2, %0
-+  add\t%2, %0
-+  add\t%1, %0
-+  add\t%2, %1, %0
-+  add\t%2, %1, %0
-+  add\t%2, %1, %0
-+  add\t%2, %1, %0
-+  add\t%2, %1, %0
-+  add\t%Q2, %0"
-+  [(set_attr "timings" "11,11,11,11,11,11,11,11,11,11,11,11,11,33")
-+   (set_attr "length"   "2,2,2,3,4,5,6,2,3,3,4,5,6,5")]
- )
+       /* If the dataref is in an inner-loop of the loop that is considered for
+Index: gcc/c-typeck.c
+===================================================================
+--- gcc/c-typeck.c     (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/c-typeck.c     (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -3802,11 +3802,7 @@
+       if (val && TREE_CODE (val) == INDIRECT_REF
+           && TREE_CONSTANT (TREE_OPERAND (val, 0)))
+       {
+-        tree op0 = fold_convert_loc (location, sizetype,
+-                                     fold_offsetof (arg, val)), op1;
+-
+-        op1 = fold_convert_loc (location, argtype, TREE_OPERAND (val, 0));
+-        ret = fold_build2_loc (location, POINTER_PLUS_EXPR, argtype, op1, op0);
++        ret = fold_convert_loc (location, argtype, fold_offsetof_1 (arg));
+         goto return_build_unary_op;
+       }
  
-+;; A helper to expand the above with the CC_MODE filled in.
-+(define_expand "addsi3_flags"
-+  [(parallel [(set (match_operand:SI 0 "register_operand")
-+                 (plus:SI (match_operand:SI 1 "register_operand")
-+                          (match_operand:SI 2 "rx_source_operand")))
-+            (set (reg:CC_ZSC CC_REG)
-+                 (compare:CC_ZSC (plus:SI (match_dup 1) (match_dup 2))
-+                                 (const_int 0)))])]
-+)
+Index: gcc/calls.c
+===================================================================
+--- gcc/calls.c        (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/calls.c        (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -1548,6 +1548,131 @@
+   return funexp;
+ }
++/* Internal state for internal_arg_pointer_based_exp and its helpers.  */
++static struct
++{
++  /* Last insn that has been scanned by internal_arg_pointer_based_exp_scan,
++     or NULL_RTX if none has been scanned yet.  */
++  rtx scan_start;
++  /* Vector indexed by REGNO - FIRST_PSEUDO_REGISTER, recording if a pseudo is
++     based on crtl->args.internal_arg_pointer.  The element is NULL_RTX if the
++     pseudo isn't based on it, a CONST_INT offset if the pseudo is based on it
++     with fixed offset, or PC if this is with variable or unknown offset.  */
++  VEC(rtx, heap) *cache;
++} internal_arg_pointer_exp_state;
++
++static rtx internal_arg_pointer_based_exp (rtx, bool);
++
++/* Helper function for internal_arg_pointer_based_exp.  Scan insns in
++   the tail call sequence, starting with first insn that hasn't been
++   scanned yet, and note for each pseudo on the LHS whether it is based
++   on crtl->args.internal_arg_pointer or not, and what offset from that
++   that pointer it has.  */
 +
-+(define_insn "adc_internal"
-+  [(set (match_operand:SI     0 "register_operand"  "=r,r,r,r,r,r")
-+      (plus:SI
-+        (plus:SI
-+          (ltu:SI (reg:CC CC_REG) (const_int 0))
-+          (match_operand:SI 1 "register_operand"  "%0,0,0,0,0,0"))
-+        (match_operand:SI   2 "rx_source_operand" "r,Sint08,Sint16,Sint24,i,Q")))
-+    (clobber (reg:CC CC_REG))]
-+  "reload_completed"
-+  "adc %2,%0"
-+  [(set_attr "timings" "11,11,11,11,11,33")
-+   (set_attr "length"   "3,4,5,6,7,6")]
-+)
++static void
++internal_arg_pointer_based_exp_scan (void)
++{
++  rtx insn, scan_start = internal_arg_pointer_exp_state.scan_start;
 +
-+(define_insn "*adc_flags"
-+  [(set (match_operand:SI     0 "register_operand"  "=r,r,r,r,r,r")
-+      (plus:SI
-+        (plus:SI
-+          (ltu:SI (reg:CC CC_REG) (const_int 0))
-+          (match_operand:SI 1 "register_operand"  "%0,0,0,0,0,0"))
-+        (match_operand:SI   2 "rx_source_operand" "r,Sint08,Sint16,Sint24,i,Q")))
-+   (set (reg CC_REG)
-+      (compare 
-+        (plus:SI
-+          (plus:SI
-+            (ltu:SI (reg:CC CC_REG) (const_int 0))
-+            (match_dup 1))
-+          (match_dup 2))
-+        (const_int 0)))]
-+  "reload_completed && rx_match_ccmode (insn, CC_ZSCmode)"
-+  "adc %2,%0"
-+  [(set_attr "timings" "11,11,11,11,11,33")
-+   (set_attr "length"   "3,4,5,6,7,6")]
-+)
++  if (scan_start == NULL_RTX)
++    insn = get_insns ();
++  else
++    insn = NEXT_INSN (scan_start);
 +
-+(define_expand "adddi3"
-+  [(set (match_operand:DI          0 "register_operand")
-+      (plus:DI (match_operand:DI 1 "register_operand")
-+               (match_operand:DI 2 "rx_source_operand")))]
-+  ""
++  while (insn)
++    {
++      rtx set = single_set (insn);
++      if (set && REG_P (SET_DEST (set)) && !HARD_REGISTER_P (SET_DEST (set)))
++      {
++        rtx val = NULL_RTX;
++        unsigned int idx = REGNO (SET_DEST (set)) - FIRST_PSEUDO_REGISTER;
++        /* Punt on pseudos set multiple times.  */
++        if (idx < VEC_length (rtx, internal_arg_pointer_exp_state.cache)
++            && (VEC_index (rtx, internal_arg_pointer_exp_state.cache, idx)
++                != NULL_RTX))
++          val = pc_rtx;
++        else
++          val = internal_arg_pointer_based_exp (SET_SRC (set), false);
++        if (val != NULL_RTX)
++          {
++            if (idx
++                >= VEC_length (rtx, internal_arg_pointer_exp_state.cache))
++              VEC_safe_grow_cleared (rtx, heap,
++                                     internal_arg_pointer_exp_state.cache,
++                                     idx + 1);
++            VEC_replace (rtx, internal_arg_pointer_exp_state.cache,
++                         idx, val);
++          }
++      }
++      if (NEXT_INSN (insn) == NULL_RTX)
++      scan_start = insn;
++      insn = NEXT_INSN (insn);
++    }
++
++  internal_arg_pointer_exp_state.scan_start = scan_start;
++}
++
++/* Helper function for internal_arg_pointer_based_exp, called through
++   for_each_rtx.  Return 1 if *LOC is a register based on
++   crtl->args.internal_arg_pointer.  Return -1 if *LOC is not based on it
++   and the subexpressions need not be examined.  Otherwise return 0.  */
++
++static int
++internal_arg_pointer_based_exp_1 (rtx *loc, void *data ATTRIBUTE_UNUSED)
 +{
-+  rtx op0l, op0h, op1l, op1h, op2l, op2h;
++  if (REG_P (*loc) && internal_arg_pointer_based_exp (*loc, false) != NULL_RTX)
++    return 1;
++  if (MEM_P (*loc))
++    return -1;
++  return 0;
++}
 +
-+  op0l = gen_lowpart (SImode, operands[0]);
-+  op1l = gen_lowpart (SImode, operands[1]);
-+  op2l = gen_lowpart (SImode, operands[2]);
-+  op0h = gen_highpart (SImode, operands[0]);
-+  op1h = gen_highpart (SImode, operands[1]);
-+  op2h = gen_highpart_mode (SImode, DImode, operands[2]);
++/* Compute whether RTL is based on crtl->args.internal_arg_pointer.  Return
++   NULL_RTX if RTL isn't based on it, a CONST_INT offset if RTL is based on
++   it with fixed offset, or PC if this is with variable or unknown offset.
++   TOPLEVEL is true if the function is invoked at the topmost level.  */
 +
-+  emit_insn (gen_adddi3_internal (op0l, op0h, op1l, op2l, op1h, op2h));
-+  DONE;
-+})
++static rtx
++internal_arg_pointer_based_exp (rtx rtl, bool toplevel)
++{
++  if (CONSTANT_P (rtl))
++    return NULL_RTX;
 +
-+(define_insn_and_split "adddi3_internal"
-+  [(set (match_operand:SI          0 "register_operand"  "=r")
-+      (plus:SI (match_operand:SI 2 "register_operand"  "r")
-+               (match_operand:SI 3 "rx_source_operand" "riQ")))
-+   (set (match_operand:SI          1 "register_operand"  "=r")
-+      (plus:SI
-+        (plus:SI
-+          (ltu:SI (plus:SI (match_dup 2) (match_dup 3)) (match_dup 2))
-+          (match_operand:SI      4 "register_operand"  "%1"))
-+        (match_operand:SI        5 "rx_source_operand" "riQ")))
-+   (clobber (match_scratch:SI      6                     "=&r"))
-+   (clobber (reg:CC CC_REG))]
-+  ""
-+  "#"
-+  "reload_completed"
-+  [(const_int 0)]
-+{
-+  rtx op0l = operands[0];
-+  rtx op0h = operands[1];
-+  rtx op1l = operands[2];
-+  rtx op2l = operands[3];
-+  rtx op1h = operands[4];
-+  rtx op2h = operands[5];
-+  rtx scratch = operands[6];
-+  rtx x;
-+
-+  if (reg_overlap_mentioned_p (op0l, op1h))
-+    {
-+      emit_move_insn (scratch, op0l);
-+      op1h = scratch;
-+      if (reg_overlap_mentioned_p (op0l, op2h))
-+      op2h = scratch;
-+    }
-+  else if (reg_overlap_mentioned_p (op0l, op2h))
-+    {
-+      emit_move_insn (scratch, op0l);
-+      op2h = scratch;
-+    }
++  if (rtl == crtl->args.internal_arg_pointer)
++    return const0_rtx;
 +
-+  if (rtx_equal_p (op0l, op1l))
-+    ;
-+  /* It is preferable that op0l == op1l...  */
-+  else if (rtx_equal_p (op0l, op2l))
-+    x = op1l, op1l = op2l, op2l = x;
-+  /* ... but it is only a requirement if op2l == MEM.  */
-+  else if (MEM_P (op2l))
++  if (REG_P (rtl) && HARD_REGISTER_P (rtl))
++    return NULL_RTX;
++
++  if (GET_CODE (rtl) == PLUS && CONST_INT_P (XEXP (rtl, 1)))
 +    {
-+      /* Let's hope that we still have a scratch register free.  */
-+      gcc_assert (op1h != scratch);
-+      emit_move_insn (scratch, op2l);
-+      op2l = scratch;
++      rtx val = internal_arg_pointer_based_exp (XEXP (rtl, 0), toplevel);
++      if (val == NULL_RTX || val == pc_rtx)
++      return val;
++      return plus_constant (val, INTVAL (XEXP (rtl, 1)));
 +    }
 +
-+  emit_insn (gen_addsi3_flags (op0l, op1l, op2l));
++  /* When called at the topmost level, scan pseudo assignments in between the
++     last scanned instruction in the tail call sequence and the latest insn
++     in that sequence.  */
++  if (toplevel)
++    internal_arg_pointer_based_exp_scan ();
 +
-+  if (rtx_equal_p (op0h, op1h))
-+    ;
-+  else if (rtx_equal_p (op0h, op2h))
-+    x = op1h, op1h = op2h, op2h = x;
-+  else
++  if (REG_P (rtl))
 +    {
-+      emit_move_insn (op0h, op1h);
-+      op1h = op0h;
++      unsigned int idx = REGNO (rtl) - FIRST_PSEUDO_REGISTER;
++      if (idx < VEC_length (rtx, internal_arg_pointer_exp_state.cache))
++      return VEC_index (rtx, internal_arg_pointer_exp_state.cache, idx);
++
++      return NULL_RTX;
 +    }
-+  emit_insn (gen_adc_internal (op0h, op1h, op2h));
-+  DONE;
-+})
 +
- (define_insn "andsi3"
-   [(set (match_operand:SI         0 "register_operand"  "=r,r,r,r,r,r,r,r,r")
-       (and:SI (match_operand:SI 1 "register_operand"  "%0,0,0,0,0,0,r,r,0")
-               (match_operand:SI 2 "rx_source_operand" "r,Uint04,Sint08,Sint16,Sint24,i,0,r,Q")))
--   (set (reg:CC_ZS CC_REG)
--      (compare:CC_ZS (and:SI (match_dup 1) (match_dup 2))
--                     (const_int 0)))]
-+   (clobber (reg:CC CC_REG))]
-   ""
-   "@
-   and\t%2, %0
-@@ -880,9 +1009,31 @@
-    (set_attr "length" "2,2,3,4,5,6,2,5,5")]
- )
-+(define_insn "*andsi3_flags"
-+  [(set (match_operand:SI         0 "register_operand"  "=r,r,r,r,r,r,r,r,r")
-+      (and:SI (match_operand:SI 1 "register_operand"  "%0,0,0,0,0,0,r,r,0")
-+              (match_operand:SI 2 "rx_source_operand" "r,Uint04,Sint08,Sint16,Sint24,i,0,r,Q")))
-+   (set (reg CC_REG)
-+      (compare (and:SI (match_dup 1) (match_dup 2))
-+               (const_int 0)))]
-+  "reload_completed && rx_match_ccmode (insn, CC_ZSmode)"
-+  "@
-+  and\t%2, %0
-+  and\t%2, %0
-+  and\t%2, %0
-+  and\t%2, %0
-+  and\t%2, %0
-+  and\t%2, %0
-+  and\t%1, %0
-+  and\t%2, %1, %0
-+  and\t%Q2, %0"
-+  [(set_attr "timings" "11,11,11,11,11,11,11,33,33")
-+   (set_attr "length" "2,2,3,4,5,6,2,5,5")]
-+)
++  if (for_each_rtx (&rtl, internal_arg_pointer_based_exp_1, NULL))
++    return pc_rtx;
 +
- ;; Byte swap (single 32-bit value).
- (define_insn "bswapsi2"
--  [(set (match_operand:SI           0 "register_operand" "+r")
-+  [(set (match_operand:SI           0 "register_operand" "=r")
-       (bswap:SI (match_operand:SI 1 "register_operand"  "r")))]
-   ""
-   "revl\t%1, %0"
-@@ -891,7 +1042,7 @@
- ;; Byte swap (single 16-bit value).  Note - we ignore the swapping of the high 16-bits.
- (define_insn "bswaphi2"
--  [(set (match_operand:HI           0 "register_operand" "+r")
-+  [(set (match_operand:HI           0 "register_operand" "=r")
-       (bswap:HI (match_operand:HI 1 "register_operand"  "r")))]
-   ""
-   "revw\t%1, %0"
-@@ -999,24 +1150,33 @@
- (define_insn "negsi2"
-   [(set (match_operand:SI         0 "register_operand" "=r,r")
-         (neg:SI (match_operand:SI 1 "register_operand"  "0,r")))
--   (set (reg:CC CC_REG)
--      (compare:CC (neg:SI (match_dup 1))
--                  (const_int 0)))]
--  ;; The NEG instruction does not comply with -fwrapv semantics.
--  ;; See gcc.c-torture/execute/pr22493-1.c for an example of this.
--  "! flag_wrapv"
-+   (clobber (reg:CC CC_REG))]
-+  ""
-   "@
-   neg\t%0
-   neg\t%1, %0"
-   [(set_attr "length" "2,3")]
- )
-+;; Note that the O and C flags are not set as per a normal compare,
-+;; and thus are unusable in that context.
-+(define_insn "*negsi2_flags"
-+  [(set (match_operand:SI         0 "register_operand" "=r,r")
-+        (neg:SI (match_operand:SI 1 "register_operand"  "0,r")))
-+   (set (reg CC_REG)
-+      (compare (neg:SI (match_dup 1))
-+               (const_int 0)))]
-+  "reload_completed && rx_match_ccmode (insn, CC_ZSmode)"
-+  "@
-+  neg\t%0
-+  neg\t%1, %0"
-+  [(set_attr "length" "2,3")]
-+)
++  return NULL_RTX;
++}
 +
- (define_insn "one_cmplsi2"
-   [(set (match_operand:SI         0 "register_operand" "=r,r")
-       (not:SI (match_operand:SI 1 "register_operand"  "0,r")))
--   (set (reg:CC_ZS CC_REG)
--      (compare:CC_ZS (not:SI (match_dup 1))
--                     (const_int 0)))]
-+   (clobber (reg:CC CC_REG))]
-   ""
-   "@
-   not\t%0
-@@ -1024,13 +1184,24 @@
-   [(set_attr "length" "2,3")]
- )
+ /* Return true if and only if SIZE storage units (usually bytes)
+    starting from address ADDR overlap with already clobbered argument
+    area.  This function is used to determine if we should give up a
+@@ -1557,20 +1682,17 @@
+ mem_overlaps_already_clobbered_arg_p (rtx addr, unsigned HOST_WIDE_INT size)
+ {
+   HOST_WIDE_INT i;
++  rtx val;
+-  if (addr == crtl->args.internal_arg_pointer)
+-    i = 0;
+-  else if (GET_CODE (addr) == PLUS
+-         && XEXP (addr, 0) == crtl->args.internal_arg_pointer
+-         && CONST_INT_P (XEXP (addr, 1)))
+-    i = INTVAL (XEXP (addr, 1));
+-  /* Return true for arg pointer based indexed addressing.  */
+-  else if (GET_CODE (addr) == PLUS
+-         && (XEXP (addr, 0) == crtl->args.internal_arg_pointer
+-             || XEXP (addr, 1) == crtl->args.internal_arg_pointer))
++  if (sbitmap_empty_p (stored_args_map))
++    return false;
++  val = internal_arg_pointer_based_exp (addr, true);
++  if (val == NULL_RTX)
++    return false;
++  else if (val == pc_rtx)
+     return true;
+   else
+-    return false;
++    i = INTVAL (val);
+ #ifdef ARGS_GROW_DOWNWARD
+   i = -i - size;
+@@ -3175,6 +3297,8 @@
+           }
+         sbitmap_free (stored_args_map);
++        internal_arg_pointer_exp_state.scan_start = NULL_RTX;
++        VEC_free (rtx, heap, internal_arg_pointer_exp_state.cache);
+       }
+       else
+       {
+Index: gcc/loop-doloop.c
+===================================================================
+--- gcc/loop-doloop.c  (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/loop-doloop.c  (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -334,14 +334,11 @@
+    describes the loop, DESC describes the number of iterations of the
+    loop, and DOLOOP_INSN is the low-overhead looping insn to emit at the
+    end of the loop.  CONDITION is the condition separated from the
+-   DOLOOP_SEQ.  COUNT is the number of iterations of the LOOP.
+-   ZERO_EXTEND_P says to zero extend COUNT after the increment of it to
+-   word_mode from FROM_MODE.  */
++   DOLOOP_SEQ.  COUNT is the number of iterations of the LOOP.  */
+ static void
+ doloop_modify (struct loop *loop, struct niter_desc *desc,
+-             rtx doloop_seq, rtx condition, rtx count,
+-             bool zero_extend_p, enum machine_mode from_mode)
++             rtx doloop_seq, rtx condition, rtx count)
+ {
+   rtx counter_reg;
+   rtx tmp, noloop = NULL_RTX;
+@@ -415,12 +412,8 @@
+     }
+   if (increment_count)
+-    count = simplify_gen_binary (PLUS, from_mode, count, const1_rtx);
++    count = simplify_gen_binary (PLUS, mode, count, const1_rtx);
+-  if (zero_extend_p)
+-    count = simplify_gen_unary (ZERO_EXTEND, word_mode,
+-                              count, from_mode);
+-
+   /* Insert initialization of the count register into the loop header.  */
+   start_sequence ();
+   tmp = force_operand (count, counter_reg);
+@@ -555,7 +548,6 @@
+   struct niter_desc *desc;
+   unsigned word_mode_size;
+   unsigned HOST_WIDE_INT word_mode_max;
+-  bool zero_extend_p = false;
+   if (dump_file)
+     fprintf (dump_file, "Doloop: Processing loop %d.\n", loop->num);
+@@ -630,7 +622,8 @@
+     {
+       if (word_mode_size > GET_MODE_BITSIZE (mode))
+       {
+-        zero_extend_p = true;
++        count = simplify_gen_unary (ZERO_EXTEND, word_mode,
++                                    count, mode);
+         iterations = simplify_gen_unary (ZERO_EXTEND, word_mode,
+                                          iterations, mode);
+         iterations_max = simplify_gen_unary (ZERO_EXTEND, word_mode,
+@@ -674,8 +667,7 @@
+       return false;
+     }
+-  doloop_modify (loop, desc, doloop_seq, condition, count,
+-               zero_extend_p, mode);
++  doloop_modify (loop, desc, doloop_seq, condition, count);
+   return true;
+ }
+Index: gcc/tree-ssa-pre.c
+===================================================================
+--- gcc/tree-ssa-pre.c (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/tree-ssa-pre.c (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -1545,7 +1545,7 @@
+       tree newvuse = vuse;
+       VEC (vn_reference_op_s, heap) *newoperands = NULL;
+       bool changed = false, same_valid = true;
+-      unsigned int i, j;
++      unsigned int i, j, n;
+       vn_reference_op_t operand;
+       vn_reference_t newref;
+@@ -1554,100 +1554,83 @@
+         {
+           pre_expr opresult;
+           pre_expr leader;
+-          tree oldop0 = operand->op0;
+-          tree oldop1 = operand->op1;
+-          tree oldop2 = operand->op2;
+-          tree op0 = oldop0;
+-          tree op1 = oldop1;
+-          tree op2 = oldop2;
++          tree op[3];
+           tree type = operand->type;
+           vn_reference_op_s newop = *operand;
+-
+-          if (op0 && TREE_CODE (op0) == SSA_NAME)
++          op[0] = operand->op0;
++          op[1] = operand->op1;
++          op[2] = operand->op2;
++          for (n = 0; n < 3; ++n)
+             {
+-              unsigned int op_val_id = VN_INFO (op0)->value_id;
+-              leader = find_leader_in_sets (op_val_id, set1, set2);
+-              opresult = phi_translate (leader, set1, set2, pred, phiblock);
+-              if (opresult && opresult != leader)
++              unsigned int op_val_id;
++              if (!op[n])
++                continue;
++              if (TREE_CODE (op[n]) != SSA_NAME)
+                 {
+-                  tree name = get_representative_for (opresult);
+-                  if (!name)
++                  /* We can't possibly insert these.  */
++                  if (n != 0
++                      && !is_gimple_min_invariant (op[n]))
+                     break;
+-                  op0 = name;
++                  continue;
+                 }
+-              else if (!opresult)
++              op_val_id = VN_INFO (op[n])->value_id;
++              leader = find_leader_in_sets (op_val_id, set1, set2);
++              if (!leader)
+                 break;
+-            }
+-          changed |= op0 != oldop0;
+-
+-          if (op1 && TREE_CODE (op1) == SSA_NAME)
+-            {
+-              unsigned int op_val_id = VN_INFO (op1)->value_id;
+-              leader = find_leader_in_sets (op_val_id, set1, set2);
+-              opresult = phi_translate (leader, set1, set2, pred, phiblock);
+-              if (opresult && opresult != leader)
++              /* Make sure we do not recursively translate ourselves
++                 like for translating a[n_1] with the leader for
++                 n_1 being a[n_1].  */
++              if (get_expression_id (leader) != get_expression_id (expr))
+                 {
+-                  tree name = get_representative_for (opresult);
+-                  if (!name)
++                  opresult = phi_translate (leader, set1, set2,
++                                            pred, phiblock);
++                  if (!opresult)
+                     break;
+-                  op1 = name;
++                  if (opresult != leader)
++                    {
++                      tree name = get_representative_for (opresult);
++                      if (!name)
++                        break;
++                      changed |= name != op[n];
++                      op[n] = name;
++                    }
+                 }
+-              else if (!opresult)
+-                break;
+             }
+-          /* We can't possibly insert these.  */
+-          else if (op1 && !is_gimple_min_invariant (op1))
+-            break;
+-          changed |= op1 != oldop1;
+-          if (op2 && TREE_CODE (op2) == SSA_NAME)
++          if (n != 3)
+             {
+-              unsigned int op_val_id = VN_INFO (op2)->value_id;
+-              leader = find_leader_in_sets (op_val_id, set1, set2);
+-              opresult = phi_translate (leader, set1, set2, pred, phiblock);
+-              if (opresult && opresult != leader)
+-                {
+-                  tree name = get_representative_for (opresult);
+-                  if (!name)
+-                    break;
+-                  op2 = name;
+-                }
+-              else if (!opresult)
+-                break;
++              if (newoperands)
++                VEC_free (vn_reference_op_s, heap, newoperands);
++              return NULL;
+             }
+-          /* We can't possibly insert these.  */
+-          else if (op2 && !is_gimple_min_invariant (op2))
+-            break;
+-          changed |= op2 != oldop2;
+-
+           if (!newoperands)
+             newoperands = VEC_copy (vn_reference_op_s, heap, operands);
+           /* We may have changed from an SSA_NAME to a constant */
+-          if (newop.opcode == SSA_NAME && TREE_CODE (op0) != SSA_NAME)
+-            newop.opcode = TREE_CODE (op0);
++          if (newop.opcode == SSA_NAME && TREE_CODE (op[0]) != SSA_NAME)
++            newop.opcode = TREE_CODE (op[0]);
+           newop.type = type;
+-          newop.op0 = op0;
+-          newop.op1 = op1;
+-          newop.op2 = op2;
++          newop.op0 = op[0];
++          newop.op1 = op[1];
++          newop.op2 = op[2];
+           /* If it transforms a non-constant ARRAY_REF into a constant
+              one, adjust the constant offset.  */
+           if (newop.opcode == ARRAY_REF
+               && newop.off == -1
+-              && TREE_CODE (op0) == INTEGER_CST
+-              && TREE_CODE (op1) == INTEGER_CST
+-              && TREE_CODE (op2) == INTEGER_CST)
++              && TREE_CODE (op[0]) == INTEGER_CST
++              && TREE_CODE (op[1]) == INTEGER_CST
++              && TREE_CODE (op[2]) == INTEGER_CST)
+             {
+-              double_int off = tree_to_double_int (op0);
++              double_int off = tree_to_double_int (op[0]);
+               off = double_int_add (off,
+                                     double_int_neg
+-                                      (tree_to_double_int (op1)));
+-              off = double_int_mul (off, tree_to_double_int (op2));
++                                      (tree_to_double_int (op[1])));
++              off = double_int_mul (off, tree_to_double_int (op[2]));
+               if (double_int_fits_in_shwi_p (off))
+                 newop.off = off.low;
+             }
+           VEC_replace (vn_reference_op_s, newoperands, j, &newop);
+           /* If it transforms from an SSA_NAME to an address, fold with
+              a preceding indirect reference.  */
+-          if (j > 0 && op0 && TREE_CODE (op0) == ADDR_EXPR
++          if (j > 0 && op[0] && TREE_CODE (op[0]) == ADDR_EXPR
+               && VEC_index (vn_reference_op_s,
+                             newoperands, j - 1)->opcode == MEM_REF)
+             vn_reference_fold_indirect (&newoperands, &j);
+Index: gcc/cfgcleanup.c
+===================================================================
+--- gcc/cfgcleanup.c   (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/cfgcleanup.c   (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -1969,7 +1969,14 @@
+   cond = get_condition (jump, &move_before, true, false);
+   if (cond == NULL_RTX)
+-    move_before = jump;
++    {
++#ifdef HAVE_cc0
++      if (reg_mentioned_p (cc0_rtx, jump))
++      move_before = prev_nonnote_nondebug_insn (jump);
++      else
++#endif
++      move_before = jump;
++    }
+   for (ix = 0; ix < nedges; ix++)
+     if (EDGE_SUCC (bb, ix)->dest == EXIT_BLOCK_PTR)
+@@ -2131,7 +2138,14 @@
+       jump = BB_END (final_dest_bb);
+       cond = get_condition (jump, &move_before, true, false);
+       if (cond == NULL_RTX)
+-      move_before = jump;
++      {
++#ifdef HAVE_cc0
++        if (reg_mentioned_p (cc0_rtx, jump))
++          move_before = prev_nonnote_nondebug_insn (jump);
++        else
++#endif
++          move_before = jump;
++      }
+     }
  
-+(define_insn "*one_cmplsi2_flags"
-+  [(set (match_operand:SI         0 "register_operand" "=r,r")
-+      (not:SI (match_operand:SI 1 "register_operand"  "0,r")))
-+   (set (reg CC_REG)
-+      (compare (not:SI (match_dup 1))
-+               (const_int 0)))]
-+  "reload_completed && rx_match_ccmode (insn, CC_ZSmode)"
-+  "@
-+  not\t%0
-+  not\t%1, %0"
-+  [(set_attr "length" "2,3")]
-+)
+   do
+Index: gcc/simplify-rtx.c
+===================================================================
+--- gcc/simplify-rtx.c (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/simplify-rtx.c (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -2777,7 +2777,7 @@
+               }
+           }
+       }
+-      else
++      else if (SCALAR_INT_MODE_P (mode))
+       {
+         /* 0/x is 0 (or x&0 if x has side-effects).  */
+         if (trueop0 == CONST0_RTX (mode)
+@@ -4177,10 +4177,20 @@
+     {
+       rtx x = XEXP (op0, 0);
+       rtx c = XEXP (op0, 1);
++      enum rtx_code invcode = op0code == PLUS ? MINUS : PLUS;
++      rtx tem = simplify_gen_binary (invcode, cmp_mode, op1, c);
+-      c = simplify_gen_binary (op0code == PLUS ? MINUS : PLUS,
+-                             cmp_mode, op1, c);
+-      return simplify_gen_relational (code, mode, cmp_mode, x, c);
++      /* Detect an infinite recursive condition, where we oscillate at this
++       simplification case between:
++          A + B == C  <--->  C - B == A,
++       where A, B, and C are all constants with non-simplifiable expressions,
++       usually SYMBOL_REFs.  */
++      if (GET_CODE (tem) == invcode
++        && CONSTANT_P (x)
++        && rtx_equal_p (c, XEXP (tem, 1)))
++      return NULL_RTX;
 +
- (define_insn "iorsi3"
-   [(set (match_operand:SI         0 "register_operand" "=r,r,r,r,r,r,r,r,r")
-       (ior:SI (match_operand:SI 1 "register_operand" "%0,0,0,0,0,0,r,r,0")
-               (match_operand:SI 2 "rx_source_operand" "r,Uint04,Sint08,Sint16,Sint24,i,0,r,Q")))
--   (set (reg:CC_ZS CC_REG)
--      (compare:CC_ZS (ior:SI (match_dup 1) (match_dup 2))
--                     (const_int 0)))]
-+   (clobber (reg:CC CC_REG))]
-   ""
-   "@
-   or\t%2, %0
-@@ -1046,37 +1217,77 @@
-    (set_attr "length"  "2,2,3,4,5,6,2,3,5")]
- )
++      return simplify_gen_relational (code, mode, cmp_mode, x, tem);
+     }
  
-+(define_insn "*iorsi3_flags"
-+  [(set (match_operand:SI         0 "register_operand" "=r,r,r,r,r,r,r,r,r")
-+      (ior:SI (match_operand:SI 1 "register_operand" "%0,0,0,0,0,0,r,r,0")
-+              (match_operand:SI 2 "rx_source_operand" "r,Uint04,Sint08,Sint16,Sint24,i,0,r,Q")))
-+   (set (reg CC_REG)
-+      (compare (ior:SI (match_dup 1) (match_dup 2))
-+               (const_int 0)))]
-+  "reload_completed && rx_match_ccmode (insn, CC_ZSmode)"
-+  "@
-+  or\t%2, %0
-+  or\t%2, %0
-+  or\t%2, %0
-+  or\t%2, %0
-+  or\t%2, %0
-+  or\t%Q2, %0
-+  or\t%1, %0
-+  or\t%2, %1, %0
-+  or\t%Q2, %0"
-+  [(set_attr "timings" "11,11,11,11,11,11,11,11,33")
-+   (set_attr "length"  "2,2,3,4,5,6,2,3,5")]
-+)
-+
- (define_insn "rotlsi3"
-   [(set (match_operand:SI            0 "register_operand" "=r")
-       (rotate:SI (match_operand:SI 1 "register_operand"  "0")
-                  (match_operand:SI 2 "rx_shift_operand" "rn")))
--   (set (reg:CC_ZS CC_REG)
--      (compare:CC_ZS (rotate:SI (match_dup 1) (match_dup 2))
--                     (const_int 0)))]
-+   (clobber (reg:CC CC_REG))]
-   ""
-   "rotl\t%2, %0"
-   [(set_attr "length" "3")]
- )
+   /* (ne:SI (zero_extract:SI FOO (const_int 1) BAR) (const_int 0))) is
+Index: gcc/tree-sra.c
+===================================================================
+--- gcc/tree-sra.c     (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/tree-sra.c     (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -1020,31 +1020,52 @@
+   return false;
+ }
  
-+(define_insn "*rotlsi3_flags"
-+  [(set (match_operand:SI            0 "register_operand" "=r")
-+      (rotate:SI (match_operand:SI 1 "register_operand"  "0")
-+                 (match_operand:SI 2 "rx_shift_operand" "rn")))
-+   (set (reg CC_REG)
-+      (compare (rotate:SI (match_dup 1) (match_dup 2))
-+               (const_int 0)))]
-+  "reload_completed && rx_match_ccmode (insn, CC_ZSmode)"
-+  "rotl\t%2, %0"
-+  [(set_attr "length" "3")]
-+)
-+
- (define_insn "rotrsi3"
-   [(set (match_operand:SI              0 "register_operand" "=r")
-       (rotatert:SI (match_operand:SI 1 "register_operand"  "0")
-                    (match_operand:SI 2 "rx_shift_operand" "rn")))
--   (set (reg:CC_ZS CC_REG)
--      (compare:CC_ZS (rotatert:SI (match_dup 1) (match_dup 2))
--                     (const_int 0)))]
-+   (clobber (reg:CC CC_REG))]
-   ""
-   "rotr\t%2, %0"
-   [(set_attr "length" "3")]
- )
+-/* Return true iff type of EXP is not sufficiently aligned.  */
++/* Return true if EXP is a memory reference less aligned than ALIGN.  This is
++   invoked only on strict-alignment targets.  */
  
-+(define_insn "*rotrsi3_flags"
-+  [(set (match_operand:SI              0 "register_operand" "=r")
-+      (rotatert:SI (match_operand:SI 1 "register_operand"  "0")
-+                   (match_operand:SI 2 "rx_shift_operand" "rn")))
-+   (set (reg CC_REG)
-+      (compare (rotatert:SI (match_dup 1) (match_dup 2))
-+               (const_int 0)))]
-+  "reload_completed && rx_match_ccmode (insn, CC_ZSmode)"
-+  "rotr\t%2, %0"
-+  [(set_attr "length" "3")]
-+)
-+
- (define_insn "ashrsi3"
-   [(set (match_operand:SI              0 "register_operand" "=r,r,r")
-       (ashiftrt:SI (match_operand:SI 1 "register_operand"  "0,0,r")
-                    (match_operand:SI 2 "rx_shift_operand"  "r,n,n")))
--   (set (reg:CC_ZS CC_REG)
--      (compare:CC_ZS (ashiftrt:SI (match_dup 1) (match_dup 2))
--                     (const_int 0)))]
-+   (clobber (reg:CC CC_REG))]
-   ""
-   "@
-   shar\t%2, %0
-@@ -1085,13 +1296,26 @@
-   [(set_attr "length" "3,2,3")]
- )
+ static bool
+-tree_non_mode_aligned_mem_p (tree exp)
++tree_non_aligned_mem_p (tree exp, unsigned int align)
+ {
+-  enum machine_mode mode = TYPE_MODE (TREE_TYPE (exp));
+-  unsigned int align;
++  unsigned int exp_align;
+   if (TREE_CODE (exp) == VIEW_CONVERT_EXPR)
+     exp = TREE_OPERAND (exp, 0);
+-  if (TREE_CODE (exp) == SSA_NAME
+-      || TREE_CODE (exp) == MEM_REF
+-      || mode == BLKmode
+-      || is_gimple_min_invariant (exp)
+-      || !STRICT_ALIGNMENT)
++  if (TREE_CODE (exp) == SSA_NAME || is_gimple_min_invariant (exp))
+     return false;
  
-+(define_insn "*ashrsi3_flags"
-+  [(set (match_operand:SI              0 "register_operand" "=r,r,r")
-+      (ashiftrt:SI (match_operand:SI 1 "register_operand"  "0,0,r")
-+                   (match_operand:SI 2 "rx_shift_operand"  "r,n,n")))
-+   (set (reg CC_REG)
-+      (compare (ashiftrt:SI (match_dup 1) (match_dup 2))
-+               (const_int 0)))]
-+  "reload_completed && rx_match_ccmode (insn, CC_ZSmode)"
-+  "@
-+  shar\t%2, %0
-+  shar\t%2, %0
-+  shar\t%2, %1, %0"
-+  [(set_attr "length" "3,2,3")]
-+)
+-  align = get_object_alignment (exp, BIGGEST_ALIGNMENT);
+-  if (GET_MODE_ALIGNMENT (mode) > align)
++  /* get_object_alignment will fall back to BITS_PER_UNIT if it cannot
++     compute an explicit alignment.  Pretend that dereferenced pointers
++     are always aligned on strict-alignment targets.  */
++  exp_align = get_object_alignment (exp, BIGGEST_ALIGNMENT);
++  if (TREE_CODE (exp) == MEM_REF || TREE_CODE (exp) == TARGET_MEM_REF)
++    exp_align = MAX (TYPE_ALIGN (TREE_TYPE (exp)), exp_align);
 +
- (define_insn "lshrsi3"
-   [(set (match_operand:SI              0 "register_operand" "=r,r,r")
-       (lshiftrt:SI (match_operand:SI 1 "register_operand"  "0,0,r")
-                    (match_operand:SI 2 "rx_shift_operand"  "r,n,n")))
--   (set (reg:CC_ZS CC_REG)
--      (compare:CC_ZS (lshiftrt:SI (match_dup 1) (match_dup 2))
--                     (const_int 0)))]
-+   (clobber (reg:CC CC_REG))]
-   ""
-   "@
-   shlr\t%2, %0
-@@ -1100,13 +1324,26 @@
-   [(set_attr "length" "3,2,3")]
- )
++  if (exp_align < align)
+     return true;
  
-+(define_insn "*lshrsi3_flags"
-+  [(set (match_operand:SI              0 "register_operand" "=r,r,r")
-+      (lshiftrt:SI (match_operand:SI 1 "register_operand"  "0,0,r")
-+                   (match_operand:SI 2 "rx_shift_operand"  "r,n,n")))
-+   (set (reg CC_REG)
-+      (compare (lshiftrt:SI (match_dup 1) (match_dup 2))
-+               (const_int 0)))]
-+  "reload_completed && rx_match_ccmode (insn, CC_ZSmode)"
-+  "@
-+  shlr\t%2, %0
-+  shlr\t%2, %0
-+  shlr\t%2, %1, %0"
-+  [(set_attr "length" "3,2,3")]
-+)
-+
- (define_insn "ashlsi3"
-   [(set (match_operand:SI            0 "register_operand" "=r,r,r")
-       (ashift:SI (match_operand:SI 1 "register_operand"  "0,0,r")
-                  (match_operand:SI 2 "rx_shift_operand"  "r,n,n")))
--   (set (reg:CC_ZS CC_REG)
--      (compare:CC_ZS (ashift:SI (match_dup 1) (match_dup 2))
--                     (const_int 0)))]
-+   (clobber (reg:CC CC_REG))]
-   ""
-   "@
-   shll\t%2, %0
-@@ -1115,16 +1352,57 @@
-   [(set_attr "length" "3,2,3")]
- )
+   return false;
+ }
  
-+(define_insn "*ashlsi3_flags"
-+  [(set (match_operand:SI            0 "register_operand" "=r,r,r")
-+      (ashift:SI (match_operand:SI 1 "register_operand"  "0,0,r")
-+                 (match_operand:SI 2 "rx_shift_operand"  "r,n,n")))
-+   (set (reg CC_REG)
-+      (compare (ashift:SI (match_dup 1) (match_dup 2))
-+               (const_int 0)))]
-+  "reload_completed && rx_match_ccmode (insn, CC_ZSmode)"
-+  "@
-+  shll\t%2, %0
-+  shll\t%2, %0
-+  shll\t%2, %1, %0"
-+  [(set_attr "length" "3,2,3")]
-+)
++/* Return true if EXP is a memory reference less aligned than what the access
++   ACC would require.  This is invoked only on strict-alignment targets.  */
 +
-+;; Saturate to 32-bits
-+(define_insn_and_split "ssaddsi3"
-+  [(set (match_operand:SI             0 "register_operand" "=r")
-+      (ss_plus:SI (match_operand:SI 1 "register_operand"  "r")
-+                  (match_operand:SI 2 "rx_source_operand" "riQ")))
-+   (clobber (reg:CC CC_REG))]
-+  ""
-+  "#"
-+  "reload_completed"
-+  [(parallel [(set (match_dup 0)
-+                 (plus:SI (match_dup 1) (match_dup 2)))
-+            (set (reg:CC_ZSC CC_REG)
-+                 (compare:CC_ZSC
-+                   (plus:SI (match_dup 1) (match_dup 2))
-+                   (const_int 0)))])
-+   (set (match_dup 0)
-+      (unspec:SI [(match_dup 0) (reg:CC CC_REG)] 
-+                 UNSPEC_BUILTIN_SAT))]
-+   ""
-+)
++static bool
++tree_non_aligned_mem_for_access_p (tree exp, struct access *acc)
++{
++  unsigned int acc_align;
 +
-+(define_insn "*sat"
-+  [(set (match_operand:SI             0 "register_operand" "=r")
-+      (unspec:SI [(match_operand:SI 1 "register_operand"  "0")
-+                  (reg:CC CC_REG)]
-+                 UNSPEC_BUILTIN_SAT))]
-+  "reload_completed"
-+  "sat\t%0"
-+  [(set_attr "length" "2")]
-+)
++  /* The alignment of the access is that of its expression.  However, it may
++     have been artificially increased, e.g. by a local alignment promotion,
++     so we cap it to the alignment of the type of the base, on the grounds
++     that valid sub-accesses cannot be more aligned than that.  */
++  acc_align = get_object_alignment (acc->expr, BIGGEST_ALIGNMENT);
++  if (acc->base && acc_align > TYPE_ALIGN (TREE_TYPE (acc->base)))
++    acc_align = TYPE_ALIGN (TREE_TYPE (acc->base));
 +
- (define_insn "subsi3"
-   [(set (match_operand:SI           0 "register_operand" "=r,r,r,r,r")
-       (minus:SI (match_operand:SI 1 "register_operand"  "0,0,0,r,0")
-                 (match_operand:SI 2 "rx_source_operand" "r,Uint04,n,r,Q")))
--   (set (reg:CC_ZSC CC_REG)
--      ;; Note - we do not acknowledge that the SUB instruction sets the Overflow
--      ;; flag because its interpretation is different from comparing the result
--      ;; against zero.  Compile and run gcc.c-torture/execute/cmpsi-1.c to see this.
--      (compare:CC_ZSC (minus:SI (match_dup 1) (match_dup 2))
--                      (const_int 0)))]
-+   (clobber (reg:CC CC_REG))]
-   ""
-   "@
-   sub\t%2, %0
-@@ -1136,32 +1414,134 @@
-    (set_attr "length" "2,2,6,3,5")]
- )
++  return tree_non_aligned_mem_p (exp, acc_align);
++}
++
+ /* Scan expressions occuring in STMT, create access structures for all accesses
+    to candidates for scalarization and remove those candidates which occur in
+    statements or expressions that prevent them from being split apart.  Return
+@@ -1071,7 +1092,8 @@
+   if (lacc)
+     {
+       lacc->grp_assignment_write = 1;
+-      lacc->grp_unscalarizable_region |= tree_non_mode_aligned_mem_p (rhs);
++      if (STRICT_ALIGNMENT && tree_non_aligned_mem_for_access_p (rhs, lacc))
++        lacc->grp_unscalarizable_region = 1;
+     }
  
--(define_insn "subdi3"
--  [(set (match_operand:DI           0 "register_operand" "=r,r")
--      (minus:DI (match_operand:DI 1 "register_operand"  "0,0")
--                (match_operand:DI 2 "rx_source_operand" "r,Q")))
--   (set (reg:CC_ZSC CC_REG) ;; See subsi3
--      (compare:CC_ZSC (minus:DI (match_dup 1) (match_dup 2))
--                      (const_int 0)))]
--  ""
--  "sub\t%L2, %L0\n\tsbb\t%H2, %H0"
--  [(set_attr "timings" "22,44")
--   (set_attr "length" "5,11")]
-+;; Note that the O flag is set as if (compare op1 op2) not for
-+;; what is described here, (compare op0 0).
-+(define_insn "*subsi3_flags"
-+  [(set (match_operand:SI           0 "register_operand" "=r,r,r,r,r")
-+      (minus:SI (match_operand:SI 1 "register_operand"  "0,0,0,r,0")
-+                (match_operand:SI 2 "rx_source_operand" "r,Uint04,n,r,Q")))
-+   (set (reg CC_REG)
-+      (compare (minus:SI (match_dup 1) (match_dup 2))
-+               (const_int 0)))]
-+  "reload_completed && rx_match_ccmode (insn, CC_ZSCmode)"
-+  "@
-+  sub\t%2, %0
-+  sub\t%2, %0
-+  add\t%N2, %0
-+  sub\t%2, %1, %0
-+  sub\t%Q2, %0"
-+  [(set_attr "timings" "11,11,11,11,33")
-+   (set_attr "length" "2,2,6,3,5")]
- )
+   if (racc)
+@@ -1080,7 +1102,8 @@
+       if (should_scalarize_away_bitmap && !gimple_has_volatile_ops (stmt)
+         && !is_gimple_reg_type (racc->type))
+       bitmap_set_bit (should_scalarize_away_bitmap, DECL_UID (racc->base));
+-      racc->grp_unscalarizable_region |= tree_non_mode_aligned_mem_p (lhs);
++      if (STRICT_ALIGNMENT && tree_non_aligned_mem_for_access_p (lhs, racc))
++        racc->grp_unscalarizable_region = 1;
+     }
  
-+;; A helper to expand the above with the CC_MODE filled in.
-+(define_expand "subsi3_flags"
-+  [(parallel [(set (match_operand:SI 0 "register_operand")
-+                 (minus:SI (match_operand:SI 1 "register_operand")
-+                           (match_operand:SI 2 "rx_source_operand")))
-+            (set (reg:CC_ZSC CC_REG)
-+                 (compare:CC_ZSC (minus:SI (match_dup 1) (match_dup 2))
-+                                 (const_int 0)))])]
-+)
-+
-+(define_insn "sbb_internal"
-+  [(set (match_operand:SI     0 "register_operand"   "=r,r")
-+      (minus:SI
-+        (minus:SI
-+          (match_operand:SI 1 "register_operand"   " 0,0")
-+          (match_operand:SI 2 "rx_compare_operand" " r,Q"))
-+        (geu:SI (reg:CC CC_REG) (const_int 0))))
-+    (clobber (reg:CC CC_REG))]
-+  "reload_completed"
-+  "sbb\t%2, %0"
-+  [(set_attr "timings" "11,33")
-+   (set_attr "length"  "3,6")]
-+)
-+
-+(define_insn "*sbb_flags"
-+  [(set (match_operand:SI     0 "register_operand"   "=r,r")
-+      (minus:SI
-+        (minus:SI
-+          (match_operand:SI 1 "register_operand"   " 0,0")
-+          (match_operand:SI 2 "rx_compare_operand" " r,Q"))
-+        (geu:SI (reg:CC CC_REG) (const_int 0))))
-+   (set (reg CC_REG)
-+      (compare
-+        (minus:SI
-+          (minus:SI (match_dup 1) (match_dup 2))
-+          (geu:SI (reg:CC CC_REG) (const_int 0)))
-+        (const_int 0)))]
-+  "reload_completed"
-+  "sbb\t%2, %0"
-+  [(set_attr "timings" "11,33")
-+   (set_attr "length"  "3,6")]
-+)
+   if (lacc && racc
+@@ -1435,29 +1458,67 @@
+   return fold_build2_loc (loc, MEM_REF, exp_type, base, off);
+ }
++DEF_VEC_ALLOC_P_STACK (tree);
++#define VEC_tree_stack_alloc(alloc) VEC_stack_alloc (tree, alloc)
++
+ /* Construct a memory reference to a part of an aggregate BASE at the given
+-   OFFSET and of the same type as MODEL.  In case this is a reference to a
+-   component, the function will replicate the last COMPONENT_REF of model's
+-   expr to access it.  GSI and INSERT_AFTER have the same meaning as in
+-   build_ref_for_offset.  */
++   OFFSET and of the type of MODEL.  In case this is a chain of references
++   to component, the function will replicate the chain of COMPONENT_REFs of
++   the expression of MODEL to access it.  GSI and INSERT_AFTER have the same
++   meaning as in build_ref_for_offset.  */
+ static tree
+ build_ref_for_model (location_t loc, tree base, HOST_WIDE_INT offset,
+                    struct access *model, gimple_stmt_iterator *gsi,
+                    bool insert_after)
+ {
++  tree type = model->type, t;
++  VEC(tree,stack) *cr_stack = NULL;
 +
-+(define_expand "subdi3"
-+  [(set (match_operand:DI           0 "register_operand")
-+      (minus:DI (match_operand:DI 1 "register_operand")
-+                (match_operand:DI 2 "rx_compare_operand")))]
-+  ""
-+{
-+  rtx op0l, op0h, op1l, op1h, op2l, op2h;
+   if (TREE_CODE (model->expr) == COMPONENT_REF)
+     {
+-      tree t, exp_type, fld = TREE_OPERAND (model->expr, 1);
+-      offset -= int_bit_position (fld);
+-      exp_type = TREE_TYPE (TREE_OPERAND (model->expr, 0));
+-      t = build_ref_for_offset (loc, base, offset, exp_type, gsi, insert_after);
+-      return fold_build3_loc (loc, COMPONENT_REF, TREE_TYPE (fld), t, fld,
+-                            NULL_TREE);
++      tree expr = model->expr;
++
++      /* Create a stack of the COMPONENT_REFs so later we can walk them in
++       order from inner to outer.  */
++      cr_stack = VEC_alloc (tree, stack, 6);
++
++      do {
++      tree field = TREE_OPERAND (expr, 1);
++      HOST_WIDE_INT bit_pos = int_bit_position (field);
++
++      /* We can be called with a model different from the one associated
++         with BASE so we need to avoid going up the chain too far.  */
++      if (offset - bit_pos < 0)
++        break;
++
++      offset -= bit_pos;
++      VEC_safe_push (tree, stack, cr_stack, expr);
++
++      expr = TREE_OPERAND (expr, 0);
++      type = TREE_TYPE (expr);
++      } while (TREE_CODE (expr) == COMPONENT_REF);
+     }
+-  else
+-    return build_ref_for_offset (loc, base, offset, model->type,
+-                               gsi, insert_after);
 +
-+  op0l = gen_lowpart (SImode, operands[0]);
-+  op1l = gen_lowpart (SImode, operands[1]);
-+  op2l = gen_lowpart (SImode, operands[2]);
-+  op0h = gen_highpart (SImode, operands[0]);
-+  op1h = gen_highpart (SImode, operands[1]);
-+  op2h = gen_highpart_mode (SImode, DImode, operands[2]);
++  t = build_ref_for_offset (loc, base, offset, type, gsi, insert_after);
 +
-+  emit_insn (gen_subdi3_internal (op0l, op0h, op1l, op2l, op1h, op2h));
-+  DONE;
-+})
++  if (TREE_CODE (model->expr) == COMPONENT_REF)
++    {
++      unsigned i;
++      tree expr;
 +
-+(define_insn_and_split "subdi3_internal"
-+  [(set (match_operand:SI          0 "register_operand"   "=&r,&r")
-+      (minus:SI (match_operand:SI 2 "register_operand"  "  0, r")
-+                (match_operand:SI 3 "rx_compare_operand" "rQ, r")))
-+   (set (match_operand:SI          1 "register_operand"   "= r, r")
-+      (minus:SI
-+        (minus:SI
-+          (match_operand:SI      4 "register_operand"   "  1, 1")
-+          (match_operand:SI      5 "rx_compare_operand" " rQ,rQ"))
-+        (geu:SI (match_dup 2) (match_dup 3))))
-+   (clobber (reg:CC CC_REG))]
-+  ""
-+  "#"
-+  "reload_completed"
-+  [(const_int 0)]
-+{
-+  emit_insn (gen_subsi3_flags (operands[0], operands[2], operands[3]));
-+  emit_insn (gen_sbb_internal (operands[1], operands[4], operands[5]));
-+  DONE;
-+})
++      /* Now replicate the chain of COMPONENT_REFs from inner to outer.  */
++      FOR_EACH_VEC_ELT_REVERSE (tree, cr_stack, i, expr)
++      {
++        tree field = TREE_OPERAND (expr, 1);
++        t = fold_build3_loc (loc, COMPONENT_REF, TREE_TYPE (field), t, field,
++                             NULL_TREE);
++      }
 +
- (define_insn "xorsi3"
-   [(set (match_operand:SI         0 "register_operand" "=r,r,r,r,r,r")
-       (xor:SI (match_operand:SI 1 "register_operand" "%0,0,0,0,0,0")
-               (match_operand:SI 2 "rx_source_operand"
-                                 "r,Sint08,Sint16,Sint24,i,Q")))
--   (set (reg:CC_ZS CC_REG)
--      (compare:CC_ZS (xor:SI (match_dup 1) (match_dup 2))
--                     (const_int 0)))]
-+   (clobber (reg:CC CC_REG))]
-   ""
-   "xor\t%Q2, %0"
-   [(set_attr "timings" "11,11,11,11,11,33")
-    (set_attr "length" "3,4,5,6,7,6")]
- )
++      VEC_free (tree, stack, cr_stack);
++    }
 +
-+(define_insn "*xorsi3_flags"
-+  [(set (match_operand:SI         0 "register_operand" "=r,r,r,r,r,r")
-+      (xor:SI (match_operand:SI 1 "register_operand" "%0,0,0,0,0,0")
-+              (match_operand:SI 2 "rx_source_operand"
-+                                "r,Sint08,Sint16,Sint24,i,Q")))
-+   (set (reg CC_REG)
-+      (compare (xor:SI (match_dup 1) (match_dup 2))
-+               (const_int 0)))]
-+  "reload_completed && rx_match_ccmode (insn, CC_ZSmode)"
-+  "xor\t%Q2, %0"
-+  [(set_attr "timings" "11,11,11,11,11,33")
-+   (set_attr "length" "3,4,5,6,7,6")]
-+)
\f
- ;; Floating Point Instructions
-@@ -1169,9 +1549,7 @@
-   [(set (match_operand:SF          0 "register_operand"  "=r,r,r")
-       (plus:SF (match_operand:SF 1 "register_operand"  "%0,0,0")
-                (match_operand:SF 2 "rx_source_operand"  "r,F,Q")))
--   (set (reg:CC_ZS CC_REG)
--      (compare:CC_ZS (plus:SF (match_dup 1) (match_dup 2))
--                      (const_int 0)))]
-+   (clobber (reg:CC CC_REG))]
-   "ALLOW_RX_FPU_INSNS"
-   "fadd\t%2, %0"
-   [(set_attr "timings" "44,44,66")
-@@ -1182,9 +1560,7 @@
-   [(set (match_operand:SF         0 "register_operand" "=r,r,r")
-       (div:SF (match_operand:SF 1 "register_operand"  "0,0,0")
-               (match_operand:SF 2 "rx_source_operand" "r,F,Q")))
--   (set (reg:CC_ZS CC_REG)
--      (compare:CC_ZS (div:SF (match_dup 1) (match_dup 2))
--                      (const_int 0)))]
-+   (clobber (reg:CC CC_REG))]
-   "ALLOW_RX_FPU_INSNS"
-   "fdiv\t%2, %0"
-   [(set_attr "timings" "1616,1616,1818")
-@@ -1195,9 +1571,7 @@
-   [(set (match_operand:SF          0 "register_operand" "=r,r,r")
-       (mult:SF (match_operand:SF 1 "register_operand" "%0,0,0")
-               (match_operand:SF  2 "rx_source_operand" "r,F,Q")))
--   (set (reg:CC_ZS CC_REG)
--      (compare:CC_ZS (mult:SF (match_dup 1) (match_dup 2))
--                      (const_int 0)))]
-+   (clobber (reg:CC CC_REG))]
-   "ALLOW_RX_FPU_INSNS"
-   "fmul\t%2, %0"
-   [(set_attr "timings" "33,33,55")
-@@ -1208,9 +1582,7 @@
-   [(set (match_operand:SF           0 "register_operand" "=r,r,r")
-       (minus:SF (match_operand:SF 1 "register_operand"  "0,0,0")
-                 (match_operand:SF 2 "rx_source_operand" "r,F,Q")))
--   (set (reg:CC_ZS CC_REG)
--      (compare:CC_ZS (minus:SF (match_dup 1) (match_dup 2))
--                     (const_int 0)))]
-+   (clobber (reg:CC CC_REG))]
-   "ALLOW_RX_FPU_INSNS"
-   "fsub\t%Q2, %0"
-   [(set_attr "timings" "44,44,66")
-@@ -1220,9 +1592,7 @@
- (define_insn "fix_truncsfsi2"
-   [(set (match_operand:SI         0 "register_operand"  "=r,r")
-       (fix:SI (match_operand:SF 1 "rx_compare_operand" "r,Q")))
--   (set (reg:CC_ZS CC_REG)
--      (compare:CC_ZS (fix:SI (match_dup 1))
--                     (const_int 0)))]
-+   (clobber (reg:CC CC_REG))]
-   "ALLOW_RX_FPU_INSNS"
-   "ftoi\t%Q1, %0"
-   [(set_attr "timings" "22,44")
-@@ -1232,9 +1602,7 @@
- (define_insn "floatsisf2"
-   [(set (match_operand:SF           0 "register_operand"  "=r,r")
-       (float:SF (match_operand:SI 1 "rx_compare_operand" "r,Q")))
--   (set (reg:CC_ZS CC_REG)
--      (compare:CC_ZS (float:SF (match_dup 1))
--                      (const_int 0)))]
-+   (clobber (reg:CC CC_REG))]
-   "ALLOW_RX_FPU_INSNS"
-   "itof\t%Q1, %0"
-   [(set_attr "timings" "22,44")
-@@ -1242,217 +1610,216 @@
- )
\f
- ;; Bit manipulation instructions.
--;; Note - there are two versions of each pattern because the memory
--;; accessing versions use QImode whilst the register accessing
--;; versions use SImode.
--;; The peephole are here because the combiner only looks at a maximum
--;; of three instructions at a time.
--(define_insn "bitset"
--  [(set:SI (match_operand:SI                    0 "register_operand" "=r")
--         (ior:SI (match_operand:SI            1 "register_operand" "0")
--                 (ashift:SI (const_int 1)
--                            (match_operand:SI 2 "nonmemory_operand" "ri"))))]
-+;; ??? The *_in_memory patterns will not be matched without further help.
-+;; At one time we had the insv expander generate them, but I suspect that
-+;; in general we get better performance by exposing the register load to
-+;; the optimizers.
-+;;
-+;; An alternate solution would be to re-organize these patterns such
-+;; that allow both register and memory operands.  This would allow the
-+;; register allocator to spill and not load the register operand.  This
-+;; would be possible only for operations for which we have a constant
-+;; bit offset, so that we can adjust the address by ofs/8 and replace
-+;; the offset in the insn by ofs%8.
-+
-+(define_insn "*bitset"
-+  [(set (match_operand:SI                    0 "register_operand" "=r")
-+      (ior:SI (ashift:SI (const_int 1)
-+                         (match_operand:SI 1 "rx_shift_operand" "ri"))
-+              (match_operand:SI            2 "register_operand" "0")))]
-   ""
--  "bset\t%2, %0"
-+  "bset\t%1, %0"
-   [(set_attr "length" "3")]
- )
++  return t;
+ }
  
--(define_insn "bitset_in_memory"
--  [(set:QI (match_operand:QI                    0 "memory_operand" "=m")
--         (ior:QI (match_operand:QI            1 "memory_operand" "0")
--                 (ashift:QI (const_int 1)
--                            (match_operand:QI 2 "nonmemory_operand" "ri"))))]
-+(define_insn "*bitset_in_memory"
-+  [(set (match_operand:QI                    0 "memory_operand" "+Q")
-+      (ior:QI (ashift:QI (const_int 1)
-+                         (match_operand:QI 1 "nonmemory_operand" "ri"))
-+              (match_dup 0)))]
-   ""
--  "bset\t%2, %0.B"
-+  "bset\t%1, %0.B"
-   [(set_attr "length" "3")
-    (set_attr "timings" "34")]
- )
+ /* Construct a memory reference consisting of component_refs and array_refs to
+@@ -2594,6 +2655,10 @@
+             rhs = get_access_replacement (racc);
+             if (!useless_type_conversion_p (lacc->type, racc->type))
+               rhs = fold_build1_loc (loc, VIEW_CONVERT_EXPR, lacc->type, rhs);
++
++            if (racc->grp_partial_lhs && lacc->grp_partial_lhs)
++              rhs = force_gimple_operand_gsi (old_gsi, rhs, true, NULL_TREE,
++                                              true, GSI_SAME_STMT);
+           }
+         else
+           {
+@@ -2609,6 +2674,9 @@
+             else
+               rhs = build_ref_for_model (loc, top_racc->base, offset, lacc,
+                                           new_gsi, true);
++            if (lacc->grp_partial_lhs)
++              rhs = force_gimple_operand_gsi (new_gsi, rhs, true, NULL_TREE,
++                                              false, GSI_NEW_STMT);
+           }
  
--;; (set (reg A) (const_int 1))
--;; (set (reg A) (ashift (reg A) (reg B)))
--;; (set (reg C) (ior (reg A) (reg C)))
--(define_peephole2
--  [(set:SI (match_operand:SI 0 "register_operand" "")
--         (const_int 1))
--   (set:SI (match_dup 0)
--         (ashift:SI (match_dup 0)
--                    (match_operand:SI 1 "register_operand" "")))
--   (set:SI (match_operand:SI 2 "register_operand" "")
--         (ior:SI (match_dup 0)
--                 (match_dup 2)))]
--  "dead_or_set_p (insn, operands[0])"
--  [(set:SI (match_dup 2)
--         (ior:SI (match_dup 2)
--                 (ashift:SI (const_int 1)
--                            (match_dup 1))))]
--)
--  
--;; (set (reg A) (const_int 1))
--;; (set (reg A) (ashift (reg A) (reg B)))
--;; (set (reg A) (ior (reg A) (reg C)))
--;; (set (reg C) (reg A)
--(define_peephole2
--  [(set:SI (match_operand:SI 0 "register_operand" "")
--         (const_int 1))
--   (set:SI (match_dup 0)
--         (ashift:SI (match_dup 0)
--                    (match_operand:SI 1 "register_operand" "")))
--   (set:SI (match_dup 0)
--         (ior:SI (match_dup 0)
--                 (match_operand:SI 2 "register_operand" "")))
--   (set:SI (match_dup 2) (match_dup 0))]
--  "dead_or_set_p (insn, operands[0])"
--  [(set:SI (match_dup 2)
--         (ior:SI (match_dup 2)
--                 (ashift:SI (const_int 1)
--                            (match_dup 1))))]
--)
+         stmt = gimple_build_assign (get_access_replacement (lacc), rhs);
+@@ -3604,7 +3672,8 @@
+         || gimple_code (access->stmt) == GIMPLE_ASM))
+     return true;
+-  if (tree_non_mode_aligned_mem_p (access->expr))
++  if (STRICT_ALIGNMENT
++      && tree_non_aligned_mem_p (access->expr, TYPE_ALIGN (access->type)))
+     return true;
+   return false;
+Index: gcc/lto/lto.c
+===================================================================
+--- gcc/lto/lto.c      (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/lto/lto.c      (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -198,7 +198,7 @@
+   uint32_t ix;
+   tree decl;
+   uint32_t i, j;
 -  
--(define_insn "bitinvert"
--  [(set:SI (match_operand:SI 0 "register_operand" "+r")
--         (xor:SI (match_operand:SI 1 "register_operand" "0")
--                 (ashift:SI (const_int 1)
--                            (match_operand:SI 2 "nonmemory_operand" "ri"))))]
-+(define_insn "*bitinvert"
-+  [(set (match_operand:SI 0 "register_operand" "=r")
-+      (xor:SI (ashift:SI (const_int 1)
-+                         (match_operand:SI 1 "rx_shift_operand" "ri"))
-+              (match_operand:SI 2 "register_operand" "0")))]
-   ""
--  "bnot\t%2, %0"
-+  "bnot\t%1, %0"
-   [(set_attr "length" "3")]
- )
--(define_insn "bitinvert_in_memory"
--  [(set:QI (match_operand:QI 0 "memory_operand" "+m")
--         (xor:QI (match_operand:QI 1 "register_operand" "0")
--                 (ashift:QI (const_int 1)
--                            (match_operand:QI 2 "nonmemory_operand" "ri"))))]
-+(define_insn "*bitinvert_in_memory"
-+  [(set (match_operand:QI 0 "memory_operand" "+Q")
-+      (xor:QI (ashift:QI (const_int 1)
-+                         (match_operand:QI 1 "nonmemory_operand" "ri"))
-+              (match_dup 0)))]
-   ""
--  "bnot\t%2, %0.B"
-+  "bnot\t%1, %0.B"
-   [(set_attr "length" "5")
-    (set_attr "timings" "33")]
- )
--;; (set (reg A) (const_int 1))
--;; (set (reg A) (ashift (reg A) (reg B)))
--;; (set (reg C) (xor (reg A) (reg C)))
--(define_peephole2
--  [(set:SI (match_operand:SI 0 "register_operand" "")
--         (const_int 1))
--   (set:SI (match_dup 0)
--         (ashift:SI (match_dup 0)
--                    (match_operand:SI 1 "register_operand" "")))
--   (set:SI (match_operand:SI 2 "register_operand" "")
--         (xor:SI (match_dup 0)
--                 (match_dup 2)))]
--  "dead_or_set_p (insn, operands[0])"
--  [(set:SI (match_dup 2)
--         (xor:SI (match_dup 2)
--                 (ashift:SI (const_int 1)
--                            (match_dup 1))))]
-+(define_insn "*bitclr"
-+  [(set (match_operand:SI 0 "register_operand" "=r")
-+      (and:SI (not:SI
-+                (ashift:SI
-+                  (const_int 1)
-+                  (match_operand:SI 1 "rx_shift_operand" "ri")))
-+              (match_operand:SI 2 "register_operand" "0")))]
-   ""
-+  "bclr\t%1, %0"
-+  [(set_attr "length" "3")]
- )
++
+   ix = *data++;
+   decl = lto_streamer_cache_get (data_in->reader_cache, (int) ix);
+   if (TREE_CODE (decl) != FUNCTION_DECL)
+@@ -241,9 +241,9 @@
+               VEC(ld_plugin_symbol_resolution_t,heap) *resolutions)
+ {
+   const struct lto_decl_header *header = (const struct lto_decl_header *) data;
+-  const int32_t decl_offset = sizeof (struct lto_decl_header);
+-  const int32_t main_offset = decl_offset + header->decl_state_size;
+-  const int32_t string_offset = main_offset + header->main_size;
++  const int decl_offset = sizeof (struct lto_decl_header);
++  const int main_offset = decl_offset + header->decl_state_size;
++  const int string_offset = main_offset + header->main_size;
+   struct lto_input_block ib_main;
+   struct data_in *data_in;
+   unsigned int i;
+@@ -291,17 +291,20 @@
+   if (data_ptr != data_end)
+     internal_error ("bytecode stream: garbage at the end of symbols section");
 -  
--;; (set (reg A) (const_int 1))
--;; (set (reg A) (ashift (reg A) (reg B)))
--;; (set (reg A) (xor (reg A) (reg C)))
--;; (set (reg C) (reg A))
--(define_peephole2
--  [(set:SI (match_operand:SI 0 "register_operand" "")
--         (const_int 1))
--   (set:SI (match_dup 0)
--         (ashift:SI (match_dup 0)
--                    (match_operand:SI 1 "register_operand" "")))
--   (set:SI (match_dup 0)
--         (xor:SI (match_dup 0)
--                 (match_operand:SI 2 "register_operand" "")))
--   (set:SI (match_dup 2) (match_dup 0))]
--  "dead_or_set_p (insn, operands[0])"
--  [(set:SI (match_dup 2)
--         (xor:SI (match_dup 2)
--                 (ashift:SI (const_int 1)
--                            (match_dup 1))))]
-+
-+(define_insn "*bitclr_in_memory"
-+  [(set (match_operand:QI 0 "memory_operand" "+Q")
-+      (and:QI (not:QI
-+                (ashift:QI
-+                  (const_int 1)
-+                  (match_operand:QI 1 "nonmemory_operand" "ri")))
-+              (match_dup 0)))]
-   ""
-+  "bclr\t%1, %0.B"
-+  [(set_attr "length" "3")
-+   (set_attr "timings" "34")]
- )
++
+   /* Set the current decl state to be the global state. */
+   decl_data->current_decl_state = decl_data->global_decl_state;
  
--(define_insn "bitclr"
--  [(set:SI (match_operand:SI 0 "register_operand" "+r")
--         (and:SI (match_operand:SI 1 "register_operand" "0")
--                 (not:SI (ashift:SI (const_int 1)
--                                    (match_operand:SI 2 "nonmemory_operand" "ri")))))]
-+(define_insn "*insv_imm"
-+  [(set (zero_extract:SI
-+        (match_operand:SI 0 "register_operand" "+r")
-+        (const_int 1)
-+        (match_operand:SI 1 "rx_shift_operand" "ri"))
-+      (match_operand:SI 2 "const_int_operand" ""))]
-   ""
--  "bclr\t%2, %0"
-+{
-+  if (INTVAL (operands[2]) & 1)
-+    return "bset\t%1, %0";
-+  else
-+    return "bclr\t%1, %0";
-+}
-   [(set_attr "length" "3")]
- )
+   lto_data_in_delete (data_in);
+ }
  
--(define_insn "bitclr_in_memory"
--  [(set:QI (match_operand:QI 0 "memory_operand" "+m")
--         (and:QI (match_operand:QI 1 "memory_operand" "0")
--                 (not:QI (ashift:QI (const_int 1)
--                                    (match_operand:QI 2 "nonmemory_operand" "ri")))))]
-+(define_insn_and_split "rx_insv_reg"
-+  [(set (zero_extract:SI
-+        (match_operand:SI 0 "register_operand" "+r")
-+        (const_int 1)
-+        (match_operand:SI 1 "const_int_operand" ""))
-+      (match_operand:SI 2 "register_operand" "r"))
-+   (clobber (reg:CC CC_REG))]
-   ""
--  "bclr\t%2, %0.B"
--  [(set_attr "length" "3")
--   (set_attr "timings" "34")]
-+  "#"
-+  "reload_completed"
-+  [(set (zero_extract:SI (match_dup 0) (const_int 1) (match_dup 1))
-+      (match_dup 3))]
-+{
-+  rtx flags, x;
-+
-+  /* Emit tst #1, op2.  */
-+  flags = gen_rtx_REG (CC_ZSmode, CC_REG);
-+  x = gen_rtx_AND (SImode, operands[2], const1_rtx);
-+  x = gen_rtx_COMPARE (CC_ZSmode, x, const0_rtx);
-+  x = gen_rtx_SET (VOIDmode, flags, x);
-+  emit_insn (x);
-+
-+  /* Emit bmne.  */
-+  operands[3] = gen_rtx_NE (SImode, flags, const0_rtx);
-+})
+-/* strtoll is not portable. */
+-int64_t
+-lto_parse_hex (const char *p) {
+-  uint64_t ret = 0;
++/* Custom version of strtoll, which is not portable.  */
 +
-+(define_insn_and_split "*insv_cond"
-+  [(set (zero_extract:SI
-+        (match_operand:SI 0 "register_operand" "+r")
-+        (const_int 1)
-+        (match_operand:SI 1 "const_int_operand" ""))
-+      (match_operator:SI 4 "comparison_operator"
-+        [(match_operand:SI 2 "register_operand" "r")
-+         (match_operand:SI 3 "rx_source_operand" "riQ")]))
-+   (clobber (reg:CC CC_REG))]
-+  ""
-+  "#"
-+  "reload_completed"
-+  [(set (zero_extract:SI (match_dup 0) (const_int 1) (match_dup 1))
-+      (match_dup 4))]
++static HOST_WIDEST_INT
++lto_parse_hex (const char *p)
 +{
-+  rtx flags, x;
++  HOST_WIDEST_INT ret = 0;
 +
-+  flags = gen_rtx_REG (CCmode, CC_REG);
-+  x = gen_rtx_COMPARE (CCmode, operands[2], operands[3]);
-+  x = gen_rtx_SET (VOIDmode, flags, x);
-+  emit_insn (x);
-+
-+  operands[4] = gen_rtx_fmt_ee (GET_CODE (operands[4]), SImode,
-+                              flags, const0_rtx);
-+})
+   for (; *p != '\0'; ++p)
+     {
+       char c = *p;
+@@ -317,6 +320,7 @@
+         internal_error ("could not parse hex number");
+       ret |= part;
+     }
 +
-+(define_insn "*bmcc"
-+  [(set (zero_extract:SI
-+        (match_operand:SI 0 "register_operand" "+r")
-+        (const_int 1)
-+        (match_operand:SI 1 "const_int_operand" ""))
-+      (match_operator:SI 2 "comparison_operator"
-+        [(reg CC_REG) (const_int 0)]))]
-+  "reload_completed"
-+  "bm%B2\t%1, %0"
-+  [(set_attr "length" "3")]
- )
+   return ret;
+ }
  
--;; (set (reg A) (const_int -2))
--;; (set (reg A) (rotate (reg A) (reg B)))
--;; (set (reg C) (and (reg A) (reg C)))
--(define_peephole2
--  [(set:SI (match_operand:SI 0 "register_operand" "")
--         (const_int -2))
--   (set:SI (match_dup 0)
--         (rotate:SI (match_dup 0)
--                    (match_operand:SI 1 "register_operand" "")))
--   (set:SI (match_operand:SI 2 "register_operand" "")
--         (and:SI (match_dup 0)
--                 (match_dup 2)))]
--  "dead_or_set_p (insn, operands[0])"
--  [(set:SI (match_dup 2)
--         (and:SI (match_dup 2)
--                 (not:SI (ashift:SI (const_int 1)
--                                    (match_dup 1)))))]
-+;; Work around the fact that X=Y<0 is preferentially expanded as a shift.
-+(define_insn_and_split "*insv_cond_lt"
-+  [(set (zero_extract:SI
-+        (match_operand:SI 0 "register_operand" "+r")
-+        (const_int 1)
-+        (match_operand:SI 1 "const_int_operand" ""))
-+      (match_operator:SI 3 "rshift_operator"
-+        [(match_operand:SI 2 "register_operand" "r")
-+         (const_int 31)]))
-+   (clobber (reg:CC CC_REG))]
-+  ""
-+  "#"
-+  ""
-+  [(parallel [(set (zero_extract:SI (match_dup 0) (const_int 1) (match_dup 1))
-+                 (lt:SI (match_dup 2) (const_int 0)))
-+            (clobber (reg:CC CC_REG))])]
-+  ""
- )
--  
--;; (set (reg A) (const_int -2))
--;; (set (reg A) (rotate (reg A) (reg B)))
--;; (set (reg A) (and (reg A) (reg C)))
--;; (set (reg C) (reg A)
--(define_peephole2
--  [(set:SI (match_operand:SI 0 "register_operand" "")
--         (const_int -2))
--   (set:SI (match_dup 0)
--         (rotate:SI (match_dup 0)
--                    (match_operand:SI 1 "register_operand" "")))
--   (set:SI (match_dup 0)
--         (and:SI (match_dup 0)
--                 (match_operand:SI 2 "register_operand" "")))
--   (set:SI (match_dup 2) (match_dup 0))]
--  "dead_or_set_p (insn, operands[0])"
--  [(set:SI (match_dup 2)
--         (and:SI (match_dup 2)
--                 (not:SI (ashift:SI (const_int 1)
--                                    (match_dup 1)))))]
--)
- (define_expand "insv"
--  [(set:SI (zero_extract:SI (match_operand:SI 0 "nonimmediate_operand") ;; Destination
--                          (match_operand    1 "immediate_operand")    ;; # of bits to set
--                          (match_operand    2 "immediate_operand"))   ;; Starting bit
--         (match_operand                     3 "immediate_operand"))]  ;; Bits to insert
-+  [(set (zero_extract:SI
-+        (match_operand:SI 0 "register_operand")       ;; Destination
-+        (match_operand:SI 1 "const_int_operand")      ;; # of bits to set
-+        (match_operand:SI 2 "nonmemory_operand"))     ;; Starting bit
-+      (match_operand:SI   3 "nonmemory_operand"))]    ;; Bits to insert
-   ""
--  {
--    if (rx_expand_insv (operands))
-+{
-+  /* We only handle single-bit inserts.  */
-+  if (!CONST_INT_P (operands[1]) || INTVAL (operands[1]) != 1)
-+    FAIL;
+@@ -352,7 +356,7 @@
+     {
+       int t;
+       char offset_p[17];
+-      int64_t offset;
++      HOST_WIDEST_INT offset;
+       t = fscanf (resolution, "@0x%16s", offset_p);
+       if (t != 1)
+         internal_error ("could not parse file offset");
+Index: gcc/lto/lto.h
+===================================================================
+--- gcc/lto/lto.h      (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/lto/lto.h      (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -60,6 +60,4 @@
+   size_t len;
+ };
+-int64_t lto_parse_hex (const char *p);
+-
+ #endif /* LTO_H */
+Index: gcc/lto/ChangeLog
+===================================================================
+--- gcc/lto/ChangeLog  (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/lto/ChangeLog  (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -1,3 +1,10 @@
++2011-12-13  Eric Botcazou  <ebotcazou@adacore.com>
 +
-+  /* Either the bit to insert or the position must be constant.  */
-+  if (CONST_INT_P (operands[3]))
-+    operands[3] = GEN_INT (INTVAL (operands[3]) & 1);
-+  else if (CONST_INT_P (operands[2]))
-+    {
-+      emit_insn (gen_rx_insv_reg (operands[0], operands[2], operands[3]));
-       DONE;
-+    }
-+  else
-     FAIL;
--  }
--)   
-+})
\f
- ;; Atomic exchange operation.
- (define_insn "sync_lock_test_and_setsi"
--  [(set:SI (match_operand:SI 0 "register_operand"   "=r,r")
--         (match_operand:SI 1 "rx_compare_operand" "=r,Q"))
--   (set:SI (match_dup 1)
--         (match_operand:SI 2 "register_operand"    "0,0"))]
-+  [(set (match_operand:SI 0 "register_operand"   "=r,r")
-+      (match_operand:SI 1 "rx_compare_operand" "=r,Q"))
-+   (set (match_dup 1)
-+      (match_operand:SI 2 "register_operand"    "0,0"))]
-   ""
-   "xchg\t%1, %0"
-   [(set_attr "length" "3,6")
-@@ -1462,9 +1829,9 @@
- ;; Block move functions.
- (define_expand "movstr"
--  [(set:SI (match_operand:BLK 1 "memory_operand")    ;; Dest
--         (match_operand:BLK 2 "memory_operand"))   ;; Source
--   (use (match_operand:SI     0 "register_operand")) ;; Updated Dest
-+  [(set (match_operand:BLK 1 "memory_operand")    ;; Dest
-+      (match_operand:BLK 2 "memory_operand"))   ;; Source
-+   (use (match_operand:SI  0 "register_operand")) ;; Updated Dest
-   ]
-   ""
-   {
-@@ -1487,8 +1854,8 @@
- )
- (define_insn "rx_movstr"
--  [(set:SI (mem:BLK (reg:SI 1))
--         (mem:BLK (reg:SI 2)))
-+  [(set (mem:BLK (reg:SI 1))
-+      (mem:BLK (reg:SI 2)))
-    (unspec_volatile:BLK [(reg:SI 1) (reg:SI 2) (reg:SI 3)] UNSPEC_MOVSTR)
-    (clobber (reg:SI 1))
-    (clobber (reg:SI 2))
-@@ -1500,8 +1867,8 @@
- )
- (define_insn "rx_strend"
--  [(set:SI (match_operand:SI                      0 "register_operand" "=r")
--         (unspec_volatile:SI [(match_operand:SI 1 "register_operand"  "r")
-+  [(set (match_operand:SI                      0 "register_operand" "=r")
-+      (unspec_volatile:SI [(match_operand:SI 1 "register_operand"  "r")
-                               (reg:SI 3)] UNSPEC_STRLEN))
-    (clobber (reg:SI 1))
-    (clobber (reg:SI 2))
-@@ -1582,8 +1949,8 @@
- )
- (define_insn "rx_setmem"
--  [(set:BLK (mem:BLK (reg:SI 1)) (reg 2))
--   (unspec_volatile:BLK [(reg:SI 1) (reg:SI 2) (reg:SI 3)] UNSPEC_SETMEM)
-+  [(set (mem:BLK (reg:SI 1))
-+      (unspec_volatile:BLK [(reg:SI 1) (reg:SI 2) (reg:SI 3)] UNSPEC_SETMEM))
-    (clobber (reg:SI 1))
-    (clobber (reg:SI 3))]
-   ""
-@@ -1636,11 +2003,11 @@
- )
++      * lto.h (lto_parse_hex): Delete.
++      * lto.c (lto_read_decls): Use 'int' for offsets.
++      (lto_parse_hex): Make static and return proper 64-bit host type.
++      (lto_resolution_read): Use proper 64-bit host type.
++
+ 2011-10-26  Release Manager
  
- (define_insn "rx_cmpstrn"
--  [(set:SI (match_operand:SI 0 "register_operand" "=r")
--         (unspec_volatile:SI [(reg:SI 1) (reg:SI 2) (reg:SI 3)]
--                             UNSPEC_CMPSTRN))
--   (use (match_operand:BLK   1 "memory_operand" "m"))
--   (use (match_operand:BLK   2 "memory_operand" "m"))
-+  [(set (match_operand:SI 0 "register_operand" "=r")
-+      (unspec_volatile:SI [(reg:SI 1) (reg:SI 2) (reg:SI 3)]
-+                          UNSPEC_CMPSTRN))
-+   (use (match_operand:BLK 1 "memory_operand" "m"))
-+   (use (match_operand:BLK 2 "memory_operand" "m"))
-    (clobber (reg:SI 1))
-    (clobber (reg:SI 2))
-    (clobber (reg:SI 3))
-@@ -1773,7 +2140,7 @@
- ;; Byte swap (two 16-bit values).
- (define_insn "revw"
--  [(set (match_operand:SI             0 "register_operand" "+r")
-+  [(set (match_operand:SI             0 "register_operand" "=r")
-       (unspec:SI [(match_operand:SI 1 "register_operand"  "r")]
-                  UNSPEC_BUILTIN_REVW))]
-   ""
-@@ -1807,7 +2174,7 @@
- ;; Clear Processor Status Word
- (define_insn "clrpsw"
--  [(unspec:SI [(match_operand:SI 0 "immediate_operand" "i")]
-+  [(unspec_volatile:SI [(match_operand:SI 0 "immediate_operand" "i")]
-             UNSPEC_BUILTIN_CLRPSW)
-    (clobber (reg:CC CC_REG))]
-   ""
-@@ -1817,7 +2184,7 @@
- ;; Set Processor Status Word
- (define_insn "setpsw"
--  [(unspec:SI [(match_operand:SI 0 "immediate_operand" "i")]
-+  [(unspec_volatile:SI [(match_operand:SI 0 "immediate_operand" "i")]
-             UNSPEC_BUILTIN_SETPSW)
-    (clobber (reg:CC CC_REG))]
-   ""
-@@ -1828,7 +2195,7 @@
- ;; Move from control register
- (define_insn "mvfc"
-   [(set (match_operand:SI             0 "register_operand" "=r")
--      (unspec:SI [(match_operand:SI 1 "immediate_operand" "i")]
-+      (unspec_volatile:SI [(match_operand:SI 1 "immediate_operand" "i")]
-                  UNSPEC_BUILTIN_MVFC))]
-   ""
-   "mvfc\t%C1, %0"
-@@ -1837,7 +2204,7 @@
- ;; Move to control register
- (define_insn "mvtc"
--  [(unspec:SI [(match_operand:SI 0 "immediate_operand" "i,i")
-+  [(unspec_volatile:SI [(match_operand:SI 0 "immediate_operand" "i,i")
-              (match_operand:SI 1 "nonmemory_operand" "r,i")]
-             UNSPEC_BUILTIN_MVTC)]
-   ""
-@@ -1852,7 +2219,7 @@
+       * GCC 4.6.2 released.
+Index: gcc/ipa-prop.c
+===================================================================
+--- gcc/ipa-prop.c     (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/ipa-prop.c     (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -2868,9 +2868,9 @@
+ {
+   const struct lto_function_header *header =
+     (const struct lto_function_header *) data;
+-  const int32_t cfg_offset = sizeof (struct lto_function_header);
+-  const int32_t main_offset = cfg_offset + header->cfg_size;
+-  const int32_t string_offset = main_offset + header->main_size;
++  const int cfg_offset = sizeof (struct lto_function_header);
++  const int main_offset = cfg_offset + header->cfg_size;
++  const int string_offset = main_offset + header->main_size;
+   struct data_in *data_in;
+   struct lto_input_block ib_main;
+   unsigned int i;
+Index: gcc/po/ChangeLog
+===================================================================
+--- gcc/po/ChangeLog   (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/po/ChangeLog   (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -1,3 +1,7 @@
++2011-10-30  Joseph Myers  <joseph@codesourcery.com>
++
++      * ja.po: Update.
++
+ 2011-10-26  Release Manager
+       * GCC 4.6.2 released.
+Index: gcc/po/ja.po
+===================================================================
+--- gcc/po/ja.po       (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/po/ja.po       (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -20,7 +20,7 @@
+ "Project-Id-Version: gcc 4.6.1\n"
+ "Report-Msgid-Bugs-To: http://gcc.gnu.org/bugs.html\n"
+ "POT-Creation-Date: 2011-06-21 10:27+0000\n"
+-"PO-Revision-Date: 2011-10-25 22:36+0900\n"
++"PO-Revision-Date: 2011-10-30 18:48+0900\n"
+ "Last-Translator: Yasuaki Taniguchi <yasuakit@gmail.com>\n"
+ "Language-Team: Japanese <translation-team-ja@lists.sourceforge.net>\n"
+ "Language: ja\n"
+@@ -834,12 +834,12 @@
+ #: gcov.c:420
+ #, c-format
+ msgid "  -a, --all-blocks                Show information for every basic block\n"
+-msgstr ""
++msgstr "  -a, --all-blocks                各基本ブロックに関する情報を表示する\n"
+ #: gcov.c:421
+ #, c-format
+ msgid "  -b, --branch-probabilities      Include branch probabilities in output\n"
+-msgstr ""
++msgstr "  -b, --branch-probabilities      出力に分岐可能性情報を含める\n"
+ #: gcov.c:422
+ #, c-format
+@@ -847,6 +847,8 @@
+ "  -c, --branch-counts             Given counts of branches taken\n"
+ "                                    rather than percentages\n"
+ msgstr ""
++"  -c, --branch-counts             分岐に関する百分率では無く行われた\n"
++"                                    回数を取得する\n"
+ #: gcov.c:424
+ #, c-format
+@@ -859,21 +861,23 @@
+ "  -l, --long-file-names           Use long output file names for included\n"
+ "                                    source files\n"
+ msgstr ""
++"  -l, --long-file-names           インクルードされたソースファイルに関する長い\n"
++"                                    出力ファイル名を使用する\n"
+ #: gcov.c:427
+ #, c-format
+ msgid "  -f, --function-summaries        Output summaries for each function\n"
+-msgstr ""
++msgstr "  -f, --function-summaries        各関数に関する要約を出力する\n"
+ #: gcov.c:428
+ #, c-format
+ msgid "  -o, --object-directory DIR|FILE Search for object files in DIR or called FILE\n"
+-msgstr ""
++msgstr "  -o, --object-directory DIR|FILE オブジェクトファイルを DIR 内または呼び出し用 FILE 内で検索する\n"
+ #: gcov.c:429
+ #, c-format
+ msgid "  -p, --preserve-paths            Preserve all pathname components\n"
+-msgstr ""
++msgstr "  -p, --preserve-paths            すべてのパス名要素を保護する\n"
+ #: gcov.c:430
+ #, c-format
+@@ -977,7 +981,7 @@
+ #: gcov.c:1045
+ #, c-format
+ msgid "%s:cannot open data file, assuming not executed\n"
+-msgstr ""
++msgstr "%s:データファイルを開けません。実行されていないと見なします\n"
+ #: gcov.c:1052
+ #, c-format
+@@ -1027,7 +1031,7 @@
+ #: gcov.c:1379
+ #, c-format
+ msgid "%s:graph is unsolvable for '%s'\n"
+-msgstr ""
++msgstr "%s: '%s' 用のグラフが解決できません\n"
+ #: gcov.c:1459
+ #, c-format
+@@ -1037,7 +1041,7 @@
+ #: gcov.c:1462
+ #, c-format
+ msgid "Lines executed:%s of %d\n"
+-msgstr ""
++msgstr "実行された行:%s of %d\n"
+ #: gcov.c:1466
+ #, c-format
+@@ -1047,7 +1051,7 @@
+ #: gcov.c:1472
+ #, c-format
+ msgid "Branches executed:%s of %d\n"
+-msgstr ""
++msgstr "実行された分岐:%s of %d\n"
+ #: gcov.c:1476
+ #, c-format
+@@ -1057,12 +1061,12 @@
+ #: gcov.c:1482
+ #, c-format
+ msgid "No branches\n"
+-msgstr ""
++msgstr "分岐がありません\n"
+ #: gcov.c:1484
+ #, c-format
+ msgid "Calls executed:%s of %d\n"
+-msgstr ""
++msgstr "実行された呼び出し:%s of %d\n"
+ #: gcov.c:1488
+ #, c-format
+@@ -1075,24 +1079,24 @@
+ msgstr "%s: '%s' に対する行がありません\n"
+ #: gcov.c:1843
+-#, fuzzy, c-format
++#, c-format
+ msgid "call   %2d returned %s\n"
+-msgstr "呼び出し %d の戻り = %d\n"
++msgstr ""
+ #: gcov.c:1848
+-#, fuzzy, c-format
++#, c-format
+ msgid "call   %2d never executed\n"
+-msgstr "呼び出し %d は一度も実行せず\n"
++msgstr ""
+ #: gcov.c:1853
+-#, fuzzy, c-format
++#, c-format
+ msgid "branch %2d taken %s%s\n"
+-msgstr "ブランチ %d 受理 = %d%%\n"
++msgstr ""
+ #: gcov.c:1857
+-#, fuzzy, c-format
++#, c-format
+ msgid "branch %2d never executed\n"
+-msgstr "ブランチ %d は一度も実行されず\n"
++msgstr ""
+ #: gcov.c:1862
+ #, c-format
+@@ -1100,9 +1104,9 @@
+ msgstr ""
+ #: gcov.c:1865
+-#, fuzzy, c-format
++#, c-format
+ msgid "unconditional %2d never executed\n"
+-msgstr "呼び出し %d は一度も実行せず\n"
++msgstr ""
+ #: gcov.c:1901
+ #, c-format
+@@ -1412,11 +1416,11 @@
+ #: opts.c:1183
+ msgid "The following options take separate arguments"
+-msgstr ""
++msgstr "次のオプションは分離した引数を取ります"
+ #: opts.c:1185
+ msgid "The following options take joined arguments"
+-msgstr ""
++msgstr "次のオプションは結合した引数を取ります"
+ #: opts.c:1196
+ msgid "The following options are language-related"
+@@ -1472,7 +1476,7 @@
+ #: targhooks.c:1469
+ #, c-format
+ msgid "created and used with differing settings of '%s'"
+-msgstr ""
++msgstr "作成時と使用時で '%s' の設定が異なります"
+ #: targhooks.c:1471
+ msgid "out of memory"
+@@ -1480,11 +1484,11 @@
+ #: targhooks.c:1486
+ msgid "created and used with different settings of -fpic"
+-msgstr ""
++msgstr "作成時と使用時で -fpic の設定が異なります"
+ #: targhooks.c:1488
+ msgid "created and used with different settings of -fpie"
+-msgstr ""
++msgstr "作成時と使用時で -fpie の設定が異なります"
+ #: tlink.c:386
+ #, c-format
+@@ -1717,11 +1721,11 @@
+ #: params.def:100
+ msgid "The maximum depth of recursive inlining for inline functions"
+-msgstr ""
++msgstr "インライン関数を再帰的にインライン化する時の最大深度"
+ #: params.def:105
+ msgid "The maximum depth of recursive inlining for non-inline functions"
+-msgstr ""
++msgstr "非インライン関数を再帰的にインライン化する時の最大深度"
+ #: params.def:110
+ msgid "Inline recursively only when the probability of call being executed exceeds the parameter"
+@@ -1761,16 +1765,15 @@
+ #: params.def:180
+ msgid "The size of function body to be considered large"
+-msgstr ""
++msgstr "大きいと見なされる関数本体のサイズ"
+ #: params.def:184
+ msgid "Maximal growth due to inlining of large function (in percent)"
+ msgstr ""
+ #: params.def:188
+-#, fuzzy
+ msgid "The size of translation unit to be considered large"
+-msgstr "翻訳単位全体をファイルにダンプする"
++msgstr "大きいと見なされる翻訳単位のサイズ"
+ #: params.def:192
+ msgid "How much can given compilation unit grow because of the inlining (in percent)"
+@@ -1786,20 +1789,19 @@
+ #: params.def:204
+ msgid "The size of stack frame to be considered large"
+-msgstr ""
++msgstr "大きいと見なされるスタックフレームのサイズ"
+ #: params.def:208
+ msgid "Maximal stack frame growth due to inlining (in percent)"
+-msgstr ""
++msgstr "インライン化によって増加するスタックフレームの最大量 (百分率)"
+ #: params.def:215
+ msgid "The maximum amount of memory to be allocated by GCSE"
+-msgstr ""
++msgstr "GCSE によって配置されるメモリの最大量"
+ #: params.def:222
+-#, fuzzy
+ msgid "The maximum ratio of insertions to deletions of expressions in GCSE"
+-msgstr "RPTS 用の最大反復数を指定する"
++msgstr ""
+ #: params.def:233
+ msgid "The threshold ratio for performing partial redundancy elimination after reload"
+@@ -1963,9 +1965,8 @@
+ msgstr ""
+ #: params.def:470
+-#, fuzzy
+ msgid "Bound on number of iv uses in loop optimized in iv optimizations"
+-msgstr "目立たない、コストのかかる最適化を行なう"
++msgstr ""
+ #: params.def:478
+ msgid "If number of candidates in the set is smaller, we always try to remove unused ivs during its optimization"
+@@ -2044,9 +2045,8 @@
+ msgstr ""
+ #: params.def:594
+-#, fuzzy
+ msgid "The maximum number of iterations through CFG to extend regions"
+-msgstr "RPTS 用の最大反復数を指定する"
++msgstr ""
+ #: params.def:599
+ msgid "The maximum conflict delay for an insn to be considered for speculative motion"
+@@ -2077,9 +2077,8 @@
+ msgstr ""
+ #: params.def:637
+-#, fuzzy
+ msgid "The upper bound for sharing integer constants"
+-msgstr "`%s' の列挙値が整数定数ではありません"
++msgstr "整数定数を共有するための上限値"
+ #: params.def:656
+ msgid "Minimum number of virtual mappings to consider switching to full virtual renames"
+@@ -2111,11 +2110,11 @@
+ #: params.def:714
+ msgid "The number of insns executed before prefetch is completed"
+-msgstr ""
++msgstr "プリフェッチが完了する前に実行される命令数"
+ #: params.def:721
+ msgid "The number of prefetches that can run at the same time"
+-msgstr ""
++msgstr "同時に実行可能なプリフェッチの数"
+ #: params.def:728
+ msgid "The size of L1 cache"
+@@ -2162,9 +2161,8 @@
+ msgstr ""
+ #: params.def:806
+-#, fuzzy
+ msgid "maximum number of parameters in a SCoP"
+-msgstr "RPTS 用の最大反復数を指定する"
++msgstr "SCoP 内のパラメータの最大数"
+ #: params.def:813
+ msgid "maximum number of basic blocks per function to be analyzed by Graphite"
+@@ -2597,9 +2595,9 @@
+ msgstr "無効な %%E 値"
+ #: config/alpha/alpha.c:5431 config/alpha/alpha.c:5479
+-#, fuzzy, c-format
++#, c-format
+ msgid "unknown relocation unspec"
+-msgstr "不明な設定済コンストラクタ型です"
++msgstr ""
+ #: config/alpha/alpha.c:5440 config/crx/crx.c:1119
+ #: config/rs6000/rs6000.c:16490 config/spu/spu.c:1726
+@@ -3000,32 +2998,32 @@
+ #: config/i386/i386.c:14106 config/i386/i386.c:14146
+ #, c-format
+ msgid "operand is not a condition code, invalid operand code 'D'"
+-msgstr ""
++msgstr "被演算子は条件コードではありません。無効な被演算子コード 'D' です"
+ #: config/i386/i386.c:14172
+ #, c-format
+ msgid "operand is neither a constant nor a condition code, invalid operand code 'C'"
+-msgstr ""
++msgstr "被演算子は定数でも条件コードでもありません。無効な被演算子コード 'C' です"
+ #: config/i386/i386.c:14182
+ #, c-format
+ msgid "operand is neither a constant nor a condition code, invalid operand code 'F'"
+-msgstr ""
++msgstr "被演算子は定数でも条件コードでもありません。無効な被演算子コード 'F' です"
+ #: config/i386/i386.c:14200
+ #, c-format
+ msgid "operand is neither a constant nor a condition code, invalid operand code 'c'"
+-msgstr ""
++msgstr "被演算子は定数でも条件コードでもありません。無効な被演算子コード 'c' です"
+ #: config/i386/i386.c:14210
+ #, c-format
+ msgid "operand is neither a constant nor a condition code, invalid operand code 'f'"
+-msgstr ""
++msgstr "被演算子は定数でも条件コードでもありません。無効な被演算子コード 'f' です"
+ #: config/i386/i386.c:14313
+ #, c-format
+ msgid "operand is not a condition code, invalid operand code 'Y'"
+-msgstr ""
++msgstr "被演算子は条件コードではありません。無効な被演算子コード 'Y' です"
+ #: config/i386/i386.c:14339
+ #, c-format
+@@ -3098,7 +3096,7 @@
+ #: config/lm32/lm32.c:529
+ #, c-format
+ msgid "only 0.0 can be loaded as an immediate"
+-msgstr ""
++msgstr "即値としてロードできるのは 0.0 のみです"
+ #: config/lm32/lm32.c:599
+ msgid "bad operand"
+@@ -3138,15 +3136,15 @@
+ #: config/m32r/m32r.c:2290
+ msgid "pre-increment address is not a register"
+-msgstr ""
++msgstr "前置増分アドレスがレジスタではありません"
+ #: config/m32r/m32r.c:2297
+ msgid "pre-decrement address is not a register"
+-msgstr ""
++msgstr "前置減分アドレスがレジスタではありません"
+ #: config/m32r/m32r.c:2304
+ msgid "post-increment address is not a register"
+-msgstr ""
++msgstr "後置増分アドレスがレジスタではありません"
+ #: config/m32r/m32r.c:2380 config/m32r/m32r.c:2394
+ #: config/rs6000/rs6000.c:25500
+@@ -3252,7 +3250,7 @@
+ #: config/mmix/mmix.c:1589 config/mmix/mmix.c:1719
+ msgid "MMIX Internal: Expected a CONST_INT, not this"
+-msgstr ""
++msgstr "MMIX 内部: CONST_INT が予期されますが、異なっています"
+ #: config/mmix/mmix.c:1668
+ msgid "MMIX Internal: Bad value for 'm', not a CONST_INT"
+@@ -3260,11 +3258,11 @@
+ #: config/mmix/mmix.c:1687
+ msgid "MMIX Internal: Expected a register, not this"
+-msgstr ""
++msgstr "MMIX 内部: レジスタが予期されますが、異なっています"
+ #: config/mmix/mmix.c:1697
+ msgid "MMIX Internal: Expected a constant, not this"
+-msgstr ""
++msgstr "MMIX 内部: 定数が予期されますが、異なっています"
+ #. We need the original here.
+ #: config/mmix/mmix.c:1781
+@@ -3301,7 +3299,7 @@
+ #: config/picochip/picochip.c:2983 config/picochip/picochip.c:3015
+ msgid "Bad address, not (reg+disp):"
+-msgstr ""
++msgstr "誤ったアドレスです。 (reg+disp) ではありません:"
+ #: config/picochip/picochip.c:3029
+ msgid "Bad address, not register:"
+@@ -3526,15 +3524,15 @@
+ #: config/sh/sh.c:9271
+ msgid "created and used with different architectures / ABIs"
+-msgstr ""
++msgstr "作成時と使用時で アーキテクチャ/ABI が異なります"
+ #: config/sh/sh.c:9273
+ msgid "created and used with different ABIs"
+-msgstr ""
++msgstr "作成時と使用時で ABI が異なります"
+ #: config/sh/sh.c:9275
+ msgid "created and used with different endianness"
+-msgstr ""
++msgstr "作成時と使用時でエンディアンが異なります"
+ #: config/sparc/sparc.c:7445 config/sparc/sparc.c:7451
+ #, c-format
+@@ -3617,7 +3615,7 @@
+ #: config/vax/vax.c:427
+ #, c-format
+ msgid "symbol with offset used in PIC mode"
+-msgstr ""
++msgstr "PIC モードで使用されるオフセット付きのシンボルです"
+ #: config/vax/vax.c:513
+ #, c-format
+@@ -3837,19 +3835,19 @@
+ msgstr "%s:%d:%d:   ここから再帰的に実体化されました"
+ #: cp/error.c:2913
+-#, fuzzy, c-format
++#, c-format
+ msgid "%s:%d:%d:   instantiated from here"
+ msgstr "%s:%d:%d:   ここから実体化されました"
+ #: cp/error.c:2918
+ #, c-format
+ msgid "%s:%d:   recursively instantiated from here"
+-msgstr ""
++msgstr "%s:%d:   ここから再帰的に実体化されました"
+ #: cp/error.c:2919
+-#, fuzzy, c-format
++#, c-format
+ msgid "%s:%d:   instantiated from here"
+-msgstr "%s:%d:   ここで実体化されました\n"
++msgstr "%s:%d:   ここから実体化されました"
+ #: cp/error.c:2962
+ #, c-format
+@@ -4029,22 +4027,21 @@
+ #: fortran/expr.c:607
+ #, c-format
+ msgid "Constant expression required at %C"
+-msgstr ""
++msgstr "%C では定数式が要求されます"
+ #: fortran/expr.c:610
+ #, c-format
+ msgid "Integer expression required at %C"
+-msgstr ""
++msgstr "%C では整数式が要求されます"
+ #: fortran/expr.c:615
+-#, fuzzy, c-format
++#, c-format
+ msgid "Integer value too large in expression at %C"
+-msgstr "式の整数がオーバーフローしました"
++msgstr "%C の式内で整数値が大きすぎます"
+ #: fortran/expr.c:3147
+-#, fuzzy
+ msgid "array assignment"
+-msgstr "代入"
++msgstr "配列代入"
+ #: fortran/gfortranspec.c:303
+ #, c-format
+@@ -4080,7 +4077,7 @@
+ #: fortran/io.c:551
+ msgid "Unexpected element '%c' in format string at %L"
+-msgstr ""
++msgstr "予期しない要素 '%c' が書式文字列内 (位置 %L) にあります"
+ #: fortran/io.c:553
+ msgid "Unexpected end of format string"
+@@ -4088,15 +4085,15 @@
+ #: fortran/io.c:554
+ msgid "Zero width in format descriptor"
+-msgstr ""
++msgstr "幅 0 の書式記述子です"
+ #: fortran/io.c:574
+ msgid "Missing leading left parenthesis"
+-msgstr ""
++msgstr "前に左小括弧がありません"
+ #: fortran/io.c:603
+ msgid "Left parenthesis required after '*'"
+-msgstr ""
++msgstr "'*' の後には左小括弧が必要です"
+ #: fortran/io.c:634
+ msgid "Expected P edit descriptor"
+@@ -4116,9 +4113,8 @@
+ msgstr ""
+ #: fortran/io.c:844
+-#, fuzzy
+ msgid "E specifier not allowed with g0 descriptor"
+-msgstr "型指定子 `%s' は struct や class の後には使えません"
++msgstr ""
+ #: fortran/io.c:914
+ msgid "Positive exponent width required"
+@@ -4362,9 +4358,8 @@
+ msgstr ""
+ #: fortran/resolve.c:6233
+-#, fuzzy
+ msgid "End expression in DO loop"
+-msgstr "オペランドとして無効な式"
++msgstr ""
+ #: fortran/resolve.c:6237
+ msgid "Step expression in DO loop"
+@@ -4564,7 +4559,7 @@
+ #: java/jcf-dump.c:1148
+ #, c-format
+ msgid "  --extdirs PATH          Set extensions directory path\n"
+-msgstr ""
++msgstr "  --extdirs PATH          拡張のディレクトリパスを設定する\n"
+ #: java/jcf-dump.c:1149
+ #, c-format
+@@ -4734,18 +4729,18 @@
+ #: config/pa/pa-hpux11.h:111 config/pa/pa64-hpux.h:30 config/pa/pa64-hpux.h:33
+ #: config/pa/pa64-hpux.h:42 config/pa/pa64-hpux.h:45
+ msgid "warning: consider linking with '-static' as system libraries with"
+-msgstr ""
++msgstr "警告: システムライブラリとリンクする時は '-static' を指定することを検討してください"
+ #: config/pa/pa-hpux10.h:90 config/pa/pa-hpux10.h:93 config/pa/pa-hpux10.h:101
+ #: config/pa/pa-hpux10.h:104 config/pa/pa-hpux11.h:109
+ #: config/pa/pa-hpux11.h:112 config/pa/pa64-hpux.h:31 config/pa/pa64-hpux.h:34
+ #: config/pa/pa64-hpux.h:43 config/pa/pa64-hpux.h:46
+ msgid "  profiling support are only provided in archive format"
+-msgstr ""
++msgstr "  プロファイリングサポートは書庫フォーマット内でのみ提供されます"
+ #: config/rs6000/darwin.h:99
+ msgid " conflicting code gen style switches are used"
+-msgstr ""
++msgstr " 競合しているコード生成スタイルスイッチが使用されています"
+ #: config/arm/arm.h:178
+ msgid "-msoft-float and -mhard_float may not be used together"
+@@ -4805,7 +4800,7 @@
+ #: config/i386/linux-unwind.h:186
+ msgid "ax ; {int $0x80 | syscall"
+-msgstr ""
++msgstr "ax ; {int $0x80 | syscall"
+ #: config/s390/tpf.h:120
+ msgid "static is not supported on TPF-OS"
+@@ -4869,7 +4864,7 @@
+ #: java/lang.opt:206
+ msgid "--extdirs=<path>\tSet the extension directory path"
+-msgstr ""
++msgstr "--extdirs=<path>\t拡張のディレクトリパスを設定する"
+ #: java/lang.opt:216
+ msgid "Input file is a file with a list of filenames to compile"
+@@ -5388,7 +5383,7 @@
+ #: config/frv/frv.opt:31
+ msgid "Enable label alignment optimizations"
+-msgstr ""
++msgstr "ラベル整列最適化を有効にする"
+ #: config/frv/frv.opt:35
+ msgid "Dynamically allocate cc registers"
+@@ -5452,7 +5447,7 @@
+ #: config/frv/frv.opt:116
+ msgid "Enable use of GPREL for read-only data in FDPIC"
+-msgstr ""
++msgstr "FDPIC 内の読み取り専用データ用 GPREL の使用を有効にする"
+ #: config/frv/frv.opt:120 config/rs6000/rs6000.opt:216
+ #: config/pdp11/pdp11.opt:67
+@@ -5460,9 +5455,8 @@
+ msgstr "ハードウェア浮動小数点を利用する"
+ #: config/frv/frv.opt:124 config/bfin/bfin.opt:77
+-#, fuzzy
+ msgid "Enable inlining of PLT in function calls"
+-msgstr "関数呼び出しの前後でレジスタの保存を有効にする"
++msgstr "関数呼び出し内で PLT のインライン化を有効にする"
+ #: config/frv/frv.opt:128
+ msgid "Enable PIC support for building libraries"
+@@ -5478,7 +5472,7 @@
+ #: config/frv/frv.opt:140
+ msgid "Use media instructions"
+-msgstr ""
++msgstr "media 命令を使用する"
+ #: config/frv/frv.opt:144
+ msgid "Use multiply add/subtract instructions"
+@@ -5494,7 +5488,7 @@
+ #: config/frv/frv.opt:157
+ msgid "Do not mark ABI switches in e_flags"
+-msgstr ""
++msgstr "e_flags 内の ABI スイッチをマークしない"
+ #: config/frv/frv.opt:161
+ msgid "Remove redundant membars"
+@@ -5506,7 +5500,7 @@
+ #: config/frv/frv.opt:169
+ msgid "Enable setting GPRs to the result of comparisons"
+-msgstr ""
++msgstr "比較結果を汎用レジスタに設定することを有効にする"
+ #: config/frv/frv.opt:173
+ msgid "Change the amount of scheduler lookahead"
+@@ -5565,9 +5559,8 @@
+ msgstr ""
+ #: config/mn10300/mn10300.opt:56
+-#, fuzzy
+ msgid "Allow gcc to generate LIW instructions"
+-msgstr "gcc が repeat/erepeat 命令を使用することを許可する"
++msgstr "gcc が LIW 命令を生成することを許可する"
+ #: config/s390/tpf.opt:23
+ msgid "Enable TPF-OS tracing code"
+@@ -5640,11 +5633,11 @@
+ #: config/s390/s390.opt:91
+ msgid "Warn if a function uses alloca or creates an array with dynamic size"
+-msgstr ""
++msgstr "関数で alloca を使用するか、または動的サイズの配列を作成した場合に、警告する"
+ #: config/s390/s390.opt:95
+ msgid "Warn if a single function's framesize exceeds the given framesize"
+-msgstr ""
++msgstr "一つの関数のフレームサイズが与えられたフレームサイズを超過する場合に警告する"
+ #: config/s390/s390.opt:99
+ msgid "z/Architecture"
+@@ -5692,7 +5685,7 @@
+ #: config/ia64/ia64.opt:56
+ msgid "gp is constant (but save/restore gp on indirect calls)"
+-msgstr "gp を定数とする(但、間接呼び出しでは gp を save/restore する)"
++msgstr "gp を定数とする(ただし、間接呼び出しでは gp を save/restore する)"
+ #: config/ia64/ia64.opt:60
+ msgid "Generate self-relocatable code"
+@@ -5741,39 +5734,39 @@
+ #: config/ia64/ia64.opt:107 config/spu/spu.opt:72 config/sh/sh.opt:258
+ #: config/pa/pa.opt:51
+ msgid "Specify range of registers to make fixed"
+-msgstr ""
++msgstr "固定するレジスタの範囲を指定する"
+ #: config/ia64/ia64.opt:119
+ msgid "Use data speculation before reload"
+-msgstr ""
++msgstr "reload 前にデータ投機を使用する"
+ #: config/ia64/ia64.opt:123
+ msgid "Use data speculation after reload"
+-msgstr ""
++msgstr "reload 後にデータ投機を使用する"
+ #: config/ia64/ia64.opt:127
+ msgid "Use control speculation"
+-msgstr ""
++msgstr "制御投機を使用する"
+ #: config/ia64/ia64.opt:131
+ msgid "Use in block data speculation before reload"
+-msgstr ""
++msgstr "reload 前にブロック内データ投機を使用する"
+ #: config/ia64/ia64.opt:135
+ msgid "Use in block data speculation after reload"
+-msgstr ""
++msgstr "reload 後にブロック内データ投機を使用する"
+ #: config/ia64/ia64.opt:139
+ msgid "Use in block control speculation"
+-msgstr ""
++msgstr "ブロック内制御投機を使用する"
+ #: config/ia64/ia64.opt:143
+ msgid "Use simple data speculation check"
+-msgstr ""
++msgstr "単純データ投機検査を使用する"
+ #: config/ia64/ia64.opt:147
+ msgid "Use simple data speculation check for control speculation"
+-msgstr ""
++msgstr "制御投機用の単純データ投機検査を使用する"
+ #: config/ia64/ia64.opt:151
+ msgid "If set, data speculative instructions will be chosen for schedule only if there are no other choices at the moment "
+@@ -5789,7 +5782,7 @@
+ #: config/ia64/ia64.opt:163
+ msgid "Place a stop bit after every cycle when scheduling"
+-msgstr ""
++msgstr "スケジューリング時の各サイクル後にストップビットを配置する"
+ #: config/ia64/ia64.opt:167
+ msgid "Assume that floating-point stores and loads are not likely to cause conflict when placed into one instruction group"
+@@ -5805,7 +5798,7 @@
+ #: config/ia64/ia64.opt:179
+ msgid "Don't generate checks for control speculation in selective scheduling"
+-msgstr ""
++msgstr "選択的スケジューリング内では制御投機用の検査を生成しない"
+ #: config/ia64/vms_symvec_libgcc_s.opt:3
+ msgid "! It would be better to auto-generate this file."
+@@ -6109,7 +6102,7 @@
+ #: config/m68k/m68k.opt:160 config/bfin/bfin.opt:61
+ msgid "Enable separate data segment"
+-msgstr ""
++msgstr "分離データセグメントを有効にする"
+ #: config/m68k/m68k.opt:164 config/bfin/bfin.opt:57
+ msgid "ID of shared library to build"
+@@ -6149,7 +6142,7 @@
+ #: config/i386/mingw.opt:23
+ msgid "Warn about none ISO msvcrt scanf/printf width extensions"
+-msgstr ""
++msgstr "非 ISO の msvcrt scanf/printf の幅拡張に関して警告する"
+ #: config/i386/mingw.opt:27
+ msgid "For nested functions on stack executable permission is set."
+@@ -6201,7 +6194,7 @@
+ #: config/i386/i386.opt:114
+ msgid "Data greater than given threshold will go into .ldata section in x86-64 medium model"
+-msgstr ""
++msgstr "x86-64 メディアモデルでは与えられた閾値より大きいデータを .ldata セクションに配置する"
+ #: config/i386/i386.opt:118
+ msgid "Use given x86-64 code model"
+@@ -6217,16 +6210,15 @@
+ #: config/i386/i386.opt:129
+ msgid "Always use Dynamic Realigned Argument Pointer (DRAP) to realign stack"
+-msgstr ""
++msgstr "スタックを再整列するために動的再整列引数ポインタ (Dynamic Realigned Argument Pointer, DRAP) を常に使用する"
+ #: config/i386/i386.opt:133
+ msgid "Return values of functions in FPU registers"
+ msgstr "FPU レジスタ内の機能の値を返す"
+ #: config/i386/i386.opt:137
+-#, fuzzy
+ msgid "Generate floating point mathematics using given instruction set"
+-msgstr "ハードウェア浮動小数点命令を使用する"
++msgstr "与えられた命令集合を使用して浮動小数数値計算を生成する"
+ #: config/i386/i386.opt:149
+ msgid "Inline all known string operations"
+@@ -6314,8 +6306,9 @@
+ msgstr "8 バイトベクトルをメモリに返す"
+ #: config/i386/i386.opt:253
++#, fuzzy
+ msgid "Generate reciprocals instead of divss and sqrtss."
+-msgstr ""
++msgstr "divss および sqrtss の代わりに逆数 (reciprocal) を生成する"
+ #: config/i386/i386.opt:257
+ msgid "Generate cld instruction in the function prologue."
+@@ -6331,7 +6324,7 @@
+ #: config/i386/i386.opt:271
+ msgid "Use 128-bit AVX instructions instead of 256-bit AVX instructions in the auto-vectorizer."
+-msgstr ""
++msgstr "自動ベクトル化で 256 ビット AVX 命令の代わりに 128 ビット AVX 命令を使用する"
+ #: config/i386/i386.opt:277
+ msgid "Generate 32bit i386 code"
+@@ -6382,9 +6375,8 @@
+ msgstr "SSE4.1 と SSE4.2 の組み込み関数とコード生成をサポートしない"
+ #: config/i386/i386.opt:328
+-#, fuzzy
+ msgid "%<-msse5%> was removed"
+-msgstr "'-msse5' は削除されました"
++msgstr "%<-msse5%> は削除されました"
+ #: config/i386/i386.opt:333
+ msgid "Support MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2 and AVX built-in functions and code generation"
+@@ -6544,7 +6536,7 @@
+ #: config/rs6000/rs6000.opt:152
+ msgid "Use PowerPC General Purpose group optional instructions"
+-msgstr "PowerPC 一般用途グループオプション命令を使用する"
++msgstr "PowerPC 汎用グループオプション命令を使用する"
+ #: config/rs6000/rs6000.opt:156
+ msgid "Use PowerPC Graphics group optional instructions"
+@@ -7002,7 +6994,7 @@
+ #: config/mcore/mcore.opt:56 config/fr30/fr30.opt:27
+ msgid "Assume that run-time support has been provided, so omit -lsim from the linker command line"
+-msgstr ""
++msgstr "実行時サポートが提供されると見なし、リンカコマンドラインに -lsim を含めない"
+ #: config/mcore/mcore.opt:60
+ msgid "Use arbitrary sized immediates in bit operations"
+@@ -7014,7 +7006,7 @@
+ #: config/mcore/mcore.opt:71
+ msgid "Set the maximum amount for a single stack increment operation"
+-msgstr "単一のスタックインクリメント操作の最大値を設定する"
++msgstr "単一のスタック増分操作の最大値を設定する"
+ #: config/mcore/mcore.opt:75
+ msgid "Always treat bitfields as int-sized"
+@@ -7234,7 +7226,7 @@
+ #: config/sh/sh.opt:246
+ msgid "Division strategy, one of: call, call2, fp, inv, inv:minlat, inv20u, inv20l, inv:call, inv:call2, inv:fp, call-div1, call-fp, call-table"
+-msgstr ""
++msgstr "除算戦略、次のいずれか: call, call2, fp, inv, inv:minlat, inv20u, inv20l, inv:call, inv:call2, inv:fp, call-div1, call-fp, call-table"
+ #: config/sh/sh.opt:250
+ msgid "Specify name for 32 bit signed division function"
+@@ -7282,7 +7274,7 @@
+ #: config/sh/sh.opt:298
+ msgid "Mark MAC register as call-clobbered"
+-msgstr ""
++msgstr "MAC レジスタを呼び出しで破壊されるとマークする"
+ #: config/sh/sh.opt:304
+ msgid "Make structs a multiple of 4 bytes (warning: ABI altered)"
+@@ -7960,7 +7952,7 @@
+ #: config/m68hc11/m68hc11.opt:49
+ msgid "Auto pre/post decrement increment allowed"
+-msgstr "自動 pre/post デクリメント インクリメントを許容する"
++msgstr "自動 前置/後置 減分/増分 を許容する"
+ #: config/m68hc11/m68hc11.opt:53
+ msgid "Min/max instructions allowed"
+@@ -7972,7 +7964,7 @@
+ #: config/m68hc11/m68hc11.opt:61
+ msgid "Auto pre/post decrement increment not allowed"
+-msgstr "自動 pre/post デクリメント インクリメントを許容しない"
++msgstr "自動 前置/後置 減分/増分を許容しない"
+ #: config/m68hc11/m68hc11.opt:65
+ msgid "Use jsr and rts for function calls and returns"
+@@ -8346,7 +8338,7 @@
+ #: config/bfin/bfin.opt:69
+ msgid "Link with the fast floating-point library"
+-msgstr ""
++msgstr "高速な浮動小数ライブラリとリンクする"
+ #: config/bfin/bfin.opt:81
+ msgid "Do stack checking using bounds in L1 scratch memory"
+@@ -8382,7 +8374,7 @@
+ #: config/picochip/picochip.opt:31
+ msgid "Specify whether the byte access instructions should be used. Enabled by default."
+-msgstr ""
++msgstr "バイトアクセス命令を使用するかどうかを指定する。デフォルトでは有効となる"
+ #: config/picochip/picochip.opt:35
+ msgid "Enable debug output to be generated."
+@@ -8390,11 +8382,11 @@
+ #: config/picochip/picochip.opt:39
+ msgid "Allow a symbol value to be used as an immediate value in an instruction."
+-msgstr ""
++msgstr "命令内でシンボル値が即値として使用されることを許可する"
+ #: config/picochip/picochip.opt:43
+ msgid "Generate warnings when inefficient code is known to be generated."
+-msgstr ""
++msgstr "非効率なコードが生成された時に警告する"
+ #: config/vxworks.opt:36
+ msgid "Assume the VxWorks RTP environment"
+@@ -8418,7 +8410,7 @@
+ #: config/darwin.opt:205
+ msgid "Warn if constant CFString objects contain non-portable characters"
+-msgstr ""
++msgstr "定数 CFString オブジェクトが移植性の無い文字を含む場合に警告する"
+ #: config/darwin.opt:210
+ msgid "Generate AT&T-style stubs for Mach-O"
+@@ -8430,7 +8422,7 @@
+ #: config/darwin.opt:218
+ msgid "Generate code suitable for fast turn around debugging"
+-msgstr ""
++msgstr "デバッグを高速に行うために適したコードを生成する"
+ #: config/darwin.opt:227
+ msgid "The earliest MacOS X version on which this program will run"
+@@ -8442,15 +8434,15 @@
+ #: config/darwin.opt:235
+ msgid "Generate code for darwin loadable kernel extensions"
+-msgstr ""
++msgstr "darwin ロード可能カーネル拡張用のコードを生成する"
+ #: config/darwin.opt:239
+ msgid "Generate code for the kernel or loadable kernel extensions"
+-msgstr ""
++msgstr "カーネル用、またはロード可能カーネル拡張用のコードを生成する"
+ #: config/darwin.opt:243
+ msgid "-iframework <dir>\tAdd <dir> to the end of the system framework include path"
+-msgstr ""
++msgstr "-iframework <dir>\t<dir> をシステムフレームワークインクルードパスの末尾に加える"
+ #: config/lynx.opt:23
+ msgid "Support legacy multi-threading"
+@@ -8737,7 +8729,6 @@
+ msgstr ""
+ #: config/microblaze/microblaze.opt:92
+-#, fuzzy
+ msgid "Use hardware floating point conversion instructions"
+ msgstr "ハードウェア浮動小数点変換命令を使用する"
+@@ -8862,7 +8853,7 @@
+ #: c-family/c.opt:249
+ msgid "-MT <target>\tAdd an unquoted target"
+-msgstr ""
++msgstr "-MT <target>\tターゲット (引用符を付けない) を追加する"
+ #: c-family/c.opt:253
+ msgid "Do not generate #line directives"
+@@ -8898,11 +8889,11 @@
+ #: c-family/c.opt:288
+ msgid "Warn about C constructs that are not in the common subset of C and C++"
+-msgstr ""
++msgstr "C と C++ の共通部分集合では無い C 構文に関して警告する"
+ #: c-family/c.opt:292
+ msgid "Warn about C++ constructs whose meaning differs between ISO C++ 1998 and ISO C++ 200x"
+-msgstr ""
++msgstr "ISO C++ 1998 と ISO C++ 200x で意味が異なる C++ 構文に関して警告する"
+ #: c-family/c.opt:296
+ msgid "Warn about casts which discard qualifiers"
+@@ -8962,7 +8953,7 @@
+ #: c-family/c.opt:352
+ msgid "Warn about stray tokens after #elif and #endif"
+-msgstr ""
++msgstr "#elif および #endif の後にあるはぐれたトークンに関して警告する"
+ #: c-family/c.opt:356
+ msgid "Warn about comparison of different enum types"
+@@ -8977,9 +8968,8 @@
+ msgstr "浮動小数点数の等価比較に関して警告する"
+ #: c-family/c.opt:372
+-#, fuzzy
+ msgid "Warn about printf/scanf/strftime/strfmon format string anomalies"
+-msgstr "printf/scanf/strftime/strfmon 形式の変則的なものに関して警告する"
++msgstr "printf/scanf/strftime/strfmon 書式文字列異常に関して警告する"
+ #: c-family/c.opt:376
+ msgid "Warn if passing too many arguments to a function for its format string"
+@@ -8998,9 +8988,8 @@
+ msgstr "セキュリティ問題になる可能性がある書式関数に関して警告する"
+ #: c-family/c.opt:392
+-#, fuzzy
+ msgid "Warn about strftime formats yielding 2-digit years"
+-msgstr "strftime 形式が二桁で年を表している時の警告しない"
++msgstr "strftime 書式が 2 桁の年の場合に警告する"
+ #: c-family/c.opt:396
+ msgid "Warn about zero-length formats"
+@@ -9409,7 +9398,7 @@
+ #: c-family/c.opt:823
+ msgid "Don't emit dllexported inline functions unless needed"
+-msgstr ""
++msgstr "必要が無い限り dllexported インライン関数を発行しない"
+ #: c-family/c.opt:830
+ msgid "Allow implicit conversions between vectors with differing numbers of subparts and/or differing element types."
+@@ -9501,7 +9490,7 @@
+ #: c-family/c.opt:942
+ msgid "Generate run time type descriptor information"
+-msgstr ""
++msgstr "実行時型記述子情報を生成する"
+ #: c-family/c.opt:946
+ msgid "Use the same size for double as for float"
+@@ -9889,19 +9878,16 @@
+ msgstr "関数が __attribute__((pure)) の候補となりそうな場合に警告する"
+ #: common.opt:608
+-#, fuzzy
+ msgid "Warn about enumerated switches, with no default, missing a case"
+-msgstr "列挙定数の switch で case 指定が欠けているものに関して警告する"
++msgstr "列挙定数を使用した switch 文で default 文が無いか特定の case が無い場合に警告する"
+ #: common.opt:612
+-#, fuzzy
+ msgid "Warn about enumerated switches missing a \"default:\" statement"
+-msgstr "列挙定数の switch で case 指定が欠けているものに関して警告する"
++msgstr "列挙定数を使用した switch 文で \"default:\" 文が無い場合に警告する"
+ #: common.opt:616
+-#, fuzzy
+ msgid "Warn about all enumerated switches missing a specific case"
+-msgstr "列挙定数の switch で case 指定が欠けているものに関して警告する"
++msgstr "列挙定数を使用した switch 文で特定の case が無い場合に警告する"
+ #: common.opt:620
+ msgid "Do not suppress warnings from system headers"
+@@ -10000,9 +9986,8 @@
+ msgstr "自動増加/減少命令を生成する"
+ #: common.opt:821
+-#, fuzzy
+ msgid "Generate code to check bounds before indexing arrays"
+-msgstr "配列の添字と添字境界を検査するコードを生成する"
++msgstr "配列の添え字を使用する前に境界検査を行うコードを生成する"
+ #: common.opt:825
+ #, fuzzy
+@@ -10043,7 +10028,7 @@
+ #: common.opt:864
+ msgid "Looks for opportunities to reduce stack adjustments and stack references."
+-msgstr ""
++msgstr "スタック調整およびスタック参照を削減する機会を探す"
+ #: common.opt:868
+ msgid "Do not put uninitialized globals in the common section"
+@@ -10058,18 +10043,16 @@
+ msgstr ""
+ #: common.opt:884
+-#, fuzzy
+ msgid "Perform comparison elimination after register allocation has finished"
+-msgstr "グローバル共通部分式を除去する"
++msgstr "レジスタは位置が完了した後に比較の除去を行う"
+ #: common.opt:888
+ msgid "Do not perform optimizations increasing noticeably stack usage"
+-msgstr ""
++msgstr "スタック使用量を著しく増加させる最適化を行わない"
+ #: common.opt:892
+-#, fuzzy
+ msgid "Perform a register copy-propagation optimization pass"
+-msgstr "最適化過程のレジスタつけ変えを行なう"
++msgstr ""
+ #: common.opt:896
+ msgid "Perform cross-jumping optimization"
+@@ -10101,7 +10084,7 @@
+ #: common.opt:928
+ msgid "Map one directory name to another in debug information"
+-msgstr ""
++msgstr "デバッグ情報内のディレクトリー名を他のものにマップする"
+ #: common.opt:934
+ msgid "Defer popping functions args from stack until later"
+@@ -10116,9 +10099,8 @@
+ msgstr "無意味な null ポインタ検査を削除する"
+ #: common.opt:946
+-#, fuzzy
+ msgid "Try to convert virtual calls to direct ones."
+-msgstr "リンカが PIC 呼び出しを直接呼び出しに変更することを許可するように試みる"
++msgstr "仮想呼び出しを直接呼び出しに変換することを試みる"
+ #: common.opt:950
+ #, fuzzy
+@@ -10137,7 +10119,7 @@
+ #: common.opt:978
+ msgid "-fdump-final-insns=filename\tDump to filename the insns at the end of translation"
+-msgstr ""
++msgstr "-fdump-final-insns=filename\t翻訳終了時に filename へ命令をダンプする"
+ #: common.opt:982
+ msgid "-fdump-go-spec=filename\tWrite all declarations to file as Go code"
+@@ -10173,7 +10155,7 @@
+ #: common.opt:1014 common.opt:1018
+ msgid "Perform unused type elimination in debug info"
+-msgstr ""
++msgstr "デバッグ情報内で使用されていない型の除去を行う"
+ #: common.opt:1022
+ msgid "Do not suppress C++ class debug information."
+@@ -10181,25 +10163,24 @@
+ #: common.opt:1026
+ msgid "Generate debug information to support Identical Code Folding (ICF)"
+-msgstr ""
++msgstr "Identical Code Folding (ICF) をサポートするためのデバッグ情報を生成する"
+ #: common.opt:1030
+ msgid "Enable exception handling"
+ msgstr "例外処理を有効にする"
+ #: common.opt:1034
+-#, fuzzy
+ msgid "Perform a number of minor, expensive optimizations"
+-msgstr "目立たない、コストのかかる最適化を行なう"
++msgstr "多くの、目立たないがコストが高い最適化を行う"
+ #: common.opt:1038
+ msgid "-fexcess-precision=[fast|standard]\tSpecify handling of excess floating-point precision"
+-msgstr ""
++msgstr "-fexcess-precision=[fast|standard]\t余分な浮動小数点精度の取り扱いを指定する"
+ #: common.opt:1041
+ #, c-format
+ msgid "unknown excess precision style %qs"
+-msgstr ""
++msgstr "不明な余分な精度スタイル %qs です"
+ #: common.opt:1054
+ msgid "Assume no NaNs or infinities are generated"
+@@ -10222,52 +10203,45 @@
+ msgstr ""
+ #: common.opt:1077
+-#, fuzzy, c-format
++#, c-format
+ msgid "unknown floating point contraction style %qs"
+-msgstr "浮動小数点定数を TOC 内に配置する"
++msgstr "不明な浮動小数短縮形 %qs です"
+ #: common.opt:1094
+ msgid "Allow function addresses to be held in registers"
+ msgstr "関数アドレスをレジスタに持たせる事を許可する"
+ #: common.opt:1098
+-#, fuzzy
+ msgid "Place each function into its own section"
+-msgstr "各々の関数をそれ自身のセクションに配置する"
++msgstr "それぞれの関数をそれ自身のセクションに配置する"
+ #: common.opt:1102
+-#, fuzzy
+ msgid "Perform global common subexpression elimination"
+-msgstr "グローバル共通部分式を除去する"
++msgstr "大域共通部分式の除去を行う"
+ #: common.opt:1106
+-#, fuzzy
+ msgid "Perform enhanced load motion during global common subexpression elimination"
+-msgstr "グローバル共通部分式を除去する"
++msgstr ""
+ #: common.opt:1110
+-#, fuzzy
+ msgid "Perform store motion after global common subexpression elimination"
+-msgstr "グローバル共通部分式を除去する"
++msgstr ""
+ #: common.opt:1114
+ msgid "Perform redundant load after store elimination in global common subexpression"
+ msgstr ""
+ #: common.opt:1119
+-#, fuzzy
+ msgid "Perform global common subexpression elimination after register allocation"
+-msgstr "グローバル共通部分式を除去する"
++msgstr "レジスタ配置後に大域共通部分式の除去を行う"
+ #: common.opt:1125
+-#, fuzzy
+ msgid "Enable in and out of Graphite representation"
+-msgstr "自動テンプレート実体化を有効にする"
++msgstr ""
+ #: common.opt:1129
+-#, fuzzy
+ msgid "Enable Graphite Identity transformation"
+-msgstr "呼び出しグラフ情報を送出する"
++msgstr ""
+ #: common.opt:1133
+ msgid "Mark all loops as parallel"
+@@ -10306,9 +10280,8 @@
+ msgstr ""
+ #: common.opt:1173
+-#, fuzzy
+ msgid "Perform conversion of conditional jumps to conditional execution"
+-msgstr "条件的な実行への変更のための閾値を変更する"
++msgstr ""
+ #: common.opt:1177
+ msgid "Convert conditional jumps in innermost loops to branchless equivalents"
+@@ -10376,13 +10349,12 @@
+ msgstr ""
+ #: common.opt:1253
+-#, fuzzy
+ msgid "Discover pure and const functions"
+-msgstr "使われない仮想関数を切り捨てる"
++msgstr "純粋および定数関数を見つける"
+ #: common.opt:1257
+ msgid "Discover readonly and non addressable static variables"
+-msgstr ""
++msgstr "読み取り専用およびアドレス付けできない静的変数を見つける"
+ #: common.opt:1261
+ msgid "Perform matrix layout flattening and transposing based"
+@@ -10415,9 +10387,8 @@
+ msgstr ""
+ #: common.opt:1305
+-#, fuzzy
+ msgid "Share slots for saving different hard registers."
+-msgstr "引数レジスタにローカルのものを格納する"
++msgstr ""
+ #: common.opt:1309
+ msgid "Share stack slots for spilled pseudo-registers."
+@@ -10621,19 +10592,19 @@
+ #: common.opt:1521
+ msgid "Enable basic program profiling code"
+-msgstr ""
++msgstr "基本プログラムプロファイリングコードを有効にする"
+ #: common.opt:1525
+ msgid "Insert arc-based program profiling code"
+-msgstr ""
++msgstr "円弧ベースプログラムプロファイリングコードを挿入する"
+ #: common.opt:1529
+ msgid "Set the top-level directory for storing the profile data."
+-msgstr ""
++msgstr "プロファイルデータ保存用の最上位ディレクリーを設定する"
+ #: common.opt:1534
+ msgid "Enable correction of flow inconsistent profile data input"
+-msgstr ""
++msgstr "フロー一貫性が無いデータ入力の訂正を有効にする"
+ #: common.opt:1538
+ msgid "Enable common options for generating profile info for profile feedback directed optimizations"
+@@ -10653,7 +10624,7 @@
+ #: common.opt:1554
+ msgid "Insert code to profile values of expressions"
+-msgstr ""
++msgstr "式の値をプロファイルするためのコードを挿入する"
+ #: common.opt:1561
+ msgid "-frandom-seed=<string>\tMake compile reproducible using <string>"
+@@ -11836,7 +11807,7 @@
+ #: c-decl.c:1150
+ #, gcc-internal-format
+ msgid "nested function %q+D declared but never defined"
+-msgstr ""
++msgstr "入れ子になった関数 %q+D が宣言されましたが定義されていません"
+ #: c-decl.c:1162
+ #, gcc-internal-format
+@@ -11893,7 +11864,7 @@
+ #: c-decl.c:1613
+ #, gcc-internal-format
+ msgid "prototype for %q+D follows non-prototype definition"
+-msgstr ""
++msgstr "非プロトタイプ定義に続いて %q+D 用のプロトタイプがあります"
+ #: c-decl.c:1628
+ #, gcc-internal-format
+@@ -11969,9 +11940,9 @@
+ msgstr "%q+D が異なる型で再定義されました"
+ #: c-decl.c:1818
+-#, fuzzy, gcc-internal-format
++#, gcc-internal-format
+ msgid "redefinition of typedef %q+D with variably modified type"
+-msgstr "%q+D が異なる型で再定義されました"
++msgstr ""
+ #: c-decl.c:1825
+ #, gcc-internal-format
+@@ -12016,17 +11987,17 @@
+ #: c-decl.c:2001
+ #, gcc-internal-format
+ msgid "extern declaration of %q+D follows declaration with no linkage"
+-msgstr ""
++msgstr "リンク無し宣言の後に %q+D の extern 宣言が続いています"
+ #: c-decl.c:2037
+ #, gcc-internal-format
+ msgid "declaration of %q+D with no linkage follows extern declaration"
+-msgstr ""
++msgstr "extern 宣言の後にリンク無し %q+D の宣言が続いています"
+ #: c-decl.c:2043
+ #, gcc-internal-format
+ msgid "redeclaration of %q+D with no linkage"
+-msgstr ""
++msgstr "リンク無し %q+D の再定義です"
+ #: c-decl.c:2069
+ #, gcc-internal-format
+@@ -12354,7 +12325,7 @@
+ #: c-decl.c:4614
+ #, gcc-internal-format
+ msgid "defining a type in a compound literal is invalid in C++"
+-msgstr ""
++msgstr "複合リテラル内での型定義は C++ では無効です"
+ #: c-decl.c:4666 c-decl.c:4681
+ #, gcc-internal-format
+@@ -13393,23 +13364,23 @@
+ #: c-parser.c:1829
+ #, gcc-internal-format
+ msgid "expression in static assertion is not an integer"
+-msgstr ""
++msgstr "静的アサーション内の式が整数ではありません"
+ #: c-parser.c:1836
+ #, gcc-internal-format
+ msgid "expression in static assertion is not an integer constant expression"
+-msgstr ""
++msgstr "静的アサーション内の式が整数定数式ではありません"
+ #: c-parser.c:1841
+ #, gcc-internal-format
+ msgid "expression in static assertion is not constant"
+-msgstr ""
++msgstr "静的アサーション内の式が定数ではありません"
+ #. Report the error.
+ #: c-parser.c:1846 cp/semantics.c:4719
+ #, gcc-internal-format
+ msgid "static assertion failed: %E"
+-msgstr ""
++msgstr "静的アサーションに失敗しました: %E"
+ #: c-parser.c:2207 c-parser.c:3063 c-parser.c:3709 c-parser.c:3983
+ #: c-parser.c:5084 c-parser.c:5175 c-parser.c:5800 c-parser.c:6083
+@@ -14125,12 +14096,12 @@
+ #: c-typeck.c:3578
+ #, gcc-internal-format
+ msgid "increment of enumeration value is invalid in C++"
+-msgstr "列挙値のインクリメントは C++ では無効です"
++msgstr "列挙値の増分は C++ では無効です"
+ #: c-typeck.c:3581
+ #, gcc-internal-format
+ msgid "decrement of enumeration value is invalid in C++"
+-msgstr "列挙値のデクリメントは C++ では無効です"
++msgstr "列挙値の減分は C++ では無効です"
+ #: c-typeck.c:3594
+ #, gcc-internal-format
+@@ -14140,22 +14111,22 @@
+ #: c-typeck.c:3613 c-typeck.c:3645
+ #, gcc-internal-format
+ msgid "wrong type argument to increment"
+-msgstr "インクリメントする引数の型が間違っています"
++msgstr "増分する引数の型が間違っています"
+ #: c-typeck.c:3615 c-typeck.c:3648
+ #, gcc-internal-format
+ msgid "wrong type argument to decrement"
+-msgstr "デクリメントする引数の型が間違っています"
++msgstr "減分する引数の型が間違っています"
+ #: c-typeck.c:3635
+ #, gcc-internal-format
+ msgid "increment of pointer to unknown structure"
+-msgstr "不明な構造体へのポインタのインクリメントです"
++msgstr "不明な構造体へのポインタの増分です"
+ #: c-typeck.c:3638
+ #, gcc-internal-format
+ msgid "decrement of pointer to unknown structure"
+-msgstr "不明な構造体へのポインタのデクリメントです"
++msgstr "不明な構造体へのポインタの減分です"
+ #: c-typeck.c:3722
+ #, gcc-internal-format
+@@ -14170,12 +14141,12 @@
+ #: c-typeck.c:3895 c-family/c-common.c:8658
+ #, gcc-internal-format
+ msgid "increment of read-only location %qE"
+-msgstr "読み取り専用位置 %qE のインクリメントです"
++msgstr "読み取り専用位置 %qE の増分です"
+ #: c-typeck.c:3898 c-family/c-common.c:8659
+ #, gcc-internal-format
+ msgid "decrement of read-only location %qE"
+-msgstr "読み取り専用位置 %qE のデクリメントです"
++msgstr "読み取り専用位置 %qE の減分です"
+ #: c-typeck.c:3939
+ #, gcc-internal-format
+@@ -19787,12 +19758,12 @@
+ #: c-family/c-common.c:8611
+ #, gcc-internal-format
+ msgid "increment of member %qD in read-only object"
+-msgstr "読み取り専用オブジェクト内のメンバ %qD のインクリメントです"
++msgstr "読み取り専用オブジェクト内のメンバ %qD の増分です"
+ #: c-family/c-common.c:8613
+ #, gcc-internal-format
+ msgid "decrement of member %qD in read-only object"
+-msgstr "読み取り専用オブジェクト内のメンバ %qD のデクリメントです"
++msgstr "読み取り専用オブジェクト内のメンバ %qD の減分です"
+ #: c-family/c-common.c:8615
+ #, gcc-internal-format
+@@ -19807,12 +19778,12 @@
+ #: c-family/c-common.c:8620
+ #, gcc-internal-format
+ msgid "increment of read-only member %qD"
+-msgstr "読み取り専用メンバ %qD のインクリメントです"
++msgstr "読み取り専用メンバ %qD の増分です"
+ #: c-family/c-common.c:8621
+ #, gcc-internal-format
+ msgid "decrement of read-only member %qD"
+-msgstr "読み取り専用メンバ %qD のデクリメントです"
++msgstr "読み取り専用メンバ %qD の減分です"
+ #: c-family/c-common.c:8622
+ #, gcc-internal-format
+@@ -19827,12 +19798,12 @@
+ #: c-family/c-common.c:8627
+ #, gcc-internal-format
+ msgid "increment of read-only variable %qD"
+-msgstr "読み取り専用変数 %qD のインクリメントです"
++msgstr "読み取り専用変数 %qD の増分です"
+ #: c-family/c-common.c:8628
+ #, gcc-internal-format
+ msgid "decrement of read-only variable %qD"
+-msgstr "読み取り専用変数 %qD のデクリメントです"
++msgstr "読み取り専用変数 %qD の減分です"
+ #: c-family/c-common.c:8629
+ #, gcc-internal-format
+@@ -19847,12 +19818,12 @@
+ #: c-family/c-common.c:8633
+ #, gcc-internal-format
+ msgid "increment of read-only parameter %qD"
+-msgstr "読み取り専用パラメータ %qD のインクリメントです"
++msgstr "読み取り専用パラメータ %qD の増分です"
+ #: c-family/c-common.c:8634
+ #, gcc-internal-format
+ msgid "decrement of read-only parameter %qD"
+-msgstr "読み取り専用パラメータ %qD のデクリメントです"
++msgstr "読み取り専用パラメータ %qD の減分です"
+ #: c-family/c-common.c:8635
+ #, gcc-internal-format
+@@ -19867,12 +19838,12 @@
+ #: c-family/c-common.c:8642
+ #, gcc-internal-format
+ msgid "increment of read-only named return value %qD"
+-msgstr "読み取り専用名前付き戻り値 %qD のインクリメントです"
++msgstr "読み取り専用名前付き戻り値 %qD の増分です"
+ #: c-family/c-common.c:8644
+ #, gcc-internal-format
+ msgid "decrement of read-only named return value %qD"
+-msgstr "読み取り専用名前付き戻り値 %qD のデクリメントです"
++msgstr "読み取り専用名前付き戻り値 %qD の減分です"
+ #: c-family/c-common.c:8646
+ #, gcc-internal-format
+@@ -19887,12 +19858,12 @@
+ #: c-family/c-common.c:8652
+ #, gcc-internal-format
+ msgid "increment of function %qD"
+-msgstr "関数 %qD のインクリメントです"
++msgstr "関数 %qD の増分です"
+ #: c-family/c-common.c:8653
+ #, gcc-internal-format
+ msgid "decrement of function %qD"
+-msgstr "関数 %qD のデクリメントです"
++msgstr "関数 %qD の減分です"
+ #: c-family/c-common.c:8654
+ #, gcc-internal-format
+@@ -19912,12 +19883,12 @@
+ #: c-family/c-common.c:8677
+ #, gcc-internal-format
+ msgid "lvalue required as increment operand"
+-msgstr "インクリメントの被演算子として左辺値が必要です"
++msgstr "増分の被演算子として左辺値が必要です"
+ #: c-family/c-common.c:8680
+ #, gcc-internal-format
+ msgid "lvalue required as decrement operand"
+-msgstr "デクリメントの被演算子として左辺値が必要です"
++msgstr "減分の被演算子として左辺値が必要です"
+ #: c-family/c-common.c:8683
+ #, gcc-internal-format
+@@ -20556,12 +20527,12 @@
+ #: c-family/c-omp.c:375 cp/semantics.c:4431
+ #, gcc-internal-format
+ msgid "missing increment expression"
+-msgstr "インクリメント式がありません"
++msgstr "増分式がありません"
+ #: c-family/c-omp.c:444 cp/semantics.c:4287
+ #, gcc-internal-format
+ msgid "invalid increment expression"
+-msgstr "無効なインクリメント式です"
++msgstr "無効な増分式です"
+ #: c-family/c-opts.c:303
+ #, gcc-internal-format
+@@ -20571,7 +20542,7 @@
+ #: c-family/c-opts.c:306
+ #, gcc-internal-format
+ msgid "obsolete option -I- used, please use -iquote instead"
+-msgstr "廃止あれたオプション -I- が使用されています。代わりに -iquote を使用してください"
++msgstr "廃止されたオプション -I- が使用されています。代わりに -iquote を使用してください"
+ #: c-family/c-opts.c:486
+ #, gcc-internal-format
+Index: gcc/tree-ssa-forwprop.c
+===================================================================
+--- gcc/tree-ssa-forwprop.c    (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/tree-ssa-forwprop.c    (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -872,7 +872,7 @@
+                    TREE_TYPE (gimple_assign_rhs1 (use_stmt))))
+       {
+         tree *def_rhs_basep = &TREE_OPERAND (def_rhs, 0);
+-        tree new_offset, new_base, saved;
++        tree new_offset, new_base, saved, new_lhs;
+         while (handled_component_p (*def_rhs_basep))
+           def_rhs_basep = &TREE_OPERAND (*def_rhs_basep, 0);
+         saved = *def_rhs_basep;
+@@ -891,9 +891,12 @@
+         *def_rhs_basep = build2 (MEM_REF, TREE_TYPE (*def_rhs_basep),
+                                  new_base, new_offset);
+         TREE_THIS_VOLATILE (*def_rhs_basep) = TREE_THIS_VOLATILE (lhs);
++        TREE_SIDE_EFFECTS (*def_rhs_basep) = TREE_SIDE_EFFECTS (lhs);
+         TREE_THIS_NOTRAP (*def_rhs_basep) = TREE_THIS_NOTRAP (lhs);
+-        gimple_assign_set_lhs (use_stmt,
+-                               unshare_expr (TREE_OPERAND (def_rhs, 0)));
++        new_lhs = unshare_expr (TREE_OPERAND (def_rhs, 0));
++        gimple_assign_set_lhs (use_stmt, new_lhs);
++        TREE_THIS_VOLATILE (new_lhs) = TREE_THIS_VOLATILE (lhs);
++        TREE_SIDE_EFFECTS (new_lhs) = TREE_SIDE_EFFECTS (lhs);
+         *def_rhs_basep = saved;
+         tidy_after_forward_propagate_addr (use_stmt);
+         /* Continue propagating into the RHS if this was not the
+@@ -953,7 +956,7 @@
+                    TREE_TYPE (TREE_OPERAND (def_rhs, 0))))
+       {
+         tree *def_rhs_basep = &TREE_OPERAND (def_rhs, 0);
+-        tree new_offset, new_base, saved;
++        tree new_offset, new_base, saved, new_rhs;
+         while (handled_component_p (*def_rhs_basep))
+           def_rhs_basep = &TREE_OPERAND (*def_rhs_basep, 0);
+         saved = *def_rhs_basep;
+@@ -972,9 +975,12 @@
+         *def_rhs_basep = build2 (MEM_REF, TREE_TYPE (*def_rhs_basep),
+                                  new_base, new_offset);
+         TREE_THIS_VOLATILE (*def_rhs_basep) = TREE_THIS_VOLATILE (rhs);
++        TREE_SIDE_EFFECTS (*def_rhs_basep) = TREE_SIDE_EFFECTS (rhs);
+         TREE_THIS_NOTRAP (*def_rhs_basep) = TREE_THIS_NOTRAP (rhs);
+-        gimple_assign_set_rhs1 (use_stmt,
+-                                unshare_expr (TREE_OPERAND (def_rhs, 0)));
++        new_rhs = unshare_expr (TREE_OPERAND (def_rhs, 0));
++        gimple_assign_set_rhs1 (use_stmt, new_rhs);
++        TREE_THIS_VOLATILE (new_rhs) = TREE_THIS_VOLATILE (rhs);
++        TREE_SIDE_EFFECTS (new_rhs) = TREE_SIDE_EFFECTS (rhs);
+         *def_rhs_basep = saved;
+         fold_stmt_inplace (use_stmt);
+         tidy_after_forward_propagate_addr (use_stmt);
+Index: gcc/varasm.c
+===================================================================
+--- gcc/varasm.c       (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/varasm.c       (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -6751,11 +6751,14 @@
+   /* A non-decl is an entry in the constant pool.  */
+   if (!DECL_P (exp))
+     local_p = true;
+-  /* Weakrefs may not bind locally, even though the weakref itself is
+-     always static and therefore local.
+-     FIXME: We can resolve this more curefuly by looking at the weakref
+-     alias.  */
+-  else if (lookup_attribute ("weakref", DECL_ATTRIBUTES (exp)))
++  /* Weakrefs may not bind locally, even though the weakref itself is always
++     static and therefore local.  Similarly, the resolver for ifunc functions
++     might resolve to a non-local function.
++     FIXME: We can resolve the weakref case more curefuly by looking at the
++     weakref alias.  */
++  else if (lookup_attribute ("weakref", DECL_ATTRIBUTES (exp))
++         || (TREE_CODE (exp) == FUNCTION_DECL
++             && lookup_attribute ("ifunc", DECL_ATTRIBUTES (exp))))
+     local_p = false;
+   /* Static variables are always local.  */
+   else if (! TREE_PUBLIC (exp))
+Index: gcc/sched-deps.c
+===================================================================
+--- gcc/sched-deps.c   (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/sched-deps.c   (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -2687,7 +2687,11 @@
+         else
+           sched_analyze_2 (deps, XEXP (link, 0), insn);
+       }
+-      if (find_reg_note (insn, REG_SETJMP, NULL))
++      /* Don't schedule anything after a tail call, tail call needs
++       to use at least all call-saved registers.  */
++      if (SIBLING_CALL_P (insn))
++      reg_pending_barrier = TRUE_BARRIER;
++      else if (find_reg_note (insn, REG_SETJMP, NULL))
+       reg_pending_barrier = MOVE_BARRIER;
+     }
  
- ;; Move to interrupt priority level
- (define_insn "mvtipl"
--  [(unspec:SI [(match_operand:SI 0 "immediate_operand" "Uint04")]
-+  [(unspec_volatile:SI [(match_operand:SI 0 "immediate_operand" "Uint04")]
-             UNSPEC_BUILTIN_MVTIPL)]
-   ""
-   "mvtipl\t%0"
-Index: gcc/config/rx/rx.c
+Index: gcc/tree-object-size.c
 ===================================================================
---- gcc/config/rx/rx.c (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/config/rx/rx.c (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -1,5 +1,5 @@
- /* Subroutines used for code generation on Renesas RX processors.
--   Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc.
-+   Copyright (C) 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
-    Contributed by Red Hat.
-    This file is part of GCC.
-@@ -51,6 +51,12 @@
- #include "target-def.h"
- #include "langhooks.h"
\f
-+#define CC_FLAG_S     (1 << 0)
-+#define CC_FLAG_Z     (1 << 1)
-+#define CC_FLAG_O     (1 << 2)
-+#define CC_FLAG_C     (1 << 3)
-+#define CC_FLAG_FP    (1 << 4)        /* Fake, to differentiate CC_Fmode.  */
-+
- enum rx_cpu_types  rx_cpu_type = RX600;
\f
- /* Return true if OP is a reference to an object in a small data area.  */
-@@ -312,9 +318,18 @@
-       break;
-       }
+--- gcc/tree-object-size.c     (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/tree-object-size.c     (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -175,7 +175,7 @@
+       unsigned HOST_WIDE_INT sz;
  
-+    case CONST:
-+      if (GET_CODE (XEXP (addr, 0)) == UNSPEC)
-+      {
-+        addr = XEXP (addr, 0);
-+        gcc_assert (XINT (addr, 1) == UNSPEC_CONST);
-+      
-+        addr = XVECEXP (addr, 0, 0);
-+        gcc_assert (CONST_INT_P (addr));
-+      }
-+      /* Fall through.  */
-     case LABEL_REF:
-     case SYMBOL_REF:
--    case CONST:
-       fprintf (file, "#");
-     default:
-       output_addr_const (file, addr);
-@@ -351,9 +366,76 @@
-   return true;
+       if (!osi || (object_size_type & 1) != 0
+-        || TREE_CODE (pt_var) != SSA_NAME)
++        || TREE_CODE (TREE_OPERAND (pt_var, 0)) != SSA_NAME)
+       {
+         sz = compute_builtin_object_size (TREE_OPERAND (pt_var, 0),
+                                           object_size_type & ~1);
+Index: gcc/tree-outof-ssa.c
+===================================================================
+--- gcc/tree-outof-ssa.c       (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/tree-outof-ssa.c       (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -237,9 +237,10 @@
+   var = SSA_NAME_VAR (partition_to_var (SA.map, dest));
+   src_mode = TYPE_MODE (TREE_TYPE (src));
+-  dest_mode = promote_decl_mode (var, &unsignedp);
++  dest_mode = GET_MODE (SA.partition_to_pseudo[dest]);
+   gcc_assert (src_mode == TYPE_MODE (TREE_TYPE (var)));
+-  gcc_assert (dest_mode == GET_MODE (SA.partition_to_pseudo[dest]));
++  gcc_assert (!REG_P (SA.partition_to_pseudo[dest])
++            || dest_mode == promote_decl_mode (var, &unsignedp));
+   if (src_mode != dest_mode)
+     {
+Index: gcc/tree-ssa-structalias.c
+===================================================================
+--- gcc/tree-ssa-structalias.c (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/tree-ssa-structalias.c (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -308,6 +308,7 @@
+ static varinfo_t first_or_preceding_vi_for_offset (varinfo_t,
+                                                  unsigned HOST_WIDE_INT);
+ static varinfo_t lookup_vi_for_tree (tree);
++static inline bool type_can_have_subvars (const_tree);
+ /* Pool of variable info structures.  */
+ static alloc_pool variable_info_pool;
+@@ -3353,7 +3354,8 @@
+               return;
+             cs = *VEC_last (ce_s, *results);
+-            if (cs.type == DEREF)
++            if (cs.type == DEREF
++                && type_can_have_subvars (TREE_TYPE (t)))
+               {
+                 /* For dereferences this means we have to defer it
+                    to solving time.  */
+@@ -4981,6 +4983,15 @@
+   VEC_qsort (fieldoff_s, fieldstack, fieldoff_compare);
  }
  
-+/* Convert a CC_MODE to the set of flags that it represents.  */
--int rx_float_compare_mode;
-+static unsigned int
-+flags_from_mode (enum machine_mode mode)
-+{
-+  switch (mode)
-+    {
-+    case CC_ZSmode:
-+      return CC_FLAG_S | CC_FLAG_Z;
-+    case CC_ZSOmode:
-+      return CC_FLAG_S | CC_FLAG_Z | CC_FLAG_O;
-+    case CC_ZSCmode:
-+      return CC_FLAG_S | CC_FLAG_Z | CC_FLAG_C;
-+    case CCmode:
-+      return CC_FLAG_S | CC_FLAG_Z | CC_FLAG_O | CC_FLAG_C;
-+    case CC_Fmode:
-+      return CC_FLAG_FP;
-+    default:
-+      gcc_unreachable ();
-+    }
-+}
-+/* Convert a set of flags to a CC_MODE that can implement it.  */
-+
-+static enum machine_mode
-+mode_from_flags (unsigned int f)
-+{
-+  if (f & CC_FLAG_FP)
-+    return CC_Fmode;
-+  if (f & CC_FLAG_O)
-+    {
-+      if (f & CC_FLAG_C)
-+      return CCmode;
-+      else
-+      return CC_ZSOmode;
-+    }
-+  else if (f & CC_FLAG_C)
-+    return CC_ZSCmode;
-+  else
-+    return CC_ZSmode;
-+}
++/* Return true if T is a type that can have subvars.  */
 +
-+/* Convert an RTX_CODE to the set of flags needed to implement it.
-+   This assumes an integer comparison.  */
-+
-+static unsigned int
-+flags_from_code (enum rtx_code code)
++static inline bool
++type_can_have_subvars (const_tree t)
 +{
-+  switch (code)
-+    {
-+    case LT:
-+    case GE:
-+      return CC_FLAG_S | CC_FLAG_O;
-+    case GT:
-+    case LE:
-+      return CC_FLAG_S | CC_FLAG_O | CC_FLAG_Z;
-+    case GEU:
-+    case LTU:
-+      return CC_FLAG_C;
-+    case GTU:
-+    case LEU:
-+      return CC_FLAG_C | CC_FLAG_Z;
-+    case EQ:
-+    case NE:
-+      return CC_FLAG_Z;
-+    default:
-+      gcc_unreachable ();
-+    }
++  /* Aggregates without overlapping fields can have subvars.  */
++  return TREE_CODE (t) == RECORD_TYPE;
 +}
 +
- /* Handles the insertion of a single operand into the assembler output.
-    The %<letter> directives supported are:
-@@ -393,22 +475,49 @@
-       break;
-     case 'B':
--      switch (GET_CODE (op))
--      {
--      case LT:  fprintf (file, "lt"); break;
--      case GE:  fprintf (file, "ge"); break;
--      case GT:  fprintf (file, "gt"); break;
--      case LE:  fprintf (file, "le"); break;
--      case GEU: fprintf (file, "geu"); break;
--      case LTU: fprintf (file, "ltu"); break;
--      case GTU: fprintf (file, "gtu"); break;
--      case LEU: fprintf (file, "leu"); break;
--      case EQ:  fprintf (file, "eq"); break;
--      case NE:  fprintf (file, "ne"); break;
--      default:  debug_rtx (op); gcc_unreachable ();
--      }
--      break;
-+      {
-+      enum rtx_code code = GET_CODE (op);
-+      enum machine_mode mode = GET_MODE (XEXP (op, 0));
-+      const char * ret;
+ /* Return true if V is a tree that we can have subvars for.
+    Normally, this is any aggregate type.  Also complex
+    types which are not gimple registers can have subvars.  */
+@@ -4996,11 +5007,7 @@
+   if (!DECL_P (v))
+     return false;
  
-+      if (mode == CC_Fmode)
-+        {
-+          /* C flag is undefined, and O flag carries unordered.  None of the
-+             branch combinations that include O use it helpfully.  */
-+          switch (code)
-+            {
-+            case ORDERED:     ret = "no";             break;
-+            case UNORDERED:   ret = "o";              break;
-+            case LT:          ret = "n";              break;
-+            case GE:          ret = "pz";             break;
-+            case EQ:          ret = "eq";             break;
-+            case NE:          ret = "ne";             break;
-+            default:          gcc_unreachable ();
-+            }
-+        }
-+      else
-+        {
-+          switch (code)
-+            {
-+            case LT:          ret = "lt";             break;
-+            case GE:          ret = "ge";             break;
-+            case GT:          ret = "gt";             break;
-+            case LE:          ret = "le";             break;
-+            case GEU:         ret = "geu";            break;
-+            case LTU:         ret = "ltu";            break;
-+            case GTU:         ret = "gtu";            break;
-+            case LEU:         ret = "leu";            break;
-+            case EQ:          ret = "eq";             break;
-+            case NE:          ret = "ne";             break;
-+            default:          gcc_unreachable ();
-+            }
-+          gcc_assert ((flags_from_code (code)
-+                       & ~flags_from_mode (mode)) == 0);
-+        }
-+      fputs (ret, file);
-+      break;
-+      }
-+
-     case 'C':
-       gcc_assert (CONST_INT_P (op));
-       switch (INTVAL (op))
-@@ -698,51 +807,6 @@
-          extension, src_template, dst_template);
-   return out_template;
- }
--
--/* Returns an assembler template for a conditional branch instruction.  */
--
--const char *
--rx_gen_cond_branch_template (rtx condition, bool reversed)
--{
--  enum rtx_code code = GET_CODE (condition);
--
--  if (reversed)
--    {
--      if (rx_float_compare_mode)
--      code = reverse_condition_maybe_unordered (code);
--      else
--      code = reverse_condition (code);
--    }
--
--  /* We do not worry about encoding the branch length here as GAS knows
--     how to choose the smallest version, and how to expand a branch that
--     is to a destination that is out of range.  */
--
--  switch (code)
--    {
--    case UNEQ:            return "bo\t1f\n\tbeq\t%0\n1:";
--    case LTGT:            return "bo\t1f\n\tbne\t%0\n1:";
--    case UNLT:      return "bo\t1f\n\tbn\t%0\n1:";
--    case UNGE:      return "bo\t1f\n\tbpz\t%0\n1:";
--    case UNLE:      return "bo\t1f\n\tbgt\t1f\n\tbra\t%0\n1:";
--    case UNGT:      return "bo\t1f\n\tble\t1f\n\tbra\t%0\n1:";
--    case UNORDERED: return "bo\t%0";
--    case ORDERED:   return "bno\t%0";
+-  /* Aggregates without overlapping fields can have subvars.  */
+-  if (TREE_CODE (TREE_TYPE (v)) == RECORD_TYPE)
+-    return true;
 -
--    case LT:        return rx_float_compare_mode ? "bn\t%0" : "blt\t%0";
--    case GE:        return rx_float_compare_mode ? "bpz\t%0" : "bge\t%0";
--    case GT:        return "bgt\t%0";
--    case LE:        return "ble\t%0";
--    case GEU:       return "bgeu\t%0";
--    case LTU:       return "bltu\t%0";
--    case GTU:       return "bgtu\t%0";
--    case LEU:       return "bleu\t%0";
--    case EQ:        return "beq\t%0";
--    case NE:        return "bne\t%0";
--    default:
--      gcc_unreachable ();
--    }
--}
\f
- /* Return VALUE rounded up to the next ALIGNMENT boundary.  */
-@@ -821,9 +885,37 @@
-                  const_tree fn_decl_or_type ATTRIBUTE_UNUSED,
-                  bool       outgoing ATTRIBUTE_UNUSED)
- {
--  return gen_rtx_REG (TYPE_MODE (ret_type), FUNC_RETURN_REGNUM);
-+  enum machine_mode mode = TYPE_MODE (ret_type);
-+
-+  /* RX ABI specifies that small integer types are
-+     promoted to int when returned by a function.  */
-+  if (GET_MODE_SIZE (mode) > 0
-+      && GET_MODE_SIZE (mode) < 4
-+      && ! COMPLEX_MODE_P (mode))
-+    return gen_rtx_REG (SImode, FUNC_RETURN_REGNUM);
-+    
-+  return gen_rtx_REG (mode, FUNC_RETURN_REGNUM);
+-  return false;
++  return type_can_have_subvars (TREE_TYPE (v));
  }
  
-+/* TARGET_PROMOTE_FUNCTION_MODE must behave in the same way with
-+   regard to function returns as does TARGET_FUNCTION_VALUE.  */
-+
-+static enum machine_mode
-+rx_promote_function_mode (const_tree type ATTRIBUTE_UNUSED,
-+                        enum machine_mode mode,
-+                        int * punsignedp ATTRIBUTE_UNUSED,
-+                        const_tree funtype ATTRIBUTE_UNUSED,
-+                        int for_return)
-+{
-+  if (for_return != 1
-+      || GET_MODE_SIZE (mode) >= 4
-+      || COMPLEX_MODE_P (mode)
-+      || GET_MODE_SIZE (mode) < 1)
-+    return mode;
+ /* Return true if T is a type that does contain pointers.  */
+Index: gcc/lto-opts.c
+===================================================================
+--- gcc/lto-opts.c     (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/lto-opts.c     (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -358,7 +358,7 @@
+   size_t len, l, skip;
+   const char *data, *p;
+   const struct lto_simple_header *header;
+-  int32_t opts_offset;
++  int opts_offset;
+   struct lto_input_block ib;
+   data = lto_get_section_data (file_data, LTO_section_opts, NULL, &len);
+@@ -379,10 +379,10 @@
+       lto_check_version (header->lto_header.major_version,
+                        header->lto_header.minor_version);
+-      
 +
-+  return SImode;
-+}
+       LTO_INIT_INPUT_BLOCK (ib, p + opts_offset, 0, header->main_size);
+       input_options (&ib);
+-      
 +
- static bool
- rx_return_in_memory (const_tree type, const_tree fntype ATTRIBUTE_UNUSED)
+       skip = header->main_size + opts_offset;
+       l -= skip;
+       p += skip;
+Index: gcc/c-parser.c
+===================================================================
+--- gcc/c-parser.c     (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/c-parser.c     (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -6294,7 +6294,7 @@
+             c_parser_error (parser, "expected identifier");
+           c_parser_skip_until_found (parser, CPP_CLOSE_PAREN,
+                                      "expected %<)%>");
+-          expr.value = fold_offsetof (offsetof_ref, NULL_TREE);
++          expr.value = fold_offsetof (offsetof_ref);
+         }
+         break;
+       case RID_CHOOSE_EXPR:
+Index: gcc/config/alpha/linux-unwind.h
+===================================================================
+--- gcc/config/alpha/linux-unwind.h    (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/config/alpha/linux-unwind.h    (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -1,5 +1,5 @@
+ /* DWARF2 EH unwinding support for Alpha Linux.
+-   Copyright (C) 2004, 2005, 2009 Free Software Foundation, Inc.
++   Copyright (C) 2004, 2005, 2009, 2011 Free Software Foundation, Inc.
+ This file is part of GCC.
+@@ -36,16 +36,17 @@
  {
-@@ -1058,7 +1150,13 @@
+   unsigned int *pc = context->ra;
+   struct sigcontext *sc;
+-  long new_cfa, i;
++  long new_cfa;
++  int i;
  
-   for (save_mask = high = low = 0, reg = 1; reg < CC_REGNUM; reg++)
+   if (pc[0] != 0x47fe0410             /* mov $30,$16 */
+-      || pc[2] != 0x00000083          /* callsys */)
++      || pc[2] != 0x00000083)         /* callsys */
+     return _URC_END_OF_STACK;
+   if (context->cfa == 0)
+     return _URC_END_OF_STACK;
+   if (pc[1] == 0x201f0067)            /* lda $0,NR_sigreturn */
+     sc = context->cfa;
+-  else if (pc[1] == 0x201f015f)       /* lda $0,NR_rt_sigreturn */
++  else if (pc[1] == 0x201f015f)               /* lda $0,NR_rt_sigreturn */
+     {
+       struct rt_sigframe {
+       struct siginfo info;
+@@ -55,6 +56,7 @@
+     }
+   else
+     return _URC_END_OF_STACK;
++
+   new_cfa = sc->sc_regs[30];
+   fs->regs.cfa_how = CFA_REG_OFFSET;
+   fs->regs.cfa_reg = 30;
+@@ -63,13 +65,13 @@
      {
--      if (df_regs_ever_live_p (reg)
-+      if ((df_regs_ever_live_p (reg)
-+         /* Always save all call clobbered registers inside non-leaf
-+            interrupt handlers, even if they are not live - they may
-+            be used in (non-interrupt aware) routines called from this one.  */
-+         || (call_used_regs[reg]
-+             && is_interrupt_func (NULL_TREE)
-+             && ! current_function_is_leaf))
-         && (! call_used_regs[reg]
-             /* Even call clobbered registered must
-                be pushed inside interrupt handlers.  */
-@@ -1213,6 +1311,59 @@
+       fs->regs.reg[i].how = REG_SAVED_OFFSET;
+       fs->regs.reg[i].loc.offset
+-      = (long)&sc->sc_regs[i] - new_cfa;
++      = (long) &sc->sc_regs[i] - new_cfa;
      }
- }
+   for (i = 0; i < 31; ++i)
+     {
+       fs->regs.reg[i+32].how = REG_SAVED_OFFSET;
+       fs->regs.reg[i+32].loc.offset
+-      = (long)&sc->sc_fpregs[i] - new_cfa;
++      = (long) &sc->sc_fpregs[i] - new_cfa;
+     }
+   fs->regs.reg[64].how = REG_SAVED_OFFSET;
+   fs->regs.reg[64].loc.offset = (long)&sc->sc_pc - new_cfa;
+@@ -78,3 +80,20 @@
  
-+static bool
-+ok_for_max_constant (HOST_WIDE_INT val)
-+{
-+  if (rx_max_constant_size == 0  || rx_max_constant_size == 4)
-+    /* If there is no constraint on the size of constants
-+       used as operands, then any value is legitimate.  */
-+    return true;
+   return _URC_NO_REASON;
+ }
 +
-+  /* rx_max_constant_size specifies the maximum number
-+     of bytes that can be used to hold a signed value.  */
-+  return IN_RANGE (val, (-1 << (rx_max_constant_size * 8)),
-+                      ( 1 << (rx_max_constant_size * 8)));
-+}
++#define MD_FROB_UPDATE_CONTEXT alpha_frob_update_context
 +
-+/* Generate an ADD of SRC plus VAL into DEST.
-+   Handles the case where VAL is too big for max_constant_value.
-+   Sets FRAME_RELATED_P on the insn if IS_FRAME_RELATED is true.  */
++/* Fix up for signal handlers that don't have S flag set.  */
 +
 +static void
-+gen_safe_add (rtx dest, rtx src, rtx val, bool is_frame_related)
++alpha_frob_update_context (struct _Unwind_Context *context,
++                         _Unwind_FrameState *fs ATTRIBUTE_UNUSED)
 +{
-+  rtx insn;
++  unsigned int *pc = context->ra;
 +
-+  if (val == NULL_RTX || INTVAL (val) == 0)
-+    {
-+      gcc_assert (dest != src);
++  if (pc[0] == 0x47fe0410             /* mov $30,$16 */
++      && pc[2] == 0x00000083          /* callsys */
++      && (pc[1] == 0x201f0067         /* lda $0,NR_sigreturn */
++        || pc[1] == 0x201f015f))      /* lda $0,NR_rt_sigreturn */
++    _Unwind_SetSignalFrame (context, 1);
++}
+Index: gcc/config/s390/s390.md
+===================================================================
+--- gcc/config/s390/s390.md    (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/config/s390/s390.md    (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -7644,6 +7644,7 @@
+    sra<gk>\t%0,%1,%Y2"
+   [(set_attr "op_type"  "RS<E>,RSY")
+    (set_attr "atype"    "reg,reg")
++   (set_attr "cpu_facility" "*,z196")
+    (set_attr "z10prop" "z10_super_E1,*")])
+Index: gcc/config/sparc/sparc.md
+===================================================================
+--- gcc/config/sparc/sparc.md  (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/config/sparc/sparc.md  (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -28,6 +28,7 @@
+   [(UNSPEC_MOVE_PIC           0)
+    (UNSPEC_UPDATE_RETURN      1)
+    (UNSPEC_LOAD_PCREL_SYM     2)
++   (UNSPEC_FRAME_BLOCKAGE      3)
+    (UNSPEC_MOVE_PIC_LABEL     5)
+    (UNSPEC_SETH44             6)
+    (UNSPEC_SETM44             7)
+@@ -1813,8 +1814,8 @@
+ })
+ (define_insn "*movsf_insn"
+-  [(set (match_operand:V32 0 "nonimmediate_operand" "=d,f,*r,*r,*r,f,*r,m,m")
+-      (match_operand:V32 1 "input_operand"        "GY,f,*rRY,Q,S,m,m,f,*rGY"))]
++  [(set (match_operand:V32 0 "nonimmediate_operand" "=d,f,  *r,*r,*r,f,*r,m,   m")
++      (match_operand:V32 1 "input_operand"        "GY,f,*rRY, Q, S,m, m,f,*rGY"))]
+   "TARGET_FPU
+    && (register_operand (operands[0], <V32:MODE>mode)
+        || register_or_zero_operand (operands[1], <V32:MODE>mode))"
+@@ -1861,8 +1862,8 @@
+ ;; when -mno-fpu.
+ (define_insn "*movsf_insn_no_fpu"
+-  [(set (match_operand:SF 0 "nonimmediate_operand" "=r,r,r,r,m")
+-      (match_operand:SF 1 "input_operand"    "rR,Q,S,m,rG"))]
++  [(set (match_operand:SF 0 "nonimmediate_operand" "=r,r,r,r, m")
++      (match_operand:SF 1 "input_operand"        "rR,Q,S,m,rG"))]
+   "! TARGET_FPU
+    && (register_operand (operands[0], SFmode)
+        || register_or_zero_operand (operands[1], SFmode))"
+@@ -1948,8 +1949,8 @@
+ ;; Be careful, fmovd does not exist when !v9.
+ (define_insn "*movdf_insn_sp32"
+-  [(set (match_operand:DF 0 "nonimmediate_operand" "=e,W,U,T,o,e,*r,o,e,o")
+-      (match_operand:DF 1 "input_operand"    "W#F,e,T,U,G,e,*rFo,*r,o#F,e"))]
++  [(set (match_operand:DF 0 "nonimmediate_operand" "= e,W,U,T,o,e,  *r, o,  e,o")
++      (match_operand:DF 1 "input_operand"        "W#F,e,T,U,G,e,*rFo,*r,o#F,e"))]
+   "TARGET_FPU
+    && ! TARGET_V9
+    && (register_operand (operands[0], DFmode)
+@@ -1969,8 +1970,8 @@
+   (set_attr "length" "*,*,*,*,2,2,2,2,2,2")])
+ (define_insn "*movdf_insn_sp32_no_fpu"
+-  [(set (match_operand:DF 0 "nonimmediate_operand" "=U,T,o,r,o")
+-      (match_operand:DF 1 "input_operand"    "T,U,G,ro,r"))]
++  [(set (match_operand:DF 0 "nonimmediate_operand" "=U,T,o, r,o")
++      (match_operand:DF 1 "input_operand"        " T,U,G,ro,r"))]
+   "! TARGET_FPU
+    && ! TARGET_V9
+    && (register_operand (operands[0], DFmode)
+@@ -1986,8 +1987,8 @@
+ ;; We have available v9 double floats but not 64-bit integer registers.
+ (define_insn "*movdf_insn_sp32_v9"
+-  [(set (match_operand:V64 0 "nonimmediate_operand" "=b,e,e,T,W,U,T,f,*r,o")
+-        (match_operand:V64 1 "input_operand" "GY,e,W#F,GY,e,T,U,o#F,*roGYDF,*rGYf"))]
++  [(set (match_operand:V64 0 "nonimmediate_operand" "=b,e,  e, T,W,U,T,  f,   *r,    o")
++      (match_operand:V64 1 "input_operand"        "GY,e,W#F,GY,e,T,U,o#F,*roFD,*rGYf"))]
+   "TARGET_FPU
+    && TARGET_V9
+    && ! TARGET_ARCH64
+@@ -2009,8 +2010,8 @@
+    (set_attr "fptype" "double,double,*,*,*,*,*,*,*,*")])
+ (define_insn "*movdf_insn_sp32_v9_no_fpu"
+-  [(set (match_operand:DF 0 "nonimmediate_operand" "=U,T,T,r,o")
+-      (match_operand:DF 1 "input_operand"    "T,U,G,ro,rG"))]
++  [(set (match_operand:DF 0 "nonimmediate_operand" "=U,T,T, r, o")
++      (match_operand:DF 1 "input_operand"        " T,U,G,ro,rG"))]
+   "! TARGET_FPU
+    && TARGET_V9
+    && ! TARGET_ARCH64
+@@ -2027,8 +2028,8 @@
+ ;; We have available both v9 double floats and 64-bit integer registers.
+ (define_insn "*movdf_insn_sp64"
+-  [(set (match_operand:V64 0 "nonimmediate_operand" "=b,e,e,W,*r,*r,m,*r")
+-        (match_operand:V64 1 "input_operand"    "GY,e,W#F,e,*rGY,m,*rGY,DF"))]
++  [(set (match_operand:V64 0 "nonimmediate_operand" "=b,e,  e,W,  *r,*r,   m,*r")
++      (match_operand:V64 1 "input_operand"        "GY,e,W#F,e,*rGY, m,*rGY,FD"))]
+   "TARGET_FPU
+    && TARGET_ARCH64
+    && (register_operand (operands[0], <V64:MODE>mode)
+@@ -2047,8 +2048,8 @@
+    (set_attr "fptype" "double,double,*,*,*,*,*,*")])
+ (define_insn "*movdf_insn_sp64_no_fpu"
+-  [(set (match_operand:DF 0 "nonimmediate_operand" "=r,r,m")
+-        (match_operand:DF 1 "input_operand"    "r,m,rG"))]
++  [(set (match_operand:DF 0 "nonimmediate_operand" "=r,r, m")
++      (match_operand:DF 1 "input_operand"         "r,m,rG"))]
+   "! TARGET_FPU
+    && TARGET_ARCH64
+    && (register_operand (operands[0], DFmode)
+@@ -2288,8 +2289,8 @@
+ })
+ (define_insn "*movtf_insn_sp32"
+-  [(set (match_operand:TF 0 "nonimmediate_operand" "=b,e,o,U,r")
+-      (match_operand:TF 1 "input_operand"    "G,oe,GeUr,o,roG"))]
++  [(set (match_operand:TF 0 "nonimmediate_operand" "=b, e,   o,U,  r")
++      (match_operand:TF 1 "input_operand"        " G,oe,GeUr,o,roG"))]
+   "TARGET_FPU
+    && ! TARGET_ARCH64
+    && (register_operand (operands[0], TFmode)
+@@ -2302,8 +2303,8 @@
+ ;; when -mno-fpu.
+ (define_insn "*movtf_insn_sp32_no_fpu"
+-  [(set (match_operand:TF 0 "nonimmediate_operand" "=o,U,o,r,o")
+-      (match_operand:TF 1 "input_operand"    "G,o,U,roG,r"))]
++  [(set (match_operand:TF 0 "nonimmediate_operand" "=o,U,o,  r,o")
++      (match_operand:TF 1 "input_operand"        " G,o,U,roG,r"))]
+   "! TARGET_FPU
+    && ! TARGET_ARCH64
+    && (register_operand (operands[0], TFmode)
+@@ -2312,8 +2313,8 @@
+   [(set_attr "length" "4")])
+ (define_insn "*movtf_insn_sp64"
+-  [(set (match_operand:TF 0 "nonimmediate_operand" "=b,e,o,r")
+-        (match_operand:TF 1 "input_operand"    "G,oe,Ger,roG"))]
++  [(set (match_operand:TF 0 "nonimmediate_operand" "=b, e,  o,  r")
++      (match_operand:TF 1 "input_operand"         "G,oe,Ger,roG"))]
+   "TARGET_FPU
+    && TARGET_ARCH64
+    && ! TARGET_HARD_QUAD
+@@ -2323,8 +2324,8 @@
+   [(set_attr "length" "2")])
+ (define_insn "*movtf_insn_sp64_hq"
+-  [(set (match_operand:TF 0 "nonimmediate_operand" "=b,e,e,m,o,r")
+-        (match_operand:TF 1 "input_operand"    "G,e,m,e,rG,roG"))]
++  [(set (match_operand:TF 0 "nonimmediate_operand" "=b,e,e,m, o,  r")
++      (match_operand:TF 1 "input_operand"         "G,e,m,e,rG,roG"))]
+   "TARGET_FPU
+    && TARGET_ARCH64
+    && TARGET_HARD_QUAD
+@@ -2341,8 +2342,8 @@
+    (set_attr "length" "2,*,*,*,2,2")])
+ (define_insn "*movtf_insn_sp64_no_fpu"
+-  [(set (match_operand:TF 0 "nonimmediate_operand" "=r,o")
+-        (match_operand:TF 1 "input_operand"    "orG,rG"))]
++  [(set (match_operand:TF 0 "nonimmediate_operand" "=  r, o")
++      (match_operand:TF 1 "input_operand"         "orG,rG"))]
+   "! TARGET_FPU
+    && TARGET_ARCH64
+    && (register_operand (operands[0], TFmode)
+@@ -6338,6 +6339,25 @@
+   ""
+   [(set_attr "length" "0")])
++;; Do not schedule instructions accessing memory before this point.
 +
-+      insn = emit_move_insn (dest, src);
-+    }
-+  else if (ok_for_max_constant (INTVAL (val)))
-+    insn = emit_insn (gen_addsi3 (dest, src, val));
-+  else
-+    {
-+      /* Wrap VAL in an UNSPEC so that rx_is_legitimate_constant
-+       will not reject it.  */
-+      val = gen_rtx_CONST (SImode, gen_rtx_UNSPEC (SImode, gen_rtvec (1, val), UNSPEC_CONST));
-+      insn = emit_insn (gen_addsi3 (dest, src, val));
-+
-+      if (is_frame_related)
-+      /* We have to provide our own frame related note here
-+         as the dwarf2out code cannot be expected to grok
-+         our unspec.  */
-+      add_reg_note (insn, REG_FRAME_RELATED_EXPR,
-+                    gen_rtx_SET (SImode, dest,
-+                                 gen_rtx_PLUS (SImode, src, val)));
-+      return;
-+    }
++(define_expand "frame_blockage"
++  [(set (match_dup 0)
++      (unspec:BLK [(match_dup 1)] UNSPEC_FRAME_BLOCKAGE))]
++  ""
++{
++  operands[0] = gen_rtx_MEM (BLKmode, gen_rtx_SCRATCH (Pmode));
++  MEM_VOLATILE_P (operands[0]) = 1;
++  operands[1] = stack_pointer_rtx;
++})
 +
-+  if (is_frame_related)
-+    RTX_FRAME_RELATED_P (insn) = 1;
-+  return;
-+}
++(define_insn "*frame_blockage<P:mode>"
++  [(set (match_operand:BLK 0 "" "")
++      (unspec:BLK [(match_operand:P 1 "" "")] UNSPEC_FRAME_BLOCKAGE))]
++  ""
++  ""
++  [(set_attr "length" "0")])
 +
- void
- rx_expand_prologue (void)
+ (define_expand "probe_stack"
+   [(set (match_operand 0 "memory_operand" "") (const_int 0))]
+   ""
+Index: gcc/config/sparc/sparc.c
+===================================================================
+--- gcc/config/sparc/sparc.c   (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/config/sparc/sparc.c   (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -4569,8 +4569,9 @@
+       else if (actual_fsize <= 8192)
+       {
+         insn = emit_insn (gen_stack_pointer_inc (GEN_INT (-4096)));
++        RTX_FRAME_RELATED_P (insn) = 1;
++
+         /* %sp is still the CFA register.  */
+-        RTX_FRAME_RELATED_P (insn) = 1;
+         insn
+           = emit_insn (gen_stack_pointer_inc (GEN_INT (4096-actual_fsize)));
+       }
+@@ -4592,8 +4593,18 @@
+       else if (actual_fsize <= 8192)
+       {
+         insn = emit_insn (gen_save_register_window (GEN_INT (-4096)));
++
+         /* %sp is not the CFA register anymore.  */
+         emit_insn (gen_stack_pointer_inc (GEN_INT (4096-actual_fsize)));
++
++        /* Make sure no %fp-based store is issued until after the frame is
++           established.  The offset between the frame pointer and the stack
++           pointer is calculated relative to the value of the stack pointer
++           at the end of the function prologue, and moving instructions that
++           access the stack via the frame pointer between the instructions
++           that decrement the stack pointer could result in accessing the
++           register window save area, which is volatile.  */
++        emit_insn (gen_frame_blockage ());
+       }
+       else
+       {
+Index: gcc/config/sparc/sparc.h
+===================================================================
+--- gcc/config/sparc/sparc.h   (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/config/sparc/sparc.h   (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -408,6 +408,7 @@
+ %{mcpu=sparclite:-Asparclite} \
+ %{mcpu=sparclite86x:-Asparclite} \
+ %{mcpu=f930:-Asparclite} %{mcpu=f934:-Asparclite} \
++%{mcpu=v8:-Av8} \
+ %{mv8plus:-Av8plus} \
+ %{mcpu=v9:-Av9} \
+ %{mcpu=ultrasparc:%{!mv8plus:-Av9a}} \
+Index: gcc/config/sparc/sol2-unwind.h
+===================================================================
+--- gcc/config/sparc/sol2-unwind.h     (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/config/sparc/sol2-unwind.h     (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -1,5 +1,5 @@
+ /* DWARF2 EH unwinding support for SPARC Solaris.
+-   Copyright (C) 2009, 2010, 2011 Free Software Foundation, Inc.
++   Copyright (C) 2009, 2010, 2011, 2012 Free Software Foundation, Inc.
+ This file is part of GCC.
+@@ -34,7 +34,7 @@
+ #define IS_SIGHANDLER sparc64_is_sighandler
+ static int
+-sparc64_is_sighandler (unsigned int *pc, unsigned int *savpc, int *nframes)
++sparc64_is_sighandler (unsigned int *pc, void *cfa, int *nframes)
  {
-@@ -1298,24 +1449,13 @@
-         emit_insn (gen_stack_pushm (GEN_INT (2 * UNITS_PER_WORD),
-                                     gen_rx_store_vector (acc_low, acc_high)));
+   if (/* Solaris 8 - single-threaded
+       ----------------------------
+@@ -110,38 +110,58 @@
+       && pc[ 0] == 0x81c7e008
+       && pc[ 1] == 0x81e80000)
+     {
+-      if (/* Solaris 8 /usr/lib/sparcv9/libthread.so.1
+-          ------------------------------------------
+-          Before patch 108827-08:
+-          <sigacthandler+1760>:     st  %g4, [ %i1 + 0x1c ]
++      /* We have observed different calling frames among different
++       versions of the operating system, so that we need to
++       discriminate using the upper frame.  We look for the return
++       address of the caller frame (there is an offset of 15 double
++       words between the frame address and the place where this return
++       address is stored) in order to do some more pattern matching.  */
++      unsigned int cuh_pattern
++      = *(unsigned int *)(*(unsigned long *)(cfa + 15*8) - 4);
+-          Since patch 108827-08:
+-          <sigacthandler+1816>:     st  %l0, [ %i4 + 0x10 ]  */
+-              savpc[-1] == 0xc826601c
+-           || savpc[-1] == 0xe0272010)
++      if (cuh_pattern == 0xd25fa7ef)
+       {
+-        /* We need to move up three frames:
++        /* This matches the call_user_handler pattern for Solaris 10.
++           There are 2 cases so we look for the return address of the
++           caller's caller frame in order to do more pattern matching.  */
++        unsigned long sah_address = *(unsigned long *)(cfa + 176 + 15*8);
++          if (sah_address && *(unsigned int *)(sah_address - 4) == 0x92100019)
++          /* This is the same setup as for Solaris 9, see below.  */
++          *nframes = 3;
++        else
++          /* The sigacthandler frame isn't present in the chain.
++             We need to move up two frames:
++
+               <signal handler>        <-- context->cfa
+               __sighndlr
+-              sigacthandler
++              call_user_handler frame
+               <kernel>
+-        */
+-        *nframes = 2;
++          */
++          *nframes = 2;
        }
--
--      frame_size += 2 * UNITS_PER_WORD;
+-      else /* Solaris 8 /usr/lib/lwp/sparcv9/libthread.so.1, Solaris 9+
+-           ----------------------------------------------------------  */
+-      {
+-        /* We need to move up three frames:
++      else if (cuh_pattern == 0x9410001a || cuh_pattern == 0x94100013)
++      /* This matches the call_user_handler pattern for Solaris 9 and
++         for Solaris 8 running inside Solaris Containers respectively
++         We need to move up three frames:
+               <signal handler>        <-- context->cfa
+               __sighndlr
+               call_user_handler
+               sigacthandler
+               <kernel>
+-        */
+-        *nframes = 3;
+-      }
++      */
++      *nframes = 3;
++      else
++      /* This is the default Solaris 8 case.
++         We need to move up two frames:
++
++              <signal handler>        <-- context->cfa
++              __sighndlr
++              sigacthandler
++              <kernel>
++      */
++      *nframes = 2;
+       return 1;
      }
  
-   /* If needed, set up the frame pointer.  */
-   if (frame_pointer_needed)
--    {
--      if (frame_size)
--      insn = emit_insn (gen_addsi3 (frame_pointer_rtx, stack_pointer_rtx,
--                                    GEN_INT (- (HOST_WIDE_INT) frame_size)));
--      else
--      insn = emit_move_insn (frame_pointer_rtx, stack_pointer_rtx);
-+    gen_safe_add (frame_pointer_rtx, stack_pointer_rtx,
-+                GEN_INT (- (HOST_WIDE_INT) frame_size), true);
+@@ -172,7 +192,7 @@
+ #define IS_SIGHANDLER sparc_is_sighandler
  
--      RTX_FRAME_RELATED_P (insn) = 1;
--    }
--
--  insn = NULL_RTX;
--
-   /* Allocate space for the outgoing args.
-      If the stack frame has not already been set up then handle this as well.  */
-   if (stack_size)
-@@ -1323,29 +1463,26 @@
-       if (frame_size)
+ static int
+-sparc_is_sighandler (unsigned int *pc, unsigned int * savpc, int *nframes)
++sparc_is_sighandler (unsigned int *pc, void *cfa, int *nframes)
+ {
+   if (/* Solaris 8, 9 - single-threaded
+         -------------------------------
+@@ -200,7 +220,7 @@
+       && pc[-1] == 0x9410001a
+       && pc[ 0] == 0x80a62008)
+     {
+-      /* Need to move up one frame:
++      /* We need to move up one frame:
+               <signal handler>        <-- context->cfa
+               sigacthandler
+@@ -231,7 +251,7 @@
+       && pc[ 1] == 0x81e80000
+       && pc[ 2] == 0x80a26000)
+     {
+-      /* Need to move up one frame:
++      /* We need to move up one frame:
+               <signal handler>        <-- context->cfa
+               __libthread_segvhdlr
+@@ -258,33 +278,58 @@
+      && pc[ 0] == 0x81c7e008
+      && pc[ 1] == 0x81e80000)
+     {
+-      if (/* Solaris 8 /usr/lib/libthread.so.1
+-          ----------------------------------
+-          <sigacthandler+1796>:     mov  %i0, %o0  */
+-        savpc[-1] == 0x90100018)
++      /* We have observed different calling frames among different
++       versions of the operating system, so that we need to
++       discriminate using the upper frame.  We look for the return
++       address of the caller frame (there is an offset of 15 words
++       between the frame address and the place where this return
++       address is stored) in order to do some more pattern matching.  */
++      unsigned int cuh_pattern
++      = *(unsigned int *)(*(unsigned int *)(cfa + 15*4) - 4);
++
++      if (cuh_pattern == 0xd407a04c)
        {
-         if (frame_pointer_needed)
--          insn = emit_insn (gen_addsi3 (stack_pointer_rtx, frame_pointer_rtx,
--                                        GEN_INT (- (HOST_WIDE_INT)
--                                                 stack_size)));
-+          gen_safe_add (stack_pointer_rtx, frame_pointer_rtx,
-+                        GEN_INT (- (HOST_WIDE_INT) stack_size), true);
-         else
--          insn = emit_insn (gen_addsi3 (stack_pointer_rtx, stack_pointer_rtx,
--                                        GEN_INT (- (HOST_WIDE_INT)
--                                                 (frame_size + stack_size))));
-+          gen_safe_add (stack_pointer_rtx, stack_pointer_rtx,
-+                        GEN_INT (- (HOST_WIDE_INT) (frame_size + stack_size)),
-+                        true);
+-        /* We need to move up two frames:
++        /* This matches the call_user_handler pattern for Solaris 10.
++           There are 2 cases so we look for the return address of the
++           caller's caller frame in order to do more pattern matching.  */
++        unsigned int sah_address = *(unsigned int *)(cfa + 96 + 15*4);
++          if (sah_address && *(unsigned int *)(sah_address - 4) == 0x92100019)
++          /* This is the same setup as for Solaris 9, see below.  */
++          *nframes = 3;
++        else
++          /* The sigacthandler frame isn't present in the chain.
++             We need to move up two frames:
++
+               <signal handler>        <-- context->cfa
+               __sighndlr
+-              sigacthandler
++              call_user_handler frame
+               <kernel>
+-        */
+-        *nframes = 2;
++          */
++          *nframes = 2;
        }
-       else
--      insn = emit_insn (gen_addsi3 (stack_pointer_rtx, stack_pointer_rtx,
--                                    GEN_INT (- (HOST_WIDE_INT) stack_size)));
-+      gen_safe_add (stack_pointer_rtx, stack_pointer_rtx,
-+                    GEN_INT (- (HOST_WIDE_INT) stack_size), true);
+-      else /* Solaris 8 /usr/lib/lwp/libthread.so.1, Solaris 9+
+-           --------------------------------------------------  */
+-      {
+-        /* We need to move up three frames:
++      else if (cuh_pattern == 0x9410001a || cuh_pattern == 0x9410001b)
++      /* This matches the call_user_handler pattern for Solaris 9 and
++         for Solaris 8 running inside Solaris Containers respectively.
++         We need to move up three frames:
+               <signal handler>        <-- context->cfa
+               __sighndlr
+               call_user_handler
+               sigacthandler
+               <kernel>
+-        */
+-        *nframes = 3;
+-      }
++      */
++      *nframes = 3;
++      else
++      /* This is the default Solaris 8 case.
++         We need to move up two frames:
++
++              <signal handler>        <-- context->cfa
++              __sighndlr
++              sigacthandler
++              <kernel>
++      */
++      *nframes = 2;
+       return 1;
      }
-   else if (frame_size)
+@@ -322,7 +367,7 @@
+       return _URC_NO_REASON;
+     }
+-  if (IS_SIGHANDLER (pc, (unsigned int *)fp->fr_savpc, &nframes))
++  if (IS_SIGHANDLER (pc, this_cfa, &nframes))
      {
-       if (! frame_pointer_needed)
--      insn = emit_insn (gen_addsi3 (stack_pointer_rtx, stack_pointer_rtx,
--                                    GEN_INT (- (HOST_WIDE_INT) frame_size)));
-+      gen_safe_add (stack_pointer_rtx, stack_pointer_rtx,
-+                    GEN_INT (- (HOST_WIDE_INT) frame_size), true);
+       struct handler_args {
+       struct frame frwin;
+Index: gcc/config/i386/i386.md
+===================================================================
+--- gcc/config/i386/i386.md    (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/config/i386/i386.md    (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -1960,7 +1960,7 @@
+ (define_insn "*movdi_internal_rex64"
+   [(set (match_operand:DI 0 "nonimmediate_operand"
+-        "=r,r  ,r,m ,!m,*y,*y,?r ,m ,?*Ym,?*y,*x,*x,?r ,m,?*Yi,*x,?*x,?*Ym")
++        "=r,r  ,r,m ,!o,*y,*y,?r ,m ,?*Ym,?*y,*x,*x,?r ,m,?*Yi,*x,?*x,?*Ym")
+       (match_operand:DI 1 "general_operand"
+         "Z ,rem,i,re,n ,C ,*y,*Ym,*y,r   ,m  ,C ,*x,*Yi,*x,r  ,m ,*Ym,*x"))]
+   "TARGET_64BIT && !(MEM_P (operands[0]) && MEM_P (operands[1]))"
+@@ -2905,7 +2905,7 @@
+ (define_insn "*movdf_internal_rex64"
+   [(set (match_operand:DF 0 "nonimmediate_operand"
+-              "=f,m,f,r ,m,!r,!m,Y2*x,Y2*x,Y2*x,m   ,Yi,r ")
++              "=f,m,f,r ,m,!r,!o,Y2*x,Y2*x,Y2*x,m   ,Yi,r ")
+       (match_operand:DF 1 "general_operand"
+               "fm,f,G,rm,r,F ,F ,C   ,Y2*x,m   ,Y2*x,r ,Yi"))]
+   "TARGET_64BIT && !(MEM_P (operands[0]) && MEM_P (operands[1]))
+@@ -3647,7 +3647,7 @@
+        (match_operand:SI 1 "nonimmediate_operand" "rm,0,r   ,m  ,r   ,m")))]
+   "TARGET_64BIT"
+   "@
+-   mov\t{%k1, %k0|%k0, %k1}
++   mov{l}\t{%1, %k0|%k0, %1}
+    #
+    movd\t{%1, %0|%0, %1}
+    movd\t{%1, %0|%0, %1}
+@@ -5103,7 +5103,7 @@
+    && reload_completed
+    && (SSE_REG_P (operands[0])
+        || (GET_CODE (operands[0]) == SUBREG
+-         && SSE_REG_P (operands[0])))"
++         && SSE_REG_P (SUBREG_REG (operands[0]))))"
+   [(set (match_dup 0) (float:MODEF (match_dup 1)))])
+ (define_split
+@@ -5116,7 +5116,7 @@
+    && reload_completed
+    && (SSE_REG_P (operands[0])
+        || (GET_CODE (operands[0]) == SUBREG
+-         && SSE_REG_P (operands[0])))"
++         && SSE_REG_P (SUBREG_REG (operands[0]))))"
+   [(set (match_dup 2) (match_dup 1))
+    (set (match_dup 0) (float:MODEF (match_dup 2)))])
+@@ -5207,7 +5207,7 @@
+    && reload_completed
+    && (SSE_REG_P (operands[0])
+        || (GET_CODE (operands[0]) == SUBREG
+-         && SSE_REG_P (operands[0])))"
++         && SSE_REG_P (SUBREG_REG (operands[0]))))"
+   [(const_int 0)]
+ {
+   rtx op1 = operands[1];
+@@ -5248,7 +5248,7 @@
+    && reload_completed
+    && (SSE_REG_P (operands[0])
+        || (GET_CODE (operands[0]) == SUBREG
+-         && SSE_REG_P (operands[0])))"
++         && SSE_REG_P (SUBREG_REG (operands[0]))))"
+   [(const_int 0)]
+ {
+   operands[3] = simplify_gen_subreg (<ssevecmode>mode, operands[0],
+@@ -5270,7 +5270,7 @@
+    && reload_completed
+    && (SSE_REG_P (operands[0])
+        || (GET_CODE (operands[0]) == SUBREG
+-         && SSE_REG_P (operands[0])))"
++         && SSE_REG_P (SUBREG_REG (operands[0]))))"
+   [(const_int 0)]
+ {
+   rtx op1 = operands[1];
+@@ -5314,7 +5314,7 @@
+    && reload_completed
+    && (SSE_REG_P (operands[0])
+        || (GET_CODE (operands[0]) == SUBREG
+-         && SSE_REG_P (operands[0])))"
++         && SSE_REG_P (SUBREG_REG (operands[0]))))"
+   [(const_int 0)]
+ {
+   operands[3] = simplify_gen_subreg (<ssevecmode>mode, operands[0],
+@@ -5375,7 +5375,7 @@
+    && reload_completed
+    && (SSE_REG_P (operands[0])
+        || (GET_CODE (operands[0]) == SUBREG
+-         && SSE_REG_P (operands[0])))"
++         && SSE_REG_P (SUBREG_REG (operands[0]))))"
+   [(set (match_dup 0) (float:MODEF (match_dup 1)))])
+ (define_insn "*float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit"
+@@ -5410,7 +5410,7 @@
+    && reload_completed
+    && (SSE_REG_P (operands[0])
+        || (GET_CODE (operands[0]) == SUBREG
+-         && SSE_REG_P (operands[0])))"
++         && SSE_REG_P (SUBREG_REG (operands[0]))))"
+   [(set (match_dup 2) (match_dup 1))
+    (set (match_dup 0) (float:MODEF (match_dup 2)))])
+@@ -5423,7 +5423,7 @@
+    && reload_completed
+    && (SSE_REG_P (operands[0])
+        || (GET_CODE (operands[0]) == SUBREG
+-         && SSE_REG_P (operands[0])))"
++         && SSE_REG_P (SUBREG_REG (operands[0]))))"
+   [(set (match_dup 0) (float:MODEF (match_dup 1)))])
+ (define_insn "*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp"
+@@ -9222,7 +9222,7 @@
+                           (match_dup 0)))
+    (set (match_dup 1)
+       (if_then_else:SWI48 (ne (reg:CCZ FLAGS_REG) (const_int 0))
+-                          (match_operand:SWI48 3 "register_operand" "r")
++                          (match_operand:SWI48 3 "register_operand" "")
+                           (match_dup 1)))]
+   "TARGET_CMOVE"
+   "operands[4] = GEN_INT (GET_MODE_BITSIZE (<MODE>mode));")
+@@ -14625,7 +14625,7 @@
+       emit_insn (gen_sse4_1_round<mode>2
+                  (operands[0], operands[1], GEN_INT (0x04)));
        else
--      insn = emit_move_insn (stack_pointer_rtx, frame_pointer_rtx);
-+      gen_safe_add (stack_pointer_rtx, frame_pointer_rtx, NULL_RTX,
-+                    true);
+-      ix86_expand_rint (operand0, operand1);
++      ix86_expand_rint (operands[0], operands[1]);
      }
--
--  if (insn != NULL_RTX)
--    RTX_FRAME_RELATED_P (insn) = 1;
- }
+   else
+     {
+@@ -14649,9 +14649,9 @@
+   if (optimize_insn_for_size_p ())
+     FAIL;
+   if (TARGET_64BIT || (<MODE>mode != DFmode))
+-    ix86_expand_round (operand0, operand1);
++    ix86_expand_round (operands[0], operands[1]);
+   else
+-    ix86_expand_rounddf_32 (operand0, operand1);
++    ix86_expand_rounddf_32 (operands[0], operands[1]);
+   DONE;
+ })
  
- static void
-@@ -1523,8 +1660,8 @@
+@@ -14796,7 +14796,7 @@
+ {
+   if (optimize_insn_for_size_p ())
+     FAIL;
+-  ix86_expand_lround (operand0, operand1);
++  ix86_expand_lround (operands[0], operands[1]);
+   DONE;
+ })
+@@ -14871,9 +14871,9 @@
+       emit_insn (gen_sse4_1_round<mode>2
+                  (operands[0], operands[1], GEN_INT (0x01)));
+       else if (TARGET_64BIT || (<MODE>mode != DFmode))
+-      ix86_expand_floorceil (operand0, operand1, true);
++      ix86_expand_floorceil (operands[0], operands[1], true);
+       else
+-      ix86_expand_floorceildf_32 (operand0, operand1, true);
++      ix86_expand_floorceildf_32 (operands[0], operands[1], true);
+     }
+   else
      {
-       /* Cannot use the special instructions - deconstruct by hand.  */
-       if (total_size)
--      emit_insn (gen_addsi3 (stack_pointer_rtx, stack_pointer_rtx,
--                             GEN_INT (total_size)));
-+      gen_safe_add (stack_pointer_rtx, stack_pointer_rtx,
-+                    GEN_INT (total_size), false);
-       if (MUST_SAVE_ACC_REGISTER)
-       {
-@@ -1615,8 +1752,8 @@
-         return;
-       }
+@@ -15053,7 +15053,7 @@
+ {
+   if (TARGET_64BIT && optimize_insn_for_size_p ())
+     FAIL;
+-  ix86_expand_lfloorceil (operand0, operand1, true);
++  ix86_expand_lfloorceil (operands[0], operands[1], true);
+   DONE;
+ })
  
--      emit_insn (gen_addsi3 (stack_pointer_rtx, stack_pointer_rtx,
--                           GEN_INT (total_size)));
-+      gen_safe_add (stack_pointer_rtx, stack_pointer_rtx,
-+                  GEN_INT (total_size), false);
+@@ -15128,9 +15128,9 @@
+       else if (optimize_insn_for_size_p ())
+       FAIL;
+       else if (TARGET_64BIT || (<MODE>mode != DFmode))
+-      ix86_expand_floorceil (operand0, operand1, false);
++      ix86_expand_floorceil (operands[0], operands[1], false);
+       else
+-      ix86_expand_floorceildf_32 (operand0, operand1, false);
++      ix86_expand_floorceildf_32 (operands[0], operands[1], false);
      }
+   else
+     {
+@@ -15308,7 +15308,7 @@
+   "SSE_FLOAT_MODE_P (<MODEF:MODE>mode) && TARGET_SSE_MATH
+    && !flag_trapping_math"
+ {
+-  ix86_expand_lfloorceil (operand0, operand1, false);
++  ix86_expand_lfloorceil (operands[0], operands[1], false);
+   DONE;
+ })
  
-   if (low)
-@@ -1893,7 +2030,7 @@
-   if (rx_cpu_type == RX610)
-     return NULL_RTX;
+@@ -15383,9 +15383,9 @@
+       else if (optimize_insn_for_size_p ())
+       FAIL;
+       else if (TARGET_64BIT || (<MODE>mode != DFmode))
+-      ix86_expand_trunc (operand0, operand1);
++      ix86_expand_trunc (operands[0], operands[1]);
+       else
+-      ix86_expand_truncdf_32 (operand0, operand1);
++      ix86_expand_truncdf_32 (operands[0], operands[1]);
+     }
+   else
+     {
+@@ -18285,8 +18285,8 @@
+                    (match_operand:SI 3 "const_int_operand" "i")]
+                   UNSPECV_LWPVAL_INTRINSIC)]
+   "TARGET_LWP"
+-  "/* Avoid unused variable warning.  */
+-   (void) operand0;")
++  ;; Avoid unused variable warning.
++  "(void) operands[0];")
+ (define_insn "*lwp_lwpval<mode>3_1"
+   [(unspec_volatile [(match_operand:SWI48 0 "register_operand" "r")
+Index: gcc/config/i386/sse.md
+===================================================================
+--- gcc/config/i386/sse.md     (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/config/i386/sse.md     (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -4521,15 +4521,14 @@
+   [(set (match_operand:V4DF 0 "register_operand"         "=x,x")
+       (vec_select:V4DF
+         (vec_concat:V8DF
+-          (match_operand:V4DF 1 "nonimmediate_operand" "xm,x")
+-          (match_operand:V4DF 2 "nonimmediate_operand" " 1,xm"))
++          (match_operand:V4DF 1 "nonimmediate_operand" " x,m")
++          (match_operand:V4DF 2 "nonimmediate_operand" "xm,1"))
+         (parallel [(const_int 0) (const_int 4)
+                    (const_int 2) (const_int 6)])))]
+-  "TARGET_AVX
+-   && (!MEM_P (operands[1]) || rtx_equal_p (operands[1], operands[2]))"
++  "TARGET_AVX"
+   "@
+-   vmovddup\t{%1, %0|%0, %1}
+-   vunpcklpd\t{%2, %1, %0|%0, %1, %2}"
++   vunpcklpd\t{%2, %1, %0|%0, %1, %2}
++   vmovddup\t{%1, %0|%0, %1}"
+   [(set_attr "type" "sselog")
+    (set_attr "prefix" "vex")
+    (set_attr "mode" "V4DF")])
+Index: gcc/config/i386/freebsd.h
+===================================================================
+--- gcc/config/i386/freebsd.h  (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/config/i386/freebsd.h  (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -147,3 +147,6 @@
+ #if FBSD_MAJOR >= 6
+ #define SUBTARGET32_DEFAULT_CPU "i486"
+ #endif
++
++#define TARGET_ASM_FILE_END file_end_indicate_exec_stack
++
+Index: gcc/config/i386/driver-i386.c
+===================================================================
+--- gcc/config/i386/driver-i386.c      (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/config/i386/driver-i386.c      (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -507,7 +507,7 @@
+       processor = PROCESSOR_AMDFAM10;
+       else if (has_sse2 || has_longmode)
+       processor = PROCESSOR_K8;
+-      else if (has_3dnowp)
++      else if (has_3dnowp && family == 6)
+       processor = PROCESSOR_ATHLON;
+       else if (has_mmx)
+       processor = PROCESSOR_K6;
+Index: gcc/config/i386/avxintrin.h
+===================================================================
+--- gcc/config/i386/avxintrin.h        (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/config/i386/avxintrin.h        (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -759,7 +759,7 @@
  
--  if (! CONST_INT_P (arg) || ! IN_RANGE (arg, 0, (1 << 4) - 1))
-+  if (! CONST_INT_P (arg) || ! IN_RANGE (INTVAL (arg), 0, (1 << 4) - 1))
-     return NULL_RTX;
+ #ifdef __x86_64__
+ extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, __artificial__))
+-_mm256_insert_epi64 (__m256i __X, int __D, int const __N)
++_mm256_insert_epi64 (__m256i __X, long long __D, int const __N)
+ {
+   __m128i __Y = _mm256_extractf128_si256 (__X, __N >> 1);
+   __Y = _mm_insert_epi64 (__Y, __D, __N % 2);
+Index: gcc/config/i386/i386.c
+===================================================================
+--- gcc/config/i386/i386.c     (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/config/i386/i386.c     (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -16329,7 +16329,6 @@
+   basic_block bb = BLOCK_FOR_INSN (insn);
+   int distance = 0;
+   df_ref *def_rec;
+-  enum attr_type insn_type;
  
-   emit_insn (gen_mvtipl (arg));
-@@ -1962,6 +2099,31 @@
-   return target;
- }
+   if (insn != BB_HEAD (bb))
+     {
+@@ -16345,8 +16344,8 @@
+                     && (regno1 == DF_REF_REGNO (*def_rec)
+                       || regno2 == DF_REF_REGNO (*def_rec)))
+                 {
+-                  insn_type = get_attr_type (prev);
+-                  if (insn_type != TYPE_LEA)
++                  if (recog_memoized (prev) < 0
++                      || get_attr_type (prev) != TYPE_LEA)
+                     goto done;
+                 }
+           }
+@@ -16385,8 +16384,8 @@
+                       && (regno1 == DF_REF_REGNO (*def_rec)
+                           || regno2 == DF_REF_REGNO (*def_rec)))
+                     {
+-                      insn_type = get_attr_type (prev);
+-                      if (insn_type != TYPE_LEA)
++                      if (recog_memoized (prev) < 0
++                          || get_attr_type (prev) != TYPE_LEA)
+                         goto done;
+                     }
+               }
+Index: gcc/config/avr/libgcc.S
+===================================================================
+--- gcc/config/avr/libgcc.S    (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/config/avr/libgcc.S    (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -582,7 +582,16 @@
+       push r17
+       push r28
+       push r29
++#if defined (__AVR_HAVE_8BIT_SP__)
++;; FIXME: __AVR_HAVE_8BIT_SP__ is set on device level, not on core level
++;;        so this lines are dead code.  To make it work, devices without
++;;        SP_H must get their own multilib(s), see PR51345.
+       in      r28,__SP_L__
++      sub     r28,r26
++      clr     r29
++      out     __SP_L__,r28
++#else
++      in      r28,__SP_L__
+       in      r29,__SP_H__
+       sub     r28,r26
+       sbc     r29,r27
+@@ -591,6 +600,7 @@
+       out     __SP_H__,r29
+       out     __SREG__,__tmp_reg__
+       out     __SP_L__,r28
++#endif
+ #if defined (__AVR_HAVE_EIJMP_EICALL__)
+       eijmp
+ #else
+@@ -625,6 +635,15 @@
+       ldd     r16,Y+4
+       ldd     r17,Y+3
+       ldd     r26,Y+2
++#if defined (__AVR_HAVE_8BIT_SP__)
++;; FIXME: __AVR_HAVE_8BIT_SP__ is set on device level, not on core level
++;;        so this lines are dead code.  To make it work, devices without
++;;        SP_H must get their own multilib(s).
++      ldd     r29,Y+1
++      add     r28,r30
++      out     __SP_L__,r28
++      mov     r28, r26
++#else
+       ldd     r27,Y+1
+       add     r28,r30
+       adc     r29,__zero_reg__
+@@ -635,6 +654,7 @@
+       out     __SP_L__,r28
+       mov_l   r28, r26
+       mov_h   r29, r27
++#endif
+       ret
+ .endfunc
+ #endif /* defined (L_epilogue) */
+Index: gcc/config/avr/avr.md
+===================================================================
+--- gcc/config/avr/avr.md      (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/config/avr/avr.md      (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -299,7 +299,7 @@
+   [(set (match_operand:HI 0 "stack_register_operand" "=q")
+         (unspec_volatile:HI [(match_operand:HI 1 "register_operand"  "r")] 
+                           UNSPECV_WRITE_SP_IRQ_OFF))]
+-  ""
++  "!AVR_HAVE_8BIT_SP"
+   "out __SP_H__, %B1
+       out __SP_L__, %A1"
+   [(set_attr "length" "2")
+@@ -309,7 +309,7 @@
+   [(set (match_operand:HI 0 "stack_register_operand" "=q")
+         (unspec_volatile:HI [(match_operand:HI 1 "register_operand"  "r")] 
+                           UNSPECV_WRITE_SP_IRQ_ON))]
+-  ""
++  "!AVR_HAVE_8BIT_SP"
+   "cli
+         out __SP_H__, %B1
+       sei
+Index: gcc/config/avr/avr-devices.c
+===================================================================
+--- gcc/config/avr/avr-devices.c       (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/config/avr/avr-devices.c       (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -70,7 +70,7 @@
+   { "attiny2313a",          ARCH_AVR25, "__AVR_ATtiny2313A__",      1, 0x0060, "tn2313a" },
+   { "attiny24",             ARCH_AVR25, "__AVR_ATtiny24__",         1, 0x0060, "tn24" },
+   { "attiny24a",            ARCH_AVR25, "__AVR_ATtiny24A__",        1, 0x0060, "tn24a" },
+-  { "attiny4313",           ARCH_AVR25, "__AVR_ATtiny4313__",       1, 0x0060, "tn4313" },
++  { "attiny4313",           ARCH_AVR25, "__AVR_ATtiny4313__",       0, 0x0060, "tn4313" },
+   { "attiny44",             ARCH_AVR25, "__AVR_ATtiny44__",         0, 0x0060, "tn44" },
+   { "attiny44a",            ARCH_AVR25, "__AVR_ATtiny44A__",        0, 0x0060, "tn44a" },
+   { "attiny84",             ARCH_AVR25, "__AVR_ATtiny84__",         0, 0x0060, "tn84" },
+@@ -88,7 +88,7 @@
+   { "attiny87",             ARCH_AVR25, "__AVR_ATtiny87__",         0, 0x0100, "tn87" },
+   { "attiny48",             ARCH_AVR25, "__AVR_ATtiny48__",         0, 0x0100, "tn48" },
+   { "attiny88",             ARCH_AVR25, "__AVR_ATtiny88__",         0, 0x0100, "tn88" },
+-  { "at86rf401",            ARCH_AVR25, "__AVR_AT86RF401__",        1, 0x0060, "86401" },
++  { "at86rf401",            ARCH_AVR25, "__AVR_AT86RF401__",        0, 0x0060, "86401" },
+     /* Classic, > 8K, <= 64K.  */
+   { "avr3",                 ARCH_AVR3, NULL,                        0, 0x0060, "43355" },
+   { "at43usb355",           ARCH_AVR3, "__AVR_AT43USB355__",        0, 0x0060, "43355" },
+Index: gcc/config/avr/avr.c
+===================================================================
+--- gcc/config/avr/avr.c       (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/config/avr/avr.c       (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -1879,9 +1879,12 @@
+           }
+         else if (test_hard_reg_class (STACK_REG, src))
+           {
+-            *l = 2;   
+-            return (AS2 (in,%A0,__SP_L__) CR_TAB
+-                    AS2 (in,%B0,__SP_H__));
++              *l = 2;
++              return AVR_HAVE_8BIT_SP
++                ? (AS2 (in,%A0,__SP_L__) CR_TAB
++                   AS1 (clr,%B0))
++                : (AS2 (in,%A0,__SP_L__) CR_TAB
++                   AS2 (in,%B0,__SP_H__));
+           }
  
-+static int
-+valid_psw_flag (rtx op, const char *which)
-+{
-+  static int mvtc_inform_done = 0;
-+
-+  if (GET_CODE (op) == CONST_INT)
-+    switch (INTVAL (op))
-+      {
-+      case 0: case 'c': case 'C':
-+      case 1: case 'z': case 'Z':
-+      case 2: case 's': case 'S':
-+      case 3: case 'o': case 'O':
-+      case 8: case 'i': case 'I':
-+      case 9: case 'u': case 'U':
-+      return 1;
-+      }
+         if (AVR_HAVE_MOVW)
+@@ -5151,6 +5154,7 @@
+   if (new_decl_p
+       && decl && DECL_P (decl)
+       && NULL_TREE == DECL_INITIAL (decl)
++      && !DECL_EXTERNAL (decl)
+       && avr_progmem_p (decl, DECL_ATTRIBUTES (decl)))
+     {
+       warning (OPT_Wuninitialized,
+@@ -5173,10 +5177,10 @@
+   default_file_start ();
+-/*  fprintf (asm_out_file, "\t.arch %s\n", avr_mcu_name);*/
+-  fputs ("__SREG__ = 0x3f\n"
+-       "__SP_H__ = 0x3e\n"
+-       "__SP_L__ = 0x3d\n", asm_out_file);
++  fputs ("__SREG__ = 0x3f\n", asm_out_file);
++  if (!AVR_HAVE_8BIT_SP)
++    fputs ("__SP_H__ = 0x3e\n", asm_out_file);
++  fputs ("__SP_L__ = 0x3d\n", asm_out_file);
+   
+   fputs ("__tmp_reg__ = 0\n" 
+          "__zero_reg__ = 1\n", asm_out_file);
+Index: gcc/config/rs6000/rs6000.c
+===================================================================
+--- gcc/config/rs6000/rs6000.c (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/config/rs6000/rs6000.c (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -2612,6 +2612,7 @@
+      off.  */
+   rs6000_altivec_abi = 1;
+   TARGET_ALTIVEC_VRSAVE = 1;
++  rs6000_current_abi = ABI_DARWIN;
+   if (DEFAULT_ABI == ABI_DARWIN
+       && TARGET_64BIT)
+@@ -6824,6 +6825,7 @@
+ #if TARGET_MACHO
+       && DEFAULT_ABI == ABI_DARWIN
+       && (flag_pic || MACHO_DYNAMIC_NO_PIC_P)
++      && machopic_symbol_defined_p (x)
+ #else
+       && DEFAULT_ABI == ABI_V4
+       && !flag_pic
+@@ -16613,7 +16615,7 @@
+       if (TARGET_RELOCATABLE
+         && in_section != toc_section
+         && in_section != text_section
+-        && !unlikely_text_section_p (in_section)
++        && (in_section && (in_section->common.flags & SECTION_CODE)) == 0
+         && !recurse
+         && GET_CODE (x) != CONST_INT
+         && GET_CODE (x) != CONST_DOUBLE
+@@ -20227,7 +20229,7 @@
+ {
+   /* This blockage is needed so that sched doesn't decide to move
+      the sp change before the register restores.  */
+-  if (frame_reg_rtx != sp_reg_rtx
++  if (DEFAULT_ABI == ABI_V4
+       || (TARGET_SPE_ABI
+         && info->spe_64bit_regs_used != 0
+         && info->first_gp_reg_save != 32))
+@@ -20644,56 +20646,52 @@
+     {
+       int i;
+       rtx spe_save_area_ptr;
+- 
++      int save_ptr_to_sp;
++      int ool_adjust = 0;
++
+       /* Determine whether we can address all of the registers that need
+-       to be saved with an offset from the stack pointer that fits in
++       to be saved with an offset from frame_reg_rtx that fits in
+        the small const field for SPE memory instructions.  */
+-      int spe_regs_addressable_via_sp
+-      = (SPE_CONST_OFFSET_OK(info->spe_gp_save_offset + sp_offset
+-                             + (32 - info->first_gp_reg_save - 1) * reg_size)
++      int spe_regs_addressable
++      = (SPE_CONST_OFFSET_OK (info->spe_gp_save_offset + sp_offset
++                              + reg_size * (32 - info->first_gp_reg_save - 1))
+          && saving_GPRs_inline);
+       int spe_offset;
+- 
+-      if (spe_regs_addressable_via_sp)
++
++      if (spe_regs_addressable)
+       {
+         spe_save_area_ptr = frame_reg_rtx;
++        save_ptr_to_sp = info->total_size - sp_offset;
+         spe_offset = info->spe_gp_save_offset + sp_offset;
+       }
+       else
+       {
+         /* Make r11 point to the start of the SPE save area.  We need
+            to be careful here if r11 is holding the static chain.  If
+-           it is, then temporarily save it in r0.  We would use r0 as
+-           our base register here, but using r0 as a base register in
+-           loads and stores means something different from what we
+-           would like.  */
+-        int ool_adjust = (saving_GPRs_inline
+-                          ? 0
+-                          : (info->first_gp_reg_save
+-                             - (FIRST_SAVRES_REGISTER+1))*8);
+-        HOST_WIDE_INT offset = (info->spe_gp_save_offset
+-                                + sp_offset - ool_adjust);
++           it is, then temporarily save it in r0.  */
++        int offset;
++        if (!saving_GPRs_inline)
++          ool_adjust = 8 * (info->first_gp_reg_save
++                            - (FIRST_SAVRES_REGISTER + 1));
++        offset = info->spe_gp_save_offset + sp_offset - ool_adjust;
++        spe_save_area_ptr = gen_rtx_REG (Pmode, 11);
++        save_ptr_to_sp = info->total_size - sp_offset + offset;
++        spe_offset = 0;
++
+         if (using_static_chain_p)
+           {
+             rtx r0 = gen_rtx_REG (Pmode, 0);
+             gcc_assert (info->first_gp_reg_save > 11);
+- 
+-            emit_move_insn (r0, gen_rtx_REG (Pmode, 11));
 +
-+  error ("__builtin_rx_%s takes 'C', 'Z', 'S', 'O', 'I', or 'U'", which);
-+  if (!mvtc_inform_done)
-+    error ("use __builtin_rx_mvtc (0, ... ) to write arbitrary values to PSW");
-+  mvtc_inform_done = 1;
++            emit_move_insn (r0, spe_save_area_ptr);
+           }
+- 
+-        spe_save_area_ptr = gen_rtx_REG (Pmode, 11);
+-        insn = emit_insn (gen_addsi3 (spe_save_area_ptr,
+-                                      frame_reg_rtx,
+-                                      GEN_INT (offset)));
+-        /* We need to make sure the move to r11 gets noted for
+-           properly outputting unwind information.  */
+-        if (!saving_GPRs_inline)
+-          rs6000_frame_related (insn, frame_reg_rtx, offset,
+-                                NULL_RTX, NULL_RTX);
+-        spe_offset = 0;
++        emit_insn (gen_addsi3 (spe_save_area_ptr,
++                               frame_reg_rtx, GEN_INT (offset)));
++        if (REGNO (frame_reg_rtx) == 11)
++          sp_offset = -info->spe_gp_save_offset + ool_adjust;
+       }
+- 
 +
-+  return 0;
-+}
+       if (saving_GPRs_inline)
+       {
+         for (i = 0; i < 32 - info->first_gp_reg_save; i++)
+@@ -20705,36 +20703,34 @@
+               /* We're doing all this to ensure that the offset fits into
+                  the immediate offset of 'evstdd'.  */
+               gcc_assert (SPE_CONST_OFFSET_OK (reg_size * i + spe_offset));
+- 
++
+               offset = GEN_INT (reg_size * i + spe_offset);
+               addr = gen_rtx_PLUS (Pmode, spe_save_area_ptr, offset);
+               mem = gen_rtx_MEM (V2SImode, addr);
+-  
 +
- static rtx
- rx_expand_builtin (tree exp,
-                  rtx target,
-@@ -1977,10 +2139,14 @@
-   switch (fcode)
-     {
-     case RX_BUILTIN_BRK:     emit_insn (gen_brk ()); return NULL_RTX;
--    case RX_BUILTIN_CLRPSW:  return rx_expand_void_builtin_1_arg
--      (op, gen_clrpsw, false);
--    case RX_BUILTIN_SETPSW:  return rx_expand_void_builtin_1_arg
--      (op, gen_setpsw, false);
-+    case RX_BUILTIN_CLRPSW:  
-+      if (! valid_psw_flag (op, "clrpsw"))
-+      return NULL_RTX;
-+      return rx_expand_void_builtin_1_arg (op, gen_clrpsw, false);
-+      if (! valid_psw_flag (op, "setpsw"))
-+      return NULL_RTX;
-+      return rx_expand_void_builtin_1_arg (op, gen_setpsw, false);
-+    case RX_BUILTIN_SETPSW:  
-     case RX_BUILTIN_INT:     return rx_expand_void_builtin_1_arg
-       (op, gen_int, false);
-     case RX_BUILTIN_MACHI:   return rx_expand_builtin_mac (exp, gen_machi);
-@@ -2186,7 +2352,6 @@
-       error ("Changing the FPU insns/math optimizations pairing is not supported");
+               insn = emit_move_insn (mem, reg);
+-         
+-              rs6000_frame_related (insn, spe_save_area_ptr,
+-                                    info->spe_gp_save_offset
+-                                    + sp_offset + reg_size * i,
+-                                    offset, const0_rtx);
++
++              rs6000_frame_related (insn,
++                                    spe_save_area_ptr, save_ptr_to_sp,
++                                    NULL_RTX, NULL_RTX);
+             }
+       }
+       else
+       {
+         rtx par;
+-        par = rs6000_make_savres_rtx (info, gen_rtx_REG (Pmode, 11),
+-                                      0, reg_mode,
++        par = rs6000_make_savres_rtx (info, spe_save_area_ptr,
++                                      ool_adjust, reg_mode,
+                                       /*savep=*/true, /*gpr=*/true,
+                                       /*lr=*/false);
+         insn = emit_insn (par);
+-        rs6000_frame_related (insn, frame_ptr_rtx, info->total_size,
++        rs6000_frame_related (insn, spe_save_area_ptr, save_ptr_to_sp,
+                               NULL_RTX, NULL_RTX);
+       }
+-                                      
+- 
++
+       /* Move the static chain pointer back.  */
+-      if (using_static_chain_p && !spe_regs_addressable_via_sp)
+-      emit_move_insn (gen_rtx_REG (Pmode, 11), gen_rtx_REG (Pmode, 0));
++      if (using_static_chain_p && !spe_regs_addressable)
++      emit_move_insn (spe_save_area_ptr, gen_rtx_REG (Pmode, 0));
      }
- }
--
\f
- static bool
- rx_allocate_stack_slots_for_args (void)
-@@ -2233,50 +2398,10 @@
- static bool
- rx_is_ms_bitfield_layout (const_tree record_type ATTRIBUTE_UNUSED)
+   else if (!WORLD_SAVE_P (info) && !saving_GPRs_inline)
+     {
+@@ -20743,10 +20739,12 @@
+       /* Need to adjust r11 (r12) if we saved any FPRs.  */
+       if (info->first_fp_reg_save != 64)
+         {
+-        rtx dest_reg = gen_rtx_REG (reg_mode, DEFAULT_ABI == ABI_AIX
+-                                    ? 12 : 11);
+-        rtx offset = GEN_INT (sp_offset
+-                                + (-8 * (64-info->first_fp_reg_save)));
++        rtx dest_reg = gen_rtx_REG (Pmode, DEFAULT_ABI == ABI_AIX ? 12 : 11);
++        int save_off = 8 * (64 - info->first_fp_reg_save);
++        rtx offset = GEN_INT (sp_offset - save_off);
++
++        if (REGNO (dest_reg) == REGNO (frame_reg_rtx))
++          sp_offset = save_off;
+         emit_insn (gen_add3_insn (dest_reg, frame_reg_rtx, offset));
+         }
+@@ -21622,40 +21620,39 @@
+       && info->first_gp_reg_save != 32)
+     {
+       /* Determine whether we can address all of the registers that need
+-         to be saved with an offset from the stack pointer that fits in
+-         the small const field for SPE memory instructions.  */
+-      int spe_regs_addressable_via_sp
+-      = (SPE_CONST_OFFSET_OK(info->spe_gp_save_offset + sp_offset
+-                             + (32 - info->first_gp_reg_save - 1) * reg_size)
++       to be saved with an offset from frame_reg_rtx that fits in
++       the small const field for SPE memory instructions.  */
++      int spe_regs_addressable
++      = (SPE_CONST_OFFSET_OK (info->spe_gp_save_offset + sp_offset
++                              + reg_size * (32 - info->first_gp_reg_save - 1))
+          && restoring_GPRs_inline);
+       int spe_offset;
++      int ool_adjust = 0;
+-      if (spe_regs_addressable_via_sp)
++      if (spe_regs_addressable)
+       spe_offset = info->spe_gp_save_offset + sp_offset;
+       else
+-        {
++      {
+         rtx old_frame_reg_rtx = frame_reg_rtx;
+-          /* Make r11 point to the start of the SPE save area.  We worried about
+-             not clobbering it when we were saving registers in the prologue.
+-             There's no need to worry here because the static chain is passed
+-             anew to every function.  */
+-        int ool_adjust = (restoring_GPRs_inline
+-                          ? 0
+-                          : (info->first_gp_reg_save
+-                             - (FIRST_SAVRES_REGISTER+1))*8);
++        /* Make r11 point to the start of the SPE save area.  We worried about
++           not clobbering it when we were saving registers in the prologue.
++           There's no need to worry here because the static chain is passed
++           anew to every function.  */
+-        if (frame_reg_rtx == sp_reg_rtx)
+-          frame_reg_rtx = gen_rtx_REG (Pmode, 11);
+-          emit_insn (gen_addsi3 (frame_reg_rtx, old_frame_reg_rtx,
++        if (!restoring_GPRs_inline)
++          ool_adjust = 8 * (info->first_gp_reg_save
++                            - (FIRST_SAVRES_REGISTER + 1));
++        frame_reg_rtx = gen_rtx_REG (Pmode, 11);
++        emit_insn (gen_addsi3 (frame_reg_rtx, old_frame_reg_rtx,
+                                GEN_INT (info->spe_gp_save_offset
+                                         + sp_offset
+                                         - ool_adjust)));
+         /* Keep the invariant that frame_reg_rtx + sp_offset points
+            at the top of the stack frame.  */
+-        sp_offset = -info->spe_gp_save_offset;
++        sp_offset = -info->spe_gp_save_offset + ool_adjust;
+-          spe_offset = 0;
+-        }
++        spe_offset = 0;
++      }
+       if (restoring_GPRs_inline)
+       {
+@@ -21695,8 +21692,8 @@
+       {
+         rtx par;
+-        par = rs6000_make_savres_rtx (info, gen_rtx_REG (Pmode, 11),
+-                                      0, reg_mode,
++        par = rs6000_make_savres_rtx (info, frame_reg_rtx,
++                                      ool_adjust, reg_mode,
+                                       /*savep=*/false, /*gpr=*/true,
+                                       /*lr=*/true);
+         emit_jump_insn (par);
+@@ -21717,12 +21714,12 @@
+                                sp_offset, can_use_exit);
+       else
+       {
+-        emit_insn (gen_add3_insn (gen_rtx_REG (Pmode, DEFAULT_ABI == ABI_AIX
+-                                                      ? 12 : 11),
+-                                  frame_reg_rtx,
++        rtx src_reg = gen_rtx_REG (Pmode, DEFAULT_ABI == ABI_AIX ? 12 : 11);
++
++        emit_insn (gen_add3_insn (src_reg, frame_reg_rtx,
+                                   GEN_INT (sp_offset - info->fp_size)));
+-        if (REGNO (frame_reg_rtx) == 11)
+-          sp_offset += info->fp_size;
++        if (REGNO (frame_reg_rtx) == REGNO (src_reg))
++          sp_offset = info->fp_size;
+       }
+       par = rs6000_make_savres_rtx (info, frame_reg_rtx,
+@@ -27763,7 +27760,7 @@
+                   if (strcmp (r, rs6000_opt_vars[i].name) == 0)
+                     {
+                       size_t j = rs6000_opt_vars[i].global_offset;
+-                      ((int *) &global_options)[j] = !invert;
++                      *((int *) ((char *)&global_options + j)) = !invert;
+                       error_p = false;
+                       break;
+                     }
+Index: gcc/config/rs6000/rs6000.md
+===================================================================
+--- gcc/config/rs6000/rs6000.md        (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/config/rs6000/rs6000.md        (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -12241,8 +12241,8 @@
+   "
  {
--  return TRUE;
-+  /* The packed attribute overrides the MS behaviour.  */
-+  return ! TYPE_PACKED (record_type);
+   operands[3] = gen_reg_rtx (SImode);
+-  operands[4] = gen_rtx_MEM (DImode,
+-                           gen_rtx_PLUS (DImode, stack_pointer_rtx,
++  operands[4] = gen_rtx_MEM (SImode,
++                           gen_rtx_PLUS (SImode, stack_pointer_rtx,
+                                          GEN_INT (20)));
+   operands[5] = gen_rtx_MEM (SImode,
+Index: gcc/config/darwin.c
+===================================================================
+--- gcc/config/darwin.c        (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/config/darwin.c        (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -1753,19 +1753,51 @@
+   return (!strncmp ((const char *)p, "_OBJC_", 6));
  }
  
--/* Try to generate code for the "isnv" pattern which inserts bits
--   into a word.
--     operands[0] => Location to be altered.
--     operands[1] => Number of bits to change.
--     operands[2] => Starting bit.
--     operands[3] => Value to insert.
--   Returns TRUE if successful, FALSE otherwise.  */
--
--bool
--rx_expand_insv (rtx * operands)
--{
--  if (INTVAL (operands[1]) != 1
--      || ! CONST_INT_P (operands[3]))
--    return false;
+-/* LTO support for Mach-O.  */
++/* LTO support for Mach-O.
+-/* Section names for LTO sections.  */
+-static unsigned int lto_section_names_offset = 0;
++   This version uses three mach-o sections to encapsulate the (unlimited
++   number of) lto sections.
+-/* This is the obstack which we use to allocate the many strings.  */
+-static struct obstack lto_section_names_obstack;
++   __GNU_LTO, __lto_sections  contains the concatented GNU LTO section data.
++   __GNU_LTO, __section_names contains the GNU LTO section names.
++   __GNU_LTO, __section_index contains an array of values that index these.
+-/* Segment name for LTO sections.  */
++   Indexed thus:
++     <section offset from the start of __GNU_LTO, __lto_sections>,
++     <section length>
++     <name offset from the start of __GNU_LTO, __section_names,
++     <name length>.
++
++   At present, for both m32 and m64 mach-o files each of these fields is
++   represented  by a uint32_t.  This is because, AFAICT, a mach-o object
++   cannot exceed 4Gb because the section_64 offset field (see below) is 32bits.
++
++    uint32_t offset;
++   "offset  An integer specifying the offset to this section in the file."  */
++
++/* Count lto section numbers.  */
++static unsigned int lto_section_num = 0;
++
++/* A vector of information about LTO sections, at present, we only have
++   the name.  TODO: see if we can get the data length somehow.  */
++typedef struct GTY (()) darwin_lto_section_e {
++  const char *sectname;
++} darwin_lto_section_e ;
++DEF_VEC_O(darwin_lto_section_e);
++DEF_VEC_ALLOC_O(darwin_lto_section_e, gc);
++
++static GTY (()) VEC (darwin_lto_section_e, gc) * lto_section_names;
++
++/* Segment for LTO data.  */
+ #define LTO_SEGMENT_NAME "__GNU_LTO"
+-/* Section name for LTO section names section.  */
+-#define LTO_NAMES_SECTION "__section_names"
++/* Section wrapper scheme (used here to wrap the unlimited number of LTO
++   sections into three Mach-O ones).
++   NOTE: These names MUST be kept in sync with those in
++       libiberty/simple-object-mach-o.  */
++#define LTO_SECTS_SECTION "__wrapper_sects"
++#define LTO_NAMES_SECTION "__wrapper_names"
++#define LTO_INDEX_SECTION "__wrapper_index"
+ /* File to temporarily store LTO data.  This is appended to asm_out_file
+    in darwin_end_file.  */
+@@ -1808,37 +1840,38 @@
+                         unsigned int flags,
+                         tree decl ATTRIBUTE_UNUSED)
+ {
+-  /* LTO sections go in a special segment __GNU_LTO.  We want to replace the
+-     section name with something we can use to represent arbitrary-length
+-     names (section names in Mach-O are at most 16 characters long).  */
++  /* LTO sections go in a special section that encapsulates the (unlimited)
++     number of GNU LTO sections within a single mach-o one.  */
+   if (strncmp (name, LTO_SECTION_NAME_PREFIX,
+              strlen (LTO_SECTION_NAME_PREFIX)) == 0)
+     {
++      darwin_lto_section_e e;
+       /* We expect certain flags to be set...  */
+       gcc_assert ((flags & (SECTION_DEBUG | SECTION_NAMED))
+                 == (SECTION_DEBUG | SECTION_NAMED));
+-      /* Add the section name to the things to output when we end the
+-       current assembler output file.
+-       This is all not very efficient, but that doesn't matter -- this
+-       shouldn't be a hot path in the compiler...  */
+-      obstack_1grow (&lto_section_names_obstack, '\t');
+-      obstack_grow (&lto_section_names_obstack, ".ascii ", 7);
+-      obstack_1grow (&lto_section_names_obstack, '"');
+-      obstack_grow (&lto_section_names_obstack, name, strlen (name));
+-      obstack_grow (&lto_section_names_obstack, "\\0\"\n", 4);
 -
--  if (MEM_P (operands[0])
--      && INTVAL (operands[2]) > 7)
--    return false;
+-      /* Output the dummy section name.  */
+-      fprintf (asm_out_file, "\t# %s\n", name);
+-      fprintf (asm_out_file, "\t.section %s,__%08X,regular,debug\n",
+-             LTO_SEGMENT_NAME, lto_section_names_offset);
 -
--  switch (INTVAL (operands[3]))
--    {
--    case 0:
--      if (MEM_P (operands[0]))
--      emit_insn (gen_bitclr_in_memory (operands[0], operands[0],
--                                       operands[2]));
--      else
--      emit_insn (gen_bitclr (operands[0], operands[0], operands[2]));
--      break;
--    case 1:
--    case -1:
--      if (MEM_P (operands[0]))
--      emit_insn (gen_bitset_in_memory (operands[0], operands[0],
--                                       operands[2]));
--      else
--      emit_insn (gen_bitset (operands[0], operands[0], operands[2]));
--      break;
--   default:
--      return false;
+-      /* Update the offset for the next section name.  Make sure we stay
+-       within reasonable length.  */  
+-      lto_section_names_offset += strlen (name) + 1;
+-      gcc_assert (lto_section_names_offset > 0
+-                && lto_section_names_offset < ((unsigned) 1 << 31));
 -    }
--  return true;
--}
\f
- /* Returns true if X a legitimate constant for an immediate
-    operand on the RX.  X is already known to satisfy CONSTANT_P.  */
-@@ -2284,8 +2409,6 @@
- bool
- rx_is_legitimate_constant (rtx x)
++      /* Switch to our combined section.  */
++      fprintf (asm_out_file, "\t.section %s,%s,regular,debug\n",
++             LTO_SEGMENT_NAME, LTO_SECTS_SECTION);
++      /* Output a label for the start of this sub-section.  */
++      fprintf (asm_out_file, "L_GNU_LTO%d:\t;# %s\n",
++             lto_section_num, name);
++      /* We have to jump through hoops to get the values of the intra-section
++         offsets... */
++      fprintf (asm_out_file, "\t.set L$gnu$lto$offs%d,L_GNU_LTO%d-L_GNU_LTO0\n",
++             lto_section_num, lto_section_num);
++      fprintf (asm_out_file,
++             "\t.set L$gnu$lto$size%d,L_GNU_LTO%d-L_GNU_LTO%d\n",
++             lto_section_num, lto_section_num+1, lto_section_num);
++      lto_section_num++;
++      e.sectname = xstrdup (name);
++      /* Keep the names, we'll need to make a table later.
++         TODO: check that we do not revisit sections, that would break
++         the assumption of how this is done.  */
++      if (lto_section_names == NULL)
++        lto_section_names = VEC_alloc (darwin_lto_section_e, gc, 16);
++      VEC_safe_push (darwin_lto_section_e, gc, lto_section_names, &e);
++   }
+   else if (strncmp (name, "__DWARF,", 8) == 0)
+     darwin_asm_dwarf_section (name, flags, decl);
+   else
+@@ -2711,16 +2744,12 @@
+   darwin_asm_output_dwarf_delta (file, size, lab, sname);
+ }
+-/* Called from the within the TARGET_ASM_FILE_START for each target. 
+-  Initialize the stuff we need for LTO long section names support.  */
++/* Called from the within the TARGET_ASM_FILE_START for each target.  */
+ void
+ darwin_file_start (void)
  {
--  HOST_WIDE_INT val;
+-  /* We fill this obstack with the complete section text for the lto section
+-     names to write in darwin_file_end.  */
+-  obstack_init (&lto_section_names_obstack);
+-  lto_section_names_offset = 0;
++  /* Nothing to do.  */
+ }
+ /* Called for the TARGET_ASM_FILE_END hook.
+@@ -2731,8 +2760,6 @@
+ void
+ darwin_file_end (void)
+ {
+-  const char *lto_section_names;
 -
-   switch (GET_CODE (x))
+   machopic_finish (asm_out_file);
+   if (strcmp (lang_hooks.name, "GNU C++") == 0)
      {
-     case CONST:
-@@ -2308,7 +2431,9 @@
-       case SYMBOL_REF:
-         return true;
+@@ -2762,6 +2789,13 @@
+         lto_asm_txt = buf = (char *) xmalloc (n + 1);
+         while (fgets (lto_asm_txt, n, lto_asm_out_file))
+           fputs (lto_asm_txt, asm_out_file);
++        /* Put a termination label.  */
++        fprintf (asm_out_file, "\t.section %s,%s,regular,debug\n",
++                 LTO_SEGMENT_NAME, LTO_SECTS_SECTION);
++        fprintf (asm_out_file, "L_GNU_LTO%d:\t;# end of lto\n",
++                 lto_section_num);
++        /* Make sure our termination label stays in this section.  */
++        fputs ("\t.space\t1\n", asm_out_file);
+       }
  
--        /* One day we may have to handle UNSPEC constants here.  */
-+      case UNSPEC:
-+        return XINT (x, 1) == UNSPEC_CONST;
-+
-       default:
-         /* FIXME: Can this ever happen ?  */
-         abort ();
-@@ -2328,17 +2453,7 @@
-       break;
+       /* Remove the temporary file.  */
+@@ -2770,21 +2804,50 @@
+       free (lto_asm_out_name);
      }
  
--  if (rx_max_constant_size == 0  || rx_max_constant_size == 4)
--    /* If there is no constraint on the size of constants
--       used as operands, then any value is legitimate.  */
--    return true;
--
--  val = INTVAL (x);
--
--  /* rx_max_constant_size specifies the maximum number
--     of bytes that can be used to hold a signed value.  */
--  return IN_RANGE (val, (-1 << (rx_max_constant_size * 8)),
--                      ( 1 << (rx_max_constant_size * 8)));
-+  return ok_for_max_constant (INTVAL (x));
+-  /* Finish the LTO section names obstack.  Don't output anything if
+-     there are no recorded section names.  */
+-  obstack_1grow (&lto_section_names_obstack, '\0');
+-  lto_section_names = XOBFINISH (&lto_section_names_obstack, const char *);
+-  if (strlen (lto_section_names) > 0)
++  /* Output the names and indices.  */
++  if (lto_section_names && VEC_length (darwin_lto_section_e, lto_section_names))
+     {
+-      fprintf (asm_out_file,
+-             "\t.section %s,%s,regular,debug\n",
++      int count;
++      darwin_lto_section_e *ref;
++      /* For now, we'll make the offsets 4 bytes and unaligned - we'll fix
++         the latter up ourselves.  */
++      const char *op = integer_asm_op (4,0);
++
++      /* Emit the names.  */
++      fprintf (asm_out_file, "\t.section %s,%s,regular,debug\n",
+              LTO_SEGMENT_NAME, LTO_NAMES_SECTION);
+-      fprintf (asm_out_file,
+-             "\t# Section names in %s are offsets into this table\n",
+-             LTO_SEGMENT_NAME);
+-      fprintf (asm_out_file, "%s\n", lto_section_names);
++      FOR_EACH_VEC_ELT (darwin_lto_section_e, lto_section_names, count, ref)
++      {
++        fprintf (asm_out_file, "L_GNU_LTO_NAME%d:\n", count);
++         /* We have to jump through hoops to get the values of the intra-section
++            offsets... */
++        fprintf (asm_out_file,
++                 "\t.set L$gnu$lto$noff%d,L_GNU_LTO_NAME%d-L_GNU_LTO_NAME0\n",
++                 count, count);
++        fprintf (asm_out_file,
++                 "\t.set L$gnu$lto$nsiz%d,L_GNU_LTO_NAME%d-L_GNU_LTO_NAME%d\n",
++                 count, count+1, count);
++        fprintf (asm_out_file, "\t.asciz\t\"%s\"\n", ref->sectname);
++      }
++      fprintf (asm_out_file, "L_GNU_LTO_NAME%d:\t;# end\n", lto_section_num);
++      /* make sure our termination label stays in this section.  */
++      fputs ("\t.space\t1\n", asm_out_file);
++
++      /* Emit the Index.  */
++      fprintf (asm_out_file, "\t.section %s,%s,regular,debug\n",
++             LTO_SEGMENT_NAME, LTO_INDEX_SECTION);
++      fputs ("\t.align\t2\n", asm_out_file);
++      fputs ("# Section offset, Section length, Name offset, Name length\n",
++           asm_out_file);
++      FOR_EACH_VEC_ELT (darwin_lto_section_e, lto_section_names, count, ref)
++      {
++        fprintf (asm_out_file, "%s L$gnu$lto$offs%d\t;# %s\n",
++                 op, count, ref->sectname);
++        fprintf (asm_out_file, "%s L$gnu$lto$size%d\n", op, count);
++        fprintf (asm_out_file, "%s L$gnu$lto$noff%d\n", op, count);
++        fprintf (asm_out_file, "%s L$gnu$lto$nsiz%d\n", op, count);
++      }
+     }
+-  obstack_free (&lto_section_names_obstack, NULL);
+   /* If we have section anchors, then we must prevent the linker from
+      re-arranging data.  */
+Index: gcc/config/arm/thumb2.md
+===================================================================
+--- gcc/config/arm/thumb2.md   (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/config/arm/thumb2.md   (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -257,7 +257,7 @@
+       (not:SI (match_operator:SI 1 "arm_comparison_operator"
+                [(match_operand 2 "cc_register" "") (const_int 0)])))]
+   "TARGET_THUMB2"
+-  "ite\\t%D1\;mov%D1\\t%0, #0\;mvn%d1\\t%0, #1"
++  "ite\\t%D1\;mvn%D1\\t%0, #0\;mvn%d1\\t%0, #1"
+   [(set_attr "conds" "use")
+    (set_attr "length" "10")]
+ )
+Index: gcc/config/arm/arm.c
+===================================================================
+--- gcc/config/arm/arm.c       (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/config/arm/arm.c       (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -3570,6 +3570,10 @@
+       add_libcall (libcall_htab,
+                  convert_optab_libfunc (trunc_optab, HFmode, SFmode));
+       add_libcall (libcall_htab,
++                 convert_optab_libfunc (sfix_optab, SImode, DFmode));
++      add_libcall (libcall_htab,
++                 convert_optab_libfunc (ufix_optab, SImode, DFmode));
++      add_libcall (libcall_htab,
+                  convert_optab_libfunc (sfix_optab, DImode, DFmode));
+       add_libcall (libcall_htab,
+                  convert_optab_libfunc (ufix_optab, DImode, DFmode));
+@@ -5077,6 +5081,14 @@
+   if (IS_STACKALIGN (func_type))
+     return false;
++  /* The AAPCS says that, on bare-metal, calls to unresolved weak
++     references should become a NOP.  Don't convert such calls into
++     sibling calls.  */
++  if (TARGET_AAPCS_BASED
++      && arm_abi == ARM_ABI_AAPCS
++      && DECL_WEAK (decl))
++    return false;
++
+   /* Everything else is ok.  */
+   return true;
  }
+@@ -5379,11 +5391,7 @@
  
- static int
-@@ -2462,211 +2577,83 @@
+       if (TARGET_32BIT)
+       {
+-        emit_insn (gen_pic_load_addr_32bit (pic_reg, pic_rtx));
+-        if (TARGET_ARM)
+-          emit_insn (gen_pic_add_dot_plus_eight (pic_reg, pic_reg, labelno));
+-        else
+-          emit_insn (gen_pic_add_dot_plus_four (pic_reg, pic_reg, labelno));
++        emit_insn (gen_pic_load_addr_unified (pic_reg, pic_rtx, labelno));
+       }
+       else /* TARGET_THUMB1 */
+       {
+@@ -5396,10 +5404,10 @@
+                                    thumb_find_work_register (saved_regs));
+             emit_insn (gen_pic_load_addr_thumb1 (pic_tmp, pic_rtx));
+             emit_insn (gen_movsi (pic_offset_table_rtx, pic_tmp));
++            emit_insn (gen_pic_add_dot_plus_four (pic_reg, pic_reg, labelno));
+           }
+         else
+-          emit_insn (gen_pic_load_addr_thumb1 (pic_reg, pic_rtx));
+-        emit_insn (gen_pic_add_dot_plus_four (pic_reg, pic_reg, labelno));
++          emit_insn (gen_pic_load_addr_unified (pic_reg, pic_rtx, labelno));
+       }
      }
+@@ -5429,20 +5437,7 @@
+                                UNSPEC_SYMBOL_OFFSET);
+   offset_rtx = gen_rtx_CONST (Pmode, offset_rtx);
+-  if (TARGET_32BIT)
+-    {
+-      emit_insn (gen_pic_load_addr_32bit (reg, offset_rtx));
+-      if (TARGET_ARM)
+-        insn = emit_insn (gen_pic_add_dot_plus_eight (reg, reg, labelno));
+-      else
+-        insn = emit_insn (gen_pic_add_dot_plus_four (reg, reg, labelno));
+-    }
+-  else /* TARGET_THUMB1 */
+-    {
+-      emit_insn (gen_pic_load_addr_thumb1 (reg, offset_rtx));
+-      insn = emit_insn (gen_pic_add_dot_plus_four (reg, reg, labelno));
+-    }
+-
++  insn = emit_insn (gen_pic_load_addr_unified (reg, offset_rtx, labelno));
+   return insn;
  }
  
-+/* Return a CC_MODE of which both M1 and M2 are subsets.  */
-+
- static enum machine_mode
- rx_cc_modes_compatible (enum machine_mode m1, enum machine_mode m2)
+@@ -5485,7 +5480,7 @@
+ will_be_in_index_register (const_rtx x)
  {
--  if (m1 == CCmode)
--    return m2;
--  if (m2 == CCmode)
--    return m1;
-+  unsigned f;
-+
-+  /* Early out for identical modes.  */
-   if (m1 == m2)
-     return m1;
--  if (m1 == CC_ZSmode)
--    return m1;
--  if (m2 == CC_ZSmode)
--    return m2;
--  return VOIDmode;   
-+
-+  /* There's no valid combination for FP vs non-FP.  */
-+  f = flags_from_mode (m1) | flags_from_mode (m2);
-+  if (f & CC_FLAG_FP)
-+    return VOIDmode;
-+
-+  /* Otherwise, see what mode can implement all the flags.  */
-+  return mode_from_flags (f);
+   /* arm.md: calculate_pic_address will split this into a register.  */
+-  return GET_CODE (x) == UNSPEC && XINT (x, 1) == UNSPEC_PIC_SYM;
++  return GET_CODE (x) == UNSPEC && (XINT (x, 1) == UNSPEC_PIC_SYM);
  }
  
--#define CC_FLAG_S (1 << 0)
--#define CC_FLAG_Z (1 << 1)
--#define CC_FLAG_O (1 << 2)
--#define CC_FLAG_C (1 << 3)
-+/* Return the minimal CC mode needed to implement (CMP_CODE X Y).  */
+ /* Return nonzero if X is a valid ARM state address operand.  */
+@@ -7233,6 +7228,15 @@
+       *total = COSTS_N_INSNS (4);
+       return true;
  
--static unsigned int
--flags_needed_for_conditional (rtx conditional)
-+enum machine_mode
-+rx_select_cc_mode (enum rtx_code cmp_code, rtx x, rtx y ATTRIBUTE_UNUSED)
++    case UNSPEC:
++      /* We cost this as high as our memory costs to allow this to
++       be hoisted from loops.  */
++      if (XINT (x, 1) == UNSPEC_PIC_UNIFIED)
++      {
++        *total = COSTS_N_INSNS (2 + ARM_NUM_REGS (mode));
++      }
++      return true;
++
+     default:
+       *total = COSTS_N_INSNS (4);
+       return false;
+@@ -9426,7 +9430,8 @@
+ arm_note_pic_base (rtx *x, void *date ATTRIBUTE_UNUSED)
  {
--  switch (GET_CODE (conditional))
--    {
--    case LE:
--    case GT:  return CC_FLAG_S | CC_FLAG_Z | CC_FLAG_O;
-+  if (GET_MODE_CLASS (GET_MODE (x)) == MODE_FLOAT)
-+    return CC_Fmode;
--    case LEU:
--    case GTU: return CC_FLAG_Z | CC_FLAG_C;
-+  return mode_from_flags (flags_from_code (cmp_code));
-+}
--    case LT:
--    case GE:  return CC_FLAG_S | CC_FLAG_O;
-+/* Split the conditional branch.  Emit (COMPARE C1 C2) into CC_REG with
-+   CC_MODE, and use that in branches based on that compare.  */
--    case LTU:
--    case GEU: return CC_FLAG_C;
-+void
-+rx_split_cbranch (enum machine_mode cc_mode, enum rtx_code cmp1,
-+                rtx c1, rtx c2, rtx label)
-+{
-+  rtx flags, x;
--    case EQ:
--    case NE:  return CC_FLAG_Z;
-+  flags = gen_rtx_REG (cc_mode, CC_REG);
-+  x = gen_rtx_COMPARE (cc_mode, c1, c2);
-+  x = gen_rtx_SET (VOIDmode, flags, x);
-+  emit_insn (x);
--    default:  gcc_unreachable ();
--    }
-+  x = gen_rtx_fmt_ee (cmp1, VOIDmode, flags, const0_rtx);
-+  x = gen_rtx_IF_THEN_ELSE (VOIDmode, x, label, pc_rtx);
-+  x = gen_rtx_SET (VOIDmode, pc_rtx, x);
-+  emit_jump_insn (x);
+   if (GET_CODE (*x) == UNSPEC
+-      && XINT (*x, 1) == UNSPEC_PIC_BASE)
++      && (XINT (*x, 1) == UNSPEC_PIC_BASE
++        || XINT (*x, 1) == UNSPEC_PIC_UNIFIED))
+     return 1;
+   return 0;
+ }
+@@ -9812,6 +9817,9 @@
+   rtx base_reg_rtx = NULL;
+   int i, stm_case;
++  /* Write back of base register is currently only supported for Thumb 1.  */
++  int base_writeback = TARGET_THUMB1;
++
+   /* Can only handle up to MAX_LDM_STM_OPS insns at present, though could be
+      easily extended if required.  */
+   gcc_assert (nops >= 2 && nops <= MAX_LDM_STM_OPS);
+@@ -9869,7 +9877,9 @@
+         /* If it isn't an integer register, then we can't do this.  */
+         if (unsorted_regs[i] < 0
+             || (TARGET_THUMB1 && unsorted_regs[i] > LAST_LO_REGNUM)
+-            || (TARGET_THUMB2 && unsorted_regs[i] == base_reg)
++            /* The effects are unpredictable if the base register is
++               both updated and stored.  */
++            || (base_writeback && unsorted_regs[i] == base_reg)
+             || (TARGET_THUMB2 && unsorted_regs[i] == SP_REGNUM)
+             || unsorted_regs[i] > 14)
+           return 0;
+@@ -19571,39 +19581,34 @@
+   emit_move_insn (mem, tmp2);
  }
  
--static unsigned int
--flags_from_mode (enum machine_mode mode)
--{
--  switch (mode)
--    {
--    case CCmode:     return CC_FLAG_S | CC_FLAG_Z | CC_FLAG_O | CC_FLAG_C;
--    case CC_ZSmode:  return CC_FLAG_S | CC_FLAG_Z;
--    case CC_ZSOmode: return CC_FLAG_S | CC_FLAG_Z | CC_FLAG_O;
--    case CC_ZSCmode: return CC_FLAG_S | CC_FLAG_Z | CC_FLAG_C;
--    default:         gcc_unreachable ();
--    }
--}
-+/* A helper function for matching parallels that set the flags.  */
+-/* Set up operands for a register copy from src to dest, taking care not to
+-   clobber registers in the process.
+-   FIXME: This has rather high polynomial complexity (O(n^3)?) but shouldn't
+-   be called with a large N, so that should be OK.  */
++/* Set up OPERANDS for a register copy from SRC to DEST, taking care
++   not to early-clobber SRC registers in the process.
  
--/* Returns true if a compare insn is redundant because it
--   would only set flags that are already set correctly.  */
--
- bool
--rx_compare_redundant (rtx cmp)
-+rx_match_ccmode (rtx insn, enum machine_mode cc_mode)
++   We assume that the operands described by SRC and DEST represent a
++   decomposed copy of OPERANDS[1] into OPERANDS[0].  COUNT is the
++   number of components into which the copy has been decomposed.  */
+ void
+ neon_disambiguate_copy (rtx *operands, rtx *dest, rtx *src, unsigned int count)
  {
--  unsigned int flags_needed;
--  unsigned int flags_set;
--  rtx next;
--  rtx prev;
--  rtx source;
--  rtx dest;
--  static rtx cc_reg = NULL_RTX;
-+  rtx op1, flags;
-+  enum machine_mode flags_mode;
--  if (cc_reg == NULL_RTX)
--    cc_reg = gen_rtx_REG (CCmode, CC_REGNUM);
-+  gcc_assert (XVECLEN (PATTERN (insn), 0) == 2);
--  /* We can only eliminate compares against 0.  */
--  if (GET_CODE (XEXP (SET_SRC (PATTERN (cmp)), 1)) != CONST_INT
--      || INTVAL (XEXP (SET_SRC (PATTERN (cmp)), 1)) != 0)
--    return false;
-+  op1 = XVECEXP (PATTERN (insn), 0, 1);
-+  gcc_assert (GET_CODE (SET_SRC (op1)) == COMPARE);
--  /* Locate the branch insn that follows the
--     compare and which tests the bits in the PSW.  */
--  next = cmp;
--  do
--    {
--      /* If we have found an insn that sets or clobbers the CC
--       register and it was not the IF_THEN_ELSE insn that we
--       are looking for, then the comparison is redundant.  */
--      if (next != cmp && reg_mentioned_p (cc_reg, PATTERN (next)))
--      return true;
-+  flags = SET_DEST (op1);
-+  flags_mode = GET_MODE (flags);
--      next = next_nonnote_insn (next);
-+  if (GET_MODE (SET_SRC (op1)) != flags_mode)
-+    return false;
-+  if (GET_MODE_CLASS (flags_mode) != MODE_CC)
-+    return false;
--      /* If we run out of insns without finding the
--       user then the comparison is unnecessary.  */
--      if (next == NULL_RTX)
--      return true;
-+  /* Ensure that the mode of FLAGS is compatible with CC_MODE.  */
-+  if (flags_from_mode (flags_mode) & ~flags_from_mode (cc_mode))
-+    return false;
--      /* If we have found another comparison
--       insn then the first one is redundant.  */
--      if (INSN_P (next)
--        && GET_CODE (PATTERN (next)) == SET
--        && REG_P (SET_DEST (PATTERN (next)))
--        && REGNO (SET_DEST (PATTERN (next))) == CC_REGNUM)
--      return true;
--
--      /* If we have found another arithmetic/logic insn that
--       sets the PSW flags then the comparison is redundant.  */
--      if (INSN_P (next)
--        && GET_CODE (PATTERN (next)) == PARALLEL
--        && GET_CODE (XVECEXP (PATTERN (next), 0, 1)) == SET
--        && REG_P (SET_DEST (XVECEXP (PATTERN (next), 0, 1)))
--        && REGNO (SET_DEST (XVECEXP (PATTERN (next), 0, 1))) == CC_REGNUM)
--      return true;
--
--      /* If we have found an unconditional branch then the
--       PSW flags might be carried along with the jump, so
--       the comparison is necessary.  */
--      if (INSN_P (next) && JUMP_P (next))
--      {
--        if (GET_CODE (PATTERN (next)) != SET)
--          /* If the jump does not involve setting the PC
--             then it is a return of some kind, and we know
--             that the comparison is not used.  */
--          return true;
--
--        if (GET_CODE (SET_SRC (PATTERN (next))) != IF_THEN_ELSE)
--          return false;
--      }
--    }
--  while (! INSN_P (next)
--       || DEBUG_INSN_P (next)
--       || GET_CODE (PATTERN (next)) != SET
--       || GET_CODE (SET_SRC (PATTERN (next))) != IF_THEN_ELSE);
--
--  flags_needed = flags_needed_for_conditional (XEXP (SET_SRC (PATTERN (next)), 0));
--
--  /* Now look to see if there was a previous
--     instruction which set the PSW bits.  */
--  source = XEXP (SET_SRC (PATTERN (cmp)), 0);
--  prev = cmp;
--  do
--    {
--      /* If this insn uses/sets/clobbers the CC register
--       and it is not the insn that we are looking for
--       below, then we must need the comparison.  */
--      if (prev != cmp && reg_mentioned_p (cc_reg, PATTERN (prev)))
--      return false;
--
--      prev = prev_nonnote_insn (prev);
--
--      if (prev == NULL_RTX)
--      return false;
--
--      /* If we encounter an insn which changes the contents of
--       the register which is the source of the comparison then
--       we will definitely need the comparison.  */
--      if (INSN_P (prev)
--        && GET_CODE (PATTERN (prev)) == SET
--        && rtx_equal_p (SET_DEST (PATTERN (prev)), source))
--      {
--        /* Unless this instruction is a simple register move
--           instruction.  In which case we can continue our
--           scan backwards, but now using the *source* of this
--           set instruction.  */
--        if (REG_P (SET_SRC (PATTERN (prev))))
--          source = SET_SRC (PATTERN (prev));
--        /* We can also survive a sign-extension if the test is
--           for EQ/NE.  Note the same does not apply to zero-
--           extension as this can turn a non-zero bit-pattern
--           into zero.  */
--        else if (flags_needed == CC_FLAG_Z
--                 && GET_CODE (SET_SRC (PATTERN (prev))) == SIGN_EXTEND)
--          source = XEXP (SET_SRC (PATTERN (prev)), 0);
--        else
--          return false;
--      }
--
--      /* A label means a possible branch into the
--       code here, so we have to stop scanning.  */
--      if (LABEL_P (prev))
--      return false;
--    }
--  while (! INSN_P (prev)
--       || DEBUG_INSN_P (prev)
--       || GET_CODE (PATTERN (prev)) != PARALLEL
--       || GET_CODE (XVECEXP (PATTERN (prev), 0, 1)) != SET
--       || ! REG_P (SET_DEST (XVECEXP (PATTERN (prev), 0, 1)))
--       || REGNO (SET_DEST (XVECEXP (PATTERN (prev), 0, 1))) != CC_REGNUM);
+-  unsigned int copied = 0, opctr = 0;
+-  unsigned int done = (1 << count) - 1;
+-  unsigned int i, j;
++  unsigned int i;
+-  while (copied != done)
++  if (!reg_overlap_mentioned_p (operands[0], operands[1])
++      || REGNO (operands[0]) < REGNO (operands[1]))
+     {
+       for (i = 0; i < count; i++)
+-        {
+-          int good = 1;
 -
--  flags_set = flags_from_mode (GET_MODE (SET_DEST (XVECEXP (PATTERN (prev), 0, 1))));
+-          for (j = 0; good && j < count; j++)
+-            if (i != j && (copied & (1 << j)) == 0
+-                && reg_overlap_mentioned_p (src[j], dest[i]))
+-              good = 0;
 -
--  dest = SET_DEST (XVECEXP (PATTERN (prev), 0, 0));
--  /* The destination of the previous arithmetic/logic instruction
--     must match the source in the comparison operation.  For registers
--     we ignore the mode as there may have been a sign-extension involved.  */
--  if (! rtx_equal_p (source, dest))
--    {
--      if (REG_P (source) && REG_P (dest) && REGNO (dest) == REGNO (source))
--      ;
--      else
--      return false;
--    }
+-          if (good)
+-            {
+-              operands[opctr++] = dest[i];
+-              operands[opctr++] = src[i];
+-              copied |= 1 << i;
+-            }
+-        }
++      {
++        operands[2 * i] = dest[i];
++        operands[2 * i + 1] = src[i];
++      }
+     }
 -
--  return ((flags_set & flags_needed) == flags_needed);
-+  return true;
+-  gcc_assert (opctr == count * 2);
++  else
++    {
++      for (i = 0; i < count; i++)
++      {
++        operands[2 * i] = dest[count - i - 1];
++        operands[2 * i + 1] = src[count - i - 1];
++      }
++    }
  }
\f
- #undef  TARGET_FUNCTION_VALUE
-@@ -2759,6 +2746,9 @@
- #undef  TARGET_CC_MODES_COMPATIBLE
- #define TARGET_CC_MODES_COMPATIBLE            rx_cc_modes_compatible
  
-+#undef  TARGET_PROMOTE_FUNCTION_MODE
-+#define TARGET_PROMOTE_FUNCTION_MODE          rx_promote_function_mode
+ /* Expand an expression EXP that calls a built-in function,
+@@ -20859,6 +20864,8 @@
+   gcc_assert (amount >= 0);
+   if (amount)
+     {
++      emit_insn (gen_blockage ());
 +
- struct gcc_target targetm = TARGET_INITIALIZER;
- /* #include "gt-rx.h" */
-Index: gcc/config/rx/rx-modes.def
+       if (amount < 512)
+       emit_insn (gen_addsi3 (stack_pointer_rtx, stack_pointer_rtx,
+                              GEN_INT (amount)));
+Index: gcc/config/arm/arm.md
 ===================================================================
---- gcc/config/rx/rx-modes.def (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/config/rx/rx-modes.def (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -1,5 +1,6 @@
--/* Definitions of target machine for GNU compiler, for RX.
--   Copyright (C) 2010 by Nick Clifton (nickc@redhat.com).
-+/* Definitions of target specific machine modes for the RX.
-+   Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc.
-+   Contributed by Red Hat.
+--- gcc/config/arm/arm.md      (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/config/arm/arm.md      (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -104,6 +104,7 @@
+    (UNSPEC_SYMBOL_OFFSET 27) ; The offset of the start of the symbol from
+                              ; another symbolic address.
+    (UNSPEC_MEMORY_BARRIER 28) ; Represent a memory barrier.
++   (UNSPEC_PIC_UNIFIED 29)  ; Create a common pic addressing form.
+   ]
+ )
  
-    This file is part of GCC.
+@@ -3272,7 +3273,7 @@
+     bool need_else;
+     if (which_alternative != 0 || operands[3] != const0_rtx
+-        || (code != PLUS && code != MINUS && code != IOR && code != XOR))
++        || (code != PLUS && code != IOR && code != XOR))
+       need_else = true;
+     else
+       need_else = false;
+@@ -5257,6 +5258,30 @@
+   "operands[3] = can_create_pseudo_p () ? gen_reg_rtx (SImode) : operands[0];"
+ )
  
-@@ -20,3 +21,5 @@
- CC_MODE (CC_ZS);
- CC_MODE (CC_ZSO);
- CC_MODE (CC_ZSC);
++;; operand1 is the memory address to go into 
++;; pic_load_addr_32bit.
++;; operand2 is the PIC label to be emitted 
++;; from pic_add_dot_plus_eight.
++;; We do this to allow hoisting of the entire insn.
++(define_insn_and_split "pic_load_addr_unified"
++  [(set (match_operand:SI 0 "s_register_operand" "=r,r,l")
++      (unspec:SI [(match_operand:SI 1 "" "mX,mX,mX") 
++                  (match_operand:SI 2 "" "")] 
++                  UNSPEC_PIC_UNIFIED))]
++ "flag_pic"
++ "#"
++ "&& reload_completed"
++ [(set (match_dup 0) (unspec:SI [(match_dup 1)] UNSPEC_PIC_SYM))
++  (set (match_dup 0) (unspec:SI [(match_dup 0) (match_dup 3)
++                                       (match_dup 2)] UNSPEC_PIC_BASE))]
++ "operands[3] = TARGET_THUMB ? GEN_INT (4) : GEN_INT (8);"
++ [(set_attr "type" "load1,load1,load1")
++  (set_attr "pool_range" "4096,4096,1024")
++  (set_attr "neg_pool_range" "4084,0,0")
++  (set_attr "arch"  "a,t2,t1")    
++  (set_attr "length" "8,6,4")]
++)
 +
-+CC_MODE (CC_F);               /* fcmp */
-Index: gcc/config/i386/i386.md
-===================================================================
---- gcc/config/i386/i386.md    (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/config/i386/i386.md    (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -92,6 +92,7 @@
-    (UNSPEC_TLS_GD             21)
-    (UNSPEC_TLS_LD_BASE                22)
-    (UNSPEC_TLSDESC            23)
-+   (UNSPEC_TLS_IE_SUN         24)
-    ; Other random patterns
-    (UNSPEC_SCAS                       30)
-@@ -14702,6 +14703,18 @@
-    (set_attr "memory" "load")
-    (set_attr "imm_disp" "false")])
-+;; The Sun linker took the AMD64 TLS spec literally and can only handle
-+;; %rax as destination of the initial executable code sequence.
-+(define_insn "tls_initial_exec_64_sun"
-+  [(set (match_operand:DI 0 "register_operand" "=a")
-+      (unspec:DI
-+       [(match_operand:DI 1 "tls_symbolic_operand" "")]
-+       UNSPEC_TLS_IE_SUN))
-+   (clobber (reg:CC FLAGS_REG))]
-+  "TARGET_64BIT && TARGET_SUN_TLS"
-+  "mov{q}\t{%%fs:0, %0|%0, QWORD PTR fs:0}\n\tadd{q}\t{%a1@gottpoff(%%rip), %0|%0, %a1@gottpoff[rip]}"
-+  [(set_attr "type" "multi")])
-+
- ;; GNU2 TLS patterns can be split.
- (define_expand "tls_dynamic_gnu2_32"
-Index: gcc/config/i386/sse.md
+ ;; The rather odd constraints on the following are to force reload to leave
+ ;; the insn alone, and to force the minipool generation pass to then move
+ ;; the GOT symbol to memory.
+@@ -7346,7 +7371,7 @@
+       (not:SI (match_operator:SI 1 "arm_comparison_operator"
+                [(match_operand 2 "cc_register" "") (const_int 0)])))]
+   "TARGET_ARM"
+-  "mov%D1\\t%0, #0\;mvn%d1\\t%0, #1"
++  "mvn%D1\\t%0, #0\;mvn%d1\\t%0, #1"
+   [(set_attr "conds" "use")
+    (set_attr "insn" "mov")
+    (set_attr "length" "8")]
+Index: gcc/config/pa/pa.c
 ===================================================================
---- gcc/config/i386/sse.md     (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/config/i386/sse.md     (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -5011,7 +5011,7 @@
-    movsd\t{%2, %0|%0, %2}
-    movlpd\t{%2, %0|%0, %2}
-    movsd\t{%2, %0|%0, %2}
--   shufpd\t{$2, %2, %0|%0, %2, 2}
-+   shufpd\t{$2, %1, %0|%0, %1, 2}
-    movhpd\t{%H1, %0|%0, %H1}
-    #
-    #
-@@ -5090,7 +5090,7 @@
-    movsd\t{%2, %0|%0, %2}
-    movlpd\t{%2, %0|%0, %2}
-    movlpd\t{%2, %0|%0, %2}
--   shufpd\t{$2, %2, %0|%0, %2, 2}
-+   shufpd\t{$2, %1, %0|%0, %1, 2}
-    movhps\t{%H1, %0|%0, %H1}
-    movhps\t{%1, %H0|%H0, %1}"
-   [(set_attr "type" "ssemov,ssemov,ssemov,sselog,ssemov,ssemov")
-@@ -12097,7 +12097,7 @@
-   [(set (match_operand:AVXMODEF2P 0 "register_operand" "=x")
-       (unspec:AVXMODEF2P
-         [(match_operand:AVXMODEF2P 1 "memory_operand" "m")
--         (match_operand:AVXMODEF2P 2 "register_operand" "x")
-+         (match_operand:<avxpermvecmode> 2 "register_operand" "x")
-          (match_dup 0)]
-         UNSPEC_MASKLOAD))]
-   "TARGET_AVX"
-@@ -12110,7 +12110,7 @@
- (define_insn "avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>"
-   [(set (match_operand:AVXMODEF2P 0 "memory_operand" "=m")
-       (unspec:AVXMODEF2P
--        [(match_operand:AVXMODEF2P 1 "register_operand" "x")
-+        [(match_operand:<avxpermvecmode> 1 "register_operand" "x")
-          (match_operand:AVXMODEF2P 2 "register_operand" "x")
-          (match_dup 0)]
-         UNSPEC_MASKSTORE))]
-Index: gcc/config/i386/i386-builtin-types.def
-===================================================================
---- gcc/config/i386/i386-builtin-types.def     (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/config/i386/i386-builtin-types.def     (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -229,7 +229,7 @@
- DEF_FUNCTION_TYPE (V1DI, V1DI, V1DI)
- DEF_FUNCTION_TYPE (V1DI, V2SI, V2SI)
- DEF_FUNCTION_TYPE (V1DI, V8QI, V8QI)
--DEF_FUNCTION_TYPE (V2DF, PCV2DF, V2DF)
-+DEF_FUNCTION_TYPE (V2DF, PCV2DF, V2DI)
- DEF_FUNCTION_TYPE (V2DF, V2DF, DI)
- DEF_FUNCTION_TYPE (V2DF, V2DF, INT)
- DEF_FUNCTION_TYPE (V2DF, V2DF, PCDOUBLE)
-@@ -251,7 +251,7 @@
- DEF_FUNCTION_TYPE (V2SI, V2SI, SI)
- DEF_FUNCTION_TYPE (V2SI, V2SI, V2SI)
- DEF_FUNCTION_TYPE (V2SI, V4HI, V4HI)
--DEF_FUNCTION_TYPE (V4DF, PCV4DF, V4DF)
-+DEF_FUNCTION_TYPE (V4DF, PCV4DF, V4DI)
- DEF_FUNCTION_TYPE (V4DF, V4DF, INT)
- DEF_FUNCTION_TYPE (V4DF, V4DF, V4DF)
- DEF_FUNCTION_TYPE (V4DF, V4DF, V4DI)
-@@ -260,7 +260,7 @@
- DEF_FUNCTION_TYPE (V4HI, V4HI, SI)
- DEF_FUNCTION_TYPE (V4HI, V4HI, V4HI)
- DEF_FUNCTION_TYPE (V4HI, V8QI, V8QI)
--DEF_FUNCTION_TYPE (V4SF, PCV4SF, V4SF)
-+DEF_FUNCTION_TYPE (V4SF, PCV4SF, V4SI)
- DEF_FUNCTION_TYPE (V4SF, V4SF, DI)
- DEF_FUNCTION_TYPE (V4SF, V4SF, INT)
- DEF_FUNCTION_TYPE (V4SF, V4SF, PCV2SF)
-@@ -284,7 +284,7 @@
- DEF_FUNCTION_TYPE (V8HI, V8HI, V8HI)
- DEF_FUNCTION_TYPE (V8QI, V4HI, V4HI)
- DEF_FUNCTION_TYPE (V8QI, V8QI, V8QI)
--DEF_FUNCTION_TYPE (V8SF, PCV8SF, V8SF)
-+DEF_FUNCTION_TYPE (V8SF, PCV8SF, V8SI)
- DEF_FUNCTION_TYPE (V8SF, V8SF, INT)
- DEF_FUNCTION_TYPE (V8SF, V8SF, V8SF)
- DEF_FUNCTION_TYPE (V8SF, V8SF, V8SI)
-@@ -343,10 +343,10 @@
- DEF_FUNCTION_TYPE (V8SI, V8SI, V8SI, INT)
- DEF_FUNCTION_TYPE (V8SI, V8SI, V8SI, V8SI)
- DEF_FUNCTION_TYPE (VOID, PCVOID, UNSIGNED, UNSIGNED)
--DEF_FUNCTION_TYPE (VOID, PV2DF, V2DF, V2DF)
--DEF_FUNCTION_TYPE (VOID, PV4DF, V4DF, V4DF)
--DEF_FUNCTION_TYPE (VOID, PV4SF, V4SF, V4SF)
--DEF_FUNCTION_TYPE (VOID, PV8SF, V8SF, V8SF)
-+DEF_FUNCTION_TYPE (VOID, PV2DF, V2DI, V2DF)
-+DEF_FUNCTION_TYPE (VOID, PV4DF, V4DI, V4DF)
-+DEF_FUNCTION_TYPE (VOID, PV4SF, V4SI, V4SF)
-+DEF_FUNCTION_TYPE (VOID, PV8SF, V8SI, V8SF)
- DEF_FUNCTION_TYPE (VOID, UINT, UINT, UINT)
- DEF_FUNCTION_TYPE (VOID, UINT64, UINT, UINT)
- DEF_FUNCTION_TYPE (VOID, V16QI, V16QI, PCHAR)
-Index: gcc/config/i386/avxintrin.h
+--- gcc/config/pa/pa.c (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/config/pa/pa.c (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -1863,6 +1863,11 @@
+   /* Handle the most common case: storing into a register.  */
+   else if (register_operand (operand0, mode))
+     {
++      /* Legitimize TLS symbol references.  This happens for references
++       that aren't a legitimate constant.  */
++      if (PA_SYMBOL_REF_TLS_P (operand1))
++      operand1 = legitimize_tls_address (operand1);
++
+       if (register_operand (operand1, mode)
+         || (GET_CODE (operand1) == CONST_INT
+             && cint_ok_for_move (INTVAL (operand1)))
+Index: gcc/config/pa/pa.h
+===================================================================
+--- gcc/config/pa/pa.h (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/config/pa/pa.h (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -848,6 +848,9 @@
+    && (NEW_HP_ASSEMBLER                                               \
+        || TARGET_GAS                                          \
+        || GET_CODE (X) != LABEL_REF)                          \
++   && (!PA_SYMBOL_REF_TLS_P (X)                                       \
++       || (SYMBOL_REF_TLS_MODEL (X) != TLS_MODEL_GLOBAL_DYNAMIC               \
++         && SYMBOL_REF_TLS_MODEL (X) != TLS_MODEL_LOCAL_DYNAMIC))     \
+    && (!TARGET_64BIT                                          \
+        || GET_CODE (X) != CONST_DOUBLE)                               \
+    && (!TARGET_64BIT                                          \
+Index: gcc/config/mips/mips.md
+===================================================================
+--- gcc/config/mips/mips.md    (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/config/mips/mips.md    (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -4707,7 +4707,7 @@
+ ;; of _gp from the start of this function.  Operand 1 is the incoming
+ ;; function address.
+ (define_insn_and_split "loadgp_newabi_<mode>"
+-  [(set (match_operand:P 0 "register_operand" "=d")
++  [(set (match_operand:P 0 "register_operand" "=&d")
+       (unspec:P [(match_operand:P 1)
+                  (match_operand:P 2 "register_operand" "d")]
+                 UNSPEC_LOADGP))]
+Index: gcc/cfgrtl.c
+===================================================================
+--- gcc/cfgrtl.c       (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/cfgrtl.c       (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -1642,9 +1642,10 @@
+       putc ('\n', outf);
+     }
+-  for (insn = BB_HEAD (bb), last = NEXT_INSN (BB_END (bb)); insn != last;
+-       insn = NEXT_INSN (insn))
+-    print_rtl_single (outf, insn);
++  if (bb->index != ENTRY_BLOCK && bb->index != EXIT_BLOCK)
++    for (insn = BB_HEAD (bb), last = NEXT_INSN (BB_END (bb)); insn != last;
++       insn = NEXT_INSN (insn))
++      print_rtl_single (outf, insn);
+   if (df)
+     {
+Index: gcc/reload1.c
 ===================================================================
---- gcc/config/i386/avxintrin.h        (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/config/i386/avxintrin.h        (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -890,55 +890,55 @@
- }
+--- gcc/reload1.c      (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ gcc/reload1.c      (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -3899,6 +3899,10 @@
+     if (XEXP (x, 0))
+       set_label_offsets (XEXP (x, 0), NULL_RTX, 1);
  
- extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, __artificial__))
--_mm_maskload_pd (double const *__P, __m128d __M)
-+_mm_maskload_pd (double const *__P, __m128i __M)
- {
-   return (__m128d) __builtin_ia32_maskloadpd ((const __v2df *)__P,
--                                            (__v2df)__M);
-+                                            (__v2di)__M);
++  for (x = nonlocal_goto_handler_labels; x; x = XEXP (x, 1))
++    if (XEXP (x, 0))
++      set_label_offsets (XEXP (x, 0), NULL_RTX, 1);
++
+   for_each_eh_label (set_initial_eh_label_offset);
  }
  
- extern __inline void __attribute__((__gnu_inline__, __always_inline__, __artificial__))
--_mm_maskstore_pd (double *__P, __m128d __M, __m128d __A)
-+_mm_maskstore_pd (double *__P, __m128i __M, __m128d __A)
- {
--  __builtin_ia32_maskstorepd ((__v2df *)__P, (__v2df)__M, (__v2df)__A);
-+  __builtin_ia32_maskstorepd ((__v2df *)__P, (__v2di)__M, (__v2df)__A);
- }
+Index: zlib/configure
+===================================================================
+--- zlib/configure     (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ zlib/configure     (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -8600,7 +8600,7 @@
+       ;;
+     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
+-    freebsd2*)
++    freebsd2.*)
+       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+       hardcode_direct=yes
+       hardcode_minus_L=yes
+@@ -9516,7 +9516,7 @@
+     objformat=`/usr/bin/objformat`
+   else
+     case $host_os in
+-    freebsd[123]*) objformat=aout ;;
++    freebsd[23].*) objformat=aout ;;
+     *) objformat=elf ;;
+     esac
+   fi
+@@ -9534,7 +9534,7 @@
+   esac
+   shlibpath_var=LD_LIBRARY_PATH
+   case $host_os in
+-  freebsd2*)
++  freebsd2.*)
+     shlibpath_overrides_runpath=yes
+     ;;
+   freebsd3.[01]* | freebsdelf3.[01]*)
+Index: zlib/ChangeLog
+===================================================================
+--- zlib/ChangeLog     (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ zlib/ChangeLog     (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -1,3 +1,7 @@
++2011-11-20  Andreas Tobler  <andreast@fgznet.ch>
++
++      * configure: Regenerate.
++
+ 2011-10-26  Release Manager
+       * GCC 4.6.2 released.
+Index: libstdc++-v3/configure
+===================================================================
+--- libstdc++-v3/configure     (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ libstdc++-v3/configure     (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -9698,7 +9698,7 @@
+       ;;
+     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
+-    freebsd2*)
++    freebsd2.*)
+       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+       hardcode_direct=yes
+       hardcode_minus_L=yes
+@@ -10614,7 +10614,7 @@
+     objformat=`/usr/bin/objformat`
+   else
+     case $host_os in
+-    freebsd[123]*) objformat=aout ;;
++    freebsd[23].*) objformat=aout ;;
+     *) objformat=elf ;;
+     esac
+   fi
+@@ -10632,7 +10632,7 @@
+   esac
+   shlibpath_var=LD_LIBRARY_PATH
+   case $host_os in
+-  freebsd2*)
++  freebsd2.*)
+     shlibpath_overrides_runpath=yes
+     ;;
+   freebsd3.[01]* | freebsdelf3.[01]*)
+@@ -12522,7 +12522,7 @@
+         esac
+         ;;
+-      freebsd[12]*)
++      freebsd2.*)
+         # C++ shared libraries reported to be fairly broken before
+       # switch to ELF
+         ld_shlibs_CXX=no
+@@ -14297,7 +14297,7 @@
+     objformat=`/usr/bin/objformat`
+   else
+     case $host_os in
+-    freebsd[123]*) objformat=aout ;;
++    freebsd[23].*) objformat=aout ;;
+     *) objformat=elf ;;
+     esac
+   fi
+@@ -14315,7 +14315,7 @@
+   esac
+   shlibpath_var=LD_LIBRARY_PATH
+   case $host_os in
+-  freebsd2*)
++  freebsd2.*)
+     shlibpath_overrides_runpath=yes
+     ;;
+   freebsd3.[01]* | freebsdelf3.[01]*)
+Index: libstdc++-v3/include/debug/unordered_map
+===================================================================
+--- libstdc++-v3/include/debug/unordered_map   (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ libstdc++-v3/include/debug/unordered_map   (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -276,6 +276,10 @@
+       }
  
- extern __inline __m256d __attribute__((__gnu_inline__, __always_inline__, __artificial__))
--_mm256_maskload_pd (double const *__P, __m256d __M)
-+_mm256_maskload_pd (double const *__P, __m256i __M)
- {
-   return (__m256d) __builtin_ia32_maskloadpd256 ((const __v4df *)__P,
--                                               (__v4df)__M);
-+                                               (__v4di)__M);
- }
+       iterator
++      erase(iterator __it)
++      { return erase(const_iterator(__it)); }
++
++      iterator
+       erase(const_iterator __first, const_iterator __last)
+       {
+       __glibcxx_check_erase_range(__first, __last);
+@@ -558,6 +562,10 @@
+       }
  
- extern __inline void __attribute__((__gnu_inline__, __always_inline__, __artificial__))
--_mm256_maskstore_pd (double *__P, __m256d __M, __m256d __A)
-+_mm256_maskstore_pd (double *__P, __m256i __M, __m256d __A)
- {
--  __builtin_ia32_maskstorepd256 ((__v4df *)__P, (__v4df)__M, (__v4df)__A);
-+  __builtin_ia32_maskstorepd256 ((__v4df *)__P, (__v4di)__M, (__v4df)__A);
- }
+       iterator
++      erase(iterator __it)
++      { return erase(const_iterator(__it)); }
++
++      iterator
+       erase(const_iterator __first, const_iterator __last)
+       {
+       __glibcxx_check_erase_range(__first, __last);
+Index: libstdc++-v3/include/debug/unordered_set
+===================================================================
+--- libstdc++-v3/include/debug/unordered_set   (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ libstdc++-v3/include/debug/unordered_set   (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -269,6 +269,10 @@
+       }
  
- extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
--_mm_maskload_ps (float const *__P, __m128 __M)
-+_mm_maskload_ps (float const *__P, __m128i __M)
- {
-   return (__m128) __builtin_ia32_maskloadps ((const __v4sf *)__P,
--                                           (__v4sf)__M);
-+                                           (__v4si)__M);
- }
+       iterator
++      erase(iterator __it)
++      { return erase(const_iterator(__it)); }
++
++      iterator
+       erase(const_iterator __first, const_iterator __last)
+       {
+       __glibcxx_check_erase_range(__first, __last);
+@@ -539,6 +543,10 @@
+       }
  
- extern __inline void __attribute__((__gnu_inline__, __always_inline__, __artificial__))
--_mm_maskstore_ps (float *__P, __m128 __M, __m128 __A)
-+_mm_maskstore_ps (float *__P, __m128i __M, __m128 __A)
- {
--  __builtin_ia32_maskstoreps ((__v4sf *)__P, (__v4sf)__M, (__v4sf)__A);
-+  __builtin_ia32_maskstoreps ((__v4sf *)__P, (__v4si)__M, (__v4sf)__A);
- }
+       iterator
++      erase(iterator __it)
++      { return erase(const_iterator(__it)); }
++
++      iterator
+       erase(const_iterator __first, const_iterator __last)
+       {
+       __glibcxx_check_erase_range(__first, __last);
+Index: libstdc++-v3/include/debug/map.h
+===================================================================
+--- libstdc++-v3/include/debug/map.h   (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ libstdc++-v3/include/debug/map.h   (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -273,6 +273,10 @@
+       this->_M_invalidate_if(_Equal(__position.base()));
+       return iterator(_Base::erase(__position.base()), this);
+       }
++
++      iterator
++      erase(iterator __position)
++      { return erase(const_iterator(__position)); }
+ #else
+       void
+       erase(iterator __position)
+Index: libstdc++-v3/include/debug/multimap.h
+===================================================================
+--- libstdc++-v3/include/debug/multimap.h      (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ libstdc++-v3/include/debug/multimap.h      (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -254,6 +254,10 @@
+       this->_M_invalidate_if(_Equal(__position.base()));
+       return iterator(_Base::erase(__position.base()), this);
+       }
++
++      iterator
++      erase(iterator __position)
++      { return erase(const_iterator(__position)); }
+ #else
+       void
+       erase(iterator __position)
+Index: libstdc++-v3/include/std/condition_variable
+===================================================================
+--- libstdc++-v3/include/std/condition_variable        (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ libstdc++-v3/include/std/condition_variable        (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -198,10 +198,25 @@
+       void
+       wait(_Lock& __lock)
+       {
+-        unique_lock<mutex> __my_lock(_M_mutex);
+-        __lock.unlock();
+-        _M_cond.wait(__my_lock);
+-        __lock.lock();
++      // scoped unlock - unlocks in ctor, re-locks in dtor
++      struct _Unlock {
++        explicit _Unlock(_Lock& __lk) : _M_lock(__lk) { __lk.unlock(); }
++        ~_Unlock() noexcept(false)
++        {
++          if (uncaught_exception())
++            __try { _M_lock.lock(); } __catch(...) { }
++          else
++            _M_lock.lock();
++        }
++        _Lock& _M_lock;
++      };
++
++      unique_lock<mutex> __my_lock(_M_mutex);
++      _Unlock __unlock(__lock);
++      // _M_mutex must be unlocked before re-locking __lock so move
++      // ownership of _M_mutex lock to an object with shorter lifetime.
++      unique_lock<mutex> __my_lock2(std::move(__my_lock));
++      _M_cond.wait(__my_lock2);
+       }
+       
  
- extern __inline __m256 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
--_mm256_maskload_ps (float const *__P, __m256 __M)
-+_mm256_maskload_ps (float const *__P, __m256i __M)
- {
-   return (__m256) __builtin_ia32_maskloadps256 ((const __v8sf *)__P,
--                                              (__v8sf)__M);
-+                                              (__v8si)__M);
- }
+Index: libstdc++-v3/include/std/complex
+===================================================================
+--- libstdc++-v3/include/std/complex   (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ libstdc++-v3/include/std/complex   (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -1,7 +1,7 @@
+ // The template and inlines for the -*- C++ -*- complex number classes.
  
- extern __inline void __attribute__((__gnu_inline__, __always_inline__, __artificial__))
--_mm256_maskstore_ps (float *__P, __m256 __M, __m256 __A)
-+_mm256_maskstore_ps (float *__P, __m256i __M, __m256 __A)
- {
--  __builtin_ia32_maskstoreps256 ((__v8sf *)__P, (__v8sf)__M, (__v8sf)__A);
-+  __builtin_ia32_maskstoreps256 ((__v8sf *)__P, (__v8si)__M, (__v8sf)__A);
- }
+ // Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
+-// 2006, 2007, 2008, 2009, 2010
++// 2006, 2007, 2008, 2009, 2010, 2011
+ // Free Software Foundation, Inc.
+ //
+ // This file is part of the GNU ISO C++ Library.  This library is free
+@@ -1695,12 +1695,9 @@
+     std::complex<_Tp>
+     __complex_acosh(const std::complex<_Tp>& __z)
+     {
+-      std::complex<_Tp> __t((__z.real() - __z.imag())
+-                          * (__z.real() + __z.imag()) - _Tp(1.0),
+-                          _Tp(2.0) * __z.real() * __z.imag());
+-      __t = std::sqrt(__t);
+-
+-      return std::log(__t + __z);
++      // Kahan's formula.
++      return _Tp(2.0) * std::log(std::sqrt(_Tp(0.5) * (__z + _Tp(1.0)))
++                               + std::sqrt(_Tp(0.5) * (__z - _Tp(1.0))));
+     }
  
- extern __inline __m256 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
-Index: gcc/config/i386/i386.c
+ #if _GLIBCXX_USE_C99_COMPLEX_TR1
+Index: libstdc++-v3/include/ext/type_traits.h
 ===================================================================
---- gcc/config/i386/i386.c     (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/config/i386/i386.c     (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -10438,6 +10438,17 @@
-     case TLS_MODEL_INITIAL_EXEC:
-       if (TARGET_64BIT)
-       {
-+        if (TARGET_SUN_TLS)
-+          {
-+            /* The Sun linker took the AMD64 TLS spec literally
-+               and can only handle %rax as destination of the
-+               initial executable code sequence.  */
-+
-+            dest = gen_reg_rtx (Pmode);
-+            emit_insn (gen_tls_initial_exec_64_sun (dest, x));
-+            return dest;
-+          }
+--- libstdc++-v3/include/ext/type_traits.h     (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ libstdc++-v3/include/ext/type_traits.h     (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -1,6 +1,7 @@
+ // -*- C++ -*-
+-// Copyright (C) 2005, 2006, 2007, 2009 Free Software Foundation, Inc.
++// Copyright (C) 2005, 2006, 2007, 2009, 2010, 2011
++// Free Software Foundation, Inc.
+ //
+ // This file is part of the GNU ISO C++ Library.  This library is free
+ // software; you can redistribute it and/or modify it under the terms
+@@ -161,44 +162,50 @@
+     struct __promote
+     { typedef double __type; };
++  // No nested __type member for non-integer non-floating point types,
++  // allows this type to be used for SFINAE to constrain overloads in
++  // <cmath> and <complex> to only the intended types.
+   template<typename _Tp>
+     struct __promote<_Tp, false>
+-    { typedef _Tp __type; };
++    { };
+-  template<typename _Tp, typename _Up>
++  template<>
++    struct __promote<long double>
++    { typedef long double __type; };
++
++  template<>
++    struct __promote<double>
++    { typedef double __type; };
++
++  template<>
++    struct __promote<float>
++    { typedef float __type; };
++
++  template<typename _Tp, typename _Up,
++           typename _Tp2 = typename __promote<_Tp>::__type,
++           typename _Up2 = typename __promote<_Up>::__type>
+     struct __promote_2
+     {
+-    private:
+-      typedef typename __promote<_Tp>::__type __type1;
+-      typedef typename __promote<_Up>::__type __type2;
+-
+-    public:
+-      typedef __typeof__(__type1() + __type2()) __type;
++      typedef __typeof__(_Tp2() + _Up2()) __type;
+     };
+-  template<typename _Tp, typename _Up, typename _Vp>
++  template<typename _Tp, typename _Up, typename _Vp,
++           typename _Tp2 = typename __promote<_Tp>::__type,
++           typename _Up2 = typename __promote<_Up>::__type,
++           typename _Vp2 = typename __promote<_Vp>::__type>
+     struct __promote_3
+     {
+-    private:
+-      typedef typename __promote<_Tp>::__type __type1;
+-      typedef typename __promote<_Up>::__type __type2;
+-      typedef typename __promote<_Vp>::__type __type3;
+-
+-    public:
+-      typedef __typeof__(__type1() + __type2() + __type3()) __type;
++      typedef __typeof__(_Tp2() + _Up2() + _Vp2()) __type;
+     };
+-  template<typename _Tp, typename _Up, typename _Vp, typename _Wp>
++  template<typename _Tp, typename _Up, typename _Vp, typename _Wp,
++           typename _Tp2 = typename __promote<_Tp>::__type,
++           typename _Up2 = typename __promote<_Up>::__type,
++           typename _Vp2 = typename __promote<_Vp>::__type,
++           typename _Wp2 = typename __promote<_Wp>::__type>
+     struct __promote_4
+     {
+-    private:
+-      typedef typename __promote<_Tp>::__type __type1;
+-      typedef typename __promote<_Up>::__type __type2;
+-      typedef typename __promote<_Vp>::__type __type3;
+-      typedef typename __promote<_Wp>::__type __type4;
+-
+-    public:
+-      typedef __typeof__(__type1() + __type2() + __type3() + __type4()) __type;
++      typedef __typeof__(_Tp2() + _Up2() + _Vp2() + _Wp2()) __type;
+     };
+ _GLIBCXX_END_NAMESPACE_VERSION
+Index: libstdc++-v3/include/profile/map.h
+===================================================================
+--- libstdc++-v3/include/profile/map.h (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ libstdc++-v3/include/profile/map.h (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -326,6 +326,10 @@
+         __profcxx_map_to_unordered_map_erase(this, size(), 1);
+         return __i;
+       }
 +
-         pic = NULL;
-         type = UNSPEC_GOTNTPOFF;
-       }
-@@ -11027,7 +11038,11 @@
-       return orig_x;
-       x = XVECEXP (XEXP (x, 0), 0, 0);
-       if (GET_MODE (orig_x) != Pmode)
--      return simplify_gen_subreg (GET_MODE (orig_x), x, Pmode, 0);
-+      {
-+        x = simplify_gen_subreg (GET_MODE (orig_x), x, Pmode, 0);
-+        if (x == NULL_RTX)
-+          return orig_x;
-+      }
-       return x;
++      iterator
++      erase(iterator __position)
++      { return erase(const_iterator(__position)); }
+ #else
+       void
+       erase(iterator __position)
+Index: libstdc++-v3/include/profile/multimap.h
+===================================================================
+--- libstdc++-v3/include/profile/multimap.h    (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ libstdc++-v3/include/profile/multimap.h    (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -225,6 +225,10 @@
+       iterator
+       erase(const_iterator __position)
+       { return iterator(_Base::erase(__position)); }
++
++      iterator
++      erase(iterator __position)
++      { return iterator(_Base::erase(__position)); }
+ #else
+       void
+       erase(iterator __position)
+Index: libstdc++-v3/include/bits/hashtable.h
+===================================================================
+--- libstdc++-v3/include/bits/hashtable.h      (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ libstdc++-v3/include/bits/hashtable.h      (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -440,6 +440,11 @@
+       iterator
+       erase(const_iterator);
++      // LWG 2059.
++      iterator
++      erase(iterator __it)
++      { return erase(const_iterator(__it)); }
++
+       size_type
+       erase(const key_type&);
+Index: libstdc++-v3/include/bits/shared_ptr.h
+===================================================================
+--- libstdc++-v3/include/bits/shared_ptr.h     (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ libstdc++-v3/include/bits/shared_ptr.h     (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -100,6 +100,8 @@
+       constexpr shared_ptr()
+       : __shared_ptr<_Tp>() { }
++      shared_ptr(const shared_ptr&) = default; // never throws
++
+       /**
+        *  @brief  Construct a %shared_ptr that owns the pointer @a __p.
+        *  @param  __p  A pointer that is convertible to element_type*.
+@@ -264,6 +266,8 @@
+       constexpr shared_ptr(nullptr_t __p)
+       : __shared_ptr<_Tp>(__p) { }
++      shared_ptr& operator=(const shared_ptr&) = default;
++
+       template<typename _Tp1>
+       shared_ptr&
+       operator=(const shared_ptr<_Tp1>& __r) // never throws
+Index: libstdc++-v3/include/bits/stl_map.h
+===================================================================
+--- libstdc++-v3/include/bits/stl_map.h        (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ libstdc++-v3/include/bits/stl_map.h        (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -612,6 +612,11 @@
+       iterator
+       erase(const_iterator __position)
+       { return _M_t.erase(__position); }
++
++      // LWG 2059.
++      iterator
++      erase(iterator __position)
++      { return _M_t.erase(__position); }
+ #else
+       /**
+        *  @brief Erases an element from a %map.
+Index: libstdc++-v3/include/bits/stl_multimap.h
+===================================================================
+--- libstdc++-v3/include/bits/stl_multimap.h   (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ libstdc++-v3/include/bits/stl_multimap.h   (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -533,6 +533,11 @@
+       iterator
+       erase(const_iterator __position)
+       { return _M_t.erase(__position); }
++
++      // LWG 2059.
++      iterator
++      erase(iterator __position)
++      { return _M_t.erase(__position); }
+ #else
+       /**
+        *  @brief Erases an element from a %multimap.
+Index: libstdc++-v3/include/bits/stl_numeric.h
+===================================================================
+--- libstdc++-v3/include/bits/stl_numeric.h    (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ libstdc++-v3/include/bits/stl_numeric.h    (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -222,10 +222,10 @@
+   /**
+    *  @brief  Return list of partial sums
+    *
+-   *  Accumulates the values in the range [first,last) using operator+().
++   *  Accumulates the values in the range [first,last) using the @c + operator.
+    *  As each successive input value is added into the total, that partial sum
+-   *  is written to @a result.  Therefore, the first value in result is the
+-   *  first value of the input, the second value in result is the sum of the
++   *  is written to @p result.  Therefore, the first value in @p result is the
++   *  first value of the input, the second value in @p result is the sum of the
+    *  first and second input values, and so on.
+    *
+    *  @param  first  Start of input range.
+@@ -261,15 +261,16 @@
+   /**
+    *  @brief  Return list of partial sums
+    *
+-   *  Accumulates the values in the range [first,last) using operator+().
++   *  Accumulates the values in the range [first,last) using @p binary_op.
+    *  As each successive input value is added into the total, that partial sum
+-   *  is written to @a result.  Therefore, the first value in result is the
+-   *  first value of the input, the second value in result is the sum of the
++   *  is written to @a result.  Therefore, the first value in @p result is the
++   *  first value of the input, the second value in @p result is the sum of the
+    *  first and second input values, and so on.
+    *
+    *  @param  first  Start of input range.
+    *  @param  last  End of input range.
+    *  @param  result  Output to write sums to.
++   *  @param  binary_op  Function object.
+    *  @return  Iterator pointing just beyond the values written to result.
+    */
+   template<typename _InputIterator, typename _OutputIterator,
+Index: libstdc++-v3/include/bits/stl_uninitialized.h
+===================================================================
+--- libstdc++-v3/include/bits/stl_uninitialized.h      (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ libstdc++-v3/include/bits/stl_uninitialized.h      (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -1,7 +1,7 @@
+ // Raw memory manipulators -*- C++ -*-
+ // Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
+-// 2009, 2010
++// 2009, 2010, 2011
+ // Free Software Foundation, Inc.
+ //
+ // This file is part of the GNU ISO C++ Library.  This library is free
+@@ -530,7 +530,22 @@
+       __uninit_default_n(__first, __n);
      }
  
-@@ -11096,7 +11111,11 @@
-       return orig_x;
++ template<typename _Tp, typename _Allocator>
++   inline auto
++   _Construct_default_a_impl(_Tp* __ptr, _Allocator& __alloc, void*)
++   -> decltype(__alloc.construct(__ptr))
++   { return __alloc.construct(__ptr); }
++  template<typename _Tp, typename _Allocator>
++   inline void
++   _Construct_default_a_impl(_Tp* __ptr, _Allocator& __alloc, ...)
++   { _Construct(__ptr); }
++
++  template<typename _Tp, typename _Allocator>
++   inline void
++   _Construct_default_a(_Tp* __ptr, _Allocator& __alloc)
++   { _Construct_default_a_impl(__ptr, __alloc, nullptr); }
++
+   // __uninitialized_default_a
+   // Fills [first, last) with std::distance(first, last) default
+   // constructed value_types(s), constructed with the allocator alloc.
+@@ -544,7 +559,7 @@
+       __try
+       {
+         for (; __cur != __last; ++__cur)
+-          __alloc.construct(std::__addressof(*__cur));
++          _Construct_default_a(std::__addressof(*__cur), __alloc);
+       }
+       __catch(...)
+       {
+@@ -573,7 +588,7 @@
+       __try
+       {
+         for (; __n > 0; --__n, ++__cur)
+-          __alloc.construct(std::__addressof(*__cur));
++          _Construct_default_a(std::__addressof(*__cur), __alloc);
+       }
+       __catch(...)
+       {
+Index: libstdc++-v3/include/bits/shared_ptr_base.h
+===================================================================
+--- libstdc++-v3/include/bits/shared_ptr_base.h        (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ libstdc++-v3/include/bits/shared_ptr_base.h        (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -799,7 +799,8 @@
+       : _M_ptr(__p), _M_refcount(__r._M_refcount) // never throws
+       { }
+-      //  generated copy constructor, assignment, destructor are fine.
++      __shared_ptr(const __shared_ptr&) = default; // never throws
++      __shared_ptr& operator=(const __shared_ptr&) = default; // never throws
+       template<typename _Tp1, typename = typename
+              std::enable_if<std::is_convertible<_Tp1*, _Tp*>::value>::type>
+Index: libstdc++-v3/include/bits/regex.h
+===================================================================
+--- libstdc++-v3/include/bits/regex.h  (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ libstdc++-v3/include/bits/regex.h  (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -2219,7 +2219,7 @@
+                 regex_constants::match_flag_type __flags
+                 = regex_constants::match_default)
+     {
+-      std::string __result;
++      basic_string<_Ch_type> __result;
+       regex_replace(std::back_inserter(__result),
+                   __s.begin(), __s.end(), __e, __fmt, __flags);
+       return __result;
+Index: libstdc++-v3/include/bits/stl_tree.h
+===================================================================
+--- libstdc++-v3/include/bits/stl_tree.h       (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ libstdc++-v3/include/bits/stl_tree.h       (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -760,6 +760,16 @@
+       _M_erase_aux(__position);
+       return __result._M_const_cast();
+       }
++
++      // LWG 2059.
++      iterator
++      erase(iterator __position)
++      {
++      iterator __result = __position;
++      ++__result;
++      _M_erase_aux(__position);
++      return __result;
++      }
+ #else
+       void
+       erase(iterator __position)
+Index: libstdc++-v3/include/c_global/cmath
+===================================================================
+--- libstdc++-v3/include/c_global/cmath        (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ libstdc++-v3/include/c_global/cmath        (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -1,7 +1,7 @@
+ // -*- C++ -*- C forwarding header.
+ // Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
+-// 2006, 2007, 2008, 2009, 2010
++// 2006, 2007, 2008, 2009, 2010, 2011
+ // Free Software Foundation, Inc.
+ //
+ // This file is part of the GNU ISO C++ Library.  This library is free
+@@ -156,10 +156,7 @@
+   template<typename _Tp, typename _Up>
+     inline
+-    typename __gnu_cxx::__promote_2<
+-    typename __gnu_cxx::__enable_if<__is_arithmetic<_Tp>::__value
+-                                  && __is_arithmetic<_Up>::__value,
+-                                  _Tp>::__type, _Up>::__type
++    typename __gnu_cxx::__promote_2<_Tp, _Up>::__type
+     atan2(_Tp __y, _Up __x)
+     {
+       typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type;
+@@ -374,10 +371,7 @@
+   template<typename _Tp, typename _Up>
+     inline
+-    typename __gnu_cxx::__promote_2<
+-    typename __gnu_cxx::__enable_if<__is_arithmetic<_Tp>::__value
+-                                  && __is_arithmetic<_Up>::__value,
+-                                  _Tp>::__type, _Up>::__type
++    typename __gnu_cxx::__promote_2<_Tp, _Up>::__type
+     pow(_Tp __x, _Up __y)
+     {
+       typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type;
+Index: libstdc++-v3/include/tr1/complex
+===================================================================
+--- libstdc++-v3/include/tr1/complex   (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ libstdc++-v3/include/tr1/complex   (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -185,12 +185,9 @@
+     std::complex<_Tp>
+     __complex_acosh(const std::complex<_Tp>& __z)
+     {
+-      std::complex<_Tp> __t((__z.real() - __z.imag())
+-                          * (__z.real() + __z.imag()) - _Tp(1.0),
+-                          _Tp(2.0) * __z.real() * __z.imag());
+-      __t = std::sqrt(__t);
+-
+-      return std::log(__t + __z);
++      // Kahan's formula.
++      return _Tp(2.0) * std::log(std::sqrt(_Tp(0.5) * (__z + _Tp(1.0)))
++                               + std::sqrt(_Tp(0.5) * (__z - _Tp(1.0))));
      }
-   if (GET_MODE (orig_x) != Pmode && MEM_P (orig_x))
--    return simplify_gen_subreg (GET_MODE (orig_x), result, Pmode, 0);
-+    {
-+      result = simplify_gen_subreg (GET_MODE (orig_x), result, Pmode, 0);
-+      if (result == NULL_RTX)
-+      return orig_x;
-+    }
-   return result;
- }
  
-@@ -21638,14 +21657,14 @@
-   { OPTION_MASK_ISA_AVX, CODE_FOR_avx_movntv4df, "__builtin_ia32_movntpd256", IX86_BUILTIN_MOVNTPD256, UNKNOWN, (int) VOID_FTYPE_PDOUBLE_V4DF },
-   { OPTION_MASK_ISA_AVX, CODE_FOR_avx_movntv8sf, "__builtin_ia32_movntps256", IX86_BUILTIN_MOVNTPS256, UNKNOWN, (int) VOID_FTYPE_PFLOAT_V8SF },
--  { OPTION_MASK_ISA_AVX, CODE_FOR_avx_maskloadpd, "__builtin_ia32_maskloadpd", IX86_BUILTIN_MASKLOADPD, UNKNOWN, (int) V2DF_FTYPE_PCV2DF_V2DF },
--  { OPTION_MASK_ISA_AVX, CODE_FOR_avx_maskloadps, "__builtin_ia32_maskloadps", IX86_BUILTIN_MASKLOADPS, UNKNOWN, (int) V4SF_FTYPE_PCV4SF_V4SF },
--  { OPTION_MASK_ISA_AVX, CODE_FOR_avx_maskloadpd256, "__builtin_ia32_maskloadpd256", IX86_BUILTIN_MASKLOADPD256, UNKNOWN, (int) V4DF_FTYPE_PCV4DF_V4DF },
--  { OPTION_MASK_ISA_AVX, CODE_FOR_avx_maskloadps256, "__builtin_ia32_maskloadps256", IX86_BUILTIN_MASKLOADPS256, UNKNOWN, (int) V8SF_FTYPE_PCV8SF_V8SF },
--  { OPTION_MASK_ISA_AVX, CODE_FOR_avx_maskstorepd, "__builtin_ia32_maskstorepd", IX86_BUILTIN_MASKSTOREPD, UNKNOWN, (int) VOID_FTYPE_PV2DF_V2DF_V2DF },
--  { OPTION_MASK_ISA_AVX, CODE_FOR_avx_maskstoreps, "__builtin_ia32_maskstoreps", IX86_BUILTIN_MASKSTOREPS, UNKNOWN, (int) VOID_FTYPE_PV4SF_V4SF_V4SF },
--  { OPTION_MASK_ISA_AVX, CODE_FOR_avx_maskstorepd256, "__builtin_ia32_maskstorepd256", IX86_BUILTIN_MASKSTOREPD256, UNKNOWN, (int) VOID_FTYPE_PV4DF_V4DF_V4DF },
--  { OPTION_MASK_ISA_AVX, CODE_FOR_avx_maskstoreps256, "__builtin_ia32_maskstoreps256", IX86_BUILTIN_MASKSTOREPS256, UNKNOWN, (int) VOID_FTYPE_PV8SF_V8SF_V8SF },
-+  { OPTION_MASK_ISA_AVX, CODE_FOR_avx_maskloadpd, "__builtin_ia32_maskloadpd", IX86_BUILTIN_MASKLOADPD, UNKNOWN, (int) V2DF_FTYPE_PCV2DF_V2DI },
-+  { OPTION_MASK_ISA_AVX, CODE_FOR_avx_maskloadps, "__builtin_ia32_maskloadps", IX86_BUILTIN_MASKLOADPS, UNKNOWN, (int) V4SF_FTYPE_PCV4SF_V4SI },
-+  { OPTION_MASK_ISA_AVX, CODE_FOR_avx_maskloadpd256, "__builtin_ia32_maskloadpd256", IX86_BUILTIN_MASKLOADPD256, UNKNOWN, (int) V4DF_FTYPE_PCV4DF_V4DI },
-+  { OPTION_MASK_ISA_AVX, CODE_FOR_avx_maskloadps256, "__builtin_ia32_maskloadps256", IX86_BUILTIN_MASKLOADPS256, UNKNOWN, (int) V8SF_FTYPE_PCV8SF_V8SI },
-+  { OPTION_MASK_ISA_AVX, CODE_FOR_avx_maskstorepd, "__builtin_ia32_maskstorepd", IX86_BUILTIN_MASKSTOREPD, UNKNOWN, (int) VOID_FTYPE_PV2DF_V2DI_V2DF },
-+  { OPTION_MASK_ISA_AVX, CODE_FOR_avx_maskstoreps, "__builtin_ia32_maskstoreps", IX86_BUILTIN_MASKSTOREPS, UNKNOWN, (int) VOID_FTYPE_PV4SF_V4SI_V4SF },
-+  { OPTION_MASK_ISA_AVX, CODE_FOR_avx_maskstorepd256, "__builtin_ia32_maskstorepd256", IX86_BUILTIN_MASKSTOREPD256, UNKNOWN, (int) VOID_FTYPE_PV4DF_V4DI_V4DF },
-+  { OPTION_MASK_ISA_AVX, CODE_FOR_avx_maskstoreps256, "__builtin_ia32_maskstoreps256", IX86_BUILTIN_MASKSTOREPS256, UNKNOWN, (int) VOID_FTYPE_PV8SF_V8SI_V8SF },
-   { OPTION_MASK_ISA_LWP, CODE_FOR_lwp_llwpcb, "__builtin_ia32_llwpcb", IX86_BUILTIN_LLWPCB, UNKNOWN, (int) VOID_FTYPE_PVOID },
-   { OPTION_MASK_ISA_LWP, CODE_FOR_lwp_slwpcb, "__builtin_ia32_slwpcb", IX86_BUILTIN_SLWPCB, UNKNOWN, (int) PVOID_FTYPE_VOID },
-@@ -23927,18 +23946,18 @@
-       klass = load;
-       memory = 1;
-       break;
--    case V8SF_FTYPE_PCV8SF_V8SF:
--    case V4DF_FTYPE_PCV4DF_V4DF:
--    case V4SF_FTYPE_PCV4SF_V4SF:
--    case V2DF_FTYPE_PCV2DF_V2DF:
-+    case V8SF_FTYPE_PCV8SF_V8SI:
-+    case V4DF_FTYPE_PCV4DF_V4DI:
-+    case V4SF_FTYPE_PCV4SF_V4SI:
-+    case V2DF_FTYPE_PCV2DF_V2DI:
-       nargs = 2;
-       klass = load;
-       memory = 0;
-       break;
--    case VOID_FTYPE_PV8SF_V8SF_V8SF:
--    case VOID_FTYPE_PV4DF_V4DF_V4DF:
--    case VOID_FTYPE_PV4SF_V4SF_V4SF:
--    case VOID_FTYPE_PV2DF_V2DF_V2DF:
-+    case VOID_FTYPE_PV8SF_V8SI_V8SF:
-+    case VOID_FTYPE_PV4DF_V4DI_V4DF:
-+    case VOID_FTYPE_PV4SF_V4SI_V4SF:
-+    case VOID_FTYPE_PV2DF_V2DI_V2DF:
-       nargs = 2;
-       klass = store;
-       /* Reserve memory operand for target.  */
-Index: gcc/config/rs6000/vector.md
-===================================================================
---- gcc/config/rs6000/vector.md        (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/config/rs6000/vector.md        (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -3,7 +3,7 @@
- ;; expander, and the actual vector instructions will be in altivec.md and
- ;; vsx.md
--;; Copyright (C) 2009, 2010
-+;; Copyright (C) 2009, 2010, 2011
- ;; Free Software Foundation, Inc.
- ;; Contributed by Michael Meissner <meissner@linux.vnet.ibm.com>
-@@ -123,6 +123,43 @@
-   DONE;
- })
+ #if _GLIBCXX_USE_C99_COMPLEX_TR1
+Index: libstdc++-v3/include/tr1/poly_hermite.tcc
+===================================================================
+--- libstdc++-v3/include/tr1/poly_hermite.tcc  (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ libstdc++-v3/include/tr1/poly_hermite.tcc  (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -1,6 +1,6 @@
+ // Special functions -*- C++ -*-
  
-+;; Vector floating point load/store instructions that uses the Altivec
-+;; instructions even if we are compiling for VSX, since the Altivec
-+;; instructions silently ignore the bottom 3 bits of the address, and VSX does
-+;; not.
-+(define_expand "vector_altivec_load_<mode>"
-+  [(set (match_operand:VEC_M 0 "vfloat_operand" "")
-+      (match_operand:VEC_M 1 "memory_operand" ""))]
-+  "VECTOR_MEM_ALTIVEC_OR_VSX_P (<MODE>mode)"
-+  "
+-// Copyright (C) 2006, 2007, 2008, 2009, 2010
++// Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011
+ // Free Software Foundation, Inc.
+ //
+ // This file is part of the GNU ISO C++ Library.  This library is free
+@@ -84,7 +84,7 @@
+       unsigned int __i;
+       for  (__H_nm2 = __H_0, __H_nm1 = __H_1, __i = 2; __i <= __n; ++__i)
+         {
+-          __H_n = 2 * (__x * __H_nm1 + (__i - 1) * __H_nm2);
++          __H_n = 2 * (__x * __H_nm1 - (__i - 1) * __H_nm2);
+           __H_nm2 = __H_nm1;
+           __H_nm1 = __H_n;
+         }
+Index: libstdc++-v3/ChangeLog
+===================================================================
+--- libstdc++-v3/ChangeLog     (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ libstdc++-v3/ChangeLog     (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -1,3 +1,131 @@
++2012-01-03  Chase Douglas  <chase.douglas@canonical.com>
++          Jonathan Wakely  <jwakely.gcc@gmail.com>
++
++      * include/bits/shared_ptr.h: Default copy ctor and assignment.
++      * include/bits/shared_ptr_base.h: Likewise.
++      * testsuite/20_util/shared_ptr/cons/43820_neg.cc: Adjust dg-error
++      line numbers.
++      * testsuite/20_util/weak_ptr/comparison/cmp_neg.cc: Likewise.
++
++2011-12-30  Paolo Carlini  <paolo.carlini@oracle.com>
++
++      PR libstdc++/51711
++      * include/bits/regex.h (regex_replace): Fix thinko.
++      * testsuite/28_regex/algorithms/regex_replace/char/51711.cc: New.
++      * testsuite/28_regex/algorithms/regex_replace/wchar_t/51711.cc:
++      Likewise.
++
++2011-12-19  Jonathan Wakely  <jwakely.gcc@gmail.com>
++
++      PR libstdc++/51626
++      * include/bits/stl_uninitialized.h (_Construct_default_a_impl): Define
++      overloaded functions to conditionally use allocator::construct.
++      (_Construct_default_a): Define to dispatch to appropriate
++      _Construct_default_a_impl overload.
++      (__uninitialized_default_a, __uninitialized_default_n_a): Use
++      _Construct_default_a.
++      * testsuite/20_util/allocator/51626.cc: New.
++
++2011-12-19  Jonathan Wakely  <jwakely.gcc@gmail.com>
++
++      * testsuite/ext/type_traits/remove_unsigned_integer_neg.cc: Adjust
++      dg-error line numbers.
++      * testsuite/ext/type_traits/add_unsigned_floating_neg.cc: Likewise.
++      * testsuite/ext/type_traits/remove_unsigned_floating_neg.cc: Likewise.
++      * testsuite/ext/type_traits/add_unsigned_integer_neg.cc: Likewise.
++
++2011-12-19  Jonathan Wakely  <jwakely.gcc@gmail.com>
++
++      * include/c_global/cmath: Update copyright years.
++      * include/ext/type_traits.h: Likewise.
++
++2011-12-19  Jonathan Wakely  <jwakely.gcc@gmail.com>
++
++      Backport from mainline
++      2011-11-13  Paolo Carlini  <paolo.carlini@oracle.com>
++
++      * include/c_global/cmath (atan2, pow): Simplify constraining on the
++      return type.
++
++      Backport from mainline
++      2011-11-12  Jonathan Wakely  <jwakely.gcc@gmail.com>
++
++      PR libstdc++/51083
++      * include/ext/type_traits.h (__promote): Only define __type member
++      for integral and floating point types, to prevent math functions
++      participating in overload resolution for other types.
++      (__promote_2, __promote_3, __promote_4): Use __promote in default
++      template argument values, so deduction only succeeds for integral and
++      floating point types.
++      * testsuite/26_numerics/cmath/51083.cc: New.
++      * testsuite/26_numerics/complex/51083.cc: New.
++      * testsuite/tr1/8_c_compatibility/cmath/51083.cc: New.
++      * testsuite/tr1/8_c_compatibility/complex/51083.cc: New.
++
++2011-12-19  Jonathan Wakely  <jwakely.gcc@gmail.com>
++
++      PR libstdc++/50862
++      * include/std/condition_variable (condition_variable_any::wait): Fix
++      deadlock and ensure _Lock::lock() is called on exit.
++      * testsuite/30_threads/condition_variable_any/50862.cc: New.
++
++2011-12-18  Jonathan Wakely  <jwakely.gcc@gmail.com>
++
++      PR libstdc++/51540
++      * include/bits/stl_numeric.h (partial_sum): Adjust doxygen comments.
++
++2011-11-20  Andreas Tobler  <andreast@fgznet.ch>
++
++      * configure: Regenerate.
++
++2011-11-16  Paolo Carlini  <paolo.carlini@oracle.com>
++
++      PR libstdc++/51142
++      * include/debug/unordered_map (unordered_map<>::erase(iterator),
++      unordered_multimap<>::erase(iterator)): Add, consistently with
++      LWG 2059.
++      * include/debug/unordered_set (unordered_set<>::erase(iterator),
++      unordered_multiset<>::erase(iterator)): Likewise.
++      * include/debug/map.h (map<>::erase(iterator)): Likewise.
++      * include/debug/multimap.h (multimap<>::erase(iterator)): Likewise.
++      * include/profile/map.h (map<>::erase(iterator)): Likewise.
++      * include/profile/multimap.h (multimap<>::erase(iterator)): Likewise.
++      * include/bits/hashtable.h (_Hashtable<>::erase(iterator)): Likewise.
++      * include/bits/stl_map.h (map<>::erase(iterator)): Likewise.
++      * include/bits/stl_multimap.h (multimap<>::erase(iterator)): Likewise.
++      * include/bits/stl_tree.h (_Rb_tree<>::erase(iterator)): Likewise.
++      * testsuite/23_containers/unordered_map/erase/51142.cc: New.
++      * testsuite/23_containers/multimap/modifiers/erase/51142.cc: Likewise.
++      * testsuite/23_containers/set/modifiers/erase/51142.cc: Likewise.
++      * testsuite/23_containers/unordered_multimap/erase/51142.cc: Likewise.
++      * testsuite/23_containers/unordered_set/erase/51142.cc: Likewise.
++      * testsuite/23_containers/multiset/modifiers/erase/51142.cc: Likewise.
++      * testsuite/23_containers/unordered_multiset/erase/51142.cc: Likewise.
++      * testsuite/23_containers/map/modifiers/erase/51142.cc: Likewise.
++
++2011-11-15  Jason Dick  <dickphd@gmail.com>
++
++      PR libstdc++/51133
++      * include/tr1/poly_hermite.tcc (__poly_hermite_recursion): Fix
++      wrong sign in recursion relation.
++
++2011-11-02  Richard B. Kreckel  <kreckel@ginac.de>
++          Paolo Carlini  <paolo.carlini@oracle.com>
++
++      PR libstdc++/50880
++      * include/std/complex (__complex_acosh): Fix in a better way,
++      use Kahan's formula.
++      * include/tr1/complex (__complex_acosh): Likewise.
++
++2011-11-02  Richard B. Kreckel  <kreckel@ginac.de>
++          Paolo Carlini  <paolo.carlini@oracle.com>
++
++      PR libstdc++/50880
++      * include/std/complex (__complex_acosh): Fix for __z.real() < 0.
++      * include/tr1/complex (__complex_acosh): Likewise.
++      * testsuite/26_numerics/complex/50880.cc: New.
++      * testsuite/tr1/8_c_compatibility/complex/50880.cc: Likewise.
++
+ 2011-10-26  Release Manager
+       * GCC 4.6.2 released.
+Index: libstdc++-v3/testsuite/28_regex/algorithms/regex_replace/wchar_t/51711.cc
+===================================================================
+--- libstdc++-v3/testsuite/28_regex/algorithms/regex_replace/wchar_t/51711.cc  (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ libstdc++-v3/testsuite/28_regex/algorithms/regex_replace/wchar_t/51711.cc  (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,31 @@
++// { dg-options "-std=gnu++0x" }
++// { dg-do compile }
++
++// Copyright (C) 2011 Free Software Foundation, Inc.
++//
++// This file is part of the GNU ISO C++ Library.  This library is free
++// software; you can redistribute it and/or modify it under the
++// terms of the GNU General Public License as published by the
++// Free Software Foundation; either version 3, or (at your option)
++// any later version.
++//
++// This library is distributed in the hope that it will be useful,
++// but WITHOUT ANY WARRANTY; without even the implied warranty of
++// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
++// GNU General Public License for more details.
++//
++// You should have received a copy of the GNU General Public License along
++// with this library; see the file COPYING3.  If not see
++// <http://www.gnu.org/licenses/>.
++//
++
++#include <regex>
++#include <string>
++
++// libstdc++/51711
++void test01()
++{
++  std::wstring toProcess(L"Bug\r\n");
++  std::wstring result __attribute__((unused))
++    = std::regex_replace(toProcess, std::wregex(L"\\r"), std::wstring(L"\\r"));
++}
+Index: libstdc++-v3/testsuite/28_regex/algorithms/regex_replace/char/51711.cc
+===================================================================
+--- libstdc++-v3/testsuite/28_regex/algorithms/regex_replace/char/51711.cc     (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ libstdc++-v3/testsuite/28_regex/algorithms/regex_replace/char/51711.cc     (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,31 @@
++// { dg-options "-std=gnu++0x" }
++// { dg-do compile }
++
++// Copyright (C) 2011 Free Software Foundation, Inc.
++//
++// This file is part of the GNU ISO C++ Library.  This library is free
++// software; you can redistribute it and/or modify it under the
++// terms of the GNU General Public License as published by the
++// Free Software Foundation; either version 3, or (at your option)
++// any later version.
++//
++// This library is distributed in the hope that it will be useful,
++// but WITHOUT ANY WARRANTY; without even the implied warranty of
++// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
++// GNU General Public License for more details.
++//
++// You should have received a copy of the GNU General Public License along
++// with this library; see the file COPYING3.  If not see
++// <http://www.gnu.org/licenses/>.
++//
++
++#include <regex>
++#include <string>
++
++// libstdc++/51711
++void test01()
++{
++  std::string toProcess("Bug\r\n");
++  std::string result __attribute__((unused))
++    = std::regex_replace(toProcess, std::regex("\\r"), std::string("\\r"));
++}
+Index: libstdc++-v3/testsuite/26_numerics/complex/51083.cc
+===================================================================
+--- libstdc++-v3/testsuite/26_numerics/complex/51083.cc        (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ libstdc++-v3/testsuite/26_numerics/complex/51083.cc        (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,54 @@
++// { dg-options "-std=gnu++0x" }
++//
++// Copyright (C) 2011 Free Software Foundation, Inc.
++//
++// This file is part of the GNU ISO C++ Library.  This library is free
++// software; you can redistribute it and/or modify it under the
++// terms of the GNU General Public License as published by the
++// Free Software Foundation; either version 3, or (at your option)
++// any later version.
++//
++// This library is distributed in the hope that it will be useful,
++// but WITHOUT ANY WARRANTY; without even the implied warranty of
++// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
++// GNU General Public License for more details.
++//
++// You should have received a copy of the GNU General Public License along
++// with this library; see the file COPYING3.  If not see
++// <http://www.gnu.org/licenses/>.
++
++#include <complex>
++
++namespace a
++{
++  template<typename> class Mat { };
++
++  template<typename T> struct Mat2 : Mat<T> { };
++
++  template<typename T> int arg(Mat<T>) { return 1; }
++  template<typename T> int conj(Mat<T>) { return 1; }
++  template<typename T> int imag(Mat<T>) { return 1; }
++  template<typename T> int norm(Mat<T>) { return 1; }
++  template<typename T> int proj(Mat<T>) { return 1; }
++  template<typename T> int real(Mat<T>) { return 1; }
++
++  template<typename T, typename U> int pow(Mat<T>, U) { return 1; }
++  template<typename T, typename U> int pow(T, Mat<U>) { return 1; }
++}
++
++int main()
 +{
-+  gcc_assert (VECTOR_MEM_ALTIVEC_OR_VSX_P (<MODE>mode));
++  int __attribute__((unused)) i;
++
++  using namespace std;
++
++  a::Mat2< std::complex<double> > c;
++  i = arg(c);
++  i = conj(c);
++  i = imag(c);
++  i = norm(c);
++  i = proj(c);
++  i = real(c);
++  i = pow(std::complex<float>(), c);
++  i = pow(c, std::complex<float>());
++}
+Index: libstdc++-v3/testsuite/26_numerics/complex/50880.cc
+===================================================================
+--- libstdc++-v3/testsuite/26_numerics/complex/50880.cc        (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ libstdc++-v3/testsuite/26_numerics/complex/50880.cc        (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,53 @@
++// { dg-options "-std=gnu++0x" }
++//
++// Copyright (C) 2011 Free Software Foundation, Inc.
++//
++// This file is part of the GNU ISO C++ Library.  This library is free
++// software; you can redistribute it and/or modify it under the
++// terms of the GNU General Public License as published by the
++// Free Software Foundation; either version 3, or (at your option)
++// any later version.
++//
++// This library is distributed in the hope that it will be useful,
++// but WITHOUT ANY WARRANTY; without even the implied warranty of
++// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
++// GNU General Public License for more details.
++//
++// You should have received a copy of the GNU General Public License along
++// with this library; see the file COPYING3.  If not see
++// <http://www.gnu.org/licenses/>.
++
++#include <complex>
++#include <testsuite_hooks.h> 
++
++template<typename T>
++  void test01_do()
++  {
++    bool test __attribute__((unused)) = true;
++
++    const std::complex<T> ca(T(-2), T(2));
++    const std::complex<T> cb(T(-2), T(0));
++    const std::complex<T> cc(T(-2), T(-2));
++
++    std::complex<T> cra = std::acosh(ca);
++    std::complex<T> crb = std::acosh(cb);
++    std::complex<T> crc = std::acosh(cc);
++
++    VERIFY( cra.real() > T(0) );
++    VERIFY( crb.real() > T(0) );
++    VERIFY( crc.real() > T(0) );
++  }
++
++// libstdc++/50880
++void test01()
++{
++  test01_do<float>();
++  test01_do<double>();
++  test01_do<long double>();
++}
++
++int main()
++{
++  test01();
++  return 0;
++}
+Index: libstdc++-v3/testsuite/26_numerics/cmath/51083.cc
+===================================================================
+--- libstdc++-v3/testsuite/26_numerics/cmath/51083.cc  (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ libstdc++-v3/testsuite/26_numerics/cmath/51083.cc  (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,62 @@
++// { dg-options "-std=gnu++0x" }
++//
++// Copyright (C) 2011 Free Software Foundation, Inc.
++//
++// This file is part of the GNU ISO C++ Library.  This library is free
++// software; you can redistribute it and/or modify it under the
++// terms of the GNU General Public License as published by the
++// Free Software Foundation; either version 3, or (at your option)
++// any later version.
++//
++// This library is distributed in the hope that it will be useful,
++// but WITHOUT ANY WARRANTY; without even the implied warranty of
++// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
++// GNU General Public License for more details.
++//
++// You should have received a copy of the GNU General Public License along
++// with this library; see the file COPYING3.  If not see
++// <http://www.gnu.org/licenses/>.
++
++#include <cmath>
++
++namespace a
++{
++  template<typename> class Mat { };
++
++  template<typename T> struct Mat2 : Mat<T> { };
 +
-+  if (VECTOR_MEM_VSX_P (<MODE>mode))
-+    {
-+      operands[1] = rs6000_address_for_altivec (operands[1]);
-+      emit_insn (gen_altivec_lvx_<mode> (operands[0], operands[1]));
-+      DONE;
-+    }
-+}")
++  template<typename T>
++    int fdim(Mat<T>) { return 1; }
++
++  template<typename T, typename U>
++    int floor(Mat<T>, U) { return 1; }
++  template<typename T, typename U>
++    int floor(T, Mat<U>) { return 1; }
++
++  template<typename T, typename U, typename V>
++    int fma(Mat<T>, U, V) { return 1; }
++  template<typename T, typename U, typename V>
++    int fma(T, Mat<U>, V) { return 1; }
++  template<typename T, typename U, typename V>
++    int fma(T, U, Mat<V>) { return 1; }
++}
 +
-+(define_expand "vector_altivec_store_<mode>"
-+  [(set (match_operand:VEC_M 0 "memory_operand" "")
-+      (match_operand:VEC_M 1 "vfloat_operand" ""))]
-+  "VECTOR_MEM_ALTIVEC_OR_VSX_P (<MODE>mode)"
-+  "
++int main()
++{
++  int __attribute__((unused)) i;
++
++  using namespace std;
++
++  a::Mat2<double> c;
++  i = fdim(c);
++  i = floor(c, 0.);
++  i = floor(0., c);
++  i = floor(c, 1);
++  i = floor(1, c);
++  i = fma(c, 0., 1.);
++  i = fma(0., c, 1.);
++  i = fma(0., 1., c);
++  i = fma(c, 0., 1);
++  i = fma(0., c, 1);
++  i = fma(0., 1, c);
++}
+Index: libstdc++-v3/testsuite/30_threads/condition_variable_any/50862.cc
+===================================================================
+--- libstdc++-v3/testsuite/30_threads/condition_variable_any/50862.cc  (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ libstdc++-v3/testsuite/30_threads/condition_variable_any/50862.cc  (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,80 @@
++// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* alpha*-*-osf* mips-sgi-irix6* } }
++// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* alpha*-*-osf* mips-sgi-irix6* } }
++// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
++// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
++// { dg-require-cstdint "" }
++// { dg-require-gthreads "" }
++// { dg-require-sched-yield "" }
++ 
++// Copyright (C) 2011 Free Software Foundation, Inc.
++//
++// This file is part of the GNU ISO C++ Library.  This library is free
++// software; you can redistribute it and/or modify it under the
++// terms of the GNU General Public License as published by the
++// Free Software Foundation; either version 3, or (at your option)
++// any later version.
++
++// This library is distributed in the hope that it will be useful,
++// but WITHOUT ANY WARRANTY; without even the implied warranty of
++// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
++// GNU General Public License for more details.
++
++// You should have received a copy of the GNU General Public License along
++// with this library; see the file COPYING3.  If not see
++// <http://www.gnu.org/licenses/>. 
++
++#include <condition_variable>
++#include <thread>
++#include <mutex>
++#include <array>
++#include <sstream>
++
++struct scoped_thread
 +{
-+  gcc_assert (VECTOR_MEM_ALTIVEC_OR_VSX_P (<MODE>mode));
++  ~scoped_thread() { if (t.joinable()) t.join(); }
++  std::thread t;
++};
 +
-+  if (VECTOR_MEM_VSX_P (<MODE>mode))
++int main()
++{
++  typedef std::unique_lock<std::mutex> Lock;
++
++  std::mutex                  m;
++  std::condition_variable_any cond;
++  unsigned int                product = 0;
++  const unsigned int          count = 10;
++
++  // writing to stream causes timing changes which makes deadlock easier
++  // to reproduce - do not remove
++  std::ostringstream out;
++
++  // create consumers
++  std::array<scoped_thread, 2> threads;
++  for (std::size_t i = 0; i < threads.size(); ++i)
++    threads[i].t
++      = std::thread( [&]
++                   {
++                     for (unsigned int i = 0; i < count; ++i)
++                       {
++                         std::this_thread::yield();
++                         Lock lock(m);
++                         while(product == 0)
++                           cond.wait(lock);
++                         out << "got product "
++                             << std::this_thread::get_id()
++                             << ' ' << product << std::endl;
++                         --product;
++                       }
++                   } );
++
++  // single producer
++  for (std::size_t i = 0; i < threads.size() * count; ++i)
 +    {
-+      operands[0] = rs6000_address_for_altivec (operands[0]);
-+      emit_insn (gen_altivec_stvx_<mode> (operands[0], operands[1]));
-+      DONE;
++      std::this_thread::yield();
++      Lock lock(m);
++      ++product;
++      out << "setting product " << std::this_thread::get_id()
++        << ' ' << product << std::endl;
++      cond.notify_one();
 +    }
-+}")
-+
-+
\f
- ;; Reload patterns for vector operations.  We may need an addtional base
- ;; register to convert the reg+offset addressing to reg+reg for vector
-Index: gcc/config/rs6000/rs6000-protos.h
-===================================================================
---- gcc/config/rs6000/rs6000-protos.h  (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/config/rs6000/rs6000-protos.h  (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -1,5 +1,6 @@
- /* Definitions of target machine for GNU compiler, for IBM RS/6000.
--   Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
-+   Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009,
-+   2010, 2011
-    Free Software Foundation, Inc.
-    Contributed by Richard Kenner (kenner@vlsi1.ultra.nyu.edu)
-@@ -130,6 +131,7 @@
- extern rtx rs6000_machopic_legitimize_pic_address (rtx, enum machine_mode,
-                                                  rtx);
-+extern rtx rs6000_address_for_altivec (rtx);
- #endif /* RTX_CODE */
- #ifdef TREE_CODE
-Index: gcc/config/rs6000/rs6000-builtin.def
-===================================================================
---- gcc/config/rs6000/rs6000-builtin.def       (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/config/rs6000/rs6000-builtin.def       (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -1,5 +1,5 @@
- /* Builtin functions for rs6000/powerpc.
--   Copyright (C) 2009, 2010
-+   Copyright (C) 2009, 2010, 2011
-    Free Software Foundation, Inc.
-    Contributed by Michael Meissner (meissner@linux.vnet.ibm.com)
-@@ -37,6 +37,10 @@
- RS6000_BUILTIN(ALTIVEC_BUILTIN_LD_INTERNAL_16qi,      RS6000_BTC_MEM)
- RS6000_BUILTIN(ALTIVEC_BUILTIN_ST_INTERNAL_4sf,               RS6000_BTC_MEM)
- RS6000_BUILTIN(ALTIVEC_BUILTIN_LD_INTERNAL_4sf,               RS6000_BTC_MEM)
-+RS6000_BUILTIN(ALTIVEC_BUILTIN_ST_INTERNAL_2df,               RS6000_BTC_MEM)
-+RS6000_BUILTIN(ALTIVEC_BUILTIN_LD_INTERNAL_2df,               RS6000_BTC_MEM)
-+RS6000_BUILTIN(ALTIVEC_BUILTIN_ST_INTERNAL_2di,               RS6000_BTC_MEM)
-+RS6000_BUILTIN(ALTIVEC_BUILTIN_LD_INTERNAL_2di,               RS6000_BTC_MEM)
- RS6000_BUILTIN(ALTIVEC_BUILTIN_VADDUBM,                       RS6000_BTC_CONST)
- RS6000_BUILTIN(ALTIVEC_BUILTIN_VADDUHM,                       RS6000_BTC_CONST)
- RS6000_BUILTIN(ALTIVEC_BUILTIN_VADDUWM,                       RS6000_BTC_CONST)
-@@ -774,12 +778,20 @@
-   /* VSX builtins.  */
- RS6000_BUILTIN(VSX_BUILTIN_LXSDX,                     RS6000_BTC_MEM)
--RS6000_BUILTIN(VSX_BUILTIN_LXVD2X,                    RS6000_BTC_MEM)
-+RS6000_BUILTIN(VSX_BUILTIN_LXVD2X_V2DF,                       RS6000_BTC_MEM)
-+RS6000_BUILTIN(VSX_BUILTIN_LXVD2X_V2DI,                       RS6000_BTC_MEM)
- RS6000_BUILTIN(VSX_BUILTIN_LXVDSX,                    RS6000_BTC_MEM)
--RS6000_BUILTIN(VSX_BUILTIN_LXVW4X,                    RS6000_BTC_MEM)
-+RS6000_BUILTIN(VSX_BUILTIN_LXVW4X_V4SF,                       RS6000_BTC_MEM)
-+RS6000_BUILTIN(VSX_BUILTIN_LXVW4X_V4SI,                       RS6000_BTC_MEM)
-+RS6000_BUILTIN(VSX_BUILTIN_LXVW4X_V8HI,                       RS6000_BTC_MEM)
-+RS6000_BUILTIN(VSX_BUILTIN_LXVW4X_V16QI,              RS6000_BTC_MEM)
- RS6000_BUILTIN(VSX_BUILTIN_STXSDX,                    RS6000_BTC_MEM)
--RS6000_BUILTIN(VSX_BUILTIN_STXVD2X,                   RS6000_BTC_MEM)
--RS6000_BUILTIN(VSX_BUILTIN_STXVW4X,                   RS6000_BTC_MEM)
-+RS6000_BUILTIN(VSX_BUILTIN_STXVD2X_V2DF,              RS6000_BTC_MEM)
-+RS6000_BUILTIN(VSX_BUILTIN_STXVD2X_V2DI,              RS6000_BTC_MEM)
-+RS6000_BUILTIN(VSX_BUILTIN_STXVW4X_V4SF,              RS6000_BTC_MEM)
-+RS6000_BUILTIN(VSX_BUILTIN_STXVW4X_V4SI,              RS6000_BTC_MEM)
-+RS6000_BUILTIN(VSX_BUILTIN_STXVW4X_V8HI,              RS6000_BTC_MEM)
-+RS6000_BUILTIN(VSX_BUILTIN_STXVW4X_V16QI,             RS6000_BTC_MEM)
- RS6000_BUILTIN(VSX_BUILTIN_XSABSDP,                   RS6000_BTC_CONST)
- RS6000_BUILTIN(VSX_BUILTIN_XSADDDP,                   RS6000_BTC_FP_PURE)
- RS6000_BUILTIN(VSX_BUILTIN_XSCMPODP,                  RS6000_BTC_FP_PURE)
-@@ -975,8 +987,10 @@
- RS6000_BUILTIN(VSX_BUILTIN_VEC_XXSLDWI,                       RS6000_BTC_MISC)
- RS6000_BUILTIN(VSX_BUILTIN_VEC_XXSPLTD,                       RS6000_BTC_MISC)
- RS6000_BUILTIN(VSX_BUILTIN_VEC_XXSPLTW,                       RS6000_BTC_MISC)
-+RS6000_BUILTIN(VSX_BUILTIN_VEC_LD,                    RS6000_BTC_MISC)
-+RS6000_BUILTIN(VSX_BUILTIN_VEC_ST,                    RS6000_BTC_MISC)
- RS6000_BUILTIN_EQUATE(VSX_BUILTIN_OVERLOADED_LAST,
--                    VSX_BUILTIN_VEC_XXSPLTW)
-+                    VSX_BUILTIN_VEC_ST)
- /* Combined VSX/Altivec builtins.  */
- RS6000_BUILTIN(VECTOR_BUILTIN_FLOAT_V4SI_V4SF,                RS6000_BTC_FP_PURE)
-Index: gcc/config/rs6000/rs6000-c.c
-===================================================================
---- gcc/config/rs6000/rs6000-c.c       (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/config/rs6000/rs6000-c.c       (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -965,6 +965,15 @@
-   { VSX_BUILTIN_VEC_DIV, VSX_BUILTIN_XVDIVDP,
-     RS6000_BTI_V2DF, RS6000_BTI_V2DF, RS6000_BTI_V2DF, 0 },
-   { ALTIVEC_BUILTIN_VEC_LD, ALTIVEC_BUILTIN_LVX,
-+    RS6000_BTI_V2DF, RS6000_BTI_INTSI, ~RS6000_BTI_V2DF, 0 },
-+  { ALTIVEC_BUILTIN_VEC_LD, ALTIVEC_BUILTIN_LVX,
-+    RS6000_BTI_V2DI, RS6000_BTI_INTSI, ~RS6000_BTI_V2DI, 0 },
-+  { ALTIVEC_BUILTIN_VEC_LD, ALTIVEC_BUILTIN_LVX,
-+    RS6000_BTI_unsigned_V2DI, RS6000_BTI_INTSI,
-+    ~RS6000_BTI_unsigned_V2DI, 0 },
-+  { ALTIVEC_BUILTIN_VEC_LD, ALTIVEC_BUILTIN_LVX,
-+    RS6000_BTI_bool_V2DI, RS6000_BTI_INTSI, ~RS6000_BTI_bool_V2DI, 0 },
-+  { ALTIVEC_BUILTIN_VEC_LD, ALTIVEC_BUILTIN_LVX,
-     RS6000_BTI_V4SF, RS6000_BTI_INTSI, ~RS6000_BTI_V4SF, 0 },
-   { ALTIVEC_BUILTIN_VEC_LD, ALTIVEC_BUILTIN_LVX,
-     RS6000_BTI_V4SF, RS6000_BTI_INTSI, ~RS6000_BTI_float, 0 },
-@@ -1077,9 +1086,19 @@
-   { ALTIVEC_BUILTIN_VEC_LDL, ALTIVEC_BUILTIN_LVXL,
-     RS6000_BTI_V16QI, RS6000_BTI_INTSI, ~RS6000_BTI_INTQI, 0 },
-   { ALTIVEC_BUILTIN_VEC_LDL, ALTIVEC_BUILTIN_LVXL,
--    RS6000_BTI_unsigned_V16QI, RS6000_BTI_INTSI, ~RS6000_BTI_unsigned_V16QI, 0 },
-+    RS6000_BTI_unsigned_V16QI, RS6000_BTI_INTSI,
-+    ~RS6000_BTI_unsigned_V16QI, 0 },
-   { ALTIVEC_BUILTIN_VEC_LDL, ALTIVEC_BUILTIN_LVXL,
-     RS6000_BTI_unsigned_V16QI, RS6000_BTI_INTSI, ~RS6000_BTI_UINTQI, 0 },
-+  { ALTIVEC_BUILTIN_VEC_LDL, ALTIVEC_BUILTIN_LVXL,
-+    RS6000_BTI_V2DF, RS6000_BTI_INTSI, ~RS6000_BTI_V2DF, 0 },
-+  { ALTIVEC_BUILTIN_VEC_LDL, ALTIVEC_BUILTIN_LVXL,
-+    RS6000_BTI_V2DI, RS6000_BTI_INTSI, ~RS6000_BTI_V2DI, 0 },
-+  { ALTIVEC_BUILTIN_VEC_LDL, ALTIVEC_BUILTIN_LVXL,
-+    RS6000_BTI_unsigned_V2DI, RS6000_BTI_INTSI,
-+    ~RS6000_BTI_unsigned_V2DI, 0 },
-+  { ALTIVEC_BUILTIN_VEC_LDL, ALTIVEC_BUILTIN_LVXL,
-+    RS6000_BTI_bool_V2DI, RS6000_BTI_INTSI, ~RS6000_BTI_bool_V2DI, 0 },
-   { ALTIVEC_BUILTIN_VEC_LVSL, ALTIVEC_BUILTIN_LVSL,
-     RS6000_BTI_unsigned_V16QI, RS6000_BTI_INTSI, ~RS6000_BTI_UINTQI, 0 },
-   { ALTIVEC_BUILTIN_VEC_LVSL, ALTIVEC_BUILTIN_LVSL,
-@@ -1098,6 +1117,17 @@
-     RS6000_BTI_unsigned_V16QI, RS6000_BTI_INTSI, ~RS6000_BTI_long, 0 },
-   { ALTIVEC_BUILTIN_VEC_LVSL, ALTIVEC_BUILTIN_LVSL,
-     RS6000_BTI_unsigned_V16QI, RS6000_BTI_INTSI, ~RS6000_BTI_float, 0 },
-+  { ALTIVEC_BUILTIN_VEC_LVSL, ALTIVEC_BUILTIN_LVSL,
-+    RS6000_BTI_unsigned_V16QI, RS6000_BTI_INTSI, ~RS6000_BTI_double, 0 },
-+  { ALTIVEC_BUILTIN_VEC_LVSL, ALTIVEC_BUILTIN_LVSL,
-+    RS6000_BTI_unsigned_V16QI, RS6000_BTI_INTSI, ~RS6000_BTI_UINTDI, 0 },
-+  { ALTIVEC_BUILTIN_VEC_LVSL, ALTIVEC_BUILTIN_LVSL,
-+    RS6000_BTI_unsigned_V16QI, RS6000_BTI_INTSI, ~RS6000_BTI_INTDI, 0 },
-+  { ALTIVEC_BUILTIN_VEC_LVSL, ALTIVEC_BUILTIN_LVSL,
-+    RS6000_BTI_unsigned_V16QI, RS6000_BTI_INTSI, ~RS6000_BTI_long_long, 0 },
-+  { ALTIVEC_BUILTIN_VEC_LVSL, ALTIVEC_BUILTIN_LVSL,
-+    RS6000_BTI_unsigned_V16QI, RS6000_BTI_INTSI,
-+    ~RS6000_BTI_unsigned_long_long, 0 },
-   { ALTIVEC_BUILTIN_VEC_LVSR, ALTIVEC_BUILTIN_LVSR,
-     RS6000_BTI_unsigned_V16QI, RS6000_BTI_INTSI, ~RS6000_BTI_UINTQI, 0 },
-   { ALTIVEC_BUILTIN_VEC_LVSR, ALTIVEC_BUILTIN_LVSR,
-@@ -1116,6 +1146,17 @@
-     RS6000_BTI_unsigned_V16QI, RS6000_BTI_INTSI, ~RS6000_BTI_long, 0 },
-   { ALTIVEC_BUILTIN_VEC_LVSR, ALTIVEC_BUILTIN_LVSR,
-     RS6000_BTI_unsigned_V16QI, RS6000_BTI_INTSI, ~RS6000_BTI_float, 0 },
-+  { ALTIVEC_BUILTIN_VEC_LVSR, ALTIVEC_BUILTIN_LVSR,
-+    RS6000_BTI_unsigned_V16QI, RS6000_BTI_INTSI, ~RS6000_BTI_double, 0 },
-+  { ALTIVEC_BUILTIN_VEC_LVSR, ALTIVEC_BUILTIN_LVSR,
-+    RS6000_BTI_unsigned_V16QI, RS6000_BTI_INTSI, ~RS6000_BTI_UINTDI, 0 },
-+  { ALTIVEC_BUILTIN_VEC_LVSR, ALTIVEC_BUILTIN_LVSR,
-+    RS6000_BTI_unsigned_V16QI, RS6000_BTI_INTSI, ~RS6000_BTI_INTDI, 0 },
-+  { ALTIVEC_BUILTIN_VEC_LVSR, ALTIVEC_BUILTIN_LVSR,
-+    RS6000_BTI_unsigned_V16QI, RS6000_BTI_INTSI, ~RS6000_BTI_long_long, 0 },
-+  { ALTIVEC_BUILTIN_VEC_LVSR, ALTIVEC_BUILTIN_LVSR,
-+    RS6000_BTI_unsigned_V16QI, RS6000_BTI_INTSI,
-+    ~RS6000_BTI_unsigned_long_long, 0 },
-   { ALTIVEC_BUILTIN_VEC_LVLX, ALTIVEC_BUILTIN_LVLX,
-     RS6000_BTI_V4SF, RS6000_BTI_INTSI, ~RS6000_BTI_V4SF, 0 },
-   { ALTIVEC_BUILTIN_VEC_LVLX, ALTIVEC_BUILTIN_LVLX,
-@@ -2609,6 +2650,16 @@
-   { ALTIVEC_BUILTIN_VEC_SLD, ALTIVEC_BUILTIN_VSLDOI_16QI,
-     RS6000_BTI_bool_V16QI, RS6000_BTI_bool_V16QI, RS6000_BTI_bool_V16QI, RS6000_BTI_NOT_OPAQUE },
-   { ALTIVEC_BUILTIN_VEC_ST, ALTIVEC_BUILTIN_STVX,
-+    RS6000_BTI_void, RS6000_BTI_V2DF, RS6000_BTI_INTSI, ~RS6000_BTI_V2DF },
-+  { ALTIVEC_BUILTIN_VEC_ST, ALTIVEC_BUILTIN_STVX,
-+    RS6000_BTI_void, RS6000_BTI_V2DI, RS6000_BTI_INTSI, ~RS6000_BTI_V2DI },
-+  { ALTIVEC_BUILTIN_VEC_ST, ALTIVEC_BUILTIN_STVX,
-+    RS6000_BTI_void, RS6000_BTI_unsigned_V2DI, RS6000_BTI_INTSI,
-+    ~RS6000_BTI_unsigned_V2DI },
-+  { ALTIVEC_BUILTIN_VEC_ST, ALTIVEC_BUILTIN_STVX,
-+    RS6000_BTI_void, RS6000_BTI_bool_V2DI, RS6000_BTI_INTSI,
-+    ~RS6000_BTI_bool_V2DI },
-+  { ALTIVEC_BUILTIN_VEC_ST, ALTIVEC_BUILTIN_STVX,
-     RS6000_BTI_void, RS6000_BTI_V4SF, RS6000_BTI_INTSI, ~RS6000_BTI_V4SF },
-   { ALTIVEC_BUILTIN_VEC_ST, ALTIVEC_BUILTIN_STVX,
-     RS6000_BTI_void, RS6000_BTI_V4SF, RS6000_BTI_INTSI, ~RS6000_BTI_float },
-@@ -2774,6 +2825,18 @@
-     RS6000_BTI_void, RS6000_BTI_bool_V16QI, RS6000_BTI_INTSI, ~RS6000_BTI_INTQI },
-   { ALTIVEC_BUILTIN_VEC_STL, ALTIVEC_BUILTIN_STVXL,
-     RS6000_BTI_void, RS6000_BTI_pixel_V8HI, RS6000_BTI_INTSI, ~RS6000_BTI_pixel_V8HI },
-+  { ALTIVEC_BUILTIN_VEC_STL, ALTIVEC_BUILTIN_STVXL,
-+    RS6000_BTI_void, RS6000_BTI_V2DF, RS6000_BTI_INTSI, ~RS6000_BTI_V2DF },
-+  { ALTIVEC_BUILTIN_VEC_STL, ALTIVEC_BUILTIN_STVXL,
-+    RS6000_BTI_void, RS6000_BTI_V2DF, RS6000_BTI_INTSI, ~RS6000_BTI_double },
-+  { ALTIVEC_BUILTIN_VEC_STL, ALTIVEC_BUILTIN_STVXL,
-+    RS6000_BTI_void, RS6000_BTI_V2DI, RS6000_BTI_INTSI, ~RS6000_BTI_V2DI },
-+  { ALTIVEC_BUILTIN_VEC_STL, ALTIVEC_BUILTIN_STVXL,
-+    RS6000_BTI_void, RS6000_BTI_unsigned_V2DI, RS6000_BTI_INTSI,
-+    ~RS6000_BTI_unsigned_V2DI },
-+  { ALTIVEC_BUILTIN_VEC_STL, ALTIVEC_BUILTIN_STVXL,
-+    RS6000_BTI_void, RS6000_BTI_bool_V2DI, RS6000_BTI_INTSI,
-+    ~RS6000_BTI_bool_V2DI },
-   { ALTIVEC_BUILTIN_VEC_STVLX, ALTIVEC_BUILTIN_STVLX,
-     RS6000_BTI_void, RS6000_BTI_V4SF, RS6000_BTI_INTSI, ~RS6000_BTI_V4SF },
-   { ALTIVEC_BUILTIN_VEC_STVLX, ALTIVEC_BUILTIN_STVLX,
-@@ -2967,6 +3030,135 @@
-     RS6000_BTI_unsigned_V16QI, RS6000_BTI_unsigned_V16QI, RS6000_BTI_unsigned_V16QI,
-     RS6000_BTI_NOT_OPAQUE },
-+  { VSX_BUILTIN_VEC_LD, VSX_BUILTIN_LXVD2X_V2DF,
-+    RS6000_BTI_V2DF, RS6000_BTI_INTSI, ~RS6000_BTI_V2DF, 0 },
-+  { VSX_BUILTIN_VEC_LD, VSX_BUILTIN_LXVD2X_V2DI,
-+    RS6000_BTI_V2DI, RS6000_BTI_INTSI, ~RS6000_BTI_V2DI, 0 },
-+  { VSX_BUILTIN_VEC_LD, VSX_BUILTIN_LXVD2X_V2DI,
-+    RS6000_BTI_unsigned_V2DI, RS6000_BTI_INTSI,
-+    ~RS6000_BTI_unsigned_V2DI, 0 },
-+  { VSX_BUILTIN_VEC_LD, VSX_BUILTIN_LXVD2X_V2DI,
-+    RS6000_BTI_bool_V2DI, RS6000_BTI_INTSI, ~RS6000_BTI_bool_V2DI, 0 },
-+  { VSX_BUILTIN_VEC_LD, VSX_BUILTIN_LXVW4X_V4SF,
-+    RS6000_BTI_V4SF, RS6000_BTI_INTSI, ~RS6000_BTI_V4SF, 0 },
-+  { VSX_BUILTIN_VEC_LD, VSX_BUILTIN_LXVW4X_V4SF,
-+    RS6000_BTI_V4SF, RS6000_BTI_INTSI, ~RS6000_BTI_float, 0 },
-+  { VSX_BUILTIN_VEC_LD, VSX_BUILTIN_LXVW4X_V4SI,
-+    RS6000_BTI_bool_V4SI, RS6000_BTI_INTSI, ~RS6000_BTI_bool_V4SI, 0 },
-+  { VSX_BUILTIN_VEC_LD, VSX_BUILTIN_LXVW4X_V4SI,
-+    RS6000_BTI_V4SI, RS6000_BTI_INTSI, ~RS6000_BTI_V4SI, 0 },
-+  { VSX_BUILTIN_VEC_LD, VSX_BUILTIN_LXVW4X_V4SI,
-+    RS6000_BTI_V4SI, RS6000_BTI_INTSI, ~RS6000_BTI_INTSI, 0 },
-+  { VSX_BUILTIN_VEC_LD, VSX_BUILTIN_LXVW4X_V4SI,
-+    RS6000_BTI_V4SI, RS6000_BTI_INTSI, ~RS6000_BTI_long, 0 },
-+  { VSX_BUILTIN_VEC_LD, VSX_BUILTIN_LXVW4X_V4SI,
-+    RS6000_BTI_unsigned_V4SI, RS6000_BTI_INTSI,
-+    ~RS6000_BTI_unsigned_V4SI, 0 },
-+  { VSX_BUILTIN_VEC_LD, VSX_BUILTIN_LXVW4X_V4SI,
-+    RS6000_BTI_unsigned_V4SI, RS6000_BTI_INTSI, ~RS6000_BTI_UINTSI, 0 },
-+  { VSX_BUILTIN_VEC_LD, VSX_BUILTIN_LXVW4X_V4SI,
-+    RS6000_BTI_unsigned_V4SI, RS6000_BTI_INTSI,
-+    ~RS6000_BTI_unsigned_long, 0 },
-+  { VSX_BUILTIN_VEC_LD, VSX_BUILTIN_LXVW4X_V8HI,
-+    RS6000_BTI_bool_V8HI, RS6000_BTI_INTSI, ~RS6000_BTI_bool_V8HI, 0 },
-+  { VSX_BUILTIN_VEC_LD, VSX_BUILTIN_LXVW4X_V8HI,
-+    RS6000_BTI_pixel_V8HI, RS6000_BTI_INTSI, ~RS6000_BTI_pixel_V8HI, 0 },
-+  { VSX_BUILTIN_VEC_LD, VSX_BUILTIN_LXVW4X_V8HI,
-+    RS6000_BTI_V8HI, RS6000_BTI_INTSI, ~RS6000_BTI_V8HI, 0 },
-+  { VSX_BUILTIN_VEC_LD, VSX_BUILTIN_LXVW4X_V8HI,
-+    RS6000_BTI_V8HI, RS6000_BTI_INTSI, ~RS6000_BTI_INTHI, 0 },
-+  { VSX_BUILTIN_VEC_LD, VSX_BUILTIN_LXVW4X_V8HI,
-+    RS6000_BTI_unsigned_V8HI, RS6000_BTI_INTSI,
-+    ~RS6000_BTI_unsigned_V8HI, 0 },
-+  { VSX_BUILTIN_VEC_LD, VSX_BUILTIN_LXVW4X_V8HI,
-+    RS6000_BTI_unsigned_V8HI, RS6000_BTI_INTSI, ~RS6000_BTI_UINTHI, 0 },
-+  { VSX_BUILTIN_VEC_LD, VSX_BUILTIN_LXVW4X_V16QI,
-+    RS6000_BTI_bool_V16QI, RS6000_BTI_INTSI, ~RS6000_BTI_bool_V16QI, 0 },
-+  { VSX_BUILTIN_VEC_LD, VSX_BUILTIN_LXVW4X_V16QI,
-+    RS6000_BTI_V16QI, RS6000_BTI_INTSI, ~RS6000_BTI_V16QI, 0 },
-+  { VSX_BUILTIN_VEC_LD, VSX_BUILTIN_LXVW4X_V16QI,
-+    RS6000_BTI_V16QI, RS6000_BTI_INTSI, ~RS6000_BTI_INTQI, 0 },
-+  { VSX_BUILTIN_VEC_LD, VSX_BUILTIN_LXVW4X_V16QI,
-+    RS6000_BTI_unsigned_V16QI, RS6000_BTI_INTSI,
-+    ~RS6000_BTI_unsigned_V16QI, 0 },
-+  { VSX_BUILTIN_VEC_LD, VSX_BUILTIN_LXVW4X_V16QI,
-+    RS6000_BTI_unsigned_V16QI, RS6000_BTI_INTSI, ~RS6000_BTI_UINTQI, 0 },
-+
-+  { VSX_BUILTIN_VEC_ST, VSX_BUILTIN_STXVD2X_V2DF,
-+    RS6000_BTI_void, RS6000_BTI_V2DF, RS6000_BTI_INTSI, ~RS6000_BTI_V2DF },
-+  { VSX_BUILTIN_VEC_ST, VSX_BUILTIN_STXVD2X_V2DI,
-+    RS6000_BTI_void, RS6000_BTI_V2DI, RS6000_BTI_INTSI, ~RS6000_BTI_V2DI },
-+  { VSX_BUILTIN_VEC_ST, VSX_BUILTIN_STXVD2X_V2DI,
-+    RS6000_BTI_void, RS6000_BTI_unsigned_V2DI, RS6000_BTI_INTSI,
-+    ~RS6000_BTI_unsigned_V2DI },
-+  { VSX_BUILTIN_VEC_ST, VSX_BUILTIN_STXVD2X_V2DI,
-+    RS6000_BTI_void, RS6000_BTI_bool_V2DI, RS6000_BTI_INTSI,
-+    ~RS6000_BTI_bool_V2DI },
-+  { VSX_BUILTIN_VEC_ST, VSX_BUILTIN_STXVW4X_V4SF,
-+    RS6000_BTI_void, RS6000_BTI_V4SF, RS6000_BTI_INTSI, ~RS6000_BTI_V4SF },
-+  { VSX_BUILTIN_VEC_ST, VSX_BUILTIN_STXVW4X_V4SF,
-+    RS6000_BTI_void, RS6000_BTI_V4SF, RS6000_BTI_INTSI, ~RS6000_BTI_float },
-+  { VSX_BUILTIN_VEC_ST, VSX_BUILTIN_STXVW4X_V4SI,
-+    RS6000_BTI_void, RS6000_BTI_V4SI, RS6000_BTI_INTSI, ~RS6000_BTI_V4SI },
-+  { VSX_BUILTIN_VEC_ST, VSX_BUILTIN_STXVW4X_V4SI,
-+    RS6000_BTI_void, RS6000_BTI_V4SI, RS6000_BTI_INTSI, ~RS6000_BTI_INTSI },
-+  { VSX_BUILTIN_VEC_ST, VSX_BUILTIN_STXVW4X_V4SI,
-+    RS6000_BTI_void, RS6000_BTI_unsigned_V4SI, RS6000_BTI_INTSI,
-+    ~RS6000_BTI_unsigned_V4SI },
-+  { VSX_BUILTIN_VEC_ST, VSX_BUILTIN_STXVW4X_V4SI,
-+    RS6000_BTI_void, RS6000_BTI_unsigned_V4SI, RS6000_BTI_INTSI,
-+    ~RS6000_BTI_UINTSI },
-+  { VSX_BUILTIN_VEC_ST, VSX_BUILTIN_STXVW4X_V4SI,
-+    RS6000_BTI_void, RS6000_BTI_bool_V4SI, RS6000_BTI_INTSI,
-+    ~RS6000_BTI_bool_V4SI },
-+  { VSX_BUILTIN_VEC_ST, VSX_BUILTIN_STXVW4X_V4SI,
-+    RS6000_BTI_void, RS6000_BTI_bool_V4SI, RS6000_BTI_INTSI,
-+    ~RS6000_BTI_UINTSI },
-+  { VSX_BUILTIN_VEC_ST, VSX_BUILTIN_STXVW4X_V4SI,
-+    RS6000_BTI_void, RS6000_BTI_bool_V4SI, RS6000_BTI_INTSI,
-+    ~RS6000_BTI_INTSI },
-+  { VSX_BUILTIN_VEC_ST, VSX_BUILTIN_STXVW4X_V8HI,
-+    RS6000_BTI_void, RS6000_BTI_V8HI, RS6000_BTI_INTSI, ~RS6000_BTI_V8HI },
-+  { VSX_BUILTIN_VEC_ST, VSX_BUILTIN_STXVW4X_V8HI,
-+    RS6000_BTI_void, RS6000_BTI_V8HI, RS6000_BTI_INTSI, ~RS6000_BTI_INTHI },
-+  { VSX_BUILTIN_VEC_ST, VSX_BUILTIN_STXVW4X_V8HI,
-+    RS6000_BTI_void, RS6000_BTI_unsigned_V8HI, RS6000_BTI_INTSI,
-+    ~RS6000_BTI_unsigned_V8HI },
-+  { VSX_BUILTIN_VEC_ST, VSX_BUILTIN_STXVW4X_V8HI,
-+    RS6000_BTI_void, RS6000_BTI_unsigned_V8HI, RS6000_BTI_INTSI,
-+    ~RS6000_BTI_UINTHI },
-+  { VSX_BUILTIN_VEC_ST, VSX_BUILTIN_STXVW4X_V8HI,
-+    RS6000_BTI_void, RS6000_BTI_bool_V8HI, RS6000_BTI_INTSI,
-+    ~RS6000_BTI_bool_V8HI },
-+  { VSX_BUILTIN_VEC_ST, VSX_BUILTIN_STXVW4X_V8HI,
-+    RS6000_BTI_void, RS6000_BTI_bool_V8HI, RS6000_BTI_INTSI,
-+    ~RS6000_BTI_UINTHI },
-+  { VSX_BUILTIN_VEC_ST, VSX_BUILTIN_STXVW4X_V8HI,
-+    RS6000_BTI_void, RS6000_BTI_bool_V8HI, RS6000_BTI_INTSI,
-+    ~RS6000_BTI_INTHI },
-+  { VSX_BUILTIN_VEC_ST, VSX_BUILTIN_STXVW4X_V16QI,
-+    RS6000_BTI_void, RS6000_BTI_V16QI, RS6000_BTI_INTSI, ~RS6000_BTI_V16QI },
-+  { VSX_BUILTIN_VEC_ST, VSX_BUILTIN_STXVW4X_V16QI,
-+    RS6000_BTI_void, RS6000_BTI_V16QI, RS6000_BTI_INTSI, ~RS6000_BTI_INTQI },
-+  { VSX_BUILTIN_VEC_ST, VSX_BUILTIN_STXVW4X_V16QI,
-+    RS6000_BTI_void, RS6000_BTI_unsigned_V16QI, RS6000_BTI_INTSI,
-+    ~RS6000_BTI_unsigned_V16QI },
-+  { VSX_BUILTIN_VEC_ST, VSX_BUILTIN_STXVW4X_V16QI,
-+    RS6000_BTI_void, RS6000_BTI_unsigned_V16QI, RS6000_BTI_INTSI,
-+    ~RS6000_BTI_UINTQI },
-+  { VSX_BUILTIN_VEC_ST, VSX_BUILTIN_STXVW4X_V16QI,
-+    RS6000_BTI_void, RS6000_BTI_bool_V16QI, RS6000_BTI_INTSI,
-+    ~RS6000_BTI_bool_V16QI },
-+  { VSX_BUILTIN_VEC_ST, VSX_BUILTIN_STXVW4X_V16QI,
-+    RS6000_BTI_void, RS6000_BTI_bool_V16QI, RS6000_BTI_INTSI,
-+    ~RS6000_BTI_UINTQI },
-+  { VSX_BUILTIN_VEC_ST, VSX_BUILTIN_STXVW4X_V16QI,
-+    RS6000_BTI_void, RS6000_BTI_bool_V16QI, RS6000_BTI_INTSI,
-+    ~RS6000_BTI_INTQI },
-+  { VSX_BUILTIN_VEC_ST, VSX_BUILTIN_STXVW4X_V16QI,
-+    RS6000_BTI_void, RS6000_BTI_pixel_V8HI, RS6000_BTI_INTSI,
-+    ~RS6000_BTI_pixel_V8HI },
-+
-   /* Predicates.  */
-   { ALTIVEC_BUILTIN_VCMPGT_P, ALTIVEC_BUILTIN_VCMPGTUB_P,
-     RS6000_BTI_INTSI, RS6000_BTI_INTSI, RS6000_BTI_bool_V16QI, RS6000_BTI_unsigned_V16QI },
-Index: gcc/config/rs6000/rs6000.c
++}
+Index: libstdc++-v3/testsuite/ext/type_traits/remove_unsigned_integer_neg.cc
 ===================================================================
---- gcc/config/rs6000/rs6000.c (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/config/rs6000/rs6000.c (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -2865,9 +2865,12 @@
-   /* If not explicitly specified via option, decide whether to generate indexed
-      load/store instructions.  */
-   if (TARGET_AVOID_XFORM == -1)
--    /* Avoid indexed addressing when targeting Power6 in order to avoid
--     the DERAT mispredict penalty.  */
--    TARGET_AVOID_XFORM = (rs6000_cpu == PROCESSOR_POWER6 && TARGET_CMPB);
-+    /* Avoid indexed addressing when targeting Power6 in order to avoid the
-+     DERAT mispredict penalty.  However the LVE and STVE altivec instructions
-+     need indexed accesses and the type used is the scalar type of the element
-+     being loaded or stored.  */
-+    TARGET_AVOID_XFORM = (rs6000_cpu == PROCESSOR_POWER6 && TARGET_CMPB
-+                        && !TARGET_ALTIVEC);
-   rs6000_init_hard_regno_mode_ok ();
+--- libstdc++-v3/testsuite/ext/type_traits/remove_unsigned_integer_neg.cc      (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ libstdc++-v3/testsuite/ext/type_traits/remove_unsigned_integer_neg.cc      (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -36,4 +36,4 @@
  }
-@@ -4472,7 +4475,7 @@
- {
-   enum machine_mode mode = GET_MODE (vec);
-   enum machine_mode inner_mode = GET_MODE_INNER (mode);
--  rtx mem, x;
-+  rtx mem;
  
-   if (VECTOR_MEM_VSX_P (mode) && (mode == V2DFmode || mode == V2DImode))
-     {
-@@ -4485,17 +4488,11 @@
-   /* Allocate mode-sized buffer.  */
-   mem = assign_stack_temp (mode, GET_MODE_SIZE (mode), 0);
-+  emit_move_insn (mem, vec);
-+
-   /* Add offset to field within buffer matching vector element.  */
--  mem = adjust_address_nv (mem, mode, elt * GET_MODE_SIZE (inner_mode));
-+  mem = adjust_address_nv (mem, inner_mode, elt * GET_MODE_SIZE (inner_mode));
--  /* Store single field into mode-sized buffer.  */
--  x = gen_rtx_UNSPEC (VOIDmode,
--                    gen_rtvec (1, const0_rtx), UNSPEC_STVE);
--  emit_insn (gen_rtx_PARALLEL (VOIDmode,
--                             gen_rtvec (2,
--                                        gen_rtx_SET (VOIDmode,
--                                                     mem, vec),
--                                        x)));
-   emit_move_insn (target, adjust_address_nv (mem, inner_mode, 0));
+ // { dg-error "invalid use of incomplete" "" { target *-*-* } 28 } 
+-// { dg-error "declaration of" "" { target *-*-* } 106 }
++// { dg-error "declaration of" "" { target *-*-* } 107 }
+Index: libstdc++-v3/testsuite/ext/type_traits/add_unsigned_floating_neg.cc
+===================================================================
+--- libstdc++-v3/testsuite/ext/type_traits/add_unsigned_floating_neg.cc        (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ libstdc++-v3/testsuite/ext/type_traits/add_unsigned_floating_neg.cc        (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -35,4 +35,4 @@
  }
  
-@@ -9897,6 +9894,7 @@
-   rtx op2 = expand_normal (arg2);
-   rtx pat, addr;
-   enum machine_mode tmode = insn_data[icode].operand[0].mode;
-+  enum machine_mode smode = insn_data[icode].operand[1].mode;
-   enum machine_mode mode1 = Pmode;
-   enum machine_mode mode2 = Pmode;
-@@ -9906,8 +9904,8 @@
-       || arg2 == error_mark_node)
-     return const0_rtx;
--  if (! (*insn_data[icode].operand[1].predicate) (op0, tmode))
--    op0 = copy_to_mode_reg (tmode, op0);
-+  if (! (*insn_data[icode].operand[1].predicate) (op0, smode))
-+    op0 = copy_to_mode_reg (smode, op0);
-   op2 = copy_to_mode_reg (mode2, op2);
-@@ -10041,17 +10039,23 @@
-   switch (fcode)
-     {
-     case ALTIVEC_BUILTIN_LD_INTERNAL_16qi:
--      icode = CODE_FOR_vector_load_v16qi;
-+      icode = CODE_FOR_vector_altivec_load_v16qi;
-       break;
-     case ALTIVEC_BUILTIN_LD_INTERNAL_8hi:
--      icode = CODE_FOR_vector_load_v8hi;
-+      icode = CODE_FOR_vector_altivec_load_v8hi;
-       break;
-     case ALTIVEC_BUILTIN_LD_INTERNAL_4si:
--      icode = CODE_FOR_vector_load_v4si;
-+      icode = CODE_FOR_vector_altivec_load_v4si;
-       break;
-     case ALTIVEC_BUILTIN_LD_INTERNAL_4sf:
--      icode = CODE_FOR_vector_load_v4sf;
-+      icode = CODE_FOR_vector_altivec_load_v4sf;
-       break;
-+    case ALTIVEC_BUILTIN_LD_INTERNAL_2df:
-+      icode = CODE_FOR_vector_altivec_load_v2df;
-+      break;
-+    case ALTIVEC_BUILTIN_LD_INTERNAL_2di:
-+      icode = CODE_FOR_vector_altivec_load_v2di;
-+      break;
-     default:
-       *expandedp = false;
-       return NULL_RTX;
-@@ -10094,17 +10098,23 @@
-   switch (fcode)
-     {
-     case ALTIVEC_BUILTIN_ST_INTERNAL_16qi:
--      icode = CODE_FOR_vector_store_v16qi;
-+      icode = CODE_FOR_vector_altivec_store_v16qi;
-       break;
-     case ALTIVEC_BUILTIN_ST_INTERNAL_8hi:
--      icode = CODE_FOR_vector_store_v8hi;
-+      icode = CODE_FOR_vector_altivec_store_v8hi;
-       break;
-     case ALTIVEC_BUILTIN_ST_INTERNAL_4si:
--      icode = CODE_FOR_vector_store_v4si;
-+      icode = CODE_FOR_vector_altivec_store_v4si;
-       break;
-     case ALTIVEC_BUILTIN_ST_INTERNAL_4sf:
--      icode = CODE_FOR_vector_store_v4sf;
-+      icode = CODE_FOR_vector_altivec_store_v4sf;
-       break;
-+    case ALTIVEC_BUILTIN_ST_INTERNAL_2df:
-+      icode = CODE_FOR_vector_altivec_store_v2df;
-+      break;
-+    case ALTIVEC_BUILTIN_ST_INTERNAL_2di:
-+      icode = CODE_FOR_vector_altivec_store_v2di;
-+      break;
-     default:
-       *expandedp = false;
-       return NULL_RTX;
-@@ -10336,7 +10346,7 @@
-   switch (fcode)
-     {
-     case ALTIVEC_BUILTIN_STVX:
--      return altivec_expand_stv_builtin (CODE_FOR_altivec_stvx, exp);
-+      return altivec_expand_stv_builtin (CODE_FOR_altivec_stvx_v4si, exp);
-     case ALTIVEC_BUILTIN_STVEBX:
-       return altivec_expand_stv_builtin (CODE_FOR_altivec_stvebx, exp);
-     case ALTIVEC_BUILTIN_STVEHX:
-@@ -10355,6 +10365,19 @@
-     case ALTIVEC_BUILTIN_STVRXL:
-       return altivec_expand_stv_builtin (CODE_FOR_altivec_stvrxl, exp);
-+    case VSX_BUILTIN_STXVD2X_V2DF:
-+      return altivec_expand_stv_builtin (CODE_FOR_vsx_store_v2df, exp);
-+    case VSX_BUILTIN_STXVD2X_V2DI:
-+      return altivec_expand_stv_builtin (CODE_FOR_vsx_store_v2di, exp);
-+    case VSX_BUILTIN_STXVW4X_V4SF:
-+      return altivec_expand_stv_builtin (CODE_FOR_vsx_store_v4sf, exp);
-+    case VSX_BUILTIN_STXVW4X_V4SI:
-+      return altivec_expand_stv_builtin (CODE_FOR_vsx_store_v4si, exp);
-+    case VSX_BUILTIN_STXVW4X_V8HI:
-+      return altivec_expand_stv_builtin (CODE_FOR_vsx_store_v8hi, exp);
-+    case VSX_BUILTIN_STXVW4X_V16QI:
-+      return altivec_expand_stv_builtin (CODE_FOR_vsx_store_v16qi, exp);
-+
-     case ALTIVEC_BUILTIN_MFVSCR:
-       icode = CODE_FOR_altivec_mfvscr;
-       tmode = insn_data[icode].operand[0].mode;
-@@ -10479,7 +10502,7 @@
-       return altivec_expand_lv_builtin (CODE_FOR_altivec_lvxl,
-                                       exp, target, false);
-     case ALTIVEC_BUILTIN_LVX:
--      return altivec_expand_lv_builtin (CODE_FOR_altivec_lvx,
-+      return altivec_expand_lv_builtin (CODE_FOR_altivec_lvx_v4si,
-                                       exp, target, false);
-     case ALTIVEC_BUILTIN_LVLX:
-       return altivec_expand_lv_builtin (CODE_FOR_altivec_lvlx,
-@@ -10493,6 +10516,25 @@
-     case ALTIVEC_BUILTIN_LVRXL:
-       return altivec_expand_lv_builtin (CODE_FOR_altivec_lvrxl,
-                                       exp, target, true);
-+    case VSX_BUILTIN_LXVD2X_V2DF:
-+      return altivec_expand_lv_builtin (CODE_FOR_vsx_load_v2df,
-+                                      exp, target, false);
-+    case VSX_BUILTIN_LXVD2X_V2DI:
-+      return altivec_expand_lv_builtin (CODE_FOR_vsx_load_v2di,
-+                                      exp, target, false);
-+    case VSX_BUILTIN_LXVW4X_V4SF:
-+      return altivec_expand_lv_builtin (CODE_FOR_vsx_load_v4sf,
-+                                      exp, target, false);
-+    case VSX_BUILTIN_LXVW4X_V4SI:
-+      return altivec_expand_lv_builtin (CODE_FOR_vsx_load_v4si,
-+                                      exp, target, false);
-+    case VSX_BUILTIN_LXVW4X_V8HI:
-+      return altivec_expand_lv_builtin (CODE_FOR_vsx_load_v8hi,
-+                                      exp, target, false);
-+    case VSX_BUILTIN_LXVW4X_V16QI:
-+      return altivec_expand_lv_builtin (CODE_FOR_vsx_load_v16qi,
-+                                      exp, target, false);
-+      break;
-     default:
-       break;
-       /* Fall through.  */
-@@ -11099,6 +11141,8 @@
-   long_integer_type_internal_node = long_integer_type_node;
-   long_unsigned_type_internal_node = long_unsigned_type_node;
-+  long_long_integer_type_internal_node = long_long_integer_type_node;
-+  long_long_unsigned_type_internal_node = long_long_unsigned_type_node;
-   intQI_type_internal_node = intQI_type_node;
-   uintQI_type_internal_node = unsigned_intQI_type_node;
-   intHI_type_internal_node = intHI_type_node;
-@@ -11108,7 +11152,7 @@
-   intDI_type_internal_node = intDI_type_node;
-   uintDI_type_internal_node = unsigned_intDI_type_node;
-   float_type_internal_node = float_type_node;
--  double_type_internal_node = float_type_node;
-+  double_type_internal_node = double_type_node;
-   void_type_internal_node = void_type_node;
-   /* Initialize the modes for builtin_function_type, mapping a machine mode to
-@@ -11631,20 +11675,12 @@
-   size_t i;
-   tree ftype;
--  tree pfloat_type_node = build_pointer_type (float_type_node);
--  tree pint_type_node = build_pointer_type (integer_type_node);
--  tree pshort_type_node = build_pointer_type (short_integer_type_node);
--  tree pchar_type_node = build_pointer_type (char_type_node);
--
-   tree pvoid_type_node = build_pointer_type (void_type_node);
--  tree pcfloat_type_node = build_pointer_type (build_qualified_type (float_type_node, TYPE_QUAL_CONST));
--  tree pcint_type_node = build_pointer_type (build_qualified_type (integer_type_node, TYPE_QUAL_CONST));
--  tree pcshort_type_node = build_pointer_type (build_qualified_type (short_integer_type_node, TYPE_QUAL_CONST));
--  tree pcchar_type_node = build_pointer_type (build_qualified_type (char_type_node, TYPE_QUAL_CONST));
-+  tree pcvoid_type_node
-+    = build_pointer_type (build_qualified_type (void_type_node,
-+                                              TYPE_QUAL_CONST));
+ // { dg-error "instantiated from" "" { target *-*-* } 28 } 
+-// { dg-error "no type" "" { target *-*-* } 69 } 
++// { dg-error "no type" "" { target *-*-* } 70 } 
+Index: libstdc++-v3/testsuite/ext/type_traits/remove_unsigned_floating_neg.cc
+===================================================================
+--- libstdc++-v3/testsuite/ext/type_traits/remove_unsigned_floating_neg.cc     (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ libstdc++-v3/testsuite/ext/type_traits/remove_unsigned_floating_neg.cc     (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -35,4 +35,4 @@
+ }
  
--  tree pcvoid_type_node = build_pointer_type (build_qualified_type (void_type_node, TYPE_QUAL_CONST));
--
-   tree int_ftype_opaque
-     = build_function_type_list (integer_type_node,
-                               opaque_V4SI_type_node, NULL_TREE);
-@@ -11666,26 +11702,6 @@
-     = build_function_type_list (integer_type_node,
-                               integer_type_node, V4SI_type_node,
-                               V4SI_type_node, NULL_TREE);
--  tree v4sf_ftype_pcfloat
--    = build_function_type_list (V4SF_type_node, pcfloat_type_node, NULL_TREE);
--  tree void_ftype_pfloat_v4sf
--    = build_function_type_list (void_type_node,
--                              pfloat_type_node, V4SF_type_node, NULL_TREE);
--  tree v4si_ftype_pcint
--    = build_function_type_list (V4SI_type_node, pcint_type_node, NULL_TREE);
--  tree void_ftype_pint_v4si
--    = build_function_type_list (void_type_node,
--                              pint_type_node, V4SI_type_node, NULL_TREE);
--  tree v8hi_ftype_pcshort
--    = build_function_type_list (V8HI_type_node, pcshort_type_node, NULL_TREE);
--  tree void_ftype_pshort_v8hi
--    = build_function_type_list (void_type_node,
--                              pshort_type_node, V8HI_type_node, NULL_TREE);
--  tree v16qi_ftype_pcchar
--    = build_function_type_list (V16QI_type_node, pcchar_type_node, NULL_TREE);
--  tree void_ftype_pchar_v16qi
--    = build_function_type_list (void_type_node,
--                              pchar_type_node, V16QI_type_node, NULL_TREE);
-   tree void_ftype_v4si
-     = build_function_type_list (void_type_node, V4SI_type_node, NULL_TREE);
-   tree v8hi_ftype_void
-@@ -11697,16 +11713,32 @@
-   tree opaque_ftype_long_pcvoid
-     = build_function_type_list (opaque_V4SI_type_node,
--                              long_integer_type_node, pcvoid_type_node, NULL_TREE);
-+                              long_integer_type_node, pcvoid_type_node,
-+                              NULL_TREE);
-   tree v16qi_ftype_long_pcvoid
-     = build_function_type_list (V16QI_type_node,
--                              long_integer_type_node, pcvoid_type_node, NULL_TREE);
-+                              long_integer_type_node, pcvoid_type_node,
-+                              NULL_TREE);
-   tree v8hi_ftype_long_pcvoid
-     = build_function_type_list (V8HI_type_node,
--                              long_integer_type_node, pcvoid_type_node, NULL_TREE);
-+                              long_integer_type_node, pcvoid_type_node,
-+                              NULL_TREE);
-   tree v4si_ftype_long_pcvoid
-     = build_function_type_list (V4SI_type_node,
--                              long_integer_type_node, pcvoid_type_node, NULL_TREE);
-+                              long_integer_type_node, pcvoid_type_node,
-+                              NULL_TREE);
-+  tree v4sf_ftype_long_pcvoid
-+    = build_function_type_list (V4SF_type_node,
-+                              long_integer_type_node, pcvoid_type_node,
-+                              NULL_TREE);
-+  tree v2df_ftype_long_pcvoid
-+    = build_function_type_list (V2DF_type_node,
-+                              long_integer_type_node, pcvoid_type_node,
-+                              NULL_TREE);
-+  tree v2di_ftype_long_pcvoid
-+    = build_function_type_list (V2DI_type_node,
-+                              long_integer_type_node, pcvoid_type_node,
-+                              NULL_TREE);
-   tree void_ftype_opaque_long_pvoid
-     = build_function_type_list (void_type_node,
-@@ -11724,6 +11756,18 @@
-     = build_function_type_list (void_type_node,
-                               V8HI_type_node, long_integer_type_node,
-                               pvoid_type_node, NULL_TREE);
-+  tree void_ftype_v4sf_long_pvoid
-+    = build_function_type_list (void_type_node,
-+                              V4SF_type_node, long_integer_type_node,
-+                              pvoid_type_node, NULL_TREE);
-+  tree void_ftype_v2df_long_pvoid
-+    = build_function_type_list (void_type_node,
-+                              V2DF_type_node, long_integer_type_node,
-+                              pvoid_type_node, NULL_TREE);
-+  tree void_ftype_v2di_long_pvoid
-+    = build_function_type_list (void_type_node,
-+                              V2DI_type_node, long_integer_type_node,
-+                              pvoid_type_node, NULL_TREE);
-   tree int_ftype_int_v8hi_v8hi
-     = build_function_type_list (integer_type_node,
-                               integer_type_node, V8HI_type_node,
-@@ -11755,22 +11799,6 @@
-                               pcvoid_type_node, integer_type_node,
-                               integer_type_node, NULL_TREE);
--  def_builtin (MASK_ALTIVEC, "__builtin_altivec_ld_internal_4sf", v4sf_ftype_pcfloat,
--             ALTIVEC_BUILTIN_LD_INTERNAL_4sf);
--  def_builtin (MASK_ALTIVEC, "__builtin_altivec_st_internal_4sf", void_ftype_pfloat_v4sf,
--             ALTIVEC_BUILTIN_ST_INTERNAL_4sf);
--  def_builtin (MASK_ALTIVEC, "__builtin_altivec_ld_internal_4si", v4si_ftype_pcint,
--             ALTIVEC_BUILTIN_LD_INTERNAL_4si);
--  def_builtin (MASK_ALTIVEC, "__builtin_altivec_st_internal_4si", void_ftype_pint_v4si,
--             ALTIVEC_BUILTIN_ST_INTERNAL_4si);
--  def_builtin (MASK_ALTIVEC, "__builtin_altivec_ld_internal_8hi", v8hi_ftype_pcshort,
--             ALTIVEC_BUILTIN_LD_INTERNAL_8hi);
--  def_builtin (MASK_ALTIVEC, "__builtin_altivec_st_internal_8hi", void_ftype_pshort_v8hi,
--             ALTIVEC_BUILTIN_ST_INTERNAL_8hi);
--  def_builtin (MASK_ALTIVEC, "__builtin_altivec_ld_internal_16qi", v16qi_ftype_pcchar,
--             ALTIVEC_BUILTIN_LD_INTERNAL_16qi);
--  def_builtin (MASK_ALTIVEC, "__builtin_altivec_st_internal_16qi", void_ftype_pchar_v16qi,
--             ALTIVEC_BUILTIN_ST_INTERNAL_16qi);
-   def_builtin (MASK_ALTIVEC, "__builtin_altivec_mtvscr", void_ftype_v4si, ALTIVEC_BUILTIN_MTVSCR);
-   def_builtin (MASK_ALTIVEC, "__builtin_altivec_mfvscr", v8hi_ftype_void, ALTIVEC_BUILTIN_MFVSCR);
-   def_builtin (MASK_ALTIVEC, "__builtin_altivec_dssall", void_ftype_void, ALTIVEC_BUILTIN_DSSALL);
-@@ -11802,6 +11830,35 @@
-   def_builtin (MASK_ALTIVEC, "__builtin_vec_stvebx", void_ftype_opaque_long_pvoid, ALTIVEC_BUILTIN_VEC_STVEBX);
-   def_builtin (MASK_ALTIVEC, "__builtin_vec_stvehx", void_ftype_opaque_long_pvoid, ALTIVEC_BUILTIN_VEC_STVEHX);
-+  def_builtin (MASK_VSX, "__builtin_vsx_lxvd2x_v2df", v2df_ftype_long_pcvoid,
-+             VSX_BUILTIN_LXVD2X_V2DF);
-+  def_builtin (MASK_VSX, "__builtin_vsx_lxvd2x_v2di", v2di_ftype_long_pcvoid,
-+             VSX_BUILTIN_LXVD2X_V2DI);
-+  def_builtin (MASK_VSX, "__builtin_vsx_lxvw4x_v4sf", v4sf_ftype_long_pcvoid,
-+             VSX_BUILTIN_LXVW4X_V4SF);
-+  def_builtin (MASK_VSX, "__builtin_vsx_lxvw4x_v4si", v4si_ftype_long_pcvoid,
-+             VSX_BUILTIN_LXVW4X_V4SI);
-+  def_builtin (MASK_VSX, "__builtin_vsx_lxvw4x_v8hi",
-+             v8hi_ftype_long_pcvoid, VSX_BUILTIN_LXVW4X_V8HI);
-+  def_builtin (MASK_VSX, "__builtin_vsx_lxvw4x_v16qi",
-+             v16qi_ftype_long_pcvoid, VSX_BUILTIN_LXVW4X_V16QI);
-+  def_builtin (MASK_VSX, "__builtin_vsx_stxvd2x_v2df",
-+             void_ftype_v2df_long_pvoid, VSX_BUILTIN_STXVD2X_V2DF);
-+  def_builtin (MASK_VSX, "__builtin_vsx_stxvd2x_v2di",
-+             void_ftype_v2di_long_pvoid, VSX_BUILTIN_STXVD2X_V2DI);
-+  def_builtin (MASK_VSX, "__builtin_vsx_stxvw4x_v4sf",
-+             void_ftype_v4sf_long_pvoid, VSX_BUILTIN_STXVW4X_V4SF);
-+  def_builtin (MASK_VSX, "__builtin_vsx_stxvw4x_v4si",
-+             void_ftype_v4si_long_pvoid, VSX_BUILTIN_STXVW4X_V4SI);
-+  def_builtin (MASK_VSX, "__builtin_vsx_stxvw4x_v8hi",
-+             void_ftype_v8hi_long_pvoid, VSX_BUILTIN_STXVW4X_V8HI);
-+  def_builtin (MASK_VSX, "__builtin_vsx_stxvw4x_v16qi",
-+             void_ftype_v16qi_long_pvoid, VSX_BUILTIN_STXVW4X_V16QI);
-+  def_builtin (MASK_VSX, "__builtin_vec_vsx_ld", opaque_ftype_long_pcvoid,
-+             VSX_BUILTIN_VEC_LD);
-+  def_builtin (MASK_VSX, "__builtin_vec_vsx_st", void_ftype_opaque_long_pvoid,
-+             VSX_BUILTIN_VEC_ST);
-+
-   if (rs6000_cpu == PROCESSOR_CELL)
-     {
-       def_builtin (MASK_ALTIVEC, "__builtin_altivec_lvlx",  v16qi_ftype_long_pcvoid, ALTIVEC_BUILTIN_LVLX);
-@@ -25811,4 +25868,29 @@
-     }
+ // { dg-error "instantiated from" "" { target *-*-* } 28 }
+-// { dg-error "no type" "" { target *-*-* } 112 }
++// { dg-error "no type" "" { target *-*-* } 113 }
+Index: libstdc++-v3/testsuite/ext/type_traits/add_unsigned_integer_neg.cc
+===================================================================
+--- libstdc++-v3/testsuite/ext/type_traits/add_unsigned_integer_neg.cc (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ libstdc++-v3/testsuite/ext/type_traits/add_unsigned_integer_neg.cc (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -36,4 +36,4 @@
  }
  
-+/* Given a memory reference, if it is not in the form for altivec memory
-+   reference instructions (i.e. reg or reg+reg addressing with AND of -16),
-+   convert to the altivec format.  */
+ // { dg-error "invalid use of incomplete" "" { target *-*-* } 28 } 
+-// { dg-error "declaration of" "" { target *-*-* } 63 }
++// { dg-error "declaration of" "" { target *-*-* } 64 }
+Index: libstdc++-v3/testsuite/tr1/8_c_compatibility/complex/51083.cc
+===================================================================
+--- libstdc++-v3/testsuite/tr1/8_c_compatibility/complex/51083.cc      (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ libstdc++-v3/testsuite/tr1/8_c_compatibility/complex/51083.cc      (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,54 @@
++// { dg-options "-std=gnu++0x" }
++//
++// Copyright (C) 2011 Free Software Foundation, Inc.
++//
++// This file is part of the GNU ISO C++ Library.  This library is free
++// software; you can redistribute it and/or modify it under the
++// terms of the GNU General Public License as published by the
++// Free Software Foundation; either version 3, or (at your option)
++// any later version.
++//
++// This library is distributed in the hope that it will be useful,
++// but WITHOUT ANY WARRANTY; without even the implied warranty of
++// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
++// GNU General Public License for more details.
++//
++// You should have received a copy of the GNU General Public License along
++// with this library; see the file COPYING3.  If not see
++// <http://www.gnu.org/licenses/>.
++
++#include <tr1/complex>
++
++namespace a
++{
++  template<typename> class Mat { };
 +
-+rtx
-+rs6000_address_for_altivec (rtx x)
++  template<typename T> struct Mat2 : Mat<T> { };
++
++  template<typename T> int arg(Mat<T>) { return 1; }
++  template<typename T> int conj(Mat<T>) { return 1; }
++  template<typename T> int imag(Mat<T>) { return 1; }
++  template<typename T> int norm(Mat<T>) { return 1; }
++  template<typename T> int proj(Mat<T>) { return 1; }
++  template<typename T> int real(Mat<T>) { return 1; }
++
++  template<typename T, typename U> int pow(Mat<T>, U) { return 1; }
++  template<typename T, typename U> int pow(T, Mat<U>) { return 1; }
++}
++
++int main()
 +{
-+  gcc_assert (MEM_P (x));
-+  if (!altivec_indexed_or_indirect_operand (x, GET_MODE (x)))
-+    {
-+      rtx addr = XEXP (x, 0);
-+      int strict_p = (reload_in_progress || reload_completed);
++  int __attribute__((unused)) i;
++
++  using namespace std::tr1;
++
++  a::Mat2< std::complex<double> > c;
++  i = arg(c);
++  i = conj(c);
++  i = imag(c);
++  i = norm(c);
++  i = proj(c);
++  i = real(c);
++  i = pow(std::complex<float>(), c);
++  i = pow(c, std::complex<float>());
++}
+Index: libstdc++-v3/testsuite/tr1/8_c_compatibility/complex/50880.cc
+===================================================================
+--- libstdc++-v3/testsuite/tr1/8_c_compatibility/complex/50880.cc      (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ libstdc++-v3/testsuite/tr1/8_c_compatibility/complex/50880.cc      (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,51 @@
++// Copyright (C) 2011 Free Software Foundation, Inc.
++//
++// This file is part of the GNU ISO C++ Library.  This library is free
++// software; you can redistribute it and/or modify it under the
++// terms of the GNU General Public License as published by the
++// Free Software Foundation; either version 3, or (at your option)
++// any later version.
++//
++// This library is distributed in the hope that it will be useful,
++// but WITHOUT ANY WARRANTY; without even the implied warranty of
++// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
++// GNU General Public License for more details.
++//
++// You should have received a copy of the GNU General Public License along
++// with this library; see the file COPYING3.  If not see
++// <http://www.gnu.org/licenses/>.
++
++#include <tr1/complex>
++#include <testsuite_hooks.h> 
++
++template<typename T>
++  void test01_do()
++  {
++    bool test __attribute__((unused)) = true;
 +
-+      if (!legitimate_indexed_address_p (addr, strict_p)
-+        && !legitimate_indirect_address_p (addr, strict_p))
-+      addr = copy_to_mode_reg (Pmode, addr);
++    const std::complex<T> ca(T(-2), T(2));
++    const std::complex<T> cb(T(-2), T(0));
++    const std::complex<T> cc(T(-2), T(-2));
 +
-+      addr = gen_rtx_AND (Pmode, addr, GEN_INT (-16));
-+      x = change_address (x, GET_MODE (x), addr);
-+    }
++    std::complex<T> cra = std::tr1::acosh(ca);
++    std::complex<T> crb = std::tr1::acosh(cb);
++    std::complex<T> crc = std::tr1::acosh(cc);
 +
-+  return x;
++    VERIFY( cra.real() > T(0) );
++    VERIFY( crb.real() > T(0) );
++    VERIFY( crc.real() > T(0) );
++  }
++
++// libstdc++/50880
++void test01()
++{
++  test01_do<float>();
++  test01_do<double>();
++  test01_do<long double>();
++}
++
++int main()
++{
++  test01();
++  return 0;
++}
+Index: libstdc++-v3/testsuite/tr1/8_c_compatibility/cmath/51083.cc
+===================================================================
+--- libstdc++-v3/testsuite/tr1/8_c_compatibility/cmath/51083.cc        (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ libstdc++-v3/testsuite/tr1/8_c_compatibility/cmath/51083.cc        (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,62 @@
++// { dg-options "-std=gnu++0x" }
++//
++// Copyright (C) 2011 Free Software Foundation, Inc.
++//
++// This file is part of the GNU ISO C++ Library.  This library is free
++// software; you can redistribute it and/or modify it under the
++// terms of the GNU General Public License as published by the
++// Free Software Foundation; either version 3, or (at your option)
++// any later version.
++//
++// This library is distributed in the hope that it will be useful,
++// but WITHOUT ANY WARRANTY; without even the implied warranty of
++// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
++// GNU General Public License for more details.
++//
++// You should have received a copy of the GNU General Public License along
++// with this library; see the file COPYING3.  If not see
++// <http://www.gnu.org/licenses/>.
++
++#include <tr1/cmath>
++
++namespace a
++{
++  template<typename> class Mat { };
++
++  template<typename T> struct Mat2 : Mat<T> { };
++
++  template<typename T>
++    int fdim(Mat<T>) { return 1; }
++
++  template<typename T, typename U>
++    int floor(Mat<T>, U) { return 1; }
++  template<typename T, typename U>
++    int floor(T, Mat<U>) { return 1; }
++
++  template<typename T, typename U, typename V>
++    int fma(Mat<T>, U, V) { return 1; }
++  template<typename T, typename U, typename V>
++    int fma(T, Mat<U>, V) { return 1; }
++  template<typename T, typename U, typename V>
++    int fma(T, U, Mat<V>) { return 1; }
++}
++
++int main()
++{
++  int __attribute__((unused)) i;
++
++  using namespace std::tr1;
++
++  a::Mat2<double> c;
++  i = fdim(c);
++  i = floor(c, 0.);
++  i = floor(0., c);
++  i = floor(c, 1);
++  i = floor(1, c);
++  i = fma(c, 0., 1.);
++  i = fma(0., c, 1.);
++  i = fma(0., 1., c);
++  i = fma(c, 0., 1);
++  i = fma(0., c, 1);
++  i = fma(0., 1, c);
++}
+Index: libstdc++-v3/testsuite/23_containers/unordered_map/erase/51142.cc
+===================================================================
+--- libstdc++-v3/testsuite/23_containers/unordered_map/erase/51142.cc  (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ libstdc++-v3/testsuite/23_containers/unordered_map/erase/51142.cc  (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,38 @@
++// Copyright (C) 2011 Free Software Foundation, Inc.
++//
++// This file is part of the GNU ISO C++ Library.  This library is free
++// software; you can redistribute it and/or modify it under the
++// terms of the GNU General Public License as published by the
++// Free Software Foundation; either version 3, or (at your option)
++// any later version.
++//
++// This library is distributed in the hope that it will be useful,
++// but WITHOUT ANY WARRANTY; without even the implied warranty of
++// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
++// GNU General Public License for more details.
++//
++// You should have received a copy of the GNU General Public License along
++// with this library; see the file COPYING3.  If not see
++// <http://www.gnu.org/licenses/>.
++//
++
++// { dg-do compile }
++// { dg-options "-std=gnu++0x" }
++
++#include <unordered_map>
++
++struct X
++{
++  template<typename T>
++  X(T&) {}
++};
++
++bool operator==(const X&, const X&) { return false; }
++
++// LWG 2059.
++void erasor(std::unordered_map<X, int>& s, X x)
++{
++  std::unordered_map<X, int>::iterator it = s.find(x);
++  if (it != s.end())
++    s.erase(it);
++}
+Index: libstdc++-v3/testsuite/23_containers/multimap/modifiers/erase/51142.cc
+===================================================================
+--- libstdc++-v3/testsuite/23_containers/multimap/modifiers/erase/51142.cc     (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ libstdc++-v3/testsuite/23_containers/multimap/modifiers/erase/51142.cc     (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,38 @@
++// Copyright (C) 2011 Free Software Foundation, Inc.
++//
++// This file is part of the GNU ISO C++ Library.  This library is free
++// software; you can redistribute it and/or modify it under the
++// terms of the GNU General Public License as published by the
++// Free Software Foundation; either version 3, or (at your option)
++// any later version.
++//
++// This library is distributed in the hope that it will be useful,
++// but WITHOUT ANY WARRANTY; without even the implied warranty of
++// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
++// GNU General Public License for more details.
++//
++// You should have received a copy of the GNU General Public License along
++// with this library; see the file COPYING3.  If not see
++// <http://www.gnu.org/licenses/>.
++//
++
++// { dg-do compile }
++// { dg-options "-std=gnu++0x" }
++
++#include <map>
++
++struct X
++{
++  template<typename T>
++  X(T&) {}
++};
++
++bool operator<(const X&, const X&) { return false; }
++
++// LWG 2059.
++void erasor(std::multimap<X, int>& s, X x)
++{
++  std::multimap<X, int>::iterator it = s.find(x);
++  if (it != s.end())
++    s.erase(it);
++}
+Index: libstdc++-v3/testsuite/23_containers/set/modifiers/erase/51142.cc
+===================================================================
+--- libstdc++-v3/testsuite/23_containers/set/modifiers/erase/51142.cc  (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ libstdc++-v3/testsuite/23_containers/set/modifiers/erase/51142.cc  (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,38 @@
++// Copyright (C) 2011 Free Software Foundation, Inc.
++//
++// This file is part of the GNU ISO C++ Library.  This library is free
++// software; you can redistribute it and/or modify it under the
++// terms of the GNU General Public License as published by the
++// Free Software Foundation; either version 3, or (at your option)
++// any later version.
++//
++// This library is distributed in the hope that it will be useful,
++// but WITHOUT ANY WARRANTY; without even the implied warranty of
++// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
++// GNU General Public License for more details.
++//
++// You should have received a copy of the GNU General Public License along
++// with this library; see the file COPYING3.  If not see
++// <http://www.gnu.org/licenses/>.
++//
++
++// { dg-do compile }
++// { dg-options "-std=gnu++0x" }
++
++#include <set>
++
++struct X
++{
++  template<typename T>
++  X(T&) {}
++};
++
++bool operator<(const X&, const X&) { return false; }
++
++// LWG 2059.
++void erasor(std::set<X>& s, X x)
++{
++  std::set<X>::iterator it = s.find(x);
++  if (it != s.end())
++    s.erase(it);
++}
+Index: libstdc++-v3/testsuite/23_containers/unordered_multimap/erase/51142.cc
+===================================================================
+--- libstdc++-v3/testsuite/23_containers/unordered_multimap/erase/51142.cc     (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ libstdc++-v3/testsuite/23_containers/unordered_multimap/erase/51142.cc     (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,38 @@
++// Copyright (C) 2011 Free Software Foundation, Inc.
++//
++// This file is part of the GNU ISO C++ Library.  This library is free
++// software; you can redistribute it and/or modify it under the
++// terms of the GNU General Public License as published by the
++// Free Software Foundation; either version 3, or (at your option)
++// any later version.
++//
++// This library is distributed in the hope that it will be useful,
++// but WITHOUT ANY WARRANTY; without even the implied warranty of
++// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
++// GNU General Public License for more details.
++//
++// You should have received a copy of the GNU General Public License along
++// with this library; see the file COPYING3.  If not see
++// <http://www.gnu.org/licenses/>.
++//
++
++// { dg-do compile }
++// { dg-options "-std=gnu++0x" }
++
++#include <unordered_map>
++
++struct X
++{
++  template<typename T>
++  X(T&) {}
++};
++
++bool operator==(const X&, const X&) { return false; }
++
++// LWG 2059.
++void erasor(std::unordered_multimap<X, int>& s, X x)
++{
++  std::unordered_multimap<X, int>::iterator it = s.find(x);
++  if (it != s.end())
++    s.erase(it);
++}
+Index: libstdc++-v3/testsuite/23_containers/unordered_set/erase/51142.cc
+===================================================================
+--- libstdc++-v3/testsuite/23_containers/unordered_set/erase/51142.cc  (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ libstdc++-v3/testsuite/23_containers/unordered_set/erase/51142.cc  (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,38 @@
++// Copyright (C) 2011 Free Software Foundation, Inc.
++//
++// This file is part of the GNU ISO C++ Library.  This library is free
++// software; you can redistribute it and/or modify it under the
++// terms of the GNU General Public License as published by the
++// Free Software Foundation; either version 3, or (at your option)
++// any later version.
++//
++// This library is distributed in the hope that it will be useful,
++// but WITHOUT ANY WARRANTY; without even the implied warranty of
++// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
++// GNU General Public License for more details.
++//
++// You should have received a copy of the GNU General Public License along
++// with this library; see the file COPYING3.  If not see
++// <http://www.gnu.org/licenses/>.
++//
++
++// { dg-do compile }
++// { dg-options "-std=gnu++0x" }
++
++#include <unordered_set>
++
++struct X
++{
++  template<typename T>
++  X(T&) {}
++};
++
++bool operator==(const X&, const X&) { return false; }
++
++// LWG 2059.
++void erasor(std::unordered_set<X>& s, X x)
++{
++  std::unordered_set<X>::iterator it = s.find(x);
++  if (it != s.end())
++    s.erase(it);
++}
+Index: libstdc++-v3/testsuite/23_containers/multiset/modifiers/erase/51142.cc
+===================================================================
+--- libstdc++-v3/testsuite/23_containers/multiset/modifiers/erase/51142.cc     (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ libstdc++-v3/testsuite/23_containers/multiset/modifiers/erase/51142.cc     (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,38 @@
++// Copyright (C) 2011 Free Software Foundation, Inc.
++//
++// This file is part of the GNU ISO C++ Library.  This library is free
++// software; you can redistribute it and/or modify it under the
++// terms of the GNU General Public License as published by the
++// Free Software Foundation; either version 3, or (at your option)
++// any later version.
++//
++// This library is distributed in the hope that it will be useful,
++// but WITHOUT ANY WARRANTY; without even the implied warranty of
++// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
++// GNU General Public License for more details.
++//
++// You should have received a copy of the GNU General Public License along
++// with this library; see the file COPYING3.  If not see
++// <http://www.gnu.org/licenses/>.
++//
++
++// { dg-do compile }
++// { dg-options "-std=gnu++0x" }
++
++#include <set>
++
++struct X
++{
++  template<typename T>
++  X(T&) {}
++};
++
++bool operator<(const X&, const X&) { return false; }
++
++// LWG 2059.
++void erasor(std::multiset<X>& s, X x)
++{
++  std::multiset<X>::iterator it = s.find(x);
++  if (it != s.end())
++    s.erase(it);
++}
+Index: libstdc++-v3/testsuite/23_containers/unordered_multiset/erase/51142.cc
+===================================================================
+--- libstdc++-v3/testsuite/23_containers/unordered_multiset/erase/51142.cc     (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ libstdc++-v3/testsuite/23_containers/unordered_multiset/erase/51142.cc     (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,38 @@
++// Copyright (C) 2011 Free Software Foundation, Inc.
++//
++// This file is part of the GNU ISO C++ Library.  This library is free
++// software; you can redistribute it and/or modify it under the
++// terms of the GNU General Public License as published by the
++// Free Software Foundation; either version 3, or (at your option)
++// any later version.
++//
++// This library is distributed in the hope that it will be useful,
++// but WITHOUT ANY WARRANTY; without even the implied warranty of
++// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
++// GNU General Public License for more details.
++//
++// You should have received a copy of the GNU General Public License along
++// with this library; see the file COPYING3.  If not see
++// <http://www.gnu.org/licenses/>.
++//
++
++// { dg-do compile }
++// { dg-options "-std=gnu++0x" }
++
++#include <unordered_set>
++
++struct X
++{
++  template<typename T>
++  X(T&) {}
++};
++
++bool operator==(const X&, const X&) { return false; }
++
++// LWG 2059.
++void erasor(std::unordered_multiset<X>& s, X x)
++{
++  std::unordered_multiset<X>::iterator it = s.find(x);
++  if (it != s.end())
++    s.erase(it);
 +}
+Index: libstdc++-v3/testsuite/23_containers/map/modifiers/erase/51142.cc
+===================================================================
+--- libstdc++-v3/testsuite/23_containers/map/modifiers/erase/51142.cc  (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ libstdc++-v3/testsuite/23_containers/map/modifiers/erase/51142.cc  (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,38 @@
++// Copyright (C) 2011 Free Software Foundation, Inc.
++//
++// This file is part of the GNU ISO C++ Library.  This library is free
++// software; you can redistribute it and/or modify it under the
++// terms of the GNU General Public License as published by the
++// Free Software Foundation; either version 3, or (at your option)
++// any later version.
++//
++// This library is distributed in the hope that it will be useful,
++// but WITHOUT ANY WARRANTY; without even the implied warranty of
++// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
++// GNU General Public License for more details.
++//
++// You should have received a copy of the GNU General Public License along
++// with this library; see the file COPYING3.  If not see
++// <http://www.gnu.org/licenses/>.
++//
 +
++// { dg-do compile }
++// { dg-options "-std=gnu++0x" }
++
++#include <map>
++
++struct X
++{
++  template<typename T>
++  X(T&) {}
++};
++
++bool operator<(const X&, const X&) { return false; }
 +
- #include "gt-rs6000.h"
-Index: gcc/config/rs6000/vsx.md
++// LWG 2059.
++void erasor(std::map<X, int>& s, X x)
++{
++  std::map<X, int>::iterator it = s.find(x);
++  if (it != s.end())
++    s.erase(it);
++}
+Index: libstdc++-v3/testsuite/20_util/shared_ptr/cons/43820_neg.cc
 ===================================================================
---- gcc/config/rs6000/vsx.md   (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/config/rs6000/vsx.md   (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -1,5 +1,5 @@
- ;; VSX patterns.
--;; Copyright (C) 2009
-+;; Copyright (C) 2009, 2010, 2011
- ;; Free Software Foundation, Inc.
- ;; Contributed by Michael Meissner <meissner@linux.vnet.ibm.com>
+--- libstdc++-v3/testsuite/20_util/shared_ptr/cons/43820_neg.cc        (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ libstdc++-v3/testsuite/20_util/shared_ptr/cons/43820_neg.cc        (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -35,6 +35,6 @@
+   // { dg-error "incomplete" "" { target *-*-* } 766 }
  
-@@ -309,6 +309,19 @@
- }
-   [(set_attr "type" "vecstore,vecload,vecsimple,*,*,*,vecsimple,*,vecstore,vecload")])
+   std::shared_ptr<X> p9(ap());  // { dg-error "here" }
+-  // { dg-error "incomplete" "" { target *-*-* } 858 }
++  // { dg-error "incomplete" "" { target *-*-* } 859 }
  
-+;; Explicit  load/store expanders for the builtin functions
-+(define_expand "vsx_load_<mode>"
-+  [(set (match_operand:VSX_M 0 "vsx_register_operand" "")
-+      (match_operand:VSX_M 1 "memory_operand" ""))]
-+  "VECTOR_MEM_VSX_P (<MODE>mode)"
-+  "")
+ }
+Index: libstdc++-v3/testsuite/20_util/allocator/51626.cc
+===================================================================
+--- libstdc++-v3/testsuite/20_util/allocator/51626.cc  (.../tags/gcc_4_6_2_release)    (wersja 0)
++++ libstdc++-v3/testsuite/20_util/allocator/51626.cc  (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -0,0 +1,66 @@
++// Copyright (C) 2011 Free Software Foundation, Inc.
++//
++// This file is part of the GNU ISO C++ Library.  This library is free
++// software; you can redistribute it and/or modify it under the
++// terms of the GNU General Public License as published by the
++// Free Software Foundation; either version 3, or (at your option)
++// any later version.
++
++// This library is distributed in the hope that it will be useful,
++// but WITHOUT ANY WARRANTY; without even the implied warranty of
++// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
++// GNU General Public License for more details.
++
++// You should have received a copy of the GNU General Public License along
++// with this library; see the file COPYING3.  If not see
++// <http://www.gnu.org/licenses/>.
++
++// { dg-options "-std=gnu++0x" }
++
++#include <memory>
++#include <vector>
++#include <testsuite_hooks.h>
++
++int count = 0;
++
++template <class T>
++  struct allocator98 : std::allocator<T>
++  {
++    template <class U> struct rebind { typedef allocator98<U> other; };
 +
-+(define_expand "vsx_store_<mode>"
-+  [(set (match_operand:VEC_M 0 "memory_operand" "")
-+      (match_operand:VEC_M 1 "vsx_register_operand" ""))]
-+  "VECTOR_MEM_VSX_P (<MODE>mode)"
-+  "")
++    allocator98() { }
 +
\f
- ;; VSX scalar and vector floating point arithmetic instructions
- (define_insn "*vsx_add<mode>3"
-@@ -866,33 +879,34 @@
- ;; the fprs because we don't want to add the altivec registers to movdi/movsi.
- ;; For the unsigned tests, there isn't a generic double -> unsigned conversion
- ;; in rs6000.md so don't test VECTOR_UNIT_VSX_P, just test against VSX.
-+;; Don't use vsx_register_operand here, use gpc_reg_operand to match rs6000.md.
- (define_insn "vsx_float<VSi><mode>2"
--  [(set (match_operand:VSX_B 0 "vsx_register_operand" "=<VSr>,?wa")
--      (float:VSX_B (match_operand:<VSI> 1 "vsx_register_operand" "<VSr2>,<VSr3>")))]
-+  [(set (match_operand:VSX_B 0 "gpc_reg_operand" "=<VSr>,?wa")
-+      (float:VSX_B (match_operand:<VSI> 1 "gpc_reg_operand" "<VSr2>,<VSr3>")))]
-   "VECTOR_UNIT_VSX_P (<MODE>mode)"
-   "x<VSv>cvsx<VSc><VSs> %x0,%x1"
-   [(set_attr "type" "<VStype_simple>")
-    (set_attr "fp_type" "<VSfptype_simple>")])
- (define_insn "vsx_floatuns<VSi><mode>2"
--  [(set (match_operand:VSX_B 0 "vsx_register_operand" "=<VSr>,?wa")
--      (unsigned_float:VSX_B (match_operand:<VSI> 1 "vsx_register_operand" "<VSr2>,<VSr3>")))]
-+  [(set (match_operand:VSX_B 0 "gpc_reg_operand" "=<VSr>,?wa")
-+      (unsigned_float:VSX_B (match_operand:<VSI> 1 "gpc_reg_operand" "<VSr2>,<VSr3>")))]
-   "VECTOR_UNIT_VSX_P (<MODE>mode)"
-   "x<VSv>cvux<VSc><VSs> %x0,%x1"
-   [(set_attr "type" "<VStype_simple>")
-    (set_attr "fp_type" "<VSfptype_simple>")])
- (define_insn "vsx_fix_trunc<mode><VSi>2"
--  [(set (match_operand:<VSI> 0 "vsx_register_operand" "=<VSr2>,?<VSr3>")
--      (fix:<VSI> (match_operand:VSX_B 1 "vsx_register_operand" "<VSr>,wa")))]
-+  [(set (match_operand:<VSI> 0 "gpc_reg_operand" "=<VSr2>,?<VSr3>")
-+      (fix:<VSI> (match_operand:VSX_B 1 "gpc_reg_operand" "<VSr>,wa")))]
-   "VECTOR_UNIT_VSX_P (<MODE>mode)"
-   "x<VSv>cv<VSs>sx<VSc>s %x0,%x1"
-   [(set_attr "type" "<VStype_simple>")
-    (set_attr "fp_type" "<VSfptype_simple>")])
- (define_insn "vsx_fixuns_trunc<mode><VSi>2"
--  [(set (match_operand:<VSI> 0 "vsx_register_operand" "=<VSr2>,?<VSr3>")
--      (unsigned_fix:<VSI> (match_operand:VSX_B 1 "vsx_register_operand" "<VSr>,wa")))]
-+  [(set (match_operand:<VSI> 0 "gpc_reg_operand" "=<VSr2>,?<VSr3>")
-+      (unsigned_fix:<VSI> (match_operand:VSX_B 1 "gpc_reg_operand" "<VSr>,wa")))]
-   "VECTOR_UNIT_VSX_P (<MODE>mode)"
-   "x<VSv>cv<VSs>ux<VSc>s %x0,%x1"
-   [(set_attr "type" "<VStype_simple>")
-Index: gcc/config/rs6000/rs6000.h
-===================================================================
---- gcc/config/rs6000/rs6000.h (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/config/rs6000/rs6000.h (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -1,6 +1,7 @@
- /* Definitions of target machine for GNU compiler, for IBM RS/6000.
-    Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
--   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
-+   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009,
-+   2010, 2011
-    Free Software Foundation, Inc.
-    Contributed by Richard Kenner (kenner@vlsi1.ultra.nyu.edu)
-@@ -2489,6 +2490,8 @@
-   RS6000_BTI_pixel_V8HI,         /* __vector __pixel */
-   RS6000_BTI_long,             /* long_integer_type_node */
-   RS6000_BTI_unsigned_long,      /* long_unsigned_type_node */
-+  RS6000_BTI_long_long,                /* long_long_integer_type_node */
-+  RS6000_BTI_unsigned_long_long, /* long_long_unsigned_type_node */
-   RS6000_BTI_INTQI,            /* intQI_type_node */
-   RS6000_BTI_UINTQI,           /* unsigned_intQI_type_node */
-   RS6000_BTI_INTHI,            /* intHI_type_node */
-@@ -2532,6 +2535,8 @@
- #define bool_V2DI_type_node         (rs6000_builtin_types[RS6000_BTI_bool_V2DI])
- #define pixel_V8HI_type_node        (rs6000_builtin_types[RS6000_BTI_pixel_V8HI])
-+#define long_long_integer_type_internal_node  (rs6000_builtin_types[RS6000_BTI_long_long])
-+#define long_long_unsigned_type_internal_node (rs6000_builtin_types[RS6000_BTI_unsigned_long_long])
- #define long_integer_type_internal_node  (rs6000_builtin_types[RS6000_BTI_long])
- #define long_unsigned_type_internal_node (rs6000_builtin_types[RS6000_BTI_unsigned_long])
- #define intQI_type_internal_node       (rs6000_builtin_types[RS6000_BTI_INTQI])
-Index: gcc/config/rs6000/altivec.md
-===================================================================
---- gcc/config/rs6000/altivec.md       (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/config/rs6000/altivec.md       (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -1,5 +1,5 @@
- ;; AltiVec patterns.
--;; Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
-+;; Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
- ;; Free Software Foundation, Inc.
- ;; Contributed by Aldy Hernandez (aldy@quesejoda.com)
-@@ -98,7 +98,7 @@
-    (UNSPEC_STVE         203)
-    (UNSPEC_SET_VSCR     213)
-    (UNSPEC_GET_VRSAVE   214)
--   ;; 215 deleted
-+   (UNSPEC_LVX                215)
-    (UNSPEC_REDUC_PLUS   217)
-    (UNSPEC_VECSH        219)
-    (UNSPEC_EXTEVEN_V4SI 220)
-@@ -171,6 +171,7 @@
- (define_mode_iterator VM2 [V4SI V8HI V16QI V4SF V2DF V2DI])
- (define_mode_attr VI_char [(V4SI "w") (V8HI "h") (V16QI "b")])
-+(define_mode_attr VI_scalar [(V4SI "SI") (V8HI "HI") (V16QI "QI")])
- ;; Vector move instructions.
- (define_insn "*altivec_mov<mode>"
-@@ -1751,17 +1752,19 @@
-   "lvxl %0,%y1"
-   [(set_attr "type" "vecload")])
--(define_insn "altivec_lvx"
--  [(set (match_operand:V4SI 0 "register_operand" "=v")
--      (match_operand:V4SI 1 "memory_operand" "Z"))]
-+(define_insn "altivec_lvx_<mode>"
-+  [(parallel
-+    [(set (match_operand:VM2 0 "register_operand" "=v")
-+        (match_operand:VM2 1 "memory_operand" "Z"))
-+     (unspec [(const_int 0)] UNSPEC_LVX)])]
-   "TARGET_ALTIVEC"
-   "lvx %0,%y1"
-   [(set_attr "type" "vecload")])
--(define_insn "altivec_stvx"
-+(define_insn "altivec_stvx_<mode>"
-   [(parallel
--    [(set (match_operand:V4SI 0 "memory_operand" "=Z")
--        (match_operand:V4SI 1 "register_operand" "v"))
-+    [(set (match_operand:VM2 0 "memory_operand" "=Z")
-+        (match_operand:VM2 1 "register_operand" "v"))
-      (unspec [(const_int 0)] UNSPEC_STVX)])]
-   "TARGET_ALTIVEC"
-   "stvx %1,%y0"
-@@ -1777,19 +1780,15 @@
-   [(set_attr "type" "vecstore")])
- (define_insn "altivec_stve<VI_char>x"
--  [(parallel
--    [(set (match_operand:VI 0 "memory_operand" "=Z")
--        (match_operand:VI 1 "register_operand" "v"))
--     (unspec [(const_int 0)] UNSPEC_STVE)])]
-+  [(set (match_operand:<VI_scalar> 0 "memory_operand" "=Z")
-+      (unspec:<VI_scalar> [(match_operand:VI 1 "register_operand" "v")] UNSPEC_STVE))]
-   "TARGET_ALTIVEC"
-   "stve<VI_char>x %1,%y0"
-   [(set_attr "type" "vecstore")])
- (define_insn "*altivec_stvesfx"
--  [(parallel
--    [(set (match_operand:V4SF 0 "memory_operand" "=Z")
--        (match_operand:V4SF 1 "register_operand" "v"))
--     (unspec [(const_int 0)] UNSPEC_STVE)])]
-+  [(set (match_operand:SF 0 "memory_operand" "=Z")
-+      (unspec:SF [(match_operand:V4SF 1 "register_operand" "v")] UNSPEC_STVE))]
-   "TARGET_ALTIVEC"
-   "stvewx %1,%y0"
-   [(set_attr "type" "vecstore")])
-Index: gcc/config/rs6000/altivec.h
-===================================================================
---- gcc/config/rs6000/altivec.h        (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/config/rs6000/altivec.h        (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -1,5 +1,6 @@
- /* PowerPC AltiVec include file.
--   Copyright (C) 2002, 2003, 2004, 2005, 2008, 2009 Free Software Foundation, Inc.
-+   Copyright (C) 2002, 2003, 2004, 2005, 2008, 2009, 2010, 2011
-+   Free Software Foundation, Inc.
-    Contributed by Aldy Hernandez (aldyh@redhat.com).
-    Rewritten by Paolo Bonzini (bonzini@gnu.org).
-@@ -315,6 +316,8 @@
- #define vec_nearbyint __builtin_vec_nearbyint
- #define vec_rint __builtin_vec_rint
- #define vec_sqrt __builtin_vec_sqrt
-+#define vec_vsx_ld __builtin_vec_vsx_ld
-+#define vec_vsx_st __builtin_vec_vsx_st
- #endif
- /* Predicates.
-Index: gcc/config/arm/arm.c
-===================================================================
---- gcc/config/arm/arm.c       (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/config/arm/arm.c       (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -1114,6 +1114,7 @@
-                            va_list_type);
-   DECL_ARTIFICIAL (va_list_name) = 1;
-   TYPE_NAME (va_list_type) = va_list_name;
-+  TYPE_STUB_DECL (va_list_type) = va_list_name;
-   /* Create the __ap field.  */
-   ap_field = build_decl (BUILTINS_LOCATION,
-                        FIELD_DECL, 
-Index: gcc/config/arm/arm.md
-===================================================================
---- gcc/config/arm/arm.md      (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/config/arm/arm.md      (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -11273,34 +11273,29 @@
- (define_expand "bswapsi2"
-   [(set (match_operand:SI 0 "s_register_operand" "=r")
-       (bswap:SI (match_operand:SI 1 "s_register_operand" "r")))]
--"TARGET_EITHER"
-+"TARGET_EITHER && (arm_arch6 || !optimize_size)"
- "
--  if (!arm_arch6)
--    {
--      if (!optimize_size)
--      {
--        rtx op2 = gen_reg_rtx (SImode);
--        rtx op3 = gen_reg_rtx (SImode);
-+    if (!arm_arch6)
++    template <class U> allocator98(const allocator98<U>&) { };
++
++    void construct(T* p, const T& val)
++    {
++      ++count;
++      std::allocator<T>::construct(p, val);
++    }
++  };
++
++template <class T>
++  struct allocator11 : std::allocator<T>
++  {
++    template <class U> struct rebind { typedef allocator11<U> other; };
++
++    allocator11() { }
++
++    template <class U> allocator11(const allocator11<U>&) { };
++
++    template<typename... Args>
++      void construct(T* p, Args&&... args)
 +      {
-+      rtx op2 = gen_reg_rtx (SImode);
-+      rtx op3 = gen_reg_rtx (SImode);
--        if (TARGET_THUMB)
--          {
--            rtx op4 = gen_reg_rtx (SImode);
--            rtx op5 = gen_reg_rtx (SImode);
-+      if (TARGET_THUMB)
-+        {
-+          rtx op4 = gen_reg_rtx (SImode);
-+          rtx op5 = gen_reg_rtx (SImode);
--            emit_insn (gen_thumb_legacy_rev (operands[0], operands[1],
--                                             op2, op3, op4, op5));
--          }
--        else
--          {
--            emit_insn (gen_arm_legacy_rev (operands[0], operands[1],
--                                           op2, op3));
--          }
-+          emit_insn (gen_thumb_legacy_rev (operands[0], operands[1],
-+                                           op2, op3, op4, op5));
-+        }
-+      else
-+        {
-+          emit_insn (gen_arm_legacy_rev (operands[0], operands[1],
-+                                         op2, op3));
-+        }
--        DONE;
--      }
--      else
--      FAIL;
--    }
-+      DONE;
++      ++count;
++      std::allocator<T>::construct(p, std::forward<Args>(args)...);
 +      }
-   "
- )
-Index: gcc/config/pa/pa64-hpux.h
-===================================================================
---- gcc/config/pa/pa64-hpux.h  (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/config/pa/pa64-hpux.h  (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -1,6 +1,6 @@
- /* Definitions of target machine for GNU compiler, for HPs running
-    HPUX using the 64bit runtime model.
--   Copyright (C) 1999, 2000, 2001, 2002, 2004, 2005, 2007, 2008
-+   Copyright (C) 1999, 2000, 2001, 2002, 2004, 2005, 2007, 2008, 2011
-    Free Software Foundation, Inc.
- This file is part of GCC.
-@@ -59,36 +59,42 @@
- #if ((TARGET_DEFAULT | TARGET_CPU_DEFAULT) & MASK_GNU_LD)
- #define LIB_SPEC \
-   "%{!shared:\
--     %{!p:%{!pg:%{static|mt|pthread:%{fopenmp:%{static:-a shared} -lrt\
--                %{static:-a archive}} -lpthread} -lc\
--          %{static:%{!nolibdld:-a shared -ldld -a archive -lc}}}}\
-+     %{!p:%{!pg:%{fopenmp:%{static:-a shared} -lrt %{static:-a archive}}\
-+          %{mt|pthread:-lpthread} -lc\
-+          %{static:%{!nolibdld:-a shared -ldld -a archive -lc}\
-+              %{!mt:%{!pthread:-a shared -lc -a archive}}}}}\
-      %{p:%{!pg:%{static:%{!mhp-ld:-a shared}%{mhp-ld:-a archive_shared}}\
-          -lprof %{static:-a archive}\
--         %{static|mt|pthread:%{fopenmp:%{static:-a shared} -lrt\
--           %{static:-a archive}} -lpthread} -lc\
--         %{static:%{!nolibdld:-a shared -ldld -a archive -lc}}}}\
-+         %{fopenmp:%{static:-a shared} -lrt %{static:-a archive}}\
-+         %{mt|pthread:-lpthread} -lc\
-+         %{static:%{!nolibdld:-a shared -ldld -a archive -lc}\
-+              %{!mt:%{!pthread:-a shared -lc -a archive}}}}}\
-      %{pg:%{static:%{!mhp-ld:-a shared}%{mhp-ld:-a archive_shared}}\
-        -lgprof %{static:-a archive}\
--       %{static|mt|pthread:%{fopenmp:%{static:-a shared} -lrt\
--       %{static:-a archive}} -lpthread} -lc\
--       %{static:%{!nolibdld:-a shared -ldld -a archive -lc}}}}\
-+       %{fopenmp:%{static:-a shared} -lrt %{static:-a archive}}\
-+       %{mt|pthread:-lpthread} -lc\
-+       %{static:%{!nolibdld:-a shared -ldld -a archive -lc}\
-+              %{!mt:%{!pthread:-a shared -lc -a archive}}}}}\
-    %{shared:%{mt|pthread:-lpthread}}"
- #else
- #define LIB_SPEC \
-   "%{!shared:\
--     %{!p:%{!pg:%{static|mt|pthread:%{fopenmp:%{static:-a shared} -lrt\
--                %{static:-a archive}} -lpthread} -lc\
--          %{static:%{!nolibdld:-a shared -ldld -a archive -lc}}}}\
-+     %{!p:%{!pg:%{fopenmp:%{static:-a shared} -lrt %{static:-a archive}}\
-+          %{mt|pthread:-lpthread} -lc\
-+          %{static:%{!nolibdld:-a shared -ldld -a archive -lc}\
-+              %{!mt:%{!pthread:-a shared -lc -a archive}}}}}\
-      %{p:%{!pg:%{static:%{mgnu-ld:-a shared}%{!mgnu-ld:-a archive_shared}}\
-          -lprof %{static:-a archive}\
--         %{static|mt|pthread:%{fopenmp:%{static:-a shared} -lrt\
--           %{static:-a archive}} -lpthread} -lc\
--         %{static:%{!nolibdld:-a shared -ldld -a archive -lc}}}}\
-+         %{fopenmp:%{static:-a shared} -lrt %{static:-a archive}}\
-+         %{mt|pthread:-lpthread} -lc\
-+         %{static:%{!nolibdld:-a shared -ldld -a archive -lc}\
-+              %{!mt:%{!pthread:-a shared -lc -a archive}}}}}\
-      %{pg:%{static:%{mgnu-ld:-a shared}%{!mgnu-ld:-a archive_shared}}\
-        -lgprof %{static:-a archive}\
--       %{static|mt|pthread:%{fopenmp:%{static:-a shared} -lrt\
--       %{static:-a archive}} -lpthread} -lc\
--       %{static:%{!nolibdld:-a shared -ldld -a archive -lc}}}}\
-+       %{fopenmp:%{static:-a shared} -lrt %{static:-a archive}}\
-+       %{mt|pthread:-lpthread} -lc\
-+       %{static:%{!nolibdld:-a shared -ldld -a archive -lc}\
-+              %{!mt:%{!pthread:-a shared -lc -a archive}}}}}\
-    %{shared:%{mt|pthread:-lpthread}}"
- #endif
-Index: gcc/config/pa/pa.md
++  };
++
++int main()
++{
++  std::vector< int, allocator98<int> > v98(1);
++  VERIFY( count == 0 );
++
++  std::vector< int, allocator11<int> > v11(1);
++  VERIFY( count == 1 );
++}
+Index: libstdc++-v3/testsuite/20_util/weak_ptr/comparison/cmp_neg.cc
 ===================================================================
---- gcc/config/pa/pa.md        (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/config/pa/pa.md        (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -811,7 +811,7 @@
-                        (match_operand:DI 3 "arith11_operand" "rI"))
-                (match_operand:DI 1 "register_operand" "r")))]
-   "TARGET_64BIT"
--  "sub%I3 %3,%2,%%r0\;add,dc %%r0,%1,%0"
-+  "sub%I3,* %3,%2,%%r0\;add,dc %%r0,%1,%0"
-   [(set_attr "type" "binary")
-    (set_attr "length" "8")])
-@@ -833,7 +833,7 @@
-                        (match_operand:DI 3 "register_operand" "r"))
-                (match_operand:DI 1 "register_operand" "r")))]
-   "TARGET_64BIT"
--  "sub %2,%3,%%r0\;add,dc %%r0,%1,%0"
-+  "sub,* %2,%3,%%r0\;add,dc %%r0,%1,%0"
-   [(set_attr "type" "binary")
-    (set_attr "length" "8")])
-@@ -856,7 +856,7 @@
-                        (match_operand:DI 3 "int11_operand" "I"))
-                (match_operand:DI 1 "register_operand" "r")))]
-   "TARGET_64BIT"
--  "addi %k3,%2,%%r0\;add,dc %%r0,%1,%0"
-+  "addi,* %k3,%2,%%r0\;add,dc %%r0,%1,%0"
-   [(set_attr "type" "binary")
-    (set_attr "length" "8")])
-@@ -902,7 +902,7 @@
-                 (gtu:DI (match_operand:DI 2 "register_operand" "r")
-                         (match_operand:DI 3 "arith11_operand" "rI"))))]
-   "TARGET_64BIT"
--  "sub%I3 %3,%2,%%r0\;sub,db %1,%%r0,%0"
-+  "sub%I3,* %3,%2,%%r0\;sub,db %1,%%r0,%0"
-   [(set_attr "type" "binary")
-    (set_attr "length" "8")])
-@@ -924,7 +924,7 @@
-                                   (match_operand:DI 3 "arith11_operand" "rI")))
-                 (match_operand:DI 4 "register_operand" "r")))]
-   "TARGET_64BIT"
--  "sub%I3 %3,%2,%%r0\;sub,db %1,%4,%0"
-+  "sub%I3,* %3,%2,%%r0\;sub,db %1,%4,%0"
-   [(set_attr "type" "binary")
-    (set_attr "length" "8")])
-@@ -946,7 +946,7 @@
-                 (ltu:DI (match_operand:DI 2 "register_operand" "r")
-                         (match_operand:DI 3 "register_operand" "r"))))]
-   "TARGET_64BIT"
--  "sub %2,%3,%%r0\;sub,db %1,%%r0,%0"
-+  "sub,* %2,%3,%%r0\;sub,db %1,%%r0,%0"
-   [(set_attr "type" "binary")
-    (set_attr "length" "8")])
-@@ -968,7 +968,7 @@
-                                   (match_operand:DI 3 "register_operand" "r")))
-                 (match_operand:DI 4 "register_operand" "r")))]
-   "TARGET_64BIT"
--  "sub %2,%3,%%r0\;sub,db %1,%4,%0"
-+  "sub,* %2,%3,%%r0\;sub,db %1,%4,%0"
-   [(set_attr "type" "binary")
-    (set_attr "length" "8")])
-@@ -991,7 +991,7 @@
-                 (leu:DI (match_operand:DI 2 "register_operand" "r")
-                         (match_operand:DI 3 "int11_operand" "I"))))]
-   "TARGET_64BIT"
--  "addi %k3,%2,%%r0\;sub,db %1,%%r0,%0"
-+  "addi,* %k3,%2,%%r0\;sub,db %1,%%r0,%0"
-   [(set_attr "type" "binary")
-    (set_attr "length" "8")])
-@@ -1013,7 +1013,7 @@
-                                   (match_operand:DI 3 "int11_operand" "I")))
-                 (match_operand:DI 4 "register_operand" "r")))]
-   "TARGET_64BIT"
--  "addi %k3,%2,%%r0\;sub,db %1,%4,%0"
-+  "addi,* %k3,%2,%%r0\;sub,db %1,%4,%0"
-   [(set_attr "type" "binary")
-    (set_attr "length" "8")])
+--- libstdc++-v3/testsuite/20_util/weak_ptr/comparison/cmp_neg.cc      (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ libstdc++-v3/testsuite/20_util/weak_ptr/comparison/cmp_neg.cc      (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -42,8 +42,8 @@
+   return 0;
+ }
  
-Index: gcc/config/pa/pa-hpux11.h
+-// { dg-warning "note" "" { target *-*-* } 354 }
+-// { dg-warning "note" "" { target *-*-* } 1085 }
++// { dg-warning "note" "" { target *-*-* } 358 }
++// { dg-warning "note" "" { target *-*-* } 1086 }
+ // { dg-warning "note" "" { target *-*-* } 468 }
+ // { dg-warning "note" "" { target *-*-* } 586 }
+ // { dg-warning "note" "" { target *-*-* } 1049 }
+Index: configure.ac
 ===================================================================
---- gcc/config/pa/pa-hpux11.h  (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/config/pa/pa-hpux11.h  (.../branches/gcc-4_5-branch)   (wersja 170084)
+--- configure.ac       (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ configure.ac       (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -2428,10 +2428,6 @@
+     extra_arflags_for_target=" -X32_64"
+     extra_nmflags_for_target=" -B -X32_64"
+     ;;
+-  *-*-darwin[[3-9]]*)
+-    # ranlib before Darwin10 requires the -c flag to look at common symbols.
+-    extra_ranlibflags_for_target=" -c"
+-    ;;
+   mips*-*-pe | sh*-*-pe | *arm-wince-pe)
+     target_makefile_frag="config/mt-wince"
+     ;;
+Index: libobjc/configure
+===================================================================
+--- libobjc/configure  (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ libobjc/configure  (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -8797,7 +8797,7 @@
+       ;;
+     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
+-    freebsd2*)
++    freebsd2.*)
+       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+       hardcode_direct=yes
+       hardcode_minus_L=yes
+@@ -9713,7 +9713,7 @@
+     objformat=`/usr/bin/objformat`
+   else
+     case $host_os in
+-    freebsd[123]*) objformat=aout ;;
++    freebsd[23].*) objformat=aout ;;
+     *) objformat=elf ;;
+     esac
+   fi
+@@ -9731,7 +9731,7 @@
+   esac
+   shlibpath_var=LD_LIBRARY_PATH
+   case $host_os in
+-  freebsd2*)
++  freebsd2.*)
+     shlibpath_overrides_runpath=yes
+     ;;
+   freebsd3.[01]* | freebsdelf3.[01]*)
+Index: libobjc/ChangeLog
+===================================================================
+--- libobjc/ChangeLog  (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ libobjc/ChangeLog  (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -1,3 +1,7 @@
++2011-11-20  Andreas Tobler  <andreast@fgznet.ch>
++
++      * configure: Regenerate.
++
+ 2011-10-26  Release Manager
+       * GCC 4.6.2 released.
+Index: libgfortran/configure
+===================================================================
+--- libgfortran/configure      (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ libgfortran/configure      (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -10326,7 +10326,7 @@
+       ;;
+     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
+-    freebsd2*)
++    freebsd2.*)
+       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+       hardcode_direct=yes
+       hardcode_minus_L=yes
+@@ -11242,7 +11242,7 @@
+     objformat=`/usr/bin/objformat`
+   else
+     case $host_os in
+-    freebsd[123]*) objformat=aout ;;
++    freebsd[23].*) objformat=aout ;;
+     *) objformat=elf ;;
+     esac
+   fi
+@@ -11260,7 +11260,7 @@
+   esac
+   shlibpath_var=LD_LIBRARY_PATH
+   case $host_os in
+-  freebsd2*)
++  freebsd2.*)
+     shlibpath_overrides_runpath=yes
+     ;;
+   freebsd3.[01]* | freebsdelf3.[01]*)
+@@ -14162,7 +14162,7 @@
+       ;;
+     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
+-    freebsd2*)
++    freebsd2.*)
+       archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+       hardcode_direct_FC=yes
+       hardcode_minus_L_FC=yes
+@@ -14870,7 +14870,7 @@
+     objformat=`/usr/bin/objformat`
+   else
+     case $host_os in
+-    freebsd[123]*) objformat=aout ;;
++    freebsd[23].*) objformat=aout ;;
+     *) objformat=elf ;;
+     esac
+   fi
+@@ -14888,7 +14888,7 @@
+   esac
+   shlibpath_var=LD_LIBRARY_PATH
+   case $host_os in
+-  freebsd2*)
++  freebsd2.*)
+     shlibpath_overrides_runpath=yes
+     ;;
+   freebsd3.[01]* | freebsdelf3.[01]*)
+Index: libgfortran/ChangeLog
+===================================================================
+--- libgfortran/ChangeLog      (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ libgfortran/ChangeLog      (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -1,3 +1,7 @@
++2011-11-20  Andreas Tobler  <andreast@fgznet.ch>
++
++      * configure: Regenerate.
++
+ 2011-10-26  Release Manager
+       * GCC 4.6.2 released.
+Index: Makefile.def
+===================================================================
+--- Makefile.def       (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ Makefile.def       (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -353,6 +353,7 @@
+ dependencies = { module=install-gcc ; on=install-fixincludes; };
+ dependencies = { module=install-gcc ; on=install-lto-plugin; };
+ dependencies = { module=install-strip-gcc ; on=install-strip-fixincludes; };
++dependencies = { module=install-strip-gcc ; on=install-strip-lto-plugin; };
+ dependencies = { module=configure-libcpp; on=configure-libiberty; hard=true; };
+ dependencies = { module=configure-libcpp; on=configure-intl; };
+Index: libada/Makefile.in
+===================================================================
+--- libada/Makefile.in (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ libada/Makefile.in (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -70,6 +70,7 @@
+ version := $(shell cat $(srcdir)/../gcc/BASE-VER)
+ libsubdir := $(libdir)/gcc/$(target_noncanonical)/$(version)$(MULTISUBDIR)
+ ADA_RTS_DIR=$(GCC_DIR)/ada/rts$(subst /,_,$(MULTISUBDIR))
++ADA_RTS_SUBDIR=./rts$(subst /,_,$(MULTISUBDIR))
+ # exeext should not be used because it's the *host* exeext.  We're building
+ # a *target* library, aren't we?!?  Likewise for CC.  Still, provide bogus
+@@ -96,10 +97,10 @@
+         "CFLAGS=$(CFLAGS) $(WARN_CFLAGS)"
+ # Rules to build gnatlib.
+-.PHONY: gnatlib gnatlib-plain gnatlib-sjlj gnatlib-zcx gnatlib-shared oscons
++.PHONY: gnatlib gnatlib-plain gnatlib-sjlj gnatlib-zcx gnatlib-shared osconstool
+ gnatlib: @default_gnatlib_target@
+-gnatlib-plain: oscons $(GCC_DIR)/ada/Makefile
++gnatlib-plain: osconstool $(GCC_DIR)/ada/Makefile
+       test -f stamp-libada || \
+       $(MAKE) -C $(GCC_DIR)/ada $(LIBADA_FLAGS_TO_PASS) gnatlib \
+       && touch stamp-libada
+@@ -108,7 +109,7 @@
+       $(LN_S) $(ADA_RTS_DIR) adainclude
+       $(LN_S) $(ADA_RTS_DIR) adalib
+-gnatlib-sjlj gnatlib-zcx gnatlib-shared: oscons $(GCC_DIR)/ada/Makefile
++gnatlib-sjlj gnatlib-zcx gnatlib-shared: osconstool $(GCC_DIR)/ada/Makefile
+       test -f stamp-libada || \
+       $(MAKE) -C $(GCC_DIR)/ada $(LIBADA_FLAGS_TO_PASS) $@ \
+       && touch stamp-libada
+@@ -117,8 +118,8 @@
+       $(LN_S) $(ADA_RTS_DIR) adainclude
+       $(LN_S) $(ADA_RTS_DIR) adalib
+-oscons:
+-      $(MAKE) -C $(GCC_DIR) $(LIBADA_FLAGS_TO_PASS) ada/s-oscons.ads
++osconstool:
++      $(MAKE) -C $(GCC_DIR)/ada $(LIBADA_FLAGS_TO_PASS) ./bldtools/oscons/xoscons
+ install-gnatlib: $(GCC_DIR)/ada/Makefile
+       $(MAKE) -C $(GCC_DIR)/ada $(LIBADA_FLAGS_TO_PASS) install-gnatlib
+Index: libada/ChangeLog
+===================================================================
+--- libada/ChangeLog   (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ libada/ChangeLog   (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -1,3 +1,9 @@
++2011-11-13  Iain Sandoe  <iains@gcc.gnu.org>
++
++      Backport from mainline r181319
++      Makefile.in: Change dependency on oscons to depend on the generator
++      tool.
++
+ 2011-10-26  Release Manager
+       * GCC 4.6.2 released.
+Index: libmudflap/configure
+===================================================================
+--- libmudflap/configure       (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ libmudflap/configure       (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -8818,7 +8818,7 @@
+       ;;
+     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
+-    freebsd2*)
++    freebsd2.*)
+       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+       hardcode_direct=yes
+       hardcode_minus_L=yes
+@@ -9731,7 +9731,7 @@
+     objformat=`/usr/bin/objformat`
+   else
+     case $host_os in
+-    freebsd[123]*) objformat=aout ;;
++    freebsd[23].*) objformat=aout ;;
+     *) objformat=elf ;;
+     esac
+   fi
+@@ -9749,7 +9749,7 @@
+   esac
+   shlibpath_var=LD_LIBRARY_PATH
+   case $host_os in
+-  freebsd2*)
++  freebsd2.*)
+     shlibpath_overrides_runpath=yes
+     ;;
+   freebsd3.[01]* | freebsdelf3.[01]*)
+Index: libmudflap/ChangeLog
+===================================================================
+--- libmudflap/ChangeLog       (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ libmudflap/ChangeLog       (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -1,3 +1,7 @@
++2011-11-20  Andreas Tobler  <andreast@fgznet.ch>
++
++      * configure: Regenerate.
++
+ 2011-10-26  Release Manager
+       * GCC 4.6.2 released.
+Index: boehm-gc/ChangeLog
+===================================================================
+--- boehm-gc/ChangeLog (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ boehm-gc/ChangeLog (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -1,3 +1,7 @@
++2011-11-20  Andreas Tobler  <andreast@fgznet.ch>
++
++      * configure: Regenerate.
++
+ 2011-10-26  Release Manager
+       * GCC 4.6.2 released.
+Index: boehm-gc/configure
+===================================================================
+--- boehm-gc/configure (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ boehm-gc/configure (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -9604,7 +9604,7 @@
+       ;;
+     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
+-    freebsd2*)
++    freebsd2.*)
+       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+       hardcode_direct=yes
+       hardcode_minus_L=yes
+@@ -10520,7 +10520,7 @@
+     objformat=`/usr/bin/objformat`
+   else
+     case $host_os in
+-    freebsd[123]*) objformat=aout ;;
++    freebsd[23].*) objformat=aout ;;
+     *) objformat=elf ;;
+     esac
+   fi
+@@ -10538,7 +10538,7 @@
+   esac
+   shlibpath_var=LD_LIBRARY_PATH
+   case $host_os in
+-  freebsd2*)
++  freebsd2.*)
+     shlibpath_overrides_runpath=yes
+     ;;
+   freebsd3.[01]* | freebsdelf3.[01]*)
+@@ -12428,7 +12428,7 @@
+         esac
+         ;;
+-      freebsd[12]*)
++      freebsd2.*)
+         # C++ shared libraries reported to be fairly broken before
+       # switch to ELF
+         ld_shlibs_CXX=no
+@@ -14203,7 +14203,7 @@
+     objformat=`/usr/bin/objformat`
+   else
+     case $host_os in
+-    freebsd[123]*) objformat=aout ;;
++    freebsd[23].*) objformat=aout ;;
+     *) objformat=elf ;;
+     esac
+   fi
+@@ -14221,7 +14221,7 @@
+   esac
+   shlibpath_var=LD_LIBRARY_PATH
+   case $host_os in
+-  freebsd2*)
++  freebsd2.*)
+     shlibpath_overrides_runpath=yes
+     ;;
+   freebsd3.[01]* | freebsdelf3.[01]*)
+Index: libiberty/ChangeLog
+===================================================================
+--- libiberty/ChangeLog        (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ libiberty/ChangeLog        (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -1,3 +1,17 @@
++2011-11-13  Iain Sandoe  <iains@gcc.gnu.org>
++
++      PR target/48108
++      Backport from mainline r180523
++      * simple-object-mach-o.c  (GNU_WRAPPER_SECTS, GNU_WRAPPER_INDEX,
++      GNU_WRAPPER_NAMES): New macros.
++      (simple_object_mach_o_segment): Handle wrapper scheme.
++      (simple_object_mach_o_write_section_header): Allow the segment name
++      to be supplied.
++      (simple_object_mach_o_write_segment): Handle wrapper scheme.  Ensure
++      that the top-level segment name in the load command is empty.
++      (simple_object_mach_o_write_to_file): Determine the number of
++      sections during segment output, use that in writing the header.
++
+ 2011-10-26  Release Manager
+       * GCC 4.6.2 released.
+Index: libiberty/simple-object-mach-o.c
+===================================================================
+--- libiberty/simple-object-mach-o.c   (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ libiberty/simple-object-mach-o.c   (.../branches/gcc-4_6-branch)   (wersja 183790)
 @@ -1,5 +1,5 @@
- /* Definitions of target machine for GNU compiler, for HP PA-RISC
--   Copyright (C) 1998, 1999, 2000, 2002, 2003, 2004, 2005, 2007, 2008
-+   Copyright (C) 1998, 1999, 2000, 2002, 2003, 2004, 2005, 2007, 2008, 2011
-    Free Software Foundation, Inc.
+ /* simple-object-mach-o.c -- routines to manipulate Mach-O object files.
+-   Copyright 2010 Free Software Foundation, Inc.
++   Copyright 2010, 2011 Free Software Foundation, Inc.
+    Written by Ian Lance Taylor, Google.
  
- This file is part of GCC.
-@@ -114,16 +114,17 @@
-    -z %{mlinker-opt:-O} %{!shared:-u main -u __gcc_plt_call}\
-    %{static:-a archive} %{shared:-b}"
--/* HP-UX 11 has posix threads.  HP libc contains pthread stubs so that
--   non-threaded applications can be linked with a thread-safe libc
--   without a subsequent loss of performance.  For more details, see
--   <http://docs.hp.com/en/1896/pthreads.html>.  */
-+/* HP-UX 11 has posix threads.  HP's shared libc contains pthread stubs
-+   so that non-threaded applications can be linked with a thread-safe
-+   libc without a subsequent loss of performance.  For more details,
-+   see <http://docs.hp.com/en/1896/pthreads.html>.  */
- #undef LIB_SPEC
- #define LIB_SPEC \
-   "%{!shared:\
--     %{static|mt|pthread:%{fopenmp:%{static:-a archive_shared} -lrt\
--       %{static:-a archive}} -lpthread} -lc\
--     %{static:%{!nolibdld:-a archive_shared -ldld -a archive -lc}}}\
-+     %{fopenmp:%{static:-a archive_shared} -lrt %{static:-a archive}}\
-+     %{mt|pthread:-lpthread} -lc\
-+     %{static:%{!nolibdld:-a archive_shared -ldld -a archive -lc}\
-+       %{!mt:%{!pthread:-a shared -lc -a archive}}}}\
-    %{shared:%{mt|pthread:-lpthread}}"
- #undef STARTFILE_SPEC
-Index: gcc/config/pa/t-pa64
-===================================================================
---- gcc/config/pa/t-pa64       (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/config/pa/t-pa64       (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -1,5 +1,5 @@
- # Copyright (C) 2000, 2001, 2002, 2004, 2006,
--# 2007 Free Software Foundation, Inc.
-+# 2007, 2011 Free Software Foundation, Inc.
- #
- # This file is part of GCC.
- #
-Index: gcc/config/pa/pa.c
-===================================================================
---- gcc/config/pa/pa.c (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/config/pa/pa.c (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -6097,37 +6097,94 @@
- }
+ This program is free software; you can redistribute it and/or modify it
+@@ -174,6 +174,15 @@
  
- /* Return TRUE if INSN, a jump insn, has an unfilled delay slot and
--   it branches to the next real instruction.  Otherwise, return FALSE.  */
-+   it branches into the delay slot.  Otherwise, return FALSE.  */
+ #define GNU_SECTION_NAMES "__section_names"
  
- static bool
- branch_to_delay_slot_p (rtx insn)
- {
-+  rtx jump_insn;
++/* A GNU-specific extension to wrap multiple sections using three
++   mach-o sections within a given segment.  The section '__wrapper_sects'
++   is subdivided according to the index '__wrapper_index' and each sub
++   sect is named according to the names supplied in '__wrapper_names'.  */
++
++#define GNU_WRAPPER_SECTS "__wrapper_sects"
++#define GNU_WRAPPER_INDEX "__wrapper_index"
++#define GNU_WRAPPER_NAMES "__wrapper_names"
 +
-   if (dbr_sequence_length ())
-     return FALSE;
+ /* Private data for an simple_object_read.  */
  
--  return next_real_insn (JUMP_LABEL (insn)) == next_real_insn (insn);
-+  jump_insn = next_active_insn (JUMP_LABEL (insn));
-+  while (insn)
-+    {
-+      insn = next_active_insn (insn);
-+      if (jump_insn == insn)
-+      return TRUE;
-+
-+      /* We can't rely on the length of asms.  So, we return FALSE when
-+       the branch is followed by an asm.  */
-+      if (!insn
-+        || GET_CODE (PATTERN (insn)) == ASM_INPUT
-+        || extract_asm_operands (PATTERN (insn)) != NULL_RTX
-+        || get_attr_length (insn) > 0)
-+      break;
-+    }
+ struct simple_object_mach_o_read
+@@ -214,8 +223,19 @@
+   unsigned int reserved;
+ };
+-/* See if we have a Mach-O file.  */
++/* See if we have a Mach-O MH_OBJECT file:
++   A standard MH_OBJECT (from as) will have three load commands:
++   0 - LC_SEGMENT/LC_SEGMENT64
++   1 - LC_SYMTAB
++   2 - LC_DYSYMTAB
++
++   The LC_SEGMENT/LC_SEGMENT64 will introduce a single anonymous segment
++   containing all the sections.
 +
-+  return FALSE;
++   Files written by simple-object will have only the segment command
++   (no symbol tables).  */
++
+ static void *
+ simple_object_mach_o_match (
+     unsigned char header[SIMPLE_OBJECT_MATCH_HEADER_LEN],
+@@ -356,9 +376,30 @@
+     }
  }
  
--/* Return TRUE if INSN, a jump insn, needs a nop in its delay slot.
-+/* Return TRUE if INSN, a forward jump insn, needs a nop in its delay slot.
+-/* Handle a segment in a Mach-O file.  Return 1 if we should continue,
+-   0 if the caller should return.  */
++/* Handle a segment in a Mach-O Object file.
  
-    This occurs when INSN has an unfilled delay slot and is followed
--   by an ASM_INPUT.  Disaster can occur if the ASM_INPUT is empty and
--   the jump branches into the delay slot.  So, we add a nop in the delay
--   slot just to be safe.  This messes up our instruction count, but we
--   don't know how big the ASM_INPUT insn is anyway.  */
-+   by an asm.  Disaster can occur if the asm is empty and the jump
-+   branches into the delay slot.  So, we add a nop in the delay slot
-+   when this occurs.  */
- static bool
- branch_needs_nop_p (rtx insn)
- {
--  rtx next_insn;
-+  rtx jump_insn;
++   This will callback to the function pfn for each "section found" the meaning
++   of which depends on gnu extensions to mach-o:
++
++   If we find mach-o sections (with the segment name as specified) which also
++   contain: a 'sects' wrapper, an index, and a  name table, we expand this into
++   as many sections as are specified in the index.  In this case, there will
++   be a callback for each of these.
++
++   We will also allow an extension that permits long names (more than 16
++   characters) to be used with mach-o.  In this case, the section name has
++   a specific format embedding an index into a name table, and the file must
++   contain such name table.
++
++   Return 1 if we should continue, 0 if the caller should return.  */
++
++#define SOMO_SECTS_PRESENT 0x01
++#define SOMO_INDEX_PRESENT 0x02
++#define SOMO_NAMES_PRESENT 0x04
++#define SOMO_LONGN_PRESENT 0x08
++#define SOMO_WRAPPING (SOMO_SECTS_PRESENT | SOMO_INDEX_PRESENT \
++                     | SOMO_NAMES_PRESENT)
++
+ static int
+ simple_object_mach_o_segment (simple_object_read *sobj, off_t offset,
+                             const unsigned char *segbuf,
+@@ -378,9 +419,20 @@
+   unsigned int nsects;
+   unsigned char *secdata;
+   unsigned int i;
++  unsigned int gnu_sections_found;
+   unsigned int strtab_index;
++  unsigned int index_index;
++  unsigned int nametab_index;
++  unsigned int sections_index;
+   char *strtab;
++  char *nametab;
++  unsigned char *index;
+   size_t strtab_size;
++  size_t nametab_size;
++  size_t index_size;
++  unsigned int n_wrapped_sects;
++  size_t wrapper_sect_size;
++  off_t wrapper_sect_offset;
+   fetch_32 = (omr->is_big_endian
+             ? simple_object_fetch_big_32
+@@ -409,6 +461,8 @@
+                                       nsects));
+     }
  
-   if (dbr_sequence_length ())
-     return FALSE;
++  /* Fetch the section headers from the segment command.  */
++
+   secdata = XNEWVEC (unsigned char, nsects * sechdrsize);
+   if (!simple_object_internal_read (sobj->descriptor, offset + seghdrsize,
+                                   secdata, nsects * sechdrsize, errmsg, err))
+@@ -417,9 +471,13 @@
+       return 0;
+     }
  
--  next_insn = next_real_insn (insn);
--  return GET_CODE (PATTERN (next_insn)) == ASM_INPUT;
-+  jump_insn = next_active_insn (JUMP_LABEL (insn));
-+  while (insn)
-+    {
-+      insn = next_active_insn (insn);
-+      if (!insn || jump_insn == insn)
-+      return TRUE;
-+
-+      if (!(GET_CODE (PATTERN (insn)) == ASM_INPUT
-+         || extract_asm_operands (PATTERN (insn)) != NULL_RTX)
-+        && get_attr_length (insn) > 0)
-+      break;
-+    }
+-  /* Scan for a __section_names section.  This is in effect a GNU
+-     extension that permits section names longer than 16 chars.  */
++  /* Scan for special sections that signal GNU extensions to the format.  */
++  gnu_sections_found = 0;
++  index_index = nsects;
++  sections_index = nsects;
++  strtab_index = nsects;
++  nametab_index = nsects;
+   for (i = 0; i < nsects; ++i)
+     {
+       size_t nameoff;
+@@ -427,19 +485,104 @@
+       nameoff = i * sechdrsize + segname_offset;
+       if (strcmp ((char *) secdata + nameoff, omr->segment_name) != 0)
+       continue;
 +
-+  return FALSE;
- }
+       nameoff = i * sechdrsize + sectname_offset;
+-      if (strcmp ((char *) secdata + nameoff, GNU_SECTION_NAMES) == 0)
+-      break;
++      if (strcmp ((char *) secdata + nameoff, GNU_WRAPPER_NAMES) == 0)
++      {
++        nametab_index = i;
++        gnu_sections_found |= SOMO_NAMES_PRESENT;
++      }
++      else if (strcmp ((char *) secdata + nameoff, GNU_WRAPPER_INDEX) == 0)
++      {
++        index_index = i;
++        gnu_sections_found |= SOMO_INDEX_PRESENT;
++      }
++      else if (strcmp ((char *) secdata + nameoff, GNU_WRAPPER_SECTS) == 0)
++      {
++        sections_index = i;
++        gnu_sections_found |= SOMO_SECTS_PRESENT;
++      }
++      else if (strcmp ((char *) secdata + nameoff, GNU_SECTION_NAMES) == 0)
++      {
++        strtab_index = i;
++        gnu_sections_found |= SOMO_LONGN_PRESENT;
++      }
+     }
  
-+/* Return TRUE if INSN, a forward jump insn, can use nullification
-+   to skip the following instruction.  This avoids an extra cycle due
-+   to a mis-predicted branch when we fall through.  */
+-  strtab_index = i;
+-  if (strtab_index >= nsects)
++  /* If any of the special wrapper section components is present, then
++     they all should be.  */
 +
-+static bool
-+use_skip_p (rtx insn)
-+{
-+  rtx jump_insn = next_active_insn (JUMP_LABEL (insn));
++  if ((gnu_sections_found & SOMO_WRAPPING) != 0)
+     {
+-      strtab = NULL;
+-      strtab_size = 0;
++      off_t nametab_offset;
++      off_t index_offset;
 +
-+  while (insn)
-+    {
-+      insn = next_active_insn (insn);
-+
-+      /* We can't rely on the length of asms, so we can't skip asms.  */
-+      if (!insn
-+        || GET_CODE (PATTERN (insn)) == ASM_INPUT
-+        || extract_asm_operands (PATTERN (insn)) != NULL_RTX)
-+      break;
-+      if (get_attr_length (insn) == 4
-+        && jump_insn == next_active_insn (insn))
-+      return TRUE;
-+      if (get_attr_length (insn) > 0)
-+      break;
-+    }
++      if ((gnu_sections_found & SOMO_WRAPPING) != SOMO_WRAPPING)
++      {
++        *errmsg = "GNU Mach-o section wrapper: required section missing";
++        *err = 0; /* No useful errno.  */
++        XDELETEVEC (secdata);
++        return 0;
++      }
 +
-+  return FALSE;
-+}
++      /* Fetch the name table.  */
 +
- /* This routine handles all the normal conditional branch sequences we
-    might need to generate.  It handles compare immediate vs compare
-    register, nullification of delay slots, varying length branches,
-@@ -6139,7 +6196,7 @@
- output_cbranch (rtx *operands, int negated, rtx insn)
- {
-   static char buf[100];
--  int useskip = 0;
-+  bool useskip;
-   int nullify = INSN_ANNULLED_BRANCH_P (insn);
-   int length = get_attr_length (insn);
-   int xdelay;
-@@ -6177,12 +6234,7 @@
-   /* A forward branch over a single nullified insn can be done with a
-      comclr instruction.  This avoids a single cycle penalty due to
-      mis-predicted branch if we fall through (branch not taken).  */
--  if (length == 4
--      && next_real_insn (insn) != 0
--      && get_attr_length (next_real_insn (insn)) == 4
--      && JUMP_LABEL (insn) == next_nonnote_insn (next_real_insn (insn))
--      && nullify)
--    useskip = 1;
-+  useskip = (length == 4 && nullify) ? use_skip_p (insn) : FALSE;
-   switch (length)
-     {
-@@ -6470,7 +6522,7 @@
- output_bb (rtx *operands ATTRIBUTE_UNUSED, int negated, rtx insn, int which)
- {
-   static char buf[100];
--  int useskip = 0;
-+  bool useskip;
-   int nullify = INSN_ANNULLED_BRANCH_P (insn);
-   int length = get_attr_length (insn);
-   int xdelay;
-@@ -6496,14 +6548,8 @@
-   /* A forward branch over a single nullified insn can be done with a
-      extrs instruction.  This avoids a single cycle penalty due to
-      mis-predicted branch if we fall through (branch not taken).  */
-+  useskip = (length == 4 && nullify) ? use_skip_p (insn) : FALSE;
--  if (length == 4
--      && next_real_insn (insn) != 0
--      && get_attr_length (next_real_insn (insn)) == 4
--      && JUMP_LABEL (insn) == next_nonnote_insn (next_real_insn (insn))
--      && nullify)
--    useskip = 1;
--
-   switch (length)
++      simple_object_mach_o_section_info (omr->is_big_endian, is_32,
++                                       secdata + nametab_index * sechdrsize,
++                                       &nametab_offset, &nametab_size);
++      nametab = XNEWVEC (char, nametab_size);
++      if (!simple_object_internal_read (sobj->descriptor,
++                                      sobj->offset + nametab_offset,
++                                      (unsigned char *) nametab, nametab_size,
++                                      errmsg, err))
++      {
++        XDELETEVEC (nametab);
++        XDELETEVEC (secdata);
++        return 0;
++      }
++
++      /* Fetch the index.  */
++
++      simple_object_mach_o_section_info (omr->is_big_endian, is_32,
++                                       secdata + index_index * sechdrsize,
++                                       &index_offset, &index_size);
++      index = XNEWVEC (unsigned char, index_size);
++      if (!simple_object_internal_read (sobj->descriptor,
++                                      sobj->offset + index_offset,
++                                      index, index_size,
++                                      errmsg, err))
++      {
++        XDELETEVEC (index);
++        XDELETEVEC (nametab);
++        XDELETEVEC (secdata);
++        return 0;
++      }
++
++      /* The index contains 4 unsigned ints per sub-section:
++       sub-section offset/length, sub-section name/length.
++       We fix this for both 32 and 64 bit mach-o for now, since
++       other fields limit the maximum size of an object to 4G.  */
++      n_wrapped_sects = index_size / 16;
++
++      /* Get the parameters for the wrapper too.  */
++      simple_object_mach_o_section_info (omr->is_big_endian, is_32,
++                                       secdata + sections_index * sechdrsize,
++                                       &wrapper_sect_offset,
++                                       &wrapper_sect_size);
+     }
+   else
      {
++      index = NULL;
++      index_size = 0;
++      nametab = NULL;
++      nametab_size = 0;
++      n_wrapped_sects = 0;
++    }
++
++  /* If we have a long names section, fetch it.  */
++
++  if ((gnu_sections_found & SOMO_LONGN_PRESENT) != 0)
++    {
+       off_t strtab_offset;
  
-@@ -6661,7 +6707,7 @@
- output_bvb (rtx *operands ATTRIBUTE_UNUSED, int negated, rtx insn, int which)
- {
-   static char buf[100];
--  int useskip = 0;
-+  bool useskip;
-   int nullify = INSN_ANNULLED_BRANCH_P (insn);
-   int length = get_attr_length (insn);
-   int xdelay;
-@@ -6687,14 +6733,8 @@
-   /* A forward branch over a single nullified insn can be done with a
-      extrs instruction.  This avoids a single cycle penalty due to
-      mis-predicted branch if we fall through (branch not taken).  */
-+  useskip = (length == 4 && nullify) ? use_skip_p (insn) : FALSE;
--  if (length == 4
--      && next_real_insn (insn) != 0
--      && get_attr_length (next_real_insn (insn)) == 4
--      && JUMP_LABEL (insn) == next_nonnote_insn (next_real_insn (insn))
--      && nullify)
--    useskip = 1;
--
-   switch (length)
+       simple_object_mach_o_section_info (omr->is_big_endian, is_32,
+@@ -452,52 +595,120 @@
+                                       errmsg, err))
+       {
+         XDELETEVEC (strtab);
++        XDELETEVEC (index);
++        XDELETEVEC (nametab);
+         XDELETEVEC (secdata);
+         return 0;
+       }
+     }
++  else
++    {
++      strtab = NULL;
++      strtab_size = 0;
++      strtab_index = nsects;
++    }
+   /* Process the sections.  */
+   for (i = 0; i < nsects; ++i)
      {
+       const unsigned char *sechdr;
+-      char namebuf[MACH_O_NAME_LEN + 1];
++      char namebuf[MACH_O_NAME_LEN * 2 + 2];
+       char *name;
+       off_t secoffset;
+       size_t secsize;
++      int l;
  
-Index: gcc/config/pa/stublib.c
-===================================================================
---- gcc/config/pa/stublib.c    (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/config/pa/stublib.c    (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -1,5 +1,5 @@
- /* Stub functions.
--   Copyright (C) 2006, 2009 Free Software Foundation, Inc.
-+   Copyright (C) 2006, 2009, 2011 Free Software Foundation, Inc.
+-      if (i == strtab_index)
++      sechdr = secdata + i * sechdrsize;
++
++      /* We've already processed the long section names.  */
++
++      if ((gnu_sections_found & SOMO_LONGN_PRESENT) != 0
++        && i == strtab_index)
+       continue;
  
- This file is part of GCC.
+-      sechdr = secdata + i * sechdrsize;
++      /* We only act on the segment named.  */
  
-Index: gcc/reload1.c
-===================================================================
---- gcc/reload1.c      (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/reload1.c      (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -1,7 +1,7 @@
- /* Reload pseudo regs into hard regs for insns that require hard regs.
-    Copyright (C) 1987, 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
--   1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
--   Free Software Foundation, Inc.
-+   1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
-+   2011 Free Software Foundation, Inc.
+       if (strcmp ((char *) sechdr + segname_offset, omr->segment_name) != 0)
+       continue;
  
- This file is part of GCC.
+-      memcpy (namebuf, sechdr + sectname_offset, MACH_O_NAME_LEN);
+-      namebuf[MACH_O_NAME_LEN] = '\0';
++      /* Process sections associated with the wrapper.  */
  
-@@ -6266,18 +6266,7 @@
-             && (rld[r].nregs == max_group_size
-                 || ! reg_classes_intersect_p (rld[r].rclass, group_class)))
-           search_equiv = rld[r].in;
--        /* If this is an output reload from a simple move insn, look
--           if an equivalence for the input is available.  */
--        else if (inheritance && rld[r].in == 0 && rld[r].out != 0)
--          {
--            rtx set = single_set (insn);
--            if (set
--                && rtx_equal_p (rld[r].out, SET_DEST (set))
--                && CONSTANT_P (SET_SRC (set)))
--              search_equiv = SET_SRC (set);
--          }
--
-         if (search_equiv)
-           {
-             rtx equiv
-@@ -7759,10 +7748,22 @@
-         /* Maybe the spill reg contains a copy of reload_out.  */
-         if (rld[r].out != 0
-             && (REG_P (rld[r].out)
--#ifdef AUTO_INC_DEC
--                || ! rld[r].out_reg
--#endif
--                || REG_P (rld[r].out_reg)))
-+                || (rld[r].out_reg
-+                    ? REG_P (rld[r].out_reg)
-+                    /* The reload value is an auto-modification of
-+                       some kind.  For PRE_INC, POST_INC, PRE_DEC
-+                       and POST_DEC, we record an equivalence
-+                       between the reload register and the operand
-+                       on the optimistic assumption that we can make
-+                       the equivalence hold.  reload_as_needed must
-+                       then either make it hold or invalidate the
-+                       equivalence.
-+
-+                       PRE_MODIFY and POST_MODIFY addresses are reloaded
-+                       somewhat differently, and allowing them here leads
-+                       to problems.  */
-+                    : (GET_CODE (rld[r].out) != POST_MODIFY
-+                       && GET_CODE (rld[r].out) != PRE_MODIFY))))
+-      name = &namebuf[0];
+-      if (strtab != NULL && name[0] == '_' && name[1] == '_')
++      if ((gnu_sections_found & SOMO_WRAPPING) != 0)
+       {
+-        unsigned long stringoffset;
++        if (i == nametab_index || i == index_index)
++          continue;
+-        if (sscanf (name + 2, "%08lX", &stringoffset) == 1)
++        if (i == sections_index)
            {
-             rtx reg;
-             enum machine_mode mode;
-@@ -8706,7 +8707,7 @@
-                be used as an address.  */
+-            if (stringoffset >= strtab_size)
++            unsigned int j;
++            for (j = 0; j < n_wrapped_sects; ++j)
+               {
+-                *errmsg = "section name offset out of range";
+-                *err = 0;
+-                XDELETEVEC (strtab);
+-                XDELETEVEC (secdata);
+-                return 0;
++                unsigned int subsect_offset, subsect_length, name_offset;
++                subsect_offset = (*fetch_32) (index + 16 * j);
++                subsect_length = (*fetch_32) (index + 16 * j + 4);
++                name_offset = (*fetch_32) (index + 16 * j + 8);
++                /* We don't need the name_length yet.  */
++
++                secoffset = wrapper_sect_offset + subsect_offset;
++                secsize = subsect_length;
++                name = nametab + name_offset;
++
++                if (!(*pfn) (data, name, secoffset, secsize))
++                  {
++                    *errmsg = NULL;
++                    *err = 0;
++                    XDELETEVEC (index);
++                    XDELETEVEC (nametab);
++                    XDELETEVEC (strtab);
++                    XDELETEVEC (secdata);
++                    return 0;
++                  }
+               }
+-
+-            name = strtab + stringoffset;
++            continue;
+           }
+       }
  
-             if (! post)
--              emit_insn (gen_move_insn (reloadreg, incloc));
-+              add_insn = emit_insn (gen_move_insn (reloadreg, incloc));
++      if ((gnu_sections_found & SOMO_LONGN_PRESENT) != 0)
++      {
++        memcpy (namebuf, sechdr + sectname_offset, MACH_O_NAME_LEN);
++        namebuf[MACH_O_NAME_LEN] = '\0';
++
++        name = &namebuf[0];
++        if (strtab != NULL && name[0] == '_' && name[1] == '_')
++          {
++            unsigned long stringoffset;
++
++            if (sscanf (name + 2, "%08lX", &stringoffset) == 1)
++              {
++                if (stringoffset >= strtab_size)
++                  {
++                    *errmsg = "section name offset out of range";
++                    *err = 0;
++                    XDELETEVEC (index);
++                    XDELETEVEC (nametab);
++                    XDELETEVEC (strtab);
++                    XDELETEVEC (secdata);
++                    return 0;
++                  }
++
++                name = strtab + stringoffset;
++              }
++        }
++      }
++      else
++      {
++         /* Otherwise, make a name like __segment,__section as per the
++            convention in mach-o asm.  */
++        name = &namebuf[0];
++        memset (namebuf, 0, MACH_O_NAME_LEN * 2 + 2);
++        memcpy (namebuf, (char *) sechdr + segname_offset, MACH_O_NAME_LEN);
++        l = strlen (namebuf);
++        namebuf[l] = ',';
++        memcpy (namebuf + l + 1, (char *) sechdr + sectname_offset,
++                MACH_O_NAME_LEN);
++      }
++
+       simple_object_mach_o_section_info (omr->is_big_endian, is_32, sechdr,
+                                        &secoffset, &secsize);
  
-             return add_insn;
-           }
-Index: gcc/gthr-posix95.h
-===================================================================
---- gcc/gthr-posix95.h (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ gcc/gthr-posix95.h (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -1,6 +1,7 @@
- /* Threads compatibility routines for libgcc2 and libobjc.  */
- /* Compile this one with gcc.  */
--/* Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation, Inc.
-+/* Copyright (C) 2004, 2005, 2007, 2008, 2009, 2011
-+   Free Software Foundation, Inc.
+@@ -505,12 +716,16 @@
+       {
+         *errmsg = NULL;
+         *err = 0;
++        XDELETEVEC (index);
++        XDELETEVEC (nametab);
+         XDELETEVEC (strtab);
+         XDELETEVEC (secdata);
+         return 0;
+       }
+     }
  
- This file is part of GCC.
++  XDELETEVEC (index);
++  XDELETEVEC (nametab);
+   XDELETEVEC (strtab);
+   XDELETEVEC (secdata);
+@@ -724,9 +939,9 @@
+ simple_object_mach_o_write_section_header (simple_object_write *sobj,
+                                          int descriptor,
+                                          size_t sechdr_offset,
+-                                         const char *name, size_t secaddr,
+-                                         size_t secsize, size_t offset,
+-                                         unsigned int align,
++                                         const char *name, const char *segn,
++                                         size_t secaddr, size_t secsize,
++                                         size_t offset, unsigned int align,
+                                          const char **errmsg, int *err)
+ {
+   struct simple_object_mach_o_attributes *attrs =
+@@ -748,7 +963,7 @@
+       strncpy ((char *) hdr + offsetof (struct mach_o_section_32, sectname),
+              name, MACH_O_NAME_LEN);
+       strncpy ((char *) hdr + offsetof (struct mach_o_section_32, segname),
+-             sobj->segment_name, MACH_O_NAME_LEN);
++             segn, MACH_O_NAME_LEN);
+       set_32 (hdr + offsetof (struct mach_o_section_32, addr), secaddr);
+       set_32 (hdr + offsetof (struct mach_o_section_32, size), secsize);
+       set_32 (hdr + offsetof (struct mach_o_section_32, offset), offset);
+@@ -773,7 +988,7 @@
+       strncpy ((char *) hdr + offsetof (struct mach_o_section_64, sectname),
+              name, MACH_O_NAME_LEN);
+       strncpy ((char *) hdr + offsetof (struct mach_o_section_64, segname),
+-             sobj->segment_name, MACH_O_NAME_LEN);
++             segn, MACH_O_NAME_LEN);
+       set_64 (hdr + offsetof (struct mach_o_section_64, addr), secaddr);
+       set_64 (hdr + offsetof (struct mach_o_section_64, size), secsize);
+       set_32 (hdr + offsetof (struct mach_o_section_64, offset), offset);
+@@ -793,11 +1008,25 @@
+                                      sechdrsize, errmsg, err);
+ }
  
-@@ -184,61 +185,34 @@
-    calls in shared flavors of the HP-UX C library.  Most of the stubs
-    have no functionality.  The details are described in the "libc cumulative
-    patch" for each subversion of HP-UX 11.  There are two special interfaces
--   provided for checking whether an application is linked to a pthread
-+   provided for checking whether an application is linked to a shared pthread
-    library or not.  However, these interfaces aren't available in early
--   libc versions.  We also can't use pthread_once as some libc versions
--   call the init function.  So, we use pthread_create to check whether it
--   is possible to create a thread or not.  The stub implementation returns
--   the error number ENOSYS.  */
-+   pthread libraries.  We also need a test that works for archive
-+   libraries.  We can't use pthread_once as some libc versions call the
-+   init function.  We also can't use pthread_create or pthread_attr_init
-+   as these create a thread and thereby prevent changing the default stack
-+   size.  The function pthread_default_stacksize_np is available in both
-+   the archive and shared versions of libpthread.   It can be used to
-+   determine the default pthread stack size.  There is a stub in some
-+   shared libc versions which returns a zero size if pthreads are not
-+   active.  We provide an equivalent stub to handle cases where libc
-+   doesn't provide one.  */
- #if defined(__hppa__) && defined(__hpux__)
--#include <errno.h>
--
- static volatile int __gthread_active = -1;
+-/* Write out the single segment and the sections of a Mach-O file.  */
++/* Write out the single (anonymous) segment containing the sections of a Mach-O
++   Object file.
  
--static void *
--__gthread_start (void *arg __attribute__((unused)))
--{
--  return NULL;
--}
--
--static void __gthread_active_init (void) __attribute__((noinline));
--static void
--__gthread_active_init (void)
--{
--  static pthread_mutex_t __gthread_active_mutex = PTHREAD_MUTEX_INITIALIZER;
--  pthread_t t;
--  pthread_attr_t a;
--  int result;
--
--  __gthrw_(pthread_mutex_lock) (&__gthread_active_mutex);
--  if (__gthread_active < 0)
--    {
--      __gthrw_(pthread_attr_init) (&a);
--      __gthrw_(pthread_attr_setdetachstate) (&a, PTHREAD_CREATE_DETACHED);
--      result = __gthrw_(pthread_create) (&t, &a, __gthread_start, NULL);
--      if (result != ENOSYS)
--      __gthread_active = 1;
--      else
--      __gthread_active = 0;
--      __gthrw_(pthread_attr_destroy) (&a);
--    }
--  __gthrw_(pthread_mutex_unlock) (&__gthread_active_mutex);
--}
--
- static inline int
- __gthread_active_p (void)
++   As a GNU extension to mach-o, when the caller specifies a segment name in
++   sobj->segment_name, all the sections passed will be output under a single
++   mach-o section header.  The caller's sections are indexed within this
++   'wrapper' section by a table stored in a second mach-o section.  Finally,
++   arbitrary length section names are permitted by the extension and these are
++   stored in a table in a third mach-o section.
++
++   Note that this is only likely to make any sense for the __GNU_LTO segment
++   at present.
++
++   If the wrapper extension is not in force, we assume that the section name
++   is in the form __SEGMENT_NAME,__section_name as per Mach-O asm.  */
++
+ static int
+ simple_object_mach_o_write_segment (simple_object_write *sobj, int descriptor,
+-                                  size_t nsects, const char **errmsg,
++                                  size_t *nsects, const char **errmsg,
+                                   int *err)
  {
-   /* Avoid reading __gthread_active twice on the main code path.  */
-   int __gthread_active_latest_value = __gthread_active;
-+  size_t __s;
--  /* This test is not protected to avoid taking a lock on the main code
--     path so every update of __gthread_active in a threaded program must
--     be atomic with regard to the result of the test.  */
-   if (__builtin_expect (__gthread_active_latest_value < 0, 0))
-     {
--      __gthread_active_init ();
-+      pthread_default_stacksize_np (0, &__s);
-+      __gthread_active = __s ? 1 : 0;
-       __gthread_active_latest_value = __gthread_active;
+   struct simple_object_mach_o_attributes *attrs =
+@@ -814,6 +1043,10 @@
+   simple_object_write_section *section;
+   unsigned char hdrbuf[sizeof (struct mach_o_segment_command_64)];
+   unsigned char *hdr;
++  size_t nsects_in;
++  unsigned int *index;
++  char *snames;
++  unsigned int sect;
+   set_32 = (attrs->is_big_endian
+           ? simple_object_set_big_32
+@@ -834,19 +1067,62 @@
+       sechdrsize = sizeof (struct mach_o_section_64);
      }
  
-Index: libstdc++-v3/src/bitmap_allocator.cc
-===================================================================
---- libstdc++-v3/src/bitmap_allocator.cc       (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ libstdc++-v3/src/bitmap_allocator.cc       (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -49,6 +49,7 @@
-   {
- #if defined __GTHREADS
-     __mutex_type& __bfl_mutex = _M_get_mutex();
-+    __bfl_mutex.lock();
- #endif
-     const vector_type& __free_list = _M_get_free_list();
-     using __gnu_cxx::__detail::__lower_bound;
-Index: libstdc++-v3/doc/xml/gnu/gpl-2.0.xml
-===================================================================
---- libstdc++-v3/doc/xml/gnu/gpl-2.0.xml       (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ libstdc++-v3/doc/xml/gnu/gpl-2.0.xml       (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -1,366 +0,0 @@
--<?xml version='1.0' encoding='ISO-8859-1'?>
--<!DOCTYPE appendix PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
--  "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
--<appendix id="appendix.gpl-2.0">
--  <appendixinfo>
--    <title>GNU General Public License</title>
--    <pubdate>Version 2, June 1991</pubdate>
--    <copyright>
--      <year>1989, 1991</year>
--      <holder>Free Software Foundation, Inc.</holder>
--    </copyright>
--    <legalnotice id="gpl-legalnotice">
--      <para>
--      <address>Free Software Foundation, Inc. 
--        <street>51 Franklin Street, Fifth Floor</street>, 
--        <city>Boston</city>, <state>MA</state> <postcode>02110-1301</postcode>
--        <country>USA</country>
--      </address>
--      </para>
--      <para>Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.</para>
--    </legalnotice>
--    <releaseinfo>Version 2, June 1991</releaseinfo>
--  </appendixinfo>
--  <title>GNU General Public License</title>
--  <section id="gpl-1">
--    <title>Preamble</title>
--    <para>The licenses for most software are designed to take away your 
--      freedom to share and change it. By contrast, the GNU General Public License is 
--      intended to guarantee your freedom to share and change 
--      free software - to make sure the software is free for all its users. 
--      This General Public License applies to most of the Free Software 
--      Foundation&apos;s software and to any other program whose authors commit 
--      to using it. (Some other Free Software Foundation software is covered 
--      by the GNU Library General Public License instead.) You can apply it 
--      to your programs, too.</para>
--
--    <para>When we speak of free software, we are referring to freedom, not price. 
--      Our General Public Licenses are designed to make sure that you have the 
--      freedom to distribute copies of free software (and charge for this 
--      service if you wish), that you receive source code or can get it if you 
--      want it, that you can change the software or use pieces of it in new free 
--      programs; and that you know you can do these things.</para>
--
--    <para>To protect your rights, we need to make restrictions that forbid anyone 
--      to deny you these rights or to ask you to surrender the rights. These 
--      restrictions translate to certain responsibilities for you if you distribute 
--      copies of the software, or if you modify it.</para>
--
--    <para>For example, if you distribute copies of such a program, whether gratis or 
--      for a fee, you must give the recipients all the rights that you have. You 
--      must make sure that they, too, receive or can get the source code. And you 
--      must show them these terms so they know their rights.</para>
--
--    <para>We protect your rights with two steps:
--      <orderedlist>
--      <listitem>
--        <para>copyright the software, and</para>
--      </listitem>
--      <listitem>
--        <para>offer you this license which gives you legal permission to copy, 
--          distribute and/or modify the software.</para>
--      </listitem>
--      </orderedlist>
--    </para>
--
--    <para>Also, for each author&apos;s protection and ours, we want to make certain that 
--      everyone understands that there is no warranty for this free software. If 
--      the software is modified by someone else and passed on, we want its 
--      recipients to know that what they have is not the original, so that any 
--      problems introduced by others will not reflect on the original authors&apos; 
--      reputations.</para>
--
--    <para>Finally, any free program is threatened constantly by software patents. 
--      We wish to avoid the danger that redistributors of a free program will 
--      individually obtain patent licenses, in effect making the program 
--      proprietary. To prevent this, we have made it clear that any patent must be 
--      licensed for everyone&apos;s free use or not licensed at all.</para>
--
--    <para>The precise terms and conditions for copying, distribution and modification 
--      follow.</para>
--  </section>
--  <section id="gpl-2">
--    <title>TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION</title>
--    <section id="gpl-2-0">
--      <title>Section 0</title>
--      <para>This License applies to any program or other work which contains a notice 
--      placed by the copyright holder saying it may be distributed under the terms 
--      of this General Public License. The <quote>Program</quote>, below, refers to any such 
--      program or work, and a 
--      <quote>work based on the Program</quote> means either 
--      the Program or any derivative work under copyright law: that is to say, a 
--      work containing the Program or a portion of it, either verbatim or with 
--      modifications and/or translated into another language. (Hereinafter, translation 
--      is included without limitation in the term 
--      <quote>modification</quote>.) Each licensee is addressed as <quote>you</quote>.</para>
--
--      <para>Activities other than copying, distribution and modification are not covered by 
--      this License; they are outside its scope. The act of running the Program is not 
--      restricted, and the output from the Program is covered only if its contents 
--      constitute a work based on the Program (independent of having been made by running 
--      the Program). Whether that is true depends on what the Program does.</para>
--    </section>
--    <section id="gpl-2-1">
--      <title>Section 1</title>
--      <para>You may copy and distribute verbatim copies of the Program&apos;s source code as you 
--      receive it, in any medium, provided that you conspicuously and appropriately 
--      publish on each copy an appropriate copyright notice and disclaimer of warranty; 
--      keep intact all the notices that refer to this License and to the absence of any 
--      warranty; and give any other recipients of the Program a copy of this License 
--      along with the Program.</para>
--
--      <para>You may charge a fee for the physical act of transferring a copy, and you may at 
--      your option offer warranty protection in exchange for a fee.</para>
--    </section>
--    <section id="gpl-2-2">
--      <title>Section 2</title>
--      <para>You may modify your copy or copies of the Program or any portion of it, thus 
--      forming a work based on the Program, and copy and distribute such modifications 
--      or work under the terms of 
--      <link linkend="gpl-2-1">Section 1</link> above, provided 
--      that you also meet all of these conditions:
--      <orderedlist numeration="loweralpha">
--        <listitem>
--          <para>You must cause the modified files to carry prominent notices stating that 
--            you changed the files and the date of any change.</para>
--        </listitem>
--        <listitem>
--          <para>You must cause any work that you distribute or publish, that in whole or 
--            in part contains or is derived from the Program or any part thereof, to be 
--            licensed as a whole at no charge to all third parties under the terms of 
--            this License.</para>
--        </listitem>
--        <listitem>
--          <para>If the modified program normally reads commands interactively when run, you 
--            must cause it, when started running for such interactive use in the most 
--            ordinary way, to print or display an announcement including an appropriate 
--            copyright notice and a notice that there is no warranty (or else, saying 
--            that you provide a warranty) and that users may redistribute the program 
--            under these conditions, and telling the user how to view a copy of this 
--            License. (Exception: If the Program itself is interactive but does not 
--              normally print such an announcement, your work based on the Program is not 
--              required to print an   announcement.)</para>
--        </listitem>
--      </orderedlist>
--      </para>
--
--      <para>These requirements apply to the modified work as a whole. If identifiable sections 
--      of that work are not derived from the Program, and can be reasonably considered 
--      independent and separate works in themselves, then this License, and its terms, 
--      do not apply to those sections when you distribute them as separate works. But when 
--      you distribute the same sections as part of a whole which is a work based on the 
--      Program, the distribution of the whole must be on the terms of this License, whose 
--      permissions for other licensees extend to the entire whole, and thus to each and 
--      every part regardless of who wrote it.</para>
--
--      <para>Thus, it is not the intent of this section to claim rights or contest your rights 
--      to work written entirely by you; rather, the intent is to exercise the right to control 
--      the distribution of derivative or collective works based on the Program.</para>
--
--      <para>In addition, mere aggregation of another work not based on the Program with the Program 
--      (or with a work based on the Program) on a volume of a storage or distribution medium 
--      does not bring the other work under the scope of this License.</para>
--    </section>
--    <section id="gpl-2-3">
--      <title>Section 3</title>
--      <para>You may copy and distribute the Program (or a work based on it, under 
--      <link linkend="gpl-2-2">Section 2</link> in object code or executable form under the terms of 
--      <link linkend="gpl-2-1">Sections 1</link> and 
--      <link linkend="gpl-2-2">2</link> above provided that you also do one of the following:
--      <orderedlist numeration="loweralpha">
--        <listitem>
--          <para>Accompany it with the complete corresponding machine-readable source code, which 
--            must be distributed under the terms of Sections 1 and 2 above on a medium 
--            customarily used for software interchange; or,</para>
--        </listitem>
--        <listitem>
--          <para>Accompany it with a written offer, valid for at least three years, to give any 
--            third party, for a charge no more than your cost of physically performing source 
--            distribution, a complete machine-readable copy of the corresponding source code, 
--            to be distributed under the terms of Sections 1 and 2 above on a medium customarily 
--            used for software interchange; or,</para>
--        </listitem>
--        <listitem>
--          <para>Accompany it with the information you received as to the offer to distribute 
--            corresponding source code. (This alternative is allowed only for noncommercial 
--            distribution and only if you received the program in object code or executable form 
--            with such an offer, in accord with Subsection b above.)</para>
--        </listitem>
--      </orderedlist>
--      </para>
--
--      <para>The source code for a work means the preferred form of the work for making modifications 
--      to it. For an executable work, complete source code means all the source code for all modules 
--      it contains, plus any associated interface definition files, plus the scripts used to control 
--      compilation and installation of the executable. However, as a special exception, the source 
--      code distributed need not include anything that is normally distributed (in either source or 
--      binary form) with the major components (compiler, kernel, and so on) of the operating system 
--      on which the executable runs, unless that component itself accompanies the executable.</para>
--
--      <para>If distribution of executable or object code is made by offering access to copy from a 
--      designated place, then offering equivalent access to copy the source code from the same place 
--      counts as distribution of the source code, even though third parties are not compelled to 
--      copy the source along with the object code.</para>
--    </section>
--    <section id="gpl-2-4">
--      <title>Section 4</title>
--      <para>You may not copy, modify, sublicense, or distribute the Program except as expressly provided 
--      under this License. Any attempt otherwise to copy, modify, sublicense or distribute the 
--      Program is void, and will automatically terminate your rights under this License. However, 
--      parties who have received copies, or rights, from you under this License will not have their 
--      licenses terminated so long as such parties remain in full compliance.</para>
--    </section>
--    <section id="gpl-2-5">
--      <title>Section 5</title>
--      <para>You are not required to accept this License, since you have not signed it. However, nothing 
--      else grants you permission to modify or distribute the Program or its derivative works. 
--      These actions are prohibited by law if you do not accept this License. Therefore, by modifying 
--      or distributing the Program (or any work based on the Program), you indicate your acceptance 
--      of this License to do so, and all its terms and conditions for copying, distributing or 
--      modifying the Program or works based on it.</para>
--    </section>
--    <section id="gpl-2-6">
--      <title>Section 6</title>
--      <para>Each time you redistribute the Program (or any work based on the Program), the recipient 
--      automatically receives a license from the original licensor to copy, distribute or modify 
--      the Program subject to these terms and conditions. You may not impose any further restrictions 
--      on the recipients&apos; exercise of the rights granted herein. You are not responsible for enforcing 
--      compliance by third parties to this License.</para>
--    </section>
--    <section id="gpl-2-7">
--      <title>Section 7</title>
--      <para>If, as a consequence of a court judgment or allegation of patent infringement or for any other 
--      reason (not limited to patent issues), conditions are imposed on you (whether by court order, 
--      agreement or otherwise) that contradict the conditions of this License, they do not excuse you 
--      from the conditions of this License. If you cannot distribute so as to satisfy simultaneously 
--      your obligations under this License and any other pertinent obligations, then as a consequence 
--      you may not distribute the Program at all. For example, if a patent license would not permit 
--      royalty-free redistribution of the Program by all those who receive copies directly or 
--      indirectly through you, then the only way you could satisfy both it and this License would be 
--      to refrain entirely from distribution of the Program.</para>
--
--      <para>If any portion of this section is held invalid or unenforceable under any particular circumstance, 
--      the balance of the section is intended to apply and the section as a whole is intended to apply 
--      in other circumstances.</para>
--
--      <para>It is not the purpose of this section to induce you to infringe any patents or other property 
--      right claims or to contest validity of any such claims; this section has the sole purpose of 
--      protecting the integrity of the free software distribution system, which is implemented by public 
--      license practices. Many people have made generous contributions to the wide range of software 
--      distributed through that system in reliance on consistent application of that system; it is up 
--      to the author/donor to decide if he or she is willing to distribute software through any other 
--      system and a licensee cannot impose that choice.</para>
--
--      <para>This section is intended to make thoroughly clear what is believed to be a consequence of the 
--      rest of this License.</para>
--    </section>
--    <section id="gpl-2-8">
--      <title>Section 8</title>
--      <para>If the distribution and/or use of the Program is restricted in certain countries either by patents 
--      or by copyrighted interfaces, the original copyright holder who places the Program under this License 
--      may add an explicit geographical distribution limitation excluding those countries, so that 
--      distribution is permitted only in or among countries not thus excluded. In such case, this License 
--      incorporates the limitation as if written in the body of this License.</para>
--    </section>
--    <section id="gpl-2-9">
--      <title>Section 9</title>
--      <para>The Free Software Foundation may publish revised and/or new versions of the General Public License 
--      from time to time. Such new versions will be similar in spirit to the present version, but may differ 
--      in detail to address new problems or concerns.</para>
--
--      <para>Each version is given a distinguishing version number. If the Program specifies a version number of 
--      this License which applies to it and <quote>any later version</quote>, you have the option of following the terms 
--      and conditions either of that version or of any later version published by the Free Software 
--      Foundation. If the Program does not specify a version number of this License, you may choose any 
--      version ever published by the Free Software Foundation.</para>
--    </section>
--    <section id="gpl-2-10">
--      <title>Section 10</title>
--      <para>If you wish to incorporate parts of the Program into other free programs whose distribution 
--      conditions are different, write to the author to ask for permission. For software which is copyrighted 
--      by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions 
--      for this. Our decision will be guided by the two goals of preserving the free status of all 
--      derivatives of our free software and of promoting the sharing and reuse of software generally.</para>
--    </section>
--    <section id="gpl-2-11">
--      <title>NO WARRANTY Section 11</title>
--      <para>BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT 
--      PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR 
--      OTHER PARTIES PROVIDE THE PROGRAM <quote>AS IS</quote> WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, 
--      INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 
--      PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 
--      PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.</para>
--    </section>
--    <section id="gpl-2-12">
--      <title>Section 12</title>
--      <para>IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR 
--      ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU 
--      FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 
--      USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED 
--      INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH 
--      ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH 
--      DAMAGES.</para>
--
--      <para>END OF TERMS AND CONDITIONS</para>
--    </section>
--  </section>
--  <section id="gpl-3">
--    <title>How to Apply These Terms to Your New Programs</title>
--    <para>If you develop a new program, and you want it to be of the greatest
--      possible use to the public, the best way to achieve this is to make it
--      free software which everyone can redistribute and change under these terms.</para>
--
--    <para>To do so, attach the following notices to the program.  It is safest
--      to attach them to the start of each source file to most effectively
--      convey the exclusion of warranty; and each file should have at least
--      the <quote>copyright</quote> line and a pointer to where the full notice is found.</para>
--
--    <para>&lt;one line to give the program&apos;s name and a brief idea of what it does.&gt;
--      Copyright (C) &lt;year&gt;    &lt;name of author&gt;</para>
--
--    <para>This program is free software; you can redistribute it and/or modify
--      it under the terms of the GNU General Public License as published by
--      the Free Software Foundation; either version 2 of the License, or
--      (at your option) any later version.</para>
--
--    <para>This program is distributed in the hope that it will be useful,
--      but WITHOUT ANY WARRANTY; without even the implied warranty of
--      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
--      GNU General Public License for more details.</para>
--
--    <para>You should have received a copy of the GNU General Public License
--      along with this program; if not, write to the Free Software
--      Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA</para>
--
--    <para>Also add information on how to contact you by electronic and paper mail.</para>
--
--    <para>If the program is interactive, make it output a short notice like this
--      when it starts in an interactive mode:</para>
--
--    <para>Gnomovision version 69, Copyright (C) year name of author
--      Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type <quote>show w</quote>.
--      This is free software, and you are welcome to redistribute it
--      under certain conditions; type <quote>show c</quote> for details.</para>
--
--    <para>The hypothetical commands <quote>show w</quote> and <quote>show c</quote> should 
--      show the appropriate parts of the General Public License.  Of course, the commands you 
--      use may be called something other than <quote>show w</quote> and <quote>show c</quote>; 
--      they could even be mouse-clicks or menu items--whatever suits your program.</para>
--
--    <para>You should also get your employer (if you work as a programmer) or your
--      school, if any, to sign a <quote>copyright disclaimer</quote> for the program, if
--      necessary.  Here is a sample; alter the names:</para>
--
--    <para>Yoyodyne, Inc., hereby disclaims all copyright interest in the program
--      <quote>Gnomovision</quote> (which makes passes at compilers) written by James Hacker.</para>
--
--    <para>&lt;signature of Ty Coon&gt;, 1 April 1989
--      Ty Coon, President of Vice</para>
--
--    <para>This General Public License does not permit incorporating your program into
--      proprietary programs.  If your program is a subroutine library, you may
--      consider it more useful to permit linking proprietary applications with the
--      library.  If this is what you want to do, use the GNU Library General
--      Public License instead of this License.</para>
--  </section>
--</appendix>
-Index: libstdc++-v3/doc/xml/manual/codecvt.xml
-===================================================================
---- libstdc++-v3/doc/xml/manual/codecvt.xml    (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ libstdc++-v3/doc/xml/manual/codecvt.xml    (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -595,7 +595,7 @@
-   <biblioentry>
-     <biblioid class="uri">
--      <ulink url="http://www.opengroup.org/austin">
-+      <ulink url="http://www.opengroup.org/austin/">
-       <citetitle>
-         System Interface Definitions, Issue 7 (IEEE Std. 1003.1-2008)
-       </citetitle>
-Index: libstdc++-v3/doc/xml/manual/using_exceptions.xml
-===================================================================
---- libstdc++-v3/doc/xml/manual/using_exceptions.xml   (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ libstdc++-v3/doc/xml/manual/using_exceptions.xml   (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -440,7 +440,7 @@
-   <biblioentry>
-     <biblioid class="uri">
--      <ulink url="http://www.opengroup.org/austin">
-+      <ulink url="http://www.opengroup.org/austin/">
-       <citetitle>
-         System Interface Definitions, Issue 7 (IEEE Std. 1003.1-2008)
-       </citetitle>
-Index: libstdc++-v3/doc/xml/manual/debug.xml
-===================================================================
---- libstdc++-v3/doc/xml/manual/debug.xml      (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ libstdc++-v3/doc/xml/manual/debug.xml      (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -45,7 +45,7 @@
-   communicate information about source constructs can be changed via
-   <code>-gdwarf-2</code> or <code>-gstabs</code> flags: some debugging
-   formats permit more expressive type and scope information to be
--  shown in gdb. Expressiveness can be enhanced by flags like
-+  shown in GDB. Expressiveness can be enhanced by flags like
-   <code>-g3</code>. The default debug information for a particular
-   platform can be identified via the value set by the
-   PREFERRED_DEBUGGING_TYPE macro in the gcc sources.
-@@ -197,14 +197,14 @@
-   </para>
- <para>
--  Many options are available for gdb itself: please see <ulink
--  url="http://sources.redhat.com/gdb/current/onlinedocs/gdb_13.html#SEC125">
--  "GDB features for C++" </ulink> in the gdb documentation. Also
-+  Many options are available for GDB itself: please see <ulink
-+  url="http://sources.redhat.com/gdb/current/onlinedocs/gdb/">
-+  "GDB features for C++" </ulink> in the GDB documentation. Also
-   recommended: the other parts of this manual.
- </para>
- <para>
--  These settings can either be switched on in at the gdb command line,
-+  These settings can either be switched on in at the GDB command line,
-   or put into a .gdbint file to establish default debugging
-   characteristics, like so:
- </para>
-Index: libstdc++-v3/doc/xml/manual/locale.xml
-===================================================================
---- libstdc++-v3/doc/xml/manual/locale.xml     (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ libstdc++-v3/doc/xml/manual/locale.xml     (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -571,7 +571,7 @@
-   <biblioentry>
-     <biblioid class="uri">
--      <ulink url="http://www.opengroup.org/austin">
-+      <ulink url="http://www.opengroup.org/austin/">
-       <citetitle>
-         System Interface Definitions, Issue 7 (IEEE Std. 1003.1-2008)
-       </citetitle>
-Index: libstdc++-v3/doc/xml/manual/messages.xml
-===================================================================
---- libstdc++-v3/doc/xml/manual/messages.xml   (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ libstdc++-v3/doc/xml/manual/messages.xml   (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -498,7 +498,7 @@
-   <biblioentry>
-     <biblioid class="uri">
--      <ulink url="http://www.opengroup.org/austin">
-+      <ulink url="http://www.opengroup.org/austin/">
-       <citetitle>
-         System Interface Definitions, Issue 7 (IEEE Std. 1003.1-2008)
-       </citetitle>
-Index: libstdc++-v3/doc/Makefile.in
-===================================================================
---- libstdc++-v3/doc/Makefile.in       (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ libstdc++-v3/doc/Makefile.in       (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -343,7 +343,6 @@
- xml_sources_extra = \
-       ${xml_dir}/gnu/fdl-1.2.xml \
--      ${xml_dir}/gnu/gpl-2.0.xml \
-       ${xml_dir}/gnu/gpl-3.0.xml
- xml_sources = \
-Index: libstdc++-v3/doc/Makefile.am
-===================================================================
---- libstdc++-v3/doc/Makefile.am       (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ libstdc++-v3/doc/Makefile.am       (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -204,7 +204,6 @@
- xml_sources_extra = \
-       ${xml_dir}/gnu/fdl-1.2.xml \
--      ${xml_dir}/gnu/gpl-2.0.xml \
-       ${xml_dir}/gnu/gpl-3.0.xml
- xml_sources = \
-Index: libstdc++-v3/include/bits/atomic_0.h
-===================================================================
---- libstdc++-v3/include/bits/atomic_0.h       (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ libstdc++-v3/include/bits/atomic_0.h       (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -1,6 +1,6 @@
- // -*- C++ -*- header.
--// Copyright (C) 2008, 2009
-+// Copyright (C) 2008, 2009, 2010, 2011
- // Free Software Foundation, Inc.
- //
- // This file is part of the GNU ISO C++ Library.  This library is free
-@@ -49,34 +49,34 @@
-     atomic_flag_clear_explicit(__g, __x);                                \
-     __r; })
--#define _ATOMIC_STORE_(__a, __m, __x)                                    \
-+#define _ATOMIC_STORE_(__a, __n, __x)                                    \
-   ({__typeof__ _ATOMIC_MEMBER_* __p = &_ATOMIC_MEMBER_;                          \
--    __typeof__(__m) __v = (__m);                                         \
-+    __typeof__(__n) __w = (__n);                                         \
-     __atomic_flag_base* __g = __atomic_flag_for_address(__p);            \
-     __atomic_flag_wait_explicit(__g, __x);                               \
--    *__p = __v;                                                                  \
-+    *__p = __w;                                                                  \
-     atomic_flag_clear_explicit(__g, __x);                                \
--    __v; })
-+    __w; })
--#define _ATOMIC_MODIFY_(__a, __o, __m, __x)                              \
-+#define _ATOMIC_MODIFY_(__a, __o, __n, __x)                              \
-   ({__typeof__ _ATOMIC_MEMBER_* __p = &_ATOMIC_MEMBER_;                          \
--    __typeof__(__m) __v = (__m);                                         \
-+    __typeof__(__n) __w = (__n);                                         \
-     __atomic_flag_base* __g = __atomic_flag_for_address(__p);            \
-     __atomic_flag_wait_explicit(__g, __x);                               \
-     __typeof__ _ATOMIC_MEMBER_ __r = *__p;                               \
--    *__p __o __v;                                                        \
-+    *__p __o __w;                                                        \
-     atomic_flag_clear_explicit(__g, __x);                                \
-     __r; })
--#define _ATOMIC_CMPEXCHNG_(__a, __e, __m, __x)                                   \
-+#define _ATOMIC_CMPEXCHNG_(__a, __e, __n, __x)                                   \
-   ({__typeof__ _ATOMIC_MEMBER_* __p = &_ATOMIC_MEMBER_;                          \
-     __typeof__(__e) __q = (__e);                                         \
--    __typeof__(__m) __v = (__m);                                         \
-+    __typeof__(__n) __w = (__n);                                         \
-     bool __r;                                                            \
-     __atomic_flag_base* __g = __atomic_flag_for_address(__p);            \
-     __atomic_flag_wait_explicit(__g, __x);                               \
-     __typeof__ _ATOMIC_MEMBER_ __t__ = *__p;                             \
--    if (__t__ == *__q) { *__p = __v; __r = true; }                       \
-+    if (__t__ == *__q) { *__p = __w; __r = true; }                       \
-     else { *__q = __t__; __r = false; }                                          \
-     atomic_flag_clear_explicit(__g, __x);                                \
-     __r; })
-Index: libstdc++-v3/ChangeLog
-===================================================================
---- libstdc++-v3/ChangeLog     (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ libstdc++-v3/ChangeLog     (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -1,3 +1,42 @@
-+2011-02-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
++  name_offset = 0;
++  *nsects = nsects_in = 0;
 +
-+      * doc/xml/gnu/gpl-2.0.xml: Remove.
-+      * doc/Makefile.am: Update.
-+      * doc/Makefile.in: Regenerate.
++  /* Count the number of sections we start with.  */
 +
-+2011-02-06  Gerald Pfeifer  <gerald@pfeifer.com>
++  for (section = sobj->sections; section != NULL; section = section->next)
++    nsects_in++;
 +
-+      * doc/xml/manual/debug.xml: Use GDB instead of gdb.
-+      Adjust link to GDB manual.
++  if (sobj->segment_name != NULL)
++    {
++      /* We will only write 3 sections: wrapped data, index and names.  */
 +
-+2011-02-01  Paolo Carlini  <paolo.carlini@oracle.com>
++      *nsects = 3;
 +
-+      PR libstdc++/46914
-+      * include/bits/atomic_0.h (_ATOMIC_STORE_, _ATOMIC_MODIFY_,
-+      _ATOMIC_CMPEXCHNG_): Rename __v -> __w, and __m -> __n, to
-+      avoid name conflicts.
++      /* The index has four entries per wrapped section:
++         Section Offset, length,  Name offset, length.
++       Where the offsets are based at the start of the wrapper and name
++       sections respectively.
++       The values are stored as 32 bit int for both 32 and 64 bit mach-o
++       since the size of a mach-o MH_OBJECT cannot exceed 4G owing to
++       other constraints.  */
 +
-+2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
++      index = XNEWVEC (unsigned int, nsects_in * 4);
 +
-+      * doc/xml/manual/codecvt.xml: Fix link to The Austin Common
-+      Standards Revision Group.
-+      * doc/xml/manual/locale.xml: Ditto.
-+      * doc/xml/manual/messages.xml: Ditto.
-+      * doc/xml/manual/using_exceptions.xml: Ditto.
++      /* We now need to figure out the size of the names section.  This just
++       stores the names as null-terminated c strings, packed without any
++       alignment padding.  */
 +
-+2011-01-19  Graham Reed  <greed@pobox.com>
++      for (section = sobj->sections, sect = 0; section != NULL;
++         section = section->next, sect++)
++      {
++        index[sect*4+2] = name_offset;
++        index[sect*4+3] = strlen (section->name) + 1;
++        name_offset += strlen (section->name) + 1;
++      }
++      snames = XNEWVEC (char, name_offset);
++    }
++  else
++    {
++      *nsects = nsects_in;
++      index = NULL;
++      snames = NULL;
++    }
 +
-+      PR libstdc++/47354
-+      * src/bitmap_allocator.cc (free_list::_M_get): Lock mutex.
+   sechdr_offset = hdrsize + seghdrsize;
+-  cmdsize = seghdrsize + nsects * sechdrsize;
++  cmdsize = seghdrsize + *nsects * sechdrsize;
+   offset = hdrsize + cmdsize;
+-  name_offset = 0;
+   secaddr = 0;
+-  for (section = sobj->sections; section != NULL; section = section->next)
++  for (section = sobj->sections, sect = 0;
++       section != NULL; section = section->next, sect++)
+     {
+       size_t mask;
+       size_t new_offset;
+       size_t secsize;
+       struct simple_object_write_section_buffer *buffer;
+-      char namebuf[MACH_O_NAME_LEN + 1];
+       mask = (1U << section->align) - 1;
+       new_offset = offset + mask;
+@@ -877,39 +1153,126 @@
+         secsize += buffer->size;
+       }
+-      snprintf (namebuf, sizeof namebuf, "__%08X", name_offset);
++      if (sobj->segment_name != NULL)
++      {
++        index[sect*4+0] = (unsigned int) offset;
++        index[sect*4+1] = secsize;
++        /* Stash the section name in our table.  */
++        memcpy (snames + index[sect * 4 + 2], section->name,
++                index[sect * 4 + 3]);
++      }
++      else
++      {
++        char namebuf[MACH_O_NAME_LEN + 1];
++        char segnbuf[MACH_O_NAME_LEN + 1];
++        char *comma;
 +
-+2010-12-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
++        /* Try to extract segment,section from the input name.  */
 +
-+      Backport from mainline:
-+      2010-12-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
++        memset (namebuf, 0, sizeof namebuf);
++        memset (segnbuf, 0, sizeof segnbuf);
++        comma = strchr (section->name, ',');
++        if (comma != NULL)
++          {
++            int len = comma - section->name;
++            len = len > MACH_O_NAME_LEN ? MACH_O_NAME_LEN : len;
++            strncpy (namebuf, section->name, len);
++            strncpy (segnbuf, comma + 1, MACH_O_NAME_LEN);
++          }
++        else /* just try to copy the name, leave segment blank.  */
++          strncpy (namebuf, section->name, MACH_O_NAME_LEN);
++
++        if (!simple_object_mach_o_write_section_header (sobj, descriptor,
++                                                        sechdr_offset,
++                                                        namebuf, segnbuf,
++                                                        secaddr, secsize,
++                                                        offset,
++                                                        section->align,
++                                                        errmsg, err))
++          return 0;
++        sechdr_offset += sechdrsize;
++      }
 +
-+      * testsuite/lib/libstdc++.exp (v3-build_support): Delete
-+      libtestc++.a before creation.
++      offset += secsize;
++      secaddr += secsize;
++    }
 +
- 2010-12-16  Release Manager
++  if (sobj->segment_name != NULL)
++    {
++      size_t secsize;
++      unsigned int i;
++
++      /* Write the section header for the wrapper.  */
++      /* Account for any initial aligment - which becomes the alignment for this
++       created section.  */
++
++      secsize = (offset - index[0]);
+       if (!simple_object_mach_o_write_section_header (sobj, descriptor,
+-                                                    sechdr_offset, namebuf,
+-                                                    secaddr, secsize, offset,
+-                                                    section->align,
++                                                    sechdr_offset,
++                                                    GNU_WRAPPER_SECTS,
++                                                    sobj->segment_name,
++                                                    0 /*secaddr*/,
++                                                    secsize, index[0],
++                                                    sobj->sections->align,
+                                                     errmsg, err))
+       return 0;
++      /* Subtract the wrapper section start from the begining of each sub
++       section.  */
++
++      for (i = 1; i < nsects_in; ++i)
++      index[4 * i] -= index[0];
++      index[0] = 0;
++
+       sechdr_offset += sechdrsize;
+-      offset += secsize;
+-      name_offset += strlen (section->name) + 1;
+-      secaddr += secsize;
+-    }
  
-       * GCC 4.5.2 released.
-Index: libstdc++-v3/testsuite/lib/libstdc++.exp
-===================================================================
---- libstdc++-v3/testsuite/lib/libstdc++.exp   (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ libstdc++-v3/testsuite/lib/libstdc++.exp   (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -586,6 +586,15 @@
+-  /* Write out the section names.  */
++      /* Write out the section names.
++       ... the header ...
++       name_offset contains the length of the section.  It is not aligned.  */
+-  if (!simple_object_mach_o_write_section_header (sobj, descriptor,
+-                                                sechdr_offset,
+-                                                GNU_SECTION_NAMES, secaddr,
+-                                                name_offset, offset, 0,
+-                                                errmsg, err))
+-    return 0;
++      if (!simple_object_mach_o_write_section_header (sobj, descriptor,
++                                                    sechdr_offset,
++                                                    GNU_WRAPPER_NAMES,
++                                                    sobj->segment_name,
++                                                    0 /*secaddr*/,
++                                                    name_offset,
++                                                    offset,
++                                                    0, errmsg, err))
++      return 0;
+-  for (section = sobj->sections; section != NULL; section = section->next)
+-    {
+-      size_t namelen;
++      /* ... and the content.. */
++      if (!simple_object_internal_write (descriptor, offset,
++                                       (const unsigned char *) snames,
++                                       name_offset, errmsg, err))
++      return 0;
+-      namelen = strlen (section->name) + 1;
++      sechdr_offset += sechdrsize;
++      secaddr += name_offset;
++      offset += name_offset;
++
++      /* Now do the index, we'll align this to 4 bytes although the read code
++       will handle unaligned.  */
++
++      offset += 3;
++      offset &= ~0x03;
++      if (!simple_object_mach_o_write_section_header (sobj, descriptor,
++                                                    sechdr_offset,
++                                                    GNU_WRAPPER_INDEX,
++                                                    sobj->segment_name,
++                                                    0 /*secaddr*/,
++                                                    nsects_in * 16,
++                                                    offset,
++                                                    2, errmsg, err))
++      return 0;
++
++      /* ... and the content.. */
+       if (!simple_object_internal_write (descriptor, offset,
+-                                       (const unsigned char *) section->name,
+-                                       namelen, errmsg, err))
++                                       (const unsigned char *) index,
++                                       nsects_in*16, errmsg, err))
+       return 0;
+-      offset += namelen;
++
++      XDELETEVEC (index);
++      XDELETEVEC (snames);
      }
  
-     # Collect into libtestc++.a
-+    # Delete libtestc++.a first.  Mixed 32 and 64-bit archives cannot be
-+    # linked on IRIX 6.
-+    # Use same procedure as gcc-dg.exp (remove-build-file).
-+    if [is_remote host] {
-+      # Ensure the host knows the file is gone by deleting there
-+      # first.
-+      remote_file host delete "./libtestc++.a"
-+      }
-+    remote_file build delete "./libtestc++.a"
-     if  [info exists env(AR)] {
-       set ar $env(AR)
-     } else {
-Index: configure.ac
-===================================================================
---- configure.ac       (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ configure.ac       (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -1510,8 +1510,6 @@
- AC_SUBST(poststage1_ldflags)
- # Check for PPL
--ppl_major_version=0
--ppl_minor_version=10
- ppllibs=" -lppl_c -lppl -lgmpxx"
- pplinc=
-@@ -1552,9 +1550,9 @@
- if test "x$with_ppl" != "xno" -a "${ENABLE_PPL_CHECK}" = "yes"; then
-   saved_CFLAGS="$CFLAGS"
-   CFLAGS="$CFLAGS $pplinc $gmpinc"
--  AC_MSG_CHECKING([for version $ppl_major_version.$ppl_minor_version of PPL])
-+  AC_MSG_CHECKING([for version 0.10 (or later revision) of PPL])
-   AC_TRY_COMPILE([#include "ppl_c.h"],[
--  #if PPL_VERSION_MAJOR != $ppl_major_version || PPL_VERSION_MINOR != $ppl_minor_version
-+  #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 10
-   choke me
-   #endif
-   ], [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no]); ppllibs= ; pplinc= ; with_ppl=no ])
+   /* Write out the segment header.  */
+@@ -923,9 +1286,8 @@
+             MACH_O_LC_SEGMENT);
+       set_32 (hdr + offsetof (struct mach_o_segment_command_32, cmdsize),
+             cmdsize);
+-      strncpy (((char *) hdr
+-              + offsetof (struct mach_o_segment_command_32, segname)),
+-             sobj->segment_name, MACH_O_NAME_LEN);
++     /* MH_OBJECTS have a single, anonymous, segment - so the segment name
++       is left empty.  */
+       /* vmaddr left as zero.  */
+       /* vmsize left as zero.  */
+       set_32 (hdr + offsetof (struct mach_o_segment_command_32, fileoff),
+@@ -935,7 +1297,7 @@
+       /* maxprot left as zero.  */
+       /* initprot left as zero.  */
+       set_32 (hdr + offsetof (struct mach_o_segment_command_32, nsects),
+-            nsects);
++            *nsects);
+       /* flags left as zero.  */
+     }
+   else
+@@ -951,9 +1313,8 @@
+             MACH_O_LC_SEGMENT);
+       set_32 (hdr + offsetof (struct mach_o_segment_command_64, cmdsize),
+             cmdsize);
+-      strncpy (((char *) hdr
+-              + offsetof (struct mach_o_segment_command_64, segname)),
+-             sobj->segment_name, MACH_O_NAME_LEN);
++      /* MH_OBJECTS have a single, anonymous, segment - so the segment name
++       is left empty.  */
+       /* vmaddr left as zero.  */
+       /* vmsize left as zero.  */
+       set_64 (hdr + offsetof (struct mach_o_segment_command_64, fileoff),
+@@ -963,7 +1324,7 @@
+       /* maxprot left as zero.  */
+       /* initprot left as zero.  */
+       set_32 (hdr + offsetof (struct mach_o_segment_command_64, nsects),
+-            nsects);
++            *nsects);
+       /* flags left as zero.  */
+ #endif
+     }
+@@ -978,23 +1339,17 @@
+ simple_object_mach_o_write_to_file (simple_object_write *sobj, int descriptor,
+                                   int *err)
+ {
+-  size_t nsects;
+-  simple_object_write_section *section;
++  size_t nsects = 0;
+   const char *errmsg;
+-  /* Start at 1 for symbol_names section.  */
+-  nsects = 1;
+-  for (section = sobj->sections; section != NULL; section = section->next)
+-    ++nsects;
++  if (!simple_object_mach_o_write_segment (sobj, descriptor, &nsects,
++                                         &errmsg, err))
++    return errmsg;
+   if (!simple_object_mach_o_write_header (sobj, descriptor, nsects,
+                                         &errmsg, err))
+     return errmsg;
+-  if (!simple_object_mach_o_write_segment (sobj, descriptor, nsects,
+-                                         &errmsg, err))
+-    return errmsg;
+-
+   return NULL;
+ }
 Index: ChangeLog
 ===================================================================
---- ChangeLog  (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ ChangeLog  (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -1,3 +1,11 @@
-+2011-01-25  Richard Guenther  <rguenther@suse.de>
+--- ChangeLog  (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ ChangeLog  (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -1,3 +1,23 @@
++2012-01-02  Richard Guenther  <rguenther@suse.de>
 +
-+      Backport from mainline
-+      2010-05-05  Sebastian Pop  <sebastian.pop@amd.com>
++      PR bootstrap/51686
++      * Makefile.def (install-strip-gcc): Depend on install-strip-lto-plugin.
++      * Makefile.in: Regenerate.
 +
-+      * configure.ac: Allow all the versions greater than 0.10 of PPL.
-+      * configure: Regenerated.
++2011-12-18  Eric Botcazou  <ebotcazou@adacore.com>
 +
- 2010-12-16  Release Manager
-       * GCC 4.5.2 released.
-Index: libffi/ChangeLog
-===================================================================
---- libffi/ChangeLog   (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ libffi/ChangeLog   (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -1,3 +1,18 @@
-+2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
++      * configure: Regenerate.
 +
-+      PR libffi/46661
-+      * testsuite/libffi.call/cls_pointer.c (main): Cast void * to
-+      uintptr_t first.
-+      * testsuite/libffi.call/cls_pointer_stack.c (main): Likewise.
++2011-11-20  Andreas Tobler  <andreast@fgznet.ch>
 +
-+2010-12-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
++      * libtool.m4: Additional FreeBSD 10 fixes.
 +
-+      Backport from mainline:
-+      2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
++2011-11-18  Iain Sandoe  <iains@gcc.gnu.org>
 +
-+      * testsuite/libffi.call/ffitest.h [__sgi] (PRId64, PRIu64): Define.
-+      (PRIuPTR): Define.
++      PR target/49992
++      * configure.ac: Remove ranlib special-casing for Darwin.
++      * configure: Regenerate.
 +
- 2010-12-16  Release Manager
+ 2011-10-26  Release Manager
  
-       * GCC 4.5.2 released.
-Index: libffi/testsuite/libffi.call/cls_pointer.c
+       * GCC 4.6.2 released.
+Index: lto-plugin/configure
 ===================================================================
---- libffi/testsuite/libffi.call/cls_pointer.c (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ libffi/testsuite/libffi.call/cls_pointer.c (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -65,7 +65,7 @@
-       CHECK(ffi_prep_closure_loc(pcl, &cif, cls_pointer_gn, NULL, code) == FFI_OK);
+--- lto-plugin/configure       (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ lto-plugin/configure       (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -622,6 +622,7 @@
+ GREP
+ SED
+ LIBTOOL
++ac_lto_plugin_warn_cflags
+ am__fastdepCC_FALSE
+ am__fastdepCC_TRUE
+ CCDEPMODE
+@@ -4040,6 +4041,45 @@
+   fi
+ fi
  
--      res = (ffi_arg)((void*(*)(void*, void*))(code))(arg1, arg2);
-+      res = (ffi_arg)(uintptr_t)((void*(*)(void*, void*))(code))(arg1, arg2);
-       /* { dg-output "\n0x12345678 0x89abcdef: 0x9be02467" } */
-       printf("res: 0x%08x\n", (unsigned int) res);
-       /* { dg-output "\nres: 0x9be02467" } */
-Index: libffi/testsuite/libffi.call/cls_pointer_stack.c
++ac_lto_plugin_warn_cflags=
++save_CFLAGS="$CFLAGS"
++for option in -Wall; do
++  as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
++
++  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
++$as_echo_n "checking whether $CC supports $option... " >&6; }
++if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
++  $as_echo_n "(cached) " >&6
++else
++  CFLAGS="$option"
++    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h.  */
++
++int
++main ()
++{
++
++  ;
++  return 0;
++}
++_ACEOF
++if ac_fn_c_try_compile "$LINENO"; then :
++  eval "$as_acx_Woption=yes"
++else
++  eval "$as_acx_Woption=no"
++fi
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
++
++fi
++eval ac_res=\$$as_acx_Woption
++             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
++$as_echo "$ac_res" >&6; }
++  if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
++  ac_lto_plugin_warn_cflags="$ac_lto_plugin_warn_cflags${ac_lto_plugin_warn_cflags:+ }$option"
++fi
++  done
++CFLAGS="$save_CFLAGS"
++
+ case `pwd` in
+   *\ * | *\   *)
+     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
+@@ -8733,7 +8773,7 @@
+       ;;
+     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
+-    freebsd2*)
++    freebsd2.*)
+       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+       hardcode_direct=yes
+       hardcode_minus_L=yes
+@@ -9646,7 +9686,7 @@
+     objformat=`/usr/bin/objformat`
+   else
+     case $host_os in
+-    freebsd[123]*) objformat=aout ;;
++    freebsd[23].*) objformat=aout ;;
+     *) objformat=elf ;;
+     esac
+   fi
+@@ -9664,7 +9704,7 @@
+   esac
+   shlibpath_var=LD_LIBRARY_PATH
+   case $host_os in
+-  freebsd2*)
++  freebsd2.*)
+     shlibpath_overrides_runpath=yes
+     ;;
+   freebsd3.[01]* | freebsdelf3.[01]*)
+@@ -10498,7 +10538,7 @@
+   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
+   lt_status=$lt_dlunknown
+   cat > conftest.$ac_ext <<_LT_EOF
+-#line 10501 "configure"
++#line 10541 "configure"
+ #include "confdefs.h"
+ #if HAVE_DLFCN_H
+@@ -10604,7 +10644,7 @@
+   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
+   lt_status=$lt_dlunknown
+   cat > conftest.$ac_ext <<_LT_EOF
+-#line 10607 "configure"
++#line 10647 "configure"
+ #include "confdefs.h"
+ #if HAVE_DLFCN_H
+Index: lto-plugin/Makefile.in
+===================================================================
+--- lto-plugin/Makefile.in     (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ lto-plugin/Makefile.in     (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -47,6 +47,7 @@
+       $(top_srcdir)/../config/lead-dot.m4 \
+       $(top_srcdir)/../config/lthostflags.m4 \
+       $(top_srcdir)/../config/override.m4 \
++      $(top_srcdir)/../config/warnings.m4 \
+       $(top_srcdir)/../libtool.m4 $(top_srcdir)/../ltoptions.m4 \
+       $(top_srcdir)/../ltsugar.m4 $(top_srcdir)/../ltversion.m4 \
+       $(top_srcdir)/../lt~obsolete.m4 $(top_srcdir)/configure.ac
+@@ -167,6 +168,7 @@
+ abs_top_srcdir = @abs_top_srcdir@
+ ac_ct_CC = @ac_ct_CC@
+ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
++ac_lto_plugin_warn_cflags = @ac_lto_plugin_warn_cflags@
+ am__include = @am__include@
+ am__leading_dot = @am__leading_dot@
+ am__quote = @am__quote@
+@@ -227,7 +229,7 @@
+ gcc_version := $(shell cat $(top_srcdir)/../gcc/BASE-VER)
+ libexecsubdir := $(libexecdir)/gcc/$(target_noncanonical)/$(gcc_version)
+ AM_CPPFLAGS = -I$(top_srcdir)/../include $(DEFS)
+-AM_CFLAGS = -Wall -Werror
++AM_CFLAGS = @ac_lto_plugin_warn_cflags@
+ AM_LIBTOOLFLAGS = --tag=disable-static
+ libexecsub_LTLIBRARIES = liblto_plugin.la
+ gcc_build_dir = ../$(host_subdir)/gcc
+Index: lto-plugin/configure.ac
+===================================================================
+--- lto-plugin/configure.ac    (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ lto-plugin/configure.ac    (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -6,6 +6,7 @@
+ AM_MAINTAINER_MODE
+ AC_PROG_CC
+ AC_SYS_LARGEFILE
++ACX_PROG_CC_WARNING_OPTS([-Wall], [ac_lto_plugin_warn_cflags])
+ AM_PROG_LIBTOOL
+ ACX_LT_HOST_FLAGS
+ AC_SUBST(target_noncanonical)
+Index: lto-plugin/ChangeLog
+===================================================================
+--- lto-plugin/ChangeLog       (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ lto-plugin/ChangeLog       (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -1,3 +1,20 @@
++2012-01-03  Richard Guenther  <rguenther@suse.de>
++
++      Backport from mainline
++      2011-08-10  Richard Guenther  <rguenther@suse.de>
++
++      PR bootstrap/49907
++      lto-plugin/
++      * configure.ac: Use ACX_PROG_CC_WARNING_OPTS to detect -Wall presence.
++      * Makefile.am (AM_CFLAGS): Adjust.  Do not build with -Werror.
++      * configure: Regenerate.
++      * Makefile.in: Likewise.
++      * aclocal.m4: Likewise.
++
++2011-11-20  Andreas Tobler  <andreast@fgznet.ch>
++
++      * configure: Regenerate.
++
+ 2011-10-26  Release Manager
+       * GCC 4.6.2 released.
+Index: lto-plugin/Makefile.am
+===================================================================
+--- lto-plugin/Makefile.am     (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ lto-plugin/Makefile.am     (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -8,7 +8,7 @@
+ libexecsubdir := $(libexecdir)/gcc/$(target_noncanonical)/$(gcc_version)
+ AM_CPPFLAGS = -I$(top_srcdir)/../include $(DEFS)
+-AM_CFLAGS = -Wall -Werror
++AM_CFLAGS = @ac_lto_plugin_warn_cflags@
+ AM_LIBTOOLFLAGS = --tag=disable-static
+ libexecsub_LTLIBRARIES = liblto_plugin.la
+Index: lto-plugin/aclocal.m4
+===================================================================
+--- lto-plugin/aclocal.m4      (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ lto-plugin/aclocal.m4      (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -973,6 +973,7 @@
+ m4_include([../config/lead-dot.m4])
+ m4_include([../config/lthostflags.m4])
+ m4_include([../config/override.m4])
++m4_include([../config/warnings.m4])
+ m4_include([../libtool.m4])
+ m4_include([../ltoptions.m4])
+ m4_include([../ltsugar.m4])
+Index: libffi/configure
+===================================================================
+--- libffi/configure   (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ libffi/configure   (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -9001,7 +9001,7 @@
+       ;;
+     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
+-    freebsd2*)
++    freebsd2.*)
+       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+       hardcode_direct=yes
+       hardcode_minus_L=yes
+@@ -9914,7 +9914,7 @@
+     objformat=`/usr/bin/objformat`
+   else
+     case $host_os in
+-    freebsd[123]*) objformat=aout ;;
++    freebsd[23].*) objformat=aout ;;
+     *) objformat=elf ;;
+     esac
+   fi
+@@ -9932,7 +9932,7 @@
+   esac
+   shlibpath_var=LD_LIBRARY_PATH
+   case $host_os in
+-  freebsd2*)
++  freebsd2.*)
+     shlibpath_overrides_runpath=yes
+     ;;
+   freebsd3.[01]* | freebsdelf3.[01]*)
+Index: libffi/ChangeLog
 ===================================================================
---- libffi/testsuite/libffi.call/cls_pointer_stack.c   (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ libffi/testsuite/libffi.call/cls_pointer_stack.c   (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -129,7 +129,7 @@
-       CHECK(ffi_prep_closure_loc(pcl, &cif, cls_pointer_gn, NULL, code) == FFI_OK);
--      res = (ffi_arg)((void*(*)(void*, void*))(code))(arg1, arg2);
-+      res = (ffi_arg)(uintptr_t)((void*(*)(void*, void*))(code))(arg1, arg2);
+--- libffi/ChangeLog   (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ libffi/ChangeLog   (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -1,3 +1,7 @@
++2011-11-20  Andreas Tobler  <andreast@fgznet.ch>
++
++      * configure: Regenerate.
++
+ 2011-10-26  Release Manager
  
-       printf("res: 0x%08x\n", (unsigned int) res);
-       // { dg-output "\n0x01234567 0x89abcdef: 0x8acf1356" }
-Index: libffi/testsuite/libffi.call/ffitest.h
+       * GCC 4.6.2 released.
+Index: libssp/configure
 ===================================================================
---- libffi/testsuite/libffi.call/ffitest.h     (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ libffi/testsuite/libffi.call/ffitest.h     (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -77,6 +77,26 @@
- #define PRIuPTR "lu"
- #endif
+--- libssp/configure   (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ libssp/configure   (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -8864,7 +8864,7 @@
+       ;;
  
-+/* IRIX kludge.  */
-+#if defined(__sgi)
-+/* IRIX 6.5 <inttypes.h> provides all definitions, but only for C99
-+   compilations.  */
-+#if (_MIPS_SZLONG == 32)
-+#define PRId64 "lld"
-+#define PRIu64 "llu"
-+#endif
-+/* This doesn't match <inttypes.h>, which always has "lld" here, but the
-+   arguments are uint64_t, int64_t, which are unsigned long, long for
-+   64-bit in <sgidefs.h>.  */
-+#if (_MIPS_SZLONG == 64)
-+#define PRId64 "ld"
-+#define PRIu64 "lu"
-+#endif
-+/* This doesn't match <inttypes.h>, which has "u" here, but the arguments
-+   are uintptr_t, which is always unsigned long.  */
-+#define PRIuPTR "lu"
-+#endif
-+
- /* Solaris < 10 kludge.  */
- #if defined(__sun__) && defined(__svr4__) && !defined(PRIuPTR)
- #if defined(__arch64__) || defined (__x86_64__)
-Index: libjava/classpath/lib/java/security/VMAccessController.class
-===================================================================
-Nie można wyświetlić: plik binarny.
-svn:mime-type = application/octet-stream
+     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
+-    freebsd2*)
++    freebsd2.*)
+       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+       hardcode_direct=yes
+       hardcode_minus_L=yes
+@@ -9780,7 +9780,7 @@
+     objformat=`/usr/bin/objformat`
+   else
+     case $host_os in
+-    freebsd[123]*) objformat=aout ;;
++    freebsd[23].*) objformat=aout ;;
+     *) objformat=elf ;;
+     esac
+   fi
+@@ -9798,7 +9798,7 @@
+   esac
+   shlibpath_var=LD_LIBRARY_PATH
+   case $host_os in
+-  freebsd2*)
++  freebsd2.*)
+     shlibpath_overrides_runpath=yes
+     ;;
+   freebsd3.[01]* | freebsdelf3.[01]*)
+Index: libssp/ChangeLog
+===================================================================
+--- libssp/ChangeLog   (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ libssp/ChangeLog   (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -1,3 +1,7 @@
++2011-11-20  Andreas Tobler  <andreast@fgznet.ch>
++
++      * configure: Regenerate.
++
+ 2011-10-26  Release Manager
+       * GCC 4.6.2 released.
+Index: config/ChangeLog
+===================================================================
+--- config/ChangeLog   (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ config/ChangeLog   (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -1,3 +1,7 @@
++2011-12-18  Eric Botcazou  <ebotcazou@adacore.com>
++
++      * acx.m4 (Test for GNAT): Update comment and add quotes in final test.
++
+ 2011-10-26  Release Manager
+       * GCC 4.6.2 released.
+Index: config/acx.m4
+===================================================================
+--- config/acx.m4      (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ config/acx.m4      (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -356,9 +356,9 @@
+ ac_c_preproc_warn_flag=yes])# AC_PROG_CPP_WERROR
+ # Test for GNAT.
+-# We require the gnatbind program, and a compiler driver that
+-# understands Ada.  We use the user's CC setting, already found,
+-# and possibly add $1 to the command-line parameters.
++# We require the gnatbind & gnatmake programs, as well as a compiler driver
++# that understands Ada.  We use the user's CC setting, already found, and
++# possibly add $1 to the command-line parameters.
+ #
+ # Sets the shell variable have_gnat to yes or no as appropriate, and
+ # substitutes GNATBIND and GNATMAKE.
+@@ -387,7 +387,7 @@
+ fi
+ rm -f conftest.*])
+-if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
++if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
+   have_gnat=yes
+ else
+   have_gnat=no
+Index: libjava/libltdl/configure
+===================================================================
+--- libjava/libltdl/configure  (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ libjava/libltdl/configure  (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -7355,7 +7355,7 @@
+       ;;
+     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
+-    freebsd2*)
++    freebsd2.*)
+       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+       hardcode_direct=yes
+       hardcode_minus_L=yes
+@@ -7968,7 +7968,7 @@
+   esac
+   shlibpath_var=LD_LIBRARY_PATH
+   case $host_os in
+-  freebsd2*)
++  freebsd2.*)
+     shlibpath_overrides_runpath=yes
+     ;;
+   freebsd3.[01]* | freebsdelf3.[01]*)
+Index: libjava/libltdl/ChangeLog
+===================================================================
+--- libjava/libltdl/ChangeLog  (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ libjava/libltdl/ChangeLog  (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -1,3 +1,8 @@
++2011-11-20  Andreas Tobler  <andreast@fgznet.ch>
++
++      * acinclude.m4: Additional FreeBSD 10 fixes.
++      * configure: Regenerate.
++
+ 2011-10-26  Release Manager
+       * GCC 4.6.2 released.
+Index: libjava/libltdl/acinclude.m4
+===================================================================
+--- libjava/libltdl/acinclude.m4       (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ libjava/libltdl/acinclude.m4       (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -1377,7 +1377,7 @@
+   esac
+   shlibpath_var=LD_LIBRARY_PATH
+   case $host_os in
+-  freebsd2*)
++  freebsd2.*)
+     shlibpath_overrides_runpath=yes
+     ;;
+   freebsd3.[[01]]* | freebsdelf3.[[01]]*)
+@@ -3035,7 +3035,7 @@
+       ;;
+     esac
+     ;;
+-  freebsd[[12]]*)
++  freebsd2.*)
+     # C++ shared libraries reported to be fairly broken before switch to ELF
+     _LT_AC_TAGVAR(ld_shlibs, $1)=no
+     ;;
+@@ -5669,7 +5669,7 @@
+       ;;
+     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
+-    freebsd2*)
++    freebsd2.*)
+       _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+       _LT_AC_TAGVAR(hardcode_direct, $1)=yes
+       _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
+Index: libjava/configure.ac
+===================================================================
+--- libjava/configure.ac       (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ libjava/configure.ac       (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -1060,7 +1060,7 @@
+      *-*-cygwin*)
+       # Don't set THREADLIBS here.  Cygwin doesn't have -lpthread.
+       ;;
+-     *-*-freebsd[[1234]]*)
++     *-*-freebsd[[34]].*)
+       # Before FreeBSD 5, it didn't have -lpthread (or any library which
+       # merely adds pthread_* functions) but it does have a -pthread switch
+       # which is required at link-time to select -lc_r *instead* of -lc.
+Index: libjava/classpath/config.rpath
+===================================================================
+--- libjava/classpath/config.rpath     (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ libjava/classpath/config.rpath     (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -361,7 +361,7 @@
+       hardcode_libdir_flag_spec='-R$libdir'
+       hardcode_direct=yes
+       ;;
+-    freebsd2*)
++    freebsd2.*)
+       hardcode_direct=yes
+       hardcode_minus_L=yes
+       ;;
+@@ -533,7 +533,7 @@
+     ;;
+   freebsd* | dragonfly*)
+     case "$host_os" in
+-      freebsd[123]*)
++      freebsd[23].*)
+         library_names_spec='$libname$shrext$versuffix' ;;
+       *)
+         library_names_spec='$libname$shrext' ;;
+Index: libjava/classpath/configure
+===================================================================
+--- libjava/classpath/configure        (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ libjava/classpath/configure        (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -10025,7 +10025,7 @@
+       ;;
+     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
+-    freebsd2*)
++    freebsd2.*)
+       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+       hardcode_direct=yes
+       hardcode_minus_L=yes
+@@ -10941,7 +10941,7 @@
+     objformat=`/usr/bin/objformat`
+   else
+     case $host_os in
+-    freebsd[123]*) objformat=aout ;;
++    freebsd[23].*) objformat=aout ;;
+     *) objformat=elf ;;
+     esac
+   fi
+@@ -10959,7 +10959,7 @@
+   esac
+   shlibpath_var=LD_LIBRARY_PATH
+   case $host_os in
+-  freebsd2*)
++  freebsd2.*)
+     shlibpath_overrides_runpath=yes
+     ;;
+   freebsd3.[01]* | freebsdelf3.[01]*)
+@@ -14225,7 +14225,7 @@
+         esac
+         ;;
+-      freebsd[12]*)
++      freebsd2.*)
+         # C++ shared libraries reported to be fairly broken before
+       # switch to ELF
+         ld_shlibs_CXX=no
+@@ -16000,7 +16000,7 @@
+     objformat=`/usr/bin/objformat`
+   else
+     case $host_os in
+-    freebsd[123]*) objformat=aout ;;
++    freebsd[23].*) objformat=aout ;;
+     *) objformat=elf ;;
+     esac
+   fi
+@@ -16018,7 +16018,7 @@
+   esac
+   shlibpath_var=LD_LIBRARY_PATH
+   case $host_os in
+-  freebsd2*)
++  freebsd2.*)
+     shlibpath_overrides_runpath=yes
+     ;;
+   freebsd3.[01]* | freebsdelf3.[01]*)
+Index: libjava/classpath/ChangeLog.gcj
+===================================================================
+--- libjava/classpath/ChangeLog.gcj    (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ libjava/classpath/ChangeLog.gcj    (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -1,3 +1,9 @@
++2011-11-29  Andreas Tobler  <andreast@fgznet.ch>
++
++      * config.rpath (ld_shlibs): Fix detection of FreeBSD-10 and up.
++      (libname_spec): Likewise.
++      * configure: Regenerate with autoconf -I ../../.
++
+ 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+       * config.rpath, ltcf-c.sh, ltcf-gcj.sh, ltconfig: Remove
 Index: libjava/ChangeLog
 ===================================================================
---- libjava/ChangeLog  (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ libjava/ChangeLog  (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -1,3 +1,24 @@
-+2011-01-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+--- libjava/ChangeLog  (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ libjava/ChangeLog  (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -1,3 +1,16 @@
++2011-11-24  Jakub Jelinek  <jakub@redhat.com>
 +
-+      Backport from mainline:
-+      2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
-+
-+      * testsuite/libjava.jni/jni.exp (gcj_jni_get_cxxflags_invocation):
-+      Add -shared-libgcc to cxxflags for *-*-solaris*.
-+      Remove -lsocket.
-+
-+2010-12-13  Andrew John Hughes  <ahughes@redhat.com>
-+
-+      PR libgcj/46774
-+      * libjava/java/security/VMAccessController.java:
-+      (DEFAULT_CONTEXT): Create ProtectionDomain with
-+      four argument constructor (arguments are the same
-+      as those implied by the two argument constructor).
-+      (getContext()): Create ProtectionDomain instances
-+      with four argument constructor using a null Principal
-+      array (as before) but including the classloader, which
-+      was always null before.
-+
- 2010-12-16  Release Manager
-       * GCC 4.5.2 released.
-Index: libjava/testsuite/libjava.jni/jni.exp
-===================================================================
---- libjava/testsuite/libjava.jni/jni.exp      (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ libjava/testsuite/libjava.jni/jni.exp      (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -274,8 +274,10 @@
-     eval lappend cxxflags "-shared-libgcc -lgcj $libiconv"
-   }
-+  # Make sure libgcc unwinder is used on 64-bit Solaris 10+/x86 rather than
-+  # the libc one.
-   if { [istarget "*-*-solaris*"] } {
--    lappend cxxflags "-lsocket"
-+    lappend cxxflags "-shared-libgcc"
-   }
-   return $cxxflags
-Index: libjava/java/security/VMAccessController.java
-===================================================================
---- libjava/java/security/VMAccessController.java      (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ libjava/java/security/VMAccessController.java      (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -56,7 +56,7 @@
-     Permissions permissions = new Permissions();
-     permissions.add(new AllPermission());
-     ProtectionDomain[] domain = new ProtectionDomain[] {
--      new ProtectionDomain(source, permissions)
-+      new ProtectionDomain(source, permissions, null, null)
-     };
-     DEFAULT_CONTEXT = new AccessControlContext(domain);
-   }
-@@ -178,12 +178,13 @@
-     for (int i = 3; i < classes.length; i++)
-       {
-         Class clazz = classes[i];
-+        ClassLoader loader = clazz.getClassLoader();
-         if (DEBUG)
-           {
-             debug("checking " + clazz);
-             // subject to getClassLoader RuntimePermission
--            debug("loader = " + clazz.getClassLoader());
-+            debug("loader = " + loader);
-           }
-         if (privileged && i == classes.length - 2)
-@@ -208,7 +209,8 @@
-         // Create a static snapshot of this domain, which may change over time
-         // if the current policy changes.
-         domains.add(new ProtectionDomain(domain.getCodeSource(),
--                                         domain.getPermissions()));
-+                                         domain.getPermissions(),
-+                                         loader, null));
-       }
++      PR bootstrap/50888
++      * prims.cc: Don't include ctype.h.
++      (c_isspace): Define.
++      (next_property_key, next_property_value): Use it instead
++      of isspace.
++
++2011-11-20  Andreas Tobler  <andreast@fgznet.ch>
++
++      * configure.ac: Fix FreeBSD 10 detection.
++      * configure: Regenerate.
++
+ 2011-10-26  Release Manager
  
-     if (DEBUG)
-Index: libcpp/directives.c
+       * GCC 4.6.2 released.
+Index: libjava/prims.cc
 ===================================================================
---- libcpp/directives.c        (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ libcpp/directives.c        (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -280,16 +280,17 @@
- static void
- end_directive (cpp_reader *pfile, int skip_line)
+--- libjava/prims.cc   (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ libjava/prims.cc   (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -38,7 +38,6 @@
+ #endif
+ #ifndef DISABLE_GETENV_PROPERTIES
+-#include <ctype.h>
+ #include <java-props.h>
+ #define PROCESS_GCJ_PROPERTIES process_gcj_properties()
+ #else
+@@ -985,6 +984,8 @@
+ #ifndef DISABLE_GETENV_PROPERTIES
++#define c_isspace(c) (memchr (" \t\n\r\v\f", c, 6) != NULL)
++
+ static char *
+ next_property_key (char *s, size_t *length)
  {
--  if (pfile->state.in_deferred_pragma)
--    ;
--  else if (CPP_OPTION (pfile, traditional))
-+  if (CPP_OPTION (pfile, traditional))
+@@ -993,7 +994,7 @@
+   JvAssert (s);
+   // Skip over whitespace
+-  while (isspace (*s))
++  while (c_isspace (*s))
+     s++;
+   // If we've reached the end, return NULL.  Also return NULL if for
+@@ -1005,7 +1006,7 @@
+   // Determine the length of the property key.
+   while (s[l] != 0
+-       && ! isspace (s[l])
++       && ! c_isspace (s[l])
+        && s[l] != ':'
+        && s[l] != '=')
      {
-       /* Revert change of prepare_directive_trad.  */
--      pfile->state.prevent_expansion--;
-+      if (!pfile->state.in_deferred_pragma)
-+      pfile->state.prevent_expansion--;
+@@ -1027,19 +1028,19 @@
  
-       if (pfile->directive != &dtable[T_DEFINE])
-       _cpp_remove_overlay (pfile);
-     }
-+  else if (pfile->state.in_deferred_pragma)
-+    ;
-   /* We don't skip for an assembler #.  */
-   else if (skip_line)
+   JvAssert (s);
+-  while (isspace (*s))
++  while (c_isspace (*s))
+     s++;
+   if (*s == ':'
+       || *s == '=')
+     s++;
+-  while (isspace (*s))
++  while (c_isspace (*s))
+     s++;
+   // Determine the length of the property value.
+   while (s[l] != 0
+-       && ! isspace (s[l])
++       && ! c_isspace (s[l])
+        && s[l] != ':'
+        && s[l] != '=')
      {
-Index: libcpp/ChangeLog
+Index: libjava/configure
+===================================================================
+--- libjava/configure  (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ libjava/configure  (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -11560,7 +11560,7 @@
+       ;;
+     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
+-    freebsd2*)
++    freebsd2.*)
+       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+       hardcode_direct=yes
+       hardcode_minus_L=yes
+@@ -12476,7 +12476,7 @@
+     objformat=`/usr/bin/objformat`
+   else
+     case $host_os in
+-    freebsd[123]*) objformat=aout ;;
++    freebsd[23].*) objformat=aout ;;
+     *) objformat=elf ;;
+     esac
+   fi
+@@ -12494,7 +12494,7 @@
+   esac
+   shlibpath_var=LD_LIBRARY_PATH
+   case $host_os in
+-  freebsd2*)
++  freebsd2.*)
+     shlibpath_overrides_runpath=yes
+     ;;
+   freebsd3.[01]* | freebsdelf3.[01]*)
+@@ -14384,7 +14384,7 @@
+         esac
+         ;;
+-      freebsd[12]*)
++      freebsd2.*)
+         # C++ shared libraries reported to be fairly broken before
+       # switch to ELF
+         ld_shlibs_CXX=no
+@@ -16159,7 +16159,7 @@
+     objformat=`/usr/bin/objformat`
+   else
+     case $host_os in
+-    freebsd[123]*) objformat=aout ;;
++    freebsd[23].*) objformat=aout ;;
+     *) objformat=elf ;;
+     esac
+   fi
+@@ -16177,7 +16177,7 @@
+   esac
+   shlibpath_var=LD_LIBRARY_PATH
+   case $host_os in
+-  freebsd2*)
++  freebsd2.*)
+     shlibpath_overrides_runpath=yes
+     ;;
+   freebsd3.[01]* | freebsdelf3.[01]*)
+@@ -18520,7 +18520,7 @@
+       ;;
+     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
+-    freebsd2*)
++    freebsd2.*)
+       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+       hardcode_direct_GCJ=yes
+       hardcode_minus_L_GCJ=yes
+@@ -20715,7 +20715,7 @@
+      *-*-cygwin*)
+       # Don't set THREADLIBS here.  Cygwin doesn't have -lpthread.
+       ;;
+-     *-*-freebsd[1234]*)
++     *-*-freebsd[34].*)
+       # Before FreeBSD 5, it didn't have -lpthread (or any library which
+       # merely adds pthread_* functions) but it does have a -pthread switch
+       # which is required at link-time to select -lc_r *instead* of -lc.
+Index: maintainer-scripts/ChangeLog
 ===================================================================
---- libcpp/ChangeLog   (.../tags/gcc_4_5_2_release)    (wersja 170084)
-+++ libcpp/ChangeLog   (.../branches/gcc-4_5-branch)   (wersja 170084)
-@@ -1,3 +1,10 @@
-+2011-11-04  Eric Botcazou  <ebotcazou@adacore.com>
-+            Jakub Jelinek  <jakub@redhat.com>
+--- maintainer-scripts/ChangeLog       (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ maintainer-scripts/ChangeLog       (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -1,3 +1,8 @@
++2011-11-23  Gerald Pfeifer  <gerald@pfeifer.com>
 +
-+      PR preprocessor/39213
-+      * directives.c (end_directive): Call _cpp_remove_overlay for deferred
-+      pragmas as well in traditional mode.
++      * update_web_docs_svn: Make $DOCSDIR group writable after
++      creating it.
 +
- 2010-12-16  Release Manager
+ 2011-10-26  Release Manager
+       * GCC 4.6.2 released.
+Index: maintainer-scripts/update_web_docs_svn
+===================================================================
+--- maintainer-scripts/update_web_docs_svn     (.../tags/gcc_4_6_2_release)    (wersja 183790)
++++ maintainer-scripts/update_web_docs_svn     (.../branches/gcc-4_6-branch)   (wersja 183790)
+@@ -93,6 +93,7 @@
+ if [ ! -d $DOCSDIR ]; then
+   mkdir $DOCSDIR
++  chmod g+w $DOCSDIR
+ fi
  
-       * GCC 4.5.2 released.
+ if [ -z "$RELEASE" ]; then
This page took 1.042999 seconds and 4 git commands to generate.