[PATCH] moxie: enable LRA

2023-03-03 Thread Anthony Green
Committed as obviously correct. Enable LRA for the moxie port. gcc/ChangeLog: * config/moxie/moxie.cc (TARGET_LRA_P): Remove. diff --git a/gcc/config/moxie/moxie.cc b/gcc/config/moxie/moxie.cc index dcf87ef98a1..2132b6e48a3 100644 --- a/gcc/config/moxie/moxie.cc +++ b

[PATCH] moxie: use define_memory_constraint

2023-03-03 Thread Anthony Green
Committed as obviously correct. Required to make LRA for moxie work. gcc/ChangeLog: * config/moxie/constraints.md (A, B, W): Change define_constraint to define_memory_constraint. diff --git a/gcc/config/moxie/constraints.md b/gcc/config/moxie/constraints.md in

Re: Broken build

2020-05-27 Thread Anthony Green
Hans-Peter Nilsson via Gcc-patches writes: > And here's an improper bug report. > > One of the commits between cfdff3eeb90..5c8344e7289 caused every > single *linked* test to fail for cris-elf, like: I can confirm that the moxie-elf test cases don't link either. It looks like setting ldscript i

[PATCH, moxie] Adjust divide-by-zero testcase for moxie

2018-10-14 Thread Anthony Green
This patch adjusts one of the c-torture tests to account for the possible lack of divide-by-zero exceptions on certain moxie targets. Committed. gcc/testsuite/ 2018-10-14 Anthony Green * gcc.c-torture/execute/20101011-1.c: Adjust for moxie. Index: gcc/testsuite/gcc.c-torture

[PATCH, moxie] Fix endianness issue for moxiebox configuration

2016-03-22 Thread Anthony Green
Hello, The attached patch fixes an endianness issue for the moxiebox configuration of the moxie target. I've just committed it. Thanks, AG 2016-03-22 Anthony Green * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness issue for moxiebox targets. (CC1PLUS_SPEC):

Re: Housekeeping work in backends.html

2015-01-13 Thread Anthony Green
Eric Botcazou writes: > Some ports are missing (lm32, moxie, nios2, nvptx, rl78, rx) so the relevant > maintainers are CCed (see 6.3.9 Anatomy of a Target Back End in the doc). I think I got this right | Characteristics Target | HMSLQNFICBD lqrcpfgmbdiates ---+-

[PATCH, moxie] Fix mul.x availability on moxieboix

2015-01-10 Thread Anthony Green
I'm committing this patch which correctly forces a flag on instead of off. AG 2015-01-10 Anthony Green * config/moxie/moxie.c (moxie_option_override): Fix forcing of mul.x availability for moxiebox configuration. Index: gcc/config/moxie/mo

[PATCH, moxie] Tabify assembly output

2015-01-09 Thread Anthony Green
I'm committing the following patch, which cleans up the assembly output by using tabs between opcodes and operands. Thanks, AG 2015-01-09 Anthony Green * config/moxie/moxie.md: Tabify assembly output. Index: gcc/config/moxie/mox

[PATCH, moxie] Fix CC_REG definition

2015-01-09 Thread Anthony Green
The moxie port had CC_REG referring to a real hard register ($r9) by mistake instead of the virtual CC register. This never resulted in incorrect code, but we would often see $r9 marked as used in a function when it actually wasn't. I'm checking this in. 2015-01-09 Ant

[PATCH, moxie] Restrict offsets for ldo/sto to 16 bits

2015-01-01 Thread Anthony Green
Happy new year! I'm checking in this patch, which ensures that offsets for register offset addressing on moxie are limited to 16 bits. Since this is the first commit of 2015, I'm rolling the ChangeLog file as well. Thanks, AG 2015-01-01 Anthony Green * config/moxie/pre

[PATCH, moxie] Eliminate redundant zero extension instructions

2014-12-30 Thread Anthony Green
I've checked in the attached patch. The moxie port was emitting redundant (harmless) zero extend (zex) instructions. This fixes that. AG 2014-12-30 Anthony Green * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Switch from define_insn_and_split to define

[PATCH, moxie] Limit moxie sto/ldo offsets to 16-bits.

2014-12-27 Thread Anthony Green
I'm checking in the attached patch to switch ldo/sto offsets to 16 bits from 32. This was a long overdue backwards incompatible change to the ISA. 2014-12-27 Anthony Green * config/moxie/moxie-protos.h (moxie_offset_address_p): Define. * config/moxie/constraints.

[Patch, moxie] Add -mmul.x option

2014-12-24 Thread Anthony Green
, sub, mul, div and udiv instruction names by removing the trailing ".l". 2014-12-24 Anthony Green * config/moxie/moxie.opt (mul.x): New option. * doc/invoke.texi (Moxie Options): Document -mmul.x. * config/moxie/moxie.md (addsi3, mulsi3, subsi3, divs

[committed, moxie] Add use of zex instruction

2014-12-12 Thread Anthony Green
I've committed the following patch for the moxie port... 2014-12-12 Anthony Green * config/moxie/moxie.md: Add use of zex instruction. Index: gcc/config/moxie/moxie.md === --- gcc/config/moxie/moxie.md (rev

Re: [PATCH, libffi, alpha]: Use FFI_ASSERT in ffi_closure_osf_inner

2014-09-20 Thread Anthony Green
[replying to an ancient post here..] Uros Bizjak writes: > Hello! > > Attached patch fixes libgo reflect test failure with libffi closures. > The gccgo compiler started to use FFI closures recently; the compiler > passes ffi_type_void for structures with zero members. Why not just pass an FFI_

[Patch] Update config.sub from upstream

2014-07-28 Thread Anthony Green
I just committed this change from upstream config.sub (there are no changes upstream in config.guess). Thanks, AG 2014-07-28 Anthony Green Import from savannah.gnu.org: * config.sub: Update to 2014-07-28 version. Index: config.sub

[Patch, moxie] Add moxiebox target

2014-07-27 Thread Anthony Green
these changes in. There's a config.sub change as well that I'll submit through the regular process. Thanks, AG For gcc... 2014-07-27 Anthony Green * config.gcc: Add moxie-*-moxiebox* configuration. * config/moxie/moxiebox.h: New file. For libgcc... 2014-07-27

[Patch, moxie] Fix typos

2014-04-04 Thread Anthony Green
This fixes a simple typo in my patch from a couple of days ago. I'm checking it in. 2014-04-04 Anthony Green * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix typos. PR ipa/59626 Index: gcc/config/moxie/mox

[Patch, moxie] Zero- and sign-extend values properly

2014-04-02 Thread Anthony Green
late stage of the GCC release process because it only touches the moxie target directory. AG 2014-04-02 Anthony Green * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2) (extendqisi2, extendhisi2): Define. * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to

Re: [RS6000] libffi little-endian

2013-06-24 Thread Anthony Green
It's fine with me. Please commit it directly to GCC and I'll put it in the upstream. Thanks! AG - Original Message - From: "David Edelsohn" To: "GCC Patches" , libffi-disc...@sourceware.org, "Alan Modra" Sent: Sunday, June 23, 2013 10:32:44 PM Subject: Re: [RS6000] libffi little-en

Re: [ping] Re: [patch] [libffi] do not install libffi library, headers and documentation

2013-03-26 Thread Anthony Green
For what it's worth, this patch is fine by me. I had originally proposed that GCC not install these bits. As far as maintainers go, I thought that I was once listed in the MAINTAINERS file. Feel free to add Andrew Haley and/or myself. Thanks, Anthony Green On Tue, Mar 26, 2013 at 4:

Re: [LIBFFI] Re: Re: [PATCH] Add support for PaX enable kernels (MPROTECT)

2013-02-21 Thread Anthony Green
On Thu, Feb 21, 2013 at 2:22 PM, Dave Korn wrote: > Gcc-patches: Assuming AG approves, can we commit this without waiting for an > upstream libffi release and doing a full merge? Currently GCC HEAD won't > build libffi (and hence libjava) without it. This patch looks fine, thanks. I don't pla

[patch, moxie, testsuite] Fix gcc.dg/tree-ssa/asm-2.c for moxe

2013-01-19 Thread Anthony Green
I'm going to commit this obvious fix for the moxie port. Registers 0 and 1 are the frame and stack pointers so the assembler complains about their usage. 2013-01-19 Anthony Green * gcc.dg/tree-ssa/asm-2.c (REGISTER): Pick an appropriate register for moxie. Index

[patch, moxie] Set current_function_static_stack_size

2013-01-19 Thread Anthony Green
I'm committing this simple change. It fixes a number of test cases... 2013-01-19 Anthony Green * config/moxie/moxie.c (moxie_expand_prologue): Set current_function_static_stack_size. Index: gcc/config/moxie/mo

Re: [Patch, libffi] libffi merge

2012-12-26 Thread Anthony Green
I've committed this patch. Thanks, Anthony Green On Sun, Dec 23, 2012 at 4:37 PM, Anthony Green wrote: > The attached patch is fairly complete merge of the libffi side-stream > git repo. Highlights include aarch64 support, blackfin support, and > additional windows ABI sup

[Patch, moxie] Add -mno-crt0 option

2012-09-21 Thread Anthony Green
This patch adds a -mno-crt0 option, similar to what is found on the mn10300 port. I have checked it in. Thanks, AG 2012-09-21 Anthony Green * config/moxie/moxie.opt: Add -mno-crt0 option. * config/moxie/moxie.h (STARTFILE_SPEC): Handle -mno-crt0 option. * doc

[Patch, moxie] bi-endian support for moxie

2012-09-13 Thread Anthony Green
- apologies in advance if I should have waited for a review). Thanks, Anthony Green 2012-09-13 Anthony Green * config/moxie/moxie.h (LINK_SPEC): Add bi-endian support. (MULTILIB_DEFAULTS): Define. (ASM_SPEC): Define. (BYTES_BIG_ENDIAN, WORDS_BIG_ENDIAN): Add bi

[PATCH, moxie] clean up function prologues

2012-09-07 Thread Anthony Green
The prologue code for functions with large static stack space requirements was really ugly on moxie. This patch cleans things up and I am committing this change. 2012-09-07 Anthony Green * config/moxie/moxie.c (moxie_expand_prologue): Optimize prologue for functions with

[libffi] Restore three commits

2012-03-29 Thread Anthony Green
My merge from a few weeks ago accidentally trampled three patches by Kai Teitz and Eric Botcazou from last month: http://gcc.gnu.org/ml/gcc-patches/2012-02/msg00553.html http://gcc.gnu.org/ml/gcc-patches/2012-02/msg00524.html http://gcc.gnu.org/ml/gcc-patches/2012-02/msg01163.html I've just corre

Re: [patch, libffi] Sync merge libffi

2012-03-04 Thread Anthony Green
On 3/4/2012 10:22 PM, John David Anglin wrote: I'm just wondering why Anthony Green and Redhat are listed as copyright holders. I can understand the Free Software Foundation addition since the file was contributed to it. Simply because of changes that were made to that source file ove

Re: [patch, libffi] Sync merge libffi

2012-03-04 Thread Anthony Green
On 3/4/2012 7:53 PM, Matthias Klose wrote: On 04.03.2012 22:20, Anthony Green wrote: Hello, The attached patch includes changes that have been reviewed, approved and merged into the stand-alone libffi release tree**. ** http://github.com/atgreen/libffi does this correspond to a libffi

[patch, moxie] Fix comparison regression

2011-06-12 Thread Anthony Green
I've just committed this patch. It makes match_operator modeless for moxie comparisons. This fixes a regression introduced in March by this patch: http://gcc.gnu.org/ml/gcc-patches/2011-03/msg01344.html 2011-06-12 Anthony Green * config/moxie/moxie.md (cbranchsi4): Remove mode

[patch, moxie] Use newlib-stdint.h

2011-03-05 Thread Anthony Green
I just checked in the attached patch to use newlib-stdint.h for moxie-elf. This fixes a few newer test cases that use macros like __UINTPTR_TYPE__. AG 2011-03-05 Anthony Green * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile. Index: gcc/config.gcc