Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
508f1cb5
Commit
508f1cb5
authored
Jun 15, 2018
by
Jason Merrill
Committed by
Jason Merrill
Jun 15, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* tree.c (maybe_warn_parm_abi): Inform the location of the class.
From-SVN: r261653
parent
b8d85005
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
13 deletions
+15
-13
gcc/cp/ChangeLog
+4
-0
gcc/cp/tree.c
+10
-12
gcc/testsuite/g++.dg/abi/invisiref2a.C
+1
-1
No files found.
gcc/cp/ChangeLog
View file @
508f1cb5
2018-06-15 Jason Merrill <jason@redhat.com>
* tree.c (maybe_warn_parm_abi): Inform the location of the class.
2018-06-14 Marek Polacek <polacek@redhat.com>
2018-06-14 Marek Polacek <polacek@redhat.com>
PR c++/86063
PR c++/86063
...
...
gcc/cp/tree.c
View file @
508f1cb5
...
@@ -4074,25 +4074,23 @@ maybe_warn_parm_abi (tree t, location_t loc)
...
@@ -4074,25 +4074,23 @@ maybe_warn_parm_abi (tree t, location_t loc)
if
((
flag_abi_version
==
12
||
warn_abi_version
==
12
)
if
((
flag_abi_version
==
12
||
warn_abi_version
==
12
)
&&
classtype_has_non_deleted_move_ctor
(
t
))
&&
classtype_has_non_deleted_move_ctor
(
t
))
{
{
bool
w
;
if
(
flag_abi_version
>
12
)
if
(
flag_abi_version
>
12
)
warning_at
(
loc
,
OPT_Wabi
,
"-fabi-version=13 (GCC 8.2) fixes the "
w
=
w
arning_at
(
loc
,
OPT_Wabi
,
"-fabi-version=13 (GCC 8.2) fixes the "
"calling convention for %qT, which was accidentally "
"calling convention for %qT, which was accidentally "
"changed in 8.1"
,
t
);
"changed in 8.1"
,
t
);
else
else
warning_at
(
loc
,
OPT_Wabi
,
"-fabi-version=12 (GCC 8.1) accidentally "
w
=
warning_at
(
loc
,
OPT_Wabi
,
"-fabi-version=12 (GCC 8.1) accident"
"changes the calling convention for %qT"
,
t
);
"ally changes the calling convention for %qT"
,
t
);
if
(
w
)
inform
(
location_of
(
t
),
" declared here"
);
return
;
return
;
}
}
warning_at
(
loc
,
OPT_Wabi
,
"the calling convention for %qT changes in "
if
(
warning_at
(
loc
,
OPT_Wabi
,
"the calling convention for %qT changes in "
"-fabi-version=13 (GCC 8.2)"
,
t
);
"-fabi-version=13 (GCC 8.2)"
,
t
))
static
bool
explained
=
false
;
inform
(
location_of
(
t
),
" because all of its copy and move "
if
(
!
explained
)
"constructors are deleted"
);
{
inform
(
loc
,
" because all of its copy and move constructors "
"are deleted"
);
explained
=
true
;
}
}
}
/* Returns true iff copying an object of type T (including via move
/* Returns true iff copying an object of type T (including via move
...
...
gcc/testsuite/g++.dg/abi/invisiref2a.C
View file @
508f1cb5
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
// { dg-additional-options "-fabi-version=12 -Wabi -fdump-tree-gimple" }
// { dg-additional-options "-fabi-version=12 -Wabi -fdump-tree-gimple" }
// { dg-final { scan-tree-dump "struct S &" "gimple" } }
// { dg-final { scan-tree-dump "struct S &" "gimple" } }
struct
S
{
struct
S
{
// { dg-message "" }
S
(
S
&&
)
=
default
;
S
(
S
&&
)
=
default
;
int
i
;
int
i
;
};
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment