1 2003-06-27 Gunther Nikl <gni@gecko.de>
3 * unwind-c.c (PERSONALITY_FUNCTION): Delete duplicate define.
5 2003-06-27 Chris Demetriou <cgd@broadcom.com>
7 * config/mips/mips.c (mips_build_va_list): Make padding in
8 va_list structure explicit to avoid -Wpadded warnings.
10 2003-06-27 Ulrich Weigand <uweigand@de.ibm.com>
12 * config/s390/s390.h (SECONDARY_OUTPUT_RELOAD_CLASS): Define.
13 * config/s390/s390.c (s390_secondary_output_reload_class): New function.
14 * config/s390/s390-protos.h (s390_secondary_output_reload_class):
16 * config/s390/s390.md ("reload_outti", "reload_outdi",
17 "reload_outdf"): New expanders.
19 * config/s390/s390.md ("movti" + splitters): Handle non-offsettable
20 memory operands as source.
21 ("movdi" + splitters): Likewise.
22 ("movdf" + splitters): Likewise.
23 * config/s390/s390.c (s390_split_ok_p): New function.
24 * config/s390/s390-protos.h (s390_split_ok_p): Declare it.
26 2003-06-27 Kazu Hirata <kazu@cs.umass.edu>
28 * combine.c (force_to_mode): Replace the equality comparison
29 of INTVALs with a pointer equality comparison.
30 (simplify_comparison): Likewise.
32 2003-06-27 Kazu Hirata <kazu@cs.umass.edu>
34 * jump.c (rtx_renumbered_equal_p): Replace an expression that
35 is known to be 0 with 0.
37 2003-06-27 Kazu Hirata <kazu@cs.umass.edu>
39 * gcse.c (expr_equiv_p): Replace expressions that are known to
42 2003-06-27 Kazu Hirata <kazu@cs.umass.edu>
44 * cse.c (fold_rtx): Replace the equality comparison of INTVALs
45 with a pointer equality comparison.
47 2003-06-27 Kazu Hirata <kazu@cs.umass.edu>
49 * rtlanal.c (reg_mentioned_p): Return 0 earlier if REG and IN
50 are known to be not equivalent.
52 2003-06-27 Richard Henderson <rth@redhat.com>
54 * config/alpha/alpha.c (function_arg): Don't pass small aggregates
55 in floating point registers. Validate that we don't receive complex
56 values here. Use #elif.
57 (return_in_memory, function_value): New.
58 (alpha_va_arg): Handle complex values as two arguments.
59 * config/alpha/alpha.h (RETURN_IN_MEMORY): Use return_in_memory.
60 (FUNCTION_VALUE, LIBCALL_VALUE): Use function_value.
61 (SPLIT_COMPLEX_ARGS): New.
62 * config/alpha/alpha-protos.h: Update.
64 2003-06-27 Ulrich Weigand <uweigand@de.ibm.com>
66 * ggc-page.c (inverse_table): Change type of mult to size_t.
67 (compute_inverse): Compute inverse using size_t, not unsigned int.
68 Compute inverse also for sizes larger than half a machine page.
70 Fri Jun 27 18:36:12 CEST 2003 Jan Hubicka <jh@suse.cz>
72 * toplev.c (rest_of_decl_compilation): Only varpoolize argument
73 when called before cgraph_optimize.
75 2003-06-27 Zack Weinberg <zack@codesourcery.com>
77 * config/darwin.h, config/elfos.h, config/i960/i960-coff.h
78 * config/m68k/coff.h: ASM_FILE_START_FILE_DIRECTIVE should
79 be TARGET_ASM_FILE_START_FILE_DIRECTIVE.
81 Fri Jun 27 17:41:16 CEST 2003 Jan Hubicka <jh@suse.cz>
83 * cgraph.c (cgraph_node, cgraph_varpool_node): Avoid re-initializing
86 2003-06-27 Hans-Peter Nilsson <hp@axis.com>
88 * defaults.h (REGISTER_MOVE_COST): Define default here.
89 * regclass.c: Don't define default REGISTER_MOVE_COST here.
90 * reload.c, reload1.c: Ditto.
92 2003-06-27 Richard Earnshaw <rearnsha@arm.com>
94 * flags.h: Really install previous change.
96 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
98 * rtl.h (emit_note): Remove FILE parameter.
99 * emit-rtl.c (emit_line_note): Adjust emit_note call.
100 (emit_note): Remove FILE parameter. Adjust.
101 * builtins.c (expand_builtin_expect): Adjust emit_note call.
102 * c-semantics.c (genrtl_scope_stmt): Likewise.
103 (expand_stmt): Likewise.
104 * cfglayout.c (reemit_insn_block_notes): Likewise.
105 (duplicate_insn_chain): Likewise.
106 * except.c (expand_eh_region_start, expand_eh_region_end,
107 sjlj_emit_function_enter): Likewise.
108 * explow.c (probe_stack_range): Likewise.
109 * expr.c (emit_block_move_via_loop): Likewise.
110 * function.c (init_function_start, expand_function_start,
111 expand_function_end, thread_prologue_and_epilogue_insns): Likewise.
112 * integrate.c (expand_inline_function, copy_insn_list): Likewise.
113 * reg-stack.c (compensate_edge): Likewise.
114 * reload1.c (reload): Likewise.
115 * rtlanal.c (hoist_insn_to_edge): Likewise.
116 * stmt.c (expand_fixup, expand_start_loop, expand_start_null_loop,
117 expand_loop_continue_here, expand_end_loop, expand_continue_loop,
118 expand_exit_loop_top_cond, expand_value_return,
119 expand_start_bindings_and_block, expand_end_bindings,
120 expand_decl_cleanup, expand_start_case): Likewise.
121 * unroll.c (copy_loop_body
122 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Likewise.
123 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
124 * config/rs6000/rs6000.c (rs6000_emit_eh_toc_restore,
125 rs6000_emit_allocate_stack, rs6000_output_function_prologue,
126 rs6000_output_function_epilogue, rs6000_output_mi_thunk): Likewise.
127 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
128 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
130 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
132 * c-tree.h (grokfield): Remove unused filename and line parameters.
133 * c-decl.c (grokfield): Remove unused filename and line parameters.
134 * c-parse.in (component_decl): Adjust field grokking rules, adjust
136 (component_declarator): Likewise.
137 (component_notype_declarator): Likewise.
138 * objc/objc-act.c (build_module_descriptor): Adjust grokfield
140 (build_protocol_template, build_method_prototype_list_template,
141 build_method_prototype_template, build_category_template,
142 build_selector_template, build_class_template,
143 build_super_template, build_ivar_template,
144 build_ivar_list_template, build_method_list_template,
145 build_method_template, add_instance_variable): Likewise.
147 2003-06-27 Kazu Hirata <kazu@cs.umass.edu>
149 * stmt.c (do_jump_if_equal): Return 0 earlier if OP1 and
150 OP2 are known to be not equivalent.
152 2003-06-26 Devang Patel <dpatel@apple.com>
154 * final.c (debug_flush_symbol_queue): New function.
155 (debug_queue_symbol): New function.
156 (debug_free_queue): New function.
157 (debug_nesting): New variable.
158 (symbol_queue): New variable.
159 (symbol_queue_index): Same.
160 (symbol_queue_size): Same.
161 * debug.h (debug_flush_symbol_queue): New.
162 (debug_queue_symbol): New.
163 (debug_free_queue): New.
164 (debug_nesting): New.
165 (symbol_queue_index): New.
166 * dbxout.c (DBXOUT_DECR_NESTING): New macro.
167 (DBXOUT_DECR_NESTING_AND_RETURN): New macro.
168 (dbxout_init): Delay symbol output.
169 (dbxout_global_decl): Save, set and reset TREE_USED bit around
170 dbxout_symbol() call.
171 (dbxout_begin_function): Same.
172 (dbxout_finish): Free symbol queue.
173 (dbxout_type): Put appropriate symbols in queue.
174 (dbxout_symbol): Put info for symbol's type in queue.
175 Decrement/Increment nesting counts flush symbol queue appropriately.
176 (dbxout_parms): Increment dbxout nesting.
177 (dbxout_reg_parms): Same.
178 * flags.h (flag_debug_only_used_symbols): New.
179 * toplev.c (flag_debug_only_used_symbols): New variable.
180 (lang_independent_options): Add entries for new option
181 -feliminate-unused-debug-symbols.
182 * common.opt: Add entry for -feliminate-unused-debug-symbols.
183 * opts.c (common_handle_options): Same.
184 * config/rs6000/darwin.h (CC1_SPEC): Interpret -gused as
185 -feliminate-unused-debug-symbols.
186 * doc/invoke.texi (Debugging Options): Document
187 -feliminate-unused-debug-symbols.
189 2003-06-26 Roger Sayle <roger@eyesopen.com>
190 Jakub Jelinek <jakub@redhat.com>
192 * builtins.c (expand_builtin_sprintf): Use c_getstr and strlen to
193 obtain the format string instead of using TREE_STRING_POINTER and
194 TREE_STRING_LENGTH. Only optimize sprintf(dst,"%s",src) when the
195 return value is unused or the length of src is a known constant.
197 2003-06-26 Richard Henderson <rth@redhat.com>
199 * config/ia64/ia64.h (REGISTER_NAMES): R0 is really AP.
201 2003-06-26 Richard Henderson <rth@redhat.com>
203 * config/ia64/ia64.c (ia64_expand_call): Don't add ar.pfs for sibcalls.
204 (ia64_split_call): Only load descriptor for GP register inputs.
205 (ia64_expand_epilogue): Check current_frame_info.mask not
206 current_function_is_leaf to restore ar.pfs.
208 2003-06-26 Richard Henderson <rth@redhat.com>
210 * emit-rtl.c (try_split): Append to new CALL_INSN_FUNCTION_USAGE
211 instead of replacing it.
213 2003-06-26 Richard Henderson <rth@redhat.com>
215 * flow.c (propagate_one_insn): Kill function return value
216 registers across tail calls.
218 * flow.c (propagate_one_insn): Preserve live-at-end registers
221 2003-06-26 J"orn Rennecke <joern.rennecke@superh.com>
223 * reload.c (can_reload_into): New function.
224 (push_reload): Use it.
226 2003-06-26 Kazu Hirata <kazu@cs.umass.edu>
228 * config/h8300/h8300.c (compute_a_rotate_length): Fix the
229 references to the amount of a rotation.
231 2003-06-26 Nathanael Nerode <neroden@gcc.gnu.org>
233 * config/sh/coff.h: Don't include dbxcoff.h.
234 * config.gcc: List it here.
236 2003-06-26 Kazu Hirata <kazu@cs.umass.edu>
238 * postreload.c (reload_cse_simplify_set): Call cselib_lookup
239 earlier. Don't check if SRC is a constant.
241 2003-06-26 Kazu Hirata <kazu@cs.umass.edu>
243 * Makefile.in (OBJS): Add postreload.o.
244 Remove cselib.h from the dependency list for reload1.o.
245 Add a dependency list for postreload.o.
246 * reload.h: Change the comment for the prototype of
248 * reload1.c: Don't include cselib.h.
249 (reload_cse_regs): Move to postreload.c
250 (reload_cse_regs_1): Likewise.
251 (reload_cse_noop_set_p): Likewise.
252 (reload_cse_simplify_set): Likewise.
253 (reload_cse_simplify_operands): Likewise.
254 (RELOAD_COMBINE_MAX_USES): Likewise.
255 (reload_combine_ruid): Likewise.
256 (LABEL_LIVE): Likewise.
257 (reload_combine): Likewise.
258 (reload_combine_note_use): Likewise.
259 (reload_combine_note_store): Likewise.
260 (reg_set_luid): Likewise.
261 (reg_offset): Likewise.
262 (reg_base_reg): Likewise.
263 (reg_mode): Likewise.
264 (move2add_luid): Likewise.
265 (move2add_last_label_luid): Likewise.
266 (MODES_OK_FOR_MOVE2ADD): Likewise.
267 (reload_cse_move2add): Likewise.
268 (move2add_note_store): Likewise.
269 (reload_cse_simplify): Likewise.
272 2003-06-26 Kazu Hirata <kazu@cs.umass.edu>
274 * config/avr/avr.c (final_prescan_insn): Remove support for
276 * config/avr/avr.h (MASK_RTL_DUMP): Remove.
277 (TARGET_RTL_DUMP): Likewise.
278 (TARGET_SWITCHES): Remove -mrtl.
280 2003-06-26 Kazu Hirata <kazu@cs.umass.edu>
282 * config/h8300/h8300-protos.h: Change emit_a_rotate to
283 output_a_rotate. Add a prototype for compute_a_rotate_length.
284 * config/h8300/h8300.c (emit_a_rotate): Change to
286 (compute_a_rotate_length): New.
287 (h8300_adjust_insn_length): Remove.
288 * config/h8300/h8300.h (ADJUST_INSN_LENGTH): Remove.
289 * config/h8300/h8300.md (adjust_length): Remove.
290 (*rotlqi3_1): Use output_a_rotate and compute_a_rotate_length.
291 (*rotlhi3_1): Likewise.
292 (*rotlsi3_1): Likewise.
294 2003-06-26 Roger Sayle <roger@eyesopen.com>
295 Richard Henderson <rth@redhat.com>
297 * builtins.c (expand_builtin_mathfn): Always stabilize the argument
298 list against re-evaluation. If expand_unop fails, call expand_call
299 with the stabilized argument list rather than return NULL_RTX.
300 (expand_builtin_mathfn2): Likewise, always stabilize the argument
301 list, and call expand_call ourselves if expand_binop fails.
303 2003-06-26 Eric Botcazou <ebotcazou@libertysurf.fr>
305 PR optimization/11210
306 * fold-const (decode_field_reference): Strip only NOPs that
307 don't affect the sign.
309 2003-06-26 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
311 * gcc/config/sh/sh.md (push_fpscr): Enable for TARGET_SH2E.
312 (pop_fpscr, fpu_switch): Likewise.
314 2003-06-26 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
318 * Makefile.in (value-prof.o): New.
319 (LIBGCOV): Add _gcov_merge_single and _gcov_merge_delta
320 (profile.o): Add value-prof.h and tree.h dependency.
321 * flags.h (flag_profile_values): Declare.
322 * gcov-io.h (GCOV_COUNTERS, GCOV_COUNTER_NAMES, GCOV_MERGE_FUNCTIONS):
324 (GCOV_COUNTER_V_INTERVAL, GCOV_COUNTER_V_POW2, GCOV_COUNTER_V_SINGLE,
325 GCOV_COUNTER_V_DELTA): New counter sections.
326 (__gcov_merge_single, __gcov_merge_delta): Declare.
327 * flow.c (mark_used_regs): Set subregs_of_mode only when the
328 structure is initialized.
329 * libgcov.c (__gcov_merge_single, __gcov_merge_delta): New functions.
330 * profile.c: Include value-prof.h and tree.h.
331 (gen_interval_profiler, gen_pow2_profiler, gen_one_value_profiler,
332 gen_const_delta_profiler, instrument_values): New static functions.
333 (get_exec_counts): Fix comment.
334 (branch_prob): Invoke instrument_values.
335 * toplev.c (flag_profile_values): New flag.
336 * doc/invoke.texi (-fprofile-values): Document.
338 2003-06-26 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
340 * Makefile.in (cfgrtl.o): Add expr.h dependency.
341 * cfgrtl.c: Include expr.h.
342 (mark_killed_regs, safe_insert_insn_on_edge): New
344 * config/i386/i386.h (AVOID_CCMODE_COPIES): Define.
345 * basic-block.h (safe_insert_insn_on_edge): Declare.
347 2003-06-26 Neil Booth <neil@daikokuya.co.uk>
349 * c-opts.c (missing_arg): Make non-static.
350 (c_common_handle_option): Don't check for missing arguments.
351 * opts.c (handle_option): Check for missing arguments.
353 2003-06-26 David Edelsohn <edelsohn@gnu.org>
355 * config/rs6000/power4.md (power4-veccomplex): Correct latency.
357 2003-06-25 Loren James Rittle <ljrittle@acm.org>
359 * configure.in (ld_vers): Portability [sed].
360 * configure: Regenerate with autoconf213.
362 2003-06-25 H.J. Lu <hongjiu.lu@intel.com>
364 * doc/extend.texi: Document new builtin functions for Intel
365 Prescott New Intrunctions.
367 * doc/invoke.texi: Document new command-line options, -mpni and
368 -mno-pni, for Intel Prescott New Intrunctions.
370 * config.gcc (extra_headers): Add pmmintrin.h for i[34567]86-*-*.
372 * config/i386/i386.c (override_options): Turn on MASK_SSE2
373 for -mpni. Turn on MASK_SSE for -msse2.
374 (bdesc_2arg): Add PNI builtins with 2 args.
375 (bdesc_1arg): Add PNI builtins with 1 arg.
376 (ix86_init_mmx_sse_builtins): Handle PNI builtins.
377 (ix86_expand_builtin): Likewise.
379 * config/i386/i386.h (MASK_3DNOW, MASK_3DNOW_A,
380 MASK_128BIT_LONG_DOUBLE, MASK_64BIT, MASK_MS_BITFIELD_LAYOUT,
381 MASK_TLS_DIRECT_SEG_REFS): Renumbered.
383 (TARGET_SWITCHES): Don't enable MASK_SSE for -msse2 here. Add
385 (TARGET_CPU_CPP_BUILTINS): Defined __PNI__ for PNI.
386 (ix86_builtins): Add PNI builtins.
387 (config/i386/i386.md): Add PNI patterns.
389 * config/i386/pmmintrin.h: New file.
391 2003-06-25 Kazu Hirata <kazu@cs.umass.edu>
393 * config/h8300/h8300.md (call): Fix the insn lengths.
394 (call_value): Likewise.
396 Thu Jun 26 00:13:35 CEST 2003 Jan Hubicka <jh@suse.cz>
398 * c-common.c (handle_used_attribute): Use mark_referenced.
399 * varasm.c (mark_referenced): Break out from ...
400 (assemble_name): ... here.
401 * tree.h (mark_referenced): Declare.
403 2003-06-25 Wolfgang Bangerth <bangerth@dealii.org>
405 * gccbug.in: Add PCH to list of categories.
407 2003-06-25 Martin Schaffner <schaffner@gmx.li>
409 * cppfiles.c: Clarify comments.
410 * cpphash.h: Likewise.
411 * cpplib.h: Likewise.
412 * cppmacro.c: Likewise.
413 * mkdeps.h: Likewise.
415 2003-06-25 Neil Booth <neil@daikokuya.co.uk>
417 * c-opts.c (complain_wrong_lang, write_langs): Remove.
418 (c_common_handle_option): Complaints about wrong language are
419 handled in opts.c now.
420 * opts.c (complain_wrong_lang, write_langs, handle_options): New.
421 (find_opt): Fix thinko.
422 (handle_option): Update prototype. Complain about switches for
423 a different front end.
424 * opts.h (lang_names, handle_options): New.
425 (handle_option): Remove.
426 * opts.sh: Write out language names array.
427 * toplev.c (parse_options_and_default_flags): Use handle_options.
429 2003-06-25 H.J. Lu <hongjiu.lu@intel.com>
431 * config/i386/i386.c (MASK_SSE1): Removed.
432 (MASK_SSE164): Removed.
433 (MASK_SSE264): Removed.
434 (bdesc_2arg): Replace MASK_SSE1 with MASK_SSE. Replace
435 MASK_SSE164 with MASK_SSE | MASK_64BIT. Replace MASK_SSE264
436 with MASK_SSE2 | MASK_64BIT.
437 (bdesc_1arg): Likewise.
438 (ix86_init_mmx_sse_builtins): Likewise.
440 * config/i386/i386.h (TARGET_SSE): Remove MASK_SSE2.
441 (TARGET_SWITCHES): Enable both MASK_SSE and MASK_SSE2 for
444 2003-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
446 * hwint.h (HOST_WIDE_INT_PRINT, HOST_WIDE_INT_PRINT_C): New macros.
447 (HOST_WIDE_INT_PRINT_DEC_SPACE,
448 HOST_WIDE_INT_PRINT_UNSIGNED_SPACE,
449 HOST_WIDEST_INT_PRINT_DEC_SPACE,
450 HOST_WIDEST_INT_PRINT_UNSIGNED_SPACE): Delete.
451 (HOST_WIDE_INT_PRINT_DEC, HOST_WIDE_INT_PRINT_DEC_C,
452 HOST_WIDE_INT_PRINT_UNSIGNED, HOST_WIDE_INT_PRINT_HEX): Define in
453 terms of HOST_WIDE_INT_PRINT and possibly HOST_WIDE_INT_PRINT_C.
455 * final.c (asm_fprintf): Use HOST_WIDE_INT_PRINT.
456 * ra-debug.c (dump_static_insn_cost): Likewise.
458 2003-06-26 Nick Clifton <nickc@redhat.com>
460 * config/arm/arm.h (BIGGEST_FIELD_ALIGNMENT): Define instead
461 of ADJUST_FIELD_ALIGN if IN_TARGET_LIBS.
462 Replace occurances of '???' with 'XXX' incase they are
463 mistaken for trigraphs.
464 (THUMB_PRINT_OPERAND_ADDRESS): abort if a compound address
465 does not have a register for the first operand.
467 2003-06-25 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
469 * config/sh/sh.c (sh_register_move_cost):
470 Add case for moving between MAC_REGS.
472 2003-06-25 Zack Weinberg <zack@codesourcery.com>
475 * langhooks.h (struct lang_hooks): Add no_body_blocks bool.
476 * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): New; default false.
477 * c-lang.c, objc/objc-lang.c: Override LANG_HOOKS_NO_BODY_BLOCKS
479 * stmt.c (is_body_block): If lang_hooks.no_body_blocks, always
482 2003-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
484 * Makefile.in (bt-load.o): Depend on $(TM_P_H).
485 * bt-load.c: Include "tm_p.h".
487 2003-06-25 Kazu Hirata <kazu@cs.umass.edu>
489 * config/h8300/h8300.c (compute_mov_length): Adjust for the
491 * config/h8300/h8300.md (*movsi_h8300): Optimize the load of
492 an SImode constant whose upper and lower are the same.
494 Wed Jun 25 11:31:59 CEST 2003 Jan Hubicka <jh@suse.cz>
496 * varasm.c (assemble_name): Mark needed variables even when
497 global info is ready.
499 2003-06-24 Jerry Quinn <jlquinn@optonline.net>
502 * gcc/doc/invoke.texi (Optimization Options): Remove -Os from
503 -freorder-functions description.
505 2003-06-25 Josef Zlomek <zlomekj@suse.cz>
507 * dwarf2out.c (gen_field_die): Return if type of decl is error mark.
509 2003-06-25 Neil Booth <neil@daikokuya.co.uk>
511 * opts.c (common_handle_option): Add missing break;s.
513 2003-06-24 Kazu Hirata <kazu@cs.umass.edu>
515 * config/h8300/h8300-protos.h: Add a prototype for
517 * config/h8300/h8300.c (compute_mov_length): New.
518 * config/h8300/h8300.md (*movqi_h8300): Use it.
519 (*movqi_h8300hs): Likewise.
520 (movstrictqi): Likewise.
521 (*movhi_h8300): Likewise.
522 (*movhi_h8300hs): Likewise.
523 (movstricthi): Likewise.
524 (*movsi_h8300): Likewise.
525 (*movsf_h8300): Likewise.
526 (*movsi_h8300hs): Likewise.
527 (*movsf_h8300hs): Likewise.
529 2003-06-24 Kazu Hirata <kazu@cs.umass.edu>
531 * jump.c (next_nondeleted_insn): Remove.
532 * rtl.h: Remove the prototype for next_nondeleted_insn.
534 2003-06-24 Roger Sayle <roger@eyesopen.com>
536 PR optimization/11311
537 * builtins.c (powi_cost): Fix typo. The number of multiplications
538 required is the number to reduce the argument, result, plus the
539 cost of calculating the residual, val [not n, the original value].
541 2003-06-24 Roger Sayle <roger@eyesopen.com>
543 * config/alpha/osf5.h (TARGET_C99_FUNCTIONS): Define.
545 2003-06-24 Richard Henderson <rth@redhat.com>
546 (blame to: Loren James Rittle <ljrittle@acm.org>)
548 * real.h (ieee_extended_intel_96_round_53_format): New.
549 * real.c (ieee_extended_intel_96_round_53_format): New.
550 * config/i386/freebsd.h (SUBTARGET_OVERRIDE_OPTIONS): Use it
551 for XFmode and TFmode.
553 2003-06-24 Kazu Hirata <kazu@cs.umass.edu>
555 * config/h8300/h8300.md (4 anonymous patterns): Give internal
557 (movsi_h8300): Change the name to *movsi_h8300.
558 (movsi_h8300hs): Change the name to *movsi_h8300hs.
559 (movsf_h8300): Change the name to *movsf_h8300.
560 (movsf_h8300hs): Change the name to *movsf_h8300hs.
562 2003-06-24 Jakub Jelinek <jakub@redhat.com>
564 * builtins.c (expand_builtin_strcpy): Don't evaluate side-effects in
567 2003-06-24 J"orn Rennecke <joern.rennecke@superh.com>
569 Back out these patches:
570 2003-06-02 J"orn Rennecke <joern.rennecke@superh.com>
571 * sh.h (OLD_ARG_MODE): New macro.
572 (FUNCTION_ARG_ADVANCE, FUNCTION_ARG_PASS_BY_REFERENCE): Use it.
573 (FUNCTION_ARG_1): Break out of:
574 (FUNCTION_ARG). Use OLD_ARG_MODE.
575 2003-06-06 J"orn Rennecke <joern.rennecke@superh.com>
576 * sh.h (FUNCTION_ARG_1): Consistently use NEW_MODE for the mode
577 of the generated register.
579 * sh.h (FUNCTION_ARG_SCmode_WART): Define.
580 (FUNCTION_ARG): Unless FUNCTION_ARG_SCmode_WART is defined and
581 an even number of floating point regs are in use, use the same
582 sequence of argument passing registers for SCmode as would be
583 used for two SFmode values.
584 * sh.c (sh_va_arg): If FUNCTION_ARG_SCmode_WART is defined,
585 swap real / imaginary parts in incoming SCmode values passed
588 2003-06-24 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
591 * config/alpha/alpha.md (sqrtdf2): Fix operand substitution.
593 Tue Jun 24 18:49:33 CEST 2003 Jan Hubicka <jh@suse.cz>
595 * Makefile.in (cgraph.o): Depend on output.h, not depend on
597 * cgraph.c: Do not include tree-inline.h; include output.h
598 (known_fns): Rename to ...
599 (known_decls): ... this one; update all uses.
600 (cgraph_varpool_hash): New static variable.
601 (cgraph_varpool_n_nodes, cgraph_varpool_nodes_queue): New global
603 (cgraph_varpool_hash_node, eq_cgraph_varpool_node, cgraph_varpool_node,
604 cgraph_varpool_node_for_identifier, cgraph_varpool_mark_needed_node,
605 cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
607 * cgraph.h (cgraph_varpool_node): New structure.
608 (cgraph_varpool_n_nodes, cgraph_varpool_nodes_queue): Declare.
609 (cgraph_varpool_node, cgraph_varpool_node_for_identifier,
610 cgraph_varpool_finalize_decl, cgraph_varpool_mark_needed_node,
611 cgraph_varpool_asemble_pending_decls): Declare.
612 * cgraphunit.c (record_call_1): Notice variable references.
613 (cgraph_finalize_compilation_unit): Assemble pending variables.
614 * toplev.c (wrapup_global_declarations): Use varpool.
615 (compile_file): Assemble pending declarations.
616 (rest_of_decl_compilation): Use varpool in unit-at-a-time mode.
617 * varasm.c (assemble_name): Notice varpool references.
619 Tue Jun 24 13:52:11 CEST 2003 Jan Hubicka <jh@suse.cz>
621 * langhooks-def.h (LANG_HOOKS_PREPARE_ASSEMBLE_VARIABLE): New macro.
622 * langhooks.h (lang_hooks_for_decls): Add prepare_assemble_variable.
623 * varasm.c (assemble_variable): Call prepare_assemble_variable.
625 2003-06-23 Roger Sayle <roger@eyesopen.com>
627 * builtins.c (expand_builtin): Use expand_builtin_pow to expand
628 calls for pow, powf, powl and their __builtin_ variants.
629 (expand_builtin_pow): If the second argument is a constant
630 integer and compiling with -ffast-math, use expand_powi to
631 generate RTL if powi_cost is less than POWI_MAX_MULTS.
632 (powi_cost): New function to return the number of multiplications
633 necessary to evaluate an Nth power, for integer constant N.
634 (expand_powi): New function to expand the RTL for evaluating
635 the Nth power of a floating point value, for integer constant N.
637 * doc/tm.texi (POWI_MAX_MULTS): Document new target macro.
639 Mon Jun 23 23:07:35 CEST 2003 Jan Hubicka <jh@suse.cz>
641 * cgraph.c (cgraph_nodes_queue): Declare.
642 (eq_node): Take identifier as p2.
643 (cgraph_node): Update htab_find_slot_with_hash call.
644 (cgraph_node_for_identifier): New.
645 (cgraph_mark_needed_node): Move here from cgraphunit.c.
646 * cgraph.h (cgraph_nodes_queue): Declare.
647 (cgraph_node_for_identifier): Declare.
648 * cgraphunit.c (cgraph_finalize_function): Collect entry points here
649 instead of in cgraph_finalize_compilation_unit; constructors and
650 destructors are entry points.
651 (cgraph_finalize_compilation_unit): Reorganize debug outout;
652 examine nested functions after lowerng; call collect_functions hook.
653 (cgraph_mark_local_functions): DECL_COMDAT functions are not local.
654 (cgraph_finalize_compilation_unit): Do not collect entry points.
655 * varasm.c: Include cgraph.h
656 (assemble_name): Mark referenced identifier as needed.
658 * cgraphunit.c (record_call_1): Use get_callee_fndecl.
660 2003-06-23 Jakub Jelinek <jakub@redhat.com>
662 * config/i386/i386.c (x86_output_mi_thunk): Don't pass MEM to %P0,
664 * config/s390/s390.c (s390_output_mi_thunk): Avoid .plt in -m31
665 mode, as it requires pic register loaded.
667 * varasm.c (resolve_unique_section): Remove prototype. No longer
669 * tree.h (resolve_unique_section): New prototype.
671 2003-06-23 Andreas Schwab <schwab@suse.de>
674 * dwarf2out.c (loc_descriptor_from_tree): Handle MODIFY_EXPR by
675 recursing through first argument.
677 2003-06-23 Kazu Hirata <kazu@cs.umass.edu>
679 * ChangeLog.1: Fix a typo.
680 * cfgrtl.c: Fix comment typos.
681 * dwarf2out.c: Likewise.
682 * expmed.c: Likewise.
683 * genrecog.c: Likewise.
685 * rtlanal.c: Likewise.
686 * ssa-dce.c: Likewise.
687 * toplev.c: Likewise.
689 2003-06-23 Kazu Hirata <kazu@cs.umass.edu>
691 * doc/extend.texi: Fix typos.
692 * doc/md.texi: Likewise.
693 * doc/tm.texi: Likewise.
695 2003-06-23 Kazu Hirata <kazu@cs.umass.edu>
697 * basic-block.h: Fix comment formatting.
698 * bt-load.c: Likewise.
699 * builtins.c: Likewise.
700 * c-common.c: Likewise.
701 * c-common.h: Likewise.
702 * c-format.c: Likewise.
703 * coverage.c: Likewise.
704 * cpplib.h: Likewise.
705 * cpppch.c: Likewise.
706 * dbxout.c: Likewise.
707 * diagnostic.c: Likewise.
708 * dwarf2out.c: Likewise.
710 * fold-const.c: Likewise.
711 * function.c: Likewise.
713 * gcov-io.c: Likewise.
714 * gcov-io.h: Likewise.
716 * profile.c: Likewise.
718 * sched-deps.c: Likewise.
720 2003-06-23 Roger Sayle <roger@eyesopen.com>
721 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
723 * doc/contrib.texi (Contributors): Add a note on testing and
724 remove duplicates from testers list.
726 2003-06-23 Nick Clifton <nickc@redhat.com>
728 * read-rtl.c (read_braced_string): Check for EOF. If
729 encountered issue an error message.
731 2003-06-23 Kazu Hirata <kazu@cs.umass.edu>
733 * doc/invoke.texi: Document dump options, dT and dW.
735 2003-06-23 Kazu Hirata <kazu@cs.umass.edu>
737 * genrecog.c (pred_table): Remove the entry for
738 mode_independent_operand.
739 * recog.c (next_insns_test_no_inequality): Remove.
740 (mode_independent_operand): Likewise.
741 * recog.h: Remove the prototype for mode_independent_operand.
743 2003-06-22 Kazu Hirata <kazu@cs.umass.edu>
745 * config/h8300/h8300.c (output_simode_bld): Use rotxl.l to
747 * config/h8300/h8300.md (*extzv_1_r_h8300hs): Change cc of the
748 second alternative to set_znv.
749 (*extzv_1_r_inv_h8300hs): Likewise.
751 2003-06-23 Hans-Peter Nilsson <hp@bitrange.com>
753 * configure.in (in_tree_gas): Find out here whether GAS is ELF,
754 set in_tree_gas_is_elf accordingly.
755 (in_tree_ld): Find out whether LD emulation is ELF, set
756 in_tree_ld_is_elf accordingly.
757 (gcc_cv_as_subsections, gcc_cv_as_hidden, gcc_cv_as_leb128)
758 (gcc_cv_as_eh_frame, gcc_cv_as_shf_merge)
759 (gcc_cv_as_dwarf2_debug_line, gcc_cv_as_gdwarf2_flag)
760 (gcc_cv_as_gstabs_flag): Use $in_tree_gas_is_elf instead of
761 grepping gas/Makefile.
762 (gcc_cv_ld_ro_rw_mix, gcc_cv_ld_eh_frame_hdr, gcc_cv_ld_pie): Use
763 $in_tree_ld_is_elf instead of grepping ld/Makefile.
764 * configure: Regenerate.
766 2003-06-22 Roger Sayle <roger@eyesopen.com>
768 * builtins.c (expand_builtin_mathfn_2): Use tree_cons to build
769 up the stabilized argument list, not build_tree_list.
770 (expand_builtin_strcpy): Construct new argument list manually
771 instead of using chainon to modify the original argument list.
772 (expand_builtin_stpcpy): Construct new argument list manually
773 instead of using copy_list and chainon.
774 (expand_builtin_sprintf): New function. Optimize calls to
775 sprintf when the format is "%s" or doesn't contain a '%'.
776 (expand_builtin): Expand BUILT_IN_SPRINTF using the new function
777 expand_builtin_sprintf.
779 2003-06-22 Andreas Schwab <schwab@suse.de>
781 * function.c (set_insn_locators): Mark as unused.
783 2003-06-22 Neil Booth <neil@daikokuya.co.uk>
785 * common.opt: Add -finline-limit.
786 * opts.c (common_handle_options): Handle it.
787 * opts.sh: Temporary kludge for -finline-limit.
788 * toplev.c (decode_f_option, independent_decode_option): Die.
789 (parse_options_and_default_flags): No independent_decode_option.
791 2003-06-22 Andreas Jaeger <aj@suse.de>
793 * calls.c (emit_call_1): Readd lost ATTRIBUTE_UNUSED.
795 2003-06-22 Kazu Hirata <kazu@cs.umass.edu>
797 * doc/invoke.texi: Document dumps, .btl, .cfg, and .bypass.
799 2003-06-22 Andreas Schwab <schwab@suse.de>
801 * doc/invoke.texi: Remove leading `-' from options in index.
803 2003-06-22 Kazu Hirata <kazu@cs.umass.edu>
805 * bt-load.c: Follow spelling conventions.
807 2003-06-22 Kazu Hirata <kazu@cs.umass.edu>
809 * expr.c (emit_move_insn_1): Fix a comment typo.
811 2003-06-22 Kazu Hirata <kazu@cs.umass.edu>
813 * doc/invoke.texi: Alphabetize dump options.
815 2003-06-22 Kazu Hirata <kazu@cs.umass.edu>
817 * doc/invoke.texi: Remove a duplicate -dk.
819 2003-06-22 Kazu Hirata <kazu@cs.umass.edu>
821 * doc/invoke.texi: Update dump file names.
823 2003-06-22 Zack Weinberg <zack@codesourcery.com>
825 * config/i370/i370.c, config/i370/i370.h: Use HOST_CHARSET_ASCII
826 and HOST_CHARSET_EBCDIC, not HC_ASCII and HC_EBCDIC.
828 2003-06-22 Kazu Hirata <kazu@cs.umass.edu>
830 * doc/rtl.texi: Fix the @findex for pre_modify.
832 2003-06-22 Andreas Jaeger <aj@suse.de>
834 * caller-save.c: Convert to ISO C90.
837 * cfganal.c: Likewise.
838 * cfgbuild.c: Likewise.
839 * cfgcleanup.c: Likewise.
840 * cfghooks.c: Likewise.
841 * cfglayout.c: Likewise.
842 * cfglayout.h: Likewise.
843 * cfgloop.c: Likewise.
844 * cfgloop.h: Likewise.
845 * cfgloopanal.c: Likewise.
846 * cfgloopmainip.c: Likewise.
847 * cfgrtl.c: Likewise.
849 2003-06-22 Richard Earnshaw <rearnsha@arm.com>
851 * arm.h (BIGGEST_ALIGNMENT): Use TARGET_REALLY_IWMMXT for selecting
854 2003-06-22 Richard Earnshaw <rearnsha@arm.com>
856 * arm.md (all call_value patterns): Remove register constraints on
859 2003-06-22 Neil Booth <neil@daikokuya.co.uk>
861 * common.opt: More -f switches.
862 * opts.c (common_handle_options): Handle them.
863 * toplev.c (time_report): Make extern.
864 (f_options): USe flag_dummy.
865 (decode_f_option): No need to use f_options now.
866 * toplev.h (flag_cprop_registers, flag_ssa, flag_ssa_ccp,
867 flag_ssa_dce, time_report, flag_new_regalloc): Make extern.
869 2003-06-22 Andreas Jaeger <aj@suse.de>
871 * c-lex.c: Convert to ISO C90.
872 * c-objc-common.c: Likewise.
873 * c-opts.c: Likewise.
875 * c-ppoutput.c: Likewise.
876 * c-pragma.h: Likewise.
877 * c-pretty-print.c: Likewise.
878 * c-pretty-print.h: Likewise.
879 * c-semantics.c: Likewise.
880 * c-tree.h: Likewise.
881 * c-typeck.c: Likewise.
883 * c-lang.c: Convert to ISO C90.
885 2003-06-22 Neil Booth <neil@daikokuya.co.uk>
887 * opts.c (find_opt): Fix to always guarantee a find of a
888 switch with joined parameter.
889 * opts.h (struct cl_option): New member back_chain.
890 * opts.sh: Update to calculate and add back_chain member.
892 2003-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
894 * diagnostic.h (output_host_wide_integer): Declare.
895 * diagnostic.c (output_long_long_decicaml): New function.
896 (output_host_wide_integer): Likewise.
897 (output_format): Use them. Handle "%ll" and "%w".
899 2003-06-21 Jason Thorpe <thorpej@wasabisystems.com>
901 * config.gcc (*-*-netbsd*): Add t-libgcc-pic to tmake_file.
903 2003-06-21 Zack Weinberg <zack@codesourcery.com>
905 * aclocal.m4 (gcc_AC_C_CHARSET): Delete.
906 * configure.in: Don't use gcc_AC_C_CHARSET.
907 * configure, config.in: Regenerate.
908 * config/i370/i370.c, config/i370/i370.h: Use
909 (HOST_CHARSET == HC_EBCDIC) or (HOST_CHARSET == HC_ASCII)
910 instead of HOST_EBCDIC or !HOST_EBCDIC. Clarify comments a tad.
912 2003-06-21 Neil Booth <neil@daikokuya.co.uk>
914 * Makefile.in: Update.
915 * common.opt: New switches.
916 * opts.c: Include diagnostic.h.
917 (common_handle_option): Handle new switches.
918 * toplev.c (flag_loop_optimize, flag_crossjumping, flag_if_conversion,
919 flag_if_conversion2, flag_delete_null_pointer_checks,
920 flag_rerun_cse_after_loop): Make extern.
922 (f_options): Update to use flag_dummy for moved options.
923 (decode_f_option): Some switches moved to opts.c.
924 * toplev.h (flag_loop_optimize, flag_crossjumping, flag_if_conversion,
925 flag_if_conversion2, flag_delete_null_pointer_checks,
926 flag_rerun_cse_after_loop, flag_keep_static_consts, flag_peel_loops,
927 flag_tracer, flag_thread_jumps, flag_unroll_loops,
928 flag_unroll_all_loops, flag_unswitch_loops): New.
930 Sat Jun 21 13:41:00 CEST 2003 Jan Hubicka <jh@suse.cz>
932 * i386.c (ix86_va_arg): Fix allocation of temporary slot.
934 2003-06-20 Kazu Hirata <kazu@cs.umass.edu>
936 * config/h8300/h8300-protos.h: Add a prototype for
937 same_cmp_preceding_p.
938 * config/h8300/h8300.c (same_cmp_preceding): New.
939 * config/h8300/h8300.md: Extend peephole2's that transform
940 compare:SI into shorter sequences so that they can deal with
943 2003-06-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
945 * doc/contrib.texi (Contributors): Use Windows instead of Win32.
947 Update Andreas Jaeger's entry.
949 Merge the two entries of Kaveh Ghazi, David Edelsohn, and
952 2003-06-21 Nathanael Nerode <neroden@gcc.gnu.org>
954 * mkconfig.sh: Add multiple inclusion guards to generated headers.
956 2003-06-20 Neil Booth <neil@daikokuya.co.uk>
958 * c-decl.c (store_parm_decls): Make saved_warn_shadow boolean.
959 * common.opt: Add remaining -W options and -g.
960 * diagnostic.c (warnings_are_errors): Remove.
961 * flags.h: Make most warning flags boolean.
962 * opts.c (common_handle_option): Handle remaining -W options, and -g.
963 Move many warning flags from toplev.c, making them boolean.
964 * toplev.c: Remove many warning flags.
965 (decode_W_option): Remove.
966 (decode_g_option): Make extern. Error on unknown switch.
967 (lang_independent_W_options): Use warn_dummy.
968 (independent_decode_option): Just handle -f switches now.
969 * toplev.h (decode_g_option): New.
971 2003-06-20 Aldy Hernandez <aldyh@redhat.com>
974 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Adjust for
977 2003-06-20 Kelley Cook <kelleycook@wideopenwest.com>
979 * opts.sh: Tweak awk script for portability.
981 2003-06-20 Mark Mitchell <mark@codesourcery.com>
984 * tree-inline.c (expand_call_inline): Do not warn about failing to
985 inline functions declared in system headers.
986 * doc/invoke.texi (-Winline): Expand on documentation.
988 2003-06-20 Richard Henderson <rth@redhat.com>
990 * config/alpha/alpha.c (alpha_file_start): Disable
991 file_start_file_directive for ELF and not MDEBUG.
993 2003-06-20 J"orn Rennecke <joern.rennecke@superh.com>
995 * sh.h (ROUND_TYPE_ALIGN): Remove.
997 2003-06-20 Richard Henderson <rth@redhat.com>
999 * hooks.c (hook_int_void_no_regs): Rename from
1000 hook_reg_class_void_no_regs; change return type.
1002 * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Update.
1003 * target.h (branch_target_register_class): Change return type to int.
1005 * config/sh/sh.c (sh_target_reg_class): Change return type.
1006 * doc/tm.texi (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
1008 2003-06-20 Andreas Tobler <toa@pop.agri.ch>
1010 * c-format.c: Change _Bool to bool reverting part of the last
1013 2003-06-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1015 * som.h (ASM_OUTPUT_SOURCE_LINE): Use targetm.strip_name_encoding to
1016 strip name encoding.
1018 2003-06-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1020 * configure.in (gcc_cv_as_gstabs_flag): Disable if assembler warns.
1021 * configure: Regenerate.
1022 Fixes PR driver/9362.
1024 2003-06-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1026 * config/alpha/alpha.c (alpha_file_start): Fix typo.
1028 2003-06-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1030 * config/mips/mips.h (PUT_SDB_FUNCTION_END): Pass 0 as third arg
1031 to ASM_OUTPUT_SOURCE_LINE.
1033 2003-06-20 Daniel Egger <degger@fhm.edu>
1034 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1036 * doc/install.texi (Building): Correct and improve statement
1037 about parallel builds.
1039 2003-06-20 Andreas Jaeger <aj@suse.de>
1041 * c-common.c: Change _Bool to bool reverting part of the last
1044 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
1046 * tree.h (expand_function_end): Remove all parameters.
1047 * function.c (expand_function_end): Remove all parameters.
1048 Use input_location. Never expand_end_bindings.
1049 * c-decl.c (c_expand_body_1): Adjust expand_function_end call.
1050 * coverage.c (create_coverage): Likewise.
1052 2003-06-20 Nick Clifton <nickc@redhat.com>
1054 * doc/extend.texi (ARM Built-in Functions): New node. Document
1055 ARM builtin functions for iWMMXt support.
1057 2003-06-20 Eric Botcazou <ebotcazou@libertysurf.fr>
1059 * doc/install.texi (--with-gnu-as): Mention SPARC/Solaris and
1060 SPARC64/Solaris as platforms where --with-gnu-as makes a difference.
1061 (--with-as): Add @anchor.
1062 (--with-gnu-ld): Fix typo.
1063 (--with-ld): Add @uref to --with-as.
1065 2003-06-19 Zack Weinberg <zack@codesourcery.com>
1067 * doc/tm.texi: Uniformly use @defmac for macros, rather than
1068 @table items. Minor formatting and editorial corrections.
1070 2003-06-20 Neil Booth <neil@daikokuya.co.uk>
1072 * line-map.c, line-map.h: Convert to ISO prototypes.
1074 2003-06-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1076 * gcse.c (store_killed_in_insn): Fix.
1078 2003-06-19 Zack Weinberg <zack@codesourcery.com>
1080 * target.h (asm_out.file_start, file_start_app_off,
1081 file_start_file_directive): New hooks.
1082 * target-def.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
1083 TARGET_ASM_FILE_START_APP_OFF, TARGET_ASM_FILE_START):
1084 New hook-definition macros.
1085 * doc/tm.texi: Document new hooks; remove docs of ASM_FILE_START.
1086 * varasm.c (default_file_start): New.
1087 * output.h: Prototype it.
1088 * toplev.c (init_asm_output): Use targetm.asm_out.file_start.
1089 * system.h: Poison ASM_FILE_START.
1091 * config/alpha/alpha.c (alpha_write_verstamp): Delete.
1092 (alpha_file_start): New, define if !TARGET_ABI_UNICOSMK.
1093 (unicosmk_asm_file_start): Rename unicosmk_file_start,
1094 make static, take no arguments.
1095 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_END,
1096 TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set as appropriate.
1097 * config/alpha/unicosmk.h: Don't define ASM_FILE_START nor
1098 TARGET_ASM_FILE_END. Remove reference to ASM_FILE_START in
1100 * config/arc/arc.c (arc_asm_file_start): Rename
1101 arc_file_start, take no arguments, make static.
1102 (TARGET_ASM_FILE_START): Set it.
1103 * config/arm/arm.c (aof_file_start): New static function.
1104 (TARGET_ASM_FILE_START): Set it, when appropriate.
1105 * config/arm/coff.h, config/arm/elf.h:
1106 Set TARGET_ASM_FILE_START_APP_OFF to true.
1107 * config/avr/avr.c (asm_file_start): Rename avr_file_start,
1108 take no arguments, make static.
1109 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE):
1111 * config/c4x/c4x.c (c4x_file_start): New static function.
1112 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE):
1114 * config/cris/cris.c (cris_file_start): New static function.
1115 (TARGET_ASM_FILE_START): Set it.
1116 * config/dsp16xx/dsp16xx.c (coff_dsp16xx_file_start): Rename
1117 dsp16xx_file_start, make static.
1118 (luxworks_dsp16xx_file_start): Delete.
1119 (TARGET_ASM_FILE_START): Set it.
1120 * config/h8300/h8300.c (asm_file_start): Rename
1121 h8300_file_start, make static, take no arguments.
1122 (TARGET_ASM_FILE_START): Set it.
1123 * config/i370/i370.c (i370_file_start): New static function.
1124 (TARGET_ASM_FILE_START): Set it.
1125 * config/i386/i386.c (x86_file_start): New static function.
1126 (TARGET_ASM_FILE_START): Set it.
1127 * config/i386/i386.h (X86_FILE_START_VERSION_DIRECTIVE,
1128 X86_FILE_START_FLTUSED): New macros, default to false.
1129 * config/i386/i386-interix.h: Override X86_FILE_START_FLTUSED to 1.
1130 * config/i386/sysv4.h, config/i386/sco5.h: Override
1131 X86_FILE_START_VERSION_DIRECTIVE to true.
1132 * config/ia64/ia64.c (ia64_file_start): New static function.
1133 (TARGET_ASM_FILE_START): Set it.
1134 (emit_safe_across_calls): Take no arguments.
1135 * config/ia64/ia64.md: Update to match.
1136 * config/m32r/m32r.c (m32r_asm_file_start): Rename
1137 m32r_file_start, make static, take no arguments.
1138 (TARGET_ASM_FILE_START): Set it.
1139 * config/m68hc11/m68hc11.c (m68hc11_asm_file_start): Rename
1140 m68hc11_file_start, make static, take no arguments.
1141 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
1142 (print_options): Delete.
1143 * config/m68k/m68k.c (m68k_hp320_file_start): New static function.
1144 (TARGET_ASM_FILE_START_APP_OFF): Set.
1145 * config/m68k/hp320.h: Set TARGET_ASM_FILE_START to
1146 m68k_hp320_file_start.
1147 * config/mips/mips.c (iris6_asm_file_start, mips_asm_file_start):
1148 Make static, take no arguments.
1149 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
1150 * config/mmix/mmix.c (mmix_asm_file_start): Rename
1151 mmix_file_start, make static, take no arguments.
1152 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
1153 * config/mn10300/mn10300.c (asm_file_start): Rename
1154 mn10300_file_start, make static, take no arguments.
1155 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
1156 * config/ns32k/ns32k.c (TARGET_ASM_FILE_START_APP_OFF): Set.
1157 * config/pa/pa.c (pa_file_start_level, pa_file_start_space,
1158 pa_file_start_file, pa_file_start_mcount, pa_elf_file_start,
1159 pa_som_file_start, pa_linux_file_start, pa_hpux64_gas_file_start,
1160 pa_hpux64_hpas_file_start): New static functions.
1161 * config/pa/elf.h: Set TARGET_ASM_FILE_START to pa_elf_file_start.
1162 * config/pa/pa-linux.h: Set TARGET_ASM_FILE_START to
1163 pa_linux_file_start.
1164 * config/pa/pa64-hpux.h: Set TARGET_ASM_FILE_START to
1165 pa_hpux64_gas_file_start or pa_hpux64_hpas_file_start, as
1167 * config/pa/som.h: Set TARGET_ASM_FILE_START to pa_som_file_start.
1168 * config/rs6000/rs6000.c: Include xcoffout.h when TARGET_XCOFF.
1169 (rs6000_file_start): Make static, take no arguments. Reset
1170 default_cpu under certain conditions.
1171 (rs6000_xcoff_file_start): New function.
1172 * config/rs6000/rs6000.h (TARGET_ASM_FILE_START): Set.
1173 * config/rs6000/xcoff.h (TARGET_ASM_FILE_START,
1174 TARGET_ASM_FILE_START_FILE_DIRECTIVE): Override.
1175 * config/sh/sh.c (output_file_start): Rename
1176 sh_file_start, make static, take no arguments. Merge in old
1177 code from sh/elf.h's ASM_FILE_START, conditioned on TARGET_ELF.
1178 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
1179 * config/sh/sh.c (TARGET_ELF): Define to 0.
1180 * config/sh/elf.h (TARGET_ELF): Redefine to 1.
1181 * config/v850/v850.c (asm_file_start): Delete.
1182 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
1183 * config/vax/vax.c (vax_file_start): New static function.
1184 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_APP_OFF): Set.
1186 * config/darwin.h: Override ASM_FILE_START_FILE_DIRECTIVE to false.
1187 * config/elfos.h, config/svr3.h, config/arm/elf.h, config/arm/pe.h
1188 * config/i386/att.h, config/i386/gas.h, config/i386/linux.h
1189 * config/i386/sysv4.h, config/i386/sco5.h, config/i960/i960-coff.h
1190 * config/m68k/coff.h, config/m68k/hp320.h, config/mcore/mcore-pe.h
1191 * config/vax/vaxv.h: Set ASM_FILE_START_FILE_DIRECTIVE to true.
1193 * config/darwin.h, config/elfos.h, config/alpha/elf.h
1194 * config/alpha/openbsd.h, config/alpha/osf.h, config/alpha/vms.h
1195 * config/arc/arc.h, config/arm/aof.h, config/arm/aout.h
1196 * config/arm/coff.h, config/arm/elf.h, config/arm/pe.h
1197 * config/avr/avr.h, config/c4x/c4x.h, config/cris/cris.h
1198 * config/dsp16xx/dsp16xx.h, config/h8300/elf.h, config/h8300/h8300.h
1199 * config/i370/i370.h, config/i386/att.h, config/i386/gas.h
1200 * config/i386/i386-interix.h, config/i386/linux.h, config/i386/sysv4.h
1201 * config/i386/sco5.h, config/i960/i960-coff.h, config/i960/i960.h
1202 * config/ia64/ia64.h, config/ia64/sysv4.h, config/m32r/m32r.h
1203 * config/m68hc11/m68hc11.h, config/m68k/coff.h, config/m68k/m68k.h
1204 * config/mcore/mcore-pe.h, config/mips/iris6.h, config/mips/mips.h
1205 * config/mmix/mmix.h, config/mn10300/mn10300.h, config/ns32k/ns32k.h
1206 * config/pa/elf.h, config/pa/pa-linux.h, config/pa/pa64-hpux.h
1207 * config/pa/som.h, config/pdp11/pdp11.h, config/rs6000/linux64.h
1208 * config/rs6000/lynx.h, config/rs6000/xcoff.h, config/sh/elf.h
1209 * config/sh/sh.h, config/sparc/sparc.h, config/v850/v850.h
1210 * config/vax/vax.h, config/vax/vaxv.h: Don't (re)define ASM_FILE_START.
1212 * config/alpha/alpha-protos.h, config/arc/arc-protos.h
1213 * config/avr/avr-protos.h, config/dsp16xx/dsp16xx-protos.h
1214 * config/h8300/h8300-protos.h, config/ia64/ia64-protos.h
1215 * config/m32r/m32r-protos.h, config/m68hc11/m68hc11-protos.h
1216 * config/mips/mips-protos.h, config/mmix/mmix-protos.h
1217 * config/mn10300/mn10300-protos.h, config/rs6000/rs6000-protos.h
1218 * config/sh/sh-protos.h, config/v850/v850-protos.h: Update.
1220 * xcoffout.h, config/rs6000/aix.h, config/rs6000/xcoff.h:
1221 Remove reference to ASM_FILE_START in comment.
1222 * config/arm/aof.h, config/arm/aout.h, config/arm/freebsd.h
1223 * config/arm/linux-gas.h, config/arm/netbsd-elf.h
1224 * config/arm/netbsd.h: Delete definition of ARM_OS_NAME.
1226 2003-06-19 Graeme Peterson <gp@qnx.com>
1228 * gcc.c (target_sysroot_suffix, target_sysroot_hdrs_suffix,
1229 SYSROOT_SUFFIX_SPEC, SYSROOT_HEADERS_SUFFIX_SPEC, sysroot_suffix_spec,
1230 sysroot_hdrs_suffix_spec): New.
1231 (static_specs): Initialize new variables.
1232 (add_sysroot_suffix_prefix, do_spec_1, main): Use new variables.
1233 * doc/tm.texi (SYSROOT_SUFFIX_SPEC, SYSROOT_HEADERS_SUFFIX_SPEC):
1236 2003-06-19 Andreas Jaeger <aj@suse.de>
1238 * c-aux-info.c: Convert to ISO C90.
1239 * c-pragma.c: Likewise.
1240 * c-common.c: Likewise.
1241 * c-common.h: Likewise.
1242 * c-convert.c: Likewise.
1243 * c-cppbuiltin.c: Likewise.
1244 * c-dump.c: Likewise.
1245 * c-decl.c: Likewise
1246 * c-format.c: Likewise.
1247 * c-incpath.c: Likewise.
1248 * c-incpath.h: Likewise.
1250 2003-06-19 Roger Sayle <roger@eyesopen.com>
1252 * builtins.c (expand_errno_check): Assume that flag_errno_math
1253 and HONOR_NANS have been tested before calling here. Only try
1254 to set errno ourselves if the decl can't throw an exception.
1255 (expand_builtin_mathfn): Move the code to stabilize the arg
1256 after the main switch, so that that its only done when needed.
1257 BUILT_IN_SQRT{,F,L} doesn't set errno if its arg is nonnegative.
1258 Don't modify the original expr when stabilizing the argument.
1259 (expand_builtin_mathfn_2): Likewise, move the code to stabilize
1260 the args after the main switch, and don't modify the orginal exp.
1262 2003-06-19 Aldy Hernandez <aldyh@redhat.com>
1264 * expr.c (const_vector_from_tree): Initialize remaining elements
1267 2003-06-19 Aldy Hernandez <aldyh@redhat.com>
1269 * config/rs6000/spe.md ("spe_evfscfsi"): Change operand types.
1270 Change "fix" to "float".
1272 2003-06-19 Andreas Jaeger <aj@suse.de>
1274 * c-tree.h: Remove declaration of poplevel.
1276 * tree.h: Remove declaration of approx_sqrt.
1278 * c-lex.c: Remove redundant declaration of asm_out_file.
1280 * flags.h: Remove declaration of warn_unknown_pragma and
1281 main_input_filename.
1283 * rtl.h: Remove functions from fold-const.c since they're already
1286 * regs.h: Remove redundant declaration of reg_names.
1288 * bt-load.c (migrate_btr_defs): Correct printf arguments.
1290 * protoize.c: Fix breakage from last patch.
1292 2003-06-19 J"orn Rennecke <joern.rennecke@superh.com>
1294 * hooks.h (hook_reg_class_void_no_regs): Only declare if tm.h
1297 2003-06-18 James A Morrison <ja2morri@student.math.uwaterloo.ca>
1299 * config/sparc/sparc.c: Update copyright year.
1301 2003-06-19 David Edelsohn <edelsohn@gnu.org>
1303 * config/rs6000/rs6000.c (init_cumulative_args): Limit CALL_LIBCALL
1306 2003-06-18 Joseph S. Myers <jsm@polyomino.org.uk>
1309 * config/i386/liunx.h: Don't include sys/ucontext.h for glibc 2.0.
1311 2003-06-19 Kazu Hirata <kazu@cs.umass.edu>
1313 * config/h8300/h8300.c (TARGET_INITIALIZER and friends): Move
1314 to the end of the file. Remove unnecessary prototypes.
1316 2003-06-19 Hans-Peter Nilsson <hp@axis.com>
1318 * bt-load.c (migrate_btr_def) [INSN_SCHEDULING]: Conditionalize
1319 calls to insn_default_latency and result_ready_cost. Initialize
1322 2003-06-18 Richard Henderson <rth@redhat.com>
1324 * config/ia64/unwind-ia64.c (_Unwind_GetCFA): New.
1325 (_Unwind_FindEnclosingFunction): Implement.
1327 2003-06-18 Kazu Hirata <kazu@cs.umass.edu>
1329 * toplev.c (rest_of_handle_sched): Hide the entire function if
1330 INSN_SCHEDULING is not defined.
1331 (rest_of_compilation): Call rest_of_handle_sched() only when
1332 INSN_SCHEDULING is defined.
1334 2003-06-18 Stephen Clarke <stephen.clarke@superh.com>
1335 J"orn Rennecke <joern.rennecke@superh.com>
1337 * bt-load.c: New file.
1338 * Makefile.in (OBJS): Include bt-load.o
1339 (bt-load.o): Add dependencies.
1340 * flags.h (flag_branch_target_load_optimize): Declare.
1341 (flag_branch_target_load_optimize2): Likewise.
1342 * hooks.c (hook_reg_class_void_no_regs): New function.
1343 (hook_bool_bool_false): Likewise.
1344 * hooks.h (hook_reg_class_void_no_regs, hook_bool_bool_false): Declare.
1345 * rtl.h (branch_target_load_optimize): Declare.
1346 * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define.
1347 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
1348 (TARGET_INITIALIZER): Include these.
1349 * target.h (struct gcc_target): Add branch_target_register_class
1350 and branch_target_register_callee_saved members.
1351 * toplev.c (enum dump_file_index): Add DFI_branch_target_load
1352 (dump_file) Add "tars" entry.
1353 (flag_branch_target_load_optimize): New variable.
1354 (flag_branch_target_load_optimize2): Likewise.
1355 (lang_independent_options): Add entries for new options.
1356 (rest_of_compilation): Call branch_target_load_optimize.
1357 * doc/tm.texi (TARGET_BRANCH_TARGET_REGISTER_CLASS): Document.
1358 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
1359 * doc/invoke.texi: Document -fbranch-target-load-optimize and
1360 -fbranch-target-load-optimize2.
1361 * rtl.h (epilogue_completed): Declare.
1362 * recog.c (epilogue_completed): New variable.
1363 * toplev.c (rest_of_compilation): Set it.
1364 * flow.c (mark_regs_live_at_end): Use it.
1365 * config/ia64/ia64.c (ia64_output_mi_thunk): Set it.
1366 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
1367 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
1368 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
1370 * sh.c (shmedia_space_reserved_for_target_registers): New variable.
1371 (sh_target_reg_class): New function.
1372 (sh_optimize_target_register_callee_saved): Likwise.
1373 (shmedia_target_regs_stack_space): Likewise.
1374 (shmedia_reserve_space_for_target_registers_p): Likewise.
1375 (shmedia_target_regs_stack_adjust): Likewise.
1376 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Override.
1377 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
1378 (calc_live_regs): If flag_branch_target_load_optimize2 and
1379 TARGET_SAVE_ALL_TARGET_REGS is enabled, and we have space reserved
1380 for target registers, make sure that we save all target registers.
1381 (sh_expand_prologue, sh_expand_epilogue): Take target register
1382 optimizations into account. Collapse stack adjustments if that
1384 (initial_elimination_offset): Reserve space for target registers
1386 * sh.h (SAVE_ALL_TR_BIT, TARGET_SAVE_ALL_TARGET_REGS): Define.
1387 (OPTIMIZATION_OPTIONS): Enable flag_branch_target_load_optimize.
1389 2003-06-18 Nick Clifton <nickc@redhat.com>
1391 * config.gcc: Add an extra_header for ARM targets.
1392 Support configuring with --with-cpu=iwmmxt.
1393 * doc/invoke.texi: Document new value for -mcpu= ARM switch.
1394 * config/arm/aof.h (REGISTER_NAMES): Add iwmmxt register
1395 names. Fix formatting.
1396 * config/arm/aout.h (REGISTER_NAMES): Add iwmmxt register
1398 * config/arm/arm-protos.h (arm_emit_vector_const): New
1400 (arm_output_load_gr): New prototype.
1401 * config/arm/arm.c (extra_reg_names1): Delete.
1402 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN, FL_IWMMXT,
1403 * arch_is_iwmmxt): Define.
1404 (all_cores, all_architecture): Add entry for iwmmxt.
1405 (arm_override_options): Add support for iwmmxt.
1406 (use_return_insn, arm_function_arg, arm_legitimate_index_p,
1407 arm_print_value, arm_rtx_costs_1, output_move_double,
1408 arm_compute_save_reg_mask, arm_output_epilogue,
1409 arm_get_frame_size, arm_expand_prologue, arm_print_operand,
1410 arm_assemble_integer, arm_hard_regno_ok, arm_regno_class):
1412 (arm_init_cumulative_args): Count iwmmxt registers.
1413 (arm_function_ok_for_sibcall): Return false of sibcall_blocked
1415 (struct minipool_node): Add fix_size field.
1416 (add_minipool_forward_ref): Add support for 8-byte aligning of
1418 (add_minipool_backward_ref, add_minipool_offsets,
1419 dump_minipool, push_minipool_fix): Likewise.
1420 (struct builtin_description): New struct.
1421 (builtin_description): New array of iwmmxt builtin functions.
1422 (arm_init_iwmmxt_builtins): New function.
1423 (arm_init_builtins): New function.
1424 (safe_vector_operand): New function.
1425 (arm_expand_binop_builtin): New function.
1426 (arm_expand_unop_builtin): New function.
1427 (arm_expand_builtin): New function.
1428 (arm_emit_vector_const): New function.
1429 (arm_output_load_gr): New function.
1430 * config/arm/arm.h (TARGET_CPU_iwmmxt, TARGET_IWMMXT,
1431 TARGET_REALLY_IWMMXT, arm_arch_iwmmxt, IWMMXT_ALIGNMENT,
1432 TYPE_NEEDS_IWMMXT_ALIGNMENT, ADJUST_FIELD_ALIGN,
1433 DATA_ALIGNMENT, LOCAL_ALIGNMENT, VECTOR_MODE_SUPPORTED_P): Define.
1434 (BIGGEST_ALIGNMENT): Set to 64 if ATPCS support is enabled.
1435 (CPP_CPU_ARCH_SPEC): Add entries for iwmmxt.
1436 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER,
1437 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
1438 REG_CLASS_FOR_LETTER): Add iwmmxt registers.
1439 (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Disable iwmmxt
1440 registers unless the iwmmxt target is selected.
1441 (FIRST_IWMMXT_GR_REGNUM, LAST_IWMMXT_GR_REGNUM,
1442 FIRST_IWMMXT_REGNUM, LAST_IWMMXT_REGNUM, IS_IWMMXT_REGNUM,
1443 IS_IWMMXT_GR_REGNUM): Define.
1444 (FIRST_PSEUDO_REGISTER): Bump to 63.
1445 (struct machine_function): Add sibcall_blocked field.
1446 (Struct CUMULATIVE_ARGS): Add iwmmxt_nregs, named_count and
1448 (enum arm_builtins): New enum list.
1449 * config/arm/arm.md (UNSPEC_WSHUFH, UNSPEC_WACC,
1450 UNSPEC_TMOVMSK, UNSPEC_WSAD, UNSPEC_WSADZ, UNSPEC_WMACS,
1451 UNSPEC_WMACU, UNSPEC_WMACSZ, UNSPEC_WMACUZ, UNSPEC_CLRDI,
1452 UNSPEC_WMADDS, UNSPEC_WMADDU): New unspecs.
1453 (VUNSPEC_TMRC, VUNSPEC_TMCR, VUNSPEC_ALIGN8, VUNSPEC_WCMP_EQ,
1454 VUNSPEC_WCMP_GTU, VUNSPEC_WCMP_GT): New vunspecs.
1455 (movv2si, movv4hi, movv8qi): New expands for vector moves.
1457 * config/arm/t-xscale-elf (MULTILIB_OPITONS): Add iwmmxt
1459 (MULTILIB_DIRNAMES, MULTILIB_REDUNDANT_DIRS): Likewise.
1460 * config/arm/mmintrin.h: New ARM specific header file.
1461 * config/arm/iwmmx.md: New iWMMXt specific machine patterns.
1463 2003-06-18 J"orn Rennecke <joern.rennecke@superh.com>
1465 * toplev.c (Remaining -d letters summary): Update.
1467 2003-06-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1469 * config/rs6000/rs6000.c (init_cumulative_args): Add and handle LIBCALL
1471 (function_arg): Handle CALL_LIBCALL flag.
1472 * config/rs6000/rs6000-protos.h (init_cumulative_args): Update
1474 * config/rs6000/rs6000.h (CALL_LIBCALL): New macro.
1475 (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
1476 (INIT_CUMULATIVE_ARGS): Add LIBCALL argument.
1477 (INIT_CUMULATIVE_INCOMING_ARGS): Likewise.
1479 2003-06-18 Neil Booth <neil@daikokuya.co.uk>
1481 * Makefile.in: Update.
1482 * common.opt: New options.
1483 * opts.c (maybe_warn_unused_parameter, set_Wextra, handle_param,
1485 (common_handle_option): Handle new options.
1486 * toplev.c (set_target_switch): Export.
1487 (set_Wextra, set_Wunused, maybe_warn_unused_parameter): Move to opts.c.
1488 (decode_W_option): -Wunused and -Wextra handled in opts.c now.
1489 (independent_decode_option): More options handled in opts.c now.
1491 * toplev.h (set_target_switch): New.
1493 2003-06-17 Robert Abeles <rabeles@archaelogic.com>
1496 * c-opts.c (c_common_handle_option): Pass -fdump argument suffix
1498 * tree-dump.c (dump_switch_p): Remove redundant 'dump-' prefix
1499 from static strings in dump_files.
1501 2003-06-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1503 * system.h (ANSI_PROTOTYPES, PTR_CONST, LONG_DOUBLE, VPARAMS,
1504 VA_OPEN, VA_FIXEDARG, VA_CLOSE, VA_START): undef and poison these
1507 2003-06-17 Jason Merrill <jason@redhat.com>
1510 * tree-inline.c (expand_call_inline): Don't warn about failing to
1511 inline a function which was made inline by -finline-functions.
1513 2003-06-17 Kazu Hirata <kazu@cs.umass.edu>
1515 * config/h8300/h8300-protos.h: Update to ISO C.
1516 * config/h8300/h8300.c: Likewise.
1517 * config/h8300/h8300.h: Likewise.
1518 * config/h8300/h8300.md: Likewise.
1520 2003-06-16 Nathanael Nerode <neroden@gcc.gnu.org>
1522 * configure.in: Replace BUILD_CC references with CC_FOR_BUILD.
1523 * configure: Regenerate.
1524 * Makefile.in: Replace BUILD_CC references with CC_FOR_BUILD.
1526 2003-06-17 Ranjit Mathew <rmathew@hotmail.com>
1528 * install.texi (Testing): Add information on how to run Java
1529 runtime tests separately.
1531 2003-06-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1533 * config/mips/mips.md (trap): Use break 0 when !TARGET_GAS.
1535 * config/mips/iris6-o32.h (MIPS_ISA_DEFAULT): Remove.
1536 (MIPS_CPU_STRING_DEFAULT): Redefine to mips2.
1538 2003-06-17 Christopher Faylor <cgf@redhat.com>
1540 * doc/install.texi: Add msvc rebuild caveat.
1542 2003-06-17 Kazu Hirata <kazu@cs.umass.edu>
1544 * config/sh/coff.h: Replace Hitachi with Renesas.
1545 * config/sh/elf.h: Likewise.
1546 * config/sh/embed-elf.h: Likewise.
1547 * config/sh/lib1funcs.asm: Likewise.
1548 * config/sh/sh-protos.h: Likewise.
1549 * config/sh/sh.c: Likewise.
1550 * config/sh/sh.h: Likewise.
1551 * config/sh/sh.md: Likewise.
1553 2003-06-17 Kazu Hirata <kazu@cs.umass.edu>
1555 * ChangeLog.3: Fix comment typos.
1556 * ChangeLog.6: Likewise.
1557 * config/d30v/d30v.c: Likewise.
1558 * config/h8300/h8300.md: Likewise.
1559 * config/m32r/m32r.md: Likewise.
1560 * config/mips/mips.c: Likewise.
1561 * config/mips/mips.md: Likewise.
1562 * config/ns32k/NOTES: Likewise.
1564 2003-06-17 Ranjit Mathew <rmathew@hotmail.com>
1565 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1567 * doc/sourcebuild.texi (libgcj Tests): Simplify instructions on how
1568 to run Java runtime tests separately.
1570 2003-06-17 Kazu Hirata <kazu@cs.umass.edu>
1572 * config/h8300/h8300-protos.h: Update a comment.
1574 2003-06-17 J"orn Rennecke <joern.rennecke@superh.com>
1576 * sh.h (ROUND_TYPE_ALIGN, LOCAL_ALIGNMENT): Complex modes
1577 are aligned like integral modes.
1578 (SH5_WOULD_BE_PARTIAL_NREGS): Also test for CDImode and DCmode.
1580 * sh.h (EXTRA_CONSTRAINT_Csy): Allow PIC_DIRECT_ADDR_P.
1581 (LEGITIMATE_PIC_OPERAND_P): Allow LABEL_REF.
1582 * sh.md (*pt): Remove.
1584 * sh.h (REG_ALLOC_ORDER): Avoid squandering call-saved registers.
1586 * sh.md (return_media_rte): New pattern.
1587 (return_media): Use it.
1589 2003-06-17 Kazu Hirata <kazu@cs.umass.edu>
1591 * doc/contrib.texi: Replace Hitachi with Renesas.
1592 * doc/install.texi: Likewise.
1593 * doc/invoke.texi: Likewise.
1595 2003-06-17 J"orn Rennecke <joern.rennecke@superh.com>
1597 * sh.h (CONST_OK_FOR_J16): Fix HOST_BITS_PER_WIDE_INT >= 64
1600 2003-06-17 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1602 * doc/tm.texi (MD_FALLBACK_FRAME_STATE_FOR): Mention MAKE_THROW_FRAME.
1604 * config/rs6000/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Partly revert
1605 2003-01-23 patch. Corrected to handle kernels with changed ucontext.
1607 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Error on invalid
1608 -msdata=eabi usages.
1610 * gcc/config/rs6000/sysv4.h (USE_LIBC_1): Delete all uses.
1612 2003-06-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1614 * alloc-pool.c: Don't check HAVE_LONG_DOUBLE.
1615 * fixinc/gnu-regex.c: Don't define `volatile'.
1616 * ggc-page.c: Don't check HAVE_LONG_DOUBLE.
1617 * ggc-simple.c: Likewise.
1618 * system.h: Don't define `volatile'.
1620 * aclocal.m4 (gcc_AC_C_VOLATILE, gcc_AC_C_LONG_DOUBLE): Delete.
1621 * configure.in (gcc_AC_C_VOLATILE, gcc_AC_C_LONG_DOUBLE): Don't
1623 * config.in, configure: Regenerated.
1625 2003-06-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1627 * config/ia64/ia64.c (ia64_expand_builtin, case IA64_BUILTIN_BSP):
1628 Handle POINTERS_EXTEND_UNSIGNED.
1630 2003-06-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1632 * config/mips/mips.c (TARGET_ASM_UNALIGNED_DI_OP) [TARGET_IRIX5 &&
1633 !TARGET_IRIX6]: Define as NULL.
1635 2003-06-17 Eric Botcazou <ebotcazou@libertysurf.fr>
1637 * config/sparc/sparc.c (sparc_va_arg): Don't align 16-byte+ structures.
1639 2003-06-17 Eric Botcazou <ebotcazou@libertysurf.fr>
1641 * dbxout.c (dbxout_source_line_counter): New global variable.
1642 Mark it with GTY(()).
1643 (dbxout_source_line): Increment dbxout_source_line_counter
1644 and pass it to ASM_OUTPUT_SOURCE_LINE.
1645 * sdbout.c (sdbout_source_line_counter): New global variable.
1646 Mark it with GTY(()).
1647 (unnamed_struct_number): Mark it with GTY(()).
1648 (sdbout_source_line): Increment sdbout_source_line_counter
1649 and pass it to ASM_OUTPUT_SOURCE_LINE.
1650 * xcoffout.c (ASM_OUTPUT_SOURCE_LINE): Add third parameter
1651 (xcoffout_source_line): Pass 0 as third argument to
1652 ASM_OUTPUT_SOURCE_LINE.
1653 (xcoffout_begin_prologue): Likewise.
1654 * config/dbxout.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
1655 Use it instead of 'sym_lineno' but without incrementing it.
1656 * config/dbxelf.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
1657 * config/lynx.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
1658 * config/ptx4.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
1659 * config/alpha/alpha.c (alpha_start_function): Pass 0 as third
1660 argument to ASM_OUTPUT_SOURCE_LINE.
1661 * config/alpha/alpha.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
1662 * config/arm/aout.h: Remove useless comment.
1663 * config/avr/avr.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
1664 * config/i960/i960.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
1665 * config/m32r/m32r.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
1666 Use it instead of 'sym_lineno' but without incrementing it.
1667 * config/m68k/hp320.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
1668 * config/mcore/mcore-pe.h (ASM_OUTPUT_SOURCE_LINE): Add third
1669 parameter. Use it instead of 'sym_lineno' but without incrementing it.
1670 * config/mips/mips.c (mips_output_function_prologue): Pass 0 as third
1671 argument to ASM_OUTPUT_SOURCE_LINE.
1672 * config/mips/mips.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
1673 * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
1674 * config/pa/som.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
1675 Use it instead of 'sym_lineno' but without incrementing it.
1676 * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
1677 * config/sh/elf.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
1678 * config/sparc/aout.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
1679 * config/sparc/pbd.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
1680 * doc/tm.texi (ASM_OUTPUT_SOURCE_LINE): Document third parameter.
1682 2003-06-17 Richard Sandiford <rsandifo@redhat.com>
1684 * config/mips/mips-protos.h (mips_expand_block_move): Declare.
1685 (expand_block_move, output_block_move): Remove.
1686 * config/mips/mips.h (enum block_move_type): Remove.
1687 * config/mips/mips.c (block_move_call, output_block_move): Remove.
1688 (mips_block_move_straight, mips_adjust_block_mem): New function.
1689 (mips_block_move_loop): Renamed and reworked from block_move_loop.
1690 (mips_expand_block_move): Likewise expand_block_move. Return false
1691 to fall back on the target-independent code.
1692 * config/mips/mips.md (movstrsi): Use mips_expand_block_move.
1693 (movstrsi_internal*): Remove.
1695 2003-06-16 Zack Weinberg <zack@codesourcery.com>
1697 * cpplib.h, cpphash.h, cppcharset.c, cpperror.c, cppexp.c
1698 * cppfiles.c, cpphash.c, cppinit.c, cpplex.c, cpplib.c
1699 * cppmacro.c, cpppch.c, cpptrad.c, cppspec.c: Convert to
1700 ISO C: new-style function declarations, no need for PARAMS,
1701 no special punctuation on indirect function calls, use string
1702 constant concatenation where convenient.
1704 2003-06-17 Andreas Jaeger <aj@suse.de>
1706 * rtl.h: Remove declarations from coverage.h.
1707 * toplev.c: Include coverage.h.
1708 * Makefile.in (toplev.o): Depend on coverage.h.
1710 * toplev.h: Remove extra declaration of print_time.
1712 * gengtype.c (close_output_files): Remove duplicated declaration.
1714 2003-06-16 Nathanael Nerode <neroden@gcc.gnu.org>
1716 * config/sparc/sysv4.h: Remove target-independent comment;
1717 replace "GNU CC" with "GCC".
1718 * config/vxworks.h: Replace "GNU compiler" with "GCC".
1719 * config/sparc/aout.h, config/sparc/biarch64.h, config/sparc/elf.h,
1720 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
1721 config/sparc/lite.h, config/sparc/litecoff.h, config/sparc/liteelf.h,
1722 config/sparc/netbsd-elf.h, config/sparc/openbsd.h,
1723 config/sparc/rtemself.h, config/sparc/sol2-64.h,
1724 config/sparc/sol2-bi.h, config/sparc/sol2-gas-bi.h,
1725 config/sparc/sol2-gld-bi.h, config/sparc/sol2-gld.h,
1726 config/sparc/sol2.h, config/sparc/sp64-aout.h,
1727 config/sparc/sp64-elf.h, config/sparc/sp86x-elf.h,
1728 config/sparc/sparc-protos.h, config/sparc/sysv4-only.h: Replace
1729 "GNU compiler", "GNU CC" with "GCC".
1730 * config/sparc/cypress.md, config/sparc/hypersparc.md,
1731 config/sparc/sparc-modes.def, config/sparc/sparc.c,
1732 config/sparc/sparc.md, config/sparc/sparclet.md,
1733 config/sparc/supersparc.md, config/sparc/ultra1_2.md,
1734 config/sparc/ultra3.md: Replace "GNU CC", "GNU Compiler", and
1735 "GNU C Compiler" with "GCC".
1736 * config/ip2k/ip2k.h: Replace "GNU CC" and "GNU compiler" with "GCC".
1738 2003-06-16 Aldy Hernandez <aldyh@redhat.com>
1740 * simplify-rtx.c (simplify_subreg): Do not over-extend vector
1743 * testsuite/gcc.c-torture/execute/simd-4.c: New.
1745 2003-06-16 Nathanael Nerode <neroden@gcc.gnu.org>
1747 * config/ip2k/ip2k.h: Remove target-independent comments.
1749 * config.gcc: Explicitly mention elfos.h in ip2k entry.
1750 * config/ip2k/ip2k.h: Don't #include it here.
1752 2003-06-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1754 * bitmap.c, builtins.c, c-incpath.c, cgraph.c, config/frv/frv.c,
1755 config/mips/mips.c, cppfiles.c, cpphash.c, cppinit.c, cpplib.c,
1756 dwarf2out.c, dwarfout.c, except.c, expr.c, expr.h, fold-const.c,
1757 function.c, gcc.c, genoutput.c, gensupport.c, global.c,
1758 haifa-sched.c, hashtable.c, ifcvt.c, integrate.c, local-alloc.c,
1759 loop.c, mips-tdump.c, mips-tfile.c, mkdeps.c, protoize.c,
1760 read-rtl.c, recog.h, reload1.c, sbitmap.c, ssa-dce.c,
1761 stringpool.c, tlink.c, tree.c, varasm.c, varray.c: Don't use
1764 * gengtype.c: Don't use UNION_INIT_ZERO.
1765 * system.h (UNION_INIT_ZERO): Delete.
1767 2003-06-16 Richard Henderson <rth@redhat.com>
1769 * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE instead of
1770 GET_MODE_UNIT_SIZE when simplifying constant vectors.
1772 2003-06-16 Andreas Jaeger <aj@suse.de>
1774 * timevar.c (get_run_time): Remove function provided also by
1776 * timevar.h: Remove get_run_time declaration.
1778 2003-06-16 Kazu Hirata <kazu@cs.umass.edu>
1780 * config/m68hc11/m68hc11.c (m68hc11_rtx_costs): Remove
1783 2003-06-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1785 * builtin-attrs.def, builtin-attrs.def, builtins.c, cpplex.c,
1786 cpplib.c, gencheck.c, gengenrtl.c, machmode.def, protoize.c: Don't
1787 use macros from "symcat.h", instead rely on ISO C.
1789 * system.h: Don't include "symcat.h".
1790 * configure.in (AC_C_STRINGIZE): Delete.
1791 * config.in, configure: Regenerate.
1793 2003-06-16 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1795 * Makefile.in (install-mkheaders): Use INSTALL_SCRIPT for scripts.
1797 * tree.h (STMT_CHECK): New macro.
1798 Also upper-case argument names on all checking macros and
1799 fix some whitespace problems; assume CODE argument does not
1802 2003-06-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1804 * scan.h: Convert to ISO C.
1805 * system.h: Likewise.
1807 * c-format.c (dynamic_format_types): New pointer for dynamic data.
1808 (find_length_info_modifier_index, init_dynamic_asm_fprintf_info):
1809 New functions split out of...
1810 (handle_format_attribute): ...here.
1812 2003-06-16 J"orn Rennecke <joern.rennecke@superh.com>
1814 * sh.h (REG_CLASS_FROM_LETTER): Change to:
1815 (REG_CLASS_FROM_CONSTRAINT).
1816 (CONST_OK_FOR_I): Rename to:
1817 (CONST_OK_FOR_I08). Changed all users.
1818 (CONST_OK_FOR_J): Rename to:
1819 (CONST_OK_FOR_I16). Changed all users.
1820 (CONST_OK_FOR_K): Rename to:
1821 (CONST_OK_FOR_P27). Changed all users.
1822 (CONST_OK_FOR_L): Rename to:
1823 (CONST_OK_FOR_K08). Changed all users.
1824 (CONST_OK_FOR_O): Rename to:
1825 (CONST_OK_FOR_I06). Changed all users.
1826 (CONST_OK_FOR_P): Rename to:
1827 (CONST_OK_FOR_I10). Changed all users.
1828 (CONSTRAINT_LEN, CONST_OK_FOR_I, CONST_OK_FOR_J16): Define.
1829 (CONST_OK_FOR_J, CONST_OK_FOR_K, CONST_OK_FOR_P): Likewise.
1830 (EXTRA_CONSTRAINT_A, EXTRA_CONSTRAINT_Bsc): Likewise.
1831 (EXTRA_CONSTRAINT_B, PIC_OFFSET_P, PIC_DIRECT_ADDR_P): Likewise.
1832 (EXTRA_CONSTRAINT_Cpg, EXTRA_CONSTRAINT_C): Likewise.
1833 (EXTRA_MEMORY_CONSTRAINT,(EXTRA_CONSTRAINT_Sr0): Likewise.
1834 (CONST_OK_FOR_LETTER_P): Replace with
1835 (CONST_OK_FOR_CONSTRAINT_P).
1836 (EXTRA_CONSTRAINT_S): Rename to:
1837 (EXTRA_CONSTRAINT_C16). Changed all users.
1838 (MOVI_SHORI_BASE_OPERAND_P): Don't allow direct addresses.
1839 (EXTRA_CONSTRAINT_T): Rename to:
1840 (EXTRA_CONSTRAINT_Csy). Changed all users.
1841 (EXTRA_CONSTRAINT_Z): Remove.
1842 (EXTRA_CONSTRAINT): Replace with:
1843 (EXTRA_CONSTRAINT_STR).
1844 (EXTRA_CONSTRAINT_U): Rename to:
1845 (EXTRA_CONSTRAINT_Z). Changed all users.
1846 * sh.c (and_operand): Use CONST_OK_FOR_J16.
1847 * sh.md (cmpeqsi_t-1, cmpeqsi_t, adddi3_media): Use new constraints.
1848 (addsi3_media, addsi3_compact, andsi3_compact, anddi3): Likewise.
1849 (iorsi3, iordi3, xorsi3, xordi3, ashlsi3_std, ashlhi3_k): Likewise.
1850 (lshrsi3_k, movsi_i, movsi_ie, movsi_i_lowpart, movsi_media): Likewise.
1851 (movsi_media_nofpu, movqi_media, movhi_i, movhi_media): Likewise.
1852 (*movdi_i, movdi_media, movdi_media_nofpu, shori_media): Likewise.
1853 (movdf_media, movdf_media_nofpu, movv2sf_i, movv4sf_i): Likewise.
1854 (movsf_media, movsf_media_nofpu, movsi_y, beq_media): Likewise.
1855 (beq_media_i, bne_media, pt, ptb, movv8qi_i, movv2hi_i): Likewise.
1856 (movv4hi_i, movv2si_i, negcmpeqv8qi, negcmpeqv2si): Likewise.
1857 (negcmpeqv4hi, negcmpgtuv8qi, negcmpgtv2si, negcmpgtv4hi): Likewise.
1858 (mcmv, mcnvs_lw, mcnvs_wb, mcnvs_wub, mextr_rl, mextr_lr): Likewise.
1859 (mextr1, mextr2, mextr3, mextr4, mextr5, mextr6, mextr7): Likewise.
1860 (mperm_w, mperm_w_little, mperm_w_big, msad_ubq_i): Likewise.
1861 (mshards_q, mshfhi_b, mshflo_b, mshf4_b, mshf0_b, mshfhi_l): Likewise.
1862 (mshflo_l, mshf4_l, mshf0_l, mshfhi_w, mshflo_w, mshf4_w): Likewise.
1863 (mshf0_w, mshflo_w_x, mshfhi_l_di, mshfhi_l_di_rev): Likewise.
1864 (mshflo_l_di_rev, mshflo_l_di_x, concat_v2sf): Likewise.
1865 (mshflo_l_di_x_rev, subv2si3, subv4hi3, sssubv2si3): Likewise.
1866 (sssubv4hi3): Likewise.
1867 (movsf_i): Change I[08]/r to G/r.
1868 (movsf_ie): Change f/{G,H}/c/X to f/{G,H}/c/Bsc.
1870 * sh.c (sh_output_mi_thunk): Use CONST_OK_FOR_ADD.
1872 2003-06-16 Vladimir Makarov <vmakarov@redhat.com>
1874 * config/i386/i386.c (ix86_memory_move_cost): Fix typo.
1876 2003-06-16 Andreas Jaeger <aj@suse.de>
1878 * basic-block.h: Remove duplicate prototype of
1879 note_prediction_to_br_prob.
1881 * tree.h: Remove duplicate prototype of strip_float_extensions.
1883 2003-06-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1885 * config/c4x/c4x.c: Don't include "c-tree.h".
1886 * config/pa/pa.c: Likewise.
1887 * langhooks.c: Likewise.
1888 * tree.h (poplevel): Declare.
1890 2003-06-16 Kazu Hirata <kazu@cs.umass.edu>
1892 * config/h8300/h8300.c (const_costs): Move this to ...
1893 (h8300_rtx_costs): ... here.
1895 2003-06-16 Roger Sayle <roger@eyesopen.com>
1897 * optabs.h (enum optab_index): Add new OTI_tan and OTI_atan.
1898 (tan_optab, atan_optab): Define corresponding macros.
1899 * optabs.c (init_optabs): Initialize tan_optab and atan_optab.
1900 * genopinit.c (optabs): Implement tan_optab and atan_optab
1901 using tan?f2 and atan?f2 patterns.
1902 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_TAN{,F,L}
1903 using tan_optab, and BUILT_IN_ATAN{,F,L} using atan_optab.
1904 Change the default value of errno_set to false.
1905 (expand_builtin): Expand BUILT_IN_TAN{,F,L} and BUILT_IN_ATAN{,F,L}
1906 using expand_builtin_mathfn.
1908 * config/i386/i386.md (atansf2, atandf2, atanxf2, atantf2): New
1909 expander patterns implemented using existing atan2?f3 patterns.
1911 2003-06-16 Roger Sayle <roger@eyesopen.com>
1913 * expr.c (expand_expr <PLUS_EXPR>): If operand_equal_p considers
1914 both operands of the addition equal, reuse the expanded RTL.
1915 (expand_expr <MULT_EXPR>): Likewise for multiplication.
1917 2003-06-16 Roger Sayle <roger@eyesopen.com>
1918 Jeff Law <law@redhat.com>
1920 * fold-const.c (operand_equal_p): Consider two calls to "const"
1921 functions with identical non-volatile arguments to be equal.
1922 Consider the FUNCTION_DECL for the "__builtin_foo" form of a
1923 built-in function to be equal to the "foo" form.
1925 2003-06-16 Nathanael Nerode <neroden@gcc.gnu.org>
1927 * config/rs6000/sysv4le.h: Remove target-independent comment.
1928 Replace "GNU compiler" with "GCC" in comment.
1930 2003-06-16 Andreas Jaeger <aj@suse.de>
1932 * tracer.c: Remove duplicate declaration.
1934 * toplev.c: Remove extra declaration of decode_d_option.
1936 * ssa.c: Remove duplicate declaration.
1938 * sreal.c: Remove extra declaration of dump_sreal.
1940 * reload1.c: Remove duplicate declarations.
1942 * integrate.c: Remove extra declaration of
1943 set_decl_abstract_flags.
1945 * flow.c: Remove extra declaration of dump_flow_info.
1947 * alias.c: Remove extra declaration of get_addr.
1949 2003-06-16 Nathanael Nerode <neroden@gcc.gnu.org>
1951 * config/rtems.h, config/sol2.h, config/svr4.h, config/usegas.h,
1952 config/vxworks.h: GNU CC -> GCC.
1954 * convert.c, dwarf2out.c, dwarfout.c, emit-rtl.c, function.c,
1955 lists.c, print-rtl.c, print-tree.c, read-rtl.c, rtl-error.c,
1956 stmt.c, toplev.c, integrate.h, loop.h, machmode.h, rtl.h,
1957 ssa.h, tree.def: Replace overly specific references to "GNU C"
1958 and "GNU C Compiler" with references to "GCC".
1960 2003-06-16 J"orn Rennecke <joern.rennecke@superh.com>
1962 * sh.c (prepare_move_operand): Check if operand 0 is an invalid
1963 memory reference. Fix test that checks if operand 1 is using r0.
1964 * sh.md (movhi_i): Don't allow st.w r0,@(rX,rY) .
1966 * defaults.h (REG_CLASS_FROM_CONSTRAINT): Only define if not already
1969 2003-06-15 Nathan Sidwell <nathan@codesourcery.com>
1971 * function.h (struct emit_status): Remove x_last_linenum,
1972 x_last_filename. Add x_last_location.
1973 * rtl.h: #include "input.h".
1975 * cfglayout.c (duplicate_insn_chain): Use emit_line_note for line
1977 * emit-rtl.c (last_linenum, last_filename): Remove.
1978 (last_location): New.
1979 (emit_line_note_after): LINE must always be >= 0.
1980 (emit_line_note): Likewise. Check not duplicate here...
1981 (emit_note): ... rather than here.
1982 (emit_line_note_force, force_next_line_note, init_emit): Adjust.
1983 * integrate.c (expand_inline_function): Use emit_line_note for
1985 (copy_insn_list): Likewise.
1986 * unroll.c (copy_loop_body): Likewise.
1987 * Makefile.in (RTL_H): Add input.h.
1989 2003-06-16 Richard Sandiford <rsandifo@redhat.com>
1991 * optabs.c (emit_libcall_block): Don't hoist insns past a label.
1993 2003-06-16 Richard Henderson <rth@redhat.com>
1995 * config/alpha/alpha-protos.h, config/alpha/elf.h,
1996 config/alpha/osf.h, config/alpha/unicosmk.h, config/alpha/vms.h,
1997 config/alpha/vms-cc.c, config/alpha/vms-ld.c: Update to ISO C.
1998 * config/alpha/alpha.c: Likewise. Move targetm init to end of file.
1999 Remove unneeded static function decls.
2001 2003-06-16 Neil Booth <neil@daikokuya.co.uk>
2003 * c-opts.c (c_common_handle_option): s/on/value/.
2004 (OPT_fabi_version_, OPT_ftabstop_, OPT_ftemplate_depth_): Use value
2005 directly rather than converting the argument.
2006 * c.opt: Update docs. Use UInteger where appropriate.
2007 * common.opt: Use UInteger where appropriate.
2008 * opts.c (integral_argument): New.
2009 (handle_argument): Handle integral arguments, and optional
2011 (common_handle_option): Update.
2012 * opts.h (CL_MISSING_OK, CL_UINTEGER): New.
2013 * opts.sh: Handle JoinedOrMissing and UInteger flags.
2015 2003-06-16 Neil Booth <neil@daikokuya.co.uk>
2017 * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Remove
2018 unnecessary extern declaration.
2020 2003-06-15 Nathanael Nerode <neroden@gcc.gnu.org>
2022 * config/gofast.h, config/interix.h, config/interix3.h,
2023 config/libgloss.h, config/linux-aout.h, config/linux.h,
2024 config/lynx-ng.h, config/lynx.h: GNU CC -> GCC.
2025 * config/kaos.h: "GNU compiler" -> GCC.
2026 * config/linux-aout.h, config/lynx.h: Clarify comment describing file.
2028 * config/ip2k/crt0.S, config/ip2k/ip2k-protos.h,
2029 config/ip2k/ip2k.c, config/ip2k/ip2k.md, config/ip2k/libgcc.S:
2032 * config/svr3.h: Remove #if 0 code, misleading comments.
2035 2003-06-15 Zack Weinberg <zack@codesourcery.com>
2037 * vmsdbgout.c (vmsdbgout_finish): Rename parameter to
2038 main_input_filename to avoid conflict with input_filename macro.
2040 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
2042 * config/mips/mips.h (asm_file_name, g_switch_set,
2043 g_switch_value): Remove.
2044 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
2045 unnecessary extern declarations.
2047 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
2049 * config/frv/frv.h: Remove declaration of g_switch_value.
2050 * config/m32r/m32r.h: Remove declaration of g_switch_value.
2051 * config/m68hc11/m68hc11.c: Remove declaration of asm_file_name.
2053 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
2055 * opts.sh: Quote '+' in regex.
2057 2003-06-15 Andrew Pinski <pinskia@physics.uc.edu>
2059 * config/rs6000/t-rs6000: Add dependence of cfglayout.h to rs6000.o.
2060 * config/rs6000/rs6000.c: Include cfglayout.h.
2061 * config/alpha/alpha.c: Likewise.
2062 * config/ia64/ia64.c: Likewise.
2063 * config/sparc/sparc.c: Likewise.
2064 * config/sh/sh.c: Likewise.
2066 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
2068 * opts.sh: Quote '+' in regex.
2070 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
2072 * c-opts.c (lang_flags): Update for new spelling of flags.
2073 (write_langs): Similarly.
2074 * c.opt: Specify languages.
2075 * opts.h: Remove languages.
2076 * opts.sh: Recognise front-end defined languages.
2077 * doc/sourcebuild.texi: Update.
2079 2003-06-15 Andreas Jaeger <aj@suse.de>
2081 * alloc-pool.c: Convert to ISO C90 prototypes.
2082 * alloc-pool.h: Likewise.
2083 * alias.c: Likewise.
2084 * attribs.c: Likewise.
2085 * bb-reorder.c: Likewise.
2086 * bitmap.h: Likewise.
2087 * bitmap.c: Likewise.
2088 * builtins.c: Likewise.
2090 * tree.h: Convert prototypes of attribs.c to ISO C90.
2091 * basic-block.h: Convert prototypes of bb-reorder.c to ISO C90.
2092 * rtl.h: Convert prototypes of alias.c and builtins.c to ISO C90.
2093 * expr.h: Convert prototypes of builtins.c to ISO C90.
2095 2003-06-15 Roger Sayle <roger@eyesopen.com>
2097 * config/i386/i386.md (expsf2, expdf2, expxf2): New patterns to
2098 implement exp, expf and expl built-ins as inline x87 intrinsics.
2099 (UNSPEC_FSCALE, UNSPEC_FRNDINT, UNSPEC_F2XM1): New unspecs to
2100 represent x87's fscale, frndint and f2xm1 insns respectively.
2101 (*fscale_sfxf3, *fscale_dfxf3, *fscale_xf3): New insn patterns
2102 to encode x87's "fscale" instruction followed by a pop.
2103 (*frndintxf2): New insn pattern for "frndint".
2104 (*f2xm1xf2): New insn pattern for "f2xm1".
2106 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FRNDINT and
2107 UNSPEC_F2XM1 like UNSPEC_{SIN,COS} and handle UNSPEC_FSCALE like
2110 2003-06-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2112 * gencheck.c (main): Avoid generating duplicate macros.
2114 * Makefile.in (stagefeedback-start): Use $(SUBDIRS) instead of
2115 knowing names of language subdirectories.
2117 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
2119 * c-pch.c (asm_file_name): Remove.
2120 * common.opt: Add more switches.
2121 * flags.h (g_switch_set): Boolify.
2122 * opts.c (g_switch_value, g_switch_set, exit_after_options,
2123 version_flag): Move from toplev.c.
2124 (common_handle_option): Handle more switches from toplev.c.
2125 * toplev.c (display_help, display_target_options, decode_d_option,
2126 print_version): Make non-static, remove prototypes.
2127 (aux_base_name, asm_file_name, aux_info_file_name): Constify.
2128 (version_flag, g_switch_value, g_switch_set, exit_after_options):
2130 (independent_decode_option): Move some handlers to opts.c.
2131 * toplev.h (aux_info_file_name, aux_base_name, asm_file_name,
2132 exit_after_options, version_flag, display_help, display_target_options,
2133 print_version, decode_d_option): New.
2135 2003-06-15 Kazu Hirata <kazu@cs.umass.edu>
2137 * config/alpha/alpha.md: Follow spelling conventions.
2138 * config/arm/arm.c: Likewise.
2139 * config/arm/arm.h: Likewise.
2140 * config/arm/arm.md: Likewise.
2141 * config/arm/crtn.asm: Likewise.
2142 * config/m32r/m32r.c: Likewise.
2143 * config/m32r/m32r.md: Likewise.
2144 * config/rs6000/rs6000.c: Likewise.
2146 2003-06-15 Richard Henderson <rth@redhat.com>
2148 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
2149 insn_locators_initialize.
2150 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
2151 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
2152 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
2153 * config/sh/sh.c (sh_output_mi_thunk): Do it later.
2155 2003-06-15 Kazu Hirata <kazu@cs.umass.edu>
2157 * builtins.c (expand_builtin_expect_jump): Remove redundant
2158 tests that are also in any_condjump_p().
2160 2003-06-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2162 * libgcc2.c: Delete sysV68 L_trampoline section.
2163 * config/m68k/mot3300-crt0.S: Delete file.
2164 * config/m68k/mot3300Mcrt0.S: Likewise.
2166 2003-06-15 Nathanael Nerode <neroden@gcc.gnu.org>
2168 * config/aoutos.h: Remove.
2169 * config.gcc: Remove reference to aoutos.h.
2170 * config/m68k/m68k-aout.h: Remove reference to aoutos.h.
2172 2003-06-14 Kazu Hirata <kazu@cs.umass.edu>
2174 * doc/install.texi: Follow spelling conventions.
2175 * doc/tm.texi: Likewise.
2176 * config/fp-bit.c: Likewise.
2177 * config/arm/arm.c: Likewise.
2178 * config/frv/frv.c: Likewise.
2179 * config/ns32k/NOTES: Likewise.
2180 * config/ns32k/STATUS: Likewise.
2182 2003-06-14 Roger Sayle <roger@eyesopen.com>
2183 Zack Weinberg <zack@codesourcery.com>
2185 * rtl.h (STORE_FLAG_VALUE): Remove default definition from here.
2186 * defaults.h (STORE_FLAG_VALUE): Move default definition to here.
2187 * doc/tm.texi (STORE_FLAG_VALUE): Document the default value.
2189 * config/alpha/alpha.h (STORE_FLAG_VALUE): Remove definition.
2190 * config/arc/arc.h (STORE_FLAG_VALUE): Likewise.
2191 * config/arm/arm.h (STORE_FLAG_VALUE): Likewise.
2192 * config/cris/cris.h (STORE_FLAG_VALUE): Likewise.
2193 * config/i370/i370.h (STORE_FLAG_VALUE): Likewise.
2194 * config/i386/i386.h (STORE_FLAG_VALUE): Likewise.
2195 * config/i960/i960.h (STORE_FLAG_VALUE): Likewise.
2196 * config/ia64/ia64.h (STORE_FLAG_VALUE): Likewise.
2197 * config/ip2k/ip2k.h (STORE_FLAG_VALUE): Likewise.
2198 * config/m32r/m32r.h (STORE_FLAG_VALUE): Likewise.
2199 * config/mcore/mcore.h (STORE_FLAG_VALUE): Likewise.
2200 * config/mips/mips.h (STORE_FLAG_VALUE): Likewise.
2201 * config/mmix/mmix.h (STORE_FLAG_VALUE): Likewise.
2202 * config/ns32k/ns32k.h (STORE_FLAG_VALUE): Likewise.
2203 * config/pa/pa.h (STORE_FLAG_VALUE): Likewise.
2204 * config/pdp11/pdp11.h (STORE_FLAG_VALUE): Likewise.
2205 * config/sh/sh.h (STORE_FLAG_VALUE): Likewise.
2206 * config/sparc/sparc.h (STORE_FLAG_VALUE): Likewise.
2207 * config/v850/v850.h (STORE_FLAG_VALUE): Likewise.
2208 * config/xtensa/xtensa.h (STORE_FLAG_VALUE): Likewise.
2210 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
2212 * opts.sh (POSIXLY_CORRECT): Unset it.
2214 * tree.h (init_function_start): Remove filename and line paramters.
2215 * function.c (init_function_start): Remove filename and line
2216 parameters. Use DECL_SOURCE_LOCATION.
2217 * c-decl.c (store_parm_decls): Adjust init_function_start call.
2218 (c_expand_body_1): Likewise.
2219 * coverage.c (create_coverage): Likewise.
2220 * objc/objc-act.c (build_tmp_function_decl): Set line number to
2222 (hack_method_prototype): Adjust init_function_start call.
2224 2003-06-14 Richard Earnshaw <rearnsha@arm.com>
2227 * arm/linux-elf.h (PROFILE_HOOK): Define.
2229 2003-06-14 Richard Earnshaw <rearnsha@arm.com>
2232 * arm.h (CANNOT_CHANGE_MODE_CLASS): Define.
2234 2003-06-14 Roger Sayle <roger@eyesopen.com>
2236 * opts.sh: Work around a mysterious feature in cygwin's gawk
2237 where specifying the input files explicitly has a different
2238 behavior to piping them via stdin.
2240 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
2242 * doc/sourcebuild.texi: Update.
2244 2003-06-14 Richard Earnshaw <rearnsha@arm.com>
2247 * arm.c (output_move_double): Pass SImode to adjust_address.
2249 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
2251 * Makefile.in: Update to use common.opt and lang_opt_files.
2252 (c-options.c, c-options.h): Remove.
2253 (options.c, options.h): Add.
2254 * c-opts.c: Include options.h not c-options.h.
2255 * common.opt: New file.
2256 * configure, configure.in: Add lang_opt_files.
2257 * opts.c: Include flags.h and diagnostic.h.
2258 (common_handle_option): New.
2259 (handle_option): Update to recognize common options and all
2260 language-dependent options.
2261 * opts.h (CL_F77, CL_JAVA, CL_ADA, CL_COMMON, CL_TREELANG): New.
2262 (struct cl_option): Make flags of type int.
2263 * opts.h: Flag option with front ends to which it applies.
2264 Handle duplicate options.
2265 * toplev.c (filename): Remove.
2266 (independent_decode_option): Don't handle filenames and -quiet.
2267 (process_options, do_compile): Update.
2269 2003-06-14 Nick Clifton <nickc@redhat.com>
2271 * doc/install.texi (Specific): Add description of different
2272 ARM supported file format targets.
2274 Sat Jun 14 11:12:04 CEST 2003 Jan Hubicka <jh@suse.cz>
2276 * reorg.c (emit_delay_sequence, dbr_schedule): Clear insn locators
2279 2003-06-13 Matt Kraai <kraai@alumni.cmu.edu>
2281 * unwind-c.c: Define NO_SIZE_OF_ENCODED_VALUE.
2282 * unwind-pe.h (size_of_encoded_value): Do not define if
2283 NO_SIZE_OF_ENCODED_VALUE is defined.
2285 2003-06-13 Roger Sayle <roger@eyesopen.com>
2287 * expr.c (expand_expr <COMPLEX_CST>): Handle the case of
2288 expanding a complex constant into a CONCAT target.
2290 2003-06-13 Zack Weinberg <zack@codesourcery.com>
2292 * config/svr3.h (ASM_FILE_START): Don't use ASM_FILE_START_1.
2293 (ASM_FILE_START_1): Delete.
2294 * config/i386/att.h, config/i386/sco5.h,
2296 (ASM_FILE_START_1): Delete.
2298 2003-06-13 Kelley Cook <kelleycook@wideopenwest.com>
2300 * config/i386/bsd.h: Remove ASM_FILE_START.
2301 * config/i386/djgpp.h: Likewise.
2302 * config/i386/gas.h (ASM_FILE_START): Output .file before .intel_syntax.
2304 * config/i386/djgpp.h: Move included unix.h, bsd.h, gas.h to ...
2305 * config.gcc (i[34567]86-pc-msdosdjgpp): ... here.
2307 2003-06-13 Vladimir Makarov <vmakarov@redhat.com>
2310 * haifa-sched.c (max_lookahead_tries,
2311 cached_first_cycle_multipass_dfa_lookahead,
2312 cached_issue_rate): New variables.
2313 (max_issue): Check the number of tries.
2314 (choose_ready): Calculate max_lookahead_tries.
2315 (sched_init): Check cached_issue_rate.
2317 2003-06-13 Richard Henderson <rth@redhat.com>
2319 * cfgbuild.c (make_edges): Set ABNORMAL with SIBCALL.
2320 * cfgrtl.c (purge_dead_edges): Expect it too.
2322 2003-06-13 Jim Wilson <wilson@tuliptree.org>
2323 Eric Botcazou <ebotcazou@libertysurf.fr>
2326 * combine.c (make_extraction): Use gen_lowpart_for_combine
2327 when extracting from a REG and not in the destination of a SET.
2329 2003-06-13 Doug Evans <dje@sebabeach.org>
2331 * tsystem.h (abort): Declare in inhibit_libc case to remove build
2332 warnings for addvsi3, et.al.
2334 2003-06-13 Aldy Hernandez <aldyh@redhat.com>
2336 * c-common.c (handle_mode_attribute): Use VECTOR_MODE_P macro.
2338 * simplify-rtx.c (simplify_subreg): Same.
2340 * emit-rtl.c (gen_lowpart_common): Same.
2342 2003-06-13 Kazu Hirata <kazu@cs.umass.edu>
2344 * builtins.c: Fix comment typos.
2345 * fold-const.c: Likewise.
2347 2003-06-13 Doug Evans <dje@sebabeach.org>
2348 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
2350 * config/m32r/m32r-protos.h (m32r_pass_by_reference): Declare.
2351 * config/m32r/m32r.c (m32r_pass_by_reference): New fn.
2352 (m32r_va_arg): Use it.
2353 * config/m32r/m32r.h (FUNCTION_ARG_PASS_BY_REFERENCE): Ditto.
2354 (RETURN_IN_MEMORY): Ditto.
2356 2003-06-13 Nathanael Nerode <neroden@gcc.gnu.org>
2358 * c-typeck.c: Remove #if 0 clauses.
2361 * config/alpha/openbsd.h, config/i386/openbsd.h,
2362 config/m68k/openbsd.h, config/sparc/openbsd.h: Remove
2363 residual reference to EGCS.
2365 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
2367 * arm.c (output_call_mem): If the address references the link-register
2368 use an instruction sequence that avoids early-clobbering IP.
2369 (eliminate_lr2ip): Delete.
2371 2003-06-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2373 * c-format.c (format_types_orig): Disallow '*' width/precision in
2374 asm_fprintf format checks.
2376 2003-06-13 Ulrich Weigand <uweigand@de.ibm.com>
2378 * config/s390/s390.c (s390_va_arg): Fix alignment when retrieving
2379 non-integral types from integer register save area slots.
2381 2003-06-13 Nathanael Nerode <neroden@gcc.gnu.org>
2383 * config/i386/svr3dbx.h: GNU CC -> GCC; Intel 385 -> Intel 386.
2385 2003-06-13 Florian Weimer <fw@deneb.enyo.de>
2387 * doc/invoke.texi (SPARC Options): Document ``-mimpure-text''.
2389 2003-06-13 Kaz Kojima <kkojima@gcc.gnu.org>
2391 * config/sh/linux.h (TARGET_ASM_FILE_END): Set TARGET_ASM_FILE_END
2392 to file_end_indicate_exec_stack.
2394 2003-06-12 Richard Henderson <rth@redhat.com>
2397 * config/i386/i386.md (sse_movaps): Use an expander to force
2398 one operand to be a register.
2399 (sse_movups): Likewise.
2401 2003-06-13 Doug Evans <dje@sebabeach.org>
2403 Remove some build warnings.
2404 * config/m32r/initfini.c (__CTOR_LIST__,__DTOR_LIST__): Attribute used.
2405 (__do_global_ctors,__do_global_dtors): Ditto.
2407 2003-06-12 Richard Henderson <rth@redhat.com>
2410 * rtlanal.c (subreg_offset_representable_p): Relax subreg check.
2412 2003-06-13 Kazu Hirata <kazu@cs.umass.edu>
2414 * config/m32r/m32r.md: Fix a comment typo.
2416 2003-06-13 Eric Botcazou <ebotcazou@libertysurf.fr>
2417 Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
2420 * config/sparc/sparc.c (function_arg_record_value_parms): Add
2422 (function_arg_record_value_1): Set 'stack' to 1 if we run out of
2423 integer slots for an integer field.
2424 (function_arg_record_value_3): Shift vector index.
2425 (function_arg_record_value_2): Likewise.
2426 (function_arg_record_value): Initialize 'stack' to 0.
2427 Set 'stack' to 1 if we run out of integer slots for an integer field.
2428 Generate (parallel [(expr_list (nil) ...) ...]) if 'stack' is set to 1.
2430 2003-06-13 Eric Botcazou <ebotcazou@libertysurf.fr>
2432 PR optimization/10955
2433 * unroll.c (unroll_loop): Fix off-by-one bug.
2435 2003-06-12 Aldy Hernandez <aldyh@redhat.com>
2437 * config/rs6000/rs6000.c (function_arg): Remove typo.
2439 2003-06-12 Richard Henderson <rth@redhat.com>
2441 * config/i386/i386.c (legitimate_constant_p): Handle UNSPEC_NTPOFF
2444 2003-06-12 Richard Henderson <rth@redhat.com>
2447 * expmed.c (emit_store_flag): Use simplify_gen_subreg directly
2448 for extracting sub-words.
2450 2003-06-12 Richard Henderson <rth@redhat.com>
2453 * config/m68k/m68k.md (zero_extendhisi2): Use gen_lowpart_SUBREG.
2454 (zero_extendqihi2, zero_extendqisi2): Likewise.
2456 2003-06-12 Aldy Hernandez <aldyh@redhat.com>
2458 * config/rs6000/rs6000.c (function_arg): Always split vectors for
2459 e500 if it's a stdarg function.
2460 (function_arg_advance): Advance 2 registers for vectors in a
2462 (init_cumulative_args): Initialize stdarg.
2463 (rs6000_spe_function_arg): New.
2465 * config/rs6000/rs6000.h (rs6000_args): Add stdarg.
2467 2003-06-12 Aldy Hernandez <aldyh@redhat.com>
2469 * config/rs6000/rs6000.h (MODES_TIEABLE_P): Add SPE vectors.
2471 2003-06-12 Roger Sayle <roger@eyesopen.com>
2474 * fold-const.c (tree_expr_nonnegative_p): Handle addition
2475 and multiplication of zero extensions, floating point division,
2476 and integer<->fp, fp<->fp and zero extension conversions.
2477 The built-in ceil and floor functions preserve signedness.
2479 2003-06-12 Kazu Hirata <kazu@cs.umass.edu>
2481 * ChangeLog: Follow spelling conventions.
2482 * ChangeLog.2: Likewise.
2483 * c-decl.c: Likewise.
2484 * cfgloop.h: Likewise.
2485 * cgraph.c: Likewise.
2486 * coverage.c: Likewise.
2487 * cppcharset.c: Likewise.
2488 * cpphash.h: Likewise.
2489 * cpplex.c: Likewise.
2490 * cpplib.c: Likewise.
2491 * dbxout.c: Likewise.
2493 * dwarf2out.c: Likewise.
2494 * dwarfout.c: Likewise.
2495 * emit-rtl.c: Likewise.
2496 * explow.c: Likewise.
2497 * gcov-io.c: Likewise.
2498 * gcov-io.h: Likewise.
2500 * gengtype.c: Likewise.
2504 * reload.c: Likewise.
2507 2003-06-12 Janis Johnson <janis187@us.ibm.com>
2509 * doc/install.texi (m32r-*-elf): Change company to Renesas.
2511 Thu Jun 12 20:00:55 CEST 2003 Jan Hubicka <jh@suse.cz>
2513 * basic-block.h (flow_delete_block_noexpunge): Kill.
2514 * cfgrtl.c (flow_delete_block_noexpunge): Merge to
2517 2003-06-10 Richard Henderson <rth@redhat.com>
2520 * reg-stack.c (any_malformed_asm): New.
2521 (check_asm_stack_operands): Set it.
2522 (convert_regs_1): Check it before aborting.
2524 2003-06-12 Aldy Hernandez <aldyh@redhat.com>
2526 * config/rs6000/spe.md: Change all clobbers of the accumulator to sets.
2528 2003-06-12 Jakub Jelinek <jakub@redhat.com>
2530 * c-opts.c (complain_wrong_lang): Add on argument.
2531 Print no- switch if on is false.
2532 (c_common_decode_option): Adjust caller.
2534 2003-06-12 Ulrich Weigand <uweigand@de.ibm.com>
2536 * config/s390/s390.c (s390_emit_prologue): Use LA instead of AR
2537 to initialize GOT register.
2539 2003-06-12 Roger Sayle <roger@eyesopen.com>
2541 * fold-const.c (tree_expr_nonnegative_p): Add support for
2542 floating point constants, addition and multiplication.
2544 2003-06-12 J"orn Rennecke <joern.rennecke@superh.com>
2546 * sh.md (adddi3_compact, subdi3_compact): Add earlyclobber
2547 constraint modifier for operand 0.
2549 2003-06-12 Hans-Peter Nilsson <hp@axis.com>
2551 Don't warn on dollars in builtin macro definitions,
2552 e.g. __REGISTER_PREFIX__.
2553 * cpphash.h (struct cpp_reader): Move member warn_dollars...
2554 * cpplib.h (struct cpp_options): ...to here. Change type to
2556 * cppinit.c (cpp_create_reader): Set it to 1 here.
2557 (post_options): Don't set it here.
2558 * c-opts.c (c_common_init_options): Reset it to 0 here.
2559 (finish_options): Set it here.
2560 * cpplex.c (forms_identifier_p): Tweak for new location of
2563 * configure.in (assembler dwarf2 debug_line support): Define insn
2564 for cris-*-* and mmix-*-*.
2565 * configure: Regenerate.
2567 2003-06-11 Uwe Stieber <uwe@kaos-group.de>
2569 * config.gcc (arm*-*-kaos*, i[34567]86-*-kaos*, powerpc-*-kaos*,
2570 powerpcle-*-kaos*, strongarm-*-kaos*): New targets.
2571 (sh-*-elf*): Add sh*-*-kaos* support.
2572 * config/kaos.h, config/arm/kaos-strongarm.h, config/arm/kaos-arm.h,
2573 config/i386/kaos-i386.h, config/rs6000/kaos-ppc.h,
2574 config/sh/kaos-sh.h: New files.
2576 2003-06-12 Kazu Hirata <kazu@cs.umass.edu>
2578 * gcse.c (fis_get_condition): Make it a global function.
2579 * reload1.c (reload_cse_move2add): Detect implicit sets.
2580 * rtl.h: Add a prototype for fis_get_condition.
2582 2003-06-11 Richard Henderson <rth@redhat.com>
2584 * stmt.c (expand_asm_operands): Don't warn for memories with
2587 2003-06-11 Kaz Kojima <kkojima@gcc.gnu.org>
2589 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC): Rewrite without
2592 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
2594 * hooks.c (hook_int_size_t_constcharptr_int_0): New.
2595 * hooks.h (hook_int_size_t_constcharptr_int_0): New.
2596 * langhooks-def.h (lhd_decode_option, LANG_HOOKS_DECODE_OPTION): Die.
2597 (LANG_HOOKS_HANDLE_OPTION, LANG_HOOKS_INITIALIZER): Update.
2598 * langhooks.c (lhd_decode_option): Remove.
2599 * langhooks.h (struct lang_hooks): Remove decode_option.
2600 * opts.c (handle_option): No longer use decode_option.
2602 2003-06-11 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2604 * cfgloopanal.c (variable_initial_value): Update the set of altered
2605 registers correctly.
2607 2003-06-11 Roger Sayle <roger@eyesopen.com>
2608 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2610 * config/d30v/d30v.h: Delete reference to ASM_FINAL_SPEC.
2611 * config/i386/netbsd-elf.h: Likewise.
2612 * config/m32r/m32r.h: Likewise.
2613 * config/mn10300/mn10300.h: Likewise.
2614 * config/stormy16/stormy16.h: Likewise.
2615 * config/v850/v850.h: Likewise.
2616 * config/vax/netbsd-elf.h: Likewise.
2617 * config/xtensa/elf.h: Likewise.
2618 * config/xtensa/linux.h: Likewise.
2620 2003-06-11 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2622 * config/mips/iris5gas.h (MDEBUG_ASM_SPEC): Override to match
2625 * config/mips/dbxmdebug.h: New file.
2626 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it with
2627 gas and --with-stabs.
2629 2003-06-11 Ulrich Weigand <uweigand@de.ibm.com>
2631 * expr.c (can_move_by_pieces): align argument may be unused.
2633 2003-06-11 J"orn Rennecke <joern.rennecke@superh.com>
2635 * expr.c (convert_move): Handle moves between two CONCATs.
2637 2003-06-11 Kazu Hirata <kazu@cs.umass.edu>
2639 * config/h8300/h8300.h (RETURN_IN_MEMORY): Accept DImode if
2642 2003-06-11 Kazu Hirata <kazu@cs.umass.edu>
2644 * config/h8300/h8300.c (final_prescan_insn): Don't dump rtl.
2645 * config/h8300/h8300.h (MASK_RTL_DUMP): Remove.
2646 (TARGET_RTL_DUMP): Likewise.
2647 (TARGET_SWITHCES): Remove -mrtl-dump.
2649 2003-06-10 Richard Henderson <rth@redhat.com>
2651 * optabs.c (gen_cond_trap): Fix prepare_operand typo.
2653 2003-06-10 Richard Henderson <rth@redhat.com>
2655 * config/ia64/ia64.md (call_gp): Fix memory mode.
2657 2003-06-10 James E Wilson <wilson@tuliptree.org>
2660 * reload1.c (choose_reload_regs): For equiv reg, add loop over all
2661 hard regs for reload_reg_used_at_all and reg_class_contents checks.
2663 2003-06-10 Kazu Hirata <kazu@cs.umass.edu>
2665 * config/h8300/h8300.c (print_operand): Remove support for
2666 operand character 'b'.
2667 Add the AND case to operand character 'c'.
2668 * config/h8300/h8300.md (two anonymous patterns): Replace
2669 operand character 'b' with 'c'.
2671 2003-06-10 Kazu Hirata <kazu@cs.umass.edu>
2673 * config/h8300/h8300.c (print_operand): Remove support for
2674 operand character 'u'.
2676 2003-06-10 Nathanael Nerode <neroden@gcc.gnu.org>
2678 * configure.in: Fix typo.
2679 * configure: Regenerate.
2681 2003-06-10 Loren James Rittle <ljrittle@acm.org>
2683 * config/alpha/alpha.c (unicosmk_file_end): Add conditional
2686 2003-06-10 J"orn Rennecke <joern.rennecke@superh.com>
2688 * sh-protos.h (function_symbol): Declare.
2689 * sh.c (expand_block_move, expand_ashiftrt): Use it.
2690 (sh_expand_prologue, sh_expand_epilogue): Likewise.
2691 (sh_initialize_trampoline): Likewise.
2692 (function_symbol): New function.
2693 * sh.md (udivsi3, divsi3, mulsi3, ic_invalidate_line): Use it.
2694 (initialize_trampoline, call, call_pop, call_value, sibcall): Likewise.
2695 (call_value_pop, shcompact_return_tramp): Likewise.
2697 * sh.h (OVERRIDE_OPTIONS): Don't suppress --profile-arc-flag.
2699 * sh.md (GOTaddr2picreg): Use gen_lowpart to get lowpart of
2702 2003-06-10 DJ Delorie <dj@redhat.com>
2704 * doc/md.texi (Machine Constraints): Document stormy's Z
2707 2003-06-10 Geoffrey Keating <geoffk@apple.com>
2709 * except.c (call_site_base): Mark with GTY.
2711 2003-06-10 Richard Earnshaw <rearnsha@arm.com>
2713 * arm-proto.h: Convert to ISO C90 prototypes.
2716 2003-06-10 J"orn Rennecke <joern.rennecke@superh.com>
2718 * sh.c (sh_output_mi_thunk): Call insn_locators_initialize.
2720 2003-06-10 Steve Ellcey <sje@cup.hp.com>
2722 * calls.c (expand_call): Convert structure_value_addr to Pmode if
2725 2003-06-10 Andrew Haley <aph@redhat.com>
2727 * langhooks-def.h (LANG_HOOKS_DECL_OK_FOR_SIBCALL): New.
2728 (LANG_HOOKS_DECLS): Add LANG_HOOKS_DECL_OK_FOR_SIBCALL.
2729 (lhd_decl_ok_for_sibcall): New.
2730 * langhooks.c (lhd_decl_ok_for_sibcall): New.
2731 * langhooks.h (lang_hooks_for_decls.ok_for_sibcall): New field.
2732 * calls.c (expand_call): Check lang_hook before generating a
2735 2003-06-10 DJ Delorie <dj@redhat.com>
2737 * config/stormy16/stormy16.c (xstormy16_extra_constraint_p): Add Z,
2738 which matches (const_int 0) for addhi3.
2739 * config/stormy16/stormy16.md: Document known constraints.
2740 (addhi3): Handle adding zero.
2742 2003-06-10 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
2744 * config/m32r/m32r.h (HARD_REGNO_RENAME_OK): New.
2745 * config/m32r/m32r.c (m32r_hard_regno_rename_ok): New.
2746 * config/m32r/m32r-protos.h: Prototype it.
2748 2003-06-10 Janis Johnson <janis187@us.ibm.com>
2750 * config/rs6000/eabi.h (TARGET_OS_CPP_BUILTINS): Define builtins
2751 common to rs6000 sysv targets.
2752 * config/rs6000/eabisim.h (TARGET_OS_CPP_BUILTINS): Ditto.
2753 * config/rs6000/rtems.h (TARGET_OS_CPP_BUILTINS): Ditto.
2755 2003-06-10 Nick Clifton <nickc@redhat.com>
2757 * config.gcc: Add arm-wince-pe target.
2758 * config/arm/pe.h (MULTILIB_DEFAULTS): Define.
2759 Add comment about default apcs26 support.
2760 * config/arm/t-pe (MULTILIB_OPTIONS): Add an -mapcs-32
2762 (MULTILIB_DIRNAMES): Add 'apcs32'.
2763 * config/arm/t-wince-pe: New makefile fragment.
2764 * config/arm/wince-pe.h: New file. Overrides a few definitions
2767 2003-06-10 Roger Sayle <roger@eyesopen.com>
2769 * builtins.c (fold_builtin): Optimize cos(-x) as cos(x).
2770 * fold-const.c (fold <NEGATE_EXPR>): Convert -f(x) into f(-x)
2771 when x is easily negated and f is sin, tan or atan.
2772 (fold <MULT_EXPR>): Optimize tan(x)*cos(x) and cos(x)*tan(x) as
2773 sin(x) with flag_unsafe_math_optimizations.
2774 (fold <RDIV_EXPR>): With flag_unsafe_math_optimizations fold
2775 sin(x)/cos(x) as tan(x) and cos(x)/sin(x) as 1.0/tan(x).
2777 2003-06-10 Roger Sayle <roger@eyesopen.com>
2779 * fold-const.c (fold <EQ_EXPR>): Don't fold x == x only if x
2780 is a floating point type *and* we currently honor NaNs.
2781 (fold <NE_EXPR>): Likewise.
2783 2003-06-10 Mark Mitchell <mark@codesourcery.com>
2786 * tree-inline.c (inlinable_function_p): Call the language-specific
2789 2003-06-09 David Taylor <dtaylor@emc.com>
2791 * config/rs6000/rs6000.c (rs6000_va_start, rs6000_va_arg): Skip over
2794 2003-06-09 Nathanael Nerode <neroden@gcc.gnu.org>
2796 * configure.in: Remove references to host_truncate_target.
2797 * configure: Regenerate.
2798 * config.gcc: Remove references to truncate_target,
2799 host_truncate_target.
2801 * Makefile.in, configure.in, config/m68hc11/t-m68hc11-gas:
2802 Replace "build_canonical" with build, "host_canonical" with host.
2803 * configure.in: Use GCC_TOPLEV_SUBDIRS.
2804 * aclocal.m4: Include ../config/acx.m4.
2805 * configure: Regenerate.
2807 2003-06-09 David Taylor <dtaylor@emc.com>
2809 * config/rs6000/rs6000.c (rs6000_build_va_list): Give the two
2810 bytes of padding in the __va_list_tag structure a name (reserved).
2812 2003-06-09 Jason Merrill <jason@redhat.com>
2814 * fold-const.c (operand_equal_p): Handle ADDR_EXPR and TRUTH_NOT_EXPR.
2816 2003-06-09 Osku Salerma <osku@iki.fi>
2818 * c-format.c (check_format_string, get_constant): New.
2819 (handle_format_attribute, handle_format_arg_attribute,
2820 decode_format_attr): Change to use above functions.
2822 2003-06-09 Richard Henderson <rth@redhat.com>
2824 * stmt.c (expand_asm_operands): Re-word warning.
2826 2003-06-08 Andrew Pinski <pinskia@physics.uc.edu>
2829 * config/i386/djgpp.h (ASM_FILE_START): emit `.intel_syntax'
2832 2003-06-09 James E Wilson <wilson@tuliptree.org>
2834 * config/frv/cmovc.c, config/frv/cmovh.c, config/frv/cmovw.c,
2835 config/frv/frvbegin.c, config/frv/frvend.c, config/frv/lib1funcs.asm:
2836 Add libgcc exception.
2838 2003-06-09 David Edelsohn <edelsohn@gnu.org>
2839 Ayal Zaks <gcchaifa@us.ibm.com>
2841 * config/rs6000/rs6000.md (define_attr "type"): Add insert_word.
2842 (insvsi*): Add insert_word attribute.
2843 * config/rs6000/rs6000.c (rs6000_variable_issue): Add TYPE_INSERT_WORD.
2844 * config/rs6000/{40x.md,603.md,6xx.md,7450.md,7xx.md,mpc.md,
2845 power4.md,rios1.md,rios2.md,rs64.md}: Add insert_word.
2847 2003-06-09 Kazu Hirata <kazu@cs.umass.edu>
2849 * fold-const.c (fold): Fix a comment typo.
2851 2003-06-09 Nathan Sidwell <nathan@codesourcery.com>
2853 * tree-inline.c (expand_call_inline): DECL_SOURCE_LINE_FIRST is
2856 2003-06-09 J"orn Rennecke <joern.rennecke@superh.com>
2858 * sh.c (gen_block_redirect): Use locators.
2860 2003-06-09 Richard Earnshaw <rearnsha@arm.com>
2862 * arm.h (THUMB_PRINT_OPERAND_ADDRESS): Use %wd in format and remove
2865 2003-06-09 Richard Sandiford <rsandifo@redhat.com>
2867 * configure.in: Assume gas 2.14 and above can handle MIPS relocation
2869 * configure: Regenerated.
2871 2003-06-09 Richard Sandiford <rsandifo@redhat.com>
2872 Alexandre Oliva <aoliva@redhat.com>
2874 * config/mips/mips.h (GLOBAL_POINTER_REGNUM): New macro.
2875 (PIC_OFFSET_TABLE_REGNUM): Look at pic_offset_table_rtx after reload.
2876 (STARTING_FRAME_OFFSET): Don't allocate a cprestore slot for
2878 (MUST_SAVE_REGISTERS): Delete.
2879 * config/mips/mips.c (mips_frame_info): Remove extra_size field.
2880 (machine_function): Add global_pointer field.
2881 (mips_classify_constant): Check for (const $gp) using pointer equality
2882 with pic_offset_table_rtx.
2883 (mips_classify_constant): Handle RELOC_LOADGP_HI and RELOC_LOADGP_LO.
2884 (mips_restore_gp): Use current_function_outgoing_args_size.
2885 (print_operand): Use PIC_OFFSET_TABLE_REGNUM instead of
2886 GP_REG_FIRST + 28. Handle relocation strings that have
2888 (mips_reloc_string): Handle RELOC_LOADGP_HI and RELOC_LOADGP_LO.
2889 (mips_global_pointer): New function.
2890 (mips_save_reg_p): New function, mostly split out from...
2891 (compute_frame_size): ...here. Remove handling of extra_size.
2892 Reclaim args_size if no variables depend on it. Don't treat gp
2893 as a special case: handle it in the main GPR loop.
2894 (mips_initial_elimination_offset): Fix comment.
2895 (save_restore_insns): Save every register in the GPR mask,
2896 removing distinction between mask and real_mask.
2897 (mips_output_function_prologue): Update .frame psuedo-op after
2898 the removal of extra_size. Move the SVR4 PIC stack allocation
2899 and cprestore instructions to mips_expand_prologue.
2900 (mips_gp_insn): New function.
2901 (mips_expand_prologue): Set REGNO (pic_offset_table_rtx) to
2902 the chosen global pointer. Handle SVR4 PIC stack allocation
2903 in the same way as other ABIs. Adjust varargs code accordingly.
2904 Emit a cprestore insn after allocating the stack. Use mips_gp_insn
2905 to emit the loadgp sequence. Follow it with a loadgp_blockage
2906 if not using explicit relocs.
2907 (mips_output_function_epilogue): Reinstate the default gp register.
2908 (mips16_gp_pseudo_reg): Use pic_offset_table_rtx.
2909 (mips16_optimize_gp): Likewise.
2910 * config/mips/mips.md (UNSPEC_LOADGP): Remove.
2911 (UNSPEC_SETJMP, UNSPEC_LONGJMP): Remove.
2912 (UNSPEC_CPRESTORE, RELOC_LOADGP_HI, RELOC_LOADGP_LO): New.
2914 (loadgp_blockage, cprestore): New instructions.
2915 (builtin_setjmp_setup): Implement using emit_move_insn. Use
2916 pic_offset_table_rtx.
2917 (builtin_setjmp_setup_32, builtin_setjmp_setup_64): Remove.
2918 (builtin_longjmp): Use gen_raw_REG to force use of $28.
2920 2003-06-09 Richard Sandiford <rsandifo@redhat.com>
2922 * config/mips/mips-protos.h (mips_output_division): Declare.
2923 * config/mips/mips.h (MASK_CHECK_RANGE_DIV): Remove.
2924 (MASK_BRANCHLIKELY): Use MASK_CHECK_RANGE_DIV's old number.
2925 (TARGET_NO_CHECK_ZERO_DIV, TARGET_CHECK_RANGE_DIV): Remove.
2926 (TARGET_CHECK_ZERO_DIV): New macro.
2927 (TARGET_SWITCHES): Remove -mcheck-range-div & -mno-check-range-div.
2928 * config/mips/mips.c (mips_output_division): New function.
2929 * config/mips/mips.md (length): Take TARGET_CHECK_ZERO_DIV into
2930 account when calculating the default length of a division.
2931 (divmodsi4, divmoddi4, udivmodsi4, udivmoddi4): Turn into define_insns.
2932 Enable regardless of optimization level. Use mips_output_division.
2933 (divmodsi4_internal, divmoddi4_internal, udivmodsi4_internal,
2934 udivmoddi4_internal, div_trap, div_trap_normal, div_trap_mips16,
2935 divsi3, divsi3_internal, divdi3, divdi3_internal, modsi3,
2936 modsi3_internal, moddi3, moddi3_internal, udivsi3, udivsi3_internal,
2937 udivdi3, udivdi3_internal, umodsi3, umodsi3_internal, umoddi3,
2938 umoddi3_internal): Remove.
2940 2003-06-09 Richard Sandiford <rsandifo@redhat.com>
2942 * config/mips/mips.c (mips_reg_names): Change hilo entry to "".
2943 (mips_sw_reg_names): Likewise.
2944 (mips_regno_to_class): Change hilo entry to NO_REGS.
2945 (hilo_operand): Use MD_REG_P.
2946 (extend_operator): New predicate.
2947 (override_options): Remove 'a' constraint.
2948 (mips_secondary_reload_class): Remove hilo handling. Also remove
2949 handling of (plus sp reg) reloads for mips16.
2950 (mips_register_move_cost): Remove hilo handling.
2951 * config/mips/mips.h (FIXED_REGISTERS): Make hilo entry fixed.
2952 (MD_REG_LAST): Remove hilo from range.
2953 (HILO_REGNUM): Delete.
2954 (reg_class): Remove HILO_REG and HILO_AND_GR_REGS.
2955 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
2956 (PREDICATE_CODES): Add entry for extend_operator.
2957 (DEBUG_REGISTER_NAMES): Change hilo entry to "".
2958 * config/mips/mips.md: Remove hilo clobbers wherever they occur.
2959 Remove constraints from multiplication define_expands. Remove
2960 clobbers from "decorative" define_expand patterns.
2961 (UNSPEC_HILO_DELAY): Delete.
2962 (*mul_acc_si, *mul_sub_si): Add early-clobber to operand 6.
2963 (mulsidi3, umulsidi3): Change pattern to match the TARGET_64BIT case.
2964 Adjust C code to just emit insns for !TARGET_64BIT.
2965 (mulsidi3_internal): Rename to mulsidi3_32bit.
2966 (mulsidi3_64bit): Use a "d" constraint for the destination.
2967 Use extend_operator so that the pattern can handle umulsidi3 as well.
2968 Split the instruction after reload.
2969 (*mulsidi3_64bit_parts): New pattern, generated by mulsidi3_64bit.
2970 (umulsidi3_internal): Rename to umulsidi3_32bit.
2971 (umulsidi3_64bit): Remove.
2972 (*smsac_di, *umsac_di): Line-wrap fixes.
2973 (udivsi3_internal): Don't allow operand 2 to be constant.
2974 (udivdi3_internal, umodsi3_internal, umoddi3_internal): Likewise.
2975 (movdi_internal2, movsi_internal): Remove hilo alternatives.
2976 (reload_in[sd]i, reload_out[sd]i, hilo_delay): Remove.
2978 2003-06-09 Richard Sandiford <rsandifo@redhat.com>
2981 * config/mips/mips.h (TARGET_FILE_SWITCHING, NO_DBX_FUNCTION_END,
2982 PUT_SDB_SCL, PUT_SDB_INT_VAL, PUT_SDB_VAL, PUT_SDB_ENDEF,
2983 PUT_SDB_TYPE, PUT_SDB_SIZE, PUT_SDB_DIM, PUT_SDB_START_DIM,
2984 PUT_SDB_NEXT_DIM, PUT_SDB_LAST_DIM, PUT_SDB_TAG, PUT_SDB_SRC_FILE,
2985 SDB_GENERATE_FAKE, TEXT_SECTION): Delete.
2986 (PUT_SDB_DEF, PUT_SDB_PLAIN_DEF, PUT_SDB_BLOCK_START,
2987 PUT_SDB_BLOCK_END, PUT_SDB_FUNCTION_END): Replace use of
2988 asm_out_text_file with asm_out_file.
2989 * config/mips/iris5gas.h (PUT_SDB_SIZE, PUT_SDB_TYPE): Likewise.
2990 * config/mips/elf.h (TEXT_SECTION): Undefine.
2991 * config/mips/elf64.h (TEXT_SECION): Undefine.
2992 * config/mips/openbsd.h (TEXT_SECION): Undefine.
2993 * config/mips/mips.c (asm_out_text_file, asm_out_data_file): Delete.
2994 (override_options): Disable small-data optimizations unless using
2995 gas or explicit relocations.
2996 (mips_asm_file_start, mips_asm_file_end, mips_output_function_epilogue,
2997 iris6_asm_named_section, iris6_asm_file_start): Remove code for
2998 handling TARGET_FILE_SWITCHING.
2999 (copy_file_data): Move into TARGET_IRIX6 block.
3001 2003-06-08 Richard Henderson <rth@redhat.com>
3003 * expr.h (EXPAND_MEMORY): New.
3004 * expr.c (expand_expr): Check it.
3005 * stmt.c (expand_asm_operands): Provide it when the constraint
3006 requires a memory. Warn for memory input constraints without
3009 2003-06-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3011 * varasm.c: Don't include c-tree.h.
3013 2003-06-08 Andreas Jaeger <aj@suse.de>
3015 * predict.h: Convert to ISO C90 prototypes.
3016 * predict.c: Likewise.
3017 * tree-dump.h: Likewise.
3018 * tree-dump.c: Likewise.
3019 * diagnostic.h: Likewise.
3020 * diagnostic.c: Likewise.
3021 * combine.c: Likewise.
3023 * rtl.h: Convert prototypes of combine.c to ISO C90.
3025 Sun Jun 8 21:27:41 CEST 2003 Jan Hubicka <jh@suse.cz>
3027 * cfglayout.c (insn_scope): New static function
3028 (block_locators_*, line_locators*, file_locators*): New static varrays.
3029 (scope_to_insns_initialize): Use them.
3030 (insn_line, insn_file): New functions.
3031 (scope_to_insns_finalize): Use insn_scope.
3032 (prologue_locator, epilogue_locator): New global variables.
3033 * emit-rt.c (try_split, make_insn_raw, make_jump_insn_raw,
3034 make_call_insn_raw, emit_copy_of_insn_after): Use locators.
3035 (emit_insn_after_scope, emit_insn_before_scope
3036 emit_jump_insn_after_scope, emit_jump_insn_before_scope
3037 emit_call_insn_after_scope, emit_call_insn_before_scope): Rename to...
3038 (emit_insn_after_setloc, emit_insn_before_setloc
3039 emit_jump_insn_after_setloc, emit_jump_insn_before_setloc
3040 emit_call_insn_after_setloc, emit_call_insn_before_setloc): ... these;
3042 * final.c (notice_source_line): Use locators.
3043 (final_start_function): Set initial source file and line.
3044 (final_scan_insn): Use locators.
3045 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
3046 noce_try_addcc, noce_try_store_flag_mask, noce_try_cmove,
3047 noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
3048 noce_process_if_block, find_cond_trap): Likewise.
3049 * integrate.c (copy_insn_list): Likewise.
3050 * jump.c (duplicate_loop_exit_test): LIkewise.
3051 * print-rtl.c (print_rtx): Print locators.
3052 * recog.c (peephole2_optimize): Likewise.
3053 * rtl.h (INSN_SCOPE): Remove.
3054 (emit_insn_after_scope, emit_insn_before_scope
3055 emit_jump_insn_after_scope, emit_jump_insn_before_scope
3056 emit_call_insn_after_scope, emit_call_insn_before_scope): Rename to...
3057 (emit_insn_after_setloc, emit_insn_before_setloc
3058 emit_jump_insn_after_setloc, emit_jump_insn_before_setloc
3059 emit_call_insn_after_setloc, emit_call_insn_before_setloc): ... these;
3060 (insn_file, insn_line, prologue_locator, epilogue_locator): Declare.
3061 * unroll.c (copy_loop_body): Use locators.
3062 * function.c (set_insn_locators): New function.
3063 (thread_prologue_and_epilogue_insns): Set the locators accordingly.
3065 2003-06-08 Kazu Hirata <kazu@cs.umass.edu>
3067 * config/h8300/h8300.h (LONG_LONG_TYPE_SIZE): Set to 64.
3068 * config/h8300/t-h8300 (LIB1ASMFUNCS): Remove _floatdisf
3069 _fixsfdi _fixunssfdi.
3070 (LIB2FUNCS_EXTRA): Add entries for clzhi2, ctzhi2, parityhi2,
3072 (TARGET_LIBGCC2_CFLAGS): Remove -DDI=SI.
3073 * config/h8300/clzhi2.c: New.
3074 * config/h8300/ctzhi2.c: Likewise.
3075 * config/h8300/parityhi2.c: Likewise.
3076 * config/h8300/popcounthi2.c: Likewise.
3078 Sun Jun 8 15:52:17 CEST 2003 Jan Hubicka <jh@suse.cz>
3080 * i386.md (subsi_3_zext, sse2_nandv2di3): Fix predicates.
3081 * i386.c (k8_avoid_jump_misspredicts): Fix debug output.
3083 * cfg.c (verify_flow_info): Move IL independent checks from cfgrtl here.
3084 (dump_bb): New based on old dump_bb in cfgrtl.c
3085 (debug_bb, debug_bb_n): Move the functions from cfgrtl.c here.
3086 * cfghooks.h (cfgh_verify_flow_info): Return status.
3087 * cfglayout.c (cfg_layout_finalize): Verify CFG correctness.
3088 * cfgrtl.c (debug_bb, debug_bb_n): Move to cfg.c
3089 (dump_bb): Remove generic parts.
3090 (rtl_verify_flow_info_1): Break out from rtl_verify_flow_info.
3091 (rtl_verify_flow_info): Only check things dependeing on linearized RTL.
3093 2003-06-08 Neil Booth <neil@daikokuya.co.uk>
3095 * Makefile.in: Rename options.c and options.h to c-options.c and
3097 (OBJS): Remove options.o.
3098 * c-opts.c: Don'tInclude c-options.h instead of options.h.
3099 * opts.c: Don't include options.h.
3100 (find_opt): Can't use enum opt_code or N_OPTS.
3101 * opts.h (struct cl_option, cl_options, cl_options_count): Move from...
3102 * opts.sh: ... here.
3104 2003-06-07 Eric Botcazou <ebotcazou@libertysurf.fr>
3105 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3108 * ggc-common.c (HAVE_MMAP_FILE): Include sys/types.h
3109 if HAVE_MINCORE is defined.
3110 (MAP_FAILED): Define if not defined.
3111 (gt_pch_save): Test against MAP_FAILED.
3112 (gt_pch_restore): If HAVE_MINCORE, use MAP_FIXED to force
3113 the mapping address to the preferred base after checking it
3114 is possible to do so. Test against MAP_FAILED.
3115 * configure.in: Test for the presence of mincore in libc.
3116 * config.in: Regenerate.
3117 * configure: Regenerate.
3119 2003-06-07 Richard Henderson <rth@redhat.com>
3121 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Fix
3122 conditional compilation guard.
3124 2003-06-08 Kazu Hirata <kazu@cs.umass.edu>
3126 * optabs.c (expand_abs): Set result_unsignedp to 1 if
3129 2003-06-07 Richard Henderson <rth@redhat.com>
3131 * c-cppbuiltin.c (c_cpp_builtins): Define __EXCEPTIONS for C also.
3133 2003-06-07 Richard Henderson <rth@redhat.com>
3135 * basic-block.h (EDGE_SIBCALL): New.
3136 (EDGE_ALL_FLAGS): Update.
3137 * cfg.c (dump_edge_info): Add sibcall name.
3138 * cfgbuild.c (make_edges): Use EDGE_SIBCALL.
3139 * cfgrtl.c (purge_dead_edges): Handle sibcalls.
3141 2003-06-07 Andreas Jaeger <aj@suse.de>
3143 * mklibgcc.in (lib2funcs): Remove _exit.
3144 * libgcc2.c: Remove L_exit.
3145 * gbl-ctors.h: Remove declarations dependend on NEED_ATEXIT.
3147 * system.h: Poison NEED_ATEXIT, ON_EXIT, EXIT_BODY.
3149 * doc/tm.texi (Misc): Remove NEED_ATEXIT, ON_EXIT, EXIT_BODY.
3151 * ggc.h: Convert to ISO C90 prototypes.
3152 * ggc-none.c: Likewise.
3153 * ggc-common.c: Likewise.
3154 * ggc-page.c: Likewise.
3155 * ggc-simple.c: Likewise.
3157 * crtstuff.c: Remove undefined usage of INIT_SECTION_PREAMBLE.
3159 * system.h: Poison INIT_SECTION_PREAMBLE.
3161 2003-06-07 Zack Weinberg <zack@codesourcery.com>
3163 * config.gcc (with_cpu handling): Translate sparc64 in
3164 $machine to --with-cpu=v9.
3165 * config/alpha/alpha.c
3166 (TARGET_ASM_GLOBALIZE_LABEL [TARGET_ABI_UNICOSMK]): Correct definition.
3167 (alpha_setup_incoming_varargs): #ifdef out when TARGET_ABI_UNICOSMK.
3169 * target.h: New hook asm_out.file_end.
3170 * target.h: Update to match. New hook macro TARGET_ASM_FILE_END.
3171 * toplev.c (compile_file): Use targetm.asm_out.file_end.
3172 * system.h: Poison ASM_FILE_END.
3173 * varasm.c (file_end_indicate_exec_stack): New.
3174 * output.h: Prototype it.
3175 * doc/tm.texi: Document TARGET_ASM_FILE_END and
3176 file_end_indicate_exec_stack. Delete references to attasm.h.
3178 * config/darwin.h (TARGET_ASM_FILE_END): Reset to darwin_file_end.
3179 (ASM_FILE_END): Delete; move code...
3180 * config/darwin.c (darwin_file_end): Here; new function.
3181 * config/darwin-protos.h: Prototype it.
3182 * config/alpha/alpha.c (unicosmk_asm_file_end): Make static,
3183 rename unicosmk_file_end.
3184 * config/arm/aof.h (ASM_FILE_END): Delete; move code...
3185 * config/arm/arm.c (aof_file_end): ... here; new static function.
3186 Set TARGET_ASM_FILE_END to aof_file_end if AOF_ASSEMBLER.
3187 Make aof_dump_imports and aof_dump_pic_table static.
3188 * config/avr/avr.c (asm_file_end): Rename avr_file_end, make static.
3189 Set TARGET_ASM_FILE_END to avr_file_end.
3190 * config/c4x/c4x.c (c4x_file_end): Make static. Take no arguments.
3191 Set TARGET_ASM_FILE_END to c4x_file_end.
3192 * config/h8300/h8300.c (asm_file_end): Rename h8300_file_end,
3193 make static. Take no arguments. Set TARGET_ASM_FILE_END to
3195 * config/i370/i370.h (ASM_FILE_END): Delete; move code...
3196 * config/i370/i370.c (i370_file_end): ... here; new static function.
3197 Set TARGET_ASM_FILE_END to i370_file_end.
3198 * config/i386/i386.c (ix86_asm_file_end): Rename ix86_file_end.
3199 Take no arguments. Call file_end_indicate_exec_stack if
3200 NEED_INDICATE_EXEC_STACK; don't use SUBTARGET_FILE_END.
3201 * config/i386/i386.h: Set TARGET_ASM_FILE_END, not ASM_FILE_END.
3202 Define NEED_INDICATE_EXEC_STACK to 0.
3203 * config/i386/linux.h, config/i386/linux64.h: Redefine
3204 NEED_INDICATE_EXEC_STACK to 1 instead of setting SUBTARGET_FILE_END.
3205 * config/i386/winnt.c (i386_pe_asm_file_end): Rename to
3206 i386_pe_file_end. Take no arguments. Use ix86_file_end.
3207 * config/ia64/ia64.c (ia64_hpux_asm_file_end): Rename to
3208 ia64_hpux_file_end, make static. Take no arguments.
3209 * config/ip2k/ip2k.c (asm_file_start, asm_file_end,
3210 commands_in_prologues, commands_in_epilogues): Delete.
3211 (function_epilogue): Update to match.
3212 * config/mips/mips.c (mips_asm_file_end): Rename mips_file_end,
3213 make static. Take no arguments.
3214 (iris6_asm_file_end): Rename iris6_file_end, make static, use
3215 mips_file_end, take no arguments.
3216 Set TARGET_ASM_FILE_END to iris6_file_end or mips_file_end as
3218 * config/mmix/mmix.c (mmix_asm_file_end): Rename mmix_file_end,
3219 make static, take no arguments. Set TARGET_ASM_FILE_END to
3221 * config/pa/pa.c (output_deferred_plabels): Make static, take
3222 no arguments. Set TARGET_ASM_FILE_END to output_deferred_plabels.
3223 * config/rs6000/xcoff.h (TARGET_ASM_FILE_END): Set it.
3224 (ASM_FILE_END): Delete; move code...
3225 * config/rs6000/rs6000.c (rs6000_xcoff_file_end): ... here;
3226 new static function.
3228 * config/avr/avr.h, config/cris/cris.h, config/h8300/h8300.h
3229 * config/mmix/mmix.h, config/mips/iris6.h, config/mips/mips.h:
3230 Don't set ASM_FILE_END.
3231 * config/alpha/linux-elf.h, config/m68k/linux.h, config/rs6000/linux.h
3232 * config/rs6000/linux64.h, config/s390/linux.h, config/sparc/linux.h
3233 * config/sparc/linux64.h: Set TARGET_ASM_FILE_END to
3234 file_end_indicate_exec_stack; don't set ASM_FILE_END.
3235 * config/alpha/unicosmk.h, config/i386/cygming.h
3236 * config/ia64/hpux.h: Set TARGET_ASM_FILE_END, not ASM_FILE_END.
3237 * config/arm/arm-protos.h, config/alpha/alpha-protos.h
3238 * config/avr/avr-protos.h, config/c4x/c4x-protos.h
3239 * config/h8300/h8300-protos.h, config/ia64/ia64-protos.h
3240 * config/ip2k/ip2k-protos.h, config/mips/mips-protos.h
3241 * config/mmix/mmix-protos.h, config/pa/pa-protos.h: Update.
3243 Sat Jun 7 18:32:13 CEST 2003 Jan Hubicka <jh@suse.cz>
3245 * i386.h (OPTION_DEFAULT_SPECS): Avoid -mcpu default when -march is
3248 Sat Jun 7 15:20:01 CEST 2003 Jan Hubicka <jh@suse.cz>
3250 * Makefile.in (stageprofile_build): Kill redundant target.
3251 * i386.c (mdep_reorg): Don't pad jumps for Athlon.
3253 2003-06-07 Andreas Jaeger <aj@suse.de>
3255 * doc/tm.texi (Costs): Remove DONT_REDUCE_ADDR documentation.
3257 * config/avr/avr.h: Remove comment regarding DONT_REDUCE_ADDR.
3258 * config/dsp16xx/dsp16xx.h: Likewise.
3259 * config/i386/i386.h: Likewise.
3260 * config/ip2k/ip2k.h: Likewise.
3262 2003-06-07 Neil Booth <neil@daikokuya.co.uk>
3264 * Makefile.in (OJBS, c-opts.o): Update.
3265 (c-options.c, c-options.h): Rename options.h and options.c.
3266 (options.h): Rename options_.h.
3268 * c-common.h (c_common_handle_option): Replace c_common_decode_option.
3269 (c_common_init_options): Update prototype.
3270 * c-lang.c (c_init_options): Update prototype.
3271 (LANG_HOOKS_HANDLE_OPTION): Override.
3272 (LANG_HOOKS_DECODE_OPTION): Drop.
3273 * c-opts.c: Include opts.h and options.h instead of c-options.h
3275 (lang_flags): Move to file scope.
3276 (find_opt, c_common_decode_option): Remove.
3277 (CL_C, CL_OBJC, CL_CXX, CL_OBJCXX, CL_JOINED, CL_SEPARATE,
3278 CL_REJECT_NEGATIVE): Move to opts.h.
3279 (missing_arg): Update prototype.
3280 (c_common_init_options): Update for new prototype.
3281 (c_common_handle_options): Filenames are passed as N_OPTS.
3282 * hooks.c (hook_int_void_0): New.
3283 * hooks.h (hook_int_void_0): New.
3284 * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): New default.
3285 (LANG_HOOKS_HANDLE_OPTION): Default to NULL for now.
3286 (LANG_HOOKS_INITIALIZER): Update.
3287 * langhooks.h (init_options): Update.
3288 (handle_option): New.
3289 * opts.c, opts.h: New files.
3290 * opts.sh: Update c file to include opts.h and options.h.
3291 * toplev.c: Include opts.h; change options.h to options_.h.
3292 (parse_options_and_default_flags): Get lang_mask, use
3293 handle_option for language-specific handling.
3294 * objc/objc-lang.c (LANG_HOOKS_DECODE_OPTON): Drop.
3295 (LANG_HOOKS_HANDLE_OPTION): Override.
3296 (objc_init_options): Update.
3298 2003-06-07 Magnus Kreth <magnus.kreth@gmx.de>
3299 Thibaud Gaillard <thibaud.gaillard@nto.atmel.com>
3302 * Makefile.in (install-common): Remove GCOV_INSTALL_NAME instead of
3305 2003-06-07 Kelley Cook <kelleycook@wideopenwest.com>
3307 * configure.in (HAVE_LD_RO_RW_SECTION_MIXING): Remove quotes in
3309 * configure: Regenerate.
3311 2003-06-07 Alan Modra <amodra@bigpond.net.au>
3313 * config/rs6000/linux64.h (CRT_CALL_STATIC_FUNCTION): Define.
3315 2003-06-06 James E Wilson <wilson@tuliptree.org>
3318 * reload1.c (merge_assigned_reloads): Abort only if two reloads have
3319 different in fields.
3321 2003-06-06 Nathanael Nerode <neroden@gcc.gnu.org>
3323 * configure.in: Make $(target_subdir) correspond with top level usage.
3324 * Makefile.in: Likewise.
3325 * configure: Regenerate.
3327 2003-06-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3329 * pa.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_ALIGNED_COMMON,
3330 ASM_OUTPUT_ALIGNED_LOCAL): Cast `SIZE' and `ALIGNED' parameters to
3331 unsigned HOST_WIDE_INT.
3332 * pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMOM, ASM_OUTPUT_ALIGNED_LOCAL):
3334 * pa64-hpux.h (ASM_OUTPUT_ALIGNED_COMMON, ASM_OUTPUT_ALIGNED_LOCAL):
3337 2003-06-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3339 * doc/install.texi (Prerequisites): New section documenting
3340 tools and packages necessary prior to building and/or
3342 * doc/install.texi2html: Also generate prerequisites.html.
3344 2003-06-06 Richard Earnshaw <rearnsha@arm.com>
3347 * ifcvt.c (noce_process_if_block): Fail if the destination has
3350 2003-06-06 Jason Merrill <jason@redhat.com>
3352 * stmt.c (resolve_asm_operand_names): Rename from
3353 resolve_operand_names. No longer static. Avoid needless copying.
3354 Don't build array of constraints.
3355 (expand_asm_operands): Build it here.
3356 * tree.h: Declare resolve_asm_operand_names.
3358 * stmt.c (expand_decl): Put artificial vars into registers even
3359 when not optimizing, and don't mark the regs as user vars.
3361 2003-06-06 J"orn Rennecke <joern.rennecke@superh.com>
3363 * sh.h (FUNCTION_ARG_1): Consistently use NEW_MODE for the mode
3364 of the generated register.
3366 2003-06-06 Daniel Jacobowitz <drow@mvista.com>
3368 * config.gcc: Add a missing sparc64 case.
3370 2003-06-06 Jakub Jelinek <jakub@redhat.com>
3372 * mklibgcc.in: Propagate .note.GNU-stack section if needed into
3373 the .hidden assembly stubs.
3375 2003-06-06 H.J. Lu <hongjiu.lu@intel.com>
3377 * config.gcc (extra_headers): Add emmintrin.h for i[34567]86-*-*
3380 * config/i386/mmintrin.h: Update version and add alternate
3382 * config/i386/xmmintrin.h: Likewise.
3384 * config/i386/xmmintrin.h: Include <emmintrin.h>. Move SSE2
3386 * config/i386/emmintrin.h: Here. New file.
3388 2003-06-06 Roger Sayle <roger@eyesopen.com>
3390 * fold-const.c (fold <ABS_EXPR>): Re-fold the result of folding
3391 fabs(-x) into fabs(x). Use tree_expr_nonnegative_p to determine
3392 when the ABS_EXPR (fabs or abs) is not required.
3393 (tree_expr_nonnegative_p): Move the logic that sqrt and exp are
3394 always nonnegative from fold to here. Additionally, cabs and fabs
3395 are always non-negative, and pow and atan are non-negative if
3396 their first argument is non-negative.
3398 * builtins.c (fold_builtin_cabs): New function to fold cabs{,f,l}.
3399 Evaluate cabs of a constant at compile-time. Convert cabs of a
3400 non-complex argument into fabs. Convert cabs(z) into
3401 sqrt(z.r*z.r + z.i*z.i) at the tree-level with -ffast-math or
3402 -funsafe-math-optimizations or -ffast-math.
3403 (fold_builtin): Convert BUILT_IN_FABS{,F,L} into an ABS_EXPR.
3404 Fold BUILT_IN_CABS{,F,L} using fold_builtin_cabs.
3406 Thu Jun 5 20:51:09 CEST 2003 Jan Hubicka <jh@suse.cz>
3408 * sourcebuild.texi (Front End Directory): Document new hooks.
3410 Fri Jun 6 11:02:35 CEST 2003 Jan Hubicka <jh@suse.cz>
3412 * function.c (FLOOR_ROUND, CEIL_ROUND): Fix.
3413 * i386.md (gen_pro_epilogue_adjust_stack): Deal with gigantic
3415 (pro_epilogue_adjust_stack_rex64_2): New pattern
3417 Fri Jun 6 11:03:14 CEST 2003 Jan Hubicka <jh@suse.cz>
3419 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3421 * cfghooks.h, cfghooks.c: New files.
3422 * Makefile.in (BASIC_BLOCK_H): Depends on cfghooks.h.
3423 (OBJS): Add cfghooks.o.
3424 (cfghooks.o): New rule.
3425 * basic-block.h (split_edge): Rename to rtl_split_edge.
3426 (verify_flow_info): Rename to rtl_verify_flow_info.
3427 (cfghooks.h): Included here.
3428 * cfgrtl.c (split_edge): Renamed rtl_split_edge.
3429 (verify_flow_info): Renamed rtl_verify_flow_info.
3430 * toplev.c (rest_of_compilation): Call rtl_register_cfg_hooks.
3432 * basic-block.h (split_block, split_edge, flow_delete_block,
3433 redirect_edge_and_branch, redirect_edge_and_branch_force): Delete.
3434 (flow_delete_block_noexpunge): Return void.
3435 * cfg.c (verify_flow_info): New function.
3436 * cfgcleanup.c (try_simplify_condjump, outgoing_edges_match,
3437 try_crossjump_to_edge, try_optimize_cfg, delete_unreachable_blocks):
3439 * cfglayout.c (function_footer): Rename to...
3440 (cfg_layout_function_footer): ... this variable
3441 (unlink_insn_chain): Make global.
3442 (fixup_reorder_chain, record_effective_endpoints): Update.
3443 (cleanup_unconditional_jumps): Use delete_block.
3444 (cfg_layout_redirect_edge, cfg_layout_split_block): Move to cfgrtl.c
3445 (cfg_layout_duplicate_bb): Use redirect_edge_and_branch_force.
3446 (cfg_layout_initialize, cfg_layout_finalize): Update hooks.
3447 * cfglayout.h (cfg_layout_redirect_edge, cfg_layout_split_block): Delete.
3448 (cfg_layout_function_footer): Declare.
3449 * cfgloopmanip (split_loop_bb): Do not update RBI.
3450 (remove_bbs): Use delete_block.
3451 (loop_reidrect_edge, loop_delete_branch_edge): Use
3452 redirect_edge_and_branch.
3453 (create_preheader): Use split_block and redirect_edge_and_branch_force.
3454 (split_edge_with): Likewise.
3455 * cfgrtl.c: Include cfglayout.h
3456 (split_edge): Rename to ...
3457 (rtl_split_edge) ... this one; make local.
3458 (redirect_edge_and_branch): Rename to ...
3459 (rtl_redirect_edge_and_branch) ... this one; make local.
3460 (redirect_edge_and_branch_force): Rename to ...
3461 (rtl_redirect_edge_and_branch_force) ... this one; make local.
3462 (cfg_layout_delete_block, cfg_layout_delete_edge_and_branch_force): New.
3463 (cfg_layout_redirect_edge_and_branch, cfg_layout_split_block): Move here from
3464 cfglayout.c; update to directly call RTL counterparts.
3465 (rtl_cfg_hooks, cfg_layout_rtl_cfg_hooks): New functions.
3466 * ifcvt.c (find_cond_trap): Use delete_block.
3467 (find_if_case_1): Use delete_block.
3468 (find_if_case_2): Use delete_block.
3469 * rtl.h (unlink_insn_chain): Declare.
3470 * toplev.c (rtl_reigster_cfg_hooks): New.
3472 2003-06-05 Richard Henderson <rth@redhat.com>
3474 * recog.c (peephole2_optimize): Revert last change.
3476 2003-06-05 Richard Henderson <rth@redhat.com>
3478 * recog.c (peephole2_optimize): Don't split block unless
3481 2003-06-06 Kazu Hirata <kazu@cs.umass.edu>
3483 * config/h8300/h8300.c (get_shift_alg): Correct the syntax of rotxl.
3484 * config/h8300/h8300.md (*addsi3_lshiftrt_16_zexthi): Likewise.
3486 2003-06-05 Kelley Cook <kelleycook@wideopenwest.com>
3488 PR optimization/4490
3489 * config/i386/i386.md: Don't use XFMode if TARGET_128BIT_LONG_DOUBLE.
3490 * doc/invoke.texi (m96bit-long-double, m128bit-long-double): Reword
3491 documentation to accurately reflect what these options do.
3493 2003-06-06 Kaz Kojima <kkojima@gcc.gnu.org>
3495 * config/sh/linux.h (STARTFILE_SPEC): Handle -pie. Simplify.
3496 (ENDFILE_SPEC): Redefine to handle -pie.
3498 2003-06-05 Phil Edwards <phil@jaj.com>
3500 * Makefile.in (qmtest-g++): Use target_alias, not target.
3502 2003-06-05 Per Bothner <pbothner@apple.com>
3504 * toplev.c (push_srcloc): Simplify behavior to save current location
3505 and set current location to parameters.
3506 (pop_srcloc): Simplify semantics.
3507 (lang_dependent_init): Remove now-useless initial push_srcloc.
3509 2003-05-06 Richard Henderson <rth@redhat.com>
3511 * dwarf2out.c (loc_descriptor_from_tree): Return 0 for
3512 language-specific tree codes.
3514 2003-06-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3517 * pa.c (pa_init_builtins): Also set implicit_built_in_decls for
3518 BUILT_IN_FPUTC_UNLOCKED to NULL_TREE.
3520 Thu Jun 5 18:32:46 CEST 2003 Jan Hubicka <jh@suse.cz>
3522 * install.tex: Document profiledbootstrap.
3524 * configure.in: Add support for lang.stageprofile and
3526 * Makefile.in (clean, distclean): Kill new stages
3527 (POSTSTAGE1_FLAGS_TO_PASS): Break from ...
3528 (STAGE2_FLAGS_TO_PASS): ... this one.
3529 (STAGEPROFILE_FLAGS_TO_PASS, STAGEFEEDBACK_FLAGS_TO_PASS): New.
3530 (stage[2-4]_build): Add POSTSTAGE1_FLAGS_TO_PASS.
3531 (stageprofile_build, stageprofile_copy, stagefeedback_build,
3532 stagefeedback_copy): New.
3533 (restageprofile, restagefeedback, stageprofile-start,
3534 stageprofile, stagefeedback-start): Likewise.
3536 2003-06-05 David Miller <davem@redhat.com>
3537 Richard Henderson <rth@redhat.com>
3539 * optabs.c (HAVE_conditional_trap): Provide default.
3540 (gen_conditional_trap): Likewise.
3541 (init_optabs): Merge init_traps.
3542 (gen_cond_trap): Use prepare_operand. Restructure and avoid ifdef.
3544 Thu Jun 5 14:59:44 CEST 2003 Jan Hubicka <jh@suse.cz>
3546 * combine.c (simplify_if_then_else): (IF_THEN_ELSE (NE REG 0) (0) (8))
3547 is REG for nonzero_bits (REG) == 8.
3549 Thu Jun 5 13:23:51 CEST 2003 Jan Hubicka <jh@suse.cz>
3551 * i386.md (align): Fix warning; clarify what to do when no p2align
3554 2003-06-05 Nick Clifton <nickc@redhat.com>
3556 * config.gcc (m32r-elf): Revert previous delta.
3557 * config/m32r/t-m32r (crtinit.o): Fix rule to work with
3558 multilibs. Remove m32rx specific version.
3559 (crtfini.o): Likewise.
3560 (EXTRA_MULTILIB_PARTS): Define.
3562 2003-06-05 Eric Botcazou <ebotcazou@libertysurf.fr>
3564 * doc/md.texi (Machine Constraints): Correct the meaning of
3565 constraints related to floating-point registers on SPARC.
3567 2003-06-05 Eric Botcazou <ebotcazou@libertysurf.fr>
3568 Paolo Bonzini <bonzini@gnu.org>
3571 * configure.in (HAVE_LD_RO_RW_SECTION_MIXING): Redirect
3572 assembler and linker output to /dev/null.
3573 Use a 'sed' construct instead of 'grep -A1'.
3574 * configure: Regenerate.
3576 2003-06-04 Richard Henderson <rth@redhat.com>
3578 * config/i386/i386.c (struct ix86_address): Add seg.
3579 (no_seg_address_operand): New.
3580 (ix86_decompose_address): Restructure PLUS loop. Accept one
3581 UNSPEC_TP if TARGET_TLS_DIRECT_SEG_REFS. Adjust ESP swap test
3582 to test for a regnum, not stack_pointer_rtx.
3583 (ix86_address_cost): Reduce cost if non-default segment.
3584 (legitimate_address_p): Remove UNSPEC_TP check.
3585 (get_thread_pointer): Add to_reg argument. Don't represent
3586 the thread pointer as a memory load.
3587 (legitimize_tls_address): Split out of ...
3588 (legitimize_address): ... here.
3589 (print_operand_address): Handle parts.seg.
3590 (ix86_expand_move): Use legitimize_tls_address.
3591 (ix86_rtx_costs): Handle UNSPEC_TP.
3592 * config/i386/i386.h (MASK_TLS_DIRECT_SEG_REFS): New.
3593 (TARGET_TLS_DIRECT_SEG_REFS): New.
3594 (TARGET_SWITCHES): Add tls-direct-seg-refs.
3595 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Default.
3596 (PREDICATE_CODES): Add no_seg_address_operand.
3597 * config/i386/i386.md (lea_1): Use it.
3598 (lea_1_rex64, lea_1_zext, lea_2_rex64): Likewise.
3599 (load_tp_si, add_tp_si, load_tp_di, add_tp_di): New.
3600 * config/i386/linux.h (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): New.
3601 * config/i386/linux64.h (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): New.
3602 * doc/invoke.texi: Add -mtls-direct-seg-refs.
3604 2003-06-04 Mark Mitchell <mark@codesourcery.com>
3606 * Makefile.in (QMTESTRUNFLAGS): Set for DejaGNU emulation.
3607 (QMTEST_GPP_TESTS): Use "g++" by default.
3608 (stamp-qmtest): Tweak database creation.
3609 (QMTEST_DIR/context): Update context file format.
3610 (qmtest-g++): Tweak command-line.
3612 2003-06-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3614 * Makefile.in (varasm.o): Don't set -Wno-error.
3615 * rs6000/t-rs6000 (varasm.o, out_object_file): Don't clear.
3617 2003-06-04 Zack Weinberg <zack@codesourcery.com>
3620 * aclocal.m4 (AC_FUNC_MMAP_ANYWHERE, AC_FUNC_MMAP_FILE): Delete.
3621 (gcc_AC_FUNC_MMAP_BLACKLIST): New.
3622 * configure.in: Check for sys/mman.h and mmap in AC_CHECK_HEADERS
3623 and AC_CHECK_FUNCS lists, respectively. Use
3624 gcc_AC_FUNC_MMAP_BLACKLIST, not AC_FUNC_MMAP_ANYWHERE nor
3626 * configure, config.in: Regenerate.
3628 2003-06-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3630 * arm/aout.h (ASM_OUTPUT_SKIP): Fix cast for format specifier warning.
3631 * arm.c (arm_output_function_prologue): Fix format specifiers.
3632 * arm.h (ARM_PRINT_OPERAND_ADDRESS): Likewise.
3633 * m68k.c (m68k_output_mi_thunk): Use more readable %wd instead of
3634 HOST_WIDE_INT_PRINT_DEC.
3635 * vax.c (vax_output_function_prologue): Fix format specifiers.
3637 2003-06-04 Richard Henderson <rth@redhat.com>
3639 * cse.c (find_best_addr): Consider binary operators even if second
3640 argument is not CONST_INT.
3642 2003-06-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3644 * doc/invoke.texi (max-cse-path-length): Document.
3646 2003-06-04 Richard Henderson <rth@redhat.com>
3648 * config/i386/i386.md (align): Use ASM_OUTPUT_*ALIGN macros.
3650 2003-06-04 Andrew Pinski <pinskia@physics.uc.edu>
3652 * config/rs6000/darwin.h (RS6000_OUTPUT_BASENAME):
3653 Remove semi-colon at the end of the expression.
3655 2003-06-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3657 * i370.c (mvs_function_name_length): Fix signed/unsigned warnings.
3658 * i370.h (mvs_function_name_length): Likewise.
3659 * i960.h (CONSTANT_ALIGNMENT): Likewise.
3660 * mips/linux.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
3661 * pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
3662 * pa.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
3663 * rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Delete unused
3666 2003-06-04 Daniel Jacobowitz <drow@mvista.com>
3668 * config.gcc: Reorganize --with-cpu logic. Set
3669 configure_default_options according to the default CPU, --with-cpu,
3670 --with-arch, --with-tune, --with-schedule, --with-abi, and
3671 --with-float. Check for legal values of various options.
3672 * configure.in: Define configure_default_options in configargs.h.
3673 * configure: Regenerated.
3674 * config/mips/mips.h (TARGET_DEFAULT_ARCH_P)
3675 (TARGET_DEFAULT_FLOAT_P): New macros.
3676 * gcc.c (do_option_spec): New function.
3677 (struct default_spec, option_default_specs): New.
3678 (main): Call do_option_spec.
3679 * config/alpha/alpha.h, config/arm/arm.h, config/i386/i386.h,
3680 config/mips/mips.h, config/pa/pa.h, config/rs6000/rs6000.h,
3681 config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Define.
3683 * doc/install.texi: Update --with-cpu documentation. Mention
3684 --with-arch, --with-schedule, --with-tune, --with-abi, and
3686 * doc/tm.texi (Driver): Document OPTION_DEFAULT_SPECS.
3688 2003-06-04 Daniel Jacobowitz <drow@mvista.com>
3690 * config.gcc: Only process --with-cpu logic in the third pass.
3692 2003-06-04 Daniel Jacobowitz <drow@mvista.com>
3694 * config.gcc: Reorganize --with-cpu section. Remove an
3695 obsolete comment about the default CPU for x86-64. Fix
3696 a typo for the ep9312. Update the list of supported PowerPC
3697 CPUs. Support a limited set of new --with-cpu options
3700 2003-06-04 Aldy Hernandez <aldyh@redhat.com>
3702 * config/rs6000/rs6000.c (rs6000_complex_function_value): Unpack
3703 complex numbers <= 32 bits into two registers.
3705 2003-06-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3707 * alpha.c (print_operand_address): Fix format specifier warnings.
3708 * alpha/elf.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
3709 * alpha/vms.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
3710 * arm/aof.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
3711 * arm/pe.h (ASM_OUTPUT_COMMON): Likewise.
3712 * avr.h (ASM_OUTPUT_COMMON, ASM_GENERATE_INTERNAL_LABEL,
3713 ASM_OUTPUT_SKIP): Likewise.
3714 * c4x.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
3715 * dsp16xx.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
3716 * h8300.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_COMMON):
3718 * i370.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
3719 * i386/cygming.h (ASM_OUTPUT_COMMON): Likewise.
3720 * i386/darwin.h (ASM_OUTPUT_COMMON): Likewise.
3721 * i960.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
3722 * m68k/hp320.h (PRINT_OPERAND_ADDRESS): Likewise.
3723 * mcore.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
3724 * pdp11.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
3725 * ptx4.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
3726 * sparc/freebsd.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
3727 * svr3.h (ASM_OUTPUT_COMMON): Likewise.
3729 2003-06-04 J"orn Rennecke <joern.rennecke@superh.com>
3731 * c-decl.c (c_init_decl_processing): Clear input_file_name
3732 while building common nodes.
3733 * dwarf2out.c (gen_compile_unit_die, dwarf2out_finish):
3734 Don't add working directory for strings like <built-in> .
3736 2003-06-04 David Edelsohn <edelsohn@gnu.org>
3738 * doc/install.texi (*-ibm-aix*): Native as and ld required
3739 to bootstrap on AIX 5L.
3741 2003-06-04 Richard Henderson <rth@redhat.com>
3743 * c-common.c (handle_cleanup_attribute): New.
3744 (c_common_attributes): Add it.
3745 * c-decl.c (finish_decl): Honor the cleanup attribute.
3746 * doc/extend.texi (Variable Attributes): Document it.
3748 * unwind-c.c: New file.
3749 * Makefile.in (LIB2ADDEH): Add it.
3750 * config/t-darwin, config/t-linux, config/t-linux-gnulibc1,
3751 config/ia64/t-ia64: Likewise.
3753 2003-06-04 Jakub Jelinek <jakub@redhat.com>
3755 * function.c (trampolines_created): New variable.
3756 (expand_function_end): Set it when doing INITIALIZE_TRAMPOLINE.
3757 * function.h (trampolines_created): Add.
3758 * config/s390/linux.h (ASM_FILE_END): Define.
3759 * config/alpha/linux-elf.h (ASM_FILE_END): Define.
3760 * config/m68k/linux.h (ASM_FILE_END): Define.
3761 * config/rs6000/linux.h (ASM_FILE_END): Define.
3762 * config/rs6000/linux64.h (ASM_FILE_END): Define.
3763 * config/rs6000/ppc-asm.h: Add .note.GNU-stack on powerpc-linux.
3764 * config/sparc/linux.h (ASM_FILE_END): Define.
3765 * config/sparc/linux64.h (ASM_FILE_END): Define.
3766 * config/i386/i386.c (ix86_asm_file_end): Use SUBTARGET_FILE_END.
3767 * config/i386/linux.h (SUBTARGET_FILE_END): Define.
3768 * config/i386/linux64.h (SUBTARGET_FILE_END): Define.
3770 Wed Jun 4 18:39:33 CEST 2003 Jan Hubicka <jh@suse.cz>
3772 * i386.c (min_insn_size, k8_avoid_jump_misspredicts): New functions
3773 (ix86_reorg): Use it.
3774 * i386.md (align): New insn pattern.
3776 2003-06-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3778 * toplev.c (rest_of_type_compilation): Fix typo.
3780 2003-06-04 Jakub Jelinek <jakub@redhat.com>
3781 Alan Modra <amodra@bigpond.net.au>
3783 * config/i386/linux.h (NO_PROFILE_COUNTERS): Define to 1.
3784 * config/i386/freebsd.h (NO_PROFILE_COUNTERS): Likewise.
3785 * config/i386/netbsd-elf.h (NO_PROFILE_COUNTERS): Likewise.
3786 * config/xtensa/xtensa.h (NO_PROFILE_COUTNERS): Likewise.
3787 * config/darwin.h (NO_PROFILE_COUNTERS): Likewise.
3788 * final.c (NO_PROFILE_COUNTERS): Define to 0 if not defined.
3789 (profile_function): Allow NO_PROFILE_COUNTERS to be non-constant.
3790 * config/rs6000/rs6000.c (output_profile_hook): Likewise.
3792 * configure.in (powerpc*-*, s390*-*): Set tls_as_opt.
3793 Pass it to $gcc_cv_as.
3794 * configure: Rebuilt.
3796 * config/rs6000/rs6000.c (rs6000_abi_name): Remove initializer.
3797 (print_operand): Allow TARGET_AIX to be non-constant.
3798 (rs6000_aix_emit_builtin_unwind_init, rs6000_emit_eh_toc_restore):
3799 Define unconditionally.
3800 (rs6000_elf_declare_function_name): New function.
3801 * config/rs6000/rs6000.md (eh_return): Allow TARGET_AIX to be
3803 * config/rs6000/linux64.h [!RS6000_BI_ARCH] (TARGET_64BIT): Define
3805 (DEFAULT_ARCH64_P, RS6000_BI_ARCH_P): Define.
3806 [IN_LIBGCC2] (TARGET_64BIT): Define based on whether __powerpc64__
3808 (TARGET_AIX): Define to 1 if TARGET_64BIT.
3809 (PROCESSOR_DEFAULT): Remove.
3810 (TARGET_RELOCATABLE, RS6000_ABI_NAME, INVALID_64BIT,
3811 INVALID_32BIT, SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
3812 [RS6000_BI_ARCH] (OVERRIDE_OPTIONS, ASM_FILE_START): Define.
3813 (ASM_DEFAULT_SPEC, ASM_SPEC, LINK_OS_LINUX_SPEC): Define for both
3815 (MULTILIB_DEFAULTS): Define.
3816 (SUBSUBTARGET_EXTRA_SPECS): Define.
3817 (ASM_SPEC32, ASM_SPEC64, ASM_SPEC_COMMON): Define.
3818 (TARGET_TOC): Define only if !RS6000_BI_ARCH.
3819 (TARGET_NO_TOC): Remove.
3820 [!RS6000_BI_ARCH] (TARGET_RELOCATABLE, TARGET_EABI,
3821 TARGET_PROTOTYPE): Define to 0.
3822 (NO_PROFILE_COUNTERS): Define to TARGET_64BIT.
3823 (PROFILE_HOOK): Only call output_profile_hook if TARGET_64BIT.
3824 (ADJUST_FIELD_ALIGN, ROUND_TYPE_ALIGN): Adjust to work properly
3826 (USER_LABEL_PREFIX): Remove.
3827 (JUMP_TABLES_IN_TEXT_SECTION): Define to TARGET_64BIT.
3828 (SETUP_FRAME_ADDRESSES): Only call rs6000_aix_emit_builtin_unwind_init
3830 (TARGET_OS_CPP_BUILTINS): Handle both -m32 and -m64.
3831 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Define.
3832 (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Remove.
3833 (TOC_SECTION_ASM_OP): Define depending on TARGET_64BIT.
3834 (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
3835 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE): Define depending on
3837 (RS6000_CALL_GLUE): Likewise.
3838 (SAVE_FP_PREFIX, SAVE_FP_SUFFIX, RESTORE_FP_PREFIX,
3839 RESTORE_FP_SUFFIX): Likewise.
3840 (ASM_DECLARE_FUNCTION_NAME): Remove.
3841 (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_SOURCE_LINE,
3842 DBX_OUTPUT_BRAC, DBX_OUTPUT_NFUN): Only output dot before function
3843 name if TARGET_64BIT.
3844 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Handle both TARGET_64BIT and
3846 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Remove undefs.
3847 (ASM_PREFERRED_EH_DATA_FORMAT): Take TARGET_64BIT into account.
3848 (DRAFT_V4_STRUCT_RET): Define.
3849 (SIGNAL_FRAMESIZE): New enum value.
3850 (MD_FALLBACK_FRAME_STATE_FOR): Define.
3851 * config/rs6000/default64.h: New file.
3852 * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -m32 and -m64
3854 (SUBTARGET_OVERRIDE_OPTIONS): If rs6000_abi_name is NULL, set it
3855 to RS6000_ABI_NAME. Only disallow mixing of -fPIC with -mcall-aixdesc
3857 [!RS6000_BI_ARCH] (SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
3858 (ASM_DECLARE_FUNCTION_NAME): Use rs6000_elf_declare_function_name
3860 (TARGET_OS_SYSV_CPP_BUILTINS): Define.
3861 (TARGET_OS_CPP_BUILTINS): Use it.
3862 (CPP_SYSV_SPEC): Remove.
3863 (CPP_SPEC): Remove cpp_sysv.
3864 (SUBTARGET_EXTRA_SPECS): Remove cpp_sysv.
3865 Add SUBSUBTARGET_EXTRA_SPECS.
3866 (SUBSUBTARGET_EXTRA_SPECS): Define.
3867 * config/rs6000/biarch64.h: New file.
3868 * config/rs6000/rs6000-protos.h (rs6000_elf_declare_function_name):
3870 * config/rs6000/x-linux64: New file.
3871 * config/rs6000/t-linux64: Build -m64, -m32 and -m32 -msoft-float
3873 * config/rs6000/eabi-ci.asm: Protect with #ifndef __powerpc64__.
3874 * config/rs6000/eabi-cn.asm: Likewise.
3875 * config/rs6000/tramp.asm: Likewise.
3876 * config/rs6000/sol-ci.asm: Likewise.
3877 * config/rs6000/sol-cn.asm: Likewise.
3878 * config/rs6000/linux.h (TARGET_64BIT): Define to 0.
3879 (TARGET_OS_CPP_BUILTINS): Use TARGET_OS_SYSV_CPP_BUILTINS.
3880 * config/rs6000/ppc-asm.h: Move __powerpc64__ section before
3881 _CALL_AIXDESC section.
3882 * config.gcc (powerpc64-*-linux*): Configure a bi-arch compiler,
3883 defaulting to -m64 unless --with-cpu= is one of the 32-bit CPUs
3886 2003-06-04 Daniel Jacobowitz <drow@mvista.com>
3888 * config.gcc: Revert accidentally committed ARM changes.
3890 2003-06-04 Roger Sayle <roger@eyesopen.com>
3892 * builtins.c (dconstpi, dconste): New mathematical constants.
3893 (init_builtin_dconsts): New function to initialize dconstpi
3895 (fold_builtin): Optimize exp(1.0) = e. Evaluate exp(x) at
3896 compile time with -ffast-math when x is an integer constant.
3897 Optimize tan(0.0) = 0.0. Optimize atan(0.0) = 0.0,
3898 atan(1.0) = pi/4 and tan(atan(x)) = x with -ffast-math.
3900 2003-06-04 Roger Sayle <roger@eyesopen.com>
3902 * calls.c (expand_call): Avoid calling pure or const functions
3903 when the result is ignored (or void) and none of the arguments
3904 are volatile. Move warning diagnostic earlier in function.
3906 2003-06-04 Andreas Jaeger <aj@suse.de>
3908 * system.h: Do not poison TDESC_SECTION_ASM_OP,
3909 RDATA_SECTION_ASM_OP and SUBTARGET_PROLOGUE.
3911 2003-06-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3913 * final.c (asm_fprintf): Update comments, accept "-+ #0" flags,
3914 optimize '%' case, handle %c, don't accept %p, %e, %f or %g,
3915 handle %ll, optimize regular character case.
3917 2003-06-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3919 * Makefile.in (cse.o): Add params.h dependency.
3920 * cse.c: Include params.h.
3921 (PATHLENGTH): Removed.
3922 (struct cse_basic_block_data): Make path array dynamic.
3923 (cse_end_of_basic_block): Use PARAM_MAX_CSE_PATH_LENGTH instead
3925 (cse_main, cse_basic_block): Allocate path array.
3926 * params.def (PARAM_MAX_CSE_PATH_LENGTH): New.
3928 Wed Jun 4 09:49:21 CEST 2003 Jan Hubicka <jh@suse.cz>
3930 * i386.c (ix86_reorg): Replace the jump instead of adding nop.
3931 * i386.md (UNSPEC_REP): New constant.
3932 (return_internal_long): New pattern.
3934 2003-06-04 Eric Botcazou <ebotcazou@libertysurf.fr>
3936 PR optimization/11018
3937 * config/sparc/sparc.c (sparc_v8plus_shift): Use which_alternative
3938 consistently to decide whether the scratch register is really
3941 2003-06-04 Eric Botcazou <ebotcazou@libertysurf.fr>
3943 PR optimization/10876
3944 * config/sparc/sparc.h (CONST_OK_FOR_LETTER): Add
3945 new 'O' constraint for constant 4096.
3946 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
3947 * config/sparc/sparc.md (adddi3 expander): Canonicalize pattern.
3948 Do not transform into MINUS insn for constant 4096.
3949 (*adddi3_sp64 insn): Canonicalize pattern. Add new alternative
3950 for constant 4096 as third operand.
3951 (addsi3 expander): Remove.
3952 (*addsi3 insn): Rename into 'addsi3'. Canonicalize pattern. Add
3953 new alternative for constant 4096 as third operand.
3954 (subdi3 expander): Do not transform into PLUS insn for constant 4096.
3955 (*subdi3_sp64 insn): Add new alternative for constant 4096 as third
3957 (subsi3 expander): Remove.
3958 (*subsi3 insn): Rename into 'subsi3'. Add new alternative for
3959 constant 4096 as third operand.
3960 * doc/md.texi (Machine Constraints): Document new 'O' constraint for
3963 2003-06-03 Chris Demetriou <cgd@broadcom.com>
3965 * config/mips/t-linux64 (CRTSTUFF_T_CFLAGS_S): Define.
3967 2003-06-04 Andreas Jaeger <aj@suse.de>
3969 * config/i386/uwin.h: Remove SUBTARGET_PROLOGUE.
3971 * config/i386/i386.c (ix86_expand_prologue): Do not use
3974 * system.h: Poision SUBTARGET_PROLOGUE.
3976 * config/arm/arm-protos.h: Remove unused rdate_section prototype.
3978 * output.h: Remove TDESC_SECTION_ASM_OP and RDATA_SECTION_ASM_OP
3981 * system.h: Poison TDESC_SECTION_ASM_OP and RDATA_SECTION_ASM_OP.
3983 * system.h: Poison INSN_CACHE_DEPTH, INSN_CACHE_SIZE and
3984 INSN_CACHE_LINE_WIDTH.
3986 * libgcc2.c (INSN_CACHE_PLANE_SIZE): Removed.
3987 (__clear_cache): Remove code dependend on INSN_CACHE_DEPTH,
3988 INSN_CACHE_SIZE and INSN_CACHE_LINE_WIDTH.
3990 * doc/tm.texi (Trampolines): Remove INSN_CACHE_DEPTH,
3991 INSN_CACHE_SIZE and INSN_CACHE_LINE_WIDTH.
3993 * dbxout.c (dbxout_type): Remove usage of DBX_OUTPUT_ENUM.
3994 (dbxout_symbol): Remove usage of DBX_OUTPUT_CONSTANT_SYMBOL.
3995 (dbxout_block): Remove usage of DBX_OUTPUT_CATCH.
3996 (dbxout_block): Remove usage of DBX_LBRAC_FIRST.
3997 (dbxout_source_file): Remove usage of DBX_OUTPUT_SOURCE_FILENAME.
3998 (dbxout_init): Remove test for DBX_WORKING_DIRECTORY.
4000 * doc/tm.texi (DBX Options): Do not document DBX_LBRAC_FIRST,
4001 DBX_OUTPUT_SOURCE_FILENAME and DBX_OUTPUT_ENUM and
4002 DBX_WORKING_DIRECTORY.
4004 * system.h: Poison DBX_LBRAC_FIRST, DBX_OUTPUT_ENUM,
4005 DBX_OUTPUT_SOURCE_FILENAME and DBX_WORKING_DIRECTORY.
4007 * config/frv/frv-protos.h: Remove unused const_section
4009 * config/vax/vax-protos.h: Likewise.
4011 * output.h: Remove CONST_SECTION_ASM_OP usage.
4013 * system.h: Poison CONST_SECTION_ASM_OP.
4015 * crtstuff.c (__do_global_dtors_aux): Remove usage of
4017 (frame_dummy): Likewise.
4018 * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Likewise.
4019 * system.h: Poison CRT_GET_RFIB_TEXT.
4021 * collect2.c (is_ctor_dtor): Remove CFRONT_LOSSAGE dependend code.
4023 * fix-header.c: Remove ADD_MISSING_EXTERN_C dependend variables.
4024 (write_lbrac): Remove ADD_MISSING_EXTERN_C dependend code.
4025 (recognized_function): Likewise.
4026 (read_scan_file): Likewise.
4028 2003-06-03 Roger Sayle <roger@eyesopen.com>
4030 * optabs.c (expand_binop): Optimize complex multiplication for
4031 the case of squaring a complex argument.
4033 2003-06-03 Roger Sayle <roger@eyesopen.com>
4035 * optabs.c (expand_binop): Attempt to reuse pseudos for duplicate
4036 non-volatile operands of binary operations.
4037 (prepare_cmp_insn): Likewise.
4039 2003-06-03 Roger Sayle <roger@eyesopen.com>
4041 * varasm.c (force_const_mem): Handle alignment of constants not
4042 representable as a type in the front-end language.
4044 2003-06-03 Kazu Hirata <kazu@cs.umass.edu>
4046 * flow.c (initialize_uninitialized_subregs): Use
4047 emit_move_insn instead of emitting a hardcoded move.
4049 2003-06-03 Richard Henderson <rth@redhat.com>
4051 * optabs.c (expand_abs_nojump): Split out from ...
4052 (expand_abs): ... here.
4053 * optabs.h (expand_abs_nojump): Declare.
4054 * ifcvt.c: (noce_try_abs): Use expand_abs_nojump.
4055 * Makefile.in (ifcvt.o): Depend on optabs.h.
4057 2003-06-03 Alan Modra <amodra@bigpond.net.au>
4059 * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Heed flag_merge_constants.
4061 2003-06-03 Jason Thorpe <thorpej@wasabisystems.com>
4063 * config.gcc (default_use_cxa_atexit): New variable, defaults to no.
4064 (*-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*): Set default_use_cxa_atexit
4066 * configure.in: Allow default_use_cxa_atexit to determine the
4067 value of DEFAULT_USE_CXA_ATEXIT if not explicitly enabled or
4069 * configure: Regenerate.
4071 2003-06-03 Douglas B Rupp <rupp@gnat.com>
4073 * Makefile.in (TEXI_GCC_FILES): Remove vms.texi entry.
4074 * doc/gcc.texi: Remove vms.texi section.
4075 * doc/vms.texi: Remove obsolete file.
4077 2003-05-23 J"orn Rennecke <joern.rennecke@superh.com>
4079 * configure.in (inhibit_libc): Don't define when configuring
4080 with --with-newlib --with-headers.
4081 * configure: Regenerate.
4083 * t-sh: Remove LIB2FUNCS_EXTRA and embed-bb.c rules.
4085 2003-06-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4087 * configure.in (gcc_cv_as_hidden): Disable .hidden completely on
4088 IRIX 6 without GNU ld.
4089 * configure: Regenerate.
4091 2003-06-03 Roger Sayle <roger@eyesopen.com>
4093 * expr.c (emit_move_insn_1): Use emit_move_insn to move the parts
4094 of a complex number rather than invoke mov_optab directly.
4096 2003-06-03 Kazu Hirata <kazu@cs.umass.edu>
4098 * combine.c (simplify_set): Don't move a subreg in SET_SRC to
4099 SET_DEST if WORD_REGISTER_OPERATIONS is not defined.
4101 2003-06-03 Nathanael Nerode <neroden@gcc.gnu.org>
4103 * config/i386/x86-64.h: Remove two target-independent comments;
4104 replace "GNU CC" with "GCC".
4106 2003-06-03 Anthony Green <green@redhat.com>
4108 * config/frv/t-frv (EXTRA_HEADERS): Remove media.h
4110 2003-06-03 Roger Sayle <roger@eyesopen.com>
4112 * builtins.def (BUILT_IN_CABS, BUILT_IN_CABSF, BUILT_IN_CABSL):
4113 New builtins representing ISO C99's cabs, cabsf and cabsl.
4114 * builtins.c (expand_builtin_fabs): New function.
4115 (expand_builtin_cabs): New function.
4116 (expand_builtin): Expand BUILT_IN_FABS{,F,L} and BUILT_IN_CABS{,F,L}
4117 using expand_builtin_fabs and expand_builtin_cabs respectively.
4119 * doc/extend.texi: Document new cabs, cabsf and cabsl builtins.
4121 2003-06-03 Aldy Hernandez <aldyh@redhat.com>
4123 * function.c (assign_parms): Split complex arguments.
4125 * doc/tm.texi (SPLIT_COMPLEX_ARGS): Document.
4127 * expr.h (SPLIT_COMPLEX_ARGS): Define.
4128 (split_complex_types): Protoize.
4129 (split_complex_values): Protoize.
4131 * calls.c (expand_call): Split complex arguments on architectures
4133 (split_complex_values): New.
4134 (split_complex_types): New.
4136 * config/rs6000/rs6000.c (rs6000_libcall_value): New.
4137 (rs6000_function_value): Handle complex values on AIX.
4138 (rs6000_complex_function_value): New.
4140 * config/rs6000/rs6000-protos.h (rs6000_libcall_value): Protoize.
4142 * config/rs6000/rs6000.h (LIBCALL_VALUE): Call function.
4143 (SPLIT_COMPLEX_ARGS): New.
4145 2003-06-03 Jakub Jelinek <jakub@redhat.com>
4147 * configure.in (HAVE_LD_PIE): Check for ld -pie.
4148 * config.in: Rebuilt.
4149 * configure: Rebuilt.
4150 * toplev.c (flag_pie, flag_shlib): New variables.
4151 (f_options): Add -fpie and -fPIE.
4152 (parse_options_and_default_flags): Set flag_pic if -fpie/-fPIE.
4153 Set flag_shlib if flag_pic and not -fpie/-fPIE.
4154 * flags.h (flag_pic, flag_shlib): Add.
4155 * varasm.c (default_binds_local_p): Use flag_shlib instead of
4157 * gcc.c (LINK_PIE_SPEC): Define.
4158 (LINK_COMMAND_SPEC): Use LINK_PIE_SPEC.
4159 (option_map): Add --pie -> -pie mapping.
4160 * config/sol2.h (ASM_SPEC): Handle -fpie the same way as -fpic
4161 and -fPIE the same way as -fPIC.
4162 * config/openbsd.h (ASM_SPEC): Likewise.
4163 * config/frv/frv.h (ASM_SPEC): Likewise.
4164 * config/arm/linux-gas.h (SUBTARGET_CPP_SPEC): Likewise.
4165 * config/arm/semi.h (ASM_SPEC): Likewise.
4166 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
4167 * config/freebsd-spec.h (FBSD_CPP_SPEC): Likewise.
4168 * config/i386/beos-elf.h (CC1_SPEC): Likewise.
4169 * config/i386/freebsd-aout.h (ASM_SPEC): Likewise.
4170 * config/m68k/linux.h (CPP_SPEC): Likewise.
4171 * config/m68k/netbsd.h (ASM_SPEC): Likewise.
4172 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
4173 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
4174 * config/mips/linux.h (SUBTARGET_CPP_SPEC): Likewise.
4175 * config/mips/openbsd.h (SUBTARGET_ASM_SPEC): Likewise.
4176 * config/pa/pa-linux.h (CPP_SPEC): Likewise.
4177 * config/netbsd-aout.h (ASM_SPEC): Likewise.
4178 * config/rs6000/sysv4.h (ASM_SPEC, CPP_SYSV_SPEC): Likewise.
4179 * config/rs6000/vxworks.h (CPP_SPEC): Likewise.
4180 * config/sparc/linux.h (CPP_SUBTARGET_SPEC, ASM_SPEC): Likewise.
4181 * config/sparc/linux64.h (CPP_SUBTARGET_SPEC, ASM_SPEC): Likewise.
4182 * config/sparc/sparc.h (ASM_SPEC): Likewise.
4183 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
4184 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
4185 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
4186 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
4187 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
4188 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC): Handle -pie.
4190 * config/alpha/elf.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
4191 * config/i386/linux64.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
4192 * config/ia64/linux.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
4193 * config/rs6000/sysv4.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
4194 * config/rs6000/linux64.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
4195 * config/sparc/linux.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
4196 * config/sparc/linux64.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
4197 * doc/invoke.texi: Document -pie, -fpie and -fPIE options.
4199 2003-06-03 Jakub Jelinek <jakub@redhat.com>
4201 * builtins.c (expand_builtin_memcpy): Remove endp argument and endp
4202 != 0 handling. Pass 0 to store_by_pieces.
4203 (expand_builtin_mempcpy): Add endp argument. Don't call
4204 expand_builtin_memcpy, call store_by_pieces resp. move_by_pieces
4205 directly. If ignoring result, only do expand_call.
4206 (expand_builtin_stpcpy): Likewise. Call expand_builtin_mempcpy
4208 (expand_builtin_strncpy, expand_builtin_memset): Adjust
4209 store_by_pices callers.
4210 (expand_builtin): Adjust expand_builtin_memcpy and
4211 expand_builtin_mempcpy callers.
4212 * expr.c (can_move_by_pieces): New function.
4213 (move_by_pieces): Add endp argument, return to resp. memory at end
4214 or one byte earlier depending on endp.
4215 (store_by_pieces): Likewise.
4216 (emit_block_move): Adjust call to move_by_pieces.
4217 (emit_push_insn): Adjust move_by_pieces caller.
4218 * expr.h (can_move_by_pieces): New prototype.
4219 (store_by_pieces): Adjust prototypes.
4220 * rtl.h (move_by_pieces): Adjust prototype.
4221 * config/mips/mips.c (expand_block_move): Adjust move_by_pieces
4224 2003-06-03 Ben Elliston <bje@wasabisystems.com>
4226 * doc/md.texi (Processor pipeline description): Improve wording.
4228 2003-06-03 Neil Booth <neil@daikokuya.co.uk>
4230 * c-opts.c (c_common_handle_option): New, pulled out of
4231 c_common_decode_option. Substitute uses of argv.
4232 (c_common_decode_option): Broken into two.
4234 2003-06-02 Roger Sayle <roger@eyesopen.com>
4235 Zack Weinberg <zack@codesourcery.com>
4237 * emit-rtl.c (gen_complex_constant_part): Remove unnecessary
4238 test of TREE_CONSTANT_POOL_ADDRESS_P.
4240 2003-06-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4242 * mips.c: Don't include output.h twice.
4243 * stormy16.c: Likewise.
4244 * xtensa.c: Likewise.
4245 * output.h: Protect against multiple inclusion.
4247 2003-06-02 J"orn Rennecke <joern.rennecke@superh.com>
4249 * sh.h (OLD_ARG_MODE): New macro.
4250 (FUNCTION_ARG_ADVANCE, FUNCTION_ARG_PASS_BY_REFERENCE): Use it.
4251 (FUNCTION_ARG_1): Break out of:
4252 (FUNCTION_ARG). Use OLD_ARG_MODE.
4254 2003-06-02 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
4256 * gcc/config.gcc Add support multilib parts for m32rx processor.
4258 2003-06-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4260 * Makefile.in (c-options.c): Pass in $(AWK) to opts.sh.
4261 (mostlyclean): Delete c-options.c and c-options.h.
4263 2003-06-02 Neil Booth <neil@daikokuya.co.uk>
4265 * c-opts.c (CL_REJECT_NEGATIVE): New.
4266 (c_common_decode_option): Update to use it.
4267 * c.opt: Update documentation; use RejectNegative.
4268 * opts.sh: Handle RejectNegative.
4270 2003-06-01 Zack Weinberg <zack@codesourcery.com>
4272 * ggc-page.c (init_ggc): Give better diagnostics on failure to
4274 * toplev.c (crash_signal): Reset handling for received signal
4277 2003-06-02 Ben Elliston <bje@wasabisystems.com>
4279 * config/arm/arm.c (arm_use_dfa_pipeline_interface): Declare.
4280 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define if not already.
4281 (arm_use_dfa_pipeline_interface): Implement.
4282 * config/arm/arm.md (arm): New automaton.
4283 (write_buf): Remove function units; new cpu unit.
4284 (write_blockage): Remove function units; new cpu unit.
4285 (core): Remove function units; new cpu unit.
4286 (r_mem_f_wbuf): New instruction reservation.
4287 (store1_wbuf, store2_wbuf, store3_wbuf, store4_wbuf): Likewise.
4288 (store1_ldsched, store2, store3, store4): Likewise.
4289 (load_ldsched, load_ldsched_xscale, load_or_store): Likewise.
4290 (mult, mult_ldsched, mult_ldsched_strongarm): Likewise.
4291 (multi_cycle, single_cycle): Likewise.
4292 * config/arm/fpa.md (armfp): New automaton.
4293 (fpa): Remove function units; new cpu unit.
4294 (fpa_mem): Remove function unit; new cpu unit.
4295 (fdivx, fdivd, fdivs, fmul, ffmul, farith, ffarith): New reservations.
4296 (r_2_f, f_2_r, f_load, f_store, r_mem_f, f_mem_r): Likewise.
4298 2003-06-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4300 * builtin-attrs.def (ATTR_ASM_FPRINTF): New.
4301 * c-format.c (enum format_type): Add asm_fprintf_format_type.
4302 (NOARGUMENTS, asm_fprintf_length_specs, asm_fprintf_flag_specs,
4303 asm_fprintf_flag_pairs, asm_fprintf_char_table): New.
4304 (format_types_orig): Renamed from format_types. Add new data.
4305 (format_types): Declare as pointer.
4306 (handle_format_attribute): Move later in file so we have all
4307 necessary declarations. Add section to capture HOST_WIDE_INT.
4308 * output.h (ATTRIBUTE_ASM_FPRINTF, __gcc_host_wide_int__): New.
4309 (asm_fprintf): Mark with ATTRIBUTE_ASM_FPRINTF.
4311 2003-06-01 Andreas Jaeger <aj@suse.de>
4313 * doc/tm.texi (Storage Layout): Remove ROUND_TYPE_SIZE and
4314 ROUND_TYPE_SIZE_UNIT.
4316 * stor-layout.c (finalize_record_size): Remove usages of
4317 ROUND_TYPE_SIZE and ROUND_TYPE_SIZE_UNIT.
4318 (finalize_type_size): Likewise.
4319 (layout_type): Likewise.
4321 * system.h: Poison ROUND_TYPE_SIZE and ROUND_TYPE_SIZE_UNIT.
4323 * loop.c (check_insn_for_givs): Remove DONT_REDUCE_ADDR macro.
4325 * config/d30v/d30v.h: Remove text copied from the manual.
4327 2003-06-01 Roger Sayle <roger@eyesopen.com>
4328 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4329 Geoffrey Keating <geoffk@apple.com>
4331 * emit-rtl.c (gen_lowpart_common): Handle interpreting integer
4332 constants as condition code values.
4334 2003-06-01 DJ Delorie <dj@redhat.com>
4336 * cppmacro.c (warn_of_redefinition): Handle cases where the two
4337 definitions have different numbers of tokens.
4339 2003-06-01 Andreas Jaeger <aj@suse.de>
4341 * gen-protos.c (main): Readd unused attribute for argc.
4343 2003-06-01 Neil Booth <neil@daikokuya.co.uk>
4345 * Makefile.in (c-options.c, c-options.h): Parallel make safe.
4346 * c.opt: End in blank line.
4347 * opts.sh: Take AWK from environment if available; use C locale.
4349 2003-06-01 Andreas Schwab <schwab@suse.de>
4351 * config/m68k/linux.h: Remove code protected by USE_GNULIBC_1.
4353 2003-06-01 Andreas Jaeger <aj@suse.de>
4355 * gen-protos.c (main): Revert patch to check for argument.
4357 2003-06-01 Eric Botcazou <ebotcazou@libertysurf.fr>
4360 * config/i386/i386.md (length attribute): Set length to 4
4361 for instructions of type "fcmp".
4363 2003-06-01 Andreas Jaeger <aj@suse.de>
4365 * toplev.c: Use ISO C90 prototypes.
4367 * toplev.h: Use ISO C90 prototypes.
4369 * genrecog.c: Use ISO C90 prototypes.
4370 (nodes_identical): Correct declaration to match prototype.
4371 (maybe_both_true): Likewise.
4372 (merge_trees): Likewise.
4374 * genpeep.c (gen_peephole): Remove #if 0 code.
4375 Use ISO C90 prototypes.
4377 * genattrtab.c (copy_rtx_unchanging): Remove #if 0'ed code.
4378 Remove #if 0'ed function simplify_by_alternatives.
4379 (optimize_attrs): Remove #if 0'ed code.
4381 Use ISO C90 prototypes.
4382 (make_canonical): Remove #if 0'ed code.
4383 (convert_const_symbol_ref): Remove #if 0'ed function.
4385 * gen-protos.c (main): Check for argument.
4387 * rtl.h: Use ISO C90 prototypes for functions from lists.c.
4389 * params.h: Use ISO C90 prototypes.
4390 * params.c: Likewise.
4393 * lists.c: Likewise.
4394 * errors.c: Likewise.
4395 * errors.h: Likewise.
4396 * gencodes.c: Likewise.
4397 * genpreds.c: Likewise.
4398 * genattr.c: Likewise.
4399 * gen-protos.c: Likewise.
4400 * genflags.c: Likewise
4401 * genconditions.c: Likewise.
4402 * genautomata.c: Likewise.
4403 * gencheck.c: Likewise.
4404 * genconfig.c: Likewise.
4405 * genconstants.c: Likewise.
4406 * genemit.c: Likewise.
4407 * genextract.c: Likewise.
4408 * gengenrtl.c: Likewise.
4409 * gengtype.c: Likewise.
4410 * gengtype.h: Likewise.
4411 * genopinit.c: Likewise.
4412 * genoutput.c: Likewise.
4413 * gensupport.c: Likewise.
4414 * gensupport.h: Likewise.
4416 * sdbout.h: Use ISO C90 prototypes.
4418 * sdbout.c (CONTIN): Removed empty macro.
4419 (sdbout_one_type): Remove CONTIN usages.
4421 (tag_of_ru_type): Remove #if 0'ed function.
4422 (sdbout_symbol): Remove #if 0'ed code.
4423 (sdbout_one_type): Remove a #if 1.
4424 (sdbout_one_type): Remove #if 0'ed code.
4425 (sdbout_init): Remove RMS_QUICK_HACK_1 code.
4426 Remove PARAMS, use ISO C90 prototypes for all functions.
4428 2003-06-01 Josef Zlomek <zlomekj@suse.cz>
4430 * rtl.def (CONST_DOUBLE): Update comment.
4432 2003-06-01 Neil Booth <neil@daikokuya.co.uk>
4434 * opts.sh: Remove path from sort.
4436 2003-06-01 Aldy Hernandez <aldyh@redhat.com>
4439 * config/rs6000/rs6000.h (CANNOT_CHANGE_MODE_CLASS): Require
4440 TARGET_SPE for SPE_VECTOR_MODE.
4442 2003-05-31 Aldy Hernandez <aldyh@redhat.com>
4444 * toplev.c (botch): Remove.
4446 (set_Wunused): Comment.
4447 (set_Wextra): Comment.
4449 (rest_of_compilation): Factor out common code into functions.
4450 (rest_of_handle_inlining): New.
4451 (rest_of_handle_ssa): New.
4452 (rest_of_handle_cse): New.
4453 (rest_of_handle_gcse): New.
4454 (rest_of_handle_loop_optimize): New.
4455 (rest_of_handle_jump_bypass): New.
4456 (rest_of_handle_sibling_calls): New.
4457 (rest_of_handle_null_pointer): New.
4458 (rest_of_handle_addresof): New.
4459 (rest_of_handle_flow): New.
4460 (rest_of_handle_branch_prob): New.
4461 (rest_of_handle_if_conversion): New.
4462 (rest_of_handle_tracer): New.
4463 (rest_of_handle_loop2): New.
4464 (rest_of_handle_cse2): New.
4465 (rest_of_handle_life): New.
4466 (rest_of_handle_combine): New.
4467 (rest_of_handle_if_after_combine): New.
4468 (rest_of_handle_regmove): New.
4469 (rest_of_handle_sched): New.
4470 (rest_of_handle_old_regalloc): New.
4471 (rest_of_handle_new_regalloc): New.
4472 (rest_of_handle_regrename): New.
4473 (rest_of_handle_reorder_blocks): New.
4474 (rest_of_handle_sched2): New.
4475 (rest_of_handle_new_regalloc): New.
4476 (rest_of_handle_old_regalloc): New.
4477 (rest_of_handle_regrename): New.
4478 (rest_of_handle_reorder_blocks): New.
4479 (rest_of_handle_stack_regs): New.
4480 (rest_of_handle_machine_reorg): New.
4481 (rest_of_handle_delay_slots): New.
4482 (rest_of_handle_final): New.
4484 * toplev.h (botch): Remove prototype.
4487 2003-05-31 Neil Booth <neil@daikokuya.co.uk>
4489 * Makefile.in (c-opts.o, c-options.h): Update dependencies.
4490 * c-opts.c: Include c-options.h and c-options.c.
4491 (CL_C_ONLY, CL_OBJC_ONLY, CL_CXX_ONLY, CL_OBJCXX_ONLY):
4492 Rename CL_C, CL_OBJC, CL_CXX, CL_OBJCXX.
4493 (CL_ARG, CL_ALL, COMMAND_LINE_OPTIONS, struct cl_option,
4494 OPT, opt_comp): Remove.
4495 (missing_arg, c_common_init_options, c_common_decode_option,
4496 write_langs): Update for macro redefinitions and enumeration
4498 * c.opt, opts.sh: New files.
4499 * doc/passes.texi: Update.
4501 2003-05-31 Andreas Jaeger <aj@suse.de>
4503 * function.c (trampoline_address): Remove ALLOCATE_TRAMPOLINE
4506 * doc/tm.texi (Trampolines): Remove ALLOCATE_TRAMPOLINE.
4508 * config/d30v/d30v.h: Remove traces of ALLOCATE_TRAMPOLINE.
4510 * system.h: Poison ALLOCATE_TRAMPOLINE.
4512 * doc/tm.texi (Misc): Remove HANDLE_PRAGMA.
4513 * system.h: Poison HANDLE_PRAGMA.
4515 2003-05-31 Kazu Hirata <kazu@cs.umass.edu>
4517 * doc/invoke.texi: Update dump file names.
4519 2003-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4521 * c-format.c (format_length_info, format_char_info,
4522 format_flag_spec, format_flag_pair, format_kind_info):
4523 De-const-ify structure members.
4525 2003-05-31 Roger Sayle <roger@eyesopen.com>
4527 * flags.h (flag_wrapv): New flag controlling overflow semantics.
4528 * toplev.c (flag_wrapv): Declare the variable with default false.
4529 (lang_independent_options): New option "-fwrapv" to set the above.
4531 * fold-const.c (extract_muldiv_1): Disable optimization of (2*x)/2
4532 as x, when signed arithmetic overflow wraps around.
4533 (fold): Optimize "-A - B" as "-B - A" if overflow wraps around.
4534 * loop.c (basic_induction_var): Ignore BIVs that rely on undefined
4535 overflow when flag_wrapv is true.
4537 * doc/invoke.texi: Document new -fwrapv command line option.
4538 * doc/c-tree.texi: Mention that the overflow semantics of
4539 NEGATE_EXPR, PLUS_EXPR, MINUS_EXPR and MULT_EXPR is dependent
4540 upon both flag_wrapv and flag_trapv.
4542 2003-05-31 Eric Botcazou <ebotcazou@libertysurf.fr>
4544 * doc/install.texi (mips-sgi-irix5): Add missing
4547 2003-05-31 Eric Botcazou <ebotcazou@libertysurf.fr>
4549 * doc/md.texi (Machine Constraints): Document
4550 missing SPARC constraints.
4552 2003-05-31 Eric Botcazou <ebotcazou@libertysurf.fr>
4554 * doc/md.texi (Automaton pipeline description): Use
4555 "type" instead of "cpu" as the attribute in the examples.
4557 2003-05-30 Stan Shebs <shebs@apple.com>
4559 * system.h: Poison OBJC_PROLOGUE.
4561 2003-05-30 Roger Sayle <roger@eyesopen.com>
4563 * emit-rtl.c (gen_complex_constant_part): New function for getting
4564 the constant real or imaginary part of a complex constant.
4565 (gen_realpart): Use it.
4566 (gen_imagpart): Likewise.
4568 2003-05-30 Kazu Hirata <kazu@cs.umass.edu>
4570 * doc/invoke.texi: Fix typos.
4571 * doc/rtl.texi: Likewise.
4573 2003-05-30 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
4575 * config/h8300/crti.asm: Use .h8300hn and .h8300sn for normal
4577 * config/h8300/crtn.asm: Likewise.
4578 * config/h8300/lib1funcs.asm: Likewise.
4579 * config/h8300/h8300.c (asm_file_start): Likewise.
4580 * config/h8300/elf.h (LINK_SPEC): Use h8300hnelf and
4581 h8300snelf emulations for normal mode.
4582 * config/h8300/h8300.h (LINK_SPEC): Use h8300hn and h8300sn
4583 emulations for normal mode.
4585 2003-05-30 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
4587 * config/h8300/h8300.c (h8300_tiny_constant_address_p): Return
4588 true if TARGET_NORMAL_MODE.
4590 2003-05-30 Roger Sayle <roger@eyesopen.com>
4592 * cse.c (cse_insn): Simplify REG_EQUAL note on libcalls when
4593 making a substitution.
4594 (dead_libcall_p): If directly replacing a libcall with a
4595 constant value produces an invalid instruction, also try forcing
4596 the constant into the constant pool.
4597 * expr.c (emit_move_insn): Add a REG_EQUAL note when it is not
4598 obvious that the source is a constant.
4599 (compress_float_constant): Use set_unique_reg_note to place
4600 REG_EQUAL notes on instructions.
4602 2003-05-30 Eric Christopher <echristo@redhat.com>
4604 * config/mips/mips.c (extern_list): Add GTY marker.
4605 (extern_head): Separate out definition. Add marker.
4606 (mips_output_external): Use ggc_alloc for extern_list
4608 (mips_output_external_libcall): Ditto.
4610 2003-05-30 Florian Weimer <fw@deneb.enyo.de>
4612 * doc/install.texi: Ada-enabled bootstrap requires GNAT 3.14 or
4615 2003-05-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4617 * vax.h (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier
4619 (PRINT_OPERAND): Likewise.
4621 2003-05-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4623 * config/mips/mips.h (SUBTARGET_ASM_DEBUGGING_SPEC): Move
4624 -mdebug/-no-mdebug switches ...
4625 (MDEBUG_ASM_SPEC): ... here.
4627 (EXTRA_SPECS): Initialize mdebug_asm_spec.
4629 2003-05-29 Matt Kraai <kraai@alumni.cmu.edu>
4631 * gthr-gnat.c: Remove #undef UNUSED.
4632 (__gnat_default_lock, __gnat_default_unlock): Prototype.
4633 (__gnat_task_lock, __gnat_task_unlock): Make declarations
4635 (__gnat_install_locks): Convert declaration to ISO C90, make
4636 parameter declarations prototypes, and remove blank line.
4637 * gthr-gnat.h (__gnat_install_locks): Make parameter
4638 declarations prototypes.
4640 2003-05-29 Jason Merrill <jason@redhat.com>
4642 * Makefile.in (unstrap): Remove stage_last after make unstage1.
4644 2003-05-29 Roger Sayle <roger@eyesopen.com>
4646 * mips-tfile.c (PAGE_SIZE): Increase page size to 32K.
4648 2003-05-29 Roger Sayle <roger@eyesopen.com>
4649 Kaveh Ghazi <ghazi@caip.rutgers.edu>
4652 * mips-tfile.c (main): Use getopt_long instead of getopt.
4653 Add new command line option --version to display version.
4654 Treat --verbose like -v to report a single line version.
4655 (options): New global variable for getopt_long.
4656 * mips-tdump.c (main): Use getopt_long instead of getopt.
4657 New command line options -v, --version and -verbose to display
4658 the program version number (to match mips-tfile's behavior).
4659 (options): New global variable for getopt_long.
4661 * gcov.c (options): Zero-terminate getopt_long array.
4662 * gcov-dump.c (options): Likewise.
4664 * Makefile.in (mips-tdump.o): Add dependency on version.h.
4666 2003-05-29 Stan Shebs <shebs@apple.com>
4668 Remove OBJC_PROLOGUE everywhere.
4669 * objc/objc-act.c (finish_objc): Remove use of OBJC_PROLOGUE.
4670 * config/avr/avr.h: Remove no-op ref to OBJC_PROLOGUE.
4671 * config/d30v/d30v.h: Similarly.
4672 * config/ip2k/ip2k.h: Similarly.
4673 * doc/tm.texi: Remove doc of OBJC_PROLOGUE.
4675 2003-05-29 Roger Sayle <roger@eyesopen.com>
4677 * c-semantics.c (genrtl_do_stmt_1): New function split out from...
4678 (gen_rtl_do_stmt): ... here. Call genrtl_do_stmt_1.
4679 (expand_unreachable_stmt): Expand unreachable while statements
4680 using genrtl_do_stmt_1.
4682 2003-05-29 Richard Sandiford <rsandifo@redhat.com>
4684 * config/mips/mips-protos.h (mips_output_load_label): Declare.
4685 * config/mips/mips.c (mips_output_load_label): New function.
4686 (mips_output_conditional_branch): Use it.
4687 * config/mips/mips.md (jump): And here.
4689 2003-05-28 Bob Wilson <bob.wilson@acm.org>
4691 * config/xtensa/xtensa-protos.h (smalloffset_double_mem_p): Delete.
4692 (xtensa_split_operand_pair): New proto.
4693 * config/xtensa/xtensa.c (move_operand): Handle DFmode and DImode.
4694 (smalloffset_double_mem_p): Delete.
4695 (gen_float_relational, printx, print_operand, xtensa_va_arg):
4697 (xtensa_split_operand_pair): New.
4698 (xtensa_dbx_register_number): Fix formatting.
4699 * config/xtensa/xtensa.h (EXTRA_CONSTRAINT): Remove 'S' constraint.
4700 * config/xtensa/xtensa.md (movdi, movdf): Force constants to memory
4701 instead of splitting them into single-word moves. Remove unnecessary
4702 checks for reload_in_progress and reload_completed.
4703 (movdi_internal, movdf_internal): Change to post-reload split patterns.
4704 Add constraints to allow constant operands.
4705 (movsf_internal): Allow CONST_INT operands.
4707 2003-05-27 Danny Smith <dannysmith@users.sourceforge.net>
4709 * config.gcc (i[34567]86-*-mingw32*): Add host makefile
4710 fragment i386/x-mingw32.
4711 * config/i386/x-mingw32: New file. Make local_includedir
4712 relative to EXEC_PREFIX.
4714 2003-05-27 Aaron W. LaFramboise <awlaframboise@aol.com>
4716 * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Update.
4717 (MD_STARTFILE_PREFIX): Define.
4719 2003-05-27 Denis Chertykov <denisc@overta.ru>
4721 * cselib.c (cselib_invalidate_regno): Abort if hardreg have a
4723 * cselib.c (cselib_process_insn): Pass reg_raw_mode for hardreg in
4724 call of cselib_invalidate_regno.
4726 2003-05-28 Daniel Jacobowitz <drow@mvista.com>
4728 * config/mips/linux.h (LIB_SPEC): Add missing -lc and correct
4729 -lthread to -lpthread.
4731 2003-05-28 Eric Botcazou <ebotcazou@libertysurf.fr>
4732 Bruce Korb <bkorb@gnu.org>
4733 Arno Klaassen <arno@heho.snv.jussieu.fr>
4735 * fixinc/inclhack.def: Add missing declaration of getpagesize()
4736 to unistd.h on Solaris 2.5.1.
4737 Fix prototype of recv() and send() in sys/socket.h on
4738 Solaris 2.5.1 and 2.6.
4739 * fixinc/tests/base/unistd.h: Add solaris_unistd fix test.
4740 * fixinc/tests/base/sys/socket.h: Add solaris_socket test.
4741 * fixinc/check.tpl: Use 'diff -c', not 'diff -u'.
4742 * fixinc/fixincl.x: Regenerate.
4744 2003-05-27 Jason Merrill <jason@redhat.com>
4746 * tree.c (expr_first, expr_length): New fns.
4747 * tree.h: Declare them.
4749 * tree.c (iterative_hash_expr): Hash commutative expressions
4752 2003-05-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4754 * tree.h (contains_placeholder_p): Now returns bool.
4755 (CONTAINS_PLACEHOLDER_P): New macro.
4756 (type_contains_placeholder_p): New function.
4757 * tree.c (save_expr): Remove code avoiding folding COMPONENT_REF.
4758 (contains_placeholder_p): Now returns bool.
4759 Rework to use CONTAINS_PLACEHOLDER_P macro.
4760 (type_contains_placeholder_p): New function.
4761 * fold-const.c (fold, case COMPONENT_REF): Don't fold if
4762 type_contains_placeholder_p.
4763 (fold_range_test, fold_mathfn_compare, fold_inf_compare, fold):
4764 Use CONTAINS_PLACEHOLDER_P macro.
4765 * builtins.c (fold_builtin): Likewise.
4766 * calls.c (initialize_argument_information): Likewise.
4767 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
4768 * explow.c (expr_size): Likewise.
4769 * expr.c (store_constructor, get_inner_reference): Likewise.
4770 * function.c (assign_parms): Likewise.
4771 * stor-layout.c (variable_size): Likewise.
4773 2003-05-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
4775 * diagnostic.h (output_verbatim, verbatim): Remove printf
4778 2003-05-25 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4780 * doc/contrib.texi (Contributors): Update Kean Johnston.
4782 2003-05-24 David Edelsohn <edelsohn@gnu.org>
4784 * config/rs6000/rs6000.md (save_fpregs_{si,di}): Add length attribute.
4786 2003-05-24 Nathanael Nerode <neroden@gcc.gnu.org>
4788 * config/rs6000/440.md, config/stormy16/stormy16protos.h,
4789 config/stormy16/stormy16.c, config/stormy16/stormy16.md:
4790 Replace "GNU CC" with "GCC".
4792 2003-05-24 Matt Kraai <kraai@alumni.cmu.edu>
4794 * builtins.c (expand_builtin_memcpy): Use mode of dest_addr for
4795 intermediate computation.
4797 2003-05-23 Eric Christopher <echristo@redhat.com>
4799 * config/mips/mips.md (clzsi, clzdi): New patterns.
4801 2003-05-23 Geoffrey Keating <geoffk@apple.com>
4803 * gcc.c (default_compilers): Use -o to specify preprocessor's output
4804 file. Make -no-integrated-cpp work when building PCH files.
4805 * objc/lang-specs.h: Likewise.
4807 2003-05-23 Nathanael Nerode <neroden@gcc.gnu.org>
4809 * fixinc/Makefile.in: Correct description.
4810 * fixinc/Makefile.in, fixinc/fixfixes.c, fixinc/fixincl.c,
4811 fixinc/fixlib.c, fixinc/fixlib.h, fixinc/fixtests.c,
4812 fixinc/genfixes: Replace "GNU CC" with "GCC".
4814 2003-05-23 Roger Sayle <roger@eyesopen.com>
4816 * builtins.def: Define atan, atanf, atanl, tan, tanf and tanl
4817 builtin functions (and their __builtin_* variants).
4818 * builtins.c (mathfn_built_in): Handle tan{,f,l} and atan{,f,l}.
4819 (expand_builtin): Don't expand tan{,f,l} or atan{,f,l} when not
4822 * doc/extend.texi: Document new tan and atan builtins, and
4823 their float and long double variants.
4825 2003-05-23 Jason Thorpe <thorpej@wasabisystems.com>
4827 * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define
4828 __sparcv9 in the TARGET_ARCH64 case.
4830 Fri May 23 22:17:32 CEST 2003 Jan Hubicka <jh@suse.cz>
4832 * i386.c (ix86_reorg): Calls are also jumps.
4834 2003-05-23 J"orn Rennecke <joern.rennecke@superh.com>
4836 * cse.c (count_reg_usage): When processing an INSNs REG_EQUAL
4837 note containing an EXPR_LIST, process all the arguments.
4839 Fri May 23 21:19:31 CEST 2003 Jan Hubicka <jh@suse.cz>
4840 Andreas Jaeger <aj@suse.de>
4842 * i386.h (TARGET_CPU_CPP_BUILTINS): Define __amd64 and __amd64__;
4843 do not use assertion.
4845 2003-05-23 Mike Stump <mrs@apple.com>
4847 * tlink.c (scan_linker_output): Add support for darwin linker, as it
4848 emits unresolved symbols one per line, consuming the entire line.
4850 2003-05-23 Larin Hennessy <larin@science.oregonstate.edu>
4851 Zack Weinberg <zack@codesourcery.com>
4853 * explow.c (allocate_dynamic_stack_space): Remove call to gen_probe.
4854 * config/m68k/m68k.c (m68k_output_function_prologue):
4855 Remove code under #if NEED_PROBE.
4856 * config/m68k/m68k.h: Don't define NEED_PROBE.
4857 * config/m68k/m68k.md: Remove "probe" insn.
4858 * doc/md.texi: Remove documentation of "probe" pattern.
4860 2003-05-23 Dorit Naishlos <gcchaifa@il.ibm.com>
4862 * config/rs6000/rs6000.md (save_fpregs_{si,di}): Add branch attribute.
4864 2003-05-23 Eric Botcazou <ebotcazou@libertysurf.fr>
4866 * doc/install.texi: Remove sparc64-*-*. Add sparc64-*-solaris2*.
4867 Document sparcv9-*-solaris2* as a synonym for sparc64-*-solaris2*.
4869 2003-05-22 Roger Sayle <roger@eyesopen.com>
4871 * real.c (real_maxval): New function to return the largest finite
4872 value representable in a given mode (i.e. FLT_MAX and DBL_MAX).
4873 * real.h (real_maxval): Prototype here.
4874 * fold-const.c (fold_inf_compare): Transform comparisons against
4875 +-Infinity into comparisons against DBL_MAX (or equivalent).
4877 2003-05-22 Mike Stump <mrs@apple.com>
4879 * config.gcc (*-*-darwin*): Remove use_collect2=no, as it is the
4882 2003-05-22 DJ Delorie <dj@redhat.com>
4884 * calls.c (expand_call): If the arg block is going to grow
4885 downward, we need argblock to point to the top of the block,
4888 2003-05-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4890 * c-decl.c (duplicate_decls): Test DECL for ERROR_MARK.
4892 * expr.c (expand_expr, case CONSTRUCTOR): Put into memory if
4893 constant and EXPAND_CONST_ADDRESS, not just EXPAND_INITIALIZER.
4895 2003-05-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4897 * m68hc11.c: Don't use the `0' flag for asm_fprintf specifiers.
4901 2003-05-22 Zack Weinberg <zack@codesourcery.com>
4904 * fixinc/inclhack.def (avoid_wchar_t_type): Add bypass
4905 expressions to prevent triggering on recent curses.h,
4906 linux/nls.h, or X11/Xlib.h.
4907 (stdio_va_list): Add _G_va_list to bypass pattern.
4908 (strict_ansi_not): Add bypass pattern for __SCO_VERSION__.
4909 * fixinc/fixincl.x: Regenerate.
4911 2003-05-22 Rekha Bhintade <rekhad@kpitcummins.com>
4913 * gcc/config/sh/sh.h (TARGET_SWITCHES): Display all the target
4914 switches when --target-help option is specified.
4916 2003-05-22 Eric Botcazou <ebotcazou@libertysurf.fr>
4919 * doc/install.texi (sparc-sun-solaris2.7): Document bootstrap
4920 failure with Sun assembler 5.0 Alpha 03/27/98.
4922 2003-05-21 Loren James Rittle <ljrittle@acm.org>
4924 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Add -D__sparcv9
4925 to match system compiler convention.
4927 2003-05-21 Danny Smith <dannysmith@users.sourceforge.net>
4929 * gthr-win32.h (__GTHREAD_HIDE_WIN32API): Test for nonzero
4930 value, not just if defined.
4931 Update copyright year.
4933 2003-05-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4936 * pa-hpux10.h (LINK_SPEC, LIB_SPEC): Move -L options for profiling
4937 directories from LIB_SPEC to LINK_SPEC. Emit warning if `-p' or `-pg'
4938 option is used without `-static'.
4939 * pa-hpux11.h (LINK_SPEC, LIB_SPEC): Likewise.
4940 * pa64-hpux.h (LINK_SPEC, LIB_SPEC): Likewise.
4942 2003-05-21 Bob Wilson <bob.wilson@acm.org>
4944 * config/xtensa/xtensa.h (MASK_SERIALIZE_VOLATILE,
4945 TARGET_SERIALIZE_VOLATILE): Delete.
4946 (MASK_CONST16, MASK_ABS, MASK_ADDX): Renumber flag bits.
4947 (TARGET_DEFAULT): Remove MASK_SERIALIZE_VOLATILE.
4948 (TARGET_SWITCHES): Remove "-mserialize-volatile" and
4949 "-mno-serialize-volatile".
4950 * config/xtensa/xtensa.c (print_operand): Remove checks of
4951 TARGET_SERIALIZE_VOLATILE.
4952 * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
4953 * doc/invoke.texi (Option Summary, Xtensa Options): Remove
4954 "-mserialize-volatile" and "-mno-serialize-volatile" options.
4956 2003-05-21 Nathan Sidwell <nathan@codesourcery.com>
4958 * c-parse.in (fndef): Set DECL_SOURCE_LINE and FILE earlier.
4959 (nested_function): Likewise.
4960 (notype_nested_function): Likewise.
4962 2003-05-21 Nick Clifton <nickc@redhat.com>
4964 * config/stormy16/stormy-abi: Update overflow type for
4965 R_XSTORMY16_16 reloc.
4967 2003-05-21 Nathan Sidwell <nathan@codesourcery.com>
4969 * c-common.h (enum rid): Remove RID_BOUNDED, RID_UNBOUNDED.
4970 * c-parse.in (reswords): Remove __bounded__ and __unbounded__.
4971 (rid_to_yy): Remove RID_BOUNDED, RID_UNBOUNDED slots.
4972 * print-tree.c (print_node): Remove ambient-boundedness.
4973 * tree.h (tree_common): Remove bounded_flag.
4974 (BOUNDED_INDIRECT_YPE_P, BOUNDED_POINTER_TYPE_P,
4975 BOUNDED_REFERENCE_TYPE_P, MAYBE_BOUNDED_INDIRECT_TYPE_P,
4976 MAYBE_BOUNDED_POINTER_TYPE_P, MAYBE_BOUNDED_REFERENCE_TYPE_P,
4977 TREE_BOUNDED, TYPE_MAIN_VARIANTS_PHYSICALLY_EQUAL_P,
4978 TYPE_MAIN_PHYSICAL_VARIANT, TYPE_BOUNDED, TYPE_QUAL_BOUNDED):
4980 (TYPE_QUALS): Remove BOUNDED.
4981 (TREE_EXPR_QUALS, TREE_FUNC_QUALS): Remove.
4982 (TYPE_BOUNDED_VALUE, TYPE_BOUNDED_BASE, TYPE_BOUNDED_EXTENT,
4983 TYPE_BOUNDED_SUBTYPE, TYPE_UNBOUNDED_VARIANT, TYPE_POINTER_DEPTH,
4984 TYPE_AMBIENT_BOUNDEDNESS, MAX_POINTER_DEPT,
4985 VA_LIST_POINTER_DEPTH): Remove.
4986 (struct tree_type): Remove pointer_depth.
4988 2003-05-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4990 * c-pretty-print.c (pp_c_integer_literal): Use
4991 HOST_WIDE_INT_PRINT_DOUBLE_HEX.
4993 2003-05-20 Roger Sayle <roger@eyesopen.com>
4994 Kazu Hirata <kazu@cs.umass.edu>
4995 Joern Rennecke <joern.rennecke@superh.com>
4997 * gcse.c (cprop_jump): Make use of REG_EQUAL notes on both
4998 setcc and jump, if they exist. If substituted instruction
4999 fails to validate, store current effort in a REG_EQUAL note.
5000 (cprop_insn): Don't attempt further substitutions if the
5001 current instruction has been deleted.
5002 (local_cprop_pass): Likewise.
5004 * jump.c (redirect_jump): Also update REG_EQUAL note, if
5005 one is attached to the jump instruction.
5006 (invert_jump): Delete REG_EQUAL note on jump, if one exists.
5008 2003-05-21 Danny Smith <dannysmith@users.sourceforge.net>
5011 * config/i386/winnt.c (i386_pe_encode_section_info): Enable
5014 2003-05-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5016 * genautomata.c (output_description, output_automaton_units,
5017 output_state_arcs): Add missing specifiers.
5019 2003-05-20 Bob Wilson <bob.wilson@acm.org>
5021 * config/xtensa/lib1funcs.asm: Avoid use of .Lfe* in .size directives.
5022 (do_abs, do_addx2, do_addx4, do_addx8): New assembler macros.
5023 (__mulsi3): Use do_addx* instead of ADDX* instructions. Formatting.
5024 (nsau): Rename to do_nsau. Provide alternate version for use when
5025 the NSAU instruction is available.
5026 (__udivsi3, __divsi3, __umodsi3, __modsi3): Use do_nsau macro.
5027 (__divsi3, __modsi3): Use do_abs macro instead of ABS instruction.
5028 * config/xtensa/xtensa-config.h: Update comments to match binutils.
5029 (XCHAL_HAVE_ABS, XCHAL_HAVE_ADDX): Define.
5030 * config/xtensa/xtensa.h (MASK_ABS, MASK_ADDX): Define.
5031 (TARGET_ABS, TARGET_ADDX): Define.
5032 (TARGET_DEFAULT): Conditionally add MASK_ABS and MASK_ADDX.
5033 (TARGET_SWITCHES): Add "abs", "no-abs", "addx", and "no-addx".
5034 * config/xtensa/xtensa.md (*addx2, *addx4, *addx8, *subx2, *subx4,
5035 *subx8): Set predicate condition to TARGET_ADDX.
5036 (abssi2): Set predicate condition to TARGET_ABS.
5037 * doc/invoke.texi (Option Summary): Document new "-mabs", "-mno-abs",
5038 "-maddx", and "-mno-addx" options.
5039 (Xtensa Options): Likewise. Also tag some opcode names with @code.
5041 2003-05-20 Kevin Ryde <user42@zip.com.au>
5042 Wolfgang Bangerth <bangerth@dealii.org>
5045 * doc/extend.texi: Put a warning into the documentation
5046 of attribute regparm.
5048 2003-05-20 Jason Merrill <jason@redhat.com>
5050 * tree.c (expr_last): New fn.
5051 * tree.h: Declare it.
5052 * objc/objc-act (expr_last): Rename to objc_expr_last.
5054 2003-05-20 J"orn Rennecke <joern.rennecke@superh.com>
5056 * sh.c (sh_register_move_cost): Add clase for moving between
5057 FP registers and MAC registers.
5059 2003-05-19 John David Anglin <dave.anglin@nrc-gnrc.gc.ca>
5061 * pa/milli64.S ($$mulI): Fix typo.
5063 2003-05-19 Matt Kraai <kraai@alumni.cmu.edu>
5065 * alias.c (nonlocal_mentioned_p, nonlocal_referenced_p)
5066 (nonlocal_set_p): Remove initial blank line.
5067 * dwarf2out.c (simple_type_size_in_bits): Likewise.
5068 * et-forest.c (et_forest_create): Likewise.
5069 * explow.c (stabilize): Likewise.
5070 * fix-header.c (write_lbrac): Likewise.
5071 * graph.c (start_fct, node_data): Likewise.
5072 * jump.c (only_sets_cc0_p, sets_cc0_p): Likewise.
5073 * rtlanal.c (global_reg_mentioned_p): Likewise.
5074 * tree.c (bit_position): Likewise.
5076 2003-05-19 Alexandre Oliva <aoliva@redhat.com>
5078 * config/mips/linux64.h (LIB_SPEC): Add missing -lc and correct
5079 -lthread to -lpthread.
5081 2003-05-19 Neil Booth <neil@daikokuya.co.uk>
5083 * c-opts.c (c_common_decode_option): Don't accept dollars
5084 as identifier characters in assembly.
5085 * doc/cpp.texi: Document this.
5087 2003-05-19 Seth Arnold <sarnold@wirex.com>
5088 Aldy Hernandez <aldyh@redhat.com>
5090 * config/rs6000/rs6000.c (rs6000_stack_info): Do not add
5093 2003-05-19 Aldy Hernandez <aldyh@redhat.com>
5095 * doc/tm.texi (function_arg): Fix typo.
5097 2003-05-19 Matt Austern <austern@apple.com>
5099 * c-opts.c (COMMAND_LINE_OPTIONS): Add -Winvalid-offsetof option.
5100 * c-common.h (warn_invalid_offsetof): Declare.
5101 * c-common.c (warn_invalid_offsetof): Define.
5102 * doc/invoke.texi: Document -Winvalid-offsetof.
5103 * testsuite/g++.dg/other/offsetof3.C: New.
5104 * testsuite/g++.dg/other/offsetof4.C: New.
5106 2003-05-19 Kevin B. Hendricks <kevin.hendricks@sympatico.ca>
5107 David Edelsohn <edelsohn@gnu.org>
5109 * config/rs6000/rs6000.c (rs6000_alignment_string,
5110 rs6000_alignment_flags): New variables.
5111 (rs6000_parse_alignment_option): New function.
5112 (rs6000_override_options): Call it.
5113 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -malign-XXX option.
5114 (MASK_ALIGN_POWER, MASK_ALIGN_NATURAL, TARGET_ALIGN_NATURAL): New
5116 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Always use COMPUTED
5117 natural alignment if TARGET_NATURAL_ALIGNMENT
5118 (ROUND_TYPE_ALIGN): Always use default record alignment if
5119 TAGET_NATURAL_ALIGNMENT.
5120 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Same
5121 (ROUND_TYPE_ALIGN): Same.
5122 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Same
5123 (ROUND_TYPE_ALIGN): Same.
5124 * doc/invoke.texi (Option Summary, PowerPC Options): Document
5127 2003-05-19 J"orn Rennecke <joern.rennecke@superh.com>
5129 * c-decl.c (finish_decl): When setting the DECL_ASSEMBLER_NAME
5130 of a function using ASMSPEC, prepend a star.
5132 2003-05-19 Jason Merrill <jason@redhat.com>
5134 * tree-inline.c (copy_body_r): Avoid generating &* during inline
5137 2003-05-19 Andrew Macleod <amacleod@redhat.com>
5139 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Do
5140 not mark assignments to the hard frame pointer as being stack
5142 (xstormy16_expand_epilogue): Mark adjustments to the stack
5143 pointer as being stack frame related.
5145 2003-05-19 Richard Sandiford <rsandifo@redhat.com>
5147 * config/mips/mips.h (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY,
5148 ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS): New macros.
5149 (PREDICATE_CODES): Add hilo_operand.
5150 * config/mips/mips.c (hilo_operand): New predicate.
5151 (mips_adjust_insn_length): Account for the number nops that might
5152 be needed to avoid hardware hazards.
5153 * config/mips/mips.md (dslot): Remove attribute.
5154 (hazard): New attribute.
5155 (can_delay): Use it. Check for calls, branches & jumps.
5156 (muldi3): Use the standard dmult pattern for mips16 code.
5157 (muldi3_internal, muldi3_internal2): Adjust conditions accordingly.
5159 2003-05-19 Richard Sandiford <rsandifo@redhat.com>
5161 * config/mips/mips-protos.h (final_prescan_insn,
5162 mips_count_memory_refs, mips_fill_delay_slot): Remove.
5163 * config/mips/mips.h (delay_type, dslots_load_total,
5164 dslots_load_filled, dslots_jump_total, dslots_jump_filled,
5165 dslots_number_nops, num_refs, mips_load_reg, mips_load_reg2,
5166 mips_load_reg3, mips_load_reg4): Remove.
5167 (MASK_STATS): Remove.
5168 (MASK_EXPLICIT_RELOCS): Reuse its value.
5169 (TARGET_STATS): Remove.
5170 (TARGET_SWITCHES): Turn -mstats and -mno-stats into no-ops.
5171 Warn that -mstats is now ignored.
5172 (FINAL_PRESCAN_INSN): Undefine.
5173 (DBR_OUTPUT_SEQEND): Remove handling of dslot statistics.
5174 (ASM_OUTPUT_REG_POP): Likewise.
5175 * config/mips/mips.c (dslots_load_total, dslots_load_filled,
5176 dslots_jump_total, dslots_jump_filled, dslots_number_nops, num_refs,
5177 mips_load_reg, mips_load_reg2, mips_load_reg3, mips_load_reg4,
5178 mips_fill_delay_slot, mips_count_memory_refs,
5179 final_prescan_insn): Remove.
5180 (output_block_move): Remove calls to mips_count_memory_refs.
5181 (print_operand): Remove printing of #nop for TARGET_STATS.
5182 (mips_output_function_epilogue): Remove TARGET_STATS code.
5183 Reorganize setting of fnnmae.
5184 * config/mips/mips.md: Remove handling of dslot statistics
5185 throughout file. Change all fcmp patterns into normal asm
5186 templates, removing calls to mips_fill_delay_slot.
5187 * doc/invoke.texi: Remove documentation of -mstats.
5189 2003-05-19 Richard Sandiford <rsandifo@redhat.com>
5191 * config/mips/mips.c (mips_class_max_nregs): Return the number of
5194 2003-05-19 Richard Sandiford <rsandifo@redhat.com>
5196 * config/mips/mips.c (override_options): Disable explicit
5197 relocs for old ABIs unless using gas.
5199 2003-05-18 Eric Christopher <echristo@redhat.com>
5201 * config/mips/mips.h: Remove definition of g_switch_value.
5203 2003-05-18 Matt Kraai <kraai@alumni.cmu.edu>
5205 * flags.h (g_switch_value): Change to an unsigned
5207 * toplev.c (g_switch_value): Likewise.
5209 * config/alpha/alpha.c (small_symbolic_operand): Remove
5210 g_switch_value cast.
5211 (alpha_in_small_data_p): Cast size to an unsigned
5214 * config/frv/frv.c (frv_in_small_data_p): Cast size to an
5215 unsigned HOST_WIDE_INT.
5216 * config/frv/frv.h (g_switch_value, g_switch_set): Remove.
5217 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Declare g_switch_set.
5219 * config/m32r/m32r.c (m32r_in_small_data_p): Cast size to an
5220 unsigned HOST_WIDE_INT.
5221 (m32r_asm_file_start): Use HOST_WIDE_INT_PRINT_UNSIGNED.
5222 * config/m32r/m32r.h (g_switch_value, g_switch_set): Remove.
5223 (ASM_OUTPUT_ALIGNED_COMMON): Declare g_switch_value.
5225 * config/rs6000/rs6000.c (rs6000_file_start): Use
5226 HOST_WIDE_INT_PRINT_UNSIGNED.
5227 (small_data_operand): Cast summand to unsigned HOST_WIDE_INT.
5228 (rs6000_elf_in_small_data_p): Cast size to unsigned
5230 * config/rs6000/sysv4.h (g_switch_value, g_switch_set):
5232 (SUBTARGET_OVERRIDE_OPTIONS): Declare g_switch_value and
5234 (ASM_OUTPUT_ALIGNED_LOCAL): Declare g_switch_value and remove
5235 g_switch_value cast.
5237 2003-05-18 Roger Sayle <roger@eyesopen.com>
5238 Zack Weinberg <zack@codesourcery.com>
5241 * builtins.c (expand_builtin_memcpy): Call force_operand on
5242 expressions and use simplify_gen_binary to create the addition.
5244 2003-05-18 Andreas Schwab <schwab@suse.de>
5246 * config/m68k/m68k.md: Use define_constants for unspec numbers.
5248 2003-05-18 Neil Booth <neil@daikokuya.co.uk>
5250 * config/sparc/sparc.h: Define sparc for now.
5251 2003-05-18 Nathanael Nerode <neroden@gcc.gnu.org>
5253 * config.gcc: Clear xm_file, md_file at the beginning of each pass.
5255 * config/stormy16/stormy16.h: Remove about 3000 lines of
5256 target-independent comments. Update copyright notice.
5258 * doc/collect2.texi: GNU CC -> GCC.
5259 * doc/headerdirs.texi: GNU CC -> GCC.
5261 2003-05-18 Gabriel Dos Reis <gdr@integrable-solutions.net>
5263 * hashtable.h (struct ht_identifier): Add data member "hash_value".
5264 * hashtable.c (ht_lookup): Use it when searching, remember.
5265 (ht_expand): Do not recompute.
5266 * tree.h (IDENTIFIER_HASH_VALUE): New macro.
5268 2003-05-18 Nathan Sidwell <nathan@codesourcery.com>
5270 * gcov-io.c (gcov_read_bytes): Fix fread thinko.
5272 2003-05-18 Neil Booth <neil@daikokuya.co.uk>
5274 * c-cppbuiltin.c (TARGET_OS_CPP_BUILTINS, TARGET_OBJFMT_CPP_BUILTINS):
5276 (c_cpp_builtins): Invoke TARGET_OBJFMT_CPP_BUILTINS().
5277 * defaults.h: Don't default TARGET_OS_CPP_BUILTINS here.
5278 * config/elfos.h (TARGET_OBJFMT_CPP_BUILTINS): Define __ELF__.
5279 * config/freebsd-spec.h, config/netbsd-elf.h, config/alpha/gnu.h,
5280 config/arm/linux-elf.h, config/arm/rtems-elf.h,
5281 config/arm/unknown-elf.h, config/cris/cris.h, config/cris/linux.h,
5282 config/h8300/elf.h, config/i370/linux.h, config/i386/beos-elf.h,
5283 config/i386/gnu.h, config/i386/linux.h, config/i386/linux64.h,
5284 config/i386/moss.h, config/i386/rtemself.h, config/ia64/ia64.h,
5285 config/m68k/rtemself.h, config/mcore/mcore-elf.h, config/mips/linux.h,
5286 config/pa/pa-linux.h, config/rs6000/linux.h, config/rs6000/linux64.h,
5287 config/rs6000/sysv4.h, config/rs6000/vxworks.h, config/s390/linux.h,
5288 config/sh/coff.h, config/sh/elf.h, config/sh/rtemself.h,
5289 config/sh/sh.h, config/sparc/linux.h, config/sparc/linux64.h,
5290 config/sparc/openbsd64.h, config/sparc/sp64-elf.h,
5291 config/sparc/sp86x-elf.h, config/xtensa/elf.h, config/xtensa/linux.h:
5292 Don't define __ELF__.
5293 * config/alpha.h, config/m68k/linux.h (TARGET_OBJFMT_CPP_BUILTINS):
5295 * doc/cpp.texi: Document __ELF__.
5296 * doc/tm.texi: Document TARGET_OBJFMT_CPP_BUILTINS. *
5298 2003-05-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5300 * builtins.c (validate_arglist): Eliminate libiberty VA_ macros,
5302 * c-errors.c (pedwarn_c99): Likewise.
5303 * c-format.c (status_warning): Likewise.
5304 * c-semantics.c (build_stmt): Likewise.
5305 * calls.c (emit_library_call, emit_library_call_value): Likewise.
5306 * collect2.c (notice, fatal_perror, fatal, error): Likewise.
5307 * cpperror.c (cpp_error, cpp_error_with_line): Likewise.
5308 * diagnostic.c (build_message_string, output_printf,
5309 output_verbatim, verbatim, inform, warning, pedwarn, error, sorry,
5310 fatal_error, internal_error, warning_with_decl, pedwarn_with_decl,
5311 error_with_decl, fnotice): Likewise.
5312 * dwarf2asm.c (dw2_asm_output_data, dw2_asm_output_delta,
5313 dw2_asm_output_offset, dw2_asm_output_pcrel, dw2_asm_output_addr,
5314 dw2_asm_output_addr_rtx, dw2_asm_output_nstring,
5315 dw2_asm_output_data_uleb128, dw2_asm_output_data_sleb128,
5316 dw2_asm_output_delta_uleb128, dw2_asm_output_delta_sleb128,
5317 dw2_asm_output_encoded_addr_rtx): Likewise.
5318 * emit-rtl.c (gen_rtx, gen_rtvec): Likewise.
5319 * errors.c (warning, error, fatal, internal_error): Likewise.
5320 * final.c (output_operand_lossage, asm_fprintf): Likewise.
5321 * fix-header.c (fatal): Likewise.
5322 * gcc.c (fatal, error, notice): Likewise.
5323 * gcov.c (fnotice): Likewise.
5324 * genattrtab.c (attr_rtx, attr_printf): Likewise.
5325 * gengtype.c (error_at_line, xasprintf, oprintf): Likewise.
5326 * gensupport.c (message_with_line): Likewise.
5327 * mips-tfile.c (fatal, error): Likewise.
5328 * protoize.c (notice): Likewise.
5329 * ra-debug.c (ra_debug_msg): Likewise.
5330 * read-rtl.c (fatal_with_file_and_line): Likewise.
5331 * rtl-error.c (error_for_asm, warning_for_asm): Likewise.
5332 * tree.c (build, build_nt, build_function_type_list): Likewise.
5334 2003-05-17 Neil Booth <neil@daikokuya.co.uk>
5336 * defaults.h (TARGET_CPU_CPP_BUILTINS, CPP_PREDEFINES): Remove.
5337 * gcc.c (cpp_predefines): Remove.
5338 (cpp_unique_options, do_spec_1): Remove handling of CPP_PREDEFINES.
5339 (static_specs): Remove predefines.
5340 * system.h: Poison CPP_PREDEFINES.
5341 * config/freebsd.h, config/openbsd.h, config/ptx4.h, config/svr3.h,
5342 config/svr4.h, doc/tm.texi: Remove references to CPP_PREDEFINES.
5344 2003-05-17 Neil Booth <neil@daikokuya.co.uk>
5346 * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68k-none.h,
5347 config/m68k/m68k.h, config/m68k/m68kemb.h, config/m68k/m68kv4.h,
5348 config/m68k/openbsd.h, config/m68k/rtemself.h: Remove CPP_PREDEFINES,
5349 use TARGET_OS_CPP_BUILTINS and TARGET_CPU_CPP_BUILTINS instead.
5351 2003-05-17 Neil Booth <neil@daikokuya.co.uk>
5354 * c-common.c, c-common.h (dollars_in_ident): Remove.
5355 * c-opts.c (DOLLARS_IN_IDENTIFIERS): Default to true.
5356 (c_common_init_options, c_common_decode_option): Set dollars_in_ident.
5357 * cpphash.h (warned_dollar): Rename warn_dollars.
5358 * cppinit.c (struct lang_flags, lang_defaults, cpp_set_lang)
5359 Permit dollars regardless of -std=.
5360 (post_options): Set warn_dollars.
5361 * cpplex.c (forms_identifier_p): Use warn_dollars.
5362 * config/darwin.h, config/alpha/vms.h, config/m68hc11/m68hc11.h:
5363 Remove redundant definitions of DOLLARS_IN_IDENTIFIERS.
5364 * doc/cpp.texi, doc/cppopts.texi, doc/invoke.texi, doc/tm.texi:
5365 Update documentation.
5367 2003-05-17 Andreas Schwab <schwab@suse.de>
5369 * config/m68k/m68k.c (m68k_output_function_prologue): Use
5370 HOST_WIDE_INT_PRINT_DEC for fprintf and %wd for asm_fprintf when
5371 formatting a HOST_WIDE_INT.
5372 (m68k_output_function_epilogue): Likewise.
5374 2003-05-17 Zack Weinberg <zack@codesourcery.com>
5376 * doc/install.texi: Remove information about desupported targets.
5378 2003-05-17 Andreas Schwab <schwab@suse.de>
5380 * config/m68k/coff.h: Remove support for Sun FPA and Sun SKY board.
5381 * config/m68k/linux.h: Likewise.
5382 * config/m68k/m68k-none.h: Likewise.
5383 * config/m68k/netbsd-elf.h: Likewise.
5384 * config/m68k/sgs.h: Likewise.
5385 * config/m68k/m68k.h: Likewise.
5386 * config/m68k/m68k.md: Likewise.
5387 * config/m68k/m68k.c: Likewise.
5388 * doc/md.texi (Machine Constraints): Remove Sun FPA specific
5390 * doc/invoke.texi (Option Summary): Remove -mfpa.
5391 (M680x0 Options): Likewise.
5393 2003-05-17 David Edelsohn <edelsohn@gnu.org>
5395 * rs6000.c (rs6000_function_value): Simplify REAL_TYPE logic.
5397 2003-05-17 Neil Booth <neil@daikokuya.co.uk>
5399 * config/sol2.h: Add TARGET_SUB_OS_CPP_BUILTINS.
5400 * config/sparc/liteelf.h, config/sparc/openbsd64.h,
5401 config/sparc/rtemself.h, config/sparc/sol2-64.h,
5402 config/sparc/sp64-elf.h, config/sparc/sp86x-elf.h:
5403 Update for use of TARGET_SUB_OS_CPP_BUILTINS.
5405 2003-05-17 Neil Booth <neil@daikokuya.co.uk>
5407 * i960/i960.h, i960/rtems.h: Use TARGET_OS_CPP_BUILTINS and
5408 TARGET_CPU_CPP_BUILTINS in preference to CPP_PREDEFINES.
5410 2003-05-17 Neil Booth <neil@daikokuya.co.uk>
5412 * config.gcc (sparc-*-sysv4*): Add sparc/sysv4-only.h.
5413 * sparc/aout.h, sparc/elf.h, sparc/freebsd.h, sparc/linux.h,
5414 sparc/linux64.h, sparc/lite.h, sparc/litecoff.h, sparc/liteelf.h,
5415 sparc/netbsd-elf.h, sparc/openbsd.h, sparc/openbsd64.h,
5416 sparc/pbd.h, sparc/rtemself.h, sparc/sol2-64.h, sparc/sol2-bi.h,
5417 sparc/sol2.h, sparc/sp64-elf.h, sparc/sp86-elf.h, sparc/sparc.h,
5419 * sparc/sysv4-only.h: New.
5421 2003-05-17 Alan Modra <amodra@bigpond.net.au>
5423 * function.c (assign_parms): Check for zero size args.
5425 2003-05-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5427 * cfgloopanal.c (test_for_iteration): Use string concatentation on
5428 HOST_WIDE_INT_PRINT_* format specifier to collapse multiple
5429 function calls into one.
5430 * dbxout.c (dbxout_symbol): Likewise.
5431 * defaults.h (ASM_OUTPUT_SIZE_DIRECTIVE): Likewise.
5432 * dwarf2asm.c (dw2_asm_output_data_uleb128,
5433 dw2_asm_output_data_sleb128): Likewise.
5434 * genrecog.c (debug_decision_2): Likewise.
5435 * loop.c (emit_prefetch_instructions): Likewise.
5436 * print-rtl.c (print_rtx): Likewise.
5437 * print-tree.c (print_node_brief, print_node): Likewise.
5438 * ra-debug.c (dump_igraph, dump_graph_cost,
5439 dump_static_insn_cost): Likewise.
5440 * ra-rewrite.c (dump_cost): Likewise.
5441 * sdbout.c (PUT_SDB_INT_VAL, PUT_SDB_SIZE): Likewise.
5442 * sreal.c (dump_sreal): Likewise.
5443 * unroll.c (unroll_loop, precondition_loop_p): Likewise.
5444 * varasm.c (assemble_vtable_entry): Likewise.
5446 * avr.c (avr_output_function_prologue,
5447 avr_output_function_epilogue, print_operand): Fix format specifier
5449 (init_cumulative_args): Mark parameter with ATTRIBUTE_UNUSED.
5450 * avr.h (FUNCTION_VALUE_REGNO_P): Fix signed/unsigned warnings.
5452 2003-05-16 Geoffrey Keating <geoffk@apple.com>
5454 * config/rs6000/rs6000.c (expand_block_move): Unify the TARGET_STRING
5455 and ! TARGET_STRING cases.
5457 * doc/cppopts.texi (-undef): Fix texinfo warning.
5459 * doc/cppopts.texi (-H): Document that -H works for PCH files too.
5460 * cppfiles.c (validate_pch): When -H is used, print some information
5461 about PCH files found.
5463 2003-05-16 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5465 * config/mips/t-elf: Remove obsolete rules adding dependencies on tm.h.
5466 * config/mips/t-isa3264, config/mips/t-r3900: Likewise.
5467 * config/mips/t-sr71k: Likewise.
5469 2003-05-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5471 * arc.c (arc_output_function_prologue,
5472 arc_output_function_epilogue): Fix format specifier warnings.
5473 * arc.h (LARGE_INT): Fix signed/unsigned warnings.
5475 * v850.c (print_operand): Fix format specifier warnings.
5477 * ns32k.c (ADJSP, ns32k_output_function_prologue): Fix format
5480 * mcore.c (mcore_print_operand_address, mcore_print_operand): Fix
5481 format specifier warnings.
5483 * ip2k.c (function_prologue, function_epilogue, print_operand):
5484 Fix format specifier warnings.
5485 * ip2k.md: Likewise.
5487 * i960.c (i960_output_function_prologue, i960_print_operand,
5488 i960_print_operand_addr): Fix format specifier warnings.
5490 * i370.c (ascebc, ebcasc): Wrap in macros controlling usage.
5491 (i370_output_function_prologue): Fix format specifier warnings.
5492 * i370.h (PRINT_OPERAND): Likewise.
5494 * fr30.c (fr30_print_operand): Fix format specifier warnings.
5496 * dsp16xx.c (print_operand_address): Fix format specifier warning.
5497 * dsp16xx.h (INCLUDE_DEFAULTS): Add missing initializers.
5499 * c4x.c (c4x_print_operand, c4x_print_operand_address): Fix format
5502 * alpha.c (print_operand_address, alpha_start_function,
5503 unicosmk_output_ssib): Use string concatentation on
5504 HOST_WIDE_INT_PRINT_* format specifier to collapse multiple
5505 function calls into one.
5506 * arm.c (arm_print_operand): Likewise.
5507 * cris.c (cris_asm_output_mi_thunk): Likewise.
5508 * frv.c (frv_asm_output_mi_thunk): Likewise.
5509 * ia64.c (ia64_print_operand, process_set): Likewise.
5510 * m68k.c (m68k_output_function_epilogue, m68k_output_mi_thunk):
5512 * mips/iris5gas.h (PUT_SDB_SIZE): Likewise.
5513 * mips.h (PUT_SDB_INT_VAL, PUT_SDB_SIZE): Likewise.
5514 * pa.c (output_div_insn, pa_asm_output_mi_thunk): Likewise.
5515 * pa.h (PRINT_OPERAND_ADDRESS): Likewise.
5516 * rs6000.c (rs6000_va_start, print_operand_address): Likewise.
5517 * s390.c (s390_assemble_integer): Likewise.
5518 * sparc.c (sparc_flat_function_prologue,
5519 sparc_flat_function_epilogue): Likewise.
5520 * stormy16.c (xstormy16_print_operand_address, xstormy16_print_operand): Likewise.
5521 * vax.c (vax_output_mi_thunk): Likewise.
5523 * frv.c (frv_print_operand_memory_reference): Fix format specifier
5525 (frv_rtx_costs): Mark parameter with ATTRIBUTE_UNUSED.
5527 * m68k.c (m68k_output_function_epilogue): Fix format specifier
5530 * stormy16-protos.h (xs_hi_general_operand,
5531 xs_hi_nonmemory_operand): Prototype.
5532 * stormy16.c (xstormy16_output_shift): Fix format specifier
5535 * cris.c: Fix format specifier warnings.
5537 2003-05-16 Nick Clifton <nickc@redhat.com>
5539 * config/arm/lib1funcs.asm: Fix typo: LSM instead of LSYM.
5541 2003-05-16 Wolfgang Bangerth <bangerth@dealii.org>
5543 * doc/bugreport.texi: Remove most of the of the preface of the
5546 2003-05-16 Jakub Jelinek <jakub@redhat.com>
5548 * config/ia64/unwind-ia64.c (uw_update_reg_address): Handle
5551 2003-05-15 Roger Sayle <roger@eyesopen.com>
5553 * config/alpha/alpha.h (ASM_OUTPUT_SKIP): Fix typo.
5555 2003-05-15 Eric Christopher <echristo@redhat.com>
5557 * cfgcleanup.c (merge_blocks): Fix return value.
5559 2003-05-15 Eric Christopher <echristo@redhat.com>
5561 * combine.c (expand_compound_operation): Make sure
5562 that zero_extend operation is profitable.
5564 2003-05-15 Richard Henderson <rth@redhat.com>
5566 * config/alpha/linux.h, config/alpha/linux-elf.h: Remove
5567 code protected by USE_GNULIBC_1.
5569 2003-05-15 Zack Weinberg <zack@codesourcery.com>
5571 * config.gcc: Purge all targets obsoleted in GCC 3.3. Also
5572 remove hppa*-*-mpeix* which could not be built, and prune
5573 files from tmake_file= or tm_file= lists that don't exist.
5575 * config/alpha/alpha-interix.h, config/alpha/alpha32.h
5576 * config/alpha/t-interix, config/arm/conix-elf.h
5577 * config/arm/t-arm-aout, config/arm/t-strongarm-coff
5578 * config/arm/unknown-elf-oabi.h, config/i386/win32.h
5579 * config/m68k/3b1.h, config/m68k/3b1g.h, config/m68k/amix.h
5580 * config/m68k/atari.h, config/m68k/ccur-GAS.h, config/m68k/crds.h
5581 * config/m68k/hp2bsd.h, config/m68k/hp3bsd.h
5582 * config/m68k/hp3bsd44.h, config/m68k/linux-aout.h
5583 * config/m68k/m68k-psos.h, config/m68k/mot3300.h
5584 * config/m68k/pbb.h, config/m68k/plexus.h, config/m68k/sun2.h
5585 * config/m68k/sun2o4.h, config/m68k/sun3.h, config/m68k/sun3mach.h
5586 * config/m68k/sun3n.h, config/m68k/sun3n3.h, config/m68k/sun3o3.h
5587 * config/m68k/t-mot3300, config/m68k/t-mot3300-gald
5588 * config/m68k/t-mot3300-gas, config/m68k/t-mot3300-gld
5589 * config/m68k/tower-as.h, config/m68k/tower.h
5590 * config/m88k/aout-dbx.h, config/m88k/m88k-aout.h
5591 * config/m88k/m88k-modes.def, config/m88k/m88k-move.sh
5592 * config/m88k/m88k-protos.h, config/m88k/m88k.c
5593 * config/m88k/m88k.h, config/m88k/m88k.md, config/m88k/openbsd.h
5594 * config/m88k/sysv4.h, config/m88k/t-luna, config/m88k/t-luna-gas
5595 * config/m88k/t-m88k, config/m88k/t-sysv4, config/mcore/gfloat.h
5596 * config/mips/rtems64.h, config/mips/sni-gas.h
5597 * config/mips/sni-svr4.h, config/mips/t-ecoff
5598 * config/mn10200/lib1funcs.asm, config/mn10200/mn10200-protos.h
5599 * config/mn10200/mn10200.c, config/mn10200/mn10200.h
5600 * config/mn10200/mn10200.md, config/mn10200/t-mn10200
5601 * config/pa/pa-hiux.h, config/pa/pa-hpux7.h, config/pa/pa-hpux9.h
5602 * config/pa/pa-oldas.h, config/pa/t-mpeix, config/psos.h
5603 * config/romp/romp-protos.h, config/romp/romp.c
5604 * config/romp/romp.h, config/romp/romp.md, config/rs6000/aix31.h
5605 * config/rs6000/aix3newas.h, config/rs6000/mach.h
5606 * config/sparc/bsd.h, config/sparc/hal.h
5607 * config/sparc/linux-aout.h, config/sparc/lynx-ng.h
5608 * config/sparc/lynx.h, config/sparc/netbsd.h
5609 * config/sparc/sp86x-aout.h, config/sparc/splet.h
5610 * config/sparc/sun4gas.h, config/sparc/sun4o3.h
5611 * config/sparc/sunos4.h, config/sparc/t-chorus-elf
5612 * config/sparc/t-halos, config/sparc/t-sparcbare
5613 * config/sparc/t-splet, config/sparc/t-sunos41
5614 * config/v850/rtems.h: Delete file.
5616 2003-05-15 Aldy Hernandez <aldyh@redhat.com>
5618 * config/rs6000/rs6000-protos.h (function_value): Protoize.
5620 * config/rs6000/rs6000.h (FUNCTION_VALUE): Call function.
5622 * config/rs6000/rs6000.c (rs6000_function_value): New.
5624 2003-05-15 Philip Blundell <philb@gnu.org>
5626 * config/arm/arm.c (arm_is_xscale): Rename to arm_arch_xscale.
5628 (arm_tune_xscale): New variable.
5629 (arm_override_options): Set it.
5630 (arm_adjust_cost): Use it in place of arm_arch_xscale.
5631 (arm_gen_load_multiple): Likewise.
5632 (arm_gen_store_multiple): Likewise.
5633 * config/arm/arm.md (is_xscale): Likewise.
5634 * config/arm/arm.h (arm_tune_xscale): Declare.
5636 2003-05-15 Philip Blundell <philb@gnu.org>
5639 * config/arm/arm.c (adjacent_mem_locations): Reject offsets
5640 involving invalid constants.
5642 2003-05-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5644 * pa.c (hppa_expand_prologue): Remove blockage.
5646 2003-05-15 Wolfgang Bangerth <bangerth@dealii.org>
5648 * doc/bugreport.texi: Remove most of the bug reporting
5649 instructions and merge them into bugs.html.
5651 2003-05-14 Matt Kraai <kraai@alumni.cmu.edu>
5653 * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Cast
5654 g_switch_value to unsigned HOST_WIDE_INT.
5656 2003-05-14 Eric Christopher <echristo@redhat.com>
5658 * combine.c: Fix header comments.
5659 (distribute_notes): Remove usage of elim_i1, elim_i2. Propagate
5660 to all calls and prototype.
5662 2003-05-14 Roger Sayle <roger@eyesopen.com>
5664 PR optimization/10764
5665 * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
5666 Add an explicit clobber to show that UNSPEC_FPATAN clobbers st(1).
5667 (*fyl2x_sfxf3, *fyl2x_dfxf3, *fyl2x_xf3, *fyl2x_tfxf3): Likewise,
5668 add an explicit clobber to show that UNSPEC_FYL2X clobbers st(1).
5669 (logsf2, logdf2, logxf2, logtf2): Update expander patterns to match
5670 the corresponding *fyl2x_?fxf3 instructions.
5672 2003-05-14 Bob Wilson <bob.wilson@acm.org>
5674 * config/xtensa/lib2funcs.S (TRAMPOLINE_SIZE): Change from 49 to 59.
5675 * config/xtensa/xtensa-config.h (XCHAL_HAVE_CONST16,
5676 XCHAL_HAVE_L32R): New.
5677 * config/xtensa/xtensa-protos.h (non_const_move_operand,
5678 xtensa_load_constant, xtensa_function_prologue,
5679 xtensa_function_epilogue): Delete prototypes.
5680 (xtensa_expand_prologue): New.
5681 * config/xtensa/xtensa.c (frame_size_const,
5682 TARGET_ASM_FUNCTION_PROLOGUE, TARGET_MACHINE_DEPENDENT_REORG,
5683 non_const_move_operand, xtensa_load_constant, xtensa_reorg,
5684 xtensa_function_prologue): Delete.
5685 (add_operand, xtensa_mem_offset): Formatting.
5686 (move_operand): If the const16 option is available, allow any SFmode
5687 and SImode constants.
5688 (xtensa_emit_move_sequence): Inline the former contents of
5689 xtensa_load_constant with modifications to handle the const16 option.
5690 (override_options): Add xtensa_char_to_class['W'] and set it to
5691 the general register class only if the const16 option is enabled.
5692 Fix formatting. Disallow PIC when using the const16 option.
5693 (print_operand): Reorganize to switch on "letter" instead of the
5694 RTL code. Add output_operand_lossage calls for invalid cases.
5695 Add support for 't' and 'b' letters.
5696 (xtensa_expand_prologue): New function to replace
5697 xtensa_function_prologue and xtensa_reorg.
5698 (xtensa_function_epilogue): Declare this as static. Delete code
5699 to print the retw.n or retw instruction.
5700 (xtensa_return_addr): Use A0_REG instead of 0.
5701 (xtensa_rtx_costs): Add costs for using the const16 option.
5702 * config/xtensa/xtensa.h (MASK_CONST16, TARGET_CONST16): New.
5703 (TARGET_DEFAULT): Add CONST16 if L32R instructions not available.
5704 (TARGET_SWITCHES): Add "const16" and "no-const16".
5705 (REG_CLASS_FROM_LETTER): Add comment about new 'W' letter.
5706 (EXTRA_CONSTRAINT): Change 'T' constraint to only apply when not
5707 using the const16 option.
5708 (TRAMPOLINE_TEMPLATE): Rewrite to avoid hardwired use of l32r insn.
5709 (TRAMPOLINE_SIZE): Change from 49 to 59.
5710 (INITIALIZE_TRAMPOLINE): Adjust offsets to match new trampoline.
5711 (GO_IF_LEGITIMATE_ADDRESS): Do not allow constant pool addresses
5712 when using the const16 option.
5713 (PREDICATE_CODES): Delete non_const_move_operand.
5714 * config/xtensa/xtensa.md (define_constants): Add A1_REG, A8_REG, and
5716 (movdi, movdf): If the source is a constant, always expand to a
5717 sequence of movsi insns.
5718 (movdi_internal, movdf_internal): Remove alternative using l32r insns.
5719 (movsi_internal, movsf_internal): Add alternative using const16 insns.
5720 (movsf): Add const16 support.
5721 (entry, prologue, epilogue): New.
5722 (set_frame_ptr): Add missing mode for unspec_volatile operation.
5723 Likewise for subsequent split pattern.
5724 * doc/invoke.texi (Option Summary, Xtensa Options): Document new
5725 "-mconst16" and "-mno-const16" options.
5727 2003-05-14 Richard Henderson <rth@redhat.com>
5729 * config/ia64/ia64.c (ia64_expand_load_address): Force destination
5730 to be DImode register. Merge load_symptr.
5731 * config/ia64/ia64.md (load_symptr): Remove.
5733 2003-05-14 Richard Henderson <rth@redhat.com>
5735 * rtl.h (TREE_CONSTANT_POOL_ADDRESS_P): Rename from
5736 DEFERRED_CONSTANT_P.
5737 * integrate.c (copy_rtx_and_substitute): Update use.
5738 * varasm.c (build_constant_desc): Set SYMBOL_REF_DECL
5739 to the copy generated.
5740 (maybe_output_constant_def_contents): Examine TREE_ASM_WRITTEN
5741 of the constant to see if we should emit.
5742 (mark_constant): Similarly.
5743 (output_constant_def_contents): Set TREE_ASM_WRITTEN.
5745 2003-05-14 David Edelsohn <edelsohn@gnu.org>
5747 * config/rs6000/rs6000.md (movsi_internal2): Use compare for self
5748 move record condition.
5749 (movdi_internal2): Same.
5751 2003-05-14 Nathan Sidwell <nathan@codesourcery.com>
5753 * gcov-io.h (gcov_write_bytes, gcov_read_bytes): Remove here.
5754 (GCOV_TAG_*) Force type to gcov_unsigned_t.
5755 (GCOV_CHECK, GCOV_CHECK_READING, GCOV_CHECK_WRITING): New.
5756 (struct gcov_var): Remove modified. Add start, length, offset,
5757 overread. Have buffer array for libgcov.
5758 (gcov_sync, gcov_seek): Definitions moved to gcov-io.c.
5759 (gcov_position, gcov_rewrite, gcov_is_eof): Adjust.
5760 * gcov-io.c (gcov_open): Set mode, do not read anything.
5761 (gcov_close): Write final block.
5762 (gcov_write_block, gcov_allocate): New.
5763 (gcov_write_bytes): Make static. Write or allocate buffer.
5764 (gcov_write_unsigned, gcov_write_counter): Buffer can never be
5766 (gcov_write_string): Adjust.
5768 (gcov_write_length): Adjust. Flush the block.
5769 (gcov_write_tag_length): Buffer can never be null.
5770 (gcov_read_bytes): Make static. Read in block.
5771 (gcov_sync): Moved here. Adjust.
5772 (gcov_seek): Moved here. Adjust.
5773 * coverage.c (read_counts_file): Adjust.
5774 * gcov-dump.c (print_prefix): Add position parameter.
5775 (flag_dump_positions): New flag.
5776 (options, main, print_usage): Add it.
5777 (dump_file, tag_blocks, tag_arcs, tag_lines, tag_counters,
5778 tag_summary): Adjust.
5779 * gcov.c (read_graph_file, read_count_file): Adjust.
5780 * libgcov.c (gcov_exit): Adjust.
5782 * Makefile.in (LIBGCC_DEPS): Use $(srcdir) on gcov files
5783 (libgcov.a): Depend on libgcc.a.
5784 (gcov.o, gcov-dump.o): Add gcov-io.c.
5785 * mklibgcc.in (libgcov_c_dep): Use $(srcdir).
5787 * loop.c (check_dbra_loop): Factor common test.
5789 2003-05-14 Ben Elliston <bje@wasabisystems.com>
5791 * doc/md.texi (Automaton pipeline description): Grammar fixes.
5793 2003-05-14 Richard Sandiford <rsandifo@redhat.com>
5795 * target-def.h (TARGET_MACHINE_DEPENDENT_REORG): Define.
5796 (TARGET_INITIALIZER): Include it.
5797 * target.h (struct gcc_target): Add machine_dependent_reorg field.
5798 * toplev.c (rest_of_compilation): Use targetm.machine_dependent_reorg.
5799 * system.h: Poison MACHINE_DEPENDENT_REORG.
5801 * config/alpha/alpha-protos.h (alpha_reorg): Remove declaration.
5802 * config/alpha/alpha.h (MACHINE_DEPENDENT_REORG): Remove.
5803 * config/alpha/alpha.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
5804 (alpha_handle_trap_shadows): Remove "first insn" parameter.
5805 (alpha_align_insns): Likewise.
5806 (alpha_reorg): Likewise. Make static. Update calls to above
5809 * config/arm/arm-protos.h (arm_reorg): Remove declaration.
5810 * config/arm/arm.h (MACHINE_DEPENDENT_REORG): Remove.
5811 * config/arm/arm.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
5812 (arm_reorg): Remove parameter. Make static.
5814 * config/avr/avr-protos.h (machine_dependent_reorg): Remove.
5815 * config/avr/avr.h (MACHINE_DEPENDENT_REORG): Remove.
5816 * config/avr/avr.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
5817 (avr_reorg): Renamed from machine_dependent_reorg. Make static.
5820 * config/c4x/c4x-protos.h (c4x_process_after_reload): Remove.
5821 * config/c4x/c4x.h (MACHINE_DEPENDENT_REORG): Remove.
5822 * config/c4x/c4x.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
5823 (c4x_reorg): Renamed from c4x_process_after_reload. Make static.
5826 * config/d30v/d30v-protos.h (d30v_machine_dependent_reorg): Remove.
5827 * config/d30v/d30v.h (MACHINE_DEPENDENT_REORG): Remove.
5828 * config/d30v/d30v.c (d30v_machine_dependent_reorg): Remove.
5830 * config/frv/frv-protos.h (frv_machine_dependent_reorg): Remove.
5831 * config/frv/frv.c: Remove orphaned comment.
5833 * config/i386/i386-protos.h (x86_machine_dependent_reorg): Remove.
5834 * config/i386/i386.h (MACHINE_DEPENDENT_REORG): Remove.
5835 * config/i386/i386.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
5836 (ix86_reorg): Renamed from x86_machine_dependent_reorg. Make static.
5839 * config/ia64/ia64-protos.h (ia64_reorg): Remove declaration.
5840 * config/ia64/ia64.h (MACHINE_DEPENDENT_REORG): Remove.
5841 * config/ia64/ia64.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
5842 (emit_insn_group_barriers): Remove "first insn" parameter.
5843 (emit_all_insn_group_barriers): Likewise.
5844 (ia64_reorg): Likewise. Make static. Update calls to above functions.
5845 (ia64_output_mi_thunk): Update call to emit_all_insn_group_barriers.
5847 * config/ip2k/ip2k-protos.h (machine_dependent_reorg): Remove.
5848 * config/ip2k/ip2k.h (MACHINE_DEPENDENT_REORG): Remove.
5849 * config/ip2k/ip2k.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
5850 (ip2k_reorg): Renamed from machine_dependent_reorg. Make static.
5853 * config/m68hc11/m68hc11-protos.h (m68hc11_reorg): Remove declaration.
5854 * config/m68hc11/m68hc11.h (MACHINE_DEPENDENT_REORG): Remove.
5855 * config/m68hc11/m68hc11.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
5856 (m68hc11_reorg): Make static. Remove parameter.
5858 * config/mcore/mcore-protos.h (mcore_dependent_reorg): Remove.
5859 * config/mcore/mcore.h (MACHINE_DEPENDENT_REORG): Remove.
5860 * config/mcore/mcore.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
5861 (conditionalize_optimization): Remove parameter.
5862 (mcore_reorg): Renamed from mcore_dependent_reorg. Remove parameter.
5863 Make static. Update call to conditionalize_optimization.
5865 * config/mips/mips-protos.h (machine_dependent_reorg): Remove.
5866 * config/mips/mips.h (MACHINE_DEPENDENT_REORG): Remove.
5867 * config/mips/mips.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
5868 (mips_reorg): Renamed from machine_dependent_reorg. Remove parameter.
5871 * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg): Remove.
5872 * config/mmix/mmix.h (MACHINE_DEPENDENT_REORG): Remove.
5873 * config/mmix/mmix.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
5874 (mmix_reorg): Renamed from mmix_machine_dependent_reorg. Make static.
5877 * config/pa/pa-protos.h (pa_reorg): Remove declaration.
5878 * config/pa/pa.h (MACHINE_DEPENDENT_REORG): Remove.
5879 * config/pa/pa.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
5880 (pa_combine_instructions): Remove "first insn" parameter.
5881 (remove_useless_addtr_insns): Likewise.
5882 (pa_reorg): Likewise. Make static. Update calls to above functions.
5884 * config/rs6000/rs6000.h (MACHINE_DEPENDENT_REORG): Remove
5885 commented-out definition.
5887 * config/s390/s390-protos.h (s390_machine_dependent_reorg): Remove.
5888 * config/s390/s390.h (MACHINE_DEPENDENT_REORG): Remove.
5889 * config/s390/s390.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
5890 (s390_reorg): Renamed from s390_machine_dependent_reorg. Make static.
5893 * config/sh/sh-protos.h (machine_dependent_reorg): Remove.
5894 * config/sh/sh.h (MACHINE_DEPENDENT_REORG): Remove.
5895 * config/sh/sh.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
5896 (sh_reorg): Renamed from machine_dependent_reorg. Make static.
5898 (sh_output_mi_thunk): Call sh_reorg directly.
5899 * config/sh/sh.md: Update comment.
5901 * config/stormy16/stormy16.h (MACHINE_DEPENDENT_REORG): Remove
5902 commented-out definition.
5904 * config/v850/v850-protos.h (v850_reorg): Remove declaration.
5905 * config/v850/v850.h (MACHINE_DEPENDENT_REORG): Remove.
5906 * config/v850/v850.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
5907 (v850_reorg): Make static. Remove parameter.
5909 * config/xtensa/xtensa-protos.h (xtensa_reorg): Remove declaration.
5910 * config/xtensa/xtensa.h (MACHINE_DEPENDENT_REORG): Remove.
5911 * config/xtensa/xtensa.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
5912 (xtensa_reorg): Make static. Remove parameter.
5914 * doc/tm.texi (MACHINE_DEPENDENT_REORG): Remove.
5915 (TARGET_MACHINE_DEPENDENT_REORG): Document.
5917 2003-05-13 Richard Henderson <rth@redhat.com>
5919 * c-decl.c (duplicate_decls): Re-invoke make_decl_rtl if
5920 the old decl had instantiated DECL_RTL.
5922 2003-05-13 Mike Stump <mrs@apple.com>
5924 * doc/invoke.texi (Option Summary): Kill off documentation for -$.
5926 2003-05-13 Janis Johnson <janis187@us.ibm.com>
5928 * config/rs6000/sysv4.h (OUTPUT_ASM_ALIGNED_LOCAL): Expect
5929 HOST_WIDE_INT argument.
5931 2003-05-13 Jason Merrill <jason@redhat.com>
5933 * tree.h (STRIP_MAIN_TYPE_NOPS): New macro.
5935 * tree.c (iterative_hash_expr): New fn.
5937 * c-semantics.c (emit_local_var): Don't mess with temp slots if
5938 there's no initializer.
5940 2003-05-13 Richard Sandiford <rsandifo@redhat.com>
5942 * final.c (final_scan_insn): Apply the effects of frame-related
5943 delay slot insns before emitting a delayed branch.
5945 2003-05-13 Nick Clifton <nickc@redhat.com>
5947 * config/mcore/mcore.md (jump): Use emit_jump_insn.
5949 2003-05-13 Ulrich Weigand <uweigand@de.ibm.com>
5951 * config/s390/s390.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Second
5952 parameter of ASM_OUTPUT_SKIP must have type unsigned HOST_WIDE_INT.
5954 2003-05-12 DJ Delorie <dj@redhat.com>
5956 * expr.c (move_by_pieces): Honor the alignment of TO and FROM.
5957 (emit_push_insn): Don't use push when the source alignment is less
5958 than the stack's push rounding.
5960 2003-05-13 Zack Weinberg <zack@codesourcery.com>
5962 * diagnostic.c (output_format): Add support for %m.
5963 (output_printf, output_verbatim, diagnostic_set_info,
5964 verbatim): Set err_no field of the text_info structure being
5966 (fatal_io_error): Delete function.
5967 * diagnostic.h (text_info): Add err_no field.
5968 * toplev.h (fatal_io_error): Delete prototype.
5970 * c-opts.c, c-pch.c, dwarfout.c, ggc-common.c, ggc-page.c, graph.c
5971 * toplev.c, config/mips/mips.c, config/rs6000/host-darwin.c
5972 * objc/objc-act.c: Replace all calls to fatal_io_error with
5973 calls to fatal_error; add ": %m" to the end of all the affected
5976 2003-05-13 Zack Weinberg <zack@codesourcery.com>
5978 * varasm.c (notice_rtl_inlining_of_deferred_constant): New function.
5979 * rtl.h: Prototype it.
5980 * integrate.c (copy_rtx_and_substitute <SYMBOL_REF>): Call it
5983 2003-05-13 Ulrich Weigand <uweigand@de.ibm.com>
5985 * config/s390/s390.md ("*iordi3_oi"): Do not mark commutative.
5986 ("*iorsi3_oi"): Likewise.
5988 2003-05-13 Richard Earnshaw <rearnsha@arm.com>
5990 * arm.md (compare_scc): Use shorter sequence for EQ case.
5991 (ior_scc_scc_cmp, and_scc_scc_cmp): New insn-and-split patterns.
5992 (and_scc_scc): Ensure split only applies when there is a dominance
5994 (and_scc_scc_nodom): New insn-and-split pattern.
5996 2003-05-13 Richard Sandiford <rsandifo@redhat.com>
5998 * unwind-dw2.c (uw_init_context_1): Don't pass &outer_cfa directly
5999 to _Unwind_SetGRPtr().
6001 2003-05-13 Michael Eager <eager@mvista.com>
6003 * Makefile.in: Initialize program_transform_cross_name from
6004 @program_transform_name@ instead of target_alias.
6006 2003-05-12 Janis Johnson <janis187@us.ibm.com>
6007 Alan Modra <amodra@bigpond.net.au>
6008 Jakub Jelinek <jakub@redhat.com>
6010 * configure.in (HAVE_AS_TLS): Add powerpc and powerpc64 tests.
6011 * configure: Rebuild.
6012 * config/rs6000/rs6000-protos.h: Update.
6013 * config/rs6000/rs6000.c (rs6000_tls_size): New.
6014 (rs6000_tls_size_string): New.
6015 (rs6000_parse_tls_size_option): New.
6016 (rs6000_legitimize_tls_address): New.
6017 (rs6000_tls_get_addr): New.
6018 (rs6000_got_sym): New.
6019 (rs6000_tls_symbol_ref): New.
6020 (rs6000_tls_symbol_ref_1): New.
6021 (rs6000_get_some_local_dynamic_name): New.
6022 (rs6000_get_some_local_dynamic_name_1): New.
6023 (TARGET_HAVE_TLS): New.
6024 (TARGET_CANNOT_FORCE_CONST_MEM): New.
6025 (rs6000_override_options): Handle -mtls-size option.
6026 (constant_pool_expr_1): Handle TLS symbols.
6027 (rs6000_legitimize_address): Handle TLS symbols.
6028 (rs6000_tls_referenced_p): New.
6029 (rs6000_legitimate_address): Handle TLS symbols.
6030 (rs6000_emit_move): Handle TLS symbols.
6031 (print_operand): Handle TLS symbols.
6032 (uses_TOC): Handle TLS symbols.
6033 (rs6000_emit_prologue): Use symbol for unspec constant.
6034 * config/rs6000/rs6000.h (HAVE_AS_TLS): New.
6035 (some_ld_name): New.
6036 (LEGITIMATE_CONSTANT_P): Handle TLS symbols.
6037 (PRINT_OPERAND_PUNCT_VALID_P): Handle TLS symbols.
6038 (PREDICATE_CODES): Add rs6000_tls_symbol_ref.
6039 * config/rs6000/rs6000.md (load_toc_v4_PIC_1, load_toc_v4_PIC_1b):
6041 (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64, tls_dtprel_32,
6042 tls_dtprel_64, tls_dtprel_ha_32, tls_dtprel_ha_64, tls_dtprel_lo_32,
6043 tls_dtprel_lo_64, tls_got_dtprel_32, tls_got_dtprel_64, tls_tprel_32,
6044 tls_tprel_64, tls_tprel_ha_32, tls_tprel_ha_64, tls_tprel_lo_32,
6045 tls_tprel_lo_64, tls_got_tprel_32, tls_got_tprel_64, tls_tls_32,
6047 * config/rs6000/sysv4.h (SUBTARGET_OPTIONS): Add tls_size.
6049 2003-05-12 Neil Booth <neil@cat.daikokuya.co.uk>
6051 * Makefile.in (stage2_build, stage3_build, stage4_build):
6052 Set BUILD_CC to the same as CC.
6054 2003-05-12 Neil Booth <neil@daikokuya.co.uk>
6056 * alloc-pool.c (last_id): Put in ENABLE_CHECKING guards.
6058 2003-05-12 Andreas Schwab <schwab@suse.de>
6060 * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Mark 'exp'
6062 (bundling): Initialize 'pos'.
6063 (ia64_expand_builtin): Initialize 'rmode'.
6065 2003-05-12 David Edelsohn <edelsohn@gnu.org>
6067 * config/rs6000/xcoff.h (ASM_OUTPUT_SKIP): Accept HOST_WIDE_INT.
6068 (ASM_OUTPUT_ALIGNED_COMMON): Same.
6069 (ASM_OUTPUT_LOCAL): Same.
6071 Mon May 12 21:53:29 CEST 2003 Jan Hubicka <jh@suse.cz>
6073 * varasm.c (output_constant): Fix underflow.
6075 2003-05-12 Mark Mitchell <mark@codesourcery.com>
6078 * configure.in: Correct detection of GNU ld version number.
6079 * configure: Regenerated.
6081 2003-05-12 Zack Weinberg <zack@codesourcery.com>
6083 * diagnostic.c (diagnostic_for_decl): Take a
6084 diagnostic_context argument. Restructure to be consistent
6085 with diagnostic_report_diagnostic.
6086 (diagnostic_count_diagnostic): Now static. Take a
6087 diagnostic_info argument, not just a diagnostic_t. Some code
6088 moved here from internal_error. Move a case label for
6090 (diagnostic_action_after_output): New function. Code moved
6091 here from internal_error and fatal_error.
6092 (bug_report_request): New #define so that this text appears in
6094 (diagnostic_report_diagnostic): Update to match changes to
6095 diagnostic_count_diagnostic. Call diagnostic_action_after_output.
6096 (diagnostic_set_info): Call gettext here.
6098 (pedwarn): Update comment. Don't call gettext here.
6099 (sorry): Use report_diagnostic. Don't call gettext here.
6100 (fatal_error): Remove final fnotice and exit, but call
6101 real_abort to prevent warnings about noreturn function returning.
6102 (internal_error): Likewise. Don't do ICE suppression here nor
6103 call context->internal_error.
6104 (warning_with_decl): Suppress for decls in system headers.
6105 Adjust call to diagnostic_for_decl.
6106 (pedwarn_with_decl): Likewise.
6107 (error_with_decl): Adjust call to diagnostic_for_decl.
6108 (error_recursion): Use bug_report_request.
6110 * diagnostic.h: Remove prototype of diagnostic_count_diagnostic.
6111 * objc/objc-act.c (error_with_ivar, warn_with_method): Don't call
6112 diagnostic_count_diagnostic.
6114 2003-05-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6116 * pa64-hpux.h (ASM_OUTPUT_ALIGNED_COMMON): Correct last patch.
6118 Mon May 12 15:57:54 CEST 2003 Jan Hubicka <jh@suse.cz>
6120 * rs6000/darwin.h (ASM_OUTPUT_COMMON): Accept HOST_WIDE_INT
6121 * mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Fix warning.
6122 * mips/mips.h (ASM_OUTPUT_SKIP): Fix typo in the previous patch.
6124 2003-05-12 Roger Sayle <roger@eyesopen.com>
6126 * doc/rtl.texi: Document zero_extract as a valid destination
6129 2003-05-12 Richard Earnshaw <rearnsha@arm.com>
6131 * arm/lib1funcs.asm (LSYM): Define -- on ELF prefix a local symbol with
6132 '.'. Change all local symbol definitions and references to use LSYM.
6134 Mon May 12 11:32:53 CEST 2003 Jan Hubicka <jh@suse.cz>
6136 * expr.h (assemble_static_space): Update prototype.
6137 * output.h (assemble_zeros, output_constant): Likewise.
6138 * elfos.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON): Make it 64bit clean
6139 * alpha.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASK_OUTPUT_LOCAL): Make
6141 * elf.h (ASM_OTUPUT_SKIP): Likewise.
6142 * unicosmk.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMM): Likewise.
6143 * arm.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
6144 Expect HOST_WIDE_INT operand.
6145 * aout.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
6146 Expect HOST_WIDE_INT operand.
6147 * unknown-elf.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
6148 Expect HOST_WIDE_INT operand.
6149 * avr.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_SKIP): Expect
6150 HOST_WIDE_INT operand.
6151 * c4x.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP,
6152 ASM_OUTPUT_BSS): Expect HOST_WIDE_INT operand.
6153 * aout.h (ASM_OTUPUT_SKIP): Likewise.
6154 * cris.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
6155 * darwin.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_COMMON): Likewise.
6156 * dsp16xx.h (ASM_OTUPUT_SKIP): Likewise.
6157 * frv.h (ASM_OTUPUT_SKIP): Likewise.
6158 * h8300.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_LOCAL): Likewise.
6159 * 370.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
6162 * att.h (ASM_OUTPUT_SKIP): Expect HOST_WIDE_INT operand.
6163 * bsd.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
6164 Make it 64bit clean.
6165 * darwin.h (ASM_OUTPUT_SKIP): Make it 64bit clean..
6166 * sco5.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Expect
6167 HOST_WIDE_INT operand
6168 * svr3gas.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
6169 Expect HOST_WIDE_INT operand
6170 * sysv3.h (ASM_OUTPUT_SKIP): Expect HOST_WIDE_INT operand
6171 * i960.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON,
6172 ASM_OUTPUT_ALIGNED_LOCAL): Expect HOST_WIDE_INT operand
6173 * ip2k.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
6175 * m32r.h (ASM_OUTPUT_COMMON): Likewise.
6176 * 3b1.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
6178 * amix.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
6179 * crds.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
6180 * hp320.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
6181 ASM_OUTPUT_SKIP): Likewise.
6182 * m68k.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
6184 * m68kelf.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
6185 ASM_OUTPUT_SKIP): Likewise.
6186 * m68kv4.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
6187 ASM_OUTPUT_SKIP): Likewise.
6188 * mot3300.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP): Likewise.
6189 * netbsd-elf.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON,
6190 ASM_OUTPUT_SKIP): Likewise.
6191 * sgs.h (ASM_OUTPUT_SKIP): Likewise.
6192 * tower-as.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON,
6193 ASM_OUTPUT_SKIP): Likewise.
6194 * m88k.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON, ASM_OUTPUT_SKIP):
6196 * mcore.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_BSS, ASM_OUTPUT_SKIP): Likewise.
6197 * iris.h (ASM_OUTPUT_LOCAL): Likewise.
6198 * mips.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP): Likewise.
6199 * ns32k.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
6200 ASM_OUTPUT_SKIP): Make it 64bit clean.
6201 * pa-pro-end.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_ALIGNED_LOCAL):
6202 Make it 64bit clean.
6203 * pa.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_ALIGNED_LOCAL,
6204 ASM_OUTPUT_SKIP): Make it 64bit clean.
6205 * hpux.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_ALIGNED_LOCAL): Make it
6207 * romp.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON): Expect
6208 HOST_WIDE_INT argument
6209 * s390.h (ASM_OUTPUT_SKIP): Expect HOST_WIDE_INT argument.
6210 * sh.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON): Expect
6211 HOST_WIDE_INT argument
6212 * sol2.h (ASM_OUTPUT_SKIP): HOST_WIDE_INT argument
6213 * sparc.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON): HOST_WIDE_INT argument
6214 * svr3.h (ASM_OUTPUT_SKIP): HOST_WIDE_INT argument
6215 * vax.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
6216 HOST_WIDE_INT argument
6217 * vaxv.h (ASM_OUTPUT_LOCAL): HOST_WIDE_INT argument
6218 * xtensa.h (ASM_OUTPUT_LOCAL): HOST_WIDE_INT argument
6219 * varasm.c (asm_output_bss, asm_output_aligned_bss,
6220 asm_emit_uninitialized, assemble_zeros, assemble_static_space):
6221 HOST_WIDE_INT argument
6223 2003-05-10 Steven Bosscher <steven@gcc.gnu.org>
6225 * cgraphunit.c (cgraph_create_edges): Drop walk_tree in
6226 favor of walk_tree_without_duplicates. Add comments.
6228 2003-05-12 Josef Zlomek <zlomekj@suse.cz>
6230 * alloc-pool.h (ALLOC_POOL_ID_TYPE): New type.
6231 (struct alloc_pool_def): New element 'id'.
6232 * alloc-pool.c (fancy_abort): Extern function prototype.
6233 (abort): Macro which uses fancy_abort.
6234 (struct allocation_object_def): New structure.
6235 (ALLOCATION_OBJECT_PTR_FROM_USER_PTR): New macro.
6236 (USER_PTR_FROM_ALLOCATION_OBJECT_PTR): New macro.
6237 (last_id): New variable.
6238 (create_alloc_pool): Add the offset of u.data to size of element,
6239 increase and use last_id.
6240 (free_alloc_pool): Do the checking only when ENABLE_CHECKING.
6241 (pool_alloc): Likewise. Set ID for elements.
6242 (pool_free): Check whether the PTR was allocated from POOL.
6244 2003-05-11 Richard Henderson <rth@redhat.com>
6247 * c-decl.c: Include hashtab.h.
6248 (detect_field_duplicates): New.
6249 (finish_struct): Use it.
6250 * Makefile.in (c-decl.o): Update.
6251 * c-parse.in (structsp_attr): Nreverse component_decl_list results.
6252 (component_decl_list, component_decl_list2,
6253 components, components_notype): Build list in reverse order.
6254 (enumlist): Clarify docs. Use TREE_CHAIN not chainon.
6256 * tree.c (chainon): Special case op2 null as well.
6259 2003-05-11 Roger Sayle <roger@eyesopen.com>
6261 * config/i386/i386.md (logsf2, logdf2, logxf2, logdf2): New patterns
6262 to implement log, logf and logl built-ins as inline x87 intrinsics.
6263 (UNSPEC_FYL2X): New unspec to represent x87's "fyl2x" instruction.
6264 (*fyl2x_sfxf3, *fyl2x_dfxf3, *fyl2x_xf3, *fyl2x_tfxf3): New insn
6265 patterns for x87's "fyl2x" instruction, used by log?f2 patterns.
6267 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FYL2X like
6268 UNSPEC_FPATAN, i.e. replaces two stack operands with single result.
6270 2003-05-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6272 * Makefile.in (out_object_file): Don't set -Wno-error for ${cpu}.o.
6274 * sparc.c (print_operand): Fix uninitialized warning.
6276 2003-05-12 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6278 * cfgloopanal.c (num_loop_insns, average_num_loop_insns): Count only
6280 * loop-unroll.c (unroll_loop_runtime_iterations): Remove superfluous
6283 2003-05-11 Neil Booth <neil@cat.daikokuya.co.uk>
6285 * doc/cpp.texi: Fix typos.
6287 2003-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6289 * config/s390/s390.c (s390_function_arg_float): New function.
6290 (s390_function_arg_pass_by_reference): Use it.
6291 (s390_function_arg_advance): Likewise.
6292 (s390_function_arg): Likewise.
6293 (s390_va_arg): Likewise
6295 2003-05-11 Nathan Sidwell <nathan@codesourcery.com>
6297 * coverage.h (coverage_counter_alloc): New function.
6298 * function.h (struct function): Remove arc_profile flag.
6299 * coverage.c (fn_ident): Remove.
6300 (fn_b_ctrs, no_coverage): New.
6301 (get_coverage_counts): Use current_function_funcdef_no.
6302 (coverage_counter_alloc): New.
6303 (coverage_counter_ref): Adjust.
6304 (coverage_begin_output): Check no_coverage. Use
6305 current_function_funcdef_no.
6306 (coverage_end_function): Likewise.
6307 (create_coverage): Set no_coverage. Set DECL_UNINLINEABLE rather
6308 than clearing flag_inline_functions. Do not clear arc_profile
6310 * function.c (prepare_function_start): Do not set arc_profile
6312 * profile.c (instrument_edges): Return number of instrumented
6313 edges. Use a for loop.
6314 (branch_prob): Call coverage_counter_alloc. Make BB_TO_GCOV_INDEX
6315 local to here and simplify. Use profile_arc_flag not arc_profile
6317 (find_spanning_tree): Reformat.
6318 * toplev.c (rest_of_compilation): Use profile_arc_flags and
6319 flag_test_coverage rather than arc_profile flag.
6321 2003-05-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
6323 * doc/invoke.texi (Wctor-dtor-privacy): Update documentation.
6325 2003-05-11 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6327 * varasm.c (copy_constant, case VIEW_CONVERT_EXPR): New case.
6329 2003-05-11 Bruno Haible <bruno@clisp.org>
6331 * cppfiles.c (find_or_create_entry): Preserve errno.
6333 2003-05-11 Neil Booth <neil@cat.daikokuya.co.uk>
6335 * c-cppbuiltin.c (c_cpp_builtins): Move __STDC_HOSTED__ into
6336 cpplib as it's a Standard Predefined Macro.
6337 * c-opts.c (finish_options): Pass flag_hosted to cpp_init_builtins.
6338 * cppinit.c (_cpp_init_builtins): Take HOSTED. Define
6339 __STDC_HOSTED__ appropriately.
6340 * cpplib.h (_cpp_init_builtins): Update.
6341 * fix-header.c (read_scan_file): Update.
6342 * doc/cpp.texi, doc/cppopts.texi: Update documentation.
6344 2003-05-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
6348 * c-opts.c (c_common_decode_option): Don't set
6349 warn_ctor_dtor_privacy wen -Wall.
6350 * c-common.c (warn_ctor_dtor_privacy): Don't turn on by default.
6352 2003-05-10 Alexandre Oliva <aoliva@redhat.com>
6354 * reload1.c (reload_cse_move2add): Revert part of my 2003-05-09's
6357 2003-05-10 Zack Weinberg <zack@codesourcery.com>
6359 * diagnostic.c: Reorder functions for clarity, putting all the
6360 functions in the "error" family next to each other, and
6361 likewise all the functions in the "error_with_decl" family.
6362 Some other routines were moved too. Add comments.
6363 (vbuild_message_string): Fold into sole caller.
6366 2003-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6368 * except.c (EH_RETURN_STACKADJ_RTX): Do not define.
6369 (EH_RETURN_HANDLER_RTX): Likewise.
6370 (expand_builtin_eh_return): Do not copy stack adjustment
6371 if EH_RETURN_STACKADJ_RTX is not defined.
6372 (expand_eh_return): Likewise. Also, do not pass stack
6373 adjustment as argument to the eh_return pattern.
6374 * except.h (MUST_USE_SJLJ_EXCEPTIONS): Do not define just
6375 because EH_RETURN_STACKADJ_RTX is not defined.
6376 * unwind-dw.c (uw_update_context_1): If EH_RETURN_STACKADJ_RTX
6377 is not defined, treat stack pointer like a regular register.
6378 (uw_init_context_1): Set up fake initial stack pointer register.
6379 (uw_install_context_1): Do not compute stack adjustment if
6380 EH_RETURN_STACKADJ_RTX is not defined.
6382 * config/i386/i386.md ("eh_return"): Remove first argument.
6383 * config/mips/mips.md ("eh_return"): Likewise.
6384 * config/rs6000/rs6000.md ("eh_return"): Likewise.
6385 * config/sh/sh.md ("eh_return"): Likewise.
6387 * config/s390/s390.h (EH_RETURN_STACKADJ_RTX): Remove.
6389 2003-05-10 Alexander Aganichev <aaganichev@yandex.ru>
6391 * config/i386/i386.h (MODES_TIEABLE_P): Fix typo.
6393 2003-05-10 Nathan Sidwell <nathan@codesourcery.com>
6395 * defaults.h (GCOV_TYPE_SIZE): Remove.
6396 * gcov-io.h (gcov_type): Set to specific mode int on target.
6397 (gcov_unsigned_t, gcov_position_t): New.
6398 (GCOV_TYPE_NODE): New.
6399 (GCOV_TAG_SUMMARY_LENGTH): Adjust.
6400 (GCOV_COUNTERS_SUMMABLE): New.
6401 (gcov_ctr_summary, gcov_sumary, gcov_fn_info, gcov_merge_fn,
6402 gcov_ctr_info, gcov_info): Adjust types.
6403 (gcov_var): Adjust types.
6404 (gcov_write_unsigned, gcov_write_tag,
6405 gcov_write_length, gcov_write_tag_length, gcov_write_summary,
6406 gcov_read_unsigned, gcov_read_summary): Adjust gcov types.
6407 (gcov_position, gcov_sync, gcov_seek): Adjust gcov types.
6408 * gcov-io.c (gcov_write_unsigned, gcov_write_tag,
6409 gcov_write_length, gcov_write_tag_length, gcov_write_summary,
6410 gcov_read_unsigned, gcov_read_summary): Adjust gcov types.
6411 * libgcov.c (gcov_crc32, gcov_version_mismatch, gcov_exit,
6412 __gcov_init, __gcov_merge_add): Adjust gcov types.
6413 * coverage.c (ctr_merge_functions): Constify.
6415 (read_counts_file): Adjust gcov types. Only summarize & merge
6417 (coverage_counter_ref): Use GCOV_TYPE_NODE.
6418 (build_fn_info_type, build_fn_info_value, build_ctr_info_type,
6419 build_ctr_info_value, build_gcov_info): Adjust types.
6420 * profile.c (branch_prob): Adjust gcov types.
6421 * gcov_dump (dump_file): Adjust gcov types.
6423 2003-05-10 Richard Earnshaw <rearnsha@arm.com>
6425 * arm.md (DOM_CC_X_AND_Y, DOM_CC_NX_OR_Y, DOM_CC_X_OR_Y): New
6427 (ior_scc_scc, and_scc_scc): New insn_and_split patterns.
6428 * arm.c (arm_select_dominance_cc_mode): Renamed from
6429 select_dominance_cc_mode, no-longer static. Use DOM_CC... constants.
6431 * arm-protos.h (arm_select_dominance_cc_mode): Add prototype.
6433 2003-05-09 Roger Sayle <roger@eyesopen.com>
6435 * config/alpha/alpha.c (alpha_start_function): Declare frame_size
6436 as unsigned to avoid signed/unsigned comparison warnings.
6438 2003-05-09 Bob Wilson <bob.wilson@acm.org>
6440 * config/xtensa/xtensa.c (xtensa_emit_loop_end): Only use "nop.n"
6441 instruction if the Xtensa density option is enabled.
6443 2003-05-09 Matt Kraai <kraai@alumni.cmu.edu>
6445 * mklibgcc.in: Remove extra quotes.
6447 2003-05-09 Mark Mitchell <mark@codesourcery.com>
6449 * config/rs6000/rs6000.c (spe_init_builtins): Fix typo in creation
6452 2003-05-09 Alexandre Oliva <aoliva@redhat.com>
6454 * reload1.c (reload_cse_move2add): Don't turn an implicit
6455 truncation into a self-set in the narrow mode.
6457 2003-05-09 Richard Earnshaw <rearnsha@arm.com>
6459 * arm.md (clzsi2): The CLZ instruction is predicable.
6461 2003-05-09 Bob Wilson <bob.wilson@acm.org>
6463 * config/xtensa/xtensa.c: Formatting.
6465 2003-05-09 Diego Novillo <dnovillo@redhat.com>
6467 * tree-dump.c (dequeue_and_dump): Use CONSTRUCTOR_ELTS,
6468 instead of TREE_OPERAND to access the operand of a
6471 2003-05-09 Diego Novillo <dnovillo@redhat.com>
6473 * tree-dump.c (dequeue_and_dump): CONSTRUCTOR nodes contain only
6476 2003-05-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
6478 * toplev.h (warning_with_file_and_line): Don't declare.
6479 (error_with_file_and_line): Likewise.
6480 * diagnostic.c (error_with_file_and_line): Remove.
6481 (warning_with_file_and_line): Likewise.
6483 2003-05-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
6485 * c-parse.in (if_stmt_locus): New object.
6486 (if_prefix rule): Use it. Don't use warning_with_file_and_line.
6487 (select_or_iter_stmt rule): Likewise.
6488 (if_stmt_file): Remove.
6489 (if_stmt_line): Likewise.
6490 * jump.c: include "diagnostic.h"
6491 (never_reached_warning): Don't use warning_with_file_and_line.
6492 * Makefile.in (jump.o): Add dependce on diagnostic.h
6494 2003-05-09 Alan Modra <amodra@bigpond.net.au>
6496 * expr.c (move_block_from_reg): Remove "size" parm. Localize vars.
6497 Move code handling pieces not larger than a word to..
6498 * function.c (assign_parms): ..here, but use change_address instead
6499 of adjust_address and operand_subword, and expand_binop instead of
6500 expand_shift. Adjust calls to move_block_from_reg.
6501 * expr.h (move_block_from_reg): Update declaration.
6502 (copy_blkmode_from_reg): Formatting.
6503 * Makefile.in (function.o): Add $(OPTABS_H) to deps.
6504 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Adjust
6505 move_block_from_reg calls.
6506 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
6507 * config/i960/i960.c (i960_setup_incoming_varargs): Likewise.
6508 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
6509 * config/m88k/m88k.c (m88k_builtin_saveregsk): Likewise.
6510 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
6511 * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
6512 * config/romp/romp.h (SETUP_INCOMING_VARARGS): Likewise.
6513 * config/rs6000/rs6000.c (setup_incoming_varargs): Likewise.
6514 * config/sh/sh.c (sh_builtin_saveregs): Likewise.
6516 2003-05-08 DJ Delorie <dj@redhat.com>
6518 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_arg): Fix
6519 to handle arguments for which MUST_PASS_IN_STACK is true (e.g.,
6520 variable-sized types).
6521 (xstormy16_function_arg): New. Pass them that way too.
6522 * config/stormy16/stormy16-protos.h (xstormy16_function_arg): New.
6523 * config/stormy16/stormy16.h (FUNCTION_ARG): Call it.
6525 2003-05-08 Aldy Hernandez <aldyh@redhat.com>
6527 * mklibgcc.in: Use mkinstalldirs when installing multilib
6530 2003-05-08 J"orn Rennecke <joern.rennecke@superh.com>
6532 * sh.c (gen_block_redirect, split_branches): Use CODE_FOR_jump_compact
6533 instead of CODE_FOR_jump
6535 2003-05-08 Gabriel Dos Reis <gdr@integrable-solutions.net>
6537 * objc/objc-act.c (error_with_ivar): Don't use
6538 error_with_file_and_line.
6539 (warn_with_method): Don't use warning_with_file_and_line.
6541 2003-05-08 Gabriel Dos Reis <gdr@integrable-solutions.net>
6543 * stmt.c (emit_locus): New macro.
6544 (emit_filename): Remove.
6545 (emit_lineno): Likewise.
6546 (struct stmt_status): Replace members x_emit_filename and
6547 x_emit_lineno with x_emit_locus.
6548 (set_file_and_line_for_stmt): Adjust.
6549 (expand_expr_stmt_value): Don't use warning_with_file_and_line.
6550 (warn_if_unused_value): Likewise.
6551 (check_seenlabel): Likewise.
6553 2003-05-08 Gabriel Dos Reis <gdr@integrable-solutions.net>
6555 * c-decl.c (define_label): Tidy. Don't use any of
6556 error_with_file_and_line or warning_with_file_and_file.
6557 (pending_xref_error): Likewise.
6558 (store_parm_decls): Likewise.
6559 (current_function_prototype_locus): New object. Package from
6560 current_function_prototype_file and current_function_prototype_line.
6561 (start_function): Use it.
6562 (current_function_prototype_file): Remove.
6563 (current_function_prototype_line): Remove;
6565 2003-05-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6567 * builtins.c (readonly_data_expr): New function.
6568 (expand_builtin_memmove): Optimize any rodata source, not just
6571 2003-05-07 David Mosberger <davidm@hpl.hp.com>
6573 * unwind-libunwind.c (_Unwind_FindEnclosingFunction): New.
6575 2003-05-07 Richard Henderson <rth@redhat.com>
6577 * config/i386/i386.c (ix86_split_long_move): Fix base register
6578 mode for XFmode splits for TARGET_64BIT.
6580 2003-05-07 Richard Henderson <rth@redhat.com>
6582 * sched-ebb.c (schedule_ebb): Supply the correct starting
6583 block number to save_line_notes.
6585 2003-05-07 Richard Henderson <rth@redhat.com>
6587 * toplev.c (enum dump_file_index): Swap DFI_ce3, DFI_bbro.
6588 (dump_file): Likewise.
6590 2003-05-07 David Mosberger <davidm@hpl.hp.com>
6592 * config/ia64/crtbegin.asm (__do_jv_register_classes): Don't
6593 forget to preserve gp.
6594 * config/ia64/crtend.asm (__do_global_ctors_au): Ditto.
6596 * config/ia64/crtbegin.asm (__do_jv_register_classes): Add missing
6597 .prologue directive.
6598 Use .skip instead of data8 for .bss section to make Intel
6599 Assembler (ias) happy. Minor whitespace fixups. Make "nop 0"
6600 explicit in the .mib bundles and remove the unnecessary stop
6601 bits. Replace local labels with normal labels, to make ias
6602 happy. Don't register __do_global_ctors_aux here, do it in
6605 * config/ia64/crtend.asm [HAVE_INIT_FINI_ARRAY]: Register
6606 __do_global_ctors_aux in .init_array section instead of
6607 declaring it as a hidden global. Replace local labels with
6608 ordinary labels to make ias happy.
6610 2003-05-07 Richard Henderson <rth@redhat.com>
6613 * except.c: Revert 04-01 and 04-02 forced-unwind changes.
6614 * flags.h, toplev.c, doc/invoke.texi: Likewise.
6616 * unwind-dw2.c (_Unwind_GetCFA): Fix ptr->int conversion warning.
6617 * unwind.inc (_Unwind_DeleteException): Check for null
6620 * unwind-sjlj.c (_Unwind_SjLj_Resume_or_Rethrow): New.
6621 * unwind.inc (_Unwind_Resume_or_Rethrow): New.
6622 * unwind.h: Declare them.
6623 * libgcc-std.ver (GCC_3.3): Export them.
6625 2003-05-07 Richard Henderson <rth@redhat.com>
6627 * unwind-dw2.c (_Unwind_GetCFA): Cast pointer to _Unwind_Ptr,
6630 2003-05-07 Zack Weinberg <zack@codesourcery.com>
6632 * stmt.c (force_label_rtx): New function, based on logic
6633 formerly found in expand_expr.
6634 * expr.h: Prototype it.
6635 * expr.c (expand_expr <LABEL_DECL>): Use force_label_rtx if
6637 * varasm.c (decode_addr_const <LABEL_DECL>): Use force_label_rtx.
6639 * print-tree.c (debug_tree): Free the table after we're done
6642 2003-05-07 Aldy Hernandez <aldyh@redhat.com>
6644 * config/rs6000/spe.h: Reverse arguments for __ev_subfw.
6645 Unreverse arguments for __ev_subw.
6647 * config/rs6000/spe.md (evsubfw): Reverse arguments of assembly.
6649 2003-05-07 Nick Clifton <nickc@redhat.com>
6651 * config/stormy16/stormy-abi: Update to include
6652 R_XSTORMY16_FPTR16, R_XSTORMY16_LO16, R_XSTORMY16_HI16 and
6653 R_XSTORMY16_12 relocs.
6655 2003-05-07 Alan Modra <amodra@bigpond.net.au>
6657 * function.c (assign_parms): Correct reversed reg_parm_stack_space
6658 test. Add partial in-regs size to stack_args_size.
6660 2003-05-07 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6662 * doc/invoke.texi (Warning Options): Mark -Wmissing-declarations
6665 2003-05-07 Nathan Sidwell <nathan@codesourcery.com>
6667 * gcov-io.h (GCOV_LOCKED): New #define.
6668 (GCOV_LINKAGE): Make sure it is #defined.
6669 (gcov_write_string, gcov_write_tag, gcov_write_length,
6670 gcov_read_string, gcov_time): Poison in libgcov.
6671 (gcov_seek_end): Remove.
6672 (gcov_write_tag_length, gcov_sync, gcov_rewrite): New.
6673 (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
6674 GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
6675 GCOV_TAG_SUMMARY_LENGTH): New #defines.
6676 (gcov_write_tag, gcov_write_length): Not in libgcov.
6677 * gcov-io.c (gcov_open): Use GCOV_LOCKED.
6678 (gcov_write_tag, gcov_write_length): Not in libgcov.
6679 (gcov_write_tag_length): New.
6680 (gcov_write_summary): Use gcov_write_tag_length.
6681 * libgcov.c: Always #include gcov-io.h.
6682 (IN_LIBGCOV): -1 for inhibit_libc, +1 otherwise.
6683 (GCOV_LINKAGE): Define to nothing for L_gcov.
6684 (gcov_exit): Replace gcov_write_tag, gcov_write_length with
6685 gcov_write_tag_length. Use gcov_rewrite & gcov_seek.
6686 * gcov.c (read_graph_file): Replace gcov_seek by gcov_sync.
6687 (read_count_file): Likewise.
6688 * gcov-dump.c (dump_file): Likewise.
6689 * coverag.c (read_counts_file): Likewise.
6691 2003-05-06 Mark Mitchell <mark@codesourcery.com>
6694 * gcc.c (process_command): Update copyright date.
6696 2003-05-06 Phil Edwards <pme@gcc.gnu.org>
6698 * doc/install.texi (mips-*-*): Add note about libstdc++.
6700 2003-05-06 DJ Delorie <dj@redhat.com>
6702 * config/stormy16/stormy16.c (xstormy16_function_profiler): New.
6703 * config/stormy16/stormy16.h (FUNCTION_PROFILER): Call it.
6704 * config/stormy16/stormy16-protos.h (xstormy16_function_profiler): New.
6706 2003-05-06 <neil@cat.daikokuya.co.uk>
6708 * c-opts.c (COMMAND_LINE_OPTIONS): Reject -Wmissing-prototypes
6709 and -Wstrict-prototypes if C++.
6711 2003-05-06 Aldy Hernandez <aldyh@redhat.com>
6713 * config/rs6000/linuxspe.h: New file.
6715 * config.gcc: Add powerpc-*-linux-gnuspe* target.
6717 2003-05-06 Richard Henderson <rth@redhat.com>
6719 * unwind-dw2.c (uw_update_context_1): Only set cfa as sp if
6720 previous frame didn't save sp. Clear sp for next frame.
6721 (uw_install_context_1): Honor saved sp from frame.
6723 2003-05-06 Richard Sandiford <rsandifo@redhat.com>
6725 * config/mips/mips-protos.h (mips_subword, mips_output_move): Declare.
6726 (mips_move_1word, mips_move_2words): Remove declaration.
6727 (mips_split_64bit_move_p, mips_split_64bit_move): Declare.
6728 (mips_restore_gp): Remove insn argument.
6729 * config/mips/mips.h (FP_REG_RTX_P): New macro.
6730 * config/mips/mips.c (volatile_buffer): Remove.
6731 (mips_subword, mips_split_64bit_move_p, mips_split_64bit_move): New.
6732 (mips_move_1word, mips_move_2words): Remove, replacing with...
6733 (mips_output_move): ...this new function.
6734 (mips_restore_gp): Remove insn argument. Adjust for above changes.
6735 (print_operand): Make '%h' print %hi(op) for HIGH operands. Remove
6736 handling of floating-point constants. Handle zero CONST_DOUBLE
6738 (mips_annotate_frame_insn): Replace with...
6739 (mips_set_frame_expr): ...this, which just takes one argument.
6740 (mips_frame_set): Change the register argument to an rtx.
6741 (mips_emit_frame_related_store): Use mips_split_64bit_move_p to
6742 check whether moves should be split. Use mips_split_64bit_move
6743 to split them. Use mips_subword to generate the high and low
6744 parts of a paired FPR. Adjust calls to frame_set and
6745 mips_set_frame_expr.
6746 (mips_expand_prologue): Simplify due to above changes.
6747 * config/mips/mips.md: Add splitters for 64-bit moves on 32-bit
6748 targets, replacing xisting register-only versions.
6749 (UNSPEC_STORE_DF_HIGH): New unspec.
6750 (UNSPEC_LOAD_DF_LOW, UNSPEC_LOAD_DF_HIGH): New unspecs.
6751 (mulsi3_r4000, muldi3_internal2): Avoid use of mips_move_1word.
6752 (*paradoxical_extendhidi2): Remove.
6753 (movdi_internal, movdi_internal2): Use mips_output_move.
6754 (*movdi_internal2_mips16, movsi_internal, movcc): Likewise.
6755 (movsf_internal1, movsf_internal2): Likewise.
6756 (movdf_internal1a): Likewise. Fix length and type of f <- G case.
6757 (movdf_internal1b): Use mips_output_move. Fix type of f <- G case.
6758 (movdf_internal2): Use mips_output_move. Fix lengths of FPR moves.
6759 Add m <- G alternative.
6760 (load_df_low, load_df_high, store_df_low): New patterns.
6761 (movhi_internal): Use @ template instead of calling a function.
6762 Remove unnecessary 'z' alternatives.
6763 (movqi_internal): Likewise.
6764 (exception_receiver): Update call to mips_restore_gp.
6766 2003-05-06 Richard Sandiford <rsandifo@redhat.com>
6768 * config/mips/mips-protos.h (mips_simplify_dwarf_addr): Remove.
6769 (mips_delegitimize_address): Declare.
6770 * config/mips/mips.h (ASM_SIMPLIFY_DWARF_ADDR): Undefine.
6771 (FIND_BASE_TERM): Define.
6772 * config/mips/mips.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
6773 (mips_delegitimize_address): Renamed from mips_simplify_dwarf_addr.
6774 Handle small-data addresses.
6776 2003-05-05 Roger Sayle <roger@eyesopen.com>
6778 * real.c (real_powi): New function to calculate the value of
6779 a real raised to an integer power, i.e. pow(x,n) for int n.
6780 (real_sqrt): Convert to using the faster do_add, do_multiply
6781 and do_divide API for consistency with the rest of real.c.
6782 * real.h (real_powi): Prototype here.
6783 * builtins.c (fold_builtin): Avoid local variable mode when
6784 evaluating sqrt at compile time. Attempt to evaluate pow at
6785 compile-time, by checking for an integral exponent.
6787 2003-05-05 Richard Henderson <rth@redhat.com>
6789 * doc/extend.texi (Variable Attributes): Re-sort table and tidy.
6791 2003-05-05 David O'Brien <obrien@FreeBSD.org>
6793 * config/rs6000/sysv4.h (CPP_OS_FREEBSD_SPEC): Add __ELF__ to mirror
6794 other FreeBSD ports.
6795 (LINK_OS_FREEBSD_SPEC): Mirror conventions on other FreeBSD ports.
6796 (_LITTLE_ENDIAN): Use __LITTLE_ENDIAN__ instead.
6798 2003-05-05 Janis Johnson <janis187@us.ibm.com>
6800 * Makefile.in: (site.exp): Add ALT_CC_UNDER_TEST, add quotes around
6802 * doc/sourcebuild.texi (C tests): Describe gcc.dg/compat tests.
6804 2003-05-05 Zack Weinberg <zack@codesourcery.com>
6806 * rtl.h (STRING_POOL_ADDRESS_P): Rename to DEFERRED_CONSTANT_P.
6807 * varasm.c (struct varasm_status): Add deferred_constants field.
6808 (n_deferred_strings): Delete variable.
6809 (n_deferred_constants): New #define.
6810 (struct constant_descriptor_tree): Kill next and label fields.
6811 (const_hash_table, MAX_HASH_TABLE): Delete.
6812 (const_desc_htab): New static variable.
6813 (const_hash): Rename const_desc_hash, and make it fit the
6814 hashtab.h interface.
6815 (const_desc_eq): New.
6816 (const_hash_1, compare_constant): Const-ify arguments.
6817 (build_constant_desc): Set DEFERRED_CONSTANT_P on all new
6818 SYMBOL_REFs. Clarify comments. Don't set desc->label.
6819 (output_constant_def): Do the lookup/insert using the
6820 hashtab.h interface. Don't muck with n_deferred_constants or
6821 DEFERRED_CONSTANT_P here.
6822 Always call maybe_output_constant_def_contents.
6823 (maybe_output_constant_def_contents): Take a pointer to the
6824 descriptor, not the EXP and RTL separately. Return
6825 immediately if this constant is not deferred. Defer output of
6826 everything, except writable string constants. Update
6827 n_deferred_constants here.
6828 (output_constant_def_contents): Now takes just one argument,
6829 an rtx. Clear DEFERRED_CONSTANT_P here.
6830 (mark_constant_pool): Update for rename of n_deferred_strings.
6831 (mark_constant): Don't clear DEFERRED_CONSTANT_P here.
6833 (init_varasm_status): Clear p->deferred_constants.
6834 (init_varasm_once): Call htab_create_ggc for const_desc_htab.
6836 2003-05-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6838 * builtins.c (expand_builtin_stpcpy): Only expand when the length
6839 of the source string can be evaluated at compile-time.
6841 2003-05-05 Aldy Hernandez <aldyh@redhat.com>
6843 * testsuite/gcc.c-torture/compile/simd-6.c: New.
6845 * c-typeck.c (digest_init): Handle arrays of vector constants.
6847 2003-05-05 Jakub Jelinek <jakub@redhat.com>
6849 * builtins.c (expand_builtin_mempcpy): New function.
6850 (expand_builtin_stpcpy): Optimize stpcpy whose return value is
6851 ignored into strcpy no matter what arguments it has.
6852 (expand_builtin) <case BUILT_IN_MEMPCPY>: Call
6853 expand_builtin_mempcpy.
6855 2003-05-05 Aldy Hernandez <aldyh@redhat.com>
6857 * testsuite/gcc.dg/20030505.c: New.
6859 * c-typeck.c (convert_for_assignment): Opaque pointers can
6862 * config/rs6000/rs6000.c: New global opaque_p_V2SI_type_node.
6863 (rs6000_init_builtins): Initialize opaque_p_V2SI_type_node.
6864 (spe_init_builtins): Rename all pv2si_type_node to
6865 opaque_p_V2SI_type_node.
6866 Remove declaration of pv2si_type_node.
6867 (is_ev64_opaque_type): Accept opaque pointers.
6869 2003-05-05 Geoffrey Keating <geoffk@apple.com>
6871 * config/rs6000/rs6000.c (validate_condition_mode): Use
6872 flag_finite_math_only.
6873 (rs6000_reverse_condition): Never return UNKNOWN; use
6874 flag_finite_math_only.
6875 (rs6000_generate_compare): Use flag_finite_math_only.
6876 (rs6000_emit_cmove): Handle UNLE. Support UNEQ under -ffast-math.
6877 Use HONOR_* rather than flag_unsafe_math_optimizations. Correct
6878 UNGE and GT cases. Handle UNEQ and LTGT when ! HONOR_NANS.
6880 * toplev.c (check_global_declarations): Suppress not-used warning
6881 for volatile variables.
6883 2003-05-05 Olivier Hainque <hainque@act-europe.fr>
6885 * expr.c (expand_expr, case BIT_FIELD_REF): Refine the test forcing
6886 usage of bitfield instructions for mode1 != BLKmode, only ignoring
6887 SLOW_UNALIGNED_ACCESS if the field is not byte aligned.
6888 (store_field): Likewise.
6890 2003-05-05 Aldy Hernandez <aldyh@redhat.com>
6892 * config/rs6000/rs6000.c (rs6000_expand_binop_builtin): Add
6893 evsubifw to builtins accepting 5-bit unsigned constants.
6894 (easy_vector_constant): Return if V1DImode. Fix typo.
6896 2003-05-05 Aldy Hernandez <aldyh@redhat.com>
6898 * config/rs6000/spe.h: Revert licensing change from last patch.
6900 2003-05-05 DJ Delorie <dj@redhat.com>
6902 * config/stormy16/stormy16.md (negsi2): Allocate the pseudos
6903 before reload, but defer the split until after.
6904 * config/stormy16/stormy16.c (xstormy16_expand_arith): Modify
6907 2003-05-05 David Edelsohn <edelsohn@gnu.org>
6909 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 440 support.
6910 * config/rs6000/vxworks.h (CC1_SPEC): Use -mcpu=440 for t440.
6912 2003-05-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6914 * libgcov.c (__gcov_merge_add): Do not use gcov_type when inhibit_libc
6917 2003-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6919 * builtin-attrs.def (ATTR_NOTHROW_NONNULL_1,
6920 ATTR_NOTHROW_NONNULL_2, ATTR_NOTHROW_NONNULL_3): Renamed from
6921 ATTR_NONNULL_1, ATTR_NONNULL_2 and ATTR_NONNULL_3.
6923 (ATTR_NOTHROW_NONNULL_1_2, ATTR_NOTHROW_NONNULL_1_4,
6924 ATTR_CONST_NOTHROW_NONNULL_1, ATTR_PURE_NOTHROW_NONNULL_1,
6925 ATTR_PURE_NOTHROW_NONNULL_1_2, ATTR_MALLOC_NOTHROW_NONNULL_1):
6928 * builtins.def (DEF_EXT_FALLBACK_BUILTIN): Accept ATTRS argument.
6929 (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Update comment
6931 (BUILT_IN_INDEX, BUILT_IN_RINDEX, BUILT_IN_MEMCPY,
6932 BUILT_IN_MEMMOVE, BUILT_IN_MEMCMP, BUILT_IN_MEMSET,
6933 BUILT_IN_MEMPCPY, BUILT_IN_STRCAT, BUILT_IN_STRNCAT,
6934 BUILT_IN_STPCPY, BUILT_IN_STRCPY, BUILT_IN_STRNCPY,
6935 BUILT_IN_STRCMP, BUILT_IN_STRNCMP, BUILT_IN_STRLEN,
6936 BUILT_IN_STRSTR, BUILT_IN_STRPBRK, BUILT_IN_STRSPN,
6937 BUILT_IN_STRCSPN, BUILT_IN_STRCHR, BUILT_IN_STRRCHR, BUILT_IN_NAN,
6938 BUILT_IN_NANF, BUILT_IN_NANL, BUILT_IN_NANS, BUILT_IN_NANSF,
6939 BUILT_IN_NANSL, BUILT_IN_PUTS, BUILT_IN_FPUTC, BUILT_IN_FPUTS,
6940 BUILT_IN_FWRITE, BUILT_IN_PUTS_UNLOCKED, BUILT_IN_FPUTC_UNLOCKED,
6941 BUILT_IN_FPUTS_UNLOCKED, BUILT_IN_FWRITE_UNLOCKED,
6942 BUILT_IN_STRDUP): Add "nonnull" attribute.
6944 2003-05-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6946 * expr.c (store_field): Don't clobber TEMP in shift: it might be
6948 (get_inner_reference): Don't go through a VIEW_CONVERT_EXPR
6949 whose purpose is to step up the alignment.
6950 (expand_expr, case ADDR_EXPR): Force LO_SUM into memory, just like REG.
6952 * stor-layout.c (compute_record_mode): Relax restriction
6953 on fields crossing word boundaries forcing BLKmode.
6955 2003-05-04 Neil Booth <neil@daikokuya.co.uk>
6957 * cppinit.c (cpp_create_reader, post_options): Warn about
6958 trigraphs unless explicity set or -trigraphs.
6959 * cpplex.c (warn_in_comment): New.
6960 (_cpp_process_line_notes): Better handling of -Wtrigraphs.
6961 (_cpp_skip_block_comment): Add call to _cpp_process_line_notes.
6962 * doc/cppopts.texi, doc/cpp.texi: Update.
6964 2003-05-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6966 * Makefile.in (LIBGCOV): Add _gcov_merge_add.
6967 * gcov-io.h: Make GCOV_LINKAGE extern in libgcov and prevent resulting
6969 (GCOV_MERGE_FUNCTIONS): New.
6970 (gcov_merge_fn): Declare.
6971 (struct gcov_ctr_info): New field "merge".
6972 (__gcov_merge_add): Declare.
6973 * coverage.c (ctr_merge_functions): New.
6974 (build_ctr_info_type, build_ctr_info_value): Initialize merge field
6975 of gcov_ctr_info type.
6976 * libgcov.c (__gcov_merge_add): New.
6977 (gcov_exit): Call a hook to merge values of counters.
6979 2003-05-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
6981 * toplev.h (pedwarn_with_file_and_line): Don't declare.
6982 * diagnostic.c (pedwarn_with_file_and_line): Remove.
6984 2003-05-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
6986 * varasm.c (assemble_variable): Don't use error_with_file_and_line.
6988 2003-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6990 * builtins.c (expand_builtin_constant_p, expand_builtin_strlen,
6991 expand_builtin_frame_address): Update prototypes.
6992 (expand_builtin_constant_p, expand_builtin_strlen,
6993 expand_builtin_strcpy, expand_builtin_memset,
6994 expand_builtin_bzero, expand_builtin_args_info,
6995 expand_builtin_frame_address): Pass in just the argument(s)
6996 needed, not the entire expression `exp'.
6997 (expand_builtin): Update all calls to these functions.
6999 2003-05-03 Richard Henderson <rth@redhat.com>
7001 * builtins.c (expand_builtin) <BUILT_IN_DWARF_FP_REGNUM>: Remove.
7002 <BUILT_IN_DWARF_SP_COLUMN>: New.
7003 * builtins.def (BUILT_IN_DWARF_FP_REGNUM): Remove.
7004 (BUILT_IN_DWARF_SP_COLUMN): New.
7005 * dwarf2out.c (expand_builtin_dwarf_fp_regnum): Remove.
7006 (expand_builtin_dwarf_sp_column): New.
7007 * except.h: Update to match.
7008 * unwind-dw2.c (execute_stack_op): Correct stack push typo.
7009 (execute_cfa_program): Record location expression address
7010 before extracting length.
7011 (uw_update_context_1): Install old CFA into stack pointer column.
7012 (uw_init_context_1): Set cfa_reg to stack pointer column.
7014 2003-05-03 Richard Henderson <rth@redhat.com>
7016 * config/rs6000/rs6000.c (constant_pool_expr_p): Make static and
7018 (toc_relative_expr_p): Likewise.
7019 (SPE_CONST_OFFSET_OK): Move from rs6000.h.
7020 (legitimate_constant_pool_address_p): Move from rs6000.h, change
7021 into a function, downcase all users.
7022 (legitimate_small_data_p): Likewise.
7023 (legitimate_offset_address_p): Likewise.
7024 (legitimate_indexed_address_p): Likewise.
7025 (legitimate_indirect_address_p): Likewise.
7026 (legitimate_lo_sum_address_p): Likewise.
7027 (rs6000_mode_dependent_address): Likewise.
7028 * rs6000.h (CONSTANT_POOL_EXPR_P, TOC_RELATIVE_EXPR_P): Remove.
7029 (SPE_CONST_OFFSET_OK, LEGITIMATE_CONSTANT_POOL_ADDRESS_P,
7030 LEGITIMATE_SMALL_DATA_P, LEGITIMATE_OFFSET_ADDRESS_P,
7031 LEGITIMATE_INDEXED_ADDRESS_P, LEGITIMATE_INDIRECT_ADDRESS_P,
7032 LEGITIMATE_LO_SUM_ADDRESS_P): Move into rs6000.c.
7033 (LEGITIMATE_ADDRESS_INTEGER_P): Remove.
7034 (GO_IF_MODE_DEPENDENT_ADDRESS): Use rs6000_mode_dependent_address.
7035 * config/rs6000/rs6000-protos.h: Update.
7037 2003-05-03 Geoffrey Keating <geoffk@apple.com>
7039 * config/rs6000/rs6000.h (REVERSIBLE_CC_MODE): Define.
7040 (REVERSE_CONDITION): Define.
7042 * config/rs6000/rs6000.c (scc_comparison_operator): Make equivalent
7043 to branch_positive_comparison_operator.
7044 (ccr_bit): Check that sCOND conditions are actually a positive bit.
7045 (print_operand): Remove %D substitution.
7046 (rs6000_emit_sCOND): Generate complement operation to ensure that
7047 sCOND input is a positive bit.
7048 * config/rs6000/rs6000.md: Rearrange sCOND templates to be in the
7049 same order as bCOND, and add the missing ones. Remove the %D
7050 substitutions from the scc patterns.
7052 * simplify-rtx.c (simplify_relational_operation): Add case for
7055 2003-05-03 Bruce Korb <bkorb@gnu.org>
7057 * gcc/fixinc/fixincl.tpl(dne): restore this to force merge conflicts
7059 * gcc/fixinc/inclhack.def(bsd_stdio_attrs_conflict): fix placement
7061 2003-05-03 Aldy Hernandez <aldyh@redhat.com>
7063 * config/rs6000/spe.h: Remove unecessary casts. Misc cleanups.
7065 2003-05-03 Zack Weinberg <zack@codesourcery.com>
7068 * c-common.c (warn_sign_compare): Initialize to -1.
7069 * c-opts.c (c_common_init_options): Don't set warn_sign_compare here.
7070 (c_common_decode_option <OPT_Wall>): Set warn_sign_compare
7072 (c_common_post_options): Set warn_sign_compare from extra_warnings
7073 if it's still -1 at this point.
7075 * toplev.c (maybe_warn_unused_parameter): New static variable.
7076 (set_Wextra): New static function.
7077 (W_options): Remove "extra".
7078 (decode_W_option): Call set_Wextra.
7079 (independent_decode_option): Likewise.
7080 (set_Wunused): Cooperate with set_Wextra in setting
7081 warn_unused_parameter.
7082 (rest_of_compilation): No need to check extra_warnings as
7083 well as warn_uninitialized.
7085 * c-typeck.c (build_binary_op, build_conditional_expr):
7086 No need to check extra_warnings as well as warn_sign_compare.
7087 (internal_build_compound_expr): No need to check extra_warnings
7088 as well as warn_unused_value.
7089 * function.c (expand_function_end): No need to check extra_warnings
7090 as well as warn_unused_parameter.
7091 * stmt.c (expand_expr_stmt_value): No need to check extra_warnings
7092 as well as warn_unused_value.
7094 * doc/invoke.texi: Clarify documentation of -Wsign-compare.
7096 * Makefile.in: Disable -Werror for gengtype-lex.o.
7098 2003-05-03 Olivier Hainque <hainque@act-europe.fr>
7100 * emit-rtl.c (last_call_insn, add_function_usage_to): New functions.
7101 * rtl.h (last_call_insn, add_function_usage_to): New prototypes.
7102 * builtins.c (expand_builtin_apply): Use the new emit-rtl functions.
7103 * calls.c (emit_call_1): Likewise.
7104 (expand_call): For calls initializing constant memory, replace
7105 emission of standalone mem /u clobber with function usage entry.
7106 * expr.c (emit_block_move_via_libcall): Likewise.
7107 * cse.c (count_reg_usage, case EXPR_LIST): New case.
7108 * flow.c (propagate_one_insn): Pass entire operand of
7109 CALL_INSN_FUNCTION_USAGE to mark_used_regs.
7110 * integrate.c (try_constants): For CALL_INSNs, substitute constants
7111 within the FUNCTION_USAGE also.
7112 * loop.c (prescan_loop): Note clobbers of const mem mentioned in
7113 FUNCTION_USAGE lists.
7114 * reload1.c (replace_pseudos_in): Renamed.
7115 (reload): Use it for clobbers surviving until the end of the reload.
7117 2003-05-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7119 * expr.c (expand_expr, case VIEW_CONVERT_EXPR): Don't use
7120 gen_lowpart on non-integer modes.
7122 * stor-layout.c (place_field): When adjusting offset_align, use
7123 desired_align, not DECL_ALIGN.
7125 2003-05-03 Nathan Sidwell <nathan@codesourcery.com>
7127 * c-decl.c (pending_invalid_xref_file): Remove.
7128 (pending_invalid_xref_line): Remove.
7129 (pending_invalid_xref_location): New.
7130 (lookup_label): Use location_t and input_location directly.
7131 (lookup_tag): Likewise.
7132 (pending_xref_error): Likewise.
7133 (c_expand_body_1): Likewise.
7134 * c-common.c (x_expand_start_cond): Likewise.
7135 * c-semantics.c (genrtl_for_stmt): Likewise.
7136 (find_reachable_label): Likewise.
7137 * expr.c (expand_expr): Likewise.
7138 * integrate.c (output_inline_function): Likewise.
7139 * tree-inline.c (find_alloca_call): Likewise.
7140 (find_builtin_longjmp_call): Likewise.
7141 * gcc.c (input_filename): Make static.
7143 2003-05-03 Richard Sandiford <rsandifo@redhat.com>
7145 * config/mips/mips.md: Fix comment typo.
7147 * config/mips/mips.c (mips_integer_op): New structure.
7148 (MIPS_MAX_INTEGER_OPS): Define.
7149 (mips_const_insns): Use mips_build_integer to determine the number
7150 of instructions needed to load a CONST_INT.
7151 (move_operand): Reject compound CONST_INTs.
7152 (mips_build_shift, mips_build_lower, mips_build_integer): New fns.
7153 (mips_move_integer): New fn.
7154 (mips_legitimize_const_move): Pass CONST_INTs to mips_move_integer.
7155 (mips_legitimize_move): Only legitimize constants when moving
7156 word or subword values.
7158 2003-05-02 Matt Kraai <kraai@alumni.cmu.edu>
7160 * Makefile.in (gcov-iov.h): Use move-if-change and a stamp.
7162 2003-05-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7164 * builtins.c (expand_builtin_stpcpy): Copy `arglist' before
7167 2003-05-03 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
7168 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7170 * doc/contrib.texi (Contributors): Add Zdenek Dvorak, Aldy
7171 Hernandez, and Kazu Hirata. Update Richard Henderson.
7173 2003-05-02 Geoffrey Keating <geoffk@apple.com>
7175 * config/rs6000/rs6000.c (rs6000_attribute_table): Add 'extern'
7176 to tentative declaration.
7178 * config/rs6000/sysv4.h (SYMBOL_FLAG_SMALL_V4): Delete.
7179 (SYMBOL_FLAG_SMALL_V4): Delete.
7180 * config/rs6000/rs6000.c (small_data_operand): Use SYMBOL_REF_SMALL_P.
7181 (rs6000_elf_encode_section_info): Don't set SYMBOL_FLAG_SMALL_V4.
7182 (rs6000_elf_in_small_data_p): Add extra section names. Add
7183 comment about TREE_PUBLIC test.
7185 * c-semantics.c (genrtl_switch_stmt, genrtl_if_stmt): Call
7186 expand_stmt on result of expand_unreachable_stmt.
7188 2003-05-02 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7190 * doc/contrib.texi (Contributors): Add Daniel Berlin.
7192 2003-05-02 David Edelsohn <edelsohn@gnu.org>
7194 * config/rs6000/{603.md,6xx.md,7450.md,7xx.md,rs64.md}: Decrease
7197 * config/rs6000/rs6000.c (symbol_ref_operand): Check
7198 SYMBOL_REF_FUNCTION_P on AIX.
7199 (current_file_function_operand): Same.
7200 * config/rs6000/rs6000.md (call,call_value): Force non-function
7201 symbol_ref into register on AIX.
7203 2003-05-02 Alan Modra <amodra@bigpond.net.au>
7205 * calls.c (struct arg_data): Move offset, slot_offset, size and
7206 alignment_pad to struct locate_and_pad_arg_data. Update all refs.
7207 (initialize_argument_information): Adjust call to locate_and_pad_parm.
7208 Delete alignment_pad var. Don't calculate slot_offset here.
7209 (emit_library_call_value_1): Delete alignment_pad, offset and size
7210 vars. Use struct locate_and_pad_arg_data instead. Adjust refs.
7211 Adjust call to locate_and_pad_parm. Don't tweak arg size for
7212 partial in-regs here. Formatting fixes.
7213 * expr.h (struct locate_and_pad_arg_data): New struct.
7214 (locate_and_pad_parm): Adjust declaration.
7215 * function.c (assign_parms): Localize vars. Use "locate" instead of
7216 other arg location vars. Don't invoke FUNCTION_ARG or
7217 FUNCTION_INCOMING_ARG unless pretend_named is different from
7218 named_arg. Heed MUST_PASS_IN_STACK and set up "partial" before
7219 calling locate_and_pad_parm. Adjust locate_and_pad_parm call.
7220 Use slot_offset for stack home of reg parms. Correct test for
7221 parm passed in memory. Formatting fixes.
7222 (locate_and_pad_parm): Add "partial" to params. Replace offset_ptr
7223 arg_size_ptr and alignment pad with "locate". Set slot_offset here.
7224 Correct initial_offset_ptr handling. Localize vars. Always pad
7225 locate->offset even when in_regs.
7227 2003-05-02 Nathan Sidwell <nathan@codesourcery.com>
7229 * Makefile.in (TREE_H): Replace location.h with input.h.
7230 (GTFILES) Remove location.h
7231 (gt-lists.h): Replace gt-location.h with gt-input.h
7232 * input.h (input_filename, input_line): Remove variables.
7233 (location_s, location_t): Move from location.h.
7234 (input_location): New.
7235 (input_filename, input_line): New #defines.
7236 * location.h: Remove.
7237 * tree.h: Replace location.h with input.h.
7238 (input_filename, input_line): Remove.
7239 * diagnostic.h: Replace location.h with input.h.
7240 * gcc.h (input_filename, input_filename_length): Remove declarations.
7241 * toplev.c (input_filename, input_line): Remove.
7242 (input_location): Define.
7243 (push_srcloc, pop_srcloc): Adjust.
7244 * diagnostic.c (diagnostic_report_current_module): Adjust.
7246 2003-05-02 Nick Clifton <nickc@redhat.com>
7248 * configure.in: Add xstormy16 to list of targets that has a nop
7249 instruction and hence which can be tested to see if the
7250 assembler supports the --gdwarf2 switch.
7251 * configure: Regenerate.
7253 2003-05-01 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
7256 * config/alpha/alpha.c (alpha_sa_mask, alpha_expand_prologue,
7257 alpha_start_function, alpha_expand_epilogue, unicosmk_gen_dsib):
7258 Avoid undefined shifts by making the shift operand unsigned.
7260 2003-05-01 DJ Delorie <dj@redhat.com>
7262 * reload.c (find_reloads): Also check that all of a multi-reg
7263 value is in the class.
7265 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
7267 * scan.h (lineno): Revert the rename here.
7269 2003-05-01 Stan Shebs <shebs@apple.com>
7271 * config/darwin.c (darwin_encode_section_info): Call
7272 default_encode_section_info.
7274 2003-05-01 David Edelsohn <edelsohn@gnu.org>
7276 * config/rs6000/rs6000.md (define_attr "type"): Add mfjmpr.
7277 (movsi_internal1): Use new mfjmpr attribute.
7278 (movhi_internal): Same.
7279 (movqi_internal): Same.
7280 (movcc_internal1): Same.
7281 (movdi_internal64): Same.
7282 * config/rs6000/{40x.md,603.md,6xx.md,7450.md,7xx.md,mpc.md,
7283 power4.md,rios1.md,rios2.md,rs64.md}: Add mfjmpr.
7284 * config/rs6000/40x.md: Add fpu_405.
7285 * config/rs6000/power4.md: Merge power4lsu and power4disp automata
7286 into power4misc automata. Remove extraneous parentheses.
7287 * config/rs6000/440.md: New file.
7288 * config/rs6000/rs6000.c (processor_target_table): Add 440,
7289 440fp. Rename 405f to 405fp.
7290 (function_arg_padding): Correct formatting.
7291 (rs6000_rtx_costs): Add PROCESSOR_PPC440 cases.
7293 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
7295 * input.h (lineno): Rename to ...
7296 (input_line): ... here.
7297 * tree.h (lineno): Rename to ...
7298 (input_line): ... here.
7299 * scan.h (lineno): Rename to ...
7300 (input_line): ... here.
7301 * toplev.c (lineno): Rename to ...
7302 (input_line): ... here.
7303 (push_srcloc, pop_srcloc): Rename lineno to input_line.
7304 * c-common.c (c_expand_start_cond, fname_decl): Likewise.
7305 * c-decl.c (poplevel, pop_label_level, lookup_label, lookup_tag,
7306 store_parm_decls, c_expand_body_1): Likewise.
7307 * c-errors.c (pedwarn_c99): Likewise.
7308 * c-format.c (status_warning): Likewise.
7309 * c-lex.c (fe_file_change, cb_def_pragma, c_lex): Likewise.
7310 * c-opts.c (c_common_post_options, c_common_parse_file): Likewise.
7311 * c-parse.in (save_filename, maybe_type_qual, ifc): Likwise.
7312 * c-semantics.c (finish_stmt_tree, build_stmt, emit_local_var,
7313 gentrtl_goto_stmt, genrtl_expr_stmt_value, genrtl_decl_stmt,
7314 genrtl_if_stmt, genrtl_while_stmt, genrtl_do_stmt,
7315 genrtl_return_stmt, genrtl_for_stmt, build_break_stmt,
7316 build_continue_stmt, genrtl_switch_stmt, genrtl_asm_stmt,
7317 prep_stmt, find_reachable_label, expand_unreachable_stmt): Likewise.
7318 * coverage.c (create_coverage): Likewise.
7319 * diagnostic.c (pedwarn, sorry, error, fatal_error,
7320 internal_error, warning, diagnostic_report_current_module,
7322 * expr.c (expand_expr): Likewise.
7323 * integrate.c (expand_inline_function,
7324 output_inline_function): Likewise.
7325 * rtl-error.c (file_and_line_for_asm): Likewise.
7326 * tree-inline.c (find_alloca_call, find_builtin_longjmp_call,
7327 walk_tree): Likewise.
7328 * tree.c (make_node): Likewise.
7329 * ada, cp, f, java, objc, treelang: Likewise.
7330 * objc/objc-act.c (objc_init): Rename lineno to input_line.
7331 (build_module_descriptor, build_selector_translation_table,
7332 build_protocol_template, build_method_prototype_list_template,
7333 build_category_template, build_selector_table,
7334 build_class_template, build_super_template, build_ivar_template,
7335 build_ivar_list_template, build_method_list_template,
7336 build_method_template, add_instance_variable): Likewise.
7338 * dwarf2out.c (dwarf2out_init, dwarf2out_finish): Change parameter
7339 name from input_filename.
7341 2003-04-30 Eric Christopher <echristo@redhat.com>
7342 Richard Sandiford <rsandifo@redhat.com>
7344 * configure: Regenerate from patches below.
7345 * combine.c (gen_lowpart_for_combine): Fix comment and add tests
7346 for all symbolic operands.
7347 * config/mips/mips.c: Migrate RTX_COSTS and CONST_COSTS
7349 * config/mips/linux.h: Fix typo.
7350 * Merge from mips-3_4-rewrite branch:
7352 2003-04-07 Richard Sandiford <rsandifo@redhat.com>
7354 * config/mips/mips.c (mips_classify_symbol): Add catch-all case for
7355 handling local labels when TARGET_ABICALLS.
7357 2003-04-04 Richard Sandiford <rsandifo@redhat.com>
7359 * config/mips/mips-protos.h (mips_expand_epilogue): Add an
7361 (mips_expand_call): Likewise.
7362 * config/mips/mips.h (TARGET_SIBCALLS): New macro.
7363 (FIXED_REGISTERS): Clear $31 entry.
7364 (CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTER): Likewise.
7365 (EPILOGUE_USES): Define.
7366 * config/mips/mips.c (mips_function_ok_for_sibcall): New function.
7367 (TARGET_FUNCTION_OK_FOR_SIBCALL): Use it.
7368 (override_options): Add a 'j' register class.
7369 (mips_expand_call): Handle sibcalls
7370 (mips_expand_epilogue): Handle epilogues for sibcalls.
7371 * config/mips/mips.md (epilogue): Adjust call to mips_expand_epilogue.
7372 (sibcall_epilogue): New pattern.
7373 (call, call_value): Adjust calls to mips_expand_call.
7374 (sibcall, sibcall_value): New expanders.
7375 (sibcall_internal, sibcall_value_internal): New patterns.
7376 (sibcall_value_multiple_internal): New pattern.
7378 2003-03-25 Richard Sandiford <rsandifo@redhat.com>
7380 * config/mips/mips.md (extended_mips16): New attribute.
7381 (define_attr length): Default to 8 if extended_mips16 == yes.
7382 (truncdisi2): Set extended_mips16 to yes for the sll alternative.
7383 (truncdihi2, truncdiqi2, *extendsidi2): Likewise.
7384 (call_internal): Set extended_mips16 to yes for direct jumps.
7385 Remove redundant mode attribute.
7386 (call_value_internal, call_value_multiple_internal): Likewise.
7387 (call_split): Remove redundant mode attribute.
7388 (call_value_split, call_value_multiple_split): Likewise.
7390 * config/mips/mips.c (mips_symbol_insns): Rework. Fix handling
7391 of unaligned offsets.
7393 * config/mips/mips.c (mips_splittable_symbol_p): Fix handling
7396 2003-03-22 Richard Sandiford <rsandifo@redhat.com>
7398 * config/mips/mips.h (TARGET_EXPLICIT_RELOCS): Add commentary.
7399 * config/mips/mips.c (override_options): Disable -mexplicit-relocs
7402 2003-03-22 Richard Sandiford <rsandifo@redhat.com>
7404 * config/mips/mips.h (ADDRESS_COST): Define.
7406 2003-03-20 Richard Sandiford <rsandifo@redhat.com>
7408 * config/mips/mips.h (EXTRA_CONSTRAINT): Give existing meaning of
7409 'R' to 'U'. Make 'R' mean a single-instruction memory reference.
7410 * config/mips/mips.md: Replace 'R' constraints with 'U'.
7412 2003-03-18 Richard Sandiford <rsandifo@redhat.com>
7414 * config/mips/mips.md (truncdisi2): Add commentary. Use sll instead
7415 of a two-instruction sequence. Add register->memory alternative.
7416 (truncdihi2, truncdiqi2): Likewise.
7417 Rework shift/truncate instructions so that they only handle right
7418 shifts of 32 (or more, in the case of arithmetic shifts).
7419 Add patterns for truncate/sign-extend.
7421 2003-03-13 Richard Sandiford <rsandifo@redhat.com>
7423 * configure.in (mips*-*-*): Check for explicit relocation support.
7424 * configure: Regenerate.
7426 2003-03-13 Richard Sandiford <rsandifo@redhat.com>
7428 * config/mips/mips.h (TARGET_SWITCHES): Add -mexplicit-relocs
7429 and -mno-explicit-relocs.
7430 (MASK_EXPLICIT_RELOCS): Define.
7431 (TARGET_EXPLICIT_RELOCS): Use it.
7432 (mips_split_addresses): Remove declaration.
7433 * config/mips/mips.c (override_options): Update comment for
7434 mips_split_addresses. Clear MASK_EXPLICIT_RELOCS for non-PIC n64.
7436 2003-03-13 Richard Sandiford <rsandifo@redhat.com>
7438 * combine.c (gen_lowpart_for_combine): Treat the lowpart Pmode of
7439 a CONST as identity. Check the return value of gen_lowpart_common.
7441 2003-03-13 Richard Sandiford <rsandifo@redhat.com>
7443 * config/mips/mips.c (mips_legitimize_symbol): Handle small data
7444 references for TARGET_EXPLICIT_RELOCS.
7445 (mips_reloc_string): Return "%gp_rel(" for RELOC_GPREL16 if
7448 2003-03-13 Richard Sandiford <rsandifo@redhat.com>
7450 * config/mips/mips.md: Replace 'IQ' mips16 constraints with just 'Q'.
7451 (addsi3): Remove redundant constraints.
7452 (addsi3_internal): Use separate register & constant alternatives.
7453 Use a 'Q' constraint and "addiu" insn for the latter.
7454 (adddi3_internal_3, addsi3_internal_2): Likewise.
7456 2003-03-13 Richard Sandiford <rsandifo@redhat.com>
7458 * config/mips/mips-protos.h (mips_expand_unaligned_load): Declare.
7459 (mips_expand_unaligned_store): Declare.
7460 * config/mips/mips.c (mips_get_unaligned_mem): New fn.
7461 (mips_expand_unaligned_load, mips_expand_unaligned_store): New fns.
7462 * config/mips/mips.md (UNSPEC_ULW, UNSPEC_USW): Remove.
7463 (UNSPEC_ULD, UNSPEC_USD): Remove.
7464 (UNSPEC_LWL, UNSPEC_LWR, UNSPEC_SWL, UNSPEC_SWR): New.
7465 (UNSPEC_LDL, UNSPEC_LDR, UNSPEC_SDL, UNSPEC_SDR): New.
7466 (extv, extzv): Use mips_expand_unaligned_load.
7467 (insv): Use mips_expand_unaligned_store. Use a reg_or_0_operand
7468 predicate for operand 3.
7469 (movsi_ulw, movsi_usw): Replace with...
7470 (mov_lwl, mov_lwr, mov_swl, move_swr): ...these new insns.
7471 (movdi_uld, movdi_usd): Likewise replace with...
7472 (mov_ldl, mov_ldr, mov_sdl, move_sdr): ...these insns.
7474 2003-02-26 Richard Sandiford <rsandifo@redhat.com>
7476 * config/mips/mips-protos.h (mips_global_pic_constant_p): Declare.
7477 * config/mips/mips.h (LEA_REGS): New register class.
7478 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for it.
7479 (GR_REG_CLASS_P): Include LEA_REGS.
7480 (DANGEROUS_FOR_LA25_P): New macro.
7481 (EXTRA_CONSTRAINT): Add !DANGEROUS_FOR_LA25_P to R's condition.
7482 Add a T constraint for the DANGEROUS_FOR_LA25_P case.
7483 * config/mips/mips.c (mips_regno_to_class): Change GR_REGS
7484 entries to LEA_REGS.
7485 (mips_global_pic_constant_p): New function.
7486 (override_options): Add 'e' register constraint.
7487 (mips_secondary_reload_class): Return LEA_REGS when reloading
7488 a dangerous constant into a class containing $25.
7489 * config/mips/mips.md (movdi_internal2): Add an e <- T alternative.
7490 (movsi_internal): Likewise.
7492 2003-02-23 Richard Sandiford <rsandifo@redhat.com>
7494 * config/mips/mips.h (TARGET_SPLIT_CALLS): New macro.
7495 * config/mips/mips.md (call_split): New insn.
7496 (call_value_split, call_value_multiple_split): New insns.
7497 (call_internal): Turn into a define_insn_and_split. Split the
7498 instruction into a call and $gp load if TARGET_SPLIT_CALLS.
7499 (call_value_internal, call_value_multiple_internal): Likewise.
7501 2003-02-23 Richard Sandiford <rsandifo@redhat.com>
7503 * config/mips/mips.c (mips_reloc_string): Return "%got(" for
7504 RELOC_GOT_PAGE and RELOC_GOT_DISP if !TARGET_NEWABI.
7505 (mips_encode_section_info): Don't take symbol visibility into
7506 account if TARGET_ABICALLS. Add more commentary.
7507 * config/mips/mips.md: Add commentary above reloc constants.
7509 2003-02-12 Richard Sandiford <rsandifo@redhat.com>
7511 * config/mips/mips.c (mips_legitimize_const_move): New, extracted
7512 from mips_legitimize_move. Legitimize constant pool references.
7513 (mips_legitimize_move): Call mips_legitimize_const_move. Attach
7514 a REG_EQUAL note to the last instruction.
7516 2003-02-11 Richard Sandiford <rsandifo@redhat.com>
7518 * config/mips/mips-protos.h (mips_simplify_dwarf_addr): Declare.
7519 * config/mips/mips.h (TARGET_EXPLICIT_RELOCS, TARGET_NEWABI): New.
7520 (ASM_SIMPLIFY_DWARF_ADDR): Define to mips_simplify_dwarf_addr.
7521 (EXTRA_CONSTRAINT): Allow symbolic call addresses for TARGET_ABICALLS.
7522 * config/mips/mips.md (UNSPEC_HIGH): New constant.
7523 (UNSPEC_RELOC_GPREL16): Rename to...
7524 (RELOC_GPREL16): ...this.
7525 (RELOC_GOT_HI, RELOC_GOT_LO, RELOC_GOT_PAGE, RELOC_GOT_DISP): New.
7526 (RELOC_CALL16, RELOC_CALL_HI, RELOC_CALL_LO): New.
7527 (macro_calls): New attribute.
7528 (length): Use it to set the default length of calls. Don't allow
7529 calls to have delay slots if macro_calls is "yes".
7530 (luisi, luidi): New patterns.
7531 (lowsi, lowdi): Use '%R' to print the relocation.
7532 (lowdi_extend): Remove.
7533 (loadgp): Remove mode from operand 0. Use '%0' instead of '%a0'.
7534 (call_internal): Merge alternatives. Always use "jal".
7535 (call_value_internal, call_value_multiple_internal): Likewise.
7536 (reloc_gprel16): Remove.
7537 * config/mips/mips.c (mips_got_alias_set): New variable.
7538 (mips_classify_constant): Handle the new relocation constants.
7539 (mips_classify_symbol): Reverse the sense of SYMBOL_REF_FLAG for PIC.
7540 (mips_symbolic_address_p): Return false if generating explicit relocs.
7541 Otherwise allow local PIC symbols to have an offset.
7542 (mips_splittable_symbol_p): New function.
7543 (mips_classify_address): Use it to check whether a LO_SUM is valid.
7544 (mips_const_insns): Always accept HIGH.
7545 (call_insn_operand): Don't accept global symbols if using explicit
7547 (move_operand): Don't accept HIGH when generating PIC.
7548 (mips_reloc, mips_lui_reloc): New functions.
7549 (mips_force_temporary): Remove MODE argument. Expect VALUE to
7550 be a valid right-hand-side for a SET pattern.
7551 (mips_load_got, mips_load_got16, mips_load_got32): New functions.
7552 (mips_emit_high): New function.
7553 (mips_legitimize_symbol): Use mips_reloc for the mips16 gp-relative
7554 case. Use mips_splittable_symbol_p to check whether a LO_SUM
7555 address should be used. Use mips_emit_high to generate the
7556 high part of such an address. Adjust the global symbol + offset
7557 case to match the change to mips_force_temprorary.
7558 (mips_legitimize_move): Shuffle call to mips_legitimize_symbol.
7559 If generating explicit-reloc PIC, load the address of global
7560 symbols from the GOT. Use mips_emit_high to emit the high part
7562 (mips_simplify_dwarf_addr): New function.
7563 (mips_move_1word): Use lwc1 instead of l.s and swc1 instead of s.s.
7564 (mips_move_2words): Likewise ldc1/l.d and sdc1/s.d if TARGET_64BIT.
7565 (mips_expand_call): Load the addresses of global functions using
7566 %call* relocs if generating explicit-reloc PIC. Don't generate
7567 an exception_receiver pattern.
7568 (override_options): Initialize mips_got_alias_set.
7569 (print_relocation): Remove in favor of...
7570 (mips_reloc_string): ...this new function.
7571 (print_operand): Handle '%R'. Use mips_reloc_string.
7572 (print_operand_address): Use print_operand to print the symbolic
7573 part of a LO_SUM address.
7574 (mips_output_function_prologue): Use .cprestore, reverting last patch.
7575 (mips_encode_section_info): Factor out DECL_RTL accesses. Reverse
7576 sense of SYMBOL_REF_FLAG for PIC, using binds_local_p to check
7579 2003-02-02 Eric Christopher <echristo@redhat.com>
7581 * config/mips/mips.c (mips_sign_extend): Remove.
7582 * config/mips/mips-protos.h: Ditto.
7583 * config/mips/mips.md (movdi_internal2_extend): Remove.
7584 (extendsidi2): Fix mode of convert_memory_address.
7586 2003-01-24 Eric Christopher <echristo@redhat.com>
7588 * config/mips/mips.md: Rewrite zero_extend* and extend*
7589 patterns. Use explicit instructions and split after reload
7590 for register extensions.
7591 (ashlsi3_internal1_extend): New combiner pattern for
7592 shift and extend combinations.
7593 * config/mips/mips.h: Change Pmode back to ptr_mode
7594 for performance enhancement.
7595 * combine.c (expand_compound_operation): Make sure
7596 that zero_extend operation is profitable.
7598 2003-01-14 Richard Sandiford <rsandifo@redhat.com>
7600 * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Make size of stored
7601 addresses depend on ptr_mode rather than Pmode.
7602 (TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT): Update acoordingly.
7603 (INITIALIZE_TRAMPOLINE): Rework to handle Pmode != ptr_mode.
7604 (CASE_VECTOR_MODE): Use ptr_mode for !TARGET_MIPS16.
7605 (ASM_OUTPUT_ADDR_VEC_ELT): Update accordingly.
7606 * config/mips/mips.md (tablejump): Likewise. Remove Pmode
7607 condition for selecting cpaddsi or cpadddi: use cpadd instead.
7608 (tablejump_internal1): Remove condition.
7609 (tablejump_internal2): Change condition to TARGET_64BIT.
7610 (cpaddsi): Rename to...
7614 2003-01-09 Richard Sandiford <rsandifo@redhat.com>
7616 * config/mips/mips-protos.h (mips16_constant_after_function_p,
7617 mips_address_cost, mips_check_split, double_memory_operand,
7618 mips16_gp_offset, mips16_gp_offset_p, mips16_constant,
7619 pic_address_needs_scratch, symbolic_operand): Remove declarations.
7620 (mips_legitimate_address_p): Return bool.
7621 (mips_address_insns, mips_fetch_insns, mips_const_insns,
7622 mips_legitimize_address, mips_legitimize_move,
7623 mips_expand_call): Declare.
7624 (mips_return_addr): Move outside #ifdef RTX_CODE.
7626 * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): New macro.
7627 (PIC_FN_ADDR_REG): New reg_class.
7628 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add corresponding entries.
7629 (GR_REG_CLASS_P): True for PIC_FN_ADDR_REG.
7630 (SMALL_OPERAND, SMALL_OPERAND_UNSIGNED, LUI_OPERAND,
7631 CONST_HIGH_PART, CONST_LOW_PART, LUI_INT): New macros.
7632 (SMALL_INT, SMALL_INT_UNSIGNED, CONST_OK_FOR_LETTER_P): Use new macros.
7633 (EXTRA_CONSTRAINTS): Give new meanings to Q, R and S.
7634 (CONSTANT_ADDRESS_P): Use mips_legitimate_address_p.
7635 (LEGITIMATE_PIC_OPERAND): Undefine.
7636 (LEGITIMATE_CONSTANT_P): Use mips_const_insns.
7637 (LEGITIMIZE_ADDRESS): Use mips_legitimize_address.
7638 (CONSTANT_AFTER_FUNCTION_P): Remove definition in #if 0 block.
7639 (FUNCTION_MODE): Change to SImode.
7640 (CONST_COSTS): Use mips_const_insns to calculate the cost of
7641 most constants. Treat const_artih_operands specially if they
7642 occur in a PLUS or MINUS.
7643 (CONSTANT_POOL_COST): New macro.
7644 (RTX_COSTS): Use mips_address_insns for MEMs, with a base cost of 2.
7645 Add LO_SUM handling.
7646 (ADDRESS_COST): Undefine.
7647 (PREDICATE_CODES): Add symbolic_operand and const_arith_operand.
7648 Add CONST to the list of codes for arith_operand. Add LABEL_REF
7649 to call_insn_operand and remove CONST_INT.
7651 * config/mips/mips.c: Include integrate.h.
7652 (SINGLE_WORD_MODE_P): New macro.
7653 (mips_constant_type, mips_symbol_type, mips_address_type): New enums.
7654 (mips_constant_info, mips_address_info): New structs.
7655 (mips_regno_to_class): Map $25 to PIC_FN_ADDR_REG.
7656 (mips_classify_constant, mips_classify_symbol,
7657 mips_valid_base_register_p, mips_symbolic_address_p,
7658 mips_classify_address, mips_symbol_insns,
7659 mips16_unextended_reference_p, mips_address_insns, mips_const_insns,
7660 mips_fetch_insns, mips_force_temporary, mips_add_offset,
7661 mips_legitimize_symbol, mips_legitimize_address, mips_legitimize_move,
7662 mips_print_relocation): New functions.
7663 (const_arith_operand): New operand predicate.
7664 (arith_operand): Use it.
7665 (mips_const_double_ok, mips16_simple_memory_operand,
7666 simple_memory_operand, double_memory_operand, mips_check_split,
7667 mips_address_cost, pic_address_needs_scratch, mips16_gp_offset,
7668 mips16_gp_offset_p, mips16_output_gp_offset,
7669 mips16_constant_after_function_p, mips16_constant): Remove.
7670 (call_insn_operand): Be more fussy about symbolic constants.
7671 Use register_operand.
7672 (move_operand): Use mips_symbolic_address_p to check symbolic
7673 operands and general_operand to check the rest.
7674 (symbolic_operand): Use mips_classify_constant.
7675 (mips_legitimate_address_p): Use mips_classify_address.
7676 (mips_move_1word): Combine handling of symbolic addresses.
7677 Remove special treatment of gp-relative loads for TARGET_MIPS16.
7678 (move_move_2words): Likewise. Assume addresses are offsettable
7679 if they need to refer to more than one word. Add HIGH handling.
7680 (mips_restore_gp): Use ptr_mode for the GP save slot.
7681 (mips_expand_call): New function, combining the old mips.md
7682 call and call_internal define_expands. If the address isn't
7683 a call_insn_operand, force it into a register. For SVR4 PIC,
7684 emit an exception_receiver instruction after the call.
7685 (override_options): Only override flag_pic for TARGET_ABICALLS
7686 if it is currently zero. Allow mips_split_addresses when
7687 Pmode == DImode too, except when ABI_HAS_64BIT_SYMBOLS.
7688 Add new register class letter, 'c'.
7689 (print_operand): Use mips_classify_constant for constant operands.
7690 (print_operand_address): Use mips_classify_address.
7691 (mips_output_function_prologue): Don't use .cprestore.
7692 (mips_expand_epilogue): For TARGET_MIPS16, only adjust the stack
7693 via the frame pointer if current_function_calls_eh_return.
7694 (mips_encode_section_info): For TARGET_ABICALLS, use SYMBOL_REF_FLAG
7695 to mark whether a symbol is local or global.
7696 (build_mips16_call_stub): Expect the address of the function rather
7697 than a MEM reference to it. Update call generation sequences.
7698 (mips16_optimize_gp): Remove Pmode checks. Temporarily disable
7699 small-data adjustments.
7701 * config/mips/mips.md: Remove 'R'/'m' memory distinction. Use default
7702 length for loads and stores.
7703 (UNSPEC_CPADD, UNSPEC_RELOC_GPREL16): New constants.
7704 (define_attr type): Add const and prefetch.
7705 (define_attr length): Use mips_const_insns for const instructions.
7706 Use mips_fetch_insns for load and store instructions.
7707 (define_attr single_insn): New.
7708 (define_attr can_delay): Use it.
7709 (define_attr abicalls): Remove.
7710 (define_delay): Use can_delay. Always allow calls to have delay slots.
7711 (addsi3_internal_2): Add 'Q' constraint.
7712 (movsi_ulw, movsi_usw, movdi_uld, movdi_usd): Set length to 8.
7714 (lowsi): Renamed from low.
7715 (lowdi): New pattern.
7716 (movdi, movsi): Use mips_legitimize_move. Remove define_split.
7717 (lwxc1, ldxc1, swxc1, sdxc1): Set length to 4.
7718 (loadgp): Change operand 0 to an immediate_operand.
7719 (tablejump): Use the same patterns for SVR4 PIC but emit a cpadd
7721 (cpaddsi, cpadddi): New patterns.
7722 (tablejump_internal3, tablejump_internal4): Remove define_expands
7723 and associated define_splits.
7724 (call, call_value): Use mips_expand_call.
7725 (call_internal): New, replacing all existing call_internal* insns.
7726 (call_value_internal): Likewise call_value_internal*.
7727 (call_value_multiple_internal): Likewise call_value_multiple_internal*.
7728 (untyped_call): Remove if (operands[0]) magic.
7729 (prefetch_si_address, prefetch_si): Change type to "prefetch".
7730 (prefetch_di_address, prefetch_di): Likewise.
7731 (leasi, leadi): Remove.
7732 (reloc_gprel16): New.
7734 * config/mips/5400.md (ir_vr54_hilo): Include const type.
7735 * config/mips/5500.md (ir_vr55_hilo): Likewise.
7736 * config/mips/sr71k.md (ir_sr70_hilo): Likewise.
7738 2003-01-08 Eric Christopher <echristo@redhat.com>
7740 * config.gcc (mipsisa32*): Change ABI_MEABI to ABI_EABI.
7741 * config/mips/elf.h (STARTFILE_SPEC): Remove ABI_MEABI references and
7742 configure check for libgloss.
7743 * config/mips/elf64.h: Ditto.
7744 * config/mips/mips.c: Remove ABI_MEABI.
7745 * config/mips/mips.h: Ditto.
7747 2002-11-05 Richard Sandiford <rsandifo@redhat.com>
7750 * config/mips/mips.md (mul_acc_si): Reapply 2002-10-16 change.
7751 (muldi3_internal): Remove outdated comment.
7752 (*muls_di, *umuls_di): Fix comment and 64-bitness.
7753 (*smsac_di, *umsac_di): Likewise. Reformat.
7754 (umulsi3_highpart): Minor formatting tweaks.
7755 (umulsi3_highpart_internal): Use only if !ISA_HAS_MULHI. Remove
7756 redundant scratch operand. Minor formatting tweak.
7757 (umulsi3_highpart_mulhi_internal): Use for !TARGET_64BIT as well.
7758 (umulsi3_highpart_neg_mulhi_internal): Likewise. Fix asm template.
7759 (smulsi3_highpart): As for the unsigned version.
7760 (smulsi3_highpart_internal): Likewise.
7761 (smulsi3_highpart_mulhi_internal): Likewise.
7762 (smulsi3_highpart_neg_mulhi_internal): Likewise.
7763 (smuldi3_highpart, umuldi3_highpart): Minor formatting tweaks.
7764 (*smul_acc_di): Remove duplicated pattern.
7765 (*umul_acc_di, *smul_acc_di): Reapply 2002-10-16 change.
7766 (anddi3) [unnamed mips16 pattern]: Remove reintroduced length.
7767 (zero_extendsidi2_internal2): Remove new, but commented-out pattern.
7769 2002-10-22 Eric Christopher <echristo@redhat.com>
7771 * config/mips/mips-protos.h (mips_return_addr): New.
7772 * config/mips/mips.c (mips_return_addr): New.
7773 (movdi_operand): Remove.
7774 (se_register_operand): Ditto.
7775 (se_reg_or_0_operand): Ditto.
7776 (se_uns_arith_operand): Ditto.
7777 (se_arith_operand): Ditto.
7778 (se_nonmemory_operand): Ditto.
7779 (extend_operator): Ditto.
7780 (highpart_shift_operator): Ditto.
7781 (mips_initial_elimination_offset): Remove return address pointer
7783 (mips_reg_names): Remove $ra.
7784 (mips_regno_to_class): Ditto.
7785 * config/mips/mips.h (POINTER_SIZE): Define based on TARGET_LONG64
7787 (POINTER_BOUNDARY): Remove.
7788 (POINTERS_EXTEND_UNSIGNED): Define to 0.
7789 (PROMOTE_MODE): Promote to Pmode.
7790 (SHORT_IMMEDIATES_SIGN_EXTEND): Define.
7791 (Pmode): Define to TARGET_64BIT.
7792 (FUNCTION_MODE): Define as Pmode.
7793 (mips_args): Remove deleted functions.
7794 (SIZE_TYPE): Depend on POINTER_SIZE.
7795 (PTRDIFF_TYPE): Ditto.
7796 (FIXED_REGISTERS): Fix extra registers.
7797 (CALL_USED_REGISTERS): Ditto.
7798 (CALL_REALLY_USED_REGISTERS): Ditto.
7799 (RAP_REG_NUM): Remove.
7800 (RETURN_ADDRESS_POINTER_REGNUM): Ditto.
7801 (RETURN_ADDR_RTX): Define to mips_return_addr.
7802 (ELIMINABLE_REGS): Remove RETURN_ADDRESS_POINTER_REGNUM.
7803 (CAN_ELIMINATE): Ditto.
7804 * config/mips/mips.md: For DImode patterns, take into account
7805 deletions above. Split mulsidi patterns into sign_extend and
7808 2002-10-16 Richard Sandiford <rsandifo@redhat.com>
7809 Michael Meissner <meissner@redhat.com>
7811 * config/mips/mips.h (ISA_HAS_MACC): True for normal-mode vr4120 code.
7812 * config/mips/mips.md (mulsi3_mult3): Add a define_peephole2 to
7813 mop up unnecessarly moves through LO.
7814 (*mul_acc_si): Remove vr5400 and vr5500 handling from here.
7815 (*macc): New pattern for ISA_HAS_MACC. Add define_peephole2s to
7816 change mtlo/macc sequences into mul/add sequences when a three-
7817 address mul is available.
7818 (*macc2): New pattern. Add a define_peephole2 to generate it.
7819 (*mul_sub_si): Fix contraint for operand 5.
7820 (*muls): Use in 32-bit code as well.
7821 (*msac): Likewise. Use msub instead of msac in vr5500 code
7822 if the destination is LO. Remove duplicate define_split.
7823 (*muls_di): Use only in 32-bit code. Adjust rtl accordingly.
7824 (*msac_di): Likewise. Fix formatting.
7825 (smulsi3_highpart, umulsi3_highpart): Use mulhi in 32-bit code too.
7826 (*xmulsi3_highpart_internal): Use only if !ISA_HAS_MULHI.
7827 (*xmulsi3_highpart_mulhi): Use even if !TARGET_64BIT.
7828 (*xmulsi3_neg_highpart_mulhi): Likewise.
7829 (*mul_acc_64bit_di): Remove.
7830 (*mul_acc_di): Use only in 32-bit code. Handle ISA_HAS_MACC as well.
7832 2002-10-14 Richard Sandiford <rsandifo@redhat.com>
7834 * config/mips/vr.h (DRIVER_SELF_SPECS): Define.
7835 * config/mips/t-vr (MULTILIB_OPTIONS): Remove mlong32.
7836 (MULTILIB_DIRNAMES): Remove long32.
7837 (MULTILIB_EXCEPTIONS): Don't build -mabi=32 -mgp32 multilibs.
7838 (MULTILIB_REDUNDANT_DIRS): Remove.
7840 2002-10-14 Richard Sandiford <rsandifo@redhat.com>
7842 * doc/tm.texi (DRIVER_SELF_SPECS): Document.
7843 * gcc.c (driver_self_specs): New variable.
7844 (do_self_spec): New function.
7845 (main): Use it to process driver_self_specs.
7847 2002-10-09 Richard Sandiford <rsandifo@redhat.com>
7849 * config/mips/mips.md (one_cmpldi2): Use only if TARGET_64BIT.
7850 Remove DImode define_split for !TARGET_64BIT.
7851 (anddi3): Remove !TARGET_64BIT support from here as well.
7852 Change operand 2's predicate to se_uns_arith_operand.
7853 Add constant alternatives to define_insn.
7854 (iordi3, xordi3, *nordi3): Likewise.
7855 (anddi3_internal1, xordi3_immed): Remove.
7857 2002-10-01 Richard Sandiford <rsandifo@redhat.com>
7859 * config/mips/mips.h (PROCESSOR_R4121): Rename to PROCESSOR_R4120.
7860 (TARGET_MIPS4121): Rename to TARGET_MIPS4120.
7861 * config/mips/mips.c (mips_cpu_info): Rename vr4121 to vr4120.
7862 * config/mips/mips.md: Apply same renaming here.
7864 2002-10-01 Richard Sandiford <rsandifo@redhat.com>
7866 * config/mips/mips.c (PROCESSOR_R4320, TARGET_MIPS4320): Remove.
7867 (GENERATE_MULT3_SI): Remove use of TARGET_MIPS4320.
7868 * config/mips/mips.c (mips_cpu_info): Remove vr4320 entry.
7869 * config/mips/mips.md (define_attr cpu): Remove r4320.
7870 Remove vr4320 scheduler and uses of TARGET_MIPS4320.
7872 2002-10-01 Richard Sandiford <rsandifo@redhat.com>
7874 * config/mips/mips.c (mips16_strings): New variable.
7875 (mips_output_function_epilogue): Clear the SYMBOL_REF_FLAG of every
7876 symbol in mips16_strings. Free the list.
7877 (mips_encode_section_info): Keep track of local strings.
7879 2002-10-01 Richard Sandiford <rsandifo@redhat.com>
7881 * config/mips/mips.md (bunge, bltgt, bungt): New define_expands.
7882 (sordered_df, sordered_sf): Remove.
7883 * config/mips/mips.c (get_float_compare_codes): New fn.
7884 (gen_int_relational, gen_conditional_move): Use it.
7886 2002-10-01 Richard Sandiford <rsandifo@redhat.com>
7888 * config/mips/mips-protos.h (mips_emit_fcc_reload): Declare.
7889 * config/mips/mips.h (PREDICATE_CODES): Add fcc_register_operand.
7890 * config/mips/mips.c (fcc_register_operand): New function.
7891 (mips_emit_fcc_reload): New function, extracted from reload_incc.
7892 (override_options): Allow TFmode values in float registers
7894 * cnfig/mips/mips.md (reload_incc): Change destination prediate
7895 to fcc_register_operand. Remove misleading source constraint.
7896 Use mips_emit_fcc_reload.
7897 (reload_outcc): Duplicate reload_incc.
7900 2003-04-30 Diego Novillo <dnovillo@redhat.com>
7902 * builtins.def (BUILTIN_CONSTANT_P): Mark as constant.
7904 2003-04-30 Geoffrey Keating <geoffk@apple.com>
7906 * tree-inline.c (inlinable_function_p): Back out last change, it's
7909 2003-04-30 Steven Bosscher <steven@gcc.gnu.org>
7911 * ggc-page.c (TREE_EXP_SIZE): Define.
7912 (extra_order_size_table): New entry for expr trees with
7915 2003-04-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
7917 * c-common.c (if_elt): Use location_t in lieu of "file, line" pair.
7918 (c_expand_start_cond): Adjust.
7919 (c_expand_end_cond): Don't use warning_with_file_and_file.
7920 (shadow_warning): Likewise.
7922 2003-04-30 Nathan Sidwell <nathan@codesourcery.com>
7924 * tree.h (DECL_POINTER_DEPTH): Remove.
7925 (struct tree_decl): Remove pointer_depth.
7927 2003-04-30 Janis Johnson <janis187@us.ibm.com>
7929 * config/rs6000/linux64.h (ASM_OUTPUT_LABELREF): Remove.
7930 * config/rs6000/rs6000.c (rs6000_elf_strip_name_encoding): Remove.
7931 (rs6000_xcoff_encode_section_info): Remove.
7932 (current_file_function_operand): Use SYMBOL_REF_FLAGS; fix latent bug.
7933 (rs6000_output_mi_thunk): Remove dead code; use SYMBOL_REF_FLAGS.
7934 (small_data_operand, rs6000_emit_move, rs6000_elf_in_small_data_p,):
7935 Use SYMBOL_REF_FLAGS.
7936 (rs6000_elf_encode_section_info): Call default_encode_section_info for
7937 generic flags, use SYMBOL_REF_FLAGS; code cleanups.
7938 * sysv4.h (TARGET_STRIP_NAME_ENCODING, ASM_OUTPUT_LABELREF): Remove.
7939 (SYMBOL_FLAG_SMALL_V4, SYMBOL_REF_SMALL_V4_P): New.
7940 * xcoff.h (TARGET_ENCODE_SECTION_INFO): Remove.
7941 (ASM_DECLARE_FUNCTION_NAME): Remove setting of SYMBOL_REF_FLAG.
7943 2003-04-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
7945 * diagnostic.c (output_pointer): Use HOST_PTR_PRINTF.
7947 2003-04-30 Andreas Schwab <schwab@suse.de>
7949 * doc/extend.texi (Other Builtins): Enclose multiple word data
7950 type in braces for @deftypefn.
7952 2003-04-30 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7954 * stor-layout.c (mode_for_size_tree): Use BLKmode if SIZE overflows.
7956 * doc/install.texi (--enable-threads): Document "gnat" option.
7958 2003-04-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
7960 * diagnostic.h (output_formatted_scalar): Tweak.
7961 * diagnostic.c (output_long_decimal): Likewise.
7962 (output_unsigned_decimal): Likewise.
7963 (output_long_unsigned_decimal): Likewise.
7964 (output_octal): Likewise.
7965 (output_long_octal): Likewise.
7966 (output_hexadecimal): Likewise.
7967 (output_long_hexadecimal): Likewise.
7968 (output_pointer): New function.
7969 (output_format): Use it. Recognize "%p" format specifier.
7971 2003-04-30 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7973 * function.c (purge_addressof_1): Postpone insn in fewer cases.
7975 2003-04-29 Geoffrey Keating <geoffk@apple.com>
7977 * config/rs6000/host-darwin.c (segv_handler): When -dH is used,
7978 call abort() after running out of stack space.
7980 * c-typeck.c (function_types_compatible_p): Ignore incompatible
7981 'volatile' qualifiers on a function's return type in GNU mode.
7983 2003-04-29 Aldy Hernandez <aldyh@redhat.com>
7985 * expr.c (emit_group_load): Dump parallels of simd types to
7988 2003-04-29 Vladimir Makarov <vmakarov@redhat.com>
7990 * genautomata.c (add_vect): Check undefined value for range type
7993 2003-04-29 Phil Edwards <pme@gcc.gnu.org>
7995 * configure.in: More general test for cmp --ignore-initial.
7996 * configure: Regenerate.
7998 2003-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8000 * stor-layout.c (mode_for_size_tree): Use tree_low_cst.
8001 (layout_decl, place_field): Likewise.
8002 Also make minor type and whitespace changes.
8004 * tree.c (save_expr): Don't fold a COMPONENT_REF.
8006 2003-04-29 Olivier Hainque <hainque@act-europe.fr>
8008 * calls.c (expand_call): When modes of target and valreg match, force
8009 sibcall failure when target is a MEM.
8011 2003-04-29 Geoffrey Keating <geoffk@apple.com>
8013 * tree-inline.c (inlinable_function_p): Don't support inlining
8014 functions using varargs.
8016 * doc/invoke.texi (Overall Options): Mention -x objective-c-header.
8018 * dwarf2out.c (output_call_frame_info): No need to output EH
8019 unwind information if all_throwers_are_sibcalls.
8021 * c-semantics.c (expand_unreachable_stmt): Return a tree.
8022 (expand_stmt): Update for change to expand_unreachable_stmt.
8023 (expand_unreachable_if_stmt): Likewise.
8025 * Makefile.in (quickstrap): Pass BOOT_CFLAGS to submake.
8027 2003-04-29 Jason Merrill <jason@redhat.com>
8030 * jump.c (never_reached_warning): Really stop looking if we reach
8031 the beginning of the function.
8033 2003-04-29 Bob Wilson <bob.wilson@acm.org>
8035 * config/xtensa/elf.h (SIZE_TYPE, PTRDIFF_TYPE, USER_LABEL_PREFIX):
8036 Remove redundant macros.
8037 (WCHAR_TYPE, WCHAR_TYPE_SIZE): Change to "short unsigned int".
8038 (LOCAL_LABEL_PREFIX): Define unconditionally.
8039 (NO_DOT_IN_LABEL): Clarify comment.
8040 * config/xtensa/linux.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Add explicit
8041 definition to "long int".
8043 2003-04-29 Alexander Kabaev <kan@FreeBSD.ORG>
8046 * gengtype-yacc.y: Improve portability.
8048 2003-04-29 Zack Weinberg <zack@codesourcery.com>
8050 * config.gcc: Install obsolete target list for GCC 3.3.
8051 * doc/install.texi: Mention in specific-target instructions
8052 that certain configurations are deprecated.
8054 2003-04-29 Zack Weinberg <zack@codesourcery.com>
8056 * tree.h: Delete no-checking definition of CST_OR_CONSTRUCTOR_CHECK.
8058 2003-04-29 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
8060 * c-pragma.c (maybe_apply_renaming_pragma): Fix typo.
8061 * gcc.c (display_help): Likewise.
8062 * toplev.c (f_options): Likewise.
8063 * params.def (PARAM_MAX_INLINE_SCOPE): Likewise.
8064 * config/c4x/c4x.h (TARGET_SWITCHES): Likewise.
8065 * config/mcore/mcore.h (TARGET_SWITCHES): Likewise.
8066 * config/s390/s390.h (TARGET_SWITCHES): Likewise.
8067 * config/v850/v850.h (TARGET_SWITCHES): Likewise.
8069 2003-04-29 J"orn Rennecke <joern.rennecke@superh.com>
8071 * varasm.c (default_assemble_visibility): Use assemble_name.
8073 2003-04-29 David O'Brien <obrien@FreeBSD.org>
8075 * config/i386/freebsd64.h (LINK_SPEC): Mirror FreeBSD linker.
8076 * config/rs6000/freebsd.h (LINK_SHLIB_SPEC): New macro.
8077 (SIZE_TYPE): New macro.
8078 * config/i386/freebsd-aout.h (NO_PROFILE_COUNTERS): New macro.
8079 (SET_ASM_OP): New macro.
8080 (HANDLE_SYSV_PRAGMA): New macro.
8081 (ASM_WEAKEN_LABEL): New macro.
8083 2003-04-28 Mark Mitchell <mark@codesourcery.com>
8086 * tree-inline.c (expand_call_inline): Call push_srcloc when
8087 encountering EXPR_WITH_FILE_LOCATION. Honor warn_inline.
8089 2003-04-28 Mike Stump <mrs@apple.com>
8091 * gdbinit.in: Update to reflect new identifier structure.
8093 2003-04-28 Zack Weinberg <zack@codesourcery.com>
8095 * tree.h (TREE_CST_RTL, CST_OR_CONSTRUCTOR_CHECK): Delete.
8096 (struct tree_int_cst, struct tree_real_cst, struct tree_string,
8097 struct tree_complex, struct tree_vector): Remove RTL field.
8098 (CONSTRUCTOR_ELTS): Use elt 0.
8099 * tree.def (CONSTRUCTOR): Delete first of its two operands.
8100 * varasm.c (output_constant_def): Remove early exit if
8101 TREE_CST_RTL is set. Don't set TREE_CST_RTL.
8102 (decode_addr_const): Don't mention TREE_CST_RTL in comment.
8103 * target.h (select_section): Don't mention TREE_CST_RTL in comment.
8104 * doc/tm.texi (encode_section_info): Don't talk about TREE_CST_RTL.
8106 2003-04-28 Jakub Jelinek <jakub@redhat.com>
8108 * c-decl.c (finish_decl): When prototype with asmspec is found
8109 for built-in, adjust built_in_decls as well as expr.c decls.
8110 * expr.c (init_block_move_fn, init_block_clear_fn): New functions.
8111 (emit_block_move_libcall_fn, clear_storage_libcall_fn): Use it.
8112 * expr.c (init_block_move_fn, init_block_clear_fn): New prototypes.
8114 2003-04-28 Richard Henderson <rth@redhat.com>
8116 * config/sparc/sparc.c (print_operand): Add 's' to sign-extend.
8117 * config/sparc/sparc.md (const_mulsidi3_v8plus): Fix mode of
8118 integral constant mult operand.
8119 (const_mulsidi3_sp32, const_mulsidi3_sp64): Likewise.
8120 (const_smulsi3_highpart_v8plus): Likewise.
8121 (const_smulsi3_highpart): Likewise.
8122 (const_umulsidi3_sp32): Likewise; sign-extend it in the output.
8123 (const_umulsidi3_sp64, const_umulsidi3_v8plus): Likewise.
8124 (const_umulsi3_highpart_v8plus): Likewise.
8125 (const_umulsi3_highpart): Likewise.
8127 2003-04-28 David O'Brien <obrien@FreeBSD.org>
8129 * config/i386/x86-64.h (NO_PROFILE_COUNTERS, HAVE_AS_DWARF2_DEBUG_LINE):
8132 2003-04-28 David O'Brien <obrien@FreeBSD.org>
8134 * config/i386/i386.h (builtin_define): Add __amd64 and __amd64__.
8136 2003-04-28 Jakub Jelinek <jakub@redhat.com>
8138 * builtins.def (BUILT_IN_BCOPY, BUILT_IN_MEMMOVE): New.
8139 * builtin-types.def (BT_FN_VOID_CONST_PTR_PTR_SIZE): New.
8140 * builtins.c (expand_builtin_memmove, expand_builtin_bcopy): New
8142 (expand_builtin): Handle BUILT_IN_BCOPY and BUILT_IN_MEMMOVE.
8144 2003-04-28 Nick Clifton <nickc@redhat.com>
8146 * config/arm/elf.h (ASM_OUTPUT_ALIGNED_COMMON): Remove definition.
8148 2003-04-27 Zack Weinberg <zack@codesourcery.com>
8150 * expr.c (expand_expr <COMPLEX_CST, STRING_CST>): Always call
8151 output_constant_def, use its result instead of TREE_CST_RTL (exp).
8152 Can assume it has the form (mem (symbol_ref ".LCxxx")).
8153 (expand_expr <COMPONENT_REF>): Can always just extract the
8154 relevant field of a CONSTRUCTOR.
8155 (expand_expr <ARRAY_REF, COMPONENT_REF, BIT_FIELD_REF,
8156 ARRAY_RANGE_REF>): Make control flow explicit.
8157 * varasm.c (output_constant_def): Can look at TREE_CST_RTL of
8160 2003-04-27 Kazu Hirata <kazu@cs.umass.edu>
8162 * reload1.c (reg_set_luid): Fix a comment typo.
8164 2003-04-27 Zack Weinberg <zack@codesourcery.com>
8166 * varasm.c (const_str_htab_hash, const_str_htab_eq, STRHASH,
8167 struct deferred_string, const_str_htab): Kill.
8168 (n_deferred_strings): New static variable.
8169 (build_constant_desc): Set SYMBOL_REF_DECL of the new
8170 symbol_ref to point to the constant.
8171 (output_constant_def): When a deferred string is forced out,
8172 just clear STRING_POOL_ADDRESS_P and decrement n_deferred_strings.
8173 (mark_constant): Likewise.
8174 (maybe_output_constant_def_contents): When deferring a string
8175 constant, just set STRING_POOL_ADDRESS_P and increment
8177 (mark_constant_pool): Check n_deferred_strings, not the size
8179 (init_varasm_once): No need to create const_str_htab.
8181 * rtl.def, rtl.h, doc/rtl.texi: Document possibility that
8182 SYMBOL_REF_DECL points to a constant.
8184 2003-04-26 Zack Weinberg <zack@codesourcery.com>
8186 * varasm.c (output_constant_def): Split out two new static
8187 functions, build_constant_desc and maybe_output_constant_def_contents.
8188 Restructure for comprehensibility. Don't call
8189 output_addressed_constants. Treat defstr being non-NULL for
8190 STRING_POOL_ADDRESS_P constants as an invariant.
8191 (struct deferred_string): Remove labelno field.
8192 (output_constant_def_contents): Kill labelno argument. Call
8193 output_addressed_constants here. Use ASM_OUTPUT_LABEL, not
8194 asm_out.internal_label.
8195 (mark_constant): Update call to output_constant_def_contents.
8196 Treat defstr being non-NULL for STRING_POOL_ADDRESS_P
8197 constants as an invariant.
8199 2003-04-26 Richard Henderson <rth@redhat.com>
8201 * config/i386/i386.c (output_pic_addr_const): Use SYMBOL_REF_LOCAL_P.
8202 (ix86_expand_call, ix86_rtx_consts): Likewise.
8204 2003-04-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8206 * doc/md.texi (cmpstr): Document additional restrictions.
8208 2003-04-26 Neil Booth <neil@daikokuya.co.uk>
8210 * flags.h (time_report): Remove.
8211 * timevar.c (timevar_enable): New.
8212 (TIMEVAR_ENABLE): Remove, use timevar_enable.
8213 (timevar_init): Rename from init_timevar.
8214 * timevar.h (timevar_init): Rename from init_timevar.
8215 * toplev.c (time_report): Make static.
8216 (do_compile): Conditionally call init_timevar first.
8217 (preprocess_options): Move some code to do_compile.
8219 2003-04-26 Stephane Carrez <stcarrez@nerim.fr>
8221 * doc/install.texi (Binaries): Mention binaries for HC11/HC12.
8223 2003-04-26 Neil Booth <neil@daikokuya.co.uk>
8225 * _cpp_lex_direct: Remove pointless code.
8227 2003-04-26 Stephane Carrez <stcarrez@nerim.fr>
8229 * doc/extend.texi (Function Attributes): Document "near" and "far"
8230 for 68HC11 and 68HC12.
8232 2003-04-25 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8234 * expr.c (store_field): When making temporary for store, don't
8235 make it TYPE_QUAL_CONST.
8237 2003-04-25 Phil Edwards <pme@gcc.gnu.org>
8239 * toplev.c (read_integral_parameter): Use "argument" in error
8240 message to distinguish it from actual invalid options.
8242 2003-04-25 Bob Wilson <bob.wilson@acm.org>
8244 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Back out previous
8245 addition of __PIC__ and __pic__ macros.
8246 * config/xtensa/xtensa.h: Clean up indentation.
8248 2003-04-25 Bob Wilson <bob.wilson@acm.org>
8250 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Remove definition of
8251 _GNU_SOURCE. Add definitions of __PIC__ and __pic__.
8252 (SUBTARGET_CPP_SPEC): Define.
8254 * config/xtensa/xtensa-protos.h (xtensa_declare_object): Delete.
8255 * config/xtensa/xtensa.c (xtensa_declare_object): Delete.
8256 * config/xtensa/xtensa.h (CPP_SPEC, SUBTARGET_CPP_SPEC, EXTRA_SPECS):
8258 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
8259 (ASM_OUTPUT_ALIGNED_BSS, BSS_SECTION_ASM_OP): Define.
8261 2003-04-25 H.J. Lu <hjl@gnu.org>
8263 * config/ia64/ia64.c (ia64_expand_compare_and_swap): Add rmode
8265 (ia64_expand_builtin): Set rmode to SImode for
8266 IA64_BUILTIN_BOOL_COMPARE_AND_SWAP_SI,
8267 IA64_BUILTIN_VAL_COMPARE_AND_SWAP_SI and
8268 IA64_BUILTIN_BOOL_COMPARE_AND_SWAP_DI. Set remode to DImode
8269 for IA64_BUILTIN_VAL_COMPARE_AND_SWAP_DI.
8271 2003-04-25 Phil Edwards <pme@gcc.gnu.org>
8273 * configure.in (make_compare_target): Test for GNU cmp and set this
8274 variable appropriately.
8275 * Makefile.in (compare, compare3, compare4, compare-lean, compare3-lean,
8276 compare4-lean): Rename actual targets to slowcompare*. New compare*
8277 targets depend on names based on make_compare_target.
8278 * configure: Regenerated.
8280 2003-04-25 Richard Henderson <rth@redhat.com>
8282 * config/ia64/ia64.c (ia64_compute_frame_size): Allow inline asm
8283 to clobber ar.pfs and ar.unat.
8284 (ia64_expand_prologue): Force alloc instruction if ar.pfs saved;
8285 fix test for spilling ar.pfs to the stack.
8287 2003-04-25 Richard Henderson <rth@redhat.com>
8290 * config/rs6000/rs6000.c (rs6000_emit_move): Only elide proper
8291 checks during reload; use validize_mem instead of adjust_address.
8293 2003-04-26 Ben Elliston <bje@wasabisystems.com>
8295 * config/arm/arm.c (arm_adjust_cost): Correct logic that tests the
8296 return values from recog_memoized().
8298 2003-04-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8301 * gcse.c (try_replace_reg): On a successful substitution of a constant
8302 into a single set, try to simplify the source of the set.
8303 * loop.c (scan_loop): Don't try to optimize a MODE_CC set with a
8306 2003-04-24 Neil Booth <neil@daikokuya.co.uk>
8308 * cpplex.c (cpp_token_len): Tighten up.
8309 (cpp_token_as_text): Need extra byte now.
8310 * cpplib.c (glue_header_name): Need extra 2 bytes.
8311 * cppmacro.c (cpp_macro_definition): Need extra byte.
8313 2003-04-24 Alexander Kabaev <kan@FreeBSD.ORG>
8315 * config/sparc/sparc.md (umulsidi3, mulsidi3): Avoid using
8316 const_umulsidi3_sp32 and const_mulsidi3_sp32 on 64bit targets
8317 where they might be not present. Use their _sp64 equivalent
8320 Thu Apr 24 20:42:12 CEST 2003 Jan Hubicka <jh@suse.cz>
8322 * i386.md (cvtsi2sdq): Fix typo in previous patch.
8324 2003-04-24 Krister Walfridsson <cato@df.lth.se>
8326 * configure.in: Check whether mbstowcs works.
8327 * configure, config.in: Regenerate.
8328 * intl.c: Use HAVE_WORKING_MBSTOWCS.
8330 2003-04-24 H.J. Lu <hjl@gnu.org>
8332 * config/ia64/ia64.c (ia64_init_builtins): Add si_ftype_pdi_di_di
8333 for __sync_bool_compare_and_swap_di for int return type.
8335 * config/ia64/ia64intrin.h (__sync_bool_compare_and_swap_di):
8336 Change return type to int.
8337 (__sync_bool_compare_and_swap): Likewise.
8339 Thu Apr 24 16:55:26 CEST 2003 Jan Hubicka <jh@suse.cz>
8341 * cfgbuild.c (make_edges): Do not use next_nonnote_insn when
8342 looking for fallthru edge.
8344 * athlon.md (athlon-agu, athlon-store, athlon-fany, athlon-faddmul):
8346 (athlon-load2, athlon-store2, athlon-fpsched, athlon-fpload,
8347 athlon-fvector): New.
8348 (athlon_*): Revisit to match new optimization guide.
8349 * i386.c (ix86_adjust_cost): Fix memory operand costs on Athlon/k8
8350 * i386.md (cvt??2?? patterns): Fix modes.
8351 (fistp patterns): Set modes.
8353 Accidentaly commited with my earlier reload patch:
8355 * reload.c (find_reloads_address_1): Reload plus at the place of
8358 2003-04-24 Nathan Sidwell <nathan@codesourcery.com>
8360 New GCOV_TAG_FUNCTION layout
8361 * coverage.c (struct function_list): Replace name with ident.
8362 (struct counts_entry): Likewise.
8364 (htab_counts_entry_hash, htab_counts_entry_eq,
8365 htab_counts_entry_del): Adjust.
8366 (reads_count_file, get_coverage_counts,
8367 coverage_begin_output, coverage_end_function): Adjust.
8368 (build_fn_info_type, build_fn_info_value): Likewise.
8369 * gcov-dump.c (tag_function): Adjust.
8370 * gcov-io.c (gcov_write_string, gcov_read_string): Not in LIBGCOV.
8371 * gcov-io.h (gcov_write_string, gcov_read_string): Not in LIBGCOV.
8372 * gcov.c (struct function_info): Add ident.
8373 (read_graph_file, read_count_file): Adjust.
8374 * libgcov.c (gcov_exit): Adjust.
8376 2003-04-23 Richard Henderson <rth@redhat.com>
8379 * toplev.c (rest_of_compilation): Delay no_new_pseudos until
8380 after initialize_uninitialized_subregs; update reg info assuming
8381 new pseudos were created.
8383 2003-04-23 Neil Booth <neil@daikokuya.co.uk>
8385 * Makefile.in (c-lex.o, LIBCPP_OBJS, cpplex.o): Update.
8386 * c-lex.c (MULTIBYTE_CHARS): Remove conditionals.
8387 (lex_string): Take cpp_string with full spelling.
8389 (c_lex): Update diagnostics.
8390 * cpplex.c (SPELL_NUMBER, SPELL_STRING): Combine into SPELL_LITERAL.
8391 (create_literal): New.
8392 (lex_string): Unterminated literals have type CPP_OTHER.
8393 (_cpp_lex_direct): Update calls to lex_string. Use create_literal
8395 (cpp_token_len, cpp_spell_token, cpp_output_token): Simplify.
8396 (_cpp_equiv_tokens, cpp_interpret_charconst): Update.
8397 * cpplib.c (parse_include, do_line, do_linemarker,
8398 destringize_and_run): Update for token storing full spelling.
8399 * cpplib.h: Update token spelling types.
8400 * cppmacro.c (stringify_arg, check_trad_stringification):
8401 Update for token storing full spelling.
8403 2003-04-23 Ulrich Weigand <uweigand@de.ibm.com>
8405 * config/s390/s390.c (s390_expand_cmpstr): Disable CLC loop.
8407 2003-04-23 Richard Earnshaw <rearnsha@arm.com>
8409 * arm.h (TARGET_OPTIONS): Add value field.
8411 2003-04-23 Mark Mitchell <mark@codesourcery.com>
8413 * doc/extend.texi: Remove duplicate 2003 copyright date.
8415 2003-04-23 Nathan Sidwell <nathan@codesourcery.com>
8417 * Makefile.in (LIBGCC_DEPS): Add gcov headers.
8418 (libgcov.a): Depends on LIBGCC_DEPS.
8419 * basic-block.h (profile_info): Moved here from coverage.h. Made
8421 * coverage.c (struct function_list): Fixed array of counter types.
8422 (struct counts_entry): Keyed by counter type, contains summary.
8423 (profile_info): Moved to profile.c.
8424 (prg_ctr_mask, prg_n_ctrs, fn_ctr_mask, fn_n_ctrs): New global
8426 (profiler_label): Remove.
8428 (set_purpose, label_for_tag, build_counter_section_fields,
8429 build_counter_section_value, build_counter_section_data_fields,
8430 build_counter_section_data_values, build_function_info_fields,
8431 build_function_info_value, gcov_info_fields, gcov_info_value): Remove.
8432 (build_fn_info_type, build_fn_info_value, build_ctr_info_type,
8433 build_ctr_info_value, build_gcov_info): New.
8434 (htab_counts_entry_hash, htab_counts_entry_eq): Adjust.
8435 (reads_counts_file): Adjust.
8436 (get_coverage_counts): Takes counter number. Add summary
8438 (coverage_counter_ref): Tkaes counter number. Adjust. Lazily
8439 create counter array labels.
8440 (coverage_end_function): Adjust.
8441 (create_coverage): Adjust.
8442 (find_counters_section): Remove.
8443 * coverage.h (MAX_COUNTER_SECTIONS): Remove.
8444 (struct section_info, struct profile_info): Remove.
8445 (profile_info): Moved to basic-block.h.
8446 (coverage_counter_ref): Takes a counter number.
8447 (get_coverage_counts): Takes a counter number. Added summary
8449 (find_counters_section): Remove.
8450 * gcov-dump.c (tag_arc_counts): Rename to ...
8451 (tag_counters): ... here. Adjust.
8452 (tag_table): Move tag_counters to 3rd entry. Remove
8453 PROGRAM_PLACEHOLDER and PROGRAM_INCORRECT entries.
8454 (dump_file): Check for counter tag values here.
8455 (tag_summary): Adjust.
8456 * gcov-io.c (gcov_write_summary, gcov_read_summary): Adjust.
8457 * gcov-io.h (GCOV_LOCKED): New.
8458 (GCOV_TAG_ARC_COUNTS): Rename to ...
8459 (GCOV_TAG_COUNTS_BASE): ... here.
8460 (GCOV_TAG_PLACEHOLDER_SUMMARY, GCOV_TAG_INCORRECT_SUMMARY):
8462 (GCOV_COUNTER_ARCS, GCOV_COUNTERS, GCOV_NAMES): New.
8463 (GCOV_TAG_FOR_COUNTER, GCOV_COUNTER_FOR_TAG,
8464 GCOV_TAG_IS_COUNTER): New.
8465 (struct gcov_ctr_summary): New.
8466 (struct gcov_summary): Adjust.
8467 (struct gcov_counter_section): Remove.
8468 struct gcov_counter_section_data): Remove.
8469 (struct gcov_function_info): Rename to ...
8470 (struct gcov_fn_info): ... here. Adjust.
8471 (struct gcov_ctr_info): New.
8472 (struct gcov_info): Adjust.
8473 * gcov.c (read_count_file): Adjust.
8474 (output_lines): Adjust.
8475 * libgcov.c (gcov_exit): Adjust.
8476 (__gcov_flush): Adjust.
8477 * mklibgcc.in (libgcc2_c_dep): Add gcov headers.
8478 * predict.c (maybe_hot_bb_p, probably_cold_bb_p,
8479 probably_never_executed_bb_p, compute_frequency_function): Adjust
8481 * profile.c (struct counts_entry): Remove.
8482 (profile_info): Define here.
8483 (get_exec_counts): Adjust get_coverage_counts call.
8484 (compute_branch_probablilities): Remove find_counters_section
8486 (gen_edge_profiler): Adjust coverage_counter_ref call.
8487 * tracer.c (tail_duplicate): Adjust profile_info use.
8489 2003-04-23 Roger Sayle <roger@eyesopen.com>
8491 PR optimization/10339
8492 * builtins.c (expand_builtin_strcmp): Try to emit cmpstrsi insn
8493 directly instead of unsafely transforming call into a memcmp.
8494 (expand_builtin_strncmp): Likewise.
8496 2003-04-22 Roger Sayle <roger@eyesopen.com>
8498 * alias.c (mark_constant_function): Check for constancy and
8499 purity even of void functions. Update both the function decl
8500 and the cgraph RTL info with the results.
8502 2003-04-22 Roger Sayle <roger@eyesopen.com>
8504 * real.c (do_add): Change to return a bool indicating that the
8505 result of the operation may be inexact due to loss of precision.
8506 (do_multiply): Likewise.
8507 (do_divide): Likewise.
8509 2003-04-22 Geoffrey Keating <geoffk@apple.com>
8510 Loren James Rittle <ljrittle@acm.org>
8512 * dwarf2out.c (fde_table_allocated): Mark with GTY.
8513 (decl_die_table_allocated): Likewise.
8514 (abbrev_die_table_allocated): Likewise.
8515 (line_info_table_allocated): Likewise.
8516 (separate_line_info_table_allocated): Likewise.
8517 (pubname_table_allocated): Likewise.
8518 (arange_table_allocated): Likewise.
8519 (ranges_table_allocated): Likewise.
8520 (decl_die_table_in_use): Unconditionalize; mark with GTY.
8521 (abbrev_die_table_in_use): Likewise.
8522 (line_info_table_in_use): Likewise.
8523 (separate_line_info_table_in_use): Likewise.
8524 (pubname_table_in_use): Likewise.
8525 (arange_table_in_use): Likewise.
8526 (ranges_table_in_use): Likewise.
8527 (have_location_lists): Likewise.
8528 (emitcount): New GTY-marked static, moved...
8529 (maybe_emit_file): ...from here.
8530 (label_num): New GTY-marked static, moved...
8531 (gen_internal_sym): ...from here.
8533 2003-04-22 Richard Henderson <rth@redhat.com>
8536 * rtl.h (MEM_NOTRAP_P): New.
8537 (MEM_COPY_ATTRIBUTES): Copy it.
8538 * rtlanal.c (may_trap_p): Check it.
8539 * expr.c (do_tablejump): Set it.
8540 * doc/rtl.texi (Flags): Document it.
8542 * cfgrtl.c (try_redirect_by_replacing_jump): Revert last three changes.
8544 2003-04-22 Olivier Hainque <hainque@act-europe.fr>
8546 * config/alpha/alpha.c (alpha_expand_prologue [OPEN_VMS_ABI]): Don't
8547 set FRP on stack adjustment for outgoing args if frame_pointer_needed.
8549 2003-04-22 Vincent Celier <celier@gnat.com>
8551 * gthr-gnat.h, gthr-gnat.c: new sources for implementation of
8552 --enable-threads=gnat.
8553 * Makefile.in: Add gthr-gnat.c to LIB2ADDEH.
8554 * configure.in: Add gnat to the list of thread packages
8555 * configure: Rebuild.
8556 * config/t-linux: Add gthr-gnat.c to LIB2ADDEH and LIB2ADDEHDEP
8558 2003-04-22 Neil Booth <neil@daikokuya.co.uk>
8560 * cpplex.c (_cpp_get_fresh_line): Pop the buffer if return_at_eof.
8562 2003-04-22 Devang Patel <dpatel@apple.com>
8564 * cpptrad.c (_cpp_replacement_text_len): Add check for macro
8566 (_cpp_copy_replacement_text): Same.
8568 2003-04-22 Neil Booth <neil@daikokuya.co.uk>
8570 * c-lex.c (c_lex): Handle CPP_OTHER differently.
8571 * cppexp.c (_cpp_parse_expr): Similarly.
8572 * cpplex.c (SPELL_CHAR): Remove.
8573 (_cpp_lex_direct): Stray chars are saved as byte strings.
8574 (cpp_spell_token, cpp_output_token, _cpp_equiv_token): Don't
8576 (cpp_avoid_paste): Update handling of CPP_OTHER.
8577 * cpplib.h: Spell CPP_OTHER like a number.
8578 (struct cpp_token): Remove member c.
8579 * cppmacro.c (stringify_arg): Update handling of CPP_OTHER.
8581 2003-04-22 David Turner <novalis@gnu.org>
8583 * gbl-ctors.h: Add special license exception.
8584 * libgcc2.h: Likewise.
8585 * tsystem.h: Likewise.
8586 * gcov-io.h: Likewise.
8588 2003-04-22 David Edelsohn <edelsohn@gnu.org>
8590 * fold-const.c (fold_range_test): Use RANGE_TEST_NON_SHORT_CIRCUIT
8591 macro defaulting to original BRANCH_COST heuristic.
8592 * doc/tm.texi (RANGE_TEST_NON_SHORT_CIRCUIT): Document.
8594 * config/rs6000/rs6000.h (RANGE_TEST_NON_SHORT_CIRCUIT): Define.
8596 2003-04-22 Aldy Hernandez <aldyh@redhat.com>
8598 * config/rs6000/t-spe: Merge in t-fprules into file.
8600 * config.gcc: Add t-spe to powerpc-eabispe.
8602 2003-04-22 Kean Johnston <jkj@sco.com>
8604 * tlink.c (recompile_files): Add missing '=' to putenv calls
8606 2003-04-22 Nathan Sidwell <nathan@codesourcery.com>
8608 * ginclude/stddef.h: Provide C++ safe offsetof.
8610 2003-04-22 J"orn Rennecke <joern.rennecke@superh.com>
8612 * function.c (purge_addressof_1): In (mem (addressof (reg))) case
8613 for reg notes, if there are no substitutions, just use a SUBREG.
8615 2003-04-21 Mark Mitchell <mark@codesourcery.com>
8617 * Makefile.in (calls.o): Depend on except.h.
8618 * calls.c: Include except.h.
8619 (emit_call_1): Call note_eh_region_may_contain_throw if
8621 * except.c (eh_region): Add may_contain_throw.
8622 (expand_eh_region_end_cleanup): Do not include handler code when
8623 it cannot be reached.
8624 (note_eh_region_may_contain_throw): New function.
8625 * except.h (note_eh_region_may_contain_throw): New function.
8627 2003-04-21 Mark Mitchell <mark@codesourcery.com>
8629 * config/i386/winnt.c (i386_pe_mark_dllimport): Revert previous
8632 2003-04-21 Aldy Hernandez <aldyh@redhat.com>
8634 * config/rs6000/rs6000.c (rs6000_override_options): No SPE means
8635 64-bit long doubles.
8637 2003-04-21 Olivier Hainque <hainque@act-europe.fr>
8639 * fold-const.c (fold, case PLUS_EXPR and case MULT_EXPR): Restore
8640 a number of conversions required for type consistency and previously
8641 stripped off by STRIP_NOPS.
8643 * calls.c (expand_call): Prevent sibcall optimization for calls to
8646 * expmed.c (extract_bit_field): Reverse operands of && condition to
8647 prevent a potential division by zero in the previously first branch.
8648 * config/pa/pa.md (extv, extzv): FAIL if the bitfield length is zero.
8650 2003-04-21 Joel Brobecker <brobecker@gnat.com>
8652 * dwarf2out.c (is_ada, is_ada_subrange_type): New functions.
8653 (subrange_type_die): Likewise.
8654 (modified_type_die): Emit a subrange_type DIE for Ada subrange types.
8655 (is_c_family, is_cxx, is_java, is_fortran): Return bool and clean up.
8657 2003-04-21 Nathan Sidwell <nathan@codesourcery.com>
8659 Break out coverage routines to new file.
8660 * Makefile.in (COVERAGE_H): New variable
8661 (C_OBJS): Add coverage.o
8662 (coverage.o): New target.
8663 (profile.o, loop-init.o, sched-ebb.o, predict.o, tracer.o): Adjust
8666 (gt-coverage.h): New target.
8667 (gt-profile.h): Remove.
8668 * profile.h: Remove. Move to ...
8669 * coverage.h: ... here. New. #include gcov-io.h.
8670 * gcov-io.h: Move function definitions to ...
8671 * gcov-io.c: ... here. New.
8672 * profile.c: Move coverage routines to coverage.c.
8673 (instrument_edges, get_exec_counts, branch_prob, init_branch_prob,
8674 end_branch_prob): Adjust.
8675 * coverage.c: New. Coverage routines from profile.c
8676 (coverage_counter_ref, coverage_init, coverage_finish,
8677 coverage_end_function, coverage_begin_output,
8678 coverage_counter_ref, get_coverage_counts): Define.
8679 * gcov-dump.c, gcov.c: #include gcov-io.c.
8680 * libgcov.c: Likewise. Adjust.
8681 * loop-init.c: Don't #include profile.h
8682 * tracer.c, predict.c, sched-ebb.c: Adjust #includes.
8683 * rtl.h: Add coverage prototypes.
8684 * toplev.c (compile_file): Init coverage, not branch_prob.
8685 Always call coverage_finish.
8686 (rest_of_compilation): Call coverage_end_function.
8688 2003-04-21 Matt Kraai <kraai@alumni.cmu.edu>
8690 * config/rs6000/rs6000.md (*movsf_softfloat): Add "h" <- "0" case.
8692 2003-04-21 Neil Booth <neil@daikokuya.co.uk>
8694 * c-ppoutput.c (cb_include): Don't take a cpp_token.
8695 * cppfiles.c: Don't undef strcmp.
8696 (find_include_file): Don't take a cpp_token. Check for empty
8698 (_cpp_execute_include, _cpp_compare_file_date): Don't take a cpp_token.
8699 (cpp_push_include): Simplify.
8700 * cpphash.h (_cpp_execute_include, _cpp_compare_file_date): Update.
8701 * cpplib.c (glue_header_name): Return the file name, not a cpp_token.
8702 (parse_include): Similary. Don't check for zero-length filenames.
8703 (do_include_common, do_pragma_dependency): Update accordingly.
8704 * cpplib.h (struct cpp_callbacks): Change prototype of include.
8706 2003-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8708 * doc/rtl.texi (RTX_UNCHANGING_P): Point to true_dependence for
8709 details of conflict handling.
8711 * fold-const.c (extract_muldiv, case CONVERT_EXPR): Detect case
8712 when conversion overflows.
8714 * stor-layout.c (layout_decl): Don't set DECL_SIZE_UNIT if already set.
8716 * expr.c (store_constructor): Set RTX_UNCHANGING_P if readonly_field_p
8719 2003-04-21 Mark Mitchell <mark@codesourcery.com>
8721 * config/i386/winnt.c (i386_pe_mark_dllimport): Make the new RTL
8722 have the same form as the old RTL.
8724 2003-04-21 Andreas Jaeger <aj@suse.de>
8726 * cppcharset.c (_cpp_valid_ucn): Cast field precision to int.
8728 2003-04-20 Chris Lattner <sabre@nondot.org>
8729 Zack Weinberg <zack@codesourcery.com>
8731 * c-common.h, c-semantics.c: Rename genrtl_decl_cleanup to
8732 genrtl_cleanup_stmt. Correct comment at head of
8733 genrtl_cleanup_stmt (no such thing as a DECL_CLEANUP).
8735 * stmt.c (struct nesting): Kill n_function_calls.
8736 (expand_start_bindings): Don't set
8737 thisblock->data.block.n_function_calls.
8738 (expand_end_bindings): Compare function_call_count against 0.
8739 (expand_cleanups): Kill DONT_DO argument; all callers passed
8740 NULL_TREE. All callers updated to match.
8742 2003-04-20 Zack Weinberg <zack@codesourcery.com>
8744 * varasm.c (struct deferred_constant, defer_addressed_constants_flag)
8745 (defer_addressed_constants, output_deferred_addressed_constants): Kill.
8746 (output_constant_def): Remove code predicated on
8747 defer_addressed_constants_flag.
8749 * output.h: Remove prototypes of deleted functions.
8750 * c-typeck.c (constructor_subconstants_deferred): Kill.
8751 (struct initializer_stack): Remove 'deferred' field.
8752 (start_init): Remove all references to the above.
8753 (finish_init): Likewise. Also remove never-executed call to
8754 output_deferred_addressed_constants. Pull assignment to
8755 defstr out of if expression.
8757 2003-04-20 Neil Booth <neil@daikokuya.co.uk>
8759 * cpphash.h (NOTE_ESC_NL, NOTE_ESC_SPACE_NL, NOTE_TRIGRAPH,
8760 NOTE_NEWLINE): Remove.
8761 * cpplex.c (_cpp_clean_line, _cpp_process_line_notes): Update
8762 to handle new form of line note type.
8764 2003-04-20 Zack Weinberg <zack@codesourcery.com>
8766 * target.h (encode_section_info): Add new argument carrying
8767 the RTL to be modified by the hook.
8769 * varasm.c (make_decl_rtl, output_constant_def): Update calls
8770 to encode_section_info.
8771 (default_encode_section_info): Take and use RTL argument,
8772 don't use TREE_CST_RTL or DECL_RTL.
8773 * output.h: Update prototype of default_encode_section_info.
8774 * config/darwin.h (ASM_DECLARE_OBJECT_NAME)
8775 (ASM_DECLARE_FUNCTION_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL):
8776 Update calls to encode_section_info.
8778 * config/darwin.c, config/arm/arm.c, config/arm/pe.c
8779 * config/h8300/h8300.c, config/i386/winnt.c, config/m32r/m32r.c
8780 * config/m68hc11/m68hc11.c, config/m88k/m88k.c, config/mcore/mcore.c
8781 * config/mips/mips.c, config/mmix/mmix.c, config/pa/pa.c
8782 * config/romp/romp.c, config/rs6000/rs6000.c, config/s390/s390.c
8783 * config/v850/v850.c (TARGET_ENCODE_SECTION_INFO definitions):
8784 Take and use RTL argument, don't use TREE_CST_RTL or DECL_RTL,
8785 except for PE dllimport/dllexport. Update calls to
8786 default_encode_section_info.
8788 * config/darwin-protos.h, config/arm/arm-protos.h, config/i386-protos.h:
8791 * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update.
8793 2003-04-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8796 * pa.md (movccfp): New expander.
8797 (setccfp0, setccfp1): Rename to movccfp0 and movccfp1, respectively.
8798 Reverse fcmp conditions.
8800 2003-04-20 Marek Michalkiewicz <marekm@amelek.gda.pl>
8802 * config/avr/avr.md (*cmpqi_sign_extend): Handle negative values
8803 of operand 1 correctly.
8805 2003-04-20 Nathan Sidwell <nathan@codesourcery.com>
8807 * cpplex.c (_cpp_lex_direct): Set BOL for CPP_EOF tokens.
8808 * gcov.c (output_lines): Don't be so fussy about going past EOF.
8810 2003-04-20 Neil Booth <neil@daikokuya.co.uk>
8812 * Makefile.in (LIBCPP_OBJS): Add cppcharset.o.
8813 (cppcharset.o): New target.
8814 * c-lex.c (is_extended_char): Move to cppcharset.c.
8815 (utf8_extend_token): Delete.
8816 * cppcharset.c: New file.
8817 * cpphash.h (_cpp_valid_ucn): New.
8818 * cpplex.c (lex_identifier): Update prototype.
8819 (continues_identifier_p): Rename forms_identifier_p. Handle UCN
8821 (maybe_read_ucs): Rename maybe_read_ucn. Update to use code
8823 (lex_number, lex_identifier, cpp_parse_escape): Update.
8824 (_cpp_lex_direct): Update to handle UCNs.
8825 (cpp_avoid_paste): Don't paste to form a UCN.
8827 2003-04-19 Roger Sayle <roger@eyesopen.com>
8829 * builtins.c (expand_builtin): Don't expand a pure or const
8830 built-in function if the result will be ignored and none of
8831 its arguments are volatile.
8833 2003-04-19 Kean Johnston <jkj@sco.com>
8835 * unwind-dw2.c (_Unwind_GetCFA): cast return to avoid warning
8836 * config.gcc: make SCO use dbxelf.h and elfos.h; only use one
8837 target fragment now: t-sco5; dont compile crti.o.
8838 * config/i386/sco5.h: major overhaul to remove all COFF remnants
8839 and to use elfos.h for most definitions.
8840 (BSS_SECTION_ASM_OP): set correct segment attributes.
8841 (PREFERED_DEBUGGING_TYPE): set to DWARF-2.
8842 (DWARF2_UNWIND_INFO): Always set to 1.
8843 (MD_STARTFILE_PREFIX): Make /usr/gnu/lib the default.
8844 (MD_STARTFILE_PREFIX_1): Define.
8845 (MD_EXEC_PREFIX): Adjust to /usr/gnu/bin if using GAS.
8846 (DEFAULT_LINKER): Define if not specified to configure.
8847 (CTORS_SECTION_ASM_OP): Remove COFF crud.
8848 (DTORS_SECTION_ASM_OP): Remove COFF crud.
8849 (WINT_TYPE): Define.
8850 (SDB_DEBUGGING_INFO): Remove.
8851 (EXTRA_SECTIONS): Likewise.
8852 (EXTRA_SECTION_FUNCTIONS): Likewise.
8853 (CTOR_LIST_BEGIN): Likewise.
8854 (CTOR_LIST_END): Likewise.
8855 (INIT_SECTION_FUNCTION): Likewise.
8856 (FINI_SECTION_FUNCTION): Likewise.
8857 (SUBTARGET_FRAME_POINTER_REQUIRED): Likewise.
8858 (LOCAL_LABEL_PREFIX): Likewise.
8859 (NON_SAVING_SETJMP): Likewise.
8860 (RETURN_POPS_ARGS): Likewise.
8861 (ASM_OUTPUT_SKIP): Likewise.
8862 (TARGET_ASM_NAMED_SECTION): Likewise.
8863 (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
8864 (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
8865 (ASM_OUTPUT_IDENT): Likewise.
8866 (ASM_OUTPUT_CASE_LABEL): Likewise.
8867 (ASM_OUTPUT_ASCII): Likewise.
8868 (ASM_OUTPUT_LIMITED_STRING): Likewise.
8869 (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
8870 (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
8871 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
8872 (ASM_FINISH_DECLARE_OBJECT): Likewise.
8873 (ASM_DECLARE_OBJECT_NAME): Likewise.
8874 (ASM_DECLARE_FUNCTION_SIZE): Likewise.
8875 (ASM_DECLARE_FUNCTION_NAME): Likewise.
8876 (ASM_DECLARE_RESULT): Likewise.
8877 (ASM_WEAKEN_LABEL): Likewise.
8878 (SUPPORTS_WEAK): Likewise.
8879 (APPLY_RESULT_SIZE): Likewise.
8880 (LPREFIX): Likewise.
8881 (ALIGN_ASM_OP): Likewise.
8882 (ASCII_DATA_ASM_OP): Likewise.
8883 (IDENT_ASM_OP): Likewise.
8884 (ASM_SHORT): Likewise.
8885 (ASM_LONG): Likewise.
8886 (TYPE_ASM_OP): Likewise.
8887 (SIZE_ASM_OP): Likewise.
8888 (STRING_ASM_OP): Likewise.
8889 (SKIP_ASM_OP): Likewise.
8890 (EH_FRAME_SECTION_ASM_OP): Likewise.
8891 (READONLY_DATA_SECTION_ASM_OP): Likewise.
8892 (INIT_SECTION_ASM_OP): Likewise.
8893 (FINI_SECTION_ASM_OP): Likewise.
8894 (TEXT_SECTION_ASM_OP): Likewise.
8895 (DATA_SECTION_ASM_OP): Likewise.
8896 (TYPE_OPERANT_FORMAT): Likewise.
8897 (ASM_SPEC): Remove COFF code.
8898 (STARTFILE_SPEC): Likewise. Always use crti.o; add -p and -pp support;
8899 cause -pg to emit an error; use pcrt1elf.o with -pp
8900 (ENDFILE_SPEC): Likewise.
8901 (TARGET_OS_CPP_BUILTINS): Add _SCO_DS_LL.
8902 (CPP_SPEC): Remove COFF crud; always look in /usr/gnu/include first.
8903 (LINK_SPEC): Remove COFF crud; use -E for environment switch not -R;
8904 add -z alt_resolve to support weak symbols the way GCC wants them.
8905 (LIB_SPEC): Use the profiler libraries in -p or -pp mode.
8906 (LIBGCC_SPEC): Dont use -lgcc in -G mode.
8907 (ASM_PREFERED_EH_DATA_FORMAT): Remove.
8908 * config/i386/t-sco5 (TARGET_LIBGCC2_CFLAGS): Remove.
8909 (CRTSTUFF_T_CFLAGS_S): Define.
8910 (MULTILIB_OPTIONS): Likewise.
8911 (MULTILIB_DIRNAMES): Likewise.
8912 (MULTILIB_MATCHES): Likewise.
8913 (MULTILIB_EXTRA_OPTS): Likewise.
8915 (INSTALL_LIBGCC): Likewise.
8917 * config/i386/t-sco5gas: Remove.
8918 * doc/install.texi: Updated for new OpenServer instructions.
8919 * testsuite/gcc.dg/nest.c: Allow failure on SCO (-pg not supported)
8921 2003-04-19 Kean Johnston <jkj@sco.com>
8923 * fixinc/check.tpl: Allow user to over-ride diff program.
8924 * fixinc/inclhack.def: Removed extraneous #ifndef SVR5.
8925 (sco_math): Added test for SCO math header files.
8926 (sco_regset): Added check for conflicts with ieeefp.h.
8927 (svr4_disable_opt): Removed extraneous #ifdef SVR4.
8928 * fixinc/fixincl.x: Regenerated
8929 * fixinc/tests/base/math.h: Added sco_math tests.
8930 * fixinc/tests/base/string.h: New file.
8931 * fixinc/tests/base/sys/regset.h: New file.
8933 2003-04-19 Neil Booth <neil@daikokuya.co.uk>
8935 * cpphash.h (struct cpp_buffer): Remove backup_to.
8936 * cpplex.c (BACKUP, get_effective_char): Die.
8937 (_cpp_skip_block_comment): Assume '*' is location on entry.
8938 (continues_identifier_p): Respect -fno-dollars-in-identifiers.
8939 (IF_NEXT_IS): Update.
8940 (_cpp_lex_direct): Don't use backup_to; look ahead directly.
8942 2003-04-19 Matt Kraai <kraai@alumni.cmu.edu>
8944 * README.Portability: Move to a new section and obsolete K+R
8947 Sat Apr 19 14:56:17 CEST 2003 Jan Hubicka <jh@suse.cz>
8949 * rtlanal.c (subreg_offset_representable_p): Fix call of
8952 2003-04-19 Neil Booth <neil@daikokuya.co.uk>
8954 * cpphash.h (struct cpp_reader): New member warned_dollar.
8955 * cpplex.c (continues_identifier_p): New function.
8956 (parse_identifier, parse_number, parse_string): Rename lex_identifer,
8957 lex_number and lex_string, and simplify.
8958 (parse_slow, unescaped_terminator_p): Die.
8959 (_cpp_lex_direct): Update.
8961 2003-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8963 * calls.c (expand_call): Provide init for old_stack_pointer_delta.
8965 2003-04-19 Nathan Sidwell <nathan@codesourcery.com>
8967 * doc/invoke.texi (-fprofile-arcs): Mention -lgcov, locking and
8970 2003-04-19 Neil Booth <neil@daikokuya.co.uk>
8972 * cppexp.c (eval_token): Permit true and false even if pedantic.
8974 2003-04-19 Neil Booth <neil@daikokuya.co.uk>
8976 * cpplex.c (skip_whitespace): Rearrange to avoid stage1 ICE.
8978 2003-04-19 Neil Booth <neil@daikokuya.co.uk>
8980 * cppfiles.c (ENABLE_VALGRIND_CHECKING, VALGRIND_DISCARD,
8981 MMAP_THRESHOLD, TEST_THRESHOLD, SHOULD_MMAP): Remove.
8982 (struct include_file): Remove fefcnt, mapped members.
8983 (open_file, stack_include_file, _cpp_pop_file_buffer): Disable caching.
8984 (read_include_file): Don't use mmap, terminate buffers in '\r'.
8985 (purge_cache): Don't use munmap.
8986 * cpphash.h (CPP_BUF_COLUMN): Update.
8987 (lexer_state): Remove lexing_comment.
8988 (struct _cpp_line_note): New.
8989 (struct cpp_buffer): New members cur_note, notes_used, notes_cap,
8990 next_line and need_line. Remove col_adjust and saved_flags.
8991 (_cpp_process_line_notes, _cpp_clean_line, _cpp_get_fresh_line,
8992 _cpp_skip_block_comment, scan_out_logical_line): New.
8993 (_cpp_init_mbchar): Remove.
8994 * cppinit.c (init_library): Remove call to _cpp_init_mbchar.
8995 (cpp_read_main_file): Set line to 1 earlier.
8996 (post_options): -traditional-cpp doesn't want trigraphs.
8997 * cpplex.c (MULTIBYTE_CHARS): Remove code predicated on this.
8998 (add_line_note, _cpp_clean_line, _cpp_process_line_notes,
8999 _cpp_get_fresh_line): New.
9000 (handle_newline, skip_escaped_newlines, trigraph_p,
9001 continue_after_nul, _cpp_init_mbchar): Remove.
9002 (get_effective_char): Update.
9003 (_cpp_skip_block_comment): Rename from skip_block_comment, simplify.
9004 (skip_line_comment): Simplify.
9005 (skip_whitespace, parse_identifier, parse_slow, parse_number,
9006 parse_string): Update.
9007 (cpp_lex_direct): Use clean lines and process line notes. Update.
9008 (cpp_interpret_charconst): No MULTIBYTE_CHARS.
9009 * cpplib.c (prepare_directive_trad): Call scan_out_logical_line
9011 (_cpp_handle_directive): Don't set saved_flags.
9012 (run_directive, destringize_and_run, cpp_define, cpp_define_builtin,
9013 cpp_undef, handle_assertion, cpp_push_buffer): Update.
9014 (_cpp_pop_buffer): Free notes.
9015 * cppmacro.c (builtin_macro, paste_tokens): \n terminate buffer.
9016 * cpppch.c (cpp_read_state): \n terminate buffer.
9017 * cpptrad.c (skip_escaped_newlines, handle_newline): Remove.
9018 (copy_comment): Use _cpp_skip_block_comment.
9019 (skip_whitespace, lex_identifier, _cpp_read_logical_line_trad):
9021 (_cpp_overlay_buffer, _cpp_remove_overlay, push_replacement_text,
9022 save_replacement_text): Update.
9023 (scan_out_logical_line): Update to use clean lines and process
9025 * fix-header.c (read_scan_file): Update.
9027 2003-04-18 Douglas B Rupp <rupp@gnat.com>
9029 * unwind-dw2-fde.c (__register_frame_info_bases): Check for
9030 null begin parameter (as well as pointer to null).
9031 (__deregister_frame_info_bases): Likewise.
9033 2003-04-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9035 * function.c (purge_addressof_1): For ADDRESSOF, see if SUB is a
9036 hard or virtual register and copy into pseudo if replacement fails.
9038 * cfgcleanup.c (flow_find_cross_jump): Use INSN_P, not active_insn_p.
9040 * expmed.c (mask_rtx): Avoid undefined shifts for BITSIZE of 0.
9042 2003-04-18 Olivier Hainque <hainque@act-europe.fr>
9044 * calls.c (expand_call): Move special case for constructor calls
9045 to right place. Ensures constructor calls used to initialize
9046 arguments get a clean outgoing argument block for themselves.
9047 Move check for stack deallocation completeness until after last
9048 deallocation. Add stack_pointer_delta to set of state
9049 variables saved and restored along with current stack_level.
9051 * integrate.c (expand_inline_function): Ensure non-const actuals
9052 don't end up const in the caller's flow after conversion to possibly
9055 2003-04-18 Vincent Celier <celier@gnat.com>
9057 * dwarf2out.c (loc_descriptor_from_tree): Treat all *_MOD_EXPR
9058 and *_DIV_EXPR as TRUNC_*_EXPR.
9060 2003-04-18 Mark Mitchell <mark@codesourcery.com>
9062 * cfgrtl.c (try_redirect_by_replacing_jump): Create a basic block
9063 for orphaned jump tables.
9065 2003-04-18 Kazu Hirata <kazu@cs.umass.edu>
9067 * reload1.c: Revert my previous patch on 2002-04-17.
9069 2003-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9071 * doc/contrib.texi (Contributors): Prefer "bug fix" over "bugfix".
9072 Add Segher Boessenkool.
9074 2003-04-18 Alexander Sotirov <sluncho@mirizma.org>
9077 * c-decl.c (c_expand_body): Don't garbage collect the function
9078 body if we are going to dump it later.
9080 2003-04-18 Richard Henderson <rth@redhat.com>
9082 * config/alpha/alpha.c (SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP): Remove.
9083 (alpha_end_function): Don't set them.
9084 (decl_in_text_section): Remove.
9085 (alpha_encode_section_info): Remove.
9086 (samegp_function_operand): Use SYMBOL_REF LOCAL_P and EXTERNAL_P.
9087 (direct_call_operand): Use SYMBOL_REF_DECL and compare actual
9088 sections, rather than decl_in_text_section results.
9090 2003-04-18 Roger Sayle <roger@eyesopen.com>
9092 * rtlanal.c (reg_overlap_mentioned_p): Handle ZERO_EXTRACT
9095 2003-04-18 Eric Botcazou <ebotcazou@libertysurf.fr>
9097 PR optimization/7675
9098 * c-typeck.c (build_external_ref): Set the DECL_NONLOCAL flag
9099 on VAR_DECL, PARM_DECL and FUNCTION_DECL from within
9100 nested functions if they refer to declarations from parent functions.
9101 * stmt.c (expand_decl): Don't put automatic variables in registers
9102 if the DECL_NONLOCAL flag is set.
9104 2003-04-18 Hans-Peter Nilsson <hp@bitrange.com>
9106 * gcse.c (compute_ld_motion_mems): For MEM destinations, only
9107 consider those to be movable where the source matches
9109 (update_ld_motion_stores): In comment, refer to
9110 compute_ld_motion_mems for validity of replacement.
9112 Fri Apr 18 01:28:51 CEST 2003 Jan Hubicka <jh@suse.cz>
9114 * gcov-dump.c (tag_summary): Remove max_sum
9115 * gcov-io.h (gcov_summary, gcov_write_summary,
9116 gcov_read_summary): Kill max_sum.
9117 * libgcov.c (gcov_exit): Do one pass over the data. Make error
9118 message more verbose.
9120 * emit-rtl.c (subreg_hard_regno): Check that register is
9123 * reload.c (reload_inner_reg_of_subreg): When register is not
9124 representable, reload the whole thing.
9125 (find_reloads): Likewsie.
9126 * rtlanal.c (subreg_representable_p): New function.
9128 * profile.c (compute_branch_probabilities): Cleanup sanity checking;
9129 allow negative probabilities for edges from the call to exit.
9130 (branch_prob): Do not add fake edges for functions that may return
9133 2003-04-17 DJ Delorie <dj@redhat.com>
9135 * toplev.c (target_options): Add value field.
9136 (set_target_switch): Handle target options with values.
9137 * doc/tm.texi: Document how fixed vs variable target
9139 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
9140 config/c4x/c4x.h, config/cris/aout.h, config/cris/cris.h,
9141 config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
9142 config/frv/frv.h, config/i386/i386.h, config/ia64/ia64.h,
9143 config/m32r/m32r.h, config/m68hc11/m68hc11.h,
9144 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
9145 config/mips/mips.h, config/mmix/mmix.h, config/pa/pa.h,
9146 config/rs6000/rs6000.h, config/rs6000/sysv4.h,
9147 config/s390/s390.h, config/sparc/sparc.h, config/v850/v850.h:
9148 Add value initializer to target options.
9150 2003-04-07 Loren James Rittle <ljrittle@acm.org>
9152 * cpppch.c (cpp_valid_state): Unconditionally initialize nl.
9154 2003-04-17 Kazu Hirata <kazu@cs.umass.edu>
9156 * reload1.c (move2add_last_cc0): New.
9157 (reload_cse_move2add): Detect implicit sets.
9158 (move2add_note_store): Notice a store into cc0.
9160 2003-04-17 Roger Sayle <roger@eyesopen.com>
9163 * c-decl.c (duplicate_decls): Preserve "const" and "noreturn"
9164 function attributes.
9166 2003-04-17 Janis Johnson <janis187@us.ibm.com>
9168 * doc/sourcebuild.texi (Test Suites): Document support for testing
9169 binary compatibility (moved from testsuite/README.compat).
9171 2003-04-17 Richard Henderson <rth@redhat.com>
9173 * config/ia64/ia64.c (ia64_in_small_data_p): Disallow strings.
9175 2003-04-17 Simon Law <sfllaw@engmail.uwaterloo.ca>
9177 * doc/include/gpl.texi: Fix double-spacing after "MA" to match
9178 the one provided by the FSF.
9180 2003-04-17 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9182 * doc/install.texi (Binaries): Update URL and list of platforms
9183 provided by ftp.thewrittenword.com.
9185 2003-04-17 Richard Henderson <rth@redhat.com>
9187 * config/xtensa/xtensa.c (xtensa_encode_section_info): Remove.
9188 (call_insn_operand): Use SYMBOL_REF_LOCAL_P.
9189 * config/xtensa/xtensa.md (call, call_value): Likewise.
9191 2003-04-17 Richard Henderson <rth@redhat.com>
9193 * config/v850/v850.c (print_operand): Use SYMBOL_REF_[ZST]DA.
9194 (print_operand_address): Likewise.
9195 (ep_memory_operand): Likewise.
9196 (special_symbolref_operand): Likewise.
9197 (v850_encode_data_area): Use SYMBOL_REF_FLAGS.
9198 (v850_encode_section_info): Call default_encode_section_info.
9199 (v850_strip_name_encoding): Remove.
9200 * config/v850/v850.h (EXTRA_CONSTRAINT): Use SYMBOL_REF_[ZST]DA.
9201 (ASM_OUTPUT_LABELREF): Remove.
9202 (ZDA_NAME_FLAG_CHAR, ZDA_NAME_P): Remove.
9203 (SDA_NAME_FLAG_CHAR, SDA_NAME_P): Remove.
9204 (TDA_NAME_FLAG_CHAR, TDA_NAME_P): Remove.
9205 (ENCODED_NAME_P): Remove.
9206 (SYMBOL_FLAG_ZDA, SYMBOL_REF_ZDA_P): New.
9207 (SYMBOL_FLAG_SDA, SYMBOL_REF_SDA_P): New.
9208 (SYMBOL_FLAG_TDA, SYMBOL_REF_TDA_P): New.
9210 2003-04-17 Richard Henderson <rth@redhat.com>
9212 * config/stormy16/stormy16.c (xstormy16_encode_section_info): Kill.
9213 * config/stormy16/stormy16.h (ASM_OUTPUT_SYMBOL_REF): Use
9214 SYMBOL_REF_FUNCTION_P.
9216 2003-04-17 Richard Henderson <rth@redhat.com>
9218 * config/sparc/sparc.c (sparc_encode_section_info): Remove.
9219 (data_segment_operand): Use SYMBOL_REF_FUNCTION_P.
9220 (text_segment_operand): Likewise.
9222 2003-04-17 Richard Henderson <rth@redhat.com>
9224 * config/sh/sh.c (gen_datalabel_ref): Don't add SH_DATALABEL_ENCODING.
9225 (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
9226 (legitimize_pic_address): Use SYMBOL_REF_LOCAL_P.
9227 (sh_encode_section_info): Remove.
9228 (sh_strip_name_encoding): Remove.
9229 * config/sh/sh.h (SH_DATALABEL_ENCODING): Remove.
9230 (DATALABEL_SYMNAME_P, STRIP_DATALABEL_ENCODING): Remove.
9231 (SH_TLS_ENCODING, TLS_SYMNAME_P, STRIP_TLS_ENCODING): Remove.
9232 (ASM_OUTPUT_LABELREF): Remove.
9233 (ASM_OUTPUT_SYMBOL_REF): Use SYMBOL_REF_FUNCTION_P.
9234 * config/sh/sh.md (*): Use SYMBOL_REF_LOCAL_P.
9236 2003-04-17 Richard Henderson <rth@redhat.com>
9238 * config/s390/s390.c (SYMBOL_FLAG_ALIGN1): New.
9239 (tls_model_chars): Remove.
9240 (larl_operand): Use SYMBOL_REF_FLAGS.
9241 (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
9242 (legitimize_pic_address): Use SYMBOL_REF_LOCAL_P.
9243 (s390_output_mi_thunk): Likewise.
9244 (s390_emit_prologue): Set SYMBOL_FLAG_LOCAL as needed.
9245 (s390_function_profiler): Likewise.
9246 (s390_encode_section_info): Use default_encode_section_info
9247 and SYMBOL_FLAG_ALIGN1.
9248 (s390_strip_name_encoding): Remove.
9249 * config/s390/s390.h (ASM_OUTPUT_LABELREF): Remove.
9250 * config/s390/s390.md (call, call_value): Use SYMBOL_REF_LOCAL_P.
9251 (builtin_setjmp_receiver): Set SYMBOL_FLAG_LOCAL as needed.
9253 2003-04-17 Richard Henderson <rth@redhat.com>
9255 * config/ns32k/ns32k.c (ns32k_encode_section_info): Remove.
9256 (global_symbolic_reference_mentioned_p): Use SYMBOL_REF_LOCAL_P.
9257 (print_operand_address): Likewise.
9259 * config/ns32k/ns32k.h (CANNOT_CHANGE_MODE_CLASS): Add CLASS argument.
9260 * config/ns32k/ns32k.c (expand_block_move): Don't check
9263 2003-04-17 Richard Henderson <rth@redhat.com>
9265 * config/mcore/mcore.c (mcore_encode_section_info): Don't set
9268 2003-04-17 Richard Henderson <rth@redhat.com>
9270 * rtl.h (SYMBOL_FLAG_MACH_DEP_SHIFT): New.
9272 * config/m32r/m32r.c (SYMBOL_FLAG_MODEL_SHIFT): New.
9273 (SYMBOL_REF_MODEL): New.
9274 (LIT_NAME_P): Move from m32r.h.
9275 (m32r_select_section): Remove.
9276 (m32r_encode_section_info): Use SYMBOL_REF_FLAGS.
9277 (m32r_strip_name_encoding): Remove.
9278 (m32r_in_small_data_p): New.
9279 (small_data_operand): Use SYMBOL_REF_SMALL_P.
9280 (addr24_operand): Use SYMBOL_REF_MODEL.
9281 (call26_operand): Likewise.
9282 (addr32_operand): Tidy.
9283 (m32r_print_operand): Use HOST_WIDE_INT_PRINT_HEX.
9284 * config/m32r/m32r.h (RODATA_SECTION_ASM_OP): Remove.
9285 (SDATA_SECTION_ASM_OP, SBSS_SECTION_ASM_OP): Remove.
9286 (READONLY_DATA_SECTION_ASM_OP): Remove.
9287 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
9288 (SDATA_SECTION_FUNCTION, SBSS_SECTION_FUNCTION): Remove.
9289 (TARGET_ASM_SELECT_SECTION): Remove.
9290 (SDATA_FLAG_CHAR, MEDIUM_FLAG_CHAR, LARGE_FLAG_CHAR): Remove.
9291 (SDATA_NAME_P, SMALL_NAME_P, MEDIUM_NAME_P): Remove.
9292 (LARGE_NAME_P, ENCODED_NAME_P): Remove.
9293 (ASM_OUTPUT_LABELREF): Remove.
9295 2003-04-17 Richard Henderson <rth@redhat.com>
9297 * config/ip2k/ip2k.c (is_regfile_address): Use SYMBOL_REF_FUNCTION_P.
9298 (encode_section_info): Remove.
9299 * config/ip2k/ip2k-protos.h: Update.
9301 2003-04-17 Richard Henderson <rth@redhat.com>
9303 * varasm.c (default_encode_section_info): Don't set
9304 SYMBOL_FLAG_EXTERNAL if not TREE_PUBLIC.
9305 * config/i370/i370.c (i370_encode_section_info): Remove.
9306 * config/i370/i370.h (CONSTANT_ADDRESS_P): Use SYMBOL_REF_EXTERNAL_P.
9307 (PRINT_OPERAND, PRINT_OPERAND_ADDRESS): Likewise.
9308 * config/i370/i370.md (movsi): Likewise.
9310 * config/i370/t-i370: Add missing backslash.
9312 2003-04-17 Eric Botcazou <ebotcazou@libertysurf.fr>
9314 * doc/invoke.texi (inline-limit): Fix pasto.
9316 2003-04-17 Richard Henderson <rth@redhat.com>
9318 * config/h8300/h8300.c (SYMBOL_FLAG_FUNCVEC_FUNCTION): New.
9319 (small_call_insn_operand): Use it.
9320 (SYMBOL_FLAG_EIGHTBIT_DATA): New.
9321 (h8300_eightbit_constant_address_p): Use it.
9322 (SYMBOL_FLAG_TINY_DATA): New.
9323 (h8300_tiny_constant_address_p): Use it.
9324 (h8300_encode_label, h8300_strip_name_encoding): Remove.
9325 (h8300_encode_section_info): Set SYMBOL_REF_FLAGS.
9326 * config/h8300/h8300.h (TINY_DATA_NAME_P): Remove.
9327 (ASM_OUTPUT_LABELREF): Remove.
9329 2003-04-16 Richard Henderson <rth@redhat.com>
9331 * config/frv/frv.c (symbol_ref_small_data_p): Remove. Replace
9332 all users with SYMBOL_REF_SMALL_P.
9333 (const_small_data_p): Use SYMBOL_REF_SMALL_P.
9334 (frv_encode_section_info): Remove.
9335 (frv_strip_name_encoding): Remove.
9336 (frv_in_small_data_p): Merge tests from encode_section_info.
9337 (frv_print_operand): Use '@' not SDATA_FLAG_CHAR.
9338 * config/frv/frv.h (SDATA_FLAG_CHAR): Remove.
9339 (SDATA_NAME_P): Remove.
9340 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use SIZE not SDATA_NAME_P.
9341 (ASM_OUTPUT_LABELREF): Remove.
9342 (PRINT_OPERAND_PUNCT_VALID_P): Use '@' not SDATA_FLAG_CHAR.
9344 * config/frv/frv.c (frv_asm_out_constructor): New.
9345 (frv_asm_out_destructor): New.
9346 * config/frv/frv.h (CTORS_SECTION_ASM_OP): New.
9347 (DTORS_SECTION_ASM_OP): New.
9348 (ASM_OUTPUT_CONSTRUCTOR): Remove.
9349 (ASM_OUTPUT_DESTRUCTOR): Remove.
9351 2003-04-16 Richard Henderson <rth@redhat.com>
9353 * config/cris/cris.c (cris_gotless_symbol, cris_got_symbol): Use
9354 SYMBOL_REF_LOCAL_P; abort if not pic.
9355 (cris_encode_section_info): Remove.
9357 2003-04-16 Richard Henderson <rth@redhat.com>
9359 * config/c4x/c4x.c (c4x_encode_section_info): Remove.
9360 (c4x_T_constraint): Use SYMBOL_REF_FUNCTION_P.
9362 * config/c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): Declare
9365 2003-04-16 Richard Henderson <rth@redhat.com>
9367 * config/avr/avr.c (avr_encode_section_info): Remove.
9368 (avr_insert_attributes): New.
9369 (print_operand_address): Use SYMBOL_REF_FUNCTION_P.
9370 (avr_assemble_integer): Likewise.
9372 2003-04-16 Richard Henderson <rth@redhat.com>
9374 * arc.c (arc_encode_section_info): Remove.
9375 (arc_assemble_integer): Use SYMBOL_REF_FUNCTION_P.
9376 (arc_print_operand, arc_print_operand_address): Likewise.
9377 * arc.h (EXTRA_CONSTRAINT): Likewise.
9379 2003-04-16 Roger Sayle <roger@eyesopen.com>
9381 * c-semantics.c (find_reachable_label): New function to find a
9382 potentially reachable label in an expression.
9383 (expand_unreachable_if_stmt): Similar to expand_if_stmt but
9384 assumes the start of the IF_STMT is unreachable (dead) code.
9385 (expand_unreachable_stmt): Similar to expand_stmt but assumes
9386 the start of the statement list is unreachable (dead) code.
9387 (genrtl_if_stmt): If the controlling expression of the IF
9388 is constant, use expand_unreachable_stmt for the THEN or ELSE
9389 clause as appropriate.
9390 (genrtl_switch_stmt): Use expand_unreachable_stmt to expand
9391 the body of a SWITCH statement.
9392 (expand_stmt): The code immediately following a "return",
9393 "break", "continue" or "goto" is unreachable.
9394 * Makefile.in (c-semantics.o): Depend upon tree-inline.h.
9396 2003-04-16 Richard Henderson <rth@redhat.com>
9398 * rtl.h (MEM_ALIAS_SET): Update documentation.
9399 * doc/rtl.texi (Special Accessors): New node.
9400 (SYMBOL_REF_FLAG): Note relationship with SYMBOL_REF_FLAGS.
9402 2003-04-16 Alexandre Oliva <aoliva@redhat.com>
9404 * reload1.c (reload_cse_noop_set_p): Return false if mode of
9405 SET_DEST is not the same as that returned by...
9406 * cselib.h (cselib_reg_set_mode): ... new function.
9407 * cselib.c (cselib_reg_set_mode): Define it.
9408 (REG_VALUES): Document semantics of first element as set mode.
9409 (cselib_subst_to_values): Skip first element if ELT is NULL.
9410 (cselib_lookup): Likewise. Insert past the first element.
9411 (cselib_invalidate_regno): NULLify first element.
9412 (cselib_record_set): Set first element.
9414 2003-04-16 Olivier Hainque <hainque@act-europe.fr>
9416 * tree.c (skip_simple_arithmetics_at, saved_expr_p): New functions.
9417 (save_expr): Replace loop by call to skip_simple_arithmetics_at.
9418 * tree.h: Add prototypes for the two new functions.
9419 * fold-const.c (fold_binary_op_with_conditional_arg): Replace test
9420 updates introduced in the previous revision by call to saved_expr_p.
9421 * stor-layout.c (put_pending_size): Use skip_simple_arithmetics_at.
9423 * expr.c (store_field): Force usage of bitfield instructions when
9424 the field position requires it, whatever SLOW_UNALIGNED_ACCESS.
9425 (expand_expr, case BIT_FIELD_REF): likewise.
9427 2003-04-16 Mark Mitchell <mark@codesourcery.com>
9430 * cfgtrl.c (try_redirect_by_replacing_jump): Do not delete
9433 2003-04-16 Richard Henderson <rth@redhat.com>
9435 * config/ia64/ia64.c (sdata_symbolic_operand): Use
9436 SYMBOL_REF_SMALL_P and SYMBOL_REF_LOCAL_P.
9437 (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
9438 (function_operand): Use SYMBOL_REF_FUNCTION_P.
9439 (ia64_expand_load_address): Likewise.
9440 (ia64_assemble_integer): Likewise.
9441 (ia64_encode_section_info): Remove.
9442 (ia64_strip_name_encoding): Remove.
9443 * config/ia64/ia64.h (ENCODE_SECTION_INFO_CHAR): Remove.
9444 * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't strip it.
9446 2003-04-16 Richard Henderson <rth@redhat.com>
9448 * config/alpha/alpha.c (SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP): New.
9449 (samegp_function_operand): Use SYMBOL_FLAG_SAMEGP.
9450 (direct_call_operand): Use SYMBOL_FLAG_NEAR.
9451 (local_symbolic_operand): Use SYMBOL_REF_LOCAL_P.
9452 (small_symbolic_operand): Use SYMBOL_REF_SMALL_P.
9453 (global_symbolic_operand): Similarly.
9454 (tls_symbolic_operand_1): Use SYMBOL_REF_TLS_MODEL.
9455 (tls_symbolic_operand_type): Likewise.
9456 (alpha_encode_section_info): Use default_encode_section_info.
9457 (alpha_strip_name_encoding): Remove.
9458 (get_tls_get_addr): Split out from ...
9459 (alpha_legitimize_address): ... here.
9460 (alpha_emit_xfloating_libcall): Use init_one_libfunc.
9461 (get_some_local_dynamic_name_1): Use SYMBOL_REF_TLS_MODEL.
9462 (alpha_initialize_trampoline): Use init_one_libfunc.
9463 (alpha_setup_incoming_varargs): Mark unused parameters.
9464 (alpha_initial_elimination_offset): Likewise.
9465 (alpha_end_function): Use SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP.
9466 (unicosmk_unique_section): Use default_strip_name_encoding.
9467 (unicosmk_ssib_name, unicosmk_output_externs): Likewise.
9469 2003-04-16 Aldy Hernandez <aldyh@redhat.com>
9471 * config.gcc: Add t-spe for eabispe.
9473 * config/rs6000/t-spe: New.
9475 2003-04-16 J"orn Rennecke <joern.rennecke@superh.com>
9477 Re-apply this patch:
9479 2002-05-16 Dale Johannesen <dalej@apple.com>
9480 * combine.c (cant_combine_insn_p): Reenable combinations
9481 involving hard regs unless CLASS_LIKELY_SPILLED_P.
9483 2003-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9486 * pa-protos.h (function_arg): Remove last argument.
9487 * pa.c (function_arg): Likewise. Use CUMULATIVE_ARGS struct instead.
9488 * pa.h (struct hppa_args): Add member incoming.
9489 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Initialize
9491 (FUNCTION_ARG): Revise call to function_arg.
9492 (FUNCTION_INCOMING_ARG): Delete.
9494 2003-04-15 Zack Weinberg <zack@codesourcery.com>
9496 * configure.in: Unify the code which creates symlinks to a
9497 just-built as, ld, objdump, and nm with the code that detects
9498 their presence for purposes of feature tests.
9499 * configure: Regenerate.
9501 2003-04-15 Zack Weinberg <zack@codesourcery.com>
9503 * varasm.c (output_constant_def): Do not consult
9504 CONSTANT_AFTER_FUNCTION_P. Remove all code predicated on it.
9505 (after_function_constants, output_after_function_constants): Delete.
9506 * doc/tm.texi: Delete documentation of CONSTANT_AFTER_FUNCTION_P.
9507 * config/mips/mips-protos.h, config/mips/mips.c
9508 (mips16_constant_after_function_p): Delete.
9509 * config/mips/mips.h: Delete #if-0-ed definition of
9510 CONSTANT_AFTER_FUNCTION_P.
9511 * config/d30v/d30v.h, config/stormy16/stormy16.h: Remove
9512 mention of CONSTANT_AFTER_FUNCTION_P in comment.
9514 2003-04-15 Geoffrey Keating <geoffk@apple.com>
9516 * tree.c (next_decl_uid): Mark with GTY.
9517 (next_type_uid): Likewise.
9519 2003-04-15 J"orn Rennecke <joern.rennecke@superh.com>
9522 * sh.c (barrier_align): Also recognize stuff_delay_slot as
9523 an indicator that a barrier was created by branch splitting.
9525 2003-04-15 Mark Mitchell <mark@codesourcery.com>
9527 * c-decl.c (implicitly_declare): Copy declarations that are going
9528 to be placed in a local scope.
9530 2003-04-15 James A. Morrison <ja2morri@uwaterloo.ca>
9532 * invoke.texi (Spec Files): Wrap if-exists-else example.
9533 (MCore): Remove duplicate @itemx entries and @opindex entries.
9535 2003-04-15 Ulrich Weigand <uweigand@de.ibm.com>
9537 * unwind.inc (_Unwind_Backtrace): New function.
9538 * unwind.h (_Unwind_Backtrace): Declare it.
9539 * libgcc-std.ver (_Unwind_Backtrace): Export it.
9541 2003-04-14 Jason Merrill <jason@redhat.com>
9543 PR middle-end/10336, c++/10401
9544 * jump.c (never_reached_warning): Also stop looking if we reach the
9545 beginning of the function.
9547 2003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9552 * fixinc/gnu-regex.c (regerror): Use mempcpy not __mempcpy.
9554 2003-04-15 J"orn Rennecke <joern.rennecke@superh.com>
9556 * i386.md (abssf2_if+1): Make condition agree with abssf2_1 .
9558 2003-04-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9560 * optabs.c (expand_binop): In multi-word add cases, ensure
9561 XTARGET is copied to TARGET if they are different.
9563 2003-04-15 Olivier Hainque <hainque@act-europe.fr>
9565 * except.c (resolve_fixup_regions): Avoid dereferencing null pointer
9566 to region, possible after integration of function with unreachable
9567 regions that were optimized away.
9569 2003-04-15 Jakub Jelinek <jakub@redhat.com>
9571 * config/rs6000/rs6000.h (EPILOGUE_USES): Use register 2,
9572 instead of TOC_REGISTER in epilogue in
9573 current_function_calls_eh_return functions.
9575 2003-04-14 Mark Mitchell <mark@codesourcery.com>
9577 * doc/extend.texi (Empty Structures): Correct description of G++'s
9578 handling of these structures.
9580 * c-decl.c (grokdeclarator): Reject extern redeclarations of
9583 2003-04-14 Janis Johnson <janis287@us.ibm.com>
9585 * config/rs6000/rs6000.md (define_constants): Define constants for
9586 all UNSPEC usage, including new values for TLS support.
9587 (aux_truncdfsf2, fctiwz, movsi_got, movsi_got_internal,
9588 load_toc_aix_si, load_toc_aix_di, load_toc_v4_pic_si,
9589 load_toc_v4_PIC_1, load_toc_v4_PIC_1b, load_macho_picbase,
9590 macho_correct_pic, blockage, move_from_CR_ov_bit, movesi_from_cr,
9591 stack_tie, movsi_to_cr_one, movsi_to_cr, mtcrfsi, eh_set_lr_si,
9592 eh_set_lr_di): Use them.
9593 * rs6000.c: (mtcrf_operation, uses_TOC, rs6000_emit_prologue,
9594 rs6000_emit_epilogue) Use them.
9596 * rtl.h (SYMBOL_REF_TLS_MODEL): Fix mask value.
9598 2003-04-14 Neil Booth <neil@daikokuya.co.uk>
9600 * Makefile.in (c-opts.o): Use custom action.
9602 2003-04-14 Douglas B Rupp <rupp@gnat.com>
9604 * ifcvt.c (noce_process_if_block): Fail on BLKmode move.
9606 2003-04-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9608 * stor-layout.c (layout_type, case ARRAY_TYPE): Add missing code to
9609 handle "superflat arrays" in Ada.
9611 * integrate.c (expand_inline_function): Don't inline if would
9612 lose /u on a BLKmode TARGET.
9614 2003-04-14 Joel Brobecker <brobecker@gnat.com>
9616 * dbxout.c (print_int_cst_bounds_in_octal_p): New function,
9617 extracted from dbxout_type.
9618 (dbxout_range_type): print large bounds in octal format.
9619 (dbxout_type): Replace extracted code by call to
9620 print_int_cst_bounds_in_octal_p.
9622 * dwarf2out.c (gen_compile_unit_die): Emit DW_LANG_Ada95 instead
9623 of DW_LANG_Ada83 for Ada units.
9625 2003-04-14 Olivier Hainque <hainque@act-europe.fr>
9627 * explow.c (round_push): Use HOST_WIDE_INT instead of int for the
9628 temporary used to round CONST_INT sizes.
9630 * tree.c (int_fits_type_p): Extract generic checks from the case
9631 of constant type bounds. Refine the checks against constant type
9632 bounds to allow for possible decisions against each of these bounds
9633 without requiring both bounds to be constant.
9634 (tree_int_cst_msb): Put back.
9635 * tree.h (tree_int_cst_msb): Likewise.
9637 * global.c (global_conflicts): Prevent allocation of call clobbered
9638 hard regs to pseudos live across abnormal edges, as later passes are
9639 not ready to handle them.
9641 * fold-const.c (fold): Reorder tests for conditional expressions.
9643 * expr.c (highest_pow2_factor): Return unsigned.
9644 * expr.h (offset_address): Likewise.
9645 * emit-rtl.c (offset_address): POW2 argument now unsigned.
9647 2003-04-14 Roger Sayle <roger@eyesopen.com>
9649 * builtins.c (expand_builtin_strlen): Evaluate the lengths of
9650 string literals at compile-time.
9652 2003-04-14 Roger Sayle <roger@eyesopen.com>
9654 * fold-const.c (fold): Transform (c1 - x) cmp c2, where cmp is a
9655 comparison operation and c1/c2 are floating point constants into
9656 x swap(cmp) (c1 - c2).
9658 2003-04-14 Vladimir Makarov <vmakarov@redhat.com>
9660 * genautomata.c (output_translate_vect): Fix a typo in loop
9663 2003-04-14 Hans-Peter Nilsson <hp@axis.com>
9666 * config/cris/cris.md ("*mov_sideqi", "*mov_sidehi")
9667 ("*mov_sidesi", "*mov_sideqi_mem", "*mov_sidehi_mem")
9668 ("*mov_sidesi_mem", "*clear_sidesi", "*clear_sidehi")
9669 ("*clear_sideqi", "*ext_sideqihi", "*ext_sideqisi")
9670 ("*ext_sidehisi", "*op_sideqi", "*op_sidehi", "*op_sidesi")
9671 ("*op_swap_sideqi", "*op_swap_sidehi", "*op_swap_sidesi")
9672 ("*extopqihi_side", "*extopqisi_side", "*extophisi_side")
9673 ("*extopqihi_swap_side", "*extopqisi_swap_side")
9674 ("*extophisi_swap_side", 8th, 9th, 10th, 11th, 14th peepholes):
9675 When next to constraint R, replace constraint i with n.
9677 Mon Apr 14 16:18:37 CEST 2003 Jan Hubicka <jh@suse.cz>
9680 * cfgrtl.c (force_nonfallthru_and_redirect): Use unchecked_make_edge.
9682 2003-04-14 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
9684 * doc/contrib.texi (Contributors): Correct my entry.
9686 2003-04-13 Roger Sayle <roger@eyesopen.com>
9688 * tree.h (DECL_BUILT_IN_NONANSI): Remove.
9689 * c-common.c (builtin_function_2): Don't set DECL_BUILT_IN_NONANSI.
9690 * c-decl.c (duplicate_decls): Use invariant DECL_BUILT_IN_NONANSI
9691 implies DECL_BUILT_IN to simplify logic.
9692 * print-tree.c (print_node): Don't dump DECL_BUILT_IN_NONANSI.
9694 2003-04-13 Roger Sayle <roger@eyesopen.com>
9696 * builtin-types.def (BT_FN_STRING_CONST_STRING): New builtin type.
9697 (BT_FN_PTR_SIZE_SIZE): Likewise.
9698 * builtins.def (BUILT_IN_MALLOC, BUILT_IN_CALLOC, BUILT_IN_STRDUP):
9699 New built-in functions for malloc, calloc and strdup respectively.
9700 * calls.c (special_function_p): No need to handle malloc-like
9701 functions any longer. ECF_MALLOC is set via built-in attributes.
9703 * c-decl.c (duplicate_decls): Preserve pure and malloc attributes.
9705 * doc/extend.texi: Document these new built-in functions.
9707 2003-04-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9709 * builtins.c (expand_builtin_memcpy): Add `endp' argument, use it.
9710 (expand_builtin_stpcpy): New.
9711 (expand_builtin): Add BUILT_IN_MEMPCPY & BUILT_IN_STPCPY.
9712 * builtins.def: Add mempcpy & stpcpy support.
9713 * doc/extend.texi (mempcpy, stpcpy): Document new builtins.
9715 2003-04-13 Nick Clifton <nickc@redhat.com>
9717 * config/rs6000/rs6000.c: Replace occurrences of "GNU CC" with
9719 * config/rs6000/40x.md, config/rs6000/603.md,
9720 config/rs6000/6xx.md, config/rs6000/7450.md, config/rs6000/7xx.md,
9721 config/rs6000/8540.md, config/rs6000/aix.h, config/rs6000/aix31.h,
9722 config/rs6000/aix3newas.h, config/rs6000/aix41.h,
9723 config/rs6000/aix43.h, config/rs6000/aix51.h,
9724 config/rs6000/aix52.h, config/rs6000/altivec-defs.h,
9725 config/rs6000/altivec.h, config/rs6000/altivec.md,
9726 config/rs6000/beos.h, config/rs6000/darwin.h,
9727 config/rs6000/eabi.h, config/rs6000/eabialtivec.h,
9728 config/rs6000/eabisim.h, config/rs6000/eabispe.h,
9729 config/rs6000/freebsd.h, config/rs6000/gnu.h,
9730 config/rs6000/host-darwin.c, config/rs6000/linux.h,
9731 config/rs6000/linux64.h, config/rs6000/linuxaltivec.h,
9732 config/rs6000/lynx.h, config/rs6000/mach.h, config/rs6000/mpc.md,
9733 config/rs6000/netbsd.h, config/rs6000/power4.md,
9734 config/rs6000/rios1.md, config/rs6000/rios2.md,
9735 config/rs6000/rs6000-c.c, config/rs6000/rs6000-modes.def,
9736 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
9737 config/rs6000/rs6000.h, config/rs6000/rs6000.md,
9738 config/rs6000/rs64.md, config/rs6000/rtems.h, config/rs6000/spe.h,
9739 config/rs6000/spe.md, config/rs6000/sysv4.h,
9740 config/rs6000/sysv4le.h, config/rs6000/vxworks.h,
9741 config/rs6000/windiss.h, config/rs6000/xcoff.h: Likewise.
9743 2003-04-13 Nick Clifton <nickc@redhat.com>
9745 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Delete
9746 support for -mcall-aix switch.
9747 * config/rs6000/eabiaix.h: Delete.
9748 * config/rs6000/rs6000.h (rs6000_abi): Remove ABI_AIX_NODESC.
9749 (RS6000_REG_SAVE, RS6000_SAVE_AREA, FP_ARGS_MAX_REG,
9750 RETURN_ADDRESS_OFFSET): Remove use of ABI_AIX_NODESC.
9751 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Likewise.
9752 * config/rs6000/rs6000.c (print_operand, rs6000_stack_info,
9753 debug_stack_info, output_function_profiler,
9754 rs6000_trampoline_size, rs6000_initialise_trampoline): Likewise.
9755 * config/rs6000/rs6000.md (call, call_value, call_nonlocal_sysv,
9756 call_indirect_nonlocal_sysv, call_value_indirect_nonlocal_sysv,
9757 call_value_nonlocal_sysv, sibcall_value_nonlocal_sysv,
9758 sibcall_nonlocal_sysv, sibcall_value_local64): Likewise.
9759 * config/rs6000/t-ppcgas (MULTILIB_OPTIONS): Remove mcall-aix
9761 (MULTILIB_DIRNAMES): Remove mcall-aix directories.
9762 (MULTILIB_EXCEPTIONS): Delete.
9763 (MULTILIB_MATCHES): Remove mcall-aix matches.
9765 * doc/fragments.texi: Replace -mcall-aix example with an ARM
9767 * doc/install.texi: Delete powerpc-*-eabiaix target.
9768 * doc/invoke.texi: Remove documentation of mcall-aix switch.
9769 * doc/tm.texi: Remove mcall-aix from example CPP_SPEC.
9770 * config.gcc: Delete powerpc-*-eabiaix target.
9772 2003-04-13 Kazu Hirata <kazu@cs.umass.edu>
9774 * doc/invoke.texi: Fix typos.
9775 * doc/tm.texi: Likewise.
9777 2003-04-12 Zack Weinberg <zack@codesourcery.com>
9779 * c-typeck.c (digest_init, push_init_level): Use CONSTRUCTOR_ELTS.
9781 2003-04-12 Zack Weinberg <zack@codesourcery.com>
9783 * tree.c (build_constructor): New function.
9784 * tree.h: Prototype it.
9786 * c-typeck.c (build_c_cast, pop_init_level)
9787 * profile.c (build_function_info_value, build_gcov_info_value)
9789 Use build_constructor.
9791 * builtins.c (expand_builtin_args_info): Remove #if 0 blocks.
9793 * objc/objc-act.c (build_constructor):
9794 Rename objc_build_constructor. Use build_constructor.
9795 (build_objc_string_object, objc_add_static_instance)
9796 (init_def_list, init_objc_symtab, init_module_descriptor)
9797 (generate_static_references, build_selector_translation_table)
9798 (build_descriptor_table_initializer, generate_descriptor_table)
9799 (build_protocol_initializer, build_ivar_list_initializer)
9800 (generate_ivars_list, build_dispatch_table_initializer)
9801 (generate_dispatch_table, generate_protocol_list)
9802 (build_category_initializer, build_shared_structure_initializer):
9805 2003-04-12 Zack Weinberg <zack@codesourcery.com>
9807 * intl.h: #define gcc_gettext_width to strlen when !ENABLE_NLS.
9809 2003-04-12 Stephane Carrez <stcarrez@nerim.fr>
9811 * config/m68hc11/m68hc11-protos.h
9812 (m68hc11_eq_compare_operator): Declare
9813 * config/m68hc11/m68hc11.h (PREDICATE_CODES): Register new predicate.
9814 * config/m68hc11/m68hc11.c (m68hc11_eq_compare_operator): New predicate
9815 (d_register_operand): Check the operand mode.
9816 (hard_addr_reg_operand): Likewise.
9818 2003-04-12 Stephane Carrez <stcarrez@nerim.fr>
9820 * config/m68hc11/m68hc11.md ("decrement_and_branch_until_zero"): New
9821 pattern for dbcc/ibcc generation for 68HC12.
9822 ("doloop_end"): New pattern.
9823 ("m68hc12_dbcc_dec_hi"): New pattern for dbeq/dbne.
9824 ("m68hc12_dbcc_inc_hi"): New pattern for ibeq/ibne.
9825 ("m68hc12_dbcc_dec_qi"): New pattern.
9826 ("m68hc12_dbcc_inc_qi"): New pattern.
9827 (split): Add split for the above when we can't use dbcc/ibcc due to
9829 (peephole2): Add peephole2 to generate the above when possible.
9831 2003-04-12 Stephane Carrez <stcarrez@nerim.fr>
9833 * config/m68hc11/m68hc11.md ("bitcmpqi" split): No need to test the
9835 (peephole2 optimize const load): Likewise for operand 2.
9836 ("*rotlhi3_with_carry"): Change pattern to a const 1 rotate which
9838 ("*rotrhi3_with_carry"): Likewise.
9839 (ashift:DI 1 split): Update pattern to create the above rotate.
9840 (lshiftrt:DI 1 split): Likewise.
9842 2003-04-12 Stephane Carrez <stcarrez@nerim.fr>
9844 * config/m68hc11/m68hc11.md (SOFT_Z_REGNUM): New constant.
9845 ("tstqi_z_used" split): Use it.
9846 ("cmphi_z_used"): Likewise.
9847 ("bitcmpqi_z_used"): Likewise; also use SP_REGNUM constant.
9848 ("cmpqi_z_used"): Likewise.
9850 2003-04-12 Mark Mitchell <mark@codesourcery.com>
9853 * config/i386/winnt.c (i386_pe_mark_dllimport): Fix thinko.
9855 2003-04-12 Zack Weinberg <zack@codesourcery.com>
9857 * configure.in: Check for wchar.h, mbstowcs, and wcswidth.
9858 * configure, config.in: Regenerate.
9859 * intl.c (gcc_gettext_width): New function.
9860 * intl.h: Prototype it.
9862 2003-04-12 Stephane Carrez <stcarrez@nerim.fr>
9864 * config/m68hc11/m68hc11.h (TARGET_SWITCHES): Fix -mnominmax option;
9865 recognize -mnorelax.
9866 (reg_class): Add Z_OR_S_REGS to represent soft registers with Z
9867 (REG_CLASS_NAMES): Add its name.
9868 (REG_CLASS_CONTENTS): Define its content.
9870 2003-04-12 Stephane Carrez <stcarrez@nerim.fr>
9872 * config/m68hc11/larith.asm (memcpy): Use ARG macro to access stack
9873 parameters so that offsets are valid for far definition.
9874 (__mulsi3): Likewise and use ret to return.
9875 (___adddi3, ___subdi3, ___notdi2, ): Don't use it to save the result.
9877 2003-04-12 David Edelsohn <edelsohn@gnu.org>
9879 * config/rs6000/rs6000.c (rs6000_hash_constant): Skip '0' fields.
9881 2003-04-12 Alexandre Oliva <aoliva@redhat.com>
9883 * mklibgcc.in (libgcc-stage-start): For every multilib directory
9884 containing a libgcc.a, move lib* to the corresponding stage dir.
9886 * Makefile.in (stage1-start, stage2-start, stage3-start,
9887 stage4-start): Move $(SPECS) to specs in stage dir.
9888 (unstage1 unstage2 unstage3 unstage4): Move specs in stage dir
9891 * mklibgcc.in (libgcc-stage-start): Move into the stage directory
9892 object files from the non-libgcc/ multilib directories as well.
9894 2003-04-11 Geoffrey Keating <geoffk@apple.com>
9896 * profile.c (read_counts_file): Initialise 'checksum'.
9898 * emit-rtl.c (gen_rtx): Really correct typo.
9901 * doc/invoke.texi (Debugging Options): Document -frandom-seed.
9902 * configure.in: Check for gettimeofday.
9903 * tree.c (flag_random_seed): Define.
9904 (default_flag_random_seed): New.
9905 (append_random_chars): Use flag_random_seed rather than trying
9906 to acquire randomness here.
9907 * tree.h (default_flag_random_seed): Declare.
9908 * toplev.c (display_help): Add -frandom-seed and -fstack-limit-*
9910 (decode_f_option): Handle -frandom-seed.
9911 (print_switch_values): Call default_flag_random_seed.
9912 * flags.h (flag_random_seed): Declare.
9913 * configure: Regenerate.
9914 * config.in: Regenerate.
9915 * config/alpha/t-crtfm: Use -frandom-seed.
9917 * doc/extend.texi (Empty Structures): New.
9919 * c-pch.c: Include flags.h. Add comments to routines.
9920 (struct c_pch_validity): New.
9921 (get_ident): Update PCH file version number.
9922 (pch_init): Output current debugging type.
9923 (c_common_valid_pch): Check debugging type.
9924 * Makefile.in (c-pch.o): Update dependencies.
9925 * flags.h (debug_type_names): Declare.
9926 * toplev.c (debug_type_names): Move out of decode_g_option.
9928 2003-04-11 Eric Christopher <echristo@redhat.com>
9930 * emit-rtl.c (gen_rtx): Fix typos.
9932 2003-04-11 Richard Henderson <rth@redhat.com>
9934 * emit-rtl.c (gen_rtx): Zero '0' fields.
9936 2003-04-11 Richard Henderson <rth@redhat.com>
9939 * expr.c (expand_expr): Use COMPLETE_OR_UNBOUND_ARRAY_TYPE_P
9940 not COMPLETE_TYPE_P for re-invoking layout_decl.
9942 2003-04-11 Simon Law <sfllaw@engmail.uwaterloo.ca>
9944 * doc/bugreport.texi: Fix paragraph breaking between sections
9945 in preparation for TeXinfo's paragraph indentation fixes.
9946 * doc/extend.texi: Ditto.
9947 * doc/invoke.texi: Ditto.
9948 * doc/objc.texi: Ditto.
9949 * doc/gcov.texi: Wrap 'gcov' in @command{}.
9950 * doc/invoke.texi (Darwin Options): Add a preamble.
9952 2003-04-11 Richard Henderson <rth@redhat.com>
9954 * config/i386/i386.c (tls_model_chars): Remove.
9955 (ix86_encode_section_info, ix86_strip_name_encoding): Remove.
9956 (local_symbolic_operand): Use SYMBOL_REF_LOCAL_P.
9957 (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
9958 (tls_symbolic_operand_1): Likewise.
9959 (legitimate_pic_address_disp_p): Use SYMBOL_REF_LOCAL_P.
9960 * config/i386/i386.h (TARGET_ENCODE_SECTION_INFO): Remove.
9961 (TARGET_STRIP_NAME_ENCODING, ASM_OUTPUT_LABELREF): Remove.
9962 * config/i386/winnt.c (i386_pe_encode_section_info): Replace
9963 bits "copied from i386.h" with default_encode_section_info.
9965 2003-04-11 Richard Henderson <rth@redhat.com>
9967 * rtl.def (SYMBOL_REF): Add two 0 fields.
9968 * gengtype.c (adjust_field_rtx_def): Handle them.
9969 * print-rtl.c (print_rtx): Print them.
9970 * rtl.h (SYMBOL_REF_DECL, SYMBOL_REF_FLAGS): New.
9971 (SYMBOL_FLAG_FUNCTION, SYMBOL_REF_FUNCTION_P): New.
9972 (SYMBOL_FLAG_LOCAL, SYMBOL_REF_LOCAL_P): New.
9973 (SYMBOL_FLAG_SMALL, SYMBOL_REF_SMALL_P): New.
9974 (SYMBOL_FLAG_TLS_SHIFT, SYMBOL_REF_TLS_MODEL): New.
9975 (SYMBOL_FLAG_EXTERNAL, SYMBOL_REF_EXTERNAL_P): New.
9976 (SYMBOL_FLAG_MACH_DEP): New.
9977 * optabs.c (init_one_libfunc): Zap fake SYMBOL_REF_DECL.
9978 * varasm.c (make_decl_rtl): Set SYMBOL_REF_DECL.
9979 (assemble_static_space): Set SYMBOL_REF_FLAGS.
9980 (assemble_trampoline_template): Likewise.
9981 (output_constant_def, force_const_mem): Likewise.
9982 (default_encode_section_info): New.
9983 * output.h: Declare it.
9984 * target-def.h (TARGET_ENCODE_SECTION_INFO): Use it.
9986 2003-04-11 Richard Henderson <rth@redhat.com>
9988 * libfuncs.h (LTI_setbits, LTI_gcov_flush, LTI_gcov_init): New.
9989 (setbits_libfunc, gcov_flush_libfunc, gcov_init_libfunc): New.
9990 * optabs.c (init_optabs): Initialize them.
9991 (init_libfuncs): Use init_one_libfunc.
9992 * calls.c (expand_call): Use gcov_flush_libfunc.
9993 * expr.c (store_constructor): Use setbits_libfunc.
9994 * function.c (expand_main_function): Use init_one_libfunc.
9995 * profile.c (create_profiler): Use gcov_init_libfunc and DECL_RTL.
9997 2003-04-11 Mark Mitchell <mark@codesourcery.com>
9999 * doc/c-tree.texi (Functions): Remove DECL_REAL_CONTEXT
10000 documentation; add DECL_FRIEND_CONTEXT.
10002 2003-04-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10004 * doc/install.texi (hppa): Update links for HP-UX patches. Revise
10005 notes on linker selection and configuration for 64-bit HP-UX port.
10006 * doc/invoke.texi (hppa): Remove hppa text from description for
10007 -ffunction-sections and -fdata-sections. Document -static, -nolibdld
10008 and -threads options.
10010 * pa-hpux10.h (LIB_SPEC): Add link options to resolve dependency of
10011 libc.a on libdld.sl when -static is specified and -nolibdld is not
10013 * pa64-hpux.h (LIB_SPEC): Likewise.
10014 * pa-hpux11.h (LIB_SPEC): Likewise.
10015 (LINK_SPEC): Add __gcc_plt_call as an undefined symbol when -shared
10018 2003-04-11 Zack Weinberg <zack@codesourcery.com>
10020 * config/darwin-c.c (darwin_pragma_unused): Use lookup_name,
10021 not IDENTIFIER_LOCAL_VALUE.
10023 2003-04-11 Richard Henderson <rth@redhat.com>
10026 * expr.c (expand_expr): Move DECL_RTL frobbing ...
10027 * stor-layout.c (layout_decl): ... here.
10029 2003-04-11 James A. Morrison <ja2morri@uwaterloo.ca>
10031 * doc/invoke.texi: Eliminate extra white-space caused by
10032 @gccoptlist{ on its own line.
10033 * doc/invoke.texi: Ensured there are two spaces between each option.
10034 * doc/invoke.texi: Re-wrapped option lines that were too wide.
10035 Added @gol to options that didn't have them.
10037 2003-04-11 Nathan Sidwell <nathan@codesourcery.com>
10039 * Makefile.in (loop-init.o): Do not depend on gcov-io.h,
10042 Simplify interface to gcov reading and writing.
10043 * gcov-io.h (gcov_file, gcov_position, gcov_length, gcov_buffer,
10044 gcov_alloc, gcov_modified, gcov_errored): Move into ...
10045 (struct gcov_var gcov_var): ... this static structure.
10046 (gcov_write_unsigned, gcov_write_counter, gcov_write_string):
10048 (gcov_read_unsigned, gcov_read_couter, gcov_read_string): Return
10050 (gcov_read_bytes, gcov_write_bytes): Set error flag on error.
10051 (gcov_reserve_length): Remove.
10052 (gcov_write_tag): New.
10053 (gcov_write_length): Adjust.
10054 (gcov_read_summary, gcov_write_summary): Adjust.
10055 (gcov_eof, gcov_ok): Rename to ...
10056 (gcov_is_eof, gcov_is_error): ... here. Return error code.
10057 (gcov_save_position, gcov_resync): Rename to ...
10058 (gcov_position, gcov_seek): ... here.
10059 (gcov_skip, gcov_skip_string): Remove.
10060 (gcov_error): Remove.
10061 (gcov_open, gcov_close): Adjust.
10062 * gcov.c (find_source): Take const char *, copy it on allocation.
10063 (read_graph_file): Adjust.
10064 (read_count_file): Adjust.
10065 * libgcov.c (gcov_exit): Adjust.
10066 * gcov-dump.c (tag_function, tag_blocks, tag_arcs, tag_lines,
10067 tag_arc_counts, tag_summary): Return void. Adjust.
10068 (struct tag_format): Adjust proc member.
10069 (dump_file): Adjust gcov calls.
10071 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
10073 * Makefile.in (fixinc.sh): Pass BUILD_LIBERTY as LIBERTY to
10075 * fixinc/mkfixinc.sh (defs): Add LIBERTY.
10076 * configure.in (STMP_FIXINC, STMP_FIXPROTO): Don't disable on
10077 build != host sysrooted builds.
10078 * configure.in (SYSTEM_HEADER_DIR): Make sure it contains
10079 TARGET_SYSTEM_ROOT even on sysrooted natives.
10080 * configure: Rebuilt.
10082 2003-04-10 Zack Weinberg <zack@codesourcery.com>
10084 * c-decl.c (struct binding_level): Add shadowed_tags and
10085 function_body; remove this_block, tag_transparent, and
10086 subblocks_tag_transparent; update comments.
10087 (clear_binding_level, lookup_tag_reverse): Kill.
10088 (make_binding_level): Use ggc_alloc_cleared or memset.
10089 (lookup_tag): Remove struct binding_level* parameter. All
10090 callers changed. Just look at IDENTIFIER_TAG_VALUE, and
10091 current_binding_level->tags if asked for thislevel_only or if
10092 we might have to diagnose "struct foo; union foo;"
10093 (pushlevel): Ignore argument. Do not push another binding
10094 level on the transition from the parameters to the top level
10095 of the function body; just tweak the flags and proceed.
10096 (poplevel): Overhaul. Clear IDENTIFIER_TAG_VALUEs; on exiting
10097 a function body, separate the parameter list from the
10098 top-level local variables.
10099 (set_block): Do nothing.
10100 (pushtag): Set IDENTIFIER_TAG_VALUE and add an entry to
10101 shadowed_tags if necessary.
10102 (warn_if_shadowing): Nuke the special case for local shadowing
10104 (pushdecl): Do not create a shadow entry if we are replacing
10105 an older decl in the same binding level.
10106 (pushdecl_function_level): Tweak for new way of indicating
10108 (shadow_tag_warned): Use TYPE_NAME, not lookup_tag_reverse.
10109 (start_function): Don't set subblocks_tag_transparent.
10110 (finish_function): Fix up the binding_level stack for totally
10111 empty functions. Otherwise, don't call poplevel.
10113 * c-common.c (shadow_warning): MANDATORY argument is no longer
10114 necessary. Always use plain warning.
10115 * c-common.h: Update to match.
10117 * cfglayout.c (scope_to_insns_initialize): Clear block when we
10118 hit the FUNCTION_DECL.
10119 * function.c: Do not create cyclic tree structure.
10121 2003-04-10 Zack Weinberg <zack@codesourcery.com>
10123 * c-tree.h (struct lang_identifier): Replace global_value,
10124 local_value members with symbol_value, tag_value. Kill
10125 implicit_decl and limbo_value.
10126 (IDENTIFIER_GLOBAL_VALUE, IDENTIFIER_LOCAL_VALUE,
10127 IDENTIFIER_LIMBO_VALUE, IDENTIFIER_IMPLICIT_DECL,
10128 C_MISSING_PROTOTYPE_WARNED): Kill.
10129 (IDENTIFIER_SYMBOL_VALUE, IDENTIFIER_TAG_VALUE,
10130 C_DECL_IMPLICIT, C_DECL_ISNT_PROTOTYPE): New.
10131 (C_DECL_ANTICIPATED): Rename to C_DECL_INVISIBLE.
10132 (implicit_decl_warning, lookup_name_current_level,
10133 record_function_scope_shadow): Don't prototype.
10134 (pushdecl_function_level): Prototype.
10136 * c-decl.c (truly_local_externals): New variable.
10137 (struct binding_level): Adjust commentary.
10138 (get_function_binding_level, clear_limbo_values,
10139 record_function_scope_shadow): Kill.
10140 (lookup_name_current_level, implicit_decl_warning): Are now static.
10141 (any_external_decl, record_external_decl): New static functions.
10142 (clone_underlying type): Split out of pushdecl.
10143 (c_print_identifier): Update to match changes to struct
10145 (poplevel): Delete #if 0 block. Make externals invisible
10146 instead of clearing their IDENTIFIER_SYMBOL_VALUEs. Don't
10147 call clear_limbo_values. Refer to IDENTIFIER_SYMBOL_VALUE not
10148 IDENTIFIER_GLOBAL_VALUE or IDENTIFIER_LOCAL_VALUE.
10149 (duplicate-decls): For real parm decl after a forward decl,
10150 set TREE_ASM_WRITTEN here. Allow void foo(...) followed by
10151 foo(...) { } with only a warning. Say whether a previous
10152 declaration was implicit.
10153 (warn_if_shadowing): Now handles all shadowing, not just
10154 local-over-local. Clarify comments.
10155 (pushdecl): Rewritten. There is no longer a distinction
10156 between global and local symbol values; they're all
10157 IDENTIFIER_SYMBOL_VALUE. Call record_external_decl on all
10158 DECL_EXTERNAL decls, and use any_external_decl to check
10159 against previous externals. Kill #if 0 blocks. Don't
10160 tolerate error_mark_node being NULL.
10161 (pushdecl_top_level): Handle only those cases which
10162 Objective C (the only user) needs.
10163 (pushdecl_function_level): New function.
10164 (implicitly_declare): Create ordinary decls with
10165 C_DECL_IMPLICIT set. Recycle old decls, however they got
10167 (lookup_name): It's always IDENTIFIER_SYMBOL_VALUE. Return 0
10168 for C_DECL_INVISIBLE symbols.
10169 (lookup_name_current_level): Likewise. Use chain_member.
10170 (c_make_fname_decl): Don't muck with DECL_CONTEXT.
10171 Use pushdecl_function_level.
10172 (builtin_function): Use C_DECL_INVISIBLE.
10173 (start_function): Don't muck with IDENTIFIER_IMPLICIT_DECL.
10174 Use C_DECL_ISNT_PROTOTYPE and C_DECL_IMPLICIT.
10175 (store_parm_decls): It's IDENTIFIER_SYMBOL_VALUE now.
10176 (identifier_global_value): Same. Must scan
10177 global_binding_level in extremis.
10179 * c-typeck.c (undeclared_variable): New static function, split
10180 from build_external_ref.
10181 (build_external_ref): Use DECL_CONTEXT, not
10182 IDENTIFIER_LOCAL_VALUE, to decide whether a local hides
10183 an instance variable. Restructure for clarity.
10184 * objc/objc-act.c: Use identifier_global_value, not
10185 IDENTIFIER_GLOBAL_VALUE.
10187 2003-04-08 Jonathan Wakely <redi@gcc.gnu.org>
10189 * doc/extend.texi (Template Instantiation): Refer to ISO standard,
10191 * doc/invoke.texi (C++ Dialect Options): Same.
10193 2003-04-10 Zack Weinberg <zack@codesourcery.com>
10195 * tree.c (tree_operand_check_failed): New function.
10196 * tree.h (TREE_OPERAND_CHECK, TREE_OPERAND_CHECK_CODE,
10197 TREE_RTL_OPERAND_CHECK): New checking macros.
10198 (TREE_OPERAND, SAVE_EXPR_CONTEXT, SAVE_EXPR_RTL,
10199 RTL_EXPR_SEQUENCE, RTL_EXPR_RTL, WITH_CLEANUP_EXPR_RTL,
10200 CONSTRUCTOR_ELTS, LABELED_BLOCK_LABEL, LABELED_BLOCK_BODY,
10201 EXIT_BLOCK_RETURN, LOOP_EXPR_BODY, EXPR_WFL_NODE,
10202 EXPR_WFL_FILENAME_NODE, EXPR_WFL_FILENAME, TARGET_EXPR_SLOT,
10203 TARGET_EXPR_INITIAL, TARGET_EXPR_CLEANUP): Use the new
10206 Thu Apr 10 23:52:30 CEST 2003 Jan Hubicka <jh@suse.cz>
10209 * function.c (instantate_virtual_regs): Verify that all ASM statements
10210 match after the virutal regs instantiation.
10212 2003-04-10 Steve Ellcey <sje@cup.hp.com>
10214 * ia64-protos.h (addp4_optimize_ok): New.
10215 * ia64.c (addp4_optimize_ok): New.
10216 * ia64.md (*ptr_extend_plus_1): Use addp4_optimize_ok.
10217 (*ptr_extend_plus_2): Ditto.
10219 2003-04-10 Steve Ellcey <sje@cup.hp.com>
10221 * expr.c (expand_assignment): Extend offset_rtx with convert_to_mode
10222 not with convert_memory_address.
10223 (store_constructor): Ditto, and same for copy_size_rtx.
10224 (expand_expr): Ditto.
10226 2003-04-10 Douglas B Rupp <rupp@gnat.com>
10228 * config/i386/i386.c (ix86_ms_bitfield_layout_p): Fix formatting.
10230 2003-04-10 Bob Wilson <bob.wilson@acm.org>
10232 * config/xtensa/lib2funcs.S (__xtensa_sync_caches): Flush data cache
10233 even if it is configured to be write-through.
10235 2003-04-10 Ulrich Weigand <uweigand@de.ibm.com>
10237 * config/s390/s390.c (larl_operand): Do not allow symbols
10239 (s390_encode_section_info): Mark symbols with forced 1-byte
10240 alignment with '@'.
10241 (s390_strip_name_encoding): Strip '@'.
10242 (legitimize_pic_address): Handle symbols that are not valid
10243 LARL operands in 64-bit mode.
10245 2003-04-10 Andrew Haley <aph@redhat.com>
10247 * tree-inline.c (inlinable_function_p): Disable inlining for
10248 synchronized methods.
10250 2003-04-09 Steven Bosscher <steven@gcc.gnu.org>
10252 * c-common.h (lang_statement_code_p): Remove declaration.
10253 (statement_code_p): Ditto.
10254 (c_common_stmt_codes): Define; list of c-common statement codes.
10255 (statement_code_p): New extern declaration.
10256 (STATEMENT_CODE_P): Define.
10257 (INIT_STATEMENT_CODES): Define.
10258 * c-common.c (statement_code_p): Kill the function, declare
10259 as an array of bools instead.
10260 (lang_statement_code_p): Remove.
10261 (walk_stmt_tree): Use STATEMENT_CODE_P not statement_code_p.
10262 (c_safe_from_p): Ditto.
10263 * c-objc-common.c (c_objc_common_init): Use INIT_STATEMENT_CODES
10264 to initialize the statement_code_p array.
10265 * tree-inline.c (walk_tree): Use STATEMENT_CODE_P instead of
10267 (copy_tree_r): Ditto.
10268 * cp/cp-tree.h (cp_stmt_codes): Define; list of C++ specific
10269 statement tree codes.
10270 * cp/lex.c (cxx_init): Add missing print line break. Use
10271 INIT_STATEMENT_CODES to initialize the statement_code_p array.
10272 * cp/parser.c (cp_parser_statement): Use STATEMENT_CODE_P
10273 instead of statement_code_p.
10274 * cp/pt.c (tsubst_expr): Ditto.
10275 * cp/tree.c (verify_stmt_tree_r): Ditto.
10276 (cp_statement_code_p): Remove.
10277 (init_tree): Don't set lang_statement_code_p, it's gone.
10279 2003-04-09 Dan Nicolaescu <dann@ics.uci.edu>
10280 Zack Weinberg <zack@codesourcery.com>
10282 * regrename.c (struct du_chain): Use a bitfield for reg_class.
10283 * cse.c (struct qty_table_elem, struct table_elt, struct set):
10284 Use bitfields for fields holding enum rtx_code or
10285 enum machine_mode values. Add comments explaining size choices.
10287 2003-04-09 Alexandre Oliva <aoliva@redhat.com>
10289 * config/fp-bit.c (unpack_d): Handle pair of doubles with
10290 different signs correctly.
10292 2003-04-09 Vladimir Makarov <vmakarov@redhat.com>
10294 * sched-deps.c (reg_pending_barrier_mode): New enumeration.
10295 (reg_pending_barrier): Make it of the enumeration type.
10296 (sched_analyze_2): Define the barrier as MOVE_BARRIER or
10298 (sched_analyze): Ditto.
10299 (sched_analyze_insn): Ditto. Use anti-dependencies for
10300 MOVE_BARRIER and true-dependencies as TRUE_BARRIER.
10301 (init_deps_global): Initialize the barrier as NO_BARRIER.
10303 2003-04-09 Vladimir Makarov <vmakarov@redhat.com>
10305 * config/ia64/ia64.c (issue_nops_and_insn): Add new parameter.
10306 Check that asm insn starts on a new cycle. Add nops after asm
10307 insn to end bundle.
10308 (bundling): Move insn type evaluation from the loop. Call
10309 issue_nops_and_insn with the new parameter. Ignore changing
10310 position for nops after asm insn.
10312 2003-04-09 Alexandre Oliva <aoliva@redhat.com>
10314 * optabs.c: Comment that gen_add2_insn and others may actually
10315 return emitted insns, if the gen functions turn out to return
10317 * reload1.c (reload_cse_move2add): Cope with emitted insns from
10320 2003-04-09 Richard Henderson <rth@redhat.com>
10322 * config/ia64/ia64.c (move_operand): Allow symbolic_operand,
10323 but not tls_symbolic_operand.
10324 (ia64_expand_load_address): Remove scratch operand.
10325 (ia64_expand_tls_address): Split out from ia64_expand_move.
10326 (ia64_expand_move): Split symbolics only after reload.
10327 (ia64_emit_cond_move): New.
10328 * config/ia64/ia64-protos.h: Update.
10329 * config/ia64/ia64.md (movsi_symbolic, movdi_symbolic): Remove.
10330 (symbolic splitter): Accept SImode operands too.
10331 (cmove splitter): Use ia64_emit_cond_move.
10333 2003-04-09 Nick Clifton <nickc@redhat.com>
10335 * doc/install.texi: Note that ARM toolchains need binutils 2.13 or
10337 * config/arm/elf.h (SUBTARGET_ASM_FLOAT_SPEC): Pass -mfpu=softfpa
10338 instead of -mno-fpu.
10339 * config/arm/semi.h (ASM_SPEC): Likewise.
10340 * config/arm/xscale-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise,
10341 but only if -msoft-float is specified pass. Otherwise pass
10344 2003-04-09 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10346 * function.c (purge_addressof): Use free_INSN_LIST_node instead of
10347 free_EXPR_LIST_node.
10349 2003-04-08 Roger Sayle <roger@eyesopen.com>
10351 * fold-const.c (fold): Use "fold" following build in more places.
10352 Optimize sqrt(x)*sqrt(x) as x, pow(x,y)*pow(z,y) as pow(x*z,y),
10353 pow(x,y)*pow(x,z) as pow(x,y+z) and x/pow(y,z) as x*pow(y,-z).
10355 2003-04-08 Roger Sayle <roger@eyesopen.com>
10357 * builtins.c (fold_builtin): Constant fold expressions as x*0.5
10358 instead of x/2.0. Optimize sqrt(pow(x,y)) as pow(x,y*0.5),
10359 log(pow(x,y)) as y*log(x), pow(exp(x),y) as exp(x*y),
10360 pow(sqrt(x),y) as pow(x,y*0.5) and pow(pow(x,y),z) as pow(x,y*z).
10361 Delete function scope "fcode" variable to avoid shadowing.
10363 2003-04-08 Kevin Buettner <kevinb@redhat.com>
10365 * dwarf2out.c (DWARF_ARANGES_HEADER_SIZE, DWARF_ARANGES_PAD_SIZE):
10366 Take into account DWARF_INITIAL_LENGTH_SIZE.
10368 2003-04-08 Hans-Peter Nilsson <hp@axis.com>
10370 * reorg.c (fill_slots_from_thread): When considering changing the
10371 insn following a reg-to-reg copy insn to use the source reg of the
10372 copy, bail out if there's overlap between the registers.
10374 2003-04-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10376 * function.c (postponed_insns): New.
10377 (purge_addressof_1): Postpone processing of insns if addressofs
10378 are not put into stack.
10379 (purge_addressof): Process postponed insns.
10381 2003-04-08 J"orn Rennecke <joern.rennecke@superh.com>
10383 * sh.h (NORMAL_MODE): If interrupt handler and TARGET_FMOVD,
10384 this is FP_MODE_DOUBLE .
10385 * sh.c (ra.h): #include.
10386 (push_regs): Add second parameter. Changed all callers.
10387 If necessary, set fpscr before saving floating point registers.
10388 (calc_live_regs): If interrupt handler and TARGET_FMOVD, always
10389 do saves / restores with SZ == 1.
10390 (sh_expand_prologue): If interrupt handler, don't use gen_toggle_sz.
10391 (sh_expand_epilogue): Likewise. For TARGET_FMOVD, if floating point
10392 registers are being restored, restore FPSCR only after restoring them.
10394 2003-04-08 Aldy Hernandez <aldyh@redhat.com>
10396 * config/rs6000/rs6000.c (rs6000_init_builtins): Set opaque types
10397 regardless of architecture.
10398 (spe_init_builtins): Change V2SI and V2SF types to opaque types.
10400 2003-04-08 J"orn Rennecke <joern.rennecke@superh.com>
10402 * sh.c (push_regs, calc_live_regs): Return int. Take single
10403 HARD_REG_SET * parameter. Changed all callers.
10405 Tue Apr 8 11:12:07 CEST 2003 Jan Hubicka <jh@suse.cz>
10407 * i386.c (legitimate_pic_address_disp_p): Do not accept PLUS in the
10409 (legitimize_pic_address): Move plus outside the unspec.
10410 * i386.c (legitimate_constant_p): Check (CONST (PLUS (UNSPEC ...
10413 2003-04-08 Nathan Sidwell <nathan@codesourcery.com>
10415 * gcov-io.h (gcov_save_position): Remove __inline__ from
10418 2003-04-07 Matt Kraai <kraai@alumni.cmu.edu>
10420 * doc/install.texi: Use @command and @samp for single- and
10421 multi-word commands respectively.
10422 * doc/makefile.texi: Likewise.
10423 * doc/sourcebuild.texi: Likewise.
10425 2003-04-07 Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
10426 Richard Henderson <rth@redhat.com>
10429 * expr.c (safe_from_p): Rearrange to avoid deep recursion in
10430 favor of looping and tail recursion for TREE_LIST and binops.
10432 2003-04-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10434 * loop.h (REGNO_FIRST_LUID, REGNO_LAST_LUID): Provide defaults
10435 for insns without luid.
10437 2003-04-07 Glen Nakamura <glen@imodulo.com>
10440 * explow.c (maybe_set_unchanging): Don't flag non-static const
10441 aggregate type initializers with RTX_UNCHANGING_P.
10443 2003-04-07 Richard Henderson <rth@redhat.com>
10446 * function.c (purge_addressof_1): Don't try arithmetics for
10447 unchanging memories.
10449 2003-04-07 Janis Johnson <janis187@us.ibm.com>
10451 * doc/sourcebuild.texi (Test Suites): Document testing support for
10452 gcov and profile-directed optimizations; describe gcc.misc-tests.
10454 Mon Apr 7 22:19:59 CEST 2003 Jan Hubicka <jh@suse.cz>
10457 * i386.md (movsi_1, movsi_nointerunit_1): Fix SSEMOV alternative.
10459 2003-04-07 Eric Botcazou <ebotcazou@libertysurf.fr>
10461 * doc/rtl.texi (Comparison operations): Update to
10462 record the allowed comparison modes.
10464 2003-04-07 Aldy Hernandez <aldyh@redhat.com>
10466 * config/rs6000/rs6000.c (rs6000_common_init_builtins): Rename all
10467 V2SI_type_node to opaque_V2SI_type_node. Rename all
10468 V2SF_type_node to opaque_V2SF_type_node.
10469 (rs6000_init_builtins): Define opaque_V2SI_type_node and
10470 opaque_V2SF_type_node.
10471 (is_ev64_opaque_type): The types opaque_V2SI_type_node and
10472 opaque_V2SF_type_node are opaque types.
10474 2003-04-07 J"orn Rennecke <joern.rennecke@superh.com>
10476 * gcse.c (replace_store_insn): Use single_set.
10478 2003-04-07 Nathan Sidwell <nathan@codesourcery.com>
10480 Change gcov file interface to single file at a time.
10481 * gcov-io.h: Replace IN_LIBGCC1 with IN_LIBGCOV. Use IN_GCOV.
10482 Convert to C89 prototypes.
10483 (gcov_file, gcov_length, gcov_position, gcov_buffer, gcov_alloc,
10484 gcov_error, gcov_modified): New static variables.
10485 (gcov_open, gcov_close, gcov_read_bytes, gcov_write_bytes): New
10487 (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
10488 gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
10489 (gcov_read_summary, gcov_write_summary): Adjust.
10490 (gcov_save_position, gcov_reserve_length, gcov_write_length):
10492 (gcov_resync, gcov_skip, gcov_skip_string): Adjust.
10493 (da_file_open, da_file_close, da_file_eof, da_file_error): Remove.
10494 (da_file_position, da_file_seek, da_file_write, da_file_read):
10496 (gcov_error, gcov_eof, gcov_ok, gcov_time): New functions.
10497 * gcov.c (gcov_type): Don't typedef here.
10499 (read_graph_file, read_count_file): Adjust.
10500 * gcov-dump.c (gcov_type): Don't typedef here.
10501 (IN_GCOV): #define.
10502 (tag_function, tag_blocks, tag_arcs, tag_lines, tag_arc_counts):
10503 Remove FILE parameter, adjust.
10504 (struct tag_format): Adjust proc member.
10505 (dump_file): Adjust.
10506 * libgcov.c (IN_LIBGCOV): #define.
10507 (gcov_exit): Adjust.
10508 * loop-init.c: Don't #include gcov-io.h
10509 * profile.c (struct counts_entry): New structure to hold counter
10511 (struct section_reference, struct da_index_entry): Remove.
10512 (bbg_file, da_file): Remove.
10513 (htab_counts_index_hash, htab_counts_index_eq,
10514 htab_counts_index_del): Replace with ...
10515 (htab_counts_entry_hash, htab_counts_entry_eq,
10516 htab_counts_entry_del): ... these.
10517 (cleanup_counts_index, index_counts_file): Remove.
10518 (read_counts_file): New function.
10519 (get_exec_counts): Adjust.
10520 (compute_branch_probabilities): Don't free the exec counts here.
10521 (branch_prob): Adjust.
10522 (init_branch_prob): Adjust.
10523 (end_branch_prob): Adjust.
10525 2003-04-07 Aldy Hernandez <aldyh@redhat.com>
10527 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
10530 * config/rs6000/rs6000.c: Delete rs6000_fprs.
10531 Declare rs6000_float_gprs.
10532 Declare rs6000_float_gprs_string.
10533 (rs6000_parse_float_gprs_option): New.
10534 (rs6000_override_options): Genericize rs6000_parse_* calls to use
10535 rs6000_parse_yes_no_option.
10536 Change check for cpu=8540, to use TARGET_E500.
10537 (rs6000_parse_isel_option): Delete.
10538 (rs6000_parse_spe_option): Delete.
10539 (rs6000_parse_vrsave_option): Delete.
10541 * config/rs6000/rs6000.h: Rename rs6000_fprs to rs6000_float_gprs.
10542 Define rs6000_float_gprs_string.
10543 (TARGET_OPTIONS): Add rs6000_float_gprs option.
10545 * config/rs6000/eabi.h (TARGET_FPRS): Change to use rs6000_float_gprs.
10547 * config/rs6000/eabispe.h: Set rs6000_float_gprs.
10549 Mon Apr 7 14:36:24 CEST 2003 Jan Hubicka <jh@suse.cz>
10552 * cfglayout.c (cfg_layout_redirect_edge):
10553 Redirect any branch edges unified with the fallthru one.
10554 * cfgrtl.c (force_nonfallthru_and_redirect): Do not special
10555 case fallthru edges when called via cfglayout.c
10557 2003-04-07 J"orn Rennecke <joern.rennecke@superh.com>
10559 * c-typeck.c (output_init_element): Check for type == error_mark_node.
10561 2003-04-07 Kazu Hirata <kazu@cs.umass.edu>
10563 * config/h8300/h8300.md (*zero_extendqisi2_h8300hs): Always
10565 (a splitter): Do zero-extension via HImode.
10567 2003-04-07 James A. Morrison <ja2morri@uwaterloo.ca>
10569 * doc/invoke.texi: Eliminate extra white-space caused by
10570 @gccoptlist{ on its own line.
10571 * doc/invoke.texi: Ensured there are two spaces between each option.
10572 * doc/invoke.texi: Re-wrapped option lines that were too wide.
10573 Added @gol to options that didn't have them.
10575 2003-04-07 James A Morrison <ja2morri@student.math.uwaterloo.ca>
10577 * doc/extend.texi (Darwin Pragmas): Fix spelling of Mac OS.
10579 2003-04-06 Zack Weinberg <zack@codesourcery.com>
10581 * tree.c (tree_size): For all 'c' and 'x' nodes, look directly
10582 at the sizes of the relevant structures, rather than relying
10583 on TREE_CODE_LENGTH. Call lang_hooks.tree_size to get the
10584 sizes of any such we don't know about. Use
10585 lang_hooks.identifier_size for IDENTIFIER_NODE.
10587 (initializer_zerop): Use CONSTRUCTOR_ELTS.
10588 * tree.def: Update commentary. Make fourth element of
10589 the definition for all 'c' and 'x' nodes zero.
10591 * langhooks.h: New hook, tree_size / LANG_HOOKS_TREE_SIZE.
10592 * langhooks-def.h: Update to match.
10593 * langhooks.c: New default, lhd_tree_size.
10595 * c-common.def (SRCLOC): Kill.
10596 * c-pretty-print.c (pp_c_postfix_expression [case SRCLOC]):
10597 Remove entirely - was already #if-ed out.
10600 2003-04-06 Zack Weinberg <zack@codesourcery.com>
10602 * mklibgcc.in: Use a here document to avoid running afoul of
10603 shells that generate control-A from "echo \1".
10605 2003-04-06 Aldy Hernandez <aldyh@redhat.com>
10607 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mspe
10610 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
10613 * config/rs6000/eabi.h (TARGET_E500): Define.
10615 * config/rs6000/rs6000.h (TARGET_E500): Define.
10616 (TARGET_OPTIONS): Add spe= option.
10617 Declare rs6000_spe and rs6000_spe_string extern.
10619 * config/rs6000/rs6000.c (branch_positive_comparison_operator):
10620 Change TARGET_SPE to TARGET_E500.
10621 (ccr_bit): Change TARGET_SPE to TARGET_E500. Check for
10623 (print_operand): Same.
10624 (rs6000_generate_compare): Same.
10625 (output_cbranch): Same.
10626 (rs6000_spe): Declare.
10627 (rs6000_spe_string): Declare.
10628 (rs6000_override_options): Call rs6000_parse_spe_option.
10629 (rs6000_parse_spe_option): New.
10631 2003-04-06 Steven Bosscher <steven@gcc.gnu.org>
10633 * hashtable.c (gcc_obstack_init): Delete this function
10634 and everything related to it.
10635 * hashtable.h: Remove prototype.
10636 * bitmap.c (bitmap_element_allocate): Cleanup redundant
10637 defines. Cleanup some unnecessary whitespace.
10638 * defaults.h (obstack_chunk_alloc): Redefine with
10639 appropriate casts for libiberty obstacks.
10640 (obstack_chunk_free): Ditto.
10641 (OBSTACK_CHUNK_SIZE): Define, default to 0.
10642 (gcc_obstack_init): Define as a call to _obstack_begin.
10643 * tree.c (print_obstack_statistics): Delete this unused
10645 * tree.h (obstack): Don't forward-declare.
10646 (print_obstack_statistics): Delete prototype.
10647 (print_obstack_name): Ditto.
10648 (gcc_obstack_init): Ditto.
10649 * rtl.h (gcc_obstack_init): Ditto.
10650 * java/jv-scan.c (gcc_obstack_init): Delete this
10651 function, its prototype and related defines.
10652 * java/jvgenmain.c (gcc_obstack_init): Delete this
10653 function, and related defines.
10654 * java/parse-scan.y (obstack_chunk_alloc): Don't define.
10655 (obstack_chunk_free): Ditto
10657 2003-04-06 Geoffrey Keating <geoffk@apple.com>
10659 * dbxout.c (dbxout_handle_pch): Move prototype out from
10660 #if defined DBX_DEBUGGING_INFO.
10662 2003-04-05 Nathan Sidwell <nathan@codesourcery.com>
10664 * gcov.c (struct arc_info): Replace local_span with cycle.
10665 (struct block_info): Replace u.span with u.cycle. Add is_call_return.
10666 (solve_flow_graph): Set is_call_return.
10667 (add_line_counts): Adjust. In block mode, blocks attach to last line.
10668 (accumulate_line_counts): Find graph cycles, not spanning tree.
10669 (output_branch_count): Adjust.
10670 (output_lines): Adjust.
10671 * doc/gcov.texi: Update.
10673 2003-04-06 Kazu Hirata <kazu@cs.umass.edu>
10675 * config/h8300/h8300.md (*zero_extendqisi2_h8300hs): Change
10676 the second alternative to "#".
10678 2003-04-05 Kazu Hirata <kazu@cs.umass.edu>
10680 * config/h8300/h8300.c (single_one_operand): Use GET_MODE_MASK.
10681 (single_zero_operand): Likewise.
10683 2003-04-05 Daniel Berlin <dberlin@dberlin.org>
10685 * Makefile.in (df.o): Depend on alloc-pool.h, not obstack.h.
10686 * df.c: Include alloc-pool.h, not obstack.h.
10687 (df_ref_obstack): Remove.
10688 (df_ref_pool, df_link_pool): Add pools.
10689 (df_alloc): Init the new pools.
10690 (df_free): And free them.
10691 (df_link_create): Use the pools.
10692 (df_ref_create): Ditto.
10694 2003-04-05 Kazu Hirata <kazu@cs.umass.edu>
10696 * simplify-rtx.c: Fix formatting.
10698 2003-04-05 Andrew Pinski <apinski@apple.com>
10700 * config/rs6000/rs6000.c (addrs_ok_for_quad_peep): Allow addr2
10701 reg with reg1 == reg2 and offset1 = -8.
10703 2003-04-05 David Edelsohn <edelsohn@gnu.org>
10705 * config/rs6000/rs6000.c (rs6000_rtx_costs): Halve Power4
10706 multiply costs. Correct Power4 divide costs.
10707 * config/rs6000/power4.md: Restore multiply and FP latency.
10709 2003-04-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10711 * alias.c (find_base_term): Export.
10712 * rtl.h (find_base_term): Declare.
10713 * gcse.c (find_moveable_store): Test for flag_non_call_exceptions
10714 instead of flag_exceptions. Move test for parameter passing ...
10715 (store_killed_in_insn): ... here.
10717 2003-04-05 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10720 * doc/install.texi (*-*-solaris2): /bin/ksh is not just recommended
10723 2003-04-04 Geoffrey Keating <geoffk@apple.com>
10725 * dbxout.c (scope_labelno): Add GTY.
10726 (have_used_extensions): Add GTY.
10727 (source_label_number): Add GTY.
10728 (lastfile): Add GTY.
10729 (lastfile_is_base): New.
10730 (base_input_file): New.
10731 (dbxout_handle_pch): New.
10732 (dbx_debug_hooks): Add handle_pch.
10733 (xcoff_debug_hooks): Likewise.
10734 (dbxout_function_end): Remove scope_labelno.
10735 (dbxout_init): Set base_input_file.
10736 (dbxout_handle_pch): New.
10737 (dbxout_source_file): Honour lastfile_is_base.
10738 * dwarfout.c (dwarf_debug_hooks): Add dummy handle_pch.
10739 * sdbout.c (sdb_debug_hooks): Add dummy handle_pch.
10740 * vmsdbgout.c (vmsdbg_debug_hooks): Add dummy handle_pch.
10741 * dwarf2out.c (dwarf2_debug_hooks): Add dummy handle_pch.
10742 * debug.c (do_nothing_debug_hooks): Add dummy handle_pch.
10743 * debug.h (struct gcc_debug_hooks): Add handle_pch.
10744 * c-pch.c (pch_init): Don't call start_source_file, but do call
10746 (c_common_write_pch): Call handle_pch.
10747 (c_common_read_pch): Don't call start_source_file,
10748 or end_source_file.
10750 Fri Apr 4 17:43:52 2003 Olivier Hainque <hainque@act-europe.fr>
10752 * emit-rtl.c (get_mem_attrs): Adjust alignment tests determining
10753 use of default attributes to agree MEM_ALIGN macro.
10755 Fri Apr 4 17:33:24 2003 Joel Brobecker <brobecker@gnat.com>
10757 * dbxout.c (dbxout_type): When printing type index of range type
10758 whose bounds are printed in octal format, print type of parent type if
10759 it exists so enumerated type descriptions are not transformed
10760 into unsigned types.
10762 2003-04-04 Kazu Hirata <kazu@cs.umass.edu>
10764 * config/h8300/h8300-protos.h: Add a prototype for
10765 compute_a_shift_cc.
10766 * config/h8300/h8300.c (shift_one): Update the CC status.
10767 (shift_two): Likewise.
10768 (output_a_shift_cc): Set cc_inline and cc_special.
10769 (compute_a_shift_cc): New.
10770 * config/h8300/h8300.md (shift insns): Use compute_a_shift_cc.
10772 2003-04-04 Richard Henderson <rth@redhat.com>
10774 * cse.c (fold_rtx): Fix 03-30 change; do check insn non-null.
10776 2003-04-04 Loren James Rittle <ljrittle@acm.org>
10778 * fixinc/inclhack.def (bsd_stdio_attrs_conflict): New.
10779 * fixinc/fixincl.x: Rebuilt.
10780 * fixinc/tests/base/stdio.h: Regenerated.
10782 2003-04-04 Nathan Sidwell <nathan@codesourcery.com>
10784 * gcov.c (accumulate_line_counts): Fix span tree merge bug.
10786 Fri Apr 4 15:58:52 2003 J"orn Rennecke <joern.rennecke@superh.com>
10788 * sh.h (ACTUAL_NORMAL_MODE): New macro, broken out of
10790 * sh.c (fpscr_set_from_mem): Use ACTUAL_NORMAL_MODE.
10792 2003-04-04 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10794 * doc/contrib.texi (Contributors): Add entries for Wolfgang
10795 Bangerth, DJ Delorie, Christian Ehrhardt, Christopher Faylor,
10796 Nathanael Nerode, Diego Novillo, Hartmut Penner, Volker Reichelt,
10797 Danny Smith, and Ulrich Weigand.
10798 Update Kriang Lerdsuwanakij and fix a typo in Janis Johnson's
10801 2003-04-04 Nick Clifton <nickc@redhat.com>
10803 * config/sparc/sol2-bi.h: Revert previous delta.
10804 * config/sparc/sol2-gas-bi.h (AS_SPARC64_FLAG): Prepend -TSO
10806 2003-04-04 Nick Clifton <nickc@redhat.com>
10808 * config/v850/v850.c (expand_prologue): Only use register save
10809 helper functions if long calls are not being used.
10810 Add a clobber of r11 id using long calls.
10811 (pattern_is_ok_for_prologue): Account for the extra clobber.
10812 (construct_save_jarl): Likewise.
10813 * config/v850/v850.md (prolog pattern): Do not use this pattern
10816 2003-04-04 Andreas Schwab <schwab@suse.de>
10818 * stor-layout.c (layout_decl): Avoid syntax error in last change
10819 when PCC_BITFIELD_TYPE_MATTERS is defined but not
10820 EMPTY_FIELD_BOUNDARY.
10822 2003-04-03 Jason Merrill <jason@redhat.com>
10825 * jump.c (never_reached_warning): Revert patch of 2002-11-02.
10826 Look backwards for a line note.
10828 2003-04-03 Neil Booth <neil@daikokuya.co.uk>
10830 * fix-header.c (read_scan_file): Defer switch processing.
10832 2003-04-03 Matt Austern <austern@apple.com>
10834 * cpppch.c (reset_ht): Remove.
10835 (cpp_read_state): Remove loop to reset hashtable identifiers.
10836 * ggc-common.c (gt_pch_save): Add call to gt_pch_fixup_stringpool
10837 after pch file is written.
10838 * ggc.h (gt_pch_fixup_stringpool): Declare.
10839 * stringpool.c (ht_copy_and_clear): Define. Callback. Copy
10840 hashnode's value to another hashtable, then clear the original.
10841 (saved_ident_hash): Define.
10842 (gt_pch_save_stringpool): Create saved_ident_hash, use it to
10843 store definitions in ident_hash, and clear ident_hash.
10844 (gt_pch_fixup_stringpool): Define. Restore definitions from
10845 saved_ident_hash to ident_hash, then destroy saved_ident_hash.
10847 Thu Apr 3 22:27:40 CEST 2003 Jan Hubicka <jh@suse.cz>
10849 * cfgrtl.c (update_bb_for_insn): Do not set block for barriers.
10851 2003-04-03 Eric Botcazou <ebotcazou@libertysurf.fr>
10853 PR optimization/10157
10854 * gcse.c (can_copy_p): Rename it to can_copy.
10855 (can_copy_init_p): Remove.
10856 (compute_can_copy): Use can_copy instead of can_copy_p.
10857 (can_copy_p): New exported function. Call compute_can_copy.
10858 (hash_scan_set): Use it.
10859 (gcse_main): Don't call compute_can_copy.
10860 (bypass_jumps): Don't call compute_can_copy.
10861 * rtl.h (can_copy_p): Declare.
10862 * loop.c (scan_loop): Don't move the source and add a reg-to-reg
10863 copy if the mode doesn't support copy operations.
10865 2003-04-03 Jason Merrill <jason@redhat.com>
10867 * Makefile.in (unstrap): Also remove stage_last.
10869 * dwarf2out.c (lookup_filename): Don't check for "<internal>".
10870 (dwarf2out_source_line): Don't do anything if line==0.
10872 * stor-layout.c (do_type_align): New fn, split out from...
10873 (layout_decl): ...here. Do all alignment calculations for
10875 (update_alignment_for_field): Not here.
10876 (start_record_layout, debug_rli): Remove unpadded_align.
10877 * tree.h (struct record_layout_info_s): Remove unpadded_align.
10878 * c-decl.c (finish_enum): Don't set DECL_SIZE, DECL_ALIGN
10879 or DECL_MODE on the CONST_DECLs.
10880 (finish_struct): Don't mess with DECL_ALIGN.
10882 Thu Apr 3 18:57:19 CEST 2003 Jan Hubicka <jh@suse.cz>
10884 * i386.c (print_operand): Do not bypass output_addr_const at flag_pic.
10886 Thu Apr 3 17:08:09 2003 J"orn Rennecke <joern.rennecke@superh.com>
10888 * sh.c (sh_function_ok_for_sibcall): Return 0 if the current
10889 function is an interrupt handler.
10891 * sh.c (sh_expand_epilogue): Avoid clash of temp register for
10892 restoring target registers with EH_RETURN_STACKADJ_RTX; use
10893 multiple registers in round-robin fashion.
10895 2003-04-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10897 * gengtype-lex.l (IWORD): Add CHAR_BITFIELD.
10898 * system.h (CHAR_BITFIELD): New.
10900 2003-04-03 Kazu Hirata <kazu@cs.umass.edu>
10902 * config/h8300/h8300.md (a peephole2): Generalize to accept GT
10904 (another peephole2): Likewise.
10906 2003-04-03 Nick Clifton <nickc@redhat.com>
10908 * config/sparc/sol2-bi.h (ASM_CPU64_DEFAULT_SPEC): Add -TSO.
10909 (DEF_ARCH64_SPEC): Likewise.
10911 Thu Apr 3 09:53:40 CEST 2003 Jan Hubicka <jh@suse.cz>
10913 * i386.c (constant_address_p): Use legitimate_constant_p.
10914 (legitimate_address_p): Do not use CONSTANT_ADDRESS_P.
10916 2003-04-02 Kazu Hirata <kazu@cs.umass.edu>
10918 * config/h8300/h8300-protos.h: Add a prototype for
10920 * config/h8300/h8300.c (gtle_operator): New.
10921 * config/h8300/h8300.h (PREDICATE_CODES): Add an entry for
10923 * config/h8300/h8300.md (a peephole2): Generalize to accept GT
10926 2003-04-02 Richard Henderson <rth@redhat.com>
10928 * libgcc-std.ver (_Unwind_GetCFA): New.
10929 * unwind-dw2.c (_Unwind_GetCFA): New.
10930 * unwind-libunwind.c (_Unwind_GetCFA): New.
10931 * unwind-sjlj.c (_Unwind_GetCFA): New.
10932 * unwind.h: Declare it.
10934 Thu Apr 3 00:31:21 CEST 2003 Jan Hubicka <jh@suse.cz>
10937 * i386.c (ix86_hard_regno_mode_ok): Return 0 for MMX/SSE registers
10938 when MMX/SSE is not available.
10940 2003-04-02 Mike Stump <mrs@apple.com>
10942 * doc/install.texi (Specific): Update pointers to apple.com.
10944 Thu Apr 3 00:18:49 CEST 2003 Jan Hubicka <jh@suse.cz>
10946 * i386.c (override_options): Disable red zone by default on i386.
10947 (compute_frame_layout, ix86_force_to_memory, ix86_free_from_memory):
10948 Do not test TARGET_64BIT together with TARGET_RED_ZONE
10950 2003-04-02 Kazu Hirata <kazu@cs.umass.edu>
10952 * config/h8300/h8300.md (a peephole2): Tighten the condition.
10954 2003-04-02 Richard Henderson <rth@redhat.com>
10956 * longlong.h (umul_ppmm) [alpha]: Use __builtin_alpha_umulh.
10958 2003-04-02 Kazu Hirata <kazu@cs.umass.edu>
10960 * config/h8300/h8300.md (a peephole2): New.
10962 2003-04-02 Richard Henderson <rth@redhat.com>
10964 * except.c (sjlj_find_directly_reachable_regions): Recognize when
10965 must-not-throw region has been deleted.
10967 2003-04-02 Richard Henderson <rth@redhat.com>
10969 * dwarf2out.c (output_call_frame_info): Ignore fde->nothrow as an
10970 optimization when flag_exceptions not enabled.
10972 2003-04-02 Vladimir Makarov <vmakarov@redhat.com>
10974 * config/rs6000/rs6000.c
10975 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Redefine the
10977 (rs6000_issue_rate): Add case for 8540.
10978 (rs6000_use_sched_lookahead): New function.
10980 * config/rs6000/8540.md: Rename SIU units into SU ones and MIU
10981 units into MU ones.
10982 (ppc8540_branch, ppc8540_cr_logical): Add one cycle in the
10983 reservation before retirement.
10984 (ppc8540_multiply, ppc8540_load, ppc8540_store,
10985 ppc8540_simple_float, ppc8540_vector_load, ppc8540_vector_store):
10986 Remove additional cycle in the reservation before retirement.
10987 (ppc8540_mfcr, ppc8540_mtcrf, ppc8540_mtjmpr): Add missed
10988 reservation of ppc8540_issue.
10990 2003-04-02 Andreas Schwab <schwab@suse.de>
10992 * real.c (decode_ieee_single): Fix decoding of SNaN bit.
10994 2003-04-01 Richard Henderson <rth@redhat.com>
10996 * except.c (convert_from_eh_region_ranges_1): Smash REG_EH_REGION
10997 notes for nothrow calls if flag_forced_unwind_exceptions.
10998 (build_post_landing_pads): Mind flag_forced_unwind_exceptions.
10999 (sjlj_find_directly_reachable_regions): Likewise.
11000 (reachable_handlers): Likewise.
11001 (can_throw_external): Likewise.
11002 (collect_one_action_chain): Record cleanups after catch-all and
11003 must-not-throw if flag_forced_unwind_exceptions.
11004 * flags.h (flag_forced_unwind_exceptions): Declare.
11005 * toplev.c (flag_forced_unwind_exceptions): New.
11006 (lang_independent_options): Add it.
11007 * doc/invoke.text: Add it.
11009 2003-04-01 David Mosberger <davidm@hpl.hp.com>
11011 * config/ia64/crti.asm: Clean up trailing whitespace.
11012 Remove trailing hashes (#) from identifiers.
11014 * config/ia64/crtn.asm: Ditto.
11016 * config/ia64/crtend.asm: Remove trailing hashes (#) from
11018 (__do_global_ctors_aux): Align to 32-byte boundary. Add unwind
11019 directives. Drop explicit bundling---it just makes the code
11020 harder to read. Don't save/restore gp needlessly.
11022 * config/ia64/crtbegin.asm: Remove trailing hashes (#) from
11023 identifiers (they're only needed if the identifier would clash
11024 with a register name otherwise).
11025 (__do_global_dtors_aux): Align to 32-byte boundary. Add unwind
11026 directives. Drop explicit bundling---it just makes the code
11028 (__do_jv_register_classes): Ditto.
11029 (.fini_array): Remove "progbits" (newer
11030 assemblers don't like wrong section-types).
11031 (.init_array): Ditto.
11033 2003-04-01 Roger Sayle <roger@eyesopen.com>
11036 * gcse.c (reg_killed_on_edge): New function to test whether the
11037 given reg is overwritten by any instruction queued on an edge.
11038 (bypass_block): Ignore substitutions killed on incoming edges.
11039 Don't bypass outgoing edges that have queued instructions.
11041 2003-04-01 Alexandre Oliva <aoliva@redhat.com>
11043 * real.h (EXP_BITS): Make room for...
11044 (struct real_value): ... added canonical bit.
11045 (struct real_format): Added pnan.
11046 (mips_single_format, mips_double_format, mips_extended_format,
11047 mips_quad_format): New.
11048 * real.c: Copy p to pnan in all formats.
11049 (get_canonical_qnan, get_canonical_snan): Set canonical bit.
11050 (real_nan): Use pnan to compute significand's shift.
11051 (real_identical): Disregard significand in canonical
11053 (real_hash): Likewise. Take signalling into account.
11054 (encode_ieee_single, encode_ieee_double, encode_ieee_quad):
11055 Disregard significand bits in canonical NaNs. Set all bits of
11056 canonical NaN if !qnan_msb_set.
11057 (encode_ibm_extended, decode_ibm_extended): Likewise. Use
11058 qnan_msb_set to tell the base double format.
11059 (ibm_extended_format): Use 53 as pnan.
11060 (mips_single_format, mips_double_format, mips_extended_format,
11061 mips_quad_format): Copied from the corresponding ieee/ibm
11062 formats, with qnan_msb_set false.
11063 * config/mips/iris6.h (MIPS_TFMODE_FORMAT): Use mips_extended_format.
11064 * config/mips/linux64.h (MIPS_TFMODE_FORMAT): Use mips_quad_format.
11065 * config/mips/mips.c (override_options): Use mips_single_format
11066 and mips_double_format. Default TFmode to mips_quad_format.
11067 * config/mips/t-linux64 (tp-bit.c): Define QUIET_NAN_NEGATED.
11068 * config/mips/t-irix6: Likewise.
11069 * config/mips/t-mips (fp-bit.c, dp-bit.c): Likewise.
11070 * config/fp-bit.c (pack_d, unpack_d): Obey it.
11072 2003-04-01 Geoffrey Keating <geoffk@apple.com>
11074 * unwind-dw2-fde-darwin.c (DESTRUCTOR_MAY_BE_CALLED_LIVE): New.
11075 (live_image_destructor): Reset image to initial state.
11076 (examine_objects): Set DESTRUCTOR_MAY_BE_CALLED_LIVE.
11078 2003-04-01 Eric Botcazou <ebotcazou@libertysurf.fr>
11080 * config/sparc/sparc.c (input_operand): Accept bare
11081 CONSTANT_P_RTX operands.
11083 2003-04-01 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11085 * gcse.c (struct ls_expr): Added pattern_regs field.
11086 (ldst_entry): Initialize it.
11087 (extract_mentioned_regs, extract_mentioned_regs_helper): New.
11088 (store_ops_ok): Use regs precomputed by them.
11089 (find_loads, store_killed_in_insn, load_kills_store): Change return
11091 (store_killed_before, store_killed_after): Take position of register
11093 (reg_set_info): Store position of the setter.
11094 (gcse_main): Enable store motion.
11095 (mems_conflict_for_gcse_p): Enable load motion of non-symbol mems.
11096 (pre_insert_copy_insn, update_ld_motion_stores, insert_store): Prevent rtl
11098 (simple_mem): Enable store motion of non-symbol mems.
11099 (regvec): Type changed.
11100 (LAST_AVAIL_CHECK_FAILURE): New.
11101 (compute_store_table_current_insn): New.
11102 (build_store_vectors): Computation of availability and anticipatability
11104 (compute_store_table, find_moveable_store): ... here.
11105 (delete_store): Remove senseless comment.
11106 (store_motion): Reorganize.
11108 2003-04-01 Kevin Buettner <kevinb@redhat.com>
11110 * config/mips/mips.c (override_options): Provide mappings for
11111 HI_REGNUM and LO_REGNUM.
11112 * config/mips/mips.h (MD_DBX_FIRST): Define.
11114 2003-04-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11116 * combine.c (merge_outer_ops): Fix typo.
11118 * varasm.c (make_decl_one_only): Revert 2003-03-09 patch.
11120 2003-04-01 David Edelsohn <edelsohn@gnu.org>
11122 * config/rs6000/{40x.md,603.md,6xx.md,7450.md,7xx.md,mpc.md,
11123 power4.md,rios1.md,rios2.md,rs64.md}: Change mult_compare to
11124 imul_compare. Add lmul_compare.
11125 * config/rs6000/power4.md: Bump some latencies. Model extra cycle
11126 in second pair of dispatch slots. Model stores more accurately.
11127 Tweak multiply model. Add bypasses for CR instructions dependent
11128 on complicated compares.
11129 * config/rs6000/rs6000.md (mulsi3): Name imul_compare patterns.
11130 (muldi3): Add lmul_compare patterns.
11131 * config/rs6000/rs6000.c (rs6000_variable_issue): Move FPLOAD_UX
11132 and FPSTORE_UX to split instructions and add COMPARE,
11133 DELAYED_COMPARE, IMUL_COMPARE, LMUL_COMPARE, IDIV, LDIV.
11134 (rs6000_adjust_cost): Add IMUL_COMPARE and LMUL_COMPARE.
11135 (rs6000_rtx_costs): Separate POWER4 multiply case.
11137 2003-04-01 Ulrich Weigand <uweigand@de.ibm.com>
11139 * config/s390/s390.c (s390_fixup_clobbered_return_reg):
11140 Do nothing if __builtin_return_address was not used.
11142 Tue Apr 1 18:18:23 CEST 2003 Jan Hubicka <jh@suse.cz>
11144 * i386.md (test patterns): Allow memory operand in operand1.
11146 2003-02-31 Aldy Hernandez <aldyh@redhat.com>
11148 * testsuite/gcc.c-torture/execute/simd-3.c: New.
11150 * expr.c (expand_expr): Handle VECTOR_CST.
11151 (const_vector_from_tree): New.
11153 * varasm.c (output_constant): Handle VECTOR_CST.
11155 * c-typeck.c (digest_init): Build a vector constant from a
11158 * config/rs6000/rs6000.c: Remove prototype for
11159 easy_vector_constant.
11160 (easy_vector_constant): Add mode parameter. Rewrite to handle
11161 more easy constants.
11162 (rs6000_emit_move): Pass mode to easy_vector_constant.
11163 Call emit_easy_vector_insn for SPE V2SI vector constant moves.
11164 (emit_easy_vector_insn): New.
11165 (easy_vector_same): New.
11166 (EASY_VECTOR_15): New macro.
11167 (EASY_VECTOR_15_ADD_SELF): New macro.
11168 (bdesc_2arg): Rename to xorv2si3.
11169 (easy_vector_constant_add_self): New.
11170 (input_operand): Allow vector constants.
11172 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
11173 easy_vector_constant, easy_vector_constant_add_self.
11174 (EXTRA_CONSTRAINT): Add 'W'.
11176 * config/rs6000/rs6000-protos.h: Add prototype for
11177 easy_vector_constant, emit_easy_vector_insn.
11179 * config/rs6000/altivec.md (xorv8hi3): New.
11181 Remove all _const0 patterns.
11182 (movv4si_internal): Rewrite to use code. Add vector constant to
11183 vector alternative. Add splitter.
11184 (movv8hi_internal): Same.
11185 (movv16qi_internal): Same.
11186 (movv4sf_internal): Same.
11187 Change the unspecs for vspltis* to use constants.
11189 * config/rs6000/spe.md ("xorv4hi3"): New.
11190 ("spe_evxor"): Rename to xorv2si3.
11192 Remove all _const0 patterns.
11193 (movv2si_internal): Rewrite to use code. Add vector constant to
11194 alternatives. Add splitter.
11195 (movv4hi_internal): Add vector constant to alternatives.
11196 (movv1di_internal): Same.
11197 (movv2sf_internal): Same.
11199 2003-03-31 Mark Mitchell <mark@codesourcery.com>
11202 * c-decl.c (grokdeclarator): Clear SAVE_EXPR_CONTEXT for
11203 variably-sized arrays in parameters.
11204 (set_save_expr_context): New function.
11205 (c_expand_body): Use it, via walk_tree.
11207 2003-03-31 Eric Christopher <echristo@redhat.com>
11209 * combine.c (can_combine_p): Allow ZERO_EXTRACT and STRICT_LOW_PART.
11210 (combinable_i3pat): Remove call to expand_field_assignment and
11213 2003-03-31 Mark Mitchell <mark@codesourcery.com>
11216 * c-common.c (finish_label_address_expr): Handle the
11219 2003-03-31 Richard Henderson <rth@redhat.com>
11221 * real.c (real_identical): Reorg so as to not compare
11222 signalling for normals.
11224 2003-03-31 Stephane Carrez <stcarrez@nerim.fr>
11226 * config/m68hc11/m68hc11.c (hard_reg_operand): Check the mode.
11228 2003-03-31 Stephane Carrez <stcarrez@nerim.fr>
11230 * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Don't rely on REG_WAS_0
11231 notes as they are boggus.
11232 (m68hc11_gen_movqi): Likewise.
11234 2003-03-31 Stephane Carrez <stcarrez@nerim.fr>
11236 * config/m68hc11/m68hc11.c (expand_prologue): For an interrupt handler
11237 save the soft registers after the frame pointer so that gdb can unwind
11238 the frame more easily.
11239 (expand_epilogue): Likewise in opposite order; allow to use X register
11240 as scratch if the return value is by reference.
11242 2003-03-31 Jason Merrill <jason@redhat.com>
11245 * stor-layout.c (update_alignment_for_field): Respect
11246 DECL_USER_ALIGN for zero-length bitfields, too.
11247 * c-decl.c (finish_struct): Don't set DECL_ALIGN for normal
11250 2003-03-31 Matt Austern <austern@apple.com>
11252 * cpppch.c (struct cpp_savedstate): Add defs and n_defs members.
11253 (count_defs): Keep track of number of defs as well as total size.
11254 (write_defs): Put every definition in cpp_savedstate's defs array.
11255 (comp_hashnode): Define. Comparison function for qsort.
11256 (cpp_write_pch_deps): Sort definitions before writing them.
11257 (struct ht_node_list): Define. Like cpp_savedstate but simpler.
11258 (collect_ht_nodes): Define.
11259 (cpp_valid_state): When verifying that undefined identifiers in
11260 the pch file are still undefined, read a sorted list of undefined
11261 identifiers, collect all defined identifiers into a sorted list,
11262 and walk through both lists to make sure there's no match.
11264 2003-03-31 Kazu Hirata <kazu@cs.umass.edu>
11266 * config/h8300/h8300.md (a peephole2): New.
11268 2003-03-31 Michael Matz <matz@suse.de>
11270 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Change 1 into 0.
11272 2003-03-31 Segher Boessenkool <segher@koffie.nl>
11275 * config/rs6000/rs6000.h (HARD_REGNO_RENAME_OK): New.
11276 * config/rs6000/rs6000.c (compute_vrsave_mask): Don't mark
11277 all call-clobbered registers as used.
11279 2003-03-31 Michael Matz <matz@suse.de>
11281 * cppexp.c (cpp_classify_number): Accept '.' after "0x".
11282 * testsuite/gcc.dg/cpp/c99-hexfloat-3.c: New file.
11284 2003-03-31 Nathan Sidwell <nathan@codesourcery.com>
11286 * gcov.c: Add -a & -u options.
11287 (struct arc_info): Add local_span, is_call_non_return,
11288 is_nonlocal_return, is_unconditional flags, remove is_call flag.
11289 (struct block_info): Add flags, is_call_site, is_nonlocal_return
11290 members. Make encodings a union with span member.
11291 (struct function_info): Add blocks_executed, line, src, line_next
11293 (struct coverage_info): Make branches a union with blocks member.
11294 (struct source_info): Add functions member.
11295 (object_summary, program_count): New global variables.
11296 (flag_all_blocks, flag_unconditional): New flags.
11297 (find_source, output_branch_count): New functions.
11298 (print_usage): Adjust.
11300 (process_args): Adjust.
11301 (read_graph_file) <GCOV_TAG_FUNCTION>: Adjust.
11302 <GCOV_TAG_BLOCKS>: Read flags.
11303 <GCOV_TAG_LINES>: Adjust.
11304 (read_count_file): Process SUMMARY tags.
11305 (solve_flow_graph): Set is_unconditional and clear is_call_site
11307 (add_branch_counts): Adjust. Don't count unconditional branches.
11308 (add_line_counts): Deal with all-blocks mode, accumulate block
11310 (accumulate_line_counts): Adjust, generate local spanning tree for
11312 (output_lines): Adjust.
11313 * profile.c (branch_prob): Alter GCOV_FUNCTION_TAG record.
11314 * doc/gcov.texi: Document.
11316 2003-03-31 Kazu Hirata <kazu@cs.umass.edu>
11318 * config/h8300/h8300.md: Organize peephole2's that transform
11319 (compare (reg:HI) (const_int)).
11321 2003-03-31 Roger Sayle <roger@eyesopen.com>
11323 * emit-rtl.c (dconstm2, dconsthalf): New real constants.
11324 (init_emit_once): Initialize dconstm2 and dconsthalf here.
11325 * real.h (dconstm2, dconsthalf): Add prototypes here.
11326 * real.c (real_sqrt): Use dconsthalf rather than local copy.
11327 * builtins.c (fold_builtin): When optimizing sqrt(exp(x)) as
11328 exp(x/2.0) remember to fold the division if possible.
11329 Fold sin(0.0) as 0.0, cos(0.0) as 1.0, pow(x,1.0) as x,
11330 pow(x,-1.0) as 1.0/x, pow(x,2.0) as x*x, pow(x,-2.0) as
11331 1.0/(x*x) and pow(x,0.5) as sqrt(x).
11333 2003-03-31 Kazu Hirata <kazu@cs.umass.edu>
11335 * config/h8300/h8300.md (a new peephole2): New.
11337 2003-03-31 Richard Sandiford <rsandifo@redhat.com>
11339 * gcse.c (simple_mem): Return false for floating-point accesses
11340 if flag_float_store is true.
11342 2003-03-30 Roger Sayle <roger@eyesopen.com>
11344 * gcse.c (gcse_constant_p): New function to identify constants
11345 suitable for constant propagation, including COMPARE with two
11346 integer constant arguments.
11347 (hash_scan_set): Use gcse_constant_p.
11348 (find_avail_set): Likewise.
11349 (cprop_insn): Likewise.
11350 (do_local_cprop): Likewise.
11351 (find_implicit_sets): Likewise.
11352 (find_bypass_set): Likewise.
11354 2003-03-30 Matt Kraai <kraai@alumni.cmu.edu>
11356 * except.h: Remove definition of varray_type.
11358 2003-03-30 Richard Henderson <rth@redhat.com>
11360 PR opt/10011, opt/10252:
11361 * toplev.c (rest_of_compilation): Run purge_builtin_constant_p
11362 before post-gcse cse pass.
11364 2003-03-30 Roger Sayle <roger@eyesopen.com>
11366 * dojump.c (do_jump): Copy SUBREGs into a pseudo for comparison.
11368 2003-03-30 DJ Delorie <dj@redhat.com>
11370 * profile.c (instrument_edges): Make sure any newly created
11371 jump insns have correct jump label info.
11373 2003-03-30 Richard Henderson <rth@redhat.com>
11375 * cfgbuild.c (make_edges): Use tablejump_p.
11376 * cfgcleanup.c (label_is_jump_target_p): Likewise.
11377 * cfglayout.c (cfg_layout_can_duplicate_bb_p): Likewise.
11378 * cfgrtl.c (flow_delete_block_noexpunge): Likewise.
11379 (try_redirect_by_replacing_jump): Likewise.
11380 (redirect_edge_and_branch): Likewise.
11381 * cse.c (fold_rtx): Likewise.
11382 * jump.c (delete_related_insns): Likewise.
11383 * rtlanal.c (get_jump_table_offset): Likewise.
11384 * ssa-ccp.c (ssa_ccp_df_delete_unreachable_insns): Likewise.
11386 2003-03-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
11388 * Makefile.in (STRICT_WARN): Don't warn for ISO C constructs.
11389 (STRICT2_WARN): Likewise.
11391 2003-03-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11394 * collect2.c (collect_wait): Use WCOREDUMP and fix output message.
11395 * system.h (WCOREDUMP, WCOREFLG): Define if necessary.
11397 2003-03-30 Richard Henderson <rth@redhat.com>
11400 * config/alpha/alpha.md (umuldi3_highpart): Change to expander;
11401 don't zero_extend const inputs.
11403 2003-03-30 Kazu Hirata <kazu@cs.umass.edu>
11405 * reload1.c (reload_cse_move2add): Fix a comment typo.
11407 2003-03-30 Kazu Hirata <kazu@cs.umass.edu>
11409 * config/h8300/h8300.md (a peephole2): Remove useless code.
11411 2003-03-29 Kazu Hirata <kazu@cs.umass.edu>
11413 * config/h8300/h8300.md (*iorsi3_and_ashift): New.
11414 (*iorsi3_and_lshiftrt): Likewise.
11415 (*iorsi3_zero_extract): Likewise.
11417 2003-03-29 Kazu Hirata <kazu@cs.umass.edu>
11419 * config/h8300/h8300.md (*insv_si_8_8): New.
11420 (*insv_si_8_8_lshiftrt_8): Likewise.
11421 (a peephole2): Likewise.
11423 2003-03-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11425 * doc/contrib.texi: Add Eric Botcazou and Roger Sayle.
11426 Uniformly use bugfix instead of bug fix.
11428 2003-03-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11431 * ONEWS: Remove those items that already appear in the EGCS
11432 release notes on our web pages.
11434 2003-03-29 Alan Modra <amodra@bigpond.net.au>
11436 * config/rs6000/rs6000.h (FUNCTION_VALUE_REGNO_P): Respect
11437 TARGET_HARD_FLOAT. Reformat.
11438 (FUNCTION_ARG_REGNO_P): Likewise, and remove unneeded casts.
11440 2003-03-28 Albert Chin-A-Young <china@thewrittenword.com>
11442 * gcc/fixinc/inclhack.def: Update solaris_mutex_init_1 to
11443 work on Solaris 2.5.1.
11445 2003-03-28 Kazu Hirata <kazu@cs.umass.edu>
11447 * config/h8300/h8300.md (*addsi3_and_r_1): Put under plus:SI
11448 section of h8300.md
11449 (*addsi3_and_nor_r_1): Likewise.
11451 2003-03-29 Ulrich Weigand <uweigand@de.ibm.com>
11453 * config/s390/s390.c (s390_emit_prologoue): Make sure backchain is
11454 set up before any trapping memory access if flag_non_call_exceptions.
11456 2003-03-29 Alan Modra <amodra@bigpond.net.au>
11458 * reload1.c (reload_as_needed): Allow a USE in asm reloads.
11460 * loop.c: (find_mem_in_note_1, find_mem_in_note): Comment.
11462 2003-03-28 Nathanael Nerode <neroden@gcc.gnu.org>
11464 * configure.in: Clarify comments.
11465 * configure: Regenerate.
11467 2003-03-28 Ulrich Weigand <uweigand@de.ibm.com>
11469 * config/s390/s390.md ("literal_pool_31"): Output pool anchor
11470 label even if pool empty when generating PIC.
11471 ("literal_pool_31", "literal_pool_64"): Coding style cleanup.
11473 2003-03-28 Kazu Hirata <kazu@cs.umass.edu>,
11474 Dhananjay Deshpande <dhananjayd@kpit.com>
11477 * config/h8300/h8300.c (h8300_initial_elimination_offset):
11478 Correct the offset computation when TARGET_NORMAL.
11480 2003-03-28 Eric Botcazou <ebotcazou@libertysurf.fr>
11483 * config/sparc/sparc.md (jump pattern): Correct order
11484 when issuing the annuling marker.
11486 2003-03-28 Eric Botcazou <ebotcazou@libertysurf.fr>
11489 * config/sparc/sparc.md (movdi_insn_sp32_v9): Remove 'f-f' alternative.
11490 (movdi reg/reg split): Match only on sparc32, and v9 when int regs.
11492 2003-03-28 Alan Modra <amodra@bigpond.net.au>
11494 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): Remove unnecessary
11496 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
11497 * config/i960/i960.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
11498 * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
11499 * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
11500 * config/mips/linux.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
11501 * config/sparc/sparc.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
11502 * config/v850/v850.c (v850_output_aligned_bss): Likewise.
11504 2003-03-28 Alan Modra <amodra@bigpond.net.au>
11506 * loop.c: (find_mem_in_note_1, find_mem_in_note): New functions.
11507 (replace_loop_mems): Add "written" param. Remove invalid REG_EQUAL
11508 notes after hoisting.
11509 (load_mems): Adjust replace_loop_mems call.
11511 2003-03-28 Eric Botcazou <ebotcazou@libertysurf.fr>
11512 Richard Henderson <rth@redhat.com>
11514 PR target/10114 and PR target/10084
11515 * dwarf2out.c (mem_loc_descriptor): Handle LO_SUM.
11517 2003-03-27 Richard Henderson <rth@redhat.com>
11519 * config/alpha/alpha.md (adddi_er_high_l): Valid only after reload.
11521 2003-03-27 Roger Sayle <roger@eyesopen.com>
11523 * fold-const.c (fold_inf_compare): New function to simplify FP
11524 comparisons against +Infinity or -Infinity.
11525 (fold): Optimize floating point comparisons against Infs and NaNs.
11527 2003-03-27 Janis Johnson <janis187@us.ibm.com>
11529 * libgcov.c: Provide only dummy functions if libc is not available.
11531 2003-03-27 Richard Henderson <rth@redhat.com>
11533 * real.h (struct real_value): Add signalling.
11534 (EXP_BITS): Decrement.
11535 * real.c (get_canonical_qnan): Don't set MSB-1.
11536 (get_canonical_snan): Likewise. Set signalling.
11537 (real_identical): Compare signalling.
11538 (round_for_format): Remove force-one-bit on code.
11539 (real_nan): Likewise. Set signalling.
11540 (encode_ieee_single): Add force-one-bit code; honor signalling.
11541 (encode_ieee_double, encode_ieee_extended, encode_ieee_quad): Likewise.
11542 (decode_ieee_single): Set signalling.
11543 (decode_ieee_double, decode_ieee_extended, decode_ieee_quad): Likewise.
11545 2003-03-27 Olivier Hainque <hainque@act-europe.fr>
11548 * ada/Makefile.in (gnatlib configuration for HPUX): Split
11549 the general section for HPUX into specific sections for
11550 HPUX 10 and HPUX 11. Fix the setting of TGT_LIB in the HPUX
11553 2003-03-27 Glen Nakamura <glen@imodulo.com>
11556 * loop.c (loop_givs_reduce): Skip bivs with duplicate locations
11557 while incrementing giv.
11558 (record_biv): Check for duplicate biv locations and
11559 set (struct induction *) v->same if found.
11561 2003-03-27 David Mosberger <davidm@hpl.hp.com>
11563 * unwind-libunwind.c (uw_frame_state_for): Adjust for libunwind
11564 v0.9 API change: replace read of UNW_REG_HANDLER with
11565 unw_get_proc_info().
11566 (_Unwind_GetLanguageSpecificData): Replace read of UNW_REG_LSDA
11567 with unw_get_proc_info().
11568 (_Unwind_GetRegionStart): Replace UNW_REG_PROC_START with
11569 unw_get_proc_info().
11571 2003-03-27 Vladimir Makarov <vmakarov@redhat.com>
11573 * config/rs6000/8540.md: Use presence_set instead of absence_set.
11575 2003-03-26 Richard Henderson <rth@redhat.com>
11577 * c-decl.c (finish_function): Always defer if DECL_DECLARED_INLINE_P.
11579 2003-03-26 Roger Sayle <roger@eyesopen.com>
11581 PR bootstrap/10051, PR bootstrap/10169.
11582 * mips-tfile.c (init_file): Don't provide a static initializer.
11583 (initialize_init_file): Initialize the contents of init_file.
11584 (add_file): Call initialize_init_file if not already initialized.
11586 2003-03-26 Ulrich Weigand <uweigand@de.ibm.com>
11588 * config/s390/s390.c (s390_optimize_prolog): Do not save/restore
11589 registers used for global asm variables.
11590 (s390_frame_info, s390_arg_frame_offset): Likewise.
11591 (s390_emit_prologue, s390_emit_epilogue): Likewise.
11593 2003-03-26 Vladimir Makarov <vmakarov@redhat.com>
11595 * config/rs6000/8540.md: New file.
11597 * config/rs6000/{40x.md, 603.md, 6xx.md, 7450.md, 7xx.md, mpc.md,
11598 power4.md, rios1.md, rios2.md, rs64.md}: Add mult_compare to
11599 reservations for imul.
11601 * config/rs6000/rs6000.md: Include 8540.md. Change
11602 delayed_compare onto mult_compare for insns generating
11604 (mult_compare, fpsimple, brinc, vecdiv, veccmpsimple, vecfdiv):
11605 New type attribute values.
11607 * config/rs6000/spe.md (*negsf2_gp, *abssf2_gpr): Use type
11608 fpsimple instead of fp.
11609 (*divsf3_gpr): Use type vecfdiv instead of fp.
11610 (spe_evfsabs, spe_evfsnabs, spe_evfsneg): Use type vecsimple
11611 instead of vecfloat.
11612 (spe_evfsdive): Use type vecfdiv instead of vecfloat.
11613 (spe_brinc): Use type brinc instead of veccomplex.
11614 (spe_evaddw, spe_evaddiw): Use type vecsimple instead of
11616 (spe_evdivws, spe_evdivwu): Use type vecdiv instead of veccomplex.
11617 (*movv2si_internal, *movv1di_internal, *movv4hi_internal,
11618 *movv2sf_internal): Define type attribute values for all
11620 (cmpsfeq_gpr, cmpsfgt_gpr, cmpsflt_gpr): Use type veccmp instead
11622 (tstsfeq_gpr, tstsfgt_gpr, tstsflt_gpr): Use type veccmpsimple
11623 instead of fpcompare.
11625 2003-03-26 David Edelsohn <edelsohn@gnu.org>
11627 * config/rs6000/power4.md: Allow delay between dispatch and
11628 function units for simple instructions. Correct store units.
11629 Allow branch to occupy as many dispatch slots as necessary.
11631 2003-03-26 Jakub Jelinek <jakub@redhat.com>
11633 * config/ia64/ia64.c (ia64_expand_op_and_fetch): Fix comment.
11634 (ia64_expand_compare_and_swap): Use always DImode ar.ccv,
11635 zero extend old to it.
11636 * config/ia64/ia64.md (cmpxchg_acq_si): Remove mode from ccv
11639 2003-03-26 Eric Botcazou <ebotcazou@libertysurf.fr>
11642 * reload.c (find_reloads_address): Handle
11643 (PLUS (PLUS (REG) (REG)) (CONST_INT)) form for
11644 all base registers.
11646 2003-03-25 Marcelo Abreu <mmabreu@inf.ufrgs.br>
11649 * version.c: Reference the GCC web site in the URL.
11651 2003-03-26 Alan Modra <amodra@bigpond.net.au>
11653 * c-incpath.c (add_standard_paths): Add both "translated" and
11654 non-translated header paths.
11656 2003-03-25 Loren James Rittle <ljrittle@acm.org>
11658 * doc/install.texi (*-*-freebsd*): Update with known status.
11660 2003-03-21 Jason Merrill <jason@redhat.com>
11662 PR optimization/10171
11663 * unroll.c (unroll_loop): Don't delete the jump at the end unless
11664 we also delete a jump at the beginning.
11666 2003-03-25 Stephane Carrez <stcarrez@nerim.fr>
11668 * doc/contrib.texi (Contributors): Mention self as 68HC11/68HC12
11671 Tue Mar 25 20:35:51 CET 2003 Jan Hubicka <jh@suse.cz>
11673 * i386.c (ix86_rtx_costs): For -fpic and x86-64 local symbolic
11674 constants are not expensive.
11676 Mon Mar 24 20:03:03 CET 2003 Jan Hubicka <jh@suse.cz>
11679 * cfglayout.c (fixup_reorder_chain): Fix dealing with the conditional
11680 jump jumping to the next instruction.
11681 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
11683 2003-03-25 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11685 * doc/passes.texi (Passes): Properly document that we do not
11686 perform jump2 any longer; remove command-line option -dJ.
11688 2003-03-25 Eric Botcazou <ebotcazou@libertysurf.fr>
11690 PR optimization/8746
11691 * config/i386/i386.md (and promoting splitters): Disable HImode to
11692 SImode promoting when the sign bit matters and is not preserved, or
11693 when TARGET_FAST_PREFIX is true. Disable promoting when optimizing
11696 2003-03-24 Kazu Hirata <kazu@cs.umass.edu>
11698 * config/h8300/h8300.md (a peephole2): Extend to support loads
11699 in QImode and HImode.
11701 2003-03-24 Stephane Carrez <stcarrez@nerim.fr>
11703 * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Add _call_far and
11705 (MULTILIB_OPTIONS): Don't multilib on -mlong-calls.
11706 (MULTILIB_EXCEPTIONS): Likewise.
11707 * config/m68hc11/m68hc11.md ("call"): Support far calls for 68HC11
11708 by calling some board support routine.
11709 ("call_value"): Likewise.
11710 ("*return_void"): Likewise for return.
11711 ("*return_16bit"): Likewise.
11712 ("*return_32bit"): Likewise.
11713 * config/m68hc11/m68hc11.h (ASM_DECLARE_FUNCTION_NAME): Generate .far
11715 (DWARF2_ADDR_SIZE): Use 4 so that addresses can
11716 * config/m68hc11/m68hc11.c (m68hc11_override_options): Accept
11717 -mlong-calls for 68HC11.
11718 * config/m68hc11/larith.asm (declare_near): New macro.
11719 (__premain, ___negsi2, ___one_cmplsi2, ___ashlsi3): Use it.
11720 (___ashrsi3, ___lshrsi3, ___lshrhi3, ___lshlhi3): Likewise.
11721 (___rotrhi3, ___rotlhi3, ___ashrhi3, ___ashrqi3): Likewise.
11722 (___lshlqi3, __divmodhi4, ___mulqi3, ___mulhi3): Likewise.
11723 (__mulhi32): Likewise.
11724 (ret): Update macro for 68HC11.
11725 (__far_trampoline): Implement for 68HC11.
11726 (__call_a16, __call_a32, __return_void, __return_16): New support
11727 routines for 68HC11 memory bank switching calling support.
11728 (__return_32): Likewise.
11730 2003-03-24 Neil Booth <neil@daikokuya.co.uk>
11732 * toplev.c (independent_decode_option): Don't skip a 'Y' prefix.
11734 2003-03-24 Janis Johnson <janis187@us.ibm.com>
11736 * doc/install.texi (Testing): Mention test result links from build
11739 2003-03-24 Mark Mitchell <mark@codesourcery.com>
11741 * function.c (put_var_into_stack): Change bool parameter to int.
11742 (gen_mem_addressof): Likewise.
11743 * rtl.h (gen_mem_addressof): Likewise.
11744 * tree.h (put_var_into_stack): Likewise.
11745 * config/alpha/alpha.c (alpha_gp_save_rtx): Adjust call to
11746 gen_mem_addressof or put_var_into_stack.
11747 * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
11748 * config/ia64/ia64.c (spill_tfmode_operand): Likewise.
11750 2003-03-24 Kazu Hirata <kazu@cs.umass.edu>
11752 * config/h8300/h8300.md (a peephole2): New.
11754 2003-03-24 Jakub Jelinek <jakub@redhat.com>
11756 * dojump.c (do_jump): Handle UNSAVE_EXPR specially.
11758 2003-03-24 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11760 * doc/contrib.texi (Contributors): Update Janis Johnson.
11762 2003-03-23 Eric Botcazou <ebotcazou@libertysurf.fr>
11765 * combine.c (simplify_if_then_else): Check that the mode
11766 has MODE_INT class before applying the (OP Z (mult COND C2))
11769 2003-03-23 Eric Botcazou <ebotcazou@libertysurf.fr>
11771 PR optimization/9414
11772 * config/sparc/sparc.md (widening peepholes): Use
11773 widen_memory_access instead of change_address.
11775 2003-03-23 Mark Mitchell <mark@codesourcery.com>
11778 * c-typeck.c (c_mark_addressable): Adjust calls to
11779 put_var_into_stack.
11780 * expr.c (expand_expr): Likewise.
11781 * function.c (put_var_into_stack): Add rescan parameter. Do not
11782 call fixup_var_refs when rescan is false.
11783 (gen_mem_addressof): Likewise.
11784 (assign_parms): Adjust calls to put_var_into_stack.
11785 (setjmp_protect): Likewise.
11786 (setjmp_protect_args): Likewise.
11787 * rtl.h (gen_mem_addressof): Change prototype.
11788 * stmt.c (expand_decl): Adjust calls to put_var_into_stack.
11789 * tree.h (put_var_into_stack): Change prototype.
11791 2003-03-23 Arpad Beszedes <beszedes@cc.u-szeged.hu>
11794 * builtins.c (expand_builtin_fputs): When optimizing for size,
11795 don't transform fputs into fwrite.
11797 2003-03-23 Glen Nakamura <glen@imodulo.com>
11800 * fold-const.c (extract_muldiv_1): Don't pass through type conversions
11801 when signedness changes for division or modulus.
11803 2003-03-24 Alan Modra <amodra@bigpond.net.au>
11805 * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_BSS): Remove unnecessary
11808 2003-03-23 Roger Sayle <roger@eyesopen.com>
11811 * stmt.c (expand_end_case_type): Check for overflow in range when
11812 determining whether to use a bit-test implementation.
11814 2003-03-23 Richard Henderson <rth@redhat.com>
11816 * cfgcleanup.c (try_optimize_cfg): Allow merging of tablejumps
11818 * cfgrtl.c (try_redirect_by_replacing_jump): Similarly.
11820 2003-03-23 Richard Henderson <rth@redhat.com>
11823 * ifcvt.c (find_if_block): Disallow tablejump insns outgoing
11824 from then_bb or else_bb after flow2.
11826 2003-03-23 Zack Weinberg <zack@codesourcery.com>
11828 * configure.in: Check whether it is necessary to link against
11830 * configure: Regenerate.
11831 * Makefile.in: Add LDEXP_LIB substitution variable.
11833 2003-03-23 Kazu Hirata <kazu@cs.umass.edu>
11835 * config/h8300/h8300.md: Fix comment typos.
11837 2003-03-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11839 * pa.c (output_cbranch): Fix typo in comment.
11841 2003-03-22 Richard Henderson <rth@redhat.com>
11843 * cfgcleanup.c (insns_match_p): Do not do EQUIV substitution
11846 2003-03-22 DJ Delorie <dj at redhat dot com>,
11847 Bruce Korb <bkorb at gnu dot org>
11849 * fixinc/inclhack.def (solaris_mutex_init_1): New; Fix
11850 buggy Solaris 2.6 mutex/cond initializers.
11851 (solaris_mutex_init): Rename to solaris_mutex_init_2.
11852 * fixinc/fixincl.x: Regenerate.
11853 * fixinc/tests/base/pthread.h: Update.
11854 * fixinc/fixincl.c(initialize): be explicit about the default case
11855 and indicate verbose level when being very, very verbose.
11856 * fixinc/check.tpl(VERBOSE): provide a means for passing the value in
11858 2003-03-22 Andreas Jaeger <aj@suse.de>
11860 * config/i386/i386.c (ix86_init_machine_status): Return value.
11862 2003-03-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11864 * pa.c (output_cbranch, output_bb, output_bvb): Output nop for
11865 conditional branch to the following instruction. Use next_real_insn
11866 instead of next_active_insn.
11867 (output_dbra, output_movb, jump_in_call_delay): Use next_real_insn
11868 instead of next_active_insn.
11870 2003-03-22 Ulrich Weigand <uweigand@de.ibm.com>
11872 * config/s390/s390.md ("movti", "*movdi_31", "*movdf_31"): Use 'o'
11873 instead of 'm' constraint in forced-split alternatives.
11874 ("*adddi3_31", "*subdi3_31"): Likewise. Also, pass 0 instead of 1 as
11875 VALIDATE_ADDRESS parameter to operand_subword.
11877 2003-03-22 Kazu Hirata <kazu@cs.umass.edu>
11879 * config/h8300/h8300.c (notice_update_cc): Correctly handle
11880 the case where the set destination is STRICT_LOW_PART.
11882 2003-03-22 Svein E. Seldal <Svein.Seldal@solidas.com>
11884 * config/c4x/t-c4x (INSTALL_LIBGCC): Make gcc recognize a c33 as a
11885 c30 instead of a c40 processor.
11887 2003-03-22 Alan Modra <amodra@bigpond.net.au>
11889 * combine.c (simplify_comparison <AND>): Use gen_int_mode. Tidy.
11891 2003-03-21 Zack Weinberg <zack@codesourcery.com>
11893 * c-common.c: Include intl.h.
11894 (shadow_warning): Rewrite to allow better diagnostic translations.
11895 * c-common.h: Update prototype of shadow_warning. Declare sw_kind enum.
11896 * c-decl.c (warn_if_shadowing): Update calls to shadow_warning;
11898 * Makefile.in (c-common.o): Add intl.h.
11900 2003-03-21 Nathanael Nerode <neroden@gcc.gnu.org>
11902 * config.gcc: Remove 'float_format'.
11904 * fixproto: Define NULL and size_t in generated stdlib.h and
11905 unistd.h. Kill unused required_stdlib_h, required_unistd_h.
11906 Rearrange file generation loop for readability. Generate time.h,
11907 string.h if missing.
11908 * tsystem.h: Include <string.h>, <time.h> unconditionally.
11909 * config.gcc: Blow away POSIX defines.
11911 2003-03-22 Stephane Carrez <stcarrez@nerim.fr>
11913 * config/m68hc11/m68hc11.md ("call_value"): Fix trap check.
11915 2003-03-22 Stephane Carrez <stcarrez@nerim.fr>
11917 * config/m68hc11/m68hc11.h (ASM_DECLARE_FUNCTION_NAME): Fix typo in
11918 writing .interrupt command.
11919 * config/m68hc11/m68hc11.md ("call"): Look at the symbol to see
11920 if it's a far or near function.
11921 ("call_value"): Likewise.
11922 * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Add far and
11924 (m68hc11_handle_fntype_attribute): Accept attributes on methods.
11925 (m68hc11_override_options): Ignore -mlong-calls for 68HC11.
11926 (m68hc11_initial_elimination_offset): Set current_function_far
11927 according to attributes.
11928 (expand_prologue): Likewise.
11929 (trap_handler_symbol): New global to keep track of trap handlers.
11930 (m68hc11_encode_section_info): Mark symbol as far if needed; set
11932 (m68hc11_is_far_symbol): New function.
11933 (m68hc11_is_trap_symbol): New function.
11934 * config/m68hc11/m68hc11-protos.h (m68hc11_is_far_symbol): Declare.
11935 (m68hc11_is_trap_symbol): Declare.
11937 2003-03-21 Jan Hubicka <jh@suse.cz>
11939 * i386.c (ix86_compute_frame_layout): Recompute fast prologues
11940 only when amount of saved regs changed.
11941 (ix86_init_machine_status): Initialize use_fast_prologue_epilgoue_nregs.
11942 * i386.h (machine_function): New fields use_fast_prologue_epilgoue_nregs.
11944 2003-03-21 Jan Hubicka <jh@suse.cz>
11947 * function.c (instantiate_virtual_regs_lossage): New function.
11948 (instantiate_virtual_regs_1): Use it.
11949 (instantiate_virtual_regs): Do not continue in substition when insn has
11952 2003-03-21 Kazu Hirata <kazu@cs.umass.edu>
11954 * combine.c (make_field_assignment): Fix a warning.
11956 2003-03-21 Kazu Hirata <kazu@cs.umass.edu>
11958 * config/h8300/h8300.md (*insv_si_1_n_lshiftrt_16): New.
11960 2003-03-21 Dale Johannesen <dalej@apple.com>
11962 * config/rs6000/rs6000.h (REG_ALLOC_ORDER): Increase
11963 priority for R2 on Darwin.
11964 (HARD_REGNO_MODE_OK): Don't accept R31 for DFmode.
11966 2003-03-21 Kazu Hirata <kazu@cs.umass.edu>
11968 * combine.c (make_field_assignment): Remove unnecessary AND
11969 when storing into zero_extract.
11971 2003-03-21 Zack Weinberg <zack@codesourcery.com>
11973 * aclocal.m4 (gcc_AC_EXAMINE_OBJECT, gcc_AC_C_FLOAT_FORMAT): Delete.
11974 * configure.in: Don't call gcc_AC_C_FLOAT_FORMAT.
11975 * defaults.h: Remove reference to HOST_FLOAT_WORDS_BIG_ENDIAN
11978 2003-03-21 DJ Delorie <dj@redhat.com>
11980 * optabs.c (init_integral_libfuncs): Make sure we init at least up
11981 to "long long" size words.
11983 2003-03-21 Ulrich Weigand <uweigand@de.ibm.com>
11985 * config/s390/s390.h: Do not include fixdfdi.h on s390x.
11986 (TARGET_64BIT): Define as compile-time constant when IN_LIBGCC2.
11987 (MIN_UNITS_PER_WORD): Do not define when IN_LIBGCC2.
11989 2003-03-21 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
11992 * doc/extend.texi: Move misplaced paragraph about underscores in
11993 variables in macros.
11995 2003-03-21 Eric Botcazou <ebotcazou@libertysurf.fr>
11996 Richard Henderson <rth@redhat.com>
11998 PR optimization/8366
11999 * config/sparc/sparc.h: (SYMBOLIC_CONST): New macro.
12000 (GO_IF_LEGITIMATE_ADDRESS): Use it. Reject the form
12001 PIC+SYMBOLIC_CONST in other modes than Pmode.
12002 (GO_IF_MODE_DEPENDENT_ADDRESS): Use it. Mark
12003 the form PIC+SYMBOLIC_CONST as mode dependent.
12005 2003-03-21 DJ Delorie <dj@redhat.com>
12007 * config/stormy16/stormy16.c (xstormy16_expand_arith): Make
12008 sure we always emit at least one insn.
12010 2003-03-21 Christopher Faylor <cgf@redhat.com>
12012 * config.gcc (i[34567]86-*-cygwin*): Use new common makefile
12013 stub t-cygming. Use common target header cygming.h. Add extra
12014 c_target_obj and cxx_target_obj file. Default cygwin to posix
12015 threading. Enforce i386 as float format.
12016 (i[34567]86-*-mingw*): Use new common makefile stub t-cygming.
12017 Remove cygwin.h as target header. Use common target header
12018 cygming.h Enforce i386 as float format. Correct typo.
12019 * config/i386/cygming.h: New file, containing definitions
12020 common to mingw32 and cygwin.
12021 * config/i386/cygwin.h: Remove definitions common to cygwin and
12022 mingw. Simplify special spec logic. Define "wrappers" around
12023 certain include path defines to accommodate -mno-cygwin.
12024 Remove some #if 0'ed code.
12025 (STANDARD_INCLUDE_DIR) Always define when not cross-compiling.
12026 (LINK_SPEC): Don't use cyg search prefix when -mno-cygwin.
12027 (GCC_DRIVER_HOST_INITIALIZATION): Define as call to mingw_scan.
12028 * config/i386/mingw32.h: Remove definitions common to cygwin and
12030 (EXTRA_OS_CPP_BUILTINS): Adjust.
12031 (TARGET_VERSION): Define.
12032 * config/i386/crtdll.h (EXTRA_OS_CPP_BUILTINS): Override
12033 mingw32.h definitions.
12034 (LIBGCC_SPEC): Add libmingwex.a as in mingw32.h.
12035 * config/i386/t-cygwin (EXTRA_GCC_OBJS): Define as cygwin1.o.
12036 Add compilation rules for cygwin1.o cygwin2.o.
12037 * config/i386/cygwin1.c: New file.
12038 * config/i386/cygwin2.c: New file.
12039 * config/i386/t-cygming: New makefile stub.
12041 2003-03-20 Richard Henderson <rth@redhat.com>
12043 * fold-const.c (extract_muldiv_1): Revert changing order of
12044 operands in case MULT_EXPR of 2003-02-16 patch.
12046 2003-03-20 Daniel Berlin <dberlin@dberlin.org>
12047 Merge changes from new-regalloc-branch
12049 From Michael Matz <matz@suse.de>
12050 * df.c (df_ref_record_1): Move init of loc to safe point.
12051 Only recurse on interesting things in parallels.
12052 Handle CLASS_CANNOT_CHANGE_MODE smarter.
12053 (df_uses_record): Ditto.
12055 * df.h (DF_REF_MEM_OK): New enum member, used to mark ref's which
12056 it's already okay to use memory operands in (IE doesn't require
12057 adding another insn or anything).
12059 2003-03-20 Richard Henderson <rth@redhat.com>
12062 * explow.c (allocate_dynamic_stack_space): Handle STACK_SIZE_MODE
12063 different from word_mode.
12065 2003-03-20 Kazu Hirata <kazu@cs.umass.edu>
12067 * config/h8300/h8300.md (*insv_si_1_n_lshiftrt): Restrict the
12068 source operand to those that can be extracted with bld.
12070 2003-03-20 Richard Earnshaw <rearnsha@arm.com>
12073 * arm.md (UNSPEC_PIC_BASE): New constant.
12074 (pic_add_dot_plus_four): Wrap with unspec.
12075 (pic_add_dot_plus_eight): Likewise.
12077 2003-03-20 Kazu Hirata <kazu@cs.umass.edu>
12079 * config/h8300/h8300.md (*insv_si_1_n): New.
12080 (*insv_si_1_n_lshiftrt): Likewise.
12082 2003-03-20 Roger Sayle <roger@eyesopen.com>
12084 * fold-const.c (fold_mathfn_compare): New function to simplify
12085 comparisons against built-in math functions. Fold comparisons
12086 of sqrt against constants.
12087 (fold): Call fold_mathfn_compare when appropriate.
12089 2003-03-20 Richard Earnshaw <rearnsha@arm.com>
12091 * ifcvt.c (find_if_case_1): If we add a new bb, update the dominance
12094 2003-03-20 Per Bothner <pbothner@apple.com>
12096 Various cleanups to help compile server.
12098 * cppinit.c (cpp_create_reader): Take extra hash_table* argument,
12099 and pass that to _cpp_init_hashtable.
12100 (cpp_read_main_file): Drop hash_table* argument; don't call
12101 _cpp_init_hashtable.
12102 * cpplib.h: Update declarations to match.
12103 * c-opts.c (c_common_init_options): Pass ident_hash to
12105 (c_common_post_options): Don't pass ident_hash to cpp_read_main_file.
12106 * fix-header.c (read_scan_file): Likewise pass NULL table to
12107 cpp_create_reader rather than cpp_read_main_file.
12109 * cppfiles.c (cpp_rename_file): Generalized and renamed
12110 to cpp_change_file.
12111 * cpplib.h: Update declaration to match.
12112 * c-opts.c (push_command_line_line, finish_options): Change
12113 cpp_rename_file calls to cpp_change_file.
12115 * line-map.c (add_line_map): Allow leaving the outermost file.
12116 Allowing entering an outermost-file after the initial time.
12118 * toplev.c (pop_srcloc): Allow popping from initial file.
12120 2003-03-20 Kazu Hirata <kazu at cs dot umass dot edu>
12122 * fold-const.c (fold): Fold A - (A & B) into ~B & A.
12124 2003-03-20 Kazu Hirata <kazu@cs.umass.edu>
12126 * config/h8300/h8300.md (a peephole2): New.
12128 2003-03-20 Kazu Hirata <kazu@cs.umass.edu>
12130 * config/h8300/h8300.md (*addsi3_and_r_1): New.
12131 (*addsi3_and_not_r_1): Likewise.
12133 2003-03-19 Loren James Rittle <ljrittle@acm.org>
12135 * Makefile.in (STRICT2_WARN): Add @WERROR@.
12136 (GCC_WARN_CFLAGS): Remove $(WERROR).
12137 (fixinc.sh-warn): New.
12138 * ada/Make-lang.in (ada-warn): Add $(WERROR).
12139 * cp/Make-lang.in (cp-warn): Add $(WERROR).
12140 * f/Make-lang.in (f-warn): Add $(WERROR).
12141 * java/Make-lang.in (java-warn): Add $(WERROR).
12142 * treelang/Make-lang.in (treelang-warn): Add $(WERROR).
12144 2003-03-19 Nathanael Nerode <neroden@gcc.gnu.org>
12146 * c-common.h (c_dump_tree), c-dump.c (c_dump_tree),
12147 langhooks-def.h (lhd_tree_dump_dump_tree),
12148 langhooks.c (lhd_tree_dump_dump_tree), langhooks.h (*dump_tree):
12149 Change return type from 'int' to 'bool'. Replace 0 and 1 with
12150 true and false in return statements.
12152 2003-03-19 Kevin Buettner <kevinb@redhat.com>
12154 * dwarf2out.c (DWARF_INITIAL_LENGTH_SIZE): Define.
12155 (DWARF_COMPILE_UNIT_HEADER_SIZE): Take into account
12156 DWARF_INITIAL_LENGTH_SIZE.
12157 (output_compilation_unit_header, output_pubnames, output_aranges)
12158 (output_line_info): Output 0xffffffff escape value for 64-bit
12160 * config/mips/iris6.h (DWARF_INITIAL_LENGTH_SIZE): Define.
12162 2003-03-19 Ulrich Weigand <uweigand@de.ibm.com>
12164 * config/s390/s390.c (s390_preferred_reload_class): Do not
12165 force constants to the pool unless necessary.
12166 (s390_decompose_address): Prefer to use pointer as base,
12167 not index register.
12168 * config/s390/s390.md ("*tsthiCCT_only"): Remove '?' from
12170 ("*movdi_64", "*movsi", "movhi", "movqi_64", "movqi",
12171 "*movdf_64", "*movsf"): Add '?' to Q->Q alternatives.
12172 ("*extractqi", "*extracthi", "*zero_extendhisi2_31",
12173 "*zero_extendqisi2_31", "*zero_extendqihi2_31",
12174 "*adddi3_31", "*subdi3_31"): Do not set "type" attribute.
12176 2003-03-19 Jan Hubicka <jh@suse.cz>
12178 * i386.h (machine_function): New fields use_fast_prologue_epilogue.
12179 * i386.c (use_fast_prologue_epilogue): Remove.
12180 (ix86_frame): New field save_regs-using_mov;
12181 (ix86_compute_frame_layout): Decide on fast prologues;
12182 allocate saved registers in red zone.
12183 (ix86_expand_epilogue, ix86_expand_prolgoues): Obey new parameters.
12185 2003-03-19 Nick Clifton <nickc@redhat.com>
12187 * config/mcore/mcore.h (CPP_SPEC): Remove trailing semi-colon.
12189 2003-03-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12192 * config/pa/pa-hpux.h (TARGET_HPUX_UNWIND_LIBRARY): Redefine.
12193 * pa-protos.h (output_lbranch): New prototype.
12194 * pa.c (compute_frame_size): Change size of the frame marker on the
12195 64-bit ports to 48 bytes.
12196 (pa_output_function_prologue): Document why SAVE_SP is set.
12197 (hppa_expand_prologue): Save previous stack pointer into frame marker
12198 on targets which use the hpux unwind library.
12199 (output_cbranch): Use output_lbranch.
12200 (output_lbranch): New function to output long unconditional branches.
12201 * pa.h (TARGET_HPUX_UNWIND_LIBRARY): Define.
12202 (STACK_POINTER_OFFSET): Update offset for 48-byte frame marker on
12204 * pa.md (jump): Use output_lbranch.
12205 (allocate_stack): New expander for dynamic stack allocation.
12207 2003-03-19 Alan Modra <amodra@bigpond.net.au>
12209 * config/rs6000/rs6000.c (rs6000_stack_info): Only require a frame
12210 when debugging on XCOFF targets. Delete "abi" temp.
12213 * combine.c (force_to_mode <NOT>): Use gen_int_mode.
12215 2003-03-18 Jakub Jelinek <jakub@redhat.com>
12217 * config/s390/s390.c (s390_output_dwarf_dtprel): New.
12218 * config/s390/s390-protos.h (s390_output_dwarf_dtprel): New proto.
12219 * config/s390/s390.h (ASM_OUTPUT_DWARF_DTPREL): Define.
12221 * config/ia64/ia64.c (ia64_output_dwarf_dtprel): New.
12222 * config/ia64/ia64-protos.h (ia64_output_dwarf_dtprel): New proto.
12223 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_DTPREL): Define.
12225 2003-03-18 Geoffrey Keating <geoffk@apple.com>
12227 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't clone
12228 the result of machopic_function_base_name.
12229 * config/darwin.c (machopic_function_base_name): Use a gc-allocated
12230 string rather than a static array.
12232 * Makefile.in (emit-rtl.o): Add gt-emit-rtl.h to dependencies.
12234 * gengtype.c: Include rtl.h.
12235 (enum rtx_code): Don't define.
12236 (rtx_format): Make declaration match rtl.h.
12237 (rtx_next_new): Rename from rtx_next to avoid conflict. Change all
12239 (adjust_field_rtx_def): Describe strings in NOTE_LINE_NUMBER notes.
12240 * Makefile.in (gengtype.o): Update dependencies.
12242 2003-03-18 Andreas Schwab <schwab@suse.de>
12244 * config/m68k/m68k.md (iordi3): Fix setting low half to -1. From
12247 2003-03-18 Geoffrey Keating <geoffk@apple.com>
12249 * function.c (next_block_index): Mark with GTY.
12251 * config/rs6000/rs6000.md (macho_correct_pic): Correct pattern.
12253 2003-03-18 Richard Henderson <rth@redhat.com>
12255 * config/ia64/ia64.md (UNSPECV_SETJMP_RECEIVER): New.
12256 (builtin_setjmp_receiver): Delay call to ia64_reload_gp
12257 until after reload.
12259 2003-03-18 Richard Henderson <rth@redhat.com>
12261 * builtins.c (expand_builtin_unop): New target_mode operand;
12262 use it to convert the result to the correct mode.
12263 (expand_builtin): Update all callers.
12265 2003-03-18 Ulrich Weigand <uweigand@de.ibm.com>
12267 * config/s390/s390.md ("movti", "movhi", "movqi"): Add "type" attribute.
12269 2003-03-18 Jan Hubicka <jh@suse.cz>
12271 * i386.md: Fix previous commit that mistakely applied the patch
12274 * alias.c (rtx_equal_for_memref_p): Assume that X and Y has been
12276 (memrefs_conflict_p): Likewise.
12277 (addr_side_effect_eval): Canonicalize the constructed address.
12279 2003-03-18 Jan Hubicka <jh@suse.cz>
12281 * i386.md (cvtts?2si peep2): New.
12283 2003-03-18 Kazu Hirata <kazu@cs.umass.edu>
12285 * config/h8300/h8300.md (*iorsi3_two_qi_zext): New.
12287 2003-03-18 Andreas Schwab <schwab@suse.de>
12289 * dwarf2out.c (output_file_names): Cast size_t to unsigned long
12292 2003-03-17 Jason Merrill <jason@redhat.com>
12295 * expr.c (expand_expr) [ADDR_EXPR]: Disallow taking the address of
12296 an unaligned member of TREE_ADDRESSABLE type.
12298 2003-03-18 Alan Modra <amodra@bigpond.net.au>
12300 * config/rs6000/linux64.h (MASK_PROFILE_KERNEL): Define.
12301 (TARGET_PROFILE_KERNEL): Define.
12302 (SUBTARGET_SWITCHES): Handle -mprofile-kernel.
12303 (PROFILE_BEFORE_PROLOGUE): Don't define.
12304 (PROFILE_KERNEL): Remove hacks.
12305 * config/rs6000/rs6000.c (TARGET_PROFILE_KERNEL): Define default.
12306 (rs6000_stack_info): No need to save lr if just for profiling when
12307 TARGET_PROFILE_KERNEL.
12308 (output_profile_hook): Output nothing when TARGET_PROFILE_KERNEL.
12309 (output_function_profiler): Localize label generation. Emit code
12310 for kernel profiling.
12312 2003-03-17 Kazu Hirata <kazu@cs.umass.edu>
12314 * config/h8300/h8300-protos.h: Add a prototype for
12315 byte_accesses_mergeable_p.
12316 * config/h8300/h8300.c (byte_accesses_mergeable_p): New.
12317 * config/h8300/h8300.md (*iorhi3_two_qi_mem): Likewise.
12318 (a splitter): Likewise.
12319 (*iorsi3_ashift_16_ashift_24): Likewise.
12320 (*iorsi3_ashift_16_ashift_24_mem): Likewise.
12322 2003-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12324 * dwarf2asm.h: Delete obsolete comment.
12325 (dw2_asm_output_data, dw2_asm_output_delta, dw2_asm_output_offset,
12326 dw2_asm_output_pcrel, dw2_asm_output_addr,
12327 dw2_asm_output_addr_rtx, dw2_asm_output_encoded_addr_rtx,
12328 dw2_asm_output_nstring, dw2_asm_output_data_uleb128,
12329 dw2_asm_output_data_sleb128, dw2_asm_output_delta_uleb128,
12330 dw2_asm_output_delta_sleb128): Add ATTRIBUTE_NULL_PRINTF.
12332 2003-03-17 Zack Weinberg <zack@codesourcery.com>
12334 * c-tree.h (struct lang_identifier): Remove error_locus field.
12335 (IDENTIFIER_ERROR_LOCUS): Kill.
12336 (record_function_scope_shadow): New prototype.
12337 * c-typeck.c (build_external_ref): Don't complain if
12338 decl is error_mark_node. When not at file scope, bind the
12339 decl's local value to error_mark_node to suppress further
12340 warnings, instead of setting IDENTIFIER_ERROR_LOCUS.
12342 * c-decl.c (get_function_binding_level): New static function.
12343 (record_function_scope_shadow): New exported function.
12344 (c_make_fname_decl): Use get_function_binding_level.
12346 2003-03-17 Steve Ellcey <sje@cup.hp.com>
12348 * stmt.c (tail_recursion_args): Call promote_mode to set
12349 unsignedp flag correctly before calling convert_move.
12351 2003-03-17 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12353 * loop-unroll.c (decide_peel_completely,
12354 decide_unroll_constant_iterations, decide_unroll_stupid,
12355 decide_unroll_runtime_iterations, decide_peel_simple): Set
12358 2003-03-17 Jan Hubicka <jh@suse.cz>
12360 * ggc-common.c (ggc_mark_roots): Use htab_traverse_noresize.
12362 2003-03-17 Olivier Hainque <hainque@act-europe.fr>
12364 * function.c (assign_parms): For a struct value address passed as
12365 first argument, delay the function's result RTL setup code until
12366 after the emission of parameter conversions.
12368 2003-03-17 Dave Love <fx@gnu.org>
12369 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12371 * config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Define __digital__,
12372 __arch64__ to match Compaq cc.
12374 2003-03-17 Neil Booth <neil@daikokuya.co.uk>
12376 * c-opts.c: Default TARGET_EBCDIC to 0 if not defined.
12377 (c_common_init): Set EBCDIC in cpp options.
12378 * cpplex.c (maybe_read_ucs, cpp_parse_escape): Use EBCDIC option,
12379 not conditional compilation.
12380 * cpplib.h (struct cpp_options): New entry EBCDIC.
12382 2003-03-17 Neil Booth <neil@daikokuya.co.uk>
12384 * fix-header.c (read_scan_file): Need to malloc arguments to add_path.
12386 2003-03-17 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12388 * function.c (thread_prologue_and_epilogue_insns): Set delete_unused
12389 argument to 0 for redirect_jump.
12391 2003-03-16 Mark Mitchell <mark@codesourcery.com>
12394 * except.c (eh_region_u_cleanup): Add prev_try.
12395 (expand_eh_region_end_cleanup): Set it.
12396 (reachable_handlers): Use it to skip over cleanup blocks.
12398 2003-03-17 Andreas Jaeger <aj@suse.de>
12400 * Makefile.in (TAGS): Remove obsolete handling of =*.[chy].
12402 2003-03-17 Alan Modra <amodra@bigpond.net.au>
12404 * config/rs6000/linux64.h (TARGET_64BIT): Redefine.
12405 (TARGET_RELOCATABLE, TARGET_EABI, TARGET_PROTOTYPE): Likewise.
12406 (SUBTARGET_SWITCHES, SUBTARGET_OPTIONS): Likewise.
12407 (SUBTARGET_OVERRIDE_OPTIONS, CPP_SYSV_SPEC): Likewise.
12409 2003-03-16 Richard Henderson <rth@redhat.com>
12411 * simplify-rtx (simplify_binary_operation): Don't abort for
12412 SS_PLUS, US_PLUS, SS_MINUS, US_MINUS.
12414 2003-03-16 Richard Henderson <rth@redhat.com>
12416 * config/i386/i386.md (movstrictqi, movstrictqi_1): Check
12417 optimize_size as well.
12419 2003-03-16 Stephane Carrez <stcarrez@nerim.fr>
12421 * config/m68hc11/m68hc11.c (print_operand): Handle 'b' modifier
12422 for D register to specify the low part of it, aka B.
12423 (m68hc11_gen_movhi): Use REG_WAS_0 note and increment or decrement
12424 the register if we are loading 1 or -1 to it; avoid using temp
12425 register when moving X/Y to Y/X.
12426 (m68hc11_gen_movqi): Likewise.
12427 (m68hc11_check_z_replacement): Fix last insn setting for compare case.
12429 2003-03-14 Mark Mitchell <mark@codesourcery.com>
12431 PR optimization/9016
12432 * config/i386/i386.c (ix86_expand_move): Force more CONST_DOUBLEs
12433 into the constant pool.
12435 2003-03-16 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
12438 * tree.c (get_narrower): For extensions with unchanged bit number,
12439 return the unsignedness of the outer mode.
12441 2003-03-16 Roger Sayle <roger@eyesopen.com>
12443 * c-typeck.c (build_component_ref): Turn "for" into "do .. while"
12444 to avoid "may be used uninitialized" warning on ia64-hpux.
12445 * config/ia64/ia64-c.c: Include "tm_p.h" for function prototypes.
12447 2003-03-16 Andreas Jaeger <aj@suse.de>
12449 * configure.in: Improve check for memcheck.h.
12450 * configure: Regenerated.
12452 2003-03-16 Neil Booth <neil@daikokuya.co.uk>
12454 * doc/cppopts.texi: Remove documentation of -A-.
12456 2003-03-15 Zack Weinberg <zack@codesourcery.com>
12458 * doc/libgcc.texi: Remove @tie.
12460 2003-03-15 Josef Zlomek <zlomekj@suse.cz>
12462 * rtl.h (subrtx_p): Renamed to rtx_referenced_p.
12463 (rtx_pair): Added new element update_label_nuses, renamed to
12464 replace_label_data.
12465 * cfgcleanup.c (outgoing_edges_match, try_crossjump_to_edge): Use
12466 replace_label_data instead of rtx_pair.
12467 * loop.c (load_mems): Likewise.
12468 * rtlanal.c (replace_label): Replace label in pool constants and in
12469 INSN_LIST (in REG_LABEL note).
12470 (subrtx_p): Renamed to rtx_referenced_p.
12471 (subrtx_p_1): Renamed to rtx_referenced_p_1, compare the interior of
12472 LABEL_REF with CODE_LABEL, traverse constants from pool.
12474 2003-03-15 Aldy Hernandez <aldyh@redhat.com>
12475 Zack Weinberg <zack@codesourcery.com>
12477 * Makefile.in (TEXI_GCCINT_FILES): Add libgcc.texi.
12478 * doc/libgcc.texi: New file.
12479 * doc/interface.texi: Delete paragraph about libgcc interface.
12480 * doc/gccint.texi: Add libgcc menu entry and @include libgcc.texi.
12482 2003-03-15 Jason Merrill <jason@redhat.com>
12485 * dwarf2out.c (gen_decl_die): Ignore frontend tree codes.
12488 * dwarf2out.c (dwarf2out_decl): If we're at -g1, just stick nested
12489 function DIEs at toplevel.
12490 (decls_for_scope): At -g1, don't descend into subblocks.
12492 2003-03-15 Ulrich Weigand <uweigand@de.ibm.com>
12494 * varasm.c (struct rtx_const): Change type of un.addr member
12495 to struct holding an additional 'symbol' member.
12496 (decode_rtx_const): Re-enable optimization to count SYMBOL_REFs
12497 with equal string addresses as equal.
12498 (simplify_subtraction): Adapt to struct rtx_const change.
12500 2003-03-15 Neil Booth <neil@daikokuya.co.uk>
12502 * fix-header.c (read_scan_file): Read main file before handling -D.
12504 2003-03-15 Roger Sayle <roger@eyesopen.com>
12506 * c-cppbuiltin.c (builtin_define_with_value_n): Fix whitespace.
12507 * c-typeck.c (c_tree_expr_nonnegative_p): Likewise.
12508 * cfgbuild.c (find_many_sub_basic_blocks): Likewise.
12509 (find_sub_basic_blocks): Likewise.
12510 * cgraphunit.c (cgraph_expand_functions): Likewise.
12511 * dwarf2out.c (prune_unused_types): Likewise.
12512 * expr.c (store_field): Likewise.
12513 * genextract.c (print_path): Likewise.
12514 * haifa-sched.c (schedule_insn): Likewise.
12515 * lcm.c (compute_antinout_edge): Likewise.
12516 * loop-unroll.c (decide_peel_once_rolling): Likewise.
12517 * ra-colorize.c (ra_colorize_free_all): Likewise.
12518 * ra-debug.c (dump_igraph): Likewise.
12519 (debug_hard_reg_set): Likewise.
12520 * reg-stack.c (reg_to_stack): Likewise.
12521 * rtlanal.c (refers_to_regno_p): Likewise.
12522 * tracer.c (layout_superblocks): Likewise.
12524 2003-03-15 Neil Booth <neil@daikokuya.co.uk>
12526 * fix-header.c (read_scan_file): Fix thinko.
12528 2003-03-15 Glen Nakamura <glen@imodulo.com>
12530 * reload1.c (choose_reload_regs): Use && instead of ||
12531 with REG_CANNOT_CHANGE_MODE_P condition.
12533 2003-03-15 Neil Booth <neil@daikokuya.co.uk>
12535 * Makefile.in: Update.
12536 * c-common.h (cb_register_builtins): Rename c_cpp_builtins.
12537 * c-lex.c (init_c_lex): Register builtins hook is dead.
12538 * c-opts.c (COMMAND_LINE_OPTIONS, missing_arg): Handle -A, -D and -U.
12539 (c_common_decode_option): Don't call cpp_handle_option.
12540 Handle -A, -D and -U.
12541 (handle_deferred_opts): Simplify.
12542 (finish_options): Define builtins and command line macros.
12543 * c-ppoutput.c (init_pp_output): Register builtins hook is dead.
12544 * cppinit.c: Don't include intl.h.
12545 (init_builtins): Rename cpp_init_builtins. No hook to call.
12546 (init_library): Don't need to sort options.
12547 (cpp_create_reader): Don't set pending.
12548 (cpp_destroy): Don't free pending.
12549 (struct pending_option, cl_directive_handler, struct cpp_pending,
12550 APPEND, free_chain, new_pending_directive, parse_option, opt_comp,
12551 cpp_finish_options, COMMAND_LINE_OPTIONS, DEF_OPT, struct cl_option,
12552 cl_options, cpp_handle_option): Remove.
12553 * cpplib.h (struct cpp_pending, register_builtins, cpp_handle_option,
12554 cpp_finish_options): Remove.
12555 (cpp_init_builtins): New.
12556 * fix-header.c (read_scan_file): Update to handle -D. Fix
12557 handling of -I. Replace call to cpp_finish_options.
12559 2003-03-15 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12561 PR optimization/9387
12562 * function.c (thread_prologue_and_epilogue_insns): Use redirect_jump
12563 for conditional returns.
12565 2003-03-14 Jason Merrill <jason@redhat.com>
12567 PR optimization/6871
12568 * varasm.c (assemble_variable): Leave constant zeroes in .rodata.
12570 2003-03-14 Neil Booth <neil@daikokuya.co.uk>
12572 * c-opts.c (finish_options): New.
12573 (COMMAND_LINE_OPTIONS, c_common_decode_option): Add -imacros.
12574 (missing_arg): Handle OPT_include and OPT_imacros.
12575 (c_common_init, c_common_parse_file): Use finish_options.
12576 (handle_deferred_opts): Update.
12577 * cppinit.c (struct cpp_pending): Remove imacros_head and imacros_tail.
12578 (cpp_finish_options): Don't handle -imacros here.
12580 (COMMAND_LINE_OPTIONS, cpp_handle_option): Don't handle -imacros.
12582 2003-03-14 Jakub Jelinek <jakub@redhat.com>
12584 * config/rs6000/rs6000.c (rs6000_emit_load_toc_table): Don't call
12585 rs6000_maybe_dead if !fromprolog.
12587 2003-03-14 Neil Booth <neil@daikokuya.co.uk>
12589 * Makefile.in: Update.
12590 * c-common.h (fe_file_change, pp_file_change): New.
12591 * c-lex.c (init_c_lex): Don't set cb_file_change.
12592 (c_common_parse_file): Move to c-opts.c.
12593 (cb_file_change): Rename fe_file_change.
12594 * c-opts.c: Include debug.h.
12595 (warn_unused_macros, include_cursor): New.
12596 (push_command_line_include, cb_file_change): New.
12597 (COMMAND_LINE_OPTIONS): Handle -include.
12598 (c_common_decode_option): Use local warn_unused_macros.
12599 Handle OPT_include.
12600 (c_common_post_options): Set file change callback.
12601 (handle_deferred_opts): Skip -include. Don't free the array.
12602 (c_common_init): Call cpp_finish_options here, and push an
12603 initial -include file.
12604 * c-ppoutput.c (cb_file_change): Rename pp_file_change.
12605 (preprocess_file): Don't call cpp_finish_options.
12606 (init_pp_output): Don't set the file change callback.
12607 (pp_file_change): Return if no line commands or no output.
12608 * cpphash.h (next_include_file, first_unused_line): Remove.
12609 * cppinit.c (include_head, include_tail): Remove.
12610 (cpp_destroy): Don't free -include chain.
12611 (cpp_finish_options): Don't handle -include, or worry about
12613 (_cpp_maybe_push_include_file): Remove.
12614 (COMMAND_LINE_OPTIONS, cpp_handle_option): Don't handle -include.
12615 * cpplib.c (_cpp_pop_buffer): Don't handle -include.
12616 * cppmacro.c (_cpp_warn_if_unused_macro, _cpp_create_definition):
12617 Used flag is set based upon the state of the warn_unused_macros
12618 flag, and so use of first_unused_line is unnecessary.
12620 2003-03-13 Jan Hubicka <jh@suse.cz>
12622 * cselib.c (clear_table): Do not take argument; always clear just
12624 (cselib_process_insn): Update call of clear_table
12625 (cselib_init): Do not call clear_table.
12626 (cselib_finish): Clear table.
12628 * cse.c (count_reg_usage): Do not check side_effects_p.
12629 * rtlanal.c (set_noop_p): Check side_effects_p only when set looks
12631 (find_reg_equal_equiv_note): Do not use find_reg_note.
12633 2003-03-14 Richard Henderson <rth@redhat.com>
12636 * config/alpha/alpha.c (alpha_va_start): Account for
12637 current_function_pretend_args_size in the AP offset.
12639 * config/alpha/alpha.h (SETUP_INCOMING_VARARGS): Move out of line.
12640 (INITIAL_ELIMINATION_OFFSET): Move out of line.
12641 * config/alpha/alpha.c (alpha_setup_incoming_varargs): New.
12642 (alpha_initial_elimination_offset) New.
12643 * config/alpha/alpha-protos.h: Update.
12645 2003-03-14 Jakub Jelinek <jakub@redhat.com>
12647 * stmt.c (expand_start_case): Call emit_queue ().
12649 2003-03-14 Chris Demetriou <cgd@broadcom.com>
12650 Alexandre Oliva <aoliva@redhat.com>
12652 * config/mips/mips.h (FUNCTION_PROFILER): _mcount() doesn't pop 2
12655 2003-03-14 Eric Botcazou <ebotcazou@libertysurf.fr>
12657 PR optimization/8396
12658 * tree-inline.c (initialize_inlined_parameters): Make sure the value
12659 of read-only constant arguments is passed with the right type.
12661 2003-03-14 Steven Bosscher <steven@gcc.gnu.org>
12663 * doc/extend.texi (Function Names): Make the example compilable.
12665 2003-03-13 David Edelsohn <edelsohn@gnu.org>
12667 * config/rs6000/rs6000.c (processor_target_table): Really allow
12668 GP optional instructions on Power4.
12670 2003-03-13 Roger Sayle <roger@eyesopen.com>
12672 * calls.c (flags_from_decl_or_type): Factor and remove redundant
12675 2003-03-13 Mike Stump <mrs@apple.com>
12677 * ggc-page.c (struct page_entry): Remove varray.h header.
12678 Add index_by_depth field.
12679 Remove save_in_use_p field.
12680 (struct globals): Add depth_in_use, depth_max, by_depth_in_use,
12681 by_depth_max, by_depth, and save_in_use fields.
12682 (INITIAL_PTE_COUNT): Add.
12683 (save_in_use_p_i): Add.
12684 (save_in_use_p): Add.
12685 (adjust_depth): Add.
12686 (move_ptes_to_front): Add.
12688 (push_by_depth): Add.
12690 (free_page): Add support for and use faster data structures.
12691 (ggc_alloc): Likewise.
12692 (init_ggc): Likewise.
12693 (ggc_recalculate_in_use_p): Likewise.
12694 (ggc_pop_context): Likewise.
12695 (clear_marks): Likewise.
12696 (ggc_pch_read): Likewise.
12697 * Makefile.in (ggc-page.o): Remove varray.h.
12699 2003-03-13 Nathanael Nerode <neroden@gcc.gnu.org>
12701 * ChangeLog: Rotated last year's entries to...
12702 * ChangeLog.8: New.
12704 * config/ia64/fde-glibc.c, config/ia64/freebsd.h,
12705 config/ia64/hpux.h, config/ia64/hpux_longdouble.h,
12706 config/ia64/ia64-c.c, config/ia64/ia64-modes.def,
12707 config/ia64/ia64-protos.h, config/ia64/ia64.c,
12708 config/ia64/ia64.h, config/ia64/ia64.md,
12709 config/ia64/itanium1.md, config/ia64/itanium2.md,
12710 config/ia64/quadlib.c, config/ia64/unwind-ia64.c,
12711 config/ia64/unwind-ia64.h: It's GCC, not GNU CC.
12713 2003-03-13 Aldy Hernandez <aldyh@redhat.com>
12715 * config/rs6000/rs6000.c (rs6000_dwarf_register_span):
12716 Differentiate endianness.
12717 (s6000_override_options): Use cpu type instead of TARGET_SPE.
12719 2003-03-13 Nick Clifton <nickc@redhat.com>
12721 * config/arm/arm.c (print_multi_reg): Do not generate a type 2
12722 LDM instructions with writeback enabled.
12723 (output_return_instruction): Likewise.
12725 * config/arm/pe.h (FIXED_REGISTERS): Remove definition.
12726 (CALL_USED_REGISTERS): Remove definition.
12727 (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Define.
12729 2003-03-13 Alan Modra <amodra@bigpond.net.au>
12731 * config/rs6000/rs6000.c (rs6000_flag_pic): Delete.
12732 (rs6000_xcoff_encode_section_info): #ifdef TARGET_XCOFF.
12733 (rs6000_binds_local_p, TARGET_BINDS_LOCAL_P): #if TARGET_MACHO.
12734 (rs6000_override_options): Don't clear flag_pic for ABI_AIX.
12735 (rs6000_legitimize_address): Formatting.
12736 (rs6000_emit_move): Likewise.
12737 (rs6000_return_addr): Test ABI_AIX as well as flag_pic.
12738 (rs6000_emit_prologue <save_LR_around_toc_setup>): Likewise.
12739 (rs6000_elf_select_section): Comment reason for shlib being
12741 (rs6000_elf_unique_section): Likewise.
12742 (rs6000_elf_encode_section_info): Test !TARGET_AIX as well as ABI_AIX.
12743 * config/rs6000/rs6000.h (LEGITIMATE_LO_SUM_ADDRESS_P): Test ABI_AIX
12744 as well as flag_pic.
12745 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
12746 (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
12747 * config/rs6000/linux64.h (TARGET_ENCODE_SECTION_INFO): Don't define.
12749 2003-03-13 Richard Henderson <rth@redhat.com>
12751 * emit-rtl.c (try_split): Handle 1-1 splits of call insns properly.
12753 * config/ia64/ia64.c (TARGET_FUNCTION_OK_FOR_SIBCALL): New.
12754 (ia64_gp_save_reg): Remove.
12755 (struct ia64_frame_info): Move to the beginning of the file;
12757 (ia64_expand_call): Rearrange for new call patterns.
12758 (ia64_reload_gp): New.
12759 (ia64_split_call): New.
12760 (ia64_compute_frame_size): Allocate reg_save_gp.
12761 (ia64_expand_prologue): Save reg_save_gp.
12762 (ia64_expand_epilogue): Don't restore gp.
12763 (ia64_hard_regno_rename_ok): Remove R4 hack.
12764 (ia64_function_ok_for_sibcall): New.
12765 (ia64_output_mi_thunk): Set reload_completed, no_new_pseudos;
12766 call try_split on sibcall pattern.
12767 * config/ia64/ia64-protos.h: Update.
12768 * config/ia64/ia64.md (call_nogp, call_value_nogp, sibcall_nogp):
12769 Rename from nopic versions. Confiscate 2nd argument to call as
12771 (call_pic, call_value_pic, sibcall_pic): Remove.
12772 (call_gp, call_value_gp, sibcall_gp): New.
12773 (builtin_setjmp_setup): Remove.
12774 (builtin_setjmp_receiver): Call ia64_reload_gp.
12776 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
12778 * config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
12779 config/dsp16xx/dsp16xx.h, config/dsp16xx/dsp16xx.md: Replace
12780 "GNU CC" with "GCC".
12782 * config/c4x/c4x-c.c, config/c4x/c4x-modes.def,
12783 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
12784 config/c4x/c4x.md, config/c4x/libgcc.S, config/c4x/rtems.h:
12787 * genattrtab.h, hosthooks-def.h, hosthooks.h, langhooks-def.h,
12788 langhooks.h, tree-inline.h: Replace "GNU CC" with "GCC".
12790 * c-pch.c, dummy-conditions.c, genautomata.c, genconditions.c,
12791 langhooks.c, tree-inline.c, unwind-dw2-fde-darwin.c,
12792 unwind-dw2-fde-glibc.c, unwind-libunwind.c, vmsdbgout.c: Replace
12793 "GNU CC" with "GCC".
12795 * config/v850/lib1funcs.asm, config/v850/rtems.h,
12796 config/v850/v850-c.c, config/v850/v850-protos.h,
12797 config/v850/v850.c, config/v850/v850.h, config/v850/v850.md:
12800 * config/vax/bsd.h, config/vax/elf.h, config/vax/netbsd-elf.h,
12801 config/vax/netbsd.h, config/vax/openbsd.h, config/vax/openbsd1.h,
12802 config/vax/ultrix.h, config/vax/vax-protos.h, config/vax/vax.c,
12803 config/vax/vax.h, config/vax/vax.md, config/vax/vaxv.h: GCC, not
12806 2003-03-12 Benjamin Kosnik <bkoz@redhat.com>
12808 * cpppch.c (cpp_valid_state): Use DL_WARNING_SYSHDR, not DL_WARNING.
12810 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
12812 * fixinc/fixinc.interix: Remove dead code (most of it).
12813 * fixinc/fixinc.dgux: Remove.
12815 * ginclude/float.h, ginclude/iso646.h, ginclude/stdarg.h,
12816 ginclude/stdbool.h, ginclude/stddef.h: GCC, not GNU CC.
12818 2003-03-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12820 * pa.c (pa_init_builtins): Fix warning.
12822 2003-03-12 Steve Ellcey <sje@cup.hp.com>
12824 * config/ia64/ia64.h (ASM_OUTPUT_XDATA_CHAR): Remove.
12825 (ASM_OUTPUT_XDATA_SHORT): Remove.
12826 (ASM_OUTPUT_XDATA_INT): Remove.
12827 (ASM_OUTPUT_XDATA_DOUBLE_INT): Remove.
12828 (ASM_OUTPUT_ADDR_DIFF_ELT): Handled 32 bit address diffs.
12829 (ASM_PREFERRED_EH_DATA_FORMAT): Handle 32 bit EH pointers.
12830 (CASE_VECTOR_MODE): Handle 32 bit pointers in case statement.
12832 2003-03-12 Andrew Lewycky <andrew@mxc.ca>
12835 * expr.c (store_expr): Don't attempt to store void-typed trees,
12836 just evaluate them for side effects.
12838 2003-03-12 Neil Booth <neil@daikokuya.co.uk>
12840 * cppfiles.c (cpp_rename_file, cpp_push_include): New.
12841 * cppinit.c (push_include): Move with changes to cppfiles.c.
12842 (cpp_read_main_file): Mark named operators here...
12843 (cpp_finish_options): ...not here. Update.
12844 (_cpp_maybe_push_include_file): Update.
12845 * cpplib.h (cpp_push_include, cpp_rename_file): New.
12847 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
12849 * aclocal.m4: Introduce gcc_GAS_VERSION_GTE_IFELSE,
12850 _gcc_COMPUTE_GAS_VERSION.
12851 * configure.in: Use them.
12852 * configure: Regenerate.
12854 2003-03-12 Bob Wilson <bob.wilson@acm.org>
12856 * config/xtensa/xtensa.md (adddi3): Don't clobber source operand used
12858 (subdi3): Reorder emitted instructions.
12860 2003-03-12 Andreas Jaeger <aj@suse.de>
12862 * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Remove call to
12863 NETBSD_OS_CPP_BUILTINS_LP64.
12865 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
12867 * Makefile.in: Eliminate all.indirect. Update and clean up comments.
12868 Rearrange. Reorganize.
12869 * configure.in: Rearrange.
12870 * configure: Regenerate.
12872 2003-03-12 Andreas Jaeger <aj@suse.de>
12874 * c-cppbuiltin.c (cb_register_builtins): Define LP64 builtins for
12877 * doc/cpp.texi (Common Predefined Macros): Document __LP64__ and
12880 * config/ia64/ia64.h (TARGET_CPU_CPP_BUILTINS): Do not define
12882 * config/pa/pa.h (TARGET_CPU_CPP_BUILTINS): Likewise.
12884 * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Remove call to
12885 NETBSD_OS_CPP_BUILTINS_LP64.
12886 * config/sh/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Likewise.
12887 * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Likewise.
12889 * config/netbsd.h (NETBSD_OS_CPP_BUILTINS_LP64): Remove.
12891 2003-03-12 Jan Hubicka <jh@suse.cz>
12893 * i386.c (ix86_setup_incoming_varargs): Set stack_alignment_needed to 128.
12895 2003-03-12 Daniel Jacobowitz <drow@mvista.com>
12897 Fix PR target/9797 and PR c/9853.
12898 * stmt.c (expand_decl_init): Call push_temp_slots () and
12901 2003-03-12 J"orn Rennecke <joern.rennecke@superh.com>
12903 * sh.c: Include basic-block.h.
12904 (sh_output_mi_thunk, emit_load_ptr): New functions.
12905 (TARGET_ASM_OUTPUT_MI_THUNK, TARGET_ASM_CAN_OUTPUT_MI_THUNK): Redefine.
12907 2003-03-12 Nick Clifton <nickc@redhat.com>
12909 * config/arm/pe.h (FIXED_REGISTERS): Add Maverick registers.
12910 (CALL_USED_REGISTERS): Likewise.
12911 * config/arm/arm.h (FIRST_PSEUDO_REGISTER): Update comment
12912 describing how this value is calculated.
12914 2003-03-12 Hans-Peter Nilsson <hp@bitrange.com>
12916 * configure.in (rlim_t): Define to long if no valid definition
12917 found in sys/resource.h.
12918 * config.in, configure: Regenerate.
12920 2003-03-12 Neil Booth <neil@daikokuya.co.uk>
12922 * config/mcore/mcore-elf.h (CPP_PREDEFINES): Replace with
12923 TARGET_OS_CPP_BUILTINS.
12924 * config/mcore/mcore-pe.h: Similarly.
12925 * config/mcore/mcore.h: Replace CPP_PREDEFINES and part of
12926 CPP_SPEC with TARGET_CPU_CPP_BUILTINS.
12928 2003-03-12 Eric Botcazou <ebotcazou@libertysurf.fr>
12931 * c-decl.c (duplicate_decls): Discard the initializer of the new decl
12932 only if it is a VAR_DECL.
12934 2003-03-12 Eric Botcazou <ebotcazou@libertysurf.fr>
12936 PR optimization/9888
12937 * config/i386/i386.md (jcc_1): Fix range.
12940 (doloop_end_internal): Likewise.
12942 2003-03-12 Danny Smith <dannysmith@users.sourceforge.net>
12944 * config/i386/winnt.c (DLL_IMPORT_PREFIX): New define.
12945 Use throughout instead of DLL_IMPORT_EXPORT_PREFIX and "e."
12946 (DLL_EXPORT_PREFIX): New define. Use throughout instead of
12947 DLL_IMPORT_EXPORT_PREFIX and "i."
12948 (i386_pe_dllexport_name_p): Here.
12949 (i386_pe_dllimport_name_p): Here.
12950 (i386_pe_mark_dllexport): Here. Remove DLL_IMPORT_PREFIX,
12951 not 9 chars when getting identifier name.
12952 (i386_pe_mark_dllimport): Here.
12953 (i386_pe_encode_section_info): Here. Remove DLL_IMPORT_PREFIX,
12954 not 9 chars when getting identifier name. Correct comment.
12955 (i386_pe_strip_name_encoding): Here. Add comments for different
12957 (gen_fastcall_suffix): Break down xmalloc() argument to
12959 (gen_stdcall_suffix): Likewise.
12960 Update copyright year.
12962 2003-03-12 Eric Botcazou <ebotcazou@libertysurf.fr>
12964 PR optimization/9888
12965 * config/i386/i386.md (movsi_1): Remove special alternatives
12967 (movsi_1_nointernunit): Likewise.
12968 (movhi_1): Likewise.
12969 * config/i386/i386.c (memory_address_length): Do not use
12970 short displacement when there is no base.
12971 (ix86_attr_length_address_default): Handle LEA instructions.
12973 2003-03-12 Neil Booth <neil@daikokuya.co.uk>
12975 * c-cppbuiltin.c (builtin_define_std): Make non-static.
12977 2003-03-11 Loren James Rittle <ljrittle@acm.org>
12979 * config/freebsd-spec.h (FBSD_CPP_PREDEFINES): Remove.
12980 (FBSD_TARGET_OS_CPP_BUILTINS): New port-specific macro.
12981 (FBSD_TARGET_CPU_CPP_BUILTINS): New port-specific macro.
12982 * config/freebsd.h (CPP_PREDEFINES): Remove.
12983 (TARGET_OS_CPP_BUILTINS): New.
12984 * config/alpha/freebsd.h: Use overridden FBSD_TARGET_CPU_CPP_BUILTINS
12985 instead of TARGET_OS_CPP_BUILTINS.
12986 * config/sparc/freebsd.h (CPP_PREDEFINES): Remove.
12988 2003-03-11 Geoffrey Keating <geoffk@apple.com>
12990 * c-cppbuiltin.c (builtin_define_std): Add ATTRIBUTE_UNUSED.
12992 2003-03-11 Aldy Hernandez <aldyh@redhat.com>
12994 * config/rs6000/rs6000.c (rs6000_stack_info): Remove
12995 insn_chain_scanned. Use insn_chain_scanned_p in machine_function.
12997 * config/rs6000/rs6000.h (machine_function): Add insn_chain_scanned_p.
12999 2003-03-11 Alexandre Oliva <aoliva@redhat.com>
13001 * toplev.c (independent_decode_option): Return success for --help,
13002 --target-help and --version.
13004 2003-03-11 Alexandre Oliva <aoliva@redhat.com>
13006 * config/mips/linux64.h (DRIVER_SELF_SPECS): Add endian_spec.
13007 Default to -mips3 on -mabi=64. Don't add -mips* flag if -march is
13009 (SUBTARGET_ASM_SPEC): Remove -mips*-adding code obviated by
13011 (LINK_SPEC): Let endian options affect the linker emulation name.
13013 2003-03-11 J"orn Rennecke <joern.rennecke@superh.com>
13015 * sh.md (reload_inqi): Fix mode for source in second set.
13017 2003-03-11 Jan Hubicka <jh@suse.cz>
13019 * cselib.c (cselib_invalidate_mem_1): Move too ...
13020 (cselib_invalidate_mem): ... here; use new list
13021 (dummy_val, first_containing_mem): New static variables.
13022 (clear_table): Initialize first_containing_mem.
13023 (discard_useless_values): Compact the containing_mem list.
13024 (add_mem_for_addr): Add to the list.
13025 * cselib.h (cselib_val): Add next_containing_mem.
13027 2003-03-11 Aldy Hernandez <aldyh@redhat.com>
13029 * config/rs6000/rs6000.c (rs6000_override_options): Disable string
13030 instructions for e500.
13032 2003-03-11 Neil Booth <neil@daikokuya.co.uk>
13034 * Makefile.in: Update.
13035 * c-cppbuiltin.c: Include tm_p.h.
13037 2003-03-11 Aldy Hernandez <aldyh@redhat.com>
13039 * doc/tm.texi (Frame Registers): Document DWARF_REG_TO_UNWIND_COLUMN.
13041 * unwind-dw2.c (DWARF_REG_TO_UNWIND_COLUMN): Define.
13042 (_Unwind_GetGR): Use DWARF_REG_TO_UNWIND_COLUMN.
13043 (_Unwind_SetGR): Same.
13044 (_Unwind_GetGRPtr): New.
13045 (_Unwind_SetGRPtr): New.
13046 (uw_update_context_1): Use accesor functions instead of accessing
13047 context->reg[] directly.
13048 (uw_install_context_1): Same.
13049 (execute_cfa_program): Same.
13050 (__frame_state_for): Same.
13052 * config/rs6000/rs6000.c (spe_synthesize_frame_save): Use 1200 as
13053 the synthetic register offset.
13055 * config/rs6000/rs6000.h (DWARF_REG_TO_UNWIND_COLUMN): New.
13057 2003-03-11 Hans-Peter Nilsson <hp@axis.com>
13059 * config/cris/cris.md: Remove lingering EGCS reference.
13060 ("*extopqihi_side_biap"): For HI operation, match
13061 cris_additive_operand_extend_operator, not
13062 cris_operand_extend_operator. Adjust condition.
13063 ("*extopqihi_side", "*extopqihi"): Ditto.
13064 ("*extopqisi_side_biap"): Correct operand numbers in condition.
13065 ("*extophisi_side_biap", "*extopqisi_swap_side_biap"): Ditto.
13066 ("*extophisi_swap_side_biap", "*extopqisi_swap"): Ditto.
13067 ("*extophisi_swap"): Ditto.
13068 ("*extopqihi_swap_side_biap"): For HI operation, match a simple
13069 PLUS, not cris_operand_extend_operator. Adjust condition and
13071 ("*extopqihi_swap_side", "*extopqihi_swap"): Ditto.
13072 * config/cris/cris.h (PREDICATE_CODES): Add
13073 cris_additive_operand_extend_operator.
13074 * config/cris/cris.c (cris_additive_operand_extend_operator):
13077 2003-03-11 Hartmut Penner <hpenner@de.ibm.com>
13079 * df.c (read_modify_subreg_p): Change from static to global.
13080 * df.h (read_modify_subreg_p): Add prototype.
13081 * sched-deps.c (sched_analyze_1): Generate true dependency for
13082 strict_low_part, certain subregs and zero/sign_extract.
13084 2003-03-11 Neil Booth <neil@daikokuya.co.uk>
13086 * Makefile.in: Update.
13087 * c-common.c: Don't include real.h or except.h.
13088 (REGISTER_PREFIX): Remove.
13089 (builtin_define_std, builtin_define_with_value,
13090 builtin_define_with_int_value, builtin_define_with_hex_fp_value,
13091 builtin_define_type_max, builtin_define_type_precision,
13092 builtin_define_float_constants): Move to c-cppbuiltin.c.
13093 (c_stddef_cpp_builtins): New.
13094 * c-common.h (builtin_define_with_value, c_stddef_cpp_builtins): New.
13095 * c-cppbuiltin.c: New, extracted from c-common.c.
13096 (define__GNUC__): New.
13097 * cppspec.c (lang_specific_driver): Remove support of -no-gcc.
13098 * gcc.c: Remove support of %v1, %v2 and %v3 specs.
13099 (cpp_unique_options): Don't support no-gcc.
13100 (do_spec_1): Remove support of version specs.
13101 * doc/invoke.texi: Remove documentation of %v1, %v2 and %v3.
13102 * doc/passes.texi: Update.
13103 * doc/tm.texi: Update.
13105 2003-03-10 Aldy Hernandez <aldyh@redhat.com>
13107 * dwarf2out.c (multiple_reg_loc_descriptor): Fix thinko.
13109 2003-03-10 Andrew Pinski <apinski@apple.com>
13111 * config/darwin.c (machopic_function_base_name): If dynamic-no-pic
13112 is on should not get here.
13113 (machopic_indirect_data_reference): If dynamic-no-pic is on just
13114 generate high/low parts of the address.
13115 (machopic_legitimize_pic_address): Change MACHOPIC_PURE to
13116 MACHOPIC_INDIRECT. Dynamic-no-pic uses 0 as the pic base. Generate
13117 symbol and labels with a new reg. Dynamic-no-pic does not have a
13118 pic_offset_table_rtx.
13119 (machopic_select_section): Change references of flag_pic to
13121 (machopic_asm_out_destructor): Likewise.
13122 * config/darwin.h (ASM_DECLARE_UNRESOLVED_REFERENCE): Change
13123 reference of flag_pic to MACHOPIC_INDIRECT.
13124 (MACHO_DYNAMIC_NO_PIC_P): Define as TARGET_DYNAMIC_NO_PIC.
13125 (MACHOPIC_INDIRECT): Is also true when dynamic-no-pic is on.
13126 (MACHOPIC_JUST_INDIRECT): Is also true when dynamic-no-pic is on.
13127 (MACHOPIC_PURE): Is not pure when dynamic-no-pic is on.
13128 * config/i386/darwin.h (MASK_MACHO_DYNAMIC_NO_PIC): Define as
13129 0 for right now as dynamic-no-pic is not implemented on Darwin/ia32.
13130 * config/rs6000/darwin.h (MASK_MACHO_DYNAMIC_NO_PIC): Define.
13131 (TARGET_DYNAMIC_NO_PIC): Define.
13132 (SUBTARGET_SWITCHES): Define, have sub-target switches for
13134 (SUBTARGET_OVERRIDE_OPTIONS): Move check for -fpic from
13135 rs6000_override_options to here. Dynamic-no-pic overrides
13137 (CC1_SPEC): Change from not static then pic to not static and not
13138 dynamic-no-pic then pic.
13139 * config/rs6000/rs6000.c (rs6000_override_options): Move the
13140 check for -fpic and DARWIN_ABI to config/rs6000/darwin.h
13141 (rs6000_legitimize_reload_address): Add case for loading floating in
13143 (rs6000_emit_move): Add case for dynamic-no-pic. Change reference
13144 of flag_pic to MACHOPIC_INDIRECT.
13145 (secondary_reload_class): Conditional change the reference of
13146 flag_pic to MACHOPIC_INDIRECT.
13147 (rs6000_output_mi_thunk): Change reference of flag_pic to
13149 (output_profile_hook): Likewise.
13150 (machopic_output_stub): Non-pure (dynamic-no-pic) is now supported.
13151 * config/rs6000/rs6000.md (movdf_low): Add the case for
13152 MACHO_DYNAMIC_NO_PIC_P.
13153 (call): Change references for flag_pic in TARGET_MACHO to
13155 (SUBTARGET_OVERRIDE_OPTIONS): Add case where -fpic is on and
13156 -mdynamic-no-pic is on. Also move case for -fpic from rs6000.c.
13157 * doc/invoke.texi (-mdynamic-no-pic): Document.
13159 2003-03-10 Devang Patel <dpatel@apple.com>
13162 * gcc.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
13163 (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove.
13164 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Add.
13165 (DEFAULT_WORD_SWITCH_TAKES_ARG): Add.
13166 * cppspec.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
13167 (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove.
13169 2003-03-10 Steven Bosscher <s.bosscher@student.tudelft.nl>
13171 PR optimization/7189
13172 * toplev.c (rest_of_compilation): Move
13173 check_function_return_warnings up to just after
13174 delete_unreachable_blocks.
13176 2003-03-10 Stephane Carrez <stcarrez@nerim.fr>
13178 * config/m68hc11/m68hc11.h (HARD_REGNO_RENAME_OK): Define.
13179 * config/m68hc11/m68hc11-protos.h (m68hc11_hard_regno_rename_ok):
13181 * config/m68hc11/m68hc11.c (m68hc11_hard_regno_rename_ok): New function
13182 for reg rename optimization to avoid using Z and Y registers.
13184 2003-03-10 Stephane Carrez <stcarrez@nerim.fr>
13186 * config/m68hc11/m68hc11.md ("*addhi3_68hc12"): Accept any constant
13187 when adding to X and Y since leax/leay are fast.
13188 ("*addhi3"): Accept 'I' constraint when adding to address register.
13189 ("rotlhi3"): Operand 1 must be a register_operand.
13190 (peephole2): New peephole to optimize some adds.
13191 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_P): Use 'I' constraint
13192 to represent -2 .. 2 small integer range.
13194 2003-03-10 Stephane Carrez <stcarrez@nerim.fr>
13196 * config/m68hc11/m68hc11.c (m68hc11_gen_rotate): Set carry before
13197 each 16-bit rotation.
13199 2003-03-10 Zack Weinberg <zack@codesourcery.com>
13201 * c-opts.c (add_prefixed_path): Don't use concat. When
13202 prefixing with cpp_GCC_INCLUDE_DIR, copy only the first
13203 cpp_GCC_INCLUDE_DIR_len characters.
13205 2003-03-10 Segher Boessenkool <segher@koffie.nl>
13207 * testsuite/gcc.dg/altivec-9.c: New file.
13209 * config/rs6000/rs6000.c (altivec_frame_fixup): Remove.
13210 (rs6000_emit_prologue): Use rs6000_frame_related instead.
13212 2003-03-10 Aldy Hernandez <aldyh@redhat.com>
13214 * config/rs6000/spe.h: Define __ev64_*64__ to use single element
13216 (__ev_convert_u64): Remove macro. Define as inline.
13217 (__ev_convert_s64): Same.
13219 2003-03-10 Aldy Hernandez <aldyh@redhat.com>
13221 * config/rs6000/rs6000.h (DWARF_FRAME_REGISTERS): Define.
13222 (rs6000_stack_t): Add spe_64bit_regs_used.
13224 * config/rs6000/rs6000.c (rs6000_stack_info): Calculate
13225 spe_64bit_regs_used, and use it to determine the size of the
13227 (spe_func_has_64bit_regs_p): New.
13228 (spe_synthesize_frame_save): New.
13229 (rs6000_frame_related): Handle SPE synthetic registers.
13230 (rs6000_emit_prologue): Only save in 64-bits if the function used
13231 any registers in 64-bit mode.
13232 (rs6000_emit_epilogue): Same, but for restore.
13234 2003-03-10 Richard Earnshaw <rearnsha@arm.com>
13236 * arm.h (enum floating_point_type): Delete. Replace with...
13237 (enum fputype): ... new.
13238 (FPUTYPE_DEFAULT): Renamed from FP_DEFAULT. Values reworked.
13239 * linux-elf.h (FPUTYPE_DEFAULT): Likewise.
13240 * arm.md (attr fpu): Reworked for new underlying enum values.
13241 * arm.c (arm_fpu_arch): Now enum fputype.
13242 (arm_fpu_tune): Renamed from arm_fpu. Now enum fputype.
13243 (arm_override_options, arm_output_epilogue, arm_expand_prologue):
13244 Update uses of arm_fpu_arch and arm_fpu_tune.
13246 2003-03-10 Josef Zlomek <zlomekj@suse.cz>
13248 * cfgcleanup.c (outgoing_edges_match): Compare the jump tables.
13249 (try_crossjump_to_edge): Replace refereces to one jump table by
13250 references to identical jump table.
13251 * loop.c (load_mems): Moved setting the JUMP_LABEL to replace_label.
13252 (replace_label): Moved to rtlanal.c.
13253 (struct rtx_pair): Moved to rtl.h.
13254 * rtl.h (struct rtx_pair): Moved from loop.c.
13255 (replace_label): New extern function.
13256 (subrtx_p): New extern function.
13257 (tablejump_p): New extern function.
13258 * rtlanal.c (replace_label): Moved from loop.c.
13259 (subrtx_p_1): New static function.
13260 (subrtx_p): New function.
13261 (tablejump_p): New function.
13263 2003-03-10 Jan Hubicka <jh@suse.cz>
13265 * cfgcleanup.c (try_optimize_cfg): Fix thinko in previous patch.
13267 * cfgcleanup.c (merge_blocks): Return where to iterate next.
13268 (try_optimize_cfg): Use return value of merge_blocks
13270 2003-03-10 Michael Matz <matz@suse.de>
13272 * cfg.c (unchecked_make_edge): New.
13273 (cached_make_edge): Use it.
13274 * basic-block.h (unchecked_make_edge): Declare.
13275 * cfglayout.c (cfg_layout_duplicate_bb): Use it.
13277 2003-03-10 Richard Earnshaw <rearnsha@arm.com>
13279 * fpa.md: New file. Move all patterns relating to FPA co-processor
13281 * arm.md: ... from here.
13282 (cirrus.md, fpa.md): Include at end of description.
13283 (divsf3, divdf3, modsf3, movdf3, sqrtsf2, sqrtdf2): New expands.
13284 (pic_load_addr_based): Remove register constraint from expander.
13285 (seq, sne, sgt, sle, slt, sge, sgeu, sleu, sgtu, sltu, sunordered)
13286 (sordered, sungt, sunle, sunge, sunlt): Likewise.
13287 (eh_epilogue, tablejump): Likewise.
13289 2003-03-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13291 * tree.c (substitute_in_expr, case 'e'): Only make recursive call
13292 on operands if it has a PLACEHOLDER_EXPR.
13294 2003-03-09 David Edelsohn <edelsohn@gnu.org>
13297 * config/rs6000/rs6000.md (movsi_update1): Add TARGET_UPDATE final
13300 2003-03-09 Neil Booth <neil@daikokuya.co.uk>
13302 * config/frv/frv.h: Use TARGET_CPU_CPP_BUILTINS, not CPP_PREDEFINES.
13303 * config/ip2k/ip2k.h: Similarly.
13304 * config/m32r/m32r.h: Similarly.
13305 * config/m68hc11/m68hc11.h: Similarly.
13306 * config/mn10200/mn10200.h: Similarly.
13307 * config/mn10300/mn10300.h: Similarly.
13308 * config/pdp11/pdp11.h: Similarly.
13309 * config/v850/v850.h: Similarly.
13310 * config/rs6000/vxworks.h: Similarly for TARGET_OS_CPP_BUILTINS.
13311 * config/v850/retms.h: Similarly for TARGET_OS_CPP_BUILTINS.
13312 * config/mips/iris3.h: Remove #if 0 block.
13314 2003-03-09 Roger Sayle <roger@eyesopen.com>
13315 Joern Rennecke <joern.rennecke@superh.com>
13317 * gcc.c (do_spec_1) ['{']: Revert 2003-02-24 patch. Don't handle
13318 pending argument upon return from handle_braces here.
13319 (do_spec_2): Instead handle it upon return from do_spec_1 here.
13321 2003-03-09 Roger Sayle <roger@eyesopen.com>
13322 Joern Rennecke <joern.rennecke@superh.com>
13324 * gcc.c (do_spec_1) ['{']: Revert 2003-02-24 patch. Don't handle
13325 pending argument upon return from handle_braces here.
13326 (do_spec_2): Instead handle it upon return from do_spec_1 here.
13328 2003-03-09 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
13330 * varasm.c (make_decl_one_only): Use declare_weak().
13332 2003-03-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13335 * c-common.c (c_common_nodes_and_builtins): Initialize target builtins
13336 after the common builtins.
13337 * pa-hpux.h (DONT_HAVE_FPUTC_UNLOCKED): Define.
13338 * pa.c (TARGET_INIT_BUILTINS): Define.
13339 (pa_init_builtins): New function.
13341 * pa.md (call, call_value, sibcall, sibcall_value): When sufficient
13342 space has been allocated for the outgoing arguments, set the arg
13343 pointer for a call emitted after virtuals have been instantiated
13344 using the stack pointer offset, otherwise abort.
13346 2003-03-09 DJ Delorie <dj@redhat.com>
13348 * config/stormy16/stormy16.h (DWARF_LINE_MIN_INSTR_LENGTH): Revert.
13350 2003-03-09 Richard Earnshaw <rearnsha@arm.com>
13352 * arm.md (fix_truncsfsi2, fix_truncdfsi2, arm_fix_truncsfsi2)
13353 (arm_fix_truncdfsi2): Add missing fix in floating point mode before
13354 conversion to integer.
13355 * cirrus.md (cirrus_truncsfsi2, cirrus_truncdfsi2): Likewise.
13357 2003-03-09 Roger Sayle <roger@eyesopen.com>
13359 * builtins.def: Fix typo and improve grammar.
13360 * loop-unroll.c (decide_peel_completely): Tidy log message.
13362 2003-03-09 Kazu Hirata <kazu@cs.umass.edu>
13364 * config/h8300/h8300.md (*tstsi_upper_bit): New.
13365 (*iorsi3_e2f): Likewise.
13367 2003-03-08 Kazu Hirata <kazu@cs.umass.edu>
13369 * config/h8300/h8300.c (h8300_and_costs): Return the number of
13370 assembly instructions needed.
13371 (h8300_shift_costs): Likewise.
13373 2003-03-09 Hans-Peter Nilsson <hp@bitrange.com>
13375 * config/cris/aout.h (ENDFILE_SPEC): Undef.
13377 * optabs.c (gen_move_insn): Move logic for synthesizing MODE_CC
13378 moves from here ...
13379 * expr.c (emit_move_insn_1): ... to here.
13381 * config/cris/aout.h (CRIS_CPP_SUBTARGET_SPEC): Move -D__AOUT__ to...
13382 (TARGET_OS_CPP_BUILTINS): New macro.
13383 * config/cris/cris.h (CRIS_CPP_SUBTARGET_SPEC): Move -D__ELF__ to...
13384 (TARGET_OS_CPP_BUILTINS): New macro.
13385 (CPP_PREDEFINES): Don't define. Move old definitions and...
13386 (CPP_SPEC): ...move -D__CRIS_ABI_version=2 to...
13387 (TARGET_CPU_CPP_BUILTINS): New macro.
13388 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Move constant
13389 definitions and the optional __PIC__, __pic__ and
13390 __NO_UNDERSCORES__ definitions to...
13391 (TARGET_OS_CPP_BUILTINS): New macro.
13393 * flags.h (flag_leading_underscore): Declare.
13395 * c-opts.c (c_common_post_options): On fopen failure, return
13398 2003-03-08 Hans-Peter Nilsson <hp@bitrange.com>
13400 * config/cris/cris_abi_symbol.c: #include tconfig.h and tm.h, not
13402 * config/cris/cris.h (HAVE_GAS_HIDDEN): Don't define here.
13403 * config/cris/aout.h (HAVE_GAS_HIDDEN): Undef.
13405 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
13407 * config/sh/rtemself.h (TARGET_OS_CPP_BUILTINS): Use instead of
13409 * config/sh/rtems.h (TARGET_OS_CPP_BUILTINS): Use instead of
13412 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
13414 * c-common.h (c_common_init, c_common_post_options): Update.
13415 * c-objc-common.c (c_objc_common_init): Update for new prototype.
13416 * c-opts.c (saved_lineno): New.
13417 (c_common_post_options, c_common_init): Update prototypes,
13418 move call to cpp_read_main_file from latter to former.
13419 * c-tree.h (c_ojbc_common_init): Update.
13420 * langhooks-def.h (lhd_post_options): New.
13421 (LANG_HOOKS_INIT, LANG_HOOKS_POST_OPTIONS): Update.
13422 * langhooks.c (lhd_post_options): New.
13423 * langhooks.h (struct lang_hooks): Update post_options and init hooks.
13424 * toplev.c (no_backend): New.
13425 (process_options): Call post_options hook and set main_input_filename
13426 and input_filename here.
13427 (lang_dependent_init, do_compile): post_options hook moved to
13429 * objc/objc-act.c (objc_init): Update prototype.
13430 * objc/objc-act.h (objc_init): Update prototype.
13432 2003-03-08 Roger Sayle <roger@eyesopen.com>
13434 * emit-rtl.c (gen_lowpart): Don't attempt to load a part of
13435 a complex or vector type, using a load in the original mode.
13437 2003-03-08 Jan Hubicka <jh@suse.cz>
13439 * Makefile.in (cgraph.o): Depend on gt-cgraph.h and varray.h.
13440 * gt-cgraph.h: New GC file.
13441 * cgraph.c (known_fns): New static variable.
13442 (cgraph_node): Add the decl into varray.
13444 2003-03-08 Hans-Peter Nilsson <hp@bitrange.com>
13446 * config/mmix/mmix.md ("*movcc_expanded"): Add missing alternatives.
13448 2003-03-08 Richard Earnshaw <rearnsha@arm.com>
13450 * arm.c (fpa_rhs_operand, fpa_add_operand, const_double_rtx_ok_for_fpa)
13451 (neg_const_double_ok_for_fpa, output_mov_long_double_fpa_from_arm)
13452 (output_mov_long_double_arm_from_fpa, output_mov_double_fpa_from_arm)
13453 (output_mov_double_arm_from_fpa): Renamed to use fpa instead of fpu.
13454 All callers changed.
13455 * arm.md, arm.h, arm-protos.h: Updated.
13457 * arm.h (enum reg_class FPA_REGS): Renamed from FPU_REGS.
13458 (CLASS_MAX_NREGS, REGISTER_MOVE_COST, REG_CLASS_FROM_LETTER): Updated.
13459 * arm.c (arm_regno_class, f_register_operand): Updated.
13461 2003-03-08 Hans-Peter Nilsson <hp@bitrange.com>
13463 * config/cris/cris.h: Remove EGCS references.
13464 (CPP_SPEC): Remove "-$".
13465 (INIT_CUMULATIVE_ARGS): Adjust parameter name to FNDECL.
13467 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
13469 * config/stormy16/stormy16.h (TARGET_CPU_CPP_BUILTINS): Use in
13470 preference to CPP_PREDEFINES.
13472 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
13474 * cppinit.c (cpp_finish_options): Set first_unused_line to -1.
13476 2003-03-08 Kazu Hirata <kazu@cs.umass.edu>
13478 * config/h8300/h8300.md (*extzv_16_8): New.
13480 2003-03-08 Jan Hubicka <jh@suse.cz>
13482 * c-decl.c: (finish_function): Update call of tree_inlinable_function_p.
13483 * cgraph.h: (cgraph_local_info): Add can_inline_once
13484 (cgraph_global_info): Add inline_once.
13485 (cgraph_node): Add previous.
13486 (cgraph_remove_node): New.
13487 * cgraphunit.c (cgraph_mark_functions_to_inline_once): New static
13489 (cgraph_optimize): Call it.
13490 (cgraph_finalize_function): Set inlinable flags.
13491 (cgraph_finalize_compilation_unit): Actually remove the reclaimed nodes.
13492 (cgraph_mark_functions_to_output): Use new inlining heuristics flags.
13493 (cgraph_expand_function): Likewise.
13495 (cgraph_node): Put nodes into doubly linked chain.
13496 (cgraph_remove_node): New function.
13497 * flags.h (flag_inline_functions_called_once): Declare.
13498 * tree-inline.c: Include cgraph.h
13499 (inlinable_functions_p): Add extra argument to bypass limits.
13500 (expand_call_inline): Obey cgraph flag.
13501 * tree-inline.h (tree_inlinable_function_p): Update prototype.
13503 2003-03-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
13505 * gcse.c (bypass_block, bypass_conditional_jumps): Do not create
13508 * loop-unroll.c (unroll_loop_runtime_iterations): Update irreducible
13509 loops info correctly.
13511 2003-03-08 Eric Botcazou <ebotcazou@libertysurf.fr>
13514 * unroll.c (calculate_giv_inc): Handle constants being
13515 loaded with LSHIFTRT.
13517 2003-03-07 David Edelsohn <edelsohn@gnu.org>
13519 * config/rs6000/rs6000.c (processor_target_table): Do not disable
13520 GP optional instructions on Power3, Power4, 620, and 630.
13522 2003-03-07 Kazu Hirata <kazu@cs.umass.edu>
13524 * calls.c: Fix comment formatting.
13525 * cfgloopanal.c: Likewise.
13526 * cfgloopmanip.c: Likewise.
13527 * combine.c: Likewise.
13528 * dwarf2out.c: Likewise.
13529 * ggc-common.c: Likewise.
13530 * langhooks.c: Likewise.
13531 * loop-unroll.c: Likewise.
13532 * loop.c: Likewise.
13533 * ra-build.c: Likewise.
13534 * sbitmap.c: Likewise.
13535 * toplev.c: Likewise.
13537 2003-03-07 James E Wilson <wilson@tuliptree.org>
13539 * config/sh/sh.h (HARD_REGNO_NREGS): Round up the XD register count.
13541 2003-03-07 Geoffrey Keating <geoffk@apple.com>
13543 * objc/lang-specs.h (objective-c-header): Use .gch not .pch;
13544 support -no-integrated-cpp.
13546 * c-pch.c (get_ident): Use c_language_kind and flag_objc rather
13547 than langhooks.name.
13549 2003-03-07 Michael Matz <matz@suse.de>
13551 * df.h (enum df_ref_flags.DF_REF_STRIPPED): New.
13552 (DF_FOR_REGALLOC): New.
13553 * df.c (df_ref_record): Set DF_REF_STRIPPED.
13554 (read_modify_subreg_p): Simplify.
13555 (df_def_record_1, df_uses_record): Set DF_REF_MODE_CHANGE more often.
13556 Use DF_FOR_REGALLOC.
13557 * ra.h (struct web): New member subreg_stripped.
13558 (invalid_mode_change_regs): Declare.
13559 * ra.c (invalid_mode_change_regs): New.
13560 (init_ra): Initialize it.
13561 * ra-build.c (init_one_web_common, remember_web_was_spilled): Use it.
13562 Use CANNOT_CHANGE_MODE_CLASS as ifdef guard.
13563 (reinit_one_web, parts_to_web_1): Deal with subreg_stripped.
13564 * ra-colorize.c (colorize_one_web): Use invalid_mode_change_regs.
13565 Use CANNOT_CHANGE_MODE_CLASS as ifdef guard.
13567 2003-03-07 Richard Earnshaw <rearnsha@arm.com>
13569 * arm.md (addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, negsf2)
13570 (negdf2, abssi2, abssf2, absdf2, floatsisf2, floatsidf2)
13571 (fix_truncsfsi2, fix_truncdfsi2, truncdfsf2): Moved back into main
13572 machine description file from ...
13573 * cirrus.md: ... here.
13575 2003-03-06 Kazu Hirata <kazu@cs.umass.edu>
13577 * config/h8300/h8300.md (a peephole2): Don't use
13578 reg_overlap_mentioned_p.
13580 2003-03-06 Geoffrey Keating <geoffk@apple.com>
13582 * c-pch.c: Include langhooks.h.
13583 (IDENT_LENGTH): New.
13585 (pch_ident): Delete.
13586 (pch_init): Use get_ident, IDENT_LENGTH.
13587 (c_common_valid_pch): Likewise. Also, use actual language
13588 in warning message.
13589 * Makefile.in (c-pch.o): Add langhooks.h to dependencies.
13591 * objc/config-lang.in (gtfiles): Add objc-act.c. Remove duplicate
13593 * objc/Make-lang.in (objc/objc-act.o): Add dependency on
13594 gt-objc-objc-act.h.
13595 (gt-objc-objc-act.h): New rule.
13596 * objc/lang-specs.h: Support PCH.
13597 * objc/objc-act.c: Include gt-objc-objc-act.h.
13598 (objc_add_static_instance): Move num_static_inst out, mark for PCH.
13599 (build_selector_reference_decl): Move idx out, mark for PCH.
13600 (build_class_reference_decl): Likewise.
13601 (build_objc_string_decl): Move *_idx out, mark for PCH.
13602 (build_tmp_function_decl): Move xxx out, mark for PCH.
13604 2003-03-06 Dale Johannesen <dalej@apple.com>
13606 * config/rs6000/rs6000.c (rs6000_binds_local_p): Consider
13607 global functions for inlining on Darwin.
13609 2003-03-06 Vladimir Makarov <vmakarov@redhat.com>
13611 * haifa-sched.c (schedule_block): Don't call reorder when sorting
13614 2003-03-06 Neil Booth <neil@daikokuya.co.uk>
13616 * Makefile.in (c-ppoutput.o): Update.
13617 * c-common.h (init_pp_output): New.
13618 (preprocess_file): Update.
13619 * c-lex.c (init_c_lex): Move mbchar initialization to cpplib.
13621 * c-opts.c (c_common_init): Call init_pp_output if preprocessing.
13622 Make call to cpp_read_main_file common to whether preprocessing
13623 or not. Don't register builtins.
13624 * c-ppoutput.c: Include c-pragma.h.
13625 (setup_callbacks): Rename init_pp_output.
13626 (preprocess_file): No longer setup callbacks or call
13627 cpp_read_main_file.
13628 * cpphash.h (_cpp_init_mbchar): New.
13629 * cppinit.c (init_library): Call _cpp_init_mbchar.
13630 * cpplex.c (_cpp_init_mbchar): New.
13632 2003-03-06 Roger Sayle <roger@eyesopen.com>
13634 * emit-rtl.c (gen_lowpart): When requesting the low-part of a
13635 MEM, try loading the MEM into a register and taking the low-part
13636 of that, to help CSE see the use of the MEM in its true mode.
13638 2003-03-05 Tom Tromey <tromey@redhat.com>
13640 * config/stormy16/stormy16.h (DWARF_LINE_MIN_INSTR_LENGTH):
13643 2003-03-05 Nick Clifton <nickc@cambridge.redhat.com>
13645 * config/stormy16/stormy16.md ("*eqbranchsi"): Remove '+' on
13647 ("*ineqbranchsi"): Likewise.
13649 2003-03-05 Andrew Haley <aph@cambridge.redhat.com>
13651 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Delete
13652 mem_fake_push_rtx. Instead construct a SEQUENCE to show the
13653 register store followed by a stack increment.
13655 2003-03-05 Chris Moller <cmoller@redhat.com>
13657 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): added a term
13658 to inhibit saving CARRY_REGS.
13660 * config/stormy16/stormy16.c (xs_hi_general_operand):
13661 added predicate to detect and error-out on out-of-range
13662 const_ints for movhi.
13663 * config/stormy16/stormy16.md (movhi): use
13664 xs_hi_general_operand.
13666 * config/stormy16/stormy16.c (xstormy16_expand_prologue):
13667 added a check for local vbl size overflow.
13668 * config/stormy16/stormy16.c (xs_hi_nonmemory_operand):
13669 added predicate to detect and error-out on out-of-range
13670 const_ints for addhi and subhi.
13671 * config/stormy16/stormy16.md (addhi3, addchi4, addchi5,
13672 subhi3, subchi4, subchi5): used xs_hi_nonmemory_operand.
13674 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
13675 add a term to accept PRE_MODIFY addresses.
13676 * config/stormy16/stormy16.c (xstormy16_expand_move):
13677 add code to expand PRE_MODIFY addresses to an add followed
13680 2003-03-06 Jason Merrill <jason@redhat.com>
13682 * tree-inline.c (inlinable_function_p): Revert earlier change
13683 pending investigation.
13685 2003-03-06 Kazu Hirata <kazu@cs.umass.edu>
13687 * config/h8300/h8300.md (a new peephole2): New.
13689 2003-03-06 Jan Hubicka <jh@suse.cz>
13691 * cgraph.c (cgraph_node): Do not confuse nested functions and methods.
13693 2003-03-06 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
13695 * dwarf2out.c (size_of_die): Compute size of external reference to
13698 2003-03-06 Hans-Peter Nilsson <hp@bitrange.com>
13700 * config/mmix/mmix.md ("*movcc_expanded"): New pattern.
13701 ("movcc", "movcc_uns", "movcc_fp", "movcc_fpeq", "movcc_fun"): New
13704 2003-03-05 Roger Sayle <roger@eyesopen.com>
13706 * expr.h (lang_expand_expr): Delete obsolete prototype.
13708 2003-03-05 Kazu Hirata <kazu@cs.umass.edu>
13710 * emit-rtl.c (gen_highpart_mode): Fix a comment typo.
13712 2003-03-05 Kazu Hirata <kazu@cs.umass.edu>
13714 * config/h8300/h8300.md (a peephole2): Generalize to
13715 accept a memory operand.
13717 2003-03-05 Olivier Hainque <hainque@act-europe.fr>
13719 * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Add '+'.
13720 * config/alpha/alpha.c (print_operand, case '+'): New.
13721 * config/alpha/alpha.md (call_osf_1_noreturn): Document and use.
13722 (call_value_osf_1_noreturn): Likewise.
13724 2003-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13726 * stmt.c (fixup_gotos): Change meaning of DONT_JUMP_IN.
13727 (expand_end_bindings): Likewise.
13729 2003-03-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13731 * pa.md (return_external_pic): Add !TARGET_PA_20 to constraint.
13732 (epilogue): Don't generate return_external_pic when emitting PA 2.0
13735 2003-03-05 Aldy Hernandez <aldyh@redhat.com>
13737 * doc/tm.texi: Document TARGET_DWARF_REGISTER_SPAN.
13739 * config/rs6000/rs6000.c (rs6000_dwarf_register_span): New.
13741 * hooks.c (hook_rtx_rtx_null): New.
13743 * hooks.h (hook_rtx_rtx_null): Protoize.
13745 * target-def.h (TARGET_DWARF_REGISTER_SPAN): New macro.
13746 (TARGET_INITIALIZER): Add TARGET_DWARF_REGISTER_SPAN.
13748 * target.h (struct gcc_target): Add dwarf_register_span.
13750 * dwarf2out.c (multiple_reg_loc_descriptor): New.
13751 (one_reg_loc_descriptor): New.
13752 (reg_loc_descriptor): Add support for values that span more than
13755 2003-03-05 Jan Hubicka <jh@suse.cz>
13757 * Makefile.in (calls.o, toplev.o alias.o): Depend on cgraph.h
13758 * alias.c: Include cgraph.h
13759 (mark_constant_function): Use cgraph_rtl_info.
13760 * calls.c: Include cgraph.h
13761 (flags_from_decl_or_type): Use cgraph_rtl_info to find pure and const
13763 (expand_call): Use cgraph_rtl_info to set preferred stack boundary.
13764 * cgraph.c (cgraph_rtl_info): New function.
13765 * cgraph.h (cgraph_rtl_info): Declare
13766 (cgraph_rtl_info): Likewise.
13767 * function.h (struct function): Add recursive_call_emit.
13768 * toplev.c: Include cgraph.h.
13769 (rest_of_compilation): Set preferred_incoming_stack_boundary.
13771 2003-03-05 Kazu Hirata <kazu@cs.umass.edu>
13773 * config/h8300/h8300.c (output_simode_bld): Clear the
13774 destination first if possible.
13775 * config/h8300/h8300.md (extzv_1_r_h8300hs): Add an
13777 (extzv_1_r_inv_h8300hs): Likewise.
13779 2003-03-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
13781 * basic-block.h (EDGE_IRREDUCIBLE_LOOP, EDGE_ALL_FLAGS): New.
13782 * cfg.c (dump_edge_info): Add EDGE_IRREDUCIBLE_LOOP flag dump.
13783 * cfgloop.c (flow_loop_free): Made global.
13784 (establish_preds): New static function.
13785 (flow_loop_tree_node_add): Handle subloops of added loop correctly.
13786 (get_loop_exit_edges): New.
13787 (verify_loop_structure): Verify EDGE_IRREDUCIBLE_LOOP flags.
13788 * cfgloop.h (flow_loop_free, get_loop_exit_edges, unloop): Declare.
13789 * cfgloopanal.c (mark_irreducible_loops): Mark edges in irreducible
13791 * cfgloopmanip.c (loop_delete_branch_edge): Allow to test for
13792 removability of an edge.
13793 (fix_irreducible_loops): New static function.
13794 (find_path, remove_path): Add ability to remove enclosing loops.
13796 (copy_bbs, duplicate_loop_to_header_edge): Use EDGE_IRREDUCIBLE_LOOP
13798 * cfgrtl.c (verify_flow_info): Handle EDGE_IRREDUCIBLE_LOOP flag.
13799 * loop-unroll.c (peel_loops_completely): Do not duplicate loop if
13801 (decide_peel_completely, peel_loops_completely): Allow complete peeling
13802 of non-duplicable once rolling loops.
13803 * loop-unswitch.c (unswitch_loop): Update EDGE_IRREDUCIBLE_LOOP flags.
13805 2003-03-05 J"orn Rennecke <joern.rennecke@superh.com>
13807 * sh.h (OVERRIDE_OPTIONS): For TARGET_SHMEDIA, the minimum value
13808 for align_jumps is 4.
13810 (SECONDARY_INPUT_RELOAD_CLASS): If reloading a PLUS into FPUL,
13813 2003-03-05 Stephane Carrez <stcarrez@nerim.fr>
13815 * config/m68hc11/m68hc11.h (PAD_VARARGS_DOWN): Define and return
13816 according to va_arg type.
13817 (EXPAND_BUILTIN_VA_ARG): Remove.
13818 * config/m68hc11/m68hc11.c (m68hc11_va_arg): Remove.
13819 * config/m68hc11/m68hc11-protos.h (m68hc11_va_arg): Remove.
13821 2003-03-05 David Edelsohn <edelsohn@gnu.org>
13823 * config/rs6000/rs6000.c (rs6000_variable_issue): Remove unnecessary
13826 2003-03-05 Michael Matz <matz@suse.de>
13828 * i386/i386.c (ix86_save_reg): Also test
13829 current_function_uses_const_pool.
13831 2003-03-05 Michael Matz <matz@suse.de>
13833 * unwind.h: Add the GPL exception.
13834 * Makefile.in (USER_H): Add unwind.h.
13836 2003-03-05 Eric Botcazou <ebotcazou@libertysurf.fr>
13839 * c-typeck.c (push_init_level): Add sanity check.
13841 2003-03-05 Jan Hubicka <jh@suse.cz>
13843 * toplev.c (rest_of_compilation): Deffer RTL compilation only when
13844 RTL inlining is done.
13846 * cgraphunit.c (cgraph_mark_local_functions): New local function.
13847 (cgraph_optimize): Mark local functions.
13848 * i386-protos.h (init_cumulative_args): Update prototype.
13849 * i386.c (init_cumulative_args): Use register passing convention for
13852 * cgraph.c (cgraph_global_info_ready): New global variable
13853 (cgraph_local_info, cgraph_global_info): New functions.
13854 * cgraph.h (struct cgraph_local_info, cgraph_global_info): New
13856 (cgraph_local_info, cgraph_global_info, cgraph_global_info_ready):
13858 * cgraphunit.c (cgraph_finalize_function): Set inline_many.
13859 (cgraph_mark_functions_to_output): Use inline_many.
13860 (cgraph_expand_function): Free DECL_SAVED_TREE uncondtionally.
13861 (cgraph_expand_functions): Expand inline functions last.
13862 (cgraph_optimize): Do not emit uneeded functions.
13864 2003-03-04 Steve Ellcey <sje@cup.hp.com>
13866 * expr.c (convert_modes): Check for legal hard register.
13868 2003-03-04 Tom Tromey <tromey@redhat.com>
13870 * doc/sourcebuild.texi (Front End Directory): Document tags.
13871 * configure: Rebuilt.
13872 * configure.in (target_list): Added tags.
13873 * Makefile.in (TAGS): Depend on lang.clean. Include subdirectory
13874 TAGS files by reference.
13875 * objc/Make-lang.in (objc.tags): New target.
13877 2003-03-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
13879 * gcov-io.h (gcov_save_position, gcov_reserve_length, gcov_resync,
13880 gcov_skip, gcov_skip_string, gcov_write_unsigned, gcov_write_counter,
13881 gcov_write_string, gcov_read_unsigned, gcov_read_counter,
13882 gcov_read_string, gcov_write_length): Modified to enable reading/
13883 writing of whole .da file just once.
13884 (da_file_open, da_file_close, da_file_eof, da_file_error,
13885 da_file_position, da_file_seek, da_file_write, da_file_read): New
13887 (actual_da_file, actual_da_file_position, actual_da_file_length,
13888 actual_da_file_buffer, actual_da_file_buffer_size): New static
13890 * libgcov.c (gcov_exit): Modified to read/write the whole .da file at
13894 2003-03-04 Andreas Schwab <schwab@suse.de>
13896 * config/m68k/m68k.c (m68k_output_function_prologue): Fix CFA
13897 offset without frame pointer.
13899 2003-03-04 Steve Ellcey <sje@cup.hp.com>
13901 * expr.c (expand_expr): Call promote_mode to set unsignedp.
13903 2003-03-04 Daniel Jacobowitz <drow@mvista.com>
13905 * configure.in: Don't always define TARGET_SYSTEM_ROOT.
13906 * configure: Regenerated.
13907 * gcc.c: Check whether TARGET_SYSTEM_ROOT is defined.
13909 2003-03-04 Andreas Jaeger <aj@suse.de>
13911 * configure.in: Check for <memcheck.h>.
13912 * configure: Regenerated.
13914 * config.in: Define HAVE_MEMCHECK_H.
13916 * ggc-common.c: Use <memcheck.h> if available instead of
13918 * ggc-page.c: Likewise.
13919 * cppfiles.c: Likewise.
13921 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
13923 * config/h8300/h8300.md (*extzv_8_8): Fix cc and lengths.
13925 2003-03-04 Eric Botcazou <ebotcazou@libertysurf.fr>
13928 * c-typeck.c (do_case): Attach the first case label to the SWITCH_BODY.
13929 (c_finish_case): Rechain the next statements to the SWITCH_STMT.
13931 2003-03-04 Jan Hubicka <jh@suse.cz>
13933 * doc/invoke.texi: Document that unit-at-a-time is enabled for -O3
13934 * toplev.c (parse_options_and_default_flags): Enable flag_unit_at_a_time
13937 2003-03-04 Nathanael Nerode <neroden@gcc.gnu.org>
13939 * configure.in: Delete three unused variables. Move a variable
13940 definition closer to its use. Simplify use_collect2 logic. Start to
13941 organize. Simplify tests for in-tree gas and ld.
13942 * configure: Regenerate.
13944 2003-03-04 Neil Booth <neil@daikokuya.co.uk>
13946 * Makefile.in: Update.
13947 * c-common.c (flag_no_line_commands, flag_no_output,
13948 flag_dump_macros, flag_dump_includes): New.
13949 * c-common.h (flag_no_line_commands, flag_no_output,
13950 flag_dump_macros, flag_dump_includes, preprocess_file): New.
13951 (init_c_lex): Update prototype.
13952 * c-lex.c (init_c_lex): Update prototype; move some code to
13954 * c-opts.c (preprocess_file): Subsume into c_common_init.
13955 (c_common_decode_option): Update flags.
13956 (c_common_init): Move code from preprocess_file and init_c_lex.
13957 (sanitize_cpp_opts): Update.
13958 * c-ppoutput.c: New, cppmain.c almost verbatim.
13959 * cpphash.h (struct printer): Remove.
13960 (struct cpp_reader): Remove print.
13961 * cpplib.h (dump_none, dump_only, dump_names, dump_definitions,
13962 cpp_preprocess_file): Remove.
13963 (struct cpp_options): Remove no_output, no_line_commands, dump_macros
13965 * cppmain.c: Remove.
13966 * doc/passes.texi: Update.
13968 2003-03-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13970 * function.c (STACK_ALIGNMENT_NEEDED): New macro. Default to 1.
13971 (assign_stack_local_1): Perform overall stack alignment only when
13972 STACK_ALIGNMENT_NEEDED is nonzero.
13973 * doc/tm.texi (STACK_ALIGNMENT_NEEDED): Document.
13975 * pa.c (compute_frame_size): Rename fsize to size. Account for
13976 alignment to a word boundary before general register save block. Only
13977 account for double-word alignment before floating point register save
13978 block if one or more are saved. Don't allocate space for %r3 when
13979 frame pointer is needed.
13980 (hppa_expand_prologue): Include alignment to word boundary in local
13982 * pa.h (STARTING_FRAME_OFFSET): Define to 8 on both 32 and 64-bit ports.
13983 (STACK_ALIGNMENT_NEEDED): Define.
13985 2003-03-04 Kevin Buettner <kevinb@redhat.com>
13987 * dwarf2out.c (rtl_for_decl_location): Don't return NULL_RTX for
13988 global register variables.
13990 2003-03-04 Alexandre Oliva <aoliva@redhat.com>
13992 * reload.c (reload_adjust_reg_for_mode): New function.
13993 (subst_reloads): Call it.
13994 (operands_match_p): Adjust registers using HARD_REGNO_NREGS.
13995 * reload.h (reload_adjust_reg_for_mode): Declare.
13996 * reload1.c (emit_input_reload_insns, emit_output_reload_insns):
13999 2003-03-03 James E Wilson <wilson@tuliptree.org>
14001 * optabs.c (add_equal_note): Delete SUBREG_REG use.
14004 2003-03-03 Kazu Hirata <kazu@cs.umass.edu>
14006 * config/h8300/h8300.md (*ixorsi3_ashift_16): New.
14007 (*ixorsi3_lshiftrt_16): New.
14008 (*iorsi3_ashift_16): Remove.
14010 2003-03-03 Kazu Hirata <kazu@cs.umass.edu>
14012 * config/h8300/h8300.md (*extzv_8_8): Use '?' to simplify the
14015 2003-03-03 Geoffrey Keating <geoffk@apple.com>
14017 * doc/install.texi (Specific): Update entry for powerpc-darwin.
14019 2003-03-03 Richard Henderson <rth@redhat.com>
14021 * config/ia64/ia64.h (HAVE_AS_LTOFFX_LDXMOV_RELOCS): Default to 0.
14023 2003-03-03 David Edelsohn <edelsohn@gnu.org>
14025 * config/rs6000/rs6000.c (rs6000_multipass_dfa_lookahead): Delete.
14026 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Delete.
14027 (rs6000_variable_issue): Do not return negative value.
14028 (rs6000_issue_rate): Uniformly set issue rate to 1 for first
14031 2003-03-03 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
14033 * dwarf2out.c (dwarf2out_finish): Swap order of break_out_includes and
14034 prune_unused_types calls.
14036 2003-03-03 Jason Merrill <jason@redhat.com>
14038 * tree-inline.c (find_builtin_longjmp_call): Save and restore
14039 lineno and input_filename.
14040 (find_alloca_call): Likewise.
14041 (inlinable_function_p): Run the langhook earlier.
14043 * calls.c (compute_argument_addresses): Give the new MEMs a
14044 minimum alignment of PARM_BOUNDARY.
14046 2003-03-03 J"orn Rennecke <joern.rennecke@superh.com>
14048 * config/sh/sh.h (EXTRA_SPECS): Add subtarget_asm_relax_spec and
14049 subtarget_asm_isa_spec.
14050 (SUBTARGET_ASM_RELAX_SPEC, SUBTARGET_ASM_ISA_SPEC): Define.
14051 (ASM_SPEC): Define as SH_ASM_SPEC.
14052 (SH_ASM_SPEC): New; take the role of ASM_SPEC, but safe from svr4.h.
14053 Use subtarget_asm_relax_spec and subtarget_asm_isa_spec.
14054 * config/sh/elf.h (ASM_SPEC): Use SH_ASM_SPEC.
14055 (SUBTARGET_ASM_ISA_SPEC): Undef / define.
14057 * sh.h (OVERRIDE_OPTIONS): Set default values for align_loops
14058 and align_jumps if not set.
14059 Force align_jumps to be at least 2.
14060 When relaxing, force align_functions to be at least the maximum of
14061 align_loops, align_jumps and 4.
14062 * sh.c (find_barrier, barrier_align): Honour align_jumps_log.
14063 (sh_loop_align): Honour align_loops_log.
14065 * sh.md (length attribute): Use prev_nonnote_insn instead of PREV_INSN
14066 to check for indirect_jump_scratch.
14067 (indirect_jump_scratch): Add second set.
14068 * sh.c (output_far_jump): Use prev_nonnote_insn instead of PREV_INSN
14069 when looking for indirect_jump_scratch.
14070 Extract scratch register taking new structure of indirect_jump_scratch
14072 (gen_block_redirect): Set INSN_SCOPE for indirect_jump_scratch.
14074 2003-03-03 Jan Hubicka <jh@suse.cz>
14076 * calls.c (rtx_for_function_call): Take the address as an argument
14077 (expand_call): Do not modify the expression.
14079 * toplev.c (rest_of_compilation): Avoid cfg_cleanup calls when not
14082 2003-03-03 Kazu Hirata <kazu@cs.umass.edu>
14084 * config/h8300/h8300.md (*ixorsi3_zext_hi): Restrict to
14085 TARGET_H8300H and TARGET_H8300S.
14087 2003-03-03 Kazu Hirata <kazu@cs.umass.edu>
14089 * config/h8300/h8300.md (a peephole2): New.
14091 2003-03-03 Kazu Hirata <kazu@cs.umass.edu>
14093 * config/h8300/h8300.md (*extzv_8_8): Use shorter code when
14094 operands[0] and operands[1] are different.
14096 2003-03-03 Kazu Hirata <kazu@cs.umass.edu>
14098 * reload1.c (reload_cse_move2add): Remove variable success.
14100 2003-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14102 * ggc-common.c (ggc_rlimit_bound): Cast RLIM_INFINITY to avoid
14105 2003-03-02 Richard Henderson <rth@redhat.com>
14107 * configure.in (HAVE_AS_LTOFFX_LDXMOV_RELOCS): New ia64 test.
14108 * config.in, configure: Rebuild.
14109 * config/ia64/ia64.c (ia64_ld_address_bypass_p): Accept lo_sum.
14110 * config/ia64/ia64.md (load_symptr): Use high/lo_sum for the
14111 paired ldtoffx and ldxmov annotations.
14112 (load_symptr_internal1): Remove.
14113 (load_symptr_high, load_symptr_low): New.
14115 2003-03-02 Neil Booth <neil@daikokuya.co.uk>
14117 * c-incpath.c (add_path): Fix sysp assignment.
14119 2003-03-02 Kurt Garloff <garloff@suse.de>
14121 * params.def: Introduce parameter max-inline-insns-rtl for
14122 a separate limit for the RTL inliner.
14123 * params.h: Likewise.
14124 * integrate.c (function_cannot_inline_p): Use it.
14125 * toplev.c (decode_f_option): Set multiple parameters
14126 controlling inlining with -finline-limit.
14127 * params.def: Fix orthographic and typographic errors.
14128 * doc/invoke.texi: Document parameters controlling inlining
14129 and the way -finline-limit sets multiple of them.
14131 * tree.h (struct tree_decl): Introduce inlined_function_flag,
14132 recording whether the function became eligible for inlining
14133 by a compiler flag rather than the declaration.
14134 Provide DID_INLINE_FUNC macro to access it.
14135 * c-decl.c (grokdeclarator): Set DID_INLINE_FUNC.
14136 * cp/decl.c (grokfndecl): Likewise.
14137 * toplev.c (rest_of_compilation): Likewise.
14138 * cp/optimize (maybe_clone_body): Copy DID_INLINE_FUNC.
14139 * print-tree.c (print_node): Report it.
14140 * params.def: Introduce new max-inline-insns-auto limit.
14141 * params.h: Likewise.
14142 * tree-inline.c (inlinable_function_p): Apply it to functions
14143 with DID_INLINE_FUNC set.
14144 * toplev.c (decode_f_option): Initialize it from -finline-limit
14146 * doc/invoke.texi: Document new parameter.
14148 2003-03-02 Geoffrey Keating <geoffk@apple.com>
14150 * fix-header.c (read_scan_file): Don't reference simplify_path.
14152 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
14154 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't enable
14155 min/max instructions by default as may result in reload errors.
14157 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
14159 * config/m68hc11/m68hc11.md ("mulqi3"): Allow address register to
14160 avoid reload problems; define split for it.
14162 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
14164 * config/m68hc11/m68hc11.c (m68hc11_shift_operator): New function.
14165 * config/m68hc11/m68hc11-protos.h (m68hc11_shift_operator): Declare.
14166 * config/m68hc11/m68hc11.h (PREDICATE_CODES): Register.
14167 * config/m68hc11/m68hc11.md ("rotrhi3", "rotlhi3"): New patterns for
14168 rotatert and rotate.
14169 ("rotrhi3_const", "rotlhi3_const"): Rename of old 'rotrhi3' insns.
14170 ("*rotrhi3", "*rotlhi3"): New insn pattern for non-const rotatert.
14171 ("*rotrhi3_addr"): New split for shift insns on address register.
14172 ("*lshrhi3", "*ashrhi3", "*ashlhi3_2"): Use new split.
14173 * config/m68hc11/larith.asm (___rotlhi3): New asm function.
14174 (___rotrhi3): Likewise.
14175 * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Build them.
14177 2003-03-02 Neil Booth <neil@daikokuya.co.uk>
14179 * toplev.c (aux_base_name): Moved from toplev.h.
14180 (filename): Constify.
14181 (lang_dependent_init): Don't duplicate name.
14182 (process_options): Set aux_base_name here, not...
14183 (do_compile): ...here. Change protoype.
14184 (toplev_main): Move some code from do_compile.
14185 * toplev.h: Remove aux_base_name.
14187 2003-03-02 Kazu Hirata <kazu@cs.umass.edu>
14189 * config/h8300/h8300-protos.h: Add a prototype for
14191 * config/h8300/h8300.c (print_operand): Handle 'c'.
14192 (iorxor_operator): New.
14193 * config/h8300/h8300.h (PREDICATE_CODES): Add iorxor_operator.
14194 * config/h8300/h8300.md (*iorhi3_zext): Remove.
14195 (*iorsi3_zexthi): Likewise.
14196 (*iorsi3_zextsi): Likewise.
14197 (*xorhi3_zextqi): Likewise.
14198 (*xorsi3_zexthi): Likewise.
14199 (*xorsi3_zextsi): Likewise.
14200 (*ixorhi3_zext): New.
14201 (*ixorsi3_zext_qi): Likewise.
14202 (*ixorsi3_zext_hi): Likewise.
14204 2003-03-02 Neil Booth <neil@daikokuya.co.uk>
14206 * c-incpath.c (remove_component_p, simplify_path): Move back to
14208 (remove_duplicates): Use cpp_simplify_path.
14209 * c-incpath.h (simplify_path): Remove.
14210 * c-lex.c: Don't include c-incpath.h.
14211 (init_c_lex): Remove simplify_path.
14212 * cppfiles.c (remove_component_p, cpp_simplify_path): Restore.
14213 (find_or_create_entry, validate_pch): Revert.
14215 2003-03-02 Ashif Harji <asharji@uwaterloo.ca>
14217 * gcc.c (default_compilers): Add -no-integrated-cpp flag to invoke
14218 an external cpp during compilation.
14219 (option_map): Likewise.
14220 * objc/lang-specs.h (default_compilers): Similarly.
14221 * doc/invoke.texi: Document -no-integrated-cpp flag.
14223 2003-03-02 Kazu Hirata <kazu@cs.umass.edu>
14225 * config/h8300/h8300.md (zero_extendqisi2): Change to an
14227 (*zero_extendqisi2_h8300): New.
14228 (*zero_extendqisi2_h8300hs): New.
14229 (two splitters): New.
14231 2003-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14233 * fp-bit.h (float_to_usi): Fix condition wrapping prototype.
14235 2003-03-01 Kazu Hirata <kazu@cs.umass.edu>
14237 * config/h8300/h8300.md (a peephole2): Remove dead code.
14239 2003-03-01 Roger Sayle <roger@eyesopen.com>
14242 * builtin-types.def (DEF_FUNCTION_TYPE_VAR_3): New macro.
14243 (BT_FN_INT_CONST_STRING_VALIST_ARG,
14244 BT_FN_INT_STRING_CONST_STRING_VALIST_ARG,
14245 BT_FN_INT_CONST_STRING_CONST_STRING_VALIST_ARG,
14246 BT_FN_INT_STRING_SIZE_CONST_STRING_VALIST_ARG,
14247 BT_FN_INT_STRING_CONST_STRING_VAR,
14248 BT_FN_INT_CONST_STRING_CONST_STRING_VAR,
14249 BT_FN_INT_STRING_SIZE_CONST_STRING_VAR): New built-in types.
14250 * builtin-attrs.def (ATTR_NONNULL_1, ATTR_NONNULL_2,
14251 ATTR_NONNULL_3): Also include the nothrow attribute.
14252 (sprintf, scanf, sscanf, vprintf, vsprintf, snprintf,
14253 vsnprintf, vscanf, vsscanf): Don't define attributes here.
14254 * builtins.def (putchar, puts): Make full C89 built-ins.
14255 (snprintf, sprintf, scanf, sscanf, vprintf, vscanf,
14256 vsscanf, vsnprintf, vsprintf): New built-ins.
14257 * c-common.c (c_common_nodes_and_builtins): Handle new macro
14258 DEF_FUNCTION_TYPE_VAR_3.
14260 * doc/extend.texi: Document these new built-in functions.
14262 2003-03-01 Kazu Hirata <kazu@cs.umass.edu>
14264 * config/h8300/h8300.md (a peephole2): New.
14266 2003-03-01 Richard Earnshaw <rearnsha@arm.com>
14268 * predict.c (estimate_bb_frequencies): Correctly set
14269 real_values_initialized after initialization.
14271 2003-03-01 Neil Booth <neil@daikokuya.co.uk>
14273 * Makefile.in (C_AND_OBJC_OBJS, c-incpath.o, c-lex.o, LIBCPP_OBJS,
14274 cppinit.o, cppdefault.o, fix-header): Update.
14275 * c-incpath.c: New file.
14276 * c-incpath.h: New file.
14277 * c-lex.c: Include c-incpath.h.
14278 (init_c_lex): Register path simplifier.
14279 * c-opts.c: Include cppdefault.h and c-incpath.h.
14280 (TARGET_SYSTEM_ROOT, verbose, iprefix, sysroot, std_inc,
14281 std_cxx_inc, quote_chain_split, add_prefixed_path): New.
14282 (COMMAND_LINE_OPTIONS): Add more options from cpplib.
14283 (missing_arg, c_common_decode_option): Handle them.
14284 (c_common_post_options): Register include chains.
14285 (print_help): Update.
14286 * cppdefault.h (struct default include): Update.
14287 Move some macros to ...
14288 * cppdefault.c: ... here.
14289 (cpp_include_defaults): Add extra field add_sysroot.
14290 * cppfiles.c (include_file, search_from, find_or_create_entry,
14291 cpp_included, find_include_file, remap_filename): Update for
14292 renaming of search_path to cpp_path, and of the chain headers.
14293 (remove_component_p, _cpp_simplify_pathname): Move to c-incpath.c.
14294 * cpphash.h (struct search_path): Move to cpplib.h.
14295 (struct cpp_buffer, struct cpp_reader): Update.
14296 (_cpp_simplify_pathname): Remove.
14297 * cppinit.c: Don't include prefix.h and cppdefault.h.
14298 (INO_T_EQ, INO_T_COPY, path_include, append_include_chain,
14299 remove_dup_dir, remove_dup_nonsys_dirs, remove_dup_dirs,
14300 init_standard_includes, BRACKET, SYSTEM, AFTER, no_dir,
14301 no_pth, cpp_handle_options): Remove.
14302 (struct pending_option): Remove chain members.
14303 (cpp_destroy, cpp_read_main_file, COMMAND_LINE_OPTIONS,
14304 cpp_handle_option): Update.
14305 * cpplib.h (struct cpp_path, cpp_set_include_chains): New.
14306 (struct cpp_options): Remove quote_include, bracket_include,
14307 include_prefix, include_prefix_len, verbose, ignore_srcdir,
14308 no_standard_includes, no_standard_cplusplus_includes.
14309 (struct cpp_callbacks): Add simplify_path.
14310 (cpp_handle_options): Remove.
14311 * fix-header.c: Include c-incpath.h.
14312 (read_scan_file): Update to use c-incpath functionality.
14313 * doc/passes.texi: Update.
14315 2003-03-01 Kazu Hirata <kazu@cs.umass.edu>
14317 * config/h8300/h8300.c (bit_operand): Accept MEM only if it
14318 satisfies EXTRA_CONSTRAINT 'U'.
14320 2003-03-01 Kazu Hirata <kazu@cs.umass.edu>
14322 * config/h8300/h8300.md (*tst_extzv_bitqi_1_n): Take a scratch
14324 (*tst_extzv_memqi_1_n): Change to a splitter.
14325 (a peephole2): Update.
14327 2003-03-01 Richard Earnshaw <rearnsha@arm.com>
14329 * predict.c (estimate_bb_frequencies): Initialize the sreal
14330 constants once per compilation.
14332 2003-02-28 Richard Henderson <rth@redhat.com>
14334 * toplev.c (flag_eliminate_unused_debug_types): Enable by default.
14336 2003-02-28 scott snyder <snyder@fnal.gov>
14338 * flags.h: Add flag_eliminate_unused_debug_types.
14339 * toplev.c: Add flag_eliminate_unused_debug_types.
14340 (f_options): Add -feliminate-unused-debug-types.
14341 * dwarf2out.c (struct file_table): Add emitted member.
14342 (splice_child_die): Fix the parent pointer for the child being
14344 (lookup_filename): Maintain file_table.emitted array. Don't
14345 output .file directive here.
14346 (maybe_emit_file): (new)
14347 (init_file_table): Set up file_table.emitted.
14348 (dwarf2out_source_line): Use maybe_emit_file.
14349 (dwarf2out_start_source_file): Use maybe_emit_file.
14350 (dwarf2out_init): Use maybe_emit_file.
14351 (prune_unused_types_walk_attribs): (new)
14352 (prune_unused_types_mark): (new)
14353 (prune_unused_types_walk): (new)
14354 (prune_unused_types_prune): (new)
14355 (prune_unused_types): (new)
14356 (dwarf2out_finish): Call prune_unused_types if
14357 flag_eliminate_unused_debug_types is set.
14358 * doc/invoke.texi (Option Summary): Add
14359 -feliminate-unused-debug-types.
14360 (Debugging Options): Likewise.
14362 2003-02-28 Geoffrey Keating <geoffk@apple.com>
14364 * doc/invoke.texi: Change .pch to .gch.
14365 * cppfiles.c (open_file_pch): Likewise.
14366 * gcc.c (default_compilers): Likewise.
14368 2003-02-28 Aldy Hernandez <aldyh@redhat.com>
14370 * floatlib.c: Remove.
14372 2003-02-28 Jason Merrill <jason@redhat.com>
14374 * stor-layout.c (variable_size): Leave a "minus 1" outside the
14377 2003-02-28 David Edelsohn <edelsohn@gnu.org>
14379 * config/rs6000/power4.md: Add compare bypass.
14381 2003-02-28 Jason Thorpe <thorpej@wasabisystems.com>
14383 * config/netbsd.h: Update copyright years.
14384 (NETBSD_CPP_SPEC): Define _REENTRANT and _PTHREADS if
14385 -pthread is specified on the command line.
14387 2003-02-28 Dale Johannesen <dalej@apple.com>
14389 * loop.c (struct movable): Add insert_temp, shrink savemode.
14390 (scan_loop): Accept invariants that require copying; mark as
14392 (combine_movables): Don't combine insert_temp movables.
14393 (move_movables): Insert copies for insert_temp movables.
14394 Don't record the info based on regno for insert_temp's.
14396 2003-02-28 Joel Sherrill <joel@OARcorp.com>
14399 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Ensure the
14400 this constant defaults to 1.
14402 2003-02-28 Bob Wilson <bob.wilson@acm.org>
14404 * config.gcc (xtensa-*-linux*): Add t-slibgcc-elf-ver to tmake_file.
14406 2003-02-28 Richard Earnshaw <rearnsha@arm.com>
14408 * arm.md (mulhisi3, mulhisi3addsi, mulhidi3adddi): Enable for any
14409 ARMv5e processor, not just for XScale. Instructions are predicable.
14410 (mulhisi3tb, mulhisi3bt, mulhisi3tt): New patterns for ARMv5e.
14412 2003-02-28 Nick Clifton <nickc@redhat.com>
14414 * config/arm/arm.c (note_invalid_constants): Change parameter type
14417 2003-02-28 Kazu Hirata <kazu@cs.umass.edu>
14419 * config/h8300/h8300.md (*tst_extzv_bitqi_1_n): Accept the
14421 (*tst_extzv_memqi_1_n): Likewise.
14422 (a peephole2): New.
14424 2003-02-28 Richard Sandiford <rsandifo@redhat.com>
14426 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Wrap in
14429 2003-02-28 Jan Hubicka <jh@suse.cz>
14431 * combine.c (gen_lowpart_for_combine): Update handling of
14433 * flow.c (life_analysis, mark_used_regs): Likewise.
14434 * regclass.c (subregs_of_mode): Turn into single bitmap.
14435 (cannot_change-mode_set_regs, invalid_mode_change_p): Update
14436 dealing with subregs_of_mode
14437 * regs.h (subregs_of_mode): Update prototype.
14439 2003-02-28 Josef Zlomek <zlomekj@suse.cz>
14441 * emit-rtl.c (set_reg_attrs_for_parm): New function.
14442 * rtl.h (set_reg_attrs_for_parm): New exported function.
14443 * function.c (assign_parms): Use set_reg_attrs_for_parm instead of
14444 set_reg_attrs_from_mem.
14446 2003-02-27 Roger Sayle <roger@eyesopen.com>
14447 Zack Weinberg <zack@codesourcery.com>
14449 * gcc.c (do_spec_1): Treat %U like %u for unique associations.
14451 2003-02-27 Kazu Hirata <kazu@cs.umass.edu>
14453 * reload1.c (sext_for_mode): Remove.
14454 (reload_cse_move2add): Use trunc_int_for_mode instead of
14456 (move2add_note_store): Likewise.
14457 Reset register information if we see a set in non-integer
14460 2003-02-27 David Edelsohn <edelsohn@gnu.org>
14462 * config/rs6000/aix43.h (ASM_SPEC): Only emit -mppc64 if no -mcpu
14464 (ASM_CPU_SPEC): Use -m620 for Power3, Power4, 620, 630.
14465 * config/rs6000/aix51.h: Same.
14466 * config/rs6000/aix52.h: Same.
14467 * config/rs6000/power4.md: Additional VMX bypasses.
14469 2003-02-27 Geert Bosch <bosch@gnat.com>
14471 * toplev.c (print_version): Add indentation for GGC heuristics and
14472 output after printing version information.
14474 2003-02-27 James E Wilson <wilson@tuliptree.org>
14476 * combine.c (simplify_comparison): Require integral mode when
14477 permuting SUBREG with AND.
14479 2003-02-27 Steve Ellcey <sje@cup.hp.com>
14481 * config/ia64/hpux.h (STARTFILE_PREFIX_SPEC): Remove.
14483 2003-02-27 Nick Clifton <nickc@redhat.com>
14485 * config/arm/arm.md (extendsfdf2): Add pattern accidentally
14486 deleted when cirrus instructions were added.
14488 2003-02-27 Jason Thorpe <thorpej@wasabisystems.com>
14490 * config.gcc (*-*-netbsd[2-9]*, *-*-netbsdelf[2-9]*): Enable
14491 POSIX thread support by default.
14493 2003-02-27 Roger Sayle <roger@eyesopen.com>
14495 * config/i386/cygwin.h: Don't include any other files directly.
14496 * config/i386/mingw32.h: Don't include cygwin.h directly.
14497 * config.gcc (cygwin, mingw32, uwin): Instead make these files
14498 explicit in the tm_files variable.
14500 2003-02-27 Alan Modra <amodra@bigpond.net.au>
14502 * config/rs6000/rs6000.md: Add TI constant splitter.
14504 2003-02-26 Alexandre Oliva <aoliva@redhat.com>
14506 * builtins.c (purge_builtin_constant_p): Handle subreg of
14507 constant_p_rtx too.
14509 * function.c (assign_stack_local_1): Truncate constant added to
14510 frame_pointer_rtx or virtual_stack_vars_rtx for Pmode.
14512 2003-02-26 David Edelsohn <edelsohn@gnu.org>
14514 * config.gcc: Add power4 to PowerPC with_cpu list.
14516 2003-02-26 Jan Hubicka <jh@suse.cz>
14518 * objc-act.c: (mark_referenced_methods): Fix compilation problem.
14520 2003-02-26 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
14522 * gcov-dump.c (print_prefix): Fix signedness warning.
14523 * gcov-io.h (struct counter_section, struct counter_section_data): New.
14524 (struct function_info): n_arc_counts field removed, n_counter_sections,
14525 counter_sections fields added.
14526 (struct gcov_info): arc_counts, n_arc_counts fields removed,
14527 n_counter_sections, counter_sections fields added.
14528 * libgcov.c (gcov_exit, __gcov_flush): Add support for multiple
14530 * profile.h (MAX_COUNTER_SECTIONS): New.
14531 (struct section_info): New.
14532 (struct profile_info): count_instrumented_edges,
14533 count_edges_instrumented_now fields removed, n_sections, section_info
14535 (find_counters_section): Declare.
14536 * profile.c (struct function_list): count_edges field removed,
14537 n_counter_sections, counter_sections fields added.
14538 (set_purpose, label_for_tag, build_counter_section_fields,
14539 build_counter_section_value, build_counter_section_data_fields,
14540 build_counter_section_data_value, build_function_info_fields,
14541 build_function_info_value, build_gcov_info_fields,
14542 build_gcov_info_value): New static functions.
14543 (find_counters_section): New function.
14544 (instrument_edges, get_exec_counts, compute_branch_probabilities,
14545 branch_prob, create_profiler): Modified to support multiple profile
14548 2003-02-26 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14550 * pa.c (compute_frame_size): Don't assume PREFERRED_STACK_BOUNDARY
14551 is 8 * STACK_BOUNDARY.
14552 * pa.h (PREFERRED_STACK_BOUNDARY): Change to 128 on 64-bit port.
14554 2003-02-26 Michael Matz <matz@suse.de>
14556 * ra-colorize.c (merge_moves): Fix list handling.
14558 2003-02-26 Nick Clifton <nickc@redhat.com>
14560 * config/arm/arm.c (is_load_address): Rename to...
14561 (arm_memory_load_p) ... this and make it check for SUBREGs and
14562 constant loads that will be converted into loads from the
14564 (is_cirrus_insn): Rename to ...
14565 (arm_cirrus_insn_p): ... this, for consistency. Replace test
14566 of CIRRUS_NO with CIRRUS_NOT.
14567 (cirrus_reorg): Use renamed functions.
14568 (note_invalid_constants): Change from a void function to bool.
14569 Add an extra parameter, saying whether the fixups should be
14570 pushed. Return true if fixups are needed.
14571 (arm_reorg): Use renamed functions. Use INSN_P. Replace test
14572 of CIRRUS_NO with CIRRUS_NOT.
14573 * config/arm/arm.h (FLOAT_WORDS_BIG_ENDIAN): Mention that
14574 other floating point co-processors can also affect this.
14575 * config/arm/arm.md ("type" attribute): Add mav_farith and
14576 mav_dmult. Replace references to "cirrus_type" attribute with
14578 * config/arm/cirrus.md ("cirrus_fpu" attribute): Delete.
14579 ("cirrus_type" attribute): Delete - use "type" instead.
14580 ("cirrus" attribute): Replace 'no' with 'not' and 'yes' with
14583 2003-02-25 Jan Hubicka <jh@suse.cz>
14585 * objc-act.c: Include cgraph.h
14586 (mark_referenced_methods): New function.
14587 (objc_init): Call it.
14588 * objc-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Set.
14590 * c-decl.c (finish_function): Honor can_defer_p even in unit-at-a-time
14593 * optabs.c (expand_fix): Do not widen the input operand.
14595 * expr.c (emit_group_store): Fix crash when converting single
14596 register into complex register.
14598 * Makefile.in (jump.o, regclass.o, alias.o): Add dependency on timevar.h
14599 * alias.c: Include timevar.h
14600 (init_alias_analysis): Set timevar
14601 * jump.c: Include timevar.h
14602 (rebuild_jump_labels): Set timevar
14603 * regcalss.c: Include timevar.h
14604 (reg_scan): Set timevar
14605 * timevar.def (TV_ALIAS_ANALYSIS, TV_REG_SCAN, TV_REBUILD_JUMP): New
14607 2003-02-26 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
14609 * cse.c (count_reg_usage): Fix handling of REG_EQUAL notes.
14611 * Makefile.in (loop-unroll.o): New.
14612 * cfgloop.h (UAP_PEEL, UAP_UNROLL, UAP_UNROLL_ALL): New.
14613 (unroll_and_peel_loops): Declare.
14614 * alias.c (init_alias_analysis): Flag_unroll_loops renamed to
14615 flag_old_unroll_loops.
14616 * loop.c (loop_invariant_p): Ditto.
14617 * unroll.c (unroll_loop): Flag_unroll_all_loops renamed to
14618 flag_old_unroll_all_loops.
14619 * flags.h (flag_unroll_loops): Renamed to flag_old_unroll_loops.
14620 (flag_unroll_all_loops): Renamed to flag_old_unroll_all_loops.
14621 * params.def (PARAM_MAX_UNROLLED_INSNS): Default value changed.
14622 (PARAM_MAX_AVERAGE_UNROLLED_INSNS, PARAM_MAX_UNROLL_TIMES,
14623 PARAM_MAX_PEELED_INSNS, PARAM_MAX_PEEL_TIMES,
14624 PARAM_MAX_COMPLETELY_PEELED_INSNS, PARAM_MAX_COMPLETELY_PEEL_TIMES,
14625 PARAM_MAX_ONCE_PEELED_INSNS): New.
14626 * toplev.h (flag_old_unroll_loops, flag_old_unroll_all_loops): New.
14627 (flag_unroll_loops, flag_unroll_all_loops): Used for new unroller
14628 instead of old one.
14629 (flag_peel_loops): New.
14630 (lang_independent_options): The new flags added.
14631 (rest_of_compilation): Call new unroller.
14632 (process_options): Setup flags for coexistence of old and new unroller.
14633 * doc/invoke.texi: Document new options.
14634 * doc/passes.texi: Document new unroller pass.
14636 2003-02-26 David Billinghurst <David.Billinghurst@riotinto.com>
14638 * fixinc/fixincl.x: Regenerate
14640 2003-02-26 Josef Zlomek <zlomekj@suse.cz>
14642 * function.c (assign_parms): Set reg_attrs for parameters passed in
14645 2003-02-26 Alan Modra <amodra@bigpond.net.au>
14648 * tlink.c (scan_linker_output): Drop leading '.' from symbol names.
14650 2003-02-25 David Edelsohn <edelsohn@gnu.org>
14652 * config/rs6000/xcoff.h (ASM_FILE_START): Do not emit machine
14655 2003-02-25 Roger Sayle <roger@eyesopen.com>
14657 * combine.c (combine_simplify_rtx, simplfy_comparison): Use CC0_P.
14658 * cse.c (invalidate_skipped_set): Likewise.
14659 * integrate.c (subst_constants): Likewise.
14660 * jump.c (reversed_comparison_code_parts): Likewise.
14661 * loop.c (canonicalize_condition): Likewise.
14662 * simplify-rtx.c (simplify_relational_operation): Likewise.
14664 2003-02-25 Roger Sayle <roger@eyesopen.com>
14666 * builtins.def (DEF_LIB_ALWAYS_BUILTIN, DEF_UNUSED_BUILTIN): Delete.
14667 (abs, labs, fabs, fabsf, fabsl, abort, exit, _exit, _Exit): Use
14668 the appropriate macro to define built-in function.
14669 (fmod,fmodf,fmodl): New built-in functions.
14671 * doc/extend.texi (fmod,fmodf,fmodl): Document new built-ins.
14673 2003-02-25 Richard Henderson <rth@redhat.com>
14675 * config/i386/i386.c (function_arg): Pass variable sized
14676 structures correctly on the stack.
14678 2003-02-25 Kazu Hirata <kazu@cs.umass.edu>
14680 * reload1.c (reload_cse_move2add): Use STRICT_LOW_PART if PLUS
14681 does not reduce the cost of SET.
14683 2003-02-25 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
14686 * config/rs6000/rs6000.c (first_reg_to_save): Handle
14687 PIC_OFFSET_TABLE_REGNUM for -fPIC too.
14688 (rs6000_emit_prologue): Likewise.
14689 (rs6000_emit_epilogue): Likewise.
14690 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Make
14691 PIC_OFFSET_TABLE_REGNUM a fixed register for -fPIC.
14693 2003-02-25 Richard Henderson <rth@redhat.com>
14695 * real.c (real_to_integer2): Force overflow result only for
14698 2003-02-25 Kazu Hirata <kazu@cs.umass.edu>
14700 * gcse.c (cprop_jump): Revert the 2003-02-23 change.
14702 2003-02-25 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
14703 Richard Henderson <rth@redhat.com>
14705 * sched-ebb.c (add_deps_for_risky_insns): Add the dependence when
14706 there is no similar load.
14708 2003-02-25 Vladimir Makarov <vmakarov@redhat.com>
14709 Richard Henderson <rth@redhat.com>
14711 * sched-int.h (INSN_TRAP_CLASS, WORST_CLASS): Move them from
14713 (add_forward_dependence): New function prototype.
14715 * sched-rgn.c (INSN_TRAP_CLASS, WORST_CLASS): Move them to
14717 (CONST_BASED_ADDRESS_P, may_trap_exp, haifa_classify_insn): Move
14718 them to haifa-sched.c.
14720 * haifa-sched.c (CONST_BASED_ADDRESS_P, may_trap_exp,
14721 haifa_classify_insn): Move them from sched-rgn.c.
14723 * sched-deps.c (add_dependence): Return flag of creating a new
14725 (add_forward_dependence): New function.
14726 (compute_forward_dependences): Use the function.
14728 * sched-ebb.c (earliest_block_with_similiar_load): New function.
14729 (add_deps_for_risky_insns): New function.
14730 (schedule_ebb): Call the function.
14732 2003-02-20 Aldy Hernandez <aldyh@redhat.com>
14734 * doc/tm.texi: Document Rename TARGET_VECTOR_TYPES_COMPATIBLE to
14735 TARGET_VECTOR_OPAQUE_P. Document accordingly.
14737 * testsuite/gcc.dg/20030218-1.c: Check that initialization of
14740 * c-typeck.c (comptypes): Change call to vector_types_compatible
14741 to vector_opaque_p.
14742 (convert_for_assignment): Call vector_opaque_p instead of
14743 vector_types_compatible.
14744 (really_start_incremental_init): Disallow initialization of opaque
14747 * target-def.h: Remove TARGET_VECTOR_TYPES_COMPATIBLE.
14748 Define TARGET_VECTOR_OPAQUE_P.
14749 (TARGET_INITIALIZER): Same.
14751 * target.h (struct gcc_target): Remove vector_types_compatible.
14752 Add vector_opaque_p.
14754 * config/rs6000/rs6000.c (rs6000_spe_vector_types_compatible):
14756 (is_ev64_opaque_type): Check for TARGET_SPE and make sure type is
14757 a vector type. Change return type to bool.
14758 (TARGET_VECTOR_TYPES_COMPATIBLE): Remove.
14759 (TARGET_VECTOR_OPAQUE_P): Define.
14761 * cp/parser.c (cp_parser_init_declarator): Call vector_opaque_p
14764 (cp_parser_init_declarator): Fix typo in function comments.
14766 2003-02-25 Jan Hubicka <jh@suse.cz>
14768 * Makefile.in (lcm.o): Add dependency on function.h
14769 * lcm.c (function.h): Include.
14770 * i386.c (machine_function, ix86_stack_locals,
14771 * ix86_save_varrargs_registers) : Move to
14773 * i386.h (machine_function, ix86_stack_locals,
14774 ix86_save_varrargs_registers): ... here; add optimize_mode_switching
14775 (ix86_optimize_mode_switching): New.
14776 * i386.md (fix patterns): Set ix86_optimize_mode_switching
14778 2003-02-25 Nick Clifton <nickc@redhat.com>
14780 * config/d30v/d30v.c (d30v_init_cumulative_args): Fix typo. Name
14781 of fourth arg is 'fndecl' not 'indirect'. Update comment
14782 describing the function's parameters.
14784 2003-02-24 Jan Hubicka <jh@suse.cz>
14786 * combine.c (simplify_shift_const): Fix previous patch.
14788 2003-02-24 Jeff Law <law@redhat.com>
14790 * i386.md (testdi_1_rex64): Discourage reload from using the %eax
14792 (testsi_1, testhi_1, testqi_1): Likewise.
14794 2003-02-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14796 * config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Rename
14797 __EXTERN_PREFIX to __PRAGMA_EXTERN_PREFIX.
14798 * doc/extend.texi (Tru64 Pragmas): Reflect this.
14800 * fixinc/inclhack.def (alpha___extern_prefix): Indicate #pragma
14801 extern_prefix support for Tru64 UNIX V5 <sys/stat.h>.
14802 * fixinc/fixincl.x: Regenerate.
14803 * fixinc/tests/base/sys/stat.h [ALPHA___EXTERN_PREFIX_CHECK]: New
14805 Fixes PR c/5059, c/6126, other/9671.
14807 2003-02-24 Roger Sayle <roger@eyesopen.com>
14809 * gcc.c (do_spec_1) ['{']: Handle pending argument upon return
14810 from handle_braces in "%{...}".
14812 2003-02-24 Kaz Kojima <kkojima@gcc.gnu.org>
14814 * config/sh/sh.c (TARGET_HAVE_TLS): Conditionally define.
14815 (prepare_move_operands): Handle TLS operands.
14816 (tls_symbolic_operand): New.
14817 (nonpic_symbol_mentioned_p): Handle TLS UNSPECs.
14818 (legitimize_pic_address): Do nothing for the TLS symbol.
14819 (sh_encode_section_info): Handle TLS case.
14820 (sh_strip_name_encoding): Drop TLS encoding.
14821 * config/sh/sh-protos.h (tls_symbolic_operand): Add prototype.
14822 * config/sh/sh.h (SH_TLS_ENCODING): Define.
14823 (TLS_SYMNAME_P, STRIP_TLS_ENCODING): Likewise.
14824 (ASM_OUTPUT_LABELREF): Drop TLS encoding.
14825 (OUTPUT_ADDR_CONST_EXTRA): Handle TLS UNSPECs.
14826 * config/sh/sh.md: Define TLS UNSPEC constants.
14827 (type): Add tls_load.
14828 ("tls_global_dynamic", "tls_local_dynamic"): New insns.
14829 ("sym2DTPOFF", "symDTPOFF2reg", "sym2GOTTPOFF"): New expanders.
14830 ("tls_initial_exec"): New insn.
14831 ("sym2TPOFF", "symTPOFF2reg"): New expanders.
14832 ("load_gbr"): New insn.
14834 * configure.in (HAVE_AS_TLS): Add sh-*-* and sh[34]*-*-* cases.
14835 * configure: Regenerate.
14837 2003-02-24 Alan Modra <amodra@bigpond.net.au>
14840 * calls.c (store_one_arg): Revert 1999-02-16 change. Revert
14841 2000-12-17 change. Pass EXPAND_STACK_PARM to expand_expr.
14842 * expr.h (enum expand_modifier): Define EXPAND_STACK_PARM.
14843 (enum block_op_methods): Reorder for better store_expr optimization.
14844 * expr.c (store_expr): Test bit 1 of "want_value" for call param
14845 stores, test bit 0 for original want_value meaning. Pass
14846 BLOCK_OP_CALL_PARM to emit_block_move when bit 1 set. Adjust
14847 recursive calls, and calls to expand_param.
14848 (expand_expr): Handle EXPAND_STACK_PARM modifier. When cse
14849 expected, set target to 0 rather than to subtarget. Formatting.
14851 2003-02-23 Kazu Hirata <kazu@cs.umass.edu>
14853 * gcse.c (cprop_jump): Use the REG_EQUAL note if available.
14855 2003-02-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14857 * doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Document
14858 new default behavior.
14859 * ggc-common.c: Include sys/resource.h.
14860 (ggc_rlimit_bound): New function.
14861 (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Update
14862 defaults to account for rlimits.
14864 2003-02-22 Richard Henderson <rth@redhat.com>
14866 * i386.c, i386.h (TUNEMASK): Rename from CPUMASK.
14868 2003-02-22 Kelley Cook <kelley@dwhoops.info>
14870 * i386.h, i386.c, i386.md (ix86_tune): Rename from ix86_cpu.
14871 (ix86_tune_string): Rename from ix86_cpu_string.
14873 2003-02-22 Kelley Cook <kelleycook@comcast.net>
14875 * config/i386/i386.c: Replace "mcpu" with "mtune".
14876 * config/i386/i386.h (TARGET_OPTIONS): Likewise.
14877 (CC1_CPU_SPEC): Likewise. New warning for "-mcpu".
14878 * doc/invoke.texi (i386 and x86-64 Options): Replace "mcpu"
14879 with "mtune". Note that "mcpu" is a deprecated synonym for "mtune".
14881 2003-02-23 Andreas Schwab <schwab@suse.de>
14883 * config.gcc: Delete references to m68k/t-linux and
14885 * config/m68k/t-linux, config/m68k/t-linux-aout: Removed.
14887 2003-02-22 Jan Hubicka <jh@suse.cz>
14889 * toplev.c (rest_of_compilation): Apply fotgotten hunk
14890 of track scheduling patch.
14892 2003-02-22 Jan Hubicka <jh@suse.cz>
14894 * config/linux.h (TARGET_HAS_F_SETLKW): Define.
14895 * config/alpha/linux.h (TARGET_HAS_F_SETLKW): Likewise
14897 2003-02-22 Jan Hubicka <jh@suse.cz>
14899 * c-decl.c (c_expand_body_1): Fix.
14901 2003-02-22 Jan Hubicka <jh@suse.cz>
14903 * expmed.c (expand_divmod): Undo sign extensions for unsigned operands
14905 * cfgcleanup.c (try_forward_edges): Don't check loop structures
14906 when not optimizing.
14907 (cleanup_cfg): Do not iterate trought delete_trivially_dead_insns
14908 when not expensive.
14909 * toplev.c (rest_of_compilation): Duplicate loop headers only when
14910 optimizing; Delete trivially dead insns early; fix optimize check.
14912 * Makefile.in (c-decl.o, c-objc-common.o, cgraph.o, tree-inline.o): Add
14913 dependency on cgraph.h
14914 * c-decl.c: Include cgraph.h
14915 (finish_function): Update call of tree_inlinable_function_p.
14916 * c-objc-common.c: Include cgraph.h
14917 * cgraph.h: New file.
14918 * cgraphunit.c: New file.
14919 * cgraph.c (cgraph_node, cgraph_edge): Move into cgraph.h
14920 (cgraph_nodes, cgraph_n_nodes): Globalize.
14921 (cgraph_finalize_function, cgraph_finalize_compilation_unit
14922 cgraph_create_edges, cgraph_optimize, cgraph_mark_needed_node):
14923 Move into cgraphunit.c
14924 * tree-inline.c: Include cgraph.h
14925 * tree-inline.c: Include cgraph.h
14927 2003-02-22 Josef Zlomek <zlomekj@suse.cz>
14929 * config/i386/i386.md: Use gen_lowpart instead of gen_rtx_REG
14930 for copying a register.
14932 2003-02-22 Steven Bosscher <s.bosscher@student.tudelft.nl>
14935 * toplev.c (process_options): If flag_detailed_statistics is set,
14936 then set time_report as well.
14939 * jump.c (never_reached_warning): Don't fall through BARRRIER
14940 insns. Update comments to reflect what the function really does.
14942 2003-02-21 Roger Sayle <roger@eyesopen.com>
14944 * fold-const.c (omit_one_operand): No longer static.
14945 * tree.h (omit_one_operand): Prototype here.
14946 (div_and_round_double): Keep fold-const.c prototypes together.
14947 * builtins.c (builtin_mathfn_code): Handle binary built-in
14948 funtions, such as "pow" and "atan2".
14949 (fold_builtin): Optimize both pow(x,0.0) and pow(1.0,y) to 1.0.
14950 Simplify optimizations using "type" the builtin's return type.
14952 2003-02-22 Hans-Peter Nilsson <hp@axis.com>
14954 * config/cris/cris.c (cris_rtx_costs): Blockify dangling else.
14955 Fix functionalization typo.
14957 * regmove.c (optimize_reg_copy_1): Do not replace a hard register
14960 2003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14962 * Makefile.in (ggc-common.o): Depend on $(PARAMS_H)
14963 * doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Update
14965 * ggc-common.c: Include params.h
14966 (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
14967 init_ggc_heuristics): New functions.
14968 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
14969 init_ggc_heuristics): Prototype.
14970 * toplev.c (print_version): Output GGC heuristics.
14971 (parse_options_and_default_flags): Call init_ggc_heuristics.
14973 2003-02-22 Jan Hubicka <jh@suse.cz>
14975 * i386.c (def_builtin): Special case 64bit builtins.
14976 (MASK_SSE164, MASK_SSE264): New constants.
14977 (builtin_description): Add 64bit builtins.
14978 (ix86_init_mmx_sse_builtins): Likewise.
14979 * i386.h (enum ix86_builtins): Likewise.
14980 * i386.md (cvtss2siq, cvttss2siq, cvtsd2siq, cvttsd2siq, cvtsi2sdq,
14981 sse2_movq2dq_rex64, sse2_movsq2q_rex64): New.
14982 (sse2_movq2dq, sse2_movsq2q): Disable for 64bit.
14983 * mmintrin.h (_mm_cvtsi64x_si64, _mm_set_pi64x, _mm_cvtsi64_si64x): New.
14984 * xmmintrin.h (_mm_cvtss_si64x, _mm_cvttss_si64x, _mm_cvtsi64x_ss,
14985 _mm_set_epi64x, _mm_set1_epi64x, _mm_cvtsd_si64x, _mm_cvttsd_si64x,
14986 _mm_cvtsi64x_sd, _mm_cvtsi64x_si128, _mm_cvtsi128_si64x): New.
14988 2003-02-22 Jan Hubicka <jh@suse.cz>
14990 * i386.c (builtin_description): Add __builtin_ia32_paddq and
14991 __builtin_ia32_psubq. Fix __builtin_ia32_paddq128
14992 and __builtin_ia32_psubq128.
14993 * i386.h (IX86_BUILTIN_PADDQ, IX86_BUILTIN_PSUBQ): New.
14994 * i386.md (addv*, mmx_ior*, mmx_xoe*, mmx_and*): Add missing '%'.
14995 (mmx_adddi3, mmx_subdi3): New.
14996 * mmintrin.h (_mm_add_si64, _mm_sub_si64): New.
14997 * xmmintrin.h (_mm_movepi64_pi64): New.
14998 (_mm_add_epi64, _mm_sub_epi64): fix.
14999 (_mm_mul_pu16): Rename to...
15000 (_mm_mul_su32): ... this one.
15002 * builtins.c (expand_builtin_expect): Do not predict
15003 flag_guess_branch_prob is not set.
15004 * c-semantics.c (expand_stmt): Likewise.
15005 * predict.c (predict_insn): Likewise.
15006 * stmt.c (expand_continue_loop): Likewise.
15007 * toplev.c (rest_of_compilation): Do not call
15008 note_prediction_to_br_prob and note_prediction_to_br_prob
15009 when not optimizing.
15011 2003-02-21 Jan Hubicka <jh@suse.cz>
15013 * cfgrtl.c (commit_edge_insertions): Call
15014 find_many_sub_basic_block only when some code has been emitted.
15015 (commit_edge_insertions_watch_calls): Bring into sync with
15016 commit_edge_insertions
15018 2003-02-21 J"orn Rennecke <joern.rennecke@superh.com>
15020 * sh.h (OVERRIDE_OPTIONS): Fix code that clears 'e' register class.
15022 * sh.md (binary_sf_op): Use extra constant operand instead of
15023 negating constant operand 4.
15024 * sh.c (sh_expand_binop_v2sf): Supply it.
15026 2003-02-21 Zack Weinberg <zack@codesourcery.com>
15028 * cpphash.h (struct lexer_state): Add directive_wants_padding.
15029 * cpplib.c (_cpp_handle_directive): Set directive_wants_padding
15030 for directives of type INCL.
15031 (glue_header_name, parse_include): Use get_token_no_padding.
15032 * cppmacro.c (replace_args): If directive_wants_padding,
15033 provide padding tokens.
15035 2003-02-21 Kazu Hirata <kazu@cs.umass.edu>
15037 * config/h8300/h8300.md (a peephole2): New.
15039 2003-02-21 Jan Hubicka <jh@suse.cz>
15041 * cfgrtl.c (commit_one_edge_insertion): Only mark BB for splitting.
15042 (commit_edge_insertions): Call find_many_sub_basic_blocks
15044 * reg-stack.c (convert_regs): Cleax aux for blocks.
15046 2003-02-21 Jan Hubicka <jh@suse.cz>
15048 * toplev.c (parse_options_and_default_flags): Undo accidental commit.
15050 2003-02-21 Glen Nakamura <glen@imodulo.com>
15052 PR optimization/8613
15053 * builtins.c (expand_builtin): Emit postincrements before expanding
15056 2003-02-21 Ben Elliston <bje@redhat.com>
15059 * doc/install.texi (Configuration): Explain using $HOME instead of
15060 the ~ metacharacter when referring to home directories.
15062 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
15064 * configure.in (TARGET_SYSTEM_ROOT): Set default to
15065 ${exec_prefix}/${target_alias}/sys-root. Match explicit
15066 '${exec_prefix}' (in addition to the expansion thereof) as
15068 * configure: Rebuilt.
15070 2003-02-20 Kazu Hirata <kazu@cs.umass.edu>
15072 * config/h8300/h8300.md (addhi3_incdec): Change the name to
15074 (addsi3_incdec): Change the name to *addsi3_incdec.
15076 2003-02-20 Roger Sayle <roger@eyesopen.com>
15078 * explow.c (force_reg): Avoid useless REG_EQUAL notes.
15080 2003-02-20 Toon Moene <toon@moene.indiv.nluug.nl>
15083 * c-opts.c (sanitize_cpp_opts): Add Fortran front end
15084 options to be ignored.
15085 (c_common_decode_option): Ignore them when preprocessing.
15087 2003-02-20 Jan Hubicka <jh@suse.cz>
15089 * toplev.c (flag_sched2_use_superblocks, flag_sched2_use_traces): New
15091 (lang_independent_options): Add -fsched2-use-superblocks
15092 -fsced2-use-traces.
15093 (rest_of_compilation): Deal with it.
15094 * invoke.texi (-fsched2-use-traces, fsched2-use-superblocks): Declare.
15095 * flags.h (flag_sched2_use_superblocks, flag_sched2_use_traces):
15097 * rtl.h (reg_to_stack): Update prototype.
15098 * reg-stack.c (reg_to_stack): Return when something has changed;
15099 update liveness when executing after superblock scheduling.
15101 * combine.c (simplify_shift_const): Simplify few special cases
15104 2003-02-20 David Edelsohn <edelsohn@gnu.org>
15106 * config/rs6000/rs6000.md: (attr "type"): Add fast_compare.
15107 (add.,subf.,neg.): Change attribute to fast_compare.
15108 All DFA descriptions updated.
15110 2003-02-20 Nathan Sidwell <nathan@codesourcery.com>
15112 Change base class access representation.
15113 * tree.h (TREE_VIA_PUBLIC, TREE_VIA_PROTECTED,
15114 TREE_VIA_PRIVATE): Remove.
15115 (BINFO_BASEACCESSES): New binfo elt.
15116 (BINFO_BASEACCESS): New accessor.
15117 (BINFO_ELTS): Increase.
15118 (TI_ACCESS_PUBLIC, TI_ACCESS_PROTECTED, TI_ACCESS_PRIVATE): New.
15119 (access_public_node, access_protected_node,
15120 access_private_node): New global nodes.
15121 * tree.c (build_common_tree_nodes_2): Initialize access nodes.
15122 * dbxout.c (dbxout_type): Adjust.
15123 * dwarf2out.c (gen_inheritance_die): Add access parameter.
15124 (gen_member_die): Adjust.
15125 * dwarfout.c (output_inheritance_die): ARG is array of two trees.
15126 (output_type): Adjust.
15127 * tree-dump.c (dequeue_and_dump): Adjust binfo dumping.
15129 Change base class access representation. Share virtual base
15131 * cp/call.c (build_special_member_call): Remove binfo_for_vbase
15133 * cp/class.c (build_base_path): Likewise.
15134 (build_primary_vtable): Adjust BINFO_NEW_VTABLE_MARKED use.
15135 (build_secondary_vtable): Remove FOR_TYPE arg. Adjust.
15136 (make_new_vtable): Adjust.
15137 (force_canonical_binfo_r): Delete.
15138 (force_canonical_binfo): Delete.
15139 (mark_primary_virtual_base): Delete.
15140 (dfs_unshared_virtual_bases): Delete.
15141 (mark_primary_bases): Adjust.
15142 (maybe_warn_about_overly_private_class): Adjust.
15143 (dfs_base_derived_from): Delete.
15144 (base_derived_from): Follow the inheritance chain.
15145 (struct find_final_overrider_data): Add vpath member.
15146 (dfs_find_final_overrider): Adjust.
15147 (dfs_find_final_overrider_q, dfs_find_final_overrider_post): New.
15148 (find_final_overrider): Adjust.
15149 (update_vtable_entry_for_fn): Adjust.
15150 (modify_all_vtables): Adjust.
15151 (walk_subobject_offsets): Adjust.
15152 (layout_nonempty_base_or_field): Adjust.
15153 (layout_empty_base): Remove last parameter. Adjust.
15154 (build_base_field): Adjust.
15155 (build_base_fields): Adjust.
15156 (propagate_binfo_offsets): Remove last parameter. Adjust.
15157 (dfs_set_offset_for_unshared_vbases): Delete.
15158 (layout_virtual_bases): Adjust.
15159 (finish_struct_1): Adjust.
15160 (init_class_processing): Don't init access nodes.
15161 (dfs_get_primary_binfo): Delete.
15162 (get_primary_binfo): Adjust.
15163 (dump_class_hierarchy_r): Remove most derived arg, add IGO
15165 (dump_class_hierarchy): Adjust.
15166 (finish_vtbls): Adjust.
15167 (get_original_base): Delete.
15168 (build_vtt_inits): Adjust.
15169 (dfs_build_secondary_vptr_vtt_inits): Adjust.
15170 (dfs_ctor_vtable_bases_queue_p): Adjust.
15171 (build_ctor_vtbl_group): Adjust.
15172 (dfs_accumulate_vtbl_inits): Adjust.
15173 (build_vtbl_initializer): Adjust.
15174 (build_vbase_offset_vtbl_entries): Adjust.
15175 (add_vcall_offset_vtbl_entries_1): Adjust.
15176 * cp/cp-tree.h (CPTI_ACCESS_*): Remove.
15177 (access_*_node): Remove.
15178 (CANONICAL_BINFO): Delete.
15179 (BINFO_UNSHARED_MARKED): Remove.
15180 (BINFO_MARKED): Set LANG_FLAG_0 directly.
15181 (SET_BINFO_MARKED, CLEAR_BINFO_MARKED): Delete.
15182 (BINFO_VTABLE_PATH_MARKED): Set LANG_FLAG_3 directly.
15183 (SET_BINFO_VTABLE_PATH_MARKED, CLEAR_BINFO_VTABLE_PATH_MARKED):
15185 (BINFO_NEW_VTABLE_MARKED): Set LANG_FLAG_4 directly.
15186 (SET_BINFO_NEW_VTABLE_MARKED): Adjust.
15187 (SET_BINFO_PUSHDECLS_MARKED, CLEAR_BINFO_PUSHDECLS_MARKED):
15189 (BINFO_DEPENDENT_BASE_P): New.
15190 (dfs_walk, dfs_walk_real): Queue function takes derived binfo and
15192 (markedp, unmarkedp): Adjust.
15193 (dfs_unmarked_real_bases_queue_p, dfs_marked_real_bases_queue_p,
15194 dfs_skip_vbases, marked_vtable_pathp, unmarked_vtable_pathp,
15195 find_vbase_instance, binfo_for_vbase): Delete.
15196 (copied_binfo, original_binfo): Declare.
15197 (finish_base_specifier): Add virtual_p arg.
15198 (unshare_base_binfos): Delete.
15199 (copy_base_binfos): Declare.
15200 (reverse_path): Delete.
15201 * cp/decl.c (xref_basetypes): Access and virtuality passed
15202 differently. Don't copy direct base binfos here. Call
15204 * cp/init.c (dfs_initialize_vtbl_ptrs): Adjust.
15205 (initialize_vtbl_ptrs): Adjust.
15206 (expand_member_init): Adjust.
15207 * cp/parser.c (cp_parser_base_specifier): Adjust.
15208 * cp/pt.c (instantiate_class_template): Adjust.
15209 (get_template_base_recursive): Adjust.
15210 * cp/rtti.c (get_pseudo_ti_init): Adjust.
15211 (get_pseudo_ti_desc): Adjust.
15212 * cp/tree.c (unshare_base_binfos): Rename to ...
15213 (copy_base_binfos): ... here, reimplement.
15214 (make_binfo): Set BINFO_DEPENDENT_BASE_P.
15215 (reverse_path): Remove.
15216 * cp/typeck.c (get_delta_difference): Adjust error messages.
15217 * cp/semantics.c (finish_base_specifier): Add virtual arg, adjust.
15218 * cp/search.c (lookup_base_r): Adjust.
15219 (dynamic_cast_base_recurse): Adjust.
15220 (canonical_binfo): Remove.
15221 (dfs_canonical_queue): Remove.
15222 (dfs_assert_unmarked_p): Remove.
15223 (assert_canonical_unmarked): Remove.
15224 (shared_marked_p, shared_unmarked_p): Remove.
15225 (BINFO_ACCESS, SET_BINFO_ACCESS): Use TREE_PUBLIC & TREE_PRIVATE.
15226 (dfs_access_in_type): Adjust.
15227 (access_in_type): Adjust.
15228 (dfs_accessible_queue_p): Adjust.
15229 (dfs_accessible_p): Adjust.
15230 (is_subobject_of_p_1, is_subobject_of_p): Remove.
15231 (struct lookup_field_info): Remove from_dep_base_p field.
15232 (lookup_field_queue_p): Adjust, test BINFO_DEPENDENT_BASE_P.
15233 (lookup_field_r): Remove dependent base code.
15234 (lookup_member): Likewise.
15235 (dfs_walk, dfs_walk_real): Add access arg to queue fn.
15236 (dfs_unmarked_real_bases_queue_p): Remove.
15237 (dfs_marked_real_bases_queue_p): Remove.
15238 (dfs_skip_vbases): Remove.
15239 (dfs_get_pure_virtuals): Adjust.
15240 (markedp, unmarkedp): Adjust.
15241 (marked_vtable_pathp, unmarked_vtable_pathp): Remove.
15242 (marked_pushdecls_p, unmarked_pushdecls_p): Adjust.
15243 (dfs_unmark): Adjust.
15244 (dfs_get_vbase_types):Remove.
15245 (dfs_build_inheritance_graph_order): Remove.
15246 (get_vbase_types): Remove
15247 (dfs_find_vbase_instance): Remove.
15248 (find_vbase_instance): Remove.
15249 (dfs_debug_unmarkedp): Adjust.
15250 (dependent_base_p): Remove.
15251 (dfs_push_type_decls): Adjust.
15252 (dfs_push_decls): Adjust.
15253 (dfs_no_overlap_yet): Adjust.
15254 (copied_binfo): New function.
15255 (original_binfo): New function.
15256 (binfo_for_vbase): Remove.
15258 Change base class access representation.
15259 * java/class.c (set_super_info): Don't set TREE_VIA_PUBLIC.
15260 (add_interface_do): Likewise.
15262 2003-02-20 David Edelsohn <edelsohn@gnu.org>
15264 * config/rs6000/sysv4.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
15265 * config/rs6000/power4.md (power4-store,power4-vecstore): New
15267 (power4-fpstore): Compact.
15269 2003-02-20 Kazu Hirata <kazu@cs.umass.edu>
15271 * config/h8300/h8300.md (*iorsi3_w): New.
15273 2003-02-20 Josef Zlomek <zlomekj@suse.cz>
15275 * combine.c (distribute_notes): Kill REG_EXEC_COUNT.
15276 * rtl.c (reg_note_name): Likewise.
15277 * rtl.h (enum reg_note): Likewise.
15278 * doc/invoke.texi: Likewise.
15279 * doc/rtl.texi: Likewise.
15281 2003-02-20 Josef Zlomek <zlomekj@suse.cz>
15283 * bb-reorder.c (find_traces_1_round): Fix comment typo.
15285 2003-02-19 Roger Sayle <roger@eyesopen.com>
15287 * fold-const.c (fold_real_zero_addition_p): Don't fold a zero
15288 addition in the presence of signaling NaNs.
15290 2003-02-19 Krister Walfridsson <cato@df.lth.se>
15292 * tm.texi (INIT_CUMULATIVE_ARGS): Fix typo.
15294 2003-02-19 Kazu Hirata <kazu@cs.umass.edu>
15296 * config/h8300/h8300.c (output_logical_op): Optimize or.l when
15297 ORing with 0xffff??00 with the highest bit of the ?? part set.
15298 (compute_logical_op_length): Update.
15299 (compute_logical_op_cc): Likewise.
15301 2003-02-19 Josef Zlomek <zlomekj@suse.cz>
15303 * bb-reorder.c (find_traces_1_round): Fixed condition for small
15304 destination block with multiple predecessors.
15305 (connect_traces): Check whether the block is a start of trace.
15307 2003-02-19 Jan Hubicka <jh@suse.cz>
15309 * calls.c (expand_call): Update call of INIT_CUMULATIVE_ARGS
15310 * function.c (assign_params): Likewise.
15311 * arm-protos.h (arm_init_cumulative_args): Update prototype.
15312 * arm.c (arm_init_cumulative_args): Update function.
15313 * arm.h (INIT_CUMULATIVE_ARGS): Update.
15314 * avr-protos.h (init_cumulative_args): Update prototype.
15315 * avr.c (init_cumulative_args): Update function.
15316 * avr.h (INIT_CUMULATIVE_ARGS): Update.
15317 * d30v-protos.h (d30v_init_cumulative_args): Update prototype.
15318 * d30v.c (d30v_init_cumulative_args): Update function.
15319 * d30v.h (INIT_CUMULATIVE_ARGS): Update.
15320 * frv-protos.h (frv_init_cumulative_args): Update prototype.
15321 * frv.c (frv_init_cumulative_args): Update function.
15322 * frv.h (INIT_CUMULATIVE_ARGS): Update.
15323 * mips.c (mips_expand_prolgue): Update call of INIT_CUMULATIVE_ARGS.
15324 * pa.h (INIT_CUMULATIVE_ARGS): Update.
15325 * sparc-protos.h (init_cumulative_args): Update prototype.
15326 * sparc.c (init_cumulative_args): Update function.
15327 * sparc.h (INIT_CUMULATIVE_ARGS): Update.
15328 * tm.texi (INIT_CUMULATIVE_ARGS): Update documentation.
15330 2003-02-19 Kazu Hirata <kazu@cs.umass.edu>
15332 * config/h8300/h8300.md (*iorsi3_two_qi_sext): New.
15333 (*ashiftsi_sextqi_7): Likewise.
15335 2003-02-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
15337 * config/mips/iris6.h (TARGET_OS_CPP_BUILTINS): Define __c99 for
15340 * fixinc/inclhack.def (irix___restrict): Don't change __restrict
15341 for C++ on IRIX 6.5.1[89].
15342 * fixinc/tests/base/internal/sgimacros.h: New file.
15344 * fixinc/inclhack.def (irix_wcsftime): Use XPG5 variant for C99.
15345 * fixinc/tests/base/internal/wchar_core.h: New file.
15347 * fixinc/inclhack.def (irix_socklen_t): Fix broken IRIX 6.5.1[78]
15348 socklen_t definition.
15349 * fixinc/fixincl.x: Regenerate.
15350 * fixinc/tests/base/sys/socket.h: New file.
15351 Fixes PR libgcj/9652.
15353 2003-02-19 Jan Hubicka <jh@suse.cz>
15355 * i386.md (movsfcc_1, movdfcc_1): Fix constrains.
15357 2003-02-19 David Edelsohn <edelsohn@gnu.org>
15359 * config/rs6000/rs6000.c (rs6000_override_options): Initialize
15360 align_jumps_max_skip and align_loops_max_skip.
15362 2003-02-19 Thierry Moreau <thierry.moreau@connotech.com>
15364 * config/rs6000/rs6000.c (rs6000_encode_section_info): Do not
15365 test size if named section.
15367 2003-02-19 Daniel Jacobowitz <drow@mvista.com>
15369 * expr.c (expand_expr): Use gen_int_mode for the argument
15372 2003-02-19 Jan Hubicka <jh@suse.cz>
15374 * i386.md (cosxf2): Fix conditional.
15376 2003-02-19 Kazu Hirata <kazu@cs.umass.edu>
15378 * config/h8300/h8300.md (extendqisi2): Change to an expander.
15379 (*extendqisi2_h8300): New.
15380 (*extendqisi2_h8300hs): Likewise.
15382 2003-02-19 Kazu Hirata <kazu@cs.umass.edu>
15384 * config/h8300/h8300-protos.h: Update the prototype for
15385 split_adds_subs. Remove the prototypes for
15386 const_int_le_2_operand and const_int_le_6_operand.
15387 * config/h8300/h8300.c (split_adds_sub): Don't output inc/dec.
15388 (const_int_le_2_operand): Remove.
15389 (const_int_le_6_operand): Likewise.
15390 * config/h8300/h8300.h (PREDICATE_CODES): Remove the entries
15391 for const_int_le_2_operand and const_int_le_6_operand.
15392 * config/h8300/h8300.md: Update all uses of split_adds_subs.
15393 (a peephole2): New.
15395 2003-02-18 Jan Hubicka <jh@suse.cz>
15397 * cgraph.c (NPREDECESORC, SET_NPREDECESORS): Kill.
15398 (cgraph_expand_function): Rewrite.
15400 2003-02-18 Matt Austern <austern@apple.com>
15402 * toplev.c, langhooks.c, langhooks-def.h: Move
15403 write_global_declarations from toplev.c to langhooks.c.
15405 2003-02-18 Kazu Hirata <kazu@cs.umass.edu>
15407 * config/h8300/h8300.c (general_operand_src): Always check
15409 (general_operand_dst): Likewise.
15411 2003-02-18 Roger Sayle <roger@eyesopen.com>
15413 * convert.c (convert_to_real): Also optimize (float)log(x) into
15414 logf(x) where x is a float, i.e. also handle BUILT_IN_LOG{,L}.
15416 2003-02-18 Kaz Kojima <kkojima@gcc.gnu.org>
15418 * config/sh/sh.c (unspec_caller_rtx_p): New.
15419 (sh_cannot_copy_insn_p): New.
15420 (TARGET_CANNOT_COPY_INSN_P): New.
15422 2003-02-18 Richard Henderson <rth@redhat.com>
15424 * c-common.c (handle_used_attribute): Accept static data too.
15426 2003-02-18 Nick Clifton <nickc@redhat.com>
15427 Aldy Hernandez <aldyh@redhat.com>
15429 * testsuite/gcc.dg/20030218-1.c: New.
15431 * doc/tm.texi: Document TARGET_VECTOR_TYPES_COMPATIBLE.
15433 * target-def.h (TARGET_INITIALIZER): Add
15434 TARGET_VECTOR_TYPES_COMPATIBLE.
15435 (TARGET_VECTOR_TYPES_COMPATIBLE): New macro.
15437 * target.h (struct gcc_target): Add field vector_types_compatible.
15439 * c-typeck.c (comptypes): Take into account
15440 TARGET_VECTOR_TYPES_COMPATIBLE.
15441 (convert_for_assignment): Same.
15443 * config/rs6000/rs6000.c (is_ev64_opaque_type): New.
15444 (rs6000_spe_vector_types_compatible): New.
15445 (TARGET_VECTOR_TYPES_COMPATIBLE): Define.
15447 2003-02-19 Andreas Schwab <schwab@suse.de>
15449 * Makefile.in (toplev.o): Depend on $(LANGHOOKS_DEF_H).
15450 * toplev.c: Include langhooks-def.h.
15452 2003-02-18 Chris Demetriou <cgd@broadcom.com>
15454 * config/mips/mips.h (enum processor_type): Sort entries
15456 * config/mips/mips.md (define_attr cpu): Sync with processor_type
15457 enum values, including adding entries that were missing.
15459 2003-02-18 J"orn Rennecke <joern.rennecke@superh.com>
15461 * sh.c (calc_live_regs): Also check GET_CODE when checking if
15462 initial value for PR_REG is still the PR_REG register.
15464 2003-02-18 Jim Wilson <wilson@redhat.com>
15466 * config/ia64/ia64.md (floatdidf2, floatdisf2): Add %, before second
15467 instruction in output template.
15468 (bsp_value): Change output template from string to C code, add %,
15469 before actual instruction.
15470 (flushrs): Mark as not predicable.
15472 2003-02-18 Krister Walfridsson <cato@df.lth.se>
15474 * inclhack.def (netbsd_bogus_semicolon): New fix.
15475 * fixincl.x: Rebuilt.
15476 * tests/base/ctype.h: Update.
15478 2003-02-18 Roger Sayle <roger@eyesopen.com>
15480 * fold-const.c (negate_expr_p): New function to determine whether
15481 an expression can be negated cheaply.
15482 (fold) [MINUS_EXPR]: Use it to determine whether to transform
15483 -A - B into -B - A for floating point types.
15485 2003-02-18 Roger Sayle <roger@eyesopen.com>
15487 * sbitmap.c (sbitmap_resize): New function.
15488 * sbitmap.h (sbitmap_resize): Prototype here.
15489 * recog.c (split_all_insns): Use sbitmap_resize.
15491 2003-02-18 Kazu Hirata <kazu@cs.umass.edu>
15493 * config/h8300/h8300.md (*zero_extendhisi2_h8300): Fix the
15495 (extendqisi2): Likewise.
15496 (*extendhisi2_h8300): Likewise.
15498 2003-02-18 Matt Austern <austern@apple.com>
15500 * langhooks.h, langhooks-def.h: introduce new langhook,
15501 final_write_globals, with write_global_declarations as default.
15502 * toplev.c: Move invocation of wrapup_global_declarations from
15503 compile_file to new function, write_global_declarations. Change
15504 compile_file to use final_write_globals hook. Change
15505 wrapup_global_declarations so writing to DECL_DEFER_OUTPUT is
15508 2003-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15510 * pa.md: Correct and enhance comment.
15512 2003-02-18 Geoffrey Keating <geoffk@apple.com>
15514 * gcc.c (validate_switches): Don't scan past closing '}'.
15516 2003-02-18 Ben Elliston <bje@redhat.com>
15519 * doc/extend.texi (Function Attributes): Document the effect of
15520 the C++ "this" parameter on the counting of arguments for the
15521 "format" and "format_arg" attributes.
15523 2003-02-17 Aldy Hernandez <aldyh@redhat.com>
15525 * config/rs6000/spe.h (__ev_stdd): Cast 2nd arg.
15529 2003-02-17 Jan Hubicka <jh@suse.cz>
15531 * recog.c (split_all_insns): Fix memory overflow.
15533 2003-02-17 Kazu Hirata <kazu@cs.umass.edu>
15535 * config/h8300/h8300.md (cmpqi): Remove mode from compare.
15537 (*cmphi_h8300): Likewise.
15538 (*cmphi_h8300hs): Likewise.
15540 (7 peephole2): Likewise.
15542 2003-02-16 Jan Hubicka <jh@suse.cz>
15544 * c-typeck.c (build_c_cast): Fold constant variables into
15547 2003-02-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
15549 * doc/install.texi (Specific): Fix link for m68k-att-sysv.
15550 (Binaries): Ditto for Sinix/Reliant Unix.
15552 2003-02-16 Richard Earnshaw <rearnsha@arm.com>
15554 * arm.c (arm_reload_in_hi): Ensure that the scratch register does
15555 not overlap the final result register.
15557 2003-02-16 Arend Bayer <arend.bayer@web.de>
15558 Richard Henderson <rth@redhat.com>
15561 * fold-const.c (extract_muldiv_1): Rename from extract_muldiv;
15562 rearrange mult arguments for less recursion.
15563 (extract_muldiv): New. Prevent runaway recursion.
15565 2003-02-16 Danny Smith <dannysmith@users.sourceforge.net>
15567 * config/i386/cygwin.h (TARGET_SUBTARGET_DEFAULT): Set
15570 2003-02-15 Roger Sayle <roger@eyesopen.com>
15572 * config/i386/i386.c (x86_ext_80387_constants): Use 80387 insns
15573 to load mathematical constants on K6, Athlon, Pentium 4 and PPro.
15574 (ext_80387_constants_table): Global table of 80387 special constants
15575 guarded by ext_80387_constants_init flag when not initialized.
15576 (init_ext_80387_constants): New function to initialize this table.
15577 (standard_80387_constant_p): Extend to recognize extra 80387
15578 constants, in XFmode, on processors where this is a win.
15579 (standard_80387_constant_opcode): New function to return the
15580 opcode associated with standard_80387_constant_p.
15581 (standard_80387_constant_rtx): New function to return the XFmode
15582 CONST_DOUBLE associated with standard_80387_constant_p.
15583 (ix86_rtx_costs): Give the new constants the same cost as 1.0.
15585 * config/i386/i386-protos.h (standard_80387_constant_opcode):
15587 (standard_80387_constant_rtx): Likewise.
15589 * config/i386/i386.md (*movsf1, *movsf1_nointerunit, *movdf_nointeger,
15590 *movdf_integer, *movxf_nointeger, *movtf_nointeger, *movxf_integer,
15591 *movtf_integer): Simplify using new standard_80387_constant_opcode.
15593 2003-02-15 Geoffrey Keating <geoffk@apple.com>
15595 * doc/invoke.texi (Optimize Options): Correct @option syntax.
15597 2003-02-15 Richard Henderson <rth@redhat.com>
15599 * Makefile.in (cfglayout.o): Depend on TARGET_H.
15600 * cfglayout.c: Include target.h.
15601 (cfg_layout_can_duplicate_bb_p): Check targetm.cannot_copy_insn_p.
15602 * target-def.h (TARGET_CANNOT_COPY_INSN_P): New.
15603 * target.h (struct gcc_target): Add cannot_copy_insn_p.
15605 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): New.
15606 (TARGET_CANNOT_COPY_INSN_P): New.
15607 (override_options): Revert 2003-02-08 hack.
15609 2003-02-15 Richard Henderson <rth@redhat.com>
15611 * gcse.c (bypass_block): Use BLOCK_FOR_INSN for resolving LABEL_REFs.
15612 (bypass_conditional_jumps): Accept computed_jump_p insns as well.
15614 2003-02-15 David Edelsohn <edelsohn@gnu.org>
15616 * config/rs6000/rs6000.h (processor_type): Add PPC440.
15617 * config/rs6000/rs6000.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
15618 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
15619 TARGET_SCHED_VARIABLE_ISSUE): Define.
15620 (rs6000_use_dfa_pipeline_interface): New function.
15621 (rs6000_multipass_dfa_lookahead): New Function.
15622 (rs6000_variable_issue): New function.
15623 (rs6000_adjust_cost): Add CMP and DELAYED_CR types.
15624 (rs6000_issue_rate): Add PPC440.
15625 * config/rs6000/rs6000.md (unspec list): Correct typo.
15626 (attr "type"): Add load_ext, load_ext_u, load_ext_ux, load_u,
15627 store_ux, store_u, fpload_ux, fpload_u, fpstore_ux, fpstore_u,
15628 cmp, delayed_cr, mfcr, mtcr.
15629 (automata_option): Set "ndfa".
15630 (extendMMNN2): Update attributes.
15631 (movcc_internal1): Discourage move to non-cr0. Update
15633 (movMM_update): Update attributes.
15634 (cmpMM_internal): Update attributes.
15635 (sCC CR materialization): Update attributes.
15636 (branch patterns): Do not discourage non-cr0.
15637 (cr logical patterns): Prefer destructive register allocation.
15639 (movesi_from_cr): Update attribute.
15640 (mtcrf_operation): Update attribute.
15641 (mtcrfsi): Update attribute.
15642 * config/rs6000/40x.md: New file.
15643 * config/rs6000/603.md: New file.
15644 * config/rs6000/6xx.md: New file.
15645 * config/rs6000/7450.md: New file.
15646 * config/rs6000/7xx.md: New file.
15647 * config/rs6000/mpc.md: New file.
15648 * config/rs6000/power4.md: New file.
15649 * config/rs6000/rios1.md: New file.
15650 * config/rs6000/rios2.md: New file.
15651 * config/rs6000/rs64.md: New file.
15652 [Some DFA descriptions based on work by Michael Hayes]
15654 2003-02-15 Richard Henderson <rth@redhat.com>
15656 * bb-reorder.c (find_traces_1_round): Don't connect easy to copy
15657 successors with multiple predecessors.
15658 (connect_traces): Try harder to copy traces of length 1.
15660 * function.h (struct function): Add computed_goto_common_label,
15661 computed_goto_common_reg.
15662 * function.c (free_after_compilation): Zap them.
15663 * stmt.c (expand_computed_goto): Use them to produce one
15664 indirect branch per function.
15666 2003-02-15 Richard Henderson <rth@redhat.com>
15668 * cfgcleanup.c: Include params.h.
15669 (try_crossjump_bb): Use PARAM_MAX_CROSSJUMP_EDGES. Fix test for
15670 too many outgoing edges from a block.
15671 * Makefile.in (cfgcleanup.o): Depend on PARAMS_H.
15672 * params.def (max-crossjump-edges): New.
15673 * doc/invoke.texi: Document it.
15675 2003-02-15 Richard Henderson <rth@redhat.com>
15677 * recog.c (split_all_insns): Include new blocks in life update;
15678 do a global life update.
15680 2003-02-15 Danny Smith <dannysmith@users.sourceforge.net>
15682 * config/i386/mingw32.h (LIBGCC_SPEC): Add libmingwex.a.
15684 * config/i386/cygwin.h (LIBGCC_SPEC): Add libmingwex.a for
15687 2003-02-14 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
15689 PR optimization/7702
15690 * reload1.c (reload_cse_simplify_set): Honor
15691 CANNOT_CHANGE_MODE_CLASS.
15693 2003-02-14 Alexandre Oliva <aoliva@redhat.com>
15695 * config/mn10300/mn10300.c (mn10300_wide_const_load_uses_clr): New
15697 * config/mn10300/mn10300-protos.h: Declare it.
15698 * config/mn10300/mn10300.md (movdi, movdf): Use it to compute
15699 attribute cc of instructions that may use clr.
15701 2003-02-14 Kazu Hirata <kazu@cs.umass.edu>
15703 * simplify-rtx.c (simplify_binary_operation): Simplify ~y when
15704 (x - (x & y)) is found.
15706 2003-02-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
15708 * configure.in: Fix typo.
15709 * configure: Regenerate.
15711 2003-02-14 Kazu Hirata <kazu@cs.umass.edu>
15713 * config/h8300/h8300.md (*iorsi2_and_1_lshiftrt_1): New.
15715 2003-02-13 Adam Nemet <anemet@lnxw.com>
15718 * combine.c: Fix spelling in comment.
15719 (cached_nonzero_bits): New function.
15720 (cached_num_sign_bit_copies): New function.
15721 (nonzero_bits_with_known): New macro.
15722 (num_sign_bit_copies_with_known): New macro.
15723 (nonzero_bits1): Rename from nonzero_bits. Add three new
15724 arguments. Change calls from nonzero_bits to
15725 nonzero_bits_with_known.
15726 (num_sign_bit_copies1): Rename from num_sign_bit_copies. Add
15727 three new arguments. Change calls from num_sign_bit_copies to
15728 num_sign_bit_copies_with_known.
15729 (nonzero_bits): New macro.
15730 (num_sign_bit_copies): New macro.
15731 (update_table_tick): Don't traverse identical subexpression more
15733 (get_last_value_validate): Likewise.
15735 2003-02-13 Zack Weinberg <zack@codesourcery.com>
15737 * emit-rtl.c (init_emit): Use ggc_alloc for regno_reg_rtx.
15738 * function.h (struct emit_status): Length of regno_pointer_align
15739 and x_regno_reg_rtx as seen by gengtype is only x_reg_rtx_no,
15740 not regno_pointer_align_length (i.e. length actually used, not
15741 length as allocated)
15743 * config/i386/i386.c (struct stack_local_entry): New.
15744 (struct machine_function): Replace huge array with alist.
15745 (assign_386_stack_local): Change to match.
15747 2003-02-13 John David Anglin <dave.anglin@nrc-crnc.gc.ca>
15749 * inclhack.def (hpux_long_double): Tighten select and add bypass
15751 * fixincl.x: Rebuilt.
15753 2003-02-13 Josef Zlomek <zlomekj@suse.cz>
15755 * cfgcleanup.c (outgoing_edges_match): When there is single outgoing
15756 edge and block ends with a jump insn it must be simple jump.
15758 2003-02-13 Daniel Jacobowitz <drow@mvista.com>
15760 * Makefile.in (PREPROCESSOR_DEFINES): Add
15761 @TARGET_SYSTEM_ROOT_DEFINE@.
15762 * configure.in (PREFIX_INCLUDE_DIR): Don't define if $with_sysroot
15763 is specified or if building a cross compiler.
15764 (TARGET_SYSTEM_ROOT_DEFINE): Add TARGET_SYSTEM_ROOT_RELOCATABLE
15765 if the sysroot is under $exec_prefix.
15766 * configure: Regenerated.
15767 * cppdefault.h: Use native include paths if TARGET_SYSTEM_ROOT is
15769 (struct default_include): Add add_sysroot field.
15770 (cpp_SYSROOT): Declare.
15771 * cppdefault.c (cpp_include_defaults): Fill in add_sysroot
15773 (cpp_SYSROOT): New variable.
15774 * cppinit.c (cpp_create_reader): Initialize
15775 CPP_OPTION (pfile, sysroot).
15776 (init_standard_includes): Handle add_sysroot. Do not
15777 add unrelocated copies of relocated directories.
15778 (COMMAND_LINE_OPTIONS): Add -isysroot.
15779 (cpp_handle_option): Handle -isysroot.
15780 * cpplib.h (struct cpp_options): Add sysroot member.
15781 * gcc.c (The Specs Language): Update description of %I.
15782 (target_system_root_changed): New variable.
15783 (process_command): Conditionalize make_relative_prefix call
15784 on !VMS and TARGET_SYSTEM_ROOT_RELOCATABLE. Set
15785 target_system_root_changed.
15786 (do_spec_1): Add -isysroot to %I.
15787 * doc/invoke.texi (Spec Files): Update description of %I.
15788 * doc/install.texi (--with-sysroot): Update comment about
15791 2003-02-13 Kazu Hirata <kazu@cs.umass.edu>
15793 * config/h8300/h8300.md (a peephole2): New.
15795 2003-02-13 Robert Lipe <robertlipe@usa.net>
15796 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
15798 * doc/install.texi (Specific): Update three SCO-related URLs.
15800 2003-02-13 Andreas Schwab <schwab@suse.de>
15802 * cgraph.c (SET_NPREDECESORS): Add intermediate cast to size_t.
15803 Parenthesize properly.
15804 (NPREDECESORS): Parenthesize properly.
15806 2003-02-13 Gabriel Dos Reis <gdr@integrable-solutions.net>
15808 * timevar.h (POP_TIMEVAR_AND_RETURN): New macro.
15810 2003-02-12 Roger Sayle <roger@eyesopen.com>
15812 * config/i386/i386.md (UNSPEC_FPATAN): New UNSPEC constant.
15813 (atan2sf3, atan2df3, atan2xf3, atan2tf3): New patterns.
15815 * reg-stack.c (subst_stack_regs_pat): Add support for binary
15816 UNSPEC instructions (e.g. "fpatan").
15818 2003-02-12 Mike Stump <mrs@apple.com>
15820 * varray.c (element_size): Remove.
15821 (uses_ggc): Remove.
15823 (varray_init): Use new interface.
15824 (varray_grow): Use new interface.
15825 (varray_clear): Use new interface.
15827 2003-02-12 Aldy Hernandez <aldyh@redhat.com>
15829 * config/rs6000/spe.h: Add casts to the arguments of the following
15830 macros: evfsabs, evfsnabs, evfsneg, evfsadd, evfssub, evfsmul,
15831 evfsdiv, evfscfui, evfscfsi evfscfuf evfscfsf, evfsctui, evfsctsi,
15832 evfsctuf, evfsctsf, evfsctuiz, evfsctsiz, __ev_get_upper*,
15833 __ev_get_lower*, __ev_get_u32, __ev_get_s32, __ev_get_fs,
15834 __ev_get_u16, __ev_get_s16.
15836 2003-02-12 Kazu Hirata <kazu@cs.umass.edu>
15838 * config/h8300/h8300.md (a peephole2): New.
15840 2003-02-12 Jan Hubicka <jh@suse.cz>
15842 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-unit-at-a-time
15843 (OBJS): Add callgraph.o
15844 (callgraph.o): New.
15845 * c-decl.c (expand_body_1): Break out from ...
15846 (expand_body): This one; change calling convention
15847 (finish_function): Move some of expand_body logic here.
15848 (c_expand_deferred_function): Update call of expand_body
15849 (c_expand_stmt): Use c_expand_body_1.
15850 * c-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Define.
15851 * c-objc-commin.c (c_objc_common_finish_file): Use callgraph code.
15852 * c-tree.h (c_expand_body): Declare.
15853 * callgraph.c: New file.
15854 * flags.h (flag_unit_at_a_time): Declare.
15855 * langhooks.h (LANG_HOOKS_CALLGRAPH_LOWER_FUNCTION,
15856 LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION,
15857 LANG_HOOKS_CALLGRAPH_INITIALIZER): New macros.
15858 * langhooks.h (struct lang_hooks_for_callgraph): New.
15859 (struct lang_hooks): Add callgraph field.
15860 * toplev.c (flag_unit_at_a_time): New.
15861 (lang_independent_options): Add flag_unit_at_a_time.
15862 (process_options): Disable unit-at-a-time mode for frontends not
15863 supporting callgraph.
15864 * tree-inline.c (typedef struct inline_data): Add "decl"
15865 (expand_call_inline): Update callgraph.
15866 (optimize_inline_calls): Set id.decl.
15867 * tree.h (cgraph_finalize_function, cgraph_finalize_compilation_unit,
15868 cgraph_create_edges, dump_cgraph, cgraph_optimize, cgraph_remove_call
15869 cgraph_calls_p): Declare.
15870 * invoke.texi (-funit-at-a-time): Document
15872 2003-02-12 Aldy Hernandez <aldyh@redhat.com>
15874 * config/rs6000/spe.h: Fix misc formatting.
15875 (__ev_create_ufix32_fs): Cast ev argument.
15876 (__ev_create_sfix32_fs): Same.
15877 (__ev_get_sfix32_fs_internal): Cast arguments to builtins.
15878 (__ev_get_ufix32_fs_internal): Same.
15880 2003-02-12 Ranjit Mathew <rmathew@hotmail.com>
15882 * doc/tm.texi (MODIFY_JNI_METHOD_CALL): Document.
15883 * config/i386/cygwin.h (MODIFY_JNI_METHOD_CALL): New macro.
15885 2003-02-12 Zack Weinberg <zack@codesourcery.com>
15887 * cpplib.c (do_include_common): Move warnings for
15888 #include_next and #import out to callers. Use early-return
15889 instead of nested ifs. Don't do check_eol here.
15890 (parse_include): Do check_eol here with the rest of the
15892 (do_include_next, do_import): Now handle warnings.
15894 2003-02-11 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
15896 * doc/install.texi (Specific): Update AVR- and Darwin-related URLs.
15898 2003-02-12 Jan Hubicka <jh@suse.cz>
15900 * predict.c (estimate_probability): Fix roundoff error.
15902 2003-02-12 Kazu Hirata <kazu@cs.umass.edu>
15904 * config/h8300/h8300.md (a peephole2): Don't handle 65535.
15905 (two peephole2): New.
15907 2003-02-12 Kazu Hirata <kazu@cs.umass.edu>
15909 * config/h8300/h8300.md (several peephole2): Replace
15910 find_regno_note with peep2_reg_dead_p.
15912 2003-02-11 Richard Henderson <rth@redhat.com>
15914 * gcse.c (lookup_set): Remove unused argument PAT. Update
15917 2003-02-11 Geoffrey Keating <geoffk@apple.com>
15919 * diagnostic.c (real_abort): New.
15920 (diagnostic_report_diagnostic): Call real_abort on error.
15921 * diagnostic.h (diagnostic_abort_on_error): New.
15922 (struct diagnostic_context): Add abort_on_error field.
15923 * toplev.c (setup_core_dumping): New.
15924 (decode_d_option): Handle 'H' case.
15925 * doc/invoke.texi (Debugging Options): Document -dH.
15927 2003-02-11 Nathanael Nerode <neroden@gcc.gnu.org>
15929 * Makefile.in: Remove pointless setting of CXXFLAGS for dejagnu
15930 which refers to obsolete directories.
15932 2003-02-11 Richard Henderson <rth@redhat.com>
15934 * config/alpha/linux.h (TARGET_C99_FUNCTIONS): New.
15936 2002-10-21 Jan Hubicka <jh@suse.cz>
15938 * i386.c (contains_128bit_aligned_vector_p): New function.
15939 (ix86_function_arg_boundary): Properly align vector modes.
15941 2003-02-11 Bob Wilson <bob.wilson@acm.org>
15943 * config/xtensa/xtensa.md (set_frame_ptr): Change rtl to set reg a7.
15944 * config/xtensa/xtensa.c (xtensa_reorg): Search for UNSPECV_SET_FP
15947 2003-02-11 Roger Sayle <roger@eyesopen.com>
15949 * builtins.c: Fix failure caused by commiting wrong patch.
15951 2003-02-11 Dale Johannesen <dalej@apple.com>
15952 * ra-build.c (compare_and_free_webs): Relax checking.
15953 * config/rs6000/darwin.h (HOT_TEXT_SECTION_NAME): Define.
15954 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
15956 2003-02-11 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
15958 PR optimization/9651
15959 * rtlanal.c (may_trap_p): Handle FIX.
15961 2003-02-11 Dave Jones <davej@codemonkey.org.uk>
15963 * config/i386/i386.c (override_options): Define c3-2 as a 686 with SSE.
15964 * doc/invoke.texi: Extra alias.
15966 2003-02-11 Geoffrey Keating <geoffk@apple.com>
15968 * config/rs6000/host-darwin.c: Fix comment.
15970 2003-02-11 David Edelsohn <edelsohn@gnu.org>
15972 * config/rs6000/rs6000.md (divmodsi4): Use register_operand
15973 predicate for mod result.
15975 2003-02-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15977 * inclhack.def (hpux_long_double, hpux10_ctype_declarations1,
15978 hpux10_ctype_declarations2, hpux_ctype_macros): New hacks.
15979 * fixincl.x: Rebuilt.
15980 * tests/base/stdlib.h: Update.
15981 * tests/base/ctype.h: New file.
15983 2003-02-11 Jan Hubicka <jh@suse.cz>
15985 * emit-rtl.c (emit_copy_of_insn_after): Copy insn recog cache too.
15987 2003-02-11 Richard Henderson <rth@redhat.com>
15989 * config/i386/i386.c (ix86_expand_movstr): Fail if esi or edi
15990 appropriated as globals.
15991 (ix86_expand_clrstr): Similarly.
15992 * config/i386/i386.md (cmpstrsi): Similarly.
15994 2003-02-11 Kazu Hirata <kazu@cs.umass.edu>
15996 * config/h8300/h8300.md (a peephole2): Add a case of 255.
15998 2003-02-11 Roger Sayle <roger@eyesopen.com>
16000 * optabs.h (enum optab_index): Add new OTI_pow and OTI_atan2.
16001 (pow_optab, atan2_optab): Define corresponding macros.
16002 * optabs.c (init_optabs): Initialize pow_optab and atan2_optab.
16003 * genopinit.c (optabs): Implement pow_optab and atan2_optab
16004 using pow?f3 and atan2?f3 patterns.
16005 * builtins.c (expand_errno_check): New function to update errno
16006 if necessary, split out from expand_builtin_mathfn.
16007 (expand_builtin_mathfn): Use expand_errno_check.
16008 (expand_builtin_mathfn_2): New function to handle expanding binary
16009 math functions, reusing the code in expand_errno_check.
16010 (expand_builtin): Handle the pow and atan2 math built-ins,
16011 BUILT_IN_{POW,POWF,POWL,ATAN2,ATAN2F,ATAN2L} via the new function
16012 expand_builtin_mathfn_2.
16014 * doc/md.texi: Document new pow?f3 and atan2?f3 patterns.
16016 2003-02-11 Jan Hubicka <jh@suse.cz>
16018 * combine.c (combine_simplify_rtx): Fix folding of
16019 nested float_truncates.
16021 2003-02-11 Kazu Hirata <kazu@cs.umass.edu>
16023 * config/h8300/h8300.md (a peephole2): Fix a typo.
16025 2003-02-11 Richard Earnshaw <rearnsha@arm.com>
16027 * arm.mc (return_address_mask): Use CC_REGNUM for the condition code
16030 2003-02-11 Kazu Hirata <kazu@cs.umass.edu>
16032 * config/h8300/h8300-protos.h: Add a prototype for
16034 * config/h8300/h8300.c (gtuleu_operator): New.
16035 * config/h8300/h8300.h (PREDICATE_CODES): Add gtuleu_operator.
16036 * config/h8300/h8300.md (a peephole2): New.
16038 2003-02-11 Jan Hubicka <jh@suse.cz>
16040 * sched-ebb.c (schedule_ebbs): Do not verify_flow_info.
16042 2003-02-11 Jan Hubicka <jh@suse.cz>
16044 * predict.c (choose_function_section): Choose sections correctly.
16046 2003-02-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16048 * reload1.c (first_label_num): New.
16049 (reload): Index offsets_known_at and offsets_at using difference of
16050 label number and first label number. Don't use offset pointers.
16051 (set_label_offsets, set_initial_label_offsets): Likewise.
16053 2003-02-10 Roger Sayle <roger@eyesopen.com>
16055 * mips-tfile.c (init_file): Add missing initializers in the
16056 "#ifdef __alpha" case.
16057 (file_offset, max_file_offset): Declare as unsigned long.
16058 (write_varray): Cast to "unsigned long" in comparisons against
16059 either file_offset or max_file_offset.
16060 (write_object): Likewise.
16061 (read_seek): Likewise.
16062 (copy_object): Likewise. Declare "ifd" as int to match its use
16063 in add_ext_symbol, and avoid signed/unsigned conditional warning.
16065 2003-02-10 Nick Clifton <nickc@redhat.com>
16066 Aldy Hernandez <aldyh@redhat.com>
16068 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Do not
16069 override options which have been specified on the command line.
16071 2003-02-10 Kazu Hirata <kazu@cs.umass.edu>
16073 * config/h8300/h8300.md (abssf2): New.
16074 (*abssf2_h8300): Likewise.
16075 (*abssf2_h8300hs): Likewise.
16077 2003-02-10 Phil Edwards <pme@gcc.gnu.org>
16079 * tree.c (build_tree_list): Fix parameter names in comment.
16081 2003-02-10 Janis Johnson <janis187@us.ibm.com>
16083 * config/rs6000/ppc64-fp.c: New file.
16084 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Add ppc64-fp.c.
16086 2003-02-10 Josef Zlomek <zlomekj@suse.cz>
16088 * Makefile.in (bb-reorder.o): Add dependency on $(FIBHEAP_H).
16089 * bb-reorder.c (make_reorder_chain): Deleted.
16090 (make_reorder_chain_1): Deleted.
16091 (find_traces): New function.
16092 (rotate_loop): New function.
16093 (mark_bb_visited): New function.
16094 (find_traces_1_round): New function.
16095 (copy_bb): New function.
16096 (bb_to_key): New function.
16097 (better_edge_p): New function.
16098 (connect_traces): New function.
16099 (copy_bb_p): New function.
16100 (get_uncond_jump_length): New function.
16101 (reorder_basic_blocks): Use new functions (Software Trace Cache).
16102 * cfgcleanup.c (outgoing_edges_match): Enable crossjumping across loop
16105 2003-02-10 Aldy Hernandez <aldyh@redhat.com>
16107 * config/rs6000/rs6000.c (bdesc_2arg): Change spe_evxor to xorv2si3.
16109 2003-02-09 Dan Nicolaescu <dann@ics.uci.edu>
16111 * tree.h (struct tree_decl): Remove unused live_range_rtl field.
16112 (DECL_LIVE_RANGE_RTL): Remove.
16114 2003-02-10 Nick Clifton <nickc@redhat.com>
16116 * config/arm/aof.h, config/arm/aout.h, config/arm/arm-modes.def,
16117 config/arm/arm-protos.h, config/arm/arm.c, config/arm/arm.h,
16118 config/arm/arm.md, config/arm/cirrus.md, config/arm/coff.h,
16119 config/arm/conix-elf.h, config/arm/ecos-elf.h, config/arm/elf.h,
16120 config/arm/freebsd.h, config/arm/linux-elf.h,
16121 config/arm/linux-gas.h, config/arm/netbsd-elf.h,
16122 config/arm/netbsd.h, config/arm/pe.c, config/arm/pe.h,
16123 config/arm/rtems-elf.h, config/arm/semi.h, config/arm/semiaof.h,
16124 config/arm/strongarm-coff.h, config/arm/strongarm-elf.h,
16125 config/arm/strongarm-pe.h, config/arm/uclinux-elf.h,
16126 config/arm/unknown-elf-oabi.h, config/arm/unknown-elf.h,
16127 config/arm/xscale-elf.h: Replace occurances of "GNU CC" with "GCC"
16128 and reformat as appropriate.
16130 2003-02-10 Kazu Hirata <kazu@cs.umass.edu>
16132 * config/h8300/clzsi2.c: Remove.
16133 * config/h8300/ctzsi2.c: Likewise.
16134 * config/h8300/paritysi2.c: Likewise.
16135 * config/h8300/popcountsi2.c: Likewise.
16136 * config/h8300/t-h8300 (LIB2FUNCS_EXTRA): Remove clzsi2,
16137 ctzsi2, paritysi2, and popcountsi2.
16139 2003-02-10 Eric Botcazou <ebotcazou@libertysurf.fr>
16140 Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
16143 * c-decl.c (duplicate_decls): Discard the initializer of the
16144 new decl when the types are conflicting.
16146 2003-02-10 Josef Zlomek <zlomekj@suse.cz>
16148 * Makefile.in (sreal.o): Added.
16149 (predict.o): Depends on sreal.h instead of real.h.
16150 * sreal.c: New file.
16151 * sreal.h: New file.
16152 * predict.c: Use sreal.c instead of real.c.
16154 2003-02-10 Nick Clifton <nickc@redhat.com>
16156 * Contributed support for the Cirrus EP9312 "Maverick"
16157 floating point co-processor. Written by Aldy Hernandez
16158 <aldyh@redhat.com>.
16159 (config/arm/arm.c): Add Cirrus support.
16160 (config/arm/arm.h): Likewise.
16161 (config/arm/aout.h): Likewise.
16162 (config/arm/arm.md): Likewise.
16163 (config/arm/arm-protos.h): Likewise.
16164 (config.gcc): Likewise.
16165 (doc/invoke.texi): Describe new -mcpu value and new
16166 -mcirrus-fix-invalid-insns switch,
16167 (cirrus.md): New file.
16169 2003-02-10 Jan Hubicka <jh@suse.cz>
16171 * combine.c (combine_simplify_rtx): Simplify using
16172 (float_truncate (float x)) is (float x)
16173 (float_extend (float_extend x)) is (float_extend x).
16175 2003-02-10 Alan Modra <amodra@bigpond.net.au>
16177 * calls.c (try_to_integrate): Tidy stack_usage_map access.
16178 (emit_library_call_value_1): Likewise. Formatting.
16179 (store_one_arg): Likewise.
16181 2003-02-09 Nick Clifton <nickc@redhat.com>
16182 Aldy Hernandez <aldyh@redhat.com>
16184 * config/rs6000/spe.md: spe_evlhhesplat, spe_evlhhossplat,
16185 spe_evlhhousplat, spe_evlwhsplat, spe_evlwwsplat, spe_evldd,
16186 spe_evldh, spe_evldw, spe_evlwhe, spe_evlwhos, spe_evlwhou,
16187 spe_evstdd, spe_evstdh, spe_evstdw, spe_evstdwx, spe_evstwhe,
16188 spe_evstwho, spe_evstwwe, spe_evstwwo: Fix syntax to match newest
16189 docs. Add range test for immediate value.
16191 2003-02-09 Aldy Hernandez <aldyh@redhat.com>
16193 Rename spe_evxor to xorv2si3.
16197 2003-02-10 Glen Nakamura <glen@imodulo.com>
16199 * doc/extend.texi (C++98 Thread-Local Edits): Add missing @item
16202 2003-02-10 Jan Hubicka <jh@suse.cz>
16204 * i386.c (vector_move_operand): New predicate.
16205 (ix86_expand_vector_move): Be happy about 0.
16206 * i386.h (PREDICATE_CODES): Add sse-move_operand.
16207 * i386.md (mov*_internal): Add 'C' alternative.
16209 2003-02-09 Jan Hubicka <jh@suse.cz>
16211 * i386.md (floathi*): Deal with SSE.
16213 2003-02-09 Jan Hubicka <jh@suse.cz>
16215 * simplify-rtx.c (simplify_unary_operation,
16216 simplify_binary_operation): Deal with vector modes
16217 (simplify_ternary_operation): Deal with no-op VEC_MERGE.
16219 2003-02-09 Richard Sandiford <rsandifo@redhat.com>
16221 * toplev.c (rest_of_compilation): Recompute register usage after
16224 2003-02-09 Richard Henderson <rth@redhat.com>
16226 * libgcc-std.ver (__clztf2): New.
16227 (__ctztf2, __popcounttf2, __paritytf2): New.
16228 * libgcc2.c (__clzSI2, __clzDI2, __ctzSI2, __ctzDI2, __popcountSI2,
16229 __popcountDI2, __paritySI2, __parityDI2): Use UWmode and UDWmode;
16230 adjust code to match the different type sizes.
16231 * libgcc2.h (__clzSI2, __ctzSI2, __popcountSI2, __paritySI2,
16232 __clzDI2, __ctzDI2, __popcountDI2, __parityDI2): New macros.
16234 * optabs.c (init_integral_libfuncs): Don't hard-code SImode and
16235 TImode; select word_mode and twice that.
16236 (init_floating_libfuncs): Don't hard-code SFmode and TFmode;
16237 select the modes from float, double, and long double.
16238 (init_optabs): Remove duplicate initializations.
16240 2003-02-09 Wolfgang Bangerth <bangerth@ticam.utexas.edu>
16242 * doc/install.texi: Squeeze and streamline section on
16243 testing and regression checking.
16245 2003-02-09 Jan Hubicka <jh@suse.cz>
16247 * i386.md (ahi?v*3): Set third operand type to TImode.
16248 * i386.c (ix86_expand_binop_builtin): Extend operand when needed.
16250 * simplify-rtx.c (simplify_subreg): Fix conversion from vector into
16253 * rtl.def (VEC_MERGE, VEC_SELECT, VEC_CONCAT, VEC_DUPLICATE):
16254 Change code so they are arithmetic expressions now.
16255 * simplify-rtx.c (simplify_unary_operation, simplify_binary_operation,
16256 simplify_ternary_operation): Deal with VEC_* expressions.
16258 * i386.md (vmaskcmp, pinsrw, movd patterns): Fix RTL representation.
16260 2003-02-08 Jan Hubicka <jh@suse.cz>
16262 * cfgrtl.c (verify_flow_info): Use control_flow_insn_p.
16263 * reload1.c (fixup_abnormal_edges): Split basic blocks when EH edges
16264 possibly got duplicated.
16266 2003-02-08 Richard Henderson <rth@redhat.com>
16268 * config/alpha/alpha.c (override_options): Turn off explicit
16269 relocs until post-peep2 code duplication resolved.
16271 2003-02-08 Kazu Hirata <kazu@cs.umass.edu>
16273 * optabs.c (expand_unop): Widen clz properly when clz is done
16276 2003-02-08 Kazu Hirata <kazu@cs.umass.edu>
16278 * config/h8300/clzsi2.c: Replace "GNU CC" with "GCC".
16279 * config/h8300/crti.asm: Likewise.
16280 * config/h8300/crtn.asm: Likewise.
16281 * config/h8300/ctzsi2.c: Likewise.
16282 * config/h8300/fixunssfsi.c: Likewise.
16283 * config/h8300/h8300-protos.h: Likewise.
16284 * config/h8300/h8300.c: Likewise.
16285 * config/h8300/h8300.h: Likewise.
16286 * config/h8300/h8300.md: Likewise.
16287 * config/h8300/paritysi2.c: Likewise.
16288 * config/h8300/popcountsi2.c: Likewise.
16289 * config/h8300/rtems.h: Likewise.
16291 2003-02-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
16293 * doc/invoke.texi: Documentation for my previous commit.
16294 * doc/passes.texi: Ditto.
16296 2003-02-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
16298 * cfgloop.h (fix_loop_placement, can_duplicate_loop_p,
16299 duplicate_loop_to_header_edge, loopify, remove_path, split_loop_bb):
16301 (DLTHE_FLAG_UPDATE_FREQ): New.
16302 * cfgloopmanip.c (duplicate_loop, duplicate_subloops, copy_loops_to,
16303 loop_redirect_edge, loop_delete_branch_edge, copy_bbs, remove_bbs,
16304 rpe_enum_p, find_branch, alp_enum_p, add_loop, fix_loop_placements,
16305 fix_bb_placement, fix_bb_placements, place_new_loop,
16306 scale_loop_frequencies, scale_bbs_frequencies, record_exit_edges):
16307 New static functions.
16308 (fix_loop_placement, can_duplicate_loop_p,
16309 duplicate_loop_to_header_edge, loopify, remove_path, split_loop_bb):
16312 * cfgloop.h (loop_optimizer_init, loop_optimizer_finalize,
16313 unswitch_loops): Declare.
16314 * loop-init.c: New file.
16315 * loop-unswitch.c: New file.
16316 * Makefile.in (loop-init.o, loop-unswitch.o): New.
16317 * params.def (PARAM_MAX_UNSWITCH_INSNS, PARAM_MAX_UNSWITCH_LEVEL): New.
16318 * toplev.c (DFI_loop2): New dump.
16319 (flag_unswitch_loops): New.
16320 (lang_independent_options): Add it.
16321 (rest_of_compilation): Call new loop optimizer.
16322 (parse_options_and_default_flags): Turn flag_unswitch_loops on with -O3.
16324 2003-02-08 Kazu Hirata <kazu@cs.umass.edu>
16326 * config/h8300/clzsi2.c: New.
16327 * config/h8300/ctzsi2.c: Likewise.
16328 * config/h8300/paritysi2.c: Likewise.
16329 * config/h8300/popcountsi2.c: Likewise.
16330 * config/h8300/t-h8300 (LIB2FUNCS_EXTRA): Add above files.
16332 2003-02-07 David Edelsohn <edelsohn@gnu.org>
16334 * config/rs6000/rs6000.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
16335 * config/rs6000/rs6000.md (clzsi2): Rename from cntlzw2.
16336 (ctzsi2): New pattern.
16337 (ffssi2): Use clz instead of unspec.
16338 (clzdi2): Rename from cntlzd2.
16339 (ctzdi2): New pattern.
16340 (ffsdi2): Use clz instead of unspec.
16342 2003-02-07 Loren James Rittle <ljrittle@acm.org>
16344 * config/alpha/freebsd.h (LINK_SPEC): Weaken error to notice.
16345 * config/ia64/freebsd.h (LINK_SPEC): Likewise.
16346 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
16347 * config/i386/freebsd.h (LINK_SPEC): Add clause to mirror other arches.
16349 2003-02-07 Wolfgang Bangerth <bangerth@ticam.utexas.edu>
16351 * doc/trouble.texi: Document pitfalls of two-stage name lookup.
16353 2003-02-07 Richard Henderson <rth@redhat.com>
16356 * gcse.c (local_cprop_find_used_regs): New.
16357 (local_cprop_pass): Use it.
16359 2003-02-07 Fred Fish <fnf@intrinsity.com>
16361 * mips-tfile.c (parse_def): Parenthesize assignments to fix
16364 2003-02-07 Segher Boessenkool <segher@koffie.nl>
16366 * genoutput.c (output_get_insn_name): Handle NOOP_MOVE_INSN_CODE.
16368 2003-02-07 Roger Sayle <roger@eyesopen.com>
16370 * builtin-types.def (BT_FN_FLOAT_FLOAT_FLOAT): New built-in type.
16371 (BT_FN_LONG_DOUBLE_LONG_DOUBLE_LONG_DOUBLE): Likewise.
16372 (BT_FN_DOUBLE_DOUBLE_DOUBLE): Likewise.
16373 * builtins.def: Define pow, powf, powl, atan2, atan2f and atan2l
16374 builtin functions (and their __builtin_* variants).
16375 * builtins.c (mathfn_built_in): Handle missing log{,f,l} cases.
16376 (expand_builtin): Don't expand log{,f,l}, pow{,f,l} or atan2{,f,l}
16377 when not optimizing.
16379 * doc/extend.texi: Document new pow and atan2 builtins, and
16380 their float and long double variants. Realphabetize builtins.
16382 2003-02-07 Jan Hubicka <jh@suse.cz>
16384 * i386.md (sse2_nandv2di3): Fix.
16386 2003-03-07 Danny Smith <dannysmith@users.sourceforge.net>
16388 * config/i386/i386.h (MS_AGGREGATE_RETURN): New define.
16389 * config/i386/cygwin.h (MS_AGGREGATE_RETURN): Override default
16391 * config/i386/i386.h (ix86_return_in_memory): Return aggregate
16392 types of up to 8 bytes via registers if MS_AGGREGATE_RETURN.
16394 2003-02-07 Jan Hubicka <jh@suse.cz>
16396 * i386.md (movdi_rex64_1): Fix mmx<->int move opcode.
16398 2003-02-07 Daniel Berlin <dberlin@dberlin.org>
16400 * cfg.c (dump_flow_info): Add back accidently deleted line.
16402 2003-02-07 Andrey Petrov <petrov@netbsd.org>
16404 * optabs.c (expand_float): Search wider integer modes first.
16406 2003-02-07 Bob Wilson <bob.wilson@acm.org>
16408 * config/xtensa/xtensa.h (LIBGCC2_WORDS_BIG_ENDIAN): Set this
16409 based on preprocessor flag.
16411 2003-02-07 Roger Sayle <roger@eyesopen.com>
16412 Richard Henderson <rth@redhat.com>
16414 * gcse.c (implicit_sets): New.
16415 (compute_hash_table_work): Include them in hash table.
16416 (find_implicit_sets, fis_get_condition): New.
16417 (one_cprop_pass): Allocate and free implicit_sets; call
16418 find_implicit_sets before building hash table.
16420 2003-02-07 Jason Thorpe <thorpej@wasabisystems.com>
16422 * config/t-netbsd (USER_H): Revert previous change.
16424 2003-02-07 Gabor Greif <ggreif@lucent.com>
16426 * doc/c-tree.texi (Namespaces): Fix typo.
16428 2003-02-07 Jan Hubicka <jh@suse.cz>
16430 * regrename.c (do_replace, find_oldest_value_reg,
16431 copyprop_hardreg_forward_1): Update register attributes.
16433 2003-02-06 Vladimir Makarov <vmakarov@redhat.com>
16435 * genautomata.c (VLA_PTR_CREATE, VLA_PTR_EXPAND, VLA_PTR_ADD,
16436 VLA_HWINT_CREATE, VLA_HWINT_EXPAND, VLA_HWINT_ADD): Use temporay
16437 variables starting with underscore.
16438 (struct unit_usage): New structure.
16439 (unit_usages, cycle_alt_unit_usages): New global variables.
16440 (check_unit_distribution_in_reserv): Remove it.
16441 (store_alt_unit_usage): New function.
16442 (check_regexp_units_distribution): Rewrite it.
16444 2003-02-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16446 * config.gcc (hppa*-*-linux*): Set MASK_NO_SPACE_REGS in
16447 target_cpu_default.
16448 * pa.c (attr_length_call): Add 8 to call length (long indirect PA 1.X)
16449 if not MASK_NO_SPACE_REGS.
16450 (output_call): Adjust return pointer, don't load new space register
16451 into %sr0, and use %sr4 for call if TARGET_NO_SPACE_REGS is true.
16452 (pa_asm_output_mi_thunk): Don't load new space register into %sr0 if
16453 TARGET_NO_SPACE_REGS is true.
16454 * pa.md (return_external_pic): Add TARGET_NO_SPACE_REGS to insn
16456 (epilogue): Always use return_internal if TARGET_NO_SPACE_REGS is true.
16457 (interspace_jump): Add new pattern for when TARGET_NO_SPACE_REGS is
16458 true. Use bve when TARGET_64BIT is true.
16460 2003-02-06 Richard Henderson <rth@redhat.com>
16462 * combine.c (nonzero_bits): Fix double break.
16464 2003-02-06 Eric Botcazou <ebotcazou@libertysurf.fr>
16465 Richard Henderson <rth@redhat.com>
16468 * config/i386/i386.c (ix86_function_ok_for_sibcall): Forbid sibcalls
16469 from functions that return a float to functions that don't.
16471 2003-02-06 Jan Hubicka <jh@suse.cz>
16473 * i386.c (x86_inter_unit_moves): New variable.
16474 (ix86_secondary_memory_needed): Fix 64bit case, honor
16475 TARGET_INTER_UNIT_MOVES
16476 * i386.h (x86_inter_unit_moves): Declare.
16477 (TARGET_INTER_UNIT_MOVES): New macro.
16478 * i386.md (movsi_1): Cleanup constraints; disable
16479 when not doing inter-unit moves.
16480 (movsi_1_nointernunit): New.
16481 (movdi_1_rex64): Fix constraints; deal with SSE->GPR moves.
16482 (movdi_1_rex64_nointerunit): New.
16483 (mivsf_1): disable when not doing inter-unit moves.
16484 (movsf_1_nointerunit): New.
16486 * basic-block.h (inside_basic_block_p): Declare.
16487 * cfgbuild.c (inside_basic_block_p): Make global.
16488 * haifa-sched.c (unlink_other_notes): Deal with NOT_INSN_BASIC_BLOCK.
16489 * scheudle-ebb.c (schedule_ebb): Return last basic block of trace;
16491 (fix_basic_block_boundaries, add_missing_bbs): New.
16492 (rank): Use profile.
16493 (scheudle_ebbs): Rely on CFG; update coments.
16495 2003-02-05 Geoffrey Keating <geoffk@apple.com>
16497 * Makefile.in (host_hook_obj): New.
16498 (OBJS): Add $(host_hook_obj).
16499 (host_default.o): New rule.
16500 * config.gcc (host_hook_obj): New, default to host-default.o.
16501 (powerpc-*-darwin*): Use host-darwin.o.
16502 (out_host_hook_obj): New.
16503 * configure: Regenerate.
16504 * configure.in: Print information about out_host_hook_obj, substitute
16506 * host-default.c: New file.
16507 * hosthooks.h: New file.
16508 * toplev.c (general_init): Call host_hooks.extra_signals.
16509 * config/rs6000/host-darwin.c: New file.
16510 * config/rs6000/x-darwin: New file.
16511 * doc/hostconfig.texi: Add documentation for new host hook.
16512 Rearrange existing documentation.
16514 2003-02-05 Roger Sayle <roger@eyesopen.com>
16516 * dwarf2out.c (mem_loc_descriptor): Replace ASM_SIMPLIFY_DWARF_ADDR
16517 with *targetm.delegitimize_address.
16518 (rtl_for_decl_location): Likewise.
16519 * dwarfout.c (output_mem_loc_descriptor): Likewise. Include target.h.
16520 * Makefile.in (dwarf2out.c, dwarfout.c): Depend upon $(TARGET_H)
16522 * config/i386/i386.h (ASM_SIMPLIFY_DWARF_ADDR): Remove definition.
16523 * config/i386/i386-protos.h (i386_simplify_dwarf_addr): Remove
16525 * config/i386/i386.c (ix86_delegitimize_address): Renamed from
16526 i386_simplify_dwarf_addr. Made static. Prototyped.
16527 (TARGET_DELEGITIMIZE_ADDRESS): Update definition from
16528 i386_simplify_dwarf_addr to ix86_delegitimize_address.
16529 (ix86_find_base_term): Likewise.
16530 (maybe_get_pool_constant): Likewise.
16532 * config/s390/s390.h (ASM_SIMPLIFY_DWARF_ADDR): Remove definition.
16533 * config/s390/s390-protos.h (s390_simplify_dwarf_addr): Remove
16535 * config/s390/s390.c (s390_delegitimize_address): Renamed from
16536 s390_simplify_dwarf_addr. Made static. Prototyped.
16537 (TARGET_DELEGITIMIZE_ADDRESS): Define as s390_delegitimize_address.
16539 2003-02-05 Richard Henderson <rth@redhat.com>
16542 * integrate.c (output_inline_function): Reset input_filename
16543 and lineno from the decl before rest_of_compilation.
16545 2003-02-05 Richard Henderson <rth@redhat.com>
16547 * defaults.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
16548 (CTZ_DEFINED_VALUE_AT_ZERO): New.
16549 * doc/rtl.texi, doc/tm.texi: Document them.
16551 * combine.c (nonzero_bits) [CLZ, CTZ]: Handle the definedness
16552 of the value at zero properly.
16553 * fold-const.c (tree_expr_nonnegative_p): Likewise.
16554 * simplify-rtx.c (simplify_unary_operation): Likewise.
16556 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
16557 (CTZ_DEFINED_VALUE_AT_ZERO): New.
16559 * config/arm/arm.c (TARGET_INIT_BUILTINS): Remove.
16560 (TARGET_EXPAND_BUILTIN): Remove.
16561 (def_builtin, arm_init_builtins, arm_expand_builtin): Remove.
16562 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
16563 (enum arm_builtins): Remove.
16564 * config/arm/arm.md (UNSPEC_CLZ): Remove.
16565 (clzsi2): Rename from clz; use clz instead of unspec.
16567 * config/arm/arm-protos.h: Update.
16569 2003-02-05 Jan Hubicka <jh@suse.cz>
16571 * i386-protos.h (x86_emit_floatuns): Declare.
16572 * i386.c (x86_emit_floatuns): New global function.
16573 * i386.md (floatunssisf2, floatunsdisf2,
16574 floatunsdidf2): New patterns.
16576 2003-01-25 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
16578 * cfgloopmanip.c (force_single_succ_latches): Fix missindentation.
16580 2003-02-05 Hans Boehm <Hans.Boehm@hp.com>
16582 * config/ia64/unwind-ia64.c: include coretypes.h, tm.h to get
16583 config/ia64/linux.h
16585 2003-02-05 Roger Sayle <roger@eyesopen.com>
16587 * cfgloop.h (flow_bb_inside_loop_p): Correct prototype again.
16589 2003-02-05 Jakub Jelinek <jakub@redhat.com>
16591 PR optimization/8555
16592 * config/i386/i386.md (sse_mov?fcc split): Handle op2 == op3 case
16593 instead of aborting.
16595 2003-02-04 Richard Henderson <rth@redhat.com>
16597 * config/i386/i386.md (UNSPEC_BSF): Remove.
16598 (ffssi2): Split into cmove and no_cmove insns and splitters;
16599 lose pentium float trick for now.
16600 (ffssi_1): Add * to name; use CTZ instead of UNSPEC.
16601 (ctzsi2, clzsi2, bsr): New.
16603 2003-02-04 Richard Henderson <rth@redhat.com>
16605 * config/ia64/ia64.c (rtx_needs_barrier): Handle POPCOUNT,
16606 UNSPEC_GETF_EXP; remove UNSPEC_POPCNT.
16607 * config/ia64/ia64.md (UNSPEC_POPCNT): Remove.
16608 (ffsdi2): Use popcount instead of unspec.
16609 (popcountdi2): Rename from *popcnt.
16610 (ctzdi2, clzdi2, getf_exp_tf): New.
16612 2003-02-04 Kazu Hirata <kazu@cs.umass.edu>
16614 * genconfig.c (main): Generate CC0_P.
16615 * rtl.h (CC0_P): Remove.
16617 2003-02-04 Richard Henderson <rth@redhat.com>
16619 * libgcc2.h, libgcc2.c (__ffsSI2): New.
16620 (__ffsDI2): Rename from __ffsdi2.
16621 * mklibgcc.in (lib2funcs): Add _ffssi2.
16623 2003-02-04 Richard Henderson <rth@redhat.com>
16625 * libgcc2.c (__paritysi2, __paritydi2): Replace last two reduction
16626 rounds with a "bit table" lookup.
16628 2003-02-04 Ulrich Weigand <uweigand@de.ibm.com>
16630 * reload.c (find_reloads): Do not use the mode specified in the insn
16631 pattern as reload mode for address operands. Do not generate optional
16632 reloads for operands where a mandatory reload was already pushed.
16634 2003-02-04 Richard Henderson <rth@redhat.com>
16636 * longlong.h [alpha] (count_leading_zeros, count_trailing_zeros): Use
16637 builtins instead of inline assembly.
16639 2003-02-04 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
16642 * libgcc2.c (__subvdi3): Fix typo.
16644 2003-02-04 Jan Hubicka <jh@suse.cz>
16646 * i386.md (movti_rex64): Fix constraint.
16648 2003-02-04 Jan Hubicka <jh@suse.cz>
16650 * i386.md (vector push splitters): Fix typo in resolving conflict.
16652 2003-02-04 Rodney Brown <rbrown64@csc.com.au>
16654 * config/i386/i386.c (x86_function_profiler): Fix typo in format.
16656 2003-02-04 Phil Edwards <pme@gcc.gnu.org>
16658 * doc/install.texi (*-*-linux-gnu): Mention glibc requirements
16659 for recent libstdc++. Remove formatting cruft.
16661 2003-02-04 Jakub Jelinek <jakub@redhat.com>
16663 * dwarf2out.c (dwarf2out_finish): Add AT_comp_dir
16664 attribute even if input file name is absolute, but one of the
16665 includes is relative.
16667 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
16669 * doc/gcc.texi, doc/gccint.texi, doc/gcov.texi,
16670 doc/include/fdl.texi, doc/invoke.texi: Update to GFDL 1.2.
16671 * doc/install.texi: Update copyright dates. Update to GFDL 1.2.
16673 2003-02-03 Richard Henderson <rth@redhat.com>
16675 * libgcc2.c (__ffsdi2, __clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
16676 __popcountsi2, __popcountdi2, __paritysi2, __paritydi2): Change
16677 return type to "int". Shuffle declarations and undef int trap.
16678 * libgcc2.h: Remove their declarations.
16679 * optabs.c (expand_unop): Force outmode to int for bitops.
16681 2003-02-03 Bob Wilson <bob.wilson@acm.org>
16683 * config/xtensa/xtensa.c (order_regs_for_local_alloc): Order the
16684 coprocessor registers before floating-point registers.
16685 * config/xtensa/xtensa.h (REG_ALLOC_ORDER): Adjust register numbers
16686 to account for a previously removed register.
16687 (SPEC_REG_FIRST, SPEC_REG_LAST, SPEC_REG_NUM, COUNT_REGISTER_REGNUM):
16688 Delete unused macros.
16690 2003-02-03 Jan Hubicka <jh@suse.cz>
16692 * i386.c (ix86_expand_store_builtin): Always force op1 to register.
16693 (mov*_internal): Fix predicates; require one of operands to not be
16695 (SSE?MMX move expanders): Fix predicates; force one of operands to
16697 (SSE/MMX push patterns): Reorganize; fix x86-64 code generation.
16698 (movups/movupd/movdqu patterns): Force one of operands to not be
16701 2003-02-03 Roger Sayle <roger@eyesopen.com>
16703 * hooks.c (hook_rtx_rtx_identity): Generic hook function that
16704 takes a single rtx and returns it unmodified.
16705 * hooks.h (hook_rtx_rtx_identity): Prototype here.
16706 * target.h (struct gcc_target): Add "delegitimize_address"
16707 field to target structure.
16708 * target-def.h (TARGET_DELEGITIMIZE_ADDRESS): Provide default
16709 for delegitimize_address target using hook_rtx_rtx_identity.
16710 (TARGET_INITIALIZER): Initialize delegitimize_address field
16711 using TARGET_DELEGITIMIZE_ADDRESS macro.
16712 * simplify-rtx.c (avoid_constant_pool_reference): Handle float
16713 extensions of constant pool references. Use delegitimize_address
16714 to undo the obfuscation of "-fpic".
16715 * Makefile.in (simplify-rtx.o): Add dependency on target.h.
16717 * config/i386/i386.c (TARGET_DELEGITIMIZE_ADDRESS): Define as
16718 i386_simplify_dwarf_addr.
16719 (ix86_find_base_term): Simplify using i386_simplify_dwarf_addr.
16720 (maybe_get_pool_constant): Likewise.
16722 2003-02-03 Jan Hubicka <jh@suse.cz>
16724 * i386.c (ix86_expand_int_movcc): Fix setcc sign bit case.
16726 2003-02-03 Jan Hubicka <jh@suse.cz>
16728 * regclass.c (cannot_change_mode_set_regs): Correct argument order.
16730 2003-02-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16732 * mips/_tilib.c: Don't include tsystem.h or defaults.h. Don't
16733 define LIBGCC2_WORDS_BIG_ENDIAN. Include coretypes.h and tm.h.
16735 2003-02-02 Andreas Schwab <schwab@suse.de>
16737 * varasm.c (asm_output_aligned_bss): Declare as possibly unused.
16739 2003-02-02 Richard Earnshaw <rearnsha@arm.com>
16741 * arm.md (sibcall_epilogue): Set the "conds" to "clob".
16742 (epilogue_insns): Likewise.
16744 2003-02-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16746 * doc/install.texi (hppa*-hp-hpux11*): Update installation notes.
16748 2003-02-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16750 * pa-protos.h (attr_length_millicode_call): Remove second argument.
16751 (attr_length_indirect_call, attr_length_indirect_call,
16752 attr_length_save_restore_dltp): New prototypes.
16753 * pa.c (attr_length_millicode_call): Remove second argument. Check
16754 INSN_ADDRESSES_SET_P in distance calculation.
16755 (output_millicode_call): Check INSN_ADDRESSES_SET_P before using
16757 (attr_length_call): Check INSN_ADDRESSES_SET_P in distance calculation.
16758 (output_call): Check INSN_ADDRESSES_SET_P before using INSN_ADDRESSES.
16759 Call attr_length_call directly.
16760 (attr_length_indirect_call, output_indirect_call,
16761 attr_length_save_restore_dltp): New functions.
16762 * pa.md (attr_length_millicode_call): Drop second argument from all
16764 (return_internal_pic): Delete.
16765 (return_external_pic): Remove use of PIC register and pic operand and
16767 (epilogue): Use return_internal for both normal and pic code.
16768 (call, call_value): Emit new 32-bit pic patterns for symref and
16769 indirect calls. Remove uses for arg pointer and pic register.
16770 (call_symref_pic, call_symref_pic_post_reload, call_reg_pic,
16771 call_reg_pic_post_reload, call_val_symref_pic,
16772 call_val_symref_pic_post_reload, call_val_reg_pic,
16773 call_val_reg_pic_post_reload): New pre and post reload insn patterns.
16774 Implement define_split and define_peephole2 patterns for pre reload
16776 (call_symref_64bit, call_internal_reg_64bit, call_value_symref_64bit,
16777 call_value_internal_reg_64bit): Shorten names.
16778 (all call patterns): Explicitly indicate registers used and clobbered.
16779 Use attr_length_indirect_call and attr_length_save_restore_dltp for
16780 attribute length calculation. Move code generation for indirect calls
16781 to output_indirect_call.
16782 (sibcall, sibcall_value): Don't restore PIC register.
16783 (exception_receiver, builtin_setjmp_receiver): Add blockage after PIC
16786 2003-02-02 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
16788 * doc/install.texi (Testing): Simplify and compress instructions
16789 concerning Dejagnu.
16791 2003-02-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16793 * collect2.c (pexecute_pid): Rename to pid.
16794 (collect_wait, collect_execute, scan_prog_file, scan_libraries): Use
16797 2003-02-01 Geoffrey Keating <geoffk@apple.com>
16799 * doc/extend.texi (Function Attributes): Remove documentation
16800 for PowerPC Windows NT function attributes..
16802 2003-02-01 Daniel Jacobowitz <drow@mvista.com>
16804 * dwarf2out.c (gen_type_die): Check for typedefs before calling
16805 for TYPE_MAIN_VARIANT.
16807 2003-02-01 Richard Henderson <rth@redhat.com>
16809 * libgcc2.c: Include auto-host.h.
16810 (ATTRIBUTE_HIDDEN): New.
16811 (__clz_tab): Don't declare here for clz and ctz.
16812 (__clzsi2, __clzdi2): Use count_leading_zeros.
16813 (__ctzsi2, __ctzdi2): Use count_trailing_zeros.
16814 (__popcount_tab): Mark ATTRIBUTE_HIDDEN.
16815 (__paritysi2, __paritydi2): Use shifts instead of __popcount_tab.
16816 * longlong.h (__clz_tab): Mark ATTRIBUTE_HIDDEN.
16818 2003-02-01 Richard Henderson <rth@redhat.com>
16820 * config/i386/i386.md (addsi_1_zext splitter): Add TARGET_64BIT
16821 to the conditional.
16822 (ashlsi3_1_zext splitter): Likewise.
16824 2003-02-01 Richard Henderson <rth@redhat.com>
16826 * optabs.c (expand_unop): Use word_mode for outmode of bit scaners.
16827 * libgcc2.c (__ffsdi2, __clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
16828 __popcountsi2, __popcountdi2, __paritysi2 __paritydi2): Change
16829 return type to Wtype.
16831 * libgcc-std.ver (GCC_3.4): Fix inheritance.
16833 * config/i386/i386.md (ffssi2): Use nonimmediate_operand for
16834 expander input constraint.
16836 2003-02-01 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
16838 * optabs.h (optab_index): Add OTI_clz, OTI_ctz, OTI_popcount and
16840 (clz_optab, ctz_optab, popcount_optab, parity_optab): New.
16841 * optabs.c (widen_clz, expand_parity): New.
16842 (expand_unop): Handle clz and parity. Hardcode SImode as outmode
16843 for libcalls to clz, ctz, popcount, and parity.
16844 (init_optabs): Init clz_optab, ctz_optab, popcount_optab and
16845 parity_optab, and set up libfunc handlers.
16846 * libgcc2.c (__clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
16847 __popcountsi2, __popcountdi2, __paritysi2 __paritydi2,
16848 __popcount_tab): New.
16849 * libgcc2.h: Declare them.
16850 * libgcc-std.ver (GCC_3.4): Add new functions from libgcc2.c.
16851 * genopinit.c (optabs): Add clz_optab, ctz_optab, popcount_optab
16853 * builtin-types.def (BT_FN_INT_LONG, BT_FN_INT_LONGLONG): New.
16854 * builtins.def (BUILT_IN_CLZ, BUILT_IN_CTZ, BUILT_IN_POPCOUNT,
16855 BUILT_IN_PARITY, BUILT_IN_FFSL, BUILT_IN_CLZL, BUILT_IN_CTZL,
16856 BUILT_IN_POPCOUNTL, BUILT_IN_PARITYL, BUILT_IN_FFSLL,
16857 BUILT_IN_CLZLL, BUILT_IN_CTZLL, BUILT_IN_POPCOUNTLL,
16858 BUILT_IN_PARITYLL): New.
16859 * builtins.c (expand_builtin_unop): Rename from expand_builtin_ffs
16860 and add optab argument.
16861 (expand_builtin): Expand BUILT_IN_{FFS,CLZ,POPCOUNT,PARITY}*.
16862 * tree.def (CLZ_EXPR, CTZ_EXPR, POPCOUNT_EXPR, PARITY_EXPR): New.
16863 * expr.c (expand_expr): Handle them.
16864 * fold-const.c (tree_expr_nonnegative_p): Likewise.
16865 * rtl.def (CLZ, CTZ, POPCOUNT, PARITY): New.
16866 * reload1.c (eliminate_regs): Handle them.
16867 (elimination_effects): Likewise.
16868 * function.c (instantiate_virtual_regs_1): Likewise
16869 * genattrtab.c (check_attr_value): Likewise.
16870 * simplify-rtx.c (simplify_unary_operation): Likewise.
16871 * c-common.c (c_common_truthvalue_conversion): Handle POPCOUNT_EXPR.
16872 * combine.c (combine_simplify_rtx): Handle POPCOUNT and PARITY.
16873 (nonzero_bits): Handle CLZ, CTZ, POPCOUNT and PARITY.
16874 * config/alpha/alpha.md (clzdi2, ctzdi2, popcountdi2): New.
16875 * config/arm/arm.c (arm_init_builtins): Rename __builtin_clz to
16877 * Makefile.in (LIB2FUNCS_1, LIB2FUNCS_2): Move...
16878 * mklibgcc.in (lib2funcs): ...here and merge. Add new members.
16879 * doc/extend.texi (Other Builtins): Add new builtins.
16880 * doc/md.texi (Standard Names): Add new patterns.
16882 2003-02-01 Ulrich Weigand <uweigand@de.ibm.com>
16884 * reload.c: Revert 2003-01-31 change.
16886 2003-02-01 Jan Hubicka <jh@suse.cz>
16888 * combine.c (combine_simplify_rtx): Use reversed_comparison_code_parts.
16890 2003-02-01 Richard Sandiford <rsandifo@redhat.com>
16892 * flags.h (flag_volatile): Remove declaration.
16893 (flag_volatile_global, flag_volatile_static): Likewise.
16894 * c-typeck.c (build_indirect_ref): Don't check flag_volatile.
16895 * toplev.c (flag_volatile): Remove definition.
16896 (flag_volatile_global, flag_volatile_static): Likewise.
16897 (f_options): Remove corresponding entries here.
16898 * varasm.c (make_decl_rtl): Don't check flag_volatile_global
16899 or flag_volatile_static.
16900 * doc/invoke.texi: Remove documentation of -fvolatile,
16901 -fvolatile-global and -fvolatile-static.
16903 2003-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16905 * pa.c (pa_output_function_prologue, pa_output_function_epilogue): Move
16906 updating of total_code_bytes from prologue to epilogue.
16908 2003-01-31 Ulrich Weigand <uweigand@de.ibm.com>
16910 * reload.c (find_reloads): Do not use the mode specified in the insn
16911 pattern as reload mode for address operands. Do not generate optional
16912 reloads for operands where a mandatory reload was already pushed.
16913 Generate optional reloads only in the final pass though find_reloads.
16914 (have_replacement_p): New function.
16916 2003-01-31 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
16918 * doc/install.texi (Testing): Remove a reference to our obsolete
16919 /testresults web pages and strip redundant information concerning
16921 (Binaries): Refer to Microsoft Windows instead of listing all
16924 2003-02-01 Jan Hubicka <jh@suse.cz>
16926 * loop.c (emit_prefetch_instructions): Do conversion at right place in
16929 * combine.c (simplify_set): Reverse order of ragumetns to
16930 REG_CANNOT_CHANGE_MODE_P
16931 * df.c (df_def_record_1): Likewise.
16932 * recog.c (register_operand): Likewise.
16933 * simplify-rtx.c (simplify_subreg): Likewise.
16934 * hard-reg-set.h (REG_CANNOT_CHANGE_MODE_P): Update use of
16935 CANNOT_CHANGE_MODE_CLASS.
16936 * regclass.c (cannot_change_mode_set_regs, invalid_mode_change_p):
16938 * reload.c (push_reload): Likewise.
16939 * alpha.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
16940 * ia64.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
16941 * mips.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
16942 * mips-protos.h (mips_cannot_change_mode_class): Update prototype.
16943 * mips.c (mips_cannot_change_mode_class): Update.
16944 * pa64-regs.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
16945 * rs6000.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
16946 * s390.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
16947 * sh.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
16948 * sh-protos.h (sh_cannot_change_mode_class): Update prototype.
16949 * sh.c (sh_cannot_change_mode_class): Update.
16950 * i386.h (CANNOT_CHANGE_MODE_CLASS): New.
16951 * tm.texi (CANNOT_CHANGE_MODE_CLASS): Update documentation.
16953 2003-01-31 Geoffrey Keating <geoffk@apple.com>
16955 * config/darwin.h (LINK_COMMAND_SPEC): Update for Nathan's recent
16956 change to LINK_COMMAND_SPEC in gcc.c.
16958 2003-01-31 Jan Hubicka <jh@suse.cz>
16961 * i386.c (override_options): Use DEFAULT_PCC_STRUCT_RETURN.
16963 2003-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16965 * pa32-regs.h (REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Delete
16968 2003-01-31 Nathan Sidwell <nathan@codesourcery.com>
16970 * tree.h (TYPE_BINFO_SIZE, TYPE_BINFO_SIZE_UNIT): Remove.
16971 (BINFO_ELTS): New #define.
16972 * stor-layout.c (finalize_record_size): Don't set them.
16973 * cp/cp-tree.h (BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX,
16974 BINFO_PRIMARY_BASE_OF): Use BINFO_ELTS.
16975 (BINFO_LANG_ELTS): New #define.
16976 * cp/tree.c (make_binfo): Use BINFO_LANG_ELTS.
16977 * java/class.c (make_class): Use BINFO_ELTS.
16978 (set_super_info): Likewse.
16979 (add_interface_do): Likewise.
16980 * objc/objc-act.c (start_class): Use BINFO_ELTS.
16982 2003-01-31 Danny Smith <dannysmith@users.sourceforge.net>
16984 * timevar.c (getrusage): Don't ever declare if not HAVE_GETRUSAGE.
16985 (times): Don't ever declare if not HAVE_TIMES.
16986 (clock): Don't ever declare if not HAVE_CLOCK.
16988 2003-01-30 Richard Henderson <rth@redhat.com>
16990 * flow.c (update_life_info): Zap life info after cleanup_cfg.
16991 (regno_uninitialized): Use correct live at function entry set.
16992 (regno_clobbered_at_setjmp): Likewise.
16994 * expr.c (store_expr): Promote all MEM intermediates to regs.
16996 2003-01-30 Kazu Hirata <kazu@cs.umass.edu>
16998 * config/arm/arm.c: Fix comment typos.
16999 * config/arm/arm.h: Likewise.
17000 * config/arm/netbsd-elf.h: Likewise.
17001 * config/arm/netbsd.h: Likewise.
17003 2003-01-30 Geoffrey Keating <geoffk@apple.com>
17005 * gengtype.c (struct walk_type_data): Add needs_cast_p.
17006 (walk_type): Set needs_cast_p in walk_type_data.
17007 (write_types_process_field): Supply casts when required to suppress
17009 (write_root): Cast gt_pch_n_S to suppress warning.
17010 * Makefile.in: Remove -Wno-error from gtype-desc.o and c-decl.o.
17011 * config/rs6000/rs6000.c (print_operand): Mask off high bits only
17012 when they might exist.
17013 * config/rs6000/t-rs6000: Remove -Wno-error from varasm.o,
17014 insn-conditions.o, and rs6000.o.
17016 2003-01-30 Richard Henderson <rth@redhat.com>
17018 * ggc-page.c (G.context_depth_allocations): New.
17019 (G.context_depth_collections): New.
17020 (alloc_page): Set G.context_depth_allocations.
17021 (ggc_collect): Set G.context_depth_collections.
17022 (ggc_push_context): Limit to HOST_BITS_PER_LONG contexts.
17023 (ggc_pop_context): Early exit for no allocations or collections.
17025 2003-01-30 Richard Henderson <rth@redhat.com>
17027 * tree-inline.c (walk_tree): Streamline duplicate hash table lookup.
17029 2003-01-30 Richard Earnshaw <rearnsha@arm.com>
17031 * arm.c (arm_compute_initial_elimination_offset): If optimizing for
17032 size, the link register is always saved if any other register is
17035 2003-01-30 Kazu Hirata <kazu@cs.umass.edu>
17037 * config/h8300/h8300-protos.h: Update the prototype for
17039 (cpp_reader): Declare before it is used.
17040 * config/h8300/h8300.c (compute_plussi_cc): Change the return
17042 * config/h8300/h8300.md (monitor_prologue): Call abort() if we
17043 see an unknown H8 variant.
17045 2003-01-30 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
17048 * config/rs6000/rtems.h: Add CPP_OS_DEFAULT_SPEC.
17049 * config/rs6000/sysv4.h: Add CPP_OS_RTEMS_SPEC.
17050 * config/rs6000/t-rtems: New file. multilib variants to match OS.
17051 * config.gcc (powerpc-*-rtems*): Use rs6000/t-rtems instead of
17052 rs6000/t-ppcgas so we get the desired multilibs.
17054 2003-01-30 Nick Clifton <nickc@redhat.com>
17056 * config/arm/arm.c (arm_output_epilogue): Update stack pointer
17057 when popping saved IP register off the stack.
17059 2003-01-30 Kazu Hirata <kazu@cs.umass.edu>
17061 * config/rs6000/aix43.h: Fix comment typos.
17062 * config/rs6000/aix51.h: Likewise.
17063 * config/rs6000/aix52.h: Likewise.
17064 * config/rs6000/altivec.h: Likewise.
17065 * config/rs6000/rs6000.c: Likewise.
17066 * config/rs6000/rs6000.h: Likewise.
17067 * config/rs6000/rs6000.md: Likewise.
17068 * config/rs6000/spe.md: Likewise.
17070 2003-01-29 Mark Mitchell <mark@codesourcery.com>
17072 * c-common.c (builtin_define_float_constants): Define
17073 __<TYPE>_HAS_INFINITY__ and __<TYPE>_HAS_QUIET_NAN__.
17075 2003-01-30 Kazu Hirata <kazu@cs.umass.edu>
17077 * config/sh/lib1funcs.asm: Fix comment typos.
17078 * config/sh/linux.h: Likewise.
17079 * config/sh/sh.c: Likewise.
17080 * config/sh/sh.md: Likewise.
17082 2003-01-30 Loren James Rittle <ljrittle@acm.org>
17084 * objc/Make-lang.in (objc-parse.y): Find c-parse.in in $(srcdir).
17086 2003-01-30 Alexandre Oliva <aoliva@redhat.com>
17088 * config/fp-bit.h (__make_dp): Declare if TMODES.
17090 2003-01-29 Kazu Hirata <kazu@cs.umass.edu>
17092 * config/h8300/h8300.h (PREDICATE_CODES): Add entries for
17093 general_operand_src and general_operand_dst.
17095 2003-01-29 David Edelsohn <edelsohn@gnu.org>
17097 * config/rs6000/rs6000.c (function_arg_pass_by_reference):
17098 Return true for variable sized types.
17099 (rs6000_va_arg): Handle variable sized types passed by reference
17102 2003-01-29 Richard Earnshaw <rearnsha@arm.com>
17104 * arm.c (arm_legtimize_address): New function.
17105 * arm-protos.h (arm_legtimize_address): Add prototype.
17106 * arm.h (ARM_LEGITIMIZE_ADDRESS): Use arm_legitimize_address.
17107 (LEGITIMIZE_ADDRESS, THUMB_LEGITIMIZE_ADDRESS): Wrap with
17110 2003-01-29 Joel Sherrill <joel@OARcorp.com>
17113 * gthr-rtems.h: Define __GTHREAD_MUTEX_INIT. Apparently no code
17114 depended on it being defined until now.
17116 2003-01-29 Joel Sherrill <joel@OARcorp.com>
17119 * config/mips/rtems.h: Predefine __USE_INIT_FINI__ so generic
17120 RTEMS code knows which C++ initialization style the toolset
17121 configuration is using.
17123 2003-01-29 Joel Sherrill <joel@OARcorp.com>
17126 * config/m68k/t-crtstuff: Replace spaces with tabs, add
17127 $(MULTILIB_CFLAGS) as compiler option and multilib crtbegin/end.o.
17129 2003-01-29 Joel Sherrill <joel@OARcorp.com>
17132 * config.gcc (hppa1.1-rtems): Did not include t-rtems nor enable
17134 * config/pa/rtems.h (LIB_SPEC): Use -N when linking.
17136 2003-01-29 Nick Clifton <nickc@redhat.com>
17138 * Makefile.in (c-parse.o): Locate source file in $(parsedir)
17141 2003-01-29 Andrew Haley <aph@redhat.com>
17143 * tree-inline.c (walk_tree): Add CHAR_TYPE.
17145 2003-01-29 Jan Hubicka <jh@suse.cz>
17147 * i386.md (subdi3_carry_rex64): Fix typo.
17149 2003-01-28 Stan Shebs <shebs@apple.com>
17151 * coretypes.h (cpp_reader): Forward declare struct.
17152 * c-pragma.h (cpp_reader): Remove forward declaration.
17153 * hashtable.h (cpp_reader): Likewise.
17154 * scan.h (cpp_reader): Likewise.
17155 * tree.h (cpp_reader): Likewise.
17156 * config/darwin-protos.h (cpp_reader): Likewise.
17157 * config/arm/arm-protos.h (cpp_reader): Likewise.
17158 * config/rs6000/rs6000-protos.h: Remove GCC_CPPLIB_H ifdef, use
17159 struct cpp_reader in prototypes.
17161 2003-01-28 Christian Cornelssen <ccorn@cs.tu-berlin.de>
17163 * doc/install.texi: Add documentation for installation into
17164 tooldirs and with DESTDIR.
17166 2003-01-28 Richard Henderson <rth@redhat.com>
17168 * config.gcc (ia64*-*-aix*): Remove.
17169 * config/ia64/aix.h, config/ia64/t-aix: Remove file.
17170 * config/ia64/unwind-aix.c: Remove file.
17172 2003-01-28 Andreas Schwab <schwab@suse.de>
17174 * config/m68k/m68k.md (tablejump+2): Don't sign extend an address
17176 * config/m68k/apollo68.h (ASM_RETURN_CASE_JUMP): Likewise.
17177 * config/m68k/coff.h (ASM_RETURN_CASE_JUMP): Likewise.
17178 * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Likewise.
17179 * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
17180 * config/m68k/mot3300.h (ASM_RETURN_CASE_JUMP): Likewise.
17181 * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
17182 * config/m68k/pbb.h (ASM_RETURN_CASE_JUMP): Likewise.
17184 2003-01-28 Richard Sandiford <rsandifo@redhat.com>
17186 * combine.c (nonzero_bits): Fix check for negative divide operands.
17188 2003-01-28 Richard Henderson <rth@redhat.com>
17190 * config/ia64/ia64.c (ia64_rwreloc_section_type_flags): New.
17191 * config/ia64/hpux.h (TARGET_SECTION_TYPE_FLAGS): New.
17193 2003-01-28 Richard Henderson <rth@redhat.com>
17195 * cse.c (find_best_addr): Kill !ADDRESS_COST code.
17197 * config/cris/cris.c (cris_address_cost): Make static.
17198 (TARGET_RTX_COSTS, TARGET_ADDRESS_COST): New.
17199 * config/cris/cris.h (ADDRESS_COST): Remove.
17200 * config/cris/cris-protos.h: Update.
17202 2003-01-23 Mike Stump <mrs@apple.com>
17204 * regclass.c (init_reg_autoinc): New function.
17205 (regclass): Move initialization of forbidden_inc_dec_class from
17207 (init_regs): to here. Avoids reinitialization for each function,
17208 saving compilation time.
17210 2003-01-28 Jason Merrill <jason@redhat.com>
17212 * cpplib.h (struct cpp_options): Add warn_deprecated field.
17213 * cppinit.c (cpp_create_reader): Turn it on by default.
17214 * c-opts.c (c_common_decode_option): Set it.
17215 * cpplib.c (do_pragma_once): Only complain about #pragma once
17216 if warn_deprecated is set.
17218 2003-01-28 Dale Johannesen <dalej@apple.com>
17220 * emit-rtl.c (const_double_htab_hash): Use mode in the hash.
17221 * loop.c (scan_loop): Move movables on -Os rich-register targets.
17222 * config/rs6000/rs6000.md (sibcall*): Use match_operand for LR.
17224 2003-01-28 Richard Henderson <rth@redhat.com>
17226 * target.h (targetm.address_cost): New.
17227 * target-def.h (TARGET_ADDRESS_COST): New.
17228 (TARGET_RTX_COSTS): Uncomment. Oops.
17229 * cse.c (address_cost): Use new target hook.
17230 (default_address_cost): New.
17231 * output.h (default_address_cost): Declare.
17232 * hooks.c (hook_int_rtx_0): New.
17233 * hooks.h (hook_int_rtx_0): Declare.
17234 * loop.c (combine_givs_p): Remove if 0 code.
17235 * system.h (ADDRESS_COST): Poison.
17237 * config/alpha/alpha.c, config/alpha/alpha.h, config/d30v/d30v.c,
17238 config/d30v/d30v.h, config/ia64/ia64.c, config/ia64/ia64.h,
17239 config/m32r/m32r.c, config/m32r/m32r.h, config/mcore/mcore.c,
17240 config/mcore/mcore.h, config/mmix/mmix.c, config/mmix/mmix.h,
17241 config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/sparc/sparc.c,
17242 config/sparc/sparc.h, config/v850/v850.c, config/v850/v850.h,
17243 config/xtensa/xtensa.c, config/xtensa/xtensa.h
17244 (TARGET_ADDRESS_COST): Define as hook_int_rtx_0.
17245 (ADDRESS_COST): Remove.
17247 * config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
17248 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
17249 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
17250 config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
17251 config/dsp16xx/dsp16xx.h, config/i386/i386-protos.h,
17252 config/i386/i386.c, config/i386/i386.h, config/i960/i960-protos.h,
17253 config/i960/i960.c, config/i960/i960.h, config/ip2k/ip2k-protos.h,
17254 config/ip2k/ip2k.c, config/ip2k/ip2k.h, config/mips/mips-protos.h,
17255 config/mips/mips.c, config/mips/mips.h,
17256 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
17257 config/m68hc11/m68hc11.h, config/ns32k/ns32k-protos.h,
17258 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa-protos.h,
17259 config/pa/pa.c, config/pa/pa.h, config/s390/s390-protos.h,
17260 config/s390/s390.c, config/s390/s390.h, config/vax/vax-protos.h,
17261 config/vax/vax.c, config/vax/vax.h
17262 (foo_address_cost): Make static.
17263 (TARGET_ADDRESS_COST): New.
17264 (ADDRESS_COST): Remove.
17266 * config/arm/arm.h, config/arm/arm.c, config/m88k/m88k.h,
17267 config/m88k/m88k.c, config/romp/romp.h, config/romp/romp.c,
17268 config/sh/sh.c, config/sh/sh.h, config/stormy16/stormy16.c,
17269 config/stormy16/stormy16.h
17270 (ADDRESS_COST): Move code ...
17271 (foo_address_cost): ... here.
17272 (TARGET_ADDRESS_COST): New.
17274 * config/m32r/m32r.c (m32r_address_cost): Remove.
17275 * config/m32r/m32r-protos.h: Update.
17277 * config/mmix/mmix.c (mmix_address_cost): Remove.
17278 * config/mmix/mmix-protos.h: Update.
17280 * config/mn10300/mn10300.c (mn10300_address_cost_1): Rename from
17281 mn10300_address_cost; move unsig allocation ...
17282 (mn10300_address_cost): ... here.
17283 (TARGET_ADDRESS_COST): New.
17284 * config/mn10300/mn10300-protos.h: Update.
17285 * config/mn10300/mn10300.h (ADDRESS_COST): Remove.
17287 * doc/tm.texi: Update.
17289 2003-01-28 Vladimir Makarov <vmakarov@redhat.com>
17291 * haifa-sched.c (schedule_insn): Return necessary cycle advance
17292 after issuing the insn.
17293 (rank_for_schedule): Make a insn with /S the highest priority
17295 (move_insn): Ignore schedule groups. Clear SCHED_GROUP_P.
17296 (choose_ready): Check SCHED_GROUP_P.
17297 (schedule_block): Advance cycle after issuing insn if it is
17298 necessary. Don't reorder insns if there is an insn with /S.
17299 (set_priorities): Ignore schedule groups.
17301 * sched-deps.c (remove_dependence, group_leader): Remove the
17303 (add_dependence): Ignore schedule groups.
17304 (set_sched_group_p): Don't make copy of dependencies from previous
17305 insn of the schedule group. Add anti-dependency to the previous
17306 insn of the schedule group.
17307 (compute_forward_dependences): Ignore schedule groups.
17309 * sched-ebb.c (init_ready_list): Ignore schedule groups.
17311 * sched-rgn.c (init_ready_list): Ditto.
17312 (can_schedule_ready_p): Ditto.
17314 2003-01-28 Vladimir Makarov <vmakarov@redhat.com>
17316 * config/i386/i386.md (*movsi_1): Use movdqa to move one xmm
17317 register to another one.
17319 2003-01-28 Richard Henderson <rth@redhat.com>
17321 * calls.c (default_must_pass_in_stack): Fix typo in !type case.
17323 2003-01-28 Roger Sayle <roger@eyesopen.com>
17325 * cse.c (cse_insn): Avoid redundant REG_EQUAL notes.
17327 2003-01-28 Richard Sandiford <rsandifo@redhat.com>
17329 * config/sh/sh.h (CLASS_MAX_NREGS): If TARGET_SHMEDIA, and the given
17330 class contains a floating-point register, return the size of the
17331 mode in half words.
17333 2003-01-28 Jan Hubicka <jh@suse.cz>
17335 * i386.c (ix86_carry_flag_operator): New predicate.
17336 (fcmov_operator): Fix whitespace.
17337 (ix86_expand_carry_flag_compare): Deal with floating point.
17338 (ix86_expand_int_movcc): Deal with fp; update insn expansion
17339 (ix86_expand_int_addcc): Likewise.
17340 (ix86_expand_strlensi_unroll_1): likewsie.
17341 * i386.h (PREDICATE_CODES): Add ix86_carry_flag_operator.
17342 * i386.md (add?i_carry_rex64): Use new predicate.
17343 (sub?i3_carry_rex64): Likewise.
17344 (x86_mov?icc_0_m1*): Likewise.
17346 2003-01-28 Andreas Schwab <schwab@suse.de>
17348 * cfgloopmanip.c (create_preheader): Initialize src to avoid
17351 * expmed.c (emit_store_flag): Fix cast to avoid sign
17352 comparison warning.
17354 * combine.c (force_to_mode): Add cast to fix warning when
17355 STORE_FLAG_VALUE is negative.
17357 2003-01-27 Richard Henderson <rth@redhat.com>
17359 * Makefile.in (cse.o): Depend on TARGET_H.
17360 * cse.c (rtx_cost): Use targetm.rtx_costs.
17361 * system.h (CONST_COSTS RTX_COSTS DEFAULT_RTX_COSTS): Poison.
17362 * doc/tm.texi: Update.
17364 * target.h (targetm.rtx_costs): New.
17365 * target-def.h (TARGET_RTX_COSTS): New.
17366 * hooks.c (hook_bool_rtx_int_int_intp_false): New.
17369 * config/alpha/alpha.c (alpha_rtx_cost_data): New.
17370 (alpha_rtx_costs, TARGET_RTX_COSTS): New.
17371 * config/alpha/alpha.h (PROCESSOR_MAX): New.
17372 (CONST_COSTS, RTX_COSTS): Remove.
17374 * config/arc/arc.c, config/arc/arc.h, config/c4x/c4x.c,
17375 config/c4x/c4x.h, config/cris/cris.c, config/cris/cris.h,
17376 config/d30v/d30v.c, config/d30v/d30v.h, config/dsp16xx/dsp16xx.c,
17377 config/dsp16xx/dsp16xx.h, config/frv/frv.c, config/frv/frv.h,
17378 config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
17379 config/i370/i370.h, config/i386/i386.c, config/i386/i386.h,
17380 config/i960/i960.c, config/i960/i960.h, config/ia64/ia64.c,
17381 config/ia64/ia64.h, config/m32r/m32r.c, config/m32r/m32r.h,
17382 config/m68k/m68k.c, config/m68k/m68k.h, config/m88k/m88k.c,
17383 config/m88k/m88k.h, config/mcore/mcore.c, config/mcore/mcore.h,
17384 config/mips/mips.c, config/mips/mips.h, config/mn10200/mn10200.c,
17385 config/mn10200/mn10200.h, config/mn10300/mn10300.c,
17386 config/mn10300/mn10300.h, config/ns32k/ns32k.c, config/ns32k/ns32k.h,
17387 config/pa/pa.c, config/pa/pa.h, config/pdp11/pdp11.c,
17388 config/pdp11/pdp11.h, config/romp/romp.c, config/romp/romp.h,
17389 config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/s390/s390.c,
17390 config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
17391 config/stormy16/stormy16.c, config/stormy16/stormy16.h,
17392 config/v850/v850.c, config/v850/v850.h,
17393 config/xtensa/xtensa.c, config/xtensa/xtensa.h
17394 (CONST_COSTS, RTX_COSTS): Move code ...
17395 (foo_rtx_costs, TARGET_RTX_COSTS): ... here.
17397 * config/arm/arm.c (arm_rtx_costs_1): Rename from arm_rtx_costs.
17398 (arm_rtx_costs, TARGET_RTX_COSTS): New.
17399 * config/arm/arm-protos.h: Update.
17400 * config/arm/arm.h (DEFAULT_RTX_COSTS): Remove.
17402 * config/avr/avr.h (CONST_COSTS): Move code ...
17403 * config/avr/avr.c (avr_rtx_costs): ... here.
17404 (default_rtx_costs): Make static.
17405 * config/avr/avr-protos.h: Update.
17407 * config/h8300/h8300.c (const_costs): Make static.
17408 (h8300_and_costs, h8300_shift_costs): Likewise.
17409 * config/h8300/h8300-protos.h: Update.
17411 * config/ip2k/ip2k.h (DEFAULT_RTX_COSTS): Remove.
17412 (CONST_COSTS): Move code ...
17413 * config/ip2k/ip2k.c (ip2k_rtx_costs): ... here. Rename from
17414 default_rtx_costs; update for signature change.
17415 * config/ip2k/ip2k-protos.h: Update.
17417 * config/m68hc11/m68hc11.h (RTX_COSTS): Remove.
17418 (CONST_COSTS): Move code ...
17419 * config/m68hc11/m68hc11.c (m68hc11_rtx_costs): ... here.
17420 (TARGET_RTX_COSTS): New.
17421 (m68hc11_rtx_costs_1): Rename from m68hc11_rtx_costs; make static.
17422 * config/m68hc11/m68hc11-protos.h: Update.
17424 * config/m68k/m68k.c (const_int_cost): Make static.
17425 * config/m68k/m68k-protos.h: Update.
17427 * config/mcore/mcore.c (mcore_const_costs): Make static.
17428 (mcore_and_cost, mcore_ior_cost): Likewise.
17429 * config/mcore/mcore-protos.h: Update.
17431 * config/mmix/mmix.c (mmix_rtx_costs, TARGET_RTX_COSTS): New.
17432 (mmix_rtx_cost_recalculated): Remove.
17433 * config/mmix/mmix.h (DEFAULT_RTX_COSTS): Remove.
17434 * config/mmix/mmix-protos.h: Update.
17436 * config/sh/sh.c (shiftcosts): Make static.
17437 (addsubcosts, andcosts, multcosts): Likewise.
17438 * config/sh/sh-protos.h: Update.
17440 * config/sparc/sparc.c (TARGET_RTX_COSTS): New.
17441 (sparc_rtx_costs): Make static; update for change in signature.
17442 * config/sparc/sparc.h (RTX_COSTS_CASES, RTX_COSTS): Remove.
17443 * config/sparc/sparc-protos.h: Update.
17445 * config/v850/v850.c (const_costs): Make static.
17446 * config/v850/v850-protos.h: Update.
17448 * config/vax/vax.h (RTX_COSTS): Remove.
17449 (CONST_COSTS): Move code ...
17450 * config/vax/vax.c (vax_rtx_costs_1): ... here; rename
17452 (vax_rtx_costs, TARGET_RTX_COSTS): New.
17454 2003-01-27 Richard Henderson <rth@redhat.com>
17456 * config/vax/vax.h (ASM_OUTPUT_MI_THUNK): Remove. Really.
17457 * config/vax/vax-protos.h: Update. Really.
17459 2003-01-28 Alexandre Oliva <aoliva@redhat.com>
17461 * config/mips/mips.h (UNITS_PER_HWFPVALUE): Renamed from...
17462 (UNITS_PER_FPVALUE): Defined as the width of a long double, or
17463 zero if no hardware floating point.
17464 (LONG_DUBLE_TYPE_SIZE): Set to 128 on N32 and N64.
17465 (MAX_FIXED_MODE_SIZE): Define to LONG_DOUBLE_TYPE_SIZE.
17466 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
17467 (BIGGEST_ALIGNMENT): Same as LONG_DOUBLE_TYPE_SIZE.
17468 (FUNCTION_VALUE_REGNO_P): Set for FP_RETURN+2 on N32 and N64.
17469 * config/mips/mips.c (mips_arg_info): Pass TFmode values in
17470 even FP registers on N32 and N64.
17471 (mips_setup_incoming_varargs): Use UNITS_PER_HWFPVALUE.
17472 (mips_va_start): Adjust alignment of ARG_POINTER_REGNUM.
17473 (mips_va_arg): Use UNITS_PER_HWFPVALUE. Impose additional
17474 even-register-like alignment to 128-bit arguments.
17475 (save_restore_insns): Use UNITS_PER_HWFPVALUE.
17476 (mips_function_value): Likewise. Return TFmode in $f0 and $f2
17478 * config/mips/_tilib.c (__negti2, __ashlti3, __lshrti3): New.
17479 * config/mips/t-iris6 (LIB2FUNCS_EXTRA): Add _tilib.c.
17480 (TPBIT): Set to tp-bit.c.
17481 (tp-bit.c): Create out of fp-bit.c.
17483 2003-01-28 Gabriel Dos Reis <gdr@integrable-solutions.net>
17485 * c-parse.in: Remove '%expect 32' directive in objc mode.
17487 2003-01-27 Nathan Sidwell <nathan@codesourcery.com>
17489 * Makefile.in (LIB2FUNCS_ST): Remove _gcov.
17490 (LIBGCOV): New variable.
17491 (libgcc.mk): Add LIBGCOV.
17492 (LIBGCC_DEPS): Add libgcov.c.
17493 (libgcov.a): New target.
17494 (clean): Remove libgcov.a.
17495 (install-libgcc): Do libgcov too.
17496 (stage1-start, stage2-start, stage3-start, stage4-start): Deal
17498 * libgcc2.c (L_gcov): Move into ...
17499 * libgcov.c: ... here. New file.
17500 * mklibgcc.in: Add libgcov rules.
17501 * gcc.c (LINK_COMMAND_SPEC): Add -lgcov when profiling.
17503 * doc/invoke.texi (profile-arcs, test-coverage): Update and
17506 * profile.c (index_counts_file): Remove duplicate check for open file.
17508 2003-01-27 Jerry Quinn <jlquinn@optonline.net>
17510 * gcc/doc/invoke.texi (Optimization Options): Group together
17511 optional and experimental flags. Move trapv and bounds-check
17512 out of this section. Group floating point flags together.
17513 (Code Gen Options): Move trapv and bounds-check to here.
17515 2003-01-27 Josef Zlomek <zlomekj@suse.cz>
17517 * gcse.c (constprop_register): Check NEXT_INSN (insn) != NULL.
17519 2003-01-27 Richard Earnshaw <rearnsha@arm.com>
17521 PR optimization/9090
17522 * function.c (purge_addressof_1): After pushing an addressed register
17523 onto the stack, simplify the result.
17525 2003-01-27 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
17527 * doc/extend.texi: Fix typo.
17529 2003-01-27 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
17531 * doc/cppopts.texi: Fix typo.
17532 * doc/objc.texi: Likewise.
17533 * doc/passes.texi: Likewise.
17535 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
17537 * real.c (ibm_extended_format): Add 53 to minimum exponent.
17538 (encode_ibm_extended): Adjust.
17540 2003-01-26 Gabriel Dos Reis <gdr@soliton.integrable-solutions.net>
17542 * timevar.def (TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION): New
17543 timevar_id enumerations.
17545 2003-01-26 Kazu Hirata <kazu@cs.umass.edu>
17547 * combine.c: Fix formatting.
17549 2003-01-26 Kazu Hirata <kazu@cs.umass.edu>
17551 * doc/gccint.texi: Update the copyright.
17553 2003-01-26 Kazu Hirata <kazu@cs.umass.edu>
17555 * doc/cpp.texi: Fix typos.
17556 * doc/extend.texi: Likewise.
17557 * doc/gty.texi: Likewise.
17558 * doc/install.texi: Likewise.
17559 * doc/passes.texi: Likewise.
17560 * doc/rtl.texi: Likewise.
17561 * doc/tm.texi: Likewise.
17563 2003-01-26 Kazu Hirata <kazu@cs.umass.edu>
17565 * config/ia64/fde-glibc.c: Fix comment typos.
17566 * config/ia64/hpux.h: Likewise.
17567 * config/ia64/ia64.c: Likewise.
17568 * config/ia64/ia64.h: Likewise.
17569 * config/ia64/unwind-ia64.c: Likewise.
17571 2003-01-26 Kazu Hirata <kazu@cs.umass.edu>
17573 * config/i386/i386-modes.def: Fix comment typos.
17574 * config/i386/i386.c: Likewise.
17575 * config/i386/i386.md: Likewise.
17577 2003-01-26 Steven Bosscher <s.bosscher@student.tudelft.nl>
17579 * config/avr/avr.h, config/cris/aout.h, config/elfos.h,
17580 config/i386/freebsd-aout.h, config/mips/iris6.h: Undefine
17581 ASM_FINISH_DECLARE_OBJECT before defining it.
17582 * toplev.c (rest_of_decl_compilation): Don't define
17583 ASM_FINISH_DECLARE_OBJECT. Only use it if it is defined.
17584 (rest_of_type_compilation): Don't ATTRIBUTE_UNUSED function
17585 parameters for DWARF2 targets because they _are_ used.
17587 2003-01-26 Alexandre Oliva <aoliva@redhat.com>
17589 * fp-bit.h: Define macros for TFmode floating-point constants
17590 in IBM-extended TFmode types.
17591 (TMODES): Define if __LDBL_MANT_DIG__ has the newly-supported
17593 * config/fp-bit.c (pack_d, unpack_d): Support IBM-extended
17596 * config/fp-bit.h: Define macros for TFmode floating-point
17597 constants in IEEE quad TFmode type. Declare functions according
17599 (TMODES): Define if __LDBL_MANT_DIG__ is 113.
17600 (TFtype, TItype, UTItype): Define if TMODES is defined.
17601 (MAX_UDI_INT, MAX_DI_INT, BITS_PER_DI): Likewise.
17602 (F_T_BITOFF, D_T_BITOFF): Define.
17603 (IMPLICIT_1, IMPLICIT_2): Cast constants to types that are
17604 guaranteed to be wide enough.
17605 * config/fp-bit.c: Check for L_ macros for tf functions.
17606 (__thenan_tf): New.
17608 (pack_d, unpack_d): Support IEEE 854 quad type.
17609 (_fpmul_parts): Support TFmode. Compute exponent adjustment
17610 from FRAC_NBITS, FRAC_BITS and NGARDS.
17611 (usi_to_float): Cast constants to be shifted to fractype
17612 instead of assuming long long is wide enough.
17613 (sf_to_tf, df_to_tf, __make_tp, tf_to_df, tf_to_sf): New.
17615 2003-01-26 Andreas Jaeger <aj@suse.de>
17617 * df.c: Remove prototype of unused function df_regno_rtl_debug.
17619 2003-01-26 Alexandre Oliva <aoliva@redhat.com>
17621 * Makefile.in (FPBIT_FUNCS): Added _sf_to_tf.
17622 (DBBIT_FUNCS): Added _df_to_tf.
17623 (TPBIT_FUNCS): New.
17624 (libgcc.mk): Pass TPBIT and TPBIT_FUNCS down.
17625 (LIBGCC_DEPS): Added TPBIT.
17626 * mklibgcc.in: Support TPBIT and TPBIT_FUNCS.
17628 * optabs.c (expand_binop) <add, sub>: Return xtarget if we haven't
17629 been able to move the result to target.
17631 * expr.c (emit_group_store): Initialize dst with CONST0_RTX
17632 for the appropriate mode.
17634 * calls.c (emit_library_call_value_1): Handle return values
17637 * rtl.c (get_mode_alignment): Moved to...
17638 * stor-layout.c: ... here.
17640 * print-rtl.c (print_rtx): Don't print MEM details in
17643 2003-01-26 Michael Hayes <mph@paradise.net.nz>
17645 * df.h: Update comments, tidy formatting.
17646 (DF_FORWARD, DF_REVERSE, DF_UNION, DF_INTERSECTION): Rename from FORWARD,
17647 REVERSE, UNION, INTERSECTION. All uses updated.
17648 (OLD_DF_INTERFACE): Remove.
17649 (struct insn_info): Remove commented out insn field.
17650 * df.c: Update comments, tidy formatting.
17651 (df_def_table_realloc): Remove.
17654 2003-01-26 Alan Modra <amodra@bigpond.net.au>
17656 * calls.c (save_fixed_argument_area): Tidy.
17657 (restore_fixed_argument_area): Tidy. Set alignment of stack_area.
17658 (expand_call): Comment typo fixes. Don't init low_to_save. Start
17659 call chain loop at 1 if !try_tail_call. Formatting.
17660 (emit_library_call_value_1): Don't init low_to_save or high_to_save.
17661 Use save_fixed_argument_area and restore_fixed_argument_area.
17663 2003-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17665 * df.c (df_uses_record): Handle CC0.
17667 2003-01-25 Ulrich Weigand <uweigand@de.ibm.com>
17669 * reload.c (maybe_memory_address_p): New function.
17670 (find_reloads_address): Use it instead of memory_address_p.
17672 2003-01-25 Kaz Kojima <kkojima@gcc.gnu.org>
17674 * final.c (shorten_branches): Align the address of code label
17675 when computing initial lengths and addresses.
17677 2003-01-25 Kazu Hirata <kazu@cs.umass.edu>
17679 * config/m68hc11/m68hc11.md: Fix a comment typo.
17681 2003-01-25 Andreas Jaeger <aj@suse.de>
17683 * config/i386/i386.c (x86_output_mi_thunk): Correct test for
17686 2003-01-25 Roger Sayle <roger@eyesopen.com>
17688 * gcse.c (bypass_last_basic_block): New global variable.
17689 (bypass_block): Use redirect_edge_and_branch_force to redirect
17690 fall-through edges. Use bypass_last_basic_block to determine
17691 which blocks have valid PRE information.
17692 (bypass_conditional_jumps): Initialize bypass_last_basic_block.
17694 2003-01-25 Jan Hubicka <jh@suse.cz>
17696 * gcse.c (local_cprop_pass): Update reg_sets table when needed.
17698 2003-01-25 Jan Hubicka <jh@suse.cz>
17699 Eric Botcazou <ebotcazou@libertysurf.fr>
17701 * gcse.c (one_cprop_pass): Delete unreachable blocks.
17703 2003-01-25 Richard Henderson <rth@redhat.com>
17705 * config/ia64/ia64.c (ia64_rwreloc_select_rtx_section): Rename
17706 from ia64_aix_select_rtx_section.
17707 (ia64_rwreloc_select_section): Simlarly; use default*_1 function
17708 instead of saving and restoring flag_pic.
17709 (ia64_rwreloc_unique_section): Similarly.
17710 * config/ia64/aix.h (TARGET_ASM_SELECT_SECTION,
17711 TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): Update.
17712 * config/ia64/hpux.h (TARGET_ASM_SELECT_SECTION,
17713 TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): New.
17715 2003-01-25 Kazu Hirata <kazu@cs.umass.edu>
17717 * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Update a
17720 2003-01-25 Richard Henderson <rth@redhat.com>
17722 * config/m68k/m68k-none.h (ASM_SPEC): Adjust inter-option spacing.
17724 2003-01-25 Kelley Cook <kelleycook@comcast.net>
17726 * ggc-simple.c (debug_ggc_tree): Add PTR cast.
17728 2003-01-25 Segher Boessenkool <segher@koffie.nl>
17730 * bitmap.h (BITMAP_WORD): New typedef: fundamental storage
17731 type for bitmaps. Use unsigned long.
17732 (nBITMAP_WORD_BITS): New macro.
17733 (BITMAP_WORD_BITS): New macro.
17734 (rest of file): Use it.
17735 * bitmap.c: Use it.
17737 2003-01-25 Richard Henderson <rth@redhat.com>
17739 2002-02-19 Robert Lipe <robertlipe@usa.net>
17740 * config/i386/t-sco5gas: (CRTSTUFF_T_CFLAGS_S): Delete -mcoff.
17742 2003-01-25 Roger Sayle <roger@eyesopen.com>
17744 * builtins.c (purge_builtin_constant_p): Scan insn stream
17745 sequentially rather than by basic block.
17746 * function.c (purge_addressof): Simplify test with INSN_P.
17748 2003-01-25 Kazu Hirata <kazu@cs.umass.edu>
17750 * combine.c (simplify_comparison, case AND): Remove a redundant test.
17752 2003-01-25 Roger Sayle <roger@eyesopen.com>
17754 * function.h (struct function): New field calls_constant_p.
17755 (current_function_calls_constant_p): New macro for above.
17756 * function.c (prepare_function_start): Initialize calls_eh_return
17757 and calls_constant_p.
17758 * builtins.c (expand_builtin_constant_p): Set calls_constant_p.
17759 * toplev.c (rest_of_compilation): Only call purge_builtin_constant_p
17760 when the current_function_calls_constant_p.
17761 * integrate.c (expand_inline_function): Set calls_constant_p if
17762 the function being inlined has calls_constant_p set.
17764 2003-01-25 Roger Sayle <roger@eyesopen.com>
17766 * cse.c (fold_rtx): Instantiate CONSTANT_P_RTX to 0 when not
17767 optimizing, even if flag_gcse is true.
17768 * toplev.c (rest_of_compilation): purge_builtin_constant_p
17769 only needs to be called when "optimize > 0 && flag_gcse".
17771 2003-01-25 Roger Sayle <roger@eyesopen.com>
17773 * stmt.c (emit_case_bit_tests): New routine to implement suitable
17774 switch statements using the equivalent of "if ((1<<x) & cst) ... ".
17775 (case_bit_test_cmp): New comparison function for "qsort" to order
17776 case_bit_tests by decreasing number of destination nodes.
17777 (lshift_cheap_p): New function to determine if "1 << x" is cheap.
17778 (expand_end_case_type): Use emit_case_bit_tests to implement
17779 suitable switch statments.
17780 (CASE_USE_BIT_TESTS): New target macro to disable the above.
17781 * Makefile.in (stmt.o): Add dependency on optab.h.
17782 * doc/tm.texi (CASE_USE_BIT_TESTS): Document new target macro.
17784 2003-01-23 Andreas Schwab <schwab@suse.de>
17786 * config/ia64/crtend.asm [HAVE_INITFINI_ARRAY]: Make
17787 __do_global_ctors_aux hidden global and don't put it in
17789 * config/ia64/crtbegin.asm [HAVE_INITFINI_ARRAY]: Put it here
17790 instead so that it comes first.
17792 2003-01-25 Jan Hubicka <jh@suse.cz>
17794 * df.c (read_modify_subreg_p): When osize == UNITS_PER_WORD,
17795 subreg is read/modify.
17797 2003-01-25 Jan Hubicka <jh@suse.cz>
17799 * i386.c (ix86_expand_movstr, ix86_expand_clrstr): Consistently
17800 do libcall for large blocks.
17801 * i386.md (comi patterns): Set type to ssecomi.
17802 (sse2_unpck?pd): Fix mode of vec_select.
17804 * cse.c: Include except.h
17805 (cse_set_around_loop): Do not create new basic blocks.
17806 * Makefile.in (cse.o): Add dependnecy on except.h
17808 2003-01-25 Jan Hubicka <jh@suse.cz>
17810 * builtins.c (fold_trunc_transparent_mathfn): New function.
17811 (fold_builtin): Use it.
17812 * convert.c (convert_to_real): Re-enable code to convert
17813 math functions; add support for floor familly functions.
17815 2003-01-25 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
17817 * Makefile.in (cfgloop.o, cfgloopanal.o, cfgloopmanip.o): Add
17818 dependencies on coretypes.h and $(TM_H).
17820 2003-01-25 Jan Hubicka <jh@suse.cz>
17822 * builtins.c (fold_trunc_transparent_mathfn): Undo accidental commit.
17824 2003-01-24 Stuart Hastings <stuart@apple.com>
17826 * config/i386/i386.c (x86_output_mi_thunk): Add Darwin/x86 support.
17828 2003-01-25 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17830 * config/c4x/c4x.md (UNSPEC_BU): New constants.
17831 (UNSPEC_RPTS, UNSPEC_LSH, UNSPEC_CMPHI, UNSPEC_RCPF): Likewise.
17832 (UNSPEC_RND, UNSPEC_RPTB_FILL, UNSPEC_LOADHF_INT): Likewise.
17833 (UNSPEC_STOREHF_INT, UNSPEC_RSQRF, UNSPEC_LOADQF_INT): Likewise.
17834 (UNSPEC_STOREQF_INT, UNSPEC_LDIV, UNSPEC_PUSH_ST): Likewise.
17835 (UNSPEC_POP_ST, UNSPEC_PUSH_DP, UNSPEC_POP_DP): Likewise.
17836 (UNSPEC_POPQI, UNSPEC_POPQF, UNSPEC_ANDN_ST): Likewise.
17837 (UNSPEC_RPTB_INIT, UNSPEC_TOIEEE, UNSPEC_FRIEEE): Likewise.
17839 2003-01-24 Jan Hubicka <jh@suse.cz>
17841 * emit-rtl.c (reg_attrs_htab): New static variable.
17842 (reg_attrs_htab_hash, reg_attrs_htab_eq, get_reg_attrs): New static
17844 (reg_rtx): Do not maintain regno_decl.
17845 (gen_rtx_REG_offset, set_reg_attrs_from_mem, set_delc_rtx,
17846 set_mem_attrs_from_reg): New global function.
17847 (init_emit): Do not initialize regno_decl.
17848 (init_emit_once): initialize reg_attrs_htab.
17849 * final.c (alter_subreg): Do not replace REG by SUBREG.
17850 (gen_mem_expr_from_op): Improve output.
17851 (output_asm_operands): Likewise.
17852 * function.c (assign_params): Do not set REGNO_DECL.
17853 * function.h (struct function): Kill regno_decl.
17854 (REGNO_DECL): Kill.
17855 * gengtype.c (adjust_field_rtx_def): Handle new field of reg.
17856 * print_rtl.c (print_rtx): Output REG information.
17857 * regclass.c (reg_scan_mark_refs): Update attrs.
17858 * reload1.c (alter_reg): Likewise.
17859 * simplify_rtx.c (simplify_subreg): Likewise.
17860 * stmt.c (expand_decl): Likewise.
17861 * rtl.def (REG): Add new field.
17862 * rtl.h (struct reg_attrs): New.
17863 (rtunion_def): At rtreg.
17864 (X0MEMATTR): Add checking.
17865 (X0REGATTR, REG_ATTRS, REG_EXPR, REG_OFFSET): New macro.
17866 (set_reg_attrs_from_mem, set_mem_attrs_from_reg, gen_rtx_REG_offset):
17868 * tree.h (SET_DECL_RTL): Call set_decl_rtl.
17870 2003-01-24 Bob Wilson <bob.wilson@acm.org>
17872 * config/xtensa/xtensa.c: Remove unused include of machmode.h.
17873 (xtensa_emit_call, print_operand): Fix printf format strings
17874 to avoid compile warnings.
17875 (xtensa_function_prologue, xtensa_function_epilogue): Change type
17876 of "size" argument to HOST_WIDE_INT to fix compile warnings.
17877 * config/xtensa/xtensa-protos.h
17878 (xtensa_function_prologue, xtensa_function_epilogue): Ditto.
17880 2003-01-24 Jan Hubicka <jh@suse.cz>
17882 * builtins.c (DEF_BUILTIN): Accept 10 arguments.
17883 (implicit_built_in_decls): New global array.
17884 (mathfn_built_in): New global function.
17885 (fold_trunc_transparent_mathfn): New static function
17886 (expand_builtin_strstr, expand_bultin_strchr,
17887 expand_builtin_strpbrk, expand_builtin_strcpy,
17888 expand_builtin_strncpy, expand_bultin_strcmp,
17889 expand_bultin_strncat, expand_builtin_fputs): Use
17890 implicint_built_in_decls.
17891 (fold_builtin): Fold floor/trunc/round/ceil/nearbyint.
17892 * builtins.def: Fix comments.
17893 (DEF_GCC_BUILTIN, DEF_FALLBACK_BUILTIN, DEF_EXT_FALLBACK_BUILTIN,
17894 DEF_LIB_BUILTIN, DEF_LIB_ALWAYS_BUILTIN, DEF_EXT_LIB_BUILTIN,
17895 DEF_C99_BULTIN, DEF_FRONT_END_LIB_BUILTIN,
17896 DEF_EXT_FRONT_END_LIB_BUILTIN): Pass implicit as needed.
17897 (DEF_C99_C90RES_BULTIN): New.
17898 (*f, *l builtins): Update.
17899 * c-common.c (DEF_BUILTIN): Initialize implicit array.
17900 (c_expand_builtin_printf, c_expand_builtin_fprintf): Update.
17901 * convert.c (strip_float_extensions): New global function.
17902 * tree.h (DEF_BUILTIN): Accept 10 arguments.
17903 (implicit_built_in_decls, mathfn_built_in, strip_float_extension):
17905 * java/builtins.c (define_builtin): Handle implicit.
17906 (DEF_BUILTIN): Update.
17907 * tm.texi (TARGET_C99_FUNCTIONS): Document.
17908 * defaults.h (TARGET_C99_FUNCTIONS): Default to 0.
17909 * config/linux.h (TARGET_C99_FUNCTIONS): Default to 1
17912 2003-01-24 Bob Wilson <bob.wilson@acm.org>
17914 * config.gcc (xtensa-*-elf*): Removed assignments to with_newlib,
17915 extra_parts, and fixincludes. Add xtensa/t-elf tmake_file.
17916 (xtensa-*-linux*): Add xtensa/t-linux tmake_file.
17917 * config/xtensa/crti.asm: New file.
17918 * config/xtensa/crtn.asm: New file.
17919 * config/xtensa/t-elf: New file.
17920 * config/xtensa/t-linux: New file.
17921 * config/xtensa/t-xtensa: Add rules for crti.o and crtn.o.
17922 Move various CFLAGS settings to new t-elf file.
17924 2003-01-24 Richard Henderson <rth@redhat.com>
17926 PR optimization/4382
17927 * tree-inline.c (find_builtin_longjmp_call_1): New.
17928 (find_builtin_longjmp_call): New.
17929 (inlinable_function_p): Use it.
17931 2003-01-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
17933 * config/i386/i386-protos.h (function_arg_pass_by_reference): Declare.
17934 * config/i386/i386.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use it.
17935 * config/i386/i386.c (function_arg_pass_by_reference): New.
17936 (ix86_va_arg): Support arguments passed by reference.
17938 2003-01-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
17940 * cfgloopanal.c: New file.
17941 * cfgloopmanip.c: New file.
17942 * Makefile.in (cfgloopanal.o, cfgloopmanip.o): New.
17943 (toplev.o, loop.o, doloop.o, unroll.o, cfgloop.o, predict.o,
17944 cfglayout.o): Add dependency on cfgloop.h.
17945 (cfgloop.o): Add flags.h dependency.
17946 * basic-block.h (BB_IRREDUCIBLE_LOOP, BB_SUPERBLOCK): New flags.
17947 (VLS_EXPECT_PREHEADERS, VLS_EXPECT_SIMPLE_LATCHES): Removed.
17948 (struct loop, struct loops, flow_loops_find, flow_loops_update,
17949 flow_loops_free, flow_loops_dump, flow_loop_dump,
17950 flow_loop_scan, flow_loop_tree_node_add, flow_loop_tree_node_remove,
17951 LOOP_TREE,,LOOP_PRE_HEADER, LOOP_ENTRY_EDGES, LOOP_EXIT_EDGES,
17952 LOOP_ALL, flow_loop_outside_edge_p, flow_loop_nested_p,
17953 flow_bb_inside_loop_p, get_loop_body, loop_preheader_edge,
17954 loop_latch_edge, add_bb_to_loop, remove_bb_from_loops,
17955 find_common_loop, verify_loop_structure): Declarations moved to ...
17956 * cfgloop.h: New file.
17957 * bb-reorder.c (reorder_basic_blocks): Modified.
17958 * cfglayout.c: Include cfgloop.h.
17959 (cleanup_unconditional_jumps, cfg_layout_redirect_edge,
17960 cfg_layout_duplicate_bb, cfg_layout_initialize): Update loop structure.
17961 (break_superblocks): New static function.
17962 (cfg_layout_finalize): Use it.
17963 (cfg_layout_split_block): New function.
17964 * cfglayout.h (struct reorder_block_def): Add copy and duplicated
17966 (cfg_layout_initialize, cfg_layout_redirect_edge): Declaration
17968 (cfg_layout_split_block): Declare.
17969 * cfgloop.c: Include cfgloop.h and flags.h.
17970 (flow_loop_dump, flow_loops_free, flow_loop_exit_edges_find,
17971 get_loop_body): Avoid signed versus unsigned comparison warnings.
17972 (make_forwarder_block, flow_loops_find, loop_preheader_edge,
17973 loop_latch_edge): Modified.
17974 (verify_loop_structure): Modified to use flags stored in loop structure;
17975 check irreducible loops.
17976 (cancel_loop, cancel_loop_tree): New functions.
17977 (estimate_probability): Use loop analysis code for predictions.
17978 (estimate_loops_at_level): Avoid signed versus unsigned comparison
17980 * doloop.c: Include cfgloop.h.
17981 * loop.c: Include cfgloop.h.
17982 * predict.c: Include cfgloop.h.
17983 * toplev.c: Include cfgloop.h.
17984 * unroll.c: Include cfgloop.h.
17985 * tracer.c (tracer): Modified.
17987 2003-01-24 Kazu Hirata <kazu@cs.umass.edu>
17989 * config/h8300/h8300.c (get_shift_alg): Fix a typo.
17991 2003-01-24 Ulrich Weigand <uweigand@de.ibm.com>
17993 * configure.in (HAVE_AS_TLS): Add s390-*-* and s390x-*-* cases.
17994 * configure: Regenerate.
17996 * config/s390/s390-protos.h (tls_symbolic_operand): Add prototype.
17997 (tls_symbolic_reference_mentioned_p): Add prototype.
17998 (s390_tls_get_offset): Add prototype.
17999 (emit_pic_move): Remove prototype, replace by ...
18000 (emit_symbolic_move): .. this new prototype.
18002 * config/s390/s390.c (TARGET_HAVE_TLS): Conditionally define.
18003 (tls_model_chars): New global variable.
18004 (s390_encode_section_info): Encode TLS model.
18005 Use targetm.binds_local_p to check for local symbols.
18006 (s390_strip_name_encoding): New function.
18007 (TARGET_STRIP_NAME_ENCODING): Define.
18009 (get_thread_pointer): New function.
18010 (legitimize_tls_address): New function.
18011 (legitimize_address): Call it.
18012 (emit_pic_move): Remove, replace by ...
18013 (emit_symbolic_move): ... this new function.
18015 (larl_operand): Handle TLS operands.
18016 (legitimate_constant_p): Likewise.
18017 (s390_decompose_address): Likewise.
18018 (s390_cannot_force_const_mem): New function.
18019 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
18021 (s390_output_symbolic_const): Handle TLS unspecs.
18022 (print_operand): New code 'J'.
18023 (machine_function): Add struct member 'some_ld_name'.
18024 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
18026 (enum s390_builtin): New type.
18027 (code_for_builtin_64, code_for_builtin_31): New global variables.
18028 (s390_init_builtins, s390_expand_builtin): New functions.
18029 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
18031 * config/s390/s390.h (TLS_SYMBOLIC_CONST): New macro.
18032 (ASM_OUTPUT_LABELREF): Define.
18033 (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Handle TLS constants.
18035 * config/s390/s390.md: Define TLS UNSPEC constants.
18036 ("movdi", "movsi"): Handle TLS operands.
18037 ("get_tp_64", "get_tp_31", "set_tp_64", "set_tp_31"): New insns.
18038 ("*tls_load_64", "*tls_load_31"): New insns.
18039 ("call_value_tls", "call_value_tls_exp"): New expanders.
18040 ("brasl_tls", "bras_tls", "basr_tls_64", "basr_tls_31",
18041 "bas_tls_64", "bas_tls_31"): New insns.
18043 2003-01-24 Nathan Sidwell <nathan@codesourcery.com>
18045 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Make sure
18046 spe ABI is configured, if requested.
18048 2003-01-24 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
18050 * doc/passes.texi: Fix typo.
18052 2003-01-24 Andreas Schwab <schwab@suse.de>
18054 * stor-layout.c (excess_unit_span): Only define if used.
18056 2003-01-24 Jerry Quinn <jlquinn@optonline.net>
18058 * gcc/doc/invoke.texi (Optimization Options): List -O levels
18059 for each optimization flag.
18061 2003-01-24 Kazu Hirata <kazu@cs.umass.edu>
18063 * config/h8300/h8300.md (*andsi3_ashift_n_lower): New.
18065 2003-01-24 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
18067 * doc/bugreport.texi: Use @command instead of @code for commands.
18068 * doc/collect2.texi: Likewise.
18069 * doc/headerdirs.texi: Likewise.
18070 * doc/invoke.texi: Likewise.
18071 * doc/standards.texi: Likewise.
18072 * doc/tm.texi: Likewise.
18073 * doc/trouble.texi: Likewise.
18075 2003-01-24 Nick Clifton <nickc@redhat.com>
18077 * config/arm/arm.c (use_return_insn): Do not use a single return
18078 instruction for interrupt handelrs which have to create a stack
18080 (arm_expand_prologue): Do not pre-bias the return address of
18081 interrupt handlers which create a stack frame.
18083 2003-01-24 Nick Clifton <nickc@redhat.com>
18085 * Add sh2e support:
18087 2002-08-12 Alexandre Oliva <aoliva@redhat.com>
18089 * config/sh/sh.c (output_branch) [TARGET_SH2E]: Handle
18090 med_cbranches. Fix logic in short_cbranches.
18092 2002-04-03 Alexandre Oliva <aoliva@redhat.com>
18094 * config/sh/sh.md (delay for cbranch): Don't annul delay
18096 * config/sh/sh.c (sh_insn_length_adjustment): Add 2 for
18097 cbranch with unfilled delay slot on SH2e.
18098 (output_branch): Fill with a nop the delay slot of a
18099 branch that required a delay slot but didn't get one.
18101 2002-04-02 Alexandre Oliva <aoliva@redhat.com>
18103 * doc/invoke.texi (SH options): Document -m2e.
18104 * config/sh/crt1.asm: Add __SH2E__ Next to __SH3E__.
18105 * config/sh/lib1funcs.asm: Likewise.
18106 * config/sh/sh.c: Replace all uses of TARGET_SH3E with SH2E.
18107 * config/sh/sh.h (CPP_SPEC): Define __SH2E__ for -m2e, and
18109 (CONDITIONAL_REGISTER_USAGE): Don't disable FP regs from
18111 (SH3E_BIT): Renamed to...
18112 (SH_E_BIT): ... this. Replace all uses.
18113 (TARGET_SH2E): Define from SH_E_BIT and TARGET_SH2.
18114 Replace all uses of TARGET_SH3E with TARGET_SH2E.
18115 (TARGET_SWITCHES): Added 2e.
18116 (OVERRIDE_OPTIONS): Set sh_cpu for SH2E.
18117 (processor_type): Added PROCESSOR_SH2E.
18118 * config/sh/sh.md: Replace all uses of TARGET_SH3E with
18119 TARGET_SH2E, except in sqrtsf2_i.
18120 (attribute cpu): Added sh2e.
18121 * config/sh/t-sh (MULTILIB_OPTIONS): Replace m3e with m2e.
18122 (MULTILIB_MATCHES): Use m2e multilib for m3e.
18123 * config.gcc: Add sh2e target support.
18125 2003-01-24 Phil Edwards <pme@gcc.gnu.org>
18127 Rename -W to -Wextra.
18128 * c-decl.c: Update comments.
18129 * c-typeck.c: Likewise.
18130 * flags.h: Likewise.
18131 * function.c: Likewise.
18132 * stmt.c: Likewise.
18133 * toplev.c: Update comments.
18134 (W_options): Add 'extra'.
18135 (display_help): Remove '-W'.
18136 (decode_W_option): Special warn_uninitialized treatment in the case
18138 * doc/invoke.texi: Update with new entries.
18140 2003-01-23 Richard Henderson <rth@redhat.com>
18142 * ifcvt.c (noce_process_if_block): Re-add check vs X being changed
18143 in no-else-block case. Add commentary.
18145 2003-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18147 * configure.in: Revert last change.
18149 2003-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18151 * configure.in: Don't include ansidecl.h in tconfig.h.
18152 * gcov-io.h (PARAMS, ATTRIBUTE_UNUSED): Define if IN_LIBGCC2.
18153 * unwind-dw2-fde.h (last_fde): Use __attribute__, not
18156 * configure: Regenerate.
18158 2003-01-23 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
18161 * config/rs6000/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Don't destroy
18162 regs->nip. Fix rt_sigreturn frame layout. Add support for newer
18165 2003-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18167 * cpplex.c (cpp_interpret_charconst): Squelch warning with cast.
18169 2003-01-23 Ulrich Weigand <uweigand@de.ibm.com>
18171 * genattrtab.c (write_attr_get): Mark 'insn' paramter
18172 as ATTRIBUTE_UNUSED.
18174 2003-01-23 Richard Earnshaw <rearnsha@arm.com>
18176 * arm.c (thumb_base_register_rtx_p): New function.
18177 (thumb_index_register_rtx_p): New function.
18178 (thumb_legitimate_address_p): New function.
18179 (thumb_legitimate_offset_p): New function.
18180 * arm.h (REG_STRICT_P): Define according to setting of REG_OK_STRICT.
18181 (ARM_GO_IF_LEGITIMATE_ADDRESS): Use REG_STRICT_P to avoid duplicate
18183 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Use thumb_legitimate_address_p.
18184 (THUMB_LEGITIMATE_OFFSET): Delte.
18185 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use thumb_legitimate_offset.
18186 * arm-protos.h (thumb_legitimate_address_p): Add prototype.
18187 (thumb_legitimate_offset_p): Likewise.
18189 2003-01-23 Andreas Schwab <schwab@suse.de>
18191 * unwind.h (_Unwind_GetTextRelBase): Mark parameter as unused.
18193 2003-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18195 * fixinc/Makefile.in (FL_LIST): Revert last change.
18197 2003-01-23 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
18200 * invoke.texi (ftest-coverage): Fix broken cross-reference.
18201 Change @code to @command for gcov command.
18203 * gcc.texi: Adjust title of gcov section.
18205 * gcov.texi: Likewise.
18207 2003-01-22 Roger Sayle <roger@eyesopen.com>
18209 PR optimization/8423
18210 * cse.c (fold_rtx): Only eliminate a CONSTANT_P_RTX to 1 when
18211 its argument is constant, or 0 if !flag_gcse.
18212 * simplify-rtx.c (simplify_rtx): Convert CONSTANT_P_RTX to 1
18213 if it's argument is constant.
18214 * gcse.c (want_to_gcse_p): Ignore CONSTANT_P_RTX nodes.
18215 (hash_scan_set): Don't record CONSTANT_P_RTX expressions.
18216 (do_local_cprop): Don't propagate CONSTANT_P_RTX constants.
18217 * builtins.c (purge_builtin_constant_p): New function to force
18218 instantiation of any remaining CONSTANT_P_RTX nodes.
18219 * rtl.h (purge_builtin_constant_p): Prototype here.
18220 * toplev.c (rest_of_compilation): Invoke purge_builtin_constant_p
18221 pass after GCSE and before loop.
18222 (flag_gcse): No longer static.
18223 * flags.h (flag_gcse): Prototype here.
18225 2003-01-22 Ulrich Weigand <uweigand@de.ibm.com>
18227 * config/s390/s390.h (HARD_REGNO_MODE_OK): Fix warning regression
18228 introduced by last change.
18230 2003-01-22 Andreas Schwab <schwab@suse.de>
18232 * ra-rewrite.c (rewrite_program2): Initialize bb to avoid warning.
18234 2003-01-22 Kazu Hirata <kazu@cs.umass.edu>
18236 * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Don't
18237 request a scratch reg on H8S when the shift count is 8.
18239 2003-01-22 Ulrich Weigand <uweigand@de.ibm.com>
18241 * config/s390/s390-protos.h (preferred_la_operand_p):
18242 Remove second parameter.
18243 * config/s390/s390.c (preferred_la_operand_p): Likewise.
18244 * config/s390/s390.h (FRAME_REGNO_P, FRAME_REG_P): New macros.
18245 (HARD_REGNO_MODE_OK): Use FRAME_REGNO_P.
18246 * config/s390/s390.md ("*la_cc_64", "*la_cc_31", splitters): Remove.
18247 Add peepholes to transform ADD to LOAD ADDRESS.
18249 2003-01-22 Richard Earnshaw <rearnsha@arm.com>
18251 * arm.c (arm_address_register_rtx_p): New function.
18252 (arm_legitimate_address_p): New function.
18253 (arm_legitimate_index_p): New function.
18254 (legitimize_pic_address): Use arm_legitimate_index_p.
18255 * arm-protos.h (arm_legtimate_address_p): Add prototype.
18256 * arm.h (ARM_GO_IF_LEGITIMATE_INDEX): Delete.
18257 (ARM_GO_IF_LEGITIMATE_ADDRESS): Call arm_legitimate_address_p.
18259 2003-01-22 Hartmut Penner <hpenner@de.ibm.com>
18261 * config/s390/s390.md (floatdfdi2): Insn has type 'itof'.
18262 * config/s390/2064.md (define_bypass): Correct 'Load' and
18263 'Load-address' bypass values.
18265 2003-01-22 Andreas Schwab <schwab@suse.de>
18267 * config/ia64/t-ia64 (insn-attrtab.o-warn): Define as -Wno-error.
18269 2003-01-21 Zack Weinberg <zack@codesourcery.com>
18271 * genautomata.c (output_internal_insn_latency_func,
18272 output_print_reservation_func): Short circuit when there is no
18273 automaton to generate code for.
18275 2003-01-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18277 * Makefile.in (ssa-ccp.o): Depend on coretypes.h $(TM_H).
18278 (df.o): Delete duplicate dependency on coretypes.h $(TM_H).
18280 2003-01-21 Geoffrey Keating <geoffk@apple.com>
18282 * config/rs6000/rs6000.md: Remove warning.
18283 (builtin_setjmp_receiver): Likewise.
18284 * config/darwin.c (update_stubs): Slightly improve terrible hack
18285 with identifiers. Add comment pointing out problems with it.
18286 (update_non_lazy_ptrs): Likewise.
18288 2003-01-21 Richard Henderson <rth@redhat.com>
18290 * dwarf2out.c (lookup_filename): Fix printf format warning.
18291 * system.h (fread_unlocked, fwrite_unlocked): Undef.
18293 * fixinc/Makefile.in (FL_LIST): Add $($@-warn) hook.
18294 (fixincl.o-warn, gnu-regex.o-warn): New.
18295 * fixinc/fixfixes.c (FIX_PROC_HEAD): Mark parameters unused.
18296 * fixinc/fixtests.c (TEST_FOR_FIX_PROC_HEAD): Likewise.
18297 * fixinc/fixincl.c (process): Fix printf format warning.
18299 2003-01-21 Ulrich Weigand <uweigand@de.ibm.com>
18301 * dwarf2out (output_file_names): Don't crash if called
18302 with empty file_table.
18304 2003-01-21 Zack Weinberg <zack@codesourcery.com>
18306 * genautomata.c (output_internal_insn_latency_func): Add
18307 missing break statement to generated code.
18309 2003-01-21 Roger Sayle <roger@eyesopen.com>
18311 * stmt.c (same_case_target_p): New function to determine whether
18312 two case labels branch to the same target. Split out from...
18313 (group_case_nodes): ... here. Use same_case_target_p instead.
18314 (strip_default_case_nodes): Remove explicit case nodes
18315 that branch to the default destination.
18316 (expand_end_case_type): Call strip_default_case_nodes after
18317 group_case_nodes, to simplify the case-list before we count it.
18318 Only generate table_label RTX when actually needed. Try to share
18319 thiscase->exit_label and thiscase->data.case_stmt.default_label
18320 when a switch has no explicit default case. Simplify test for
18323 2003-01-21 Kazu Hirata <kazu@cs.umass.edu>
18325 * config/h8300/h8300.md (*negsf2_h8300): Use \\t instead of
18327 (*negsf2_h8300hs): Likewise.
18328 (*addsi3_lshiftrt_16_zexthi): Likewise.
18329 (*iorhi3_lshiftrt_8): Likewise.
18331 2003-01-21 Ulrich Weigand <uweigand@de.ibm.com>
18333 * dwarf2out.c (fde_table_in_use): Mark GTY.
18334 (dwarf2out_cfi_label_num): New variable, marked GTY.
18335 (dwarf2out_cfi_label): Use it instead of static label_num.
18336 * emit-rtl.c (label_num): Mark GTY.
18338 2003-01-21 Kazu Hirata <kazu@cs.umass.edu>
18340 * config/h8300/h8300.c (output_plussi): Support H8/300.
18341 (compute_plussi_length): Likewise.
18342 (compute_plussi_cc): Likewise.
18343 * config/h8300/h8300.md (addsi_h8300): Use output_plussi to
18344 output assembly instructions.
18346 2003-01-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18348 * calls.c (fix_unsafe_tree): Prototype.
18350 * Makefile.in (GCC_WARN_CFLAGS): Add $(WERROR) $($@-warn)
18351 (gtype-desc.o-warn, c-decl.o-warn, varasm.o-warn, gcc.o-warn,
18352 insn-conditions.o-warn, out_object_file, gengtype-yacc.o-warn,
18353 c-parse.o-warn): Add -Wno-error.
18354 (STAGE2_FLAGS_TO_PASS): Add WERROR="@WERROR@".
18356 * configure.in (--enable-werror): Add new flag.
18357 * doc/install.texi (--enable-werror): Document.
18358 * configure: Regenerate.
18360 * objc/Make-lang.in (objc/objc-parse.o-warn): Add -Wno-error.
18362 2003-01-21 Andreas Schwab <schwab@suse.de>
18364 * genautomata.c (output_internal_insn_latency_func): Fix missing
18365 close paren in output.
18367 2003-01-21 Zack Weinberg <zack@codesourcery.com>
18369 * genautomata.c: Space savings in generated code:
18370 (output_dfa_insn_code_func): Split out the table-enlargement
18371 path to an out-of-line static function, dfa_insn_code_enlarge.
18372 (output_internal_insn_latency_func): Use a lookup table for the
18374 (output_print_reservation_func): Use a lookup table for the
18377 2003-01-21 Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
18380 * calls.c (fix_unsafe_tree): Split out from ...
18381 (expand_call): ... here. Use it on the function address too.
18383 2003-01-20 Richard Henderson <rth@redhat.com>
18385 * expr.h (default_must_pass_in_stack): Move decl outside ifdef.
18387 2003-01-20 Richard Henderson <rth@redhat.com>
18390 * stmt.c (expand_asm_operands): Validize memory operands.
18392 2003-01-20 Richard Henderson <rth@redhat.com>
18395 * ifcvt.c (noce_process_if_block): Correct arguments to
18396 modified_between_p for no-else-block case.
18398 2003-01-20 Kazu Hirata <kazu@cs.umass.edu>
18400 * config/h8300/h8300.c (const_costs): Remove a warning.
18401 (output_plussi): Likewise.
18402 (compute_plussi_length): Likewise.
18403 (compute_plussi_cc): Likewise.
18405 2003-01-20 Kazu Hirata <kazu@cs.umass.edu>
18407 * config/h8300/h8300.md (addsi_h8300): Remove the last
18410 2003-01-20 Kazu Hirata <kazu@cs.umass.edu>
18412 * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
18414 2003-01-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18416 * system.h (__NO_STRING_INLINES): Define.
18418 2003-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18420 * ifcvt.c (noce_emit_store_flag): Don't emit store flag if mode of x
18421 is not a scalar int mode.
18423 2003-01-20 Roger Sayle <roger@eyesopen.com>
18425 * cse.c (cse_insn): Avoid RTL sharing when updating the RETVAL
18426 insn's notes following a substitution inside a libcall.
18428 2003-01-20 Zack Weinberg <zack@codesourcery.com>
18430 * configure.in: Check for system-provided 'uchar' type.
18431 * configure, config.in: Regenerate.
18432 * cpphash.h: Only typedef 'uchar' if the system doesn't.
18434 2003-01-20 Richard Henderson <rth@redhat.com>
18436 * expr.h (MUST_PASS_IN_STACK): Move implementation...
18437 * calls.c (default_must_pass_in_stack): ... here.
18439 2003-01-20 Vladimir Makarov <vmakarov@redhat.com>
18441 * genattrtab.h (INSN_ALTS_FUNC_NAME): Move it from genautomata.c.
18443 * genautomata.c (INSN_ALTS_FUNC_NAME): Move it into genattrtab.h.
18445 * genattr.c (main): Output default definition of AUTOMATON_ALTS.
18446 Wrap up definition of `insn_alts'.
18448 * genattrtab.c (main): Wrap up `insn_alts'.
18450 2003-01-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18452 * collect2.c (ldgetname): Check HAVE_DECL_LDGETNAME before
18454 * configure.in: Check for <ldfcn.h> and ldgetname() prototype.
18456 * config.in, configure: Regenerate.
18458 2003-01-20 Nick Clifton <nickc@redhat.com>
18460 * config/arm/arm.md (sibcall_epilogue): Add an
18461 UNSPEC_PROLOGUE_USE to prevent the link register from being
18464 2003-01-20 Jan Hubicka <jh@suse.cz>
18466 * i386.md (SSE cmov splitter): Handle memory operand in operand 5.
18468 2003-01-20 Andreas Schwab <schwab@suse.de>
18470 * system.h: Don't declare strsignal if the decl test hasn't been
18473 2003-01-20 Kazu Hirata <kazu@cs.umass.edu>
18475 * config/h8300/h8300.c (notice_update_cc): Don't assume that
18476 recog_data.operands[0] is always associated with cc0.
18478 2003-01-19 David Edelsohn <edelsohn@gnu.org>
18480 * collect2.c (ldgetname): Expand declaration to prototype.
18481 * read-rtl.c (atoll): Add prototype.
18482 * system.h (strsignal): Also declare if no declaration found.
18484 2003-01-19 Alexandre Oliva <aoliva@redhat.com>
18486 * config.gcc (mips64*-*-linux*): Added.
18487 * config/mips/linux64.h, config/mips/t-linux64: New file.
18488 * config/mips/iris6.h (MIPS_TFMODE_FORMAT): Define.
18489 * config/mips/mips.c (override_options): Use it.
18490 * config/mips/mips.h (TARGET_SWITCHES): Added...
18491 (SUBTARGET_TARGET_SWITCHES): New, empty by default.
18492 * Makefile.in (SPECS): New.
18493 (STAGESTUFF, specs, mostlyclean, install-common): Use it.
18494 * gcc.c (process_command): Move self-spec processing past spec
18496 * doc/tm.texi (DRIVER_SELF_SPECS): Document the change.
18497 * doc/fragments.texi (MULTILIB_EXTRA_OPTS): Document need for
18500 * doc/invoke.texi (-mabi-fake-default): Document.
18502 2003-01-19 Stephane Carrez <stcarrez@nerim.fr>
18504 * config/m68hc11/m68hc11.c (stack_push_word, stack_pop_word,
18505 z_reg, z_reg_qi): Declare static and GTY().
18507 (create_regs_rtx): Don't create da_reg.
18508 ("gt-m68hc11.h"): Include for GTY roots.
18509 * config/m68hc11/m68hc11.h (ix_reg, iy_reg, d_reg): Declare extern
18511 (m68hc11_compare_op0, m68hc11_compare_op1): Likewise.
18512 (m68hc11_soft_tmp_reg): Likewise.
18513 * config/m68hc11/m68hc11-protos.h: Remove above declarations.
18515 2003-01-18 Kazu Hirata <kazu@cs.umass.edu>
18517 * basic-block.h: Fix comment formatting.
18518 * calls.c: Likewise.
18519 * combine.c: Likewise.
18520 * convert.c: Likewise.
18521 * gcov.c: Likewise.
18522 * haifa-sched.c: Likewise.
18523 * libgcc2.c: Likewise.
18524 * loop.c: Likewise.
18525 * profile.c: Likewise.
18526 * system.h: Likewise.
18528 2003-01-18 Roger Sayle <roger@eyesopen.com>
18530 * config/pa/pa.md (muldi3): Avoid invalid sharing of SUBREG RTXs.
18532 2003-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18534 * ra-build.c (undef_to_size_word): Avoid `switch' warning.
18536 2003-01-17 Dale Johannesen <dalej@apple.com>
18538 * config/rs6000/rs6000.md (*floatsidf2_internal): Add earlyclobbers.
18539 (*floatunssidf2_internal): Ditto.
18541 2003-01-17 Kazu Hirata <kazu@cs.umass.edu>
18543 * alias.c: Fix comment typos.
18544 * basic-block.h: Likewise.
18545 * c-common.c: Likewise.
18546 * c-common.h: Likewise.
18547 * c-decl.c: Likewise.
18548 * c-opts.c: Likewise.
18549 * c-pragma.c: Likewise.
18550 * c-pretty-print.h: Likewise.
18552 * cfganal.c: Likewise.
18553 * cfgbuild.c: Likewise.
18554 * cfgcleanup.c: Likewise.
18555 * cfglayout.c: Likewise.
18556 * cfgrtl.c: Likewise.
18557 * convert.c: Likewise.
18558 * cpphash.h: Likewise.
18559 * cpplex.c: Likewise.
18560 * cpplib.h: Likewise.
18562 * diagnostic.c: Likewise.
18563 * diagnostic.h: Likewise.
18564 * dwarf2.h: Likewise.
18566 2003-01-17 Stan Shebs <shebs@apple.com>
18568 * config/darwin-protos.h: Forward-declare struct cpp_reader.
18570 2003-01-17 Douglas B Rupp <rupp@gnat.com>
18572 * config/alpha/alpha.c (alpha_need_linkage): Fix obvious
18573 mistake in last checkin.
18575 2003-01-17 Kazu Hirata <kazu@cs.umass.edu>
18577 * et-forest.c: Fix comment typos.
18578 * et-forest.h: Likewise.
18579 * except.c: Likewise.
18580 * expr.c: Likewise.
18581 * flags.h: Likewise.
18582 * flow.c: Likewise.
18584 * gcse.c: Likewise.
18585 * genattrtab.c: Likewise.
18586 * genautomata.c: Likewise.
18587 * gengtype.c: Likewise.
18588 * genrecog.c: Likewise.
18589 * global.c: Likewise.
18590 * gthr-rtems.h: Likewise.
18592 2003-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18594 * i386.c (x86_function_profiler): Fix format specifier.
18596 2003-01-17 Richard Henderson <rth@redhat.com>
18598 * gengtype.c (walk_type): Allow paramN_is.
18600 2003-01-17 Nick Clifton <nickc@redhat.com>
18602 * config/i960/t-960bare (i960-c.o): Add missing newline escape.
18604 2003-01-16 Richard Henderson <rth@redhat.com>
18606 * config/alpha/linux-elf.h (LIB_SPEC): Adjust inter-option spacing.
18608 2003-01-16 Richard Henderson <rth@redhat.com>
18610 * config/alpha/alpha.c (alpha_sr_alias_set): Mark GTY.
18611 (alpha_next_sequence_number): Likewise.
18612 (alpha_this_literal_sequence_number): Likewise.
18613 (alpha_this_gpdisp_sequence_number): Likewise.
18614 (struct alpha_funcs, alpha_funcs_num): Likewise.
18615 (struct alpha_links): Fix branch merge error.
18616 (alpha_need_linkage, alpha_use_linkage): Use GC for alpha_funcs.
18618 2003-01-17 Alexandre Oliva <aoliva@redhat.com>
18620 * config/mips/mips.h: Don't use #elif. Reported by Kaveh
18623 2003-01-16 Kazu Hirata <kazu@cs.umass.edu>
18625 * ifcvt.c: Fix comment typos.
18627 * libgcc2.c: Likewise.
18628 * local-alloc.c: Likewise.
18629 * loop.c: Likewise.
18630 * predict.c: Likewise.
18631 * ra-build.c: Likewise.
18633 * ra-colorize.c: Likewise.
18635 * ra-rewrite.c: Likewise.
18636 * regmove.c: Likewise.
18637 * reload.h: Likewise.
18638 * rtlanal.c: Likewise.
18639 * toplev.c: Likewise.
18640 * tree.h: Likewise.
18641 * unwind-dw2-fde-glibc.c: Likewise.
18642 * vmsdbgout.c: Likewise.
18644 2003-01-16 Richard Henderson <rth@redhat.com>
18646 * dwarf2out.c (struct file_table): Remove.
18647 (FILE_TABLE_INCREMENT): Remove.
18648 (file_table): Make a varray; mark for GC. Update all users.
18649 (file_table_last_lookup_index): Extract from struct file_table.
18650 (output_file_names): Fix unsigned compare warnings.
18651 (add_name_attribute): Remove inline marker.
18652 (add_comp_dir_attribute): Split out from gen_compile_unit_die.
18653 (lookup_filename): Don't manage size of file_table.
18654 (init_file_table): Allocate file_table with GC.
18655 (dwarf2out_init): Don't record main_input_filename here.
18656 (dwarf2out_finish): Do it here instead.
18658 2003-01-16 Bruce Korb <bkorb@gnu.org>
18660 * gcc/fixinc/inclhack.def(limits_ifndef): QNX needs a bypass, too.
18662 2003-01-16 Kaz Kojima <kkojima@gcc.gnu.org>
18664 * config/sh/sh.c (sh_initialize_trampoline): Emit rotrdi3_mextr
18665 instead of rotldi3_mextr.
18667 2003-01-16 Vladimir Makarov <vmakarov@redhat.com>
18669 * haifa-sched.c (move_insn): Restore moving all schedule group.
18670 (set_priorities): Restore taking SCHED_GROUP_P into account.
18672 * sched-deps.c (add_dependence): Restore processing the last group
18674 (remove_dependence, group_leader): Restore the functions.
18675 (set_sched_group_p): Restore adding dependencies from previous insn
18677 (compute_forward_dependences): Restore usage of group_leader.
18679 * sched-ebb.c (init_ready_list): Restore taking SCHED_GROUP_P into
18682 * sched-rgn.c (init_ready_list): Restore taking SCHED_GROUP_P into
18684 (can_schedule_ready_p): Ditto.
18685 (add_branch_dependences): Restore skipping over the group insns.
18687 2003-01-16 Stephane Carrez <stcarrez@nerim.fr>
18689 * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Fix handling
18690 68HC12 pre/post inc/dec side effects.
18692 2003-01-16 Stephane Carrez <stcarrez@nerim.fr>
18694 * config/m68hc11/m68hc11.h (MASK_M6812): Define.
18696 2003-01-16 J"orn Rennecke <amylaar@onetel.net.uk>
18698 * sh.md (mshflo_w_x): Fix description of operation.
18700 2003-01-16 Zack Weinberg <zack@codesourcery.com>
18702 * config/rs6000/rs6000.h: Mention Altivec registers in
18703 commentary. Fix typo.
18705 2003-01-16 David Edelsohn <edelsohn@gnu.org>
18707 * config/rs6000/rs6000.md (movti_string): Remove clobber.
18708 * config/rs6000/rs6000.c (rs6000_emit_move, TImode): Explicitly
18709 generate PARALLEL with clobber for TARGET_POWER.
18711 2003-01-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18713 * ra-colorize.c (colorize_one_web): Initialize variable.
18714 * regmove.c (fixup_match_1): Likewise.
18715 * reload1.c (reload_as_needed): Likewise.
18716 * sdbout.c (SET_KNOWN_TYPE_TAG): Add cast.
18718 2003-01-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
18720 * cfgloop.c (flow_loops_find): Fix handling of abnormal edges.
18722 2003-01-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18724 * dbxout.c (lastfile, cwd): Fix `unused' warning.
18725 * dwarf2out.c (fde_table_in_use, current_funcdef_fde,
18726 dw_cfi_oprnd1_desc, dw_cfi_oprnd2_desc, next_die_offset,
18727 is_main_source, file_table, decl_die_table_in_use,
18728 abbrev_die_table_in_use, line_info_table_in_use,
18729 separate_line_info_table_in_use, pubname_table_in_use,
18730 arange_table_in_use, ranges_table_in_use,
18731 current_function_has_inlines): Likewise.
18732 * flow.c (life_analysis): Likewise.
18733 * genemit.c (gen_insn): Likewise.
18734 * protoize.c (cplus_suffix): Likewise.
18736 * arm.c (ROUND_UP_WORD): Renamed from ROUND_UP.
18737 * arm.h (ROUND_UP_WORD): Likewise.
18739 * arm.h (CONDITIONAL_REGISTER_USAGE): Avoid signed/unsigned
18741 * emit-rtl.c (gen_rtx_REG, set_mem_attributes_minus_bitpos,
18742 init_emit_once): Likewise.
18743 * flow.c (mark_regs_live_at_end, calculate_global_regs_live):
18745 * function.c (assign_stack_temp_for_type): Likewise.
18746 * loop.c (loop_invariant_p): Likewise.
18747 * recog.c (push_operand): Likewise.
18748 * regclass.c (init_reg_sets_1): Likewise.
18749 * reload.c (update_auto_inc_notes): Likewise.
18750 * reload1.c (reload_as_needed, emit_input_reload_insns): Likewise.
18751 * stmt.c (expand_asm_operands): Likewise.
18752 * stor-layout.c (start_record_layout): Likewise.
18754 2003-01-16 Herman A.J. ten Brugge <hermantenbrugge@home.nl>
18756 * config/c4x/c4x.md (epilogue): Correct last patch.
18758 2003-01-15 Richard Henderson <rth@redhat.com>
18760 * config/alpha/alpha.c (find_lo_sum_using_gp): Rename from find_lo_sum;
18761 also check that GP is being used.
18762 (alpha_find_lo_sum_using_gp): New.
18763 (alpha_does_function_need_gp): Use get_attr_usegp.
18764 * config/alpha/alpha-protos.h: Update.
18765 * config/alpha/alpha.md (attr usegp): New. Annotate patterns
18768 2003-01-15 Roger Sayle <roger@eyesopen.com>
18770 * gcse.c (one_cprop_pass): Change function arguments to take both
18771 cprop_jumps and bypass_jumps flags instead of just alter_jumps.
18772 (gcse_main): Update calls to one_cprop_pass, disabling bypassing.
18773 (bypass_jumps): New function to perform separate jump bypassing pass.
18774 * rtl.h (bypass_jumps): Add function prototype.
18775 * timevar.def (TV_BYPASS): New timing variable.
18776 * toplev.c (enum dump_file_index): Add new entry DFI_bypass.
18777 (dump_file): New entry for the bypass RTL dump file.
18778 (rest_of_compilation): Insert new jump bypassing optimization
18780 * doc/passes.texi: Document new pass.
18782 2003-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
18784 * som.h (SUPPORTS_WEAK, SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY,
18785 ASM_WEAKEN_LABEL, GTHREAD_USE_WEAK): Define.
18786 * pa.h (TARGET_SOM_SDEF): Define.
18787 * pa-hpux11.h (TARGET_SOM_SDEF): Define.
18789 2003-01-16 Stephane Carrez <stcarrez@nerim.fr>
18791 * config/m68hc11/m68hc11.c (expand_prologue): Use push/pop to
18792 allocate 4-bytes of locals on 68HC11.
18793 (expand_epilogue): Likewise.
18794 (m68hc11_memory_move_cost): Increase cost of HI/QI soft registers.
18796 2003-01-15 Stephane Carrez <stcarrez@nerim.fr>
18798 * config/m68hc11/m68hc11.h (ASM_SPEC): Handle -m68hcs12; Pass -mshort
18799 and -mshort-double to the assembler to specify the ABI.
18800 (LINK_SPEC): Likewise.
18801 (CPP_SPEC): Pass HCS12 specific define.
18802 (MASK_M68S12): New define.
18803 (TARGET_M68S12): Likewise.
18804 (TARGET_SWITCHES): New options -m68hcs12 and -m68S12.
18805 (TARGET_VERSION): Update.
18806 * config/m68hc11/m68hc12.h (CPP_SPEC): Pass HCS12 specific define.
18807 (LINK_SPEC): Update.
18808 (ASM_SPEC): Update.
18809 * config/m68hc11/m68hc11.c (m68hc11_asm_file_start): Update.
18810 * doc/invoke.texi (M68hc1x Options): Document -m68hcs12.
18812 2003-01-15 Stephane Carrez <stcarrez@nerim.fr>
18814 * config/m68hc11/m68hc11.md ("return"): Use emit_jump_insn to emit
18817 2003-01-15 Josef Zlomek <zlomekj@suse.cz>
18819 * cfganal.c (set_edge_can_fallthru_flag): Clear the EDGE_CAN_FALLTHRU
18820 flag before setting it.
18822 2003-01-15 Roger Sayle <roger@eyesopen.com>
18824 * c-semantics.c (genrtl_while_stmt): Improve initial RTL generation
18825 when loop condition is known true, i.e. "while (1) { ... }".
18826 (genrtl_for_stmt): Similarly for "for" statements.
18828 2003-01-15 Roger Sayle <roger@eyesopen.com>
18830 * real.c (real_sqrt): Return a bool result indicating whether
18831 a floating point exception or trap should be raised.
18832 * real.h (real_sqrt): Update function prototype.
18833 * builtins.c (fold_builtin): Only fold non-trapping square
18834 roots unless we're ignoring errno and trapping math.
18836 2003-01-15 John David Anglin <dave.anglin@nrc.gc.ca>
18838 * expr.h (emit_conditional_add): Add PARAMS to declaration.
18839 * gengtype-lex.l (malloc, realloc): Move defines after include of
18840 system.h. Remove duplicate include of system.h.
18842 2003-01-15 Roger Sayle <roger@eyesopen.com>
18845 * optabs.c (expand_unop): When manipulating the FP sign bit
18846 using integer operations, account for targets with different
18847 integer and FP word orders.
18848 (expand_abs): Likewise.
18850 2003-01-15 David Edelsohn <edelsohn@gnu.org>
18852 * config/rs6000/rs6000.c (rs6000_gen_section_name): Do not include
18853 file extension in section name.
18855 2003-01-15 Richard Earnshaw <rearnsha@arm.com>
18857 * flow.c (find_auto_inc): Also try to generate a PRE_MODIFY with
18860 2003-01-15 Richard Earnshaw <rearnsha@arm.com>
18862 * arm.h (HAVE_PRE_MODIFY_DISP, HAVE_PRE_MODIFY_REG): Define.
18863 (HAVE_POST_MODIFY_DISP, HAVE_POST_MODIFY_REG): Define.
18864 (ARM_GO_IF_LEGITIMATE_ADDRESS): Handle pre/post-modify addresses.
18865 (ARM_PRINT_OPERAND_ADDRESS): Likewise.
18867 2003-01-15 Jan Hubicka <jh@suse.cz>
18870 * global.c (struct allocno): Add no_stack_reg.
18871 (global_conflicts): Set no_stack_reg.
18872 (find_reg): Use it.
18874 * convert.c (convert_to_real): Fold - and abs only when profitable.
18875 * fold-const.c (fold): Fold truncates in - and abs.
18877 2003-01-15 Josef Zlomek <zlomekj@suse.cz>
18879 Segher Boessenkool <segher@koffie.nl>
18881 * predict.c (real_inv_br_prob_base): New variable.
18882 (propagate_freq): Use multiply by reciprocal instead of
18883 division. Don't divide by 1.0 at all.
18884 (estimate_bb_frequencies): Similar.
18886 2003-01-15 Alexandre Oliva <aoliva@redhat.com>
18888 * configure.in (libgcc_visibility): Force disabled on IRIX 6 too.
18889 * configure: Rebuilt.
18891 2003-01-15 Hartmut Penner <hpenner@de.ibm.com>
18893 * config/s390/s390.c (s390_safe_attr_type): New function.
18894 (s390_use_dfa_pipeline_interface): New function, return true for z900.
18895 (s390_issue_rate): New function.
18896 (s390_agen_dep_p): New function.
18897 (addr_generation_dependency_p): Use 's390_safe_attr_type'.
18898 (s390_adjust_cost): Return 'cost' if new DFA is used.
18899 (s390_adjust_priority): Delete function.
18900 * config/s390/s390-protos.h: (s390_agen_dep_p): New prototype.
18901 * config/s390/s390.md (atype attribute): Attribute 'atype' default
18902 determined by 'op_type'.
18903 (type attribute): Added more type attributes.
18904 * config/s390/2064.md: New DFA description for z900 pipeline.
18906 2003-01-15 Alexandre Oliva <aoliva@redhat.com>
18908 * config/i386/i386.c (ix86_expand_vector_move): Validize constant
18909 forced to memory. Fixes PR bootstrap/9036.
18911 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Define so as
18912 to set $gp before the call.
18914 2003-01-14 Richard Henderson <rth@redhat.com>
18916 * config/alpha/alpha.c (alpha_expand_mov): Use correct mode
18917 for force_const_mem.
18919 2003-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18921 * genattr.c (main): Rearrange output to avoid prototype warning.
18922 * genautomata.c (transform_3): Fix ambiguous-else warning.
18923 * local-alloc.c (requires_inout): Add parentheses around
18924 assignment used as truth-value.
18925 * timevar.c: Move system includes above local includes. Include
18927 * Makefile.in (timevar.o): Depend on toplev.h.
18929 2003-01-14 Denis Chertykov <denisc@overta.ru>
18931 * config/ip2k/ip2k.h (VALID_MACHINE_DECL_ATTRIBUTE): Remove.
18932 (VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
18934 * config/ip2k/ip2k.c (ip2k_attribute_table): New table of
18936 (TARGET_ATTRIBUTE_TABLE): New macro.
18937 (valid_machine_type_attribute): Remove.
18938 (valid_machine_decl_attribute): Remove.
18939 (ip2k_handle_progmem_attribute): New function.
18940 (ip2k_handle_fndecl_attribute): New function.
18942 2003-01-10 Andrew Haley <aph@redhat.com>
18944 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Rename
18945 registers to be in correct order. Add rip.
18947 2003-01-14 Kazu Hirata <kazu@cs.umass.edu>
18949 * config/h8300/h8300.md (*andsi3_lshiftrt_9_sb): New.
18950 (*iorsi3_and_lshiftrt_9_sb): Likewise.
18952 2003-01-14 Jan Hubicka <jh@suse.cz>
18954 * convert.c (strip_float_extensions): Look for narrowest type handling
18957 * fold-const.c (fold): Fold (double)float1 CMP (double)float2 into
18959 * convert.c (strip_float_extensions): Make global.
18960 * tree.h (strip_float_extensions): Declare.
18962 2003-01-14 Gabriel Dos Reis <gdr@integrable-solutions.net>
18964 * timevar.def: define TV_NAME_LOOKUP.
18965 * timevar.c (timevar_pop): Be verbose when aborting.
18967 2003-01-13 Andreas Schwab <schwab@suse.de>
18969 * Makefile.in ($(parsedir)/gengtype-lex.c): Don't change to
18970 $(parsedir), just move the temporary file at the end.
18971 ($(parsedir)/gengtype-yacc.c): Likewise.
18973 2003-01-13 Alexandre Oliva <aoliva@redhat.com>
18975 * aclocal.m4 (gcc_AC_PROG_GNAT): Don't try to prepend
18976 ${ac_tool_prefix} to ADAC or CC. Protect them from word
18978 * configure: Rebuilt.
18980 2003-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18982 * config/sparc/gmon-sol2.c (moncontrol, monstartup, _mcleanup,
18983 internal_mcount): Don't use PARAMS.
18984 (monstartup, _mcleanup, internal_mcount, moncontrol): Convert to
18986 (internal_mcount): Use __attribute__, not ATTRIBUTE_UNUSED.
18988 2003-01-13 Andreas Schwab <schwab@suse.de>
18990 * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Output type
18993 2003-01-13 Kazu Hirata <kazu@cs.umass.edu>
18995 * config/h8300/h8300.md (*andsi3_lshift_n_sb): New.
18996 (*iorsi3_and_lshiftrt_n_sb): Likewise.
18998 2003-01-12 Mark Mitchell <mark@codesourcery.com>
19001 * c-lex.c (c_lex): Set the token value to error_mark_node for
19002 invalid numeric constants.
19004 2003-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19006 * c-pch.c (asm_file_startpos): Change to `long'.
19007 (pch_init): Use ftell, not ftello.
19008 (c_common_write_pch): Use ftell/fseek, not ftello/fseeko.
19009 Use `long' instead of `off_t'.
19010 (c_common_read_pch): Likewise.
19011 * ggc-common.c (gt_pch_save): Use long/ftell instead of
19014 2003-01-12 Alan Modra <amodra@bigpond.net.au>
19016 * expr.c (expand_expr <RDIV_EXPR>): Correct recursive call args.
19018 2003-01-11 Richard Earnshaw (rearnsha@arm.com)
19020 * arm-protos.h (struct cpp_reader): Add declaration.
19022 2003-01-11 Jan Hubicka <jh@suse.cz>
19025 * i386.c (output_fp_compare): Fix typo.
19027 2003-01-10 David Edelsohn <edelsohn@gnu.org>
19029 * config/rs6000/rs6000.c (common_mode_defined): Mark for PCH.
19031 2003-01-10 Geoffrey Keating <geoffk@apple.com>
19033 * Makefile.in (parsedir): New variable.
19034 (docobjdir): New variable.
19035 (c-parse.o, c-parse.c, c-parse.y, gengtype-lex.o, gengtype-yacc.o,
19036 gengtype-lex.c, gengtype-yacc.c): Use parsedir.
19037 (info, cpp.info, gcc.info, gccint.info, gccinstall.info,
19038 cppinternals.info, generated-manpages, gcov.1, cpp.1, gcc.1, gfdl.7,
19039 gpl.7, fsf-funding.7, maintainer-clean, install-info, install-man):
19041 * objc/Make-lang.in (objc/objc-parse.c, objc/objc-parse.y,
19042 objc.maintainer-clean): Use parsedir.
19044 * varasm.c (struct constant_descriptor_rtx): Remove unused
19047 * toplev.c (documented_lang_options): Document -Winvalid-pch.
19049 2003-01-10 Richard Henderson <rth@redhat.com>
19051 * config/alpha/alpha.h (NO_PROFILE_COUNTERS): Set.
19052 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Kill.
19054 2003-01-10 Richard Henderson <rth@redhat.com>
19056 * combine.c (make_compound_operation): Use SCALAR_INT_MODE_P,
19057 not INTEGRAL_MODE_P when widening extensions.
19059 2003-01-10 Richard Henderson <rth@redhat.com>
19061 * config/alpha/alpha.c (decl_has_samegp): True for !TREE_PUBLIC.
19063 2003-01-10 Geoffrey Keating <geoffk@apple.com>
19065 * ggc-page.c (ggc_collect): Avoid overflow computing
19068 * Makefile.in (RANLIB_FOR_TARGET): Use RANLIB when native.
19069 (RANLIB_TEST_FOR_TARGET): Delete. Don't pass down to sub-makes.
19071 * mklibgcc.in: Remove uses of RANLIB_TEST_FOR_TARGET.
19073 2003-01-10 Jan Hubicka <jh@suse.cz>
19075 * ifcvt.c (noce_try_addcc): Do not call emit_conditional_add
19076 with weird operands.
19078 2003-01-10 Dale Johannesen <dalej@apple.com>
19080 * calls.c (load_register_parameters): Add is_sibcall, sibcall_failure
19081 parameters. Call check_sibcall_argument_overlap if indicated.
19082 (check_sibcall_argument_overlap): Add mark_stored_args_map
19083 parameter. Don't mark parameter area as clobbered if not set.
19084 (expand_call): Adjust calls to above.
19086 2003-01-10 Kelley Cook <kelleycook@comcast.net>
19088 * configure.in (linker read-only and read-write section mixing):
19089 Squelch some assembler warnings.
19090 * configure: Likewise.
19092 2003-01-10 Hartmut Penner <hpenner@de.ibm.com>
19094 * doc/invoke.texi: Document -mtune, delete -mcpu
19095 option for S/390 and zSeries.
19096 * config/s390/s390.c (s390_tune_string) New variable.
19097 (s390_cpu_string) Delete variable.
19098 (override_options): Use s390_tune_string instead of
19100 * config/s390/s390.h: (TARGET_OPTIONS) '-mtune' instead of '-mcpu'.
19102 2003-01-10 Kazu Hirata <kazu@cs.umass.edu>
19104 * config/h8300/h8300.md (*iorsi3_ashift_31): New.
19106 2003-01-10 Josef Zlomek <zlomekj@suse.cz>
19108 * jump.c (next_nonnote_insn_in_loop): New function.
19109 (copy_loop_headers): Use next_nonnote_insn_in_loop instead of
19111 (duplicate_loop_exit_test). Likewise.
19113 2003-01-09 Geoffrey Keating <geoffk@apple.com>
19115 Merge from pch-branch:
19117 2003-01-06 Geoffrey Keating <geoffk@apple.com>
19119 * ggc-page.c (ggc_pch_read): Update the statistics after a PCH
19122 2002-12-24 Geoffrey Keating <geoffk@apple.com>
19124 * cpplib.c (count_registered_pragmas): New function.
19125 (save_registered_pragmas): New function.
19126 (_cpp_save_pragma_names): New function.
19127 (restore_registered_pragmas): New function.
19128 (_cpp_restore_pragma_names): New function.
19129 * cpphash.h (_cpp_save_pragma_names): Prototype.
19130 (_cpp_restore_pragma_names): Likewise.
19131 * cpppch.c (struct save_macro_item): Split from save_macro_data.
19132 (struct save_macro_data): New field 'saved_pragmas'.
19133 (save_macros): Update for changes to struct save_macro_data.
19134 (cpp_prepare_state): Call _cpp_save_pragma_names, update
19135 for changes to struct save_macro_data.
19136 (cpp_read_state): Call _cpp_restore_pragma_names, update
19137 for changes to struct save_macro_data.
19139 * cpppch.c (cpp_read_state): Restore the hashtable references
19142 * tree.h (built_in_decls): Mark for PCH.
19144 * dbxout.c (lastfile): Don't mark for PCH.
19146 * ggc.h: Document PCH calls into memory managers.
19148 2002-12-18 Geoffrey Keating <geoffk@apple.com>
19150 * doc/invoke.texi (Precompiled Headers): Document the
19151 directory form of PCH.
19152 * cppfiles.c (validate_pch): New function.
19153 (open_file_pch): Search suitably-named directories for PCH files.
19155 2002-12-14 Geoffrey Keating <geoffk@apple.com>
19157 * doc/gty.texi (GTY Options): Document chain_next, chain_prev,
19159 (Type Information): Mention that the information is also
19160 used to implement PCH.
19161 * doc/passes.texi (Passes): Improve documentation of
19162 language-specific files.
19164 2002-12-11 Geoffrey Keating <geoffk@apple.com>
19166 * gengtype.c (struct write_types_data): Add reorder_note_routine field.
19167 (struct walk_type_data): Add reorder_fn field.
19168 (walk_type): Process 'reorder' option.
19169 (write_types_process_field): Reorder parameters to gt_pch_note_object,
19170 call reorder_note_routine.
19171 (write_func_for_structure): Reorder parameters to gt_pch_note_object.
19172 (ggc_wtd): Update for change to struct write_types_data.
19173 (pch_wtd): Likewise.
19174 * ggc.h (gt_pch_note_object): Reorder parameters.
19175 (gt_handle_reorder): New definition.
19176 (gt_pch_note_reorder): New prototype.
19177 * ggc-common.c (struct ptr_data): Add reorder_fn.
19178 (gt_pch_note_object): Reorder parameters.
19179 (gt_pch_note_reorder): New.
19180 (gt_pch_save): Call reorder_fn.
19181 * stringpool.c (gt_pch_n_S): Update for change to gt_pch_note_object.
19183 * dbxout.c (cwd): Don't mark for PCH.
19185 2002-12-09 Geoffrey Keating <geoffk@apple.com>
19187 * gengtype.c (finish_root_table): Fix some warnings.
19188 (write_root): Handle TYPE_STRING.
19189 * ggc.h (gt_ggc_m_S): Add prototype.
19190 * stringpool.c (gt_ggc_m_S): New function.
19192 2002-11-30 Geoffrey Keating <geoffk@apple.com>
19194 * dwarf2out.c (dw2_string_counter): New.
19195 (AT_string_form): Use it.
19196 (same_dw_val_p): Update for removal of hashtable.h hash tables.
19198 2002-11-22 Geoffrey Keating <geoffk@apple.com>
19200 * dbxout.c: Include gt-dbxout.h.
19201 (lastfile): Mark for PCH/GGC.
19203 (struct typeinfo): Likewise.
19204 (typevec): Likewise.
19205 (typevec_len): Likewise.
19206 (next_type_number): Likewise.
19207 (struct dbx_file): Likewise.
19208 (current_file): Likewise.
19209 (next_file_number): Likewise.
19210 (dbxout_init): Allocate typevec, struct dbx_file with GGC.
19211 (dbxout_start_source_file): Allocate struct dbx_file with GGC.
19212 (dbxout_end_source_file): Don't free struct dbx_file.
19213 (dbxout_type): Use GGC to allocate typevec.
19214 * Makefile.in (dbxout.o): Depend on gt-dbxout.h, $(GGC_H).
19215 (GTFILES): Add dbxout.c.
19216 (gt-dbxout.h): New rule.
19218 * Makefile.in (c-pch.o): Add debug.h as dependency.
19219 * c-pch.c: Include debug.h.
19220 (pch_init): Call start_source_file to keep nesting right.
19221 (c_common_read_pch): Add orig_name parameter. Call
19222 start_source_file debug hook. Call end_source_file debug hook.
19223 * c-common.h (c_common_read_pch): Update prototype.
19224 * cpplib.h (struct cpp_callbacks): Add fourth field to read_pch
19226 * cppfiles.c (struct include_file): Add new field `header_name'.
19227 (find_or_create_entry): Default it to `name'.
19228 (open_file_pch): Set it to the original header file searched for.
19229 (stack_include_file): Don't stack an empty buffer, just handle
19230 PCH files immediately. Pass header_name field to read_pch callback.
19232 2002-11-19 Geoffrey Keating <geoffk@apple.com>
19234 * function.c (funcdef_no): Mark to be saved in a PCH.
19236 2002-11-15 Geoffrey Keating <geoffk@apple.com>
19238 * ggc-page.c (ggc_pch_read): Remove unused 'bmap_size'.
19240 * cpppch.c (cpp_read_state): Correct size reallocated for 'defn'.
19242 2002-11-14 Geoffrey Keating <geoffk@apple.com>
19244 * optabs.h (code_to_optab): Add GTY marker.
19246 2002-11-13 Geoffrey Keating <geoffk@apple.com>
19248 * Makefile.in (GTFILES): Add cpplib.h.
19249 * c-common.h (struct c_common_identifier): Don't skip 'node' field.
19250 * c-decl.c (build_compound_literal): Don't use var_labelno.
19251 * cpplib.h (struct cpp_hashnode): Use gengtype to mark.
19252 * dwarf2asm.c (dw2_force_const_mem): Don't use const_labelno.
19253 * varasm.c (const_labelno): Use gengtype to mark.
19254 (var_labelno): Likewise.
19255 (in_section): Likewise.
19256 (in_named_name): Likewise.
19257 (struct in_named_entry): Likewise.
19258 (in_named_htab): Likewise.
19259 (set_named_section_flags): Use GGC to allocate struct in_named_entry.
19260 (init_varasm_once): Use GGC to allocate in_named_htab.
19261 * config/darwin.c (current_pic_label_num): Mark for PCH.
19263 2002-11-11 Geoffrey Keating <geoffk@apple.com>
19265 * ggc-simple.c (init_ggc_pch): New stub procedure.
19266 (ggc_pch_count_object): Likewise.
19267 (ggc_pch_total_size): Likewise.
19268 (ggc_pch_this_base): Likewise.
19269 (ggc_pch_alloc_object): Likewise.
19270 (ggc_pch_prepare_write): Likewise.
19271 (ggc_pch_write_object): Likewise
19272 (ggc_pch_finish): Likewise.
19273 (ggc_pch_read): Likewise.
19275 2002-11-08 Geoffrey Keating <geoffk@apple.com>
19277 * c-pch.c (c_common_write_pch): Write the macro definitions after
19279 (c_common_read_pch): Call cpp_prepare_state. Restore the macro
19280 definitions after the GCed data.
19281 * cpplib.c (save_macros): New.
19283 (cpp_write_pch_deps): Split out of cpp_write_pch.
19284 (cpp_write_pch_state): Split out of cpp_write_pch.
19285 (cpp_write_pch): Delete.
19286 (struct save_macro_data): Delete.
19287 (cpp_prepare_state): New.
19288 (cpp_read_state): Erase and restore initial macro definitions.
19289 * cpplib.h (struct save_macro_data): Forward-declare.
19290 (cpp_write_pch_deps): Prototype.
19291 (cpp_write_pch_state): Prototype.
19292 (cpp_write_pch): Delete prototype.
19293 (cpp_prepare_state): Prototype.
19294 (cpp_read_state): Add fourth argument.
19296 2002-11-04 Geoffrey Keating <geoffk@apple.com>
19298 * gengtype.c (adjust_field_rtx_def): Don't use skip on valid fields.
19299 (write_array): Remove warning.
19301 * gengtype.c (contains_scalar_p): New.
19302 (finish_root_table): Add the table to all languages, even if it's
19304 (write_roots): Output gt_pch_scalar_rtab.
19305 * ggc-common.c (gt_pch_save): Write out scalars.
19306 (gt_pch_restore): Read scalars back.
19308 * ggc-page.c (OBJECTS_IN_PAGE): New macro.
19309 (struct page_entry): Delete pch_page field.
19310 (ggc_recalculate_in_use_p): Use OBJECTS_IN_PAGE.
19311 (clear_marks): Likewise.
19312 (sweep_pages): Likewise.
19313 (poison_pages): Likewise.
19314 (ggc_print_statistics): Likewise.
19315 (ggc_pch_read): Don't free objects read from a PCH.
19316 Properly set up in_use_p and page_tails.
19318 2002-10-25 Geoffrey Keating <geoffk@apple.com>
19320 * gengtype.c (struct write_types_data): New.
19321 (struct walk_type_data): Make `cookie' const; add extra
19322 prev_val item; add `orig_s' field.
19323 (walk_type): Update prev_val[3].
19324 (write_types_process_field): New.
19325 (write_func_for_structure): Take write_types_data structure.
19326 (write_types): New.
19329 (write_types_local_process_field): New.
19330 (gc_mark_process_field): Delete.
19331 (write_local_func_for_structure): New.
19332 (gc_mark_func_name): Delete.
19333 (write_gc_types): Delete.
19334 (write_local): New.
19335 (finish_root_table): Don't include 'ggc_' in PFX.
19336 (write_root): Rename from write_root. Fill pchw field of structures.
19337 (write_array): New.
19338 (write_roots): Rename from write_gc_roots. Split out to write_array.
19339 Update to changes to other routines. Write gt_pch_cache_rtab table.
19340 (main): Write PCH walking routines.
19341 * ggc-common.c: Include toplev.h, sys/mman.h.
19342 (ggc_mark_roots): For cache hashtables, also mark the hash table
19343 and the array of entries.
19344 (saving_htab): New.
19345 (struct ptr_data): New.
19346 (POINTER_HASH): New.
19347 (gt_pch_note_object): New.
19348 (saving_htab_hash): New.
19349 (saving_htab_eq): New.
19350 (struct traversal_state): New.
19353 (compare_ptr_data): New.
19354 (relocate_ptrs): New.
19355 (write_pch_globals): New.
19356 (struct mmap_info): New.
19357 (gt_pch_save): New.
19358 (gt_pch_restore): New.
19359 * ggc-page.c (ROUND_UP_VALUE): New.
19361 (struct page_entry): Add field `pch_page'.
19362 (init_ggc): Use ROUND_UP.
19363 (struct ggc_pch_data): Declare.
19364 (init_ggc_pch): New.
19365 (ggc_pch_count_object): New.
19366 (ggc_pch_total_size): New.
19367 (ggc_pch_this_base): New.
19368 (ggc_pch_alloc_object): New.
19369 (ggc_pch_prepare_write): New.
19370 (ggc_pch_write_object): New.
19371 (ggc_pch_finish): New.
19372 (ggc_pch_read): New.
19373 * ggc.h (gt_pointer_operator): New.
19374 (gt_note_pointers): New.
19375 (gt_pch_note_object): New prototype.
19376 (gt_pointer_walker): New.
19377 (struct ggc_root_tab): Use gt_pointer_walker, add `pchw' field.
19378 (LAST_GGC_ROOT_TAB): Update.
19379 (gt_pch_cache_rtab): Declare.
19380 (gt_pch_scalar_rtab): Declare.
19381 (struct ggc_cache_tab): Use gt_pointer_walker, add `pchw' field.
19382 (LAST_GGC_CACHE_TAB): Update.
19383 (gt_pch_save_stringpool): Declare.
19384 (gt_pch_restore_stringpool): Declare.
19385 (gt_pch_p_S): Declare.
19386 (gt_pch_n_S): Declare.
19387 (struct ggc_pch_data): Forward-declare.
19388 (init_ggc_pch): Declare.
19389 (ggc_pch_count_object): Declare.
19390 (ggc_pch_total_size): Declare.
19391 (ggc_pch_this_base): Declare.
19392 (ggc_pch_alloc_object): Declare.
19393 (ggc_pch_prepare_write): Declare.
19394 (ggc_pch_write_object): Declare.
19395 (ggc_pch_finish): Declare.
19396 (ggc_pch_read): Declare.
19397 (gt_pch_save): Declare.
19398 (gt_pch_restore): Declare.
19399 * fold-const.c (size_int_type_wide): Allocate size_htab using GGC.
19400 * emit-rtl.c (init_emit_once): Allocate const_int_htab,
19401 const_double_htab, mem_attrs_htab using GGC.
19402 * c-pch.c: Include ggc.h.
19403 (pch_init): Allow reading PCH file back.
19404 (c_common_write_pch): Call gt_pch_save.
19405 (c_common_read_pch): Call gt_pch_restore.
19406 * c-parse.in (init_reswords): Delete now-untrue comment.
19407 Allocate ridpointers using GGC.
19408 * c-objc-common.c (c_objc_common_finish_file): Write PCH before
19409 calling expand_deferred_fns.
19410 * c-common.h (ridpointers): Mark for GTY machinery.
19411 * Makefile.in (stringpool.o): Update dependencies.
19412 (c-pch.o): Update dependencies.
19413 (ggc-common.o): Update dependencies.
19414 * stringpool.c: Include gt-stringpool.h.
19417 (struct string_pool_data): New.
19419 (gt_pch_save_stringpool): New.
19420 (gt_pch_restore_stringpool): New.
19421 * tree.c (init_ttree): Make type_hash_table allocated using GC.
19423 2002-10-04 Geoffrey Keating <geoffk@apple.com>
19425 * gengtype.c (adjust_field_rtx_def): Don't pass size_t to printf.
19426 (output_mangled_typename): Don't pass size_t to printf.
19428 * tree.h (union tree_type_symtab): Add tag to `address' field.
19429 (union tree_decl_u2): Add tag to 'i' field.
19430 * varasm.c (union rtx_const_un): Add tags to all fields.
19431 * gengtype.c (struct walk_type_data): New.
19432 (output_escaped_param): Take struct walk_type_data parameter.
19433 (write_gc_structure_fields): Delete.
19435 (write_gc_marker_routine_for_structure): Delete.
19436 (write_func_for_structure): New.
19437 (gc_mark_process_field): New.
19438 (gc_mark_func_name): New.
19439 (gc_counter): Delete.
19440 (write_gc_types): Use write_func_for_structure.
19441 (write_gc_roots): Use walk_type.
19443 2002-10-02 Geoffrey Keating <geoffk@apple.com>
19445 * ggc-common.c (ggc_mark_roots): Delete 'x'.
19446 (ggc_splay_dont_free): Fix warning about unused 'x'.
19447 (ggc_print_common_statistics): Remove warnings.
19449 2002-10-01 Mike Stump <mrs@apple.com>
19451 * ggc-common.c (ggc_splay_alloc): Actually return the allocated area.
19452 * gengtype.c (write_gc_structure_fields): Handle param[digit]_is.
19454 2002-09-01 Geoffrey Keating <geoffk@redhat.com>
19455 Catherine Moore <clm@redhat.com>
19457 * Makefile (c-pch.o): Update dependencies.
19458 (LIBCPP_OBJS): Add cpppch.o.
19460 * c-common.c (c_common_init): Don't call pch_init here.
19461 * c-common.h (c_common_read_pch): Update prototype.
19462 * c-lex.c (c_common_parse_file): Call pch_init here.
19463 * c-opts.c (COMMAND_LINE_OPTIONS): Add -Winvalid-pch, -fpch-deps.
19464 (c_common_decode_option): Handle them.
19465 * c-pch.c: Include c-pragma.h.
19466 (save_asm_offset): Delete.
19467 (pch_init): Move contents of save_asm_offset into here, call
19469 (c_common_write_pch): Call cpp_write_pch.
19470 (c_common_valid_pch): Warn only when -Winvalid-pch. Call
19472 (c_common_read_pch): Add NAME parameter. Call cpp_read_state.
19473 * cppfiles.c (stack_include_file): Update for change to
19474 parameters of cb.read_pch.
19475 * cpphash.h (struct cpp_reader): Add `savedstate' field.
19476 * cpplib.h (struct cpp_options): Add `warn_invalid_pch' and
19477 `restore_pch_deps' fields.
19478 (struct cpp_callbacks): Add NAME parameter to `read_pch'.
19479 (cpp_save_state): Prototype.
19480 (cpp_write_pch): Prototype.
19481 (cpp_valid_state): Prototype.
19482 (cpp_read_state): Prototype.
19483 * cpppch.c: New file.
19484 * flags.h (version_flag): Remove prototype.
19485 * mkdeps.c (deps_save): New.
19486 (deps_restore): New.
19487 * mkdeps.h (deps_save): Prototype.
19488 (deps_restore): Prototype.
19489 * toplev.c (late_init_hook): Delete.
19490 (version_flag): Make static again.
19491 (compile_file): Don't call late_init_hook.
19492 * toplev.h (late_init_hook): Delete.
19493 * doc/cppopts.texi: Document -fpch-deps.
19494 * doc/invoke.texi (Warning Options): Document -Winvalid-pch.
19496 2002-08-27 Geoffrey Keating <geoffk@redhat.com>
19498 * c-pch.c (c_common_write_pch): Rename from c_write_pch, change
19500 (c_common_valid_pch): Rename from c_valid_pch, change callers.
19501 (c_common_read_pch): Rename from c_read_pch, change callers.
19503 * c-opts.c (COMMAND_LINE_OPTIONS): Allow -output-pch= to have
19504 a space between it and its argument.
19506 2002-08-24 Geoffrey Keating <geoffk@redhat.com>
19508 * c-pch.c: New file.
19509 * toplev.h (late_init_hook): Declare.
19510 * toplev.c (late_init_hook): Define.
19511 (version_flag): Make globally visible.
19512 (compile_file): Call late_init_hook.
19513 (init_asm_output): Make output file seekable.
19514 * gcc.c (default_compilers): Update c-header rule.
19515 * flags.h (version_flag): Declare.
19516 * cpplib.h (struct cpp_callbacks): Add 'valid_pch' and 'read_pch'
19518 * cppfiles.c (struct include_file): Add 'pch' field.
19519 (INCLUDE_PCH_P): New.
19520 (open_file_pch): New.
19521 (stack_include_file): Handle PCH files specially.
19522 (find_include_file): Call open_file_pch instead of open_file.
19523 (_cpp_read_file): Explain why open_file is used instead of
19525 * c-opts.c (c_common_decode_option): Correct OPT__output_pch case.
19526 * c-objc-common.c (c_objc_common_finish_file): Call c_write_pch.
19527 * c-lex.c (init_c_lex): Set valid_pch and read_pch fields
19528 in cpplib callbacks.
19529 * c-common.c (pch_file): Correct comment.
19530 (allow_pch): Define.
19531 (c_common_init): Call pch_init.
19532 * c-common.h (allow_pch): Declare.
19533 (pch_init): Declare.
19534 (c_valid_pch): Declare.
19535 (c_read_pch): Declare.
19536 (c_write_pch): Declare.
19537 * Makefile.in (c-pch.o): New.
19538 (C_AND_OBJC_OBJS): Add c-pch.o.
19539 * doc/invoke.texi (Precompiled Headers): Add index entries,
19540 complete truncated paragraph.
19542 2002-08-17 Geoffrey Keating <geoffk@redhat.com>
19544 * c-common.c: (pch_file): Define.
19545 * c-common.h (pch_file): Declare.
19546 * c-opts.c (COMMAND_LINE_OPTIONS): Add --output-pch=.
19547 (missing_arg): Require --output-pch= to have an argument.
19548 (c_common_decode_option): Handle --output-pch=.
19549 * gcc.c: Document new %V.
19550 (default_compilers): Handle compiling C header files.
19551 (do_spec_1): Implement %V.
19552 (main): Handle "gcc foo.h" without trying to run linker.
19553 * doc/invoke.texi (Invoking GCC): Add new menu item for PCH.
19554 (Overall Options): Document what the driver does with header files,
19555 document new -x option possibilities.
19556 (Invoking G++): More documentation for PCH.
19557 (Precompiled Headers): New.
19559 2002-08-09 Geoffrey Keating <geoffk@redhat.com>
19561 * ggc.h: Don't include varray.h. Rearrange functions to be more
19563 (ggc_add_root): Delete.
19564 (ggc_mark_rtx): Delete.
19565 (ggc_mark_tree): Delete.
19566 (struct ggc_statistics): Remove contents.
19567 * ggc-common.c: Remove unneeded includes.
19568 (struct ggc_root): Delete.
19570 (ggc_add_root): Delete.
19571 (ggc_mark_roots): Don't mark `roots'. Call ggc_mark_stringpool.
19572 (ggc_print_common_statistics): Remove most of the contents.
19573 * Makefile.in (GGC_H): No longer uses varray.h.
19574 (ggc-common.o): Update dependencies.
19575 (c-parse.o): Add varray.h to dependencies.
19576 (c-common.o): Add varray.h.
19577 * stringpool.c (mark_ident): Use mangled name for tree marker routine.
19578 (mark_ident_hash): Rename to ggc_mark_stringpool.
19579 (init_stringpool): Don't use ggc_add_root.
19580 * c-parse.in: Include varray.h.
19581 * c-common.c: Include varray.h.
19582 * objc/Make-lang.in (objc-act.o): Add varray.h.
19583 * objc/objc-act.c: Include varray.h.
19585 2002-07-25 Geoffrey Keating <geoffk@redhat.com>
19587 * dwarf2out.c (dw_cfi_oprnd2_desc): Fix ISO-only function definition.
19588 (dw_cfi_oprnd1_desc): Likewise.
19590 2002-07-17 Geoffrey Keating <geoffk@redhat.com>
19592 * config/alpha/alpha.c (struct alpha_links): Use gengtype to mark;
19594 (alpha_links): Use gengtype to mark; move out of ifdef.
19595 (mark_alpha_links_node): Delete.
19596 (mark_alpha_links): Delete.
19597 (alpha_need_linkage): Use GGC to allocate splay tree, struct
19598 alpha_links, strings. Don't use ggc_add_root.
19599 * ggc-common.c (ggc_splay_alloc): New.
19600 (ggc_splay_dont_free): New.
19601 * ggc.h (ggc_mark_rtx): Update for changed name mangling.
19602 (ggc_mark_tree): Likewise.
19603 (splay_tree_new_ggc): New.
19604 (ggc_splay_alloc): Declare.
19605 (ggc_splay_dont_free): Declare.
19606 * dwarf2asm.c: Include gt-dwarf2asm.h.
19607 (mark_indirect_pool_entry): Delete.
19608 (mark_indirect_pool): Delete.
19609 (indirect_pool): Use gengtype to mark.
19610 (dw2_force_const_mem): Don't use ggc_add_root.
19611 * Makefile.in (dwarf2asm.o): Depend on gt-dwarf2asm.h.
19612 (GTFILES): Add SPLAY_TREE_H, dwarf2asm.c.
19613 (gt-dwarf2asm.h): Depend on s-gtype.
19615 2002-07-08 Geoffrey Keating <geoffk@redhat.com>
19617 * tree.h (union tree_type_symtab): Mark `die' field.
19618 * Makefile.in (dwarf2out.o): Update dependencies.
19619 * dwarf2out.c: Use GGC to allocate all structures. Convert to htab_t
19621 (dw_cfi_oprnd1_desc): New function.
19622 (dw_cfi_oprnd2_desc): New function.
19623 (indirect_string_alloc): Delete.
19624 (debug_str_do_hash): New function.
19625 (debug_str_eq): New function.
19626 (mark_limbo_die_list): Delete.
19627 (dwarf2out_init): Don't call ggc_add_root.
19629 2003-01-09 Vladimir Makarov <vmakarov@redhat.com>
19631 The following changes are merged from itanium-sched-branch:
19633 2003-01-08 David Edelsohn <edelsohn@gnu.org>
19635 * doc/md.texi: Clarify assignment of units to automata description.
19637 2003-01-08 Vladimir Makarov <vmakarov@redhat.com>
19639 * genautomata.c (unit_decl): Remove members
19640 `the_same_automaton_unit' and
19641 `the_same_automaton_message_reported_p'.
19642 (process_unit_to_form_the_same_automaton_unit_lists,
19643 form_the_same_automaton_unit_lists_from_regexp,
19644 form_the_same_automaton_unit_lists, the_same_automaton_lists):
19646 (annotation_message_reported_p): New global variable.
19647 (check_unit_distribution_in_reserv,
19648 check_regexp_units_distribution): New functions.
19649 (check_unit_distributions_to_automata): Rewrite it.
19651 2003-01-04 Vladimir Makarov <vmakarov@redhat.com>
19653 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
19654 Use continue instead of break if cycle is too big.
19656 2002-12-20 Vladimir Makarov <vmakarov@redhat.com>
19658 * genautomata.c (check_unit_distributions_to_automata): Output at
19659 most one message for a unit.
19660 (process_unit_to_form_the_same_automaton_unit_lists): Check
19661 automaton of units instead of units themself.
19663 * doc/md.texi: Describe the constraint about assigning unit to
19666 2002-12-20 Jan Hubicka <jH@suse.cz>
19667 Vladimir Makarov <vmakarov@redhat.com>
19669 * genautomata.c (unit_decl): Add new members `min_occ_cycle_num'
19671 (gen_cpu_unit): Initialize the new members.
19672 (process_regexp_cycles): Calculate minimal finish cycle too. Set
19673 up `min_occ_cycle_num'.
19674 (evaluate_max_reserv_cycles): Change the function call.
19675 (CLEAR_BIT): New macro.
19676 (states_union, state_shift): Use the mask.
19677 (initiate_excl_sets, form_reserv_sets_list): Set up `in_set_p'.
19678 (form_reservs_matter): New function.
19679 (make_automaton): Call the function and use the mask.
19680 (estimate_one_automaton_bound): Take `min_occ_cycle_num' into
19683 2002-12-17 Vladimir Makarov <vmakarov@redhat.com>
19685 * config/ia64/itanium2.md (lfetch): Change the insn reservation.
19687 2002-12-17 Vladimir Makarov <vmakarov@redhat.com>
19689 * config/ia64/ia64.c (bundling): Try to insert 2 nops for M insn
19692 2002-12-17 Vladimir Makarov <vmakarov@redhat.com>
19694 * config/ia64/ia64.c (ia64_override_options): Make itanium2 as
19697 2002-12-17 Vladimir Makarov <vmakarov@redhat.com>
19698 2002-10-31 Dale Johannesen <dalej@apple.com>
19700 * haifa-sched.c (find_set_reg_weight): New function.
19701 (find_insn_reg_weight): Use the new function.
19702 (schedule_block): Do sorting ready queue always
19705 2002-11-27 Vladimir Makarov <vmakarov@redhat.com>
19707 * config/ia64/ia64.c (bundling): Use MFI template instead of MLX.
19709 2002-11-19 Vladimir Makarov <vmakarov@redhat.com>
19711 * haifa-sched.c (choice_entry): New structure.
19712 (choice_stack, cycle_issued_insns): New variables.
19713 (max_issue): Rewrite it.
19714 (choose_ready): Set up ready_try for unknown insns too.
19715 (schedule_block): Allocate and free choice_stack. Set up
19716 and modify cycle_issued_insns.
19718 * config/ia64/ia64.c (issue_nops_and_insn): Combine insn issue
19719 with and without filling the bundle.
19720 (bundling): Combine calls of issue_nops_and_insn.
19722 2002-10-17 Vladimir Makarov <vmakarov@redhat.com>
19724 * config/ia64/itanium1.md: New file.
19726 * config/ia64/itanium2.md: New file.
19728 * config/ia64/ia64.md: Move DFA descriptions into the new files.
19729 Remove the old pipeline description.
19731 * config/ia64/ia64.c (ia64_override_options): Add aliases of
19732 itanium processor names.
19734 2002-10-16 Vladimir Makarov <vmakarov@redhat.com>
19736 * config/ia64/ia64.c (bundling): Print states for Itanium2 too.
19737 (ia64_reorg): Set up queried unit codes for Itanium2 too.
19739 * config/ia64/ia64.md: Add descriptions for Itanium2.
19741 2002-10-08 Vladimir Makarov <vmakarov@redhat.com>
19743 * config/ia64/ia64.h (processor_type): New enumeration.
19744 (ia64_tune, ia64_tune_string): New external declarations.
19745 (TARGET_OPTIONS): Add option `tune='.
19747 * config/ia64/ia64.c (ia64_tune, ia64_tune_string): New global
19749 (ia64_override_options): Set up `ia64_tune'.
19750 (ia64_sched_reorder2): Set up `clocks' only for Itanium.
19751 (ia64_dfa_new_cycle): Set up `add_cycles' only for Itanium.
19752 (bundling): Add nops for MM-insns only for Itanium.
19753 (ia64_reorg): Allocate and free `clocks' and `add_cycles' only for
19756 * config/ia64/ia64.md (cpu): New attribute.
19757 (DFA description): Enable it only for Itanium.
19759 2002-10-08 Vladimir Makarov <vmakarov@redhat.com>
19760 Richard Henderson <rth@redhat.com>
19762 * config/ia64/ia64.h (MASK_TUNE_STOP_BITS): Rename it to
19763 MASK_EARLY_STOP_BITS.
19764 (TARGET_TUNE_STOP_BITS): Rename it to TARGET_EARLY_STOP_BITS.
19765 (TARGET_SWITCHES): Rename option `tune-stop-bits' to
19768 * config/ia64/ia64.c (ia64_dfa_new_cycle,
19769 final_emit_insn_group_barriers): Use TARGET_EARLY_STOP_BITS
19770 instead of TARGET_TUNE_STOP_BITS.
19772 * doc/invoke.texi: Rename option `-mtune-stop-bits' to
19773 `-mearly-stop-bits'.
19775 * config/ia64/ia64.c (automata_option "v"): Comment it.
19777 2002-10-07 Vladimir Makarov <vmakarov@redhat.com>
19779 * config/ia64/ia64.h (MASK_TUNE_STOP_BITS, TARGET_TUNE_STOP_BITS):
19781 (TARGET_SWITCHES): Add entries for the new option.
19783 * config/ia64/ia64.c (dfa_stop_insn, last_scheduled_insn, rtx
19784 dfa_pre_cycle_insn, ia64_nop): Don't make them as roots for GC.
19785 (stops_p, stop_before_p, clocks_length, clocks, add_cycles): New
19787 (ia64_sched_reorder2): Set up `clocks'.
19788 (ia64_variable_issue): Set up `stops_p' and reset `stop_before_p'.
19789 (ia64_dfa_new_cycle): Set up add_cycle. Permit sorting ready
19790 queue when TARGET_TUNE_STOP_BITS.
19791 (bundling): Insert additional nops for MM-insns.
19792 (final_emit_insn_group_barriers): Add insertion of stop bits
19793 according `stops_p'.
19794 (ia64_reorg): Initiate the new varibales.
19796 * doc/invoke.texi: Add description of option `-mtune-stop-bits'.
19798 2002-10-02 Vladimir Makarov <vmakarov@redhat.com>
19800 * haifa-sched.c (schedule_block): Modify INSN_TICK of depended
19801 insns at the end of block insn scheduling.
19803 2002-09-30 Vladimir Makarov <vmakarov@redhat.com>
19805 * sched-deps.c (remove_dependence, group_leader): Remove it.
19806 (add_dependence): Add dependence to group leader to.
19807 (set_sched_group_p): Add dependence to the first insn of the
19808 schedule group too.
19809 (sched_analyze_insn): Make dependence to jump as anti-dependence.
19810 Change true dependence by anti-dependence when
19811 `reg_pending_barrier'.
19813 * sched-rgn.c (init_ready_list, can_schedule_ready_p,
19814 add_branch_dependences): Ignore schedule groups.
19816 * sched-ebb.c (init_ready_list): Ditto.
19818 * (move_insn, set_priorities): Ditto.
19820 * config/ia64/ia64.c (ia64_sched_init): Check that schedule group
19821 flag is clear after reload.
19822 (adjust_cost): Change cost only for output dependencies.
19824 * config/ia64/ia64.md: Add more insns into bypass for MM-insns.
19826 2002-09-26 Vladimir Makarov <vmakarov@redhat.com>
19828 * Makefile.in (sched-ebb.o): Add `$(TARGET_H)' to the entry.
19830 * target.h (gcc_target): Add member
19831 `dependencies_evaluation_hook'.
19833 * target-def.h (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New
19835 (TARGET_SCHED): Add initiatialization of the new member.
19837 * sched-ebb.c: Include `target.h'.
19838 (schedule_ebb): Call `dependencies_evaluation_hook'.
19840 * sched-rgn.c (schedule_region): Call
19841 `dependencies_evaluation_hook'.
19843 * config/ia64/ia64.c (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
19845 (ia64_dependencies_evaluation_hook): New function.
19847 * doc/tm.texi (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
19848 Describe the new hook.
19850 2002-09-25 Vladimir Makarov <vmakarov@redhat.com>
19852 * target.h (gcc_target): Add members
19853 `first_cycle_multipass_dfa_lookahead_guard' and `dfa_new_cycle'.
19855 * target-def.h (TARGET_SCHED_DFA_NEW_CYCLE,
19856 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): New
19858 (TARGET_SCHED): Add initiatialization of the new members.
19860 * haifa-sched.c (schedule_insn): Update last_clock_var for the 1st
19861 insn scheduling too.
19862 (choose_ready): Use `first_cycle_multipass_dfa_lookahead_guard' to
19863 initialize `ready_try'.
19864 (schedule_block): Use `dfa_new_cycle'. Sort `ready' only unless
19865 `dfa_new_cycle' says not to do it.
19867 * config/ia64/ia64.md: Add DFA Itanium 1 description for insn
19870 * config/ia64/ia64.h (CPU_UNITS_QUERY): New macro.
19872 * config/ia64/ia64.c: Include `hashtab.h'.
19873 (ia64_first_cycle_multipass_dfa_lookahead_guard,
19874 ia64_dfa_new_cycle, final_emit_insn_group_barriers,
19875 ia64_dfa_sched_reorder, get_free_bundle_state, free_bundle_state,
19876 initiate_bundle_states, finish_bundle_states, bundle_state_hash,
19877 bundle_state_eq_p, insert_bundle_state,
19878 initiate_bundle_state_table, finish_bundle_state_table,
19879 try_issue_nops, try_issue_insn, issue_nops_and_insn, get_max_pos,
19880 get_template, get_next_important_insn, bundling): New functions.
19881 (ia64_internal_sched_reorder): Remove it.
19882 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
19883 TARGET_SCHED_DFA_NEW_CYCLE): New macros.
19884 (ia64_safe_itanium_requires_unit0): Remove it.
19885 (group_barrier_needed_p): Place group barrier right before a real
19887 (bundle, ia64_packet, NR_PACKETS, type_names, packets, packets):
19889 (bundle_name): New variable.
19890 (_0mii_, _0mmi_, _0mfi_, _0mmf_, _0bbb_, _0mbb_, _0mib_, _0mmb_,
19891 _0mfb_, _0mlx_, _1mii_, _1mmi_, _1mfi_, _1mmf_, _1bbb_, _1mbb_,
19892 _1mib_, _1mmb_, _1mfb_, _1mlx_, pos_1, pos_2, pos_3, pos_4, pos_5,
19893 pos_6, dfa_stop_insn, last_scheduled_insn, dfa_state_size,
19894 temp_dfa_state, prev_cycle_state): New global variables.
19895 (insn_matches_slot, maybe_rotate, finish_last_head,
19896 rotate_one_bundle, rotate_one_bundles, nop_cycles_until,
19897 cycle_end_fill_slots, packet_matches_p, get_split, find_best_insn,
19898 find_best_packet, itanium_reorder, dump_current_packet,
19899 schedule_stop, gen_nop_type, ia64_emit_nops): Remove them.
19900 (sched_data, sched_ready, sched_types): Remove them.
19901 (ia64_sched_init): Initiate only `last_scheduled_insn' and call
19902 `init_insn_group_barriers'.
19903 (ia64_sched_reorder, ia64_sched_reorder2): Call
19904 ia64_dfa_sched_reorder.
19905 (ia64_variable_issue): Rewrite it.
19906 (bundle_state): New structure.
19907 (index_to_bundle_states, bundle_states_num,
19908 allocated_bundle_states_chain, free_bundle_state_chain): New
19910 (ia64_sched_finish): Add stop bits and call `bundling' after the
19911 2nd insn scheduling.
19912 (ia64_use_dfa_pipeline_interface): Return zero always.
19913 (ia64_first_cycle_multipass_dfa_lookahead): Return 6 for the 2nd
19915 (ia64_init_dfa_pre_cycle_insn): Initialize `dfa_state_size',
19916 `temp_dfa_state', `prev_cycle_state', and `dfa_stop_insn'.
19917 (ia64_reorg): Add bundling insns.
19920 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
19921 TARGET_SCHED_DFA_NEW_CYCLE): Describe the new hooks.
19923 2002-09-23 Vladimir Makarov <vmakarov@redhat.com>
19925 * config/ia64/ia64.md: Add Itanium1 DFA description.
19926 (itanium_class): Add `nop' and `pre_cycle'. Add
19927 define_function_unit for `nop'.
19928 (nop): Change attribute `itanium_class'.
19929 (pre_cycle): New define_insn.
19931 * config/ia64/ia64-protos.h (bundling_p): New external variable.
19932 (ia64_st_address_bypass_p, ia64_ld_address_bypass_p,
19933 ia64_produce_address_p): New function prototypes.
19935 * config/ia64/ia64.c (bundling_p): New global variable.
19936 (ia64_use_dfa_pipeline_interface,
19937 ia64_first_cycle_multipass_dfa_lookahead,
19938 ia64_init_dfa_pre_cycle_insn, ia64_dfa_pre_cycle_insn): New
19940 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
19941 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
19942 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
19943 TARGET_SCHED_DFA_PRE_CYCLE_INSN): New macros.
19944 (ia64_sched_init, ia64_sched_reorder, ia64_sched_reorder2,
19945 ia64_variable_issue, ia64_sched_finish): Do nothing before reload.
19946 (dfa_pre_cycle_insn): New variable.
19948 2002-09-20 Vladimir Makarov <vmakarov@redhat.com>
19950 * rtl.def (FINAL_PRESENCE_SET, FINAL_ABSENCE_SET): New
19953 * genattrtab.h (gen_final_presence_set, gen_final_absence_set):
19954 New function prototypes.
19956 * genattrtab.c (main): Process the new constructions.
19958 * genautomata.c (gen_presence_absence_set,
19959 process_presence_absence_names, process_presence_absence_patterns,
19960 add_presence_absence, check_absence_pattern_sets): Add parameter
19962 (unit_decl): Add new members `final_presence_list' and
19963 `final_absence_list'.
19964 (unit_pattern_rel_decl): Add new member `final_p'.
19965 (gen_final_presence_set, gen_final_absence_set): New functions.
19966 (process_decls): Use member `final_p'.
19967 (temp_reserv): New global variable.
19968 (reserv_sets_are_intersected): Add processing `final_presence_set'
19969 and `final_absence_set'.
19970 (initiate_states): Allocate `temp_reserv'.
19971 (unit_final_presence_set_table, unit_final_absence_set_table): New
19973 (initiate_presence_absence_pattern_sets): Initiate them.
19974 (NDFA_to_DFA): Fix typo.
19975 (output_description): Output `final_presence_set' and
19976 `final_absence_set'.
19978 * doc/md.texi (final_presence_set, final_absence_set): Describe
19981 2002-09-20 Vladimir Makarov <vmakarov@redhat.com>
19983 * genautomata.c (transform_3): Process a missing case (nothing on
19986 2002-09-20 Vladimir Makarov <vmakarov@redhat.com>
19988 * rtl.def (DEFINE_QUERY_CPU_UNIT, AUTOMATA_OPTION): Change
19989 comments about queried units and the minimization.
19991 * doc/md.texi: Ditto.
19993 * genautomata.c (create_composed_state): Return nonzero if the new
19994 state has been created.
19995 (first_cycle_unit_presence): New function.
19996 (state_is_differed): Add new parameter. Use the new function.
19997 Take queried units into account.
19998 (partition_equiv_class): Pass additional parameter to
19999 `state_is_differed'.
20000 (merge_states): Process composed states too.
20001 (build_automaton, create_automata, output_min_issue_delay_table,
20002 output_tables, output_statistics): Output more information.
20003 (output_reserved_units_table): Use function
20004 `first_cycle_unit_presence'.
20005 (output_tables): Output table of queried units even if the
20006 minimization is switched on.
20007 (write_automata): Output code for querying units even if the
20008 minimization is switched on.
20010 2002-09-19 Vladimir Makarov <vmakarov@redhat.com>
20012 * rtl.def (PRESENCE_SET, ABSENCE_SET): Add comments about extended
20013 syntax of the constructions.
20015 * doc/md.texi (PRESENCE_SET, ABSENCE_SET): Add description of
20016 extended syntax of the constructions.
20018 * genautomata.c (unit_rel_decl): Rename it to
20019 `unit_pattern_rel_decl'.
20020 (pattern_set_el, pattern_reserv): New structures.
20021 (pattern_set_el_t, pattern_reserv_t): New types.
20022 (gen_presence_absence_set): New function.
20023 (process_presence_absence): Remove it.
20024 (process_presence_absence_names,
20025 process_presence_absence_patterns): New functions.
20026 (get_presence_absence_set): Remove it.
20027 (initiate_presence_absence_sets): Rename it on
20028 `initiate_presence_absence_pattern_sets'. Use new function
20029 `form_reserv_sets_list'.
20030 (form_reserv_sets_list, check_presence_pattern_sets,
20031 check_absence_pattern_sets, output_pattern_set_el_list): New
20033 (unit_decl): Change types of members `presence_list' and
20035 (unit_rel_decl): Rename member `names_num' to `all_names_num'.
20036 (decl): Change types of members `excl', `presence', and `absence'.
20037 (get_str_vect): Rename `par_flag' to `paren_p'. Add null element
20038 at the end of the vector.
20039 (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
20040 gen_automaton, gen_regexp_repeat, gen_regexp_allof,
20041 gen_regexp_oneof, gen_regexp_sequence): Use boolean values.
20042 (gen_presence_set, gen_absence_set): Use new function
20043 `gen_presence_absence_set'.
20044 (add_presence_absence): Process `pattern_list' instead of
20046 (process_decls): USe new functions
20047 `process_presence_absence_names' and
20048 `process_presence_absence_patterns'.
20049 (reserv_sets_are_intersected): Use new function
20050 `check_presence_pattern_sets'.
20051 (presence_set, absence_set): Remove them.
20052 (unit_presence_set_table, unit_absence_set_table): New global
20054 (output_description): Use new function
20055 `output_pattern_set_el_list'.
20056 (generate): Use `initiate_presence_absence_pattern_sets'.
20058 2002-09-18 Vladimir Makarov <vmakarov@redhat.com>
20060 * genattr.c (main): Add output of prototype of new interface
20061 function `dfa_clean_insn_cache'.
20063 * genautomata.c (output_dfa_clean_insn_cache_func): New function.
20064 (DFA_CLEAN_INSN_CACHE_FUNC_NAME): New macro.
20065 (output_dfa_start_func): Use function `dfa_clean_insn_cache' in
20066 the generated code.
20067 (write_automata): Call the new function.
20069 2003-01-09 Jan Hubicka <jh@suse.cz>
20071 * i386.md (unit, prefix_0f, memory attributes): Hanlde sseicvt
20074 2003-01-09 Paolo Carlini <pcarlini@unitus.it>
20076 * doc/tm.texi (EXTRA_ADDRESS_CONSTRAINT): Fix typo.
20078 2003-01-09 J"orn Rennecke <joern.rennecke@superh.com>
20080 * defaults.h (EXTRA_MEMORY_CONSTRAINT): Add STR argument.
20081 (EXTRA_ADDRESS_CONSTRAINT): Likewise.
20082 (CONSTRAINT_LEN): Provide default definition.
20083 (CONST_OK_FOR_CONSTRAINT_P): Likewise.
20084 (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Likewise.
20085 (EXTRA_CONSTRAINT_STR): Likewise.
20086 (REG_CLASS_FROM_CONSTRAINT): Define.
20087 * genoutput.c (check_constraint_len, constraint_len): New functions.
20088 (validate_insn_alternatives): Check CONSTRAINT_LEN for each
20089 constraint / modifier.
20090 (gen_insn): Call check_constraint_len.
20091 * local-alloc.c (block_alloc): Update to use new macros / pass
20092 second argument to EXTRA_{MEMORY,ADDRESS}_CONSTRAINT.
20093 * ra-build.c (handle_asm_insn): Likewise.
20094 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
20095 (constrain_operands, peep2_find_free_register): Likewise.
20096 * regclass.c (record_operand_costs, record_reg_classes): Likewise.
20097 * regmove.c (find_matches): Likewise.
20098 * reload.c (push_secondary_reload, find_reloads): Likewise.
20099 (alternative_allows_memconst): Likewise.
20100 * reload1.c (maybe_fix_stack_asms): Likewise.
20101 (reload_cse_simplify_operands): Likewise.
20102 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
20103 * doc/tm.texi (CONSTRAINT_LEN, REG_CLASS_FROM_CONSTRAINT): Document.
20104 (CONST_OK_FOR_CONSTRAINT_P): Likewise.
20105 (CONST_DOUBLE_OK_FOR_CONSTRAINT_P, EXTRA_CONSTRAINT_STR): Likewise.
20106 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Add STR argument.
20107 * config/s390/s390.h (EXTRA_MEMORY_CONSTRAINT): Likewise.
20109 * sh.h (OVERRIDE_OPTIONS): Allow first scheduling pass for SH5.
20111 2003-01-09 Kazu Hirata <kazu@cs.umass.edu>
20113 * config/h8300/h8300.md (*extzv_1_r_h8300): Correct the insn
20115 (*extzv_1_r_h8300hs): Likewise.
20116 (*extzv_1_r_inv_h8300): Likewise.
20117 (*extzv_1_r_inv_h8300hs): Likewise.
20119 2003-01-09 Kazu Hirata <kazu@cs.umass.edu>
20121 * config/h8300/h8300.h (PREDICATE_CODES): New.
20123 2003-01-09 Kazu Hirata <kazu@cs.umass.edu>
20125 * config/h8300/h8300.md (*addsi3_upper): New.
20126 (*iorsi3_shift): Likewise.
20127 (two splitters): Likewise.
20128 (*addsi3_shift): Likewise.
20129 (two splitters): Likewise.
20131 2003-01-09 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
20133 * Makefile.in (optabs.o): Add dependency on basic-block.h.
20134 * basic-block.h (control_flow_insn_p): Fuction was exported.
20135 * cfgbuild.c (control_flow_insn_p): Fuction was made non-static.
20136 * optabs.c (emit_libcall_block): Emit REG_LIBCALL and REG_RETVAL
20137 notes only when the region is contained in a single basic block.
20139 2003-01-09 Eric Botcazou <ebotcazou@libertysurf.fr>
20142 * tree.h (expand_asm): New prototype.
20143 * stmt.c (expand_asm): Set the MEM_VOLATILE_P flag if instructed
20145 * c-semantics (genrtl_asm_stmt): Pass the RID_VOLATILE qualifier
20146 down to expand_asm.
20147 * c-typeck.c (simple_asm_stmt): Set the RID_VOLATILE qualifier.
20148 * rtlanal.c (volatile_insn_p) [ASM_INPUT]: Test the MEM_VOLATILE_P flag.
20149 (volatile_refs_p) [ASM_INPUT]: Likewise.
20150 (side_effects_p) [ASM_INPUT]: Likewise.
20152 2003-01-09 Jan Hubicka <jh@suse.cz>
20154 * i386.md (*mul*): FIx constraints; remove confused comment; fix
20155 athlon_decode attributes
20156 (imul/k8 optimization peep2s): New.
20158 * athlon.md (athlon_ssecmp*): Handle ssecomi as well.
20159 * i386.md (type attribute): Add ssecomi.
20160 (unit, memory, prefix attributes): Handle ssecomi.
20161 (cvt?2? patterns): Fix athlon_decode attribute
20162 (comi patterns): Set attribute to ssecomi.
20165 * m68k.md (umulsidi, mulsidi expanders): Use register operand.
20167 2003-01-09 Richard Sandiford <rsandifo@redhat.com>
20169 * config/mips/mips.h (PREDICATE_CODES): Add ADDRESSOF for predicates
20170 that match register_operands.
20171 * config/mips/mips.c (reg_or_0_operand, true_reg_or_0_operand): Make
20172 register_operand the default case.
20174 2003-01-09 Eric Botcazou <ebotcazou@libertysurf.fr>
20177 * c-typeck.c (process_init_element) [RECORD_TYPE]: For
20178 an empty element, do not advance the pointer to unfilled
20179 fields if there are pending initializers.
20181 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
20183 * Makefile.in (ORDINARY_FLAGS_TO_PASS): Also pass DESTDIR.
20184 (install-gcc-tooldir, install-cpp, installdirs,
20185 install-common, install-driver, install-info, install-man,
20186 install-headers, install-include-dir, install-headers-tar,
20187 install-headers-cpio, install-headers-cp, install-mkheaders,
20188 install-collect2, uninstall): Prepend $(DESTDIR) to
20189 destination paths in all (un)installation commands.
20190 (install-driver): Rewrite $(LN) commands to support DESTDIR
20191 with "ln" as well as with "ln -s".
20192 (installdirs): Simply use mkinstalldirs.
20193 (install-libgcc, install-multilib): Also pass DESTDIR.
20194 * mklibgcc.in: Prepend $(DESTDIR) to $(libsubdir) in the
20195 installation destination variable ldir.
20196 * config/alpha/t-osf4, config/arm/t-netbsd,
20197 config/ia64/t-hpux, config/mips/t-iris5-6,
20198 config/pa/t-hpux-shlib, config/rs6000/t-aix43,
20199 config/rs6000/t-aix52, config/t-slibgcc-elf-ver,
20200 config/t-slibgcc-sld: Prepend $$(DESTDIR) to $$(slibdir)
20201 in the definition of SHLIB_INSTALL.
20202 * config/arc/t-arc (install-multilib-arc): Prepend $(DESTDIR) to
20203 $(libsubdir) in the installation commands.
20205 2003-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
20207 * config/sh/sh.h (CASE_VECTOR_MODE): Use SImode for a
20208 non-optimizing compile.
20209 (ASM_OUTPUT_ADDR_VEC_ELT): Use .long for a non-optimizing
20212 2003-01-08 Douglas B Rupp <rupp@gnat.com>
20214 * config/i386/i386.c (ix86_attribute_table): Add new attributes
20215 ms_struct and gcc_struct.
20216 (ix86_handle_struct_attribute): New function.
20217 (ix86_ms_bitfield_layout_p): Update to take new attributes
20219 * doc/extend.texi: Document new attributes.
20220 * testsuite/gcc.dg/bf-ms-attrib.c: New test.
20222 2003-01-08 Danny Smith <dannysmith@users.sourceforge.net>
20224 PR optimization/8750
20225 * config/i386/i386.c (ix86_expand_prologue): Don't allow
20226 scheduling pass to move insns across __alloca call.
20228 2003-01-08 Dale Johannesen <dalej@apple.com>
20230 * config/rs6000/rs6000.md: Replace *store_multiple_string
20233 2003-01-08 Jeff Sturm <jsturm@one-point.com>
20236 * config/rs6000/rs6000.c (rs6000_elf_encode_section_info):
20237 Set SYMBOL_REF_FLAG on local data sym_ref.
20239 2003-01-08 Dale Johannesen <dalej@apple.com>
20241 * function.c (assign_parms): Don't set pretend_args_size if
20242 REG_PARM_STACK_SPACE.
20243 config/rs6000/rs6000.c (setup_incoming_varargs): Don't set
20246 2003-01-08 Nathanael Nerode <neroden@gcc.gnu.org>
20250 2003-01-09 Jan Hubicka <jh@suse.cz>
20252 * i386.c (ix86_expand_int_addcc): Fix thinko.
20254 2003-01-08 David Edelsohn <edelsohn@gnu.org>
20256 * config/rs6000/rs6000.h (FUNCTION_MODE): Always use SImode.
20257 * config/rs6000/rs6000.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Redefine
20258 as hook_bool_tree_hwi_hwi_tree_true.
20259 (rs6000_emit_allocate_stack): Use TARGET_32BIT.
20260 (rs6000_emit_epilogue): Same.
20261 (rs6000_output_mi_thunk): Re-implement as RTL.
20262 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Call
20263 xcoffout_declare_function if any debugging enabled.
20265 2003-01-08 Chris Demetriou <cgd@broadcom.com>
20267 * config.gcc (mipsisa32r2-*-elf*, mipsisa32r2el-*-elf*): New
20268 targets, to support MIPS32 Release 2 (MIPS32R2) configurations.
20269 * config/mips/mips.h (enum processor_type): Rename
20270 PROCESSOR_R4KC to PROCESSOR_4KC, PROCESSOR_R5KC to
20271 PROCESSOR_5KC, and PROCESSOR_R20KC to PROCESSOR_20KC.
20273 (TARGET_MIPS4KC, TARGET_MIPS5KC): Update for the renaming.
20274 (ISA_MIPS32R2): New define.
20275 (GENERATE_MULT3_SI, ISA_HAS_CONDMOVE, ISA_HAS_8CC)
20276 (ISA_HAS_MADD_MSUB, ISA_HAS_CLZ_CLO)
20277 (ISA_HAS_PREFETCH): Add support for MIPS32R2.
20278 (MIPS_ISA_DEFAULT): Likewise. Also, fix indentation.
20279 (TARGET_CPU_CPP_BUILTINS): Add support for MIPS32R2. Add new
20280 predefine __mips_isa_rev for MIPS32, MIPS32R2, and MIPS64.
20281 (ISA_HAS_ROTR_SI): Add support for MIPS32R2, and avoid if
20282 compiling MIPS16 code.
20283 (ISA_HAS_ROTR_DI): Do not use if compiling MIPS16 code, and fix
20285 (ISA_HAS_SEB_SEH): New define.
20286 (ASM_SPEC, LINK_SPEC): Pass -mips32r2 to assembler and linker.
20287 * config/mips/mips.c (mips_cpu_info_table): Adjust for enum
20288 processor_type value renaming. Add support for MIPS32R2.
20289 Clean up comments, and move "sb1" entry with other MIPS64 CPU
20291 (override_options): Reimplement -mipsN option handling so that
20292 it will work correctly for -mips32r2. Avoid branch-likely
20293 instructions on MIPS32R2.
20294 * config/mips/mips.md (mulsi3_mult3): Add support for MIPS32R2.
20295 (extendhisi2): Use extendhisi2_hw if ISA_HAS_SEB_SEH.
20296 (extendqisi2): Use extendqisi2_hw if ISA_HAS_SEB_SEH.
20297 (extendhisi2_hw, extendqisi2_hw): New.
20298 * config/mips/netbsd.h (TARGET_CPU_CPP_BUILTINS): Add support
20299 for MIPS32R2. Add new predefine __mips_isa_rev for MIPS32,
20300 MIPS32R2, and MIPS64.
20301 (LINK_SPEC): Pass -mips32r2 to linker.
20302 * config/mips/t-isa3264: Built -mips32r2 multilibs.
20303 * doc/invoke.texi (MIPS Options): Add -mips32r2, add support
20304 for mips32r2 in the -march description. Alphabetically sort
20305 CPU names in the -march description. Add long-missed -mips32
20306 and -mips64 to MIPS option summary.
20308 * config.gcc: Update copyright years to include 2003.
20309 * config/mips/mips.c: Likewise.
20310 * config/mips/mips.h: Likewise.
20311 * config/mips/mips.md: Likewise.
20312 * config/mips/netbsd.h: Likewise.
20313 * doc/invoke.texi: Likewise.
20315 2003-01-08 Andreas Schwab <schwab@suse.de>
20317 * aclocal.m4 (gcc_AC_INITFINI_ARRAY): Fix spelling of cache
20319 * configure: Regenerated.
20321 2003-01-08 Kazu Hirata <kazu@cs.umass.edu>
20323 * config/h8300/h8300.c (output_logical_op): Replace byte/word
20324 extraction of det with b0, b1, w0, w2, etc.
20325 (compute_logical_op_length): Likewise.
20326 (compute_logical_op_cc): Likewise.
20328 2003-01-08 Kazu Hirata <kazu@cs.umass.edu>
20330 * config/h8300/h8300.h (CONSTANT_ADDRESS_P): Allow CONST and
20331 HIGH on all variants.
20333 2003-01-08 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
20335 * Makefile.in (PARTITION_H): New.
20336 (BASIC_BLOCK_H): Added hard-reg-set.h and $(PARTITION_H).
20337 * basic-block.h: Include hard-reg-set.h.
20339 2003-01-08 Richard Earnshaw <rearnsha@arm.com>
20341 * arm.h (ENABLE_XF_PATTERNS): Delete.
20342 * arm.md (addxf3, subxf3, mulxf3, divxf3, modxf3, negxf2, absxf2)
20343 (sqrtxf2, floatsixf2, fix_truncxfsi2, truncxfsf2, truncxfdf2)
20344 (extendsfxf2, extenddfxf2, movxf, cmpxf, cmpxf_insn)
20345 (cmpxf_trap): Delete.
20346 (movxf_hard_insn): Remove test of ENABLE_XF_PATTERNS.
20348 2003-01-08 Jan Hubicka <jh@suse.cz>
20350 * i386.md (adddi3_carry_rex64, subdi3_carry_rex64): Name pattern.
20351 (addhi3_carry, addqi3_carry, subhi3_carry, subqi3_carry): New patterns.
20352 (add??cc): New expanders.
20353 * i386.c (expand_int_addcc): New function.
20354 * i386-protos.h (expand_int_addcc): Declare.
20356 * alias.c (memory_modified_1): New static function.
20357 (memory_modified): New static varaible.
20358 (memory_modified_in_insn_p): New global function.
20359 * rtl.h (memory_modified_in_insn_p): Declare.
20360 * rtlanal.c (modified_between_p, modified_in_p): Be smart about memory
20363 * expr.h (emit_conditional_add): Declare.
20365 2003-01-07 Janis Johnson <janis187@us.ibm.com>
20368 * doc/invoke.texi (-malign-double): Explain that the option breaks
20369 binary compatibility.
20371 2003-01-08 Andreas Schwab <schwab@suse.de>
20373 * config.gcc (m68k-*-linux*): Don't set extra_parts and gnu_ld,
20374 should come from the generic *-*-linux* entry.
20376 2003-01-07 Jan Hubicka <jh@suse.cz>
20378 * cselib.c (cselib_current_insn_in_libcall): New static variable.
20379 (new_elt_loc_list, cselib_process_insn, cselib_init): Keep track on whether
20380 we are inside libcall.
20381 * cselib.h (elt_loc_list): Add in_libcall.
20382 * gcse.c (do_local_cprop): Do not copy propagate using insns
20385 2003-01-07 David Edelsohn <edelsohn@gnu.org>
20387 * doc/tm.texi (TARGET_SCHED_VARIABLE_ISSUE): CLOBBER and USE do
20388 not normally affect to issue rate.
20390 2003-01-07 Jan Hubicka <jh@suse.cz>
20392 * genopinit.c (optabs): Add addc_optab.
20393 * ifcvt.c (noce_try_store_flag): Rename to ...
20394 (noce_try_addcc): ... this one; handle generic conditional increment.
20395 (noce_process_if_block): Update noce_try_addcc call.
20396 * optabs.c (emit_conditional_add): New.
20397 (init_obtabs): Initialize addc_optab.
20398 * optabs.h (optab_index): Add OTI_addcc.
20399 (addcc_optab): New macro.
20400 * md.texi: Document addMcc
20403 * i386.c (ix86_init_mmx_sse_builtins): Constify arguments of loads.
20404 * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
20405 * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
20407 * reload1.c (delete_output_reload): Avoid repeated attempts
20410 2003-01-07 Andreas Schwab <schwab@suse.de>
20412 * configure.in: Restore CFLAGS before gcc_AC_INITFINI_ARRAY.
20413 Move --enable-initfini-array check ...
20414 * aclocal.m4 (gcc_AC_INITFINI_ARRAY): ... here. Define
20415 HAVE_INITFINI_ARRAY also when --enable-initfini-array is given.
20416 Don't AC_SUBST gcc_cv_initfinit_array. Use AC_TRY_RUN.
20417 * configure: Rebuild.
20419 2003-01-07 Richard Henderson <rth@redhat.com>
20421 * alias.c (find_base_value): Only use new_reg_base_value shortcut
20422 if the register is set once.
20424 2003-01-07 Sylvain Pion <Sylvain.Pion@mpi-sb.mpg.de>
20426 * config/i386/i386.c (ix86_init_mmx_sse_builtins):
20427 __builtin_ia32_ldmxcsr and __builtin_ia32_stmxcsr are SSE, not MXX.
20428 * config/i386/i386.md (ldmxcsr, stmxcsr): SSE, not MMX.
20430 2003-01-07 Benjamin Kosnik <bkoz@redhat.com>
20431 Sunil Davasam <sunil.k.davasam@intel.com>
20434 * unwind-dw2.c (execute_cfa_program): DW_CFA_undefined,
20435 DW_CFA_same_value, read next and ignore.
20437 2003-01-07 Richard Henderson <rth@redhat.com>
20439 * cfganal.c (flow_call_edges_add): Don't crash on noreturn call.
20441 2003-01-07 Daniel Berlin <dberlin@dberlin.org>
20443 * cfg.c: Include alloc-pool.h
20444 (edge_pool): New pool.
20445 (bb_pool): New pool.
20446 (first_deleted_edge): Remove.
20447 (first_deleted_block): Remove.
20448 (init_flow): Alloc/free the pools.
20449 (free_edge): Use pools.
20450 (alloc_block): Ditto.
20451 (expunge_block): Ditto.
20452 (cached_make_edge): Ditto.
20454 * Makefile.in (cfg.o): Add alloc-pool.h dependency.
20456 2003-01-07 Daniel Berlin <dberlin@dberlin.org>
20458 * et-forest.c: Include alloc-pool.h.
20459 (struct et_forest): Add node_pool and occur_pool.
20460 (et_forest_create): Create the new pools.
20461 (et_forest_delete): Delete them.
20462 (et_forest_add_node): Allocate and free using pools.
20463 (et_forest_add_edge): Ditto.
20464 (et_forest_remove_node): Ditto.
20465 (et_forest_remove_edge): Ditto.
20467 * Makefile.in (et-forest.o): Add alloc-pool.h dependency.
20469 2003-01-07 Kazu Hirata <kazu@cs.umass.edu>
20471 * config/h8300/h8300.c (output_logical_op): Simplify and
20472 optimize the handling of SImode.
20473 * config/h8300/h8300.c (compute_logical_op_length): Update
20475 * config/h8300/h8300.c (compute_logical_op_cc): Likewise.
20477 2003-01-07 Richard Sandiford <rsandifo@redhat.com>
20479 * config/mips/mips.c (mips_va_arg): In the EABI code, apply the
20480 big-endian correction to indirect arguments too.
20482 2003-01-06 Aldy Hernandez <aldyh@redhat.com>
20484 Segher Boessenkool <segher@koffie.nl>
20486 * config/rs6000/rs6000.c (rs6000_reg_names): Add missing registers.
20487 (alt_reg_names): Ditto, fix formatting.
20488 * config/rs6000/rs6000.h (DEBUG_REGISTER_NAMES): Fix formatting.
20490 2003-01-06 Kazu Hirata <kazu@cs.umass.edu>
20492 * config/h8300/h8300.c (final_prescan_insn): Constify uid.
20493 (output_logical_op): Constify intval and det.
20494 (compute_logical_length): Likewise.
20495 (compute_logical_cc): Likewise.
20496 (output_a_shift): Constify mask.
20497 (h8300_encode_label): Constify len.
20499 2003-01-06 Kazu Hirata <kazu@cs.umass.edu>
20501 * config/h8300/h8300.c (h8300_expand_prologue): Remove fsize.
20502 (h8300_expand_epilogue): Likewise.
20504 2003-01-06 Aldy Hernandez <aldyh@redhat.com>
20506 Segher Boessenkool <segher@koffie.nl>
20508 * config/rs6000/altivec.md: Remove spaces from assembler
20509 instruction argument lists.
20511 2003-01-07 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
20513 * config/c4x/c4x.c (c4x_naked_function_p): Rename from
20514 c4x_assembler_function_p.
20515 (c4x_null_epilogue_p): Complement return value, all uses updated.
20516 (c4x_insert_attributes): Add naked.
20517 * config/c4x/c4x.md (c4x_null_epilogue_p): Changes uses.
20518 * doc/extend.texi: Update C4x function attributes.
20520 2003-01-06 Richard Henderson <rth@redhat.com>
20522 * config/alpha/alpha.c (alpha_encode_section_info): Adjust symbol_str
20523 properly when changing "local-ness".
20524 * config/alpha/alpha.md (movdi_er_high_g): Allow all symbols.
20526 2003-01-06 Dale Johannesen <dalej@apple.com>
20528 * config/darwin-protos.h: Add prototypes for new section functions.
20530 2003-01-06 Chris Demetriou <cgd@broadcom.com>
20532 * config.gcc (mipsisa32-*-elf*, mipsisa32el-*-elf*): Default ABI
20535 2003-01-06 Zack Weinberg <zack@codesourcery.com>
20537 * hwint.h: If the current compiler has no 64-bit type at all,
20538 make HOST_WIDEST_INT 32 bits.
20540 2003-01-06 Eric Christopher <echristo@redhat.com>
20542 * config/mips/mips.md (movdf_internal2): Fix constraints.
20544 2003-01-06 Kazu Hirata <kazu@cs.umass.edu>
20546 * config/h8300/h8300.md (*twoshifts_l16_r1): New.
20548 2003-01-06 Richard Sandiford <rsandifo@redhat.com>
20550 * config/mips/mips.md (leadi): Use dla rather than la.
20552 2003-01-06 Svein E. Seldal <Svein.Seldal@solidas.com>
20554 * config/c4x/c4x.h: Updated specs for new gas format. Fixed bug
20555 in C33_FLAG. Added proper C33 support in ASM_FILE_START macro.
20557 2003-01-06 Herman A.J. ten Brugge <hermantenbrugge@home.nl>
20559 * config/c4x/c4x.h: Remove hwint.h include and HOST_WIDE_INT_PRINT_HEX
20562 2003-01-05 Kazu Hirata <kazu@cs.umass.edu>
20564 * config/h8300/h8300.md (*extzv_8_23): New.
20566 2003-01-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
20568 * pa64-hpux.h (JCR_SECTION_NAME): Define.
20569 (PA_INIT_FRAME_DUMMY_ASM_OP): Check EH_FRAME_SECTION_NAME instead of
20570 USE_EH_FRAME_REGISTRY when defining.
20572 2003-01-05 Kazu Hirata <kazu@cs.umass.edu>
20574 * config/h8300/h8300.c (output_a_shift): Do not output a
20576 * config/h8300/h8300.md (two splitters): New.
20578 2003-01-05 Richard Sandiford <rsandifo@redhat.com>
20580 * config/mips/mips.md: Disable the movstrsi define_split.
20582 2003-01-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20584 * alloc-pool.c: Don't include "libiberty.h".
20585 * config/sparc/gmon-sol2.c: Include <fcntl.h>.
20586 * convert.c (convert_to_real): Hide unused variable.
20588 2003-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20590 * Makefile.in (gtyp-gen.h): Const-ify.
20591 * gcov-dump.c (tag_table): Likewise.
20593 2003-01-04 Bruce Korb <bkorb@gnu.org>
20595 * fixinc/fixfixes.c(wrap_fix): the wrapper guard must be a function
20596 of *both* the file name and the fix name.
20598 2003-01-04 John David Anglin <dave.anglin@nrc.ca>
20600 * config.gcc (hppa*64*-*-hpux11*): Define extra_parts. Don't use
20602 * pa-hpux11.h (LDD_SUFFIX, PARSE_LDD_OUTPUT): Undefine.
20603 (HAS_INIT_SECTION, LD_INIT_SWITCH, LD_FINI_SWITCH): Define.
20604 * pa64-hpux.h (HP_INIT_ARRAY_SECTION_ASM_OP,
20605 GNU_INIT_ARRAY_SECTION_ASM_OP, HP_FINI_ARRAY_SECTION_ASM_OP,
20606 GNU_FINI_ARRAY_SECTION_ASM_OP): Define.
20607 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Define when not using
20609 (EH_FRAME_IN_DATA_SECTION): Delete define.
20610 (HAS_INIT_SECTION, LD_INIT_SWITCH, LD_FINI_SWITCH): Undefine.
20611 (STARTFILE_SPEC): Use crtbegin.o.
20612 (ENDFILE_SPEC): Use crtend.o.
20613 (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION,
20614 SUPPORTS_INIT_PRIORITY, PA_CXA_FINALIZE_STUB, PA_INIT_FINI_HACK,
20615 PA_INIT_FRAME_DUMMY_ASM_OP, PA_JV_REGISTERCLASSES_STUB,
20616 DTOR_LIST_BEGIN): Define.
20617 * pa.c (TARGET_ASM_CONSTRUCTOR): Define.
20618 (pa_asm_out_constructor, pa_asm_out_destructor): New functions.
20619 * som.h (SUPPORTS_INIT_PRIORITY): Delete define.
20621 2002-12-31 Larin Hennessy <larin@science.oregonstate.edu>
20623 * fixinc/fixinc.svr4: Remove references to i860, Sony NewsOS, and spur.
20624 * fixinc/inclhack.def: Remove tests for Apple A/UX, ARM/RISCiX, DG/UX,
20625 m88k-*-sysv3*, Sony NewsOS. Remove references to i860.
20626 Cleanup handling of replacement text.
20627 * fixinc/mkfixinc.sh: Remove reference to i?86-*-osf1*
20629 2003-01-04 Bruce Korb <bkorb@gnu.org>
20631 * fixinc/tests/base/math.h: removed obsolete results
20632 * fixinc/tests/base/stdlib.h: ditto
20633 * fixinc/tests/base/sys/param.h: ditto
20634 * fixinc/tests/base/sys/stat.h: ditto
20635 * fixinc/tests/base/time.h: ditto
20636 * fixinc/tests/base/X11/Intrinsic.h: removed obsolete file
20637 * fixinc/tests/base/sys/byteorder.h: ditto
20638 * fixinc/inclhack.def: Remove superfluous backslashes
20640 2003-01-04 Kazu Hirata <kazu@cs.umass.edu>
20642 * config/h8300/h8300-protos.h: Add prototypes for
20643 the new functions defined below.
20644 * config/h8300/h8300.c (TARGET_ASM_FUNCTION_PROLOGUE): Do not
20646 (dosize): Emit RTL instead of assembly code.
20649 (h8300_output_function_prologue): Remove.
20650 (h8300_expand_prologue): New.
20651 (h8300_expand_epilogue): New.
20652 (h8300_output_function_epilogue): Do only the reset of
20654 * config/h8300/h8300.md (push_h8300): New.
20655 (push_h8300hs): Likewise.
20656 (pop_h8300): Likewise.
20657 (pop_h8300hs): Likewise.
20658 (*stm_h8300s_2): Change the name to stm_h8300s_2.
20659 (*stm_h8300s_3): Change the name to stm_h8300s_3.
20660 (*stm_h8300s_4): Change the name to stm_h8300s_4.
20661 (*ldm_h8300s_2): New.
20662 (*ldm_h8300s_3): Likewise.
20663 (*ldm_h8300s_4): Likewise.
20664 (return): Likewise.
20665 (*return_1): Likewise.
20666 (prologue): Likewise.
20667 (epilogue): Likewise.
20668 (monitor_prologue): Likewise.
20670 2003-01-03 Dale Johannesen <dalej@apple.com>
20672 * config/darwin.h: (EXTRA_SECTIONS): Add machopic_symbol_stub1,
20673 machopic_picsymbol_stub1.
20674 (EXTRA_SECTION_FUNCTIONS): Ditto.
20675 * rs6000/rs6000.c: Update copyright.
20676 (machopic_output_stub): Use them. Remove an insn from stub code.
20678 2003-01-02 Jason Merrill <jason@redhat.com>
20680 * fold-const.c (fold) [COND_EXPR]: Avoid NOP_EXPRs better.
20682 * integrate.c (copy_decl_for_inlining): Don't clear the rtl for
20683 static/external decls.
20685 * c-common.c (finish_fname_decls): Put the DECL_STMTs inside the
20687 * c-decl.c (c_make_fname_decl): Push the decls there, too.
20689 2003-01-03 Kazu Hirata <kazu@cs.umass.edu>
20691 * config/h8300/h8300-protos.h: Add a prototype for
20692 h8300_current_function_interrupt_function_p.
20693 * config/h8300/h8300.c (interrupt_handler): Remove.
20694 (os_task): Likewise.
20695 (monitor): Likewise.
20696 (pragma_interrupt): New.
20697 (WORD_REG_USED): Use
20698 h8300_current_function_interrupt_function_p.
20699 (dosize): Likewise.
20700 (h8300_output_function_prologue): Likewise.
20701 Do not set interrupt_handler, os_task, monitor.
20702 (h8300_output_function_prologue): Use
20703 h8300_current_function_interrupt_function_p.
20704 Do not set interrupt_handler, os_task, monitor.
20705 (h8300_current_function_interrupt_function_p): New.
20706 (h8300_pr_interrupt): Set pragma_interrupt.
20707 (h8300_insert_attributes): Reset pragma_interrupt.
20709 2003-01-03 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
20711 * doc/install.texi (Configuration): Fix markup for reference to
20714 2003-01-02 Kazu Hirata <kazu@cs.umass.edu>
20716 * config/h8300/h8300.md (*iorhi3_zext): Relax the condition.
20717 (*iorhi3_two_qi): Likewise.
20718 (*iorsi3_zexthi): Likewise.
20719 (*xorhi3_zextqi): Likewise.
20720 (*xorsi3_zexthi): Likewise.
20721 (*xorsi3_zextqi): Likewise.
20723 2003-01-02 Kazu Hirata <kazu@cs.umass.edu>
20725 * config/h8300/h8300.c (stack_pointer_operand): New.
20726 (const_int_gt_2_operand): Likewise.
20727 (const_int_ge_8_operand): Likewise.
20728 * config/h8300/h8300.md (a splitter): Likewise.
20729 (a peephole2): Likewise.
20730 * config/h8300/h8300-protos.h: Add prototypes for the new
20733 2003-01-02 Steven Bosscher <s.bosscher@student.tudelft.nl>
20735 * objc/Make-lang.in, objc/config-lang.in, objc/lang-specs.h,
20736 objc/objc-act.h: Fix copyright years.
20738 2003-01-02 Steven Bosscher <s.bosscher@student.tudelft.nl>
20740 * doc/passes.texi: Fix documentation for -fssa-ccp
20742 2003-01-02 Neil Booth <neil@daikokuya.co.uk>
20744 * gccbug.in: Update for new categories.
20746 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
20748 * config/h8300/h8300.md: Reorder some patterns.
20750 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
20752 * config/h8300/h8300.c (output_logical_op): Fix a warning.
20754 2003-01-01 Neil Booth <neil@daikokuya.co.uk>
20756 * config/darwin-protos.h, config/c4x/c4x-protos.h,
20757 config/cris/cris-protos.h, config/i370/i370-protos.h,
20758 config/i960/i960-protos.h, config/ia64/ia64-protos.h,
20759 config/v850/v850-protos.h: Use struct, and don't conditionally
20760 compile on GCC_C_PRAGMA_H.
20762 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
20764 * config/arm/arm-protos.h: Remove #ifdef GCC_C_PRAGMA_H.
20765 * config/h8300/h8300-protos.h: Likewise.
20766 * config/sh/sh-protos.h: Likewise.
20768 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
20770 * config/arm/arm-protos.h: Use struct cpp_reader instead of
20772 * config/h8300/h8300-protos.h: Likewise.
20773 * config/sh/sh-protos.h: Likewise.
20775 2003-01-01 Neil Booth <neil@daikokuya.co.uk>
20777 * config/arm/arm.c (arm_pr_long_calls, arm_pr_no_long_calls,
20778 arm_pr_long_calls_off): Use struct.
20779 * config/h8300/h8300.c (h8300_pr-interrupt, h8300_pr_saveall)
20781 Don't include cpplib.h.
20782 * config/sh/sh.c (sh_pr_interrupt, sh_pr_trapa,
20783 sh_pr_nosave_low_regs): Similarly.
20785 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
20787 * config/h8300/h8300.c: Include cpplib.h.
20789 2003-01-01 Steven Bosscher <s.bosscher@student.tudelft.nl>
20791 * objc/Make-lang.in, objc/config-lang.in, objc/lang-options.h,
20792 objc/lang-specs.h, objc/objc-act.c, objc/objc-act.h,
20793 objc/objc-lang.c, objc/objc-tree.def: Replace "GNU CC" with
20794 "GCC" in the copyright header.
20796 2003-01-01 Neil Booth <neil@daikokuya.co.uk>
20798 * c-pragma.c (c_register_pragma): New.
20799 (init_pragma): Use it.
20800 * c-pragma.h (cpp_register_pragma): Don't declare.
20801 (c_register_pragma): New.
20802 * cpplib.h: Remove #ifdef GCC_C_PRAGMA_H.
20803 * config/darwin.h (REGISTER_TARGET_PRAGMAS): Update.
20804 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS): Update.
20805 * config/c4x/c4x.h (REGISTER_TARGET_PRAGMAS): Update.
20806 * config/h8300/h8300.h (REGISTER_TARGET_PRAGMAS): Update.
20807 * config/i370/i370.h (REGISTER_TARGET_PRAGMAS): Update.
20808 * config/i960/i960.h (REGISTER_TARGET_PRAGMAS): Update.
20809 * config/ia64/hpux.h (REGISTER_TARGET_PRAGMAS): Update.
20810 * config/rs6000/rs6000.h (REGISTER_TARGET_PRAGMAS): Update.
20811 * config/sh/sh.h (REGISTER_TARGET_PRAGMAS): Update.
20812 * config/v850/v850.h (REGISTER_TARGET_PRAGMAS): Update.
20813 * doc/tm.texi (REGISTER_TARGET_PRAGMAS): Update
20815 See ChangeLog.8 for earlier changes.