]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ada: Document that gprof won't work on windows with PIE.
authorCedric Landet <landet@adacore.com>
Tue, 18 Oct 2022 07:58:46 +0000 (09:58 +0200)
committerMarc Poulhiès <poulhies@adacore.com>
Mon, 7 Nov 2022 08:36:36 +0000 (09:36 +0100)
Document that gprof won't work on windows with PIE and -no-pie must be
used.

gcc/ada/

* doc/gnat_ugn/gnat_and_program_execution.rst: Mention the needed
-no-pie for windows to use gprof.
* gnat_ugn.texi: Regenerate.

gcc/ada/doc/gnat_ugn/gnat_and_program_execution.rst
gcc/ada/gnat_ugn.texi

index e827d1f9841e4027e95da0613fb7ccdcbed92e3c..c239c363eae0b8da67f04528a4e5f8b7b81ebf65 100644 (file)
@@ -1252,8 +1252,8 @@ most often, and are therefore the most time-consuming.
 better handle Ada programs and multitasking.
 It is currently supported on the following platforms
 
-* linux x86/x86_64
-* windows x86
+* Linux x86/x86_64
+* Windows x86/x86_64 (without PIE support)
 
 In order to profile a program using ``gprof``, several steps are needed:
 
@@ -1291,6 +1291,10 @@ Note that only the objects that were compiled with the ``-pg`` switch will
 be profiled; if you need to profile your whole project, use the ``-f``
 gnatmake switch to force full recompilation.
 
+Note that on Windows, gprof does not support PIE. The ``-no-pie`` switch
+should be added to the linker flags to disable this feature.
+
+
 .. _Program_execution:
 
 
index ff5cfa9dbce90a7851c725b5bad64fd30f7f36c4..385f1d3deb57e63d4d0057d85dc422181f848f06 100644 (file)
@@ -19552,10 +19552,10 @@ It is currently supported on the following platforms
 @itemize *
 
 @item 
-linux x86/x86_64
+Linux x86/x86_64
 
 @item 
-windows x86
+Windows x86/x86_64 (without PIE support)
 @end itemize
 
 In order to profile a program using @code{gprof}, several steps are needed:
@@ -19614,6 +19614,9 @@ Note that only the objects that were compiled with the @code{-pg} switch will
 be profiled; if you need to profile your whole project, use the @code{-f}
 gnatmake switch to force full recompilation.
 
+Note that on Windows, gprof does not support PIE. The @code{-no-pie} switch
+should be added to the linker flags to disable this feature.
+
 @node Program execution,Running gprof,Compilation for profiling,Profiling an Ada Program with gprof
 @anchor{gnat_ugn/gnat_and_program_execution id23}@anchor{175}@anchor{gnat_ugn/gnat_and_program_execution program-execution}@anchor{176}
 @subsubsection Program execution