All of lore.kernel.org
 help / color / mirror / Atom feed
* gcc-4.6.0 generates no code for sub_preempt_count()
@ 2011-04-13 19:50 Richard Weinberger
  2011-04-14  7:49 ` Mikael Pettersson
  2011-04-14 14:43 ` masterkom masterkom
  0 siblings, 2 replies; 8+ messages in thread
From: Richard Weinberger @ 2011-04-13 19:50 UTC (permalink / raw)
  To: linux-kernel; +Cc: user-mode-linux-devel

Hi,

I'm facing a very strange issue with gcc-4.6.0 and UML.
Within __local_bh_enable() gcc generates no code for sub_preempt_count().

See:
http://userweb.kernel.org/~rw/uml-gcc460/__local_bh_enable-gcc460.txt
vs.
http://userweb.kernel.org/~rw/uml-gcc460/__local_bh_enable-gcc431.txt

Interestingly it generates code for add_preempt_count().
I can reproduce this on x86 and x86_64.

The problem has to do with UML's current_thread_info() function.
When I replace it with arch/x86's (unportable) variant gcc generates code.

Any ideas whether this is a gcc or a kernel issue?
Thanks,
//richard

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-04-15 15:17 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-13 19:50 gcc-4.6.0 generates no code for sub_preempt_count() Richard Weinberger
2011-04-14  7:49 ` Mikael Pettersson
2011-04-14 13:52   ` Richard Weinberger
2011-04-14 19:50     ` [uml-devel] " James McMechan
2011-04-14 19:50       ` James McMechan
2011-04-15 15:17       ` Richard Weinberger
2011-04-14 14:43 ` masterkom masterkom
2011-04-14 15:17   ` Frank Kingswood

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.