]> gcc.gnu.org Git - gcc.git/commit - gcc/c/c-typeck.c
re PR c/11658 (Wrong error message)
authorPaolo Bonzini <bonzini@gnu.org>
Tue, 3 Feb 2004 11:22:41 +0000 (11:22 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Tue, 3 Feb 2004 11:22:41 +0000 (11:22 +0000)
commite57e265ba61a2e07623521dc872a2b7e82e70b37
tree38cfca602874b8689177b11b1cd223ef979c0667
parent0251aa4518e9c18d00509b52149754e23396777b
re PR c/11658 (Wrong error message)

2004-02-03  Paolo Bonzini  <bonzini@gnu.org>

PR c/11658
PR c/13994
* Makefile.in (c-parse.o, c-convert.o, c-typeck.o): Depend
on langhooks.h.
* objc/Make-lang.in (objc-parse.o): Depend on langhooks.h.
* c-parse.in, c-convert.c, c-typeck.c, objc/objc-act.c:
Include langhooks.h.  Replace c_common_truthvalue_conversion
with the truthvalue_conversion language hook throughout.
(expr_no_commas): Call default_conversion before save_expr
for the first term of the production 'x ? : y'.
* c-common.c (c_common_truthvalue_conversion): Remove
obsolete block.  Invoke recursively the hook instead
of this function.
* c-convert.c (convert): handle ERROR_MARK_NODE.
* c-typeck.c (build_binary_op): handle ERROR_MARK_NODE
returned by the truthvalue_conversion language hook.
* c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Use
c_objc_common_truthvalue_conversion.
* c-objc-common.c (c_objc_common_truthvalue_conversion):
New function.
* c-tree.h (c_objc_common_truthvalue_conversion): Declare it.
* objc/objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Use
c_objc_common_truthvalue_conversion.

From-SVN: r77168
12 files changed:
gcc/ChangeLog
gcc/Makefile.in
gcc/c-common.c
gcc/c-convert.c
gcc/c-lang.c
gcc/c-objc-common.c
gcc/c-parse.in
gcc/c-tree.h
gcc/c-typeck.c
gcc/objc/Make-lang.in
gcc/objc/objc-act.c
gcc/objc/objc-lang.c
This page took 0.060699 seconds and 5 git commands to generate.