From: Jeff Law Date: Sun, 3 Dec 1995 19:59:21 +0000 (+0000) Subject: * ch-exp.c (parse_named_record_element): Avoid aggregrate X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f9384420aee40b2a9055be24ca69bd371db86940;p=binutils-gdb.git * ch-exp.c (parse_named_record_element): Avoid aggregrate initializations for automatic variables. * hppa-tdep.c (hppa_alignof): Fix typo in last change. Fixes minor build problems. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 844cc044807..3a69ee1a725 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +Sun Dec 3 11:59:21 1995 Jeffrey A. Law + + * ch-exp.c (parse_named_record_element): Avoid aggregrate + initializations for automatic variables. + + * hppa-tdep.c (hppa_alignof): Fix typo in last change. + Sat Dec 2 19:32:57 1995 Fred Fish * symfile.c (global_psymbols, static_psymbols): Remove, unused. diff --git a/gdb/ch-exp.c b/gdb/ch-exp.c index 4ce29821ed0..6c2471f7298 100644 --- a/gdb/ch-exp.c +++ b/gdb/ch-exp.c @@ -488,7 +488,9 @@ parse_call () static void parse_named_record_element () { - struct stoken label = PEEK_LVAL ().sval; + struct stoken label; + + label = PEEK_LVAL ().sval; expect (FIELD_NAME, "expected a field name here `%s'", lexptr); if (check_token (',')) parse_named_record_element (); diff --git a/gdb/hppa-tdep.c b/gdb/hppa-tdep.c index 27f4eb42bd5..4fee8b078d1 100644 --- a/gdb/hppa-tdep.c +++ b/gdb/hppa-tdep.c @@ -1733,7 +1733,7 @@ hppa_alignof (type) struct type *type; { int max_align, align, i; - CHECK_TYPEDEf (type); + CHECK_TYPEDEF (type); switch (TYPE_CODE (type)) { case TYPE_CODE_PTR: