[Patch, microblaze]: Add __builtin_trap instruction pattern

2013-11-25 Thread David Holsgrove
-26 David Holsgrove * gcc/config/microblaze/microblaze.md: Add trap insn and attribute. ChangeLog testsuite 2013-11-26 David Holsgrove * gcc/testsuite/gcc.target/microblaze/others/builtin-trap.c: New test. 0001-Patch-microblaze-Add-__builtin_trap-instruction-patt.patch Description: Binary data

Re: [Patch, microblaze]: Fix bswaphi2 implementation

2013-11-25 Thread David Holsgrove
Hi Michael, Please find attached same patch based against latest from gcc master. Can this be applied and backported to gcc-4_8-branch when reviewed. thanks, David On 15 July 2013 14:49, David Holsgrove wrote: > MicroBlaze insn swaph swaps the contents of register rA as two > hal

Re: [Patch, microblaze]: Add TARGET_ASM_OUTPUT_MI_THUNK to support varargs thunk

2013-11-25 Thread David Holsgrove
Hi Michael, On 24 July 2013 10:29, David Holsgrove wrote: > On 24 July 2013 10:22, Michael Eager wrote: >> On 07/23/13 16:23, David Holsgrove wrote: >>> >>> On 24 July 2013 07:10, Michael Eager wrote: >>>> >>> Thanks Michael. >>> >&g

Re: [Patch, microblaze]: Fix ICE with mhard-float

2013-11-25 Thread David Holsgrove
Hi Michael, I've attached the same patch based on latest gcc master. Can this be applied to gcc-4_8-branch also. thanks, David On 15 July 2013 14:53, David Holsgrove wrote: > Add SImode to cstoresf4's comparison operator, prevents ICE during combine > rtl pass with error messa

Re: [Patch, microblaze]: Remove SECONDARY_MEMORY_NEEDED

2013-11-25 Thread David Holsgrove
Hi Michael, I've attached patch based on latest gcc master. Please let me know if you need anything further. thanks, David On 15 July 2013 14:44, David Holsgrove wrote: > Hi Michael, > > On 18 March 2013 22:49, David Holsgrove wrote: >> MicroBlaze doesn't have restric

Re: [Patch, microblaze]: Add SIZE_TYPE and PTRDIFF_TYPE to microblaze.h

2013-11-25 Thread David Holsgrove
Hi Michael, I've attached patch based on latest gcc master. Please let me know if you need anything further. thanks, David On 15 July 2013 14:42, David Holsgrove wrote: > > Hi Michael, > > On 18 March 2013 22:50, David Holsgrove wrote: > > Changelog > > &g

Re: [Patch, microblaze]: Branch Compare unroll loops

2013-11-25 Thread David Holsgrove
Hi Michael, I've attached patch based on latest gcc master. Please apply when ready. Changelog 2013-11-26 David Holsgrove * gcc/config/microblaze/predicates.md: Add cmp_op predicate. * gcc/config/microblaze/microblaze.md: Add branch_compare instruction which uses cmp_op predicat

[Patch, microblaze]: Add optimized lshrsi3

2013-11-25 Thread David Holsgrove
Add optimized lshrsi3 instruction, to be used when optimizing for size with immediate values over 5 Changelog 2013-11-26 Nagaraju Mekala * gcc/config/microblaze/microblaze.md: Add size optimized lshrsi3 insn. 0008-Patch-microblaze-Add-optimized-lshrsi3.patch Description: Binary data

[Patch, microblaze]: Added load and store reverse patterns

2013-11-25 Thread David Holsgrove
Added the lwr/swr instructions pattern. lwr and swr instructions will load/store the data with opposite endianness. Changelog 2013-11-26 Nagaraju Mekala * gcc/config/microblaze/microblaze.md: Add movsi4_rev insn pattern. * gcc/config/microblaze/predicates.md: Add reg_or_mem_operand predicate

[Patch, microblaze]: Correct names of shift instructions

2013-11-25 Thread David Holsgrove
Existing MicroBlaze shift instruction pattern names don't match surrounding format. ashlri_reg should be ashrsi_reg - arithmetic shift right for SI mode lshlri_reg should be lshrsi_reg - logical shift right for SI mode Changelog 2013-11-26 David Holsgrove * gcc/config/micro

[Patch, microblaze]: Extended mcpu version format

2013-11-25 Thread David Holsgrove
MicroBlaze currently only supports mcpu version of format vX.YY.Z This patch extends the mcpu version format to include; vX.YY.Z vXX.YY.Z vXX.YY vX.YY.Z Changelog 2013-11-26 Nagaraju Mekala * gcc/config/microblaze/microblaze.c: Extend mcpu version format. 0010-Patch-microblaze-Extende

RE: [Patch, microblaze]: Add TARGET_ASM_OUTPUT_MI_THUNK to support varargs thunk

2013-07-14 Thread David Holsgrove
Hi Michael, > -Original Message- > From: Michael Eager [mailto:ea...@eagerm.com] > Sent: Saturday, 13 July 2013 9:33 am > To: David Holsgrove > Cc: gcc-patches@gcc.gnu.org; Edgar Iglesias; John Williams; Vinod Kathail; > Vidhumouli Hunsigida; Nagaraju Mekala; Tom

Re: [Patch, microblaze]: Add SIZE_TYPE and PTRDIFF_TYPE to microblaze.h

2013-07-14 Thread David Holsgrove
Hi Michael, On 18 March 2013 22:50, David Holsgrove wrote: > Changelog > > 2013-03-18 David Holsgrove > > * gcc/config/microblaze/microblaze.h: Define SIZE_TYPE >and PTRDIFF_TYPE. > > Signed-off-by: David Holsgrove > This patch remains the same, please review when ready. thanks, David

Re: [Patch, microblaze]: Add atomic builtin implementation

2013-07-14 Thread David Holsgrove
Hi Michael, On 21 March 2013 03:00, Richard Henderson wrote: > On 03/18/2013 05:48 AM, David Holsgrove wrote: >> * gcc/config/microblaze/sync.md: New file. >> * gcc/config/microblaze/microblaze.md: Add UNSPEC_SYNC_CAS, >>UNSPEC_SYNC_XCHG and include sync.md. >&g

Re: [Patch, microblaze]: Remove SECONDARY_MEMORY_NEEDED

2013-07-14 Thread David Holsgrove
Hi Michael, On 18 March 2013 22:49, David Holsgrove wrote: > MicroBlaze doesn't have restrictions that would force us to > reload regs via memory. Don't define SECONDARY_MEMORY_NEEDED. > Fixes an ICE when compiling OpenSSL for linux. > > Changelog > > 2013-03-18

Re: [Patch, microblaze]: Extend jump insn to accept bri to SYMBOL_REFS

2013-07-14 Thread David Holsgrove
Hi Michael, On 18 March 2013 22:52, David Holsgrove wrote: > Changelog > > 2013-03-18 David Holsgrove > > * gcc/config/microblaze/microblaze.md (jump): >Account for jumps to SYMBOL_REFs. > > Signed-off-by: David Holsgrove > Disregard - patch no longer desired. thanks, David

Re: [Patch, microblaze]: Add -fstack-usage support

2013-07-14 Thread David Holsgrove
Hi Michael, On 18 March 2013 22:48, David Holsgrove wrote: > Changelog > > 2013-03-18 David Holsgrove > > * gcc/config/microblaze/microblaze.c (microblaze_expand_prologue): >Add check for flag_stack_usage to handle -fstack-usage support > > Signed-off-by: David Hol

[Patch, microblaze]: Fix bswaphi2 implementation

2013-07-14 Thread David Holsgrove
] (rD)[24:31] <- (rA)[16:23] (rD)[16:23] <- (rA)[24:31] Correct the microblaze bswaphi2 insn pattern to be a swapb followed by swaph Changelog entry would be: 2013-07-15 David Holsgrove * gcc/config/microblaze/microblaze.md: Fix bswaphi2 Can this also be backported to the gcc-4_8-bran

[Patch, microblaze]: Fix ICE with mhard-float

2013-07-14 Thread David Holsgrove
ns to accommodate unordered as necessary. Changelog entry; 2013-07-15 David Holsgrove * gcc/config/microblaze/microblaze.md: Fix cstoresf4 and cbranchsf4 Can this be backported to gcc-4_8-branch also? thanks, David 0003-Patch-microblaze-cstoresf4-add-mode-and-ordered_comp.patch Descri

[Patch, microblaze]: Branch Compare unroll loops

2013-07-14 Thread David Holsgrove
07-15 David Holsgrove * gcc/config/microblaze/predicates.md: Add cmp_op predicate. * gcc/config/microblaze/microblaze.md: Add branch_compare instruction which uses cmp_op predicate and emits cmp insn before branch. * gcc/config/microblaze/microblaze.c (microblaze_emit_compare): Rena

Re: [Patch, microblaze]: Add -fstack-usage support

2013-07-18 Thread David Holsgrove
On 19 July 2013 02:42, Michael Eager wrote: > On 03/18/13 05:48, David Holsgrove wrote: >> >> Changelog >> >> 2013-03-18 David Holsgrove >> >> * gcc/config/microblaze/microblaze.c (microblaze_expand_prologue): >> Add check for flag_stack_usage

Re: [Patch, microblaze]: Add -fstack-usage support

2013-07-22 Thread David Holsgrove
Hi Eric / Chung-Ju, On 21 July 2013 01:33, Chung-Ju Wu wrote: > On 7/20/13 4:14 PM, Eric Botcazou wrote: >>>> >>>> 2013-03-18 David Holsgrove >>>> >>>> * gcc/config/microblaze/microblaze.c (microblaze_expand_prologue): >>>>

Re: [Patch, microblaze]: Add TARGET_ASM_OUTPUT_MI_THUNK to support varargs thunk

2013-07-23 Thread David Holsgrove
On 24 July 2013 07:10, Michael Eager wrote: > On 07/14/13 21:37, David Holsgrove wrote: >> >> Hi Michael, >> >>> -Original Message- >>> From: Michael Eager [mailto:ea...@eagerm.com] >>> Sent: Saturday, 13 July 2013 9:33 am >>> T

Re: [Patch, microblaze]: Add TARGET_ASM_OUTPUT_MI_THUNK to support varargs thunk

2013-07-23 Thread David Holsgrove
On 24 July 2013 10:22, Michael Eager wrote: > On 07/23/13 16:23, David Holsgrove wrote: >> >> On 24 July 2013 07:10, Michael Eager wrote: >>> >> Thanks Michael. >> >> I think the content of your commit doesnt line up with this Changelog >> entry

RE: [Patch, microblaze]: Add support for swap instructions and reorder option

2013-02-27 Thread David Holsgrove
Hi Michael, Thanks for the review, please find comments inline below. > -Original Message- > From: Michael Eager [mailto:ea...@eagerm.com] > Sent: Wednesday, 27 February 2013 3:50 am > To: David Holsgrove > Cc: gcc-patches@gcc.gnu.org; Michael Eager (ea...@eagercon.com);

RE: [Patch, microblaze]: Add support for swap instructions and reorder option

2013-02-27 Thread David Holsgrove
> -Original Message- > From: Michael Eager [mailto:ea...@eagercon.com] > Sent: Thursday, 28 February 2013 3:06 am > To: David Holsgrove > Cc: Michael Eager; gcc-patches@gcc.gnu.org; John Williams; Edgar E. Iglesias > (edgar.igles...@gmail.com); Vinod Kathail; Vi

RE: [Patch, microblaze]: Add support for swap instructions and reorder option

2013-03-05 Thread David Holsgrove
Hi Michal, > -Original Message- > From: Michael Eager [mailto:ea...@eagerm.com] > Sent: Monday, 4 March 2013 3:37 am > To: David Holsgrove > Cc: Michael Eager; gcc-patches@gcc.gnu.org; John Williams; Edgar E. Iglesias > (edgar.igles...@gmail.com); Vinod Kathail; Vi

RE: [Patch, microblaze]: Added fast_interrupt controller

2013-03-05 Thread David Holsgrove
Hi Michael, > -Original Message- > From: Michael Eager [mailto:ea...@eagerm.com] > Sent: Wednesday, 27 February 2013 4:12 am > To: David Holsgrove > Cc: gcc-patches@gcc.gnu.org; Michael Eager (ea...@eagercon.com); John > Williams; Edgar E. Iglesias (edgar.igles...

[Patch, microblaze]: Add support for TLS in MicroBlaze

2013-03-12 Thread David Holsgrove
Add support for thread local storage (general dynamic and local dynamic models) in MicroBlaze. gcc/Changelog 2013-03-13 Edgar E. Iglesias David Holsgrove * config/microblaze/microblaze-protos.h: (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p

[Patch, microblaze]: Add MicroBlaze TLS configure support

2013-03-12 Thread David Holsgrove
Add test for MicroBlaze TLS support to gcc/configure.ac gcc/Changelog 2013-03-13 Edgar E. Iglesias David Holsgrove * configure.ac: Add MicroBlaze TLS support detection. * configure: Regenerate. Signed-off-by: Edgar E. Iglesias Signed-off-by: David Holsgrove 0002-Patch

RE: [Patch, microblaze]: Add support for TLS in MicroBlaze

2013-03-14 Thread David Holsgrove
Hi Michael, > -Original Message- > From: Michael Eager [mailto:ea...@eagerm.com] > Sent: Thursday, 14 March 2013 1:34 am > To: David Holsgrove > Cc: gcc-patches@gcc.gnu.org; Edgar Iglesias; John Williams; Vinod Kathail; > Vidhumouli Hunsigida; Nagaraju Mekala; Tom

[Patch, microblaze]: Add -fstack-usage support

2013-03-18 Thread David Holsgrove
Changelog 2013-03-18 David Holsgrove * gcc/config/microblaze/microblaze.c (microblaze_expand_prologue): Add check for flag_stack_usage to handle -fstack-usage support Signed-off-by: David Holsgrove 0004-Patch-microblaze-Add-fstack-usage-support.patch Description: 0004-Patch-microblaze

[Patch, microblaze]: Enable DWARF exception handling support

2013-03-18 Thread David Holsgrove
Add DWARF exception handling support for MicroBlaze. Changelog 2013-03-18 Edgar E. Iglesias David Holsgrove * common/config/microblaze/microblaze-common.c: Remove TARGET_EXCEPT_UNWIND_INFO definition. * config/microblaze/microblaze-protos.h: Add microblaze_eh_return

[Patch, microblaze]: Add atomic builtin implementation

2013-03-18 Thread David Holsgrove
Add sync_compare_and_swapsi and sync_test_and_setsi implementations for MicroBlaze. Changelog 2013-03-18 David Holsgrove * gcc/config/microblaze/sync.md: New file. * gcc/config/microblaze/microblaze.md: Add UNSPEC_SYNC_CAS, UNSPEC_SYNC_XCHG and include sync.md. * gcc/config/microblaze

[Patch, microblaze]: Add TARGET_ASM_OUTPUT_MI_THUNK to support varargs thunk

2013-03-18 Thread David Holsgrove
Changelog 2013-03-18 David Holsgrove * gcc/config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk and define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK Signed-off-by: David Holsgrove 0003-Patch-microblaze-Add-TARGET_ASM_OUTPUT_MI_THUNK-to-s.patch

[Patch, microblaze]: Remove SECONDARY_MEMORY_NEEDED

2013-03-18 Thread David Holsgrove
MicroBlaze doesn't have restrictions that would force us to reload regs via memory. Don't define SECONDARY_MEMORY_NEEDED. Fixes an ICE when compiling OpenSSL for linux. Changelog 2013-03-18 Edgar E. Iglesias * gcc/config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED definition.

[Patch, microblaze]: Add SIZE_TYPE and PTRDIFF_TYPE to microblaze.h

2013-03-18 Thread David Holsgrove
Changelog 2013-03-18 David Holsgrove * gcc/config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE. Signed-off-by: David Holsgrove 0006-Patch-microblaze-Add-SIZE_TYPE-and-PTRDIFF_TYPE-to-m.patch Description: 0006-Patch-microblaze-Add-SIZE_TYPE-and-PTRDIFF_TYPE-to-m.patch

[Patch, microblaze]: Extend jump insn to accept bri to SYMBOL_REFS

2013-03-18 Thread David Holsgrove
Changelog 2013-03-18 David Holsgrove * gcc/config/microblaze/microblaze.md (jump): Account for jumps to SYMBOL_REFs. Signed-off-by: David Holsgrove 0007-Patch-microblaze-Extend-jump-insn-to-accept-bri-to-S.patch Description: 0007-Patch-microblaze-Extend-jump-insn-to-accept-bri-to

RE: [Patch, microblaze]: Enable DWARF exception handling support

2013-03-19 Thread David Holsgrove
> -Original Message- > From: Michael Eager [mailto:ea...@eagerm.com] > Sent: Wednesday, 20 March 2013 3:05 am > To: David Holsgrove > Cc: gcc-patches@gcc.gnu.org; Edgar Iglesias; John Williams; Vinod Kathail; > Vidhumouli Hunsigida; Nagaraju Mekala; Tom Shui >

RE: [Patch, microblaze]: Remove SECONDARY_MEMORY_NEEDED

2014-01-21 Thread David Holsgrove
Hi Michael, > -Original Message- > From: Michael Eager [mailto:ea...@eagerm.com] > Sent: Friday, 17 January 2014 4:44 am > To: David Holsgrove; gcc-patches@gcc.gnu.org > Cc: Edgar Iglesias; John Williams; Vidhumouli Hunsigida; Nagaraju Mekala > Subject: Re: [Patch, m

RE: [Patch, microblaze]: Fix ICE with mhard-float

2014-01-21 Thread David Holsgrove
> -Original Message- > From: Michael Eager [mailto:ea...@eagerm.com] > Sent: Friday, 17 January 2014 4:36 am > To: David Holsgrove; gcc-patches@gcc.gnu.org > Cc: Edgar Iglesias; John Williams; Vidhumouli Hunsigida; Nagaraju Mekala > Subject: Re: [Patch, microblaze]:

Re: [Patch, microblaze]: Fix ICE with mhard-float

2014-01-22 Thread David Holsgrove
Hi Michael, On 22 January 2014 13:43, David Holsgrove wrote: >> -Original Message- >> From: Michael Eager [mailto:ea...@eagerm.com] >> Sent: Friday, 17 January 2014 4:36 am >> To: David Holsgrove; gcc-patches@gcc.gnu.org >> Cc: Edgar Iglesias; John

Re: [Patch, microblaze]: Fix bswaphi2 implementation

2014-01-22 Thread David Holsgrove
Hi Michael, On 26 November 2013 17:48, David Holsgrove wrote: > Hi Michael, > > Please find attached same patch based against latest from gcc master. > > Can this be applied and backported to gcc-4_8-branch when reviewed. > > thanks, > David > > On 15 July 2013

RE: [Patch, microblaze]: Add optimized lshrsi3

2014-02-13 Thread David Holsgrove
Hi Michael, > -Original Message- > From: Michael Eager [mailto:ea...@eagerm.com] > Sent: Sunday, 9 February 2014 2:58 am > To: David Holsgrove; gcc-patches@gcc.gnu.org > Cc: Edgar Iglesias; John Williams; Vidhumouli Hunsigida; Nagaraju Mekala > Subject: Re: [Patch

RE: [Patch, microblaze]: Remove SECONDARY_MEMORY_NEEDED

2014-02-13 Thread David Holsgrove
Hi Michael, List, > -Original Message- > From: David Holsgrove > Sent: Wednesday, 22 January 2014 1:43 pm > To: 'Michael Eager'; gcc-patches@gcc.gnu.org > Cc: Edgar Iglesias; John Williams; Vidhumouli Hunsigida; Nagaraju Mekala > Subject: RE:

RE: [Patch, microblaze]: Add TARGET_ASM_OUTPUT_MI_THUNK to support varargs thunk

2014-02-13 Thread David Holsgrove
Hi Michael, > -Original Message- > From: Michael Eager [mailto:ea...@eagerm.com] > Sent: Sunday, 26 January 2014 1:57 am > To: David Holsgrove > Cc: gcc-patches@gcc.gnu.org; Edgar Iglesias; John Williams; Vinod Kathail; > Vidhumouli Hunsigida; Nagaraju Mekala; Tom

[Patch, testsuite]: Add MicroBlaze pattern for dg-function-on-line

2014-02-13 Thread David Holsgrove
Hi, Attached patch adds a MicroBlaze specific pattern for checking line number and generation of function in dg-function-on-line, in line with the mips method. Changelog/testsuite 2014-02-13 David Holsgrove * gcc/testsuite/lib/scanasm.exp (dg-function-on-line): Add MicroBlaze specific

[Patch, testsuite]: Allow MicroBlaze .weakext pattern in regex match

2014-02-13 Thread David Holsgrove
sure if it's appropriate to modify the scan-assembler line in this fashion for a specific architecture's pattern? ChangeLog/testsuite 2014-02-14 David Holsgrove * gcc/testsuite/g++.dg/abi/rtti3.C: Extend scan-assembler pattern to take optional ext after .weak. * gcc/tests

RE: [Patch, testsuite]: Allow MicroBlaze .weakext pattern in regex match

2014-02-16 Thread David Holsgrove
Hi Mike, > -Original Message- > From: Mike Stump [mailto:mikest...@comcast.net] > Sent: Friday, 14 February 2014 6:01 pm > To: David Holsgrove > Cc: gcc-patches@gcc.gnu.org; Michael Eager (ea...@eagerm.com); Vidhumouli > Hunsigida; Nagaraju Mekala; John Williams; Edgar

RE: [Patch, testsuite]: Allow MicroBlaze .weakext pattern in regex match

2014-02-26 Thread David Holsgrove
Hi Mike S., Michael E., > -Original Message- > From: Mike Stump [mailto:mikest...@comcast.net] > Sent: Friday, 21 February 2014 6:17 am > To: David Holsgrove > Cc: gcc-patches@gcc.gnu.org; Michael Eager (ea...@eagerm.com); Vidhumouli > Hunsigida; Nagaraju Mekala; Jo

[Patch, microblaze]: Add microblaze*-*-elf target

2013-01-20 Thread David Holsgrove
gcc/Changelog 2013-01-21 Edgar E. Iglesias * config.gcc (microblaze*-*-elf): Add new target libgcc/Changelog 2013-01-21 Edgar E. Iglesias * config.host (microblaze*-*-elf): Add new target 0002-Add-microblaze-elf-target.patch Description: Binary data

[Patch, microblaze]: PR54662 - microblaze-linux target makefile

2013-01-20 Thread David Holsgrove
gcc/Changelog 2013-01-21 David Holsgrove * config.gcc (microblaze*-linux*): Add tmake_file to allow building of microblaze-c.o libgcc/Changelog 2013-01-21 David Holsgrove * libgcc/config/microblaze/t-microblaze: Set LIB2FUNCS_EXCLUDE to exclude

[Patch, microblaze, testsuite] Remove check for target_config_cflags

2013-01-20 Thread David Holsgrove
gelog: 2013-01-21 David Holsgrove * gcc.target/microblaze/microblaze.exp: Remove target_config_cflags check 0001-Remove-obsolete-check-for-target_config_cflags-no-lo.patch Description: Binary data

[Patch, microblaze]: Add TARGET_OS_CPP_BUILTINS for microblaze*-linux

2013-01-20 Thread David Holsgrove
gcc/Changelog 2013-01-21 Edgar E. Iglesias * gcc/config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS 0004-Add-TARGET_OS_CPP_BUILTINS-for-microblaze-linux.patch Description: Binary data

[Patch, microblaze]: Add MicroBlaze Little Endian Support

2013-01-20 Thread David Holsgrove
gcc/Changelog 2013-01-21 Edgar E. Iglesias * gcc/config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT gcc/config.gcc (microblaze*-*-elf): Likewise gcc/config.gcc (microblaze*-*-*): Likewise * gcc/config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to LINK_SPEC *

Re: [Patch, microblaze]: PR54662 - microblaze-linux target makefile

2013-01-23 Thread David Holsgrove
Hi Michael, On 24 January 2013 01:07, Michael Eager wrote: > On 01/20/2013 09:46 PM, David Holsgrove wrote: >> >> gcc/Changelog >> >> 2013-01-21 David Holsgrove >> >> * config.gcc (microblaze*-linux*): Add tmake_file to allow >> building

Re: [Patch, microblaze]: Add microblaze*-*-elf target

2013-01-23 Thread David Holsgrove
Hi Michael, On 24 January 2013 00:58, Michael Eager wrote: > On 01/20/2013 09:42 PM, David Holsgrove wrote: >> >> gcc/Changelog >> >> 2013-01-21 Edgar E. Iglesias >> >> * config.gcc (microblaze*-*-elf): Add new target >> >> l

Re: [Patch, microblaze]: Add microblaze*-*-elf target

2013-01-24 Thread David Holsgrove
On 25 January 2013 01:38, Michael Eager wrote: > On 01/23/2013 08:24 PM, David Holsgrove wrote: >> >> Hi Michael, >> >> On 24 January 2013 00:58, Michael Eager wrote: >>> >>> On 01/20/2013 09:42 PM, David Holsgrove wrote: >>>> >&g

Re: [Patch, microblaze]: Add MicroBlaze Little Endian Support

2013-01-24 Thread David Holsgrove
Hi Michael, Please find attached updated patch for MicroBlaze Little Endian support to reflect removal of microblaze*-*-* target. Changelog updated as follows. thanks, David gcc/Changelog 2013-01-25 Edgar E. Iglesias * gcc/config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT gc

[Patch, microblaze]: Add support for nested functions

2013-02-10 Thread David Holsgrove
Add MicroBlaze support for nested functions. Changelog 2013-02-11 Edgar E. Iglesias * config/microblaze/microblaze.c (microblaze_asm_trampoline_template): Replace with a microblaze version. (microblaze_trampoline_init): Adapt for microblaze. * config/microblaze/microblaze.h (TRA

[Patch, microblaze]: Add TARGET_SUPPORTS_PIC check

2013-02-10 Thread David Holsgrove
Add TARGET_SUPPORTS_PIC flag and check that the flag_pic = 2 Changelog 2013-02-11 Edgar E. Iglesias * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1. * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1. * config/microblaze/microblaze.c (microblaze_option_overr

[Patch, microblaze]: Free variable local allocs at block ends

2013-02-10 Thread David Holsgrove
Free variable local allocs at block ends. Changelog 2013-02-11 Edgar E. Iglesias * config/microblaze/microblaze.md (save_stack_block): Define. (restore_stack_block): Likewise. 0003-gcc-microblaze-Free-variable-local-allocs-at-block-e.patch Description: 0003-gcc-microblaze-Free-varia

[Patch, microblaze]: Handle 0x80000000 as 32bit signed dividend

2013-02-10 Thread David Holsgrove
Handle 0x8000 as 32bit signed dividend Changelog 2013-02-11 Edgar E. Iglesias * config/microblaze/modsi3.S (modsi3): Fix case with 0x8000 as dividend. 0004-libgcc-microblaze-Handle-0x8000-as-32bit-signed-.patch Description: 0004-libgcc-microblaze-Handle-0x8000-as-32bit-

[Patch, microblaze]: Avoid PC relative branches between sections

2013-02-10 Thread David Holsgrove
Avoid PC relative branches between sections by further checking that the symbol we are calling is declared as a function before using PC relative calls. Changelog 2013-02-11 Edgar E. Iglesias * config/microblaze/microblaze.md (call_value_intern): Check symbol is function before branching

[Patch, microblaze]: Add support for the CLZ insn

2013-02-10 Thread David Holsgrove
Add support for the CLZ insn Will be used if pattern-compare is enabled and the targeted core is newer than v8.10.a. Changelog 2013-02-11 Edgar E. Iglesias * config/microblaze/microblaze.c: microblaze_has_clz = 0 Add version check for v8.10.a to enable microblaze_has_clz * config/mic

[Patch, microblaze]: Add support for swap instructions and reorder option

2013-02-10 Thread David Holsgrove
ces warning and ignored mcpu == 8.30a and -mxl-pattern-compare specified; and if -mno-xl-reorder not specified, then swap insns allowed mcpu > 8.30a; if -mno-xl-reorder not specified, then swap insns allowed Changelog 2013-02-11 David Holsgrove * config/microblaze/microb

[Patch, microblaze]: Added fast_interrupt controller

2013-02-10 Thread David Holsgrove
Added fast_interrupt controller Changelog 2013-02-11 Nagaraju Mekala * config/microblaze/microblaze-protos.h: microblaze_is_fast_interrupt. * config/microblaze/microblaze.c (microblaze_attribute_table): Add microblaze_is_fast_interrupt. (microblaze_fast_interrupt_function_p): New

[Patch, microblaze]: Adjustments to pcmp instruction generation

2013-02-10 Thread David Holsgrove
Adjustments to pcmp instruction generation avoid pcmpe insns when not valuable For pure in and equality comparisions, xor is better, Xor is a one cycle insn as pcmp. Pattern insns will still be used when you need to conditionally set something to one or zero, e.g if (a) return 1; else retur

[Patch, microblaze]: Setup stack protection at entry.

2013-02-10 Thread David Holsgrove
Setup stack protection at entry. libgcc/Changelog 2013-02-11 Edgar E. Iglesias * config/microblaze/crti.S: Setup stack protection at entry 0010-microblaze-Setup-stack-protection-at-entry.patch Description: 0010-microblaze-Setup-stack-protection-at-entry.patch

[Patch, microblaze]: Add microblaze_legitimate_pic_operand method

2013-02-10 Thread David Holsgrove
Add microblaze_legitimate_pic_operand method Prevents ICE where insn contains an invalid address Changelog 2013-02-11 David Holsgrove * config/microblaze/microblaze.c (microblaze_valid_pic_const): New function (microblaze_legitimate_pic_operand): Likewise * config/microblaze

[Patch, microblaze]: Dont allow unsupported target rtx into call_internal1

2013-02-10 Thread David Holsgrove
Dont allow unsupported target rtx into call_internal1 Fix it by adding a simplified call_insn_operand, call_insn_simple_operand that only accepts the supported rtx code types. Changelog 2013-02-11 Edgar E. Iglesias * config/microblaze/predicates.md (call_insn_simple_operand): New predi