The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=13469 
====================================================================== 
Reported By:                Stefan Eilemann
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   13469
Category:                   CMake
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2012-08-14 05:28 EDT
Last Modified:              2012-08-14 05:28 EDT
====================================================================== 
Summary:                    OpenMP flags enable IPA optimization for IBM xlC
compiler
Description: 
FindOpenMP sets '-qsmp' which turns on IPA, even in debug builds where it is
extremely inconvenient.

Our temporary workaround is to switch it off again:
https://github.com/Eyescale/CMake/commit/fbe0c8a87a1ba5fe683beeb697ecebaab26fd730

I'm new to xlC, but '-qsmp=noomp' looks better?


Steps to Reproduce: 
Compile simple test program in debug with:

  find_package(OpenMP REQUIRED)
  set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")


And observer ipa process running, or examine optimized program in debugger.

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2012-08-14 05:28 Stefan EilemannNew Issue                                    
======================================================================

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to