diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2022-01-27 17:18:28 +0100 |
---|---|---|
committer | Pierre-Marie de Rodat <derodat@adacore.com> | 2022-05-19 14:05:28 +0000 |
commit | 3b0cd3f02ed6c151aacb50364222566bef29e72f (patch) | |
tree | 5368af556bb6ab421e8cc79bb77ec30a69b54316 /gcc/ada/gcc-interface/trans.cc | |
parent | 20c932f30b5fb6110686378ad412bda2a5c6537e (diff) | |
download | gcc-3b0cd3f02ed6c151aacb50364222566bef29e72f.zip gcc-3b0cd3f02ed6c151aacb50364222566bef29e72f.tar.gz gcc-3b0cd3f02ed6c151aacb50364222566bef29e72f.tar.bz2 |
[Ada] Do not override inlining heuristics for expression functions at -Os
gcc/ada/
* gcc-interface/trans.cc (Subprogram_Body_to_gnu): Do not deal with
inlining heuristics for expression functions here but...
* gcc-interface/decl.cc (inline_status_for_subprog): ...here instead
and do not override them at -Os.
Diffstat (limited to 'gcc/ada/gcc-interface/trans.cc')
-rw-r--r-- | gcc/ada/gcc-interface/trans.cc | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/gcc/ada/gcc-interface/trans.cc b/gcc/ada/gcc-interface/trans.cc index e9701cd..67c69b0 100644 --- a/gcc/ada/gcc-interface/trans.cc +++ b/gcc/ada/gcc-interface/trans.cc @@ -6,7 +6,7 @@ * * * C Implementation File * * * - * Copyright (C) 1992-2021, Free Software Foundation, Inc. * + * Copyright (C) 1992-2022, Free Software Foundation, Inc. * * * * GNAT is free software; you can redistribute it and/or modify it under * * terms of the GNU General Public License as published by the Free Soft- * @@ -3906,11 +3906,6 @@ Subprogram_Body_to_gnu (Node_Id gnat_node) locus = input_location; DECL_SOURCE_LOCATION (gnu_subprog_decl) = locus; - /* If the body comes from an expression function, arrange it to be inlined - in almost all cases. */ - if (Was_Expression_Function (gnat_node) && !Debug_Flag_Dot_8) - DECL_DISREGARD_INLINE_LIMITS (gnu_subprog_decl) = 1; - /* Try to create a bona-fide thunk and hand it over to the middle-end. */ if (Is_Thunk (gnat_subprog_id) && maybe_make_gnu_thunk (gnat_subprog_id, gnu_subprog_decl)) |