Re: 2.4.7 -- GCC-3.0 -- "multiline string literals deprecated" -- PATCH

Horst von Brand (vonbrand@inf.utfsm.cl)
Tue, 31 Jul 2001 10:15:09 -0400


Gareth Hughes <gareth.hughes@acm.org> said:

[...]

> Yes, unfortunately GCC 3.0 deprecated multiline string literals

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)

> -- I saw
> someone arguing on the GCC mailing lists that writing large chunks of
> inline asm shouldn't be "easy",

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)

> as it interferes with the compiler's
> optimization passes. There were other such braindead arguments
> supporting the deprecation.

Yep, this is a braindead argument. There must have been others (sensible
ones)...

> The thread should be pretty easy to find in
> the archives. Don't know if the deprecation will be removed in future
> versions.

I hope they disallow multiline strings pretty soon.

-- 
Dr. Horst H. von Brand                Usuario #22616 counter.li.org
Departamento de Informatica                     Fono: +56 32 654431
Universidad Tecnica Federico Santa Maria              +56 32 654239
Casilla 110-V, Valparaiso, Chile                Fax:  +56 32 797513
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/