public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "joel at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/64377] nios2 compile error in options-save.c
Date: Mon, 22 Dec 2014 15:27:00 -0000	[thread overview]
Message-ID: <bug-64377-4-WpkL7XWBHE@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-64377-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64377

--- Comment #1 from Joel Sherrill <joel at gcc dot gnu.org> ---
Looking at the generated options-save.c, the first line of this method is
clearly incorrect in the cast on the RHS. It looks like a full declaration and
not a type. If anyone familiar with the magic in these files looked at it, I am
sure it is easy to fix.

/* Stream in target options  */
void
cl_target_option_stream_in (struct data_in *data_in ATTRIBUTE_UNUSED,
                            struct bitpack_d *bp ATTRIBUTE_UNUSED,
                            struct cl_target_option *ptr ATTRIBUTE_UNUSED)
{
  ptr->saved_custom_code_status[256] = (enum nios2_ccs_code
saved_custom_code_status[256]) bp_unpack_value (bp, 64);
  ptr->saved_custom_code_index[256] = (int saved_custom_code_index[256])
bp_unpack_value (bp, 64);
  ptr->saved_fpu_custom_code[n2fpu_code_num] = (int
saved_fpu_custom_code[n2fpu_code_num]) bp_unpack_value (bp, 64);
  ptr->x_target_flags = (int) bp_unpack_value (bp, 64);
}


  reply	other threads:[~2014-12-22 15:27 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-22 15:23 [Bug target/64377] New: " joel at gcc dot gnu.org
2014-12-22 15:27 ` joel at gcc dot gnu.org [this message]
2014-12-29  2:11 ` [Bug target/64377] " sandra at codesourcery dot com
2015-01-08 22:25 ` sandra at codesourcery dot com
2015-01-12 18:02 ` joel at gcc dot gnu.org
2015-01-13 14:01 ` sandra at codesourcery dot com
2015-01-13 15:27 ` marxin at gcc dot gnu.org
2015-01-13 20:17 ` sandra at codesourcery dot com
2015-01-13 20:40 ` marxin at gcc dot gnu.org
2015-01-13 23:14 ` sandra at codesourcery dot com
2015-01-14 11:22 ` marxin at gcc dot gnu.org
2015-01-15  9:54 ` marxin at gcc dot gnu.org
2015-01-20 18:46 ` joel at gcc dot gnu.org
2015-01-20 19:00 ` joel at gcc dot gnu.org
2015-02-09 16:17 ` marxin at gcc dot gnu.org
2015-02-09 16:22 ` joel at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-64377-4-WpkL7XWBHE@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).