gcc/gcc/cp
Richard Biener 350792ffae re PR target/79671 (mapnik miscompilation on armv7hl since r235622)
2017-04-12  Richard Biener  <rguenther@suse.de>
	Bernd Edlinger  <bernd.edlinger@hotmail.de>

	PR middle-end/79671
	* alias.c (component_uses_parent_alias_set_from): Handle
	TYPE_TYPELESS_STORAGE.
	(get_alias_set): Likewise.
	* tree-core.h (tree_type_common): Add typeless_storage flag.
	* tree.h (TYPE_TYPELESS_STORAGE): New macro.
	* stor-layout.c (place_union_field): Set TYPE_TYPELESS_STORAGE
	for types containing members with TYPE_TYPELESS_STORAGE.
	(place_field): Likewise.
	(layout_type): Likewise for ARRAY_TYPE.
	* lto-streamer-out.c (hash_tree): Hash TYPE_TYPELESS_STORAGE.
	* tree-streamer-in.c (unpack_ts_type_common_value_fields): Stream
	TYPE_TYPELESS_STORAGE.
	* tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.

	lto/
	* lto.c (compare_tree_sccs_1): Compare TYPE_TYPELESS_STORAGE.

	cp/
	* tree.c (build_cplus_array_type): Set TYPE_TYPELESS_STORAGE
	for arrays of character or std::byte type.

	* g++.dg/torture/pr79671.C: New testcase.
	* g++.dg/lto/pr79671_0.C: Likewise.
	* g++.dg/lto/pr79671_1.c: Likewise.

Co-Authored-By: Bernd Edlinger <bernd.edlinger@hotmail.de>

From-SVN: r246866
2017-04-12 07:35:49 +00:00
..
ChangeLog re PR target/79671 (mapnik miscompilation on armv7hl since r235622) 2017-04-12 07:35:49 +00:00
ChangeLog-1993
ChangeLog-1994
ChangeLog-1995
ChangeLog-1996
ChangeLog-1997
ChangeLog-1998
ChangeLog-1999
ChangeLog-2000
ChangeLog-2001
ChangeLog-2002
ChangeLog-2003
ChangeLog-2004
ChangeLog-2005
ChangeLog-2006
ChangeLog-2007
ChangeLog-2008
ChangeLog-2009
ChangeLog-2010
ChangeLog-2011
ChangeLog-2012
ChangeLog-2013
ChangeLog-2014
ChangeLog-2015 Update copyright years. 2016-01-04 15:30:50 +01:00
ChangeLog-2016 Update copyright years. 2017-01-01 13:07:43 +01:00
ChangeLog.ptr
ChangeLog.tree-ssa
Make-lang.in Update copyright years. 2017-01-01 13:07:43 +01:00
NEWS Update copyright years. 2017-01-01 13:07:43 +01:00
call.c re PR c++/80095 (ICE with this pointer in NSDMI) 2017-04-07 18:09:55 +00:00
cfns.gperf Update copyright years. 2017-01-01 13:07:43 +01:00
cfns.h Update copyright years. 2017-01-01 13:07:43 +01:00
class.c Fix numerous typos in comments 2017-04-03 23:30:56 +01:00
config-lang.in Update copyright years. 2017-01-01 13:07:43 +01:00
constexpr.c PR c++/80294 - ICE with constexpr and inheritance. 2017-04-11 17:07:32 -04:00
constraint.cc Update copyright years. 2017-01-01 13:07:43 +01:00
cp-array-notation.c re PR c++/70565 (ICE at gimplify.c:8832 (cilkplus array extension)) 2017-01-17 16:54:55 +00:00
cp-cilkplus.c re PR translation/79019 (translatable string typo in cif-code.def:141) 2017-01-09 22:48:33 +01:00
cp-cilkplus.h Update copyright years. 2017-01-01 13:07:43 +01:00
cp-gimplify.c re PR c++/80095 (ICE with this pointer in NSDMI) 2017-04-07 18:09:55 +00:00
cp-lang.c Update copyright years. 2017-01-01 13:07:43 +01:00
cp-objcp-common.c Update copyright years. 2017-01-01 13:07:43 +01:00
cp-objcp-common.h Update copyright years. 2017-01-01 13:07:43 +01:00
cp-tree.def re PR c++/68727 (invalid offsetof expressions accepted) 2017-01-26 20:39:40 +01:00
cp-tree.h re PR libstdc++/80251 (Is the is_aggregate meta function missing?) 2017-03-31 08:40:39 +02:00
cp-ubsan.c Update copyright years. 2017-01-01 13:07:43 +01:00
cvt.c re PR c++/79184 (-Wint-in-bool-context triggered erroneously in template parameter) 2017-02-10 16:33:45 +00:00
cxx-pretty-print.c re PR c++/80296 (Broken diagnostic 'unary_plus_expr' not supported by expression) 2017-04-04 16:30:44 +00:00
cxx-pretty-print.h Update copyright years. 2017-01-01 13:07:43 +01:00
decl.c re PR c++/80370 (ICE when using structured bindings and nested generic lambdas (tsubst_decomp_names)) 2017-04-11 22:51:16 +02:00
decl.h Update copyright years. 2017-01-01 13:07:43 +01:00
decl2.c Fix numerous typos in comments 2017-04-03 23:30:56 +01:00
dump.c Update copyright years. 2017-01-01 13:07:43 +01:00
error.c re PR c++/80363 (#'vec_cond_expr' not supported by dump_expr#<expression error>) 2017-04-11 10:51:40 +02:00
except.c PR c++/80059 - ICE with noexcept and __transaction_atomic 2017-03-20 15:02:09 +00:00
expr.c Update copyright years. 2017-01-01 13:07:43 +01:00
friend.c Introduce C++ support in libcc1 2017-01-31 01:02:03 +00:00
g++spec.c Update copyright years. 2017-01-01 13:07:43 +01:00
init.c re PR c++/80095 (ICE with this pointer in NSDMI) 2017-04-07 18:09:55 +00:00
lambda.c re PR c++/79264 (ICE verify_type failed) 2017-01-31 15:10:41 +00:00
lang-specs.h Update copyright years. 2017-01-01 13:07:43 +01:00
lex.c Introduce C++ support in libcc1 2017-01-31 01:02:03 +00:00
logic.cc Update copyright years. 2017-01-01 13:07:43 +01:00
mangle.c c.opt (Wnoexcept-type): New. 2017-03-04 14:21:38 -05:00
method.c PR c++/79393 DR 1658 workaround 2017-03-14 14:41:53 +00:00
name-lookup.c Fix numerous typos in comments 2017-04-03 23:30:56 +01:00
name-lookup.h Update copyright years. 2017-01-01 13:07:43 +01:00
operators.def Update copyright years. 2017-01-01 13:07:43 +01:00
optimize.c re PR c++/79899 (ICE in ctor_omit_inherited_parms at gcc/cp/method.c:576 on ARM target) 2017-03-10 16:33:04 +01:00
parser.c Fix numerous typos in comments 2017-04-03 23:30:56 +01:00
parser.h PR c++/78948 - instantiation from discarded statement 2017-01-08 01:36:10 -05:00
pt.c re PR c++/80370 (ICE when using structured bindings and nested generic lambdas (tsubst_decomp_names)) 2017-04-11 22:51:16 +02:00
ptree.c Update copyright years. 2017-01-01 13:07:43 +01:00
repo.c Update copyright years. 2017-01-01 13:07:43 +01:00
rtti.c Update copyright years. 2017-01-01 13:07:43 +01:00
search.c Revert "Allow deduction guides to look into primary template." 2017-03-06 09:44:44 -05:00
semantics.c * semantics.c (finish_template_type): Check CLASSTYPE_TEMPLATE_INFO. 2017-04-04 11:25:21 -04:00
tree.c re PR target/79671 (mapnik miscompilation on armv7hl since r235622) 2017-04-12 07:35:49 +00:00
type-utils.h Update copyright years. 2017-01-01 13:07:43 +01:00
typeck.c re PR sanitizer/80348 (UBSAN: compile time crash in ubsan_instrument_division) 2017-04-10 17:18:15 +00:00
typeck2.c re PR c++/80095 (ICE with this pointer in NSDMI) 2017-04-07 18:09:55 +00:00
vtable-class-hierarchy.c Update copyright years. 2017-01-01 13:07:43 +01:00