Commit 460ba396 by Akim Demaille Committed by Gerald Pfeifer

invoke.texi (-fstrict-aliasing): Correct two examples.

	* doc/invoke.texi (-fstrict-aliasing): Correct two examples.
	Use an imperative sentence.

From-SVN: r151654
parent b495ad7f
2009-09-12 Akim Demaille <demaille@gostai.com>
* doc/invoke.texi (-fstrict-aliasing): Correct two examples.
Use an imperative sentence.
2009-09-11 Richard Henderson <rth@redhat.com> 2009-09-11 Richard Henderson <rth@redhat.com>
* gsstruct.def (DEFGSSTRUCT): Remove printable-name argument; add * gsstruct.def (DEFGSSTRUCT): Remove printable-name argument; add
......
...@@ -6869,7 +6869,7 @@ Enabled at levels @option{-O2}, @option{-O3}, @option{-Os}. ...@@ -6869,7 +6869,7 @@ Enabled at levels @option{-O2}, @option{-O3}, @option{-Os}.
@item -fstrict-aliasing @item -fstrict-aliasing
@opindex fstrict-aliasing @opindex fstrict-aliasing
Allows the compiler to assume the strictest aliasing rules applicable to Allow the compiler to assume the strictest aliasing rules applicable to
the language being compiled. For C (and C++), this activates the language being compiled. For C (and C++), this activates
optimizations based on the type of expressions. In particular, an optimizations based on the type of expressions. In particular, an
object of one type is assumed never to reside at the same address as an object of one type is assumed never to reside at the same address as an
...@@ -6886,7 +6886,7 @@ union a_union @{ ...@@ -6886,7 +6886,7 @@ union a_union @{
@}; @};
int f() @{ int f() @{
a_union t; union a_union t;
t.d = 3.0; t.d = 3.0;
return t.i; return t.i;
@} @}
...@@ -6899,7 +6899,7 @@ expected. @xref{Structures unions enumerations and bit-fields ...@@ -6899,7 +6899,7 @@ expected. @xref{Structures unions enumerations and bit-fields
implementation}. However, this code might not: implementation}. However, this code might not:
@smallexample @smallexample
int f() @{ int f() @{
a_union t; union a_union t;
int* ip; int* ip;
t.d = 3.0; t.d = 3.0;
ip = &t.i; ip = &t.i;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment