stdcxx-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Sebor (JIRA)" <j...@apache.org>
Subject [jira] Commented: (STDCXX-799) [Intel C++ 10.0/Linux] error in rw/_traits.h on __builtin_memmove
Date Wed, 02 Apr 2008 17:39:24 GMT

    [ https://issues.apache.org/jira/browse/STDCXX-799?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12584684#action_12584684
] 

Martin Sebor commented on STDCXX-799:
-------------------------------------

The latest Intel compiler understands all the gcc built-ins with the exception of {{__builtin_memmove}}:
{noformat}
$ cat t.c && icc -V t.c || icc -V -D__builtin_memmove=__builtin_memcpy
int main ()
{
    char a [1];
    char b [2];
    __builtin_memcpy (a, b , sizeof a);
    __builtin_memcmp (a, b , sizeof a);
    __builtin_memset (a, 0, sizeof a);
    __builtin_strlen (a);

    __builtin_memmove (a, b , sizeof a);
}
Intel(R) C Compiler for applications running on IA-32, Version 10.1    Build 20070913 Package
ID: l_cc_p_10.1.008
Copyright (C) 1985-2007 Intel Corporation.  All rights reserved.

Edison Design Group C/C++ Front End, version 3.8 (Sep 13 2007 22:20:59)
Copyright 1988-2006 Edison Design Group, Inc.

t.c(10): warning #266: function "__builtin_memmove" declared implicitly
      __builtin_memmove (a, b , sizeof a);
      ^

GNU ld version 2.17.50.0.18-1 20070731
/tmp/icc5J6ZvI.o: In function `main':
t.c:(.text+0x25): undefined reference to `__builtin_memmove'
Intel(R) C Compiler for applications running on IA-32, Version 10.1    Build 20070913 Package
ID: l_cc_p_10.1.008
Copyright (C) 1985-2007 Intel Corporation.  All rights reserved.
{noformat}

> [Intel C++ 10.0/Linux] error in rw/_traits.h on __builtin_memmove
> -----------------------------------------------------------------
>
>                 Key: STDCXX-799
>                 URL: https://issues.apache.org/jira/browse/STDCXX-799
>             Project: C++ Standard Library
>          Issue Type: Bug
>    Affects Versions: trunk
>         Environment: Intel C++ 10.0/Linux, gcc 4.1 as the back end
>            Reporter: Martin Sebor
>            Assignee: Farid Zaripov
>            Priority: Blocker
>             Fix For: 4.2.1
>
>   Original Estimate: 1h
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> The error below shows up in logs for our optimized (not debug) nightly builds with Intel
C++ 10.0 on Linux with gcc 4.1 for the back end:
> {noformat}
> ### gmake  -Cbuild/lib   BUILDMODE=pthreads,shared,optimized,wide CONFIG=icc.config 2>&1
| sed -e "s/\/build2\/batman\/5.0.0\/builds\/34590289\/source-buildspace\/build/\$(BUILDDIR)/g;s/\/build2\/batman\/5.0.0\/builds\/34590289\/source-buildspace/\$(TOPDIR)/g"
| tee /tmp/build.19074.log:
> gmake: Entering directory `$(BUILDDIR)/lib'
> ...
> icc -c -I$(TOPDIR)/include/ansi   -D_REENTRANT -I$(TOPDIR)/include -I$(BUILDDIR)/include
 -cxxlib-nostd -O2   -w1  -fpic  $(TOPDIR)/src/bitset.cpp
> $(TOPDIR)/include/rw/_traits.h(439): error: identifier "__builtin_memmove" is undefined
>           _RWSTD_MEMMOVE (__s1, __s2, __n);
>           ^
> compilation aborted for $(TOPDIR)/src/bitset.cpp (code 2)
> {noformat}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message