aboutsummaryrefslogtreecommitdiff
path: root/gcc/opts.c
diff options
context:
space:
mode:
authorManuel López-Ibáñez <manu@gcc.gnu.org>2008-08-20 13:35:00 +0000
committerManuel López-Ibáñez <manu@gcc.gnu.org>2008-08-20 13:35:00 +0000
commit1f5b386928e265df8d8652bf9fe333801cabc145 (patch)
tree7eba1faebbcca911b3f8e3ac46a9d340e8b72ad9 /gcc/opts.c
parentf4857d6e2ad2a7e1f1f002ee551676d46b2eeac2 (diff)
downloadgcc-1f5b386928e265df8d8652bf9fe333801cabc145.zip
gcc-1f5b386928e265df8d8652bf9fe333801cabc145.tar.gz
gcc-1f5b386928e265df8d8652bf9fe333801cabc145.tar.bz2
diagnostic.c (inform): Add an explicit location_t parameter.
2008-08-18 Manuel Lopez-Ibanez <manu@gcc.gnu.org> * diagnostic.c (inform): Add an explicit location_t parameter. * toplev.h (inform): Update declaration. * builtins.c: Update all calls to inform. * c-common.c: Likewise. * c-decl.c: Likewise. * c-opts.c: Likewise. * c-pch.c: Likewise. * c-pragma.c: Likewise. * c-typeck.c: Likewise. * coverage.c: Likewise. * opts.c: Likewise. * toplev.c: Likewise. * tree-cfg.c: Likewise. * tree-ssa.c: Likewise. cp/ * parser.c: Update all calls to inform. * typeck.c: Likewise. * init.c: Likewise. * class.c: Likewise. * call.c: Likewise. * method.c: Likewise. * friend.c: Likewise. * typeck2.c: Likewise. * pt.c: Likewise. * name-lookup.c: Likewise. * lex.c: Likewise. From-SVN: r139293
Diffstat (limited to 'gcc/opts.c')
-rw-r--r--gcc/opts.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/opts.c b/gcc/opts.c
index 7d58229..1de217e 100644
--- a/gcc/opts.c
+++ b/gcc/opts.c
@@ -1088,8 +1088,8 @@ decode_options (unsigned int argc, const char **argv)
if (flag_exceptions && flag_reorder_blocks_and_partition)
{
- inform
- ("-freorder-blocks-and-partition does not work with exceptions");
+ inform (input_location,
+ "-freorder-blocks-and-partition does not work with exceptions");
flag_reorder_blocks_and_partition = 0;
flag_reorder_blocks = 1;
}
@@ -1100,7 +1100,7 @@ decode_options (unsigned int argc, const char **argv)
if (flag_unwind_tables && ! targetm.unwind_tables_default
&& flag_reorder_blocks_and_partition)
{
- inform ("-freorder-blocks-and-partition does not support unwind info");
+ inform (input_location, "-freorder-blocks-and-partition does not support unwind info");
flag_reorder_blocks_and_partition = 0;
flag_reorder_blocks = 1;
}
@@ -1113,8 +1113,8 @@ decode_options (unsigned int argc, const char **argv)
&& (!targetm.have_named_sections
|| (flag_unwind_tables && targetm.unwind_tables_default)))
{
- inform
- ("-freorder-blocks-and-partition does not work on this architecture");
+ inform (input_location,
+ "-freorder-blocks-and-partition does not work on this architecture");
flag_reorder_blocks_and_partition = 0;
flag_reorder_blocks = 1;
}