diff mbox

[Cilkplus] Patch to remove CILKPLUS IMPLEMENTED macro

Message ID 2950715866004049A240A2F9BB410E7315FB28F60D@azsmsx502.amr.corp.intel.com
State New
Headers show

Commit Message

Iyer, Balaji V Nov. 11, 2011, 4:13 p.m. UTC
Hello Everyone,
    This patch is for the Cilkplus branch, affecting both C and C++ compilers. This patch will remove the CILKPLUS_IMPLEMENTED macro and all the #ifdef and #ifndef that uses it.

   This is patch #3.

Thanks,

Balaji V. Iyer.
diff mbox

Patch

diff --git a/gcc/ChangeLog.cilk b/gcc/ChangeLog.cilk
index 511d8f7..ea3dc6e 100644
--- a/gcc/ChangeLog.cilk
+++ b/gcc/ChangeLog.cilk
@@ -4,6 +4,8 @@ 
 	to (tree *).
 	(for_local_cb): Likewise.
 	(wrapper_local_cb): Likewise.
+	* opts.c: Removed the CILKPLUS_IMPLEMENTED macro and the #ifdef and
+	#ifndefs that uses this macro.
 
 2011-10-22  Balaji V. Iyer  <balaji.v.iyer@intel.com>
 
diff --git a/gcc/opts.c b/gcc/opts.c
index d6732d5..10be701 100644
--- a/gcc/opts.c
+++ b/gcc/opts.c
@@ -36,7 +36,6 @@  along with GCC; see the file COPYING3.  If not see
 #include "common/common-target.h"
 
 
-#define CILKPLUS_IMPLEMENTED /* bviyer: Please do not remove this #define */
 
 /* Indexed by enum debug_info_type.  */
 const char *const debug_type_names[] =
@@ -424,9 +423,6 @@  maybe_default_options (struct gcc_options *opts,
 static const struct default_options default_options_table[] =
   {
     /* -O1 optimizations.  */
-#ifdef CILKPLUS_IMPLEMENTED
-    { OPT_LEVELS_1_PLUS, OPT_ftree_vectorize, NULL, 1 },
-#endif
     { OPT_LEVELS_1_PLUS, OPT_fdefer_pop, NULL, 1 },
 #ifdef DELAY_SLOTS
     { OPT_LEVELS_1_PLUS, OPT_fdelayed_branch, NULL, 1 },
@@ -503,9 +499,7 @@  static const struct default_options default_options_table[] =
     { OPT_LEVELS_1_PLUS, OPT_finline_functions_called_once, NULL, 1 },
     { OPT_LEVELS_3_PLUS, OPT_funswitch_loops, NULL, 1 },
     { OPT_LEVELS_3_PLUS, OPT_fgcse_after_reload, NULL, 1 },
-#ifndef CILKPLUS_IMPLEMENTED
     { OPT_LEVELS_3_PLUS, OPT_ftree_vectorize, NULL, 1 },
-#endif
     { OPT_LEVELS_3_PLUS, OPT_fipa_cp_clone, NULL, 1 },
 
     /* -Ofast adds optimizations to -O3.  */