Index: BOOK/cross-tools/hppa-chapter.xml
===================================================================
--- BOOK/cross-tools/hppa-chapter.xml	(revision fd94a607f761e4a4026fb74d69cec8b7204c1151)
+++ BOOK/cross-tools/hppa-chapter.xml	(revision e832c75c6edc6cad0b3cff873e11c0b903cb3d5b)
@@ -18,7 +18,7 @@
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="hppa/binutils.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="hppa/glibc-headers.xml"/>
-  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/gcc-static.xml"/>
+  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="hppa/gcc-static.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="hppa/glibc.xml"/>
-  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/gcc-final.xml"/>
+  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="hppa/gcc-final.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/file.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/groff.xml"/>
Index: BOOK/cross-tools/hppa/gcc-final.xml
===================================================================
--- BOOK/cross-tools/hppa/gcc-final.xml	(revision e832c75c6edc6cad0b3cff873e11c0b903cb3d5b)
+++ BOOK/cross-tools/hppa/gcc-final.xml	(revision e832c75c6edc6cad0b3cff873e11c0b903cb3d5b)
@@ -0,0 +1,103 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
+  "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
+  <!ENTITY % general-entities SYSTEM "../../general.ent">
+  %general-entities;
+]>
+
+<sect1 id="ch-cross-tools-gcc-final" role="wrap">
+  <?dbhtml filename="gcc-final.html"?>
+
+  <title>GCC-&gcc-version; - Cross Compiler Final</title>
+
+  <indexterm zone="ch-cross-tools-gcc-final">
+    <primary sortas="a-GCC">GCC</primary>
+    <secondary>cross tools, final</secondary>
+  </indexterm>
+
+  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+  href="../../final-system/common/gcc.xml"
+  xpointer="xpointer(//*[@role='package'])"/>
+
+  <sect2 role="installation">
+    <title>Installation of GCC Cross Compiler</title>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../../final-system/common/gcc.xml"
+    xpointer="xpointer(//*[@os='p1'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../../final-system/common/gcc.xml"
+    xpointer="xpointer(//*[@os='p2'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../../final-system/common/gcc.xml"
+    xpointer="xpointer(//*[@os='p3'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../../final-system/common/gcc.xml"
+    xpointer="xpointer(//*[@os='p4'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="gcc-static.xml"
+    xpointer="xpointer(//*[@os='aa'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="gcc-static.xml"
+    xpointer="xpointer(//*[@os='ab'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="gcc-static.xml"
+    xpointer="xpointer(//*[@os='ac'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="gcc-static.xml"
+    xpointer="xpointer(//*[@os='ad'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="gcc-static.xml"
+    xpointer="xpointer(//*[@os='c'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="gcc-static.xml"
+    xpointer="xpointer(//*[@os='d'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="gcc-static.xml"
+    xpointer="xpointer(//*[@os='e'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../common/gcc-final.xml"
+    xpointer="xpointer(//*[@os='ae'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../common/gcc-final.xml"
+    xpointer="xpointer(//*[@os='af'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="gcc-static.xml"
+    xpointer="xpointer(//*[@os='ag'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../common/gcc-final.xml"
+    xpointer="xpointer(//*[@os='ah'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="gcc-static.xml"
+    xpointer="xpointer(//*[@os='ai'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../common/gcc-final.xml"
+    xpointer="xpointer(//*[@os='aj'])"/>
+
+  </sect2>
+
+  <sect2 role="content">
+    <title/>
+
+    <para>Details on this package are located in <xref
+    linkend="contents-gcc" role="."/></para>
+
+  </sect2>
+
+</sect1>
Index: BOOK/cross-tools/hppa/gcc-static.xml
===================================================================
--- BOOK/cross-tools/hppa/gcc-static.xml	(revision e832c75c6edc6cad0b3cff873e11c0b903cb3d5b)
+++ BOOK/cross-tools/hppa/gcc-static.xml	(revision e832c75c6edc6cad0b3cff873e11c0b903cb3d5b)
@@ -0,0 +1,89 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
+  "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
+  <!ENTITY % general-entities SYSTEM "../../general.ent">
+  %general-entities;
+]>
+
+<sect1 id="ch-cross-tools-gcc-static" role="wrap">
+  <?dbhtml filename="gcc-static.html"?>
+
+  <title>Cross GCC-&gcc-version; - Static</title>
+
+  <indexterm zone="ch-cross-tools-gcc-static">
+    <primary sortas="a-GCC">GCC</primary>
+    <secondary>cross tools, static</secondary>
+  </indexterm>
+
+  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+  href="../common/gcc-static.xml"
+  xpointer="xpointer(//*[@role='package'])"/>
+
+  <sect2 role="installation">
+    <title>Installation of Cross GCC Compiler with Static libgcc
+    and no Threads</title>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../common/gcc-static.xml"
+    xpointer="xpointer(//*[@os='p1'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../common/gcc-static.xml"
+    xpointer="xpointer(//*[@os='p2'])"/>
+
+    <para os="aa">The following patch fixes the cross-compilation of Glibc for
+    PA-RISC on a 64bit host:</para>
+
+<screen os="ab"><userinput>patch -Np1 -i ../&gcc-PR29114-patch;</userinput></screen>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../common/gcc-static.xml"
+    xpointer="xpointer(//*[@os='ac'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../common/gcc-static.xml"
+    xpointer="xpointer(//*[@os='ad'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../common/gcc-static.xml"
+    xpointer="xpointer(//*[@os='c'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../common/gcc-static.xml"
+    xpointer="xpointer(//*[@os='d'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../common/gcc-static.xml"
+    xpointer="xpointer(//*[@os='e'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../common/gcc-static.xml"
+    xpointer="xpointer(//*[@os='ae'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../common/gcc-static.xml"
+    xpointer="xpointer(//*[@os='af'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../common/gcc-static.xml"
+    xpointer="xpointer(//*[@os='ag'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../common/gcc-static.xml"
+    xpointer="xpointer(//*[@os='ah'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../common/gcc-static.xml"
+    xpointer="xpointer(//*[@os='ai'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../common/gcc-static.xml"
+    xpointer="xpointer(//*[@os='aj'])"/>
+
+  </sect2>
+
+  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+  href="../common/gcc-static.xml"
+  xpointer="xpointer(//*[@role='content'])"/>
+
+</sect1>
Index: BOOK/introduction/hppa/changelog.xml
===================================================================
--- BOOK/introduction/hppa/changelog.xml	(revision fd94a607f761e4a4026fb74d69cec8b7204c1151)
+++ BOOK/introduction/hppa/changelog.xml	(revision e832c75c6edc6cad0b3cff873e11c0b903cb3d5b)
@@ -37,4 +37,8 @@
       <itemizedlist>
         <listitem>
+          <para>[jciccone] - Added the GCC PR29114 patch which fixes the
+          compilation of Glibc on a 64bit host.</para>
+        </listitem>
+        <listitem>
           <para>[jciccone] - Added a Glibc NPTL patch that allows Glibc to
           compile with NPTL working support.</para>
Index: BOOK/materials/hppa/patches.xml
===================================================================
--- BOOK/materials/hppa/patches.xml	(revision fd94a607f761e4a4026fb74d69cec8b7204c1151)
+++ BOOK/materials/hppa/patches.xml	(revision e832c75c6edc6cad0b3cff873e11c0b903cb3d5b)
@@ -23,4 +23,13 @@
 
     <varlistentry>
+      <term>GCC PR29114 Patch - <token>&gcc-PR29114-patch-size;</token>:</term>
+      <listitem>
+        <para>Download: <ulink
+        url="&patches-root;&gcc-PR29114-patch;"/></para>
+        <para>MD5 sum: <literal>&gcc-PR29114-patch-md5;</literal></para>
+      </listitem>
+    </varlistentry>
+
+    <varlistentry>
       <term>Glibc NPTL Patch - <token>&glibc-hppa_nptl-patch-size;</token>:</term>
       <listitem>
Index: BOOK/patches.ent
===================================================================
--- BOOK/patches.ent	(revision fd94a607f761e4a4026fb74d69cec8b7204c1151)
+++ BOOK/patches.ent	(revision e832c75c6edc6cad0b3cff873e11c0b903cb3d5b)
@@ -131,4 +131,8 @@
 <!ENTITY binutils-hppa_tls-patch-size "268 KB">
 
+<!ENTITY gcc-PR29114-patch "gcc-&gcc-version;-PR29114-1.patch">
+<!ENTITY gcc-PR29114-patch-md5 "76d58dce69d440bf4a09b52f039db907">
+<!ENTITY gcc-PR29114-patch-size "4 KB">
+
 <!ENTITY glibc-hppa_nptl-patch "glibc-&glibc-version;-hppa_nptl-1.patch">
 <!ENTITY glibc-hppa_nptl-patch-md5 "25cfa673cbc940fde3638d1abf54fd79">
Index: patches/gcc-4.1.1-PR29114.patch
===================================================================
--- patches/gcc-4.1.1-PR29114.patch	(revision e832c75c6edc6cad0b3cff873e11c0b903cb3d5b)
+++ patches/gcc-4.1.1-PR29114.patch	(revision e832c75c6edc6cad0b3cff873e11c0b903cb3d5b)
@@ -0,0 +1,21 @@
+Submitted By: Joe Ciccone <jciccone@linuxfromscratch.org>
+Date: 2006-11-30
+Initial Package Version: 2.5
+Upstream Status: In CVS
+Origin: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29114
+Description: Fixes cross-compiling glibc for hppa on a 64bit host.
+
+        * pa.c (emit_move_sequence): Don't split constants with PLUS for modes
+        larger than BITS_PER_WORD.
+
+diff -Naur gcc-4.1.1.orig/gcc/config/pa/pa.c gcc-4.1.1/gcc/config/pa/pa.c
+--- gcc-4.1.1.orig/gcc/config/pa/pa.c	2006-11-30 17:53:19.000000000 -0500
++++ gcc-4.1.1/gcc/config/pa/pa.c	2006-11-30 18:37:31.000000000 -0500
+@@ -1879,6 +1879,7 @@
+ 	     because PLUS uses an 11-bit immediate and the insn sequence
+ 	     generated is not as efficient as the one using HIGH/LO_SUM.  */
+ 	  if (GET_CODE (operand1) == CONST_INT
++	      && GET_MODE_BITSIZE (mode) <= BITS_PER_WORD
+ 	      && GET_MODE_BITSIZE (mode) <= HOST_BITS_PER_WIDE_INT
+ 	      && !insert)
+ 	    {
