]> gcc.gnu.org Git - gcc.git/blame - gcc/ChangeLog
acinclude.m4 (GLIBCXX_ENABLE_SJLJ_EXCEPTIONS): Put down the crack pipe...
[gcc.git] / gcc / ChangeLog
CommitLineData
e1a4dd13
GDR
12003-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
2
3 * pretty-print.h (pp_set_line_maximum_length): Make macro.
4 (pp_set_prefix): Likewise.
5 (pp_destroy_prefix): Likewise.
6 (pp_remaining_character_count_for_line): Likewise.
7 (pp_clear_output_area): Likewise.
8 (pp_formatted_text): Likewise.
9 (pp_last_position_in_text): Likewise.
10 (pp_emit_prefix): Likewise.
11 (pp_append_text): Likewise.
12 (pp_flush): Likewise.
13 (pp_format_text): Likewise.
14 (pp_format_verbatim): Likewise.
15 (pp_tree_identifier): Tidy.
16 * pretty-print.c (pp_base_format_text): Rename from pp_format_text.
17 (pp_base_format_verbatim): Rename from pp_format_verbatim.
18 (pp_base_flush): Rename from pp_flush.
19 (pp_base_set_line_maximum_length): Rename from
20 pp_set_line_maximum_length.
21 (pp_base_clear_output_area): Rename from pp_clear_output_area.
22 (pp_base_set_prefix): Rename from pp_set_prefix.
23 (pp_base_destroy_prefix): Rename from pp_destroy_prefix.
24 (pp_base_emit_prefix): Rename from pp_emit_prefix.
25 (pp_base_append_text): Rename from pp_append_text.
26 (pp_base_formatted_text): Rename from pp_formatted_text.
27 (pp_base_last_position_in_text): Rename from pp_last_position_in_text.
28 (pp_base_remaining_character_count_for_line): Rename from
29 pp_remaining_character_count_for_line.
30 * diagnostic.h (diagnostic_format_decoder): Tidy.
31 (diagnostic_flush_buffer): Likewise.
32 * c-pretty-print.h: (pp_c_string_literal): Declare.
33 (pp_c_real_literal): Likewise.
34 (pp_c_integer_literal): Likewise.
35 * c-pretty-print.c (pp_c_char): Use pp_string in lieu of
36 pp_identifier.
37 (pp_c_character_literal): Tidy.
38 (pp_c_string_literal): Make public.
39 (pp_c_bool_literal): Likewise.
40 (pp_c_integer_literal): Likewise.
41 (pp_c_real_literal): Likewise.
42
43 * Makefile.in (C_PRETTY_PRINT_H): New variable.
44 (c-pretty-print.o): Update dependence.
45
8c98b170
CD
462003-08-05 Chris Demetriou <cgd@broadcom.com>
47
48 * config/mips/mips.md (fix_truncdfsi2_macro): Properly restore
49 ".set nomacro" state.
50 (fix_truncsfsi2_macro): Likewise.
51
b3c3af2f
SB
522003-08-05 Steven Bosscher <steven@gcc.gnu.org>
53
54 * tree.h (DID_INLINE_FUNC): Remove macro.
55 (DECL_DECLARED_INLINE_P): Move from c-tree.h and cp/cp-tree.h,
56 add tree check for FUNCTION_DECL.
57 (DECL_ESTIMATED_INSNS): Move from c-common.h and java/java-tree.h.
58 (struct tree_decl): Rename inlined_function_flag to
59 declared_inline_flag.
60 * c-common.h (c_lang_decl): Remove.
61 (DECL_ESTIMATED_INSNS): Remove.
62 * c-tree.h (struct lang_decl): Don't include c_lang_decl.
63 (DECL_DECLARED_INLINE_P): Remove.
64 * c-decl.c (grokdeclarator): Update comment. With -finline-functions,
65 do not reset DECL_DECLARED_INLINE_P. Don't use DID_INLINE_FUNC.
66 (finish_function): Make uninlinable a bool. Fixup call to
67 tree_inlinable_function_p() and fix some code style issues.
68 * cgraph.h (disgread_inline_limits): Fix spelling: `disregard'.
69 * cgraph.c (dump_cgraph): Likewise.
70 * cgraphunit.c (cgraph_decide_inlining): Likewise
71 (cgraph_finalize_compilation_unit): Likewise.
72 Also update call to tree_inlinable_function_p().
73 (cgraph_default_inline_p): Don't use DID_INLINE_FUNC. Instead
74 look at DECL_DECLARED_INLINE and reverse logic.
75 * print-tree.c (print_node): Likewise.
76 * toplev.c (rest_of_handle_inlining): Don't use DID_INLINE_FUNC.
77 * tree-inline.h (tree_inlinable_function_p): Make a bool. Update
78 prototype.
79 * tree-inline.c (inlinable_function_p): Split up in this function to
80 check for basic inlining inhibiting conditions, and new
81 limits_allow_inlining() function. Warn if inlining is impossible
82 because the inline candidate calls alloca or uses sjlj exceptions.
83 (limits_allow_inlining): this new function to check if the inlining
84 limits are satisfied. Throttle from currfn_max_inline_insns, not from
85 MAX_INLINE_INSNS_SINGLE. The latter only makes sense if
86 MAX_INLINE_INSNS_AUTO and MAX_INLINE_INSNS_SINGLE are equal.
87 Update prototypes.
88 (tree_inlinable_function_p): Make a bool. Update call to
89 inlinable_function_p
90 (expand_call_inline): Use limits_allow_inlining() when not in
91 unit-at-a-time mode to decide on inlining. Don't use DID_INLINE_FUNC,
92 instead see if the function was declared `inline'.
93
ed8395a0
JZ
942003-08-05 Josef Zlomek <zlomekj@suse.cz>
95
96 * gcse.c (try_replace_reg): Fix updating of note.
97
02a1994c
RS
982003-08-04 Roger Sayle <roger@eyesopen.com>
99
100 PR middle-end/11771
101 * fold-const.c (negate_expr_p <MINUS_EXPR>): Change to match the
102 logic in negate_expr, i.e. we don't invert (A-B) for floating
103 point types unless flag_unsafe_math_optimizations.
104
f2593a66
RS
1052003-08-04 Roger Sayle <roger@eyesopen.com>
106
107 * fold-const.c (fold <PLUS_EXPR>): Transform x+x into x*2.0.
108 Optimize x*c+x and x+x*c into x*(c+1) and x*c1+x*c2 into x*(c1+c2)
109 for floating point expressions with -ffast-math.
110 (fold <MULT_EXPR>): Don't transform x*2.0 into x+x.
111 * expmed.c (expand_mult): Wrap long line. Expand x*2.0 as x+x.
112
03aa99d4
RS
1132003-08-04 Roger Sayle <roger@eyesopen.com>
114
115 * c-common.c (flag_noniso_default_format_attributes): Delete.
116 (built_in_attribute): Don't define/undefine DEF_FN_ATTR.
117 (c_attrs_initialized): Delete.
118 (c_common_nodes_and_builtins): Don't test c_attrs_initialized,
119 always call c_init_attributes.
120 (c_init_attributes): Don't define/undefine DEF_FN_ATTR. Don't
121 set c_attrs_initialized when done.
122 (c_common_insert_default_attributes): Delete.
123 * c-common.h (flag_noniso_default_format_attributes): Delete.
124 (c_coomon_insert_default_attributes): Delete prototype.
125 * c-opts.c (set_std_c89, set_std_c99, set_std_cxx98): Dont set
126 flag_noniso_default_format_attributes.
127
128 * c-decl.c (c_insert_default_attributes): Delete.
129 * c-tree.h (c_insert_default_attributes): Delete prototype.
130
131 * attribs.c (decl_attributes): Don't call insert_default_attributes
132 langhook. Update function description comment.
133 * langhooks.h (lang_hooks): Remove insert_default_attributes field.
134 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Delete.
135 * c-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't define.
136 * system.h: Poison LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES macro.
137
138 * objc/objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't
139 define.
140
38e596df
RS
1412003-08-04 Richard Sandiford <rsandif@redhat.com>
142
143 * config/mips/mips.c (override_options): Disable -G on targets that
144 have no .section support.
145 (mips_select_section): Use default_select_section for such targets.
146
76d2e2c5
NN
1472003-08-04 Nathanael Nerode <neroden@gcc.gnu.org>
148
149 * fixinc/inclhack.def (svr4_undeclared_getrnge): Introduce and enable.
150 * fixinc/inclhack.def (static_getrnge): Remove disabled hack.
151 * fixinc/fixincl.x: Rebuild.
152 * fixinc/tests/base/regexp.h: New test.
153
b2734c68
AO
1542003-08-04 Alexandre Oliva <aoliva@redhat.com>
155
156 * c-ppoutput.c (cb_line_change): Don't skip line changing while
157 parsing macro arguments in the top-level context.
158
4e87a651
NB
1592003-08-04 Neil Booth <neil@daikokuya.co.uk>
160
161 * config.in: Remove HAVE_LSTAT.
162 * configure, configure.in: Don't test for lstat.
163
21ecc5a7
GDR
1642003-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
165
166 * opts.c (decode_options): Do language-specific initialization for
167 the global diagnostic context.
168 * langhooks-def.h (lhd_initialize_diagnostics): Declare.
169 (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): New macro.
170 (LANG_HOOKS_INITIALIZER): Adjust.
171 * langhooks.h (struct lang_hooks): Add new field
172 initialize_diagnostics.
173 * langhooks.c (lhd_initialize_diagnostics): Define.
174
1752003-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
176
177 * pretty-print.h: Adjust macro definitions.
178 * pretty-print.c (pp_newline): Rename to pp_base_newline.
179 (pp_character): Rename to pp_base_character.
180 (pp_string): Rename to pp_base_string.
181 * c-pretty-print.c (pp_buffer): Move to pretty-print.h
182 (pp_newline): Likewise. Adjust.
183 (pp_c_char): Adjust.
184
d82f81dd
KG
1852003-08-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
186
187 * builtins.def (BUILT_IN_ABS, BUILT_IN_IMAXABS, BUILT_IN_LABS,
188 BUILT_IN_LLABS): Move to miscellaneous section.
189
335d03ec
NB
1902003-08-03 Neil Booth <neil@daikokuya.co.uk>
191
cb6eb88a 192 PR preprocessor/11534
335d03ec
NB
193 * cppexp.c (parse_defined): Warn only if -pedantic.
194
76bf2c97
NB
1952003-08-03 Neil Booth <neil@daikokuya.co.uk>
196
197 * cppfiles.c (stack_file): Use file path.
198
178b2b9f
RS
1992003-08-02 Roger Sayle <roger@eyesopen.com>
200
201 * builtin-types.def (BT_SSIZE): New primitive type.
202 (BT_FN_INT_PTR_CONST_STRING_VALIST_ARG,
203 BT_FN_STRING_CONST_STRING_CONST_STRING_INT,
204 BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR,
205 BT_FN_SSIZE_STRING_SIZE_CONST_STRING_VAR): New function types.
206 * builtins.def (BUILT_IN_DCGETTEXT, BUILT_IN_DGETTEXT,
207 BUILT_IN_FSCANF, BUILT_IN_GETTEXT, BUILT_IN_STRFMON,
208 BUILT_IN_STRFTIME, BUILT_IN_VFPRINTF, BUILT_IN_VFSCANF): New builtins.
209 * builtin-attrs.def: Remove DEF_FN_ATTR construct and the last
210 few functions that define default attributes using it.
211 * c-common.c (c_common_insert_default_attributes): Do nothing.
212
213 * doc/extend.texi: Document these "new" builtins.
214
469146c1
KK
2152003-08-02 Kaz Kojima <kkojima@gcc.gnu.org>
216
217 * config/sh/linux.h (SUBTARGET_LINK_SPEC): Don't set rpath.
218 (LIB_SPEC): Set -lpthread always when -pthread set. Set -lieee
219 when -mieee-fp set and -shared not set.
220 (SH_FALLBACK_FRAME_FLOAT_STATE): Don't define for SH5.
221
49634b3a
NB
2222003-08-02 Neil Booth <neil@daikokuya.co.uk>
223
224 * cppfiles.c (struct _cpp_file): Rename once_only_next to
225 next_file. Remove import and pragma_once, add once_only.
226 (find_file): Add new file structures to the all_files list.
227 (should_stack_file): Mark #import-ed files once-only, and
228 don't stack them if the file has already been stacked.
229 (_cp_mark_file_once_only): Simplify.
230 * cpphash.h (struct cpp_reader): Rename once_only_files
231 to all_files. Rename saw_pragma_once to seen_once_only.
232 (_cpp_mark_file_once_only): Update prototype.
233 * cpplib.c (do_pragma_once): Update.
234
cf1ee30c
NB
2352003-08-02 Neil Booth <neil@daikokuya.co.uk>
236
237 * cppfiles.c (ENOTDIR): Remove.
238 (open_file_in_dir): Rename find_file_in_dir. Handle errors
239 other than ENOENT here.
240 (once_only_file_p): Rename should_stack_file.
241 (find_file, open_file_failed, read_file_guts): Report errors
242 with full path name.
243 (read_file): Move pch handling to should_stack_file.
244 (should_stack_file): Handle PCH and once-only issues, and
245 reading the file.
246 (stack_file): Don't do file reads.
247
50612a04
ZD
2482003-08-02 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
249
250 * libgcov.c (gcov_exit): Cleanup and fix.
251 * profile.c (compute_value_histograms): Don't try to read profiles
252 that are not present.
253
f6a46818
KG
2542003-08-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
255
f53b62e1
KG
256 * builtins.def: Categorize.
257
f6a46818
KG
258 * builtins.def (BUILT_IN_CABS, BUILT_IN_CABSF, BUILT_IN_CABSL):
259 Mind fp rounding.
260 (BUILT_IN_FFSL): Use DEF_EXT_LIB_BUILTIN.
261
12550591
AT
2622003-08-02 Andreas Tobler <a.tobler@schweiz.ch>
263
264 * config.gcc: Enable posix threads by default on darwin.
265
5f77fbd4
JJ
2662003-08-01 Jakub Jelinek <jakub@redhat.com>
267
268 * cfgcleanup.c (outgoing_edges_match): Check REG_EH_REGION notes
269 even if nehedges1 is 0.
270
f4dbf936
NN
2712003-08-01 Nathanael Nerode <neroden@gcc.gnu.org>
272
273 * fixinc/fixfixes.c, fixinc/fixlib.c, fixinc/fixlib.h,
274 fixinc/fixtests.c, fixinc/procopen.c, fixinc/server.c,
275 fixinc/server.h, fixinc/fixincl.c: ANSIfy function prototypes
276 and defintions.
277
278 * fixinc/inclhack.def (broken_cabs): Make matching more generous.
279 * fixinc/fixincl.x: Regenerate.
280 * fixinc/tests/base/math.h: Regenerate to match test_text change.
281
c76becbd
RO
2822003-08-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
283
284 * ggc-common.c (gt_pch_restore): Case MAP_FAILED to void *.
285
f920765d
RK
2862003-08-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
287
288 * except.c (sjlj_emit_dispatch_table): Use ptr_mode, not Pmode,
289 for accesses to exc_ptr.
290
8e5f33ff
GK
2912003-08-01 Geoffrey Keating <geoffk@apple.com>
292
293 * doc/sourcebuild.texi (Front End Directory): Don't make references
294 to libsubdir, it's not part of the interface to frontends.
295 * doc/install.texi (Configuration): Help users read faster by saying
296 that GCC's configure options are the standard autoconf ones.
297 Mention --libdir. Update the default rules for finding the
298 assembler. Don't use libsubdir since we haven't said what it means.
299 (Specific): In the Solaris 7 notes, update the place to put the
300 assembler.
301 * doc/invoke.texi: Update lib/gcc-lib to lib/gcc.
302 * doc/cpp.texi (Search Path): Actually, the search path
303 depends on libdir, which can relocate with cpp.
304 * doc/tm.texi (Driver): Don't document STANDARD_EXEC_PREFIX, it's
305 now a private interface between the Makefile and the driver.
306
75c20980
RH
3072003-08-01 Richard Henderson <rth@redhat.com>
308
309 * system.h: Poison ASM_SIMPLIFY_DWARF_ADDR.
310
311 * varasm.c (lookup_constant_def): New function.
312 * rtl.h (lookup_constant_def): Declare it.
313 * dwarf2out.c (loc_descriptor_from_tree): Use it.
314 Use targetm.delegitimize_address, not ASM_SIMPLIFY_DWARF_ADDR.
315
f91f41b2
ZW
3162003-08-01 Zack Weinberg <zack@codesourcery.com>
317
318 * c-decl.c (gettags, pushdecl_function_level): Delete.
319 (last_function_parm_vars): Rename last_function_parm_others.
320 (current_function_parm_vars): Rename current_function_parm_others.
321 (struct c_scope): Rewrite comment explaining this data structure.
322 Add names_last, blocks_last, parms_last fields. Rename
323 incomplete_list to incomplete.
324 (SCOPE_LIST_APPEND, SCOPE_LIST_CONCAT): New macros.
325 (poplevel): Ignore second argument. No need to nreverse
326 anything. Restructure such that each list is processed
327 exactly once. Use 'const location_t *locus' syntactic sugar
328 variable where useful. Issue unused variable warnings
329 ourselves, do not rely on function.c.
330 (insert_block, pushdecl, bind_label): Use SCOPE_LIST_APPEND.
331 (pushdecl_top_level): Likewise. Don't call duplicate_decls.
332 (implicitly_declare): decl cannot be error_mark_node.
333 (undeclared_variable): Manipulate scope structure directly.
334 (c_make_fname_decl): Likewise.
335 (getdecls, c_init_decl_processing): Fix comment.
336 (mark_forward_parm_decls): Use SCOPE_LIST_CONCAT. No need
337 for 'last' variable.
338 (grokparms): No need to nreverse parms list.
339 (store_parm_decls_newstyle): Set up the parms_last and
340 names_last fields of the new scope too.
341 (store_parm_decls_oldstyle): Can assume DECL_WEAK is not set
342 on parms to begin with; check this under ENABLE_CHECKING. Set
343 up parms_last.
344 (check_for_loop_decls): Refer directly to current_scope->tags.
345 Use consistent quote style in diagnostics.
346 (c_write_global_declarations): The names list is not backward.
347
348 * c-common.h: Don't prototype gettags.
349 * c-parse.in: Call poplevel with second argument 0 always.
350
a8eb1db5
KG
3512003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
352
353 * builtins.def: Resort builtins.
354
da7cfe13
KG
3552003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
356
357 * builtins.def (DEF_GCC_BUILTIN, DEF_LIB_BUILTIN,
358 DEF_EXT_LIB_BUILTIN, DEF_C99_BUILTIN, DEF_C99_C90RES_BUILTIN):
359 Prepend "__builtin_" onto NAME with string concatenation. Remove
360 explicit "__builtin_" from each macro call.
361
362 Reformat entire file.
363
ea8eb0b9
KG
3642003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
365
366 * builtins.def (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
367 ATTR_MATHFN_FPROUNDING_ERRNO): New macros. Use throughout.
368
61152e48 3692003-08-01 Andreas Krebbel <krebbel1@de.ibm.com>
3ef093a8
AK
370
371 * config/s390/s390.c (s390_select_ccmode): Do not attempt to use CCL,
372 CCL1, or CCL2 modes with floating point operations.
373
374 * config/s390/s390.md ("*addsf3_cc", "*addsf3_cconly", "*adddf3_cc",
375 "*adddf3_cconly", "*subsf3_cc", "*subsf3_cconly", "*subdf3_cc",
376 "*subdf3_cconly"): New insns.
377 ("*negabssi2", "*negabsdi2", "*negabsdf2", "*negabssf2"): Likewise.
378
bf42e45b
NB
3792003-08-01 Neil Booth <neil@daikokuya.co.uk>
380
381 * Makefile.in: Refine dependencies.
382 * c-opts.c (c_common_handle_option): Do nothing for -Wimport.
383 * c.opt: Update help for -Wimport.
384 * cppfiles.c: Include hashtab.h. Update comments.
385 (stack_file): Read the file before updating dependencies.
386 (once_only_file_p): Be smarter about marking once-only files.
387 (_cpp_mark_file_once_only): Correct the check for existence on
388 the list.
389 (open_file_failed): Use name not path, which is NULL.
390 * cpphash.h: Don't include hashtab.h.
391 (struct _cpp_file): Remove.
392 (struct cpp_reader): Update.
393 * cppinit.c (cpp_create_reader): Don't initialize warn_import.
394 * cpplib.h (struct cpp_options): Remove warn_import.
395 (cpp_simplify_path): Remove.
396
a5bcc582
NS
3972003-08-01 Nathan Sidwell <nathan@codesourcery.com>
398
399 PR c++/11295
400 * doc/extend.texi (Statement Expressions): Document C++ semantics.
401
2fdd01a0
ST
4022003-07-31 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
403
404 * config.gcc (sh-*-linux*): Do not override sh/t-linux with sh/t-le.
405
3c260e1d
KG
4062003-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
407
408 * builtin-types.def: Use `LONGDOUBLE' instead of `LONG_DOUBLE'
409 throughout.
410 * builtins.def: Likewise.
411
40209195
JM
4122003-07-31 Jason Merrill <jason@redhat.com>
413
414 * Makefile.in (bubblestrap): Don't require a previous full
415 bootstrap.
416
417 * expr.c (mostly_zeros_p): No longer static.
418 * tree.h: Declare it.
419 * stmt.c (resolve_asm_operand_names): Don't copy the pattern
420 unless we need to do substitutions.
421
2598550f
RS
4222003-07-31 Roger Sayle <roger@eyesopen.com>
423
424 * fold-const.c (fold <MULT_EXPR>): Optimize both x*pow(x,c) and
425 pow(x,c)*x as pow(x,c+1) for constant values c. Optimize x*x
426 as pow(x,2.0) when the latter will be expanded back into x*x.
427 (fold <RDIV_EXPR>): Optimize pow(x,c)/x as pow(x,c-1).
428 * builtins.c (expand_builtin_pow): Ignore flag_errno_math as
429 pow can never set errno when used with an integer exponent.
430 Always use expand_powi when exponent is -1, 0, 1 or 2.
431 (fold_builtin): Don't rewrite pow(x,2.0) as x*x nor pow(x,-2.0)
432 as 1.0/(x*x). This avoids unbounded recursion as we now prefer
433 the pow forms of these expressions.
434
a8ee6e2d
GK
4352003-07-31 Geoffrey Keating <geoffk@apple.com>
436
437 * Makefile.in (libexecdir): New.
438 (libsubdir): Use gcc instead of gcc-lib.
439 (libexecsubdir): New.
440 (ORDINARY_FLAGS_TO_PASS): Add libexecsubdir.
441 (DRIVER_DEFINES): Add STANDARD_LIBEXEC_PREFIX, use gcc instead of
442 gcc-lib.
443 (installdirs): Make libexecsubdir.
444 (install-common): Put executables in libexecsubdir.
445 (itoolsdir): Use libexecsubdir.
446 (itoolsdatadir): New.
447 (install-mkheaders): Separate data files and executables.
448 (install-collect2): Put executables in libexecsubdir.
449 (uninstall): Remove libexecsubdir.
450 * mkheaders.in: Update for new arrangement of files.
451 (libexecdir): New.
452 (libexecsubdir): New.
453 (itoolsdir): Use libexecsubdir.
454 (itoolsdatadir): New.
455 * gcc.c (gcc_libexec_prefix): New.
456 (STANDARD_LIBEXEC_PREFIX): Use gcc instead of gcc-lib.
457 (standard_exec_prefix_1): Use libexec.
458 (standard_exec_prefix_2): New.
459 (standard_libexec_prefix): New.
460 (process_command): Update for new arrangement of files. Compute
461 gcc_libexec_prefix. Update for change from gcc-lib to gcc.
462
631099c9
NN
4632003-07-31 Nathanael Nerode <neroden@gcc.gnu.org>
464
465 * inclhack.def (stdio_va_list): Avoid bogus replacement which
466 triggers on Interix.
467 * fixincl.x: Regenerate.
468
a132b6a8
JJ
4692003-07-31 Jakub Jelinek <jakub@redhat.com>
470
471 * config/i386/i386.c (legitimate_pic_address_disp_p): Disallow TLS
472 SYMBOL_REFs not inside UNSPEC even in PLUS rtx.
473
c67b2a58
RK
4742003-07-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
475
476 * dwarf2out.c (loc_descriptor_from_tree, case CONSTRUCTOR): New case.
477
40e941af
PB
4782003-07-31 Per Bothner <pbothner@apple.com>
479
480 * opts.c (in_fnames, num_in_fnames): Moved here from c-opts.
481 (add_input_filename): New function.
482 (handle_options): Call add_input_filename directly instead of
483 with a lang hook.
484 * opts.h (in_fnames, num_in_fnames): Moved here.
485 (add_input_filename): Declare.
486 * c-decl.c: Need to #include opts.h.
487 * Makefile.in (c-decl.o): Also depends on opts.h.
488 * c-opts.c (in_fnames, num_in_fnames): Moved to opts.c.
489 (c_common_handle_filename): Replaced by add_input_filename.
490 * c-common.h (in_fnames, num_in_fnames, c_common_handle_filename):
491 Remove.
492 * langhooks.h (struct lang_hooks): Remove handle_filename hook.
493 * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME): Remove macro.
494 (LANG_HOOKS_INITIALIZER): Remove use of LANG_HOOKS_HANDLE_FILENAME.
495 * c-lang.c (LANG_HOOKS_HANDLE_FILENAME): Remove macro.
496
9143c6b7
ZD
4972003-07-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
498
499 * combine.c (try_combine): Set JUMP_LABEL for newly created
500 unconditional jump.
501
b7de5864
ZD
5022003-07-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
503
504 * fold-const.c (fold): Fold some comparisons of bit operations.
505
fdacb904
JH
506Thu Jul 31 19:49:53 CEST 2003 Jan Hubicka <jh@suse.cz>
507
508 * cgraph.c (create_edge): Fix typo.
509 * i386.c (pic_symbolic_operand): Reorder tests.
510
8100063e
NS
5112003-07-31 Nathan Sidwell <nathan@codesourcery.com>
512
513 * doc/gcov.texi (Invoking Gcov): Describe output name mangling
514 more fully.
515 (Gcov Data Files): Update.
516
2a4e8ebc
RO
5172003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
518
519 * config.gcc (alpha*-dec-osf[45]*): Enable POSIX thread support by
520 default.
521
522 * gthr-posix.c: New file.
523 * gthr-posix.h: Define _REENTRANT if missing.
524 Make _LIBOBJC #pragma weak visible with _LIBOBJC_WEAK.
525
526 * config/alpha/t-osf4 (SHLIB_LINK): Hide dummy functions provided
527 by gthr-posix.o.
528 * config/alpha/t-osf-pthread: New file.
529
530 * fixinc/inclhack.def (alpha_pthread): New fix.
531 * fixinc/fixincl.x: Regenerate.
532 * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_CHECK]: New testcase.
533
534 * doc/install.texi (alpha*-dec-osf*): Remove --enable-threads
535 warning.
536 Fixes PR bootstrap/9330.
537
689a714d
RO
5382003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
539
540 * configure.in (gcc_cv_ld_hidden): Also disable on mips-sgi-irix5*
541 without GNU ld.
542 Update comment.
543 * configure: Regenerate.
544
caf819ae
VM
5452003-07-31 Vladimir Makarov <vmakarov@redhat.com>
546
f91f41b2
ZW
547 * sched-deps.c (sched_analyze_2): Prevent interblock move of CC0
548 setter.
caf819ae 549
1aa0a5f6
RS
5502003-07-30 Roger Sayle <roger@eyesopen.com>
551
552 * builtins.def: Alphabetize.
553
4bd0bee9
MK
5542003-07-30 Matt Kraai <kraai@alumni.cmu.edu>
555
556 * doc/c-tree.texi: Normalize spellings of "lowercase" and
557 "uppercase".
558 * doc/cpp.texi: Likewise.
559 * doc/md.texi: Likewise.
560 * doc/rtl.texi: Likewise.
561 * doc/tm.texi: Likewise.
562
7f02cb5c
MK
5632003-07-30 Matt Kraai <kraai@alumni.cmu.edu>
564
565 * objc/Make-lang.in (objc.stage1, objc.stage2, objc.stage3)
566 (objc.stage4, objc.stageprofile, objc.stagefeedback): Remove moves
567 of cc1obj.
568
498887c8
CD
5692003-07-30 Chris Demetriou <cgd@broadcom.com>
570
571 * config/mips/mips.h (SIZE_TYPE, PTRDIFF_TYPE): Undef these
572 macros before defining them.
573
10bbf137
UW
5742003-07-31 Ulrich Weigand <uweigand@de.ibm.com>
575
f91f41b2 576 * config/s390/s390.md (UNSPEC_ROUND, UNSPEC_SETHIGH,
10bbf137
UW
577 UNSPECV_BLOCKAGE): New constants.
578 ("*sethighqisi", "*sethighhisi", "*sethiqidi_64", "*sethiqidi_31",
579 "*extractqi", "*extracthi", "*extendqidi2" splitter, "*extendqisi2"
580 splitter, "fix_truncdfdi2_ieee", "fix_truncdfsi2_ieee",
581 "fix_truncsfdi2", "fix_truncsfsi2", "blockage"): Use them.
582
583 (all insns and expanders): Write output control string as brace block
584 where appropriate. Remove \-escapes for doublequote characters.
585
3f2eae23
JH
586Thu Jul 31 01:04:19 CEST 2003 Jan Hubicka <jh@suse.cz>
587
588 * gcse.c (insert_store): Fix typo in previous patch.
589
f0babc9a
NB
5902003-07-30 Neil Booth <neil@daikokuya.co.uk>
591
592 * cppfiles.c (stack_file, open_file_failed): Use path for deps.
593
edeac5de
AK
5942003-07-30 Andi Kleen <ak@muc.de>
595
596 * loop.c (check_dbra_loop): Allow LTU in the loop condition.
597
6e885ee3
ZD
5982003-07-30 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
599
600 * combine.c (distribute_notes): Cancel REG_VALUE_PROFILE notes.
601 * gcov-io.h (GCOV_FIRST_VALUE_COUNTER, GCOV_LAST_VALUE_COUNTER,
602 GCOV_N_VALUE_COUNTERS): New.
603 * profile.c (compute_value_histograms): New static function.
604 (branch_prob): Read back the value histograms.
605 * rtl.c (reg_note_name): Add name for REG_VALUE_PROFILE note.
606 * rtl.h (enum reg_note): Add REG_VALUE_PROFILE note.
607 * value-prof.c: Add comment on reading the profile.
608 * value-prof.h (COUNTER_FOR_HIST_TYPE, HIST_TYPE_FOR_COUNTER): New.
609 * doc/invoke.texi (-fprofile-values): Document behavior with
610 -fbranch-probabilities.
611
0e6cb2cb
DE
6122003-07-30 David Edelsohn <edelsohn@gnu.org>
613
614 * longlong.h (PowerPC umul_ppmm): Do not test __vxworks__.
615
656ec3b1
UW
6162003-07-30 Ulrich Weigand <uweigand@de.ibm.com>
617
618 * config/s390/s390.h (EH_RETURN_HANDLER_RTX): Compute offset
619 symbolically.
620
a0c8285b
JH
621Wed Jul 30 19:12:10 CEST 2003 Jan Hubicka <jh@suse.cz>
622
623 * gcse.c (insert_store): Ignore fake edges.
624
625 * c-common.c (flag_vtable_gc): Kill.
626 * c-common.g (flag_vtable_gc): Kill.
627 * c-opts (c_common_handle_option): Kill.
628 * c.opt (fvtable-gc): Kill.
629 * final.c (final_scan_insn): Do not call assemble_vtable_entry.
630 * output.h (assemble_vtable_entry, assemble_vtable_inherit): Kill.
631 * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): Kill.
632
633 * invoke.texi (-ftable-gc): Kill documentation.
634
635 * tree-inline.c (inlinable_function_p): Don't set DECL_UNINLINABLE
636 just because function body is missing.
637
638 * i386.c (pic_symbolic_operand): Properly detect RIP relative unspecs.
639
b2e863b8
RM
6402003-07-30 Ranjit Mathew <rmathew@hotmail.com>
641
642 * unwind-sjlj.c: Fix typo in file description.
643
9206d736
AM
6442003-07-30 Alan Modra <amodra@bigpond.net.au>
645
646 * calls.c (load_register_parameters): When shifting reg sized values
647 to the msb, move the value to a reg first.
648
9074464c
GK
6492003-07-29 Geoffrey Keating <geoffk@apple.com>
650
651 * cppfiles.c (stack_file): Leave filename as "" rather than "<stdin>".
652 * line-map.h (linemap_add): Update comments.
653 * line-map.c (linemap_add): Update comments, interpret zero-length
654 filename as "<stdin>".
655
e55e4f68
NN
6562003-07-29 Nathanael Nerode <neroden@gcc.gnu.org>
657
658 * mkinstalldirs: Import autoconf 2.57 / automake 1.7 version.
659
55d54003
ZW
6602003-07-29 Zack Weinberg <zack@codesourcery.com>
661
662 * c-decl.c (last_function_parm_vars, current_function_parm_vars):
663 New static variables.
664 (struct c_scope): Add parms and warned_forward_parm_decls
665 fields; remove parm_order.
666 (storedecls, storetags): Delete.
667 (poplevel): Also clear bindings on the parms chain.
668 (pushdecl): Handle forward declarations of parameters, and
669 chain PARM_DECLs on the parms list, not the names list.
670 (lookup_name_current_level): Check for PARM_DECLs on the parms
671 list too.
672 (push_parm_decl): Don't update parm_order.
673 (clear_parm_order): Rename mark_forward_parm_decls. Issue the
674 warning, only once per parameter list, and set TREE_ASM_WRITTEN
675 on the decls here. Then move the forward decls to the names list.
676 (grokparms): Set last_function_parm_vars.
677 (get_parm_info): Don't use gettags or getdecls. No need to
678 extract non-parms from the parms list, or reorganize the parms
679 list. Feed nonparms back in the TREE_TYPE of the list node
680 returned. Issue only one error per parameter list for "void"
681 appearing more than once in said parameter list. Collapse
682 parmlist_tags_warning into this function to avoid double scan
683 of tags list.
684 (start_function): Set current_function_parm_vars.
685 (store_parm_decls_newstyle): Bypass pushdecl, manipulate scope
686 directly. Get non-parms from current_function_parm_vars; no
687 need to extract them from the parms chain. Properly bind tags
688 in the new scope.
689 (store_parm_decls_oldstyle): No need to extract non-parameters
690 from the parms chain, nor to store them back afterward. Move
691 declaration to top of function, restructure code reordering
692 DECL_ARGUMENTS.
693 (store_parm_decls): No need to save and restore warn_shadow.
694 * c-parse.in: Don't call parmlist_tags_warning nor
695 clear_parm_order. Call mark_forward_parm_decls when forward
696 parm decls are encountered.
697 * c-tree.h: Prototype mark_forward_parm_decls; not
698 clear_parm_order or parmlist_tags_warning.
699
18c81520
GK
7002003-07-29 Geoffrey Keating <geoffk@apple.com>
701
702 * c-common.c (allow_pch): Remove.
703 * c-common.h (allow_pch): Remove.
704 (c_common_no_more_pch): Declare.
705 * c-lex.c (c_lex): Call c_common_no_more_pch when appropriate.
706 * c-pch.c: Include hosthooks.h.
707 (c_common_valid_pch): Don't check allow_pch.
708 (c_common_read_pch): Clear valid_pch to prevent reading PCH files.
709 (c_common_no_more_pch): New.
710 * ggc-common.c: Include hosthooks.h.
711 (gt_pch_save): Call gt_pch_get_address.
712 (gt_pch_restore): Call gt_pch_use_address.
713 * hooks.c (hook_voidp_size_t_null): New.
714 (hook_bool_voidp_size_t_false): New.
715 * hooks.h (hook_voidp_size_t_null): New.
716 (hook_bool_voidp_size_t_false): New.
717 * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): New.
718 (HOST_HOOKS_GT_PCH_USE_ADDRESS): New.
719 (HOST_HOOKS_INITIALIZER): Add HOST_HOOKS_GT_PCH_GET_ADDRESS,
720 HOST_HOOKS_GT_PCH_USE_ADDRESS.
721 * hosthooks.h (struct host_hooks): Add gt_pch_get_address,
722 gt_pch_use_address.
723 * doc/hostconfig.texi (Host Common): Document
724 HOST_HOOKS_GT_PCH_GET_ADDRESS, HOST_HOOKS_GT_PCH_USE_ADDRESS.
725 * Makefile.in (c-pch.o): Depend on hosthooks.h.
726 (ggc-common.o): Likewise.
727
728 * config/rs6000/host-darwin.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Define.
729 (HOST_HOOKS_GT_PCH_USE_ADDRESS): Define.
730 (pch_address_space): New.
731 (darwin_rs6000_gt_pch_get_address): New.
732 (darwin_rs6000_gt_pch_use_address): New.
733
8f9b4009
NB
7342003-07-29 Neil Booth <neil@daikokuya.co.uk>
735
cb6eb88a
NB
736 PR preprocessor/11569
737 PR preprocessor/11649
8f9b4009
NB
738 * Makefile.in (LIBCPP_DEPS): Add HASHTAB_H.
739 * cppfiles.c: Completely rewritten.
740 * c-incpath.c (free_path, remove_duplicates, heads, tails, add_path):
741 struct cpp_path is now struct cpp_dir.
742 (remove_duplicates): Don't simplify path names.
743 * c-opts.c (c_common_parse_file): cpp_read_next_file renamed
744 cpp_stack_file.
745 * cpphash.h: Include hashtab.h.
746 (_cpp_file): Declare.
747 (struct cpp_buffer): struct include_file is now struct _cpp_file,
748 and struct cpp_path is now struct cpp_dir. Rename members.
749 (struct cpp_reader): Similarly. New members once_only_files,
750 file_hash, file_hash_entries, quote_ignores_source_dir,
751 no_search_path, saw_pragma_once. Remove all_include_files and
752 max_include_len. Make some members bool.
753 (_cpp_mark_only_only): Renamed from _cpp_never_reread.
754 (_cpp_stack_file): Renamed from _cpp_read_file.
755 (_cpp_stack_include): Renamed from _cpp_execute_include.
756 (_cpp_init_files): Renamed from _cpp_init_includes.
757 (_cpp_cleanup_files): Renamed from _cpp_cleanup_includes.
758 * cppinit.c (cpp_create_reader): Initialize no_search_path. Update.
759 (cpp_read_next_file): Rename and move to cppfiles.c.
760 (cpp_read_main_file): Update.
761 * cpplib.c (run_directive): Update for renamed members.
762 (do_include_common, _cpp_pop_buffer): Update.
763 (do_import): Undeprecate #import.
764 (do_pragma_once): Undeprecate. Use _cpp_mark_file_once_only.
765 * cpplib.h: Remove file_name_map_list.
766 (cpp_options): Remove map_list.
767 (cpp_dir): Rename from cpp_path. New datatype for name_map.
768 (cpp_set_include_chains, cpp_stack_file, cpp_included): Update.
769
a6400add
PE
7702003-07-29 Phil Edwards <pme@gcc.gnu.org>
771
772 * Makefile.in: Make stamp-objdir safe for parallel builds.
773
b2790407
PE
7742003-07-29 Phil Edwards <pme@gcc.gnu.org>
775
776 * Makefile.in (stmp-docobjdir): New target; ensure $docobjdir exists.
777 (info): Depend on stmp-docobjdir.
778
8e3940b2
RO
7792003-07-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
780
781 * configure: Regenerate.
782
987bf56f
JH
783Tue Jul 29 19:24:49 CEST 2003 Jan Hubicka <jh@suse.cz>
784
785 PR C++/11131
786 * tree-inline.c (expand_call_inline): Always call inlinable_function_p
787 in !unit-at-a-time mode.
788
5f0eabcc
GK
7892003-07-28 Geoffrey Keating <geoffk@apple.com>
790
791 * c-decl.c (c_expand_body_1): Use C_DECL_FILE_SCOPE to detect
792 main function.
793
7b6d72fc
MM
7942003-07-28 Mark Mitchell <mark@codesourcery.com>
795
796 PR c++/11667
797 * c-common.c (shorten_compare): Take into account differences
798 between C and C++ representation for enumeration types.
799 * tree.h (set_min_and_max_values_for_integral_type): Declare.
800 * stor-layout.c (set_min_and_max_values_for_integral_type): New
801 function, broken out from ...
802 (fixup_signed_type): ... here and ...
803 (fixup_unsigned_type): ... here.
804
14077d68
ZW
8052003-07-28 Zack Weinberg <zack@codesourcery.com>
806
807 * c-decl.c: Update commentary, adjust blank lines throughout.
808 (struct c_scope): Fix indentation. Reorder members so
809 outer-context pointers come first, booleans last.
810 (duplicate_decls, define_label): Use a 'locus' variable for
811 diagnostic locations in a few more places.
812 (warn_if_shadowing): Un-split a conditional that fits on one line.
813 (c_init_decl_processing): No need to clear current_scope and
814 current_function_scope.
815 (start_decl): Merge if/else if statements with same action.
816 (push_parm_decl): Rename old_immediate_size_expand to use
817 save_foo convention; save/restore around entire function.
818 (grokdeclarator): Remove unnecessary braces.
819
85617eba
HPN
8202003-07-28 Hans-Peter Nilsson <hp@bitrange.com>
821 Michael Culbertson <Michael.J.Culbertson@wheaton.edu>
822
823 * c-parse.in (lineno_stmt_decl_or_labels_ending_decl): Also warn
824 when warn_declaration_after_statement. Call pedwarn_c90, not
825 pedwarn. Correct message: it's "ISO C90", not "ISO C89".
826 * c-common.c (warn_declaration_after_statement): Define.
827 * c-common.h (warn_declaration_after_statement): Declare.
828 * c.opt (Wdeclaration-after-statement): New.
829 * c-errors.c (pedwarn_c90): New function.
830 * c-opts.c (c_common_handle_option) <case
831 OPT_Wdeclaration_after_statement>: New.
832 * c-tree.h (pedwarn_c90): Declare.
833 * doc/invoke.texi (Option Summary): Document
834 -Wdeclaration-after-statement.
835 (Warning Options): Ditto.
836
f527d196
JH
837Mon Jul 28 20:13:06 CEST 2003 Jan Hubicka <jh@suse.cz>
838
839 * i386.md (memory attribute) Avoid accessing uninitialized memory
840 for ishift1 type instructions.
841
5dfa45d0
JJ
8422003-07-28 Jakub Jelinek <jakub@redhat.com>
843
844 * configure.in (--enable-checking): Add fold category.
845 (ENABLE_FOLD_CHECKING): Define if requested.
846 * configure: Rebuilt.
847 * config.in: Rebuilt.
848 * doc/install.texi: Document it.
849 * fold-const.c: Include md5.h.
850 [ENABLE_FOLD_CHECKING] (fold): Define to fold_1.
851 [ENABLE_FOLD_CHECKING] (fold, fold_checksum_tree, fold_check_failed,
852 print_fold_checksum): New functions.
853
854 * fold-const.c (fold): Never modify argument passed to fold, instead
855 change a copy and return it.
856 * convert.c (convert_to_integer): Likewise.
857
447673de
NN
8582003-07-27 Nathanael Nerode <neroden@gcc.gnu.org>
859
14077d68 860 * fixinc/fixinc.svr4: Remove dead code. Remove now-unnecessary
447673de
NN
861 cleanup of junk after #else and #endif directives. Collapse repeated
862 clauses into for statment.
863
864 * fixinc/fixincl.sh: GNU C -> GCC. Add usage comment.
865
66db6b62
ZW
8662003-07-27 Zack Weinberg <zack@codesourcery.com>
867
a8ccdffe
ZW
868 * c-decl.c (struct c_scope): Remove keep_if_subblocks field.
869 (keep_next_if_subblocks): Rename next_is_function_body.
870 (pushlevel): Adjust commentary. Always set ->keep on the
871 outermost level of a function. Don't set ->keep_if_subblocks.
872 (poplevel): Adjust commentary. Don't look at ->keep_if_subblocks.
873 (store_parm_decls): Adjust to match.
874 (finish_function): Adjust to match.
875 Call poplevel with all three arguments zero.
876
66db6b62
ZW
877 * c-decl.c (store_parm_decls_newstyle, store_parm_decls_oldstyle):
878 New functions split out of store_parm_decls.
879 Avoid unnecessary work. Use local variables consistently.
880 (store_parm_decls): Likewise.
881
882 (finish_function): No need to set functionbody flag on call to
883 poplevel.
884 (struct language_function): Remove scope field.
885 (c_push_function_context, c_pop_function_context): No need to
886 save and restore current_scope.
887
90ea7324
NS
8882003-07-27 Nathan Sidwell <nathan@codesourcery.com>
889
890 * doc/extend.texi (Deprecated Features): Implicit typename is
891 gone. Default args on types is going.
892
11a004ef
R
8932003-07-26 J"orn Rennecke <joern.rennecke@superh.com>
894
895 * Makefile.in (ifcvt.o): Depend on target.h
896 * ifcvt.c (target.h): Include.
897 (if_convert): Don't call mark_loop_exit_edges if we can't
898 modify jumps.
899
6cbf57c9
GP
9002003-07-26 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
901
902 * doc/install.texi (Testing): Adjust required versions of DejaGnu.
903
a6c14a64
RH
9042003-07-26 Richard Henderson <rth@redhat.com>
905
906 PR inline-asm/11676
907 * cse.c (count_reg_usage): Handle asm_operands properly.
908
cc42f5f5
RS
9092003-07-26 Roger Sayle <roger@eyesopen.com>
910
911 * builtins.def (DEF_FALLBACK_BUILTIN): Delete.
912 (DEF_EXT_FALLBACK_BUILTIN): Delete.
913 (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Declare using
914 the regular DEF_EXT_LIB_BUILTIN macro.
915 (BUILT_IN_FPUTC, BUILT_IN_FPUTS, BUILT_IN_FWRITE): Declare using
916 the regular DEF_LIB_BUILTIN macro.
917 (BUILT_IN_PUTCHAR_UNLOCKED, BUILT_IN_PUTS_UNLOCKED,
918 BUILT_IN_FPUTC_UNLOCKED, BUILT_IN_FPUTS_UNLOCKED,
919 BUILT_IN_FWRITE_UNLOCKED): Declare using the regular
920 DEF_EXT_LIB_BUILTIN macro.
921
922 * c-decl.c (duplicate_decls): Remove code to handle builtin
923 functions prototyped without an argument list.
924
92e7a6ef
DS
9252003-07-26 Danny Smith <dannysmith@users.sourceforge.net>
926
927 * config/i386/winnt.c: Revert 2003-07-08 change.
928 (i386_pe_section_type_flags): Remove error_with_decl here too.
929
ba9cfcb5
GDR
9302003-07-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
931
932 * config/arm/pe.c (arm_mark_dllimport): Don't use xxx_with_decl.
933 * config/mcore/mcore.c (mcore_mark_dllimport): Likewise.
934 * config/v850/v850.c (v850_handle_data_area_attribute): Likewise.
935 (v850_handle_data_area_attribute): Likewise.
936
0e5da0be
GK
9372003-07-26 Geoffrey Keating <geoffk@apple.com>
938
66db6b62 939 * varasm.c (output_constant_def_contents): Use
18f3e349
GK
940 ASM_DECLARE_CONSTANT_NAME if defined.
941 * doc/tm.texi (Label Output): Document ASM_DECLARE_CONSTANT_NAME.
942 * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Ensure zero-sized
943 objects get at least one byte to prevent assembler problems.
944 (ASM_DECLARE_CONSTANT_NAME): New.
945
d2908a50
GK
946 * Makefile.in (libbackend.o): Remove options_.h.
947 (mostlyclean): Likewise.
948
0e5da0be
GK
949 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
950 insert a label at the end of an function under Mach-O.
863d3dfb
GK
951
952 * c-decl.c (c_static_assembler_name): Remove TREE_STATIC test.
953
36252949
AH
9542003-07-25 Aldy Hernandez <aldyh@redhat.com>
955
956 * config/rs6000/rs6000.c (is_ev64_opaque_type): Only check pointer
957 equality.
958 (spe_init_builtins): Declare __ev64_opaque__ as a builtin type.
959
960 * config/rs6000/spe.h: Remove __ev64_opaque__ definition.
961
0fe37f68
GDR
9622003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
963
964 * doc/passes.texi (Passes): Mention pretty-printing and
965 diagnostic files.
966
50fc59e7
NS
9672003-07-25 Nathan Sidwell <nathan@codesourcery.com>
968
969 * doc/extend.texi (Function Attributes): GNU C++ does now allow
970 unused parameter decls.
971 (Attribute Syntax): GNU C++ does not allow label attributes to be
972 after the ':'.
973
cd475805
GDR
9742003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
975
976 * objc/objc-act.c (objc_check_decl): Don't use xxx_with_decl.
977 (objc_declare_class): Likewise.
978 (error_with_ivar): Likewise.
979 (start_class): Likewise.
980 (warn_with_method): Likewise.
981
b6fe0bb8
GDR
9822003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
983
984 Remove pedwarn_with_decl, warning_with_decl and error_with_decl
66db6b62 985 from GCC.
b6fe0bb8
GDR
986 * calls.c (try_to_integrate): Don't use xxx_with_decl.
987 (expand_call): Likewise.
988 * dwarfout.c (output_reg_number): Likewise.
989 * expr.c (expand_expr): Likewise.
990 * function.c (assign_temp): Likewise.
991 (uninitialized_vars_warning): Likewise.
992 (setjmp_args_warning): Likewise.
993 (expand_function_end): Likewise.
994 * stmt.c (fixup_gotos): Likewise.
995 (warn_about_unused_variables): Likewise.
996 (expand_end_bindings): Likewise.
997 * stor-layout.c (layout_decl): Likewise.
998 (place_field): Likewise.
999 * toplev.c (check_global_declarations): Likewise.
1000 (rest_of_handle_inlining): Likewise.
1001 (default_tree_printer): New function.
1002 (general_init): Initialize diagnostic machinery before routing
1003 signals to the ICE machinery. Set default tree printer.
1004 * toplev.h (pedwarn_with_decl): Remove declaration.
1005 (warning_with_decl): Likewise.
1006 (error_with_decl): Likewise.
66db6b62 1007 (pedwarn): Remove attribute for the time being.
b6fe0bb8
GDR
1008 * tree-inline.c (expand_call_inline): Don't use xxx_with_decl.
1009 * varasm.c (named_section): Likewise.
1010 (make_decl_rtl): Likewise.
1011 (assemble_variable): Likewise.
1012 (merge_weak): Likewise.
1013 (declare_weak): Likewise.
1014
1015 * diagnostic.h: Move non-diagnostic stuff into pretty-print.h.
1016 * diagnostic.c: Move non-diagnostic stuff into pretty-print.c.
1017 (format_with_decl): Remove.
1018 (diagnostic_for_decl): Likewise.
1019 (pedwarn_with_decl): Likewise.
1020 (warning_with_decl): Likewise.
1021 (error_with_decl): Likewise.
1022 (diagnostic_initialize): Adjust.
1023 (diagnostic_count_diagnostic): Likewise.
1024 (announce_function): Likewise.
1025 (lhd_print_error_function): Likewise.
1026 (diagnostic_report_current_module): Likewise.
1027 (default_diagnostic_starter): Likewise.
1028 (diagnostic_report_diagnostic): Likewise.
1029 (default_diagnostic_finalizer): Likewise.
1030 (verbatim): Likewise.
1031 (error): Likewise.
1032 (warning): Likewise.
1033 * opts.c (common_handle_option): Likewise.
1034 * pretty-print.c: New file.
1035 * c-pretty-print.h (pp_base): Override.
1036 * c-pretty-print.c: Adjust use of macros throughout.
1037 (pp_buffer): New macro.
1038 (pp_newline): Likewise.
1039 * c-objc-common.c (c_tree_printer): Adjust prototype. Tidy.
1040 * Makefile.in (DIAGNOSTIC_H): New variable.
1041 (c-errors.o): Use it.
1042 (c-objc-common.o): Likewise.
1043 (c-common.o): Likewise.
1044 (c-opts.o): Likewise.
1045 (c-format.o): Likewise.
1046 (diagnostic.o): Likewise.
1047 (opts.o): Likewise.
1048 (toplev.o): Likewise.
1049 (rtl-error.o): Likewise.
1050 (dwarf2out.o): Likewise.
1051 (jump.o): Likewise.
1052 (pretty-print.o): New rule.
1053
868b8cda
RS
10542003-07-24 Roger Sayle <roger@eyesopen.com>
1055
1056 * builtins.def (BUILT_IN_PRINTF, BUILT_IN_FPRINTF): Changed from
1057 front-end builtins to normal builtins, using DEF_LIB_BUILTIN.
1058 (BUILT_IN_PRINTF_UNLOCKED, BUILT_IN_FPRINTF_UNLOCKED): Changed
1059 from front-end to normal builtins, using DEF_EXT_LIB_BUILTIN.
1060 (DEF_FRONT_END_LIB_BUILTIN): Delete.
1061 (DEF_EXT_FRONT_END_LIB_BUILTIN): Delete.
1062 (BUILT_IN_FWRITE_UNLOCKED): Wrap long line.
1063
1064 * builtins.c (build_string_literal): New function to construct
1065 a char* pointer to a string literal.
1066 (expand_builtin_fputs): Change 2nd argument from "int ignore" to
1067 "rtx target" to be consistent with other expand_builtin_* functions.
1068 Change 3rd argument from "int unlocked" to "bool unlocked".
1069 (expand_builtin_printf): Rewrite of c_expand_builtin_printf from
1070 c-common.c to avoid front-end dependencies. Optimize printf("")
1071 as a no-op when the result isn't required. Handle embedded NULs
1072 in format string.
1073 (expand_builtin_fprintf): A rewrite of c_expand_builtin_fprintf
1074 from c-common.c to avoid front-end dependencies. Likewise, optimize
1075 fprintf(fp,"") as a no-op when the result isn't required, evaluating
1076 fp for side-effects. Handle embedded NULs in format string.
1077 (expand_builtin_sprintf): Fix typo.
1078 (expand_builtin): Don't expand BUILT_IN_FPRINT{,_UNLOCKED} when not
1079 optimizing. Adjust calls of expand_builtin_fputs to match the API
1080 change. Expand BUILT_IN_PRINTF and BUILT_IN_PRINTF_UNLOCKED using
1081 expand_builtin_printf. Likewise, expand BUILT_IN_FPRINTF_UNLOCKED
1082 and BUILT_IN_FPRINTF using expand_builtin_fprintf.
1083
1084 * c-common.c (is_valid_printf_arglist): Delete.
1085 (c_expand_builtin): Delete.
1086 (c_expand_builtin_printf): Moved to builtins.c. Delete.
1087 (c_expand_builtin_fprintf): Moved to builtins.c. Delete.
1088 (c_expand_expr): No longer treat CALL_EXPRs specially.
1089 (CALLED_AS_BUILT_IN): Delete.
1090
2a868ea4
ZD
10912003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1092
1093 PR optimization/11631
1094 * gcse.c (store_motion): Connect infinite loops to exit.
1095
de7df9eb
JM
10962003-07-24 Jason Merrill <jason@redhat.com>
1097
1098 * tree.h (boolean_type_node): Move from C/C++/Java frontends.
1099 (boolean_true_node, boolean_false_node): Likewise.
1100 (enum tree_index): Add TI_BOOLEAN_{TYPE,FALSE,TRUE}.
1101 * tree.c (build_common_tree_nodes): Init boolean_type_node.
1102 (build_common_tree_nodes_2): Init boolean_{true,false}_node.
1103 * stor-layout.c (set_sizetype): Handle an early BOOLEAN_TYPE.
1104 * c-common.h (truthvalue_type_node): Renamed from boolean_type_node.
1105 (truthvalue_true_node): Renamed from boolean_true_node.
1106 (truthvalue_false_node): Renamed from boolean_false_node.
1107 * c-decl.c: Just set truthvalue_* to integer_*.
1108 * c-*.[ch]: s/boolean/truthvalue/. s/c_bool/boolean/.
1109
6907ddd3
RS
11102003-07-24 Roger Sayle <roger@eyesopen.com>
1111
1112 * c-decl.c (match_builtin_function_types): New subroutine of
1113 duplicate_decls to test whether a redeclaration of a builtin
1114 function is suitably close, i.e. the return type and all of
1115 the argument types have the same modes as the builtin expects.
1116 (duplicate_decls): Fuzzy type matching for builtin functions
1117 moved to match_builtin_function_types.
1118
84d45ad1
ZD
11192003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1120
1121 * cfgloopmanip.c (duplicate_loop_to_header_edge): Update irreducible
1122 flag correctly.
1123
f8521984
ZW
11242003-07-24 Zack Weinberg <zack@codesourcery.com>
1125
1126 * c-decl.c: Search-and-replace change 'binding level' to
1127 'scope' in commentary.
1128 (struct binding_level): Now struct c_scope.
1129 (current_binding_level): Now current_scope.
1130 (free_binding_level): Now scope_freelist.
1131 (current_function_level): Now current_function_scope.
1132 (global_binding_level): Now global_scope.
1133 (make_binding_level): Now make_scope.
1134 (pop_binding_level): Now pop_scope.
1135
0f31374d
RO
11362003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1137
1138 * configure.in (libgcc_visibility): Add missing whitespace.
1139
270606ac
RH
11402003-07-24 Richard Henderson <rth@redhat.com>
1141
1142 * libgcc-std.ver (GCC_3.3.1): Export __gcc_personality_sj0,
1143 __gcc_personality_v0.
f8521984 1144
5f08e44f
RO
11452003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1146
1147 * Makefile.in: Replace pwd by ${PWD_COMMAND}.
1148
a4878735
NS
11492003-07-24 Nathan Sidwell <nathan@codesourcery.com>
1150
1151 * doc/invoke.texi (-fprofile-arcs, -ftest-coverage): Update
1152 documentation missed from my 2003-07-09 patch.
1153
5aaaf0e8
NN
11542003-07-24 Nathanael Nerode <neroden@gcc.gnu.org>
1155
1156 * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Set patch level to 0 if
1157 it's not provided.
1158 * configure: Rebuild.
1159
8f5b6d29
SB
11602003-07-24 Steven Bosscher <steven@gcc.gnu.org>
1161
1162 PR c/10602
1163 * c-typeck.c (type_lists_compatible_p): Do not compare
1164 arguments if one of them is an error_mark_node
1165
acd0b319
AM
11662003-07-24 Alan Modra <amodra@bigpond.net.au>
1167
1168 * config/rs6000/rs6000.c (rs6000_emit_prologue): Save fp regs inline
1169 if current_function_calls_eh_return.
1170
28b619b2
MM
11712003-07-23 Mark Mitchell <mark@codesourcery.com>
1172
1173 * doc/c-tree.texi (OFFSET_TYPE): Update description.
1174
07154156
BW
11752003-07-23 Bob Wilson <bob.wilson@acm.org>
1176
1177 * config/xtensa/crti.asm (_init, _fini): Increase frame size to 64.
1178 * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
1179 __umodsi3, __modsi3): Increase frame size to 32.
1180
5f5bfdd0
GK
11812003-07-23 Geoffrey Keating <geoffk@apple.com>
1182
1183 * config/rs6000/host-darwin.c: ANSIfy, update comment for sigaltstack
1184 prototype.
1185
11b8e71c
MM
11862003-07-23 Mark Mitchell <mark@codesourcery.com>
1187
28b619b2
MM
1188 * doc/c-tree.texi (Types): Update documentation for OFFSET_TYPE.
1189
11b8e71c
MM
1190 PR optimization/10679
1191 * tree-inline.c (inlinable_function_p): Honor MIN_INLINE_INSNS.
1192
9d6b7c09
JDA
11932003-07-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1194
1195 PR target/11607 and PR target/11516
1196 * pa.md (extzv, extv, insv): Revert latter half of last patch.
1197
a5ac359a
MM
11982003-07-22 Mark Mitchell <mark@codesourcery.com>
1199
1200 * fold-const.c (force_fit_type): Handle OFFSET_TYPE.
1201 * varasam.c (output_constant): Likewise.
1202
938d968e
KH
12032003-07-22 Kazu Hirata <kazu@cs.umass.edu>
1204
1205 * alias.c: Fix comment formatting.
1206 * c-common.c: Likewise.
1207 * c-decl.c: Likewise.
1208 * c-opts.c: Likewise.
1209 * combine.c: Likewise.
1210 * cpplib.c: Likewise.
1211 * diagnostic.c: Likewise.
1212 * dojump.c: Likewise.
1213 * final.c: Likewise.
1214 * fold-const.c: Likewise.
1215 * gcc.c: Likewise.
1216 * gcse.c: Likewise.
1217 * ggc-page.c: Likewise.
1218 * jump.c: Likewise.
1219 * loop.c: Likewise.
1220 * mips-tfile.c: Likewise.
1221 * recog.c: Likewise.
1222 * regclass.c: Likewise.
1223 * regmove.c: Likewise.
1224 * tree.c: Likewise.
1225 * tree.h: Likewise.
1226
b3147029
PB
12272003-07-22 Per Bothner <pbothner@apple.com>
1228
1229 * line-map.c (add_line_map): Handle invalid LEAVE request.
1230 Fixes PR preprocessor/11361.
1231
53f72d60
PB
12322003-07-22 Per Bothner <pbothner@apple.com>
1233
1234 * diagnostic.c.(diagnostic_report_current_module): Update to match
1235 2003-06-05 changes to push_srcloc and pop_srcloc.
1236
5cf0212f
WB
12372003-07-22 Wolfgang Bangerth <bangerth@dealii.org>
1238
1239 * doc/trouble.texi: Better document two-stage name lookup.
1240
c7453384
EC
12412003-07-22 Eric Christopher <echristo@redhat.com>
1242
1243 * config/s390.c (s390_valid_pointer_mode): New.
1244 (TARGET_VALID_POINTER_MODE): Use.
1245 (s390_emit_prologue): Add tpf profiling hooks.
1246 (s390_emit_epilogue): Ditto.
1247 * config/s390.h (MASK_TPF): New.
1248 (TARGET_TPF): Use.
1249 (POINTERS_EXTEND_UNSIGNED): Define.
1250 * config/s390.md (ptr_extend): New pattern.
1251
a2f7be91
ZW
12522003-07-22 Zack Weinberg <zack@codesourcery.com>
1253
1254 * hashtable.c (approx_sqrt): Make static.
1255 * hashtable.h: Don't prototype approx_sqrt.
1256 * line-map.c (init_line_maps): Rename linemap_init.
1257 (free_line_maps): Rename linemap_free.
1258 (add_line_map): Rename linemap_add.
1259 (lookup_line): Rename linemap_lookup.
1260 (print_containing_files): Rename linemap_print_containing_files.
1261 * linemap.h: Update to match.
1262
1263 * cpperror.c, cppinit.c, cpplib.c, cppmacro.c: Update calls to
1264 linemap routines to use new names.
1265
c6e4cc53
NS
12662003-07-16 Nathan Sidwell <nathan@codesourcery.com>
1267
1268 * c-common.c (handle_packed_attribute): Don't pack a struct via a
1269 typedef. Propagate packedness from a main variant.
1270
55de4f08
NN
12712003-07-22 Nathanael Nerode <neroden@gcc.gnu.org>
1272
1273 * Makefile.in (install-common): Add dependency on installdirs.
1274
fb5d2a87
AO
12752003-07-21 Alexandre Oliva <aoliva@redhat.com>
1276
1277 * c-common.c (c_common_type_for_mode): Return integer types for
1278 pointer modes.
1279
905bd7b5
GK
12802003-07-22 Geoffrey Keating <geoffk@apple.com>
1281
d05cc98e
GK
1282 * c-decl.c (start_decl): Don't call maybe_apply_pragma_weak here.
1283 (finish_decl): Call maybe_apply_pragma_weak here.
1284 (grokdeclarator): Check that DECL_ASSEMBLER_NAME isn't set before
1285 TREE_PUBLIC and TREE_STATIC are decided.
1286 (start_function): Move call to maybe_apply_pragma_weak. Check that
1287 DECL_ASSEMBLER_NAME isn't set too early.
1288
905bd7b5
GK
1289 * cpplex.c (_cpp_process_line_notes): Mention option name in
1290 trigraphs warning.
1291
87d9741e
KH
12922003-07-22 Kazu Hirata <kazu@cs.umass.edu>
1293
1294 * combine.c (if_then_else_cond): Simplify the comparison of
1295 rtx against -1, 0, and 1.
1296 * loop.c (check_dbra_loop): Likewise.
1297 * optabs.c (emit_conditional_move): Likewise.
1298 (emit_conditional_add): Likewise.
1299 * config/i386/i386.md (*movsi_or): Likewise.
1300 (*movdi_or_rex6): Likewise.
1301
b67d7f4a
JH
1302Tue Jul 22 00:42:12 CEST 2003 Jan Hubicka <jh@suse.cz>
1303
1304 * cgraphunit.c (cgraph_finalize_compilation_unit): Remove redundant if.
1305
8d973a83
NB
13062003-07-21 Neil Booth <neil@daikokuya.co.uk>
1307
1308 * cppfiles.c (open_file_pch): Don't put unused entries in the
1309 splay tree. Remove dead code.
1310
49a64b24
GK
13112003-07-21 Geoffrey Keating <geoffk@apple.com>
1312
48873ed2
GK
1313 * c-common.h (num_in_fnames): Declare.
1314 (c_static_assembler_name): Move from here...
1315 * c-tree.h (c_static_assembler_name): ... to here.
1316 * c-opts.c: Don't include langhooks-def.h.
1317 (c_static_assembler_name): Move to c-decl.c.
1318 (num_in_fnames): Make externally visible.
1319 * c-decl.c: Include langhooks-def.h.
1320 (c_static_assembler_name): Move from c-opts.c.
1321 * Makefile.in (c-decl.o): Add $(LANGHOOKS_DEF_H).
1322 (c-opts.o): Remove $(LANGHOOKS_DEF_H).
1323
49a64b24
GK
1324 * c-pragma.c (maybe_apply_pragma_weak): Don't get DECL_ASSEMBLER_NAME
1325 when it's not needed.
1326
8c29550d
JJ
13272003-07-21 Jakub Jelinek <jakub@redhat.com>
1328
1329 * config/rs6000/rs6000.h (machine_function): Add ra_need_lr.
1330 * config/rs6000/rs6000.c (rs6000_return_addr): Set it.
1331 (rs6000_emit_prologue): Save FPRs inline if set.
1332
92cbea22
L
13332003-07-21 H.J. Lu <hongjiu.lu@intel.com>
1334
1335 * config/ia64/ia64.md (prefetch): Support predicate.
1336
ee735eef
JZ
13372003-07-21 Josef Zlomek <zlomekj@suse.cz>
1338
1339 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Use tablejump_p.
1340 * rtlanal.c (tablejump_p): Use next_active_insn for finding the jump
1341 table.
1342
bbda30a4
EB
13432003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
1344
a2f7be91 1345 PR optimization/11536
bbda30a4
EB
1346 * unroll.c (loop_iterations): Do not replace a register holding
1347 the final value by its equivalent before the loop if it is not
1348 invariant.
1349
64c18e57
DF
13502003-07-21 Dave Fluri <dave.fluri@onlink.net>
1351
1352 * doc/extend.texi: Fixes to spelling, grammar, and diction.
1353
b222f49a
BE
13542003-07-21 Ben Elliston <bje@wasabisystems.com>
1355
1356 * doc/invoke.texi (Optimize Options): Replace "it's" with "its".
1357 (V850 Options): Spelling fixes.
1358
9eff22bc
LG
13592003-07-20 Lisa M. Goldstein <opus@gnu.org>
1360
a2f7be91 1361 * doc/invoke.texi: Fixes to style, grammar and diction.
9eff22bc 1362
6a6c0154
RS
13632003-07-20 Roger Sayle <roger@eyesopen.com>
1364
1365 * builtins.def (BUILT_IN_ALLOCA): Remove "#if SMALL_STACK" form.
1366 * system.h (SMALL_STACK): Poison obsolete target macro.
1367 * doc/tm.texi (SMALL_STACK): Remove target macro documentation.
1368
d38b3a8d
PE
13692003-07-20 Phil Edwards <pme@gcc.gnu.org>
1370
1371 * configure.in: Cache the results of testing for cmp's capabilities.
1372 * configure: Regenerate.
1373
35dc2bd8
MM
13742003-07-20 Mark Mitchell <mark@codesourcery.com>
1375
1376 PR debug/11279
1377 * dwarf2out.c (gen_enumeration_type_die): Remember that
1378 enumerators can be unsigned.
1379
14e33ee8
ZW
13802003-07-19 Zack Weinberg <zack@codesourcery.com>
1381
1382 * c-decl.c (named_labels, shadowed_labels, label_level_chain)
1383 (push_label_level, pop_label_level): Kill.
1384 (struct binding_level): Rename level_chain to outer.
1385 Add outer_function field. Change parm_flag, function_body,
1386 keep, keep_if_subblocks to 1-bit bitfields of type bool.
1387 (current_function_level): New variable.
1388 (keep_next_level_flag, keep_next_if_subblocks): Change type to bool.
1389 (keep_next_level, declare_parm_level, warn_if_shadowing):
1390 Update to match.
1391 (struct language_function): Kill named_labels, shadowed_labels fields.
1392 (c_init_decl_processing, start_function, c_push__function_context)
1393 (c_pop_function_context): No need to muck with named_labels nor
1394 shadowed_labels.
1395
1396 (make_binding_level): No need to clear the structure here.
1397 (pop_binding_level): Always operate on current_binding_level.
1398 Update current_function_level if necessary.
1399 (pushlevel): Don't clear named_labels. Update current_function_level
1400 if necessary. Use "true" and "false" where appropriate.
1401 (poplevel): Diagnose labels defined but not used, or vice
1402 versa, and clear out label-meanings leaving scope, while
1403 walking down the decls list, for all binding levels.
1404 Handle LABEL_DECLs appearing in the shadowed list.
1405 pop_binding_level takes no arguments.
1406 (pushdecl_function_level): Use current_function_level.
1407
1408 (make_label, bind_label): New static functions.
1409 (declare_label): New exported function.
1410 (lookup_label, define_label): Rewritten for new data structure.
1411 (shadow_label): Kill.
1412
1413 * c-tree.h: Prototype declare_label; don't prototype
1414 push_label_level, pop_label_level, nor shadow_label.
1415 * c-parse.in: Remove all calls to push_label_level and
1416 pop_label_level. Use declare_label for __label__ decls.
1417
1418 * doc/extend.texi: Clarify that __label__ can be used to
1419 declare labels with local scope in any nested block, not
1420 just statement expressions. Cross-reference nested functions
1421 section from local labels section.
1422
8a6b9b7f
ZD
14232003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1424
1425 * sched-rgn.c (find_rgns): Initialize current_edge correctly.
1426
026fe6c8
PE
14272003-07-19 Phil Edwards <pme@gcc.gnu.org>
1428
1429 * doc/makefile.texi (restrap, profiledbootstrap): Document targets.
1430
c68b0a84
KG
14312003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1432
1433 * fixinc/fixfixes.c fixinc/fixincl.c fixinc/fixlib.c
1434 fixinc/server.c objc/objc-act.c: Remove unnecessary casts.
1435
fd7643fb
UW
14362003-07-19 Ulrich Weigand <uweigand@de.ibm.com>
1437
14e33ee8 1438 * config/s390/s390.c (legitimize_pic_address): Access local symbols
fd7643fb
UW
1439 relative to the GOT instead of relative to the literal pool base.
1440 (s390_output_symbolic_const): Handle new GOT-relative accesses.
1441 * config/s390/s390.md ("call"): Access local functions and PLT stubs
1442 relative to the GOT instead of relative to the literal pool base.
1443 ("call_value"): Likewise.
1444 ("call_value_tls"): Likewise.
1445
14e33ee8 1446 * config/s390/s390.c (s390_chunkify_start): Remove pool anchor
fd7643fb
UW
1447 reloading. Support LTREL_BASE / LTREL_OFFSET construct.
1448 (s390_chunkify_finish): Likewise.
1449 (s390_chunkify_cancel): Likewise.
1450 (s390_reorg): Adapt caller.
1451 (find_base_register_in_addr,
1452 find_base_register_ref, replace_base_register_ref): Delete.
1453 (find_ltrel_base, replace_ltrel_base): New functions.
1454 (find_constant_pool_ref): Handle LTREL_BASE unspecs.
1455 (s390_decompose_address): Handle LTREL_BASE unspecs. Optimize
1456 base vs. index register usage.
1457 (struct constant_pool): Remove 'anchor'.
1458 (s390_add_anchor): Delete.
1459 (s390_dump_pool): Remove anchor handling.
1460 * config/s390/s390.md ("reload_anchor"): Remove.
1461
1462 * config/s390/s390.c (s390_split_branches): Use LTREL_BASE/OFFSET.
1463 (s390_load_got): New function. Use LTREL_BASE/OFFSET.
1464 (s390_emit_prologue): Use it.
14e33ee8
ZW
1465 * config/s390/s390.md ("builtin_longjmp", "builtin_setjmp_setup",
1466 "builtin_setjmp_receiver"): Cleanup. Use s390_load_got. Do not
fd7643fb
UW
1467 hard-code register 14.
1468 * config/s390/s390-protos.h (s390_load_got): Declare.
1469
14e33ee8 1470 * config/s390/s390.c (NR_C_MODES, constant_modes, gen_consttable):
fd7643fb
UW
1471 Support TImode constants.
1472 * config/s390/s390.md ("consttable_ti"): New.
1473 ("consttable_si", "consttable_di"): Handle TLS symbols correctly.
1474
1475 * config/s390/s390.md (UNSPEC_LTREL_OFFSET, UNSPEC_LTREL_BASE,
1476 UNSPEC_GOTENT, UNSPEC_GOT, UNSPEC_GOTOFF, UNSPEC_PLT, UNSPEC_PLTOFF,
1477 UNSPEC_RELOAD_BASE, UNSPECV_POOL, UNSPECV_POOL_START, UNSPECV_POOL_END,
1478 UNSPECV_POOL_QI, UNSPECV_POOL_HI, UNSPECV_POOL_SI, UNSPECV_POOL_DI,
1479 UNSPECV_POOL_TI, UNSPECV_POOL_SF, UNSPECV_POOL_DF, UNSPECV_MAIN_POOL):
1480 New symbolic constants.
1481 ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
1482 "consttable_sf", "consttable_df", "pool_start_31", "pool_end_31",
1483 "pool_start_64", "pool_end_64", "reload_base_31", "reload_base_64",
1484 "pool", "literal_pool_31", "literal_pool_64"): Cleanup. Use
1485 symbolic UNSPEC values.
14e33ee8 1486 * config/s390/s390.c (larl_operand, s390_short_displacement,
fd7643fb
UW
1487 bras_sym_operand, s390_cannot_force_const_mem,
1488 s390_delegitimize_address, s390_decompose_address,
1489 legitimize_pic_address, s390_output_symbolic_const,
1490 s390_function_profiler): Use symbolic UNSPEC values.
1491
703ad42b
KG
14922003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1493
1494 * alias.c alloc-pool.c bitmap.c bitmap.h bt-load.c builtins.c
1495 c-common.c c-decl.c c-incpath.c c-lex.c c-opts.c c-parse.in
1496 c-pragma.c c-typeck.c calls.c cfg.c cfganal.c cfgloop.c cfgrtl.c
1497 collect2.c combine.c conflict.c coverage.c cppexp.c cppfiles.c
1498 cpphash.c cppinit.c cpplex.c cpplib.c cppmacro.c cppspec.c
1499 cpptrad.c cse.c cselib.c dbxout.c defaults.h df.c dominance.c
1500 dwarf2out.c dwarfout.c emit-rtl.c except.c expmed.c expr.c final.c
1501 fix-header.c flow.c fold-const.c function.c gcc.c gccspec.c gcov.c
1502 gcse.c genattr.c genattrtab.c genautomata.c genconditions.c
1503 genemit.c genextract.c genoutput.c genrecog.c gensupport.c
1504 ggc-page.c ggc-simple.c global.c graph.c haifa-sched.c hashtable.c
1505 integrate.c jump.c langhooks.c lcm.c line-map.c local-alloc.c
1506 loop.c mips-tdump.c mips-tfile.c mkdeps.c optabs.c params.c
1507 postreload.c prefix.c print-tree.c protoize.c ra-build.c
1508 ra-colorize.c ra-rewrite.c ra.c recog.c reg-stack.c regclass.c
1509 regmove.c regrename.c reload.c reload1.c reorg.c resource.c
1510 sbitmap.c sched-deps.c sched-rgn.c sched-vis.c sdbout.c
1511 simplify-rtx.c ssa-ccp.c ssa.c stmt.c stor-layout.c timevar.c
1512 tlink.c toplev.c tree-dump.c tree.c unroll.c unwind-dw2-fde.c
1513 varasm.c varray.c vmsdbgout.c xcoffout.c: Remove unnecessary
1514 casts.
1515
308ca868
GDR
15162003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
1517
1518 * c-pragma.c (apply_pragma_weak): Don't use warning_with_decl.
1519 * toplev.h (warning): Remove attribute.
1520
435ab236
GDR
15212003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
1522
1523 * c-decl.c (c_finish_incomplete_decl): Don't use xxx_with_decl.
1524 (pop_label_level): Likewise.
1525 (duplicate_decls): Likewise.
1526 (implicitly_declare): Likewise.
1527 (shadow_label): Likewise.
1528 (start_decl): Likewise.
1529 (finish_decl): Likewise.
1530 (grokdeclarator): Likewise.
1531 (get_parm_info): Likewise.
1532 (detect_field_duplicates): Likewise.
1533 (finish_struct): Likewise.
1534 (start_function): Likewise.
1535 (store_parm_decls): Likewise.
1536 (finish_function): Likewise.
1537 (c_expand_body_1): Likewise.
1538 (check_for_loop_decls): Likewise.
1539 (merge_translation_unit_decls): Likewise.
1540
2cc98056
NB
15412003-07-19 Neil Booth <neil@daikokuya.co.uk>
1542
1543 * common.opt: Document --param.
1544 * opts.c (columns, undocumented_msg): New.
1545 (print_help): Get number of columns from environment. Print
1546 --param help. Tweak newline handling.
1547 (print_param_help): New.
1548 (print_filtered_help): Better handling of duplicates. Complain
1549 about undocumented switches.
1550 (print_switch): New.
1551 (wrap_help): Improve wrapping, use COLUMNS.
1552 * opts.sh: Ignore comments in records.
1553 * params.def: Fix typos and remove trailing periods.
1554 * toplev.c (display_help): Don't dump --param help.
1555 * doc/sourcebuild.texi: Update.
1556
d893ccde
RH
15572003-07-18 Richard Henderson <rth@redhat.com>
1558
0e38b30b 1559 PR target/11556
d893ccde
RH
1560 * optabs.c (prepare_operand): Fail gracefully instead of abort
1561 if the predicate doesn't satisfy.
1562 (gen_cond_trap): Allow prepare_operand to fail.
1563
eb8221ea
GDR
15642003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
1565
1566 * c-common.c: Don't undefine GCC_DIAG_STYLE.
1567 (fname_decl): Don't use xxx_with_decl.
1568 (c_add_case_label): Likewise.
1569 (handle_section_attribute): Likewise.
1570 (handle_alias_attribute): Likewise.
1571 (handle_no_instrument_function_attribute): Likewise.
1572 (handle_no_limit_stack_attribute): Likewise.
1573 * c-objc-common.c (c_tree_printer): Print IDENTIFIER_NODEs.
1574 * c-format.c (gcc_cdiag_char_table): Add '%E' format-specifier.
1575
65f43cdf
ZD
15762003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1577
1578 * Makefile.in (ifcvt.o): Add cfgloop.h.
1579 * basic-block.h (EDGE_LOOP_EXIT): New flag.
1580 * cfgrtl.c (rtl_verify_flow_info_1): Handle it correctly.
1581 * ifcvt.c: Include cfgloop.h.
1582 (mark_loop_exit_edges): New static function.
1583 (if_convert): Call it.
1584 (find_if_header): Ignore branches out of loops.
1585
e5686da7
KH
15862003-07-18 Kazu Hirata <kazu@cs.umass.edu>
1587
14e33ee8 1588 * combine.c (simplify_comparison): Don't share rtx when converting
e5686da7
KH
1589 (ne (and (not X) 1) 0) to (eq (and X 1) 0).
1590
8d05ebaa
DE
15912003-07-18 David Edelsohn <edelsohn@gnu.org>
1592
1593 * config/rs6000/aix.h (AGGREGATE_PADDING_FIXED): Define.
1594 (AGGREGATES_PAD_UPWARD_ALWAYS): Define.
1595 (MUST_PASS_IN_STACK): Define.
1596 (BLOCK_REG_PADDING): Define.
1597
79019985
RH
15982003-07-18 Richard Henderson <rth@redhat.com>
1599
1600 * cfgrtl.c (force_nonfallthru_and_redirect): Use tablejump_p
1601 to skip the addr_vec.
1602
0595d388
AO
1603Fri Jul 18 15:22:28 2003 Alexandre Oliva <aoliva@redhat.com>
1604
1605 * combine.c (combinable_i3pat): Don't forbid occurrences of
1606 i2dest or i1dest in inner_dest if inner_dest is a mem.
1607
2ee1067b
JH
1608Fri Jul 18 17:05:57 CEST 2003 Jan Hubicka <jh@suse.cz>
1609
1610 * cgraph.c (cgraph_remove_node): Clear the hash table slot.
1611
16f6812f
JJ
16122003-07-17 Jakub Jelinek <jakub@redhat.com>
1613
1614 PR target/11087
1615 * loop.c (basic_induction_var): Check if convert_modes emitted any
1616 instructions. Remove them and return 0 if so.
1617
f129791c
EB
16182003-07-18 Eric Botcazou <ebotcazou@libertysurf.fr>
1619
1620 PR optimization/11083
1621 * toplev.c (rest_of_handle_addresof): Rename into
1622 rest_of_handle_addressof. Delete unreachable blocks
1623 if dead edges were purged after the addressof pass.
1624
b2e608ca
NB
16252003-07-18 Neil Booth <neil@daikokuya.co.uk>
1626
1627 * Makefile.in, configure, configure.in: Remove handling of
1628 lang-options.h and options_.h.
1629 * toplev.c (struct lang_opt, documented_lang_options): Remove.
1630 (display_help): Don't use documented_lang_options.
1631
9cd51ef6
ZW
16322003-07-17 Zack Weinberg <zack@codesourcery.com>
1633
1634 * c-decl.c (pushdecl_function_level): Make static, return nothing.
1635 (kept_level_p): Fold into poplevel.
1636 (undeclared_variable): Moved here from c-typeck.c. Export.
1637 * c-tree.h (KEEP_YES, KEEP_NO, KEEP_MAYBE): New #defines.
1638 (undeclared_variable): Prototype here. Don't prototype
1639 kept_level_p nor pushdecl_function_level.
1640 * c-parse.in: Change first argument to poplevel from
1641 "kept_level_p()" to "KEEP_MAYBE".
1642 * c-typeck.c (undeclared_variable): Moved to c-decl.c.
1643
cf6bcbd0
RS
16442003-07-17 Roger Sayle <roger@eyesopen.com>
1645
1646 * simplify-rtx.c (simplify_rtx): Use simplify_gen_binary to swap
1647 commutative operands instead of modifying the RTL in-place.
1648
2b187c63
MM
16492003-07-17 Mark Mitchell <mark@codesourcery.com>
1650
1651 PR optimization/11557
1652 * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK
1653 unless we know which function is being called.
1654
c715abdd
RS
16552003-07-17 Roger Sayle <roger@eyesopen.com>
1656
1657 * cse.c (fold_rtx): Use swap_commutative_operands_p to determine
1658 whether to reorder the operands of a commutative binary operator.
1659
3e4093b6
RS
16602003-07-17 Roger Sayle <roger@eyesopen.com>
1661
1662 * fold-const.c (const_binop): Avoid performing the FP operation at
1663 compile-time, if either operand is NaN and we honor signaling NaNs,
1664 or if we're dividing by zero and either flag_trapping_math is set
1665 or the desired mode doesn't support infinities.
1666 (fold_initializer): New function to fold an expression ignoring any
1667 potential run-time exceptions or traps.
1668 * tree.h (fold_initializer): Prototype here.
1669 * c-typeck.c (build_binary_op): Move to the end of the file so
1670 that intializer_stack is in scope. If constructing an initializer,
1671 i.e. when initializer_stack is not NULL, use fold_initializer to
1672 fold expressions.
1673 * simplify-rtx.c (simplify_binary_operation): Likewise, avoid
1674 performing FP operations at compile-time, if they would raise an
1675 exception at run-time.
1676
89e9faee
GK
16772003-07-17 Geoffrey Keating <geoffk@apple.com>
1678
26e0dcb3
GK
1679 PR 11498
1680 * Makefile.in (c-opts.o): Add $(LANGHOOKS_DEF_H).
1681 (langhooks.o): Add $(GGC_H), gt-langhooks.h.
1682 (GTFILES): Add langhooks.c.
1683 (gt-langhooks.h): New.
1684 * c-common.h (c_static_assembler_name): Prototype.
1685 * c-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
1686 * objc/objc-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
1687 * c-opts.c: Include langhooks-def.h.
1688 (c_static_assembler_name): New.
1689 * langhooks.c: Include ggc.h. Include gt-langhooks.h.
1690 (var_labelno): New.
1691 (lhd_set_decl_assembler_name): Give static objects with context
1692 unique names.
1693 * varasm.c (var_labelno): Delete.
1694 (make_decl_rtl): Don't change the assembler name once it's set.
1695
89e9faee
GK
1696 * c-opts.c (this_input_filename): New.
1697 (finish_options): Take new parameter, name of file being compiled.
1698 Update callers. Set this_input_filename.
1699 (push_command_line_include): Use this_input_filename not
1700 main_input_filename.
1701
6ec3f553
NB
17022003-07-17 Neil Booth <neil@daikokuya.co.uk>
1703
1704 * Makefile.in: Depend .pot generation on options.c.
1705 * po/exgettext: Add an extra_files variable containing additional
1706 files to scan.
1707
78ff95dc
ZW
17082003-07-17 Zack Weinberg <zack@codesourcery.com>
1709
36c6d174
ZW
1710 * objc/objc-lang.c: Override LANG_HOOKS_WRITE_GLOBALS to
1711 c_write_global_declarations.
1712
eb1dfbb2
ZW
1713 * c-decl.c: Fix typos in several comments. Remove all
1714 #if 0 blocks; reindent as needed. Remove unused argument
1715 to declare_parm_level; all callers changed.
1716 * c-parse.in: Update calls to declare_parm_level. Avoid
1717 issuing a double warning in some circumstances.
1718 * c-typeck.c: Update calls to declare_parm_level.
1719 * c-tree.h: Update prototype of declare_parm_level.
1720
1721 * c-pragma.c (apply_pragma_weak): Don't complain about a
1722 redundant #pragma weak.
1723
1724 * objc/objc-act.c (forward_declare_categories,
1725 build_selector_reference_decl, build_class_reference_decl,
1726 build_objc_string_decl, synth_forward_declarations,
1727 build_protocol_reference): Set TREE_PUBLIC on synthetic
1728 forward decl to 0, consistent with eventual definition.
1729 Correct comments to match.
1730
78ff95dc
ZW
1731 * fixinc/inclhack.def (solaris_mutex_init_2): Escape braces
1732 in regexp that don't form a range expression.
1733 * fixinc/fixincl.def: Regenerate.
1734
b23ba0b8
RH
17352003-07-17 Richard Henderson <rth@redhat.com>
1736
78ff95dc
ZW
1737 PR target/10907
1738 * config/ia64/ia64.c (ia64_epilogue_uses): GP is live at end
1739 even with !TARGET_CONST_GP.
1740 (ia64_function_ok_for_sibcall): Reject non-local functions.
b23ba0b8 1741
d944c82d
SB
17422003-07-17 Steven Bosscher <steven@gcc.gnu.org>
1743
1744 * c-common.c (c_estimate_num_insns_1): Don't handle
1745 METHOD_CALL_EXPR.
1746 * expr.c (safe_from_p): Likewise.
1747 * gengtype.c (adjust_field_tree_exp): Likewise.
1748 * stmt.c (warn_if_unused_value): Likewise
1749 * tree.c (first_rtl_op): Likewise.
1750 * tree.def: Don't define METHOD_CALL_EXPR.
1751 * java/lang.c (java_estimate_num_insns_1): Don't handle
1752 METHOD_CALL_EXPR.
1753
54284728
EB
17542003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
1755
1756 PR other/11466
1757 * doc/invoke.texi (SPARC Options): Document "-mlittle-endian"
1758 and its restrictions for the SPARC64 port.
1759 Move the entry of "-mimpure-text" before that of "-mv8".
1760
bc890961 17612003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
78ff95dc 1762 Phil Edwards <phil@jaj.com>
bc890961
EB
1763
1764 * doc/install.texi (*-*-solaris2*): Document the step-by-step
1765 procedure to bootstrap and install.
1766 Document the preference for the legacy Sun tools in /usr/bin
1767 over the POSIX tools in /usr/xpg4/bin for the build process.
1768
f2ac9964
NB
17692003-07-17 Neil Booth <neil@daikokuya.co.uk>
1770
1771 * c.opt: Document Uncodumented; use it. Document ObjC options.
1772 * opts.c (print_filtered_help): Skip undocumented switches.
1773 * opts.h (CL_UNDOCUMENTED): New.
1774 * opts.sh: Handle Undocumented.
1775 * toplev.c (documented_lang_options): Prevent its becoming empty.
1776objc:
1777 * lang-options.h: Remove.
1778
03988cac
UW
17792003-07-16 Ulrich Weigand <uweigand@de.ibm.com>
1780
1781 * loop.c (check_ext_dependent_givs): Pass const struct loop *
1782 instead of struct loop_info * as argument. Accept BIVs with
1783 increment +/- 1 provided there is a friendly exit test against
1784 a loop-invariant value.
1785 (strength_reduce): Adapt call to check_ext_dependent_givs.
1786
fada1961
R
17872003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
1788 Con Bradley <con.bradley@superh.com>
1789
1790 * sh-protos.h (sh_get_pr_initial_val): Declare.
1791 * sh.c (regno_reg_class): Make its elements type enum reg_class.
1792 (output_stack_adjust): Remove emit_fn argument. Add epilogue_p
1793 and live_regs_mask arguments. Changed all callers.
1794 (save_schedule_s): New structure.
1795 (save_schedule): New typedef.
1796 (scavenge_reg, sh5_schedule_saves, sh5_schedule_saves): New functions.
1797 (calc_live_regs): For TARGET_SHMEDIA, use leaf_function_p.
1798 In interrupts handlers, also save registers that are usually
1799 partially saved, and make sure there is at least one general purpose
1800 register saved if a target register needs saving.
1801 Add casts in comparisons to avoid warnings.
1802 (sh_media_register_for_return): return -1 for interrupt handlers.
1803 (MAX_SAVED_REGS, MAX_TEMPS): New defines.
1804 (sh_expand_prologue): Use sh5_schedule_saves. Check that any temp
1805 registers used are available.
1806 Set RTX_FRAME_RELATED_P where appropriate.
1807 Add an REG_FRAME_RELATED_EXPR for r0 + offset addressing.
1808 (sh_expand_epilogue, sh_set_return_address): Use sh5_schedule_saves.
1809 (initial_elimination_offset): Likewise.
1810 * sh.h (DWARF_CIE_DATA_ALIGNMENT): Set to -4.
1811 (LOCAL_ALIGNMENT, GENERAL_REGISTER_P): Add casts to avoid warnings.
1812 (FP_REGISTER_P): Add casts to fix broken handling of unsigned REGNO.
1813 (XD_REGISTER_P, TARGET_REGISTER_P): Likewise.
1814 (HARD_REGNO_CALL_PART_CLOBBERED): Also yield nonzero for r15,
1815 and for target registers.
1816 (RETURN_IN_MEMORY): Add parentheses to avoid warnings.
1817 (regno_reg_class): Make its elements type enum reg_class.
1818 (CONSTRAINT_LEN): Don't use isdigit.
1819 (FUNCTION_ARG_REGNO_P): Add casts to avoid warnings.
1820 (FUNCTION_ARG): Add parentheses to avoid warnings.
1821 (RETURN_ADDR_RTX): Use sh_get_pr_initial_val.
1822 (RETURN_ADDR_OFFSET): Define to -1 for TARGET_SH5.
1823 (SH_DBX_REGISTER_NUMBER): Add casts to avoid warnings.
1824 (EH_RETURN_DATA_REGNO): Use unsigned constants to avoid warnings.
1825 * sh.md (xordi3+1): Remove unused variable regno.
1826 (return_media): Check that tr0 is available before using it.
1827
bae92bf3
NB
18282003-07-16 Neil Booth <neil@daikokuya.co.uk>
1829
1830 * c.opt: Document more options.
1831
cc8c96fd
RS
18322003-07-16 Roger Sayle <roger@eyesopen.com>
1833
1834 * combine.c (subst): Also handle (subreg (const_double ...)) case
1835 if created by a substitution, by using the original inner mode.
1836
d41ba56f
RS
18372003-07-16 Roger Sayle <roger@eyesopen.com>
1838
1839 * simplify-rtx.c (simplify_replace_rtx): Convert constant comparisons
1840 to MODE_FLOAT constants if FLOAT_STORE_FLAG_VALUE is defined.
1841 (simplify_rtx): Likewise. Simplify (lo_sum (high X) X) as X.
1842
264d65c1 18432003-07-16 Andrew Pinski <pinskia@physics.uc.edu>
78ff95dc 1844
264d65c1 1845 * doc/install.texi (--without-headers): New.
1622229c
AP
1846
1847 Partial Fix PR/10129
1848 * config/darwin.c (machopic_function_base_name): Only Return "<pic base>".
1849 (machopic_output_function_base_name): New; print the true pic label.
1850 (machopic_classify_ident): Pic Base is always a defined data.
1851 * config/darwin.h (ASM_OUTPUT_LABELREF): Support the pic base label.
1852 * config/darwin-proto.h (machopic_output_function_base_name): Prototype.
1853
db2f435b
AP
1854 * gcse.c (gcse_constant_p): COMPARE of the same registers is a constant
1855 if they are not floating point registers.
1856
d07605f5
AP
1857 PR c/10962
1858 * ggc.h: Add header guards.
1859 * c-decl.c (finish_struct): Sort fields if
1860 number greater than 15 and there are no
1861 anonymous structs/unions.
1862 * c-common.h: Include ggc.h.
1863 (sorted_fields_type): New struct.
1864 (field_decl_cmp): New prototype.
1865 (resort_sorted_fields): New prototype.
1866 (DECL_DECLARES_TYPE_NON_TEMPLATE_P): New macro.
1867 * c-tree.h: (lang_type): Use pointer to sorted_fields_type
1868 as s, removing other fields.
1869 * c-typeck.c (lookup_field): Use s in lang_type.
1870 These were mostly moved from cp/class.c:
1871 * c-common.c (field_decl_cmp): New static function.
1872 (field_decl_cmp): New function.
1873 (resort_sorted_fields): New function.
1874
3d7964d5
GK
18752003-07-16 Geoffrey Keating <geoffk@apple.com>
1876
1877 * config/darwin.c (machopic_select_section): Use decl_readonly_section
1878 to do most of the work.
1879
4e58524e
HPN
18802003-07-16 Hans-Peter Nilsson <hp@bitrange.com>
1881
1882 * config/mmix/mmix-protos.h: Convert prototypes to ISO C90.
1883 * config/mmix/mmix.c: Convert functions to ISO C90.
1884 (mmix_eh_return_handler_rtx, mmix_output_shifted_value): Tweak
1885 formatting.
1886 (mmix_get_hard_reg_initial_val): Tweak section head comment.
1887
1e0343dd
R
18882003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
1889
1890 * c-pragma.h (HANDLE_PRAGMA_WEAK): Always define to SUPPORTS_WEAK.
1891
fc4767bb
JJ
18922003-07-16 Jakub Jelinek <jakub@redhat.com>
1893
1894 * unwind-dw2.c (MD_FROB_UPDATE_CONTEXT): Define.
1895 (uw_update_context_1): Use it.
1896 * config/rs6000/rs6000.c (insn_after_throw): Remove.
1897 (rs6000_aix_emit_builtin_unwind_init): Save $r2 to its location
1898 in parent frame if _Unwind_* called directly instead of through
1899 .plt.
1900 (rs6000_emit_eh_toc_restore): Remove.
1901 (rs6000_emit_prologue): Update stack pointer before doing any saving
1902 if current_function_calls_eh_return. Generate unwind info for $r2.
1903 (rs6000_emit_epilogue): Restore stack pointer after doing all
1904 restoring if current_function_calls_eh_return. Restore $r2.
1905 * config/rs6000/rs6000-protos.h (rs6000_emit_eh_toc_restore): Remove.
1906 * config/rs6000/rs6000.md (eh_return): Remove call to
1907 rs6000_emit_eh_toc_restore.
1908 * config/rs6000/linux64.h (MD_FROB_UPDATE_CONTEXT): Define.
1909 * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Define.
1910
6972c506
JJ
19112003-07-15 Jakub Jelinek <jakub@redhat.com>
1912
1913 * expr.c (emit_block_move): Don't move anything if size is const 0.
1914 (clear_storage): Test against const0_rtx instead of comparing INTVAL
1915 against 0.
1916
ac59ed37
DM
19172003-07-15 David S. Miller <davem@redhat.com>
1918
1919 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Only
1920 emit nop if the last real insn is CALL_INSN.
1921
b828d124
DS
19222003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
1923
1924 * config/i386/xm-mingw32.h (HOST_BIT_BUCKET): Define
1925 as "nul".
1926 * config/i386/xm-mingw32.h: Change GNU CC to GCC.
1927
d5648e12
DS
19282003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
1929
1930 * config/i386/winnt.c (associated_type): Artificial methods are not
1931 affected by the import/export status of their class unless they are
1932 COMDAT.
1933 (i386_pe_dllimport_p): Do not mark artificial methods as dllimport.
1934
1935 * config/i386/winnt.c: Fix GCC copyright comment.
1936
b0e3f7ec
GDR
19372003-07-16 Gabriel Dos Reis <gcc@integrable-solutions.net>
1938
1939 PR c++/11531
1940 * diagnostic.c (diagnostic_report_diagnostic): Don't ICE if we're
1941 not recursing on hard error.
1942 (diagnostic_for_decl): Likewise.
1943 * diagnostic.def: Rearrange.
1944
71628aa0
R
19452003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
1946
1947 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
1948 If DWARF_FRAME_RETURN_COLUMN doesn't have a register mode, use Pmode.
1949
19502003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
1951 Richard Henderson <rth@redhat.com>
1952
1953 * unwind-dw2.c (_Unwind_GetGR): Use dwarf_reg_size_table
1954 to decide if to access a _Unwind_Ptr or a _Unwind_Word.
1955 (_Unwind_SetGR): Likewise.
1956 (_Unwind_GetPtr, _Unwind_SetSpColumn): New functions.
1957 (Unwind_SpTmp): New typedef.
1958 (uw_update_context_1): Use _Unwind_SetSpColumn and _Unwind_GetPtr.
1959 (uw_update_context): Use _Unwind_GetPtr.
1960 (init_dwarf_reg_size_table): Move above uw_init_context_1.
1961 (uw_init_context_1): Initialize dwarf_reg_size_table if necessary.
1962 Use _Unwind_SetSpColumn.
1963 (uw_install_context_1): Don't initialize dwarf_reg_size_table.
1964 Use _Unwind_GetPtr.
1965
5a170a05
NB
19662003-07-15 Neil Booth <neil@daikokuya.co.uk>
1967
1968 * c.opt: Document more options.
1969 * toplev.c (documented_lang_options): Remove all local help strings.
1970
b0afa2fc
MM
19712003-07-15 Mark Mitchell <mark@codesourcery.com>
1972
1973 PR debug/11473
1974 * dbxout.c (dbxout_type): Use TYPE_SIZE to determine the sizes of
1975 base classes.
1976
5df90541
KH
19772003-07-15 Kazu Hirata <kazu@cs.umass.edu>
1978
1979 PR target/10795
1980 * config/i386/i386.c (ix86_expand_carry_flag_compare): Don't
1981 swap comparison operands if doing so would generate an
1982 unrecognizable insn.
1983
5a257872
EB
19842003-07-15 Eric Botcazou <ebotcazou@libertysurf.fr>
1985
1986 PR optimization/11320
1987 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
1988 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
1989 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
1990 current_sched_info->compute_jump_reg_dependencies. Record which
1991 registers are used and which registers are set by the jump.
1992 Clear deps->reg_conditional_sets after a barrier.
1993 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
1994 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
1995 (init_deps): Initialize reg_conditional_sets.
1996 (free_deps): Clear reg_conditional_sets.
1997 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
1998 Mark registers live on entry of the fallthrough block and conditionally
1999 set as set by the jump. Mark registers live on entry of non-fallthrough
2000 blocks as used by the jump.
2001 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
2002 Mark new parameters as unused.
2003
3cec3f83
RS
20042003-07-15 Richard Sandiford <rsandifo@redhat.com>
2005
2006 * doc/invoke.texi: Resync MIPS -march documentation.
2007
98450f0d
RS
20082003-07-15 Richard Sandiford <rsandifo@redhat.com>
2009
2010 * config/mips/mips.h (PROCESSOR_R9000): New processor_type.
2011 (TARGET_MIPS9000, TUNE_MIPS9000): New macros.
2012 (GENERATE_MULT3_SI): True for TARGET_MIPS9000.
2013 * config/mips/mips.c (mips_cpu_info_table): Add rm9000 entry.
2014 (mips_rtx_costs): Adjust integer multiplication costs for the rm9000.
2015 (mips_issue_rate): Handle PROCESSOR_R9000.
2016 (mips_use_dfa_pipeline_interface): Likewise.
2017 * config/mips/9000.md: New file.
2018 * config/mips/mips.md: Include it.
2019 (define_attr cpu): Add r9000.
2020 (mulsi3_mult3): Use "mul" for rm9000 code.
2021
5fe25f47
SC
20222003-07-15 Stan Cox <scox@redhat.com>
2023
2024 * config/mips/mips.h (PROCESSOR_R7000): New processor_type.
2025 (TARGET_MIPS7000, TUNE_MIPS7000): New macros.
2026 (GENERATE_MULT3_SI): True for TARGET_MIPS7000.
2027 * config/mips/mips.c (mips_cpu_info_table): Add rm7000 entry.
2028 (mips_rtx_costs): Adjust integer multiplication costs for the rm7000.
2029 (mips_issue_rate): Handle PROCESSOR_R7000.
2030 (mips_use_dfa_pipeline_interface): Likewise.
2031 * config/mips/7000.md: New file.
2032 * config/mips/mips.md: Include it.
2033 (define_attr cpu): Add r7000.
2034 (mulsi3_mult3): Use "mul" for rm7000 code.
2035
5a2515e6
RS
20362003-07-15 Richard Sandiford <rsandifo@redhat.com>
2037
2038 * config/mips/mips.md (define_attr type): Add condmove. Use it for
2039 the conditional move patterns.
2040 * config/mips/5400.md (ir_vr54_move): Rename to ir_vr54_condmove.
2041 Check for condmove type.
2042 (ir_vr54_arith): Add move type.
2043 * config/mips/5500.md (ir_vr55_move, ir_vr55_arith): Likewise.
2044 * config/mips/sr71k.md (ir_sr70_move, ir_sr70_arith): Likewise.
2045
72de27ea
NB
20462003-07-15 Neil Booth <neil@daikokuya.co.uk>
2047
2048 * c-opts.c (print_help): Remove.
2049 (c_common_handle_option): Don't handle --help.
2050 * c.opt: Document some options.
2051 (--help): Remove.
2052 * opts.c (print_filtered_help): New.
2053 (print_help): Use it.
2054
e6ebd07b
GK
20552003-07-14 Geoffrey Keating <geoffk@apple.com>
2056
2d799c09
GK
2057 * c-common.c (c_common_type_for_mode): Handle V4DFmode.
2058 * tree.c: (build_common_tree_nodes_2): Likewise.
2059 * tree.h (enum tree_index): Add TI_V4DF_TYPE.
2060 (V4DF_type_node): New.
2061
e6ebd07b
GK
2062 * c-opts.c (push_command_line_include): Don't free deferred_opts,
2063 we'll need it.
2064 (finish_options): Reset init_cursor.
2065
b90f141a
KH
20662003-07-15 Kazu Hirata <kazu@cs.umass.edu>
2067
2068 * expr.c (expand_assignment): Remove an unused argument
2069 SUGGEST_REG.
2070 * expr.h: Update the prototype.
2071 * function.c: Update the callers.
2072 * stmt.c: Likewise.
2073
1e7ee6ad
MM
20742003-07-14 Mark Mitchell <mark@codesourcery.com>
2075
2076 PR debug/11098
2077 * integrate.c (copy_decl_for_inlining): Do not mark copied decls
2078 as DECL_ABSTRACT.
2079
bf66f7b0
NN
20802003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
2081
2082 * fixinc/inclhack.def (avoid_bool_define, avoid_bool_type): Bypass
2083 with __cplusplus, not "we must use the C++ compiler's type"
2084 * fixinc/inclhack.def (void_null): Note that Interix needs this.
2085 * fixinc/fixincl.x: Regenerate.
2086
18009d03
GK
20872003-07-14 Geoffrey Keating <geoffk@apple.com>
2088
ea00486e
GK
2089 * unwind-dw2-fde-darwin.c (live_image_destructor): Get seen_objects
2090 and unseen_objects from the global data before calling
2091 __deregister_frame_info_bases.
2092 (examine_objects): Insert objects into the seen_objects list,
2093 not unseen_objects.
2094 (_Unwind_Find_FDE): Always unlock the global object lists, even if
2095 we couldn't allocate a data structure to put in it.
2096
18009d03
GK
2097 * objc/objc-act.h (CLASS_SUPER_NAME): Add a little typechecking.
2098 (TYPE_PROTOCOL_LIST): Share use of type.context with C frontend.
2099 (SET_TYPE_PROTOCOL_LIST): New.
2100 * objc/objc-act.c (get_static_reference): Use SET_TYPE_PROTOCOL_LIST.
2101 (get_object_reference): Likewise.
2102
9ae130f8
JH
2103Mon Jul 14 23:14:28 CEST 2003 Jan Hubicka <jh@suse.cz>
2104
2105 * cfglayout.c (locator_file): Break out from ....
2106 (insn_file): ... here.
2107 (locator_line): Break out from ....
2108 (insn_line): ... here.
2109 * rtl.h (locator_file, locator_line): Declare.
2110 (final_start_function): Set proper line/file info.
2111
e07d4821
GDR
21122003-07-14 Gabriel Dos Reis <gdr@integrable-solutions.net>
2113
2114 * c-pretty-print.c (pp_c_unary_expression): A CONVERT_EXPR is
2115 handled by pp_c_cast_expression.
2116
121d69e6
RS
21172003-07-14 Richard Sandiford <rsandifo@redhat.com>
2118
2119 * config/mips/mips.c (mips_expand_prologue): Use a single insn to
2120 allocate 32768 bytes of stack. Use addition rather than subtraction
2121 when a single insn is enough.
2122 * config/mips/mips.md: Remove insns and splitters for subtracting
2123 constants.
2124 (subsi3): Only accept register operands.
2125 (subsi3_internal): Likewise. Use for TARGET_MIPS16 as well.
2126 (subdi3_internal_3, subsi3_internal_2): Likewise.
2127 (casesi): Use expand_binop to subtract the lower bound.
2128
3485245e
RS
21292003-07-14 Richard Sandiford <rsandifo@redhat.com>
2130
2131 * config/mips/mips.c (mips_in_small_data_p): Don't handle
2132 TARGET_MIPS16 specially.
2133
6627b7f9
RS
21342003-07-14 Richard Sandiford <rsandifo@redhat.com>
2135
6d0b50a4
RS
2136 * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Use
2137 mips_output_aligned_bss.
2138 * config/mips/linux.h: Likewise.
2139 * config/mips/mips-protos.h (mips_output_aligned_bss): Declare.
2140 * config/mips/mips.c (mips_output_aligned_bss): New function.
2141
8d50bd19
RS
2142 * config/mips/elf.h (DBX_DEBUGGING_INFO): Delete.
2143 * config/mips/elf64.h: Likewise.
2144
c1115ccd
RS
2145 * config/mips/elf.h (ASM_DECLARE_OBJECT_NAME): Use
2146 mips_declare_object_name.
2147 (ASM_FINISH_DECLARE_OBJECT): Likewise mips_finish_declare_object.
2148 * config/mips/elf64.h: As for elf.h.
2149 * config/mips/iris6.h: Likewise.
2150 * config/mips/linux.h (ASM_DECLARE_OBJECT_NAME): As for elf.h.
2151 * config/mips/mips.h (ASM_DECLARE_OBJECT_NAME): Remove unnecessary
2152 do...while (0) block.
2153 * config/mips/mips-protos.h (mips_declare_object_name): Declare.
2154 (mips_finish_declare_object): Declare.
2155 * config/mips/mips.c (mips_declare_object_name): New function.
2156 (mips_finish_declare_object): New function.
2157
060ff934
RS
2158 * config/mips/elf.h (SBSS_SECTION_ASM_OP): Delete.
2159 * config/mips/linux.h: Likewise.
2160
d82783b6
RS
2161 * config/mips/mips.c (inside_function): Delete.
2162 (file_in_function_warning, ignore_line_number): Delete.
2163 (mips_output_filename): Don't warn about changing filenames within
2164 a function.
2165 (mips_output_lineno): Update accordingly.
2166 (mips_output_function_prologue): Don't reset the deleted variables.
2167 * config/mips/mips.h (inside_function): Delete.
2168 (file_in_function_warning, ignore_line_number): Delete.
2169
373f8df7
RS
2170 * config/mips/elf.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Remove undefs.
2171 * config/mips/elf64.h: Likewise.
2172 * config/mips/openbsd.h: Likewise.
2173 * config/mips/iris5.h (OBJECT_FORMAT_COFF): Remove undefs.
2174 * config/mips/linux.h: Likewise.
2175 * config/mips/mips.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Delete.
2176 (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB, MIPS_UNMARK_STAB): Delete.
2177
6627b7f9
RS
2178 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Add mips/sdb.h
2179 to the list of include files when using gas.
2180 (mips*el-*-openbsd*, mips*-*-openbsd*): Add mips/sdb.h unconditionally.
2181 * config/mips/elf.h: Remove #undef SDB_DEBUGGING_INFO.
2182 * config/mips/elf64.h: Likewise.
2183 * config/mips/iris5.h: Likewise.
2184 * config/mips/linux.h: Likewise.
2185 * config/mips/iris5gas.h (SDB_DEBUGGING_INFO): Remove definition.
2186 * config/mips/mips.h (PREFERRED_DEBUGGING_TYPE): Likewise.
2187 (SDB_DEBUGGING_INFO, sdb*, SDB_ALLOW_*, PUT_SDB*): Move to...
2188 * config/mips/sdb.h: ...this new file.
2189
c18b00c0
NN
21902003-07-14 Douglas Rupp <rupp@gnat.com>
2191
2192 * fixinc/server.c (server_setup): Don't use non-POSIX NULL first
2193 argument to getcwd; use fixed buffer instead.
2194
21952003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
2196
2197 * fixinc/mkfixinc.sh: Treat OpenBSD normally.
2198 * fixinc/fixinc.wrap: Delete.
2199
adc4adcd
GP
22002003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
2201
2202 * ggc-page.c (extra_order_size_table): Insns have 9 slots. Regs
2203 don't have 2.
2204
22052003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
2206
2207 * ggc-page.c (struct globals): Add new fields to keep track of the
2208 total allocated memory and overhead.
2209 (ggc_print_statistics): Print them.
2210 (ggc_alloc): Keep track of the total allocated memory and the
2211 overhead.
2212
2213 * tree.c (dump_tree_statistics): Increase spacing.
2214 (enum tree_node_kind): Move to ...
2215 * tree.h (enum tree_node_kind): ... here.
2216 (tree_node_counts, tree_node_sizes): Declare.
2217
22182003-07-14 James A. Morrison <ja2morri@student.math.uwaterloo.ca>
2219
2220 * doc/include/texinfo.tex: Upgrade to texinfo 4.6.
2221
bbd288a4
FS
22222003-07-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2223
2224 PR optimization/11440
2225 * gcse.c (try_replace_reg): Don't attach notes to ZERO_EXTRACT or
2226 SIGN_EXTRACT SETs.
2227
6e985040
AM
22282003-07-14 Alan Modra <amodra@bigpond.net.au>
2229
2230 * doc/tm.texi (BLOCK_REG_PADDING): Describe.
2231 * expr.h (struct locate_and_pad_arg_data): Add where_pad.
2232 (emit_group_load, emit_group_store): Adjust declarations.
2233 Remove most occurrences of #ifdef TREE_CODE.
2234 * expr.c (emit_group_load): Add "type" param, and use
2235 BLOCK_REG_PADDING to determine need for a shift. Optimize non-
2236 aligned accesses if !SLOW_UNALIGNED_ACCESS.
2237 (emit_group_store): Likewise.
2238 (emit_push_insn, expand_assignment, store_expr, expand_expr): Adjust
2239 emit_group_load and emit_group_store calls.
2240 * calls.c (store_unaligned_arguments_into_pseudos): Tidy. Use
2241 BLOCK_REG_PADDING to determine whether we need endian_correction.
2242 (load_register_parameters): Localize vars. Handle shifting of
2243 small values to the correct end of regs. Adjust emit_group_load
2244 call.
2245 (expand_call, emit_library_call_value_1): Adjust emit_group_load
2246 and emit_group_store calls.
2247 * function.c (assign_parms): Set mem alignment for stack slots.
2248 Adjust emit_group_store call. Store values at the "wrong" end
2249 of regs to the stack. Use BLOCK_REG_PADDING.
2250 (locate_and_pad_parm): Save where_pad.
2251 (expand_function_end): Adjust emit_group_load call.
2252 * stmt.c (expand_value_return): Adjust emit_group_load call.
2253 * Makefile.in (calls.o): Depend on $(OPTABS_H).
2254 * config/rs6000/linux64.h (TARGET_LITTLE_ENDIAN): Redefine as 0.
2255 (AGGREGATE_PADDING_FIXED, AGGREGATES_PAD_UPWARD_ALWAYS): Define.
2256 (MUST_PASS_IN_STACK): Define.
2257 (BLOCK_REG_PADDING): Define.
2258 * config/rs6000/rs6000.h (struct rs6000_args): Remove orig_nargs.
2259 (PAD_VARARGS_DOWN): Define in terms of FUNCTION_ARG_PADDING.
2260 * config/rs6000/rs6000.c (init_cumulative_args): Don't set orig_nargs.
2261 (function_arg_padding): !AGGREGATE_PADDING_FIXED compatibility code.
2262 Act on AGGREGATES_PAD_UPWARD_ALWAYS.
2263
4fab535e
AL
22642003-07-13 Aaron W. LaFramboise <awlaframboise@aol.com>
2265
2266 * config/i386/gthr-win32.c (__GTHREAD_HIDE_WIN32API): Define to 1.
2267
8d2e5f72
RK
22682003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2269
2270 * expr.c (expand_expr, case COMPONENT_REF): If reg, copy OP0 to MEM
2271 both if OFFSET specified and if result BLKmode for ARRAY_RANGE_REF.
2272
7eaab492
NN
22732003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
2274
2275 PR other/11123
2276 * toplev.c: Don't cut off option names.
2277
9d4a30f2
AJ
22782003-07-13 Andreas Jaeger <aj@suse.de>
2279
2280 * c-decl.c (link_hash_hash): Avoid warning about casting pointer
2281 to integer of different size.
2282
34ed3bb0
KH
22832003-07-13 Kazu Hirata <kazu@cs.umass.edu>
2284
2285 * combine.c (simplify_comparison): Convert (ne (and (not X) 1) 0)
2286 to (eq (and X 1) 0).
2287
1a7d0840
AJ
22882003-07-13 Andreas Jaeger <aj@suse.de>
2289
2290 * config.gcc: Add pmmintrin.h for x86_64-*-*.
2291
43839642
ZW
22922003-07-13 Zack Weinberg <zack@codesourcery.com>
2293
2294 * Makefile.in (LIBCPP_DEPS): Remove coretypes.h and $(TM_H).
2295 (hashtable.o, line-map.o, mkdeps.o): Likewise, from dependency
2296 list. Move these all together down by cpplib.
2297
2298 * cpplib.h: Don't refer to MAX_WCHAR_TYPE_SIZE when determining
2299 definition of CPPCHAR_SIGNED_T.
2300
2301 * cppcharset.c, cpperror.c, cppexp.c, cppfiles.c, cpphash.c, cppinit.c
2302 * cpplex.c, cpplib.c, cppmacro.c, cpppch.c, cpptrad.c, hashtable.c
2303 * line-map.c, mkdeps.c: Don't include coretypes.h or tm.h.
2304
2305 * cpphash.c (_cpp_init_hashtable): Don't use gcc_obstack_init.
2306 * cppinit.c (cpp_create_reader): Likewise.
2307
2308 * cpphash.h (scan_out_logical_line): Rename _cpp_scan_out_logical_line.
2309 * cpptrad.c: Likewise. All callers changed.
2310 * cpplib.c: All callers changed.
2311 * c-ppoutput.c: Replace 'uchar' with 'unsigned char' throughout.
2312 * hashtable.h: Define GTY(x) to nothing here too.
2313
0acf4f88
RK
23142003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2315
2316 * stor-layout.c (compute_record_mode): Remove very obsolete test
2317 that forces BLKmode for records with fields crossing word boundary.
2318
46db61e7
ZW
23192003-07-13 Zack Weinberg <zack@codesourcery.com>
2320
2321 * Makefile.in: Remove orphan reference to acconfig.h.
2322
db0e878d
AJ
23232003-07-13 Andreas Jaeger <aj@suse.de>
2324
2325 * cgraphunit.c: Convert prototypes to ISO C90.
2326
4146d8d0
NN
23272003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
2328
2329 * fixinc/inclhack.def (avoid_wchar_t_type): Use __cplusplus bypass
2330 (for OpenBSD).
2331 * fixinc/fixincl.x: Rebuild.
2332
6f3ca281
ZW
23332003-07-12 Zack Weinberg <zack@codesourcery.com>
2334
2335 * configure.in: Always define HAVE_AS_GOTOFF_IN_DATA for
2336 i?86-*-*. Use correct name of cache variable.
2337 * configure: Regenerate.
2338
9a9f7594
KH
23392003-07-12 Kazu Hirata <kazu@cs.umass.edu>
2340
2341 * config/alpha/alpha.c: Fix comment typos.
2342 * config/alpha/alpha.md: Likewise.
2343 * config/arm/arm.c: Likewise.
2344 * config/arm/arm.md: Likewise.
2345 * config/arm/lib1funcs.asm: Likewise.
2346 * config/avr/avr.md: Likewise.
2347 * config/arm/README-interworking: Fix typos.
2348
4ed43216
KH
23492003-07-12 Kazu Hirata <kazu@cs.umass.edu>
2350
2351 * c-format.c: Fix comment formatting.
2352 * c-typeck.c: Likewise.
2353 * coverage.c: Likewise.
2354 * cppcharset.c: Likewise.
2355 * cpplib.c: Likewise.
2356 * dbxout.c: Likewise.
2357 * gcov-io.h: Likewise.
2358 * toplev.c: Likewise.
2359
c3a5b1e9
NN
23602003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
2361
6f3ca281 2362 * fixinc/inclhack.def (alpha_sbrk): Note that OpenBSD needs this
c3a5b1e9
NN
2363 fix.
2364
8ada417f
ZW
23652003-07-12 Zack Weinberg <zack@codesourcery.com>
2366
2367 * aclocal.m4 (gcc_AC_CHECK_TYPE): Clone of AC_CHECK_TYPE,
2368 uses three-argument AC_DEFINE so no acconfig.h entries are
2369 needed.
2370 (_gcc_COMPUTE_GAS_VERSION): Also provide gcc_cv_gas_vers
2371 which contains the GAS version number as a scaled integer.
2372 (gcc_GAS_VERSION_GTE_IFELSE): Use gcc_cv_gas_vers. Add
2373 ability to check for ELF assembler.
2374 (gcc_GAS_CHECK_FEATURE): New macro.
2375 * configure.in: Use gcc_AC_CHECK_TYPE. Rewrite all
2376 assembler feature checks using gcc_GAS_CHECK_FEATURE.
2377 Use three-argument AC_DEFINE everywhere.
2378 * acconfig.h: Deleted.
2379 * config.in, configure: Regenerate.
2380
d5d16b5f
NN
23812003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
2382
3b57c563
NN
2383 * fixinc/inclhack.def (struct_sockaddr): Avoid "fixing" sockaddr_in
2384 (on OpenBSD).
d33fb69b 2385 * fixinc/fixincl.x: Regenerate.
3b57c563 2386
d5d16b5f
NN
2387 * fixinc/inclhack.def (gnu_types): Improve comment.
2388
439f7bc3
AJ
23892003-07-12 Andreas Jaeger <aj@suse.de>
2390
2391 * fp-test.c (main): Use ISO C90 prototype.
2392
2393 * version.c: Remove unneded include of ansidecl.h.
2394
2395 * cgraph.h: Convert prototypes to ISO C90.
2396 * cgraph.c: Likewise.
2397 * fix-header.c: Likewise.
2398 * ra.h: Likewise.
2399 * protoize.c: Likewise.
2400
1a5c5701
JH
2401Sat Jul 12 06:09:38 CEST 2003 Jan Hubicka <jh@suse.cz>
2402
2403 * cgraphunit.c (cgraph_inlined_into, cgraph_inlined_calees): Fix
2404 warning.
2405
b58b1157
JH
2406Sat Jul 12 03:06:01 CEST 2003 Jan Hubicka <jh@suse.cz>
2407 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2408
2409 * cgraph.c (cgraph_max_uid): New global variable.
2410 (cgraph_node): Set uid field.
2411 (create_edge): Keep inline flags consistent.
2412 (dump_cgraph): Dump more info.
2413 * cgraph.h (struct cgraph_local_info): Remove inline_many and
2414 can_inline_once; add inlinable, disgread_inline_limits, and self_insn
2415 (struct cgraph_global_info): Add insns, calls, cloned_times,
2416 will_be_output.
2417 (struct cgraph_node): Add uid.
2418 (struct cgraph_edge): Add inline_call.
2419 (cgraph_max_uid, cgraph_inline_p): Declare.
2420 * cgraph.c: Include params.h and fibheap.h
2421 (cgraph_mark_functions_to_inline_once): Kill.
2422 (INSNS_PER_CALL): New constant.
2423 (ncalls_inlined, nfunctions_inlined, initial_insns, overall_insns): New
2424 static variables.
2425 (cgraph_finalize_function): Do not analyze inlining.
2426 (cgraph_finalize_compilation_unit): Set inlining attributes.
2427 (cgraph_mark_functions_to_output): More consistency checks.
2428 (cgraph_optimize_function): Set current_function_decl to NULL.
2429 (cgraph_expand_function): Use new inline flags.
2430 (cgraph_postorder): Expand from cgraph_expand_functions.
2431 (INLINED_TIMES, SET_INLINED_TIMES): New macros.
2432 (cgraph_inlined_into, cgraph_inlined_callees,
2433 cgraph_estimate_size_after_inlining, cgraph_estimate_growth,
2434 cgraph_mark_inline, cgraph_check_inline_limits,
439f7bc3 2435 cgraph_default_inline_p, cgraph_decide_inling_of_small_functions,
b58b1157
JH
2436 cgraph_decide_inlining, cgraph_inline_p): New functions.
2437 * params.def (PARAM_LARGE_FUNCTION_INSNS, PARAM_LARGE_FUNCTION_GROWTH,
2438 PARAM_INLINE_UNIT_GROWTH): New parameters.
2439 * tree-inline.c (struct inline_data): New field current_decl.
2440 (expand_call_inline): Avoid forward declarations; use
2441 inlinable_function_p.
2442 (optimize_inline_calls): Set id.current_decl.
2443
27b8e366
AP
24442003-07-11 Andrew Pinski <pinskia@physics.uc.edu>
2445
2446 * configure.in: Remove wrongly added definition of
2447 local_prefix.
2448 * configure: Regenerate.
2449
80fa0b4c
DN
24502003-07-11 Dan Nicolaescu <dann@ics.uci.edu>
2451
2452 * rtl.def (NOTE): Do not use padding.
2453
1ea6f4c8
DH
24542003-07-11 Dara Hazeghi <dhazeghi@yahoo.com>
2455
2456 * doc/install.tex: Update required binutils for i?86-*-linux*
2457
ed2d8944
RH
24582003-07-11 Richard Henderson <rth@redhat.com>
2459
2460 * Makefile.in (stage1_build): Force OBJS-onestep=OBJS.
2461
a44cea75
MM
24622003-07-11 Mark Mitchell <mark@codesourcery.com>
2463
2464 * varasm.c (make_decl_rtl): Treat decls with a DECL_CONTEXT of
2465 TRANSLATION_UNIT_DECL as top_level.
2466
358b8f01
JJ
24672003-07-11 Jakub Jelinek <jakub@redhat.com>
2468
2469 * optabs.c (prepare_cmp_insn): Try cmpmemM first if it exists,
2470 then fall back to cmpstrM.
2471 * builtins.c (expand_builtin_memcmp): Likewise.
2472 * config/s390/s390-protos.h (s390_expand_cmpstr): Rename to...
2473 (s390_expand_cmpmem): ... this.
2474 * config/s390/s390.md (cmpmemdi, cmpmemsi, cmpmem_short_64,
2475 cmpmem_short_31, cmpmem_long_64, cmpmem_long_31): Renamed
2476 from cmpstr* patterns. Rename call to s390_expand_cmpstr
2477 to s390_expand_cmpmem.
2478 * config/s390/s390.c (s390_expand_cmpstr): Rename to...
2479 (s390_expand_cmpstr): ... this. Rename cmpstr* instructions
2480 to cmpmem*.
2481 * config/i370/i370.md (cmpmemsi, cmpmemsi_1): Renamed from
2482 cmpstr* patterns.
2483 * doc/md.texi (cmpstrM): Describe as String compare insn, not
2484 Block compare insn.
2485 (cmpmemM): Add.
2486
8634e925
LR
24872003-07-11 Loren James Rittle <ljrittle@acm.org>
2488
2489 * config/i386/freebsd.h (SET_ASM_OP): Remove.
2490 (SUBTARGET_OVERRIDE_OPTIONS): Handle TARGET_64BIT case.
2491 (ASM_COMMENT_START, ASM_APP_ON, ASM_APP_OFF, DBX_REGISTER_NUMBER
2492 MCOUNT_NAME, SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE_SIZE): Whitespace.
2493
48144cd4
RH
24942003-07-11 Richard Henderson <rth@redhat.com>
2495
2496 * function.c (assign_parms): Don't recombine complex args if
2497 fnargs is unchanged from orig_fnargs.
2498 (split_complex_args): Return args without complex before copying.
2499 Re-layout the modified parameters.
2500
fee226d2
R
25012003-07-11 J"orn Rennecke <joern.rennecke@superh.com>
2502
2503 * regclass.c (choose_hard_reg_mode): Add third argument.
2504 Changed all callers.
2505 * rtl.h (choose_hard_reg_mode): Update declaration.
2506 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
2507 Take HARD_REGNO_CALL_PART_CLOBBERED into account.
2508
d1bd0ded
GK
25092003-07-11 Geoffrey Keating <geoffk@apple.com>
2510
2511 * c-decl.c (finish_decl): Handle 'used' here...
2512 * cgraphunit.c (cgraph_finalize_function): ... and here ...
2513 * c-common.c: (handle_used_attribute): ... not here.
439f7bc3 2514
d1bd0ded
GK
2515 * configure.in (onstep): Support --enable-intermodule.
2516 * Makefile.in (OBJS-common): New.
2517 (OBJS-md): New.
2518 (OBJS-archive): New.
2519 (OBJS): Build from OBJS-common, OBJS-md, OBJS-archive.
2520 (OBJS-onestep): New.
2521 (libbackend.a): Support @onestep@.
2522 (libbackend.o): New.
2523 * configure: Regenerate.
439f7bc3 2524
d1bd0ded
GK
2525 * c-common.h (c_reset_state): New prototype.
2526 (c_parse_file): New prototype.
2527 (finish_file): Move prototype from c-tree.h.
2528 * c-decl.c: Include <hashtab.h>.
2529 (builtin_decls): New.
2530 (current_file_decl): New.
2531 (duplicate_decls): Add extra parameter. Change all callers. Don't
2532 output duplicate common symbols.
2533 (link_hash_hash): New.
2534 (link_hash_eq): New.
2535 (poplevel): Handle popping of the top level.
2536 (warn_if_shadowing): Handle TRANSLATION_UNIT_DECL.
2537 (pushdecl): Set DECL_CONTEXT to TRANSLATION_UNIT_DECL if appropriate.
2538 (pushdecl_top_level): Likewise.
2539 (redeclaration_error_message): Handle TRANSLATION_UNIT_DECL.
2540 (c_init_decl_processing): Create TRANSLATION_UNIT_DECL.
2541 (finish_decl): Handle TRANSLATION_UNIT_DECL.
2542 (merge_translation_unit_decls): New.
2543 (c_write_global_declarations): New.
2544 (c_reset_state): New.
2545 (implicitly_declare): Handle TRANSLATION_UNIT_DECL.
2546 * c-lang.c (LANG_HOOKS_WRITE_GLOBALS): New.
2547 * c-objc-common.c (c_cannot_inline_tree_fn): Handle
2548 TRANSLATION_UNIT_DECL.
2549 (c_objc_common_finish_file): Call merge_translation_unit_decls.
2550 * c-opts.c (in_fnames): Rename from in_fname.
2551 (c_common_decode_option): Handle multiple input filenames.
2552 (c_common_post_options): Likewise.
2553 (c_common_parse_file): Likewise; also, call c_parse_file rather than
2554 yyparse.
2555 * c-parse.in: Move cleanup code to c_parse_file.
2556 (free_parser_stacks): Move contents to c_parse_file.
2557 (c_parse_file): New.
2558 * c-tree.h (union lang_tree_node): Chain along TYPE_NEXT_VARIANT
2559 for integer types.
2560 (C_DECL_FILE_SCOPE): New.
2561 (finish_file): Move prototype to c-common.h.
2562 (merge_translation_unit_decls): New prototype.
2563 (comptypes): Add extra parameter to prototype.
2564 (c_write_global_declarations): New prototype.
2565 * c-typeck.c (tagged_types_tu_compatible_p): New.
2566 (function_types_compatible_p): Add extra parameter, change all callers.
2567 (type_lists_compatible_p): Likewise.
2568 (comptypes): Likewise.
2569 (struct tagged_tu_seen): New.
2570 (tagged_tu_seen_base): New.
2571 (build_unary_op): Handle TRANSLATION_UNIT_DECL.
2572 (c_mark_addressable): Remove #if 0 code.
2573 * calls.c (special_function_p): Handle TRANSLATION_UNIT_DECL, add
2574 comment explaining why it shouldn't have to.
2575 * cgraph.h (struct cgraph_node): Add chain_next and chain_prev GTY
2576 options.
2577 * cppinit.c (cpp_read_next_file): New.
2578 (cpp_read_main_file): Use it.
2579 * cpplib.c (undefine_macros): New.
2580 (cpp_undef_all): New.
2581 * cpplib.h (cpp_read_next_file): Prototype.
2582 (cpp_undef_all): Prototype.
2583 * langhooks-def.h (write_global_declarations): Remove prototype.
2584 * toplev.h (write_global_declarations): Add prototype.
2585 * tree.c (decl_type_context): Use switch statement, handle
2586 TRANSLATION_UNIT_DECL.
2587 * tree.def: Update documentation for TRANSLATION_UNIT_DECL.
2588 (TRANSLATION_UNIT_DECL): New kind of tree.
2589 * tree.h: Update documentation for TRANSLATION_UNIT_DECL.
2590 * Makefile.in (c-decl.o): Add $(HASHTAB_H) to dependencies.
2591 * doc/invoke.texi: Make attempt to document new functionality.
2592
2593 2003-05-19 Per Bothner <bothner@apple.com>
2594
2595 * gcc.c (combine_inputs): New.
2596 (process_command): Set combine_inputs.
2597 (do_spec_1): Handle combine_inputs.
2598 (main): Likewise.
2599
ac8354b1
JW
26002003-07-10 James E Wilson <wilson@tuliptree.org>
2601
2602 PR optimization/9745
2603 * loop.c (loop_iv_add_mult_emit_before): Call loop_regs_update before
2604 loop_insn_emit_before.
2605 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
439f7bc3 2606
dea55da5
ZW
26072003-07-10 Zack Weinberg <zack@codesourcery.com>
2608
2609 * cppcharset.c: Fix comment.
2610 (iconv_close [!HAVE_ICONV]): #define to (void)0 to prevent warning.
2611 (EILSEQ): #define to EINVAL if not already defined.
2612 (convert_using_iconv): #if out when !HAVE_ICONV.
2613 (init_iconv_desc): Handle !HAVE_ICONV here...
2614 (cpp_init_iconv): ...not here.
2615
f3fdaec4
NB
26162003-07-11 Neil Booth <neil@daikokuya.co.uk>
2617
2618 * common.opt: More --help messages.
2619 * opts.c (print_help): Use puts().
2620 * toplev.c (f_options): Remove help text.
2621 (display_help): Don't dump f_options.
2622
7ebbf1ea
NN
26232003-07-11 Nathanael Nerode <neroden@gcc.gnu.org>
2624
2625 * fixinc/mkfixinc.sh: Drop reference to unsupported alpha-*-interix*.
2626 Move i?86-*-interix* to the don't-fix list.
2627 * fixinc/fixinc.interix: Delete with extreme prejudice.
2628
959a73a4
DH
26292003-07-10 Dara Hazeghi <dhazeghi@yahoo.com>
2630
2631 PR bootstrap/10758
2632 * doc/install.texi: Document requirements for ia64-*-hpux* target.
2633
9959901c
RS
26342003-07-10 Roger Sayle <roger@eyesopen.com>
2635
2636 * config/ia64/hpux.h (TARGET_C99_FUNCTIONS): Define.
2637
6b88314c
ZW
26382003-07-10 Zack Weinberg <zack@codesourcery.com>
2639
2640 * cppcharset.c (one_utf8_to_cppchar, one_cppchar_to_utf8,
2641 one_utf8_to_utf32, one_utf32_to_utf8, one_utf8_to_utf16,
2642 one_utf16_to_utf8, conversion_loop, convert_utf8_utf16,
2643 convert_utf8_utf32, convert_utf16_utf8, convert_utf32_utf8,
2644 convert_no_conversion, convert_using_iconv): New functions.
2645 (APPLY_CONVERSION): New macro.
2646 (struct conversion, conversion_tab): New data structure.
2647 (init_iconv_desc): Check conversion_tab for a custom conversion
2648 primitive before trying to use iconv.
2649 (convert_cset): Deleted.
2650 (cpp_init_iconv): Use UTF- terminology, not UCS-.
2651 (_cpp_destroy_iconv): Update to match.
2652 (_cpp_valid_ucn): We don't need iconv to implement UCNs.
2653 (convert_ucn): Use one_cppchar_to_utf8 and APPLY_CONVERSION.
2654 (convert_escape, cpp_interpret_string): Use APPLY_CONVERSION.
2655 (_cpp_interpret_string_notranslate): New function, moved here
2656 from cpplib.c.
2657
2658 * cpphash.h (convert_f, struct cset_converter): New types.
2659 (struct cpp_reader): narrow_cset_desc and wide_cset_desc
2660 are now struct cset_converter, not bare iconv_t.
2661 Update prototypes.
2662 * cpplib.c (interpret_string_notranslate): Moved to cppcharset.c;
2663 all callers changed.
2664
38f4680f 26652003-07-10 Kelley Cook <kelleycook@wideopenwest.com>
6b88314c 2666
38f4680f
KC
2667 * Makefile.in (options.h): Depend on Makefile. Add move-if-change
2668 to opts.sh command line.
2669 * opts.sh: Write to temporary files with a move-if-change at the end.
2670
2a868fac 26712003-07-10 Denis Chertykov <denisc@overta.ru>
6b88314c 2672 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9db367b4
DC
2673
2674 * combine.c (gen_binary): Handle the CLOBBER rtx and
2675 don't build a binary operation with it.
2676
3b14e3af
ZD
26772003-07-10 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2678
2679 * gcse.c (load_kills_store, find_loads, store_killed_in_insn,
2680 store_killed_after, store_killed_before): Keep track of the correct
2681 dependency function to use.
2682
a9189cc0
SB
26832003-07-10 Steven Bosscher <steven@gcc.gnu.org>
2684 * toplev.c (do_compile): Don't try to open dump files before
2685 lang_dependent_init initializes dump_base_name.
2686
e97a46ce
KG
26872003-07-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2688
2689 * config/arm/arm.c (arm_init_iwmmxt_builtins, arm_expand_builtin):
2690 Use ARRAY_SIZE.
2691 * config/frv/frv.c (frv_expand_builtin): Likewise.
2692 * config/sh/sh.c (sh_media_init_builtins): Likewise.
2693
4a386498
MM
26942003-07-09 Mark Mitchell <mark@codesourcery.com>
2695
2696 PR c++/10032
2697 * doc/invoke.texi (C++ Dialect Options): Change documentation of
2698 -fpermissive.
2699
1e60c057
R
27002003-07-10 J"orn Rennecke <joern.rennecke@superh.com>
2701
2702 * tm.texi (RETURN_ADDR_OFFSET): Document.
2703
330d2e2a
NS
27042003-07-10 Nathan Sidwell <nathan@codesourcery.com>
2705
2706 * gcov-io.h: Update documentation.
2707 (GCOV_UNSIGNED2STRING): New.
2708 (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
2709 GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
2710 GCOV_TAG_SUMMARY_LENGTH): Adjust.
2711 (GCOV_TAG_BLOCKS_NUM, GCOV_TAG_ARCS_NUM,
2712 GCOV_TAG_COUNTER_NUM): New.
2713 (GCOV_BLOCK_SIZE): Number of words.
2714 (gcov_var): Adjust buffer type.
2715 * gcov-io.c (gcov_write_bytes, gcov_read_bytes): Rename to ...
2716 (gcov_write_words, gcov_read_words): ... here. Take a 4-byte word
2717 count, not byte count.
2718 (gcov_open): Adjust overread init.
2719 (gcov_allocate, gcov_write_unsigned, gcov_write_counter,
2720 gcov_write_string, gcov_write_tag, gcov_write_length,
2721 gcov_write_tag_length): Adjust.
2722 (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
2723 (gcov_sync, gcov_seek): Adjust.
2724 * gcov-dump.c (print_usage): Show gcc version only.
2725 (dump_file): Use GCOV_UNSIGNED2STRING.
2726 (tag_blocks, tag_arcs, tag_counters): Use GCOV_TAG_*_NUM macros.
2727 * gcov.c (print_version): Show gcc version only.
2728 (read_graph_file): Use GCOV_UNSIGNED2STRING. Use
2729 GCOV_TAG_*_NUM macros.
2730 (read_count_file): Use GCOV_UNSIGNED2STRING. Use
2731 GCOV_TAG_COUNTER_LENGTH.
2732 * coverage.c (read_counts_file): Use GCOV_UNSIGNED2STRING.
2733 Use GCOV_TAG_COUNTER_NUM.
2734 * libgcov.c (gcov_version): Use GCOV_UNSIGNED2STRING.
2735 (__gcov_merge_single, __gcov_merge_delta): Use GCOV_CHECK.
2736
3dbb446e
AS
27372003-07-10 Andreas Schwab <schwab@suse.de>
2738
2739 * gcov-dump.c (dump_file): Fix missing address operator.
2740
11791dbc
KH
27412003-07-10 Kazu Hirata <kazu@cs.umass.edu>
2742
2743 PR c/11449
2744 * fold-const.c (sign_bit_p): Return EXP if VAL is the sign bit
2745 of HOST_WIDE_INT.
2746 (fold_single_bit_test): If sign_bit_p() fails, assume that the
2747 bit being tested is not a sign bit.
2748
ae12c666
KH
27492003-07-10 Kazu Hirata <kazu@cs.umass.edu>
2750
2751 * config/h8300/h8300.md (a peephole2): New.
2752
2beef00e
AO
27532003-07-10 Alexandre Oliva <aoliva@redhat.com>
2754
2755 2001-12-13 Alexandre Oliva <aoliva@redhat.com>
2756 * config/mn10300/linux.h (LINK_SPEC): Rename the dynamic linker
2757 from ld-linux.so.2 to ld.so.1.
2758 2001-11-18 Alexandre Oliva <aoliva@redhat.com>
2759 * config/mn10300/linux.h (LINK_SPEC): -lpthread, not -lthread.
2760 * config/mn10300/linux.h (LINK_SPEC): Don't handle -Wl,-rpath
2761 nor -Wl,-rpath-link.
2762 (LIB_SPEC): Add -rpath-link if !static.
2763 2001-08-22 Alexandre Oliva <aoliva@redhat.com>
2764 * config/mn10300/mn10300.c (mn10300_protect_label): New
2765 variable.
2766 * config/mn10300/linux.h (PRINT_OPERAND,
2767 PRINT_OPERAND_ADDRESS): Set it during their execution.
2768 (ASM_OUTPUT_LABELREF): Output `+' before symbol name if
2769 mn10300_protect_label is set.
2770 * config/mn10300/linux.h (LINK_SPEC): Recognize -Wl,-rpath and
2771 -Wl,-rpath-link.
2772 (LIB_SPEC, STARTFILE_SPEC): Define.
2773 2001-05-11 Alexandre Oliva <aoliva@redhat.com>
2774 * config/mn10300/t-linux (dp-bit.c, fp-bit.c): Don't define
2775 FLOAT_BIT_ORDER_MISMATCH.
2776 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
2777 * config.gcc (am33_2.0-*-linux*): Added.
2778 * config/mn10300/linux.h: New.
2779 * config/mn10300/t-linux: New.
2780
75040a04
AJ
27812003-07-10 Andreas Jaeger <aj@suse.de>
2782
2783 * fold-const.c: Properly wrap prototypes.
2784
d1776069
AO
27852003-07-09 Alexandre Oliva <aoliva@redhat.com>
2786
2787 2003-06-16 Alexandre Oliva <aoliva@redhat.com>
2788 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter):
2789 Moved from...
2790 * config/mn10300/mn10300.md (GOTaddr2picreg): ... here.
2791 * config/mn10300/mn10300.h: GTY-declare it.
2792 2003-06-11 Alexandre Oliva <aoliva@redhat.com>
2793 * config/mn10300/mn10300.c (mn10300_encode_section_info): Fix
2794 prototype. Use incoming RTL argument.
2795 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
2796 * config/mn10300/mn10300.md (int_label): Move C statements...
2797 (GOTaddr2picreg): ... here.
2798 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
2799 * config/mn10300/mn10300.h (ENCODE_SECTION_INFO): Move...
2800 * config/mn10300/mn10300.c (mn10300_encode_section_info):
2801 ... here. New function.
2802 (TARGET_ENCODE_SECTION_INFO): Define to it.
2803 2001-11-04 Alexandre Oliva <aoliva@redhat.com>
2804 * config/mn10300/mn10300.md (builtin_setjmp_receiver): Fix typo in
2805 pattern name.
2806 (mn10300_loadPC): Define as insn splittable after reload.
2807 2001-05-13 Alexandre Oliva <aoliva@redhat.com>
2808 * config/sh/mn10300.h (JUMP_TABLES_IN_TEXT_SECTION): Let them
2809 be defined in .rodata even in PIC, now that the assembler
2810 supports that.
2811 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
2812 * config/mn10300/mn10300.h (GOT_SYMBOL_NAME): Don't let the
2813 symbol take an underscore prefix.
2814 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
2815 * config/mn10300/mn10300-protos.h (legitimate_pic_operand_p,
2816 legitimize_pic_address): Declare.
2817 * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Mark
2818 the PIC register as fixed.
2819 (EXTRA_CONSTRAINT): Match UNSPEC_PLT and UNSPEC_PIC for 'S'.
2820 (GO_IF_LEGITIMATE_ADDRESS): Require legitimate_pic_operand for
2821 PIC.
2822 (LEGITIMATE_PIC_OPERAND_P): Define.
2823 (PIC_OFFSET_TABLE_REGNUM): Define.
2824 (GOT_SYMBOL_NAME): Define.
2825 (SYMBOLIC_CONST_P): Define.
2826 (ENCODE_SECTION_INFO): Use SYMBOL_REF_FLAG to mark local
2827 symbols.
2828 (MN10300_GLOBAL_P): Test it.
2829 (OUTPUT_ADDR_CONST_EXTRA): Handle PIC-related unspecs.
2830 (JUMP_TABLES_IN_TEXT_SECTION): Enable for PIC.
2831 * config/mn10300/mn10300.c (print_operand): Handle unspec.
2832 (expand_prologue): Set PIC register.
2833 (call_address_operand): Don't match SYMBOL_REFs in PIC.
2834 (legitimize_address): Call legitimize_pic_address.
2835 (legitimize_pic_address): New fn.
2836 (legitimate_pic_operand_p): New fn.
2837 * config/mn10300/mn10300.md (PIC_REG, SP_REG): New constants.
2838 (UNSPEC_INT_LABEL, UNSPEC_PIC, UNSPEC_GOT, UNSPEC_GOTOFF,
2839 UNSPEC_PLT): New constants.
2840 (pop_pic_reg): New insn.
2841 (movsi): Adjust non-PIC addresses.
2842 (builtin_setjmp_receiver): Restore the PIC register.
2843 (casesi): New insn.
2844 (call): Adjust non-PIC addresses.
2845 (int_label, GOTaddr2picreg): New expands.
2846 (am33_loadPC): New insn.
2847 (mn10300_loadPC): New expand.
2848 (call_next_insn): New insn.
2849 (add_GOT_to_pic_reg): New expand.
2850 (symGOT2reg, symGOT2reg_i): New expands.
2851 (symGOTOFF2reg, symGOTOFF2reg_i): New expands.
2852 (sym2PIC, sym2PLT): New expands.
2853
18e9d2f9
AO
28542003-07-09 Alexandre Oliva <aoliva@redhat.com>
2855
2856 * config/mn10300/mn10300.h (PREDICATE_CODES): Define.
2857 2001-05-01 Alexandre Oliva <aoliva@redhat.com>
2858 * config/mn10300/mn10300.md (sqrtsf2): flag_fast_math was renamed
2859 to flag_unsafe_math_optimizations.
2860 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
2861 * config/mn10300/mn10300.c (expand_prologue): Mark
2862 FP-register-saving insns as frame-related.
2863 2001-02-13 Alexandre Oliva <aoliva@redhat.com>
2864 * config/mn10300/mn10300.c
2865 (mn10300_get_live_callee_saved_regs): Don't search past
2866 LAST_EXTENDED_REGNUM.
2867 (mn10300_gen_multiple_store, store_multiple_operation): Likewise.
2868 * config/mn10300/mn10300.md: Remove excessive line breaks from
2869 `@' output patterns that were accounted as additional
2870 alternatives.
2871 * config/mn10300/mn10300.md, config/mn10300/mn10300.c:
2872 Re-introduce changes accidentally removed in Richard Sandiford's
2873 2000-12-05's patch.
2874 * config/mn10300/t-mn10300 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
2875 Re-instate am33-2 lost in merge from net GCC.
2876 2000-08-26 Alexandre Oliva <aoliva@redhat.com>
2877 * config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Added
2878 floating-point registers.
2879 2000-08-07 Alexandre Oliva <aoliva@redhat.com>
2880 * config/mn10300/mn10300.md (movdf): Revert some am33-specific
2881 pessimizations that had gone in on 2000-05-08.
2882 2000-06-28 Graham Stott <grahams@cygnus.co.uk>
2883 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Fix typo.
2884 2000-06-22 Graham Stott <grahams@cygnus.co.uk>
2885 * config/mn10300/mn10300.md (movqi): Use nonimmediate_operand for
2886 operand 0.
2887 * (movhi): Likewise.
2888 * (movsi): Likewise.
2889 * (movsf): Likewise.
2890 * (movdi): Likewise.
2891 * (movdf): Likewise.
2892 Wed May 24 13:16:09 2000 Alexandre Oliva <aoliva@cygnus.com>
2893 * config/mn10300/mn10300.c (fp_regs_to_save): New function.
2894 (can_use_return_insn, initial_offset): Add fp_regs_to_save.
2895 (expand_prologue, expand_epilogue): Save and restore FP regs.
2896 2000-05-20 Alexandre Oliva <aoliva@cygnus.com>
2897 * config/mn10300/mn10300.md (movdi, movdf): 64-bit clean-up.
2898 2000-05-13 Alexandre Oliva <aoliva@cygnus.com>
2899 * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2, addsf3,
2900 subsf3, mulsf3, divsf3, fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4):
2901 Do not clobber cc0.
2902 2000-05-12 Alexandre Oliva <aoliva@cygnus.com>
2903 * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2):
2904 Discourage the two-argument, longer opcodes.
2905 (addsf3, subsf3, mulsf3, divsf3): Likewise for three-argument
2906 ones.
2907 * config/mn10300/mn10300.h (struct mn10300_cc_status_mdep): New.
2908 (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Define.
2909 * config/mn10300/mn10300.md (cmpsf): New pattern.
2910 (branch): Test mdep.fpCC and output fbCC.
2911 * config/mn10300/mn10300.c (print_operand): Output conditions.
2912 (notice_cc_update): Recognize fcmp and set mdep.fpCC.
2913 2000-05-10 Alexandre Oliva <aoliva@cygnus.com>
2914 * config/mn10300/mn10300.md (movsf, movdf, addsf3, subsf3,
2915 mulsf3, divsf3): Use the `F' constraint for FP values.
2916 * config/mn10300/mn10300.c (const_1f_operand): New function.
2917 * config/mn10300/mn10300-protos.h (const_1f_operand): Declare.
2918 * config/mn10300/mn10300.md (sqrtsf2): New expand.
2919 (rsqrtsf2): New insn.
2920 2000-05-09 Alexandre Oliva <aoliva@cygnus.com>
2921 * config/mn10300/mn10300.md (movdf): Oops, I missed it in my
2922 previous check-in.
2923 2000-05-08 Alexandre Oliva <aoliva@cygnus.com>
2924 * config/mn10300/mn10300.md (abssf2, negdf2): On
2925 TARGET_AM33_2, expand to...
2926 (abssf2_am33_2, negdf2_am33_2): New insns.
2927 (addsf3, subsf3, mulsf3, divsf3): Likewise.
2928 (fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4): Likewise.
2929 * config/mn10300/mn10300.md (movqi, movhi, movsi, movsf,
2930 movdi, movdf): Added FP regs.
2931 * invoke.texi (-mam33-2, -mno-am33-2): Document.
2932 2000-04-29 Alexandre Oliva <aoliva@cygnus.com>
2933 * config/mn10300/mn10300.h (FIRST_FP_REGNUM, LAST_FP_REGNUM):
2934 New macros.
2935 (REGNO_AM33_2_FP_P): Renamed to...
2936 (REGNO_FP_P): Redefine in terms of FIRST_* and LAST_*.
2937 (CONDITIONAL_REGISTER_USAGE, REGNO_REG_CLASS): Likewise.
2938 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
2939 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Remove FP
2940 regs from GENERAL_REGS.
2941 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
2942 * config/mn10300/mn10300.h (REGNO_AM33_2_FP_P): New macro.
2943 * config/mn10300/mn10300.c (mn10300_address_cost): Added FP_REGS.
2944 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Added FP_REGS.
2945 2000-04-23 Alexandre Oliva <aoliva@cygnus.com>
2946 * config/mn10300/mn10300.h (CLASS_CANNOT_CHANGE_SIZE): Defined
2947 as FP_REGS.
2948 2000-04-21 Alexandre Oliva <aoliva@cygnus.com>
2949 * config/mn10300/mn10300.h (OK_FOR_Q): New macro.
2950 (EXTRA_CONSTRAINT): Added OK_FOR_Q.
2951 * config/mn10300/mn10300.c (secondary_reload_class): Adjust.
2952 * config/mn10300/mn10300.c (print_operand): Support `D' for doubles.
2953 * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Adjust.
2954 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER): Added
2955 AM33/2.0 floating-point registers.
2956 (CONDITIONAL_REGISTER_USAGE): Adjust.
2957 (enum reg_class, REG_CLASS_NAMES): Added FP_REGS and FP_ACC_REGS.
2958 (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Adjust.
2959 (REG_CLASS_FROM_LETTER): Added `f' and `A'.
2960 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Adjust.
2961 * config/mn10300/t-mn10300 (MULTILIB_OPTIONS): Added am33-2.
2962 (MULTILIB_DIRNAMES): Likewise.
2963 * config/mn10300/mn10300.h (CPP_SPEC): Define `__AM33__=2' and
2964 `__AM33_2__' when `-mam33-2' is given.
2965 (TARGET_AM33_2): Define.
2966 (TARGET_SWITCHES): Adjust.
2967 * config/mn10300/mn10300.c (asm_file_start): Print `.am33_2'
2968 when appropriate.
2969
2ff16718
MK
29702003-07-09 Matt Kraai <kraai@alumni.cmu.edu>
2971
2972 * doc/install.texi: Add missing @.
2973
a7bda3d5
BW
29742003-07-09 Bob Wilson <bob.wilson@acm.org>
2975
2976 * config/xtensa/xtensa.h (CRT_CALL_STATIC_FUNCTION): Define.
2977
bb498ea3
AH
29782003-07-09 Aldy Hernandez <aldyh@redhat.com>
2979
2980 PR/11144
2981 * config/i386/i386.c (ix86_function_arg_boundary): Remove abort.
2982
a401fd60
NN
29832003-07-09 Nathanael Nerode <neroden@gcc.gnu.org>
2984
21f3dbfc 2985 PR bootstrap/11043
6b88314c 2986 * config/arc/t-arc: Replace bogus references to "x-crtinit.o",
21f3dbfc
NN
2987 "x-crtfini.o" with "crtinit.o", "crtfini.o".
2988
15e4ea18
NN
2989 * fixinc/inclhack.def (limits_ifndefs): Add select test.
2990 * fixinc/fixincl.x: Rebuild.
2991
a401fd60
NN
2992 * fixinc/inclhack.def (math_exception): Improve bypass and comment.
2993 * fixinc/fixincl.x: Rebuild.
2994
c2f82a84
HPN
29952003-07-09 Hans-Peter Nilsson <hp@bitrange.com>
2996
2997 * doc/install.texi (Configuration): Document the valgrind option
2998 to --enable-checking.
2999
1f66e2a0
JH
3000Wed Jul 9 16:16:30 CEST 2003 Jan Hubicka <jh@suse.cz>
3001
3002 * objc-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
3003
d0974745
RO
30042003-07-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3005
3006 * c-lex.c (cb_ident): Cast cstr.text to const char *.
3007
160e2e4f
NS
30082003-07-09 Nathan Sidwell <nathan@codesourcery.com>
3009
3010 * gcov-io.h: Update documentation.
3011 (GCOV_GRAPH_SUFFIX, GCOV_GRAPH_MAGIC): Rename to GCOV_NOTE_SUFFIX,
3012 GCOV_NOTE_MAGIC.
3013 (GCOV_DATA_SUFFIX, GCOV_NOTE_SUFFIX): Update.
3014 (GCOV_DATA_MAGIC, GCOV_NOTE_MAGIC): Make non-palindromic.
3015 (struct gcov_var): Change buffer's type. Add endian flag.
3016 (gcov_open): Remove mode in libgcov.
3017 (gcov_magic): Prototype.
3018 * gcov-io.c (from_file): New.
3019 (gcov_open): Clear endian flag.
3020 (gcov_magic): New.
3021 (gcov_write_bytes, gcov_read_bytes): Return gcov_unsigned_t
3022 pointers.
3023 (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
3024 gcov_write_tag, gcov_write_length, gcov_write_tag_length): Update.
3025 (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Update.
3026 * gcov-iov.c (main): Correct cast.
3027 * coverage.c (read_counts_file): Use gcov_magic. Remove endianness
3028 conversion.
3029 (gcov_begin_output): Use GCOV_NOTE_MAGIC.
3030 (coverage_init): Use GCOV_NOTE_SUFFIX.
3031 * libgcov.c (gcov_version_mismatch): Remove endianness conversion.
3032 Rename to gcov_version, and return flag.
3033 (gcov_exit): Use gcov_version.
3034 (__gcov_init): Use gcov_version.
3035 * Makefile.in (coverageexts): Update.
3036 * gcov.c (print_version): Remove endianness conversion.
3037 (create_file_names): Use GCOV_NOTE_SUFFIX.
3038 (read_graph_file): Use gcov_magic.
3039 (read_count_file): Likewise.
3040 * gcov-dump.c (dump_file): Remove endianness conversion, use
3041 gcov_magic.
3042
83599948
NS
30432003-07-09 Nathan Sidwell <nathan@codesourcery.com>
3044
3045 * configure.in (BUILD_PREFIX, BUILD_PREFIX_1): Set if enable
3046 coverage is on.
3047 * configure: Regenerated.
3048 * Makefile.in (ALL_CFLAGS): Correct its comment.
3049
d17811fd
MM
30502003-07-08 Mark Mitchell <mark@codesourcery.com>
3051
3052 * fold-const.c (make_range): Do not access operand 1 for a
3053 zero-operand operator.
3054
28786366
NB
30552003-07-09 Neil Booth <neil@daikokuya.co.uk>
3056
3057 * toplev.c (warn_dummy, W_options): Die.
3058 (display_help): Don't print W_options.
3059 * common.opt: Add W_options help from toplev.c.
3060
fbdb0453
AJ
30612003-07-09 Andreas Jaeger <aj@suse.de>
3062
3063 * opts.c (wrap_help): Only pass int arguments as arguments to
3064 printf's '*' modifier. Change argument of function.
3065
c80e4c17
MK
30662003-07-08 Matt Kraai <kraai@alumni.cmu.edu>
3067
3068 * doc/invoke.texi: Fix misspelling of "@item".
3069
2c5a64c6
KH
30702003-07-08 Kazu Hirata <kazu@cs.umass.edu>
3071
3072 * config/i386/i386.md: Remove an old comment about
3073 NOTICE_UPDATE_CC.
3074
a194aa56
JH
3075Wed Jul 9 03:00:10 CEST 2003 Jan Hubicka <jh@suse.cz>
3076
3077 * cgraph.c (cgraph_node_name): New function.
3078 (dump_cgraph): Use it.
3079 * cgraph.h (cgraph_dump_file): Declare.
3080 (cgraph_node_name): Declare.
3081 * cgraphunit.c: Include timevar.h
3082 (cgraph_finalize_compilation_unit): Use timevar; reorganize dumps.
3083 (cgraph_optimize_function): Use TV_INTEGRATION.
3084 (cgraph_mark_local_functions): reorganize dumps.
3085 (cgraph_mark_functions_to_inline_once): Likewise.
3086 (cgraph_optimize): Likewise; use timevar.
3087 * timevar.def (TV_CGRAPH, TV_CGRAPHOPT): New.
3088 * toplev.c (dump_file_index): Add DFI_cgraph.
3089 (dump_file_info): Likewise.
3090 (cgraph_dump_file): New global variable.
3091 (do_compile): Open and close cgraph dump.
3092 * invoke.texi (-d): Document new flag; renumber.
3093
8af61113
RS
30942003-07-08 Roger Sayle <roger@eyesopen.com>
3095
3096 PR c/11370
3097 * calls.c (emit_call_1): Don't bother popping the arguments off of
3098 the stack after a noreturn function call; The adjustment is dead.
3099 (expand_call): Likewise.
3100
436bcda1
GK
31012003-07-08 Geoffrey Keating <geoffk@apple.com>
3102
3103 * expr.c (MOVE_MAX_PIECES): Move from here...
3104 * defaults.h (MOVE_MAX_PIECES): ... to here.
3105
6f3fcc0b
MK
31062003-07-08 Matt Kraai <kraai@alumni.cmu.edu>
3107
3108 * Makefile.in (stage1-start): Handle an empty SUBDIRS.
3109
ec049fdb
KG
31102003-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3111
3112 * genattr.c (internal_dfa_insn_code): Don't prototype.
3113 * genattrtab.c (attr_desc): Add `static_p' field.
3114 (expand_units): Make blockage range and ready cost functions
3115 static.
3116 (write_attr_get): Don't add extern prototypes in C file. Mark
3117 static functions as appropriate.
3118 (find_attr, make_internal_attr): Initialize static_p.
3119 * genattrtab.h (ATTR_STATIC): New macro.
3120 * genautomata.c (output_internal_reset_func): Mark output function
3121 as inline.
3122 (make_internal_dfa_insn_code_attr): Mark output function as static.
3123
11597bc9
KG
31242003-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3125
3126 * genattrtab.h: Add new macros for attr `special' flags.
3127 * genattrtab.c (attr_desc): Reorder/resize fields better.
3128 Use attr `special' macros in all calls to make_internal_attr.
3129 * genautomata.c: Likewise.
3130
084c1779
JH
3131Wed Jul 9 02:25:39 CEST 2003 Jan Hubicka <jh@suse.cz>
3132
3133 * c-common.c (c_estimate_num_insns_1): New static function.
3134 (c_estimate_num_insns): New global function.
3135 * c-common.h (DECL_NUM_STMTS): Rename to...
3136 (DECL_ESTIMATED_INSNS): ... this.
3137 (c_estimate_num_insns): Declare.
3138 * c-decl.c (duplicate_decls): Use DECL_ESTIMATED_INSNS.
3139 * c-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
3140 * c-semantics.c (add_stmt): Do not account statements.
3141 * langhooks-def.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS):
3142 New.
3143 * langhooks.h (lang_hooks_for_tree_inlining): Add
3144 estimate_num_insns
3145 * params.def (max-inline-insns-auto, max-inline-insns-auto): set
3146 to 100.
3147 (max-inline-insns): set to 300.
3148 (min-inline-insns): set to 10.
3149 * tree-inline.c (struct inline_data): Rename inlined_stmts to
3150 inlined-insns.
3151 (INSNS_PER_STMT): Kill.
3152 (inlinable_function_p): Compute and store body size.
3153 (expand_call_inline): Likewise.
3154 (optimize_inline_calls): Likewise.
3155
1b1838b6
JW
31562003-07-08 James E Wilson <wilson@tuliptree.org>
3157
3158 PR target/10021
3159 * emit-rtl.c (set_mem_attribute_minus_bitpos): When handle ARRAY_REF,
3160 loop over new variable t2 instead of t.
3161
81a6341d
DS
31622003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
3163
3164 PR bootstrap/11455
3165 * config/i386/winnt.c: Replace use of error(), warning() with
3166 error_with_decl(), warning_with_decl(), throughout.
3167
21789816
NB
31682003-07-08 Neil Booth <neil@daikokuya.co.uk>
3169
3170 * opts.c (wrap_help): Use unsigned int, not size_t.
3171
f6423302
SC
31722003-07-08 Stephane Carrez <stcarrez@nerim.fr>
3173
3174 * config/m68hc11/m68hc11.h (HAVE_AS_DWARF2_DEBUG_LINE): Don't define
3175 as .file/.loc directives are incompatible with linker relaxation.
3176
ab747408
ZW
31772003-07-08 Zack Weinberg <zack@codesourcery.com>
3178
3179 * Makefile.in (fixinc.sh): Remove gnu-regex.[ch] from dependencies.
3180 * fixinc/Makefile.in: Remove all references to gnu-regex.[och].
3181 * fixinc/fixfixes.c, fixinc/fixincl.c, fixinc/fixlib.c
3182 * fixinc/fixtests.c: Use xregexec not regexec, xregcomp not regcomp.
3183 * fixinc/fixlib.h: Include xregex.h not gnu-regex.h.
3184 * fixinc/inclhack.def (hpux10_cpp_pow_inline, hpux11_cpp_pow_inline):
3185 Escape { and } characters which are not part of range expressions.
3186 * fixinc/fixincl.x: Regenerate.
a27531fb 3187 * fixinc/gnu-regex.c, fixinc/gnu-regex.h: Delete file.
ab747408 3188
51657442
SB
31892003-07-08 Steven Bosscher <steven@gcc.gnu.org>
3190
3191 PR c/1687
3192 * tree-inline.c (find_alloca_call): Use
3193 walk_tree_without_duplicates, instead of walk_tree.
3194 (find_builtin_longjmp_call): Likewise.
3195 * c-objc-common.c (c_cannot_inline_fn): Likewise.
3196 * c-semantics.c (find_reachable_label): Likewise.
3197
7e6dc358
JJ
31982003-07-08 Jakub Jelinek <jakub@redhat.com>
3199
3200 PR c/11420
3201 * config/i386/i386.c (ix86_check_movabs): New function.
3202 * config/i386/i386-protos.h (ix86_check_movabs): New prototype.
3203 * config/i386/i386.md (movabs[shqd]i_1_rex64): Kill broken alternative.
3204 (movabs[shqd]i_[12]_rex64): Add ix86_check_movabs check to conditions.
3205
318b7749
CD
32062003-07-08 Chris Demetriou <cgd@broadcom.com>
3207
3208 * Makefile.in (install-po): Cope with empty CATALOGS.
3209
b8898790
RS
32102003-07-08 Richard Sandiford <rsandifo@redhat.com>
3211
3212 * config/mips/elf64.h (TARGET_ASM_UNIQUE_SECTION): Delete.
3213 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
3214 (SECTION_FUNCTION_TEMPLATE): Delete.
3215 * config/mips/elf.h: As for elf64.h.
3216 (ASM_OUTPUT_ALIGNED_BSS): Use named_section rather than sbss_section.
3217 * config/mips/linux.h: As for elf.h
3218 * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
3219 * config/mips/iris6.h (EXTRA_SECTIONS): Delete.
3220 (EXTRA_SECTION_FUNCTIONS): Remove sdata_section. Remove the handling
3221 of in_sdata from current_section_name and current_section_flags.
3222 * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
3223 * config/mips/mips.h (sdata_section, sbss_section): Remove prototypes.
3224 (MASK_GP_OPT, TARGET_GP_OPT): Delete.
3225 (MASK_NO_FUSED_MADD): Use MASK_GP_OPT's old value.
3226 (TARGET_SWITCHES): Neuter gpOPT, gpopt, no-gpOPT and no-gpopt.
3227 (SMALL_DATA_SECTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
3228 * config/mips/mips.c (TARGET_IN_SMALL_DATA_P): Override.
3229 (TARGET_SECTION_TYPE_FLAGS): Override if TARGET_IRIX6.
3230 (mips_classify_symbol): Use SYMBOL_REF_SMALL_P.
3231 (override_options): Remove setting of MASK_GPOPT.
3232 (mips_output_external): Use mips_in_small_data_p to check whether a
3233 symbol needs an .extern directive. Don't emit such directives for
3234 TARGET_EXPLICIT_RELOCS.
3235 (mips_declare_object): Update accordingly.
3236 (mips_select_rtx_section): Call named_section rather than
3237 SMALL_DATA_SECTION.
3238 (mips_select_section): Use default_elf_section_section for everything
3239 except .text string constants.
3240 (mips_in_small_data_p): New function.
3241 (mips_encode_section_info): Remove small data handling.
3242 (mips_unique_section): Delete.
3243 (iris6_section_type_flags): New function.
3244 * doc/tm.texi: Remove documentation of -mgpopt and -mhalf-pic.
3245
f5d1c3de
JDA
32462003-07-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3247
3248 PR Target/11453
3249 * pa.md: Disparage all mtsar constraints.
3250 (extzv, extv, insv): Don't fail on length of {32|64}.
3251
ce1bb65b
ZW
32522003-07-08 Zack Weinberg <zack@codesourcery.com>
3253
3254 * system.h: Poison MAP_CHARACTER.
3255 * config/i370/i370-protos.h (mvs_map_char): Delete.
3256 * config/i370/i370.c (ascebc, ebcasc, mvs_map_char): Delete.
3257 * config/i370/i370.h (MAP_CHARACTER): Delete definition.
3258 (ASM_OUTPUT_ASCII): Don't use MAP_CHARACTER.
3259
c163ddca
DS
32602003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
3261
3262 * toplev.c (randomize): Correct call to time().
3263
8df63efa
JJ
32642003-07-08 Jakub Jelinek <jakub@redhat.com>
3265
3266 * unroll.c (reg_dead_after_loop): Check for reg in REG_EQUAL and
3267 REG_EQUIV notes as well.
3268
4b5cc2b3
KH
32692003-07-08 Kazu Hirata <kazu@cs.umass.edu>
3270
3271 * doc/md.texi: Fix the description of addmodecc.
3272
56694dd9
ZW
32732003-07-07 Zack Weinberg <zack@codesourcery.com>
3274
3275 * Makefile.in (top_builddir): Set to "..", not ".".
3276 (INTLLIBS, INTLDEPS): Delete.
3277 (LIBINTL, LIBINTL_DEP, LIBICONV_DEP): New variables to be substituted.
3278 (LIBDEPS): Add $(LIBICONV_DEP).
3279 (LIBS): Take out $(INTLLIBS), add $(LIBINTL) and $(LIBICONV).
3280 (INCLUDES): Replace -I../intl with @INCINTL@.
3281 ($(top_builddir)/intl/libintl.a): Delete rule.
3282 (stage2-start, stage3-start, stage4-start, stageprofile-start,
3283 stagefeedback-start): Use $$ for variable to be evaluated by
3284 shell, not make.
3285 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT,
3286 HAVE_LC_MESSAGES, HAVE_STPCPY): Delete.
3287 * aclocal.m4: sinclude ../config/progtest.m4. Add
3288 contents of lcmessage.m4 from gettext distro.
3289 * configure.in: Check for wchar.h and setlocale. Set
3290 LIBICONV_DEP to the empty string and substitute it.
3291 Call AM_LC_MESSAGES. Delete AC_ARG_ENABLE for --enable-nls;
3292 this is handled elsewhere. Use ZW_GNU_GETTEXT_SISTER_DIR,
3293 not CY_GNU_GETTEXT. Clear $LIBICONV if its text is included
3294 in $LIBINTL, to avoid linking it twice.
3295 * configure, config.in: Regenerate.
3296
a294c4cf
NN
32972003-07-08 Nathanael Nerode <neroden@gcc.gnu.org>
3298
3299 * fixinc/mkfixinc.sh: Remove winnt support.
3300 * fixinc/fixinc.winnt: Delete with extreme prejudice.
3301
979312a4
NB
33022003-07-08 Neil Booth <neil@daikokuya.co.uk>
3303
3304 * Makefile.in: Update.
3305 * c-opts.c (c_common_handle_option): opt_text now contains the '-'.
3306 * c.opt: Update documentation.
3307 * common.opt: Add some help text.
3308 * opts.c: Include intl.h.
3309 (wrap_help, print_help): New.
3310 (find_opt, handle_option, common_handle_option): opt_text now
3311 contains the '-'. Use print_help to output help.
3312 * opts.h (struct cl_option): New member "help".
3313 * opts.sh: Update to handle help text output and to prepend
3314 options with '-'.
3315 * toplev.c (display_help): Remove some help text.
3316
2c4a9cff
DE
33172003-07-07 David Edelsohn <edelsohn@gnu.org>
3318 Fariborz Jahanian <fjahanian@apple.com>
3319
3320 * configure.in: Test for PowerPC mfcr field support in assembler.
3321 * config.in, configure: Regenderated.
3322
3323 * config/rs6000/power4.md: Add mfcrf reservation.
3324 * config/rs6000/rs6000-protos.h (mfcr_operation): Declare.
3325 * config/rs6000/rs6000.c (mfcr_operation): Define.
3326 (print_operand): Add 'Q' case for mfcrf.
3327 * config/rs6000/rs6000.h (TARGET_MFCRF): New.
3328 * config/rs6000/rs6000.md (attribute "type"): Add mfcrf.
3329 (movcc_internal1): Emit optional field operand for mfcr and set
3330 "type" attribute appropriately.
3331 (mfcr SCC): Likewise.
3332 (movesi_from_cr_one): New.
3333
923c4cf2
RS
33342003-07-07 Roger Sayle <roger@eyesopen.com>
3335
3336 * config/i386/i386.md: Correct check-in of incorrect version.
3337
75b6f3fd
KG
33382003-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3339
3340 * bitmap.c (debug_bitmap_file): Merge uses of HOST_PTR_PRINTF with
3341 adjacent stdio calls.
3342 * c-decl.c (c_print_identifier): Likewise.
3343 * mips-tfile.c (write_varray, write_object, allocate_cluster): Likewise.
3344 * print-rtl.c (print_rtx): Likewise.
3345 * print-tree.c (print_node_brief, print_node): Likewise.
3346 * system.h (HOST_PTR_PRINTF): Ensure we have a literal string.
56694dd9 3347
75b6f3fd
KG
3348 * configure.in (AC_COMPILE_CHECK_SIZEOF): Check for `void *'.
3349 * config.in, configure: Regenerated.
3350
afeeac3f
RS
33512003-07-07 Roger Sayle <roger@eyesopen.com>
3352
3353 PR target/10979
3354 * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
3355 Changed to define_expand patterns that copy operand[1] to prevent
3356 it from being clobbered before emitting an atan2?f3_1 insn.
3357 (atan2df3_1, atan2sf3_1, atan2xf_1, atan2tf3_1): New define_insn
3358 patterns that actually specify the behaviour of x87's FPATAN.
3359
eeff9307
JJ
33602003-07-07 Jakub Jelinek <jakub@redhat.com>
3361
3362 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Remove bogus
3363 clearing of SYMBOL_FLAG_LOCAL bit.
3364 If vcall_offset fits into signed 16-bit immediate, use
3365 one instruction for both addition and load.
3366
0fcd5dda
NB
33672003-07-07 Neil Booth <neil@daikokuya.co.uk>
3368
3369 * opts.c (common_handle_option): Correct handling of the
3370 -falign- switches that do and don't take an argument.
3371
b275810a
KH
33722003-07-07 Kazu Hirata <kazu@cs.umass.edu>
3373
3374 * config/h8300/h8300.md (pushqi1_h8300hs): Revert my patch
3375 today.
3376 (pushhi1_h8300hs): Likewise.
3377
5671bf27
AJ
33782003-07-07 Andreas Jaeger <aj@suse.de>
3379
3380 * genextract.c: Convert remaining prototypes to ISO C90.
3381
3382 * cpplex.c (_cpp_free_buff): Convert prototype to ISO C90.
3383 * fold-const.c (fold_single_bit_test): Likewise.
3384 * diagnostic.c (default_diagnostic_finalizer): Likewise.
3385 * cfgrtl.c (rtl_redirect_edge_and_branch): Likewise.
3386
3387 * gengtype.c (write_array): Generate ISO C90 prototypes.
3388
3389 * genflags.c (gen_proto): Generate ISO C90 prototypes.
3390
2c430630
RS
33912003-07-07 Roger Sayle <roger@eyesopen.com>
3392
3393 PR optimization/11059
3394 * expr.c (can_store_by_pieces): Return true if length is zero.
3395 (store_by_pieces): If length is zero and endp is two, abort,
3396 othwerise, if length is zero and endp is not two, return "to".
3397 (clear_by_pieces): Do nothing if length is zero.
3398 (clear_storage): Do nothing if length is zero.
3399 (store_constructor): Simplify code when size is zero, or the
3400 target has already been cleared. This avoids emitting a
3401 blockage instruction when initializing empty structures.
3402
cf633f5b
AJ
34032003-07-07 Andreas Jaeger <aj@suse.de>
3404
3405 * mips-tfile.c: Convert prototypes to ISO C90.
3406 * mips-tdump.c: Convert prototypes to ISO C90.
3407
0cea056b
NS
34082003-07-07 Nathan Sidwell <nathan@codesourcery.com>
3409
3410 * rtl.h (emit_line_note): Take a location_t.
3411 (emit_line_note_force): Remove.
3412 (set_file_and_line_for_statement): Take a location_t.
3413 * tree.g (emit_line_note): Take a location_t.
3414 * emit-rtl.c (emit_line_note): Take a location_t.
3415 (emit_line_note_force): Remove.
3416 * function.c (init_function_start): Adjust emit_line_note call.
3417 (expand_function_end): Use force_next_line_note, not
3418 emit_line_note_force.
3419 * c-parse.in (maybe_type_qual): Adjust emit_line_note calls.
3420 * c-semantics.c (genrtl_do_pushlevel, genrtl_goto_stmt,
3421 genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
3422 genrtl_while_stmt, genrtl_do_stmt_1, genrtl_return_stmt,
3423 genrtl_for_stmt, genrtl_break_stmt, genrtl_continue_stmt,
3424 genrtl_continue_stmt, genrtl_switch_stmt,
3425 genrtl_asm_stmt): Likewise.
3426 * expr.c (expand_expr): Likewise.
3427 * integrate.c (expand_inline_function): Likewise.
3428 * stmt.c (set_file_and_line_for_stmt): Take a location_t.
3429 (expand_decl_init): Adjust emit_line_note call.
3430
8eb910fc
DJ
34312003-07-07 Dale Johannesen <dalej@apple.com>
3432
56694dd9 3433 * config/rs6000/darwin-tramp.asm: Fix trampolines. PR 10900.
8eb910fc 3434
b96a374d
AJ
34352003-07-07 Andreas Jaeger <aj@suse.de>
3436
3437 * config/i386/i386-protos.h: Convert prototypes to ISO C90.
3438 * config/i386/i386.c: Likewise.
3439
273fc01e
KH
34402003-07-07 Kazu Hirata <kazu@cs.umass.edu>
3441
3442 * config/h8300/h8300.md: Use gen_int_mode instead of
3443 GEN_INT (trunc_int_for_mode (...)).
3444
fb7d7712
KH
34452003-07-07 Kazu Hirata <kazu@cs.umass.edu>
3446
3447 * config/h8300/h8300.md (pushqi1_h8300hs): Optimize by pushing
3448 2 bytes and then subtract 2 from the stack pointer.
3449 (pushhi1_h8300hs): Likewise.
3450
e61a2eb7
NS
34512003-07-07 Nathan Sidwell <nathan@codesourcery.com>
3452
3453 * configure.in (enable_coverage): Remove -DSELF_COVERAGE, add
3454 -frandom-seed.
3455 * configure: Regenerated.
3456 * Makefile.in: Remove extraneous comment.
3457 * toplev.c (randomize): Protect against potential multiple calls.
3458 * doc/invoke.texi (-frandom-seed): Document use for in coverage
3459 files.
3460
82d610ec 34612003-07-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
56694dd9 3462 Eric Botcazou <ebotcazou@libertysurf.fr>
82d610ec
RK
3463
3464 PR optimization/11198
3465 * alias.c (objects_must_conflict_p): Return 1 if the types have
3466 the same alias set, not if the alias sets only conflict.
3467
5beadb33
AP
34682003-07-07 Andrew Pinski <pinskia@physics.uc.edu>
3469
3470 * cppcharset.c (ICONV_CONST): Define iff !HAVE_ICONV.
3471 (convert_cset): Change inbuf to type ICONV_CONST char.
3472 * Makefile.in (LIBS): Add LIBICONV.
3473
9bb34f3c
AJ
3474 * doc/invoke.texi (-falign-functions): Document that
3475 when n is zero then a machine-dependent default is used.
3476 (-falign-labels): Document that when n is zero then a
3477 machine-dependent default is used and that -falign-labels =1
3478 is equivalent to -fno-align-labels.
3479 (-falign-loops): Likewise.
3480 (-falign-jumps): Likewise.
3481
1dbb6ce8
AH
34822003-07-06 Art Haas <ahaas@airmail.net>
3483
3484 * f/global.c (ffeglobal_type_string_): Fix obsolete GCC array
3485 initializer syntax.
3486
8338d44d
JW
34872003-07-06 James E Wilson <wilson@tuliptree.org>
3488
3489 PR optimization/9812
3490 * rtl.h (mem_for_const_double): Delete prototype.
3491 * varasm.c (mem_for_const_double): Delete function.
3492 * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68kelf.h,
3493 config/m68k/m68kv4.h, config/m68k/netbsd-elf.h
3494 (LEGITIMATE_PIC_OPERAND_P): Delete duplicate definitions.
3495 * config/m68k/m68k.h (LEGITIMATE_CONSTANT_P): Disallow XFmode.
3496 (LEGITIMATE_PIC_OPERAND_P): Delete CONST_DOUBLE tests.
3497 * config/m68k/m68k.md (movxf): Add reload_in_progress guard. Add
3498 comment about confused support for XFmode constants.
3499
9efd34a5
JH
3500Mon Jul 7 02:03:56 CEST 2003 Jan Hubicka <jh@suse.cz>
3501
3502 * cfglayout.c (fixup_reorder_chain): Call delete_dead_jumptables.
3503
2a43945f
KH
35042003-07-06 Kazu Hirata <kazu@cs.umass.edu>
3505
3506 * config/h8300/h8300.c: Fix comment typos.
3507 * config/h8300/h8300.md: Likewise.
3508 * config/i386/athlon.md: Likewise.
3509 * config/i386/i386.c: Likewise.
3510 * config/i386/pentium.md: Likewise.
3511 * config/ia64/ia64.c: Likewise.
3512 * config/ia64/itanium1.md: Likewise.
3513 * config/ia64/itanium2.md: Likewise.
3514 * config/m32r/m32r.md: Likewise.
3515 * config/m68hc11/m68hc11.c: Likewise.
3516 * config/mcore/mcore.c: Likewise.
3517 * config/mips/sr71k.md: Likewise.
3518 * config/mips/t-iris5-as: Likewise.
3519 * config/mmix/mmix.h: Likewise.
3520 * config/ns32k/ns32k.h: Likewise.
3521 * config/ns32k/NOTES: Fix a typo.
3522
ceee09f7
AJ
35232003-07-06 Andreas Jaeger <aj@suse.de>
3524
7e51717c
AJ
3525 * stmt.c: Convert remaining prototypes to ISO C90.
3526 * cfglayout.c: Likewise.
3527 * dbxout.c: Likewise.
3528 * gcc.c: Likewise.
3529 * genemit.c: Likewise.
3530
ceee09f7
AJ
3531 * basic-block.h: Convert prototypes to ISO C90.
3532 * c-parse.in: Likewise.
3533 * c-pragma.h: Likewise.
3534 * c-typeck.c: Likewise.
3535 * cfghooks.h: Likewise.
3536 * cfgloopanal.c: Likewise.
3537 * dbxout.h: Likewise.
3538 * debug.h: Likewise.
3539 * dwarf2asm.h: Likewise.
3540 * gcov.c: Likewise.
3541 * gengtype-lex.l: Likewise.
3542 * sched-int.h: Likewise.
3543 * timevar.c: Likewise.
3544
cb66e385
NB
35452003-07-06 Neil Booth <neil@daikokuya.co.uk>
3546
3547 * c-common.h (c_comon_handle_filename,
3548 c_common_missing_arguement): New.
3549 * c-lang.c (LANG_HOOKS_HANDLE_FILENAME,
3550 LANG_HOOKS_MISSING_ARGUMENT): New.
3551 * c-opts.c (missing_arg): Rename c_common_missing_argument,
3552 update to be an appropriate langhook.
3553 (c_common_handle_option): Don't handle filenames.
3554 (c_common_handle_filename): New.
3555 * hooks.c (hook_void_constcharptr,
3556 hook_bool_constcharptr_size_t_false): New.
3557 * hooks.h (hook_void_constcharptr,
3558 hook_bool_constcharptr_size_t_false): New.
3559 * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME,
3560 LANG_HOOKS_MISSING_ARGUMENT): New.
3561 (LANG_HOOKS_INITIALIZER): Update.
3562 * langhooks.h (struct lang_hooks): Add handle_filename and
3563 missing_argument.
3564 * opts.c (handle_option): Don't handle filenames here, but ...
3565 (handle_options): ... here.
3566 (common_handle_option): Don't handle missing arguments here.
3567 * objc/objc-lang.c (LANG_HOOKS_HANDLE_FILENAME,
3568 LANG_HOOKS_MISSING_ARGUMENT): New.
3569
ade4289c
NB
35702003-07-06 Neil Booth <neil@daikokuya.co.uk>
3571
3572 * Makfile.in: Remove traces of mbchar.
3573 * c-parse.in (MULTIBYTE_CHARS): Remove.
3574 * config.in (MULTIBYTE_CHARS): Remove.
3575 * configure: Remove --enable-mbchar.
3576 * configure.in: Remove --enable-mbchar.
3577 * mbchar.c, mbchar.h: Remove.
3578 * system.h: Poison MULTIBYTE_CHARS.
3579 * config/linux-aout.h (MULTIBYTE_CHARS): Remove.
3580 * config/linux.h (MULTIBYTE_CHARS): Remove.
3581 * config/svr4.h (MULTIBYTE_CHARS): Remove.
3582 * config/sparc/linux.h (MULTIBYTE_CHARS): Remove.
3583
2e1eedd6
AJ
35842003-07-06 Andreas Jaeger <aj@suse.de>
3585
11dc5cc6
AJ
3586 * varray.c (varray_check_failed): Fix typo.
3587
3588 * unroll.c: Convert prototypes to ISO C90.
2e1eedd6
AJ
3589 * varasm.c: Likewise.
3590 * varray.c: Likewise.
3591 * varray.h: Likewise.
3592 * vmsdbgout.c: Likewise.
3593 * xcoffout.c: Likewise.
3594 * xcoffout.h: Likewise.
3595
dd486eb2
NS
35962003-07-06 Nathan Sidwell <nathan@codesourcery.com>
3597
3598 * gcov-io.h: Add a local time stamp.
3599 (struct gcov_info): Add stamp field.
3600 (gcov_truncate): New.
3601 * coverage.c (read_counts_file): Skip the stamp.
3602 (coverage_begin_output): Write the stamp.
3603 (build_gcov_info): Declare and init the stamp.
3604 (coverage_finish): Only unlink data file, if stamp is zero.
3605 * gcov-dump.c (dump_file): Dump the stamp.
3606 * gcov.c (bbg_stamp): New.
3607 (release_structures): Clear bbg_stamp.
3608 (read_graph_file): Read stamp.
3609 (read_count_file): Check stamp.
3610 * libgcov.c (gcov_exit): Check stamp and truncate if needed.
3611
c07e5477
NS
36122003-07-06 Nathan Sidwell <nathan@codesourcery.com>
3613
3614 * tree.h (default_flag_random_seed): Remove.
3615 * toplev.h (local_tick): Declare.
3616 * tree.c (flag_random_seed, default_flag_random_seed): Move to
3617 toplev.c.
3618 (append_random_chars): Don't call default_flag_random_seed.
3619 * toplev.c (flag_random_seed): Define here. Set local_tick.
3620 (local_tick): Define.
3621 (randomize): New, moved from tree.c.
3622 (print_switch_values): Adjust.
3623 (toplev_main): Call randomize.
3624
2aab7ceb
NS
36252003-07-06 Nathan Sidwell <nathan@codesourcery.com>
3626
3627 * tree.h (crc32_string): Declare.
3628 * tree.c (append_random_chars): Remove.
3629 (crc32_string): New.
3630 (get_file_function_name_long): Use crc32_string here.
3631
1d088dee
AJ
36322003-07-06 Andreas Jaeger <aj@suse.de>
3633
3634 * gcc.c: Convert prototypes to ISO C90.
3635 * gcc.h: Likewise.
3636 * gcov-dump.c: Likewise.
3637 * gcov-iov.c: Likewise.
3638 * gcse.c: Likewise.
3639 * genattrtab.h: Likewise.
3640 * ggc.h: Likewise.
3641 * global.c: Likewise.
3642 * graph.c: Likewise.
3643 * graph.h: Likewise.
3644 * hosthooks.h: Likewise.
3645 * hooks.h: Likewise.
3646 * hooks.c: Likewise.
3647 * hashtable.h: Likewise.
3648 * hashtable.c: Likewise.
3649 * haifa-sched.c: Likewise.
3650 * integrate.h: Likewise.
3651 * integrate.c: Likewise.
3652 * input.h: Likewise.
3653 * ifcvt.c: Likewise.
f8ec47c7 3654 * jump.c: Likewise.
0c20a65f
AJ
3655 * langhooks-def.h: Likewise. Add extern to prototypes.
3656 * langhooks.c: Likewise.
3657 * langhooks.h: Likewise.
3658 * lcm.c: Likewise.
3659 * local-alloc.c: Likewise.
3660 * loop-init.c: Likewise.
3661 * loop-unroll.c: Likewise.
3662 * loop-unswitch.c: Likewise.
3663 * loop.c: Likewise.
3664 * loop.h: Likewise. Add extern to prototypes.
3665 * machmode.h: Likewise.
3666 * main.c: Likewise.
3667 * mbchar.c: Likewise.
3668 * mbchar.h: Likewise.
3669 * mkdeps.c: Likewise.
3670 * mkdeps.h: Likewise.
3671 * optabs.c: Likewise.
3672 * optabs.h: Likewise.
3673 * output.h: Likewise.
3674 * gccspec.c: Likwise.
3675 * postreload.c: Likewise.
3676 * prefix.c: Likewise.
3677 * prefix.h: Likewise.
3678 * print-rtl.c: Likewise.
3679 * print-tree.c: Likewise.
3680 * profile.c: Likewise.
3681 * read-rtl.c: Likewise.
3682 * real.c: Likewise.
3683 * real.h: Likewise.
3684 * recog.c: Likewise.
3685 * recog.h: Likewise.
3686 * reg-stack.c: Likewise.
3687 * regclass.c: Likewise.
3688 * regmove.c: Likewise.
3689 * regrename.c: Likewise.
3690 * regs.h: Likewise.
3691 * reload.c: Likewise.
3692 * reload.h: Likewise.
3693 * reload1.c: Likewise.
3694 * reorg.c: Likewise.
3695 * resource.c: Likewise.
3696 * resource.h: Likewise.
3697 * rtl-error.c: Likewise.
3698 * rtl.c: Likewise.
3699 * rtl.h: Likewise.
3700 * rtlanal.c: Likewise.
46c5ad27
AJ
3701 * sbitmap.c: Likewise.
3702 * sbitmap.h: Likewise.
3703 * scan-decls.c: Likewise.
3704 * scan.c: Likewise.
3705 * sched-deps.c: Likewise.
3706 * sched-ebb.c: Likewise.
3707 * sched-int.h: Likewise.
3708 * sched-rgn.c: Likewise.
3709 * sched-vis.c: Likewise.
3710 * sibcall.c: Likewise.
3711 * simplify-rtx.c: Likewise.
3712 * sreal.c: Likewise.
3713 * sreal.h: Likewise.
3714 * ssa-ccp.c: Likewise.
3715 * ssa-dce.c: Likewise.
3716 * ssa.c: Likewise.
3717 * ssa.h: Likewise.
3718 * stack.h: Likewise.
3719 * stmt.c: Likewise.
3720 * stor-layout.c: Likewise.
3721 * stringpool.c: Likewise.
3722 * target.h: Likewise.
3723 * timevar.c: Likewise.
3724 * timevar.h: Likewise.
3725 * tlink.c: Likewise.
3726 * tracer.c: Likewise.
3727 * tree-inline.c: Likewise.
3728 * tree-inline.h: Likewise.
3729 * tree.c: Likewise.
3730 * tree.h: Likewise.
1d088dee 3731
4f649bc1
KH
37322003-07-05 Kazu Hirata <kazu@cs.umass.edu>
3733
3734 * combine.c (nonzero_bits1): Fix a warning.
3735
37362003-07-05 Kazu Hirata <kazu@cs.umass.edu>
2c4a71b3
KH
3737
3738 * config/h8300/h8300.c (compute_mov_length): Correct the
3739 length of loading CONST0_RTX (SFmode).
3740
f5924ac1
NS
37412003-07-05 Nathan Sidwell <nathan@codesourcery.com>
3742
3743 * toplev.c (output_clean_symbol_name): Remove.
3744 * toplev.h (output_clean_symbol_name): Remove.
3745 * config/alpha/alpha.c (unicosmk_output_module_name): Use
3746 lbasename & clean_symbol_name.
3747
39e3f58c
KH
37482003-07-05 Kazu Hirata <kazu@cs.umass.edu>
3749
3750 * ggc.h: Follow spelling conventions.
3751 * config/i386/i386.c: Likewise.
3752 * config/i386/winnt.c: Likewise.
3753 * config/rs6000/rs6000.c: Likewise.
3754
4d6922ee
KH
37552003-07-05 Kazu Hirata <kazu@cs.umass.edu>
3756
3757 * bt-load.c: Fix comment typos.
3758 * c-incpath.c: Likewise.
3759 * cfg.c: Likewise.
3760 * cfgcleanup.c: Likewise.
3761 * cfgloop.h: Likewise.
3762 * cfgloopmanip.c: Likewise.
3763 * cfgrtl.c: Likewise.
3764 * diagnostic.h: Likewise.
3765 * dwarfout.c: Likewise.
3766 * emit-rtl.c: Likewise.
3767 * et-forest.c: Likewise.
3768 * et-forest.h: Likewise.
3769 * expr.c: Likewise.
3770 * gcse.c: Likewise.
3771 * genattr.c: Likewise.
3772 * jump.c: Likewise.
3773 * langhooks.h: Likewise.
3774 * local-alloc.c: Likewise.
3775 * loop-unroll.c: Likewise.
3776 * loop-unswitch.c: Likewise.
3777 * ra-build.c: Likewise.
3778 * regclass.c: Likewise.
3779 * regmove.c: Likewise.
3780 * rtl.def: Likewise.
3781 * rtlanal.c: Likewise.
3782 * sched-ebb.c: Likewise.
3783 * sched-rgn.c: Likewise.
3784 * simplify-rtx.c: Likewise.
3785 * ssa.c: Likewise.
3786 * tracer.c: Likewise.
3787 * tree.c: Likewise.
3788
f1c4bc4f
ZW
37892003-07-05 Zack Weinberg <zack@codesourcery.com>
3790
3791 * cppcharset.c: Use the correct return type for the fallback iconv
3792 macro.
3793
65c6f1b4
ZD
3794Sat Jul 5 16:18:53 CEST 2003 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3795
3796 Blame to Jan Hubicka <jh@suse.cz>
3797 * cfglayout.c (record_effective_endpoints): Split insns before
3798 first basic block correctly.
3799
a8f3bf52
RK
38002003-07-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3801
f1c4bc4f 3802 * expr.c (expand_expr, case COMPONENT_REF): When seeing if should use
a8f3bf52
RK
3803 bitfield operations, use STRICT_ALIGNMENT, not SLOW_UNALIGNED_ACCESS
3804 if EXPAND_CONST_ADDRESS or EXPAND_INITIALIZER.
3805
0641776c
AJ
38062003-07-05 Andreas Jaeger <aj@suse.de>
3807
3808 * genattrtab.c (write_attr_get): Revert part of last patch to
3809 always write out a prototype.
3810
3811 * genemit.c (gen_split): Readd lost unused attributes in last
3812 patch.
3813
977129f6
ZD
38142003-07-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3815
3816 * cfgloopmanip.c (force_single_succ_latches): Force latch to be
3817 different from header.
3818
5ee084df
AS
38192003-07-05 Andreas Schwab <schwab@suse.de>
3820
3821 * config/m68k/m68k.c: Remove code protected by CRDS.
3822 * config/m68k/m68k.md: Likewise.
3823
33de9573
NB
38242003-07-05 Neil Booth <neil@daikokuya.co.uk>
3825
3826 PR driver/11417
3827 * c-opts.c (permit_fortran_options): New.
3828 (c_common_init_options): Accept fortran front end options if
3829 it looks like we might be preprocessing Fortran.
3830 (c_common_handle_option): Don't reject switch if permit_fotran_options.
3831
6906ba40
KG
38322003-07-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3833
3834 * genattr.c (internal_dfa_insn_code): Output prototype.
3835 * genattrtab.c: Don't output unnecessary decls, output in ISO C.
3836 * genautomata.c: Likewise.
3837 * genconditions.c: Likewise.
3838 * genemit.c: Likewise.
3839 * genextract.c: Likewise.
3840 * gengenrtl.c: Likewise.
3841 * gengtype.c: Likewise.
3842 * genopinit.c: Likewise.
3843 * genoutput.c: Likewise.
3844 * genpeep.c: Likewise.
3845 * genrecog.c: Likewise.
3846
e6cc3a24
ZW
38472003-07-04 Zack Weinberg <zack@codesourcery.com>
3848
3849 * cpplib.h (CPP_AT_NAME, CPP_OBJC_STRING): New token types.
3850 (struct cpp_options): Add narrow_charset, wide_charset,
3851 bytes_big_endian fields. Remove EBCDIC field.
3852 (cpp_init_iconv, cpp_interpret_string): New external interfaces.
3853
3854 * cpphash.h: Include <iconv.h> if we have it, otherwise
3855 provide a dummy definition of iconv_t.
3856 (struct cpp_reader): Add narrow_cset_desc and wide_cset_desc fields.
3857 (_cpp_valid_ucn): Update prototype.
3858 (_cpp_destroy_iconv): New prototype.
3859
3860 * doc/cpp.texi: Document character set handling.
3861 * doc/cppopts.texi: Document -fexec-charset= and -fexec-wide-charset=.
3862 * doc/extend.texi: Delete entire section on multiline strings.
3863 Rewrite section on __FUNCTION__ etc now that these are
3864 variables in C.
3865
3866 * cppucnid.tab, cppucnid.pl: New files.
3867 * cppucnid.h: New generated file.
3868 * cppcharset.c: Include cppucnid.h. Lots of commentary added.
3869 (iconv_open, iconv, iconv_close): Provide dummy definitions
3870 if !HAVE_ICONV.
3871 (SOURCE_CHARSET, struct strbuf, init_iconv_desc, cpp_init_iconv,
3872 _cpp_destroy_iconv, convert_cset, width_to_mask, convert_ucn,
3873 emit_numeric_escape, convert_hex, convert_oct, convert_escape,
3874 cpp_interpret_string, narrow_str_to_charconst,
3875 wide_str_to_charconst): New.
3876 (ucn_valid_in_identifier): Use a binary search through the
3877 ucnranges table defined in cppucnid.h, not a long chain of if
3878 statements.
3879 (_cpp_valid_ucn): Add a limit pointer. Downgrade "universal
3880 character names are only valid in C++ and C99" to a warning.
3881 Issue the "meaning of \[uU] is different in traditional C"
3882 warning here. Take care not to let iconv see an invalid UCS
3883 value if we get a malformed UCN. Issue an error if we don't
3884 have iconv.
3885 (cpp_interpret_charconst): Moved here from cpplex.c. Use
3886 cpp_interpret_string to do the heavy lifting.
3887
3888 * cppinit.c (cpp_create_reader): Initialize bytes_big_endian,
3889 narrow_charset, wide_charset fields of options structure.
3890 (cpp_destroy): Call _cpp_destroy_iconv.
3891 * cpplex.c (forms_identifier_p): Adjust call to _cpp_valid_ucn.
3892 (maybe_read_ucn, hex_digit_value, cpp_parse_escape): Delete.
3893 (cpp_interpret_charconst): Moved to cppcharset.c.
3894 * cpplib.c (dequote_string): Delete.
3895 (interpret_string_notranslate): New.
3896 (do_line, do_linemarker): Use interpret_string_notranslate.
3897
3898 * Makefile.in (cppcharset.o): Depend on cppucnid.h.
3899
3900 * c-common.c (fname_string, combine_strings): Delete.
3901 * c-common.h (fname_string, combine_strings): Delete prototypes.
3902 * c-lex.c (ignore_escape_flag): Delete.
3903 (cb_ident): Use cpp_interpret_string, not lex_string.
3904 (get_nonpadding_token): New function.
3905 (c_lex): Handle Objective-C @-prefixed identifiers and strings here.
3906 Adjust calls to lex_string. Don't write *value twice.
3907 (lex_string): Now handles string constant concatenation.
3908 Most of the work handed off to cpp_interpret_string.
3909 Call fix_string_type here.
3910 * c-parse.in (STRING_FUNC_NAME, VAR_FUNC_NAME): Replace with
3911 FUNC_NAME, throughout.
3912 (OBJC_STRING): New token type.
3913 (primary:STRING): No need to call fix_string_type here.
3914 (primary:objc_string): Make that OBJC_STRING.
3915 (objc_string nonterminal): Delete.
3916 (yylexname): Delete code to handle fake string constants.
3917 (yylexstring): Delete entirely.
3918 (_yylex): Handle CPP_AT_NAME and CPP_OBJC_STRING. No need
3919 to handle CPP_ATSIGN.
3920
3921 * c.opt (-fexec-charset=, -fwide-exec-charset=): New options.
3922 * c-opts.c (missing_arg, c_common_handle_option): Handle
3923 OPT_fexec_charset_ and OPT_fwide_exec_charset_.
3924 (c_common_init): Set cpp_opts->bytes_big_endian, not
3925 cpp_opts->EBCDIC. Call cpp_init_iconv.
3926 (print_help): Document -fexec-charset= and -fexec-wide-charset=.
3927 (TARGET_EBCDIC): Delete default definition.
3928
3929 * objc/objc-act.c (build_objc_string_object): No need to
3930 handle string constant concatenation.
3931
61aeb06f
KH
39322003-07-04 Kazu Hirata <kazu@cs.umass.edu>
3933
3934 * doc/install.texi: Fix typos.
3935 * doc/invoke.texi: Likewise.
3936 * doc/tm.texi: Likewise.
3937
c1207243
KH
39382003-07-04 Kazu Hirata <kazu@cs.umass.edu>
3939
3940 * config/pa/fptr.c: Fix comment typos.
3941 * config/pa/pa-64.h: Likewise.
3942 * config/pa/pa.c: Likewise.
3943 * config/pa/pa.h: Likewise.
3944 * config/rs6000/603.md: Likewise.
3945 * config/rs6000/7xx.md: Likewise.
3946 * config/rs6000/darwin.h: Likewise.
3947 * config/rs6000/freebsd.h: Likewise.
3948 * config/rs6000/rs6000.c: Likewise.
3949 * config/rs6000/rs6000.md: Likewise.
3950 * config/rs6000/spe.h: Likewise.
3951
58add37a
UW
39522003-07-04 Ulrich Weigand <uweigand@de.ibm.com>
3953
3954 * config/s390/2064.md: Change GNU CC to GCC.
3955 * config/s390/2084.md: Likewise.
3956 * config/s390/fixdfdi.h: Likewise.
3957 * config/s390/linux.h: Likewise.
3958 * config/s390/s390-modes.def: Likewise.
3959 * config/s390/s390-protos.h: Likewise.
3960 * config/s390/s390.c: Likewise.
3961 * config/s390/s390.h: Likewise.
3962 * config/s390/s390.md: Likewise.
3963 * config/s390/s390x.h: Likewise.
3964
60cd4dae
JL
39652003-07-04 Jeff Law <law@redhat.com>
3966
a38825d2 3967 PR c/11428
60cd4dae
JL
3968 * expr.c (do_store_flag): Pass in the correct result type
3969 when calling fold_single_bit_test.
3970 * fold-const.c (fold_single_bit_test): Use result_type for the
3971 result when folding a sign bit test.
3972
5e14ae7e
NB
39732003-07-04 Neil Booth <neil@daikokuya.co.uk>
3974
3975 * opts.c (common_handle_options): Negate sense of -falign- switches.
3976
8c90b13a
L
39772003-07-04 H.J. Lu <hongjiu.lu@intel.com>
3978
c3b3975a 3979 * Makefile.in: Replace PWD with PWD_COMMAND.
8c90b13a 3980
72d4a2ad
ZD
39812003-07-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3982
3983 * cfgloopanal.c (count_strange_loop_iterations): New static function.
3984 (constant_iterations, count_loop_iterations, simple_loop_exit_p):
3985 Handle strange loops.
3986
8e9a4a45
TM
39872003-07-04 Toon Moene <toon@moene.indiv.nluug.nl>
3988
3989 * install.texi: Even the g77 manpage is derived from
3990 the full g77 manual.
3991
6eb95e99
ZW
39922003-07-04 Zack Weinberg <zack@codesourcery.com>
3993
3994 * ABOUT-NLS: Delete.
3995 * intl: Delete entire directory.
3996 * aclocal.m4: Include ../config/gettext.m4. Delete
3997 AC_ISC_POSIX, AM_LANGINFO_CODESET, jm_GLIBC21, AM_LC_MESSAGES,
3998 AM_PATH_PROG_WITH_TEST, AM_WITH_NLS, and AM_GNU_GETTEXT.
3999 * configure.in: Use CY_GNU_GETTEXT, not AM_GNU_GETTEXT.
4000 Remove intl/Makefile from all_outputs.
4001 * configure, config.in: Regenerate.
4002 * Makefile.in: Expunge all references to intl subdirectory.
4003 Add -I../intl to INCLUDES.
4004 * intl.h: Include libintl.h if and only if ENABLE_NLS is defined.
4005
bcd5d841
RS
40062003-07-04 Roger Sayle <roger@eyesopen.com>
4007
4008 * config/rs6000/aix51.h (TARGET_C99_FUNCTIONS): Define.
4009 * config/rs6000/aix52.h (TARGET_C99_FUNCTIONS): Likewise.
4010
6b6cb52e
DS
40112003-07-04 Danny Smith <dannysmith@users.sourceforge.net>
4012
4013 PR c++/5287, PR c++/7910, PR c++/11021
4014 * config/i386/winnt.c (ix86_handle_dll_attribute): Don't add
4015 dllimport attribute if function is defined at declaration, but
4016 report error instead. Likewise for dllimport'd variable
4017 definitions. Set implicit TREE_PUBLIC for dllimport'd variables
4018 declared within functions, Report error if dllimport or dllexport
4019 symbol is not global.
4020 (i386_pe_dllimport_p): Ignore dllimport attribute of functions
4021 if defined after declaration or if inlined. Don't allow definition
4022 of static data members of C++ classes. Don't dllimport virtual
4023 methods.
4024 (i386_pe_mark_dllexport): Warn about inconsistent dll attributes.
4025 (i386_pe_mark_dllimport): Remove unnecessary checks.
4026 (i386_pe_encode_section_info): Warn if the dllimport attribute
4027 and symbol prefix have been instantiated and then overridden.
4028
4029 * doc/extend.texi: Document dllimport and dllexport attributes.
4030
4031 * config/i386/winnt.c (i386_pe_output_labelref): Fix indents.
4032
cc2f5d34
US
40332003-07-03 Uwe Stieber <uwe@kaos-group.de>
4034
4035 * config/kaos.h (CPP_PREDEFINES): Delete.
4036 (TARGET_OS_CPP_BUILTINS): New.
4037
5f1989e6
KG
40382003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4039
4040 * c-aux-info.c: Include toplev.h after c-tree.h.
4041 * c-common.c: Likewise.
4042 (GCC_DIAG_STYLE): Undef.
4043 * c-semantics.c (GCC_DIAG_STYLE): Define.
4044 * c-tree.h (GCC_DIAG_STYLE): Likewise.
4045 * diagnostic.h (inform): Move prototype to toplev.h.
4046 * jump.c: Include diagnostic.h before toplev.h.
4047 * toplev.h (GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG): Define.
4048 (warning, error, fatal_error, pedwarn, sorry, inform,
4049 error_for_asm, warning_for_asm): Mark with ATTRIBUTE_GCC_CXXDIAG.
4050
8d28e87d
ZD
40512003-07-03 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4052
4053 * cfglayout.c (cfg_layout_duplicate_bb): Do not update frequencies
4054 at all if edge is not specified.
4055 (can_copy_bbs_p, copy_bbs): New.
4056 * cfglayout.h (can_copy_bbs_p, copy_bbs): Declare.
4057 * cfgloop.c (get_loop_body): Comment more precisely.
4058 * cfgloopmanip.c (copy_bbs, record_exit_edges): Removed.
4059 (scale_bbs_frequencies): Fix comment typo.
4060 (can_duplicate_loop_p): Use can_copy_bbs_p.
4061 (duplicate_loop_to_header_edge): Simplify by using copy_bbs.
4062
694abeb6
DP
40632003-07-03 Devang Patel <dpatel@apple.com>
4064
4065 * c-opts.c (c_common_parse_file): Remove extra
4066 debug_hooks->start_source_file call.
6eb95e99 4067
0a9530a9
RS
40682003-07-03 Roger Sayle <roger@eyesopen.com>
4069
4070 * real.c (real_trunc, real_floor, real_ceil): New functions
4071 to implement trunc, floor and ceil respectively.
4072 * real.h (real_trunc, real_floor, real_ceil): Prototype here.
4073 * builtins.c (integer_valued_real_p): New function to test if
4074 a floating point expression has an integer valued result.
4075 (fold_trunc_transparent_mathfn): Optimize foo(foo(x)) as
4076 foo(x) where foo is an integer rounding function. Similarly,
4077 optimize foo(bar(x)) as bar(x), and foo((double)(int)x) as
4078 (double)(int)x when both foo and bar are integer rounding
4079 functions and we don't need to honor errno.
4080 (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil):
4081 New functions to fold trunc, floor and ceil.
4082 (fold_builtin): Use fold_builtin_trunc to fold BUILT_IN_TRUNC*,
4083 fold_builtin_floor to fold BUILT_IN_FLOOR* and fold_builtin_ceil
4084 to fold BUILT_IN_CEIL*.
4085 * fold-const.c (tree_expr_nonnegative_p): Handle FLOAT_EXPR and
4086 the remaining integer rounding functions.
4087
c3427c7d
EB
40882003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
4089
4090 * config/sparc/sparc.c (function_arg_partial_nregs): Use
4091 SPARC_INT_ARG_MAX to determine where to split unnamed
4092 complex FP arguments.
4093
bc35512f
JH
4094Thu Jul 3 20:36:47 CEST 2003 Jan Hubicka <jh@suse.cz>
4095
4096 * basic-block.h (create_basic_block, merge_blocks_nomove): Kill.
4097 * cfgcleanup.c (merge_blocks): Rename to merge_blocks_move.
4098 (merge_blocks_move_predecessor_nojumps,
4099 merge_blocks_move_successor_nojumps): Use merge_blocks.
4100 (try_optimize_cfg): Use merge_blocks_move.
4101 * cfgrtl.c (create_basic_block): Rename to rtl_create_basic_block.
4102 (merge_blocks_nomove): Rename to rtl_merge_blocks.
4103 (cfg_layout_create_basic_block): New.
4104 (rtl_can_merge_blocks): New.
4105 (cfg_layout_split_block): Do not alloc aux by hand.
4106 * cfghooks.h (cfg_hooks): Add create_basic_block, can_merge_blocks_p,
4107 merge_blocks.
4108 (create_basic_block, can_merge_blocks_p, merge_blocks): New macros.
4109 * cfglayout.c (cfg_layout_duplicate_bb): Do not allocate aux by hand.
4110 * cfgloopmanip.c (loop_split_edge_with): Likewise.
4111 * ifcvt.c (merge_if_block): Use merge_blocks_nomove.
4112
4113 * basic-block.h (basic_block_def): Add field 'rbi'.
4114 * bb-reorder.c (find_traces, rotate_loop, mark_bb_visited,
4115 find_traces_1_round, copy_bb, connect_traces): Update use of rbi.
4116 * cfg.c (entry_exit_blocks): Add new field.
4117 * cfglayout.c: Include alloc-pool.h;
4118 (cfg_layout_pool): New.
4119 (record_effective_endpoints, fixup_reorder_chain,
4120 fixup_fallthru_exit_predecessor, cfg_layout_duplicate_bb): Update use
4121 of rbi.
4122 (cfg_layout_initialize_rbi): New function.
4123 (cfg_layout_initialize): Use it.
4124 (cfg_layout_finalize): Clear rbi fields.
4125 * cfglayout.h (RBI): Kill.
4126 (cfg_layout_initialize_rbi): Declare.
4127 * cfgloopmanip.c (copy_bbs): Use rbi.
4128 (record_exit_edges): Likewise.
4129 (duplicate_loop_to_header_edge): Likewise.
4130 * cfgrtl.c (cfg_layout_create_basic_block): Use
4131 cfg_layout_initialize_rbi.
4132 (cfg_layout_split_block): Use rbi.
4133 (cfg_layout_delete_block): Likewise.
4134 * loop-init.c (loop_optimizer_finalize): Likewise.
4135 * loop-unswitch.c (unswitch_loop): Likewise.
4136 * tracer.c (seen, tail_duplicate, layout_superblocks): Likewise.
4137
4138 * cfgrtl.c: Update comments.
4139 (try_redirect_by_replacing_jump): New argument.
4140 (redirect_branch_edge): Break out from ...
4141 (rtl_redirect_edge_and_branch): ... this one.
4142 (update_cfg_after_block_merging): Break out from ...
4143 (rtl_merge_blocks): ... this one.
4144 (cfg_layout_split_edge): New.
4145 (cfg_layout_merge_blocks): New.
4146 (cfg_layout_can_merge_blocks_p): New.
4147 (cfg_layout_redirect_edge_and_branch): Reorganize.
4148 (cfg_layout_rtl_cfg_hooks): Fill in.
4149 (cfg_layout_delete_block): Kill barriers.
4150 * cfganal.c (can_fallthru): Deal with exit blocks
4151 * cfglayout.c (cfg_layout_function_header): New function
4152 (record_effective_endpoints): Record function header.
4153 (fixup_reorder_chain): Fixup dead jumptables; place header
4154
4155 * basic-block.h (CLEANUP_CFGLAYOUT): New flag.
4156 * bb-reorder.c (cfg_layout_initialize): Update call.
4157 * cfgcleanup.c (try_optimize_cfg): Supress optimizations of fallthru
4158 edges in cfglayout mode.
4159 * cfglayout.c (cleanup_unconditional_jumps): Kill.
4160 (cfg_layout_initialize): Kill agrument loops; use cfgcleanup.
4161 * cfglayout.h (cfg_layout_initialize): Update prototype.
4162 * cfgloop.h (CP_INSIDE_CFGLAYOUT): Kill.
4163 * cfgloopmanip.c (loop_split_edge_with): Use split_edge.
4164 * flow.c (propagate_block): Do not crash when basic block ends
4165 by first insn in the chain.
4166 * loop-init.c (loop_optimizer_init): First enter cfglayout mode; later
4167 do loop discovery.
4168 * tracer.c (tracer): Update call of cfg_layout_initialize.
4169
dd220c49
KG
41702003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4171
4172 * Makefile.in: Use dependency variables in lieu of explicit
4173 files throughout.
4174
fa5b060f
SB
41752003-07-03 Steven Bosscher <steven@gcc.gnu.org>
4176
4177 * rtl.h (ECF_*, flags_from_decl_or_type): Move from here...
4178 * tree.h: ...to here.
4179
fae778eb
KH
41802003-07-03 Kazu Hirata <kazu@cs.umass.edu>
4181
4182 * config/s390/2064.md: Fix comment typos.
4183 * config/s390/2084.md: Likewise.
4184 * config/s390/s390.c: Likewise.
4185 * config/s390/s390.md: Likewise.
4186 * config/sh/sh.c: Likewise.
4187 * config/sh/sh.h: Likewise.
4188 * config/sh/sh.md: Likewise.
4189 * config/sparc/sparc.c: Likewise.
4190 * config/sparc/sparc.h: Likewise.
4191 * config/sparc/sparc.md: Likewise.
4192 * config/stormy16/stormy16.c: Likewise.
4193 * config/stormy16/stormy16.h: Likewise.
4194 * config/stormy16/stormy-abi: Fix a typo.
4195
58eabcb1
KC
41962003-07-03 Kelley Cook <kelleycook@wideopenwest.org>
4197
4198 * Makefile.in (ifcvt.o): Depend on OPTABS_H.
4199
af261903
KG
42002003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4201
4202 * config/mips/mips.h (save_argv): Delete.
4203
a11c61d2
RS
42042003-07-03 Roger Sayle <roger@eyesopen.com>
4205
4206 PR target/10700
4207 * fold-const.c (extract_muldiv_1): There's nothing that can be done
4208 if the expression is a SAVE_EXPR.
4209
dab66575
KH
42102003-07-03 Kazu Hirata <kazu@cs.umass.edu>
4211
4212 * config/m32r/m32r.c: Fix comment typos.
4213 * config/m68hc11/m68hc11.c: Likewise.
4214 * config/m68hc11/m68hc11.h: Likewise.
4215 * config/m68k/m68k.c: Likewise.
4216 * config/mcore/mcore.c: Likewise.
4217 * config/mcore/mcore.h: Likewise.
4218 * config/mcore/mcore.md: Likewise.
4219 * config/mips/mips.c: Likewise.
4220 * config/mips/mips.h: Likewise.
4221 * config/mips/mips.md: Likewise.
4222 * config/mips/netbsd.h: Likewise.
4223 * config/mn10300/mn10300.c: Likewise.
4224
8837d828
AS
42252003-07-03 Andreas Schwab <schwab@suse.de>
4226
4227 * dbxout.c (pending_bincls): Move decl down inside
4228 DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO section.
4229
dd107e66
NS
42302003-07-02 Nathan Sidwell <nathan@codesourcery.com>
4231
4232 * rtl.h (NOTE_DATA): Refer to whole union.
4233 * emit-rtl.c (emit_note): Use memset to clear NOTE_DATA.
4234
8821d091
EB
42352003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
4236
4237 PR optimization/11381
4238 * simplify-rtx.c (simplify_relational_operation): Check that
4239 two equal operands have no side-effects before simplifying
4240 the comparison.
4241
7960bf22
JL
42422003-07-02 Jeff Law <law@redhat.com>
4243
4244 * expr.c (do_store_flag): Remove special case folding for
4245 single bit tests. Instead call back into the commonized folder
4246 routine.
4247 * fold-const.c (fold_single_bit_test): New function, mostly
4248 extracted from do_store_flag, with an additional case extracted
4249 from fold.
4250 (fold): Call fold_single_bit_test appropriately.
4251 * tree.h (fold_single_bit_test): Prototype.
4252
3dce1408
ZW
42532003-07-02 Zack Weinberg <zack@codesourcery.com>
4254
4255 * system.h: Include filenames.h.
4256 (IS_DIR_SEPARATOR, IS_ABSOLUTE_PATHNAME): Don't define.
4257 (DIR_SEPARATOR, DIR_SEPARATOR_2): If not already defined,
4258 define based on HAVE_DOS_BASED_FILE_SYSTEM.
4259 * config/i386/xm-cygwin.h, config/i386/xm-djgpp.h
4260 * config/i386/xm-mingw32.h: Don't define
4261 HAVE_DOS_BASED_FILE_SYSTEM,
4262 DIR_SEPARATOR, or DIR_SEPARATOR_2.
4263 * doc/hostconfig.texi: Update to match.
4264
4265 * cppfiles.c, gcc.c, gensupport.c, protoize.c,
4266 config/i386/cygwin.h:
4267 Use IS_ABSOLUTE_PATH throughout.
4268 * gcc.c (DIR_UP): Delete, unused.
4269 * protoize.c (IS_SAME_PATH): Define in terms of
4270 FILENAME_CMP.
4271 (is_abspath): Delete.
4272
c51e6d85
KH
42732003-07-02 Kazu Hirata <kazu@cs.umass.edu>
4274
4275 * config/i386/emmintrin.h: Fix comment typos.
4276 * config/i386/i386.c: Likewise.
4277 * config/i386/i386.h: Likewise.
4278 * config/i386/sco5.h: Likewise.
4279 * config/ia64/ia64.c: Likewise.
4280 * config/ia64/itanium2.md: Likewise.
4281
5ec3a5a7
L
42822003-07-02 H.J. Lu <hongjiu.lu@intel.com>
4283
4284 * dbxout.c (pending_bincls): Replace DBX_USE_BINCLS with
4285 DBX_USE_BINCL.
4286 (emit_bincl_stab): Same.
4287 (emit_pending_bincls): Same.
4288
fad37371
KH
42892003-07-02 Kazu Hirata <kazu@cs.umass.edu>
4290
4291 * config/h8300/h8300.c (compute_mov_length): Fix the length of
4292 loading CONST0_RTX (SFmode).
4293 * config/h8300/h8300.h (CONST_DOUBLE_OK_FOR_LETTER_P): Change
4294 'G' to CONST0_RTX (SFmode).
4295 * config/h8300/h8300.md (movsf_h8300): Change the first
4296 constraint to 'G'.
4297 (movsf_h8300h): Likewise.
4298
b86f6cd9
NB
42992003-07-02 Neil Booth <neil@daikokuya.co.uk>
4300
4301 * c-common.h (c_common_init_options): New prototype.
4302 * c-opts.c (deferred_size): Remove.
4303 (defer_opt): Array is now pre-allocated.
4304 (c_common_init_options): Pre-allocate deferred_opts. Make
4305 lang_flags unsigned.
4306 (push_command_line_options): Free deferred_opts.
4307 * hooks.c (hook_uint_uint_constcharptrptr_0): New.
4308 * hooks.h (hook_uint_uint_constcharptrptr_0): New.
4309 * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): Update.
4310 * langhooks.h (struct lang_hooks): New prototype for init_options.
4311 * main.c (main): Cast argv.
4312 * opts.c (handle_option, handle_options): Update prototypes.
4313 (decode_options): save_argc, save_argv are not global. Constify.
4314 * opts.h (decode_options): New prototype.
4315 * toplev.c (general_init): New protoype.
4316 (save_argv): Make static.
4317 (save_argc): Remove.
4318 (print_switch_values, general_init): Constify.
4319 (toplev_main): Save argv.
4320 * toplev.h (toplev_main): Update prototype.
4321 (save_argc, save_argv): Remove.
4322
f23b9d52
DE
43232003-07-02 David Edelsohn <edelsohn@gnu.org>
4324
4325 * dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.
4326 (emit_bincl_stab): Same.
4327 (emit_pending_bincls): Same.
4328
300e89a2
NS
43292003-07-02 Nathan Sidwell <nathan@codesourcery.com>
4330
4331 PR c++/11072
4332 * ginclude/stddef.h (offsetof): Remove cast to 'char &'. Explain why.
4333
eaac6968
AS
43342003-07-02 Andreas Schwab <schwab@suse.de>
4335
4336 * dbxout.c (pending_bincls): Only define if DBX_DEBUGGING_INFO.
4337
1a8c4ca6
EB
43382003-07-02 Eric Botcazou <ebotcazou@libertysurf.fr>
4339
4340 PR optimization/11210
4341 * expr.c (handled_component_p) [NOP_EXPR]: Add ??? note
4342 about the behaviour with regard to bitfields.
4343 * fold-const (decode_field_reference): Record outermost type in
4344 case the expression is a NOP. Strip all NOPs. Set the signedness
4345 to that of the outermost type (if any) when the bitsize is equal
4346 to the size of the type.
4347
23cdfcf7
RS
43482003-07-02 Richard Sandiford <rsandifo@redhat.com>
4349
4350 * config/mips/mips.md (addsi3): Remove workaround for adds of -32768.
4351 (addsi3_internal, adddi3, adddi3_internal_2): Likewise.
4352 (adddi3_internal_3, addsi3_internal_2): Likewise.
4353
6f2993e5
RS
43542003-07-02 Richard Sandiford <rsandifo@redhat.com>
4355
4356 * config/mips/mips.c (machine_function): Add new fields:
4357 ignore_hazard_length_p and all_noreorder_p.
4358 (mips_flag_delayed_branch): New variable.
4359 (override_options): Treat '/' as an operand punctuation character.
4360 Set up mips_flag_delayed_branch.
4361 (print_operand): Handle '/'.
4362 (mips_output_function_prologue): Put the whole function in
4363 .set noreorder and .set nomacro if all_noreorder_p is true.
4364 (mips_output_function_epilogue): End the noreorder/nomacro sequence.
4365 (mips16_optimize_gp): Remove "first insn" parameter.
4366 (mips16_lay_out_constants): New function, split out from mips_reorg.
4367 (mips_avoid_hazard, mips_avoid_hazards): New functions.
4368 (mips_reorg): For mips16 code, call mips16_lay_out_constant
4369 and (optionally) mips16_optimize. If TARGET_EXPLICIT_RELOCS,
4370 do delayed-branch scheduling followed by hazard detection.
4371 (mips_adjust_insn_length): Only account for hazards if
4372 !ignore_hazard_length_p.
4373 (mips_output_load_label): Add a nop to the o32 sequence if
4374 the target suffers from load delays.
4375 (mips_output_conditional_branch): Add %/ to the end of branches.
4376 (mips_output_division): Fill the branch delay slot with %#.
4377 * config/mips/mips.md: Remove redundant '%*' from mips16 branch
4378 instructions. End all other %* branches with %/.
4379 (ffssi2, ffsdi2): Fix lengths.
4380 (truncdisi2, truncdihi2, truncdiqi2): Add store attributes.
4381 (fix_truncdfsi2_macro): Turn off .set nomacro if appropriate.
4382 (fix_truncsfsi2_macro): Likewise.
4383 (mov_lwl): Set hazard to "none".
4384 (ashldi3_internal): Fill the branch delay slot with %#.
4385 (ashrdi3_internal, lshrdi3_internal): Likewise.
4386 (exception_receiver): Explicitly set $28.
4387 (hazard_nop): New pattern.
4388
0184bd46
JH
4389Wed Jul 2 08:12:36 CEST 2003 Jan Hubicka <jh@suse.cz>
4390
4391 * cgraphunit.c (cgraph_finalize_unit): Set current_function_decl
4392 before calling tree_inlinable_function_p.
4393
1a78e5a7
RO
43942003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4395
4396 * fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5
4397 <internal/stdio_core.h> too.
4398 (stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> and
4399 <internal/wchar_core.h> too.
4400 Substitute va_list uses in inline definition.
4401 * fixinc/fixincl.x: Regenerate.
4402
4c82f12b
RO
44032003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4404
4405 * config/mips/iris5.h (SET_FILE_NUMBER): Moved here from iris3.h.
4406 Undef before redefinition.
4407 (LABEL_AFTER_LOC): Likewise.
4408 (DEFAULT_SIGNED_CHAR): Likewise.
4409 (ASM_OUTPUT_ASCII): Moved here from iris4.h.
4410 Fix IRIX spelling.
3dce1408 4411
4c82f12b
RO
4412 * config/mips/iris3.h: Remove, unused.
4413 * config/mips/iris4.h: Likewise.
4414
4415 * config/mips/mips.h (STACK_ARGS_ADJUST): Remove, unused.
4416
4417 * config/mips/iris5.h (TARGET_DEFAULT): Move ...
4418 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here to
4419 target_cpu_default.
4420
4421 * config/mips/iris5.h: Move explicit includes ...
4422 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here.
3dce1408 4423
4c82f12b
RO
4424 * config/mips/iris6.h (MIPS_ISA_DEFAULT, MIPS_ABI_DEFAULT): Move ...
4425 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
4426 tm_defines.
4427
4428 * config/mips/iris6.h (TARGET_DEFAULT): Move ...
4429 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
4430 target_cpu_default.
4431
4432 * config/mips/iris6.h: Fix IRIX spelling.
4433 (MULTILIB_DEFAULTS): Undef before redefinition.
3dce1408 4434
4c82f12b
RO
4435 * config/mips/iris6.h: Move explicit includes ...
4436 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here.
4437
8bd87c4e
JH
4438Wed Jul 2 02:16:48 CEST 2003 Jan Hubicka <jh@suse.cz>
4439
4440 * cgraph.c (cgraph_mark_needed_node, cgraph_varpool_mark_needed_node,
4441 cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
4442 Use next_needed field instead of aux to maintain the queue.
4443 * cgraph.h (cgraph_node): Add next_needed.
4444 (cgraph_varpool_node): Add next_needed; remove aux.
4445 * cgraphunit.c (cgraph_finalize_compilation_unit): Use next_needed.
4446
f6981e16
JH
4447Wed Jul 2 02:12:51 CEST 2003 Jan Hubicka <jh@suse.cz>
4448
4449 * cgraphunit.c (cgraph_finalize_function): Set finalized.
4450 (cgraph_finalize_function): Do not examine inlinablility.
4451 (cgraph_finalize_compilation_unit): Do it here.
4452 * cgraph.h (cgraph_local_info): Add finalized field.
4453
d1c60855
RO
44542003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4455
4456 * ggc-common.c (gt_pch_save): Cast MAP_FAILED to void *.
4457 (gt_pch_restore): Likewise.
4458
093354e0
KH
44592003-07-01 Kazu Hirata <kazu@cs.umass.edu>
4460
4461 * config/alpha/alpha.c: Fix comment typos.
4462 * config/alpha/elf.h: Likewise.
4463 * config/arm/arm.c: Likewise.
4464 * config/arm/arm.h: Likewise.
4465 * config/arm/arm.md: Likewise.
4466 * config/arm/t-arm-coff: Likewise.
4467 * config/arm/t-strongarm-pe: Likewise.
4468 * config/arm/xscale-elf.h: Likewise.
4469 * config/avr/avr.h: Likewise.
4470
ce47ca44
JL
44712003-07-01 Jeff Law <law@redhat.com>
4472
4473 * stmt.c (any_pending_cleanups): Remove another redundant test.
4474
43b68ce5
DE
44752003-07-01 David Edelsohn <edelsohn@gnu.org>
4476 J"orn Rennecke <joern.rennecke@superh.com>
4477
4478 * config/rs6000/rs6000.md (ctr{s,d}i_internal?): Add earlyclobber
4479 for MEM case.
4480
33e9d2aa
DP
44812003-07-01 Devang Patel <dpatel@apple.com>
4482
4483 * dbxout.c (DBXOUT_DECR_NESTING): Emit pending bincls, if required.
4484 (binclstatus): New.
3dce1408 4485 (struct dbx_file): New members - bincl_status, pending_bincl_name and
33e9d2aa
DP
4486 prev.
4487 (pending_bincls): New.
4488 (dbxout_init): Initialize new dbx_file members.
4489 (dbxout_start_source_file): Same.
4490 (emit_bincl_stab): New function.
4491 (emit_pending_bincls): Same.
4492 (emit_pending_bincls_if_required): Same.
3dce1408 4493 (dbxout_end_source_file): Emit EINCL stab only if BINCL is already
33e9d2aa
DP
4494 processed.
4495 (dbxout_begin_block): Emit pending BINCL stabs.
4496 (dbxout_end_block): Same.
4497 (dbxout_function_decl): Same.
4498 (dbxout_continue): Same.
4499 (dbxout_type): Same.
4500 (dbxout_class_name_qualifiers): Same.
4501 (dbxout_symbol): Same.
4502 (dbxout_symbol_location): Same.
4503 (dbxout_parms): Same.
3dce1408 4504
0108ae51
KG
45052003-07-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4506
4507 * c-semantics.c (genrtl_case_label): Fix format specifier bug.
4508 * cfgrtl.c (rtl_verify_flow_info_1): Likewise.
4509
54ced33d
AJ
45102003-07-01 Andreas Jaeger <aj@suse.de>
4511
4512 * fold-const.c: Convert prototypes to ISO C90.
4513 * function.c: Likewise.
4514 * function.h: Likewise.
4515
c0cbdbd9
KH
45162003-07-01 Kazu Hirata <kazu@cs.umass.edu>
4517
4518 * doc/contrib.texi: Fix typos.
4519 * doc/invoke.texi: Likewise.
4520 * doc/passes.texi: Likewise.
4521 * doc/sourcebuild.texi: Likewise.
4522 * doc/tm.texi: Likewise.
4523
e0bb17a8
KH
45242003-07-01 Kazu Hirata <kazu@cs.umass.edu>
4525
4526 * basic-block.h: Fix comment typos.
4527 * bb-reorder.c: Likewise.
4528 * c-format.c: Likewise.
4529 * cfgcleanup.c: Likewise.
4530 * cfghooks.h: Likewise.
4531 * cfgloop.c: Likewise.
4532 * cfgloopmanip.c: Likewise.
4533 * cfgrtl.c: Likewise.
4534 * cgraph.h: Likewise.
4535 * cgraphunit.c: Likewise.
4536 * combine.c: Likewise.
4537 * convert.c: Likewise.
4538 * dbxout.c: Likewise.
4539 * df.c: Likewise.
4540 * df.h: Likewise.
4541 * diagnostic.c: Likewise.
4542 * dwarf2out.c: Likewise.
4543 * et-forest.h: Likewise.
4544 * flow.c: Likewise.
4545 * fold-const.c: Likewise.
4546 * function.h: Likewise.
4547 * gcov-io.h: Likewise.
4548 * gcov.c: Likewise.
4549 * gcse.c: Likewise.
4550 * genautomata.c: Likewise.
4551 * ggc-common.c: Likewise.
4552 * ggc-page.c: Likewise.
4553 * loop-unroll.c: Likewise.
4554 * loop-unswitch.c: Likewise.
4555 * loop.c: Likewise.
4556 * mips-tfile.c: Likewise.
4557 * optabs.c: Likewise.
4558 * ra-build.c: Likewise.
4559 * ra-colorize.c: Likewise.
4560 * ra-rewrite.c: Likewise.
4561 * ra.h: Likewise.
4562 * regmove.c: Likewise.
4563 * reload.c: Likewise.
4564 * rtlanal.c: Likewise.
4565 * sched-ebb.c: Likewise.
4566 * sched-int.h: Likewise.
4567 * sched-vis.c: Likewise.
4568 * sreal.c: Likewise.
4569 * ssa-ccp.c: Likewise.
4570 * ssa.c: Likewise.
4571 * toplev.c: Likewise.
4572 * tree-inline.c: Likewise.
4573 * value-prof.c: Likewise.
4574 * value-prof.h: Likewise.
4575
5f2fc772
NS
45762003-07-01 Nathan Sidwell <nathan@codesourcery.com>
4577
4578 * rtl.h (emit_line_note_after): Remove.
4579 (emit_note_copy_after, emit_note_copy): New.
4580 * emit-rtl.c (reorder_insns_with_line_notes): Replace
4581 emit_line_note_after with emit_note_copy_after.
4582 (emit_insn_after_with_line_notes): Likewise.
4583 (emit_line_note_after): Kill.
4584 (emit_note_copy_after): New.
4585 (emit_note_copy): New.
4586 * function.c (emit_return_into_block): Use emit_note_copy_after.
4587 (thread_prologue_and_epilogue_insns): Likewise.
4588 * integrate.c (expand_inline_function): Use emit_note_copy.
4589 (copy_insn_list): Likewise.
4590 * unroll.c (copy_loop_body): Likewise.
4591 * cfglayout.c (duplicate_insn_chain): Likewise.
4592
5b030314
NS
45932003-07-01 Nathan Sidwell <nathan@codesourcery.com>
4594
4595 * c-tree.h (define_label): Replace filename and lineno arguments
4596 with a location_t.
4597 * c-decl.c (poplevel): Adjust define_label call.
4598 (pop_label_level): Likewise.
4599 (define_label): Replace filename and lineno arguments with a
4600 location_t.
4601 (store_parm_decls): Use DECL_SOURCE_LOCATION.
4602 * c-parse.in (label): Adjust define_label call.
4603
04df6730
NB
46042003-07-01 Neil Booth <neil@daikokuya.co.uk>
4605
4606 * config/sol2.h, config/alpha/alpha.h, config/alpha/linux.h,
4607 config/i386/i386-interix.h, config/ia64/hpux.h, config/mips/iris6.h,
4608 config/mips/linux.h, config/mips/mips.h, config/pa/pa-hpux.h,
4609 config/pa/pa-hpux10.h, config/pa/pa-hpux11.h, config/pa/pa-pro-end.h,
4610 config/pa/pa.h, config/pa/rtems.h: Use c_dialect_ macros.
4611
6cf9ac28
AJ
46122003-07-01 Andreas Jaeger <aj@suse.de>
4613
4614 * final.c: Convert prototypes to ISO C90.
4615 * flow.c: Likewise.
4616 * flags.h: Likewise.
4617 * gcov-io.c: Likewise.
4618 * gcov-io.h: Likewise.
4619
2a868fac 4620See ChangeLog.9 for earlier changes.
This page took 0.677236 seconds and 5 git commands to generate.