summaryrefslogtreecommitdiff
path: root/gcc/langhooks.c
diff options
context:
space:
mode:
authorbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2014-03-10 06:36:21 +0000
committerbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2014-03-10 06:36:21 +0000
commit4547d1d231fe29ab12dcfe06cacf77a0930a7a45 (patch)
treed92668a145acc74015a11fb8e7537a246a5328bb /gcc/langhooks.c
parentbbb3cfeab564763aecccbdc6ec03f79742d1fa0e (diff)
downloadgcc-4547d1d231fe29ab12dcfe06cacf77a0930a7a45.tar.gz
2014-03-10 Basile Starynkevitch <basile@starynkevitch.net>
{{merge using svnmerge.py with trunk GCC 4.9 svn rev.208447. All is well compiled.}} git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@208448 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/langhooks.c')
-rw-r--r--gcc/langhooks.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/gcc/langhooks.c b/gcc/langhooks.c
index eca0299584f..d00ebd8a08c 100644
--- a/gcc/langhooks.c
+++ b/gcc/langhooks.c
@@ -524,13 +524,15 @@ lhd_omp_firstprivatize_type_sizes (struct gimplify_omp_ctx *c ATTRIBUTE_UNUSED,
{
}
-/* Return true if TYPE is an OpenMP mappable type. By default return true
- if type is complete. */
+/* Return true if TYPE is an OpenMP mappable type. */
bool
lhd_omp_mappable_type (tree type)
{
- return COMPLETE_TYPE_P (type);
+ /* Mappable type has to be complete. */
+ if (type == error_mark_node || !COMPLETE_TYPE_P (type))
+ return false;
+ return true;
}
/* Common function for add_builtin_function and