4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-02-21 00:07:36 +08:00

8677 Commits

Author SHA1 Message Date
Kazu Hirata
d13def563b libgloss/
* m68k/Makefile.in (m5273c3): Rename to ...
	(m5272c3): ... here to fix typo.
	(m5249c3): New.
	(CF_BOARDS): Add it.
2007-01-03 19:43:06 +00:00
Kazu Hirata
59bf4c4d0b newlib/
* testsuite/lib/flags.exp (newlib_include_flags): Drop
	-I${newlib_dir}.
2006-12-22 21:45:29 +00:00
Nathan Sidwell
177b6a4d13 libgloss/
* m68k/Makefile.in (m5273c3): Rename to ...
	(m5272c3): ... here to fix typo.
	(m5249c3): New.
	(CF_BOARDS): Add it.
2006-12-22 18:13:03 +00:00
Nathan Sidwell
e9d8517ffd libgloss/
* m68k/Makefile.in (CF_ISRS): Remove now shared routines.
	* m68k/cf-crt0.S (__reset): Define here.
	(__start): Adjust semihosting.
	* m68k/cf-hosted.S (__hosted): Adjust semihosting.
	* m68k/cf-isrs.c: Share some ISRS.  Add aliases for each IRQ slot.
	* m68k/cf-isv.S: Move to .interrupt_vector section.  Make each
	slot a unique routine.
	* m68k/cf.sc: Adjust for .interrupt_vector section.
2006-12-22 07:47:30 +00:00
Kazu Hirata
d34cc36d7b Fix a typo. 2006-12-18 11:22:17 +00:00
Daniel Jacobowitz
34573c2e33 Add file to correct branch. 2006-12-15 19:53:09 +00:00
cvs2svn
7224b21c7b This commit was manufactured by cvs2svn to create branch 'newlib-
csl-20060320-branch'.

Cherrypick from master 2006-12-15 18:09:06 UTC Daniel Jacobowitz <drow@false.org> '	libgloss/':
    libgloss/m68k/fido-priv.S
2006-12-15 18:09:07 +00:00
Daniel Jacobowitz
57c3fb9026 libgloss/
* m68k/Makefile.in (FIDO_OBJS): Build fido-priv.o.
	* m68k/fido-crt0.S (_vector_table): Reference
	_PrivilegeViolationHandler.
	* m68k/fido-priv.S: New file.
2006-12-15 18:09:03 +00:00
Daniel Jacobowitz
0efbda1a83 * libgloss/m68k/fido-crt0.S (_start): Set %vbr for context 0 in
RAM configs.
	* libgloss/m68k/fido.sc: Clean up formatting.  Add comments.  Move
	stack and heap end to SDRAM for SRAM and SDRAM configurations.
	Put RedBoot application text in SRAM.
2006-12-15 16:47:08 +00:00
Nathan Sidwell
7d38f3c3ae libgloss/
* m68k/Makefile (install_cf): Don't loop over files here.  Only
	install sources for the default multilib.
	(install_fido): Likewise.
	(install_io): Install bsps in one go.
2006-12-13 10:39:14 +00:00
Kazu Hirata
e7cd1e99ea /
* config.sub: Recognize fido and fido-*.

	libgloss/
	* configure.in: Recognize fido-*-*.
	* configure: Regenerate.
	* m68k/Makefile.in (CF_ISRS): Use addprefix.
	(FIDO_CRT0, FIDO_BSP, FIDO_OBJS, FIDO_HANDLERS,
	FIDO_UNHOSTED_SCRIPTS, FIDO_HOSTED_SCRIPTS, FIDO_SCRIPTS,
	FIDO_SOURCES, all_fido, fido-%-crt0.o, fido-rom.ld,
	fido-rom-hosted.ld, fido-sram.ld, fido-sram-hosted.ld,
	fido-sdram.ld, fido-sdram-hosted.ld, fido-redboot.ld,
	install_fido): New.
	* m68k/asm.h (mbb): New.
	* m68k/configure.in (DO): Check for __mfido__.
	* m68k/configure: Regenerate.
	* m68k/fido-_exit.c, m68k/fido-crt0.S, m68k/fido-handler.c,
	m68k/fido-hosted.S, m68k/fido-sbrk.c, m68k/fido.h,
	m68k/fido.sc, m68k/fido_profiling.h: New.

	newlib/
	* configure.host: Recognize fido.
2006-12-01 11:02:08 +00:00
Paul Brook
8a7fbc73db 2006-11-06 Paul Brook <paul@codesourcery.com>
libgloss/
	* arm/Makefie.in (ALL_CFLAGS): Define and use.
2006-11-06 16:55:49 +00:00
Nathan Sidwell
beb0796597 libgloss/
* m68k/Makefile.in (CFLAGS): Do not clear.  Add to all compilations.
	(ARFLAGS): Remove commented out definition.
2006-11-01 17:39:29 +00:00
Nathan Sidwell
7b32f05906 libgloss/
* m68k/configure.in (DO) Set to list of target cpu families.
	* m68k/configure: Rebuilt.
	* m68k/Makefile.in (DO): New.
	(UNHOSTED_BSP, UNHOSTED_OBJS, HOSTED_BSP, HOSTED_OBJS): Move
	later.
	(m5208evb, m5213evb, m52235evb, m5235evb, m5273c3, m5275evb,
	m5282evb, m5329evb, m5485evb): Move earlier.
	(all): Add all_$DO dependencies.
	(all_cf, all_m68k): New targets, depend on cf & m68k bsps as
	appropriate.
	(m%-ram.ld, m%-rom.ld, m%-ram-hosted.ld, m%-rom-hosted.ld): Add
	'm' prefix.
	(install): Add install_$DO dependencies.
	(install_cf, install_m68k): New targets.  Perform cf and m68k
	installs as appropriate.
	(install_io): New, install the io libraries.
2006-11-01 17:31:08 +00:00
Vladimir Prus
4fecf3ec97 Merge from HEAD:
newlib/
       * libc/include/math.h: (exception): Add a comment
       telling fixincludes that we handle C vs. C++ issue.
2006-10-26 15:43:24 +00:00
Paul Brook
8b463a35b5 2006-10-23 Paul Brook <paul@codesourcery.com>
libgloss/
	* arm/Makefile.in (ARMV7M_OBJS): Add lm3s6xx-rom.ld, lm3s8xx-rom.ld,
	lm3s6xx-ram.ld and lm3s8xx-ram.ld
	(lm3s6xx, lm3s8xx): Define.
2006-10-23 21:25:20 +00:00
Nathan Sidwell
e9375a96b3 libgloss/
* m68k/Makefile.in (CF_CRT0): Rename to CF_CRT0S, separate hosted
	& unhosted versions.
	(CF_OBJS): Add cf-isv.o.
	(CF_SOURCES): Add cf-isv.S.
	(cf-hosted-crt0.o, cf-unhosted-crt0.o): New targets.
	* m68k/cf-isv.S: New, broken out of ...
	* m68k/cf-crt0.S: ... here.  Add HOSTED & UNHOSTED differences.
	* m68k/cf-crt1.c (__start1): Add heap_limit argument.
	(__heap_limit): Define.
	* m68k/cf-sbrk.c (__heap_limit): Declare.
	(sbrk): Adjust for __heap_limit.
	* m68k/cf.sc: Use different crt0's for hosted & unhosted.
	Install a separate isv.o file.
	* m68k/io.h (HOSTED_PUTCHAR): Replace with ...
	(HOSTED_INIT_SIM): ... this.
2006-10-23 19:28:29 +00:00
Nathan Sidwell
9e82dd14c5 libgloss/
* m68k/Makefile.in (CF_BOARDS): Add m5275evb.
	(m5275evb): New board.
2006-10-20 21:01:50 +00:00
Vladimir Prus
5acf45f6cb libgloss/
* m68k/cf.sc: Add linkonce sections and
       DWARF sections.
2006-10-20 14:06:46 +00:00
Nathan Sidwell
d36ae2cec9 libgloss/
* m68k/Makefile.in: Adjust Coldfire rules.
	(BDM_CRT0, BDM_BSP, BDM_OBJS, BDM_ISRS): Rename	to ...
	(CF_CRT0, CF_BSP, CF_OBJS, CF_ISRS): ... here.  Adjust.
	(BDM_OTHER_OBJS): Remove.
	(BDM_SYSOBJS): Rename to ...
	(UNHOSTED_OBJS): ... here.  Adjust.
	(UNHOSTED_BSP, HOSTED_OBJS, HOSTED_BSP): New.
	(CF_HOSTED_SCRIPTS): New.
	(CF_SCRIPTS, CF_SOURCES): Adjust.
	* m68k/cf.sc: Add IO library variable.
	* m68k/bdm-crt0.S, m68k/bdm-crt1.c, m68k/bdm-isrs.c,
	m68k/bdm-sbrk.c, m68k/bdm-semihost.S: Rename to ...
	* m68k/cf-crt0.S, m68k/cf-crt1.c, m68k/cf-isrs.c, m68k/cf-sbrk.c,
	m68k/cf-hosted.S: ... here.
	* m68k/cf-exit.c: New.
	* m68k/bdm-gdb.h, m68k/bdm-semihost.h: Merge into ...
	* m68k/io.h: ... here.  Add unhosted support.  Adjust conversion
	function names.
	* m68k/bdm-gdb.c: Rename to ...
	* m68k/io-gdb.c: ... here.  Adjust names of conversion functions.
	* m68k/bdm-close.c, m68k/bdm-exit.c, m68k/bdm-fstat.c,
	m68k/bdm-gettimeofday.c, m68k/bdm-isatty.c, m68k/bdm-lseek.c,
	m68k/bdm-open.c, m68k/bdm-read.c, m68k/bdm-rename.c,
	m68k/bdm-stat.c, m68k/bdm-system.c, m68k/bdm-time.c,
	m68k/bdm-unlink.c, m68k/bdm-write.c: Rename to ...
	* m68k/io-close.c, m68k/io-exit.c, m68k/io-fstat.c,
	m68k/io-gettimeofday.c, m68k/io-isatty.c, m68k/io-lseek.c,
	m68k/io-open.c, m68k/io-read.c, m68k/io-rename.c, m68k/io-stat.c,
	m68k/io-system.c, m68k/io-time.c, m68k/io-unlink.c,
	m68k/io-write.c: ... here.  Include io.h. Adjust for hosted &
	unhosted libraries.  Adjust names of gdb conversion functions.
2006-10-07 20:08:48 +00:00
Paul Brook
92859c43ce 2006-10-01 Paul Brook <paul@codesourcery.com>
* libgloss/
	arm/arm.sc: Add all .ARM.extab* sections.
2006-10-01 21:05:23 +00:00
Nathan Sidwell
9b75eb2c21 libgloss/
* m68k/bdm-semihost.S: Add more comments.  Make instruction weirder.
2006-09-29 13:35:18 +00:00
Paul Brook
44e26f0f07 2006-09-17 Paul Brook <paul@codesourcery.com>
newlib/
	Backport form mainline
	2006-09-26  Jeff Johnston  <jjohnstn@redhat.com>
	* libc/include/stdio.h: Do not allow macros
	for clearerr, feof, or fileno.
	* libc/include/sys/reent.h[_REENT_SMALL](struct _reent): Change
	the dummy std stream scheme to use pointers to const external
	fake files, one for each standard stream.
	* libc/stdio/local.h (CHECK_INIT): Change to take a file pointer
	argument.  For _REENT_SMALL, reset the file pointer if it
	matches one of the fake std stream pointers.
	* libc/stdio/clearerr.c: Fix CHECK_INIT macro to add file pointer
	argument.
	* libc/stdio/fclose.c: Ditto.
	* libc/stdio/feof.c: Ditto.
	* libc/stdio/ferror.c: Ditto.
	* libc/stdio/fflush.c: Ditto.
	* libc/stdio/fgetc.c: Ditto.
	* libc/stdio/fgets.c: Ditto.
	* libc/stdio/fileno.c: Ditto.
	* libc/stdio/findfp.c: Ditto.
	* libc/stdio/fputc.c: Ditto.
	* libc/stdio/fputs.c: Ditto.
	* libc/stdio/fread.c: Ditto.
	* libc/stdio/freopen.c: Ditto.
	* libc/stdio/fseek.c: Ditto.
	* libc/stdio/ftell.c: Ditto.
	* libc/stdio/fwrite.c: Ditto.
	* libc/stdio/getc.c: Ditto.
	* libc/stdio/getdelim.c: Ditto.
	* libc/stdio/putc.c: Ditto.
	* libc/stdio/refill.c: Ditto.
	* libc/stdio/setvbuf.c: Ditto.
	* libc/stdio/ungetc.c: Ditto.
	* libc/stdio/vfprintf.c: Ditto.
	* libc/stdio/vfscanf.c: Ditto.
	* libc/stdio/wbuf.c: Ditto.: Ditto.
	* libc/stdio/wsetup.c: Ditto.
	* libc/stdio64/freopen64.c: Ditto.
	* libc/stdio64/fseeko64.c: Ditto.
	* libc/stdio64/ftello64.c: Ditto.
	* libc/machine/powerpc/vfprintf.c: Ditto.
	* libc/machine/powerpc/vfscanf.c: Ditto.
2006-09-27 19:57:15 +00:00
Nathan Sidwell
589fdbe7ba libgloss/
* m68k/bdm-crt1.c (hardware_init_hook): Use #defines for CACR bits.
2006-09-22 07:09:39 +00:00
Paul Brook
1e371999c7 2006-09-21 Paul Brook <paul@codesourcery.com>
newlib/
	* libc/include/sys/reent.h (_reent): Adjust _REENT_SMALL to be binary
	compatible with normal layout
2006-09-21 23:42:46 +00:00
Paul Brook
3116c78f01 2006-09-20 Paul Brook <paul@codesourcery.com>
newlib/
	* libc/include/sys/reent.h: Define and use __reent_assert.
2006-09-20 23:27:53 +00:00
Paul Brook
92f27c2158 2006-09-20 Paul Brook <paul@codesourcery.com>
libgloss/
	* arm/arm.sc: Add .gnu.linkonce and .ARM.extab sections.
2006-09-20 18:58:42 +00:00
Paul Brook
ad544ba1cd 2006-09-20 Paul Brook <paul@codesourcery.com>
libgloss/
	* configure.in: Add check for .init_array.
	* configure: Regenerate.
2006-09-20 17:06:36 +00:00
Paul Brook
51172826e0 2006-09-20 Paul Brook <paul@codesourcery.com>
newlib/
	* libc/stdlib/rand.c (srand): Add _REENT_CHECK_RAND48.
2006-09-20 16:56:02 +00:00
Nathan Sidwell
34784e1c43 libgloss/
* m68k/Makefile.in: Don't force a frame pointer on the ISRs.
	* m68k/bdm-crt1.c (__start1): Don't set the VBR here.
	(hardeare_init_hook): Define weakly.  Set VBR here, enable caching
	if supported.
2006-09-18 11:30:53 +00:00
Nathan Sidwell
cf7c22b5d8 libgloss/
* m68k/Makefile.in (bdm-semihost.o): Build from bdm-semihost.S.
	* m68k/bdm-semihost.c: Remove.
	* m68k/bdm-semihost.S: New.
	* m68k/bdm-crt0.S: Don't install semihosting trap handler.
	* m68k/bdm-close.c, bdm-exit.c, bdm-fstat.c, bdm-gettimeofday.c,
	bdm-isatty.c, bdm-lseek.c, bdm-open.c, bdm-read.c, bdm-rename.c,
	bdm-stat.c, bdm-system.c, bdm-unlink.c, bdm-write.c): Update.
	* m68k/bdm-isrs.c: Update comment.
	* m68k/bdm-semihost.h (BDM_TRAPNUM, BDM_FUNC_REG, BDM_ARG_REG,
	BDM_TRAP): Remove.
	(__bdm_semihost): Declare.
2006-09-18 07:41:02 +00:00
Nathan Sidwell
5f87f7b44d libgloss/
* m68k/Makefile.in (BDM_OTHER_OBJS): Remove sbrk.o.
	(BDM_SYSOBJS): Add bdm-sbrk.o.
	* m68k/bdm-sbrk.c: New.
2006-09-15 13:24:03 +00:00
Paul Brook
11d4e97923 2006-09-11 Paul Brook <paul@codesourcery.com>
libgloss/
	* arm/arm.sc: Add .jcr.
2006-09-11 17:58:46 +00:00
Paul Brook
51cecb1579 2006-09-11 Daniel Jacobowitz <dan@codesourcery.com>
libgloss/
	* arm/Makefile.in (armv7m, lm3s10x, lm3s301, lm3s31x): Swap
	RAM and ROM.
	(rdimon, rdpmon): Skip 8k.
2006-09-11 16:55:11 +00:00
Nathan Sidwell
b773f177d3 libgloss/
* m68k/Makefile.in (CF_SOURCES): New.
	(install): Install them.
2006-09-06 08:45:15 +00:00
Paul Brook
d3c3ba07ad 2006-09-01 Paul Brook <paul@codesourcery.com>
libgloss/
	* arm/Makefile.in: Reduce rdi/rdp ram size to avoid overflow.
2006-09-01 21:55:12 +00:00
Nathan Sidwell
a3247f07e3 libgloss/
* m68k/cf.sc: Add .jcr section to .text.
2006-09-01 17:00:14 +00:00
Paul Brook
e6d39ddc28 2006-09-01 Paul Brook <paul@codesourcery.com>
libgloss/
	* arm/Makefile.in: Include _exit.c in BSPs.  Add rdimon-ram.ld.
	Build linker scripts instead of spec files for rdimon and rdpmon.
	Pass CRT0 ad BSP to arm.sc.
	* arm/_exit.c: New file.
	* arm/arm.sc: Add STARTUP, GROUP and SEARCH_DIR.  Remove defaults
	for ROM and RAM.
	* arm/crt0.S: Give Thumb-2 symbols function type.
	Skip generic Arm init code for Thumb-2.
	Add _nmi_isr and _fault_isr.
	* arm/libcfunc.c (do_AngelSWI): Remove.
	* arm/swi.h (do_AngelSWI): New function.
	* arm/syscalls.c (do_AngelSWI): Remove.
	(_exit): Remove.
	(isatty): New function.
2006-09-01 15:28:54 +00:00
Kazu Hirata
2c1b1af637 Reformat ChangeLog entries. 2006-08-31 17:40:35 +00:00
Nathan Sidwell
7a9372e3a9 libgloss/
* m68k/bdm-crt1.c: Call hardware_init_hook before copying
	initialized data.
2006-08-31 13:08:46 +00:00
Nathan Sidwell
09a63eee98 libgloss/
* m68k/Makefile.in (CF_BDM_SCRIPTS): Rename to CF_RAM_SCRIPTS.
	(CF_SCRIPTS): Update.
	(%-bdm.ld): Rename to %-ram.ld.
2006-08-31 09:00:40 +00:00
Paul Brook
61cf169619 2006-08-30 Paul Brook <paul@codesourcery.com>
libgloss/
	* arm/Makefile.in: Change armv7m linker script generation.  Add
	armv7m.spec.  Build armv7m-crt0.o.
	* arm/arm.sc: New file.
	* arm/armv7m.specs: New file.
	* arm/crt0.S: Add armv7m code.
	* arm/elf-lm3s10x.ld: Remove.
	* arm/elf-lm3s301.ld: Remove.
	* arm/elf-lm3s31x.ld: Remove.
	* arm/swi.h (do_AngelSWI): Add definition.
	* arm/syscalls.c: Merge lazy semihosting initialization from newlib.

	newlib/
	* libc/sys/arm/crt0.S: Add armv7m rom startup code.
2006-08-30 22:24:19 +00:00
Paul Brook
83cc5b75d9 2006-08-29 Paul Brook <paul@codesourcery.com>
newlib/
	* libc/sys/arm/_fault_isr.c (_fault_isr): Compile unconditionally.
	* libc/sys/arm/_nmi_isr.c (_nmi_isr): Ditto.
2006-08-29 22:05:40 +00:00
Paul Brook
975f7bea95 2006-08-29 Paul Brook <paul@codesourcery.com>
newlib/
	* acconfig.h (_ATEXIT_DYNAMIC_ALLOC): Remove.
	* configure.in: Remove --disable-newlib-atexit-dynamic-alloc.
	* libc/stdlib/__atexit.c (__register_exitproc): Use weak reference to
	malloc.  Only allocate dynamically if it is present.
	* libc/stdlib/__call_atexit.c (__call_exitprocs): Use weak reference
	to free.
	* configure: Regenerate.
	* newlib.hin: Regenerate.
2006-08-29 21:53:31 +00:00
Paul Brook
7d761d1965 2006-08-29 Paul Brook <paul@codesourcery.com>
newlib/
	* libc/include/sys/config.h: Define _REENT_SMALL for Thumb-2.
2006-08-29 20:26:58 +00:00
Nathan Sidwell
ffe60f8eda libgloss/
* m68k/Makefile.in (DBUG_BSP, DBUG_OBJS): Remove.
	(BDM_CRT0): New.
	(BDM_OBJS): Add bdm-crt1.o.
	(BDM_OTHER_OBJS): Remove print.o putnum.o
	(CF_BOARDS): New.
	(CF_BDM_SCRIPTS): Generated name of ram scripts.
	(CF_ROM_SCRIPTS): Generated name of rom scripts.
	(CF_SCRIPTS): Adjust.
	(all): Add BDM_CRT0.
	(bdm-crt0.o, bdm-crt1.o): New targets.
	(bdm-isv.o): Remove.
	(m5208evb, m5213evb, m52235evb, m5235evb, m5273c3, m5282evb,
	m5329evb, m5485evb): New.
	(%-bdm.ld, %-rom.ld): New. Replace individual linker script rules.
	(install): Remove DBUG installs.
	* m68k/bdm-crt0.S: New.
	* m68k/bdm-crt1.c: New.
	* m68k/bdm-exit.c: Call __reset.
	* m68k/bdm-isv.c: Remove.
	* m68k/cf.sc: Adjust to produce either rom or ram images.
	* m68k/dbug-exit.S, m68k/dbug-inbyte.S, m68k/dbug-outbyte.S: Remove.
2006-08-25 11:55:48 +00:00
Paul Brook
fe28d47d3b 2006-08-22 Paul Brook <paul@codesourcery.com>
newlib/
	* libc/sys/arm/syscalls.c (initialise_monitor_handles): Fix
	multithreaded locking.
2006-08-22 20:48:23 +00:00
Kazu Hirata
5f6fc2565b Fix a typo. 2006-08-14 16:11:25 +00:00
Nathan Sidwell
9048c24f64 add bug number 2006-07-24 16:50:26 +00:00
Nathan Sidwell
25ae6bd7e2 libgloss/
* m68k/cf.sc: Set entry point to _start.
	* m68k/crt0.X (_start): New name for entrypoint
	(start): Weak alias for start.
2006-07-24 16:49:07 +00:00