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
2842beb6
Commit
2842beb6
authored
Oct 27, 2010
by
Jason Merrill
Committed by
Jason Merrill
Oct 27, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* error.c (dump_simple_decl): Print constexpr.
From-SVN: r166010
parent
efd7ad5c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
6 deletions
+15
-6
gcc/cp/ChangeLog
+2
-0
gcc/cp/error.c
+13
-6
No files found.
gcc/cp/ChangeLog
View file @
2842beb6
2010
-
10
-
27
Jason
Merrill
<
jason
@redhat
.
com
>
*
error
.
c
(
dump_simple_decl
)
:
Print
constexpr
.
*
cvt
.
c
(
build_up_reference
)
:
Use
target_type
for
the
temporary
var
.
*
except
.
c
(
build_throw
)
:
Set
EXPR_LOCATION
.
...
...
gcc/cp/error.c
View file @
2842beb6
...
...
@@ -867,6 +867,9 @@ dump_simple_decl (tree t, tree type, int flags)
{
if
(
flags
&
TFF_DECL_SPECIFIERS
)
{
if
(
TREE_CODE
(
t
)
==
VAR_DECL
&&
DECL_DECLARED_CONSTEXPR_P
(
t
))
pp_cxx_ws_string
(
cxx_pp
,
"constexpr"
);
dump_type_prefix
(
type
,
flags
&
~
TFF_UNQUALIFIED_NAME
);
pp_maybe_space
(
cxx_pp
);
}
...
...
@@ -1306,12 +1309,16 @@ dump_function_decl (tree t, int flags)
else
if
(
TREE_CODE
(
fntype
)
==
METHOD_TYPE
)
cname
=
TREE_TYPE
(
TREE_VALUE
(
parmtypes
));
if
(
!
(
flags
&
TFF_DECL_SPECIFIERS
))
/* OK */
;
else
if
(
DECL_STATIC_FUNCTION_P
(
t
))
pp_cxx_ws_string
(
cxx_pp
,
"static"
);
else
if
(
DECL_VIRTUAL_P
(
t
))
pp_cxx_ws_string
(
cxx_pp
,
"virtual"
);
if
(
flags
&
TFF_DECL_SPECIFIERS
)
{
if
(
DECL_STATIC_FUNCTION_P
(
t
))
pp_cxx_ws_string
(
cxx_pp
,
"static"
);
else
if
(
DECL_VIRTUAL_P
(
t
))
pp_cxx_ws_string
(
cxx_pp
,
"virtual"
);
if
(
DECL_DECLARED_CONSTEXPR_P
(
STRIP_TEMPLATE
(
t
)))
pp_cxx_ws_string
(
cxx_pp
,
"constexpr"
);
}
/* Print the return type? */
if
(
show_return
)
...
...
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