public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-176] [Ada] Remove redundant call to Set_Etype for attribute Bit_Order
@ 2022-05-09  9:30 Pierre-Marie de Rodat
  0 siblings, 0 replies; only message in thread
From: Pierre-Marie de Rodat @ 2022-05-09  9:30 UTC (permalink / raw)
  To: gcc-cvs

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

commit r13-176-ga72fd98bf5f1e57fa2ebbacff832bd4f753fd874
Author: Piotr Trojanek <trojanek@adacore.com>
Date:   Mon Jan 10 20:59:57 2022 +0100

    [Ada] Remove redundant call to Set_Etype for attribute Bit_Order
    
    Node created by a call to New_Occurrence_Of (RTE (...), ...) has its
    Etype set. There is no need to follow it with a call to Set_Etype.
    
    Cleanup of various Analyze/Resolve routines.
    
    gcc/ada/
    
            * sem_attr.adb (Analyze_Attribute): Don't call Set_Etype for
            Bit_Order attribute.

Diff:
---
 gcc/ada/sem_attr.adb | 1 -
 1 file changed, 1 deletion(-)

diff --git a/gcc/ada/sem_attr.adb b/gcc/ada/sem_attr.adb
index 33179aa2f87..ca841d3f40f 100644
--- a/gcc/ada/sem_attr.adb
+++ b/gcc/ada/sem_attr.adb
@@ -3421,7 +3421,6 @@ package body Sem_Attr is
               New_Occurrence_Of (RTE (RE_Low_Order_First), Loc));
          end if;
 
-         Set_Etype (N, RTE (RE_Bit_Order));
          Resolve (N);
 
          --  Reset incorrect indication of staticness


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-05-09  9:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-09  9:30 [gcc r13-176] [Ada] Remove redundant call to Set_Etype for attribute Bit_Order Pierre-Marie de Rodat

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).