summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/dwarf2out.c6
2 files changed, 11 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index c291ea5d78c..b21d8125d3e 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2003-04-18 Vincent Celier <celier@gnat.com>
+
+ * dwarf2out.c (loc_descriptor_from_tree): Treat all *_MOD_EXPR
+ and *_DIV_EXPR as TRUNC_*_EXPR.
+
2003-04-18 Mark Mitchell <mark@codesourcery.com>
* cfgrtl.c (try_redirect_by_replacing_jump): Create a basic block
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index 45a6d62126b..628ccb97627 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -8815,6 +8815,9 @@ loc_descriptor_from_tree (loc, addressp)
op = DW_OP_or;
goto do_binop;
+ case FLOOR_DIV_EXPR:
+ case CEIL_DIV_EXPR:
+ case ROUND_DIV_EXPR:
case TRUNC_DIV_EXPR:
op = DW_OP_div;
goto do_binop;
@@ -8823,6 +8826,9 @@ loc_descriptor_from_tree (loc, addressp)
op = DW_OP_minus;
goto do_binop;
+ case FLOOR_MOD_EXPR:
+ case CEIL_MOD_EXPR:
+ case ROUND_MOD_EXPR:
case TRUNC_MOD_EXPR:
op = DW_OP_mod;
goto do_binop;