+2019-11-20 Julian Brown <julian@codesourcery.com>
+
+ * config/gcn/gcn.c (gcn_asm_output_symbol_ref): Handle null cfun.
+
2019-11-20 Jan Hubicka <jh@suse.cz>
* ipa-fnsummary.c (ipa_fn_summary::account_size_time): Add CALL
gcn_asm_output_symbol_ref (FILE *file, rtx x)
{
tree decl;
- if ((decl = SYMBOL_REF_DECL (x)) != 0
+ if (cfun
+ && (decl = SYMBOL_REF_DECL (x)) != 0
&& TREE_CODE (decl) == VAR_DECL
&& AS_LDS_P (TYPE_ADDR_SPACE (TREE_TYPE (decl))))
{
{
assemble_name (file, XSTR (x, 0));
/* FIXME: See above -- this condition is unreachable. */
- if ((decl = SYMBOL_REF_DECL (x)) != 0
+ if (cfun
+ && (decl = SYMBOL_REF_DECL (x)) != 0
&& TREE_CODE (decl) == VAR_DECL
&& AS_LDS_P (TYPE_ADDR_SPACE (TREE_TYPE (decl))))
fputs ("@abs32", file);