2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
authorprathamesh3492 <prathamesh3492@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 7 Jul 2015 11:19:27 +0000 (11:19 +0000)
committerprathamesh3492 <prathamesh3492@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 7 Jul 2015 11:19:27 +0000 (11:19 +0000)
* function.c (free_after_compilation): Clear PROP_cfg in f->curr_properties.
testsuite/
* gcc.dg/dx-test.c: New test-case.

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

gcc/ChangeLog
gcc/function.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/dx-test.c [new file with mode: 0644]

index 2cff379..d955bc0 100644 (file)
@@ -1,3 +1,7 @@
+2015-07-07  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
+
+       * function.c (free_after_compilation): Clear PROP_cfg in f->curr_properties.
+
 2015-07-07  Richard Biener  <rguenther@suse.de>
 
        * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
index 8ee79d3..ea0d6e8 100644 (file)
@@ -216,6 +216,7 @@ free_after_compilation (struct function *f)
   f->eh = NULL;
   f->machine = NULL;
   f->cfg = NULL;
+  f->curr_properties &= ~PROP_cfg;
 
   regno_reg_rtx = NULL;
 }
index 6318721..a14fbd1 100644 (file)
@@ -1,3 +1,7 @@
+2015-07-07  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
+
+       * gcc.dg/dx-test.c: New test-case.
+
 2015-07-07  Andre Vehreschild  <vehre@gmx.de>
 
        PR fortran/66578
diff --git a/gcc/testsuite/gcc.dg/dx-test.c b/gcc/testsuite/gcc.dg/dx-test.c
new file mode 100644 (file)
index 0000000..579ccfb
--- /dev/null
@@ -0,0 +1,5 @@
+/* { dg-do compile } */
+/* { dg-options "-dx" } */
+
+void f(void)
+{}