1 2003-07-30 David Edelsohn <edelsohn@gnu.org>
3 * longlong.h (PowerPC umul_ppmm): Do not test __vxworks__.
5 2003-07-30 Ulrich Weigand <uweigand@de.ibm.com>
7 * config/s390/s390.h (EH_RETURN_HANDLER_RTX): Compute offset
10 Wed Jul 30 19:12:10 CEST 2003 Jan Hubicka <jh@suse.cz>
12 * gcse.c (insert_store): Ignore fake edges.
14 * c-common.c (flag_vtable_gc): Kill.
15 * c-common.g (flag_vtable_gc): Kill.
16 * c-opts (c_common_handle_option): Kill.
17 * c.opt (fvtable-gc): Kill.
18 * final.c (final_scan_insn): Do not call assemble_vtable_entry.
19 * output.h (assemble_vtable_entry, assemble_vtable_inherit): Kill.
20 * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): Kill.
22 * invoke.texi (-ftable-gc): Kill documentation.
24 * tree-inline.c (inlinable_function_p): Don't set DECL_UNINLINABLE
25 just because function body is missing.
27 * i386.c (pic_symbolic_operand): Properly detect RIP relative unspecs.
29 2003-07-30 Ranjit Mathew <rmathew@hotmail.com>
31 * unwind-sjlj.c: Fix typo in file description.
33 2003-07-30 Alan Modra <amodra@bigpond.net.au>
35 * calls.c (load_register_parameters): When shifting reg sized values
36 to the msb, move the value to a reg first.
38 2003-07-29 Geoffrey Keating <geoffk@apple.com>
40 * cppfiles.c (stack_file): Leave filename as "" rather than "<stdin>".
41 * line-map.h (linemap_add): Update comments.
42 * line-map.c (linemap_add): Update comments, interpret zero-length
43 filename as "<stdin>".
45 2003-07-29 Nathanael Nerode <neroden@gcc.gnu.org>
47 * mkinstalldirs: Import autoconf 2.57 / automake 1.7 version.
49 2003-07-29 Zack Weinberg <zack@codesourcery.com>
51 * c-decl.c (last_function_parm_vars, current_function_parm_vars):
53 (struct c_scope): Add parms and warned_forward_parm_decls
54 fields; remove parm_order.
55 (storedecls, storetags): Delete.
56 (poplevel): Also clear bindings on the parms chain.
57 (pushdecl): Handle forward declarations of parameters, and
58 chain PARM_DECLs on the parms list, not the names list.
59 (lookup_name_current_level): Check for PARM_DECLs on the parms
61 (push_parm_decl): Don't update parm_order.
62 (clear_parm_order): Rename mark_forward_parm_decls. Issue the
63 warning, only once per parameter list, and set TREE_ASM_WRITTEN
64 on the decls here. Then move the forward decls to the names list.
65 (grokparms): Set last_function_parm_vars.
66 (get_parm_info): Don't use gettags or getdecls. No need to
67 extract non-parms from the parms list, or reorganize the parms
68 list. Feed nonparms back in the TREE_TYPE of the list node
69 returned. Issue only one error per parameter list for "void"
70 appearing more than once in said parameter list. Collapse
71 parmlist_tags_warning into this function to avoid double scan
73 (start_function): Set current_function_parm_vars.
74 (store_parm_decls_newstyle): Bypass pushdecl, manipulate scope
75 directly. Get non-parms from current_function_parm_vars; no
76 need to extract them from the parms chain. Properly bind tags
78 (store_parm_decls_oldstyle): No need to extract non-parameters
79 from the parms chain, nor to store them back afterward. Move
80 declaration to top of function, restructure code reordering
82 (store_parm_decls): No need to save and restore warn_shadow.
83 * c-parse.in: Don't call parmlist_tags_warning nor
84 clear_parm_order. Call mark_forward_parm_decls when forward
85 parm decls are encountered.
86 * c-tree.h: Prototype mark_forward_parm_decls; not
87 clear_parm_order or parmlist_tags_warning.
89 2003-07-29 Geoffrey Keating <geoffk@apple.com>
91 * c-common.c (allow_pch): Remove.
92 * c-common.h (allow_pch): Remove.
93 (c_common_no_more_pch): Declare.
94 * c-lex.c (c_lex): Call c_common_no_more_pch when appropriate.
95 * c-pch.c: Include hosthooks.h.
96 (c_common_valid_pch): Don't check allow_pch.
97 (c_common_read_pch): Clear valid_pch to prevent reading PCH files.
98 (c_common_no_more_pch): New.
99 * ggc-common.c: Include hosthooks.h.
100 (gt_pch_save): Call gt_pch_get_address.
101 (gt_pch_restore): Call gt_pch_use_address.
102 * hooks.c (hook_voidp_size_t_null): New.
103 (hook_bool_voidp_size_t_false): New.
104 * hooks.h (hook_voidp_size_t_null): New.
105 (hook_bool_voidp_size_t_false): New.
106 * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): New.
107 (HOST_HOOKS_GT_PCH_USE_ADDRESS): New.
108 (HOST_HOOKS_INITIALIZER): Add HOST_HOOKS_GT_PCH_GET_ADDRESS,
109 HOST_HOOKS_GT_PCH_USE_ADDRESS.
110 * hosthooks.h (struct host_hooks): Add gt_pch_get_address,
112 * doc/hostconfig.texi (Host Common): Document
113 HOST_HOOKS_GT_PCH_GET_ADDRESS, HOST_HOOKS_GT_PCH_USE_ADDRESS.
114 * Makefile.in (c-pch.o): Depend on hosthooks.h.
115 (ggc-common.o): Likewise.
117 * config/rs6000/host-darwin.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Define.
118 (HOST_HOOKS_GT_PCH_USE_ADDRESS): Define.
119 (pch_address_space): New.
120 (darwin_rs6000_gt_pch_get_address): New.
121 (darwin_rs6000_gt_pch_use_address): New.
123 2003-07-29 Neil Booth <neil@daikokuya.co.uk>
125 * Makefile.in (LIBCPP_DEPS): Add HASHTAB_H.
126 * cppfiles.c: Completely rewritten.
127 * c-incpath.c (free_path, remove_duplicates, heads, tails, add_path):
128 struct cpp_path is now struct cpp_dir.
129 (remove_duplicates): Don't simplify path names.
130 * c-opts.c (c_common_parse_file): cpp_read_next_file renamed
132 * cpphash.h: Include hashtab.h.
133 (_cpp_file): Declare.
134 (struct cpp_buffer): struct include_file is now struct _cpp_file,
135 and struct cpp_path is now struct cpp_dir. Rename members.
136 (struct cpp_reader): Similarly. New members once_only_files,
137 file_hash, file_hash_entries, quote_ignores_source_dir,
138 no_search_path, saw_pragma_once. Remove all_include_files and
139 max_include_len. Make some members bool.
140 (_cpp_mark_only_only): Renamed from _cpp_never_reread.
141 (_cpp_stack_file): Renamed from _cpp_read_file.
142 (_cpp_stack_include): Renamed from _cpp_execute_include.
143 (_cpp_init_files): Renamed from _cpp_init_includes.
144 (_cpp_cleanup_files): Renamed from _cpp_cleanup_includes.
145 * cppinit.c (cpp_create_reader): Initialize no_search_path. Update.
146 (cpp_read_next_file): Rename and move to cppfiles.c.
147 (cpp_read_main_file): Update.
148 * cpplib.c (run_directive): Update for renamed members.
149 (do_include_common, _cpp_pop_buffer): Update.
150 (do_import): Undeprecate #import.
151 (do_pragma_once): Undeprecate. Use _cpp_mark_file_once_only.
152 * cpplib.h: Remove file_name_map_list.
153 (cpp_options): Remove map_list.
154 (cpp_dir): Rename from cpp_path. New datatype for name_map.
155 (cpp_set_include_chains, cpp_stack_file, cpp_included): Update.
157 2003-07-29 Phil Edwards <pme@gcc.gnu.org>
159 * Makefile.in: Make stamp-objdir safe for parallel builds.
161 2003-07-29 Phil Edwards <pme@gcc.gnu.org>
163 * Makefile.in (stmp-docobjdir): New target; ensure $docobjdir exists.
164 (info): Depend on stmp-docobjdir.
166 2003-07-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
168 * configure: Regenerate.
170 Tue Jul 29 19:24:49 CEST 2003 Jan Hubicka <jh@suse.cz>
173 * tree-inline.c (expand_call_inline): Always call inlinable_function_p
174 in !unit-at-a-time mode.
176 2003-07-28 Geoffrey Keating <geoffk@apple.com>
178 * c-decl.c (c_expand_body_1): Use C_DECL_FILE_SCOPE to detect
181 2003-07-28 Mark Mitchell <mark@codesourcery.com>
184 * c-common.c (shorten_compare): Take into account differences
185 between C and C++ representation for enumeration types.
186 * tree.h (set_min_and_max_values_for_integral_type): Declare.
187 * stor-layout.c (set_min_and_max_values_for_integral_type): New
188 function, broken out from ...
189 (fixup_signed_type): ... here and ...
190 (fixup_unsigned_type): ... here.
192 2003-07-28 Zack Weinberg <zack@codesourcery.com>
194 * c-decl.c: Update commentary, adjust blank lines throughout.
195 (struct c_scope): Fix indentation. Reorder members so
196 outer-context pointers come first, booleans last.
197 (duplicate_decls, define_label): Use a 'locus' variable for
198 diagnostic locations in a few more places.
199 (warn_if_shadowing): Un-split a conditional that fits on one line.
200 (c_init_decl_processing): No need to clear current_scope and
201 current_function_scope.
202 (start_decl): Merge if/else if statements with same action.
203 (push_parm_decl): Rename old_immediate_size_expand to use
204 save_foo convention; save/restore around entire function.
205 (grokdeclarator): Remove unnecessary braces.
207 2003-07-28 Hans-Peter Nilsson <hp@bitrange.com>
208 Michael Culbertson <Michael.J.Culbertson@wheaton.edu>
210 * c-parse.in (lineno_stmt_decl_or_labels_ending_decl): Also warn
211 when warn_declaration_after_statement. Call pedwarn_c90, not
212 pedwarn. Correct message: it's "ISO C90", not "ISO C89".
213 * c-common.c (warn_declaration_after_statement): Define.
214 * c-common.h (warn_declaration_after_statement): Declare.
215 * c.opt (Wdeclaration-after-statement): New.
216 * c-errors.c (pedwarn_c90): New function.
217 * c-opts.c (c_common_handle_option) <case
218 OPT_Wdeclaration_after_statement>: New.
219 * c-tree.h (pedwarn_c90): Declare.
220 * doc/invoke.texi (Option Summary): Document
221 -Wdeclaration-after-statement.
222 (Warning Options): Ditto.
224 Mon Jul 28 20:13:06 CEST 2003 Jan Hubicka <jh@suse.cz>
226 * i386.md (memory attribute) Avoid accessing uninitialized memory
227 for ishift1 type instructions.
229 2003-07-28 Jakub Jelinek <jakub@redhat.com>
231 * configure.in (--enable-checking): Add fold category.
232 (ENABLE_FOLD_CHECKING): Define if requested.
233 * configure: Rebuilt.
234 * config.in: Rebuilt.
235 * doc/install.texi: Document it.
236 * fold-const.c: Include md5.h.
237 [ENABLE_FOLD_CHECKING] (fold): Define to fold_1.
238 [ENABLE_FOLD_CHECKING] (fold, fold_checksum_tree, fold_check_failed,
239 print_fold_checksum): New functions.
241 * fold-const.c (fold): Never modify argument passed to fold, instead
242 change a copy and return it.
243 * convert.c (convert_to_integer): Likewise.
245 2003-07-27 Nathanael Nerode <neroden@gcc.gnu.org>
247 * fixinc/fixinc.svr4: Remove dead code. Remove now-unnecessary
248 cleanup of junk after #else and #endif directives. Collapse repeated
249 clauses into for statment.
251 * fixinc/fixincl.sh: GNU C -> GCC. Add usage comment.
253 2003-07-27 Zack Weinberg <zack@codesourcery.com>
255 * c-decl.c (struct c_scope): Remove keep_if_subblocks field.
256 (keep_next_if_subblocks): Rename next_is_function_body.
257 (pushlevel): Adjust commentary. Always set ->keep on the
258 outermost level of a function. Don't set ->keep_if_subblocks.
259 (poplevel): Adjust commentary. Don't look at ->keep_if_subblocks.
260 (store_parm_decls): Adjust to match.
261 (finish_function): Adjust to match.
262 Call poplevel with all three arguments zero.
264 * c-decl.c (store_parm_decls_newstyle, store_parm_decls_oldstyle):
265 New functions split out of store_parm_decls.
266 Avoid unnecessary work. Use local variables consistently.
267 (store_parm_decls): Likewise.
269 (finish_function): No need to set functionbody flag on call to
271 (struct language_function): Remove scope field.
272 (c_push_function_context, c_pop_function_context): No need to
273 save and restore current_scope.
275 2003-07-27 Nathan Sidwell <nathan@codesourcery.com>
277 * doc/extend.texi (Deprecated Features): Implicit typename is
278 gone. Default args on types is going.
280 2003-07-26 J"orn Rennecke <joern.rennecke@superh.com>
282 * Makefile.in (ifcvt.o): Depend on target.h
283 * ifcvt.c (target.h): Include.
284 (if_convert): Don't call mark_loop_exit_edges if we can't
287 2003-07-26 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
289 * doc/install.texi (Testing): Adjust required versions of DejaGnu.
291 2003-07-26 Richard Henderson <rth@redhat.com>
294 * cse.c (count_reg_usage): Handle asm_operands properly.
296 2003-07-26 Roger Sayle <roger@eyesopen.com>
298 * builtins.def (DEF_FALLBACK_BUILTIN): Delete.
299 (DEF_EXT_FALLBACK_BUILTIN): Delete.
300 (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Declare using
301 the regular DEF_EXT_LIB_BUILTIN macro.
302 (BUILT_IN_FPUTC, BUILT_IN_FPUTS, BUILT_IN_FWRITE): Declare using
303 the regular DEF_LIB_BUILTIN macro.
304 (BUILT_IN_PUTCHAR_UNLOCKED, BUILT_IN_PUTS_UNLOCKED,
305 BUILT_IN_FPUTC_UNLOCKED, BUILT_IN_FPUTS_UNLOCKED,
306 BUILT_IN_FWRITE_UNLOCKED): Declare using the regular
307 DEF_EXT_LIB_BUILTIN macro.
309 * c-decl.c (duplicate_decls): Remove code to handle builtin
310 functions prototyped without an argument list.
312 2003-07-26 Danny Smith <dannysmith@users.sourceforge.net>
314 * config/i386/winnt.c: Revert 2003-07-08 change.
315 (i386_pe_section_type_flags): Remove error_with_decl here too.
317 2003-07-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
319 * config/arm/pe.c (arm_mark_dllimport): Don't use xxx_with_decl.
320 * config/mcore/mcore.c (mcore_mark_dllimport): Likewise.
321 * config/v850/v850.c (v850_handle_data_area_attribute): Likewise.
322 (v850_handle_data_area_attribute): Likewise.
324 2003-07-26 Geoffrey Keating <geoffk@apple.com>
326 * varasm.c (output_constant_def_contents): Use
327 ASM_DECLARE_CONSTANT_NAME if defined.
328 * doc/tm.texi (Label Output): Document ASM_DECLARE_CONSTANT_NAME.
329 * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Ensure zero-sized
330 objects get at least one byte to prevent assembler problems.
331 (ASM_DECLARE_CONSTANT_NAME): New.
333 * Makefile.in (libbackend.o): Remove options_.h.
334 (mostlyclean): Likewise.
336 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
337 insert a label at the end of an function under Mach-O.
339 * c-decl.c (c_static_assembler_name): Remove TREE_STATIC test.
341 2003-07-25 Aldy Hernandez <aldyh@redhat.com>
343 * config/rs6000/rs6000.c (is_ev64_opaque_type): Only check pointer
345 (spe_init_builtins): Declare __ev64_opaque__ as a builtin type.
347 * config/rs6000/spe.h: Remove __ev64_opaque__ definition.
349 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
351 * doc/passes.texi (Passes): Mention pretty-printing and
354 2003-07-25 Nathan Sidwell <nathan@codesourcery.com>
356 * doc/extend.texi (Function Attributes): GNU C++ does now allow
357 unused parameter decls.
358 (Attribute Syntax): GNU C++ does not allow label attributes to be
361 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
363 * objc/objc-act.c (objc_check_decl): Don't use xxx_with_decl.
364 (objc_declare_class): Likewise.
365 (error_with_ivar): Likewise.
366 (start_class): Likewise.
367 (warn_with_method): Likewise.
369 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
371 Remove pedwarn_with_decl, warning_with_decl and error_with_decl
373 * calls.c (try_to_integrate): Don't use xxx_with_decl.
374 (expand_call): Likewise.
375 * dwarfout.c (output_reg_number): Likewise.
376 * expr.c (expand_expr): Likewise.
377 * function.c (assign_temp): Likewise.
378 (uninitialized_vars_warning): Likewise.
379 (setjmp_args_warning): Likewise.
380 (expand_function_end): Likewise.
381 * stmt.c (fixup_gotos): Likewise.
382 (warn_about_unused_variables): Likewise.
383 (expand_end_bindings): Likewise.
384 * stor-layout.c (layout_decl): Likewise.
385 (place_field): Likewise.
386 * toplev.c (check_global_declarations): Likewise.
387 (rest_of_handle_inlining): Likewise.
388 (default_tree_printer): New function.
389 (general_init): Initialize diagnostic machinery before routing
390 signals to the ICE machinery. Set default tree printer.
391 * toplev.h (pedwarn_with_decl): Remove declaration.
392 (warning_with_decl): Likewise.
393 (error_with_decl): Likewise.
394 (pedwarn): Remove attribute for the time being.
395 * tree-inline.c (expand_call_inline): Don't use xxx_with_decl.
396 * varasm.c (named_section): Likewise.
397 (make_decl_rtl): Likewise.
398 (assemble_variable): Likewise.
399 (merge_weak): Likewise.
400 (declare_weak): Likewise.
402 * diagnostic.h: Move non-diagnostic stuff into pretty-print.h.
403 * diagnostic.c: Move non-diagnostic stuff into pretty-print.c.
404 (format_with_decl): Remove.
405 (diagnostic_for_decl): Likewise.
406 (pedwarn_with_decl): Likewise.
407 (warning_with_decl): Likewise.
408 (error_with_decl): Likewise.
409 (diagnostic_initialize): Adjust.
410 (diagnostic_count_diagnostic): Likewise.
411 (announce_function): Likewise.
412 (lhd_print_error_function): Likewise.
413 (diagnostic_report_current_module): Likewise.
414 (default_diagnostic_starter): Likewise.
415 (diagnostic_report_diagnostic): Likewise.
416 (default_diagnostic_finalizer): Likewise.
417 (verbatim): Likewise.
420 * opts.c (common_handle_option): Likewise.
421 * pretty-print.c: New file.
422 * c-pretty-print.h (pp_base): Override.
423 * c-pretty-print.c: Adjust use of macros throughout.
424 (pp_buffer): New macro.
425 (pp_newline): Likewise.
426 * c-objc-common.c (c_tree_printer): Adjust prototype. Tidy.
427 * Makefile.in (DIAGNOSTIC_H): New variable.
428 (c-errors.o): Use it.
429 (c-objc-common.o): Likewise.
430 (c-common.o): Likewise.
431 (c-opts.o): Likewise.
432 (c-format.o): Likewise.
433 (diagnostic.o): Likewise.
435 (toplev.o): Likewise.
436 (rtl-error.o): Likewise.
437 (dwarf2out.o): Likewise.
439 (pretty-print.o): New rule.
441 2003-07-24 Roger Sayle <roger@eyesopen.com>
443 * builtins.def (BUILT_IN_PRINTF, BUILT_IN_FPRINTF): Changed from
444 front-end builtins to normal builtins, using DEF_LIB_BUILTIN.
445 (BUILT_IN_PRINTF_UNLOCKED, BUILT_IN_FPRINTF_UNLOCKED): Changed
446 from front-end to normal builtins, using DEF_EXT_LIB_BUILTIN.
447 (DEF_FRONT_END_LIB_BUILTIN): Delete.
448 (DEF_EXT_FRONT_END_LIB_BUILTIN): Delete.
449 (BUILT_IN_FWRITE_UNLOCKED): Wrap long line.
451 * builtins.c (build_string_literal): New function to construct
452 a char* pointer to a string literal.
453 (expand_builtin_fputs): Change 2nd argument from "int ignore" to
454 "rtx target" to be consistent with other expand_builtin_* functions.
455 Change 3rd argument from "int unlocked" to "bool unlocked".
456 (expand_builtin_printf): Rewrite of c_expand_builtin_printf from
457 c-common.c to avoid front-end dependencies. Optimize printf("")
458 as a no-op when the result isn't required. Handle embedded NULs
460 (expand_builtin_fprintf): A rewrite of c_expand_builtin_fprintf
461 from c-common.c to avoid front-end dependencies. Likewise, optimize
462 fprintf(fp,"") as a no-op when the result isn't required, evaluating
463 fp for side-effects. Handle embedded NULs in format string.
464 (expand_builtin_sprintf): Fix typo.
465 (expand_builtin): Don't expand BUILT_IN_FPRINT{,_UNLOCKED} when not
466 optimizing. Adjust calls of expand_builtin_fputs to match the API
467 change. Expand BUILT_IN_PRINTF and BUILT_IN_PRINTF_UNLOCKED using
468 expand_builtin_printf. Likewise, expand BUILT_IN_FPRINTF_UNLOCKED
469 and BUILT_IN_FPRINTF using expand_builtin_fprintf.
471 * c-common.c (is_valid_printf_arglist): Delete.
472 (c_expand_builtin): Delete.
473 (c_expand_builtin_printf): Moved to builtins.c. Delete.
474 (c_expand_builtin_fprintf): Moved to builtins.c. Delete.
475 (c_expand_expr): No longer treat CALL_EXPRs specially.
476 (CALLED_AS_BUILT_IN): Delete.
478 2003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
480 PR optimization/11631
481 * gcse.c (store_motion): Connect infinite loops to exit.
483 2003-07-24 Jason Merrill <jason@redhat.com>
485 * tree.h (boolean_type_node): Move from C/C++/Java frontends.
486 (boolean_true_node, boolean_false_node): Likewise.
487 (enum tree_index): Add TI_BOOLEAN_{TYPE,FALSE,TRUE}.
488 * tree.c (build_common_tree_nodes): Init boolean_type_node.
489 (build_common_tree_nodes_2): Init boolean_{true,false}_node.
490 * stor-layout.c (set_sizetype): Handle an early BOOLEAN_TYPE.
491 * c-common.h (truthvalue_type_node): Renamed from boolean_type_node.
492 (truthvalue_true_node): Renamed from boolean_true_node.
493 (truthvalue_false_node): Renamed from boolean_false_node.
494 * c-decl.c: Just set truthvalue_* to integer_*.
495 * c-*.[ch]: s/boolean/truthvalue/. s/c_bool/boolean/.
497 2003-07-24 Roger Sayle <roger@eyesopen.com>
499 * c-decl.c (match_builtin_function_types): New subroutine of
500 duplicate_decls to test whether a redeclaration of a builtin
501 function is suitably close, i.e. the return type and all of
502 the argument types have the same modes as the builtin expects.
503 (duplicate_decls): Fuzzy type matching for builtin functions
504 moved to match_builtin_function_types.
506 2003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
508 * cfgloopmanip.c (duplicate_loop_to_header_edge): Update irreducible
511 2003-07-24 Zack Weinberg <zack@codesourcery.com>
513 * c-decl.c: Search-and-replace change 'binding level' to
514 'scope' in commentary.
515 (struct binding_level): Now struct c_scope.
516 (current_binding_level): Now current_scope.
517 (free_binding_level): Now scope_freelist.
518 (current_function_level): Now current_function_scope.
519 (global_binding_level): Now global_scope.
520 (make_binding_level): Now make_scope.
521 (pop_binding_level): Now pop_scope.
523 2003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
525 * configure.in (libgcc_visibility): Add missing whitespace.
527 2003-07-24 Richard Henderson <rth@redhat.com>
529 * libgcc-std.ver (GCC_3.3.1): Export __gcc_personality_sj0,
530 __gcc_personality_v0.
532 2003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
534 * Makefile.in: Replace pwd by ${PWD_COMMAND}.
536 2003-07-24 Nathan Sidwell <nathan@codesourcery.com>
538 * doc/invoke.texi (-fprofile-arcs, -ftest-coverage): Update
539 documentation missed from my 2003-07-09 patch.
541 2003-07-24 Nathanael Nerode <neroden@gcc.gnu.org>
543 * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Set patch level to 0 if
545 * configure: Rebuild.
547 2003-07-24 Steven Bosscher <steven@gcc.gnu.org>
550 * c-typeck.c (type_lists_compatible_p): Do not compare
551 arguments if one of them is an error_mark_node
553 2003-07-24 Alan Modra <amodra@bigpond.net.au>
555 * config/rs6000/rs6000.c (rs6000_emit_prologue): Save fp regs inline
556 if current_function_calls_eh_return.
558 2003-07-23 Mark Mitchell <mark@codesourcery.com>
560 * doc/c-tree.texi (OFFSET_TYPE): Update description.
562 2003-07-23 Bob Wilson <bob.wilson@acm.org>
564 * config/xtensa/crti.asm (_init, _fini): Increase frame size to 64.
565 * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
566 __umodsi3, __modsi3): Increase frame size to 32.
568 2003-07-23 Geoffrey Keating <geoffk@apple.com>
570 * config/rs6000/host-darwin.c: ANSIfy, update comment for sigaltstack
573 2003-07-23 Mark Mitchell <mark@codesourcery.com>
575 * doc/c-tree.texi (Types): Update documentation for OFFSET_TYPE.
577 PR optimization/10679
578 * tree-inline.c (inlinable_function_p): Honor MIN_INLINE_INSNS.
580 2003-07-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
582 PR target/11607 and PR target/11516
583 * pa.md (extzv, extv, insv): Revert latter half of last patch.
585 2003-07-22 Mark Mitchell <mark@codesourcery.com>
587 * fold-const.c (force_fit_type): Handle OFFSET_TYPE.
588 * varasam.c (output_constant): Likewise.
590 2003-07-22 Kazu Hirata <kazu@cs.umass.edu>
592 * alias.c: Fix comment formatting.
593 * c-common.c: Likewise.
594 * c-decl.c: Likewise.
595 * c-opts.c: Likewise.
596 * combine.c: Likewise.
597 * cpplib.c: Likewise.
598 * diagnostic.c: Likewise.
599 * dojump.c: Likewise.
601 * fold-const.c: Likewise.
604 * ggc-page.c: Likewise.
607 * mips-tfile.c: Likewise.
609 * regclass.c: Likewise.
610 * regmove.c: Likewise.
614 2003-07-22 Per Bothner <pbothner@apple.com>
616 * line-map.c (add_line_map): Handle invalid LEAVE request.
617 Fixes PR preprocessor/11361.
619 2003-07-22 Per Bothner <pbothner@apple.com>
621 * diagnostic.c.(diagnostic_report_current_module): Update to match
622 2003-06-05 changes to push_srcloc and pop_srcloc.
624 2003-07-22 Wolfgang Bangerth <bangerth@dealii.org>
626 * doc/trouble.texi: Better document two-stage name lookup.
628 2003-07-22 Eric Christopher <echristo@redhat.com>
630 * config/s390.c (s390_valid_pointer_mode): New.
631 (TARGET_VALID_POINTER_MODE): Use.
632 (s390_emit_prologue): Add tpf profiling hooks.
633 (s390_emit_epilogue): Ditto.
634 * config/s390.h (MASK_TPF): New.
636 (POINTERS_EXTEND_UNSIGNED): Define.
637 * config/s390.md (ptr_extend): New pattern.
639 2003-07-22 Zack Weinberg <zack@codesourcery.com>
641 * hashtable.c (approx_sqrt): Make static.
642 * hashtable.h: Don't prototype approx_sqrt.
643 * line-map.c (init_line_maps): Rename linemap_init.
644 (free_line_maps): Rename linemap_free.
645 (add_line_map): Rename linemap_add.
646 (lookup_line): Rename linemap_lookup.
647 (print_containing_files): Rename linemap_print_containing_files.
648 * linemap.h: Update to match.
650 * cpperror.c, cppinit.c, cpplib.c, cppmacro.c: Update calls to
651 linemap routines to use new names.
653 2003-07-16 Nathan Sidwell <nathan@codesourcery.com>
655 * c-common.c (handle_packed_attribute): Don't pack a struct via a
656 typedef. Propagate packedness from a main variant.
658 2003-07-22 Nathanael Nerode <neroden@gcc.gnu.org>
660 * Makefile.in (install-common): Add dependency on installdirs.
662 2003-07-21 Alexandre Oliva <aoliva@redhat.com>
664 * c-common.c (c_common_type_for_mode): Return integer types for
667 2003-07-22 Geoffrey Keating <geoffk@apple.com>
669 * c-decl.c (start_decl): Don't call maybe_apply_pragma_weak here.
670 (finish_decl): Call maybe_apply_pragma_weak here.
671 (grokdeclarator): Check that DECL_ASSEMBLER_NAME isn't set before
672 TREE_PUBLIC and TREE_STATIC are decided.
673 (start_function): Move call to maybe_apply_pragma_weak. Check that
674 DECL_ASSEMBLER_NAME isn't set too early.
676 * cpplex.c (_cpp_process_line_notes): Mention option name in
679 2003-07-22 Kazu Hirata <kazu@cs.umass.edu>
681 * combine.c (if_then_else_cond): Simplify the comparison of
682 rtx against -1, 0, and 1.
683 * loop.c (check_dbra_loop): Likewise.
684 * optabs.c (emit_conditional_move): Likewise.
685 (emit_conditional_add): Likewise.
686 * config/i386/i386.md (*movsi_or): Likewise.
687 (*movdi_or_rex6): Likewise.
689 Tue Jul 22 00:42:12 CEST 2003 Jan Hubicka <jh@suse.cz>
691 * cgraphunit.c (cgraph_finalize_compilation_unit): Remove redundant if.
693 2003-07-21 Neil Booth <neil@daikokuya.co.uk>
695 * cppfiles.c (open_file_pch): Don't put unused entries in the
696 splay tree. Remove dead code.
698 2003-07-21 Geoffrey Keating <geoffk@apple.com>
700 * c-common.h (num_in_fnames): Declare.
701 (c_static_assembler_name): Move from here...
702 * c-tree.h (c_static_assembler_name): ... to here.
703 * c-opts.c: Don't include langhooks-def.h.
704 (c_static_assembler_name): Move to c-decl.c.
705 (num_in_fnames): Make externally visible.
706 * c-decl.c: Include langhooks-def.h.
707 (c_static_assembler_name): Move from c-opts.c.
708 * Makefile.in (c-decl.o): Add $(LANGHOOKS_DEF_H).
709 (c-opts.o): Remove $(LANGHOOKS_DEF_H).
711 * c-pragma.c (maybe_apply_pragma_weak): Don't get DECL_ASSEMBLER_NAME
712 when it's not needed.
714 2003-07-21 Jakub Jelinek <jakub@redhat.com>
716 * config/rs6000/rs6000.h (machine_function): Add ra_need_lr.
717 * config/rs6000/rs6000.c (rs6000_return_addr): Set it.
718 (rs6000_emit_prologue): Save FPRs inline if set.
720 2003-07-21 H.J. Lu <hongjiu.lu@intel.com>
722 * config/ia64/ia64.md (prefetch): Support predicate.
724 2003-07-21 Josef Zlomek <zlomekj@suse.cz>
726 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Use tablejump_p.
727 * rtlanal.c (tablejump_p): Use next_active_insn for finding the jump
730 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
732 PR optimization/11536
733 * unroll.c (loop_iterations): Do not replace a register holding
734 the final value by its equivalent before the loop if it is not
737 2003-07-21 Dave Fluri <dave.fluri@onlink.net>
739 * doc/extend.texi: Fixes to spelling, grammar, and diction.
741 2003-07-21 Ben Elliston <bje@wasabisystems.com>
743 * doc/invoke.texi (Optimize Options): Replace "it's" with "its".
744 (V850 Options): Spelling fixes.
746 2003-07-20 Lisa M. Goldstein <opus@gnu.org>
748 * doc/invoke.texi: Fixes to style, grammar and diction.
750 2003-07-20 Roger Sayle <roger@eyesopen.com>
752 * builtins.def (BUILT_IN_ALLOCA): Remove "#if SMALL_STACK" form.
753 * system.h (SMALL_STACK): Poison obsolete target macro.
754 * doc/tm.texi (SMALL_STACK): Remove target macro documentation.
756 2003-07-20 Phil Edwards <pme@gcc.gnu.org>
758 * configure.in: Cache the results of testing for cmp's capabilities.
759 * configure: Regenerate.
761 2003-07-20 Mark Mitchell <mark@codesourcery.com>
764 * dwarf2out.c (gen_enumeration_type_die): Remember that
765 enumerators can be unsigned.
767 2003-07-19 Zack Weinberg <zack@codesourcery.com>
769 * c-decl.c (named_labels, shadowed_labels, label_level_chain)
770 (push_label_level, pop_label_level): Kill.
771 (struct binding_level): Rename level_chain to outer.
772 Add outer_function field. Change parm_flag, function_body,
773 keep, keep_if_subblocks to 1-bit bitfields of type bool.
774 (current_function_level): New variable.
775 (keep_next_level_flag, keep_next_if_subblocks): Change type to bool.
776 (keep_next_level, declare_parm_level, warn_if_shadowing):
778 (struct language_function): Kill named_labels, shadowed_labels fields.
779 (c_init_decl_processing, start_function, c_push__function_context)
780 (c_pop_function_context): No need to muck with named_labels nor
783 (make_binding_level): No need to clear the structure here.
784 (pop_binding_level): Always operate on current_binding_level.
785 Update current_function_level if necessary.
786 (pushlevel): Don't clear named_labels. Update current_function_level
787 if necessary. Use "true" and "false" where appropriate.
788 (poplevel): Diagnose labels defined but not used, or vice
789 versa, and clear out label-meanings leaving scope, while
790 walking down the decls list, for all binding levels.
791 Handle LABEL_DECLs appearing in the shadowed list.
792 pop_binding_level takes no arguments.
793 (pushdecl_function_level): Use current_function_level.
795 (make_label, bind_label): New static functions.
796 (declare_label): New exported function.
797 (lookup_label, define_label): Rewritten for new data structure.
798 (shadow_label): Kill.
800 * c-tree.h: Prototype declare_label; don't prototype
801 push_label_level, pop_label_level, nor shadow_label.
802 * c-parse.in: Remove all calls to push_label_level and
803 pop_label_level. Use declare_label for __label__ decls.
805 * doc/extend.texi: Clarify that __label__ can be used to
806 declare labels with local scope in any nested block, not
807 just statement expressions. Cross-reference nested functions
808 section from local labels section.
810 2003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
812 * sched-rgn.c (find_rgns): Initialize current_edge correctly.
814 2003-07-19 Phil Edwards <pme@gcc.gnu.org>
816 * doc/makefile.texi (restrap, profiledbootstrap): Document targets.
818 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
820 * fixinc/fixfixes.c fixinc/fixincl.c fixinc/fixlib.c
821 fixinc/server.c objc/objc-act.c: Remove unnecessary casts.
823 2003-07-19 Ulrich Weigand <uweigand@de.ibm.com>
825 * config/s390/s390.c (legitimize_pic_address): Access local symbols
826 relative to the GOT instead of relative to the literal pool base.
827 (s390_output_symbolic_const): Handle new GOT-relative accesses.
828 * config/s390/s390.md ("call"): Access local functions and PLT stubs
829 relative to the GOT instead of relative to the literal pool base.
830 ("call_value"): Likewise.
831 ("call_value_tls"): Likewise.
833 * config/s390/s390.c (s390_chunkify_start): Remove pool anchor
834 reloading. Support LTREL_BASE / LTREL_OFFSET construct.
835 (s390_chunkify_finish): Likewise.
836 (s390_chunkify_cancel): Likewise.
837 (s390_reorg): Adapt caller.
838 (find_base_register_in_addr,
839 find_base_register_ref, replace_base_register_ref): Delete.
840 (find_ltrel_base, replace_ltrel_base): New functions.
841 (find_constant_pool_ref): Handle LTREL_BASE unspecs.
842 (s390_decompose_address): Handle LTREL_BASE unspecs. Optimize
843 base vs. index register usage.
844 (struct constant_pool): Remove 'anchor'.
845 (s390_add_anchor): Delete.
846 (s390_dump_pool): Remove anchor handling.
847 * config/s390/s390.md ("reload_anchor"): Remove.
849 * config/s390/s390.c (s390_split_branches): Use LTREL_BASE/OFFSET.
850 (s390_load_got): New function. Use LTREL_BASE/OFFSET.
851 (s390_emit_prologue): Use it.
852 * config/s390/s390.md ("builtin_longjmp", "builtin_setjmp_setup",
853 "builtin_setjmp_receiver"): Cleanup. Use s390_load_got. Do not
854 hard-code register 14.
855 * config/s390/s390-protos.h (s390_load_got): Declare.
857 * config/s390/s390.c (NR_C_MODES, constant_modes, gen_consttable):
858 Support TImode constants.
859 * config/s390/s390.md ("consttable_ti"): New.
860 ("consttable_si", "consttable_di"): Handle TLS symbols correctly.
862 * config/s390/s390.md (UNSPEC_LTREL_OFFSET, UNSPEC_LTREL_BASE,
863 UNSPEC_GOTENT, UNSPEC_GOT, UNSPEC_GOTOFF, UNSPEC_PLT, UNSPEC_PLTOFF,
864 UNSPEC_RELOAD_BASE, UNSPECV_POOL, UNSPECV_POOL_START, UNSPECV_POOL_END,
865 UNSPECV_POOL_QI, UNSPECV_POOL_HI, UNSPECV_POOL_SI, UNSPECV_POOL_DI,
866 UNSPECV_POOL_TI, UNSPECV_POOL_SF, UNSPECV_POOL_DF, UNSPECV_MAIN_POOL):
867 New symbolic constants.
868 ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
869 "consttable_sf", "consttable_df", "pool_start_31", "pool_end_31",
870 "pool_start_64", "pool_end_64", "reload_base_31", "reload_base_64",
871 "pool", "literal_pool_31", "literal_pool_64"): Cleanup. Use
872 symbolic UNSPEC values.
873 * config/s390/s390.c (larl_operand, s390_short_displacement,
874 bras_sym_operand, s390_cannot_force_const_mem,
875 s390_delegitimize_address, s390_decompose_address,
876 legitimize_pic_address, s390_output_symbolic_const,
877 s390_function_profiler): Use symbolic UNSPEC values.
879 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
881 * alias.c alloc-pool.c bitmap.c bitmap.h bt-load.c builtins.c
882 c-common.c c-decl.c c-incpath.c c-lex.c c-opts.c c-parse.in
883 c-pragma.c c-typeck.c calls.c cfg.c cfganal.c cfgloop.c cfgrtl.c
884 collect2.c combine.c conflict.c coverage.c cppexp.c cppfiles.c
885 cpphash.c cppinit.c cpplex.c cpplib.c cppmacro.c cppspec.c
886 cpptrad.c cse.c cselib.c dbxout.c defaults.h df.c dominance.c
887 dwarf2out.c dwarfout.c emit-rtl.c except.c expmed.c expr.c final.c
888 fix-header.c flow.c fold-const.c function.c gcc.c gccspec.c gcov.c
889 gcse.c genattr.c genattrtab.c genautomata.c genconditions.c
890 genemit.c genextract.c genoutput.c genrecog.c gensupport.c
891 ggc-page.c ggc-simple.c global.c graph.c haifa-sched.c hashtable.c
892 integrate.c jump.c langhooks.c lcm.c line-map.c local-alloc.c
893 loop.c mips-tdump.c mips-tfile.c mkdeps.c optabs.c params.c
894 postreload.c prefix.c print-tree.c protoize.c ra-build.c
895 ra-colorize.c ra-rewrite.c ra.c recog.c reg-stack.c regclass.c
896 regmove.c regrename.c reload.c reload1.c reorg.c resource.c
897 sbitmap.c sched-deps.c sched-rgn.c sched-vis.c sdbout.c
898 simplify-rtx.c ssa-ccp.c ssa.c stmt.c stor-layout.c timevar.c
899 tlink.c toplev.c tree-dump.c tree.c unroll.c unwind-dw2-fde.c
900 varasm.c varray.c vmsdbgout.c xcoffout.c: Remove unnecessary
903 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
905 * c-pragma.c (apply_pragma_weak): Don't use warning_with_decl.
906 * toplev.h (warning): Remove attribute.
908 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
910 * c-decl.c (c_finish_incomplete_decl): Don't use xxx_with_decl.
911 (pop_label_level): Likewise.
912 (duplicate_decls): Likewise.
913 (implicitly_declare): Likewise.
914 (shadow_label): Likewise.
915 (start_decl): Likewise.
916 (finish_decl): Likewise.
917 (grokdeclarator): Likewise.
918 (get_parm_info): Likewise.
919 (detect_field_duplicates): Likewise.
920 (finish_struct): Likewise.
921 (start_function): Likewise.
922 (store_parm_decls): Likewise.
923 (finish_function): Likewise.
924 (c_expand_body_1): Likewise.
925 (check_for_loop_decls): Likewise.
926 (merge_translation_unit_decls): Likewise.
928 2003-07-19 Neil Booth <neil@daikokuya.co.uk>
930 * common.opt: Document --param.
931 * opts.c (columns, undocumented_msg): New.
932 (print_help): Get number of columns from environment. Print
933 --param help. Tweak newline handling.
934 (print_param_help): New.
935 (print_filtered_help): Better handling of duplicates. Complain
936 about undocumented switches.
938 (wrap_help): Improve wrapping, use COLUMNS.
939 * opts.sh: Ignore comments in records.
940 * params.def: Fix typos and remove trailing periods.
941 * toplev.c (display_help): Don't dump --param help.
942 * doc/sourcebuild.texi: Update.
944 2003-07-18 Richard Henderson <rth@redhat.com>
947 * optabs.c (prepare_operand): Fail gracefully instead of abort
948 if the predicate doesn't satisfy.
949 (gen_cond_trap): Allow prepare_operand to fail.
951 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
953 * c-common.c: Don't undefine GCC_DIAG_STYLE.
954 (fname_decl): Don't use xxx_with_decl.
955 (c_add_case_label): Likewise.
956 (handle_section_attribute): Likewise.
957 (handle_alias_attribute): Likewise.
958 (handle_no_instrument_function_attribute): Likewise.
959 (handle_no_limit_stack_attribute): Likewise.
960 * c-objc-common.c (c_tree_printer): Print IDENTIFIER_NODEs.
961 * c-format.c (gcc_cdiag_char_table): Add '%E' format-specifier.
963 2003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
965 * Makefile.in (ifcvt.o): Add cfgloop.h.
966 * basic-block.h (EDGE_LOOP_EXIT): New flag.
967 * cfgrtl.c (rtl_verify_flow_info_1): Handle it correctly.
968 * ifcvt.c: Include cfgloop.h.
969 (mark_loop_exit_edges): New static function.
970 (if_convert): Call it.
971 (find_if_header): Ignore branches out of loops.
973 2003-07-18 Kazu Hirata <kazu@cs.umass.edu>
975 * combine.c (simplify_comparison): Don't share rtx when converting
976 (ne (and (not X) 1) 0) to (eq (and X 1) 0).
978 2003-07-18 David Edelsohn <edelsohn@gnu.org>
980 * config/rs6000/aix.h (AGGREGATE_PADDING_FIXED): Define.
981 (AGGREGATES_PAD_UPWARD_ALWAYS): Define.
982 (MUST_PASS_IN_STACK): Define.
983 (BLOCK_REG_PADDING): Define.
985 2003-07-18 Richard Henderson <rth@redhat.com>
987 * cfgrtl.c (force_nonfallthru_and_redirect): Use tablejump_p
988 to skip the addr_vec.
990 Fri Jul 18 15:22:28 2003 Alexandre Oliva <aoliva@redhat.com>
992 * combine.c (combinable_i3pat): Don't forbid occurrences of
993 i2dest or i1dest in inner_dest if inner_dest is a mem.
995 Fri Jul 18 17:05:57 CEST 2003 Jan Hubicka <jh@suse.cz>
997 * cgraph.c (cgraph_remove_node): Clear the hash table slot.
999 2003-07-17 Jakub Jelinek <jakub@redhat.com>
1002 * loop.c (basic_induction_var): Check if convert_modes emitted any
1003 instructions. Remove them and return 0 if so.
1005 2003-07-18 Eric Botcazou <ebotcazou@libertysurf.fr>
1007 PR optimization/11083
1008 * toplev.c (rest_of_handle_addresof): Rename into
1009 rest_of_handle_addressof. Delete unreachable blocks
1010 if dead edges were purged after the addressof pass.
1012 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
1014 * Makefile.in, configure, configure.in: Remove handling of
1015 lang-options.h and options_.h.
1016 * toplev.c (struct lang_opt, documented_lang_options): Remove.
1017 (display_help): Don't use documented_lang_options.
1019 2003-07-17 Zack Weinberg <zack@codesourcery.com>
1021 * c-decl.c (pushdecl_function_level): Make static, return nothing.
1022 (kept_level_p): Fold into poplevel.
1023 (undeclared_variable): Moved here from c-typeck.c. Export.
1024 * c-tree.h (KEEP_YES, KEEP_NO, KEEP_MAYBE): New #defines.
1025 (undeclared_variable): Prototype here. Don't prototype
1026 kept_level_p nor pushdecl_function_level.
1027 * c-parse.in: Change first argument to poplevel from
1028 "kept_level_p()" to "KEEP_MAYBE".
1029 * c-typeck.c (undeclared_variable): Moved to c-decl.c.
1031 2003-07-17 Roger Sayle <roger@eyesopen.com>
1033 * simplify-rtx.c (simplify_rtx): Use simplify_gen_binary to swap
1034 commutative operands instead of modifying the RTL in-place.
1036 2003-07-17 Mark Mitchell <mark@codesourcery.com>
1038 PR optimization/11557
1039 * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK
1040 unless we know which function is being called.
1042 2003-07-17 Roger Sayle <roger@eyesopen.com>
1044 * cse.c (fold_rtx): Use swap_commutative_operands_p to determine
1045 whether to reorder the operands of a commutative binary operator.
1047 2003-07-17 Roger Sayle <roger@eyesopen.com>
1049 * fold-const.c (const_binop): Avoid performing the FP operation at
1050 compile-time, if either operand is NaN and we honor signaling NaNs,
1051 or if we're dividing by zero and either flag_trapping_math is set
1052 or the desired mode doesn't support infinities.
1053 (fold_initializer): New function to fold an expression ignoring any
1054 potential run-time exceptions or traps.
1055 * tree.h (fold_initializer): Prototype here.
1056 * c-typeck.c (build_binary_op): Move to the end of the file so
1057 that intializer_stack is in scope. If constructing an initializer,
1058 i.e. when initializer_stack is not NULL, use fold_initializer to
1060 * simplify-rtx.c (simplify_binary_operation): Likewise, avoid
1061 performing FP operations at compile-time, if they would raise an
1062 exception at run-time.
1064 2003-07-17 Geoffrey Keating <geoffk@apple.com>
1067 * Makefile.in (c-opts.o): Add $(LANGHOOKS_DEF_H).
1068 (langhooks.o): Add $(GGC_H), gt-langhooks.h.
1069 (GTFILES): Add langhooks.c.
1070 (gt-langhooks.h): New.
1071 * c-common.h (c_static_assembler_name): Prototype.
1072 * c-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
1073 * objc/objc-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
1074 * c-opts.c: Include langhooks-def.h.
1075 (c_static_assembler_name): New.
1076 * langhooks.c: Include ggc.h. Include gt-langhooks.h.
1078 (lhd_set_decl_assembler_name): Give static objects with context
1080 * varasm.c (var_labelno): Delete.
1081 (make_decl_rtl): Don't change the assembler name once it's set.
1083 * c-opts.c (this_input_filename): New.
1084 (finish_options): Take new parameter, name of file being compiled.
1085 Update callers. Set this_input_filename.
1086 (push_command_line_include): Use this_input_filename not
1087 main_input_filename.
1089 2003-07-17 Neil Booth <neil@daikokuya.co.uk>
1091 * Makefile.in: Depend .pot generation on options.c.
1092 * po/exgettext: Add an extra_files variable containing additional
1095 2003-07-17 Zack Weinberg <zack@codesourcery.com>
1097 * objc/objc-lang.c: Override LANG_HOOKS_WRITE_GLOBALS to
1098 c_write_global_declarations.
1100 * c-decl.c: Fix typos in several comments. Remove all
1101 #if 0 blocks; reindent as needed. Remove unused argument
1102 to declare_parm_level; all callers changed.
1103 * c-parse.in: Update calls to declare_parm_level. Avoid
1104 issuing a double warning in some circumstances.
1105 * c-typeck.c: Update calls to declare_parm_level.
1106 * c-tree.h: Update prototype of declare_parm_level.
1108 * c-pragma.c (apply_pragma_weak): Don't complain about a
1109 redundant #pragma weak.
1111 * objc/objc-act.c (forward_declare_categories,
1112 build_selector_reference_decl, build_class_reference_decl,
1113 build_objc_string_decl, synth_forward_declarations,
1114 build_protocol_reference): Set TREE_PUBLIC on synthetic
1115 forward decl to 0, consistent with eventual definition.
1116 Correct comments to match.
1118 * fixinc/inclhack.def (solaris_mutex_init_2): Escape braces
1119 in regexp that don't form a range expression.
1120 * fixinc/fixincl.def: Regenerate.
1122 2003-07-17 Richard Henderson <rth@redhat.com>
1125 * config/ia64/ia64.c (ia64_epilogue_uses): GP is live at end
1126 even with !TARGET_CONST_GP.
1127 (ia64_function_ok_for_sibcall): Reject non-local functions.
1129 2003-07-17 Steven Bosscher <steven@gcc.gnu.org>
1131 * c-common.c (c_estimate_num_insns_1): Don't handle
1133 * expr.c (safe_from_p): Likewise.
1134 * gengtype.c (adjust_field_tree_exp): Likewise.
1135 * stmt.c (warn_if_unused_value): Likewise
1136 * tree.c (first_rtl_op): Likewise.
1137 * tree.def: Don't define METHOD_CALL_EXPR.
1138 * java/lang.c (java_estimate_num_insns_1): Don't handle
1141 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
1144 * doc/invoke.texi (SPARC Options): Document "-mlittle-endian"
1145 and its restrictions for the SPARC64 port.
1146 Move the entry of "-mimpure-text" before that of "-mv8".
1148 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
1149 Phil Edwards <phil@jaj.com>
1151 * doc/install.texi (*-*-solaris2*): Document the step-by-step
1152 procedure to bootstrap and install.
1153 Document the preference for the legacy Sun tools in /usr/bin
1154 over the POSIX tools in /usr/xpg4/bin for the build process.
1156 2003-07-17 Neil Booth <neil@daikokuya.co.uk>
1158 * c.opt: Document Uncodumented; use it. Document ObjC options.
1159 * opts.c (print_filtered_help): Skip undocumented switches.
1160 * opts.h (CL_UNDOCUMENTED): New.
1161 * opts.sh: Handle Undocumented.
1162 * toplev.c (documented_lang_options): Prevent its becoming empty.
1164 * lang-options.h: Remove.
1166 2003-07-16 Ulrich Weigand <uweigand@de.ibm.com>
1168 * loop.c (check_ext_dependent_givs): Pass const struct loop *
1169 instead of struct loop_info * as argument. Accept BIVs with
1170 increment +/- 1 provided there is a friendly exit test against
1171 a loop-invariant value.
1172 (strength_reduce): Adapt call to check_ext_dependent_givs.
1174 2003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
1175 Con Bradley <con.bradley@superh.com>
1177 * sh-protos.h (sh_get_pr_initial_val): Declare.
1178 * sh.c (regno_reg_class): Make its elements type enum reg_class.
1179 (output_stack_adjust): Remove emit_fn argument. Add epilogue_p
1180 and live_regs_mask arguments. Changed all callers.
1181 (save_schedule_s): New structure.
1182 (save_schedule): New typedef.
1183 (scavenge_reg, sh5_schedule_saves, sh5_schedule_saves): New functions.
1184 (calc_live_regs): For TARGET_SHMEDIA, use leaf_function_p.
1185 In interrupts handlers, also save registers that are usually
1186 partially saved, and make sure there is at least one general purpose
1187 register saved if a target register needs saving.
1188 Add casts in comparisons to avoid warnings.
1189 (sh_media_register_for_return): return -1 for interrupt handlers.
1190 (MAX_SAVED_REGS, MAX_TEMPS): New defines.
1191 (sh_expand_prologue): Use sh5_schedule_saves. Check that any temp
1192 registers used are available.
1193 Set RTX_FRAME_RELATED_P where appropriate.
1194 Add an REG_FRAME_RELATED_EXPR for r0 + offset addressing.
1195 (sh_expand_epilogue, sh_set_return_address): Use sh5_schedule_saves.
1196 (initial_elimination_offset): Likewise.
1197 * sh.h (DWARF_CIE_DATA_ALIGNMENT): Set to -4.
1198 (LOCAL_ALIGNMENT, GENERAL_REGISTER_P): Add casts to avoid warnings.
1199 (FP_REGISTER_P): Add casts to fix broken handling of unsigned REGNO.
1200 (XD_REGISTER_P, TARGET_REGISTER_P): Likewise.
1201 (HARD_REGNO_CALL_PART_CLOBBERED): Also yield nonzero for r15,
1202 and for target registers.
1203 (RETURN_IN_MEMORY): Add parentheses to avoid warnings.
1204 (regno_reg_class): Make its elements type enum reg_class.
1205 (CONSTRAINT_LEN): Don't use isdigit.
1206 (FUNCTION_ARG_REGNO_P): Add casts to avoid warnings.
1207 (FUNCTION_ARG): Add parentheses to avoid warnings.
1208 (RETURN_ADDR_RTX): Use sh_get_pr_initial_val.
1209 (RETURN_ADDR_OFFSET): Define to -1 for TARGET_SH5.
1210 (SH_DBX_REGISTER_NUMBER): Add casts to avoid warnings.
1211 (EH_RETURN_DATA_REGNO): Use unsigned constants to avoid warnings.
1212 * sh.md (xordi3+1): Remove unused variable regno.
1213 (return_media): Check that tr0 is available before using it.
1215 2003-07-16 Neil Booth <neil@daikokuya.co.uk>
1217 * c.opt: Document more options.
1219 2003-07-16 Roger Sayle <roger@eyesopen.com>
1221 * combine.c (subst): Also handle (subreg (const_double ...)) case
1222 if created by a substitution, by using the original inner mode.
1224 2003-07-16 Roger Sayle <roger@eyesopen.com>
1226 * simplify-rtx.c (simplify_replace_rtx): Convert constant comparisons
1227 to MODE_FLOAT constants if FLOAT_STORE_FLAG_VALUE is defined.
1228 (simplify_rtx): Likewise. Simplify (lo_sum (high X) X) as X.
1230 2003-07-16 Andrew Pinski <pinskia@physics.uc.edu>
1232 * doc/install.texi (--without-headers): New.
1234 Partial Fix PR/10129
1235 * config/darwin.c (machopic_function_base_name): Only Return "<pic base>".
1236 (machopic_output_function_base_name): New; print the true pic label.
1237 (machopic_classify_ident): Pic Base is always a defined data.
1238 * config/darwin.h (ASM_OUTPUT_LABELREF): Support the pic base label.
1239 * config/darwin-proto.h (machopic_output_function_base_name): Prototype.
1241 * gcse.c (gcse_constant_p): COMPARE of the same registers is a constant
1242 if they are not floating point registers.
1245 * ggc.h: Add header guards.
1246 * c-decl.c (finish_struct): Sort fields if
1247 number greater than 15 and there are no
1248 anonymous structs/unions.
1249 * c-common.h: Include ggc.h.
1250 (sorted_fields_type): New struct.
1251 (field_decl_cmp): New prototype.
1252 (resort_sorted_fields): New prototype.
1253 (DECL_DECLARES_TYPE_NON_TEMPLATE_P): New macro.
1254 * c-tree.h: (lang_type): Use pointer to sorted_fields_type
1255 as s, removing other fields.
1256 * c-typeck.c (lookup_field): Use s in lang_type.
1257 These were mostly moved from cp/class.c:
1258 * c-common.c (field_decl_cmp): New static function.
1259 (field_decl_cmp): New function.
1260 (resort_sorted_fields): New function.
1262 2003-07-16 Geoffrey Keating <geoffk@apple.com>
1264 * config/darwin.c (machopic_select_section): Use decl_readonly_section
1265 to do most of the work.
1267 2003-07-16 Hans-Peter Nilsson <hp@bitrange.com>
1269 * config/mmix/mmix-protos.h: Convert prototypes to ISO C90.
1270 * config/mmix/mmix.c: Convert functions to ISO C90.
1271 (mmix_eh_return_handler_rtx, mmix_output_shifted_value): Tweak
1273 (mmix_get_hard_reg_initial_val): Tweak section head comment.
1275 2003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
1277 * c-pragma.h (HANDLE_PRAGMA_WEAK): Always define to SUPPORTS_WEAK.
1279 2003-07-16 Jakub Jelinek <jakub@redhat.com>
1281 * unwind-dw2.c (MD_FROB_UPDATE_CONTEXT): Define.
1282 (uw_update_context_1): Use it.
1283 * config/rs6000/rs6000.c (insn_after_throw): Remove.
1284 (rs6000_aix_emit_builtin_unwind_init): Save $r2 to its location
1285 in parent frame if _Unwind_* called directly instead of through
1287 (rs6000_emit_eh_toc_restore): Remove.
1288 (rs6000_emit_prologue): Update stack pointer before doing any saving
1289 if current_function_calls_eh_return. Generate unwind info for $r2.
1290 (rs6000_emit_epilogue): Restore stack pointer after doing all
1291 restoring if current_function_calls_eh_return. Restore $r2.
1292 * config/rs6000/rs6000-protos.h (rs6000_emit_eh_toc_restore): Remove.
1293 * config/rs6000/rs6000.md (eh_return): Remove call to
1294 rs6000_emit_eh_toc_restore.
1295 * config/rs6000/linux64.h (MD_FROB_UPDATE_CONTEXT): Define.
1296 * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Define.
1298 2003-07-15 Jakub Jelinek <jakub@redhat.com>
1300 * expr.c (emit_block_move): Don't move anything if size is const 0.
1301 (clear_storage): Test against const0_rtx instead of comparing INTVAL
1304 2003-07-15 David S. Miller <davem@redhat.com>
1306 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Only
1307 emit nop if the last real insn is CALL_INSN.
1309 2003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
1311 * config/i386/xm-mingw32.h (HOST_BIT_BUCKET): Define
1313 * config/i386/xm-mingw32.h: Change GNU CC to GCC.
1315 2003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
1317 * config/i386/winnt.c (associated_type): Artificial methods are not
1318 affected by the import/export status of their class unless they are
1320 (i386_pe_dllimport_p): Do not mark artificial methods as dllimport.
1322 * config/i386/winnt.c: Fix GCC copyright comment.
1324 2003-07-16 Gabriel Dos Reis <gcc@integrable-solutions.net>
1327 * diagnostic.c (diagnostic_report_diagnostic): Don't ICE if we're
1328 not recursing on hard error.
1329 (diagnostic_for_decl): Likewise.
1330 * diagnostic.def: Rearrange.
1332 2003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
1334 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
1335 If DWARF_FRAME_RETURN_COLUMN doesn't have a register mode, use Pmode.
1337 2003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
1338 Richard Henderson <rth@redhat.com>
1340 * unwind-dw2.c (_Unwind_GetGR): Use dwarf_reg_size_table
1341 to decide if to access a _Unwind_Ptr or a _Unwind_Word.
1342 (_Unwind_SetGR): Likewise.
1343 (_Unwind_GetPtr, _Unwind_SetSpColumn): New functions.
1344 (Unwind_SpTmp): New typedef.
1345 (uw_update_context_1): Use _Unwind_SetSpColumn and _Unwind_GetPtr.
1346 (uw_update_context): Use _Unwind_GetPtr.
1347 (init_dwarf_reg_size_table): Move above uw_init_context_1.
1348 (uw_init_context_1): Initialize dwarf_reg_size_table if necessary.
1349 Use _Unwind_SetSpColumn.
1350 (uw_install_context_1): Don't initialize dwarf_reg_size_table.
1353 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
1355 * c.opt: Document more options.
1356 * toplev.c (documented_lang_options): Remove all local help strings.
1358 2003-07-15 Mark Mitchell <mark@codesourcery.com>
1361 * dbxout.c (dbxout_type): Use TYPE_SIZE to determine the sizes of
1364 2003-07-15 Kazu Hirata <kazu@cs.umass.edu>
1367 * config/i386/i386.c (ix86_expand_carry_flag_compare): Don't
1368 swap comparison operands if doing so would generate an
1369 unrecognizable insn.
1371 2003-07-15 Eric Botcazou <ebotcazou@libertysurf.fr>
1373 PR optimization/11320
1374 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
1375 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
1376 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
1377 current_sched_info->compute_jump_reg_dependencies. Record which
1378 registers are used and which registers are set by the jump.
1379 Clear deps->reg_conditional_sets after a barrier.
1380 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
1381 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
1382 (init_deps): Initialize reg_conditional_sets.
1383 (free_deps): Clear reg_conditional_sets.
1384 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
1385 Mark registers live on entry of the fallthrough block and conditionally
1386 set as set by the jump. Mark registers live on entry of non-fallthrough
1387 blocks as used by the jump.
1388 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
1389 Mark new parameters as unused.
1391 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
1393 * doc/invoke.texi: Resync MIPS -march documentation.
1395 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
1397 * config/mips/mips.h (PROCESSOR_R9000): New processor_type.
1398 (TARGET_MIPS9000, TUNE_MIPS9000): New macros.
1399 (GENERATE_MULT3_SI): True for TARGET_MIPS9000.
1400 * config/mips/mips.c (mips_cpu_info_table): Add rm9000 entry.
1401 (mips_rtx_costs): Adjust integer multiplication costs for the rm9000.
1402 (mips_issue_rate): Handle PROCESSOR_R9000.
1403 (mips_use_dfa_pipeline_interface): Likewise.
1404 * config/mips/9000.md: New file.
1405 * config/mips/mips.md: Include it.
1406 (define_attr cpu): Add r9000.
1407 (mulsi3_mult3): Use "mul" for rm9000 code.
1409 2003-07-15 Stan Cox <scox@redhat.com>
1411 * config/mips/mips.h (PROCESSOR_R7000): New processor_type.
1412 (TARGET_MIPS7000, TUNE_MIPS7000): New macros.
1413 (GENERATE_MULT3_SI): True for TARGET_MIPS7000.
1414 * config/mips/mips.c (mips_cpu_info_table): Add rm7000 entry.
1415 (mips_rtx_costs): Adjust integer multiplication costs for the rm7000.
1416 (mips_issue_rate): Handle PROCESSOR_R7000.
1417 (mips_use_dfa_pipeline_interface): Likewise.
1418 * config/mips/7000.md: New file.
1419 * config/mips/mips.md: Include it.
1420 (define_attr cpu): Add r7000.
1421 (mulsi3_mult3): Use "mul" for rm7000 code.
1423 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
1425 * config/mips/mips.md (define_attr type): Add condmove. Use it for
1426 the conditional move patterns.
1427 * config/mips/5400.md (ir_vr54_move): Rename to ir_vr54_condmove.
1428 Check for condmove type.
1429 (ir_vr54_arith): Add move type.
1430 * config/mips/5500.md (ir_vr55_move, ir_vr55_arith): Likewise.
1431 * config/mips/sr71k.md (ir_sr70_move, ir_sr70_arith): Likewise.
1433 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
1435 * c-opts.c (print_help): Remove.
1436 (c_common_handle_option): Don't handle --help.
1437 * c.opt: Document some options.
1439 * opts.c (print_filtered_help): New.
1440 (print_help): Use it.
1442 2003-07-14 Geoffrey Keating <geoffk@apple.com>
1444 * c-common.c (c_common_type_for_mode): Handle V4DFmode.
1445 * tree.c: (build_common_tree_nodes_2): Likewise.
1446 * tree.h (enum tree_index): Add TI_V4DF_TYPE.
1447 (V4DF_type_node): New.
1449 * c-opts.c (push_command_line_include): Don't free deferred_opts,
1451 (finish_options): Reset init_cursor.
1453 2003-07-15 Kazu Hirata <kazu@cs.umass.edu>
1455 * expr.c (expand_assignment): Remove an unused argument
1457 * expr.h: Update the prototype.
1458 * function.c: Update the callers.
1461 2003-07-14 Mark Mitchell <mark@codesourcery.com>
1464 * integrate.c (copy_decl_for_inlining): Do not mark copied decls
1467 2003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
1469 * fixinc/inclhack.def (avoid_bool_define, avoid_bool_type): Bypass
1470 with __cplusplus, not "we must use the C++ compiler's type"
1471 * fixinc/inclhack.def (void_null): Note that Interix needs this.
1472 * fixinc/fixincl.x: Regenerate.
1474 2003-07-14 Geoffrey Keating <geoffk@apple.com>
1476 * unwind-dw2-fde-darwin.c (live_image_destructor): Get seen_objects
1477 and unseen_objects from the global data before calling
1478 __deregister_frame_info_bases.
1479 (examine_objects): Insert objects into the seen_objects list,
1481 (_Unwind_Find_FDE): Always unlock the global object lists, even if
1482 we couldn't allocate a data structure to put in it.
1484 * objc/objc-act.h (CLASS_SUPER_NAME): Add a little typechecking.
1485 (TYPE_PROTOCOL_LIST): Share use of type.context with C frontend.
1486 (SET_TYPE_PROTOCOL_LIST): New.
1487 * objc/objc-act.c (get_static_reference): Use SET_TYPE_PROTOCOL_LIST.
1488 (get_object_reference): Likewise.
1490 Mon Jul 14 23:14:28 CEST 2003 Jan Hubicka <jh@suse.cz>
1492 * cfglayout.c (locator_file): Break out from ....
1493 (insn_file): ... here.
1494 (locator_line): Break out from ....
1495 (insn_line): ... here.
1496 * rtl.h (locator_file, locator_line): Declare.
1497 (final_start_function): Set proper line/file info.
1499 2003-07-14 Gabriel Dos Reis <gdr@integrable-solutions.net>
1501 * c-pretty-print.c (pp_c_unary_expression): A CONVERT_EXPR is
1502 handled by pp_c_cast_expression.
1504 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
1506 * config/mips/mips.c (mips_expand_prologue): Use a single insn to
1507 allocate 32768 bytes of stack. Use addition rather than subtraction
1508 when a single insn is enough.
1509 * config/mips/mips.md: Remove insns and splitters for subtracting
1511 (subsi3): Only accept register operands.
1512 (subsi3_internal): Likewise. Use for TARGET_MIPS16 as well.
1513 (subdi3_internal_3, subsi3_internal_2): Likewise.
1514 (casesi): Use expand_binop to subtract the lower bound.
1516 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
1518 * config/mips/mips.c (mips_in_small_data_p): Don't handle
1519 TARGET_MIPS16 specially.
1521 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
1523 * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Use
1524 mips_output_aligned_bss.
1525 * config/mips/linux.h: Likewise.
1526 * config/mips/mips-protos.h (mips_output_aligned_bss): Declare.
1527 * config/mips/mips.c (mips_output_aligned_bss): New function.
1529 * config/mips/elf.h (DBX_DEBUGGING_INFO): Delete.
1530 * config/mips/elf64.h: Likewise.
1532 * config/mips/elf.h (ASM_DECLARE_OBJECT_NAME): Use
1533 mips_declare_object_name.
1534 (ASM_FINISH_DECLARE_OBJECT): Likewise mips_finish_declare_object.
1535 * config/mips/elf64.h: As for elf.h.
1536 * config/mips/iris6.h: Likewise.
1537 * config/mips/linux.h (ASM_DECLARE_OBJECT_NAME): As for elf.h.
1538 * config/mips/mips.h (ASM_DECLARE_OBJECT_NAME): Remove unnecessary
1539 do...while (0) block.
1540 * config/mips/mips-protos.h (mips_declare_object_name): Declare.
1541 (mips_finish_declare_object): Declare.
1542 * config/mips/mips.c (mips_declare_object_name): New function.
1543 (mips_finish_declare_object): New function.
1545 * config/mips/elf.h (SBSS_SECTION_ASM_OP): Delete.
1546 * config/mips/linux.h: Likewise.
1548 * config/mips/mips.c (inside_function): Delete.
1549 (file_in_function_warning, ignore_line_number): Delete.
1550 (mips_output_filename): Don't warn about changing filenames within
1552 (mips_output_lineno): Update accordingly.
1553 (mips_output_function_prologue): Don't reset the deleted variables.
1554 * config/mips/mips.h (inside_function): Delete.
1555 (file_in_function_warning, ignore_line_number): Delete.
1557 * config/mips/elf.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Remove undefs.
1558 * config/mips/elf64.h: Likewise.
1559 * config/mips/openbsd.h: Likewise.
1560 * config/mips/iris5.h (OBJECT_FORMAT_COFF): Remove undefs.
1561 * config/mips/linux.h: Likewise.
1562 * config/mips/mips.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Delete.
1563 (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB, MIPS_UNMARK_STAB): Delete.
1565 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Add mips/sdb.h
1566 to the list of include files when using gas.
1567 (mips*el-*-openbsd*, mips*-*-openbsd*): Add mips/sdb.h unconditionally.
1568 * config/mips/elf.h: Remove #undef SDB_DEBUGGING_INFO.
1569 * config/mips/elf64.h: Likewise.
1570 * config/mips/iris5.h: Likewise.
1571 * config/mips/linux.h: Likewise.
1572 * config/mips/iris5gas.h (SDB_DEBUGGING_INFO): Remove definition.
1573 * config/mips/mips.h (PREFERRED_DEBUGGING_TYPE): Likewise.
1574 (SDB_DEBUGGING_INFO, sdb*, SDB_ALLOW_*, PUT_SDB*): Move to...
1575 * config/mips/sdb.h: ...this new file.
1577 2003-07-14 Douglas Rupp <rupp@gnat.com>
1579 * fixinc/server.c (server_setup): Don't use non-POSIX NULL first
1580 argument to getcwd; use fixed buffer instead.
1582 2003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
1584 * fixinc/mkfixinc.sh: Treat OpenBSD normally.
1585 * fixinc/fixinc.wrap: Delete.
1587 2003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
1589 * ggc-page.c (extra_order_size_table): Insns have 9 slots. Regs
1592 2003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
1594 * ggc-page.c (struct globals): Add new fields to keep track of the
1595 total allocated memory and overhead.
1596 (ggc_print_statistics): Print them.
1597 (ggc_alloc): Keep track of the total allocated memory and the
1600 * tree.c (dump_tree_statistics): Increase spacing.
1601 (enum tree_node_kind): Move to ...
1602 * tree.h (enum tree_node_kind): ... here.
1603 (tree_node_counts, tree_node_sizes): Declare.
1605 2003-07-14 James A. Morrison <ja2morri@student.math.uwaterloo.ca>
1607 * doc/include/texinfo.tex: Upgrade to texinfo 4.6.
1609 2003-07-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1611 PR optimization/11440
1612 * gcse.c (try_replace_reg): Don't attach notes to ZERO_EXTRACT or
1615 2003-07-14 Alan Modra <amodra@bigpond.net.au>
1617 * doc/tm.texi (BLOCK_REG_PADDING): Describe.
1618 * expr.h (struct locate_and_pad_arg_data): Add where_pad.
1619 (emit_group_load, emit_group_store): Adjust declarations.
1620 Remove most occurrences of #ifdef TREE_CODE.
1621 * expr.c (emit_group_load): Add "type" param, and use
1622 BLOCK_REG_PADDING to determine need for a shift. Optimize non-
1623 aligned accesses if !SLOW_UNALIGNED_ACCESS.
1624 (emit_group_store): Likewise.
1625 (emit_push_insn, expand_assignment, store_expr, expand_expr): Adjust
1626 emit_group_load and emit_group_store calls.
1627 * calls.c (store_unaligned_arguments_into_pseudos): Tidy. Use
1628 BLOCK_REG_PADDING to determine whether we need endian_correction.
1629 (load_register_parameters): Localize vars. Handle shifting of
1630 small values to the correct end of regs. Adjust emit_group_load
1632 (expand_call, emit_library_call_value_1): Adjust emit_group_load
1633 and emit_group_store calls.
1634 * function.c (assign_parms): Set mem alignment for stack slots.
1635 Adjust emit_group_store call. Store values at the "wrong" end
1636 of regs to the stack. Use BLOCK_REG_PADDING.
1637 (locate_and_pad_parm): Save where_pad.
1638 (expand_function_end): Adjust emit_group_load call.
1639 * stmt.c (expand_value_return): Adjust emit_group_load call.
1640 * Makefile.in (calls.o): Depend on $(OPTABS_H).
1641 * config/rs6000/linux64.h (TARGET_LITTLE_ENDIAN): Redefine as 0.
1642 (AGGREGATE_PADDING_FIXED, AGGREGATES_PAD_UPWARD_ALWAYS): Define.
1643 (MUST_PASS_IN_STACK): Define.
1644 (BLOCK_REG_PADDING): Define.
1645 * config/rs6000/rs6000.h (struct rs6000_args): Remove orig_nargs.
1646 (PAD_VARARGS_DOWN): Define in terms of FUNCTION_ARG_PADDING.
1647 * config/rs6000/rs6000.c (init_cumulative_args): Don't set orig_nargs.
1648 (function_arg_padding): !AGGREGATE_PADDING_FIXED compatibility code.
1649 Act on AGGREGATES_PAD_UPWARD_ALWAYS.
1651 2003-07-13 Aaron W. LaFramboise <awlaframboise@aol.com>
1653 * config/i386/gthr-win32.c (__GTHREAD_HIDE_WIN32API): Define to 1.
1655 2003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1657 * expr.c (expand_expr, case COMPONENT_REF): If reg, copy OP0 to MEM
1658 both if OFFSET specified and if result BLKmode for ARRAY_RANGE_REF.
1660 2003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
1663 * toplev.c: Don't cut off option names.
1665 2003-07-13 Andreas Jaeger <aj@suse.de>
1667 * c-decl.c (link_hash_hash): Avoid warning about casting pointer
1668 to integer of different size.
1670 2003-07-13 Kazu Hirata <kazu@cs.umass.edu>
1672 * combine.c (simplify_comparison): Convert (ne (and (not X) 1) 0)
1673 to (eq (and X 1) 0).
1675 2003-07-13 Andreas Jaeger <aj@suse.de>
1677 * config.gcc: Add pmmintrin.h for x86_64-*-*.
1679 2003-07-13 Zack Weinberg <zack@codesourcery.com>
1681 * Makefile.in (LIBCPP_DEPS): Remove coretypes.h and $(TM_H).
1682 (hashtable.o, line-map.o, mkdeps.o): Likewise, from dependency
1683 list. Move these all together down by cpplib.
1685 * cpplib.h: Don't refer to MAX_WCHAR_TYPE_SIZE when determining
1686 definition of CPPCHAR_SIGNED_T.
1688 * cppcharset.c, cpperror.c, cppexp.c, cppfiles.c, cpphash.c, cppinit.c
1689 * cpplex.c, cpplib.c, cppmacro.c, cpppch.c, cpptrad.c, hashtable.c
1690 * line-map.c, mkdeps.c: Don't include coretypes.h or tm.h.
1692 * cpphash.c (_cpp_init_hashtable): Don't use gcc_obstack_init.
1693 * cppinit.c (cpp_create_reader): Likewise.
1695 * cpphash.h (scan_out_logical_line): Rename _cpp_scan_out_logical_line.
1696 * cpptrad.c: Likewise. All callers changed.
1697 * cpplib.c: All callers changed.
1698 * c-ppoutput.c: Replace 'uchar' with 'unsigned char' throughout.
1699 * hashtable.h: Define GTY(x) to nothing here too.
1701 2003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1703 * stor-layout.c (compute_record_mode): Remove very obsolete test
1704 that forces BLKmode for records with fields crossing word boundary.
1706 2003-07-13 Zack Weinberg <zack@codesourcery.com>
1708 * Makefile.in: Remove orphan reference to acconfig.h.
1710 2003-07-13 Andreas Jaeger <aj@suse.de>
1712 * cgraphunit.c: Convert prototypes to ISO C90.
1714 2003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
1716 * fixinc/inclhack.def (avoid_wchar_t_type): Use __cplusplus bypass
1718 * fixinc/fixincl.x: Rebuild.
1720 2003-07-12 Zack Weinberg <zack@codesourcery.com>
1722 * configure.in: Always define HAVE_AS_GOTOFF_IN_DATA for
1723 i?86-*-*. Use correct name of cache variable.
1724 * configure: Regenerate.
1726 2003-07-12 Kazu Hirata <kazu@cs.umass.edu>
1728 * config/alpha/alpha.c: Fix comment typos.
1729 * config/alpha/alpha.md: Likewise.
1730 * config/arm/arm.c: Likewise.
1731 * config/arm/arm.md: Likewise.
1732 * config/arm/lib1funcs.asm: Likewise.
1733 * config/avr/avr.md: Likewise.
1734 * config/arm/README-interworking: Fix typos.
1736 2003-07-12 Kazu Hirata <kazu@cs.umass.edu>
1738 * c-format.c: Fix comment formatting.
1739 * c-typeck.c: Likewise.
1740 * coverage.c: Likewise.
1741 * cppcharset.c: Likewise.
1742 * cpplib.c: Likewise.
1743 * dbxout.c: Likewise.
1744 * gcov-io.h: Likewise.
1745 * toplev.c: Likewise.
1747 2003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
1749 * fixinc/inclhack.def (alpha_sbrk): Note that OpenBSD needs this
1752 2003-07-12 Zack Weinberg <zack@codesourcery.com>
1754 * aclocal.m4 (gcc_AC_CHECK_TYPE): Clone of AC_CHECK_TYPE,
1755 uses three-argument AC_DEFINE so no acconfig.h entries are
1757 (_gcc_COMPUTE_GAS_VERSION): Also provide gcc_cv_gas_vers
1758 which contains the GAS version number as a scaled integer.
1759 (gcc_GAS_VERSION_GTE_IFELSE): Use gcc_cv_gas_vers. Add
1760 ability to check for ELF assembler.
1761 (gcc_GAS_CHECK_FEATURE): New macro.
1762 * configure.in: Use gcc_AC_CHECK_TYPE. Rewrite all
1763 assembler feature checks using gcc_GAS_CHECK_FEATURE.
1764 Use three-argument AC_DEFINE everywhere.
1765 * acconfig.h: Deleted.
1766 * config.in, configure: Regenerate.
1768 2003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
1770 * fixinc/inclhack.def (struct_sockaddr): Avoid "fixing" sockaddr_in
1772 * fixinc/fixincl.x: Regenerate.
1774 * fixinc/inclhack.def (gnu_types): Improve comment.
1776 2003-07-12 Andreas Jaeger <aj@suse.de>
1778 * fp-test.c (main): Use ISO C90 prototype.
1780 * version.c: Remove unneded include of ansidecl.h.
1782 * cgraph.h: Convert prototypes to ISO C90.
1783 * cgraph.c: Likewise.
1784 * fix-header.c: Likewise.
1786 * protoize.c: Likewise.
1788 Sat Jul 12 06:09:38 CEST 2003 Jan Hubicka <jh@suse.cz>
1790 * cgraphunit.c (cgraph_inlined_into, cgraph_inlined_calees): Fix
1793 Sat Jul 12 03:06:01 CEST 2003 Jan Hubicka <jh@suse.cz>
1794 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1796 * cgraph.c (cgraph_max_uid): New global variable.
1797 (cgraph_node): Set uid field.
1798 (create_edge): Keep inline flags consistent.
1799 (dump_cgraph): Dump more info.
1800 * cgraph.h (struct cgraph_local_info): Remove inline_many and
1801 can_inline_once; add inlinable, disgread_inline_limits, and self_insn
1802 (struct cgraph_global_info): Add insns, calls, cloned_times,
1804 (struct cgraph_node): Add uid.
1805 (struct cgraph_edge): Add inline_call.
1806 (cgraph_max_uid, cgraph_inline_p): Declare.
1807 * cgraph.c: Include params.h and fibheap.h
1808 (cgraph_mark_functions_to_inline_once): Kill.
1809 (INSNS_PER_CALL): New constant.
1810 (ncalls_inlined, nfunctions_inlined, initial_insns, overall_insns): New
1812 (cgraph_finalize_function): Do not analyze inlining.
1813 (cgraph_finalize_compilation_unit): Set inlining attributes.
1814 (cgraph_mark_functions_to_output): More consistency checks.
1815 (cgraph_optimize_function): Set current_function_decl to NULL.
1816 (cgraph_expand_function): Use new inline flags.
1817 (cgraph_postorder): Expand from cgraph_expand_functions.
1818 (INLINED_TIMES, SET_INLINED_TIMES): New macros.
1819 (cgraph_inlined_into, cgraph_inlined_callees,
1820 cgraph_estimate_size_after_inlining, cgraph_estimate_growth,
1821 cgraph_mark_inline, cgraph_check_inline_limits,
1822 cgraph_default_inline_p, cgraph_decide_inling_of_small_functions,
1823 cgraph_decide_inlining, cgraph_inline_p): New functions.
1824 * params.def (PARAM_LARGE_FUNCTION_INSNS, PARAM_LARGE_FUNCTION_GROWTH,
1825 PARAM_INLINE_UNIT_GROWTH): New parameters.
1826 * tree-inline.c (struct inline_data): New field current_decl.
1827 (expand_call_inline): Avoid forward declarations; use
1828 inlinable_function_p.
1829 (optimize_inline_calls): Set id.current_decl.
1831 2003-07-11 Andrew Pinski <pinskia@physics.uc.edu>
1833 * configure.in: Remove wrongly added definition of
1835 * configure: Regenerate.
1837 2003-07-11 Dan Nicolaescu <dann@ics.uci.edu>
1839 * rtl.def (NOTE): Do not use padding.
1841 2003-07-11 Dara Hazeghi <dhazeghi@yahoo.com>
1843 * doc/install.tex: Update required binutils for i?86-*-linux*
1845 2003-07-11 Richard Henderson <rth@redhat.com>
1847 * Makefile.in (stage1_build): Force OBJS-onestep=OBJS.
1849 2003-07-11 Mark Mitchell <mark@codesourcery.com>
1851 * varasm.c (make_decl_rtl): Treat decls with a DECL_CONTEXT of
1852 TRANSLATION_UNIT_DECL as top_level.
1854 2003-07-11 Jakub Jelinek <jakub@redhat.com>
1856 * optabs.c (prepare_cmp_insn): Try cmpmemM first if it exists,
1857 then fall back to cmpstrM.
1858 * builtins.c (expand_builtin_memcmp): Likewise.
1859 * config/s390/s390-protos.h (s390_expand_cmpstr): Rename to...
1860 (s390_expand_cmpmem): ... this.
1861 * config/s390/s390.md (cmpmemdi, cmpmemsi, cmpmem_short_64,
1862 cmpmem_short_31, cmpmem_long_64, cmpmem_long_31): Renamed
1863 from cmpstr* patterns. Rename call to s390_expand_cmpstr
1864 to s390_expand_cmpmem.
1865 * config/s390/s390.c (s390_expand_cmpstr): Rename to...
1866 (s390_expand_cmpstr): ... this. Rename cmpstr* instructions
1868 * config/i370/i370.md (cmpmemsi, cmpmemsi_1): Renamed from
1870 * doc/md.texi (cmpstrM): Describe as String compare insn, not
1874 2003-07-11 Loren James Rittle <ljrittle@acm.org>
1876 * config/i386/freebsd.h (SET_ASM_OP): Remove.
1877 (SUBTARGET_OVERRIDE_OPTIONS): Handle TARGET_64BIT case.
1878 (ASM_COMMENT_START, ASM_APP_ON, ASM_APP_OFF, DBX_REGISTER_NUMBER
1879 MCOUNT_NAME, SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE_SIZE): Whitespace.
1881 2003-07-11 Richard Henderson <rth@redhat.com>
1883 * function.c (assign_parms): Don't recombine complex args if
1884 fnargs is unchanged from orig_fnargs.
1885 (split_complex_args): Return args without complex before copying.
1886 Re-layout the modified parameters.
1888 2003-07-11 J"orn Rennecke <joern.rennecke@superh.com>
1890 * regclass.c (choose_hard_reg_mode): Add third argument.
1891 Changed all callers.
1892 * rtl.h (choose_hard_reg_mode): Update declaration.
1893 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
1894 Take HARD_REGNO_CALL_PART_CLOBBERED into account.
1896 2003-07-11 Geoffrey Keating <geoffk@apple.com>
1898 * c-decl.c (finish_decl): Handle 'used' here...
1899 * cgraphunit.c (cgraph_finalize_function): ... and here ...
1900 * c-common.c: (handle_used_attribute): ... not here.
1902 * configure.in (onstep): Support --enable-intermodule.
1903 * Makefile.in (OBJS-common): New.
1905 (OBJS-archive): New.
1906 (OBJS): Build from OBJS-common, OBJS-md, OBJS-archive.
1907 (OBJS-onestep): New.
1908 (libbackend.a): Support @onestep@.
1909 (libbackend.o): New.
1910 * configure: Regenerate.
1912 * c-common.h (c_reset_state): New prototype.
1913 (c_parse_file): New prototype.
1914 (finish_file): Move prototype from c-tree.h.
1915 * c-decl.c: Include <hashtab.h>.
1916 (builtin_decls): New.
1917 (current_file_decl): New.
1918 (duplicate_decls): Add extra parameter. Change all callers. Don't
1919 output duplicate common symbols.
1920 (link_hash_hash): New.
1921 (link_hash_eq): New.
1922 (poplevel): Handle popping of the top level.
1923 (warn_if_shadowing): Handle TRANSLATION_UNIT_DECL.
1924 (pushdecl): Set DECL_CONTEXT to TRANSLATION_UNIT_DECL if appropriate.
1925 (pushdecl_top_level): Likewise.
1926 (redeclaration_error_message): Handle TRANSLATION_UNIT_DECL.
1927 (c_init_decl_processing): Create TRANSLATION_UNIT_DECL.
1928 (finish_decl): Handle TRANSLATION_UNIT_DECL.
1929 (merge_translation_unit_decls): New.
1930 (c_write_global_declarations): New.
1931 (c_reset_state): New.
1932 (implicitly_declare): Handle TRANSLATION_UNIT_DECL.
1933 * c-lang.c (LANG_HOOKS_WRITE_GLOBALS): New.
1934 * c-objc-common.c (c_cannot_inline_tree_fn): Handle
1935 TRANSLATION_UNIT_DECL.
1936 (c_objc_common_finish_file): Call merge_translation_unit_decls.
1937 * c-opts.c (in_fnames): Rename from in_fname.
1938 (c_common_decode_option): Handle multiple input filenames.
1939 (c_common_post_options): Likewise.
1940 (c_common_parse_file): Likewise; also, call c_parse_file rather than
1942 * c-parse.in: Move cleanup code to c_parse_file.
1943 (free_parser_stacks): Move contents to c_parse_file.
1944 (c_parse_file): New.
1945 * c-tree.h (union lang_tree_node): Chain along TYPE_NEXT_VARIANT
1947 (C_DECL_FILE_SCOPE): New.
1948 (finish_file): Move prototype to c-common.h.
1949 (merge_translation_unit_decls): New prototype.
1950 (comptypes): Add extra parameter to prototype.
1951 (c_write_global_declarations): New prototype.
1952 * c-typeck.c (tagged_types_tu_compatible_p): New.
1953 (function_types_compatible_p): Add extra parameter, change all callers.
1954 (type_lists_compatible_p): Likewise.
1955 (comptypes): Likewise.
1956 (struct tagged_tu_seen): New.
1957 (tagged_tu_seen_base): New.
1958 (build_unary_op): Handle TRANSLATION_UNIT_DECL.
1959 (c_mark_addressable): Remove #if 0 code.
1960 * calls.c (special_function_p): Handle TRANSLATION_UNIT_DECL, add
1961 comment explaining why it shouldn't have to.
1962 * cgraph.h (struct cgraph_node): Add chain_next and chain_prev GTY
1964 * cppinit.c (cpp_read_next_file): New.
1965 (cpp_read_main_file): Use it.
1966 * cpplib.c (undefine_macros): New.
1967 (cpp_undef_all): New.
1968 * cpplib.h (cpp_read_next_file): Prototype.
1969 (cpp_undef_all): Prototype.
1970 * langhooks-def.h (write_global_declarations): Remove prototype.
1971 * toplev.h (write_global_declarations): Add prototype.
1972 * tree.c (decl_type_context): Use switch statement, handle
1973 TRANSLATION_UNIT_DECL.
1974 * tree.def: Update documentation for TRANSLATION_UNIT_DECL.
1975 (TRANSLATION_UNIT_DECL): New kind of tree.
1976 * tree.h: Update documentation for TRANSLATION_UNIT_DECL.
1977 * Makefile.in (c-decl.o): Add $(HASHTAB_H) to dependencies.
1978 * doc/invoke.texi: Make attempt to document new functionality.
1980 2003-05-19 Per Bothner <bothner@apple.com>
1982 * gcc.c (combine_inputs): New.
1983 (process_command): Set combine_inputs.
1984 (do_spec_1): Handle combine_inputs.
1987 2003-07-10 James E Wilson <wilson@tuliptree.org>
1989 PR optimization/9745
1990 * loop.c (loop_iv_add_mult_emit_before): Call loop_regs_update before
1991 loop_insn_emit_before.
1992 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
1994 2003-07-10 Zack Weinberg <zack@codesourcery.com>
1996 * cppcharset.c: Fix comment.
1997 (iconv_close [!HAVE_ICONV]): #define to (void)0 to prevent warning.
1998 (EILSEQ): #define to EINVAL if not already defined.
1999 (convert_using_iconv): #if out when !HAVE_ICONV.
2000 (init_iconv_desc): Handle !HAVE_ICONV here...
2001 (cpp_init_iconv): ...not here.
2003 2003-07-11 Neil Booth <neil@daikokuya.co.uk>
2005 * common.opt: More --help messages.
2006 * opts.c (print_help): Use puts().
2007 * toplev.c (f_options): Remove help text.
2008 (display_help): Don't dump f_options.
2010 2003-07-11 Nathanael Nerode <neroden@gcc.gnu.org>
2012 * fixinc/mkfixinc.sh: Drop reference to unsupported alpha-*-interix*.
2013 Move i?86-*-interix* to the don't-fix list.
2014 * fixinc/fixinc.interix: Delete with extreme prejudice.
2016 2003-07-10 Dara Hazeghi <dhazeghi@yahoo.com>
2019 * doc/install.texi: Document requirements for ia64-*-hpux* target.
2021 2003-07-10 Roger Sayle <roger@eyesopen.com>
2023 * config/ia64/hpux.h (TARGET_C99_FUNCTIONS): Define.
2025 2003-07-10 Zack Weinberg <zack@codesourcery.com>
2027 * cppcharset.c (one_utf8_to_cppchar, one_cppchar_to_utf8,
2028 one_utf8_to_utf32, one_utf32_to_utf8, one_utf8_to_utf16,
2029 one_utf16_to_utf8, conversion_loop, convert_utf8_utf16,
2030 convert_utf8_utf32, convert_utf16_utf8, convert_utf32_utf8,
2031 convert_no_conversion, convert_using_iconv): New functions.
2032 (APPLY_CONVERSION): New macro.
2033 (struct conversion, conversion_tab): New data structure.
2034 (init_iconv_desc): Check conversion_tab for a custom conversion
2035 primitive before trying to use iconv.
2036 (convert_cset): Deleted.
2037 (cpp_init_iconv): Use UTF- terminology, not UCS-.
2038 (_cpp_destroy_iconv): Update to match.
2039 (_cpp_valid_ucn): We don't need iconv to implement UCNs.
2040 (convert_ucn): Use one_cppchar_to_utf8 and APPLY_CONVERSION.
2041 (convert_escape, cpp_interpret_string): Use APPLY_CONVERSION.
2042 (_cpp_interpret_string_notranslate): New function, moved here
2045 * cpphash.h (convert_f, struct cset_converter): New types.
2046 (struct cpp_reader): narrow_cset_desc and wide_cset_desc
2047 are now struct cset_converter, not bare iconv_t.
2049 * cpplib.c (interpret_string_notranslate): Moved to cppcharset.c;
2050 all callers changed.
2052 2003-07-10 Kelley Cook <kelleycook@wideopenwest.com>
2054 * Makefile.in (options.h): Depend on Makefile. Add move-if-change
2055 to opts.sh command line.
2056 * opts.sh: Write to temporary files with a move-if-change at the end.
2058 2003-07-10 Denis Chertykov <denisc@overta.ru>
2059 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2061 * combine.c (gen_binary): Handle the CLOBBER rtx and
2062 don't build a binary operation with it.
2064 2003-07-10 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2066 * gcse.c (load_kills_store, find_loads, store_killed_in_insn,
2067 store_killed_after, store_killed_before): Keep track of the correct
2068 dependency function to use.
2070 2003-07-10 Steven Bosscher <steven@gcc.gnu.org>
2071 * toplev.c (do_compile): Don't try to open dump files before
2072 lang_dependent_init initializes dump_base_name.
2074 2003-07-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2076 * config/arm/arm.c (arm_init_iwmmxt_builtins, arm_expand_builtin):
2078 * config/frv/frv.c (frv_expand_builtin): Likewise.
2079 * config/sh/sh.c (sh_media_init_builtins): Likewise.
2081 2003-07-09 Mark Mitchell <mark@codesourcery.com>
2084 * doc/invoke.texi (C++ Dialect Options): Change documentation of
2087 2003-07-10 J"orn Rennecke <joern.rennecke@superh.com>
2089 * tm.texi (RETURN_ADDR_OFFSET): Document.
2091 2003-07-10 Nathan Sidwell <nathan@codesourcery.com>
2093 * gcov-io.h: Update documentation.
2094 (GCOV_UNSIGNED2STRING): New.
2095 (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
2096 GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
2097 GCOV_TAG_SUMMARY_LENGTH): Adjust.
2098 (GCOV_TAG_BLOCKS_NUM, GCOV_TAG_ARCS_NUM,
2099 GCOV_TAG_COUNTER_NUM): New.
2100 (GCOV_BLOCK_SIZE): Number of words.
2101 (gcov_var): Adjust buffer type.
2102 * gcov-io.c (gcov_write_bytes, gcov_read_bytes): Rename to ...
2103 (gcov_write_words, gcov_read_words): ... here. Take a 4-byte word
2104 count, not byte count.
2105 (gcov_open): Adjust overread init.
2106 (gcov_allocate, gcov_write_unsigned, gcov_write_counter,
2107 gcov_write_string, gcov_write_tag, gcov_write_length,
2108 gcov_write_tag_length): Adjust.
2109 (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
2110 (gcov_sync, gcov_seek): Adjust.
2111 * gcov-dump.c (print_usage): Show gcc version only.
2112 (dump_file): Use GCOV_UNSIGNED2STRING.
2113 (tag_blocks, tag_arcs, tag_counters): Use GCOV_TAG_*_NUM macros.
2114 * gcov.c (print_version): Show gcc version only.
2115 (read_graph_file): Use GCOV_UNSIGNED2STRING. Use
2116 GCOV_TAG_*_NUM macros.
2117 (read_count_file): Use GCOV_UNSIGNED2STRING. Use
2118 GCOV_TAG_COUNTER_LENGTH.
2119 * coverage.c (read_counts_file): Use GCOV_UNSIGNED2STRING.
2120 Use GCOV_TAG_COUNTER_NUM.
2121 * libgcov.c (gcov_version): Use GCOV_UNSIGNED2STRING.
2122 (__gcov_merge_single, __gcov_merge_delta): Use GCOV_CHECK.
2124 2003-07-10 Andreas Schwab <schwab@suse.de>
2126 * gcov-dump.c (dump_file): Fix missing address operator.
2128 2003-07-10 Kazu Hirata <kazu@cs.umass.edu>
2131 * fold-const.c (sign_bit_p): Return EXP if VAL is the sign bit
2133 (fold_single_bit_test): If sign_bit_p() fails, assume that the
2134 bit being tested is not a sign bit.
2136 2003-07-10 Kazu Hirata <kazu@cs.umass.edu>
2138 * config/h8300/h8300.md (a peephole2): New.
2140 2003-07-10 Alexandre Oliva <aoliva@redhat.com>
2142 2001-12-13 Alexandre Oliva <aoliva@redhat.com>
2143 * config/mn10300/linux.h (LINK_SPEC): Rename the dynamic linker
2144 from ld-linux.so.2 to ld.so.1.
2145 2001-11-18 Alexandre Oliva <aoliva@redhat.com>
2146 * config/mn10300/linux.h (LINK_SPEC): -lpthread, not -lthread.
2147 * config/mn10300/linux.h (LINK_SPEC): Don't handle -Wl,-rpath
2148 nor -Wl,-rpath-link.
2149 (LIB_SPEC): Add -rpath-link if !static.
2150 2001-08-22 Alexandre Oliva <aoliva@redhat.com>
2151 * config/mn10300/mn10300.c (mn10300_protect_label): New
2153 * config/mn10300/linux.h (PRINT_OPERAND,
2154 PRINT_OPERAND_ADDRESS): Set it during their execution.
2155 (ASM_OUTPUT_LABELREF): Output `+' before symbol name if
2156 mn10300_protect_label is set.
2157 * config/mn10300/linux.h (LINK_SPEC): Recognize -Wl,-rpath and
2159 (LIB_SPEC, STARTFILE_SPEC): Define.
2160 2001-05-11 Alexandre Oliva <aoliva@redhat.com>
2161 * config/mn10300/t-linux (dp-bit.c, fp-bit.c): Don't define
2162 FLOAT_BIT_ORDER_MISMATCH.
2163 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
2164 * config.gcc (am33_2.0-*-linux*): Added.
2165 * config/mn10300/linux.h: New.
2166 * config/mn10300/t-linux: New.
2168 2003-07-10 Andreas Jaeger <aj@suse.de>
2170 * fold-const.c: Properly wrap prototypes.
2172 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
2174 2003-06-16 Alexandre Oliva <aoliva@redhat.com>
2175 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter):
2177 * config/mn10300/mn10300.md (GOTaddr2picreg): ... here.
2178 * config/mn10300/mn10300.h: GTY-declare it.
2179 2003-06-11 Alexandre Oliva <aoliva@redhat.com>
2180 * config/mn10300/mn10300.c (mn10300_encode_section_info): Fix
2181 prototype. Use incoming RTL argument.
2182 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
2183 * config/mn10300/mn10300.md (int_label): Move C statements...
2184 (GOTaddr2picreg): ... here.
2185 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
2186 * config/mn10300/mn10300.h (ENCODE_SECTION_INFO): Move...
2187 * config/mn10300/mn10300.c (mn10300_encode_section_info):
2188 ... here. New function.
2189 (TARGET_ENCODE_SECTION_INFO): Define to it.
2190 2001-11-04 Alexandre Oliva <aoliva@redhat.com>
2191 * config/mn10300/mn10300.md (builtin_setjmp_receiver): Fix typo in
2193 (mn10300_loadPC): Define as insn splittable after reload.
2194 2001-05-13 Alexandre Oliva <aoliva@redhat.com>
2195 * config/sh/mn10300.h (JUMP_TABLES_IN_TEXT_SECTION): Let them
2196 be defined in .rodata even in PIC, now that the assembler
2198 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
2199 * config/mn10300/mn10300.h (GOT_SYMBOL_NAME): Don't let the
2200 symbol take an underscore prefix.
2201 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
2202 * config/mn10300/mn10300-protos.h (legitimate_pic_operand_p,
2203 legitimize_pic_address): Declare.
2204 * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Mark
2205 the PIC register as fixed.
2206 (EXTRA_CONSTRAINT): Match UNSPEC_PLT and UNSPEC_PIC for 'S'.
2207 (GO_IF_LEGITIMATE_ADDRESS): Require legitimate_pic_operand for
2209 (LEGITIMATE_PIC_OPERAND_P): Define.
2210 (PIC_OFFSET_TABLE_REGNUM): Define.
2211 (GOT_SYMBOL_NAME): Define.
2212 (SYMBOLIC_CONST_P): Define.
2213 (ENCODE_SECTION_INFO): Use SYMBOL_REF_FLAG to mark local
2215 (MN10300_GLOBAL_P): Test it.
2216 (OUTPUT_ADDR_CONST_EXTRA): Handle PIC-related unspecs.
2217 (JUMP_TABLES_IN_TEXT_SECTION): Enable for PIC.
2218 * config/mn10300/mn10300.c (print_operand): Handle unspec.
2219 (expand_prologue): Set PIC register.
2220 (call_address_operand): Don't match SYMBOL_REFs in PIC.
2221 (legitimize_address): Call legitimize_pic_address.
2222 (legitimize_pic_address): New fn.
2223 (legitimate_pic_operand_p): New fn.
2224 * config/mn10300/mn10300.md (PIC_REG, SP_REG): New constants.
2225 (UNSPEC_INT_LABEL, UNSPEC_PIC, UNSPEC_GOT, UNSPEC_GOTOFF,
2226 UNSPEC_PLT): New constants.
2227 (pop_pic_reg): New insn.
2228 (movsi): Adjust non-PIC addresses.
2229 (builtin_setjmp_receiver): Restore the PIC register.
2231 (call): Adjust non-PIC addresses.
2232 (int_label, GOTaddr2picreg): New expands.
2233 (am33_loadPC): New insn.
2234 (mn10300_loadPC): New expand.
2235 (call_next_insn): New insn.
2236 (add_GOT_to_pic_reg): New expand.
2237 (symGOT2reg, symGOT2reg_i): New expands.
2238 (symGOTOFF2reg, symGOTOFF2reg_i): New expands.
2239 (sym2PIC, sym2PLT): New expands.
2241 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
2243 * config/mn10300/mn10300.h (PREDICATE_CODES): Define.
2244 2001-05-01 Alexandre Oliva <aoliva@redhat.com>
2245 * config/mn10300/mn10300.md (sqrtsf2): flag_fast_math was renamed
2246 to flag_unsafe_math_optimizations.
2247 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
2248 * config/mn10300/mn10300.c (expand_prologue): Mark
2249 FP-register-saving insns as frame-related.
2250 2001-02-13 Alexandre Oliva <aoliva@redhat.com>
2251 * config/mn10300/mn10300.c
2252 (mn10300_get_live_callee_saved_regs): Don't search past
2253 LAST_EXTENDED_REGNUM.
2254 (mn10300_gen_multiple_store, store_multiple_operation): Likewise.
2255 * config/mn10300/mn10300.md: Remove excessive line breaks from
2256 `@' output patterns that were accounted as additional
2258 * config/mn10300/mn10300.md, config/mn10300/mn10300.c:
2259 Re-introduce changes accidentally removed in Richard Sandiford's
2261 * config/mn10300/t-mn10300 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
2262 Re-instate am33-2 lost in merge from net GCC.
2263 2000-08-26 Alexandre Oliva <aoliva@redhat.com>
2264 * config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Added
2265 floating-point registers.
2266 2000-08-07 Alexandre Oliva <aoliva@redhat.com>
2267 * config/mn10300/mn10300.md (movdf): Revert some am33-specific
2268 pessimizations that had gone in on 2000-05-08.
2269 2000-06-28 Graham Stott <grahams@cygnus.co.uk>
2270 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Fix typo.
2271 2000-06-22 Graham Stott <grahams@cygnus.co.uk>
2272 * config/mn10300/mn10300.md (movqi): Use nonimmediate_operand for
2274 * (movhi): Likewise.
2275 * (movsi): Likewise.
2276 * (movsf): Likewise.
2277 * (movdi): Likewise.
2278 * (movdf): Likewise.
2279 Wed May 24 13:16:09 2000 Alexandre Oliva <aoliva@cygnus.com>
2280 * config/mn10300/mn10300.c (fp_regs_to_save): New function.
2281 (can_use_return_insn, initial_offset): Add fp_regs_to_save.
2282 (expand_prologue, expand_epilogue): Save and restore FP regs.
2283 2000-05-20 Alexandre Oliva <aoliva@cygnus.com>
2284 * config/mn10300/mn10300.md (movdi, movdf): 64-bit clean-up.
2285 2000-05-13 Alexandre Oliva <aoliva@cygnus.com>
2286 * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2, addsf3,
2287 subsf3, mulsf3, divsf3, fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4):
2289 2000-05-12 Alexandre Oliva <aoliva@cygnus.com>
2290 * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2):
2291 Discourage the two-argument, longer opcodes.
2292 (addsf3, subsf3, mulsf3, divsf3): Likewise for three-argument
2294 * config/mn10300/mn10300.h (struct mn10300_cc_status_mdep): New.
2295 (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Define.
2296 * config/mn10300/mn10300.md (cmpsf): New pattern.
2297 (branch): Test mdep.fpCC and output fbCC.
2298 * config/mn10300/mn10300.c (print_operand): Output conditions.
2299 (notice_cc_update): Recognize fcmp and set mdep.fpCC.
2300 2000-05-10 Alexandre Oliva <aoliva@cygnus.com>
2301 * config/mn10300/mn10300.md (movsf, movdf, addsf3, subsf3,
2302 mulsf3, divsf3): Use the `F' constraint for FP values.
2303 * config/mn10300/mn10300.c (const_1f_operand): New function.
2304 * config/mn10300/mn10300-protos.h (const_1f_operand): Declare.
2305 * config/mn10300/mn10300.md (sqrtsf2): New expand.
2306 (rsqrtsf2): New insn.
2307 2000-05-09 Alexandre Oliva <aoliva@cygnus.com>
2308 * config/mn10300/mn10300.md (movdf): Oops, I missed it in my
2310 2000-05-08 Alexandre Oliva <aoliva@cygnus.com>
2311 * config/mn10300/mn10300.md (abssf2, negdf2): On
2312 TARGET_AM33_2, expand to...
2313 (abssf2_am33_2, negdf2_am33_2): New insns.
2314 (addsf3, subsf3, mulsf3, divsf3): Likewise.
2315 (fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4): Likewise.
2316 * config/mn10300/mn10300.md (movqi, movhi, movsi, movsf,
2317 movdi, movdf): Added FP regs.
2318 * invoke.texi (-mam33-2, -mno-am33-2): Document.
2319 2000-04-29 Alexandre Oliva <aoliva@cygnus.com>
2320 * config/mn10300/mn10300.h (FIRST_FP_REGNUM, LAST_FP_REGNUM):
2322 (REGNO_AM33_2_FP_P): Renamed to...
2323 (REGNO_FP_P): Redefine in terms of FIRST_* and LAST_*.
2324 (CONDITIONAL_REGISTER_USAGE, REGNO_REG_CLASS): Likewise.
2325 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
2326 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Remove FP
2327 regs from GENERAL_REGS.
2328 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
2329 * config/mn10300/mn10300.h (REGNO_AM33_2_FP_P): New macro.
2330 * config/mn10300/mn10300.c (mn10300_address_cost): Added FP_REGS.
2331 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Added FP_REGS.
2332 2000-04-23 Alexandre Oliva <aoliva@cygnus.com>
2333 * config/mn10300/mn10300.h (CLASS_CANNOT_CHANGE_SIZE): Defined
2335 2000-04-21 Alexandre Oliva <aoliva@cygnus.com>
2336 * config/mn10300/mn10300.h (OK_FOR_Q): New macro.
2337 (EXTRA_CONSTRAINT): Added OK_FOR_Q.
2338 * config/mn10300/mn10300.c (secondary_reload_class): Adjust.
2339 * config/mn10300/mn10300.c (print_operand): Support `D' for doubles.
2340 * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Adjust.
2341 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER): Added
2342 AM33/2.0 floating-point registers.
2343 (CONDITIONAL_REGISTER_USAGE): Adjust.
2344 (enum reg_class, REG_CLASS_NAMES): Added FP_REGS and FP_ACC_REGS.
2345 (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Adjust.
2346 (REG_CLASS_FROM_LETTER): Added `f' and `A'.
2347 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Adjust.
2348 * config/mn10300/t-mn10300 (MULTILIB_OPTIONS): Added am33-2.
2349 (MULTILIB_DIRNAMES): Likewise.
2350 * config/mn10300/mn10300.h (CPP_SPEC): Define `__AM33__=2' and
2351 `__AM33_2__' when `-mam33-2' is given.
2352 (TARGET_AM33_2): Define.
2353 (TARGET_SWITCHES): Adjust.
2354 * config/mn10300/mn10300.c (asm_file_start): Print `.am33_2'
2357 2003-07-09 Matt Kraai <kraai@alumni.cmu.edu>
2359 * doc/install.texi: Add missing @.
2361 2003-07-09 Bob Wilson <bob.wilson@acm.org>
2363 * config/xtensa/xtensa.h (CRT_CALL_STATIC_FUNCTION): Define.
2365 2003-07-09 Aldy Hernandez <aldyh@redhat.com>
2368 * config/i386/i386.c (ix86_function_arg_boundary): Remove abort.
2370 2003-07-09 Nathanael Nerode <neroden@gcc.gnu.org>
2373 * config/arc/t-arc: Replace bogus references to "x-crtinit.o",
2374 "x-crtfini.o" with "crtinit.o", "crtfini.o".
2376 * fixinc/inclhack.def (limits_ifndefs): Add select test.
2377 * fixinc/fixincl.x: Rebuild.
2379 * fixinc/inclhack.def (math_exception): Improve bypass and comment.
2380 * fixinc/fixincl.x: Rebuild.
2382 2003-07-09 Hans-Peter Nilsson <hp@bitrange.com>
2384 * doc/install.texi (Configuration): Document the valgrind option
2385 to --enable-checking.
2387 Wed Jul 9 16:16:30 CEST 2003 Jan Hubicka <jh@suse.cz>
2389 * objc-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
2391 2003-07-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2393 * c-lex.c (cb_ident): Cast cstr.text to const char *.
2395 2003-07-09 Nathan Sidwell <nathan@codesourcery.com>
2397 * gcov-io.h: Update documentation.
2398 (GCOV_GRAPH_SUFFIX, GCOV_GRAPH_MAGIC): Rename to GCOV_NOTE_SUFFIX,
2400 (GCOV_DATA_SUFFIX, GCOV_NOTE_SUFFIX): Update.
2401 (GCOV_DATA_MAGIC, GCOV_NOTE_MAGIC): Make non-palindromic.
2402 (struct gcov_var): Change buffer's type. Add endian flag.
2403 (gcov_open): Remove mode in libgcov.
2404 (gcov_magic): Prototype.
2405 * gcov-io.c (from_file): New.
2406 (gcov_open): Clear endian flag.
2408 (gcov_write_bytes, gcov_read_bytes): Return gcov_unsigned_t
2410 (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
2411 gcov_write_tag, gcov_write_length, gcov_write_tag_length): Update.
2412 (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Update.
2413 * gcov-iov.c (main): Correct cast.
2414 * coverage.c (read_counts_file): Use gcov_magic. Remove endianness
2416 (gcov_begin_output): Use GCOV_NOTE_MAGIC.
2417 (coverage_init): Use GCOV_NOTE_SUFFIX.
2418 * libgcov.c (gcov_version_mismatch): Remove endianness conversion.
2419 Rename to gcov_version, and return flag.
2420 (gcov_exit): Use gcov_version.
2421 (__gcov_init): Use gcov_version.
2422 * Makefile.in (coverageexts): Update.
2423 * gcov.c (print_version): Remove endianness conversion.
2424 (create_file_names): Use GCOV_NOTE_SUFFIX.
2425 (read_graph_file): Use gcov_magic.
2426 (read_count_file): Likewise.
2427 * gcov-dump.c (dump_file): Remove endianness conversion, use
2430 2003-07-09 Nathan Sidwell <nathan@codesourcery.com>
2432 * configure.in (BUILD_PREFIX, BUILD_PREFIX_1): Set if enable
2434 * configure: Regenerated.
2435 * Makefile.in (ALL_CFLAGS): Correct its comment.
2437 2003-07-08 Mark Mitchell <mark@codesourcery.com>
2439 * fold-const.c (make_range): Do not access operand 1 for a
2440 zero-operand operator.
2442 2003-07-09 Neil Booth <neil@daikokuya.co.uk>
2444 * toplev.c (warn_dummy, W_options): Die.
2445 (display_help): Don't print W_options.
2446 * common.opt: Add W_options help from toplev.c.
2448 2003-07-09 Andreas Jaeger <aj@suse.de>
2450 * opts.c (wrap_help): Only pass int arguments as arguments to
2451 printf's '*' modifier. Change argument of function.
2453 2003-07-08 Matt Kraai <kraai@alumni.cmu.edu>
2455 * doc/invoke.texi: Fix misspelling of "@item".
2457 2003-07-08 Kazu Hirata <kazu@cs.umass.edu>
2459 * config/i386/i386.md: Remove an old comment about
2462 Wed Jul 9 03:00:10 CEST 2003 Jan Hubicka <jh@suse.cz>
2464 * cgraph.c (cgraph_node_name): New function.
2465 (dump_cgraph): Use it.
2466 * cgraph.h (cgraph_dump_file): Declare.
2467 (cgraph_node_name): Declare.
2468 * cgraphunit.c: Include timevar.h
2469 (cgraph_finalize_compilation_unit): Use timevar; reorganize dumps.
2470 (cgraph_optimize_function): Use TV_INTEGRATION.
2471 (cgraph_mark_local_functions): reorganize dumps.
2472 (cgraph_mark_functions_to_inline_once): Likewise.
2473 (cgraph_optimize): Likewise; use timevar.
2474 * timevar.def (TV_CGRAPH, TV_CGRAPHOPT): New.
2475 * toplev.c (dump_file_index): Add DFI_cgraph.
2476 (dump_file_info): Likewise.
2477 (cgraph_dump_file): New global variable.
2478 (do_compile): Open and close cgraph dump.
2479 * invoke.texi (-d): Document new flag; renumber.
2481 2003-07-08 Roger Sayle <roger@eyesopen.com>
2484 * calls.c (emit_call_1): Don't bother popping the arguments off of
2485 the stack after a noreturn function call; The adjustment is dead.
2486 (expand_call): Likewise.
2488 2003-07-08 Geoffrey Keating <geoffk@apple.com>
2490 * expr.c (MOVE_MAX_PIECES): Move from here...
2491 * defaults.h (MOVE_MAX_PIECES): ... to here.
2493 2003-07-08 Matt Kraai <kraai@alumni.cmu.edu>
2495 * Makefile.in (stage1-start): Handle an empty SUBDIRS.
2497 2003-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2499 * genattr.c (internal_dfa_insn_code): Don't prototype.
2500 * genattrtab.c (attr_desc): Add `static_p' field.
2501 (expand_units): Make blockage range and ready cost functions
2503 (write_attr_get): Don't add extern prototypes in C file. Mark
2504 static functions as appropriate.
2505 (find_attr, make_internal_attr): Initialize static_p.
2506 * genattrtab.h (ATTR_STATIC): New macro.
2507 * genautomata.c (output_internal_reset_func): Mark output function
2509 (make_internal_dfa_insn_code_attr): Mark output function as static.
2511 2003-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2513 * genattrtab.h: Add new macros for attr `special' flags.
2514 * genattrtab.c (attr_desc): Reorder/resize fields better.
2515 Use attr `special' macros in all calls to make_internal_attr.
2516 * genautomata.c: Likewise.
2518 Wed Jul 9 02:25:39 CEST 2003 Jan Hubicka <jh@suse.cz>
2520 * c-common.c (c_estimate_num_insns_1): New static function.
2521 (c_estimate_num_insns): New global function.
2522 * c-common.h (DECL_NUM_STMTS): Rename to...
2523 (DECL_ESTIMATED_INSNS): ... this.
2524 (c_estimate_num_insns): Declare.
2525 * c-decl.c (duplicate_decls): Use DECL_ESTIMATED_INSNS.
2526 * c-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
2527 * c-semantics.c (add_stmt): Do not account statements.
2528 * langhooks-def.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS):
2530 * langhooks.h (lang_hooks_for_tree_inlining): Add
2532 * params.def (max-inline-insns-auto, max-inline-insns-auto): set
2534 (max-inline-insns): set to 300.
2535 (min-inline-insns): set to 10.
2536 * tree-inline.c (struct inline_data): Rename inlined_stmts to
2538 (INSNS_PER_STMT): Kill.
2539 (inlinable_function_p): Compute and store body size.
2540 (expand_call_inline): Likewise.
2541 (optimize_inline_calls): Likewise.
2543 2003-07-08 James E Wilson <wilson@tuliptree.org>
2546 * emit-rtl.c (set_mem_attribute_minus_bitpos): When handle ARRAY_REF,
2547 loop over new variable t2 instead of t.
2549 2003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
2552 * config/i386/winnt.c: Replace use of error(), warning() with
2553 error_with_decl(), warning_with_decl(), throughout.
2555 2003-07-08 Neil Booth <neil@daikokuya.co.uk>
2557 * opts.c (wrap_help): Use unsigned int, not size_t.
2559 2003-07-08 Stephane Carrez <stcarrez@nerim.fr>
2561 * config/m68hc11/m68hc11.h (HAVE_AS_DWARF2_DEBUG_LINE): Don't define
2562 as .file/.loc directives are incompatible with linker relaxation.
2564 2003-07-08 Zack Weinberg <zack@codesourcery.com>
2566 * Makefile.in (fixinc.sh): Remove gnu-regex.[ch] from dependencies.
2567 * fixinc/Makefile.in: Remove all references to gnu-regex.[och].
2568 * fixinc/fixfixes.c, fixinc/fixincl.c, fixinc/fixlib.c
2569 * fixinc/fixtests.c: Use xregexec not regexec, xregcomp not regcomp.
2570 * fixinc/fixlib.h: Include xregex.h not gnu-regex.h.
2571 * fixinc/inclhack.def (hpux10_cpp_pow_inline, hpux11_cpp_pow_inline):
2572 Escape { and } characters which are not part of range expressions.
2573 * fixinc/fixincl.x: Regenerate.
2574 * fixinc/gnu-regex.c, fixinc/gnu-regex.h: Delete file.
2576 2003-07-08 Steven Bosscher <steven@gcc.gnu.org>
2579 * tree-inline.c (find_alloca_call): Use
2580 walk_tree_without_duplicates, instead of walk_tree.
2581 (find_builtin_longjmp_call): Likewise.
2582 * c-objc-common.c (c_cannot_inline_fn): Likewise.
2583 * c-semantics.c (find_reachable_label): Likewise.
2585 2003-07-08 Jakub Jelinek <jakub@redhat.com>
2588 * config/i386/i386.c (ix86_check_movabs): New function.
2589 * config/i386/i386-protos.h (ix86_check_movabs): New prototype.
2590 * config/i386/i386.md (movabs[shqd]i_1_rex64): Kill broken alternative.
2591 (movabs[shqd]i_[12]_rex64): Add ix86_check_movabs check to conditions.
2593 2003-07-08 Chris Demetriou <cgd@broadcom.com>
2595 * Makefile.in (install-po): Cope with empty CATALOGS.
2597 2003-07-08 Richard Sandiford <rsandifo@redhat.com>
2599 * config/mips/elf64.h (TARGET_ASM_UNIQUE_SECTION): Delete.
2600 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
2601 (SECTION_FUNCTION_TEMPLATE): Delete.
2602 * config/mips/elf.h: As for elf64.h.
2603 (ASM_OUTPUT_ALIGNED_BSS): Use named_section rather than sbss_section.
2604 * config/mips/linux.h: As for elf.h
2605 * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
2606 * config/mips/iris6.h (EXTRA_SECTIONS): Delete.
2607 (EXTRA_SECTION_FUNCTIONS): Remove sdata_section. Remove the handling
2608 of in_sdata from current_section_name and current_section_flags.
2609 * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
2610 * config/mips/mips.h (sdata_section, sbss_section): Remove prototypes.
2611 (MASK_GP_OPT, TARGET_GP_OPT): Delete.
2612 (MASK_NO_FUSED_MADD): Use MASK_GP_OPT's old value.
2613 (TARGET_SWITCHES): Neuter gpOPT, gpopt, no-gpOPT and no-gpopt.
2614 (SMALL_DATA_SECTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
2615 * config/mips/mips.c (TARGET_IN_SMALL_DATA_P): Override.
2616 (TARGET_SECTION_TYPE_FLAGS): Override if TARGET_IRIX6.
2617 (mips_classify_symbol): Use SYMBOL_REF_SMALL_P.
2618 (override_options): Remove setting of MASK_GPOPT.
2619 (mips_output_external): Use mips_in_small_data_p to check whether a
2620 symbol needs an .extern directive. Don't emit such directives for
2621 TARGET_EXPLICIT_RELOCS.
2622 (mips_declare_object): Update accordingly.
2623 (mips_select_rtx_section): Call named_section rather than
2625 (mips_select_section): Use default_elf_section_section for everything
2626 except .text string constants.
2627 (mips_in_small_data_p): New function.
2628 (mips_encode_section_info): Remove small data handling.
2629 (mips_unique_section): Delete.
2630 (iris6_section_type_flags): New function.
2631 * doc/tm.texi: Remove documentation of -mgpopt and -mhalf-pic.
2633 2003-07-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2636 * pa.md: Disparage all mtsar constraints.
2637 (extzv, extv, insv): Don't fail on length of {32|64}.
2639 2003-07-08 Zack Weinberg <zack@codesourcery.com>
2641 * system.h: Poison MAP_CHARACTER.
2642 * config/i370/i370-protos.h (mvs_map_char): Delete.
2643 * config/i370/i370.c (ascebc, ebcasc, mvs_map_char): Delete.
2644 * config/i370/i370.h (MAP_CHARACTER): Delete definition.
2645 (ASM_OUTPUT_ASCII): Don't use MAP_CHARACTER.
2647 2003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
2649 * toplev.c (randomize): Correct call to time().
2651 2003-07-08 Jakub Jelinek <jakub@redhat.com>
2653 * unroll.c (reg_dead_after_loop): Check for reg in REG_EQUAL and
2654 REG_EQUIV notes as well.
2656 2003-07-08 Kazu Hirata <kazu@cs.umass.edu>
2658 * doc/md.texi: Fix the description of addmodecc.
2660 2003-07-07 Zack Weinberg <zack@codesourcery.com>
2662 * Makefile.in (top_builddir): Set to "..", not ".".
2663 (INTLLIBS, INTLDEPS): Delete.
2664 (LIBINTL, LIBINTL_DEP, LIBICONV_DEP): New variables to be substituted.
2665 (LIBDEPS): Add $(LIBICONV_DEP).
2666 (LIBS): Take out $(INTLLIBS), add $(LIBINTL) and $(LIBICONV).
2667 (INCLUDES): Replace -I../intl with @INCINTL@.
2668 ($(top_builddir)/intl/libintl.a): Delete rule.
2669 (stage2-start, stage3-start, stage4-start, stageprofile-start,
2670 stagefeedback-start): Use $$ for variable to be evaluated by
2672 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT,
2673 HAVE_LC_MESSAGES, HAVE_STPCPY): Delete.
2674 * aclocal.m4: sinclude ../config/progtest.m4. Add
2675 contents of lcmessage.m4 from gettext distro.
2676 * configure.in: Check for wchar.h and setlocale. Set
2677 LIBICONV_DEP to the empty string and substitute it.
2678 Call AM_LC_MESSAGES. Delete AC_ARG_ENABLE for --enable-nls;
2679 this is handled elsewhere. Use ZW_GNU_GETTEXT_SISTER_DIR,
2680 not CY_GNU_GETTEXT. Clear $LIBICONV if its text is included
2681 in $LIBINTL, to avoid linking it twice.
2682 * configure, config.in: Regenerate.
2684 2003-07-08 Nathanael Nerode <neroden@gcc.gnu.org>
2686 * fixinc/mkfixinc.sh: Remove winnt support.
2687 * fixinc/fixinc.winnt: Delete with extreme prejudice.
2689 2003-07-08 Neil Booth <neil@daikokuya.co.uk>
2691 * Makefile.in: Update.
2692 * c-opts.c (c_common_handle_option): opt_text now contains the '-'.
2693 * c.opt: Update documentation.
2694 * common.opt: Add some help text.
2695 * opts.c: Include intl.h.
2696 (wrap_help, print_help): New.
2697 (find_opt, handle_option, common_handle_option): opt_text now
2698 contains the '-'. Use print_help to output help.
2699 * opts.h (struct cl_option): New member "help".
2700 * opts.sh: Update to handle help text output and to prepend
2702 * toplev.c (display_help): Remove some help text.
2704 2003-07-07 David Edelsohn <edelsohn@gnu.org>
2705 Fariborz Jahanian <fjahanian@apple.com>
2707 * configure.in: Test for PowerPC mfcr field support in assembler.
2708 * config.in, configure: Regenderated.
2710 * config/rs6000/power4.md: Add mfcrf reservation.
2711 * config/rs6000/rs6000-protos.h (mfcr_operation): Declare.
2712 * config/rs6000/rs6000.c (mfcr_operation): Define.
2713 (print_operand): Add 'Q' case for mfcrf.
2714 * config/rs6000/rs6000.h (TARGET_MFCRF): New.
2715 * config/rs6000/rs6000.md (attribute "type"): Add mfcrf.
2716 (movcc_internal1): Emit optional field operand for mfcr and set
2717 "type" attribute appropriately.
2718 (mfcr SCC): Likewise.
2719 (movesi_from_cr_one): New.
2721 2003-07-07 Roger Sayle <roger@eyesopen.com>
2723 * config/i386/i386.md: Correct check-in of incorrect version.
2725 2003-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2727 * bitmap.c (debug_bitmap_file): Merge uses of HOST_PTR_PRINTF with
2728 adjacent stdio calls.
2729 * c-decl.c (c_print_identifier): Likewise.
2730 * mips-tfile.c (write_varray, write_object, allocate_cluster): Likewise.
2731 * print-rtl.c (print_rtx): Likewise.
2732 * print-tree.c (print_node_brief, print_node): Likewise.
2733 * system.h (HOST_PTR_PRINTF): Ensure we have a literal string.
2735 * configure.in (AC_COMPILE_CHECK_SIZEOF): Check for `void *'.
2736 * config.in, configure: Regenerated.
2738 2003-07-07 Roger Sayle <roger@eyesopen.com>
2741 * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
2742 Changed to define_expand patterns that copy operand[1] to prevent
2743 it from being clobbered before emitting an atan2?f3_1 insn.
2744 (atan2df3_1, atan2sf3_1, atan2xf_1, atan2tf3_1): New define_insn
2745 patterns that actually specify the behaviour of x87's FPATAN.
2747 2003-07-07 Jakub Jelinek <jakub@redhat.com>
2749 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Remove bogus
2750 clearing of SYMBOL_FLAG_LOCAL bit.
2751 If vcall_offset fits into signed 16-bit immediate, use
2752 one instruction for both addition and load.
2754 2003-07-07 Neil Booth <neil@daikokuya.co.uk>
2756 * opts.c (common_handle_option): Correct handling of the
2757 -falign- switches that do and don't take an argument.
2759 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
2761 * config/h8300/h8300.md (pushqi1_h8300hs): Revert my patch
2763 (pushhi1_h8300hs): Likewise.
2765 2003-07-07 Andreas Jaeger <aj@suse.de>
2767 * genextract.c: Convert remaining prototypes to ISO C90.
2769 * cpplex.c (_cpp_free_buff): Convert prototype to ISO C90.
2770 * fold-const.c (fold_single_bit_test): Likewise.
2771 * diagnostic.c (default_diagnostic_finalizer): Likewise.
2772 * cfgrtl.c (rtl_redirect_edge_and_branch): Likewise.
2774 * gengtype.c (write_array): Generate ISO C90 prototypes.
2776 * genflags.c (gen_proto): Generate ISO C90 prototypes.
2778 2003-07-07 Roger Sayle <roger@eyesopen.com>
2780 PR optimization/11059
2781 * expr.c (can_store_by_pieces): Return true if length is zero.
2782 (store_by_pieces): If length is zero and endp is two, abort,
2783 othwerise, if length is zero and endp is not two, return "to".
2784 (clear_by_pieces): Do nothing if length is zero.
2785 (clear_storage): Do nothing if length is zero.
2786 (store_constructor): Simplify code when size is zero, or the
2787 target has already been cleared. This avoids emitting a
2788 blockage instruction when initializing empty structures.
2790 2003-07-07 Andreas Jaeger <aj@suse.de>
2792 * mips-tfile.c: Convert prototypes to ISO C90.
2793 * mips-tdump.c: Convert prototypes to ISO C90.
2795 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
2797 * rtl.h (emit_line_note): Take a location_t.
2798 (emit_line_note_force): Remove.
2799 (set_file_and_line_for_statement): Take a location_t.
2800 * tree.g (emit_line_note): Take a location_t.
2801 * emit-rtl.c (emit_line_note): Take a location_t.
2802 (emit_line_note_force): Remove.
2803 * function.c (init_function_start): Adjust emit_line_note call.
2804 (expand_function_end): Use force_next_line_note, not
2805 emit_line_note_force.
2806 * c-parse.in (maybe_type_qual): Adjust emit_line_note calls.
2807 * c-semantics.c (genrtl_do_pushlevel, genrtl_goto_stmt,
2808 genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
2809 genrtl_while_stmt, genrtl_do_stmt_1, genrtl_return_stmt,
2810 genrtl_for_stmt, genrtl_break_stmt, genrtl_continue_stmt,
2811 genrtl_continue_stmt, genrtl_switch_stmt,
2812 genrtl_asm_stmt): Likewise.
2813 * expr.c (expand_expr): Likewise.
2814 * integrate.c (expand_inline_function): Likewise.
2815 * stmt.c (set_file_and_line_for_stmt): Take a location_t.
2816 (expand_decl_init): Adjust emit_line_note call.
2818 2003-07-07 Dale Johannesen <dalej@apple.com>
2820 * config/rs6000/darwin-tramp.asm: Fix trampolines. PR 10900.
2822 2003-07-07 Andreas Jaeger <aj@suse.de>
2824 * config/i386/i386-protos.h: Convert prototypes to ISO C90.
2825 * config/i386/i386.c: Likewise.
2827 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
2829 * config/h8300/h8300.md: Use gen_int_mode instead of
2830 GEN_INT (trunc_int_for_mode (...)).
2832 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
2834 * config/h8300/h8300.md (pushqi1_h8300hs): Optimize by pushing
2835 2 bytes and then subtract 2 from the stack pointer.
2836 (pushhi1_h8300hs): Likewise.
2838 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
2840 * configure.in (enable_coverage): Remove -DSELF_COVERAGE, add
2842 * configure: Regenerated.
2843 * Makefile.in: Remove extraneous comment.
2844 * toplev.c (randomize): Protect against potential multiple calls.
2845 * doc/invoke.texi (-frandom-seed): Document use for in coverage
2848 2003-07-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2849 Eric Botcazou <ebotcazou@libertysurf.fr>
2851 PR optimization/11198
2852 * alias.c (objects_must_conflict_p): Return 1 if the types have
2853 the same alias set, not if the alias sets only conflict.
2855 2003-07-07 Andrew Pinski <pinskia@physics.uc.edu>
2857 * cppcharset.c (ICONV_CONST): Define iff !HAVE_ICONV.
2858 (convert_cset): Change inbuf to type ICONV_CONST char.
2859 * Makefile.in (LIBS): Add LIBICONV.
2861 * doc/invoke.texi (-falign-functions): Document that
2862 when n is zero then a machine-dependent default is used.
2863 (-falign-labels): Document that when n is zero then a
2864 machine-dependent default is used and that -falign-labels =1
2865 is equivalent to -fno-align-labels.
2866 (-falign-loops): Likewise.
2867 (-falign-jumps): Likewise.
2869 2003-07-06 Art Haas <ahaas@airmail.net>
2871 * f/global.c (ffeglobal_type_string_): Fix obsolete GCC array
2874 2003-07-06 James E Wilson <wilson@tuliptree.org>
2876 PR optimization/9812
2877 * rtl.h (mem_for_const_double): Delete prototype.
2878 * varasm.c (mem_for_const_double): Delete function.
2879 * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68kelf.h,
2880 config/m68k/m68kv4.h, config/m68k/netbsd-elf.h
2881 (LEGITIMATE_PIC_OPERAND_P): Delete duplicate definitions.
2882 * config/m68k/m68k.h (LEGITIMATE_CONSTANT_P): Disallow XFmode.
2883 (LEGITIMATE_PIC_OPERAND_P): Delete CONST_DOUBLE tests.
2884 * config/m68k/m68k.md (movxf): Add reload_in_progress guard. Add
2885 comment about confused support for XFmode constants.
2887 Mon Jul 7 02:03:56 CEST 2003 Jan Hubicka <jh@suse.cz>
2889 * cfglayout.c (fixup_reorder_chain): Call delete_dead_jumptables.
2891 2003-07-06 Kazu Hirata <kazu@cs.umass.edu>
2893 * config/h8300/h8300.c: Fix comment typos.
2894 * config/h8300/h8300.md: Likewise.
2895 * config/i386/athlon.md: Likewise.
2896 * config/i386/i386.c: Likewise.
2897 * config/i386/pentium.md: Likewise.
2898 * config/ia64/ia64.c: Likewise.
2899 * config/ia64/itanium1.md: Likewise.
2900 * config/ia64/itanium2.md: Likewise.
2901 * config/m32r/m32r.md: Likewise.
2902 * config/m68hc11/m68hc11.c: Likewise.
2903 * config/mcore/mcore.c: Likewise.
2904 * config/mips/sr71k.md: Likewise.
2905 * config/mips/t-iris5-as: Likewise.
2906 * config/mmix/mmix.h: Likewise.
2907 * config/ns32k/ns32k.h: Likewise.
2908 * config/ns32k/NOTES: Fix a typo.
2910 2003-07-06 Andreas Jaeger <aj@suse.de>
2912 * stmt.c: Convert remaining prototypes to ISO C90.
2913 * cfglayout.c: Likewise.
2914 * dbxout.c: Likewise.
2916 * genemit.c: Likewise.
2918 * basic-block.h: Convert prototypes to ISO C90.
2919 * c-parse.in: Likewise.
2920 * c-pragma.h: Likewise.
2921 * c-typeck.c: Likewise.
2922 * cfghooks.h: Likewise.
2923 * cfgloopanal.c: Likewise.
2924 * dbxout.h: Likewise.
2925 * debug.h: Likewise.
2926 * dwarf2asm.h: Likewise.
2928 * gengtype-lex.l: Likewise.
2929 * sched-int.h: Likewise.
2930 * timevar.c: Likewise.
2932 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
2934 * c-common.h (c_comon_handle_filename,
2935 c_common_missing_arguement): New.
2936 * c-lang.c (LANG_HOOKS_HANDLE_FILENAME,
2937 LANG_HOOKS_MISSING_ARGUMENT): New.
2938 * c-opts.c (missing_arg): Rename c_common_missing_argument,
2939 update to be an appropriate langhook.
2940 (c_common_handle_option): Don't handle filenames.
2941 (c_common_handle_filename): New.
2942 * hooks.c (hook_void_constcharptr,
2943 hook_bool_constcharptr_size_t_false): New.
2944 * hooks.h (hook_void_constcharptr,
2945 hook_bool_constcharptr_size_t_false): New.
2946 * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME,
2947 LANG_HOOKS_MISSING_ARGUMENT): New.
2948 (LANG_HOOKS_INITIALIZER): Update.
2949 * langhooks.h (struct lang_hooks): Add handle_filename and
2951 * opts.c (handle_option): Don't handle filenames here, but ...
2952 (handle_options): ... here.
2953 (common_handle_option): Don't handle missing arguments here.
2954 * objc/objc-lang.c (LANG_HOOKS_HANDLE_FILENAME,
2955 LANG_HOOKS_MISSING_ARGUMENT): New.
2957 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
2959 * Makfile.in: Remove traces of mbchar.
2960 * c-parse.in (MULTIBYTE_CHARS): Remove.
2961 * config.in (MULTIBYTE_CHARS): Remove.
2962 * configure: Remove --enable-mbchar.
2963 * configure.in: Remove --enable-mbchar.
2964 * mbchar.c, mbchar.h: Remove.
2965 * system.h: Poison MULTIBYTE_CHARS.
2966 * config/linux-aout.h (MULTIBYTE_CHARS): Remove.
2967 * config/linux.h (MULTIBYTE_CHARS): Remove.
2968 * config/svr4.h (MULTIBYTE_CHARS): Remove.
2969 * config/sparc/linux.h (MULTIBYTE_CHARS): Remove.
2971 2003-07-06 Andreas Jaeger <aj@suse.de>
2973 * varray.c (varray_check_failed): Fix typo.
2975 * unroll.c: Convert prototypes to ISO C90.
2976 * varasm.c: Likewise.
2977 * varray.c: Likewise.
2978 * varray.h: Likewise.
2979 * vmsdbgout.c: Likewise.
2980 * xcoffout.c: Likewise.
2981 * xcoffout.h: Likewise.
2983 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
2985 * gcov-io.h: Add a local time stamp.
2986 (struct gcov_info): Add stamp field.
2987 (gcov_truncate): New.
2988 * coverage.c (read_counts_file): Skip the stamp.
2989 (coverage_begin_output): Write the stamp.
2990 (build_gcov_info): Declare and init the stamp.
2991 (coverage_finish): Only unlink data file, if stamp is zero.
2992 * gcov-dump.c (dump_file): Dump the stamp.
2993 * gcov.c (bbg_stamp): New.
2994 (release_structures): Clear bbg_stamp.
2995 (read_graph_file): Read stamp.
2996 (read_count_file): Check stamp.
2997 * libgcov.c (gcov_exit): Check stamp and truncate if needed.
2999 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
3001 * tree.h (default_flag_random_seed): Remove.
3002 * toplev.h (local_tick): Declare.
3003 * tree.c (flag_random_seed, default_flag_random_seed): Move to
3005 (append_random_chars): Don't call default_flag_random_seed.
3006 * toplev.c (flag_random_seed): Define here. Set local_tick.
3007 (local_tick): Define.
3008 (randomize): New, moved from tree.c.
3009 (print_switch_values): Adjust.
3010 (toplev_main): Call randomize.
3012 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
3014 * tree.h (crc32_string): Declare.
3015 * tree.c (append_random_chars): Remove.
3016 (crc32_string): New.
3017 (get_file_function_name_long): Use crc32_string here.
3019 2003-07-06 Andreas Jaeger <aj@suse.de>
3021 * gcc.c: Convert prototypes to ISO C90.
3023 * gcov-dump.c: Likewise.
3024 * gcov-iov.c: Likewise.
3026 * genattrtab.h: Likewise.
3028 * global.c: Likewise.
3029 * graph.c: Likewise.
3030 * graph.h: Likewise.
3031 * hosthooks.h: Likewise.
3032 * hooks.h: Likewise.
3033 * hooks.c: Likewise.
3034 * hashtable.h: Likewise.
3035 * hashtable.c: Likewise.
3036 * haifa-sched.c: Likewise.
3037 * integrate.h: Likewise.
3038 * integrate.c: Likewise.
3039 * input.h: Likewise.
3040 * ifcvt.c: Likewise.
3042 * langhooks-def.h: Likewise. Add extern to prototypes.
3043 * langhooks.c: Likewise.
3044 * langhooks.h: Likewise.
3046 * local-alloc.c: Likewise.
3047 * loop-init.c: Likewise.
3048 * loop-unroll.c: Likewise.
3049 * loop-unswitch.c: Likewise.
3051 * loop.h: Likewise. Add extern to prototypes.
3052 * machmode.h: Likewise.
3054 * mbchar.c: Likewise.
3055 * mbchar.h: Likewise.
3056 * mkdeps.c: Likewise.
3057 * mkdeps.h: Likewise.
3058 * optabs.c: Likewise.
3059 * optabs.h: Likewise.
3060 * output.h: Likewise.
3061 * gccspec.c: Likwise.
3062 * postreload.c: Likewise.
3063 * prefix.c: Likewise.
3064 * prefix.h: Likewise.
3065 * print-rtl.c: Likewise.
3066 * print-tree.c: Likewise.
3067 * profile.c: Likewise.
3068 * read-rtl.c: Likewise.
3071 * recog.c: Likewise.
3072 * recog.h: Likewise.
3073 * reg-stack.c: Likewise.
3074 * regclass.c: Likewise.
3075 * regmove.c: Likewise.
3076 * regrename.c: Likewise.
3078 * reload.c: Likewise.
3079 * reload.h: Likewise.
3080 * reload1.c: Likewise.
3081 * reorg.c: Likewise.
3082 * resource.c: Likewise.
3083 * resource.h: Likewise.
3084 * rtl-error.c: Likewise.
3087 * rtlanal.c: Likewise.
3088 * sbitmap.c: Likewise.
3089 * sbitmap.h: Likewise.
3090 * scan-decls.c: Likewise.
3092 * sched-deps.c: Likewise.
3093 * sched-ebb.c: Likewise.
3094 * sched-int.h: Likewise.
3095 * sched-rgn.c: Likewise.
3096 * sched-vis.c: Likewise.
3097 * sibcall.c: Likewise.
3098 * simplify-rtx.c: Likewise.
3099 * sreal.c: Likewise.
3100 * sreal.h: Likewise.
3101 * ssa-ccp.c: Likewise.
3102 * ssa-dce.c: Likewise.
3105 * stack.h: Likewise.
3107 * stor-layout.c: Likewise.
3108 * stringpool.c: Likewise.
3109 * target.h: Likewise.
3110 * timevar.c: Likewise.
3111 * timevar.h: Likewise.
3112 * tlink.c: Likewise.
3113 * tracer.c: Likewise.
3114 * tree-inline.c: Likewise.
3115 * tree-inline.h: Likewise.
3119 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
3121 * combine.c (nonzero_bits1): Fix a warning.
3123 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
3125 * config/h8300/h8300.c (compute_mov_length): Correct the
3126 length of loading CONST0_RTX (SFmode).
3128 2003-07-05 Nathan Sidwell <nathan@codesourcery.com>
3130 * toplev.c (output_clean_symbol_name): Remove.
3131 * toplev.h (output_clean_symbol_name): Remove.
3132 * config/alpha/alpha.c (unicosmk_output_module_name): Use
3133 lbasename & clean_symbol_name.
3135 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
3137 * ggc.h: Follow spelling conventions.
3138 * config/i386/i386.c: Likewise.
3139 * config/i386/winnt.c: Likewise.
3140 * config/rs6000/rs6000.c: Likewise.
3142 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
3144 * bt-load.c: Fix comment typos.
3145 * c-incpath.c: Likewise.
3147 * cfgcleanup.c: Likewise.
3148 * cfgloop.h: Likewise.
3149 * cfgloopmanip.c: Likewise.
3150 * cfgrtl.c: Likewise.
3151 * diagnostic.h: Likewise.
3152 * dwarfout.c: Likewise.
3153 * emit-rtl.c: Likewise.
3154 * et-forest.c: Likewise.
3155 * et-forest.h: Likewise.
3158 * genattr.c: Likewise.
3160 * langhooks.h: Likewise.
3161 * local-alloc.c: Likewise.
3162 * loop-unroll.c: Likewise.
3163 * loop-unswitch.c: Likewise.
3164 * ra-build.c: Likewise.
3165 * regclass.c: Likewise.
3166 * regmove.c: Likewise.
3167 * rtl.def: Likewise.
3168 * rtlanal.c: Likewise.
3169 * sched-ebb.c: Likewise.
3170 * sched-rgn.c: Likewise.
3171 * simplify-rtx.c: Likewise.
3173 * tracer.c: Likewise.
3176 2003-07-05 Zack Weinberg <zack@codesourcery.com>
3178 * cppcharset.c: Use the correct return type for the fallback iconv
3181 Sat Jul 5 16:18:53 CEST 2003 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3183 Blame to Jan Hubicka <jh@suse.cz>
3184 * cfglayout.c (record_effective_endpoints): Split insns before
3185 first basic block correctly.
3187 2003-07-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3189 * expr.c (expand_expr, case COMPONENT_REF): When seeing if should use
3190 bitfield operations, use STRICT_ALIGNMENT, not SLOW_UNALIGNED_ACCESS
3191 if EXPAND_CONST_ADDRESS or EXPAND_INITIALIZER.
3193 2003-07-05 Andreas Jaeger <aj@suse.de>
3195 * genattrtab.c (write_attr_get): Revert part of last patch to
3196 always write out a prototype.
3198 * genemit.c (gen_split): Readd lost unused attributes in last
3201 2003-07-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3203 * cfgloopmanip.c (force_single_succ_latches): Force latch to be
3204 different from header.
3206 2003-07-05 Andreas Schwab <schwab@suse.de>
3208 * config/m68k/m68k.c: Remove code protected by CRDS.
3209 * config/m68k/m68k.md: Likewise.
3211 2003-07-05 Neil Booth <neil@daikokuya.co.uk>
3214 * c-opts.c (permit_fortran_options): New.
3215 (c_common_init_options): Accept fortran front end options if
3216 it looks like we might be preprocessing Fortran.
3217 (c_common_handle_option): Don't reject switch if permit_fotran_options.
3219 2003-07-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3221 * genattr.c (internal_dfa_insn_code): Output prototype.
3222 * genattrtab.c: Don't output unnecessary decls, output in ISO C.
3223 * genautomata.c: Likewise.
3224 * genconditions.c: Likewise.
3225 * genemit.c: Likewise.
3226 * genextract.c: Likewise.
3227 * gengenrtl.c: Likewise.
3228 * gengtype.c: Likewise.
3229 * genopinit.c: Likewise.
3230 * genoutput.c: Likewise.
3231 * genpeep.c: Likewise.
3232 * genrecog.c: Likewise.
3234 2003-07-04 Zack Weinberg <zack@codesourcery.com>
3236 * cpplib.h (CPP_AT_NAME, CPP_OBJC_STRING): New token types.
3237 (struct cpp_options): Add narrow_charset, wide_charset,
3238 bytes_big_endian fields. Remove EBCDIC field.
3239 (cpp_init_iconv, cpp_interpret_string): New external interfaces.
3241 * cpphash.h: Include <iconv.h> if we have it, otherwise
3242 provide a dummy definition of iconv_t.
3243 (struct cpp_reader): Add narrow_cset_desc and wide_cset_desc fields.
3244 (_cpp_valid_ucn): Update prototype.
3245 (_cpp_destroy_iconv): New prototype.
3247 * doc/cpp.texi: Document character set handling.
3248 * doc/cppopts.texi: Document -fexec-charset= and -fexec-wide-charset=.
3249 * doc/extend.texi: Delete entire section on multiline strings.
3250 Rewrite section on __FUNCTION__ etc now that these are
3253 * cppucnid.tab, cppucnid.pl: New files.
3254 * cppucnid.h: New generated file.
3255 * cppcharset.c: Include cppucnid.h. Lots of commentary added.
3256 (iconv_open, iconv, iconv_close): Provide dummy definitions
3258 (SOURCE_CHARSET, struct strbuf, init_iconv_desc, cpp_init_iconv,
3259 _cpp_destroy_iconv, convert_cset, width_to_mask, convert_ucn,
3260 emit_numeric_escape, convert_hex, convert_oct, convert_escape,
3261 cpp_interpret_string, narrow_str_to_charconst,
3262 wide_str_to_charconst): New.
3263 (ucn_valid_in_identifier): Use a binary search through the
3264 ucnranges table defined in cppucnid.h, not a long chain of if
3266 (_cpp_valid_ucn): Add a limit pointer. Downgrade "universal
3267 character names are only valid in C++ and C99" to a warning.
3268 Issue the "meaning of \[uU] is different in traditional C"
3269 warning here. Take care not to let iconv see an invalid UCS
3270 value if we get a malformed UCN. Issue an error if we don't
3272 (cpp_interpret_charconst): Moved here from cpplex.c. Use
3273 cpp_interpret_string to do the heavy lifting.
3275 * cppinit.c (cpp_create_reader): Initialize bytes_big_endian,
3276 narrow_charset, wide_charset fields of options structure.
3277 (cpp_destroy): Call _cpp_destroy_iconv.
3278 * cpplex.c (forms_identifier_p): Adjust call to _cpp_valid_ucn.
3279 (maybe_read_ucn, hex_digit_value, cpp_parse_escape): Delete.
3280 (cpp_interpret_charconst): Moved to cppcharset.c.
3281 * cpplib.c (dequote_string): Delete.
3282 (interpret_string_notranslate): New.
3283 (do_line, do_linemarker): Use interpret_string_notranslate.
3285 * Makefile.in (cppcharset.o): Depend on cppucnid.h.
3287 * c-common.c (fname_string, combine_strings): Delete.
3288 * c-common.h (fname_string, combine_strings): Delete prototypes.
3289 * c-lex.c (ignore_escape_flag): Delete.
3290 (cb_ident): Use cpp_interpret_string, not lex_string.
3291 (get_nonpadding_token): New function.
3292 (c_lex): Handle Objective-C @-prefixed identifiers and strings here.
3293 Adjust calls to lex_string. Don't write *value twice.
3294 (lex_string): Now handles string constant concatenation.
3295 Most of the work handed off to cpp_interpret_string.
3296 Call fix_string_type here.
3297 * c-parse.in (STRING_FUNC_NAME, VAR_FUNC_NAME): Replace with
3298 FUNC_NAME, throughout.
3299 (OBJC_STRING): New token type.
3300 (primary:STRING): No need to call fix_string_type here.
3301 (primary:objc_string): Make that OBJC_STRING.
3302 (objc_string nonterminal): Delete.
3303 (yylexname): Delete code to handle fake string constants.
3304 (yylexstring): Delete entirely.
3305 (_yylex): Handle CPP_AT_NAME and CPP_OBJC_STRING. No need
3306 to handle CPP_ATSIGN.
3308 * c.opt (-fexec-charset=, -fwide-exec-charset=): New options.
3309 * c-opts.c (missing_arg, c_common_handle_option): Handle
3310 OPT_fexec_charset_ and OPT_fwide_exec_charset_.
3311 (c_common_init): Set cpp_opts->bytes_big_endian, not
3312 cpp_opts->EBCDIC. Call cpp_init_iconv.
3313 (print_help): Document -fexec-charset= and -fexec-wide-charset=.
3314 (TARGET_EBCDIC): Delete default definition.
3316 * objc/objc-act.c (build_objc_string_object): No need to
3317 handle string constant concatenation.
3319 2003-07-04 Kazu Hirata <kazu@cs.umass.edu>
3321 * doc/install.texi: Fix typos.
3322 * doc/invoke.texi: Likewise.
3323 * doc/tm.texi: Likewise.
3325 2003-07-04 Kazu Hirata <kazu@cs.umass.edu>
3327 * config/pa/fptr.c: Fix comment typos.
3328 * config/pa/pa-64.h: Likewise.
3329 * config/pa/pa.c: Likewise.
3330 * config/pa/pa.h: Likewise.
3331 * config/rs6000/603.md: Likewise.
3332 * config/rs6000/7xx.md: Likewise.
3333 * config/rs6000/darwin.h: Likewise.
3334 * config/rs6000/freebsd.h: Likewise.
3335 * config/rs6000/rs6000.c: Likewise.
3336 * config/rs6000/rs6000.md: Likewise.
3337 * config/rs6000/spe.h: Likewise.
3339 2003-07-04 Ulrich Weigand <uweigand@de.ibm.com>
3341 * config/s390/2064.md: Change GNU CC to GCC.
3342 * config/s390/2084.md: Likewise.
3343 * config/s390/fixdfdi.h: Likewise.
3344 * config/s390/linux.h: Likewise.
3345 * config/s390/s390-modes.def: Likewise.
3346 * config/s390/s390-protos.h: Likewise.
3347 * config/s390/s390.c: Likewise.
3348 * config/s390/s390.h: Likewise.
3349 * config/s390/s390.md: Likewise.
3350 * config/s390/s390x.h: Likewise.
3352 2003-07-04 Jeff Law <law@redhat.com>
3355 * expr.c (do_store_flag): Pass in the correct result type
3356 when calling fold_single_bit_test.
3357 * fold-const.c (fold_single_bit_test): Use result_type for the
3358 result when folding a sign bit test.
3360 2003-07-04 Neil Booth <neil@daikokuya.co.uk>
3362 * opts.c (common_handle_options): Negate sense of -falign- switches.
3364 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
3366 * Makefile.in: Replace PWD with PWD_COMMAND.
3368 2003-07-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3370 * cfgloopanal.c (count_strange_loop_iterations): New static function.
3371 (constant_iterations, count_loop_iterations, simple_loop_exit_p):
3372 Handle strange loops.
3374 2003-07-04 Toon Moene <toon@moene.indiv.nluug.nl>
3376 * install.texi: Even the g77 manpage is derived from
3377 the full g77 manual.
3379 2003-07-04 Zack Weinberg <zack@codesourcery.com>
3381 * ABOUT-NLS: Delete.
3382 * intl: Delete entire directory.
3383 * aclocal.m4: Include ../config/gettext.m4. Delete
3384 AC_ISC_POSIX, AM_LANGINFO_CODESET, jm_GLIBC21, AM_LC_MESSAGES,
3385 AM_PATH_PROG_WITH_TEST, AM_WITH_NLS, and AM_GNU_GETTEXT.
3386 * configure.in: Use CY_GNU_GETTEXT, not AM_GNU_GETTEXT.
3387 Remove intl/Makefile from all_outputs.
3388 * configure, config.in: Regenerate.
3389 * Makefile.in: Expunge all references to intl subdirectory.
3390 Add -I../intl to INCLUDES.
3391 * intl.h: Include libintl.h if and only if ENABLE_NLS is defined.
3393 2003-07-04 Roger Sayle <roger@eyesopen.com>
3395 * config/rs6000/aix51.h (TARGET_C99_FUNCTIONS): Define.
3396 * config/rs6000/aix52.h (TARGET_C99_FUNCTIONS): Likewise.
3398 2003-07-04 Danny Smith <dannysmith@users.sourceforge.net>
3400 PR c++/5287, PR c++/7910, PR c++/11021
3401 * config/i386/winnt.c (ix86_handle_dll_attribute): Don't add
3402 dllimport attribute if function is defined at declaration, but
3403 report error instead. Likewise for dllimport'd variable
3404 definitions. Set implicit TREE_PUBLIC for dllimport'd variables
3405 declared within functions, Report error if dllimport or dllexport
3406 symbol is not global.
3407 (i386_pe_dllimport_p): Ignore dllimport attribute of functions
3408 if defined after declaration or if inlined. Don't allow definition
3409 of static data members of C++ classes. Don't dllimport virtual
3411 (i386_pe_mark_dllexport): Warn about inconsistent dll attributes.
3412 (i386_pe_mark_dllimport): Remove unnecessary checks.
3413 (i386_pe_encode_section_info): Warn if the dllimport attribute
3414 and symbol prefix have been instantiated and then overridden.
3416 * doc/extend.texi: Document dllimport and dllexport attributes.
3418 * config/i386/winnt.c (i386_pe_output_labelref): Fix indents.
3420 2003-07-03 Uwe Stieber <uwe@kaos-group.de>
3422 * config/kaos.h (CPP_PREDEFINES): Delete.
3423 (TARGET_OS_CPP_BUILTINS): New.
3425 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3427 * c-aux-info.c: Include toplev.h after c-tree.h.
3428 * c-common.c: Likewise.
3429 (GCC_DIAG_STYLE): Undef.
3430 * c-semantics.c (GCC_DIAG_STYLE): Define.
3431 * c-tree.h (GCC_DIAG_STYLE): Likewise.
3432 * diagnostic.h (inform): Move prototype to toplev.h.
3433 * jump.c: Include diagnostic.h before toplev.h.
3434 * toplev.h (GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG): Define.
3435 (warning, error, fatal_error, pedwarn, sorry, inform,
3436 error_for_asm, warning_for_asm): Mark with ATTRIBUTE_GCC_CXXDIAG.
3438 2003-07-03 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3440 * cfglayout.c (cfg_layout_duplicate_bb): Do not update frequencies
3441 at all if edge is not specified.
3442 (can_copy_bbs_p, copy_bbs): New.
3443 * cfglayout.h (can_copy_bbs_p, copy_bbs): Declare.
3444 * cfgloop.c (get_loop_body): Comment more precisely.
3445 * cfgloopmanip.c (copy_bbs, record_exit_edges): Removed.
3446 (scale_bbs_frequencies): Fix comment typo.
3447 (can_duplicate_loop_p): Use can_copy_bbs_p.
3448 (duplicate_loop_to_header_edge): Simplify by using copy_bbs.
3450 2003-07-03 Devang Patel <dpatel@apple.com>
3452 * c-opts.c (c_common_parse_file): Remove extra
3453 debug_hooks->start_source_file call.
3455 2003-07-03 Roger Sayle <roger@eyesopen.com>
3457 * real.c (real_trunc, real_floor, real_ceil): New functions
3458 to implement trunc, floor and ceil respectively.
3459 * real.h (real_trunc, real_floor, real_ceil): Prototype here.
3460 * builtins.c (integer_valued_real_p): New function to test if
3461 a floating point expression has an integer valued result.
3462 (fold_trunc_transparent_mathfn): Optimize foo(foo(x)) as
3463 foo(x) where foo is an integer rounding function. Similarly,
3464 optimize foo(bar(x)) as bar(x), and foo((double)(int)x) as
3465 (double)(int)x when both foo and bar are integer rounding
3466 functions and we don't need to honor errno.
3467 (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil):
3468 New functions to fold trunc, floor and ceil.
3469 (fold_builtin): Use fold_builtin_trunc to fold BUILT_IN_TRUNC*,
3470 fold_builtin_floor to fold BUILT_IN_FLOOR* and fold_builtin_ceil
3471 to fold BUILT_IN_CEIL*.
3472 * fold-const.c (tree_expr_nonnegative_p): Handle FLOAT_EXPR and
3473 the remaining integer rounding functions.
3475 2003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
3477 * config/sparc/sparc.c (function_arg_partial_nregs): Use
3478 SPARC_INT_ARG_MAX to determine where to split unnamed
3479 complex FP arguments.
3481 Thu Jul 3 20:36:47 CEST 2003 Jan Hubicka <jh@suse.cz>
3483 * basic-block.h (create_basic_block, merge_blocks_nomove): Kill.
3484 * cfgcleanup.c (merge_blocks): Rename to merge_blocks_move.
3485 (merge_blocks_move_predecessor_nojumps,
3486 merge_blocks_move_successor_nojumps): Use merge_blocks.
3487 (try_optimize_cfg): Use merge_blocks_move.
3488 * cfgrtl.c (create_basic_block): Rename to rtl_create_basic_block.
3489 (merge_blocks_nomove): Rename to rtl_merge_blocks.
3490 (cfg_layout_create_basic_block): New.
3491 (rtl_can_merge_blocks): New.
3492 (cfg_layout_split_block): Do not alloc aux by hand.
3493 * cfghooks.h (cfg_hooks): Add create_basic_block, can_merge_blocks_p,
3495 (create_basic_block, can_merge_blocks_p, merge_blocks): New macros.
3496 * cfglayout.c (cfg_layout_duplicate_bb): Do not allocate aux by hand.
3497 * cfgloopmanip.c (loop_split_edge_with): Likewise.
3498 * ifcvt.c (merge_if_block): Use merge_blocks_nomove.
3500 * basic-block.h (basic_block_def): Add field 'rbi'.
3501 * bb-reorder.c (find_traces, rotate_loop, mark_bb_visited,
3502 find_traces_1_round, copy_bb, connect_traces): Update use of rbi.
3503 * cfg.c (entry_exit_blocks): Add new field.
3504 * cfglayout.c: Include alloc-pool.h;
3505 (cfg_layout_pool): New.
3506 (record_effective_endpoints, fixup_reorder_chain,
3507 fixup_fallthru_exit_predecessor, cfg_layout_duplicate_bb): Update use
3509 (cfg_layout_initialize_rbi): New function.
3510 (cfg_layout_initialize): Use it.
3511 (cfg_layout_finalize): Clear rbi fields.
3512 * cfglayout.h (RBI): Kill.
3513 (cfg_layout_initialize_rbi): Declare.
3514 * cfgloopmanip.c (copy_bbs): Use rbi.
3515 (record_exit_edges): Likewise.
3516 (duplicate_loop_to_header_edge): Likewise.
3517 * cfgrtl.c (cfg_layout_create_basic_block): Use
3518 cfg_layout_initialize_rbi.
3519 (cfg_layout_split_block): Use rbi.
3520 (cfg_layout_delete_block): Likewise.
3521 * loop-init.c (loop_optimizer_finalize): Likewise.
3522 * loop-unswitch.c (unswitch_loop): Likewise.
3523 * tracer.c (seen, tail_duplicate, layout_superblocks): Likewise.
3525 * cfgrtl.c: Update comments.
3526 (try_redirect_by_replacing_jump): New argument.
3527 (redirect_branch_edge): Break out from ...
3528 (rtl_redirect_edge_and_branch): ... this one.
3529 (update_cfg_after_block_merging): Break out from ...
3530 (rtl_merge_blocks): ... this one.
3531 (cfg_layout_split_edge): New.
3532 (cfg_layout_merge_blocks): New.
3533 (cfg_layout_can_merge_blocks_p): New.
3534 (cfg_layout_redirect_edge_and_branch): Reorganize.
3535 (cfg_layout_rtl_cfg_hooks): Fill in.
3536 (cfg_layout_delete_block): Kill barriers.
3537 * cfganal.c (can_fallthru): Deal with exit blocks
3538 * cfglayout.c (cfg_layout_function_header): New function
3539 (record_effective_endpoints): Record function header.
3540 (fixup_reorder_chain): Fixup dead jumptables; place header
3542 * basic-block.h (CLEANUP_CFGLAYOUT): New flag.
3543 * bb-reorder.c (cfg_layout_initialize): Update call.
3544 * cfgcleanup.c (try_optimize_cfg): Supress optimizations of fallthru
3545 edges in cfglayout mode.
3546 * cfglayout.c (cleanup_unconditional_jumps): Kill.
3547 (cfg_layout_initialize): Kill agrument loops; use cfgcleanup.
3548 * cfglayout.h (cfg_layout_initialize): Update prototype.
3549 * cfgloop.h (CP_INSIDE_CFGLAYOUT): Kill.
3550 * cfgloopmanip.c (loop_split_edge_with): Use split_edge.
3551 * flow.c (propagate_block): Do not crash when basic block ends
3552 by first insn in the chain.
3553 * loop-init.c (loop_optimizer_init): First enter cfglayout mode; later
3555 * tracer.c (tracer): Update call of cfg_layout_initialize.
3557 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3559 * Makefile.in: Use dependency variables in lieu of explicit
3562 2003-07-03 Steven Bosscher <steven@gcc.gnu.org>
3564 * rtl.h (ECF_*, flags_from_decl_or_type): Move from here...
3565 * tree.h: ...to here.
3567 2003-07-03 Kazu Hirata <kazu@cs.umass.edu>
3569 * config/s390/2064.md: Fix comment typos.
3570 * config/s390/2084.md: Likewise.
3571 * config/s390/s390.c: Likewise.
3572 * config/s390/s390.md: Likewise.
3573 * config/sh/sh.c: Likewise.
3574 * config/sh/sh.h: Likewise.
3575 * config/sh/sh.md: Likewise.
3576 * config/sparc/sparc.c: Likewise.
3577 * config/sparc/sparc.h: Likewise.
3578 * config/sparc/sparc.md: Likewise.
3579 * config/stormy16/stormy16.c: Likewise.
3580 * config/stormy16/stormy16.h: Likewise.
3581 * config/stormy16/stormy-abi: Fix a typo.
3583 2003-07-03 Kelley Cook <kelleycook@wideopenwest.org>
3585 * Makefile.in (ifcvt.o): Depend on OPTABS_H.
3587 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3589 * config/mips/mips.h (save_argv): Delete.
3591 2003-07-03 Roger Sayle <roger@eyesopen.com>
3594 * fold-const.c (extract_muldiv_1): There's nothing that can be done
3595 if the expression is a SAVE_EXPR.
3597 2003-07-03 Kazu Hirata <kazu@cs.umass.edu>
3599 * config/m32r/m32r.c: Fix comment typos.
3600 * config/m68hc11/m68hc11.c: Likewise.
3601 * config/m68hc11/m68hc11.h: Likewise.
3602 * config/m68k/m68k.c: Likewise.
3603 * config/mcore/mcore.c: Likewise.
3604 * config/mcore/mcore.h: Likewise.
3605 * config/mcore/mcore.md: Likewise.
3606 * config/mips/mips.c: Likewise.
3607 * config/mips/mips.h: Likewise.
3608 * config/mips/mips.md: Likewise.
3609 * config/mips/netbsd.h: Likewise.
3610 * config/mn10300/mn10300.c: Likewise.
3612 2003-07-03 Andreas Schwab <schwab@suse.de>
3614 * dbxout.c (pending_bincls): Move decl down inside
3615 DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO section.
3617 2003-07-02 Nathan Sidwell <nathan@codesourcery.com>
3619 * rtl.h (NOTE_DATA): Refer to whole union.
3620 * emit-rtl.c (emit_note): Use memset to clear NOTE_DATA.
3622 2003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
3624 PR optimization/11381
3625 * simplify-rtx.c (simplify_relational_operation): Check that
3626 two equal operands have no side-effects before simplifying
3629 2003-07-02 Jeff Law <law@redhat.com>
3631 * expr.c (do_store_flag): Remove special case folding for
3632 single bit tests. Instead call back into the commonized folder
3634 * fold-const.c (fold_single_bit_test): New function, mostly
3635 extracted from do_store_flag, with an additional case extracted
3637 (fold): Call fold_single_bit_test appropriately.
3638 * tree.h (fold_single_bit_test): Prototype.
3640 2003-07-02 Zack Weinberg <zack@codesourcery.com>
3642 * system.h: Include filenames.h.
3643 (IS_DIR_SEPARATOR, IS_ABSOLUTE_PATHNAME): Don't define.
3644 (DIR_SEPARATOR, DIR_SEPARATOR_2): If not already defined,
3645 define based on HAVE_DOS_BASED_FILE_SYSTEM.
3646 * config/i386/xm-cygwin.h, config/i386/xm-djgpp.h
3647 * config/i386/xm-mingw32.h: Don't define
3648 HAVE_DOS_BASED_FILE_SYSTEM,
3649 DIR_SEPARATOR, or DIR_SEPARATOR_2.
3650 * doc/hostconfig.texi: Update to match.
3652 * cppfiles.c, gcc.c, gensupport.c, protoize.c,
3653 config/i386/cygwin.h:
3654 Use IS_ABSOLUTE_PATH throughout.
3655 * gcc.c (DIR_UP): Delete, unused.
3656 * protoize.c (IS_SAME_PATH): Define in terms of
3658 (is_abspath): Delete.
3660 2003-07-02 Kazu Hirata <kazu@cs.umass.edu>
3662 * config/i386/emmintrin.h: Fix comment typos.
3663 * config/i386/i386.c: Likewise.
3664 * config/i386/i386.h: Likewise.
3665 * config/i386/sco5.h: Likewise.
3666 * config/ia64/ia64.c: Likewise.
3667 * config/ia64/itanium2.md: Likewise.
3669 2003-07-02 H.J. Lu <hongjiu.lu@intel.com>
3671 * dbxout.c (pending_bincls): Replace DBX_USE_BINCLS with
3673 (emit_bincl_stab): Same.
3674 (emit_pending_bincls): Same.
3676 2003-07-02 Kazu Hirata <kazu@cs.umass.edu>
3678 * config/h8300/h8300.c (compute_mov_length): Fix the length of
3679 loading CONST0_RTX (SFmode).
3680 * config/h8300/h8300.h (CONST_DOUBLE_OK_FOR_LETTER_P): Change
3681 'G' to CONST0_RTX (SFmode).
3682 * config/h8300/h8300.md (movsf_h8300): Change the first
3684 (movsf_h8300h): Likewise.
3686 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
3688 * c-common.h (c_common_init_options): New prototype.
3689 * c-opts.c (deferred_size): Remove.
3690 (defer_opt): Array is now pre-allocated.
3691 (c_common_init_options): Pre-allocate deferred_opts. Make
3692 lang_flags unsigned.
3693 (push_command_line_options): Free deferred_opts.
3694 * hooks.c (hook_uint_uint_constcharptrptr_0): New.
3695 * hooks.h (hook_uint_uint_constcharptrptr_0): New.
3696 * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): Update.
3697 * langhooks.h (struct lang_hooks): New prototype for init_options.
3698 * main.c (main): Cast argv.
3699 * opts.c (handle_option, handle_options): Update prototypes.
3700 (decode_options): save_argc, save_argv are not global. Constify.
3701 * opts.h (decode_options): New prototype.
3702 * toplev.c (general_init): New protoype.
3703 (save_argv): Make static.
3704 (save_argc): Remove.
3705 (print_switch_values, general_init): Constify.
3706 (toplev_main): Save argv.
3707 * toplev.h (toplev_main): Update prototype.
3708 (save_argc, save_argv): Remove.
3710 2003-07-02 David Edelsohn <edelsohn@gnu.org>
3712 * dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.
3713 (emit_bincl_stab): Same.
3714 (emit_pending_bincls): Same.
3716 2003-07-02 Nathan Sidwell <nathan@codesourcery.com>
3719 * ginclude/stddef.h (offsetof): Remove cast to 'char &'. Explain why.
3721 2003-07-02 Andreas Schwab <schwab@suse.de>
3723 * dbxout.c (pending_bincls): Only define if DBX_DEBUGGING_INFO.
3725 2003-07-02 Eric Botcazou <ebotcazou@libertysurf.fr>
3727 PR optimization/11210
3728 * expr.c (handled_component_p) [NOP_EXPR]: Add ??? note
3729 about the behaviour with regard to bitfields.
3730 * fold-const (decode_field_reference): Record outermost type in
3731 case the expression is a NOP. Strip all NOPs. Set the signedness
3732 to that of the outermost type (if any) when the bitsize is equal
3733 to the size of the type.
3735 2003-07-02 Richard Sandiford <rsandifo@redhat.com>
3737 * config/mips/mips.md (addsi3): Remove workaround for adds of -32768.
3738 (addsi3_internal, adddi3, adddi3_internal_2): Likewise.
3739 (adddi3_internal_3, addsi3_internal_2): Likewise.
3741 2003-07-02 Richard Sandiford <rsandifo@redhat.com>
3743 * config/mips/mips.c (machine_function): Add new fields:
3744 ignore_hazard_length_p and all_noreorder_p.
3745 (mips_flag_delayed_branch): New variable.
3746 (override_options): Treat '/' as an operand punctuation character.
3747 Set up mips_flag_delayed_branch.
3748 (print_operand): Handle '/'.
3749 (mips_output_function_prologue): Put the whole function in
3750 .set noreorder and .set nomacro if all_noreorder_p is true.
3751 (mips_output_function_epilogue): End the noreorder/nomacro sequence.
3752 (mips16_optimize_gp): Remove "first insn" parameter.
3753 (mips16_lay_out_constants): New function, split out from mips_reorg.
3754 (mips_avoid_hazard, mips_avoid_hazards): New functions.
3755 (mips_reorg): For mips16 code, call mips16_lay_out_constant
3756 and (optionally) mips16_optimize. If TARGET_EXPLICIT_RELOCS,
3757 do delayed-branch scheduling followed by hazard detection.
3758 (mips_adjust_insn_length): Only account for hazards if
3759 !ignore_hazard_length_p.
3760 (mips_output_load_label): Add a nop to the o32 sequence if
3761 the target suffers from load delays.
3762 (mips_output_conditional_branch): Add %/ to the end of branches.
3763 (mips_output_division): Fill the branch delay slot with %#.
3764 * config/mips/mips.md: Remove redundant '%*' from mips16 branch
3765 instructions. End all other %* branches with %/.
3766 (ffssi2, ffsdi2): Fix lengths.
3767 (truncdisi2, truncdihi2, truncdiqi2): Add store attributes.
3768 (fix_truncdfsi2_macro): Turn off .set nomacro if appropriate.
3769 (fix_truncsfsi2_macro): Likewise.
3770 (mov_lwl): Set hazard to "none".
3771 (ashldi3_internal): Fill the branch delay slot with %#.
3772 (ashrdi3_internal, lshrdi3_internal): Likewise.
3773 (exception_receiver): Explicitly set $28.
3774 (hazard_nop): New pattern.
3776 Wed Jul 2 08:12:36 CEST 2003 Jan Hubicka <jh@suse.cz>
3778 * cgraphunit.c (cgraph_finalize_unit): Set current_function_decl
3779 before calling tree_inlinable_function_p.
3781 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3783 * fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5
3784 <internal/stdio_core.h> too.
3785 (stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> and
3786 <internal/wchar_core.h> too.
3787 Substitute va_list uses in inline definition.
3788 * fixinc/fixincl.x: Regenerate.
3790 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3792 * config/mips/iris5.h (SET_FILE_NUMBER): Moved here from iris3.h.
3793 Undef before redefinition.
3794 (LABEL_AFTER_LOC): Likewise.
3795 (DEFAULT_SIGNED_CHAR): Likewise.
3796 (ASM_OUTPUT_ASCII): Moved here from iris4.h.
3799 * config/mips/iris3.h: Remove, unused.
3800 * config/mips/iris4.h: Likewise.
3802 * config/mips/mips.h (STACK_ARGS_ADJUST): Remove, unused.
3804 * config/mips/iris5.h (TARGET_DEFAULT): Move ...
3805 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here to
3808 * config/mips/iris5.h: Move explicit includes ...
3809 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here.
3811 * config/mips/iris6.h (MIPS_ISA_DEFAULT, MIPS_ABI_DEFAULT): Move ...
3812 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
3815 * config/mips/iris6.h (TARGET_DEFAULT): Move ...
3816 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
3819 * config/mips/iris6.h: Fix IRIX spelling.
3820 (MULTILIB_DEFAULTS): Undef before redefinition.
3822 * config/mips/iris6.h: Move explicit includes ...
3823 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here.
3825 Wed Jul 2 02:16:48 CEST 2003 Jan Hubicka <jh@suse.cz>
3827 * cgraph.c (cgraph_mark_needed_node, cgraph_varpool_mark_needed_node,
3828 cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
3829 Use next_needed field instead of aux to maintain the queue.
3830 * cgraph.h (cgraph_node): Add next_needed.
3831 (cgraph_varpool_node): Add next_needed; remove aux.
3832 * cgraphunit.c (cgraph_finalize_compilation_unit): Use next_needed.
3834 Wed Jul 2 02:12:51 CEST 2003 Jan Hubicka <jh@suse.cz>
3836 * cgraphunit.c (cgraph_finalize_function): Set finalized.
3837 (cgraph_finalize_function): Do not examine inlinablility.
3838 (cgraph_finalize_compilation_unit): Do it here.
3839 * cgraph.h (cgraph_local_info): Add finalized field.
3841 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3843 * ggc-common.c (gt_pch_save): Cast MAP_FAILED to void *.
3844 (gt_pch_restore): Likewise.
3846 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
3848 * config/alpha/alpha.c: Fix comment typos.
3849 * config/alpha/elf.h: Likewise.
3850 * config/arm/arm.c: Likewise.
3851 * config/arm/arm.h: Likewise.
3852 * config/arm/arm.md: Likewise.
3853 * config/arm/t-arm-coff: Likewise.
3854 * config/arm/t-strongarm-pe: Likewise.
3855 * config/arm/xscale-elf.h: Likewise.
3856 * config/avr/avr.h: Likewise.
3858 2003-07-01 Jeff Law <law@redhat.com>
3860 * stmt.c (any_pending_cleanups): Remove another redundant test.
3862 2003-07-01 David Edelsohn <edelsohn@gnu.org>
3863 J"orn Rennecke <joern.rennecke@superh.com>
3865 * config/rs6000/rs6000.md (ctr{s,d}i_internal?): Add earlyclobber
3868 2003-07-01 Devang Patel <dpatel@apple.com>
3870 * dbxout.c (DBXOUT_DECR_NESTING): Emit pending bincls, if required.
3872 (struct dbx_file): New members - bincl_status, pending_bincl_name and
3874 (pending_bincls): New.
3875 (dbxout_init): Initialize new dbx_file members.
3876 (dbxout_start_source_file): Same.
3877 (emit_bincl_stab): New function.
3878 (emit_pending_bincls): Same.
3879 (emit_pending_bincls_if_required): Same.
3880 (dbxout_end_source_file): Emit EINCL stab only if BINCL is already
3882 (dbxout_begin_block): Emit pending BINCL stabs.
3883 (dbxout_end_block): Same.
3884 (dbxout_function_decl): Same.
3885 (dbxout_continue): Same.
3886 (dbxout_type): Same.
3887 (dbxout_class_name_qualifiers): Same.
3888 (dbxout_symbol): Same.
3889 (dbxout_symbol_location): Same.
3890 (dbxout_parms): Same.
3892 2003-07-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3894 * c-semantics.c (genrtl_case_label): Fix format specifier bug.
3895 * cfgrtl.c (rtl_verify_flow_info_1): Likewise.
3897 2003-07-01 Andreas Jaeger <aj@suse.de>
3899 * fold-const.c: Convert prototypes to ISO C90.
3900 * function.c: Likewise.
3901 * function.h: Likewise.
3903 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
3905 * doc/contrib.texi: Fix typos.
3906 * doc/invoke.texi: Likewise.
3907 * doc/passes.texi: Likewise.
3908 * doc/sourcebuild.texi: Likewise.
3909 * doc/tm.texi: Likewise.
3911 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
3913 * basic-block.h: Fix comment typos.
3914 * bb-reorder.c: Likewise.
3915 * c-format.c: Likewise.
3916 * cfgcleanup.c: Likewise.
3917 * cfghooks.h: Likewise.
3918 * cfgloop.c: Likewise.
3919 * cfgloopmanip.c: Likewise.
3920 * cfgrtl.c: Likewise.
3921 * cgraph.h: Likewise.
3922 * cgraphunit.c: Likewise.
3923 * combine.c: Likewise.
3924 * convert.c: Likewise.
3925 * dbxout.c: Likewise.
3928 * diagnostic.c: Likewise.
3929 * dwarf2out.c: Likewise.
3930 * et-forest.h: Likewise.
3932 * fold-const.c: Likewise.
3933 * function.h: Likewise.
3934 * gcov-io.h: Likewise.
3937 * genautomata.c: Likewise.
3938 * ggc-common.c: Likewise.
3939 * ggc-page.c: Likewise.
3940 * loop-unroll.c: Likewise.
3941 * loop-unswitch.c: Likewise.
3943 * mips-tfile.c: Likewise.
3944 * optabs.c: Likewise.
3945 * ra-build.c: Likewise.
3946 * ra-colorize.c: Likewise.
3947 * ra-rewrite.c: Likewise.
3949 * regmove.c: Likewise.
3950 * reload.c: Likewise.
3951 * rtlanal.c: Likewise.
3952 * sched-ebb.c: Likewise.
3953 * sched-int.h: Likewise.
3954 * sched-vis.c: Likewise.
3955 * sreal.c: Likewise.
3956 * ssa-ccp.c: Likewise.
3958 * toplev.c: Likewise.
3959 * tree-inline.c: Likewise.
3960 * value-prof.c: Likewise.
3961 * value-prof.h: Likewise.
3963 2003-07-01 Nathan Sidwell <nathan@codesourcery.com>
3965 * rtl.h (emit_line_note_after): Remove.
3966 (emit_note_copy_after, emit_note_copy): New.
3967 * emit-rtl.c (reorder_insns_with_line_notes): Replace
3968 emit_line_note_after with emit_note_copy_after.
3969 (emit_insn_after_with_line_notes): Likewise.
3970 (emit_line_note_after): Kill.
3971 (emit_note_copy_after): New.
3972 (emit_note_copy): New.
3973 * function.c (emit_return_into_block): Use emit_note_copy_after.
3974 (thread_prologue_and_epilogue_insns): Likewise.
3975 * integrate.c (expand_inline_function): Use emit_note_copy.
3976 (copy_insn_list): Likewise.
3977 * unroll.c (copy_loop_body): Likewise.
3978 * cfglayout.c (duplicate_insn_chain): Likewise.
3980 2003-07-01 Nathan Sidwell <nathan@codesourcery.com>
3982 * c-tree.h (define_label): Replace filename and lineno arguments
3984 * c-decl.c (poplevel): Adjust define_label call.
3985 (pop_label_level): Likewise.
3986 (define_label): Replace filename and lineno arguments with a
3988 (store_parm_decls): Use DECL_SOURCE_LOCATION.
3989 * c-parse.in (label): Adjust define_label call.
3991 2003-07-01 Neil Booth <neil@daikokuya.co.uk>
3993 * config/sol2.h, config/alpha/alpha.h, config/alpha/linux.h,
3994 config/i386/i386-interix.h, config/ia64/hpux.h, config/mips/iris6.h,
3995 config/mips/linux.h, config/mips/mips.h, config/pa/pa-hpux.h,
3996 config/pa/pa-hpux10.h, config/pa/pa-hpux11.h, config/pa/pa-pro-end.h,
3997 config/pa/pa.h, config/pa/rtems.h: Use c_dialect_ macros.
3999 2003-07-01 Andreas Jaeger <aj@suse.de>
4001 * final.c: Convert prototypes to ISO C90.
4003 * flags.h: Likewise.
4004 * gcov-io.c: Likewise.
4005 * gcov-io.h: Likewise.
4007 See ChangeLog.9 for earlier changes.