From: Martin Sebor Date: Thu, 19 Jul 2018 22:12:06 +0000 (+0000) Subject: align.h (align_flags): Use member initialization. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a34ab135873dda54ae9d7553c35019354a516832;p=gcc.git align.h (align_flags): Use member initialization. gcc/ChangeLog: * align.h (align_flags): Use member initialization. From-SVN: r262892 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a498df47aba..264d0511194 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2018-07-19 Martin Sebor + + * align.h (align_flags): Use member initialization. + 2018-07-19 David Malcolm * Makefile.in (OBJS): Add optinfo.o. diff --git a/gcc/align.h b/gcc/align.h index 9acce47cf9b..3fe2f39c6c8 100644 --- a/gcc/align.h +++ b/gcc/align.h @@ -50,8 +50,10 @@ struct align_flags /* Default constructor. */ align_flags (int log0 = 0, int maxskip0 = 0, int log1 = 0, int maxskip1 = 0) { - levels[0] = {log0, maxskip0}; - levels[1] = {log1, maxskip1}; + levels[0].log = log0; + levels[0].maxskip = maxskip0; + levels[1].log = log1; + levels[1].maxskip = maxskip1; normalize (); }