Commit fe74f9b4 by Richard Biener Committed by Richard Biener

re PR bootstrap/82939 (genmatch fills up terminal with endless printing of periods)

2018-02-16  Richard Biener  <rguenther@suse.de>

	PR bootstrap/82939
	* line-map.c (linemap_init): Avoid broken value-init when compiling
	with GCC 4.2.

From-SVN: r257732
parent 5c8cebe7
2018-02-16 Richard Biener <rguenther@suse.de>
PR bootstrap/82939
* line-map.c (linemap_init): Avoid broken value-init when compiling
with GCC 4.2.
2018-02-15 Jason Merrill <jason@redhat.com> 2018-02-15 Jason Merrill <jason@redhat.com>
Jakub Jelinek <jakub@redhat.com> Jakub Jelinek <jakub@redhat.com>
......
...@@ -344,7 +344,12 @@ void ...@@ -344,7 +344,12 @@ void
linemap_init (struct line_maps *set, linemap_init (struct line_maps *set,
source_location builtin_location) source_location builtin_location)
{ {
#if __GNUC__ == 4 && __GNUC_MINOR__ == 2 && !defined (__clang__)
/* PR33916, needed to fix PR82939. */
memset (set, 0, sizeof (struct line_maps));
#else
*set = line_maps (); *set = line_maps ();
#endif
set->highest_location = RESERVED_LOCATION_COUNT - 1; set->highest_location = RESERVED_LOCATION_COUNT - 1;
set->highest_line = RESERVED_LOCATION_COUNT - 1; set->highest_line = RESERVED_LOCATION_COUNT - 1;
set->location_adhoc_data_map.htab = set->location_adhoc_data_map.htab =
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment