Ticket #2518: 0001-Bugfix-gcc-4.3.2-couldn-t-be-build-with-a-modern-tex.patch

File 0001-Bugfix-gcc-4.3.2-couldn-t-be-build-with-a-modern-tex.patch, 4.5 KB (added by Goetz Pfeiffer, on 01/12/16 at 09:10:26)

Fix gcc-4.3.2 incompatibility with texinfo 6.0

  • new file tools/4.9/gcc/gcc-core-4.3.2-rtems4.9-20151123.diff

    From 4c6aa5419c9290bb59d5e1abf70a6c7252564448 Mon Sep 17 00:00:00 2001
    From: =?UTF-8?q?G=C3=B6tz=20Pfeiffer?= <pfeiffer@elbe.acc.bessy.de>
    Date: Thu, 7 Jan 2016 15:12:03 +0100
    Subject: [PATCH 1/4] Bugfix: gcc-4.3.2 couldn't be build with a modern texinfo
     package.
    
    The texinfo documentation of binutils contained some constructs that are
    errors, at least for a modern version of texinfo (version 6.0 and newer). This
    meant that gcc-4.3.2 couldn't be build e.g. on fedora-22.
    
    A patch file was added to fix the problematic parts of the documentation.
    ---
     .../4.9/gcc/gcc-core-4.3.2-rtems4.9-20151123.diff  | 91 ++++++++++++++++++++++
     1 file changed, 91 insertions(+)
     create mode 100644 tools/4.9/gcc/gcc-core-4.3.2-rtems4.9-20151123.diff
    
    diff --git a/tools/4.9/gcc/gcc-core-4.3.2-rtems4.9-20151123.diff b/tools/4.9/gcc/gcc-core-4.3.2-rtems4.9-20151123.diff
    new file mode 100644
    index 0000000..d85d8c2
    - +  
     1diff -Naur gcc-4.3.2-orig/gcc/doc/c-tree.texi gcc-4.3.2/gcc/doc/c-tree.texi
     2--- gcc-4.3.2-orig/gcc/doc/c-tree.texi  2008-02-17 19:52:04.000000000 +0100
     3+++ gcc-4.3.2/gcc/doc/c-tree.texi       2015-11-19 15:57:28.246547226 +0100
     4@@ -2325,13 +2325,13 @@
     5 not matter.  The type of the operands and that of the result are
     6 always of @code{BOOLEAN_TYPE} or @code{INTEGER_TYPE}.
     7 
     8-@itemx POINTER_PLUS_EXPR
     9+@item POINTER_PLUS_EXPR
     10 This node represents pointer arithmetic.  The first operand is always
     11 a pointer/reference type.  The second operand is always an unsigned
     12 integer type compatible with sizetype.  This is the only binary
     13 arithmetic operand that can operate on pointer types.
     14 
     15-@itemx PLUS_EXPR
     16+@item PLUS_EXPR
     17 @itemx MINUS_EXPR
     18 @itemx MULT_EXPR
     19 These nodes represent various binary arithmetic operations.
     20diff -Naur gcc-4.3.2-orig/gcc/doc/cppopts.texi gcc-4.3.2/gcc/doc/cppopts.texi
     21--- gcc-4.3.2-orig/gcc/doc/cppopts.texi 2007-07-30 20:29:20.000000000 +0200
     22+++ gcc-4.3.2/gcc/doc/cppopts.texi      2015-11-19 15:57:28.246547226 +0100
     23@@ -754,7 +754,7 @@
     24 Enable special code to work around file systems which only permit very
     25 short file names, such as MS-DOS@.
     26 
     27-@itemx --help
     28+@item --help
     29 @itemx --target-help
     30 @opindex help
     31 @opindex target-help
     32diff -Naur gcc-4.3.2-orig/gcc/doc/extend.texi gcc-4.3.2/gcc/doc/extend.texi
     33--- gcc-4.3.2-orig/gcc/doc/extend.texi  2008-07-15 17:52:35.000000000 +0200
     34+++ gcc-4.3.2/gcc/doc/extend.texi       2015-11-19 16:00:11.664369617 +0100
     35@@ -2861,6 +2861,8 @@
     36 The possible values of @var{visibility_type} correspond to the
     37 visibility settings in the ELF gABI.
     38 
     39+@end table
     40+
     41 @table @dfn
     42 @c keep this list of visibilities in alphabetical order.
     43 
     44@@ -2901,8 +2903,6 @@
     45 definition in that module.  That is, the declared entity cannot be
     46 overridden by another module.
     47 
     48-@end table
     49-
     50 All visibilities are supported on many, but not all, ELF targets
     51 (supported when the assembler supports the @samp{.visibility}
     52 pseudo-op).  Default visibility is supported everywhere.  Hidden
     53@@ -4231,7 +4231,7 @@
     54 Otherwise the two shared objects will be unable to use the same
     55 typeinfo node and exception handling will break.
     56 
     57-@subsection ARM Type Attributes
     58+@item ARM Type Attributes
     59 
     60 On those ARM targets that support @code{dllimport} (such as Symbian
     61 OS), you can use the @code{notshared} attribute to indicate that the
     62@@ -4255,7 +4255,7 @@
     63 most Symbian OS code uses @code{__declspec}.)
     64 
     65 @anchor{i386 Type Attributes}
     66-@subsection i386 Type Attributes
     67+@item i386 Type Attributes
     68 
     69 Two attributes are currently defined for i386 configurations:
     70 @code{ms_struct} and @code{gcc_struct}
     71diff -Naur gcc-4.3.2-orig/gcc/doc/invoke.texi gcc-4.3.2/gcc/doc/invoke.texi
     72--- gcc-4.3.2-orig/gcc/doc/invoke.texi  2008-06-25 03:37:53.000000000 +0200
     73+++ gcc-4.3.2/gcc/doc/invoke.texi       2015-11-19 15:57:28.254547117 +0100
     74@@ -957,7 +957,7 @@
     75 generic, or subprogram renaming declaration).  Such files are also
     76 called @dfn{specs}.
     77 
     78-@itemx @var{file}.adb
     79+@item @var{file}.adb
     80 Ada source code file containing a library unit body (a subprogram or
     81 package body).  Such files are also called @dfn{bodies}.
     82 
     83@@ -8569,7 +8569,7 @@
     84 @samp{cortex-a8}, @samp{cortex-r4}, @samp{cortex-m3},
     85 @samp{xscale}, @samp{iwmmxt}, @samp{ep9312}.
     86 
     87-@itemx -mtune=@var{name}
     88+@item -mtune=@var{name}
     89 @opindex mtune
     90 This option is very similar to the @option{-mcpu=} option, except that
     91 instead of specifying the actual target processor type, and hence