mirror of git://gcc.gnu.org/git/gcc.git
directives.c: Fix typos.
* directives.c: Fix typos. * include/line-map.h: Fix typos. * line-map.c: Fix typos. * macro.c: Fix typos. From-SVN: r187966
This commit is contained in:
parent
9474e8ab4a
commit
7d9641ccfa
|
@ -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>
|
2012-05-25 Dodji Seketeli <dodji@redhat.com>
|
||||||
|
|
||||||
PR bootstrap/53459
|
PR bootstrap/53459
|
||||||
|
|
|
@ -446,7 +446,7 @@ _cpp_handle_directive (cpp_reader *pfile, int indented)
|
||||||
|
|
||||||
We exclude the -fdirectives-only case because macro expansion
|
We exclude the -fdirectives-only case because macro expansion
|
||||||
has not been performed yet, and block comments can cause spaces
|
has not been performed yet, and block comments can cause spaces
|
||||||
to preceed the directive. */
|
to precede the directive. */
|
||||||
if (CPP_OPTION (pfile, preprocessed)
|
if (CPP_OPTION (pfile, preprocessed)
|
||||||
&& !CPP_OPTION (pfile, directives_only)
|
&& !CPP_OPTION (pfile, directives_only)
|
||||||
&& (indented || !(dir->flags & IN_I)))
|
&& (indented || !(dir->flags & IN_I)))
|
||||||
|
|
|
@ -159,7 +159,7 @@ struct GTY(()) line_map_macro {
|
||||||
|
|
||||||
Note that a virtual location is a location returned by
|
Note that a virtual location is a location returned by
|
||||||
linemap_add_macro_token. It encodes the relevant locations (x,y
|
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.
|
(the token) might come from.
|
||||||
|
|
||||||
In the example above x1 (for token "+") is going to be the same
|
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) \
|
#define LINEMAPS_LAST_ALLOCATED_ORDINARY_MAP(SET) \
|
||||||
LINEMAPS_LAST_ALLOCATED_MAP(SET, false)
|
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. */
|
are allcoated. */
|
||||||
#define LINEMAPS_MACRO_MAPS(SET) \
|
#define LINEMAPS_MACRO_MAPS(SET) \
|
||||||
LINEMAPS_MAPS(SET, true)
|
LINEMAPS_MAPS(SET, true)
|
||||||
|
@ -450,7 +450,7 @@ extern const struct line_map *linemap_add
|
||||||
extern const struct line_map *linemap_lookup
|
extern const struct line_map *linemap_lookup
|
||||||
(struct line_maps *, source_location);
|
(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. */
|
macro expansion, FALSE otherwise. */
|
||||||
bool linemap_tracks_macro_expansion_locs_p (struct line_maps *);
|
bool linemap_tracks_macro_expansion_locs_p (struct line_maps *);
|
||||||
|
|
||||||
|
|
|
@ -269,7 +269,7 @@ linemap_add (struct line_maps *set, enum lc_reason reason,
|
||||||
return map;
|
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. */
|
macro expansion, FALSE otherwise. */
|
||||||
|
|
||||||
bool
|
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
|
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
|
location for a built-in token), then this function unwinds (using
|
||||||
linemap_unwind_toward_expansion) the location until a location that
|
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
|
words, this unwinds the reserved location until a location that is
|
||||||
in real source code is reached.
|
in real source code is reached.
|
||||||
|
|
||||||
|
|
|
@ -72,7 +72,7 @@ struct macro_arg_token_iter
|
||||||
/* A pointer to the current token pointed to by the iterator. */
|
/* A pointer to the current token pointed to by the iterator. */
|
||||||
const cpp_token **token_ptr;
|
const cpp_token **token_ptr;
|
||||||
/* A pointer to the "full" location of the current token. If
|
/* 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. */
|
macro expansion. */
|
||||||
const source_location *location_ptr;
|
const source_location *location_ptr;
|
||||||
#ifdef ENABLE_CHECKING
|
#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
|
/* Set the INDEXth token of the macro argument ARG. TOKEN is the token
|
||||||
to set, LOCATION is its virtual location. "Virtual" location means
|
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
|
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
|
argument ARG is supposed to contain. Note that ARG must be
|
||||||
tailored so that it has enough room to contain INDEX + 1 numbers of
|
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
|
/* Move the iterator one token forward. Note that if IT was
|
||||||
initialized on an argument that has a stringified token, moving it
|
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. */
|
string. */
|
||||||
static void
|
static void
|
||||||
macro_arg_token_iter_forward (macro_arg_token_iter *it)
|
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
|
means -ftrack-macro-expansion is effect; it then points to where to
|
||||||
insert the virtual location of TOKEN. TOKEN is the token 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
|
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
|
TOKEN is an argument of a function-like macro (inside a macro
|
||||||
replacement list), PARM_DEF_LOC is the spelling location of the
|
replacement list), PARM_DEF_LOC is the spelling location of the
|
||||||
macro parameter that TOKEN is replacing, in the replacement list of
|
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.
|
reaches BUFFER's size; it aborts in that situation.
|
||||||
|
|
||||||
TOKEN is the token to append. VIRT_LOC is the virtual location of
|
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
|
macro expansion. If TOKEN is an argument of a function-like macro
|
||||||
(inside a macro replacement list), PARM_DEF_LOC is the location of
|
(inside a macro replacement list), PARM_DEF_LOC is the location of
|
||||||
the macro parameter that TOKEN is replacing. If TOKEN doesn't come
|
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
|
if (macro != NULL
|
||||||
/* Several contiguous macro expansion contexts can be
|
/* Several contiguous macro expansion contexts can be
|
||||||
associated to the same macro; that means it's the same
|
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
|
contexts. So we should re-enable an expansion-disabled
|
||||||
macro only when we are sure we are really out of that
|
macro only when we are sure we are really out of that
|
||||||
macro expansion. */
|
macro expansion. */
|
||||||
|
@ -2264,7 +2264,7 @@ reached_end_of_context (cpp_context *context)
|
||||||
/* Consume the next token contained in the current context of PFILE,
|
/* Consume the next token contained in the current context of PFILE,
|
||||||
and return it in *TOKEN. It's "full location" is returned in
|
and return it in *TOKEN. It's "full location" is returned in
|
||||||
*LOCATION. If -ftrack-macro-location is in effeect, fFull location"
|
*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
|
expansion; otherwise it's just is the "normal" location of the
|
||||||
token which (*TOKEN)->src_loc. */
|
token which (*TOKEN)->src_loc. */
|
||||||
static inline void
|
static inline void
|
||||||
|
|
Loading…
Reference in New Issue