PR middle-end/27382
commita0a37ffc28fc2b81c25ae7d957f004b78b51c2b8
authorsayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 5 Jun 2006 02:28:20 +0000 (5 02:28 +0000)
committersayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 5 Jun 2006 02:28:20 +0000 (5 02:28 +0000)
tree924b2488af5a0fc59ff1ca0d068ce257c9299c48
parentdc95eae28e68b82ad923e11f17b0f5da7c41d8b1
PR middle-end/27382
* c-common.c (c_common_truthvalue_conversion): Explicitly check
for LABEL_DECL before calling DECL_WEAK.

PR c/27150
* c-typeck.c (build_binary_op): Likewise, explicitly check for
LABEL_DECL and PARM_DECL.

* gcc.dg/pr27150-1.c: New testcase.
* gcc.dg/pr27382-1.c: New testcase.
* gcc.dg/pr27382-2.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114380 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-common.c
gcc/c-typeck.c
gcc/testsuite/gcc.dg/pr27150-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr27382-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr27382-2.c [new file with mode: 0644]