[Bug target/26511] Using -O3, doesn't assign in a pointer to a global structure

2006-03-03 Thread falk at debian dot org
--- Comment #11 from falk at debian dot org 2006-03-03 15:16 --- (In reply to comment #10) > This code passes configure and is thus included. Should I conclude glibc > is broken? The macro comes from the Debian package "linux-kernel-headers", which takes it from the Linux kernel. >

[Bug target/26511] Using -O3, doesn't assign in a pointer to a global structure

2006-03-03 Thread wielemak at science dot uva dot nl
--- Comment #10 from wielemak at science dot uva dot nl 2006-03-03 14:37 --- Frank, Thanks a lot! It just comes from man gettid: NAME gettid - get thread identification SYNOPSIS #include #include #include _syscall0(pid_t,gettid) pid_t g

[Bug target/26511] Using -O3, doesn't assign in a pointer to a global structure

2006-03-03 Thread falk at debian dot org
--- Comment #9 from falk at debian dot org 2006-03-03 14:24 --- The reason is: pl-thread.c:78: warning: ignoring asm-specifier for non-static local variable '_sc_0' pl-thread.c:78: warning: ignoring asm-specifier for non-static local variable '_sc_19' This makes gcc not know that $19 g

[Bug target/26511] Using -O3, doesn't assign in a pointer to a global structure

2006-03-03 Thread wielemak at science dot uva dot nl
--- Comment #8 from wielemak at science dot uva dot nl 2006-03-03 12:43 --- Created an attachment (id=10962) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10962&action=view) Sources and assembly output Contains sources and assembly for broken version as well as working version (r

[Bug target/26511] Using -O3, doesn't assign in a pointer to a global structure

2006-03-03 Thread falk at debian dot org
--- Comment #7 from falk at debian dot org 2006-03-03 12:21 --- I can't reproduce this problem on alphaev68-linux with gcc 4.0.3 20060212 (prerelease) (Debian 4.0.2-9). So either it is fixed already, or caused by something else. Can you attach the assembly for the function from your 4.0.

[Bug target/26511] Using -O3, doesn't assign in a pointer to a global structure

2006-03-03 Thread wielemak at science dot uva dot nl
--- Comment #6 from wielemak at science dot uva dot nl 2006-03-03 10:55 --- So true, but you have a test-case. Ok, its a big program, but it will do the job for you in 5 minutes typing 3 commands. Turning it into a small program is not a trivial exercise, while it definitely doesn't h

[Bug target/26511] Using -O3, doesn't assign in a pointer to a global structure

2006-03-03 Thread falk at debian dot org
--- Comment #5 from falk at debian dot org 2006-03-03 09:42 --- (In reply to comment #3) > If you think this is a real and still present bug I could try to add a > little main() to the file and turn the file into a stand-alone program. Well, we can't know whether it is a real and still

[Bug target/26511] Using -O3, doesn't assign in a pointer to a global structure

2006-03-02 Thread wielemak at science dot uva dot nl
--- Comment #4 from wielemak at science dot uva dot nl 2006-03-02 10:08 --- Oops, must be ./configure --enable-mt -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26511

[Bug target/26511] Using -O3, doesn't assign in a pointer to a global structure

2006-03-02 Thread wielemak at science dot uva dot nl
--- Comment #3 from wielemak at science dot uva dot nl 2006-03-02 09:24 --- Andrew, If you think this is a real and still present bug I could try to add a little main() to the file and turn the file into a stand-alone program. I guess it is pretty likely it depends on nasty details in

[Bug target/26511] Using -O3, doesn't assign in a pointer to a global structure

2006-03-01 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2006-03-01 15:48 --- Do you have a simple self contained testcase? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26511