mirror of git://sourceware.org/git/glibc.git
Update.
* sysdeps/i386/fpu/bits/mathinline.h (__finite): Mark constant as unsigned to avoid warning. [PR libc/1271]. * conform/conformtest.pl: Allow testing regex.h which requires sys/types.h being included.
This commit is contained in:
parent
b395c02de7
commit
77faa35416
|
@ -1,5 +1,11 @@
|
||||||
1999-08-25 Ulrich Drepper <drepper@cygnus.com>
|
1999-08-25 Ulrich Drepper <drepper@cygnus.com>
|
||||||
|
|
||||||
|
* sysdeps/i386/fpu/bits/mathinline.h (__finite): Mark constant as
|
||||||
|
unsigned to avoid warning. [PR libc/1271].
|
||||||
|
|
||||||
|
* conform/conformtest.pl: Allow testing regex.h which requires
|
||||||
|
sys/types.h being included.
|
||||||
|
|
||||||
* conform/data/regex.h-data: Allow *_t types.
|
* conform/data/regex.h-data: Allow *_t types.
|
||||||
* conform/data/pwd.h-data: Likewise.
|
* conform/data/pwd.h-data: Likewise.
|
||||||
* conform/data/sched.h-data: Likewise
|
* conform/data/sched.h-data: Likewise
|
||||||
|
|
|
@ -18,6 +18,9 @@ $CFLAGS = "-I. '-D__attribute__(x)=' -D_XOPEN_SOURCE=500";
|
||||||
'short', 'signed', 'sizeof', 'static', 'struct', 'switch',
|
'short', 'signed', 'sizeof', 'static', 'struct', 'switch',
|
||||||
'typedef', 'union', 'unsigned', 'void', 'volatile', 'while');
|
'typedef', 'union', 'unsigned', 'void', 'volatile', 'while');
|
||||||
|
|
||||||
|
# Some headers need a bit more attention.
|
||||||
|
$mustprepend{'regex.h'} = "#include <sys/types.h>\n";
|
||||||
|
|
||||||
# Make an hash table from this information.
|
# Make an hash table from this information.
|
||||||
while ($#keywords) {
|
while ($#keywords) {
|
||||||
$iskeyword{pop (@keywords)} = 1;
|
$iskeyword{pop (@keywords)} = 1;
|
||||||
|
@ -228,12 +231,14 @@ while ($#headers >= 0) {
|
||||||
my($fnamebase) = "$tmpdir/$h-test";
|
my($fnamebase) = "$tmpdir/$h-test";
|
||||||
my($missing);
|
my($missing);
|
||||||
my(@allow) = ();
|
my(@allow) = ();
|
||||||
|
my($prepend) = $mustprepend{$h};
|
||||||
|
|
||||||
printf ("Testing <$h>\n");
|
printf ("Testing <$h>\n");
|
||||||
printf ("----------" . "-" x length ($h) . "\n");
|
printf ("----------" . "-" x length ($h) . "\n");
|
||||||
|
|
||||||
# Generate a program to test for the availability of this header.
|
# Generate a program to test for the availability of this header.
|
||||||
open (TESTFILE, ">$fnamebase.c");
|
open (TESTFILE, ">$fnamebase.c");
|
||||||
|
print TESTFILE "$prepend";
|
||||||
print TESTFILE "#include <$h>\n";
|
print TESTFILE "#include <$h>\n";
|
||||||
close (TESTFILE);
|
close (TESTFILE);
|
||||||
|
|
||||||
|
@ -260,6 +265,7 @@ while ($#headers >= 0) {
|
||||||
|
|
||||||
# Generate a program to test for the availability of this member.
|
# Generate a program to test for the availability of this member.
|
||||||
open (TESTFILE, ">$fnamebase.c");
|
open (TESTFILE, ">$fnamebase.c");
|
||||||
|
print TESTFILE "$prepend";
|
||||||
print TESTFILE "#include <$h>\n";
|
print TESTFILE "#include <$h>\n";
|
||||||
print TESTFILE "$struct a;\n";
|
print TESTFILE "$struct a;\n";
|
||||||
print TESTFILE "$struct b;\n";
|
print TESTFILE "$struct b;\n";
|
||||||
|
@ -275,6 +281,7 @@ while ($#headers >= 0) {
|
||||||
|
|
||||||
# Test the types of the members.
|
# Test the types of the members.
|
||||||
open (TESTFILE, ">$fnamebase.c");
|
open (TESTFILE, ">$fnamebase.c");
|
||||||
|
print TESTFILE "$prepend";
|
||||||
print TESTFILE "#include <$h>\n";
|
print TESTFILE "#include <$h>\n";
|
||||||
print TESTFILE "$struct a;\n";
|
print TESTFILE "$struct a;\n";
|
||||||
print TESTFILE "extern $type b$rest;\n";
|
print TESTFILE "extern $type b$rest;\n";
|
||||||
|
@ -293,6 +300,7 @@ while ($#headers >= 0) {
|
||||||
|
|
||||||
# Generate a program to test for the availability of this constant.
|
# Generate a program to test for the availability of this constant.
|
||||||
open (TESTFILE, ">$fnamebase.c");
|
open (TESTFILE, ">$fnamebase.c");
|
||||||
|
print TESTFILE "$prepend";
|
||||||
print TESTFILE "#include <$h>\n";
|
print TESTFILE "#include <$h>\n";
|
||||||
print TESTFILE "__typeof__ ($const) a = $const;\n";
|
print TESTFILE "__typeof__ ($const) a = $const;\n";
|
||||||
close (TESTFILE);
|
close (TESTFILE);
|
||||||
|
@ -303,6 +311,7 @@ while ($#headers >= 0) {
|
||||||
if ($value ne "") {
|
if ($value ne "") {
|
||||||
# Generate a program to test for the value of this constant.
|
# Generate a program to test for the value of this constant.
|
||||||
open (TESTFILE, ">$fnamebase.c");
|
open (TESTFILE, ">$fnamebase.c");
|
||||||
|
print TESTFILE "$prepend";
|
||||||
print TESTFILE "#include <$h>\n";
|
print TESTFILE "#include <$h>\n";
|
||||||
print TESTFILE "int main (void) { return $const != $value; }\n";
|
print TESTFILE "int main (void) { return $const != $value; }\n";
|
||||||
close (TESTFILE);
|
close (TESTFILE);
|
||||||
|
@ -327,6 +336,7 @@ while ($#headers >= 0) {
|
||||||
|
|
||||||
# Generate a program to test for the availability of this constant.
|
# Generate a program to test for the availability of this constant.
|
||||||
open (TESTFILE, ">$fnamebase.c");
|
open (TESTFILE, ">$fnamebase.c");
|
||||||
|
print TESTFILE "$prepend";
|
||||||
print TESTFILE "#include <$h>\n";
|
print TESTFILE "#include <$h>\n";
|
||||||
print TESTFILE "$type *a;\n";
|
print TESTFILE "$type *a;\n";
|
||||||
close (TESTFILE);
|
close (TESTFILE);
|
||||||
|
@ -344,6 +354,7 @@ while ($#headers >= 0) {
|
||||||
|
|
||||||
# Generate a program to test for availability of this function.
|
# Generate a program to test for availability of this function.
|
||||||
open (TESTFILE, ">$fnamebase.c");
|
open (TESTFILE, ">$fnamebase.c");
|
||||||
|
print TESTFILE "$prepend";
|
||||||
print TESTFILE "#include <$h>\n";
|
print TESTFILE "#include <$h>\n";
|
||||||
# print TESTFILE "#undef $fname\n";
|
# print TESTFILE "#undef $fname\n";
|
||||||
print TESTFILE "$rettype (*foobarbaz) $args = $fname;\n";
|
print TESTFILE "$rettype (*foobarbaz) $args = $fname;\n";
|
||||||
|
@ -354,6 +365,7 @@ while ($#headers >= 0) {
|
||||||
|
|
||||||
# Generate a program to test for the type of this function.
|
# Generate a program to test for the type of this function.
|
||||||
open (TESTFILE, ">$fnamebase.c");
|
open (TESTFILE, ">$fnamebase.c");
|
||||||
|
print TESTFILE "$prepend";
|
||||||
print TESTFILE "#include <$h>\n";
|
print TESTFILE "#include <$h>\n";
|
||||||
# print TESTFILE "#undef $fname\n";
|
# print TESTFILE "#undef $fname\n";
|
||||||
print TESTFILE "extern $rettype (*foobarbaz) $args;\n";
|
print TESTFILE "extern $rettype (*foobarbaz) $args;\n";
|
||||||
|
@ -370,6 +382,7 @@ while ($#headers >= 0) {
|
||||||
|
|
||||||
# Generate a program to test for availability of this macro.
|
# Generate a program to test for availability of this macro.
|
||||||
open (TESTFILE, ">$fnamebase.c");
|
open (TESTFILE, ">$fnamebase.c");
|
||||||
|
print TESTFILE "$prepend";
|
||||||
print TESTFILE "#include <$h>\n";
|
print TESTFILE "#include <$h>\n";
|
||||||
print TESTFILE "#ifndef $macro\n";
|
print TESTFILE "#ifndef $macro\n";
|
||||||
print TESTFILE "# error \"Macro $macro not defined\"\n";
|
print TESTFILE "# error \"Macro $macro not defined\"\n";
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#ifndef ISO
|
#ifndef ISO
|
||||||
type regex_t
|
type regex_t
|
||||||
element regex_t re_nsub
|
element regex_t size_t re_nsub
|
||||||
|
|
||||||
type regoff_t
|
type regoff_t
|
||||||
|
|
||||||
|
|
|
@ -641,7 +641,7 @@ __finite (double __x)
|
||||||
{
|
{
|
||||||
return (__extension__
|
return (__extension__
|
||||||
(((((union { double __d; int __i[2]; }) {__d: __x}).__i[1]
|
(((((union { double __d; int __i[2]; }) {__d: __x}).__i[1]
|
||||||
| 0x800fffff) + 1) >> 31));
|
| 0x800fffffu) + 1) >> 31));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Miscellaneous functions */
|
/* Miscellaneous functions */
|
||||||
|
|
Loading…
Reference in New Issue