Optimization issue with HP C/aC++ B3910B A.06.25.01 [May 17 2010] (548 Views)
Reply
Occasional Contributor
Travis Vitek
Posts: 4
Registered: ‎04-09-2010
Message 1 of 4 (548 Views)

Optimization issue with HP C/aC++ B3910B A.06.25.01 [May 17 2010]


I've run into an optimization issue in some library code that I maintain. I've managed to work around the issue with a bit of code reorganization, but I'm posting a testcase here in hopes that it will be filed as a bug and fixed for future versions of the compiler.

I've managed to reduce the testcase down to a small library and a simple test program (source and makefile provided).

Travis
Acclaimed Contributor
Dennis Handly
Posts: 25,055
Registered: ‎03-06-2006
Message 2 of 4 (548 Views)

Re: Optimization issue with HP C/aC++ A.06.25.01 [May 17 2010]

[ Edited ]

You can workaround it by compiling with +Onoinline=str_case_cmp_n.

Please contact the Response Center to report this bug. It appears to have started failing in A.06.20.

Acclaimed Contributor
Dennis Handly
Posts: 25,055
Registered: ‎03-06-2006
Message 3 of 4 (548 Views)

Re: Optimization issue with HP C/aC++ A.06.25.01 [May 17 2010]

[ Edited ]

I filed QXCR1001087773 on this optimization problem.

Acclaimed Contributor
Dennis Handly
Posts: 25,055
Registered: ‎03-06-2006
Message 4 of 4 (548 Views)

Re: Optimization issue with HP C/aC++ A.06.25.01 [May 17 2010]

[ Edited ]

This is patched in A.06.25.02:
11.23: PHSS_41499
11.31: PHSS_41500

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.