packages (GCC_4_4): gcc/gcc-branch.diff, gcc/gcc.spec - up to 4.4.4 but doe...

arekm arekm at pld-linux.org
Tue Jun 1 12:58:58 CEST 2010


Author: arekm                        Date: Tue Jun  1 10:58:58 2010 GMT
Module: packages                      Tag: GCC_4_4
---- Log message:
- up to 4.4.4 but doesn't build

---- Files affected:
packages/gcc:
   gcc-branch.diff (1.26 -> 1.26.2.1) , gcc.spec (1.602 -> 1.602.2.1) 

---- Diffs:

================================================================
Index: packages/gcc/gcc-branch.diff
diff -u packages/gcc/gcc-branch.diff:1.26 packages/gcc/gcc-branch.diff:1.26.2.1
--- packages/gcc/gcc-branch.diff:1.26	Sun Mar 28 22:57:20 2010
+++ packages/gcc/gcc-branch.diff	Tue Jun  1 12:58:36 2010
@@ -1,11052 +1,9808 @@
-Index: libgomp/env.c
+Index: libgcc/config/i386/32/sfp-machine.h
 ===================================================================
---- libgomp/env.c	(.../tags/gcc_4_4_3_release)	(wersja 157785)
-+++ libgomp/env.c	(.../branches/gcc-4_4-branch)	(wersja 157785)
-@@ -1,4 +1,5 @@
--/* Copyright (C) 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
-+/* Copyright (C) 2005, 2006, 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).
-@@ -145,7 +146,7 @@
-    present and it was successfully parsed.  */
- 
- static bool
--parse_unsigned_long (const char *name, unsigned long *pvalue)
-+parse_unsigned_long (const char *name, unsigned long *pvalue, bool allow_zero)
- {
-   char *env, *end;
-   unsigned long value;
-@@ -161,7 +162,7 @@
- 
-   errno = 0;
-   value = strtoul (env, &end, 10);
--  if (errno || (long) value <= 0)
-+  if (errno || (long) value <= 0 - allow_zero)
-     goto invalid;
- 
-   while (isspace ((unsigned char) *end))
-@@ -481,8 +482,9 @@
-   parse_schedule ();
-   parse_boolean ("OMP_DYNAMIC", &gomp_global_icv.dyn_var);
-   parse_boolean ("OMP_NESTED", &gomp_global_icv.nest_var);
--  parse_unsigned_long ("OMP_MAX_ACTIVE_LEVELS", &gomp_max_active_levels_var);
--  parse_unsigned_long ("OMP_THREAD_LIMIT", &gomp_thread_limit_var);
-+  parse_unsigned_long ("OMP_MAX_ACTIVE_LEVELS", &gomp_max_active_levels_var,
-+		       true);
-+  parse_unsigned_long ("OMP_THREAD_LIMIT", &gomp_thread_limit_var, false);
-   if (gomp_thread_limit_var != ULONG_MAX)
-     gomp_remaining_threads_count = gomp_thread_limit_var - 1;
- #ifndef HAVE_SYNC_BUILTINS
-@@ -490,7 +492,8 @@
- #endif
-   gomp_init_num_threads ();
-   gomp_available_cpus = gomp_global_icv.nthreads_var;
--  if (!parse_unsigned_long ("OMP_NUM_THREADS", &gomp_global_icv.nthreads_var))
-+  if (!parse_unsigned_long ("OMP_NUM_THREADS", &gomp_global_icv.nthreads_var,
-+			    false))
-     gomp_global_icv.nthreads_var = gomp_available_cpus;
-   if (parse_affinity ())
-     gomp_init_affinity ();
-@@ -632,7 +635,7 @@
- void
- omp_set_max_active_levels (int max_levels)
- {
--  if (max_levels > 0)
-+  if (max_levels >= 0)
-     gomp_max_active_levels_var = max_levels;
- }
+--- libgcc/config/i386/32/sfp-machine.h	(.../tags/gcc_4_4_4_release)	(wersja 160097)
++++ libgcc/config/i386/32/sfp-machine.h	(.../branches/gcc-4_4-branch)	(wersja 160097)
+@@ -145,8 +145,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_4_4_release)	(wersja 160097)
++++ libgcc/ChangeLog	(.../branches/gcc-4_4-branch)	(wersja 160097)
+@@ -1,3 +1,8 @@
++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-29  Release Manager
  
+ 	* GCC 4.4.4 released.
+Index: libgomp/Makefile.in
+===================================================================
+--- libgomp/Makefile.in	(.../tags/gcc_4_4_4_release)	(wersja 160097)
++++ libgomp/Makefile.in	(.../branches/gcc-4_4-branch)	(wersja 160097)
+@@ -38,15 +38,15 @@
+ build_triplet = @build@
+ host_triplet = @host@
+ target_triplet = @target@
+-DIST_COMMON = $(am__configure_deps) $(srcdir)/../config.guess \
+-	$(srcdir)/../config.sub $(srcdir)/../depcomp \
+-	$(srcdir)/../install-sh $(srcdir)/../ltmain.sh \
+-	$(srcdir)/../missing $(srcdir)/../mkinstalldirs \
+-	$(srcdir)/Makefile.am $(srcdir)/Makefile.in \
+-	$(srcdir)/config.h.in $(srcdir)/libgomp.spec.in \
+-	$(srcdir)/libgomp_f.h.in $(srcdir)/omp.h.in \
+-	$(srcdir)/omp_lib.f90.in $(srcdir)/omp_lib.h.in \
+-	$(top_srcdir)/configure ChangeLog
++DIST_COMMON = $(srcdir)/../config.guess $(srcdir)/../config.sub \
++	ChangeLog $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
++	$(top_srcdir)/configure $(am__configure_deps) \
++	$(srcdir)/config.h.in $(srcdir)/../mkinstalldirs \
++	$(srcdir)/omp.h.in $(srcdir)/omp_lib.h.in \
++	$(srcdir)/omp_lib.f90.in $(srcdir)/libgomp_f.h.in \
++	$(srcdir)/libgomp.spec.in $(srcdir)/../depcomp \
++	$(srcdir)/../ltmain.sh $(srcdir)/../config.guess \
++	$(srcdir)/../config.sub
+ subdir = .
+ ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+ am__aclocal_m4_deps = $(top_srcdir)/../config/acx.m4 \
+@@ -100,7 +100,6 @@
+ LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
+ 	$(AM_LDFLAGS) $(LDFLAGS) -o $@
+ SOURCES = $(libgomp_la_SOURCES)
+-DIST_SOURCES = $(libgomp_la_SOURCES)
+ MULTISRCTOP = 
+ MULTIBUILDTOP = 
+ MULTIDIRS = 
+@@ -133,17 +132,6 @@
+ ETAGS = etags
+ CTAGS = ctags
+ DIST_SUBDIRS = $(SUBDIRS)
+-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+-distdir = $(PACKAGE)-$(VERSION)
+-top_distdir = $(distdir)
+-am__remove_distdir = \
+-  { test ! -d $(distdir) \
+-    || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
+-         && rm -fr $(distdir); }; }
+-DIST_ARCHIVES = $(distdir).tar.gz
+-GZIP_ENV = --best
+-distuninstallcheck_listfiles = find . -type f -print
+-distcleancheck_listfiles = find . -type f -print
+ ACLOCAL = @ACLOCAL@
+ AMDEP_FALSE = @AMDEP_FALSE@
+ AMDEP_TRUE = @AMDEP_TRUE@
+@@ -771,152 +759,6 @@
+ 
+ distclean-tags:
+ 	-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
+-
+-distdir: $(DISTFILES)
+-	$(am__remove_distdir)
+-	mkdir $(distdir)
+-	$(mkdir_p) $(distdir)/. $(distdir)/.. $(distdir)/../config
+-	@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
+-	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
+-	list='$(DISTFILES)'; for file in $$list; do \
+-	  case $$file in \
+-	    $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
+-	    $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
+-	  esac; \
+-	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+-	  dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
+-	  if test "$$dir" != "$$file" && test "$$dir" != "."; then \
+-	    dir="/$$dir"; \
+-	    $(mkdir_p) "$(distdir)$$dir"; \
+-	  else \
+-	    dir=''; \
+-	  fi; \
+-	  if test -d $$d/$$file; then \
+-	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+-	      cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+-	    fi; \
+-	    cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
+-	  else \
+-	    test -f $(distdir)/$$file \
+-	    || cp -p $$d/$$file $(distdir)/$$file \
+-	    || exit 1; \
+-	  fi; \
+-	done
+-	list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
+-	  if test "$$subdir" = .; then :; else \
+-	    test -d "$(distdir)/$$subdir" \
+-	    || $(mkdir_p) "$(distdir)/$$subdir" \
+-	    || exit 1; \
+-	    distdir=`$(am__cd) $(distdir) && pwd`; \
+-	    top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
+-	    (cd $$subdir && \
+-	      $(MAKE) $(AM_MAKEFLAGS) \
+-	        top_distdir="$$top_distdir" \
+-	        distdir="$$distdir/$$subdir" \
+-	        distdir) \
+-	      || exit 1; \
+-	  fi; \
+-	done
+-	$(MAKE) $(AM_MAKEFLAGS) \
+-	  top_distdir="$(top_distdir)" distdir="$(distdir)" \
+-	  dist-info
+-	-find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
+-	  ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
+-	  ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
+-	  ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
+-	|| chmod -R a+r $(distdir)
+-dist-gzip: distdir
+-	tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
+-	$(am__remove_distdir)
+-
+-dist-bzip2: distdir
+-	tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
+-	$(am__remove_distdir)
+-
+-dist-tarZ: distdir
+-	tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
+-	$(am__remove_distdir)
+-
+-dist-shar: distdir
+-	shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
+-	$(am__remove_distdir)
+-
+-dist-zip: distdir
+-	-rm -f $(distdir).zip
+-	zip -rq $(distdir).zip $(distdir)
+-	$(am__remove_distdir)
+-
+-dist dist-all: distdir
+-	tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
+-	$(am__remove_distdir)
+-
+-# This target untars the dist file and tries a VPATH configuration.  Then
+-# it guarantees that the distribution is self-contained by making another
+-# tarfile.
+-distcheck: dist
+-	case '$(DIST_ARCHIVES)' in \
+-	*.tar.gz*) \
+-	  GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
+-	*.tar.bz2*) \
+-	  bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
+-	*.tar.Z*) \
+-	  uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
+-	*.shar.gz*) \
+-	  GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
+-	*.zip*) \
+-	  unzip $(distdir).zip ;;\
+-	esac
+-	chmod -R a-w $(distdir); chmod a+w $(distdir)
+-	mkdir $(distdir)/_build
+-	mkdir $(distdir)/_inst
+-	chmod a-w $(distdir)
+-	dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
+-	  && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
+-	  && cd $(distdir)/_build \
+-	  && ../configure --srcdir=.. --prefix="$$dc_install_base" \
+-	    $(DISTCHECK_CONFIGURE_FLAGS) \
+-	  && $(MAKE) $(AM_MAKEFLAGS) \
+-	  && $(MAKE) $(AM_MAKEFLAGS) dvi \
+-	  && $(MAKE) $(AM_MAKEFLAGS) check \
+-	  && $(MAKE) $(AM_MAKEFLAGS) install \
+-	  && $(MAKE) $(AM_MAKEFLAGS) installcheck \
+-	  && $(MAKE) $(AM_MAKEFLAGS) uninstall \
+-	  && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
+-	        distuninstallcheck \
+-	  && chmod -R a-w "$$dc_install_base" \
+-	  && ({ \
+-	       (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
+-	       && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
+-	       && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
+-	       && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
+-	            distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
+-	      } || { rm -rf "$$dc_destdir"; exit 1; }) \
+-	  && rm -rf "$$dc_destdir" \
+-	  && $(MAKE) $(AM_MAKEFLAGS) dist \
+-	  && rm -rf $(DIST_ARCHIVES) \
+-	  && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
+-	$(am__remove_distdir)
+-	@(echo "$(distdir) archives ready for distribution: "; \
+-	  list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
+-	  sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}'
+-distuninstallcheck:
+-	@cd $(distuninstallcheck_dir) \
+-	&& test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
+-	   || { echo "ERROR: files left after uninstall:" ; \
+-	        if test -n "$(DESTDIR)"; then \
+-	          echo "  (check DESTDIR support)"; \
+-	        fi ; \
+-	        $(distuninstallcheck_listfiles) ; \
+-	        exit 1; } >&2
+-distcleancheck: distclean
+-	@if test '$(srcdir)' = . ; then \
+-	  echo "ERROR: distcleancheck can only run from a VPATH build" ; \
+-	  exit 1 ; \
+-	fi
+-	@test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
+-	  || { echo "ERROR: files left in build directory after distclean:" ; \
+-	       $(distcleancheck_listfiles) ; \
+-	       exit 1; } >&2
+ check-am: all-am
+ check: check-recursive
+ all-am: Makefile $(INFO_DEPS) $(LTLIBRARIES) all-multi $(HEADERS) \
+@@ -1049,16 +891,13 @@
+ .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am all-local \
+ 	all-multi am--refresh check check-am clean clean-generic \
+ 	clean-libtool clean-multi clean-recursive \
+-	clean-toolexeclibLTLIBRARIES ctags ctags-recursive dist \
+-	dist-all dist-bzip2 dist-gzip dist-info dist-shar dist-tarZ \
+-	dist-zip distcheck distclean distclean-compile \
+-	distclean-generic distclean-hdr distclean-libtool \
+-	distclean-multi distclean-recursive distclean-tags \
+-	distcleancheck distdir distuninstallcheck dvi dvi-am html \
+-	html-am info info-am install install-am install-data \
+-	install-data-am install-exec install-exec-am install-info \
+-	install-info-am install-man install-multi \
+-	install-nodist_fincludeHEADERS \
++	clean-toolexeclibLTLIBRARIES ctags ctags-recursive dist-info \
++	distclean distclean-compile distclean-generic distclean-hdr \
++	distclean-libtool distclean-multi distclean-recursive \
++	distclean-tags dvi dvi-am html html-am info info-am install \
++	install-am install-data install-data-am install-exec \
++	install-exec-am install-info install-info-am install-man \
++	install-multi install-nodist_fincludeHEADERS \
+ 	install-nodist_libsubincludeHEADERS \
+ 	install-nodist_toolexeclibHEADERS install-strip \
+ 	install-toolexeclibLTLIBRARIES installcheck installcheck-am \
+Index: libgomp/configure.ac
+===================================================================
+--- libgomp/configure.ac	(.../tags/gcc_4_4_4_release)	(wersja 160097)
++++ libgomp/configure.ac	(.../branches/gcc-4_4-branch)	(wersja 160097)
+@@ -61,7 +61,7 @@
+ #  -Wall:  turns on all automake warnings...
+ #  -Wno-portability:  ...except this one, since GNU make is required.
+ #  -Wno-override: ... and this one, since we do want this in testsuite.
+-AM_INIT_AUTOMAKE([1.9.0 foreign -Wall -Wno-portability -Wno-override])
++AM_INIT_AUTOMAKE([1.9.0 foreign no-dist -Wall -Wno-portability -Wno-override])
+ AM_ENABLE_MULTILIB(, ..)
+ 
+ # Calculate toolexeclibdir
 Index: libgomp/ChangeLog
 ===================================================================
---- libgomp/ChangeLog	(.../tags/gcc_4_4_3_release)	(wersja 157785)
-+++ libgomp/ChangeLog	(.../branches/gcc-4_4-branch)	(wersja 157785)
-@@ -1,3 +1,18 @@
-+2010-03-22  Jakub Jelinek  <jakub at redhat.com>
-+
-+	PR libgomp/42942
-+	* env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
-+	(initialize_env): Adjust callers.
-+	(omp_set_max_active_levels): Set gomp_max_active_levels_var even
-+	when the argument is 0.
+--- libgomp/ChangeLog	(.../tags/gcc_4_4_4_release)	(wersja 160097)
++++ libgomp/ChangeLog	(.../branches/gcc-4_4-branch)	(wersja 160097)
+@@ -1,3 +1,15 @@
++2010-04-30  Jakub Jelinek  <jakub at redhat.com>
 +
-+	* testsuite/libgomp.c/pr42942.c: New test.
++	PR c/43893
++	* testsuite/libgomp.c/pr43893.c: New test.
++	* testsuite/libgomp.c++/pr43893.C: New test.
 +
-+2010-01-26  Jakub Jelinek  <jakub at redhat.com>
++2010-04-29  Jakub Jelinek  <jakub at redhat.com>
 +
-+	PR fortran/42866
-+	* testsuite/libgomp.fortran/allocatable5.f90: New test.
++	PR other/43620
++	* configure.ac (AM_INIT_AUTOMAKE): Add no-dist option.
++	* Makefile.in: Regenerated.
 +
- 2010-01-21  Release Manager
+ 2010-04-29  Release Manager
  
- 	* GCC 4.4.3 released.
-Index: libgomp/testsuite/libgomp.fortran/allocatable5.f90
+ 	* GCC 4.4.4 released.
+Index: libgomp/testsuite/libgomp.c++/pr43893.C
 ===================================================================
---- libgomp/testsuite/libgomp.fortran/allocatable5.f90	(.../tags/gcc_4_4_3_release)	(wersja 0)
-+++ libgomp/testsuite/libgomp.fortran/allocatable5.f90	(.../branches/gcc-4_4-branch)	(wersja 157785)
-@@ -0,0 +1,17 @@
-+! PR fortran/42866
-+! { dg-do run }
+--- libgomp/testsuite/libgomp.c++/pr43893.C	(.../tags/gcc_4_4_4_release)	(wersja 0)
++++ libgomp/testsuite/libgomp.c++/pr43893.C	(.../branches/gcc-4_4-branch)	(wersja 160097)
+@@ -0,0 +1,125 @@
++// PR c/43893
++// { dg-do run }
 +
-+program pr42866
-+  integer, allocatable :: a(:)
-+  allocate (a(16))
-+  a = 0
-+  !$omp parallel
-+    !$omp sections reduction(+:a)
-+      a = a + 1
-+    !$omp section
-+      a = a + 2
-+    !$omp end sections
-+  !$omp end parallel
-+  if (any (a.ne.3)) call abort
-+  deallocate (a)
-+end
-Index: libgomp/testsuite/libgomp.c/pr42942.c
++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++;
++  if (c != 1)
++    abort ();
++  f1 <int, (- __INT_MAX__ - 1), (- __INT_MAX__)> ();
++  c = 0;
++#pragma omp parallel for reduction(+:c)
++  for (j = - __INT_MAX__ - 1; j <= - __INT_MAX__ - 1; j++)
++    c++;
++  if (c != 1)
++    abort ();
++  f2 <int, (- __INT_MAX__ - 1), (- __INT_MAX__ - 1)> ();
++  c = 0;
++#pragma omp parallel for reduction(+:c)
++  for (i = 2U * __INT_MAX__ + 1; i > 2U * __INT_MAX__; i--)
++    c++;
++  if (c != 1)
++    abort ();
++  f3 <unsigned int, (2U * __INT_MAX__ + 1), (2U * __INT_MAX__)> ();
++  c = 0;
++#pragma omp parallel for reduction(+:c)
++  for (i = 2U * __INT_MAX__ + 1; i >= 2U * __INT_MAX__ + 1; i--)
++    c++;
++  if (c != 1)
++    abort ();
++  f4 <unsigned int, (2U * __INT_MAX__ + 1), (2U * __INT_MAX__ + 1)> ();
++  c = 0;
++#pragma omp parallel for reduction(+:c)
++  for (j = __INT_MAX__; j > __INT_MAX__ - 1; j--)
++    c++;
++  if (c != 1)
++    abort ();
++  f3 <int, __INT_MAX__, (__INT_MAX__ - 1)> ();
++  c = 0;
++#pragma omp parallel for reduction(+:c)
++  for (j = __INT_MAX__; j >= __INT_MAX__; j--)
++    c++;
++  if (c != 1)
++    abort ();
++  f4 <int, __INT_MAX__, __INT_MAX__> ();
++  return 0;
++}
+Index: libgomp/testsuite/libgomp.c/pr43893.c
 ===================================================================
---- libgomp/testsuite/libgomp.c/pr42942.c	(.../tags/gcc_4_4_3_release)	(wersja 0)
-+++ libgomp/testsuite/libgomp.c/pr42942.c	(.../branches/gcc-4_4-branch)	(wersja 157785)
+--- libgomp/testsuite/libgomp.c/pr43893.c	(.../tags/gcc_4_4_4_release)	(wersja 0)
++++ libgomp/testsuite/libgomp.c/pr43893.c	(.../branches/gcc-4_4-branch)	(wersja 160097)
 @@ -0,0 +1,61 @@
-+/* PR libgomp/42942 */
++/* PR c/43893 */
 +/* { dg-do run } */
 +
-+#include <omp.h>
-+#include <stdlib.h>
++extern void abort (void);
 +
 +int
-+main (void)
++main ()
 +{
-+  int e = 0;
-+  omp_set_dynamic (0);
-+  omp_set_nested (1);
-+  omp_set_max_active_levels (1);
-+  if (omp_get_max_active_levels () != 1)
++  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 ();
-+#pragma omp parallel num_threads(2) reduction(|:e)
-+  if (!omp_in_parallel ()
-+      || omp_get_num_threads () != 2)
-+    e = 1;
-+  else
-+#pragma omp parallel num_threads(2) reduction(|:e)
-+    if (!omp_in_parallel ()
-+	|| omp_get_num_threads () != 1)
-+      e = 1;
-+  if (e)
++  c = 0;
++#pragma omp parallel for reduction(+:c)
++  for (i = 0; i <= 0; i++)
++    c++;
++  if (c != 1)
 +    abort ();
-+  omp_set_max_active_levels (0);
-+  if (omp_get_max_active_levels () != 0)
++  c = 0;
++#pragma omp parallel for reduction(+:c)
++  for (j = - __INT_MAX__ - 1; j < - __INT_MAX__; j++)
++    c++;
++  if (c != 1)
 +    abort ();
-+#pragma omp parallel num_threads(2) reduction(|:e)
-+  if (omp_in_parallel ()
-+      || omp_get_num_threads () != 1)
-+    e = 1;
-+  else
-+#pragma omp parallel num_threads(2) reduction(|:e)
-+    if (omp_in_parallel ()
-+	|| omp_get_num_threads () != 1)
-+      e = 1;
-+  if (e)
++  c = 0;
++#pragma omp parallel for reduction(+:c)
++  for (j = - __INT_MAX__ - 1; j <= - __INT_MAX__ - 1; j++)
++    c++;
++  if (c != 1)
 +    abort ();
<<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.26&r2=1.26.2.1&f=u
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/gcc/gcc.spec?r1=1.602&r2=1.602.2.1&f=u



More information about the pld-cvs-commit mailing list