[PATCH] Avoid HOST cflags polluting BUILD cflags

2013-11-14 Thread Henderson, Stuart
Hi, I noticed a Canadian cross failure in 4.8 which was down to BUILD_CXXFLAGS being set to ALL_FLAGS even when build != host. Obviously this has only become apparent with 4.8. Thanks, Stu 2013-11-14 Stuart Henderson * configure (BUILD_CXXFLAGS): Set appropriately when build != hos

RE: spill failure after IF-CASE-2 transformation

2012-02-24 Thread Henderson, Stuart
>I think this is a fairly reasonable minimal fix. For 4.8 we could >experiment whether to always do this, regardless of s_r_c_f_m_p. > >Ok if bootstrapped and tested on a primary target (i.e. linux) and >tested on Blackfin. > > >Bernd Thanks again, Bernd. Forwarding to gcc-patches to give people

RE: spill failure after IF-CASE-2 transformation

2012-02-20 Thread Henderson, Stuart
Ping. >>looks like an invalid transformation, but I suspect rather than setting >>the CC register, the (*) insn is setting a pseudo (more accurate RTL >>would be useful). There are some cases in ifcvt.c which check >>targetm.small_register_classes_for_mode already, this is probably what >>should be

Re: [PATCH] Optimize in RTL vector AND { -1, -1, ... }, IOR { -1, -1, ... } and XOR { -1, -1, ... } (take 2)

2011-10-31 Thread Henderson, Stuart
>2011-09-26 Jakub Jelinek > > * rtl.h (const_tiny_rtx): Change into array of 4 x MAX_MACHINE_MODE > from 3 x MAX_MACHINE_MODE. > (CONSTM1_RTX): Define. > * emit-rtl.c (const_tiny_rtx): Change into array of 4 x MAX_MACHINE_MODE > from 3 x MAX_MACHINE_MODE. > (g

RE: [PATCH] Fix PR target/48807

2011-05-26 Thread Henderson, Stuart
Ping Ping. -Original Message- From: gcc-patches-ow...@gcc.gnu.org [mailto:gcc-patches-ow...@gcc.gnu.org] On Behalf Of Henderson, Stuart Sent: 19 May 2011 13:39 To: gcc-patches@gcc.gnu.org Subject: Re: [PATCH] Fix PR target/48807 Ping http://gcc.gnu.org/ml/gcc-patches/2011-05/msg00503

Re: [PATCH] Fix PR target/48807

2011-05-19 Thread Henderson, Stuart
Ping http://gcc.gnu.org/ml/gcc-patches/2011-05/msg00503.html Hi, The attached patch is a fix for PR/48807, which is a segfault when compiling the bfin compiler. The problem appears to be that we're not checking the return value of cgraph_local_info for null before attempting to dereference it.

[PATCH 2/2] Add bf592 support

2011-05-18 Thread Henderson, Stuart
Hi, The attached patch adds a new test for the bfin bf592 part. * gcc.target/bfin/mcpu-bf592.c: New test. Ok to add to trunk? thanks, Stu Index: gcc/testsuite/gcc.target/bfin/mcpu-bf592.c === --- gcc/testsuite/gcc.target

[PATCH 1/2] Add bf592 support

2011-05-18 Thread Henderson, Stuart
Hi, The attached patch adds support for the bfin bf592 part. * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592. * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for bf592-none. * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise. *

[PATCH] Fix PR target/48807

2011-05-06 Thread Henderson, Stuart
Hi, The attached patch is a fix for PR/48807, which is a segfault when compiling the bfin compiler. The problem appears to be that we're not checking the return value of cgraph_local_info for null before attempting to dereference it. This wasn't a problem before, but now cgraph_local_info call

FW: [Patch] New bfin divsi/udivsi implementations

2011-05-03 Thread Henderson, Stuart
Ping --- The attached patch updates the blackfin ___divsi3 and ___udivsi3 implementations (and updates ___umodsi3 to match), as well as adding .size directives to all functions in the file. 2011-03-24 Stuart Henderson * gcc/config/bfin/lib1funcs.asm (___divsi3): New implementation,

FW: [Patch] Update bfin part tests to latest silicon revision

2011-05-03 Thread Henderson, Stuart
Ping --- The attached testsuite patch updates the blackfin part macro tests to expect the latest silicon revision, as well as fixing up some duplication in the bf51x parts. 2011-05-03 Stuart Henderson * gcc.target/bfin/mcpu-bf542.c: Update to latest silicon revision. * gcc.target/bf

FW: [Patch] Update bfin parts to latest silicon revisions

2011-05-03 Thread Henderson, Stuart
Ping --- The attached patch adds support for (and changes defaults to) the latest silicon revisions for Blackfin parts. 2011-05-03 Stuart Henderson * config/bfin/bfin.c (bfin_cpus): Update silicon revisions. Thanks, Stu Index: gcc/config/bfin/bfin.c =

RE: bf54x support

2011-05-03 Thread Henderson, Stuart
sounds good to me. Thanks. Stu -Original Message- From: Bernd Schmidt [mailto:ber...@codesourcery.com] Sent: 03 May 2011 10:40 To: Henderson, Stuart Cc: gcc-patches@gcc.gnu.org Subject: Re: bf54x support On 05/03/2011 11:23 AM, Henderson, Stuart wrote: > ping > > > The at

Re: bf54x support

2011-05-03 Thread Henderson, Stuart
ping The attached patch adds support for silicon revision 0.4 of the bf54x family. 2011-02-17 Mike Frysinger * gcc.target/bfin/mcpu-bf542.c: Check SILICON_REVISION is 0x0004. * gcc.target/bfin/mcpu-bf544.c, gcc.target/bfin/mcpu-bf547.c, gcc.target/bfin/mcpu-bf548.c, gcc.target/bfin

[Patch, committed] Add myself to MAINTAINERS

2011-04-07 Thread Henderson, Stuart
Added myself to MAINTAINERS (write after approval), committed as directed. Stu 2011-04-07 Stuart Henderson * MAINTAINERS (Write After Approval): Add myself. Index: MAINTAINERS === --- MAINTAINERS (revision 172094) +++

[Patch] bfin: addsi3 alterinative for IREGs.

2011-04-04 Thread Henderson, Stuart
This patch adds an IREG alternative to the addsi3 insn. 2011-04-04 Stuart Henderson From Bernd Schmidt * config/bfin/bfin.md (addsi3): Add an alternative for IREGS. Thanks, Stu Index: gcc/config/bfin/bfin.md === --- gc

RE: [Patch] Bfin: Ensure rotrsi and rotlsi don't accept non-const INTVALS

2011-04-04 Thread Henderson, Stuart
Schmidt [mailto:ber...@codesourcery.com] Sent: 31 March 2011 17:02 To: Richard Henderson Cc: Henderson, Stuart; gcc-patches@gcc.gnu.org Subject: Re: [Patch] Bfin: Ensure rotrsi and rotlsi don't accept non-const INTVALS On 03/31/2011 05:42 PM, Richard Henderson wrote: >> (rotate:SI (match

RE: [Patch] bfin: move loop invariants out of loop

2011-04-04 Thread Henderson, Stuart
: 31 March 2011 16:21 To: Henderson, Stuart Cc: gcc-patches@gcc.gnu.org Subject: Re: [Patch] bfin: move loop invariants out of loop On 03/31/2011 04:16 PM, Henderson, Stuart wrote: > The attached patch attempts to move loop invariants out of loops for Blackfin. > > > 2011-03-31 Stuart H

RE: [Patch] bfin: move loop invariants out of loop

2011-03-31 Thread Henderson, Stuart
New version of previous patch. Apologies. Stu -Original Message- From: Henderson, Stuart Sent: 31 March 2011 12:20 To: gcc-patches@gcc.gnu.org Subject: [Patch] bfin: move loop invariants out of loop The attached patch attempts to move loop invariants out of loops for Blackfin. 2011

[Patch] bfin: protect FDPIC reg on function entry

2011-03-31 Thread Henderson, Stuart
The attached patch adds the FDPIC reg to TARGET_EXTRA_LIVE_ON_ENTRY for Blackfin fdpic. 2011-03-31 Stuart Henderson From Jie Zhang *config/bfin/bfin.c (bfin_extra_live_on_entry): New. (TARGET_EXTRA_LIVE_ON_ENTRY): Define. Thanks, Stu upstream.patch Description: upstream.patc

[Patch] bfin: move loop invariants out of loop

2011-03-31 Thread Henderson, Stuart
The attached patch attempts to move loop invariants out of loops for Blackfin. 2011-03-31 Stuart Henderson From Bernd Schmidt * config/bfin/bfin.c (bfin_gen_bundles): Don't try to bundle a jump. (bfin_optimize_loops_1, move_loop_constants): New static functions. (bfin_reorg): Call

RE: [Patch] improve bfin conditional move support

2011-03-31 Thread Henderson, Stuart
_insn2, movcc): Renamed from movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove comments from generated assembly. -Original Message- From: Richard Henderson [mailto:r...@redhat.com] Sent: 30 March 2011 18:29 To: Henderson, Stuart Cc: gcc-patches@gcc.gnu.org Subje

RE: [Patch] Bfin: Ensure rotrsi and rotlsi don't accept non-const INTVALS

2011-03-31 Thread Henderson, Stuart
] Sent: 30 March 2011 18:26 To: Henderson, Stuart Cc: gcc-patches@gcc.gnu.org Subject: Re: [Patch] Bfin: Ensure rotrsi and rotlsi don't accept non-const INTVALS On 03/29/2011 08:49 AM, Henderson, Stuart wrote: >(match_operand:SI 2 "immediate_operand" "&

[Patch] bfin: fix profiling

2011-03-30 Thread Henderson, Stuart
The attached patch allows long jumps to __mcount, defines PROFILE_BEFORE_PROLOGUE and ensures ASM_OUTPUT_REG_PUSH pre-decrements the stack pointer. 2011-03-30 Stuart Henderson From Bernd Schmidt * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into account and sa

[Patch] Bfin: prevent stack checking clobbering P2

2011-03-30 Thread Henderson, Stuart
The attached patch prevents P2 getting clobbered by stack check code. 2011-03-30 Stuart Henderson From Jie Zhang * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2. Thanks, Stu upstream.patch Description: upstream.patch

[Patch] Bfin: Ensure rotrsi and rotlsi don't accept non-const INTVALS

2011-03-29 Thread Henderson, Stuart
The attached patch ensures rotrsi and rotlsi don't accept non-const INTVALS. 2011-03-29 Stuart Henderson From Bernd Schmidt * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything that's not CONST_INT. Thanks, Stu upstream.patch Description: upstream.patch

[Patch] improve bfin conditional move support

2011-03-29 Thread Henderson, Stuart
The attached patch improves conditional move mode support for Blackfin. 2011-03-29 Stuart Henderson From Bernd Schmidt: * config/bfin/bfin.md (MOVCC): New mode_macro. (movcc_insn1, movcc_insn2, movcc): Renamed from movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remov

[Patch] muldi3 for bfin

2011-03-25 Thread Henderson, Stuart
The attached patch adds the muldi3 function for bfin. 2011-03-25 Stuart Henderson From Bernd Schmidt * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart. * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3. * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3

[Patch] New bfin divsi/udivsi implementations

2011-03-24 Thread Henderson, Stuart
The attached patch updates the blackfin ___divsi3 and ___udivsi3 implementations (and updates ___umodsi3 to match), as well as adding .size directives to all functions in the file. 2011-03-24 Stuart Henderson * gcc/config/bfin/lib1funcs.asm (___divsi3): New implementation, add .size

RE: Fix for PR target/47779

2011-03-23 Thread Henderson, Stuart
Thanks. I don't have write permissions. Could someone apply it to trunk/appropriate branches? Stu -Original Message- From: Bernd Schmidt [mailto:ber...@codesourcery.com] Sent: 22 March 2011 16:03 To: Henderson, Stuart Cc: gcc-patches@gcc.gnu.org Subject: Re: Fix for PR target/

[Patch] Ensure libbffastfp overrides libgcc

2011-03-23 Thread Henderson, Stuart
The attached patch ensures libbffastfp overrides libgcc when -mfast-fp is used for bfin-uclinux targets. 2011-03-23 Stuart Henderson From Jie Zhang: * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure libbffastfp overrides libgcc when -mfast-fp. I don't have write permi

[Patch] Update bfin part tests to latest silicon revision

2011-03-23 Thread Henderson, Stuart
The attached testsuite patch updates the blackfin part macro tests to expect the latest silicon revision, as well as fixing up some duplication in the bf51x parts. 2011-03-23 Stuart Henderson * gcc.target/bfin/mcpu-bf542.c: Update to latest silicon revision. * gcc.target/bfin/mcpu-bf

[Patch] Update bfin parts to latest silicon revisions

2011-03-23 Thread Henderson, Stuart
The attached patch adds support for (and changes defaults to) the latest silicon revisions for Blackfin parts. 2011-03-23 Stuart Henderson * config/bfin/bfin.c (bfin_cpus): Update silicon revisions. I don't have write permissions. Thanks, Stu upstream.patch Description: upstream

[Patch] Disable -mfdpic for bfin-uclinux target

2011-03-21 Thread Henderson, Stuart
-mfdpic is not supported for the bfin-uclinux target. this patch defines a macro in the uclinux header and then adds a check to bfin.c if the macro is defined. 2011-03-21 Stuart Henderson Originally from Bernd Schmidt * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.

[Patch] Disable -fstack-limit for bfin -mfdpic

2011-03-17 Thread Henderson, Stuart
-fstack-limit- is not supported for bfin with -mfdpic and crashes if you try to use it. The attached patch warns the user that -fstack-limit is ignored with the -mfdpic switch for Blackfin and then disables it. 2011-03-17 Stuart Henderson Originally From Bernd Schmidt * config/bfin/bfin.

RE: Fix for PR target/47951

2011-03-16 Thread Henderson, Stuart
Bernd Schmidt [mailto:ber...@codesourcery.com] Sent: 15 March 2011 10:02 To: Henderson, Stuart Cc: gcc-patches@gcc.gnu.org Subject: Re: Fix for PR target/47951 On 03/14/2011 01:10 PM, Henderson, Stuart wrote: > Hi, The attached patch is an attempt to fix PR 47951, however I'm > fairly new

Fix for PR target/47951

2011-03-14 Thread Henderson, Stuart
Hi, The attached patch is an attempt to fix PR 47951, however I'm fairly new to GCC and have little confidence in it. I've done some testing with it and it avoids the problem and doesn't appear to cause any new problems, but I'd appreciate more experienced eyes looking over it and giving pointe

bf54x support

2011-03-11 Thread Henderson, Stuart
The attached patch adds support for silicon revision 0.4 of the bf54x family. 2011-02-17 Mike Frysinger * gcc.target/bfin/mcpu-bf542.c: Check SILICON_REVISION is 0x0004. * gcc.target/bfin/mcpu-bf544.c, gcc.target/bfin/mcpu-bf547.c, gcc.target/bfin/mcpu-bf548.c, gcc.target/bfin/mcpu-b