Commit 22f51792 by James A. Morrison

parse.y: Reformat comments.

2005-02-01  James A. Morrison  <phython@gcc.gnu.org>

        * parse.y: Reformat comments.
        * treetree.c: Likewise.
        * treetree.h: Likewise.

From-SVN: r94543
parent 596d4d61
2005-02-01 James A. Morrison <phython@gcc.gnu.org>
* parse.y: Reformat comments.
* treetree.c: Likewise.
* treetree.h: Likewise.
2004-10-24 James A. Morrison <phython@gcc.gnu.org> 2004-10-24 James A. Morrison <phython@gcc.gnu.org>
* treetree.c (tree_code_generate_return): Wrap param declaration in * treetree.c (tree_code_generate_return): Wrap param declaration in
......
...@@ -146,7 +146,7 @@ the GCC compiler. */ ...@@ -146,7 +146,7 @@ the GCC compiler. */
%% %%
file: file:
/* Nil. */ { /* Nil. */ {
/* Nothing to do. */ /* Nothing to do. */
} }
|declarations { |declarations {
...@@ -369,7 +369,7 @@ variable_defs_opt statements_opt RIGHT_BRACE { ...@@ -369,7 +369,7 @@ variable_defs_opt statements_opt RIGHT_BRACE {
; ;
variable_defs_opt: variable_defs_opt:
/* Nil. */ { /* Nil. */ {
$$ = 0; $$ = 0;
} }
|variable_defs { |variable_defs {
...@@ -378,7 +378,7 @@ variable_defs_opt: ...@@ -378,7 +378,7 @@ variable_defs_opt:
; ;
statements_opt: statements_opt:
/* Nil. */ { /* Nil. */ {
$$ = 0; $$ = 0;
} }
|statements { |statements {
...@@ -550,7 +550,7 @@ tl_RETURN expression_opt { ...@@ -550,7 +550,7 @@ tl_RETURN expression_opt {
; ;
expression_opt: expression_opt:
/* Nil. */ { /* Nil. */ {
$$ = 0; $$ = 0;
} }
|expression { |expression {
...@@ -727,11 +727,12 @@ NAME { ...@@ -727,11 +727,12 @@ NAME {
; ;
init_opt: init_opt:
/* Nil. */ { /* Nil. */ {
$$ = 0; $$ = 0;
} }
|init { |init {
/* Nothing to do. */ /* Pass the initialization value up. */
$$ = $1;
}; };
init: init:
......
...@@ -337,6 +337,7 @@ tree_code_create_function_prototype (unsigned char* chars, ...@@ -337,6 +337,7 @@ tree_code_create_function_prototype (unsigned char* chars,
/* Last parm if void indicates fixed length list (as opposed to /* Last parm if void indicates fixed length list (as opposed to
printf style va_* list). */ printf style va_* list). */
type_list = tree_cons (NULL_TREE, void_type_node, type_list); type_list = tree_cons (NULL_TREE, void_type_node, type_list);
/* The back end needs them in reverse order. */ /* The back end needs them in reverse order. */
type_list = nreverse (type_list); type_list = nreverse (type_list);
...@@ -493,7 +494,6 @@ tree_code_create_function_wrapup (location_t loc) ...@@ -493,7 +494,6 @@ tree_code_create_function_wrapup (location_t loc)
allocate_struct_function (fn_decl); allocate_struct_function (fn_decl);
cfun->function_end_locus = loc; cfun->function_end_locus = loc;
/* Dump the original tree to a file. */ /* Dump the original tree to a file. */
dump_function (TDI_original, fn_decl); dump_function (TDI_original, fn_decl);
...@@ -510,14 +510,12 @@ tree_code_create_function_wrapup (location_t loc) ...@@ -510,14 +510,12 @@ tree_code_create_function_wrapup (location_t loc)
cgraph_finalize_function (fn_decl, false); cgraph_finalize_function (fn_decl, false);
} }
/* /* Create a variable.
Create a variable.
The storage class is STORAGE_CLASS (eg LOCAL). The storage class is STORAGE_CLASS (eg LOCAL).
The name is CHARS/LENGTH. The name is CHARS/LENGTH.
The type is EXPRESSION_TYPE (eg UNSIGNED_TYPE). The type is EXPRESSION_TYPE (eg UNSIGNED_TYPE).
The init tree is INIT. The init tree is INIT. */
*/
tree tree
tree_code_create_variable (unsigned int storage_class, tree_code_create_variable (unsigned int storage_class,
......
/* /* TREELANG Compiler definitions for interfacing to treetree.c
TREELANG Compiler definitions for interfacing to treetree.c
(compiler back end interface). (compiler back end interface).
Copyright (C) 1986, 87, 89, 92-96, 1997, 1999, 2000, 2001, 2002, 2003, 2004 Copyright (C) 1986, 87, 89, 92-96, 1997, 1999, 2000, 2001, 2002, 2003,
Free Software Foundation, Inc. 2004, 2005 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify it This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the under the terms of the GNU General Public License as published by the
...@@ -28,9 +26,7 @@ ...@@ -28,9 +26,7 @@
--------------------------------------------------------------------------- ---------------------------------------------------------------------------
Written by Tim Josling 1999, 2000, 2001, based in part on other Written by Tim Josling 1999, 2000, 2001, based in part on other
parts of the GCC compiler. parts of the GCC compiler. */
*/
tree tree_code_init_parameters (void); tree tree_code_init_parameters (void);
tree tree_code_add_parameter (tree list, tree proto_exp, tree exp); tree tree_code_add_parameter (tree list, tree proto_exp, tree exp);
...@@ -69,5 +65,3 @@ void treelang_parse_file (int debug_flag); ...@@ -69,5 +65,3 @@ void treelang_parse_file (int debug_flag);
void push_var_level (void); void push_var_level (void);
void pop_var_level (void); void pop_var_level (void);
const char* get_string (const char *s, size_t l); const char* get_string (const char *s, size_t l);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment