[PATCH] For PR libstdc++/33203.

Danny Smith dannysmith@clear.net.nz
Wed Sep 5 08:45:00 GMT 2007


Hello, 

The attached fixes libstdc++/33203 by factoring out the
definition of os error constants into an os-specific config file,
error_constants.h, that is installed in <host>/bits/error_constants.h.

I have left all the ifdef _GLIBCXX_HAVE_E*'s in the generic error_code.h
and in the configury. I think they should be removed eventually, in
favor of os-specific error_constants.h.

Is this approach OK.

I have not yet attempted to hack types_std_c++0x.cc testsuite to pass on
mingw32 :( 

:ADDPATCH libstdc++:

ChangeLog

Danny Smith  <dannysmith@users.sourceforge.net>

	PR libstdc++/33203
	* configure.host (error_constants_dir):  New variable,
	defaulting to os/generic.
	( mingw32*): Overide default.
	* configure.ac (ERROR_CONSTANTS_SRCDIR): New.
	* configure: Regenerate.
	* include/Makefile.am (host_headers): Add
	$(ERROR_CONSTANTS_SRCDIR)/error_constants.h .
	* include/Makefile.in: Regenerate.
	* include/system_error (enum posix_errno): Remove.
	Include <bits/error_constants.h, instead.
	* config/os/mingw32/error_constants.h: New.
	* config/os/generic/error_constants.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr33203.diff
Type: application/octet-stream
Size: 17442 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20070905/c5c94f12/attachment.obj>


More information about the Gcc-patches mailing list