public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Martin Liška" <mliska@suse.cz>
To: gcc-patches@gcc.gnu.org
Subject: Re: [PATCH] Add limit for maximal alignment options (PR c/84310).
Date: Tue, 20 Feb 2018 08:25:00 -0000	[thread overview]
Message-ID: <cd436360-d6c3-9098-bcc8-eeabed24cd83@suse.cz> (raw)
In-Reply-To: <0a23778f-57c2-5f01-4919-231ec7d001e0@suse.cz>

PING^1

On 02/12/2018 01:09 PM, Martin Liška wrote:
> Hi.
> 
> Following patch fixes 2 issues with -falign-*:
> 1) when using -malign-x=16 (or corresponding -falign-* value) then ICE appeared
> as code in final.c can deal just with limited alignment.
> 2) thus I also documented and limited the maximum value of -falign-* options.
> 
> Patch can bootstrap on ppc64le-redhat-linux and survives regression tests.
> i386.exp test-suite works fine on x86_64 machine.
> 
> Ready to be installed?
> Martin
> 
> gcc/ChangeLog:
> 
> 2018-02-09  Martin Liska  <mliska@suse.cz>
> 
> 	PR c/84310
> 	PR target/79747
> 	* final.c (shorten_branches): Build align_tab array with one
> 	more element.
> 	* opts.c (finish_options): Add alignment option limit check.
> 	(MAX_CODE_ALIGN): Likewise.
> 	(MAX_CODE_ALIGN_VALUE): Likewise.
> 	* doc/invoke.texi: Document maximum allowed option value for
> 	all -falign-* options.
> 
> gcc/testsuite/ChangeLog:
> 
> 2018-02-12  Martin Liska  <mliska@suse.cz>
> 
> 	PR c/84310
> 	PR target/79747
> 	* gcc.target/i386/pr84310.c: New test.
> 	* gcc.target/i386/pr84310-2.c: Likewise.
> ---
>  gcc/doc/invoke.texi                       |  4 ++++
>  gcc/final.c                               |  4 ++--
>  gcc/opts.c                                | 20 ++++++++++++++++++++
>  gcc/testsuite/gcc.target/i386/pr84310-2.c | 10 ++++++++++
>  gcc/testsuite/gcc.target/i386/pr84310.c   |  8 ++++++++
>  5 files changed, 44 insertions(+), 2 deletions(-)
>  create mode 100644 gcc/testsuite/gcc.target/i386/pr84310-2.c
>  create mode 100644 gcc/testsuite/gcc.target/i386/pr84310.c
> 
> 

  reply	other threads:[~2018-02-20  8:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-12 12:09 Martin Liška
2018-02-20  8:25 ` Martin Liška [this message]
2018-02-20  8:43 ` Jakub Jelinek
2018-02-20 10:05   ` Martin Liška
2018-02-20 12:49     ` Jakub Jelinek

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=cd436360-d6c3-9098-bcc8-eeabed24cd83@suse.cz \
    --to=mliska@suse.cz \
    --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).