Launchpad has imported 2 comments from the remote bug at
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58320.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.

------------------------------------------------------------------------
On 2013-09-05T10:06:26+00:00 Doko-v wrote:

seen on arm-linux-gnueabihf, as part of an autoconf test in librep:

$ cat stack.c 
#include <stdlib.h>

void inner (char *foo) {
  char bar;
  exit (!(foo >= &bar));
}

void main () {
  char foo;
  inner (&foo);
}

$ gcc-4.6 -o conftest -O2 stack.c && ./conftest ; echo $?
0
$ gcc-4.7 -o conftest -O2 stack.c && ./conftest ; echo $?
1
$ gcc-4.8 -o conftest -O2 stack.c && ./conftest ; echo $?
1
$ gcc-4.8 -o conftest -O0 stack.c && ./conftest ; echo $?
0

Reply at:
https://bugs.launchpad.net/ubuntu/+source/gcc-4.8/+bug/1203496/comments/1

------------------------------------------------------------------------
On 2013-09-05T10:36:36+00:00 Rguenth wrote:

Well, it's clearly a bogus test - you are comparing addresses of two
distinct objects which invokes undefined behavior.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/gcc-4.8/+bug/1203496/comments/2


** Changed in: gcc
       Status: Unknown => Invalid

** Changed in: gcc
   Importance: Unknown => Medium

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1203496

Title:
  micompilation of autoconf stack growth test at -O > 0 on ARM

To manage notifications about this bug go to:
https://bugs.launchpad.net/gcc/+bug/1203496/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to