diff options
author | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-11-17 12:21:39 +0000 |
---|---|---|
committer | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-11-17 12:21:39 +0000 |
commit | 0e0023ea90f853550206854d1c71a923bcc91fa2 (patch) | |
tree | b39ee88c80f1cb4465e67a064b92dfbe761842e0 /gcc/opts.c | |
parent | c90ad97febb0922c0078915402ba04afc12b7233 (diff) | |
download | gcc-0e0023ea90f853550206854d1c71a923bcc91fa2.tar.gz |
* opts.c (target_handle_option): Do not assert that loc ==
UNKNOWN_LOCATION.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166866 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/opts.c')
-rw-r--r-- | gcc/opts.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/opts.c b/gcc/opts.c index d4d7f1d82cc..6c2fca3dc29 100644 --- a/gcc/opts.c +++ b/gcc/opts.c @@ -521,7 +521,7 @@ target_handle_option (struct gcc_options *opts, struct gcc_options *opts_set, const struct cl_decoded_option *decoded, unsigned int lang_mask ATTRIBUTE_UNUSED, int kind, - location_t loc, + location_t loc ATTRIBUTE_UNUSED, const struct cl_option_handlers *handlers ATTRIBUTE_UNUSED, diagnostic_context *dc) { @@ -530,7 +530,10 @@ target_handle_option (struct gcc_options *opts, gcc_assert (dc == global_dc); gcc_assert (decoded->canonical_option_num_elements <= 2); gcc_assert (kind == DK_UNSPECIFIED); - gcc_assert (loc == UNKNOWN_LOCATION); + /* Although the location is not passed down to + targetm.handle_option, do not make assertions about its value; + options may come from optimize attributes and having the correct + location in the handler is not generally important. */ return targetm.handle_option (decoded->opt_index, decoded->arg, decoded->value); } |