function.c (free_after_compilation): Clear PROP_cfg in f->curr_properties.
authorPrathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
Tue, 7 Jul 2015 11:19:27 +0000 (11:19 +0000)
committerPrathamesh Kulkarni <prathamesh3492@gcc.gnu.org>
Tue, 7 Jul 2015 11:19:27 +0000 (11:19 +0000)
2015-07-07  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>

* function.c (free_after_compilation): Clear PROP_cfg in f->curr_properties.
testsuite/
* gcc.dg/dx-test.c: New test-case.

From-SVN: r225508

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

index 2cff379df60cc18470da5214a51ca0751f501cfb..d955bc0eae650fb9ff57654c6530780c8c611f6b 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 8ee79d30a1487fa98dfd850fe5c0d05b67b4fdb3..ea0d6e87b622885ad07013623ade5c693ba9161a 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 631872176ff31a059894923cc24533b7c889cb7b..a14fbd1a2919efba8bf53779bb551c9f0d437e56 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)
+{}