public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jozef Lawrynowicz <jozef.l@mittosystems.com>
To: "gcc-patches@gcc.gnu.org" <gcc-patches@gcc.gnu.org>
Subject: [PATCH 0/3] MSP430: Improve attribute handling
Date: Fri, 30 Aug 2019 10:18:00 -0000	[thread overview]
Message-ID: <20190830110740.731a0ae0@jozef-kubuntu> (raw)

The following series of patches improves the handling of msp430-specific
attributes by making use of generic mechanisms for performing common
tasks (i.e. handling attribute conflicts, putting data objects in sections).

The patches also transition the msp430 back end to fully use the generic
handling of the "noinit" attribute.

Successfully bootstrapped and regtested on x86_64-pc-linux-gnu.
Successfully regtested for msp430-elf.

As a further sanity test I built GCC for arm-eabi and ran
execute.exp=noinit-attribute.c to confirm the noinit attribute still
works as expected for 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 ++-
 gcc/config/msp430/msp430.c                    | 320 ++++++++++++------
 gcc/doc/tm.texi                               |   8 +
 gcc/doc/tm.texi.in                            |   2 +
 gcc/hooks.c                                   |   6 +
 gcc/hooks.h                                   |   1 +
 gcc/target.def                                |  11 +
 .../gcc.target/msp430/data-attributes-2.c     |  51 +++
 .../gcc.target/msp430/function-attributes-4.c |  27 +-
 .../msp430/region-attribute-misuse.c          |   6 +-
 10 files changed, 336 insertions(+), 135 deletions(-)
 create mode 100644 gcc/testsuite/gcc.target/msp430/data-attributes-2.c

             reply	other threads:[~2019-08-30 10:07 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-30 10:18 Jozef Lawrynowicz [this message]
2019-08-30 10:36 ` [PATCH 1/3] Implement TARGET_HANDLE_GENERIC_ATTRIBUTE Jozef Lawrynowicz
2019-09-03 19:38   ` Jeff Law
2019-09-03 21:00     ` Jozef Lawrynowicz
2019-09-03 21:17       ` Jeff Law
2019-08-30 10:45 ` [PATCH 2/3][MSP430] Setup exclusion tables for function and data attributes Jozef Lawrynowicz
2019-09-03 19:39   ` Jeff Law
2019-08-30 10:58 ` [PATCH 3/3][MSP430] Use default_elf_select_section to select sections for data where possible Jozef Lawrynowicz
2019-09-03 19:40   ` Jeff Law

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190830110740.731a0ae0@jozef-kubuntu \
    --to=jozef.l@mittosystems.com \
    --cc=gcc-patches@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).