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
  2009-07-12  8:24 ` [Bug target/40722] [4.5 Regression] ia32intrin.h defines of _rotl, _rotr conflict with target stdlib.h decls rguenth at gcc dot gnu dot org
                   ` (16 more replies)
  0 siblings, 17 replies; 18+ 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] 18+ messages in thread

end of thread, other threads:[~2010-07-31  9:32 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2009-07-12  8:24 ` [Bug target/40722] [4.5 Regression] ia32intrin.h defines of _rotl, _rotr conflict with target stdlib.h decls rguenth at gcc dot gnu dot org
2009-07-12 18:20 ` hjl dot tools at gmail dot com
2009-07-29 22:55 ` jsm28 at gcc dot gnu dot org
2009-08-30 17:34 ` ktietz at gcc dot gnu dot org
2010-03-19 16:17 ` nightstrike at gmail dot com
2010-03-20 14:35 ` hjl dot tools at gmail dot com
2010-03-20 18:02 ` hjl dot tools at gmail dot com
2010-03-20 18:09 ` hjl dot tools at gmail dot com
2010-03-23 12:32 ` ktietz at gcc dot gnu dot org
2010-03-23 13:25 ` hjl at gcc dot gnu dot org
2010-03-28 10:15 ` jon_y at users dot sourceforge dot net
2010-03-28 10:17 ` jon_y at users dot sourceforge dot net
2010-03-28 14:44 ` hjl dot tools at gmail dot com
2010-03-28 15:34 ` rguenth at gcc dot gnu dot org
2010-03-28 16:41 ` hjl at gcc dot gnu dot org
2010-04-06 11:24 ` rguenth at gcc dot gnu dot org
2010-07-31  9:35 ` [Bug target/40722] [4.5/4.6 " 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).