diff mbox

[1/3] Make parallelize_loops static

Message ID 5509B41E.8020607@mentor.com
State New
Headers show

Commit Message

Tom de Vries March 18, 2015, 5:21 p.m. UTC
Hi,

this patch makes parallelize_loops static. I think the fact that it was extern 
was a left-over from the times that the parloops pass was not located in 
tree-parloops.c.

bootstrapped and reg-tested on x86_64.

OK for stage4 trunk?

Thanks,
- Tom

Comments

Richard Biener March 18, 2015, 6:14 p.m. UTC | #1
On March 18, 2015 6:21:34 PM GMT+01:00, Tom de Vries <Tom_deVries@mentor.com> wrote:
>Hi,
>
>this patch makes parallelize_loops static. I think the fact that it was
>extern 
>was a left-over from the times that the parloops pass was not located
>in 
>tree-parloops.c.
>
>bootstrapped and reg-tested on x86_64.
>
>OK for stage4 trunk?

OK.

Thanks,
Richard.

>Thanks,
>- Tom
diff mbox

Patch

Make parallelize_loops static

2015-03-18  Tom de Vries  <tom@codesourcery.com>

	* tree-parloops.c (parallelize_loops): Make static.
	* tree-parloops.h (parallelize_loops): Remove extern declaration.
---
 gcc/tree-parloops.c | 2 +-
 gcc/tree-parloops.h | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/gcc/tree-parloops.c b/gcc/tree-parloops.c
index fbb9eeb..a584460 100644
--- a/gcc/tree-parloops.c
+++ b/gcc/tree-parloops.c
@@ -2153,7 +2153,7 @@  try_create_reduction_list (loop_p loop,
    primitives.  Returns true if some loop was parallelized, false
    otherwise.  */
 
-bool
+static bool
 parallelize_loops (void)
 {
   unsigned n_threads = flag_tree_parallelize_loops;
diff --git a/gcc/tree-parloops.h b/gcc/tree-parloops.h
index 3256446..d71f0a4 100644
--- a/gcc/tree-parloops.h
+++ b/gcc/tree-parloops.h
@@ -21,6 +21,5 @@  along with GCC; see the file COPYING3.  If not see
 #define GCC_TREE_PARLOOPS_H
 
 extern bool parallelized_function_p (tree);
-extern bool parallelize_loops (void);
 
 #endif /* GCC_TREE_PARLOOPS_H */
-- 
1.9.1