* sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
[glibc-ports.git] / ChangeLog.m68k
blob51f6dfa022b23bbf9a1a5af9578e4221a12b5ae4
1 2006-11-28  Andreas Schwab  <schwab@suse.de>
3         * sysdeps/unix/sysv/linux/m68k/sysdep.h (DOARGS_6, _DOARGS_6)
4         (UNDOARGS_6): Define for 6-argument syscall stubs.
6 2006-10-03  Andreas Schwab  <schwab@suse.de>
8         * sysdeps/m68k/setjmp.c: Use __builtin_return_address and
9         __builtin_frame_address.  Don't call __sigjmp_save in ld.so.
11         * sysdeps/unix/sysv/linux/m68k/mremap.S: Accept fifth parameter.
13 2006-10-03  Richard Sandiford  <richard@codesourcery.com>
15         * sysdeps/m68k/bits/mathdef.h: Moved from sysdeps/m68k to
16         sysdeps/m68k/m680x0.
17         * sysdeps/m68k/m68020/submul_1.S: Likewise.
18         * sysdeps/m68k/m68020/Makefile: Likewise.
19         * sysdeps/m68k/m68020/mul_1.S: Likewise.
20         * sysdeps/m68k/m68020/wordcopy.S: Likewise.
21         * sysdeps/m68k/m68020/addmul_1.S: Likewise.
22         * sysdeps/m68k/m68020/bits/string.h: Likewise.
23         * sysdeps/m68k/m68020/bits/atomic.h: Likewise.
24         * sysdeps/m68k/sub_n.S: Likewise.
25         * sysdeps/m68k/add_n.S: Likewise.
26         * sysdeps/m68k/s_isnanl.c: Likewise.
27         * sysdeps/m68k/fpu/s_log1p.c: Likewise.
28         * sysdeps/m68k/fpu/e_asinf.c: Likewise.
29         * sysdeps/m68k/fpu/s_cosl.c: Likewise.
30         * sysdeps/m68k/fpu/s_isinff.c: Likewise.
31         * sysdeps/m68k/fpu/k_rem_pio2.c: Likewise.
32         * sysdeps/m68k/fpu/s_ccos.c: Likewise.
33         * sysdeps/m68k/fpu/s_expm1.c: Likewise.
34         * sysdeps/m68k/fpu/slowexp.c: Likewise.
35         * sysdeps/m68k/fpu/k_rem_pio2l.c: Likewise.
36         * sysdeps/m68k/fpu/s_ccoshf.c: Likewise.
37         * sysdeps/m68k/fpu/s_ilogbl.c: Likewise.
38         * sysdeps/m68k/fpu/Makefile: Likewise.
39         * sysdeps/m68k/fpu/s_expm1f.c: Likewise.
40         * sysdeps/m68k/fpu/s_significandf.c: Likewise.
41         * sysdeps/m68k/fpu/e_pow.c: Likewise.
42         * sysdeps/m68k/fpu/s_csinh.c: Likewise.
43         * sysdeps/m68k/fpu/e_exp.c: Likewise.
44         * sysdeps/m68k/fpu/s_remquof.c: Likewise.
45         * sysdeps/m68k/fpu/s_ilogbf.c: Likewise.
46         * sysdeps/m68k/fpu/s_truncl.c: Likewise.
47         * sysdeps/m68k/fpu/s_frexpf.c: Likewise.
48         * sysdeps/m68k/fpu/s_cos.c: Likewise.
49         * sysdeps/m68k/fpu/fraiseexcpt.c: Likewise.
50         * sysdeps/m68k/fpu/branred.c: Likewise.
51         * sysdeps/m68k/fpu/s_frexpl.c: Likewise.
52         * sysdeps/m68k/fpu/s_atan.c: Likewise.
53         * sysdeps/m68k/fpu/e_rem_pio2f.c: Likewise.
54         * sysdeps/m68k/fpu/e_scalbl.c: Likewise.
55         * sysdeps/m68k/fpu/e_exp2.c: Likewise.
56         * sysdeps/m68k/fpu/s_cexpf.c: Likewise.
57         * sysdeps/m68k/fpu/mplog.c: Likewise.
58         * sysdeps/m68k/fpu/s_rintf.c: Likewise.
59         * sysdeps/m68k/fpu/s_tanh.c: Likewise.
60         * sysdeps/m68k/fpu/e_scalbf.c: Likewise.
61         * sysdeps/m68k/fpu/s_csinhl.c: Likewise.
62         * sysdeps/m68k/fpu/s_floorl.c: Likewise.
63         * sysdeps/m68k/fpu/k_tanf.c: Likewise.
64         * sysdeps/m68k/fpu/k_tanl.c: Likewise.
65         * sysdeps/m68k/fpu/e_fmodf.c: Likewise.
66         * sysdeps/m68k/fpu/e_atanhf.c: Likewise.
67         * sysdeps/m68k/fpu/s_isnanf.c: Likewise.
68         * sysdeps/m68k/fpu/s_fpclassifyl.c: Likewise.
69         * sysdeps/m68k/fpu/s_modf.c: Likewise.
70         * sysdeps/m68k/fpu/e_log2.c: Likewise.
71         * sysdeps/m68k/fpu/e_acosf.c: Likewise.
72         * sysdeps/m68k/fpu/s_log1pl.c: Likewise.
73         * sysdeps/m68k/fpu/e_log2f.c: Likewise.
74         * sysdeps/m68k/fpu/mpa.c: Likewise.
75         * sysdeps/m68k/fpu/t_exp.c: Likewise.
76         * sysdeps/m68k/fpu/e_acos.c: Likewise.
77         * sysdeps/m68k/fpu/s_expm1l.c: Likewise.
78         * sysdeps/m68k/fpu/s_ccoshl.c: Likewise.
79         * sysdeps/m68k/fpu/s_sinf.c: Likewise.
80         * sysdeps/m68k/fpu/k_tan.c: Likewise.
81         * sysdeps/m68k/fpu/k_cosl.c: Likewise.
82         * sysdeps/m68k/fpu/e_remainder.c: Likewise.
83         * sysdeps/m68k/fpu/s_trunc.c: Likewise.
84         * sysdeps/m68k/fpu/s_sincos.c: Likewise.
85         * sysdeps/m68k/fpu/s_scalbnl.c: Likewise.
86         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
87         * sysdeps/m68k/fpu/s_tanhl.c: Likewise.
88         * sysdeps/m68k/fpu/s_lrintl.c: Likewise.
89         * sysdeps/m68k/fpu/slowpow.c: Likewise.
90         * sysdeps/m68k/fpu/mpexp.c: Likewise.
91         * sysdeps/m68k/fpu/s_isnanl.c: Likewise.
92         * sysdeps/m68k/fpu/e_expf.c: Likewise.
93         * sysdeps/m68k/fpu/s_significand.c: Likewise.
94         * sysdeps/m68k/fpu/e_sinhf.c: Likewise.
95         * sysdeps/m68k/fpu/s_tanl.c: Likewise.
96         * sysdeps/m68k/fpu/s_tanhf.c: Likewise.
97         * sysdeps/m68k/fpu/s_cexp.c: Likewise.
98         * sysdeps/m68k/fpu/e_sqrtf.c: Likewise.
99         * sysdeps/m68k/fpu/s_isinf.c: Likewise.
100         * sysdeps/m68k/fpu/s_nearbyint.c: Likewise.
101         * sysdeps/m68k/fpu/e_fmod.c: Likewise.
102         * sysdeps/m68k/fpu/sincos32.c: Likewise.
103         * sysdeps/m68k/fpu/e_sqrtl.c: Likewise.
104         * sysdeps/m68k/fpu/s_sincosl.c: Likewise.
105         * sysdeps/m68k/fpu/e_atan2f.c: Likewise.
106         * sysdeps/m68k/fpu/s_nearbyintf.c: Likewise.
107         * sysdeps/m68k/fpu/e_fmodl.c: Likewise.
108         * sysdeps/m68k/fpu/e_coshf.c: Likewise.
109         * sysdeps/m68k/fpu/s_csinf.c: Likewise.
110         * sysdeps/m68k/fpu/s_ccosl.c: Likewise.
111         * sysdeps/m68k/fpu/e_sqrt.c: Likewise.
112         * sysdeps/m68k/fpu/s_sin.c: Likewise.
113         * sysdeps/m68k/fpu/e_asin.c: Likewise.
114         * sysdeps/m68k/fpu/mptan.c: Likewise.
115         * sysdeps/m68k/fpu/e_exp10f.c: Likewise.
116         * sysdeps/m68k/fpu/e_scalb.c: Likewise.
117         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
118         * sysdeps/m68k/fpu/e_log10.c: Likewise.
119         * sysdeps/m68k/fpu/k_sinl.c: Likewise.
120         * sysdeps/m68k/fpu/e_remainderl.c: Likewise.
121         * sysdeps/m68k/fpu/s_remquol.c: Likewise.
122         * sysdeps/m68k/fpu/s_scalblnf.c: Likewise.
123         * sysdeps/m68k/fpu/s_llrint.c: Likewise.
124         * sysdeps/m68k/fpu/e_rem_pio2.c: Likewise.
125         * sysdeps/m68k/fpu/e_asinl.c: Likewise.
126         * sysdeps/m68k/fpu/e_logl.c: Likewise.
127         * sysdeps/m68k/fpu/s_cosf.c: Likewise.
128         * sysdeps/m68k/fpu/s_rint.c: Likewise.
129         * sysdeps/m68k/fpu/s_ceill.c: Likewise.
130         * sysdeps/m68k/fpu/s_modfl.c: Likewise.
131         * sysdeps/m68k/fpu/s_csinl.c: Likewise.
132         * sysdeps/m68k/fpu/s_tan.c: Likewise.
133         * sysdeps/m68k/fpu/s_sincosf.c: Likewise.
134         * sysdeps/m68k/fpu/dosincos.c: Likewise.
135         * sysdeps/m68k/fpu/e_powl.c: Likewise.
136         * sysdeps/m68k/fpu/s_ilogb.c: Likewise.
137         * sysdeps/m68k/fpu/s_llrintl.c: Likewise.
138         * sysdeps/m68k/fpu/e_expl.c: Likewise.
139         * sysdeps/m68k/fpu/libm-test-ulps: Likewise.
140         * sysdeps/m68k/fpu/s_tanf.c: Likewise.
141         * sysdeps/m68k/fpu/mpsqrt.c: Likewise.
142         * sysdeps/m68k/fpu/s_sinl.c: Likewise.
143         * sysdeps/m68k/fpu/mathimpl.h: Likewise.
144         * sysdeps/m68k/fpu/e_acosl.c: Likewise.
145         * sysdeps/m68k/fpu/e_cosh.c: Likewise.
146         * sysdeps/m68k/fpu/s_cexpl.c: Likewise.
147         * sysdeps/m68k/fpu/s_fabsl.c: Likewise.
148         * sysdeps/m68k/fpu/halfulp.c: Likewise.
149         * sysdeps/m68k/fpu/s_modff.c: Likewise.
150         * sysdeps/m68k/fpu/s_isnan.c: Likewise.
151         * sysdeps/m68k/fpu/e_atan2.c: Likewise.
152         * sysdeps/m68k/fpu/s_fabs.c: Likewise.
153         * sysdeps/m68k/fpu/e_log10f.c: Likewise.
154         * sysdeps/m68k/fpu/k_cosf.c: Likewise.
155         * sysdeps/m68k/fpu/e_sinh.c: Likewise.
156         * sysdeps/m68k/fpu/s_truncf.c: Likewise.
157         * sysdeps/m68k/fpu/s_ceil.c: Likewise.
158         * sysdeps/m68k/fpu/s_log1pf.c: Likewise.
159         * sysdeps/m68k/fpu/e_logf.c: Likewise.
160         * sysdeps/m68k/fpu/mpatan.c: Likewise.
161         * sysdeps/m68k/fpu/s_csin.c: Likewise.
162         * sysdeps/m68k/fpu/e_exp2l.c: Likewise.
163         * sysdeps/m68k/fpu/e_sinhl.c: Likewise.
164         * sysdeps/m68k/fpu/e_atan2l.c: Likewise.
165         * sysdeps/m68k/fpu/s_scalbn.c: Likewise.
166         * sysdeps/m68k/fpu/s_floorf.c: Likewise.
167         * sysdeps/m68k/fpu/e_log2l.c: Likewise.
168         * sysdeps/m68k/fpu/s_atanl.c: Likewise.
169         * sysdeps/m68k/fpu/s_llrintf.c: Likewise.
170         * sysdeps/m68k/fpu/k_sinf.c: Likewise.
171         * sysdeps/m68k/fpu/s_csinhf.c: Likewise.
172         * sysdeps/m68k/fpu/s_frexp.c: Likewise.
173         * sysdeps/m68k/fpu/s_atanf.c: Likewise.
174         * sysdeps/m68k/fpu/s_floor.c: Likewise.
175         * sysdeps/m68k/fpu/e_exp10l.c: Likewise.
176         * sysdeps/m68k/fpu/doasin.c: Likewise.
177         * sysdeps/m68k/fpu/s_rintl.c: Likewise.
178         * sysdeps/m68k/fpu/e_atanhl.c: Likewise.
179         * sysdeps/m68k/fpu/e_remainderf.c: Likewise.
180         * sysdeps/m68k/fpu/s_scalbln.c: Likewise.
181         * sysdeps/m68k/fpu/e_rem_pio2l.c: Likewise.
182         * sysdeps/m68k/fpu/e_exp10.c: Likewise.
183         * sysdeps/m68k/fpu/s_lrintf.c: Likewise.
184         * sysdeps/m68k/fpu/k_cos.c: Likewise.
185         * sysdeps/m68k/fpu/s_lrint.c: Likewise.
186         * sysdeps/m68k/fpu/s_ccosf.c: Likewise.
187         * sysdeps/m68k/fpu/s_scalblnl.c: Likewise.
188         * sysdeps/m68k/fpu/switch/Makefile: Likewise.
189         * sysdeps/m68k/fpu/switch/switch.c: Likewise.
190         * sysdeps/m68k/fpu/switch/68881-sw.h: Likewise.
191         * sysdeps/m68k/fpu/switch/bits/mathinline.h: Likewise.
192         * sysdeps/m68k/fpu/e_log.c: Likewise.
193         * sysdeps/m68k/fpu/s_nextafterl.c: Likewise.
194         * sysdeps/m68k/fpu/s_nearbyintl.c: Likewise.
195         * sysdeps/m68k/fpu/mpatan2.c: Likewise.
196         * sysdeps/m68k/fpu/k_sin.c: Likewise.
197         * sysdeps/m68k/fpu/e_atanh.c: Likewise.
198         * sysdeps/m68k/fpu/s_remquo.c: Likewise.
199         * sysdeps/m68k/fpu/e_log10l.c: Likewise.
200         * sysdeps/m68k/fpu/s_ceilf.c: Likewise.
201         * sysdeps/m68k/fpu/s_fabsf.c: Likewise.
202         * sysdeps/m68k/fpu/s_significandl.c: Likewise.
203         * sysdeps/m68k/fpu/s_ccosh.c: Likewise.
204         * sysdeps/m68k/fpu/e_coshl.c: Likewise.
205         * sysdeps/m68k/fpu/s_scalbnf.c: Likewise.
206         * sysdeps/m68k/fpu/s_finite.c: Likewise.
207         * sysdeps/m68k/fpu/e_exp2f.c: Likewise.
208         * sysdeps/m68k/fpu/k_rem_pio2f.c: Likewise.
209         * sysdeps/m68k/fpu/s_isinfl.c: Likewise.
210         * sysdeps/m68k/fpu/bits/mathinline.h: Likewise.
211         * sysdeps/m68k/fpu/e_powf.c: Likewise.
212         * sysdeps/m68k/rshift.S: Likewise.
213         * sysdeps/m68k/lshift.S: Likewise.
214         * sysdeps/m68k/strtold_l.c: Likewise.
215         * sysdeps/m68k/printf_fphex.c: Likewise.
216         * sysdeps/m68k/s_isinfl.c: Likewise.
217         * sysdeps/m68k/bits/huge_vall.h: Likewise.
219         * sysdeps/m68k/asm-syntax.h (andw, andl, subqw, tstw, tstl): New.
220         * sysdeps/m68k/bits/byteswap.h (__bswap32): Don't define for
221         Coldfire targets.
222         * sysdeps/m68k/bits/setjmp.h (__jmp_buf): Add a 64-byte
223         __fpregs field for Coldfire FPUs.
224         * sysdeps/m68k/dl-machine.h: Include sysdep.h.
225         (elf_machine_load_address): Use PCREL_OP.
226         (_dl_start_user): Likewise.
227         * sysdeps/m68k/dl-trampoline.S (_dl_runtime_resolve): Avoid jmp (%dN)
228         on Coldfire; push the target address and use rts instead.
229         (_dl_runtime_profile): Likewise.  Round up the frame size to longword
230         rather than word alignment.  Avoid dbra on Coldfire.  Avoid using
231         jsr (%d0) on Coldfire; push the return address and target address
232         and use rts instead.  Use fmovem.l rather than fmovem.x on Coldfire.
233         Add missing initialization of lrv_a0 and restore a0 from it after
234         calling _dl_call_pltexit.  Adjust the stack offsets of later data
235         accordingly, fixing a previously incorrect offset for the inregs
236         parameter.
237         * sysdeps/m68k/fpu/fegetenv.c (__fegetenv): Save the control
238         registers individually on Coldfire targets.
239         * sysdeps/m68k/fpu/feholdexcpt.c (feholdexcept): Likewise.
240         Add missing libm_hidden_def.
241         * sysdeps/m68k/fpu/fesetenv.c (__fesetenv): Save and restore the
242         control registers individually on Coldfire targets.
243         * sysdeps/m68k/fpu/fesetround.c (fesetround): Add missing
244         libm_hidden_def.
245         * sysdeps/m68k/fpu_control.h: Add the Coldfire bit assignments to
246         the main comment.
247         (_FPU_DOUBLE): Define to 0 for Coldfire.
248         (_FPU_EXTENDED): Don't define for Coldfire.
249         (_FPU_RESERVED): Include bit 15 for Coldfire.
250         * sysdeps/m68k/Implies: Remove ieee754/ldbl-96.
251         * sysdeps/m68k/m680x0/Implies: Add it to this new file instead.
252         * sysdeps/m68k/ldsodefs.h: New file.
253         * sysdeps/m68k/__longjmp.c (__longjmp): Restore the floating-point
254         registers when using a Coldfire FPU.
255         * sysdeps/m68k/Makefile (long-double-fcts): Delete.
256         * sysdeps/m68k/m680x0/Makefile: Add it to this new file instead.
257         * sysdeps/m68k/memchr.S (__memchr): Add Coldfire code.  Avoid
258         unnecessary moves.
259         * sysdeps/m68k/preconfigure (m680?0): Add "m680x0" to $machine.
260         (m68k): Use the compiler to decide whether $machine should be
261         set to m68k/coldfire or m68k/m680x0/m68020.
262         * sysdeps/m68k/rawmemchr.S (__rawmemchr): Add Coldfire code.  Avoid
263         unnecessary moves.
264         * sysdeps/m68k/setjmp.c (__sigsetjmp): Save the floating-point
265         registers when using a Coldfire FPU.  Use libc_hidden_def rather
266         than hidden_def.
267         * sysdeps/m68k/strchrnul.S (__strchrnul): Add Coldfire code.  Avoid
268         unnecessary moves.
269         * sysdeps/m68k/strchr.S (strchr): Likewise.
270         * sysdeps/m68k/sysdep.h (PCREL_OP): Define.
271         * sysdeps/m68k/tst-audit.h: New file.
272         * sysdeps/m68k/wcpcpy.c: Likewise.
273         * sysdeps/m68k/wcpcpy_chk.c: Likewise.
274         * sysdeps/unix/sysv/linux/m68k/configure.in: New file.
275         * sysdeps/unix/sysv/linux/m68k/configure: Likewise.
276         * sysdeps/unix/sysv/linux/m68k/clone.S (__clone): Add Coldfire code.
277         * sysdeps/unix/sysv/linux/m68k/register-dump.h (real_catch_segfault):
278         Do not define on Coldfire.
279         (catch_segfault): Likewise.
280         (register_dump): Use the Coldfire-specific sigcontext fields to
281         display call-saved data and address registers (rather than the
282         data stored in sc_fpstate by real_catch_segfault).  Display 8-byte 
283         floating-point registers on Coldfire.
284         * sysdeps/unix/sysv/linux/m68k/socket.S (__socket): Pass a temporary
285         register to SINGLE_THREAD_P.
286         * sysdeps/unix/sysv/linux/m68k/sys/reg.h (PT_FP0): Redefine for
287         Coldfire.
288         (PT_FP1, PT_FP2, PT_FP3, PT_FP4, PT_FP5, PT_FP6, PT_FP7): Likewise.
289         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (fpregset): Sync field
290         order with linux.  Make f_fpregs an 8*2 array on Coldfire.
291         (ucontext): Sync field order with linux.
292         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Guard against multiple
293         inclusion.
294         (SYSCALL_ERROR_HANDLER): Use PCREL_OP.
295         * sysdeps/unix/sysv/linux/m68k/syscalls.list (oldgetrlimit): Delete.
296         (oldsetrlimit): Likewise.
297         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list: New file.
298         List oldgetrlimit and oldsetrlimit here instead.
299         * sysdeps/unix/sysv/linux/m68k/bits/sigcontext.h: New file.
300         * sysdeps/unix/sysv/linux/m68k/bits/siginfo.h: Likewise.
301         * sysdeps/m68k/coldfire/bits/atomic.h: Likewise.
302         * sysdeps/m68k/coldfire/fpu/e_sqrt.c: Likewise.
303         * sysdeps/m68k/coldfire/fpu/e_sqrtf.c: Likewise.
304         * sysdeps/m68k/coldfire/fpu/fraiseexcpt.c: Likewise.
305         * sysdeps/m68k/coldfire/fpu/libm-test-ulps: Likewise.
306         * sysdeps/m68k/coldfire/fpu/s_fabs.c: Likewise.
307         * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Likewise.
308         * sysdeps/m68k/coldfire/fpu/s_lrint.c: Likewise.
309         * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Likewise.
310         * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
311         * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
312         * sysdeps/m68k/coldfire/shlib-versions: Likewise.
314 2006-02-28  Roland McGrath  <roland@redhat.com>
316         * sysdeps/m68k/preconfigure: New file.