mirror of git://gcc.gnu.org/git/gcc.git
varasm.c (align_variable): Give error instead of warning for unsupported alignment.
* varasm.c (align_variable): Give error instead of warning for unsupported alignment. (assemble_noswitch_variable): Likewise. From-SVN: r205040
This commit is contained in:
parent
bc36cb9bfe
commit
cb1ac93c63
|
|
@ -1,3 +1,9 @@
|
||||||
|
2013-11-19 Joseph Myers <joseph@codesourcery.com>
|
||||||
|
|
||||||
|
* varasm.c (align_variable): Give error instead of warning for
|
||||||
|
unsupported alignment.
|
||||||
|
(assemble_noswitch_variable): Likewise.
|
||||||
|
|
||||||
2013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
|
2013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
|
||||||
|
|
||||||
* plugin.def (PLUGIN_INCLUDE_FILE): New event, invoked in
|
* plugin.def (PLUGIN_INCLUDE_FILE): New event, invoked in
|
||||||
|
|
|
||||||
|
|
@ -964,8 +964,8 @@ align_variable (tree decl, bool dont_output_data)
|
||||||
In particular, a.out format supports a maximum alignment of 4. */
|
In particular, a.out format supports a maximum alignment of 4. */
|
||||||
if (align > MAX_OFILE_ALIGNMENT)
|
if (align > MAX_OFILE_ALIGNMENT)
|
||||||
{
|
{
|
||||||
warning (0, "alignment of %q+D is greater than maximum object "
|
error ("alignment of %q+D is greater than maximum object "
|
||||||
"file alignment. Using %d", decl,
|
"file alignment %d", decl,
|
||||||
MAX_OFILE_ALIGNMENT/BITS_PER_UNIT);
|
MAX_OFILE_ALIGNMENT/BITS_PER_UNIT);
|
||||||
align = MAX_OFILE_ALIGNMENT;
|
align = MAX_OFILE_ALIGNMENT;
|
||||||
}
|
}
|
||||||
|
|
@ -1912,7 +1912,7 @@ assemble_noswitch_variable (tree decl, const char *name, section *sect,
|
||||||
|
|
||||||
if (!sect->noswitch.callback (decl, name, size, rounded)
|
if (!sect->noswitch.callback (decl, name, size, rounded)
|
||||||
&& (unsigned HOST_WIDE_INT) (align / BITS_PER_UNIT) > rounded)
|
&& (unsigned HOST_WIDE_INT) (align / BITS_PER_UNIT) > rounded)
|
||||||
warning (0, "requested alignment for %q+D is greater than "
|
error ("requested alignment for %q+D is greater than "
|
||||||
"implemented alignment of %wu", decl, rounded);
|
"implemented alignment of %wu", decl, rounded);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue