+2015-02-26 Martin Liska <mliska@suse.cz>
+
+ * resolve.c: Rename enum 'comparison' to 'compare_result' as
+ solution for -Wodr issue.
+
2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
PR libgomp/64625
typedef enum
{ CMP_LT, CMP_EQ, CMP_GT, CMP_UNKNOWN }
-comparison;
+compare_result;
/* Compare two integer expressions. */
-static comparison
+static compare_result
compare_bound (gfc_expr *a, gfc_expr *b)
{
int i;
/* Compare an integer expression with an integer. */
-static comparison
+static compare_result
compare_bound_int (gfc_expr *a, int b)
{
int i;
/* Compare an integer expression with a mpz_t. */
-static comparison
+static compare_result
compare_bound_mpz_t (gfc_expr *a, mpz_t b)
{
int i;
#define AR_START (ar->start[i] ? ar->start[i] : as->lower[i])
#define AR_END (ar->end[i] ? ar->end[i] : as->upper[i])
- comparison comp_start_end = compare_bound (AR_START, AR_END);
+ compare_result comp_start_end = compare_bound (AR_START, AR_END);
/* Check for zero stride, which is not allowed. */
if (compare_bound_int (ar->stride[i], 0) == CMP_EQ)