public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Martin Liška" <mliska@suse.cz>
To: Eric Botcazou <ebotcazou@adacore.com>
Cc: gcc-patches@gcc.gnu.org,
	Richard Biener <richard.guenther@gmail.com>,
	Jakub Jelinek <jakub@redhat.com>
Subject: Re: [PATCH] Fill bitregion_{start,end} in store_constructor (PR, tree-optimization/78428).
Date: Tue, 13 Dec 2016 09:05:00 -0000	[thread overview]
Message-ID: <1148fffa-d3c9-1bfc-dddb-4a6940600227@suse.cz> (raw)
In-Reply-To: <1831313.8QsZ7lDOin@polaris>

On 12/12/2016 12:10 PM, Eric Botcazou wrote:
>> Ok. I'm sending a patch that put gcc_unreachable to places where either size
>> or (and) offset is a non-constant. This survives regression tests
>> (including ada) on x86_64-linux-gnu. Apart from that normal bootstrap +
>> regression tests works fine on ppc64le-redhat-linux.
> 
> I didn't manage to break it so it is OK by me.
> 

Out of curiosity, I blame the commit which added the 

if (offset)
  {
    machine_mode address_mode;
    rtx offset_rtx;

    offset
      = SUBSTITUTE_PLACEHOLDER_IN_EXPR (offset,
					make_tree (TREE_TYPE (exp),
						   target));

and it comes to commit done in 1993:

commit c869557a9ccc1bd3e5474b144bcb84065db23549
Author: kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Date:   Mon Oct 4 01:48:03 1993 +0000

    (store_expr): Use expr_size value, not size_int.
    (store_constructor): Handle case of variable position and allow it to contain
    a PLACEHOLDER_EXPR.
    (get_inner_reference): Make a WITH_RECORD_EXPR if required.
    (expand_expr, case PLACEHOLDER_EXPR, WITH_RECORD_EXPR): New cases.
    (expand_expr, case ARRAY_REF): Make WITH_RECORD_EXPR expressions when needed.
    
    
    git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@5584 138bc75d-0d04-0410-961f-82ee72b054a4

May I install the patch?
Martin

  reply	other threads:[~2016-12-13  9:05 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-23 10:28 Martin Liška
2016-11-23 10:49 ` Richard Biener
2016-12-06 17:52   ` Martin Liška
2016-12-06 18:02   ` Eric Botcazou
2016-12-09 10:20   ` Martin Liška
2016-12-12 11:10     ` Eric Botcazou
2016-12-13  9:05       ` Martin Liška [this message]
2016-12-13 14:36         ` Richard Biener
2016-12-15 11:04           ` Martin Liška
2016-12-16 13:07             ` Richard Biener

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=1148fffa-d3c9-1bfc-dddb-4a6940600227@suse.cz \
    --to=mliska@suse.cz \
    --cc=ebotcazou@adacore.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=jakub@redhat.com \
    --cc=richard.guenther@gmail.com \
    /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).