From b96802994acb47d5a86d9112d7b1eeda9418827f Mon Sep 17 00:00:00 2001 From: David Edelsohn Date: Fri, 4 Dec 2020 14:29:46 -0500 Subject: [PATCH] rs6000: fix PTR_SIZE in rs6000.c The recent change to rs6000.c for DWARF in AIX references the macro PTR_SIZE that only is defined in dwarf2out.c. This patch changes the reference to the equivalent POINTER_SIZE_UNITS defined in defaults.h. gcc/ChangeLog: * config/rs6000/rs6000.c (rs6000_option_override_internal): Change PTR_SIZE to POINTER_SIZE_UNITS. --- gcc/config/rs6000/rs6000.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index d266603..f26fc13 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -3867,7 +3867,7 @@ rs6000_option_override_internal (bool global_init_p) #ifdef XCOFF_DEBUGGING_INFO /* For AIX default to 64-bit DWARF. */ if (!global_options_set.x_dwarf_offset_size) - dwarf_offset_size = PTR_SIZE; + dwarf_offset_size = POINTER_SIZE_UNITS; #endif /* Handle explicit -mno-{altivec,vsx,power8-vector,power9-vector} and turn -- 2.7.4