From: Richard Sandiford Date: Mon, 23 Oct 2017 09:38:30 +0000 (+0000) Subject: Use SCALAR_INT_TYPE_MODE in loc_list_from_tree_1 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1fc50bea21a0aecd52046c6d0858a8c8428dc0cc;p=gcc.git Use SCALAR_INT_TYPE_MODE in loc_list_from_tree_1 This follows on from similar changes a couple of months ago and is needed when general modes have variable size. 2017-10-23 Richard Sandiford Alan Hayward David Sherwood gcc/ * dwarf2out.c (loc_list_from_tree_1): Use SCALAR_INT_TYPE_MODE Co-Authored-By: Alan Hayward Co-Authored-By: David Sherwood From-SVN: r254001 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ced594f68da..d53514ddcca 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2017-10-23 Richard Sandiford + Alan Hayward + David Sherwood + + * dwarf2out.c (loc_list_from_tree_1): Use SCALAR_INT_TYPE_MODE + 2017-10-23 Richard Sandiford Alan Hayward David Sherwood diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index ec9b40602b1..81c95ece095 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -17482,7 +17482,7 @@ loc_list_from_tree_1 (tree loc, int want_address, && (INTEGRAL_TYPE_P (TREE_TYPE (loc)) || POINTER_TYPE_P (TREE_TYPE (loc))) && DECL_CONTEXT (loc) == current_function_decl - && (GET_MODE_SIZE (TYPE_MODE (TREE_TYPE (loc))) + && (GET_MODE_SIZE (SCALAR_INT_TYPE_MODE (TREE_TYPE (loc))) <= DWARF2_ADDR_SIZE)) { dw_die_ref ref = lookup_decl_die (loc);