diff mbox

[committed] * pt.c (make_auto_1): Use input_location rather than BUILTINS_LOCATION.

Message ID 1379315863-22416-1-git-send-email-adam@jessamine.co.uk
State New
Headers show

Commit Message

Adam Butcher Sept. 16, 2013, 7:17 a.m. UTC
---
 gcc/cp/pt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Eric Botcazou Sept. 16, 2013, 8:02 a.m. UTC | #1
> ---
>  gcc/cp/pt.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c
> index 2ef160a..ed08dca 100644
> --- a/gcc/cp/pt.c
> +++ b/gcc/cp/pt.c
> @@ -21041,7 +21041,7 @@ static tree
>  make_auto_1 (tree name)
>  {
>    tree au = cxx_make_type (TEMPLATE_TYPE_PARM);
> -  TYPE_NAME (au) = build_decl (BUILTINS_LOCATION,
> +  TYPE_NAME (au) = build_decl (input_location,
>  			       TYPE_DECL, name, au);
>    TYPE_STUB_DECL (au) = TYPE_NAME (au);
>    TEMPLATE_TYPE_PARM_INDEX (au) = build_template_parm_index

That's not a valid post to gcc-patches though.  You need to explain what the 
patch does in a few words, post a ChangeLog entry and say how you tested it.

See all the other messages on the list...
Adam Butcher Sept. 16, 2013, 8:11 a.m. UTC | #2
On 16.09.2013 09:02, Eric Botcazou wrote:
>> ---
>>  gcc/cp/pt.c | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c
>> index 2ef160a..ed08dca 100644
>> --- a/gcc/cp/pt.c
>> +++ b/gcc/cp/pt.c
>> @@ -21041,7 +21041,7 @@ static tree
>>  make_auto_1 (tree name)
>>  {
>>    tree au = cxx_make_type (TEMPLATE_TYPE_PARM);
>> -  TYPE_NAME (au) = build_decl (BUILTINS_LOCATION,
>> +  TYPE_NAME (au) = build_decl (input_location,
>>  			       TYPE_DECL, name, au);
>>    TYPE_STUB_DECL (au) = TYPE_NAME (au);
>>    TEMPLATE_TYPE_PARM_INDEX (au) = build_template_parm_index
>
> That's not a valid post to gcc-patches though.  You need to explain 
> what the
> patch does in a few words, post a ChangeLog entry and say how you 
> tested it.
>
> See all the other messages on the list...
>
Apologies if this was out of context.  This was a change suggested and 
reviewed by Jason 
(http://gcc.gnu.org/ml/gcc-patches/2013-09/msg01114.html).

It has been commited.  The changelog happened to be a one liner which 
folded into the subject line.
Eric Botcazou Sept. 16, 2013, 4:54 p.m. UTC | #3
> Apologies if this was out of context.  This was a change suggested and
> reviewed by Jason
> (http://gcc.gnu.org/ml/gcc-patches/2013-09/msg01114.html).

Then don't repost it on gcc-patches, it is already available on gcc-cvs:
  http://gcc.gnu.org/ml/gcc-cvs/2013-09/msg00473.html
Adam Butcher Sept. 16, 2013, 6:46 p.m. UTC | #4
On 16.09.2013 17:54, Eric Botcazou wrote:
>> Apologies if this was out of context.  This was a change suggested 
>> and
>> reviewed by Jason
>> (http://gcc.gnu.org/ml/gcc-patches/2013-09/msg01114.html).
>
> Then don't repost it on gcc-patches, it is already available on 
> gcc-cvs:
>   http://gcc.gnu.org/ml/gcc-cvs/2013-09/msg00473.html
>
For some reason I had got it into my head that I should post to 
gcc-patches after any commit.  After rereading "Write access policies" 
and "Checking in a change" I now realize I was mistaken.  Sorry for the 
noise.
diff mbox

Patch

diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c
index 2ef160a..ed08dca 100644
--- a/gcc/cp/pt.c
+++ b/gcc/cp/pt.c
@@ -21041,7 +21041,7 @@  static tree
 make_auto_1 (tree name)
 {
   tree au = cxx_make_type (TEMPLATE_TYPE_PARM);
-  TYPE_NAME (au) = build_decl (BUILTINS_LOCATION,
+  TYPE_NAME (au) = build_decl (input_location,
 			       TYPE_DECL, name, au);
   TYPE_STUB_DECL (au) = TYPE_NAME (au);
   TEMPLATE_TYPE_PARM_INDEX (au) = build_template_parm_index