PR middle-end/63884
c-family/
* array-notation-common.c (is_sec_implicit_index_fn): Return false
for NULL fndecl.
(extract_array_notation_exprs): Return for NULL node.
testsuite/
* c-c++-common/cilk-plus/AN/pr63884.c: New test.
From-SVN: r217612
+2014-11-15 Marek Polacek <polacek@redhat.com>
+
+ PR middle-end/63884
+ * array-notation-common.c (is_sec_implicit_index_fn): Return false
+ for NULL fndecl.
+ (extract_array_notation_exprs): Return for NULL node.
+
2014-11-12 Joseph Myers <joseph@codesourcery.com>
* c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
bool
is_sec_implicit_index_fn (tree fndecl)
{
+ if (!fndecl)
+ return false;
+
if (TREE_CODE (fndecl) == ADDR_EXPR)
fndecl = TREE_OPERAND (fndecl, 0);
vec<tree, va_gc> **array_list)
{
size_t ii = 0;
+
+ if (!node)
+ return;
if (TREE_CODE (node) == ARRAY_NOTATION_REF)
{
vec_safe_push (*array_list, node);
+2014-11-15 Marek Polacek <polacek@redhat.com>
+
+ PR middle-end/63884
+ * c-c++-common/cilk-plus/AN/pr63884.c: New test.
+
2014-11-15 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
PR target/60104
--- /dev/null
+/* PR middle-end/63884 */
+/* { dg-do compile } */
+/* { dg-options "-fcilkplus" } */
+
+int
+foo (int x, int y)
+{
+ int r;
+ return __builtin_sadd_overflow (x, y, &r);
+}