aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/fe.h
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@gcc.gnu.org>2020-05-12 22:34:50 +0200
committerEric Botcazou <ebotcazou@gcc.gnu.org>2020-05-12 22:35:55 +0200
commit27c3d986c4e704336c17155c558911beff1e1385 (patch)
treea379266065b29cc139d58be43dfaf7ab977e7c34 /gcc/ada/fe.h
parent90b160f8ec515f54ddc36519a6aaa60abdabdec1 (diff)
downloadgcc-27c3d986c4e704336c17155c558911beff1e1385.zip
gcc-27c3d986c4e704336c17155c558911beff1e1385.tar.gz
gcc-27c3d986c4e704336c17155c558911beff1e1385.tar.bz2
Be prepared for more aggregates in gigi
This makes sure that gigi is prepared to handle more aggregates in the special memset code path. * sem_aggr.ads (Is_Single_Aggregate): New function. * sem_aggr.adb (Is_Others_Aggregate): Use local variable. (Is_Single_Aggregate): New function to recognize an aggregate with a single association containing a single choice. * fe.h (Is_Others_Aggregate): Delete. (Is_Single_Aggregate): New declaration. * gcc-interface/trans.c (gnat_to_gnu) <N_Assignment_Statement>: Call Is_Single_Aggregate instead of Is_Others_Aggregate.
Diffstat (limited to 'gcc/ada/fe.h')
-rw-r--r--gcc/ada/fe.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/ada/fe.h b/gcc/ada/fe.h
index 6b3f300..9961328 100644
--- a/gcc/ada/fe.h
+++ b/gcc/ada/fe.h
@@ -253,9 +253,9 @@ extern Boolean No_Exception_Handlers_Set (void);
/* sem_aggr: */
-#define Is_Others_Aggregate sem_aggr__is_others_aggregate
+#define Is_Single_Aggregate sem_aggr__is_single_aggregate
-extern Boolean Is_Others_Aggregate (Node_Id);
+extern Boolean Is_Single_Aggregate (Node_Id);
/* sem_aux: */