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]

[PATCH][1/3] Make parallelize_loops static


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
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


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