aboutsummaryrefslogtreecommitdiff
path: root/libgloss/spu
AgeCommit message (Collapse)AuthorFilesLines
2023-12-19libgloss: drop $(INCLUDES) when using $(AS)Mike Frysinger1-1/+1
Since $(AS) is the assembler, passing it a list of preprocessor include flags doesn't make much sense. The files aren't preprocessed which means `#include` lines aren't respected, and while it would affect `.include` usage, we never use that, and it's extremely unlikely to change. Plus, it's extremely unlikely we'd have .s files in common places to include vs contained entirely within a specific arch dir, and at that point, it can be included directly (with no flags), or the arch can add the unique set of include paths that it needs for itself.
2022-02-01libgloss: merge subdirs that have unique makefile_frags up a levelMike Frysinger4-4298/+2
Merge the subdir configure scripts up that only existed to set unique values for their target/host makefile_frags.
2022-01-14require autoconf-2.69 exactlyMike Frysinger3-20/+6
The newlib & libgloss dirs are already generated using autoconf-2.69. To avoid merging new code and/or accidental regeneration using diff versions, leverage config/override.m4 to pin to 2.69 exactly. This matches what gcc/binutils/gdb are already doing. The README file already says to use autoconf-2.69. To accomplish this, it's just as simple as adding -I flags to the top-level config/ dir when running aclocal. This is because the override.m4 file overrides AC_INIT to first require the specific autoconf version before calling the real AC_INIT.
2022-01-10libgloss: hardcode AC_CONFIG_AUX_DIR pathMike Frysinger2-25/+5
In order to transition to automake, we have to use hardcoded paths in the AC_CONFIG_AUX_DIR macro call (since automake evaluates the path itself, and doesn't expand vars), so simplify all the calls here.
2021-11-06libgloss: regenerate aclocal.m4 & configure w/newer versionsMike Frysinger3-259/+288
Regenerate the files using automake-1.15 & autoconf-2.69 to match the binutils/gdb/gcc projects. Ran: libgloss $ find -name configure.ac -printf '%h\n' | while read d; do (cd $d; export WANT_AUTOCONF=2.69 WANT_AUTOMAKE=1.15; aclocal-1.15 -I.. && autoconf-2.69); done
2021-09-13libgloss/newlib: rename configure.in to configure.acMike Frysinger1-0/+0
The .in name has been deprecated for a long time in favor of .ac.
2018-01-17ansification: remove _DEFUNYaakov Selkowitz1-1/+1
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
2013-11-212013-11-21 Daniel Ramirez <javamonn@gmail.com>Joel Sherrill1-1/+1
* d30v/syscalls.c, i960/mon960.c, m68k/io-stat.c, mt/stat.c, spu/lstat.c, spu/stat.c: Add restrict keyword.
2013-07-17* lm32/configure: Regenerate.Yaakov Selkowitz1-1543/+2258
* moxie/configure: Ditto. * spu/configure: Ditto.
2009-09-212009-09-21 Ken Werner <ken.werner@de.ibm.com>Jeff Johnston1-8/+2
* spu/getpagesize.c: Align getpagesize implementation to POSIX
2009-05-132009-05-13 Ulrich Weigand <uweigand@de.ibm.com>Jeff Johnston2-5/+8
* spu/crtn.S: Add dummy to ensure nothing gets linked at address 0. * spu/crti.S: Remove nop.
2009-05-072009-05-07 Ken Werner <ken.werner@de.ibm.com>Jeff Johnston3-1791/+1193
* spu/configure.in: Fix multilib support. * spu/configure: Regenerate. * spu/Makefile.in: Add CFLAGS_FOR_TARGET.
2009-04-032009-04-03 Ken Werner <ken.werner@de.ibm.com>Jeff Johnston4-1/+137
* spu/Makefile.in: Add new files. * spu/times.c: New File. * spu/getitimer.c: Likewise. * spu/setitimer.c: Likewise.
2009-04-032009-04-03 Ken Werner <ken.werner@de.ibm.com>Jeff Johnston3-1/+101
* spu/Makefile.in: Add linux_getpid.o and linux_gettid.o. * spu/linux_getpid.c: New file. * spu/linux_getpid.c: New file.
2009-04-032009-04-03 Ken Werner <ken.werner@de.ibm.com>Jeff Johnston1-1/+5
* spu/crt0.S (_start): Place spu_id in the first agument register.
2008-12-112008-12-11 Ken Werner <ken.werner@de.ibm.comJeff Johnston2-1/+13
* spu/crt0.S: Call __monstartup if profiling is enabled. * spu/Makefile.in: Add gcrt1.o gcrt2.o.
2008-11-202008-11-20 Ken Werner <ken.werner@de.ibm.com>Jeff Johnston6-12/+255
Patrick Mansfield <patmans@us.ibm.com> Joel Schopp <jschopp@austin.ibm.com> * spu/Makefile.in: Add new files. * spu/jsre.h: Add JSRE_MMAP, JSRE_MREMAP, JSRE_MSYNC and JSRE_MUNMAP opcodes. * spu/mmap_eaddr.c: New File. * spu/mremap_eaddr.c: Likewise. * spu/msync_eaddr.c: Likewise. * spu/munmap_eaddr.c: Likewise.
2008-09-112008-09-10 Ken Werner <ken.werner@de.ibm.com>Jeff Johnston2-6/+17
* spu/dirfuncs.c: Avoid warnings. * spu/kill.c: Likewise.
2008-09-042008-09-04 Ken Werner <ken.werner@de.ibm.com>Jeff Johnston2-6/+7
* spu/Makefile.in: Fix missing linux_syscalls.o. * spu/linux_syscalls.c: Remove extraneous "3D" sequences.
2008-07-172008-07-17 Ken Werner <ken.werner@de.ibm.com>Jeff Johnston1-1/+9
* spu/syscalls.c: Check and set the errno value.
2008-06-172008-06-17 Ken Werner <ken.werner@de.ibm.com>Jeff Johnston1-0/+62
* spu/Makefile.in: Add new file. * spu/linux_syscalls.c: New file to add Linux syscall support.
2008-05-052008-05-05 Ken Werner <ken.werner@de.ibm.com>Jeff Johnston1-8/+2
* spu/readlink.c: Align readlink implementation to POSIX.
2008-04-152008-04-14 Patrick Mansfield <patmans@us.ibm.com>Jeff Johnston1-2/+0
* spu/sbrk.c: Remove "extern int errno", use whatever is supplied by sys/errno.h.
2008-04-04[newlib]DJ Delorie1-1184/+1785
* libm/machine/spu/configure: Regenerate with autoconf 2.61. * libc/sys/configure: Regenerate with autoconf 2.61. * libc/machine/configure: Regenerate with autoconf 2.61. [libgloss] * hp74x/configure: Regenerate with autoconf 2.61. * fr30/configure: Regenerate with autoconf 2.61. * mips/configure: Regenerate with autoconf 2.61. * xstormy16/configure: Regenerate with autoconf 2.61. * rs6000/configure: Regenerate with autoconf 2.61. * d30v/configure: Regenerate with autoconf 2.61. * i386/configure: Regenerate with autoconf 2.61. * configure: Regenerate with autoconf 2.61. * wince/configure: Regenerate with autoconf 2.61. * pa/configure: Regenerate with autoconf 2.61. * m32r/configure: Regenerate with autoconf 2.61. * mn10200/configure: Regenerate with autoconf 2.61. * iq2000/configure: Regenerate with autoconf 2.61. * cris/configure: Regenerate with autoconf 2.61. * m68k/configure: Regenerate with autoconf 2.61. * spu/configure: Regenerate with autoconf 2.61. * m32c/configure: Regenerate with autoconf 2.61. * mn10300/configure: Regenerate with autoconf 2.61. * i960/configure: Regenerate with autoconf 2.61. * arm/configure: Regenerate with autoconf 2.61. * libnosys/configure: Regenerate with autoconf 2.61. * m68hc11/configure: Regenerate with autoconf 2.61. * bfin/configure: Regenerate with autoconf 2.61. * crx/configure: Regenerate with autoconf 2.61. * mt/configure: Regenerate with autoconf 2.61. * sparc/configure: Regenerate with autoconf 2.61. * sparc/libsys/configure: Regenerate with autoconf 2.61. * mcore/configure: Regenerate with autoconf 2.61. * mep/configure: Regenerate with autoconf 2.61. * frv/configure: Regenerate with autoconf 2.61. * doc/configure: Regenerate with autoconf 2.61.
2007-10-112007-10-11 Ulrich Weigand <uweigand@de.ibm.com>Jeff Johnston1-0/+1
* spu/crt0.S: Fix so element one of register one is correctly set when compiled with -mstdmain and -fstack-check.
2007-10-022007-10-02 Markus Deuling <deuling@de.ibm.com>Jeff Johnston1-0/+5
* spu/crt0.S: Initialize __ea_local_store (EA address of the LS) via register 6.
2007-10-012007-10-01 Markus Deuling <deuling@de.ibm.com>Jeff Johnston1-4/+4
* spu/Makefile.in: add dependencies for crt files.
2007-10-012007-10-01 Patrick Mansfield <patmans@us.ibm.com>Jeff Johnston1-2/+3
* spu/sbrk.c: Use the current stack pointer value rather than the maximum available memory to determine the amount of heap space left. Without this change calling sbrk() can allocate space that is currently in use on the stack.
2007-09-26 * spu/sched_yield.c: New file (missed on 2007-09-21).Ben Elliston1-0/+49
2007-09-212007-09-21 Patrick Mansfield <patmans@us.ibm.com>Jeff Johnston6-3/+234
* spu/Makefile.in: Add new files. * spu/jsre.h: Add JSRE_PREAD, JSRE_PWRITE, JSRE_READV, and JSRE_WRITEV opcodes. * spu/pread.c: New file to add pread via assist call. * spu/pwrite.c: New file to add pwrite via assist call. * spu/readv.c: New file to add readv via assist call. * spu/writev.c: New file to add writev via assist call.
2007-09-212007-09-21 Patrick Mansfield <patmans@us.ibm.com>Jeff Johnston5-2/+157
* spu/jsre.h: Add JSRE_SCHED_YIELD, JSRE_UMASK, JSRE_UTIME, and JSRE_UTIMES. * spu/sched_yield.c: New file add sched_yield via assist call. * spu/umask.c: New file add umask via assist call. * spu/utime.c: New file add utime via assist call. * spu/utimes.c: New file add utimes via assist call. * spu/Makefile.in: Add new files.
2007-09-212007-09-21 Patrick Mansfield <patmans@us.ibm.com>Jeff Johnston4-3/+96
* spu/jsre.h: Add JSRE_SHM_OPEN and JSRE_SHM_UNLINK opcodes. * spu/shm_open.c: New file to add shm_open via assist call. * spu/shm_unlink.c: New file to add shm_unlink via assist call. * spu/Makefile.in: Add shm_open.o and shm_unlink.o
2007-09-212007-09-21 Patrick Mansfield <patmans@us.ibm.com>Jeff Johnston3-1/+174
* spu/dirfuncs.c: New file, holds the opendir, closedir, readdir, rewinddir, seekdir and telldir implementations. These are grouped in one file so that we do not need a separate file for the struct dirent and DIR allocation code. * spu/jsre.h: Add JSRE_OPENDIR and other dir opcodes. * spu/Makefile.in: Add dirfuncs.o.
2007-07-062007-07-06 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston1-1/+1
* arm/syscalls.c (gettimeofday): Change to POSIX signature where second argument is passed as void *. * bfin/syscalls.c (gettimeofday): Ditto. * cris/gensyscalls (gettimeofday): Ditto. * cris/linunistd.h (gettimeofday): Ditto. * crx/time.c (gettimeofday): Ditto. * frv/sim-time.c (gettimeofday): Ditto. * i386/cygmon-salib.c (gettimeofday): Ditto. * libnosys/gettod.c (gettimeofday): Ditto. * m68k/io-gettimeofday.c (gettimeofday): Ditto. * sparc/cygmon-salib.c (gettimeofday): Ditto. * spu/gettimeofday.c (gettimeofday): Ditto.
2007-06-202007-06-20 Patrick Mansfield <patmans@us.ibm.com>Jeff Johnston4-3/+87
* spu/jsre.h: Add JSRE_MKSTEMP and JSRE_MKTEMP values. * spu/mkstemp.c: New file to add mkstemp support via assist call. * spu/mktemp.c: New file to add mktemp support via assist call. * spu/Makefile.in: Add mkstemp.o and mktemp.o
2007-06-202007-06-20 Patrick Mansfield <patmans@us.ibm.com>Jeff Johnston8-6/+300
* spu/jsre.h: Add new JSRE opcodes. * spu/dup2.c: New file to add dup2 support via assist call. * spu/fdatasync.c: New file to add fdatasync support via assist call. * spu/fsync.c: New file to add fsync support via assist call. * spu/lockf.c: New file to add lockf support via assist call. * spu/sync.c: New file to add sync support via assist call. * spu/truncate.c: New file to add truncate support via assist call. * spu/Makefile.in: Add new files.
2007-06-202007-06-20 Patrick Mansfield <patmans@us.ibm.com>Jeff Johnston5-2/+174
* spu/jsre.h: JSRE_LINK, JSRE_SYMLINK and JSRE_READLINK. * spu/link.c: New file to add link support via an assist call. * spu/readlink.c: New file to add readlink support via an assist call. * spu/symlink.c: New file to add symlink support via an assist call. * spu/Makefile.in: Add new files.
2007-06-202007-06-20 Patrick Mansfield <patmans@us.ibm.com>Jeff Johnston6-40/+131
* spu/jsre.h: Add JSRE_LSTAT. * spu/lstat.c: New file add lstat support via an assist call. * spu/conv_stat.c: New file, add common stat conversion code. * spu/fstat.c: Use __conv_stat. * spu/stat.c: Use __conv_stat. * spu/Makefile.in: Add conv_stat.o and lstat.o.
2007-06-202007-06-20 Patrick Mansfield <patmans@us.ibm.com>Jeff Johnston3-1/+111
* spu/jsre.h: Add JSRE_GETCWD. * spu/getcwd.c: New file, implement getcwd with help from an assist call. * spu/Makefile.in: Add getcwd.
2007-06-202007-06-20 Patrick Mansfield <patmans@us.ibm.com>Jeff Johnston12-3/+523
* spu/jsre.h: Add defines for new assist calls. * spu/chdir.c: New file, support chdir via assist call. * spu/chmod.c: New file, support chmod via assist call. * spu/chown.c: New file, support chown via assist call. * spu/fchdir.c: New file, support fchdir via assist call. * spu/fchmod.c: New file, support fchmod via assist call. * spu/fchown.c: New file, support fchown via assist call. * spu/lchown.c: New file, support lchown via assist call. * spu/mkdir.c: New file, support mkdir via assist call. * spu/mknod.c: New file, support mknod via assist call. * spu/rmdir.c: New file, support rmdir via assist call. * spu/Makefile.in: Add new files.
2007-06-202007-06-20 Patrick Mansfield <patmans@us.ibm.com>Jeff Johnston3-1/+50
* spu/getpagesize.c: New file add getpagesize via an assist call. * spu/jsre.h: Add JSRE_GETPAGESIZE. * spu/Makefile.in: Add getpagesize.
2007-06-132007-06-13 Patrick Mansfield <patmans@us.ibm.com>Jeff Johnston3-2/+55
* spu/Makefile.in: Add nanosleep.c. * spu/jsre.h: Add JSRE_NANOSLEEP. * spu/nanosleep.c: New file, supply nanosleep via an assist call.
2007-06-052007-06-05 Patrick Mansfield <patman@us.ibm.com>Jeff Johnston13-128/+101
* spu/jsre.h: Remove the assist call structs and defines that are specific to one assist call from here. * spu/access.c: Move struct syscall_access_t to here. * spu/fstat.c: Move struct syscall_fstat_t to here. * spu/ftruncate.c: Move struct syscall_ftruncate_t to here. * spu/gettimeofday.c: Move struct syscall_gettimeofday_t to here. * spu/lseek.c: Move struct syscall_lseek_t and JSRE_SEEK defines to here. * spu/open.c: Move struct syscall_open_t and JSRE_O_ defines to here. * spu/read.c: Move struct syscall_read_t to here, and actually use it (it is the same as syscall_write_t). * spu/stat.c: Move struct syscall_stat_t to here. * spu/write.c: Move struct syscall_write_t to here. * spu/close.c: Pass the address of the first and only argument to __send_to_ppe rather than using an automatic variable and a special struct. * spu/dup.c: Ditto. * spu/unlink.c: Ditto.
2007-05-232007-05-23 Patrick Mansfield <patmans@us.ibm.com>Jeff Johnston14-79/+25
* spu/syscalls.c: Change __send_to_ppe to return the result stored in stored in slot 0 of the data, rather than have each assisted call retrieve the value. * spu/jsre.h: Remove the now unused syscall_out_t. * spu/access.c: Use the __send_to_ppe result instead of the slot 0 value, remove unused syscall_out_t variable. * spu/close.c: Ditto. * spu/dup.c: Ditto. * spu/fstat.c: Ditto. * spu/ftruncate.c: Ditto. * spu/gettimeofday.c: Ditto. * spu/lseek.c: Ditto. * spu/open.c: Ditto. * spu/read.c: Ditto. * spu/stat.c: Ditto. * spu/unlink.c: Ditto. * spu/write.c: Ditto.
2007-05-072007-05-07 Patrick Mansfield <patmans@us.ibm.com>Jeff Johnston1-14/+4
* spu/open.c: Unconditionally set the "mode" to fix a bug where mode was not properly set.
2007-04-042007-04-04 Patrick Mansfield <patmans@us.ibm.com>Jeff Johnston14-38/+17
* spu/syscalls.c: Rename _send_to_ppe __send_to_ppe, and set errno on return from the offload call. * spu/jsre.h: Include sys/syscall.h for the send_to_ppe prototype. * spu/access.c: Call __send_to_ppe instead of _send_to_ppe, and remove the setting of errno. * spu/close.c: Ditto. * spu/dup.c: Ditto. * spu/fstat.c: Ditto. * spu/ftruncate.c: Ditto. * spu/gettimeofday.c: Ditto. * spu/lseek.c: Ditto. * spu/open.c: Ditto. * spu/read.c: Ditto. * spu/stat.c: Ditto. * spu/unlink.c: Ditto. * spu/write.c: Ditto.
2007-03-01 * spu/sbrk.c (sbrk): Adjust the stack pointer vector correctly soBen Elliston1-8/+28
that GCC runtime stack checking works. Handle the backchain, too.
2007-02-212007-02-21 Patrick Mansfield <patmans@us.ibm.com>Jeff Johnston3-13/+16
* libgloss/spu/gettimeofday.c: New file which adds SPU gettimeofday. * libgloss/spu/jsre.h: Remove time, add gettimeofday. * libgloss/spu/Makefile.in: Ditto.
2007-01-192007-01-19 Kazunori Asayama <asayama@sm.sony.co.jp>Jeff Johnston1-2/+1
* spu/syscalls.c: Replace vector with __vector.
2007-01-09 * spu/exit.c (_exit): Finish with an infinite loop to eliminate aBen Elliston1-0/+3
warning about this noreturn function returning.