-fzero-initialized-in-bss
Michael LeBlanc
leblanc@skycomputers.com
Thu May 6 14:16:00 GMT 2004
I get "(nil) (nil)", but that's OK. No, I have not been able to
produce a small case. This was reported to me, the company's compiler
guy, by an engineer working on the Linux kernel. I'm trying to get
more information, but I now suspect that the offending code is in a
driver module loaded on demand. I'll try to confirm asap.
When this change was committed, it included a Makefile mod to turn this
option OFF when compiling the CRT stuff. Why was that?
Mike
On May 6, 2004, at 8:58 AM, Kaveh R. Ghazi wrote:
> Can you create a reduced testcase which demonstrates the problem?
> http://gcc.gnu.org/bugs.html#report
>
> E.g. what do you get when you compile and run the following program?
>
> extern int printf (const char *, ...);
> extern void abort(void);
>
> int main(void)
> {
> static struct something *ptr1, *ptr2 = 0;
>
> printf ("%p %p\n", ptr1, ptr2);
> if (ptr1 != ptr2)
> abort();
> return 0;
> }
>
> It should output "0 0".
More information about the Gcc
mailing list