patches/binutils/2.15/210-skip-comments.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Mon Feb 02 22:00:18 2009 +0000 (2009-02-02)
changeset 1201 c9967a6e3b25
parent 745 e445c00d134d
permissions -rw-r--r--
Add a patchset for glibc 2_9. Vampirised from the gentoo repository.

/trunk/patches/glibc/2_9/500-ppc-glibc-2.9-atomic.patch | 414 414 0 0 ++++++++++
/trunk/patches/glibc/2_9/140-regex-BZ9697.patch | 111 111 0 0 +++
/trunk/patches/glibc/2_9/190-queue-header-updates.patch | 89 89 0 0 ++
/trunk/patches/glibc/2_9/370-hppa_glibc-2.7-hppa-nptl-carlos.patch | 249 249 0 0 ++++++
/trunk/patches/glibc/2_9/450-alpha-glibc-2.5-no-page-header.patch | 32 32 0 0 +
/trunk/patches/glibc/2_9/270-ldbl-nexttowardf.patch | 68 68 0 0 ++
/trunk/patches/glibc/2_9/330-2.3.3-china.patch | 35 35 0 0 +
/trunk/patches/glibc/2_9/340-new-valencian-locale.patch | 120 120 0 0 +++
/trunk/patches/glibc/2_9/410-2.9-fnmatch.patch | 64 64 0 0 ++
/trunk/patches/glibc/2_9/350-2.4-undefine-__i686.patch | 47 47 0 0 +
/trunk/patches/glibc/2_9/160-i386-x86_64-revert-clone-cfi.patch | 53 53 0 0 +
/trunk/patches/glibc/2_9/420-dont-build-timezone.patch | 19 19 0 0 +
/trunk/patches/glibc/2_9/150-regex-BZ697.patch | 28 28 0 0 +
/trunk/patches/glibc/2_9/290-no-inline-gmon.patch | 38 38 0 0 +
/trunk/patches/glibc/2_9/280-section-comments.patch | 29 29 0 0 +
/trunk/patches/glibc/2_9/180-math-tests.patch | 72 72 0 0 ++
/trunk/patches/glibc/2_9/120-_nss_dns_gethostbyaddr2_r-check-and-adjust-the-buffer-alignment.patch | 35 35 0 0 +
/trunk/patches/glibc/2_9/250-resolv-dynamic.patch | 44 44 0 0 +
/trunk/patches/glibc/2_9/300-2.9-check_native-headers.patch | 22 22 0 0 +
/trunk/patches/glibc/2_9/310-2.3.6-fix-pr631.patch | 50 50 0 0 +
/trunk/patches/glibc/2_9/130-add_prio-macros.patch | 26 26 0 0 +
/trunk/patches/glibc/2_9/260-fadvise64_64.patch | 30 30 0 0 +
/trunk/patches/glibc/2_9/440-alpha-glibc-2.4-xstat.patch | 249 249 0 0 ++++++
/trunk/patches/glibc/2_9/170-2.10-dns-no-gethostbyname4.patch | 35 35 0 0 +
/trunk/patches/glibc/2_9/230-2.3.3-localedef-fix-trampoline.patch | 74 74 0 0 ++
/trunk/patches/glibc/2_9/360-2.8-nscd-one-fork.patch | 45 45 0 0 +
/trunk/patches/glibc/2_9/480-alpha-glibc-2.8-cache-shape.patch | 18 18 0 0 +
/trunk/patches/glibc/2_9/210-2.9-strlen-hack.patch | 109 109 0 0 +++
/trunk/patches/glibc/2_9/320-2.9-assume-pipe2.patch | 59 59 0 0 +
/trunk/patches/glibc/2_9/100-ssp-compat.patch | 193 193 0 0 +++++
/trunk/patches/glibc/2_9/110-respect-env-CPPFLAGS.patch | 30 30 0 0 +
/trunk/patches/glibc/2_9/220-manual-no-perl.patch | 29 29 0 0 +
/trunk/patches/glibc/2_9/390-2.3.3_pre20040117-pt_pax.patch | 35 35 0 0 +
/trunk/patches/glibc/2_9/460-alpha-glibc-2.5-no-asm-elf-header.patch | 38 38 0 0 +
/trunk/patches/glibc/2_9/400-tests-sandbox-libdl-paths.patch | 198 198 0 0 +++++
/trunk/patches/glibc/2_9/240-i386-LOAD_PIC_REG.patch | 23 23 0 0 +
/trunk/patches/glibc/2_9/200-awk-in-C-locale.patch | 23 23 0 0 +
/trunk/patches/glibc/2_9/430-2.7-cross-compile-nptl.patch | 57 57 0 0 +
/trunk/patches/glibc/2_9/380-2.3.6-dl_execstack-PaX-support.patch | 71 71 0 0 ++
/trunk/patches/glibc/2_9/490-ptr-mangling.patch | 114 114 0 0 +++
/trunk/patches/glibc/2_9/470-alpha-glibc-2.8-creat.patch | 19 19 0 0 +
41 files changed, 3094 insertions(+)
yann@402
     1
Retrieved from http://sources.redhat.com/ml/binutils/2004-04/msg00646.html
yann@402
     2
Fixes
yann@402
     3
localealias.s:544: Error: junk at end of line, first unrecognized character is `,' 
yann@402
     4
when building glibc-2.3.2 with gcc-3.4.0 and binutils-2.15.90.0.3
yann@402
     5
yann@402
     6
Paths adjusted to match crosstool's patcher.
yann@402
     7
yann@402
     8
Message-Id: m3n052qw2g.fsf@whitebox.m5r.de
yann@402
     9
From: Andreas Schwab <schwab at suse dot de>
yann@402
    10
To: Nathan Sidwell <nathan at codesourcery dot com>
yann@402
    11
Cc: Ian Lance Taylor <ian at wasabisystems dot com>, binutils at sources dot redhat dot com
yann@402
    12
Date: Fri, 23 Apr 2004 22:27:19 +0200
yann@402
    13
Subject: Re: demand_empty_rest_of_line and ignore_rest_of_line
yann@402
    14
yann@402
    15
Nathan Sidwell <nathan@codesourcery.com> writes:
yann@402
    16
yann@402
    17
> Index: read.c
yann@402
    18
> ===================================================================
yann@402
    19
> RCS file: /cvs/src/src/gas/read.c,v
yann@402
    20
> retrieving revision 1.76
yann@402
    21
> diff -c -3 -p -r1.76 read.c
yann@402
    22
> *** read.c	12 Mar 2004 17:48:12 -0000	1.76
yann@402
    23
> --- read.c	18 Mar 2004 09:56:05 -0000
yann@402
    24
> *************** read_a_source_file (char *name)
yann@402
    25
> *** 1053,1059 ****
yann@402
    26
>   #endif
yann@402
    27
>   	  input_line_pointer--;
yann@402
    28
>   	  /* Report unknown char as ignored.  */
yann@402
    29
> ! 	  ignore_rest_of_line ();
yann@402
    30
>   	}
yann@402
    31
>   
yann@402
    32
>   #ifdef md_after_pass_hook
yann@402
    33
> --- 1053,1059 ----
yann@402
    34
>   #endif
yann@402
    35
>   	  input_line_pointer--;
yann@402
    36
>   	  /* Report unknown char as ignored.  */
yann@402
    37
> ! 	  demand_empty_rest_of_line ();
yann@402
    38
>   	}
yann@402
    39
>   
yann@402
    40
>   #ifdef md_after_pass_hook
yann@402
    41
yann@402
    42
This means that the unknown character is no longer ignored, despite the
yann@402
    43
comment.  As a side effect a line starting with a line comment character
yann@402
    44
not followed by APP in NO_APP mode now triggers an error instead of just a
yann@402
    45
warning, breaking builds of glibc on m68k-linux.  Earlier in
yann@402
    46
read_a_source_file where #APP is handled there is another comment that
yann@402
    47
claims that unknown comments are ignored, when in fact they aren't (only
yann@402
    48
the initial line comment character is skipped).
yann@402
    49
yann@402
    50
Note that the presence of #APP will mess up the line counters, but
yann@402
    51
that appears to be difficult to fix.
yann@402
    52
yann@402
    53
Andreas.
yann@402
    54
yann@402
    55
2004-04-23  Andreas Schwab  <schwab@suse.de>
yann@402
    56
yann@402
    57
	* read.c (read_a_source_file): Ignore unknown text after line
yann@402
    58
	comment character.  Fix misleading comment.
yann@402
    59
yann@402
    60
--- binutils/gas/read.c.~1.78.~	2004-04-23 08:58:23.000000000 +0200
yann@402
    61
+++ binutils/gas/read.c	2004-04-23 21:49:01.000000000 +0200
yann@402
    62
@@ -1,6 +1,6 @@
yann@402
    63
 /* read.c - read a source file -
yann@402
    64
    Copyright 1986, 1987, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997,
yann@402
    65
-   1998, 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
yann@402
    66
+   1998, 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
yann@402
    67
 
yann@402
    68
 This file is part of GAS, the GNU Assembler.
yann@402
    69
 
yann@402
    70
@@ -950,10 +950,14 @@ read_a_source_file (char *name)
yann@402
    71
 	      unsigned int new_length;
yann@402
    72
 	      char *tmp_buf = 0;
yann@402
    73
 
yann@402
    74
-	      bump_line_counters ();
yann@402
    75
 	      s = input_line_pointer;
yann@402
    76
 	      if (strncmp (s, "APP\n", 4))
yann@402
    77
-		continue;	/* We ignore it */
yann@402
    78
+		{
yann@402
    79
+		  /* We ignore it */
yann@402
    80
+		  ignore_rest_of_line ();
yann@402
    81
+		  continue;
yann@402
    82
+		}
yann@402
    83
+	      bump_line_counters ();
yann@402
    84
 	      s += 4;
yann@402
    85
 
yann@402
    86
 	      sb_new (&sbuf);
yann@402
    87
@@ -1052,7 +1056,7 @@ read_a_source_file (char *name)
yann@402
    88
 	    continue;
yann@402
    89
 #endif
yann@402
    90
 	  input_line_pointer--;
yann@402
    91
-	  /* Report unknown char as ignored.  */
yann@402
    92
+	  /* Report unknown char as error.  */
yann@402
    93
 	  demand_empty_rest_of_line ();
yann@402
    94
 	}
yann@402
    95
 
yann@402
    96
yann@402
    97
-- 
yann@402
    98
Andreas Schwab, SuSE Labs, schwab@suse.de
yann@402
    99
SuSE Linux AG, Maxfeldstra&#xC3;e 5, 90409 N&#xC3;rnberg, Germany
yann@402
   100
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
yann@402
   101
"And now for something completely different."