This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[google] Add new flag -fstrict-enum-precision (issue4128067)


Reviewers: gcc-patches_gcc.gnu.org, simonb,

Description:

This feature has not yet been contributed to trunk.  Adding the
flag in google/integration to prevent build breakage due to
unknown flags.

Tested on x86_64. Committed to google/integration.


2011-02-06 Diego Novillo <dnovillo@google.com>


	* common.opt (fstrict-enum-precision): New placeholder
	flag.

diff --git a/gcc/ChangeLog.google-integration
b/gcc/ChangeLog.google-integration
index 68694e3..9fe1818 100644
--- a/gcc/ChangeLog.google-integration
+++ b/gcc/ChangeLog.google-integration
@@ -1,3 +1,8 @@
+2011-02-06  Diego Novillo  <dnovillo@google.com>
+
+	* common.opt (fstrict-enum-precision): New placeholder
+	flag.
+
 2011-02-02  Diego Novillo  <dnovillo@google.com>

 	Mainline merge r169512.
diff --git a/gcc/common.opt b/gcc/common.opt
index 0a1bf0c..9ed6216 100644
--- a/gcc/common.opt
+++ b/gcc/common.opt
@@ -1990,6 +1990,10 @@ ftree-vrp
 Common Report Var(flag_tree_vrp) Init(0) Optimization
 Perform Value Range Propagation on trees

+fstrict-enum-precision
+Common Report Var(flag_strict_enum_precision) Init(1) Optimization
+Perform transformations based on enum precision
+
 funit-at-a-time
 Common Report Var(flag_unit_at_a_time) Init(1) Optimization
 Compile whole compilation unit at a time


Please review this at http://codereview.appspot.com/4128067/


Affected files:
  M gcc/ChangeLog.google-integration
  M gcc/common.opt


Index: gcc/ChangeLog.google-integration
diff --git a/gcc/ChangeLog.google-integration b/gcc/ChangeLog.google-integration
index 68694e30ebdbc6a14601a9544fbcf5860557de22..9fe1818657e8ef2c47abd68f00ead0e952d7311a 100644
--- a/gcc/ChangeLog.google-integration
+++ b/gcc/ChangeLog.google-integration
@@ -1,3 +1,8 @@
+2011-02-06 Diego Novillo <dnovillo@google.com>
+
+ * common.opt (fstrict-enum-precision): New placeholder
+ flag.
+
2011-02-02 Diego Novillo <dnovillo@google.com>


Mainline merge r169512.
Index: gcc/common.opt
diff --git a/gcc/common.opt b/gcc/common.opt
index 0a1bf0c4a1803061ae8bc81b7cadcb69770f0ec5..9ed6216b0ea22d1575eb8e20130f181a1374b30a 100644
--- a/gcc/common.opt
+++ b/gcc/common.opt
@@ -1990,6 +1990,10 @@ ftree-vrp
Common Report Var(flag_tree_vrp) Init(0) Optimization
Perform Value Range Propagation on trees


+fstrict-enum-precision
+Common Report Var(flag_strict_enum_precision) Init(1) Optimization
+Perform transformations based on enum precision
+
 funit-at-a-time
 Common Report Var(flag_unit_at_a_time) Init(1) Optimization
 Compile whole compilation unit at a time



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]