projects
/
platform
/
upstream
/
binutils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
vla: evaluate operand of sizeof if its type is a vla
[platform/upstream/binutils.git]
/
gdb
/
gdbtypes.c
diff --git
a/gdb/gdbtypes.c
b/gdb/gdbtypes.c
index
b7b4210
..
47b2120
100644
(file)
--- a/
gdb/gdbtypes.c
+++ b/
gdb/gdbtypes.c
@@
-1708,6
+1708,7
@@
resolve_dynamic_bounds (struct type *type, CORE_ADDR addr)
range_type = create_range_type (NULL,
TYPE_TARGET_TYPE (range_type),
&low_bound, &high_bound);
+ TYPE_RANGE_DATA (range_type)->flag_bound_evaluated = 1;
return create_array_type (copy_type (type),
elt_type,
range_type);