public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/26427]  New: Regressions with -fsection-anchors with zero sized structs
@ 2006-02-22 18:58 pinskia at gcc dot gnu dot org
  2006-02-22 19:00 ` [Bug target/26427] " pinskia at gcc dot gnu dot org
                   ` (21 more replies)
  0 siblings, 22 replies; 23+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-22 18:58 UTC (permalink / raw)
  To: gcc-bugs

Testcase:
struct a {};
static const int d = 1;
static const struct a b = {};
static const int c = 1;
int f(const int *, const struct a *, const int*, const int*);
int g(void)
{
  return f(&c, &b, &d, &c);
}
int f(const int *b, const struct a *c, const int *d, const int *e)
{
  return *b == *d;
}
int main(void)
{
  if (!g())
    __builtin_abort();
}

-----
What is happening is that the size for b is being calcuated wrong in the anchor
code, I don't know how to fix this yet.


-- 
           Summary: Regressions with -fsection-anchors with zero sized
                    structs
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org
GCC target triplet: powerpc-darwin
 BugsThisDependsOn: 26389


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26427


^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2006-06-29 18:58 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-22 18:58 [Bug target/26427] New: Regressions with -fsection-anchors with zero sized structs pinskia at gcc dot gnu dot org
2006-02-22 19:00 ` [Bug target/26427] " pinskia at gcc dot gnu dot org
2006-02-23  9:01 ` rsandifo at gcc dot gnu dot org
2006-03-02 19:44 ` rsandifo at gcc dot gnu dot org
2006-05-27  2:27 ` pinskia at gcc dot gnu dot org
2006-05-27  4:11 ` [Bug target/26427] [4.2 Regression] " pinskia at gcc dot gnu dot org
2006-05-29 21:07 ` pinskia at gcc dot gnu dot org
2006-05-29 21:08 ` pinskia at gcc dot gnu dot org
2006-05-29 23:04 ` howarth at nitro dot med dot uc dot edu
2006-05-29 23:10 ` pinskia at gcc dot gnu dot org
2006-05-31  1:44 ` howarth at nitro dot med dot uc dot edu
2006-05-31 22:32 ` mrs at apple dot com
2006-05-31 22:48 ` geoffk at gcc dot gnu dot org
2006-06-01  0:05 ` howarth at nitro dot med dot uc dot edu
2006-06-01  0:22 ` howarth at nitro dot med dot uc dot edu
2006-06-01 21:49 ` geoffk at gcc dot gnu dot org
2006-06-04 19:30 ` jsm28 at gcc dot gnu dot org
2006-06-04 19:57 ` mmitchel at gcc dot gnu dot org
2006-06-08 22:23 ` mrs at gcc dot gnu dot org
2006-06-08 22:32 ` mrs at apple dot com
2006-06-08 22:45 ` mrs at apple dot com
2006-06-08 23:02 ` pinskia at gcc dot gnu dot org
2006-06-29 19:08 ` [Bug target/26427] " pinskia at gcc dot gnu dot org

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).