incubator-stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Black <abl...@roguewave.com>
Subject Re: svn commit: r555106 - /incubator/stdcxx/trunk/etc/config/src/LIMITS.cpp
Date Wed, 11 Jul 2007 20:30:57 GMT
Greetings Martin

I'm not certain, but I suspect this change has lead to a breakage with
aCC 3.73 and aCC 3.76.  In particular, I see the following failure while
building the library (remarks trimmed out)
> aCC -c -I$(TOPDIR)/include/ansi -I/usr/include     -I$(TOPDIR)/include -I$(BUILDDIR)/include
 -Aa +nostl +W2193 +W2261 +W2340 +W2401 +W2487 +W4263 +W4264 +W4297 +O2  +DD64 +w +W392 +W655
+W684 +W818 +W819 +W849  +Z  $(TOPDIR)/src/time_put.cpp
> "$(TOPDIR)/src/time_put.cpp", line 2811: error #2167: argument of type "unsigned long"
is incompatible with parameter of type "const wchar_t *"
>                           bufsize,
>                           ^

The failure is a fairly new (less than a week old), and I believe this
to be the most likely culprit.

--Andrew Black

sebor@apache.org wrote:
> Author: sebor
> Date: Tue Jul 10 15:51:19 2007
> New Revision: 555106
> 
> URL: http://svn.apache.org/viewvc?view=rev&rev=555106
> Log:
> 2007-07-10  Martin Sebor  <sebor@roguewave.com>
> 
> 	STDCXX-482
> 	* LIMITS.cpp (compute_limits): Used the first argument to pass in
> 	a pointer to a value for the function to use in integer arithmetic
> 	involving (signed) overflow which with some aggressive optimizers
> 	such as Sun Studio 12 aka Sun C++ 5.9 leads to undefined behavior.
> 	(main): Introduced MKLIMITS() macro for convenience.
> 
> Modified:
>     incubator/stdcxx/trunk/etc/config/src/LIMITS.cpp

Mime
View raw message