sm-commit AT lists.ibiblio.org
Subject: Source Mage code commit list
List archive
[SM-Commit] GIT changes to master grimoire by Ismael Luceno (19d05723d6eb6819f14a996a42c7056965588d6d)
- From: Ismael Luceno <scm AT sourcemage.org>
- To: sm-commit AT lists.ibiblio.org
- Subject: [SM-Commit] GIT changes to master grimoire by Ismael Luceno (19d05723d6eb6819f14a996a42c7056965588d6d)
- Date: Wed, 18 Nov 2015 02:32:30 +0000
GIT changes to master grimoire by Ismael Luceno <ismael AT iodev.co.uk>:
devel/make/HISTORY | 4
devel/make/PRE_BUILD | 6
devel/make/patches/0001-Handle-NULL-returns-from-ttyname.patch | 59 +
gnu/gcc/DETAILS | 7
gnu/gcc/HISTORY | 4
gnu/gcc/PRE_BUILD | 3
gnu/gcc/gcc-5.2.0-isl-1.patch | 310
++++++++++
7 files changed, 384 insertions(+), 9 deletions(-)
New commits:
commit 19d05723d6eb6819f14a996a42c7056965588d6d
Author: Ismael Luceno <ismael AT iodev.co.uk>
Commit: Ismael Luceno <ismael AT iodev.co.uk>
gcc: Fix build against isl 0.15
commit 70fbff440f52a8bec19cc2de01d0793869b456d8
Author: Ismael Luceno <ismael AT iodev.co.uk>
Commit: Ismael Luceno <ismael AT iodev.co.uk>
gcc: Remove SOURCE3, isl has it's own spell
commit dac13893aa3d2c38fbb69b0f7cbacb777e3e3829
Author: Ismael Luceno <ismael AT iodev.co.uk>
Commit: Ismael Luceno <ismael AT iodev.co.uk>
make: Add patch to fix segfault when calling make without arguments
It segfaults if /dev/pty is not mounted, due to improper checking of
ttyname return value.
diff --git a/devel/make/HISTORY b/devel/make/HISTORY
index 14b8bcc..5d7286c 100644
--- a/devel/make/HISTORY
+++ b/devel/make/HISTORY
@@ -1,3 +1,7 @@
+2015-11-17 Ismael Luceno <ismael AT sourcemage.org>
+ * PRE_BUILD, patches/0001-Handle-NULL-returns-from-ttyname.patch:
+ Added patch to fix segfault when calling make without arguments.
+
2014-01-06 Treeve Jelbert <treeve AT sourcemage.org>
* DETAILS: version 4.1
diff --git a/devel/make/PRE_BUILD b/devel/make/PRE_BUILD
new file mode 100755
index 0000000..f9d7f22
--- /dev/null
+++ b/devel/make/PRE_BUILD
@@ -0,0 +1,6 @@
+default_pre_build &&
+cd "$SOURCE_DIRECTORY" &&
+if [ -d "$SPELL_DIRECTORY/patches" ]; then
+ find "$SPELL_DIRECTORY/patches" \( -name \*.patch -o -name \*.diff \) \
+ -exec patch -fp1 -i '{}' \;
+fi
diff --git a/devel/make/patches/0001-Handle-NULL-returns-from-ttyname.patch
b/devel/make/patches/0001-Handle-NULL-returns-from-ttyname.patch
new file mode 100644
index 0000000..f66f39d
--- /dev/null
+++ b/devel/make/patches/0001-Handle-NULL-returns-from-ttyname.patch
@@ -0,0 +1,59 @@
+From 292da6f6867b75a5af7ddbb639a1feae022f438f Mon Sep 17 00:00:00 2001
+From: Paul Smith <psmith AT gnu.org>
+Date: Mon, 20 Oct 2014 01:54:56 -0400
+Subject: [PATCH] * main.c (main): [SV 43434] Handle NULL returns from
+ ttyname().
+
+---
+ main.c | 15 ++++++++++-----
+ makeint.h | 3 ++-
+ 2 files changed, 12 insertions(+), 6 deletions(-)
+
+diff --git a/main.c b/main.c
+index b2d169c..0cdb8a8 100644
+--- a/main.c
++++ b/main.c
+@@ -1429,13 +1429,18 @@ main (int argc, char **argv, char **envp)
+ #ifdef HAVE_ISATTY
+ if (isatty (fileno (stdout)))
+ if (! lookup_variable (STRING_SIZE_TUPLE ("MAKE_TERMOUT")))
+- define_variable_cname ("MAKE_TERMOUT", TTYNAME (fileno (stdout)),
+- o_default, 0)->export = v_export;
+-
++ {
++ const char *tty = TTYNAME (fileno (stdout));
++ define_variable_cname ("MAKE_TERMOUT", tty ? tty :
DEFAULT_TTYNAME,
++ o_default, 0)->export = v_export;
++ }
+ if (isatty (fileno (stderr)))
+ if (! lookup_variable (STRING_SIZE_TUPLE ("MAKE_TERMERR")))
+- define_variable_cname ("MAKE_TERMERR", TTYNAME (fileno (stderr)),
+- o_default, 0)->export = v_export;
++ {
++ const char *tty = TTYNAME (fileno (stderr));
++ define_variable_cname ("MAKE_TERMERR", tty ? tty :
DEFAULT_TTYNAME,
++ o_default, 0)->export = v_export;
++ }
+ #endif
+
+ /* Reset in case the switches changed our minds. */
+diff --git a/makeint.h b/makeint.h
+index 6223936..2009f41 100644
+--- a/makeint.h
++++ b/makeint.h
+@@ -436,10 +436,11 @@ extern struct rlimit stack_limit;
+ /* The number of bytes needed to represent the largest integer as a string.
*/
+ #define INTSTR_LENGTH CSTRLEN ("18446744073709551616")
+
++#define DEFAULT_TTYNAME "true"
+ #ifdef HAVE_TTYNAME
+ # define TTYNAME(_f) ttyname (_f)
+ #else
+-# define TTYNAME(_f) "true"
++# define TTYNAME(_f) DEFAULT_TTYNAME
+ #endif
+
+
+--
+2.6.3
+
diff --git a/gnu/gcc/DETAILS b/gnu/gcc/DETAILS
index 73d2099..23dd94f 100755
--- a/gnu/gcc/DETAILS
+++ b/gnu/gcc/DETAILS
@@ -11,13 +11,6 @@ SOURCE_DIRECTORY=$BUILD_DIRECTORY/gcc-$VERSION
SOURCE_GPG=gnu.gpg:$SOURCE.sig:UPSTREAM_KEY
SOURCE2_IGNORE=signature
-if [[ "$GCC_CLOOG" == "y" ]]; then
- ISL_VERSION=0.14
- SOURCE3=isl-${ISL_VERSION}.tar.bz2
- SOURCE3_URL[0]=ftp://gcc.gnu.org/pub/gcc/infrastructure/${SOURCE3}
-
SOURCE3_HASH=sha512:117c0c6f31d91a9284a8f54a748df6494ca2ac21507a45611e911403e9610579b9323ce624aea1de0b8089b3194e59d4364f01bdb71ddcf8f6c24c749d11c4b7
-fi
-
if list_find "$GCC_COMPILER" "java"; then
# SOURCE5=ecj-$(echo $VERSION|cut -f1,2 -d.).jar
SOURCE5=ecj-4.9.jar
diff --git a/gnu/gcc/HISTORY b/gnu/gcc/HISTORY
index 2082f61..6ef13dd 100644
--- a/gnu/gcc/HISTORY
+++ b/gnu/gcc/HISTORY
@@ -1,3 +1,7 @@
+2015-11-17 Ismael Luceno <ismael AT sourcemage.org>
+ * DETAILS, PRE_BUILD: Removed SOURCE3, isl has it's own spell
+ * PRE_BUILD, gcc-5.2.0-isl-1.patch: Fixed build against isl 0.15
+
2015-07-25 Florian Franzmann <siflfran AT hawo.stw.uni-erlangen.de>
* BUILD: remove make_single for profilebootstrap/profilebootstraplean
* INSTALL: add make_normal
diff --git a/gnu/gcc/PRE_BUILD b/gnu/gcc/PRE_BUILD
index e383466..fe1d620 100755
--- a/gnu/gcc/PRE_BUILD
+++ b/gnu/gcc/PRE_BUILD
@@ -25,8 +25,7 @@ fi &&
cd ${SOURCE_DIRECTORY} &&
if [[ "$GCC_CLOOG" == "y" ]]; then
- unpack_file 3 &&
- mv isl-${ISL_VERSION} isl
+ patch -p1 < "$SPELL_DIRECTORY/gcc-5.2.0-isl-1.patch"
fi
if list_find "$GCC_COMPILER" "java"; then
diff --git a/gnu/gcc/gcc-5.2.0-isl-1.patch b/gnu/gcc/gcc-5.2.0-isl-1.patch
new file mode 100644
index 0000000..582c668
--- /dev/null
+++ b/gnu/gcc/gcc-5.2.0-isl-1.patch
@@ -0,0 +1,310 @@
+From CLFS, by kb0iic
+
+diff -Naur gcc-5.2.0.orig/gcc/config.in gcc-5.2.0/gcc/config.in
+--- gcc-5.2.0.orig/gcc/config.in 2015-07-16 09:16:25.000000000 +0000
++++ gcc-5.2.0/gcc/config.in 2015-08-16 22:03:40.957436724 +0000
+@@ -1313,6 +1313,12 @@
+ #endif
+
+
++/* Define if isl_options_set_schedule_serialize_sccs exists. */
++#ifndef USED_FOR_TARGET
++#undef HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS
++#endif
++
++
+ /* Define if isl_schedule_constraints_compute_schedule exists. */
+ #ifndef USED_FOR_TARGET
+ #undef HAVE_ISL_SCHED_CONSTRAINTS_COMPUTE_SCHEDULE
+diff -Naur gcc-5.2.0.orig/gcc/configure gcc-5.2.0/gcc/configure
+--- gcc-5.2.0.orig/gcc/configure 2015-07-03 17:00:49.000000000 +0000
++++ gcc-5.2.0/gcc/configure 2015-08-16 22:03:40.967436000 +0000
+@@ -28245,6 +28245,8 @@
+
+ # Check whether isl_schedule_constraints_compute_schedule is available;
+ # it's new in ISL-0.13.
++# Check whether isl_options_set_schedule_serialize_sccs is available;
++# it's new in ISL-0.15.
+ if test "x${ISLLIBS}" != "x" ; then
+ saved_CFLAGS="$CFLAGS"
+ CFLAGS="$CFLAGS $ISLINC"
+@@ -28274,6 +28276,29 @@
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result:
$ac_has_isl_schedule_constraints_compute_schedule" >&5
+ $as_echo "$ac_has_isl_schedule_constraints_compute_schedule" >&6; }
+
++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for
isl_options_set_schedule_serialize_sccs" >&5
++$as_echo_n "checking Checking for
isl_options_set_schedule_serialize_sccs... " >&6; }
++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h. */
++#include <isl/schedule.h>
++int
++main ()
++{
++isl_options_set_schedule_serialize_sccs (NULL, 0);
++ ;
++ return 0;
++}
++_ACEOF
++if ac_fn_cxx_try_link "$LINENO"; then :
++ ac_has_isl_options_set_schedule_serialize_sccs=yes
++else
++ ac_has_isl_options_set_schedule_serialize_sccs=no
++fi
++rm -f core conftest.err conftest.$ac_objext \
++ conftest$ac_exeext conftest.$ac_ext
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result:
$ac_has_isl_options_set_schedule_serialize_sccs" >&5
++$as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; }
++
+ LIBS="$saved_LIBS"
+ CFLAGS="$saved_CFLAGS"
+
+@@ -28282,6 +28307,12 @@
+ $as_echo "#define HAVE_ISL_SCHED_CONSTRAINTS_COMPUTE_SCHEDULE 1"
>>confdefs.h
+
+ fi
++
++ if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then
++
++$as_echo "#define HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS 1"
>>confdefs.h
++
++ fi
+ fi
+
+ # Check for plugin support
+diff -Naur gcc-5.2.0.orig/gcc/configure.ac gcc-5.2.0/gcc/configure.ac
+--- gcc-5.2.0.orig/gcc/configure.ac 2015-07-03 17:00:49.000000000 +0000
++++ gcc-5.2.0/gcc/configure.ac 2015-08-16 22:03:40.970769092 +0000
+@@ -5693,6 +5693,8 @@
+
+ # Check whether isl_schedule_constraints_compute_schedule is available;
+ # it's new in ISL-0.13.
++# Check whether isl_options_set_schedule_serialize_sccs is available;
++# it's new in ISL-0.15.
+ if test "x${ISLLIBS}" != "x" ; then
+ saved_CFLAGS="$CFLAGS"
+ CFLAGS="$CFLAGS $ISLINC"
+@@ -5706,6 +5708,13 @@
+ [ac_has_isl_schedule_constraints_compute_schedule=no])
+ AC_MSG_RESULT($ac_has_isl_schedule_constraints_compute_schedule)
+
++ AC_MSG_CHECKING([Checking for isl_options_set_schedule_serialize_sccs])
++ AC_TRY_LINK([#include <isl/schedule.h>],
++ [isl_options_set_schedule_serialize_sccs (NULL, 0);],
++ [ac_has_isl_options_set_schedule_serialize_sccs=yes],
++ [ac_has_isl_options_set_schedule_serialize_sccs=no])
++ AC_MSG_RESULT($ac_has_isl_options_set_schedule_serialize_sccs)
++
+ LIBS="$saved_LIBS"
+ CFLAGS="$saved_CFLAGS"
+
+@@ -5713,6 +5722,11 @@
+ AC_DEFINE(HAVE_ISL_SCHED_CONSTRAINTS_COMPUTE_SCHEDULE, 1,
+ [Define if isl_schedule_constraints_compute_schedule
exists.])
+ fi
++
++ if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then
++ AC_DEFINE(HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS, 1,
++ [Define if isl_options_set_schedule_serialize_sccs exists.])
++ fi
+ fi
+
+ GCC_ENABLE_PLUGINS
+diff -Naur gcc-5.2.0.orig/gcc/graphite-blocking.c
gcc-5.2.0/gcc/graphite-blocking.c
+--- gcc-5.2.0.orig/gcc/graphite-blocking.c 2015-01-09 20:18:42.000000000
+0000
++++ gcc-5.2.0/gcc/graphite-blocking.c 2015-08-16 22:05:22.430091176 +0000
+@@ -24,6 +24,7 @@
+ #include "config.h"
+
+ #ifdef HAVE_isl
++#include <isl/constraint.h>
+ #include <isl/set.h>
+ #include <isl/map.h>
+ #include <isl/union_map.h>
+diff -Naur gcc-5.2.0.orig/gcc/graphite-dependences.c
gcc-5.2.0/gcc/graphite-dependences.c
+--- gcc-5.2.0.orig/gcc/graphite-dependences.c 2015-01-09 20:18:42.000000000
+0000
++++ gcc-5.2.0/gcc/graphite-dependences.c 2015-08-16 22:05:30.779486813
+0000
+@@ -22,6 +22,7 @@
+ #include "config.h"
+
+ #ifdef HAVE_isl
++#include <isl/constraint.h>
+ #include <isl/set.h>
+ #include <isl/map.h>
+ #include <isl/union_map.h>
+@@ -227,7 +228,7 @@
+ /* Helper function used on each MAP of a isl_union_map. Computes the
+ maximal output dimension. */
+
+-static int
++static isl_stat
+ max_number_of_out_dimensions (__isl_take isl_map *map, void *user)
+ {
+ int global_max = *((int *) user);
+@@ -239,7 +240,7 @@
+
+ isl_map_free (map);
+ isl_space_free (space);
+- return 0;
++ return isl_stat_ok;
+ }
+
+ /* Extends the output dimension of MAP to MAX dimensions. */
+@@ -263,12 +264,12 @@
+
+ /* Helper function for extend_schedule. */
+
+-static int
++static isl_stat
+ extend_schedule_1 (__isl_take isl_map *map, void *user)
+ {
+ struct extend_schedule_str *str = (struct extend_schedule_str *) user;
+ str->umap = isl_union_map_add_map (str->umap, extend_map (map, str->max));
+- return 0;
++ return isl_stat_ok;
+ }
+
+ /* Return a relation that has uniform output dimensions. */
+@@ -277,16 +278,16 @@
+ extend_schedule (__isl_take isl_union_map *x)
+ {
+ int max = 0;
+- int res;
++ isl_stat res;
+ struct extend_schedule_str str;
+
+ res = isl_union_map_foreach_map (x, max_number_of_out_dimensions, (void
*) &max);
+- gcc_assert (res == 0);
++ gcc_assert (res == isl_stat_ok);
+
+ str.max = max;
+ str.umap = isl_union_map_empty (isl_union_map_get_space (x));
+ res = isl_union_map_foreach_map (x, extend_schedule_1, (void *) &str);
+- gcc_assert (res == 0);
++ gcc_assert (res == isl_stat_ok);
+
+ isl_union_map_free (x);
+ return str.umap;
+diff -Naur gcc-5.2.0.orig/gcc/graphite-interchange.c
gcc-5.2.0/gcc/graphite-interchange.c
+--- gcc-5.2.0.orig/gcc/graphite-interchange.c 2015-01-09 20:18:42.000000000
+0000
++++ gcc-5.2.0/gcc/graphite-interchange.c 2015-08-16 22:05:46.051714698
+0000
+@@ -24,6 +24,7 @@
+ #include "config.h"
+
+ #ifdef HAVE_isl
++#include <isl/constraint.h>
+ #include <isl/aff.h>
+ #include <isl/set.h>
+ #include <isl/map.h>
+diff -Naur gcc-5.2.0.orig/gcc/graphite-isl-ast-to-gimple.c
gcc-5.2.0/gcc/graphite-isl-ast-to-gimple.c
+--- gcc-5.2.0.orig/gcc/graphite-isl-ast-to-gimple.c 2015-01-09
20:18:42.000000000 +0000
++++ gcc-5.2.0/gcc/graphite-isl-ast-to-gimple.c 2015-08-16 22:06:01.783909314
+0000
+@@ -21,7 +21,9 @@
+ #include "config.h"
+
+ #ifdef HAVE_isl
++#include <isl/constraint.h>
+ #include <isl/set.h>
++#include <isl/union_set.h>
+ #include <isl/map.h>
+ #include <isl/union_map.h>
+ #include <isl/ast_build.h>
+diff -Naur gcc-5.2.0.orig/gcc/graphite-optimize-isl.c
gcc-5.2.0/gcc/graphite-optimize-isl.c
+--- gcc-5.2.0.orig/gcc/graphite-optimize-isl.c 2015-01-09 20:18:42.000000000
+0000
++++ gcc-5.2.0/gcc/graphite-optimize-isl.c 2015-08-16 22:07:00.819636445
+0000
+@@ -21,7 +21,9 @@
+ #include "config.h"
+
+ #ifdef HAVE_isl
++#include <isl/constraint.h>
+ #include <isl/set.h>
++#include <isl/union_set.h>
+ #include <isl/map.h>
+ #include <isl/union_map.h>
+ #include <isl/schedule.h>
+@@ -530,13 +532,13 @@
+ return ScheduleMap;
+ }
+
+-static int
++static isl_stat
+ getSingleMap (__isl_take isl_map *map, void *user)
+ {
+ isl_map **singleMap = (isl_map **) user;
+ *singleMap = map;
+
+- return 0;
++ return isl_stat_ok;
+ }
+
+ static void
+@@ -608,7 +610,11 @@
+
+ isl_options_set_schedule_max_constant_term (scop->ctx, CONSTANT_BOUND);
+ isl_options_set_schedule_maximize_band_depth (scop->ctx, 1);
++#ifdef HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS
++ isl_options_set_schedule_serialize_sccs (scop->ctx, 1);
++#else
+ isl_options_set_schedule_fuse (scop->ctx, ISL_SCHEDULE_FUSE_MIN);
++#endif
+ isl_options_set_on_error (scop->ctx, ISL_ON_ERROR_CONTINUE);
+
+ #ifdef HAVE_ISL_SCHED_CONSTRAINTS_COMPUTE_SCHEDULE
+diff -Naur gcc-5.2.0.orig/gcc/graphite-poly.c gcc-5.2.0/gcc/graphite-poly.c
+--- gcc-5.2.0.orig/gcc/graphite-poly.c 2015-01-09 20:18:42.000000000 +0000
++++ gcc-5.2.0/gcc/graphite-poly.c 2015-08-16 22:07:17.621753733 +0000
+@@ -22,6 +22,7 @@
+ #include "config.h"
+
+ #ifdef HAVE_isl
++#include <isl/constraint.h>
+ #include <isl/set.h>
+ #include <isl/map.h>
+ #include <isl/union_map.h>
+diff -Naur gcc-5.2.0.orig/gcc/graphite-poly.h gcc-5.2.0/gcc/graphite-poly.h
+--- gcc-5.2.0.orig/gcc/graphite-poly.h 2015-01-05 12:33:28.000000000 +0000
++++ gcc-5.2.0/gcc/graphite-poly.h 2015-08-16 22:03:40.970769092 +0000
+@@ -22,6 +22,11 @@
+ #ifndef GCC_GRAPHITE_POLY_H
+ #define GCC_GRAPHITE_POLY_H
+
++#ifndef HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS
++# define isl_stat int
++# define isl_stat_ok 0
++#endif
++
+ typedef struct poly_dr *poly_dr_p;
+
+ typedef struct poly_bb *poly_bb_p;
+diff -Naur gcc-5.2.0.orig/gcc/graphite-scop-detection.c
gcc-5.2.0/gcc/graphite-scop-detection.c
+--- gcc-5.2.0.orig/gcc/graphite-scop-detection.c 2015-01-09
20:18:42.000000000 +0000
++++ gcc-5.2.0/gcc/graphite-scop-detection.c 2015-08-16 22:07:23.487995841
+0000
+@@ -22,6 +22,7 @@
+ #include "config.h"
+
+ #ifdef HAVE_isl
++#include <isl/constraint.h>
+ #include <isl/set.h>
+ #include <isl/map.h>
+ #include <isl/union_map.h>
+diff -Naur gcc-5.2.0.orig/gcc/graphite-sese-to-poly.c
gcc-5.2.0/gcc/graphite-sese-to-poly.c
+--- gcc-5.2.0.orig/gcc/graphite-sese-to-poly.c 2015-01-15 13:28:42.000000000
+0000
++++ gcc-5.2.0/gcc/graphite-sese-to-poly.c 2015-08-16 22:07:31.617407497
+0000
+@@ -21,6 +21,7 @@
+ #include "config.h"
+
+ #ifdef HAVE_isl
++#include <isl/constraint.h>
+ #include <isl/set.h>
+ #include <isl/map.h>
+ #include <isl/union_map.h>
+diff -Naur gcc-5.2.0.orig/gcc/graphite.c gcc-5.2.0/gcc/graphite.c
+--- gcc-5.2.0.orig/gcc/graphite.c 2015-01-09 20:18:42.000000000 +0000
++++ gcc-5.2.0/gcc/graphite.c 2015-08-16 22:07:43.916517396 +0000
+@@ -35,6 +35,7 @@
+ #include "config.h"
+
+ #ifdef HAVE_isl
++#include <isl/constraint.h>
+ #include <isl/set.h>
+ #include <isl/map.h>
+ #include <isl/options.h>
- [SM-Commit] GIT changes to master grimoire by Ismael Luceno (19d05723d6eb6819f14a996a42c7056965588d6d), Ismael Luceno, 11/17/2015
Archive powered by MHonArc 2.6.24.