packages: gcc/gcc-branch.diff, gcc/gcc.spec - up to 4.5.1 (but broken, does...
arekm
arekm at pld-linux.org
Sun Aug 1 20:22:21 CEST 2010
Author: arekm Date: Sun Aug 1 18:22:21 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- up to 4.5.1 (but broken, doesn't build, just like most of our 4.5.0 snaps)
---- Files affected:
packages/gcc:
gcc-branch.diff (1.34 -> 1.35) , gcc.spec (1.622 -> 1.623)
---- Diffs:
================================================================
Index: packages/gcc/gcc-branch.diff
diff -u packages/gcc/gcc-branch.diff:1.34 packages/gcc/gcc-branch.diff:1.35
--- packages/gcc/gcc-branch.diff:1.34 Sun Jul 4 21:21:19 2010
+++ packages/gcc/gcc-branch.diff Sun Aug 1 20:18:47 2010
@@ -1,421327 +1,132 @@
-Index: configure
-===================================================================
---- configure (.../tags/gcc_4_5_0_release) (wersja 161805)
-+++ configure (.../branches/gcc-4_5-branch) (wersja 161805)
-@@ -5996,95 +5996,7 @@
-
-
-
--
--
--target_elf=no
--case $target in
-- *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
-- *-msdosdjgpp* | *-netware* | *-vms* | *-wince* | *-*-pe* | \
-- alpha*-dec-osf* | *-interix*)
-- target_elf=no
-- ;;
-- *)
-- target_elf=yes
-- ;;
--esac
--
--if test $target_elf = yes; then :
--
--else
-- if test x"$default_enable_lto" = x"yes" ; then
-- enable_lto=no
--else
-- if test x"$enable_lto" = x"yes"; then
-- as_fn_error "LTO support requires an ELF target." "$LINENO" 5
-- fi
--fi
--default_enable_lto=no
--fi
--
--
--if test x"$enable_lto" = x"yes" ; then
-- # Make sure that libelf.h and gelf.h are available.
--
--# Check whether --with-libelf was given.
--if test "${with_libelf+set}" = set; then :
-- withval=$with_libelf;
--fi
--
--
--
--# Check whether --with-libelf_include was given.
--if test "${with_libelf_include+set}" = set; then :
-- withval=$with_libelf_include;
--fi
--
--
--
--# Check whether --with-libelf_lib was given.
--if test "${with_libelf_lib+set}" = set; then :
-- withval=$with_libelf_lib;
--fi
--
--
-- saved_CFLAGS="$CFLAGS"
-- saved_CPPFLAGS="$CPPFLAGS"
-- saved_LIBS="$LIBS"
--
-- case $with_libelf in
-- "")
-- libelflibs="-lelf"
-- libelfinc="-I/usr/include/libelf"
-- ;;
-- *)
-- libelflibs="-L$with_libelf/lib -lelf"
-- libelfinc="-I$with_libelf/include -I$with_libelf/include/libelf"
-- LIBS="$libelflibs $LIBS"
-- ;;
-- esac
--
-- if test "x$with_libelf_include" != x; then
-- libelfinc="-I$with_libelf_include"
-- fi
--
-- if test "x$with_libelf_lib" != x; then
-- libelflibs="-L$with_libelf_lib -lelf"
-- LIBS="$libelflibs $LIBS"
-- fi
--
-- if test "x$with_libelf$with_libelf_include$with_libelf_lib" = x \
-- && test -d ${srcdir}/libelf; then
-- libelflibs='-L$$r/$(HOST_SUBDIR)/libelf/lib -lelf '
-- libelfinc='-D__LIBELF_INTERNAL__ -I$$r/$(HOST_SUBDIR)/libelf/lib -I$$s/libelf/lib'
-- LIBS="$libelflibs $LIBS"
--
-- else
--
-- CFLAGS="$CFLAGS $libelfinc"
-- CPPFLAGS="$CPPFLAGS $libelfinc"
-- LIBS="$LIBS $libelflibs"
--
-- ac_ext=c
-+ac_ext=c
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-@@ -6482,7 +6394,83 @@
- done
-
-
--for ac_header in libelf.h
-+
-+
-+
-+target_elf=no
-+case $target in
-+ *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
-+ *-msdosdjgpp* | *-netware* | *-vms* | *-wince* | *-*-pe* | \
-+ alpha*-dec-osf* | *-interix*)
-+ target_elf=no
-+ ;;
-+ *)
-+ target_elf=yes
-+ ;;
-+esac
-+
-+if test $target_elf = yes; then :
-+ if test x"$enable_lto" = x"yes" ; then
-+ # Make sure that libelf.h and gelf.h are available.
-+
-+# Check whether --with-libelf was given.
-+if test "${with_libelf+set}" = set; then :
-+ withval=$with_libelf;
-+fi
-+
-+
-+
-+# Check whether --with-libelf_include was given.
-+if test "${with_libelf_include+set}" = set; then :
-+ withval=$with_libelf_include;
-+fi
-+
-+
-+
-+# Check whether --with-libelf_lib was given.
-+if test "${with_libelf_lib+set}" = set; then :
-+ withval=$with_libelf_lib;
-+fi
-+
-+
-+ saved_CFLAGS="$CFLAGS"
-+ saved_CPPFLAGS="$CPPFLAGS"
-+ saved_LIBS="$LIBS"
-+
-+ case $with_libelf in
-+ "")
-+ libelflibs="-lelf"
-+ libelfinc="-I/usr/include/libelf"
-+ ;;
-+ *)
-+ libelflibs="-L$with_libelf/lib -lelf"
-+ libelfinc="-I$with_libelf/include -I$with_libelf/include/libelf"
-+ LIBS="$libelflibs $LIBS"
-+ ;;
-+ esac
-+
-+ if test "x$with_libelf_include" != x; then
-+ libelfinc="-I$with_libelf_include"
-+ fi
-+
-+ if test "x$with_libelf_lib" != x; then
-+ libelflibs="-L$with_libelf_lib -lelf"
-+ LIBS="$libelflibs $LIBS"
-+ fi
-+
-+ if test "x$with_libelf$with_libelf_include$with_libelf_lib" = x \
-+ && test -d ${srcdir}/libelf; then
-+ libelflibs='-L$$r/$(HOST_SUBDIR)/libelf/lib -lelf '
-+ libelfinc='-D__LIBELF_INTERNAL__ -I$$r/$(HOST_SUBDIR)/libelf/lib -I$$s/libelf/lib'
-+ LIBS="$libelflibs $LIBS"
-+
-+ else
-+
-+ CFLAGS="$CFLAGS $libelfinc"
-+ CPPFLAGS="$CPPFLAGS $libelfinc"
-+ LIBS="$LIBS $libelflibs"
-+
-+ for ac_header in libelf.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "libelf.h" "ac_cv_header_libelf_h" "$ac_includes_default"
- if test "x$ac_cv_header_libelf_h" = x""yes; then :
-@@ -6574,7 +6562,6 @@
- elf_nextscn (0, 0);
- elf_strptr (0, 0, 0);
- elf_getident (0, 0);
-- elf_getshdrstrndx (0, 0);
- elf_begin (0, 0, 0);
- elf_ndxscn (0);
- elf_end (0);
-@@ -6594,6 +6581,61 @@
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
-
-+ # Check for elf_getshdrstrndx or elf_getshstrndx. The latter's flavor
-+ # is determined in gcc/configure.ac.
-+ if test x"$enable_lto" = x"yes" ; then
-+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_getshdrstrndx" >&5
-+$as_echo_n "checking for elf_getshdrstrndx... " >&6; }
-+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-+/* end confdefs.h. */
-+#include <libelf.h>
-+int
-+main ()
-+{
-+
-+ elf_getshdrstrndx (0, 0);
-+
-+ ;
-+ return 0;
-+}
-+_ACEOF
-+if ac_fn_c_try_link "$LINENO"; then :
-+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
-+$as_echo "yes" >&6; };
-+else
-+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-+$as_echo "no" >&6; };
-+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_getshstrndx" >&5
-+$as_echo_n "checking for elf_getshstrndx... " >&6; }
-+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-+/* end confdefs.h. */
-+#include <libelf.h>
-+int
-+main ()
-+{
-+
-+ elf_getshstrndx (0, 0);
-+
-+ ;
-+ return 0;
-+}
-+_ACEOF
-+if ac_fn_c_try_link "$LINENO"; then :
-+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
-+$as_echo "yes" >&6; };
-+else
-+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-+$as_echo "no" >&6; }; enable_lto=no; libelflibs= ; libelfinc=
-+
-+fi
-+rm -f core conftest.err conftest.$ac_objext \
-+ conftest$ac_exeext conftest.$ac_ext
-+
-+fi
-+rm -f core conftest.err conftest.$ac_objext \
-+ conftest$ac_exeext conftest.$ac_ext
-+ fi
-+
- # If we couldn't enable LTO and the user forced it, emit an error.
- if test x"$enable_lto" = x"no" \
- && test x"$default_enable_lto" != x"yes" ; then
-@@ -6613,8 +6655,30 @@
-
-
- fi
-+else
-+ if test x"$default_enable_lto" = x"yes" ; then
-+ # On non-ELF platforms, LTO must be explicitly enabled.
-+ enable_lto=no
-+ else
-+ # Apart from ELF platforms, only Windows supports LTO so far. It
-+ # would also be nice to check the binutils support, but we don't
-+ # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
-+ # warn during gcc/ subconfigure; unless you're bootstrapping with
-+ # -flto it won't be needed until after installation anyway.
-+ case $target in
-+ *-cygwin*|*-mingw*) ;;
-+ x86_64-apple-darwin*) ;;
-+ *) if test x"$enable_lto" = x"yes"; then
-+ as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
-+ fi
-+ ;;
-+ esac
-+ fi
-+ default_enable_lto=no
-+fi
-
-
-+
- # By default, C is the only stage 1 language.
- stage1_languages=,c,
-
-@@ -7610,7 +7674,7 @@
- mv conftest.o conftest.o.g0 &&
- ${CC} -c -g conftest.c &&
- mv conftest.o conftest.o.g &&
-- ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g; then
-+ ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
- :
- else
- BUILD_CONFIG=
-Index: Makefile.in
-===================================================================
---- Makefile.in (.../tags/gcc_4_5_0_release) (wersja 161805)
-+++ Makefile.in (.../branches/gcc-4_5-branch) (wersja 161805)
-@@ -57763,6 +57763,14 @@
- configure-stage4-gcc: maybe-all-stage4-gold
- configure-stageprofile-gcc: maybe-all-stageprofile-gold
- configure-stagefeedback-gcc: maybe-all-stagefeedback-gold
-+configure-gcc: maybe-all-libelf
-+
-+configure-stage1-gcc: maybe-all-stage1-libelf
-+configure-stage2-gcc: maybe-all-stage2-libelf
-+configure-stage3-gcc: maybe-all-stage3-libelf
-+configure-stage4-gcc: maybe-all-stage4-libelf
-+configure-stageprofile-gcc: maybe-all-stageprofile-libelf
-+configure-stagefeedback-gcc: maybe-all-stagefeedback-libelf
- all-gcc: all-libiberty
-
- all-stage1-gcc: all-stage1-libiberty
-@@ -57819,14 +57827,6 @@
- all-stage4-gcc: maybe-all-stage4-cloog
- all-stageprofile-gcc: maybe-all-stageprofile-cloog
- all-stagefeedback-gcc: maybe-all-stagefeedback-cloog
--all-gcc: maybe-all-libelf
--
--all-stage1-gcc: maybe-all-stage1-libelf
--all-stage2-gcc: maybe-all-stage2-libelf
--all-stage3-gcc: maybe-all-stage3-libelf
--all-stage4-gcc: maybe-all-stage4-libelf
--all-stageprofile-gcc: maybe-all-stageprofile-libelf
--all-stagefeedback-gcc: maybe-all-stagefeedback-libelf
- all-gcc: maybe-all-build-texinfo
-
- all-stage1-gcc: maybe-all-build-texinfo
-Index: libgcc/config.host
-===================================================================
---- libgcc/config.host (.../tags/gcc_4_5_0_release) (wersja 161805)
-+++ libgcc/config.host (.../branches/gcc-4_5-branch) (wersja 161805)
-@@ -600,6 +600,7 @@
- i[34567]86-*-darwin* | x86_64-*-darwin* | \
- i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu | \
- i[34567]86-*-linux* | x86_64-*-linux* | \
-+ i[34567]86-*-gnu* | \
- i[34567]86-*-solaris2* | \
- i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*)
- if test "${host_address}" = 32; then
-Index: libgcc/config/i386/32/sfp-machine.h
-===================================================================
---- libgcc/config/i386/32/sfp-machine.h (.../tags/gcc_4_5_0_release) (wersja 161805)
-+++ libgcc/config/i386/32/sfp-machine.h (.../branches/gcc-4_5-branch) (wersja 161805)
-@@ -142,8 +142,8 @@
- if (_fex & FP_EX_DIVZERO) \
- { \
- float f = 1.0, g = 0.0; \
-- __asm__ __volatile__ ("fdivp" : "=t" (f) \
-- : "0" (f), "u" (g) \
-+ __asm__ __volatile__ ("fdivp {%0, %y1|%y1, %0}" \
-+ : "+t" (f) : "u" (g) \
- : "st(1)"); \
- __asm__ __volatile__ ("fwait"); \
- } \
-Index: libgcc/ChangeLog
-===================================================================
---- libgcc/ChangeLog (.../tags/gcc_4_5_0_release) (wersja 161805)
-+++ libgcc/ChangeLog (.../branches/gcc-4_5-branch) (wersja 161805)
-@@ -1,3 +1,15 @@
-+2010-05-19 Rainer Orth <ro at CeBiTec.Uni-Bielefeld.DE>
-+
-+ * config/i386/32/sfp-machine.h (FP_HANDLE_EXCEPTIONS): Support Sun
-+ assembler syntax.
-+
-+2010-04-15 Thomas Schwinge <tschwinge at gnu.org>
-+
-+ Backport from mainline:
-+ 2010-04-15 Thomas Schwinge <tschwinge at gnu.org>
-+
-+ * config.host <i[34567]86-*-gnu*>: Handle softfp as for Linux.
-+
- 2010-04-14 Release Manager
-
- * GCC 4.5.0 released.
-Index: libgomp/configure
+Index: gcc/DATESTAMP
===================================================================
---- libgomp/configure (.../tags/gcc_4_5_0_release) (wersja 161805)
-+++ libgomp/configure (.../branches/gcc-4_5-branch) (wersja 161805)
-@@ -15379,7 +15379,7 @@
- /* end confdefs.h. */
- #include <pthread.h>
- __thread int a;
-- static int *a_in_other_thread;
-+ static int *volatile a_in_other_thread;
- static void *
- thread_func (void *arg)
- {
-@@ -15391,11 +15391,11 @@
- {
- pthread_t thread;
- void *thread_retval;
-- int *a_in_main_thread;
-+ int *volatile a_in_main_thread;
-+ a_in_main_thread = &a;
- if (pthread_create (&thread, (pthread_attr_t *)0,
- thread_func, (void *)0))
- return 0;
-- a_in_main_thread = &a;
- if (pthread_join (thread, &thread_retval))
- return 0;
- return (a_in_other_thread == a_in_main_thread);
-Index: libgomp/sections.c
+--- gcc/DATESTAMP (.../tags/gcc_4_5_1_release) (wersja 162803)
++++ gcc/DATESTAMP (.../branches/gcc-4_5-branch) (wersja 162803)
+@@ -1 +1 @@
+-20100731
++20100801
+Index: gcc/DEV-PHASE
===================================================================
---- libgomp/sections.c (.../tags/gcc_4_5_0_release) (wersja 161805)
-+++ libgomp/sections.c (.../branches/gcc-4_5-branch) (wersja 161805)
-@@ -1,4 +1,4 @@
--/* Copyright (C) 2005, 2007, 2008, 2009 Free Software Foundation, Inc.
-+/* Copyright (C) 2005, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
- Contributed by Richard Henderson <rth at redhat.com>.
-
- This file is part of the GNU OpenMP Library (libgomp).
-@@ -34,9 +34,25 @@
- {
- ws->sched = GFS_DYNAMIC;
- ws->chunk_size = 1;
-- ws->end = count + 1;
-+ ws->end = count + 1L;
- ws->incr = 1;
- ws->next = 1;
-+#ifdef HAVE_SYNC_BUILTINS
-+ /* Prepare things to make each iteration faster. */
-+ if (sizeof (long) > sizeof (unsigned))
-+ ws->mode = 1;
-+ else
-+ {
-+ struct gomp_thread *thr = gomp_thread ();
-+ struct gomp_team *team = thr->ts.team;
-+ long nthreads = team ? team->nthreads : 1;
-+
-+ ws->mode = ((nthreads | ws->end)
-+ < 1UL << (sizeof (long) * __CHAR_BIT__ / 2 - 1));
-+ }
-+#else
-+ ws->mode = 0;
-+#endif
- }
-
- /* This routine is called when first encountering a sections construct
-Index: libgomp/ChangeLog
+--- gcc/DEV-PHASE (.../tags/gcc_4_5_1_release) (wersja 162803)
++++ gcc/DEV-PHASE (.../branches/gcc-4_5-branch) (wersja 162803)
+@@ -0,0 +1 @@
++prerelease
+Index: gcc/ChangeLog
===================================================================
---- libgomp/ChangeLog (.../tags/gcc_4_5_0_release) (wersja 161805)
-+++ libgomp/ChangeLog (.../branches/gcc-4_5-branch) (wersja 161805)
-@@ -1,3 +1,29 @@
-+2010-06-10 Iain Sandoe <iains at gcc.gnu.org>
-+
-+ PR bootstrap/43170
-+ * configure: Regenerate.
-+
-+2010-04-26 Jakub Jelinek <jakub at redhat.com>
-+
-+ PR c/43893
-+ * testsuite/libgomp.c/pr43893.c: New test.
-+ * testsuite/libgomp.c++/pr43893.C: New test.
+--- gcc/ChangeLog (.../tags/gcc_4_5_1_release) (wersja 162803)
++++ gcc/ChangeLog (.../branches/gcc-4_5-branch) (wersja 162803)
+@@ -1,3 +1,18 @@
++2010-07-31 Richard Guenther <rguenther at suse.de>
+
-+2010-04-21 Jakub Jelinek <jakub at redhat.com>
++ PR tree-optimization/45052
++ * ipa-pure-const.c (check_stmt): Check volatileness.
++
++2010-07-31 Richard Guenther <rguenther at suse.de>
+
-+ PR middle-end/43570
-+ * testsuite/libgomp.fortran/vla8.f90: New test.
++ * ipa-prop.c (ipa_modify_formal_parameters): Use
++ build_distinct_type_copy.
+
-+ PR libgomp/43706
-+ * config/linux/affinity.c (gomp_init_affinity): Decrease
-+ gomp_available_cpus if affinity mask confines the process to fewer
-+ CPUs.
-+ * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
-+ non-NULL, just return gomp_available_cpus.
++2010-07-31 Richard Guenther <rguenther at suse.de>
+
-+ PR libgomp/43569
-+ * sections.c (gomp_sections_init): Initialize ws->mode.
++ * DEV-PHASE: Set back to prerelease.
++ * BASE-VER: Bump to 4.5.2.
+
- 2010-04-14 Release Manager
+ 2010-07-31 Release Manager
- * GCC 4.5.0 released.
-Index: libgomp/testsuite/libgomp.c++/pr43893.C
-===================================================================
---- libgomp/testsuite/libgomp.c++/pr43893.C (.../tags/gcc_4_5_0_release) (wersja 0)
-+++ libgomp/testsuite/libgomp.c++/pr43893.C (.../branches/gcc-4_5-branch) (wersja 161805)
-@@ -0,0 +1,125 @@
-+// PR c/43893
-+// { dg-do run }
-+
-+extern "C" void abort ();
-+
-+template <typename T, T M, T N>
-+void
-+f1 ()
-+{
-+ int c;
-+ T i;
-+ c = 0;
-+#pragma omp parallel for reduction(+:c)
-+ for (i = M; i < N; i++)
-+ c++;
-+ if (c != 1)
-+ abort ();
-+}
-+
-+template <typename T, T M, T N>
-+void
-+f2 ()
-+{
-+ int c;
-+ T i;
-+ c = 0;
-+#pragma omp parallel for reduction(+:c)
-+ for (i = M; i <= N; i++)
-+ c++;
-+ if (c != 1)
-+ abort ();
-+}
-+
-+template <typename T, T M, T N>
-+void
-+f3 ()
-+{
-+ int c;
-+ T i;
-+ c = 0;
-+#pragma omp parallel for reduction(+:c)
-+ for (i = M; i > N; i--)
-+ c++;
-+ if (c != 1)
-+ abort ();
-+}
-+
-+template <typename T, T M, T N>
-+void
-+f4 ()
-+{
-+ int c;
-+ T i;
-+ c = 0;
-+#pragma omp parallel for reduction(+:c)
-+ for (i = M; i >= N; i--)
-+ c++;
-+ if (c != 1)
-+ abort ();
-+}
-+
-+int
-+main ()
-+{
-+ int c;
-+ unsigned int i;
-+ int j;
-+ c = 0;
-+#pragma omp parallel for reduction(+:c)
-+ for (i = 0; i < 1; i++)
-+ c++;
-+ if (c != 1)
-+ abort ();
-+ f1 <unsigned int, 0, 1> ();
-+ c = 0;
-+#pragma omp parallel for reduction(+:c)
-+ for (i = 0; i <= 0; i++)
-+ c++;
-+ if (c != 1)
-+ abort ();
-+ f2 <unsigned int, 0, 0> ();
-+ c = 0;
-+#pragma omp parallel for reduction(+:c)
-+ for (j = - __INT_MAX__ - 1; j < - __INT_MAX__; j++)
-+ c++;
<<Diff was trimmed, longer than 597 lines>>
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/gcc/gcc-branch.diff?r1=1.34&r2=1.35&f=u
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/gcc/gcc.spec?r1=1.622&r2=1.623&f=u
More information about the pld-cvs-commit
mailing list