PR other/6782
* final.c (get_mem_expr_from_op): Return 0 if op is NULL.
* gcc.dg/verbose-asm.c: New test.
From-SVN: r53856
+2002-05-24 Jakub Jelinek <jakub@redhat.com>
+
+ PR other/6782
+ * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
+
2002-05-24 Neil Booth <neil@daikokuya.demon.co.uk>
PR preprocessor/6780
*paddressp = 0;
+ if (op == NULL)
+ return 0;
+
if (GET_CODE (op) == REG && ORIGINAL_REGNO (op) >= FIRST_PSEUDO_REGISTER)
return REGNO_DECL (ORIGINAL_REGNO (op));
else if (GET_CODE (op) != MEM)
+2002-05-24 Jakub Jelinek <jakub@redhat.com>
+
+ * gcc.dg/verbose-asm.c: New test.
+
2002-05-24 Neil Booth <neil@daikokuya.demon.co.uk>
* gcc.dg/cpp/paste12.c: New test.
--- /dev/null
+/* Test whether -fverbose-asm works. */
+/* { dg-do compile } */
+/* { dg-options "-fverbose-asm" } */
+
+void foo (int *x)
+{
+ (*x)++;
+}
+
+int bar (int *y)
+{
+ int a, b;
+ b = 10;
+ a = 26;
+ foo (&a);
+ a += 10;
+ foo (&a);
+ *y--;
+ return b;
+}
+
+int
+main (int argc, char *argv [])
+{
+ bar (&argc);
+ return 0;
+}