diff options
author | Michael Matz <matz@suse.de> | 2009-09-17 11:11:58 +0000 |
---|---|---|
committer | Michael Matz <matz@gcc.gnu.org> | 2009-09-17 11:11:58 +0000 |
commit | 040c6d51daadf242937549fb7bc0e5a375fa1666 (patch) | |
tree | 6faf3b30da5c11513bde779849161da980479ec6 /gcc/tree.c | |
parent | 0714aafa1fd25aa1524869f4284b752e1a0e3161 (diff) | |
download | gcc-040c6d51daadf242937549fb7bc0e5a375fa1666.tar.gz |
re PR middle-end/41347 (ICE with -O3 or '-O2 -finline-functions')
PR middle-end/41347
* tree.c (build_type_attribute_qual_variant): Export.
* tree.h (build_type_attribute_qual_variant): Declare.
* tree-inline.c (remap_type_1): Use it to build variants with
the original qualifiers and attributes.
testsuite/
* gfortran.dg/pr41347.f90: New test.
From-SVN: r151799
Diffstat (limited to 'gcc/tree.c')
-rw-r--r-- | gcc/tree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree.c b/gcc/tree.c index d2243e5d1bd..846dd983ea7 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -4034,7 +4034,7 @@ iterative_hash_host_wide_int (HOST_WIDE_INT val, hashval_t val2) Record such modified types already made so we don't make duplicates. */ -static tree +tree build_type_attribute_qual_variant (tree ttype, tree attribute, int quals) { if (! attribute_list_equal (TYPE_ATTRIBUTES (ttype), attribute)) |