OSDN Git Service

gcc/java:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 15 May 2005 18:28:29 +0000 (18:28 +0000)
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 15 May 2005 18:28:29 +0000 (18:28 +0000)
PR java/21519:
* jcf-write.c (generate_bytecode_insns) <SAVE_EXPR>: Don't call
NOTE_PUSH.
libjava:
PR java/21519:
* testsuite/libjava.compile/pr21519.java: New file.
* testsuite/libjava.compile/pr21519.no-link: New file.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@99739 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/java/ChangeLog
gcc/java/expr.c
gcc/java/jcf-write.c
libjava/ChangeLog
libjava/testsuite/libjava.compile/pr21519.java [new file with mode: 0644]
libjava/testsuite/libjava.compile/pr21519.no-link [new file with mode: 0644]

index 6341396..63b8490 100644 (file)
@@ -1,3 +1,9 @@
+2005-05-15  Tom Tromey  <tromey@redhat.com>
+
+       PR java/21519:
+       * jcf-write.c (generate_bytecode_insns) <SAVE_EXPR>: Don't call
+       NOTE_PUSH.
+
 2005-05-12  Aaron Luchko <aluchko@redhat.com>
 
         * gcj.texi: Add '-verify', '-noverify', and '-verifyremote'.
index 3a4002b..d720f0f 100644 (file)
@@ -1800,6 +1800,7 @@ create_label_decl (tree name)
                     TREE_TYPE (return_address_type_node));
   DECL_CONTEXT (decl) = current_function_decl;
   DECL_IGNORED_P (decl) = 1;
+  DECL_ARTIFICIAL (decl) = 1;
   return decl;
 }
 
index 8779040..2032fce 100644 (file)
@@ -2235,7 +2235,6 @@ generate_bytecode_insns (tree exp, int target, struct jcf_partial *state)
        {
          tree type = TREE_TYPE (exp);
          emit_load (arg, state);
-         NOTE_PUSH (TYPE_IS_WIDE (type) ? 2 : 1);
        }
       break;
     case CONVERT_EXPR:
index 76714b4..6778d0f 100644 (file)
@@ -1,5 +1,11 @@
 2005-05-15  Tom Tromey  <tromey@redhat.com>
 
+       PR java/21519:
+       * testsuite/libjava.compile/pr21519.java: New file.
+       * testsuite/libjava.compile/pr21519.no-link: New file.
+
+2005-05-15  Tom Tromey  <tromey@redhat.com>
+
        * stacktrace.cc (getLineNumberForFrame): Use _Jv_GetSafeArg.
 
 2005-05-13  Bryce McKinlay  <mckinlay@redhat.com>
diff --git a/libjava/testsuite/libjava.compile/pr21519.java b/libjava/testsuite/libjava.compile/pr21519.java
new file mode 100644 (file)
index 0000000..c836a8f
--- /dev/null
@@ -0,0 +1,8 @@
+public class pr21519 {
+  char[] source;
+  public int compute(int pos) {
+    for (int i = 0; i < pos; ++i)
+      if (!(source[i] == ' ' || source[i] == '\t')) return -1;
+    return pos;
+  }
+}
diff --git a/libjava/testsuite/libjava.compile/pr21519.no-link b/libjava/testsuite/libjava.compile/pr21519.no-link
new file mode 100644 (file)
index 0000000..e69de29