> Here we go .... I really hope you see more than I do ....
I committed fixes for the warnings, but don't see any obvious clues for the
compiler crash. Maybe a compiler upgrade is possible (sorry if we are
rehashing old discussion)?
Jeff
> -----Original Message-----
> From: Ralph Lange [mailto:[email protected]]
> Sent: Monday, December 04, 2006 6:38 PM
> To: Jeff Hill
> Cc: EPICS Core Talk
> Subject: Re: osiWireFormat.h problems
>
> Jeff Hill wrote:
> > Ralph,
> >
> > Could you send a copy of all the messages the HP-UX compiler emits
> before it
> > fails (when compiling this particular source file). I have some
> experience
> > with this sort of thing and might be able to create a workaround. Also,
> > please send a version number and release date for this compiler. It's
> > probably getting a bit dated but perhaps we can still support it.
> >
>
> The compiler is
> aCC: HP ANSI C++ B3910B A.03.52
>
> Here we go .... I really hope you see more than I do ....
>
> Thanks, Ralph
>
>
>
> aCC -c -DHP_UX -AA -Aa -mt +O3 +w +DAportable +z
> -I. -I.. -I../../../include/os/hpux -I../../../include
> ../tcpiiu.cpp 2>&1 | ../../../configure/tools/filterWarnings.pl
> Warning (suggestion) 818: "../../../include/osiWireFormat.h", line 116 #
> Type
> 'int' is larger than type 'unsigned short', truncation in value may
> result.
> return ( src << 8u ) | ( src >> 8u );
> ^^^^^^^^^^^^^^^^^^^^^^^^^
> Warning (suggestion) 818: "../../../include/osiWireFormat.h", line 124 #
> Type
> 'int' is larger than type 'unsigned short', truncation in value may
> result.
> tmp0 = ( tmp0 << 8u ) | ( tmp0 >> 8u );
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^
> Warning (suggestion) 818: "../../../include/osiWireFormat.h", line 125 #
> Type
> 'int' is larger than type 'unsigned short', truncation in value may
> result.
> tmp1 = ( tmp1 << 8u ) | ( tmp1 >> 8u );
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^
> Warning (suggestion) 819: "../../../include/osiWireFormat.h", line 122 #
> Initialization of type 'unsigned short' with 'unsigned int' may
> result in
> truncation of value.
> epicsUInt16 tmp0 = src >> 16u;
> ^^^^^^^^^^
> Warning (suggestion) 818: "../../../include/osiWireFormat.h", line 122 #
> Type
> 'unsigned int' is larger than type 'unsigned short', truncation in
> value may
> result.
> epicsUInt16 tmp0 = src >> 16u;
> ^^^^^^^^^^
> Warning (suggestion) 819: "../../../include/osiWireFormat.h", line 123 #
> Initialization of type 'unsigned short' with 'const unsigned int &'
> may
> result in truncation of value.
> epicsUInt16 tmp1 = src;
> ^^^
> Warning (suggestion) 818: "../../../include/osiWireFormat.h", line 123 #
> Type
> 'const unsigned int' is larger than type 'unsigned short', truncation
> in
> value may result.
> epicsUInt16 tmp1 = src;
> ^^^
> Warning (suggestion) 818: "../../../include/osiWireFormat.h", line 170 #
> Type
> 'int' is larger than type 'unsigned short', truncation in value may
> result.
> ( static_cast < epicsUInt16 > ( pWireSrc[0] ) << 8u ) |
> ^^^^^^^^^^^^^^^^^^^^^^^
> Error (future) 229: "../comQueSend.h", line 123 # "Ambiguous overloaded
> function
> call; a function match was not found that was strictly best for ALL
> arguments. Two functions that matched best for some arguments (but
> not all)
> were "unsigned int comBuf::push(const char *,unsigned int)"
> ["../comBuf.h",
> line 196] and "unsigned int comBuf::push(const char *,unsigned int)"
> ["../comBuf.h", line 196]." Choosing "unsigned int
> comBuf::push(const char
> *,unsigned int)" ["../comBuf.h", line 196] for resolving ambiguity.
> nCopied = pLastBuf->push ( pVal, nElem );
> ^^^^
> Error (future) 229: "../comQueSend.h", line 130 # "Ambiguous overloaded
> function
> call; a function match was not found that was strictly best for ALL
> arguments. Two functions that matched best for some arguments (but
> not all)
> were "unsigned int comBuf::push(const char *,unsigned int)"
> ["../comBuf.h",
> line 196] and "unsigned int comBuf::push(const char *,unsigned int)"
> ["../comBuf.h", line 196]." Choosing "unsigned int
> comBuf::push(const char
> *,unsigned int)" ["../comBuf.h", line 196] for resolving ambiguity.
> nCopied += pComBuf->push
> ^^^^
> Warning (suggestion) 818: "../tcpiiu.cpp", line 1381 # Type 'int' is
> larger than
> type 'unsigned short', truncation in value may result.
> command, 0u,
> ^^^^^^^
> Warning: 2 future errors were detected and ignored. Add a '+p'
> option to
> detect and fix them before they become fatal errors in a future
> release.
> Behavior of this ill-formed program is not guaranteed to match that of
> a
> well-formed program
> Signal 11
- Replies:
- Re: osiWireFormat.h problems Ralph Lange
- References:
- Re: osiWireFormat.h problems Ralph Lange
- Navigate by Date:
- Prev:
RE: osiWireFormat.h problems Jeff Hill
- Next:
Re: osiWireFormat.h problems Ralph Lange
- Index:
2002
2003
2004
2005
<2006>
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
RE: osiWireFormat.h problems Jeff Hill
- Next:
Re: osiWireFormat.h problems Ralph Lange
- Index:
2002
2003
2004
2005
<2006>
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|