Commit 4d8a9bfe by Kaveh R. Ghazi Committed by Kaveh Ghazi

decl.c, utils2.c: Fix whitespace in last change.

        * decl.c, utils2.c: Fix whitespace in last change.

From-SVN: r127359
parent 39595763
2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* decl.c, utils2.c: Fix whitespace in last change.
2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* decl.c (compare_field_bitpos): Constify. * decl.c (compare_field_bitpos): Constify.
* utils2.c (compare_elmt_bitpos): Likewise. * utils2.c (compare_elmt_bitpos): Likewise.
...@@ -5847,9 +5847,10 @@ is_variable_size (tree type) ...@@ -5847,9 +5847,10 @@ is_variable_size (tree type)
static int static int
compare_field_bitpos (const PTR rt1, const PTR rt2) compare_field_bitpos (const PTR rt1, const PTR rt2)
{ {
const_tree const field1 = * (const_tree const*) rt1; const_tree const field1 = * (const_tree const *) rt1;
const_tree const field2 = * (const_tree const*) rt2; const_tree const field2 = * (const_tree const *) rt2;
const int ret = tree_int_cst_compare (bit_position (field1), bit_position (field2)); const int ret
= tree_int_cst_compare (bit_position (field1), bit_position (field2));
return ret ? ret : (int) (DECL_UID (field1) - DECL_UID (field2)); return ret ? ret : (int) (DECL_UID (field1) - DECL_UID (field2));
} }
......
...@@ -1542,11 +1542,12 @@ build_call_raise (int msg, Node_Id gnat_node, char kind) ...@@ -1542,11 +1542,12 @@ build_call_raise (int msg, Node_Id gnat_node, char kind)
static int static int
compare_elmt_bitpos (const PTR rt1, const PTR rt2) compare_elmt_bitpos (const PTR rt1, const PTR rt2)
{ {
const_tree const elmt1 = * (const_tree const*) rt1; const_tree const elmt1 = * (const_tree const *) rt1;
const_tree const elmt2 = * (const_tree const*) rt2; const_tree const elmt2 = * (const_tree const *) rt2;
const_tree const field1 = TREE_PURPOSE (elmt1); const_tree const field1 = TREE_PURPOSE (elmt1);
const_tree const field2 = TREE_PURPOSE (elmt2); const_tree const field2 = TREE_PURPOSE (elmt2);
const int ret = tree_int_cst_compare (bit_position (field1), bit_position (field2)); const int ret
= tree_int_cst_compare (bit_position (field1), bit_position (field2));
return ret ? ret : (int) (DECL_UID (field1) - DECL_UID (field2)); return ret ? ret : (int) (DECL_UID (field1) - DECL_UID (field2));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment