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]

Re: [patch] [tuples] some aux functions


On 2/21/08 1:02 PM, Rafael Espindola wrote:

+/* Check if the conditional is of the form 'if (1 == 1)', 'if (0 == 0)',

s/the conditional/conditional statement GS/


+  'if (1 != 0)' or 'if (0 != 1)' */
+
+static inline bool
+gimple_cond_true_p(const_gimple gs) {

Brace on next line. Space after gimple_cond_true_p.

+  tree lhs = gimple_cond_lhs(gs);
+  tree rhs = gimple_cond_rhs(gs);

Space before '('.



+/* Check if the conditional is of the form 'if (1 != 1)', 'if (0 != 0)',

s/the conditional/conditional statement GS/


+  'if (1 == 0)' or 'if (0 == 1)' */
+
+static inline bool
+gimple_cond_false_p(const_gimple gs) {

Brace on next line. Space after gimple_cond_true_p.


+  tree lhs = gimple_cond_lhs(gs);
+  tree rhs = gimple_cond_rhs(gs);

Space before '('



+/* Check if the conditional is of the form 'if (var != 0)' or

s/the conditional/conditional statement GS/



OK with those changes. Thanks.



Diego.



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