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
8dc70667
Commit
8dc70667
authored
Aug 26, 2013
by
Gabriel Dos Reis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Really commit all changes
From-SVN: r201989
parent
5339fc0c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
13 deletions
+12
-13
gcc/c-family/c-pretty-print.c
+6
-8
gcc/c-family/c-pretty-print.h
+3
-4
gcc/c/c-objc-common.c
+1
-1
gcc/cp/cxx-pretty-print.c
+0
-0
gcc/cp/cxx-pretty-print.h
+2
-0
No files found.
gcc/c-family/c-pretty-print.c
View file @
8dc70667
...
@@ -837,7 +837,7 @@ pp_c_function_definition (c_pretty_printer *pp, tree t)
...
@@ -837,7 +837,7 @@ pp_c_function_definition (c_pretty_printer *pp, tree t)
pp_declaration_specifiers
(
pp
,
t
);
pp_declaration_specifiers
(
pp
,
t
);
pp_declarator
(
pp
,
t
);
pp_declarator
(
pp
,
t
);
pp_needs_newline
(
pp
)
=
true
;
pp_needs_newline
(
pp
)
=
true
;
pp
_statement
(
pp
,
DECL_SAVED_TREE
(
t
));
pp
->
statement
(
DECL_SAVED_TREE
(
t
));
pp_newline_and_flush
(
pp
);
pp_newline_and_flush
(
pp
);
}
}
...
@@ -2306,15 +2306,15 @@ c_pretty_printer::expression (tree e)
...
@@ -2306,15 +2306,15 @@ c_pretty_printer::expression (tree e)
/* Statements. */
/* Statements. */
void
void
pp_c_statement
(
c_pretty_printer
*
pp
,
tree
stmt
)
c_pretty_printer
::
statement
(
tree
stmt
)
{
{
if
(
stmt
==
NULL
)
if
(
stmt
==
NULL
)
return
;
return
;
if
(
pp_needs_newline
(
pp
))
if
(
pp_needs_newline
(
this
))
pp_newline_and_indent
(
pp
,
0
);
pp_newline_and_indent
(
this
,
0
);
dump_generic_node
(
pp
,
stmt
,
pp_indentation
(
pp
),
0
,
true
);
dump_generic_node
(
this
,
stmt
,
pp_indentation
(
this
),
0
,
true
);
}
}
...
@@ -2339,8 +2339,6 @@ c_pretty_printer::c_pretty_printer ()
...
@@ -2339,8 +2339,6 @@ c_pretty_printer::c_pretty_printer ()
function_specifier
=
pp_c_function_specifier
;
function_specifier
=
pp_c_function_specifier
;
storage_class_specifier
=
pp_c_storage_class_specifier
;
storage_class_specifier
=
pp_c_storage_class_specifier
;
statement
=
pp_c_statement
;
initializer
=
pp_c_initializer
;
initializer
=
pp_c_initializer
;
}
}
...
@@ -2354,7 +2352,7 @@ print_c_tree (FILE *file, tree t)
...
@@ -2354,7 +2352,7 @@ print_c_tree (FILE *file, tree t)
pp_needs_newline
(
&
pp
)
=
true
;
pp_needs_newline
(
&
pp
)
=
true
;
pp
.
buffer
->
stream
=
file
;
pp
.
buffer
->
stream
=
file
;
pp
_statement
(
&
pp
,
t
);
pp
.
statement
(
t
);
pp_newline_and_flush
(
&
pp
);
pp_newline_and_flush
(
&
pp
);
}
}
...
...
gcc/c-family/c-pretty-print.h
View file @
8dc70667
...
@@ -63,6 +63,9 @@ struct c_pretty_printer : pretty_printer
...
@@ -63,6 +63,9 @@ struct c_pretty_printer : pretty_printer
virtual
void
conditional_expression
(
tree
);
virtual
void
conditional_expression
(
tree
);
virtual
void
assignment_expression
(
tree
);
virtual
void
assignment_expression
(
tree
);
virtual
void
expression
(
tree
);
virtual
void
expression
(
tree
);
virtual
void
statement
(
tree
);
/* Points to the first element of an array of offset-list.
/* Points to the first element of an array of offset-list.
Not used yet. */
Not used yet. */
int
*
offset_list
;
int
*
offset_list
;
...
@@ -86,8 +89,6 @@ struct c_pretty_printer : pretty_printer
...
@@ -86,8 +89,6 @@ struct c_pretty_printer : pretty_printer
c_pretty_print_fn
storage_class_specifier
;
c_pretty_print_fn
storage_class_specifier
;
c_pretty_print_fn
initializer
;
c_pretty_print_fn
initializer
;
c_pretty_print_fn
statement
;
};
};
#define pp_c_tree_identifier(PPI, ID) \
#define pp_c_tree_identifier(PPI, ID) \
...
@@ -159,8 +160,6 @@ void pp_c_type_id (c_pretty_printer *, tree);
...
@@ -159,8 +160,6 @@ void pp_c_type_id (c_pretty_printer *, tree);
void
pp_c_direct_abstract_declarator
(
c_pretty_printer
*
,
tree
);
void
pp_c_direct_abstract_declarator
(
c_pretty_printer
*
,
tree
);
void
pp_c_type_specifier
(
c_pretty_printer
*
,
tree
);
void
pp_c_type_specifier
(
c_pretty_printer
*
,
tree
);
void
pp_c_storage_class_specifier
(
c_pretty_printer
*
,
tree
);
void
pp_c_storage_class_specifier
(
c_pretty_printer
*
,
tree
);
/* Statements. */
void
pp_c_statement
(
c_pretty_printer
*
,
tree
);
/* Expressions. */
/* Expressions. */
void
pp_c_logical_or_expression
(
c_pretty_printer
*
,
tree
);
void
pp_c_logical_or_expression
(
c_pretty_printer
*
,
tree
);
void
pp_c_expression_list
(
c_pretty_printer
*
,
tree
);
void
pp_c_expression_list
(
c_pretty_printer
*
,
tree
);
...
...
gcc/c/c-objc-common.c
View file @
8dc70667
...
@@ -120,7 +120,7 @@ c_tree_printer (pretty_printer *pp, text_info *text, const char *spec,
...
@@ -120,7 +120,7 @@ c_tree_printer (pretty_printer *pp, text_info *text, const char *spec,
t
=
DECL_DEBUG_EXPR
(
t
);
t
=
DECL_DEBUG_EXPR
(
t
);
if
(
!
DECL_P
(
t
))
if
(
!
DECL_P
(
t
))
{
{
pp_
c_
expression
(
cpp
,
t
);
pp_expression
(
cpp
,
t
);
return
true
;
return
true
;
}
}
}
}
...
...
gcc/cp/cxx-pretty-print.c
View file @
8dc70667
This diff is collapsed.
Click to expand it.
gcc/cp/cxx-pretty-print.h
View file @
8dc70667
...
@@ -42,6 +42,8 @@ struct cxx_pretty_printer : c_pretty_printer
...
@@ -42,6 +42,8 @@ struct cxx_pretty_printer : c_pretty_printer
void
conditional_expression
(
tree
);
void
conditional_expression
(
tree
);
void
assignment_expression
(
tree
);
void
assignment_expression
(
tree
);
void
expression
(
tree
);
void
expression
(
tree
);
void
statement
(
tree
);
/* This is the enclosing scope of the entity being pretty-printed. */
/* This is the enclosing scope of the entity being pretty-printed. */
tree
enclosing_scope
;
tree
enclosing_scope
;
};
};
...
...
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