[Bug c/48623] gcc 4.6.0 generates no code for a function with __attribute__((always_inline))

2011-04-15 Thread richard at nod dot at
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48623 --- Comment #1 from Richard Weinberger richard at nod dot at 2011-04-15 14:16:22 UTC --- Created attachment 23995 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=23995 Testcase for gcc 4.6.0

[Bug c/48623] gcc 4.6.0 generates no code for a function with __attribute__((always_inline))

2011-04-15 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48623 Richard Guenther rguenth at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED

[Bug c/48623] gcc 4.6.0 generates no code for a function with __attribute__((always_inline))

2011-04-15 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48623 --- Comment #3 from Richard Guenther rguenth at gcc dot gnu.org 2011-04-15 14:52:04 UTC --- Instead using static inline struct thread_info *current_thread_info(void) { struct thread_info *ti; void *p; asm volatile ( : =r (p) : 0 (ti));

[Bug c/48623] gcc 4.6.0 generates no code for a function with __attribute__((always_inline))

2011-04-15 Thread richard at nod dot at
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48623 --- Comment #4 from Richard Weinberger richard at nod dot at 2011-04-15 17:34:33 UTC --- Created attachment 24000 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=24000 objdump of __local_bh_enable

[Bug c/48623] gcc 4.6.0 generates no code for a function with __attribute__((always_inline))

2011-04-15 Thread richard at nod dot at
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48623 Richard Weinberger richard at nod dot at changed: What|Removed |Added Status|RESOLVED|UNCONFIRMED

[Bug c/48623] gcc 4.6.0 generates no code for a function with __attribute__((always_inline))

2011-04-15 Thread richard at nod dot at
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48623 --- Comment #6 from Richard Weinberger richard at nod dot at 2011-04-15 17:38:55 UTC --- Created attachment 24001 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=24001 objdump of __local_bh_enable

[Bug c/48623] gcc 4.6.0 generates no code for a function with __attribute__((always_inline))

2011-04-15 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48623 Richard Guenther rguenth at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |WAITING

[Bug c/48623] gcc 4.6.0 generates no code for a function with __attribute__((always_inline))

2011-04-15 Thread richard at nod dot at
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48623 --- Comment #8 from Richard Weinberger richard at nod dot at 2011-04-15 20:26:03 UTC --- Created attachment 24006 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=24006 preprocessed __local_bh_enable function

[Bug c/48623] gcc 4.6.0 generates no code for a function with __attribute__((always_inline))

2011-04-15 Thread richard at nod dot at
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48623 --- Comment #9 from Richard Weinberger richard at nod dot at 2011-04-15 20:26:48 UTC --- Created attachment 24007 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=24007 preprocessed softirq.c

[Bug c/48623] gcc 4.6.0 generates no code for a function with __attribute__((always_inline))

2011-04-15 Thread matz at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48623 Michael Matz matz at gcc dot gnu.org changed: What|Removed |Added Status|WAITING |RESOLVED

[Bug c/48623] gcc 4.6.0 generates no code for a function with __attribute__((always_inline))

2011-04-15 Thread richard at nod dot at
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48623 --- Comment #11 from Richard Weinberger richard at nod dot at 2011-04-15 22:27:19 UTC --- (In reply to comment #10) You have to make use of 'p' of course. Your return value still is based on ti. Damn, you're right! Now gcc produces a