This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: PATCH: Add missing ia64 .proc
On Thu, Mar 24, 2005 at 09:56:24PM -0800, David Mosberger wrote:
> Also, I did a reimport of the libm and the only thing that changed was
> whitespace and in a couple of files (e.g., e_scalb.S), it now catches
> the start of __libm_error_region, which was missed before.
>
> --david
>
> Index: import_file.awk
> ===================================================================
> RCS file: /cvs/glibc/libc/sysdeps/ia64/fpu/import_file.awk,v
> retrieving revision 1.1
> diff -u -r1.1 import_file.awk
> --- import_file.awk 6 Jan 2005 11:29:21 -0000 1.1
> +++ import_file.awk 25 Mar 2005 05:50:41 -0000
> @@ -115,7 +115,6 @@
> print
> getline;
> }
> - getline;
> printf "%s_END(%s)\n", type, name;
> if (match(name, "^exp10[fl]?$")) {
> t=substr(name,6)
Works for me. BTW, I have the following change to remove the unused
files and import some more files.
H.J.
----
--- /export/gnu/import/libc/sysdeps/ia64/fpu/import_intel_libm 2005-01-06 03:29:21.000000000 -0800
+++ ./import_intel_libm 2005-03-04 17:08:49.000000000 -0800
@@ -16,6 +16,7 @@ import_s() {
# $2 = source file-name
# $3 = destination file-name
echo "Importing $1 from $2 -> $3"
+ rm -f $3
awk -f import_file.awk FUNC=$1 $2 > $3
}
@@ -24,6 +25,7 @@ import_c() {
# $2 = source file-name
# $3 = destination file-name
echo "Importing $1 from $2 -> $3"
+ rm -f $3
awk -f import_file.awk LICENSE_ONLY=y $2 > $3
}
@@ -40,3 +42,62 @@ do_imports() {
./gen_import_file_list $libm_dir > import_file_list
do_imports < import_file_list
+
+emptyfiles="
+e_gamma_r.c
+e_gammaf_r.c
+e_gammal_r.c
+s_sincos.c
+s_sincosf.c
+s_sincosl.c
+t_exp.c
+w_acosh.c
+w_acoshf.c
+w_acoshl.c
+w_atanh.c
+w_atanhf.c
+w_atanhl.c
+w_exp10.c
+w_exp10f.c
+w_exp10l.c
+w_exp2.c
+w_exp2f.c
+w_exp2l.c
+w_expl.c
+w_lgamma_r.c
+w_lgammaf_r.c
+w_lgammal_r.c
+w_log2.c
+w_log2f.c
+w_log2l.c
+w_sinh.c
+w_sinhf.c
+w_sinhl.c
+"
+for f in $emptyfiles
+do
+ rm -f $f
+ echo "/* Not needed. */" > $f
+done
+
+removedfiles="
+libm_atan2_reg.S
+s_ldexp.S
+s_ldexpf.S
+s_ldexpl.S
+s_scalbn.S
+s_scalbnf.S
+s_scalbnl.S
+"
+
+rm -f $removedfiles
+
+for f in lgammaf_r.c lgammal_r.c lgamma_r.c
+do
+ import_c $f $libm_dir/$f e_$f
+done
+
+for f in lgamma.c lgammaf.c lgammal.c
+do
+ import_c $f $libm_dir/$f w_$f
+done