OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* gcj.texi (Linking): New node. Document -lgij usage.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
c-parse.in
diff --git
a/gcc/c-parse.in
b/gcc/c-parse.in
index
a96241a
..
d701391
100644
(file)
--- a/
gcc/c-parse.in
+++ b/
gcc/c-parse.in
@@
-1537,7
+1537,7
@@
nested_function:
add_stmt ($6);
finish_function ();
pop_function_context ();
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:
;
notype_nested_function:
@@
-1567,7
+1567,7
@@
notype_nested_function:
add_stmt ($6);
finish_function ();
pop_function_context ();
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
;
/* 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;
{
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))
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
}
;
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 ($$))
;
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
;
/* 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 ($$))
{
$$ = lang_hooks.truthvalue_conversion ($2);
if (EXPR_P ($$))
-
annotate_with_locus
($$, $1);
+
SET_EXPR_LOCATION
($$, $1);
}
else
$$ = NULL;
}
else
$$ = NULL;