OSDN Git Service

* gcj.texi (Linking): New node. Document -lgij usage.
[pf3gnuchains/gcc-fork.git] / gcc / c-parse.in
index a96241a..d701391 100644 (file)
@@ -1537,7 +1537,7 @@ nested_function:
                  add_stmt ($6);
                  finish_function ();
                  pop_function_context ();
-                 add_stmt (build_stmt (DECL_STMT, decl)); }
+                 add_stmt (build_stmt (DECL_EXPR, decl)); }
        ;
 
 notype_nested_function:
@@ -1567,7 +1567,7 @@ notype_nested_function:
                  add_stmt ($6);
                  finish_function ();
                  pop_function_context ();
-                 add_stmt (build_stmt (DECL_STMT, decl)); }
+                 add_stmt (build_stmt (DECL_EXPR, decl)); }
        ;
 
 /* Any kind of declarator (thus, all declarators allowed
@@ -2016,7 +2016,7 @@ label_decl:
                    {
                      tree label = declare_label (TREE_VALUE (link));
                      C_DECLARED_LABEL_FLAG (label) = 1;
-                     add_stmt (build_stmt (DECL_STMT, label));
+                     add_stmt (build_stmt (DECL_EXPR, label));
                    }
                }
        ;
@@ -2092,19 +2092,19 @@ lineno_stmt:
                     because (recursively) all of the component statments
                     should already have line numbers assigned.  */
                  if ($2 && EXPR_P ($2))
-                   annotate_with_locus ($2, $1);
+                   SET_EXPR_LOCATION ($2, $1);
                }
        ;
 
 lineno_label:
          save_location label
-               { if ($2) annotate_with_locus ($2, $1); }
+               { if ($2) SET_EXPR_LOCATION ($2, $1); }
        ;
 
 condition: save_location expr
                { $$ = lang_hooks.truthvalue_conversion ($2);
                  if (EXPR_P ($$))
-                   annotate_with_locus ($$, $1); }
+                   SET_EXPR_LOCATION ($$, $1); }
        ;
 
 /* Implement -Wparenthesis by special casing IF statement directly nested
@@ -2191,7 +2191,7 @@ for_cond_expr: save_location xexpr
                    {
                      $$ = lang_hooks.truthvalue_conversion ($2);
                      if (EXPR_P ($$))
-                       annotate_with_locus ($$, $1);
+                       SET_EXPR_LOCATION ($$, $1);
                    }
                  else
                    $$ = NULL;