public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/40722]  New: ia32intrin.h defines of _rotl, _rotr conflict with target stdlib.h  decls.h
@ 2009-07-11 22:07 dannysmith at users dot sourceforge dot net
  2010-07-31  9:35 ` [Bug target/40722] [4.5/4.6 Regression] ia32intrin.h defines of _rotl, _rotr conflict with target stdlib.h decls rguenth at gcc dot gnu dot org
  0 siblings, 1 reply; 5+ messages in thread
From: dannysmith at users dot sourceforge dot net @ 2009-07-11 22:07 UTC (permalink / raw)
  To: gcc-bugs

These defines in ia32intrin.h 

#define _lrotl(a,b)             __rold((a), (b))
#define _lrotr(a,b)             __rord((a), (b))
...
#define _rotl(a,b)              __rold((a), (b))
#define _rotr(a,b)              __rord((a), (b))


conflict with mingw32 stdlib.h which
declares those names as functions

_CRTIMP unsigned int __cdecl __MINGW_NOTHROW _rotl(unsigned int, int)
__MINGW_ATTRIB_CONST;
_CRTIMP unsigned int __cdecl __MINGW_NOTHROW _rotr(unsigned int, int)
__MINGW_ATTRIB_CONST;
_CRTIMP unsigned long __cdecl __MINGW_NOTHROW _lrotl(unsigned long, int)
__MINGW_ATTRIB_CONST;
_CRTIMP unsigned long __cdecl __MINGW_NOTHROW _lrotr(unsigned long, int)
__MINGW_ATTRIB_CONST;


This is caught by  g++.dg/other/i386-[23456].C


-- 
           Summary: ia32intrin.h defines of _rotl, _rotr conflict with
                    target stdlib.h  decls.h
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dannysmith at users dot sourceforge dot net
 GCC build triplet: i686-pc-mingw32
  GCC host triplet: i686-pc-mingw32
GCC target triplet: i686-pc-mingw32


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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-02-03 12:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-40722-4@http.gcc.gnu.org/bugzilla/>
2010-12-16 13:23 ` [Bug target/40722] [4.5/4.6 Regression] ia32intrin.h defines of _rotl, _rotr conflict with target stdlib.h decls rguenth at gcc dot gnu.org
2011-02-03  9:07 ` jakub at gcc dot gnu.org
2011-02-03 10:06 ` jakub at gcc dot gnu.org
2011-02-03 12:29 ` ktietz at gcc dot gnu.org
2009-07-11 22:07 [Bug target/40722] New: ia32intrin.h defines of _rotl, _rotr conflict with target stdlib.h decls.h dannysmith at users dot sourceforge dot net
2010-07-31  9:35 ` [Bug target/40722] [4.5/4.6 Regression] ia32intrin.h defines of _rotl, _rotr conflict with target stdlib.h decls rguenth at gcc dot gnu 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).