This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Change warnings for unsupported alignment to errors


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]