[Bug other/100735] -fno-trampolines doc wrongly implies it affects C, C++ etc.

2021-06-09 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100735

--- Comment #6 from CVS Commits  ---
The master branch has been updated by H.J. Lu :

https://gcc.gnu.org/g:8f0d7f322172d411d271aa02024a342c72534465

commit r12-1346-g8f0d7f322172d411d271aa02024a342c72534465
Author: H.J. Lu 
Date:   Wed Jun 9 11:56:15 2021 -0700

Update doc/tm.texi.in to fix commit 4a0c4eaea32

PR other/100735
* doc/tm.texi.in (Trampolines): Add a missing blank line.

[Bug other/100735] -fno-trampolines doc wrongly implies it affects C, C++ etc.

2021-06-09 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100735

Jeffrey A. Law  changed:

   What|Removed |Added

 Resolution|--- |FIXED
 Status|NEW |RESOLVED
 CC||law at gcc dot gnu.org

--- Comment #5 from Jeffrey A. Law  ---
Fixed with Paul's documentation change on the trunk.

[Bug other/100735] -fno-trampolines doc wrongly implies it affects C, C++ etc.

2021-06-09 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100735

--- Comment #4 from CVS Commits  ---
The master branch has been updated by Jeff Law :

https://gcc.gnu.org/g:4a0c4eaea320a418400afc4d63359ed6c4af5548

commit r12-1342-g4a0c4eaea320a418400afc4d63359ed6c4af5548
Author: Paul Eggert 
Date:   Wed Jun 9 12:25:26 2021 -0400

Document that -fno-trampolines is for Ada only [PR100735]

gcc/
PR other/100735
* doc/invoke.texi (Code Gen Options); Document that
-fno-trampolines
and -ftrampolines work only with Ada.
* doc/tm.texi.in (Trampolines): Likewise.
* doc/tm.texi: Regenerated.

[Bug other/100735] -fno-trampolines doc wrongly implies it affects C, C++ etc.

2021-05-25 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100735

Eric Botcazou  changed:

   What|Removed |Added

 Ever confirmed|0   |1
 Status|UNCONFIRMED |NEW
 CC||ebotcazou at gcc dot gnu.org
   Last reconfirmed||2021-05-25

--- Comment #3 from Eric Botcazou  ---
> The GCC manual's documentation of -fno-trampolines was apparently written
> from an Ada point of view. However, when I read it I understandably mistook
> it to say that -fno-trampolines also works for C, C++, etc. It doesn't: it
> is silently ignored for these languages, and I assume for any language other
> than Ada.

Patches were posted to make it work in C but didn't make it apparently.

[Bug other/100735] -fno-trampolines doc wrongly implies it affects C, C++ etc.

2021-05-25 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100735

--- Comment #2 from Richard Biener  ---
Please post patches to gcc-patc...@gcc.gnu.org

[Bug other/100735] -fno-trampolines doc wrongly implies it affects C, C++ etc.

2021-05-24 Thread bruno at clisp dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100735

Bruno Haible  changed:

   What|Removed |Added

 CC||bruno at clisp dot org

--- Comment #1 from Bruno Haible  ---
(In reply to Paul Eggert from comment #0)
> it is silently ignored for these languages, and I assume for any language
> other than Ada.

Confirmed: flag_trampolines matters only for calls with the ECF_BY_DESCRIPTOR
bit set or CALL_EXPR_BY_DESCRIPTOR being true. Other than from the Ada backend,
such calls are generated only from gimple nodes with subcode bit
GF_CALL_BY_DESCRIPTOR set. GF_CALL_BY_DESCRIPTOR gets set through
gimple_call_set_by_descriptor with argument true, and such calls exist only as
consequence of tree nodes with CALL_EXPR_BY_DESCRIPTOR being true.