Re: [PATCH 1/7][v2][MSP430][TESTSUITE] Tweak dg-directives for msp430-elf

2018-11-21 Thread Jozef Lawrynowicz
patches as well. Jozef >From be96391838c65b297589ac47ad6347f55ea713c0 Mon Sep 17 00:00:00 2001 From: Jozef Lawrynowicz Date: Thu, 8 Nov 2018 18:55:57 + Subject: [PATCH] [TESTSUITE][MSP430] Tweak dg-directives for msp430-elf 2018-11-21 Jozef Lawrynowicz gcc/ChangeLog: * doc/sourcebu

[PATCH 1/7][v2][MSP430][TESTSUITE] Tweak dg-directives for msp430-elf

2018-11-21 Thread Jozef Lawrynowicz
On Wed, 14 Nov 2018 15:41:00 + Jozef Lawrynowicz wrote: > Patch 1 tweaks dg directives in tests specifically for msp430. Many of > these are extensions to existing target selectors in dg directives. Made some modifications to patch 1 based on suggestions. Added int_eq_float and ptr_e

[TESTSUITE][committed] Amend tests for PR87854 fixes

2018-11-16 Thread Jozef Lawrynowicz
The fix for PR87854 outputs an error when a string literal is too large to compile. This patch adds dg-error directives to tests affected by the new error message. Committed to trunk. >From 6a00590f762be4267f5d8febb375c3192371de2f Mon Sep 17 00:00:00 2001 From: Jozef Lawrynowicz Date: Sat,

Re: [PATCH 3/7][v2][MSP430][TESTSUITE] Dynamically check if size_t is large enough for tests containing large structs/arrays

2018-11-26 Thread Jozef Lawrynowicz
On Mon, 26 Nov 2018 12:20:10 -0800 Mike Stump wrote: > On Nov 21, 2018, at 2:39 PM, Jozef Lawrynowicz > wrote: > > > > On Wed, 14 Nov 2018 15:41:00 + > > Jozef Lawrynowicz wrote: > > > >> Patch 3 sets up require-effective-target directives for t

Re: [PATCH 5/7][MSP430][TESTSUITE] Prune messages about ISO C not supporting __int20 from output of tests

2018-11-26 Thread Jozef Lawrynowicz
On Mon, 26 Nov 2018 12:51:26 -0800 Mike Stump wrote: > On Nov 14, 2018, at 7:56 AM, Jozef Lawrynowicz > wrote: > > > > Patch 5 deals with ISO C errors emitted by tests when the large memory > > model is > > used. size_t and ptrdiff_t are __int20 with -mlarge, a

[committed][PATCH] Fix PR testsuite/89258

2019-02-08 Thread Jozef Lawrynowicz
pr80887.c expects int size to be at least 32-bits, added the corresponding require-effective-target directive. Committed. >From b8a747181ed83adfb0ff5f42ba74f1bc239620d8 Mon Sep 17 00:00:00 2001 From: jozefl Date: Fri, 8 Feb 2019 16:47:28 + Subject: [PATCH] 2019-02-08 Jozef Lawrynow

[PATCH][MSP430][0/4] Reduce code size when performing bit shifts

2019-06-04 Thread Jozef Lawrynowicz
The following series of patches reduces the code size of MSP430 programs that make use of bit shifts. The MSP430 does not have a native instruction for shifting integers, but in some cases the native rotate instruction can be substituted. In other cases, assembly code in libgcc is used to emulate

[PATCH][MSP430][2/4] Emulate 16-bit shifts with rotate insn when src operand is originally in memory

2019-06-04 Thread Jozef Lawrynowicz
ut Ok for trunk? >From e609f63d49227ce385316896dde6a476f5f27db7 Mon Sep 17 00:00:00 2001 From: Jozef Lawrynowicz Date: Mon, 13 May 2019 17:48:00 +0100 Subject: [PATCH 2/4] MSP430: Force the src operand of a HImode shift into a register if it is in memory gcc/ChangeLog 2019-06-04 Jozef La

[PATCH][MSP430][1/4] Put libgcc shift functions in their own sections

2019-06-04 Thread Jozef Lawrynowicz
textdata bss dec hex filename 466 12 22 500 1f4 a.out Ok for trunk? >From 8017a4b453ae1b07bbeb75f7f7613a5bc5605159 Mon Sep 17 00:00:00 2001 From: Jozef Lawrynowicz Date: Mon, 13 May 2019 17:42:08 +0100 Subject: [PATCH 1/4] MSP430: Put the library

[PATCH][MSP430][3/4] Disable performance optimal library code shifts when optimizing for size

2019-06-04 Thread Jozef Lawrynowicz
Mon Sep 17 00:00:00 2001 From: Jozef Lawrynowicz Date: Mon, 13 May 2019 17:52:19 +0100 Subject: [PATCH 3/4] MSP430: Do not use the performance optimized variant of a shift by constant amount when optimizing for size gcc/ChangeLog 2019-06-04 Jozef Lawrynowicz * config/msp430/msp43

[PATCH][MSP430][4/4] Implement 64-bit shifts in assembly code

2019-06-04 Thread Jozef Lawrynowicz
nk? >From 3b34b3d005ea63b37cf6a277395a048e55d854b2 Mon Sep 17 00:00:00 2001 From: Jozef Lawrynowicz Date: Mon, 13 May 2019 17:55:27 +0100 Subject: [PATCH 4/4] MSP430: Implement 64-bit shifts in assembly code gcc/ChangeLog 2019-06-04 Jozef Lawrynowicz * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which

Re: [PATCH][MSP430][4/4] Implement 64-bit shifts in assembly code

2019-06-06 Thread Jozef Lawrynowicz
On Wed, 5 Jun 2019 16:35:14 -0600 Jeff Law wrote: > On 6/4/19 7:17 AM, Jozef Lawrynowicz wrote: > > libgcc/ChangeLog > > > > 2019-06-04 Jozef Lawrynowicz > > > > * config/msp430/slli.S (__mspabi_s): New library function for > > performing

Re: [PATCH][MSP430][4/4] Implement 64-bit shifts in assembly code

2019-06-16 Thread Jozef Lawrynowicz
On Thu, 6 Jun 2019 11:32:49 -0600 Jeff Law wrote: > On 6/6/19 6:42 AM, Jozef Lawrynowicz wrote: > > On Wed, 5 Jun 2019 16:35:14 -0600 > > Jeff Law wrote: > > > >> On 6/4/19 7:17 AM, Jozef Lawrynowicz wrote: > >>> libgcc/ChangeLog

Re: [PATCH][MSP430] Implement alternate "__intN__" form of "__intN" type

2019-06-25 Thread Jozef Lawrynowicz
On Mon, 24 Jun 2019 17:53:48 -0600 Jeff Law wrote: > On 6/24/19 4:25 AM, Jozef Lawrynowicz wrote: > > > > diff --git a/gcc/brig/brig-lang.c b/gcc/brig/brig-lang.c > > index 91c7cfa35da..be853ccbc02 100644 > > --- a/gcc/brig/brig-lang.c > > +++ b/gcc/brig/b

[PATCH][MSP430] Implement alternate "__intN__" form of "__intN" type

2019-06-24 Thread Jozef Lawrynowicz
failed to compile, now too big to link) Ok for trunk? There is a patch to Newlib's "_intsup.h" required to support __int20__ that I will submit to that mailing list before applying this patch, if this patch is accepted. >From 61dfff1b6b3fcaa9f31341ee47623100505bf2e8 Mon Sep 17 00:00:0

Re: [PATCH] Add generic support for "noinit" attribute

2019-07-04 Thread Jozef Lawrynowicz
Hi, > diff --git a/gcc/config/msp430/msp430.c b/gcc/config/msp430/msp430.c > index 365e9eb..8266fa0 100644 > --- a/gcc/config/msp430/msp430.c > +++ b/gcc/config/msp430/msp430.c > @@ -1807,7 +1807,6 @@ const char * const ATTR_CRIT = "critical"; > const char * const ATTR_LOWER = "lower"; >

[PATCH] Perform case-insensitive comparison when decoding register names (PR target/70320)

2019-07-04 Thread Jozef Lawrynowicz
? >From 6275eb1c915b574f415c4adaf241d2d200c42cce Mon Sep 17 00:00:00 2001 From: Jozef Lawrynowicz Date: Thu, 4 Jul 2019 11:25:04 +0100 Subject: [PATCH] Perform case-insensitive comparison when decoding register names gcc/ChangeLog: 2019-07-04 Jozef Lawrynowicz PR target/70320 * varasm

Re: [PATCH] Add generic support for "noinit" attribute

2019-07-04 Thread Jozef Lawrynowicz
On Thu, 4 Jul 2019 17:27:28 +0200 Christophe Lyon wrote: > Finally, I tested on arm-eabi, but not on msp430 for which I do not > have the environment, so advice from msp430 maintainers is > appreciated. Since msp430 does not use the same default helpers as > arm, I left the "noinit" handling

Re: [PATCH] Add generic support for "noinit" attribute

2019-07-05 Thread Jozef Lawrynowicz
On Fri, 5 Jul 2019 11:26:20 +0200 Christophe Lyon wrote: > On Thu, 4 Jul 2019 at 23:46, Jozef Lawrynowicz > wrote: > > > > Also, the gcc.target/arm/noinit-attribute.c test works with msp430. > > Why not create a effective-target keyword which checks for noinit support,

Re: [PATCH] Perform case-insensitive comparison when decoding register names (PR target/70320)

2019-07-10 Thread Jozef Lawrynowicz
On Tue, 9 Jul 2019 16:36:46 -0500 Segher Boessenkool wrote: > On Tue, Jul 09, 2019 at 10:16:31PM +0100, Jozef Lawrynowicz wrote: > > On Mon, 8 Jul 2019 16:42:15 -0500 > > Segher Boessenkool wrote: > > > > > > Ok, yes a DEFHOOKPOD or similar s

Re: [PATCH] Perform case-insensitive comparison when decoding register names (PR target/70320)

2019-07-08 Thread Jozef Lawrynowicz
On Mon, 08 Jul 2019 21:14:36 +0100 Richard Sandiford wrote: > Segher Boessenkool writes: > > On Thu, Jul 04, 2019 at 01:32:59PM +0100, Jozef Lawrynowicz wrote: > >> The attached patch allows the case of register names used in an asm > >> statement > >>

Re: [PATCH] Add generic support for "noinit" attribute

2019-08-12 Thread Jozef Lawrynowicz
Hi, On Tue, 30 Jul 2019 15:35:23 +0200 Christophe Lyon wrote: > Hi, > > Thanks for the useful feedback. > > > On Tue, 16 Jul 2019 at 11:54, Richard Sandiford > wrote: > > > > Thanks for doing this in a generic way. > > > > Christophe Lyon writes: > > > @@ -2224,6 +2234,50 @@

[committed][MSP430] Fix non-GNU style in gcc/config/msp430/*{c,h} files

2019-08-15 Thread Jozef Lawrynowicz
Successfully regtested for msp430-elf. Committed on trunk as obvious. >From 1298708ccd5da89dca906287dad0afb57d00c08b Mon Sep 17 00:00:00 2001 From: jozefl Date: Thu, 15 Aug 2019 12:55:33 + Subject: [PATCH 1/2] 2019-08-15 Jozef Lawrynowicz MSP430: Fix whitespace errors and incorrect indentat

Re: [MSP430][PATCH 1/2] Consolidate handling of hard-coded MCU data

2019-08-13 Thread Jozef Lawrynowicz
On Mon, 12 Aug 2019 14:30:06 -0600 Jeff Law wrote: > On 8/8/19 6:14 AM, Jozef Lawrynowicz wrote: > > This patch improves the handling of MCU data by consolidating multiple > > copies of hard-coded MCU data into a single location, and adds a new > > function > > t

Re: [MSP430][PATCH 2/2] Read MCU data from external file

2019-08-13 Thread Jozef Lawrynowicz
On Mon, 12 Aug 2019 14:34:39 -0600 Jeff Law wrote: > On 8/8/19 6:17 AM, Jozef Lawrynowicz wrote: > > This patch extends the MCU data handling so that MCU data can be provided > > in an external file (devices.csv). This means the compiler doesn't have to > > be > > upd

[PATCH 1/3] Implement TARGET_HANDLE_GENERIC_ATTRIBUTE

2019-08-30 Thread Jozef Lawrynowicz
s the msp430 back end requires additional attribute conflict checking to be performed on these generic attributes. >From e693da709114df378e2ea8b1d3729b105c99a495 Mon Sep 17 00:00:00 2001 From: Jozef Lawrynowicz Date: Wed, 28 Aug 2019 14:09:20 +0100 Subject: [PATCH 1/3] Implement TARGET_HANDLE

[PATCH 0/3] MSP430: Improve attribute handling

2019-08-30 Thread Jozef Lawrynowicz
r ARM. Ok for trunk? Jozef Lawrynowicz (3): Implement TARGET_HANDLE_GENERIC_ATTRIBUTE MSP430: Setup exclusion tables for function and data attributes MSP430: Use default_elf_select_section to determine sections for data where possible gcc/c-family/c-attribs.c | 39 ++-

[PATCH 2/3][MSP430] Setup exclusion tables for function and data attributes

2019-08-30 Thread Jozef Lawrynowicz
rom c6def571a47df5394ca9f5c5c4918f0ffcf97375 Mon Sep 17 00:00:00 2001 From: Jozef Lawrynowicz Date: Wed, 28 Aug 2019 17:44:16 +0100 Subject: [PATCH 2/3] MSP430: Setup exclusion tables for function and data attributes gcc/ChangeLog: 2019-08-29 Jozef Lawrynowicz * config/msp430/msp430.c (msp430_attr): Remove warnings ab

[PATCH 3/3][MSP430] Use default_elf_select_section to select sections for data where possible

2019-08-30 Thread Jozef Lawrynowicz
used for SECCAT_RODATA_MERGE_* sections, to enable the linker to merge constant data. >From 2d2bc7f11b7d5bfc918351a5963b041f69aac673 Mon Sep 17 00:00:00 2001 From: Jozef Lawrynowicz Date: Wed, 28 Aug 2019 17:54:22 +0100 Subject: [PATCH 3/3] MSP430: Use default_elf_select_section to determine

Re: [PATCH 1/3] Implement TARGET_HANDLE_GENERIC_ATTRIBUTE

2019-09-03 Thread Jozef Lawrynowicz
On Tue, 3 Sep 2019 13:37:57 -0600 Jeff Law wrote: > On 8/30/19 4:09 AM, Jozef Lawrynowicz wrote: > > The attached patch adds a new target hook "TARGET_HANDLE_GENERIC_ATTRIBUTE" > > which enables a back end to perform additional processing of an attribute > &g

[PATCH] libgcc/crtstuff.c: Fix incorrect alignment of entries in CRT data structures (PR target/91306)

2019-08-21 Thread Jozef Lawrynowicz
7c829d9a3c8fea9ad5d635 Mon Sep 17 00:00:00 2001 From: Jozef Lawrynowicz Date: Thu, 15 Aug 2019 14:17:25 +0100 Subject: [PATCH] libgcc/crtstuff.c: Fix incorrect alignment of entries in CRT data structures libgcc/ChangeLog: 2019-08-21 Jozef Lawrynowicz * crtstuff.c (__CTOR_LIST__): Ali

[PATCH][MSP430] Don't generate 430X insns when handling data in the lower memory region

2019-09-11 Thread Jozef Lawrynowicz
quot;%X" operand selectors to some insns. One relocation overflow remains (pr65077.c), but that is a separate binutils issue. Ok for trunk? >From 91371f9a2721e1459429ff7ebdb258b2ef063b04 Mon Sep 17 00:00:00 2001 From: Jozef Lawrynowicz Date: Wed, 14 Aug 2019 13:25:03 +0100 Subject: [PATCH]

Re: [PATCH][MSP430] Reject -m{code,data}-region options unless large memory model is selected

2019-07-29 Thread Jozef Lawrynowicz
On Wed, 24 Jul 2019 09:31:11 -0600 Jeff Law wrote: > On 7/23/19 7:22 AM, Jozef Lawrynowicz wrote: > > > > gcc/ChangeLog: > > > > 2019-07-23 Jozef Lawrynowicz > > > > * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors > >

[committed][MSP430] Add "cleanup-saved-temps" directive to gcc.target/msp430/pr80993.c

2019-08-05 Thread Jozef Lawrynowicz
rom a64c89e01c11b167e7113a49914eac79f4c1044c Mon Sep 17 00:00:00 2001 From: jozefl Date: Mon, 5 Aug 2019 14:02:35 + Subject: [PATCH] 2019-08-05 Jozef Lawrynowicz * gcc.target/msp430/pr80993.c: Add cleanup-saved-temps to final actions. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@274116 138bc75d-0d04-0410-9

[MSP430][PATCH 2/2] Read MCU data from external file

2019-08-08 Thread Jozef Lawrynowicz
, as checked by -Wformat-diag. From 6f67cdd282f2351d7450e343314beeaa745f0159 Mon Sep 17 00:00:00 2001 From: Jozef Lawrynowicz Date: Tue, 6 Aug 2019 10:52:54 +0100 Subject: [PATCH 2/2] MSP430: Devices [2]: Read MCU data from external devices.csv file, if it exists gcc/ChangeLog: 2019-08-XX Jozef

[MSP430][PATCH 1/2] Consolidate handling of hard-coded MCU data

2019-08-08 Thread Jozef Lawrynowicz
cd131b07e0447d104c99317e7ac37c2420c1bf6e Mon Sep 17 00:00:00 2001 From: Jozef Lawrynowicz Date: Wed, 31 Jul 2019 22:53:50 +0100 Subject: [PATCH 1/2] MSP430: Devices [1]: Consolidate handling of hard-coded MCU data gcc/ChangeLog: 2019-08-XX Jozef Lawrynowicz * gcc/config.gcc (msp430*-*-*): Add

[MSP430][PATCH 0/2] Improve and extend MCU data handling

2019-08-08 Thread Jozef Lawrynowicz
they are released. Successfully regtested for msp430-elf on trunk. Ok for trunk? Thanks, Jozef Jozef Lawrynowicz (2): MSP430: Devices [1]: Consolidate handling of hard-coded MCU data MSP430: Devices [2]: Read MCU data from external devices.csv file, if it exists gcc/config.gcc

[PATCH][MSP430] Allow lower-case "r" to be used in register names by defining ADDITIONAL_REGISTER_NAMES (PR target/70320)

2019-07-23 Thread Jozef Lawrynowicz
Ok for trunk? >From d639b2ba7d4a93d790bde3ad55df751116eab04b Mon Sep 17 00:00:00 2001 From: Jozef Lawrynowicz Date: Mon, 22 Jul 2019 10:35:43 +0100 Subject: [PATCH] MSP430 additional register gcc/ChangeLog: 2019-07-23 Jozef Lawrynowicz PR target/70320 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.

[PATCH][MSP430] Fix unnecessary saving of all callee-saved regs in an interrupt function that calls another function

2019-07-18 Thread Jozef Lawrynowicz
. Successfully regtested for msp430-elf on trunk for C/C++. Ok for trunk? Thanks, Jozef >From 1e151dac2be34ae50bea8b4b37bd2d78c5f7ddd6 Mon Sep 17 00:00:00 2001 From: Jozef Lawrynowicz Date: Thu, 18 Jul 2019 09:25:52 +0100 Subject: [PATCH] MSP430: Fix unnecessary saving of all callee-saved r

[PATCH] Allow case-insensitive comparisons of register names by implementing CASE_INSENSITIVE_REGISTER_NAMES PR target/70320

2019-07-18 Thread Jozef Lawrynowicz
s defined in the msp430 REGISTER_NAMES macro use an upper case 'R', so use of lower case 'r' gets rejected. Successfully bootstrapped and regtested on trunk for x86_64-pc-linux-gnu, and regtested for msp430-elf. Ok for trunk? >From 82eadcdcbb8914b06818f7c8a10156336518e8d1 Mon Sep 17 00:00:00 2001

Re: [PATCH] Allow case-insensitive comparisons of register names by implementing CASE_INSENSITIVE_REGISTER_NAMES PR target/70320

2019-07-19 Thread Jozef Lawrynowicz
On Fri, 19 Jul 2019 09:31:15 +0100 Richard Sandiford wrote: > Jozef Lawrynowicz writes: > > > > From 82eadcdcbb8914b06818f7c8a10156336518e8d1 Mon Sep 17 00:00:00 2001 > > From: Jozef Lawrynowicz > > Date: Wed, 17 Jul 2019 11:48:23 +0100 >

Re: [PATCH] Allow case-insensitive comparisons of register names by implementing CASE_INSENSITIVE_REGISTER_NAMES PR target/70320

2019-07-19 Thread Jozef Lawrynowicz
On Thu, 18 Jul 2019 16:55:59 -0500 Segher Boessenkool wrote: > Hi! Hi Segher, > > On Thu, Jul 18, 2019 at 08:45:38PM +0100, Jozef Lawrynowicz wrote: > > PR target/70320 > > * doc/tm.texi.in: Document new macro CASE_INSENSITIVE_REGISTER_NAMES. > >

Re: [PATCH] Allow case-insensitive comparisons of register names by implementing CASE_INSENSITIVE_REGISTER_NAMES PR target/70320

2019-07-19 Thread Jozef Lawrynowicz
On Fri, 19 Jul 2019 11:54:43 +0200 Jakub Jelinek wrote: > On Fri, Jul 19, 2019 at 10:39:52AM +0100, Jozef Lawrynowicz wrote: > > > > 2019-07-18 Jozef Lawrynowicz > > > > > > > > PR target/70320 > > >

Re: [PATCH] Allow case-insensitive comparisons of register names by implementing CASE_INSENSITIVE_REGISTER_NAMES PR target/70320

2019-07-19 Thread Jozef Lawrynowicz
On Fri, 19 Jul 2019 12:24:57 +0200 Jakub Jelinek wrote: > On Fri, Jul 19, 2019 at 11:17:51AM +0100, Jozef Lawrynowicz wrote: > > That is something I considered in previous discussion here: > > https://gcc.gnu.org/ml/gcc-patches/2019-07/msg00372.html > > > > Bu

Re: [PATCH] Allow case-insensitive comparisons of register names by implementing CASE_INSENSITIVE_REGISTER_NAMES PR target/70320

2019-07-19 Thread Jozef Lawrynowicz
On Fri, 19 Jul 2019 10:55:59 +0100 Richard Sandiford wrote: > Jozef Lawrynowicz writes: > > On Fri, 19 Jul 2019 09:31:15 +0100 > > Richard Sandiford wrote: > > > >> Jozef Lawrynowicz writes: > >> > > >> > From 82eadcdcbb8914b06818f7c

[PATCH][MSP430] Reject -m{code,data}-region options unless large memory model is selected

2019-07-23 Thread Jozef Lawrynowicz
834e462dd6336f7ccfc Mon Sep 17 00:00:00 2001 From: Jozef Lawrynowicz Date: Mon, 22 Jul 2019 21:37:45 +0100 Subject: [PATCH] MSP430: Disallow mcode/data-region unless the large memory model is in use gcc/ChangeLog: 2019-07-23 Jozef Lawrynowicz * config/msp430/msp430.h (DRIVER_SELF_SPECS): Defin

[committed][MSP430] Only add crtn.o to ENDFILE_SPEC if it exists

2019-07-24 Thread Jozef Lawrynowicz
Sep 17 00:00:00 2001 From: jozefl Date: Wed, 24 Jul 2019 21:08:34 + Subject: [PATCH] 2019-07-24 Jozef Lawrynowicz * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in if-exists. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@273773 138bc75d-0d04-0410-961f-82ee72b054a4 ---

[committed][MSP430] Enable initfini_array by default

2019-07-24 Thread Jozef Lawrynowicz
efl Date: Wed, 24 Jul 2019 21:13:54 + Subject: [PATCH] 2019-07-24 Jozef Lawrynowicz * config.gcc (msp430*-*-*): Enable initfini_array by default unless explicitly disabled with --disable-initfini-array. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@273774 138bc75d-0d04-0410-961f-82ee72b05

[PATCH][TESTSUITE] Add effective target keyword to check for 64-bit long long

2019-06-14 Thread Jozef Lawrynowicz
). The attached patch adds the "longlong64" effective target keyword, which only checks that sizeof(long long) == 8. Ok for trunk? >From b89d7957b2265b1f30166d35685236a3db8752eb Mon Sep 17 00:00:00 2001 From: Jozef Lawrynowicz Date: Fri, 14 Jun 2019 09:54:00 +0100 Subject: [PATCH

Re: [PATCH] Perform case-insensitive comparison when decoding register names (PR target/70320)

2019-07-09 Thread Jozef Lawrynowicz
On Mon, 8 Jul 2019 16:42:15 -0500 Segher Boessenkool wrote: > > Ok, yes a DEFHOOKPOD or similar sounds like a good idea, I'll look into this > > alternative. > > What is that, like target macros? But with some indirection? Yes its for target macros, it looks like the "POD" in DEFHOOKPOD

Re: [PATCH 1/3] libgcc: Add --disable-eh-frame-registry configure option

2019-11-06 Thread Jozef Lawrynowicz
On Wed, 6 Nov 2019 16:16:27 + Jozef Lawrynowicz wrote: > The attached patch enables the EH Frame Registry to be explicitly disabled > with a configure option "-disable-eh-frame-registry", thereby removing code to > support it in crtstuff.c > > Default beh

[PATCH 0/3] libgcc/crtstuff.c tweaks to reduce code size

2019-11-06 Thread Jozef Lawrynowicz
and regtested for x86_64-pc-linx-gnu. Successfully regtested for msp430-elf. Ok to apply? P.S. An MSP430-specific series of patches to make use of the functionality added here will be submitted separately. Jozef Lawrynowicz (3): libgcc: Add --disable-eh-frame-registry configure option libgcc: Dont

[PATCH 3/3] libgcc: Implement TARGET_LIBGCC_REMOVE_DSO_HANDLE

2019-11-06 Thread Jozef Lawrynowicz
dynamic shared objects and so cp/decl.c will create a reference to __dso_handle to facilitate this in programs with static destructors. >From 7bc0971d2936ebe71e7b7d3d805cf1bbf9f9f5af Mon Sep 17 00:00:00 2001 From: Jozef Lawrynowicz Date: Mon, 4 Nov 2019 17:38:13 + Subject: [PATCH 3/3] lib

[PATCH 2/3] libgcc: Dont define __do_global_dtors_aux if it will be empty

2019-11-06 Thread Jozef Lawrynowicz
defined at all if all the above conditions are true. This saves code size in the final linked executable. >From 967262117f0c838fe8a9226484bf6e014c86f0ba Mon Sep 17 00:00:00 2001 From: Jozef Lawrynowicz Date: Tue, 29 Oct 2019 13:02:08 + Subject: [PATCH 2/3] libgcc: Dont define __do_global_dtors_

[PATCH 1/3] libgcc: Add --disable-eh-frame-registry configure option

2019-11-06 Thread Jozef Lawrynowicz
crtstuff.c, and now is only defined to 0 when it would previously have not been defined at all. >From 31fdea3564fd0a9a25547df0d5052133d7bdc8a6 Mon Sep 17 00:00:00 2001 From: Jozef Lawrynowicz Date: Tue, 29 Oct 2019 12:55:11 + Subject: [PATCH 1/3] libgcc: Add --disable-eh-frame-registry configur

[PATCH 4/4] MSP430: Deprecate -minrt option

2019-11-07 Thread Jozef Lawrynowicz
|56 >From 6e561b45c118540f06d5828ec386d2dd79c13b62 Mon Sep 17 00:00:00 2001 From: Jozef Lawrynowicz Date: Wed, 6 Nov 2019 18:12:45 + Subject: [PATCH 4/4] MSP430: Remove -minrt option gcc/ChangeLog: 2019-11-07 Jozef Lawrynowicz * config/msp430/msp430.h (STARTFILE_SPEC): Remove -minrt rules. Use

[PATCH 3/4] MSP430: Disable __cxa_atexit

2019-11-07 Thread Jozef Lawrynowicz
TARGET_LIBGCC_REMOVE_DSO_HANDLE to remove the definition of __dso_handle from crtstuff.c, saving code size by removing the necessity to link in functions to initialize global data in *every* program. >From a0086b73d0e029cab2f65a91e67a2502e4d4 Mon Sep 17 00:00:00 2001 From: Jozef Lawrynowicz Date: Wed, 30 Oct 2019 16:39

[PATCH 0/4][MSP430] Tweaks to default configuration to reduce code size

2019-11-07 Thread Jozef Lawrynowicz
bss dec hex filename 3396 122 23520 dc0 covariant5.exe The writeup for the -minrt patch has some more code size comparisons related to that option. Successfully regtested for msp430-elf. Ok to apply? Jozef Lawrynowicz (4): MSP430: Disable TM clone registry

[PATCH 2/4] MSP430: Disable exception handling by default for C++

2019-11-07 Thread Jozef Lawrynowicz
for these tests (of which there weren't *too* many, I've added -fexceptions to the dg-options directives in the tests. As a result of all the above there aren't any DejaGNU regressions. >From 7844e05172d07443167c3e852cf0b695f043c0eb Mon Sep 17 00:00:00 2001 From: Jozef Lawrynowicz Date: Tue,

[COMMITTED][MSP430][TESTSUITE] Move devices-main.c test source file

2019-10-31 Thread Jozef Lawrynowicz
001 From: jozefl Date: Thu, 31 Oct 2019 17:36:53 + Subject: [PATCH] 2019-10-31 Jozef Lawrynowicz * gcc.target/msp430/devices-main.c: Move to devices subdirectory. * gcc.target/msp430/devices/bad-devices-1.c: Update #include path to devices-main.c. * gcc.target/msp430/devices/bad-devices-

[PATCH][MSP430] Read MCU data from external file specified with environment variable or installed into toolchain subdirectory

2019-11-01 Thread Jozef Lawrynowicz
n extended to ensure these new methods can be tested properly. Successfully regtested on trunk. Ok to apply? >From f781013148c2fd242af8526dbcfa2079fe30db07 Mon Sep 17 00:00:00 2001 From: Jozef Lawrynowicz Date: Wed, 30 Oct 2019 21:10:38 + Subject: [PATCH] MSP430: Read MCU data from

[COMMITTED] Fix incorrect use of USE_TM_CLONE_REGISTRY in crtstuff.c

2019-11-04 Thread Jozef Lawrynowicz
x86-64-pc-linux-gnu. Successfully regtested for msp430-elf. Committed as obvious. >From 47a6db26ddbedccf6a9270718421e54a681868ee Mon Sep 17 00:00:00 2001 From: jozefl Date: Mon, 4 Nov 2019 12:41:56 + Subject: [PATCH] libgcc: Fix incorrect use of USE_TM_CLONE_REGISTRY 2019-11-04 Jozef Lawry

Re: [PATCH 2/4] MSP430: Disable exception handling by default for C++

2019-11-08 Thread Jozef Lawrynowicz
On Fri, 08 Nov 2019 09:07:39 +0900 Oleg Endo wrote: > On Thu, 2019-11-07 at 21:37 +0000, Jozef Lawrynowicz wrote: > > The code size bloat added by building C++ programs using libraries > > containing > > support for exceptions is significant. When using simple construc

Re: [PATCH 0/4][MSP430] Tweaks to default configuration to reduce code size

2019-11-08 Thread Jozef Lawrynowicz
On Fri, 08 Nov 2019 21:14:19 +0900 Oleg Endo wrote: > On Thu, 2019-11-07 at 21:31 +0000, Jozef Lawrynowicz wrote: > > When building small programs for MSP430, the impact of the unused > > functions pulled in from the CRT libraries is quite noticeable. Most of > > these &

[PATCH 1/4] MSP430: Disable TM clone registry by default

2019-11-07 Thread Jozef Lawrynowicz
incompatible with MSP430 given reliance on libitm, lack of thread support without an OS and the memory limitations of the device. >From 9dfc5fde568c5a4cd29471888bff538943a995b1 Mon Sep 17 00:00:00 2001 From: Jozef Lawrynowicz Date: Tue, 29 Oct 2019 14:49:08 + Subject: [PATCH 1/4] MSP430: Disable TM cl

Re: [PATCH 0/4][MSP430] Tweaks to default configuration to reduce code size

2019-11-08 Thread Jozef Lawrynowicz
On Fri, 08 Nov 2019 22:59:18 +0900 Oleg Endo wrote: > On Fri, 2019-11-08 at 13:27 +0000, Jozef Lawrynowicz wrote: > > > > Yes, I should have used -flto in my examples. But it doesn't help remove > > these > > CRT library functions which are normally either dir

Re: [PATCH 2/3] libgcc: Dont define __do_global_dtors_aux if it will be empty

2019-12-09 Thread Jozef Lawrynowicz
recipe for target 'crtbeginT.o' failed > > Cheers, > > Tobias Sorry, I need to change that to defined(USE_EH_FRAME_REGISTRY). Committing shortly. Thanks, Jozef > > On 11/6/19 5:17 PM, Jozef Lawrynowicz wrote: > > __do_global_dtors_aux in crtstuff.c will not do anything m

Re: [PATCH 3/3] libgcc: Implement TARGET_LIBGCC_REMOVE_DSO_HANDLE

2019-12-09 Thread Jozef Lawrynowicz
On Sat, 07 Dec 2019 11:27:54 -0700 Jeff Law wrote: > On Wed, 2019-11-06 at 16:19 +0000, Jozef Lawrynowicz wrote: > > From 7bc0971d2936ebe71e7b7d3d805cf1bbf9f9f5af Mon Sep 17 00:00:00 2001 > > From: Jozef Lawrynowicz > > Date: Mon, 4 Nov 2019 17:38:13 + > >

Re: [PATCH v2][MSP430] Add msp430-elfbare target

2019-12-09 Thread Jozef Lawrynowicz
On Sat, 07 Dec 2019 11:40:33 -0700 Jeff Law wrote: > On Fri, 2019-11-29 at 21:00 +0000, Jozef Lawrynowicz wrote: > > The attached patch consolidates some configuration tweaks I > > previously submitted > > as modifications to the msp430-elf target into a new target calle

Re: [PATCH 3/3] libgcc: Implement TARGET_LIBGCC_REMOVE_DSO_HANDLE

2019-12-11 Thread Jozef Lawrynowicz
On Mon, 9 Dec 2019 13:05:22 + Jozef Lawrynowicz wrote: > On Sat, 07 Dec 2019 11:27:54 -0700 > Jeff Law wrote: > > > On Wed, 2019-11-06 at 16:19 +, Jozef Lawrynowicz wrote: > > > From 7bc0971d2936ebe71e7b7d3d805cf1bbf9f9f5af Mon Sep 17 00:00:00 2001 >

Re: [PATCH v2][MSP430] Add msp430-elfbare target

2019-12-11 Thread Jozef Lawrynowicz
On Wed, 11 Dec 2019 12:19:41 + Jozef Lawrynowicz wrote: > On Mon, 9 Dec 2019 15:28:25 + > Jozef Lawrynowicz wrote: > > > On Sat, 07 Dec 2019 11:40:33 -0700 > > Jeff Law wrote: > > > > > On Fri, 2019-11-29 at 21:00 +, Jozef Lawrynowicz w

Re: [PATCH v2][MSP430] Add msp430-elfbare target

2019-12-11 Thread Jozef Lawrynowicz
On Mon, 9 Dec 2019 15:28:25 + Jozef Lawrynowicz wrote: > On Sat, 07 Dec 2019 11:40:33 -0700 > Jeff Law wrote: > > > On Fri, 2019-11-29 at 21:00 +, Jozef Lawrynowicz wrote: > > > The attached patch consolidates some configuration tweaks I &g

Re: [COMMITTED][MSP430] Fix postinc addressing mode being used for dst operand of CMP insns

2019-12-05 Thread Jozef Lawrynowicz
On Thu, 5 Dec 2019 08:41:48 -0700 Jeff Law wrote: > On 12/5/19 4:32 AM, Jozef Lawrynowicz wrote: > > MSP430 RTL patterns for conditional branch instructions allow the post > > increment addressing mode to be used for the "dest" operand of CMP > > instruct

[PATCH][MSP430] Use 430 insns in the large memory model for more patterns

2019-10-25 Thread Jozef Lawrynowicz
model. Successfully regtested on trunk. Ok to apply? >From ba3a8eafeba08dc034e219f892f2784c16f94c40 Mon Sep 17 00:00:00 2001 From: Jozef Lawrynowicz Date: Thu, 24 Oct 2019 15:17:29 +0100 Subject: [PATCH] MSP430: Use 430 insns in the large memory model for more patterns gcc/ChangeLog: 2019-10

Re: [PATCH] Use narrow mode of constant when expanding widening multiplication

2019-10-21 Thread Jozef Lawrynowicz
On Mon, 21 Oct 2019 08:40:11 +0100 Richard Sandiford wrote: > Jozef Lawrynowicz writes: > > I experienced the following ICE when working on a downstream patch for > > msp430: > > > > void > > foo (unsigned int r, unsigned int y) > > { > > __

[COMMITTED][MSP430] Remove unused msp430_hard_regno_nregs_*_padding functions

2019-10-24 Thread Jozef Lawrynowicz
00:00:00 2001 From: jozefl Date: Thu, 24 Oct 2019 13:36:52 + Subject: [PATCH] MSP430: Remove unused msp430_hard_regno_nregs_*_padding functions 2019-10-24 Jozef Lawrynowicz * config/msp430/msp430.c (msp430_hard_regno_nregs_has_padding): Remove and add comm

[COMMITTED][MSP430] Tweaks to generation of 430X instructions

2019-10-24 Thread Jozef Lawrynowicz
TCH] MSP430: Tweaks to generation of 430X instructions gcc/ChangeLog: 2019-10-24 Jozef Lawrynowicz * config/msp430/constraints.md: Allow post_inc for "Ya" constraint. * config/msp430/msp430.md (430x_shift_left): Use RLAM when the constant shift amount is between 1 and 4. (

[PATCH][MSP430] Add -mtiny-printf option to support reduced code size printf and puts

2019-10-24 Thread Jozef Lawrynowicz
ies the option behaves as expected when GCC is configured with and without --enable-newlib-nano-formatted-io. Ok to apply? [1] https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;a=commit;h=1e6c561d48f >From 4d4e2b6bb92317b2b4db1d99c3f43a167a1e3288 Mon Sep 17 00:00:00 2001 From: Jozef

[COMMITTED][MSP430] Cleanup code in hardware multiply library

2019-10-23 Thread Jozef Lawrynowicz
and applied on trunk as obvious. >From 6f6e061fa292c7afd699294163a67e39732aedec Mon Sep 17 00:00:00 2001 From: jozefl Date: Wed, 23 Oct 2019 16:52:47 + Subject: [PATCH] 2019-10-23 Jozef Lawrynowicz * config/msp430/lib2hw_mul.S: Fix wrong syntax in branch instruction. s/RESULT_LO/RESLO

[PATCH][MSP430] Use hardware multiply routine to perform HImode widening multiplication (mulhisi3)

2019-10-23 Thread Jozef Lawrynowicz
correctly, so running at these optimization levels verifies the changes in this patch. Ok for trunk? >From 695ae0e560396034bc1fc2e9d9e601ab7b3d901b Mon Sep 17 00:00:00 2001 From: Jozef Lawrynowicz Date: Wed, 23 Oct 2019 13:19:45 +0100 Subject: [PATCH] MSP430: Use mspabi helper function to perf

[COMMITTED][MSP430] Fix incorrect determination of hardware multiply support

2019-10-23 Thread Jozef Lawrynowicz
Wed, 23 Oct 2019 16:55:44 + Subject: [PATCH] 2019-10-23 Jozef Lawrynowicz * config/msp430/msp430-protos.h (msp430_has_hwmult): New. * config/msp430/msp430.c (msp430_no_hwmult): Remove. (msp430_has_hwmult): New. (msp430_output_labelref): s/msp430_hwmult_type != MSP430_HWMULT

[PATCH] Use narrow mode of constant when expanding widening multiplication

2019-10-18 Thread Jozef Lawrynowicz
d. This fixes the aforementioned ICE. Successfully bootstrapped and regtested for x86_64-pc-linux-gnu. Successfully regtested for msp430-elf. Ok for trunk? >From b430cddbd257353f162fe3968a447b63cbcaa964 Mon Sep 17 00:00:00 2001 From: Jozef Lawrynowicz Date: Thu, 17 Oct 2019 18:22:01 +0100 Subject: [P

Re: [PATCH 0/2][MSP430] Optimize zero_extend insns and PSImode pointer manipulation

2019-10-15 Thread Jozef Lawrynowicz
On Mon, 14 Oct 2019 15:18:08 -0600 Jeff Law wrote: > On 10/8/19 4:34 AM, Jozef Lawrynowicz wrote: > > In the large memory model, MSP430 instructions have some useful properties > > when > > performing byte, word or address-word writes to registers or memory: > > - Byt

Re: [PATCH 2/2][MSP430] Optimize zero_extend insns and PSImode pointer manipulation

2019-10-15 Thread Jozef Lawrynowicz
On Mon, Oct 14, 2019 at 10:22 PM Jeff Law wrote: > > On 10/8/19 4:39 AM, Jozef Lawrynowicz wrote: > > This patch has the functional changes to optimize zero_extend insns and > > pointer > > manipulation in the large memory model. > > > > > > 0002-MS

Re: [PATCH 1/4] MSP430: Disable TM clone registry by default

2019-11-24 Thread Jozef Lawrynowicz
On Sun, 24 Nov 2019 10:10:51 -0700 Jeff Law wrote: > On 11/24/19 7:20 AM, Jozef Lawrynowicz wrote: > > On Sun, 17 Nov 2019 12:11:23 -0700 > > Jeff Law wrote: > > > >> On 11/7/19 2:34 PM, Jozef Lawrynowicz wrote: > >>> Given that MSP430 is a resou

Re: [PATCH 2/4] MSP430: Disable exception handling by default for C++

2019-11-27 Thread Jozef Lawrynowicz
On Tue, 12 Nov 2019 21:08:48 + Richard Sandiford wrote: > Jozef Lawrynowicz writes: > > diff --git a/gcc/testsuite/lib/gcc-dg.exp b/gcc/testsuite/lib/gcc-dg.exp > > index 1df645e283c..1ce449cb935 100644 > > --- a/gcc/testsuite/lib/gcc-dg.exp > > +++ b/g

[PATCH v2][MSP430] Add msp430-elfbare target

2019-11-29 Thread Jozef Lawrynowicz
.P.S. This requires some minor configury tweaks to Newlib and GDB of the form: - msp430*-*-elf) + msp430-*-elf*) I'll apply these changes if the patch is accepted. >From cff4611855d838315e793d45256de5fc8eeefafe Mon Sep 17 00:00:00 2001 From: Jozef Lawrynowicz Date: Mon, 25 Nov 2019 19:41:05 +

[PATCH v2][MSP430] -Add fno-exceptions multilib

2019-11-27 Thread Jozef Lawrynowicz
, but nothing unexpected. Ok to apply? >From b74f34e5ae7f649296f7f6bcce35b75c34a2b0fd Mon Sep 17 00:00:00 2001 From: Jozef Lawrynowicz Date: Mon, 25 Nov 2019 12:07:24 + Subject: [PATCH] MSP430: Add fno-exceptions multilib ChangeLog: 2019-11-27 Jozef Lawrynowicz * config-ml.in: Support --disa

[COMMITTED] Regenerate gcc/configure

2019-11-04 Thread Jozef Lawrynowicz
s changed, 12 insertions(+), 20 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c1c6d335d04..6f0bd8381a0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2019-11-04 Jozef Lawrynowicz + + * configure: Regenerate. + 2019-11-04 Jozef Lawrynowicz * config/msp430/dr

Re: [PATCH 1/4] MSP430: Disable TM clone registry by default

2019-11-24 Thread Jozef Lawrynowicz
On Sun, 17 Nov 2019 12:11:23 -0700 Jeff Law wrote: > On 11/7/19 2:34 PM, Jozef Lawrynowicz wrote: > > Given that MSP430 is a resource constrained, embedded target disabling > > transactional memory by default is a good idea to save on code size in > > the runtime library.

Re: [PATCH 4/4] MSP430: Deprecate -minrt option

2019-11-24 Thread Jozef Lawrynowicz
On Sun, 17 Nov 2019 14:00:58 -0700 Jeff Law wrote: > On 11/7/19 2:41 PM, Jozef Lawrynowicz wrote: > > Support for the MSP430 -minrt option has been removed from Newlib, since > > all the > > associated behaviour is now dynamic. Initialization code run before main is >

[ping][PATCH][MSP430] Don't generate 430X insns when handling data in the lower memory region

2019-09-25 Thread Jozef Lawrynowicz
ping On Wed, 11 Sep 2019 11:25:58 +0100 Jozef Lawrynowicz wrote: > The MSP430 target has a "430X" extension which increases the directly > addressable memory range from 64KB (16-bit) to 1MB (20-bit). > This 1MB memory range is split into a "lower" region (below

[PATCH][MSP430] Add support for post increment addressing

2019-10-07 Thread Jozef Lawrynowicz
rom: Jozef Lawrynowicz Date: Mon, 16 Sep 2019 16:34:51 +0100 Subject: [PATCH] MSP430: Implement post increment addressing gcc/ChangeLog: 2019-10-07 Jozef Lawrynowicz * config/msp430/constraints.md: Allow post_inc operand for "Ya" constraint. * config/msp430/msp430.c (msp430_legitim

[COMMITTED][MSP430] s/msp_/msp430_/

2019-10-07 Thread Jozef Lawrynowicz
Committed as obvious. >From a7bc2144797a7bc070eeaf01830816f1935a7345 Mon Sep 17 00:00:00 2001 From: jozefl Date: Mon, 7 Oct 2019 20:09:49 + Subject: [PATCH] 2019-10-07 Jozef Lawrynowicz * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/ (msp430_expand_epilogue): Lik

[COMMITTED][MSP430] Move C code for addsi define_split to its own function

2019-10-07 Thread Jozef Lawrynowicz
+ Subject: [PATCH] 2019-10-07 Jozef Lawrynowicz * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype. * config/msp430/msp430.c (msp430_split_addsi): New. * config/msp430/msp430.md: Call msp430_split_addsi () instead of using a block of C code for splitting addsi. git-svn-id

[PATCH 0/2][MSP430] Optimize zero_extend insns and PSImode pointer manipulation

2019-10-08 Thread Jozef Lawrynowicz
ement post increment addressing has been applied: https://gcc.gnu.org/ml/gcc-patches/2019-10/msg00492.html) Successfully regtested on trunk in the small and large memory models. Ok for trunk? Jozef Lawrynowicz (2): MSP430: Reorder and group zero_extend insns in msp430.md MSP430: PSImode pointer m

[PATCH 2/2][MSP430] Optimize zero_extend insns and PSImode pointer manipulation

2019-10-08 Thread Jozef Lawrynowicz
This patch has the functional changes to optimize zero_extend insns and pointer manipulation in the large memory model. >From f8156e115c4743ce94a86835ffa5601b6d28a555 Mon Sep 17 00:00:00 2001 From: Jozef Lawrynowicz Date: Mon, 7 Oct 2019 11:44:16 +0100 Subject: [PATCH 2/2] MSP430: PSIm

[PATCH 1/2][MSP430] Reorder and group zero_extend insns in msp430.md

2019-10-08 Thread Jozef Lawrynowicz
This is an "obvious" mechanical patch which just reorders and groups the zero_extend insns in msp430.md, in preparation for the next functional patch. >From 8810aa7a19569d7e49e898613736d793c43c20a1 Mon Sep 17 00:00:00 2001 From: Jozef Lawrynowicz Date: Mon, 7 Oct 2019 11:24:31

Re: [PATCH 2/2][MSP430] Optimize zero_extend insns and PSImode pointer manipulation

2019-10-09 Thread Jozef Lawrynowicz
Hi Segher! On Wed, 9 Oct 2019 03:47:32 -0500 Segher Boessenkool wrote: > Hi Jozef, > > On Tue, Oct 08, 2019 at 11:39:57AM +0100, Jozef Lawrynowicz wrote: > > +;; > > +;; ZERO EXTEND INSTRUCTIONS > > +;; Byte-writes to registers clear bits 1

Re: [PATCH][MSP430] Add support for post increment addressing

2019-10-14 Thread Jozef Lawrynowicz
On Sun, 13 Oct 2019 10:22:31 -0600 Jeff Law wrote: > On 10/7/19 2:28 PM, Jozef Lawrynowicz wrote: > > MSP430 supports post increment addressing for the source operand only. The > > attached patch enables post increment addressing for MSP430 in GCC. > > > > Regte

<    1   2   3   >