This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[committed] Fix inline_asm-2.c


I had messed gcc.dg/tree-ssa/inline_asm-2.c when I wrote it, I had forgot that
a non pure/const function (even though it ended the function) would still produce
a V_MAY_DEF.


This patch just takes that into account and fixes the test.

Thanks,
Andrew Pinski


2005-02-26 Andrew Pinski <pinskia@physics.uc.edu>


        * gcc.dg/tree-ssa/inline_asm-2.c: link_error produces
        a V_MAY_DEF also.

Index: gcc.dg/tree-ssa/inline_asm-2.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/tree-ssa/inline_asm-2.c,v
retrieving revision 1.1
diff -u -p -r1.1 inline_asm-2.c
--- gcc.dg/tree-ssa/inline_asm-2.c 26 Feb 2005 16:15:24 -0000 1.1
+++ gcc.dg/tree-ssa/inline_asm-2.c 27 Feb 2005 04:36:44 -0000
@@ -13,5 +13,5 @@ void f(char *a)
link_error ();
}


-/* There should a V_MAY_DEF for the inline-asm. */
-/* { dg-final { scan-tree-dump-times "V_MAY_DEF" 1 "alias1"} } */
+/* There should a V_MAY_DEF for the inline-asm and one for the link_error. */
+/* { dg-final { scan-tree-dump-times "V_MAY_DEF" 2 "alias1"} } */



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]