[gcc r12-1583] [Ada] Remove dead code for overlapping actuals and prefix notation

Pierre-Marie de Rodat pmderodat@gcc.gnu.org
Thu Jun 17 14:34:05 GMT 2021


https://gcc.gnu.org/g:e50d50f0c236e9374cfe6a387b1ea24e5f490682

commit r12-1583-ge50d50f0c236e9374cfe6a387b1ea24e5f490682
Author: Piotr Trojanek <trojanek@adacore.com>
Date:   Wed Mar 10 09:45:11 2021 +0100

    [Ada] Remove dead code for overlapping actuals and prefix notation
    
    gcc/ada/
    
            * sem_warn.adb (Warn_On_Overlapping_Actuals): Remove dead code.

Diff:
---
 gcc/ada/sem_warn.adb | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/gcc/ada/sem_warn.adb b/gcc/ada/sem_warn.adb
index cbe69568bcd..1e62d478022 100644
--- a/gcc/ada/sem_warn.adb
+++ b/gcc/ada/sem_warn.adb
@@ -3788,12 +3788,6 @@ package body Sem_Warn is
                   then
                      null;
 
-                  --  If the actual is a function call in prefix notation,
-                  --  there is no real overlap.
-
-                  elsif Nkind (Act2) = N_Function_Call then
-                     null;
-
                   --  If type is explicitly not by-copy, assume that
                   --  aliasing is intended.


More information about the Gcc-cvs mailing list