public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
[parent not found: <fa.derh1nv.1h0ai0b@ifi.uio.no>]
* Asm style
@ 2001-11-21 23:07 vda
  2001-11-21 21:21 ` Ben Collins
  0 siblings, 1 reply; 7+ messages in thread
From: vda @ 2001-11-21 23:07 UTC (permalink / raw)
  To: linux-kernel

I'm using GCC 3.0.1 and seeing "multi-line literals are deprecated".
Since a patch is necessary for that (and someone submitted it already)
I'd like to hear from big kernel guys what asm statement style to use:
	asm(
"		cmd	r,r\n"
"lbl:		cmd	r,r\n"
"		cmd	r,r\n"
		: spec
		: spec
	);
[variable width for labels? I don't like it] or
	asm(
	"	cmd	r,r\n"
	"lbl:	cmd	r,r\n"
	"	cmd	r,r\n"
		: spec
		: spec
	);
[better. But \n's are ugly] or
#define NL "\n"
	asm(
	"	cmd	r,r" NL
	"lbl:	cmd	r,r" NL
	"	cmd	r,r" NL
		: spec
		: spec
	);
[I like this: \n doesn't interfere with args]
or what?
--
vda

^ permalink raw reply	[flat|nested] 7+ messages in thread
[parent not found: <01112123070300.05447@manta.suse.lists.linux.kernel>]

end of thread, other threads:[~2001-11-22 11:31 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <fa.d6k3juv.16q3on@ifi.uio.no>
     [not found] ` <fa.cbkkrrv.m72ejr@ifi.uio.no>
2001-11-22 12:43   ` Asm style Giacomo Catenazzi
2001-11-22  9:27     ` ncw
     [not found] <fa.derh1nv.1h0ai0b@ifi.uio.no>
     [not found] ` <fa.njuqm5v.100c5ak@ifi.uio.no>
2001-11-22 14:29   ` Giacomo Catenazzi
2001-11-22 11:31     ` Jakub Jelinek
2001-11-21 23:07 vda
2001-11-21 21:21 ` Ben Collins
     [not found] <01112123070300.05447@manta.suse.lists.linux.kernel>
2001-11-21 21:23 ` Andi Kleen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox