From: David Edelsohn Date: Fri, 4 Dec 2020 19:29:46 +0000 (-0500) Subject: rs6000: fix PTR_SIZE in rs6000.c X-Git-Tag: upstream/12.2.0~11204 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b96802994acb47d5a86d9112d7b1eeda9418827f;p=platform%2Fupstream%2Fgcc.git 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. --- 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