PR middle-end/33074
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 15 Aug 2007 12:11:38 +0000 (12:11 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 15 Aug 2007 12:11:38 +0000 (12:11 +0000)
* emit-rtl.c (try_split): Use INSN_LIST instead of EXPR_LIST for
REG_LIBCALL note.

* gfortran.dg/pr33074.f90: New test.

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

gcc/ChangeLog
gcc/emit-rtl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/pr33074.f90 [new file with mode: 0644]

index 246cd5c..dd6567a 100644 (file)
@@ -1,3 +1,9 @@
+2007-08-15  Jakub Jelinek  <jakub@redhat.com>
+
+       PR middle-end/33074
+       * emit-rtl.c (try_split): Use INSN_LIST instead of EXPR_LIST for
+       REG_LIBCALL note.
+
 2007-08-14  Daniel Berlin  <dberlin@dberlin.org>
 
        * tree-pass.h (PROP_pta): Removed.
index 745a10a..6e7230d 100644 (file)
@@ -3274,7 +3274,7 @@ try_split (rtx pat, rtx trial, int last)
          /* Relink the insns with REG_LIBCALL note and with REG_RETVAL note 
             after split.  */
          REG_NOTES (insn_last) 
-           = gen_rtx_EXPR_LIST (REG_LIBCALL,
+           = gen_rtx_INSN_LIST (REG_LIBCALL,
                                 XEXP (note, 0),
                                 REG_NOTES (insn_last)); 
 
index 45fc15c..86abadd 100644 (file)
@@ -1,5 +1,8 @@
 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
 
+       PR middle-end/33074
+       * gfortran.dg/pr33074.f90: New test.
+
        PR c++/32992
        * g++.dg/opt/nrv14.C: New test.
 
diff --git a/gcc/testsuite/gfortran.dg/pr33074.f90 b/gcc/testsuite/gfortran.dg/pr33074.f90
new file mode 100644 (file)
index 0000000..3538d65
--- /dev/null
@@ -0,0 +1,8 @@
+! PR middle-end/33074
+! { dg-do compile }
+! { dg-options "-O" }
+
+subroutine pr33074(a, w)
+  real a(1), w(1)
+  a(1) = 2.0**int(w(1))
+end