This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Change warnings for unsupported alignment to errors
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Richard Biener <richard dot guenther at gmail dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 19 Nov 2013 16:32:09 +0000
- Subject: Re: Change warnings for unsupported alignment to errors
- Authentication-results: sourceware.org; auth=none
- References: <Pine dot LNX dot 4 dot 64 dot 1311190144180 dot 8831 at digraph dot polyomino dot org dot uk> <CAFiYyc0U29g1XCO2_t=Rs9B8PvAFyGWrgViMFTps5qW=z0B96g at mail dot gmail dot com>
On Tue, 19 Nov 2013, Richard Biener wrote:
> > - warning (0, "alignment of %q+D is greater than maximum object "
> > - "file alignment. Using %d", decl,
> > - MAX_OFILE_ALIGNMENT/BITS_PER_UNIT);
> > + error ("alignment of %q+D is greater than maximum object "
> > + "file alignment. Using %d", decl,
> > + MAX_OFILE_ALIGNMENT/BITS_PER_UNIT);
>
> The "Using %d" part of the diagnostic is now pointless, no?
>
> Ok with removing it or changing it to tell the user the maximum supported
> alignment.
I've applied this patch with "... is greater than maximum object file
alignment %d" (no ". Using").
--
Joseph S. Myers
joseph@codesourcery.com