aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Edelsohn <dje.gcc@gmail.com>2020-12-04 14:29:46 -0500
committerDavid Edelsohn <dje.gcc@gmail.com>2020-12-04 14:33:06 -0500
commitb96802994acb47d5a86d9112d7b1eeda9418827f (patch)
tree98cd510f5bec83c15f463feaf578bf5997569023
parenteb79f4db49c5f5a807555e9d374524664eb537bf (diff)
downloadgcc-b96802994acb47d5a86d9112d7b1eeda9418827f.zip
gcc-b96802994acb47d5a86d9112d7b1eeda9418827f.tar.gz
gcc-b96802994acb47d5a86d9112d7b1eeda9418827f.tar.bz2
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.
-rw-r--r--gcc/config/rs6000/rs6000.c2
1 files changed, 1 insertions, 1 deletions
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