diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-11-25 11:16:27 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-11-25 11:16:27 +0000 |
commit | 1feb1b2d5438eede71c02ce6d618f66d16a9582b (patch) | |
tree | 70b27f1af29f225e53043edda3753f7cc5c539fd /libcpp | |
parent | 53fd9ebf5b358c67d42702ec9635aa54ed7b0fc9 (diff) | |
download | gcc-1feb1b2d5438eede71c02ce6d618f66d16a9582b.tar.gz |
PR preprocessor/60436
* line-map.c (linemap_line_start): If highest is above 0x60000000
and we are still tracking columns or highest is above 0x70000000,
force add_map.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@218042 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libcpp')
-rw-r--r-- | libcpp/ChangeLog | 7 | ||||
-rw-r--r-- | libcpp/line-map.c | 10 |
2 files changed, 12 insertions, 5 deletions
diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog index 49f374de317..e04130a8df7 100644 --- a/libcpp/ChangeLog +++ b/libcpp/ChangeLog @@ -1,3 +1,10 @@ +2014-11-25 Jakub Jelinek <jakub@redhat.com> + + PR preprocessor/60436 + * line-map.c (linemap_line_start): If highest is above 0x60000000 + and we are still tracking columns or highest is above 0x70000000, + force add_map. + 2014-11-20 Uros Bizjak <ubizjak@gmail.com> PR target/63966 diff --git a/libcpp/line-map.c b/libcpp/line-map.c index aff0294936c..39c057f7498 100644 --- a/libcpp/line-map.c +++ b/libcpp/line-map.c @@ -529,10 +529,10 @@ linemap_line_start (struct line_maps *set, linenum_type to_line, && line_delta * ORDINARY_MAP_NUMBER_OF_COLUMN_BITS (map) > 1000) || (max_column_hint >= (1U << ORDINARY_MAP_NUMBER_OF_COLUMN_BITS (map))) || (max_column_hint <= 80 - && ORDINARY_MAP_NUMBER_OF_COLUMN_BITS (map) >= 10)) - { - add_map = true; - } + && ORDINARY_MAP_NUMBER_OF_COLUMN_BITS (map) >= 10) + || (highest > 0x60000000 + && (set->max_column_hint || highest > 0x70000000))) + add_map = true; else max_column_hint = set->max_column_hint; if (add_map) @@ -543,7 +543,7 @@ linemap_line_start (struct line_maps *set, linenum_type to_line, /* If the column number is ridiculous or we've allocated a huge number of source_locations, give up on column numbers. */ max_column_hint = 0; - if (highest >0x70000000) + if (highest > 0x70000000) return 0; column_bits = 0; } |