Linus Torvalds wrote: > > On Tue, 1 May 2007, Josh Triplett wrote: >> Does this still apply? Do current versions of GCC still have this problem? >> If not, can the option and warning go away? > > Even if current versions of gcc don't triple the build time (and for the > kernel, I suspect it doesn't, because we've tried to clean up our header > files), the generated _code_ will invariably suck. "invariably"? Do you know whether the current version of GCC generates poor code for pointer subtraction? If so, does anything in particular make this an unfixable problem? Has anyone reported this poor code generation to the GCC bugzilla? If so, I can add a reference to the bug in any (hypothetical) documentation for -Wptr-subtraction-blows. > So I'd not want to remove the warning. Regardless of whether it addresses a current GCC issue or not, I have no problem leaving the warning in if people want it, given that it requires an explicit switch. - Josh Triplett
Attachment:
signature.asc
Description: OpenPGP digital signature
- Follow-Ups:
- Re: sparse -Wptr-subtraction-blows: still needed?
- From: Al Viro <[email protected]>
- Re: sparse -Wptr-subtraction-blows: still needed?
- From: Linus Torvalds <[email protected]>
- Re: sparse -Wptr-subtraction-blows: still needed?
- References:
- sparse -Wptr-subtraction-blows: still needed?
- From: Josh Triplett <[email protected]>
- Re: sparse -Wptr-subtraction-blows: still needed?
- From: Linus Torvalds <[email protected]>
- sparse -Wptr-subtraction-blows: still needed?
- Prev by Date: Re: [PATCH] Remove unnecessary irq disabling
- Next by Date: Re: [PATCH] support PCI MCFG space on Intel i915 bridges
- Previous by thread: Re: sparse -Wptr-subtraction-blows: still needed?
- Next by thread: Re: sparse -Wptr-subtraction-blows: still needed?
- Index(es):