public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "rth at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c/21502] New: small data relocation mismatch Date: Tue, 10 May 2005 18:34:00 -0000 [thread overview] Message-ID: <20050510183435.21502.rth@gcc.gnu.org> (raw) extern const char f[]; const char f[] = ""; char g(void) { return f[0]; } In 4.0, we put f in .sdata; as of 20050510 we put it in .rodata but are still emitting a gprel relocation. The problem is that by the time we assemble_variable on f, the type of f has been reset to the indeterminate array. jsm28 sez this is related to PR21342, and that a similar fix may be needed around complete_array_type. -- Summary: small data relocation mismatch Product: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c AssignedTo: rth at gcc dot gnu dot org ReportedBy: rth at gcc dot gnu dot org CC: gcc-bugs at gcc dot gnu dot org GCC target triplet: ia64-*-* http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21502
next reply other threads:[~2005-05-10 18:34 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2005-05-10 18:34 rth at gcc dot gnu dot org [this message] 2005-05-10 19:10 ` [Bug c/21502] " rth at gcc dot gnu dot org 2005-05-10 19:13 ` [Bug c/21502] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org 2005-05-11 7:33 ` cvs-commit at gcc dot gnu dot org 2005-05-11 7:34 ` cvs-commit at gcc dot gnu dot org 2005-05-11 7:35 ` rth at gcc dot gnu dot 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=20050510183435.21502.rth@gcc.gnu.org \ --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: linkBe 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).