aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorPrathamesh Kulkarni <prathamesh.kulkarni@linaro.org>2015-07-07 11:19:27 +0000
committerPrathamesh Kulkarni <prathamesh3492@gcc.gnu.org>2015-07-07 11:19:27 +0000
commitb11f11a197219c78e58eb7dcf3b6e95b86327f0b (patch)
treee2ea6be4c5f952601c6a6540463d60136b259326 /gcc
parent3244f4cd0413e0fc8a0e235f9bac22c030f8323d (diff)
downloadgcc-b11f11a197219c78e58eb7dcf3b6e95b86327f0b.zip
gcc-b11f11a197219c78e58eb7dcf3b6e95b86327f0b.tar.gz
gcc-b11f11a197219c78e58eb7dcf3b6e95b86327f0b.tar.bz2
function.c (free_after_compilation): Clear PROP_cfg in f->curr_properties.
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/function.c1
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/gcc.dg/dx-test.c5
4 files changed, 14 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 2cff379..d955bc0 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/function.c b/gcc/function.c
index 8ee79d3..ea0d6e8 100644
--- a/gcc/function.c
+++ b/gcc/function.c
@@ -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;
}
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 6318721..a14fbd1 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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
index 0000000..579ccfb
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/dx-test.c
@@ -0,0 +1,5 @@
+/* { dg-do compile } */
+/* { dg-options "-dx" } */
+
+void f(void)
+{}