Commit 22fe969f by Tom de Vries Committed by Tom de Vries

Mark ifn_va_arg with ECF_NOTHROW

2015-04-21  Tom de Vries  <tom@codesourcery.com>

	PR tree-optimization/65802
	* internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.

	* g++.dg/pr65802.C: New test.

From-SVN: r222259
parent efb25f54
2015-04-21 Tom de Vries <tom@codesourcery.com>
PR tree-optimization/65802
* internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
* common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
......
......@@ -62,4 +62,4 @@ DEF_INTERNAL_FN (ADD_OVERFLOW, ECF_CONST | ECF_LEAF | ECF_NOTHROW, NULL)
DEF_INTERNAL_FN (SUB_OVERFLOW, ECF_CONST | ECF_LEAF | ECF_NOTHROW, NULL)
DEF_INTERNAL_FN (MUL_OVERFLOW, ECF_CONST | ECF_LEAF | ECF_NOTHROW, NULL)
DEF_INTERNAL_FN (TSAN_FUNC_EXIT, ECF_NOVOPS | ECF_LEAF | ECF_NOTHROW, NULL)
DEF_INTERNAL_FN (VA_ARG, 0, NULL)
DEF_INTERNAL_FN (VA_ARG, ECF_NOTHROW, NULL)
2015-04-21 Tom de Vries <tom@codesourcery.com>
PR tree-optimization/65802
* g++.dg/pr65802.C: New test.
2015-04-21 Bin Cheng <bin.cheng@arm.com>
PR testsuite/65767
......
// { dg-do compile }
// { dg-options "-O0" }
typedef int tf ();
struct S
{
tf m_fn1;
} a;
void
fn1 ()
{
try
{
__builtin_va_list c;
{
int *d = __builtin_va_arg (c, int *);
int **e = &d;
__asm__("" : "=d"(e));
a.m_fn1 ();
}
a.m_fn1 ();
}
catch (...)
{
}
}
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