Commit 9ac97460 by Kazu Hirata Committed by Kazu Hirata

c-decl.c, [...]: Fix comment formatting.

	* c-decl.c, c-ppoutput.c, cpphash.h, cpplib.h, dbxout.c,
	line-map.c, line-map.h, var-tracking.c: Fix comment
	formatting.

From-SVN: r77888
parent 875427f0
2004-02-16 Kazu Hirata <kazu@cs.umass.edu>
* c-decl.c, c-ppoutput.c, cpphash.h, cpplib.h, dbxout.c,
line-map.c, line-map.h, var-tracking.c: Fix comment
formatting.
2004-02-16 Richard Henderson <rth@redhat.com> 2004-02-16 Richard Henderson <rth@redhat.com>
* cse.c (cse_insn): Don't lose REG_NON_LOCAL_GOTO note. * cse.c (cse_insn): Don't lose REG_NON_LOCAL_GOTO note.
......
...@@ -794,7 +794,7 @@ match_builtin_function_types (tree newtype, tree oldtype) ...@@ -794,7 +794,7 @@ match_builtin_function_types (tree newtype, tree oldtype)
/* Subroutine of diagnose_mismatched_decls. Check for function type /* Subroutine of diagnose_mismatched_decls. Check for function type
mismatch involving an empty arglist vs a nonempty one and give clearer mismatch involving an empty arglist vs a nonempty one and give clearer
diagnostics. */ diagnostics. */
static void static void
diagnose_arglist_conflict (tree newdecl, tree olddecl, diagnose_arglist_conflict (tree newdecl, tree olddecl,
tree newtype, tree oldtype) tree newtype, tree oldtype)
...@@ -970,7 +970,7 @@ diagnose_mismatched_decls (tree newdecl, tree olddecl, ...@@ -970,7 +970,7 @@ diagnose_mismatched_decls (tree newdecl, tree olddecl,
{ {
/* If types don't match for a built-in, throw away the /* If types don't match for a built-in, throw away the
built-in. No point in calling locate_old_decl here, it built-in. No point in calling locate_old_decl here, it
won't print anything. */ won't print anything. */
warning ("%Jconflicting types for built-in function '%D'", warning ("%Jconflicting types for built-in function '%D'",
newdecl, newdecl); newdecl, newdecl);
return false; return false;
......
...@@ -346,7 +346,7 @@ pp_dir_change (cpp_reader *pfile ATTRIBUTE_UNUSED, const char *dir) ...@@ -346,7 +346,7 @@ pp_dir_change (cpp_reader *pfile ATTRIBUTE_UNUSED, const char *dir)
unsigned char *to_file_quoted = alloca (to_file_len * 4 + 1); unsigned char *to_file_quoted = alloca (to_file_len * 4 + 1);
unsigned char *p; unsigned char *p;
/* cpp_quote_string does not nul-terminate, so we have to do it ourselves. */ /* cpp_quote_string does not nul-terminate, so we have to do it ourselves. */
p = cpp_quote_string (to_file_quoted, (unsigned char *) dir, to_file_len); p = cpp_quote_string (to_file_quoted, (unsigned char *) dir, to_file_len);
*p = '\0'; *p = '\0';
fprintf (print.outf, "# 1 \"%s//\"\n", to_file_quoted); fprintf (print.outf, "# 1 \"%s//\"\n", to_file_quoted);
......
...@@ -315,7 +315,7 @@ struct cpp_buffer ...@@ -315,7 +315,7 @@ struct cpp_buffer
unsigned char search_cached; unsigned char search_cached;
/* One for a system header, two for a C system header file that therefore /* One for a system header, two for a C system header file that therefore
needs to be extern "C" protected in C++, and zero otherwise. */ needs to be extern "C" protected in C++, and zero otherwise. */
unsigned char sysp; unsigned char sysp;
/* The directory of the this buffer's file. Its NAME member is not /* The directory of the this buffer's file. Its NAME member is not
......
...@@ -533,7 +533,7 @@ extern void cpp_set_callbacks (cpp_reader *, cpp_callbacks *); ...@@ -533,7 +533,7 @@ extern void cpp_set_callbacks (cpp_reader *, cpp_callbacks *);
returns the name of the original file; this is the same as the returns the name of the original file; this is the same as the
input file, except for preprocessed input. This will generate at input file, except for preprocessed input. This will generate at
least one file change callback, and possibly a line change callback least one file change callback, and possibly a line change callback
too. If there was an error opening the file, it returns NULL. */ too. If there was an error opening the file, it returns NULL. */
extern const char *cpp_read_main_file (cpp_reader *, const char *); extern const char *cpp_read_main_file (cpp_reader *, const char *);
/* Set up built-ins like __FILE__. */ /* Set up built-ins like __FILE__. */
......
...@@ -885,7 +885,7 @@ dbxout_type_fields (tree type) ...@@ -885,7 +885,7 @@ dbxout_type_fields (tree type)
for (tem = TYPE_FIELDS (type); tem; tem = TREE_CHAIN (tem)) for (tem = TYPE_FIELDS (type); tem; tem = TREE_CHAIN (tem))
{ {
/* If on of the nodes is an error_mark or its type is then return early. */ /* If on of the nodes is an error_mark or its type is then return early. */
if (tem == error_mark_node || TREE_TYPE (tem) == error_mark_node) if (tem == error_mark_node || TREE_TYPE (tem) == error_mark_node)
return; return;
......
...@@ -43,7 +43,7 @@ linemap_init (struct line_maps *set) ...@@ -43,7 +43,7 @@ linemap_init (struct line_maps *set)
set->max_column_hint = 0; set->max_column_hint = 0;
} }
/* Check for and warn about line_maps entered but not exited. */ /* Check for and warn about line_maps entered but not exited. */
void void
linemap_check_files_exited (struct line_maps *set) linemap_check_files_exited (struct line_maps *set)
...@@ -242,7 +242,7 @@ linemap_lookup (struct line_maps *set, source_location line) ...@@ -242,7 +242,7 @@ linemap_lookup (struct line_maps *set, source_location line)
mx = set->used; mx = set->used;
cached = &set->maps[mn]; cached = &set->maps[mn];
/* We should get a segfault if no line_maps have been added yet. */ /* We should get a segfault if no line_maps have been added yet. */
if (line >= cached->start_location) if (line >= cached->start_location)
{ {
if (mn + 1 == mx || line < cached[1].start_location) if (mn + 1 == mx || line < cached[1].start_location)
......
...@@ -55,9 +55,9 @@ struct line_map ...@@ -55,9 +55,9 @@ struct line_map
source_location start_location; source_location start_location;
int included_from; int included_from;
ENUM_BITFIELD (lc_reason) reason : CHAR_BIT; ENUM_BITFIELD (lc_reason) reason : CHAR_BIT;
/* The sysp field isn't really needed now that it's in cpp_buffer. */ /* The sysp field isn't really needed now that it's in cpp_buffer. */
unsigned char sysp; unsigned char sysp;
/* Number of the low-order source_location bits used for a column number. */ /* Number of the low-order source_location bits used for a column number. */
unsigned int column_bits : 8; unsigned int column_bits : 8;
}; };
...@@ -81,11 +81,11 @@ struct line_maps ...@@ -81,11 +81,11 @@ struct line_maps
/* If true, prints an include trace a la -H. */ /* If true, prints an include trace a la -H. */
bool trace_includes; bool trace_includes;
/* Highest source_location "given out". */ /* Highest source_location "given out". */
source_location highest_location; source_location highest_location;
/* The maximum column number we can quickly allocate. Higher numbers /* The maximum column number we can quickly allocate. Higher numbers
may require allocating a new line_map. */ may require allocating a new line_map. */
unsigned int max_column_hint; unsigned int max_column_hint;
}; };
...@@ -95,7 +95,7 @@ extern void linemap_init (struct line_maps *); ...@@ -95,7 +95,7 @@ extern void linemap_init (struct line_maps *);
/* Free a line map set. */ /* Free a line map set. */
extern void linemap_free (struct line_maps *); extern void linemap_free (struct line_maps *);
/* Check for and warn about line_maps entered but not exited. */ /* Check for and warn about line_maps entered but not exited. */
extern void linemap_check_files_exited (struct line_maps *); extern void linemap_check_files_exited (struct line_maps *);
...@@ -103,7 +103,7 @@ extern void linemap_check_files_exited (struct line_maps *); ...@@ -103,7 +103,7 @@ extern void linemap_check_files_exited (struct line_maps *);
(physical) line TO_LINE in the current source file (as in the (physical) line TO_LINE in the current source file (as in the
most recent linemap_add). MAX_COLUMN_HINT is the highest column most recent linemap_add). MAX_COLUMN_HINT is the highest column
number we expect to use in this line (but it does not change number we expect to use in this line (but it does not change
the highest_location). */ the highest_location). */
extern source_location linemap_line_start extern source_location linemap_line_start
(struct line_maps *, unsigned int, unsigned int); (struct line_maps *, unsigned int, unsigned int);
...@@ -158,7 +158,7 @@ extern void linemap_print_containing_files (struct line_maps *, ...@@ -158,7 +158,7 @@ extern void linemap_print_containing_files (struct line_maps *,
#define MAIN_FILE_P(MAP) ((MAP)->included_from < 0) #define MAIN_FILE_P(MAP) ((MAP)->included_from < 0)
/* Get a source position that for the same line as the most recent /* Get a source position that for the same line as the most recent
linemap_line_start, but with the specified TO_COLUMN column number. */ linemap_line_start, but with the specified TO_COLUMN column number. */
static inline source_location static inline source_location
linemap_position_for_column (struct line_maps *set, unsigned int to_column) linemap_position_for_column (struct line_maps *set, unsigned int to_column)
...@@ -169,7 +169,7 @@ linemap_position_for_column (struct line_maps *set, unsigned int to_column) ...@@ -169,7 +169,7 @@ linemap_position_for_column (struct line_maps *set, unsigned int to_column)
{ {
if (r >= 0xC000000 || to_column > 1000000) /* FIXME */ if (r >= 0xC000000 || to_column > 1000000) /* FIXME */
{ {
/* Running low on source_locations - disable column numbers. */ /* Running low on source_locations - disable column numbers. */
return r - SOURCE_COLUMN (map, r); return r - SOURCE_COLUMN (map, r);
} }
else else
......
...@@ -112,7 +112,7 @@ enum micro_operation_type ...@@ -112,7 +112,7 @@ enum micro_operation_type
MO_SET, /* Set location. */ MO_SET, /* Set location. */
MO_CLOBBER, /* Clobber location. */ MO_CLOBBER, /* Clobber location. */
MO_CALL, /* Call insn. */ MO_CALL, /* Call insn. */
MO_ADJUST /* Adjust stack pointer. */ MO_ADJUST /* Adjust stack pointer. */
}; };
/* Where shall the note be emitted? BEFORE or AFTER the instruction. */ /* Where shall the note be emitted? BEFORE or AFTER the instruction. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment