1 2003-12-30 Roger Sayle <roger@eyesopen.com>
3 * fold-const.c (fold) <COND_EXPR>: Don't require strict type
4 equality, instead just prevent replacing a COND_EXPR of non-void
5 type by one of its operands of void type.
7 2003-12-30 Andreas Schwab <schwab@suse.de>
9 * doc/c-tree.texi: Fix @item vs. @itemx.
10 * doc/cpp.texi: Likewise.
11 * doc/install.texi: Likewise.
12 * doc/invoke.texi: Likewise.
14 2003-12-30 Nathan Sidwell <nathan@codesourcery.com>
16 * builtins.c (expand_builtin_apply_args_1): Fix typo in previous
19 2003-12-30 Jan Hubicka <jh@suse.cz>
22 * i386.h (CLASS_LIKELY_SPILLED_P): Return true for
23 FP_TOP_REG/FP_SECOND_REG.
25 2003-12-30 Steven Bosscher <steven@gcc.gnu.org>
27 Backport from tree-ssa (relevant changes only):
28 2003-12-18 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
30 * et-forest.h (et_forest_create, et_forest_delete,
31 et_forest_add_node, et_forest_add_edge, et_forest_remove_node,
32 et_forest_remove_edge, et_forest_parent,
33 et_forest_common_ancestor, et_forest_node_value,
34 et_forest_enumerate_sons): Declarations removed.
35 (struct et_node): New.
36 (et_new_tree, et_free_tree, et_set_father, et_split, et_nca,
38 * et-forest.c (struct et_forest_occurrence, struct et_forest,
39 struct et_forest_node): Removed.
40 (et_forest_create, et_forest_delete,
41 et_forest_add_node, et_forest_add_edge, et_forest_remove_node,
42 et_forest_remove_edge, et_forest_parent,
43 et_forest_common_ancestor, et_forest_node_value,
44 et_forest_enumerate_sons, splay, remove_all_occurrences,
45 find_leftmost_node, find_rightmost_node, calculate_value): Removed.
47 (et_nodes, et_occurences): New.
48 (set_depth, set_depth_add, set_prev, set_next, et_recomp_min,
49 et_check_occ_sanity, et_check_sanity, et_check_tree_sanity,
50 record_path_before_1, record_path_before, check_path_after_1,
51 check_path_after, et_splay, et_new_occ, et_new_tree,
52 et_free_tree, et_set_father, et_split, et_nca, et_below): New.
53 * basic-block.h (struct basic_block_def): New field dom.
54 (struct dominance_info): Type removed.
55 (calculate_dominance_info, free_dominance_info,
56 nearest_common_dominator, set_immediate_dominator,
57 get_immediate_dominator, dominated_by_p, get_dominated_by,
58 add_to_dominance_info, delete_from_dominance_info,
59 recount_dominator, redirect_immediate_dominators,
60 iterate_fix_dominators, verify_dominators): Declarations
62 (enum dom_state): New.
63 (dom_computed): New variable.
64 (first_dom_son, next_dom_son): Declare.
65 * dominance.c (struct dominance_info): Removed.
66 (BB_NODE, SET_BB_NODE): Removed.
67 (calculate_dominance_info, free_dominance_info,
68 nearest_common_dominator, set_immediate_dominator,
69 get_immediate_dominator, dominated_by_p, get_dominated_by,
70 add_to_dominance_info, delete_from_dominance_info,
71 recount_dominator, redirect_immediate_dominators,
72 iterate_fix_dominators, verify_dominators,
73 debug_dominance_info): Work over new datastructure. Access
74 dominance datastructures through CFG.
75 (assign_dfs_numbers, compute_dom_fast_query, first_dom_son,
77 * bt-load.c (dom): Variable removed.
78 (augment_live_range, combine_btr_defs, migrate_btr_def,
79 migrate_btr_defs, branch_target_load_optimize): Updated for the
80 new interface for dominance information.
81 * cfg.c {exit_entry_blocks): Update initializer.
82 * cfglayout.c (copy_bbs): Removed loops argument. Updated for
83 the new interface for dominance information.
84 * cfglayout.h (copy_bbs): Declaration changed.
85 * cfgloop.c (flow_loop_pre_header_find, flow_loops_cfg_dump,
86 flow_loop_scan, canonicalize_loop_headers, flow_loops_find): Updated
87 for the new interface for dominance information.
88 (flow_loop_scan): Loops argument removed.
89 (flow_loops_free): Don't release dominators.
90 * cfgloop.h (struct cfg): Dom field removed.
91 (flow_loop_scan, loop_split_edge_with, simple_loop_p,
92 just_once_each_iteration_p, split_loop_bb): Declaration changed.
93 * cfgloopanal.c (simple_loop_exit_p, simple_increment,
94 just_once_each_iteration_p, simple_loop_p): Remove loops argument.
95 Updated for the new interface for dominance information.
96 * cfgloopmanip.c (remove_bbs, find_path, create_preheader,
97 split_loop_bb, loopify, duplicate_loop_to_header_edge,
98 force_single_succ_latches, loop_split_edge_with): Ditto.
99 * gcse.c (dominators): Variable removed.
100 (free_code_hoist_mem, compute_code_hoist_data, hoist_code):
101 Updated for the new interface for dominance information.
102 * ifcvt.c (post_dominators): Variable removed.
103 (mark_loop_exit_edges, merge_if_block, find_if_header,
104 find_cond_trap, find_if_case_1, find_if_case_2, if_convert):
105 Updated for the new interface for dominance information.
106 * loop-init.c (rtl_loop_optimizer_init,
107 rtl_loop_optimizer_finalize): Ditto.
108 * loop-unroll.c (decide_peel_simple, decide_peel_once_rolling,
109 decide_peel_completely, decide_unroll_stupid,
110 decide_unroll_constant_iterations,
111 decide_unroll_runtime_iterations): Loops argument removed.
112 Updated for the new interface for dominance information.
113 (unroll_and_peel_loops, peel_loops_completely,
114 unroll_loop_runtime_iterations): Updated for the new interface for
115 dominance information.
116 * loop-unswitch.c (may_unswitch_on_p, unswitch_loops,
117 unswitch_single_loop, unswitch_loop): Updated for the new
118 interface for dominance information.
119 * predict.c (process_note_predictions, process_note_prediction,
120 estimate_probability, note_prediction_to_br_prob): Ditto.
121 * sched-rgn.c (find_rgns, init_regions): Ditto.
122 * toplev.c (rest_of_handle_branch_prob): Free the dominators.
124 2003-12-30 Jan Hubicka <jh@suse.cz>
127 * i386.md (allocate_stack_worker): Use different pattern for pre and
128 post reload expansion.
129 (allocate_stack_worker_1, allocate_stack_worker_rex64): Use
131 (allocate_stack_worder_1_postreload,
132 allocate_stack_worker_rex64_postreload): New.
134 2003-12-29 Nathan Sidwell <nathan@codesourcery.com>
136 * builtins.c (expand_builtin_apply_args_1): Add pretend args size
137 to the virtual incoming args pointer for downward stacks.
139 2003-12-29 Roger Sayle <roger@eyesopen.com>
142 * fold-const.c (fold) <COND_EXPR>: Don't fold a constant condition,
143 if the type of the selected branch doesn't match its' parent.
145 2003-12-29 Jan Hubicka <jh@suse.cz>
147 * coverage.c (read_counts_file): Better error messages; cause corrupted
148 profiles to produce hard errors, not just warnings
149 (get_coverage_counts): Similarly.
151 * toplev.c (rest_of_handle_loop_optimize): Enable LOOP_AUTO_UNROLL.
153 2003-12-29 Phil Edwards <phil@codesourcery.com>
155 * doc/cppopts.texi: Use of -idirafter, -iprefix, -iwithprefix, and
156 -iwithprefixbefore is not discouraged.
158 2003-12-28 Mostafa Hagog <mustafa@il.ibm.com>
160 * sbitmap.c (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg,
161 sbitmap_a_xor_b_cg): Accumulate "changed" properly.
162 (sbitmap_not): Zero all bits past n_bit.
164 2003-12-27 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
167 * cfgloopanal.c (mark_irreducible_loops): Fix the strongly connected
168 components detection.
169 * loop-unswitch.c (unswitch_loop): Preserve simple preheaders.
171 2003-12-27 Bernardo Innocenti <bernie@develer.com>
173 * config/m68k/uclinux.h (LIB_SPEC): Add elf2flt magic required for
174 correct linking of executables using id-based shared libraries.
176 2003-12-27 Kazu Hirata <kazu@cs.umass.edu>
178 * config/i386/i386-interix.h: Remove uses of "register"
179 specifier in declarations of arguments and local variables.
180 * config/i386/i386.c: Likewise.
181 * config/i386/i386elf.h: Likewise.
182 * config/i386/ptx4-i.h: Likewise.
183 * config/i386/sysv4.h: Likewise.
185 2003-12-26 Fariborz Jahanian <fjahanian@apple.com>
186 Geoffrey Keating <geoffk@apple.com>
187 David Edelsohn <edelsohn@gnu.org>
189 * config/rs6000/rs6000.c (legitimate_offset_address_p): Do not
190 restrict DFmode and TFmode to word alignment.
191 * config/rs6000/rs6000.md (movdf_hardfloat64): Use 'o' constraint
192 for ld/std and order before mr.
194 2003-12-26 Andrew Pinski <pinskia@physics.uc.edu>
196 * config/darwin.h (LINK_COMMAND_SPEC): Arrange
197 -fprofile-generate to imply -lgcov.
199 2003-12-26 Kazu Hirata <kazu@cs.umass.edu>
201 * config/h8300/h8300.md (ldm_h8300s_2_normal): Use HImode for
204 2003-12-25 Kazu Hirata <kazu@cs.umass.edu>
206 * config/m32r/m32r.md: Remove a constraint from a splitter.
208 2003-12-25 Andrew Pinski <pinskia@physics.uc.edu>
210 PR C++/13429, C/11944
211 * c-common.c (c_build_qualified_type): Return early when type is
213 (c_apply_type_quals_to_decl): Likewise.
215 2003-12-25 Kazu Hirata <kazu@cs.umass.edu>
217 * config/alpha/alpha-modes.def: Fix comment formatting.
218 * config/alpha/alpha.c: Likewise.
219 * config/alpha/alpha.h: Likewise.
220 * config/alpha/elf.h: Likewise.
221 * config/alpha/lib1funcs.asm: Likewise.
222 * config/alpha/openbsd.h: Likewise.
223 * config/alpha/vms-cc.c: Likewise.
224 * config/alpha/vms-crt0-64.c: Likewise.
225 * config/alpha/vms-crt0.c: Likewise.
226 * config/alpha/vms-ld.c: Likewise.
227 * config/alpha/vms-psxcrt0-64.c: Likewise.
228 * config/alpha/vms-psxcrt0.c: Likewise.
229 * config/alpha/vms.h: Likewise.
230 * config/arc/arc.c: Likewise.
231 * config/arm/aof.h: Likewise.
232 * config/arm/arm-modes.def: Likewise.
233 * config/arm/arm.c: Likewise.
234 * config/arm/arm.h: Likewise.
235 * config/arm/arm.md: Likewise.
236 * config/arm/linux-elf.h: Likewise.
237 * config/arm/vxworks.h: Likewise.
238 * config/avr/avr.c: Likewise.
239 * config/avr/avr.h: Likewise.
241 2003-12-24 Kazu Hirata <kazu@cs.umass.edu>
243 * config/xtensa/elf.h: Fix comment formatting.
244 * config/xtensa/xtensa-protos.h: Likewise.
245 * config/xtensa/xtensa.c: Likewise.
246 * config/xtensa/xtensa.h: Likewise.
248 2003-12-24 Kazu Hirata <kazu@cs.umass.edu>
250 * config/avr/avr.c: Fix comment formatting.
251 * config/avr/avr.md: Likewise.
253 2003-12-24 Kazu Hirata <kazu@cs.umass.edu>
256 * config/avr/avr.c: Include ggc.h.
257 (tmp_reg_rtx): Declare with GTY.
258 (zero_reg_rtx): Likewise.
259 (ldi_reg_rtx): Remove.
260 (avr_override_options): Initialize zero_reg_rtx and
264 * config/avr/avr.h (LDI_REG_REGNO): Remove.
265 Remove externs for tmp_reg_rtx, zero_reg_rtx, and ldi_reg_rtx.
267 2003-12-24 David Edelsohn <edelsohn@gnu.org>
269 * doc/md.texi: Document PowerPC vector register constraint letter.
271 2003-12-23 Mark Mitchell <mark@codesourcery.com>
273 * calls.c (expand_call): Recognize calls to "sqrt" and create
276 2003-12-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
278 * config/mips/mips.c (override_options): Use `inform' instead
279 of `warning' for -g -mabi=32 and native assembler.
281 * config/mips/t-iris6 (CRTSTUFF_T_CFLAGS, TARGET_LIBGCC2_CFLAGS):
282 Don't pass -Wno-error.
284 2003-12-23 David Edelsohn <edelsohn@gnu.org>
286 * function.c (assign_parms): Update max_parm_reg and
287 parm_reg_stack_loc when adding new parm reg.
289 2003-12-23 Kazu Hirata <kazu@cs.umass.edu>
291 * config/ns32k/ns32k.c: Convert to ISO-C.
293 2003-12-23 Zack Weinberg <zack@codesourcery.com>
295 * config/ia64/ia64.c (ia64_va_arg): Pass pointer for
296 variable-sized type through convert_memory_address.
297 (ia64_in_small_data_p): Always return false for FUNCTION_DECLs.
299 2003-12-23 Jan Hubicka <jh@suse.cz>
301 * common.opt (fprofile-generate,fprofile-use): Add.
302 * gcc.c (LINK_COMMAND_SPEC): Arrange -fprofile-generate to imply -lgcov
303 * opts.c (profile_arc_flag_set, flag_profile_values_set,
304 flag_unroll_loops_set, flag_tracer_set,
305 flag_value_profile_transformations_set,
306 flag_peel_loops_set): New static variables.
307 (common_handle_option): Deal with -fprofile-generate/-fprofile-use
308 * invoke.texi (-fprofile-generate, -fprofile-use): Describe.
310 2003-12-23 Mark Mitchell <mark@codesourcery.com>
312 * Makefile.in (OBJS-common): Remove dwarfout.o.
313 (dwarfout.o): Remove.
314 * common.opt: Remove -gdwarf, -gdwarf+.
315 * defaults.h (PREFERRED_DEBUGGING_TYPE): Do not check for
316 DWARF_DEBUGGING_INFO.
317 * dwarf2out.c: Fix typo in comment.
318 * dwarfout.c: Remove.
319 * opts.c (common_handle_option): Remove OPT_gdwarf, OPT_gdwarf_.
320 * toplev.c (process_options): Remove check for
321 DWARF_DEBUGGING_INFO.
322 * config/elfos.h (DWARF_DEBUGGING_INFO): Do not #define it or
324 * config/netware.h (DWARF_DEBUGGING_INFO): Likewise.
325 * config/ptx4.h (DWARF_DEBUGGING_INFO): Likewise.
326 * config/vxworks.h (DWARF_DEBUGGING_INFO): Likewise.
327 * config/alpha/unicosmk.h (DWARF_DEBUGGING_INFO): Likewise.
328 * config/arc/arc.h (DWARF_DEBUGGING_INFO): Likewise.
329 * config/i386/sco5.h (DWARF_DEBUGGING_INFO): Likewise.
330 * config/i386/x86-64.h (DWARF_DEBUGGING_INFO): Likewise.
331 * config/m32r/m32r.h (DWARF_DEBUGGING_INFO): Likewise.
332 * config/mcore/mcore-elf.h (DWARF_DEBUGGING_INFO): Likewise.
333 * config/sparc/linux64.h (DWARF_DEBUGGING_INFO): Likewise.
334 * config/sparc/liteelf.h (DWARF_DEBUGGING_INFO): Likewise.
335 * config/sparc/sol26-sld.h (DWARF_DEBUGGING_INFO): Likewise.
336 * config/sparc/sp86x-elf.h (DWARF_DEBUGGING_INFO): Likewise.
337 * doc/invoke.texi: Do not mention -gdwarf, -gdwarf-1, -gdwarf-1+,
339 * doc/tm.texi: Likewise.
341 * c-common.c (flag_abi_version): Default to 2.
342 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_ABI_VERSION
343 uniformly for versions above 2.
344 * doc/invoke.texi: Update documentation for -fabi-version.
346 2003-12-22 Geoffrey Keating <geoffk@apple.com>
348 * config/rs6000/rs6000.md: Change many instances of '!
349 TARGET_POWERPC64' to 'TARGET_32BIT' when the pattern being guarded
350 was guarded only because it changed CR0 or the carry bit in XER.
352 2003-12-23 Eric Botcazou <ebotcazou@libertysurf.fr>
354 PR optimization/13394
355 * toplev.c (rest_of_compilation): Move call to
356 check_function_return_warnings right after the sibcall
359 2003-12-23 Eric Botcazou <ebotcazou@libertysurf.fr>
362 * c-typeck.c (convert_for_assignment): When converting from
363 integral type to pointer type, always call convert.
365 2003-12-22 Mark Mitchell <mark@codesourcery.com>
367 * doc/invoke.texi: Deprecate -fwritable-strings.
369 * c-common.c (flag_external_templates): Remove.
370 (flag_alt_external_templates): Likewise.
371 * c-common.h (flag_external_templates): Remove.
372 (flag_alt_external_templates): Likewise.
373 * c-opts.c (c_common_handle_option): Unsupport
374 -falt-external-templates and -ftemplates.
375 * doc/invoke.texi: Remove mention of -fexternal-templates and
376 -falt-external-templates.
378 2003-12-22 Andrew Pinski <pinskia@physics.uc.edu>
381 * config.gcc (powerpc-*-darwin): Remove overridden value of need_64bit_hwint.
383 * emit-rtl.c (copy_rtx_if_shared): Add comment about its use of
384 copy_rtx_if_shared_1.
385 (copy_rtx_if_shared_1): Add comment about what the function does.
387 * c-decl.c (finish_function): Change order of checks.
388 (c_expand_body): Likewise.
390 2003-12-22 Fariborz Jahanian <fjahanian@apple.com>
392 * config/rs6000/rs6000.c (legitimate_offset_address_p): Correct
393 check for the legitimate offset when memory of
394 DImode/DFmode/TFmode/TImode mode is being referenced and target
397 2003-12-22 Dale Johannesen <dalej@apple.com>
399 * reload1.c: Add reg_reloaded_call_part_clobbered.
400 (reload_as_needed): Use it.
401 (forget_old_reloads_1): Ditto.
402 (emit_reload_insns): Ditto.
404 2003-12-22 Dale Johannesen <dalej@apple.com>
406 PR optimization/12828
407 * loop.c: Add find_regs_nested to look inside CLOBBER(MEM).
408 (scan_loop): Call it.
409 * regclass.c (reg_scan_mark_regs): Look inside CLOBBER(MEM).
411 2003-12-22 Andrew Pinski <pinskia@physics.uc.edu>
414 * c-decl.c (poplevel): Only set DECL_INITIAL of a current function
416 (finish_function): Check for error_mark_node or null on DECL_RESULT and
417 DECL_RESULT of fndecl.
418 (c_expand_body): Only expand when DECL_INITIAL of fndecl is not
419 error_mark_node and not null.
421 2003-12-21 Dan Nicolaescu <dann@ics.uci.edu>
423 * rtl.h (dump_rtx_statistics): Declare it.
424 * rtl.c (rtx_alloc_counts, rtx_alloc_sizes, rtvec_alloc_counts,
425 rtx_alloc_sizes): New static vars.
426 (rtx_alloc, rtvec_alloc): Update them.
427 (dump_rtx_statistics): New function.
428 * toplev.c (finalize): Call it.
429 * ggc-page.c (struct globals): Fix comments. Add new member
430 total_allocated_per_order.
431 (ggc_alloc): Keep track of the total allocated memory.
432 (ggc_print_statistics): Clarify message. Print total allocated
434 * configure.in (gather-detailed-mem-stats): New flag.
435 * configure: Regenerate.
436 * config.in: Regenerate.
437 * doc/install.texi (Configuration): Document
438 --enable-gather-detailed-mem-stats.
440 2003-12-22 Kazu Hirata <kazu@cs.umass.edu>
442 * system.h (CONVERT_HARD_REGISTER_TO_SSA_P): Poison.
443 * config/i386/i386.h (CONVERT_HARD_REGISTER_TO_SSA_P): Remove.
445 2003-12-21 Roger Sayle <roger@eyesopen.com>
447 * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Define _ILP32
448 when compiling in ILP32 mode.
450 2003-12-21 Andrew Pinski <pinskia@physics.uc.edu>
452 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Return early if
453 TARGET_HAVE_TLS is false.
455 2003-12-21 Kazu Hirata <kazu@cs.umass.edu>
457 * config/ip2k/ip2k-protos.h: Remove the prototype for
458 asm_output_section_name.
459 * config/ip2k/ip2k.c (asm_output_section_name): Remove.
461 2003-12-21 Kazu Hirata <kazu@cs.umass.edu>
463 * alias.c: Fix comment formatting.
464 * alloc-pool.c: Likewise.
465 * bitmap.c: Likewise.
466 * bitmap.h: Likewise.
467 * bt-load.c: Likewise.
468 * c-common.c: Likewise.
469 * c-common.h: Likewise.
470 * c-decl.c: Likewise.
471 * c-opts.c: Likewise.
472 * c-pretty-print.c: Likewise.
473 * caller-save.c: Likewise.
474 * cfghooks.h: Likewise.
475 * cgraph.c: Likewise.
476 * collect2.c: Likewise.
477 * cppfiles.c: Likewise.
478 * cpplib.h: Likewise.
479 * dwarf2out.c: Likewise.
480 * dwarfout.c: Likewise.
481 * emit-rtl.c: Likewise.
483 * function.c: Likewise.
486 * genemit.c: Likewise.
488 * haifa-sched.c: Likewise.
490 * libgcc2.h: Likewise.
492 * predict.h: Likewise.
493 * unwind-libunwind.c: Likewise.
494 * varasm.c: Likewise.
496 2003-12-21 Kazu Hirata <kazu@cs.umass.edu>
498 * config/mn10300/mn10300.c (mn10300_encode_section_info): Fix
501 2003-12-21 Kazu Hirata <kazu@cs.umass.edu>
503 * config/arm/arm.c: Convert to ISO-C.
504 * config/avr/avr.h: Likewise.
505 * config/fr30/fr30.c: Likewise.
506 * config/ip2k/ip2k.c: Likewise.
507 * config/mn10300/mn10300.c: Likewise.
509 2003-12-20 Andrew Pinski <pinskia@gcc.gnu.org>
510 Matt Thomas <matt@3am-software.com>
513 * config/i386/i386.c (print_operand): Print only the first
514 8 characters of the float in hex.
516 2003-12-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
518 * pa.h (TRAMPOLINE_TEMPLATE): Shorten sequence when generating PA
520 (TRAMPOLINE_CODE_SIZE, MIN_CACHELINE_SIZE): New defines.
521 (INITIALIZE_TRAMPOLINE): Rework to pass line length, and aligned start
522 and end addresses to I and D cache instruction patterns.
523 * pa.md (anddi3, iordi3): Change predicates of operands 1 and 2 to
524 and_operand and ior_operand, respectively. When generating 64-bit
525 code, only one operand needs to be a register operand.
526 (xordi3): Change predicates of operands 1 and 2 to register_operand.
527 (one_cmpldi2): Change predicate of operand 1 to register_operand.
528 (dcacheflush, icacheflush): Revise to flush an arbitrary number of
531 2003-12-20 Josef Zlomek <zlomekj@suse.cz>
533 PR optimization/13430, PR optimization/12322
534 * bb-reorder.c (copy_bb_p): Do not allow block with many successors to
536 (find_traces_1_round): Surround check for fake edges by
537 #ifdef ENABLE_CHECKING #endif.
539 2003-12-20 Eric Botcazou <ebotcazou@libertysurf.fr>
542 * genmultilib: New variable disable_multilib. Set it to 'yes'
543 if enable_multilib was set to 'no'. Emit DISABLE_MULTILIB
544 if disable_multilib was set to 'yes'.
545 * gcc.c: Include multilib.h before tm.h.
546 * config/sparc/sol2-bi.h (LINK_ARCH_SPEC): Emit an error
547 message for multiarch options if DISABLE_MULTILIB is set.
548 * config/sparc/sol2-gld-bi.h (LINK_ARCH_SPEC): Likewise.
550 2003-12-20 Eric Botcazou <ebotcazou@libertysurf.fr>
553 * c-typeck.c (build_function_call): Issue a warning if a
554 function is called through an incompatible prototype and
555 replace the call by a trap in this case.
557 2003-12-19 James E Wilson <wilson@specifixinc.com>
559 * install.texi (ia64-*-linux): Document minimum libunwind version
562 2003-12-19 Per Bothner <per@bothner.com>
564 * langhooks.c (lhd_print_error_function): Fix for PR c/13110.
565 Don't do pp_newline; it causes an extra blank line.
566 * pretty-print.c (pp_base_flush): Clear pp_needs_newline.
568 2003-12-19 Jason Merrill <jason@redhat.com>
570 * tree.c (get_unwidened): Decide whether to narrow a bitfield
571 reference based on TYPE_SIZE, not TYPE_PRECISION.
573 * stmt.c (parse_output_constraint): Warn about in-out constraint
574 that doesn't allow a register.
575 (parse_input_constraint): Warn about matching constraint that
576 doesn't allow a register.
578 2003-12-19 James E Wilson <wilson@specifixinc.com>
580 * flow.c (mark_set_regs, case PARALLEL): Scan loop forwards.
581 Add case for ASM_OPERANDS.
582 * global.c (global_alloc): Set regs_ever_live for regs_asm_clobbered
585 2003-12-19 Kazu Hirata <kazu@cs.umass.edu>
587 * expr.c (check_max_integer_computation_mode): Remove.
588 * dojump.c (do_jump): Don't use MAX_INTEGER_COMPUTATION_MODE.
589 * fold-const.c (fold): Likewise.
590 * system.h (MAX_INTEGER_COMPUTATION_MODE): Poison.
591 * doc/tm.texi (MAX_INTEGER_COMPUTATION_MODE): Remove.
593 2003-12-19 James E Wilson <wilson@specifixinc.com>
595 * configure.in: Delete libunwind_has_eh_support test.
596 * configure: Regenerate.
597 * config.gcc (ia64*-*-linux*): Delete reference to t-libunwind-no-eh
598 and libunwind_has_eh_support check.
599 * config/t-libunwind-no-eh: Delete.
601 2003-12-19 Joseph S. Myers <jsm@polyomino.org.uk>
603 * c-format.c (print_char_table): Allow 'I' flag on floating point
606 2003-12-19 Stuart Hastings <stuart@apple.com>
608 * gcc/config/i386/i386.c (ix86_expand_call, x86_output_mi_thunk):
609 Trivial fixes for i386.c on Darwin/x86.
611 2003-12-19 Fariborz Jahanian <fjahanian@apple.com>
613 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Add code to
614 recognize macho-style lo_sum adrress patterns.
616 2003-12-19 Kazu Hirata <kazu@cs.umass.edu>
618 * dwarfout.c: Remove uses of "register" specifier in
619 declarations of arguments and local variables.
620 * gensupport.c: Likewise.
621 * local-alloc.c: Likewise.
622 * regclass.c: Likewise.
624 2003-12-19 Kelley Cook <kelleycook@wideopenwest.com>
626 * config.guess: Remove.
628 2003-12-19 Jakub Jelinek <jakub@redhat.com>
630 * config/ia64/unwind-ia64.c (ia64_copy_rbs): New function.
631 (unw_access_gr): Only call ia64_rse_rnat_addr if addr is above
633 (uw_frame_state_for): Handle locations inside bundles.
634 (uw_init_context_1): Initialize context->rnat.
635 Set context->regstk_top to lowest rbs address which has nat collection
637 (uw_install_context): Fix rnat restoring.
638 Restore ar.rsc to previous state.
639 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR,
640 MD_HANDLE_UNWABI): Handle unwinding through SA_ONSTACK frames.
642 2003-12-19 Jakub Jelinek <jakub@redhat.com>
645 * builtins.c (expand_builtin_expect_jump): Update
646 TREE_VALUE (arglist) if unsave_expr_now langhook
649 2003-12-19 Richard Earnshaw <rearnsha@arm.com>
651 * arm.c (thumb_base_register_rtx_p): Use regno in comparison against
652 FIRST_PSEUDO_REGISTER.
654 2003-12-18 Hartmut Penner <hpenner@de.ibm.com>
656 * gcc/config/rs6000/rs6000.c (USE_ALTIVEC_FOR_ARG_P): Don't check
659 2003-12-18 Geoffrey Keating <geoffk@apple.com>
661 * config/rs6000/aix.h (OS_MISSING_POWERPC64): Define.
662 (OS_MISSING_ALTIVEC): Define.
663 * config/rs6000/darwin.h (ASM_SPEC): Be generous about supplying
664 -force_cpusubtype_ALL.
665 * config/rs6000/rs6000.c (rs6000_override_options): Rearrange
666 CPU information table; now always set all CPU-specific values.
667 Also, use Altivec and powerpc64 when chip and OS supports them.
669 2003-12-18 Geoffrey Keating <geoffk@apple.com>
671 * fixinc/inclhack.def (darwin_macho_dyldh): New.
672 * fixinc/fixincl.x: Regenerate.
674 2003-12-18 Dara Hazeghi <dhazeghi@yahoo.com>
676 * version.c (version_string): Renumber as 3.4.0
677 * doc/include/gcc-common.texi: Likewise
679 2003-12-18 Richard Henderson <rth@redhat.com>
681 * genrecog.c (print_host_wide_int): New.
682 (write_switch, write_cond): Use it.
684 2003-12-18 Richard Henderson <rth@redhat.com>
686 * c-decl.c (check_bitfield_type_and_width): Remove enum special
687 case suppression of pedwarn.
688 * system.h (ENUM_BITFIELD): Use __extension__.
689 (CHAR_BITFIELD): Likewise.
691 2003-12-18 Ulrich Weigand <uweigand@de.ibm.com>
692 Mark Dettinger <dettinge@de.ibm.com>
694 * config/s390/s390.md (UNSPEC_SRST): New constant.
695 ("strlendi", "strlensi"): New expanders.
696 ("*strlendi", "*strlensi"): New insns.
698 2003-12-18 Mark Mitchell <mark@codesourcery.com>
700 * config/sol2.h (LINK_ARCH32_SPEC): Define in terms of ...
701 (LINK_ARCH32_SPEC_BASE): ... this new macro.
702 * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC): Define in terms of
704 (LINK_ARCH64_SPEC_BASE): ... this new macro.
705 * config/sparc/sol2-gld-bi.h (LINK_ARCH32_SPEC): New macro.
706 (LINK_ARCH64_SPEC): Likewise.
708 2003-12-18 Jason Merrill <jason@redhat.com>
711 * tree-dump.c (dequeue_and_dump): Handle 'r' and 's' code
714 2003-12-18 Steven Bosscher <stevenb@suse.de>
716 * Makefile.in (tracer.o, bb-reorder.o): Depend on timevar.h
717 * toplev.c (rest_of_handle_reorder_blocks, rest_of_handle_tracer):
718 Don't push and pop TV_REORDER_BLOCKS timevars, do it...
719 * bb-reorder.c (reorder_basic_blocks): ...here, and...
720 * tracer.c (tracer): here.
722 2003-12-18 Ulrich Weigand <uweigand@de.ibm.com>
724 * loop.c (move_movables): Handle combination of m->consec,
725 m->move_insn_first, and m->insert_temp all nonzero correctly.
727 2003-12-18 Kazu Hirata <kazu@cs.umass.edu>
729 * calls.c (load_register_parameters): Don't use
731 * system.h (LOAD_ARGS_REVERSED): Poison.
732 * doc/tm.texi (LOAD_ARGS_REVERSED): Remove.
734 2003-12-17 Per Bothner <per@bothner.com>
736 * emit-rtl.c (set_new_first_and_last_label_num): Remove function.
737 * rtl.h (set_new_first_and_last_label_num): Remove declaration.
739 2003-12-17 Alexandre Oliva <aoliva@redhat.com>
741 * config/frv/frv.c (frv_ifcvt_modify_insn): Don't leave alone
742 scratch insns of the then branch that clobber regs needed by the
745 2003-12-17 Kazu Hirata <kazu@cs.umass.edu>
747 * calls.c (expand_call): Update comments.
748 * system.h (PRETEND_OUTGOING_VARARGS_NAMED): Poison.
749 * targhooks.c: Do not refer to PRETEND_OUTGOING_VARARGS_NAMED.
751 2003-12-17 James E Wilson <wilson@specifixinc.com>
752 Roger Sayle <roger@eyesopen.com>
754 * Makefile.in (gcse.o): Add $(TREE_H) to dependencies.
755 * gcse.c: Include tree.h.
756 (implicit_set_cond_p): New.
757 (find_implicit_sets): Call it.
759 2003-12-17 Santiago Vila <sanvila@unex.es>
761 * config/kfreebsdgnu.h (TARGET_OS_CPP_BUILTINS): Rename from
762 TARET_OS_CPP_BUILTINS.
764 2003-12-16 Kazu Hirata <kazu@cs.umass.edu>
766 * emit-rtl.c: Fix signed/unsigned comparison warnings.
768 2003-12-17 Joseph S. Myers <jsm@polyomino.org.uk>
770 * predict.c (struct block_info_def, struct edge_info_def): Change
771 bit-fields of width 1 to unsigned int.
773 2003-12-16 Geoffrey Keating <geoffk@apple.com>
776 * c-pch.c (pch_init): Improve error message when precompiled
777 header can't be written.
780 * c-pch.c (pch_init): Make a PCH file appear invalid while it's
782 (c_common_write_pch): Make it valid once it's done.
784 2003-12-17 Ulrich Weigand <uweigand@de.ibm.com>
787 * config/s390/s390.md ("*cmpmem_long_64"): Use CLCLE instruction
789 ("*cmpmem_long_31"): Likewise.
791 2003-12-17 Vladimir Makarov <vmakarov@redhat.com>
793 * config/ia64/ia64.c: Add more comments about insn bundling.
795 2003-12-17 Richard Earnshaw <rearnsha@arm.com>
797 PR optimization/10592
798 * caller-save.c (mark_referenced_regs): Don't short-circuit a reg
799 or subreg in SET_DEST if it isn't a hard register.
801 2003-12-17 David Edelsohn <edelsohn@gnu.org>
803 * collect2.c (main): Add -fno-profile-arcs -fno-test-coverage
804 -fno-branch-probabilities to arguments when compiling ctors and
807 2003-12-17 Eric Botcazou <ebotcazou@libertysurf.fr>
809 * config/sparc/sol2.h: Set SUPPORTS_INIT_PRIORITY to 0.
810 * config/sparc/sol2-gld.h: Set SUPPORTS_INIT_PRIORITY to 1.
812 2003-12-17 Richard Earnshaw <rearnsha@arm.com>
814 * arm.c (thumb_base_register_rtx_p): Don't allow virtual registers
815 as base registers for sub-word operations.
816 (thumb_legitimate_address_p): Simplify REG+REG test.
818 2003-12-17 Segher Boessenkool <boessen@de.ibm.com>
820 * opts.c (wrap_help): Fix overflow.
822 2003-12-17 Fred Fish <fnf@redhat.com>
824 * configure.in: Remove code to examine linker scripts and set
825 HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES.
826 * configure, config.in: Regenerate.
828 2003-12-16 Mark Mitchell <mark@codesourcery.com>
831 * varasm.c (initializer_constant_valid_p): Allow a conversion from
832 an integral constant to an OFFSET_TYPE.
834 2003-12-16 Kazu Hirata <kazu@cs.umass.edu>
837 * config/m32r/m32r.c (gen_compare): Call gen_addsi3 instead of
838 gen_cmp_ne_small_const_insn.
839 * config/m32r/m32r.md (cmp_ne_small_const_insn): Remove.
841 2003-12-17 Neil Booth <neil@daikokuya.co.uk>
842 Joseph S. Myers <jsm@polyomino.org.uk>
845 * c-decl.c (enum_decl_context): Remove BITFIELD.
846 (grokdeclarator): Take bit-field width as an input.
847 Perform bit-field width validation with
848 check_bitfield_type_and_width rather than waiting for
850 (groktypename, groktypename_in_parm_context, start_decl,
851 push_parm_decl, grokfield, start_function): Update calls to
853 (check_bitfield_type_and_width): New function.
854 (finish_struct): Move bit-field validation to grokdeclarator
855 and check_bitfield_type_and_width.
857 2003-12-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
860 * configure.in (gcc_cv_ld_hidden): Set to yes on hppa64*-*-hpux* when
861 using HP native linker.
862 * configure: Rebuilt.
864 2003-12-16 Mark Mitchell <mark@codesourcery.com>
867 * c-common.h (enum rid): Add RID_OFFSETOF.
868 * c-parser.in (rid_to_yy): Ignore RID_OFFSETOF.
869 * ginclude/stddef.h (offsetof): Reimplement for C++, using
871 * doc/extend.texi: Document __offsetof__.
873 2003-12-16 Stan Cox <scox@redhat.com>
875 * config/iq2000/iq2000.h: Formatting.
876 (MAX_INT_TYPE_SIZE, MAX_INT_TYPE_SIZE, CONST_COSTS, RTX_COSTS)
877 (ADDRESS_COST, ASM_OUTPUT_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL)
878 (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR, SLOW_ZERO_EXTEND): Remove
879 * config/iq2000/iq2000.c: Formatting.
880 (iq2000_rtx_costs): New.
882 2003-12-16 Richard Earnshaw <rearnsha@arm.com>
884 * arm.md (addsi3_carryin_shift): Add missing register constraints.
886 2003-12-16 Loren James Rittle <ljrittle@acm.org>
888 * testsuite/g++.old-deja/g++.eh/badalloc1.C: Tweak to
889 pass with -pthread on FreeBSD systems.
891 2003-12-16 Richard Sandiford <rsandifo@redhat.com>
893 * config/mips/mips.c (mips_file_end): Only write symbols that have
894 been referenced at some point.
896 2003-12-16 Richard Sandiford <rsandifo@redhat.com>
898 * config/mips/mips.c: Include langhooks.h
899 (mips_build_builtin_va_list): Use lang_hooks.types.make_type.
901 2003-12-16 Eric Botcazou <ebotcazou@libertysurf.fr>
903 PR optimization/13313
904 * combine.c (make_extraction) [REG]: Do not use
905 gen_lowpart_for_combine when POS is non-zero.
907 2003-12-16 Hartmut Penner <hpenner@de.ibm.com>
909 * altivec.h (vec_cmple, vec_all_numeric): Fix typo.
910 * testsuite/gcc.dg/altivec-10.c: Test for above.
912 2003-12-15 David O'Brien <obrien@FreeBSD.org>
914 * Makefile.in (CPPFLAGS): Initialize from configure.
916 2003-12-15 Roger Sayle <roger@eyesopen.com>
919 * ifcvt.c (noce_process_if_block): Disable unconditional write
920 optimizations if we could introduce a store to trapping memory
921 that wasn't present previously.
923 2003-12-15 Kazu Hirata <kazu@cs.umass.edu>
925 * system.h (DEFAULT_CALLER_SAVES): Poison.
926 * toplev.c (flag_caller_saves): Always initialize with 0.
927 * doc/tm.texi (DEFAULT_CALLER_SAVES): Remove.
929 2003-12-15 Kazu Hirata <kazu@cs.umass.edu>
931 * flow.c (EXIT_IGNORE_STACK): Move to ...
932 * defaults.h (EXIT_IGNORE_STACK): ... here.
933 * dojump.c (clear_pending_stack_adjust): Don't use #ifdef
935 * function.c (expand_function_end): Likewise.
936 * global.c (global_alloc): Likewise.
937 * ra.c (init_ra): Likewise.
938 * reload1.c (init_elim_table): Likewise.
939 * reorg.c (fill_simple_delay_slots): Likewise.
940 * resource.c (init_resource_info): Likewise.
941 * doc/tm.texi (EXIT_IGNORE_STACK): Document that the default
944 2003-12-15 J"orn Rennecke <joern.rennecke@superh.com>
946 * reload.c (reg_overlap_mentioned_for_reload_p):
947 When looking at a PLUS in X, avoid spuriously returning nonzero
948 when IN is a REG or another simple PLUS, or a MEM containing one.
950 * loop.c (loop_invariant_p): Amend comment about where new registers
953 2003-12-15 Andreas Jaeger <aj@suse.de>
955 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Remove
956 handling of obsolete language CHILL.
958 2003-12-15 Waldek Hebisch <hebisch@math.uni.wroc.pl>
960 * tree.c (initializer_zerop): Add test for empty set.
961 * integrate.c (function_cannot_inline_p): Forbid inlining
962 functions calling `longjmp'.
964 2003-12-15 Nathan Sidwell <nathan@codesourcery.com>
967 * doc/gcov.texi (Gcov and Optimization): Document inline function
968 behaviour. Fix some file suffixes.
970 2003-12-14 David O'Brien <obrien@FreeBSD.org>
972 * config/i386/i386.h (__amd64, __amd64__): Remove duplicates.
974 2003-12-14 Mark Mitchell <mark@codesourcery.com>
976 * c-common.h (c_parse_error): Declare it.
977 * c-common.c (c_parse_error): New function.
978 * c-parse.y (yyerror): Use it.
980 2003-12-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
983 * pa-protos.h (indexed_memory_operand, borx_reg_operand,
984 move_dest_operand, move_src_operand): New protypes.
985 (basereg_operand, move_operand, reg_or_nonsymb_mem_operand): Deleted.
986 * pa.c (copy_reg_pointer, indexed_memory_operand, move_dest_operand,
987 move_src_operand): New functions.
988 (basereg_operand, reg_or_nonsymb_mem_operand, move_operand): Delete.
989 (reg_or_0_or_nonsymb_mem_operand): Return false for unscaled indexed
990 address until cse is not expected on targets with non-equivalent
992 (hppa_legitimize_address): Canonicalize unscaled indexed addresses
993 on targets non-equivalent space registers.
994 (emit_move_sequence): Break out indexed addresses from destination
995 operand. Similarly, break out unscaled indexed addresses from
996 source operand on targets with non-equivalent space registers. Fix
997 REG_POINTER flag when possible. Mark register pointer when creating
999 (print_operand): Handle unscaled index addresses.
1000 * pa.h (IS_INDEX_ADDR_P, IS_LO_SUM_DLT_ADDR_P): New macro subroutines
1001 for EXTRA_CONSTRAINT.
1002 (EXTRA_CONSTRAINT): Rework to make more readable.
1003 (MODE_OK_FOR_SCALED_INDEXING_P, MODE_OK_FOR_UNSCALED_INDEXING_P): New
1004 subroutines for GO_IF_LEGITIMATE_ADDRESS.
1005 (GO_IF_LEGITIMATE_ADDRESS): Rework using new subroutines. Allow scaled
1006 and unscaled addresses. Canonicalize unscaled indexed addresses on
1007 targets with non-equivalent space registers. Document issues in
1008 handling indexed address modes on PA-RISC.
1009 (PREDICATE_CODES): Update for new and deleted predicates.
1010 * pa.md (move_dest_operand, move_src_operand, indexed_memory_operand):
1011 Use new predicates in move patterns.
1012 Add peephole2 patterns to optimize floating point stores. Fix
1013 constrain preferencing in move patterns. Delete patterns for handling
1014 unscaled indexed memory loads. Add missing load and store with
1015 base-register modification patterns. Correct SFmode floating point
1016 store pattern. Add missing zero extension loads.
1018 2003-12-13 Steven Bosscher <stevenb@suse.de>
1020 * ggc-zone.c (struct alloc_zone): Don't pre-declare, it already
1021 comes in with ggc.h. Add a new bool field `dead'.
1022 (destroy_ggc_zone): Don't destroy a zone at once. Instead, only
1023 set the `dead' flag for the dead zone. Wrap a sanity check in
1025 (ggc_collect_1): Always mark and sweep if a zone has the `dead'
1027 (ggc_collect): Free dead zones after collecting.
1029 2003-12-13 Jan Hubicka <jh@suse.cz>
1031 * coverage.c (get_coverage_counts): Use inform instead of warning
1032 about missing profile.
1034 2003-12-12 Steven Bosscher <stevenb@suse.de>
1036 * Makefile.in (opts.o, explow.o): Depend on langhooks.h
1038 2003-12-12 Geoffrey Keating <geoffk@apple.com>
1040 * config.gcc <i[34567]86-*-darwin*>: Don't use fixproto.
1041 <powerpc-*-darwin*>: Likewise.
1043 2003-12-12 Jakub Jelinek <jakub@redhat.com>
1045 * config/ia64/linux.h (IA64_GATE_AREA_END): Increase by 64K.
1046 (MD_FALLBACK_FRAME_STATE_FOR): Set fpsr_loc, br_loc[6] and
1047 br_loc[7]. Update comment.
1048 (MD_HANDLE_UNWABI): Define.
1049 * config/ia64/unwind-ia64.c (struct unw_state_record): Add
1051 (struct _Unwind_Context): Increase br_loc array size to 8 entries.
1052 (desc_abi): Set unwabi.
1053 (uw_update_reg_address): Allow br up to 7.
1054 (uw_update_context): Invoke MD_HANDLE_UNWABI if defined.
1055 (uw_install_context): Load b1..b5 from correct locations.
1056 Fix insn loading ar.fpsr.
1057 * doc/tm.texi: Document MD_HANDLE_UNWABI.
1059 2003-12-12 Roger Sayle <roger@eyesopen.com>
1061 PR optimization/13037
1062 * loop.c (update_giv_derive): Ignore redundant sets of a biv when
1063 calculating how to derive a giv from a biv.
1065 2003-12-12 Neil Booth <neil@daikokuya.co.uk>
1067 PR preprocessor/12935 preprocessor/12952 preprocessor/13046
1068 * cpplib.c (prepare_directive_trad): Clear skipping only in
1069 #if and #elif directives.
1070 (do_undef): Call the handler even if the identifier is not a macro.
1071 * cpptrad.c (scan_parameters): Emit an error message.
1072 (_cpp_create_trad_definition): Remember the params list even on
1075 2003-12-11 Zack Weinberg <zack@codesourcery.com>
1077 * arm.c (ARM_ADDRESS_COST, THUMB_ADDRESS_COST): Convert macros
1078 to inline functions: arm_arm_address_cost, arm_thumb_address_cost
1080 (arm_address_cost): Use 'em.
1082 2003-12-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1084 * config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Define
1085 __STDC_VERSION__ to ISO C94 for C++.
1087 * fixinc/inclhack.def (alpha_wchar): New fix.
1088 * fixinc/fixincl.x: Regenerate.
1089 * fixinc/tests/base/wchar.h: New file.
1091 2003-12-11 David Mosberger <davidm@hpl.hp.com>
1093 * unwind-libunwind.c (_Unwind_SetGR): Clear the NaT bit as
1094 required by C++ ABI for Itanium.
1095 * config/t-libunwind (LIB2ADDEH): Remove unwind-libunwind.c.
1096 * config/t-libunwind-no-eh: New file.
1097 * configure.in: Check libunwind for _Unwind_Resume() and if it's
1098 present, set libunwind_has_eh_support to "yes".
1099 * configure: Regenerate.
1100 * config.gcc (ia64*-*-linux*): If $libunwind_has_eh_support is
1101 set to yes, use t-libunwind, otherwise, use t-libunwind-no-eh.
1103 2003-12-11 Richard Sandiford <rsandifo@redhat.com>
1105 * config/mips/mips.c (mips_global_pointer): Force functions with
1106 a nonlocal goto to set up $gp.
1108 2003-12-11 James E Wilson <wilson@specifixinc.com>
1111 * function.c (gen_mem_addressof): When no decl, explicitly clear flag
1114 2003-12-12 Nick Clifton <nickc@redhat.com>
1116 * config/m32r/m32r.c: Convert to ISO-C
1118 2003-12-12 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1120 * doc/invoke.texi: Replace Mitsubishi with Renesas.
1121 * config/m32r/m32r.h: Ditto.
1122 * config/m32r/m32r.c: Ditto.
1123 * config/m32r/m32r.md: Ditto.
1125 2003-12-11 Steven Bosscher <steven@gcc.gnu.org>
1127 * basic-block.h (BLOCK_HEAD, BLOCK_END): Remove.
1128 (BLOCK_HEAD_TREE, BLOCK_END_TREE): Remove.
1129 (basic_block_def): Rename `head' to `head_' and `end' to `end_'.
1130 (BB_HEAD, BB_END): New accessor macros for the `head_' and `end_'
1131 fields of a basic block.
1132 * bb-reorder.c, bt-load.c, caller-save.c, cfg.c, cfganal.c,
1133 cfgbuild.c, cfgcleanup.c, cfglayout.c, cfgloop.c, cfgloopanal.c,
1134 cfgloopmanip.c, cfgrtl.c, combine.c, conflict.c, df.c, emit-rtl.c,
1135 final.c, flow.c, function.c, gcse.c, global.c, graph.c,
1136 haifa-sched.c, ifcvt.c, lcm.c, local-alloc.c, loop-unswitch.c,
1137 loop.c, postreload.c, predict.c, profile.c, ra-build.c, ra-debug.c,
1138 ra-rewrite.c, ra.c, recog.c, reg-stack.c, regclass.c, regmove.c,
1139 regrename.c, reload1.c, resource.c, sched-ebb.c, sched-rgn.c,
1140 sibcall.c, tracer.c, config/frv/frv.c, config/i386/i386.c,
1141 config/ia64/ia64.c: Use the BB_HEAD and BB_END macros instead of
1142 accessing the `head' and `end' fields of a basic block directly.
1144 * gengtype.c: Teach about "void**" pointers and "void *" function
1145 types. Fixes earlier commit.
1147 2003-12-10 Geoffrey Keating <geoffk@apple.com>
1149 * doc/extend.texi (Vector Extensions): Document that bitwise
1150 operations also work on vectors.
1152 2003-12-10 Richard Earnshaw <rearnsha@arm.com>
1154 * arm.md: New split patterns for optimizing bitfield accesses.
1156 2003-12-10 Steven Bosscher <stevenb@suse.de>
1158 * README.Portability: Remove K+R section.
1160 * gengtype-lex.l: Teach about "void**" pointers and
1161 "void*" function types.
1163 2003-12-10 Eric Botcazou <ebotcazou@libertysurf.fr>
1166 * config/sparc/sparc.c (sparc_output_mi_thunk): Load DELTA
1167 manually if one can do that with only one instruction.
1169 2003-12-10 Nick Clifton <nickc@redhat.com>
1171 * config.gcc (arm-linux): Include linux.h in tm_file so that
1172 LINUX_TARGET_OS_CPP_BUILTINS is defined.
1173 * config/arm/linux-elf.h (LIB_SPEC): Protect the definition.
1175 2003-12-09 James E Wilson <wilson@specifixinc.com>
1177 * rtl.def (CODE_LABEL, NOTE): Correct operand numbers in comments.
1179 2003-12-09 Matt Austern <austern@apple.com>
1182 * c-decl.c (duplicate_decls): Copy visibility flag when appropriate.
1184 2003-12-09 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1186 * config/m32r/m32r.h: Add support for m32r2 processor. Including
1187 a new command line option -m32r2 to select it.
1188 * config/m32r/m32r.c: Add support for the new processor variant.
1189 * config/m32r/m32r.md: Likewise.
1190 * config/m32r/t-m32r: Add m32r2 multilibs.
1191 * doc/invoke.texi: Document the new command line switch.
1193 2003-12-08 Kazu Hirata <kazu@cs.umass.edu>
1195 * defaults.h (LOCAL_REGNO): Give the default definition.
1196 * flow.c (LOCAL_REGNO): Remove.
1197 * reload1.c (LOCAL_REGNO): Likewise.
1199 2003-12-08 Geoffrey Keating <geoffk@apple.com>
1202 * rs6000.h (CANNOT_CHANGE_MODE_CLASS): Allow change of mode
1203 in floating-point registers between TFmode and DImode.
1204 * rs6000.c (rs6000_emit_move): Split moves early.
1205 (secondary_reload_class): Random Whitespace Change.
1206 (rs6000_split_multireg_move): Support moves involving FP registers.
1207 Emit instructions directly.
1208 * rs6000-protos.h (rs6000_split_multireg_move): Update prototype.
1209 * altivec.md: Update for changes to rs6000_split_multireg_move.
1210 * rs6000.md: Update for changes to rs6000_split_multireg_move.
1211 (movtf_internal): Support moves to/from GPRs.
1213 2003-12-08 Stuart Hastings <stuart@apple.com>
1215 * config/i386/i386.md: Typo in split of fp-valued if_then_else.
1217 2003-12-08 James E Wilson <wilson@specifixinc.com>
1220 * expmed.c (extract_bit_field): Only call mode_for_size for scalar
1223 2003-12-08 Nathanael Nerode <neroden@gcc.gnu.org>
1225 * doc/install.texi: Revert change of Dec 7; gcc is still a 2.13
1228 2003-12-08 Alexandre Oliva <aoliva@redhat.com>
1230 * config/frv/frv.md (subdi2): Merge with _internal insn_and_split,
1231 by using match_scratch.
1234 2003-12-08 Jason Merrill <jason@redhat.com>
1235 Daniel Berlin <dberlin@dberlin.org>
1238 Support namespaces in DWARF 2 output.
1239 * dwarf2out.c (gen_namespace_die): New function.
1240 (force_namespace_die, setup_namespace_context): New fns.
1241 (declare_in_namespace): New fn.
1242 (gen_decl_die): Call declare_in_namespace. Handle namespaces.
1243 (dwarf2out_decl): Handle namespaces.
1244 (scope_die_for): Pass through a namespace scope.
1245 (class_scope_p): Rename to class_or_namespace_scope_p.
1246 (gen_subprogram_die, gen_variable_die): Adjust.
1247 (gen_struct_or_union_die): Always emit a declaration
1248 if context_die is a namespace.
1250 2003-12-08 Jan Hubicka <jh@suse.cz>
1252 * unwind-pe.h (read_uleb128): Fix handling of large values
1253 (read_sleb128): Fix handling of large values
1255 2003-12-08 Andrew Pinski <pinskia@physics.uc.edu>
1258 * emit-rtl.c (copy_rtx_if_shared): Split out into ...
1259 (copy_rtx_if_shared_1): here and optimize the last one
1260 in the sequence into tail-recursion.
1261 (reset_used_flags): Optimize the last one
1262 in the sequence into tail-recursion.
1264 2003-12-08 Richard Earnshaw <rearnsha@arm.com>
1266 * arm.md: New split to transform ((X << y) - 1) into ~(~(X-1) << y)
1269 2003-12-08 Richard Sandiford <rsandifo@redhat.com>
1271 * calls.c (expand_call): Don't try using tail or recursive calls
1272 after the function body has been expanded.
1274 2003-12-08 Jan Hubicka <jh@suse.cz>
1276 * i386.md (cmpstr expander): Obey TARGET_INLINE_ALL_STRINGOPS
1278 2003-12-08 Arnaud Charlet <charlet@act-europe.fr>
1280 PR ada/13324, PR ada/12614
1281 * doc/install.texi: Update requirements for building Ada.
1283 2003-12-07 David Edelsohn <edelsohn@gnu.org>
1284 Graham Reed <greed@pobox.com>
1286 * collect2.c (GCC_OK_SYMBOL): Add support for AIX C_WEAKEXT.
1287 (GCC_UNDEF_SYMBOL): Same.
1289 2003-12-07 Kazu Hirata <kazu@cs.umass.edu>
1291 * final.c (final_scan_insn): Don't use FINAL_PRESCAN_LABEL.
1292 * system.h (FINAL_PRESCAN_LABEL): Poison.
1293 * doc/tm.texi (FINAL_PRESCAN_LABEL): Remove.
1295 2003-12-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1297 * Makefile.in (compare): Combine toplevel and $(SUBDIRS) cases.
1299 2003-12-07 Nathanael Nerode <neroden@gcc.gnu.org>
1301 * configure.in, aclocal.m4: Revert to pre-2.5x conversion status.
1302 * configure: Regenerate with autoconf 2.13.
1304 * configure.in: Replace AC_INIT, AC_OUTPUT, AC_CANONICAL_SYSTEM
1305 with modern equivalents.
1306 * configure: Regenerate.
1308 * configure.in: Replace gcc_AC_CHECK_TYPE with AC_CHECK_TYPE.
1309 * aclocal.m4 (gcc_AC_CHECK_TYPE): Remove.
1310 * configure: Regenerate.
1312 * configure: Regenerate with (preferred) autoconf 2.57.
1313 * doc/install.texi: Note that 'gcc' is now a 2.57 directory.
1315 2003-12-07 Eric Botcazou <ebotcazou@libertysurf.fr>
1317 PR optimization/12965
1318 * caller-save.c (save_call_clobbered_regs): Do not save/restore
1319 registers around no-return calls.
1321 2003-12-07 Nathanael Nerode <neroden@gcc.gnu.org>
1323 * configure.in: Make minimum necessary changes for autoconf 2.5x.
1324 * aclocal.m4: Make minimum necessary changes for autoconf 2.5x.
1325 * configure: Regenerate with autoconf 2.58.
1327 2003-12-07 Eric Botcazou <ebotcazou@libertysurf.fr>
1329 PR optimization/13318
1330 * loop.c (express_from): Protect integer division from overflow.
1332 2003-12-07 Eric Botcazou <ebotcazou@libertysurf.fr>
1334 PR optimization/13060
1335 * function.c (fixup_var_refs_1) [SUBREG]: Recognize even if a
1336 replacement already exists. Fix again the whole insn if that fails.
1338 2003-12-06 Andrew Pinski <pinskia@physics.uc.edu>
1340 * config/rs6000/rs6000.c (macho_branch_islands): Use
1341 HOST_WIDE_INT_PRINT_UNSIGNED.
1343 2003-12-06 Richard Sandiford <rsandifo@redhat.com>
1345 * varasm.c (incorporeal_function_p): New.
1346 (assemble_external): Use it as a filter.
1347 * config/mips/mips.c (mips_output_external): Don't check for builtin
1350 2003-12-06 Richard Earnshaw <reanrsha@arm.com>
1352 * arm.md (IOR (COMPARISON) (AND)): New define_splits.
1354 2003-12-06 Kelley Cook <kcook@gcc.gnu.org>
1356 * Makefile.in (program_transform_cross_name): Delete.
1357 (GCC_CROSS_NAME, CPP_CROSS_NAME): Delete.
1358 (PROTOIZE_CROSS_NAME, UNPROTOIZE_CROSS_NAME): Delete.
1359 (AR_FOR_TARGET, RANLIB_FOR_TARGET, NM_FOR_TARGET): Adjust for above.
1360 (install_cpp, install_driver, install-man, uninstall): Likewise.
1362 2003-12-06 Alan Modra <amodra@bigpond.net.au>
1365 * basic-block.h (PROP_ASM_SCAN): Define.
1366 * final.c (regs_asm_clobbered): New array.
1367 * regs.h (regs_asm_clobbered): Declare.
1368 * flow.c (life_analysis): Init it.
1369 (mark_set_regs): Set PROP_ASM_SCAN for asms.
1370 (mark_set_1): Set regs_asm_clobbered.
1371 * global.c (global_alloc): Don't set eliminable_regset when
1374 2003-12-05 Mark Mitchell <mark@codesourcery.com>
1376 * config/ia64/ia64.h (MUST_PASS_IN_STACK): Define.
1379 * emit-rtl.c (set_mem_attributes_minus_bitpos): Robustify.
1381 2003-12-05 Andrew Pinski <pinskia@physics.uc.edu>
1384 * gcc.c (execute) Increment execution_count when returning
1385 early because verbose_only_flag is true.
1387 2003-12-05 Per Bothner <pbothner@apple.com>
1389 * cppfiles.c (file_hash_hash): New static function.
1390 (hash_string_eq): Renamed static function to file_hash_eq.
1391 (_cpp_init_files): Create file_hash table with above callbacks.
1392 (cpp_included): Must use htab_find_with_hash insead of htab_find.
1393 (_cpp_find_find, make_cpp_dir): Must use htab_find_slot_with_hash.
1395 2003-12-05 Per Bothner <pbothner@apple.com>
1397 * line-map.h (source_location): New typedef.
1398 (fileline): Redefined as source_location.
1399 (struct line_map, linemap_add, linemap_lookup): Replace filefile
1401 * line-map.c (linemap_add, linemap_lookup): Use source_location.
1403 2003-12-05 Richard Henderson <rth@redhat.com>
1405 * config/alpha/alpha.c (alpha_build_builtin_va_list): Add dummy
1406 field to suppress -Wpadded warnings.
1408 2003-12-05 Stuart Hastings <stuart@apple.com>
1410 * config/rs6000/rs6000.md: Correct macro test of TARGET_MACHO.
1412 2003-12-05 Stuart Menefy <stuart.menefy@st.com>
1413 J"orn Rennecke <joern.rennecke@superh.com>
1416 * sh.c (sh_build_builtin_va_list): Use (*lang_hooks.types.make_type).
1418 2003-12-05 Roger Sayle <roger@eyesopen.com>
1420 * dojump.c (do_jump): If the expression being compared against
1421 zero, is the subreg of a promoted variable, perform the comparison
1422 in the promoted mode.
1423 * simplify-rtx.c (simplify_unary_operation): Optimize sign and
1424 zero-extensions of subregs of promoted variables where the
1425 extension is identical to that used to promote the variable.
1427 2003-12-05 Hans-Peter Nilsson <hp@axis.com>
1430 * resource.h (enum mark_resource_type): Remove member MARK_DEST.
1431 The only user changed as follows:
1432 * resource.c (mark_set_resources) <case SET>: Always recurse for
1434 <case SIGN_EXTRACT, case ZERO_EXTRACT>: Always recurse on
1436 <case STRICT_LOW_PART>: Delete, deferring to default code.
1438 2003-12-05 Waldek Hebisch <hebisch@math.uni.wroc.pl>
1440 * stmt.c (expand_nl_goto_receiver): Copy hard register clobbers
1441 and ASM_INPUT barrier from expand_builtin_setjmp_receiver.
1443 2003-12-05 Richard Sandiford <rsandifo@redhat.com>
1445 * config/mips/mips.c (mips_expand_call): Don't allow laziy binding
1446 for n32 & n64 abicalls.
1448 2003-12-05 Richard Sandiford <rsandifo@redhat.com>
1451 * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Adjust comment.
1452 * config/mips/mips.c (mips_reg_names, mips_sw_reg_names): Add $fcall.
1453 (mips_load_got): Always create a constant MEM.
1454 (mips_expand_call): Use load_callsi and load_calldi.
1455 * config/mips/mips.md (UNSPEC_LOAD_CALL, FAKE_CALL_REGNO): New consts.
1456 (load_callsi, load_calldi): New patterns.
1458 2003-12-05 Peter Gerwinski <peter@gerwinski.de>
1460 * tree.def (PLACEHOLDER_EXPR): Clarify commentary.
1462 2003-12-05 Steven Bosscher <stevenb@suse.de>
1464 * config/d30v/d30v-protos.h , config/d30v/d30v.c,
1465 config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
1466 config/fr30/fr30-protos.h, config/fr30/fr30.c,
1467 config/i370/i370-protos.h, config/i370/i370.c,
1468 config/i960/i960-protos.h, config/i960/i960.c,
1469 config/ip2k/ip2k-protos.h, config/ip2k/ip2k.c,
1470 config/m32r/m32r-protos.h, config/m32r/m32r.c,
1471 config/mn10300/mn10300-protos.h, config/mn10300/mn10300.c,
1472 config/ns32k/ns32k-protos.h, config/ns32k/ns32k.c:
1473 Convert to ISO C90 function declarations and definitions.
1475 2003-12-05 Eric Botcazou <ebotcazou@libertysurf.fr>
1477 * doc/extend.texi (Constructing Calls): Add warning about
1478 the limitations of the functions.
1480 2003-12-05 Eric Botcazou <ebotcazou@libertysurf.fr>
1483 * function.h (struct function): New field 'x_naked_return_label'.
1484 * function.c (free_after_compilation): Set it to NULL.
1485 (expand_function_end): Emit 'naked_return_label' if it exists.
1486 * rtl.h (expand_naked_return): Declare.
1487 * stmt.c (expand_naked_return): New function to generate a
1488 jump to 'naked_return_label'.
1489 * builtins.c (expand_builtin_return): Call expand_naked_return
1490 instead of expand_null_return.
1491 * config/sparc/sparc.md (untyped_return): Likewise.
1493 2003-12-04 Andrew Pinski <pinskia@physics.uc.edu>
1496 * config/sh/netbsd-elf.h (NO_PROFILE_COUNTERS): Define.
1499 * config/rs6000/altivec.md (altivec_vmsummbm): Fix typo.
1501 2003-12-04 Stuart Hastings <stuart@apple.com>
1503 * rs6000.c (output_call, macho_branch_islands,
1504 add_compiler_branch_island, no_previous_def, get_previous_label)
1505 Revisions of xx_stub functions for branch islands,
1506 add -fPIC support for Darwin.
1507 * rs6000-protos.h (output_call) Prototype.
1508 * rs6000.md Use output_call.
1509 * invoke.texi Explain Darwin semantics of -longcall.
1510 * testsuite/gcc.dg/darwin-abi-1.c Revise testcase for -longcall/jbsr.
1512 2003-12-04 Richard Henderson <rth@redhat.com>
1514 * config/i386/i386.md (addqi3_carry): Use q not r constraints.
1515 (subqi3_carry): Likewise.
1517 2003-12-04 J"orn Rennecke <joern.rennecke@superh.com>
1519 PR optimization/13260
1520 * sh-protos.h (sh_expand_t_scc): Declare.
1521 * sh.h (PREDICATE_CODES): Add cmpsi_operand.
1522 * sh.c (cmpsi_operand, sh_expand_t_scc): New functions.
1523 * sh.md (cmpsi): Use cmpsi_operand. If T_REG is compared to
1524 something that is not a CONST_INT, copy it into a pseudo register.
1525 (subc): Fix description of new T value.
1526 (slt, sgt, sge, sgtu): Don't clobber T after rtl generation is over.
1527 (sltu, sleu, sgeu): Likewise.
1528 (seq, sne): Likewise. Use sh_expand_t_scc.
1530 2003-12-04 Nathanael Nerode <neroden@gcc.gnu.org>
1532 * configure.in: Generalize the CONFIG_HEADERS pattern under which
1534 * configure: Regenerate.
1536 * configure.in: Pull AC_CHECK_HEADER call out of shell if statement
1537 to avoid trouble when updating to autoconf 2.5x.
1538 * configure: Regenerate (with autoconf 2.13 still).
1540 2003-12-04 J"orn Rennecke <joern.rennecke@superh.com>
1542 * sh.md (truncdiqi2): Use andi opcode for immediate.
1543 (reload_outdf+1,reload_outdf+2): Remove constraints.
1544 (movv16sf_i): Fxi multiplier for SUBREG_BYTE.
1545 (movv8qi_i+2): Zero-extend low byte before adding it to high byte.
1546 (fipr, ftrv): Add .s suffix to opcode.
1548 2003-12-04 Richard Sandiford <rsandifo@redhat.com>
1552 Revert all of the following patch, except the addition of
1553 hook_bool_machine_mode_true:
1555 2003-11-02 Richard Sandiford <rsandifo@redhat.com>
1557 * Makefile.in (targhooks.o, reload.o): Update dependencies.
1558 (GTFILES): Add targhooks.c.
1559 (gt-targhooks.h): New rule; depend on s-gtype.
1560 * target.h (direct_pool_load_p): New hook.
1561 * target-def.h (TARGET_DIRECT_POOL_LOAD_P): New macro.
1562 (TARGET_INITIALIZER): Include it.
1563 * targhooks.h (default_direct_pool_load_p): Declare.
1564 (hook_bool_machine_mode_true): Declare.
1565 * targhooks.c: Include insn-config.h, recog.h, ggc.h and
1567 (pool_symbol): New variable.
1568 (default_direct_pool_load_p): New function.
1569 (hook_bool_machine_mode_true): New function.
1570 * reload.c: Include target.h.
1571 (find_reloads): If an alternative will force a constant into memory,
1572 count an extra reload if constant pool symbols are not valid
1573 addresses. If an alternative uses memory to move values between
1574 registers, count the move as two reloads rather than one.
1575 * config/s390/s390.c (TARGET_DIRECT_POOL_LOAD_P): Define.
1576 * doc/tm.texi (TARGET_DIRECT_POOL_LOAD_P): Document.
1578 2003-12-03 Mark Mitchell <mark@codesourcery.com>
1580 * config/ia64/hpux.h (TARGET_HAVE_TLS): Define it to false.
1581 * config/ia64/ia64.h (TARGET_HAVE_TLS): Define it to true if
1582 HAVE_AS_TLS is true.
1583 * config/ia64/ia64.c (TARGET_HAVE_TLS): Do not define it.
1585 2003-12-03 James E Wilson <wilson@specifixinc.com>
1587 * gcc.c (init_spec): Pass -lunwind to init_gcc_specs in eh_name.
1589 * gcc-page.c (extra_order_size_tab): Correct comment.
1591 2003-12-03 Kazu Hirata <kazu@cs.umass.edu>
1593 * config/h8300/h8300.c (push): Call gen_push_h8300hs_advanced
1594 instead of gen_push_h8300hs.
1595 (pop): Call gen_pop_h8300hs_advanced instead of
1597 * config/h8300/h8300.h (TRAMPOLINE_SIZE): Use Pmode.
1598 * config/h8300/h8300.md (*tablejump_h8300hs_advanced):
1599 Tighten the predicate.
1600 (*tablejump_h8300hs_normal): Tighten the predicate.
1601 (push_h8300hs): Change to
1602 push_h8300hs_advanced.
1603 (pop_h8300hs): Change to pop_h8300hs_advanced.
1605 2003-12-03 Eric Christopher <echristo@redhat.com>
1608 * config/mips/mips.h: Ditto. Fix formatting.
1610 2003-12-04 Ben Elliston <bje@wasabisystems.com>
1612 * future.options: Remove. Move to gnu.org web pages.
1614 2003-12-03 Eric Christopher <echristo@redhat.com>
1616 * c-parse.in (c_in_iteration_stmt, c_in_case_stmt): Move
1618 * c-tree.h: to here.
1620 2003-12-03 Jan Hubicka <jh@suse.cz>
1622 PR optimization/12324
1623 * toplev.c (rest_of_decl_compilation): Do not deffer when compiling
1624 in unit-at-a-time mode.
1626 2003-12-03 Jakub Jelinek <jakub@redhat.com>
1628 * expr.c (store_constructor): Only set RTX_UNCHANGING_P for
1629 read-only field if cleared is 0.
1631 2003-12-03 Nathanael Nerode <neroden@gcc.gnu.org>
1633 * config.gcc: Mark obsolete targets for GCC 3.4.
1635 2003-12-03 Zack Weinberg <zack@codesourcery.com>
1637 * aclocal.m4 (AM_ICONV): Add explicit check for iconv.h.
1638 * config.in, configure.in: Regenerate.
1639 * cpphash.h: Check both HAVE_ICONV and HAVE_ICONV_H before
1642 2003-12-03 Alan Modra <amodra@bigpond.net.au>
1645 * cse.c (cse_insn): Set classp using src_const_elt if
1646 src_eqv_elt is NULL.
1648 2003-12-03 Richard Earnshaw <rearnsha@arm.com>
1650 * gcse.c (reg_clear_last_set): New function.
1651 (reg_set_info): If data is non-null, treat it as an sbitmap of
1652 registers, set the bit for the register being set.
1653 (compute_store_table): Allocate last_set_in with xcalloc. Do not
1654 memset this array on each iteration. Pass reg_set_in_block[bb->index]
1655 to note_stores while computing last_set_in instead of scanning
1656 last_set_in after the first pass through the insns.
1657 Clear last_set_in using reg_clear_last_set instead of explicitly
1658 rescanning after each insn. If checking is enabled, assert that
1659 last_set_in is completely zeroed after each bb has been processed.
1661 2003-12-02 Geoffrey Keating <geoffk@geoffk.org>
1663 * df.c (df_uses_record) <MEM>: The argument of a MEM is read-only,
1665 <REG>: Delete incorrect comment.
1666 <SET>: Remove 'use_flags' variable.
1668 2003-12-03 David Edelsohn <edelsohn@gnu.org>
1670 * function.c (assign_parms): Make sure parm PARALLEL combined
1671 in reg is composed of more than one object and the mode really
1674 2003-12-03 Jan Hubicka <jh@suse.cz>
1676 * i386.c (classify_argument): Make it 64bit clean.
1678 2003-12-02 Richard Sandiford <rsandifo@redhat.com>
1680 * config/mips/mips.c (mips_output_external): Replace checks for
1681 specific builtin-in functions with a check for DECL_BUILTIN_IN.
1683 2003-12-02 Richard Henderson <rth@redhat.com>
1685 * rtl.h (PUT_CODE, PUT_MODE): Remove ENUM_BITFIELD cast.
1686 * tree.h (TREE_SET_CODE): Likewise.
1687 * recog.h (struct insn_operand_data): Move const after ENUM_BITFIELD.
1689 2003-12-02 Ben Elliston <bje@wasabisystems.com>
1691 * dbxstclass.h: Rename from this ..
1692 * xcoff.h: .. to this.
1693 * xcoffout.c: Include xcoff.h.
1695 2003-12-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1697 * Makefile.in (GCC_CFLAGS): Add -Wold-style-definition.
1699 2003-12-01 James Lemke <jim@wasabisystems.com>
1701 * config/arm/arm.c (arm_rtx_costs): Improve for xscale multiply.
1703 2003-12-01 Roger Sayle <roger@eyesopen.com>
1705 PR optimization/11634
1706 * recog.c (split_insn): Factor test of INSN_P and handling of
1707 set_noop_p out of here into the two callers.
1708 (split_all_insns): Add INSN_P test and set_noop_p handling here.
1709 If deleting a no-op set after reload that has a REG_UNUSED note,
1710 mark the basic block as changed and recalculate life information.
1711 (split_all_insns_noflow): Add INSN_P test and set_noop_p handling
1714 2003-12-01 Roger Sayle <roger@eyesopen.com>
1716 PR optimization/12322
1717 * gcse.c (struct ls_expr): Change type of hash_index from int to
1719 (hash_expr): Document hash_table_size parameter and wrap long line.
1720 (ldst_entry): Calculate expression's hash_index and record in ptr.
1721 (trim_ld_motion_mems): Use hash_index to search a single bucket
1722 instead of scanning the entire hash_table. Remove the "del" local
1723 variable and use the equivalent "expr == 0" instead. Change last
1724 to be a pointer to the pointer to the current element, to simplify
1725 and speed-up deleting from a linked list.
1727 2003-12-01 James E Wilson <wilson@specifixinc.com>
1729 * doc/contrib.texi: Update David Mosberger.
1731 * doc/c-tree.texi (CONSTRUCTOR): Clarify element order and handling
1735 * config/ia64/ia64.c (ia64_function_arg): For single-reg HFA, call
1736 gen_rtx_REG to create new reg with argument mode.
1738 2003-12-01 Steven Bosscher <stevenb@suse.de>
1740 * ggc.h (struct alloc_zone): Move forward declaration up.
1741 (new_ggc_zone): New function prototype.
1742 (destroy_ggc_zone): Ditto.
1743 * ggc-simple.c (new_ggc_zone): New function, does nothing.
1744 (destroy_ggc_zone): Ditto.
1745 * ggc-page.c (new_ggc_zone): New function, does nothing.
1746 (destroy_ggc_zone): Ditto.
1747 * ggc-zone.c (struct page_entry): Fix comment.
1748 (ggc_alloc_typed): Use a switch statement instead of ifs.
1749 (new_ggc_zone): New function to set up a new GC zone.
1750 (destroy_ggc_zone): New function to remove a GC zone.
1751 init_ggc): Use new_ggc_zone to set up the default zones.
1752 (ggc_collect): Walk a list of zones, instead of just the
1753 default zones. Report statistics using the zone name.
1755 2003-12-01 Ulrich Weigand <uweigand@de.ibm.com>
1757 * unroll.c (find_splittable_givs): Add missing extend_value_for_giv.
1759 2003-12-01 Roger Sayle <roger@eyesopen.com>
1761 PR optimization/12628
1762 * toplev.c (rest_of_handle_jump_bypass): Call reg_scan.
1763 * regclass.c (reg_scan): Include allocate_reg_info time in
1764 TV_REG_SCAN. Minor clean-ups.
1765 (reg_scan_update): Minor clean-ups.
1767 2003-12-01 Ulrich Weigand <uweigand@de.ibm.com>
1769 * config.gcc (s390x-ibm-tpf*): Add extra_parts.
1771 2003-12-01 James E Wilson <wilson@specifixinc.com>
1773 * config/ia64/ia64.h (FUNCTION_ARG_REGNO_P): Use AR_REG_FIRST not
1776 2003-12-01 Zack Weinberg <zack@codesourcery.com>
1778 * common.opt: Remove -fgnu-linker.
1779 * flags.h: Remove flag_gnu_linker.
1780 * opts.c: Don't handle OPT_fgnu_linker.
1781 * toplev.c: Don't initialize flag_gnu_linker.
1782 Remove gnu-linker entry from f_options.
1783 * config/dsp16xx/dsp16xx.h (OPTIMIZATION_OPTIONS):
1784 Don't reset flag_gnu_linker.
1785 * config/mips/mips.c (override_options): Likewise.
1786 * doc/invoke.texi: Remove all mention of -fgnu-linker.
1788 2003-12-01 Daniel Berlin <dberlin@dberlin.org>
1790 * ggc-zone.c (ggc_pch_write_object): Calculate object size using
1791 ggc_get_size (which accounts for large objects properly).
1793 2003-12-01 Jeff Sturm <jsturm@one-point.com>
1795 PR optimization/13024
1796 * toplev.c (rest_of_handle_new_regalloc): Remove rebuild_notes
1798 (rest_of_handle_old_regalloc): Likewise. Add rebuild_notes
1799 declaration. Rebuild jump labels following local_alloc if necessary.
1800 (rest_of_compilation): Remove rebuild_label_notes_after_reload
1801 declaration. Don't pass rebuild_notes parameter to
1802 rest_of_handle_new_regalloc and rest_of_handle_old_regalloc.
1803 Don't rebuild jump labels.
1805 2003-12-01 Jeff Law <law@redhat.com>
1807 * flow.c (count_or_remove_death_notes_bb): New. Extracted from
1808 count_or_remove_death_notes.
1809 (count_or_remove_death_notes): Use EXECUTE_IF_SET_IN_SBITMAP.
1811 2003-12-01 Andreas Krebbel <krebbel1@de.ibm.com>
1813 * builtins.c (expand_builtin_longjmp): Added two memory clobbers.
1815 2003-12-01 Ulrich Weigand <uweigand@de.ibm.com>
1817 * reload.c (find_reloads_address): Split addresses of type
1818 (plus (plus (reg) (reg)) (const_int)) only if one register
1819 is either a valid base register or else one of the stack
1820 frame related registers (sp/fp/ap).
1822 2003-12-01 Steven Bosscher <stevenb@suse.de>
1824 * function.c (update_epilogue_consts): Don't use PARAMS.
1825 * rtl.h (web_main): Ditto.
1826 * target.h (is_costly_dependence): Ditto
1828 2003-12-01 Eric Botcazou <ebotcazou@libertysurf.fr>
1831 * expr.c (expand_expr) [normal_inner_ref]: When 'offset' is non-zero,
1832 do not recheck that 'op0' is a MEM. Move comment. When testing for
1833 unaligned objects, take also into account the alignment of 'op0' and
1834 'mode1' if 'op0' is a MEM.
1836 2003-12-01 Gabriel Dos Reis <gdr@integrable-solutions.net>
1838 * doc/c-tree.texi (Function Bodies): Update HANDLER documentation.
1840 2003-12-01 Kelley Cook <kcook@gcc.gnu.org>
1842 * doc/install.texi: Note that fastjar is built with automake 1.7.x
1845 2003-12-01 Alan Modra <amodra@bigpond.net.au>
1847 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
1848 target_flags directly rather than using TARGET_* defines.
1850 2003-11-30 Ben Elliston <bje@wasabisystems.com>
1854 2003-11-30 Richard Sandiford <rsandifo@redhat.com>
1857 * config/mips/mips.c (mips_save_reg): Fix frame information for sdc1
1858 on 32-bit big-endian targets.
1860 2003-11-30 Kazu Hirata <kazu@cs.umass.edu>
1862 * genemit.c (register_constraints): Remove.
1864 2003-11-30 Andreas Krebbel <krebbel1@de.ibm.com>
1866 * config/s390/s390.md ("tmdi_reg", "tmsi_reg", "*movdi_64", "*movdi_31",
1867 "iordi3"): Insns now use multiple letter constraints.
1868 ("*movdi_lhi", "*movdi_lli", "*movdi_lay"): Insns deleted. They are now
1869 covered by "*movdi_64".
1870 ("*movsi_lhi", "*movsi_lli", "*movsi_lay"): Insns deleted. They are now
1871 covered by "*movsi_zarch" and "*movsi_esa".
1872 ("*movsi_zarch", "*movsi_!zarch"): New insns.
1873 ("*llgt_sisi_split", "*llgt_didi_split"): Insns deleted. Now covered
1874 by "*andsi3_zarch" and "anddi3".
1875 ("*anddi3_ni"): Insn merged with "anddi3".
1876 ("*andsi3_ni"): Insn merged with "*andsi3_zarch".
1877 ("*andsi3_zarch", "*andsi3_esa"): New insns.
1878 ("*iordi3_oi"): Insn merged with "iordi3".
1879 ("*iorsi3_oi"): Insn merged with "*iorsi3_zarch".
1880 ("*iorsi3_zarch", "*iorsi3_esa"): New insns.
1882 * config/s390/s390.c (s390_single_qi, s390_single_hi): Functions
1883 merged to s390_single_part.
1884 (s390_single_part): New function.
1885 NOTE: Semantics have changed a bit. Now the value of the part must
1886 be different from the others to get a non-negative return value.
1887 (s390_extract_qi, s390_extract_hi): Functions merged to
1889 (s390_extract_part, s390_extra_constraint_str,
1890 s390_const_ok_for_constraint_p): New functions. The L constraint got a
1891 new meaning and the N constraint was added as a multiple letter
1893 (s390_extra_constraint): Function deleted.
1894 (print_operand): New output modifier 'i' and 'j' added.
1895 All uses of CONST_OK_FOR_LETTER_P were replaced by
1896 CONST_OK_FOR_CONSTRAINT_P.
1898 * config/s390/s390-protos.h: Function prototypes adapted.
1899 * doc/md.texi: Documentation for new constraint letters added.
1901 2003-11-30 Andreas Schwab <schwab@suse.de>
1903 * Makefile.in ($(DESTDIR)$(infodir)/%.info): Fix missing semicolon.
1905 2003-11-29 James E Wilson <wilson@specifixinc.com>
1907 * gcc.c (init_spec): Pass -lunwind to init_gcc_specs in eh_name
1908 instead of in shared_name.
1910 * final.c (final_start_function): Delete code for NON_SAVING_SETJMP.
1911 * reload1.c (reload): Re-add it here.
1913 2003-11-30 Alan Modra <amodra@bigpond.net.au>
1915 * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Don't
1916 set SECTION_WRITE on TARGET_RELOCATABLE.
1918 2003-11-29 Kazu Hirata <kazu@cs.umass.edu>
1920 * config/h8300/h8300.h (LIBCALL_VALUE): Use R0_REG.
1922 2003-11-28 Gunther Nikl <gni@gecko.de>
1924 * config/m68k/m68k.c (MOTOROLA): Move from here...
1925 * config/m68k/m68k.h (MOTOROLA): ... to here.
1926 (OUTPUT_JUMP): Use do {...} while (0).
1927 * config/m68k/m68k.md: Replace #ifdef MOTOROLA with C statements.
1929 2003-11-28 Gunther Nikl <gni@gecko.de>
1931 * config.gcc (m68020-*-elf*, m68k-*-elf*, m68010-*-netbsdelf*,
1932 m68k*-*-netbsdelf*, m68k-*-rtems*): Add tm_defines containing
1933 MOTOROLA and USE_GAS.
1934 * config/m68k/rtemself.h (MOTOROLA): Delete.
1935 * config/m68k/netbsd-elf.h (MOTOROLA, USE_GAS): Delete.
1936 * config/m68k/m68kelf.h (MOTOROLA, USE_GAS, SGS_CMP_ORDER): Delete.
1938 2003-11-29 Kazu Hirata <kazu@cs.umass.edu>
1940 * config/h8300/h8300.h (WORDS_BIG_ENDIAN): Update the comment.
1942 2003-11-29 Kelley Cook <kcook@gcc.gnu.org>
1944 * Makefile.in (install-info): Install gccinstall.info too.
1946 2003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
1948 * config/s390/s390.md ("cmpint_di"): Fix incorrect instruction lengths.
1950 2003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
1952 * config/s390/s390.md ("movhi"): Do not emit extender pattern
1953 when loading from a (MEM (ADDRESSOF ...)).
1954 ("movqi"): Likewise.
1956 2003-11-29 Joseph S. Myers <jsm@polyomino.org.uk>
1959 * c-parse.in (typespec_reserved_nonattr): Reject typeof on
1962 2003-11-29 Richard Sandiford <rsandifo@redhat.com>
1964 * stmt.c (expand_asm_operands): Check whether force_const_mem
1967 2003-11-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1969 * config/gnu.h (HURD_TARGET_OS_CPP_BUILTINS): New.
1970 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): New.
1972 * config/alpha/gnu.h, config/alpha/linux.h,
1973 config/arm/linux-elf.h, config/cris/cris.h, config/cris/linux.h,
1974 config/i370/linux.h, config/i386/gnu.h, config/i386/i386.h,
1975 config/i386/linux-aout.h, config/i386/linux.h,
1976 config/i386/linux64.h, config/ia64/linux.h, config/m68k/linux.h,
1977 config/m68k/uclinux.h, config/mips/linux.h,
1978 config/mn10300/linux.h, config/pa/pa-linux.h,
1979 config/rs6000/sysv4.h, config/s390/linux.h, config/sh/linux.h,
1980 config/sparc/linux.h, config/sparc/linux64.h,
1981 config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Use
1982 HURD_TARGET_OS_CPP_BUILTINS/LINUX_TARGET_OS_CPP_BUILTINS or ensure
1983 all necessary assertions are included.
1985 2003-11-28 Jan Hubicka <jh@suse.cz>
1987 * emit-rtl.c (set_used_flags): New.
1988 (verify_rtx_sharing, verify_rtl_sharing): New.
1989 (unshare_all_rtl_1): Rename to....
1990 (unshare_all_rtl_in_chain): ... this one; make static.
1991 (copy_rtx_if_shared): LABEL_REF chan be shared.
1992 * ifcvt.c (unshare_ifcvt_sequence): New.
1993 (noce_try_move, noce_try_store_flag, noce_try_store_flag_constants,
1994 noce_try_addcc, noce_try_addcc, noce_try_store_flag_mask,
1995 noce_try_cmove, noce_try_store_flag_mask, noce_try_minmax,
1996 noce_try_abs, noce_process_if_block, find_cond_trap
1997 * rtl.h (verify_rtl_sharing, set_used_flags, unshare_all_rtl_in_chain):
2000 2003-11-28 Kazu Hirata <kazu@cs.umass.edu>
2002 * config/h8300/h8300.md: Fix a comment typo.
2004 2003-11-28 Kazu Hirata <kazu@cs.umass.edu>
2006 * config/h8300/h8300.md (*movsf_h8300h): Change to
2008 (addsi_h8300): Change to *addsi_h8300.
2009 (addsi_h8300h): Change to *addsi_h8300hs.
2010 (subsi3_h8300): Change to *subsi3_h8300.
2011 (subsi3_h8300h): Change to *subsi3_h8300hs.
2012 (neghi2_h8300h): Change to *neghi2_h8300hs.
2013 (negsi2_h8300h): Change to *negsi2_h8300hs.
2015 2003-11-28 Kazu Hirata <kazu@cs.umass.edu>
2017 * config/h8300/h8300.md (*subhi3_h8300): Remove '&' from the
2019 (*subhi3_h8300hs): Likewise.
2021 2003-11-28 David Edelsohn <edelsohn@gnu.org>
2023 * config/rs6000/rs6000.h (MASK_MFCRF): New.
2024 (TARGET_MFCRF): Test target_flags, not processor type.
2025 (TARGET_SWITCHES): Add mfcrf and no-mfcrf.
2026 Change Don't to Do not.
2027 * config/rs6000/rs6000.c (processors_target_table): Add MASK_MFCRF
2030 2003-11-27 J"orn Rennecke <joern.rennecke@superh.com>
2032 * cse.c (cse_set_around_loop): When changing a constant load
2033 to a register -register copy, add a REG_EQUAL note.
2035 2003-11-27 Randolph Chung <tausq@debian.org>
2036 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2038 * pa.c (hppa_profile_hook): Split gen_call_profiler into separate
2039 insns. Use the regular call expander for the call to the profiler.
2040 * pa.md (call_profiler): Delete.
2041 (load_offset_label_address): New insn to load the address of the
2042 current function for the profiler.
2043 (lcla1, lcla2): New insns to output a code label and load its address.
2045 2003-11-27 Kazu Hirata <kazu@cs.umass.edu>
2047 * final.c (final_scan_insn): Remove commented-out code.
2049 2003-11-27 Nathanael Nerode <neroden@gcc.gnu.org>
2051 * doc/install.texi: Remove ADAC reference and make accurate.
2053 2003-11-27 Kazu Hirata <kazu@cs.umass.edu>
2055 * config/h8300/h8300.h (FUNCTION_VALUE): Use R0_REG.
2056 (FUNCTION_VALUE_REGNO_P): Likewise.
2057 * config/h8300/h8300.md: Define R0_REG.
2059 2003-11-27 Kazu Hirata <kazu@cs.umass.edu>
2061 * config/h8300/h8300.c: Fix formatting.
2062 * config/h8300/h8300.md: Likewise.
2064 2003-11-27 Kazu Hirata <kazu@cs.umass.edu>
2066 * config/h8300/h8300.h (ELIMINABLE_REGS): Update a comment.
2068 2003-11-27 Kazu Hirata <kazu@cs.umass.edu>
2070 * config/h8300/h8300.md: Give names to anonymous insns.
2072 2003-11-27 Kazu Hirata <kazu@cs.umass.edu>
2074 * config/h8300/h8300.md (extendqisi2): Remove constraints.
2076 2003-11-27 Gunther Nikl <gni@gecko.de>
2078 * doc/tm.texi (SYSROOT_HEADERS_SUFFIX_SPEC): Fix typo.
2080 2003-11-27 Eric Botcazou <ebotcazou@libertysurf.fr>
2082 PR optimization/13041
2083 * final.c (frame_pointer_needed): Fix comment.
2084 * reload1.c (reload): Decrease alignment of the frame
2085 pointer if it was used for register allocation.
2087 2003-11-27 Eric Botcazou <ebotcazou@libertysurf.fr>
2090 * reg-stack (move_for_stack_reg): New prototype. Return
2091 whether a control flow insn was deleted.
2092 (subst_stack_regs_pat): Likewise, using the information provided
2093 by move_for_stack_reg.
2094 (subst_stack_regs): Likewise, using the information provided
2095 by subst_stack_regs_pat.
2096 (convert_regs_1): Record whether a control flow insn was deleted,
2097 using the information provided by subst_stack_regs. Purge dead
2098 edges only if a control flow insn was deleted.
2100 2003-11-27 Eric Botcazou <ebotcazou@libertysurf.fr>
2108 * builtins.c (expand_builtin_apply): Use virtual_outgoing_args_rtx
2109 as the base address to copy the memory arguments to.
2111 2003-11-26 Danny Smith <dannysmith@users.sourceforge.net>
2113 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Declare
2114 function aliases as functions.
2116 2003-11-26 Nathanael Nerode <neroden@gcc.gnu.org>
2118 * aclocal.m4 (gcc_AC_PROG_GNAT): Rewrite to account for removal
2120 * configure: Regenerate.
2122 * Makefile.in: Remove references to ADAC.
2124 * configure.in: Remove check for whether ${ADAC} accepts -Wno-long-long.
2125 * configure: Regenerate.
2127 2003-11-26 Eric Botcazou <ebotcazou@libertysurf.fr>
2128 Olivier Hainque <hainque@act-europe.fr>
2131 * config/sparc/sparc-protos.h (compute_frame_size): New prototype.
2132 (sparc_flat_compute_frame_size): Likewise.
2133 (sparc_flat_save_restore): Move prototype...
2134 * config/sparc/sparc.c (sparc_flat_save_restore): ...here.
2135 (save_regs): New prototype.
2136 (build_big_number): Likewise.
2137 (apparent_fsize): Change type to HOST_WIDE_INT.
2138 (actual_fsize): Likewise.
2139 (frame_base_offset): Likewise.
2140 (build_big_number): Add support for HOST_BITS_PER_WIDE_INT == 64.
2141 Change string descriptor to HOST_WIDE_INT_PRINT_DEC.
2142 [TARGET_ARCH64]: Use the sequence of sparc_emit_set_const64_longway
2143 to load a 64-bit constant.
2144 (sparc_nonflat_function_prologue): Change string descriptor to
2145 HOST_WIDE_INT_PRINT_DEC. Change offset type to HOST_WIDE_INT.
2146 (output_restore_regs): Change offset type to HOST_WIDE_INT.
2147 (sparc_nonflat_function_epilogue): Change string descriptor to
2148 HOST_WIDE_INT_PRINT_DEC. Use build_big_number.
2149 (output_sibcall): Change size type to HOST_WIDE_INT. Use
2150 build_big_number. Change string descriptor to HOST_WIDE_INT_PRINT_DEC.
2151 (sparc_frame_info): Change types for several components.
2152 (sparc_flat_compute_frame_size): Update types according to previous
2154 (sparc_flat_function_prologue): Change string descriptor to
2155 HOST_WIDE_INT_PRINT_DEC. Change offset type to int. Use
2157 (sparc_flat_function_epilogue): Change offset type to int.
2158 Rename 'size1' into 'reg_offset1'. Change string descriptor to
2159 HOST_WIDE_INT_PRINT_DEC. Use build_big_number. Change big number
2160 limit to 4096 instead of 4095.
2162 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Change offset type to
2165 2003-11-24 Waldek Hebisch <hebisch@math.uni.wroc.pl>
2167 * function.c: Make outer_function-chain external.
2168 * function.h: Likewise.
2170 2003-11-24 Richard Sandiford <rsandifo@redhat.com>
2172 * config.gcc (mips-sgi-irix6*): Add t-iris6gld to tmake_file when
2174 * config/mips/iris6.h (IRIX6_STARTFILE_SPEC): New, taking the
2175 whole of the previous STARTFILE_SPEC except crtbegin.o%s.
2176 (IRIX6_ENDFILE_SPEC): Likewise ENDFILE_SPEC and crtend.o%s.
2177 (STARTFILE_SPEC, ENDFILE_SPEC): Define in terms of the above.
2178 (SUBTARGET_EXTRA_SPECS): Define.
2179 * config/mips/iris6gld.h (LINK_SPEC): Change -init function
2180 to __gcc_init and -fini function to __gcc_fini.
2181 (STARTFILE_SPEC): Redefine, including irix6-crti.o before crtbegin.o.
2182 (ENDFILE_SPEC): Likewise, including irix6-crtn.o after crtend.o.
2183 (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP): Define.
2184 * config/mips/t-iris6gld,
2185 * config/mips/irix6-crti.asm,
2186 * config/mips/irix6-crtn.asm: New files.
2188 2003-11-24 Eric Christopher <echristo@redhat.com>
2191 * c-decl.c (c_in_iteration_stmt, c_in_case_stmt): New.
2192 (start_function): Use.
2193 (c_push_function_context): Ditto.
2194 (c-pop_function_context): Ditto.
2195 (language_function): Move...
2196 * c-tree.h: ... here. Add x_in_iteration_stmt, and
2198 * c-parse.in (do_stmt_start, select_or_iter_stmt, stmt): Use
2199 c_in_iteration_stmt, c_in_case_stmt for parser state. Move
2200 check for valid break or continue statment here...
2201 * c-semantics.c (genrtl_break_stmt, genrtl_continue_stmt): From
2202 here. Change original errors to abort.
2204 2003-11-24 Jan Hubicka <jh@suse.cz>
2206 * fold-const.c (fold): Do not return early when optimizing
2207 COMPONENT_REF and constant.
2209 2003-11-24 Kazu Hirata <kazu@cs.umass.edu>
2211 * config/h8300/h8300.md (tablejump_h8300): Change to
2213 (tablejump_h8300h): Change to *tablejump_h8300hs_advanced.
2214 (tablejump_normal_mode): Change to *tablejump_h8300hs_normal.
2215 (indirect_jump_h8300): Change to *indirect_jump_h8300.
2216 (indirect_jump_h8300h): Change to
2217 *indirect_jump_h8300hs_advanced.
2218 (indirect_jump_normal_mode): Change to
2219 *indirect_jump_h8300hs_normal.
2221 2003-11-24 Kazu Hirata <kazu@cs.umass.edu>
2223 * config/h8300/h8300.md: Remove constraints from expanders.
2225 2003-11-24 Kazu Hirata <kazu@cs.umass.edu>
2227 * config/h8300/h8300.md: (stm_h8300s_2): Change the name to
2228 stm_h8300s_2_advanced.
2229 (stm_h8300s_2_normal): New.
2230 (stm_h8300s_2): Likewise.
2231 (stm_h8300s_3): Change the name to stm_h8300s_3_advanced.
2232 (stm_h8300s_3_normal): New.
2233 (stm_h8300s_3): Likewise.
2234 (stm_h8300s_4): Change the name to stm_h8300s_4_advanced.
2235 (stm_h8300s_4_normal): New.
2236 (stm_h8300s_4): Likewise.
2237 (ldm_h8300s_2): Change the name to ldm_h8300s_2_advanced.
2238 (ldm_h8300s_2_normal): New.
2239 (ldm_h8300s_2): Likewise.
2240 (ldm_h8300s_3): Change the name to ldm_h8300s_3_advanced.
2241 (ldm_h8300s_3_normal): New.
2242 (ldm_h8300s_3): Likewise.
2243 (ldm_h8300s_4): Change the name to ldm_h8300s_4_advanced.
2244 (ldm_h8300s_4_normal): New.
2245 (ldm_h8300s_4): Likewise.
2246 (two peephole2's): Enable only with !TARGET_NORMAL_MODE.
2247 (two peephole2's): New.
2249 2003-11-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2251 * genattrtab.c (simplify_cond): Update indices correctly.
2252 (attr_alt_subset_p, attr_alt_subset_of_compl_p, attr_alt_intersection,
2253 attr_alt_union, attr_alt_complement, attr_alt_bit_p, mk_attr_alt): New.
2254 (check_attr_test, encode_units_mask, compute_alternative_mask,
2255 make_alternative_compare, simplify_and_tree,
2256 attr_rtx_cost, simplify_test_exp, gen_attr,
2257 write_test_expr, walk_attr_value): Handle EQ_ATTR_ALT.
2258 * rtl.def (EQ_ATTR_ALT): New.
2260 2003-11-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2262 * genattrtab.c (strcmp_check, DEF_ATTR_STRING): New macros.
2263 (length_str, delay_type_str, delay_1_0_str, num_delay_slots_str):
2265 (main): Initialize them.
2266 (find_attr): Canonicalize the attribute name string.
2267 (attr_rtx_1, copy_boolean, expand_delays, gen_unit): Always canonicalize
2269 (attr_printf, attr_eq): Use DEF_ATTR_STRING.
2270 (check_attr_test, check_attr_value, make_length_attrs,
2271 write_length_unit_log, simplify_by_exploding, gen_attr,
2272 write_test_expr, write_attr_value, write_eligible_delay,
2273 write_complex_function, make_internal_attr,
2274 write_const_num_delay_slots): Changed due to change of type of
2276 (fill_attr, evaluate_eq_attr, simplify_and_tree,
2277 attr_rtx_cost, simplify_by_exploding, walk_attr_value): Use
2280 2003-11-23 Kazu Hirata <kazu@cs.umass.edu>
2283 * config/h8300/h8300.c (push): Call push_h8300hs_normal in
2285 (pop): Call pop_h8300hs_normal in normal mode.
2286 * config/h8300/h8300.md: Likewise.
2287 (pushqi1_h8300hs_normal): New.
2288 (pushqi1): Call pushqi1_h8300hs_normal in normal mode.
2289 (pushhi1_h8300hs_normal): New.
2290 (pushhi1): Call pushhi1_h8300hs_normal in normal mode.
2291 (push_h8300hs_normal): New.
2292 (pop_h8300hs_normal): Likewise.
2294 2003-11-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2296 * genattrtab.c (count_sub_rtxs): Removed.
2298 2003-11-23 Richard Earnshaw <rearnsha@arm.com>
2300 * recog.c (preprocess_constraints): Only zero those elements of
2301 recog_op_alt that are needed for this insn.
2302 * arm.c (note_invalid_constants): A function can't contain invalid
2303 constants if it has no constraints.
2305 2003-11-22 Jan Hubicka <jh@suse.cz>
2307 * i386.c (classify_argument): Pass __float128 in memory.
2308 (ix86_return_in_memory): Likewise.
2309 (ix86_libcall_value): Likewsie.
2311 2003-11-22 Kazu Hirata <kazu@cs.umass.edu>
2313 * config/h8300/h8300.c (dosize): Convert to ISO-C.
2315 2003-11-22 J"orn Rennecke <joern.rennecke@superh.com>
2317 * flow.c (update_life_info): Amend comment about when a register
2320 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
2322 * doc/.cvsignore: Delete.
2324 2003-11-21 Daniel Berlin <dberlin@dberlin.org>
2325 David Edelsohn <edelsohn@gnu.org>
2327 * dwarf2out.c (add_location_or_const_value_attribute): Add support
2330 2003-11-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2332 * config/mips/t-iris6 (CRTSTUFF_T_CFLAGS): Add -Wno-error.
2333 (TARGET_LIBGCC2_CFLAGS): Define.
2335 * crtstuff.c [HAS_INIT_SECTION] (__do_global_dtors): Declare.
2336 (__do_global_ctors): Likewise.
2338 2003-11-21 Mark Wielaard <mark@klomp.org>
2340 * doc/invoke.texi (-O2): Doesn't enable -fweb.
2342 2003-11-21 Kazu Hirata <kazu@cs.umass.edu>
2344 * doc/invoke.texi: Mention dV and dZ.
2346 2003-11-21 Kazu Hirata <kazu@cs.umass.edu>
2348 * doc/invoke.texi: Update dump file names.
2349 Remove de, dW, and dX.
2351 2003-11-20 James E Wilson <wilson@specifixinc.com>
2354 * reload1.c (reload): Delete special handling for setjmp.
2356 2003-11-21 Andreas Tobler <a.tobler@schweiz.ch>
2358 * mklibgcc.in: Evaluate shlib_slibdir_qual during link
2360 * config/t-slibgcc-darwin: Adjust install path.
2361 * config/rs6000/t-darwin: Revert multilib matches since
2362 it is not used on darwin.
2364 2003-11-20 Richard Henderson <rth@redhat.com>
2366 * ssa.c, ssa-dce.c, ssa-ccp.c: Remove files.
2367 * Makefile.in (OBJS-common, GTFILES): Don't reference them.
2368 (gtype-desc.o, toplev.o, flow.o): Remove ssa.h.
2369 (ssa.o, ssa-dce.o, ssa-ccp.o): Remove.
2370 * flow.c: Don't include ssa.h.
2371 (set_phi_alternative_reg): Remove.
2372 (calculate_global_regs_live): Don't call it.
2373 (mark_used_regs): Don't handle PHI.
2374 * gengtype.c (open_base_files): Don't reference ssa.h.
2375 * rtl.def (PHI): Remove.
2376 * timevar.def (TV_TO_SSA, TV_SSA_CCP, TV_SSA_DCE, TV_FROM_SSA): Kill.
2377 * common.opt: Remove -fssa, -fssa-ccp, -fssa-dce.
2378 * opts.c (common_handle_option): Likewise.
2379 * toplev.c (f_options): Likewise.
2380 (DFI_ssa, DFI_ssa_ccp, DFI_ssa_dce, DFI_ussa): Remove.
2381 (dump_file): Update to match.
2382 (flag_ssa, flag_ssa_ccp, flag_ssa_dce): Remove.
2383 (rest_of_handle_ssa): Remove.
2384 (rest_of_compilation): Don't call it.
2385 * toplev.h (flag_ssa, flag_ssa_dce, flag_ssa_ccp): Remove.
2386 * doc/invoke.texi: Remove -fssa, -fssa-ccp, -fssa-dce.
2387 * doc/passes.texi (SSA optimizations): Remove.
2389 2003-11-20 Bob Wilson <bob.wilson@acm.org>
2391 * configure.in: Add xtensa-*-* targets to test for dwarf2 debug_line.
2392 * configure: Regenerate.
2394 2003-11-20 Kelley Cook <kcook@gcc.gnu.org>
2396 * Makefile.in (Makefile): Pass along CONFIG_SHELL.
2398 2003-11-20 David Mosberger <davidm@hpl.hp.com>
2400 * config/t-libunwind (LIB2ADDEH): Add unwind-c.c.
2402 * unwind-libunwind.c (_Unwind_GetCFA): Implement.
2403 (_Unwind_GetBSP) [UNW_TARGET_IA64]: New function.
2405 2003-11-20 Fariborz Jahanian <fjahanian@apple.com>
2406 David Edelsohn <edelsohn@gnu.org>
2408 * calls.c (expand_call): Allocate new temp in pass1.
2409 (store_one_arg): If PARALLEL, calculate excess using mode size of
2411 * expr.c (emit_push_insn): If PARALLEL, calculate offset using
2412 mode size of rtvec elt.
2413 * function.c (assign_parms): Use parm in register, if available.
2415 2003-11-20 Kazu Hirata <kazu@cs.umass.edu>
2417 * config/h8300/lib1funcs.asm (MOVP): Remove.
2421 2003-11-20 Richard Earnshaw <rearnsha@arm.com>
2423 * arm.c (use_return_insn): New argument, SIBLING. Support returning
2424 with a single instruction if the stack has been decremented by 4
2425 and we have a frame pointer. Update all callers.
2426 (output_return_instruction): Likewise.
2427 (arm_output_epilogue): Change argument to SIBLING. Calculate
2428 really_return from the new argument. Update all callers.
2429 * arm.h (USE_RETURN_INSN): Pass NULL for the sibling.
2430 * arm.md (sibcall_epilogue): Call use_return_insn directly, and
2431 pass the sibling call.
2432 * arm-protos.h (use_return_insn, arm_output_epilogue): Update
2435 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
2437 * Makefile.in (extraclean): Delete.
2438 * configure.in (target_list): Remove extraclean.
2439 * configure: Regenerate.
2440 * doc/makefile.texi, doc/sourcebuild.texi: Update.
2441 * objc/Make-lang.in (objc.extraclean): Delete.
2443 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
2445 * Makefile.in (lang_checks): Add.
2446 (check-c++, check-f77, check-java, check-g++, check-g77,
2447 check-objc): Remove hardcoded targets.
2448 * doc/sourcebuild.texi: Document testsuite hooks.
2449 * objc/Make-lang.in (check-objc, lang_checks): Add.
2451 2003-11-19 Scott Snyder <snyder@fnal.gov>
2454 * dwarf2out.c (gen_array_type_die): DW_AT_declaration should be a
2455 flag, not a constant.
2457 2003-11-19 Kelley Cook <kcook@gcc.gnu.org>
2459 * config/arc/arc-protos.h: Update to C90 prototypes.
2460 * config/arc/arc.c: Likewise.
2461 * config/arc/initfini.c: Likewise.
2463 2003-11-19 Andreas Krebbel <krebbel1@de.ibm.com>
2465 * stmt.c (expand_goto): Memory clobbers added.
2467 2003-11-19 Andreas Krebbel <krebbel1@de.ibm.com>
2469 * reload.c (find_reloads): Added missing type casts.
2471 2003-11-19 James E Wilson <wilson@specifixinc.com>
2473 * combine.c (sets_function_arg_p): Delete unused function.
2475 2003-11-19 Eric Christopher <echristo@redhat.com>
2477 * reload1.c (reload): Revert 2 previous checkins.
2479 2003-11-19 Nathanael Nerode <neroden@gcc.gnu.org>
2481 * cpptrad.c (_cpp_scan_out_logical_line): Improve test for
2482 whether directive begins at the beginning of a line.
2484 2003-11-19 Richard Sandiford <rsandifo@redhat.com>
2486 * config/frv/frv.c (frv_init_libfuncs): Correct ufix_optab entries.
2488 2003-11-19 Gerald Pfeifer <gp@suse.de>
2490 * doc/install.texi (Specific): Remove information on old versions
2491 of glibc versus old versions of GCC.
2493 2003-11-19 Richard SAndiford <rsandifo@redhat.com>
2495 * emit-rtl.c (gen_lowpart): Don't force MEMs into a register unless
2496 the register lowpart is a TRULY_NOOP_TRUNCATION.
2498 2003-11-19 Richard Henderson <rth@redhat.com>
2500 * config/i386/i386.c (print_reg): Handle QI and HI modes for
2503 2003-11-19 Andreas Tobler <a.tobler@schweiz.ch>
2505 * config/config.gcc (powerpc-*-darwin*): Add libgcc build
2507 * config/t-slibgcc-darwin: New file, libgcc build specification.
2508 * config/t-darwin: Add libgcc2 flag -fPIC.
2509 * config/rs6000/t-darwin: Multilib matches float.
2510 * libgcc-darwin.ver: New file, contains libgcc symbols.
2512 2003-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
2514 * config/ns32k/ns32k.h: Remove obsolete comment.
2516 2003-11-18 Roger Sayle <roger@eyesopen.com>
2519 * config/arm/arm.c (arm_rtx_costs_1): Improve estimate of the code
2520 size for calls to libgcc's div & mod subroutines when using -Os.
2522 2003-11-18 Jan Hubicka <jh@suse.cz>
2524 * cgraph.c (change_decl_assembler_name): Avoid bogus warnings.
2526 2003-11-18 Marc Espie <espie@openbsd.org>
2528 * config/rs6000/sysv4.h: OpenBSD hooks.
2530 2003-11-18 Richard Henderson <rth@redhat.com>
2532 * expr.c (expand_expr): Don't look through constant arrays if
2533 they don't bind locally.
2535 2003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2537 * expr.c (convert_move): Use GET_MODE_PRECISION instead of bitsize
2538 when seeing if truncation or extension.
2540 2003-11-17 Eric Christopher <echristo@redhat.com>
2542 * reload1.c (reload): Fix previous change.
2544 2003-11-17 Scott Snyder <snyder@fnal.gov>
2547 * dwarf2out.c (struct die_struct): Add die_definition field.
2548 (add_AT_specification): New.
2549 (gen_subprogram_die, gen_variable_die,
2550 gen_struct_or_union_type_die): Use it.
2551 (prune_unused_types_mark): If we're marking a forward declaration,
2552 also mark the full definition, if it exists.
2554 2003-11-16 Nick Clifton <nickc@redhat.com>
2556 * config/stormy16/stormy16.h (BUILD_VA_LIST_TYPE): Delete.
2557 * config/stormy16/stormy16-protos.h (xstormy16_build_va_list):
2559 * config/stormy16/stormy16.c (xstormy16_build_va_list): Rename
2560 to xstormy16_build_builtin_va_list and make static.
2561 (TARGET_BUILD_BUILTIN_VA_LIST): Define.
2563 2003-11-16 Kazu Hirata <kazu@cs.umass.edu>
2565 * config/h8300/h8300-protos.h: Add the prototype for
2566 same_cmp_following_p.
2567 * config/h8300/h8300.c (same_cmp_following_p): New.
2568 * config/h8300/h8300.md (peephole2): Use it.
2570 2003-11-16 Kazu Hirata <kazu@cs.umass.edu>
2572 * config/h8300/h8300.md: Don't use REGNO when its operand is
2573 not guaranteed to be a REG.
2575 2003-11-16 Richard Sandiford <rsandifo@redhat.com>
2577 * Makefile.in (expr.o): Depend on $(TARGET_H).
2578 * target.h (return_in_msb): New target hook.
2579 * target-def.h (TARGET_RETURN_IN_MSB): New macro.
2580 (TARGET_CALLS): Include it.
2581 * calls.c (shift_returned_value): New function.
2582 (expand_call): Use it.
2583 * expr.c: Include target.h.
2584 (copy_blkmode_from_reg): Check targetm.calls.return_in_msb when
2585 deciding what padding is needed. Change the name of the local
2586 padding variable from big_endian_correction to padding_correction.
2587 * stmt.c (shift_return_value): New function.
2588 (expand_return): Use it. Adjust memory->register copy in the same
2589 way as copy_blkmode_from_reg. Only change the return register's
2590 mode if it was originally BLKmode.
2591 * doc/tm.texi (TARGET_RETURN_IN_MSB): Document.
2592 * config/mips/mips.c (TARGET_RETURN_IN_MSB): Define.
2593 (mips_fpr_return_fields): New, split out from mips_function_value.
2594 (mips_return_in_msb, mips_return_fpr_pair): New functions.
2595 (mips_function_value): Rework to use the functions above.
2596 * config/mips/irix6-libc-compat.c: Delete.
2597 * config/mips/t-iris6 (LIB2FUNCS_STATIC_EXTRA): Undefine.
2599 2003-11-16 Kazu Hirata <kazu@cs.umass.edu>
2601 * doc/install.texi (--enable-checking): Update valgrind's URL.
2603 2003-11-16 Kazu Hirata <kazu@cs.umass.edu>
2605 * config/h8300/h8300.md: Fix warnings by replacing -2147483648
2606 with -2147483647 - 1.
2608 2003-11-16 Gerald Pfeifer <gerald@pfeifer.com>
2610 Fix links in online manuals.
2611 * doc/invoke.texi (H8/300 Options): @xref to ld, not ld.info.
2612 (Precompiled Headers): @pxref to cpp, not cpp.info.
2614 2003-11-16 Jason Merrill <jason@redhat.com>
2616 * Makefile.in, objc/Make-lang.in (objc.tags): Create TAGS.sub
2617 files in each directory and TAGS files that include them for each
2620 2003-11-15 Kazu Hirata <kazu@cs.umass.edu>
2622 * config/h8300/lib1funcs.asm (divnorm): Store the sign in bit
2624 (modnorm): Likewise.
2625 (exitdiv): Look at bit 3 of S2L only.
2627 2003-11-15 Kazu Hirata <kazu@cs.umass.edu>
2629 * config/h8300/h8300.h (DO_GLOBAL_CTORS_BODY): Fix warnings.
2630 (DO_GLOBAL_DTORS_BODY): Likewise.
2632 2003-11-15 Joseph S. Myers <jsm@polyomino.org.uk>
2634 * doc/install.texi (Prerequisites): Refine documentation of
2635 autoconf, automake and perl requirements. Document required
2638 <2003-11-14 Jason Merrill <jason@redhat.com>
2640 * function.c (assign_parms): Use TREE_TYPE to determine the real
2641 type of the argument object.
2643 2003-11-14 Kazu Hirata <kazu@cs.umass.edu>
2645 * config/h8300/lib1funcs.asm (___udivsi3): Peel off the first
2648 2003-11-14 Fariborz Jahanian <fjahanian@apple.com>
2650 * config/rs6000/rs6000.c (rs6000_move_block_from_reg):
2651 New routine to save vararg registers on stack. Support for
2652 -mpowerpc64 in mixed mode.
2654 2003-11-14 Bernardo Innocenti <bernie@develer.com>
2656 * config/m68k/m68k.c: Use C statements instead of #ifdef's when testing
2657 for MOTOROLA versus MIT syntax. Improves readability and provides
2658 better compile-time error checking for both code paths.
2660 2003-11-14 Kelley Cook <kcook@gcc.gnu.org>
2662 * config/frv/frv-protos.h: Update for C90.
2663 * config/frv/frv.h: Likewise.
2664 * config/frv/frvbegin.c: Likewise.
2665 * config/frv/frv.c: Likewise.
2666 (frv_adjust_field_align): Delete unused variable.
2668 2003-11-14 Geoffrey Keating <geoffk@apple.com>
2670 * config/rs6000/rs6000.md: Add 'DEFAULT_ABI == ABI_DARWIN'
2671 to each place where TARGET_LONG_DOUBLE_128 is used with
2672 DEFAULT_ABI == ABI_AIX.
2674 * cppfiles.c (_cpp_find_file): Make 'one or more PCH files were found'
2675 message comply with GNU standards.
2677 2003-11-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2680 * function.c (struct epi_info): New field const_equiv.
2681 (update_epilogue_consts): New function.
2682 (keep_stack_depressed): Clear new field and verify scratch register
2683 doesn't have it set.
2684 Call new function via note_stores.
2685 (handle_epilogue_set): Allow setting SP equiv reg in different mode.
2686 Allow PLUS where second operand is register known set to constant.
2687 (emit_equiv_load): Write load using proper mode if source different.
2688 * config/mips/mips.md (return_internal): Put (return) first.
2690 2003-11-14 Kazu Hirata <kazu@cs.umass.edu>
2692 * config/h8300/lib1funcs.asm (___udivsi3): Add a comment.
2694 2003-11-14 Kazu Hirata <kazu@cs.umass.edu>
2696 * config/h8300/lib1funcs.asm (modsi3): Don't save unused
2699 (reti): Don't restore unused registers.
2701 2003-11-14 Nick Clifton <nickc@redhat.com>
2703 * config/fr30/fr30.c: Include toplev.h
2705 2003-11-14 Richard Earnshaw <rearnsha@arm.com>
2707 * except.c (sjlj_emit_function_enter): Mark internal label as LOCAL.
2709 2003-11-14 Richard Earnshaw <rearnsha@arm.com>
2711 * arm.c (arm_emit_vector_const, arm_output_load_gr): Use ISO C
2712 function definition syntax.
2714 2003-11-14 Eric Christopher <echristo@redhat.com>
2716 * reload1.c (reload): Revert previous patch. Make
2717 check for assignment into reg_equiv_address stricter.
2719 2003-11-14 Arnaud Charlet <charlet@act-europe.fr>
2721 * Makefile.in (POSTSTAGE1_FLAGS_TO_PASS): Pass ADAFLAGS.
2723 2003-11-14 Richard Sandiford <rsandifo@redhat.com>
2725 * config/frv/frv.c (frv_in_small_data_p): Return false for unknown
2728 2003-11-14 Jason Merrill <jason@redhat.com>
2731 * tree.c (build): A CALL_EXPR has side-effects if its arguments do.
2732 * calls.c (call_expr_flags): New fn.
2733 * tree.h: Declare it.
2735 2003-11-13 Kazu Hirata <kazu@cs.umass.edu>
2737 * config/h8300/lib1funcs.asm (__udivsi3): Remove.
2738 (divmodsi3): Change the name to ___udivsi3.
2741 2003-11-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2743 * libgcc2.c (__negdi2, __addvsi3, __addvdi3, __subvsi3, __subvdi3,
2744 __mulvsi3, __negvsi2, __negvdi2, __mulvdi3, __lshrdi3, __ashldi3,
2745 __ashrdi3, __ffsDI2, __muldi3, __clzDI2, __ctzDI2, __parityDI2,
2746 __udivmoddi4, __divdi3, __moddi3, __cmpdi2, __ucmpdi2,
2747 __fixunstfDI, __fixunsxfDI, __fixunsdfDI, __fixunssfDI,
2748 __floatdixf, __floatditf, __floatdidf, __floatdisf, __gcc_bcmp):
2749 Const-ify and/or initialize automatic variables at declaration.
2751 2003-11-13 Kazu Hirata <kazu@cs.umass.edu>
2753 * config/h8300/lib1funcs.asm (divmodsi4): Replace all the uses
2754 of er4 with er3. Adjust all callers.
2756 2003-11-13 Andrew Pinski <apinski@apple.com>
2758 * config/darwin.c (machopic_output_possible_stub_label):
2759 Allow stub symbol be not defined when outputting possible
2762 2003-11-13 Kazu Hirata <kazu@cs.umass.edu>
2764 * config/h8300/lib1funcs.asm (___udivsi3): Jump to reti
2766 (___umodsi3): Likewise.
2767 (exitdiv): Do not restore any register.
2768 (reti): Restore registers.
2770 2003-11-13 Steven Bosscher <stevenb@suse.de>
2772 * tree-inline.c (walk_tree): Handle PLACEHOLDER_EXPR.
2774 2003-11-13 Kazu Hirata <kazu@cs.umass.edu>
2776 * config/h8300/lib1funcs.asm: Fix comment typos.
2778 2003-11-13 Kazu Hirata <kazu@cs.umass.edu>
2780 * config/h8300/lib1funcs.asm (udivsi3): Don't save/restore
2781 unused registers. Don't jump to exitdiv.
2782 (umodsi3): Likewise.
2784 2003-11-13 Mark Mitchell <mark@codesourcery.com>
2785 Kean Johnston <jkj@sco.com>
2788 * toplev.c (check_global_declarations): Do not warn about unused
2791 2003-11-13 Pavel Pisa <pisa@cmp.felk.cvut.cz>
2792 Kazu Hirata <kazu@cs.umass.edu>
2794 * config/h8300/lib1funcs.asm (DenHighNonZero): Optimize using
2795 the approximate quotient method.
2797 2003-11-13 Richard Earnshaw <rearnsha@arm.com>
2799 * combine.c (distribute_notes): When re-distributing the notes from
2800 an insn we are about to delete, ensure we can't end up with a cyclic
2803 2003-11-13 Eric Botcazou <ebotcazou@libertysurf.fr>
2805 PR optimization/12926
2806 * expr.c (expand_assignment) [COMPONENT_REF]: Don't put
2807 the UNCHANGING_RTX_P flag on memory references to read-only
2808 components that are not addressable.
2810 2003-11-12 Kazu Hirata <kazu@cs.umass.edu>
2812 * config/h8300/lib1funcs.asm (divmodsi4): Clear S0P in
2815 2003-11-13 Jan Hubicka <jh@suse.cz>
2818 * c-decl.c (finish_decl): Use change_decl_assembler_name.
2819 * c-pragma.c (handle_pragma_redefine_extname): Likewise.
2820 * varasm.c (make_decl_rtl): Likewise.
2821 * cgraph.c (change_decl_assembler_name): New function.
2822 * tree.h (set_decl_assembler_name): Kill dead declaration.
2823 (change_decl_assembler_name): Declare.
2825 * decl.c (make_rtl_for_nonlocal_decl): Use change_decl_assembler_name.
2826 * decl2.c (make_rtl_for_nonlocal_decl): Use change_decl_assembler_name.
2828 2003-11-12 Kazu Hirata <kazu@cs.umass.edu>
2830 * config/h8300/lib1funcs.asm (___mulsi3): Don't save/restore
2833 2003-11-12 Richard Sandiford <rsandifo@redhat.com>
2836 * config/mips/t-iris6 (MULTILIB_OPTIONS): Put -mabi=n32 first.
2837 (MULTILIB_OSDIRNAMES): Reorder accordingly.
2839 2003-11-12 Janis Johnson <janis187@us.ibm.com>
2841 * rs6000-protos.h (rs6000_initial_elimination_offset): Add.
2842 (rs6000_stack_info): Remove. (debug_stack_info): Remove.
2843 (rs6000_emit_eh_reg_restore): Add
2844 * rs6000.c (rs6000_stack_t): Move from rs6000.h, change data type
2845 of vars_size and total_size to HOST_WIDE_INT.
2846 (emit_frame_save): Change parameter size to HOST_WIDE_INT.
2847 (rs6000_stack_info): Make static; change data size to HOST_WIDE_INT.
2848 (debug_stack_info): Make static; change output format of HOST_WIDE_INT
2850 (rs6000_emit_eh_reg_restore): New, with code formerly in rs6000.md.
2851 (rs6000_initial_elimination_offset): New, with code formerly in
2852 INITIAL_ELIMINATION_OFFSET.
2853 * rs6000.h (rs6000_stack_t): Remove.
2854 (INITIAL_ELIMINATION_OFFSET): Replace code with call to function
2855 rs6000_initial_elimination_offset.
2856 * rs6000.md (UNSPECV_EH_RR split): Replace code with call to
2857 rs6000_emit_eh_reg_restore.
2859 2003-11-12 Mike Stump <mrs@apple.com>
2861 * c-typeck.c (c_convert_parm_for_inlining): Add argnum, which
2862 is the argumnt we are processing so that warnings and errors
2863 will have that information.
2864 * c-tree.h (c_convert_parm_for_inlining): Add argnum.
2866 (lhd_tree_inlining_convert_parm_for_inlining): Likewse.
2867 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): Likewise.
2868 * langhooks.h (convert_parm_for_inlining): Likewise.
2869 * tree-inline.c (initialize_inlined_parameters): Compute and
2872 2003-11-12 Alexey Starovoytov <alexey.starovoytov@sun.com>
2873 Roger Sayle <roger@eyesopen.com>
2875 PR optimization/12953
2876 * tree-inline.c (inline_forbidden_p_1): Added check for BUILT_IN
2877 before switch by FUNCTION_CODE.
2879 2003-11-12 Richard Earnshaw <rearnsha@arm.com>
2881 * arm.md (storehi): Avoid use of explicit subreg.
2882 (storehi_bigend, storeinthi, movhi_bigend): Likewise.
2884 2003-11-12 J"orn Rennecke <joern.rennecke@superh.com>
2886 * config/sh/sh.md (prefetch): New pattern.
2888 2003-11-11 Eric Christopher <echristo@redhat.com>
2890 * reload1.c (reload): Verify that addresses for
2891 reg_equiv_* are valid for the architecture.
2893 2003-11-11 Eric Christopher <echristo@redhat.com>
2895 * function.c (purge_addressof_1): Add libcall check.
2896 Remove test for cached replacements on fallback case.
2897 Simplify mode comparisons. Add libcall test for
2898 paradoxical subregs.
2900 2003-11-11 Kazu Hirata <kazu@cs.umass.edu>
2902 * config/h8300/t-h8300: Fix an obsolete comment.
2904 2003-11-11 James E Wilson <wilson@specifixinc.com>
2906 * expmed.c (store_bit_field, extract_bit_field): Revert last two
2909 2003-11-11 Kazu Hirata <kazu@cs.umass.edu>
2911 * config/h8300/lib1funcs.asm: Replace DenHighZero with
2914 2003-11-11 Jan Hubicka <jh@suse.cz>
2916 * cgraphunit.c (cgraph_function_possibly_inlined_p): Use
2919 2003-11-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2921 * pa.h (TRAMPOLINE_TEMPLATE): Fix flushing of cache lines when
2922 generating 64-bit code.
2924 2003-11-10 David Edelsohn <edelsohn@gnu.org>
2926 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Remove
2927 accidental commit in previous change.
2929 2003-11-10 Fariborz Jahanian <fjahanian@apple.com>
2931 * config/rs6000/rs6000.h (STACK_SIZE_MODE): Add definition.
2932 * config/rs6000/rs6000.c (reg_or_mem_operand): Add macho-style
2933 address recognition.
2934 (macho_lo_sum_memory_operand): Routine to recognize macho-style
2935 address recognition.
2937 2003-11-10 Richard Henderson <rth@redhat.com>
2939 * dwarf2out.c (gen_label_die): Cope with DECL_RTL not set.
2941 2003-11-10 Matt Austern <austern@apple.com>
2943 * config/darwin-protos.h (darwin_assemble_visibility): Declare.
2944 * config/darwin.c (darwin_assemble_visibility): Define. Warn for
2945 anything other than VISIBILITY_DEFAULT and VISIBILITY_HIDDEN.
2946 * config/darwin.h (TARGET_ASM_ASSEMBLE_VISIBILITY): Use
2947 darwin_assemble_visibility instead of default.
2949 2003-11-10 Waldek Hebisch <hebisch@math.uni.wroc.pl>
2952 * config/sparc/sparc.c (sparc_initialize_trampoline): Call
2953 __enable_execute_stack only after writing onto the stack.
2954 (sparc64_initialize_trampoline): Likewise.
2956 2003-11-09 Roger Sayle <roger@eyesopen.com>
2958 * loop.c (check_dbra_loop): Try swapping the comparison operands
2959 of the loop condition to identify a suitable induction variable.
2960 * unroll.c (loop_iterations): Likewise.
2962 2003-11-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2964 * config/sparc/sparc.h (TARGET_CPU_CPP_BUILTINS): Fix sparc vs
2965 sparc64 #cpu and #machine assertions.
2967 2003-11-09 Richard Henderson <rth@redhat.com>
2969 * Makefile.in (rtlanal.o): Depend on BASIC_BLOCK_H.
2971 2003-11-09 Jan Hubicka <jh@suse.cz>
2973 * tree-optimize.c (tree_rest_of_compilation): Fix warning.
2975 * cgraphunit.c (cgraph_expand_function): Use
2976 cgraph_possibly_inlined_p.
2977 * tree-optimize.c (tree_rest_of_compilation): Do not kill saved tree.
2979 * opts.c (common_handle_option): Do not set max-inline-insns.
2980 * params.def: Update comments.
2981 (PARAM_MAX_INLINE_INSNS): Kill.
2982 * invoke.texi (max-inline-insns): Kill.
2984 2003-11-08 Joseph S. Myers <jsm@polyomino.org.uk>
2988 * c-format.c (set_Wformat): Do not enable -Wformat-y2k by default.
2989 * invoke.texi: Update.
2991 2003-11-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2993 PR optimization/12630
2994 * pa.c (compute_movstrsi_length): Rename to compute_movstr_length.
2995 Handle length computation 64-bit moves.
2996 (compute_clrstr_length, output_block_clear): Implement block clear.
2997 (output_block_move): Handle 64-bit moves.
2998 (pa_adjust_insn_length): Use compute_movstr_length and
2999 compute_clrstr_length.
3000 * pa.md (movstrsi): Revise operand order and comments. Don't use
3002 (movstrsi_internal): Delete.
3003 (movstrsi_prereload, movstrsi_postreload): New insns. Define splitter
3004 and peephole2 patterns to transform prereload to postreload form.
3005 (movstrdi, movstrdi_prereload, movstrdi_postreload, clrstrsi,
3006 clrstrsi_prereload, clrstrsi_postreload, clrstrdi, clrstrdi_prereload,
3007 clrstrdi_postreload): New patterns for 64-bit block move, and block
3009 * pa-protos.h (output_block_clear): New prototype.
3011 2003-11-08 Andreas Schwab <schwab@suse.de>
3013 * dbxout.c (current_file): Also wrap inside DBX_DEBUGGING_INFO ||
3014 XCOFF_DEBUGGING_INFO.
3016 2003-11-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3018 * dbxout.c (current_file): Wrap declaration in DBX_USE_BINCL.
3020 2003-11-07 Geoffrey Keating <geoffk@apple.com>
3022 * config/rs6000/rs6000.c (rs6000_legitimize_address): Remove
3025 * cppfiles.c (pch_open_file): New parameter 'invalid_pch', set it.
3026 (find_file_in_dir): Likewise.
3027 (_cpp_find_file): Print message if no header file is found
3028 but an invalid PCH file was.
3030 2003-11-08 Joseph S. Myers <jsm@polyomino.org.uk>
3032 * c-typeck.c (pedantic_lvalue_warning): Deprecate compound
3033 expressions as lvalues.
3034 (internal_build_compound_expr): Remove special handling for
3036 * doc/extend.texi: Document that all extended lvalues are now
3039 2003-11-07 Geoffrey Keating <geoffk@apple.com>
3042 * dbxout.c (struct dbx_file): Do not save for PCH.
3043 (current_file): Likewise.
3044 (dbxout_init): Don't allocate struct dbx_file using GC.
3045 (dbxout_start_source_file): Likewise.
3047 2003-11-07 Falk Hueffner <falk@debian.org>
3049 * config/alpha/elf.h, config/alpha/unicosmk.h,
3050 config/alpha/vms.h: Convert to ISO C90.
3052 2003-11-07 Nathanael Nerode <neroden@gcc.gnu.org>
3054 * config/arm/pe.h: Convert to ISO C90.
3056 2003-11-07 J"orn Rennecke <joern.rennecke@superh.com>
3058 * sh-protos.h (sh_pch_valid_p): Declare.
3059 * sh.c ("intl.h"): Include.
3060 (TARGET_PCH_VALID_P): Override.
3061 (sh_target_switches): New variable.
3062 (target_switches): Define.
3063 (sh_pch_valid_p): New function.
3065 * sh.h (MODE_AFTER): Don't change mode unless TARGET_HITACHI.
3067 2003-11-07 Jan Hubicka <jh@suse.cz>
3069 * i386.c (x86_64_sign_extended_value): Return false from tls variables.
3070 (x86_64_zero_extended_value): likewise.
3072 2003-11-07 Richard Sandiford <rsandifo@redhat.com>
3074 * config/mips/mips.md (loadgp): Take $25 as a second operand.
3075 * config/mips/mips.c (mips_expand_prologue): Modify accordingly.
3077 2003-11-06 Matt Austern <austern@apple.com>
3079 * c-common.c (handle_visibility_attribute): Set DECL_VISIBILITY
3080 field instead of hanging an attribute object off the decl.
3081 * tree.h (DECL_VISIBLITY): New accessor macro for
3082 symbol_visibility field in struct tree_decl.
3083 (enum symbol_visibility): Move definition to before tree_decl.
3084 (struct tree_decl): Define new two-bit field, symbol_visibility.
3085 (decl_visibility): Remove declaration.
3086 * varasm.c (maybe_assemble_visibility): Use DECL_VISIBILITY
3087 instead of decl_visibility.
3088 (default_binds_local_p_1): Use DECL_VISIBILITY instead of
3090 (decl_visibility): Remove.
3092 2003-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3094 * config/s390/s390.c (s390_emit_epilogue): Recognize more cases
3095 where register 14 will be saved.
3097 2003-11-06 Geoffrey Keating <geoffk@apple.com>
3099 * config/rs6000/rs6000.h (USE_FP_FOR_ARG_P): Move to rs6000.c.
3100 (USE_ALTIVEC_FOR_ARG_P): Likewise.
3101 * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Move from rs6000.h.
3102 Take a pointer as the CUM parameter. Update callers.
3103 (USE_ALTIVEC_FOR_ARG_P): Likewise. Also correct for Darwin/AIX
3105 (function_arg_advance): Use USE_ALTIVEC_FOR_ARG_P. Correct case
3106 of vector parameters as named arguments of stdarg function.
3107 (function_arg): Likewise.
3109 * config/rs6000/darwin.h (ASM_SPEC): Use -force_cpusubtype_ALL when
3110 -maltivec is specified, not the non-existent -faltivec.
3112 2003-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3114 * config/s390/s390-protos.h (s390_function_value): Declare.
3115 * config/s390/s390.c (TARGET_RETURN_IN_MEMORY): Define.
3116 (s390_return_in_memory): New function.
3117 (s390_function_value): New function.
3118 (s390_function_arg_float): Return false for all arguments larger
3120 (s390_function_arg_pass_by_reference): Likewise. Return true for
3121 all vector arguments.
3122 (s390_function_arg_integer): New function.
3123 (s390_function_arg_advance): Call it. Add sanity checks.
3124 (s390_function_arg): Likewise.
3125 * config/s390/s390.h (FUNCTION_VALUE): Call s390_function_value.
3126 (LIBCALL_VALUE): Likewise.
3128 (RETURN_IN_MEMORY): Remove.
3130 2003-11-06 Richard Sandiford <rsandifo@redhat.com>
3132 * config/mips/mips-protos.h (mips_initial_elimination_offset): Change
3133 return type to HOST_WIDE_INT.
3134 * config/mips/mips.c (mips_frame_info): Give sizes type HOST_WIDE_INT.
3135 Make initialized a bool. Make register masks unsigned ints.
3136 (compute_frame_size): Make same mask change here. Use HOST_WIDE_INT
3138 (mips_initial_elimination_offset): Return a HOST_WIDE_INT.
3139 (mips_output_function_prologue): Print sizes as HOST_WIDE_INTs.
3141 2003-11-06 Richard Sandiford <rsandifo@redhat.com>
3143 * config/frv/frv.c (frv_initial_elimination_offset): Remove bogus
3146 2003-11-06 Richard Sandiford <rsandifo@redhat.com>
3148 * config/frv/frv.h (ASM_OUTPUT_ALIGN_WITH_NOP): Define.
3150 2003-11-06 Momchil Velikov <velco@fadata.bg>
3152 * config/mips/mips.c (override_options): Set MASK_SOFT_FLOAT
3155 2003-11-06 Jan Hubicka <jh@suse.cz>
3157 * builtins.c (simplify_builtin_strrchr, simplify_builtin_strpbrk): Add
3160 2003-11-06 Zack Weinberg <zack@codesourcery.com>
3162 * genmodes.c: Change the word "bitsize" to "precision" throughout.
3163 * machmode.def: Likewise.
3164 * machmode.h (GET_MODE_SIZE): Cast value to unsigned short.
3165 (GET_MODE_BITSIZE): Define as GET_MODE_SIZE * BITS_PER_UNIT.
3166 (GET_MODE_PRECISION): New macro.
3167 (mode_bitsize): Renamed mode_precision.
3168 * stor-layout.c (mode_for_size, smallest_mode_for_size):
3169 Use GET_MODE_PRECISION; clarify comments.
3171 2003-11-05 Joseph S. Myers <jsm@polyomino.org.uk>
3173 * doc/install-old.texi: Remove old documentation of building
3175 * doc/install.texi: Move some of it to here.
3177 2003-11-05 Per Bothner <pbothner@apple.com>
3179 PR preprocessor/12891
3180 * c-opts.c (finish_options): Set include_cursor to disable premature
3181 calls to push_command_line_include from cpp_scan_nooutput.
3182 Fixes bug reported by DJ Delorie.
3184 2003-11-05 Geoffrey Keating <geoffk@apple.com>
3186 * config/rs6000/rs6000.c (setup_incoming_varargs): Remove
3187 code supporting old-style varargs.
3189 * config/rs6000/rs6000.c (rs6000_machopic_legitimize_pic_address): Use
3190 an intermediate register for better optimisation.
3192 2003-11-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3194 PR optimization/10080
3195 * cfgloopanal.c (variable_initial_value, variable_initial_values,
3196 simple_loop_exit_p): Record the fact that initial value is extended
3198 (count_strange_loop_iterations, count_loop_iterations): Handle
3199 ivs that iterate in a narrower mode. Fix handling of overflows.
3200 Improve handling of NE conditions.
3201 (inverse, fits_in_mode_p): New static functions.
3202 (simple_increment): Detect variables that iterate in a narrower mode.
3203 * cfgloop.h (struct loop_desc): Fields inner_mode and extend added.
3205 2003-11-05 Geoffrey Keating <geoffk@apple.com>
3207 * config/rs6000/rs6000.c (compute_vrsave_mask): Correct off-by-one
3210 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Darwin
3213 2003-11-05 Joseph S. Myers <jsm@polyomino.org.uk>
3215 * c-typeck.c (pedantic_lvalue_warning): Deprecate use of
3216 conditional expressions as lvalues.
3218 2003-11-05 Kazu Hirata <kazu@cs.umass.edu>
3220 * tsystem.h: Add the prototype of strlen.
3221 * unwind-pe.h (read_encoded_value_with_base): Add an
3222 appropriate cast to handle a case where the pointer size is
3223 smaller than sizeof (int).
3225 2003-11-04 Richard Sandiford <rsandifo@redhat.com>
3227 * config/mips/mips-protos.h (mips_global_pic_constant_p): Delete.
3228 (mips_delegitimize_address): Delete.
3229 (mips_gotoff_global, mips_load_got_page): Declare.
3230 (mips_load_got_global, mips_rewrite_small_data): Declare.
3232 * config/mips/mips.h (FIND_BASE_TERM): Remove definition.
3233 (DANGEROUS_FOR_LA25_P): Use global_got_operand.
3234 (PREDICATE_CODES): Add global_got_operand, local_got_operand and
3235 small_data_pattern. Remove CONST from const_arith_operand's entry.
3237 * config/mips/mips.c (UNSPEC_ADDRESS_P, CONST_GP_P): New macros.
3238 (UNSPEC_ADDRESS, UNSPEC_ADDRESS_TYPE): Likewise.
3239 (mips_constant_type): Delete.
3240 (mips_symbol_type): Add SYMBOL_GOTOFF_PAGE, SYMBOL_GOTOFF_GLOBAL,
3241 SYMBOL_GOTOFF_CALL and SYMBOL_GOTOFF_LOADGP.
3242 (NUM_SYMBOL_TYPES): New macro.
3243 (mips_address_type): Remove ADDRESS_INVALID.
3244 (machine_function): Add has_gp_insn_p.
3245 (mips_constant_info): Delete.
3246 (mips_address_info): Add the address type as an extra field. Replace
3247 the c field with symbol_type.
3248 (mips_split_p, mips_lo_relocs, mips_hi_relocs): New arrays.
3249 (TARGET_DELEGITIMIZE_ADDRESS): Remove definition.
3250 (mips_reloc_offset_ok_p, mips_classify_constant): Delete.
3251 (mips_split_const, mips_symbolic_constant_p): New functions.
3252 (mips_symbolic_address_p): Take the symbol type and mode as arguments.
3253 (mips_classify_address): Return true if the address is valid, storing
3254 its type in INFO. Use mips_symbolic_constant_p. Use mips_lo_relocs[]
3255 to test whether a LO_SUM address is allowed.
3256 (mips_symbol_insns): Return 0 for general mips16 symbols.
3257 Reorder SYMBOL_GOT_GLOBAL case to match mips_symbol_type definition.
3258 Handle the new SYMBOL_GOTOFF_*s.
3259 (mips_address_insns): Update call to mips_classify_address.
3260 (mips_const_insns): Be more fussy about HIGH constants. Remove use
3261 of mips_classify_constant. Be more accurate about CONSTs.
3262 (mips_global_pic_constant_p): Delete.
3263 (const_arith_operand): Only accept CONST_INTs.
3264 (call_insn_operand): Remove call to mips_classify_constant.
3265 Let mips_symbolic_constant_p check for invalid offsets.
3266 (move_operand): Check for general_operands first. Only accept symbolic
3267 constants if they satisfy mips_symbolic_constant_p and cannot be split.
3268 (symbolic_constant): Use mips_symbolic_constant_p.
3269 (global_got_operand, local_got_operand): New predicates.
3270 (stack_operand): Update call to mips_classify_address.
3271 (mips_legitimate_address_p): Likewise.
3272 (mips_reloc, mips_lui_reloc): Delete.
3273 (mips_force_temporary): Only use the given temporary if no_new_pseudos.
3275 (mips_split_symbol, mips_unspec_address): New functions.
3276 (mips_unspec_offset_high): New function.
3277 (mips_load_got): Replace reloc argument with a symbol_type.
3278 Use mips_unspec_address to create the address and put it in a
3279 LO_SUM with the base register.
3280 (mips_load_got16, mips_load_got32): Delete.
3281 (mips_emit_high, mips_legitimize_symbol): Delete.
3282 (mips_gotoff_global): New function.
3283 (mips_load_got_page, mips_load_got_global): New functions.
3284 (mips_legitimize_symbol): Inline handling of LO_SUM splits.
3285 (mips_legitimize_const_move): Likewise. Remove HIGH handling.
3286 Inline code to handle constants plus invalid offsets. Use
3287 mips_split_symbol to legitimize constant pool addresses.
3288 (mips_delegitimize_address): Delete.
3289 (mips_rtx_costs): Give legitimate symbolic constants and CONST_DOUBLEs
3290 a cost of 1 insn. Give the rest a cost of CONSTANT_POOL_ADDRESS.
3291 (mips_subword): Pass memrefs through mips_rewrite_small_data.
3292 (mips_output_move): Remove use of mips_classify_constant.
3293 (mips_expand_call): Use mips_unspec_offset_high to calculate the
3294 high part of the GOT address for calls to global functions.
3295 (override_options): Initialize mips_split_p[], mips_lo_relocs[]
3296 and mips_hi_relocs[].
3297 (print_operand): Use print_operand_reloc to handle '%h' and '%R'.
3298 Remove use of mips_classify_constant.
3299 (mips_reloc_string): Delete.
3300 (print_operand_reloc): New function.
3301 (print_operand_address): Update call to mips_classify_address.
3302 (mips_rewrite_small_data_p, small_data_pattern_1): New functions.
3303 (small_data_pattern): New predicate.
3304 (mips_rewrite_small_data_1, mips_rewrite_small_data): New functions.
3305 (mips_function_has_gp_insn): New function.
3306 (mips_global_pointer): Use it.
3307 (mips_gp_insn): Delete.
3308 (mips_expand_prologue): When compiling for n32/n64 abicalls, use a
3309 single loadgp pattern to initialize $gp. Pass it the offset of _gp
3310 from the start of the current function.
3311 (mips16_gp_pseudo_reg): Revert last patch.
3313 * config/mips/mips.md (RELOC_*): Delete.
3314 (UNSPEC_LOADGP, UNSPEC_FIRST_ADDRESS): New constants.
3315 (got): New insn attribute.
3316 (type): Set to "load" if got == load.
3317 (length): Set to 4 if got == load, 8 if got == xgot_high.
3319 (*xgot_hi[sd]i, *xgot_lo[sd]i): New patterns.
3320 (*got_disp[sd]i, *got_page[sd]i): Likewise.
3321 (*low[sd]i): Change constraints to "d". Add a new define_split to
3322 rewrite small data constants into LO_SUMs.
3323 (loadgp): New insns.
3325 2003-11-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3327 * config/mips/_tilib.c: Use _ABI* in _MIPS_SIM tests.
3329 2003-11-04 DJ Delorie <dj@redhat.com>
3331 * config/v850/v850.md (mulhisi3): Expand the const_int case
3332 separately to avoid trying to sign extend the const.
3334 2003-11-04 Richard Sandiford <rsandifo@redhat.com>
3336 * emit-rtl.c (copy_rtx_if_shared): Don't allow MEMs with constant
3337 addresses to be shared.
3338 (force_const_mem): Return a copy of the pool entry.
3340 2003-11-03 Andreas Jaeger <aj@suse.de>
3342 * Makefile.in (GCC_CFLAGS): Remove @WERROR@ again.
3344 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
3346 * Makefile.in (cpp.dvi): New target split from cpp.info.
3347 (gcc.dvi): New target split from gcc.info.
3348 (gccint.dvi): New target split from gccint.info.
3349 (cppinternals.dvi): New target split from cppinternals.info
3350 (gccinstall.info): New specific rule.
3351 (gccinstall.dvi): Likewise.
3352 (dvi): Move targets to $(docobjdir).
3353 ($(docobjdir)/%.dvi): New implicit rule.
3355 2003-11-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3357 * doc/gty.texi (tag, desc): Say more about role of desc values in
3358 selecting between tags.
3360 2003-11-03 Alexander Kabaev <ak03@gte.com>
3362 * real.c (encode_ieee_single): Ensure proper promotion.
3364 2003-11-03 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
3366 * doc/contrib.texi: Add Giovanni Bajo, Dara Hazeghi, Falk Hueffner,
3369 2003-11-03 Syd Polk <spolk@apple.com>
3371 * config/rs6000/rs6000.c (rs6000_override_options): Add G3, G4, and G5
3372 marketing names to the list of supported processors.
3373 * config/rs6000/rs6000.h: Ditto.
3374 * doc/invoke.texi: Ditto.
3375 * config.gcc: Ditto.
3377 2003-11-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3379 * fixinc/inclhack.def (stdio_va_list): Allow tab before va_list.
3380 Merge two substitutions.
3381 * fixinc/fixincl.x: Regenerate.
3382 Fixes PR bootstrap/12666.
3384 2003-11-03 Joseph S. Myers <jsm@polyomino.org.uk>
3386 * doc/install-old.texi: Remove VMS documentation.
3388 2003-11-03 Jan Hubicka <jh@suse.cz>
3390 * i386.c (override_options): Remove hack enabling 128bit long double
3391 commited by accident.
3393 2003-11-02 Per Bothner <per@bothner.com>
3395 * c-opts.c (needValue): Do cpp_find_main_file before processing
3396 any imacros flags, so pfile->main_file is set for the latter.
3398 2003-11-03 Andreas Jaeger <aj@suse.de>
3399 Zack Weinberg <zack@codesourcery.com>
3401 * Makefile.in (GCC_CFLAGS): Allow blacklisting of warnings.
3402 (SYSCALLS.c.X-warn): Suppress warnings.
3404 2003-11-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3406 PR optimization/12845
3407 * pa.c (output_cbranch): Use cmpb for DImode comparisons with 0.
3409 2003-11-02 Zack Weinberg <zack@codesourcery.com>
3411 * print-rtl.c (print_rtx): Call PRINT_REG with second argument -1.
3412 * config/i386/i386.c (print_reg): Abort on a virtual register
3413 if code != -1; not if file == asm_out_file.
3414 * config/i386/i386.h (PRINT_REG): Document meaning of CODE == -1.
3415 (DEBUG_PRINT_REG): Delete, unused.
3417 2003-11-02 Andreas Schwab <schwab@suse.de>
3419 * config/ia64/fde-glibc.c (_GNU_SOURCE): Define to 1 instead of
3420 empty to avoid conflict with the definition from configure.
3422 2003-11-02 Roger Sayle <roger@eyesopen.com>
3424 PR optimization/10817
3425 * ifcvt.c (noce_emit_move_insn): Improve documentation comment.
3426 (noce_try_move): New function to optimize an if-the-else into an
3427 unconditional move, i.e. "if (a!=b) x=a; else x=b" into "x=a".
3428 (noce_process_if_block): Attempt simplification with noce_try_move.
3430 * simplify-rtx.c (simplify_ternary_operation): Some minor fixes
3431 and improvements to the optimizations of IF_THEN_ELSE expressions.
3432 (simplify_subreg): Silence signed/unsigned comparison warning.
3434 2003-11-02 Richard Sandiford <rsandifo@redhat.com>
3436 * Makefile.in (targhooks.o, reload.o): Update dependencies.
3437 (GTFILES): Add targhooks.c.
3438 (gt-targhooks.h): New rule; depend on s-gtype.
3439 * target.h (direct_pool_load_p): New hook.
3440 * target-def.h (TARGET_DIRECT_POOL_LOAD_P): New macro.
3441 (TARGET_INITIALIZER): Include it.
3442 * targhooks.h (default_direct_pool_load_p): Declare.
3443 (hook_bool_machine_mode_true): Declare.
3444 * targhooks.c: Include insn-config.h, recog.h, ggc.h and
3446 (pool_symbol): New variable.
3447 (default_direct_pool_load_p): New function.
3448 (hook_bool_machine_mode_true): New function.
3449 * reload.c: Include target.h.
3450 (find_reloads): If an alternative will force a constant into memory,
3451 count an extra reload if constant pool symbols are not valid
3452 addresses. If an alternative uses memory to move values between
3453 registers, count the move as two reloads rather than one.
3454 * config/s390/s390.c (TARGET_DIRECT_POOL_LOAD_P): Define.
3455 * doc/tm.texi (TARGET_DIRECT_POOL_LOAD_P): Document.
3457 2003-11-02 Eric Botcazou <ebotcazou@libertysurf.fr>
3459 PR optimization/12799
3460 * postreload.c (reload_cse_move2add): Generate the add2
3463 2003-11-02 Eric Botcazou <ebotcazou@libertysurf.fr>
3465 * config/sparc/sparc.c (function_arg_partial_nregs) [TARGET_ARCH64]:
3466 Return 0 for all complex modes whose size is lesser or equal to
3467 a word. Add a ??? comment for the condition used with 16-byte
3470 2003-11-01 Kelley Cook <kcook@gcc.gnu.org>
3472 * .cvsignore: Remove c-parse* and tradcif.c.
3473 * objc/.cvsignore: Delete.
3475 2003-11-01 Roger Sayle <roger@eyesopen.com>
3477 * unwind-sjlj.c (_Unwind_GetCFA): Return (_Unwind_Word)0 instead
3480 2003-11-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3482 * som.h (DO_GLOBAL_DTORS_BODY): Change to C90 declaration.
3484 * libgcc2.c (SYMBOL__MAIN): Provide C90 declaration.
3486 * collect2.c (scan_libraries): Fix typos.
3488 PR preprocessor/12847
3489 * cppfiles.c, cppexp.c, cpperror.c, cpplib.h, cpplib.c, cpplex.c,
3490 cppinit.c, cpptrad.c, cppmacro.c, fix-header.c, cpppch.c, c-pch.c,
3491 c-incpath.c, cppcharset.c (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN,
3492 DL_ERROR, DL_ICE, DL_EXTRACT, DL_WARNING_P): Prefix macro names with
3495 2003-11-01 Fariborz Jahanian <fjahanian@apple.com>
3497 * config/rs6000/rs6000.c (rs6000_mixed_function_arg): Correct
3498 no_units calculation.
3500 2003-11-01 Andreas Jaeger <aj@suse.de>
3502 * unwind-dw2.c (_Unwind_FrameState): Remove commas at end of
3505 2003-11-01 Andreas Schwab <schwab@suse.de>
3507 * config/ia64/sysv4.h (SDATA_SECTION_FUNCTION): Update to C90
3509 (SBSS_SECTION_FUNCTION): Likewise.
3511 2003-11-01 Andreas Jaeger <aj@suse.de>
3513 * Makefile.in (GCC_CFLAGS): Add @WERROR@ for target files.
3515 2003-11-01 Andreas Tobler <a.tobler@schweiz.ch>
3517 * config/rs6000/sysv4.h (EXTRA_SECTION_FUNCTIONS): Update to C90
3520 2003-11-01 Andreas Jaeger <aj@suse.de>
3522 * unwind-dw2.c (_Unwind_FindEnclosingFunction): Constify variable.
3523 (uw_frame_state_for): Constify variables.
3524 (extract_cie_info): Constify first argument.
3526 * unwind-dw2-fde-darwin.c: Adjust prototype of
3527 _Unwind_Find_registered_FDE for recent changes.
3528 (examine_objects): Constify return value and local variable result.
3529 (_Unwind_Find_FDE): Constify return value and local variable ret.
3531 2003-10-31 Per Bothner <pbothner@apple.com>
3533 * c-opts.c (finish_options): Change to returns boolean - false iff
3534 the call to cpp_find_main_file fails.
3535 (c_common_init): Skip preprocess_file if finish_options failed.
3536 (c_common_parse_file): Break if finish_options failed.
3537 Fixes PR preprocessor/12545.
3539 2003-10-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3541 * aclocal.m4: Blacklist ultrix* for mmap file.
3542 * configure: Rebuilt.
3544 * function.c (assign_parms): Add ATTRIBUTE_UNUSED to variable
3545 reg_parm_stack_space.
3546 * toplev.c (default_get_pch_validity): Fix warning.
3548 * vax.c: Include toplev.h.
3549 (vax_init_libfuncs): Fix typo (umod).
3550 * vax.h (ASM_COMMENT_START): Define.
3551 (PRINT_OPERAND): Fix warning when HOST_WIDE_INT is a long long.
3553 2003-10-31 Roger Sayle <roger@eyesopen.com>
3556 * expr.c (expand_expr <MULT_EXPR>): Remove inappropriate and
3557 confusing comment; distributivity isn't handled in expand_expr.
3558 * fold-const.c (extract_muldiv_1 <PLUS_EXPR>): Allow overflow
3559 in distributivity, if wrap-around semantics are specified with
3562 2003-11-01 Alan Modra <amodra@bigpond.net.au>
3565 * final.c (profile_function): Allow for NULL svrtx.
3567 2003-10-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3569 * pa.c (pa_select_section): Use new style declaration.
3570 * som.h (readonly_data): Likewise.
3572 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
3574 * config/rs6000/rs6000.c: Update to C90 prototypes.
3576 2003-10-31 Richard Earnshaw <rearnsha@arm.com>
3579 * arm.h (CONDITIONAL_REGISTER_USAGE): Disable use of LR in Thumb
3582 2003-10-31 Andreas Jaeger <aj@suse.de>,
3583 Zack Weinberg <zack@codesourcery.com>
3586 * crtstuff.c (__register_frame_info, __register_frame_info_bases)
3587 (__deregister_frame_info, __deregister_frame_info_bases):
3588 Constify void * argument.
3589 * unwind-dw2-fde.h (struct fde_vector):
3590 Constify 'orig_data' and 'array' fields.
3591 (__register_frame_info, __register_frame_info_bases)
3592 (__deregister_frame_info, __deregister_frame_info_bases):
3593 Constify void * argument.
3594 (get_cie, next_fde, _Unwind_Find_FDE): Constify arguments,
3595 return values, and casts of type fde *, struct dwarf_fde *,
3596 and struct dwarf_cie *.
3597 * unwind-dw2-fde.c (__register_frame_info, __register_frame_info_bases)
3598 (__deregister_frame_info, __deregister_frame_info_bases):
3599 Constify void * argument.
3600 (get_cie_encoding, ): Constify struct dwarf_cie * argument.
3601 (get_fde_encoding, fde_unencoded_compare, fde_single_encoding_compare)
3602 (fde_mixed_encoding_compare, fde_compare_t, start_fde_sort, fde_insert)
3603 fde_split, SWAP, frame_downheap, frame_heapsort)
3604 (classify_object_over_fdes, add_fdes, linear_search_fdes,
3605 binary_search_unencoded_fdes, binary_search_single_encoding_fdes,
3606 binary_search_mixed_encoding_fdes, search_object, _Unwind_Find_FDE):
3607 Constify arguments, local variables, return values, and casts
3608 of type fde *, fde **, struct dwarf_fde *, and struct dwarf_cie *.
3609 Use const pointer types in sizeof expressions, for clarity.
3610 * unwind-dw2-fde-glibc.c
3611 (_Unwind_find_registered_FDE, _Unwind_find_FDE): Constify return value.
3612 (struct unw_eh_callback_data): Constify 'ret' field.
3614 2003-10-31 Fariborz Jahanian <fjahanian@apple.com>
3615 David Edelsohn <edelsohn@gnu.org>
3617 * config/rs6000/rs6000.c (rs6000_mixed_function_arg): New.
3618 (function_arg): Call it.
3619 (rs6000_function_value): Widen integral return value to mode based
3620 on TARGET_32BIT, not word_mode.
3621 * config/rs6000/rs6000.h (PROMOTE_MODE): Likewise.
3622 (UNITS_PER_ARG): New.
3623 (RS6000_ARG_SIZE): Use it.
3625 2003-10-31 Gerald Pfeifer <gerald@pfeifer.com>
3627 * .cvsignore: No longer ignore gengtype-lex.c, gengtype-yacc.c,
3628 and gengtype-yacc.h.
3630 2003-10-31 Richard Earnshaw <rearnsha@arm.com>
3632 PR optimization/8896
3633 * postreload.c (reload_combine): Check that REGY doesn't die in an
3634 insn of the form (set (regx) (plus (regx) (regy))), ie REGX != REGY.
3636 2003-10-31 Josef Zlomek <zlomekj@suse.cz>
3639 * cfgrtl.c (delete_insn): Decrease LABEL_NUSES for all REG_LABEL notes.
3641 2003-10-31 Josef Zlomek <zlomekj@suse.cz>
3644 * cfgrtl.c (try_redirect_by_replacing_jump): Move jump
3645 immediatelly before BARRIER.
3647 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
3649 * Makefile.in (STRICT2_WARN): Add -Wold-style-definition.
3651 2003-10-31 Richard Earnshaw <rearnsha@arm.com>
3654 * reload.c (find_reloads_address): Handle any register in
3655 (PLUS (PLUS (REG) (REG)) (CONST_INT).
3657 2003-10-31 Richard Earnshaw <rearnsha@arm.com>
3659 * ggc-page.c (ggc_pch_read): Wrap call to poison_pages in
3660 ENABLE_GC_CHECKING not in GGC_POISON.
3662 2003-10-31 Nathanael Nerode <neroden@gcc.gnu.org>
3665 * configure.in: Bail out if awk is missing.
3666 * configure: Regenerate.
3669 * Makefile.in: Move default definitions of X_ADA_CFLAGS,
3670 T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from ada/Make-lang.in to here.
3672 2003-10-30 Richard Henderson <rth@redhat.com>
3674 * c-objc-common.c (c_tree_printer): Handle types correctly.
3677 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
3679 * value-prof.c, web.c: Update to C90.
3681 2003-10-30 Eric Christopher <echristo@redhat.com>
3683 * function.c (purge_addressof_1): Add case for REG_RETVAL
3684 notes when modes are unequal.
3686 2003-10-31 Jan Hubicka <jh@suse.cz>
3688 * i386-modes.def: Add XFmode format adjustment.
3690 2003-10-30 Jan Hubicka <jh@suse.cz>
3692 * real.c (encode_ieee_extended): Back out previous patch.
3694 2003-10-30 Jan Hubicka <jh@suse.cz>
3696 * real.c (encode_ieee_extended): Initialize whole array.
3697 * reg-stack.c (move_for_stack_reg0: Use always XFmode.
3698 * i386-modes.def: Change definitions of TFmode and XFmode.
3699 * i386.c (classify_argument): Rename TFmodes to XFmodes; add new TFmode
3701 (construct_container): Allow constructing of TFmode integer containers.
3702 (ix86_return_in_memory): XFmode is not returned in memory.
3703 (init_ext_80387_constants): Always use XFmode.
3704 (print_operand): Likewise.
3705 (ix86_prepare_fp_compare_regs): Likewise.
3706 (split_to_parts): Deal with TFmode.
3707 (split_long_move): Simplify.
3708 (ix86_init_mmx_sse_builtins): Add __float80, __float128.
3709 (ix86_memory_move_cost): Do not confuse TFmode.
3710 * i386.h (LONG_DOUBLE_TYPE_SIZE): Set to 96.
3711 (IS_STACK_MODE): TFmode is not stack mode.
3712 (HARD_REGNO_NREGS, CLASS_MAX_NREGS): Deal nicely with XFmode.
3713 (VALID_SSE_REG_MODE): Allow TFmode.
3714 (VALID_FP_MODE_P): Disallow TFmode.
3715 (VALID_INT_MODE_P): Allow TFmode in 64bit mode.
3716 * i386.md (TFmode patterns): Kill.
3717 (movtf, motf_rex64): New patterns.
3719 2003-10-30 Richard Sandiford <rsandifo@redhat.com>
3721 * config/mips/mips.md (adddi3): Fix typo in mips16 stack pointer code.
3723 2003-10-30 Richard Sandiford <rsandifo@redhat.com>
3725 * config/mips/mips.md (mov_lwl): Use memory_operand where appropriate.
3726 (mov_lwr, mov_swl, mov_swr): Likewise.
3727 (mov_ldl, mov_ldr, mov_sdl, mov_sdr): Likewise.
3729 2003-10-30 Richard Sandiford <rsandifo@redhat.com>
3731 * config/mips/mips.c (mips_global_pointer): Don't try to use $25.
3733 2003-10-30 Richard Henderson <rth@redhat.com>
3735 * config/mips/mips.c (mips_build_builtin_va_list): Use runtime
3736 test for irix6 rather than preprocessor test.
3738 2003-10-30 Richard Henderson <rth@redhat.com>
3740 * cppcharset.c (one_utf8_to_utf16): Initialize 's' to silence warning.
3742 2003-10-30 Ulrich Weigand <uweigand@de.ibm.com>
3744 * config/s390/s390.c (struct machine_function): Use save_return_addr_p
3745 as a general flag that the return address register needs to be saved,
3746 not necessarily because of __builtin_return_addr (0).
3747 (s390_split_branches): Remove TEMP_REG and TEMP_USED arguments,
3748 remove special handling of zSeries machines.
3749 (s390_optimize_prolog): Remove TEMP_USED argument, treat the return
3750 register as a regular register on zSeries machines.
3751 (s390_reorg): Adjust calls to s390_split_branches and
3752 s390_optimize_prolog.
3753 (s390_frame_info): On zSeries machines, do not assume the return
3754 register is always used. Update regs_ever_live with current data
3755 for the special registers.
3756 (s390_emit_epilogue): Use save_return_addr_p to determine whether
3757 the return register was saved.
3758 * config/s390/s390.h (CONDITIONAL_REGISTER_USAGE): Do not mark
3759 RETURN_REGNUM fixed on zSeries machines.
3760 (REG_ALLOC_ORDER): Use RETURN_REGNUM last.
3761 * config/s390/s390.md ("*doloop_si"): Handle branch overflow
3762 via ahi-jgne pair on zSeries machines.
3763 ("*doloop_di"): Likewise.
3764 ("*doloop_di_long"): Remove.
3766 2003-10-30 Richard Earnshaw <rearnsha@arm.com>
3768 * arm.c (arm_override_options): Revert change of arm_constant_limit
3769 when optimizing for size.
3771 2003-10-29 Richard Henderson <rth@redhat.com>
3773 * fold-const.c (fold_single_bit_test): Convert the input to the
3774 operational intermediate type.
3776 2003-10-29 Richard Henderson <rth@redhat.com>
3778 * builtins.c (std_build_builtin_va_list): New.
3779 * expr.h (std_build_builtin_va_list): Declare.
3780 * defaults.h (BUILD_VA_LIST_TYPE): New.
3781 * system.h (BUILD_VA_LIST_TYPE): Poison.
3782 * target-def.h (TARGET_BUILD_BUILTIN_VA_LIST): New.
3783 * target.h (struct gcc_target): Add build_builtin_va_list.
3784 * tree.c (build_common_tree_nodes_2): Use it.
3786 * config/alpha/alpha-protos.h, config/alpha/alpha.c,
3787 config/alpha/alpha.h, config/alpha/unicosmk.h,
3788 config/d30v/d30v-protos.h, config/d30v/d30v.c, config/d30v/d30v.h,
3789 config/i386/i386-protos.h, config/i386/i386.c, config/i386/i386.h,
3790 config/i860/i860-protos.h, config/i860/i860.c, config/i860/i860.h,
3791 config/i960/i960-protos.h, config/i960/i960.c, config/i960/i960.h,
3792 config/mips/iris6.h, config/mips/mips-protos.h, config/mips/mips.c,
3793 config/mips/mips.h, config/rs6000/rs6000-protos.h,
3794 config/rs6000/rs6000.c, config/rs6000/rs6000.h,
3795 config/s390/s390-protos.h, config/s390/s390.c, config/s390/s390.h,
3796 config/sh/sh-protos.h, config/sh/sh.c, config/sh/sh.h,
3797 config/xtensa/xtensa-protos.h, config/xtensa/xtensa.c,
3798 config/xtensa/xtensa.h: Rename foo_build_va_list to
3799 foo_build_builtin_va_list; make it static. Define
3800 TARGET_BUILD_BUILTIN_VA_LIST. Remove BUILD_VA_LIST_TYPE.
3803 * config/i386/i386.c (ix86_expand_carry_flag_compare): Make static.
3804 * config/iq2000/iq2000.h (BUILD_VA_LIST_TYPE): Remove.
3806 2003-10-29 James E Wilson <wilson@specifixinc.com>
3808 * recog.c (asm_operand_ok): Add missing break after case 'X'.
3809 Change if statements to else if statements in default case.
3810 (extract_constrain_insn_cached): Fix misspelling of constrain_operands
3812 (constrain_operands_cached): Likewise.
3813 (constrain_operands): Change if statements to else if statements in
3815 * reload.c (find_reloads): Likewise.
3817 2003-10-29 Richard Henderson <rth@redhat.com>
3819 * config/m68k/m68k.c (notice_update_cc): Clear cc status for
3822 2003-10-30 Alan Modra <amodra@bigpond.net.au>
3824 * config/rs6000/rs6000.md: Remove duplicate pattern.
3826 2003-10-29 Hans-Peter Nilsson <hp@axis.com>
3828 * real.c (do_divide): Initialize result with a 0.
3830 * configure.in <enable-checking for valgrind>: Look for
3831 <valgrind/memcheck.h> first. AC_DEFINE HAVE_VALGRIND_MEMCHECK_H
3833 * configure, config.in: Regenerate.
3834 * ggc-common.c [ENABLE_VALGRIND_CHECKING &&
3835 HAVE_VALGRIND_MEMCHECK_H]: Include <valgrind/memcheck.h>. Use
3836 #elif for other alternatives.
3837 * ggc-page.c: Ditto.
3838 * ggc-zone.c: Don't assume <valgrind/memcheck.h>; instead copy
3839 include structure from ggc-common.c.
3841 2003-10-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3843 * pa-linux.h (ASM_OUTPUT_ADDR_VEC_ELT): Use label in big switch ELTs.
3844 (ASM_OUTPUT_ADDR_DIFF_ELT): Use label difference in big switch ELTs.
3845 * pa.c (pa_adjust_insn_length): Check for btable branches using
3846 attribute TYPE_BTABLE_BRANCH.
3847 (pa_reorg): Simplify.
3848 * pa.h (CASE_VECTOR_MODE): Change big switch mode to SImode.
3849 (ASM_OUTPUT_ADDR_VEC_ELT): As above.
3850 (ASM_OUTPUT_ADDR_DIFF_ELT): As above.
3851 * pa.md (btable_branch): New instruction type.
3852 (in_branch_delay, in_nullified_branch_delay, in_call_delay): Disallow
3854 (define_delay): Add btable branches to insn types that may have an
3855 insn in the delay position.
3856 (Z2, Z3): Add btable branch to list.
3857 Simplify unamed pattern set copy pic_label_operand to register. Add
3859 (short_jump): New jump for use in branch tables.
3860 (casesi, casesi0): Revise for new branch table formats.
3861 (casesi32, casesi32p, casesi64p): New casesi patterns.
3862 (indirect_jump): Move.
3864 2003-10-29 David Edelsohn <edelsohn@gnu.org>
3866 * config/rs6000/rs6000.h (UNITS_PER_WORD): Revert to
3868 (UNITS_PER_GPR_WORD): Delete.
3869 (HARD_REGNO_NREGS): Revert to UNITS_PER_WORD.
3870 (HARD_REGNO_MODE_OK): Same.
3871 (CLASS_MAX_NREGS): Same.
3873 2003-10-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3875 * pa.h (ASM_COMMENT_START): Define.
3877 2003-10-29 Zack Weinberg <zack@codesourcery.com>
3879 * genmodes.c (complete_mode): Record MODE_CC, MODE_INT,
3880 MODE_FLOAT, and MODE_PARTIAL_INT modes as having one
3881 component, not zero.
3883 2003-10-29 Andreas Schwab <schwab@suse.de>
3885 * config/ia64/t-ia64 (LIB2ADDEH): Add $(srcdir)/gthr-gnat.c.
3887 2003-10-29 Eric Botcazou <ebotcazou@libertysurf.fr>
3889 * config/sparc/sparc.c (function_arg_partial_nregs) [TARGET_ARCH64]:
3890 Never return 1 for complex integral modes whose size is lesser or
3892 (function_arg_pass_by_reference) [TARGET_ARCH64]: Mention CTImode
3894 (function_arg_advance) [TARGET_ARCH64]: Don't special-case complex
3896 (sparc_va_arg) [TARGET_ARCH64]: Handle any types whose size is
3897 greater than 16 bytes by reference.
3899 2003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3901 * config/ia64/ia64.c (ia64_assemble_integer): Test POINTER_SIZE,
3903 (ia64_initialize_trampoline): Use globalize_label target call.
3905 2003-10-29 Andreas Schwab <schwab@suse.de>
3907 * doc/install.texi (Building): Add a sentence about building Ada
3908 for a canadian cross.
3910 2003-10-28 Zack Weinberg <zack@codesourcery.com>
3912 * config/ia64/ia64.c (cmptf_libfunc): New static.
3913 (ia64_expand_compare): Add logic to open-code calls to
3914 _U_Qfcmp for TFmode comparisons.
3915 (ia64_hpux_init_libfuncs): Initialize cmptf_libfunc.
3916 Set libfuncs for TFmode eq/ne/gt/ge/lt/gt to 0; these should
3917 never be generated anymore.
3918 * config/ia64/ia64.md (cmptf): New expander.
3920 2003-10-28 Zack Weinberg <zack@codesourcery.com>
3922 * ia64.md (UNSPEC_SETF_EXP,UNSPEC_FR_SQRT_RECIP_APPROX): New constants.
3923 (*sqrt_approx): New instruction pattern for approximate square roots.
3924 (*setf_exp_xf): New instruction pattern for exponentiation.
3925 (*maddxf4_alts_truncsf): New instruction pattern for truncation.
3926 (sqrtsf2_internal_thr): New define_and_split implementing
3927 throughput-optimized inline calculation of SFmode square root.
3928 (sqrtdf2_internal_thr): Likewise for DFmode.
3929 (sqrtxf2_internal_thr): Likewise for XFmode.
3930 (sqrtsf2, sqrtdf2, sqrtxf2): New expanders to choose between
3931 latency- and throughput-optimized square root algorithms.
3932 * ia64.h (MASK_INLINE_SQRT_LAT, MASK_INLINE_SQRT_THR,
3933 TARGET_INLINE_SQRT_LAT, TARGET_INLINE_SQRT_THR, TARGET_INLINE_SQRT):
3935 (TARGET_SWITCHES): Add -minline-sqrt-min-latency and
3936 -minline-sqrt-max-throughput.
3937 * ia64.c (ia64_override_options): If both -minline-sqrt-min-latency
3938 and -minline-sqrt-max-throughput are given, notify the user
3939 that both options cannot be used simultaneously.
3940 If -minline-sqrt-min-latency is given, notify the user that
3941 this mode is not yet implemented.
3942 (rtx_needs_barrier): Reformat initial comment to obey
3943 72-character width limit. Support UNSPEC_SETF_EXP and
3944 UNSPEC_FR_SQRT_RECIP_APPROX.
3946 2003-10-29 Alan Modra <amodra@bigpond.net.au>
3948 * config/rs6000/rs6000.md (movdf_softfloat64): Allow dummy ctr,ctr
3951 2003-10-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3955 * config/rs6000/sysv4.h (PREFERRED_STACK_BOUNDARY): New macro.
3957 2003-10-28 Richard Earnshaw <rearnsha@arm.com>
3959 * arm.c (arm_output_epilogue): When using a frame pointer, don't emit
3960 an extra stack adjustment insn if the stack pointer is already
3961 pointing at the right place.
3962 (use_return_insn): Allow a return insn to be used when we have a
3963 frame pointer if the stack pointer is in the right place.
3964 (output_return_instruction): Handle it.
3966 2003-10-28 Andreas Jaeger <aj@suse.de>
3968 * ggc-zone.c (check_cookies): Add missing variable.
3969 Add void to prototypes.
3971 2003-10-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3973 * config/mips/irix6-libc-compat.c (inet_makeaddr): Prototype.
3974 * crtstuff.c (__do_global_ctors_1): Move prototype.
3975 * unwind-dw2.c (NO_SIZE_OF_ENCODED_VALUE): Define when
3977 * unwind-sjlj.c (_Unwind_GetCFA, _Unwind_FindEnclosingFunction):
3978 Mark parameter with __attribute__((unused)).
3980 2003-10-27 Zack Weinberg <zack@codesourcery.com>
3982 * c-decl.c (pushdecl): Clarify comment.
3984 2003-10-27 Arnaud Charlet <charlet@act-europe.fr>
3986 * doc/install.texi: Update instructions for Ada cross builds
3989 * doc/sourcebuild.texi: Document Ada test suite.
3991 2003-10-27 Stephane Carrez <stcarrez@nerim.fr>
3993 * config/m68hc11/m68hc11.c: Convert to ISO C90.
3994 * config/m68hc11/m68hc11-protos.h: Likewise.
3996 2003-10-27 Jan Hubicka <jh@suse.cz>
3997 Eric Botcazou <ebotcazou@libertysurf.fr>
3999 * toplev.c (enum dump_file_index, dump_file): Fix ordering of
4002 2003-10-27 Jakub Jelinek <jakub@redhat.com>
4003 Jan Hubicka <jh@suse.cz>
4005 * reload1.c (struct elim_table): Change offset, initial_offset and
4006 previous_offset fields to HOST_WIDE_INT.
4007 (offsets_at): Change from int to HOST_WIDE_INT.
4008 (reload): Adjust offsets_at initialization.
4009 (eliminate_regs_in_insn): Change type of offset to HOST_WIDE_INT.
4010 (verify_initial_elim_offsets): Change type of t to HOST_WIDE_INT.
4011 * config/i386/i386.c (ix86_compute_frame_layout): Change offset type
4012 to HOST_WIDE_INT. Don't save regs using mov for huge frame sizes
4014 (pro_epilogue_adjust_stack): New function.
4015 (ix86_expand_prologue, ix86_expand_epilogue): Use it.
4016 * config/i386/i386.md (pro_epilogue_adjust_stack): Remove.
4017 (pro_epilogue_adjust_stack_1): Remove * in front of name.
4018 (pro_epilogue_adjust_stack_rex64): Handle -2147483648 properly.
4019 (pro_epilogue_adjust_stack_rex64_2): New insn.
4021 * config/i386/i386.c (ix86_expand_epilogue): Fix comment typo.
4023 * config/i386/i386.c (ix86_expand_call): Replace 40 with
4024 FIRST_REX_INT_REG + 3 /* R11 */.
4026 2003-10-26 Richard Henderson <rth@redhat.com>
4028 * config/alpha/alpha.md (attr cannot_copy): New.
4029 (call_osf_2_er, call_value_osf_2_er, ldgp_er_1, ldgp_er_2,
4030 prologue_ldgp_er_2, prologue_ldgp_1): Set it.
4031 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Test it.
4033 2003-10-26 Daniel Berlin <dberlin@dberlin.org>
4035 * ggc-zone.c: New file, zone allocating collector.
4036 * configure: Accept zone option for --with-gc
4037 * configure.in: Ditto.
4038 * ggc.h (ggc_pch_count_object): Pass bool indicating
4039 stringiness. Update all callers.
4040 (ggc_pch_alloc_object): Ditto.
4041 (ggc_pch_write_object): Ditto.
4042 (ggc_alloc_rtx): Use typed allocation, since all RTX's are of a single
4044 (ggc_alloc_rtvec): Ditto.
4045 (ggc_alloc_tree): Use zone allocation, since some things using this macro
4046 aren't a single typecode.
4047 * ggc-none.c (ggc_alloc_typed): New function.
4048 (ggc_alloc_zone): Ditto.
4049 * ggc-page.c: Ditto on both functions.
4051 2003-10-26 Gunther Nikl <gni@gecko.de>
4053 * config/m68k/m68k.c (m68k_compute_frame_layout): Ensure FPU related
4054 frame information is always valid.
4055 (m68k_output_function_prologue): Remove superfluous TARGET_68881
4056 test; fix formatting.
4058 2003-10-26 Gunther Nikl <gni@gecko.de>
4060 * config/m68k/m68k.c (m68k_compute_frame_layout): Swap reg_mask and
4061 reg_rev_mask computation.
4062 (m68k_output_function_prologue): Fix usage of current_frame (one typo
4063 and one missing); use reg_rev_mask not reg_mask.
4064 (m68k_output_function_epilogue): Fix usage of current_frame;
4065 use fpu_rev_mask not fpu_mask.
4067 2003-10-26 Bernardo Innocenti <bernie@develer.com>
4069 * config/m68k/m68k.c (m68k_output_function_prologue): Eliminate
4070 num_saved_regs, use current_frame.reg_no instead.
4072 2003-10-26 Bernardo Innocenti <bernie@develer.com>
4073 Paul Dale <pauli@snapgear.com>
4075 * doc/extend.texi (interrupt_handler): Add m68k to the
4076 list of processors implementing it.
4077 * doc/invoke.texi (-msep-data): Document new m68k option.
4078 (-mno-sep-data): Likewise.
4079 (-mid-shared-library): Likewise.
4080 (-mno-id-shared-library): Likewise.
4081 (-mshared-library-id): Likewise.
4083 2003-10-26 Andreas Jaeger <aj@suse.de>
4085 * unwind-dw2.c (_Unwind_GetGR): Avoid warning about unsigned
4087 (_Unwind_SetGR): Likewise.
4089 2003-10-26 Ottavio Campana <ottavio@campana.vi.it>
4092 * config/i386/mmintrin.h (_mm_set1_pi8): Fix comment.
4094 2003-10-26 Gunther Nikl <gni@gecko.de>
4096 * config/m68k/m68k.c (m68k_output_function_prologue): Move front
4097 comment from here to...
4098 (m68k_save_reg): ...here. Fix comment formatting.
4099 (m68k_output_function_prologue): Fix comment formatting.
4100 (m68k_output_function_epilogue): Likewise.
4101 (const_method): Likewise.
4103 2003-10-26 Kazu Hirata <kazu@cs.umass.edu>
4105 * toplev.c (default_get_pch_validity): Guard the use of
4106 target_options with #ifdef TARGET_OPTIONS.
4107 (default_pch_valid_p): Likewise.
4109 2003-10-26 Andreas Jaeger <aj@suse.de>
4110 Zack Weinberg <zack@codesourcery.com>
4111 Andreas Tobler <toa@pop.agri.ch>
4113 * dwarf2out.c (output_cfi): Use HOST_WIDE_INT_PRINT.
4114 (output_die): Likewise.
4115 (print_die): Likewise.
4117 2003-10-26 Andreas Jaeger <aj@suse.de>
4119 * tree.h (dwarf2out_def_cfa, dwarf2out_args_size,
4120 dwarf2out_reg_save, new_loc_descr): Update prototypes for recent
4123 * toplev.c (default_pch_valid_p): Fix warning.
4125 2003-10-25 Roger Sayle <roger@eyesopen.com>
4127 * simplify-rtx.c (simplify_replace_rtx): Avoid allocating duplicate
4128 RTL nodes. If an operator's operands are unchanged, return the
4129 original argument unchanged.
4131 2003-10-26 Graham Stott <graham.stott@btinternet.com>
4133 Fix bootstrap failure.
4134 * expmed.c (store_bit_field): Don't compare bitsize against
4135 modes with zero bit-size.
4137 (extract_bit_field): Likewise
4139 2003-10-25 Jan Hubicka <jh@suse.cz>
4141 * dwarf2out.c (dw_cfi_oprnd_struct): Offset is HOST_WIDE_INT.
4142 (cfa_loc): Likewise.
4143 (reg_save, stack_adjust_offset, queue_reg_save): Replace long by
4145 (args_size, old_args_size): change type to HOST_WIDE_INT.
4146 (dwarf2out_def_cfa, dwarf2out_args_size,
4147 dwarf2out_reg_save, new_loc_descr): offset is HOST_WIDE_INT.
4148 (dw_val_struct): integers, unsigneds and offsets are HOST_WIDE_INT.
4149 (add_AT_int, add_AT_unsigned, att_AT_offset, AT_int, AT_unsigned,
4150 AT_offset): Use HOST_WIDE_INT.
4151 (based_loc_descr): offset is HOST_WIDE_INT.
4152 (add_data_member): Likewise.
4153 (add_const_value_attribute): Simplify.
4155 2003-10-25 Richard Henderson <rth@redhat.com>
4157 * config/i386/i386.c (ix86_eax_live_at_start_p): New.
4158 (ix86_expand_prologue): Save and restore eax around stack probe
4161 2003-10-25 Jan Hubicka <jh@suse.cz>
4163 * cppcharset.c (one_utf8_to_utf32): Initialize 's' to silence warning.
4165 2003-10-25 Eric Botcazou <ebotcazou@libertysurf.fr>
4168 * reg-stack.c (convert_regs_1): Create an arbitrary input stack
4169 if the block has no predecessors.
4170 (convert_regs_2): Document the problem with successors whose
4171 only predecessor is the block to be processed.
4172 (convert_regs): Don't create the arbitrary input stack here.
4174 2003-10-24 Zack Weinberg <zack@codesourcery.com>
4176 * genmodes.c (struct mode_data): Add contained and next_cont
4178 (complete_mode): Maintain linked list of modes that have a
4180 (emit_mode_unit_size): Delete.
4181 (emit_mode_nunits): New.
4182 (emit_insn_modes_c): Update to match.
4183 (emit_mode_adjustments): Propagate size and alignment
4184 adjustments from component modes to their containers.
4185 * machmode.h (mode_unit_size): Delete.
4187 (GET_MODE_NUNITS): Just return the value in the table.
4188 (GET_MODE_UNIT_SIZE): Compute using GET_MODE_INNER and
4190 * expmed.c (store_bit_field, extract_bit_field): Can use a
4191 plain move instruction if bitsize >= GET_MODE_BITSIZE of
4192 destination/source mode, respectively.
4193 * varasm.c (assemble_real): Write out the full size of the
4194 constant, not just its bitsize.
4195 (output_constant): Honor TYPE_MODE of TREE_REAL_CSTs.
4197 * config/ia64/ia64-modes.def: Define XFmode as well as TFmode.
4198 Use ADJUST_BYTESIZE and ADJUST_ALIGNMENT to set size and
4199 alignment of XF and TF modes in compliance with ia64 ABIs.
4200 Can now hardwire the format of both modes.
4201 * config/ia64/ia64.c: Change TFmode to XFmode wherever appropriate.
4202 (general_tfmode_operand, destination_tfmode_operand)
4203 (tfreg_or_fp01_operand, spill_tfmode_operand): Rename to
4204 general_xfmode_operand, destination_xfmode_operand,
4205 xfreg_or_fp01_operand, spill_xfmode_operand respectively.
4206 (ia64_init_builtins): Make TYPE_PRECISION of fpreg_type
4207 and float80_type be 96 so they get XFmode. Use !TARGET_HPUX,
4208 not INTEL_EXTENDED_IEEE_FORMAT, to decide how to define
4210 * config/ia64/ia64.h: Default TARGET_HPUX to 0.
4211 Change TFmode to XFmode wherever appropriate. Remove all
4212 references to INTEL_EXTENDED_IEEE_FORMAT.
4213 (LONG_DOUBLE_TYPE_SIZE): Varies with TARGET_HPUX.
4214 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define (always 96).
4215 (PREDICATE_CODES): Update to match function renames.
4216 * config/ia64/ia64.md: Change TF to XF throughout; rename all
4217 patterns to match. Remove all references to
4218 INTEL_EXTENDED_IEEE_FORMAT. Update predicate calls to match
4220 * config/ia64/ia64-protos.c: Update all prototypes to match
4222 * config/ia64/hpux.h: Redefine TARGET_HPUX to 1.
4223 Remove all references to INTEL_EXTENDED_IEEE_FORMAT.
4224 * config/ia64/lib1funcs.asm: Add __divxf3 as new name for
4225 __divtf3; keep old name for backward compatibility.
4226 (L__compat): New section providing forwarding stubs for
4227 __fixtfti, __fixunstfti, __floattitf.
4228 * config/ia64/t-ia64: Add __compat to LIB1ASMFUNCS.
4230 2003-10-24 Geoffrey Keating <geoffk@apple.com>
4233 * c-pch.c: Include target.h. Improve comments.
4234 (struct c_pch_validity): Add target_data_length.
4235 (pch_init): Add target's validity data.
4236 (c_common_valid_pch): Check target's validity data.
4237 * target-def.h (TARGET_GET_PCH_VALIDITY): New.
4238 (TARGET_PCH_VALID_P): New.
4239 (TARGET_INITIALIZER): Add new fields.
4240 * target.h: Include tm.h.
4241 (struct gcc_target): Add get_pch_validity, pch_valid_p.
4242 * toplev.h (default_get_pch_validity): New prototype.
4243 (default_pch_valid_p): New prototype.
4244 * toplev.c (default_get_pch_validity): New routine.
4245 (default_pch_valid_p): New routine.
4246 * Makefile.in (TARGET_H): Add TM_H. Replace all users of
4247 target.h with $(TARGET_H).
4248 (c-pch.o): Add TARGET_H.
4249 * doc/tm.texi (PCH Target): New node.
4250 (TARGET_GET_PCH_VALIDITY): Document.
4251 (TARGET_PCH_VALID_P): Document.
4253 2003-10-24 Kelley Cook <kcook@gcc.gnu.org>
4255 * Makefile.in: Define a vpath for %.texi. Remove explicit $(docdir)
4256 and $(docdir)/include from any *.texi dependencies.
4257 ($(docobjdir)/%.dvi): Depend on stmp-docobjdir.
4258 ($(docobjdir)/%.1): Depend on .pod instead of .texi.
4259 ($(docobjdir)/%.7): Likewise.
4260 (%.pod): New implicit rule.
4261 (cpp.pod): New dependency only rule.
4262 (gcc.pod): New intermediate rule with dependencies and commands.
4263 (gfdl.pod): Likewise.
4264 (fsf-funding.pod): Likewise.
4266 2003-10-24 Nathanael Nerode <neroden@gcc.gnu.org>
4268 * fixinc/mkfixinc.sh: Remove special cases for svr4 and ptx, and
4270 * fixinc/fixinc.ptx: Remove.
4271 * fixinc/fixinc.svr4: Remove.
4273 2003-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4275 * config/s390/s390.c (load_multiple_operation): Allow both SImode
4276 and DImode if word_mode is DImode.
4277 (store_multiple_operation): Likewise.
4278 * config/s390/s390.md ("load_multiple", "store_multiple"): Likewise.
4279 ("*load_multiple_di"): Allow only if word_mode == DImode.
4280 ("movqi"): Use LLGC whenever TARGET_ZARCH.
4281 ("fix_truncdfsi2"): Fix incorrect temporary size.
4282 ("fix_truncsfsi2"): Likewise.
4283 ("*bras_r", "*brasl_r", "*basr_r"): Remove predicate and constraint
4284 string for function return value operand.
4285 ("*bras_tls", "*brasl_tls", "*basr_tls"): Likewise.
4287 2003-10-24 Joseph S. Myers <jsm@polyomino.org.uk>
4289 * c-parse.in (array_declarator): Use expr_no_commas.
4292 2003-10-24 Richard Sandiford <rsandifo@redhat.com>
4294 * config/mips/linux.h: Wrap MD_FALLBACK_FRAME_STATE_FOR and
4295 associated includes in #ifndef inhibit_libc.
4297 2003-10-24 Roger Sayle <roger@eyesopen.com>
4299 * doc/libgcc.texi: Document some more of the libgcc API.
4301 2003-10-24 Richard Earnshaw <rearnsha@arm.com>
4303 * arm.c (arm_rtx_costs_1, case TARGET_THUMB): Adjust costs for
4304 comparing a constant with small negative numbers and add costing
4305 for constants in conjunction with AND.
4306 (note_invalid_constants): Tidy previous change.
4307 (thumb_cmp_operand): Tidy.
4308 (thumb_cmpneg_operand): New function.
4309 * arm.h (CONDITIONAL_REGISTER_USAGE): Don't use HI regs if optimizing
4311 (FIRST_LO_REGNUM, FIRST_HI_REGNUM, LAST_HI_REGNUM): Define.
4312 (PREDICATE_CODES): Add thumb_cmpneg_operand.
4313 * arm.md (cbranchsi4): Convert to define_expand. Handle comparison
4314 with a negative constant.
4315 (cbranchsi4_insn): Matcher for cbranchsi4.
4316 (cbranchsi4_scratch): Similar, but a scratch is available for
4317 handling negative constants.
4318 (movsi_cbranchsi4): New pattern.
4319 (tstsi3_cbranch): Renamed from andsi3_cbranch_scratch, remove scratch
4320 and use the TST instruction.
4321 (andsi3_cbranch, orrsi3_cbranch, xorsi3_cbranch, cbranchne_decr1)
4322 (addsi3_cbranch, subsi3_cbranch): Ensure that register preferencing
4323 cannot see high regs or memory alternatives.
4324 (bicsi3_cbranch_scratch, bicsi3_cbranch): New patterns.
4326 2003-10-24 Richard Earnshaw <rearnsha@arm.com>
4328 * arm.c (note_invalid_constants): Try to extract the constant
4329 pool value using avoid_constant_pool_reference; only use
4330 get_pool_constant if that returns the original reference.
4332 2003-10-24 Jan Hubicka <jh@suse.cz>
4335 * varasm.c (notice_global_symbol): Disqualify global registers.
4337 2003-10-23 Roger Sayle <roger@eyesopen.com>
4340 * loop.c (load_mems): Use redirect_jump to forward jumps from
4341 the original loop end label to the new "loop sink" block's label.
4343 2003-10-23 Roger Sayle <roger@eyesopen.com>
4346 * optabs.c (expand_binop): When expanding complex operations
4347 inline, always calculate result into a new temporary register.
4348 Minor code clean-ups.
4350 2003-10-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4352 * objc/lang-specs.h: Handle -print-objc-runtime-info.
4353 * doc/invoke.texi (Objective-C Dialect Options): Document it.
4355 2003-10-24 Danny Smith <dannysmith@users.sourceforge.net>
4357 * config/i386/cygwin.asm: Add copyright notice. Add comment
4358 on why this code is needed.
4360 2003-10-23 Kazu Hirata <kazu@cs.umass.edu>
4362 * config/h8300/clzhi2.c: Fix warnings.
4363 * config/h8300/ctzhi2.c: Likewise.
4364 * config/h8300/fixunssfsi.c: Likewise.
4365 * config/h8300/parityhi2.c: Likewise.
4366 * config/h8300/popcounthi2.c: Likewise.
4368 2003-10-23 James E Wilson <wilson@specifixinc.com>
4370 * gcc.c (option_map): Delete --target and --use-version.
4372 2003-10-23 Fariborz Jahanian <fjahanian@apple.com>
4373 David Edelsohn <edelsohn@gnu.org>
4375 * config/rs6000/rs6000.h (UNITS_PER_WORD): Use TARGET_32BIT, not
4377 (UNITS_PER_GPR_WORD): Define.
4378 (HARD_REGNO_NREGS): Use UNITS_PER_GPR_WORD.
4379 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
4380 (HARD_REGNO_MODE_OK): Use UNITS_PER_GPR_WORD.
4381 (CLASS_MAX_NREGS): Use UNITS_PER_GPR_WORD.
4382 * config/rs6000/rs6000.c (function_arg): Generate PARALLEL for
4383 DFmode and DImode in 32-bit ABI / 64-bit computation mode.
4384 (rs6000_emit_prologue): Select reg_mode and reg_size using
4385 TARGET_32BIT, not TARGET_POWERPC64.
4386 (rs6000_function_value): Generate PARALLEL for DImode in 32-bit
4387 ABI / 64-bit computation mode
4389 2003-10-22 Andrew Haley <aph@redhat.com>
4391 * toplev.c (output_file_directive): Allow for null input_name.
4393 2003-10-22 Waldek Hebisch <hebisch@math.uni.wroc.pl>
4395 * config/i386/i386.c (classify_argument): Handle SET_TYPE.
4397 2003-10-22 Chris Demetriou <cgd@broadcom.com>
4399 * configure.in: In --enable-generated-files-in-srcdir option
4400 handling, fix default case handling.
4401 * configure: Regenerate.
4403 2003-10-22 Phil Edwards <phil@codesourcery.com>
4405 * config.gcc: Update *-*-vxworks* generic hook and comments.
4406 (arm-wrs-vxworks, i[4567]86-wrs-vxworks, mips-wrs-vxworks,
4407 mips-wrs-windiss, sh-wrs-vxworks): New stanzas.
4408 * genmultilib: Allow the MULTILIB_OSDIRNAMES to be mapped directly.
4409 * config/svr4.h (SWITCH_TAKES_ARG): Undefine it before redefining it.
4410 * config/windiss.h: New file.
4411 * config/arm/t-vxworks: New file.
4412 * config/arm/vxworks.h: New file.
4413 * config/i386/t-vxworks: New file.
4414 * config/i386/vxworks.h: New file.
4415 * config/mips/t-vxworks: New file.
4416 * config/mips/vxworks.h: New file.
4417 * config/mips/windiss.h: New file.
4418 * config/sh/t-vxworks: New file.
4419 * config/sh/vxworks.h: New file.
4421 2003-10-22 Kazu Hirata <kazu@cs.umass.edu>
4423 * config/h8300/h8300.c (h8300_output_function_epilogue): Remove.
4424 (h8300_saveall_function_p): New.
4425 (h8300_insert_attributes): Insert the saveall attribute if
4426 #pragma saveall is specified.
4427 (h8300_attribute_table): Add saveall.
4428 (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
4429 * doc/extend.texi: Mention the saveall attribute.
4431 2003-10-22 Joseph S. Myers <jsm@polyomino.org.uk>
4433 * c-typeck.c (pedantic_lvalue_warning): Unconditionally warn of
4434 deprecation of casts as lvalues.
4435 * fixinc/inclhack.def (obstack_lvalue_cast): New fix.
4436 * fixinc/fixincl.x: Regenerate.
4437 * fixinc/tests/base/obstack.h: New test.
4439 2003-10-22 Andreas Schwab <schwab@suse.de>
4442 * config/m68k/m68k.c (output_addsi3): Fix range check to work on
4445 2003-10-22 Jan Hubicka <jh@suse.cz>
4447 * dwarf2out.c (dwarf2out_abstract_function): Use DW_AT to check
4448 presence of DW_AT_inline.
4449 (gen_subprogram_die): Likewise; do not abort instead of emitting
4452 2003-10-22 Jan Hubicka <jh@suse.cz>
4454 * cgraph.c (cgraph_function_possibly_inlined_p): Be conservative when
4455 global info is not ready.
4457 2003-10-22 Kazu Hirata <kazu@cs.umass.edu>
4459 * doc/extend.texi: Mention H8S wherever H8/300H is mentioned.
4461 2003-10-22 Ulrich Weigand <uweigand@de.ibm.com>
4463 * config/s390/s390.md ("movstr_short_64", "movstr_short_31"): Merge ...
4464 ("*movstr_short"): ... into this insn pattern.
4465 ("movstr_short"): New expander.
4466 ("*movstr_long_64"): Rename from "movstr_long_64", simplify.
4467 ("*movstr_long_31"): Rename from "movstr_long_31", simplify.
4468 ("movstr_long"): New expander.
4469 ("clrstr_short_64", "clrstr_short_31"): Merge ...
4470 ("*clrstr_short"): ... into this insn pattern.
4471 ("clrstr_short"): New expander.
4472 ("*clrstr_long_64"): Rename from "clrstr_long_64", simplify.
4473 ("*clrstr_long_31"): Rename from "clrstr_long_31", simplify.
4474 ("clrstr_long"): New expander.
4475 ("cmpmem_short_64", "cmpmem_short_31"): Merge ...
4476 ("*cmpmem_short"): ... into this insn pattern.
4477 ("cmpmem_short"): New expander.
4478 ("*cmpmem_long_64"): Rename from "cmpmem_long_64".
4479 ("*cmpmem_long_31"): Rename from "cmpmem_long_31".
4480 ("cmpmem_long"): New expander.
4481 * config/s390/s390.c (s390_expand_movstr): Use new expanders.
4482 (s390_expand_clrstr): Likewise.
4483 (s390_expand_cmpmem): Likewise.
4485 2003-10-22 Mark Mitchell <mark@codesourcery.com>
4487 * c-pch.c (struct c_pch_validity): Add pch_init field.
4489 (c_common_valid_pch): Check it.
4491 2003-10-22 David Taylor <dtaylor@emc.com>
4494 * dbxout.c (dbxout_typedefs): Use COMPLETE_OR_VOID_TYPE_P.
4496 2003-10-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4498 * config/alpha/alpha.c (function_value [ENABLE_CHECKING]): Don't call
4499 alpha_return_in_memory if no VALTYPE specified.
4501 2003-10-22 Jan Hubicka <jh@suse.cz>
4504 * Makefile.in (dwarf2out.o): Depend on cgraph.h.
4505 * cgraph.c (cgraph_function_possibly_inlined_p): New function.
4506 * cgraph.h (cgraph_function_possibly_inlined_p): Declare.
4507 (cgraph_global_info): Add flag inlined
4508 * dwarf2out.c (gen_subprogram_die, gen_decl_die): Use
4509 cgraph_function_possibly_inded_p
4510 * cgraphunit.c (mark_inline): Set inlined flag.
4511 * toplev.c (rest_of_decl_compilation): Call outlining_inline_function
4512 only for possibly inlined functions.
4513 * c-decl.c (duplicate_decls): Never output abstract DIE representing old
4516 2003-10-22 Andrew Haley <aph@redhat.com>
4518 * varasm.c (output_constructor): Make constructor annotation
4519 conditional on ASM_COMMENT_START.
4521 2003-10-21 Jason Merrill <jason@redhat.com>
4523 * tree.c (get_unwidened): Check TREE_UNSIGNED on the field's type.
4524 (get_narrower): Likewise.
4526 * stor-layout.c (layout_decl): Do packed field alignment for
4529 2003-10-21 Eric Christopher <echristo@redhat.com>
4531 * expr.c (convert_move): Use FLOAT_EXTEND for extensions.
4533 2003-10-21 Geoffrey Keating <geoffk@apple.com>
4535 * c-pch.c: Add comments in various places.
4536 (struct c_pch_validity): Add the lengths of various strings.
4537 (host_machine): New static.
4538 (target_machine): New static.
4539 (get_ident): Bump version number.
4540 (pch_init): Write out version, host, target validity data.
4541 (c_common_valid_pch): Check version, host, target.
4542 * Makefile.in (c-pch.o): Add version.h; define HOST_MACHINE and
4545 2003-10-21 Jason Merrill <jason@redhat.com>
4547 * tree.h (IS_EXPR_CODE_CLASS): Use strchr.
4548 (EXPR_P): New macro.
4550 2003-10-21 Zack Weinberg <zack@codesourcery.com>
4552 * config/ia64/ia64.md (cmpxchg_acq_si): Mark operand 3 as DImode.
4553 * config/ia64/ia64.c (ia64_expand_fetch_and_op,
4554 ia64_expand_op_and_fetch): Make sure the REG for ar.ccv is
4555 DImode. Use convert_move to load ar.ccv.
4556 (ia64_expand_compare_and_swap): Likewise.
4557 If expand_expr doesn't put 'old' and 'new' in the proper
4558 modes, run them through convert_to_mode.
4560 2003-10-21 Eric Christopher <echristo@redhat.com>
4562 * config/frv/frv.c (frv_adjust_field_align): Check DECL_ARTIFICIAL
4563 for too large bitfields.
4565 2003-10-21 Mark Mitchell <mark@codesourcery.com>
4567 * Makefile.in ($(docobjdir)/%.info): Honor BUILD_INFO.
4569 2003-10-21 Andrew Haley <aph@redhat.com>
4571 * varasm.c (output_constructor): Annotate constructor.
4573 2003-10-21 Mark Mitchell <mark@codesourcery.com>
4575 * Makefile.in ($(DESTDIR)$(infodir)/%.info): Conditionalize chmod
4576 on existence of destination file.
4578 2003-10-21 Jan Hubicka <jh@suse.cz>
4580 * haifa-sched.c (choose_ready): Initialize index.
4582 2003-10-21 Jason Merrill <jason@redhat.com>
4584 * tree.c (build1): Fix off-by-one error.
4586 2003-10-21 Robert Millan <robertmh@gnu.org>
4588 * config/i386/kfreebsdgnu.h: New. i386-*-kfreebsd-gnu definitions.
4589 * config/kfreebsdgnu.h: New. *-*-kfreebsd-gnu definitions.
4590 * config/t-kfreebsd-gnu: New. *-*-kfreebsd-gnu tmake_file.
4591 * config.gcc: Add *-*-kfreebsd*-gnu and i[34567]86-*-kfreebsd*-gnu.
4593 2003-10-21 Eric Botcazou <ebotcazou@libertysurf.fr>
4595 * web.c: Fix various comments.
4597 2003-10-20 Nicolas Pitre <nico@cam.org>
4599 * config/arm/arm.c (arm_override_options): Set arm_constant_limit
4600 to 2 instead of 1 when optimize_size is true. Gather code based on
4601 optimize_size together. Add comment about XScale load latency.
4603 2003-10-21 Gunther Nikl <gni@gecko.de>
4605 * config/m68k/m68k.c (m68k_output_function_prologue): Remove
4608 2003-10-20 Kelley Cook <kcook@gcc.gnu.org>
4610 * Makefile.in: Get parsedir and docobjdir from configure.
4611 * configure.in: Recogonize --enable-generated-files-in-srcdir.
4612 Pass along parsedir and docobjdir.
4613 * configure: Regenerate.
4614 * doc/install.texi: Document --enable-generated-files-in-srcdir.
4616 2003-10-20 Kelley Cook <kcook@gcc.gnu.org>
4618 * Makefile.in: Define $(docdir) before the Make-lang.in fragments are
4621 2003-10-20 Joseph S. Myers <jsm@polyomino.org.uk>
4623 * c-common.c (expand_tree_builtin): Ensure creal and cimag
4624 functions do not return lvalues.
4626 2003-10-20 Jason Merrill <jason@redhat.com>
4629 * tree.c (build1) <ADDR_EXPR>: Set TREE_SIDE_EFFECTS
4633 * stor-layout.c (layout_decl): Fix alignment handling.
4635 2003-10-20 Joseph S. Myers <jsm@polyomino.org.uk>
4637 * doc/extend.texi: Deprecate casts as lvalues.
4639 2003-10-20 Jan Hubicka <jh@suse.cz>
4641 * toplev.c (rest_of_compilation): Fix webizer pass ordering.
4643 * cgraphunit.c (decide_is_function_needed): Fix test dealing
4644 with functions implicitly made inline.
4646 * cgraphunit.c (cgraph_decide_inlining_incrementally): New function.
4647 (cgraph_finalize_function): Use it.
4648 (cgraph_mark_inline): Allow incrmental decisions
4649 * invoke.texi (max-inline-slope, min-inline-insns): Kill.
4650 * params.def (PARAM_MAX_INLINE_SLOPE, PARAM_MIN_INLINE_INSNS): Kill.
4651 * tree-inline.c (limits_allow_inlining): Kill.
4652 (expand_call_inline): Always use unit-at-a-time path.
4654 2003-10-20 Zack Weinberg <zack@codesourcery.com>
4656 * fixinc/inclhack.def (hpux11_snprintf): New edit.
4657 * fixinc/fixincl.x: Regenerate.
4658 * fixinc/tests/base/stdio.h: Add test for hpux11_snprintf.
4660 2003-10-20 Mark Mitchell <mark@codesourcery.com>
4662 * Makefile.in (install-info): Simplify.
4663 ($(DESTDIR)$(infodir)/%.info): New rule.
4664 * configure.in (target_list): Remove install-info.
4665 * doc/.cvsignore (gcc.info*): Remove.
4666 (gccint.info*): Likewise.
4667 (gccinstall.info*): Likewise.
4668 (cpp.info*): Likewise.
4669 (cppinternals.info*): Likewise.
4671 * doc/sourcebuild.texi: Update description of install-info.
4672 * objc/Make-lang.in (objc.install-info): Remove.
4674 2003-10-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4676 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Define _ABIO32.
4677 Use it in _MIPS_SIM definition.
4678 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Likewise.
4680 2003-10-20 Zack Weinberg <zack@codesourcery.com>
4682 * config/i386/i386.c (print_reg): Abort if REGNO (x) is a
4683 virtual register, but only if file == asm_out_file.
4684 * config/i386/i386.h (HI_REGISTER_NAMES): Use "argp", not "",
4685 for ARG_POINTER_REGNUM.
4687 2003-10-20 Zack Weinberg <zack@codesourcery.com>
4689 * c-common.c (registered_builtin_types): New static.
4690 (c_common_type_for_mode): Consult registered_builtin_types.
4691 (c_register_builtin_type): Add type to registered_builtin_types.
4692 * optabs.c (init_floating_libfuncs): Initialize libfuncs for
4693 all MODE_FLOAT modes, not just the ones corresponding to
4694 float_type_node, double_type_node, and long_double_type_node.
4696 2003-10-20 Richard Henderson <rth@redhat.com>
4698 * config/alpha/alpha.h (PREDICATE_CODES): Add normal_memory_operand.
4699 * config/alpha/alpha-protos.h: Remove PREDICATE_CODES prototypes.
4701 2003-10-20 Dorit Naishlos <dorit@il.ibm.com>
4703 * config/rs6000/rs6000.h: (rs6000_sched_insert_nops):
4704 support new flag -minsert-sched-nops.
4705 (DEFAULT_SCHED_FINISH_NOP_INSERTION_SCHEME): Define.
4706 * config/rs6000/rs6000.c: (rs6000_sched_insert_nops):
4707 support new flag -minsert-sched-nops.
4708 (is_cracked_insn, is_microcoded_insn): New functions.
4709 (rs6000_sched_finish): New function.
4710 (rs6000_issue_rate): Return 5 for power4.
4711 (get_next_active_insn, insn_terminates_group_p): New
4713 (is_costly_group, force_new_group): New functions.
4714 (redefine_groups, pad_groups): New functions.
4715 (rs6000_variable_issue): Use new functions.
4716 * doc/invoke.texi (-minsert-sched-nops): Document new
4719 2003-10-20 David S. Miller <davem@redhat.com>
4721 * config/sparc/sparc.md (type attribute): Add new insn types
4722 fpa, fpm_pack, fgm_mul, fgm_pdist, and fgm_cmp for VIS.
4723 (patterns emitting VIS insns): Use them.
4724 * config/sparc/ultra1_2.md: Add VIS scheduling rules.
4725 * config/sparc/ultra3.md: Likewise.
4727 2003-10-20 Falk Hueffner <falk@debian.org>
4730 * config/alpha/alpha.c (alpha_emit_conditional_branch): Don't do
4731 comparison against constant by adjusting the argument except for
4734 2003-10-19 Mark Mitchell <mark@codesourcery.com>
4736 * config.gcc: Add support for arm926ejs, arm1026ejs, arm1136js,
4737 arm1136jfs, and armv6j.
4738 * config/arm/arm.c (FL_ARCH6J): New macro.
4739 (FL_VFPV2): Likewise.
4740 (all_cores): Add entries for arm926ejs, arm1026ejs, arm1136js,
4742 (all_architectures): Add entry for armv6j.
4743 (arm_override_options): Add entries for arm926ejs, arm1026ejs,
4744 arm1136js, and arm1136jfs.
4745 * config/arm/arm.h (TARGET_CPU_arm926ej_s): New macro.
4746 (TARGET_CPU_arm1026ej_s): Likewise.
4747 (TARGET_CPU_arm1136j_s): Likewise.
4748 (TARGET_CPU_arm1136jf_s): Likewise.
4749 * doc/invoke.texi: Document new ARM cores and architecture
4752 2003-10-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4754 * Makefile.in (toplev.o): Add value-prof.h dependency.
4755 (value-prof.o): Add REGS_H dependency.
4756 * common.opt (fprofile-values, fvpt): New.
4757 * flags.h (flag_value_profile_transformations): Declare.
4758 * opts.c (common_handle_option): Handle -fprofile_values and
4760 * profile.c (branch_prob): Don't remove death notes here.
4761 * timevar.def (TV_VPT): New.
4762 * value-prof.c: Include regs.h.
4763 (insn_divmod_values_to_profile, gen_divmod_fixed_value, gen_mod_pow2,
4764 gen_mod_subtract, divmod_fixed_value_transform,mod_pow2_value_transform,
4765 mod_subtract_transform, value_profile_transformations): New.
4766 (insn_values_to_profile): Call insn_divmod_values_to_profile.
4767 (find_values_to_profile): Add dumps.
4768 * value-prof.h (value_profile_transformations): Declare.
4769 * toplev.c: Include value-prof.h.
4770 (rest_of_handle_value_profile_transformations): New.
4771 (enum dump_file_index): Add DFI_vpt.
4772 (dump_file): Add vpt dump.
4773 (flag_value_profile_transformations): New.
4774 (lang_independent_options): Add flag_profile_values and
4775 flag_value_profile_transformations.
4776 (rest_of_compilation): Call
4777 rest_of_handle_value_profile_transformations.
4778 (process_options): Let -fvpt imply -fprofile-values.
4779 * doc/invoke.texi (-fvpt): Document.
4781 2003-10-19 Jan Hubicka <jh@suse.cz>
4783 * i386.c (print_reg): Do not abort on certain registers.
4785 PR optimization/12612
4786 * reg-stack.c (subst_stack_regs_pat): Use st(1) for clobbers.
4787 * i386.md (fpatan, fyl2x, fscale patterns and expanders): Use
4788 match_scratch; avoid bogus paralles.
4791 * i386.c (ix86_function_regparm): Disable implicit register passing
4792 conventions when profiling.
4794 2003-10-19 Eric Botcazou <ebotcazou@libertysurf.fr>
4795 Richard Henderson <rth@redhat.com>
4797 PR optimization/8178
4798 * config/i386/i386.md (*movsi_zero): Delete.
4799 (*ffs_no_cmove): Use ix86_expand_clear to zero the third operand.
4801 2003-10-19 Richard Henderson <rth@redhat.com>
4803 * config/alpha/alpha.c (fix_operator): New.
4804 (divmod_operator): Tidy.
4805 (alpha_emit_xfloating_cvt): Handle UNSIGNED_FIX.
4806 * config/alpha/alpha.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
4807 (PREDICATE_CODES): Update.
4808 * config/alpha/alpha.md (fix_truncdfsi_ieee): Use match_operator.
4809 (fix_truncdfsi_internal, fix_truncdfdi_ieee): Likewise.
4810 (fix_truncsfsi_ieee, fix_truncsfsi_internal): Likewise.
4811 (fix_truncsfdi_ieee): Likewise.
4812 (fix_truncdfdi2, fix_truncsfdi2): Turn into define_expand.
4813 (fixuns_truncdfdi2, fixuns_truncsfdi2, fixuns_trunctfdi2): New.
4814 * config/alpha/alpha-protos.h: Update.
4816 2003-10-19 Richard Sandiford <rsandifo@redhat.com>
4818 * config/mips/mips.h (INITIALIZE_TRAMPOLINE): Simplify.
4819 * config/mips/mips.c (mips_load_got): Assume Pmode == ptr_mode.
4820 * config/mips/mips.md (extendsidi2, *extendsidi2): Merge. Don't accept
4823 2003-10-18 Kazu Hirata <kazu@cs.umass.edu>
4825 * doc/extend.texi: Fix typos.
4826 * doc/invoke.texi: Likewise.
4828 2003-10-18 Nicolas Pitre <nico@cam.org>
4830 * config/arm/arm.c (arm_override_options): Use arm_tune_xscale for
4831 XScale optimizations not arm_arch_xscale.
4832 * config/arm/arm.h (CONSTANT_ALIGNMENT_FACTOR, MOVE_RATIO): Likewise.
4834 2003-10-18 Ulrich Weigand <uweigand@de.ibm.com>
4836 * config/s390/s390-protos.h (shift_count_operand): Add prototype.
4837 * config/s390/s390.c (shift_count_operand): New function.
4838 (s390_extra_constraint): Use it to implement 'Y' constraint.
4839 (print_shift_count_operand): New function.
4840 (print_operand): Use it to implement '%Y'.
4841 * config/s390/s390.h (EXTRA_ADDRESS_CONSTRAINT): Add 'Y' constraint.
4842 (PREDICATE_CODES): Add shift_count_operand.
4843 * config/s390/s390.md ("rotldi3"): Merge alternatives,
4844 using "shift_count_operand" predicate and "Y" constraint,
4845 and "%Y" to output the combined shift count.
4846 ("rotlsi3"): Likewise.
4847 ("ashldi3", "*ashldi3_31", "*ashldi3_64"): Likewise.
4848 ("ashrdi3", "*ashrdi3_31", "*ashrdi3_64", "*ashrdi3_cc_31",
4849 "*ashrdi3_cc_64", "*ashrdi3_cconly_31", "*ashrdi3_cconly_64"): Likewise.
4850 ("ashlsi3", "ashrsi3", "*ashrsi3_cc", "*ashrsi3_cconly"): Likewise.
4851 ("lshrdi3", "*lshrdi3_31", "*lshrdi3_64"): Likewise.
4852 ("lshrsi3"): Likewise.
4854 2003-10-18 Gunther Nikl <gni@gecko.de>
4856 * config/m68k/m68k.c (m68k_output_function_epilogue): Add missing
4857 argument to asm_fprintf statement.
4859 2003-10-18 Fariborz Jahanian <fjahanian@apple.com>
4861 * rs6000.md: Separate TARGET_POWERPC64 patterns for TARGET_64BIT or TARGET_32BIT.
4862 (ashrdisi3_noppc64) Generate more efficient code for 32-bit right-shift of
4863 a "long long" argument.
4865 2003-10-18 Alexandre Oliva <aoliva@redhat.com>
4867 * final.c (final_scan_insn): Run FINAL_PRESCAN_INSNS on asm insns
4870 2003-10-18 Richard Sandiford <rsandifo@redhat.com>
4872 * rtl.h (rtl_size): Declare.
4873 (rtunion): Remove rtwint.
4874 (rtx_def): Replace 'fld' with a union of an rtunion or a HOST_WIDE_INT.
4875 (RTX_HDR_SIZE, RTX_SIZE): New macros.
4876 (RTL_CHECK1): Adjust for new rtx_def layout.
4877 (RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2): Likewise.
4878 (XWINT, XCWINT): Likewise. Access the rtx structure directly.
4881 * rtl.def: Adjust comments for new rtx_def layout.
4882 * ggc.h (ggc_alloc_rtx): Take the rtx code as argument, not the
4884 * rtl.c (rtx_size): New array.
4885 (rtx_alloc): Adjust call to ggc_alloc_rtx. Use RTX_HDR_SIZE.
4886 (copy_rtx): Use RTX_HDR_SIZE. Adjust for new rtx_def layout.
4887 (shallow_copy_rtx): Adjust call to ggc_alloc_rtx. Use RTX_SIZE.
4888 * integrate.c (copy_rtx_and_substitute): Use X0ANY to copy '0' fields.
4889 * emit-rtl.c (copy_most_rtx): Likewise.
4890 (copy_rtx_if_shared): Use RTX_SIZE.
4891 (copy_insn_1): Use RTX_HDR_SIZE. Adjust for new rtx_def layout.
4892 * gengenrtl.c (gendef): Adjust ggc_alloc_rtx call. Use RTX_HDR_SIZE.
4893 * gengtype.c (write_rtx_next): Use RTX_HDR_SIZE.
4894 (adjust_field_rtx_def): Expect "rtx_def" to be a union rather than
4895 an array. Adjust output for new rtx_def layout.
4896 * ggc-page.c (RTL_SIZE): Use RTX_HDR_SIZE.
4897 * reload1.c (eliminate_regs): Use RTX_SIZE.
4898 * rtlanal.c (loc_mentioned_in_p): Adjust for new rtx_def layout.
4899 * gdbinit.in (pi): Likewise.
4901 2003-10-18 Jan Hubicka <jh@suse.cz>
4903 * integrate.c (copy_decl_for_inlining): Revert previous patch.
4905 2003-10-18 Jan Hubicka <jh@suse.cz>
4907 * integrate.c (copy_decl_for_inlining): Fix copying of copies.
4909 2003-10-18 Roger Sayle <roger@eyesopen.com>
4911 * libgcc.texi: Group multi-word types, such as "long double" and
4912 "unsigned int", using braces in @deftypefn and @deftypefnx nodes.
4913 Document __unord?f2 as returning a non-zero value, not just one.
4915 2003-10-18 Hans-Peter Nilsson <hp@bitrange.com>
4917 * config/mmix/t-mmix (CRTSTUFF_T_CFLAGS): Define.
4918 ($(T)crti.o, $(T)crtn.o): Pass CRTSTUFF_T_CFLAGS here too.
4920 2003-10-18 Eric Botcazou <ebotcazou@libertysurf.fr>
4922 * config/i386/k6.md (k6_alux): Use the 'mode' attribute instead of
4925 2003-10-18 Eric Botcazou <ebotcazou@libertysurf.fr>
4927 * config/sparc/sparc.c (function_arg_record_value_1): New fourth
4928 parameter packed_p. Search for a DECL_PACKED field only if
4929 packed_p is false. Pass packed_p recursively.
4930 (function_arg_record_value_2): Likewise.
4931 (function_arg_record_value): Update calls to
4932 function_arg_record_value_1 and function_arg_record_value_2.
4934 2003-10-18 Eric Botcazou <ebotcazou@libertysurf.fr>
4936 * cse.c (cse_insn) [src_folded]: Check that the tentative replacement
4937 was successfully forced to memory before using the result.
4939 2003-10-18 Eric Botcazou <ebotcazou@libertysurf.fr>
4941 PR optimization/8178
4942 * config/i386/i386.md (*movsi_zero): New insn to set
4943 a register to zero on TARGET_USE_MOV0 targets.
4945 2003-10-18 Kelley Cook <kcook@gcc.gnu.org>
4947 * Makefile.in (Makefile): Depend on the all Make-lang.in fragments.
4948 (POSTSTAGE1_FLAGS_TO_PASS): Pass down MAKEINFO and MAKEINFOFLAGS.
4950 2003-10-17 David Edelsohn <edelsohn@gnu.org>
4952 * doc/invoke.texi (gcse-las): Fix typo.
4954 2003-10-17 Andrew Pinski <pinskia@physics.uc.edu>
4956 * doc/install.texi: Remove first part of the sentence for
4957 zsh not working. Change gcc to GCC.
4960 * doc/install.texi: Document that zsh does not work when
4963 2003-10-17 Nathanael Nerode <neroden@gcc.gnu.org>
4965 * config/ptx4.h: Switch to DWARF 2; update comments.
4967 2003-10-17 Segher Boessenkool <boessen@de.ibm.com>
4968 Hartmut Penner <hpenner@de.ibm.com>
4970 PR 10404, partial 11591, partial 11601
4971 * config/rs6000/altivec.md ("altivec_dst", "altivec_dstt",
4972 "altivec_dstst", "altivec_dststt", "altivec_lvsl", "altivec_lvsr",
4973 "altivec_lvebx", "altivec_lvehx", "altivec_lvewx", "altivec_lvxl",
4974 "altivec_lvx", "altivec_stvx", "altivec_stvxl", "altivec_stvebx",
4975 "altivec_stvehx", "altivec_stvewx"): Use a memory_operand.
4976 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): New function.
4977 (altivec_expand_stv_builtin): Adjust for the memory_operand.
4978 (altivec_expand_builtin): Call altivec_expand_lv_builtin.
4979 (altivec_init_builtins): Use `long int' for memory offsets.
4981 2003-10-17 Jan Hubicka <jh@suse.cz>
4983 * opts.c (common_handle_option): Handle OPT_fweb
4984 * invoke.texi (-fweb): Add missing parts of documentation.
4986 2003-10-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4988 * config/mips/linux.h (FUNCTION_NAME_ALREADY_DECLARED): Undef
4989 before redefinition.
4991 2003-10-17 Mostafa Hagog <mustafa@il.ibm.com>
4993 * common.opt: Add description of the new -fgcse-las flag.
4994 * flags.h (flag_gcse_las): Declaration of global flag_gcse_las.
4995 * gcse.c (hash_scan_set): Handle the case of store expression and
4996 insert the memory expression to the hash table, this way we make it
4997 possible to discover redundant loads after stores and remove them.
4998 (pre_insert_copy_insn): moved the call to update_ld_motion_stores,
4999 to pre_insert_copies, it is not the correct place to call it after
5000 adding stores to be in the available expression hash table.
5001 (pre_insert_copies): Added the call to update_ld_motion_stores when
5002 one or more copies were inserted.
5003 * opts.c (common_handle_option): Handle the -fgcse-las flag.
5004 * toplev.c (flag_gcse_las): Initialization of flag_gcse_las.
5006 * doc/invoke.tex: Document new -fgcse-las flag.
5008 2003-10-18 Alan Modra <amodra@bigpond.net.au>
5010 * config/rs6000/crtsavres.asm: Correct alignment of powerpc64 code
5011 for posterity, then remove it.
5013 2003-10-17 Richard Earnshaw <rearnsha@arm.com>
5014 Nathan Sidwell <nathan@codesourcery.com>
5016 * config/arm/arm.c (use_return_insn): Not a single instruction, if
5017 there's a frame pointer.
5018 (arm_output_epilogue): Protect stack pointer from being corrupted
5021 2003-10-17 Ulrich Weigand <uweigand@de.ibm.com>
5023 * ifcvt.c (noce_try_addcc): Handle ifs with 'else' case.
5025 2003-10-17 Ulrich Weigand <uweigand@de.ibm.com>
5027 * combine.c (simplify_set): Do not clear out undobuf.other_insn
5028 already set elsewhere.
5030 2003-10-17 Kelley Cook <kcook@gcc.gnu.org>
5032 * config/i386/i386.c (ix86_expand_prologue): Use
5033 gen_allocate_stack_worker.
5035 2003-10-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5037 * config.gcc (mips-sgi-irix6*o32): Only enable use_collect2
5039 (mips-sgi-irix6*): Likewise.
5041 * config/mips/iris6gas.h: New file.
5042 * gcc/config.gcc (mips-sgi-irix6*): Use it.
5044 * config/mips/mips.h (TARGET_IRIX): Provide default.
5045 (TARGET_IRIX5): Likewise.
5046 (TARGET_SGI_O32_AS): Likewise.
5047 * config/mips/iris5.h (TARGET_IRIX): Redefine as 1.
5048 (TARGET_IRIX5): Likewise.
5049 * config/mips/iris6.h (TARGET_IRIX6): Remove.
5050 (TARGET_IRIX5): Redefine as 0.
5052 * config/mips/mips.c (mips_output_external): Test for IRIX 6 O32
5053 linker workaround with TARGET_IRIX and mips_abi instead of
5054 ASM_OUTPUT_UNDEF_FUNCTION.
5055 (mips_file_end): Inline old ASM_OUTPUT_UNDEF_FUNCTION definition,
5056 testing TARGET_IRIX and mips_abi explicitly.
5057 * config/mips/iris5.h (ASM_OUTPUT_UNDEF_FUNCTION): Remove.
5058 * config/mips/iris6.h (ASM_OUTPUT_UNDEF_FUNCTION): Remove undef.
5060 * config/mips/mips.c (irix_output_external_libcall): Renamed from
5061 mips_output_external_libcall.
5062 Use new TARGET_IRIX in guard.
5063 * config/mips/mips-protos.h (irix_output_external_libcall): Match
5065 * config/mips/iris5.h (TARGET_ASM_EXTERNAL_LIBCALL): Likewise.
5067 * config/mips/iris5gas.h (HAVE_GAS_SHF_MERGE): Update comment.
5070 * config/mips/iris6.h (FUNCTION_NAME_ALREADY_DECLARED): Define
5071 depending on mips_abi.
5072 * config/mips/linux.h (FUNCTION_NAME_ALREADY_DECLARED): Define as 1.
5073 * config/mips/mips.c (mips_output_function_prologue): Test
5074 FUNCTION_NAME_ALREADY_DECLARED at runtime.
5075 (mips_output_function_epilogue): Likewise.
5076 (build_mips16_function_stub): Likewise.
5077 (build_mips16_call_stub): Likewise.
5078 * config/mips/mips.h (FUNCTION_NAME_ALREADY_DECLARED): Provide
5081 * config/mips/iris6.h (DWARF2_UNWIND_INFO): Don't define for native
5082 IRIX 6 O32 assembler.
5083 (SUBTARGET_CC1_SPEC): Enforce mips2 ISA with O32 ABI.
5084 (TARGET_OS_CPP_BUILTINS): Define _ABIO32, use it to define
5085 _MIPS_SIM for O32 ABI.
5086 (DWARF2_FRAME_INFO): Don't define for native IRIX 6 O32 assembler.
5087 (ASM_DECLARE_FUNCTION_NAME): Integrate mips.h version.
5088 (ASM_DECLARE_FUNCTION_SIZE): Move undef before redefinition.
5089 Integrate O32 version.
5090 (SUBTARGET_ASM_SPEC): Handle -mabi=32.
5091 (SUBTARGET_ASM_DEBUGGING_SPEC): Add mdebug_asm_spec for gas with
5093 (BSS_SECTION_ASM_OP_32): Define.
5094 (BSS_SECTION_ASM_OP_64): Likewise.
5095 (BSS_SECTION_ASM_OP): Define differently for O32 and N32/N64 ABIs
5097 (TARGET_ASM_NAMED_SECTION): Reflect renaming.
5098 Move up to allow override for O32 ABI without GNU as.
5099 (EH_FRAME_SECTION_NAME): Define explicitly.
5100 (MUST_USE_SJLJ_EXCEPTIONS): Define.
5101 [_MIPS_SIM == _ABIO32 && !GAS] (CTORS_SECTION_ASM_OP,
5102 DTORS_SECTION_ASM_OP): Dummy definitions.
5103 (TARGET_ASM_NAMED_SECTION): Undef statically.
5104 (EH_FRAME_SECTION_NAME): Likewise.
5105 (ASM_OUTPUT_FILENAME): Integrate mips.h version.
5106 (LINK_SPEC): Only use default options -call_shared -no_unresolved
5108 Don't pass -init, -fini with -mabi=32.
5109 (COLLECT_PARSE_FLAG): Define.
5111 * config/mips/mips.c (iris6_asm_named_section_1): Changed guard to
5113 Renamed to use irix_ prefix.
5114 (iris6_asm_named_section): Likewise.
5115 (iris_section_align_entry_eq): Likewise.
5116 (iris_section_align_entry_hash): Likewise.
5117 (iris6_file_start): Likewise.
5118 (iris6_section_align_1): Likewise.
5119 (iris6_file_end): Likewise.
5120 (iris6_section_type_flags): Likewise.
5121 (iris_section_align_htab): Likewise.
5122 (iris_orig_asm_out_file): Likewise.
5123 [TARGET_IRIX] (TARGET_ASM_FILE_START): Reflect rename.
5124 (TARGET_ASM_FILE_END): Likewise.
5125 (TARGET_SECTION_TYPE_FLAGS): Likewise.
5127 * config/mips/mips.c [TARGET_IRIX5 && !TARGET_IRIX6]
5128 (TARGET_ASM_UNALIGNED_HI_OP): Use runtime initialization in
5129 override_options instead.
5130 (TARGET_ASM_UNALIGNED_SI_OP): Likewise.
5131 (TARGET_ASM_UNALIGNED_DI_OP): Likewise.
5132 * config/mips/mips.c (override_options) [USE_COLLECT2]: Restore
5133 flag_gnu_linker to defaults without USE_COLLECT2 for non-IRIX O32
5135 Likewise for constructor/destructor handling.
5136 (override_options): Handle IRIX O32 assembler quirks.
5137 [TARGET_IRIX] (irix_asm_named_section): Handle O32 ABI with and
5139 (mips_file_start): Use new TARGET_IRIX.
5140 (mips_declare_object_name): No special processing for IRIX O32
5142 (mips_finish_declare_object): Likewise.
5143 (irix_asm_output_align): Renamed from iris6_asm_output_align.
5144 Don't record alignment for O32 ABI.
5145 (irix_file_start): Renamed from iris6_file_start.
5146 Return early for O32 ABI.
5147 (irix_file_end): Renamed from iris6_file_end.
5148 Don't emit .section directives for O32 ABI.
5149 * config/mips/iris6.h (ASM_OUTPUT_ALIGN): Reflect renaming.
5150 * config/mips/mips-protos.h (irix_asm_output_align): Likewise.
5152 * config/mips/t-iris6 (MULTILIB_OPTIONS): Add mabi=32.
5153 (MULTILIB_OSDIRNAMES): Likewise.
5155 2003-10-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5157 * collect2.c (COLLECT_PARSE_FLAG): Provide default.
5159 * doc/tm.texi (COLLECT_PARSE_FLAG): Document it.
5161 2003-10-17 Richard Earnshaw <rearnsha@arm.com>
5163 * arm-modes.def (CC_Nmode): New condition code mode.
5164 * arm.c (thumb_condition_code): Delete.
5165 (arm_select_cc_mode): Handle single-bit test for Thumb.
5166 (arm_print_operand, cases 'd' and 'D'): Don't special case the
5167 condition code logic for Thumb.
5168 (get_arm_condition_code): Handle CC_Nmode.
5169 (thumb_cbrch_target_operand): New function.
5170 * arm.h (PREDICATE_CODES): Add thumb_cbrch_target_operand.
5171 * arm-protos.h (thumb_cbrch_target_operand): Add prototype.
5172 * arm.md: Add Thumb split patterns for zero_extract and
5174 (tbit_cbranch, andsi3_cbranch_scratch, andsi3_cbranch)
5175 (orrsi3_cbranch_scratch, orrsi3_cbranch, xorsi3_cbranch_scratch)
5176 (xorsi3_cbranch, addsi3_cbranch, addsi3_cbranch_scratch)
5177 (subsi3_cbranch, subsi3_cbranch_scratch): New Thumb patterns.
5178 (cbranchne_decr1): Re-work to use CC_Nmode.
5180 * arm.c (thumb_expand_epilogue): Add clobbers of registers restored
5181 by the return instruction. Add a use of the link register if it
5184 2003-10-17 Richard Earnshaw <rearnsha@arm.com>
5186 * flow.c (init_propagate_block_info): Don't abort if a conditional
5187 jump is not a comparison of a register. Instead, just don't record
5188 conditional life information.
5190 2003-10-16 Jan Hubicka <jh@suse.cz>
5192 PR optimization/12630
5193 * pa.md (movstrsi, movstrsi_internal): Use match_scratch in clobbers
5194 for operands 7 and 8.
5196 2003-10-16 Kelley Cook <kcook@gcc.gnu.org>
5198 * objc/Make-lang.in (objc-parse.o): Honor $(parsedir) for objc-parse.c.
5200 2003-10-16 Danny Smith <dannysmith@users.sourceforge.net>
5202 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
5204 * config/i386/winnt.c (gen_stdcall_suffix): Make static
5205 (gen_fastcall_suffix): Likewise.
5206 (i386_pe_dllexport_p): Likewise.
5207 (i386_pe_dllimport_p): Likewise.
5208 (i386_pe_mark_dllexport): Likewise.
5209 (i386_pe_mark_dllimport): Likewise.
5210 (i386_pe_asm_named_section): Fix formatting.
5212 2003-10-16 Zack Weinberg <zack@codesourcery.com>
5214 * configure.in: Add snprintf to gcc_AC_CHECK_DECLS list.
5215 * system.h: Declare snprintf if necessary.
5216 * configure, config.in: Regenerate.
5218 2003-10-15 David Edelsohn <edelsohn@gnu.org>
5220 * config/rs6000/rs6000.c (rs6000_va_arg): Only align vector
5221 arguments if TARGET_ALTIVEC_ABI.
5223 2003-10-15 Roger Sayle <roger@eyesopen.com>
5225 * builtins.c (fold_builtin_memcpy, fold_builtin_mempcpy,
5226 fold_builtin_memmove, fold_builtin_strcpy, fold_builtin_strncpy,
5227 fold_builtin_memcmp, fold_builtin_strcmp, fold_builtin_strncmp):
5229 (expand_builtin_memcpy): Use integer_zerop instead of testing
5230 host_integerp and tree_low_cst directly. Move misapplied hunk
5231 for optimization wher SRC and DEST point to the same location.
5232 (expand_builtin_mempcpy): From here.
5233 (expand_builtin_memmove): Use integer_zerop instead of testing
5234 host_integerp and tree_low_cst_directly.
5235 (expand_builtin_memset): Likewise.
5236 (expand_builtin_memcmp): Likewise (and for integer_onep).
5237 (expand_builtin_strncmp): Likewise.
5238 (fold_builtin): Call the appropriate fold_builtin_foo functions
5239 to optimize memcpy, mempcpy, memmove, strcpy, strncpy, memcmp,
5242 2003-10-15 Geoffrey Keating <geoffk@apple.com>
5244 * config/darwin-protos.h (machopic_non_lazy_ptr_name): Delete
5245 prototype. Clean up some whitespace.
5246 * config/darwin.c: Use gen_rtx_FOO (...) rather than
5248 (machopic_non_lazy_ptr_name): Make static.
5249 (name_needs_quotes): Allow '.' and '$' unquoted.
5250 (machopic_legitimize_pic_address): Improve codegen in dynamic-no-pic
5253 2003-10-15 Gábor Lóki <alga@rgai.hu>
5255 * fold-const.c (tree_swap_operands_p): Disable some features
5256 when optimizing for size.
5258 2003-10-15 David Daney <ddaney@avtrex.com>
5260 * config/mips/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New
5261 * config/mips/mips.h (DWARF_FRAME_REGNUM): Fixed to allow unwind
5262 from leaf functions.
5263 (DWARF_FRAME_RETURN_COLUMN): Ditto.
5264 (SIGNAL_UNWIND_RETURN_COLUMN): New, used
5265 by MD_FALLBACK_FRAME_STATE_FOR.
5266 * testsuite/gcc.dg/cleanup-9.c: Added mips*-*-linux* target.
5268 2003-10-15 Zack Weinberg <zack@codesourcery.com>
5270 * genmodes.c: Include hashtab.h.
5271 (modes_by_name, hash_mode, eq_mode, struct mode_adjust)
5272 (adj_bytesize, adj_alignment, adj_format, new_adjust)
5273 (_ADD_ADJUST, ADJUST_BYTESIZE, ADJUST_ALIGNMENT, ADJUST_FORMAT)
5274 (print_maybe_const_decl, emit_mode_adjustments): New.
5275 (known_modes): Rename to modes.
5276 (find_mode): Kill class argument; look up in hash table.
5277 (new_mode): Insert into hash table also.
5279 (reset_float_format, make_partial_integer_mode)
5280 (make_vector_mode): Tweak error reporting.
5281 (reset_float_format): Correct type of fourth argument.
5282 (emit_insn_modes_h): Add #defines to help make mode_size,
5283 mode_base_align, and real_format_for_mode conditionally const.
5284 (emit_mode_size, emit_mode_base_align): Use print_maybe_const_decl.
5285 (emit_real_format_for_mode): Likewise, but temporarily disabled.
5286 (emit_insn_modes_c): Call emit_mode_adjustments.
5287 (main): Initialize modes_by_name.
5288 * Makefile.in: Update dependencies.
5289 * machmode.def: Document EXPR arguments and new ADJUST_* statements.
5290 * machmode.h: Use CONST_MODE_SIZE and CONST_MODE_BASE_ALIGN in
5291 declarations of mode_size and mode_base_align. Declare
5292 init_adjust_machine_modes.
5293 * toplev.c (backend_init): Call init_adjust_machine_modes.
5295 2003-10-15 Olivier Hainque <hainque@act-europe.fr>
5297 * genmodes.c (calc_wider_mode): Allocate enough room for all the
5298 entries we'll possibly assign in the sort buffer.
5300 2003-10-15 Ulrich Weigand <uweigand@de.ibm.com>
5302 * config.gcc (s390x-ibm-tpf*): New target.
5303 * doc/install.texi: Document it.
5304 * config/s390/t-tpf: New file.
5305 * config/s390/tpf.h: New file.
5307 2003-10-15 Hans-Peter Nilsson <hp@axis.com>
5310 * config/cris/cris.md (define_split "*mov_sidesi_biap_mem"+1)
5311 (define_splits "*mov_sidesi_mem"+1, "casesi"+9, +10, +11, +12):
5312 Use cris_mem_op and replace_equiv_address, not gen_rtx_MEM.
5313 ("call", "call_value", define_split "*mov_sidesi_mem"+19, +20)
5314 (define_split "*mov_sidesi_mem"+21, +22, +23, +24, +25, +26, +27)
5315 (define_split "*mov_sidesi_mem"+28, +29, +30): Use
5316 replace_equiv_address, not gen_rtx_MEM.
5317 * config/cris/cris.c (cris_mem_op): New match_operator function.
5318 (cris_notice_update_cc): Use replace_equiv_address, not
5320 * config/cris/cris.h (PREDICATE_CODES): Add cris_mem_op.
5322 2003-10-15 Bernardo Innocenti <bernie@develer.com>
5324 * config/m68k/m68k.h (MASK_SEP_DATA, TARGET_SEP_DATA,
5325 MASK_ID_SHARED_LIBRARY, TARGET_ID_SHARED_LIBRARY): Move
5326 definitions after the other flags.
5328 2003-10-14 Ziemowit Laski <zlaski@apple.com>
5330 * c-parse.in (methoddef, methodproto): Call objc_add_method()
5331 instead of add_method().
5332 * objc/objc-act.c (objc_check_decl): Do not check for
5333 constant_string_type.
5334 (add_method): Rename to objc_add_method().
5335 (really_start_method): Call objc_add_method() instead of
5337 * objc/objc-act.h (add_method): Rename to objc_add_method().
5339 2003-10-14 Ulrich Weigand <uweigand@de.ibm.com>
5341 * config/s390/s390-protos.h (s390_alc_comparison): Add prototype.
5342 (s390_slb_comparison): Likewise.
5343 * config/s390/s390.c (s390_alc_comparison, s390_slb_comparison):
5345 * config/s390/s390.h (PREDICATE_CODES): Add s390_alc_comparison
5346 and s390_slb_comparison.
5347 * config/s390/s390.md ("*adddi3_31", "*subdi3_31"): Do not use on
5349 ("*adddi3_31z", "*subdi3_31z"): New insns.
5350 ("*adddi3_alc_cc", "*adddi3_alc", "*subdi3_slb_cc", "*subdi3_slb",
5351 "*addsi3_alc_cc", "*addsi3_alc", "*subsi3_slb_cc", "*subsi3_slb"):
5354 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
5356 * configure.in: Clean up some feedback echoes.
5357 * configure: Regenerate.
5359 * aclocal.m4: Properly quote names of macros being defined.
5361 * config.gcc (am33_2.0-*-linux*): Use t-slibgcc-elf-ver.
5363 2003-10-14 Steve Ellcey <sje@cup.hp.com>
5365 * config/ia64/ia64.c (ia64_expand_call): Force function address
5367 * config/ia64/ia64.md (call_gp): Put DImode on operand 0.
5369 2003-10-14 Ulrich Weigand <uweigand@de.ibm.com>
5371 * config/s390/s390.md ("muldf3", "*muldf3", "*muldf3_ibm",
5372 "mulsf3", "*mulsf3", "*mulsf3_ibm"): Do not clobber CC.
5373 ("divdf3", "*divdf3", "*divdf3_ibm", "divsf3", "*divsf3",
5374 "*divsf3_ibm"): Likewise.
5376 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
5378 * config.gcc, config/m68hc11/t-m68hc11-gas: Replace uses of
5379 target_alias with target_noncanonical.
5381 2003-10-14 Geoffrey Keating <geoffk@apple.com>
5383 * expr.c (block_move_libcall_safe_for_call_parm): Clean up,
5384 and add case for machines where outgoing register parameters
5387 * config/darwin.c (machopic_indirect_data_reference): Use a scratch
5388 register when generating indirect address.
5390 2003-10-14 Richard Earnshaw <rearnsha@arm.com>
5392 * arm.c (arm_addimm_operand): MODE arguemnt is unused.
5393 * arm.md (cbranchne_decr1): Fix bootstrap warning.
5395 2003-10-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5397 * fixinc/inclhack.def (alpha_pthread_gcc): New fix.
5398 * fixinc/fixincl.x: Regenerate.
5399 * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_GCC_CHECK]: New
5401 Fixes PR bootstrap/9330.
5403 2003-10-13 Eric Christopher <echristo@redhat.com>
5405 * config/frv/frv.c (frv_adjust_field_align): Redo check for
5407 (frv_hard_regno_mode_ok): Add SPR_P and AP_FIRST.
5408 * config/frv/frv.h (FUNCTION_PROFILER): Remove abort call.
5409 (SBSS_SECTION_ASM_OP): Remove.
5410 (EXTRA_SECTIONS): Remove in_sbss.
5411 (EXTRA_SECTION_FUNCTIONS): Remove SBSS_SECTION_FUNCTION.
5412 (SBSS_SECTION_FUNCTION, sbss_section): Remove.
5413 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Change sbss_section to
5416 2003-10-13 Nathanael Nerode <neroden@gcc.gnu.org>
5418 * Makefile.in, configure.in, config.host, mkheaders.in: Replace
5419 uses of ${target_alias} for directory names (and other places which
5420 won't like the empty string) with ${target_noncanonical}. Introduce
5421 call early in configure.in to _GCC_TOPLEV_NONCANONICAL_TARGET so it's
5423 * configure: Regenerate.
5425 2003-10-13 Ian Lance Taylor <ian@wasabisystems.com>
5427 * config/arm/iwmmxt.md (cond_iwmmxt_movsi_insn): New pattern.
5428 * config/arm/arm.md: For splits which rely on conditional moves,
5429 remove ! TARGET_IWMMXT condition.
5431 2003-10-13 David S. Miller <davem@redhat.com>
5433 * ifcvt.c (num_removed_blocks): Rename to num_true_changes.
5434 (find_cond_trap): Always increment if we emit a conditional
5437 2003-10-13 Zack Weinberg <zack@codesourcery.com>
5439 * Makefile.in (BUILD_RTL): Replace $(BUILD_PREFIX)insn-modes.o
5440 with min-insn-modes.o.
5441 (STAGESTUFF): Add min-insn-modes.c.
5442 (genobjs): Add genmodes.o.
5443 (print-rtl.o, print-rtl1.o): Depend on $(TM_P_H).
5444 (insn-modes.o): Depend on $(TM_H) not $(GTM_H); also real.h.
5445 (min-insn-modes.c, min-insn-modes.o): New rules.
5446 (s-modes): Also generate min-insn-modes.c.
5447 ($(BUILD_PREFIX_1)insn-modes.o): Kill.
5448 * genmodes.c (struct mode_data): Add format field.
5449 (blank_mode, validate_mode, complete_mode): Update to match.
5450 (make_scalar_mode): Separate into make_int_mode and make_float_mode.
5451 (_SCALAR_MODE): Kill.
5452 (FLOAT_MODE, FRACTIONAL_FLOAT_MODE): Add format argument.
5453 (emit_insn_modes_c_header): Adjust.
5454 (emit_min_insn_modes_c_header, emit_real_format_for_mode)
5455 (emit_min_insn_modes_c): New functions.
5456 (emit_insn_modes_c): Call emit_real_format_for_mode.
5457 (main): Add -m option to generate min-insn-modes.c.
5458 * machmode.h: Update documentation. Add format argument to
5459 all uses of FLOAT_MODE.
5460 * real.c: Don't define real_format_for_mode here.
5462 * dwarfout.c: Move default definition of PRINT_REG...
5463 * defaults.h: ...here.
5464 * print-rtl.c: Include tm_p.h.
5465 (DEBUG_PRINT_REG, DEBUG_REGISTER_NAMES, debug_reg_names, reg_names):
5467 (print_rtx): Use PRINT_REG, not DEBUG_PRINT_REG. But surround
5468 this entire block with #ifndef GENERATOR_FILE.
5469 * regclass.c: Unconditionally define reg_names.
5470 * config/mips/mips.h, config/rs6000/rs6000.h, config/sh/sh.h
5471 Don't define DEBUG_REGISTER_NAMES.
5472 * config/rs6000/darwin.h: Don't use DEBUG_REGISTER_NAMES in
5473 redefinition of REGISTER_NAMES.
5474 * config/i386/i386.h: Don't define DEBUG_PRINT_REG.
5476 * combine.c: Change all preprocessor conditionals on
5477 EXTRA_CC_MODES to use SELECT_CC_MODE instead; rearrange a bit
5479 * genopinit.c: Remove mention of EXTRA_CC_MODES in comment.
5480 * configure.in: Don't define EXTRA_CC_MODES.
5481 * configure, config.in: Regenerate.
5482 * doc/tm.texi: Remove documentation of EXTRA_CC_MODES.
5484 * config/arc/arc.c, config/m32r/m32r.c, config/sparc/sparc.c:
5485 May assume that GET_MODE_CLASS is accurate for extra CC modes
5488 * config/i860/i860.h (INIT_CUMULATIVE_ARGS): Pass correct
5489 number of arguments to aggregate_value_p.
5491 * genmodes.c (RESET_FLOAT_FORMAT, reset_float_format): New.
5492 * machmode.def: Explain ARCH-modes.def. Document
5493 RESET_FLOAT_FORMAT. Improve commentary on various mode
5494 clusters. Do not define OI, PQI, PHI, PSI, PDI, QF, HF, TQF,
5495 XF, or TF modes here. Remove backward-compatibility
5498 * config/alpha/alpha-modes.def: New file; define TF mode.
5499 * config/arc/arm-modes.def: Define XF mode.
5500 * config/c4x/c4x-modes.def: Define QF and HF modes. Unset
5501 float format for SF and DF modes.
5502 * config/dsp16xx/dsp16xx-modes.def: New file; define HF mode.
5503 * config/i386/i386-modes.def: Define XF and TF modes.
5504 * config/i960/i960-modes.def: Define TF mode.
5505 * config/ia64/ia64-modes.def: Define TF and OI modes.
5506 * config/m68k/m68k-modes.def: New file; define XF mode.
5507 * config/mips/mips-modes.def: New file; define TF mode, reset
5508 formats for SF and DF modes.
5509 * config/pa/pa-modes.def: Define TF mode.
5510 * config/rs6000/rs6000.c: Define TF and PSI modes.
5511 * config/s390/s390-modes.def: Define OI mode.
5512 * config/sh/sh-modes.def: New file; define PSI mode.
5513 * config/sparc/sparc-modes.def: Define TF mode.
5514 * config/vax/vax-modes.def: New file; reset formats for SF and
5517 * config/c4x/c4x.c (c4x_override_options): No need to mess
5518 with real_format_for_mode or set REAL_MODE_FORMATs.
5519 (c4x_immed_int_constant): Don't apply GET_MODE_CLASS to rtx
5521 * config/i386/i386.c (override_options): No need to set
5522 REAL_MODE_FORMATs here.
5523 * config/i960/i960.c (i960_initialize): Likewise.
5524 * config/m68k/m68k.c (m68k_override_options): Likewise.
5525 * config/ia64/ia64.c (ia64_override_options): Set REAL_MODE_FORMAT
5526 for TFmode only if not the default.
5527 * config/mips/mips.c (override_options): Likewise.
5528 * config/vax/vax.c (override_optionms): Set REAL_MODE_FORMAT for
5529 DFmode only if not the default.
5531 * config/i370/i370.h (RET_REG): Don't consider TFmode.
5532 * config/m68hc11/m68hc11.c (print_operand): Don't consider XFmode.
5533 * config/dsp16xx/dsp16xx.c (hard_regno_mode_ok): #if 0 out use
5534 of modes that don't appear anywhere in the machine description.
5536 * config/arc/arc-modes.def, config/arm/arm-modes.def
5537 * config/c4x/c4x-modes.def, config/frv/frv-modes.def
5538 * config/i386/i386-modes.def, config/i960/i960-modes.def
5539 * config/ia64/ia64-modes.def, config/mmix/mmix-modes.def
5540 * config/pa/pa-modes.def, config/pdp11/pdp11-modes.def
5541 * config/rs6000/rs6000-modes.def, config/s390/s390-modes.def
5542 * config/sparc/sparc-modes.def: Convert to new style for
5543 declaring extra CC modes.
5545 2003-10-13 Zack Weinberg <zack@codesourcery.com>
5547 * cpplex.c (_cpp_clean_line): In the common case of a line
5548 with no trigraphs and no \-newline, avoid writing to memory.
5549 (_cpp_skip_block_comment): Use a local 'cur' pointer instead
5550 of the buffer member. Make c an uchar to avoid unnecessary
5553 2003-10-13 Nathanael Nerode <neroden@gcc.gnu.org>
5555 * configure.in: Remove unnecessary test.
5556 * configure: Regenerate.
5558 * configure.in: Fix grammatical error. Move UWIN host error to...
5559 * config.host: Here.
5560 * configure: Regenerate.
5562 2003-10-13 Andreas Krebbel <krebbel1@de.ibm.com>
5564 * config/s390/s390.md ("*fmadddf4", "*fmsubdf4", "*fmaddsf4",
5565 "*fmsubsf4"): Insns are now dependent on TARGET_FUSED_MADD instead
5566 of flag_unsafe_math_optimizations.
5567 * config/s390/s390.h ("MASK_NO_FUSED_MADD", "TARGET_NO_FUSED_MADD",
5568 "TARGET_FUSED_MADD", "TARGET_SWITCHES"): Introduced new target flags
5569 fused-madd and no-fused-madd.
5570 * doc/invoke.texi: Documented the new options fused-madd and
5571 no-fused-madd for S/390.
5573 2003-10-14 Alan Modra <amodra@bigpond.net.au>
5575 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Choose
5576 MASK_ALIGN_NATURAL if rs6000_alignment_string not given. Don't
5578 (ADJUST_FIELD_ALIGN, ROUND_TYPE_ALIGN): Update comment.
5579 * config/rs6000/rs6000.c: Formatting.
5580 (rs6000_parse_alignment_option): Only set rs6000_alignment_flags
5581 when rs6000_alignment_string given.
5583 2003-10-13 Eric Botcazou <ebotcazou@libertysurf.fr>
5586 * config/sparc/sparc.c (MUST_SAVE_REGISTER): Delete.
5587 (sparc_flat_must_save_register_p): New function to decide whether
5588 a register must be saved/restored in the function prologue/epilogue.
5589 (sparc_flat_compute_frame_size): Use it instead of MUST_SAVE_REGISTER.
5591 2003-10-12 Steven Bosscher <steven@gcc.gnu.org>
5593 * config/avr/avr.c, config/avr/avr-protos.h: Convert to
5594 ISO C90 function declarations and definitions.
5595 * config/sh/sh.c, config/sh/sh-protos.h: Likewise.
5597 2003-10-12 Nathanael Nerode <neroden@gcc.gnu.org>
5599 * config.gcc (*-*-freebsd*): Use tm_defines instead of tiny
5600 config files which do the same thing.
5601 * config/freebsd3.h, config/freebsd4.h, config/freebsd5.h,
5602 config/freebsd6.h: Remove now unnecessary files.
5604 2003-10-12 Steven Bosscher <steven@gcc.gnu.org>
5606 * c-common.c (c_common_truthvalue_conversion): Warn if the
5607 address of a non-weak function is used as a truth value.
5609 2003-10-12 Kazu Hirata <kazu@cs.umass.edu>
5611 * config/h8300/h8300.c (WORD_REG_USED): Use SP_REG instead of
5613 * config/h8300/h8300.h (REGNO_OK_FOR_BASE_P): Use MAC_REG
5614 instead of a literal.
5616 2003-10-12 Hans-Peter Nilsson <hp@bitrange.com>
5618 * doc/extend.texi (Function Attributes): Mention the exceptional
5619 path for noreturn-marked functions.
5621 2003-10-12 Jan Hubicka <jh@suse.cz>
5623 * cgraphunit.c (cgraph_decide_inlining): Fix uninitialized variable
5626 2003-10-12 Danny Smith <dannysmith@users.sourceforge.net>
5628 * config/i386/i386.c (x86_this_parameter): Fix typo.
5630 203-10-11 Jan Hubicka <jh@suse.cz>
5632 * Makefile.in (web.o): New.
5634 * rtl.h (web_main): Declare.
5635 * timervar.def (TV_WEB): New.
5636 * toplev.c (dump_file_index, dump_file_info): Add DFI_web.
5637 (rest_of_hanle_web): New.
5638 (flag_web): New static variable.
5639 (lang_independent_options): Add "web".
5640 (rest_of_compilation): Call rest_of_handle_web.
5641 * invoke.texi (-fweb): Document.
5642 * common.opt (fweb): New.
5643 * flags.h (flag_web): New.
5644 * opts.c (decode_options): Set flag_web at -O3.
5646 * passes.texi (web construction): Document.
5647 * invoke.texi (-O3): Document that -fweb is enabled.
5649 * regrename.c (regrename_optimize): Deal better with situation when
5652 * sched-ebb.c: Include params.h and profile.h
5653 (schedule_ebbs): Use tracer parameters to discover superblocks
5654 * Makefile.in (sched-ebb.o): Add dependencies.
5656 2003-10-11 Roger Sayle <roger@eyesopen.com>
5658 * fold-const.c (negate_mathfn_p): New function to determine whether
5659 a built-in mathematical function is sign preserving, f(-x) == -f(x).
5660 Add support for BUILT_IN_ASIN, BUILT_IN_ASINF and BUILT_IN_ASINL.
5661 (tree_swap_operands_p): Change API to take an additional argument
5662 indicating that the swapped operands evaluate in reverse order.
5663 Canonicalize VAR_DECLs and PARM_DECLs last if we can, i.e. neither
5664 operand side-effects or we don't care about flag_evaluation_order.
5665 (reorder_operands_p): New function to check whether its safe to
5666 evaluate the given operands in reverse order.
5667 (negate_expr_p): We can always negate integer constants unless
5668 we honor -ftrapv and the signed type would overflow. Only allow
5669 -(A-B) into B-A if reorder_operands_p says that its OK. Allow
5670 negation of COMPLEX_CST if both real and imaginary parts can be
5671 negated. Allow negation through floating point extensions and
5672 sign-preserving built-in functions.
5673 (negate_expr): Move the code to negate integers from "fold" to
5674 here. Always negate integer constants unless we honor -ftrapv
5675 and the signed type would overflow. Always negate real constants
5676 unless we honor -ftrapping-math. Only convert -(A-B) into B-A
5677 if allowed by reorder_operands_p. Add support for COMPLEX_CST.
5678 Optimize negation through floating point extensions and
5679 sign-preserving built-in functions (as defined by negate_mathfn_p).
5680 (fold): Adjust calls to tree_swap_operands_p.
5681 (fold <NEGATE_EXPR>): Move the remaining negation optimizations
5682 to negate_expr_p/negate_expr.
5683 (fold <MINUS_EXPR>): Use reorder_operands_p to check whether we're
5684 allowed to convert (-A) - B into (-B) - A.
5686 2003-10-11 Roger Sayle <roger@eyesopen.com>
5688 * builtins.c (expand_builtin_strcmp): Defend against the possibility
5689 that gen_cmpstrsi may fail: Stabilize the argument list against
5690 re-evaluation and expand the library call directly using this saved
5691 argument list if a cmpstrsi sequence can't be generated.
5692 (expand_builtin_strncmp): Likewise.
5694 * config/i386/i386.md (cmpstrsi, movstrsi): Disable with -Os.
5696 2003-10-11 Roger Sayle <roger@eyesopen.com>
5698 PR optimization/12260
5699 * simplify-rtx.c (simplify_unary_operation): Simplify all unary
5700 operations through CONST nodes. Optimize (neg (plus X C)) as
5701 (minus -C X) for constant values C.
5702 (simplify_binary_operation): Optimize (minus (neg X) C) as
5703 (minus -C X) for constant values C.
5704 (simplify_plus_minus): Avoid creating (neg (const (plus X C)),
5705 instead create (minus -C X).
5707 2003-10-11 Roger Sayle <roger@eyesopen.com>
5709 * expr.c (expand_expr <PLUS_EXPR>): Let expand_operands call
5710 safe_from_p for us, once it chooses an evaluation order.
5711 (expand_expr <MULT_EXPR>): Likewise.
5712 (expand_expr <MIN_EXPR> <MAX_EXPR>): Likewise. If expand_operands
5713 places the second operand in "target", swap the operands.
5714 (do_store_flag): Let expand_operands call safe_from_p for us.
5716 2003-10-11 Eric Botcazou <ebotcazou@libertysurf.fr>
5718 PR optimization/12544
5719 * function.c (put_var_into_stack): Don't generate ADDRESSOFs
5720 for DECL_NONLOCAL decls.
5722 2003-10-11 Kazu Hirata <kazu@cs.umass.edu>
5724 * expr.c: Follow spelling conventions.
5725 * final.c: Likewise.
5726 * optabs.c: Likewise.
5727 * sched-deps.c: Likewise.
5728 * sdbout.c: Likewise.
5730 Sat Oct 11 12:24:23 CEST 2003 Jan Hubicka <jh@suse.cz>
5732 * varasm.c (notice_global_symbol): Fix handling of variables; avoid
5733 re-computing of variable.
5735 2003-10-11 Richard Henderson <rth@redhat.com>
5737 * config/alpha/alpha.c (alpha_return_in_memory): Rename from
5738 return_in_memory, make static, change signature to match target hook.
5739 (alpha_setup_incoming_varargs): Make static, change signature to
5740 match target hook, add code for vms and unicos.
5741 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
5742 TARGET_PROMOTE_PROTOTYPES, TARGET_STRUCT_VALUE_RTX,
5743 TARGET_RETURN_IN_MEMORY, TARGET_SETUP_INCOMING_VARARGS,
5744 TARGET_STRICT_ARGUMENT_NAMING,
5745 TARGET_PRETEND_OUTGOING_VARARGS_NAMED): New.
5746 * config/alpha/alpha-protos.h: Update.
5747 * config/alpha/alpha.h (PROMOTE_FUNCTION_ARGS,
5748 PROMOTE_FUNCTION_RETURN, RETURN_IN_MEMORY,
5749 SETUP_INCOMING_VARARGS): Remove.
5750 * config/alpha/unicosmk.h (SETUP_INCOMING_VARARGS): Remove.
5751 * config/alpha/vms.h (SETUP_INCOMING_VARARGS): Remove.
5753 2003-10-11 Ian Lance Taylor <ian@wasabisystems.com>
5755 * config/arm/arm.c (arm_regno_class): Handle IWMMXT_GR_REGS.
5757 2003-10-11 Kazu Hirata <kazu@cs.umass.edu>
5759 * config/m68k/lb1sf68.asm: Follow spelling conventions.
5760 * config/m68k/m68k.c: Likewise.
5761 * config/m68k/m68k.h: Likewise.
5762 * config/m68k/m68k.md: Likewise.
5764 2003-10-11 Roger Sayle <roger@eyesopen.com>
5766 * builtins.c (expand_builtin_memcpy): Optimize case when the two
5767 pointer arguments are the equal, non-volatile and side-effect free.
5768 (expand_builtin_mempcpy): Likewise.
5769 (expand_builtin_memmove): Likewise.
5770 (expand_builtin_strcpy): Likewise.
5771 (expand_builtin_memcmp): Likewise.
5772 (expand_builtin_strcmp): Likewise.
5773 (expand_builtin_strncmp): Likewise.
5775 2003-10-11 Roger Sayle <roger@eyesopen.com>
5777 * combine.c (apply_distributive_law): Enable "distributive" floating
5778 point optimizations with -funsafe-math-optimizations.
5780 2003-10-11 Andrew Pinski <pinskia@physics.uc.edu>
5782 * genmodes.c (emit_mode_mask) Change MASK to MODE_MASK.
5784 2003-10-11 Kazu Hirata <kazu@cs.umass.edu>
5786 * config/m68k/m68k-protos.h: Remove the prototype for
5789 2003-10-11 Kazu Hirata <kazu@cs.umass.edu>
5791 * config/m68k/m68k.c: Fix comment typos.
5793 2003-10-11 Bernardo Innocenti <bernie@develer.com>
5795 * config/m68k/m68k-protos.h (use_return_insn): Change return type from
5797 * config/m68k/m68k.c (struct m68k_frame): Add funcdef_no member.
5798 (current_frame): New global var.
5799 (m68k_compute_frame_layout): Cache computations in current_frame.
5800 (m68k_initial_elimination_offset): Use values from current_frame
5801 instead of recomputing them.
5802 (use_return_insn): Likewise.
5803 (m68k_output_function_prologue): Likewise.
5804 (m68k_output_function_epilogue): Likewise.
5805 * config/m68k/m68k.h (TARGET_CPU_CPP_PREDEFINES): Fold __PIC__ handling
5806 inside the block for __pic__.
5808 2003-10-11 Peter Barada <peter@baradas.org>
5809 Bernardo Innocenti <bernie@develer.com>
5811 * config/m68k/m68k.c (m68k_frame): Move before protos referencing it.
5812 (m68k_save_reg): Add boolean parameter `interrupt_handler'.
5813 (m68k_interrupt_function_p): New function.
5814 (m68k_handle_fndecl_attribute): Ditto.
5815 (m68k_compute_frame_layout): Ditto.
5816 (m68k_attribute_table): Define back-end specific attributes.
5817 (m68k_output_function_epilogue): Emit RTE instruction for interrupt
5820 2003-10-11 Bernardo Innocenti <bernie@develer.com>
5822 * config/m68k/t-uclinux: New target Makefile fragment.
5823 * config/m68k/uclinux.h: New target macro file.
5824 * config.gcc (m68k-*-uclinux): New target definition.
5826 2003-10-10 Roger Sayle <roger@eyesopen.com>
5828 * builtins.c (builtin_mathfn_code): Generalize to check whether
5829 the call is to any built-in function by comparing the call's
5830 argument list against the builtin decl's function type.
5832 2003-10-10 Roger Sayle <roger@eyesopen.com>
5834 * cse.c (constant_pool_entries_regcost): New global variable to
5835 hold the register cost component of constant_pool_entries_cost.
5836 (fold_rtx): Calculate constant_pool_entries_regcost at the same
5837 time as constant_pool_entries_cost.
5838 (cse_insn): Set both src_folded_cost and src_folded_regcost from
5839 constant_pool_entries_cost and constant_pool_entries_regcost.
5840 (cse_main): Initialize constant_pool_entries_regcost to zero.
5842 * optabs.c (expand_unop): Attach a REG_EQUAL note describing
5843 the semantics of the sequence of bit operations used to negate
5844 a floating-point value.
5845 (expand_abs_nojump): Likewise attach a REG_EQUAL note describing
5846 the semantics of the bit operations used to abs a floating point
5849 2003-10-11 Bernardo Innocenti <bernie@develer.com>
5850 Paul Dale <pauli@snapgear.com>
5852 * config/m68k/lb1sf68.asm: Add __PIC__ and __ID_SHARED_LIBRARY__
5854 * config/m68k/m68k-none.h (ASM_SPEC): Pass --pcrel to assembler on
5855 -fpic, -fPIC, -msep-data and -mid-shared-library.
5856 * config/m68k/m68k.c (m68k_library_id_string): New global variable.
5857 (override_options): Add -msep-data and -mshared-library-id support.
5858 (m68k_output_function_prologue): Generate code to load A5 for
5859 TARGET_ID_SHARED_LIBRARY and TARGET_SEP_DATA.
5860 (m68k_output_mi_thunk): Emit indirect jump on TARGET_ID_SHARED_LIBRARY.
5861 (m68k_output_pic_call): New function.
5862 * gcc/config/m68k/m68k.h (TARGET_SEP_DATA): New target flag.
5863 (TARGET_ID_SHARED_LIBRARY): Ditto.
5864 (TARGET_SWITCHES): Add switches for -mid-shared-library and -msep-data.
5865 * gcc/config/m68k/m68k.md (call): Call m68k_output_pic_call().
5866 (call_value): Likewise.
5868 2003-10-10 Zack Weinberg <zack@codesourcery.com>
5870 * gengenrtl.c (find_formats, genheader): Make i an unsigned
5871 int, remove cast of NUM_RTX_CODE.
5872 * machmode.h: Make the HAVE_MACHINE_MODES #ifdef encompass the
5873 entire file. Remove the #ifs on GET_MODE_MASK etc and
5874 GET_MODE_WIDER_MODE etc.
5876 2003-10-10 Eric Christopher <echristo@redhat.com>
5878 * lcm.c (optimize_mode_switching): Change NORMAL_MODE
5879 to MODE_ENTRY and MODE_EXIT. Add MODE_AFTER for insns
5881 * config/sh/sh.h (MODE_ENTRY): New macro.
5883 (MODE_AFTER): Ditto.
5884 * config/sh/sh.md: Change for MODE_AFTER. Add
5886 * doc/tm.texi: Document MODE_AFTER, MODE_ENTRY, and MODE_EXIT.
5888 2003-10-10 Zack Weinberg <zack@codesourcery.com>
5890 * genmodes.c, mode-classes.def: New files.
5891 * machmode.def: Rewritten to genmodes.c interface.
5892 * Makefile.in (extra_modes_file): New substitution variable.
5893 (MACHMODE_H): No longer includes machmode.def or
5894 @extra_modes_file@; instead, mode-classes.def and insn-modes.h.
5895 (BUILD_RTL): Add $(BUILD_PREFIX)insn-modes.o.
5896 (OBJS-common): Add insn-modes.o.
5897 (STAGESTUFF): Add insn-modes.c, insn-modes.h, s-modes, and
5898 genmodes$(build_exeext).
5899 (insn-modes.o, insn-modes.c, insn-modes.h, s-modes, genmodes.o,
5900 genmodes$(build_exeext), $(BUILD_PREFIX_1)insn-modes.o): New targets.
5901 (s-genrtl): Don't depend on $(RTL_BASE_H).
5902 (gengenrtl.o): Don't depend on coretypes.h, $(GTM_H), real.h,
5903 or $(RTL_BASE_H); just rtl.def.
5904 * gengenrtl.c: Don't include coretypes.h, tm.h, rtl.h, or
5905 real.h. Give fake definition of CONST_DOUBLE_FORMAT and
5906 substitute definition of NUM_RTX_CODE. Add casts to avoid
5908 * machmode.h: Include insn-modes.h, not machmode.def. Include
5909 mode-classes.def to define enum mode_class. Tweak definitions
5910 of GET_MODE_CLASS, GET_MODE_SIZE, GET_MODE_BITSIZE, GET_MODE_MASK,
5911 GET_MODE_INNER, GET_MODE_WIDER_MODE, GET_CLASS_NARROWEST_MODE.
5912 (inner_mode_array): Renamed mode_inner.
5913 (mode_base_align): New.
5914 * rtl.c (mode_name, mode_class, mode_bitsize, mode_size,
5915 mode_unit_size, mode_wider_mode, mode_mask_array,
5916 inner_mode_array, class_narrowest_mode): Delete definitions.
5917 * stor-layout.c (get_mode_alignment): Use mode_base_align.
5918 * real.h: Use MIN_MODE_FLOAT and MAX_MODE_FLOAT, not QFmode
5919 and TFmode, in real_format_for_mode and REAL_MODE_FORMAT.
5921 * config/ip2k/ip2k.h, config/iq2000/iq2000.h:
5922 No need to define BITS_PER_UNIT.
5924 2003-10-10 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5926 * config/ia64/ia64.c (ia64_vms_init_libfuncs): New function.
5927 (ia64_output_function_prologue): Only write .prologue if --with-gnu-as.
5928 (ia64_initialize_trampoline): If not using GAS, declare trampoline
5930 * config/ia64/ia64.h (ASM_APP_ON, ASM_APP_OFF): Add vers for not GAS.
5931 (ASM_OUTPUT_DEBUG_LABEL): Likewise.
5933 * stor-layout.c (compute_record_mode): Don't force BLKmode if
5934 field is zero-length BLKmode.
5935 * expr.c (expand_expr, case COMPONENT_REF): Handle case of BLKmode
5936 zero-size references.
5938 * combine.c (distribute_links): Properly test for REG being set.
5940 * config/alpha/alpha.c (alpha_expand_block_mode): Don't use
5941 gen_lowpart and company except for REG.
5943 2003-10-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5945 * pa64-hpux.h (LINK_SPEC): Use `-z' option with HP ld.
5947 2003-10-10 Nathanael Nerode <neroden@gcc.gnu.org>
5949 * config.gcc (mips*-*-netbsd*): Remove content-free line.
5951 2003-10-10 Herman A.J. ten Brugge <hermantenbrugge@home.nl>
5953 * gcov-io.h: Check BITS_PER_UNIT when defining gcov_unsigned_t,
5954 gcov_position_t and gcov_type.
5956 2003-10-09 Kaz Kojima <kkojima@gcc.gnu.org>
5958 * configure.in (HAVE_AS_TLS): Add sh-*-* and sh[34]*-*-* cases.
5959 * configure: Regenerate.
5961 2003-10-09 Kazu Hirata <kazu@cs.umass.edu>
5963 * config/h8300/h8300.md (define_asm_attributes): Specify
5964 the length of an asm insn more precisely.
5966 2003-10-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5968 * config/mips/iris6.h (SUBTARGET_CPP_SPEC): Define.
5970 2003-10-09 Bob Wilson <bob.wilson@acm.org>
5972 * config/xtensa/xtensa.c (xtensa_dbx_register_number): Change first
5973 FP register number to 48 and MAC16 accumulator to 0x210.
5975 2003-10-09 Nathanael Nerode <neroden@gcc.gnu.org>
5977 * config.gcc: Remove redundant thread_file setting clauses for
5978 various *-*-linux* targets.
5980 2003-10-09 Kazu Hirata <kazu@cs.umass.edu>
5982 * config/h8300/h8300.md (define_asm_attributes): New.
5984 2003-10-09 Roger Sayle <roger@eyesopen.com>
5986 * optabs.c (prepare_float_lib_cmp): Always attach a REG_EQUAL note
5987 to the comparison, as emit_libcall_block calls copy_rtx on equiv.
5989 2003-10-09 Dorit Naishlos <dorit@il.ibm.com>
5991 * haifa-sched.c (ok_for_early_schedule): New function.
5992 (early_queue_to_ready): New function.
5993 (schedule_block): Allow early removal of insns from Q.
5994 (schedule_insn): Update INSN_TICK in case of premature
5996 * common.opt (sched_stalled_insns): New flag.
5997 (sched_stalled_insns_dep): New flag.
5998 * flags.h: Same above flags.
5999 * opts.c: Same as above.
6000 * toplev.c: Same as above.
6001 * target.h (targetm.sched.is_costly_dependence): New
6003 * target-def.h: Same as above.
6004 * config/rs6000/rs6000.h: (rs6000_sched_costly_dep):
6005 Support new flag -msched-costly-dep.
6006 (DEFAULT_SCHED_COSTLY_DEP): Define.
6007 * config/rs6000/rs6000.c:
6008 (rs6000_is_costly_dependence): New function.
6009 (is_load_insn, is_store_insn): New functions.
6010 (is_load_insn1, is_store_insn1, is_mem_ref): New
6012 * doc/invoke.texi (-fsched-stalled-insns-dep)
6013 (-fsched-stalled-insns, -msched-costly-dep): Document
6015 * doc/tm.texi (is_costly_dependence): Define new
6016 scheduler target hook.
6018 2003-10-09 Jason Merrill <jason@redhat.com>
6021 * c-common.c (c_build_qualified_type): Look through arrays first.
6022 (c_apply_type_quals_to_decl): Look through arrays.
6024 * c-common.c (c_apply_type_quals_to_decl): Unset TREE_READONLY for
6025 types with constructors.
6027 * coverage.c (build_ctr_info_value): Use build_decl to make a
6029 (create_coverage): Likewise.
6031 * stmt.c (resolve_asm_operand_names): Call check_unique_operand_names
6033 (expand_asm_operands): Not here.
6034 (parse_input_constraint): No longer static.
6035 * tree.h: Declare it.
6037 2003-10-08 Kaz Kojima <kkojima@gcc.gnu.org>
6039 * config/sh/t-linux (SHLIB_LINK): Override to use a linker script
6041 (SHLIB_INSTALL): Likewise.
6043 2003-10-08 Nathanael Nerode <neroden@gcc.gnu.org>
6045 * doc/install.texi: Remove reference to removed 'pthreads' thread
6048 2003-10-08 Aldy Hernandez <aldyh@redhat.com>
6050 * config/rs6000/rs6000.md ("abssi2_isel"): Add early clobber to
6053 2003-10-08 Nathanael Nerode <neroden@gcc.gnu.org>
6055 * config.gcc: Don't accept --enable-threads=pthreads. Clean
6056 up related case statements.
6057 * configure.in: Don't accept --enable-threads=pthreads,
6058 decosf1, mach, or os2 (none of which work anyway). Alphabetize
6059 supported thread files in case clause.
6060 * configure: Regenerate.
6062 2003-10-08 Geoffrey Keating <geoffk@apple.com>
6064 * function.c (pad_to_arg_alignment): Move 'boundary_in_bytes'
6065 definition to above SPARC_STACK_BOUNDARY_HACK.
6067 2003-10-08 Jason Merrill <jason@redhat.com>
6069 * c-pretty-print.c (pp_c_postfix_expression)
6070 <COMPOUND_LITERAL_EXPR>: Fix thinko.
6072 2003-10-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6074 * mklibgcc.in: Don't hide undefined or typeless symbols.
6076 2003-10-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6078 PR optimization/12142
6079 * cse.c (count_reg_usage): In a SET with a REG SET_DEST, count the
6080 uses of the register in the SET_SRC. Remove unnecessary argument.
6081 * pa.c (legitimize_pic_address): Before reload, use a scratch register
6082 for the intermediate result in loading the address of a SYMBOL_REF.
6083 Set the MEM_NOTRAP_P flag for the MEM. Add a REG_EQUAL to the insn
6084 which loads the SYMBOL_REF address.
6086 2003-10-08 Timo Kokkonen <tjko@iki.fi>
6087 Eric Botcazou <ebotcazou@libertysurf.fr>
6090 * scan-decls.c (MAX_EXTERN_C_BRACES): New preprocessor constant
6091 to define the size of the extern_C_braces array. Set it to 200.
6092 (scan_decls): Abort when extern_C_braces_length is out-of-bounds.
6094 2003-10-08 Carlo Wood <carlo@alinoe.com>
6096 * Makefile.in (gengtype-lex.c): flex 2.5.4[a] doesn't understand
6097 a space after the -o option. flex 2.5.31 understands both, with
6098 and without the space. Removed that space.
6100 2003-10-08 Richard Sandiford <rsandifo@redhat.com>
6102 * config/mips/mips.c (mips_frame_info): Add cprestore_size field.
6103 (compute_frame_size): Initialize it. Remove the .cprestore slot
6105 (mips_output_function_prologue): Simplify accordingly.
6106 (mips_debugger_offset): Change the mips16 frame pointer offset from
6107 current_function_outgoing_args to cfun->machine->frame.args_size.
6108 (mips_initial_elimination_offset): Likewise.
6109 (mips_expand_prologue): Likewise.
6110 (mips_expand_epilogue): Likewise.
6112 2003-10-08 Richard Sandiford <rsandifo@redhat.com>
6114 * config/mips/mips.h (EXTRA_CONSTRAINT): Add 'W' constraint.
6115 (EXTRA_MEMORY_CONSTRAINT): Define.
6116 (CAN_ELIMINATE): Remove lwu workaround.
6117 * config/mips/mips.md (*zero_extendsidi2_mem): Enable for mips16 too.
6118 Use a 'W' constraint for the source operand.
6120 2003-10-08 Kazu Hirata <kazu@cs.umass.edu>
6122 * genopinit.c (main): Output code to declare undefined
6125 2003-10-07 Kelley Cook <kcook@gcc.gnu.org>
6127 * gengtype-lex.l: Remove -Wtraditional cruft.
6128 * Makefile.in (gengtype-lex.c): Likewise.
6130 2003-10-07 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6132 * cfgloopmanip.c (fix_irreducible_loops): Initialize e correctly.
6134 2003-10-07 Jason Merrill <jason@redhat.com>
6137 * c-semantics.c (genrtl_cleanup_stmt): Ignore the CLEANUP_DECL if
6140 2003-10-07 Alexandre Oliva <aoliva@redhat.com>
6142 * gcc.c (cpp_options): Only pass -fworking-directory for -g* if
6144 Fixes PR bootstrap/12173.
6146 2003-10-07 Zack Weinberg <zack@codesourcery.com>
6148 * errors.c: Don't include coretypes.h or tm.h.
6149 (trim_filename): Use IS_DIR_SEPARATOR.
6150 * Makefile.in: Update dependencies of errors.o and
6151 $(BUILD_PREFIX_1)errors.o.
6153 2003-10-07 Geoffrey Keating <geoffk@apple.com>
6155 * function.c (pad_to_arg_alignment): Take STACK_POINTER_OFFSET into
6156 account when aligning arguments.
6157 * calls.c (STACK_POINTER_OFFSET): Move default from here ...
6158 * defaults.h (STACK_POINTER_OFFSET): ... to here.
6159 * config/sparc/sparc.h (STACK_BOUNDARY): Add comment about how
6160 it's wrong when TARGET_ARCH64 && TARGET_STACK_BIAS.
6161 (SPARC_STACK_BOUNDARY_HACK): Define.
6162 * config/rs6000/rs6000.c (function_arg): On non-SVR4 systems,
6163 arrange for vector parameters to varargs functions to be passed
6164 in both memory and GPRs when appropriate.
6165 (rs6000_va_arg): Vector arguments passed in memory are 16-byte
6168 * hooks.c (hook_bool_tree_true): New.
6169 (hook_rtx_tree_int_null): New.
6170 (hook_rtx_rtx_null): Use NULL, not 0.
6171 * hooks.h: Add 'extern' to everything.
6172 (hook_bool_tree_true): New.
6173 (hook_rtx_tree_int_null): New.
6174 * targhooks.c (hook_bool_CUMULATIVE_ARGS_true): New.
6175 * targhooks.h (hook_bool_CUMULATIVE_ARGS_true): New.
6176 * config/rs6000/rs6000-protos.h (setup_incoming_varargs): Remove
6178 * config/rs6000/rs6000.c (rs6000_return_in_memory): New.
6179 (setup_incoming_varargs): Prototype.
6180 (TARGET_PROMOTE_FUNCTION_ARGS): Define.
6181 (TARGET_PROMOTE_FUNCTION_RETURN): Define.
6182 (TARGET_STRUCT_VALUE_RTX): Define.
6183 (TARGET_RETURN_IN_MEMORY): Define.
6184 (TARGET_SETUP_INCOMING_VARARGS): Define.
6185 (TARGET_STRICT_ARGUMENT_NAMING): Define.
6186 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Define.
6187 (init_cumulative_args): Use rs6000_return_in_memory.
6188 (setup_incoming_varargs): Make 'static'.
6189 * config/rs6000/rs6000.h (PROMOTE_FUNCTION_ARGS): Delete.
6190 (PROMOTE_FUNCTION_RETURN): Delete.
6191 (STRUCT_VALUE): Delete.
6192 (RETURN_IN_MEMORY): Delete.
6193 (SETUP_INCOMING_VARARGS): Delete.
6195 2003-10-07 Gerald Pfeifer <gerald@pfeifer.com>
6197 * doc/invoke.texi (Warning Options): Simplify and clarify the
6198 descriptions of -Wnonnull and -Winit-self.
6200 2003-10-07 Richard Earnshaw <rearnsha@arm.com>
6202 * optabs.c (init_intraclass_conv_libfuncs): Fix order of array
6203 indicees for floating-point conversersion libcalls.
6205 2003-10-07 Nathanael Nerode <neroden@gcc.gnu.org>
6207 * Makefile.in: Add more comments separating large conceptually
6210 * configure.in: Clean up thread file logic.
6211 * configure: Regenerate.
6213 2003-10-07 Danny Smith <dannysmith@users.sourceforge.net>
6215 * config/i386/cygming.h (READONLY_DATA_SECTION_ASM_OP): Define.
6216 (switch_to_section): Handle in_readonly_data.
6217 * config/i386/winnt.c (i386_pe_asm_named_section): Handle
6220 2003-10-07 Richard Earnshaw <rearnsha@arm.com>
6222 * arm.md (cmpsi2_addneg): New ARM pattern. Add peephole2 to generate
6224 (cbranchne_decr1): New Thumb pattern.
6225 * arm.c (arm_addimm_operand): New insn predicate.
6226 * arm-protos.h: Add a prototype for it.
6227 * arm.h (PREDICATE_CODES): Add it.
6229 2003-10-07 Dorit Naishlos <dorit@il.ibm.com>
6231 * sched-int.h (sched_info): New field
6232 sched_max_insns_priority.
6233 * sched-rgn.c (init_ready_list): Add invocations to
6234 targetm.sched.adjust_priority.
6235 (sched_max_insns_priority): Init new field.
6236 * sched-ebb.c (sched_max_insns_priority): Init new field.
6237 * haifa-sched.c (set_priorities): Set
6238 sched_info->sched_max_insns_priority.
6239 * config/rs6000/rs6000.h:
6240 (rs6000_sched_restricted_insns_priority_str): Support new
6241 flag -mprioritize-restricted-insns.
6242 (DEFAULT_RESTRICTED_INSNS_PRIORITY): Define.
6243 * config/rs6000/rs6000.c (is_dispatch_slot_restricted): New
6245 (rs6000_adjust_priority): Change priority of restricted
6246 insns, using above new function and new flag.
6247 * doc/invoke.texi (-mprioritize-restricted-insns): Document
6250 2003-10-07 Zack Weinberg <zack@codesourcery.com>
6252 * expr.c (cmpstr_optab, cmpmem_optab): New.
6253 * genopinit.c: Initialize them.
6254 * optabs.h: Declare them.
6255 * optabs.c (init_optabs): Clear them.
6256 (prepare_cmp_insn): Use cmpstr_optab and cmpmem_optab to find
6257 block memory compare insns, not conditional chains. Restructure
6258 the fallback generation of a call to memcmp/bcmp for better
6261 2003-10-07 Richard Sandiford <rsandifo@redhat.com>
6263 * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): New macro.
6264 (mips_save_restore_fn): New typedef.
6265 (mips_add_large_offset_to_sp, mips_emit_frame_related_store): Remove.
6266 (mips_set_frame_expr, mips_frame_set): Move above prologue code.
6267 (save_restore_insns): Remove, replacing with...
6268 (mips_save_restore_reg, mips_for_each_saved_reg): ...these new fns.
6269 (mips_save_reg, mips_restore_reg): New function.
6270 (mips_expand_prologue, mips_expand_epilogue): Rework.
6271 * config/mips/mips.h (MIPS_TEMP1_REGNUM, MIPS_TEMP2_REGNUM): Remove.
6272 (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): New macros.
6273 (MIPS_PROLOGUE_TEMP, MIPS_EPILOGUE_TEMP): New macros.
6275 2003-10-07 Richard Sandiford <rsandifo@redhat.com>
6277 * config/mips/mips.c (mips_expand_prologue): Remove unused
6278 traversal of function arguments.
6280 2003-10-07 Richard Sandiford <rsandifo@redhat.com>
6282 * doc/invoke.texi: Remove documentation of -mentry.
6283 * config/mips/mips.c (mips_entry_string, mips_entry): Remove.
6284 (override_options, mips_save_reg_p): Remove handling.
6285 (compute_frame_size, mips_output_function_prologue): Likewise.
6286 (mips_expand_prologue, mips_expand_epilogue): Likewise.
6287 * config/mips/mips.h (mips_entry_string): Remove declaration.
6288 (TARGET_OPTIONS): Remove -mentry.
6289 * config/mips/mips16.S: Remove mention of -mentry.
6291 2003-10-06 Zack Weinberg <zack@codesourcery.com>
6293 * libfuncs.h (LTI_extendsfdf2, LTI_extendsfxf2, LTI_extendsftf2)
6294 (LTI_extenddfxf2, LTI_extenddftf2, LTI_truncdfsf2, LTI_truncxfsf2)
6295 (LTI_trunctfsf2, LTI_truncxfdf2, LTI_trunctfdf2, LTI_floatsisf)
6296 (LTI_floatdisf, LTI_floattisf, LTI_floatsidf, LTI_floatdidf)
6297 (LTI_floattidf, LTI_floatsixf, LTI_floatdixf, LTI_floattixf)
6298 (LTI_floatsitf, LTI_floatditf, LTI_floattitf, LTI_fixsfsi, LTI_fixsfdi)
6299 (LTI_fixsfti, LTI_fixdfsi, LTI_fixdfdi, LTI_fixdfti, LTI_fixxfsi)
6300 (LTI_fixxfdi, LTI_fixxfti, LTI_fixtfsi, LTI_fixtfdi, LTI_fixtfti)
6301 (LTI_fixunssfsi, LTI_fixunssfdi, LTI_fixunssfti, LTI_fixunsdfsi)
6302 (LTI_fixunsdfdi, LTI_fixunsdfti, LTI_fixunsxfsi, LTI_fixunsxfdi)
6303 (LTI_fixunsxfti, LTI_fixunstfsi, LTI_fixunstfdi, LTI_fixunstfti)
6304 (extendsfdf2_libfunc, extendsfxf2_libfunc, extendsftf2_libfunc)
6305 (extenddfxf2_libfunc, extenddftf2_libfunc, truncdfsf2_libfunc)
6306 (truncxfsf2_libfunc, trunctfsf2_libfunc, truncxfdf2_libfunc)
6307 (trunctfdf2_libfunc, floatsisf_libfunc, floatdisf_libfunc)
6308 (floattisf_libfunc, floatsidf_libfunc, floatdidf_libfunc)
6309 (floattidf_libfunc, floatsixf_libfunc, floatdixf_libfunc)
6310 (floattixf_libfunc, floatsitf_libfunc, floatditf_libfunc)
6311 (floattitf_libfunc, fixsfsi_libfunc, fixsfdi_libfunc, fixsfti_libfunc)
6312 (fixdfsi_libfunc, fixdfdi_libfunc, fixdfti_libfunc, fixxfsi_libfunc)
6313 (fixxfdi_libfunc, fixxfti_libfunc, fixtfsi_libfunc, fixtfdi_libfunc)
6314 (fixtfti_libfunc, fixunssfsi_libfunc, fixunssfdi_libfunc)
6315 (fixunssfti_libfunc, fixunsdfsi_libfunc, fixunsdfdi_libfunc)
6316 (fixunsdfti_libfunc, fixunsxfsi_libfunc, fixunsxfdi_libfunc)
6317 (fixunsxfti_libfunc, fixunstfsi_libfunc, fixunstfdi_libfunc)
6318 (fixunstfti_libfunc): Delete.
6319 * optabs.h (struct optab_handlers): Break out of struct optab.
6320 (struct convert_optab, convert_optab, enum convert_optab_index,
6321 convert_optab_table, sext_optab, zext_optab, trunc_optab,
6322 sfix_optab, ufix_optab, sfixtrunc_optab, ufixtrunc_optab,
6323 sfloat_optab, ufloat_optab): New.
6324 (set_conv_libfunc): Prototype.
6325 (GEN_FCN): Use C90 indirect call syntax, remove unnecessary cast.
6326 (trunc_optab): Renamed btrunc_optab.
6327 * builtins.c (expand_builtin_mathfn): Update to match.
6328 * optabs.c (extendtab, fixtab, fixtrunctab, floattab): Delete.
6329 (convert_optab_table, new_convert_optab, init_convert_optab)
6330 (init_interclass_conv_libfuncs, init_intraclass_conv_libfuncs)
6331 (set_conv_libfunc): New.
6332 (can_extend_p, gen_extend_insn, can_fix_p, can_float_p)
6333 (expand_float, expand_fix): Use new conversion optabs,
6334 not old insn code tables or long chains of ifs.
6335 (init_optabs): No need to clear old insn code tables.
6336 Initialize the new optabs, not the old libfunc array entries.
6337 Don't handle FIXUNS_TRUNC_LIKE_FIX_TRUNC here.
6338 * genopinit.c: Initialize conversion optabs, not the
6339 former insn code tables. Remove unnecessary casts.
6340 Handle FIXUNS_TRUNC_LIKE_FIX_TRUNC here.
6341 * expr.c (convert_move): Remove redundant check that
6342 to_real==from_real. Use the conversion optabs instead
6343 of long chains of tests of modes. Move partial-integer-mode
6344 interconversion above all integer conversion. Do not recurse
6345 on a value forced into a register in the original mode.
6347 * config/gofast.h, config/frv/frv.c, config/ia64/ia64.c
6348 * config/mips/mips.c, config/pa/pa.c, config/rs6000/rs6000.c
6349 * config/sparc/sparc.c: Use set_conv_libfunc to adjust entries
6350 in new conversion optabs; do not reference the old libfunc
6351 array entries. No need to include libfuncs.h.
6353 2003-10-06 Roger Sayle <roger@eyesopen.com>
6355 * config/i386/i386.c (ix86_expand_setcc): Annotate the floating
6356 point comparison sequence with a REG_EQUAL note that describes
6357 the comparison's semantics.
6359 2003-10-06 Roger Sayle <roger@eyesopen.com>
6361 * expr.c (expand_expr <COND_EXPR>): Handle the void type semantics
6362 of COND_EXPR when expanding the "A op 0 ? FOO : A" optimizations.
6364 2003-10-06 Roger Sayle <roger@eyesopen.com>
6365 Zack Weinberg <zack@codesourcery.com>
6367 * optabs.c (prepare_float_lib_cmp): Avoid searching for REG_RETVAL
6368 instruction by using LCT_CONST and then calling emit_libcall_block
6371 2003-10-06 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
6373 PR optimization/11974
6374 * optabs.c (expand_unop): Promote libcall outmode according to
6377 2003-10-06 Zack Weinberg <zack@codesourcery.com>
6379 * real.h (REAL_MODE_FORMAT): New macro.
6380 * c-cppbuiltin.c, optabs.c, real.c, config/alpha/alpha.c
6381 * config/c4x/c4x.c, config/i370/i370.c, config/i386/freebsd.h
6382 * config/i386/i386.c, config/i960/i960.c, config/ia64/ia64.c
6383 * config/m68k/m68k.c, config/mips/mips.c, config/rs6000/rs6000.c
6384 * config/vax/vax.c: Use REAL_MODE_FORMAT instead of referring
6385 directly to real_format_for_mode array, wherever possible.
6387 2003-10-06 Devang Patel <dpatel@apple.com>
6389 * dwarf2out.c (is_main_source): Remove variable.
6390 (dwarf2out_start_source_file): Do not check is_main_source.
6391 Do not reset is_main_source.
6392 (dwarf2out_init): Do not initialize is_main_source.
6394 2003-10-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6396 * fixinc/inclhack.def (stdio_va_list): Removed _ap fix.
6397 (irix_stdio_va_list): Don't require leading printf, IRIX 6.5.21
6398 introduced some multi-line prototypes.
6399 * fixinc/fixincl.x: Regenerate.
6401 2003-10-06 Richard Sandiford <rsandifo@redhat.com>
6403 * config/mips/mips.h (PREDICATE_CODES): Add stack_operand.
6404 * config/mips/mips.c (stack_operand): New predicate.
6405 * config/mips/mips.md: Use it for the destination of mips16 insns
6408 2003-10-06 Richard Sandiford <rsandifo@redhat.com>
6410 * config/mips/mips.md (*lowsi): Renamed from lowsi.
6411 (*lowdi): Likewise lowdi.
6412 (*lowsi_mips16, *lowdi_mips16): New patterns.
6413 * config/mips/mips.c (mips_const_insns, mips_output_move): Remove
6414 mips16 CONSTANT_RELOC handling.
6415 (mips_delegitimize_address): Adjust for new sdata representation.
6417 2003-10-06 Richard Sandiford <rsandifo@redhat.com>
6419 * config/mips/mips.c (mips_arg_info): If MUST_PASS_IN_STACK,
6420 skip any remaining register arguments.
6422 2003-10-06 Ulrich Weigand <uweigand@de.ibm.com>
6424 * reload.c (find_reloads_subreg_address): Use correct offset for
6425 paradoxical MEM subregs on big-endian targets.
6427 2003-10-06 Andrew Haley <aph@redhat.com>
6429 * tree.c (get_callee_fndecl): Call
6430 lang_hooks.lang_get_callee_fndecl.
6431 * langhooks-def.h (LANG_HOOKS_GET_CALLEE_FNDECL): New.
6432 (lhd_get_callee_fndecl): New.
6434 2003-10-06 Andrew Pinski <apinski@apple.com>
6436 * config/darwin.c (machopic_non_lazy_ptr_name): Fix off by one
6437 error in calculating the length of the string.
6438 (machopic_stub_name): Likewise.
6440 2003-10-06 Roger Sayle <roger@eyesopen.com>
6442 * optabs.c (prepare_float_lib_cmp): Attach a REG_EQUAL note
6443 describing the return value of the comparison libcall to the
6444 REG_RETVAL instruction of the emitted sequence.
6446 2003-10-06 Eric Botcazou <ebotcazou@libertysurf.fr>
6448 PR optimization/12215
6449 * cse.c (cse_set_around_loop): Emit the move at the beginning
6450 of the next basic block for trapping sets.
6452 2003-10-06 Eric Botcazou <ebotcazou@libertysurf.fr>
6454 PR optimization/11637
6455 * combine.c (adjust_for_new_dest): New function to adjust the
6456 notes and LOG_LINKS when the dest of an insn has changed.
6457 (try_combine): Use it when deleting the first insn of a two-insn
6458 parallel or splitting a two-load parallel.
6460 2003-10-06 Richard Sandiford <rsandifo@redhat.com>
6462 * config/mips/mips.c (mips_classify_constant): Only allow UNSPECs
6463 if TARGET_EXPLICIT_RELOCS.
6465 2003-10-06 Mark Mitchell <mark@codesourcery.com>
6468 * Makefile.in (info): Use double-colon rules.
6470 (generated-manpages): Likewise.
6471 * configure.in: Do not create lang.info, lang.dvi, or
6472 lang.generated-manpages hooks.
6473 * configure: Regenerated.
6474 * objc/Make-lang.in (objc.info): Remove.
6476 (objc.generated-manpages): Remove.
6477 * doc/sourcebuild.texi: Update description of info, dvi, and
6478 generated-manpages hooks.
6480 2003-10-06 Richard Sandiford <rsandifo@redhat.com>
6482 * config/mips/mips.md: Merge mips16 lw/srl pattern with its splitter.
6484 2003-10-05 Andrew Pinski <apinski@apple.com>
6486 * config/darwin.c (machopic_non_lazy_ptr_name): Fix off by one
6487 errors in memcpy destinations.
6488 (machopic_stub_name): Likewise.
6490 2003-10-05 Andrew Pinski <apinski@apple.com>
6492 * config/darwin.c (machopic_non_lazy_ptr_name):
6493 Change strcat to memcpy and add length together.
6494 (machopic_stub_name): Likewise.
6496 2003-10-05 Kaz Kojima <kkojima@gcc.gnu.org>
6498 * config/sh/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Handle new
6499 signal trampoline codes.
6501 2003-10-05 Chris Demetriou <cgd@broadcom.com>
6503 * config/mips/mips.md (*divsf3): Move description of
6504 SB-1 F2 erratum from here to...
6505 (divsf3): Here. Disable if TARGET_FIX_SB1 is set and
6506 flag_unsafe_math_optimizations is not.
6508 2003-10-05 Aldy Hernandez <aldyh@redhat.com>
6510 * config/rs6000/linuxspe.h: Define TARGET_SPE_ABI, TARGET_SPE,
6511 TARGET_E500, TARGET_ISEL, and TARGET_FPRS.
6513 2003-10-05 Kazu Hirata <kazu@cs.umass.edu>
6515 * c-pretty-print.c: Fix comment typos.
6516 * c-pretty-print.h: Likewise.
6517 * calls.c: Likewise.
6518 * cfgloopmanip.c: Likewise.
6519 * cgraphunit.c: Likewise.
6520 * cppfiles.c: Likewise.
6521 * final.c: Likewise.
6522 * function.c: Likewise.
6523 * gcov-io.h: Likewise.
6525 * genoutput.c: Likewise.
6527 * postreload.c: Likewise.
6528 * reg-stack.c: Likewise.
6529 * regmove.c: Likewise.
6530 * sched-int.h: Likewise.
6531 * sched-rgn.c: Likewise.
6532 * simplify-rtx.c: Likewise.
6533 * tree-inline.c: Likewise.
6534 * config/m68hc11/m68hc11.h: Likewise.
6535 * config/mmix/mmix.c: Likewise.
6536 * config/mn10300/mn10300.md: Likewise.
6537 * config/sh/sh.h: Likewise.
6539 2003-10-05 Richard Henderson <rth@redhat.com>
6541 * tree-inline.c (remap_type): New.
6542 (remap_decl): Use it. Remap DECL_SIZE*.
6543 (copy_body_r): Use it.
6544 (walk_tree): Walk TREE_TYPE too.
6545 (copy_tree_r): Don't walk subtrees of types.
6546 * tree.c (variably_modified_type_p): Restructure. Consider integer
6547 types with non-const bounds variably modified.
6549 2003-10-05 Kazu Hirata <kazu@cs.umass.edu>
6551 * doc/invoke.texi: Fix typos.
6553 2003-10-05 Kazu Hirata <kazu@cs.umass.edu>
6555 * fold-const.c: Follow spelling conventions.
6556 * function.c: Likewise.
6557 * config/c4x/c4x.h: Likewise.
6558 * config/c4x/c4x.md: Likewise.
6559 * config/frv/frv.md: Likewise.
6560 * config/rs6000/aix.h: Likewise.
6561 * config/rs6000/linux64.h: Likewise.
6562 * config/xtensa/xtensa.c: Likewise.
6564 2003-10-05 Kazu Hirata <kazu@cs.umass.edu>
6566 * c-pretty-print.c: Fix comment formatting.
6567 * cfglayout.c: Likewise.
6568 * cfgloopanal.c: Likewise.
6569 * cppcharset.c: Likewise.
6570 * dbxout.c: Likewise.
6571 * ggc-page.c: Likewise.
6573 * target.h: Likewise.
6575 2003-10-04 Kelley Cook <kelleycook@wideopenwest.com>
6577 * gengtype-lex.l: Recognize typedef of functions without PARAMS macro.
6579 2003-10-04 Nathanael Nerode <neroden@gcc.gnu.org>
6581 * config/v850/v850-c.c, config/v850/v850-protos.h, config/v850/v850.c:
6582 Convert to ISO C90 function declarations and definitions.
6584 2003-10-04 Zack Weinberg <zack@codesourcery.com>
6587 (LTI_eqhf2, LTI_nehf2, LTI_gthf2, LTI_gehf2, LTI_lthf2)
6588 (LTI_lehf2, LTI_unordhf2, LTI_eqsf2, LTI_nesf2, LTI_gtsf2)
6589 (LTI_gesf2, LTI_ltsf2, LTI_lesf2, LTI_unordsf2, LTI_eqdf2)
6590 (LTI_nedf2, LTI_gtdf2, LTI_gedf2, LTI_ltdf2, LTI_ledf2)
6591 (LTI_unorddf2, LTI_eqxf2, LTI_nexf2, LTI_gtxf2, LTI_gexf2)
6592 (LTI_ltxf2, LTI_lexf2, LTI_unordxf2, LTI_eqtf2, LTI_netf2)
6593 (LTI_gttf2, LTI_getf2, LTI_lttf2, LTI_letf2, LTI_unordtf2)
6594 (eqhf2_libfunc, nehf2_libfunc, gthf2_libfunc, gehf2_libfunc)
6595 (lthf2_libfunc, lehf2_libfunc, unordhf2_libfunc, eqsf2_libfunc)
6596 (nesf2_libfunc, gtsf2_libfunc, gesf2_libfunc, ltsf2_libfunc)
6597 (lesf2_libfunc, unordsf2_libfunc eqdf2_libfunc, nedf2_libfunc)
6598 (gtdf2_libfunc, gedf2_libfunc, ltdf2_libfunc, ledf2_libfunc)
6599 (unorddf2_libfunc eqxf2_libfunc, nexf2_libfunc, gtxf2_libfunc)
6600 (gexf2_libfunc, ltxf2_libfunc, lexf2_libfunc, unordxf2_libfunc
6601 (eqtf2_libfunc, netf2_libfunc, gttf2_libfunc, getf2_libfunc)
6602 (lttf2_libfunc, letf2_libfunc, unordtf2_libfunc):
6604 * optabs.h (OTI_eq, OTI_ne, OTI_gt, OTI_ge, OTI_lt, OTI_le)
6605 (OTI_unord, eq_optab, ne_optab, gt_optab, ge_optab, lt_optab)
6606 (le_optab, unord_optab): New.
6608 * optabs.c (prepare_float_lib_cmp): Rewrite. Get the libfuncs
6609 from the code_to_optab table, not a giant switch; use
6610 swap_condition; do widening only if a comparison function that
6611 we can call exists in a wider mode, not if a cmp_optab insn or
6612 libfunc exists in a wider mode; call protect_from_queue
6613 exactly once on each operand.
6614 (init_optabs): Initialize the new optabs, not the deleted libfuncs.
6616 * config/gofast.h, config/ia64/ia64.c, config/mips/mips.c
6617 * config/pa/pa.c, config/rs6000/rs6000.c, config/sparc/sparc.c:
6618 Set floating point comparison libfuncs using set_optab_libfunc
6619 on the appropriate optab.
6621 * config/ia64/ia64.c (ia64_hpux_init_libfuncs): Fix typo.
6622 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Correct ABI
6623 selector conditionals.
6625 2003-10-04 Stephane Carrez <stcarrez@nerim.fr>
6627 * config/m68hc11/t-m68hc11-gas (MULTILIB_MATCHES): m68hcs12 is
6628 identical to m68hc12 as far as libraries are concerned.
6630 2003-10-04 Eric Botcazou <ebotcazou@libertysurf.fr>
6633 * c-typeck.c (convert_for_assignment): Issue an error for
6634 array to pointer assignment after default conversion.
6635 (digest_init): Likewise.
6637 2003-10-04 Fariborz Jahanian <fjahanian@apple.com>
6639 * c-decl.c (duplicate_decls): retain DECL_COMMON of old declaration
6641 2003-10-03 Gerald Pfeifer <gerald@pfeifer.com>
6643 * doc/extend.texi (Function Attributes): Fix title of GNU C
6644 Preprocessor manual.
6645 (C++ Extensions): Fix reference to "Predefined Macros" in the
6646 GNU C Preprocessor manual.
6648 2003-10-04 Richard Earnshaw <reanrsha@arm.com>
6650 * doc/extend.texi: Document how GCC estimates and relies on the size
6653 2003-10-04 Richard Sandiford <rsandifo@redhat.com>
6655 * config/mips/mips.c (mips_pad_arg_upward): Pad floating-point
6656 arguments downward for big-endian o64.
6658 2003-10-03 Robert Bowdidge <bowdidge@apple.com>
6660 * ggc-page.c (ggc_pch_write_object): Replace fseek() with fwrite() in
6661 PCH generation, avoiding too-frequent flushes when writing to NFS
6664 2003-10-03 Ziemowit Laski <zlaski@apple.com>
6666 * objc/objc-act.c (lookup_category): Mark as 'inline'.
6668 2003-10-03 Alexander Malmberg <alexander@malmberg.org>
6669 Ziemowit Laski <zlaski@apple.com>
6671 * objc/objc-act.c (add_method_to_hash_list, lookup_category):
6673 (lookup_method_in_hash_lists): New parameter indicating whether
6674 we are messaging 'Class' or 'id'.
6675 (check_duplicates): Likewise; do not assume all methods will
6676 be either class or instance methods.
6677 (generate_category, finish_class): Use lookup_category().
6678 (add_method): Use add_method_to_hash_list(); insert instance
6679 methods of root classes into the global class method hash table.
6680 (add_category): Use lookup_category(); avoid constructing
6681 duplicate categories.
6682 (really_start_method): Add method to corresponding @interface,
6683 if not already there (and if the @interface exists).
6684 (finish_message_expr, finish_objc): Adjust calls to
6687 2003-10-03 Roger Sayle <roger@eyesopen.com>
6689 PR optimization/9325, PR java/6391
6690 * fold-const.c (fold_convert): For floating point to integer
6691 conversions, return the maximum/minimum representable integer
6692 value if the real constant overflows the destination type.
6693 * tree.c (real_value_from_int_cst): Allow the type to be NULL,
6694 meaning don't truncate the result to a floating point mode.
6695 Simplify the logic by calling real_from_integer directly.
6696 * simplify-rtx.c (simplify_unary_operation): Implement the
6697 same semantics for folding floating point to integer conversions
6700 2003-10-03 Chris Demetriou <cgd@broadcom.com>
6702 * config/mips/mips.c (mips_emit_prefetch): Restructure
6703 to avoid use of arrays, handle indexed prefetch.
6704 * config/mips/mips.h (ISA_HAS_FP4, ISA_HAS_PREFETCH): Update comments.
6705 (ISA_HAS_PREFETCHX): New deffine.
6706 * config/mips/mips.md ("type" attr): Add new "prefetchx" value,
6708 (prefetch_indexed_di, prefetch_indexed_si): New insns.
6710 2003-10-03 Jeff Sturm <jsturm@one-point.com>
6711 Roger Sayle <roger@eyesopen.com>
6713 PR optimization/12289
6714 * calls.c (emit_call_1): Pretend to have popped the arguments
6715 to noreturn and longjmp functions instead of ignoring them.
6716 (expand_call): Don't adjust stack_pointer_dela while
6717 inhibit_defer_pop is set.
6719 2003-10-03 Andreas Schwab <schwab@suse.de>
6722 * configure.in: Check for libunwind on the host only if building
6724 * configure: Regenerated.
6726 2003-10-03 Paolo Carlini <pcarlini@unitus.it>
6728 * unwind-pe.h (read_encoded_value_with_base): Constify u and
6729 its inizialization cast.
6731 2003-10-03 Richard Sandiford <rsandifo@redhat.com>
6734 * config/mips/mips.c (mips_load_got): GOT accesses can't trap.
6736 2003-10-02 Mark Mitchell <mark@codesourcery.com>
6738 PR optimization/12180
6739 * tree-inline.c (inline_forbidden_p_1): Do not permit inlining of
6740 functions containing calls to __builtin_next_arg.
6742 2003-10-02 Chris Demetriou <cgd@broadcom.com>
6744 * config/mips/mips.c (mips_emit_prefetch): Use operand 3
6745 in instructions being output.
6746 * config/mips/mips.md (prefetch_si_address): Change third
6747 operand's constraint letter to 'I'.
6748 (prefetch_di_address): Likewise.
6749 (prefetch_si, prefetch_di): Set third operand to const0_rtx.
6751 2003-10-02 Zack Weinberg <zack@codesourcery.com>
6753 * system.h: Poison macros obsoleted by earlier patch.
6754 * config/cris/cris.c: C90-ify a function definition.
6756 2003-10-02 Josef Zlomek <zlomekj@suse.cz>
6759 * combine.c (make_field_assignment): Check whether rtx's code
6760 is CONST_INT before using INTVAL.
6762 2003-10-02 Josef Zlomek <zlomekj@suse.cz>
6764 * cgraph.c (cgraph_node): Use INSERT instead of 1 in
6765 htab_find_slot_with_hash.
6766 (cgraph_node_for_identifier): Use NO_INSERT.
6767 (cgraph_remove_node): Use NO_INSERT.
6768 (cgraph_varpool_node): Use INSERT.
6769 (cgraph_varpool_node_for_identifier): Use NO_INSERT.
6771 2003-10-02 Josef Zlomek <zlomekj@suse.cz>
6773 Waldek Hebisch <hebisch@math.uni.wroc.pl>
6775 * varasm.c (compare_constant): Fix thinko.
6777 2003-10-02 Richard Sandiford <rsandifo@redhat.com>
6779 * config/frv/frv.c (frv_issue_rate): New function.
6780 (frv_pack_insns): Use it.
6781 (TARGET_SCHED_ISSUE_RATE): Define.
6783 2003-10-02 Steven Bosscher <s.bosscher@student.tudelft.nl>
6785 * config/mcore/mcore.c: Convert to ISO C90 function declarations
6787 * config/mcore/mcore.h: Likewise.
6788 * config/mcore/mcore-protos.h: Likewise.
6790 2003-10-02 Richard Sandiford <rsandifo@redhat.com>
6792 * config/frv/frv.c (frv_use_dfa_pipeline_interface): New function.
6793 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
6795 2003-10-01 Per Bothner <pbothner@apple.com>
6797 * c-lex.c (src_line): Remove unneeded static variable.
6798 (cb_line_change): Set input_line directly, instead of src_line.
6799 (get_non_padding_token): We no longer need to compensate for the
6800 "horrible things" the C++ front-end does with the current line number,
6802 * cpplib.c (_cpp_pop_buffer): Do generate a _cpp_do_file_change
6803 callback even when popping the main file.
6804 * c-lex.c (fe_file_change): Handle a NULL new_map.
6805 * fix-header.c (cb_file_change): Likewise.
6806 * c-ppoutput.c (pp_file_change): Likewise.
6808 * cppinit.c (cpp_read_main_file): Split into two functions:
6809 Distribute _cpp_stack_file call over the two functions.
6810 (cpp_find_main_file): New function.
6811 Don't call _cpp_do_file_change even if working_directory flag set.
6812 (cpp_push_main_file): New function.
6813 * cppfiles.c (_cpp_find_failed): New helper function.
6814 (find_file): Made non-static and renamed to _cpp_find_file.
6815 (_cpp_stack_file): No longer needed. But note the following.
6816 (stack_file): Made non-static and renamed to _cpp_stack_file.
6817 * fix-header.c (cpp_read_main_file): Replace cpp_read_main_file
6818 call with calls to cpp_find_main_file and cpp_push_main_file.
6819 (search_path_head): If there is no current buffer, use main_file.
6820 * cpphash.h: Update function declarations.
6821 * cpplib.h: Update function declarations.
6823 * c-opts.c (c_common_post_options): Don't call cpp_find_main_file yet.
6824 (c_common_parse_file): No longer need to call cpp_read_main_file
6825 when file_index > 0 (as in multi-file or server compiation).
6826 (finish_options): Change to <built-in> is an LC_ENTER, not LC_RENAME
6827 as this now happens before cpp_push_main_file.
6828 (push_command_line_include): When done with options, pass LC_LEAVE
6829 instead of LC_RENAME to cpp_change_file and finally cpp_push_main_file.
6830 (fe_file_change): Handle NULL new_map, and simplify.
6831 * cpplex.c (_cpp_get_fresh_line): Revert my no-longer-needed
6832 08-28 change, since we're never called with a NULL buffer.
6833 (_cpp_lex_direct): Likewise.
6834 * cpptrad.c (_cpp_read_logical_line_trad): Likewise.
6835 Return false if buffer is NULL at end.
6837 * cpplex.c (_cpp_get_fresh_line): Return value now just depends on
6838 whether pfile->buffer is NULL after pop, ignoring return_at_eof.
6839 * cpphash.h (struct cpp_buffer): Remove unused return_at_eof field.
6840 * cpplib.c (cpp_push_buffer): Since we no longer set return_at_eof,
6841 remove the unused return_at_eof parameter.
6842 * cppfiles.c, cpplib.c, cppmacro.c, cpppch.c, fix-header.c:
6843 Update callers of cpp_push_buffer.
6845 2003-10-01 Zack Weinberg <zack@codesourcery.com>
6847 * target.h (init_libfuncs): New hook.
6848 * target-def.h: Default TARGET_INIT_BUILTINS and
6849 TARGET_INIT_LIBFUNCS to hook_void_void. Add
6850 TARGET_INIT_LIBFUNCS to TARGET_INITIALIZER.
6851 * builtins.c (default_init_builtins): Delete.
6852 * expr.h (default_init_builtins): Delete prototype.
6853 * doc/tm.texi: Document TARGET_INIT_LIBFUNCS and US_SOFTWARE_GOFAST.
6854 Tweak documentation of TARGET_FLOAT_LIB_COMPARE_RETURNS_BOOL.
6855 Remove documentation of INIT_TARGET_OPTABS, MULSI3_LIBCALL,
6856 DIVSI3_LIBCALL, UDIVSI3_LIBCALL, MODSI3_LIBCALL, UMODSI3_LIBCALL,
6857 MULDI3_LIBCALL, DIVDI3_LIBCALL, UDIVDI3_LIBCALL, MODDI3_LIBCALL,
6858 and UMODDI3_LIBCALL,
6860 * Makefile.in (optabs.o): Depends on target.h.
6861 * defaults.h: Provide default for FLOAT_LIB_COMPARE_RETURNS_BOOL.
6862 * optabs.c: Include target.h.
6863 (prepare_float_lib_cmp): No need for #ifdef around use of
6864 FLOAT_LIB_COMPARE_RETURNS_BOOL.
6865 (set_optab_libfunc): New function.
6866 (init_optabs): Delete use of all *_LIBCALL defines.
6867 Call targetm.init_libfuncs not INIT_TARGET_OPTABS.
6868 * optabs.h: Prototype set_optab_libfunc.
6870 * config.gcc: Remove all references to pa/long_double.h,
6871 ia64/hpux_longdouble.h, and gofast.h.
6872 (mips-*-*): When --enable-gofast, just add US_SOFTWARE_GOFAST
6873 to tm_defines; don't set INIT_SUBTARGET_OPTABS or change tm_file.
6875 * config/alpha/alpha.c, config/c4x/c4x.c, config/cris/cris.c
6876 * config/frv/frv.c, config/h8300/h8300.c, config/i860/i860.c
6877 * config/ia64/ia64.c, config/ip2k/ip2k.c, config/m68hc11/m68hc11.c
6878 * config/mips/mips.c, config/pa/pa.c, config/rs6000/rs6000.c
6879 * config/sparc/sparc.c, config/vax/vax.c:
6880 Provide a definition for TARGET_INIT_LIBFUNCS. Where
6881 necessary, include optabs.h, libfuncs.h, and/or config/gofast.h.
6883 * config/alpha/unicosmk.h, config/alpha/vms.h, config/c4x/c4x.h
6884 * config/avr/avr.h, config/cris/cris.h, config/frv/frv.h
6885 * config/h8300/h8300.h, config/i860/i860.h, config/ip2k/ip2k.h
6886 * config/iq2000/iq2000.h, config/m68hc11/m68hc11.h, config/mips/mips.h
6887 * config/rs6000/aix.h, config/rs6000/sysv4.h, config/sparc/elf.h
6888 * config/sparc/lite.h, config/sparc/netbsd-elf.h, config/sparc/sol2.h
6889 * config/sparc/sparc.h, config/v850/v850.h, config/vax/vax.h
6890 * config/vax/elf.h: Don't define or use INIT_TARGET_OPTABS,
6891 INIT_SUBTARGET_OPTABS, or any *_LIBCALL macros.
6893 * config/ia64/hpux.h: Redefine INTEL_EXTENDED_IEEE_FORMAT to 0.
6894 Set TARGET_INIT_LIBFUNCS and FLOAT_LIB_COMPARE_RETURNS_BOOL here.
6895 * config/pa/pa-hpux.h: Define LONG_DOUBLE_TYPE_SIZE,
6896 HPUX_LONG_DOUBLE_LIBRARY, and FLOAT_LIB_COMPARE_RETURNS_BOOL here.
6897 * config/ia64/hpux_longdouble.h, config/pa/long_double.h: Delete.
6899 * config/rs6000/xcoff.h: Don't define RS6000_ITRUNC nor RS6000_UITRUNC.
6900 * config/sparc/sparc.h: Default SUN_CONVERSION_LIBFUNCS and
6901 SUN_INTEGER_MULTIPLY_64 to 0.
6902 * config/sparc/sol2.h: Redefine SUN_CONVERSION_LIBFUNCS and
6903 SUN_INTEGER_MULTIPLY_64 to 1.
6904 * config/sparc/elf.h: Redefine SUN_CONVERSION_LIBFUNCS and
6905 SUN_INTEGER_MULTIPLY_64 to 0.
6906 * config/sparc/lite.h, config/sparc/liteelf.h, config/sparc/sp86x-elf.h:
6907 Define US_SOFTWARE_GOFAST.
6908 * config/vax/vax.h: Default TARGET_ELF to 0.
6909 * config/vax/elf.h: Redefine TARGET_ELF to 1.
6911 * config/gofast.h: Don't define any macros here. Provide one
6912 static function, gofast_maybe_init_libfuncs, which does what
6913 INIT_GOFAST_LIBFUNCS used to do but only if US_SOFTWARE_GOFAST
6914 is already defined. Do not clear negation libfuncs. Do
6915 not mess with HFmode, XFmode, or TFmode libfuncs.
6917 * config/avr/avr.c (avr_init_once): #if 0 out; mark FIXME.
6919 2003-10-01 Kelley Cook <kelleycook@wideopenwest.com>
6922 * c-parse.in (parmlist_2): Mark declaration with an ellipsis as ISO C.
6924 2003-10-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6926 * config/mips/xm-iris5.h: Remove, unnecessary.
6927 * config.build (mips-sgi-irix5*): Remove.
6928 (mips-sgi-irix6*o32): Likewise.
6929 * config.gcc (mips-sgi-irix6*o32): Remove xm_file.
6930 (mips-sgi-irix5cross64): Likewise.
6931 (mips-sgi-irix5*): Likewise.
6932 * config.host (mips-sgi-irix5*): Remove.
6933 (mips-sgi-irix6*o32): Likewise.
6935 2003-10-01 Zack Weinberg <zack@codesourcery.com>
6937 * dbxout.c (dbxout_fptype_value): Delete.
6938 (dbxout_type): Emit R3 for all COMPLEX_TYPEs.
6940 2003-10-01 Alexandre Oliva <aoliva@redhat.com>
6942 * output.h (compute_reloc_for_constant): Declare.
6943 * varasm.c (compute_reloc_for_constant): Extract from...
6944 (output_addressed_constants): ... here. Adjust all callers.
6946 2003-10-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6948 * aclocal.m4: Add hpux10* and hpux11.00 to /dev/zero blacklist.
6949 * configure: Rebuilt.
6951 2003-10-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6953 * fold-const.c (make_range): When handling unsigned, don't reverse
6954 range if high bound is zero.
6956 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
6958 * config/frv/frv.h (PREDICATE_CODES): Added
6959 condexec_si_media_operator, condexec_sf_add_operator and
6960 condexec_sf_conv_operator. Removed condexec_sf_binary_operator
6961 and condexec_sf_unary_operator.
6963 2003-10-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6965 * aclocal.m4: Add ultrix* to /dev/zero blacklist.
6966 * configure: Rebuilt.
6968 2003-10-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6970 * except.h (MUST_USE_SJLJ_EXCEPTIONS): Revert 2003-09-23 change.
6972 * doc/tm.texi (MUST_USE_SJLJ_EXCEPTIONS): Document.
6974 2003-09-23 David S. Miller <davem@redhat.com>
6976 * config/sparc/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Undefine
6978 * config/sparc/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
6980 2003-10-01 Steven Bosscher <steven@gcc.gnu.org>
6982 * config/cris/cris-protos.h, config/cris/cris.c: Convert to ISO
6983 C90 function declarations and definitions.
6985 2003-10-01 Nathanael Nerode <neroden@gcc.gnu.org>
6987 * config.gcc (cris-*-linux*): Revert mistaken commit.
6989 2003-10-01 Eric Botcazou <ebotcazou@libertysurf.fr>
6991 PR optimization/11753
6992 * config/sparc/sparc.md (length attribute) [fcc branch]: Add 1 to
6993 the length in the non-V9 case.
6995 2003-09-30 Richard Henderson <rth@redhat.com>
6997 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Honor
6998 DWARF_ALT_FRAME_RETURN_COLUMN.
6999 * unwind-dw2.c (dwarf_reg_size_table): Expand by one.
7000 (_Unwind_GetGR, _Unwind_SetGR): Validate lookup column.
7001 (uw_frame_state_for): Return end-of-stack for null return address.
7002 * doc/tm.texi (DWARF_ALT_FRAME_RETURN_COLUMN): Add.
7004 * config/alpha/alpha.c (alpha_sa_mask): Add r31 for eh_return.
7005 (alpha_expand_prologue): Store a zero for it.
7006 (alpha_expand_epilogue): Don't reload it.
7007 * config/alpha/alpha.h (DWARF_ALT_FRAME_RETURN_COLUMN): New.
7008 * config/alpha/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Use column 64
7009 for the sigframe return address.
7011 2003-09-30 Kelley Cook <kelleycoook@wideopenwest.com>
7013 * sdbout.c: Convert to ISO C90 prototypes.
7014 * objc/objc-act.c: Likewise.
7016 2003-09-30 Kelley Cook <kelleycoook@wideopenwest.com>
7018 * config/i386/cygwin1.c: Convert to ISO C90 prototypes.
7019 * config/i386/winnt.c: Likewise.
7020 * config/i386/cygming.h: Likewise.
7022 2003-09-30 Kazu Hirata <kazu@cs.umass.edu>
7024 * fold-const.c (fold): Fold (A & ~B) - (A & B) into
7025 (A ^ B) - B for any B.
7027 2003-09-30 Nathanael Nerode <neroden@gcc.gnu.org>
7029 * config.gcc (arm*-*-kaos*, i[34567]86-*-kaos*, powerpc-*-kaos*,
7030 powerpcle-*-kaos*, strongarm-*-kaos*): Disable fixproto.
7032 2003-09-30 Richard Earnshaw <rearnsha@arm.com>
7034 * arm/ieee754-sf.S: Tidy formatting.
7036 2003-09-30 Nicolas Pitre <nico@cam.org>
7038 * arm/lib1funcs.asm (ARM_DIV_MOD_BODY): Split into ARM_DIV_BODY
7040 (ARM_MOD_BODY): Rewritten. added clz insns for __ARM_ARCH__ >= 5.
7041 (ARM_DIV_BODY): Added clz insns for __ARM_ARCH__ >= 5,
7042 added better divisor alignment in the other case.
7043 (ARM_DIV2_ORDER): Added, finds the order of a single bit divisor.
7044 (__divsi3, __udivsi3, __modsi3, __umodsi3): rewritten using the
7045 macros above, add fast exits for divisor >= dividend, etc.
7047 2003-09-30 Nicolas Pitre <nico@cam.org>
7049 * arm/ieee754-df.S: Split compilation of fixunsdfsi from
7051 * arm/t-arm-elf (LIB1ASMFUNCS): Add _fixunsdfsi.
7053 2003-09-30 Nathanael Nerode <neroden@gcc.gnu.org>
7055 * config.gcc: Default use_fixproto to 'no'.
7057 2003-09-30 Richard Sandiford <rsandifo@redhat.com>
7059 PR optimization/12345
7060 * config/mips/mips-protos.h (mips_restore_gp): Remove.
7061 (mips_gp_save_slot): Declare.
7062 * config/mips/mips.c (mips_restore_gp): Remove in favor of...
7063 (mips_gp_save_slot): ...this new function.
7064 * config/mips/mips.md (exception_receiver): Use mips_gp_save_slot
7065 and mips_output_move to generate the output template.
7066 (call_internal): Force splitting if TARGET_SPLIT_CALLS. Don't emit
7067 a gp load after a noreturn call. Load the gp using a move rather
7068 than an exception_receiver pattern.
7069 (call_value_internal, call_value_multiple_internal): Likewise.
7070 (call_split, call_value_split, call_value_multiple_split): Clobber $28.
7072 2003-09-30 Carlo Wood <carlo@alinoe.com>
7075 * cfglayout.c (insn_scope): Use prologue_locator and
7076 epilogue_locator; return the outer function scope for
7077 pro- and epilogue insns.
7079 2003-09-29 Zack Weinberg <zack@codesourcery.com>
7081 * objc/objc-act.c (encode_type): Encode INTEGER_TYPEs and
7082 REAL_TYPEs based on the bitsize of the type's mode, not the
7085 2003-09-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7087 * dwarf2out.c (default_eh_frame_section): Split into ...
7088 (named_section_eh_frame_section, collect2_eh_frame_section): ... new
7090 * output.h (named_section_eh_frame_section): Declare.
7091 (collect2_eh_frame_section): Likewise.
7093 2003-09-29 Zack Weinberg <zack@codesourcery.com>
7095 * real.c (real_sqrt): Use get_canonical_qnan directly.
7097 * dwarf2out.c (add_const_value_attribute): Use real_to_target.
7099 * varasm.c (assemble_real): Use real_to_target directly,
7100 calculate the number of significant elements of the result
7101 array and write them out in a loop, instead of using a giant
7102 switch statement to pick the correct REAL_VALUE_TO_TARGET_*
7105 2003-09-29 Jan Hubicka <jh@suse.cz>
7108 * varasm.c (notice_global_symbol): Discard external symbols.
7110 PR optimization/12286
7111 * gcov-io.c (gcov_read_words): Fix memmove call.
7112 * profile.c (compute_branch_probabilities): Add extra sanity checks.
7114 2003-09-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7116 * config.gcc (sparc-*-solaris2*): Handle Solaris 10 and up like
7119 * fixinc/inclhack.def (solaris_widec): Replace solaris2.[0-5]* by
7120 wildcards which explicitly match micro versions.
7121 * fixinc/fixincl.x: Regenerate.
7123 2003-09-29 Kazu Hirata <kazu@cs.umass.edu>
7125 * fold-const.c (fold): Fold (A & ~B) - (A & B) into
7126 (A ^ B) - B, where B is any power of 2 minus 1.
7128 2003-09-29 Jan Hubicka <jh@suse.cz>
7130 * libgcov.c (gcov_exit): Fix two pastos.
7132 2003-09-29 Kazu Hirata <kazu@cs.umass.edu>
7134 * config/h8300/h8300.md (*tst_extzv_1_n): Combine with the
7135 define_split immediately below to form define_insn_and_split.
7137 2003-09-29 Kazu Hirata <kazu@cs.umass.edu>
7139 * config/h8300/h8300.md (*tstsi_variable_bit): New.
7140 (*tstsi_variable_bit_qi): Likewise.
7142 2003-09-28 Phil Edwards <phil@codesourcery.com>
7144 * doc/cppopts.texi: Use 'dashMP' instead of '-MP' as a cross-
7147 2003-09-28 Richard Henderson <rth@redhat.com>
7149 * c-decl.c (duplicate_decls): Copy DECL_SOURCE_LOCATION, not
7150 file and line separately.
7152 2003-09-28 Ulrich Weigand <uweigand@de.ibm.com>
7154 * config/s390/s390.md ("*adddi3_carry1_cc", "*adddi3_carry1_cconly",
7155 "*adddi3_carry2_cc", "*adddi3_carry2_cconly", "*subdi3_borrow_cc",
7156 "*subdi3_borrow_cconly"): New insns.
7157 ("*addsi3_sub", "*subsi3_sub"): Remove.
7158 ("*subdi3_cc", *subdi3_cconly"): Use only if TARGET_64BIT.
7159 ("*subsi3_cc"): Fix op_type attribute.
7161 2003-09-28 Richard Henderson <rth@redhat.com>
7163 * stmt.c (expand_asm_operands): Take a location_t, instead of
7164 individual file and line.
7165 * c-typeck.c (c_expand_asm_operands): Likewise.
7166 * tree.h (expand_asm_operands): Update decl.
7167 * c-common.h (c_expand_asm_operands): Likewise.
7168 * c-semantics (genrtl_asm_stmt): Update call.
7170 2003-09-28 Philip Blundell <philb@gnu.org>
7172 * config/arm/arm.c (legitimize_pic_address): Check
7173 SYMBOL_REF_LOCAL_P, not ENCODED_SHORT_CALL_ATTR_P.
7174 (arm_assemble_integer): Likewise.
7176 2003-09-28 Steven Bosscher <steven@gcc.gnu.org>
7178 * config/pdp11/pdp11-protos.h, config/pdp11/pdp11.c,
7179 config/c4x/c4x-c.c, config/c4x/c4x-protos.h, config/c4x/c4x.c,
7181 Convert to ISO C90 function declarations and definitions.
7183 2003-09-28 Steven Bosscher <steven@gcc.gnu.org>
7185 * config/stormy16/stormy16.c, config/stormy16/stormy16-protos.h:
7186 Convert to ISO C90 function declarations and definitions.
7188 2003-09-28 Richard Sandiford <rsandifo@redhat.com>
7190 * config/mips/mips.c (mips_constant_info): Add reloc field.
7191 (mips_classify_constant): Initialize it. Always set SYMBOL to the
7192 underlying symbol, not to an unspec.
7193 (mips_delegitimize_address, print_operand): Clean up accordingly.
7195 2003-09-28 Richard Sandiford <rsandifo@redhat.com>
7197 * config/mips/mips-protos.h (mips16_gp_pseudo_reg): Remove.
7198 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Remove orphaned comment.
7199 * config/mips/mips.c (mips_reloc_offset_ok_p): New function.
7200 (mips_classify_constant): Use it.
7201 (mips_splittable_symbol_p): Add an offset argument.
7202 (mips_classify_address): Adjust call accordingly.
7203 (mips_legitimize_symbol): Handle sdata references with LO_SUM rather
7204 than a relocation unspec. Update call to mips_splittable_symbol_p.
7205 Generalize the code that copes with symbols + invalid offsets.
7206 (print_operand): Allow '%R' to be applied to small data addresses.
7207 (mips_reloc_string): Remove RELOC_GPREL16.
7208 (mips_sdata_pointer): Renamed from mips16_gp_pseudo_reg. Return $gp
7209 for TARGET_EXPLICIT_RELOCS. Return null if we can't use gp-relative
7210 relocation operators.
7211 * config/mips/mips.md (RELOC_GPREL16): Remove. Shuffle other reloc
7212 constants accordingly.
7214 2003-09-27 Roger Sayle <roger@eyesopen.com>
7216 * toplev.c (flag_evaluation_order): New global variable.
7217 * flags.h (flag_evaluation_order): Prototype here.
7218 * expr.c (expand_operands): If we need to preserve observable
7219 evaluation order, protect exp1 from clobbering exp0's result.
7221 2003-09-28 Andreas Jaeger <aj@suse.de>
7223 * c-decl.c (finish_function): Convert definition to ISO C90.
7224 * ifcvt.c (mark_loop_exit_edges): Likewise.
7225 * ra-rewrite.c (emit_colors): Likewise.
7227 2003-09-27 Nathanael Nerode <neroden@gcc.gnu.org>
7229 * config.gcc (alpha*-dec-osf[45]*): Disable fixproto.
7230 * config.gcc (arm*-*-uclinux*): Disable fixproto.
7231 * config.gcc (powerpc-*-eabispe*, powerpc-*-eabisimaltivec*,
7232 powerpc-*-eabialtivec*): Disable fixproto.
7234 2003-09-27 Eric Botcazou <ebotcazou@libertysurf.fr>
7236 PR optimization/12340
7237 * loop.h (struct induction): Document the new semantics
7238 of the 'same' field for bivs.
7239 * unroll.c (biv_total_increment): Don't count the same
7240 biv increment several times.
7241 (loop_iterations) [GENERAL_INDUCT]: Likewise.
7243 2003-09-27 Graham Stott <graham.stott@btinternet.com>
7245 * unroll.c (loop_interations)[GT]: Add missing break.
7247 2003-09-27 Kelley Cook <kcook@gcc.gnu.org>
7249 * config/chorus.h, config/darwin-c.c, config/darwin-protos.h,
7250 config/darwin.c, config/darwin.h, config/dbx.h, config/dbxcoff.h,
7251 config/dbxelf.h, config/elfos.h, config/fp-bit.h,
7252 config/freebsd-nthr.h, config/freebsd-spec.h, config/freebsd.h,
7253 config/freebsd3.h, config/freebsd4.h, config/freebsd5.h,
7254 config/freebsd6.h, config/netbsd-aout.h, config/netbsd-elf.h,
7255 config/netbsd.h, config/netware.h, config/openbsd-oldgas.h,
7256 config/openbsd.h, config/ptx4.h, config/alpha/alpha-protos.h,
7257 config/alpha/alpha.c, config/alpha/alpha.h, config/alpha/alpha.md,
7258 config/alpha/elf.h, config/alpha/ev4.md, config/alpha/ev5.md,
7259 config/alpha/ev6.md, config/alpha/freebsd.h, config/alpha/linux-elf.h,
7260 config/alpha/linux.h, config/alpha/netbsd.h, config/alpha/openbsd.h,
7261 config/alpha/osf.h, config/alpha/osf5.h, config/alpha/unicosmk.h,
7262 config/alpha/vms-cc.c, config/alpha/vms-crt0-64.c,
7263 config/alpha/vms-crt0.c, config/alpha/vms-dwarf2.asm,
7264 config/alpha/vms-dwarf2eh.asm, config/alpha/vms-ld.c,
7265 config/alpha/vms-psxcrt0-64.c, config/alpha/vms-psxcrt0.c,
7266 config/alpha/vms.h, config/alpha/vms64.h, config/alpha/vms_tramp.asm,
7267 config/alpha/xm-vms.h, config/arc/arc-modes.def,
7268 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
7269 config/arc/arc.md, config/arc/initfini.c, config/arc/lib1funcs.asm,
7270 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
7271 config/avr/avr.md, config/d30v/d30v-protos.h, config/d30v/d30v.h,
7272 config/d30v/d30v.md, config/fr30/fr30-protos.h, config/fr30/fr30.c,
7273 config/fr30/fr30.h, config/fr30/fr30.md, config/fr30/lib1funcs.asm,
7274 config/frv/cmovd.c, config/frv/cmovh.c, config/frv/cmovw.c,
7275 config/frv/frv-abi.h, config/frv/frv-asm.h, config/frv/frv-modes.def,
7276 config/frv/frv-protos.h, config/frv/frv.c, config/frv/frv.h,
7277 config/frv/frv.md, config/frv/frvbegin.c, config/frv/frvend.c,
7278 config/frv/lib1funcs.asm, config/h8300/clzhi2.c, config/h8300/ctzhi2.c,
7279 config/h8300/parityhi2.c, config/h8300/popcounthi2.c,
7280 config/i370/i370-c.c, config/i370/i370-protos.h, config/i370/i370.c,
7281 config/i370/i370.h, config/i370/i370.md, config/i370/linux.h,
7282 config/i370/mvs.h, config/i370/oe.h, config/i386/darwin.h,
7283 config/i960/i960-c.c, config/i960/i960-coff.h,
7284 config/i960/i960-modes.def, config/i960/i960-protos.h,
7285 config/i960/i960.c, config/i960/i960.h, config/i960/i960.md,
7286 config/i960/rtems.h, config/ia64/elf.h, config/ia64/ia64.h,
7287 config/m32r/initfini.c, config/m32r/m32r-protos.h, config/m32r/m32r.c,
7288 config/m32r/m32r.h, config/m32r/m32r.md, config/m68hc11/larith.asm,
7289 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
7290 config/m68hc11/m68hc11.h, config/m68hc11/m68hc11.md,
7291 config/m68hc11/m68hc12.h, config/m68k/coff.h, config/m68k/crti.s,
7292 config/m68k/crtn.s, config/m68k/hp320.h, config/m68k/hp320base.h,
7293 config/m68k/lb1sf68.asm, config/m68k/linux.h, config/m68k/m68020-elf.h,
7294 config/m68k/m68k-aout.h, config/m68k/m68k-none.h,
7295 config/m68k/m68k-protos.h, config/m68k/m68k.c, config/m68k/m68k.h,
7296 config/m68k/m68k.md, config/m68k/m68kelf.h, config/m68k/m68kv4.h,
7297 config/m68k/netbsd-elf.h, config/m68k/openbsd.h,
7298 config/m68k/rtemself.h, config/m68k/sgs.h, config/mcore/lib1.asm,
7299 config/mcore/mcore-elf.h, config/mcore/mcore-pe.h,
7300 config/mcore/mcore-protos.h, config/mcore/mcore.c,
7301 config/mcore/mcore.md, config/mips/elf.h, config/mips/elf64.h,
7302 config/mips/elforion.h, config/mips/iris5.h, config/mips/iris6.h,
7303 config/mips/iris6gld.h, config/mips/irix6-libc-compat.c,
7304 config/mips/linux.h, config/mips/mips-protos.h, config/mips/mips.c,
7305 config/mips/mips.h, config/mips/mips.md, config/mips/netbsd.h,
7306 config/mips/openbsd.h, config/mips/r3900.h, config/mips/rtems.h,
7307 config/mips/vr.h, config/mn10300/linux.h,
7308 config/mn10300/mn10300-protos.h, config/mn10300/mn10300.c,
7309 config/mn10300/mn10300.h, config/mn10300/mn10300.md,
7310 config/ns32k/__unorddf2.c, config/ns32k/__unordsf2.c,
7311 config/ns32k/netbsd.h, config/ns32k/ns32k-protos.h,
7312 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/ns32k/ns32k.md,
7313 config/pdp11/2bsd.h, config/pdp11/pdp11-modes.def,
7314 config/pdp11/pdp11-protos.h, config/pdp11/pdp11.c,
7315 config/pdp11/pdp11.h, config/pdp11/pdp11.md, config/rs6000/biarch64.h,
7316 config/rs6000/default64.h, config/sh/coff.h, config/sh/crt1.asm,
7317 config/sh/crti.asm, config/sh/crtn.asm, config/sh/elf.h,
7318 config/sh/embed-elf.h, config/sh/linux.h, config/sh/little.h,
7319 config/sh/netbsd-elf.h, config/sh/rtems.h, config/sh/rtemself.h,
7320 config/sh/sh-protos.h, config/sh/sh.c, config/sh/sh.h,
7321 config/sh/sh.md, config/sh/sh64.h, config/sh/shmedia.h,
7322 config/sh/sshmedia.h, config/sh/ushmedia.h, config/sparc/pbd.h,
7323 config/sparc/sparc.h, doc/install-old.texi, fixinc/fixinc.ptx,
7324 fixinc/fixinc.svr4: GNU CC -> GCC.
7326 2003-09-26 Loren James Rittle <ljrittle@acm.org>
7328 * objc/objc-act.c (tm_p.h): Tweak order.
7329 * objc/Make-lang.in (objc/objc-act.o): Add $(TM_P_H).
7331 2003-09-26 Nathanael Nerode <neroden@gcc.gnu.org>
7333 * config.gcc (hppa*64*-*-linux* | parisc*64*-*-linux*):
7334 Include t-slibgcc-elf-ver and t-linux in tmake_file.
7335 * config.gcc (hppa*64*-*-linux* | parisc*64-*-linux*):
7337 * config.gcc (i960-*-coff*, m68k-*-aout*, sparclite-*-coff*):
7339 * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*,
7340 sparcv9-*-solaris2*, sparc-*-solaris2*): Disable fixproto.
7342 * config/i386/unix.h: Remove (unused) DEFAULT_ASSEMBLER_DIALECT.
7344 2003-09-26 Loren James Rittle <ljrittle@acm.org>
7346 * config/i386/i386.h (ix86_return_in_memory): Revert my last patch.
7347 * objc/objc-act.c (tm_p.h): Include.
7349 2003-09-26 Per Bothner <pbothner@apple.com>
7351 * dbxout.c (dbxout_typedefs): Output typedefs in forward order.
7352 No longer any need to reverse by recursion.
7354 2003-09-26 Roger Sayle <roger@eyesopen.com>
7355 Richard Henderson <rth@redhat.com>
7357 PR optimization/11741
7358 * gcse.c (pre_insert_copy_insn): Tweak the logic for finding the
7359 appropriate set to match that in hash_scan_insn. Fall back to
7360 the original copy method, if we can't validate changing insn.
7361 (pre_delete): Only delete instructions that have a single_set,
7362 instead of aborting when we encounter an PARALLEL insn with more
7365 2003-09-26 Andreas Krebbel <krebbel1@de.ibm.com>
7367 * config/s390/s390.md ("builtin_setjmp_setup"): Insn deleted.
7368 ("builtin_longjmp"): Insn deleted.
7369 ("save_stack_nonlocal"): Save literal pool base pointer behind
7370 backchain and stack pointer.
7371 ("restore_stack_nonlocal"): Restore literal pool base pointer.
7372 * config/s390/s390.h (STACK_SAVEAREA_MODE): Double size of
7373 the stack save area for the nonlocal goto case.
7375 2003-09-26 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7378 * pa.c (output_bvb): Fix typo.
7380 2003-09-26 Richard Sandiford <rsandifo@redhat.com>
7382 * expmed.c (store_bit_field): Don't search for an integer mode
7383 unless we need the result.
7385 2003-09-26 Richard Sandiford <rsandifo@redhat.com>
7387 * expr.c (emit_move_insn_1): If there is no move pattern for the
7388 original mode, try using a pattern for the corresponding integer mode.
7390 2003-09-26 Richard Sandiford <rsandifo@redhat.com>
7393 * combine.c (if_then_else_cond): Tighten mode check.
7395 2003-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
7397 * cppcharset.c, cpphash.h: Rename 'struct strbuf' to
7398 'struct _cpp_strbuf'.
7400 * config/i386/netbsd-elf.h, config/i386/netbsd64.h,
7401 config/i386/netware.h, config/i386/nto.h, config/i386/openbsd.h,
7402 config/i386/pentium.md, config/i386/pmmintrin.h, config/i386/ppro.md,
7403 config/i386/ptx4-i.h, config/i386/rtemself.h, config/i386/sco5.h,
7404 config/i386/sol2.h, config/i386/svr3gas.h, config/i386/sysv3.h,
7405 config/i386/sysv4-cpp.h, config/i386/sysv4.h, config/i386/sysv5.h,
7406 config/i386/unix.h, config/i386/uwin.h, config/i386/vsta.h,
7407 config/i386/xm-cygwin.h, config/i386/xm-djgpp.h,
7408 config/i386/xm-mingw32.h, config/i386/xmmintrin.h: Replace
7409 "GNU CC", "GNU compiler", and "GNU C-compiler" with "GCC".
7410 * config/i386/i386-aout.h, config/i386/i386-coff.h,
7411 config/i386/i386-interix.h, config/i386/i386-interix3.h,
7412 config/i386/i386-modes.def, config/i386/i386-protos.h,
7413 config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
7414 config/i386/i386elf.h, config/i386/k6.md, config/i386/kaos-i386.h,
7415 config/i386/linux-aout.h, config/i386/linux.h, config/i386/linux64.h,
7416 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mingw32.h,
7417 config/i386/mmintrin.h, config/i386/moss.h: GNU CC -> GCC.
7418 "GNU compiler" -> GCC.
7419 * config/i386/att.h, config/i386/beos-elf.h, config/i386/biarch64.h,
7420 config/i386/bsd.h, config/i386/crtdll.h, config/i386/cygming.h,
7421 config/i386/cygwin.h, config/i386/cygwin1.c, config/i386/cygwin2.c,
7422 config/i386/darwin.h, config/i386/djgpp.h, config/i386/emmintrin.h,
7423 config/i386/freebsd-aout.h, config/i386/freebsd.h,
7424 config/i386/freebsd64.h, config/i386/gas.h: GNU CC -> GCC.
7426 2003-09-25 Kelley Cook <kelleycook@wideopenwest.com>
7428 * cgraph.c (dump_cgraph): Don't output newline before dump. Add in
7429 "local" to the callgraph dump. Output "after inlining" earlier.
7430 * cgraphunit.c: Fix dumpfile whitespace and commonize headers of the
7431 callgraph dumps. Correct misspellings.
7432 (cgraph_decide_inlining): Output number of insns before inlining.
7433 Output the calling function into which a function is inlined.
7434 (cgraph_decide_small_functions): Format dump file like always_inline.
7436 2003-09-25 Loren James Rittle <ljrittle@acm.org>
7438 * config/i386/i386.h (ix86_return_in_memory): Add prototype.
7440 2003-09-25 Ulrich Weigand <uweigand@de.ibm.com>
7442 * config/s390/s390.c (s390_emit_prologue): Simplify accesses to
7443 FPR slots in the save area.
7444 (s390_emit_epilogue): Likewise.
7446 2003-09-25 Richard Sandiford <rsandifo@redhat.com>
7448 * cgraph.h (cgraph_remove_edge): Declare.
7449 * cgraph.c (cgraph_remove_edge): Make extern.
7450 * cgraphunit.c (cgraph_finalize_function): Call cgraph_remove_edge
7451 instead of cgraph_remove_call.
7453 2003-09-25 Ulrich Weigand <uweigand@de.ibm.com>
7455 * objc/objc-act.c (gen_declaration_1): Fix printf format.
7457 2003-09-25 Richard Earnshaw <rearnsha@arm.com>
7459 * arm.c (all_cores): arm710t, arm720t and arm740t are all based on the
7462 2003-09-25 Ziemowit Laski <zlaski@apple.com>
7464 * config/darwin-protos.h (objc_image_info_section):
7467 2003-09-25 Ziemowit Laski <zlaski@apple.com>
7469 * Makefile.in (stub-objc.o): Depend on $(GGC_H).
7471 2003-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
7473 * config.gcc: Get rid of more gratuitious 'x'es. Actually allow
7474 tsc701 as a --with-cpu, --with-tune setting for sparc.
7476 2003-09-25 Ziemowit Laski <zlaski@apple.com>
7478 * c-parse.in (objc_try_stmt): Do not specify a %type.
7480 2003-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
7482 * config.gcc: New 'widely ported system' clause for rtems.
7483 Set thread file there, not in individual clauses.
7485 2003-09-25 Richard Sandiford <rsandifo@redhat.com>
7488 * config/mips/mips.c (mips_va_arg): Handle arguments that must be
7489 passed on the stack.
7491 2003-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
7493 * config.gcc (widely ported systems section): Mostly alphabetize
7494 by system. Comment the case where we can't.
7495 * config.gcc (widely ported systems section): Reindent and clean up.
7497 * config.gcc: Remove some unnecessary uses of 'x' in case statements.
7498 Actually allow ep9312 as an arm --with-arch setting.
7500 * config.gcc (*-hpux11): Disable fixproto.
7502 2003-09-24 Phil Edwards <phil@codesourcery.com>
7505 * gcc/cppfiles.c (pch_open_file): Return based on combined
7506 result of all files.
7507 (validate_pch): Return validate flag for current file.
7509 2003-09-24 Roger Sayle <roger@eyesopen.com>
7512 * fold-const.c (tree_swap_operands_p): Only reorder operands when
7513 one of the operands is constant.
7515 2003-09-24 Ziemowit Laski <zlaski@apple.com>
7517 MERGE OF objc-improvements-branch into MAINLINE:
7518 * Makefile.in (C_OBJS): Add in stub-objc.o.
7519 (c-parse.y): Change sed demarcations to begin with '@@'.
7520 (stub-objc.o): New rule.
7521 * c-common.c (flag_nil_receivers, flag_objc_exceptions, flag_zero_link,
7522 flag_replace_objc_classes): New flags.
7523 * c-common.h (RID_AT_THROW, RID_AT_TRY, RID_AT_CATCH, RID_AT_FINALLY,
7524 RID_AT_SYNCHRONIZED): New keywords.
7525 (flag_nil_receivers, flag_objc_exceptions, flag_zero_link,
7526 flag_replace_objc_classes): New flags.
7527 (lookup_interface, is_class_name, objc_is_object_ptr, objc_check_decl,
7528 objc_comptypes, objc_message_selector, lookup_objc_ivar,
7529 get_current_scope, objc_mark_locals_volatile): New prototypes,
7530 some moved from c-tree.h.
7531 * c-decl.c (get_current_scope, objc_mark_locals_volatile): New functions.
7532 (finish_decl): Adjust where objc_check_decl() gets called.
7533 * c-lang.c (lookup_interface, is_class_name, objc_is_id, objc_check_decl,
7534 objc_comptypes, objc_message_selector, lookup_objc_ivar): Remove stubs.
7535 * c-opts.c (c_common_handle_option): Add handling for flag_nil_receivers,
7536 flag_objc_exceptions, flag_replace_objc_classes and flag_zero_link.
7537 * c-parse.in: Replace 'ifc' and 'end ifc' sed markers with '@@ifc' and
7538 '@@end_ifc', respectively.
7539 (AT_THROW, AT_TRY, AT_CATCH, AT_FINALLY, AT_SYNCHRONIZED): New %tokens.
7540 (objc_try_stmt, superclass, class_ivars, objc_try_catch-stmt,
7541 objc_finally_block): New rules.
7542 (component_decl_list2): Clean up semantic action for @defs construct.
7543 (component_decl, c99_block_start): Remove call to add_objc_decls().
7544 (poplevel): Add call to objc_clear_super_receiver().
7545 (stmt): Add rules for @throw, @try..@catch..@finally and @synchronized
7547 (classdef, methodprotolist): Clean up/simplify.
7548 (methodprotolist2): Eliminate.
7549 (methodproto): Call add_method() instead of add_class_method() and
7550 add_instance_method().
7551 (receiver): Add TYPENAME production.
7552 (reswords): Add "throw", "try", "catch", "finally" and "synchronized".
7553 (rid_to_yy): Add AT_THROW, AT_TRY, AT_CATCH, AT_FINALLY and
7555 * c-tree.h (lookup_interface, is_class_name, objc_is_id, objc_check_decl,
7556 objc_comptypes, objc_message_selector)
7557 * c-typeck.c (comptypes): In ObjC mode, call objc_comptypes() for
7558 struct and pointer types.
7559 (build_c_cast): Do not discard ObjC protocol qualifiers.
7560 (convert_for_assignment): Cache result of comp_target_types() instead
7561 of calling it more than once.
7562 * c.opt (fnext-runtime): Update description string.
7563 (fnil-receivers, fobjc-exceptions, freplace-objc-classes, fzero-link):
7564 New ObjC/ObjC++-specific flags.
7565 * function.h (GCC_FUNCTION_H): Header guard.
7566 * gengtype-lex.l: Teach lexer about new @@... sed demarcations.
7567 * stub-objc.c: New file, to be used to satisfy references to ObjC
7568 functions by the C and C++ front-ends.
7569 * config/darwin.c (_OBJC_IMAGE_INFO): New global metadata.
7570 * config/darwin.h (FUNCTION): Add in_objc_image_info.
7571 (SECTION_FUNCTION): Add objc_image_info_section.
7572 * doc/invoke.texi: Link to GCC web site for Objective-C information.
7573 (-fconstant-string-class): Update documentation.
7574 (-fno-nil-receivers, -fobjc-exceptions, -freplace-objc-classes,
7575 -fzero-link): New documentation.
7576 * objc/Make-lang.in (objc-parse.y): Change sed demarcations to begin
7578 * objc/lang-specs.h (@objective-c-header): Fix -E spec.
7579 * objc/objc/objc-act.c: Replace TYPE_NAME with OBJC_TYPE_NAME
7580 throughout; provide casts for return values from memory allocation
7581 functions (xmalloc, alloca, ggc_alloc, etc.).
7582 (OBJC_VOID_AT_END): New macro.
7583 (rtl.h): Do not #include any more.
7584 (STRING_OBJECT_GLOBAL_NAME): Replaced with STRING_OBJECT_GLOBAL_FORMAT.
7585 (TAG_MSGSEND_STRET, TAG_MSGSENDSUPER_STRET, TAG_MSGSEND_NONNIL,
7586 TAG_MSGSEND_NONNIL_STRET, TAG_EXCEPTIONEXTRACT, TAG_EXCEPTIONTRYENTER,
7587 TAG_EXCEPTIONTRYEXIT, TAG_EXCEPTIONMATCH, TAG_EXCEPTIONTHROW,
7588 TAG_SYNCENTER, TAG_SYNCEXIT): New NeXT runtime entry points.
7589 (struct val_stack, catch_count_stack, exc_binding_stack, val_stack_push,
7590 val_stack_pop): New.
7591 (objc_check_decl): Fix precondition for error message, along with
7593 (lookup_and_install_protocols): Remove nonexistent protocols from
7594 protocol list instead of returning error_mark_node.
7595 (create_builtin_decl): Use DECL_ARTIFICIAL only for VAR_DECLs.
7596 (setup_string_decl): Generalize to use STRING_OBJECT_GLOBAL_FORMAT.
7597 (synth_module_prologue): General clean-up; construct NeXT-specific
7598 runtime API prototypes if needed.
7599 (build_string_class_template): Remove.
7600 (check_string_class_template, string_layout_checked): New.
7601 (build_objc_string_object): Generalize to work with
7602 -fconstant-string-class.
7603 (build_objc_symtab_template): Fix layout for the NeXT runtime.
7604 (build_metadata_decl): New.
7605 (forward_declare_categories): Call build_metadata_decl() instead of
7606 create_builtin_decl() et al.
7607 (build_module_descriptor): Use OBJC_VOID_AT_END instead of
7609 (build_selector_reference_decl, build_class_reference_decl,
7610 build_objc_string_decl): Do not set TREE_READONLY.
7611 (get_proto_encoding): Do not call hack_method_prototype().
7612 (get_class_reference): Add failure mode for invalid class names;
7613 support -fzero-link; defer if in an ObjC++ template declaration.
7614 (objc_declare_alias, objc_declare_class): Fix up duplicate name
7615 lookup; check for global scope if in ObjC++.
7616 (is_class_name): Generalize to work with various tree nodes (TYPE_DECL,
7617 RECORD_TYPE, IDENTIFIER_NODE, etc.)
7618 (objc_is_id): Removed.
7619 (objc_is_object_ptr): New function.
7620 (get_class_ivars_from_name): New function, used for @defs construct.
7621 (get_class_ivars): Add option to return raw ivars; create a
7622 ClASS_OWN_IVARS list for each class as needed.
7623 (objc_enter_block, objc_exit_block, objc_declare_variable,
7624 objc_build_throw_stmt, val_stack_push, val_stack_pop,
7625 objc_build_try_enter_fragment, objc_build_extract_expr,
7626 objc_build_try_exit_fragment, objc_build_extract_fragment,
7627 objc_build_try_prologue, objc_build_try_epilogue,
7628 objc_build_catch_stmt, objc_build_catch_epilogue,
7629 objc_build_finally_prologue, objc_build_finally_epilogue,
7630 objc_build_try_catch_finally_stmt, objc_build_synchronized_prologue,
7631 objc_build_synchronized_epilogue, build_objc_exception_stuff):
7633 (_JBLEN): _setjmp jmpbuf size (needs to be made a target hook in
7635 (build_private_template): Fix up calls to get_class_ivars().
7636 (offset_is_register, forwarding_offset): Remove.
7637 (objc_method_parm_type, objc_encoded_type_size): New functions.
7638 (encode_method_prototype): Simplify to no longer depend on
7639 back-end information.
7640 (build_tmp_function_decl_xxx, build_tmp_function_decl,
7641 hack_method_prototype): Removed.
7642 (generate_protocol_references): Remove calls to
7643 build_tmp_function_decl().
7644 (generate_protocols): Adjust calls to encode_method_prototype().
7645 (build_class_template): Generate sel_id' and 'gc_object_type' fields
7646 for the NeXT runtime.
7647 (synth_forward_declarations): Call build_metadata_decl().
7648 (check_ivars): Check that the number of ivars matches also.
7649 (build_super_template): Modify super_type directly; disable debugging
7650 output while generating decl.
7651 (build_ivar_list_initializer): Skip list elements that are not
7653 (ivar_list_length): New function.
7654 (generate_ivar_lists): Call ivar_list_length() instead of list_length()
7655 and encode_method_prototype() instead of encode_method_def().
7656 (build_shared_structure_initializer): Generate 'sel_id' field for
7658 (generate_category): Do not set TREE_USED.
7659 (build_keyword_selector): Ditto; transform into a function argument
7661 (get_arg_type_list): If there are no user-specified arguments, use
7662 '...'; use OBJC_VOID_AT_END.
7663 (check_duplicates): Add a parameter indicating whether methods or
7664 selectors are being checked.
7665 (receiver_is_class_object): Add parameters indicating whether
7666 receiver is 'self' or 'super'; robustify.
7667 (build_message_expr): Defer call to finish_message_expr() if
7668 inside an ObjC++ template.
7669 (lookup_method_in_hash_lists): New function.
7670 (finish_message_expr): Complete rewrite/fix.
7671 (build_objc_method_call): Ditto; factor out commonalities between
7672 the GNU and NeXT runtimes; acccommodate ..._stret and ...NonNil
7673 messenger variants on the NeXT.
7674 (lookup_instance_method_static, lookup_class_method_static):
7675 Fold into a single lookup_method_static() function with an
7676 additional parameter.
7677 (add_class_method, add_instance_method): Fold into a single
7678 add_method() function with an additional parameter.
7679 (add_category): Make duplicate categories a hard error in ObjC++.
7680 (add_instance_variable): Properly handle unnamed ivars, arrays of
7681 zero or no size and bitfields. In ObjC++, check for nontrivial
7682 C++ class instances.
7683 (is_public): Allow C functions to access non-@public ivars, with
7685 (start_class): Move common initializations to
7686 synth_module_prologue(); check for global scope if in ObjC++.
7687 (continue_class): Fix calls to finish_struct().
7688 (objc_declare_protocols, start_protocol): Check for global scope
7690 (encode_pointer): Encode 'BOOL *' specially on the NeXT.
7691 (encode_aggregate_within): Rewrite to properly distinguish
7692 struct tags from typedefs in both ObjC and ObjC++.
7693 (encode_bitfield, encode_complete_bitfield): Remove.
7694 (encode_next_bitfield, encode_gnu_bitfield): New functions.
7695 (encode_field_decl): Call encode_next_bitfield() or
7696 encode_gnu_bitfield() as needed.
7697 (synth_self_and_ucmd_args): New function.
7698 (start_method_def): Use it.
7699 (objc_types_are_equivalent): New function.
7700 (comp_proto_with_proto): Use it instead of comptypes(), since
7702 (really_start_method): Use lookup_method_static() instead of
7703 lookup_class_method_static() and lookup_instance_method_static();
7704 Emit 'extern "C"' if in ObjC++ mode.
7705 (add_objc_decls): Removed.
7706 (UOBJC_SUPER_scope): New variable.
7707 (get_super_receiver): Move construction of 'super' from
7708 add_objc_decls(); remove dependency on struct objc_class.
7709 (encode_method_def): Removed; encode_method_prototype() is
7711 (objc_clear_super_receiver): New function.
7712 (objc_expand_function_end): Do not do anything for ordinary
7714 (finish_method_def): Mark ObjC methods as un-inlinable.
7715 (gen_declaration_1): Emit widths of bitfields.
7716 (finish_objc): Call generate_objc_image_info() if needed;
7717 use check_duplicates() when checking for selector duplicates.
7718 (generate_objc_image_info): New function.
7719 * objc/objc-act.h (add_instance_method, add_class_method,
7720 get_class_ivars): Remove prototypes.
7721 (objc_build_throw_stmt, objc_build_try_catch_finally_stmt,
7722 objc_build_synchronized_prologue, objc_build_synchronized_epilogue,
7723 objc_build_catch_stmt, objc_build_catch_epilogue,
7724 objc_build_finally_prologue, objc_build_finally_epilogue,
7725 add_method, get_class_ivars_from_name): New prototypes.
7726 (CLASS_BINFO_ELTS, PROTOCOL_BINFO_ELTS): New.
7727 (TYPE_PROTOCOL_LIST): Robustify to distinguish from
7728 TRANSLATION_UNIT_DECLs.
7729 (OBJC_TYPE_NAME): New.
7730 (objc_tree_code): Ensure that either <c-tree.h> or <cp/cp-tree.h>
7732 (IS_SUPER): Robustify.
7733 (umsg_stret_decl, umsg_super_stret_decl, umsg_nonnil_decl,
7734 umsg_nonnil_stret_decl, objc_storage_class, objc_exception_extract_decl,
7735 objc_exception_try_enter_decl, objc_exception_try_exit_decl,
7736 objc_exception_match_decl, objc_exception_throw_decl,
7737 objc_sync_enter_decl, objc_sync_exit_decl, objc_exception_data_template,
7738 objc_setjmp_decl, objc_stack_exception_data, objc_caught_exception,
7739 objc_rethrow_exception, objc_eval_once, objc_exception_block_stack,
7740 objc_catch_type): New ObjC/ObjC++ roots.
7741 * objc/objc-tree.def (MESSAGE_SEND_EXPR, CLASS_REFERENCE_EXPR): New
7742 ObjC/ObjC++ tree node codes.
7744 2003-09-24 Alexandre Oliva <aoliva@redhat.com>
7746 * cpplib.c (do_pragma): Reintroduce cb_line_change call in the
7747 code path that calls a handler.
7749 2003-09-24 Nathanael Nerode <neroden@gcc.gnu.org>
7751 * config.gcc (c4x-*, tic4x-*, d30v-*, mmix-knuth-mmixware):
7754 * config.gcc: Clean up and reindent $with_cpu=yes|no clause and
7755 the section giving $with_cpu defaults by target.
7757 * config.gcc (arm-*-coff*, armel-*-coff*, arm*-*-ecos-elf,
7758 arm*-*-elf, ep9312-*-elf, arm*-wince-pe*, arm*-*-pe*, arm*-*-pe*,
7759 rs6000-ibm-aix4.[3456789]*, powerpc-ibm-aix4.[3456789]*,
7760 rs6000-ibm-aix5.1.*, powerpc-ibm-aix5.1.*,
7761 rs6000-ibm-aix[56789].*, powerpc-ibm-aix[56789].*,
7762 i[34567]86-pc-msdosdjgpp*): Disable fixproto.
7764 2003-09-24 David Edelsohn <edelsohn@gnu.org>
7766 * config/rs6000/rs6000.md (movti_power): Collapse case 1 and 2
7767 together. Protect load string instruction with TARGET_STRING.
7768 (movti_string): Collapse case 1 and 2 together.
7770 2003-09-24 Nathan Sidwell <nathan@codesourcery.com>
7772 * c-common.c (c_common_type_for_mode): Check for VOIDmode.
7774 2003-09-24 Richard Earnshaw <rearnsha@arm.com>
7776 * arm.h (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Wrap in
7779 2003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
7781 * config.gcc: Move use_fixproto=no from generic vxworks clause to
7784 * config.gcc (powerpc-*-gnu-gnualtivec*): Disable fixproto
7785 (accidentally missed in last pass).
7787 2003-09-23 Andrew Pinski <apinski@apple.com>
7790 * configure: Regenerate.
7792 2003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
7794 * config.gcc (x86_64-*-freebsd*): Disable fixproto (accidentally
7795 missed in last pass).
7797 2003-09-23 Alexandre Oliva <aoliva@redhat.com>
7799 * config/mn10300/mn10300.md (andsi3): Fix cut&pasto in 0xfffffffe
7802 2003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
7804 * config.gcc: Move vax-*-vms* unsupported notice up with the rest.
7806 * config.gcc (alpha64*-dec-*vms*, alpha*-dec-*vms*,
7807 powerpc-*-eabisim*, powerpc-*-eabi*, powerpcle-*-eabisim*,
7808 powerpcle-*-eabi*): Disable fixproto.
7810 * config.gcc: Move use_fixproto=no from generic FreeBSD clause to
7811 specific FreeBSD clauses.
7812 * config.gcc: Move use_fixproto=no from generic NetBSD clause to
7813 specific NetBSD clauses.
7814 * config.gcc: Move use_fixproto=no from generic OpenBSD clause
7815 to specific OpenBSD clauses.
7817 2003-09-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7819 * pa.c (hppa_expand_prologue): Do pic register save in frame marker
7820 without adding a frame note.
7821 * pa.md (allocate_stack): Save pic register in new frame marker when
7822 generating pic code.
7824 2003-09-23 Kelley Cook <kelleycook@wideopenwest.com>
7826 * cgraphunit.c (cgraph_expand_all_functions): Renamed from
7827 cgraph_expand_functions.
7829 2003-09-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7831 * Makefile.in (gnucompare*): Merge into ...
7832 (slowcompare*): ... here.
7833 (fastcompare*): New targets.
7834 * aclocal.m4 (gcc_AC_PROG_CMP_IGNORE_INITIAL): Add checks for
7835 other "fast" cmp programs.
7836 * configure: Regenerate.
7838 2003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7840 * targhooks.c: Include output.h.
7841 * Makefile.in (targhooks.o): Add output.h to dependency list.
7843 2003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7845 * config.host: Removed superfluous newline.
7847 2003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
7849 * config.gcc: Use ${target}, not $machine.
7850 * configure.in: Don't set $machine.
7851 * configure: Regenerate.
7853 2003-09-23 Geoffrey Keating <geoffk@apple.com>
7855 * config/t-darwin (crt2.o): Add stmp-int-hdrs to dependencies.
7857 * config/rs6000/rs6000.c (function_arg_pass_by_reference): Don't
7858 pass zero-size arrays by reference.
7859 (rs6000_va_arg): Likewise.
7861 2003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
7863 * config.gcc: Set use_fixproto=no in each specific *-gnu*
7864 configuration, rather than the generic one.
7866 2003-09-23 Richard Henderson <rth@redhat.com>
7868 * tree-inline.c (remap_save_expr): Map new save_expr to identity
7869 rather than to error_mark_node.
7871 2003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7873 * configure.in (HAVE_GAS_SHF_MERGE): Always define to test result.
7875 * configure: Regenerate.
7876 * config.in: Likewise.
7877 * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test for
7878 HAVE_GAS_SHF_MERGE value.
7879 * varasm.c (mergeable_string_section): Likewise.
7880 (mergeable_constant_section): Likewise.
7882 2003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7884 * except.h (MUST_USE_SJLJ_EXCEPTIONS): Test for DWARF2_UNWIND_INFO
7887 2003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7889 * target.h (struct gcc_target): New member external_libcall.
7890 * target-def.h (TARGET_ASM_EXTERNAL_LIBCALL): Provide default.
7891 (TARGET_ASM_OUT): Use it.
7892 * doc/tm.texi (TARGET_ASM_EXTERNAL_LIBCALL): Document.
7893 * targhooks.c: Convert to ISO C 90.
7894 (default_external_libcall): New function.
7895 * targhooks.h (default_external_libcall): Declare.
7896 * varasm.c (assemble_external_libcall): Use
7897 targetm.asm_out.external_libcall instead of
7898 ASM_OUTPUT_EXTERNAL_LIBCALL.
7899 * config/mips/mips-protos.h [TARGET_IRIX5 || TARGET_IRIX 6]
7900 (mips_output_external_libcall): Declare.
7901 * config/mips/mips.c (mips_output_external_libcall): Change
7903 Change to match TARGET_ASM_EXTERNAL_LIBCALL.
7904 Only operate for O32 ABI.
7905 * config/mips/iris5.h (TARGET_ASM_EXTERNAL_LIBCALL): Define
7906 instead of ASM_OUTPUT_EXTERNAL_LIBCALL.
7907 * config/mips/iris6.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Don't undef,
7908 superceded by TARGET_ASM_EXTERNAL_LIBCALL.
7910 2003-09-22 Nathnael Nerode <neroden@gcc.gnu.org>
7912 * config.gcc: Do per-target disabling of fixproto here in clauses,
7913 not in t- fragments.
7914 * configure.in: Adjust to set STMP_FIXPROTO correctly.
7915 * configure: Regenerate.
7916 * config/arm/t-semi, config/cris/t-cris, config/i386/t-beos,
7917 config/i386/t-cygming, config/i386/t-nto, config/ia64/t-hpux,
7918 t-freebsd, t-linux, t-netbsd, t-openbsd, t-rtems, t-vxworks,
7919 xtensa/t-xtensa: Remove setting of STMP_FIXPROTO.
7920 * config/i370/t-oe, config/i386/t-netware, config/pa/t-bsd,
7921 t-interix, t-linux-aout: Delete files consisting only of
7922 setting of STMP_FIXPROTO.
7924 * config.host: Allow unknown hosts (not targets). Allow
7925 ns32k-*-netbsdelf* as a host (not a target). Remove redundant
7926 empty clauses. Remove useless obsolete-configuration clause.
7927 Prune unsupported configuration list. Collapse identical
7928 clauses for closely related systems. Rewrite comment for
7929 unsupported hosts list. Reorganize a little.
7931 2003-09-22 Richard Henderson <rth@redhat.com>
7933 * c-common.c (c_common_signed_or_unsigned_type): Examine mode,
7936 2003-09-22 David Edelsohn <edelsohn@gnu.org>
7937 Hartmut Penner <hpenner@de.ibm.com>
7938 Segher Boessenkool <boessen@de.ibm.com>
7940 * config/rs6000/rs6000.c (altivec_in_gprs_p): Rename to ...
7941 (gpr_or_gpr_p): Test INT_REGNO_P and convert to boolean.
7942 (rs6000_split_altivec_in_gprs): Rename to ...
7943 (rs6000_split_multireg_move): Add support for update addressing.
7944 * config/rs6000/rs6000-protos.h: Same.
7945 * config/rs6000/altivec.md: Same.
7946 * config/rs6000/rs6000.md (movdi_internal32): Use new splitter for
7948 (movti): Remove TARGET_STRING || TARGET_POWERPC64 final condition.
7949 (movti_power): Use new splitter for multiple GPRs.
7950 (movti_string): Same.
7951 (movti_ppc64): Same.
7953 2003-09-22 Bob Wilson <bob.wilson@acm.org>
7955 * config/xtensa/xtensa-protos.h: Convert to ISO C90.
7956 * config/xtensa/xtensa.c: Convert to ISO C90. Minor formatting fixes.
7958 2003-09-22 Alexandre Oliva <aoliva@redhat.com>
7960 * config/mn10300/mn10300.md: Revert 2003-09-17's patch.
7961 (andsi3): Set attr cc to set_zn when using shifts or adds.
7963 2003-09-22 Bernardo Innocenti <bernie@develer.com>
7965 * doc/contrib.texi: Add Peter Barada, Paul Dale and myself.
7967 2003-09-22 Bernardo Innocenti <bernie@develer.com>
7969 * config/m68k/m68k.h (MASK_RTD, TARGET_RTD, RETURN_POPS_ARGS):
7970 Resurrect -mrtd option.
7972 2003-09-21 Andrew Pinski <pinskia@physics.uc.edu>
7975 * config/darwin.c (machopic_validate_stub_or_non_lazy_ptr): Call
7976 mark_referenced instead of setting TREE_SYMBOL_REFERENCED.
7978 2003-09-22 Olivier Hainque <hainque@act-europe.fr>
7981 * reg-stack.c (convert_regs_1): Purge possible dead eh edges
7982 after potential deletion of trapping insn. Avoids later ICE
7983 from call to fixup_abnormal_edges.
7984 (convert_regs_2): Stack the current block successors before
7985 processing this block, that is, before the potential deletion of
7986 dead edges by convert_regs_1, because these edges have been used
7987 to initialize the predecessors count.
7989 2003-09-22 Eric Botcazou <ebotcazou@libertysurf.fr>
7991 * real.c: Fix several nits in the head comment.
7993 2003-09-21 Richard Henderson <rth@redhat.com>
7995 * tree.h c-aux-info.c, c-decl.c, c-parse.in, coverage.c, dbxout.c,
7996 diagnostic.c, dwarf2out.c, dwarfout.c, function.c, integrate.c,
7997 print-tree.c, stmt.c, toplev.c, tree-dump.c, tree-inline.c,
7998 tree-optimize.c, tree.c, tree.def, xcoffout.c, config/alpha/alpha.c,
7999 config/mips/mips.c, doc/c-tree.texi, objc/objc-act.c: Revert.
8001 2003-09-21 Richard Henderson <rth@redhat.com>
8003 * tree.h (TREE_LOCUS): Rename from DECL_SOURCE_LOCATION; make const.
8004 (TREE_FILENAME, TREE_LINENO): Likewise.
8005 (set_tree_locus, copy_tree_locus, set_tree_file_line): New.
8006 (TREE_LOCUS_SET_P): New.
8007 * c-aux-info.c, c-decl.c, c-parse.in, coverage.c, dbxout.c,
8008 diagnostic.c, dwarf2out.c, dwarfout.c, function.c, integrate.c,
8009 print-tree.c, stmt.c, toplev.c, tree-dump.c, tree-inline.c,
8010 tree-optimize.c, tree.c, tree.def, xcoffout.c, config/alpha/alpha.c,
8011 config/mips/mips.c, doc/c-tree.texi, objc/objc-act.c: Update to match.
8013 2003-09-21 Nathanael Nerode <neroden@gcc.gnu.org>
8015 * config/vax/vax-protos.h: Convert to ISO C90.
8016 * config/vax/vax.c: Convert to ISO C90.
8018 2003-09-21 Graham Stott <grahams@btinternet.com>
8021 * config/i386/i386.md(ffs_no_cmove): Fix operand 2 constraint.
8023 2003-09-21 Eric Botcazou <ebotcazou@libertysurf.fr>
8026 * reorg.c (stop_search_p): Return 1 for insns that can
8029 2003-09-20 Richard Henderson <rth@redhat.com>
8031 * c-format.c (gcc_diag_char_table): Add %J.
8032 (gcc_cdiag_char_table, gcc_cxxdiag_char_table): Likewise.
8033 (check_format_types): Fix wanted_type name lookup.
8034 (init_dynamic_diag_info): Setup %J.
8035 * diagnostic.c (text_specifies_location): Implement %J.
8036 * c-common.c, c-decl.c, c-objc-common.c, c-pragma.c, calls.c,
8037 dwarfout.c, expr.c, function.c, stmt.c, stor-layout.c, toplev.c,
8038 tree-inline.c, tree-optimize.c, varasm.c, config/arm/pe.c,
8039 config/i386/winnt.c, config/ia64/ia64.c, config/mcore/mcore.c,
8040 config/v850/v850.c, objc/objc-act.c: Use %J in diagnostics.
8042 * tree-inline.c: Include intl.h
8043 (inline_forbidden_p_1): Fix i18n of inline_forbidden_reason.
8044 * Makefile.in (tree-inline.o): Update.
8046 2003-09-20 Roger Sayle <roger@eyesopen.com>
8048 * config/i386/i386.c (ix86_expand_carry_flag_compare): Fix
8049 transformation of a>=0 into (unsigned)a<0x80000000.
8051 2003-09-20 Andrew Pinski <apinski@apple.com>
8053 * config/darwin.c (machopic_select_rtx_section): Fix check for PIC code.
8055 2003-09-20 Nathanael Nerode <neroden@gcc.gnu.org>
8057 * Makefile.in: Don't set (unused) DLLTOOL.
8059 * config/arm/t-linux, config/arm/t-netbsd, config/arm-t-semi:
8060 Remove obsolete references to ENQUIRE.
8062 2003-09-19 Nathanael Nerode <neroden@gcc.gnu.org>
8064 * configure.in: Remove --with-elf, which doesn't work.
8065 * configure: Regenerate.
8066 * config.gcc: Remove references to $elf, which does nothing.
8068 * config/i386/xm-vsta.h: Remove xm-file believed useless.
8069 * config.build (i386-vsta): Remove reference to it.
8070 * config.host (i386-vsta): Remove reference to it.
8072 2003-09-19 Phil Edwards <phil@codesourcery.com>
8074 * doc/install.texi: Document the multiple testsuite options.
8076 2003-09-19 Gerald Pfeifer <gerald@pfeifer.com>
8078 * doc/install.texi (Specific): Add the specific versions of GCC
8079 where support for FreeBSD 1, HP-UX version 9 and older, and AIX
8080 version 3 and older was discontinued.
8082 2003-09-19 Joel Sherrill <joel@oarcorp.com>
8084 * config/m68k/t-m68kbare, config/m68k/t-rtems: Change 68681 to
8087 2003-09-19 Bernardo Innocenti <bernie@develer.com>
8089 * config/m68k/m68k.h (TARGET_CPU_CPP_PREDEFINES): Add predefines
8090 for -m68030, -m68020-60 and -m68020-40.
8091 * config/m68k/m68k.h (TARGET_68030): New target flag.
8092 * config/m68k/m68k.h (MASK_RTD, TARGET_RTD, MASK_REGPARM,
8093 TARGET_REGPARM): Remove.
8094 * config/m68k/m68k.h: Regroup and renumber target flags.
8095 * config/m68k/m68k.h (TARGET_SWITCHES): Fix some tabulations.
8096 * config/m68k/m68k.h (RETURN_POPS_ARGS): Always evaluate to 0.
8097 * config/m68k/m68k.h (FUNCTION_ARG): Likewise.
8098 * config/m68k/m68k.h (FUNCTION_ARG_PARTIAL_NREGS): Likewise.
8099 * config/m68k/m68k-none.h: Use MASK_xxx values in M68K_CPU_xxx macros.
8101 2003-09-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
8103 * config/m68k/t-rtems (m68k-*-rtems*): New.
8104 * config.gcc: Use config/m68k/t-rtems.
8106 2003-09-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
8108 * config/mips/t-rtems: New.
8109 * config.gcc (mips*-*-rtems*): Use config/mips/t-rtems.
8111 2003-09-19 Kelley Cook <kelleycook@wideopenwest.com>
8113 * cgraph.c: Fix typo in debugging output.
8115 2003-09-19 T. Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
8116 Eric Botcazou <ebotcazou@libertysurf.fr>
8119 * config/sparc/sol2-c1.asm (start): Set __Argv if GCRT1.
8121 2003-09-18 Mike Stump <mrs@apple.com>
8123 * c-ppoutput.c (print): Use fileline typedef for field 'line'.
8124 (print_line, maybe_print_line, cb_define, cb_undef, cb_include,
8125 cb_ident, cb_def_pragma): Use fileline typedef.
8126 * cpphash.h (struct cpp_reader): Likewise for field out.first_line.
8128 2003-09-18 Danny Smith <dannysmith@users.sourceforge.net>
8130 * config/i386/winnt.c (gen_stdcall_suffix): Quit summation of
8131 total parm size if a parm has incomplete type.
8132 (gen_fastcall_suffix): Likewise.
8134 2003-09-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8136 * except.c (output_function_exception_table): Adjust last change
8137 to handle TYPE of INTEGER_CST.
8139 2003-09-18 Mark Mitchell <mark@codesourcery.com>
8142 * builtins.c (expand_builtin_apply): Use convert_memory_address
8143 before returning the value.
8145 * alias.c (find_base_value): Simplify use of
8146 convert_memory_address.
8147 (find_base_term): Likewise.
8148 * builtins.c (expand_builtin_stejmp_setup): Likewise.
8149 (expand_builtin_longjmp): Likewise.
8150 (expand_builtin_prefetch): Likewise.
8151 (get_memory_rtx): Likewise.
8152 (expand_builtin_return): Likewise.
8153 (expand_builtin_memcpy): Likewise.
8154 (expand_builtin_strncpy): Likewise.
8155 (expand_builtin_memset): Likewise.
8156 (expand_builtin_va_arg): Likewise.
8157 (expand_builtin_va_copy): Likewise.
8158 (expand_builtin_alloca): Likewise.
8159 * calls.c (expand_call): Likewise.
8160 * except.c (expand_builtin_extract_return_addr): Likewise.
8161 (expand_builtin_eh_return): Likewise.
8162 * explow.c (convert_memory_address): Define even when
8163 POINTER_EXTEND_UNSIGNED is not defined. Do nothing if the address
8164 is already in the right mode.
8165 * explow.c (memory_address): Simplify use of convert_memory_address.
8166 (probe_stack_range): Likewise.
8167 * expmed.c (make_tree): Likewise.
8168 * expr.c (emit_block_move_in_libcall): Likewise.
8169 (expand_assignment): Likewise.
8170 (expand_expr): Likewise.
8171 * function.c (assign_parms): Likewise.
8172 (expand_function_end): Likewise.
8173 * integrate.c (copy_rtx_and_substitute): Likewise.
8174 * stmt.c (expand_computed_goto): Likewise.
8176 2003-09-18 Roger Sayle <roger@eyesopen.com>
8178 * simplify-rtx.c (simplify_unary_operation): Only transform
8179 (not (eq X Y)) into (ne X Y) when mode is BImode or STORE_FLAG_VALUE
8180 is -1. RTL "not" is a bit-wise not, "~", not a logical not "!".
8182 2003-09-18 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8185 * config/i386/i386.c (x86_emit_floatuns): Also handle SImode operand.
8187 2003-09-18 Roger Sayle <roger@eyesopen.com>
8189 * tree.def (FFS_EXPR, CLZ_EXPR, CTZ_EXPR, POPCOUNT_EXPR,
8190 PARITY_EXPR): Delete unused tree codes.
8191 * c-common.c (c_common_truthvalue_conversion): Delete references
8192 to FFS_EXPR and POPCOUNT_EXPR.
8193 * c-pretty-print.c (pp_c_postfix_expression): Remove FFS_EXPR.
8194 (pp_c_expression): Likewise.
8195 * expr.c (expand_expr): Delete RTL expansion of FFS_EXPR, CLZ_EXPR,
8196 CTZ_EXPR, POPCOUNT_EXPR and PARITY_EXPR.
8197 * fold-const.c (tree_expr_nonnegative_p): Remove FFS_EXPR, CLZ_EXPR,
8198 CTZ_EXPR, POPCOUNT_EXPR and PARITY_EXPR. Add support for calls to
8199 BUILT_IN_FFS, BUILT_IN_PARITY and BUILT_IN_POPCOUNT and their long
8200 and long long variants.
8202 2003-09-18 Gabriel Dos Reis <gdr@integrable-solutions.net>
8204 * c-pretty-print.h (pp_type_specifier_seq): Fix thinko.
8205 * c-pretty-print.c: Fix formatting.
8206 (pp_c_integer_constant): Append type annotation to literals. Tidy.
8207 (pp_c_type_specifier): Tidy.
8208 (pp_c_compound_literal): New function.
8209 (pp_c_initializer): Simplify..
8210 (pp_c_initializer_list): Likewise.
8211 (pp_c_brace_enclosed_initializer_list): New function.
8212 (pp_c_postfix_expression): Simplify.
8214 2003-09-17 Alexandre Oliva <aoliva@redhat.com>
8216 * config/mn10300/mn10300.md (andsi3, iorsi3, xorsi3,
8217 one_complsi2, bit-clear, bit-set, iorqi3): Make them set_zn.
8219 2003-09-17 Richard Henderson <rth@redhat.com>
8221 * tree-optimize.c (tree_rest_of_compilation): Save and restore
8224 2003-09-17 Daniel Jacobowitz <drow@mvista.com>
8226 * config/rs6000/sysv4.h (LIB_LINUX_SPEC): Give -lpthread before -lc.
8228 2003-09-17 Richard Henderson <rth@redhat.com>
8230 * cfg.c (dump_flow_info): Skip register dump if reg_n_info null.
8232 2003-09-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8234 * configure.in (gcc_cv_ld_hidden): Don't test gnu_ld_flag.
8235 * configure: Regenerate.
8237 2003-09-17 Mark Mitchell <mark@codesourcery.com>
8240 * dbxout.c (dbxout_init): Use a langhook to find builtin types.
8241 * langhooks-def.h (lhd_return_null_tree_v): New function.
8242 (LANG_HOOKS_BUILTIN_TYPE_DECLS): New macro.
8243 (LANG_HOOKS_DECLS): Add it to the intializer.
8244 * langhooks.c (lhd_return_null_tree_v): New function.
8245 * langhooks.h (lang_hooks_for_decls): Add builtin_type_decls.
8247 2003-09-17 Daniel Jacobowitz <drow@mvista.com>
8249 * configure.in: Quote gcc_config_arguments for configargs.h.
8250 * configure: Regenerated.
8251 * gccbug.in: Don't shell-expand gcc_config_arguments.
8253 2003-09-17 Gabriel Dos Reis <gdr@integrable-solutions.net>
8256 * c-pretty-print.c (pp_c_floating_constant): Append
8257 type-annotation to floating constants.
8259 2003-09-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8261 * config/mips/iris5.h (TARGET_OS_CPP_BUILTINS): Define _LONGLONG.
8263 Use it for _MIPS_SIM.
8264 * config/mips/iris6-o32.h (TARGET_OS_CPP_BUILTINS): Removed.
8266 * config/mips/iris6-o32-as.h (SUBTARGET_ASM_OPTIMIZING_SPEC):
8268 * config/mips/iris5.h (SUBTARGET_ASM_OPTIMIZING_SPEC): ... here,
8270 Fixes PR target/10190.
8272 2003-09-17 Daniel Jacobowitz <drow@mvista.com>
8274 * config/rs6000/sysv4.h (LIB_LINUX_SPEC): Make -pthread apply
8275 to shared libraries.
8277 2003-09-17 Eric Botcazou <ebotcazou@libertysurf.fr>
8279 PR optimization/11646
8280 * cfgrtl.c (purge_dead_edges) [JUMP_INSN]: Rematerialize the
8281 EDGE_ABNORMAL flag for EH edges.
8282 * toplev.c (rest_of_handle_cse): Delete unreachable blocks
8283 if dead edges were purged.
8285 2003-09-16 Bernardo Innocenti <bernie@develer.com>
8287 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Add target predefines.
8288 * config/m68k/m68k-none.h (CPP_CPU_DEFAULT_SPEC): Kill all definitions.
8289 * config/m68k/m68k-none.h (CPP_FPU_SPEC): Remove.
8290 * config/m68k/m68k-none.h (CPP_SPEC): Likewise.
8292 2003-09-16 Ian Lance Taylor <ian@wasabisystems.com>
8294 * cfgcleanup.c (label_is_jump_target_p): Correct use of table
8295 returned by tablejump_p.
8297 2003-09-16 Joel Brobecker <brobecker@gnat.com>
8299 * dwarf2asm.c (dw2_asm_output_nstring): Add comment.
8301 2003-09-16 Roger Sayle <roger@eyesopen.com>
8304 * simplify-rtx.c (simplify_gen_relational): Allow the cmp_mode
8305 argument to be VOIDmode, taking the mode of the comparison from
8306 the operands. Only call simplify_relational_operation if we
8307 know the mode of the comparison. Honor FLOAT_STORE_FLAG_VALUE
8308 if comparison has a floating point result. Ensure that the
8309 result is always of the specified mode.
8310 (simplify_replace_rtx): Simplify call to simplify_gen_relational.
8311 (simplify_unary_operation): Ensure the correct mode and cmp_mode
8312 are always passed to simplify_gen_relational. Simplify NOT of
8313 comparison operator in any mode, not just BImode.
8314 (simplify_ternary_operation): Correct tests on the return value
8315 of simplify_relational_operation to use const_true_rtx, not
8316 const1_rtx. Abort if it ever returns a non-constant result.
8318 * cfgloopanal.c (count_strange_loop_iterations): Use the function
8319 simplify_relational_operation, not simplify_gen_relational, if
8320 we're only interested in constant comparisons and will ignore
8321 non-constant results.
8323 2003-09-16 Roger Sayle <roger@eyesopen.com>
8325 * fold-const.c (tree_swap_operands_p): New function to determine
8326 the prefered ordering of operands.
8327 (fold): Numerous clean-ups. Use tree_swap_operands_p when swapping
8328 operands to commutative, comparison or ternary operators. Replace
8329 uses of TREE_SET_CODE with recursive call to fold. Remove duplicate
8330 transformation of A ? B : C into !A ? C : B.
8332 2003-09-16 Jakub Jelinek <jakub@redhat.com>
8334 * config/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
8335 * config/alpha/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
8336 * config/arm/linux-elf.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
8337 * config/rs6000/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
8338 * config/rs6000/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
8339 * config/sh/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
8340 * config/sparc/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
8341 * config/sparc/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
8343 2003-09-16 Jason Merrill <jason@redhat.com>
8344 Jakub Jelinek <jakub@redhat.com>
8346 * c-common.c (handle_warn_unused_result_attribute): New function.
8347 (c_common_attribute_table): Add warn_unused_result.
8348 (c_expand_expr): Issue warning when result of inlined function
8349 with warn_unused_result attribute is ignored.
8350 * calls.c (expand_call): Issue warning when result of function
8351 with warn_unused_result attribute is ignored.
8352 * c-common.h (STMT_EXPR_WARN_UNUSED_RESULT): Define.
8353 * expr.c (expr_wfl_stack): Define.
8354 (expand_expr) <case EXPR_WITH_FILE_LOCATION>: If ignore,
8355 pass const0_rtx as target. Chain locations into expr_wfl_stack.
8356 * tree-inline.c (expand_call_inline): Set STMT_EXPR_WARN_UNUSED_RESULT
8357 bit if inlined function has warn_unused_result attribute.
8358 * input.h (expr_wfl_stack): Declare.
8359 * doc/extend.texi: Document warn_unused_result attribute.
8361 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
8363 * cpplib.c (do_pragma): Remove unnecessary cb_line_change.
8365 2003-09-15 Bob Wilson <bob.wilson@acm.org>
8367 * config/xtensa/xtensa.c (xtensa_multibss_section_type_flags): Add
8369 (call_insn_operand): For PIC, don't allow a direct call to a
8370 function in a different section than the current one.
8372 2003-09-16 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
8374 * doc/invoke.texi (Warning Options): Add missing hyphen before
8375 "Wimport". Change "-Wno-endif-labels" to "-Wendif-labels".
8376 Move "-Wold-style-definition" to the C-only section.
8377 Fix the ordering of the warning options.
8379 2003-09-15 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8380 Jeff Law <law@redhat.com>
8382 * gcse.c (remove_reachable_equiv_notes): New.
8383 replace_store_insn): Call it. Update antic list.
8384 (store_killed_in_insn): Take REG_EQUAL notes into account.
8385 (build_store_vectors, delete_store): Add parameter to
8386 replace_store_insn call.
8388 2003-09-15 Bob Wilson <bob.wilson@acm.org>
8390 * config/xtensa/xtensa.h (LEGITIMATE_PIC_OPERAND_P): Use
8393 2003-09-15 Kazu Hirata <kazu@cs.umass.edu>
8395 * expr.h (DEFAULT_FUNCTION_ARG_PADDING): New.
8396 (FUNCTION_ARG_PADDING): Use DEFAULT_FUNCTION_ARG_PADDING.
8397 * config/ia64/ia64.c (ia64_hpux_function_arg_padding):
8399 * config/m68hc11/m68hc11.c (m68hc11_function_arg_padding):
8401 * config/rs6000/rs6000.c (function_arg_padding): Likewise.
8402 * config/sparc/sparc.c (function_arg_padding): Likewise.
8404 2003-09-15 Vladimir Makarov <vmakarov@redhat.com>
8406 * haifa-sched.c (schedule_block): Use ready_remove_first instead
8407 of choose_ready for non-dfa insn scheduling.
8409 2003-09-15 Andreas Jaeger <aj@suse.de>
8410 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8412 * doc/invoke.texi (Warning Options): Describe -Wold-style-definition.
8413 * c-opts.c (c_common_handle_option): Handle OPT_Wold_style_definition.
8414 * c-parse.in: Warn about old-style parameter definition.
8415 * c-common.c: Define warn_old_style_defintion.
8416 * c-common.h: Declare it.
8417 * c.opt: Add Wold-style-defintion.
8419 2003-09-15 Andreas Jaeger <aj@suse.de>
8421 * config/rs6000/altivec.h: Convert () prototypes to ISO C90.
8422 * config/rs6000/rs6000.c: Likewise.
8424 2003-09-12 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8426 PR optimization/10914
8427 * expr.h (get_condition, canonicalize_condition): Declaration changed.
8428 * cfgloopanal.c (simple_loop_exit_p): Add parameter to a get_condition
8429 and canonicalize_condition calls.
8430 * gcse.c (fis_get_condition, delete_null_pointer_checks_1,
8431 delete_null_pointer_checks): Ditto.
8432 * ifcvt.c (noce_get_alt_condition, noce_get_condition): Ditto.
8433 * predict.c (estimate_probability, expected_value_to_br_prob): Ditto.
8434 * loop.c (check_dbra_loop, get_condition_for_loop): Ditto.
8435 (canonicalize_condition, get_condition): Allow to return comparisons
8436 of cc mode registers.
8437 * loop-unswitch.c (may_unswitch_on_p, unswitch_single_loop): Allow
8438 cc mode registers comparison in condition.
8440 2003-09-12 Mark Mitchell <mark@codesourcery.com>
8442 * coverage.c (create_coverage): Do not call pushlevel/poplevel.
8443 * langhooks-def.h (lhd_do_nothing_iii_return_null_tree): New
8445 * langhooks.c (lhd_do_nothing_iii_return_null_tree): Define it.
8447 2003-09-14 Kazu Hirata <kazu@cs.umass.edu>
8449 * combine.c (simplify_comparison): Convert
8450 (ne (and (lshiftrt (xor X CST) Y) 1) 0) into
8451 (eq (and (lshiftrt X Y) 1) 0).
8453 2003-09-14 Kazu Hirata <kazu@cs.umass.edu>
8455 * alias.c: Follow spelling conventions.
8456 * cpphash.h: Likewise.
8457 * fold-const.c: Likewise.
8459 2003-09-14 Alexandre Oliva <aoliva@redhat.com>
8461 * c-ppoutput.c (cb_line_change): Revert 2003-08-04's change.
8462 * c-lex.c (cb_line_change): Skip line changing whenever
8465 2003-09-14 Steven Bosscher <steven@gcc.gnu.org>
8467 * ra.c: Convert to ISO C90 prototypes.
8468 * ra-build.c: Likewise.
8469 * ra-colorize.c: Likewise.
8470 * ra-debug.c: Likewise.
8471 * ra-rewrite.c: Likewise.
8473 2003-09-14 Richard Sandiford <rsandifo@redhat.com>
8475 * Makefile.in (%.dvi): Remove excess $(docdir).
8477 2003-09-14 Richard Sandiford <rsandifo@redhat.com>
8479 * function.c (STACK_BYTES): Move definition to head of file.
8480 (assign_parms): Don't pass current_function_pretend_args_size
8481 directly to SETUP_INCOMING_VARARGS. For partial register arguments,
8482 round current_function_pretend_args_size up to STACK_BYTES. Skip any
8483 excess before laying out the argument.
8485 2003-09-14 Andreas Jaeger <aj@suse.de>
8487 * objc/objc-act.c: Convert to ISO C90 prototypes.
8488 * objc/objc-act.h: Likewise.
8490 2003-09-14 Olaf Hering <olh@suse.de>
8492 * config/rs6000/rs6000.c: Fix typo: Remove extra ')'.
8494 2003-09-13 Andrew Pinski <pinskia@physics.uc.edu>
8497 * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Remove the asserts
8498 as they already are done in config/m68k/m68k.h.
8499 * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Likewise
8501 * config/rs6000/rs6000.c (GEN_LOCAL_LABEL_FOR_SYMBOL): Remove.
8502 (machopic_output_stub): Only generate pic base symbols when using pic
8503 and generate them in the form L00000000$spb.
8505 2003-09-13 Richard Henderson <rth@redhat.com>
8507 * cgraphunit.c (cgraph_assemble_pending_functions): Export.
8508 (cgraph_finalize_function): Revert TREE_ASM_WRITTEN check.
8511 2003-09-12 Dale Johannesen <dalej@apple.com>
8513 * config/rs6000/rs6000.c: Fix typos in previous.
8515 2003-09-12 Ziemowit Laski <zlaski@apple.com>
8517 * pretty-print.c (pp_construct): Use xcalloc instead of xmalloc
8518 when allocating pp->buffer.
8520 2003-09-12 Geoffrey Keating <geoffk@apple.com>
8522 * config/darwin.c (machopic_select_rtx_section): Use
8523 const_data_section for things that might require relocation.
8525 2003-09-12 H.J. Lu <hongjiu.lu@intel.com>
8528 * tree-inline.c (inline_forbidden_p_1): Cast the 3rd arg to tree.
8530 2003-09-12 Bob Wilson <bob.wilson@acm.org>
8532 * config/xtensa/elf.h (ASM_SPEC): Remove no-density option. Reformat.
8533 * config/xtensa/linux.h (ASM_SPEC): Likewise.
8534 * config/xtensa/xtensa.h (TARGET_SWITCHES): Remove -mbig-endian,
8535 -mlittle-endian, -m[no-]density, -m[no-]abs, -m[no-]addx, -m[no-]mac16,
8536 -m[no-]mul16, -m[no-]mul32, -m[no-]nsa, -m[no-]minmax, -m[no-]sext,
8537 -m[no-]booleans, -mhard-float, -msoft-float, -m[no-]hard-float-div,
8538 -m[no-]hard-float-recip, -m[no-]hard-float-sqrt, and
8539 -m[no-]hard-float-rsqrt options. Delete corresponding MASK_* macros
8540 and redefine corresponding TARGET_* macros with constants from the
8541 xtensa-config.h header.
8542 * doc/invoke.texi (Option Summary, Xtensa Options): Remove documention
8543 for the options listed above.
8545 2003-09-12 Dale Johannesen <dalej@apple.com>
8547 * config/rs6000/rs6000-protos.h: Use C90 prototypes.
8548 * config/rs6000/rs6000-c.c: Ditto.
8549 * config/rs6000/rs6000.c: Ditto.
8550 * config/rs6000/ sysv4.h: Ditto.
8552 2003-09-12 Chris Lattner <sabre@nondot.org>
8554 * loop.c: Move comments describing BIV's and GIV's to top of file
8556 2003-09-12 Roger Sayle <roger@eyesopen.com>
8558 PR optimization/8967
8559 * alias.c (write_dependence_p): Modify to take an additional constp
8560 argument that controls whether the UNCHANGING_RTX_P flags are used.
8561 (anti_dependence, output_dependence): Adjust write_dependence_p
8562 callers to pass this additional argument, to return the same result.
8563 (unchanging_anti_dependence): New variant of anti_dependence that
8564 ignores the UNCHANGING_RTX_P property on memory references.
8565 * rtl.h (unchaning_anti_dependence): Prototype here.
8566 * flow.c (init_propagate_block): Place fake constant mem writes on
8567 the mem_set_list so that dead writes to const variables are deleted.
8568 (insn_dead_p): Change anti_dependence to unchanging_anti_dependence.
8569 (mark_used_regs): Likewise.
8571 2003-09-12 Richard Sandiford <rsandifo@redhat.com>
8573 * config/mcore/mcore-protos.h (mcore_r15_operand_p): Declare.
8574 (mcore_secondary_reload_class): Declare.
8575 (mcore_output_inline_const_forced): Remove.
8576 * config/mcore/mcore.md (movsi): Remove the code that forced
8577 non-inlineable constants into a register if the target was r15
8578 or the stack pointer. Remove constant restrictions from the main
8579 define_insn. Remove r <- I, r <- M and r <- N alternatives in favor
8580 of an r <- P alternative. Remove fallback define_insn for reload.
8581 (movhi, movqi): Use gen_lowpart rather than gen_SUBREG. Remove reload
8582 define_insn. Use mcore_output_move in the remaining define_insn.
8583 Adjust condition and constraints in the way as for movsi.
8584 (movdi): Always split unacceptable constants into two. Use
8585 simplify_gen_subreg instead of operand_subword{,_force}.
8586 * config/mcore/mcore.c (mcore_output_inline_const_forced): Remove.
8587 (mcore_output_move): Support HImode and QImode moves as well.
8588 (mcore_m15_operand_p): New function.
8589 (mcore_reload_class): Use it to detect cases where LRW_REGS are better.
8590 (mcore_secondary_reload_class): New function.
8591 * config/mcore/mcore.h (SECONDARY_RELOAD_CLASS): Redefine in
8592 terms of mcore_secondary_reload_class.
8594 2003-09-11 Mike Stump <mrs@apple.com>
8596 * c-lex.c (fe_file_change): Don't transform to_line with SOURCE_LINE.
8598 2003-09-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8600 * builtins.c (fold_builtin_logarithm): if N can't be truncated to
8601 MODE exactly, then only convert logN(N) -> 1.0 if
8602 flag_unsafe_math_optimizations is set.
8604 * builtins.c (builtin_dconsts_init, dconstpi, dconste,
8605 init_builtin_dconsts): Delete.
8606 * emit-rtl.c (dconstpi, dconste): Define.
8607 (init_emit_once): Initialize dconstpi & dconste.
8608 * real.h (dconstpi, dconste): Declare.
8610 2003-09-11 Alexandre Oliva <aoliva@redhat.com>
8613 * dwarf2out.c (gen_inlined_subroutine_die): Emit abstract function
8614 for ultimate origin even if block is abstract.
8616 2003-09-11 Roger Sayle <roger@eyesopen.com>
8618 * combine.c (combine_simplify_rtx): Move several NOT and NEG
8619 optimizations from here...
8620 * simplify-rtx.c (simplify_unary_operation): to here. Recursively
8621 simplify expressions using simplify_gen_*ary instead of gen_rtx_*.
8623 2003-09-11 Richard Henderson <rth@redhat.com>
8625 * cgraphunit.c (cgraph_finalize_function): Add nested arg.
8626 Tweek tests for function already generated.
8627 (cgraph_expand_function): Don't double announce in !unit-at-a-time.
8628 * cgraph.h (cgraph_finalize_function): Update for extra arg.
8629 * c-decl.c (finish_function): Likewise.
8631 2003-09-10 Joe Buck <jbuck@welsh-buck.org>
8633 * c-decl.c (poplevel): Eliminate use of |= in function_body assignment.
8635 2003-09-10 Jerry Quinn <jlquinn@optonline.net>
8637 * real.c: Update URL to VAX floating point docs.
8638 (decode_vax_d): Extract 8 exponent bits instead of 7.
8640 2003-09-10 Ian Lance Taylor <ian@wasabisystems.com>
8642 * combine.c (force_to_mode): Set fuller_mask based only on mask,
8645 2003-09-11 Jan Hubicka <jh@suse.cz>
8647 * c-objc-common.c (c_cannot_inline_tree_fn): Warn
8648 on why function is not inlinable; do not check
8650 (inline_forbidden_p): Move to...
8651 * tree-inline.c (inline_forbidden_p_1): ... here; Add warnings;
8652 deal with alloca, longjmp.
8653 (inline_forbidden_p): New static function.
8654 (find_alloca_call_1, find_alloca_call, find_builtin_longjmp_call_1,
8655 find_builtin_longjmp_call): Kill.
8657 2003-09-10 Richard Henderson <rth@redhat.com>
8659 * cgraph.h (struct cgraph_node): Rename lowered to analyzed.
8660 * cgraphunit.c: Update to match.
8661 (record_call_1): Rearrange. Call lang hook for language nodes.
8662 (cgraph_analyze_function): Don't call lower_function.
8663 * langhooks.h (struct lang_hooks_for_callgraph): Replace
8664 lower_function with analyze_expr.
8665 * langhooks-def.h: Update to match.
8666 * langhooks.c (lhd_callgraph_analyze_expr): New.
8668 2003-09-10 Martin Husemann <martin@duskware.de>
8671 * config/sparc/sparc.c (sparc_v8plus_shift): Protect against
8672 constants greater than 63.
8673 * config/sparc/sparc.md (ashlsi3, ashrsi3, lshrsi3): Protect
8674 against constants greater than 31.
8675 (*ashldi3_sp64, *ashrdi3_sp64, *lshrdi3_sp64): Protect against
8676 constants greater than 63.
8678 2003-09-09 Richard Henderson <rth@redhat.com>
8680 * cgraphunit.c (cgraph_finalize_function): Remove unused argument.
8681 * cgraph.h (cgraph_finalize_function): Update.
8682 * c-decl.c (finish_function): Update.
8684 2003-09-09 Devang Patel <dpatel@apple.com>
8686 * config/darwin.h (LINK_SPEC): Pass -nofixprebinding to linker.
8687 * doc/invoke.texi: Document new Darwin linker option -nofixprebinding.
8689 2003-09-09 Eric Christopher <echristo@redhat.com>
8691 * configure.in: Change usage of 'head' to 'sed 1q'.
8692 * configure: Regenerate.
8694 2003-09-09 Richard Henderson <rth@redhat.com>
8696 * except.c: Include cgraph.h.
8697 (output_function_exception_table): Invoke
8698 cgraph_varpool_mark_needed_node.
8699 * Makefile.in (except.o): Update.
8701 2003-09-07 Kelley Cook <kelleycook@wideopenwest.com>
8703 * Makefile.in: Define REMAKEFLAGS for LANGUAGES & BOOT_CFLAGS
8704 and use it throughout.
8706 2003-09-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8708 * builtins.c (real_dconstp, fold_builtin_logarithm,
8709 fold_builtin_exponent): New, split out from fold_builtin. Also
8710 generalize to add log2, log10, exp2 and exp10/pow10 equivalents.
8711 * emit-rtl.c (dconst3, dconst10, dconstthird): New.
8712 (init_emit_once): Initialize new dconsts, use ARRAY_SIZE in lieu
8713 of hardcoded array size.
8714 * fold-const.c (fold): Add cases for exp2, exp10 and pow10.
8715 (tree_expr_nonnegative_p): Likewise.
8716 * real.h (dconst3, dconst10, dconstthird): New.
8718 2003-09-09 Jan Hubicka <jh@suse.cz>
8720 * cgraphunit.c (cgraph_finalize_function): Fix handling of extern
8722 (cgraph_finalize_compilation_unit): Fix crash when dealing with lost
8725 2003-09-09 Roger Sayle <roger@eyesopen.com>
8727 * builtins.c (fold_builtin_cabs): Protect the complex argument
8728 against multiple evaluation when optimizing cabs* into sqrt*.
8730 2003-09-09 Jan Hubicka <jh@suse.cz>
8732 * varasm.c (notice_global_symbol): Properly deal with weak symbols.
8734 2003-09-08 Kelley Cook <kelleycook@wideopenwest.com>
8736 * Makefile.in: Revert yesterday's change.
8738 2003-09-08 Bernardo Innocenti <bernie@develer.com>
8739 Peter Barada <peter@baradas.org>
8741 * config/m68k/coff.h (REGISTER_NAMES): Add fake register `argptr'
8742 * config/m68k/hp320.h (REGISTER_NAMES): Likewise.
8743 * config/m68k/linux.h (REGISTER_NAMES): Likewise.
8744 * config/m68k/m68kelf.h (REGISTER_NAMES): Likewise.
8745 * gcc/config/m68k/sgs.h (REGISTER_NAMES): Likewise.
8746 * config/m68k/m68k-protos.h (m68k_initial_elimination_offset): Add prototype.
8747 * config/m68k/m68k.c (m68k_frame): New struct, simular to ix86 back-end.
8748 (m68k_compute_frame_layout): New function.
8749 (m68k_initial_elimination_offset): New function.
8750 (m68k_output_function_prologue): ColdFire-specific movem handling.
8751 (m68k_output_function_epilogue): Likewise.
8752 * config/m68k/m68k.h (FIRST_PSEOUDO_REGISTER): Make room for argptr reg.
8753 (ARG_POINTER_REGNUM): Add new definition.
8754 (INITIAL_FRAME_POINTER_OFFSET): Remove macro.
8755 (ELIMINABLE_REGS): Define new macro, like in ix86 back-end.
8756 (CAN_ELIMINATE): Likewise.
8757 (INITIAL_ELIMINATION_OFFSET): Likewise.
8759 2003-09-08 Bernardo Innocenti <bernie@develer.com>
8761 * config/m68k/m68k.c (m68k_output_function_prologue): Simplify
8762 by removing redundant variable cfa_store_offset.
8764 2003-09-08 Mark Mitchell <mark@codesourcery.com>
8766 * langhooks-def.h (lhd_register_builtin_type): New function.
8767 (LANG_HOOKS_REGISTER_BUILTIN_TYPE): New macro.
8768 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
8769 * langhooks.h (lang_hooks_for_types): Add register_builtin_type.
8770 * langhooks.c (lhd_register_builtin_type): New function.
8771 * c-common.h (c_register_builtin_type): Declare.
8772 * c-common.c (c_register_builtin_type): New function.
8773 * c-lang.c (LANG_HOOKS_REGISTER_BUILTIN_TYPE): Define to
8774 c_register_builtin_type.
8775 * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Remove __fpreg,
8776 __float80, and __float128 macros.
8777 * config/ia64/ia64.c (ia64_init_builtins): Create __fpreg,
8778 __float80, and __float128 types.
8780 2003-09-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8783 (BT_FN_COMPLEX_LONGDOUBLE_COMPLEX_LONGDOUBLE_COMPLEX_LONGDOUBLE,
8784 BT_FN_COMPLEX_DOUBLE_COMPLEX_DOUBLE_COMPLEX_DOUBLE,
8785 BT_FN_COMPLEX_FLOAT_COMPLEX_FLOAT_COMPLEX_FLOAT): New.
8786 * builtins.def (BUILT_IN_CACOS, BUILT_IN_CACOSF, BUILT_IN_CACOSH,
8787 BUILT_IN_CACOSHF, BUILT_IN_CACOSHL, BUILT_IN_CACOSL,
8788 BUILT_IN_CARG, BUILT_IN_CARGF, BUILT_IN_CARGL, BUILT_IN_CASIN,
8789 BUILT_IN_CASINF, BUILT_IN_CASINH, BUILT_IN_CASINHF,
8790 BUILT_IN_CASINHL, BUILT_IN_CASINL, BUILT_IN_CATAN,
8791 BUILT_IN_CATANF, BUILT_IN_CATANH, BUILT_IN_CATANHF,
8792 BUILT_IN_CATANHL, BUILT_IN_CATANL, BUILT_IN_CCOS, BUILT_IN_CCOSF,
8793 BUILT_IN_CCOSH, BUILT_IN_CCOSHF, BUILT_IN_CCOSHL, BUILT_IN_CCOSL,
8794 BUILT_IN_CEXP, BUILT_IN_CEXPF, BUILT_IN_CEXPL, BUILT_IN_CPOW,
8795 BUILT_IN_CPOWF, BUILT_IN_CPOWL, BUILT_IN_CPROJ, BUILT_IN_CPROJF,
8796 BUILT_IN_CPROJL, BUILT_IN_CSIN, BUILT_IN_CSINF, BUILT_IN_CSINH,
8797 BUILT_IN_CSINHF, BUILT_IN_CSINHL, BUILT_IN_CSINL, BUILT_IN_CSQRT,
8798 BUILT_IN_CSQRTF, BUILT_IN_CSQRTL, BUILT_IN_CTAN, BUILT_IN_CTANF,
8799 BUILT_IN_CTANH, BUILT_IN_CTANHF, BUILT_IN_CTANHL, BUILT_IN_CTANL):
8801 * doc/extend.texi: Document new builtins.
8803 2003-09-09 Jan Hubicka <jh@suse.cz>
8805 * cgraph.c (cgraph_varpool_finalize_decl): Sanity check duplicated
8807 * cgraphunit.c (decide_is_fnction_needed): Avoid special case of nested
8808 functions, check for COMDAT.
8809 (cgraph_assemble_pending_functions): Break out from...
8810 (cgraph_finalize_function): ... here; allow redefinig of extern inline
8812 (record_call_1): Record function references only in non-unit-at-a-time
8814 (cgraph_analyze_function): Reset current_function_decl.
8815 (cgraph_finalize_compilation_unit): Assemble pending functions.
8817 2003-09-08 Mark Mitchell <mark@codesourcery.com>
8819 * mklibgcc.in (libcc.a): Depend on stmp-dirs.
8820 (libgov.a): Likewise.
8821 (libgcc_eh.a): Likewise.
8823 2003-09-08 Roger Sayle <roger@eyesopen.com>
8825 * fold-const.c (operand_equal_p): Clarify documentation.
8827 2003-09-08 Richard Henderson <rth@redhat.com>
8829 * c-decl.c (c_expand_body_1): Push and pop function context here.
8830 * tree-optimize.c (tree_rest_of_compilation): ... not here. Take
8831 nested argument instead of computing nesting ourselves.
8833 2003-09-08 Jakub Jelinek <jakub@redhat.com>
8835 * toplev.c (rest_of_handle_stack_regs): Call split_all_insns before
8836 regstack if optimizing but not scheduling after reload.
8838 2003-09-08 Jakub Jelinek <jakub@redhat.com>
8840 * config/sparc/sparc.c (struct machine_function): New type.
8841 (TARGET_HAVE_TLS, TARGET_CANNOT_FORCE_CONST_MEM): Define.
8842 (sparc_override_options): Initialize init_machine_status.
8843 (tls_symbolic_operand, tgd_symbolic_operand, tld_symbolic_operand,
8844 tie_symbolic_operand, tle_symbolic_operand): New functions.
8845 (symbolic_operand): Disallow tls_symbolic_operand.
8846 (symbolic_memory_operand): Likewise.
8847 (tls_call_delay, sparc_cannot_force_const_mem, legitimate_constant_p,
8848 constant_address_p, legitimate_pic_operand_p, legitimate_address_p):
8850 (sparc_tls_symbol): New variable.
8851 (sparc_tls_get_addr, sparc_tls_got, legitimize_tls_address,
8852 legitimize_address): New functions.
8853 (print_operand): Handle %&.
8854 (sparc_init_machine_status, get_some_local_dynamic_name,
8855 get_some_local_dynamic_name_1): New functions.
8856 (sparc_output_dwarf_dtprel): New function.
8857 * config/sparc/sparc.h (CONSTANT_ADDRESS_P): Moved into
8859 (LEGITIMATE_PIC_OPERAND_P): Moved into legitimate_pic_operand_p.
8860 (LEGITIMATE_CONSTANT_P): Moved into legitimate_constant_p.
8861 (GO_IF_LEGITIMATE_ADDRESS): Moved into legitimate_address_p.
8862 (LEGITIMIZE_ADDRESS): Moved into legitimize_address.
8863 (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
8864 (TARGET_TLS, TARGET_SUN_TLS, TARGET_GNU_TLS): Define.
8865 (ASM_OUTPUT_DWARF_DTPREL): Define.
8866 (PREDICATE_CODES): Add tgd_symbolic_operand, tld_symbolic_operand,
8867 tie_symbolic_operand, tle_symbolic_operand.
8868 * config/sparc/sparc.md (UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_TLSLDO,
8869 UNSPEC_TLSIE, UNSPEC_TLSLE, UNSPEC_TLSLD_BASE): New constants.
8870 (tls_call_delay): New attribute.
8871 (in_call_delay): Use it.
8872 (movqi, movhi, movsi, movdi): Call legitimize_tls_address if needed.
8873 (tgd_hi22, tgd_lo10, tgd_add32, tgd_add64, tgd_call32, tgd_call64,
8874 tldm_hi22, tldm_lo10, tldm_add32, tldm_add64, tldm_call32, tldm_call64,
8875 tldo_hix22, tldo_lox10, tldo_add32, tldo_add64, tie_hi22, tie_lo10,
8876 tie_ld32, tie_ld64, tie_add32, tie_add64, tle_hix22_sp32,
8877 tle_lox10_sp32, tle_hix22_sp64, tle_lox10_sp64): New insns.
8878 (tldo_ldub_sp32, tldo_ldub1_sp32, tldo_ldub2_sp32, tldo_ldsb1_sp32,
8879 tldo_ldsb2_sp32, tldo_ldub_sp64, tldo_ldub1_sp64, tldo_ldub2_sp64,
8880 tldo_ldub3_sp64, tldo_ldsb1_sp64, tldo_ldsb2_sp64, tldo_ldsb3_sp64,
8881 tldo_lduh_sp32, tldo_lduh1_sp32, tldo_ldsh1_sp32, tldo_lduh_sp64,
8882 tldo_lduh1_sp64, tldo_lduh2_sp64, tldo_ldsh1_sp64, tldo_ldsh2_sp64,
8883 tldo_lduw_sp32, tldo_lduw_sp64, tldo_lduw1_sp64, tldo_ldsw1_sp64,
8884 tldo_ldx_sp64, tldo_stb_sp32, tldo_stb_sp64, tldo_sth_sp32,
8885 tldo_sth_sp64, tldo_stw_sp32, tldo_stw_sp64, tldo_stx_sp64): New
8887 * config/sparc/sparc-protos.h (legitimate_constant_p,
8888 constant_address_p, legitimate_pic_operand_p, legitimate_address_p,
8889 legitimize_tls_address, legitimize_address, tls_symbolic_operand,
8890 tls_call_delay, sparc_output_dwarf_dtprel): New prototypes.
8891 * config/sparc/linux.h (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
8892 * config/sparc/linux64.h (TARGET_GNU_TLS, TARGET_SUN_TLS): Likewise.
8893 * configure.in (sparc*-*-*): Add TLS check.
8894 * configure: Rebuilt.
8896 2003-09-07 Eric Botcazou <ebotcazou@libertysurf.fr>
8899 * config/i386/i386.c (memory_address_length): Fix computation when
8900 the base is esp or ebp.
8902 2003-09-07 Mark Mitchell <mark@codesourcery.com>
8905 * varasm.c (initializer_constant_valid_p): Correct logic for
8908 2003-09-07 Roger Sayle <roger@eyesopen.com>
8910 * expr.c (expand_operands): New function to expand an operand pair.
8911 (expand_expr): Call expand_operands whenever we need to expand both
8912 operands of a binary operator.
8913 (do_store_flag): Likewise for operands of comparison operations.
8915 2003-09-07 Roger Sayle <roger@eyesopen.com>
8917 * combine.c (combine_simplify_rtx): Don't convert -(A*B) into
8918 (-A)*B if we care about sign-dependent rounding.
8920 2003-09-07 Gabriel Dos Reis <gcc@integrable-solutions.net>
8922 * c-pretty-print.h (pp_c_left_brace): Declare.
8923 (pp_c_right_brace): Likewise.
8924 * c-pretty-print.c (pp_c_left_brace): Now a function
8925 (pp_c_right_brace): Likewise.
8927 2003-09-07 Jan Hubicka <jh@suse.cz>
8929 * cfgcleanup.c (try_simplify_condjump): Fix again the preivous patch.
8931 2003-09-07 Gabriel Dos Reis <gdr@integrable-solutions.net>
8933 * diagnostic.c (warn_deprecated_use): Move to toplev.c
8935 2003-09-07 Gabriel Dos Reis <gdr@integrable-solutions.net>
8937 * langhooks.c (lhd_print_error_function): Move from diagnostic.c.
8938 * Makefile.in (langhooks.o): Depend on diagnostic.h
8940 2003-09-06 James E Wilson <wilson@tuliptree.org>
8942 * loop.c (loop_regs_update): Delete else clause for PATTERN rtx and
8945 2003-09-07 Kelley Cook <kelleycook@wideopenwest.com>
8947 * Makefile.in: Define $REMAKE to be $MAKE with LANGUAGES & BOOT_CFLAGS
8948 and use it throughout.
8950 2003-09-07 Jan Hubicka <jh@suse.cz>
8952 * cfgcleanup.c (try_simplify_condjump): Fix my previous patch.
8954 * toplev.c (rest_of_decl_compilation): Do not finalize external
8957 * cgraph.c (cgraph_mark_reachable_node): Only enqueue finalized
8959 (cgraph_varpool_finalize_decl): Notice global symbol when needed.
8961 2003-09-06 Jan Hubicka <jh@suse.cz>
8964 * calls.c (emit_library_call_value_1): Fix saving of BLKmode arguments.
8967 * cfgcleanup.c (try_simplify_condjump): Avoid unreachable code warning.
8969 2003-09-06 Gabriel Dos Reis <gdr@integrable-solutions.net>
8971 * diagnostic.c (announce_function): Move to toplev.c.
8973 2003-09-06 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8975 * gcse.c (expr_equiv_p): Don't consider anything to be equal to
8978 2003-09-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8980 * ggc-common.c (init_ggc_heuristics): Don't use the heuristics
8981 when gc checking is enabled.
8983 2003-09-06 Steven Bosscher <steven@gcc.gnu.org>
8986 * c-decl.c (c_expand_body_1): Move return warning from here...
8987 (finish_function): ...to here.
8989 2003-09-05 Geoffrey Keating <geoffk@apple.com>
8991 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Always return
8992 a subset of the input class.
8994 2003-09-05 Kazu Hirata <kazu@cs.umass.edu>
8996 * config/i860/i860.c: Follow spelling conventions.
8997 * config/i860/i860.h: Likewise.
8998 * config/sh/sh.h: Likewise.
9000 2003-09-05 Nitin Yewale <NitinY@KPITCummins.com>
9002 * config/h8300/h8300-protos.h: Declare h8300_hard_regno_rename_ok
9003 * config/h8300/h8300.h (HARD_REGNO_RENAME_OK): New.
9004 * config/h8300/h8300.c (h8300_hard_regno_rename_ok): New.
9006 2003-09-05 Roger Sayle <roger@eyesopen.com>
9007 Richard Henderson <rth@redhat.com>
9009 PR optimization/1823
9010 * expmed.c (expand_divmod <EXACT_DIV_EXPR>): Use an unsigned
9011 multiplication to implement division by constant integer.
9013 2003-09-05 Jan Hubicka <jh@suse.cz>
9015 * opts.c (decode_options): Enable unit-at-a-time at -O2.
9016 * params.def (max-inline-insns-single): Set to 500
9017 (max-inline-insns-auto): Set to 150
9018 * invoke.texi (max-inline-insns-single, max-inline-insns-auto): Update.
9020 2003-09-04 Richard Henderson <rth@redhat.com>
9022 * cgraph.c (cgraph_mark_reachable_node): Split out from ...
9023 (cgraph_mark_needed_node): Remove needed argument.
9024 * cgraph.h: Update to match.
9025 * cgraphunit.c (decide_is_function_needed): Split out from ...
9026 (cgraph_finalize_function): Reorg. Avoid deferred_inline_function
9027 if we generated the function.
9028 (record_call_1): Update for cgraph_mark_reachable_node.
9029 * varasm.c (mark_referenced): Likewise.
9030 * objc/objc-act.c (mark_referenced_methods): Likewise.
9032 2003-09-04 DJ Delorie <dj@redhat.com>
9034 * targhooks.c: Add comment explaining the migration process.
9036 2003-09-04 Eric Christopher <echristo@redhat.com>
9038 * config/frv/t-frv: Fix path for frv-abi.h.
9039 * config/frv/frv-asm.h: Fix string concatenation.
9041 2003-09-04 DJ Delorie <dj@redhat.com>
9043 * builtins.c (apply_args_size): Guard against a NULL cfun.
9044 (expand_builtin_apply_args_1): Likewise.
9045 (expand_builtin_apply): Likewise.
9046 Fixes PR bootstrap/12172.
9048 2003-09-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9050 * configure.in (gcc_cv_as_ix86_cmov_sun_syntax): Check if
9051 assembler supports Sun syntax for cmov.
9052 * configure: Regenerate.
9053 * config.in: Likewise.
9054 * config/i386/i386.c: Rename CMOV_SUN_AS_SYNTAX to
9055 HAVE_AS_IX86_CMOV_SUN_SYNTAX.
9056 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Remove.
9057 Fixes PR target/12101.
9059 2003-09-04 Matt Austern <austern@apple.com>
9061 * c-common.c (fname_as_string): Use lang_hooks.decl_printable_name
9062 with verbosity 0, instead of DECL_NAME, for human-readable string.
9064 2003-09-04 Eric Christopher <echristo@redhat.com>
9066 * targhooks.c (default_return_in_memory): Allow
9069 2003-09-04 Eric Christopher <echristo@redhat.com>
9071 * targhooks.c (default_return_in_memory): Fix typo
9074 2003-09-04 Eric Christopher <echristo@redhat.com>
9076 * targhooks.c (default_return_in_memory): Fix default
9079 2003-09-04 Bernardo Innocenti <bernie@develer.com>
9081 * config/m68k/m68k.c (m68k_coff_asm_named_section): Restore
9083 * config/m68k/coff.h (M68K_TARGET_COFF): Add flag used to
9084 enable coff-only code in m68k.c.
9086 2003-09-04 Nick Clifton <nickc@redhat.com>
9088 * config.gcc: Add v850e1 target. Allow --with-cpu to accept
9090 * config/v850/v850.h: Accept v850e1 as a default CPU.
9091 Accept -mv850e1 as a command line option.
9092 * doc/invoke.texi: Document new -mv850e1 command line switch.
9093 * config/v850/t-v850: Treat -mv850e1 as a multilib alias for
9096 2003-09-04 Nick Clifton <nickc@redhat.com>
9098 * config.gcc (v850e-*-*): Use t-v850e makefile fragment.
9099 * config/v850/t-v850: Only produce one extra multilib - for
9101 * config/v850/t-v850e: New file: Only produce one extra
9102 multilib - for the v850.
9104 2003-09-04 Jakub Jelinek <jakub@redhat.com>
9106 * config/ia64/libgcc-ia64.ver: Export _Unwind_GetBSP@@GCC_3.3.2.
9107 * config/ia64/unwind-ia64.c (_Unwind_GetBSP): New function.
9108 * unwind.h (_Unwind_GetBSP): New prototype.
9109 * libgcc-std.ver: Add empty GCC_3.3.2 version.
9110 * mkmap-symver.awk: For symbol versions with no exported symbols,
9111 don't put anything into version script, just change all symbol
9112 versions which inherit from it to inherit from its ancestor.
9114 2003-09-04 Eric Christopher <echristo@redhat.com>
9116 * config/mips/mips.c (mips_expand_prologue): Convert to
9117 calls.struct_value_rtx hook.
9118 (reg_or_const_float_1_operand): New.
9119 * config/mips/mips.h: Update Comments.
9120 (mips_arg): Add reg_or_const_float_1_operand.
9121 * config/mips/mips.md (divdf3); Convert to expander.
9123 (*divdf3): New pattern.
9126 2003-09-04 Jan Hubicka <jh@suse.cz>
9128 * toplev.c (wrapup_global_declarations): Fix final pass in
9131 2003-09-04 Mark Mitchell <mark@codesourcery.com>
9133 * doc/extend.texi: Document removal of cast-as-lvalue extension in
9136 2003-09-04 Nicolas Roche <roche@act-europe.fr>
9138 * gcc.c (process_command): Fix typo.
9140 2003-09-03 David O'Brien <obrien@FreeBSD.org>
9143 * config/i386/freebsd.h (SIZE_TYPE): Support TARGET_64BIT.
9144 (PTRDIFF_TYPE): Likewise.
9145 (WCHAR_TYPE_SIZE): Likewise.
9147 2003-09-03 DJ Delorie <dj@redhat.com>
9149 * targhooks.c: New file.
9150 * targhooks.h: New file.
9151 * Makefile.in: Add targhooks.o support.
9152 (function.o): Depend on$(TARGET_H).
9154 (combine.o): Depend on $(TREE_H) and $(TARGET_H).
9155 * builtins.c (apply_args_size, expand_builtin_apply_args_1,
9156 expand_builtin_apply): Convert to calls.struct_value_rtx hook.
9157 (expand_builtin_saveregs): Convert to
9158 calls.expand_builtin_saveregs hook.
9159 * c-decl.c (start_decl): Handle new calls.promote_prototypes hook
9160 here, instead of ...
9161 (get_parm_info) ... here.
9162 (store_parm_decls_oldstyle): Convert to calls.promote_prototypes
9164 (finish_function): Handle calls.promote_prototypes hook here too.
9165 * c-typeck.c (convert_arguments): Convert to
9166 calls.promote_prototypes hook.
9167 (c_convert_parm_for_inlining): Likewise.
9168 * calls.c (initialize_argument_information): Convert to
9169 calls.promote_function_args hook.
9170 (expand_call): Convert to calls.struct_value_rtx,
9171 calls.strict_argument_naming,
9172 calls.pretend_outgoing_varargs_named, and
9173 calls.promote_function_return hooks. Pass fndecl to
9174 aggregate_value_p. Initialize CUMULATIVE_ARGS before calling
9175 hooks, so they can use that.
9176 (emit_library_call_value_1): Likewise.
9177 * combine.c (setup_incoming_promotions): Convert to
9178 calls.promote_function_args hook.
9179 * emit-rtl.c: Convert to calls.struct_value_rtx hook.
9180 * expr.c (expand_assignment): Pass call to aggregate_value_p.
9181 (expand_expr): Likewise.
9182 * expr.h: Remove support for SETUP_INCOMING_VARARGS,
9183 STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED,
9184 RETURN_IN_MEMORY macro defaults.
9185 * final.c (profile_function): Convert to calls.struct_value_rtx
9187 * function.c (aggregate_value_p): Accept function type tree as
9188 second parameter; try to deduce fntype from it. Convert to
9189 calls.return_in_memory hook.
9190 (assign_parms): Convert to calls.setup_incoming_varargs,
9191 calls.strict_argument_naming, calls.promote_function_args,
9192 calls.pretend_outgoing_varargs_named hooks. Pass fndecl to
9194 (expand_function_start): Likewise. Convert to
9195 calls.struct_value_rtx hook.
9196 (expand_function_end): Convert to calls.promote_function_return hook.
9197 (allocate_struct_function): Pass fndecl to aggregate_value_p.
9198 * hard-reg-set.h: Update comments to new hook names.
9199 * integrate.c (expand_inline_function): Pass fndecl to aggregate_value_p.
9200 * reg-stack.c (stack_result): Likewise.
9201 * rtl.h (struct_value_rtx, struct_value_incoming_rtx): Delete.
9202 * stmt.c (expand_value_return): Convert to
9203 calls.promote_function_return hook.
9204 * target-def.h: Add TARGET_PROMOTE_FUNCTION_ARGS,
9205 TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES,
9206 TARGET_STRUCT_VALUE_RTX, TARGET_RETURN_IN_MEMORY,
9207 TARGET_EXPAND_BUILTIN_SAVEREGS, TARGET_SETUP_INCOMING_VARARGS,
9208 TARGET_STRICT_ARGUMENT_NAMING,
9209 TARGET_PRETEND_OUTGOING_VARARGS_NAMED, and TARGET_CALLS.
9210 * target.h: Likewise.
9211 * tree.h (aggregate_value_p): Also takes a tree to deduce function
9212 attributes from (for target hooks).
9213 * doc/tm.texi (PROMOTE_FUNCTION_ARGS, PROMOTE_FUNCTION_RETURN,
9214 PROMOTE_PROTOTYPES, RETURN_IN_MEMORY, STRUCT_VALUE_REGNUM,
9215 STRUCT_VALUE, STRUCT_VALUE_INCOMING_REGNUM, STRUCT_VALUE_INCOMING,
9216 EXPAND_BUILTIN_SAVEREGS, SETUP_INCOMING_VARARGS,
9217 STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED): Convert
9220 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Pass function
9221 to aggregate_value_p.
9222 * config/arm/arm.c (arm_init_cumulative_args,
9223 arm_output_mi_thunk): Likewise.
9224 * config/i386/i386.c (ix86_return_pops_args, x86_this_parameter):
9226 * config/mips/mips.c (mips_save_reg_p, mips_expand_prologue,
9227 mips_can_use_return_insn): Likewise.
9228 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
9229 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
9230 * config/sparc/sparc.c (sparc_output_mi_thunk): Pass function to
9232 * config/story16/stormy16.c (xstormy16_asm_output_mi_thunk): Pass
9233 function to aggregate_value_p.
9234 * objc/objc-act.c (generate_struct_by_value_array): Pass NULL to
9237 * config/sh/sh-protos.h (sh_builtin_saveregs): Remove.
9238 (sh_attr_renesas_p, sh_cfun_attr_renesas_p, sh_function_arg,
9239 sh_function_arg_advance, sh_pass_in_reg_p): New. * config/sh/sh.c
9240 (sh_handle_renesas_attribute, sh_promote_prototypes,
9241 sh_struct_value_rtx, sh_return_in_memory, sh_builtin_saveregs,
9242 sh_setup_incoming_varargs, sh_strict_argument_naming,
9243 sh_pretend_outgoing_varargs_named): New decls.
9244 (targetm): Add new hooks.
9245 (calc_live_regs): Save MACL and MACH if the function has the
9247 (sh_expand_prologue): Support renesas attribute.
9248 (sh_builtin_saveregs): Make static.
9249 (sh_build_va_list): Support renesas attribute.
9250 (sh_va_start): Likewise.
9251 (sh_va_arg): Likewise.
9252 (sh_promote_prototypes): New.
9253 (sh_function_arg): New, moved from sh.h. Support renesas
9255 (sh_function_arg_advance): Likewise.
9256 (sh_return_in_memory): Likewise.
9257 (sh_strict_argument_naming): Likewise.
9258 (sh_pretend_outgoing_varargs_named): Likewise.
9259 (sh_struct_value_rtx): New.
9260 (sh_attribute): Add renesas attribute.
9261 (sh_handle_renesas_attribute): New.
9262 (sh_attr_renesas_p, sh_cfun_attr_renesas_p): New.
9263 (sh_ms_bitfield_layout_p): Support renesas attribute also.
9264 (sh_output_mi_thunk): Pass function to aggregate_value_p. *
9265 config/sh/sh.h (TARGET_SWITCHES): Add -mrenesas as an alias for
9267 (STRUCT_VALUE_REGNUM, STRUCT_VALUE, RETURN_IN_MEMORY): Moved to
9269 (sh_args): Add renesas_abi flag.
9270 (INIT_CUMULATIVE_ARGS): Set it. Pass fndecl to aggregate_value_p.
9271 (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Move to sh.c.
9272 (PASS_IN_REG_P): Support renesas attribute. Pass DF and TF on the
9273 stack for the renesas abi.
9274 (STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED,
9275 SETUP_INCOMING_VARARGS, EXPAND_BUILTIN_SAVEREGS,
9276 PROMOTE_PROTOTYPES): Moved to sh.c. * config/sh/sh.md (call): Set
9277 call cookie to indicate renesas calls.
9279 2003-09-03 Mostafa Hagog <mustafa@il.ibm.com>
9281 * gcse.c (replace_one_set): New function.
9282 (pre_insert_copy_insn): Change the order of copying
9283 to make copy propagation discover additional PRE opportunities.
9285 2003-09-03 Roger Sayle <roger@eyesopen.com>
9287 PR optimization/11700.
9288 * simplify-rtx.c (simplify_subreg): Check that the subreg offset
9289 of a hard register is representable before trying to simplify it
9290 using subreg_hard_regno.
9292 2003-09-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9294 * configure.in (gcc_cv_ld_hidden): Disable unless using GNU ld.
9295 * configure: Regenerate.
9297 2003-09-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9299 * intl.h (N_): Remove parentheses.
9301 2003-09-03 Bernardo Innocenti <bernie@develer.com>
9303 * config.gcc (m68k-*-linux*): Remove definition of LINUX_DEFAULT_ELF.
9304 * config/i370/linux.h (LINUX_DEFAULT_ELF): Remove unconditional
9305 definition and code blocks compiled when not defined.
9306 * config/i386/linux.h (LINUX_DEFAULT_ELF): Likewise.
9307 * config/i386/linux64.h (LINUX_DEFAULT_ELF): Likewise.
9308 * config/sparc/linux.h: (LINUX_DEFAULT_ELF): Likewise.
9309 * config/sparc/linux64.h: (LINUX_DEFAULT_ELF): Likewise.
9311 2003-09-03 Jeff Sturm <jsturm@one-point.com>
9313 * cgraphunit.c (visited_nodes): New static variable.
9314 (record_call_1): Use walk_tree with visited_nodes.
9315 (cgraph_create_edges): Use walk_tree with visited_nodes.
9316 Setup/teardown visited_nodes hashtable.
9318 2003-09-03 Roger Sayle <roger@eyesopen.com>
9320 * toplev.c (flag_rounding_math): New global variable.
9321 (f_options): Add to the list of language independent options.
9322 * flags.h (flag_rounding_math): Prototype here.
9323 (HONOR_SIGN_DEPENDENT_ROUNDING): Use flag_rounding_math instead.
9324 * common.opt (frounding-math): New common command line option.
9325 * opts.c (common_handle_option): Handle OPT_frounding_math.
9326 (set_fast_math_flags): -ffast-math clears flag_rounding_math.
9328 * doc/invoke.texi: Document this new command line option.
9330 2003-09-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9332 * config/sol2.h (NO_IMPLICIT_EXTERN_C): Update comment.
9334 2003-09-03 Jan Hubicka <jh@suse.cz>
9336 * Makefile.in (c-objc-common.o): Kill gt-c-objc-common.h dependency.
9337 * c-decl.c (finish_function): Kill arguments, always use cgraph path.
9338 * c-objc-common.c: Kill include of gt-c-objc-common.h
9339 (expand_deferred_fns, deffer_fn): Kill function.
9340 (deferred_fns): Kill variable.
9341 (finish_cdtor): Update finish_function call.
9342 (c_objc_common_finish_file): Always call cgraph code.
9343 * c-parse.c: Regenerate.
9344 * c-parse.y: Regenerate.
9345 * c-tree.h (finish_function): Update prototype.
9346 * objc-acct.c (build_module_descriptor, finish_method_def):
9347 Update call of finish_function.
9348 * cgraphunit.c (cgraph_default_inline_p, cgraph_analyze_function): Add
9350 (cgraph_finalize_function): In non-unit-at-a-time mode analyze the
9351 function and assemble it if needed.
9352 (cgraph_finalize_compilation_unit): Do nothing in non-unit-at-a-time
9354 (cgraph_optimize): Likewise.
9355 (cgraph_expand_function): In non-unit-at-a-time mode keep function body
9356 even when it has no inline callees.
9357 * c-parse.in: Update calls to finish_function.
9359 2003-09-03 Nick Clifton <nickc@redhat.com>
9361 * config/arm/arm.h: Handle TARGET_CPU_iwmmxt.
9362 Use #error to generate the message if TARGET_DEFAULT is not
9365 2003-09-03 Richard Sandiford <rsandifo@redhat.com>
9367 * config/mips/mips.h (MASK_UNUSED1): Remove.
9368 (MASK_XGOT, TARGET_XGOT): Define.
9369 (TARGET_SWITCHES): Add an entry for -mxgot.
9370 (ASM_SPEC): Map -mxgot to -xgot.
9371 * config/mips/mips.c (mips_symbol_insns): Use TARGET_XGOT to decide
9372 whether we're using a big-GOT sequences.
9373 (mips_legitimize_const_move, mips_expand_call): Likewise.
9374 (override_options): Revert 2003-01-09 change.
9375 * doc/invoke.texi: Document -mxgot.
9377 2003-09-02 Jason Merrill <jason@redhat.com>
9379 * config/sol2.h (NO_IMPLICIT_EXTERN_C): Define here.
9380 * config/sparc/sol2.h: Not here.
9382 2003-09-02 Roger Sayle <roger@eyesopen.com>
9384 * expr.c (expand_expr): The code following both_summands performs
9385 the same task as simplify_gen_binary. Replace all gotos to
9386 both_summands with a call to simplify_gen_binary and delete the
9389 2003-09-02 Jason Merrill <jason@redhat.com>
9392 * config/sparc/sol2.h (NO_IMPLICIT_EXTERN_C): Define.
9394 2003-09-02 Jeff Sturm <jsturm@one-point.com>
9396 * cgraphunit.c (record_call_1): Use walk_tree_without_duplicates.
9397 (cgraph_optimize_function): Set current_function_decl to the
9398 fndecl we're integrating from.
9400 2003-09-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9402 * builtins.def: Break out _Complex math functions into their
9405 2003-09-02 Andreas Jaeger <aj@suse.de>
9407 * langhooks-def.h (LANG_HOOKS_RTL_EXPAND_STMT): Cast properly.
9409 2003-09-02 Josef Zlomek <zlomekj@suse.cz>
9411 * cfgbuild.c (compute_outgoing_frequencies): Use NOTE instead of
9412 finding the note again.
9414 2003-09-02 Nathanael Nerode <neroden@gcc.gnu.org>
9416 * config.gcc: Remove host-specific rewrites of target_alias.
9418 2003-09-01 Mark Mitchell <mark@codesourcery.com>
9420 * Makefile.in (genprogs): Fix typo.
9422 * Makefile.in (gencheck.o): Remove build commands.
9423 (dummy-conditions.o): Likewise.
9424 (read-rtl.o): Likewise.
9425 (gensupport.o): Likewise.
9426 (genconfig$(build_exeext)): Remove rule.
9427 (genconfig.o): Remove build commands.
9428 (genflags$(build_exeext)): Remove rule.
9429 (genflags.o): Remove build commands.
9430 (gencodes$(build_exeext)): Remove rule.
9431 (gencodes.o): Remove build commands.
9432 (genconstants.o): Remove build commands.
9433 (genemit$(build_exeext)): Remove rule.
9434 (genemit.o): Remove build commands.
9435 (genrecog$(build_exeext)): Remove rule.
9436 (genrecog.o): Remove build commands.
9437 (genextract$(build_exeext)): Remove rule.
9438 (genextract.o): Remove build commands.
9439 (genpeep$(build_exeext)): Remove rule.
9440 (genpeep.o): Remove build commands.
9441 (genattr$(build_exeext)): Remove rule.
9442 (genattr.o): Remove build commands.
9443 (genprognames): New variable.
9444 (genprogs): Likewise.
9445 (genobjs): Likewise.
9446 (genprogs): New rule.
9447 (genobjs): Likewise.
9448 (genattrtab.o): Remove build commands.
9449 (genautomata.o): Likewise.
9450 (genoutput$(build_exeext)): Remove rule.
9451 (genoutput.o): Remove build commands.
9452 (gengenrtl.o): Likewise.
9453 (genpreds.o): Likewise.
9454 (gengtype.o): Likewise.
9455 (genconditions.o): Likewise.
9456 (gen-protos.o): Likewise.
9458 (fix-header.o): Likewise.
9459 (scan-decls.o): Likewise.
9460 (check-g++): Combine with other check targets.
9461 (check-gcc): Likewise.
9462 (check-g77): Likewise.
9463 (check-objc): Likewise.
9465 2003-09-01 Nathanael Nerode <neroden@gcc.gnu.org>
9467 * config.gcc: Remove host-specific stuff which is unused here
9468 since the introduction of config.host.
9470 * doc/fragments.texi: Mention config.host.
9471 * doc/sourcebuild.texi: Mention config.host. Give brief descriptions
9472 of config.build, config.host, and config.gcc.
9474 2003-09-01 Zack Weinberg <zack@codesourcery.com>
9476 * c-decl.c (pushdecl): Don't put variables on
9477 C_TYPE_INCOMPLETE_VARS of a type unless that type is itself
9480 2003-09-01 Nathanael Nerode <neroden@gcc.gnu.org>
9482 * config.host: New file.
9483 * config.gcc: Remove some host-specific stuff and some
9484 logic needed only for repeated invocation.
9485 * configure.in: Use config.host.
9486 * configure: Regenerate.
9488 2003-09-01 Josef Zlomek <zlomekj@suse.cz>
9490 * c-typeck.c (build_binary_op): Kill BIT_ANDTC_EXPR.
9491 * convert.c (convert_to_integer): Kill BIT_ANDTC_EXPR.
9492 * fold-const.c (int_const_binop): Kill BIT_ANDTC_EXPR.
9493 (fold): Kill BIT_ANDTC_EXPR and label bit_and.
9494 * tree.def (BIT_ANDTC_EXPR): Kill.
9496 2003-08-31 Nathanael Nerode <neroden@gcc.gnu.org>
9498 * configure.in: Remove uses of "for x in .. ${foo}" idiom.
9499 * configure: Regenerate.
9501 * config.gcc: Remove references to install_headers_dir, now unused
9502 since introduction of config.build.
9503 * config.gcc (i860-*-sysv4*): Don't set unused USG, SVR3 defines.
9505 * doc/fragments.texi, doc/sourcebuild.texi: Mention new file
9508 * config.build: New file.
9509 * config.gcc: Remove some build-specific stuff.
9510 * configure.in: Use config.build.
9511 * configure: Regnerate.
9513 2003-08-31 Steven Bosscher <steven@gcc.gnu.org>
9514 Roger Sayle <roger@eyesopen.com>
9517 * stmt.c (expand_end_case_type): Only use jump tables for dense
9518 switch statements when optimizing for size.
9520 2003-08-31 Olivier Hainque <hainque@act-europe.fr>
9522 * builtins.c (expand_builtin_setjmp): Use emit_jump to jump around
9523 the != 0 case, which ensures pending stack adjustments are flushed.
9525 2003-08-30 Zack Weinberg <zack@codesourcery.com>
9527 * configure.frag: Delete file.
9528 * configure.in: Rename the substitution variables
9529 dep_host_xmake_file and dep_tmake_file to xmake_file and
9530 tmake_file respectively. Do not expand $srcdir in the
9531 value of these; leave that for Make. Introduce a new
9532 substitution varaible, all_lang_makefrags, which lists
9533 subdirectory Make-lang.in files; exclude these from
9534 all_lang_makefiles, which is now only for subdirectory
9535 outputs. Do not invoke configure.frag. Do not set nor
9536 AC_SUBST_FILE target_overrides, host_overrides, or
9537 language_fragments. Create build subdirectories in
9538 config.status extra commands.
9539 * configure: Regenerate.
9540 * Makefile.in: Update substitutions to match changes to
9541 configure. Use include directives instead of @-insertions
9542 to read in host, target, and language fragments.
9543 (Makefile rule): Do not invoke configure.frag. Do not copy
9544 config.status to config.run before executing it. Set
9545 CONFIG_HEADERS and CONFIG_FILES so that only Makefile gets
9547 (cstamp-h rule): Set CONFIG_FILES as well as CONFIG_HEADERS.
9549 2003-08-30 Zack Weinberg <zack@codesourcery.com>
9551 * c-tree.h: Delete COMPARE_DIFFERENT_TU from enumeration.
9552 * c-typeck.c (same_translation_unit_p): New function.
9553 (comptypes): Use it instead of flags parameter to identify
9554 structure types from different translation units.
9555 * c-decl.c (duplicate_decls): Always call comptypes with
9556 COMPTYPE_STRICT flags argument.
9557 (c_reset_state): Set BLOCK_SUPERCONTEXT of the block formed
9560 2003-08-30 Zack Weinberg <zack@codesourcery.com>
9562 * c-tree.h (C_TYPE_INCOMPLETE_VARS): New macro.
9563 * c-decl.c (struct c_scope): Remove "incomplete" field.
9564 (pushdecl): Attach variables with incomplete types to
9565 the TYPE_MAIN_VARIANT of the incomplete type in question.
9566 (finish_struct): Look at C_TYPE_INCOMPLETE_VARS for variables
9567 to complete, not at current_scope->incomplete. All such
9568 variables do need completion.
9570 2003-08-30 Richard Earnshaw <rearnsha@arm.com>
9571 Nicolas Pitre <nico@cam.org>
9573 * arm/lib1funcs.asm (RETCOND): Delete.
9574 (RETLDM): New assembler macro. Use it for returning with ldm/ldr.
9575 (ARM_LDIV0, THUMB_LDIV0): Collapse multiple definitions.
9576 (__ARM_ARCH__): Move here from ieee754-?f.S.
9577 (RET, RETc): Clean up definitions.
9578 (DIV_FUNC_END): Renamed from FUNC_END. All uses changed.
9579 (FUNC_END): New macro that marks the end of any function.
9580 (ARM_FUNC_START): New macro that allows an assembler routine to be
9581 implemented in ARM code even if a Thumb-only build.
9582 Unconditionally include ieee754-?f.S.
9583 * arm/ieee754-df.S: Delete macros moved to lib1funcs.asm.
9584 Mark ends of functions.
9585 Split into separate conditionally-compiled units.
9586 Use RETLDM to return from routines.
9587 * arm/ieee754-sf.S: Similarly.
9588 * t-arm-elf (LIB1ASMFUNCS): Remove _ieee754_dp and _ieee754_sp.
9589 Add _negdf2 _addsubdf3 _muldivdf3 _cmpdf2 _unorddf2 _fixdfsi
9590 _truncdfsf2 _negsf2 _addsubsf3 _muldivsf3 _cmpsf2 _unordsf2
9591 _fixsfsi and _fixunssfsi.
9593 * arm/ieee754-df.S (__muldf3): Fix bug when result of a
9594 multiplication underflows to zero.
9595 (__adddf3): Fix bug when using VFP ordering on little-endian
9597 (__fixdfsi): Use rrx to extract the carry into a register instead of
9598 MRS instruction. Optimize later use of result.
9599 * arm/ieee754-sf.S (__fixsfsi): Likewise.
9600 (__fixunssfsi): Use a better sequence for handling negative-or-zero.
9602 2003-08-29 Richard Henderson <rth@redhat.com>
9604 * tree-optimize.c: New file.
9605 * Makefile.in (OBJS-archive): Add tree-optimize.o.
9606 (tree-optimize.o): New.
9607 * c-decl.c (store_parm_decls): Use allocate_struct_function.
9608 (finish_function): Don't free_after_parsing or free_after_compilation.
9609 (set_save_expr_context): Move to tree-optimize.c.
9610 (c_expand_body_1): Use tree_rest_of_compilation.
9611 * c-lang.c (LANG_HOOKS_RTL_EXPAND_STMT): New.
9612 * objc/objc-lang.c (LANG_HOOKS_RTL_EXPAND_STMT): New.
9613 * c-objc-common.c (expand_deferred_fns): Don't emit unused inlines;
9614 iterate until closure.
9615 * langhooks-def.h (LANG_HOOKS_RTL_EXPAND_START,
9616 LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_RTL_EXPAND_END): New.
9617 (LANG_HOOKS_RTL_EXPAND_INITIALIZER): New.
9618 * langhooks.h (struct lang_hooks_for_rtl_expansion): New.
9619 * toplev.h (tree_rest_of_compilation): Declare it.
9621 2003-08-29 Richard Henderson <rth@redhat.com>
9623 * function.h (struct function): Add rtl_inline_init, saved_for_inline.
9624 * integrate.c (save_for_inline): Set saved_for_inline.
9625 * c-semantics.c (genrtl_scope_stmt): Check it.
9626 * toplev.c (wrapup_global_declarations): Check it.
9627 (rest_of_handle_inlining): Set and check rtl_inline_init.
9628 (rest_of_compilation): Remove out of date comment.
9630 2003-08-29 Richard Henderson <rth@redhat.com>
9632 * function.c (allocate_struct_function): New, split out of ...
9633 (prepare_function_start, init_function_start): ... here.
9634 * expr.c (init_expr): Use ggc_alloc_cleared.
9635 * stmt.c (init_stmt_for_function): Likewise.
9636 * tree.h (allocate_struct_function): Declare.
9638 2003-08-29 Nathanael Nerode <neroden@gcc.gnu.org>
9640 * config.gcc: Don't use negated character class in shell case
9643 2003-08-29 Richard Henderson <rth@redhat.com>
9645 * function.h (struct function): Move function_frequency and
9646 max_jumptable_ents before start of bit field members.
9648 2003-08-29 Richard Henderson <rth@redhat.com>
9650 * builtins.c (expand_builtin_constant_p): Check cse_not_expected here,
9651 (fold_builtin_constant_p) ... not here.
9653 2003-08-29 Richard Henderson <rth@redhat.com>
9655 * c-tree.h (C_DECL_FILE_SCOPE): Move ...
9656 * tree.h (DECL_FILE_SCOPE_P): ... here, and rename.
9657 * c-decl.c, c-objc-common.c, c-typeck.c: Update to match.
9659 2003-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9661 * builtins.def: Fix typos.
9662 (ATTR_MATHFN_FPROUNDING_STORE): New macro.
9663 (BUILT_IN_FREXP, BUILT_IN_FREXPF, BUILT_IN_FREXPL, BUILT_IN_MODF,
9664 BUILT_IN_MODFF, BUILT_IN_MODFL, BUILT_IN_REMQUO, BUILT_IN_REMQUOF,
9665 BUILT_IN_REMQUOL, BUILT_IN_SINCOS, BUILT_IN_SINCOSF,
9666 BUILT_IN_SINCOSL): Use ATTR_MATHFN_FPROUNDING_STORE.
9668 * builtins.def (BUILT_IN_ERFC, BUILT_IN_ERFCF, BUILT_IN_ERFCL):
9669 Use ATTR_MATHFN_FPROUNDING_ERRNO.
9671 2003-08-29 Nathanael Nerode <neroden@gcc.gnu.org>
9673 * config.gcc (i386-*-vsta): Fix obvious bogosity.
9675 * fixinc/inclhack.def: Remove special cases for unsupported
9676 PTX 1 and PTX 2 (including i[34567]86-sequent-sysv3).
9677 * fixinc/fixincl.x: Regenerate.
9679 2003-08-29 Mark Mitchell <mark@codesourcery.com>
9681 * Makefile.in (cpp.info): Just state dependencies.
9682 (gcc.info): Likewise.
9683 (gccint.info): Likewise.
9684 (gccinstall.info): Likewise.
9685 (cppinternals.info): Likewise.
9686 (cpp.dvi): Likewise.
9687 (gcc.dvi): Likewise.
9688 (gccint.dvi): Likewise.
9689 (gccinstall.dvi): Likewise.
9690 (cppinternals.dvi): Likewise.
9696 (fsf-funding.7): Likewise.
9697 ($(objdir)/%.info): New pattern rule.
9700 2003-08-29 Kelley Cook <kelleycook@wideopenwest.com>
9702 * Makefile.in (restage1): Pass BOOT_CFLAGS to recursive make.
9703 (restage2): Likewise.
9704 (restage3): Likewise.
9705 (restage4): Likewise.
9706 (restageprofile): Likewise.
9707 (restagefeedback): Likewise.
9708 (bubblestrap): Likewise.
9710 2003-08-29 Nathanael Nerode <neroden@gcc.gnu.org>
9712 * config.gcc: Narrow unsupported target match to avoid clobbering
9713 i?86-sequent-sysv4*.
9715 2003-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9717 * builtins.c (mathfn_built_in): Handle new math builtins.
9719 2003-08-28 Per Bothner <per@bothner.com>
9721 Fix (hopefully temporary) for breakage caused by my 08-21 patch.
9722 * cpplex.c (_cpp_get_fresh_line): Check for null buffer.
9723 (_cpp_lex_buffer): Likewise.
9724 * cpptrad.c (_cpp_read_logical_line_trad): Likewise.
9726 2003-08-28 Ulrich Weigand <uweigand@de.ibm.com>
9728 * config/s390/s390.md ("*mulsi3_sign"): New insn.
9729 ("mulsidi3" expander, "mulsi_6432" insn): Remove, replace by ...
9730 ("mulsidi3"): ... this new insn.
9731 ("umulsidi3"): New insn.
9732 ("divmoddi3", "divmodtidi3", "divmodtisi3"): Simplify by using
9733 mixed-mode matching constraints.
9734 ("udivmodsi4", "udivmoddisi3"): New insns.
9735 ("udivsi3", "umodsi3"): Use only in ESA/390 mode.
9737 2003-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9739 * builtin-types.def (BT_INT_PTR, BT_FLOAT_PTR, BT_DOUBLE_PTR,
9740 BT_LONGDOUBLE_PTR, BT_FN_FLOAT_FLOAT_FLOATPTR,
9741 BT_FN_DOUBLE_DOUBLE_DOUBLEPTR,
9742 BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLEPTR,
9743 BT_FN_FLOAT_FLOAT_INTPTR, BT_FN_DOUBLE_DOUBLE_INTPTR,
9744 BT_FN_LONGDOUBLE_LONGDOUBLE_INTPTR,
9745 BT_FN_FLOAT_FLOAT_FLOAT_INTPTR, BT_FN_DOUBLE_DOUBLE_DOUBLE_INTPTR,
9746 BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE_INTPTR,
9747 BT_FN_VOID_FLOAT_FLOATPTR_FLOATPTR,
9748 BT_FN_VOID_DOUBLE_DOUBLEPTR_DOUBLEPTR,
9749 BT_FN_VOID_LONGDOUBLE_LONGDOUBLEPTR_LONGDOUBLEPTR): New.
9750 * builtins.def (BUILT_IN_FREXP, BUILT_IN_FREXPF, BUILT_IN_FREXPL,
9751 BUILT_IN_MODF, BUILT_IN_MODFF, BUILT_IN_MODFL, BUILT_IN_REMQUO,
9752 BUILT_IN_REMQUOF, BUILT_IN_REMQUOL, BUILT_IN_SINCOS,
9753 BUILT_IN_SINCOSF, BUILT_IN_SINCOSL): New.
9754 * tree.c: Assign new type_nodes.
9755 * tree.h (tree_index): Add TI_FLOAT_PTR_TYPE, TI_DOUBLE_PTR_TYPE,
9756 TI_LONG_DOUBLE_PTR_TYPE, TI_INTEGER_PTR_TYPE.
9757 (float_ptr_type_node, double_ptr_type_node,
9758 long_double_ptr_type_node, integer_ptr_type_node): New type_nodes.
9760 * doc/extend.texi: Document new builtins.
9762 2003-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9764 * builtin-types.def (BT_FN_FLOAT_INT_FLOAT,
9765 BT_FN_DOUBLE_INT_DOUBLE, BT_FN_LONGDOUBLE_INT_LONGDOUBLE): New.
9767 * builtins.def (BUILT_IN_ERF, BUILT_IN_ERFC, BUILT_IN_ERFCF,
9768 BUILT_IN_ERFCL, BUILT_IN_ERFF, BUILT_IN_ERFL, BUILT_IN_GAMMA,
9769 BUILT_IN_GAMMAF, BUILT_IN_GAMMAL, BUILT_IN_J0, BUILT_IN_J0F,
9770 BUILT_IN_J0L, BUILT_IN_J1, BUILT_IN_J1F, BUILT_IN_J1L,
9771 BUILT_IN_JN, BUILT_IN_JNF, BUILT_IN_JNL, BUILT_IN_LGAMMA,
9772 BUILT_IN_LGAMMAF, BUILT_IN_LGAMMAL, BUILT_IN_SIGNIFICAND,
9773 BUILT_IN_SIGNIFICANDF, BUILT_IN_SIGNIFICANDL, BUILT_IN_TGAMMA,
9774 BUILT_IN_TGAMMAF, BUILT_IN_TGAMMAL, BUILT_IN_Y0, BUILT_IN_Y0F,
9775 BUILT_IN_Y0L, BUILT_IN_Y1, BUILT_IN_Y1F, BUILT_IN_Y1L,
9776 BUILT_IN_YN, BUILT_IN_YNF, BUILT_IN_YNL): New.
9778 * doc/extend.texi: Document new builtins.
9780 2003-08-28 Nathanael Nerode <neroden@gcc.gnu.org>
9782 * fixinc/mkfixinc.sh: Remove special case code for unsupported
9783 variants of i?86, powerpcle, and thumb.
9784 * fixinc/mkfixinc.sh: Remove special case code for unsupported
9785 arm and hppa variants.
9787 2003-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9789 * builtin-types.def (BT_FN_INT_FLOAT, BT_FN_INT_DOUBLE,
9790 BT_FN_INT_LONGDOUBLE, BT_FN_LONG_FLOAT, BT_FN_LONG_DOUBLE,
9791 BT_FN_LONG_LONGDOUBLE, BT_FN_LONGLONG_FLOAT,
9792 BT_FN_LONGLONG_DOUBLE, BT_FN_LONGLONG_LONGDOUBLE,
9793 BT_FN_FLOAT_FLOAT_LONGDOUBLE, BT_FN_DOUBLE_DOUBLE_LONGDOUBLE,
9794 BT_FN_FLOAT_FLOAT_INT, BT_FN_DOUBLE_DOUBLE_INT,
9795 BT_FN_LONGDOUBLE_LONGDOUBLE_INT, BT_FN_FLOAT_FLOAT_LONG,
9796 BT_FN_DOUBLE_DOUBLE_LONG, BT_FN_LONGDOUBLE_LONGDOUBLE_LONG,
9797 BT_FN_FLOAT_FLOAT_FLOAT_FLOAT, BT_FN_DOUBLE_DOUBLE_DOUBLE_DOUBLE,
9798 BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE): New.
9800 * builtins.def (BUILT_IN_ACOS, BUILT_IN_ACOSF, BUILT_IN_ACOSH,
9801 BUILT_IN_ACOSHF, BUILT_IN_ACOSHL, BUILT_IN_ACOSL, BUILT_IN_ASIN,
9802 BUILT_IN_ASINF, BUILT_IN_ASINH, BUILT_IN_ASINHF, BUILT_IN_ASINHL,
9803 BUILT_IN_ASINL, BUILT_IN_ATANH, BUILT_IN_ATANHF, BUILT_IN_ATANHL,
9804 BUILT_IN_CBRT, BUILT_IN_CBRTF, BUILT_IN_CBRTL, BUILT_IN_COPYSIGN,
9805 BUILT_IN_COPYSIGNF, BUILT_IN_COPYSIGNL, BUILT_IN_COSH,
9806 BUILT_IN_COSHF, BUILT_IN_COSHL, BUILT_IN_DREM, BUILT_IN_DREMF,
9807 BUILT_IN_DREML, BUILT_IN_EXP10, BUILT_IN_EXP10F, BUILT_IN_EXP10L,
9808 BUILT_IN_EXP2, BUILT_IN_EXP2F, BUILT_IN_EXP2L, BUILT_IN_EXPM1,
9809 BUILT_IN_EXPM1F, BUILT_IN_EXPM1L, BUILT_IN_FDIM, BUILT_IN_FDIMF,
9810 BUILT_IN_FDIML, BUILT_IN_FMA, BUILT_IN_FMAF, BUILT_IN_FMAL,
9811 BUILT_IN_FMAX, BUILT_IN_FMAXF, BUILT_IN_FMAXL, BUILT_IN_FMIN,
9812 BUILT_IN_FMINF, BUILT_IN_FMINL, BUILT_IN_HYPOT, BUILT_IN_HYPOTF,
9813 BUILT_IN_HYPOTL, BUILT_IN_ILOGB, BUILT_IN_ILOGBF, BUILT_IN_ILOGBL,
9814 BUILT_IN_LDEXP, BUILT_IN_LDEXPF, BUILT_IN_LDEXPL, BUILT_IN_LLRINT,
9815 BUILT_IN_LLRINTF, BUILT_IN_LLRINTL, BUILT_IN_LLROUND,
9816 BUILT_IN_LLROUNDF, BUILT_IN_LLROUNDL, BUILT_IN_LOG10,
9817 BUILT_IN_LOG10F, BUILT_IN_LOG10L, BUILT_IN_LOG1P, BUILT_IN_LOG1PF,
9818 BUILT_IN_LOG1PL, BUILT_IN_LOG2, BUILT_IN_LOG2F, BUILT_IN_LOG2L,
9819 BUILT_IN_LOGB, BUILT_IN_LOGBF, BUILT_IN_LOGBL, BUILT_IN_LRINT,
9820 BUILT_IN_LRINTF, BUILT_IN_LRINTL, BUILT_IN_LROUND,
9821 BUILT_IN_LROUNDF, BUILT_IN_LROUNDL, BUILT_IN_NEXTAFTER,
9822 BUILT_IN_NEXTAFTERF, BUILT_IN_NEXTAFTERL, BUILT_IN_NEXTTOWARD,
9823 BUILT_IN_NEXTTOWARDF, BUILT_IN_NEXTTOWARDL, BUILT_IN_POW10,
9824 BUILT_IN_POW10F, BUILT_IN_POW10L, BUILT_IN_REMAINDER,
9825 BUILT_IN_REMAINDERF, BUILT_IN_REMAINDERL, BUILT_IN_RINT,
9826 BUILT_IN_RINTF, BUILT_IN_RINTL, BUILT_IN_SCALB, BUILT_IN_SCALBF,
9827 BUILT_IN_SCALBL, BUILT_IN_SCALBLN, BUILT_IN_SCALBLNF,
9828 BUILT_IN_SCALBLNL, BUILT_IN_SCALBN, BUILT_IN_SCALBNF,
9829 BUILT_IN_SCALBNL, BUILT_IN_SINH, BUILT_IN_SINHF, BUILT_IN_SINHL,
9830 BUILT_IN_TANH, BUILT_IN_TANHF, BUILT_IN_TANHL): New.
9832 * doc/extend.texi: Document new builtins.
9834 2003-08-28 Ulrich Weigand <uweigand@de.ibm.com>
9836 * config/s390/s390.c (legitmate_constant_p): Use LARL on
9837 zSeries machines even in 31-bit addressing mode.
9838 (legitimate_reload_constant_p): Likewise.
9839 (legitimize_pic_address): Likewise.
9840 (legitimize_tls_address): Likewise.
9841 (s390_split_branches): Likewise.
9842 (s390_dump_pool): Likewise.
9843 (s390_mainpool_finish): Likewise.
9844 (s390_chunkify_start): Likewise.
9845 (s390_select_rtx_section): Likewise.
9846 * config/s390/s390.md ("doloop_si"): Likewise.
9847 ("pool_start_31", "pool_end_31"): Likewise.
9848 ("pool_start_64", "pool_end_64"): Likewise.
9849 ("main_base_31_small", "main_base_31_large"): Likewise.
9850 ("main_base_64"): Likewise.
9851 ("reload_base_31", "reload_base_64"): Likewise.
9852 ("*movsi_larl"): New insn.
9853 ("cjump", "icjump"): Use long branches on zSeries machines.
9855 ("call"): Use BRASL on zSeries machines.
9856 ("call_value", "call_value_tls"): Likewise.
9857 ("brasl", "bras", "basr_64", "basr_31", "bas_64", "bas_31"): Remove
9859 ("*bras", "*brasl", "*basr") ... these new insns.
9860 ("brasl_r", "bras_r", "basr_64_r", "basr_31_r", "bas_64_r",
9861 "bas_31_r"): Remove and replace by ...
9862 ("*bras_r", "*brasl_r", "*basr_r") ... these new insns.
9863 ("brasl_tls", "bras_tls", "basr_64_tls", "basr_31_tls",
9864 "bas_64_tls", "bas_31_tls"): Remove and replace by ...
9865 ("*bras_tls", "*brasl_tls", "*basr_tls") ... these new insns.
9866 ("*return_si", "*return_di"): Remove and replace by ...
9867 ("*return"): ... this new insn.
9868 ("rotlsi3"): Allow on zSeries machines.
9870 * config/s390/s390.c (legitimize_reload_constant_p): Use
9871 LL/LH type instructions in z/Architecture mode.
9872 * config/s390/s390.md ("*movsi_lli"): Likewise.
9873 ("*andsi3_ni", "*andhi3_ni", "*andqi3_ni"): Likewise.
9874 ("*iorsi3_ni", "*iorhi3_ni", "*iorqi3_ni"): Likewise.
9875 ("*extendqisi2"): Use LB in z/Architecture mode.
9876 ("*zero_extendqisi2_64", "*zero_extendqisi2_31"): Use LLGC in
9877 z/Architecture mode.
9878 ("zero_extendqihi2", "*zero_extendqihi2_64", "*zero_extendqihi2_31"):
9881 * config/s390/s390.md ("*tmdi_ext"): Allow in both 64-bit
9883 ("ptr_extend"): Allow only in 64-bit mode.
9885 2003-08-27 Daniel Jacobowitz <drow@mvista.com>
9887 * gcc.c (STANDARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX)
9888 (TOOLDIR_BASE_PREFIX, STANDARD_BINDIR_PREFIX): Remove unnecessary
9890 (main): Only use standard_startfile_prefix if native.
9891 * doc/tm.texi (STANDARD_STARTFILE_PREFIX): Update.
9893 2003-08-27 Per Bothner <pbothner@apple.com>
9895 * cpperror.c (print_location): Don't check for !pfile->buffer. That
9896 test fails following my 08-21 change, and it seems unnecessary anyway.
9897 (cpp_error): Likewise.
9899 2003-08-27 Jason Merrill <jason@redhat.com>
9901 * real.c (do_multiply): Initialize with memset.
9903 2003-08-27 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9905 * gcov.c (typedef struct arc_info): New field cs_count.
9906 (accumulate_line_counts): Find cycles correctly.
9908 2003-08-27 Ulrich Weigand <uweigand@de.ibm.com>
9910 * config/s390/s390.c (struct machine_function): Remove member
9912 (s390_optimize_prolog): Replace TEMP_REG argument with
9913 TEMP_USED and BASE_USED. Do not check get_pool_size ().
9914 (general_s_operand): Accept all immediates before reload if
9915 ALLOW_IMMEDIATE. If not ALLOW_IMMEDIATE, reject literal pool
9917 (s390_output_symbolic_const): Remove UNSPEC_LTREL_OFFSET handling.
9918 (find_constant_pool_ref): Ignore UNSPECV_POOL_ENTRY insns.
9919 (s390_alloc_pool): New function.
9920 (s390_new_pool): Call it.
9921 (s390_dump_pool): Add REMOTE_LABEL argument.
9922 (s390_chunkify_start): Add BASE_REG argument. Do not check
9924 (s390_chunkify_finish): Add BASE_REG argument. Adapt
9925 s390_dump_pool call.
9926 (s390_pool_count, s390_nr_constants): Remove.
9927 (s390_output_constant_pool): Remove.
9928 (s390_mainpool_start): New function.
9929 (s390_mainpool_finish): New function.
9930 (s390_mainpool_cancel): New function.
9931 (s390_reorg): Implement main literal pool handling.
9932 (s390_emit_prologue): Emit main_pool placeholder instead of
9933 literal_pool_31 / literal_pool_64 insns.
9934 * config/s390/s390.h (s390_pool_count, s390_nr_constants): Remove.
9935 (ASM_OUTPUT_POOL_PROLOGUE, ASM_OUTPUT_SPECIAL_POOL_ENTRY): Remove.
9936 * config/s390/s390.md (UNSPEC_MAIN_BASE): New symbolic constant.
9937 ("main_base_31_small", "main_base_31_large"): New insns.
9938 ("main_base_64", "main_pool"): New insns.
9939 ("literal_pool_31", "literal_pool_64"): Remove.
9941 2003-08-27 Nathanael Nerode <neroden@gcc.gnu.org>
9943 * fixinc/inclhack.def (ptx_netswap): New disabled fix, ported from
9945 * fixinc/inclhack.def (undefine_null): Don't generate \r characters.
9947 * fixinc/fixincl.x: Regenerate.
9949 2003-08-27 Richard Earnshaw <rearnsha@arm.com>
9951 * lib1funcs.asm (L_ieee754_sp): New. Include ieee754-sf.S.
9952 (L_ieee754_dp): New. Include ieee754-df.S.
9953 * arm/ieee754-sf.S: Rework to allow interworking, calling from Thumb,
9954 and compilation in apcs-26 mode.
9955 * arm/ieee754-df.S: Likewise.
9956 * t-arm-elf (DPBIT, FPBIT, fp-bit.c dp-bit.c): Delete rules
9957 (LIB1ASMFUNCS): Add _ieee754_sp and _ieee754_dp targets.
9959 2003-08-27 Nicolas Pitre <nico@cam.org>
9961 * arm/ieee754-sf.S: New.
9962 * arm/ieee754-df.S: New.
9964 2003-08-27 Jakub Jelinek <jakub@redhat.com>
9966 * builtins.c (expand_builtin_expect_jump): Save pending_stack_adjust
9967 and restore it if returning NULL.
9969 2003-08-27 Richard Sandiford <rsandifo@redhat.com>
9971 * calls.c (initialize_argument_information): If an argument has no
9972 stack space associated with it, and BLOCK_REG_PADDING is defined,
9973 use it to decide at which end the argument should be padded.
9974 * function.c (assign_parms): Allocate BLKmode stack slots.
9975 * config/mips/mips-protos.h (mips_pad_arg_upward): Declare.
9976 (mips_pad_reg_upward): Declare.
9977 * config/mips/mips.h (PAD_VARARGS_DOWN): Use FUNCTION_ARG_PADDING.
9978 (CUMULATIVE_ARGS): Remove num_adjusts and adjusts.
9979 (FUNCTION_ARG_PADDING): Use mips_pad_arg_upward.
9980 (BLOCK_REG_PADDING): Use mips_pad_reg_upward.
9981 * config/mips/mips.c (struct mips_arg_info): Remove struct_p.
9982 (mips_expand_call): Remove code for generating structure shifts.
9983 (mips_arg_info): Don't set struct_p. Don't set fpr_p for non-float
9984 types unless using the EABI.
9985 (function_arg_advance): Don't generate shift instructions.
9986 (function_arg): Don't return them. Don't short-circuit the
9987 check for double structure chunks for DFmode arguments.
9988 (mips_pad_arg_upward, mips_pad_reg_upward): New functions.
9989 (mips_expand_prologue): Remove code to emit structure shifts.
9990 * config/mips/irix6-libc-compat.c: Remove workarounds for buggy
9991 structure passing (inet_ntoa, inet_lnaof, inet_netof). Update
9992 comments to say that only structure returns are a problem.
9994 2003-08-26 Nathanael Nerode <neroden@gcc.gnu.org>
9996 * fixinc/tests/base/string.h, fixinc/tests/base/sys/regset.h:
9997 Fix to match produced versions.
9998 * fixinc/inclhack.def (longlong_t): New disabled test, ported
10000 * fixinc/inclhack.def (ptx_pwd_h): New disabled fix, ported
10002 * fixinc/inclhack.def (ptx_sys_mc_param_h): New disabled fix,
10003 ported from fixinc.ptx.
10005 2003-08-26 Per Bothner <pbothner@apple.com>
10007 * cpplib.h (struct cpp_token): Change type of field line to fileline.
10008 (cpp_error_with_line): Use fileline for appropriate parameter.
10009 * cpphash.h (struct cpp_macro): Change type of field line to fileline.
10010 (struct cpp_reader): Likewise for fields line and directive_line.
10011 (_cpp_begin_message): Use fileline for appropriate parameter.
10012 * cpperror.c (print_location, _cpp_begin_message, cpp_error_with_line,
10013 cpp_error): Use fileline for appropriate parameters and variables.
10014 (print_location): New local lin, since it is not a fileline.
10016 2003-08-26 Roger Sayle <roger@eyesopen.com>
10018 PR middle-end/12002
10019 * tree.h (SCALAR_FLOAT_TYPE_P, COMPLEX_FLOAT_TYPE_P): New macros.
10020 (FLOAT_TYPE_P): Define in terms of these two new macros.
10021 * fold-const.c (fold <PLUS_EXPR>): Don't convert x+x into x*2.0
10022 for complex floating point types.
10024 2003-08-26 Ulrich Weigand <uweigand@de.ibm.com>
10026 * config/s390/s390.c (emit_prologue): Don't check literal pool size.
10027 * config/s390/s390.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Call
10028 s390_output_pool_entry.
10030 2003-08-26 Nathanael Nerode <neroden@gcc.gnu.org>
10032 * fixinc/inclhack.def (svr4_preproc_lint_on,
10033 svr4_preproc_lint_off, svr4_preproc_machine): New disabled
10034 fixes, ported from fixinc.svr4.
10036 2003-08-26 Mark Mitchell <mark@codesourcery.com>
10038 * doc/install.texi (Prerequisites): Mention GNU make requirement.
10040 * Makefile.in (AR_FOR_TARGET): Export it.
10041 (AR_CREATE_FOR_TARGET): Likewise.
10042 (AR_FLAGS_FOR_TARGET): Likewise.
10043 (AR_EXTRACT_FOR_TARGET): Likewise.
10045 (BUILD_PREFIX): Likewise.
10046 (BUILD_PREFIX_1): Likewise.
10047 (DESTDIR): Likewise.
10048 (GCC_FOR_TARGET): Likewise.
10049 (INCLUDES): Likewise.
10050 (INSTALL_DATA): Likewise.
10051 (LIB1ASMSRC): Likewise.
10052 (LIBGCC2_CFLAGS): Likewise.
10053 (MACHMODE_H): Likewise.
10054 (NM_FOR_TARGET): Likewise.
10055 (RANLIB_FOR_TARGET): Likewise.
10056 (libsubdir): Likewise.
10057 (slibdir): Likewise.
10058 (ORDINARY_FLAGS_TO_PASS): Remove stuff that we're
10060 (libgcc.a): Don't pass them here.
10061 (stmp-multilib): Or here.
10062 (install-libgcc): Or here.
10063 (install-multilib): Or here.
10064 (POSTSTAGE1_FLAGS_TO_PASS): Or here.
10065 (stage1_build): Or here.
10067 2003-08-26 Andreas Krebbel <krebbel1@de.ibm.com>
10069 * config/s390/s390.md ("*llgt_sisi", "*llgt_sisi_split", "*llgt_didi",
10070 "*llgt_didi_split", "*llgt_sidi", "*llgt_sidi_split"): New insns.
10072 2003-08-26 Andreas Krebbel <krebbel1@de.ibm.com>
10074 * config/s390/s390.md ("*fmadddf", "*fmsubdf",
10075 "*fmaddsf", "*fmsubsf"): New insns.
10077 2003-08-26 Roger Sayle <roger@eyesopen.com>
10079 * fold-const.c (fold <MULT_EXPR>): Optimize (C1/X)*C2 into
10080 (C1*C2)/X when unsafe math optimizations are allowed.
10081 (fold <RDIV_EXPR>): Optimize C1/(X*C2) into (C1/C2)/X with unsafe
10082 math optimizations. Minor code clean-ups. Recursively call
10083 fold when constructing sub-expressions.
10085 2003-08-26 Roger Sayle <roger@eyesopen.com>
10087 * builtins.c (fold_builtin_bitop): New function to perform constant
10088 folding of ffs, clz, ctz, popcount and parity builtin functions
10089 and their long and long long variants (such as ffsl and ffsll).
10090 (fold_builtin): fold_builtin_bitop when appropriate.
10091 * simplify-rtx.c (simplify_unary_operation): Honor both
10092 CLZ_DEFINED_VALUE_AT_ZERO and CTZ_DEFINED_VALUE_AT_ZERO when
10093 evaluating clz and ctz at compile-time, for operands wider
10094 than HOST_WIDE_INT.
10096 2003-08-26 Nathan Sidwell <nathan@codesourcery.com>
10098 * builtins.c (build_function_call_expr): Don't set
10099 TREE_SIDE_EFFECTS here.
10100 * expr.c (emit_block_move_via_libcall): Likewise.
10101 (clear_storage_via_libcall): Likewise.
10102 * tree.c (build): Set TREE_SIDE_EFFECTS for non-const, non-pure
10105 * gcse.c (is_too_expensive): New function.
10106 (gcse_main, delete_null_pointer_checks, bypass_jumps): Use it.
10108 2003-08-25 Zack Weinberg <zack@codesourcery.com>
10110 * config.gcc (hppa*-*-hpux11*, ia64*-*-hpux*): Remove
10111 commented-out logic to use DCE threads (if present), add
10112 support for POSIX threads.
10113 * config/ia64/hpux.h: Define CPP_SPEC to set appropriate
10114 #defines for -pthread. Add -lpthread to LIB_SPEC when
10115 -pthread. In both cases take -mt as a synonym for -pthread
10116 for acc compatibility.
10117 Define GTHREAD_USE_WEAK to 0.
10118 * config/pa/pa-hpux11.h: Likewise for CPP_SPEC and LIB_SPEC.
10119 Remove old logic for DCE threads from LIB_SPEC.
10120 * config/pa/pa64-hpux.h: Define GTHREAD_USE_WEAK to 0.
10122 2003-08-25 Roger Sayle <roger@eyesopen.com>
10124 * builtins.c (expand_builtin_mathfn): Rearrange so that we only
10125 return 0 for invalid argument types. Instead drop through to a
10126 call of expand_call at the bottom of function. If op is SQRT,
10127 try attaching a SQRT rtx as the REQ_EQUAL note of the libcall.
10129 2003-08-25 Richard Henderson <rth@redhat.com>
10131 * config/ia64/ia64.c (ia64_expand_tls_address): Properly truncate
10132 result when op0 is SImode.
10134 2003-08-25 Nathanael Nerode <neroden@twcny.rr.com>
10136 * fixinc/inclhack.def (svr4_sighandler_type): New fix, ported
10138 * fixinc/fixincl.x: Regenerate.
10139 * fixinc/tests/base/sys/signal.h: Regenerate.
10141 2003-08-25 Ulrich Weigand <uweigand@de.ibm.com>
10143 * combine.c (simplify_comparison): Re-enable widening of comparisons
10144 with non-paradoxical subregs of non-REG expressions.
10146 2003-08-25 Ulrich Weigand <uweigand@de.ibm.com>
10148 * combine.c (distribute_notes): Handle REG_ALWAYS_RETURN.
10150 2003-08-25 Ulrich Weigand <uweigand@de.ibm.com>
10152 * combine.c (combine_simplify_rtx): Fix RTL sharing bug.
10154 2003-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
10156 * pretty-print.h (pp_maybe_newline_and_indent): New macro.
10157 * c-pretty-print.h (c_pretty_printer): Now typedef to the
10158 structure. Be consistent with pretty-print.h abd cxx-pretty-print.h
10159 (struct c_pretty_print_info): Document. Add new fields.
10160 (pp_type_specifier_seq): Rename from pp_c_type_specifier.
10161 (pp_direct_abstract_declarator): New macro.
10162 (pp_ptr_operator): Likewise.
10163 (pp_simple_type_specifier): Likewise.
10164 (pp_expression): Likewise.
10165 (pp_parameter_list): Rename from pp_parameter_declaration.
10166 * c-pretty-print.c (pp_c_whitespace): Now a function.
10167 (pp_c_left_paren): Likewise.
10168 (pp_c_right_paren): Likewise.
10169 (pp_c_dot): Likewise.
10170 (pp_c_ampersand): Likewise.
10171 (pp_c_arrow): Likewise.
10172 (pp_c_semicolon): Likewise.
10173 (pp_c_type_cast): New function.
10174 (pp_c_space_for_pointer_operator): Likewise.
10175 (pp_c_call_argument_list): Likewise.
10176 (pp_c_cv_qualifier): Adjust prototype.
10177 (pp_c_type_qualifier_list): Likewise.
10178 (pp_c_pointer): Likewise. Handle REFERENCE_TYPE here.
10179 (pp_c_type_specifier): Rename from pp_c_simple_type_specifier.
10180 Adjust to follow standard grammar.
10181 (pp_c_specifier_qualifier_list): Adjusr prototype. Handle
10182 REFERENCE_TYPE. Tidy.
10183 (pp_c_parameter_type_list): Adjust prototype. Tidy.
10184 (pp_c_parameter_declaration): Remove.
10185 (pp_c_abstract_declarator): Adjust prototype.
10186 (pp_c_direct_abstract_declarator): Likewise.
10187 (pp_c_type_id): Likewise.
10188 (pp_c_storage_class_specifier): Likewise.
10189 (pp_c_function_specifier): Likewise.
10190 (pp_c_declaration_specifiers): Likewise.
10191 (pp_c_direct_declarator): Likewise.
10192 (pp_c_declarator): Likewise.
10193 (pp_c_declarator): Likewise.
10194 (pp_c_declaration): Likewise.
10195 (pp_c_attributes): Likewise. Tidy.
10196 (pp_c_function_definition): Adjust prototype.
10197 (pp_c_char): Likewise.
10198 (pp_c_string_literal): Likewise.
10199 (pp_c_integer_constant): Likewise.
10200 (pp_c_character_constant): Likewise.
10201 (pp_c_bool_constant): Likewise.
10202 (pp_c_enumeration_constant): Likewise.
10203 (pp_c_floating_constant): Likewise.
10204 (pp_c_constant): Likewise.
10205 (pp_c_identifier): Likewise.
10206 (pp_c_primary_expression): Likewise. Remove TARGET_EXPR case. Tidy.
10207 (pp_c_initializer): Adjust prototype.
10208 (pp_c_init_declarator): Likewise.
10209 (pp_c_initializer_list): Likewise.
10210 (pp_c_id_expression): Likewise.
10211 (pp_c_postfix_expression): Likewise.
10212 (pp_c_expression_list): Likewise.
10213 (pp_c_unary_expression): Likewise.
10214 (pp_c_cast_expression): Likewise.
10215 (pp_c_multiplicative_expression): Likewise.
10216 (pp_c_additive_expression): Likewise.
10217 (pp_c_shift_expression): Likewise.
10218 (pp_c_relational_expression): Likewise.
10219 (pp_c_equality_expression): Likewise.
10220 (pp_c_and_expression): Likewise.
10221 (pp_c_exclusive_or_expression): Likewise.
10222 (pp_c_inclusive_or_expression): Likewise.
10223 (pp_c_logical_and_expression): Likewise.
10224 (pp_c_logical_or_expression): Likewise.
10225 (pp_c_conditional_expression): Likewise.
10226 (pp_c_assignment_expression): Likewise.
10227 (pp_c_expression): Likewise. Tidy.
10228 (pp_c_statement): Likewise. Document.
10229 (pp_c_pretty_printer_init): Adjust prototype. Tidy.
10231 * c-lang.c (c_initialize_diagnostics): Update.
10232 * c-common.h (strip_pointer_operator): Declare.
10233 * c-common.c (strip_pointer_operator): Define.
10235 2003-08-25 Mark Mitchell <mark@codesourcery.com>
10238 * tree.h (build_method_type_directly): Declare.
10239 * c-common.c (handle_vector_size_attributes): Handle METHOD_TYPEs.
10240 (vector_size_helper): Likewise.
10241 * tree.c (build_method_type_directly): New function.
10242 (build_method_type): Use it.
10244 2003-08-24 Richard Henderson <rth@redhat.com>
10246 * config/i386.i386.c (ix86_return_in_memory): Reformat. Return true
10247 for 16-byte vector modes if sse not enabled; warn for abi change.
10248 (ix86_value_regno): Only return xmm0 for 16-byte vector types.
10250 2003-08-24 Kazu Hirata <kazu@cs.umass.edu>
10252 * rtlanal.c (may_trap_p): Simplify an integer comparison.
10254 2003-08-24 Nathanael Nerode <neroden@gcc.gnu.org>
10256 * fixinc/inclhack.def (AAB_svr4_replace_byteorder): Enhance
10257 comment. Enable for DYNIX/ptx systems (when they switch to
10258 regular fixincludes).
10259 * fixinc/fixincl.x: Regenerate.
10261 2003-08-23 Jason Eckhardt <jle@rice.edu>
10263 * config/i860/t-i860: New.
10264 * config.gcc (i860-*-sysv4*): Add t-i860 to tmake_file.
10266 2003-08-23 Jakub Jelinek <jakub@redhat.com>
10268 * c-decl.c (pushdecl): Only put decls which finish_struct will do
10269 something about onto incomplete chain.
10270 (finish_struct): If not removing type from incomplete
10273 2003-08-20 Jan Hubicka <jh@suse.cz>
10276 * i386.c (ix86_expand_carry_flag_compare): Validate operand.
10279 * i386.c (const_0_to_3_operand, const_0_to_7_operand,
10280 const_0_to_15_operand, const_0_to_255_operand): New predicates.
10281 * i386.h (PREDICATE_CODES): Add these.
10282 * i386.c (pinsrw and pextrw patterns): Use them.
10285 * i386.c (ix86_expand_binop_builtin): Behave sanely for VOIDmodes.
10288 * expr.c (convert_modes): Deal properly with integer to vector
10289 constant conversion.
10292 * i386.md (zero_extendsidi2*): Add MMX and SSE alternatives.
10294 2003-08-23 Ulrich Weigand <uweigand@de.ibm.com>
10296 * config/s390/s390.h (LOAD_EXTEND_OP): Remove.
10297 * config/s390/s390.md ("movhi"): New expander; old insn renamed to ...
10298 ("*movhi"): ... this.
10299 ("movqi", "*movqi"): Likewise.
10300 ("movqi_64"): Remove.
10301 ("*zero_extendhisi2_31"): Change predicate to s_operand.
10303 2003-08-23 Dale Johannesen <dalej@apple.com>
10304 * calls.c (emit_library_call_value_1): Fix obvious errors in
10305 arguments to emit_group_store.
10307 2003-08-23 Jason Eckhardt <jle@rice.edu>
10309 * calls.c (emit_library_call_value_1): Remove code related
10310 to LIBGCC_NEEDS_DOUBLE.
10311 * config/stormy16/stormy16.h: Remove mention of LIBGCC_NEEDS_DOUBLE.
10312 * doc/tm.texi: Likewise.
10313 * system.h: Poison the LIBGCC_NEEDS_DOUBLE macro.
10315 2003-08-23 Richard Sandiford <rsandifo@redhat.com>
10317 * config/mips/linux64.h (STARTFILE_PREFIX_SPEC): Remove.
10319 2003-08-23 Richard Sandiford <rsandifo@redhat.com>
10321 * config/mips/mips.c (mips_setup_incoming_varargs): Handle o32 and o64
10322 as well. Put memory references in the varargs alias set.
10323 (mips_expand_prologue): Remove varargs handling from here.
10325 2003-08-23 Ulrich Weigand <uweigand@de.ibm.com>
10327 * config/s390/s390.c (s390_expand_movstr, s390_expand_clrstr,
10328 s390_expand_cmpmem, s390_output_constant_pool, s390_build_va_list,
10329 s390_function_profiler, s390_output_mi_thunk): Use ISO C syntax
10330 for function pointer calls.
10331 * config/s390/s390.md ("*negdi2_31"): Likewise.
10333 2003-08-23 Roger Sayle <roger@eyesopen.com>
10335 * combine.c (apply_distributive_law): Correct comment.
10337 2003-08-23 Jason Eckhardt <jle@rice.edu>
10339 * config/i860/i860.h: Remove comment mentioning LIBGCC_NEEDS_DOUBLE.
10341 2003-08-22 Jason Eckhardt <jle@rice.edu>
10343 * config/i860/i860.c (i860_build_va_list): Create the va_decl
10344 declaration. Document the va_list structure.
10345 (i860_va_start): Initialize the va_list structure.
10346 (i860_va_arg): Rewrite completely.
10347 * config/i860/i860.h (LIBGCC_NEEDS_DOUBLE): Don't define.
10348 * config/i860/varargs.asm: Do not allocate or initialize
10349 a va_list. Return the address of the register save area.
10351 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
10353 * config/iq2000/iq2000.c: Fix comment typos.
10354 * config/iq2000/iq2000.md: Likewise.
10356 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
10358 * config/iq2000/iq2000.c: Follow spelling conventions.
10359 * config/iq2000/iq2000.h: Likewise.
10360 * config/mn10300/mn10300.c: Likewise.
10362 2003-08-22 Jason Eckhardt <jle@rice.edu>
10364 * config/i860/i860.c (output_move_double): Don't set latehalf
10365 to zero for CONST_INT (since it could be, e.g., -1).
10367 * config/i860/i860.h (REMSI3_LIBCALL): Replace this macro...
10368 (MODSI3_LIBCALL): ...with this one.
10369 (UREMSI3_LIBCALL): Replace this macro...
10370 (UMODSI3_LIBCALL): ...with this one.
10372 2003-08-22 Jason Eckhardt <jle@rice.edu>
10374 * config/i860/i860-protos.h (output_delay_insn): Remove prototype.
10375 (output_delayed_branch): Remove prototype.
10376 (single_insn_src_p): Remove prototype.
10377 * config/i860/i860.c (single_insn_src_p): Remove function.
10378 (output_delayed_branch): Remove function.
10379 (output_delay_insn): Remove function.
10380 (va_start): Remove unconditional test and dead code, re-format.
10381 Fix coding style and spelling problems in various comments.
10382 * config/i860/i860.md (UNSPECV_BLOCKAGE): Define constant...
10383 (blockage pattern): ...and use it here.
10384 (all define_peephole patterns related to delayed branches): Remove.
10385 Fix coding style and spelling problems in various comments.
10387 2003-08-22 Jason Eckhardt <jle@rice.edu>
10389 * config/i860/i860.c: Replace all occurrences of 'GNU CC' with 'GCC'.
10390 Remove all uses of the PARAMS macro. Remove superflous prototypes.
10391 Convert all function definitions from traditional to ISO C90 syntax.
10392 * config/i860/i860-protos.h: Replace all occurrences of 'GNU CC'
10393 with 'GCC'. Remove all uses of the PARAMS macro.
10394 * config/i860/i860.h: Replace all occurrences of 'GNU CC' with 'GCC'.
10395 * config/i860/i860.md: Likewise.
10396 * config/i860/sysv4.h: Likewise.
10397 * config/i860/varargs.asm: Likewise.
10399 2003-08-22 Jason Eckhardt <jle@rice.edu>
10401 * config/i860/i860-protos.h (i860_va_start): Remove 'stdarg_p'
10403 (tdesc_section): Add prototype.
10404 Update copyright dates.
10405 * config/i860/i860.c: Include coretypes.h, tm.h, and toplev.h.
10406 (TARGET_ASM_FUNCTION_PROLOGUE): Move definition to end of file.
10407 (TARGET_ASM_FUNCTION_EPILOGUE): Likewise.
10408 (targetm): Likewise.
10409 (i860_output_function_prologue): Substitute HOST_WIDE_INT_PRINT_DEC
10410 for '%d' where necessary.
10411 (i860_va_start): Remove 'stdarg_p' argument. Make conditional checks
10412 on 'stdarg_p' unconditional. Divide current_function_args_info.ints
10413 by UNITS_PER_WORD when referencing (likewise for .floats).
10414 (I860_SVR4_VARARGS): Rename...
10415 (I860_SVR4_VA_LIST): ...to this.
10416 Call build() with 't' rather than 'field'.
10417 (i860_rtx_costs): New function.
10418 (TARGET_RTX_COSTS): Define.
10419 (i860_internal_label): New function.
10420 (TARGET_ASM_INTERNAL_LABEL): Define.
10421 (i860_file_start): New function.
10422 Update copyright dates.
10423 * config/i860/i860.h (CPP_PREDEFINES): Remove.
10424 (TARGET_CPU_CPP_BUILTINS): Define.
10425 (EXPAND_BUILTIN_VA_START): Remove 'stdarg' argument.
10426 (CONST_COSTS): Remove (and move code to i860_rtx_costs).
10427 (ASM_FILE_START): Remove.
10428 (ASM_FILE_START_1): Remove.
10429 (ASM_GLOBALIZE_LABEL): Remove.
10430 (ASM_OUTPUT_INTERNAL_LABEL): Remove.
10431 (ASM_OUTPUT_CASE_LABEL): Replace call of ASM_OUTPUT_INTERNAL_LABEL
10432 with targetm.asm_out.internal_label.
10433 Update copyright dates.
10434 * config/i860/sysv4.h (USER_LABEL_PREFIX): Define.
10435 (CPP_PREDEFINES): Remove.
10436 (TARGET_OS_CPP_BUILTINS): Define.
10437 (GLOBAL_ASM_OP): Define.
10438 (ASM_FILE_START): Remove.
10439 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Define.
10440 (TARGET_ASM_FILE_START): Define.
10441 Update copyright dates.
10443 2003-08-22 Jason Eckhardt <jle@rice.edu>
10445 * gcc/config.gcc (i860-*-sysv4*): Add target.
10446 * config/i860/i860-protos.h: New.
10447 * config/i860/i860.c: New.
10448 * config/i860/i860.h: New.
10449 * config/i860/i860.md: New.
10450 * config/i860/sysv4.h: New.
10451 * config/i860/varargs.asm: New.
10452 * config/i860/x-sysv4: New.
10454 2003-08-22 Jason Eckhardt <jle@rice.edu>
10456 * config/pa/pa.c: Replace 'GNU CC' with 'GCC'.
10457 Remove all uses of PARAMS macro.
10458 Convert all function definitions to ISO C90 syntax.
10459 * config/pa/elf.h: Replace 'GNU CC' with 'GCC'.
10460 * config/pa/fptr.c: Likewise.
10461 * config/pa/lib2funcs.asm: Likewise.
10462 * config/pa/long_double.h: Likewise.
10463 * config/pa/milli64.S: Likewise.
10464 * config/pa/pa-64.h: Likewise.
10465 * config/pa/pa-hpux.h: Likewise.
10466 * config/pa/pa-hpux10.h: Likewise.
10467 * config/pa/pa-hpux11.h: Likewise.
10468 * config/pa/pa-linux.h: Likewise.
10469 * config/pa/pa-modes.def: Likewise.
10470 * config/pa/pa-osf.h: Likewise.
10471 * config/pa/pa-pro-end.h: Likewise.
10472 * config/pa/pa.md: Likewise.
10473 * config/pa/pa32-linux.h: Likewise.
10474 * config/pa/pa64-linux.h: Likewise.
10475 * config/pa/pa64-hpux.h: Likewise.
10476 * config/pa/pa64-regs.h: Likewise.
10477 * config/pa/quadlib.c: Likewise.
10478 * config/pa/rtems.h: Likewise.
10479 * config/pa/pa-protos.h: Replace 'GNU CC' with 'GCC' and remove
10480 all uses of the PARAMS macro.
10481 * config/pa/pa.h: Likewise.
10482 * config/pa/som.h: Likewise.
10484 * config/iq2000/iq2000.c: Replace 'GNU CC' with 'GCC'.
10485 Remove all uses of PARAMS macro.
10486 Convert all function definitions to ISO C90 syntax.
10487 * config/iq2000-protos.h: Replace 'GNU CC' with 'GCC'.
10488 Remove all uses of PARAMS macro.
10489 * config/iq2000.h: Remove all uses of PARAMS macro.
10490 * config/iq2000/iq2000.md: Replace 'GNU CC' with 'GCC'.
10492 2003-08-23 Ulrich Weigand <uweigand@de.ibm.com>
10494 * config/s390/s390-protos.h (s390_output_pool_entry): Declare.
10495 * config/s390/s390.c (gen_consttable): Remove.
10496 (s390_dump_pool): Use UNSPECV_POOL_ENTRY for pool entry insns.
10497 (s390_output_pool_entry): New function.
10498 * config/s390/s390.md (UNSPECV_POOL_QI, UNSPECV_POOL_HI,
10499 UNSPECV_POOL_SI, UNSPECV_POOL_DI, UNSPECV_POOL_TI,
10500 UNSPECV_POOL_SF, UNSPECV_POOL_DF): Remove, replace by ...
10501 (UNSPECV_POOL_ENTRY): ... this new constant.
10502 ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
10503 "consttable_ti", "consttable_sf", "consttable_df"): Remove ...
10504 ("*pool_entry"): ... and replace by this new insn.
10505 ("literal_pool_31"): Do not emit anchor label if pool empty.
10507 * config/s390/s390.c (struct machine_function): Add save_return_addr_p.
10508 (s390_optimize_prolog): Save RETURN_REGNUM if save_return_addr_p.
10509 (s390_fixup_clobbered_return_reg): Remove.
10510 (s390_reorg): Don't call s390_fixup_clobbered_return_reg.
10511 (s390_return_addr_rtx): Always retrieve return address from save area
10512 slot. Use save_return_addr_p to force slot to be filled.
10513 (s390_emit_prologue): Remove has_hard_reg_initial_val test.
10515 2003-08-22 Chris Demetriou <cgd@broadcom.com>
10517 * config/mips/mips.h (MASK_FIX_SB1, TARGET_FIX_SB1): New defines.
10518 (TARGET_SWITCHES): Add -mfix-sb1 and -mno-fix-sb1.
10519 * config/mips/mips.md (divdf3, divsf3, sqrtdf2, sqrtsf2): Work
10520 around SB-1 errata if TARGET_FIX_SB1 is set.
10521 (recip.d insn, recip.s insn, rsqrt.d insn, rsqrt.s insn): Likewise.
10522 * doc/invoke.texi: Document MIPS -mfix-sb1 and -mno-fix-sb1.
10524 2003-08-22 Roger Sayle <roger@eyesopen.com>
10526 * hashtable.c (ht_expand): Avoid calculating rehash for the common
10527 case that the first probe hits an empty hash table slot.
10529 2003-08-22 Mark Mitchell <mark@codesourcery.com>
10531 * config/ia64/hpux.h (SUPPORTS_INIT_PRIORITY): Define to 0.
10533 2003-08-22 Mark Mitchell <mark@codesourcery.com>
10535 * config/ia64/ia64.md (*ptr_extend_plus_1): Rename to ...
10536 (ptr_extend_plus_imm): ... this.
10537 * config/ia64/ia64.c (addp4_optimize_ok): Do not disable addp4
10538 optimization in C++.
10539 (ia64_output_mi_thunk): Support ILP32 mode.
10541 2003-08-22 Bernardo Innocenti <bernie@develer.com>
10543 * gcc/config/m68k/m68k.c (m68k_coff_asm_named_section): remove unused
10545 * gcc/config/m68k/m68k.c (-m68k_svr3_asm_out_constructor): likewise.
10547 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
10549 * config/i386/i386.c (const_int_1_operand): Simplify an
10550 integer comparison.
10552 2003-08-22 Alan Modra <amodra@bigpond.net.au>
10554 * config/fp-bit.c: Specify config/ dir for include of fp-bit.h.
10555 * config/rs6000/ppc64-fp.c: Likewise.
10557 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
10559 * cfgcleanup.c: Fix comment typos.
10560 * emit-rtl.c: Likewise.
10561 * optabs.c: Likewise.
10562 * ra-build.c: Likewise.
10563 * rtlanal.c: Likewise.
10564 * tree.h: Likewise.
10566 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
10568 * c-decl.c: Fix comment formatting.
10569 * cfgrtl.c: Likewise.
10570 * combine.c: Likewise.
10571 * convert.c: Likewise.
10572 * dominance.c: Likewise.
10573 * dwarf2out.c: Likewise.
10574 * dwarfout.c: Likewise.
10575 * expmed.c: Likewise.
10576 * fold-const.c: Likewise.
10577 * gcov.c: Likewise.
10578 * genattrtab.c: Likewise.
10579 * ggc-common.c: Likewise.
10580 * mips-tfile.c: Likewise.
10581 * regmove.c: Likewise.
10583 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
10585 * builtin-attrs.def: Fix comment formatting.
10586 * c-pretty-print.c: Likewise.
10587 * diagnostic.h: Likewise.
10588 * langhooks.h: Likewise.
10589 * recog.c: Likewise.
10590 * simplify-rtx.c: Likewise.
10591 * tree.def: Likewise.
10593 2003-08-22 Bernardo Innocenti <bernie@develer.com>
10595 * config/m68k/m68k-protos.h: Convert to ISO C90.
10596 * config/m68k/m68k.c: Likewise.
10598 2003-08-21 Bernardo Innocenti <bernie@develer.com>
10599 Paul Dale <pauli@snapgear.com>
10600 Peter Barada <peter@baradas.org>
10602 * config/m68k/m68k.c (m68k_rtx_costs): Adjust mul/div costs for
10605 2003-08-21 Zack Weinberg <zack@codesourcery.com>
10607 * Makefile.in (INCLUDES): Remove -I$(srcdir)/config.
10608 * config.gcc (*-*-openbsd): Don't set tm_file.
10609 (alpha*-*-openbsd, arm*-*-coff*, arm*-wince-pe*,
10610 arm-*-pe*, avr-*-*, h8300-*-rtems*, h8300-*-elf*,
10611 h8300-*-*, hppa*-*-osf*, hppa*-*-bsd*, hppa*-*-hpux*,
10612 i370-*-opened*, i370-*-mvs*, i370-*-linux*, i?86-*-openbsd*,
10613 i?86-*-lynxos, i?86-*-nto-qnx*, iq2000*-*-elf*, m68000-hp-hpux*,
10614 m68k-hp-hpux*, m68k-*-aout*, m68k-*-coff*, m68020-*-elf*,
10615 m68k-*-elf*, m68k*-*-netbsd*, m68k*-*-openbsd*, m68k-*-sysv4*,
10616 m68k-*-linux*, m68k-*-rtems*, mcore-*-pe*, mips*-*-netbsd*,
10617 mips*-*-openbsd*, rs6000-*-lynxos*, sh*-*-elf*, sh*-*-ka,
10618 sh-*-rtemself, sparc-*-openbsd*, strongarm-*-pe, vax-*-openbsd*,
10619 xscale-*-coff): Use explicit and complete lists of target headers
10620 to include. Move definitions to tm_defines where appropriate.
10621 (hppa*-*-openbsd*, powerpc-*-openbsd*): Comment out stanza for
10622 not-yet-contributed configuration.
10624 * config/lynx.h, config/alpha/openbsd.h, config/arm/coff.h
10625 * config/avr/avr.h, config/frv/frv.h, config/h8300/elf.h
10626 * config/i370/linux.h, config/i370/mvs.h, config/i370/oe.h
10627 * config/i386/nto.h, config/iq2000/iq2000.h,
10628 * config/m68k/coff.h, config/m68k/hp310.h, config/m68k/hp320.h
10629 * config/m68k/linux.h, config/m68k/m68k-aout.h
10630 * config/m68k/m68k-none.h, config/m68k/m68kv4.h
10631 * config/m68k/netbsd.h, config/m68k/openbsd.h
10632 * config/m68k/sgs.h, config/mcore/mcore-pe.h,
10633 * config/mips/netbsd.h, config/mips/openbsd.h, config/pa/pa.h,
10634 * config/rs6000/lynx.h, config/sh/embed-elf.h, config/sparc/openbsd.h:
10635 Remove includes of other target config headers, and
10636 definitions of macros moved to tm_defines lists. Add #undefs
10637 where now necessary to prevent redefinition warnings.
10639 * config/h8300/coff.h: New file split out of...
10640 * config/h8300/elf.h: ...here.
10641 * config/m68k/hp320base.h: New file split out of...
10642 * config/m68k/hp320.h: ...here.
10643 * config/rs6000/lynxbase.h: New file split out of...
10644 * config/rs6000/lynx.h: ...here.
10646 * config/m68k/hp310g.h, config/m68k/hp320g.h, config/m68k/hpux7.h
10647 * config/m68k/m68k-coff.h, config/mips/openbsd-be.h: Delete file.
10649 * config/sol2.h: Remove #if 0-ed #include of sys/mman.h.
10650 * config/m68k/m68kelf.h: Remove commented out #include of m68k/sgs.h.
10651 * config/mcore/mcore.h: Don't include hwint.h nor machmode.h.
10652 Remove unnecessary #ifndef.
10653 * config/s390/s390.h: Prefix #include of s390/fixdfdi.h
10654 [under IN_LIBGCC2] with config/.
10656 2003-08-21 Per Bothner <pbothner@apple.com>
10658 * cppfiles.c (stack_file): Correctly pass return_at_eof parameter
10659 to cpp_push_buffer.
10660 * cpplex.c (_cpp_get_fresh_line): Don't buffer->prev - handled
10661 by return_at_eof check. Always call _cpp_pop_buffer at end.
10663 2003-08-21 Kazu Hirata <kazu@cs.umass.edu>
10666 * config/h8300/h8300.md (two anonymous patterns): Remove.
10668 2003-08-21 Richard Sandiford <rsandifo@redhat.com>
10670 * config/mips/mips.h (MUST_PASS_IN_STACK): Remove BLKmode clause.
10671 * config/mips/mips.c (function_arg_pass_by_reference): Never return
10672 true for n32 & n64.
10674 2003-08-21 Josef Zlomek <zlomekj@suse.cz>
10676 * fold-const.c (fold): Fix bug in (A & C) == D where D & ~C != 0
10677 and similarly in (A | C) == D where C & ~D != 0.
10679 2003-08-20 Geoffrey Keating <geoffk@apple.com>
10682 * configure.in: When testing with_libs and with_headers, treat
10683 'no' as unset. Based on a patch by Dan Kegel <dank@kegel.com>.
10684 * configure: Regenerate.
10686 2003-08-20 Peter Barada <peter@baradas.org>
10688 * longlong.h (umul_ppmm): Add ColdFire support.
10690 2003-08-20 Peter Barada <peter@baradas.org>
10691 Bernardo Innocenti <bernie@develer.com>
10693 * config/m68k/m68k-none.h: Introduce new ColdFire archs.
10694 * config/m68k/m68k.h: Likewise.
10695 * config/m68k/lb1sf68.asm: Rename __mcf5200__ to __mcoldfire__.
10696 * config/m68k/coff.h: Rename TARGET_5200 to TARGET_COLDFIRE.
10697 * config/m68k/linux.h: Likewise.
10698 * config/m68k/m68k.c: Likewise.
10699 * config/m68k/m68k.md: Likewise.
10700 * config/m68k/m68kelf.h: Likewise.
10701 * config/m68k/netbsd-elf.h: Likewise.
10702 * config/m68k/t-m68kelf: Add multilib targets for new ColdFire archs.
10704 2003-08-20 Bernardo Innocenti <bernie@develer.com>
10706 * config/m68k/m68k.c: Strip away code depending on NO_ADDSUB_Q definition.
10707 * config/m68k/m68k.md: Likewise.
10709 2003-08-20 Mark Mitchell <mark@codesourcery.com>
10712 Revert this change:
10713 2003-08-19 Mark Mitchell <mark@codesourcery.com>
10714 * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
10715 types with precisions other than those given by native machine
10718 2003-08-20 Gunther Nikl <gni@gecko.de>
10720 * config/m68k/m68k.md (anonymous define_insn): remove obsolete code
10721 selected by FSGLMUL_USE_S and FSGLDIV_USE_S
10722 * config/m68k/m68k.c (output_move_himode): remove SGS_NO_LI check
10723 * config/m68k/m68k.md (anonymous define_insn): Likewise
10724 * config/m68k/m68k.md (anonymous define_insn): remove ISI_OV check
10725 * config/m68k/m68k.c (standard_68881_constant_p): remove obsolete
10726 code selected by NO_ASM_FMOVECR
10728 2003-08-20 Gunther Nikl <gni@gecko.de>
10730 * config/m68k/m68k.c (output_move_const_into_data_reg,
10731 output_move_himode): unify MOTOROLA/MIT handling of moveq
10732 * config/m68k/m68k.md (movsi_const0, anonymous define_insn):
10735 2003-08-20 Gunther Nikl <gni@gecko.de>
10737 * config/m68k/m68k.c (m68k_output_function_prologue): use %U in
10739 * config/m68k/m68k.c (m68k_output_function_epilogue): replace
10740 HOST_WIDE_INT_PRINT_DEC with %wd
10742 2003-08-20 Loren James Rittle <ljrittle@acm.org>
10744 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Handle
10747 2003-08-20 Roger Sayle <roger@eyesopen.com>
10749 PR middle-end/11984
10750 * fold-const.c (fold <PLUS_EXPR>): Check for integer constant
10751 operands before calling tree_int_cst_lt when performing associative
10754 2003-08-20 Jason Merrill <jason@redhat.com>
10756 * tree.h (IS_EXPR_CODE_CLASS): Also include 'r' and 's'.
10757 (EXPR_CHECK): Don't check for 'r' or 's' if we're
10758 checking IS_EXPR_CODE_CLASS.
10759 * calls.c (calls_function_1): Likewise.
10760 * fold-const.c (fold): Likewise.
10761 * tree.c (iterative_hash_expr): Likewise.
10762 * tree-inline.c (walk_tree, copy_tree_r): Likewise.
10764 2003-08-20 Gunther Nikl <gni@gecko.de>
10766 * config/m68k/m68k.c (m68k_output_mi_thunk): delete obsolete code
10767 depending on MOTOROLA_BSR
10768 * config/m68k/m68k.md (anonymous define_insn): Likewise
10770 2003-08-20 Jason Merrill <jason@redhat.com>
10772 * builtins.c (expand_builtin_mathfn): Use get_callee_fndecl.
10773 (expand_builtin_mathfn2, expand_builtin, builtin_mathfn_code,
10774 fold_trunc_transparent_mathfn, fold_builtin): Likewise.
10775 * dojump.c (do_jump): Likewise.
10776 * fold-const.c (operand_equal_p, fold): Likewise.
10777 (tree_expr_nonnegative_p): Likewise.
10779 * stor-layout.c (do_type_align): Only copy DECL_USER_ALIGN from
10780 TYPE_USER_ALIGN for FIELD_DECLs.
10782 * attribs.c (decl_attributes): Rebuild the function pointer type after
10783 changing the target type.
10784 * tree.c (get_qualified_type): Also check that the attributes match.
10786 2003-08-19 Matt Kraai <kraai@alumni.cmu.edu>
10788 * Makefile.in (STAGESTUFF): Move cc1obj$(exeext) from here ...
10789 * objc/config-lang.in (stagestuff): ... to here.
10791 2003-08-19 Mark Mitchell <mark@codesourcery.com>
10794 * convert.c (convert_to_integer): Use CONVERT_EXPR (instead of
10795 NOP_EXPR) when necessary.
10796 * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
10797 types with precisions other than those given by native machine
10800 2003-08-19 Geoffrey Keating <geoffk@apple.com>
10802 * cpppch.c (cpp_valid_state): Re-add warning about PCH not used
10803 because some macro is defined.
10805 * config/darwin.h (LINK_COMMAND_SPEC): Add -arch and -arch_only
10807 * config/i386/darwin.h (ASM_SPEC): New.
10808 (SUBTARGET_EXTRA_SPECS): New.
10809 * config/rs6000/darwin.h (ASM_SPEC): New.
10810 (SUBTARGET_EXTRA_SPECS): New.
10811 * configure.in: Don't set CROSS or SYSTEM_HEADER_DIR when building
10812 a cross-compiler between two different processors on Darwin.
10813 * configure: Regenerate.
10815 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
10817 * builtins.c: Fix comment typos.
10818 * c-common.c: Likewise.
10819 * c-decl.c: Likewise.
10820 * c-pretty-print.c: Likewise.
10821 * cfgbuild.c: Likewise.
10822 * cfglayout.c: Likewise.
10823 * cfgloopanal.c: Likewise.
10824 * cgraphunit.c: Likewise.
10825 * cppfiles.c: Likewise.
10826 * dwarfout.c: Likewise.
10827 * expr.c: Likewise.
10828 * fold-const.c: Likewise.
10829 * gcse.c: Likewise.
10830 * ggc-page.c: Likewise.
10831 * haifa-sched.c: Likewise.
10832 * pretty-print.c: Likewise.
10833 * tree.c: Likewise.
10834 * tree.h: Likewise.
10835 * value-prof.c: Likewise.
10837 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
10839 * c-decl.c: Follow spelling conventions.
10840 * cppfiles.c: Likewise.
10842 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
10844 * c-common.c: Fix comment formatting.
10845 * c-common.h: Likewise.
10846 * c-decl.c: Likewise.
10847 * cppinit.c: Likewise.
10848 * cpplib.h: Likewise.
10849 * emit-rtl.c: Likewise.
10850 * input.h: Likewise.
10851 * line-map.h: Likewise.
10852 * opts.c: Likewise.
10853 * opts.h: Likewise.
10854 * simplify-rtx.c: Likewise.
10856 2003-08-19 Daniel Jacobowitz <drow@mvista.com>
10858 * unwind-c.c: Add libgcc-style exception.
10859 * unwind-dw2.c: Likewise.
10860 * unwind-pe.h: Likewise.
10861 * unwind-sjlj.c: Likewise.
10862 * unwind.inc: Likewise.
10864 2003-08-19 Andrew Pinski <pinskia@physics.uc.edu>
10866 PR c/5582 PR c++/10538
10867 * langhooks-def.h (lhd_decl_uninit): Declare.
10868 (LANG_HOOKS_DECL_UNINIT): New macro.
10869 (LANG_HOOKS_INITIALIZER): Adjust.
10870 * langhooks.h (struct lang_hooks): Add new field
10872 * langhooks.c (lhd_decl_uninit): Define.
10873 * c-common.c (c_decl_uninit_1): New function.
10874 (c_decl_uninit): New function.
10875 (warn_init_self): Define.
10876 * c-common.h (c_decl_uninit): Declare.
10877 (warn_init_self): Declare.
10878 * c.opt: Introduce -Winit-self.
10879 * c-opts.c (c_common_handle_options): Set warn_init_self.
10880 * c-lang.c (LANG_HOOKS_DECL_UNINIT): Define.
10881 * objc/objc-lang.c (LANG_HOOKS_DECL_UNINIT): Define.
10882 * function.c (uninitialized_vars_warning): Call the language hook.
10883 * doc/invoke.texi: Document -Winit-self.
10885 2003-08-19 Chris Demetriou <cgd@broadcom.com>
10887 * config/mips/mips.md: Adjust SI-mode "trap_if" instruction
10888 to use better predicates and constraints. Define new
10889 instruction to handle "trap_if" with DI-mode arguments.
10890 (conditional_trap): FAIL if trap code is not 0.
10892 2003-08-19 Andrew Pinski <pinskia@physics.uc.edu>
10894 * config/i386/i386.c (legitimate_pic_address_disp_p): Change the
10895 strstr with $pb to a strcompare with "<pic base>"
10896 (ix86_output_addr_diff_elt): Output the real pic base.
10898 2003-08-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
10900 * langhooks-def.h (LANG_HOOKS_INITIALIZE_DIAGNOSTICS): Fix spelling.
10901 (LANG_HOOKS_INITIALIZER): Correct.
10902 * c-lang.c: Likewise.
10904 2003-08-19 Jan Hubicka <jh@suse.cz>
10906 * cgraph.c (cgraph_mark_needed_node): Call notice_global_symbol.
10907 (cgraph_varpool_mark_needed_node): Likewise.
10908 * cgraph.h (notice_global_symbol): Declare
10909 * varasm.c (notice_global_symbol): Break out from ...
10910 (assemble_start_function): ... here; update for variables.
10911 (assemble_variable): Use notice_global_symbol.
10913 2003-08-19 Richard Sandiford <rsandifo@redhat.com>
10915 * config/mips/mips.c (mips_va_arg): If EABI_FLOAT_VARARGS_P,
10916 expect SFmode and DFmode arguments to be passed in FPRs,
10917 regardless of the underlying type.
10919 2003-08-19 Richard Sandiford <rsandifo@redhat.com>
10922 * config/mips/mips.c (INTERNAL_SYMBOL_P): New macro.
10923 (mips_classify_symbol, m16_usym8_4, m16_usym5_4): Use it.
10925 2003-08-18 Matt Kraai <kraai@alumni.cmu.edu>
10928 * c-typeck.c (set_init_index): Check for negative index.
10930 2003-08-18 Bob Wilson <bob.wilson@acm.org>
10932 * config/xtensa/crti.asm (_init, _fini): Add alternate code for new
10934 * config/xtensa/crtn.asm (_init, _fini): Likewise.
10935 * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
10936 __umodsi3, __modsi3): Likewise.
10937 * config/xtensa/t-xtensa (crti.o, crtn.o): Add $(GCC_CFLAGS) and
10940 2003-08-18 Aldy Hernandez <aldyh@redhat.com>
10942 * config/rs6000/spe.md ("*nabssf2_gpr"): New.
10944 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
10946 * config/mips/mips.md: Quote C code in braces. Remove use of
10947 fake const0_rtx operands. Remove double backslashes. Use \;.
10948 Remove workarounds for bogus warnings.
10950 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
10952 * config/mips/mips.md (muldf3, mulsf3): Don't call a gen_* function.
10953 (muldf3_internal, muldf3_r4300): Select based on TARGET_4300_MUL_FIX
10954 rather than TARGET_MIPS4300.
10955 (mulsf3_internal, mulsf3_r4300): Likewise.
10957 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
10959 * config/mips/mips.md: Renumber unspecs. Clean up comments.
10961 2003-08-17 Roger Sayle <roger@eyesopen.com>
10963 * simplify-rtx.c (associative_constant_p): New function to test
10964 whether an RTX expression is an immediate constant.
10965 (simplify_associative_operation): New function to perform some
10966 reassociation optimizations of associative binary expressions.
10967 (simplify_binary_operation): Use simplify_associative_operation
10968 to simplify PLUS, MULT, AND, IOR, XOR, SMIN, SMAX, UMIN and UMAX.
10969 Floating point expressions are only reassociated when unsafe
10970 math optimizations are permitted.
10972 2003-08-17 Andreas Jaeger <aj@suse.de>
10974 * config/alpha/alpha.md: Remove usage of PARAMS.
10976 * config/i386/cygwin.h: Convert K&R prototypes to ISO C90.
10977 * config/i386/i386-interix.h: Likewise.
10978 * config/i386/winnt.c: Likewise.
10979 * config/i386/cygming.h: Likewise.
10980 * config/i386/cygwin2.c: Likewise.
10981 * config/darwin.c: Likewise.
10982 * config/darwin-c.c: Likewise.
10983 * config/darwin-protos.h: Likewise.
10984 * config/darwin.h: Likewise.
10985 * config/s390/s390-protos.h: Likewise.
10986 * config/s390/s390.c: Likewise.
10987 * config/ia64/ia64.c: Likewse
10988 * config/ia64/ia64-protos.h: Likewise.
10989 * config/ia64/ia64-c.c: Likewise.
10991 2003-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10993 * config/sparc/sparc.c: Convert to ISO C.
10995 * config/sparc/sparc-protos.h: Don't use the PARAMS macro.
10996 * config/sparc/sparc.c: Likewise.
10998 2003-08-16 Nathan Sidwell <nathan@codesourcery.com>
11001 * stmt.c (expand_expr_stmt_value): Don't warn about any void
11004 2003-08-16 Jan Hubicka <jh@suse.cz>
11006 * i386.c (ix86_fntype_regparm): Rename from ...
11007 (ix86_function_regparm): ... this one; add fastcall and local
11009 (ix86_function_ok_for_sibcall): Update.
11010 (ix86_return_pops_args): Likewise.
11011 (init_cumulative_args): Likewise.
11012 (x86_can_output_mi_thunk): Likewise.
11013 (function_arg): Fix formating.
11014 (x86_this_parameter): Fix fastcall.
11015 (x86_output_mi_thunk): Likewise.
11017 * cgraph.c (cgraph_mark_needed_node): Do not mark functions without
11018 body as reachable; mark nested functions as needed too.
11019 (dump_cgraph): Do not output global.calls.
11020 * cgraph.h (cgraph_global_info): Kill.
11021 * cgraphunit.c (cgraph_finalize_function): Enqueue needed functions.
11022 (record_call_1): Speedup.
11023 (cgraph_analyze_function): Break out from ...; compute inlining
11025 (cgraph_finalize_compilation_unit): ... here.
11026 (cgraph_mark_inline): Kill computation of calls.
11027 (cgraph_decide_inlining): Do not compute most of initial values.
11029 2003-08-14 Roger Sayle <roger@eyesopen.com>
11031 * fold-const.c (negate_expr_p): MULT_EXPRs and RDIV_EXPRs are easy
11032 to negate if either operand is easy to negate, if we don't care
11033 about sign-dependent rounding.
11034 (negate_expr): Make the logic to negate a REAL_CST explicit.
11035 Attempt to negate a MULT_EXPR or RDIV_EXPR by negating an operand
11036 that's easy to negate, if we don't honor sign-dependent rounding.
11037 (fold <MULT_EXPR>): Optimize -A * B as A * -B if B is easy to
11038 negate, and the symmetric A * -B as -A * B if A is easy to negate.
11039 (fold <RDIV_EXPR>): Likewise, optimize -A/B and C/-D as A/-B and
11040 -C/D if B and C are cheap to negate. Add an explicit rule to
11041 optimize X/-1.0 as -X when we don't care about signaling NaNs.
11043 2003-08-14 Zack Weinberg <zack@codesourcery.com>
11045 * Makefile.in (tm_file): Rename tm_include_list.
11046 (tm_p_file): Rename tm_p_include_list.
11047 (build_xm_file): Rename build_xm_include_list.
11048 (host_xm_file): Rename host_xm_include_list.
11049 (xm_file): Rename xm_include_list.
11050 (xm_file_list): Add to be substituted.
11051 (cs-config.h, cs-bconfig.h, cs-tconfig.h, cs-tm.h, cs-tm_p.h):
11053 (bt-load.o): Add missing dependency on $(TM_H).
11054 * configure.in: Prefix value of EXTRA_MODES_FILE with config/.
11055 For each of tm_file, tm_p_file, xm_file, host_xm_file, and
11056 build_xm_file, generate both *_file_list and *_include_list
11057 values from it. (xm_file_list was formerly not being generated.)
11058 In *_include_list, prefix the names of all headers found in
11059 $(srcdir)/config with config/. In each loop, consider only
11060 the special case files that can actually appear in that list.
11061 AC_SUBST all *_file_list and all *_include_list variables; do
11062 not AC_SUBST the plain *_file variables.
11063 * configure: Regenerate.
11065 2003-08-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11067 * cfg.c (dump_edge_info): Add name of loop_exit edge flag.
11069 2003-08-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11071 * pa.c (pa_adjust_insn_length): Delete adjustment for delay slot in
11073 (attr_length_call): Include it here. Improve length estimate for
11075 (output_call): Use targetm.binds_local_p.
11077 2003-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11079 * builtins.c (CASE_MATHFN): New helper macro.
11080 (mathfn_built_in): Simplify and sort.
11082 * protoize.c (substr): Delete, callers changed to `strstr'.
11084 2003-08-13 Zack Weinberg <zack@codesourcery.com>
11086 * config.gcc (iq2000*-*-elf*): Don't set xm_file.
11087 * config/iq2000/xm-iq2000.h: Delete file.
11089 2003-08-13 Geoffrey Keating <geoffk@apple.com>
11091 * gengtype.c (walk_type): Process a subobject before processing
11092 the pointer that points to the subobject.
11094 2003-08-13 Per Bothner <pbothner@apple.com>
11096 * regclass.c (init_reg_modes): Make non-static.
11097 Rename to init_reg_modes_once per new naming convention.
11098 (init_regs): Don't call init_reg_modes here.
11099 * emit-rtl.c (init_emit_once): Call init_reg_modes_once here instead.
11100 * rtl.h (init_reg_modes_once): New declaration.
11101 * toplev.c (backend_init): Call init_regs after init_emit_once.
11103 2003-08-13 Kaz Kojima <kkojima@gcc.gnu.org>
11105 * config/sh/linux.h (DBX_REGISTER_NUMBER): Define so to map a
11106 special index for MD_FALLBACK_FRAME_STATE_FOR to itself.
11108 2003-08-13 J"orn Rennecke <joern.rennecke@superh.com>
11110 * sh.c (sh_get_pr_initial_val): Always wrap in unspec for TARGET_SH1.
11111 * sh.md (load_ra): Change insn predicate to TARGET_SH1.
11113 2003-08-13 Dale Johannesen <dalej@apple.com>
11115 * config/rs6000/rs6000.md (ctrsi, ctrdi): Reenable
11116 handling of decrement-and-branch farther than 32 bits.
11118 2003-08-12 Kelley Cook <kelleycook@wideopenwest.com>
11120 * configure.in (make_compare_target): Move test to ...
11121 * aclocal.m4 (gcc_AC_PROG_CMP_IGNORE_INITIAL): here.
11122 * configure: Regenerate.
11124 2003-08-12 Richard Sandiford <rsandifo@redhat.com>
11126 * config/mips/iris6.h: Convert to C90 prototypes.
11127 * config/mips/irix6-libc-compat.c: Likewise.
11128 * config/mips/mips-protos.h: Likewise.
11129 * config/mips/mips.c: Likewise.
11131 2003-08-12 Nathanael Nerode <neroden@gcc.gnu.org>
11133 fixinc/inclhack.def (svr4_krnl): Rename from svr4_kernel. Enable
11134 for selected machines. Comment heavily.
11135 fixinc/fixincl.x: Rebuild.
11136 fixinc/tests/base/fs/rfs/rf_cache.h: New file.
11138 2003-08-12 Richard Sandiford <rsandifo@redhat.com>
11140 * config/mips/mips.h: Tweak various comments.
11141 * config/mips/mips.c: Likewise.
11143 2003-08-11 James E Wilson <wilson@tuliptree.org>
11145 PR optimization/11319
11147 * alias.c (find_base_value, case REG): Return 0 not src if no base
11150 2003-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11152 * gcse.c (gmalloc): Fix last change.
11154 2003-08-11 Roger Sayle <roger@eyesopen.com>
11156 * simplify-rtx.c (simplify_binary_operation): Replace calls to
11157 gen_rtx_NEG and gen_rtx_NOT with calls to simplify_gen_unary,
11158 and calls to gen_rtx_PLUS, gen_rtx_MULT, gen_rtx_LSHIFTRT,
11159 gen_rtx_ASHIFT and gen_rtx_AND with calls to simplify_gen_binary.
11161 2003-08-11 Roger Sayle <roger@eyesopen.com>
11163 * expr.c (expand_expr): If an ABS_EXPR has a complex type, abort.
11164 * c-typeck.c (build_unary_op): COMPLEX_TYPE is not a valid
11165 typecode for an ABS_EXPR.
11167 * doc/c-tree.texi: Document ABS_EXPR.
11169 2003-08-11 Roger Sayle <roger@eyesopen.com>
11171 * fold-const.c (fold): Optimize any associative floating point
11172 operator with -funsafe-math-optimizations, not just MULT_EXPR.
11174 2003-08-11 Kaz Kojima <kkojima@gcc.gnu.org>
11176 * config/sh/lib1funcs.asm (__udivdi3): Add .type and .size
11177 information in SHmedia case too.
11178 (__divdi3, __umoddi3, __moddi3, __init_trampoline, __ic_invalidate):
11180 (__set_fpscr): Use an access via GOT for PIC case.
11182 2003-08-11 Kelley Cook <kelleycook@wideopenwest.com>
11184 * configure.in (intermodule): Make switch test more portable.
11185 * configure: Regenerate.
11187 2003-08-11 Kelley Cook <kelleycook@wideopenwest.com>
11189 * Makefile.in (cleanstrap): Pass BOOT_CFLAGS to bootstrap.
11190 (restrap): Likewise.
11192 2003-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11194 * gcse.c (gmalloc): Argument is a size_t. Add ATTRIBUTE_MALLOC.
11195 (grealloc): Size argument is a size_t.
11196 (gcalloc): New function. Use throughout in lieu of
11199 * config/avr/avr.c (avr_init_once): Use xcalloc in lieu of
11201 * config/ia64/ia64.c (ia64_reorg): Likewise.
11202 * conflict.c (conflict_graph_new): Likewise.
11203 * fixinc/fixincl.c (run_compiles): Likewise.
11204 * genattrtab.c (optimize_attrs): Likewise.
11205 * genrecog.c (new_decision): Likewise.
11206 * haifa-sched.c (schedule_block): Likewise.
11207 * hashtable.c (ht_create): Likewise.
11209 2003-08-11 Bob Wilson <bob.wilson@acm.org>
11211 * config/xtensa/lib2funcs.S: Fix whitespace.
11212 * config/xtensa/xtensa.md (all insns and expanders): Use brace block
11213 syntax where appropriate. Remove unnecessary backslash escapes.
11214 Reformat comments and fix some code formatting.
11215 (extendqisi2): Rearrange conditional.
11216 (*btrue, *bfalse, *ubtrue, *ubfalse, *bittrue, *bitfalse, *masktrue,
11217 *maskfalse, movsicc_internal0, movsfcc_internal0): Call abort instead
11220 2003-08-11 Richard Sandiford <rsandifo@redhat.com>
11222 * config/mips/mips.c: Various formatting fixes.
11223 (override_options): Resync -mtune handling with gas.
11224 (mips_issue_rate): Rearrange like mips_use_dfa_pipeline_interface.
11225 * config/mips/mips.h: More formatting fixes.
11226 (mips_abi): Move declaration.
11227 * config/mips/mips.md (exception_receiver): Add mode to
11230 2003-08-11 Aldy Hernandez <aldyh@redhat.com>
11232 * config/rs6000/rs6000.c (spe_init_builtins): Handle evsplati and
11234 (bdesc_1arg): Remove evsplati and evsplatfi.
11236 2003-08-11 J"orn Rennecke <joern.rennecke@superh.com>
11238 * dwarf2asm.c (dw2_output_indirect_constant_1): Take user_label_prefix
11241 2003-08-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11243 * builtins.c (expand_builtin_strcat): Optimize constant strings.
11245 2003-08-10 Gabriel Dos Reis <gdr@integrable-solutions.net>
11247 * pretty-print.c (pp_base_indent): Rename from pp_indent.
11248 * c-pretty-print.h (pp_c_pretty_print_flag)s: New datatype.
11249 (struct c_pretty_print_info): Add more fields.
11250 (pp_c_left_paren): Move to c-pretty-print.c.
11251 (pp_c_right_paren): Likewise.
11252 (pp_c_left_brace): Likewise.
11253 (pp_c_right_brace): Likewise.
11254 (pp_c_left_bracket): Likewise.
11255 (pp_c_right_bracket): Likewise.
11256 (pp_c_declarator): Declare.
11257 (pp_c_direct_declarator): Likewise.
11258 (pp_c_specifier_qualifier_list): Likewise.
11259 (pp_c_type_id): Likewise.
11260 * c-pretty-print.c (pp_c_cv_qualifier): Change prootype. Rework..
11261 (pp_c_type_qualifier_list): New.
11262 (pp_c_pointer): Likewise.
11263 (pp_c_parameter_type_list): Likewise.
11264 (pp_c_function_definition): Likewise.
11265 (pp_c_id_expression): Likewise.
11266 (pp_c_simple_type_specifier): Tidy.
11267 (pp_c_unary_expression): Likewise.
11268 (pp_c_expression): Likewise.
11269 (pp_c_pretty_printer_init): Likewise.
11270 (pp_c_specifier_qualifier_list): Rework..
11271 (pp_c_abstract_declarator): Likewise.
11272 (pp_c_postfix_expression): Likewise.
11273 (pp_c_primary_expression): Likewise.
11274 (pp_c_cast_expression): Likewise.
11275 (pp_c_direct_abstract_declarator): Likewise.
11276 (pp_c_storage_class_specifier): Likewise.
11277 (pp_c_function_specifier): Likewise.
11278 (pp_c_declaration_specifiers): Likewise.
11279 (pp_c_direct_declarator): Likewise.
11280 (pp_c_declarator): Likewise.
11281 (pp_c_declaration): Likewise.
11282 (pp_c_statement): Likewise.
11283 (pp_c_integer_constant): Rename from pp_c_integer_literal.
11284 (pp_c_character_constant): Rename from pp_c_character_literal.
11285 (pp_c_bool_constant): Rename from pp_c_bool_literal.
11286 (pp_c_enumeration_constant): Rename from pp_c_enumerator.
11287 (pp_c_floating_constant): Rename from pp_c_real_literal.
11288 (pp_c_constant): Rename from pp_c_literal.
11289 * c-lang.c: Include diagnostic.h and c-pretty-print.h
11290 (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): Define.
11291 (c_initialize_diagnostics): New.
11292 * Makefile.in (c-lang.o): Update dependency.
11294 2003-08-10 Nathan Sidwell <nathan@codesourcery.com>
11296 * c-typeck.c (digest_init): Add conversion for VECTOR_TYPEs.
11298 2003-08-10 Richard Sandiford <rsandifo@redhat.com>
11300 * config/mips/mips.c (mips_no_mips16_string): Remove.
11301 (override_options): Don't handle -mips16 as part of -mipsN.
11302 * config/mips/mips.h (mips_no_mips16_string): Remove declaration.
11303 (TARGET_SWITCHES): Add -mips16 and -mno-mips16 entries.
11304 (TARGET_OPTIONS): Remove -mno-mips16.
11306 2003-08-10 Richard Sandiford <rsandifo@redhat.com>
11308 * config/mips/mips-protos.h (coprocessor_operand): Remove declaration.
11309 (coprocessor2_operand): Likewise.
11310 * config/mips/mips.c (STAB_CODE_TYPE): Remove.
11311 (lookup_name): Remove declaration.
11312 (abort_with_insn): Remove. Replace all uses with fatal_insn.
11313 (mips16, mips_abicalls): Remove.
11314 (mips_char_to_class): Remove initialiser: all entries are NO_REGS.
11315 (arith32_operand, large_int, true_reg_or_0_operand): Remove.
11316 (coprocessor_operand, coprocessor2_operand): Remove.
11317 (override_options): Don't set mips16 or mips_abicalls.
11318 (print_operand): Don't expect SIGN_EXTEND operands.
11319 (mips_secondary_reload_class): Likewise.
11320 (mips_output_conditional_branch): Remove disabled long-branch code.
11321 * config/mips/mips.h (call_used_regs): Remove declaration.
11322 (may_call_alloca): Likewise.
11323 (mips_cpu_attr, mips_abicalls_type, mips_abicalls_attr): Remove.
11324 (mips_abicalls, mips16): Remove declarations.
11325 (ASM_FINAL_SPEC, LIB_SPEC): Remove.
11326 (CC1_SPEC): Remove outdated comment.
11327 (MIPS_VERSION, MACHINE_TYPE): Remove.
11328 (TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
11329 (PC_REGNUM, STACK_POINTER_OFFSET): Remove disabled definitions.
11330 (STRUCT_VALUE_RETURN_REGNUM, STACK_DYNAMIC_OFFSET): Likewise.
11331 (PUSH_ROUNDING): Likewise.
11332 (ASSEMBLER_SCRATCH_REGNUM): Remove.
11333 * config/mips/mips.md: Replace mips_cpu_attr with mips_tune
11334 and mips16 with TARGET_MIPS16.
11336 2003-08-09 Per Bothner <pbothner@apple.com>
11338 * cppinit.c (cpp_read_main_file): Split out source-independent
11339 initialization to separate function ...
11340 (cpp_post_options): New function.
11341 * cppfiles.c (cpp_stack_file): Rename public name to ...
11342 (_cpp_stack_file): New internal function name.
11343 * cpplib.h: Update accordingly.
11344 * cppinit.c: (cpp_create_reader): Initialize cpp_readers line here.
11345 (cpp_read_main_file): Don't initialize line here.
11346 * c-opts.c (c_common_post_options): Call cpp_post_options.
11347 (c_common_parse_file): Call cpp_read_main_file, not cpp_stack_file.
11348 * fix-header.c (read_scan_file): Call cpp_post_options.
11350 2003-08-09 Per Bothner <per@bothner.com>
11352 * c-decl.c (SCOPE_LIST_APPEND): Remove bogus line continuation.
11354 2003-08-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11356 * pa.c (pa_asm_output_mi_thunk): Fix typo.
11358 2003-08-09 Neil Booth <neil@daikokuya.co.uk>
11360 PR preprocessor/11839
11361 * cppfiles.c (open_file): Handle ENOTDIR.
11363 2003-08-09 Richard Sandiford <rsandifo@redhat.com>
11366 * config/mips/mips.c (override_options): Reject -mabi=eabi -mabicalls.
11368 2003-08-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11370 * pa.md (extzv, extv, insv): Fix operand limit checks. Fail if
11371 source/destination is not a register operand.
11373 2003-08-08 Richard Henderson <rth@redhat.com>
11376 * config/ia64/ia64.c (ia64_initial_elimination_offset): Remove
11377 RETURN_ADDRESS_POINTER_REGNUM.
11378 (ia64_expand_prologue): Don't frob it.
11379 (ia64_output_function_epilogue): Likewise.
11380 (ia64_return_addr_rtx): New.
11381 (ia64_split_return_addr_rtx): New.
11382 * config/ia64/ia64-protos.h: Update.
11383 * config/ia64/ia64.h (FIRST_PSEUDO_REGISTER): Decrement.
11384 (RETURN_ADDRESS_POINTER_REGNUM): Remove.
11385 (GENERAL_REGNO_P): Don't check it.
11386 (AR_*_REGNUM): Renumber.
11387 (FIXED_REGISTERS): Remove RETURN_ADDRESS_POINTER_REGNUM.
11388 (CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS): Likewise.
11389 (REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Likewise.
11390 (ELIMINABLE_REGS, REGISTER_NAMES): Likewise.
11391 (RETURN_ADDR_RTX): Use ia64_return_addr_rtx.
11392 * config/ia64/ia64.md (UNSPEC_RET_ADDR): New.
11393 (movdi_ret_addr): New.
11395 2003-08-08 Geoffrey Keating <geoffk@apple.com>
11397 * config.gcc (powerpc-*-darwin*): Don't build a soft-float multilib.
11399 2003-08-08 Roger Sayle <roger@eyesopen.com>
11401 * tree.h (get_identifier) Define a macro form of get_identifier
11402 that calls get_identifier_with_length when the string is constant.
11403 (get_identifier_with_length): Change type of second argument to
11404 size_t in prototype.
11405 * stringpool.c (get_identifier): Undefine the macro before giving
11406 the function definition.
11407 (get_identifier_with_length): Change type of second argument to
11408 size_t in function definition.
11409 * hashtable.c (calc_hash): Change type of second argument to size_t.
11410 (ht_lookup): Change type of third argument to size_t. Reorganize
11411 to speed-up the cases where the hash table slot is empty, or the
11412 first probe matches (i.e. there isn't a collision).
11413 * hashtable.h (ht_lookup): Adjust function prototype.
11415 2003-08-08 Bernardo Innocenti <bernie@develer.com>
11419 * longlong.h (count_leading_zeros): Exclude on __mcpu32__.
11421 2003-08-08 Neil Booth <neil@daikokuya.co.uk>
11423 * common.opt: Add debug switches.
11424 * flags.h (use_gnu_debug_info_extensions): Boolify.
11425 * opts.c (write_symbols, debug_info_level,
11426 use_gnu_debug_info_extensions): Move from toplev.c.
11427 (set_debug_level): New.
11428 (common_handle_options): Handle debug switches.
11429 (print_help): Display target options directly.
11430 * toplev.c (debug_hooks): Don't initialize.
11431 (write_symbols, debug_info_level,
11432 use_gnu_debug_info_extensions): Move to opts.c.
11433 (debug_args, display_help, decode_g_option): Remove.
11434 (process_options): Set no debug if level zero here,
11435 and no-debug-hooks. Error here if impossible debug format selected.
11436 * toplev.h (display_help, decode_g_option): Remove.
11438 2003-08-08 Richard Sandiford <rsandifo@redhat.com>
11440 * tree.c (get_file_function_name_long): Fix size of alloca() area.
11442 2003-08-08 Kelley Cook <kelleycook@wideopenwest.com>
11444 * configure.in (gcc_cv_prog_cmp_skip): Flipflop make_compare_target
11445 and gcc_cv_prog_cmp_skip.
11446 * configure: Regenerate.
11448 2003-08-08 Stan Cox <scox@redhat.com>
11450 * config/iq2000: New port.
11451 * config.gcc (iq2000-*-elf): Added.
11452 * doc/install.texi (Specific): Add iq2000 description.
11454 2003-08-08 Andreas Schwab <schwab@suse.de>
11456 * configure.in (gcc_cv_as_ia64_ltoffx_ldxmov_relocs): Fix quoting
11457 and insert missing empty argument.
11458 * configure: Regenerate.
11460 2003-08-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11462 * pa.c (update_total_code_bytes): Use new macro IN_NAMED_SECTION_P.
11463 (attr_length_millicode_call): Likewise.
11464 (attr_length_call): Likewise. Revise some maximum insn lengths.
11465 (attr_length_indirect_call): Likewise.
11466 (output_call): Fix thinko that added extra nop.
11467 * pa.h (IN_NAMED_SECTION_P): Define.
11470 * pa-hpux.h, pa-hpux10.h, pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define
11471 __STDC_EXT__ when using C++ dialect.
11473 2003-08-07 J"orn Rennecke <joern.rennecke@superh.com>
11475 * sh.c (calc_live_regs): If the return address pointer is live,
11477 (sh5_schedule_saves): Exclude PR_MEDIA_REG from being a temp register
11478 for saves / restores.
11479 (sh_expand_epilogue): If sh_media_register_for_return returns a
11480 register number, flag the instructions that restores PR_MEDIA_REG
11482 Remove dead update of offset.
11483 (sh_get_pr_initial_val): Use UNSPEC_RA if we don't know yet if
11484 we can use the result of get_hard_reg_initial_val.
11485 * sh.md (UNSPEC_RA): New constant.
11486 (movsi_i_lowpart+1): Changed into a define_insn_and_split, named:
11487 (load_ra). Handle UNSPEC_RA.
11488 (sibcall_media): Use PR_MEDIA_REG.
11490 * sh.h (CALL_USED_REGISTERS): Include PR_REG and PR_MEDIA_REG.
11491 * sh.c (calc_live_regs): Use sh_pr_n_sets to determine if pr
11492 needs saving on SHmedia.
11494 2003-08-07 Ulrich Weigand <uweigand@de.ibm.com>
11496 * config/s390/s390.md: Replace all occurrences of \\t with \t.
11498 2003-08-07 Richard Sandiford <rsandifo@redhat.com>
11500 * local-alloc.c (combine_regs): Fix comment typo.
11502 2003-08-06 Zack Weinberg <zack@codesourcery.com>
11504 * c-decl.c (builtin_decls): Replace with first_builtin_decl
11505 and last_builtin_decl.
11506 (c_init_decl_processing): Initialize both.
11507 (c_reset_state): Iterate from first_builtin_decl to
11508 last_builtin_decl inclusive to reintroduce builtins.
11510 2003-08-06 David Mosberger <davidm@hpl.hp.com>
11512 * doc/extend.texi (Function Attributes): Document the IA-64 version
11513 of the "model" attribute.
11515 * config/ia64/ia64.h (SYMBOL_FLAG_SMALL_ADDR): New macro.
11516 (SYMBOL_REF_SMALL_ADDR_P): Ditto.
11517 (PREDICATE_CODES): Mention "small_addr_symbolic_operand".
11519 * config/ia64/ia64.c (ia64_handle_model_attribute): New function.
11520 (ia64_encode_section_info): Likewise.
11521 (ia64_attribute_table): Add "model" attribute.
11522 (TARGET_ENCODE_SECTION_INFO): Define.
11523 (small_addr_symbolic_operand): New function.
11524 (got_symbolic_operand): Return 0 for a symbolref to an object
11525 in the small address area.
11526 (enum ia64_addr_area): New type.
11527 (small_ident1): New variable.
11528 (small_ident2): Likewise.
11529 (init_idents): New function.
11530 (ia64_get_addr_area): Likewise.
11531 (ia64_encode_addr_area): Likewise.
11532 (ia64_encode_section_info): Likewise.
11533 (ia64_expand_load_address): For symbolic references to objects in
11534 the small-address-area, load the address via gen_rtx_SET() (which,
11535 eventually, will expand into "addl").
11537 2003-08-06 Per Bothner <pbothner@apple.com>
11539 * line-map.h (fileline): New typedef.
11540 (struct line_map, linemap_add, linemap_lookup): Use it.
11541 * input.h (struct location_s): Comment notes that long-term we want
11542 to replace it by fileline.
11544 2003-08-06 J"orn Rennecke <joern.rennecke@superh.com>
11546 Fix SHcompact exception handling:
11547 * sh.c (sh_get_pr_initial_val): If PR is or miight be clobbered
11548 by the prologue, return a MEM with return_address_pointer_rtx
11550 * sh.h (HARD_REGNO_MODE_OK): PR is OK for SImode.
11551 (RETURN_ADDR_OFFSET): Don't define.
11552 (SH_DBX_REGISTER_NUMBER): Use SHmedia numbers for SHmedia
11553 registers that are visible in compact mode. Show that SHmedia
11554 registers still exist in compact mode, even if there are not
11555 readily accessible.
11556 (ASM_PREFERRED_EH_DATA_FORMAT): Supply DW_EH_PE_indirect
11557 if GLOBAL. Use DW_EH_PE_textrel (nominally) for CODE,
11558 and DW_EH_PE_pcrel for pic data.
11559 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): If DW_EH_PE_textrel,
11560 set SYMBOL_FLAG_FUNCTION in symbol, and actually use
11561 DW_EH_PE_pcrel / DW_EH_PE_absptr encoding.
11562 (ALLOCATE_INITIAL_VALUE): Put PR on stack if prologue clobbers it.
11563 * sh.md (movsi_media-1): New splitter.
11565 2003-08-06 Graeme Peterson <gp@qnx.com>
11567 * config/i386/nto.h: New.
11568 * config/i386/t-nto: New.
11569 * config.gcc (i[34567]86-*-nto-qnx*): New.
11571 2003-08-06 Phil Edwards <pme@gcc.gnu.org>
11573 * doc/install.texi (*-*-solaris2*): Refine configure instructions.
11575 2003-08-06 Alan Modra <amodra@bigpond.net.au>
11577 * calls.c (load_register_parameters): Arrange for call_fusage to
11578 report the whole register as used when shifting to the msb.
11580 2003-08-05 Roger Sayle <roger@eyesopen.com>
11582 * builtins.c (expand_builtin): When not optimizing, call the library
11583 function for all builtins that have library functions (except alloca).
11585 2003-08-05 Alexandre Oliva <aoliva@redhat.com>
11587 * c.opt: Introduce -fworking-directory.
11588 * doc/cpp.texi, doc/invoke.texi, doc/cppopts.texi: Document it.
11589 * c-common.h (flag_working_directory): Declare.
11590 * c-common.c (flag_working_directory): Define.
11591 * c-opts.c (c_common_handle_options): Set it.
11592 (sanitize_cpp_opts): Set...
11593 * cpplib.h (struct cpp_options): ... working_directory option.
11594 (struct cpp_callbacks): Add dir_change.
11595 * cppinit.c (read_original_filename): Call...
11596 (read_original_directory): New. Look for # 1 "directory//"
11598 (cpp_read_main_file): Call dir_change callback if working_directory
11600 * gcc.c (cpp_unique_options): Pass -g*.
11601 * c-lex.c (cb_dir_change): New.
11602 (init_c_lex): Set dir_change callback.
11603 * toplev.c (src_pwd): New static variable.
11604 (set_src_pwd, get_src_pwd): New functions.
11605 * toplev.h (get_src_pwd, set_src_pwd): Declare.
11606 * dbxout.c (dbxout_init): Call get_src_pwd() instead of getpwd().
11607 * dwarf2out.c (gen_compile_unit_die): Likewise.
11608 * dwarfout.c (output_compile_unit_die, dwarfout_init): Likewise.
11610 2003-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
11612 * pretty-print.h (pp_set_line_maximum_length): Make macro.
11613 (pp_set_prefix): Likewise.
11614 (pp_destroy_prefix): Likewise.
11615 (pp_remaining_character_count_for_line): Likewise.
11616 (pp_clear_output_area): Likewise.
11617 (pp_formatted_text): Likewise.
11618 (pp_last_position_in_text): Likewise.
11619 (pp_emit_prefix): Likewise.
11620 (pp_append_text): Likewise.
11621 (pp_flush): Likewise.
11622 (pp_format_text): Likewise.
11623 (pp_format_verbatim): Likewise.
11624 (pp_tree_identifier): Tidy.
11625 * pretty-print.c (pp_base_format_text): Rename from pp_format_text.
11626 (pp_base_format_verbatim): Rename from pp_format_verbatim.
11627 (pp_base_flush): Rename from pp_flush.
11628 (pp_base_set_line_maximum_length): Rename from
11629 pp_set_line_maximum_length.
11630 (pp_base_clear_output_area): Rename from pp_clear_output_area.
11631 (pp_base_set_prefix): Rename from pp_set_prefix.
11632 (pp_base_destroy_prefix): Rename from pp_destroy_prefix.
11633 (pp_base_emit_prefix): Rename from pp_emit_prefix.
11634 (pp_base_append_text): Rename from pp_append_text.
11635 (pp_base_formatted_text): Rename from pp_formatted_text.
11636 (pp_base_last_position_in_text): Rename from pp_last_position_in_text.
11637 (pp_base_remaining_character_count_for_line): Rename from
11638 pp_remaining_character_count_for_line.
11639 * diagnostic.h (diagnostic_format_decoder): Tidy.
11640 (diagnostic_flush_buffer): Likewise.
11641 * c-pretty-print.h: (pp_c_string_literal): Declare.
11642 (pp_c_real_literal): Likewise.
11643 (pp_c_integer_literal): Likewise.
11644 * c-pretty-print.c (pp_c_char): Use pp_string in lieu of
11646 (pp_c_character_literal): Tidy.
11647 (pp_c_string_literal): Make public.
11648 (pp_c_bool_literal): Likewise.
11649 (pp_c_integer_literal): Likewise.
11650 (pp_c_real_literal): Likewise.
11652 * Makefile.in (C_PRETTY_PRINT_H): New variable.
11653 (c-pretty-print.o): Update dependence.
11655 2003-08-05 Chris Demetriou <cgd@broadcom.com>
11657 * config/mips/mips.md (fix_truncdfsi2_macro): Properly restore
11658 ".set nomacro" state.
11659 (fix_truncsfsi2_macro): Likewise.
11661 2003-08-05 Steven Bosscher <steven@gcc.gnu.org>
11663 * tree.h (DID_INLINE_FUNC): Remove macro.
11664 (DECL_DECLARED_INLINE_P): Move from c-tree.h and cp/cp-tree.h,
11665 add tree check for FUNCTION_DECL.
11666 (DECL_ESTIMATED_INSNS): Move from c-common.h and java/java-tree.h.
11667 (struct tree_decl): Rename inlined_function_flag to
11668 declared_inline_flag.
11669 * c-common.h (c_lang_decl): Remove.
11670 (DECL_ESTIMATED_INSNS): Remove.
11671 * c-tree.h (struct lang_decl): Don't include c_lang_decl.
11672 (DECL_DECLARED_INLINE_P): Remove.
11673 * c-decl.c (grokdeclarator): Update comment. With -finline-functions,
11674 do not reset DECL_DECLARED_INLINE_P. Don't use DID_INLINE_FUNC.
11675 (finish_function): Make uninlinable a bool. Fixup call to
11676 tree_inlinable_function_p() and fix some code style issues.
11677 * cgraph.h (disgread_inline_limits): Fix spelling: `disregard'.
11678 * cgraph.c (dump_cgraph): Likewise.
11679 * cgraphunit.c (cgraph_decide_inlining): Likewise
11680 (cgraph_finalize_compilation_unit): Likewise.
11681 Also update call to tree_inlinable_function_p().
11682 (cgraph_default_inline_p): Don't use DID_INLINE_FUNC. Instead
11683 look at DECL_DECLARED_INLINE and reverse logic.
11684 * print-tree.c (print_node): Likewise.
11685 * toplev.c (rest_of_handle_inlining): Don't use DID_INLINE_FUNC.
11686 * tree-inline.h (tree_inlinable_function_p): Make a bool. Update
11688 * tree-inline.c (inlinable_function_p): Split up in this function to
11689 check for basic inlining inhibiting conditions, and new
11690 limits_allow_inlining() function. Warn if inlining is impossible
11691 because the inline candidate calls alloca or uses sjlj exceptions.
11692 (limits_allow_inlining): this new function to check if the inlining
11693 limits are satisfied. Throttle from currfn_max_inline_insns, not from
11694 MAX_INLINE_INSNS_SINGLE. The latter only makes sense if
11695 MAX_INLINE_INSNS_AUTO and MAX_INLINE_INSNS_SINGLE are equal.
11697 (tree_inlinable_function_p): Make a bool. Update call to
11698 inlinable_function_p
11699 (expand_call_inline): Use limits_allow_inlining() when not in
11700 unit-at-a-time mode to decide on inlining. Don't use DID_INLINE_FUNC,
11701 instead see if the function was declared `inline'.
11703 2003-08-05 Josef Zlomek <zlomekj@suse.cz>
11705 * gcse.c (try_replace_reg): Fix updating of note.
11707 2003-08-04 Roger Sayle <roger@eyesopen.com>
11709 PR middle-end/11771
11710 * fold-const.c (negate_expr_p <MINUS_EXPR>): Change to match the
11711 logic in negate_expr, i.e. we don't invert (A-B) for floating
11712 point types unless flag_unsafe_math_optimizations.
11714 2003-08-04 Roger Sayle <roger@eyesopen.com>
11716 * fold-const.c (fold <PLUS_EXPR>): Transform x+x into x*2.0.
11717 Optimize x*c+x and x+x*c into x*(c+1) and x*c1+x*c2 into x*(c1+c2)
11718 for floating point expressions with -ffast-math.
11719 (fold <MULT_EXPR>): Don't transform x*2.0 into x+x.
11720 * expmed.c (expand_mult): Wrap long line. Expand x*2.0 as x+x.
11722 2003-08-04 Roger Sayle <roger@eyesopen.com>
11724 * c-common.c (flag_noniso_default_format_attributes): Delete.
11725 (built_in_attribute): Don't define/undefine DEF_FN_ATTR.
11726 (c_attrs_initialized): Delete.
11727 (c_common_nodes_and_builtins): Don't test c_attrs_initialized,
11728 always call c_init_attributes.
11729 (c_init_attributes): Don't define/undefine DEF_FN_ATTR. Don't
11730 set c_attrs_initialized when done.
11731 (c_common_insert_default_attributes): Delete.
11732 * c-common.h (flag_noniso_default_format_attributes): Delete.
11733 (c_coomon_insert_default_attributes): Delete prototype.
11734 * c-opts.c (set_std_c89, set_std_c99, set_std_cxx98): Dont set
11735 flag_noniso_default_format_attributes.
11737 * c-decl.c (c_insert_default_attributes): Delete.
11738 * c-tree.h (c_insert_default_attributes): Delete prototype.
11740 * attribs.c (decl_attributes): Don't call insert_default_attributes
11741 langhook. Update function description comment.
11742 * langhooks.h (lang_hooks): Remove insert_default_attributes field.
11743 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Delete.
11744 * c-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't define.
11745 * system.h: Poison LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES macro.
11747 * objc/objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't
11750 2003-08-04 Richard Sandiford <rsandif@redhat.com>
11752 * config/mips/mips.c (override_options): Disable -G on targets that
11753 have no .section support.
11754 (mips_select_section): Use default_select_section for such targets.
11756 2003-08-04 Nathanael Nerode <neroden@gcc.gnu.org>
11758 * fixinc/inclhack.def (svr4_undeclared_getrnge): Introduce and enable.
11759 * fixinc/inclhack.def (static_getrnge): Remove disabled hack.
11760 * fixinc/fixincl.x: Rebuild.
11761 * fixinc/tests/base/regexp.h: New test.
11763 2003-08-04 Alexandre Oliva <aoliva@redhat.com>
11765 * c-ppoutput.c (cb_line_change): Don't skip line changing while
11766 parsing macro arguments in the top-level context.
11768 2003-08-04 Neil Booth <neil@daikokuya.co.uk>
11770 * config.in: Remove HAVE_LSTAT.
11771 * configure, configure.in: Don't test for lstat.
11773 2003-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
11775 * opts.c (decode_options): Do language-specific initialization for
11776 the global diagnostic context.
11777 * langhooks-def.h (lhd_initialize_diagnostics): Declare.
11778 (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): New macro.
11779 (LANG_HOOKS_INITIALIZER): Adjust.
11780 * langhooks.h (struct lang_hooks): Add new field
11781 initialize_diagnostics.
11782 * langhooks.c (lhd_initialize_diagnostics): Define.
11784 2003-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
11786 * pretty-print.h: Adjust macro definitions.
11787 * pretty-print.c (pp_newline): Rename to pp_base_newline.
11788 (pp_character): Rename to pp_base_character.
11789 (pp_string): Rename to pp_base_string.
11790 * c-pretty-print.c (pp_buffer): Move to pretty-print.h
11791 (pp_newline): Likewise. Adjust.
11792 (pp_c_char): Adjust.
11794 2003-08-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11796 * builtins.def (BUILT_IN_ABS, BUILT_IN_IMAXABS, BUILT_IN_LABS,
11797 BUILT_IN_LLABS): Move to miscellaneous section.
11799 2003-08-03 Neil Booth <neil@daikokuya.co.uk>
11801 PR preprocessor/11534
11802 * cppexp.c (parse_defined): Warn only if -pedantic.
11804 2003-08-03 Neil Booth <neil@daikokuya.co.uk>
11806 * cppfiles.c (stack_file): Use file path.
11808 2003-08-02 Roger Sayle <roger@eyesopen.com>
11810 * builtin-types.def (BT_SSIZE): New primitive type.
11811 (BT_FN_INT_PTR_CONST_STRING_VALIST_ARG,
11812 BT_FN_STRING_CONST_STRING_CONST_STRING_INT,
11813 BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR,
11814 BT_FN_SSIZE_STRING_SIZE_CONST_STRING_VAR): New function types.
11815 * builtins.def (BUILT_IN_DCGETTEXT, BUILT_IN_DGETTEXT,
11816 BUILT_IN_FSCANF, BUILT_IN_GETTEXT, BUILT_IN_STRFMON,
11817 BUILT_IN_STRFTIME, BUILT_IN_VFPRINTF, BUILT_IN_VFSCANF): New builtins.
11818 * builtin-attrs.def: Remove DEF_FN_ATTR construct and the last
11819 few functions that define default attributes using it.
11820 * c-common.c (c_common_insert_default_attributes): Do nothing.
11822 * doc/extend.texi: Document these "new" builtins.
11824 2003-08-02 Kaz Kojima <kkojima@gcc.gnu.org>
11826 * config/sh/linux.h (SUBTARGET_LINK_SPEC): Don't set rpath.
11827 (LIB_SPEC): Set -lpthread always when -pthread set. Set -lieee
11828 when -mieee-fp set and -shared not set.
11829 (SH_FALLBACK_FRAME_FLOAT_STATE): Don't define for SH5.
11831 2003-08-02 Neil Booth <neil@daikokuya.co.uk>
11833 * cppfiles.c (struct _cpp_file): Rename once_only_next to
11834 next_file. Remove import and pragma_once, add once_only.
11835 (find_file): Add new file structures to the all_files list.
11836 (should_stack_file): Mark #import-ed files once-only, and
11837 don't stack them if the file has already been stacked.
11838 (_cp_mark_file_once_only): Simplify.
11839 * cpphash.h (struct cpp_reader): Rename once_only_files
11840 to all_files. Rename saw_pragma_once to seen_once_only.
11841 (_cpp_mark_file_once_only): Update prototype.
11842 * cpplib.c (do_pragma_once): Update.
11844 2003-08-02 Neil Booth <neil@daikokuya.co.uk>
11846 * cppfiles.c (ENOTDIR): Remove.
11847 (open_file_in_dir): Rename find_file_in_dir. Handle errors
11848 other than ENOENT here.
11849 (once_only_file_p): Rename should_stack_file.
11850 (find_file, open_file_failed, read_file_guts): Report errors
11851 with full path name.
11852 (read_file): Move pch handling to should_stack_file.
11853 (should_stack_file): Handle PCH and once-only issues, and
11855 (stack_file): Don't do file reads.
11857 2003-08-02 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11859 * libgcov.c (gcov_exit): Cleanup and fix.
11860 * profile.c (compute_value_histograms): Don't try to read profiles
11861 that are not present.
11863 2003-08-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11865 * builtins.def: Categorize.
11867 * builtins.def (BUILT_IN_CABS, BUILT_IN_CABSF, BUILT_IN_CABSL):
11869 (BUILT_IN_FFSL): Use DEF_EXT_LIB_BUILTIN.
11871 2003-08-02 Andreas Tobler <a.tobler@schweiz.ch>
11873 * config.gcc: Enable posix threads by default on darwin.
11875 2003-08-01 Jakub Jelinek <jakub@redhat.com>
11877 * cfgcleanup.c (outgoing_edges_match): Check REG_EH_REGION notes
11878 even if nehedges1 is 0.
11880 2003-08-01 Nathanael Nerode <neroden@gcc.gnu.org>
11882 * fixinc/fixfixes.c, fixinc/fixlib.c, fixinc/fixlib.h,
11883 fixinc/fixtests.c, fixinc/procopen.c, fixinc/server.c,
11884 fixinc/server.h, fixinc/fixincl.c: ANSIfy function prototypes
11887 * fixinc/inclhack.def (broken_cabs): Make matching more generous.
11888 * fixinc/fixincl.x: Regenerate.
11889 * fixinc/tests/base/math.h: Regenerate to match test_text change.
11891 2003-08-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11893 * ggc-common.c (gt_pch_restore): Case MAP_FAILED to void *.
11895 2003-08-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11897 * except.c (sjlj_emit_dispatch_table): Use ptr_mode, not Pmode,
11898 for accesses to exc_ptr.
11900 2003-08-01 Geoffrey Keating <geoffk@apple.com>
11902 * doc/sourcebuild.texi (Front End Directory): Don't make references
11903 to libsubdir, it's not part of the interface to frontends.
11904 * doc/install.texi (Configuration): Help users read faster by saying
11905 that GCC's configure options are the standard autoconf ones.
11906 Mention --libdir. Update the default rules for finding the
11907 assembler. Don't use libsubdir since we haven't said what it means.
11908 (Specific): In the Solaris 7 notes, update the place to put the
11910 * doc/invoke.texi: Update lib/gcc-lib to lib/gcc.
11911 * doc/cpp.texi (Search Path): Actually, the search path
11912 depends on libdir, which can relocate with cpp.
11913 * doc/tm.texi (Driver): Don't document STANDARD_EXEC_PREFIX, it's
11914 now a private interface between the Makefile and the driver.
11916 2003-08-01 Richard Henderson <rth@redhat.com>
11918 * system.h: Poison ASM_SIMPLIFY_DWARF_ADDR.
11920 * varasm.c (lookup_constant_def): New function.
11921 * rtl.h (lookup_constant_def): Declare it.
11922 * dwarf2out.c (loc_descriptor_from_tree): Use it.
11923 Use targetm.delegitimize_address, not ASM_SIMPLIFY_DWARF_ADDR.
11925 2003-08-01 Zack Weinberg <zack@codesourcery.com>
11927 * c-decl.c (gettags, pushdecl_function_level): Delete.
11928 (last_function_parm_vars): Rename last_function_parm_others.
11929 (current_function_parm_vars): Rename current_function_parm_others.
11930 (struct c_scope): Rewrite comment explaining this data structure.
11931 Add names_last, blocks_last, parms_last fields. Rename
11932 incomplete_list to incomplete.
11933 (SCOPE_LIST_APPEND, SCOPE_LIST_CONCAT): New macros.
11934 (poplevel): Ignore second argument. No need to nreverse
11935 anything. Restructure such that each list is processed
11936 exactly once. Use 'const location_t *locus' syntactic sugar
11937 variable where useful. Issue unused variable warnings
11938 ourselves, do not rely on function.c.
11939 (insert_block, pushdecl, bind_label): Use SCOPE_LIST_APPEND.
11940 (pushdecl_top_level): Likewise. Don't call duplicate_decls.
11941 (implicitly_declare): decl cannot be error_mark_node.
11942 (undeclared_variable): Manipulate scope structure directly.
11943 (c_make_fname_decl): Likewise.
11944 (getdecls, c_init_decl_processing): Fix comment.
11945 (mark_forward_parm_decls): Use SCOPE_LIST_CONCAT. No need
11946 for 'last' variable.
11947 (grokparms): No need to nreverse parms list.
11948 (store_parm_decls_newstyle): Set up the parms_last and
11949 names_last fields of the new scope too.
11950 (store_parm_decls_oldstyle): Can assume DECL_WEAK is not set
11951 on parms to begin with; check this under ENABLE_CHECKING. Set
11953 (check_for_loop_decls): Refer directly to current_scope->tags.
11954 Use consistent quote style in diagnostics.
11955 (c_write_global_declarations): The names list is not backward.
11957 * c-common.h: Don't prototype gettags.
11958 * c-parse.in: Call poplevel with second argument 0 always.
11960 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11962 * builtins.def: Resort builtins.
11964 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11966 * builtins.def (DEF_GCC_BUILTIN, DEF_LIB_BUILTIN,
11967 DEF_EXT_LIB_BUILTIN, DEF_C99_BUILTIN, DEF_C99_C90RES_BUILTIN):
11968 Prepend "__builtin_" onto NAME with string concatenation. Remove
11969 explicit "__builtin_" from each macro call.
11971 Reformat entire file.
11973 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11975 * builtins.def (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
11976 ATTR_MATHFN_FPROUNDING_ERRNO): New macros. Use throughout.
11978 2003-08-01 Andreas Krebbel <krebbel1@de.ibm.com>
11980 * config/s390/s390.c (s390_select_ccmode): Do not attempt to use CCL,
11981 CCL1, or CCL2 modes with floating point operations.
11983 * config/s390/s390.md ("*addsf3_cc", "*addsf3_cconly", "*adddf3_cc",
11984 "*adddf3_cconly", "*subsf3_cc", "*subsf3_cconly", "*subdf3_cc",
11985 "*subdf3_cconly"): New insns.
11986 ("*negabssi2", "*negabsdi2", "*negabsdf2", "*negabssf2"): Likewise.
11988 2003-08-01 Neil Booth <neil@daikokuya.co.uk>
11990 * Makefile.in: Refine dependencies.
11991 * c-opts.c (c_common_handle_option): Do nothing for -Wimport.
11992 * c.opt: Update help for -Wimport.
11993 * cppfiles.c: Include hashtab.h. Update comments.
11994 (stack_file): Read the file before updating dependencies.
11995 (once_only_file_p): Be smarter about marking once-only files.
11996 (_cpp_mark_file_once_only): Correct the check for existence on
11998 (open_file_failed): Use name not path, which is NULL.
11999 * cpphash.h: Don't include hashtab.h.
12000 (struct _cpp_file): Remove.
12001 (struct cpp_reader): Update.
12002 * cppinit.c (cpp_create_reader): Don't initialize warn_import.
12003 * cpplib.h (struct cpp_options): Remove warn_import.
12004 (cpp_simplify_path): Remove.
12006 2003-08-01 Nathan Sidwell <nathan@codesourcery.com>
12009 * doc/extend.texi (Statement Expressions): Document C++ semantics.
12011 2003-07-31 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
12013 * config.gcc (sh-*-linux*): Do not override sh/t-linux with sh/t-le.
12015 2003-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12017 * builtin-types.def: Use `LONGDOUBLE' instead of `LONG_DOUBLE'
12019 * builtins.def: Likewise.
12021 2003-07-31 Jason Merrill <jason@redhat.com>
12023 * Makefile.in (bubblestrap): Don't require a previous full
12026 * expr.c (mostly_zeros_p): No longer static.
12027 * tree.h: Declare it.
12028 * stmt.c (resolve_asm_operand_names): Don't copy the pattern
12029 unless we need to do substitutions.
12031 2003-07-31 Roger Sayle <roger@eyesopen.com>
12033 * fold-const.c (fold <MULT_EXPR>): Optimize both x*pow(x,c) and
12034 pow(x,c)*x as pow(x,c+1) for constant values c. Optimize x*x
12035 as pow(x,2.0) when the latter will be expanded back into x*x.
12036 (fold <RDIV_EXPR>): Optimize pow(x,c)/x as pow(x,c-1).
12037 * builtins.c (expand_builtin_pow): Ignore flag_errno_math as
12038 pow can never set errno when used with an integer exponent.
12039 Always use expand_powi when exponent is -1, 0, 1 or 2.
12040 (fold_builtin): Don't rewrite pow(x,2.0) as x*x nor pow(x,-2.0)
12041 as 1.0/(x*x). This avoids unbounded recursion as we now prefer
12042 the pow forms of these expressions.
12044 2003-07-31 Geoffrey Keating <geoffk@apple.com>
12046 * Makefile.in (libexecdir): New.
12047 (libsubdir): Use gcc instead of gcc-lib.
12048 (libexecsubdir): New.
12049 (ORDINARY_FLAGS_TO_PASS): Add libexecsubdir.
12050 (DRIVER_DEFINES): Add STANDARD_LIBEXEC_PREFIX, use gcc instead of
12052 (installdirs): Make libexecsubdir.
12053 (install-common): Put executables in libexecsubdir.
12054 (itoolsdir): Use libexecsubdir.
12055 (itoolsdatadir): New.
12056 (install-mkheaders): Separate data files and executables.
12057 (install-collect2): Put executables in libexecsubdir.
12058 (uninstall): Remove libexecsubdir.
12059 * mkheaders.in: Update for new arrangement of files.
12061 (libexecsubdir): New.
12062 (itoolsdir): Use libexecsubdir.
12063 (itoolsdatadir): New.
12064 * gcc.c (gcc_libexec_prefix): New.
12065 (STANDARD_LIBEXEC_PREFIX): Use gcc instead of gcc-lib.
12066 (standard_exec_prefix_1): Use libexec.
12067 (standard_exec_prefix_2): New.
12068 (standard_libexec_prefix): New.
12069 (process_command): Update for new arrangement of files. Compute
12070 gcc_libexec_prefix. Update for change from gcc-lib to gcc.
12072 2003-07-31 Nathanael Nerode <neroden@gcc.gnu.org>
12074 * inclhack.def (stdio_va_list): Avoid bogus replacement which
12075 triggers on Interix.
12076 * fixincl.x: Regenerate.
12078 2003-07-31 Jakub Jelinek <jakub@redhat.com>
12080 * config/i386/i386.c (legitimate_pic_address_disp_p): Disallow TLS
12081 SYMBOL_REFs not inside UNSPEC even in PLUS rtx.
12083 2003-07-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12085 * dwarf2out.c (loc_descriptor_from_tree, case CONSTRUCTOR): New case.
12087 2003-07-31 Per Bothner <pbothner@apple.com>
12089 * opts.c (in_fnames, num_in_fnames): Moved here from c-opts.
12090 (add_input_filename): New function.
12091 (handle_options): Call add_input_filename directly instead of
12093 * opts.h (in_fnames, num_in_fnames): Moved here.
12094 (add_input_filename): Declare.
12095 * c-decl.c: Need to #include opts.h.
12096 * Makefile.in (c-decl.o): Also depends on opts.h.
12097 * c-opts.c (in_fnames, num_in_fnames): Moved to opts.c.
12098 (c_common_handle_filename): Replaced by add_input_filename.
12099 * c-common.h (in_fnames, num_in_fnames, c_common_handle_filename):
12101 * langhooks.h (struct lang_hooks): Remove handle_filename hook.
12102 * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME): Remove macro.
12103 (LANG_HOOKS_INITIALIZER): Remove use of LANG_HOOKS_HANDLE_FILENAME.
12104 * c-lang.c (LANG_HOOKS_HANDLE_FILENAME): Remove macro.
12106 2003-07-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12108 * combine.c (try_combine): Set JUMP_LABEL for newly created
12109 unconditional jump.
12111 2003-07-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12113 * fold-const.c (fold): Fold some comparisons of bit operations.
12115 2003-07-31 Jan Hubicka <jh@suse.cz>
12117 * cgraph.c (create_edge): Fix typo.
12118 * i386.c (pic_symbolic_operand): Reorder tests.
12120 2003-07-31 Nathan Sidwell <nathan@codesourcery.com>
12122 * doc/gcov.texi (Invoking Gcov): Describe output name mangling
12124 (Gcov Data Files): Update.
12126 2003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12128 * config.gcc (alpha*-dec-osf[45]*): Enable POSIX thread support by
12131 * gthr-posix.c: New file.
12132 * gthr-posix.h: Define _REENTRANT if missing.
12133 Make _LIBOBJC #pragma weak visible with _LIBOBJC_WEAK.
12135 * config/alpha/t-osf4 (SHLIB_LINK): Hide dummy functions provided
12137 * config/alpha/t-osf-pthread: New file.
12139 * fixinc/inclhack.def (alpha_pthread): New fix.
12140 * fixinc/fixincl.x: Regenerate.
12141 * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_CHECK]: New testcase.
12143 * doc/install.texi (alpha*-dec-osf*): Remove --enable-threads
12145 Fixes PR bootstrap/9330.
12147 2003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12149 * configure.in (gcc_cv_ld_hidden): Also disable on mips-sgi-irix5*
12152 * configure: Regenerate.
12154 2003-07-31 Vladimir Makarov <vmakarov@redhat.com>
12156 * sched-deps.c (sched_analyze_2): Prevent interblock move of CC0
12159 2003-07-30 Roger Sayle <roger@eyesopen.com>
12161 * builtins.def: Alphabetize.
12163 2003-07-30 Matt Kraai <kraai@alumni.cmu.edu>
12165 * doc/c-tree.texi: Normalize spellings of "lowercase" and
12167 * doc/cpp.texi: Likewise.
12168 * doc/md.texi: Likewise.
12169 * doc/rtl.texi: Likewise.
12170 * doc/tm.texi: Likewise.
12172 2003-07-30 Matt Kraai <kraai@alumni.cmu.edu>
12174 * objc/Make-lang.in (objc.stage1, objc.stage2, objc.stage3)
12175 (objc.stage4, objc.stageprofile, objc.stagefeedback): Remove moves
12178 2003-07-30 Chris Demetriou <cgd@broadcom.com>
12180 * config/mips/mips.h (SIZE_TYPE, PTRDIFF_TYPE): Undef these
12181 macros before defining them.
12183 2003-07-31 Ulrich Weigand <uweigand@de.ibm.com>
12185 * config/s390/s390.md (UNSPEC_ROUND, UNSPEC_SETHIGH,
12186 UNSPECV_BLOCKAGE): New constants.
12187 ("*sethighqisi", "*sethighhisi", "*sethiqidi_64", "*sethiqidi_31",
12188 "*extractqi", "*extracthi", "*extendqidi2" splitter, "*extendqisi2"
12189 splitter, "fix_truncdfdi2_ieee", "fix_truncdfsi2_ieee",
12190 "fix_truncsfdi2", "fix_truncsfsi2", "blockage"): Use them.
12192 (all insns and expanders): Write output control string as brace block
12193 where appropriate. Remove \-escapes for doublequote characters.
12195 2003-07-31 Jan Hubicka <jh@suse.cz>
12197 * gcse.c (insert_store): Fix typo in previous patch.
12199 2003-07-30 Neil Booth <neil@daikokuya.co.uk>
12201 * cppfiles.c (stack_file, open_file_failed): Use path for deps.
12203 2003-07-30 Andi Kleen <ak@muc.de>
12205 * loop.c (check_dbra_loop): Allow LTU in the loop condition.
12207 2003-07-30 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12209 * combine.c (distribute_notes): Cancel REG_VALUE_PROFILE notes.
12210 * gcov-io.h (GCOV_FIRST_VALUE_COUNTER, GCOV_LAST_VALUE_COUNTER,
12211 GCOV_N_VALUE_COUNTERS): New.
12212 * profile.c (compute_value_histograms): New static function.
12213 (branch_prob): Read back the value histograms.
12214 * rtl.c (reg_note_name): Add name for REG_VALUE_PROFILE note.
12215 * rtl.h (enum reg_note): Add REG_VALUE_PROFILE note.
12216 * value-prof.c: Add comment on reading the profile.
12217 * value-prof.h (COUNTER_FOR_HIST_TYPE, HIST_TYPE_FOR_COUNTER): New.
12218 * doc/invoke.texi (-fprofile-values): Document behavior with
12219 -fbranch-probabilities.
12221 2003-07-30 David Edelsohn <edelsohn@gnu.org>
12223 * longlong.h (PowerPC umul_ppmm): Do not test __vxworks__.
12225 2003-07-30 Ulrich Weigand <uweigand@de.ibm.com>
12227 * config/s390/s390.h (EH_RETURN_HANDLER_RTX): Compute offset
12230 2003-07-30 Jan Hubicka <jh@suse.cz>
12232 * gcse.c (insert_store): Ignore fake edges.
12234 * c-common.c (flag_vtable_gc): Kill.
12235 * c-common.g (flag_vtable_gc): Kill.
12236 * c-opts (c_common_handle_option): Kill.
12237 * c.opt (fvtable-gc): Kill.
12238 * final.c (final_scan_insn): Do not call assemble_vtable_entry.
12239 * output.h (assemble_vtable_entry, assemble_vtable_inherit): Kill.
12240 * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): Kill.
12242 * invoke.texi (-ftable-gc): Kill documentation.
12244 * tree-inline.c (inlinable_function_p): Don't set DECL_UNINLINABLE
12245 just because function body is missing.
12247 * i386.c (pic_symbolic_operand): Properly detect RIP relative unspecs.
12249 2003-07-30 Ranjit Mathew <rmathew@hotmail.com>
12251 * unwind-sjlj.c: Fix typo in file description.
12253 2003-07-30 Alan Modra <amodra@bigpond.net.au>
12255 * calls.c (load_register_parameters): When shifting reg sized values
12256 to the msb, move the value to a reg first.
12258 2003-07-29 Geoffrey Keating <geoffk@apple.com>
12260 * cppfiles.c (stack_file): Leave filename as "" rather than "<stdin>".
12261 * line-map.h (linemap_add): Update comments.
12262 * line-map.c (linemap_add): Update comments, interpret zero-length
12263 filename as "<stdin>".
12265 2003-07-29 Nathanael Nerode <neroden@gcc.gnu.org>
12267 * mkinstalldirs: Import autoconf 2.57 / automake 1.7 version.
12269 2003-07-29 Zack Weinberg <zack@codesourcery.com>
12271 * c-decl.c (last_function_parm_vars, current_function_parm_vars):
12272 New static variables.
12273 (struct c_scope): Add parms and warned_forward_parm_decls
12274 fields; remove parm_order.
12275 (storedecls, storetags): Delete.
12276 (poplevel): Also clear bindings on the parms chain.
12277 (pushdecl): Handle forward declarations of parameters, and
12278 chain PARM_DECLs on the parms list, not the names list.
12279 (lookup_name_current_level): Check for PARM_DECLs on the parms
12281 (push_parm_decl): Don't update parm_order.
12282 (clear_parm_order): Rename mark_forward_parm_decls. Issue the
12283 warning, only once per parameter list, and set TREE_ASM_WRITTEN
12284 on the decls here. Then move the forward decls to the names list.
12285 (grokparms): Set last_function_parm_vars.
12286 (get_parm_info): Don't use gettags or getdecls. No need to
12287 extract non-parms from the parms list, or reorganize the parms
12288 list. Feed nonparms back in the TREE_TYPE of the list node
12289 returned. Issue only one error per parameter list for "void"
12290 appearing more than once in said parameter list. Collapse
12291 parmlist_tags_warning into this function to avoid double scan
12293 (start_function): Set current_function_parm_vars.
12294 (store_parm_decls_newstyle): Bypass pushdecl, manipulate scope
12295 directly. Get non-parms from current_function_parm_vars; no
12296 need to extract them from the parms chain. Properly bind tags
12298 (store_parm_decls_oldstyle): No need to extract non-parameters
12299 from the parms chain, nor to store them back afterward. Move
12300 declaration to top of function, restructure code reordering
12302 (store_parm_decls): No need to save and restore warn_shadow.
12303 * c-parse.in: Don't call parmlist_tags_warning nor
12304 clear_parm_order. Call mark_forward_parm_decls when forward
12305 parm decls are encountered.
12306 * c-tree.h: Prototype mark_forward_parm_decls; not
12307 clear_parm_order or parmlist_tags_warning.
12309 2003-07-29 Geoffrey Keating <geoffk@apple.com>
12311 * c-common.c (allow_pch): Remove.
12312 * c-common.h (allow_pch): Remove.
12313 (c_common_no_more_pch): Declare.
12314 * c-lex.c (c_lex): Call c_common_no_more_pch when appropriate.
12315 * c-pch.c: Include hosthooks.h.
12316 (c_common_valid_pch): Don't check allow_pch.
12317 (c_common_read_pch): Clear valid_pch to prevent reading PCH files.
12318 (c_common_no_more_pch): New.
12319 * ggc-common.c: Include hosthooks.h.
12320 (gt_pch_save): Call gt_pch_get_address.
12321 (gt_pch_restore): Call gt_pch_use_address.
12322 * hooks.c (hook_voidp_size_t_null): New.
12323 (hook_bool_voidp_size_t_false): New.
12324 * hooks.h (hook_voidp_size_t_null): New.
12325 (hook_bool_voidp_size_t_false): New.
12326 * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): New.
12327 (HOST_HOOKS_GT_PCH_USE_ADDRESS): New.
12328 (HOST_HOOKS_INITIALIZER): Add HOST_HOOKS_GT_PCH_GET_ADDRESS,
12329 HOST_HOOKS_GT_PCH_USE_ADDRESS.
12330 * hosthooks.h (struct host_hooks): Add gt_pch_get_address,
12331 gt_pch_use_address.
12332 * doc/hostconfig.texi (Host Common): Document
12333 HOST_HOOKS_GT_PCH_GET_ADDRESS, HOST_HOOKS_GT_PCH_USE_ADDRESS.
12334 * Makefile.in (c-pch.o): Depend on hosthooks.h.
12335 (ggc-common.o): Likewise.
12337 * config/rs6000/host-darwin.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Define.
12338 (HOST_HOOKS_GT_PCH_USE_ADDRESS): Define.
12339 (pch_address_space): New.
12340 (darwin_rs6000_gt_pch_get_address): New.
12341 (darwin_rs6000_gt_pch_use_address): New.
12343 2003-07-29 Neil Booth <neil@daikokuya.co.uk>
12345 PR preprocessor/11569
12346 PR preprocessor/11649
12347 * Makefile.in (LIBCPP_DEPS): Add HASHTAB_H.
12348 * cppfiles.c: Completely rewritten.
12349 * c-incpath.c (free_path, remove_duplicates, heads, tails, add_path):
12350 struct cpp_path is now struct cpp_dir.
12351 (remove_duplicates): Don't simplify path names.
12352 * c-opts.c (c_common_parse_file): cpp_read_next_file renamed
12354 * cpphash.h: Include hashtab.h.
12355 (_cpp_file): Declare.
12356 (struct cpp_buffer): struct include_file is now struct _cpp_file,
12357 and struct cpp_path is now struct cpp_dir. Rename members.
12358 (struct cpp_reader): Similarly. New members once_only_files,
12359 file_hash, file_hash_entries, quote_ignores_source_dir,
12360 no_search_path, saw_pragma_once. Remove all_include_files and
12361 max_include_len. Make some members bool.
12362 (_cpp_mark_only_only): Renamed from _cpp_never_reread.
12363 (_cpp_stack_file): Renamed from _cpp_read_file.
12364 (_cpp_stack_include): Renamed from _cpp_execute_include.
12365 (_cpp_init_files): Renamed from _cpp_init_includes.
12366 (_cpp_cleanup_files): Renamed from _cpp_cleanup_includes.
12367 * cppinit.c (cpp_create_reader): Initialize no_search_path. Update.
12368 (cpp_read_next_file): Rename and move to cppfiles.c.
12369 (cpp_read_main_file): Update.
12370 * cpplib.c (run_directive): Update for renamed members.
12371 (do_include_common, _cpp_pop_buffer): Update.
12372 (do_import): Undeprecate #import.
12373 (do_pragma_once): Undeprecate. Use _cpp_mark_file_once_only.
12374 * cpplib.h: Remove file_name_map_list.
12375 (cpp_options): Remove map_list.
12376 (cpp_dir): Rename from cpp_path. New datatype for name_map.
12377 (cpp_set_include_chains, cpp_stack_file, cpp_included): Update.
12379 2003-07-29 Phil Edwards <pme@gcc.gnu.org>
12381 * Makefile.in: Make stamp-objdir safe for parallel builds.
12383 2003-07-29 Phil Edwards <pme@gcc.gnu.org>
12385 * Makefile.in (stmp-docobjdir): New target; ensure $docobjdir exists.
12386 (info): Depend on stmp-docobjdir.
12388 2003-07-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12390 * configure: Regenerate.
12392 2003-07-29 Jan Hubicka <jh@suse.cz>
12395 * tree-inline.c (expand_call_inline): Always call inlinable_function_p
12396 in !unit-at-a-time mode.
12398 2003-07-28 Geoffrey Keating <geoffk@apple.com>
12400 * c-decl.c (c_expand_body_1): Use C_DECL_FILE_SCOPE to detect
12403 2003-07-28 Mark Mitchell <mark@codesourcery.com>
12406 * c-common.c (shorten_compare): Take into account differences
12407 between C and C++ representation for enumeration types.
12408 * tree.h (set_min_and_max_values_for_integral_type): Declare.
12409 * stor-layout.c (set_min_and_max_values_for_integral_type): New
12410 function, broken out from ...
12411 (fixup_signed_type): ... here and ...
12412 (fixup_unsigned_type): ... here.
12414 2003-07-28 Zack Weinberg <zack@codesourcery.com>
12416 * c-decl.c: Update commentary, adjust blank lines throughout.
12417 (struct c_scope): Fix indentation. Reorder members so
12418 outer-context pointers come first, booleans last.
12419 (duplicate_decls, define_label): Use a 'locus' variable for
12420 diagnostic locations in a few more places.
12421 (warn_if_shadowing): Un-split a conditional that fits on one line.
12422 (c_init_decl_processing): No need to clear current_scope and
12423 current_function_scope.
12424 (start_decl): Merge if/else if statements with same action.
12425 (push_parm_decl): Rename old_immediate_size_expand to use
12426 save_foo convention; save/restore around entire function.
12427 (grokdeclarator): Remove unnecessary braces.
12429 2003-07-28 Hans-Peter Nilsson <hp@bitrange.com>
12430 Michael Culbertson <Michael.J.Culbertson@wheaton.edu>
12432 * c-parse.in (lineno_stmt_decl_or_labels_ending_decl): Also warn
12433 when warn_declaration_after_statement. Call pedwarn_c90, not
12434 pedwarn. Correct message: it's "ISO C90", not "ISO C89".
12435 * c-common.c (warn_declaration_after_statement): Define.
12436 * c-common.h (warn_declaration_after_statement): Declare.
12437 * c.opt (Wdeclaration-after-statement): New.
12438 * c-errors.c (pedwarn_c90): New function.
12439 * c-opts.c (c_common_handle_option) <case
12440 OPT_Wdeclaration_after_statement>: New.
12441 * c-tree.h (pedwarn_c90): Declare.
12442 * doc/invoke.texi (Option Summary): Document
12443 -Wdeclaration-after-statement.
12444 (Warning Options): Ditto.
12446 2003-07-28 Jan Hubicka <jh@suse.cz>
12448 * i386.md (memory attribute) Avoid accessing uninitialized memory
12449 for ishift1 type instructions.
12451 2003-07-28 Jakub Jelinek <jakub@redhat.com>
12453 * configure.in (--enable-checking): Add fold category.
12454 (ENABLE_FOLD_CHECKING): Define if requested.
12455 * configure: Rebuilt.
12456 * config.in: Rebuilt.
12457 * doc/install.texi: Document it.
12458 * fold-const.c: Include md5.h.
12459 [ENABLE_FOLD_CHECKING] (fold): Define to fold_1.
12460 [ENABLE_FOLD_CHECKING] (fold, fold_checksum_tree, fold_check_failed,
12461 print_fold_checksum): New functions.
12463 * fold-const.c (fold): Never modify argument passed to fold, instead
12464 change a copy and return it.
12465 * convert.c (convert_to_integer): Likewise.
12467 2003-07-27 Nathanael Nerode <neroden@gcc.gnu.org>
12469 * fixinc/fixinc.svr4: Remove dead code. Remove now-unnecessary
12470 cleanup of junk after #else and #endif directives. Collapse repeated
12471 clauses into for statment.
12473 * fixinc/fixincl.sh: GNU C -> GCC. Add usage comment.
12475 2003-07-27 Zack Weinberg <zack@codesourcery.com>
12477 * c-decl.c (struct c_scope): Remove keep_if_subblocks field.
12478 (keep_next_if_subblocks): Rename next_is_function_body.
12479 (pushlevel): Adjust commentary. Always set ->keep on the
12480 outermost level of a function. Don't set ->keep_if_subblocks.
12481 (poplevel): Adjust commentary. Don't look at ->keep_if_subblocks.
12482 (store_parm_decls): Adjust to match.
12483 (finish_function): Adjust to match.
12484 Call poplevel with all three arguments zero.
12486 * c-decl.c (store_parm_decls_newstyle, store_parm_decls_oldstyle):
12487 New functions split out of store_parm_decls.
12488 Avoid unnecessary work. Use local variables consistently.
12489 (store_parm_decls): Likewise.
12491 (finish_function): No need to set functionbody flag on call to
12493 (struct language_function): Remove scope field.
12494 (c_push_function_context, c_pop_function_context): No need to
12495 save and restore current_scope.
12497 2003-07-27 Nathan Sidwell <nathan@codesourcery.com>
12499 * doc/extend.texi (Deprecated Features): Implicit typename is
12500 gone. Default args on types is going.
12502 2003-07-26 J"orn Rennecke <joern.rennecke@superh.com>
12504 * Makefile.in (ifcvt.o): Depend on target.h
12505 * ifcvt.c (target.h): Include.
12506 (if_convert): Don't call mark_loop_exit_edges if we can't
12509 2003-07-26 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
12511 * doc/install.texi (Testing): Adjust required versions of DejaGnu.
12513 2003-07-26 Richard Henderson <rth@redhat.com>
12515 PR inline-asm/11676
12516 * cse.c (count_reg_usage): Handle asm_operands properly.
12518 2003-07-26 Roger Sayle <roger@eyesopen.com>
12520 * builtins.def (DEF_FALLBACK_BUILTIN): Delete.
12521 (DEF_EXT_FALLBACK_BUILTIN): Delete.
12522 (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Declare using
12523 the regular DEF_EXT_LIB_BUILTIN macro.
12524 (BUILT_IN_FPUTC, BUILT_IN_FPUTS, BUILT_IN_FWRITE): Declare using
12525 the regular DEF_LIB_BUILTIN macro.
12526 (BUILT_IN_PUTCHAR_UNLOCKED, BUILT_IN_PUTS_UNLOCKED,
12527 BUILT_IN_FPUTC_UNLOCKED, BUILT_IN_FPUTS_UNLOCKED,
12528 BUILT_IN_FWRITE_UNLOCKED): Declare using the regular
12529 DEF_EXT_LIB_BUILTIN macro.
12531 * c-decl.c (duplicate_decls): Remove code to handle builtin
12532 functions prototyped without an argument list.
12534 2003-07-26 Danny Smith <dannysmith@users.sourceforge.net>
12536 * config/i386/winnt.c: Revert 2003-07-08 change.
12537 (i386_pe_section_type_flags): Remove error_with_decl here too.
12539 2003-07-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
12541 * config/arm/pe.c (arm_mark_dllimport): Don't use xxx_with_decl.
12542 * config/mcore/mcore.c (mcore_mark_dllimport): Likewise.
12543 * config/v850/v850.c (v850_handle_data_area_attribute): Likewise.
12544 (v850_handle_data_area_attribute): Likewise.
12546 2003-07-26 Geoffrey Keating <geoffk@apple.com>
12548 * varasm.c (output_constant_def_contents): Use
12549 ASM_DECLARE_CONSTANT_NAME if defined.
12550 * doc/tm.texi (Label Output): Document ASM_DECLARE_CONSTANT_NAME.
12551 * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Ensure zero-sized
12552 objects get at least one byte to prevent assembler problems.
12553 (ASM_DECLARE_CONSTANT_NAME): New.
12555 * Makefile.in (libbackend.o): Remove options_.h.
12556 (mostlyclean): Likewise.
12558 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
12559 insert a label at the end of an function under Mach-O.
12561 * c-decl.c (c_static_assembler_name): Remove TREE_STATIC test.
12563 2003-07-25 Aldy Hernandez <aldyh@redhat.com>
12565 * config/rs6000/rs6000.c (is_ev64_opaque_type): Only check pointer
12567 (spe_init_builtins): Declare __ev64_opaque__ as a builtin type.
12569 * config/rs6000/spe.h: Remove __ev64_opaque__ definition.
12571 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
12573 * doc/passes.texi (Passes): Mention pretty-printing and
12576 2003-07-25 Nathan Sidwell <nathan@codesourcery.com>
12578 * doc/extend.texi (Function Attributes): GNU C++ does now allow
12579 unused parameter decls.
12580 (Attribute Syntax): GNU C++ does not allow label attributes to be
12583 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
12585 * objc/objc-act.c (objc_check_decl): Don't use xxx_with_decl.
12586 (objc_declare_class): Likewise.
12587 (error_with_ivar): Likewise.
12588 (start_class): Likewise.
12589 (warn_with_method): Likewise.
12591 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
12593 Remove pedwarn_with_decl, warning_with_decl and error_with_decl
12595 * calls.c (try_to_integrate): Don't use xxx_with_decl.
12596 (expand_call): Likewise.
12597 * dwarfout.c (output_reg_number): Likewise.
12598 * expr.c (expand_expr): Likewise.
12599 * function.c (assign_temp): Likewise.
12600 (uninitialized_vars_warning): Likewise.
12601 (setjmp_args_warning): Likewise.
12602 (expand_function_end): Likewise.
12603 * stmt.c (fixup_gotos): Likewise.
12604 (warn_about_unused_variables): Likewise.
12605 (expand_end_bindings): Likewise.
12606 * stor-layout.c (layout_decl): Likewise.
12607 (place_field): Likewise.
12608 * toplev.c (check_global_declarations): Likewise.
12609 (rest_of_handle_inlining): Likewise.
12610 (default_tree_printer): New function.
12611 (general_init): Initialize diagnostic machinery before routing
12612 signals to the ICE machinery. Set default tree printer.
12613 * toplev.h (pedwarn_with_decl): Remove declaration.
12614 (warning_with_decl): Likewise.
12615 (error_with_decl): Likewise.
12616 (pedwarn): Remove attribute for the time being.
12617 * tree-inline.c (expand_call_inline): Don't use xxx_with_decl.
12618 * varasm.c (named_section): Likewise.
12619 (make_decl_rtl): Likewise.
12620 (assemble_variable): Likewise.
12621 (merge_weak): Likewise.
12622 (declare_weak): Likewise.
12624 * diagnostic.h: Move non-diagnostic stuff into pretty-print.h.
12625 * diagnostic.c: Move non-diagnostic stuff into pretty-print.c.
12626 (format_with_decl): Remove.
12627 (diagnostic_for_decl): Likewise.
12628 (pedwarn_with_decl): Likewise.
12629 (warning_with_decl): Likewise.
12630 (error_with_decl): Likewise.
12631 (diagnostic_initialize): Adjust.
12632 (diagnostic_count_diagnostic): Likewise.
12633 (announce_function): Likewise.
12634 (lhd_print_error_function): Likewise.
12635 (diagnostic_report_current_module): Likewise.
12636 (default_diagnostic_starter): Likewise.
12637 (diagnostic_report_diagnostic): Likewise.
12638 (default_diagnostic_finalizer): Likewise.
12639 (verbatim): Likewise.
12641 (warning): Likewise.
12642 * opts.c (common_handle_option): Likewise.
12643 * pretty-print.c: New file.
12644 * c-pretty-print.h (pp_base): Override.
12645 * c-pretty-print.c: Adjust use of macros throughout.
12646 (pp_buffer): New macro.
12647 (pp_newline): Likewise.
12648 * c-objc-common.c (c_tree_printer): Adjust prototype. Tidy.
12649 * Makefile.in (DIAGNOSTIC_H): New variable.
12650 (c-errors.o): Use it.
12651 (c-objc-common.o): Likewise.
12652 (c-common.o): Likewise.
12653 (c-opts.o): Likewise.
12654 (c-format.o): Likewise.
12655 (diagnostic.o): Likewise.
12656 (opts.o): Likewise.
12657 (toplev.o): Likewise.
12658 (rtl-error.o): Likewise.
12659 (dwarf2out.o): Likewise.
12660 (jump.o): Likewise.
12661 (pretty-print.o): New rule.
12663 2003-07-24 Roger Sayle <roger@eyesopen.com>
12665 * builtins.def (BUILT_IN_PRINTF, BUILT_IN_FPRINTF): Changed from
12666 front-end builtins to normal builtins, using DEF_LIB_BUILTIN.
12667 (BUILT_IN_PRINTF_UNLOCKED, BUILT_IN_FPRINTF_UNLOCKED): Changed
12668 from front-end to normal builtins, using DEF_EXT_LIB_BUILTIN.
12669 (DEF_FRONT_END_LIB_BUILTIN): Delete.
12670 (DEF_EXT_FRONT_END_LIB_BUILTIN): Delete.
12671 (BUILT_IN_FWRITE_UNLOCKED): Wrap long line.
12673 * builtins.c (build_string_literal): New function to construct
12674 a char* pointer to a string literal.
12675 (expand_builtin_fputs): Change 2nd argument from "int ignore" to
12676 "rtx target" to be consistent with other expand_builtin_* functions.
12677 Change 3rd argument from "int unlocked" to "bool unlocked".
12678 (expand_builtin_printf): Rewrite of c_expand_builtin_printf from
12679 c-common.c to avoid front-end dependencies. Optimize printf("")
12680 as a no-op when the result isn't required. Handle embedded NULs
12682 (expand_builtin_fprintf): A rewrite of c_expand_builtin_fprintf
12683 from c-common.c to avoid front-end dependencies. Likewise, optimize
12684 fprintf(fp,"") as a no-op when the result isn't required, evaluating
12685 fp for side-effects. Handle embedded NULs in format string.
12686 (expand_builtin_sprintf): Fix typo.
12687 (expand_builtin): Don't expand BUILT_IN_FPRINT{,_UNLOCKED} when not
12688 optimizing. Adjust calls of expand_builtin_fputs to match the API
12689 change. Expand BUILT_IN_PRINTF and BUILT_IN_PRINTF_UNLOCKED using
12690 expand_builtin_printf. Likewise, expand BUILT_IN_FPRINTF_UNLOCKED
12691 and BUILT_IN_FPRINTF using expand_builtin_fprintf.
12693 * c-common.c (is_valid_printf_arglist): Delete.
12694 (c_expand_builtin): Delete.
12695 (c_expand_builtin_printf): Moved to builtins.c. Delete.
12696 (c_expand_builtin_fprintf): Moved to builtins.c. Delete.
12697 (c_expand_expr): No longer treat CALL_EXPRs specially.
12698 (CALLED_AS_BUILT_IN): Delete.
12700 2003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12702 PR optimization/11631
12703 * gcse.c (store_motion): Connect infinite loops to exit.
12705 2003-07-24 Jason Merrill <jason@redhat.com>
12707 * tree.h (boolean_type_node): Move from C/C++/Java frontends.
12708 (boolean_true_node, boolean_false_node): Likewise.
12709 (enum tree_index): Add TI_BOOLEAN_{TYPE,FALSE,TRUE}.
12710 * tree.c (build_common_tree_nodes): Init boolean_type_node.
12711 (build_common_tree_nodes_2): Init boolean_{true,false}_node.
12712 * stor-layout.c (set_sizetype): Handle an early BOOLEAN_TYPE.
12713 * c-common.h (truthvalue_type_node): Renamed from boolean_type_node.
12714 (truthvalue_true_node): Renamed from boolean_true_node.
12715 (truthvalue_false_node): Renamed from boolean_false_node.
12716 * c-decl.c: Just set truthvalue_* to integer_*.
12717 * c-*.[ch]: s/boolean/truthvalue/. s/c_bool/boolean/.
12719 2003-07-24 Roger Sayle <roger@eyesopen.com>
12721 * c-decl.c (match_builtin_function_types): New subroutine of
12722 duplicate_decls to test whether a redeclaration of a builtin
12723 function is suitably close, i.e. the return type and all of
12724 the argument types have the same modes as the builtin expects.
12725 (duplicate_decls): Fuzzy type matching for builtin functions
12726 moved to match_builtin_function_types.
12728 2003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12730 * cfgloopmanip.c (duplicate_loop_to_header_edge): Update irreducible
12733 2003-07-24 Zack Weinberg <zack@codesourcery.com>
12735 * c-decl.c: Search-and-replace change 'binding level' to
12736 'scope' in commentary.
12737 (struct binding_level): Now struct c_scope.
12738 (current_binding_level): Now current_scope.
12739 (free_binding_level): Now scope_freelist.
12740 (current_function_level): Now current_function_scope.
12741 (global_binding_level): Now global_scope.
12742 (make_binding_level): Now make_scope.
12743 (pop_binding_level): Now pop_scope.
12745 2003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12747 * configure.in (libgcc_visibility): Add missing whitespace.
12749 2003-07-24 Richard Henderson <rth@redhat.com>
12751 * libgcc-std.ver (GCC_3.3.1): Export __gcc_personality_sj0,
12752 __gcc_personality_v0.
12754 2003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12756 * Makefile.in: Replace pwd by ${PWD_COMMAND}.
12758 2003-07-24 Nathan Sidwell <nathan@codesourcery.com>
12760 * doc/invoke.texi (-fprofile-arcs, -ftest-coverage): Update
12761 documentation missed from my 2003-07-09 patch.
12763 2003-07-24 Nathanael Nerode <neroden@gcc.gnu.org>
12765 * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Set patch level to 0 if
12767 * configure: Rebuild.
12769 2003-07-24 Steven Bosscher <steven@gcc.gnu.org>
12772 * c-typeck.c (type_lists_compatible_p): Do not compare
12773 arguments if one of them is an error_mark_node
12775 2003-07-24 Alan Modra <amodra@bigpond.net.au>
12777 * config/rs6000/rs6000.c (rs6000_emit_prologue): Save fp regs inline
12778 if current_function_calls_eh_return.
12780 2003-07-23 Mark Mitchell <mark@codesourcery.com>
12782 * doc/c-tree.texi (OFFSET_TYPE): Update description.
12784 2003-07-23 Bob Wilson <bob.wilson@acm.org>
12786 * config/xtensa/crti.asm (_init, _fini): Increase frame size to 64.
12787 * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
12788 __umodsi3, __modsi3): Increase frame size to 32.
12790 2003-07-23 Geoffrey Keating <geoffk@apple.com>
12792 * config/rs6000/host-darwin.c: ANSIfy, update comment for sigaltstack
12795 2003-07-23 Mark Mitchell <mark@codesourcery.com>
12797 * doc/c-tree.texi (Types): Update documentation for OFFSET_TYPE.
12799 PR optimization/10679
12800 * tree-inline.c (inlinable_function_p): Honor MIN_INLINE_INSNS.
12802 2003-07-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12804 PR target/11607 and PR target/11516
12805 * pa.md (extzv, extv, insv): Revert latter half of last patch.
12807 2003-07-22 Mark Mitchell <mark@codesourcery.com>
12809 * fold-const.c (force_fit_type): Handle OFFSET_TYPE.
12810 * varasam.c (output_constant): Likewise.
12812 2003-07-22 Kazu Hirata <kazu@cs.umass.edu>
12814 * alias.c: Fix comment formatting.
12815 * c-common.c: Likewise.
12816 * c-decl.c: Likewise.
12817 * c-opts.c: Likewise.
12818 * combine.c: Likewise.
12819 * cpplib.c: Likewise.
12820 * diagnostic.c: Likewise.
12821 * dojump.c: Likewise.
12822 * final.c: Likewise.
12823 * fold-const.c: Likewise.
12825 * gcse.c: Likewise.
12826 * ggc-page.c: Likewise.
12827 * jump.c: Likewise.
12828 * loop.c: Likewise.
12829 * mips-tfile.c: Likewise.
12830 * recog.c: Likewise.
12831 * regclass.c: Likewise.
12832 * regmove.c: Likewise.
12833 * tree.c: Likewise.
12834 * tree.h: Likewise.
12836 2003-07-22 Per Bothner <pbothner@apple.com>
12838 * line-map.c (add_line_map): Handle invalid LEAVE request.
12839 Fixes PR preprocessor/11361.
12841 2003-07-22 Per Bothner <pbothner@apple.com>
12843 * diagnostic.c.(diagnostic_report_current_module): Update to match
12844 2003-06-05 changes to push_srcloc and pop_srcloc.
12846 2003-07-22 Wolfgang Bangerth <bangerth@dealii.org>
12848 * doc/trouble.texi: Better document two-stage name lookup.
12850 2003-07-22 Eric Christopher <echristo@redhat.com>
12852 * config/s390.c (s390_valid_pointer_mode): New.
12853 (TARGET_VALID_POINTER_MODE): Use.
12854 (s390_emit_prologue): Add tpf profiling hooks.
12855 (s390_emit_epilogue): Ditto.
12856 * config/s390.h (MASK_TPF): New.
12858 (POINTERS_EXTEND_UNSIGNED): Define.
12859 * config/s390.md (ptr_extend): New pattern.
12861 2003-07-22 Zack Weinberg <zack@codesourcery.com>
12863 * hashtable.c (approx_sqrt): Make static.
12864 * hashtable.h: Don't prototype approx_sqrt.
12865 * line-map.c (init_line_maps): Rename linemap_init.
12866 (free_line_maps): Rename linemap_free.
12867 (add_line_map): Rename linemap_add.
12868 (lookup_line): Rename linemap_lookup.
12869 (print_containing_files): Rename linemap_print_containing_files.
12870 * linemap.h: Update to match.
12872 * cpperror.c, cppinit.c, cpplib.c, cppmacro.c: Update calls to
12873 linemap routines to use new names.
12875 2003-07-16 Nathan Sidwell <nathan@codesourcery.com>
12877 * c-common.c (handle_packed_attribute): Don't pack a struct via a
12878 typedef. Propagate packedness from a main variant.
12880 2003-07-22 Nathanael Nerode <neroden@gcc.gnu.org>
12882 * Makefile.in (install-common): Add dependency on installdirs.
12884 2003-07-21 Alexandre Oliva <aoliva@redhat.com>
12886 * c-common.c (c_common_type_for_mode): Return integer types for
12889 2003-07-22 Geoffrey Keating <geoffk@apple.com>
12891 * c-decl.c (start_decl): Don't call maybe_apply_pragma_weak here.
12892 (finish_decl): Call maybe_apply_pragma_weak here.
12893 (grokdeclarator): Check that DECL_ASSEMBLER_NAME isn't set before
12894 TREE_PUBLIC and TREE_STATIC are decided.
12895 (start_function): Move call to maybe_apply_pragma_weak. Check that
12896 DECL_ASSEMBLER_NAME isn't set too early.
12898 * cpplex.c (_cpp_process_line_notes): Mention option name in
12901 2003-07-22 Kazu Hirata <kazu@cs.umass.edu>
12903 * combine.c (if_then_else_cond): Simplify the comparison of
12904 rtx against -1, 0, and 1.
12905 * loop.c (check_dbra_loop): Likewise.
12906 * optabs.c (emit_conditional_move): Likewise.
12907 (emit_conditional_add): Likewise.
12908 * config/i386/i386.md (*movsi_or): Likewise.
12909 (*movdi_or_rex6): Likewise.
12911 2003-07-22 Jan Hubicka <jh@suse.cz>
12913 * cgraphunit.c (cgraph_finalize_compilation_unit): Remove redundant if.
12915 2003-07-21 Neil Booth <neil@daikokuya.co.uk>
12917 * cppfiles.c (open_file_pch): Don't put unused entries in the
12918 splay tree. Remove dead code.
12920 2003-07-21 Geoffrey Keating <geoffk@apple.com>
12922 * c-common.h (num_in_fnames): Declare.
12923 (c_static_assembler_name): Move from here...
12924 * c-tree.h (c_static_assembler_name): ... to here.
12925 * c-opts.c: Don't include langhooks-def.h.
12926 (c_static_assembler_name): Move to c-decl.c.
12927 (num_in_fnames): Make externally visible.
12928 * c-decl.c: Include langhooks-def.h.
12929 (c_static_assembler_name): Move from c-opts.c.
12930 * Makefile.in (c-decl.o): Add $(LANGHOOKS_DEF_H).
12931 (c-opts.o): Remove $(LANGHOOKS_DEF_H).
12933 * c-pragma.c (maybe_apply_pragma_weak): Don't get DECL_ASSEMBLER_NAME
12934 when it's not needed.
12936 2003-07-21 Jakub Jelinek <jakub@redhat.com>
12938 * config/rs6000/rs6000.h (machine_function): Add ra_need_lr.
12939 * config/rs6000/rs6000.c (rs6000_return_addr): Set it.
12940 (rs6000_emit_prologue): Save FPRs inline if set.
12942 2003-07-21 H.J. Lu <hongjiu.lu@intel.com>
12944 * config/ia64/ia64.md (prefetch): Support predicate.
12946 2003-07-21 Josef Zlomek <zlomekj@suse.cz>
12948 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Use tablejump_p.
12949 * rtlanal.c (tablejump_p): Use next_active_insn for finding the jump
12952 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
12954 PR optimization/11536
12955 * unroll.c (loop_iterations): Do not replace a register holding
12956 the final value by its equivalent before the loop if it is not
12959 2003-07-21 Dave Fluri <dave.fluri@onlink.net>
12961 * doc/extend.texi: Fixes to spelling, grammar, and diction.
12963 2003-07-21 Ben Elliston <bje@wasabisystems.com>
12965 * doc/invoke.texi (Optimize Options): Replace "it's" with "its".
12966 (V850 Options): Spelling fixes.
12968 2003-07-20 Lisa M. Goldstein <opus@gnu.org>
12970 * doc/invoke.texi: Fixes to style, grammar and diction.
12972 2003-07-20 Roger Sayle <roger@eyesopen.com>
12974 * builtins.def (BUILT_IN_ALLOCA): Remove "#if SMALL_STACK" form.
12975 * system.h (SMALL_STACK): Poison obsolete target macro.
12976 * doc/tm.texi (SMALL_STACK): Remove target macro documentation.
12978 2003-07-20 Phil Edwards <pme@gcc.gnu.org>
12980 * configure.in: Cache the results of testing for cmp's capabilities.
12981 * configure: Regenerate.
12983 2003-07-20 Mark Mitchell <mark@codesourcery.com>
12986 * dwarf2out.c (gen_enumeration_type_die): Remember that
12987 enumerators can be unsigned.
12989 2003-07-19 Zack Weinberg <zack@codesourcery.com>
12991 * c-decl.c (named_labels, shadowed_labels, label_level_chain)
12992 (push_label_level, pop_label_level): Kill.
12993 (struct binding_level): Rename level_chain to outer.
12994 Add outer_function field. Change parm_flag, function_body,
12995 keep, keep_if_subblocks to 1-bit bitfields of type bool.
12996 (current_function_level): New variable.
12997 (keep_next_level_flag, keep_next_if_subblocks): Change type to bool.
12998 (keep_next_level, declare_parm_level, warn_if_shadowing):
13000 (struct language_function): Kill named_labels, shadowed_labels fields.
13001 (c_init_decl_processing, start_function, c_push__function_context)
13002 (c_pop_function_context): No need to muck with named_labels nor
13005 (make_binding_level): No need to clear the structure here.
13006 (pop_binding_level): Always operate on current_binding_level.
13007 Update current_function_level if necessary.
13008 (pushlevel): Don't clear named_labels. Update current_function_level
13009 if necessary. Use "true" and "false" where appropriate.
13010 (poplevel): Diagnose labels defined but not used, or vice
13011 versa, and clear out label-meanings leaving scope, while
13012 walking down the decls list, for all binding levels.
13013 Handle LABEL_DECLs appearing in the shadowed list.
13014 pop_binding_level takes no arguments.
13015 (pushdecl_function_level): Use current_function_level.
13017 (make_label, bind_label): New static functions.
13018 (declare_label): New exported function.
13019 (lookup_label, define_label): Rewritten for new data structure.
13020 (shadow_label): Kill.
13022 * c-tree.h: Prototype declare_label; don't prototype
13023 push_label_level, pop_label_level, nor shadow_label.
13024 * c-parse.in: Remove all calls to push_label_level and
13025 pop_label_level. Use declare_label for __label__ decls.
13027 * doc/extend.texi: Clarify that __label__ can be used to
13028 declare labels with local scope in any nested block, not
13029 just statement expressions. Cross-reference nested functions
13030 section from local labels section.
13032 2003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
13034 * sched-rgn.c (find_rgns): Initialize current_edge correctly.
13036 2003-07-19 Phil Edwards <pme@gcc.gnu.org>
13038 * doc/makefile.texi (restrap, profiledbootstrap): Document targets.
13040 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13042 * fixinc/fixfixes.c fixinc/fixincl.c fixinc/fixlib.c
13043 fixinc/server.c objc/objc-act.c: Remove unnecessary casts.
13045 2003-07-19 Ulrich Weigand <uweigand@de.ibm.com>
13047 * config/s390/s390.c (legitimize_pic_address): Access local symbols
13048 relative to the GOT instead of relative to the literal pool base.
13049 (s390_output_symbolic_const): Handle new GOT-relative accesses.
13050 * config/s390/s390.md ("call"): Access local functions and PLT stubs
13051 relative to the GOT instead of relative to the literal pool base.
13052 ("call_value"): Likewise.
13053 ("call_value_tls"): Likewise.
13055 * config/s390/s390.c (s390_chunkify_start): Remove pool anchor
13056 reloading. Support LTREL_BASE / LTREL_OFFSET construct.
13057 (s390_chunkify_finish): Likewise.
13058 (s390_chunkify_cancel): Likewise.
13059 (s390_reorg): Adapt caller.
13060 (find_base_register_in_addr,
13061 find_base_register_ref, replace_base_register_ref): Delete.
13062 (find_ltrel_base, replace_ltrel_base): New functions.
13063 (find_constant_pool_ref): Handle LTREL_BASE unspecs.
13064 (s390_decompose_address): Handle LTREL_BASE unspecs. Optimize
13065 base vs. index register usage.
13066 (struct constant_pool): Remove 'anchor'.
13067 (s390_add_anchor): Delete.
13068 (s390_dump_pool): Remove anchor handling.
13069 * config/s390/s390.md ("reload_anchor"): Remove.
13071 * config/s390/s390.c (s390_split_branches): Use LTREL_BASE/OFFSET.
13072 (s390_load_got): New function. Use LTREL_BASE/OFFSET.
13073 (s390_emit_prologue): Use it.
13074 * config/s390/s390.md ("builtin_longjmp", "builtin_setjmp_setup",
13075 "builtin_setjmp_receiver"): Cleanup. Use s390_load_got. Do not
13076 hard-code register 14.
13077 * config/s390/s390-protos.h (s390_load_got): Declare.
13079 * config/s390/s390.c (NR_C_MODES, constant_modes, gen_consttable):
13080 Support TImode constants.
13081 * config/s390/s390.md ("consttable_ti"): New.
13082 ("consttable_si", "consttable_di"): Handle TLS symbols correctly.
13084 * config/s390/s390.md (UNSPEC_LTREL_OFFSET, UNSPEC_LTREL_BASE,
13085 UNSPEC_GOTENT, UNSPEC_GOT, UNSPEC_GOTOFF, UNSPEC_PLT, UNSPEC_PLTOFF,
13086 UNSPEC_RELOAD_BASE, UNSPECV_POOL, UNSPECV_POOL_START, UNSPECV_POOL_END,
13087 UNSPECV_POOL_QI, UNSPECV_POOL_HI, UNSPECV_POOL_SI, UNSPECV_POOL_DI,
13088 UNSPECV_POOL_TI, UNSPECV_POOL_SF, UNSPECV_POOL_DF, UNSPECV_MAIN_POOL):
13089 New symbolic constants.
13090 ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
13091 "consttable_sf", "consttable_df", "pool_start_31", "pool_end_31",
13092 "pool_start_64", "pool_end_64", "reload_base_31", "reload_base_64",
13093 "pool", "literal_pool_31", "literal_pool_64"): Cleanup. Use
13094 symbolic UNSPEC values.
13095 * config/s390/s390.c (larl_operand, s390_short_displacement,
13096 bras_sym_operand, s390_cannot_force_const_mem,
13097 s390_delegitimize_address, s390_decompose_address,
13098 legitimize_pic_address, s390_output_symbolic_const,
13099 s390_function_profiler): Use symbolic UNSPEC values.
13101 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13103 * alias.c alloc-pool.c bitmap.c bitmap.h bt-load.c builtins.c
13104 c-common.c c-decl.c c-incpath.c c-lex.c c-opts.c c-parse.in
13105 c-pragma.c c-typeck.c calls.c cfg.c cfganal.c cfgloop.c cfgrtl.c
13106 collect2.c combine.c conflict.c coverage.c cppexp.c cppfiles.c
13107 cpphash.c cppinit.c cpplex.c cpplib.c cppmacro.c cppspec.c
13108 cpptrad.c cse.c cselib.c dbxout.c defaults.h df.c dominance.c
13109 dwarf2out.c dwarfout.c emit-rtl.c except.c expmed.c expr.c final.c
13110 fix-header.c flow.c fold-const.c function.c gcc.c gccspec.c gcov.c
13111 gcse.c genattr.c genattrtab.c genautomata.c genconditions.c
13112 genemit.c genextract.c genoutput.c genrecog.c gensupport.c
13113 ggc-page.c ggc-simple.c global.c graph.c haifa-sched.c hashtable.c
13114 integrate.c jump.c langhooks.c lcm.c line-map.c local-alloc.c
13115 loop.c mips-tdump.c mips-tfile.c mkdeps.c optabs.c params.c
13116 postreload.c prefix.c print-tree.c protoize.c ra-build.c
13117 ra-colorize.c ra-rewrite.c ra.c recog.c reg-stack.c regclass.c
13118 regmove.c regrename.c reload.c reload1.c reorg.c resource.c
13119 sbitmap.c sched-deps.c sched-rgn.c sched-vis.c sdbout.c
13120 simplify-rtx.c ssa-ccp.c ssa.c stmt.c stor-layout.c timevar.c
13121 tlink.c toplev.c tree-dump.c tree.c unroll.c unwind-dw2-fde.c
13122 varasm.c varray.c vmsdbgout.c xcoffout.c: Remove unnecessary
13125 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
13127 * c-pragma.c (apply_pragma_weak): Don't use warning_with_decl.
13128 * toplev.h (warning): Remove attribute.
13130 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
13132 * c-decl.c (c_finish_incomplete_decl): Don't use xxx_with_decl.
13133 (pop_label_level): Likewise.
13134 (duplicate_decls): Likewise.
13135 (implicitly_declare): Likewise.
13136 (shadow_label): Likewise.
13137 (start_decl): Likewise.
13138 (finish_decl): Likewise.
13139 (grokdeclarator): Likewise.
13140 (get_parm_info): Likewise.
13141 (detect_field_duplicates): Likewise.
13142 (finish_struct): Likewise.
13143 (start_function): Likewise.
13144 (store_parm_decls): Likewise.
13145 (finish_function): Likewise.
13146 (c_expand_body_1): Likewise.
13147 (check_for_loop_decls): Likewise.
13148 (merge_translation_unit_decls): Likewise.
13150 2003-07-19 Neil Booth <neil@daikokuya.co.uk>
13152 * common.opt: Document --param.
13153 * opts.c (columns, undocumented_msg): New.
13154 (print_help): Get number of columns from environment. Print
13155 --param help. Tweak newline handling.
13156 (print_param_help): New.
13157 (print_filtered_help): Better handling of duplicates. Complain
13158 about undocumented switches.
13159 (print_switch): New.
13160 (wrap_help): Improve wrapping, use COLUMNS.
13161 * opts.sh: Ignore comments in records.
13162 * params.def: Fix typos and remove trailing periods.
13163 * toplev.c (display_help): Don't dump --param help.
13164 * doc/sourcebuild.texi: Update.
13166 2003-07-18 Richard Henderson <rth@redhat.com>
13169 * optabs.c (prepare_operand): Fail gracefully instead of abort
13170 if the predicate doesn't satisfy.
13171 (gen_cond_trap): Allow prepare_operand to fail.
13173 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
13175 * c-common.c: Don't undefine GCC_DIAG_STYLE.
13176 (fname_decl): Don't use xxx_with_decl.
13177 (c_add_case_label): Likewise.
13178 (handle_section_attribute): Likewise.
13179 (handle_alias_attribute): Likewise.
13180 (handle_no_instrument_function_attribute): Likewise.
13181 (handle_no_limit_stack_attribute): Likewise.
13182 * c-objc-common.c (c_tree_printer): Print IDENTIFIER_NODEs.
13183 * c-format.c (gcc_cdiag_char_table): Add '%E' format-specifier.
13185 2003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
13187 * Makefile.in (ifcvt.o): Add cfgloop.h.
13188 * basic-block.h (EDGE_LOOP_EXIT): New flag.
13189 * cfgrtl.c (rtl_verify_flow_info_1): Handle it correctly.
13190 * ifcvt.c: Include cfgloop.h.
13191 (mark_loop_exit_edges): New static function.
13192 (if_convert): Call it.
13193 (find_if_header): Ignore branches out of loops.
13195 2003-07-18 Kazu Hirata <kazu@cs.umass.edu>
13197 * combine.c (simplify_comparison): Don't share rtx when converting
13198 (ne (and (not X) 1) 0) to (eq (and X 1) 0).
13200 2003-07-18 David Edelsohn <edelsohn@gnu.org>
13202 * config/rs6000/aix.h (AGGREGATE_PADDING_FIXED): Define.
13203 (AGGREGATES_PAD_UPWARD_ALWAYS): Define.
13204 (MUST_PASS_IN_STACK): Define.
13205 (BLOCK_REG_PADDING): Define.
13207 2003-07-18 Richard Henderson <rth@redhat.com>
13209 * cfgrtl.c (force_nonfallthru_and_redirect): Use tablejump_p
13210 to skip the addr_vec.
13212 2003-07-18 Alexandre Oliva <aoliva@redhat.com>
13214 * combine.c (combinable_i3pat): Don't forbid occurrences of
13215 i2dest or i1dest in inner_dest if inner_dest is a mem.
13217 2003-07-18 Jan Hubicka <jh@suse.cz>
13219 * cgraph.c (cgraph_remove_node): Clear the hash table slot.
13221 2003-07-17 Jakub Jelinek <jakub@redhat.com>
13224 * loop.c (basic_induction_var): Check if convert_modes emitted any
13225 instructions. Remove them and return 0 if so.
13227 2003-07-18 Eric Botcazou <ebotcazou@libertysurf.fr>
13229 PR optimization/11083
13230 * toplev.c (rest_of_handle_addresof): Rename into
13231 rest_of_handle_addressof. Delete unreachable blocks
13232 if dead edges were purged after the addressof pass.
13234 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
13236 * Makefile.in, configure, configure.in: Remove handling of
13237 lang-options.h and options_.h.
13238 * toplev.c (struct lang_opt, documented_lang_options): Remove.
13239 (display_help): Don't use documented_lang_options.
13241 2003-07-17 Zack Weinberg <zack@codesourcery.com>
13243 * c-decl.c (pushdecl_function_level): Make static, return nothing.
13244 (kept_level_p): Fold into poplevel.
13245 (undeclared_variable): Moved here from c-typeck.c. Export.
13246 * c-tree.h (KEEP_YES, KEEP_NO, KEEP_MAYBE): New #defines.
13247 (undeclared_variable): Prototype here. Don't prototype
13248 kept_level_p nor pushdecl_function_level.
13249 * c-parse.in: Change first argument to poplevel from
13250 "kept_level_p()" to "KEEP_MAYBE".
13251 * c-typeck.c (undeclared_variable): Moved to c-decl.c.
13253 2003-07-17 Roger Sayle <roger@eyesopen.com>
13255 * simplify-rtx.c (simplify_rtx): Use simplify_gen_binary to swap
13256 commutative operands instead of modifying the RTL in-place.
13258 2003-07-17 Mark Mitchell <mark@codesourcery.com>
13260 PR optimization/11557
13261 * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK
13262 unless we know which function is being called.
13264 2003-07-17 Roger Sayle <roger@eyesopen.com>
13266 * cse.c (fold_rtx): Use swap_commutative_operands_p to determine
13267 whether to reorder the operands of a commutative binary operator.
13269 2003-07-17 Roger Sayle <roger@eyesopen.com>
13271 * fold-const.c (const_binop): Avoid performing the FP operation at
13272 compile-time, if either operand is NaN and we honor signaling NaNs,
13273 or if we're dividing by zero and either flag_trapping_math is set
13274 or the desired mode doesn't support infinities.
13275 (fold_initializer): New function to fold an expression ignoring any
13276 potential run-time exceptions or traps.
13277 * tree.h (fold_initializer): Prototype here.
13278 * c-typeck.c (build_binary_op): Move to the end of the file so
13279 that intializer_stack is in scope. If constructing an initializer,
13280 i.e. when initializer_stack is not NULL, use fold_initializer to
13282 * simplify-rtx.c (simplify_binary_operation): Likewise, avoid
13283 performing FP operations at compile-time, if they would raise an
13284 exception at run-time.
13286 2003-07-17 Geoffrey Keating <geoffk@apple.com>
13289 * Makefile.in (c-opts.o): Add $(LANGHOOKS_DEF_H).
13290 (langhooks.o): Add $(GGC_H), gt-langhooks.h.
13291 (GTFILES): Add langhooks.c.
13292 (gt-langhooks.h): New.
13293 * c-common.h (c_static_assembler_name): Prototype.
13294 * c-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
13295 * objc/objc-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
13296 * c-opts.c: Include langhooks-def.h.
13297 (c_static_assembler_name): New.
13298 * langhooks.c: Include ggc.h. Include gt-langhooks.h.
13299 (var_labelno): New.
13300 (lhd_set_decl_assembler_name): Give static objects with context
13302 * varasm.c (var_labelno): Delete.
13303 (make_decl_rtl): Don't change the assembler name once it's set.
13305 * c-opts.c (this_input_filename): New.
13306 (finish_options): Take new parameter, name of file being compiled.
13307 Update callers. Set this_input_filename.
13308 (push_command_line_include): Use this_input_filename not
13309 main_input_filename.
13311 2003-07-17 Neil Booth <neil@daikokuya.co.uk>
13313 * Makefile.in: Depend .pot generation on options.c.
13314 * po/exgettext: Add an extra_files variable containing additional
13317 2003-07-17 Zack Weinberg <zack@codesourcery.com>
13319 * objc/objc-lang.c: Override LANG_HOOKS_WRITE_GLOBALS to
13320 c_write_global_declarations.
13322 * c-decl.c: Fix typos in several comments. Remove all
13323 #if 0 blocks; reindent as needed. Remove unused argument
13324 to declare_parm_level; all callers changed.
13325 * c-parse.in: Update calls to declare_parm_level. Avoid
13326 issuing a double warning in some circumstances.
13327 * c-typeck.c: Update calls to declare_parm_level.
13328 * c-tree.h: Update prototype of declare_parm_level.
13330 * c-pragma.c (apply_pragma_weak): Don't complain about a
13331 redundant #pragma weak.
13333 * objc/objc-act.c (forward_declare_categories,
13334 build_selector_reference_decl, build_class_reference_decl,
13335 build_objc_string_decl, synth_forward_declarations,
13336 build_protocol_reference): Set TREE_PUBLIC on synthetic
13337 forward decl to 0, consistent with eventual definition.
13338 Correct comments to match.
13340 * fixinc/inclhack.def (solaris_mutex_init_2): Escape braces
13341 in regexp that don't form a range expression.
13342 * fixinc/fixincl.def: Regenerate.
13344 2003-07-17 Richard Henderson <rth@redhat.com>
13347 * config/ia64/ia64.c (ia64_epilogue_uses): GP is live at end
13348 even with !TARGET_CONST_GP.
13349 (ia64_function_ok_for_sibcall): Reject non-local functions.
13351 2003-07-17 Steven Bosscher <steven@gcc.gnu.org>
13353 * c-common.c (c_estimate_num_insns_1): Don't handle
13355 * expr.c (safe_from_p): Likewise.
13356 * gengtype.c (adjust_field_tree_exp): Likewise.
13357 * stmt.c (warn_if_unused_value): Likewise
13358 * tree.c (first_rtl_op): Likewise.
13359 * tree.def: Don't define METHOD_CALL_EXPR.
13360 * java/lang.c (java_estimate_num_insns_1): Don't handle
13363 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
13366 * doc/invoke.texi (SPARC Options): Document "-mlittle-endian"
13367 and its restrictions for the SPARC64 port.
13368 Move the entry of "-mimpure-text" before that of "-mv8".
13370 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
13371 Phil Edwards <phil@jaj.com>
13373 * doc/install.texi (*-*-solaris2*): Document the step-by-step
13374 procedure to bootstrap and install.
13375 Document the preference for the legacy Sun tools in /usr/bin
13376 over the POSIX tools in /usr/xpg4/bin for the build process.
13378 2003-07-17 Neil Booth <neil@daikokuya.co.uk>
13380 * c.opt: Document Uncodumented; use it. Document ObjC options.
13381 * opts.c (print_filtered_help): Skip undocumented switches.
13382 * opts.h (CL_UNDOCUMENTED): New.
13383 * opts.sh: Handle Undocumented.
13384 * toplev.c (documented_lang_options): Prevent its becoming empty.
13386 * lang-options.h: Remove.
13388 2003-07-16 Ulrich Weigand <uweigand@de.ibm.com>
13390 * loop.c (check_ext_dependent_givs): Pass const struct loop *
13391 instead of struct loop_info * as argument. Accept BIVs with
13392 increment +/- 1 provided there is a friendly exit test against
13393 a loop-invariant value.
13394 (strength_reduce): Adapt call to check_ext_dependent_givs.
13396 2003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
13397 Con Bradley <con.bradley@superh.com>
13399 * sh-protos.h (sh_get_pr_initial_val): Declare.
13400 * sh.c (regno_reg_class): Make its elements type enum reg_class.
13401 (output_stack_adjust): Remove emit_fn argument. Add epilogue_p
13402 and live_regs_mask arguments. Changed all callers.
13403 (save_schedule_s): New structure.
13404 (save_schedule): New typedef.
13405 (scavenge_reg, sh5_schedule_saves, sh5_schedule_saves): New functions.
13406 (calc_live_regs): For TARGET_SHMEDIA, use leaf_function_p.
13407 In interrupts handlers, also save registers that are usually
13408 partially saved, and make sure there is at least one general purpose
13409 register saved if a target register needs saving.
13410 Add casts in comparisons to avoid warnings.
13411 (sh_media_register_for_return): return -1 for interrupt handlers.
13412 (MAX_SAVED_REGS, MAX_TEMPS): New defines.
13413 (sh_expand_prologue): Use sh5_schedule_saves. Check that any temp
13414 registers used are available.
13415 Set RTX_FRAME_RELATED_P where appropriate.
13416 Add an REG_FRAME_RELATED_EXPR for r0 + offset addressing.
13417 (sh_expand_epilogue, sh_set_return_address): Use sh5_schedule_saves.
13418 (initial_elimination_offset): Likewise.
13419 * sh.h (DWARF_CIE_DATA_ALIGNMENT): Set to -4.
13420 (LOCAL_ALIGNMENT, GENERAL_REGISTER_P): Add casts to avoid warnings.
13421 (FP_REGISTER_P): Add casts to fix broken handling of unsigned REGNO.
13422 (XD_REGISTER_P, TARGET_REGISTER_P): Likewise.
13423 (HARD_REGNO_CALL_PART_CLOBBERED): Also yield nonzero for r15,
13424 and for target registers.
13425 (RETURN_IN_MEMORY): Add parentheses to avoid warnings.
13426 (regno_reg_class): Make its elements type enum reg_class.
13427 (CONSTRAINT_LEN): Don't use isdigit.
13428 (FUNCTION_ARG_REGNO_P): Add casts to avoid warnings.
13429 (FUNCTION_ARG): Add parentheses to avoid warnings.
13430 (RETURN_ADDR_RTX): Use sh_get_pr_initial_val.
13431 (RETURN_ADDR_OFFSET): Define to -1 for TARGET_SH5.
13432 (SH_DBX_REGISTER_NUMBER): Add casts to avoid warnings.
13433 (EH_RETURN_DATA_REGNO): Use unsigned constants to avoid warnings.
13434 * sh.md (xordi3+1): Remove unused variable regno.
13435 (return_media): Check that tr0 is available before using it.
13437 2003-07-16 Neil Booth <neil@daikokuya.co.uk>
13439 * c.opt: Document more options.
13441 2003-07-16 Roger Sayle <roger@eyesopen.com>
13443 * combine.c (subst): Also handle (subreg (const_double ...)) case
13444 if created by a substitution, by using the original inner mode.
13446 2003-07-16 Roger Sayle <roger@eyesopen.com>
13448 * simplify-rtx.c (simplify_replace_rtx): Convert constant comparisons
13449 to MODE_FLOAT constants if FLOAT_STORE_FLAG_VALUE is defined.
13450 (simplify_rtx): Likewise. Simplify (lo_sum (high X) X) as X.
13452 2003-07-16 Andrew Pinski <pinskia@physics.uc.edu>
13454 * doc/install.texi (--without-headers): New.
13456 Partial Fix PR/10129
13457 * config/darwin.c (machopic_function_base_name): Only Return "<pic base>".
13458 (machopic_output_function_base_name): New; print the true pic label.
13459 (machopic_classify_ident): Pic Base is always a defined data.
13460 * config/darwin.h (ASM_OUTPUT_LABELREF): Support the pic base label.
13461 * config/darwin-proto.h (machopic_output_function_base_name): Prototype.
13463 * gcse.c (gcse_constant_p): COMPARE of the same registers is a constant
13464 if they are not floating point registers.
13467 * ggc.h: Add header guards.
13468 * c-decl.c (finish_struct): Sort fields if
13469 number greater than 15 and there are no
13470 anonymous structs/unions.
13471 * c-common.h: Include ggc.h.
13472 (sorted_fields_type): New struct.
13473 (field_decl_cmp): New prototype.
13474 (resort_sorted_fields): New prototype.
13475 (DECL_DECLARES_TYPE_NON_TEMPLATE_P): New macro.
13476 * c-tree.h: (lang_type): Use pointer to sorted_fields_type
13477 as s, removing other fields.
13478 * c-typeck.c (lookup_field): Use s in lang_type.
13479 These were mostly moved from cp/class.c:
13480 * c-common.c (field_decl_cmp): New static function.
13481 (field_decl_cmp): New function.
13482 (resort_sorted_fields): New function.
13484 2003-07-16 Geoffrey Keating <geoffk@apple.com>
13486 * config/darwin.c (machopic_select_section): Use decl_readonly_section
13487 to do most of the work.
13489 2003-07-16 Hans-Peter Nilsson <hp@bitrange.com>
13491 * config/mmix/mmix-protos.h: Convert prototypes to ISO C90.
13492 * config/mmix/mmix.c: Convert functions to ISO C90.
13493 (mmix_eh_return_handler_rtx, mmix_output_shifted_value): Tweak
13495 (mmix_get_hard_reg_initial_val): Tweak section head comment.
13497 2003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
13499 * c-pragma.h (HANDLE_PRAGMA_WEAK): Always define to SUPPORTS_WEAK.
13501 2003-07-16 Jakub Jelinek <jakub@redhat.com>
13503 * unwind-dw2.c (MD_FROB_UPDATE_CONTEXT): Define.
13504 (uw_update_context_1): Use it.
13505 * config/rs6000/rs6000.c (insn_after_throw): Remove.
13506 (rs6000_aix_emit_builtin_unwind_init): Save $r2 to its location
13507 in parent frame if _Unwind_* called directly instead of through
13509 (rs6000_emit_eh_toc_restore): Remove.
13510 (rs6000_emit_prologue): Update stack pointer before doing any saving
13511 if current_function_calls_eh_return. Generate unwind info for $r2.
13512 (rs6000_emit_epilogue): Restore stack pointer after doing all
13513 restoring if current_function_calls_eh_return. Restore $r2.
13514 * config/rs6000/rs6000-protos.h (rs6000_emit_eh_toc_restore): Remove.
13515 * config/rs6000/rs6000.md (eh_return): Remove call to
13516 rs6000_emit_eh_toc_restore.
13517 * config/rs6000/linux64.h (MD_FROB_UPDATE_CONTEXT): Define.
13518 * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Define.
13520 2003-07-15 Jakub Jelinek <jakub@redhat.com>
13522 * expr.c (emit_block_move): Don't move anything if size is const 0.
13523 (clear_storage): Test against const0_rtx instead of comparing INTVAL
13526 2003-07-15 David S. Miller <davem@redhat.com>
13528 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Only
13529 emit nop if the last real insn is CALL_INSN.
13531 2003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
13533 * config/i386/xm-mingw32.h (HOST_BIT_BUCKET): Define
13535 * config/i386/xm-mingw32.h: Change GNU CC to GCC.
13537 2003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
13539 * config/i386/winnt.c (associated_type): Artificial methods are not
13540 affected by the import/export status of their class unless they are
13542 (i386_pe_dllimport_p): Do not mark artificial methods as dllimport.
13544 * config/i386/winnt.c: Fix GCC copyright comment.
13546 2003-07-16 Gabriel Dos Reis <gcc@integrable-solutions.net>
13549 * diagnostic.c (diagnostic_report_diagnostic): Don't ICE if we're
13550 not recursing on hard error.
13551 (diagnostic_for_decl): Likewise.
13552 * diagnostic.def: Rearrange.
13554 2003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
13556 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
13557 If DWARF_FRAME_RETURN_COLUMN doesn't have a register mode, use Pmode.
13559 2003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
13560 Richard Henderson <rth@redhat.com>
13562 * unwind-dw2.c (_Unwind_GetGR): Use dwarf_reg_size_table
13563 to decide if to access a _Unwind_Ptr or a _Unwind_Word.
13564 (_Unwind_SetGR): Likewise.
13565 (_Unwind_GetPtr, _Unwind_SetSpColumn): New functions.
13566 (Unwind_SpTmp): New typedef.
13567 (uw_update_context_1): Use _Unwind_SetSpColumn and _Unwind_GetPtr.
13568 (uw_update_context): Use _Unwind_GetPtr.
13569 (init_dwarf_reg_size_table): Move above uw_init_context_1.
13570 (uw_init_context_1): Initialize dwarf_reg_size_table if necessary.
13571 Use _Unwind_SetSpColumn.
13572 (uw_install_context_1): Don't initialize dwarf_reg_size_table.
13573 Use _Unwind_GetPtr.
13575 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
13577 * c.opt: Document more options.
13578 * toplev.c (documented_lang_options): Remove all local help strings.
13580 2003-07-15 Mark Mitchell <mark@codesourcery.com>
13583 * dbxout.c (dbxout_type): Use TYPE_SIZE to determine the sizes of
13586 2003-07-15 Kazu Hirata <kazu@cs.umass.edu>
13589 * config/i386/i386.c (ix86_expand_carry_flag_compare): Don't
13590 swap comparison operands if doing so would generate an
13591 unrecognizable insn.
13593 2003-07-15 Eric Botcazou <ebotcazou@libertysurf.fr>
13595 PR optimization/11320
13596 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
13597 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
13598 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
13599 current_sched_info->compute_jump_reg_dependencies. Record which
13600 registers are used and which registers are set by the jump.
13601 Clear deps->reg_conditional_sets after a barrier.
13602 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
13603 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
13604 (init_deps): Initialize reg_conditional_sets.
13605 (free_deps): Clear reg_conditional_sets.
13606 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
13607 Mark registers live on entry of the fallthrough block and conditionally
13608 set as set by the jump. Mark registers live on entry of non-fallthrough
13609 blocks as used by the jump.
13610 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
13611 Mark new parameters as unused.
13613 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
13615 * doc/invoke.texi: Resync MIPS -march documentation.
13617 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
13619 * config/mips/mips.h (PROCESSOR_R9000): New processor_type.
13620 (TARGET_MIPS9000, TUNE_MIPS9000): New macros.
13621 (GENERATE_MULT3_SI): True for TARGET_MIPS9000.
13622 * config/mips/mips.c (mips_cpu_info_table): Add rm9000 entry.
13623 (mips_rtx_costs): Adjust integer multiplication costs for the rm9000.
13624 (mips_issue_rate): Handle PROCESSOR_R9000.
13625 (mips_use_dfa_pipeline_interface): Likewise.
13626 * config/mips/9000.md: New file.
13627 * config/mips/mips.md: Include it.
13628 (define_attr cpu): Add r9000.
13629 (mulsi3_mult3): Use "mul" for rm9000 code.
13631 2003-07-15 Stan Cox <scox@redhat.com>
13633 * config/mips/mips.h (PROCESSOR_R7000): New processor_type.
13634 (TARGET_MIPS7000, TUNE_MIPS7000): New macros.
13635 (GENERATE_MULT3_SI): True for TARGET_MIPS7000.
13636 * config/mips/mips.c (mips_cpu_info_table): Add rm7000 entry.
13637 (mips_rtx_costs): Adjust integer multiplication costs for the rm7000.
13638 (mips_issue_rate): Handle PROCESSOR_R7000.
13639 (mips_use_dfa_pipeline_interface): Likewise.
13640 * config/mips/7000.md: New file.
13641 * config/mips/mips.md: Include it.
13642 (define_attr cpu): Add r7000.
13643 (mulsi3_mult3): Use "mul" for rm7000 code.
13645 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
13647 * config/mips/mips.md (define_attr type): Add condmove. Use it for
13648 the conditional move patterns.
13649 * config/mips/5400.md (ir_vr54_move): Rename to ir_vr54_condmove.
13650 Check for condmove type.
13651 (ir_vr54_arith): Add move type.
13652 * config/mips/5500.md (ir_vr55_move, ir_vr55_arith): Likewise.
13653 * config/mips/sr71k.md (ir_sr70_move, ir_sr70_arith): Likewise.
13655 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
13657 * c-opts.c (print_help): Remove.
13658 (c_common_handle_option): Don't handle --help.
13659 * c.opt: Document some options.
13661 * opts.c (print_filtered_help): New.
13662 (print_help): Use it.
13664 2003-07-14 Geoffrey Keating <geoffk@apple.com>
13666 * c-common.c (c_common_type_for_mode): Handle V4DFmode.
13667 * tree.c: (build_common_tree_nodes_2): Likewise.
13668 * tree.h (enum tree_index): Add TI_V4DF_TYPE.
13669 (V4DF_type_node): New.
13671 * c-opts.c (push_command_line_include): Don't free deferred_opts,
13673 (finish_options): Reset init_cursor.
13675 2003-07-15 Kazu Hirata <kazu@cs.umass.edu>
13677 * expr.c (expand_assignment): Remove an unused argument
13679 * expr.h: Update the prototype.
13680 * function.c: Update the callers.
13681 * stmt.c: Likewise.
13683 2003-07-14 Mark Mitchell <mark@codesourcery.com>
13686 * integrate.c (copy_decl_for_inlining): Do not mark copied decls
13689 2003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
13691 * fixinc/inclhack.def (avoid_bool_define, avoid_bool_type): Bypass
13692 with __cplusplus, not "we must use the C++ compiler's type"
13693 * fixinc/inclhack.def (void_null): Note that Interix needs this.
13694 * fixinc/fixincl.x: Regenerate.
13696 2003-07-14 Geoffrey Keating <geoffk@apple.com>
13698 * unwind-dw2-fde-darwin.c (live_image_destructor): Get seen_objects
13699 and unseen_objects from the global data before calling
13700 __deregister_frame_info_bases.
13701 (examine_objects): Insert objects into the seen_objects list,
13702 not unseen_objects.
13703 (_Unwind_Find_FDE): Always unlock the global object lists, even if
13704 we couldn't allocate a data structure to put in it.
13706 * objc/objc-act.h (CLASS_SUPER_NAME): Add a little typechecking.
13707 (TYPE_PROTOCOL_LIST): Share use of type.context with C frontend.
13708 (SET_TYPE_PROTOCOL_LIST): New.
13709 * objc/objc-act.c (get_static_reference): Use SET_TYPE_PROTOCOL_LIST.
13710 (get_object_reference): Likewise.
13712 2003-07-14 Jan Hubicka <jh@suse.cz>
13714 * cfglayout.c (locator_file): Break out from ....
13715 (insn_file): ... here.
13716 (locator_line): Break out from ....
13717 (insn_line): ... here.
13718 * rtl.h (locator_file, locator_line): Declare.
13719 (final_start_function): Set proper line/file info.
13721 2003-07-14 Gabriel Dos Reis <gdr@integrable-solutions.net>
13723 * c-pretty-print.c (pp_c_unary_expression): A CONVERT_EXPR is
13724 handled by pp_c_cast_expression.
13726 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
13728 * config/mips/mips.c (mips_expand_prologue): Use a single insn to
13729 allocate 32768 bytes of stack. Use addition rather than subtraction
13730 when a single insn is enough.
13731 * config/mips/mips.md: Remove insns and splitters for subtracting
13733 (subsi3): Only accept register operands.
13734 (subsi3_internal): Likewise. Use for TARGET_MIPS16 as well.
13735 (subdi3_internal_3, subsi3_internal_2): Likewise.
13736 (casesi): Use expand_binop to subtract the lower bound.
13738 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
13740 * config/mips/mips.c (mips_in_small_data_p): Don't handle
13741 TARGET_MIPS16 specially.
13743 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
13745 * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Use
13746 mips_output_aligned_bss.
13747 * config/mips/linux.h: Likewise.
13748 * config/mips/mips-protos.h (mips_output_aligned_bss): Declare.
13749 * config/mips/mips.c (mips_output_aligned_bss): New function.
13751 * config/mips/elf.h (DBX_DEBUGGING_INFO): Delete.
13752 * config/mips/elf64.h: Likewise.
13754 * config/mips/elf.h (ASM_DECLARE_OBJECT_NAME): Use
13755 mips_declare_object_name.
13756 (ASM_FINISH_DECLARE_OBJECT): Likewise mips_finish_declare_object.
13757 * config/mips/elf64.h: As for elf.h.
13758 * config/mips/iris6.h: Likewise.
13759 * config/mips/linux.h (ASM_DECLARE_OBJECT_NAME): As for elf.h.
13760 * config/mips/mips.h (ASM_DECLARE_OBJECT_NAME): Remove unnecessary
13761 do...while (0) block.
13762 * config/mips/mips-protos.h (mips_declare_object_name): Declare.
13763 (mips_finish_declare_object): Declare.
13764 * config/mips/mips.c (mips_declare_object_name): New function.
13765 (mips_finish_declare_object): New function.
13767 * config/mips/elf.h (SBSS_SECTION_ASM_OP): Delete.
13768 * config/mips/linux.h: Likewise.
13770 * config/mips/mips.c (inside_function): Delete.
13771 (file_in_function_warning, ignore_line_number): Delete.
13772 (mips_output_filename): Don't warn about changing filenames within
13774 (mips_output_lineno): Update accordingly.
13775 (mips_output_function_prologue): Don't reset the deleted variables.
13776 * config/mips/mips.h (inside_function): Delete.
13777 (file_in_function_warning, ignore_line_number): Delete.
13779 * config/mips/elf.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Remove undefs.
13780 * config/mips/elf64.h: Likewise.
13781 * config/mips/openbsd.h: Likewise.
13782 * config/mips/iris5.h (OBJECT_FORMAT_COFF): Remove undefs.
13783 * config/mips/linux.h: Likewise.
13784 * config/mips/mips.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Delete.
13785 (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB, MIPS_UNMARK_STAB): Delete.
13787 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Add mips/sdb.h
13788 to the list of include files when using gas.
13789 (mips*el-*-openbsd*, mips*-*-openbsd*): Add mips/sdb.h unconditionally.
13790 * config/mips/elf.h: Remove #undef SDB_DEBUGGING_INFO.
13791 * config/mips/elf64.h: Likewise.
13792 * config/mips/iris5.h: Likewise.
13793 * config/mips/linux.h: Likewise.
13794 * config/mips/iris5gas.h (SDB_DEBUGGING_INFO): Remove definition.
13795 * config/mips/mips.h (PREFERRED_DEBUGGING_TYPE): Likewise.
13796 (SDB_DEBUGGING_INFO, sdb*, SDB_ALLOW_*, PUT_SDB*): Move to...
13797 * config/mips/sdb.h: ...this new file.
13799 2003-07-14 Douglas Rupp <rupp@gnat.com>
13801 * fixinc/server.c (server_setup): Don't use non-POSIX NULL first
13802 argument to getcwd; use fixed buffer instead.
13804 2003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
13806 * fixinc/mkfixinc.sh: Treat OpenBSD normally.
13807 * fixinc/fixinc.wrap: Delete.
13809 2003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
13811 * ggc-page.c (extra_order_size_table): Insns have 9 slots. Regs
13814 2003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
13816 * ggc-page.c (struct globals): Add new fields to keep track of the
13817 total allocated memory and overhead.
13818 (ggc_print_statistics): Print them.
13819 (ggc_alloc): Keep track of the total allocated memory and the
13822 * tree.c (dump_tree_statistics): Increase spacing.
13823 (enum tree_node_kind): Move to ...
13824 * tree.h (enum tree_node_kind): ... here.
13825 (tree_node_counts, tree_node_sizes): Declare.
13827 2003-07-14 James A. Morrison <ja2morri@student.math.uwaterloo.ca>
13829 * doc/include/texinfo.tex: Upgrade to texinfo 4.6.
13831 2003-07-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
13833 PR optimization/11440
13834 * gcse.c (try_replace_reg): Don't attach notes to ZERO_EXTRACT or
13837 2003-07-14 Alan Modra <amodra@bigpond.net.au>
13839 * doc/tm.texi (BLOCK_REG_PADDING): Describe.
13840 * expr.h (struct locate_and_pad_arg_data): Add where_pad.
13841 (emit_group_load, emit_group_store): Adjust declarations.
13842 Remove most occurrences of #ifdef TREE_CODE.
13843 * expr.c (emit_group_load): Add "type" param, and use
13844 BLOCK_REG_PADDING to determine need for a shift. Optimize non-
13845 aligned accesses if !SLOW_UNALIGNED_ACCESS.
13846 (emit_group_store): Likewise.
13847 (emit_push_insn, expand_assignment, store_expr, expand_expr): Adjust
13848 emit_group_load and emit_group_store calls.
13849 * calls.c (store_unaligned_arguments_into_pseudos): Tidy. Use
13850 BLOCK_REG_PADDING to determine whether we need endian_correction.
13851 (load_register_parameters): Localize vars. Handle shifting of
13852 small values to the correct end of regs. Adjust emit_group_load
13854 (expand_call, emit_library_call_value_1): Adjust emit_group_load
13855 and emit_group_store calls.
13856 * function.c (assign_parms): Set mem alignment for stack slots.
13857 Adjust emit_group_store call. Store values at the "wrong" end
13858 of regs to the stack. Use BLOCK_REG_PADDING.
13859 (locate_and_pad_parm): Save where_pad.
13860 (expand_function_end): Adjust emit_group_load call.
13861 * stmt.c (expand_value_return): Adjust emit_group_load call.
13862 * Makefile.in (calls.o): Depend on $(OPTABS_H).
13863 * config/rs6000/linux64.h (TARGET_LITTLE_ENDIAN): Redefine as 0.
13864 (AGGREGATE_PADDING_FIXED, AGGREGATES_PAD_UPWARD_ALWAYS): Define.
13865 (MUST_PASS_IN_STACK): Define.
13866 (BLOCK_REG_PADDING): Define.
13867 * config/rs6000/rs6000.h (struct rs6000_args): Remove orig_nargs.
13868 (PAD_VARARGS_DOWN): Define in terms of FUNCTION_ARG_PADDING.
13869 * config/rs6000/rs6000.c (init_cumulative_args): Don't set orig_nargs.
13870 (function_arg_padding): !AGGREGATE_PADDING_FIXED compatibility code.
13871 Act on AGGREGATES_PAD_UPWARD_ALWAYS.
13873 2003-07-13 Aaron W. LaFramboise <awlaframboise@aol.com>
13875 * config/i386/gthr-win32.c (__GTHREAD_HIDE_WIN32API): Define to 1.
13877 2003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13879 * expr.c (expand_expr, case COMPONENT_REF): If reg, copy OP0 to MEM
13880 both if OFFSET specified and if result BLKmode for ARRAY_RANGE_REF.
13882 2003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
13885 * toplev.c: Don't cut off option names.
13887 2003-07-13 Andreas Jaeger <aj@suse.de>
13889 * c-decl.c (link_hash_hash): Avoid warning about casting pointer
13890 to integer of different size.
13892 2003-07-13 Kazu Hirata <kazu@cs.umass.edu>
13894 * combine.c (simplify_comparison): Convert (ne (and (not X) 1) 0)
13895 to (eq (and X 1) 0).
13897 2003-07-13 Andreas Jaeger <aj@suse.de>
13899 * config.gcc: Add pmmintrin.h for x86_64-*-*.
13901 2003-07-13 Zack Weinberg <zack@codesourcery.com>
13903 * Makefile.in (LIBCPP_DEPS): Remove coretypes.h and $(TM_H).
13904 (hashtable.o, line-map.o, mkdeps.o): Likewise, from dependency
13905 list. Move these all together down by cpplib.
13907 * cpplib.h: Don't refer to MAX_WCHAR_TYPE_SIZE when determining
13908 definition of CPPCHAR_SIGNED_T.
13910 * cppcharset.c, cpperror.c, cppexp.c, cppfiles.c, cpphash.c, cppinit.c
13911 * cpplex.c, cpplib.c, cppmacro.c, cpppch.c, cpptrad.c, hashtable.c
13912 * line-map.c, mkdeps.c: Don't include coretypes.h or tm.h.
13914 * cpphash.c (_cpp_init_hashtable): Don't use gcc_obstack_init.
13915 * cppinit.c (cpp_create_reader): Likewise.
13917 * cpphash.h (scan_out_logical_line): Rename _cpp_scan_out_logical_line.
13918 * cpptrad.c: Likewise. All callers changed.
13919 * cpplib.c: All callers changed.
13920 * c-ppoutput.c: Replace 'uchar' with 'unsigned char' throughout.
13921 * hashtable.h: Define GTY(x) to nothing here too.
13923 2003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13925 * stor-layout.c (compute_record_mode): Remove very obsolete test
13926 that forces BLKmode for records with fields crossing word boundary.
13928 2003-07-13 Zack Weinberg <zack@codesourcery.com>
13930 * Makefile.in: Remove orphan reference to acconfig.h.
13932 2003-07-13 Andreas Jaeger <aj@suse.de>
13934 * cgraphunit.c: Convert prototypes to ISO C90.
13936 2003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
13938 * fixinc/inclhack.def (avoid_wchar_t_type): Use __cplusplus bypass
13940 * fixinc/fixincl.x: Rebuild.
13942 2003-07-12 Zack Weinberg <zack@codesourcery.com>
13944 * configure.in: Always define HAVE_AS_GOTOFF_IN_DATA for
13945 i?86-*-*. Use correct name of cache variable.
13946 * configure: Regenerate.
13948 2003-07-12 Kazu Hirata <kazu@cs.umass.edu>
13950 * config/alpha/alpha.c: Fix comment typos.
13951 * config/alpha/alpha.md: Likewise.
13952 * config/arm/arm.c: Likewise.
13953 * config/arm/arm.md: Likewise.
13954 * config/arm/lib1funcs.asm: Likewise.
13955 * config/avr/avr.md: Likewise.
13956 * config/arm/README-interworking: Fix typos.
13958 2003-07-12 Kazu Hirata <kazu@cs.umass.edu>
13960 * c-format.c: Fix comment formatting.
13961 * c-typeck.c: Likewise.
13962 * coverage.c: Likewise.
13963 * cppcharset.c: Likewise.
13964 * cpplib.c: Likewise.
13965 * dbxout.c: Likewise.
13966 * gcov-io.h: Likewise.
13967 * toplev.c: Likewise.
13969 2003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
13971 * fixinc/inclhack.def (alpha_sbrk): Note that OpenBSD needs this
13974 2003-07-12 Zack Weinberg <zack@codesourcery.com>
13976 * aclocal.m4 (gcc_AC_CHECK_TYPE): Clone of AC_CHECK_TYPE,
13977 uses three-argument AC_DEFINE so no acconfig.h entries are
13979 (_gcc_COMPUTE_GAS_VERSION): Also provide gcc_cv_gas_vers
13980 which contains the GAS version number as a scaled integer.
13981 (gcc_GAS_VERSION_GTE_IFELSE): Use gcc_cv_gas_vers. Add
13982 ability to check for ELF assembler.
13983 (gcc_GAS_CHECK_FEATURE): New macro.
13984 * configure.in: Use gcc_AC_CHECK_TYPE. Rewrite all
13985 assembler feature checks using gcc_GAS_CHECK_FEATURE.
13986 Use three-argument AC_DEFINE everywhere.
13987 * acconfig.h: Deleted.
13988 * config.in, configure: Regenerate.
13990 2003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
13992 * fixinc/inclhack.def (struct_sockaddr): Avoid "fixing" sockaddr_in
13994 * fixinc/fixincl.x: Regenerate.
13996 * fixinc/inclhack.def (gnu_types): Improve comment.
13998 2003-07-12 Andreas Jaeger <aj@suse.de>
14000 * fp-test.c (main): Use ISO C90 prototype.
14002 * version.c: Remove unneded include of ansidecl.h.
14004 * cgraph.h: Convert prototypes to ISO C90.
14005 * cgraph.c: Likewise.
14006 * fix-header.c: Likewise.
14008 * protoize.c: Likewise.
14010 2003-07-12 Jan Hubicka <jh@suse.cz>
14012 * cgraphunit.c (cgraph_inlined_into, cgraph_inlined_calees): Fix
14015 2003-07-12 Jan Hubicka <jh@suse.cz>
14016 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
14018 * cgraph.c (cgraph_max_uid): New global variable.
14019 (cgraph_node): Set uid field.
14020 (create_edge): Keep inline flags consistent.
14021 (dump_cgraph): Dump more info.
14022 * cgraph.h (struct cgraph_local_info): Remove inline_many and
14023 can_inline_once; add inlinable, disgread_inline_limits, and self_insn
14024 (struct cgraph_global_info): Add insns, calls, cloned_times,
14026 (struct cgraph_node): Add uid.
14027 (struct cgraph_edge): Add inline_call.
14028 (cgraph_max_uid, cgraph_inline_p): Declare.
14029 * cgraph.c: Include params.h and fibheap.h
14030 (cgraph_mark_functions_to_inline_once): Kill.
14031 (INSNS_PER_CALL): New constant.
14032 (ncalls_inlined, nfunctions_inlined, initial_insns, overall_insns): New
14034 (cgraph_finalize_function): Do not analyze inlining.
14035 (cgraph_finalize_compilation_unit): Set inlining attributes.
14036 (cgraph_mark_functions_to_output): More consistency checks.
14037 (cgraph_optimize_function): Set current_function_decl to NULL.
14038 (cgraph_expand_function): Use new inline flags.
14039 (cgraph_postorder): Expand from cgraph_expand_functions.
14040 (INLINED_TIMES, SET_INLINED_TIMES): New macros.
14041 (cgraph_inlined_into, cgraph_inlined_callees,
14042 cgraph_estimate_size_after_inlining, cgraph_estimate_growth,
14043 cgraph_mark_inline, cgraph_check_inline_limits,
14044 cgraph_default_inline_p, cgraph_decide_inling_of_small_functions,
14045 cgraph_decide_inlining, cgraph_inline_p): New functions.
14046 * params.def (PARAM_LARGE_FUNCTION_INSNS, PARAM_LARGE_FUNCTION_GROWTH,
14047 PARAM_INLINE_UNIT_GROWTH): New parameters.
14048 * tree-inline.c (struct inline_data): New field current_decl.
14049 (expand_call_inline): Avoid forward declarations; use
14050 inlinable_function_p.
14051 (optimize_inline_calls): Set id.current_decl.
14053 2003-07-11 Andrew Pinski <pinskia@physics.uc.edu>
14055 * configure.in: Remove wrongly added definition of
14057 * configure: Regenerate.
14059 2003-07-11 Dan Nicolaescu <dann@ics.uci.edu>
14061 * rtl.def (NOTE): Do not use padding.
14063 2003-07-11 Dara Hazeghi <dhazeghi@yahoo.com>
14065 * doc/install.tex: Update required binutils for i?86-*-linux*
14067 2003-07-11 Richard Henderson <rth@redhat.com>
14069 * Makefile.in (stage1_build): Force OBJS-onestep=OBJS.
14071 2003-07-11 Mark Mitchell <mark@codesourcery.com>
14073 * varasm.c (make_decl_rtl): Treat decls with a DECL_CONTEXT of
14074 TRANSLATION_UNIT_DECL as top_level.
14076 2003-07-11 Jakub Jelinek <jakub@redhat.com>
14078 * optabs.c (prepare_cmp_insn): Try cmpmemM first if it exists,
14079 then fall back to cmpstrM.
14080 * builtins.c (expand_builtin_memcmp): Likewise.
14081 * config/s390/s390-protos.h (s390_expand_cmpstr): Rename to...
14082 (s390_expand_cmpmem): ... this.
14083 * config/s390/s390.md (cmpmemdi, cmpmemsi, cmpmem_short_64,
14084 cmpmem_short_31, cmpmem_long_64, cmpmem_long_31): Renamed
14085 from cmpstr* patterns. Rename call to s390_expand_cmpstr
14086 to s390_expand_cmpmem.
14087 * config/s390/s390.c (s390_expand_cmpstr): Rename to...
14088 (s390_expand_cmpstr): ... this. Rename cmpstr* instructions
14090 * config/i370/i370.md (cmpmemsi, cmpmemsi_1): Renamed from
14092 * doc/md.texi (cmpstrM): Describe as String compare insn, not
14093 Block compare insn.
14096 2003-07-11 Loren James Rittle <ljrittle@acm.org>
14098 * config/i386/freebsd.h (SET_ASM_OP): Remove.
14099 (SUBTARGET_OVERRIDE_OPTIONS): Handle TARGET_64BIT case.
14100 (ASM_COMMENT_START, ASM_APP_ON, ASM_APP_OFF, DBX_REGISTER_NUMBER
14101 MCOUNT_NAME, SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE_SIZE): Whitespace.
14103 2003-07-11 Richard Henderson <rth@redhat.com>
14105 * function.c (assign_parms): Don't recombine complex args if
14106 fnargs is unchanged from orig_fnargs.
14107 (split_complex_args): Return args without complex before copying.
14108 Re-layout the modified parameters.
14110 2003-07-11 J"orn Rennecke <joern.rennecke@superh.com>
14112 * regclass.c (choose_hard_reg_mode): Add third argument.
14113 Changed all callers.
14114 * rtl.h (choose_hard_reg_mode): Update declaration.
14115 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
14116 Take HARD_REGNO_CALL_PART_CLOBBERED into account.
14118 2003-07-11 Geoffrey Keating <geoffk@apple.com>
14120 * c-decl.c (finish_decl): Handle 'used' here...
14121 * cgraphunit.c (cgraph_finalize_function): ... and here ...
14122 * c-common.c: (handle_used_attribute): ... not here.
14124 * configure.in (onstep): Support --enable-intermodule.
14125 * Makefile.in (OBJS-common): New.
14127 (OBJS-archive): New.
14128 (OBJS): Build from OBJS-common, OBJS-md, OBJS-archive.
14129 (OBJS-onestep): New.
14130 (libbackend.a): Support @onestep@.
14131 (libbackend.o): New.
14132 * configure: Regenerate.
14134 * c-common.h (c_reset_state): New prototype.
14135 (c_parse_file): New prototype.
14136 (finish_file): Move prototype from c-tree.h.
14137 * c-decl.c: Include <hashtab.h>.
14138 (builtin_decls): New.
14139 (current_file_decl): New.
14140 (duplicate_decls): Add extra parameter. Change all callers. Don't
14141 output duplicate common symbols.
14142 (link_hash_hash): New.
14143 (link_hash_eq): New.
14144 (poplevel): Handle popping of the top level.
14145 (warn_if_shadowing): Handle TRANSLATION_UNIT_DECL.
14146 (pushdecl): Set DECL_CONTEXT to TRANSLATION_UNIT_DECL if appropriate.
14147 (pushdecl_top_level): Likewise.
14148 (redeclaration_error_message): Handle TRANSLATION_UNIT_DECL.
14149 (c_init_decl_processing): Create TRANSLATION_UNIT_DECL.
14150 (finish_decl): Handle TRANSLATION_UNIT_DECL.
14151 (merge_translation_unit_decls): New.
14152 (c_write_global_declarations): New.
14153 (c_reset_state): New.
14154 (implicitly_declare): Handle TRANSLATION_UNIT_DECL.
14155 * c-lang.c (LANG_HOOKS_WRITE_GLOBALS): New.
14156 * c-objc-common.c (c_cannot_inline_tree_fn): Handle
14157 TRANSLATION_UNIT_DECL.
14158 (c_objc_common_finish_file): Call merge_translation_unit_decls.
14159 * c-opts.c (in_fnames): Rename from in_fname.
14160 (c_common_decode_option): Handle multiple input filenames.
14161 (c_common_post_options): Likewise.
14162 (c_common_parse_file): Likewise; also, call c_parse_file rather than
14164 * c-parse.in: Move cleanup code to c_parse_file.
14165 (free_parser_stacks): Move contents to c_parse_file.
14166 (c_parse_file): New.
14167 * c-tree.h (union lang_tree_node): Chain along TYPE_NEXT_VARIANT
14169 (C_DECL_FILE_SCOPE): New.
14170 (finish_file): Move prototype to c-common.h.
14171 (merge_translation_unit_decls): New prototype.
14172 (comptypes): Add extra parameter to prototype.
14173 (c_write_global_declarations): New prototype.
14174 * c-typeck.c (tagged_types_tu_compatible_p): New.
14175 (function_types_compatible_p): Add extra parameter, change all callers.
14176 (type_lists_compatible_p): Likewise.
14177 (comptypes): Likewise.
14178 (struct tagged_tu_seen): New.
14179 (tagged_tu_seen_base): New.
14180 (build_unary_op): Handle TRANSLATION_UNIT_DECL.
14181 (c_mark_addressable): Remove #if 0 code.
14182 * calls.c (special_function_p): Handle TRANSLATION_UNIT_DECL, add
14183 comment explaining why it shouldn't have to.
14184 * cgraph.h (struct cgraph_node): Add chain_next and chain_prev GTY
14186 * cppinit.c (cpp_read_next_file): New.
14187 (cpp_read_main_file): Use it.
14188 * cpplib.c (undefine_macros): New.
14189 (cpp_undef_all): New.
14190 * cpplib.h (cpp_read_next_file): Prototype.
14191 (cpp_undef_all): Prototype.
14192 * langhooks-def.h (write_global_declarations): Remove prototype.
14193 * toplev.h (write_global_declarations): Add prototype.
14194 * tree.c (decl_type_context): Use switch statement, handle
14195 TRANSLATION_UNIT_DECL.
14196 * tree.def: Update documentation for TRANSLATION_UNIT_DECL.
14197 (TRANSLATION_UNIT_DECL): New kind of tree.
14198 * tree.h: Update documentation for TRANSLATION_UNIT_DECL.
14199 * Makefile.in (c-decl.o): Add $(HASHTAB_H) to dependencies.
14200 * doc/invoke.texi: Make attempt to document new functionality.
14202 2003-05-19 Per Bothner <bothner@apple.com>
14204 * gcc.c (combine_inputs): New.
14205 (process_command): Set combine_inputs.
14206 (do_spec_1): Handle combine_inputs.
14209 2003-07-10 James E Wilson <wilson@tuliptree.org>
14211 PR optimization/9745
14212 * loop.c (loop_iv_add_mult_emit_before): Call loop_regs_update before
14213 loop_insn_emit_before.
14214 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
14216 2003-07-10 Zack Weinberg <zack@codesourcery.com>
14218 * cppcharset.c: Fix comment.
14219 (iconv_close [!HAVE_ICONV]): #define to (void)0 to prevent warning.
14220 (EILSEQ): #define to EINVAL if not already defined.
14221 (convert_using_iconv): #if out when !HAVE_ICONV.
14222 (init_iconv_desc): Handle !HAVE_ICONV here...
14223 (cpp_init_iconv): ...not here.
14225 2003-07-11 Neil Booth <neil@daikokuya.co.uk>
14227 * common.opt: More --help messages.
14228 * opts.c (print_help): Use puts().
14229 * toplev.c (f_options): Remove help text.
14230 (display_help): Don't dump f_options.
14232 2003-07-11 Nathanael Nerode <neroden@gcc.gnu.org>
14234 * fixinc/mkfixinc.sh: Drop reference to unsupported alpha-*-interix*.
14235 Move i?86-*-interix* to the don't-fix list.
14236 * fixinc/fixinc.interix: Delete with extreme prejudice.
14238 2003-07-10 Dara Hazeghi <dhazeghi@yahoo.com>
14241 * doc/install.texi: Document requirements for ia64-*-hpux* target.
14243 2003-07-10 Roger Sayle <roger@eyesopen.com>
14245 * config/ia64/hpux.h (TARGET_C99_FUNCTIONS): Define.
14247 2003-07-10 Zack Weinberg <zack@codesourcery.com>
14249 * cppcharset.c (one_utf8_to_cppchar, one_cppchar_to_utf8,
14250 one_utf8_to_utf32, one_utf32_to_utf8, one_utf8_to_utf16,
14251 one_utf16_to_utf8, conversion_loop, convert_utf8_utf16,
14252 convert_utf8_utf32, convert_utf16_utf8, convert_utf32_utf8,
14253 convert_no_conversion, convert_using_iconv): New functions.
14254 (APPLY_CONVERSION): New macro.
14255 (struct conversion, conversion_tab): New data structure.
14256 (init_iconv_desc): Check conversion_tab for a custom conversion
14257 primitive before trying to use iconv.
14258 (convert_cset): Deleted.
14259 (cpp_init_iconv): Use UTF- terminology, not UCS-.
14260 (_cpp_destroy_iconv): Update to match.
14261 (_cpp_valid_ucn): We don't need iconv to implement UCNs.
14262 (convert_ucn): Use one_cppchar_to_utf8 and APPLY_CONVERSION.
14263 (convert_escape, cpp_interpret_string): Use APPLY_CONVERSION.
14264 (_cpp_interpret_string_notranslate): New function, moved here
14267 * cpphash.h (convert_f, struct cset_converter): New types.
14268 (struct cpp_reader): narrow_cset_desc and wide_cset_desc
14269 are now struct cset_converter, not bare iconv_t.
14271 * cpplib.c (interpret_string_notranslate): Moved to cppcharset.c;
14272 all callers changed.
14274 2003-07-10 Kelley Cook <kelleycook@wideopenwest.com>
14276 * Makefile.in (options.h): Depend on Makefile. Add move-if-change
14277 to opts.sh command line.
14278 * opts.sh: Write to temporary files with a move-if-change at the end.
14280 2003-07-10 Denis Chertykov <denisc@overta.ru>
14281 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14283 * combine.c (gen_binary): Handle the CLOBBER rtx and
14284 don't build a binary operation with it.
14286 2003-07-10 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
14288 * gcse.c (load_kills_store, find_loads, store_killed_in_insn,
14289 store_killed_after, store_killed_before): Keep track of the correct
14290 dependency function to use.
14292 2003-07-10 Steven Bosscher <steven@gcc.gnu.org>
14293 * toplev.c (do_compile): Don't try to open dump files before
14294 lang_dependent_init initializes dump_base_name.
14296 2003-07-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14298 * config/arm/arm.c (arm_init_iwmmxt_builtins, arm_expand_builtin):
14300 * config/frv/frv.c (frv_expand_builtin): Likewise.
14301 * config/sh/sh.c (sh_media_init_builtins): Likewise.
14303 2003-07-09 Mark Mitchell <mark@codesourcery.com>
14306 * doc/invoke.texi (C++ Dialect Options): Change documentation of
14309 2003-07-10 J"orn Rennecke <joern.rennecke@superh.com>
14311 * tm.texi (RETURN_ADDR_OFFSET): Document.
14313 2003-07-10 Nathan Sidwell <nathan@codesourcery.com>
14315 * gcov-io.h: Update documentation.
14316 (GCOV_UNSIGNED2STRING): New.
14317 (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
14318 GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
14319 GCOV_TAG_SUMMARY_LENGTH): Adjust.
14320 (GCOV_TAG_BLOCKS_NUM, GCOV_TAG_ARCS_NUM,
14321 GCOV_TAG_COUNTER_NUM): New.
14322 (GCOV_BLOCK_SIZE): Number of words.
14323 (gcov_var): Adjust buffer type.
14324 * gcov-io.c (gcov_write_bytes, gcov_read_bytes): Rename to ...
14325 (gcov_write_words, gcov_read_words): ... here. Take a 4-byte word
14326 count, not byte count.
14327 (gcov_open): Adjust overread init.
14328 (gcov_allocate, gcov_write_unsigned, gcov_write_counter,
14329 gcov_write_string, gcov_write_tag, gcov_write_length,
14330 gcov_write_tag_length): Adjust.
14331 (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
14332 (gcov_sync, gcov_seek): Adjust.
14333 * gcov-dump.c (print_usage): Show gcc version only.
14334 (dump_file): Use GCOV_UNSIGNED2STRING.
14335 (tag_blocks, tag_arcs, tag_counters): Use GCOV_TAG_*_NUM macros.
14336 * gcov.c (print_version): Show gcc version only.
14337 (read_graph_file): Use GCOV_UNSIGNED2STRING. Use
14338 GCOV_TAG_*_NUM macros.
14339 (read_count_file): Use GCOV_UNSIGNED2STRING. Use
14340 GCOV_TAG_COUNTER_LENGTH.
14341 * coverage.c (read_counts_file): Use GCOV_UNSIGNED2STRING.
14342 Use GCOV_TAG_COUNTER_NUM.
14343 * libgcov.c (gcov_version): Use GCOV_UNSIGNED2STRING.
14344 (__gcov_merge_single, __gcov_merge_delta): Use GCOV_CHECK.
14346 2003-07-10 Andreas Schwab <schwab@suse.de>
14348 * gcov-dump.c (dump_file): Fix missing address operator.
14350 2003-07-10 Kazu Hirata <kazu@cs.umass.edu>
14353 * fold-const.c (sign_bit_p): Return EXP if VAL is the sign bit
14355 (fold_single_bit_test): If sign_bit_p() fails, assume that the
14356 bit being tested is not a sign bit.
14358 2003-07-10 Kazu Hirata <kazu@cs.umass.edu>
14360 * config/h8300/h8300.md (a peephole2): New.
14362 2003-07-10 Alexandre Oliva <aoliva@redhat.com>
14364 2001-12-13 Alexandre Oliva <aoliva@redhat.com>
14365 * config/mn10300/linux.h (LINK_SPEC): Rename the dynamic linker
14366 from ld-linux.so.2 to ld.so.1.
14367 2001-11-18 Alexandre Oliva <aoliva@redhat.com>
14368 * config/mn10300/linux.h (LINK_SPEC): -lpthread, not -lthread.
14369 * config/mn10300/linux.h (LINK_SPEC): Don't handle -Wl,-rpath
14370 nor -Wl,-rpath-link.
14371 (LIB_SPEC): Add -rpath-link if !static.
14372 2001-08-22 Alexandre Oliva <aoliva@redhat.com>
14373 * config/mn10300/mn10300.c (mn10300_protect_label): New
14375 * config/mn10300/linux.h (PRINT_OPERAND,
14376 PRINT_OPERAND_ADDRESS): Set it during their execution.
14377 (ASM_OUTPUT_LABELREF): Output `+' before symbol name if
14378 mn10300_protect_label is set.
14379 * config/mn10300/linux.h (LINK_SPEC): Recognize -Wl,-rpath and
14381 (LIB_SPEC, STARTFILE_SPEC): Define.
14382 2001-05-11 Alexandre Oliva <aoliva@redhat.com>
14383 * config/mn10300/t-linux (dp-bit.c, fp-bit.c): Don't define
14384 FLOAT_BIT_ORDER_MISMATCH.
14385 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
14386 * config.gcc (am33_2.0-*-linux*): Added.
14387 * config/mn10300/linux.h: New.
14388 * config/mn10300/t-linux: New.
14390 2003-07-10 Andreas Jaeger <aj@suse.de>
14392 * fold-const.c: Properly wrap prototypes.
14394 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
14396 2003-06-16 Alexandre Oliva <aoliva@redhat.com>
14397 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter):
14399 * config/mn10300/mn10300.md (GOTaddr2picreg): ... here.
14400 * config/mn10300/mn10300.h: GTY-declare it.
14401 2003-06-11 Alexandre Oliva <aoliva@redhat.com>
14402 * config/mn10300/mn10300.c (mn10300_encode_section_info): Fix
14403 prototype. Use incoming RTL argument.
14404 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
14405 * config/mn10300/mn10300.md (int_label): Move C statements...
14406 (GOTaddr2picreg): ... here.
14407 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
14408 * config/mn10300/mn10300.h (ENCODE_SECTION_INFO): Move...
14409 * config/mn10300/mn10300.c (mn10300_encode_section_info):
14410 ... here. New function.
14411 (TARGET_ENCODE_SECTION_INFO): Define to it.
14412 2001-11-04 Alexandre Oliva <aoliva@redhat.com>
14413 * config/mn10300/mn10300.md (builtin_setjmp_receiver): Fix typo in
14415 (mn10300_loadPC): Define as insn splittable after reload.
14416 2001-05-13 Alexandre Oliva <aoliva@redhat.com>
14417 * config/sh/mn10300.h (JUMP_TABLES_IN_TEXT_SECTION): Let them
14418 be defined in .rodata even in PIC, now that the assembler
14420 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
14421 * config/mn10300/mn10300.h (GOT_SYMBOL_NAME): Don't let the
14422 symbol take an underscore prefix.
14423 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
14424 * config/mn10300/mn10300-protos.h (legitimate_pic_operand_p,
14425 legitimize_pic_address): Declare.
14426 * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Mark
14427 the PIC register as fixed.
14428 (EXTRA_CONSTRAINT): Match UNSPEC_PLT and UNSPEC_PIC for 'S'.
14429 (GO_IF_LEGITIMATE_ADDRESS): Require legitimate_pic_operand for
14431 (LEGITIMATE_PIC_OPERAND_P): Define.
14432 (PIC_OFFSET_TABLE_REGNUM): Define.
14433 (GOT_SYMBOL_NAME): Define.
14434 (SYMBOLIC_CONST_P): Define.
14435 (ENCODE_SECTION_INFO): Use SYMBOL_REF_FLAG to mark local
14437 (MN10300_GLOBAL_P): Test it.
14438 (OUTPUT_ADDR_CONST_EXTRA): Handle PIC-related unspecs.
14439 (JUMP_TABLES_IN_TEXT_SECTION): Enable for PIC.
14440 * config/mn10300/mn10300.c (print_operand): Handle unspec.
14441 (expand_prologue): Set PIC register.
14442 (call_address_operand): Don't match SYMBOL_REFs in PIC.
14443 (legitimize_address): Call legitimize_pic_address.
14444 (legitimize_pic_address): New fn.
14445 (legitimate_pic_operand_p): New fn.
14446 * config/mn10300/mn10300.md (PIC_REG, SP_REG): New constants.
14447 (UNSPEC_INT_LABEL, UNSPEC_PIC, UNSPEC_GOT, UNSPEC_GOTOFF,
14448 UNSPEC_PLT): New constants.
14449 (pop_pic_reg): New insn.
14450 (movsi): Adjust non-PIC addresses.
14451 (builtin_setjmp_receiver): Restore the PIC register.
14452 (casesi): New insn.
14453 (call): Adjust non-PIC addresses.
14454 (int_label, GOTaddr2picreg): New expands.
14455 (am33_loadPC): New insn.
14456 (mn10300_loadPC): New expand.
14457 (call_next_insn): New insn.
14458 (add_GOT_to_pic_reg): New expand.
14459 (symGOT2reg, symGOT2reg_i): New expands.
14460 (symGOTOFF2reg, symGOTOFF2reg_i): New expands.
14461 (sym2PIC, sym2PLT): New expands.
14463 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
14465 * config/mn10300/mn10300.h (PREDICATE_CODES): Define.
14466 2001-05-01 Alexandre Oliva <aoliva@redhat.com>
14467 * config/mn10300/mn10300.md (sqrtsf2): flag_fast_math was renamed
14468 to flag_unsafe_math_optimizations.
14469 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
14470 * config/mn10300/mn10300.c (expand_prologue): Mark
14471 FP-register-saving insns as frame-related.
14472 2001-02-13 Alexandre Oliva <aoliva@redhat.com>
14473 * config/mn10300/mn10300.c
14474 (mn10300_get_live_callee_saved_regs): Don't search past
14475 LAST_EXTENDED_REGNUM.
14476 (mn10300_gen_multiple_store, store_multiple_operation): Likewise.
14477 * config/mn10300/mn10300.md: Remove excessive line breaks from
14478 `@' output patterns that were accounted as additional
14480 * config/mn10300/mn10300.md, config/mn10300/mn10300.c:
14481 Re-introduce changes accidentally removed in Richard Sandiford's
14482 2000-12-05's patch.
14483 * config/mn10300/t-mn10300 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
14484 Re-instate am33-2 lost in merge from net GCC.
14485 2000-08-26 Alexandre Oliva <aoliva@redhat.com>
14486 * config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Added
14487 floating-point registers.
14488 2000-08-07 Alexandre Oliva <aoliva@redhat.com>
14489 * config/mn10300/mn10300.md (movdf): Revert some am33-specific
14490 pessimizations that had gone in on 2000-05-08.
14491 2000-06-28 Graham Stott <grahams@cygnus.co.uk>
14492 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Fix typo.
14493 2000-06-22 Graham Stott <grahams@cygnus.co.uk>
14494 * config/mn10300/mn10300.md (movqi): Use nonimmediate_operand for
14496 * (movhi): Likewise.
14497 * (movsi): Likewise.
14498 * (movsf): Likewise.
14499 * (movdi): Likewise.
14500 * (movdf): Likewise.
14501 2000-05-24 Alexandre Oliva <aoliva@cygnus.com>
14502 * config/mn10300/mn10300.c (fp_regs_to_save): New function.
14503 (can_use_return_insn, initial_offset): Add fp_regs_to_save.
14504 (expand_prologue, expand_epilogue): Save and restore FP regs.
14505 2000-05-20 Alexandre Oliva <aoliva@cygnus.com>
14506 * config/mn10300/mn10300.md (movdi, movdf): 64-bit clean-up.
14507 2000-05-13 Alexandre Oliva <aoliva@cygnus.com>
14508 * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2, addsf3,
14509 subsf3, mulsf3, divsf3, fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4):
14510 Do not clobber cc0.
14511 2000-05-12 Alexandre Oliva <aoliva@cygnus.com>
14512 * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2):
14513 Discourage the two-argument, longer opcodes.
14514 (addsf3, subsf3, mulsf3, divsf3): Likewise for three-argument
14516 * config/mn10300/mn10300.h (struct mn10300_cc_status_mdep): New.
14517 (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Define.
14518 * config/mn10300/mn10300.md (cmpsf): New pattern.
14519 (branch): Test mdep.fpCC and output fbCC.
14520 * config/mn10300/mn10300.c (print_operand): Output conditions.
14521 (notice_cc_update): Recognize fcmp and set mdep.fpCC.
14522 2000-05-10 Alexandre Oliva <aoliva@cygnus.com>
14523 * config/mn10300/mn10300.md (movsf, movdf, addsf3, subsf3,
14524 mulsf3, divsf3): Use the `F' constraint for FP values.
14525 * config/mn10300/mn10300.c (const_1f_operand): New function.
14526 * config/mn10300/mn10300-protos.h (const_1f_operand): Declare.
14527 * config/mn10300/mn10300.md (sqrtsf2): New expand.
14528 (rsqrtsf2): New insn.
14529 2000-05-09 Alexandre Oliva <aoliva@cygnus.com>
14530 * config/mn10300/mn10300.md (movdf): Oops, I missed it in my
14532 2000-05-08 Alexandre Oliva <aoliva@cygnus.com>
14533 * config/mn10300/mn10300.md (abssf2, negdf2): On
14534 TARGET_AM33_2, expand to...
14535 (abssf2_am33_2, negdf2_am33_2): New insns.
14536 (addsf3, subsf3, mulsf3, divsf3): Likewise.
14537 (fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4): Likewise.
14538 * config/mn10300/mn10300.md (movqi, movhi, movsi, movsf,
14539 movdi, movdf): Added FP regs.
14540 * invoke.texi (-mam33-2, -mno-am33-2): Document.
14541 2000-04-29 Alexandre Oliva <aoliva@cygnus.com>
14542 * config/mn10300/mn10300.h (FIRST_FP_REGNUM, LAST_FP_REGNUM):
14544 (REGNO_AM33_2_FP_P): Renamed to...
14545 (REGNO_FP_P): Redefine in terms of FIRST_* and LAST_*.
14546 (CONDITIONAL_REGISTER_USAGE, REGNO_REG_CLASS): Likewise.
14547 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
14548 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Remove FP
14549 regs from GENERAL_REGS.
14550 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
14551 * config/mn10300/mn10300.h (REGNO_AM33_2_FP_P): New macro.
14552 * config/mn10300/mn10300.c (mn10300_address_cost): Added FP_REGS.
14553 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Added FP_REGS.
14554 2000-04-23 Alexandre Oliva <aoliva@cygnus.com>
14555 * config/mn10300/mn10300.h (CLASS_CANNOT_CHANGE_SIZE): Defined
14557 2000-04-21 Alexandre Oliva <aoliva@cygnus.com>
14558 * config/mn10300/mn10300.h (OK_FOR_Q): New macro.
14559 (EXTRA_CONSTRAINT): Added OK_FOR_Q.
14560 * config/mn10300/mn10300.c (secondary_reload_class): Adjust.
14561 * config/mn10300/mn10300.c (print_operand): Support `D' for doubles.
14562 * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Adjust.
14563 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER): Added
14564 AM33/2.0 floating-point registers.
14565 (CONDITIONAL_REGISTER_USAGE): Adjust.
14566 (enum reg_class, REG_CLASS_NAMES): Added FP_REGS and FP_ACC_REGS.
14567 (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Adjust.
14568 (REG_CLASS_FROM_LETTER): Added `f' and `A'.
14569 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Adjust.
14570 * config/mn10300/t-mn10300 (MULTILIB_OPTIONS): Added am33-2.
14571 (MULTILIB_DIRNAMES): Likewise.
14572 * config/mn10300/mn10300.h (CPP_SPEC): Define `__AM33__=2' and
14573 `__AM33_2__' when `-mam33-2' is given.
14574 (TARGET_AM33_2): Define.
14575 (TARGET_SWITCHES): Adjust.
14576 * config/mn10300/mn10300.c (asm_file_start): Print `.am33_2'
14579 2003-07-09 Matt Kraai <kraai@alumni.cmu.edu>
14581 * doc/install.texi: Add missing @.
14583 2003-07-09 Bob Wilson <bob.wilson@acm.org>
14585 * config/xtensa/xtensa.h (CRT_CALL_STATIC_FUNCTION): Define.
14587 2003-07-09 Aldy Hernandez <aldyh@redhat.com>
14590 * config/i386/i386.c (ix86_function_arg_boundary): Remove abort.
14592 2003-07-09 Nathanael Nerode <neroden@gcc.gnu.org>
14595 * config/arc/t-arc: Replace bogus references to "x-crtinit.o",
14596 "x-crtfini.o" with "crtinit.o", "crtfini.o".
14598 * fixinc/inclhack.def (limits_ifndefs): Add select test.
14599 * fixinc/fixincl.x: Rebuild.
14601 * fixinc/inclhack.def (math_exception): Improve bypass and comment.
14602 * fixinc/fixincl.x: Rebuild.
14604 2003-07-09 Hans-Peter Nilsson <hp@bitrange.com>
14606 * doc/install.texi (Configuration): Document the valgrind option
14607 to --enable-checking.
14609 2003-07-09 Jan Hubicka <jh@suse.cz>
14611 * objc-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
14613 2003-07-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14615 * c-lex.c (cb_ident): Cast cstr.text to const char *.
14617 2003-07-09 Nathan Sidwell <nathan@codesourcery.com>
14619 * gcov-io.h: Update documentation.
14620 (GCOV_GRAPH_SUFFIX, GCOV_GRAPH_MAGIC): Rename to GCOV_NOTE_SUFFIX,
14622 (GCOV_DATA_SUFFIX, GCOV_NOTE_SUFFIX): Update.
14623 (GCOV_DATA_MAGIC, GCOV_NOTE_MAGIC): Make non-palindromic.
14624 (struct gcov_var): Change buffer's type. Add endian flag.
14625 (gcov_open): Remove mode in libgcov.
14626 (gcov_magic): Prototype.
14627 * gcov-io.c (from_file): New.
14628 (gcov_open): Clear endian flag.
14630 (gcov_write_bytes, gcov_read_bytes): Return gcov_unsigned_t
14632 (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
14633 gcov_write_tag, gcov_write_length, gcov_write_tag_length): Update.
14634 (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Update.
14635 * gcov-iov.c (main): Correct cast.
14636 * coverage.c (read_counts_file): Use gcov_magic. Remove endianness
14638 (gcov_begin_output): Use GCOV_NOTE_MAGIC.
14639 (coverage_init): Use GCOV_NOTE_SUFFIX.
14640 * libgcov.c (gcov_version_mismatch): Remove endianness conversion.
14641 Rename to gcov_version, and return flag.
14642 (gcov_exit): Use gcov_version.
14643 (__gcov_init): Use gcov_version.
14644 * Makefile.in (coverageexts): Update.
14645 * gcov.c (print_version): Remove endianness conversion.
14646 (create_file_names): Use GCOV_NOTE_SUFFIX.
14647 (read_graph_file): Use gcov_magic.
14648 (read_count_file): Likewise.
14649 * gcov-dump.c (dump_file): Remove endianness conversion, use
14652 2003-07-09 Nathan Sidwell <nathan@codesourcery.com>
14654 * configure.in (BUILD_PREFIX, BUILD_PREFIX_1): Set if enable
14656 * configure: Regenerated.
14657 * Makefile.in (ALL_CFLAGS): Correct its comment.
14659 2003-07-08 Mark Mitchell <mark@codesourcery.com>
14661 * fold-const.c (make_range): Do not access operand 1 for a
14662 zero-operand operator.
14664 2003-07-09 Neil Booth <neil@daikokuya.co.uk>
14666 * toplev.c (warn_dummy, W_options): Die.
14667 (display_help): Don't print W_options.
14668 * common.opt: Add W_options help from toplev.c.
14670 2003-07-09 Andreas Jaeger <aj@suse.de>
14672 * opts.c (wrap_help): Only pass int arguments as arguments to
14673 printf's '*' modifier. Change argument of function.
14675 2003-07-08 Matt Kraai <kraai@alumni.cmu.edu>
14677 * doc/invoke.texi: Fix misspelling of "@item".
14679 2003-07-08 Kazu Hirata <kazu@cs.umass.edu>
14681 * config/i386/i386.md: Remove an old comment about
14684 2003-07-09 Jan Hubicka <jh@suse.cz>
14686 * cgraph.c (cgraph_node_name): New function.
14687 (dump_cgraph): Use it.
14688 * cgraph.h (cgraph_dump_file): Declare.
14689 (cgraph_node_name): Declare.
14690 * cgraphunit.c: Include timevar.h
14691 (cgraph_finalize_compilation_unit): Use timevar; reorganize dumps.
14692 (cgraph_optimize_function): Use TV_INTEGRATION.
14693 (cgraph_mark_local_functions): reorganize dumps.
14694 (cgraph_mark_functions_to_inline_once): Likewise.
14695 (cgraph_optimize): Likewise; use timevar.
14696 * timevar.def (TV_CGRAPH, TV_CGRAPHOPT): New.
14697 * toplev.c (dump_file_index): Add DFI_cgraph.
14698 (dump_file_info): Likewise.
14699 (cgraph_dump_file): New global variable.
14700 (do_compile): Open and close cgraph dump.
14701 * invoke.texi (-d): Document new flag; renumber.
14703 2003-07-08 Roger Sayle <roger@eyesopen.com>
14706 * calls.c (emit_call_1): Don't bother popping the arguments off of
14707 the stack after a noreturn function call; The adjustment is dead.
14708 (expand_call): Likewise.
14710 2003-07-08 Geoffrey Keating <geoffk@apple.com>
14712 * expr.c (MOVE_MAX_PIECES): Move from here...
14713 * defaults.h (MOVE_MAX_PIECES): ... to here.
14715 2003-07-08 Matt Kraai <kraai@alumni.cmu.edu>
14717 * Makefile.in (stage1-start): Handle an empty SUBDIRS.
14719 2003-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14721 * genattr.c (internal_dfa_insn_code): Don't prototype.
14722 * genattrtab.c (attr_desc): Add `static_p' field.
14723 (expand_units): Make blockage range and ready cost functions
14725 (write_attr_get): Don't add extern prototypes in C file. Mark
14726 static functions as appropriate.
14727 (find_attr, make_internal_attr): Initialize static_p.
14728 * genattrtab.h (ATTR_STATIC): New macro.
14729 * genautomata.c (output_internal_reset_func): Mark output function
14731 (make_internal_dfa_insn_code_attr): Mark output function as static.
14733 2003-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14735 * genattrtab.h: Add new macros for attr `special' flags.
14736 * genattrtab.c (attr_desc): Reorder/resize fields better.
14737 Use attr `special' macros in all calls to make_internal_attr.
14738 * genautomata.c: Likewise.
14740 2003-07-09 Jan Hubicka <jh@suse.cz>
14742 * c-common.c (c_estimate_num_insns_1): New static function.
14743 (c_estimate_num_insns): New global function.
14744 * c-common.h (DECL_NUM_STMTS): Rename to...
14745 (DECL_ESTIMATED_INSNS): ... this.
14746 (c_estimate_num_insns): Declare.
14747 * c-decl.c (duplicate_decls): Use DECL_ESTIMATED_INSNS.
14748 * c-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
14749 * c-semantics.c (add_stmt): Do not account statements.
14750 * langhooks-def.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS):
14752 * langhooks.h (lang_hooks_for_tree_inlining): Add
14754 * params.def (max-inline-insns-auto, max-inline-insns-auto): set
14756 (max-inline-insns): set to 300.
14757 (min-inline-insns): set to 10.
14758 * tree-inline.c (struct inline_data): Rename inlined_stmts to
14760 (INSNS_PER_STMT): Kill.
14761 (inlinable_function_p): Compute and store body size.
14762 (expand_call_inline): Likewise.
14763 (optimize_inline_calls): Likewise.
14765 2003-07-08 James E Wilson <wilson@tuliptree.org>
14768 * emit-rtl.c (set_mem_attribute_minus_bitpos): When handle ARRAY_REF,
14769 loop over new variable t2 instead of t.
14771 2003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
14774 * config/i386/winnt.c: Replace use of error(), warning() with
14775 error_with_decl(), warning_with_decl(), throughout.
14777 2003-07-08 Neil Booth <neil@daikokuya.co.uk>
14779 * opts.c (wrap_help): Use unsigned int, not size_t.
14781 2003-07-08 Stephane Carrez <stcarrez@nerim.fr>
14783 * config/m68hc11/m68hc11.h (HAVE_AS_DWARF2_DEBUG_LINE): Don't define
14784 as .file/.loc directives are incompatible with linker relaxation.
14786 2003-07-08 Zack Weinberg <zack@codesourcery.com>
14788 * Makefile.in (fixinc.sh): Remove gnu-regex.[ch] from dependencies.
14789 * fixinc/Makefile.in: Remove all references to gnu-regex.[och].
14790 * fixinc/fixfixes.c, fixinc/fixincl.c, fixinc/fixlib.c
14791 * fixinc/fixtests.c: Use xregexec not regexec, xregcomp not regcomp.
14792 * fixinc/fixlib.h: Include xregex.h not gnu-regex.h.
14793 * fixinc/inclhack.def (hpux10_cpp_pow_inline, hpux11_cpp_pow_inline):
14794 Escape { and } characters which are not part of range expressions.
14795 * fixinc/fixincl.x: Regenerate.
14796 * fixinc/gnu-regex.c, fixinc/gnu-regex.h: Delete file.
14798 2003-07-08 Steven Bosscher <steven@gcc.gnu.org>
14801 * tree-inline.c (find_alloca_call): Use
14802 walk_tree_without_duplicates, instead of walk_tree.
14803 (find_builtin_longjmp_call): Likewise.
14804 * c-objc-common.c (c_cannot_inline_fn): Likewise.
14805 * c-semantics.c (find_reachable_label): Likewise.
14807 2003-07-08 Jakub Jelinek <jakub@redhat.com>
14810 * config/i386/i386.c (ix86_check_movabs): New function.
14811 * config/i386/i386-protos.h (ix86_check_movabs): New prototype.
14812 * config/i386/i386.md (movabs[shqd]i_1_rex64): Kill broken alternative.
14813 (movabs[shqd]i_[12]_rex64): Add ix86_check_movabs check to conditions.
14815 2003-07-08 Chris Demetriou <cgd@broadcom.com>
14817 * Makefile.in (install-po): Cope with empty CATALOGS.
14819 2003-07-08 Richard Sandiford <rsandifo@redhat.com>
14821 * config/mips/elf64.h (TARGET_ASM_UNIQUE_SECTION): Delete.
14822 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
14823 (SECTION_FUNCTION_TEMPLATE): Delete.
14824 * config/mips/elf.h: As for elf64.h.
14825 (ASM_OUTPUT_ALIGNED_BSS): Use named_section rather than sbss_section.
14826 * config/mips/linux.h: As for elf.h
14827 * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
14828 * config/mips/iris6.h (EXTRA_SECTIONS): Delete.
14829 (EXTRA_SECTION_FUNCTIONS): Remove sdata_section. Remove the handling
14830 of in_sdata from current_section_name and current_section_flags.
14831 * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
14832 * config/mips/mips.h (sdata_section, sbss_section): Remove prototypes.
14833 (MASK_GP_OPT, TARGET_GP_OPT): Delete.
14834 (MASK_NO_FUSED_MADD): Use MASK_GP_OPT's old value.
14835 (TARGET_SWITCHES): Neuter gpOPT, gpopt, no-gpOPT and no-gpopt.
14836 (SMALL_DATA_SECTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
14837 * config/mips/mips.c (TARGET_IN_SMALL_DATA_P): Override.
14838 (TARGET_SECTION_TYPE_FLAGS): Override if TARGET_IRIX6.
14839 (mips_classify_symbol): Use SYMBOL_REF_SMALL_P.
14840 (override_options): Remove setting of MASK_GPOPT.
14841 (mips_output_external): Use mips_in_small_data_p to check whether a
14842 symbol needs an .extern directive. Don't emit such directives for
14843 TARGET_EXPLICIT_RELOCS.
14844 (mips_declare_object): Update accordingly.
14845 (mips_select_rtx_section): Call named_section rather than
14846 SMALL_DATA_SECTION.
14847 (mips_select_section): Use default_elf_section_section for everything
14848 except .text string constants.
14849 (mips_in_small_data_p): New function.
14850 (mips_encode_section_info): Remove small data handling.
14851 (mips_unique_section): Delete.
14852 (iris6_section_type_flags): New function.
14853 * doc/tm.texi: Remove documentation of -mgpopt and -mhalf-pic.
14855 2003-07-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14858 * pa.md: Disparage all mtsar constraints.
14859 (extzv, extv, insv): Don't fail on length of {32|64}.
14861 2003-07-08 Zack Weinberg <zack@codesourcery.com>
14863 * system.h: Poison MAP_CHARACTER.
14864 * config/i370/i370-protos.h (mvs_map_char): Delete.
14865 * config/i370/i370.c (ascebc, ebcasc, mvs_map_char): Delete.
14866 * config/i370/i370.h (MAP_CHARACTER): Delete definition.
14867 (ASM_OUTPUT_ASCII): Don't use MAP_CHARACTER.
14869 2003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
14871 * toplev.c (randomize): Correct call to time().
14873 2003-07-08 Jakub Jelinek <jakub@redhat.com>
14875 * unroll.c (reg_dead_after_loop): Check for reg in REG_EQUAL and
14876 REG_EQUIV notes as well.
14878 2003-07-08 Kazu Hirata <kazu@cs.umass.edu>
14880 * doc/md.texi: Fix the description of addmodecc.
14882 2003-07-07 Zack Weinberg <zack@codesourcery.com>
14884 * Makefile.in (top_builddir): Set to "..", not ".".
14885 (INTLLIBS, INTLDEPS): Delete.
14886 (LIBINTL, LIBINTL_DEP, LIBICONV_DEP): New variables to be substituted.
14887 (LIBDEPS): Add $(LIBICONV_DEP).
14888 (LIBS): Take out $(INTLLIBS), add $(LIBINTL) and $(LIBICONV).
14889 (INCLUDES): Replace -I../intl with @INCINTL@.
14890 ($(top_builddir)/intl/libintl.a): Delete rule.
14891 (stage2-start, stage3-start, stage4-start, stageprofile-start,
14892 stagefeedback-start): Use $$ for variable to be evaluated by
14894 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT,
14895 HAVE_LC_MESSAGES, HAVE_STPCPY): Delete.
14896 * aclocal.m4: sinclude ../config/progtest.m4. Add
14897 contents of lcmessage.m4 from gettext distro.
14898 * configure.in: Check for wchar.h and setlocale. Set
14899 LIBICONV_DEP to the empty string and substitute it.
14900 Call AM_LC_MESSAGES. Delete AC_ARG_ENABLE for --enable-nls;
14901 this is handled elsewhere. Use ZW_GNU_GETTEXT_SISTER_DIR,
14902 not CY_GNU_GETTEXT. Clear $LIBICONV if its text is included
14903 in $LIBINTL, to avoid linking it twice.
14904 * configure, config.in: Regenerate.
14906 2003-07-08 Nathanael Nerode <neroden@gcc.gnu.org>
14908 * fixinc/mkfixinc.sh: Remove winnt support.
14909 * fixinc/fixinc.winnt: Delete with extreme prejudice.
14911 2003-07-08 Neil Booth <neil@daikokuya.co.uk>
14913 * Makefile.in: Update.
14914 * c-opts.c (c_common_handle_option): opt_text now contains the '-'.
14915 * c.opt: Update documentation.
14916 * common.opt: Add some help text.
14917 * opts.c: Include intl.h.
14918 (wrap_help, print_help): New.
14919 (find_opt, handle_option, common_handle_option): opt_text now
14920 contains the '-'. Use print_help to output help.
14921 * opts.h (struct cl_option): New member "help".
14922 * opts.sh: Update to handle help text output and to prepend
14924 * toplev.c (display_help): Remove some help text.
14926 2003-07-07 David Edelsohn <edelsohn@gnu.org>
14927 Fariborz Jahanian <fjahanian@apple.com>
14929 * configure.in: Test for PowerPC mfcr field support in assembler.
14930 * config.in, configure: Regenderated.
14932 * config/rs6000/power4.md: Add mfcrf reservation.
14933 * config/rs6000/rs6000-protos.h (mfcr_operation): Declare.
14934 * config/rs6000/rs6000.c (mfcr_operation): Define.
14935 (print_operand): Add 'Q' case for mfcrf.
14936 * config/rs6000/rs6000.h (TARGET_MFCRF): New.
14937 * config/rs6000/rs6000.md (attribute "type"): Add mfcrf.
14938 (movcc_internal1): Emit optional field operand for mfcr and set
14939 "type" attribute appropriately.
14940 (mfcr SCC): Likewise.
14941 (movesi_from_cr_one): New.
14943 2003-07-07 Roger Sayle <roger@eyesopen.com>
14945 * config/i386/i386.md: Correct check-in of incorrect version.
14947 2003-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14949 * bitmap.c (debug_bitmap_file): Merge uses of HOST_PTR_PRINTF with
14950 adjacent stdio calls.
14951 * c-decl.c (c_print_identifier): Likewise.
14952 * mips-tfile.c (write_varray, write_object, allocate_cluster): Likewise.
14953 * print-rtl.c (print_rtx): Likewise.
14954 * print-tree.c (print_node_brief, print_node): Likewise.
14955 * system.h (HOST_PTR_PRINTF): Ensure we have a literal string.
14957 * configure.in (AC_COMPILE_CHECK_SIZEOF): Check for `void *'.
14958 * config.in, configure: Regenerated.
14960 2003-07-07 Roger Sayle <roger@eyesopen.com>
14963 * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
14964 Changed to define_expand patterns that copy operand[1] to prevent
14965 it from being clobbered before emitting an atan2?f3_1 insn.
14966 (atan2df3_1, atan2sf3_1, atan2xf_1, atan2tf3_1): New define_insn
14967 patterns that actually specify the behaviour of x87's FPATAN.
14969 2003-07-07 Jakub Jelinek <jakub@redhat.com>
14971 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Remove bogus
14972 clearing of SYMBOL_FLAG_LOCAL bit.
14973 If vcall_offset fits into signed 16-bit immediate, use
14974 one instruction for both addition and load.
14976 2003-07-07 Neil Booth <neil@daikokuya.co.uk>
14978 * opts.c (common_handle_option): Correct handling of the
14979 -falign- switches that do and don't take an argument.
14981 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
14983 * config/h8300/h8300.md (pushqi1_h8300hs): Revert my patch
14985 (pushhi1_h8300hs): Likewise.
14987 2003-07-07 Andreas Jaeger <aj@suse.de>
14989 * genextract.c: Convert remaining prototypes to ISO C90.
14991 * cpplex.c (_cpp_free_buff): Convert prototype to ISO C90.
14992 * fold-const.c (fold_single_bit_test): Likewise.
14993 * diagnostic.c (default_diagnostic_finalizer): Likewise.
14994 * cfgrtl.c (rtl_redirect_edge_and_branch): Likewise.
14996 * gengtype.c (write_array): Generate ISO C90 prototypes.
14998 * genflags.c (gen_proto): Generate ISO C90 prototypes.
15000 2003-07-07 Roger Sayle <roger@eyesopen.com>
15002 PR optimization/11059
15003 * expr.c (can_store_by_pieces): Return true if length is zero.
15004 (store_by_pieces): If length is zero and endp is two, abort,
15005 othwerise, if length is zero and endp is not two, return "to".
15006 (clear_by_pieces): Do nothing if length is zero.
15007 (clear_storage): Do nothing if length is zero.
15008 (store_constructor): Simplify code when size is zero, or the
15009 target has already been cleared. This avoids emitting a
15010 blockage instruction when initializing empty structures.
15012 2003-07-07 Andreas Jaeger <aj@suse.de>
15014 * mips-tfile.c: Convert prototypes to ISO C90.
15015 * mips-tdump.c: Convert prototypes to ISO C90.
15017 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
15019 * rtl.h (emit_line_note): Take a location_t.
15020 (emit_line_note_force): Remove.
15021 (set_file_and_line_for_statement): Take a location_t.
15022 * tree.g (emit_line_note): Take a location_t.
15023 * emit-rtl.c (emit_line_note): Take a location_t.
15024 (emit_line_note_force): Remove.
15025 * function.c (init_function_start): Adjust emit_line_note call.
15026 (expand_function_end): Use force_next_line_note, not
15027 emit_line_note_force.
15028 * c-parse.in (maybe_type_qual): Adjust emit_line_note calls.
15029 * c-semantics.c (genrtl_do_pushlevel, genrtl_goto_stmt,
15030 genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
15031 genrtl_while_stmt, genrtl_do_stmt_1, genrtl_return_stmt,
15032 genrtl_for_stmt, genrtl_break_stmt, genrtl_continue_stmt,
15033 genrtl_continue_stmt, genrtl_switch_stmt,
15034 genrtl_asm_stmt): Likewise.
15035 * expr.c (expand_expr): Likewise.
15036 * integrate.c (expand_inline_function): Likewise.
15037 * stmt.c (set_file_and_line_for_stmt): Take a location_t.
15038 (expand_decl_init): Adjust emit_line_note call.
15040 2003-07-07 Dale Johannesen <dalej@apple.com>
15042 * config/rs6000/darwin-tramp.asm: Fix trampolines. PR 10900.
15044 2003-07-07 Andreas Jaeger <aj@suse.de>
15046 * config/i386/i386-protos.h: Convert prototypes to ISO C90.
15047 * config/i386/i386.c: Likewise.
15049 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
15051 * config/h8300/h8300.md: Use gen_int_mode instead of
15052 GEN_INT (trunc_int_for_mode (...)).
15054 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
15056 * config/h8300/h8300.md (pushqi1_h8300hs): Optimize by pushing
15057 2 bytes and then subtract 2 from the stack pointer.
15058 (pushhi1_h8300hs): Likewise.
15060 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
15062 * configure.in (enable_coverage): Remove -DSELF_COVERAGE, add
15064 * configure: Regenerated.
15065 * Makefile.in: Remove extraneous comment.
15066 * toplev.c (randomize): Protect against potential multiple calls.
15067 * doc/invoke.texi (-frandom-seed): Document use for in coverage
15070 2003-07-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15071 Eric Botcazou <ebotcazou@libertysurf.fr>
15073 PR optimization/11198
15074 * alias.c (objects_must_conflict_p): Return 1 if the types have
15075 the same alias set, not if the alias sets only conflict.
15077 2003-07-07 Andrew Pinski <pinskia@physics.uc.edu>
15079 * cppcharset.c (ICONV_CONST): Define iff !HAVE_ICONV.
15080 (convert_cset): Change inbuf to type ICONV_CONST char.
15081 * Makefile.in (LIBS): Add LIBICONV.
15083 * doc/invoke.texi (-falign-functions): Document that
15084 when n is zero then a machine-dependent default is used.
15085 (-falign-labels): Document that when n is zero then a
15086 machine-dependent default is used and that -falign-labels =1
15087 is equivalent to -fno-align-labels.
15088 (-falign-loops): Likewise.
15089 (-falign-jumps): Likewise.
15091 2003-07-06 Art Haas <ahaas@airmail.net>
15093 * f/global.c (ffeglobal_type_string_): Fix obsolete GCC array
15094 initializer syntax.
15096 2003-07-06 James E Wilson <wilson@tuliptree.org>
15098 PR optimization/9812
15099 * rtl.h (mem_for_const_double): Delete prototype.
15100 * varasm.c (mem_for_const_double): Delete function.
15101 * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68kelf.h,
15102 config/m68k/m68kv4.h, config/m68k/netbsd-elf.h
15103 (LEGITIMATE_PIC_OPERAND_P): Delete duplicate definitions.
15104 * config/m68k/m68k.h (LEGITIMATE_CONSTANT_P): Disallow XFmode.
15105 (LEGITIMATE_PIC_OPERAND_P): Delete CONST_DOUBLE tests.
15106 * config/m68k/m68k.md (movxf): Add reload_in_progress guard. Add
15107 comment about confused support for XFmode constants.
15109 2003-07-07 Jan Hubicka <jh@suse.cz>
15111 * cfglayout.c (fixup_reorder_chain): Call delete_dead_jumptables.
15113 2003-07-06 Kazu Hirata <kazu@cs.umass.edu>
15115 * config/h8300/h8300.c: Fix comment typos.
15116 * config/h8300/h8300.md: Likewise.
15117 * config/i386/athlon.md: Likewise.
15118 * config/i386/i386.c: Likewise.
15119 * config/i386/pentium.md: Likewise.
15120 * config/ia64/ia64.c: Likewise.
15121 * config/ia64/itanium1.md: Likewise.
15122 * config/ia64/itanium2.md: Likewise.
15123 * config/m32r/m32r.md: Likewise.
15124 * config/m68hc11/m68hc11.c: Likewise.
15125 * config/mcore/mcore.c: Likewise.
15126 * config/mips/sr71k.md: Likewise.
15127 * config/mips/t-iris5-as: Likewise.
15128 * config/mmix/mmix.h: Likewise.
15129 * config/ns32k/ns32k.h: Likewise.
15130 * config/ns32k/NOTES: Fix a typo.
15132 2003-07-06 Andreas Jaeger <aj@suse.de>
15134 * stmt.c: Convert remaining prototypes to ISO C90.
15135 * cfglayout.c: Likewise.
15136 * dbxout.c: Likewise.
15138 * genemit.c: Likewise.
15140 * basic-block.h: Convert prototypes to ISO C90.
15141 * c-parse.in: Likewise.
15142 * c-pragma.h: Likewise.
15143 * c-typeck.c: Likewise.
15144 * cfghooks.h: Likewise.
15145 * cfgloopanal.c: Likewise.
15146 * dbxout.h: Likewise.
15147 * debug.h: Likewise.
15148 * dwarf2asm.h: Likewise.
15149 * gcov.c: Likewise.
15150 * gengtype-lex.l: Likewise.
15151 * sched-int.h: Likewise.
15152 * timevar.c: Likewise.
15154 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
15156 * c-common.h (c_comon_handle_filename,
15157 c_common_missing_arguement): New.
15158 * c-lang.c (LANG_HOOKS_HANDLE_FILENAME,
15159 LANG_HOOKS_MISSING_ARGUMENT): New.
15160 * c-opts.c (missing_arg): Rename c_common_missing_argument,
15161 update to be an appropriate langhook.
15162 (c_common_handle_option): Don't handle filenames.
15163 (c_common_handle_filename): New.
15164 * hooks.c (hook_void_constcharptr,
15165 hook_bool_constcharptr_size_t_false): New.
15166 * hooks.h (hook_void_constcharptr,
15167 hook_bool_constcharptr_size_t_false): New.
15168 * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME,
15169 LANG_HOOKS_MISSING_ARGUMENT): New.
15170 (LANG_HOOKS_INITIALIZER): Update.
15171 * langhooks.h (struct lang_hooks): Add handle_filename and
15173 * opts.c (handle_option): Don't handle filenames here, but ...
15174 (handle_options): ... here.
15175 (common_handle_option): Don't handle missing arguments here.
15176 * objc/objc-lang.c (LANG_HOOKS_HANDLE_FILENAME,
15177 LANG_HOOKS_MISSING_ARGUMENT): New.
15179 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
15181 * Makfile.in: Remove traces of mbchar.
15182 * c-parse.in (MULTIBYTE_CHARS): Remove.
15183 * config.in (MULTIBYTE_CHARS): Remove.
15184 * configure: Remove --enable-mbchar.
15185 * configure.in: Remove --enable-mbchar.
15186 * mbchar.c, mbchar.h: Remove.
15187 * system.h: Poison MULTIBYTE_CHARS.
15188 * config/linux-aout.h (MULTIBYTE_CHARS): Remove.
15189 * config/linux.h (MULTIBYTE_CHARS): Remove.
15190 * config/svr4.h (MULTIBYTE_CHARS): Remove.
15191 * config/sparc/linux.h (MULTIBYTE_CHARS): Remove.
15193 2003-07-06 Andreas Jaeger <aj@suse.de>
15195 * varray.c (varray_check_failed): Fix typo.
15197 * unroll.c: Convert prototypes to ISO C90.
15198 * varasm.c: Likewise.
15199 * varray.c: Likewise.
15200 * varray.h: Likewise.
15201 * vmsdbgout.c: Likewise.
15202 * xcoffout.c: Likewise.
15203 * xcoffout.h: Likewise.
15205 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
15207 * gcov-io.h: Add a local time stamp.
15208 (struct gcov_info): Add stamp field.
15209 (gcov_truncate): New.
15210 * coverage.c (read_counts_file): Skip the stamp.
15211 (coverage_begin_output): Write the stamp.
15212 (build_gcov_info): Declare and init the stamp.
15213 (coverage_finish): Only unlink data file, if stamp is zero.
15214 * gcov-dump.c (dump_file): Dump the stamp.
15215 * gcov.c (bbg_stamp): New.
15216 (release_structures): Clear bbg_stamp.
15217 (read_graph_file): Read stamp.
15218 (read_count_file): Check stamp.
15219 * libgcov.c (gcov_exit): Check stamp and truncate if needed.
15221 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
15223 * tree.h (default_flag_random_seed): Remove.
15224 * toplev.h (local_tick): Declare.
15225 * tree.c (flag_random_seed, default_flag_random_seed): Move to
15227 (append_random_chars): Don't call default_flag_random_seed.
15228 * toplev.c (flag_random_seed): Define here. Set local_tick.
15229 (local_tick): Define.
15230 (randomize): New, moved from tree.c.
15231 (print_switch_values): Adjust.
15232 (toplev_main): Call randomize.
15234 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
15236 * tree.h (crc32_string): Declare.
15237 * tree.c (append_random_chars): Remove.
15238 (crc32_string): New.
15239 (get_file_function_name_long): Use crc32_string here.
15241 2003-07-06 Andreas Jaeger <aj@suse.de>
15243 * gcc.c: Convert prototypes to ISO C90.
15245 * gcov-dump.c: Likewise.
15246 * gcov-iov.c: Likewise.
15247 * gcse.c: Likewise.
15248 * genattrtab.h: Likewise.
15250 * global.c: Likewise.
15251 * graph.c: Likewise.
15252 * graph.h: Likewise.
15253 * hosthooks.h: Likewise.
15254 * hooks.h: Likewise.
15255 * hooks.c: Likewise.
15256 * hashtable.h: Likewise.
15257 * hashtable.c: Likewise.
15258 * haifa-sched.c: Likewise.
15259 * integrate.h: Likewise.
15260 * integrate.c: Likewise.
15261 * input.h: Likewise.
15262 * ifcvt.c: Likewise.
15263 * jump.c: Likewise.
15264 * langhooks-def.h: Likewise. Add extern to prototypes.
15265 * langhooks.c: Likewise.
15266 * langhooks.h: Likewise.
15268 * local-alloc.c: Likewise.
15269 * loop-init.c: Likewise.
15270 * loop-unroll.c: Likewise.
15271 * loop-unswitch.c: Likewise.
15272 * loop.c: Likewise.
15273 * loop.h: Likewise. Add extern to prototypes.
15274 * machmode.h: Likewise.
15275 * main.c: Likewise.
15276 * mbchar.c: Likewise.
15277 * mbchar.h: Likewise.
15278 * mkdeps.c: Likewise.
15279 * mkdeps.h: Likewise.
15280 * optabs.c: Likewise.
15281 * optabs.h: Likewise.
15282 * output.h: Likewise.
15283 * gccspec.c: Likwise.
15284 * postreload.c: Likewise.
15285 * prefix.c: Likewise.
15286 * prefix.h: Likewise.
15287 * print-rtl.c: Likewise.
15288 * print-tree.c: Likewise.
15289 * profile.c: Likewise.
15290 * read-rtl.c: Likewise.
15291 * real.c: Likewise.
15292 * real.h: Likewise.
15293 * recog.c: Likewise.
15294 * recog.h: Likewise.
15295 * reg-stack.c: Likewise.
15296 * regclass.c: Likewise.
15297 * regmove.c: Likewise.
15298 * regrename.c: Likewise.
15299 * regs.h: Likewise.
15300 * reload.c: Likewise.
15301 * reload.h: Likewise.
15302 * reload1.c: Likewise.
15303 * reorg.c: Likewise.
15304 * resource.c: Likewise.
15305 * resource.h: Likewise.
15306 * rtl-error.c: Likewise.
15309 * rtlanal.c: Likewise.
15310 * sbitmap.c: Likewise.
15311 * sbitmap.h: Likewise.
15312 * scan-decls.c: Likewise.
15313 * scan.c: Likewise.
15314 * sched-deps.c: Likewise.
15315 * sched-ebb.c: Likewise.
15316 * sched-int.h: Likewise.
15317 * sched-rgn.c: Likewise.
15318 * sched-vis.c: Likewise.
15319 * sibcall.c: Likewise.
15320 * simplify-rtx.c: Likewise.
15321 * sreal.c: Likewise.
15322 * sreal.h: Likewise.
15323 * ssa-ccp.c: Likewise.
15324 * ssa-dce.c: Likewise.
15327 * stack.h: Likewise.
15328 * stmt.c: Likewise.
15329 * stor-layout.c: Likewise.
15330 * stringpool.c: Likewise.
15331 * target.h: Likewise.
15332 * timevar.c: Likewise.
15333 * timevar.h: Likewise.
15334 * tlink.c: Likewise.
15335 * tracer.c: Likewise.
15336 * tree-inline.c: Likewise.
15337 * tree-inline.h: Likewise.
15338 * tree.c: Likewise.
15339 * tree.h: Likewise.
15341 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
15343 * combine.c (nonzero_bits1): Fix a warning.
15345 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
15347 * config/h8300/h8300.c (compute_mov_length): Correct the
15348 length of loading CONST0_RTX (SFmode).
15350 2003-07-05 Nathan Sidwell <nathan@codesourcery.com>
15352 * toplev.c (output_clean_symbol_name): Remove.
15353 * toplev.h (output_clean_symbol_name): Remove.
15354 * config/alpha/alpha.c (unicosmk_output_module_name): Use
15355 lbasename & clean_symbol_name.
15357 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
15359 * ggc.h: Follow spelling conventions.
15360 * config/i386/i386.c: Likewise.
15361 * config/i386/winnt.c: Likewise.
15362 * config/rs6000/rs6000.c: Likewise.
15364 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
15366 * bt-load.c: Fix comment typos.
15367 * c-incpath.c: Likewise.
15369 * cfgcleanup.c: Likewise.
15370 * cfgloop.h: Likewise.
15371 * cfgloopmanip.c: Likewise.
15372 * cfgrtl.c: Likewise.
15373 * diagnostic.h: Likewise.
15374 * dwarfout.c: Likewise.
15375 * emit-rtl.c: Likewise.
15376 * et-forest.c: Likewise.
15377 * et-forest.h: Likewise.
15378 * expr.c: Likewise.
15379 * gcse.c: Likewise.
15380 * genattr.c: Likewise.
15381 * jump.c: Likewise.
15382 * langhooks.h: Likewise.
15383 * local-alloc.c: Likewise.
15384 * loop-unroll.c: Likewise.
15385 * loop-unswitch.c: Likewise.
15386 * ra-build.c: Likewise.
15387 * regclass.c: Likewise.
15388 * regmove.c: Likewise.
15389 * rtl.def: Likewise.
15390 * rtlanal.c: Likewise.
15391 * sched-ebb.c: Likewise.
15392 * sched-rgn.c: Likewise.
15393 * simplify-rtx.c: Likewise.
15395 * tracer.c: Likewise.
15396 * tree.c: Likewise.
15398 2003-07-05 Zack Weinberg <zack@codesourcery.com>
15400 * cppcharset.c: Use the correct return type for the fallback iconv
15403 2003-07-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
15405 Blame to Jan Hubicka <jh@suse.cz>
15406 * cfglayout.c (record_effective_endpoints): Split insns before
15407 first basic block correctly.
15409 2003-07-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15411 * expr.c (expand_expr, case COMPONENT_REF): When seeing if should use
15412 bitfield operations, use STRICT_ALIGNMENT, not SLOW_UNALIGNED_ACCESS
15413 if EXPAND_CONST_ADDRESS or EXPAND_INITIALIZER.
15415 2003-07-05 Andreas Jaeger <aj@suse.de>
15417 * genattrtab.c (write_attr_get): Revert part of last patch to
15418 always write out a prototype.
15420 * genemit.c (gen_split): Readd lost unused attributes in last
15423 2003-07-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
15425 * cfgloopmanip.c (force_single_succ_latches): Force latch to be
15426 different from header.
15428 2003-07-05 Andreas Schwab <schwab@suse.de>
15430 * config/m68k/m68k.c: Remove code protected by CRDS.
15431 * config/m68k/m68k.md: Likewise.
15433 2003-07-05 Neil Booth <neil@daikokuya.co.uk>
15436 * c-opts.c (permit_fortran_options): New.
15437 (c_common_init_options): Accept fortran front end options if
15438 it looks like we might be preprocessing Fortran.
15439 (c_common_handle_option): Don't reject switch if permit_fotran_options.
15441 2003-07-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15443 * genattr.c (internal_dfa_insn_code): Output prototype.
15444 * genattrtab.c: Don't output unnecessary decls, output in ISO C.
15445 * genautomata.c: Likewise.
15446 * genconditions.c: Likewise.
15447 * genemit.c: Likewise.
15448 * genextract.c: Likewise.
15449 * gengenrtl.c: Likewise.
15450 * gengtype.c: Likewise.
15451 * genopinit.c: Likewise.
15452 * genoutput.c: Likewise.
15453 * genpeep.c: Likewise.
15454 * genrecog.c: Likewise.
15456 2003-07-04 Zack Weinberg <zack@codesourcery.com>
15458 * cpplib.h (CPP_AT_NAME, CPP_OBJC_STRING): New token types.
15459 (struct cpp_options): Add narrow_charset, wide_charset,
15460 bytes_big_endian fields. Remove EBCDIC field.
15461 (cpp_init_iconv, cpp_interpret_string): New external interfaces.
15463 * cpphash.h: Include <iconv.h> if we have it, otherwise
15464 provide a dummy definition of iconv_t.
15465 (struct cpp_reader): Add narrow_cset_desc and wide_cset_desc fields.
15466 (_cpp_valid_ucn): Update prototype.
15467 (_cpp_destroy_iconv): New prototype.
15469 * doc/cpp.texi: Document character set handling.
15470 * doc/cppopts.texi: Document -fexec-charset= and -fexec-wide-charset=.
15471 * doc/extend.texi: Delete entire section on multiline strings.
15472 Rewrite section on __FUNCTION__ etc now that these are
15475 * cppucnid.tab, cppucnid.pl: New files.
15476 * cppucnid.h: New generated file.
15477 * cppcharset.c: Include cppucnid.h. Lots of commentary added.
15478 (iconv_open, iconv, iconv_close): Provide dummy definitions
15480 (SOURCE_CHARSET, struct strbuf, init_iconv_desc, cpp_init_iconv,
15481 _cpp_destroy_iconv, convert_cset, width_to_mask, convert_ucn,
15482 emit_numeric_escape, convert_hex, convert_oct, convert_escape,
15483 cpp_interpret_string, narrow_str_to_charconst,
15484 wide_str_to_charconst): New.
15485 (ucn_valid_in_identifier): Use a binary search through the
15486 ucnranges table defined in cppucnid.h, not a long chain of if
15488 (_cpp_valid_ucn): Add a limit pointer. Downgrade "universal
15489 character names are only valid in C++ and C99" to a warning.
15490 Issue the "meaning of \[uU] is different in traditional C"
15491 warning here. Take care not to let iconv see an invalid UCS
15492 value if we get a malformed UCN. Issue an error if we don't
15494 (cpp_interpret_charconst): Moved here from cpplex.c. Use
15495 cpp_interpret_string to do the heavy lifting.
15497 * cppinit.c (cpp_create_reader): Initialize bytes_big_endian,
15498 narrow_charset, wide_charset fields of options structure.
15499 (cpp_destroy): Call _cpp_destroy_iconv.
15500 * cpplex.c (forms_identifier_p): Adjust call to _cpp_valid_ucn.
15501 (maybe_read_ucn, hex_digit_value, cpp_parse_escape): Delete.
15502 (cpp_interpret_charconst): Moved to cppcharset.c.
15503 * cpplib.c (dequote_string): Delete.
15504 (interpret_string_notranslate): New.
15505 (do_line, do_linemarker): Use interpret_string_notranslate.
15507 * Makefile.in (cppcharset.o): Depend on cppucnid.h.
15509 * c-common.c (fname_string, combine_strings): Delete.
15510 * c-common.h (fname_string, combine_strings): Delete prototypes.
15511 * c-lex.c (ignore_escape_flag): Delete.
15512 (cb_ident): Use cpp_interpret_string, not lex_string.
15513 (get_nonpadding_token): New function.
15514 (c_lex): Handle Objective-C @-prefixed identifiers and strings here.
15515 Adjust calls to lex_string. Don't write *value twice.
15516 (lex_string): Now handles string constant concatenation.
15517 Most of the work handed off to cpp_interpret_string.
15518 Call fix_string_type here.
15519 * c-parse.in (STRING_FUNC_NAME, VAR_FUNC_NAME): Replace with
15520 FUNC_NAME, throughout.
15521 (OBJC_STRING): New token type.
15522 (primary:STRING): No need to call fix_string_type here.
15523 (primary:objc_string): Make that OBJC_STRING.
15524 (objc_string nonterminal): Delete.
15525 (yylexname): Delete code to handle fake string constants.
15526 (yylexstring): Delete entirely.
15527 (_yylex): Handle CPP_AT_NAME and CPP_OBJC_STRING. No need
15528 to handle CPP_ATSIGN.
15530 * c.opt (-fexec-charset=, -fwide-exec-charset=): New options.
15531 * c-opts.c (missing_arg, c_common_handle_option): Handle
15532 OPT_fexec_charset_ and OPT_fwide_exec_charset_.
15533 (c_common_init): Set cpp_opts->bytes_big_endian, not
15534 cpp_opts->EBCDIC. Call cpp_init_iconv.
15535 (print_help): Document -fexec-charset= and -fexec-wide-charset=.
15536 (TARGET_EBCDIC): Delete default definition.
15538 * objc/objc-act.c (build_objc_string_object): No need to
15539 handle string constant concatenation.
15541 2003-07-04 Kazu Hirata <kazu@cs.umass.edu>
15543 * doc/install.texi: Fix typos.
15544 * doc/invoke.texi: Likewise.
15545 * doc/tm.texi: Likewise.
15547 2003-07-04 Kazu Hirata <kazu@cs.umass.edu>
15549 * config/pa/fptr.c: Fix comment typos.
15550 * config/pa/pa-64.h: Likewise.
15551 * config/pa/pa.c: Likewise.
15552 * config/pa/pa.h: Likewise.
15553 * config/rs6000/603.md: Likewise.
15554 * config/rs6000/7xx.md: Likewise.
15555 * config/rs6000/darwin.h: Likewise.
15556 * config/rs6000/freebsd.h: Likewise.
15557 * config/rs6000/rs6000.c: Likewise.
15558 * config/rs6000/rs6000.md: Likewise.
15559 * config/rs6000/spe.h: Likewise.
15561 2003-07-04 Ulrich Weigand <uweigand@de.ibm.com>
15563 * config/s390/2064.md: Change GNU CC to GCC.
15564 * config/s390/2084.md: Likewise.
15565 * config/s390/fixdfdi.h: Likewise.
15566 * config/s390/linux.h: Likewise.
15567 * config/s390/s390-modes.def: Likewise.
15568 * config/s390/s390-protos.h: Likewise.
15569 * config/s390/s390.c: Likewise.
15570 * config/s390/s390.h: Likewise.
15571 * config/s390/s390.md: Likewise.
15572 * config/s390/s390x.h: Likewise.
15574 2003-07-04 Jeff Law <law@redhat.com>
15577 * expr.c (do_store_flag): Pass in the correct result type
15578 when calling fold_single_bit_test.
15579 * fold-const.c (fold_single_bit_test): Use result_type for the
15580 result when folding a sign bit test.
15582 2003-07-04 Neil Booth <neil@daikokuya.co.uk>
15584 * opts.c (common_handle_options): Negate sense of -falign- switches.
15586 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
15588 * Makefile.in: Replace PWD with PWD_COMMAND.
15590 2003-07-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
15592 * cfgloopanal.c (count_strange_loop_iterations): New static function.
15593 (constant_iterations, count_loop_iterations, simple_loop_exit_p):
15594 Handle strange loops.
15596 2003-07-04 Toon Moene <toon@moene.indiv.nluug.nl>
15598 * install.texi: Even the g77 manpage is derived from
15599 the full g77 manual.
15601 2003-07-04 Zack Weinberg <zack@codesourcery.com>
15603 * ABOUT-NLS: Delete.
15604 * intl: Delete entire directory.
15605 * aclocal.m4: Include ../config/gettext.m4. Delete
15606 AC_ISC_POSIX, AM_LANGINFO_CODESET, jm_GLIBC21, AM_LC_MESSAGES,
15607 AM_PATH_PROG_WITH_TEST, AM_WITH_NLS, and AM_GNU_GETTEXT.
15608 * configure.in: Use CY_GNU_GETTEXT, not AM_GNU_GETTEXT.
15609 Remove intl/Makefile from all_outputs.
15610 * configure, config.in: Regenerate.
15611 * Makefile.in: Expunge all references to intl subdirectory.
15612 Add -I../intl to INCLUDES.
15613 * intl.h: Include libintl.h if and only if ENABLE_NLS is defined.
15615 2003-07-04 Roger Sayle <roger@eyesopen.com>
15617 * config/rs6000/aix51.h (TARGET_C99_FUNCTIONS): Define.
15618 * config/rs6000/aix52.h (TARGET_C99_FUNCTIONS): Likewise.
15620 2003-07-04 Danny Smith <dannysmith@users.sourceforge.net>
15622 PR c++/5287, PR c++/7910, PR c++/11021
15623 * config/i386/winnt.c (ix86_handle_dll_attribute): Don't add
15624 dllimport attribute if function is defined at declaration, but
15625 report error instead. Likewise for dllimport'd variable
15626 definitions. Set implicit TREE_PUBLIC for dllimport'd variables
15627 declared within functions, Report error if dllimport or dllexport
15628 symbol is not global.
15629 (i386_pe_dllimport_p): Ignore dllimport attribute of functions
15630 if defined after declaration or if inlined. Don't allow definition
15631 of static data members of C++ classes. Don't dllimport virtual
15633 (i386_pe_mark_dllexport): Warn about inconsistent dll attributes.
15634 (i386_pe_mark_dllimport): Remove unnecessary checks.
15635 (i386_pe_encode_section_info): Warn if the dllimport attribute
15636 and symbol prefix have been instantiated and then overridden.
15638 * doc/extend.texi: Document dllimport and dllexport attributes.
15640 * config/i386/winnt.c (i386_pe_output_labelref): Fix indents.
15642 2003-07-03 Uwe Stieber <uwe@kaos-group.de>
15644 * config/kaos.h (CPP_PREDEFINES): Delete.
15645 (TARGET_OS_CPP_BUILTINS): New.
15647 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15649 * c-aux-info.c: Include toplev.h after c-tree.h.
15650 * c-common.c: Likewise.
15651 (GCC_DIAG_STYLE): Undef.
15652 * c-semantics.c (GCC_DIAG_STYLE): Define.
15653 * c-tree.h (GCC_DIAG_STYLE): Likewise.
15654 * diagnostic.h (inform): Move prototype to toplev.h.
15655 * jump.c: Include diagnostic.h before toplev.h.
15656 * toplev.h (GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG): Define.
15657 (warning, error, fatal_error, pedwarn, sorry, inform,
15658 error_for_asm, warning_for_asm): Mark with ATTRIBUTE_GCC_CXXDIAG.
15660 2003-07-03 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
15662 * cfglayout.c (cfg_layout_duplicate_bb): Do not update frequencies
15663 at all if edge is not specified.
15664 (can_copy_bbs_p, copy_bbs): New.
15665 * cfglayout.h (can_copy_bbs_p, copy_bbs): Declare.
15666 * cfgloop.c (get_loop_body): Comment more precisely.
15667 * cfgloopmanip.c (copy_bbs, record_exit_edges): Removed.
15668 (scale_bbs_frequencies): Fix comment typo.
15669 (can_duplicate_loop_p): Use can_copy_bbs_p.
15670 (duplicate_loop_to_header_edge): Simplify by using copy_bbs.
15672 2003-07-03 Devang Patel <dpatel@apple.com>
15674 * c-opts.c (c_common_parse_file): Remove extra
15675 debug_hooks->start_source_file call.
15677 2003-07-03 Roger Sayle <roger@eyesopen.com>
15679 * real.c (real_trunc, real_floor, real_ceil): New functions
15680 to implement trunc, floor and ceil respectively.
15681 * real.h (real_trunc, real_floor, real_ceil): Prototype here.
15682 * builtins.c (integer_valued_real_p): New function to test if
15683 a floating point expression has an integer valued result.
15684 (fold_trunc_transparent_mathfn): Optimize foo(foo(x)) as
15685 foo(x) where foo is an integer rounding function. Similarly,
15686 optimize foo(bar(x)) as bar(x), and foo((double)(int)x) as
15687 (double)(int)x when both foo and bar are integer rounding
15688 functions and we don't need to honor errno.
15689 (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil):
15690 New functions to fold trunc, floor and ceil.
15691 (fold_builtin): Use fold_builtin_trunc to fold BUILT_IN_TRUNC*,
15692 fold_builtin_floor to fold BUILT_IN_FLOOR* and fold_builtin_ceil
15693 to fold BUILT_IN_CEIL*.
15694 * fold-const.c (tree_expr_nonnegative_p): Handle FLOAT_EXPR and
15695 the remaining integer rounding functions.
15697 2003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
15699 * config/sparc/sparc.c (function_arg_partial_nregs): Use
15700 SPARC_INT_ARG_MAX to determine where to split unnamed
15701 complex FP arguments.
15703 2003-07-03 Jan Hubicka <jh@suse.cz>
15705 * basic-block.h (create_basic_block, merge_blocks_nomove): Kill.
15706 * cfgcleanup.c (merge_blocks): Rename to merge_blocks_move.
15707 (merge_blocks_move_predecessor_nojumps,
15708 merge_blocks_move_successor_nojumps): Use merge_blocks.
15709 (try_optimize_cfg): Use merge_blocks_move.
15710 * cfgrtl.c (create_basic_block): Rename to rtl_create_basic_block.
15711 (merge_blocks_nomove): Rename to rtl_merge_blocks.
15712 (cfg_layout_create_basic_block): New.
15713 (rtl_can_merge_blocks): New.
15714 (cfg_layout_split_block): Do not alloc aux by hand.
15715 * cfghooks.h (cfg_hooks): Add create_basic_block, can_merge_blocks_p,
15717 (create_basic_block, can_merge_blocks_p, merge_blocks): New macros.
15718 * cfglayout.c (cfg_layout_duplicate_bb): Do not allocate aux by hand.
15719 * cfgloopmanip.c (loop_split_edge_with): Likewise.
15720 * ifcvt.c (merge_if_block): Use merge_blocks_nomove.
15722 * basic-block.h (basic_block_def): Add field 'rbi'.
15723 * bb-reorder.c (find_traces, rotate_loop, mark_bb_visited,
15724 find_traces_1_round, copy_bb, connect_traces): Update use of rbi.
15725 * cfg.c (entry_exit_blocks): Add new field.
15726 * cfglayout.c: Include alloc-pool.h;
15727 (cfg_layout_pool): New.
15728 (record_effective_endpoints, fixup_reorder_chain,
15729 fixup_fallthru_exit_predecessor, cfg_layout_duplicate_bb): Update use
15731 (cfg_layout_initialize_rbi): New function.
15732 (cfg_layout_initialize): Use it.
15733 (cfg_layout_finalize): Clear rbi fields.
15734 * cfglayout.h (RBI): Kill.
15735 (cfg_layout_initialize_rbi): Declare.
15736 * cfgloopmanip.c (copy_bbs): Use rbi.
15737 (record_exit_edges): Likewise.
15738 (duplicate_loop_to_header_edge): Likewise.
15739 * cfgrtl.c (cfg_layout_create_basic_block): Use
15740 cfg_layout_initialize_rbi.
15741 (cfg_layout_split_block): Use rbi.
15742 (cfg_layout_delete_block): Likewise.
15743 * loop-init.c (loop_optimizer_finalize): Likewise.
15744 * loop-unswitch.c (unswitch_loop): Likewise.
15745 * tracer.c (seen, tail_duplicate, layout_superblocks): Likewise.
15747 * cfgrtl.c: Update comments.
15748 (try_redirect_by_replacing_jump): New argument.
15749 (redirect_branch_edge): Break out from ...
15750 (rtl_redirect_edge_and_branch): ... this one.
15751 (update_cfg_after_block_merging): Break out from ...
15752 (rtl_merge_blocks): ... this one.
15753 (cfg_layout_split_edge): New.
15754 (cfg_layout_merge_blocks): New.
15755 (cfg_layout_can_merge_blocks_p): New.
15756 (cfg_layout_redirect_edge_and_branch): Reorganize.
15757 (cfg_layout_rtl_cfg_hooks): Fill in.
15758 (cfg_layout_delete_block): Kill barriers.
15759 * cfganal.c (can_fallthru): Deal with exit blocks
15760 * cfglayout.c (cfg_layout_function_header): New function
15761 (record_effective_endpoints): Record function header.
15762 (fixup_reorder_chain): Fixup dead jumptables; place header
15764 * basic-block.h (CLEANUP_CFGLAYOUT): New flag.
15765 * bb-reorder.c (cfg_layout_initialize): Update call.
15766 * cfgcleanup.c (try_optimize_cfg): Supress optimizations of fallthru
15767 edges in cfglayout mode.
15768 * cfglayout.c (cleanup_unconditional_jumps): Kill.
15769 (cfg_layout_initialize): Kill agrument loops; use cfgcleanup.
15770 * cfglayout.h (cfg_layout_initialize): Update prototype.
15771 * cfgloop.h (CP_INSIDE_CFGLAYOUT): Kill.
15772 * cfgloopmanip.c (loop_split_edge_with): Use split_edge.
15773 * flow.c (propagate_block): Do not crash when basic block ends
15774 by first insn in the chain.
15775 * loop-init.c (loop_optimizer_init): First enter cfglayout mode; later
15777 * tracer.c (tracer): Update call of cfg_layout_initialize.
15779 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15781 * Makefile.in: Use dependency variables in lieu of explicit
15784 2003-07-03 Steven Bosscher <steven@gcc.gnu.org>
15786 * rtl.h (ECF_*, flags_from_decl_or_type): Move from here...
15787 * tree.h: ...to here.
15789 2003-07-03 Kazu Hirata <kazu@cs.umass.edu>
15791 * config/s390/2064.md: Fix comment typos.
15792 * config/s390/2084.md: Likewise.
15793 * config/s390/s390.c: Likewise.
15794 * config/s390/s390.md: Likewise.
15795 * config/sh/sh.c: Likewise.
15796 * config/sh/sh.h: Likewise.
15797 * config/sh/sh.md: Likewise.
15798 * config/sparc/sparc.c: Likewise.
15799 * config/sparc/sparc.h: Likewise.
15800 * config/sparc/sparc.md: Likewise.
15801 * config/stormy16/stormy16.c: Likewise.
15802 * config/stormy16/stormy16.h: Likewise.
15803 * config/stormy16/stormy-abi: Fix a typo.
15805 2003-07-03 Kelley Cook <kelleycook@wideopenwest.org>
15807 * Makefile.in (ifcvt.o): Depend on OPTABS_H.
15809 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15811 * config/mips/mips.h (save_argv): Delete.
15813 2003-07-03 Roger Sayle <roger@eyesopen.com>
15816 * fold-const.c (extract_muldiv_1): There's nothing that can be done
15817 if the expression is a SAVE_EXPR.
15819 2003-07-03 Kazu Hirata <kazu@cs.umass.edu>
15821 * config/m32r/m32r.c: Fix comment typos.
15822 * config/m68hc11/m68hc11.c: Likewise.
15823 * config/m68hc11/m68hc11.h: Likewise.
15824 * config/m68k/m68k.c: Likewise.
15825 * config/mcore/mcore.c: Likewise.
15826 * config/mcore/mcore.h: Likewise.
15827 * config/mcore/mcore.md: Likewise.
15828 * config/mips/mips.c: Likewise.
15829 * config/mips/mips.h: Likewise.
15830 * config/mips/mips.md: Likewise.
15831 * config/mips/netbsd.h: Likewise.
15832 * config/mn10300/mn10300.c: Likewise.
15834 2003-07-03 Andreas Schwab <schwab@suse.de>
15836 * dbxout.c (pending_bincls): Move decl down inside
15837 DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO section.
15839 2003-07-02 Nathan Sidwell <nathan@codesourcery.com>
15841 * rtl.h (NOTE_DATA): Refer to whole union.
15842 * emit-rtl.c (emit_note): Use memset to clear NOTE_DATA.
15844 2003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
15846 PR optimization/11381
15847 * simplify-rtx.c (simplify_relational_operation): Check that
15848 two equal operands have no side-effects before simplifying
15851 2003-07-02 Jeff Law <law@redhat.com>
15853 * expr.c (do_store_flag): Remove special case folding for
15854 single bit tests. Instead call back into the commonized folder
15856 * fold-const.c (fold_single_bit_test): New function, mostly
15857 extracted from do_store_flag, with an additional case extracted
15859 (fold): Call fold_single_bit_test appropriately.
15860 * tree.h (fold_single_bit_test): Prototype.
15862 2003-07-02 Zack Weinberg <zack@codesourcery.com>
15864 * system.h: Include filenames.h.
15865 (IS_DIR_SEPARATOR, IS_ABSOLUTE_PATHNAME): Don't define.
15866 (DIR_SEPARATOR, DIR_SEPARATOR_2): If not already defined,
15867 define based on HAVE_DOS_BASED_FILE_SYSTEM.
15868 * config/i386/xm-cygwin.h, config/i386/xm-djgpp.h
15869 * config/i386/xm-mingw32.h: Don't define
15870 HAVE_DOS_BASED_FILE_SYSTEM,
15871 DIR_SEPARATOR, or DIR_SEPARATOR_2.
15872 * doc/hostconfig.texi: Update to match.
15874 * cppfiles.c, gcc.c, gensupport.c, protoize.c,
15875 config/i386/cygwin.h:
15876 Use IS_ABSOLUTE_PATH throughout.
15877 * gcc.c (DIR_UP): Delete, unused.
15878 * protoize.c (IS_SAME_PATH): Define in terms of
15880 (is_abspath): Delete.
15882 2003-07-02 Kazu Hirata <kazu@cs.umass.edu>
15884 * config/i386/emmintrin.h: Fix comment typos.
15885 * config/i386/i386.c: Likewise.
15886 * config/i386/i386.h: Likewise.
15887 * config/i386/sco5.h: Likewise.
15888 * config/ia64/ia64.c: Likewise.
15889 * config/ia64/itanium2.md: Likewise.
15891 2003-07-02 H.J. Lu <hongjiu.lu@intel.com>
15893 * dbxout.c (pending_bincls): Replace DBX_USE_BINCLS with
15895 (emit_bincl_stab): Same.
15896 (emit_pending_bincls): Same.
15898 2003-07-02 Kazu Hirata <kazu@cs.umass.edu>
15900 * config/h8300/h8300.c (compute_mov_length): Fix the length of
15901 loading CONST0_RTX (SFmode).
15902 * config/h8300/h8300.h (CONST_DOUBLE_OK_FOR_LETTER_P): Change
15903 'G' to CONST0_RTX (SFmode).
15904 * config/h8300/h8300.md (movsf_h8300): Change the first
15906 (movsf_h8300h): Likewise.
15908 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
15910 * c-common.h (c_common_init_options): New prototype.
15911 * c-opts.c (deferred_size): Remove.
15912 (defer_opt): Array is now pre-allocated.
15913 (c_common_init_options): Pre-allocate deferred_opts. Make
15914 lang_flags unsigned.
15915 (push_command_line_options): Free deferred_opts.
15916 * hooks.c (hook_uint_uint_constcharptrptr_0): New.
15917 * hooks.h (hook_uint_uint_constcharptrptr_0): New.
15918 * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): Update.
15919 * langhooks.h (struct lang_hooks): New prototype for init_options.
15920 * main.c (main): Cast argv.
15921 * opts.c (handle_option, handle_options): Update prototypes.
15922 (decode_options): save_argc, save_argv are not global. Constify.
15923 * opts.h (decode_options): New prototype.
15924 * toplev.c (general_init): New protoype.
15925 (save_argv): Make static.
15926 (save_argc): Remove.
15927 (print_switch_values, general_init): Constify.
15928 (toplev_main): Save argv.
15929 * toplev.h (toplev_main): Update prototype.
15930 (save_argc, save_argv): Remove.
15932 2003-07-02 David Edelsohn <edelsohn@gnu.org>
15934 * dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.
15935 (emit_bincl_stab): Same.
15936 (emit_pending_bincls): Same.
15938 2003-07-02 Nathan Sidwell <nathan@codesourcery.com>
15941 * ginclude/stddef.h (offsetof): Remove cast to 'char &'. Explain why.
15943 2003-07-02 Andreas Schwab <schwab@suse.de>
15945 * dbxout.c (pending_bincls): Only define if DBX_DEBUGGING_INFO.
15947 2003-07-02 Eric Botcazou <ebotcazou@libertysurf.fr>
15949 PR optimization/11210
15950 * expr.c (handled_component_p) [NOP_EXPR]: Add ??? note
15951 about the behaviour with regard to bitfields.
15952 * fold-const (decode_field_reference): Record outermost type in
15953 case the expression is a NOP. Strip all NOPs. Set the signedness
15954 to that of the outermost type (if any) when the bitsize is equal
15955 to the size of the type.
15957 2003-07-02 Richard Sandiford <rsandifo@redhat.com>
15959 * config/mips/mips.md (addsi3): Remove workaround for adds of -32768.
15960 (addsi3_internal, adddi3, adddi3_internal_2): Likewise.
15961 (adddi3_internal_3, addsi3_internal_2): Likewise.
15963 2003-07-02 Richard Sandiford <rsandifo@redhat.com>
15965 * config/mips/mips.c (machine_function): Add new fields:
15966 ignore_hazard_length_p and all_noreorder_p.
15967 (mips_flag_delayed_branch): New variable.
15968 (override_options): Treat '/' as an operand punctuation character.
15969 Set up mips_flag_delayed_branch.
15970 (print_operand): Handle '/'.
15971 (mips_output_function_prologue): Put the whole function in
15972 .set noreorder and .set nomacro if all_noreorder_p is true.
15973 (mips_output_function_epilogue): End the noreorder/nomacro sequence.
15974 (mips16_optimize_gp): Remove "first insn" parameter.
15975 (mips16_lay_out_constants): New function, split out from mips_reorg.
15976 (mips_avoid_hazard, mips_avoid_hazards): New functions.
15977 (mips_reorg): For mips16 code, call mips16_lay_out_constant
15978 and (optionally) mips16_optimize. If TARGET_EXPLICIT_RELOCS,
15979 do delayed-branch scheduling followed by hazard detection.
15980 (mips_adjust_insn_length): Only account for hazards if
15981 !ignore_hazard_length_p.
15982 (mips_output_load_label): Add a nop to the o32 sequence if
15983 the target suffers from load delays.
15984 (mips_output_conditional_branch): Add %/ to the end of branches.
15985 (mips_output_division): Fill the branch delay slot with %#.
15986 * config/mips/mips.md: Remove redundant '%*' from mips16 branch
15987 instructions. End all other %* branches with %/.
15988 (ffssi2, ffsdi2): Fix lengths.
15989 (truncdisi2, truncdihi2, truncdiqi2): Add store attributes.
15990 (fix_truncdfsi2_macro): Turn off .set nomacro if appropriate.
15991 (fix_truncsfsi2_macro): Likewise.
15992 (mov_lwl): Set hazard to "none".
15993 (ashldi3_internal): Fill the branch delay slot with %#.
15994 (ashrdi3_internal, lshrdi3_internal): Likewise.
15995 (exception_receiver): Explicitly set $28.
15996 (hazard_nop): New pattern.
15998 2003-07-02 Jan Hubicka <jh@suse.cz>
16000 * cgraphunit.c (cgraph_finalize_unit): Set current_function_decl
16001 before calling tree_inlinable_function_p.
16003 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
16005 * fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5
16006 <internal/stdio_core.h> too.
16007 (stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> and
16008 <internal/wchar_core.h> too.
16009 Substitute va_list uses in inline definition.
16010 * fixinc/fixincl.x: Regenerate.
16012 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
16014 * config/mips/iris5.h (SET_FILE_NUMBER): Moved here from iris3.h.
16015 Undef before redefinition.
16016 (LABEL_AFTER_LOC): Likewise.
16017 (DEFAULT_SIGNED_CHAR): Likewise.
16018 (ASM_OUTPUT_ASCII): Moved here from iris4.h.
16021 * config/mips/iris3.h: Remove, unused.
16022 * config/mips/iris4.h: Likewise.
16024 * config/mips/mips.h (STACK_ARGS_ADJUST): Remove, unused.
16026 * config/mips/iris5.h (TARGET_DEFAULT): Move ...
16027 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here to
16028 target_cpu_default.
16030 * config/mips/iris5.h: Move explicit includes ...
16031 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here.
16033 * config/mips/iris6.h (MIPS_ISA_DEFAULT, MIPS_ABI_DEFAULT): Move ...
16034 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
16037 * config/mips/iris6.h (TARGET_DEFAULT): Move ...
16038 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
16039 target_cpu_default.
16041 * config/mips/iris6.h: Fix IRIX spelling.
16042 (MULTILIB_DEFAULTS): Undef before redefinition.
16044 * config/mips/iris6.h: Move explicit includes ...
16045 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here.
16047 2003-07-02 Jan Hubicka <jh@suse.cz>
16049 * cgraph.c (cgraph_mark_needed_node, cgraph_varpool_mark_needed_node,
16050 cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
16051 Use next_needed field instead of aux to maintain the queue.
16052 * cgraph.h (cgraph_node): Add next_needed.
16053 (cgraph_varpool_node): Add next_needed; remove aux.
16054 * cgraphunit.c (cgraph_finalize_compilation_unit): Use next_needed.
16056 2003-07-02 Jan Hubicka <jh@suse.cz>
16058 * cgraphunit.c (cgraph_finalize_function): Set finalized.
16059 (cgraph_finalize_function): Do not examine inlinablility.
16060 (cgraph_finalize_compilation_unit): Do it here.
16061 * cgraph.h (cgraph_local_info): Add finalized field.
16063 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
16065 * ggc-common.c (gt_pch_save): Cast MAP_FAILED to void *.
16066 (gt_pch_restore): Likewise.
16068 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
16070 * config/alpha/alpha.c: Fix comment typos.
16071 * config/alpha/elf.h: Likewise.
16072 * config/arm/arm.c: Likewise.
16073 * config/arm/arm.h: Likewise.
16074 * config/arm/arm.md: Likewise.
16075 * config/arm/t-arm-coff: Likewise.
16076 * config/arm/t-strongarm-pe: Likewise.
16077 * config/arm/xscale-elf.h: Likewise.
16078 * config/avr/avr.h: Likewise.
16080 2003-07-01 Jeff Law <law@redhat.com>
16082 * stmt.c (any_pending_cleanups): Remove another redundant test.
16084 2003-07-01 David Edelsohn <edelsohn@gnu.org>
16085 J"orn Rennecke <joern.rennecke@superh.com>
16087 * config/rs6000/rs6000.md (ctr{s,d}i_internal?): Add earlyclobber
16090 2003-07-01 Devang Patel <dpatel@apple.com>
16092 * dbxout.c (DBXOUT_DECR_NESTING): Emit pending bincls, if required.
16093 (binclstatus): New.
16094 (struct dbx_file): New members - bincl_status, pending_bincl_name and
16096 (pending_bincls): New.
16097 (dbxout_init): Initialize new dbx_file members.
16098 (dbxout_start_source_file): Same.
16099 (emit_bincl_stab): New function.
16100 (emit_pending_bincls): Same.
16101 (emit_pending_bincls_if_required): Same.
16102 (dbxout_end_source_file): Emit EINCL stab only if BINCL is already
16104 (dbxout_begin_block): Emit pending BINCL stabs.
16105 (dbxout_end_block): Same.
16106 (dbxout_function_decl): Same.
16107 (dbxout_continue): Same.
16108 (dbxout_type): Same.
16109 (dbxout_class_name_qualifiers): Same.
16110 (dbxout_symbol): Same.
16111 (dbxout_symbol_location): Same.
16112 (dbxout_parms): Same.
16114 2003-07-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16116 * c-semantics.c (genrtl_case_label): Fix format specifier bug.
16117 * cfgrtl.c (rtl_verify_flow_info_1): Likewise.
16119 2003-07-01 Andreas Jaeger <aj@suse.de>
16121 * fold-const.c: Convert prototypes to ISO C90.
16122 * function.c: Likewise.
16123 * function.h: Likewise.
16125 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
16127 * doc/contrib.texi: Fix typos.
16128 * doc/invoke.texi: Likewise.
16129 * doc/passes.texi: Likewise.
16130 * doc/sourcebuild.texi: Likewise.
16131 * doc/tm.texi: Likewise.
16133 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
16135 * basic-block.h: Fix comment typos.
16136 * bb-reorder.c: Likewise.
16137 * c-format.c: Likewise.
16138 * cfgcleanup.c: Likewise.
16139 * cfghooks.h: Likewise.
16140 * cfgloop.c: Likewise.
16141 * cfgloopmanip.c: Likewise.
16142 * cfgrtl.c: Likewise.
16143 * cgraph.h: Likewise.
16144 * cgraphunit.c: Likewise.
16145 * combine.c: Likewise.
16146 * convert.c: Likewise.
16147 * dbxout.c: Likewise.
16150 * diagnostic.c: Likewise.
16151 * dwarf2out.c: Likewise.
16152 * et-forest.h: Likewise.
16153 * flow.c: Likewise.
16154 * fold-const.c: Likewise.
16155 * function.h: Likewise.
16156 * gcov-io.h: Likewise.
16157 * gcov.c: Likewise.
16158 * gcse.c: Likewise.
16159 * genautomata.c: Likewise.
16160 * ggc-common.c: Likewise.
16161 * ggc-page.c: Likewise.
16162 * loop-unroll.c: Likewise.
16163 * loop-unswitch.c: Likewise.
16164 * loop.c: Likewise.
16165 * mips-tfile.c: Likewise.
16166 * optabs.c: Likewise.
16167 * ra-build.c: Likewise.
16168 * ra-colorize.c: Likewise.
16169 * ra-rewrite.c: Likewise.
16171 * regmove.c: Likewise.
16172 * reload.c: Likewise.
16173 * rtlanal.c: Likewise.
16174 * sched-ebb.c: Likewise.
16175 * sched-int.h: Likewise.
16176 * sched-vis.c: Likewise.
16177 * sreal.c: Likewise.
16178 * ssa-ccp.c: Likewise.
16180 * toplev.c: Likewise.
16181 * tree-inline.c: Likewise.
16182 * value-prof.c: Likewise.
16183 * value-prof.h: Likewise.
16185 2003-07-01 Nathan Sidwell <nathan@codesourcery.com>
16187 * rtl.h (emit_line_note_after): Remove.
16188 (emit_note_copy_after, emit_note_copy): New.
16189 * emit-rtl.c (reorder_insns_with_line_notes): Replace
16190 emit_line_note_after with emit_note_copy_after.
16191 (emit_insn_after_with_line_notes): Likewise.
16192 (emit_line_note_after): Kill.
16193 (emit_note_copy_after): New.
16194 (emit_note_copy): New.
16195 * function.c (emit_return_into_block): Use emit_note_copy_after.
16196 (thread_prologue_and_epilogue_insns): Likewise.
16197 * integrate.c (expand_inline_function): Use emit_note_copy.
16198 (copy_insn_list): Likewise.
16199 * unroll.c (copy_loop_body): Likewise.
16200 * cfglayout.c (duplicate_insn_chain): Likewise.
16202 2003-07-01 Nathan Sidwell <nathan@codesourcery.com>
16204 * c-tree.h (define_label): Replace filename and lineno arguments
16206 * c-decl.c (poplevel): Adjust define_label call.
16207 (pop_label_level): Likewise.
16208 (define_label): Replace filename and lineno arguments with a
16210 (store_parm_decls): Use DECL_SOURCE_LOCATION.
16211 * c-parse.in (label): Adjust define_label call.
16213 2003-07-01 Neil Booth <neil@daikokuya.co.uk>
16215 * config/sol2.h, config/alpha/alpha.h, config/alpha/linux.h,
16216 config/i386/i386-interix.h, config/ia64/hpux.h, config/mips/iris6.h,
16217 config/mips/linux.h, config/mips/mips.h, config/pa/pa-hpux.h,
16218 config/pa/pa-hpux10.h, config/pa/pa-hpux11.h, config/pa/pa-pro-end.h,
16219 config/pa/pa.h, config/pa/rtems.h: Use c_dialect_ macros.
16221 2003-07-01 Andreas Jaeger <aj@suse.de>
16223 * final.c: Convert prototypes to ISO C90.
16224 * flow.c: Likewise.
16225 * flags.h: Likewise.
16226 * gcov-io.c: Likewise.
16227 * gcov-io.h: Likewise.
16229 See ChangeLog.9 for earlier changes.