This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH, soft-fp]: Do not handle cleared exceptions in __neg_f2() functions
- From: Uros Bizjak <ubizjak at gmail dot com>
- To: libc-alpha at sourceware dot org
- Date: Sat, 19 May 2007 15:34:03 +0200
- Subject: [PATCH, soft-fp]: Do not handle cleared exceptions in __neg_f2() functions
Hello!
There is no need to handle exceptions __neg_f2() soft-fp functions as
they are cleared in previous line.
The patch was tested by bootstrapping gcc for x86_64 target (soft-fp is
shared between gcc and libc).
Also, please note that soft-fp/extended.h is not used anywhere in glibc
and could just be removed.
2007-05-19 Uros Bizjak <ubizjak@gmail.com>
* soft-fp/negsf2.c: Do not handle cleared exceptions.
* soft-fp/negdf2.c: Ditto.
* soft-fp/negtf2.c: Ditto.
* soft-fp/extended.h: Remove.
Uros.
Index: negdf2.c
===================================================================
--- negdf2.c (revision 124853)
+++ negdf2.c (working copy)
@@ -1,6 +1,6 @@
/* Software floating-point emulation.
Return -a
- Copyright (C) 1997,1999,2006 Free Software Foundation, Inc.
+ Copyright (C) 1997,1999,2006,2007 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Richard Henderson (rth@cygnus.com) and
Jakub Jelinek (jj@ultra.linux.cz).
@@ -42,7 +42,6 @@
FP_NEG_D(R, A);
FP_PACK_D(r, R);
FP_CLEAR_EXCEPTIONS;
- FP_HANDLE_EXCEPTIONS;
return r;
}
Index: negsf2.c
===================================================================
--- negsf2.c (revision 124853)
+++ negsf2.c (working copy)
@@ -1,6 +1,6 @@
/* Software floating-point emulation.
Return -a
- Copyright (C) 1997,1999,2006 Free Software Foundation, Inc.
+ Copyright (C) 1997,1999,2006,2007 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Richard Henderson (rth@cygnus.com) and
Jakub Jelinek (jj@ultra.linux.cz).
@@ -42,7 +42,6 @@
FP_NEG_S(R, A);
FP_PACK_S(r, R);
FP_CLEAR_EXCEPTIONS;
- FP_HANDLE_EXCEPTIONS;
return r;
}
Index: negtf2.c
===================================================================
--- negtf2.c (revision 124853)
+++ negtf2.c (working copy)
@@ -1,6 +1,6 @@
/* Software floating-point emulation.
Return -a
- Copyright (C) 1997,1999,2006 Free Software Foundation, Inc.
+ Copyright (C) 1997,1999,2006,2007 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Richard Henderson (rth@cygnus.com) and
Jakub Jelinek (jj@ultra.linux.cz).
@@ -42,7 +42,6 @@
FP_NEG_Q(R, A);
FP_PACK_Q(r, R);
FP_CLEAR_EXCEPTIONS;
- FP_HANDLE_EXCEPTIONS;
return r;
}