Commit f615cb16 by Martin Liska Committed by Martin Liska

Fix condition in lto-symtab.c (PR lto/88077).

2018-11-19  Martin Liska  <mliska@suse.cz>

	PR lto/88077
	* lto-symtab.c (lto_symtab_merge): Transform the
	condition before r256989.
2018-11-19  Martin Liska  <mliska@suse.cz>

	PR lto/88077
	* gcc.dg/lto/pr88077_0.c: New test.
	* gcc.dg/lto/pr88077_1.c: New test.

From-SVN: r266277
parent 4cb3570c
2018-11-19 Martin Liska <mliska@suse.cz>
PR lto/88077
* lto-symtab.c (lto_symtab_merge): Transform the
condition before r256989.
2018-11-16 Martin Liska <mliska@suse.cz>
PR lto/88004
......
......@@ -374,8 +374,9 @@ lto_symtab_merge (symtab_node *prevailing, symtab_node *entry)
int a[]={1,2,3};
here the first declaration is COMMON
and sizeof(a) == sizeof (int). */
else if (TREE_CODE (type) == ARRAY_TYPE)
return (TYPE_SIZE (decl) == TYPE_SIZE (TREE_TYPE (type)));
else if (TREE_CODE (type) != ARRAY_TYPE
|| (TYPE_SIZE (type) != TYPE_SIZE (TREE_TYPE (type))))
return false;
}
return true;
......
......@@ -19,6 +19,12 @@
2018-11-19 Martin Liska <mliska@suse.cz>
PR lto/88077
* gcc.dg/lto/pr88077_0.c: New test.
* gcc.dg/lto/pr88077_1.c: New test.
2018-11-19 Martin Liska <mliska@suse.cz>
* g++.dg/gcov/pr84548.C: Remove remove-gcda.
* g++.dg/gcov/ternary.C: Likewise.
* lib/gcov.exp: Support pattern of following form:
......
/* { dg-lto-do link } */
int HeaderStr;
char HeaderStr[1];
int main()
{
return 0;
}
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