[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-dejagnu] [patch] allow testing of glibc code
From: |
Will Cohen |
Subject: |
[Bug-dejagnu] [patch] allow testing of glibc code |
Date: |
Fri, 07 Sep 2001 16:50:23 -0400 |
When linking with recent versions of glibc, 2.2.4, alternative functions
are suggested like below:
xxx.o: In function `writef':
xxx.o(.text+0x1f): the use of `tmpnam' is dangerous, better use
`mkstemp'
The attached patch allow dejagnu to ignore these warning and give more
accurate test result. Without this patch many of the tests will fail.
Could we get this patch put into dejagnu? The changelog entry is below.
-Will
2001-09-07 Will Cohen <address@hidden>
* lib/target.exp: Ignore ld's warning about alternative functions
to use.
--
Will Cohen, GCC Engineer ------ ,__o
Red Hat, 2600 Meridian pkwy, Durham, NC 27713 ------ _-\_<,
Office (919)-547-0012 x390 Fax (919)-547-0024 ------ (*)/'(*)
Index: dejagnu/lib/target.exp
===================================================================
RCS file: /cvs/cvsfiles/devo/dejagnu/lib/target.exp,v
retrieving revision 1.56
diff -c -2 -p -r1.56 target.exp
*** target.exp 2001/01/12 18:15:13 1.56
--- target.exp 2001/09/07 13:57:54
*************** proc prune_warnings { text } {
*** 269,272 ****
--- 269,280 ----
regsub -all "(^|\n)\[^\n\]*: In function\[^\n\]*\n\[^\n\]\[^\n\]*function
is dangerous\[^\n\]*" $text "" text
+ # GNU ld warns about functions marked as dangerous in GNU libc. If there
+ # are other warnings, we may not see the ': In Function part of the
+ # previous message.
+ regsub -all "(^|\n)\[^\n\]*: the \[^\n\]* function is dangerous\[^\n\]*"
$text "" text
+
+ # GNU ld warns about functions marked as dangerous in GNU libc.
+ regsub -all "(^|\n)\[^\n\]*: In function\[^\n\]*\n\[^\n\]\[^\n\]*the use
of \[^\n\]* is dangerous, better use \[^\n\]*" $text "" text
+
# Libgloss libnosys defines functions that warn when linked in
regsub -all "(^|\n)\[^\n\]*: In function\[^\n\]*\n\[^\n\]\[^\n\]*is not
implemented and will always fail\[^\n\]*" $text "" text
- [Bug-dejagnu] [patch] allow testing of glibc code,
Will Cohen <=