Description: <short summary of the patch>
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 gcl (2.6.7+dfsga-4) unstable; urgency=high
 .
   * sgc-on fix with latest gcc
Author: Camm Maguire <camm@debian.org>

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: http://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: <YYYY-MM-DD>

--- gcl-2.6.7+dfsga.orig/h/elf32_s390_reloc.h
+++ gcl-2.6.7+dfsga/h/elf32_s390_reloc.h
@@ -5,3 +5,7 @@
   case     R_390_PC32:
     add_val(where,~0L,s+a-p);
     break;
+
+ case     R_390_PC32DBL:
+    add_val(where,~0L,(s+a-p)>>1);
+    break;
--- gcl-2.6.7+dfsga.orig/o/hash.d
+++ gcl-2.6.7+dfsga/o/hash.d
@@ -148,7 +148,7 @@ BEGIN:
   if (depth++ <=3)
     switch ((tx=type_of(x))) {
     case t_cons:
-      h^=ihash_equal(x->c.c_car,depth)^rtb[depth];
+      h^=ihash_equal(x->c.c_car,depth)^rtb[abs(depth%(sizeof(rtb)/sizeof(*rtb)))];
       x = x->c.c_cdr;
       goto BEGIN;
       break;
--- gcl-2.6.7+dfsga.orig/o/sgbc.c
+++ gcl-2.6.7+dfsga/o/sgbc.c
@@ -1068,7 +1068,7 @@ typedef enum {memprotect_none,memprotect
 	      memprotect_bad_return,memprotect_no_signal,
 	      memprotect_multiple_invocations,memprotect_no_restart,
 	      memprotect_bad_fault_address,memprotect_success} memprotect_enum;
-static memprotect_enum memprotect_result;
+static volatile memprotect_enum memprotect_result;
 static int memprotect_handler_invocations,memprotect_print_enable;
 static void *memprotect_test_address;
 
