1 2006-10-25 Vladimir Prus <vladimir@codesourcery.com>
5 * libc/include/math.h: (exception): Add a comment
6 telling fixincludes that we handle C vs. C++ issue.
8 2006-10-23 Paul Brook <paul@codesourcery.com>
11 * arm/Makefile.in (ARMV7M_OBJS): Add lm3s6xx-rom.ld, lm3s8xx-rom.ld,
12 lm3s6xx-ram.ld and lm3s8xx-ram.ld
13 (lm3s6xx, lm3s8xx): Define.
15 2006-10-23 Nathan Sidwell <nathan@codesourcery.com>
18 * m68k/Makefile.in (CF_CRT0): Rename to CF_CRT0S, separate hosted
20 (CF_OBJS): Add cf-isv.o.
21 (CF_SOURCES): Add cf-isv.S.
22 (cf-hosted-crt0.o, cf-unhosted-crt0.o): New targets.
23 * m68k/cf-isv.S: New, broken out of ...
24 * m68k/cf-crt0.S: ... here. Add HOSTED & UNHOSTED differences.
25 * m68k/cf-crt1.c (__start1): Add heap_limit argument.
26 (__heap_limit): Define.
27 * m68k/cf-sbrk.c (__heap_limit): Declare.
28 (sbrk): Adjust for __heap_limit.
29 * m68k/cf.sc: Use different crt0's for hosted & unhosted.
30 Install a separate isv.o file.
31 * m68k/io.h (HOSTED_PUTCHAR): Replace with ...
32 (HOSTED_INIT_SIM): ... this.
34 2006-10-20 Nathan Sidwell <nathan@codesourcery.com>
37 * m68k/Makefile.in (CF_BOARDS): Add m5275evb.
38 (m5275evb): New board.
40 2006-10-20 Vladimir Prus <vladimir@codesourcery.com>
43 * m68k/cf.sc: Add linkonce sections and
46 2006-10-07 Nathan Sidwell <nathan@codesourcery.com>
49 * m68k/Makefile.in: Adjust Coldfire rules.
50 (BDM_CRT0, BDM_BSP, BDM_OBJS, BDM_ISRS): Rename to ...
51 (CF_CRT0, CF_BSP, CF_OBJS, CF_ISRS): ... here. Adjust.
52 (BDM_OTHER_OBJS): Remove.
53 (BDM_SYSOBJS): Rename to ...
54 (UNHOSTED_OBJS): ... here. Adjust.
55 (UNHOSTED_BSP, HOSTED_OBJS, HOSTED_BSP): New.
56 (CF_HOSTED_SCRIPTS): New.
57 (CF_SCRIPTS, CF_SOURCES): Adjust.
58 * m68k/cf.sc: Add IO library variable.
59 * m68k/bdm-crt0.S, m68k/bdm-crt1.c, m68k/bdm-isrs.c,
60 m68k/bdm-sbrk.c, m68k/bdm-semihost.S: Rename to ...
61 * m68k/cf-crt0.S, m68k/cf-crt1.c, m68k/cf-isrs.c, m68k/cf-sbrk.c,
62 m68k/cf-hosted.S: ... here.
63 * m68k/cf-exit.c: New.
64 * m68k/bdm-gdb.h, m68k/bdm-semihost.h: Merge into ...
65 * m68k/io.h: ... here. Add unhosted support. Adjust conversion
67 * m68k/bdm-gdb.c: Rename to ...
68 * m68k/io-gdb.c: ... here. Adjust names of conversion functions.
69 * m68k/bdm-close.c, m68k/bdm-exit.c, m68k/bdm-fstat.c,
70 m68k/bdm-gettimeofday.c, m68k/bdm-isatty.c, m68k/bdm-lseek.c,
71 m68k/bdm-open.c, m68k/bdm-read.c, m68k/bdm-rename.c,
72 m68k/bdm-stat.c, m68k/bdm-system.c, m68k/bdm-time.c,
73 m68k/bdm-unlink.c, m68k/bdm-write.c: Rename to ...
74 * m68k/io-close.c, m68k/io-exit.c, m68k/io-fstat.c,
75 m68k/io-gettimeofday.c, m68k/io-isatty.c, m68k/io-lseek.c,
76 m68k/io-open.c, m68k/io-read.c, m68k/io-rename.c, m68k/io-stat.c,
77 m68k/io-system.c, m68k/io-time.c, m68k/io-unlink.c,
78 m68k/io-write.c: ... here. Include io.h. Adjust for hosted &
79 unhosted libraries. Adjust names of gdb conversion functions.
81 2006-10-01 Paul Brook <paul@codesourcery.com>
84 arm/arm.sc: Add all .ARM.extab* sections.
86 2006-09-29 Nathan Sidwell <nathan@codesourcery.com>
89 * m68k/bdm-semihost.S: Add more comments. Make instruction weirder.
91 2006-09-17 Paul Brook <paul@codesourcery.com>
94 Backport form mainline
95 2006-09-26 Jeff Johnston <jjohnstn@redhat.com>
96 * libc/include/stdio.h: Do not allow macros
97 for clearerr, feof, or fileno.
98 * libc/include/sys/reent.h[_REENT_SMALL](struct _reent): Change
99 the dummy std stream scheme to use pointers to const external
100 fake files, one for each standard stream.
101 * libc/stdio/local.h (CHECK_INIT): Change to take a file pointer
102 argument. For _REENT_SMALL, reset the file pointer if it
103 matches one of the fake std stream pointers.
104 * libc/stdio/clearerr.c: Fix CHECK_INIT macro to add file pointer
106 * libc/stdio/fclose.c: Ditto.
107 * libc/stdio/feof.c: Ditto.
108 * libc/stdio/ferror.c: Ditto.
109 * libc/stdio/fflush.c: Ditto.
110 * libc/stdio/fgetc.c: Ditto.
111 * libc/stdio/fgets.c: Ditto.
112 * libc/stdio/fileno.c: Ditto.
113 * libc/stdio/findfp.c: Ditto.
114 * libc/stdio/fputc.c: Ditto.
115 * libc/stdio/fputs.c: Ditto.
116 * libc/stdio/fread.c: Ditto.
117 * libc/stdio/freopen.c: Ditto.
118 * libc/stdio/fseek.c: Ditto.
119 * libc/stdio/ftell.c: Ditto.
120 * libc/stdio/fwrite.c: Ditto.
121 * libc/stdio/getc.c: Ditto.
122 * libc/stdio/getdelim.c: Ditto.
123 * libc/stdio/putc.c: Ditto.
124 * libc/stdio/refill.c: Ditto.
125 * libc/stdio/setvbuf.c: Ditto.
126 * libc/stdio/ungetc.c: Ditto.
127 * libc/stdio/vfprintf.c: Ditto.
128 * libc/stdio/vfscanf.c: Ditto.
129 * libc/stdio/wbuf.c: Ditto.: Ditto.
130 * libc/stdio/wsetup.c: Ditto.
131 * libc/stdio64/freopen64.c: Ditto.
132 * libc/stdio64/fseeko64.c: Ditto.
133 * libc/stdio64/ftello64.c: Ditto.
134 * libc/machine/powerpc/vfprintf.c: Ditto.
135 * libc/machine/powerpc/vfscanf.c: Ditto.
137 2006-09-22 Nathan Sidwell <nathan@codesourcery.com>
140 * m68k/bdm-crt1.c (hardware_init_hook): Use #defines for CACR bits.
142 2006-09-21 Paul Brook <paul@codesourcery.com>
145 * libc/include/sys/reent.h (_reent): Adjust _REENT_SMALL to be binary
146 compatible with normal layout
148 2006-09-20 Paul Brook <paul@codesourcery.com>
151 * libc/include/sys/reent.h: Define and use __reent_assert.
153 2006-09-20 Paul Brook <paul@codesourcery.com>
156 * arm/arm.sc: Add .gnu.linkonce and .ARM.extab sections.
158 2006-09-20 Paul Brook <paul@codesourcery.com>
161 * configure.in: Add check for .init_array.
162 * configure: Regenerate.
164 2006-09-20 Paul Brook <paul@codesourcery.com>
167 * libc/stdlib/rand.c (srand): Add _REENT_CHECK_RAND48.
169 2006-09-18 Nathan Sidwell <nathan@codesourcery.com>
172 * m68k/Makefile.in: Don't force a frame pointer on the ISRs.
173 * m68k/bdm-crt1.c (__start1): Don't set the VBR here.
174 (hardeare_init_hook): Define weakly. Set VBR here, enable caching
178 * m68k/Makefile.in (bdm-semihost.o): Build from bdm-semihost.S.
179 * m68k/bdm-semihost.c: Remove.
180 * m68k/bdm-semihost.S: New.
181 * m68k/bdm-crt0.S: Don't install semihosting trap handler.
182 * m68k/bdm-close.c, bdm-exit.c, bdm-fstat.c, bdm-gettimeofday.c,
183 bdm-isatty.c, bdm-lseek.c, bdm-open.c, bdm-read.c, bdm-rename.c,
184 bdm-stat.c, bdm-system.c, bdm-unlink.c, bdm-write.c): Update.
185 * m68k/bdm-isrs.c: Update comment.
186 * m68k/bdm-semihost.h (BDM_TRAPNUM, BDM_FUNC_REG, BDM_ARG_REG,
188 (__bdm_semihost): Declare.
190 2006-09-15 Nathan Sidwell <nathan@codesourcery.com>
193 * m68k/Makefile.in (BDM_OTHER_OBJS): Remove sbrk.o.
194 (BDM_SYSOBJS): Add bdm-sbrk.o.
195 * m68k/bdm-sbrk.c: New.
197 2006-09-11 Paul Brook <paul@codesourcery.com>
200 * arm/arm.sc: Add .jcr.
202 2006-09-11 Daniel Jacobowitz <dan@codesourcery.com>
205 * arm/Makefile.in (armv7m, lm3s10x, lm3s301, lm3s31x): Swap
207 (rdimon, rdpmon): Skip 8k.
209 2006-09-06 Nathan Sidwell <nathan@codesourcery.com>
212 * m68k/Makefile.in (CF_SOURCES): New.
213 (install): Install them.
215 2006-09-01 Paul Brook <paul@codesourcery.com>
218 * arm/Makefile.in: Reduce rdi/rdp ram size to avoid overflow.
220 2006-09-01 Nathan Sidwell <nathan@codesourcery.com>
223 * m68k/cf.sc: Add .jcr section to .text.
225 2006-09-01 Paul Brook <paul@codesourcery.com>
228 * arm/Makefile.in: Include _exit.c in BSPs. Add rdimon-ram.ld.
229 Build linker scripts instead of spec files for rdimon and rdpmon.
230 Pass CRT0 ad BSP to arm.sc.
231 * arm/_exit.c: New file.
232 * arm/arm.sc: Add STARTUP, GROUP and SEARCH_DIR. Remove defaults
234 * arm/crt0.S: Give Thumb-2 symbols function type.
235 Skip generic Arm init code for Thumb-2.
236 Add _nmi_isr and _fault_isr.
237 * arm/libcfunc.c (do_AngelSWI): Remove.
238 * arm/swi.h (do_AngelSWI): New function.
239 * arm/syscalls.c (do_AngelSWI): Remove.
241 (isatty): New function.
243 2006-08-31 Nathan Sidwell <nathan@codesourcery.com>
246 * m68k/bdm-crt1.c: Call hardware_init_hook before copying
250 * m68k/Makefile.in (CF_BDM_SCRIPTS): Rename to CF_RAM_SCRIPTS.
251 (CF_SCRIPTS): Update.
252 (%-bdm.ld): Rename to %-ram.ld.
254 2006-08-30 Paul Brook <paul@codesourcery.com>
257 * arm/Makefile.in: Change armv7m linker script generation. Add
258 armv7m.spec. Build armv7m-crt0.o.
259 * arm/arm.sc: New file.
260 * arm/armv7m.specs: New file.
261 * arm/crt0.S: Add armv7m code.
262 * arm/elf-lm3s10x.ld: Remove.
263 * arm/elf-lm3s301.ld: Remove.
264 * arm/elf-lm3s31x.ld: Remove.
265 * arm/swi.h (do_AngelSWI): Add definition.
266 * arm/syscalls.c: Merge lazy semihosting initialization from newlib.
269 * libc/sys/arm/crt0.S: Add armv7m rom startup code.
271 2006-08-29 Paul Brook <paul@codesourcery.com>
274 * libc/sys/arm/_fault_isr.c (_fault_isr): Compile unconditionally.
275 * libc/sys/arm/_nmi_isr.c (_nmi_isr): Ditto.
277 2006-08-29 Paul Brook <paul@codesourcery.com>
280 * acconfig.h (_ATEXIT_DYNAMIC_ALLOC): Remove.
281 * configure.in: Remove --disable-newlib-atexit-dynamic-alloc.
282 * libc/stdlib/__atexit.c (__register_exitproc): Use weak reference to
283 malloc. Only allocate dynamically if it is present.
284 * libc/stdlib/__call_atexit.c (__call_exitprocs): Use weak reference
286 * configure: Regenerate.
287 * newlib.hin: Regenerate.
289 2006-08-29 Paul Brook <paul@codesourcery.com>
292 * libc/include/sys/config.h: Define _REENT_SMALL for Thumb-2.
294 2006-08-25 Nathan Sidwell <nathan@codesourcery.com>
297 * m68k/Makefile.in (DBUG_BSP, DBUG_OBJS): Remove.
299 (BDM_OBJS): Add bdm-crt1.o.
300 (BDM_OTHER_OBJS): Remove print.o putnum.o
302 (CF_BDM_SCRIPTS): Generated name of ram scripts.
303 (CF_ROM_SCRIPTS): Generated name of rom scripts.
304 (CF_SCRIPTS): Adjust.
306 (bdm-crt0.o, bdm-crt1.o): New targets.
308 (m5208evb, m5213evb, m52235evb, m5235evb, m5273c3, m5282evb,
309 m5329evb, m5485evb): New.
310 (%-bdm.ld, %-rom.ld): New. Replace individual linker script rules.
311 (install): Remove DBUG installs.
312 * m68k/bdm-crt0.S: New.
313 * m68k/bdm-crt1.c: New.
314 * m68k/bdm-exit.c: Call __reset.
315 * m68k/bdm-isv.c: Remove.
316 * m68k/cf.sc: Adjust to produce either rom or ram images.
317 * m68k/dbug-exit.S, m68k/dbug-inbyte.S, m68k/dbug-outbyte.S: Remove.
319 2006-08-22 Paul Brook <paul@codesourcery.com>
322 * libc/sys/arm/syscalls.c (initialise_monitor_handles): Fix
323 multithreaded locking.
325 2006-07-24 Nathan Sidwell <nathan@codesourcery.com>
329 * m68k/cf.sc: Set entry point to _start.
330 * m68k/crt0.X (_start): New name for entrypoint
331 (start): Weak alias for start.
333 2006-06-23 Mark Mitchell <mark@codesourcery.com>
337 * arm/elf-lm3s301.ld: Include cm3.ld.
338 * arm/elf-lm3s31x.ld: Likewise.
340 2006-06-13 Mark Mitchell <mark@codesourcery.com>
344 * arm/Makefile.in (LMS_SCRIPTS): Add lm3s301.ld and lm3s31x.ld.
346 2006-06-09 Nathan Sidwell <nathan@codesourcery.com>
349 * m68k/bdm-system.c (_system): Support system(NULL).
351 2006-06-09 Sandra Loosemore <sandra@codesourcery.com>
354 * libc/sys/arm/syscalls.c (_unlink, isatty, _system, _rename):
355 Make them do something useful in the ARM_RDI_MONITOR case.
358 * arm/syscalls.c (_unlink, isatty, _system, _rename): Make
359 them do something useful in the ARM_RDI_MONITOR case.
361 2006-06-08 Nathan Sidwell <nathan@codesourcery.com>
364 * m68k/bdm-system.c (_system): Properly encode non failure exit
367 2006-06-05 Nathan Sidwell <nathan@codesourcery.com>
370 * m68k/Makefile.in (BDM_SYSOBJS): Remove bdm-inbyte.o.
372 * m68k/bdm-close.c: Add copyright notice.
373 * m68k/bdm-fstat.c: Add copyright notice.
374 * m68k/bdm-gettimeofday.c: Add copyright notice.
375 * m68k/bdm-inbyte.c: Remove.
376 * m68k/bdm-isatty.c: Add copyright notice.
377 * m68k/bdm-lseek.c: Add copyright notice. Fix &/| thinko.
378 * m68k/bdm-open.c: Add copyright notice.
379 * m68k/bdm-read.c: Add copyright notice.
380 * m68k/bdm-rename.c: Add copyright notice.
381 * m68k/bdm-stat.c: Add copyright notice.
382 * m68k/bdm-system.c: Add copyright notice.
383 * m68k/bdm-time.c: New.
384 * m68k/bdm-unlink.c: Add copyright notice.
385 * m68k/bdm-write.c: Add copyright notice.
387 2006-05-31 Mark Mitchell <mark@codesourcery.com>
390 * arm/elf-lm3s301.ld: New script.
391 * arm/elf-lm3s31x.ld: Likewise.
393 * arm/Makefile.in (LMS_SCRIPTS): New variable.
394 (LMS_INSTALL): Likewise.
395 (install): Depend on LMS_INSTALL.
396 (install-lms): New target.
397 * arm/elf-cm3.lmd: New file.
398 * arm/elf-lm3s10x.ld: Likewise.
402 * libc/sys/arm/syscalls.c (findslot): Call
403 initialise_monitor_handles.
404 (remap_handle): Do not call initialise_monitor_handles.
406 2006-05-25 Nathan Sidwell <nathan@codesourcery.com>
409 * m68k/Makefile.in (m52235-dbug.ld, m52235-bdm.ld): New
412 2006-05-24 Nathan Sidwell <nathan@codesourcery.com>
415 * m68k/Makefile.in (BDM_SYSOBJS): Remove bdm-outbyte.o.
416 * m68k/bdm-outbyte.c: Delete.
417 * m68k/bdm-semihost.h (BDM_OUTBYTE): Mark as obsolete.
419 2006-05-22 Sandra Loosemore <sandra@codesourcery.com>
422 * m68k/bdm-semihost.h: Add new constants for additional
423 semihosting functions. Add new BDM_TRAP macro to encapsulate
425 * m68k/bdm-exit.c (_exit): Use new BDM_TRAP macro.
426 * m68k/bdm-outbyte.c (outbyte): Ditto.
427 * m68k/bdm-isrs.c, m68k/bdm-isv.c: Former BDM_TRAP
428 now called BDM_TRAPNUM.
429 * m68k/bdm-gdb.h, m68k/bdm-gdb.c: New files
430 containing declarations and conversion functions for GDB's fileio
432 * m68k/bdm-close.c: New file to define corresponding function.
433 * m68k/bdm-fstat.c: Ditto.
434 * m68k/bdm-gettimeofday.c: Ditto.
435 * m68k/bdm-isatty.c: Ditto.
436 * m68k/bdm-lseek.c: Ditto.
437 * m68k/bdm-open.c: Ditto.
438 * m68k/bdm-read.c: Ditto.
439 * m68k/bdm-rename.c: Ditto.
440 * m68k/bdm-stat.c: Ditto.
441 * m68k/bdm-system.c: Ditto.
442 * m68k/bdm-unlink.c: Ditto.
443 * m68k/bdm-write.c Ditto.
444 * m68k/Makefile.in: Add dependencies for new files.
447 * configure.host: Tell it we have _rename and _system when
448 building m68k-unknown-elf.
450 2006-05-04 Paul Brook <paul@codesourcery.com>
453 * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add aeabi_memclr.c,
454 aeabi_memcpy.c, aeabi_memmove.c and aeabi_memset.c.
455 * libc/sys/arm/Makefile.in: Regenerate.
456 * libc/sys/arm/aeabi.h: New file.
457 * libc/sys/arm/aeabi_memclr.c: New file.
458 * libc/sys/arm/aeabi_memcpy.c: New file.
459 * libc/sys/arm/aeabi_memmove.c: New file.
460 * libc/sys/arm/aeabi_memset.c: New file.
462 2006-03-29 Nathan Sidwell <nathan@codesourcery.com>
465 * m68k/bdm-isv.c (software_init_hook): Fix trap numbering.
467 * m68k/Makefile.in (CF_SCRIPTS): Add m5329 board.
469 (*-dbug.ld, *-bdm.ld): Add appropriate IO definition.
470 (m5329evb-dbug.ld, m5329evb-bdm.ld): New.
471 * cf.sc (GROUP): Revert previous change. Add IO library.
473 * m68k/Makefile.in (BDM_BSP, BDM_OBJS, BDM_ISRS): New.
474 (CF_SCRIPTS): Rename dbug scripts. Add bdm scripts. Add m5485
476 (all): Add new targets.
477 (BDM_BSP): New target.
478 (bdm-isv.o, bdm-exit.o, bdm-outbyte.o, bdm-semihost.o): New
480 (BDM_ISRS): New targets.
481 (m5208evb.ld, m5213evb.ld, m5235evb.ld, m5272c3.ld, m5282evb.ld):
483 (m5485evb-dbug): New.
484 (m5208evb-bdm.ld, m5213evb-bdm.ld, m5235evb-bdm.ld,
485 m5272c3-bdm.ld, m5282evb-bdm.ld, m5485evb-bdm.ld): New.
486 (install): Add BDM_BSP.
487 * m68k/bdm-exit.c: New
488 * m68k/bdm-inbyte.c: New
489 * m68k/bdm-outbyte.c: New
490 * m68k/bdm-semihost.c: New
491 * m68k/bdm-semihost.h: New
492 * m68k/bdm-isrs.c: New.
493 * m68k/bdm-isv.c: New.
494 * dbug-cf.sc: Renamed to ...
495 * cf.sc: ... here. Add bdm flexibility. Remove GROUP
497 2006-03-23 Mark Mitchell <mark@codesourcery.com>
500 * libc/sys/arm/Makefile.am (extra_objs): Add _exit.o _nmi_isr.o
502 * libc/sys/arm/Makefile.in: Regenerated.
503 * libc/sys/arm/_exit.c: New file.
504 * libc/sys/arm/_fault_isr.c: Likewise.
505 * libc/sys/arm/_nmi_isr.c: Likewise.
506 * libc/sys/arm/configure.in (--enable-newlib-arm-v7m): New option.
507 * libc/sys/arm/configure:
508 * libc/sys/arm/crt0.S (_start): Do not use semihosting calls in
509 _start when configured for ARM V7M. Do not call
510 initialise_monitor_handles. Indent preprocessor directives.
511 (.isr_vector): New section, on ARM V7M.
512 * libc/sys/arm/swi.h (do_AngelSWI): New function.
513 * syscalls.c (_exit): Remove.
514 (do_AngelSWI): Likewise.
515 (CHECK_INIT): Remove.
516 (remap_handle): Call initialise_monitor_handles.
517 (__arm_monitor_handles_lock): New variable.
518 (initialise_monitor_handles): Make sure to run only once.