This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: binutils without a date is not handled properly withoutGNU sed


Jakub Jelinek <jakub@redhat.com> writes:

|> On Thu, May 15, 2003 at 01:08:16AM -0500, Loren James Rittle wrote:
|> > $(ld_vers) is later parsed with expr in a manner that tolerates extra
|> > dotted numbers after the patch level.  I.e. the above final proposal
|> > would handle the various mutant binutils which add a 4th and 5th
|> > number to the dotted version number...
|> > 
|> > Permission to apply to mainline?
|> 
|> Certainly not, this breaks the test.
|> There were binutils 2.12.90.0.xx releases which did not have proper
|> hidden support.
|> If your sed cannot handle \|, then you might try to split setting ld_vers
|> into all the alternatives (ie. ld_vers=first_alternative;
|> test -z "$ld_vers" && ld_vers=second_alternative, etc.).

Alternatively one could use multiple sed expressions (-e '...' -e '...').

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]