components/gcc3/patches/gcc.configure.patch
author Mike Sullivan <Mike.Sullivan@Oracle.COM>
Fri, 18 Mar 2016 17:58:54 -0700
changeset 5628 f2a8a7ecf3e1
parent 1522 b74fd0949e89
permissions -rw-r--r--
15760468 texinfo should be updated to 6.0 18223100 /usr/bin/makeinfo dumps core due to a buffer overflow
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1522
b74fd0949e89 17629924 texinfo 4.13 - make 64bits build, enable ASLR, and remove SFW links
Bick Torrejon <bick.torrejon@oracle.com>
parents: 246
diff changeset
     1
--- gcc-3.4.3/gcc/configure.~1~	2004-11-08 17:49:32.000000000 -0800
b74fd0949e89 17629924 texinfo 4.13 - make 64bits build, enable ASLR, and remove SFW links
Bick Torrejon <bick.torrejon@oracle.com>
parents: 246
diff changeset
     2
+++ gcc-3.4.3/gcc/configure	2013-09-18 14:15:43.180189095 -0700
b74fd0949e89 17629924 texinfo 4.13 - make 64bits build, enable ASLR, and remove SFW links
Bick Torrejon <bick.torrejon@oracle.com>
parents: 246
diff changeset
     3
@@ -5232,7 +5232,7 @@
b74fd0949e89 17629924 texinfo 4.13 - make 64bits build, enable ASLR, and remove SFW links
Bick Torrejon <bick.torrejon@oracle.com>
parents: 246
diff changeset
     4
   echo "configure:5232: version of makeinfo is $ac_prog_version" >&5
b74fd0949e89 17629924 texinfo 4.13 - make 64bits build, enable ASLR, and remove SFW links
Bick Torrejon <bick.torrejon@oracle.com>
parents: 246
diff changeset
     5
   case $ac_prog_version in
b74fd0949e89 17629924 texinfo 4.13 - make 64bits build, enable ASLR, and remove SFW links
Bick Torrejon <bick.torrejon@oracle.com>
parents: 246
diff changeset
     6
     '')     gcc_cv_prog_makeinfo_modern=no;;
b74fd0949e89 17629924 texinfo 4.13 - make 64bits build, enable ASLR, and remove SFW links
Bick Torrejon <bick.torrejon@oracle.com>
parents: 246
diff changeset
     7
-    4.[2-9]*)
5628
f2a8a7ecf3e1 15760468 texinfo should be updated to 6.0
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 1522
diff changeset
     8
+    4.[2-9]* | 4.1? | 6.[0-9]*)
1522
b74fd0949e89 17629924 texinfo 4.13 - make 64bits build, enable ASLR, and remove SFW links
Bick Torrejon <bick.torrejon@oracle.com>
parents: 246
diff changeset
     9
             gcc_cv_prog_makeinfo_modern=yes;;
b74fd0949e89 17629924 texinfo 4.13 - make 64bits build, enable ASLR, and remove SFW links
Bick Torrejon <bick.torrejon@oracle.com>
parents: 246
diff changeset
    10
     *)      gcc_cv_prog_makeinfo_modern=no;;
b74fd0949e89 17629924 texinfo 4.13 - make 64bits build, enable ASLR, and remove SFW links
Bick Torrejon <bick.torrejon@oracle.com>
parents: 246
diff changeset
    11
   esac
b74fd0949e89 17629924 texinfo 4.13 - make 64bits build, enable ASLR, and remove SFW links
Bick Torrejon <bick.torrejon@oracle.com>
parents: 246
diff changeset
    12
@@ -10539,9 +10539,10 @@
b74fd0949e89 17629924 texinfo 4.13 - make 64bits build, enable ASLR, and remove SFW links
Bick Torrejon <bick.torrejon@oracle.com>
parents: 246
diff changeset
    13
   # arbitrary sections are supported and try the test.
b74fd0949e89 17629924 texinfo 4.13 - make 64bits build, enable ASLR, and remove SFW links
Bick Torrejon <bick.torrejon@oracle.com>
parents: 246
diff changeset
    14
   as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
b74fd0949e89 17629924 texinfo 4.13 - make 64bits build, enable ASLR, and remove SFW links
Bick Torrejon <bick.torrejon@oracle.com>
parents: 246
diff changeset
    15
   if echo "$as_ver" | grep GNU > /dev/null; then
b74fd0949e89 17629924 texinfo 4.13 - make 64bits build, enable ASLR, and remove SFW links
Bick Torrejon <bick.torrejon@oracle.com>
parents: 246
diff changeset
    16
-    as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
b74fd0949e89 17629924 texinfo 4.13 - make 64bits build, enable ASLR, and remove SFW links
Bick Torrejon <bick.torrejon@oracle.com>
parents: 246
diff changeset
    17
-    as_major=`echo $as_ver | sed 's/\..*//'`
b74fd0949e89 17629924 texinfo 4.13 - make 64bits build, enable ASLR, and remove SFW links
Bick Torrejon <bick.torrejon@oracle.com>
parents: 246
diff changeset
    18
-    as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
b74fd0949e89 17629924 texinfo 4.13 - make 64bits build, enable ASLR, and remove SFW links
Bick Torrejon <bick.torrejon@oracle.com>
parents: 246
diff changeset
    19
+    as_vers=`echo $as_ver | sed -n \
b74fd0949e89 17629924 texinfo 4.13 - make 64bits build, enable ASLR, and remove SFW links
Bick Torrejon <bick.torrejon@oracle.com>
parents: 246
diff changeset
    20
+	-e 's,^.*[	 ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
b74fd0949e89 17629924 texinfo 4.13 - make 64bits build, enable ASLR, and remove SFW links
Bick Torrejon <bick.torrejon@oracle.com>
parents: 246
diff changeset
    21
+    as_major=`expr "$as_vers" : '\([0-9]*\)'`
b74fd0949e89 17629924 texinfo 4.13 - make 64bits build, enable ASLR, and remove SFW links
Bick Torrejon <bick.torrejon@oracle.com>
parents: 246
diff changeset
    22
+    as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
b74fd0949e89 17629924 texinfo 4.13 - make 64bits build, enable ASLR, and remove SFW links
Bick Torrejon <bick.torrejon@oracle.com>
parents: 246
diff changeset
    23
     if test $as_major -eq 2 && test $as_minor -lt 11
b74fd0949e89 17629924 texinfo 4.13 - make 64bits build, enable ASLR, and remove SFW links
Bick Torrejon <bick.torrejon@oracle.com>
parents: 246
diff changeset
    24
     then :
b74fd0949e89 17629924 texinfo 4.13 - make 64bits build, enable ASLR, and remove SFW links
Bick Torrejon <bick.torrejon@oracle.com>
parents: 246
diff changeset
    25
     else gcc_cv_as_leb128=yes