public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/53457] New: Accommodate non-compliant ioctl() on VxWorks
@ 2012-05-22 20:32 rbmj at verizon dot net
  2012-05-22 20:46 ` [Bug libstdc++/53457] " paolo.carlini at oracle dot com
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: rbmj at verizon dot net @ 2012-05-22 20:32 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 53457
           Summary: Accommodate non-compliant ioctl() on VxWorks
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: rbmj@verizon.net
                CC: rbmj@verizon.net
              Host: x86_64-linux-gnu
            Target: powerpc-wrs-vxworks
             Build: x86_64-linux-gnu


Created attachment 27480
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27480
Patch

On VxWorks, ioctl()'s third argument is of type int, so this added
macro wraps over ioctl to cast the third argument to an integer.
This *cannot* be in config/os/vxworks/os_defines.h as otherwise
the function prototype will trigger the macro and it will be ugly.

Alternate solution is to #ifdef at the call site.

Attached patch is against trunk.  Without it the compile fails because VxWorks
ioctl() requires third argument to be of type int, and C++ doesn't allow
implicit conversion from pointer to integer.


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

end of thread, other threads:[~2012-10-30  2:02 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-22 20:32 [Bug libstdc++/53457] New: Accommodate non-compliant ioctl() on VxWorks rbmj at verizon dot net
2012-05-22 20:46 ` [Bug libstdc++/53457] " paolo.carlini at oracle dot com
2012-05-22 21:57 ` rbmj at verizon dot net
2012-05-23 13:48 ` rbmj at verizon dot net
2012-05-23 14:19 ` paolo.carlini at oracle dot com
2012-05-24 21:06 ` rbmj at verizon dot net
2012-05-24 22:19 ` paolo.carlini at oracle dot com
2012-06-25 18:23 ` rbmj at verizon dot net
2012-10-01 23:43 ` paolo.carlini at oracle dot com
2012-10-02  1:08 ` rbmj at verizon dot net
2012-10-02  9:56 ` [Bug target/53457] " paolo.carlini at oracle dot com
2012-10-02 18:22 ` rbmj at verizon dot net
2012-10-30  2:02 ` rbmj at verizon dot net

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).