[Cilkplus] Patches about Array Notations
Hello Everyone, Here are seven patches about array notations that were submitted to GCC patches mailing list for the Cilkplus branch. If anyone finds any problems or have any objections, please let me know. Otherwise, I will check them into the Cilkplus branch Monday. Here are the patch emails: http://gcc.gnu.org/ml/gcc-patches/2011-12/msg00691.html http://gcc.gnu.org/ml/gcc-patches/2011-12/msg01397.html http://gcc.gnu.org/ml/gcc-patches/2011-12/msg01398.html http://gcc.gnu.org/ml/gcc-patches/2011-12/msg01473.html http://gcc.gnu.org/ml/gcc-patches/2011-12/msg01581.html http://gcc.gnu.org/ml/gcc-patches/2011-12/msg01667.html http://gcc.gnu.org/ml/gcc-patches/2011-12/msg01698.html Thanks, Balaji V. Iyer.
MAINTAINERS: Add Self
Hello Everyone, Just added myself under Write After Approval. I am cut and pasting the patch below. Here is the Changelog entry: 2012-01-02 Balaji V. Iyer * MAINTAINERS (Write After Approval): Add myself. Index: MAINTAINERS === --- MAINTAINERS (revision 182820) +++ MAINTAINERS (working copy) @@ -392,6 +392,7 @@ Andrew John Hughes gnu_and...@member.fsf.org Andy Hutchinson hutchinsona...@aim.com Bernardo Innocenti ber...@develer.com +Balaji V. Iyer bvi...@gmail.com Daniel Jacobowitz d...@false.org Andreas Jaeger a...@suse.de Harsha Jagasia harsha.jaga...@amd.com Thanks, Balaji V. Iyer.
[Cilkplus] Updated Copyright year in all Cilkplus specific files
Hello Everyone, I just updated the copyright year in all the cilkplus specific files in the Cilkplus branch. I also corrected a wordwrap problem in one of the files. Here is the patch for what I updated. Thanks, Balaji V. Iyer. Index: pragma_simd.c === --- pragma_simd.c (revision 183162) +++ pragma_simd.c (working copy) @@ -1,7 +1,7 @@ /* This file is part of the Intel(R) Cilk(TM) Plus support - This file contains routines to handle PRAGMA SIMD assignments by the - vectorizer. - Copyright (C) 2011 Free Software Foundation, Inc. + This file contains routines to handle PRAGMA SIMD + assignments by the vectorizer. + Copyright (C) 2011, 2012 Free Software Foundation, Inc. Contributed by Balaji V. Iyer , Intel Corporation Index: cp/cilk.c === --- cp/cilk.c (revision 183162) +++ cp/cilk.c (working copy) @@ -1,5 +1,5 @@ /* C++ Functions to handle Intel(R) Cilk(TM) Plus Specific functions. - Copyright (C) 2011 Free Software Foundation, Inc. + Copyright (C) 2011, 2012 Free Software Foundation, Inc. Contributed by Balaji V. Iyer , Intel Corporation. Index: cilk.c === --- cilk.c (revision 183162) +++ cilk.c (working copy) @@ -1,6 +1,6 @@ /* This file is part of the Intel(R) Cilk(TM) Plus support This file contains the CilkPlus Intrinsics - Copyright (C) 2011 Free Software Foundation, Inc. + Copyright (C) 2011, 2012 Free Software Foundation, Inc. Contributed by Balaji V. Iyer , Intel Corporation Index: cilk.h === --- cilk.h (revision 183162) +++ cilk.h (working copy) @@ -1,6 +1,6 @@ /* This file is part of the Intel(R) Cilk(TM) Plus support This file contains Cilk Support files. - Copyright (C) 2011 Free Software Foundation, Inc. + Copyright (C) 2011, 2012 Free Software Foundation, Inc. Contributed by Balaji V. Iyer , Intel Corporation Index: cilk-spawn.c === --- cilk-spawn.c (revision 183162) +++ cilk-spawn.c (working copy) @@ -1,6 +1,6 @@ /* This file is part of the Intel(R) Cilk(TM) Plus support This file contains cilk functions for C language support - Copyright (C) 2011 Free Software Foundation, Inc. + Copyright (C) 2011, 2012 Free Software Foundation, Inc. Contributed by Balaji V. Iyer , Intel Corporation
Re: [Bug c++/47791] finish function is using literal value instead of a #defined one
Hello Everyone, Here is a patch to fix this bug. Please let me know if it is OK for me to commit this into trunk. Here is the Changelog entry: === 2012-01-28 Balaji V. Iyer * optimize.c (maybe_clone_body): Replace '0' in finish_function parameter with "FF_DEFAULT." * decl.c (end_cleanup_fn): Likewise. * method.c (synthesize_method): Likewise. * pt.c (instantiate_decl): Likewise. * decl2.c (finish_objects): Likewise. (finish_static_storage_duration_function): Likewise. * parser.c (cp_parser_lambda_body): Replaced all occurances of '0', '1', and '2' in finish_function parameters with "FF_DEFAULT," "FF_PRE_PARSED," and "FF_INCLASS_INLINE," respectively. * semantics.c (maybe_add_lambda_conv_op): Replaced '2' in finish_function with "FF_INCLASS_INLINE." * cp-tree.h: Added FF_DEFAULT, FF_PRE_PARSED and FF_INCLASS_INLINE. Thanks, Balaji V. Iyer. On Sat, Jan 28, 2012 at 12:56 AM, pinskia at gcc dot gnu.org wrote: > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47791 > > Andrew Pinski changed: > > What |Removed |Added > > Status|UNCONFIRMED |NEW > Last reconfirmed| |2012-01-28 > Summary|finish function is using |finish function is using > |absolute value instead of |literal value instead of a > |the #defined one |#defined one > Ever Confirmed|0 |1 > > --- Comment #2 from Andrew Pinski 2012-01-28 > 05:56:07 UTC --- > Confirmed, > > -- > Configure bugmail: http://gcc.gnu.org/bugzilla/userprefs.cgi?tab=email > --- You are receiving this mail because: --- > You reported the bug. Index: cp/optimize.c === --- cp/optimize.c (revision 183668) +++ cp/optimize.c (working copy) @@ -415,7 +415,7 @@ cp_function_chain->can_throw = !TREE_NOTHROW (fn); /* Now, expand this function into RTL, if appropriate. */ - finish_function (0); + finish_function (FF_DEFAULT); BLOCK_ABSTRACT_ORIGIN (DECL_INITIAL (clone)) = DECL_INITIAL (fn); if (alias) { Index: cp/decl.c === --- cp/decl.c (revision 183668) +++ cp/decl.c (working copy) @@ -6592,7 +6592,7 @@ static void end_cleanup_fn (void) { - expand_or_defer_fn (finish_function (0)); + expand_or_defer_fn (finish_function (FF_DEFAULT)); pop_from_top_level (); } Index: cp/method.c === --- cp/method.c (revision 183668) +++ cp/method.c (working copy) @@ -771,7 +771,7 @@ } finish_function_body (stmt); - expand_or_defer_fn (finish_function (0)); + expand_or_defer_fn (finish_function (FF_DEFAULT)); input_location = save_input_location; Index: cp/pt.c === --- cp/pt.c (revision 183668) +++ cp/pt.c (working copy) @@ -18750,7 +18750,7 @@ local_specializations = saved_local_specializations; /* Finish the function. */ - d = finish_function (0); + d = finish_function (FF_DEFAULT); expand_or_defer_fn (d); } Index: cp/semantics.c === --- cp/semantics.c (revision 183668) +++ cp/semantics.c (working copy) @@ -9332,7 +9332,7 @@ finish_compound_stmt (compound_stmt); finish_function_body (body); - expand_or_defer_fn (finish_function (2)); + expand_or_defer_fn (finish_function (SF_INCLASS_INLINE)); /* Generate the body of the conversion op. */ @@ -9346,7 +9346,7 @@ finish_compound_stmt (compound_stmt); finish_function_body (body); - expand_or_defer_fn (finish_function (2)); + expand_or_defer_fn (finish_function (FF_INCLASS_INLINE)); if (nested) pop_function_context (); Index: cp/decl2.c === --- cp/decl2.c (revision 183668) +++ cp/decl2.c (working copy) @@ -2833,7 +2833,7 @@ /* Finish up. */ finish_compound_stmt (body); - fn = finish_function (0); + fn = finish_function (FF_DEFAULT); if (method_type == 'I') { @@ -2975,7 +2975,7 @@ { /* Close out the function. */ finish_compound_stmt (body); - expand_or_defer_fn (finish_function (0)); + expand_or_defer_fn (finish_function (FF_DEFAULT)); } /* Return the information about the indicated PRIORITY level.
[PATCH] [Bug c++/47791] finish function is using literal value instead of a #defined one
Sorry..forgot to put the [PATCH] tag. -- Forwarded message -- From: Balaji V. Iyer Date: Sat, Jan 28, 2012 at 12:55 PM Subject: Re: [Bug c++/47791] finish function is using literal value instead of a #defined one To: gcc-patches@gcc.gnu.org Hello Everyone, Here is a patch to fix this bug. Please let me know if it is OK for me to commit this into trunk. Here is the Changelog entry: === 2012-01-28 Balaji V. Iyer * optimize.c (maybe_clone_body): Replace '0' in finish_function parameter with "FF_DEFAULT." * decl.c (end_cleanup_fn): Likewise. * method.c (synthesize_method): Likewise. * pt.c (instantiate_decl): Likewise. * decl2.c (finish_objects): Likewise. (finish_static_storage_duration_function): Likewise. * parser.c (cp_parser_lambda_body): Replaced all occurances of '0', '1', and '2' in finish_function parameters with "FF_DEFAULT," "FF_PRE_PARSED," and "FF_INCLASS_INLINE," respectively. * semantics.c (maybe_add_lambda_conv_op): Replaced '2' in finish_function with "FF_INCLASS_INLINE." * cp-tree.h: Added FF_DEFAULT, FF_PRE_PARSED and FF_INCLASS_INLINE. Thanks, Balaji V. Iyer. On Sat, Jan 28, 2012 at 12:56 AM, pinskia at gcc dot gnu.org wrote: > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47791 > > Andrew Pinski changed: > > What |Removed |Added > > Status|UNCONFIRMED |NEW > Last reconfirmed| |2012-01-28 > Summary|finish function is using |finish function is using > |absolute value instead of |literal value instead of a > |the #defined one |#defined one > Ever Confirmed|0 |1 > > --- Comment #2 from Andrew Pinski 2012-01-28 > 05:56:07 UTC --- > Confirmed, > > -- > Configure bugmail: http://gcc.gnu.org/bugzilla/userprefs.cgi?tab=email > --- You are receiving this mail because: --- > You reported the bug. Index: cp/optimize.c === --- cp/optimize.c (revision 183668) +++ cp/optimize.c (working copy) @@ -415,7 +415,7 @@ cp_function_chain->can_throw = !TREE_NOTHROW (fn); /* Now, expand this function into RTL, if appropriate. */ - finish_function (0); + finish_function (FF_DEFAULT); BLOCK_ABSTRACT_ORIGIN (DECL_INITIAL (clone)) = DECL_INITIAL (fn); if (alias) { Index: cp/decl.c === --- cp/decl.c (revision 183668) +++ cp/decl.c (working copy) @@ -6592,7 +6592,7 @@ static void end_cleanup_fn (void) { - expand_or_defer_fn (finish_function (0)); + expand_or_defer_fn (finish_function (FF_DEFAULT)); pop_from_top_level (); } Index: cp/method.c === --- cp/method.c (revision 183668) +++ cp/method.c (working copy) @@ -771,7 +771,7 @@ } finish_function_body (stmt); - expand_or_defer_fn (finish_function (0)); + expand_or_defer_fn (finish_function (FF_DEFAULT)); input_location = save_input_location; Index: cp/pt.c === --- cp/pt.c (revision 183668) +++ cp/pt.c (working copy) @@ -18750,7 +18750,7 @@ local_specializations = saved_local_specializations; /* Finish the function. */ - d = finish_function (0); + d = finish_function (FF_DEFAULT); expand_or_defer_fn (d); } Index: cp/semantics.c === --- cp/semantics.c (revision 183668) +++ cp/semantics.c (working copy) @@ -9332,7 +9332,7 @@ finish_compound_stmt (compound_stmt); finish_function_body (body); - expand_or_defer_fn (finish_function (2)); + expand_or_defer_fn (finish_function (SF_INCLASS_INLINE)); /* Generate the body of the conversion op. */ @@ -9346,7 +9346,7 @@ finish_compound_stmt (compound_stmt); finish_function_body (body); - expand_or_defer_fn (finish_function (2)); + expand_or_defer_fn (finish_function (FF_INCLASS_INLINE)); if (nested) pop_function_context (); Index: cp/decl2.c === --- cp/decl2.c (revision 183668) +++ cp/decl2.c (working copy) @@ -2833,7 +2833,7 @@ /* Finish up. */ finish_compound_stmt (body); - fn = finish_function (0); + fn = finish_function (FF_DEFAULT); if (method_type == 'I') { @@ -2975,7