RE: [PATCH] Set default to -fomit-frame-pointer

2017-11-10 Thread James Bowman
Andreas Schwab wrote: >> Joseph Myers wrote: >>> On Fri, 3 Nov 2017, Wilco Dijkstra wrote: >>> >>> > Almost all targets add an explict -fomit-frame-pointer in the target >>> > specific >>> > options. Rather than doing this in a target-specific way, do this in the >>> >>> Which targets do not?

[patch committed FT32] Add FT32B support

2017-11-02 Thread James Bowman
FT32B is a new FT32 architecture type. Ft32B has a code compression scheme which uses linker relaxations. It also has a security option to prevent reads from program memory. [gcc] 2017-11-02 James Bowman <james.bow...@ftdichip.com> * config/ft32/

[patch committed FT32] Add watchdog vector and FT930 support

2017-09-29 Thread James Bowman
The attached patch adds a watchdog reset vector and FT930 support to the base interrupt code. [libgcc] 2017-09-28 James Bowman <james.bow...@ftdichip.com> * config/ft32/crti-hw.S: Add watchdog vector, FT930 IRQ support. Index: libgcc/config/ft32/crt

[PATCH FT32]: apply unbias to references to RAM symbols

2016-07-08 Thread James Bowman
for these no bias should be applied. Likewise references in the gdb section need to use the biased address, so references in debug sections are not unbiased. gcc/ChangeLog: 2016-07-08 James Bowman <james.bow...@ftdichip.com> * config/ft32/ft32.c (ft32_elf_encode_section_info): New fu

[patch] Fix DWARF type output for non-default address spaces

2016-07-07 Thread James Bowman
itted. OK to commit? [gcc] 2016-07-07 James Bowman <james.bow...@ftdichip.com> * gcc/dwarf2out.c (modified_type_die): Retain ADDR_SPACE qualifiers. (add_type_attribute) likewise. Index: gcc/dwarf2out.c ===

[patch committed FT32] use setup_incoming_varargs

2016-06-05 Thread James Bowman
The FT32 target now uses SETUP_INCOMING_VARARGS to handle varargs. This saves 24 byte per stack frame, because the caller no longer needs to allocate space on the stack for r0-r5 in the event of a varargs caller. * config/ft32/ft32.c (ft32_setup_incoming_varargs,

[patch commited FT32] Add -nodiv option

2016-03-28 Thread James Bowman
The attached patches add an "-mnodiv" option to FT32, preventing use of the divide and modulo instructions. This required additional software div/mod implemtations in FT32's libgcc. 2016-03-28 James Bowman <james.bow...@ftdichip.com> * config/ft32/ft32.o

[patch committed FT32] Pattern for CC to register move

2015-11-12 Thread James Bowman
The attached patch adds a pattern for CC to register move. [gcc] 2015-11-11 James Bowman <james.bow...@ftdichip.com> * config/ft32/ft32.md: New pattern *sne Index: gcc/config/ft32/ft32.md === --- gcc/config/ft32/f

[patch committed FT32] Limit MEMSET, MEMCPY to <512 bytes

2015-09-29 Thread James Bowman
The attached patch limits the MEMSET (setmemsi pattern) and MEMCPY (movmemsi pattern) instructions to 0-511 bytes. There is a hardware limitation on large MEMSET, MEMCPY operations that the library versions of memset() and memcpy() deal with. [gcc] 2015-09-29 James Bowman <james.

[patch committed FT32] Fixes for hardware startup

2015-09-21 Thread James Bowman
The attached patch contains several fixes for the default hardware startup. [libgcc] 2015-09-21 James Bowman <james.bow...@ftdichip.com> * config/ft32/crti-hw.S: Use __PMSIZE to allow configurable memory layout. Deal correctly with BSS region larger than 32K.

[patch committed FT32] Fix address space predicate

2015-09-16 Thread James Bowman
The attached patch fixes the FT32's memory address space predicate. [gcc] 2015-09-16 James Bowman <james.bow...@ftdichip.com> * config/ft32/ft32.c Fix the memory address space predicate. Index: gcc/config/ft32/

RE: [PATCH, FT32] initial support

2015-05-14 Thread James Bowman
uses address spaces to distinguish between program and data memory. Of the ports that currently support LRA (arc, mips, rs6000, s380, sh) none use address spaces. Perhaps this port's use of address spaces is causing the problem? -- James Bowman FTDI Open Source Liaison

RE: [PATCH, FT32] initial support

2015-05-14 Thread James Bowman
-14 James Bowman james.bow...@ftdichip.com * configure.ac: FT32 target added * libgcc/config.host: FT32 target added * gcc/config/ft32/: FT32 target added * libgcc/config/ft32/: FT32 target added * gcc/doc/install.texi, invoke.texi, md.texi: FT32 details

RE: [PATCH, FT32] initial support

2015-05-13 Thread James Bowman
On Tue, May 12, 2015 at 10:17:01PM +, James Bowman wrote: It seems that with whenever a function's frame is bigger than 512 bytes, LRA loops. Likely this causes a problem because there is no actual instruction for subtracting constants more than 512. However, there is a link pattern

RE: [PATCH, FT32] initial support

2015-05-12 Thread James Bowman
On 05/08/2015 06:04 PM, James Bowman wrote: Are you using LRA or reload? The former is definitely preferred and for a simple target like this, I'd expect the transition to be very easy. I'm using reload. Attempting to naively switch on LRA resulted in internal compiler error: Max

RE: [PATCH, FT32] initial support

2015-03-19 Thread James Bowman
Second ping. Also, have attached updated patchset for the current gcc. Thanks. -- James Bowman FTDI Open Source Liaison From: Joseph Myers [jos...@codesourcery.com] Sent: Tuesday, February 17, 2015 2:06 AM To: James Bowman Cc: gcc-patches@gcc.gnu.org

RE: [PATCH, FT32] initial support

2015-03-12 Thread James Bowman
On Mon, 16 Feb 2015, James Bowman wrote: I have updated the target options. Space-saving is now enabled by -Os. There is also a new option -msim to enable building for the simulator (the simulator is pending submission to gdb-binutils). The documentation in this patch doesn't seem

RE: [PATCH, FT32] initial support

2015-02-16 Thread James Bowman
this option when generating programs that will run on real hardware; you must provide your own runtime library for whatever I/O functions are needed. @end table -- James Bowman FTDI Open Source Liaison From: Joseph Myers [jos...@codesourcery.com] Sent

RE: [PATCH, FT32] initial support

2015-02-16 Thread James Bowman
to gcc. Please can someone review it, and if appropriate commit it, as I do not have write access to the tree. The FSF have acknowledged receipt of FTDI's copyright assignment papers. Thanks very much. ChangeLog entry: 2014-02-16 James Bowman james.bow...@ftdichip.com

RE: [PATCH, FT32] initial support

2015-02-11 Thread James Bowman
code without. So we typically build *all* code with -Os, with everything non-critical also compiled -mspace. Is this a legitimate option or should I just use -Os? -- James Bowman FTDI Open Source Liaison

RE: [PATCH, FT32] initial support

2015-02-10 Thread James Bowman
adds FT32 support to gcc. Please can someone review it, and if appropriate commit it, as I do not have write access to the tree. The FSF have acknowledged receipt of FTDI's copyright assignment papers. Thanks very much. ChangeLog entry: 2014-02-11 James Bowman james.bow...@ftdichip.com

RE: [PATCH, FT32] initial support

2015-02-03 Thread James Bowman
,$r1,$r0 sub.l $r0,$r0,$r1 return Thanks. -- James Bowman FTDI Open Source Liaison

RE: [PATCH] Update config.sub from upstream config repo

2015-01-01 Thread James Bowman
Sorry, should have been clearer. Please can someone review and apply this patch, as I don't have write access to the tree. Thanks.

[PATCH] pass pr20621 testcase on a small stack target

2014-12-31 Thread James Bowman
Test pr20621 requires a target with more than 64K of available stack. This patch adds a path to pass the test when the target has declared a STACK_SIZE of 64K or less 2014-12-30 James Bowman james.bow...@ftdichip.com * gcc/testsuite/gcc.c-torture/execute/pr20621-1.c: pass if stack 64K

[PATCH] Update config.sub from upstream config repo

2014-12-23 Thread James Bowman
ChangeLog 2014-12-23 James Bowman james.bow...@ftdichip.com * config.sub: Update from upstream config repo. -- James Bowman FTDI Open Source Liaison Index: config.sub === --- config.sub (revision 219020) +++ config.sub