mirror of git://gcc.gnu.org/git/gcc.git
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
This commit is contained in:
parent
4cb3570c8c
commit
f615cb162d
|
|
@ -1,3 +1,9 @@
|
||||||
|
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>
|
2018-11-16 Martin Liska <mliska@suse.cz>
|
||||||
|
|
||||||
PR lto/88004
|
PR lto/88004
|
||||||
|
|
|
||||||
|
|
@ -374,8 +374,9 @@ lto_symtab_merge (symtab_node *prevailing, symtab_node *entry)
|
||||||
int a[]={1,2,3};
|
int a[]={1,2,3};
|
||||||
here the first declaration is COMMON
|
here the first declaration is COMMON
|
||||||
and sizeof(a) == sizeof (int). */
|
and sizeof(a) == sizeof (int). */
|
||||||
else if (TREE_CODE (type) == ARRAY_TYPE)
|
else if (TREE_CODE (type) != ARRAY_TYPE
|
||||||
return (TYPE_SIZE (decl) == TYPE_SIZE (TREE_TYPE (type)));
|
|| (TYPE_SIZE (type) != TYPE_SIZE (TREE_TYPE (type))))
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,12 @@
|
||||||
PR lto/87229
|
PR lto/87229
|
||||||
* g++.dg/lto/pr87229_0.C: New testcase.
|
* g++.dg/lto/pr87229_0.C: New testcase.
|
||||||
|
|
||||||
|
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>
|
2018-11-19 Martin Liska <mliska@suse.cz>
|
||||||
|
|
||||||
* g++.dg/gcov/pr84548.C: Remove remove-gcda.
|
* g++.dg/gcov/pr84548.C: Remove remove-gcda.
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
/* { dg-lto-do link } */
|
||||||
|
|
||||||
|
int HeaderStr;
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
char HeaderStr[1];
|
||||||
|
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue