diff options
author | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2014-11-03 22:57:33 +0000 |
---|---|---|
committer | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2014-11-03 22:57:33 +0000 |
commit | e1f0c17813565bdbecd57df766363e67c8a9b950 (patch) | |
tree | 38bfdda330d93d96e210598d19eafcb158d4e8ac /gcc/input.c | |
parent | 7ba43edaeac497e40774af340e871735c3c3b023 (diff) | |
download | gcc-e1f0c17813565bdbecd57df766363e67c8a9b950.zip gcc-e1f0c17813565bdbecd57df766363e67c8a9b950.tar.gz gcc-e1f0c17813565bdbecd57df766363e67c8a9b950.tar.bz2 |
input.c (expand_location_to_spelling_point): Fix typo.
2014-11-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
* input.c (expand_location_to_spelling_point): Fix typo.
(expansion_point_location_if_in_system_header): Fix comment.
From-SVN: r217057
Diffstat (limited to 'gcc/input.c')
-rw-r--r-- | gcc/input.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/gcc/input.c b/gcc/input.c index 8d6356a..b6147f3 100644 --- a/gcc/input.c +++ b/gcc/input.c @@ -749,19 +749,20 @@ expand_location (source_location loc) expanded_location expand_location_to_spelling_point (source_location loc) { - return expand_location_1 (loc, /*expansion_piont_p=*/false); + return expand_location_1 (loc, /*expansion_point_p=*/false); } -/* If LOCATION is in a system header and if it's a virtual location for - a token coming from the expansion of a macro M, unwind it to the - location of the expansion point of M. Otherwise, just return +/* If LOCATION is in a system header and if it is a virtual location for + a token coming from the expansion of a macro, unwind it to the + location of the expansion point of the macro. Otherwise, just return LOCATION. This is used for instance when we want to emit diagnostics about a - token that is located in a macro that is itself defined in a system - header -- e.g for the NULL macro. In that case, if LOCATION is - passed to diagnostics emitting functions like warning_at as is, no - diagnostic won't be emitted. */ + token that may be located in a macro that is itself defined in a + system header, for example, for the NULL macro. In such a case, if + LOCATION were passed directly to diagnostic functions such as + warning_at, the diagnostic would be suppressed (unless + -Wsystem-headers). */ source_location expansion_point_location_if_in_system_header (source_location location) |