public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Bernd Schmidt <bschmidt@redhat.com>
To: Ulrich Weigand <uweigand@de.ibm.com>,
	gcc-patches@gcc.gnu.org,        richard.sandiford@arm.com
Subject: Re: [ping] Re: Fix PR debug/66728
Date: Wed, 28 Oct 2015 14:25:00 -0000	[thread overview]
Message-ID: <5630D8AE.1090608@redhat.com> (raw)
In-Reply-To: <87ziz3ta4t.fsf@e105548-lin.cambridge.arm.com>

On 10/28/2015 02:06 PM, Richard Sandiford wrote:
> Ulrich Weigand <uweigand@de.ibm.com> writes:
>> seems this still hasn't gone upstream ...  Any news?
>
> Ah, sorry, I should have been pinging it.  I think it's still waiting
> for review.

Hmm, unfortunately I have a hard time making sense of this patch. Some 
extra explanation would be appreciated.

>>>   static bool
>>> -add_const_value_attribute (dw_die_ref die, rtx rtl)
>>> +add_const_value_attribute (dw_die_ref die, machine_mode mode, rtx rtl)

Need to document the extra parameter, especially in light of the 
TYPE_MODE/DECL_MODE/rtx mode confusion you pointed out.

>>>   {
>>>     switch (GET_CODE (rtl))
>>>       {
>>>       case CONST_INT:
>>> -      {
>>> -	HOST_WIDE_INT val =3D INTVAL (rtl);
>>> +      if (mode !=3D BLKmode)
>>> +	{
>>> +	  gcc_checking_assert (SCALAR_INT_MODE_P (mode));
>>> +	  HOST_WIDE_INT val =3D INTVAL (rtl);
>>> =20
>>> -	if (val < 0)
>>> -	  add_AT_int (die, DW_AT_const_value, val);
>>> -	else
>>> -	  add_AT_unsigned (die, DW_AT_const_value, (unsigned HOST_WIDE_INT) val);
>>> -      }
>>> -      return true;
>>> +	  if (val < 0)
>>> +	    add_AT_int (die, DW_AT_const_value, val);
>>> +	  else
>>> +	    add_AT_unsigned (die, DW_AT_const_value,
>>> +			     (unsigned HOST_WIDE_INT) val);
>>> +	  return true;
>>> +	}

This is all a bit html mangled, but this and the other change in 
loc_descriptor seem to have the effect of doing nothing when called with 
BLKmode. What is the desired effect of this on the debug information, 
and how is it achieved?


Bernd

  reply	other threads:[~2015-10-28 14:16 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-21 14:24 Richard Sandiford
2015-08-21 16:20 ` Jeff Law
2015-10-28 12:04 ` [ping] " Ulrich Weigand
2015-10-28 13:14   ` Richard Sandiford
2015-10-28 14:25     ` Bernd Schmidt [this message]
2015-10-28 14:58       ` Ulrich Weigand
2015-11-02 15:30       ` Richard Sandiford
2015-11-02 16:29         ` Richard Sandiford
2015-11-02 20:34           ` [ping] " Mike Stump
2015-11-02 20:55             ` Richard Sandiford
2015-11-02 23:29               ` Mike Stump
2015-11-03  8:46                 ` Richard Sandiford
2015-11-03 21:59                   ` Mike Stump
2015-11-04  9:43                     ` Richard Biener
2015-11-04 11:58                       ` Mike Stump
2015-11-04 12:15                         ` Richard Biener
2015-11-04 19:36                           ` Mike Stump
2015-11-04 20:51                             ` Richard Sandiford
2015-11-04 23:45                               ` Mike Stump
2015-11-05 12:32                                 ` Richard Biener
2015-11-06  1:35                                   ` Mike Stump
2015-11-06 13:06                                     ` Richard Biener
2015-11-09 18:47                                       ` Mike Stump

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=5630D8AE.1090608@redhat.com \
    --to=bschmidt@redhat.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=richard.sandiford@arm.com \
    --cc=uweigand@de.ibm.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).