aboutsummaryrefslogtreecommitdiff
path: root/gcc/varasm.c
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2013-11-19 16:29:57 +0000
committerJoseph Myers <jsm28@gcc.gnu.org>2013-11-19 16:29:57 +0000
commitcb1ac93c63bc758d4fb34488df5ad16a7dc137a6 (patch)
tree3ca6da43bae6935d7e88391ce4e5876fc71b381e /gcc/varasm.c
parentbc36cb9bfe6420690b7d14eb6be76d1ddfc56a96 (diff)
downloadgcc-cb1ac93c63bc758d4fb34488df5ad16a7dc137a6.zip
gcc-cb1ac93c63bc758d4fb34488df5ad16a7dc137a6.tar.gz
gcc-cb1ac93c63bc758d4fb34488df5ad16a7dc137a6.tar.bz2
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
Diffstat (limited to 'gcc/varasm.c')
-rw-r--r--gcc/varasm.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/varasm.c b/gcc/varasm.c
index 475d196..0f94465 100644
--- a/gcc/varasm.c
+++ b/gcc/varasm.c
@@ -964,9 +964,9 @@ align_variable (tree decl, bool dont_output_data)
In particular, a.out format supports a maximum alignment of 4. */
if (align > MAX_OFILE_ALIGNMENT)
{
- 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 %d", decl,
+ MAX_OFILE_ALIGNMENT/BITS_PER_UNIT);
align = MAX_OFILE_ALIGNMENT;
}
@@ -1912,8 +1912,8 @@ assemble_noswitch_variable (tree decl, const char *name, section *sect,
if (!sect->noswitch.callback (decl, name, size, rounded)
&& (unsigned HOST_WIDE_INT) (align / BITS_PER_UNIT) > rounded)
- warning (0, "requested alignment for %q+D is greater than "
- "implemented alignment of %wu", decl, rounded);
+ error ("requested alignment for %q+D is greater than "
+ "implemented alignment of %wu", decl, rounded);
}
/* A subroutine of assemble_variable. Output the label and contents of