r4957 - in trunk: BOOK BOOK/general/prog BOOK/introduction/welcome patches

randy at linuxfromscratch.org randy at linuxfromscratch.org
Fri Aug 19 21:26:32 PDT 2005


Author: randy
Date: 2005-08-19 22:26:31 -0600 (Fri, 19 Aug 2005)
New Revision: 4957

Added:
   trunk/patches/gcc-3.4.4-linkonce-1.patch
   trunk/patches/gcc-3.4.4-no_fixincludes-1.patch
Removed:
   trunk/patches/gcc-3.4.3-linkonce-1.patch
   trunk/patches/gcc-3.4.3-no_fixincludes-1.patch
Modified:
   trunk/BOOK/general.ent
   trunk/BOOK/general/prog/gcc.xml
   trunk/BOOK/introduction/welcome/changelog.xml
Log:
Updated to GCC-3.4.4; modified command to create the ffitarget.h interface header in /usr/include

Modified: trunk/BOOK/general/prog/gcc.xml
===================================================================
--- trunk/BOOK/general/prog/gcc.xml	2005-08-19 22:40:00 UTC (rev 4956)
+++ trunk/BOOK/general/prog/gcc.xml	2005-08-20 04:26:31 UTC (rev 4957)
@@ -6,15 +6,16 @@
 
   <!ENTITY gcc-download-http  "http://mirrors.rcn.net/pub/sourceware/gcc/releases/gcc-&gcc-version;/gcc-&gcc-version;.tar.bz2">
   <!ENTITY gcc-download-ftp   "ftp://mirrors.rcn.net/pub/sourceware/gcc/releases/gcc-&gcc-version;/gcc-&gcc-version;.tar.bz2">
-  <!ENTITY gcc-md5sum         "e744b30c834360fccac41eb7269a3011">
-  <!ENTITY gcc-size           "27.4 MB">
-  <!ENTITY gcc-buildsize      "1.62 GB">
-  <!ENTITY gcc-time           "45.50 SBU (build and install all compilers)">
+  <!ENTITY gcc-md5sum         "b594ff4ea4fbef4ba9220887de713dfe">
+  <!ENTITY gcc-size           "27.5 MB">
+  <!ENTITY gcc-buildsize      "1.6 GB">
+  <!ENTITY gcc-time           "46 SBU (build, test and install all compilers)">
 
-  <!ENTITY gnat-download-http " ">
-  <!ENTITY gnat-download-ftp  "ftp://cs.nyu.edu/pub/gnat/3.15p/gnat-3.15p-i686-pc-redhat71-gnu-bin.tar.gz">
-  <!ENTITY gnat-md5sum        "57c060cd1ccef8b1ae9165b11d98780a">
-  <!ENTITY gnat-size          "13.4 MB">
+  <!ENTITY gnat-download-http "http://anduin.linuxfromscratch.org/sources/BLFS/SVN/F-H/gnat-3.15p-i686-pc-redhat71-gnu-bin.tar.bz2">
+  <!ENTITY gnat-download-ftp  "ftp://anduin.linuxfromscratch.org/sources/BLFS/SVN/F-H/gnat-3.15p-i686-pc-redhat71-gnu-bin.tar.bz2">
+  <!ENTITY gnat-md5sum        "c9aad2da908a40e876c24fc85f248b51">
+  <!ENTITY gnat-size          "11.6 MB">
+  <!ENTITY gnat-buildsize     "97.7 MB">
   <!ENTITY gnat-time          "less than 0.1 SBU">
 ]>
 
@@ -102,6 +103,9 @@
         <para>Download size: &gnat-size;</para>
       </listitem>
       <listitem>
+        <para>Estimated disk space required: &gnat-buildsize;</para>
+      </listitem>
+      <listitem>
         <para>Estimated build time: &gnat-time;</para>
       </listitem>
     </itemizedlist>
@@ -122,9 +126,9 @@
 <screen><userinput>./doconfig</userinput></screen>
 
     <para>The above script will ask you how and where you would like to install
-    <application>GNAT</application>. To avoid conflicts with
-    the system <command>gcc</command>, the package will be installed in a separate
-    directory, that can later be removed from the system.</para>
+    <application>GNAT</application>. To avoid conflicts with the system
+    <command>gcc</command>, the package will be installed in a separate
+    directory that can later be removed from the system.</para>
 
     <para>In response to the questions asked by the <command>doconfig</command>
     script, enter <userinput>3</userinput> in response to the first question
@@ -172,8 +176,8 @@
       until you're confident the build was successful. You can compare your
       test results with those found at
       <ulink url="http://gcc.gnu.org/ml/gcc-testresults/"/>. There's also an
-      i686 platform test result produced by an LFS-6.1 system at
-      <ulink url="http://linuxfromscratch.org/~randy/gcc343_test.txt"/>. You
+      i686 platform test result produced by an LFS-SVN-20050730 system at
+      <ulink url="http://linuxfromscratch.org/~randy/gcc344_test.txt"/>. You
       may also want to refer to the information found in the
       <application>GCC</application>-Pass 2 section of Chapter 5 in the LFS book
       (<ulink url="&lfs-root;/chapter05/gcc-pass2.html"/>).</para>
@@ -204,6 +208,15 @@
 chown -v -R root:root \
     /usr/lib/gcc/i686-pc-linux-gnu/&gcc-version;/ada{lib,include}</userinput></screen>
 
+    <para>The <filename class='libraryfile'>libffi</filename> interface header
+    is installed in a location where other packages will not be able to find
+    it. If you included Java as one of the installed languages, create a
+    symbolic link in <filename class='directory'>/usr/include</filename> to
+    remedy this:</para>
+
+<screen role="root"><userinput>ln -v -sf `find /usr/lib/gcc -name ffitarget.h` /usr/include</userinput></screen>
+
+<!--
     <para>There is a bug in the installation of the
     <filename class='libraryfile'>libffi</filename> interface headers. The
     architecture specific <filename>ffitarget.h</filename> file is not installed.
@@ -214,6 +227,7 @@
 
 <screen role="root"><userinput>install -v -m644 ../gcc-&gcc-version;/libffi/src/<replaceable>[arch]</replaceable>/ffitarget.h \
     /usr/include</userinput></screen>
+-->
 
     <para>As the <systemitem class="username">root</systemitem> user, remove the
     <application>GNAT</application> installation:</para>

Modified: trunk/BOOK/general.ent
===================================================================
--- trunk/BOOK/general.ent	2005-08-19 22:40:00 UTC (rev 4956)
+++ trunk/BOOK/general.ent	2005-08-20 04:26:31 UTC (rev 4957)
@@ -1,4 +1,4 @@
-<!ENTITY day          "19">
+<!ENTITY day          "20">
 <!ENTITY month        "08">
 <!ENTITY year         "2005">
 <!ENTITY version      "svn-&year;&month;&day;">
@@ -139,7 +139,7 @@
 <!ENTITY dejagnu-version              "1.4.4">
 <!ENTITY doxygen-version              "1.4.4">
 <!ENTITY expect-version               "5.43.0">
-<!ENTITY gcc-version                  "3.4.3">
+<!ENTITY gcc-version                  "3.4.4">
 <!ENTITY gcc3-version                 "3.3.6">
 <!ENTITY guile-version                "1.6.7">
 <!ENTITY jdk-bin-version              "1.5.0_04">

Modified: trunk/BOOK/introduction/welcome/changelog.xml
===================================================================
--- trunk/BOOK/introduction/welcome/changelog.xml	2005-08-19 22:40:00 UTC (rev 4956)
+++ trunk/BOOK/introduction/welcome/changelog.xml	2005-08-20 04:26:31 UTC (rev 4957)
@@ -41,6 +41,16 @@
 -->
 
     <listitem>
+      <para>August 20th, 2005</para>
+      <itemizedlist>
+        <listitem>
+          <para>[randy] - Updated to GCC-3.4.4, modified the command to create
+          the ffitarget.h interface header in /usr/include.</para>
+        </listitem>
+      </itemizedlist>
+    </listitem>
+
+    <listitem>
       <para>August 19th, 2005</para>
       <itemizedlist>
         <listitem>

Deleted: trunk/patches/gcc-3.4.3-linkonce-1.patch
===================================================================
--- trunk/patches/gcc-3.4.3-linkonce-1.patch	2005-08-19 22:40:00 UTC (rev 4956)
+++ trunk/patches/gcc-3.4.3-linkonce-1.patch	2005-08-20 04:26:31 UTC (rev 4957)
@@ -1,357 +0,0 @@
-Submitted By: Jim Gifford (patches at jg555 dot com)
-Date: 2004-11-05
-Initial Package Version: 3.4.3
-Origin: Jim Gifford
-Upstream Status: Delayed till 3.4.4
-Description: Fixes linkone/comdat issue
-
-$LastChangedBy$
-$Date$
- 
-diff -Naur gcc-3.4.3.orig/gcc/config/alpha/alpha.c gcc-3.4.3/gcc/config/alpha/alpha.c
---- gcc-3.4.3.orig/gcc/config/alpha/alpha.c	2004-09-30 17:45:48.000000000 +0000
-+++ gcc-3.4.3/gcc/config/alpha/alpha.c	2004-11-05 17:08:46.220272104 +0000
-@@ -10169,6 +10169,8 @@
- # define TARGET_SECTION_TYPE_FLAGS unicosmk_section_type_flags
- # undef TARGET_ASM_UNIQUE_SECTION
- # define TARGET_ASM_UNIQUE_SECTION unicosmk_unique_section
-+#undef TARGET_ASM_FUNCTION_RODATA_SECTION
-+#define TARGET_ASM_FUNCTION_RODATA_SECTION default_no_function_rodata_section
- # undef TARGET_ASM_GLOBALIZE_LABEL
- # define TARGET_ASM_GLOBALIZE_LABEL hook_void_FILEptr_constcharptr
- #endif
-diff -Naur gcc-3.4.3.orig/gcc/config/arm/pe.h gcc-3.4.3/gcc/config/arm/pe.h
---- gcc-3.4.3.orig/gcc/config/arm/pe.h	2004-02-24 14:25:22.000000000 +0000
-+++ gcc-3.4.3/gcc/config/arm/pe.h	2004-11-05 17:08:46.225271344 +0000
-@@ -97,6 +97,7 @@
- #define MULTIPLE_SYMBOL_SPACES
- 
- #define TARGET_ASM_UNIQUE_SECTION arm_pe_unique_section
-+#define TARGET_ASM_FUNCTION_RODATA_SECTION default_no_function_rodata_section
- 
- #define SUPPORTS_ONE_ONLY 1
- 
-diff -Naur gcc-3.4.3.orig/gcc/config/avr/avr.c gcc-3.4.3/gcc/config/avr/avr.c
---- gcc-3.4.3.orig/gcc/config/avr/avr.c	2004-09-28 01:13:55.000000000 +0000
-+++ gcc-3.4.3/gcc/config/avr/avr.c	2004-11-05 17:56:54.764146688 +0000
-@@ -229,6 +229,8 @@
- #define TARGET_ASM_FUNCTION_EPILOGUE avr_output_function_epilogue
- #undef TARGET_ATTRIBUTE_TABLE
- #define TARGET_ATTRIBUTE_TABLE avr_attribute_table
-+#undef TARGET_ASM_FUNCTION_RODATA_SECTION
-+#define TARGET_ASM_FUNCTION_RODATA_SECTION default_no_function_rodata_section
- #undef TARGET_INSERT_ATTRIBUTES
- #define TARGET_INSERT_ATTRIBUTES avr_insert_attributes
- #undef TARGET_SECTION_TYPE_FLAGS
-diff -Naur gcc-3.4.3.orig/gcc/config/darwin.h gcc-3.4.3/gcc/config/darwin.h
---- gcc-3.4.3.orig/gcc/config/darwin.h	2004-09-11 20:32:17.000000000 +0000
-+++ gcc-3.4.3/gcc/config/darwin.h	2004-11-05 17:08:46.300259944 +0000
-@@ -686,6 +686,9 @@
- #undef	TARGET_ASM_SELECT_RTX_SECTION
- #define TARGET_ASM_SELECT_RTX_SECTION machopic_select_rtx_section
- 
-+#undef  TARGET_ASM_FUNCTION_RODATA_SECTION
-+#define TARGET_ASM_FUNCTION_RODATA_SECTION default_no_function_rodata_section
-+
- #define ASM_DECLARE_UNRESOLVED_REFERENCE(FILE,NAME)			\
-     do {								\
- 	 if (FILE) {							\
-diff -Naur gcc-3.4.3.orig/gcc/config/i386/cygming.h gcc-3.4.3/gcc/config/i386/cygming.h
---- gcc-3.4.3.orig/gcc/config/i386/cygming.h	2004-06-08 06:30:13.000000000 +0000
-+++ gcc-3.4.3/gcc/config/i386/cygming.h	2004-11-05 17:08:46.304259336 +0000
-@@ -255,6 +255,7 @@
- 
- extern void i386_pe_unique_section (TREE, int);
- #define TARGET_ASM_UNIQUE_SECTION i386_pe_unique_section
-+#define TARGET_ASM_FUNCTION_RODATA_SECTION default_no_function_rodata_section
- 
- #define SUPPORTS_ONE_ONLY 1
- 
-diff -Naur gcc-3.4.3.orig/gcc/config/i386/i386-interix.h gcc-3.4.3/gcc/config/i386/i386-interix.h
---- gcc-3.4.3.orig/gcc/config/i386/i386-interix.h	2004-01-31 06:18:20.000000000 +0000
-+++ gcc-3.4.3/gcc/config/i386/i386-interix.h	2004-11-05 17:08:46.307258880 +0000
-@@ -344,6 +344,7 @@
- 
- extern void i386_pe_unique_section (tree, int);
- #define TARGET_ASM_UNIQUE_SECTION i386_pe_unique_section
-+#define TARGET_ASM_FUNCTION_RODATA_SECTION default_no_function_rodata_section
- 
- #define SUPPORTS_ONE_ONLY 1
- #endif /* 0 */
-diff -Naur gcc-3.4.3.orig/gcc/config/ip2k/ip2k.c gcc-3.4.3/gcc/config/ip2k/ip2k.c
---- gcc-3.4.3.orig/gcc/config/ip2k/ip2k.c	2004-01-31 06:18:25.000000000 +0000
-+++ gcc-3.4.3/gcc/config/ip2k/ip2k.c	2004-11-05 17:08:46.352252040 +0000
-@@ -98,6 +98,9 @@
- #undef TARGET_ASM_UNIQUE_SECTION
- #define TARGET_ASM_UNIQUE_SECTION unique_section
- 
-+#undef TARGET_ASM_FUNCTION_RODATA_SECTION
-+#define TARGET_ASM_FUNCTION_RODATA_SECTION default_no_function_rodata_section
-+
- #undef TARGET_ATTRIBUTE_TABLE
- #define TARGET_ATTRIBUTE_TABLE ip2k_attribute_table
- 
-diff -Naur gcc-3.4.3.orig/gcc/config/mcore/mcore.c gcc-3.4.3/gcc/config/mcore/mcore.c
---- gcc-3.4.3.orig/gcc/config/mcore/mcore.c	2004-01-31 06:18:29.000000000 +0000
-+++ gcc-3.4.3/gcc/config/mcore/mcore.c	2004-11-05 17:08:46.384247176 +0000
-@@ -165,6 +165,8 @@
- #define TARGET_ATTRIBUTE_TABLE 		mcore_attribute_table
- #undef  TARGET_ASM_UNIQUE_SECTION
- #define TARGET_ASM_UNIQUE_SECTION 	mcore_unique_section
-+#undef  TARGET_ASM_FUNCTION_RODATA_SECTION
-+#define TARGET_ASM_FUNCTION_RODATA_SECTION default_no_function_rodata_section
- #undef  TARGET_ENCODE_SECTION_INFO
- #define TARGET_ENCODE_SECTION_INFO 	mcore_encode_section_info
- #undef  TARGET_STRIP_NAME_ENCODING
-diff -Naur gcc-3.4.3.orig/gcc/config/rs6000/xcoff.h gcc-3.4.3/gcc/config/rs6000/xcoff.h
---- gcc-3.4.3.orig/gcc/config/rs6000/xcoff.h	2004-01-31 06:18:34.000000000 +0000
-+++ gcc-3.4.3/gcc/config/rs6000/xcoff.h	2004-11-05 17:08:46.000000000 +0000
-@@ -172,6 +172,7 @@
- #define TARGET_ASM_SELECT_SECTION  rs6000_xcoff_select_section
- #define TARGET_ASM_SELECT_RTX_SECTION  rs6000_xcoff_select_rtx_section
- #define TARGET_ASM_UNIQUE_SECTION  rs6000_xcoff_unique_section
-+#define TARGET_ASM_FUNCTION_RODATA_SECTION default_no_function_rodata_section
- #define TARGET_STRIP_NAME_ENCODING  rs6000_xcoff_strip_name_encoding
- #define TARGET_SECTION_TYPE_FLAGS  rs6000_xcoff_section_type_flags
- 
-diff -Naur gcc-3.4.3.orig/gcc/doc/tm.texi gcc-3.4.3/gcc/doc/tm.texi
---- gcc-3.4.3.orig/gcc/doc/tm.texi	2004-10-13 14:16:27.000000000 +0000
-+++ gcc-3.4.3/gcc/doc/tm.texi	2004-11-05 17:08:46.503229088 +0000
-@@ -6003,6 +6003,15 @@
- Whatever the actual target object format, this is often good enough.
- @end deftypefn
- 
-+ at deftypefn {Target Hook} void TARGET_ASM_FUNCTION_RODATA_SECTION (tree @var{decl})
-+Switches to a readonly data section associated with
-+ at samp{DECL_SECTION_NAME (@var{decl})}.
-+The default version of this function switches to @code{.gnu.linkonce.r.name}
-+section if function's section is @code{.gnu.linkonce.t.name}, to
-+ at code{.rodata.name} if function is in @code{.text.name} section
-+and otherwise switches to the normal readonly data section.
-+ at end deftypefn
-+
- @deftypefn {Target Hook} void TARGET_ASM_SELECT_RTX_SECTION (enum machine_mode @var{mode}, rtx @var{x}, unsigned HOST_WIDE_INT @var{align})
- Switches to the appropriate section for output of constant pool entry
- @var{x} in @var{mode}.  You can assume that @var{x} is some kind of
-diff -Naur gcc-3.4.3.orig/gcc/final.c gcc-3.4.3/gcc/final.c
---- gcc-3.4.3.orig/gcc/final.c	2004-01-18 22:39:57.000000000 +0000
-+++ gcc-3.4.3/gcc/final.c	2004-11-05 17:08:46.542223160 +0000
-@@ -1881,7 +1881,7 @@
- 		{
- 		  int log_align;
- 
--		  readonly_data_section ();
-+		  targetm.asm_out.function_rodata_section (current_function_decl);
- 
- #ifdef ADDR_VEC_ALIGN
- 		  log_align = ADDR_VEC_ALIGN (NEXT_INSN (insn));
-diff -Naur gcc-3.4.3.orig/gcc/output.h gcc-3.4.3/gcc/output.h
---- gcc-3.4.3.orig/gcc/output.h	2004-01-18 22:39:57.000000000 +0000
-+++ gcc-3.4.3/gcc/output.h	2004-11-05 17:08:46.549222096 +0000
-@@ -500,6 +500,8 @@
- 					  unsigned HOST_WIDE_INT, int);
- extern void default_unique_section (tree, int);
- extern void default_unique_section_1 (tree, int, int);
-+extern void default_function_rodata_section (tree);
-+extern void default_no_function_rodata_section (tree);
- extern void default_select_rtx_section (enum machine_mode, rtx,
- 					unsigned HOST_WIDE_INT);
- extern void default_elf_select_rtx_section (enum machine_mode, rtx,
-diff -Naur gcc-3.4.3.orig/gcc/target-def.h gcc-3.4.3/gcc/target-def.h
---- gcc-3.4.3.orig/gcc/target-def.h	2004-08-23 18:02:40.000000000 +0000
-+++ gcc-3.4.3/gcc/target-def.h	2004-11-05 17:08:46.553221488 +0000
-@@ -78,6 +78,10 @@
- #define TARGET_ASM_UNIQUE_SECTION default_unique_section
- #endif
- 
-+#ifndef TARGET_ASM_FUNCTION_RODATA_SECTION
-+#define TARGET_ASM_FUNCTION_RODATA_SECTION default_function_rodata_section
-+#endif
-+
- #ifndef TARGET_ASM_SELECT_RTX_SECTION
- #define TARGET_ASM_SELECT_RTX_SECTION default_select_rtx_section
- #endif
-@@ -201,6 +205,7 @@
- 			TARGET_ASM_SELECT_SECTION,		\
- 			TARGET_ASM_SELECT_RTX_SECTION,		\
- 			TARGET_ASM_UNIQUE_SECTION,		\
-+			TARGET_ASM_FUNCTION_RODATA_SECTION,	\
- 			TARGET_ASM_CONSTRUCTOR,			\
- 			TARGET_ASM_DESTRUCTOR,                  \
-                         TARGET_ASM_OUTPUT_MI_THUNK,             \
-diff -Naur gcc-3.4.3.orig/gcc/target.h gcc-3.4.3/gcc/target.h
---- gcc-3.4.3.orig/gcc/target.h	2004-08-23 18:02:41.000000000 +0000
-+++ gcc-3.4.3/gcc/target.h	2004-11-05 17:08:46.558220728 +0000
-@@ -118,6 +118,10 @@
-        for SELECT_SECTION.  */
-     void (* unique_section) (tree, int);
- 
-+    /* Tell assembler to switch to the readonly data section associated
-+       with function DECL.  */
-+    void (* function_rodata_section) (tree); 
-+
-     /* Output a constructor for a symbol with a given priority.  */
-     void (* constructor) (rtx, int);
- 
-diff -Naur gcc-3.4.3.orig/gcc/testsuite/g++.old-deja/g++.other/comdat4-aux.cc gcc-3.4.3/gcc/testsuite/g++.old-deja/g++.other/comdat4-aux.cc
---- gcc-3.4.3.orig/gcc/testsuite/g++.old-deja/g++.other/comdat4-aux.cc	1970-01-01 00:00:00.000000000 +0000
-+++ gcc-3.4.3/gcc/testsuite/g++.old-deja/g++.other/comdat4-aux.cc	2004-11-05 17:08:46.560220424 +0000
-@@ -0,0 +1,40 @@
-+extern void
-+bar (int x);
-+
-+inline void
-+foo (int i)
-+{
-+  switch (i)
-+    {
-+    case 3:
-+    case 5:
-+    case 6:
-+    case 9:
-+    case 15:
-+      bar (1);
-+      break;
-+    case 2:
-+    case 4:
-+    case 7:
-+    case 10:
-+    case 11:
-+    case 12:
-+      bar (2);
-+      break;
-+    case 0:
-+    case 1:
-+    case 8:
-+    case 13:
-+    case 16:
-+      bar (3);
-+      break;
-+    case 14:
-+      bar (4);
-+      break;
-+    default:
-+      bar (5);
-+      break;
-+    }
-+}
-+
-+void *fooaddr2 = (void *) foo;
-diff -Naur gcc-3.4.3.orig/gcc/testsuite/g++.old-deja/g++.other/comdat4.C gcc-3.4.3/gcc/testsuite/g++.old-deja/g++.other/comdat4.C
---- gcc-3.4.3.orig/gcc/testsuite/g++.old-deja/g++.other/comdat4.C	1970-01-01 00:00:00.000000000 +0000
-+++ gcc-3.4.3/gcc/testsuite/g++.old-deja/g++.other/comdat4.C	2004-11-05 17:08:46.562220120 +0000
-@@ -0,0 +1,57 @@
-+// PR c++/16276
-+// { dg-do link }
-+// { dg-additional-sources " comdat4-aux.cc" }
-+// { dg-options "-O2" }
-+
-+extern void
-+bar (int x);
-+
-+inline void
-+foo (int i)
-+{
-+  switch (i)
-+    {
-+    case 3:
-+    case 5:
-+    case 6:
-+    case 9:
-+    case 15:
-+      bar (1);
-+      break;
-+    case 2:
-+    case 4:
-+    case 7:
-+    case 10:
-+    case 11:
-+    case 12:
-+      bar (2);
-+      break;
-+    case 0:
-+    case 1:
-+    case 8:
-+    case 13:
-+    case 16:
-+      bar (3);
-+      break;
-+    case 14:
-+      bar (4);
-+      break;
-+    default:
-+      bar (5);
-+      break;
-+    }
-+}
-+
-+void *fooaddr = (void *) foo;
-+
-+void
-+bar (int x)
-+{
-+  __asm __volatile ("" : : "r" (x));
-+}
-+
-+int
-+main (void)
-+{
-+  return 0;
-+}
-diff -Naur gcc-3.4.3.orig/gcc/varasm.c gcc-3.4.3/gcc/varasm.c
---- gcc-3.4.3.orig/gcc/varasm.c	2004-10-31 09:10:03.000000000 +0000
-+++ gcc-3.4.3/gcc/varasm.c	2004-11-05 17:08:46.603213888 +0000
-@@ -535,6 +535,53 @@
-     text_section ();
- }
- 
-+/* Switch to read-only data section associated with function DECL.  */
-+
-+void
-+default_function_rodata_section (tree decl)
-+{
-+  if (decl != NULL_TREE && DECL_SECTION_NAME (decl))
-+    {
-+      const char *name = TREE_STRING_POINTER (DECL_SECTION_NAME (decl));
-+
-+      /* For .gnu.linkonce.t.foo we want to use .gnu.linkonce.r.foo.  */
-+      if (DECL_ONE_ONLY (decl) && strncmp (name, ".gnu.linkonce.t.", 16) == 0)
-+	{
-+	  size_t len = strlen (name) + 1;
-+	  char *rname = alloca (len);
-+
-+	  memcpy (rname, name, len);
-+	  rname[14] = 'r';
-+	  named_section_flags (rname, SECTION_LINKONCE);
-+	  return;
-+	}
-+      /* For .text.foo we want to use .rodata.foo.  */
-+      else if (flag_function_sections && flag_data_sections
-+	       && strncmp (name, ".text.", 6) == 0)
-+	{
-+	  size_t len = strlen (name) + 1;
-+	  char *rname = alloca (len + 2);
-+
-+	  memcpy (rname, ".rodata", 7);
-+	  memcpy (rname + 7, name + 5, len - 5);
-+	  named_section_flags (rname, 0);
-+	  return;
-+	}
-+    }
-+
-+  readonly_data_section ();
-+}
-+
-+/* Switch to read-only data section associated with function DECL
-+   for targets where that section should be always the single
-+   readonly data section.  */
-+
-+void
-+default_no_function_rodata_section (tree decl ATTRIBUTE_UNUSED)
-+{
-+  readonly_data_section ();
-+}
-+
- /* Switch to section for variable DECL.  RELOC is the same as the
-    argument to SELECT_SECTION.  */
- 

Deleted: trunk/patches/gcc-3.4.3-no_fixincludes-1.patch
===================================================================
--- trunk/patches/gcc-3.4.3-no_fixincludes-1.patch	2005-08-19 22:40:00 UTC (rev 4956)
+++ trunk/patches/gcc-3.4.3-no_fixincludes-1.patch	2005-08-20 04:26:31 UTC (rev 4957)
@@ -1,32 +0,0 @@
-Submitted By: LFS PATCH
-Date: 2004-11-06
-Initial Package Version: 3.4.3
-Upstream Status: Not Sent - LFS Specfic
-Origin: Originally developed for GCC 3.2 by Greg Schafer and Zack Winkles
-Description: Prevent fixincludes script from running.
-
-$LastChangedBy$
-$Date$
-
-diff -Naur gcc-3.4.3.orig/gcc/Makefile.in gcc-3.4.3/gcc/Makefile.in
---- gcc-3.4.3.orig/gcc/Makefile.in	2004-10-18 16:00:39.000000000 +0000
-+++ gcc-3.4.3/gcc/Makefile.in	2004-11-05 18:09:54.600593528 +0000
-@@ -2495,10 +2495,6 @@
- 	rm -f include/limits.h
- 	cp xlimits.h include/limits.h
- 	chmod a+r include/limits.h
--# Install the README
--	rm -f include/README
--	cp $(srcdir)/README-fixinc include/README
--	chmod a+r include/README
- 	$(STAMP) $@
- 
- # fixinc.sh depends on this, not on specs directly.
-@@ -2544,7 +2540,6 @@
- 	(TARGET_MACHINE='$(target)'; srcdir=`cd $(srcdir); ${PWD_COMMAND}`; \
- 	SHELL='$(SHELL)' ;\
- 	export TARGET_MACHINE srcdir SHELL ; \
--	$(SHELL) ./fixinc.sh `${PWD_COMMAND}`/include $(SYSTEM_HEADER_DIR) $(OTHER_FIXINCLUDES_DIRS); \
- 	rm -f include/syslimits.h; \
- 	if [ -f include/limits.h ]; then \
- 	  mv include/limits.h include/syslimits.h; \

Copied: trunk/patches/gcc-3.4.4-linkonce-1.patch (from rev 4953, trunk/patches/gcc-3.4.3-linkonce-1.patch)

Copied: trunk/patches/gcc-3.4.4-no_fixincludes-1.patch (from rev 4953, trunk/patches/gcc-3.4.3-no_fixincludes-1.patch)




More information about the blfs-book mailing list