From: Gareth Hughes <gareth.hughes@acm.org>
To: linux-kernel@vger.kernel.org
Subject: Re: 2.4.7 -- GCC-3.0 -- "multiline string literals deprecated" -- PATCH
Date: Wed, 01 Aug 2001 01:57:52 +1000 [thread overview]
Message-ID: <3B66D580.5217B48B@acm.org> (raw)
In-Reply-To: <200107311415.f6VEF9oD028247@pincoya.inf.utfsm.cl>
Horst von Brand wrote:
>
> AFAIU, they are non-standard, and can easily hide bugs (in opening a string
> and forgetting to close you are in escence commenting out lines of code)
Zack Weinberg, who's post started the thread, gave three main criteria
for their removal in
http://gcc.gnu.org/ml/gcc-patches/2001-07/msg00327.html, including:
<quote>
There is only one argument in my mind for keeping them:
- It makes it easier to write lengthy chunks of inline assembly.
This is certainly true, however, writing a lengthy chunk of inline
assembly is almost always a mistake; it interferes with the compiler's
ability to do its job. Therefore I do not think there is any
compelling need to make that easy.
</quote>
If I ever write inline assembly, then it's for a very good reason. I'd
hesitate to call almost all uses of inline assembly a "mistake",
particlarly in places like the kernel, or math-intensive ones like 3D
graphics.
> Right. If you use a compiler, you shouldn't need it much. Better make
> other, more important, things easy/more foolproof, even at some cost for
> the asm() writer. (Hint: Count the lines of asm in the kernel (an
> _extremely_ heavy asm user!) vs the lines of plain C)
No argument re: lines of code. However, if I have to write a decent
chunk of inline assembly, multiline strings are much nicer IMHO.
> Yep, this is a braindead argument. There must have been others (sensible
> ones)...
See above ;-)
> I hope they disallow multiline strings pretty soon.
I don't have strong feelings either way. And I sure don't want to have
this argument again...
-- Gareth
prev parent reply other threads:[~2001-07-31 15:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-07-31 4:57 2.4.7 -- GCC-3.0 -- "multiline string literals deprecated" -- PATCH paulr
2001-07-31 13:52 ` Gareth Hughes
2001-07-31 14:11 ` Matti Aarnio
2001-07-31 14:15 ` Horst von Brand
2001-07-31 15:57 ` Gareth Hughes [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3B66D580.5217B48B@acm.org \
--to=gareth.hughes@acm.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox