LP64 WARNING IS GETTING SUPPRESSED (51 Views)
Reply
Occasional Contributor
BALAJI CHANDRAN
Posts: 8
Registered: ‎04-08-2003
Message 1 of 4 (51 Views)

LP64 WARNING IS GETTING SUPPRESSED

When i am compiling the .c file in CBSIHP01 or CBSIHP02 with +M2 and +DD64 options enabled I am getting Warnings as below

cc: "stubstr.c", line 8: warning 720: LP64 migration: Assignment may overflow integer "len".

When i am compiling the .c file in CVNSHP03 with +M2 and +DD64 options enabled I am getting Warnings as below

cc: "stubstr.c", line 8: warning 720:Assignment may overflow integer "len"


..But we want LP64 migration MESSAGE in CVNSHP03 also........

I have enclosed the Hardware model of CBSIHP01, CBSIHP02 and CVNSHP03.
CBSIHP01: 9000/782/J2240
CBSIHP02: 9000/861/D270
CVNSHP03: 9000/800/L3000-7x

Can anyone provide solution for this?

Thanks
C.Balaji



Please use plain text.
Frequent Advisor
Nicolas Portais
Posts: 26
Registered: ‎10-09-2002
Message 2 of 4 (51 Views)

Re: LP64 WARNING IS GETTING SUPPRESSED

Hi,

Generally, this error appears when you compare (or assign) a long variable to a integer.

for example:

$ cat test.c
void main(void)
{
int a;
long b=1L;
a=b;
}

$ cc +M2 +DD64 test.c -o test
cc: "test.c", line 5: LP64 migration warning 720: Assignment may overflow integer "a".

the solution is to replace 'int' by 'long'.

Regards,
Nicolas
Please use plain text.
Acclaimed Contributor
A. Clay Stephenson
Posts: 17,825
Registered: ‎07-16-1998
Message 3 of 4 (51 Views)

Re: LP64 WARNING IS GETTING SUPPRESSED

Do a cc -V myfile.c and make sure that all the compilers are at the same revision level. Next check to see if compiler patches are equivalent.
If it ain't broke, I can fix that.
Please use plain text.
Advisor
Srinivasan S_1
Posts: 35
Registered: ‎01-12-2004
Message 4 of 4 (51 Views)

Re: LP64 WARNING IS GETTING SUPPRESSED

NLSPATH=/opt/ansic/lib/nls/msg/C/%N.cat

You have to set /opt/ansic/lib/nls/msg/C/%N.cat catalogue path of system ( C Compiler Catalog message path). then you will get that message.

Thanks
Srinivasan S
Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation