This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C PATCH] PR27150 and PR27382: LABEL_DECL vs DECL_WEAK
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Roger Sayle <roger at eyesopen dot com>
- Cc: gcc-patches at gcc dot gnu dot org, Andrew Pinski <pinskia at physics dot uc dot edu>
- Date: Sun, 4 Jun 2006 13:35:46 +0000 (UTC)
- Subject: Re: [C PATCH] PR27150 and PR27382: LABEL_DECL vs DECL_WEAK
- References: <Pine.LNX.4.44.0606032135030.9393-100000@www.eyesopen.com>
On Sat, 3 Jun 2006, Roger Sayle wrote:
> 2006-06-03 Roger Sayle <roger@eyesopen.com>
> Andrew Pinski <pinskia@physics.uc.edu>
>
> 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.
OK.
--
Joseph S. Myers http://www.srcf.ucam.org/~jsm28/gcc/
jsm@polyomino.org.uk (personal mail)
joseph@codesourcery.com (CodeSourcery mail)
jsm28@gcc.gnu.org (Bugzilla assignments and CCs)