aboutsummaryrefslogtreecommitdiff
path: root/gcc/doc
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2022-03-15 10:13:03 +0100
committerMartin Liska <mliska@suse.cz>2022-03-15 10:13:03 +0100
commitcad2e08f6c249937e10ad5ae0d4a117923979efb (patch)
tree4c111a54b7fa0e5fa26391d417da4ec113007f3e /gcc/doc
parent604bf5da51533a218c0393cb5115bae7c8d95282 (diff)
parent49fb0af9bf8f16907980d383c2bbc85e185ec2e0 (diff)
downloadgcc-cad2e08f6c249937e10ad5ae0d4a117923979efb.zip
gcc-cad2e08f6c249937e10ad5ae0d4a117923979efb.tar.gz
gcc-cad2e08f6c249937e10ad5ae0d4a117923979efb.tar.bz2
Merge branch 'master' into devel/sphinx
Diffstat (limited to 'gcc/doc')
-rw-r--r--gcc/doc/extend.texi5
-rw-r--r--gcc/doc/invoke.texi6
-rw-r--r--gcc/doc/tm.texi5
-rw-r--r--gcc/doc/tm.texi.in2
4 files changed, 11 insertions, 7 deletions
diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi
index 022d8c6..ff81d33 100644
--- a/gcc/doc/extend.texi
+++ b/gcc/doc/extend.texi
@@ -13988,6 +13988,11 @@ bits that are padding bits for all the union members.
This built-in-function is useful if the padding bits of an object might
have intederminate values and the object representation needs to be
bitwise compared to some other object, for example for atomic operations.
+
+For C++, @var{ptr} argument type should be pointer to trivially-copyable
+type, unless the argument is address of a variable or parameter, because
+otherwise it isn't known if the type isn't just a base class whose padding
+bits are reused or laid out differently in a derived class.
@end deftypefn
@deftypefn {Built-in Function} @var{type} __builtin_bit_cast (@var{type}, @var{arg})
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index b745947..d89f264f 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -8201,7 +8201,7 @@ Warn when attempting to deallocate an object that was either not allocated
on the heap, or by using a pointer that was not returned from a prior call
to the corresponding allocation function. For example, because the call
to @code{stpcpy} returns a pointer to the terminating nul character and
-not to the begginning of the object, the call to @code{free} below is
+not to the beginning of the object, the call to @code{free} below is
diagnosed.
@smallexample
@@ -9490,7 +9490,7 @@ accessing more than the maximum number of elements may be diagnosed.
For example, the warning triggers for the following redeclarations because
the first one allows an array of any size to be passed to @code{f} while
the second one specifies that the array argument must have at least @code{n}
-elements. In addition, calling @code{f} with the assotiated VLA bound
+elements. In addition, calling @code{f} with the associated VLA bound
parameter in excess of the actual VLA bound triggers a warning as well.
@smallexample
@@ -19602,7 +19602,7 @@ Generate instructions supported by barrel shifter. This is the default
unless @option{-mcpu=ARC601} or @samp{-mcpu=ARCEM} is in effect.
@item -mjli-always
-@opindex mjli-alawys
+@opindex mjli-always
Force to call a function using jli_s instruction. This option is
valid only for ARCv2 architecture.
diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi
index 6e49772..fea28b2 100644
--- a/gcc/doc/tm.texi
+++ b/gcc/doc/tm.texi
@@ -752,8 +752,7 @@ If a target implements string objects then this hook should return
@c hook-end
@deftypefn {C Target Hook} void TARGET_CHECK_STRING_OBJECT_FORMAT_ARG (tree @var{format_arg}, tree @var{args_list})
-@c hook-start:TARGET_CHECK_STRING_OBJECT_FORMAT_ARG
-If a target implements string objects then this hook should should
+If a target implements string objects then this hook should
provide a facility to check the function arguments in @var{args_list}
against the format specifiers in @var{format_arg} where the type of
@var{format_arg} is one recognized as a valid string reference type.
@@ -2891,7 +2890,7 @@ intermediate registers or scratch registers.
If copying a register @var{class} in @var{mode} to @var{x} requires an
intermediate or scratch register, @code{SECONDARY_OUTPUT_RELOAD_CLASS}
-was supposed to be defined be defined to return the largest register
+was supposed to be defined to return the largest register
class required. If the
requirements for input and output reloads were the same, the macro
@code{SECONDARY_RELOAD_CLASS} should have been used instead of defining both
diff --git a/gcc/doc/tm.texi.in b/gcc/doc/tm.texi.in
index 95e5e34..f869ddd 100644
--- a/gcc/doc/tm.texi.in
+++ b/gcc/doc/tm.texi.in
@@ -2279,7 +2279,7 @@ intermediate registers or scratch registers.
If copying a register @var{class} in @var{mode} to @var{x} requires an
intermediate or scratch register, @code{SECONDARY_OUTPUT_RELOAD_CLASS}
-was supposed to be defined be defined to return the largest register
+was supposed to be defined to return the largest register
class required. If the
requirements for input and output reloads were the same, the macro
@code{SECONDARY_RELOAD_CLASS} should have been used instead of defining both