Commit 2f757e4a by Jakub Jelinek Committed by Jakub Jelinek

re PR debug/45500 (ICE: in rtl_for_decl_init, at dwarf2out.c:16307 with -g -msse and using v16qi)

	PR debug/45500
	* dwarf2out.c (rtl_for_decl_init): Give up for all generic vectors,
	not just generic vectors with BLKmode.

	* gcc.target/i386/pr45500.c: New test.

From-SVN: r163803
parent 4d948885
2010-09-03 Jakub Jelinek <jakub@redhat.com>
PR debug/45500
* dwarf2out.c (rtl_for_decl_init): Give up for all generic vectors,
not just generic vectors with BLKmode.
2010-09-03 Richard Guenther <rguenther@suse.de> 2010-09-03 Richard Guenther <rguenther@suse.de>
* tree.def (TARGET_MEM_REF): Merge TMR_SYMBOL and TMR_BASE. * tree.def (TARGET_MEM_REF): Merge TMR_SYMBOL and TMR_BASE.
......
...@@ -16256,7 +16256,8 @@ rtl_for_decl_init (tree init, tree type) ...@@ -16256,7 +16256,8 @@ rtl_for_decl_init (tree init, tree type)
; ;
/* Vectors only work if their mode is supported by the target. /* Vectors only work if their mode is supported by the target.
FIXME: generic vectors ought to work too. */ FIXME: generic vectors ought to work too. */
else if (TREE_CODE (type) == VECTOR_TYPE && TYPE_MODE (type) == BLKmode) else if (TREE_CODE (type) == VECTOR_TYPE
&& !VECTOR_MODE_P (TYPE_MODE (type)))
; ;
/* If the initializer is something that we know will expand into an /* If the initializer is something that we know will expand into an
immediate RTL constant, expand it now. We must be careful not to immediate RTL constant, expand it now. We must be careful not to
......
2010-09-03 Jakub Jelinek <jakub@redhat.com>
PR debug/45500
* gcc.target/i386/pr45500.c: New test.
2010-09-03 Mingjie Xing <mingjie.xing@gmail.com> 2010-09-03 Mingjie Xing <mingjie.xing@gmail.com>
* gcc.target/mips/loongson-shift-count-truncated-1.c: New. * gcc.target/mips/loongson-shift-count-truncated-1.c: New.
......
/* PR debug/45500 */
/* { dg-do compile } */
/* { dg-options "-g -msse" } */
typedef char V __attribute__ ((__vector_size__ (16)));
static const V s = { '\n', '\r', '?', '\\' };
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