public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/45414]  New: _mm_prefetch parameter is "char const *" in ICC
@ 2010-08-26 10:57 kretz at kde dot org
  0 siblings, 0 replies; only message in thread
From: kretz at kde dot org @ 2010-08-26 10:57 UTC (permalink / raw)
  To: gcc-bugs

Hi,

I agree that "const void *" is the better parameter for _mm_prefetch, but it
leads to incompatible code. ICC defines _mm_prefetch as:
void _mm_prefetch(char const *, int)

and MSVC documents it as:
void _mm_prefetch(char * p , int i )

(which is even worse). I would expect the GCC header to use "const char *" too
for the sake of portable code.


-- 
           Summary: _mm_prefetch parameter is "char const *" in ICC
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: kretz at kde dot org
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45414


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-08-26 10:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-26 10:57 [Bug c/45414] New: _mm_prefetch parameter is "char const *" in ICC kretz at kde dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).