This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] PR32219, weak hidden reference segfault
- From: Richard Sandiford <rdsandiford at googlemail dot com>
- To: Chung-Lin Tang <cltang at codesourcery dot com>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>, Nathan Sidwell <nathan_sidwell at mentor dot com>, Bernhard Reutner-Fischer <rep dot dot dot nop at gmail dot com>
- Date: Fri, 10 May 2013 11:37:51 +0100
- Subject: Re: [PATCH] PR32219, weak hidden reference segfault
- References: <518B71DA dot 1030302 at codesourcery dot com>
Chung-Lin Tang <cltang@codesourcery.com> writes:
> + case UNSPEC:
> + /* Reach for a contained symbol. */
> + return nonzero_address_p (XVECEXP (x, 0, 0));
I don't think this is safe. UNSPECs really are unspecified :-),
so we can't assume that (unspec X) is nonzero simply because X is.
Richard