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]

[PATCH v2 17/18] Use SYMBOL_REF_P macro.


2019-08-05  Arvind Sankar  <nivedita@alum.mit.edu>

	gcc/ChangeLog:

	* dwarf2out.c: Convert GET_CODE (..) == SYMBOL_REF to
	SYMBOL_REF_P (..).

 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index b2b4f6d82b2..ea38963d177 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -23747,8 +23747,7 @@ gen_variable_die (tree decl, tree origin, dw_die_ref context_die)
 		      if (single_element_loc_list_p (loc)
 			  && loc->expr->dw_loc_opc == DW_OP_addr
 			  && loc->expr->dw_loc_next == NULL
-			  && GET_CODE (loc->expr->dw_loc_oprnd1.v.val_addr)
-			     == SYMBOL_REF)
+			  && SYMBOL_REF_P (loc->expr->dw_loc_oprnd1.v.val_addr))
 			{
 			  rtx x = loc->expr->dw_loc_oprnd1.v.val_addr;
 			  loc->expr->dw_loc_oprnd1.v.val_addr
-- 
2.21.0


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