This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Don't inform about non-delegitimized TLS UNSPECs (PR target/45870)


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~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]