(expand_computed_goto): Convert from ptr_mode to Pmode.
authorRichard Kenner <kenner@gcc.gnu.org>
Fri, 7 Apr 1995 16:36:39 +0000 (12:36 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Fri, 7 Apr 1995 16:36:39 +0000 (12:36 -0400)
From-SVN: r9331

gcc/stmt.c

index eb2770603ff76c2cccd3af200e5ccab54d2689f5..36fe26024cd15a450cf1a489db73776dd1f03f71 100644 (file)
@@ -610,6 +610,10 @@ expand_computed_goto (exp)
     {
       rtx x = expand_expr (exp, NULL_RTX, VOIDmode, 0);
       emit_queue ();
+
+#ifdef POINTERS_EXTEND_UNSIGNED
+      x = convert_memory_address (Pmode, x);
+#endif
       emit_indirect_jump (x);
     }
 }