This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] GNAT s-oscons-tmplt.c multiple undefined errnos


Hi,

The file s-oscons-tmplt.c defines all the errno
constants not available on a target to -1.  When
a target is missing the right combination of two
or more errno's, there is a case statement in
g-socket.adb (Resolve_Error) which ends up with
two when's with -1 which is an error.  The attached
patch gives each undefined errno a unique value.

This is needed for the trunk and 4.5 branch.

OK to commit?

2010-04-13 Joel Sherrill <joel.sherrill@oarcorp.com>

    * s-oscons-tmplt.c: Give each undefined errno constant a unique
    value so a target can have multiple missing and not generate
    a duplicate case error in GNAT.Sockets.Resolve_Error.


-- Joel Sherrill, Ph.D. Director of Research& Development joel.sherrill@OARcorp.com On-Line Applications Research Ask me about RTEMS: a free RTOS Huntsville AL 35805 Support Available (256) 722-9985


Attachment: oscons.diff
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]