re PR tree-optimization/50723 (internal compiler error: verify_ssa failed)

2011-10-14  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/50723
	* ipa-split.c (split_function): Use GSI_CONTINUE_LINKING.

	* gcc.dg/torture/pr50723.c: New testcase.

From-SVN: r179967
This commit is contained in:
Richard Guenther 2011-10-14 11:03:06 +00:00 committed by Richard Biener
parent 5fabae4e53
commit f6e52e91bd
4 changed files with 37 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2011-10-14 Richard Guenther <rguenther@suse.de>
PR tree-optimization/50723
* ipa-split.c (split_function): Use GSI_CONTINUE_LINKING.
2011-10-14 Nicola Pero <nicola.pero@meta-innovation.com>
* gengtype.c (files_rules): Added rules for objc/objc-map.h and

View file

@ -1134,7 +1134,7 @@ split_function (struct split_point *split_point)
if (!is_gimple_val (arg))
{
arg = force_gimple_operand_gsi (&gsi, arg, true, NULL_TREE,
false, GSI_NEW_STMT);
false, GSI_CONTINUE_LINKING);
VEC_replace (tree, args_to_pass, i, arg);
}
call = gimple_build_call_vec (node->decl, args_to_pass);

View file

@ -1,3 +1,8 @@
2011-10-14 Richard Guenther <rguenther@suse.de>
PR tree-optimization/50723
* gcc.dg/torture/pr50723.c: New testcase.
2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/17212

View file

@ -0,0 +1,26 @@
/* { dg-do compile } */
typedef short unsigned int wchar_t;
typedef unsigned int size_t;
int* _errno(void);
int WideCharToMultiByte (wchar_t *);
int __attribute__ ((__nonnull__ (1)))
__wcrtomb_cp (char *dst, wchar_t wc, const unsigned int cp,
const unsigned int mb_max)
{
if (cp == 0) {
if (wc > 255)
(*_errno()) = 42;
return 1;
}
else
return WideCharToMultiByte (&wc);
}
void wcsrtombs (char *dst, const wchar_t *pwc, unsigned int cp,
unsigned int mb_max)
{
if ((__wcrtomb_cp (dst, *pwc, cp, mb_max)) <= 0)
return;
if ((__wcrtomb_cp (dst, *pwc, cp, mb_max)) <= 0)
return;
}