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
22a4158c
Commit
22a4158c
authored
Aug 25, 2000
by
Gabriel Dos Reis
Committed by
Gabriel Dos Reis
Aug 25, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* error.c (cp_tree_printer): Rework.
From-SVN: r35981
parent
135ebc36
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
33 deletions
+44
-33
gcc/cp/ChangeLog
+4
-0
gcc/cp/error.c
+40
-33
No files found.
gcc/cp/ChangeLog
View file @
22a4158c
2000-08-25 Gabriel Dos Reis <gdr@codesourcery.com>
* error.c (cp_tree_printer): Rework.
2000-08-25 Mark Mitchell <mark@codesourcery.com>
* Make-lang.in (CXX_LIB2FUNCS): Remove cp-demangle.o and
...
...
gcc/cp/error.c
View file @
22a4158c
...
...
@@ -2651,43 +2651,50 @@ cp_tree_printer (buffer)
++
output_buffer_text_cursor
(
buffer
);
}
if
(
*
output_buffer_text_cursor
(
buffer
)
==
'P'
)
switch
(
*
output_buffer_text_cursor
(
buffer
))
{
case
'A'
:
tree_being_formatted
(
&
tfi
)
=
va_arg
(
output_buffer_format_args
(
buffer
),
tree
);
print_function_argument_list
(
buffer
,
&
tfi
);
break
;
case
'D'
:
tree_being_formatted
(
&
tfi
)
=
va_arg
(
output_buffer_format_args
(
buffer
),
tree
);
print_declaration
(
buffer
,
&
tfi
);
break
;
case
'E'
:
tree_being_formatted
(
&
tfi
)
=
va_arg
(
output_buffer_format_args
(
buffer
),
tree
);
print_expression
(
buffer
,
&
tfi
);
break
;
case
'F'
:
tree_being_formatted
(
&
tfi
)
=
va_arg
(
output_buffer_format_args
(
buffer
),
tree
);
print_function_declaration
(
buffer
,
&
tfi
);
break
;
case
'P'
:
print_function_parameter
(
buffer
,
va_arg
(
output_buffer_format_args
(
buffer
),
int
));
else
{
case
'T'
:
tree_being_formatted
(
&
tfi
)
=
va_arg
(
output_buffer_format_args
(
buffer
),
tree
);
switch
(
*
output_buffer_text_cursor
(
buffer
))
{
case
'A'
:
print_function_argument_list
(
buffer
,
&
tfi
);
break
;
case
'D'
:
print_declaration
(
buffer
,
&
tfi
);
break
;
case
'E'
:
print_expression
(
buffer
,
&
tfi
);
break
;
case
'F'
:
print_function_declaration
(
buffer
,
&
tfi
);
break
;
case
'T'
:
print_type
(
buffer
,
&
tfi
);
break
;
case
'V'
:
print_cv_qualifier
(
buffer
,
&
tfi
);
break
;
default
:
return
0
;
}
print_type
(
buffer
,
&
tfi
);
break
;
case
'V'
:
tree_being_formatted
(
&
tfi
)
=
va_arg
(
output_buffer_format_args
(
buffer
),
tree
);
print_cv_qualifier
(
buffer
,
&
tfi
);
break
;
default
:
return
0
;
}
return
1
;
...
...
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