]> git.ipfire.org Git - thirdparty/gcc.git/commit
doc: Fix documentation around 'asm' keyword in C++
authorJonathan Wakely <jwakely@redhat.com>
Wed, 20 Oct 2021 18:41:49 +0000 (19:41 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Wed, 20 Oct 2021 18:42:28 +0000 (19:42 +0100)
commit154c6d430ee173904237de64d5aae11565201318
treecc68a8d85ac866b452cb25e711e7926964b1776a
parent885f9b4ad59a1c37742b68505edc80c7f419d9a4
doc: Fix documentation around 'asm' keyword in C++

The documentation on asm statements suggests asm is always a GNU
extension, but it's been part of ISO C++ since the first standard.

The documentation of -fno-asm is wrong for C++ as it states that it only
affects typeof, but actually it affects typeof and asm (despite asm
being part of ISO C++).

gcc/ChangeLog:

* doc/extend.texi (Basic Asm): Clarify that asm is not an
extension in C++.
* doc/invoke.texi (-fno-asm): Fix description for C++.
gcc/doc/extend.texi
gcc/doc/invoke.texi