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