SF.net SVN: gar:[26182] csw/mgar/pkg

dmichelsen at users.sourceforge.net dmichelsen at users.sourceforge.net
Wed May 3 16:17:15 CEST 2017


Revision: 26182
          http://sourceforge.net/p/gar/code/26182
Author:   dmichelsen
Date:     2017-05-03 14:17:14 +0000 (Wed, 03 May 2017)
Log Message:
-----------
openscop/trunk: Initial commit

Added Paths:
-----------
    csw/mgar/pkg/openscop/
    csw/mgar/pkg/openscop/Makefile
    csw/mgar/pkg/openscop/branches/
    csw/mgar/pkg/openscop/tags/
    csw/mgar/pkg/openscop/trunk/
    csw/mgar/pkg/openscop/trunk/Makefile
    csw/mgar/pkg/openscop/trunk/checksums
    csw/mgar/pkg/openscop/trunk/files/
    csw/mgar/pkg/openscop/trunk/files/0001-Fix-fprintf-when-size_t-is-not-long.patch
    csw/mgar/pkg/openscop/trunk/files/0002-Allow-printf-on-NULL-strings.patch

Added: csw/mgar/pkg/openscop/Makefile
===================================================================
--- csw/mgar/pkg/openscop/Makefile	                        (rev 0)
+++ csw/mgar/pkg/openscop/Makefile	2017-05-03 14:17:14 UTC (rev 26182)
@@ -0,0 +1,2 @@
+%:
+	$(MAKE) -C trunk $*

Index: csw/mgar/pkg/openscop/trunk
===================================================================
--- csw/mgar/pkg/openscop/trunk	2017-05-03 11:54:22 UTC (rev 26181)
+++ csw/mgar/pkg/openscop/trunk	2017-05-03 14:17:14 UTC (rev 26182)

Property changes on: csw/mgar/pkg/openscop/trunk
___________________________________________________________________
Added: svn:ignore
## -0,0 +1 ##
+work
Added: csw/mgar/pkg/openscop/trunk/Makefile
===================================================================
--- csw/mgar/pkg/openscop/trunk/Makefile	                        (rev 0)
+++ csw/mgar/pkg/openscop/trunk/Makefile	2017-05-03 14:17:14 UTC (rev 26182)
@@ -0,0 +1,36 @@
+# $Id$
+# TODO (release-critical prefixed with !, non release-critical with *)
+#
+NAME = osl
+VERSION = 0.9.1
+GARTYPE = v2
+
+DESCRIPTION = A Specification and a Library for Data Exchange in Polyhedral Compilation Tools
+
+MASTER_SITES += http://icps.u-strasbg.fr/~bastoul/development/openscop/docs/
+MASTER_SITES += https://github.com/periscop/openscop/releases/download/$(VERSION)/
+DISTFILES += $(DISTNAME).tar.gz
+
+PATCHFILES_32 += 0001-Fix-fprintf-when-size_t-is-not-long.patch
+PATCHFILES += 0002-Allow-printf-on-NULL-strings.patch
+PATCHFILES += $(PATCHFILES_$(MEMORYMODEL))
+
+PACKAGES += CSWlibosl0
+SPKG_DESC_CSWlibosl0 = A Specification and a Library for Data Exchange in Polyhedral Compilation Tools, libosl.so.0
+PKGFILES_CSWlibosl0 += $(call pkgfiles_lib,libosl.so.0)
+RUNTIME_DEP_PKGS_CSWlibosl0 += CSWlibgcc-s1
+RUNTIME_DEP_PKGS_CSWlibosl0 += CSWlibgmp10
+
+PACKAGES += CSWlibosl-dev
+SPKG_DESC_CSWlibosl-dev = Development files for libosl.so.0
+# PKGFILES is catchall
+RUNTIME_DEP_PKGS_CSWlibosl-dev += CSWlibosl0
+
+GARCOMPILER = GNU
+
+BUILD64 = 1
+
+CONFIGURE_ARGS = $(DIRPATHS)
+
+include gar/category.mk
+


Property changes on: csw/mgar/pkg/openscop/trunk/Makefile
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Added: csw/mgar/pkg/openscop/trunk/checksums
===================================================================
--- csw/mgar/pkg/openscop/trunk/checksums	                        (rev 0)
+++ csw/mgar/pkg/openscop/trunk/checksums	2017-05-03 14:17:14 UTC (rev 26182)
@@ -0,0 +1 @@
+90727c6a79d085d5b90b21cf190b618a  osl-0.9.1.tar.gz

Added: csw/mgar/pkg/openscop/trunk/files/0001-Fix-fprintf-when-size_t-is-not-long.patch
===================================================================
--- csw/mgar/pkg/openscop/trunk/files/0001-Fix-fprintf-when-size_t-is-not-long.patch	                        (rev 0)
+++ csw/mgar/pkg/openscop/trunk/files/0001-Fix-fprintf-when-size_t-is-not-long.patch	2017-05-03 14:17:14 UTC (rev 26182)
@@ -0,0 +1,42 @@
+From f642dcd071aea01ac68813b1e70ce1c77e3c779d Mon Sep 17 00:00:00 2001
+From: Dagobert Michelsen <dam at opencsw.org>
+Date: Wed, 3 May 2017 16:00:26 +0200
+Subject: [PATCH 1/2] Fix fprintf when size_t is not long
+
+---
+ source/relation_list.c | 4 ++--
+ source/statement.c     | 2 +-
+ 2 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/source/relation_list.c b/source/relation_list.c
+index a6b1dac..2f6f982 100644
+--- a/source/relation_list.c
++++ b/source/relation_list.c
+@@ -302,9 +302,9 @@ void osl_relation_list_pprint(FILE * file, osl_relation_list_p list,
+   
+   // Print it.
+   if (i > 1)
+-    fprintf(file,"# List of %lu elements\n%lu\n", i, i);
++    fprintf(file,"# List of %u elements\n%u\n", i, i);
+   else
+-    fprintf(file,"# List of %lu element \n%lu\n", i, i);
++    fprintf(file,"# List of %u element \n%u\n", i, i);
+ 
+   // Print each element of the relation list.
+   osl_relation_list_pprint_elts(file, list, names);
+diff --git a/source/statement.c b/source/statement.c
+index 3d216c0..7fec93c 100644
+--- a/source/statement.c
++++ b/source/statement.c
+@@ -235,7 +235,7 @@ void osl_statement_pprint(FILE * file, osl_statement_p statement,
+       nb_relations ++;
+     nb_relations += osl_relation_list_count(statement->access); 
+ 
+-    fprintf(file, "%lu\n\n", nb_relations);
++    fprintf(file, "%u\n\n", nb_relations);
+ 
+     fprintf(file, "# ---------------------------------------------- ");
+     fprintf(file, "%2d.1 Domain\n", number);
+-- 
+2.4.0
+

Added: csw/mgar/pkg/openscop/trunk/files/0002-Allow-printf-on-NULL-strings.patch
===================================================================
--- csw/mgar/pkg/openscop/trunk/files/0002-Allow-printf-on-NULL-strings.patch	                        (rev 0)
+++ csw/mgar/pkg/openscop/trunk/files/0002-Allow-printf-on-NULL-strings.patch	2017-05-03 14:17:14 UTC (rev 26182)
@@ -0,0 +1,34 @@
+From bea07180a17c9c36d2451a02fbfae3c5c495ab20 Mon Sep 17 00:00:00 2001
+From: Dagobert Michelsen <dam at opencsw.org>
+Date: Wed, 3 May 2017 16:00:42 +0200
+Subject: [PATCH 2/2] Allow printf on NULL strings
+
+---
+ source/extensions/pluto_unroll.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/source/extensions/pluto_unroll.c b/source/extensions/pluto_unroll.c
+index f26ce42..46c2277 100644
+--- a/source/extensions/pluto_unroll.c
++++ b/source/extensions/pluto_unroll.c
+@@ -117,7 +117,7 @@ void osl_pluto_unroll_idump(FILE * file,
+     // Display the names of iterators.
+     for (j = 0; j <= level; j++)
+       fprintf(file, "|\t");
+-    fprintf(file, "+--iterator: %s\n", pluto_unroll->iter);
++    fprintf(file, "+--iterator: %s\n", (pluto_unroll->iter != NULL? pluto_unroll->iter : "(NULL)"));
+   
+     // Display the names of iterators.
+     for (j = 0; j <= level; j++)
+@@ -183,7 +183,7 @@ char * osl_pluto_unroll_sprint(osl_pluto_unroll_p pluto_unroll) {
+   while (pluto_unroll != NULL)
+   {
+     strcat(buffer, "# Iterator name\n");
+-    sprintf(buffer + strlen(buffer), "%s\n", pluto_unroll->iter);
++    sprintf(buffer + strlen(buffer), "%s\n", (pluto_unroll->iter != NULL ? pluto_unroll->iter : "(NULL)"));
+ 
+     strcat(buffer, "# Jam\n");
+     sprintf(buffer + strlen(buffer), "%i\n", pluto_unroll->jam);
+-- 
+2.4.0
+

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list