- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- cadvise warnings itanium
Operating System - HP-UX
1747980
Members
4212
Online
108756
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-13-2011 08:32 AM
тАО05-13-2011 08:32 AM
I tried running cadvise with aCC on an HP Integrity system. The compiler found no errors or warnings with the all warning options turned on. When I tried the compile with a cadvise wrapper some new warnings appeared.
The cadvise documentation states that the aCC compiler has the same static analysis features as cadvise, so I wouldn't expect new warnings. Could this have to do with the compiler and cadvise versions? I'm using aCC version A.06.20 and cadvise version C.02.05.
In general do newer versions of the compiler have better code analysis features?
Thanks
The cadvise documentation states that the aCC compiler has the same static analysis features as cadvise, so I wouldn't expect new warnings. Could this have to do with the compiler and cadvise versions? I'm using aCC version A.06.20 and cadvise version C.02.05.
In general do newer versions of the compiler have better code analysis features?
Thanks
Solved! Go to Solution.
- Tags:
- cadvise
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-13-2011 11:54 AM
тАО05-13-2011 11:54 AM
Re: cadvise warnings itanium
Are you compiling with aCC +wlint? That should roughly match.
What type of extra warnings are you getting with cadvise?
>Could this have to do with the compiler and cadvise versions? I'm using aCC version A.06.20 and cadvise version C.02.05.
You need to look at the aCC compiler within C.02.05. But it is the same, since they were released at the same time.
The latest aC++ compiler is A.06.25.02, a whole release plus two patches after A.06.20.
Note: cadvise with PDB can detect warnings based on seeing multiple sources files. This is harder to do with aCC, unless using -ipo.
What type of extra warnings are you getting with cadvise?
>Could this have to do with the compiler and cadvise versions? I'm using aCC version A.06.20 and cadvise version C.02.05.
You need to look at the aCC compiler within C.02.05. But it is the same, since they were released at the same time.
The latest aC++ compiler is A.06.25.02, a whole release plus two patches after A.06.20.
Note: cadvise with PDB can detect warnings based on seeing multiple sources files. This is harder to do with aCC, unless using -ipo.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-13-2011 01:26 PM
тАО05-13-2011 01:26 PM
Re: cadvise warnings itanium
Yes, I'm using +wlint (and +w1). Here's a sample of the warnings cadvise, but not aCC, picks up:
Out of bound access (In expression "&pres_val[(int)itrn]". In this case an array is referenced using i and i+1 where i is incremented by a for loop. It's a valid message as on the last iteration i+1 would be outside the array.
variable "temp_pmt" is used before its value is set. In this case temp_pmt is passed to an sprintf() which sets off the warning. aCC does find these types of mistakes when the varaible is used in an expression (temp_pmt = temp_pmt + 1), but not when passed to a function.
Thanks for your assistance.
Out of bound access (In expression "&pres_val[(int)itrn]". In this case an array is referenced using i and i+1 where i is incremented by a for loop. It's a valid message as on the last iteration i+1 would be outside the array.
variable "temp_pmt" is used before its value is set. In this case temp_pmt is passed to an sprintf() which sets off the warning. aCC does find these types of mistakes when the varaible is used in an expression (temp_pmt = temp_pmt + 1), but not when passed to a function.
Thanks for your assistance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-13-2011 09:38 PM
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP