rs6000: fix PTR_SIZE in rs6000.c
authorDavid Edelsohn <dje.gcc@gmail.com>
Fri, 4 Dec 2020 19:29:46 +0000 (14:29 -0500)
committerDavid Edelsohn <dje.gcc@gmail.com>
Fri, 4 Dec 2020 19:33:06 +0000 (14:33 -0500)
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

index d266603..f26fc13 100644 (file)
@@ -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