[PATCH] Fix for PR c/57490
Iyer, Balaji V
balaji.v.iyer@intel.com
Mon Jul 1 16:17:00 GMT 2013
Hello Everyone,
This patch fixes the issue in PR 57490. The issue was that, the C and C++ implementation was not handling array notations inside TRUTH_*_EXPR. I added them and added the .i test case. Is this OK for trunk?
Here are ChangeLog entries:
gcc/c/ChangeLog
+2013-07-01 Balaji V. Iyer <balaji.v.iyer@intel.com>
+
+ * c-array-notation.c (fix_conditional_array_notations_1): Added a
+ check for truth values.
+ (expand_array_notation_exprs): Added truth values case. Removed an
+ unwanted else. Added for-loop to walk through subtrees in default
+ case.
+
gcc/cp/ChangeLog
+2013-07-01 Balaji V. Iyer <balaji.v.iyer@intel.com>
+
+ * cp-array-notation.c (cp_expand_cond_array_notations): Added a
+ check for truth values.
+ (expand_array_notation_exprs): Added truth values case. Removed an
+ unwanted else. Added for-loop to walk through subtrees in default
+ case.
+
gcc/testsuite/ChangeLog
+2013-07-01 Balaji V. Iyer <balaji.v.iyer@intel.com>
+
+ PR c/57490
+ * c-c++-common/cilk-plus/AN/pr57490.i: New test.
+ * gcc.dg/cilk-plus/cilk-plus.exp: Added compilation of .i files.
+
Thanks,
Balaji V. Iyer.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pr57490.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20130701/e11d4afe/attachment.txt>
More information about the Gcc-patches
mailing list