summaryrefslogtreecommitdiffstats
path: root/libcpp
diff options
context:
space:
mode:
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>2012-05-29 14:53:50 +0000
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>2012-05-29 14:53:50 +0000
commite8aa7eafbc9bfe43a4c029f8b9e133f91b305dec (patch)
treeac515777ea7bd3841b8b1fea55c7a964a850e6de /libcpp
parent0ab48139f36df798802b0128ce822980bf66be25 (diff)
downloadppe42-gcc-e8aa7eafbc9bfe43a4c029f8b9e133f91b305dec.tar.gz
ppe42-gcc-e8aa7eafbc9bfe43a4c029f8b9e133f91b305dec.zip
* directives.c: Fix typos.
* include/line-map.h: Fix typos. * line-map.c: Fix typos. * macro.c: Fix typos. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@187966 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libcpp')
-rw-r--r--libcpp/ChangeLog7
-rw-r--r--libcpp/directives.c2
-rw-r--r--libcpp/include/line-map.h6
-rw-r--r--libcpp/line-map.c4
-rw-r--r--libcpp/macro.c14
5 files changed, 20 insertions, 13 deletions
diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog
index 859c1a43cce..e526af24342 100644
--- a/libcpp/ChangeLog
+++ b/libcpp/ChangeLog
@@ -1,3 +1,10 @@
+2012-05-29 Joseph Myers <joseph@codesourcery.com>
+
+ * directives.c: Fix typos.
+ * include/line-map.h: Fix typos.
+ * line-map.c: Fix typos.
+ * macro.c: Fix typos.
+
2012-05-25 Dodji Seketeli <dodji@redhat.com>
PR bootstrap/53459
diff --git a/libcpp/directives.c b/libcpp/directives.c
index 66fa66daa64..e37b148da87 100644
--- a/libcpp/directives.c
+++ b/libcpp/directives.c
@@ -446,7 +446,7 @@ _cpp_handle_directive (cpp_reader *pfile, int indented)
We exclude the -fdirectives-only case because macro expansion
has not been performed yet, and block comments can cause spaces
- to preceed the directive. */
+ to precede the directive. */
if (CPP_OPTION (pfile, preprocessed)
&& !CPP_OPTION (pfile, directives_only)
&& (indented || !(dir->flags & IN_I)))
diff --git a/libcpp/include/line-map.h b/libcpp/include/line-map.h
index 1c81fc52ad7..fe1a18e1fa5 100644
--- a/libcpp/include/line-map.h
+++ b/libcpp/include/line-map.h
@@ -159,7 +159,7 @@ struct GTY(()) line_map_macro {
Note that a virtual location is a location returned by
linemap_add_macro_token. It encodes the relevant locations (x,y
- pairs) of that token accross the macro expansions from which it
+ pairs) of that token across the macro expansions from which it
(the token) might come from.
In the example above x1 (for token "+") is going to be the same
@@ -370,7 +370,7 @@ struct GTY(()) line_maps {
#define LINEMAPS_LAST_ALLOCATED_ORDINARY_MAP(SET) \
LINEMAPS_LAST_ALLOCATED_MAP(SET, false)
-/* Returns a pointer to the begining of the region where macro maps
+/* Returns a pointer to the beginning of the region where macro maps
are allcoated. */
#define LINEMAPS_MACRO_MAPS(SET) \
LINEMAPS_MAPS(SET, true)
@@ -450,7 +450,7 @@ extern const struct line_map *linemap_add
extern const struct line_map *linemap_lookup
(struct line_maps *, source_location);
-/* Returns TRUE if the line table set tracks token locations accross
+/* Returns TRUE if the line table set tracks token locations across
macro expansion, FALSE otherwise. */
bool linemap_tracks_macro_expansion_locs_p (struct line_maps *);
diff --git a/libcpp/line-map.c b/libcpp/line-map.c
index 6e514e5531a..8a368eec2cb 100644
--- a/libcpp/line-map.c
+++ b/libcpp/line-map.c
@@ -269,7 +269,7 @@ linemap_add (struct line_maps *set, enum lc_reason reason,
return map;
}
-/* Returns TRUE if the line table set tracks token locations accross
+/* Returns TRUE if the line table set tracks token locations across
macro expansion, FALSE otherwise. */
bool
@@ -1118,7 +1118,7 @@ linemap_unwind_toward_expansion (struct line_maps *set,
of a macro M and if its spelling location is reserved (e.g, a
location for a built-in token), then this function unwinds (using
linemap_unwind_toward_expansion) the location until a location that
- is not reserved and is not in a sytem header is reached. In other
+ is not reserved and is not in a system header is reached. In other
words, this unwinds the reserved location until a location that is
in real source code is reached.
diff --git a/libcpp/macro.c b/libcpp/macro.c
index 89d70f1da9e..c2bf06652fa 100644
--- a/libcpp/macro.c
+++ b/libcpp/macro.c
@@ -72,7 +72,7 @@ struct macro_arg_token_iter
/* A pointer to the current token pointed to by the iterator. */
const cpp_token **token_ptr;
/* A pointer to the "full" location of the current token. If
- -ftrack-macro-expansion is used this location tracks loci accross
+ -ftrack-macro-expansion is used this location tracks loci across
macro expansion. */
const source_location *location_ptr;
#ifdef ENABLE_CHECKING
@@ -1221,7 +1221,7 @@ delete_macro_args (_cpp_buff *buff, unsigned num_args)
/* Set the INDEXth token of the macro argument ARG. TOKEN is the token
to set, LOCATION is its virtual location. "Virtual" location means
- the location that encodes loci accross macro expansion. Otherwise
+ the location that encodes loci across macro expansion. Otherwise
it has to be TOKEN->SRC_LOC. KIND is the kind of tokens the
argument ARG is supposed to contain. Note that ARG must be
tailored so that it has enough room to contain INDEX + 1 numbers of
@@ -1346,7 +1346,7 @@ macro_arg_token_iter_init (macro_arg_token_iter *iter,
/* Move the iterator one token forward. Note that if IT was
initialized on an argument that has a stringified token, moving it
- foward doesn't make sense as a stringified token is essentially one
+ forward doesn't make sense as a stringified token is essentially one
string. */
static void
macro_arg_token_iter_forward (macro_arg_token_iter *it)
@@ -1965,7 +1965,7 @@ tokens_buff_remove_last_token (_cpp_buff *tokens_buff)
means -ftrack-macro-expansion is effect; it then points to where to
insert the virtual location of TOKEN. TOKEN is the token to
insert. VIRT_LOC is the virtual location of the token, i.e, the
- location possibly encoding its locus accross macro expansion. If
+ location possibly encoding its locus across macro expansion. If
TOKEN is an argument of a function-like macro (inside a macro
replacement list), PARM_DEF_LOC is the spelling location of the
macro parameter that TOKEN is replacing, in the replacement list of
@@ -2010,7 +2010,7 @@ tokens_buff_put_token_to (const cpp_token **dest,
reaches BUFFER's size; it aborts in that situation.
TOKEN is the token to append. VIRT_LOC is the virtual location of
- the token, i.e, the location possibly encoding its locus accross
+ the token, i.e, the location possibly encoding its locus across
macro expansion. If TOKEN is an argument of a function-like macro
(inside a macro replacement list), PARM_DEF_LOC is the location of
the macro parameter that TOKEN is replacing. If TOKEN doesn't come
@@ -2226,7 +2226,7 @@ _cpp_pop_context (cpp_reader *pfile)
if (macro != NULL
/* Several contiguous macro expansion contexts can be
associated to the same macro; that means it's the same
- macro expansion that spans accross all these (sub)
+ macro expansion that spans across all these (sub)
contexts. So we should re-enable an expansion-disabled
macro only when we are sure we are really out of that
macro expansion. */
@@ -2264,7 +2264,7 @@ reached_end_of_context (cpp_context *context)
/* Consume the next token contained in the current context of PFILE,
and return it in *TOKEN. It's "full location" is returned in
*LOCATION. If -ftrack-macro-location is in effeect, fFull location"
- means the location encoding the locus of the token accross macro
+ means the location encoding the locus of the token across macro
expansion; otherwise it's just is the "normal" location of the
token which (*TOKEN)->src_loc. */
static inline void
OpenPOWER on IntegriCloud