aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc.c
diff options
context:
space:
mode:
authorSebastian Pop <sebastian.pop@amd.com>2008-01-16 16:23:20 +0000
committerSebastian Pop <spop@gcc.gnu.org>2008-01-16 16:23:20 +0000
commitdaf4935485938b5edf1314ea1043db77419492ca (patch)
tree5c0fc91026e7578c9d96d18ed7dd90235b5b54f5 /gcc/gcc.c
parenta1a5996d9ee2ae55dcc1c4e1bccb0dfb76a64caf (diff)
downloadgcc-daf4935485938b5edf1314ea1043db77419492ca.zip
gcc-daf4935485938b5edf1314ea1043db77419492ca.tar.gz
gcc-daf4935485938b5edf1314ea1043db77419492ca.tar.bz2
gcc.c (LINK_COMMAND_SPEC): Add includes and link options for libgomp when...
* gcc.c (LINK_COMMAND_SPEC): Add includes and link options for libgomp when compiling with ftree-parallelize-loops. (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops. From-SVN: r131574
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r--gcc/gcc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index 86e0df5..b03e510 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -721,7 +721,7 @@ proper position among the other output files. */
%(linker) %l " LINK_PIE_SPEC "%X %{o*} %{A} %{d} %{e*} %{m} %{N} %{n} %{r}\
%{s} %{t} %{u*} %{x} %{z} %{Z} %{!A:%{!nostdlib:%{!nostartfiles:%S}}}\
%{static:} %{L*} %(mfwrap) %(link_libgcc) %o\
- %{fopenmp:%:include(libgomp.spec)%(link_gomp)} %(mflib)\
+ %{fopenmp|ftree-parallelize-loops=*:%:include(libgomp.spec)%(link_gomp)} %(mflib)\
%{fprofile-arcs|fprofile-generate|coverage:-lgcov}\
%{!nostdlib:%{!nodefaultlibs:%(link_ssp) %(link_gcc_c_sequence)}}\
%{!A:%{!nostdlib:%{!nostartfiles:%E}}} %{T*} }}}}}}"
@@ -870,7 +870,7 @@ static const char *const multilib_defaults_raw[] = MULTILIB_DEFAULTS;
/* Adding -fopenmp should imply pthreads. This is particularly important
for targets that use different start files and suchlike. */
#ifndef GOMP_SELF_SPECS
-#define GOMP_SELF_SPECS "%{fopenmp: -pthread}"
+#define GOMP_SELF_SPECS "%{fopenmp|ftree-parallelize-loops=*: -pthread}"
#endif
static const char *const driver_self_specs[] = {