re PR middle-end/27382 (ICE in c_common_truthvalue_conversion with label address)
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.
Co-Authored-By:
Andrew Pinski <pinskia@physics.uc.edu>
From-SVN: r114380
Showing
- gcc/ChangeLog 11 additions, 0 deletionsgcc/ChangeLog
- gcc/c-common.c 3 additions, 1 deletiongcc/c-common.c
- gcc/c-typeck.c 6 additions, 2 deletionsgcc/c-typeck.c
- gcc/testsuite/gcc.dg/pr27150-1.c 7 additions, 0 deletionsgcc/testsuite/gcc.dg/pr27150-1.c
- gcc/testsuite/gcc.dg/pr27382-1.c 8 additions, 0 deletionsgcc/testsuite/gcc.dg/pr27382-1.c
- gcc/testsuite/gcc.dg/pr27382-2.c 8 additions, 0 deletionsgcc/testsuite/gcc.dg/pr27382-2.c
Loading
Please register or sign in to comment