diff options
| author | spop <spop@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-01-16 16:23:20 +0000 |
|---|---|---|
| committer | spop <spop@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-01-16 16:23:20 +0000 |
| commit | 061202f8bbb0d85e00e6877bf70172914437c00a (patch) | |
| tree | 5c0fc91026e7578c9d96d18ed7dd90235b5b54f5 | |
| parent | c782188f3ffc0c0dc71ee09baacd80f7a7589ab5 (diff) | |
| download | ppe42-gcc-061202f8bbb0d85e00e6877bf70172914437c00a.tar.gz ppe42-gcc-061202f8bbb0d85e00e6877bf70172914437c00a.zip | |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@131574 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 6 | ||||
| -rw-r--r-- | gcc/gcc.c | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2d4f0c78dd4..37a6f4ec35c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2008-01-16 Sebastian Pop <sebastian.pop@amd.com> + + * 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. + 2008-01-16 Richard Guenther <rguenther@suse.de> PR tree-optimization/34769 diff --git a/gcc/gcc.c b/gcc/gcc.c index 86e0df532a8..b03e510bf5b 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[] = { |

