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