public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* wwwdocs: Add symver and -fprofile-prefix-path to changes.html
@ 2020-05-05 15:02 Jan Hubicka
  2020-05-05 19:33 ` Gerald Pfeifer
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Hubicka @ 2020-05-05 15:02 UTC (permalink / raw)
  To: gcc-patches, gerald

Hi,
this patch adds mention of -fprofile-prefix-path and symver attribute.

diff --git a/htdocs/gcc-10/changes.html b/htdocs/gcc-10/changes.html
index 4497be14..45cb906f 100644
--- a/htdocs/gcc-10/changes.html
+++ b/htdocs/gcc-10/changes.html
@@ -98,6 +98,12 @@ a work-in-progress.</p>
 	  This makes it possible to rebuild program
 	  with same outcome which is useful, for example, for distribution packages.
       </li>
+      <li><a href="https://gcc.gnu.org/onlinedocs/gcc-10.1.0/gcc/Optimize-Options.html#index-fprofile-prefix-path"><code>-fprofile-prefix-path</code></a>
+	  can be used in combination with <code>-fprofile-generate=profile_dir</code> and
+	  <code>-fprofile-use=profile_dir</code> to inform GCC where is the base          
+	  directory of built source tree in case it differs between instrumentation
+	  and optimized builds.
+      </li>
       <li><a href="https://gcc.gnu.org/onlinedocs/gcc/Static-Analyzer-Options.html">-fanalyzer</a>
 	enables a new static analysis pass and associated warnings.
 	This pass performs a time-consuming exploration of paths through
@@ -207,6 +213,12 @@ a work-in-progress.</p>
        the detection of invalid accesses by user-defined functions, such
        as those diagnosed by <code>-Wstringop-overflow</code>.
      </li>
+     <li>
+       The <code>symver</code> attributes can be used to to bind symbols to
+       specific version nodes on ELF platfroms. This is preferred to using
+       inline assembly with GAS <code>symver</code> directive because the later
+       is not compatible with link-time optimizations.
+     </li>
     </ul>
   </li>
   <li>New warnings:

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: wwwdocs: Add symver and -fprofile-prefix-path to changes.html
  2020-05-05 15:02 wwwdocs: Add symver and -fprofile-prefix-path to changes.html Jan Hubicka
@ 2020-05-05 19:33 ` Gerald Pfeifer
  0 siblings, 0 replies; 2+ messages in thread
From: Gerald Pfeifer @ 2020-05-05 19:33 UTC (permalink / raw)
  To: Jan Hubicka; +Cc: gcc-patches

On Tue, 5 May 2020, Jan Hubicka wrote:
> this patch adds mention of -fprofile-prefix-path and symver attribute.

Thank you, Honza!

> +      <li><a href="https://gcc.gnu.org/onlinedocs/gcc-10.1.0/gcc/Optimize-Options.html#index-fprofile-prefix-path"><code>-fprofile-prefix-path</code></a>
> +	  can be used in combination with <code>-fprofile-generate=profile_dir</code> and
> +	  <code>-fprofile-use=profile_dir</code> to inform GCC where is the base          
> +	  directory of built source tree in case it differs between instrumentation
> +	  and optimized builds.

"...where the base directory ... is in case" (or "...resides in case")

Maybe "instrumented" instead of "instrumentation"?

And what is a "built source tree"?  Can we say "build tree"?

> +       The <code>symver</code> attributes can be used to to bind symbols to

"attribute" (singular) I believe?

"to to" -> "to"

> +       specific version nodes on ELF platfroms. This is preferred to using

"platforms"

> +       inline assembly with GAS <code>symver</code> directive because the later

"with the GNU as <code>symver</code> directive" (though "GNU as" over 
"GAS" is my preference, feel free to ignore).

"the latter"


Okay with those changes - thanks!

Gerald

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-05-05 19:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-05 15:02 wwwdocs: Add symver and -fprofile-prefix-path to changes.html Jan Hubicka
2020-05-05 19:33 ` Gerald Pfeifer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).