Output the correct location for an existing cilk error message.
gcc/c-family/:
2014-11-10 Andi Kleen <ak@linux.intel.com>
* cilk.c (recognize_spawn): Use expression location
for error message.
From-SVN: r217333
+2014-11-10 Andi Kleen <ak@linux.intel.com>
+
+ * cilk.c (recognize_spawn): Use expression location
+ for error message.
+
2014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
* c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
}
/* _Cilk_spawn can't be wrapped in expression such as PLUS_EXPR. */
else if (contains_cilk_spawn_stmt (exp))
- error ("invalid use of %<_Cilk_spawn%>");
+ error_at (EXPR_LOCATION (exp), "invalid use of %<_Cilk_spawn%>");
return spawn_found;
}