line-map.h (fileline): Remove old typedef.
[gcc.git] / libcpp / ChangeLog
1 2004-06-30 Per Bothner <per@bothner.com>
2
3 * include/line-map.h (fileline): Remove old typedef.
4 * internal.h (struct cpp_reader): Use source_location typedef instead.
5
6 2004-06-26 Zack Weinberg <zack@codesourcery.com>
7
8 Partially revert patch of 2004-06-05.
9 * files.c (search_cache): Remove pfile argument. Don't check
10 for file that would be found by "" or <> search here...
11 (_cpp_find_file): ...do it here, before calling find_file_in_dir.
12 Do not apply directory-of-current-file correction to files
13 found by this check. Rearrange code slightly.
14
15 2004-06-21 Geoffrey Keating <geoffk@apple.com>
16
17 * files.c (should_stack_file): Correct swapped parameters to call
18 to cb.read_pch.
19 * pch.c (cpp_valid_state): Handle -fpreprocessed.
20
21 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
22
23 * Makefile.in: Regenerate with automake 1.8.5.
24 * aclocal.m4: Likewise.
25 * configure: Regenerate.
26
27 2004-06-11 Zack Weinberg <zack@codesourcery.com>
28
29 * configure.ac: Don't invoke ACX_HEADER_STDBOOL.
30 * configure, config.in: Regenerate.
31 * system.h: Unconditionally define bool as unsigned char,
32 BOOL_BITFIELD as unsigned int.
33 * .cvsignore: New file.
34
35 2004-06-09 Geoffrey Keating <geoffk@apple.com>
36
37 * traditional.c (push_replacement_text): Set macro->traditional.
38 (save_replacement_text): Likewise.
39 * pch.c (cpp_write_pch_state): Don't write list of defined macros.
40 (struct save_macro_item): Delete.
41 (struct save_macro_data): Use a character array not the previous
42 structured format.
43 (save_macros): Save macro as text not as internal structures.
44 (cpp_prepare_state): Update for changes to save_macro_data.
45 (cpp_read_state): Don't read macros defined in PCH. Restore
46 -D macros as text.
47 * macro.c (create_iso_definition): Honour alloc_subobject.
48 Clear traditional flag.
49 (_cpp_create_definition): Honour alloc_subobject.
50 * lex.c (cpp_token_val_index): New.
51 * internal.h: Include cpp-id-data.h.
52 (uchar): Move definition to cpp-id-data.h.
53 (U): Likewise.
54 (cpp_macro): Likewise.
55 * directives.c (struct answer): Move to cpp-id-data.h.
56 (do_assert): Honour alloc_subobject.
57
58 * include/symtab.h (struct ht): Add field 'alloc_subobject'.
59 * include/cpplib.h (struct cpp_string): Add GTY marker.
60 (enum cpp_token_fld_kind): New.
61 (struct cpp_token): Add GTY markers.
62 (cpp_token_val_index): Prototype.
63 (CPP_HASHNODE_VALUE_IDX): New.
64 (struct cpp_hashnode): Don't skip fields of 'value' when marking.
65 * include/cpp-id-data.h: New file.
66
67 2004-06-09 Paolo Bonzini <bonzini@gnu.org>
68
69 * Makefile.am (all-local): New.
70 * Makefile.in: Regenerate.
71
72 2004-06-06 Roger Sayle <roger@eyesopen.com>
73
74 * Makefile.am (LIBICONV): Declare.
75 (makedepend_LDADD): Use LIBICONV.
76 * Makefile.in: Regenerate.
77
78 2004-06-05 Andrew Pinski <pinskia@physics.uc.edu>
79
80 * Makefile.am (LIBINTL): Declare
81 (makedepend_LDADD): Use LIBINTL.
82 * Makefile.in: Regenerate.
83
84 2004-06-05 Zack Weinberg <zack@codesourcery.com>
85
86 * Makefile.am: Add makedepend.
87 * Makefile.in, aclocal.m4: Regenerate.
88 * charset.c: Insert a space to avoid a warning.
89 * directives.c: Include mkdeps.h.
90 (_cpp_handle_directive): Reenable macro expander if appropriate.
91 (undefine_macros): Inline body of _cpp_free_definition for speed.
92 Do not call undef callback or _cpp_warn_if_unused_macro.
93 (cpp_get_deps): New interface.
94 * files.c (search_cache): Add pfile argument. Check for file
95 that would be found by "" or <> search here...
96 (_cpp_find_file): ...not here. Correct recorded start_dir of
97 files found by directory-of-current-file search that would be
98 found by "" or <> search.
99 * init.c (cpp_add_dependency_target): Delete.
100 * internal.h (struct lexer_state): Add discarding_output flag.
101 * lex.c (lex_identifier): Compute hash function while scanning.
102 * macro.c (cpp_scan_nooutput): Disable macro expansion outside
103 directives.
104 * makedepend.c: New file.
105 * mkdeps.c (struct deps): Add vpath vector.
106 (apply_vpath, deps_add_vpath): New function.
107 (deps_free): Free vpath vector.
108 (deps_add_dep, deps_add_target): Use apply_vpath.
109 * symtab.c (calc_hash): Use HT_HASHSTEP and HT_FINISH.
110 (ht_lookup_with_hash): New function.
111 * cpplib.h, mkdeps.h: Update prototypes.
112 * symtab.h: Update prototypes.
113 (HT_HASHSTEP, HT_FINISH): New macros.
114
115 2004-05-29 Geoffrey Keating <geoffk@apple.com>
116
117 * symtab.c (ht_create): Set entries_owned.
118 (ht_destroy): Honour entries_owned.
119 (ht_expand): Likewise.
120 (ht_load): New.
121 * include/symtab.h (struct ht): New field 'entries_owned'
122 (ht_load): New prototype.
123
124 2004-05-26 Paolo Bonzini <bonzini@gnu.org>
125
126 PR bootstrap/15651
127 * configure.ac: Fix m4 quoting when picking
128 the size of HOST_WIDE_INT.
129 * configure: Regenerate.
130
131 2004-05-25 Paolo Bonzini <bonzini@gnu.org>
132
133 * Makefile.am: the correct directory for
134 gettext include files is given by @INCINTL@.
135 * Makefile.in: Regenerate.
136
137 2004-05-24 Paolo Bonzini <bonzini@gnu.org>
138
139 * system.h [!ENABLE_NLS]: dgettext takes two
140 parameters.
141
142 2004-05-23 Paolo Bonzini <bonzini@gnu.org>
143
144 Moved libcpp from the gcc subdirectory to the toplevel.
145 * Makefile.am: New file.
146 * Makefile.in: Regenerate.
147 * configure.ac: New file.
148 * configure: Regenerate.
149 * config.in: Regenerate.
150 * charset.c: Moved from gcc/cppcharset.c. Add note about
151 brokenness of input charset detection. Adjust for change
152 in name of cppucnid.h.
153 * errors.c: Moved from gcc/cpperror.c. Do not include intl.h.
154 * expr.c: Moved from gcc/cppexp.c.
155 * files.c: Moved from gcc/cppfiles.c. Do not include intl.h.
156 Remove #define of O_BINARY, it is in system.h.
157 * identifiers.c: Moved from gcc/cpphash.c.
158 * internal.h: Moved from gcc/cpphash.h. Change header
159 guard name. All other files adjusted to match name change.
160 * init.c: Moved from gcc/cppinit.c.
161 (init_library) [ENABLE_NLS]: Call bindtextdomain.
162 * lex.c: Moved from gcc/cpplex.c.
163 * directives.c: Moved from gcc/cpplib.c.
164 * macro.c: Moved from gcc/cppmacro.c.
165 * pch.c: Moved from gcc/cpppch.c. Do not include intl.h.
166 * traditional.c: Moved from gcc/cpptrad.c.
167 * ucnid.h: Moved from gcc/cppucnid.h. Change header
168 guard name.
169 * ucnid.pl: Moved from gcc/cppucnid.pl.
170 * ucnid.tab: Moved from gcc/cppucnid.tab. Change header
171 guard name.
172 * symtab.c: Moved from gcc/hashtable.c.
173 * line-map.c: Moved from gcc. Do not include intl.h.
174 * mkdeps.c: Moved from gcc.
175 * system.h: New file.
176 * include/cpplib.h: Moved from gcc. Change header guard name.
177 * include/line-map.h: Moved from gcc. Change header guard name.
178 * include/mkdeps.h: Moved from gcc. Change header guard name.
179 * include/symtab.h: Moved from gcc/hashtable.h. Change header
180 guard name.