bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gold/18663] gold/testsuite/script_test_1.cc is incompatible with GC


From: hjl.tools at gmail dot com
Subject: [Bug gold/18663] gold/testsuite/script_test_1.cc is incompatible with GCC 5
Date: Mon, 13 Jul 2015 19:27:24 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=18663

--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> ---
gold/testsuite/script_test_11.t has the same issue:

---
static unsigned int buffer1[256] __attribute((used));
static unsigned int buffer2[256] __attribute((used)) = { 1 };

unsigned int foo __attribute__((section(".foo")));
extern char __foo_start;
extern char __foo_end;

int
main (void)
{
  if (&__foo_end - &__foo_start != sizeof(foo))
    return 1;
  if (&__foo_start != (char *)&foo)
    return 2;
  return 0;
}
---

GCC 5 folds "&__foo_start != (char *)&foo" to true.

-- 
You are receiving this mail because:
You are on the CC list for the bug.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]