This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Don't inform about non-delegitimized TLS UNSPECs (PR target/45870)
- From: Richard Henderson <rth at redhat dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 18 Nov 2010 15:48:38 -0800
- Subject: Re: [PATCH] Don't inform about non-delegitimized TLS UNSPECs (PR target/45870)
- References: <20101118204756.GD29412@tyan-ft48-01.lab.bos.redhat.com>
On 11/18/2010 12:47 PM, Jakub Jelinek wrote:
> + if (XVECLEN (rtl, 0) != 1
> + || GET_CODE (XVECEXP (rtl, 0, 0)) != SYMBOL_REF
> + || SYMBOL_REF_DECL (XVECEXP (rtl, 0, 0)) == NULL
> + || TREE_CODE (SYMBOL_REF_DECL (XVECEXP (rtl, 0, 0))) != VAR_DECL
> + || !DECL_THREAD_LOCAL_P (SYMBOL_REF_DECL (XVECEXP (rtl, 0, 0))))
> + /* Don't complain about TLS UNSPECs, those are just too hard to
> + delegitimize. */
> + inform (current_function_decl
> + ? DECL_SOURCE_LOCATION (current_function_decl)
> + : UNKNOWN_LOCATION,
> + "non-delegitimized UNSPEC %d found in variable location",
> + XINT (rtl, 1));
Ok, but put the comment before the IF.
r~