* fix obvious typos in input.c
@ 2014-11-03 23:01 Manuel López-Ibáñez
0 siblings, 0 replies; only message in thread
From: Manuel López-Ibáñez @ 2014-11-03 23:01 UTC (permalink / raw)
To: Gcc Patch List
Committed as r217057.
Index: gcc/input.c
===================================================================
--- gcc/input.c (revision 217056)
+++ gcc/input.c (revision 217057)
@@ -749,19 +749,20 @@
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)
Index: gcc/ChangeLog
===================================================================
--- gcc/ChangeLog (revision 217056)
+++ gcc/ChangeLog (revision 217057)
@@ -1,3 +1,8 @@
+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.
+
2014-11-03 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
* config/avr/gen-avr-mmcu-specs.c: Remove unnecessary format specifier.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-11-03 23:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-03 23:01 fix obvious typos in input.c Manuel López-Ibáñez
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).