aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2024-01-22newlib: docs: print the function indexMike Frysinger2-0/+11
The generated function documentation makes sure to include entries for every function in the function index via @findex, but then the manuals forget to actually print the index.
2024-01-22libgloss: doc: unify duplicate copyright/license contentMike Frysinger1-23/+17
Use @copying & @insertcopying directives to define the copyright & license block only once, and then inserted at the same places as it was before.
2024-01-22libgloss: doc: fix dir info entry usageMike Frysinger1-3/+4
Wrapping the dir info with @ifnottex means it's included in all other outputs like html which makes no sense. Switch to @direntry which is specific for this content and is automatically written to the output that makes sense, and omitted from the rest.
2024-01-22Add Dimitar Dimitrov as maintainer for pruJeff Johnston1-0/+1
2024-01-19libgloss: xc16x: drop old stub portMike Frysinger21-645/+2
First off, afaict, xc16x support has never been merged into gcc. Upstream merge isn't strictly required for new ports, but it seems like people should merge eventually in some shape, and considering the libgloss port was merged in 2009, ~14 years seems like plenty of leeway. Which is to say, no one else can seem to build this which makes updating & testing things very difficult. Ignoring that, from what I can tell, this port has only ever built and installed a crt0.o file. It defines libeval.a & libcygmon.a targets, but nothing depends on them. The SCRIPTS & BSP variables are always empty. The original port merge define these in the configure script as substitutes, but never set the vars, so they were always replaced with nothing. I actually broke this build 2 years ago when merging the configure up a level in commit 30f244155b8e82aa948ddcb8f2350654fc1adb92 ("libgloss: merge subdirs that have unique makefile_frags up a level"). I saw that it was exporting a bunch of vars in the configure script, but never set them, so I incorrectly assumed they weren't used. Which means the Makefile has been setting them to invalid values like literal @bsp_list@ and @script_list@. Considering no one has complained, I have to assume no one cares about this port, and we can all stop wasting time on it.
2024-01-19libgloss: merge microblaze into top-level MakefileMike Frysinger6-331/+473
Avoid a recursive make to speed things up a bit. A microblaze-elf build shows installed objects & libs produce same code.
2024-01-19libgloss: microblaze: use port-specific sbrkMike Frysinger1-0/+1
The default search path uses the common sbrk.c over the microblaze one, so add a rule to force the microblaze variant instead.
2024-01-19libgloss: merge tic6x into top-level MakefileMike Frysinger6-218/+163
Avoid a recursive make to speed things up a bit. A tic6x-elf build shows installed objects & libs produce same code.
2024-01-19libgloss: merge sparc_leon into top-level MakefileMike Frysinger6-276/+658
Avoid a recursive make to speed things up a bit. A sparc-elf build shows installed objects & libs produce same code.
2024-01-19libgloss: sparc_leon: workaround newer newlib pthread APIsMike Frysinger1-0/+4
Fix a compile error due to duplicate pthreads types: .../libgloss/sparc_leon/mutex.c:50:8: error: conflicting types for ‘pthread_mutex_t’; have ‘struct pthread_mutex’ 50 | } pthread_mutex_t; In file included from .../newlib/libc/include/sys/types.h:221, from .../libgloss/sparc_leon/mutex.c:26: .../newlib/libc/include/sys/_pthreadtypes.h:154:20: note: previous declaration of ‘pthread_mutex_t’ with type ‘pthread_mutex_t’ {aka ‘long unsigned int’} 154 | typedef __uint32_t pthread_mutex_t; /* identify a mutex */ .../libgloss/sparc_leon/mutex.c:57:8: error: conflicting types for ‘pthread_mutexattr_t’; have ‘struct <anonymous>’ 57 | } pthread_mutexattr_t; ../newlib/libc/include/sys/_pthreadtypes.h:169:3: note: previous declaration of ‘pthread_mutexattr_t’ with type ‘pthread_mutexattr_t’ 169 | } pthread_mutexattr_t;
2024-01-19libgloss: merge sparc into top-level MakefileMike Frysinger7-383/+575
Avoid a recursive make to speed things up a bit. A sparc-elf build shows installed objects & libs produce same code.
2024-01-19libgloss: sparc: always install erc32 sim filesMike Frysinger1-3/+3
These are already compiled for all sparc targets, so we might as well install them all the time so they can be used with the erc32 sim.
2024-01-19libgloss: merge ft32 into top-level MakefileMike Frysinger6-317/+341
Avoid a recursive make to speed things up a bit. A ft32-elf build shows installed objects & libs produce same code. Mention of ft32-elf-common.ld is dropped as it has never existed in the tree, and has been an (ignored) error in the past.
2024-01-19libgloss: ft32: delete unused/invalid assembly fileMike Frysinger1-31/+0
This is a .c file, not assembly, and it's a duplicate (same content) as the existing sim-lseek.c. Delete it since it's unused and doesn't actually compile.
2024-01-19libgloss: merge fr30 into top-level MakefileMike Frysinger6-336/+244
Avoid a recursive make to speed things up a bit. A fr30-elf build shows installed objects & libs produce same code. A lot of code seems like it hasn't been migrated, but that's because it's all disabled/unused (i.e. all the test & mon code). It looks like a lot of copy & paste holdovers from the original port.
2024-01-19libgloss: merge or1k into top-level MakefileMike Frysinger7-249/+439
Avoid a recursive make to speed things up a bit. A or1k-elf build shows installed objects & libs produce same code.
2024-01-19libgloss: merge epiphany into top-level MakefileMike Frysinger6-379/+394
Avoid a recursive make to speed things up a bit. A epiphany-elf build shows installed objects & libs produce same code.
2024-01-19libgloss: xtensa: fix CPPFLAGS clobberingMike Frysinger2-25/+35
No sub-Makefile.inc file should ever set CPPFLAGS directly. That is a global/common variable. Instead, ports should set the per-target CPPFLAGS to include what they need. Further, per-target CPPFLAGS should respect $(AM_CPPFLAGS).
2024-01-19libgloss: merge visium into top-level MakefileMike Frysinger7-203/+300
Avoid a recursive make to speed things up a bit. A visium-elf build shows installed objects & libs produce same code.
2024-01-19libgloss: visium: fix sbrk search pathMike Frysinger1-0/+3
The code was loading the common ../sbrk.c file rather than the visium specific sbrk.c due to VPATH setup. Add an explicit rule for this one file so we make sure the correct one is used.
2024-01-19libgloss: merge m32r into top-level MakefileMike Frysinger6-272/+345
Avoid a recursive make to speed things up a bit. A m32r-elf build shows installed objects & libs produce same code.
2024-01-19libgloss: merge rl78 into top-level MakefileMike Frysinger6-236/+292
Avoid a recursive make to speed things up a bit. A rl78-elf build shows installed objects & libs produce same code.
2024-01-19libgloss: merge rx into top-level MakefileMike Frysinger6-236/+270
Avoid a recursive make to speed things up a bit. A rx-elf build shows installed objects & libs produce same code.
2024-01-19libgloss: merge xstormy16 into top-level MakefileMike Frysinger6-207/+341
Avoid a recursive make to speed things up a bit. A xstormy16-elf build shows installed objects & libs produce same code.
2024-01-19libgloss: merge nds32 into top-level MakefileMike Frysinger6-219/+300
Avoid a recursive make to speed things up a bit. A nds32le-elf build shows installed objects & libs produce same code.
2024-01-19libgloss: merge mcore into top-level MakefileMike Frysinger7-260/+347
Avoid a recursive make to speed things up a bit. A mcore-elf build shows installed objects & libs produce same code.
2024-01-19libgloss: merge mn10200 into top-level MakefileMike Frysinger7-251/+293
Avoid a recursive make to speed things up a bit. Untested, but follows the same pattern as mn10300, but simpler.
2024-01-19libgloss: merge mn10300 into top-level MakefileMike Frysinger8-269/+371
Avoid a recursive make to speed things up a bit. A mn10300-elf build shows installed objects & libs produce same code.
2024-01-19libgloss: merge i386 into top-level MakefileMike Frysinger6-234/+210
Avoid a recursive make to speed things up a bit. A i386-elf build shows installed objects & libs produce same code other than a rename from cygmon-gmon.o & cygmon-salib.o to i386_libcygmon_a-*.o due to the use of custom CPPFLAGS in here.
2024-01-19libgloss: merge frv into top-level MakefileMike Frysinger6-226/+244
Avoid a recursive make to speed things up a bit. A frv-elf build shows installed objects & libs produce same code.
2024-01-19libgloss: merge msp430 into top-level MakefileMike Frysinger6-232/+280
Avoid a recursive make to speed things up a bit. A msp430-elf build shows installed objects & libs produce same code.
2024-01-19libgloss: msp430: delete custom .S.o ruleMike Frysinger1-4/+0
This was added to specify -Wa,-gdwarf2 when compiling the assembly files. Considering the size of these .S files, it seems unnecessary overkill and complicates the build system. All but one of these compile down to 6 or fewer lines, and those hardly need extra debug for anyone who is poking msp430 assembly. The 1 file that is larger than that (crt_move_highdata.S) is still <15 insns. This will also simplify merging it into the top-level Makefile.
2024-01-19libgloss: msp430: split up crt0.S sourceMike Frysinger14-212/+499
The build system compiles crt0.S many times to produce independent object files by defining different -DLxxx symbols for each. This complicates the build, and has led to some bugs in the source and build (see the previous cleanup commits in here). The crt_bss.S file has also been duplicated with crt0.S leading to confusion as to which one is the "real" one. The only reason to keep them in one file is to make management of the section numbers when calling START_CRT_FUNC a little easier, but that seems trivial to check with a quick grep across all the files. Considering how complicated the build is now, and the bugs we've had as a result, split the crt0.S file up into multiple source files so we don't have to compile it multiple times. This will also simplify merging it into the top-level Makefile.
2024-01-19libgloss: msp430: delete stub crt_init.oMike Frysinger1-2/+1
This object is created by compiling crt0.S with -DLinit, but there has never been an "#if Linit" check in crt0.S, so this has always produced a stub object file. Drop compiling it entirely.
2024-01-19libgloss: msp430: delete outdated/wrong codeMike Frysinger1-14/+0
The #if 0 & comment imply this code doesn't exist and is never used, except there's another #if Lrun_fini_array section below which *does* define this function, which makes this code comment confusing. This seems to be a hold over of the cleanup of the minrt code in the old commit 884b05b54e4595433c85f8ca9820e88b4c723e38 ("MSP430: Remove .init/.fini sections").
2024-01-19libgloss: add per-file & per-dir flag supportMike Frysinger2-2/+14
This logic is copied from what's used in newlib today. This allows subdirs to easily define per-directory flags & per-file flags without having to setup unique automake rules for each one.
2024-01-19libgloss: add some objcopy/objdump build rulesMike Frysinger2-0/+19
A bunch of ports have manual rules to generate disassembly, srec, and binary files from test programs. Add top-level pattern rules so every test program gets this for free, and we don't have to duplicate it in every subdir.
2024-01-19libgloss: check for objcopy & objdump properlyMike Frysinger3-0/+190
A bunch of ports hack together these values rather than setting them up in the configure script for everyone.
2024-01-19Cygwin: remove warnings from testsuite buildCorinna Vinschen3-8/+4
- drop unused variable - remove deprectated usage of std::pointer_to_unary_function. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2024-01-19fputwc: call __fputwc directlyCorinna Vinschen2-2/+7
Avoid another hop in the call stack. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2024-01-19memccpy: fix pointer assignmentCorinna Vinschen1-2/+2
The local vars dst and src are unsigned pointers, but two assignments cast their value to signed explicitely. This results in the warning "pointer targets in assignment from ‘char *’ to ‘unsigned char *’ differ in signedness [-Wpointer-sign]" in case of -Wall. Fix the cast. Fixes: d254189b38bb ("2002-07-23 Jeff Johnston <jjohnstn@redhat.com>") Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2024-01-19ORIENT: avoid "expression has no effect" warningCorinna Vinschen3-3/+3
The warning "right-hand operand of comma expression has no effect [-Wunused-value]" crops up with -Wall in cases where ORIENT is called without checking or assigning its value. Explicitely void the expression in these cases to avoid the warning. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2024-01-19_fputwc_r: actually return result of __fputwcCorinna Vinschen1-1/+1
Compiling with -Wall uncovered a bug in _fputwc_r introduced in commit 09119463a1445 ("stdio: split byte- and wide-char-oriented low-level output functions"). The underlying function __fputwc has been accidentally called without fetching its return value. So the return value of _fputwc_r (and thus fputwc) was undefined. Fixes: 09119463a1445 ("stdio: split byte- and wide-char-oriented low-level output functions" Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2024-01-18Cygwin: replace all `fgrep' with `grep -F'Corinna Vinschen5-8/+8
Unfortunately fgrep is now deprecated in a very pushy way. Make sure to use grep -F instead all around, even in docs and comments/ Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2024-01-17Cygwin: copy doc changes from commit 241b50a7abe2 to release notesCorinna Vinschen1-4/+4
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2024-01-16Cygwin: Update documentation for cygwin_stackdumpJon Turney1-0/+4
2024-01-16Cygwin: Treat api_fatal() similarly to a core-dumping signalJon Turney3-5/+20
Provide the same debugging opportunities for api_fatal() as we do for a core-dumping signal: 1) Break into any attached debugger 2) Start JIT debugger (if configured) (keeping these under DEBUGGING doesn't seem helpful) 3) Write a coredump (if rlim_core > 1MB) 4) Write a stackdump (if that failed, or 0 < rlim_core <= 1MB)
2024-01-16Cygwin: Define and use __WCOREFLAGJon Turney2-3/+4
Also fix a typo in description of exit status
2024-01-16Cygwin: Disable writing core dumps by default.Jon Turney3-1/+10
Change the default core limit from unlimited to 0 (disabled)
2024-01-16Cygwin: Make 'ulimit -c' control writing a coredumpJon Turney7-41/+143
Pre-format a command to be executed on a fatal error to run 'dumper' (using an absolute path). Factor out executing a pre-formatted command, so we can use that for invoking the JIT debugger in try_to_debug() (if error_start is present in the CYGWIN env var) and to invoke dumper when a fatal error occurs. On a fatal error, if the core file size limit is greater than 1MB, invoke dumper to write a core dump. Otherwise, if that limit is greater than 0, write a .stackdump file, as previously. Adjust and clarify the associated documentation. Also: Fix so that the error_start JIT debugger is now invoked, even when ulimit -c is zero. Also: Fix uses of console_printf() inside exec_prepared_command(). It's output is written via the Windows console device, so needs to use Windows-style line endings. Also: consistently return non-zero from try_to_debug() if we debugged. Future work: Truncate or remove the file written, if it exceeds the maximum size set by the ulimit. Future work: Using the words "fatal error" could probably be improved on. This means exiting on one of the "certain signals whose default action is to cause the process to terminate and produce a core dump file".