Re: [wwwdocs] Fix some nits in GCC 4.7 changes.html

2012-03-24 Thread Gerald Pfeifer
On Thu, 22 Mar 2012, Rainer Orth wrote:
> One issue I forgot: there are currently two instances of the long form
> of the bugzilla URLs.  Shouldn't we better use http://gcc.gnu.org/PR
> here?

Good idea, yes.  Changed thusly.

Gerald

Index: gcc-4.7/changes.html
===
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-4.7/changes.html,v
retrieving revision 1.102
diff -u -3 -p -r1.102 changes.html
--- gcc-4.7/changes.html22 Mar 2012 09:40:43 -  1.102
+++ gcc-4.7/changes.html24 Mar 2012 21:47:03 -
@@ -469,14 +469,12 @@ well.
   some efforts have been made to improve the support of class
   scope using-declarations. In particular, using-declarations
   referring to a dependent type now work as expected
-  (http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14258";>bug
-  c++/14258).
+  (http://gcc.gnu.org/PR14258";>bug c++/14258).
   
 
   The ELF symbol visibility of a template instantiation is now properly
 constrained by the visibility of its template arguments 
-(http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35688";>bug
-c++/35688).
+(http://gcc.gnu.org/PR35688";>bug c++/35688).
 
 
 


Re: [wwwdocs] Fix some nits in GCC 4.7 changes.html

2012-03-24 Thread Gerald Pfeifer
On Thu, 22 Mar 2012, Rainer Orth wrote:
> Indeed: neither the original nor my patch were right here.  I've updated 
> my patch to include the correct syntax.
> 
> Ok now?

Oh, yes.  You just could have gone ahead. :-)

Gerald


Re: [wwwdocs] Fix some nits in GCC 4.7 changes.html

2012-03-22 Thread Rainer Orth
Gerald Pfeifer  writes:

> On Fri, 16 Mar 2012, Rainer Orth wrote:
>> While reading through the GCC 4.7 changes.html, I noticed a couple of 
>> nits that this patch fixes.  It's mostly wording and grammar changes (so 
>> I may well be wrong and would appreciate a native speaker having a look 
>
> This looks good in general, thanks.

One issue I forgot: there are currently two instances of the long form
of the bugzilla URLs.  Shouldn't we better use http://gcc.gnu.org/PR
here?

Rainer

-- 
-
Rainer Orth, Center for Biotechnology, Bielefeld University


Re: [wwwdocs] Fix some nits in GCC 4.7 changes.html

2012-03-22 Thread Rainer Orth
Gerald Pfeifer  writes:

> On Fri, 16 Mar 2012, Rainer Orth wrote:
>> While reading through the GCC 4.7 changes.html, I noticed a couple of 
>> nits that this patch fixes.  It's mostly wording and grammar changes (so 
>> I may well be wrong and would appreciate a native speaker having a look 
>
> This looks good in general, thanks.
>
> Instead of the change around pollution I would prefer 
>   "Avoid polluting the global namespace and do not include..."
> instead of either the old or the proposed version, though I'll admit
> I do not have a strong rationale.

I think you're right: it correctly emphasizes the avoidance.

> I am not sure about "The powerpc" vs "The PowerPC" vs "powerpc",
> please pass that part by David Edelsohn.

Already dealt with, thanks David.

> Similarly, are you sure "#pragma GCC target attribute"
> change is incorrect.  Isn't that a function attribute?

Indeed: neither the original nor my patch were right here.  I've updated
my patch to include the correct syntax.

Ok now?

Thanks.
Rainer

-- 
-
Rainer Orth, Center for Biotechnology, Bielefeld University



Index: changes.html
===
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-4.7/changes.html,v
retrieving revision 1.102
diff -u -p -r1.102 changes.html
--- changes.html	22 Mar 2012 09:40:43 -	1.102
+++ changes.html	22 Mar 2012 16:40:14 -
@@ -126,7 +126,7 @@
   
 void foo(int a)
 {
-  if (a>10)
+  if (a > 10)
 ... huge code ...
 }
 void bar (void)
@@ -166,7 +166,7 @@ void bar (void)
   GCC will now produce two copies of foo. One with flag being
   true, while other with flag being
   false.  This leads to performance improvements previously
-  possibly only by inlining all calls.  Cloning causes a lot less code size
+  possible only by inlining all calls.  Cloning causes a lot less code size
   growth.
 
 
@@ -242,20 +242,21 @@ void foo (char *a, const char *b, const 
   
 
   Experimental support for transactional memory has been added.
-  It includes support for the compiler, as well as a supporting
+  It includes support in the compiler, as well as a supporting
   runtime library called libitm.  To compile code
   with transactional memory constructs, use
   the -fgnu-tm option.
 
 
 
-  Support is currently available for the x86-32, x86-64, and Alpha
-  platforms.
+  Support is currently available for Alpha, ARM, PowerPC, SH, SPARC,
+  and 32-bit/64-bit x86 platforms.
 
 
 
   For more details on transactional memory
-  see http://gcc.gnu.org/wiki/TransactionalMemory";>here.
+  see http://gcc.gnu.org/wiki/TransactionalMemory";>the GCC
+  WiKi.
 
   
 
@@ -266,11 +267,11 @@ void foo (char *a, const char *b, const 
   existing __sync built-in routines.
 
 
-  Atomic support is also available for memory blocks.  Lock free
+  Atomic support is also available for memory blocks.  Lock-free
   instructions will be used if a memory block is the same size and 
   alignment as a supported integer type.  Atomic operations which do not
-  have lock free support are left as function calls.  A set of library 
-  functions are available on the GCC atomic wiki in the "External 
+  have lock-free support are left as function calls.  A set of library 
+  functions is available on the GCC atomic wiki in the "External 
   Atomics Library" section.
 
 
@@ -279,8 +280,8 @@ void foo (char *a, const char *b, const 
 
   
 
-  When a binary operation performed on vector types and one of the operands
-  is a uniform vector it is possible to replace the vector with the
+  When a binary operation is performed on vector types and one of the operands
+  is a uniform vector, it is possible to replace the vector with the
   generating element. For example:
   
 typedef int v4si __attribute__ ((vector_size (16)));
@@ -352,7 +353,7 @@ struct B {
 };
 
 struct D : B {
-  void f() const;// error: D::f attempts to override final B::f
+  void f() const;// error: D::f attempts to override final B::f
   void f(long) override; // error: doesn't override anything
   void f(int) override;  // ok
 };
@@ -499,7 +500,8 @@ well.
  
  Added --enable-clocale=newlib configure option. 
  Debug Mode iterators for unordered associative containers. 
- Avoid polluting the global namespace by inclusion of .  
+ Avoid polluting the global namespace and do not include
+	.
 
 
   
@@ -509,7 +511,7 @@ well.
 The compile flag http://gcc.gnu.org/onlinedocs/gcc-4.7.0/gfortran/Code-Gen-Options.html#index-g_t_0040code_007bfstack_002darrays_007d-254";
   >-fstack-arrays has been added, which causes
-  that all local arrays are put on stack memory. For some
+  all local arrays to be put

Re: [wwwdocs] Fix some nits in GCC 4.7 changes.html

2012-03-16 Thread Gerald Pfeifer
On Fri, 16 Mar 2012, Rainer Orth wrote:
> While reading through the GCC 4.7 changes.html, I noticed a couple of 
> nits that this patch fixes.  It's mostly wording and grammar changes (so 
> I may well be wrong and would appreciate a native speaker having a look 

This looks good in general, thanks.

Instead of the change around pollution I would prefer 
  "Avoid polluting the global namespace and do not include..."
instead of either the old or the proposed version, though I'll admit
I do not have a strong rationale.

I am not sure about "The powerpc" vs "The PowerPC" vs "powerpc",
please pass that part by David Edelsohn.

Similarly, are you sure "#pragma GCC target attribute"
change is incorrect.  Isn't that a function attribute?

Gerald


[wwwdocs] Fix some nits in GCC 4.7 changes.html

2012-03-16 Thread Rainer Orth
While reading through the GCC 4.7 changes.html, I noticed a couple of
nits that this patch fixes.  It's mostly wording and grammar changes (so
I may well be wrong and would appreciate a native speaker having a look ;-)

Ok to install?

Beyond what I've changed, two items could perhaps do with better
explanations, especially since the document is intended to be directed
at compiler users, not compiler developers:

* LTO improvements:

  Streaming performance (both outbound and inbound) has been improved.

  What is this and why should I care?

* IA-32/x86-64:

  Support for new Intel processor codename IvyBridge with RDRND,
  FSGSBASE and F16C

  Support for the new Intel processor codename Haswell with AVX2, FMA,
  BMI, BMI2, LZCNT
  
  Better: with the ... extensions?  Add links?

Rainer


Index: changes.html
===
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-4.7/changes.html,v
retrieving revision 1.96
diff -u -p -r1.96 changes.html
--- changes.html	7 Mar 2012 14:15:35 -	1.96
+++ changes.html	16 Mar 2012 14:47:44 -
@@ -126,7 +126,7 @@
   
 void foo(int a)
 {
-  if (a>10)
+  if (a > 10)
 ... huge code ...
 }
 void bar (void)
@@ -166,7 +166,7 @@ void bar (void)
   GCC will now produce two copies of foo. One with flag being
   true, while other with flag being
   false.  This leads to performance improvements previously
-  possibly only by inlining all calls.  Cloning causes a lot less code size
+  possible only by inlining all calls.  Cloning causes a lot less code size
   growth.
 
 
@@ -242,20 +242,21 @@ void foo (char *a, const char *b, const 
   
 
   Experimental support for transactional memory has been added.
-  It includes support for the compiler, as well as a supporting
+  It includes support in the compiler, as well as a supporting
   runtime library called libitm.  To compile code
   with transactional memory constructs, use
   the -fgnu-tm option.
 
 
 
-  Support is currently available for the x86-32, x86-64, and Alpha
-  platforms.
+  Support is currently available for Alpha, ARM, PowerPC, SH, SPARC,
+  and 32-bit/64-bit x86 platforms.
 
 
 
   For more details on transactional memory
-  see http://gcc.gnu.org/wiki/TransactionalMemory";>here.
+  see http://gcc.gnu.org/wiki/TransactionalMemory";>the GCC
+  WiKi.
 
   
 
@@ -266,11 +267,11 @@ void foo (char *a, const char *b, const 
   existing __sync built-in routines.
 
 
-  Atomic support is also available for memory blocks.  Lock free
+  Atomic support is also available for memory blocks.  Lock-free
   instructions will be used if a memory block is the same size and 
   alignment as a supported integer type.  Atomic operations which do not
-  have lock free support are left as function calls.  A set of library 
-  functions are available on the GCC atomic wiki in the "External 
+  have lock-free support are left as function calls.  A set of library 
+  functions is available on the GCC atomic wiki in the "External 
   Atomics Library" section.
 
 
@@ -279,8 +280,8 @@ void foo (char *a, const char *b, const 
 
   
 
-  When a binary operation performed on vector types and one of the operands
-  is a uniform vector it is possible to replace the vector with the
+  When a binary operation is performed on vector types and one of the operands
+  is a uniform vector, it is possible to replace the vector with the
   generating element. For example:
   
 typedef int v4si __attribute__ ((vector_size (16)));
@@ -352,7 +353,7 @@ struct B {
 };
 
 struct D : B {
-  void f() const;// error: D::f attempts to override final B::f
+  void f() const;// error: D::f attempts to override final B::f
   void f(long) override; // error: doesn't override anything
   void f(int) override;  // ok
 };
@@ -499,7 +500,7 @@ well.
  
  Added --enable-clocale=newlib configure option. 
  Debug Mode iterators for unordered associative containers. 
- Avoid polluting the global namespace by inclusion of .  
+ Don't include  to avoid polluting the global namespace.
 
 
   
@@ -509,7 +510,7 @@ well.
 The compile flag http://gcc.gnu.org/onlinedocs/gfortran/Code-Gen-Options.html#index-g_t_0040code_007bfstack_002darrays_007d-254";
   >-fstack-arrays has been added, which causes
-  that all local arrays are put on stack memory. For some
+  all local arrays to be put on stack memory. For some
   programs this will improve the performance significantly. If your
   program uses very large local arrays, it is possible that you will
   have to extend your runtime limits for stack memory.
@@ -539,7 +540,7 @@ well.
   >-Wreal-q-constant has been added, which
   warns if floating-point literals have been specified using
   q (such