747bf5dd311c8cd2a0b828d3f0b388c93519e92d
[gcc.git] / gcc / ChangeLog
1 2003-06-28 Kazu Hirata <kazu@cs.umass.edu>
2
3 * explow.c (find_next_ref): Remove.
4 * rtl.h: Remove the prototype for find_next_ref.
5
6 2003-06-27 Roger Sayle <roger@eyesopen.com>
7
8 * config/alpha/alpha.md (anonymous define_split): Adjust emit_note
9 call to match recent API change.
10
11 2003-06-27 Zack Weinberg <zack@codesourcery.com>
12
13 * dbxout.c (flag_debug_only_used_symbols): Delete redundant
14 declaration.
15
16 * c-format.c (check_format_string, get_constant)
17 * cfgrtl.c (rtl_split_edge):
18 Mark the definition static, matching the forward declaration.
19
20 2003-06-27 Gunther Nikl <gni@gecko.de>
21
22 * unwind-c.c (PERSONALITY_FUNCTION): Delete duplicate define.
23
24 PR target/11014
25 * config/m68k/m68k.c (m68k_output_mi_thunk): Use correct assembly
26 syntax for MIT / MOTOROLA.
27
28 PR other/10240
29 * configure.in: Removed $(XCFLAGS) from BUILD_CFLAGS for build != host.
30 * configure: Rebuilt.
31
32 2003-06-27 Chris Demetriou <cgd@broadcom.com>
33
34 * config/mips/mips.c (mips_build_va_list): Make padding in
35 va_list structure explicit to avoid -Wpadded warnings.
36
37 2003-06-27 Ulrich Weigand <uweigand@de.ibm.com>
38
39 * config/s390/s390.h (SECONDARY_OUTPUT_RELOAD_CLASS): Define.
40 * config/s390/s390.c (s390_secondary_output_reload_class): New function.
41 * config/s390/s390-protos.h (s390_secondary_output_reload_class):
42 Declare it.
43 * config/s390/s390.md ("reload_outti", "reload_outdi",
44 "reload_outdf"): New expanders.
45
46 * config/s390/s390.md ("movti" + splitters): Handle non-offsettable
47 memory operands as source.
48 ("movdi" + splitters): Likewise.
49 ("movdf" + splitters): Likewise.
50 * config/s390/s390.c (s390_split_ok_p): New function.
51 * config/s390/s390-protos.h (s390_split_ok_p): Declare it.
52
53 2003-06-27 Kazu Hirata <kazu@cs.umass.edu>
54
55 * combine.c (force_to_mode): Replace the equality comparison
56 of INTVALs with a pointer equality comparison.
57 (simplify_comparison): Likewise.
58
59 2003-06-27 Kazu Hirata <kazu@cs.umass.edu>
60
61 * jump.c (rtx_renumbered_equal_p): Replace an expression that
62 is known to be 0 with 0.
63
64 2003-06-27 Kazu Hirata <kazu@cs.umass.edu>
65
66 * gcse.c (expr_equiv_p): Replace expressions that are known to
67 be 0 with 0.
68
69 2003-06-27 Kazu Hirata <kazu@cs.umass.edu>
70
71 * cse.c (fold_rtx): Replace the equality comparison of INTVALs
72 with a pointer equality comparison.
73
74 2003-06-27 Kazu Hirata <kazu@cs.umass.edu>
75
76 * rtlanal.c (reg_mentioned_p): Return 0 earlier if REG and IN
77 are known to be not equivalent.
78
79 2003-06-27 Richard Henderson <rth@redhat.com>
80
81 * config/alpha/alpha.c (function_arg): Don't pass small aggregates
82 in floating point registers. Validate that we don't receive complex
83 values here. Use #elif.
84 (return_in_memory, function_value): New.
85 (alpha_va_arg): Handle complex values as two arguments.
86 * config/alpha/alpha.h (RETURN_IN_MEMORY): Use return_in_memory.
87 (FUNCTION_VALUE, LIBCALL_VALUE): Use function_value.
88 (SPLIT_COMPLEX_ARGS): New.
89 * config/alpha/alpha-protos.h: Update.
90
91 2003-06-27 Ulrich Weigand <uweigand@de.ibm.com>
92
93 * ggc-page.c (inverse_table): Change type of mult to size_t.
94 (compute_inverse): Compute inverse using size_t, not unsigned int.
95 Compute inverse also for sizes larger than half a machine page.
96
97 Fri Jun 27 18:36:12 CEST 2003 Jan Hubicka <jh@suse.cz>
98
99 * toplev.c (rest_of_decl_compilation): Only varpoolize argument
100 when called before cgraph_optimize.
101
102 2003-06-27 Zack Weinberg <zack@codesourcery.com>
103
104 * config/darwin.h, config/elfos.h, config/i960/i960-coff.h
105 * config/m68k/coff.h: ASM_FILE_START_FILE_DIRECTIVE should
106 be TARGET_ASM_FILE_START_FILE_DIRECTIVE.
107
108 Fri Jun 27 17:41:16 CEST 2003 Jan Hubicka <jh@suse.cz>
109
110 * cgraph.c (cgraph_node, cgraph_varpool_node): Avoid re-initializing
111 of known_decls.
112
113 2003-06-27 Hans-Peter Nilsson <hp@axis.com>
114
115 * defaults.h (REGISTER_MOVE_COST): Define default here.
116 * regclass.c: Don't define default REGISTER_MOVE_COST here.
117 * reload.c, reload1.c: Ditto.
118
119 2003-06-27 Richard Earnshaw <rearnsha@arm.com>
120
121 * flags.h: Really install previous change.
122
123 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
124
125 * rtl.h (emit_note): Remove FILE parameter.
126 * emit-rtl.c (emit_line_note): Adjust emit_note call.
127 (emit_note): Remove FILE parameter. Adjust.
128 * builtins.c (expand_builtin_expect): Adjust emit_note call.
129 * c-semantics.c (genrtl_scope_stmt): Likewise.
130 (expand_stmt): Likewise.
131 * cfglayout.c (reemit_insn_block_notes): Likewise.
132 (duplicate_insn_chain): Likewise.
133 * except.c (expand_eh_region_start, expand_eh_region_end,
134 sjlj_emit_function_enter): Likewise.
135 * explow.c (probe_stack_range): Likewise.
136 * expr.c (emit_block_move_via_loop): Likewise.
137 * function.c (init_function_start, expand_function_start,
138 expand_function_end, thread_prologue_and_epilogue_insns): Likewise.
139 * integrate.c (expand_inline_function, copy_insn_list): Likewise.
140 * reg-stack.c (compensate_edge): Likewise.
141 * reload1.c (reload): Likewise.
142 * rtlanal.c (hoist_insn_to_edge): Likewise.
143 * stmt.c (expand_fixup, expand_start_loop, expand_start_null_loop,
144 expand_loop_continue_here, expand_end_loop, expand_continue_loop,
145 expand_exit_loop_top_cond, expand_value_return,
146 expand_start_bindings_and_block, expand_end_bindings,
147 expand_decl_cleanup, expand_start_case): Likewise.
148 * unroll.c (copy_loop_body
149 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Likewise.
150 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
151 * config/rs6000/rs6000.c (rs6000_emit_eh_toc_restore,
152 rs6000_emit_allocate_stack, rs6000_output_function_prologue,
153 rs6000_output_function_epilogue, rs6000_output_mi_thunk): Likewise.
154 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
155 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
156
157 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
158
159 * c-tree.h (grokfield): Remove unused filename and line parameters.
160 * c-decl.c (grokfield): Remove unused filename and line parameters.
161 * c-parse.in (component_decl): Adjust field grokking rules, adjust
162 grokfield calls.
163 (component_declarator): Likewise.
164 (component_notype_declarator): Likewise.
165 * objc/objc-act.c (build_module_descriptor): Adjust grokfield
166 calls.
167 (build_protocol_template, build_method_prototype_list_template,
168 build_method_prototype_template, build_category_template,
169 build_selector_template, build_class_template,
170 build_super_template, build_ivar_template,
171 build_ivar_list_template, build_method_list_template,
172 build_method_template, add_instance_variable): Likewise.
173
174 2003-06-27 Kazu Hirata <kazu@cs.umass.edu>
175
176 * stmt.c (do_jump_if_equal): Return 0 earlier if OP1 and
177 OP2 are known to be not equivalent.
178
179 2003-06-26 Devang Patel <dpatel@apple.com>
180
181 * final.c (debug_flush_symbol_queue): New function.
182 (debug_queue_symbol): New function.
183 (debug_free_queue): New function.
184 (debug_nesting): New variable.
185 (symbol_queue): New variable.
186 (symbol_queue_index): Same.
187 (symbol_queue_size): Same.
188 * debug.h (debug_flush_symbol_queue): New.
189 (debug_queue_symbol): New.
190 (debug_free_queue): New.
191 (debug_nesting): New.
192 (symbol_queue_index): New.
193 * dbxout.c (DBXOUT_DECR_NESTING): New macro.
194 (DBXOUT_DECR_NESTING_AND_RETURN): New macro.
195 (dbxout_init): Delay symbol output.
196 (dbxout_global_decl): Save, set and reset TREE_USED bit around
197 dbxout_symbol() call.
198 (dbxout_begin_function): Same.
199 (dbxout_finish): Free symbol queue.
200 (dbxout_type): Put appropriate symbols in queue.
201 (dbxout_symbol): Put info for symbol's type in queue.
202 Decrement/Increment nesting counts flush symbol queue appropriately.
203 (dbxout_parms): Increment dbxout nesting.
204 (dbxout_reg_parms): Same.
205 * flags.h (flag_debug_only_used_symbols): New.
206 * toplev.c (flag_debug_only_used_symbols): New variable.
207 (lang_independent_options): Add entries for new option
208 -feliminate-unused-debug-symbols.
209 * common.opt: Add entry for -feliminate-unused-debug-symbols.
210 * opts.c (common_handle_options): Same.
211 * config/rs6000/darwin.h (CC1_SPEC): Interpret -gused as
212 -feliminate-unused-debug-symbols.
213 * doc/invoke.texi (Debugging Options): Document
214 -feliminate-unused-debug-symbols.
215
216 2003-06-26 Roger Sayle <roger@eyesopen.com>
217 Jakub Jelinek <jakub@redhat.com>
218
219 * builtins.c (expand_builtin_sprintf): Use c_getstr and strlen to
220 obtain the format string instead of using TREE_STRING_POINTER and
221 TREE_STRING_LENGTH. Only optimize sprintf(dst,"%s",src) when the
222 return value is unused or the length of src is a known constant.
223
224 2003-06-26 Richard Henderson <rth@redhat.com>
225
226 * config/ia64/ia64.h (REGISTER_NAMES): R0 is really AP.
227
228 2003-06-26 Richard Henderson <rth@redhat.com>
229
230 * config/ia64/ia64.c (ia64_expand_call): Don't add ar.pfs for sibcalls.
231 (ia64_split_call): Only load descriptor for GP register inputs.
232 (ia64_expand_epilogue): Check current_frame_info.mask not
233 current_function_is_leaf to restore ar.pfs.
234
235 2003-06-26 Richard Henderson <rth@redhat.com>
236
237 * emit-rtl.c (try_split): Append to new CALL_INSN_FUNCTION_USAGE
238 instead of replacing it.
239
240 2003-06-26 Richard Henderson <rth@redhat.com>
241
242 * flow.c (propagate_one_insn): Kill function return value
243 registers across tail calls.
244
245 * flow.c (propagate_one_insn): Preserve live-at-end registers
246 across tail calls.
247
248 2003-06-26 J"orn Rennecke <joern.rennecke@superh.com>
249
250 * reload.c (can_reload_into): New function.
251 (push_reload): Use it.
252
253 2003-06-26 Kazu Hirata <kazu@cs.umass.edu>
254
255 * config/h8300/h8300.c (compute_a_rotate_length): Fix the
256 references to the amount of a rotation.
257
258 2003-06-26 Nathanael Nerode <neroden@gcc.gnu.org>
259
260 * config/sh/coff.h: Don't include dbxcoff.h.
261 * config.gcc: List it here.
262
263 2003-06-26 Kazu Hirata <kazu@cs.umass.edu>
264
265 * postreload.c (reload_cse_simplify_set): Call cselib_lookup
266 earlier. Don't check if SRC is a constant.
267
268 2003-06-26 Kazu Hirata <kazu@cs.umass.edu>
269
270 * Makefile.in (OBJS): Add postreload.o.
271 Remove cselib.h from the dependency list for reload1.o.
272 Add a dependency list for postreload.o.
273 * reload.h: Change the comment for the prototype of
274 reload_cse_regs.
275 * reload1.c: Don't include cselib.h.
276 (reload_cse_regs): Move to postreload.c
277 (reload_cse_regs_1): Likewise.
278 (reload_cse_noop_set_p): Likewise.
279 (reload_cse_simplify_set): Likewise.
280 (reload_cse_simplify_operands): Likewise.
281 (RELOAD_COMBINE_MAX_USES): Likewise.
282 (reload_combine_ruid): Likewise.
283 (LABEL_LIVE): Likewise.
284 (reload_combine): Likewise.
285 (reload_combine_note_use): Likewise.
286 (reload_combine_note_store): Likewise.
287 (reg_set_luid): Likewise.
288 (reg_offset): Likewise.
289 (reg_base_reg): Likewise.
290 (reg_mode): Likewise.
291 (move2add_luid): Likewise.
292 (move2add_last_label_luid): Likewise.
293 (MODES_OK_FOR_MOVE2ADD): Likewise.
294 (reload_cse_move2add): Likewise.
295 (move2add_note_store): Likewise.
296 (reload_cse_simplify): Likewise.
297 * postreload.c: New.
298
299 2003-06-26 Kazu Hirata <kazu@cs.umass.edu>
300
301 * config/avr/avr.c (final_prescan_insn): Remove support for
302 -mrtl.
303 * config/avr/avr.h (MASK_RTL_DUMP): Remove.
304 (TARGET_RTL_DUMP): Likewise.
305 (TARGET_SWITCHES): Remove -mrtl.
306
307 2003-06-26 Kazu Hirata <kazu@cs.umass.edu>
308
309 * config/h8300/h8300-protos.h: Change emit_a_rotate to
310 output_a_rotate. Add a prototype for compute_a_rotate_length.
311 * config/h8300/h8300.c (emit_a_rotate): Change to
312 output_a_rotate.
313 (compute_a_rotate_length): New.
314 (h8300_adjust_insn_length): Remove.
315 * config/h8300/h8300.h (ADJUST_INSN_LENGTH): Remove.
316 * config/h8300/h8300.md (adjust_length): Remove.
317 (*rotlqi3_1): Use output_a_rotate and compute_a_rotate_length.
318 (*rotlhi3_1): Likewise.
319 (*rotlsi3_1): Likewise.
320
321 2003-06-26 Roger Sayle <roger@eyesopen.com>
322 Richard Henderson <rth@redhat.com>
323
324 * builtins.c (expand_builtin_mathfn): Always stabilize the argument
325 list against re-evaluation. If expand_unop fails, call expand_call
326 with the stabilized argument list rather than return NULL_RTX.
327 (expand_builtin_mathfn2): Likewise, always stabilize the argument
328 list, and call expand_call ourselves if expand_binop fails.
329
330 2003-06-26 Eric Botcazou <ebotcazou@libertysurf.fr>
331
332 PR optimization/11210
333 * fold-const (decode_field_reference): Strip only NOPs that
334 don't affect the sign.
335
336 2003-06-26 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
337
338 * gcc/config/sh/sh.md (push_fpscr): Enable for TARGET_SH2E.
339 (pop_fpscr, fpu_switch): Likewise.
340
341 2003-06-26 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
342
343 * value-prof.c: New.
344 * value-prof.h: New.
345 * Makefile.in (value-prof.o): New.
346 (LIBGCOV): Add _gcov_merge_single and _gcov_merge_delta
347 (profile.o): Add value-prof.h and tree.h dependency.
348 * flags.h (flag_profile_values): Declare.
349 * gcov-io.h (GCOV_COUNTERS, GCOV_COUNTER_NAMES, GCOV_MERGE_FUNCTIONS):
350 Add new counters.
351 (GCOV_COUNTER_V_INTERVAL, GCOV_COUNTER_V_POW2, GCOV_COUNTER_V_SINGLE,
352 GCOV_COUNTER_V_DELTA): New counter sections.
353 (__gcov_merge_single, __gcov_merge_delta): Declare.
354 * flow.c (mark_used_regs): Set subregs_of_mode only when the
355 structure is initialized.
356 * libgcov.c (__gcov_merge_single, __gcov_merge_delta): New functions.
357 * profile.c: Include value-prof.h and tree.h.
358 (gen_interval_profiler, gen_pow2_profiler, gen_one_value_profiler,
359 gen_const_delta_profiler, instrument_values): New static functions.
360 (get_exec_counts): Fix comment.
361 (branch_prob): Invoke instrument_values.
362 * toplev.c (flag_profile_values): New flag.
363 * doc/invoke.texi (-fprofile-values): Document.
364
365 2003-06-26 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
366
367 * Makefile.in (cfgrtl.o): Add expr.h dependency.
368 * cfgrtl.c: Include expr.h.
369 (mark_killed_regs, safe_insert_insn_on_edge): New
370 functions.
371 * config/i386/i386.h (AVOID_CCMODE_COPIES): Define.
372 * basic-block.h (safe_insert_insn_on_edge): Declare.
373
374 2003-06-26 Neil Booth <neil@daikokuya.co.uk>
375
376 * c-opts.c (missing_arg): Make non-static.
377 (c_common_handle_option): Don't check for missing arguments.
378 * opts.c (handle_option): Check for missing arguments.
379
380 2003-06-26 David Edelsohn <edelsohn@gnu.org>
381
382 * config/rs6000/power4.md (power4-veccomplex): Correct latency.
383
384 2003-06-25 Loren James Rittle <ljrittle@acm.org>
385
386 * configure.in (ld_vers): Portability [sed].
387 * configure: Regenerate with autoconf213.
388
389 2003-06-25 H.J. Lu <hongjiu.lu@intel.com>
390
391 * doc/extend.texi: Document new builtin functions for Intel
392 Prescott New Intrunctions.
393
394 * doc/invoke.texi: Document new command-line options, -mpni and
395 -mno-pni, for Intel Prescott New Intrunctions.
396
397 * config.gcc (extra_headers): Add pmmintrin.h for i[34567]86-*-*.
398
399 * config/i386/i386.c (override_options): Turn on MASK_SSE2
400 for -mpni. Turn on MASK_SSE for -msse2.
401 (bdesc_2arg): Add PNI builtins with 2 args.
402 (bdesc_1arg): Add PNI builtins with 1 arg.
403 (ix86_init_mmx_sse_builtins): Handle PNI builtins.
404 (ix86_expand_builtin): Likewise.
405
406 * config/i386/i386.h (MASK_3DNOW, MASK_3DNOW_A,
407 MASK_128BIT_LONG_DOUBLE, MASK_64BIT, MASK_MS_BITFIELD_LAYOUT,
408 MASK_TLS_DIRECT_SEG_REFS): Renumbered.
409 (TARGET_PNI): New.
410 (TARGET_SWITCHES): Don't enable MASK_SSE for -msse2 here. Add
411 -mpni and -mno-pni.
412 (TARGET_CPU_CPP_BUILTINS): Defined __PNI__ for PNI.
413 (ix86_builtins): Add PNI builtins.
414 (config/i386/i386.md): Add PNI patterns.
415
416 * config/i386/pmmintrin.h: New file.
417
418 2003-06-25 Kazu Hirata <kazu@cs.umass.edu>
419
420 * config/h8300/h8300.md (call): Fix the insn lengths.
421 (call_value): Likewise.
422
423 Thu Jun 26 00:13:35 CEST 2003 Jan Hubicka <jh@suse.cz>
424
425 * c-common.c (handle_used_attribute): Use mark_referenced.
426 * varasm.c (mark_referenced): Break out from ...
427 (assemble_name): ... here.
428 * tree.h (mark_referenced): Declare.
429
430 2003-06-25 Wolfgang Bangerth <bangerth@dealii.org>
431
432 * gccbug.in: Add PCH to list of categories.
433
434 2003-06-25 Martin Schaffner <schaffner@gmx.li>
435
436 * cppfiles.c: Clarify comments.
437 * cpphash.h: Likewise.
438 * cpplib.h: Likewise.
439 * cppmacro.c: Likewise.
440 * mkdeps.h: Likewise.
441
442 2003-06-25 Neil Booth <neil@daikokuya.co.uk>
443
444 * c-opts.c (complain_wrong_lang, write_langs): Remove.
445 (c_common_handle_option): Complaints about wrong language are
446 handled in opts.c now.
447 * opts.c (complain_wrong_lang, write_langs, handle_options): New.
448 (find_opt): Fix thinko.
449 (handle_option): Update prototype. Complain about switches for
450 a different front end.
451 * opts.h (lang_names, handle_options): New.
452 (handle_option): Remove.
453 * opts.sh: Write out language names array.
454 * toplev.c (parse_options_and_default_flags): Use handle_options.
455
456 2003-06-25 H.J. Lu <hongjiu.lu@intel.com>
457
458 * config/i386/i386.c (MASK_SSE1): Removed.
459 (MASK_SSE164): Removed.
460 (MASK_SSE264): Removed.
461 (bdesc_2arg): Replace MASK_SSE1 with MASK_SSE. Replace
462 MASK_SSE164 with MASK_SSE | MASK_64BIT. Replace MASK_SSE264
463 with MASK_SSE2 | MASK_64BIT.
464 (bdesc_1arg): Likewise.
465 (ix86_init_mmx_sse_builtins): Likewise.
466
467 * config/i386/i386.h (TARGET_SSE): Remove MASK_SSE2.
468 (TARGET_SWITCHES): Enable both MASK_SSE and MASK_SSE2 for
469 -msse2.
470
471 2003-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
472
473 * hwint.h (HOST_WIDE_INT_PRINT, HOST_WIDE_INT_PRINT_C): New macros.
474 (HOST_WIDE_INT_PRINT_DEC_SPACE,
475 HOST_WIDE_INT_PRINT_UNSIGNED_SPACE,
476 HOST_WIDEST_INT_PRINT_DEC_SPACE,
477 HOST_WIDEST_INT_PRINT_UNSIGNED_SPACE): Delete.
478 (HOST_WIDE_INT_PRINT_DEC, HOST_WIDE_INT_PRINT_DEC_C,
479 HOST_WIDE_INT_PRINT_UNSIGNED, HOST_WIDE_INT_PRINT_HEX): Define in
480 terms of HOST_WIDE_INT_PRINT and possibly HOST_WIDE_INT_PRINT_C.
481
482 * final.c (asm_fprintf): Use HOST_WIDE_INT_PRINT.
483 * ra-debug.c (dump_static_insn_cost): Likewise.
484
485 2003-06-26 Nick Clifton <nickc@redhat.com>
486
487 * config/arm/arm.h (BIGGEST_FIELD_ALIGNMENT): Define instead
488 of ADJUST_FIELD_ALIGN if IN_TARGET_LIBS.
489 Replace occurances of '???' with 'XXX' incase they are
490 mistaken for trigraphs.
491 (THUMB_PRINT_OPERAND_ADDRESS): abort if a compound address
492 does not have a register for the first operand.
493
494 2003-06-25 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
495
496 * config/sh/sh.c (sh_register_move_cost):
497 Add case for moving between MAC_REGS.
498
499 2003-06-25 Zack Weinberg <zack@codesourcery.com>
500
501 PR 10178
502 * langhooks.h (struct lang_hooks): Add no_body_blocks bool.
503 * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): New; default false.
504 * c-lang.c, objc/objc-lang.c: Override LANG_HOOKS_NO_BODY_BLOCKS
505 to true.
506 * stmt.c (is_body_block): If lang_hooks.no_body_blocks, always
507 return 0.
508
509 2003-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
510
511 * Makefile.in (bt-load.o): Depend on $(TM_P_H).
512 * bt-load.c: Include "tm_p.h".
513
514 2003-06-25 Kazu Hirata <kazu@cs.umass.edu>
515
516 * config/h8300/h8300.c (compute_mov_length): Adjust for the
517 new optimization.
518 * config/h8300/h8300.md (*movsi_h8300): Optimize the load of
519 an SImode constant whose upper and lower are the same.
520
521 Wed Jun 25 11:31:59 CEST 2003 Jan Hubicka <jh@suse.cz>
522
523 * varasm.c (assemble_name): Mark needed variables even when
524 global info is ready.
525
526 2003-06-24 Jerry Quinn <jlquinn@optonline.net>
527
528 PR other/11280
529 * gcc/doc/invoke.texi (Optimization Options): Remove -Os from
530 -freorder-functions description.
531
532 2003-06-25 Josef Zlomek <zlomekj@suse.cz>
533
534 * dwarf2out.c (gen_field_die): Return if type of decl is error mark.
535
536 2003-06-25 Neil Booth <neil@daikokuya.co.uk>
537
538 * opts.c (common_handle_option): Add missing break;s.
539
540 2003-06-24 Kazu Hirata <kazu@cs.umass.edu>
541
542 * config/h8300/h8300-protos.h: Add a prototype for
543 compute_mov_length.
544 * config/h8300/h8300.c (compute_mov_length): New.
545 * config/h8300/h8300.md (*movqi_h8300): Use it.
546 (*movqi_h8300hs): Likewise.
547 (movstrictqi): Likewise.
548 (*movhi_h8300): Likewise.
549 (*movhi_h8300hs): Likewise.
550 (movstricthi): Likewise.
551 (*movsi_h8300): Likewise.
552 (*movsf_h8300): Likewise.
553 (*movsi_h8300hs): Likewise.
554 (*movsf_h8300hs): Likewise.
555
556 2003-06-24 Kazu Hirata <kazu@cs.umass.edu>
557
558 * jump.c (next_nondeleted_insn): Remove.
559 * rtl.h: Remove the prototype for next_nondeleted_insn.
560
561 2003-06-24 Roger Sayle <roger@eyesopen.com>
562
563 PR optimization/11311
564 * builtins.c (powi_cost): Fix typo. The number of multiplications
565 required is the number to reduce the argument, result, plus the
566 cost of calculating the residual, val [not n, the original value].
567
568 2003-06-24 Roger Sayle <roger@eyesopen.com>
569
570 * config/alpha/osf5.h (TARGET_C99_FUNCTIONS): Define.
571
572 2003-06-24 Richard Henderson <rth@redhat.com>
573 (blame to: Loren James Rittle <ljrittle@acm.org>)
574
575 * real.h (ieee_extended_intel_96_round_53_format): New.
576 * real.c (ieee_extended_intel_96_round_53_format): New.
577 * config/i386/freebsd.h (SUBTARGET_OVERRIDE_OPTIONS): Use it
578 for XFmode and TFmode.
579
580 2003-06-24 Kazu Hirata <kazu@cs.umass.edu>
581
582 * config/h8300/h8300.md (4 anonymous patterns): Give internal
583 names.
584 (movsi_h8300): Change the name to *movsi_h8300.
585 (movsi_h8300hs): Change the name to *movsi_h8300hs.
586 (movsf_h8300): Change the name to *movsf_h8300.
587 (movsf_h8300hs): Change the name to *movsf_h8300hs.
588
589 2003-06-24 Jakub Jelinek <jakub@redhat.com>
590
591 * builtins.c (expand_builtin_strcpy): Don't evaluate side-effects in
592 src twice.
593
594 2003-06-24 J"orn Rennecke <joern.rennecke@superh.com>
595
596 Back out these patches:
597 2003-06-02 J"orn Rennecke <joern.rennecke@superh.com>
598 * sh.h (OLD_ARG_MODE): New macro.
599 (FUNCTION_ARG_ADVANCE, FUNCTION_ARG_PASS_BY_REFERENCE): Use it.
600 (FUNCTION_ARG_1): Break out of:
601 (FUNCTION_ARG). Use OLD_ARG_MODE.
602 2003-06-06 J"orn Rennecke <joern.rennecke@superh.com>
603 * sh.h (FUNCTION_ARG_1): Consistently use NEW_MODE for the mode
604 of the generated register.
605
606 * sh.h (FUNCTION_ARG_SCmode_WART): Define.
607 (FUNCTION_ARG): Unless FUNCTION_ARG_SCmode_WART is defined and
608 an even number of floating point regs are in use, use the same
609 sequence of argument passing registers for SCmode as would be
610 used for two SFmode values.
611 * sh.c (sh_va_arg): If FUNCTION_ARG_SCmode_WART is defined,
612 swap real / imaginary parts in incoming SCmode values passed
613 in registers.
614
615 2003-06-24 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
616
617 PR target/11260
618 * config/alpha/alpha.md (sqrtdf2): Fix operand substitution.
619
620 Tue Jun 24 18:49:33 CEST 2003 Jan Hubicka <jh@suse.cz>
621
622 * Makefile.in (cgraph.o): Depend on output.h, not depend on
623 tree-inline.h
624 * cgraph.c: Do not include tree-inline.h; include output.h
625 (known_fns): Rename to ...
626 (known_decls): ... this one; update all uses.
627 (cgraph_varpool_hash): New static variable.
628 (cgraph_varpool_n_nodes, cgraph_varpool_nodes_queue): New global
629 variables.
630 (cgraph_varpool_hash_node, eq_cgraph_varpool_node, cgraph_varpool_node,
631 cgraph_varpool_node_for_identifier, cgraph_varpool_mark_needed_node,
632 cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
633 New functions.
634 * cgraph.h (cgraph_varpool_node): New structure.
635 (cgraph_varpool_n_nodes, cgraph_varpool_nodes_queue): Declare.
636 (cgraph_varpool_node, cgraph_varpool_node_for_identifier,
637 cgraph_varpool_finalize_decl, cgraph_varpool_mark_needed_node,
638 cgraph_varpool_asemble_pending_decls): Declare.
639 * cgraphunit.c (record_call_1): Notice variable references.
640 (cgraph_finalize_compilation_unit): Assemble pending variables.
641 * toplev.c (wrapup_global_declarations): Use varpool.
642 (compile_file): Assemble pending declarations.
643 (rest_of_decl_compilation): Use varpool in unit-at-a-time mode.
644 * varasm.c (assemble_name): Notice varpool references.
645
646 Tue Jun 24 13:52:11 CEST 2003 Jan Hubicka <jh@suse.cz>
647
648 * langhooks-def.h (LANG_HOOKS_PREPARE_ASSEMBLE_VARIABLE): New macro.
649 * langhooks.h (lang_hooks_for_decls): Add prepare_assemble_variable.
650 * varasm.c (assemble_variable): Call prepare_assemble_variable.
651
652 2003-06-23 Roger Sayle <roger@eyesopen.com>
653
654 * builtins.c (expand_builtin): Use expand_builtin_pow to expand
655 calls for pow, powf, powl and their __builtin_ variants.
656 (expand_builtin_pow): If the second argument is a constant
657 integer and compiling with -ffast-math, use expand_powi to
658 generate RTL if powi_cost is less than POWI_MAX_MULTS.
659 (powi_cost): New function to return the number of multiplications
660 necessary to evaluate an Nth power, for integer constant N.
661 (expand_powi): New function to expand the RTL for evaluating
662 the Nth power of a floating point value, for integer constant N.
663
664 * doc/tm.texi (POWI_MAX_MULTS): Document new target macro.
665
666 Mon Jun 23 23:07:35 CEST 2003 Jan Hubicka <jh@suse.cz>
667
668 * cgraph.c (cgraph_nodes_queue): Declare.
669 (eq_node): Take identifier as p2.
670 (cgraph_node): Update htab_find_slot_with_hash call.
671 (cgraph_node_for_identifier): New.
672 (cgraph_mark_needed_node): Move here from cgraphunit.c.
673 * cgraph.h (cgraph_nodes_queue): Declare.
674 (cgraph_node_for_identifier): Declare.
675 * cgraphunit.c (cgraph_finalize_function): Collect entry points here
676 instead of in cgraph_finalize_compilation_unit; constructors and
677 destructors are entry points.
678 (cgraph_finalize_compilation_unit): Reorganize debug outout;
679 examine nested functions after lowerng; call collect_functions hook.
680 (cgraph_mark_local_functions): DECL_COMDAT functions are not local.
681 (cgraph_finalize_compilation_unit): Do not collect entry points.
682 * varasm.c: Include cgraph.h
683 (assemble_name): Mark referenced identifier as needed.
684
685 * cgraphunit.c (record_call_1): Use get_callee_fndecl.
686
687 2003-06-23 Jakub Jelinek <jakub@redhat.com>
688
689 * config/i386/i386.c (x86_output_mi_thunk): Don't pass MEM to %P0,
690 just SYMBOL_REF.
691 * config/s390/s390.c (s390_output_mi_thunk): Avoid .plt in -m31
692 mode, as it requires pic register loaded.
693
694 * varasm.c (resolve_unique_section): Remove prototype. No longer
695 static.
696 * tree.h (resolve_unique_section): New prototype.
697
698 2003-06-23 Andreas Schwab <schwab@suse.de>
699
700 PR debug/9905
701 * dwarf2out.c (loc_descriptor_from_tree): Handle MODIFY_EXPR by
702 recursing through first argument.
703
704 2003-06-23 Kazu Hirata <kazu@cs.umass.edu>
705
706 * ChangeLog.1: Fix a typo.
707 * cfgrtl.c: Fix comment typos.
708 * dwarf2out.c: Likewise.
709 * expmed.c: Likewise.
710 * genrecog.c: Likewise.
711 * jump.c: Likewise.
712 * rtlanal.c: Likewise.
713 * ssa-dce.c: Likewise.
714 * toplev.c: Likewise.
715
716 2003-06-23 Kazu Hirata <kazu@cs.umass.edu>
717
718 * doc/extend.texi: Fix typos.
719 * doc/md.texi: Likewise.
720 * doc/tm.texi: Likewise.
721
722 2003-06-23 Kazu Hirata <kazu@cs.umass.edu>
723
724 * basic-block.h: Fix comment formatting.
725 * bt-load.c: Likewise.
726 * builtins.c: Likewise.
727 * c-common.c: Likewise.
728 * c-common.h: Likewise.
729 * c-format.c: Likewise.
730 * coverage.c: Likewise.
731 * cpplib.h: Likewise.
732 * cpppch.c: Likewise.
733 * dbxout.c: Likewise.
734 * diagnostic.c: Likewise.
735 * dwarf2out.c: Likewise.
736 * expr.c: Likewise.
737 * fold-const.c: Likewise.
738 * function.c: Likewise.
739 * gcc.c: Likewise.
740 * gcov-io.c: Likewise.
741 * gcov-io.h: Likewise.
742 * gcov.c: Likewise.
743 * profile.c: Likewise.
744 * real.h: Likewise.
745 * sched-deps.c: Likewise.
746
747 2003-06-23 Roger Sayle <roger@eyesopen.com>
748 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
749
750 * doc/contrib.texi (Contributors): Add a note on testing and
751 remove duplicates from testers list.
752
753 2003-06-23 Nick Clifton <nickc@redhat.com>
754
755 * read-rtl.c (read_braced_string): Check for EOF. If
756 encountered issue an error message.
757
758 2003-06-23 Kazu Hirata <kazu@cs.umass.edu>
759
760 * doc/invoke.texi: Document dump options, dT and dW.
761
762 2003-06-23 Kazu Hirata <kazu@cs.umass.edu>
763
764 * genrecog.c (pred_table): Remove the entry for
765 mode_independent_operand.
766 * recog.c (next_insns_test_no_inequality): Remove.
767 (mode_independent_operand): Likewise.
768 * recog.h: Remove the prototype for mode_independent_operand.
769
770 2003-06-22 Kazu Hirata <kazu@cs.umass.edu>
771
772 * config/h8300/h8300.c (output_simode_bld): Use rotxl.l to
773 store into bit 0.
774 * config/h8300/h8300.md (*extzv_1_r_h8300hs): Change cc of the
775 second alternative to set_znv.
776 (*extzv_1_r_inv_h8300hs): Likewise.
777
778 2003-06-23 Hans-Peter Nilsson <hp@bitrange.com>
779
780 * configure.in (in_tree_gas): Find out here whether GAS is ELF,
781 set in_tree_gas_is_elf accordingly.
782 (in_tree_ld): Find out whether LD emulation is ELF, set
783 in_tree_ld_is_elf accordingly.
784 (gcc_cv_as_subsections, gcc_cv_as_hidden, gcc_cv_as_leb128)
785 (gcc_cv_as_eh_frame, gcc_cv_as_shf_merge)
786 (gcc_cv_as_dwarf2_debug_line, gcc_cv_as_gdwarf2_flag)
787 (gcc_cv_as_gstabs_flag): Use $in_tree_gas_is_elf instead of
788 grepping gas/Makefile.
789 (gcc_cv_ld_ro_rw_mix, gcc_cv_ld_eh_frame_hdr, gcc_cv_ld_pie): Use
790 $in_tree_ld_is_elf instead of grepping ld/Makefile.
791 * configure: Regenerate.
792
793 2003-06-22 Roger Sayle <roger@eyesopen.com>
794
795 * builtins.c (expand_builtin_mathfn_2): Use tree_cons to build
796 up the stabilized argument list, not build_tree_list.
797 (expand_builtin_strcpy): Construct new argument list manually
798 instead of using chainon to modify the original argument list.
799 (expand_builtin_stpcpy): Construct new argument list manually
800 instead of using copy_list and chainon.
801 (expand_builtin_sprintf): New function. Optimize calls to
802 sprintf when the format is "%s" or doesn't contain a '%'.
803 (expand_builtin): Expand BUILT_IN_SPRINTF using the new function
804 expand_builtin_sprintf.
805
806 2003-06-22 Andreas Schwab <schwab@suse.de>
807
808 * function.c (set_insn_locators): Mark as unused.
809
810 2003-06-22 Neil Booth <neil@daikokuya.co.uk>
811
812 * common.opt: Add -finline-limit.
813 * opts.c (common_handle_options): Handle it.
814 * opts.sh: Temporary kludge for -finline-limit.
815 * toplev.c (decode_f_option, independent_decode_option): Die.
816 (parse_options_and_default_flags): No independent_decode_option.
817
818 2003-06-22 Andreas Jaeger <aj@suse.de>
819
820 * calls.c (emit_call_1): Readd lost ATTRIBUTE_UNUSED.
821
822 2003-06-22 Kazu Hirata <kazu@cs.umass.edu>
823
824 * doc/invoke.texi: Document dumps, .btl, .cfg, and .bypass.
825
826 2003-06-22 Andreas Schwab <schwab@suse.de>
827
828 * doc/invoke.texi: Remove leading `-' from options in index.
829
830 2003-06-22 Kazu Hirata <kazu@cs.umass.edu>
831
832 * bt-load.c: Follow spelling conventions.
833
834 2003-06-22 Kazu Hirata <kazu@cs.umass.edu>
835
836 * expr.c (emit_move_insn_1): Fix a comment typo.
837
838 2003-06-22 Kazu Hirata <kazu@cs.umass.edu>
839
840 * doc/invoke.texi: Alphabetize dump options.
841
842 2003-06-22 Kazu Hirata <kazu@cs.umass.edu>
843
844 * doc/invoke.texi: Remove a duplicate -dk.
845
846 2003-06-22 Kazu Hirata <kazu@cs.umass.edu>
847
848 * doc/invoke.texi: Update dump file names.
849
850 2003-06-22 Zack Weinberg <zack@codesourcery.com>
851
852 * config/i370/i370.c, config/i370/i370.h: Use HOST_CHARSET_ASCII
853 and HOST_CHARSET_EBCDIC, not HC_ASCII and HC_EBCDIC.
854
855 2003-06-22 Kazu Hirata <kazu@cs.umass.edu>
856
857 * doc/rtl.texi: Fix the @findex for pre_modify.
858
859 2003-06-22 Andreas Jaeger <aj@suse.de>
860
861 * caller-save.c: Convert to ISO C90.
862 * calls.c: Likewise.
863 * cfg.c: Likewise.
864 * cfganal.c: Likewise.
865 * cfgbuild.c: Likewise.
866 * cfgcleanup.c: Likewise.
867 * cfghooks.c: Likewise.
868 * cfglayout.c: Likewise.
869 * cfglayout.h: Likewise.
870 * cfgloop.c: Likewise.
871 * cfgloop.h: Likewise.
872 * cfgloopanal.c: Likewise.
873 * cfgloopmainip.c: Likewise.
874 * cfgrtl.c: Likewise.
875
876 2003-06-22 Richard Earnshaw <rearnsha@arm.com>
877
878 * arm.h (BIGGEST_ALIGNMENT): Use TARGET_REALLY_IWMMXT for selecting
879 64-bit alignment.
880
881 2003-06-22 Richard Earnshaw <rearnsha@arm.com>
882
883 * arm.md (all call_value patterns): Remove register constraints on
884 value operand.
885
886 2003-06-22 Neil Booth <neil@daikokuya.co.uk>
887
888 * common.opt: More -f switches.
889 * opts.c (common_handle_options): Handle them.
890 * toplev.c (time_report): Make extern.
891 (f_options): USe flag_dummy.
892 (decode_f_option): No need to use f_options now.
893 * toplev.h (flag_cprop_registers, flag_ssa, flag_ssa_ccp,
894 flag_ssa_dce, time_report, flag_new_regalloc): Make extern.
895
896 2003-06-22 Andreas Jaeger <aj@suse.de>
897
898 * c-lex.c: Convert to ISO C90.
899 * c-objc-common.c: Likewise.
900 * c-opts.c: Likewise.
901 * c-pch.c: Likewise.
902 * c-ppoutput.c: Likewise.
903 * c-pragma.h: Likewise.
904 * c-pretty-print.c: Likewise.
905 * c-pretty-print.h: Likewise.
906 * c-semantics.c: Likewise.
907 * c-tree.h: Likewise.
908 * c-typeck.c: Likewise.
909
910 * c-lang.c: Convert to ISO C90.
911
912 2003-06-22 Neil Booth <neil@daikokuya.co.uk>
913
914 * opts.c (find_opt): Fix to always guarantee a find of a
915 switch with joined parameter.
916 * opts.h (struct cl_option): New member back_chain.
917 * opts.sh: Update to calculate and add back_chain member.
918
919 2003-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
920
921 * diagnostic.h (output_host_wide_integer): Declare.
922 * diagnostic.c (output_long_long_decicaml): New function.
923 (output_host_wide_integer): Likewise.
924 (output_format): Use them. Handle "%ll" and "%w".
925
926 2003-06-21 Jason Thorpe <thorpej@wasabisystems.com>
927
928 * config.gcc (*-*-netbsd*): Add t-libgcc-pic to tmake_file.
929
930 2003-06-21 Zack Weinberg <zack@codesourcery.com>
931
932 * aclocal.m4 (gcc_AC_C_CHARSET): Delete.
933 * configure.in: Don't use gcc_AC_C_CHARSET.
934 * configure, config.in: Regenerate.
935 * config/i370/i370.c, config/i370/i370.h: Use
936 (HOST_CHARSET == HC_EBCDIC) or (HOST_CHARSET == HC_ASCII)
937 instead of HOST_EBCDIC or !HOST_EBCDIC. Clarify comments a tad.
938
939 2003-06-21 Neil Booth <neil@daikokuya.co.uk>
940
941 * Makefile.in: Update.
942 * common.opt: New switches.
943 * opts.c: Include diagnostic.h.
944 (common_handle_option): Handle new switches.
945 * toplev.c (flag_loop_optimize, flag_crossjumping, flag_if_conversion,
946 flag_if_conversion2, flag_delete_null_pointer_checks,
947 flag_rerun_cse_after_loop): Make extern.
948 (flag_dummy): New.
949 (f_options): Update to use flag_dummy for moved options.
950 (decode_f_option): Some switches moved to opts.c.
951 * toplev.h (flag_loop_optimize, flag_crossjumping, flag_if_conversion,
952 flag_if_conversion2, flag_delete_null_pointer_checks,
953 flag_rerun_cse_after_loop, flag_keep_static_consts, flag_peel_loops,
954 flag_tracer, flag_thread_jumps, flag_unroll_loops,
955 flag_unroll_all_loops, flag_unswitch_loops): New.
956
957 Sat Jun 21 13:41:00 CEST 2003 Jan Hubicka <jh@suse.cz>
958
959 * i386.c (ix86_va_arg): Fix allocation of temporary slot.
960
961 2003-06-20 Kazu Hirata <kazu@cs.umass.edu>
962
963 * config/h8300/h8300-protos.h: Add a prototype for
964 same_cmp_preceding_p.
965 * config/h8300/h8300.c (same_cmp_preceding): New.
966 * config/h8300/h8300.md: Extend peephole2's that transform
967 compare:SI into shorter sequences so that they can deal with
968 signed comparisons.
969
970 2003-06-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
971
972 * doc/contrib.texi (Contributors): Use Windows instead of Win32.
973
974 Update Andreas Jaeger's entry.
975
976 Merge the two entries of Kaveh Ghazi, David Edelsohn, and
977 Loren J. Rittle.
978
979 2003-06-21 Nathanael Nerode <neroden@gcc.gnu.org>
980
981 * mkconfig.sh: Add multiple inclusion guards to generated headers.
982
983 2003-06-20 Neil Booth <neil@daikokuya.co.uk>
984
985 * c-decl.c (store_parm_decls): Make saved_warn_shadow boolean.
986 * common.opt: Add remaining -W options and -g.
987 * diagnostic.c (warnings_are_errors): Remove.
988 * flags.h: Make most warning flags boolean.
989 * opts.c (common_handle_option): Handle remaining -W options, and -g.
990 Move many warning flags from toplev.c, making them boolean.
991 * toplev.c: Remove many warning flags.
992 (decode_W_option): Remove.
993 (decode_g_option): Make extern. Error on unknown switch.
994 (lang_independent_W_options): Use warn_dummy.
995 (independent_decode_option): Just handle -f switches now.
996 * toplev.h (decode_g_option): New.
997
998 2003-06-20 Aldy Hernandez <aldyh@redhat.com>
999
1000 PR/11092
1001 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Adjust for
1002 vectors.
1003
1004 2003-06-20 Kelley Cook <kelleycook@wideopenwest.com>
1005
1006 * opts.sh: Tweak awk script for portability.
1007
1008 2003-06-20 Mark Mitchell <mark@codesourcery.com>
1009
1010 PR c++/10888
1011 * tree-inline.c (expand_call_inline): Do not warn about failing to
1012 inline functions declared in system headers.
1013 * doc/invoke.texi (-Winline): Expand on documentation.
1014
1015 2003-06-20 Richard Henderson <rth@redhat.com>
1016
1017 * config/alpha/alpha.c (alpha_file_start): Disable
1018 file_start_file_directive for ELF and not MDEBUG.
1019
1020 2003-06-20 J"orn Rennecke <joern.rennecke@superh.com>
1021
1022 * sh.h (ROUND_TYPE_ALIGN): Remove.
1023
1024 2003-06-20 Richard Henderson <rth@redhat.com>
1025
1026 * hooks.c (hook_int_void_no_regs): Rename from
1027 hook_reg_class_void_no_regs; change return type.
1028 * hooks.h: Update.
1029 * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Update.
1030 * target.h (branch_target_register_class): Change return type to int.
1031 Add documentation.
1032 * config/sh/sh.c (sh_target_reg_class): Change return type.
1033 * doc/tm.texi (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
1034
1035 2003-06-20 Andreas Tobler <toa@pop.agri.ch>
1036
1037 * c-format.c: Change _Bool to bool reverting part of the last
1038 patch.
1039
1040 2003-06-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1041
1042 * som.h (ASM_OUTPUT_SOURCE_LINE): Use targetm.strip_name_encoding to
1043 strip name encoding.
1044
1045 2003-06-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1046
1047 * configure.in (gcc_cv_as_gstabs_flag): Disable if assembler warns.
1048 * configure: Regenerate.
1049 Fixes PR driver/9362.
1050
1051 2003-06-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1052
1053 * config/alpha/alpha.c (alpha_file_start): Fix typo.
1054
1055 2003-06-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1056
1057 * config/mips/mips.h (PUT_SDB_FUNCTION_END): Pass 0 as third arg
1058 to ASM_OUTPUT_SOURCE_LINE.
1059
1060 2003-06-20 Daniel Egger <degger@fhm.edu>
1061 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1062
1063 * doc/install.texi (Building): Correct and improve statement
1064 about parallel builds.
1065
1066 2003-06-20 Andreas Jaeger <aj@suse.de>
1067
1068 * c-common.c: Change _Bool to bool reverting part of the last
1069 patch.
1070
1071 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
1072
1073 * tree.h (expand_function_end): Remove all parameters.
1074 * function.c (expand_function_end): Remove all parameters.
1075 Use input_location. Never expand_end_bindings.
1076 * c-decl.c (c_expand_body_1): Adjust expand_function_end call.
1077 * coverage.c (create_coverage): Likewise.
1078
1079 2003-06-20 Nick Clifton <nickc@redhat.com>
1080
1081 * doc/extend.texi (ARM Built-in Functions): New node. Document
1082 ARM builtin functions for iWMMXt support.
1083
1084 2003-06-20 Eric Botcazou <ebotcazou@libertysurf.fr>
1085
1086 * doc/install.texi (--with-gnu-as): Mention SPARC/Solaris and
1087 SPARC64/Solaris as platforms where --with-gnu-as makes a difference.
1088 (--with-as): Add @anchor.
1089 (--with-gnu-ld): Fix typo.
1090 (--with-ld): Add @uref to --with-as.
1091
1092 2003-06-19 Zack Weinberg <zack@codesourcery.com>
1093
1094 * doc/tm.texi: Uniformly use @defmac for macros, rather than
1095 @table items. Minor formatting and editorial corrections.
1096
1097 2003-06-20 Neil Booth <neil@daikokuya.co.uk>
1098
1099 * line-map.c, line-map.h: Convert to ISO prototypes.
1100
1101 2003-06-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1102
1103 * gcse.c (store_killed_in_insn): Fix.
1104
1105 2003-06-19 Zack Weinberg <zack@codesourcery.com>
1106
1107 * target.h (asm_out.file_start, file_start_app_off,
1108 file_start_file_directive): New hooks.
1109 * target-def.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
1110 TARGET_ASM_FILE_START_APP_OFF, TARGET_ASM_FILE_START):
1111 New hook-definition macros.
1112 * doc/tm.texi: Document new hooks; remove docs of ASM_FILE_START.
1113 * varasm.c (default_file_start): New.
1114 * output.h: Prototype it.
1115 * toplev.c (init_asm_output): Use targetm.asm_out.file_start.
1116 * system.h: Poison ASM_FILE_START.
1117
1118 * config/alpha/alpha.c (alpha_write_verstamp): Delete.
1119 (alpha_file_start): New, define if !TARGET_ABI_UNICOSMK.
1120 (unicosmk_asm_file_start): Rename unicosmk_file_start,
1121 make static, take no arguments.
1122 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_END,
1123 TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set as appropriate.
1124 * config/alpha/unicosmk.h: Don't define ASM_FILE_START nor
1125 TARGET_ASM_FILE_END. Remove reference to ASM_FILE_START in
1126 comment.
1127 * config/arc/arc.c (arc_asm_file_start): Rename
1128 arc_file_start, take no arguments, make static.
1129 (TARGET_ASM_FILE_START): Set it.
1130 * config/arm/arm.c (aof_file_start): New static function.
1131 (TARGET_ASM_FILE_START): Set it, when appropriate.
1132 * config/arm/coff.h, config/arm/elf.h:
1133 Set TARGET_ASM_FILE_START_APP_OFF to true.
1134 * config/avr/avr.c (asm_file_start): Rename avr_file_start,
1135 take no arguments, make static.
1136 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE):
1137 Set them.
1138 * config/c4x/c4x.c (c4x_file_start): New static function.
1139 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE):
1140 Set them.
1141 * config/cris/cris.c (cris_file_start): New static function.
1142 (TARGET_ASM_FILE_START): Set it.
1143 * config/dsp16xx/dsp16xx.c (coff_dsp16xx_file_start): Rename
1144 dsp16xx_file_start, make static.
1145 (luxworks_dsp16xx_file_start): Delete.
1146 (TARGET_ASM_FILE_START): Set it.
1147 * config/h8300/h8300.c (asm_file_start): Rename
1148 h8300_file_start, make static, take no arguments.
1149 (TARGET_ASM_FILE_START): Set it.
1150 * config/i370/i370.c (i370_file_start): New static function.
1151 (TARGET_ASM_FILE_START): Set it.
1152 * config/i386/i386.c (x86_file_start): New static function.
1153 (TARGET_ASM_FILE_START): Set it.
1154 * config/i386/i386.h (X86_FILE_START_VERSION_DIRECTIVE,
1155 X86_FILE_START_FLTUSED): New macros, default to false.
1156 * config/i386/i386-interix.h: Override X86_FILE_START_FLTUSED to 1.
1157 * config/i386/sysv4.h, config/i386/sco5.h: Override
1158 X86_FILE_START_VERSION_DIRECTIVE to true.
1159 * config/ia64/ia64.c (ia64_file_start): New static function.
1160 (TARGET_ASM_FILE_START): Set it.
1161 (emit_safe_across_calls): Take no arguments.
1162 * config/ia64/ia64.md: Update to match.
1163 * config/m32r/m32r.c (m32r_asm_file_start): Rename
1164 m32r_file_start, make static, take no arguments.
1165 (TARGET_ASM_FILE_START): Set it.
1166 * config/m68hc11/m68hc11.c (m68hc11_asm_file_start): Rename
1167 m68hc11_file_start, make static, take no arguments.
1168 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
1169 (print_options): Delete.
1170 * config/m68k/m68k.c (m68k_hp320_file_start): New static function.
1171 (TARGET_ASM_FILE_START_APP_OFF): Set.
1172 * config/m68k/hp320.h: Set TARGET_ASM_FILE_START to
1173 m68k_hp320_file_start.
1174 * config/mips/mips.c (iris6_asm_file_start, mips_asm_file_start):
1175 Make static, take no arguments.
1176 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
1177 * config/mmix/mmix.c (mmix_asm_file_start): Rename
1178 mmix_file_start, make static, take no arguments.
1179 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
1180 * config/mn10300/mn10300.c (asm_file_start): Rename
1181 mn10300_file_start, make static, take no arguments.
1182 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
1183 * config/ns32k/ns32k.c (TARGET_ASM_FILE_START_APP_OFF): Set.
1184 * config/pa/pa.c (pa_file_start_level, pa_file_start_space,
1185 pa_file_start_file, pa_file_start_mcount, pa_elf_file_start,
1186 pa_som_file_start, pa_linux_file_start, pa_hpux64_gas_file_start,
1187 pa_hpux64_hpas_file_start): New static functions.
1188 * config/pa/elf.h: Set TARGET_ASM_FILE_START to pa_elf_file_start.
1189 * config/pa/pa-linux.h: Set TARGET_ASM_FILE_START to
1190 pa_linux_file_start.
1191 * config/pa/pa64-hpux.h: Set TARGET_ASM_FILE_START to
1192 pa_hpux64_gas_file_start or pa_hpux64_hpas_file_start, as
1193 appropriate.
1194 * config/pa/som.h: Set TARGET_ASM_FILE_START to pa_som_file_start.
1195 * config/rs6000/rs6000.c: Include xcoffout.h when TARGET_XCOFF.
1196 (rs6000_file_start): Make static, take no arguments. Reset
1197 default_cpu under certain conditions.
1198 (rs6000_xcoff_file_start): New function.
1199 * config/rs6000/rs6000.h (TARGET_ASM_FILE_START): Set.
1200 * config/rs6000/xcoff.h (TARGET_ASM_FILE_START,
1201 TARGET_ASM_FILE_START_FILE_DIRECTIVE): Override.
1202 * config/sh/sh.c (output_file_start): Rename
1203 sh_file_start, make static, take no arguments. Merge in old
1204 code from sh/elf.h's ASM_FILE_START, conditioned on TARGET_ELF.
1205 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
1206 * config/sh/sh.c (TARGET_ELF): Define to 0.
1207 * config/sh/elf.h (TARGET_ELF): Redefine to 1.
1208 * config/v850/v850.c (asm_file_start): Delete.
1209 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
1210 * config/vax/vax.c (vax_file_start): New static function.
1211 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_APP_OFF): Set.
1212
1213 * config/darwin.h: Override ASM_FILE_START_FILE_DIRECTIVE to false.
1214 * config/elfos.h, config/svr3.h, config/arm/elf.h, config/arm/pe.h
1215 * config/i386/att.h, config/i386/gas.h, config/i386/linux.h
1216 * config/i386/sysv4.h, config/i386/sco5.h, config/i960/i960-coff.h
1217 * config/m68k/coff.h, config/m68k/hp320.h, config/mcore/mcore-pe.h
1218 * config/vax/vaxv.h: Set ASM_FILE_START_FILE_DIRECTIVE to true.
1219
1220 * config/darwin.h, config/elfos.h, config/alpha/elf.h
1221 * config/alpha/openbsd.h, config/alpha/osf.h, config/alpha/vms.h
1222 * config/arc/arc.h, config/arm/aof.h, config/arm/aout.h
1223 * config/arm/coff.h, config/arm/elf.h, config/arm/pe.h
1224 * config/avr/avr.h, config/c4x/c4x.h, config/cris/cris.h
1225 * config/dsp16xx/dsp16xx.h, config/h8300/elf.h, config/h8300/h8300.h
1226 * config/i370/i370.h, config/i386/att.h, config/i386/gas.h
1227 * config/i386/i386-interix.h, config/i386/linux.h, config/i386/sysv4.h
1228 * config/i386/sco5.h, config/i960/i960-coff.h, config/i960/i960.h
1229 * config/ia64/ia64.h, config/ia64/sysv4.h, config/m32r/m32r.h
1230 * config/m68hc11/m68hc11.h, config/m68k/coff.h, config/m68k/m68k.h
1231 * config/mcore/mcore-pe.h, config/mips/iris6.h, config/mips/mips.h
1232 * config/mmix/mmix.h, config/mn10300/mn10300.h, config/ns32k/ns32k.h
1233 * config/pa/elf.h, config/pa/pa-linux.h, config/pa/pa64-hpux.h
1234 * config/pa/som.h, config/pdp11/pdp11.h, config/rs6000/linux64.h
1235 * config/rs6000/lynx.h, config/rs6000/xcoff.h, config/sh/elf.h
1236 * config/sh/sh.h, config/sparc/sparc.h, config/v850/v850.h
1237 * config/vax/vax.h, config/vax/vaxv.h: Don't (re)define ASM_FILE_START.
1238
1239 * config/alpha/alpha-protos.h, config/arc/arc-protos.h
1240 * config/avr/avr-protos.h, config/dsp16xx/dsp16xx-protos.h
1241 * config/h8300/h8300-protos.h, config/ia64/ia64-protos.h
1242 * config/m32r/m32r-protos.h, config/m68hc11/m68hc11-protos.h
1243 * config/mips/mips-protos.h, config/mmix/mmix-protos.h
1244 * config/mn10300/mn10300-protos.h, config/rs6000/rs6000-protos.h
1245 * config/sh/sh-protos.h, config/v850/v850-protos.h: Update.
1246
1247 * xcoffout.h, config/rs6000/aix.h, config/rs6000/xcoff.h:
1248 Remove reference to ASM_FILE_START in comment.
1249 * config/arm/aof.h, config/arm/aout.h, config/arm/freebsd.h
1250 * config/arm/linux-gas.h, config/arm/netbsd-elf.h
1251 * config/arm/netbsd.h: Delete definition of ARM_OS_NAME.
1252
1253 2003-06-19 Graeme Peterson <gp@qnx.com>
1254
1255 * gcc.c (target_sysroot_suffix, target_sysroot_hdrs_suffix,
1256 SYSROOT_SUFFIX_SPEC, SYSROOT_HEADERS_SUFFIX_SPEC, sysroot_suffix_spec,
1257 sysroot_hdrs_suffix_spec): New.
1258 (static_specs): Initialize new variables.
1259 (add_sysroot_suffix_prefix, do_spec_1, main): Use new variables.
1260 * doc/tm.texi (SYSROOT_SUFFIX_SPEC, SYSROOT_HEADERS_SUFFIX_SPEC):
1261 New macros.
1262
1263 2003-06-19 Andreas Jaeger <aj@suse.de>
1264
1265 * c-aux-info.c: Convert to ISO C90.
1266 * c-pragma.c: Likewise.
1267 * c-common.c: Likewise.
1268 * c-common.h: Likewise.
1269 * c-convert.c: Likewise.
1270 * c-cppbuiltin.c: Likewise.
1271 * c-dump.c: Likewise.
1272 * c-decl.c: Likewise
1273 * c-format.c: Likewise.
1274 * c-incpath.c: Likewise.
1275 * c-incpath.h: Likewise.
1276
1277 2003-06-19 Roger Sayle <roger@eyesopen.com>
1278
1279 * builtins.c (expand_errno_check): Assume that flag_errno_math
1280 and HONOR_NANS have been tested before calling here. Only try
1281 to set errno ourselves if the decl can't throw an exception.
1282 (expand_builtin_mathfn): Move the code to stabilize the arg
1283 after the main switch, so that that its only done when needed.
1284 BUILT_IN_SQRT{,F,L} doesn't set errno if its arg is nonnegative.
1285 Don't modify the original expr when stabilizing the argument.
1286 (expand_builtin_mathfn_2): Likewise, move the code to stabilize
1287 the args after the main switch, and don't modify the orginal exp.
1288
1289 2003-06-19 Aldy Hernandez <aldyh@redhat.com>
1290
1291 * expr.c (const_vector_from_tree): Initialize remaining elements
1292 to 0.
1293
1294 2003-06-19 Aldy Hernandez <aldyh@redhat.com>
1295
1296 * config/rs6000/spe.md ("spe_evfscfsi"): Change operand types.
1297 Change "fix" to "float".
1298
1299 2003-06-19 Andreas Jaeger <aj@suse.de>
1300
1301 * c-tree.h: Remove declaration of poplevel.
1302
1303 * tree.h: Remove declaration of approx_sqrt.
1304
1305 * c-lex.c: Remove redundant declaration of asm_out_file.
1306
1307 * flags.h: Remove declaration of warn_unknown_pragma and
1308 main_input_filename.
1309
1310 * rtl.h: Remove functions from fold-const.c since they're already
1311 declared in tree.h.
1312
1313 * regs.h: Remove redundant declaration of reg_names.
1314
1315 * bt-load.c (migrate_btr_defs): Correct printf arguments.
1316
1317 * protoize.c: Fix breakage from last patch.
1318
1319 2003-06-19 J"orn Rennecke <joern.rennecke@superh.com>
1320
1321 * hooks.h (hook_reg_class_void_no_regs): Only declare if tm.h
1322 has been included.
1323
1324 2003-06-18 James A Morrison <ja2morri@student.math.uwaterloo.ca>
1325
1326 * config/sparc/sparc.c: Update copyright year.
1327
1328 2003-06-19 David Edelsohn <edelsohn@gnu.org>
1329
1330 * config/rs6000/rs6000.c (init_cumulative_args): Limit CALL_LIBCALL
1331 to ABI_V4.
1332
1333 2003-06-18 Joseph S. Myers <jsm@polyomino.org.uk>
1334
1335 PR bootstrap/4068
1336 * config/i386/liunx.h: Don't include sys/ucontext.h for glibc 2.0.
1337
1338 2003-06-19 Kazu Hirata <kazu@cs.umass.edu>
1339
1340 * config/h8300/h8300.c (TARGET_INITIALIZER and friends): Move
1341 to the end of the file. Remove unnecessary prototypes.
1342
1343 2003-06-19 Hans-Peter Nilsson <hp@axis.com>
1344
1345 * bt-load.c (migrate_btr_def) [INSN_SCHEDULING]: Conditionalize
1346 calls to insn_default_latency and result_ready_cost. Initialize
1347 def_latency to 1.
1348
1349 2003-06-18 Richard Henderson <rth@redhat.com>
1350
1351 * config/ia64/unwind-ia64.c (_Unwind_GetCFA): New.
1352 (_Unwind_FindEnclosingFunction): Implement.
1353
1354 2003-06-18 Kazu Hirata <kazu@cs.umass.edu>
1355
1356 * toplev.c (rest_of_handle_sched): Hide the entire function if
1357 INSN_SCHEDULING is not defined.
1358 (rest_of_compilation): Call rest_of_handle_sched() only when
1359 INSN_SCHEDULING is defined.
1360
1361 2003-06-18 Stephen Clarke <stephen.clarke@superh.com>
1362 J"orn Rennecke <joern.rennecke@superh.com>
1363
1364 * bt-load.c: New file.
1365 * Makefile.in (OBJS): Include bt-load.o
1366 (bt-load.o): Add dependencies.
1367 * flags.h (flag_branch_target_load_optimize): Declare.
1368 (flag_branch_target_load_optimize2): Likewise.
1369 * hooks.c (hook_reg_class_void_no_regs): New function.
1370 (hook_bool_bool_false): Likewise.
1371 * hooks.h (hook_reg_class_void_no_regs, hook_bool_bool_false): Declare.
1372 * rtl.h (branch_target_load_optimize): Declare.
1373 * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define.
1374 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
1375 (TARGET_INITIALIZER): Include these.
1376 * target.h (struct gcc_target): Add branch_target_register_class
1377 and branch_target_register_callee_saved members.
1378 * toplev.c (enum dump_file_index): Add DFI_branch_target_load
1379 (dump_file) Add "tars" entry.
1380 (flag_branch_target_load_optimize): New variable.
1381 (flag_branch_target_load_optimize2): Likewise.
1382 (lang_independent_options): Add entries for new options.
1383 (rest_of_compilation): Call branch_target_load_optimize.
1384 * doc/tm.texi (TARGET_BRANCH_TARGET_REGISTER_CLASS): Document.
1385 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
1386 * doc/invoke.texi: Document -fbranch-target-load-optimize and
1387 -fbranch-target-load-optimize2.
1388 * rtl.h (epilogue_completed): Declare.
1389 * recog.c (epilogue_completed): New variable.
1390 * toplev.c (rest_of_compilation): Set it.
1391 * flow.c (mark_regs_live_at_end): Use it.
1392 * config/ia64/ia64.c (ia64_output_mi_thunk): Set it.
1393 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
1394 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
1395 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
1396
1397 * sh.c (shmedia_space_reserved_for_target_registers): New variable.
1398 (sh_target_reg_class): New function.
1399 (sh_optimize_target_register_callee_saved): Likwise.
1400 (shmedia_target_regs_stack_space): Likewise.
1401 (shmedia_reserve_space_for_target_registers_p): Likewise.
1402 (shmedia_target_regs_stack_adjust): Likewise.
1403 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Override.
1404 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
1405 (calc_live_regs): If flag_branch_target_load_optimize2 and
1406 TARGET_SAVE_ALL_TARGET_REGS is enabled, and we have space reserved
1407 for target registers, make sure that we save all target registers.
1408 (sh_expand_prologue, sh_expand_epilogue): Take target register
1409 optimizations into account. Collapse stack adjustments if that
1410 is beneficial.
1411 (initial_elimination_offset): Reserve space for target registers
1412 if necessary.
1413 * sh.h (SAVE_ALL_TR_BIT, TARGET_SAVE_ALL_TARGET_REGS): Define.
1414 (OPTIMIZATION_OPTIONS): Enable flag_branch_target_load_optimize.
1415
1416 2003-06-18 Nick Clifton <nickc@redhat.com>
1417
1418 * config.gcc: Add an extra_header for ARM targets.
1419 Support configuring with --with-cpu=iwmmxt.
1420 * doc/invoke.texi: Document new value for -mcpu= ARM switch.
1421 * config/arm/aof.h (REGISTER_NAMES): Add iwmmxt register
1422 names. Fix formatting.
1423 * config/arm/aout.h (REGISTER_NAMES): Add iwmmxt register
1424 names.
1425 * config/arm/arm-protos.h (arm_emit_vector_const): New
1426 prototype.
1427 (arm_output_load_gr): New prototype.
1428 * config/arm/arm.c (extra_reg_names1): Delete.
1429 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN, FL_IWMMXT,
1430 * arch_is_iwmmxt): Define.
1431 (all_cores, all_architecture): Add entry for iwmmxt.
1432 (arm_override_options): Add support for iwmmxt.
1433 (use_return_insn, arm_function_arg, arm_legitimate_index_p,
1434 arm_print_value, arm_rtx_costs_1, output_move_double,
1435 arm_compute_save_reg_mask, arm_output_epilogue,
1436 arm_get_frame_size, arm_expand_prologue, arm_print_operand,
1437 arm_assemble_integer, arm_hard_regno_ok, arm_regno_class):
1438 Likewise.
1439 (arm_init_cumulative_args): Count iwmmxt registers.
1440 (arm_function_ok_for_sibcall): Return false of sibcall_blocked
1441 has been set.
1442 (struct minipool_node): Add fix_size field.
1443 (add_minipool_forward_ref): Add support for 8-byte aligning of
1444 the pool.
1445 (add_minipool_backward_ref, add_minipool_offsets,
1446 dump_minipool, push_minipool_fix): Likewise.
1447 (struct builtin_description): New struct.
1448 (builtin_description): New array of iwmmxt builtin functions.
1449 (arm_init_iwmmxt_builtins): New function.
1450 (arm_init_builtins): New function.
1451 (safe_vector_operand): New function.
1452 (arm_expand_binop_builtin): New function.
1453 (arm_expand_unop_builtin): New function.
1454 (arm_expand_builtin): New function.
1455 (arm_emit_vector_const): New function.
1456 (arm_output_load_gr): New function.
1457 * config/arm/arm.h (TARGET_CPU_iwmmxt, TARGET_IWMMXT,
1458 TARGET_REALLY_IWMMXT, arm_arch_iwmmxt, IWMMXT_ALIGNMENT,
1459 TYPE_NEEDS_IWMMXT_ALIGNMENT, ADJUST_FIELD_ALIGN,
1460 DATA_ALIGNMENT, LOCAL_ALIGNMENT, VECTOR_MODE_SUPPORTED_P): Define.
1461 (BIGGEST_ALIGNMENT): Set to 64 if ATPCS support is enabled.
1462 (CPP_CPU_ARCH_SPEC): Add entries for iwmmxt.
1463 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER,
1464 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
1465 REG_CLASS_FOR_LETTER): Add iwmmxt registers.
1466 (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Disable iwmmxt
1467 registers unless the iwmmxt target is selected.
1468 (FIRST_IWMMXT_GR_REGNUM, LAST_IWMMXT_GR_REGNUM,
1469 FIRST_IWMMXT_REGNUM, LAST_IWMMXT_REGNUM, IS_IWMMXT_REGNUM,
1470 IS_IWMMXT_GR_REGNUM): Define.
1471 (FIRST_PSEUDO_REGISTER): Bump to 63.
1472 (struct machine_function): Add sibcall_blocked field.
1473 (Struct CUMULATIVE_ARGS): Add iwmmxt_nregs, named_count and
1474 nargs fields.
1475 (enum arm_builtins): New enum list.
1476 * config/arm/arm.md (UNSPEC_WSHUFH, UNSPEC_WACC,
1477 UNSPEC_TMOVMSK, UNSPEC_WSAD, UNSPEC_WSADZ, UNSPEC_WMACS,
1478 UNSPEC_WMACU, UNSPEC_WMACSZ, UNSPEC_WMACUZ, UNSPEC_CLRDI,
1479 UNSPEC_WMADDS, UNSPEC_WMADDU): New unspecs.
1480 (VUNSPEC_TMRC, VUNSPEC_TMCR, VUNSPEC_ALIGN8, VUNSPEC_WCMP_EQ,
1481 VUNSPEC_WCMP_GTU, VUNSPEC_WCMP_GT): New vunspecs.
1482 (movv2si, movv4hi, movv8qi): New expands for vector moves.
1483 Include iwmmxt.md.
1484 * config/arm/t-xscale-elf (MULTILIB_OPITONS): Add iwmmxt
1485 multilib.
1486 (MULTILIB_DIRNAMES, MULTILIB_REDUNDANT_DIRS): Likewise.
1487 * config/arm/mmintrin.h: New ARM specific header file.
1488 * config/arm/iwmmx.md: New iWMMXt specific machine patterns.
1489
1490 2003-06-18 J"orn Rennecke <joern.rennecke@superh.com>
1491
1492 * toplev.c (Remaining -d letters summary): Update.
1493
1494 2003-06-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1495
1496 * config/rs6000/rs6000.c (init_cumulative_args): Add and handle LIBCALL
1497 argument.
1498 (function_arg): Handle CALL_LIBCALL flag.
1499 * config/rs6000/rs6000-protos.h (init_cumulative_args): Update
1500 prototype.
1501 * config/rs6000/rs6000.h (CALL_LIBCALL): New macro.
1502 (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
1503 (INIT_CUMULATIVE_ARGS): Add LIBCALL argument.
1504 (INIT_CUMULATIVE_INCOMING_ARGS): Likewise.
1505
1506 2003-06-18 Neil Booth <neil@daikokuya.co.uk>
1507
1508 * Makefile.in: Update.
1509 * common.opt: New options.
1510 * opts.c (maybe_warn_unused_parameter, set_Wextra, handle_param,
1511 set_Wunused): New.
1512 (common_handle_option): Handle new options.
1513 * toplev.c (set_target_switch): Export.
1514 (set_Wextra, set_Wunused, maybe_warn_unused_parameter): Move to opts.c.
1515 (decode_W_option): -Wunused and -Wextra handled in opts.c now.
1516 (independent_decode_option): More options handled in opts.c now.
1517 Change prototype.
1518 * toplev.h (set_target_switch): New.
1519
1520 2003-06-17 Robert Abeles <rabeles@archaelogic.com>
1521
1522 PR debug/4252
1523 * c-opts.c (c_common_handle_option): Pass -fdump argument suffix
1524 to dump_switch_p().
1525 * tree-dump.c (dump_switch_p): Remove redundant 'dump-' prefix
1526 from static strings in dump_files.
1527
1528 2003-06-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1529
1530 * system.h (ANSI_PROTOTYPES, PTR_CONST, LONG_DOUBLE, VPARAMS,
1531 VA_OPEN, VA_FIXEDARG, VA_CLOSE, VA_START): undef and poison these
1532 libiberty macros.
1533
1534 2003-06-17 Jason Merrill <jason@redhat.com>
1535
1536 PR c++/10929
1537 * tree-inline.c (expand_call_inline): Don't warn about failing to
1538 inline a function which was made inline by -finline-functions.
1539
1540 2003-06-17 Kazu Hirata <kazu@cs.umass.edu>
1541
1542 * config/h8300/h8300-protos.h: Update to ISO C.
1543 * config/h8300/h8300.c: Likewise.
1544 * config/h8300/h8300.h: Likewise.
1545 * config/h8300/h8300.md: Likewise.
1546
1547 2003-06-16 Nathanael Nerode <neroden@gcc.gnu.org>
1548
1549 * configure.in: Replace BUILD_CC references with CC_FOR_BUILD.
1550 * configure: Regenerate.
1551 * Makefile.in: Replace BUILD_CC references with CC_FOR_BUILD.
1552
1553 2003-06-17 Ranjit Mathew <rmathew@hotmail.com>
1554
1555 * install.texi (Testing): Add information on how to run Java
1556 runtime tests separately.
1557
1558 2003-06-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1559
1560 * config/mips/mips.md (trap): Use break 0 when !TARGET_GAS.
1561
1562 * config/mips/iris6-o32.h (MIPS_ISA_DEFAULT): Remove.
1563 (MIPS_CPU_STRING_DEFAULT): Redefine to mips2.
1564
1565 2003-06-17 Christopher Faylor <cgf@redhat.com>
1566
1567 * doc/install.texi: Add msvc rebuild caveat.
1568
1569 2003-06-17 Kazu Hirata <kazu@cs.umass.edu>
1570
1571 * config/sh/coff.h: Replace Hitachi with Renesas.
1572 * config/sh/elf.h: Likewise.
1573 * config/sh/embed-elf.h: Likewise.
1574 * config/sh/lib1funcs.asm: Likewise.
1575 * config/sh/sh-protos.h: Likewise.
1576 * config/sh/sh.c: Likewise.
1577 * config/sh/sh.h: Likewise.
1578 * config/sh/sh.md: Likewise.
1579
1580 2003-06-17 Kazu Hirata <kazu@cs.umass.edu>
1581
1582 * ChangeLog.3: Fix comment typos.
1583 * ChangeLog.6: Likewise.
1584 * config/d30v/d30v.c: Likewise.
1585 * config/h8300/h8300.md: Likewise.
1586 * config/m32r/m32r.md: Likewise.
1587 * config/mips/mips.c: Likewise.
1588 * config/mips/mips.md: Likewise.
1589 * config/ns32k/NOTES: Likewise.
1590
1591 2003-06-17 Ranjit Mathew <rmathew@hotmail.com>
1592 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1593
1594 * doc/sourcebuild.texi (libgcj Tests): Simplify instructions on how
1595 to run Java runtime tests separately.
1596
1597 2003-06-17 Kazu Hirata <kazu@cs.umass.edu>
1598
1599 * config/h8300/h8300-protos.h: Update a comment.
1600
1601 2003-06-17 J"orn Rennecke <joern.rennecke@superh.com>
1602
1603 * sh.h (ROUND_TYPE_ALIGN, LOCAL_ALIGNMENT): Complex modes
1604 are aligned like integral modes.
1605 (SH5_WOULD_BE_PARTIAL_NREGS): Also test for CDImode and DCmode.
1606
1607 * sh.h (EXTRA_CONSTRAINT_Csy): Allow PIC_DIRECT_ADDR_P.
1608 (LEGITIMATE_PIC_OPERAND_P): Allow LABEL_REF.
1609 * sh.md (*pt): Remove.
1610
1611 * sh.h (REG_ALLOC_ORDER): Avoid squandering call-saved registers.
1612
1613 * sh.md (return_media_rte): New pattern.
1614 (return_media): Use it.
1615
1616 2003-06-17 Kazu Hirata <kazu@cs.umass.edu>
1617
1618 * doc/contrib.texi: Replace Hitachi with Renesas.
1619 * doc/install.texi: Likewise.
1620 * doc/invoke.texi: Likewise.
1621
1622 2003-06-17 J"orn Rennecke <joern.rennecke@superh.com>
1623
1624 * sh.h (CONST_OK_FOR_J16): Fix HOST_BITS_PER_WIDE_INT >= 64
1625 behaviour.
1626
1627 2003-06-17 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1628
1629 * doc/tm.texi (MD_FALLBACK_FRAME_STATE_FOR): Mention MAKE_THROW_FRAME.
1630
1631 * config/rs6000/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Partly revert
1632 2003-01-23 patch. Corrected to handle kernels with changed ucontext.
1633
1634 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Error on invalid
1635 -msdata=eabi usages.
1636
1637 * gcc/config/rs6000/sysv4.h (USE_LIBC_1): Delete all uses.
1638
1639 2003-06-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1640
1641 * alloc-pool.c: Don't check HAVE_LONG_DOUBLE.
1642 * fixinc/gnu-regex.c: Don't define `volatile'.
1643 * ggc-page.c: Don't check HAVE_LONG_DOUBLE.
1644 * ggc-simple.c: Likewise.
1645 * system.h: Don't define `volatile'.
1646
1647 * aclocal.m4 (gcc_AC_C_VOLATILE, gcc_AC_C_LONG_DOUBLE): Delete.
1648 * configure.in (gcc_AC_C_VOLATILE, gcc_AC_C_LONG_DOUBLE): Don't
1649 call these macros.
1650 * config.in, configure: Regenerated.
1651
1652 2003-06-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1653
1654 * config/ia64/ia64.c (ia64_expand_builtin, case IA64_BUILTIN_BSP):
1655 Handle POINTERS_EXTEND_UNSIGNED.
1656
1657 2003-06-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1658
1659 * config/mips/mips.c (TARGET_ASM_UNALIGNED_DI_OP) [TARGET_IRIX5 &&
1660 !TARGET_IRIX6]: Define as NULL.
1661
1662 2003-06-17 Eric Botcazou <ebotcazou@libertysurf.fr>
1663
1664 * config/sparc/sparc.c (sparc_va_arg): Don't align 16-byte+ structures.
1665
1666 2003-06-17 Eric Botcazou <ebotcazou@libertysurf.fr>
1667
1668 * dbxout.c (dbxout_source_line_counter): New global variable.
1669 Mark it with GTY(()).
1670 (dbxout_source_line): Increment dbxout_source_line_counter
1671 and pass it to ASM_OUTPUT_SOURCE_LINE.
1672 * sdbout.c (sdbout_source_line_counter): New global variable.
1673 Mark it with GTY(()).
1674 (unnamed_struct_number): Mark it with GTY(()).
1675 (sdbout_source_line): Increment sdbout_source_line_counter
1676 and pass it to ASM_OUTPUT_SOURCE_LINE.
1677 * xcoffout.c (ASM_OUTPUT_SOURCE_LINE): Add third parameter
1678 (xcoffout_source_line): Pass 0 as third argument to
1679 ASM_OUTPUT_SOURCE_LINE.
1680 (xcoffout_begin_prologue): Likewise.
1681 * config/dbxout.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
1682 Use it instead of 'sym_lineno' but without incrementing it.
1683 * config/dbxelf.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
1684 * config/lynx.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
1685 * config/ptx4.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
1686 * config/alpha/alpha.c (alpha_start_function): Pass 0 as third
1687 argument to ASM_OUTPUT_SOURCE_LINE.
1688 * config/alpha/alpha.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
1689 * config/arm/aout.h: Remove useless comment.
1690 * config/avr/avr.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
1691 * config/i960/i960.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
1692 * config/m32r/m32r.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
1693 Use it instead of 'sym_lineno' but without incrementing it.
1694 * config/m68k/hp320.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
1695 * config/mcore/mcore-pe.h (ASM_OUTPUT_SOURCE_LINE): Add third
1696 parameter. Use it instead of 'sym_lineno' but without incrementing it.
1697 * config/mips/mips.c (mips_output_function_prologue): Pass 0 as third
1698 argument to ASM_OUTPUT_SOURCE_LINE.
1699 * config/mips/mips.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
1700 * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
1701 * config/pa/som.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
1702 Use it instead of 'sym_lineno' but without incrementing it.
1703 * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
1704 * config/sh/elf.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
1705 * config/sparc/aout.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
1706 * config/sparc/pbd.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
1707 * doc/tm.texi (ASM_OUTPUT_SOURCE_LINE): Document third parameter.
1708
1709 2003-06-17 Richard Sandiford <rsandifo@redhat.com>
1710
1711 * config/mips/mips-protos.h (mips_expand_block_move): Declare.
1712 (expand_block_move, output_block_move): Remove.
1713 * config/mips/mips.h (enum block_move_type): Remove.
1714 * config/mips/mips.c (block_move_call, output_block_move): Remove.
1715 (mips_block_move_straight, mips_adjust_block_mem): New function.
1716 (mips_block_move_loop): Renamed and reworked from block_move_loop.
1717 (mips_expand_block_move): Likewise expand_block_move. Return false
1718 to fall back on the target-independent code.
1719 * config/mips/mips.md (movstrsi): Use mips_expand_block_move.
1720 (movstrsi_internal*): Remove.
1721
1722 2003-06-16 Zack Weinberg <zack@codesourcery.com>
1723
1724 * cpplib.h, cpphash.h, cppcharset.c, cpperror.c, cppexp.c
1725 * cppfiles.c, cpphash.c, cppinit.c, cpplex.c, cpplib.c
1726 * cppmacro.c, cpppch.c, cpptrad.c, cppspec.c: Convert to
1727 ISO C: new-style function declarations, no need for PARAMS,
1728 no special punctuation on indirect function calls, use string
1729 constant concatenation where convenient.
1730
1731 2003-06-17 Andreas Jaeger <aj@suse.de>
1732
1733 * rtl.h: Remove declarations from coverage.h.
1734 * toplev.c: Include coverage.h.
1735 * Makefile.in (toplev.o): Depend on coverage.h.
1736
1737 * toplev.h: Remove extra declaration of print_time.
1738
1739 * gengtype.c (close_output_files): Remove duplicated declaration.
1740
1741 2003-06-16 Nathanael Nerode <neroden@gcc.gnu.org>
1742
1743 * config/sparc/sysv4.h: Remove target-independent comment;
1744 replace "GNU CC" with "GCC".
1745 * config/vxworks.h: Replace "GNU compiler" with "GCC".
1746 * config/sparc/aout.h, config/sparc/biarch64.h, config/sparc/elf.h,
1747 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
1748 config/sparc/lite.h, config/sparc/litecoff.h, config/sparc/liteelf.h,
1749 config/sparc/netbsd-elf.h, config/sparc/openbsd.h,
1750 config/sparc/rtemself.h, config/sparc/sol2-64.h,
1751 config/sparc/sol2-bi.h, config/sparc/sol2-gas-bi.h,
1752 config/sparc/sol2-gld-bi.h, config/sparc/sol2-gld.h,
1753 config/sparc/sol2.h, config/sparc/sp64-aout.h,
1754 config/sparc/sp64-elf.h, config/sparc/sp86x-elf.h,
1755 config/sparc/sparc-protos.h, config/sparc/sysv4-only.h: Replace
1756 "GNU compiler", "GNU CC" with "GCC".
1757 * config/sparc/cypress.md, config/sparc/hypersparc.md,
1758 config/sparc/sparc-modes.def, config/sparc/sparc.c,
1759 config/sparc/sparc.md, config/sparc/sparclet.md,
1760 config/sparc/supersparc.md, config/sparc/ultra1_2.md,
1761 config/sparc/ultra3.md: Replace "GNU CC", "GNU Compiler", and
1762 "GNU C Compiler" with "GCC".
1763 * config/ip2k/ip2k.h: Replace "GNU CC" and "GNU compiler" with "GCC".
1764
1765 2003-06-16 Aldy Hernandez <aldyh@redhat.com>
1766
1767 * simplify-rtx.c (simplify_subreg): Do not over-extend vector
1768 constants.
1769
1770 * testsuite/gcc.c-torture/execute/simd-4.c: New.
1771
1772 2003-06-16 Nathanael Nerode <neroden@gcc.gnu.org>
1773
1774 * config/ip2k/ip2k.h: Remove target-independent comments.
1775
1776 * config.gcc: Explicitly mention elfos.h in ip2k entry.
1777 * config/ip2k/ip2k.h: Don't #include it here.
1778
1779 2003-06-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1780
1781 * bitmap.c, builtins.c, c-incpath.c, cgraph.c, config/frv/frv.c,
1782 config/mips/mips.c, cppfiles.c, cpphash.c, cppinit.c, cpplib.c,
1783 dwarf2out.c, dwarfout.c, except.c, expr.c, expr.h, fold-const.c,
1784 function.c, gcc.c, genoutput.c, gensupport.c, global.c,
1785 haifa-sched.c, hashtable.c, ifcvt.c, integrate.c, local-alloc.c,
1786 loop.c, mips-tdump.c, mips-tfile.c, mkdeps.c, protoize.c,
1787 read-rtl.c, recog.h, reload1.c, sbitmap.c, ssa-dce.c,
1788 stringpool.c, tlink.c, tree.c, varasm.c, varray.c: Don't use
1789 the PTR macro.
1790
1791 * gengtype.c: Don't use UNION_INIT_ZERO.
1792 * system.h (UNION_INIT_ZERO): Delete.
1793
1794 2003-06-16 Richard Henderson <rth@redhat.com>
1795
1796 * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE instead of
1797 GET_MODE_UNIT_SIZE when simplifying constant vectors.
1798
1799 2003-06-16 Andreas Jaeger <aj@suse.de>
1800
1801 * timevar.c (get_run_time): Remove function provided also by
1802 libiberty.
1803 * timevar.h: Remove get_run_time declaration.
1804
1805 2003-06-16 Kazu Hirata <kazu@cs.umass.edu>
1806
1807 * config/m68hc11/m68hc11.c (m68hc11_rtx_costs): Remove
1808 unreachable code.
1809
1810 2003-06-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1811
1812 * builtin-attrs.def, builtin-attrs.def, builtins.c, cpplex.c,
1813 cpplib.c, gencheck.c, gengenrtl.c, machmode.def, protoize.c: Don't
1814 use macros from "symcat.h", instead rely on ISO C.
1815
1816 * system.h: Don't include "symcat.h".
1817 * configure.in (AC_C_STRINGIZE): Delete.
1818 * config.in, configure: Regenerate.
1819
1820 2003-06-16 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1821
1822 * Makefile.in (install-mkheaders): Use INSTALL_SCRIPT for scripts.
1823
1824 * tree.h (STMT_CHECK): New macro.
1825 Also upper-case argument names on all checking macros and
1826 fix some whitespace problems; assume CODE argument does not
1827 have side-effects.
1828
1829 2003-06-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1830
1831 * scan.h: Convert to ISO C.
1832 * system.h: Likewise.
1833
1834 * c-format.c (dynamic_format_types): New pointer for dynamic data.
1835 (find_length_info_modifier_index, init_dynamic_asm_fprintf_info):
1836 New functions split out of...
1837 (handle_format_attribute): ...here.
1838
1839 2003-06-16 J"orn Rennecke <joern.rennecke@superh.com>
1840
1841 * sh.h (REG_CLASS_FROM_LETTER): Change to:
1842 (REG_CLASS_FROM_CONSTRAINT).
1843 (CONST_OK_FOR_I): Rename to:
1844 (CONST_OK_FOR_I08). Changed all users.
1845 (CONST_OK_FOR_J): Rename to:
1846 (CONST_OK_FOR_I16). Changed all users.
1847 (CONST_OK_FOR_K): Rename to:
1848 (CONST_OK_FOR_P27). Changed all users.
1849 (CONST_OK_FOR_L): Rename to:
1850 (CONST_OK_FOR_K08). Changed all users.
1851 (CONST_OK_FOR_O): Rename to:
1852 (CONST_OK_FOR_I06). Changed all users.
1853 (CONST_OK_FOR_P): Rename to:
1854 (CONST_OK_FOR_I10). Changed all users.
1855 (CONSTRAINT_LEN, CONST_OK_FOR_I, CONST_OK_FOR_J16): Define.
1856 (CONST_OK_FOR_J, CONST_OK_FOR_K, CONST_OK_FOR_P): Likewise.
1857 (EXTRA_CONSTRAINT_A, EXTRA_CONSTRAINT_Bsc): Likewise.
1858 (EXTRA_CONSTRAINT_B, PIC_OFFSET_P, PIC_DIRECT_ADDR_P): Likewise.
1859 (EXTRA_CONSTRAINT_Cpg, EXTRA_CONSTRAINT_C): Likewise.
1860 (EXTRA_MEMORY_CONSTRAINT,(EXTRA_CONSTRAINT_Sr0): Likewise.
1861 (CONST_OK_FOR_LETTER_P): Replace with
1862 (CONST_OK_FOR_CONSTRAINT_P).
1863 (EXTRA_CONSTRAINT_S): Rename to:
1864 (EXTRA_CONSTRAINT_C16). Changed all users.
1865 (MOVI_SHORI_BASE_OPERAND_P): Don't allow direct addresses.
1866 (EXTRA_CONSTRAINT_T): Rename to:
1867 (EXTRA_CONSTRAINT_Csy). Changed all users.
1868 (EXTRA_CONSTRAINT_Z): Remove.
1869 (EXTRA_CONSTRAINT): Replace with:
1870 (EXTRA_CONSTRAINT_STR).
1871 (EXTRA_CONSTRAINT_U): Rename to:
1872 (EXTRA_CONSTRAINT_Z). Changed all users.
1873 * sh.c (and_operand): Use CONST_OK_FOR_J16.
1874 * sh.md (cmpeqsi_t-1, cmpeqsi_t, adddi3_media): Use new constraints.
1875 (addsi3_media, addsi3_compact, andsi3_compact, anddi3): Likewise.
1876 (iorsi3, iordi3, xorsi3, xordi3, ashlsi3_std, ashlhi3_k): Likewise.
1877 (lshrsi3_k, movsi_i, movsi_ie, movsi_i_lowpart, movsi_media): Likewise.
1878 (movsi_media_nofpu, movqi_media, movhi_i, movhi_media): Likewise.
1879 (*movdi_i, movdi_media, movdi_media_nofpu, shori_media): Likewise.
1880 (movdf_media, movdf_media_nofpu, movv2sf_i, movv4sf_i): Likewise.
1881 (movsf_media, movsf_media_nofpu, movsi_y, beq_media): Likewise.
1882 (beq_media_i, bne_media, pt, ptb, movv8qi_i, movv2hi_i): Likewise.
1883 (movv4hi_i, movv2si_i, negcmpeqv8qi, negcmpeqv2si): Likewise.
1884 (negcmpeqv4hi, negcmpgtuv8qi, negcmpgtv2si, negcmpgtv4hi): Likewise.
1885 (mcmv, mcnvs_lw, mcnvs_wb, mcnvs_wub, mextr_rl, mextr_lr): Likewise.
1886 (mextr1, mextr2, mextr3, mextr4, mextr5, mextr6, mextr7): Likewise.
1887 (mperm_w, mperm_w_little, mperm_w_big, msad_ubq_i): Likewise.
1888 (mshards_q, mshfhi_b, mshflo_b, mshf4_b, mshf0_b, mshfhi_l): Likewise.
1889 (mshflo_l, mshf4_l, mshf0_l, mshfhi_w, mshflo_w, mshf4_w): Likewise.
1890 (mshf0_w, mshflo_w_x, mshfhi_l_di, mshfhi_l_di_rev): Likewise.
1891 (mshflo_l_di_rev, mshflo_l_di_x, concat_v2sf): Likewise.
1892 (mshflo_l_di_x_rev, subv2si3, subv4hi3, sssubv2si3): Likewise.
1893 (sssubv4hi3): Likewise.
1894 (movsf_i): Change I[08]/r to G/r.
1895 (movsf_ie): Change f/{G,H}/c/X to f/{G,H}/c/Bsc.
1896
1897 * sh.c (sh_output_mi_thunk): Use CONST_OK_FOR_ADD.
1898
1899 2003-06-16 Vladimir Makarov <vmakarov@redhat.com>
1900
1901 * config/i386/i386.c (ix86_memory_move_cost): Fix typo.
1902
1903 2003-06-16 Andreas Jaeger <aj@suse.de>
1904
1905 * basic-block.h: Remove duplicate prototype of
1906 note_prediction_to_br_prob.
1907
1908 * tree.h: Remove duplicate prototype of strip_float_extensions.
1909
1910 2003-06-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1911
1912 * config/c4x/c4x.c: Don't include "c-tree.h".
1913 * config/pa/pa.c: Likewise.
1914 * langhooks.c: Likewise.
1915 * tree.h (poplevel): Declare.
1916
1917 2003-06-16 Kazu Hirata <kazu@cs.umass.edu>
1918
1919 * config/h8300/h8300.c (const_costs): Move this to ...
1920 (h8300_rtx_costs): ... here.
1921
1922 2003-06-16 Roger Sayle <roger@eyesopen.com>
1923
1924 * optabs.h (enum optab_index): Add new OTI_tan and OTI_atan.
1925 (tan_optab, atan_optab): Define corresponding macros.
1926 * optabs.c (init_optabs): Initialize tan_optab and atan_optab.
1927 * genopinit.c (optabs): Implement tan_optab and atan_optab
1928 using tan?f2 and atan?f2 patterns.
1929 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_TAN{,F,L}
1930 using tan_optab, and BUILT_IN_ATAN{,F,L} using atan_optab.
1931 Change the default value of errno_set to false.
1932 (expand_builtin): Expand BUILT_IN_TAN{,F,L} and BUILT_IN_ATAN{,F,L}
1933 using expand_builtin_mathfn.
1934
1935 * config/i386/i386.md (atansf2, atandf2, atanxf2, atantf2): New
1936 expander patterns implemented using existing atan2?f3 patterns.
1937
1938 2003-06-16 Roger Sayle <roger@eyesopen.com>
1939
1940 * expr.c (expand_expr <PLUS_EXPR>): If operand_equal_p considers
1941 both operands of the addition equal, reuse the expanded RTL.
1942 (expand_expr <MULT_EXPR>): Likewise for multiplication.
1943
1944 2003-06-16 Roger Sayle <roger@eyesopen.com>
1945 Jeff Law <law@redhat.com>
1946
1947 * fold-const.c (operand_equal_p): Consider two calls to "const"
1948 functions with identical non-volatile arguments to be equal.
1949 Consider the FUNCTION_DECL for the "__builtin_foo" form of a
1950 built-in function to be equal to the "foo" form.
1951
1952 2003-06-16 Nathanael Nerode <neroden@gcc.gnu.org>
1953
1954 * config/rs6000/sysv4le.h: Remove target-independent comment.
1955 Replace "GNU compiler" with "GCC" in comment.
1956
1957 2003-06-16 Andreas Jaeger <aj@suse.de>
1958
1959 * tracer.c: Remove duplicate declaration.
1960
1961 * toplev.c: Remove extra declaration of decode_d_option.
1962
1963 * ssa.c: Remove duplicate declaration.
1964
1965 * sreal.c: Remove extra declaration of dump_sreal.
1966
1967 * reload1.c: Remove duplicate declarations.
1968
1969 * integrate.c: Remove extra declaration of
1970 set_decl_abstract_flags.
1971
1972 * flow.c: Remove extra declaration of dump_flow_info.
1973
1974 * alias.c: Remove extra declaration of get_addr.
1975
1976 2003-06-16 Nathanael Nerode <neroden@gcc.gnu.org>
1977
1978 * config/rtems.h, config/sol2.h, config/svr4.h, config/usegas.h,
1979 config/vxworks.h: GNU CC -> GCC.
1980
1981 * convert.c, dwarf2out.c, dwarfout.c, emit-rtl.c, function.c,
1982 lists.c, print-rtl.c, print-tree.c, read-rtl.c, rtl-error.c,
1983 stmt.c, toplev.c, integrate.h, loop.h, machmode.h, rtl.h,
1984 ssa.h, tree.def: Replace overly specific references to "GNU C"
1985 and "GNU C Compiler" with references to "GCC".
1986
1987 2003-06-16 J"orn Rennecke <joern.rennecke@superh.com>
1988
1989 * sh.c (prepare_move_operand): Check if operand 0 is an invalid
1990 memory reference. Fix test that checks if operand 1 is using r0.
1991 * sh.md (movhi_i): Don't allow st.w r0,@(rX,rY) .
1992
1993 * defaults.h (REG_CLASS_FROM_CONSTRAINT): Only define if not already
1994 defined.
1995
1996 2003-06-15 Nathan Sidwell <nathan@codesourcery.com>
1997
1998 * function.h (struct emit_status): Remove x_last_linenum,
1999 x_last_filename. Add x_last_location.
2000 * rtl.h: #include "input.h".
2001 (NOTE_DATA): New.
2002 * cfglayout.c (duplicate_insn_chain): Use emit_line_note for line
2003 number notes.
2004 * emit-rtl.c (last_linenum, last_filename): Remove.
2005 (last_location): New.
2006 (emit_line_note_after): LINE must always be >= 0.
2007 (emit_line_note): Likewise. Check not duplicate here...
2008 (emit_note): ... rather than here.
2009 (emit_line_note_force, force_next_line_note, init_emit): Adjust.
2010 * integrate.c (expand_inline_function): Use emit_line_note for
2011 line number notes.
2012 (copy_insn_list): Likewise.
2013 * unroll.c (copy_loop_body): Likewise.
2014 * Makefile.in (RTL_H): Add input.h.
2015
2016 2003-06-16 Richard Sandiford <rsandifo@redhat.com>
2017
2018 * optabs.c (emit_libcall_block): Don't hoist insns past a label.
2019
2020 2003-06-16 Richard Henderson <rth@redhat.com>
2021
2022 * config/alpha/alpha-protos.h, config/alpha/elf.h,
2023 config/alpha/osf.h, config/alpha/unicosmk.h, config/alpha/vms.h,
2024 config/alpha/vms-cc.c, config/alpha/vms-ld.c: Update to ISO C.
2025 * config/alpha/alpha.c: Likewise. Move targetm init to end of file.
2026 Remove unneeded static function decls.
2027
2028 2003-06-16 Neil Booth <neil@daikokuya.co.uk>
2029
2030 * c-opts.c (c_common_handle_option): s/on/value/.
2031 (OPT_fabi_version_, OPT_ftabstop_, OPT_ftemplate_depth_): Use value
2032 directly rather than converting the argument.
2033 * c.opt: Update docs. Use UInteger where appropriate.
2034 * common.opt: Use UInteger where appropriate.
2035 * opts.c (integral_argument): New.
2036 (handle_argument): Handle integral arguments, and optional
2037 joined arguments.
2038 (common_handle_option): Update.
2039 * opts.h (CL_MISSING_OK, CL_UINTEGER): New.
2040 * opts.sh: Handle JoinedOrMissing and UInteger flags.
2041
2042 2003-06-16 Neil Booth <neil@daikokuya.co.uk>
2043
2044 * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Remove
2045 unnecessary extern declaration.
2046
2047 2003-06-15 Nathanael Nerode <neroden@gcc.gnu.org>
2048
2049 * config/gofast.h, config/interix.h, config/interix3.h,
2050 config/libgloss.h, config/linux-aout.h, config/linux.h,
2051 config/lynx-ng.h, config/lynx.h: GNU CC -> GCC.
2052 * config/kaos.h: "GNU compiler" -> GCC.
2053 * config/linux-aout.h, config/lynx.h: Clarify comment describing file.
2054
2055 * config/ip2k/crt0.S, config/ip2k/ip2k-protos.h,
2056 config/ip2k/ip2k.c, config/ip2k/ip2k.md, config/ip2k/libgcc.S:
2057 GNU CC -> GCC.
2058
2059 * config/svr3.h: Remove #if 0 code, misleading comments.
2060 GNU CC -> GCC.
2061
2062 2003-06-15 Zack Weinberg <zack@codesourcery.com>
2063
2064 * vmsdbgout.c (vmsdbgout_finish): Rename parameter to
2065 main_input_filename to avoid conflict with input_filename macro.
2066
2067 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
2068
2069 * config/mips/mips.h (asm_file_name, g_switch_set,
2070 g_switch_value): Remove.
2071 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
2072 unnecessary extern declarations.
2073
2074 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
2075
2076 * config/frv/frv.h: Remove declaration of g_switch_value.
2077 * config/m32r/m32r.h: Remove declaration of g_switch_value.
2078 * config/m68hc11/m68hc11.c: Remove declaration of asm_file_name.
2079
2080 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
2081
2082 * opts.sh: Quote '+' in regex.
2083
2084 2003-06-15 Andrew Pinski <pinskia@physics.uc.edu>
2085
2086 * config/rs6000/t-rs6000: Add dependence of cfglayout.h to rs6000.o.
2087 * config/rs6000/rs6000.c: Include cfglayout.h.
2088 * config/alpha/alpha.c: Likewise.
2089 * config/ia64/ia64.c: Likewise.
2090 * config/sparc/sparc.c: Likewise.
2091 * config/sh/sh.c: Likewise.
2092
2093 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
2094
2095 * opts.sh: Quote '+' in regex.
2096
2097 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
2098
2099 * c-opts.c (lang_flags): Update for new spelling of flags.
2100 (write_langs): Similarly.
2101 * c.opt: Specify languages.
2102 * opts.h: Remove languages.
2103 * opts.sh: Recognise front-end defined languages.
2104 * doc/sourcebuild.texi: Update.
2105
2106 2003-06-15 Andreas Jaeger <aj@suse.de>
2107
2108 * alloc-pool.c: Convert to ISO C90 prototypes.
2109 * alloc-pool.h: Likewise.
2110 * alias.c: Likewise.
2111 * attribs.c: Likewise.
2112 * bb-reorder.c: Likewise.
2113 * bitmap.h: Likewise.
2114 * bitmap.c: Likewise.
2115 * builtins.c: Likewise.
2116
2117 * tree.h: Convert prototypes of attribs.c to ISO C90.
2118 * basic-block.h: Convert prototypes of bb-reorder.c to ISO C90.
2119 * rtl.h: Convert prototypes of alias.c and builtins.c to ISO C90.
2120 * expr.h: Convert prototypes of builtins.c to ISO C90.
2121
2122 2003-06-15 Roger Sayle <roger@eyesopen.com>
2123
2124 * config/i386/i386.md (expsf2, expdf2, expxf2): New patterns to
2125 implement exp, expf and expl built-ins as inline x87 intrinsics.
2126 (UNSPEC_FSCALE, UNSPEC_FRNDINT, UNSPEC_F2XM1): New unspecs to
2127 represent x87's fscale, frndint and f2xm1 insns respectively.
2128 (*fscale_sfxf3, *fscale_dfxf3, *fscale_xf3): New insn patterns
2129 to encode x87's "fscale" instruction followed by a pop.
2130 (*frndintxf2): New insn pattern for "frndint".
2131 (*f2xm1xf2): New insn pattern for "f2xm1".
2132
2133 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FRNDINT and
2134 UNSPEC_F2XM1 like UNSPEC_{SIN,COS} and handle UNSPEC_FSCALE like
2135 UNSPEC_FPATAN.
2136
2137 2003-06-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2138
2139 * gencheck.c (main): Avoid generating duplicate macros.
2140
2141 * Makefile.in (stagefeedback-start): Use $(SUBDIRS) instead of
2142 knowing names of language subdirectories.
2143
2144 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
2145
2146 * c-pch.c (asm_file_name): Remove.
2147 * common.opt: Add more switches.
2148 * flags.h (g_switch_set): Boolify.
2149 * opts.c (g_switch_value, g_switch_set, exit_after_options,
2150 version_flag): Move from toplev.c.
2151 (common_handle_option): Handle more switches from toplev.c.
2152 * toplev.c (display_help, display_target_options, decode_d_option,
2153 print_version): Make non-static, remove prototypes.
2154 (aux_base_name, asm_file_name, aux_info_file_name): Constify.
2155 (version_flag, g_switch_value, g_switch_set, exit_after_options):
2156 Remove.
2157 (independent_decode_option): Move some handlers to opts.c.
2158 * toplev.h (aux_info_file_name, aux_base_name, asm_file_name,
2159 exit_after_options, version_flag, display_help, display_target_options,
2160 print_version, decode_d_option): New.
2161
2162 2003-06-15 Kazu Hirata <kazu@cs.umass.edu>
2163
2164 * config/alpha/alpha.md: Follow spelling conventions.
2165 * config/arm/arm.c: Likewise.
2166 * config/arm/arm.h: Likewise.
2167 * config/arm/arm.md: Likewise.
2168 * config/arm/crtn.asm: Likewise.
2169 * config/m32r/m32r.c: Likewise.
2170 * config/m32r/m32r.md: Likewise.
2171 * config/rs6000/rs6000.c: Likewise.
2172
2173 2003-06-15 Richard Henderson <rth@redhat.com>
2174
2175 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
2176 insn_locators_initialize.
2177 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
2178 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
2179 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
2180 * config/sh/sh.c (sh_output_mi_thunk): Do it later.
2181
2182 2003-06-15 Kazu Hirata <kazu@cs.umass.edu>
2183
2184 * builtins.c (expand_builtin_expect_jump): Remove redundant
2185 tests that are also in any_condjump_p().
2186
2187 2003-06-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2188
2189 * libgcc2.c: Delete sysV68 L_trampoline section.
2190 * config/m68k/mot3300-crt0.S: Delete file.
2191 * config/m68k/mot3300Mcrt0.S: Likewise.
2192
2193 2003-06-15 Nathanael Nerode <neroden@gcc.gnu.org>
2194
2195 * config/aoutos.h: Remove.
2196 * config.gcc: Remove reference to aoutos.h.
2197 * config/m68k/m68k-aout.h: Remove reference to aoutos.h.
2198
2199 2003-06-14 Kazu Hirata <kazu@cs.umass.edu>
2200
2201 * doc/install.texi: Follow spelling conventions.
2202 * doc/tm.texi: Likewise.
2203 * config/fp-bit.c: Likewise.
2204 * config/arm/arm.c: Likewise.
2205 * config/frv/frv.c: Likewise.
2206 * config/ns32k/NOTES: Likewise.
2207 * config/ns32k/STATUS: Likewise.
2208
2209 2003-06-14 Roger Sayle <roger@eyesopen.com>
2210 Zack Weinberg <zack@codesourcery.com>
2211
2212 * rtl.h (STORE_FLAG_VALUE): Remove default definition from here.
2213 * defaults.h (STORE_FLAG_VALUE): Move default definition to here.
2214 * doc/tm.texi (STORE_FLAG_VALUE): Document the default value.
2215
2216 * config/alpha/alpha.h (STORE_FLAG_VALUE): Remove definition.
2217 * config/arc/arc.h (STORE_FLAG_VALUE): Likewise.
2218 * config/arm/arm.h (STORE_FLAG_VALUE): Likewise.
2219 * config/cris/cris.h (STORE_FLAG_VALUE): Likewise.
2220 * config/i370/i370.h (STORE_FLAG_VALUE): Likewise.
2221 * config/i386/i386.h (STORE_FLAG_VALUE): Likewise.
2222 * config/i960/i960.h (STORE_FLAG_VALUE): Likewise.
2223 * config/ia64/ia64.h (STORE_FLAG_VALUE): Likewise.
2224 * config/ip2k/ip2k.h (STORE_FLAG_VALUE): Likewise.
2225 * config/m32r/m32r.h (STORE_FLAG_VALUE): Likewise.
2226 * config/mcore/mcore.h (STORE_FLAG_VALUE): Likewise.
2227 * config/mips/mips.h (STORE_FLAG_VALUE): Likewise.
2228 * config/mmix/mmix.h (STORE_FLAG_VALUE): Likewise.
2229 * config/ns32k/ns32k.h (STORE_FLAG_VALUE): Likewise.
2230 * config/pa/pa.h (STORE_FLAG_VALUE): Likewise.
2231 * config/pdp11/pdp11.h (STORE_FLAG_VALUE): Likewise.
2232 * config/sh/sh.h (STORE_FLAG_VALUE): Likewise.
2233 * config/sparc/sparc.h (STORE_FLAG_VALUE): Likewise.
2234 * config/v850/v850.h (STORE_FLAG_VALUE): Likewise.
2235 * config/xtensa/xtensa.h (STORE_FLAG_VALUE): Likewise.
2236
2237 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
2238
2239 * opts.sh (POSIXLY_CORRECT): Unset it.
2240
2241 * tree.h (init_function_start): Remove filename and line paramters.
2242 * function.c (init_function_start): Remove filename and line
2243 parameters. Use DECL_SOURCE_LOCATION.
2244 * c-decl.c (store_parm_decls): Adjust init_function_start call.
2245 (c_expand_body_1): Likewise.
2246 * coverage.c (create_coverage): Likewise.
2247 * objc/objc-act.c (build_tmp_function_decl): Set line number to
2248 zero.
2249 (hack_method_prototype): Adjust init_function_start call.
2250
2251 2003-06-14 Richard Earnshaw <rearnsha@arm.com>
2252
2253 PR target/3724
2254 * arm/linux-elf.h (PROFILE_HOOK): Define.
2255
2256 2003-06-14 Richard Earnshaw <rearnsha@arm.com>
2257
2258 PR target/11183
2259 * arm.h (CANNOT_CHANGE_MODE_CLASS): Define.
2260
2261 2003-06-14 Roger Sayle <roger@eyesopen.com>
2262
2263 * opts.sh: Work around a mysterious feature in cygwin's gawk
2264 where specifying the input files explicitly has a different
2265 behavior to piping them via stdin.
2266
2267 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
2268
2269 * doc/sourcebuild.texi: Update.
2270
2271 2003-06-14 Richard Earnshaw <rearnsha@arm.com>
2272
2273 PR target/11183
2274 * arm.c (output_move_double): Pass SImode to adjust_address.
2275
2276 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
2277
2278 * Makefile.in: Update to use common.opt and lang_opt_files.
2279 (c-options.c, c-options.h): Remove.
2280 (options.c, options.h): Add.
2281 * c-opts.c: Include options.h not c-options.h.
2282 * common.opt: New file.
2283 * configure, configure.in: Add lang_opt_files.
2284 * opts.c: Include flags.h and diagnostic.h.
2285 (common_handle_option): New.
2286 (handle_option): Update to recognize common options and all
2287 language-dependent options.
2288 * opts.h (CL_F77, CL_JAVA, CL_ADA, CL_COMMON, CL_TREELANG): New.
2289 (struct cl_option): Make flags of type int.
2290 * opts.h: Flag option with front ends to which it applies.
2291 Handle duplicate options.
2292 * toplev.c (filename): Remove.
2293 (independent_decode_option): Don't handle filenames and -quiet.
2294 (process_options, do_compile): Update.
2295
2296 2003-06-14 Nick Clifton <nickc@redhat.com>
2297
2298 * doc/install.texi (Specific): Add description of different
2299 ARM supported file format targets.
2300
2301 Sat Jun 14 11:12:04 CEST 2003 Jan Hubicka <jh@suse.cz>
2302
2303 * reorg.c (emit_delay_sequence, dbr_schedule): Clear insn locators
2304 inside delay slots.
2305
2306 2003-06-13 Matt Kraai <kraai@alumni.cmu.edu>
2307
2308 * unwind-c.c: Define NO_SIZE_OF_ENCODED_VALUE.
2309 * unwind-pe.h (size_of_encoded_value): Do not define if
2310 NO_SIZE_OF_ENCODED_VALUE is defined.
2311
2312 2003-06-13 Roger Sayle <roger@eyesopen.com>
2313
2314 * expr.c (expand_expr <COMPLEX_CST>): Handle the case of
2315 expanding a complex constant into a CONCAT target.
2316
2317 2003-06-13 Zack Weinberg <zack@codesourcery.com>
2318
2319 * config/svr3.h (ASM_FILE_START): Don't use ASM_FILE_START_1.
2320 (ASM_FILE_START_1): Delete.
2321 * config/i386/att.h, config/i386/sco5.h,
2322 config/i386/sysv3.h
2323 (ASM_FILE_START_1): Delete.
2324
2325 2003-06-13 Kelley Cook <kelleycook@wideopenwest.com>
2326
2327 * config/i386/bsd.h: Remove ASM_FILE_START.
2328 * config/i386/djgpp.h: Likewise.
2329 * config/i386/gas.h (ASM_FILE_START): Output .file before .intel_syntax.
2330
2331 * config/i386/djgpp.h: Move included unix.h, bsd.h, gas.h to ...
2332 * config.gcc (i[34567]86-pc-msdosdjgpp): ... here.
2333
2334 2003-06-13 Vladimir Makarov <vmakarov@redhat.com>
2335
2336 PR bootstrap/10835
2337 * haifa-sched.c (max_lookahead_tries,
2338 cached_first_cycle_multipass_dfa_lookahead,
2339 cached_issue_rate): New variables.
2340 (max_issue): Check the number of tries.
2341 (choose_ready): Calculate max_lookahead_tries.
2342 (sched_init): Check cached_issue_rate.
2343
2344 2003-06-13 Richard Henderson <rth@redhat.com>
2345
2346 * cfgbuild.c (make_edges): Set ABNORMAL with SIBCALL.
2347 * cfgrtl.c (purge_dead_edges): Expect it too.
2348
2349 2003-06-13 Jim Wilson <wilson@tuliptree.org>
2350 Eric Botcazou <ebotcazou@libertysurf.fr>
2351
2352 PR bootstrap/10983
2353 * combine.c (make_extraction): Use gen_lowpart_for_combine
2354 when extracting from a REG and not in the destination of a SET.
2355
2356 2003-06-13 Doug Evans <dje@sebabeach.org>
2357
2358 * tsystem.h (abort): Declare in inhibit_libc case to remove build
2359 warnings for addvsi3, et.al.
2360
2361 2003-06-13 Aldy Hernandez <aldyh@redhat.com>
2362
2363 * c-common.c (handle_mode_attribute): Use VECTOR_MODE_P macro.
2364
2365 * simplify-rtx.c (simplify_subreg): Same.
2366
2367 * emit-rtl.c (gen_lowpart_common): Same.
2368
2369 2003-06-13 Kazu Hirata <kazu@cs.umass.edu>
2370
2371 * builtins.c: Fix comment typos.
2372 * fold-const.c: Likewise.
2373
2374 2003-06-13 Doug Evans <dje@sebabeach.org>
2375 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
2376
2377 * config/m32r/m32r-protos.h (m32r_pass_by_reference): Declare.
2378 * config/m32r/m32r.c (m32r_pass_by_reference): New fn.
2379 (m32r_va_arg): Use it.
2380 * config/m32r/m32r.h (FUNCTION_ARG_PASS_BY_REFERENCE): Ditto.
2381 (RETURN_IN_MEMORY): Ditto.
2382
2383 2003-06-13 Nathanael Nerode <neroden@gcc.gnu.org>
2384
2385 * c-typeck.c: Remove #if 0 clauses.
2386
2387 PR other/1494
2388 * config/alpha/openbsd.h, config/i386/openbsd.h,
2389 config/m68k/openbsd.h, config/sparc/openbsd.h: Remove
2390 residual reference to EGCS.
2391
2392 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
2393
2394 * arm.c (output_call_mem): If the address references the link-register
2395 use an instruction sequence that avoids early-clobbering IP.
2396 (eliminate_lr2ip): Delete.
2397
2398 2003-06-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2399
2400 * c-format.c (format_types_orig): Disallow '*' width/precision in
2401 asm_fprintf format checks.
2402
2403 2003-06-13 Ulrich Weigand <uweigand@de.ibm.com>
2404
2405 * config/s390/s390.c (s390_va_arg): Fix alignment when retrieving
2406 non-integral types from integer register save area slots.
2407
2408 2003-06-13 Nathanael Nerode <neroden@gcc.gnu.org>
2409
2410 * config/i386/svr3dbx.h: GNU CC -> GCC; Intel 385 -> Intel 386.
2411
2412 2003-06-13 Florian Weimer <fw@deneb.enyo.de>
2413
2414 * doc/invoke.texi (SPARC Options): Document ``-mimpure-text''.
2415
2416 2003-06-13 Kaz Kojima <kkojima@gcc.gnu.org>
2417
2418 * config/sh/linux.h (TARGET_ASM_FILE_END): Set TARGET_ASM_FILE_END
2419 to file_end_indicate_exec_stack.
2420
2421 2003-06-12 Richard Henderson <rth@redhat.com>
2422
2423 PR target/11089
2424 * config/i386/i386.md (sse_movaps): Use an expander to force
2425 one operand to be a register.
2426 (sse_movups): Likewise.
2427
2428 2003-06-13 Doug Evans <dje@sebabeach.org>
2429
2430 Remove some build warnings.
2431 * config/m32r/initfini.c (__CTOR_LIST__,__DTOR_LIST__): Attribute used.
2432 (__do_global_ctors,__do_global_dtors): Ditto.
2433
2434 2003-06-12 Richard Henderson <rth@redhat.com>
2435
2436 PR middle-end/10557
2437 * rtlanal.c (subreg_offset_representable_p): Relax subreg check.
2438
2439 2003-06-13 Kazu Hirata <kazu@cs.umass.edu>
2440
2441 * config/m32r/m32r.md: Fix a comment typo.
2442
2443 2003-06-13 Eric Botcazou <ebotcazou@libertysurf.fr>
2444 Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
2445
2446 PR target/10142
2447 * config/sparc/sparc.c (function_arg_record_value_parms): Add
2448 new 'stack' field.
2449 (function_arg_record_value_1): Set 'stack' to 1 if we run out of
2450 integer slots for an integer field.
2451 (function_arg_record_value_3): Shift vector index.
2452 (function_arg_record_value_2): Likewise.
2453 (function_arg_record_value): Initialize 'stack' to 0.
2454 Set 'stack' to 1 if we run out of integer slots for an integer field.
2455 Generate (parallel [(expr_list (nil) ...) ...]) if 'stack' is set to 1.
2456
2457 2003-06-13 Eric Botcazou <ebotcazou@libertysurf.fr>
2458
2459 PR optimization/10955
2460 * unroll.c (unroll_loop): Fix off-by-one bug.
2461
2462 2003-06-12 Aldy Hernandez <aldyh@redhat.com>
2463
2464 * config/rs6000/rs6000.c (function_arg): Remove typo.
2465
2466 2003-06-12 Richard Henderson <rth@redhat.com>
2467
2468 * config/i386/i386.c (legitimate_constant_p): Handle UNSPEC_NTPOFF
2469 and UNSPEC_DTPOFF.
2470
2471 2003-06-12 Richard Henderson <rth@redhat.com>
2472
2473 PR middle-end/10475
2474 * expmed.c (emit_store_flag): Use simplify_gen_subreg directly
2475 for extracting sub-words.
2476
2477 2003-06-12 Richard Henderson <rth@redhat.com>
2478
2479 PR target/7594
2480 * config/m68k/m68k.md (zero_extendhisi2): Use gen_lowpart_SUBREG.
2481 (zero_extendqihi2, zero_extendqisi2): Likewise.
2482
2483 2003-06-12 Aldy Hernandez <aldyh@redhat.com>
2484
2485 * config/rs6000/rs6000.c (function_arg): Always split vectors for
2486 e500 if it's a stdarg function.
2487 (function_arg_advance): Advance 2 registers for vectors in a
2488 stdarg function.
2489 (init_cumulative_args): Initialize stdarg.
2490 (rs6000_spe_function_arg): New.
2491
2492 * config/rs6000/rs6000.h (rs6000_args): Add stdarg.
2493
2494 2003-06-12 Aldy Hernandez <aldyh@redhat.com>
2495
2496 * config/rs6000/rs6000.h (MODES_TIEABLE_P): Add SPE vectors.
2497
2498 2003-06-12 Roger Sayle <roger@eyesopen.com>
2499
2500 PR middle-end/168
2501 * fold-const.c (tree_expr_nonnegative_p): Handle addition
2502 and multiplication of zero extensions, floating point division,
2503 and integer<->fp, fp<->fp and zero extension conversions.
2504 The built-in ceil and floor functions preserve signedness.
2505
2506 2003-06-12 Kazu Hirata <kazu@cs.umass.edu>
2507
2508 * ChangeLog: Follow spelling conventions.
2509 * ChangeLog.2: Likewise.
2510 * c-decl.c: Likewise.
2511 * cfgloop.h: Likewise.
2512 * cgraph.c: Likewise.
2513 * coverage.c: Likewise.
2514 * cppcharset.c: Likewise.
2515 * cpphash.h: Likewise.
2516 * cpplex.c: Likewise.
2517 * cpplib.c: Likewise.
2518 * dbxout.c: Likewise.
2519 * df.c: Likewise.
2520 * dwarf2out.c: Likewise.
2521 * dwarfout.c: Likewise.
2522 * emit-rtl.c: Likewise.
2523 * explow.c: Likewise.
2524 * gcov-io.c: Likewise.
2525 * gcov-io.h: Likewise.
2526 * gcov.c: Likewise.
2527 * gengtype.c: Likewise.
2528 * ggc.h: Likewise.
2529 * opts.c: Likewise.
2530 * real.c: Likewise.
2531 * reload.c: Likewise.
2532 * stmt.c: Likewise.
2533
2534 2003-06-12 Janis Johnson <janis187@us.ibm.com>
2535
2536 * doc/install.texi (m32r-*-elf): Change company to Renesas.
2537
2538 Thu Jun 12 20:00:55 CEST 2003 Jan Hubicka <jh@suse.cz>
2539
2540 * basic-block.h (flow_delete_block_noexpunge): Kill.
2541 * cfgrtl.c (flow_delete_block_noexpunge): Merge to
2542 rtl_delete_block.
2543
2544 2003-06-10 Richard Henderson <rth@redhat.com>
2545
2546 PR inline-asm/4823
2547 * reg-stack.c (any_malformed_asm): New.
2548 (check_asm_stack_operands): Set it.
2549 (convert_regs_1): Check it before aborting.
2550
2551 2003-06-12 Aldy Hernandez <aldyh@redhat.com>
2552
2553 * config/rs6000/spe.md: Change all clobbers of the accumulator to sets.
2554
2555 2003-06-12 Jakub Jelinek <jakub@redhat.com>
2556
2557 * c-opts.c (complain_wrong_lang): Add on argument.
2558 Print no- switch if on is false.
2559 (c_common_decode_option): Adjust caller.
2560
2561 2003-06-12 Ulrich Weigand <uweigand@de.ibm.com>
2562
2563 * config/s390/s390.c (s390_emit_prologue): Use LA instead of AR
2564 to initialize GOT register.
2565
2566 2003-06-12 Roger Sayle <roger@eyesopen.com>
2567
2568 * fold-const.c (tree_expr_nonnegative_p): Add support for
2569 floating point constants, addition and multiplication.
2570
2571 2003-06-12 J"orn Rennecke <joern.rennecke@superh.com>
2572
2573 * sh.md (adddi3_compact, subdi3_compact): Add earlyclobber
2574 constraint modifier for operand 0.
2575
2576 2003-06-12 Hans-Peter Nilsson <hp@axis.com>
2577
2578 Don't warn on dollars in builtin macro definitions,
2579 e.g. __REGISTER_PREFIX__.
2580 * cpphash.h (struct cpp_reader): Move member warn_dollars...
2581 * cpplib.h (struct cpp_options): ...to here. Change type to
2582 unsigned char.
2583 * cppinit.c (cpp_create_reader): Set it to 1 here.
2584 (post_options): Don't set it here.
2585 * c-opts.c (c_common_init_options): Reset it to 0 here.
2586 (finish_options): Set it here.
2587 * cpplex.c (forms_identifier_p): Tweak for new location of
2588 warn_dollars.
2589
2590 * configure.in (assembler dwarf2 debug_line support): Define insn
2591 for cris-*-* and mmix-*-*.
2592 * configure: Regenerate.
2593
2594 2003-06-11 Uwe Stieber <uwe@kaos-group.de>
2595
2596 * config.gcc (arm*-*-kaos*, i[34567]86-*-kaos*, powerpc-*-kaos*,
2597 powerpcle-*-kaos*, strongarm-*-kaos*): New targets.
2598 (sh-*-elf*): Add sh*-*-kaos* support.
2599 * config/kaos.h, config/arm/kaos-strongarm.h, config/arm/kaos-arm.h,
2600 config/i386/kaos-i386.h, config/rs6000/kaos-ppc.h,
2601 config/sh/kaos-sh.h: New files.
2602
2603 2003-06-12 Kazu Hirata <kazu@cs.umass.edu>
2604
2605 * gcse.c (fis_get_condition): Make it a global function.
2606 * reload1.c (reload_cse_move2add): Detect implicit sets.
2607 * rtl.h: Add a prototype for fis_get_condition.
2608
2609 2003-06-11 Richard Henderson <rth@redhat.com>
2610
2611 * stmt.c (expand_asm_operands): Don't warn for memories with
2612 queued addresses.
2613
2614 2003-06-11 Kaz Kojima <kkojima@gcc.gnu.org>
2615
2616 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC): Rewrite without
2617 brackets.
2618
2619 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
2620
2621 * hooks.c (hook_int_size_t_constcharptr_int_0): New.
2622 * hooks.h (hook_int_size_t_constcharptr_int_0): New.
2623 * langhooks-def.h (lhd_decode_option, LANG_HOOKS_DECODE_OPTION): Die.
2624 (LANG_HOOKS_HANDLE_OPTION, LANG_HOOKS_INITIALIZER): Update.
2625 * langhooks.c (lhd_decode_option): Remove.
2626 * langhooks.h (struct lang_hooks): Remove decode_option.
2627 * opts.c (handle_option): No longer use decode_option.
2628
2629 2003-06-11 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2630
2631 * cfgloopanal.c (variable_initial_value): Update the set of altered
2632 registers correctly.
2633
2634 2003-06-11 Roger Sayle <roger@eyesopen.com>
2635 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2636
2637 * config/d30v/d30v.h: Delete reference to ASM_FINAL_SPEC.
2638 * config/i386/netbsd-elf.h: Likewise.
2639 * config/m32r/m32r.h: Likewise.
2640 * config/mn10300/mn10300.h: Likewise.
2641 * config/stormy16/stormy16.h: Likewise.
2642 * config/v850/v850.h: Likewise.
2643 * config/vax/netbsd-elf.h: Likewise.
2644 * config/xtensa/elf.h: Likewise.
2645 * config/xtensa/linux.h: Likewise.
2646
2647 2003-06-11 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2648
2649 * config/mips/iris5gas.h (MDEBUG_ASM_SPEC): Override to match
2650 DWARF 2 default.
2651
2652 * config/mips/dbxmdebug.h: New file.
2653 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it with
2654 gas and --with-stabs.
2655
2656 2003-06-11 Ulrich Weigand <uweigand@de.ibm.com>
2657
2658 * expr.c (can_move_by_pieces): align argument may be unused.
2659
2660 2003-06-11 J"orn Rennecke <joern.rennecke@superh.com>
2661
2662 * expr.c (convert_move): Handle moves between two CONCATs.
2663
2664 2003-06-11 Kazu Hirata <kazu@cs.umass.edu>
2665
2666 * config/h8300/h8300.h (RETURN_IN_MEMORY): Accept DImode if
2667 !TARGET_H8300.
2668
2669 2003-06-11 Kazu Hirata <kazu@cs.umass.edu>
2670
2671 * config/h8300/h8300.c (final_prescan_insn): Don't dump rtl.
2672 * config/h8300/h8300.h (MASK_RTL_DUMP): Remove.
2673 (TARGET_RTL_DUMP): Likewise.
2674 (TARGET_SWITHCES): Remove -mrtl-dump.
2675
2676 2003-06-10 Richard Henderson <rth@redhat.com>
2677
2678 * optabs.c (gen_cond_trap): Fix prepare_operand typo.
2679
2680 2003-06-10 Richard Henderson <rth@redhat.com>
2681
2682 * config/ia64/ia64.md (call_gp): Fix memory mode.
2683
2684 2003-06-10 James E Wilson <wilson@tuliptree.org>
2685
2686 PR target/8812
2687 * reload1.c (choose_reload_regs): For equiv reg, add loop over all
2688 hard regs for reload_reg_used_at_all and reg_class_contents checks.
2689
2690 2003-06-10 Kazu Hirata <kazu@cs.umass.edu>
2691
2692 * config/h8300/h8300.c (print_operand): Remove support for
2693 operand character 'b'.
2694 Add the AND case to operand character 'c'.
2695 * config/h8300/h8300.md (two anonymous patterns): Replace
2696 operand character 'b' with 'c'.
2697
2698 2003-06-10 Kazu Hirata <kazu@cs.umass.edu>
2699
2700 * config/h8300/h8300.c (print_operand): Remove support for
2701 operand character 'u'.
2702
2703 2003-06-10 Nathanael Nerode <neroden@gcc.gnu.org>
2704
2705 * configure.in: Fix typo.
2706 * configure: Regenerate.
2707
2708 2003-06-10 Loren James Rittle <ljrittle@acm.org>
2709
2710 * config/alpha/alpha.c (unicosmk_file_end): Add conditional
2711 compilation guard.
2712
2713 2003-06-10 J"orn Rennecke <joern.rennecke@superh.com>
2714
2715 * sh-protos.h (function_symbol): Declare.
2716 * sh.c (expand_block_move, expand_ashiftrt): Use it.
2717 (sh_expand_prologue, sh_expand_epilogue): Likewise.
2718 (sh_initialize_trampoline): Likewise.
2719 (function_symbol): New function.
2720 * sh.md (udivsi3, divsi3, mulsi3, ic_invalidate_line): Use it.
2721 (initialize_trampoline, call, call_pop, call_value, sibcall): Likewise.
2722 (call_value_pop, shcompact_return_tramp): Likewise.
2723
2724 * sh.h (OVERRIDE_OPTIONS): Don't suppress --profile-arc-flag.
2725
2726 * sh.md (GOTaddr2picreg): Use gen_lowpart to get lowpart of
2727 target register.
2728
2729 2003-06-10 DJ Delorie <dj@redhat.com>
2730
2731 * doc/md.texi (Machine Constraints): Document stormy's Z
2732 constraint.
2733
2734 2003-06-10 Geoffrey Keating <geoffk@apple.com>
2735
2736 * except.c (call_site_base): Mark with GTY.
2737
2738 2003-06-10 Richard Earnshaw <rearnsha@arm.com>
2739
2740 * arm-proto.h: Convert to ISO C90 prototypes.
2741 * arm.c: Likewise.
2742
2743 2003-06-10 J"orn Rennecke <joern.rennecke@superh.com>
2744
2745 * sh.c (sh_output_mi_thunk): Call insn_locators_initialize.
2746
2747 2003-06-10 Steve Ellcey <sje@cup.hp.com>
2748
2749 * calls.c (expand_call): Convert structure_value_addr to Pmode if
2750 necessary.
2751
2752 2003-06-10 Andrew Haley <aph@redhat.com>
2753
2754 * langhooks-def.h (LANG_HOOKS_DECL_OK_FOR_SIBCALL): New.
2755 (LANG_HOOKS_DECLS): Add LANG_HOOKS_DECL_OK_FOR_SIBCALL.
2756 (lhd_decl_ok_for_sibcall): New.
2757 * langhooks.c (lhd_decl_ok_for_sibcall): New.
2758 * langhooks.h (lang_hooks_for_decls.ok_for_sibcall): New field.
2759 * calls.c (expand_call): Check lang_hook before generating a
2760 sibcall.
2761
2762 2003-06-10 DJ Delorie <dj@redhat.com>
2763
2764 * config/stormy16/stormy16.c (xstormy16_extra_constraint_p): Add Z,
2765 which matches (const_int 0) for addhi3.
2766 * config/stormy16/stormy16.md: Document known constraints.
2767 (addhi3): Handle adding zero.
2768
2769 2003-06-10 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
2770
2771 * config/m32r/m32r.h (HARD_REGNO_RENAME_OK): New.
2772 * config/m32r/m32r.c (m32r_hard_regno_rename_ok): New.
2773 * config/m32r/m32r-protos.h: Prototype it.
2774
2775 2003-06-10 Janis Johnson <janis187@us.ibm.com>
2776
2777 * config/rs6000/eabi.h (TARGET_OS_CPP_BUILTINS): Define builtins
2778 common to rs6000 sysv targets.
2779 * config/rs6000/eabisim.h (TARGET_OS_CPP_BUILTINS): Ditto.
2780 * config/rs6000/rtems.h (TARGET_OS_CPP_BUILTINS): Ditto.
2781
2782 2003-06-10 Nick Clifton <nickc@redhat.com>
2783
2784 * config.gcc: Add arm-wince-pe target.
2785 * config/arm/pe.h (MULTILIB_DEFAULTS): Define.
2786 Add comment about default apcs26 support.
2787 * config/arm/t-pe (MULTILIB_OPTIONS): Add an -mapcs-32
2788 multilib.
2789 (MULTILIB_DIRNAMES): Add 'apcs32'.
2790 * config/arm/t-wince-pe: New makefile fragment.
2791 * config/arm/wince-pe.h: New file. Overrides a few definitions
2792 in arm/pe.h
2793
2794 2003-06-10 Roger Sayle <roger@eyesopen.com>
2795
2796 * builtins.c (fold_builtin): Optimize cos(-x) as cos(x).
2797 * fold-const.c (fold <NEGATE_EXPR>): Convert -f(x) into f(-x)
2798 when x is easily negated and f is sin, tan or atan.
2799 (fold <MULT_EXPR>): Optimize tan(x)*cos(x) and cos(x)*tan(x) as
2800 sin(x) with flag_unsafe_math_optimizations.
2801 (fold <RDIV_EXPR>): With flag_unsafe_math_optimizations fold
2802 sin(x)/cos(x) as tan(x) and cos(x)/sin(x) as 1.0/tan(x).
2803
2804 2003-06-10 Roger Sayle <roger@eyesopen.com>
2805
2806 * fold-const.c (fold <EQ_EXPR>): Don't fold x == x only if x
2807 is a floating point type *and* we currently honor NaNs.
2808 (fold <NE_EXPR>): Likewise.
2809
2810 2003-06-10 Mark Mitchell <mark@codesourcery.com>
2811
2812 PR c++/11131
2813 * tree-inline.c (inlinable_function_p): Call the language-specific
2814 hook early.
2815
2816 2003-06-09 David Taylor <dtaylor@emc.com>
2817
2818 * config/rs6000/rs6000.c (rs6000_va_start, rs6000_va_arg): Skip over
2819 the f_res field.
2820
2821 2003-06-09 Nathanael Nerode <neroden@gcc.gnu.org>
2822
2823 * configure.in: Remove references to host_truncate_target.
2824 * configure: Regenerate.
2825 * config.gcc: Remove references to truncate_target,
2826 host_truncate_target.
2827
2828 * Makefile.in, configure.in, config/m68hc11/t-m68hc11-gas:
2829 Replace "build_canonical" with build, "host_canonical" with host.
2830 * configure.in: Use GCC_TOPLEV_SUBDIRS.
2831 * aclocal.m4: Include ../config/acx.m4.
2832 * configure: Regenerate.
2833
2834 2003-06-09 David Taylor <dtaylor@emc.com>
2835
2836 * config/rs6000/rs6000.c (rs6000_build_va_list): Give the two
2837 bytes of padding in the __va_list_tag structure a name (reserved).
2838
2839 2003-06-09 Jason Merrill <jason@redhat.com>
2840
2841 * fold-const.c (operand_equal_p): Handle ADDR_EXPR and TRUTH_NOT_EXPR.
2842
2843 2003-06-09 Osku Salerma <osku@iki.fi>
2844
2845 * c-format.c (check_format_string, get_constant): New.
2846 (handle_format_attribute, handle_format_arg_attribute,
2847 decode_format_attr): Change to use above functions.
2848
2849 2003-06-09 Richard Henderson <rth@redhat.com>
2850
2851 * stmt.c (expand_asm_operands): Re-word warning.
2852
2853 2003-06-08 Andrew Pinski <pinskia@physics.uc.edu>
2854
2855 PR target/8787
2856 * config/i386/djgpp.h (ASM_FILE_START): emit `.intel_syntax'
2857 if -masm=intel.
2858
2859 2003-06-09 James E Wilson <wilson@tuliptree.org>
2860
2861 * config/frv/cmovc.c, config/frv/cmovh.c, config/frv/cmovw.c,
2862 config/frv/frvbegin.c, config/frv/frvend.c, config/frv/lib1funcs.asm:
2863 Add libgcc exception.
2864
2865 2003-06-09 David Edelsohn <edelsohn@gnu.org>
2866 Ayal Zaks <gcchaifa@us.ibm.com>
2867
2868 * config/rs6000/rs6000.md (define_attr "type"): Add insert_word.
2869 (insvsi*): Add insert_word attribute.
2870 * config/rs6000/rs6000.c (rs6000_variable_issue): Add TYPE_INSERT_WORD.
2871 * config/rs6000/{40x.md,603.md,6xx.md,7450.md,7xx.md,mpc.md,
2872 power4.md,rios1.md,rios2.md,rs64.md}: Add insert_word.
2873
2874 2003-06-09 Kazu Hirata <kazu@cs.umass.edu>
2875
2876 * fold-const.c (fold): Fix a comment typo.
2877
2878 2003-06-09 Nathan Sidwell <nathan@codesourcery.com>
2879
2880 * tree-inline.c (expand_call_inline): DECL_SOURCE_LINE_FIRST is
2881 removed.
2882
2883 2003-06-09 J"orn Rennecke <joern.rennecke@superh.com>
2884
2885 * sh.c (gen_block_redirect): Use locators.
2886
2887 2003-06-09 Richard Earnshaw <rearnsha@arm.com>
2888
2889 * arm.h (THUMB_PRINT_OPERAND_ADDRESS): Use %wd in format and remove
2890 cast to int.
2891
2892 2003-06-09 Richard Sandiford <rsandifo@redhat.com>
2893
2894 * configure.in: Assume gas 2.14 and above can handle MIPS relocation
2895 operators.
2896 * configure: Regenerated.
2897
2898 2003-06-09 Richard Sandiford <rsandifo@redhat.com>
2899 Alexandre Oliva <aoliva@redhat.com>
2900
2901 * config/mips/mips.h (GLOBAL_POINTER_REGNUM): New macro.
2902 (PIC_OFFSET_TABLE_REGNUM): Look at pic_offset_table_rtx after reload.
2903 (STARTING_FRAME_OFFSET): Don't allocate a cprestore slot for
2904 n32/64 PIC.
2905 (MUST_SAVE_REGISTERS): Delete.
2906 * config/mips/mips.c (mips_frame_info): Remove extra_size field.
2907 (machine_function): Add global_pointer field.
2908 (mips_classify_constant): Check for (const $gp) using pointer equality
2909 with pic_offset_table_rtx.
2910 (mips_classify_constant): Handle RELOC_LOADGP_HI and RELOC_LOADGP_LO.
2911 (mips_restore_gp): Use current_function_outgoing_args_size.
2912 (print_operand): Use PIC_OFFSET_TABLE_REGNUM instead of
2913 GP_REG_FIRST + 28. Handle relocation strings that have
2914 more than one '('.
2915 (mips_reloc_string): Handle RELOC_LOADGP_HI and RELOC_LOADGP_LO.
2916 (mips_global_pointer): New function.
2917 (mips_save_reg_p): New function, mostly split out from...
2918 (compute_frame_size): ...here. Remove handling of extra_size.
2919 Reclaim args_size if no variables depend on it. Don't treat gp
2920 as a special case: handle it in the main GPR loop.
2921 (mips_initial_elimination_offset): Fix comment.
2922 (save_restore_insns): Save every register in the GPR mask,
2923 removing distinction between mask and real_mask.
2924 (mips_output_function_prologue): Update .frame psuedo-op after
2925 the removal of extra_size. Move the SVR4 PIC stack allocation
2926 and cprestore instructions to mips_expand_prologue.
2927 (mips_gp_insn): New function.
2928 (mips_expand_prologue): Set REGNO (pic_offset_table_rtx) to
2929 the chosen global pointer. Handle SVR4 PIC stack allocation
2930 in the same way as other ABIs. Adjust varargs code accordingly.
2931 Emit a cprestore insn after allocating the stack. Use mips_gp_insn
2932 to emit the loadgp sequence. Follow it with a loadgp_blockage
2933 if not using explicit relocs.
2934 (mips_output_function_epilogue): Reinstate the default gp register.
2935 (mips16_gp_pseudo_reg): Use pic_offset_table_rtx.
2936 (mips16_optimize_gp): Likewise.
2937 * config/mips/mips.md (UNSPEC_LOADGP): Remove.
2938 (UNSPEC_SETJMP, UNSPEC_LONGJMP): Remove.
2939 (UNSPEC_CPRESTORE, RELOC_LOADGP_HI, RELOC_LOADGP_LO): New.
2940 (loadgp): Remove.
2941 (loadgp_blockage, cprestore): New instructions.
2942 (builtin_setjmp_setup): Implement using emit_move_insn. Use
2943 pic_offset_table_rtx.
2944 (builtin_setjmp_setup_32, builtin_setjmp_setup_64): Remove.
2945 (builtin_longjmp): Use gen_raw_REG to force use of $28.
2946
2947 2003-06-09 Richard Sandiford <rsandifo@redhat.com>
2948
2949 * config/mips/mips-protos.h (mips_output_division): Declare.
2950 * config/mips/mips.h (MASK_CHECK_RANGE_DIV): Remove.
2951 (MASK_BRANCHLIKELY): Use MASK_CHECK_RANGE_DIV's old number.
2952 (TARGET_NO_CHECK_ZERO_DIV, TARGET_CHECK_RANGE_DIV): Remove.
2953 (TARGET_CHECK_ZERO_DIV): New macro.
2954 (TARGET_SWITCHES): Remove -mcheck-range-div & -mno-check-range-div.
2955 * config/mips/mips.c (mips_output_division): New function.
2956 * config/mips/mips.md (length): Take TARGET_CHECK_ZERO_DIV into
2957 account when calculating the default length of a division.
2958 (divmodsi4, divmoddi4, udivmodsi4, udivmoddi4): Turn into define_insns.
2959 Enable regardless of optimization level. Use mips_output_division.
2960 (divmodsi4_internal, divmoddi4_internal, udivmodsi4_internal,
2961 udivmoddi4_internal, div_trap, div_trap_normal, div_trap_mips16,
2962 divsi3, divsi3_internal, divdi3, divdi3_internal, modsi3,
2963 modsi3_internal, moddi3, moddi3_internal, udivsi3, udivsi3_internal,
2964 udivdi3, udivdi3_internal, umodsi3, umodsi3_internal, umoddi3,
2965 umoddi3_internal): Remove.
2966
2967 2003-06-09 Richard Sandiford <rsandifo@redhat.com>
2968
2969 * config/mips/mips.c (mips_reg_names): Change hilo entry to "".
2970 (mips_sw_reg_names): Likewise.
2971 (mips_regno_to_class): Change hilo entry to NO_REGS.
2972 (hilo_operand): Use MD_REG_P.
2973 (extend_operator): New predicate.
2974 (override_options): Remove 'a' constraint.
2975 (mips_secondary_reload_class): Remove hilo handling. Also remove
2976 handling of (plus sp reg) reloads for mips16.
2977 (mips_register_move_cost): Remove hilo handling.
2978 * config/mips/mips.h (FIXED_REGISTERS): Make hilo entry fixed.
2979 (MD_REG_LAST): Remove hilo from range.
2980 (HILO_REGNUM): Delete.
2981 (reg_class): Remove HILO_REG and HILO_AND_GR_REGS.
2982 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
2983 (PREDICATE_CODES): Add entry for extend_operator.
2984 (DEBUG_REGISTER_NAMES): Change hilo entry to "".
2985 * config/mips/mips.md: Remove hilo clobbers wherever they occur.
2986 Remove constraints from multiplication define_expands. Remove
2987 clobbers from "decorative" define_expand patterns.
2988 (UNSPEC_HILO_DELAY): Delete.
2989 (*mul_acc_si, *mul_sub_si): Add early-clobber to operand 6.
2990 (mulsidi3, umulsidi3): Change pattern to match the TARGET_64BIT case.
2991 Adjust C code to just emit insns for !TARGET_64BIT.
2992 (mulsidi3_internal): Rename to mulsidi3_32bit.
2993 (mulsidi3_64bit): Use a "d" constraint for the destination.
2994 Use extend_operator so that the pattern can handle umulsidi3 as well.
2995 Split the instruction after reload.
2996 (*mulsidi3_64bit_parts): New pattern, generated by mulsidi3_64bit.
2997 (umulsidi3_internal): Rename to umulsidi3_32bit.
2998 (umulsidi3_64bit): Remove.
2999 (*smsac_di, *umsac_di): Line-wrap fixes.
3000 (udivsi3_internal): Don't allow operand 2 to be constant.
3001 (udivdi3_internal, umodsi3_internal, umoddi3_internal): Likewise.
3002 (movdi_internal2, movsi_internal): Remove hilo alternatives.
3003 (reload_in[sd]i, reload_out[sd]i, hilo_delay): Remove.
3004
3005 2003-06-09 Richard Sandiford <rsandifo@redhat.com>
3006
3007 PR target/10913
3008 * config/mips/mips.h (TARGET_FILE_SWITCHING, NO_DBX_FUNCTION_END,
3009 PUT_SDB_SCL, PUT_SDB_INT_VAL, PUT_SDB_VAL, PUT_SDB_ENDEF,
3010 PUT_SDB_TYPE, PUT_SDB_SIZE, PUT_SDB_DIM, PUT_SDB_START_DIM,
3011 PUT_SDB_NEXT_DIM, PUT_SDB_LAST_DIM, PUT_SDB_TAG, PUT_SDB_SRC_FILE,
3012 SDB_GENERATE_FAKE, TEXT_SECTION): Delete.
3013 (PUT_SDB_DEF, PUT_SDB_PLAIN_DEF, PUT_SDB_BLOCK_START,
3014 PUT_SDB_BLOCK_END, PUT_SDB_FUNCTION_END): Replace use of
3015 asm_out_text_file with asm_out_file.
3016 * config/mips/iris5gas.h (PUT_SDB_SIZE, PUT_SDB_TYPE): Likewise.
3017 * config/mips/elf.h (TEXT_SECTION): Undefine.
3018 * config/mips/elf64.h (TEXT_SECION): Undefine.
3019 * config/mips/openbsd.h (TEXT_SECION): Undefine.
3020 * config/mips/mips.c (asm_out_text_file, asm_out_data_file): Delete.
3021 (override_options): Disable small-data optimizations unless using
3022 gas or explicit relocations.
3023 (mips_asm_file_start, mips_asm_file_end, mips_output_function_epilogue,
3024 iris6_asm_named_section, iris6_asm_file_start): Remove code for
3025 handling TARGET_FILE_SWITCHING.
3026 (copy_file_data): Move into TARGET_IRIX6 block.
3027
3028 2003-06-08 Richard Henderson <rth@redhat.com>
3029
3030 * expr.h (EXPAND_MEMORY): New.
3031 * expr.c (expand_expr): Check it.
3032 * stmt.c (expand_asm_operands): Provide it when the constraint
3033 requires a memory. Warn for memory input constraints without
3034 a memory operand.
3035
3036 2003-06-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3037
3038 * varasm.c: Don't include c-tree.h.
3039
3040 2003-06-08 Andreas Jaeger <aj@suse.de>
3041
3042 * predict.h: Convert to ISO C90 prototypes.
3043 * predict.c: Likewise.
3044 * tree-dump.h: Likewise.
3045 * tree-dump.c: Likewise.
3046 * diagnostic.h: Likewise.
3047 * diagnostic.c: Likewise.
3048 * combine.c: Likewise.
3049
3050 * rtl.h: Convert prototypes of combine.c to ISO C90.
3051
3052 Sun Jun 8 21:27:41 CEST 2003 Jan Hubicka <jh@suse.cz>
3053
3054 * cfglayout.c (insn_scope): New static function
3055 (block_locators_*, line_locators*, file_locators*): New static varrays.
3056 (scope_to_insns_initialize): Use them.
3057 (insn_line, insn_file): New functions.
3058 (scope_to_insns_finalize): Use insn_scope.
3059 (prologue_locator, epilogue_locator): New global variables.
3060 * emit-rt.c (try_split, make_insn_raw, make_jump_insn_raw,
3061 make_call_insn_raw, emit_copy_of_insn_after): Use locators.
3062 (emit_insn_after_scope, emit_insn_before_scope
3063 emit_jump_insn_after_scope, emit_jump_insn_before_scope
3064 emit_call_insn_after_scope, emit_call_insn_before_scope): Rename to...
3065 (emit_insn_after_setloc, emit_insn_before_setloc
3066 emit_jump_insn_after_setloc, emit_jump_insn_before_setloc
3067 emit_call_insn_after_setloc, emit_call_insn_before_setloc): ... these;
3068 use locators.
3069 * final.c (notice_source_line): Use locators.
3070 (final_start_function): Set initial source file and line.
3071 (final_scan_insn): Use locators.
3072 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
3073 noce_try_addcc, noce_try_store_flag_mask, noce_try_cmove,
3074 noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
3075 noce_process_if_block, find_cond_trap): Likewise.
3076 * integrate.c (copy_insn_list): Likewise.
3077 * jump.c (duplicate_loop_exit_test): LIkewise.
3078 * print-rtl.c (print_rtx): Print locators.
3079 * recog.c (peephole2_optimize): Likewise.
3080 * rtl.h (INSN_SCOPE): Remove.
3081 (emit_insn_after_scope, emit_insn_before_scope
3082 emit_jump_insn_after_scope, emit_jump_insn_before_scope
3083 emit_call_insn_after_scope, emit_call_insn_before_scope): Rename to...
3084 (emit_insn_after_setloc, emit_insn_before_setloc
3085 emit_jump_insn_after_setloc, emit_jump_insn_before_setloc
3086 emit_call_insn_after_setloc, emit_call_insn_before_setloc): ... these;
3087 (insn_file, insn_line, prologue_locator, epilogue_locator): Declare.
3088 * unroll.c (copy_loop_body): Use locators.
3089 * function.c (set_insn_locators): New function.
3090 (thread_prologue_and_epilogue_insns): Set the locators accordingly.
3091
3092 2003-06-08 Kazu Hirata <kazu@cs.umass.edu>
3093
3094 * config/h8300/h8300.h (LONG_LONG_TYPE_SIZE): Set to 64.
3095 * config/h8300/t-h8300 (LIB1ASMFUNCS): Remove _floatdisf
3096 _fixsfdi _fixunssfdi.
3097 (LIB2FUNCS_EXTRA): Add entries for clzhi2, ctzhi2, parityhi2,
3098 popcounthi2.
3099 (TARGET_LIBGCC2_CFLAGS): Remove -DDI=SI.
3100 * config/h8300/clzhi2.c: New.
3101 * config/h8300/ctzhi2.c: Likewise.
3102 * config/h8300/parityhi2.c: Likewise.
3103 * config/h8300/popcounthi2.c: Likewise.
3104
3105 Sun Jun 8 15:52:17 CEST 2003 Jan Hubicka <jh@suse.cz>
3106
3107 * i386.md (subsi_3_zext, sse2_nandv2di3): Fix predicates.
3108 * i386.c (k8_avoid_jump_misspredicts): Fix debug output.
3109
3110 * cfg.c (verify_flow_info): Move IL independent checks from cfgrtl here.
3111 (dump_bb): New based on old dump_bb in cfgrtl.c
3112 (debug_bb, debug_bb_n): Move the functions from cfgrtl.c here.
3113 * cfghooks.h (cfgh_verify_flow_info): Return status.
3114 * cfglayout.c (cfg_layout_finalize): Verify CFG correctness.
3115 * cfgrtl.c (debug_bb, debug_bb_n): Move to cfg.c
3116 (dump_bb): Remove generic parts.
3117 (rtl_verify_flow_info_1): Break out from rtl_verify_flow_info.
3118 (rtl_verify_flow_info): Only check things dependeing on linearized RTL.
3119
3120 2003-06-08 Neil Booth <neil@daikokuya.co.uk>
3121
3122 * Makefile.in: Rename options.c and options.h to c-options.c and
3123 c-options.h.
3124 (OBJS): Remove options.o.
3125 * c-opts.c: Don'tInclude c-options.h instead of options.h.
3126 * opts.c: Don't include options.h.
3127 (find_opt): Can't use enum opt_code or N_OPTS.
3128 * opts.h (struct cl_option, cl_options, cl_options_count): Move from...
3129 * opts.sh: ... here.
3130
3131 2003-06-07 Eric Botcazou <ebotcazou@libertysurf.fr>
3132 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3133
3134 PR pch/9830
3135 * ggc-common.c (HAVE_MMAP_FILE): Include sys/types.h
3136 if HAVE_MINCORE is defined.
3137 (MAP_FAILED): Define if not defined.
3138 (gt_pch_save): Test against MAP_FAILED.
3139 (gt_pch_restore): If HAVE_MINCORE, use MAP_FIXED to force
3140 the mapping address to the preferred base after checking it
3141 is possible to do so. Test against MAP_FAILED.
3142 * configure.in: Test for the presence of mincore in libc.
3143 * config.in: Regenerate.
3144 * configure: Regenerate.
3145
3146 2003-06-07 Richard Henderson <rth@redhat.com>
3147
3148 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Fix
3149 conditional compilation guard.
3150
3151 2003-06-08 Kazu Hirata <kazu@cs.umass.edu>
3152
3153 * optabs.c (expand_abs): Set result_unsignedp to 1 if
3154 flag_trav is zero.
3155
3156 2003-06-07 Richard Henderson <rth@redhat.com>
3157
3158 * c-cppbuiltin.c (c_cpp_builtins): Define __EXCEPTIONS for C also.
3159
3160 2003-06-07 Richard Henderson <rth@redhat.com>
3161
3162 * basic-block.h (EDGE_SIBCALL): New.
3163 (EDGE_ALL_FLAGS): Update.
3164 * cfg.c (dump_edge_info): Add sibcall name.
3165 * cfgbuild.c (make_edges): Use EDGE_SIBCALL.
3166 * cfgrtl.c (purge_dead_edges): Handle sibcalls.
3167
3168 2003-06-07 Andreas Jaeger <aj@suse.de>
3169
3170 * mklibgcc.in (lib2funcs): Remove _exit.
3171 * libgcc2.c: Remove L_exit.
3172 * gbl-ctors.h: Remove declarations dependend on NEED_ATEXIT.
3173
3174 * system.h: Poison NEED_ATEXIT, ON_EXIT, EXIT_BODY.
3175
3176 * doc/tm.texi (Misc): Remove NEED_ATEXIT, ON_EXIT, EXIT_BODY.
3177
3178 * ggc.h: Convert to ISO C90 prototypes.
3179 * ggc-none.c: Likewise.
3180 * ggc-common.c: Likewise.
3181 * ggc-page.c: Likewise.
3182 * ggc-simple.c: Likewise.
3183
3184 * crtstuff.c: Remove undefined usage of INIT_SECTION_PREAMBLE.
3185
3186 * system.h: Poison INIT_SECTION_PREAMBLE.
3187
3188 2003-06-07 Zack Weinberg <zack@codesourcery.com>
3189
3190 * config.gcc (with_cpu handling): Translate sparc64 in
3191 $machine to --with-cpu=v9.
3192 * config/alpha/alpha.c
3193 (TARGET_ASM_GLOBALIZE_LABEL [TARGET_ABI_UNICOSMK]): Correct definition.
3194 (alpha_setup_incoming_varargs): #ifdef out when TARGET_ABI_UNICOSMK.
3195
3196 * target.h: New hook asm_out.file_end.
3197 * target.h: Update to match. New hook macro TARGET_ASM_FILE_END.
3198 * toplev.c (compile_file): Use targetm.asm_out.file_end.
3199 * system.h: Poison ASM_FILE_END.
3200 * varasm.c (file_end_indicate_exec_stack): New.
3201 * output.h: Prototype it.
3202 * doc/tm.texi: Document TARGET_ASM_FILE_END and
3203 file_end_indicate_exec_stack. Delete references to attasm.h.
3204
3205 * config/darwin.h (TARGET_ASM_FILE_END): Reset to darwin_file_end.
3206 (ASM_FILE_END): Delete; move code...
3207 * config/darwin.c (darwin_file_end): Here; new function.
3208 * config/darwin-protos.h: Prototype it.
3209 * config/alpha/alpha.c (unicosmk_asm_file_end): Make static,
3210 rename unicosmk_file_end.
3211 * config/arm/aof.h (ASM_FILE_END): Delete; move code...
3212 * config/arm/arm.c (aof_file_end): ... here; new static function.
3213 Set TARGET_ASM_FILE_END to aof_file_end if AOF_ASSEMBLER.
3214 Make aof_dump_imports and aof_dump_pic_table static.
3215 * config/avr/avr.c (asm_file_end): Rename avr_file_end, make static.
3216 Set TARGET_ASM_FILE_END to avr_file_end.
3217 * config/c4x/c4x.c (c4x_file_end): Make static. Take no arguments.
3218 Set TARGET_ASM_FILE_END to c4x_file_end.
3219 * config/h8300/h8300.c (asm_file_end): Rename h8300_file_end,
3220 make static. Take no arguments. Set TARGET_ASM_FILE_END to
3221 h8300_file_end.
3222 * config/i370/i370.h (ASM_FILE_END): Delete; move code...
3223 * config/i370/i370.c (i370_file_end): ... here; new static function.
3224 Set TARGET_ASM_FILE_END to i370_file_end.
3225 * config/i386/i386.c (ix86_asm_file_end): Rename ix86_file_end.
3226 Take no arguments. Call file_end_indicate_exec_stack if
3227 NEED_INDICATE_EXEC_STACK; don't use SUBTARGET_FILE_END.
3228 * config/i386/i386.h: Set TARGET_ASM_FILE_END, not ASM_FILE_END.
3229 Define NEED_INDICATE_EXEC_STACK to 0.
3230 * config/i386/linux.h, config/i386/linux64.h: Redefine
3231 NEED_INDICATE_EXEC_STACK to 1 instead of setting SUBTARGET_FILE_END.
3232 * config/i386/winnt.c (i386_pe_asm_file_end): Rename to
3233 i386_pe_file_end. Take no arguments. Use ix86_file_end.
3234 * config/ia64/ia64.c (ia64_hpux_asm_file_end): Rename to
3235 ia64_hpux_file_end, make static. Take no arguments.
3236 * config/ip2k/ip2k.c (asm_file_start, asm_file_end,
3237 commands_in_prologues, commands_in_epilogues): Delete.
3238 (function_epilogue): Update to match.
3239 * config/mips/mips.c (mips_asm_file_end): Rename mips_file_end,
3240 make static. Take no arguments.
3241 (iris6_asm_file_end): Rename iris6_file_end, make static, use
3242 mips_file_end, take no arguments.
3243 Set TARGET_ASM_FILE_END to iris6_file_end or mips_file_end as
3244 appropriate.
3245 * config/mmix/mmix.c (mmix_asm_file_end): Rename mmix_file_end,
3246 make static, take no arguments. Set TARGET_ASM_FILE_END to
3247 mmix_file_end.
3248 * config/pa/pa.c (output_deferred_plabels): Make static, take
3249 no arguments. Set TARGET_ASM_FILE_END to output_deferred_plabels.
3250 * config/rs6000/xcoff.h (TARGET_ASM_FILE_END): Set it.
3251 (ASM_FILE_END): Delete; move code...
3252 * config/rs6000/rs6000.c (rs6000_xcoff_file_end): ... here;
3253 new static function.
3254
3255 * config/avr/avr.h, config/cris/cris.h, config/h8300/h8300.h
3256 * config/mmix/mmix.h, config/mips/iris6.h, config/mips/mips.h:
3257 Don't set ASM_FILE_END.
3258 * config/alpha/linux-elf.h, config/m68k/linux.h, config/rs6000/linux.h
3259 * config/rs6000/linux64.h, config/s390/linux.h, config/sparc/linux.h
3260 * config/sparc/linux64.h: Set TARGET_ASM_FILE_END to
3261 file_end_indicate_exec_stack; don't set ASM_FILE_END.
3262 * config/alpha/unicosmk.h, config/i386/cygming.h
3263 * config/ia64/hpux.h: Set TARGET_ASM_FILE_END, not ASM_FILE_END.
3264 * config/arm/arm-protos.h, config/alpha/alpha-protos.h
3265 * config/avr/avr-protos.h, config/c4x/c4x-protos.h
3266 * config/h8300/h8300-protos.h, config/ia64/ia64-protos.h
3267 * config/ip2k/ip2k-protos.h, config/mips/mips-protos.h
3268 * config/mmix/mmix-protos.h, config/pa/pa-protos.h: Update.
3269
3270 Sat Jun 7 18:32:13 CEST 2003 Jan Hubicka <jh@suse.cz>
3271
3272 * i386.h (OPTION_DEFAULT_SPECS): Avoid -mcpu default when -march is
3273 specified.
3274
3275 Sat Jun 7 15:20:01 CEST 2003 Jan Hubicka <jh@suse.cz>
3276
3277 * Makefile.in (stageprofile_build): Kill redundant target.
3278 * i386.c (mdep_reorg): Don't pad jumps for Athlon.
3279
3280 2003-06-07 Andreas Jaeger <aj@suse.de>
3281
3282 * doc/tm.texi (Costs): Remove DONT_REDUCE_ADDR documentation.
3283
3284 * config/avr/avr.h: Remove comment regarding DONT_REDUCE_ADDR.
3285 * config/dsp16xx/dsp16xx.h: Likewise.
3286 * config/i386/i386.h: Likewise.
3287 * config/ip2k/ip2k.h: Likewise.
3288
3289 2003-06-07 Neil Booth <neil@daikokuya.co.uk>
3290
3291 * Makefile.in (OJBS, c-opts.o): Update.
3292 (c-options.c, c-options.h): Rename options.h and options.c.
3293 (options.h): Rename options_.h.
3294 (opts.o): New.
3295 * c-common.h (c_common_handle_option): Replace c_common_decode_option.
3296 (c_common_init_options): Update prototype.
3297 * c-lang.c (c_init_options): Update prototype.
3298 (LANG_HOOKS_HANDLE_OPTION): Override.
3299 (LANG_HOOKS_DECODE_OPTION): Drop.
3300 * c-opts.c: Include opts.h and options.h instead of c-options.h
3301 and c-options.c.
3302 (lang_flags): Move to file scope.
3303 (find_opt, c_common_decode_option): Remove.
3304 (CL_C, CL_OBJC, CL_CXX, CL_OBJCXX, CL_JOINED, CL_SEPARATE,
3305 CL_REJECT_NEGATIVE): Move to opts.h.
3306 (missing_arg): Update prototype.
3307 (c_common_init_options): Update for new prototype.
3308 (c_common_handle_options): Filenames are passed as N_OPTS.
3309 * hooks.c (hook_int_void_0): New.
3310 * hooks.h (hook_int_void_0): New.
3311 * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): New default.
3312 (LANG_HOOKS_HANDLE_OPTION): Default to NULL for now.
3313 (LANG_HOOKS_INITIALIZER): Update.
3314 * langhooks.h (init_options): Update.
3315 (handle_option): New.
3316 * opts.c, opts.h: New files.
3317 * opts.sh: Update c file to include opts.h and options.h.
3318 * toplev.c: Include opts.h; change options.h to options_.h.
3319 (parse_options_and_default_flags): Get lang_mask, use
3320 handle_option for language-specific handling.
3321 * objc/objc-lang.c (LANG_HOOKS_DECODE_OPTON): Drop.
3322 (LANG_HOOKS_HANDLE_OPTION): Override.
3323 (objc_init_options): Update.
3324
3325 2003-06-07 Magnus Kreth <magnus.kreth@gmx.de>
3326 Thibaud Gaillard <thibaud.gaillard@nto.atmel.com>
3327
3328 PR other/7031
3329 * Makefile.in (install-common): Remove GCOV_INSTALL_NAME instead of
3330 gcov.
3331
3332 2003-06-07 Kelley Cook <kelleycook@wideopenwest.com>
3333
3334 * configure.in (HAVE_LD_RO_RW_SECTION_MIXING): Remove quotes in
3335 section names.
3336 * configure: Regenerate.
3337
3338 2003-06-07 Alan Modra <amodra@bigpond.net.au>
3339
3340 * config/rs6000/linux64.h (CRT_CALL_STATIC_FUNCTION): Define.
3341
3342 2003-06-06 James E Wilson <wilson@tuliptree.org>
3343
3344 PR inline-asm/10890
3345 * reload1.c (merge_assigned_reloads): Abort only if two reloads have
3346 different in fields.
3347
3348 2003-06-06 Nathanael Nerode <neroden@gcc.gnu.org>
3349
3350 * configure.in: Make $(target_subdir) correspond with top level usage.
3351 * Makefile.in: Likewise.
3352 * configure: Regenerate.
3353
3354 2003-06-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3355
3356 * pa.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_ALIGNED_COMMON,
3357 ASM_OUTPUT_ALIGNED_LOCAL): Cast `SIZE' and `ALIGNED' parameters to
3358 unsigned HOST_WIDE_INT.
3359 * pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMOM, ASM_OUTPUT_ALIGNED_LOCAL):
3360 Likewise.
3361 * pa64-hpux.h (ASM_OUTPUT_ALIGNED_COMMON, ASM_OUTPUT_ALIGNED_LOCAL):
3362 Likewise.
3363
3364 2003-06-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3365
3366 * doc/install.texi (Prerequisites): New section documenting
3367 tools and packages necessary prior to building and/or
3368 modifying GCC.
3369 * doc/install.texi2html: Also generate prerequisites.html.
3370
3371 2003-06-06 Richard Earnshaw <rearnsha@arm.com>
3372
3373 PR target/11052
3374 * ifcvt.c (noce_process_if_block): Fail if the destination has
3375 side-effects.
3376
3377 2003-06-06 Jason Merrill <jason@redhat.com>
3378
3379 * stmt.c (resolve_asm_operand_names): Rename from
3380 resolve_operand_names. No longer static. Avoid needless copying.
3381 Don't build array of constraints.
3382 (expand_asm_operands): Build it here.
3383 * tree.h: Declare resolve_asm_operand_names.
3384
3385 * stmt.c (expand_decl): Put artificial vars into registers even
3386 when not optimizing, and don't mark the regs as user vars.
3387
3388 2003-06-06 J"orn Rennecke <joern.rennecke@superh.com>
3389
3390 * sh.h (FUNCTION_ARG_1): Consistently use NEW_MODE for the mode
3391 of the generated register.
3392
3393 2003-06-06 Daniel Jacobowitz <drow@mvista.com>
3394
3395 * config.gcc: Add a missing sparc64 case.
3396
3397 2003-06-06 Jakub Jelinek <jakub@redhat.com>
3398
3399 * mklibgcc.in: Propagate .note.GNU-stack section if needed into
3400 the .hidden assembly stubs.
3401
3402 2003-06-06 H.J. Lu <hongjiu.lu@intel.com>
3403
3404 * config.gcc (extra_headers): Add emmintrin.h for i[34567]86-*-*
3405 and x86_64-*-*.
3406
3407 * config/i386/mmintrin.h: Update version and add alternate
3408 intrinsic names.
3409 * config/i386/xmmintrin.h: Likewise.
3410
3411 * config/i386/xmmintrin.h: Include <emmintrin.h>. Move SSE2
3412 intrinsics to ...
3413 * config/i386/emmintrin.h: Here. New file.
3414
3415 2003-06-06 Roger Sayle <roger@eyesopen.com>
3416
3417 * fold-const.c (fold <ABS_EXPR>): Re-fold the result of folding
3418 fabs(-x) into fabs(x). Use tree_expr_nonnegative_p to determine
3419 when the ABS_EXPR (fabs or abs) is not required.
3420 (tree_expr_nonnegative_p): Move the logic that sqrt and exp are
3421 always nonnegative from fold to here. Additionally, cabs and fabs
3422 are always non-negative, and pow and atan are non-negative if
3423 their first argument is non-negative.
3424
3425 * builtins.c (fold_builtin_cabs): New function to fold cabs{,f,l}.
3426 Evaluate cabs of a constant at compile-time. Convert cabs of a
3427 non-complex argument into fabs. Convert cabs(z) into
3428 sqrt(z.r*z.r + z.i*z.i) at the tree-level with -ffast-math or
3429 -funsafe-math-optimizations or -ffast-math.
3430 (fold_builtin): Convert BUILT_IN_FABS{,F,L} into an ABS_EXPR.
3431 Fold BUILT_IN_CABS{,F,L} using fold_builtin_cabs.
3432
3433 Thu Jun 5 20:51:09 CEST 2003 Jan Hubicka <jh@suse.cz>
3434
3435 * sourcebuild.texi (Front End Directory): Document new hooks.
3436
3437 Fri Jun 6 11:02:35 CEST 2003 Jan Hubicka <jh@suse.cz>
3438
3439 * function.c (FLOOR_ROUND, CEIL_ROUND): Fix.
3440 * i386.md (gen_pro_epilogue_adjust_stack): Deal with gigantic
3441 stack frames.
3442 (pro_epilogue_adjust_stack_rex64_2): New pattern
3443
3444 Fri Jun 6 11:03:14 CEST 2003 Jan Hubicka <jh@suse.cz>
3445 Pop Sebastian
3446 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3447
3448 * cfghooks.h, cfghooks.c: New files.
3449 * Makefile.in (BASIC_BLOCK_H): Depends on cfghooks.h.
3450 (OBJS): Add cfghooks.o.
3451 (cfghooks.o): New rule.
3452 * basic-block.h (split_edge): Rename to rtl_split_edge.
3453 (verify_flow_info): Rename to rtl_verify_flow_info.
3454 (cfghooks.h): Included here.
3455 * cfgrtl.c (split_edge): Renamed rtl_split_edge.
3456 (verify_flow_info): Renamed rtl_verify_flow_info.
3457 * toplev.c (rest_of_compilation): Call rtl_register_cfg_hooks.
3458
3459 * basic-block.h (split_block, split_edge, flow_delete_block,
3460 redirect_edge_and_branch, redirect_edge_and_branch_force): Delete.
3461 (flow_delete_block_noexpunge): Return void.
3462 * cfg.c (verify_flow_info): New function.
3463 * cfgcleanup.c (try_simplify_condjump, outgoing_edges_match,
3464 try_crossjump_to_edge, try_optimize_cfg, delete_unreachable_blocks):
3465 Use delete_block.
3466 * cfglayout.c (function_footer): Rename to...
3467 (cfg_layout_function_footer): ... this variable
3468 (unlink_insn_chain): Make global.
3469 (fixup_reorder_chain, record_effective_endpoints): Update.
3470 (cleanup_unconditional_jumps): Use delete_block.
3471 (cfg_layout_redirect_edge, cfg_layout_split_block): Move to cfgrtl.c
3472 (cfg_layout_duplicate_bb): Use redirect_edge_and_branch_force.
3473 (cfg_layout_initialize, cfg_layout_finalize): Update hooks.
3474 * cfglayout.h (cfg_layout_redirect_edge, cfg_layout_split_block): Delete.
3475 (cfg_layout_function_footer): Declare.
3476 * cfgloopmanip (split_loop_bb): Do not update RBI.
3477 (remove_bbs): Use delete_block.
3478 (loop_reidrect_edge, loop_delete_branch_edge): Use
3479 redirect_edge_and_branch.
3480 (create_preheader): Use split_block and redirect_edge_and_branch_force.
3481 (split_edge_with): Likewise.
3482 * cfgrtl.c: Include cfglayout.h
3483 (split_edge): Rename to ...
3484 (rtl_split_edge) ... this one; make local.
3485 (redirect_edge_and_branch): Rename to ...
3486 (rtl_redirect_edge_and_branch) ... this one; make local.
3487 (redirect_edge_and_branch_force): Rename to ...
3488 (rtl_redirect_edge_and_branch_force) ... this one; make local.
3489 (cfg_layout_delete_block, cfg_layout_delete_edge_and_branch_force): New.
3490 (cfg_layout_redirect_edge_and_branch, cfg_layout_split_block): Move here from
3491 cfglayout.c; update to directly call RTL counterparts.
3492 (rtl_cfg_hooks, cfg_layout_rtl_cfg_hooks): New functions.
3493 * ifcvt.c (find_cond_trap): Use delete_block.
3494 (find_if_case_1): Use delete_block.
3495 (find_if_case_2): Use delete_block.
3496 * rtl.h (unlink_insn_chain): Declare.
3497 * toplev.c (rtl_reigster_cfg_hooks): New.
3498
3499 2003-06-05 Richard Henderson <rth@redhat.com>
3500
3501 * recog.c (peephole2_optimize): Revert last change.
3502
3503 2003-06-05 Richard Henderson <rth@redhat.com>
3504
3505 * recog.c (peephole2_optimize): Don't split block unless
3506 can_throw_internal.
3507
3508 2003-06-06 Kazu Hirata <kazu@cs.umass.edu>
3509
3510 * config/h8300/h8300.c (get_shift_alg): Correct the syntax of rotxl.
3511 * config/h8300/h8300.md (*addsi3_lshiftrt_16_zexthi): Likewise.
3512
3513 2003-06-05 Kelley Cook <kelleycook@wideopenwest.com>
3514
3515 PR optimization/4490
3516 * config/i386/i386.md: Don't use XFMode if TARGET_128BIT_LONG_DOUBLE.
3517 * doc/invoke.texi (m96bit-long-double, m128bit-long-double): Reword
3518 documentation to accurately reflect what these options do.
3519
3520 2003-06-06 Kaz Kojima <kkojima@gcc.gnu.org>
3521
3522 * config/sh/linux.h (STARTFILE_SPEC): Handle -pie. Simplify.
3523 (ENDFILE_SPEC): Redefine to handle -pie.
3524
3525 2003-06-05 Phil Edwards <phil@jaj.com>
3526
3527 * Makefile.in (qmtest-g++): Use target_alias, not target.
3528
3529 2003-06-05 Per Bothner <pbothner@apple.com>
3530
3531 * toplev.c (push_srcloc): Simplify behavior to save current location
3532 and set current location to parameters.
3533 (pop_srcloc): Simplify semantics.
3534 (lang_dependent_init): Remove now-useless initial push_srcloc.
3535
3536 2003-05-06 Richard Henderson <rth@redhat.com>
3537
3538 * dwarf2out.c (loc_descriptor_from_tree): Return 0 for
3539 language-specific tree codes.
3540
3541 2003-06-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3542
3543 PR middle-end/9986
3544 * pa.c (pa_init_builtins): Also set implicit_built_in_decls for
3545 BUILT_IN_FPUTC_UNLOCKED to NULL_TREE.
3546
3547 Thu Jun 5 18:32:46 CEST 2003 Jan Hubicka <jh@suse.cz>
3548
3549 * install.tex: Document profiledbootstrap.
3550
3551 * configure.in: Add support for lang.stageprofile and
3552 lang.stagefeedback
3553 * Makefile.in (clean, distclean): Kill new stages
3554 (POSTSTAGE1_FLAGS_TO_PASS): Break from ...
3555 (STAGE2_FLAGS_TO_PASS): ... this one.
3556 (STAGEPROFILE_FLAGS_TO_PASS, STAGEFEEDBACK_FLAGS_TO_PASS): New.
3557 (stage[2-4]_build): Add POSTSTAGE1_FLAGS_TO_PASS.
3558 (stageprofile_build, stageprofile_copy, stagefeedback_build,
3559 stagefeedback_copy): New.
3560 (restageprofile, restagefeedback, stageprofile-start,
3561 stageprofile, stagefeedback-start): Likewise.
3562
3563 2003-06-05 David Miller <davem@redhat.com>
3564 Richard Henderson <rth@redhat.com>
3565
3566 * optabs.c (HAVE_conditional_trap): Provide default.
3567 (gen_conditional_trap): Likewise.
3568 (init_optabs): Merge init_traps.
3569 (gen_cond_trap): Use prepare_operand. Restructure and avoid ifdef.
3570
3571 Thu Jun 5 14:59:44 CEST 2003 Jan Hubicka <jh@suse.cz>
3572
3573 * combine.c (simplify_if_then_else): (IF_THEN_ELSE (NE REG 0) (0) (8))
3574 is REG for nonzero_bits (REG) == 8.
3575
3576 Thu Jun 5 13:23:51 CEST 2003 Jan Hubicka <jh@suse.cz>
3577
3578 * i386.md (align): Fix warning; clarify what to do when no p2align
3579 is available.
3580
3581 2003-06-05 Nick Clifton <nickc@redhat.com>
3582
3583 * config.gcc (m32r-elf): Revert previous delta.
3584 * config/m32r/t-m32r (crtinit.o): Fix rule to work with
3585 multilibs. Remove m32rx specific version.
3586 (crtfini.o): Likewise.
3587 (EXTRA_MULTILIB_PARTS): Define.
3588
3589 2003-06-05 Eric Botcazou <ebotcazou@libertysurf.fr>
3590
3591 * doc/md.texi (Machine Constraints): Correct the meaning of
3592 constraints related to floating-point registers on SPARC.
3593
3594 2003-06-05 Eric Botcazou <ebotcazou@libertysurf.fr>
3595 Paolo Bonzini <bonzini@gnu.org>
3596
3597 PR target/10663
3598 * configure.in (HAVE_LD_RO_RW_SECTION_MIXING): Redirect
3599 assembler and linker output to /dev/null.
3600 Use a 'sed' construct instead of 'grep -A1'.
3601 * configure: Regenerate.
3602
3603 2003-06-04 Richard Henderson <rth@redhat.com>
3604
3605 * config/i386/i386.c (struct ix86_address): Add seg.
3606 (no_seg_address_operand): New.
3607 (ix86_decompose_address): Restructure PLUS loop. Accept one
3608 UNSPEC_TP if TARGET_TLS_DIRECT_SEG_REFS. Adjust ESP swap test
3609 to test for a regnum, not stack_pointer_rtx.
3610 (ix86_address_cost): Reduce cost if non-default segment.
3611 (legitimate_address_p): Remove UNSPEC_TP check.
3612 (get_thread_pointer): Add to_reg argument. Don't represent
3613 the thread pointer as a memory load.
3614 (legitimize_tls_address): Split out of ...
3615 (legitimize_address): ... here.
3616 (print_operand_address): Handle parts.seg.
3617 (ix86_expand_move): Use legitimize_tls_address.
3618 (ix86_rtx_costs): Handle UNSPEC_TP.
3619 * config/i386/i386.h (MASK_TLS_DIRECT_SEG_REFS): New.
3620 (TARGET_TLS_DIRECT_SEG_REFS): New.
3621 (TARGET_SWITCHES): Add tls-direct-seg-refs.
3622 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Default.
3623 (PREDICATE_CODES): Add no_seg_address_operand.
3624 * config/i386/i386.md (lea_1): Use it.
3625 (lea_1_rex64, lea_1_zext, lea_2_rex64): Likewise.
3626 (load_tp_si, add_tp_si, load_tp_di, add_tp_di): New.
3627 * config/i386/linux.h (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): New.
3628 * config/i386/linux64.h (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): New.
3629 * doc/invoke.texi: Add -mtls-direct-seg-refs.
3630
3631 2003-06-04 Mark Mitchell <mark@codesourcery.com>
3632
3633 * Makefile.in (QMTESTRUNFLAGS): Set for DejaGNU emulation.
3634 (QMTEST_GPP_TESTS): Use "g++" by default.
3635 (stamp-qmtest): Tweak database creation.
3636 (QMTEST_DIR/context): Update context file format.
3637 (qmtest-g++): Tweak command-line.
3638
3639 2003-06-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3640
3641 * Makefile.in (varasm.o): Don't set -Wno-error.
3642 * rs6000/t-rs6000 (varasm.o, out_object_file): Don't clear.
3643
3644 2003-06-04 Zack Weinberg <zack@codesourcery.com>
3645
3646 PR bootstrap/3163
3647 * aclocal.m4 (AC_FUNC_MMAP_ANYWHERE, AC_FUNC_MMAP_FILE): Delete.
3648 (gcc_AC_FUNC_MMAP_BLACKLIST): New.
3649 * configure.in: Check for sys/mman.h and mmap in AC_CHECK_HEADERS
3650 and AC_CHECK_FUNCS lists, respectively. Use
3651 gcc_AC_FUNC_MMAP_BLACKLIST, not AC_FUNC_MMAP_ANYWHERE nor
3652 AC_FUNC_MMAP_FILE.
3653 * configure, config.in: Regenerate.
3654
3655 2003-06-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3656
3657 * arm/aout.h (ASM_OUTPUT_SKIP): Fix cast for format specifier warning.
3658 * arm.c (arm_output_function_prologue): Fix format specifiers.
3659 * arm.h (ARM_PRINT_OPERAND_ADDRESS): Likewise.
3660 * m68k.c (m68k_output_mi_thunk): Use more readable %wd instead of
3661 HOST_WIDE_INT_PRINT_DEC.
3662 * vax.c (vax_output_function_prologue): Fix format specifiers.
3663
3664 2003-06-04 Richard Henderson <rth@redhat.com>
3665
3666 * cse.c (find_best_addr): Consider binary operators even if second
3667 argument is not CONST_INT.
3668
3669 2003-06-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3670
3671 * doc/invoke.texi (max-cse-path-length): Document.
3672
3673 2003-06-04 Richard Henderson <rth@redhat.com>
3674
3675 * config/i386/i386.md (align): Use ASM_OUTPUT_*ALIGN macros.
3676
3677 2003-06-04 Andrew Pinski <pinskia@physics.uc.edu>
3678
3679 * config/rs6000/darwin.h (RS6000_OUTPUT_BASENAME):
3680 Remove semi-colon at the end of the expression.
3681
3682 2003-06-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3683
3684 * i370.c (mvs_function_name_length): Fix signed/unsigned warnings.
3685 * i370.h (mvs_function_name_length): Likewise.
3686 * i960.h (CONSTANT_ALIGNMENT): Likewise.
3687 * mips/linux.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
3688 * pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
3689 * pa.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
3690 * rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Delete unused
3691 variable.
3692
3693 2003-06-04 Daniel Jacobowitz <drow@mvista.com>
3694
3695 * config.gcc: Reorganize --with-cpu logic. Set
3696 configure_default_options according to the default CPU, --with-cpu,
3697 --with-arch, --with-tune, --with-schedule, --with-abi, and
3698 --with-float. Check for legal values of various options.
3699 * configure.in: Define configure_default_options in configargs.h.
3700 * configure: Regenerated.
3701 * config/mips/mips.h (TARGET_DEFAULT_ARCH_P)
3702 (TARGET_DEFAULT_FLOAT_P): New macros.
3703 * gcc.c (do_option_spec): New function.
3704 (struct default_spec, option_default_specs): New.
3705 (main): Call do_option_spec.
3706 * config/alpha/alpha.h, config/arm/arm.h, config/i386/i386.h,
3707 config/mips/mips.h, config/pa/pa.h, config/rs6000/rs6000.h,
3708 config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Define.
3709
3710 * doc/install.texi: Update --with-cpu documentation. Mention
3711 --with-arch, --with-schedule, --with-tune, --with-abi, and
3712 --with-float.
3713 * doc/tm.texi (Driver): Document OPTION_DEFAULT_SPECS.
3714
3715 2003-06-04 Daniel Jacobowitz <drow@mvista.com>
3716
3717 * config.gcc: Only process --with-cpu logic in the third pass.
3718
3719 2003-06-04 Daniel Jacobowitz <drow@mvista.com>
3720
3721 * config.gcc: Reorganize --with-cpu section. Remove an
3722 obsolete comment about the default CPU for x86-64. Fix
3723 a typo for the ep9312. Update the list of supported PowerPC
3724 CPUs. Support a limited set of new --with-cpu options
3725 for i386.
3726
3727 2003-06-04 Aldy Hernandez <aldyh@redhat.com>
3728
3729 * config/rs6000/rs6000.c (rs6000_complex_function_value): Unpack
3730 complex numbers <= 32 bits into two registers.
3731
3732 2003-06-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3733
3734 * alpha.c (print_operand_address): Fix format specifier warnings.
3735 * alpha/elf.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
3736 * alpha/vms.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
3737 * arm/aof.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
3738 * arm/pe.h (ASM_OUTPUT_COMMON): Likewise.
3739 * avr.h (ASM_OUTPUT_COMMON, ASM_GENERATE_INTERNAL_LABEL,
3740 ASM_OUTPUT_SKIP): Likewise.
3741 * c4x.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
3742 * dsp16xx.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
3743 * h8300.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_COMMON):
3744 Likewise.
3745 * i370.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
3746 * i386/cygming.h (ASM_OUTPUT_COMMON): Likewise.
3747 * i386/darwin.h (ASM_OUTPUT_COMMON): Likewise.
3748 * i960.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
3749 * m68k/hp320.h (PRINT_OPERAND_ADDRESS): Likewise.
3750 * mcore.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
3751 * pdp11.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
3752 * ptx4.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
3753 * sparc/freebsd.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
3754 * svr3.h (ASM_OUTPUT_COMMON): Likewise.
3755
3756 2003-06-04 J"orn Rennecke <joern.rennecke@superh.com>
3757
3758 * c-decl.c (c_init_decl_processing): Clear input_file_name
3759 while building common nodes.
3760 * dwarf2out.c (gen_compile_unit_die, dwarf2out_finish):
3761 Don't add working directory for strings like <built-in> .
3762
3763 2003-06-04 David Edelsohn <edelsohn@gnu.org>
3764
3765 * doc/install.texi (*-ibm-aix*): Native as and ld required
3766 to bootstrap on AIX 5L.
3767
3768 2003-06-04 Richard Henderson <rth@redhat.com>
3769
3770 * c-common.c (handle_cleanup_attribute): New.
3771 (c_common_attributes): Add it.
3772 * c-decl.c (finish_decl): Honor the cleanup attribute.
3773 * doc/extend.texi (Variable Attributes): Document it.
3774
3775 * unwind-c.c: New file.
3776 * Makefile.in (LIB2ADDEH): Add it.
3777 * config/t-darwin, config/t-linux, config/t-linux-gnulibc1,
3778 config/ia64/t-ia64: Likewise.
3779
3780 2003-06-04 Jakub Jelinek <jakub@redhat.com>
3781
3782 * function.c (trampolines_created): New variable.
3783 (expand_function_end): Set it when doing INITIALIZE_TRAMPOLINE.
3784 * function.h (trampolines_created): Add.
3785 * config/s390/linux.h (ASM_FILE_END): Define.
3786 * config/alpha/linux-elf.h (ASM_FILE_END): Define.
3787 * config/m68k/linux.h (ASM_FILE_END): Define.
3788 * config/rs6000/linux.h (ASM_FILE_END): Define.
3789 * config/rs6000/linux64.h (ASM_FILE_END): Define.
3790 * config/rs6000/ppc-asm.h: Add .note.GNU-stack on powerpc-linux.
3791 * config/sparc/linux.h (ASM_FILE_END): Define.
3792 * config/sparc/linux64.h (ASM_FILE_END): Define.
3793 * config/i386/i386.c (ix86_asm_file_end): Use SUBTARGET_FILE_END.
3794 * config/i386/linux.h (SUBTARGET_FILE_END): Define.
3795 * config/i386/linux64.h (SUBTARGET_FILE_END): Define.
3796
3797 Wed Jun 4 18:39:33 CEST 2003 Jan Hubicka <jh@suse.cz>
3798
3799 * i386.c (min_insn_size, k8_avoid_jump_misspredicts): New functions
3800 (ix86_reorg): Use it.
3801 * i386.md (align): New insn pattern.
3802
3803 2003-06-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3804
3805 * toplev.c (rest_of_type_compilation): Fix typo.
3806
3807 2003-06-04 Jakub Jelinek <jakub@redhat.com>
3808 Alan Modra <amodra@bigpond.net.au>
3809
3810 * config/i386/linux.h (NO_PROFILE_COUNTERS): Define to 1.
3811 * config/i386/freebsd.h (NO_PROFILE_COUNTERS): Likewise.
3812 * config/i386/netbsd-elf.h (NO_PROFILE_COUNTERS): Likewise.
3813 * config/xtensa/xtensa.h (NO_PROFILE_COUTNERS): Likewise.
3814 * config/darwin.h (NO_PROFILE_COUNTERS): Likewise.
3815 * final.c (NO_PROFILE_COUNTERS): Define to 0 if not defined.
3816 (profile_function): Allow NO_PROFILE_COUNTERS to be non-constant.
3817 * config/rs6000/rs6000.c (output_profile_hook): Likewise.
3818
3819 * configure.in (powerpc*-*, s390*-*): Set tls_as_opt.
3820 Pass it to $gcc_cv_as.
3821 * configure: Rebuilt.
3822
3823 * config/rs6000/rs6000.c (rs6000_abi_name): Remove initializer.
3824 (print_operand): Allow TARGET_AIX to be non-constant.
3825 (rs6000_aix_emit_builtin_unwind_init, rs6000_emit_eh_toc_restore):
3826 Define unconditionally.
3827 (rs6000_elf_declare_function_name): New function.
3828 * config/rs6000/rs6000.md (eh_return): Allow TARGET_AIX to be
3829 non-constant.
3830 * config/rs6000/linux64.h [!RS6000_BI_ARCH] (TARGET_64BIT): Define
3831 to 1.
3832 (DEFAULT_ARCH64_P, RS6000_BI_ARCH_P): Define.
3833 [IN_LIBGCC2] (TARGET_64BIT): Define based on whether __powerpc64__
3834 is defined.
3835 (TARGET_AIX): Define to 1 if TARGET_64BIT.
3836 (PROCESSOR_DEFAULT): Remove.
3837 (TARGET_RELOCATABLE, RS6000_ABI_NAME, INVALID_64BIT,
3838 INVALID_32BIT, SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
3839 [RS6000_BI_ARCH] (OVERRIDE_OPTIONS, ASM_FILE_START): Define.
3840 (ASM_DEFAULT_SPEC, ASM_SPEC, LINK_OS_LINUX_SPEC): Define for both
3841 -m32 and -m64.
3842 (MULTILIB_DEFAULTS): Define.
3843 (SUBSUBTARGET_EXTRA_SPECS): Define.
3844 (ASM_SPEC32, ASM_SPEC64, ASM_SPEC_COMMON): Define.
3845 (TARGET_TOC): Define only if !RS6000_BI_ARCH.
3846 (TARGET_NO_TOC): Remove.
3847 [!RS6000_BI_ARCH] (TARGET_RELOCATABLE, TARGET_EABI,
3848 TARGET_PROTOTYPE): Define to 0.
3849 (NO_PROFILE_COUNTERS): Define to TARGET_64BIT.
3850 (PROFILE_HOOK): Only call output_profile_hook if TARGET_64BIT.
3851 (ADJUST_FIELD_ALIGN, ROUND_TYPE_ALIGN): Adjust to work properly
3852 if !TARGET_64BIT.
3853 (USER_LABEL_PREFIX): Remove.
3854 (JUMP_TABLES_IN_TEXT_SECTION): Define to TARGET_64BIT.
3855 (SETUP_FRAME_ADDRESSES): Only call rs6000_aix_emit_builtin_unwind_init
3856 if TARGET_64BIT.
3857 (TARGET_OS_CPP_BUILTINS): Handle both -m32 and -m64.
3858 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Define.
3859 (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Remove.
3860 (TOC_SECTION_ASM_OP): Define depending on TARGET_64BIT.
3861 (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
3862 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE): Define depending on
3863 TARGET_64BIT.
3864 (RS6000_CALL_GLUE): Likewise.
3865 (SAVE_FP_PREFIX, SAVE_FP_SUFFIX, RESTORE_FP_PREFIX,
3866 RESTORE_FP_SUFFIX): Likewise.
3867 (ASM_DECLARE_FUNCTION_NAME): Remove.
3868 (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_SOURCE_LINE,
3869 DBX_OUTPUT_BRAC, DBX_OUTPUT_NFUN): Only output dot before function
3870 name if TARGET_64BIT.
3871 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Handle both TARGET_64BIT and
3872 !TARGET_64BIT.
3873 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Remove undefs.
3874 (ASM_PREFERRED_EH_DATA_FORMAT): Take TARGET_64BIT into account.
3875 (DRAFT_V4_STRUCT_RET): Define.
3876 (SIGNAL_FRAMESIZE): New enum value.
3877 (MD_FALLBACK_FRAME_STATE_FOR): Define.
3878 * config/rs6000/default64.h: New file.
3879 * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -m32 and -m64
3880 options.
3881 (SUBTARGET_OVERRIDE_OPTIONS): If rs6000_abi_name is NULL, set it
3882 to RS6000_ABI_NAME. Only disallow mixing of -fPIC with -mcall-aixdesc
3883 if !TARGET_64BIT.
3884 [!RS6000_BI_ARCH] (SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
3885 (ASM_DECLARE_FUNCTION_NAME): Use rs6000_elf_declare_function_name
3886 function.
3887 (TARGET_OS_SYSV_CPP_BUILTINS): Define.
3888 (TARGET_OS_CPP_BUILTINS): Use it.
3889 (CPP_SYSV_SPEC): Remove.
3890 (CPP_SPEC): Remove cpp_sysv.
3891 (SUBTARGET_EXTRA_SPECS): Remove cpp_sysv.
3892 Add SUBSUBTARGET_EXTRA_SPECS.
3893 (SUBSUBTARGET_EXTRA_SPECS): Define.
3894 * config/rs6000/biarch64.h: New file.
3895 * config/rs6000/rs6000-protos.h (rs6000_elf_declare_function_name):
3896 New prototype.
3897 * config/rs6000/x-linux64: New file.
3898 * config/rs6000/t-linux64: Build -m64, -m32 and -m32 -msoft-float
3899 multilibs.
3900 * config/rs6000/eabi-ci.asm: Protect with #ifndef __powerpc64__.
3901 * config/rs6000/eabi-cn.asm: Likewise.
3902 * config/rs6000/tramp.asm: Likewise.
3903 * config/rs6000/sol-ci.asm: Likewise.
3904 * config/rs6000/sol-cn.asm: Likewise.
3905 * config/rs6000/linux.h (TARGET_64BIT): Define to 0.
3906 (TARGET_OS_CPP_BUILTINS): Use TARGET_OS_SYSV_CPP_BUILTINS.
3907 * config/rs6000/ppc-asm.h: Move __powerpc64__ section before
3908 _CALL_AIXDESC section.
3909 * config.gcc (powerpc64-*-linux*): Configure a bi-arch compiler,
3910 defaulting to -m64 unless --with-cpu= is one of the 32-bit CPUs
3911 or default32.
3912
3913 2003-06-04 Daniel Jacobowitz <drow@mvista.com>
3914
3915 * config.gcc: Revert accidentally committed ARM changes.
3916
3917 2003-06-04 Roger Sayle <roger@eyesopen.com>
3918
3919 * builtins.c (dconstpi, dconste): New mathematical constants.
3920 (init_builtin_dconsts): New function to initialize dconstpi
3921 and dconste.
3922 (fold_builtin): Optimize exp(1.0) = e. Evaluate exp(x) at
3923 compile time with -ffast-math when x is an integer constant.
3924 Optimize tan(0.0) = 0.0. Optimize atan(0.0) = 0.0,
3925 atan(1.0) = pi/4 and tan(atan(x)) = x with -ffast-math.
3926
3927 2003-06-04 Roger Sayle <roger@eyesopen.com>
3928
3929 * calls.c (expand_call): Avoid calling pure or const functions
3930 when the result is ignored (or void) and none of the arguments
3931 are volatile. Move warning diagnostic earlier in function.
3932
3933 2003-06-04 Andreas Jaeger <aj@suse.de>
3934
3935 * system.h: Do not poison TDESC_SECTION_ASM_OP,
3936 RDATA_SECTION_ASM_OP and SUBTARGET_PROLOGUE.
3937
3938 2003-06-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3939
3940 * final.c (asm_fprintf): Update comments, accept "-+ #0" flags,
3941 optimize '%' case, handle %c, don't accept %p, %e, %f or %g,
3942 handle %ll, optimize regular character case.
3943
3944 2003-06-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3945
3946 * Makefile.in (cse.o): Add params.h dependency.
3947 * cse.c: Include params.h.
3948 (PATHLENGTH): Removed.
3949 (struct cse_basic_block_data): Make path array dynamic.
3950 (cse_end_of_basic_block): Use PARAM_MAX_CSE_PATH_LENGTH instead
3951 of PATHLENGTH.
3952 (cse_main, cse_basic_block): Allocate path array.
3953 * params.def (PARAM_MAX_CSE_PATH_LENGTH): New.
3954
3955 Wed Jun 4 09:49:21 CEST 2003 Jan Hubicka <jh@suse.cz>
3956
3957 * i386.c (ix86_reorg): Replace the jump instead of adding nop.
3958 * i386.md (UNSPEC_REP): New constant.
3959 (return_internal_long): New pattern.
3960
3961 2003-06-04 Eric Botcazou <ebotcazou@libertysurf.fr>
3962
3963 PR optimization/11018
3964 * config/sparc/sparc.c (sparc_v8plus_shift): Use which_alternative
3965 consistently to decide whether the scratch register is really
3966 required.
3967
3968 2003-06-04 Eric Botcazou <ebotcazou@libertysurf.fr>
3969
3970 PR optimization/10876
3971 * config/sparc/sparc.h (CONST_OK_FOR_LETTER): Add
3972 new 'O' constraint for constant 4096.
3973 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
3974 * config/sparc/sparc.md (adddi3 expander): Canonicalize pattern.
3975 Do not transform into MINUS insn for constant 4096.
3976 (*adddi3_sp64 insn): Canonicalize pattern. Add new alternative
3977 for constant 4096 as third operand.
3978 (addsi3 expander): Remove.
3979 (*addsi3 insn): Rename into 'addsi3'. Canonicalize pattern. Add
3980 new alternative for constant 4096 as third operand.
3981 (subdi3 expander): Do not transform into PLUS insn for constant 4096.
3982 (*subdi3_sp64 insn): Add new alternative for constant 4096 as third
3983 operand.
3984 (subsi3 expander): Remove.
3985 (*subsi3 insn): Rename into 'subsi3'. Add new alternative for
3986 constant 4096 as third operand.
3987 * doc/md.texi (Machine Constraints): Document new 'O' constraint for
3988 the SPARC port.
3989
3990 2003-06-03 Chris Demetriou <cgd@broadcom.com>
3991
3992 * config/mips/t-linux64 (CRTSTUFF_T_CFLAGS_S): Define.
3993
3994 2003-06-04 Andreas Jaeger <aj@suse.de>
3995
3996 * config/i386/uwin.h: Remove SUBTARGET_PROLOGUE.
3997
3998 * config/i386/i386.c (ix86_expand_prologue): Do not use
3999 SUBTARGET_PROLOGUE.
4000
4001 * system.h: Poision SUBTARGET_PROLOGUE.
4002
4003 * config/arm/arm-protos.h: Remove unused rdate_section prototype.
4004
4005 * output.h: Remove TDESC_SECTION_ASM_OP and RDATA_SECTION_ASM_OP
4006 dependend code.
4007
4008 * system.h: Poison TDESC_SECTION_ASM_OP and RDATA_SECTION_ASM_OP.
4009
4010 * system.h: Poison INSN_CACHE_DEPTH, INSN_CACHE_SIZE and
4011 INSN_CACHE_LINE_WIDTH.
4012
4013 * libgcc2.c (INSN_CACHE_PLANE_SIZE): Removed.
4014 (__clear_cache): Remove code dependend on INSN_CACHE_DEPTH,
4015 INSN_CACHE_SIZE and INSN_CACHE_LINE_WIDTH.
4016
4017 * doc/tm.texi (Trampolines): Remove INSN_CACHE_DEPTH,
4018 INSN_CACHE_SIZE and INSN_CACHE_LINE_WIDTH.
4019
4020 * dbxout.c (dbxout_type): Remove usage of DBX_OUTPUT_ENUM.
4021 (dbxout_symbol): Remove usage of DBX_OUTPUT_CONSTANT_SYMBOL.
4022 (dbxout_block): Remove usage of DBX_OUTPUT_CATCH.
4023 (dbxout_block): Remove usage of DBX_LBRAC_FIRST.
4024 (dbxout_source_file): Remove usage of DBX_OUTPUT_SOURCE_FILENAME.
4025 (dbxout_init): Remove test for DBX_WORKING_DIRECTORY.
4026
4027 * doc/tm.texi (DBX Options): Do not document DBX_LBRAC_FIRST,
4028 DBX_OUTPUT_SOURCE_FILENAME and DBX_OUTPUT_ENUM and
4029 DBX_WORKING_DIRECTORY.
4030
4031 * system.h: Poison DBX_LBRAC_FIRST, DBX_OUTPUT_ENUM,
4032 DBX_OUTPUT_SOURCE_FILENAME and DBX_WORKING_DIRECTORY.
4033
4034 * config/frv/frv-protos.h: Remove unused const_section
4035 declaration.
4036 * config/vax/vax-protos.h: Likewise.
4037
4038 * output.h: Remove CONST_SECTION_ASM_OP usage.
4039
4040 * system.h: Poison CONST_SECTION_ASM_OP.
4041
4042 * crtstuff.c (__do_global_dtors_aux): Remove usage of
4043 CRT_GET_RFIB_TEXT.
4044 (frame_dummy): Likewise.
4045 * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Likewise.
4046 * system.h: Poison CRT_GET_RFIB_TEXT.
4047
4048 * collect2.c (is_ctor_dtor): Remove CFRONT_LOSSAGE dependend code.
4049
4050 * fix-header.c: Remove ADD_MISSING_EXTERN_C dependend variables.
4051 (write_lbrac): Remove ADD_MISSING_EXTERN_C dependend code.
4052 (recognized_function): Likewise.
4053 (read_scan_file): Likewise.
4054
4055 2003-06-03 Roger Sayle <roger@eyesopen.com>
4056
4057 * optabs.c (expand_binop): Optimize complex multiplication for
4058 the case of squaring a complex argument.
4059
4060 2003-06-03 Roger Sayle <roger@eyesopen.com>
4061
4062 * optabs.c (expand_binop): Attempt to reuse pseudos for duplicate
4063 non-volatile operands of binary operations.
4064 (prepare_cmp_insn): Likewise.
4065
4066 2003-06-03 Roger Sayle <roger@eyesopen.com>
4067
4068 * varasm.c (force_const_mem): Handle alignment of constants not
4069 representable as a type in the front-end language.
4070
4071 2003-06-03 Kazu Hirata <kazu@cs.umass.edu>
4072
4073 * flow.c (initialize_uninitialized_subregs): Use
4074 emit_move_insn instead of emitting a hardcoded move.
4075
4076 2003-06-03 Richard Henderson <rth@redhat.com>
4077
4078 * optabs.c (expand_abs_nojump): Split out from ...
4079 (expand_abs): ... here.
4080 * optabs.h (expand_abs_nojump): Declare.
4081 * ifcvt.c: (noce_try_abs): Use expand_abs_nojump.
4082 * Makefile.in (ifcvt.o): Depend on optabs.h.
4083
4084 2003-06-03 Alan Modra <amodra@bigpond.net.au>
4085
4086 * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Heed flag_merge_constants.
4087
4088 2003-06-03 Jason Thorpe <thorpej@wasabisystems.com>
4089
4090 * config.gcc (default_use_cxa_atexit): New variable, defaults to no.
4091 (*-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*): Set default_use_cxa_atexit
4092 to yes.
4093 * configure.in: Allow default_use_cxa_atexit to determine the
4094 value of DEFAULT_USE_CXA_ATEXIT if not explicitly enabled or
4095 disabled.
4096 * configure: Regenerate.
4097
4098 2003-06-03 Douglas B Rupp <rupp@gnat.com>
4099
4100 * Makefile.in (TEXI_GCC_FILES): Remove vms.texi entry.
4101 * doc/gcc.texi: Remove vms.texi section.
4102 * doc/vms.texi: Remove obsolete file.
4103
4104 2003-05-23 J"orn Rennecke <joern.rennecke@superh.com>
4105
4106 * configure.in (inhibit_libc): Don't define when configuring
4107 with --with-newlib --with-headers.
4108 * configure: Regenerate.
4109
4110 * t-sh: Remove LIB2FUNCS_EXTRA and embed-bb.c rules.
4111
4112 2003-06-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4113
4114 * configure.in (gcc_cv_as_hidden): Disable .hidden completely on
4115 IRIX 6 without GNU ld.
4116 * configure: Regenerate.
4117
4118 2003-06-03 Roger Sayle <roger@eyesopen.com>
4119
4120 * expr.c (emit_move_insn_1): Use emit_move_insn to move the parts
4121 of a complex number rather than invoke mov_optab directly.
4122
4123 2003-06-03 Kazu Hirata <kazu@cs.umass.edu>
4124
4125 * combine.c (simplify_set): Don't move a subreg in SET_SRC to
4126 SET_DEST if WORD_REGISTER_OPERATIONS is not defined.
4127
4128 2003-06-03 Nathanael Nerode <neroden@gcc.gnu.org>
4129
4130 * config/i386/x86-64.h: Remove two target-independent comments;
4131 replace "GNU CC" with "GCC".
4132
4133 2003-06-03 Anthony Green <green@redhat.com>
4134
4135 * config/frv/t-frv (EXTRA_HEADERS): Remove media.h
4136
4137 2003-06-03 Roger Sayle <roger@eyesopen.com>
4138
4139 * builtins.def (BUILT_IN_CABS, BUILT_IN_CABSF, BUILT_IN_CABSL):
4140 New builtins representing ISO C99's cabs, cabsf and cabsl.
4141 * builtins.c (expand_builtin_fabs): New function.
4142 (expand_builtin_cabs): New function.
4143 (expand_builtin): Expand BUILT_IN_FABS{,F,L} and BUILT_IN_CABS{,F,L}
4144 using expand_builtin_fabs and expand_builtin_cabs respectively.
4145
4146 * doc/extend.texi: Document new cabs, cabsf and cabsl builtins.
4147
4148 2003-06-03 Aldy Hernandez <aldyh@redhat.com>
4149
4150 * function.c (assign_parms): Split complex arguments.
4151
4152 * doc/tm.texi (SPLIT_COMPLEX_ARGS): Document.
4153
4154 * expr.h (SPLIT_COMPLEX_ARGS): Define.
4155 (split_complex_types): Protoize.
4156 (split_complex_values): Protoize.
4157
4158 * calls.c (expand_call): Split complex arguments on architectures
4159 that require it.
4160 (split_complex_values): New.
4161 (split_complex_types): New.
4162
4163 * config/rs6000/rs6000.c (rs6000_libcall_value): New.
4164 (rs6000_function_value): Handle complex values on AIX.
4165 (rs6000_complex_function_value): New.
4166
4167 * config/rs6000/rs6000-protos.h (rs6000_libcall_value): Protoize.
4168
4169 * config/rs6000/rs6000.h (LIBCALL_VALUE): Call function.
4170 (SPLIT_COMPLEX_ARGS): New.
4171
4172 2003-06-03 Jakub Jelinek <jakub@redhat.com>
4173
4174 * configure.in (HAVE_LD_PIE): Check for ld -pie.
4175 * config.in: Rebuilt.
4176 * configure: Rebuilt.
4177 * toplev.c (flag_pie, flag_shlib): New variables.
4178 (f_options): Add -fpie and -fPIE.
4179 (parse_options_and_default_flags): Set flag_pic if -fpie/-fPIE.
4180 Set flag_shlib if flag_pic and not -fpie/-fPIE.
4181 * flags.h (flag_pic, flag_shlib): Add.
4182 * varasm.c (default_binds_local_p): Use flag_shlib instead of
4183 flag_pic.
4184 * gcc.c (LINK_PIE_SPEC): Define.
4185 (LINK_COMMAND_SPEC): Use LINK_PIE_SPEC.
4186 (option_map): Add --pie -> -pie mapping.
4187 * config/sol2.h (ASM_SPEC): Handle -fpie the same way as -fpic
4188 and -fPIE the same way as -fPIC.
4189 * config/openbsd.h (ASM_SPEC): Likewise.
4190 * config/frv/frv.h (ASM_SPEC): Likewise.
4191 * config/arm/linux-gas.h (SUBTARGET_CPP_SPEC): Likewise.
4192 * config/arm/semi.h (ASM_SPEC): Likewise.
4193 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
4194 * config/freebsd-spec.h (FBSD_CPP_SPEC): Likewise.
4195 * config/i386/beos-elf.h (CC1_SPEC): Likewise.
4196 * config/i386/freebsd-aout.h (ASM_SPEC): Likewise.
4197 * config/m68k/linux.h (CPP_SPEC): Likewise.
4198 * config/m68k/netbsd.h (ASM_SPEC): Likewise.
4199 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
4200 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
4201 * config/mips/linux.h (SUBTARGET_CPP_SPEC): Likewise.
4202 * config/mips/openbsd.h (SUBTARGET_ASM_SPEC): Likewise.
4203 * config/pa/pa-linux.h (CPP_SPEC): Likewise.
4204 * config/netbsd-aout.h (ASM_SPEC): Likewise.
4205 * config/rs6000/sysv4.h (ASM_SPEC, CPP_SYSV_SPEC): Likewise.
4206 * config/rs6000/vxworks.h (CPP_SPEC): Likewise.
4207 * config/sparc/linux.h (CPP_SUBTARGET_SPEC, ASM_SPEC): Likewise.
4208 * config/sparc/linux64.h (CPP_SUBTARGET_SPEC, ASM_SPEC): Likewise.
4209 * config/sparc/sparc.h (ASM_SPEC): Likewise.
4210 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
4211 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
4212 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
4213 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
4214 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
4215 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC): Handle -pie.
4216 Simplify.
4217 * config/alpha/elf.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
4218 * config/i386/linux64.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
4219 * config/ia64/linux.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
4220 * config/rs6000/sysv4.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
4221 * config/rs6000/linux64.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
4222 * config/sparc/linux.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
4223 * config/sparc/linux64.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
4224 * doc/invoke.texi: Document -pie, -fpie and -fPIE options.
4225
4226 2003-06-03 Jakub Jelinek <jakub@redhat.com>
4227
4228 * builtins.c (expand_builtin_memcpy): Remove endp argument and endp
4229 != 0 handling. Pass 0 to store_by_pieces.
4230 (expand_builtin_mempcpy): Add endp argument. Don't call
4231 expand_builtin_memcpy, call store_by_pieces resp. move_by_pieces
4232 directly. If ignoring result, only do expand_call.
4233 (expand_builtin_stpcpy): Likewise. Call expand_builtin_mempcpy
4234 otherwise.
4235 (expand_builtin_strncpy, expand_builtin_memset): Adjust
4236 store_by_pices callers.
4237 (expand_builtin): Adjust expand_builtin_memcpy and
4238 expand_builtin_mempcpy callers.
4239 * expr.c (can_move_by_pieces): New function.
4240 (move_by_pieces): Add endp argument, return to resp. memory at end
4241 or one byte earlier depending on endp.
4242 (store_by_pieces): Likewise.
4243 (emit_block_move): Adjust call to move_by_pieces.
4244 (emit_push_insn): Adjust move_by_pieces caller.
4245 * expr.h (can_move_by_pieces): New prototype.
4246 (store_by_pieces): Adjust prototypes.
4247 * rtl.h (move_by_pieces): Adjust prototype.
4248 * config/mips/mips.c (expand_block_move): Adjust move_by_pieces
4249 caller.
4250
4251 2003-06-03 Ben Elliston <bje@wasabisystems.com>
4252
4253 * doc/md.texi (Processor pipeline description): Improve wording.
4254
4255 2003-06-03 Neil Booth <neil@daikokuya.co.uk>
4256
4257 * c-opts.c (c_common_handle_option): New, pulled out of
4258 c_common_decode_option. Substitute uses of argv.
4259 (c_common_decode_option): Broken into two.
4260
4261 2003-06-02 Roger Sayle <roger@eyesopen.com>
4262 Zack Weinberg <zack@codesourcery.com>
4263
4264 * emit-rtl.c (gen_complex_constant_part): Remove unnecessary
4265 test of TREE_CONSTANT_POOL_ADDRESS_P.
4266
4267 2003-06-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4268
4269 * mips.c: Don't include output.h twice.
4270 * stormy16.c: Likewise.
4271 * xtensa.c: Likewise.
4272 * output.h: Protect against multiple inclusion.
4273
4274 2003-06-02 J"orn Rennecke <joern.rennecke@superh.com>
4275
4276 * sh.h (OLD_ARG_MODE): New macro.
4277 (FUNCTION_ARG_ADVANCE, FUNCTION_ARG_PASS_BY_REFERENCE): Use it.
4278 (FUNCTION_ARG_1): Break out of:
4279 (FUNCTION_ARG). Use OLD_ARG_MODE.
4280
4281 2003-06-02 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
4282
4283 * gcc/config.gcc Add support multilib parts for m32rx processor.
4284
4285 2003-06-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4286
4287 * Makefile.in (c-options.c): Pass in $(AWK) to opts.sh.
4288 (mostlyclean): Delete c-options.c and c-options.h.
4289
4290 2003-06-02 Neil Booth <neil@daikokuya.co.uk>
4291
4292 * c-opts.c (CL_REJECT_NEGATIVE): New.
4293 (c_common_decode_option): Update to use it.
4294 * c.opt: Update documentation; use RejectNegative.
4295 * opts.sh: Handle RejectNegative.
4296
4297 2003-06-01 Zack Weinberg <zack@codesourcery.com>
4298
4299 * ggc-page.c (init_ggc): Give better diagnostics on failure to
4300 open /dev/zero.
4301 * toplev.c (crash_signal): Reset handling for received signal
4302 to SIG_DFL.
4303
4304 2003-06-02 Ben Elliston <bje@wasabisystems.com>
4305
4306 * config/arm/arm.c (arm_use_dfa_pipeline_interface): Declare.
4307 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define if not already.
4308 (arm_use_dfa_pipeline_interface): Implement.
4309 * config/arm/arm.md (arm): New automaton.
4310 (write_buf): Remove function units; new cpu unit.
4311 (write_blockage): Remove function units; new cpu unit.
4312 (core): Remove function units; new cpu unit.
4313 (r_mem_f_wbuf): New instruction reservation.
4314 (store1_wbuf, store2_wbuf, store3_wbuf, store4_wbuf): Likewise.
4315 (store1_ldsched, store2, store3, store4): Likewise.
4316 (load_ldsched, load_ldsched_xscale, load_or_store): Likewise.
4317 (mult, mult_ldsched, mult_ldsched_strongarm): Likewise.
4318 (multi_cycle, single_cycle): Likewise.
4319 * config/arm/fpa.md (armfp): New automaton.
4320 (fpa): Remove function units; new cpu unit.
4321 (fpa_mem): Remove function unit; new cpu unit.
4322 (fdivx, fdivd, fdivs, fmul, ffmul, farith, ffarith): New reservations.
4323 (r_2_f, f_2_r, f_load, f_store, r_mem_f, f_mem_r): Likewise.
4324
4325 2003-06-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4326
4327 * builtin-attrs.def (ATTR_ASM_FPRINTF): New.
4328 * c-format.c (enum format_type): Add asm_fprintf_format_type.
4329 (NOARGUMENTS, asm_fprintf_length_specs, asm_fprintf_flag_specs,
4330 asm_fprintf_flag_pairs, asm_fprintf_char_table): New.
4331 (format_types_orig): Renamed from format_types. Add new data.
4332 (format_types): Declare as pointer.
4333 (handle_format_attribute): Move later in file so we have all
4334 necessary declarations. Add section to capture HOST_WIDE_INT.
4335 * output.h (ATTRIBUTE_ASM_FPRINTF, __gcc_host_wide_int__): New.
4336 (asm_fprintf): Mark with ATTRIBUTE_ASM_FPRINTF.
4337
4338 2003-06-01 Andreas Jaeger <aj@suse.de>
4339
4340 * doc/tm.texi (Storage Layout): Remove ROUND_TYPE_SIZE and
4341 ROUND_TYPE_SIZE_UNIT.
4342
4343 * stor-layout.c (finalize_record_size): Remove usages of
4344 ROUND_TYPE_SIZE and ROUND_TYPE_SIZE_UNIT.
4345 (finalize_type_size): Likewise.
4346 (layout_type): Likewise.
4347
4348 * system.h: Poison ROUND_TYPE_SIZE and ROUND_TYPE_SIZE_UNIT.
4349
4350 * loop.c (check_insn_for_givs): Remove DONT_REDUCE_ADDR macro.
4351
4352 * config/d30v/d30v.h: Remove text copied from the manual.
4353
4354 2003-06-01 Roger Sayle <roger@eyesopen.com>
4355 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4356 Geoffrey Keating <geoffk@apple.com>
4357
4358 * emit-rtl.c (gen_lowpart_common): Handle interpreting integer
4359 constants as condition code values.
4360
4361 2003-06-01 DJ Delorie <dj@redhat.com>
4362
4363 * cppmacro.c (warn_of_redefinition): Handle cases where the two
4364 definitions have different numbers of tokens.
4365
4366 2003-06-01 Andreas Jaeger <aj@suse.de>
4367
4368 * gen-protos.c (main): Readd unused attribute for argc.
4369
4370 2003-06-01 Neil Booth <neil@daikokuya.co.uk>
4371
4372 * Makefile.in (c-options.c, c-options.h): Parallel make safe.
4373 * c.opt: End in blank line.
4374 * opts.sh: Take AWK from environment if available; use C locale.
4375
4376 2003-06-01 Andreas Schwab <schwab@suse.de>
4377
4378 * config/m68k/linux.h: Remove code protected by USE_GNULIBC_1.
4379
4380 2003-06-01 Andreas Jaeger <aj@suse.de>
4381
4382 * gen-protos.c (main): Revert patch to check for argument.
4383
4384 2003-06-01 Eric Botcazou <ebotcazou@libertysurf.fr>
4385
4386 PR target/11044
4387 * config/i386/i386.md (length attribute): Set length to 4
4388 for instructions of type "fcmp".
4389
4390 2003-06-01 Andreas Jaeger <aj@suse.de>
4391
4392 * toplev.c: Use ISO C90 prototypes.
4393
4394 * toplev.h: Use ISO C90 prototypes.
4395
4396 * genrecog.c: Use ISO C90 prototypes.
4397 (nodes_identical): Correct declaration to match prototype.
4398 (maybe_both_true): Likewise.
4399 (merge_trees): Likewise.
4400
4401 * genpeep.c (gen_peephole): Remove #if 0 code.
4402 Use ISO C90 prototypes.
4403
4404 * genattrtab.c (copy_rtx_unchanging): Remove #if 0'ed code.
4405 Remove #if 0'ed function simplify_by_alternatives.
4406 (optimize_attrs): Remove #if 0'ed code.
4407 Remove ^L.
4408 Use ISO C90 prototypes.
4409 (make_canonical): Remove #if 0'ed code.
4410 (convert_const_symbol_ref): Remove #if 0'ed function.
4411
4412 * gen-protos.c (main): Check for argument.
4413
4414 * rtl.h: Use ISO C90 prototypes for functions from lists.c.
4415
4416 * params.h: Use ISO C90 prototypes.
4417 * params.c: Likewise.
4418 * intl.c: Likewise.
4419 * intl.h: Likewise.
4420 * lists.c: Likewise.
4421 * errors.c: Likewise.
4422 * errors.h: Likewise.
4423 * gencodes.c: Likewise.
4424 * genpreds.c: Likewise.
4425 * genattr.c: Likewise.
4426 * gen-protos.c: Likewise.
4427 * genflags.c: Likewise
4428 * genconditions.c: Likewise.
4429 * genautomata.c: Likewise.
4430 * gencheck.c: Likewise.
4431 * genconfig.c: Likewise.
4432 * genconstants.c: Likewise.
4433 * genemit.c: Likewise.
4434 * genextract.c: Likewise.
4435 * gengenrtl.c: Likewise.
4436 * gengtype.c: Likewise.
4437 * gengtype.h: Likewise.
4438 * genopinit.c: Likewise.
4439 * genoutput.c: Likewise.
4440 * gensupport.c: Likewise.
4441 * gensupport.h: Likewise.
4442
4443 * sdbout.h: Use ISO C90 prototypes.
4444
4445 * sdbout.c (CONTIN): Removed empty macro.
4446 (sdbout_one_type): Remove CONTIN usages.
4447 Remove ^Ls.
4448 (tag_of_ru_type): Remove #if 0'ed function.
4449 (sdbout_symbol): Remove #if 0'ed code.
4450 (sdbout_one_type): Remove a #if 1.
4451 (sdbout_one_type): Remove #if 0'ed code.
4452 (sdbout_init): Remove RMS_QUICK_HACK_1 code.
4453 Remove PARAMS, use ISO C90 prototypes for all functions.
4454
4455 2003-06-01 Josef Zlomek <zlomekj@suse.cz>
4456
4457 * rtl.def (CONST_DOUBLE): Update comment.
4458
4459 2003-06-01 Neil Booth <neil@daikokuya.co.uk>
4460
4461 * opts.sh: Remove path from sort.
4462
4463 2003-06-01 Aldy Hernandez <aldyh@redhat.com>
4464
4465 PR/9680
4466 * config/rs6000/rs6000.h (CANNOT_CHANGE_MODE_CLASS): Require
4467 TARGET_SPE for SPE_VECTOR_MODE.
4468
4469 2003-05-31 Aldy Hernandez <aldyh@redhat.com>
4470
4471 * toplev.c (botch): Remove.
4472 (do_abort): Remove.
4473 (set_Wunused): Comment.
4474 (set_Wextra): Comment.
4475 Remove ^L's.
4476 (rest_of_compilation): Factor out common code into functions.
4477 (rest_of_handle_inlining): New.
4478 (rest_of_handle_ssa): New.
4479 (rest_of_handle_cse): New.
4480 (rest_of_handle_gcse): New.
4481 (rest_of_handle_loop_optimize): New.
4482 (rest_of_handle_jump_bypass): New.
4483 (rest_of_handle_sibling_calls): New.
4484 (rest_of_handle_null_pointer): New.
4485 (rest_of_handle_addresof): New.
4486 (rest_of_handle_flow): New.
4487 (rest_of_handle_branch_prob): New.
4488 (rest_of_handle_if_conversion): New.
4489 (rest_of_handle_tracer): New.
4490 (rest_of_handle_loop2): New.
4491 (rest_of_handle_cse2): New.
4492 (rest_of_handle_life): New.
4493 (rest_of_handle_combine): New.
4494 (rest_of_handle_if_after_combine): New.
4495 (rest_of_handle_regmove): New.
4496 (rest_of_handle_sched): New.
4497 (rest_of_handle_old_regalloc): New.
4498 (rest_of_handle_new_regalloc): New.
4499 (rest_of_handle_regrename): New.
4500 (rest_of_handle_reorder_blocks): New.
4501 (rest_of_handle_sched2): New.
4502 (rest_of_handle_new_regalloc): New.
4503 (rest_of_handle_old_regalloc): New.
4504 (rest_of_handle_regrename): New.
4505 (rest_of_handle_reorder_blocks): New.
4506 (rest_of_handle_stack_regs): New.
4507 (rest_of_handle_machine_reorg): New.
4508 (rest_of_handle_delay_slots): New.
4509 (rest_of_handle_final): New.
4510
4511 * toplev.h (botch): Remove prototype.
4512 (do_abort): Same.
4513
4514 2003-05-31 Neil Booth <neil@daikokuya.co.uk>
4515
4516 * Makefile.in (c-opts.o, c-options.h): Update dependencies.
4517 * c-opts.c: Include c-options.h and c-options.c.
4518 (CL_C_ONLY, CL_OBJC_ONLY, CL_CXX_ONLY, CL_OBJCXX_ONLY):
4519 Rename CL_C, CL_OBJC, CL_CXX, CL_OBJCXX.
4520 (CL_ARG, CL_ALL, COMMAND_LINE_OPTIONS, struct cl_option,
4521 OPT, opt_comp): Remove.
4522 (missing_arg, c_common_init_options, c_common_decode_option,
4523 write_langs): Update for macro redefinitions and enumeration
4524 name changes.
4525 * c.opt, opts.sh: New files.
4526 * doc/passes.texi: Update.
4527
4528 2003-05-31 Andreas Jaeger <aj@suse.de>
4529
4530 * function.c (trampoline_address): Remove ALLOCATE_TRAMPOLINE
4531 usage.
4532
4533 * doc/tm.texi (Trampolines): Remove ALLOCATE_TRAMPOLINE.
4534
4535 * config/d30v/d30v.h: Remove traces of ALLOCATE_TRAMPOLINE.
4536
4537 * system.h: Poison ALLOCATE_TRAMPOLINE.
4538
4539 * doc/tm.texi (Misc): Remove HANDLE_PRAGMA.
4540 * system.h: Poison HANDLE_PRAGMA.
4541
4542 2003-05-31 Kazu Hirata <kazu@cs.umass.edu>
4543
4544 * doc/invoke.texi: Update dump file names.
4545
4546 2003-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4547
4548 * c-format.c (format_length_info, format_char_info,
4549 format_flag_spec, format_flag_pair, format_kind_info):
4550 De-const-ify structure members.
4551
4552 2003-05-31 Roger Sayle <roger@eyesopen.com>
4553
4554 * flags.h (flag_wrapv): New flag controlling overflow semantics.
4555 * toplev.c (flag_wrapv): Declare the variable with default false.
4556 (lang_independent_options): New option "-fwrapv" to set the above.
4557
4558 * fold-const.c (extract_muldiv_1): Disable optimization of (2*x)/2
4559 as x, when signed arithmetic overflow wraps around.
4560 (fold): Optimize "-A - B" as "-B - A" if overflow wraps around.
4561 * loop.c (basic_induction_var): Ignore BIVs that rely on undefined
4562 overflow when flag_wrapv is true.
4563
4564 * doc/invoke.texi: Document new -fwrapv command line option.
4565 * doc/c-tree.texi: Mention that the overflow semantics of
4566 NEGATE_EXPR, PLUS_EXPR, MINUS_EXPR and MULT_EXPR is dependent
4567 upon both flag_wrapv and flag_trapv.
4568
4569 2003-05-31 Eric Botcazou <ebotcazou@libertysurf.fr>
4570
4571 * doc/install.texi (mips-sgi-irix5): Add missing
4572 HTML <hr> marker.
4573
4574 2003-05-31 Eric Botcazou <ebotcazou@libertysurf.fr>
4575
4576 * doc/md.texi (Machine Constraints): Document
4577 missing SPARC constraints.
4578
4579 2003-05-31 Eric Botcazou <ebotcazou@libertysurf.fr>
4580
4581 * doc/md.texi (Automaton pipeline description): Use
4582 "type" instead of "cpu" as the attribute in the examples.
4583
4584 2003-05-30 Stan Shebs <shebs@apple.com>
4585
4586 * system.h: Poison OBJC_PROLOGUE.
4587
4588 2003-05-30 Roger Sayle <roger@eyesopen.com>
4589
4590 * emit-rtl.c (gen_complex_constant_part): New function for getting
4591 the constant real or imaginary part of a complex constant.
4592 (gen_realpart): Use it.
4593 (gen_imagpart): Likewise.
4594
4595 2003-05-30 Kazu Hirata <kazu@cs.umass.edu>
4596
4597 * doc/invoke.texi: Fix typos.
4598 * doc/rtl.texi: Likewise.
4599
4600 2003-05-30 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
4601
4602 * config/h8300/crti.asm: Use .h8300hn and .h8300sn for normal
4603 mode.
4604 * config/h8300/crtn.asm: Likewise.
4605 * config/h8300/lib1funcs.asm: Likewise.
4606 * config/h8300/h8300.c (asm_file_start): Likewise.
4607 * config/h8300/elf.h (LINK_SPEC): Use h8300hnelf and
4608 h8300snelf emulations for normal mode.
4609 * config/h8300/h8300.h (LINK_SPEC): Use h8300hn and h8300sn
4610 emulations for normal mode.
4611
4612 2003-05-30 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
4613
4614 * config/h8300/h8300.c (h8300_tiny_constant_address_p): Return
4615 true if TARGET_NORMAL_MODE.
4616
4617 2003-05-30 Roger Sayle <roger@eyesopen.com>
4618
4619 * cse.c (cse_insn): Simplify REG_EQUAL note on libcalls when
4620 making a substitution.
4621 (dead_libcall_p): If directly replacing a libcall with a
4622 constant value produces an invalid instruction, also try forcing
4623 the constant into the constant pool.
4624 * expr.c (emit_move_insn): Add a REG_EQUAL note when it is not
4625 obvious that the source is a constant.
4626 (compress_float_constant): Use set_unique_reg_note to place
4627 REG_EQUAL notes on instructions.
4628
4629 2003-05-30 Eric Christopher <echristo@redhat.com>
4630
4631 * config/mips/mips.c (extern_list): Add GTY marker.
4632 (extern_head): Separate out definition. Add marker.
4633 (mips_output_external): Use ggc_alloc for extern_list
4634 allocation.
4635 (mips_output_external_libcall): Ditto.
4636
4637 2003-05-30 Florian Weimer <fw@deneb.enyo.de>
4638
4639 * doc/install.texi: Ada-enabled bootstrap requires GNAT 3.14 or
4640 later.
4641
4642 2003-05-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4643
4644 * vax.h (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier
4645 warnings.
4646 (PRINT_OPERAND): Likewise.
4647
4648 2003-05-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4649
4650 * config/mips/mips.h (SUBTARGET_ASM_DEBUGGING_SPEC): Move
4651 -mdebug/-no-mdebug switches ...
4652 (MDEBUG_ASM_SPEC): ... here.
4653 Use only with gas.
4654 (EXTRA_SPECS): Initialize mdebug_asm_spec.
4655
4656 2003-05-29 Matt Kraai <kraai@alumni.cmu.edu>
4657
4658 * gthr-gnat.c: Remove #undef UNUSED.
4659 (__gnat_default_lock, __gnat_default_unlock): Prototype.
4660 (__gnat_task_lock, __gnat_task_unlock): Make declarations
4661 prototypes.
4662 (__gnat_install_locks): Convert declaration to ISO C90, make
4663 parameter declarations prototypes, and remove blank line.
4664 * gthr-gnat.h (__gnat_install_locks): Make parameter
4665 declarations prototypes.
4666
4667 2003-05-29 Jason Merrill <jason@redhat.com>
4668
4669 * Makefile.in (unstrap): Remove stage_last after make unstage1.
4670
4671 2003-05-29 Roger Sayle <roger@eyesopen.com>
4672
4673 * mips-tfile.c (PAGE_SIZE): Increase page size to 32K.
4674
4675 2003-05-29 Roger Sayle <roger@eyesopen.com>
4676 Kaveh Ghazi <ghazi@caip.rutgers.edu>
4677
4678 PR bootstrap/10169
4679 * mips-tfile.c (main): Use getopt_long instead of getopt.
4680 Add new command line option --version to display version.
4681 Treat --verbose like -v to report a single line version.
4682 (options): New global variable for getopt_long.
4683 * mips-tdump.c (main): Use getopt_long instead of getopt.
4684 New command line options -v, --version and -verbose to display
4685 the program version number (to match mips-tfile's behavior).
4686 (options): New global variable for getopt_long.
4687
4688 * gcov.c (options): Zero-terminate getopt_long array.
4689 * gcov-dump.c (options): Likewise.
4690
4691 * Makefile.in (mips-tdump.o): Add dependency on version.h.
4692
4693 2003-05-29 Stan Shebs <shebs@apple.com>
4694
4695 Remove OBJC_PROLOGUE everywhere.
4696 * objc/objc-act.c (finish_objc): Remove use of OBJC_PROLOGUE.
4697 * config/avr/avr.h: Remove no-op ref to OBJC_PROLOGUE.
4698 * config/d30v/d30v.h: Similarly.
4699 * config/ip2k/ip2k.h: Similarly.
4700 * doc/tm.texi: Remove doc of OBJC_PROLOGUE.
4701
4702 2003-05-29 Roger Sayle <roger@eyesopen.com>
4703
4704 * c-semantics.c (genrtl_do_stmt_1): New function split out from...
4705 (gen_rtl_do_stmt): ... here. Call genrtl_do_stmt_1.
4706 (expand_unreachable_stmt): Expand unreachable while statements
4707 using genrtl_do_stmt_1.
4708
4709 2003-05-29 Richard Sandiford <rsandifo@redhat.com>
4710
4711 * config/mips/mips-protos.h (mips_output_load_label): Declare.
4712 * config/mips/mips.c (mips_output_load_label): New function.
4713 (mips_output_conditional_branch): Use it.
4714 * config/mips/mips.md (jump): And here.
4715
4716 2003-05-28 Bob Wilson <bob.wilson@acm.org>
4717
4718 * config/xtensa/xtensa-protos.h (smalloffset_double_mem_p): Delete.
4719 (xtensa_split_operand_pair): New proto.
4720 * config/xtensa/xtensa.c (move_operand): Handle DFmode and DImode.
4721 (smalloffset_double_mem_p): Delete.
4722 (gen_float_relational, printx, print_operand, xtensa_va_arg):
4723 Fix whitespace.
4724 (xtensa_split_operand_pair): New.
4725 (xtensa_dbx_register_number): Fix formatting.
4726 * config/xtensa/xtensa.h (EXTRA_CONSTRAINT): Remove 'S' constraint.
4727 * config/xtensa/xtensa.md (movdi, movdf): Force constants to memory
4728 instead of splitting them into single-word moves. Remove unnecessary
4729 checks for reload_in_progress and reload_completed.
4730 (movdi_internal, movdf_internal): Change to post-reload split patterns.
4731 Add constraints to allow constant operands.
4732 (movsf_internal): Allow CONST_INT operands.
4733
4734 2003-05-27 Danny Smith <dannysmith@users.sourceforge.net>
4735
4736 * config.gcc (i[34567]86-*-mingw32*): Add host makefile
4737 fragment i386/x-mingw32.
4738 * config/i386/x-mingw32: New file. Make local_includedir
4739 relative to EXEC_PREFIX.
4740
4741 2003-05-27 Aaron W. LaFramboise <awlaframboise@aol.com>
4742
4743 * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Update.
4744 (MD_STARTFILE_PREFIX): Define.
4745
4746 2003-05-27 Denis Chertykov <denisc@overta.ru>
4747
4748 * cselib.c (cselib_invalidate_regno): Abort if hardreg have a
4749 VOIDmode.
4750 * cselib.c (cselib_process_insn): Pass reg_raw_mode for hardreg in
4751 call of cselib_invalidate_regno.
4752
4753 2003-05-28 Daniel Jacobowitz <drow@mvista.com>
4754
4755 * config/mips/linux.h (LIB_SPEC): Add missing -lc and correct
4756 -lthread to -lpthread.
4757
4758 2003-05-28 Eric Botcazou <ebotcazou@libertysurf.fr>
4759 Bruce Korb <bkorb@gnu.org>
4760 Arno Klaassen <arno@heho.snv.jussieu.fr>
4761
4762 * fixinc/inclhack.def: Add missing declaration of getpagesize()
4763 to unistd.h on Solaris 2.5.1.
4764 Fix prototype of recv() and send() in sys/socket.h on
4765 Solaris 2.5.1 and 2.6.
4766 * fixinc/tests/base/unistd.h: Add solaris_unistd fix test.
4767 * fixinc/tests/base/sys/socket.h: Add solaris_socket test.
4768 * fixinc/check.tpl: Use 'diff -c', not 'diff -u'.
4769 * fixinc/fixincl.x: Regenerate.
4770
4771 2003-05-27 Jason Merrill <jason@redhat.com>
4772
4773 * tree.c (expr_first, expr_length): New fns.
4774 * tree.h: Declare them.
4775
4776 * tree.c (iterative_hash_expr): Hash commutative expressions
4777 consistently.
4778
4779 2003-05-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4780
4781 * tree.h (contains_placeholder_p): Now returns bool.
4782 (CONTAINS_PLACEHOLDER_P): New macro.
4783 (type_contains_placeholder_p): New function.
4784 * tree.c (save_expr): Remove code avoiding folding COMPONENT_REF.
4785 (contains_placeholder_p): Now returns bool.
4786 Rework to use CONTAINS_PLACEHOLDER_P macro.
4787 (type_contains_placeholder_p): New function.
4788 * fold-const.c (fold, case COMPONENT_REF): Don't fold if
4789 type_contains_placeholder_p.
4790 (fold_range_test, fold_mathfn_compare, fold_inf_compare, fold):
4791 Use CONTAINS_PLACEHOLDER_P macro.
4792 * builtins.c (fold_builtin): Likewise.
4793 * calls.c (initialize_argument_information): Likewise.
4794 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
4795 * explow.c (expr_size): Likewise.
4796 * expr.c (store_constructor, get_inner_reference): Likewise.
4797 * function.c (assign_parms): Likewise.
4798 * stor-layout.c (variable_size): Likewise.
4799
4800 2003-05-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
4801
4802 * diagnostic.h (output_verbatim, verbatim): Remove printf
4803 attribute.
4804
4805 2003-05-25 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4806
4807 * doc/contrib.texi (Contributors): Update Kean Johnston.
4808
4809 2003-05-24 David Edelsohn <edelsohn@gnu.org>
4810
4811 * config/rs6000/rs6000.md (save_fpregs_{si,di}): Add length attribute.
4812
4813 2003-05-24 Nathanael Nerode <neroden@gcc.gnu.org>
4814
4815 * config/rs6000/440.md, config/stormy16/stormy16protos.h,
4816 config/stormy16/stormy16.c, config/stormy16/stormy16.md:
4817 Replace "GNU CC" with "GCC".
4818
4819 2003-05-24 Matt Kraai <kraai@alumni.cmu.edu>
4820
4821 * builtins.c (expand_builtin_memcpy): Use mode of dest_addr for
4822 intermediate computation.
4823
4824 2003-05-23 Eric Christopher <echristo@redhat.com>
4825
4826 * config/mips/mips.md (clzsi, clzdi): New patterns.
4827
4828 2003-05-23 Geoffrey Keating <geoffk@apple.com>
4829
4830 * gcc.c (default_compilers): Use -o to specify preprocessor's output
4831 file. Make -no-integrated-cpp work when building PCH files.
4832 * objc/lang-specs.h: Likewise.
4833
4834 2003-05-23 Nathanael Nerode <neroden@gcc.gnu.org>
4835
4836 * fixinc/Makefile.in: Correct description.
4837 * fixinc/Makefile.in, fixinc/fixfixes.c, fixinc/fixincl.c,
4838 fixinc/fixlib.c, fixinc/fixlib.h, fixinc/fixtests.c,
4839 fixinc/genfixes: Replace "GNU CC" with "GCC".
4840
4841 2003-05-23 Roger Sayle <roger@eyesopen.com>
4842
4843 * builtins.def: Define atan, atanf, atanl, tan, tanf and tanl
4844 builtin functions (and their __builtin_* variants).
4845 * builtins.c (mathfn_built_in): Handle tan{,f,l} and atan{,f,l}.
4846 (expand_builtin): Don't expand tan{,f,l} or atan{,f,l} when not
4847 optimizing.
4848
4849 * doc/extend.texi: Document new tan and atan builtins, and
4850 their float and long double variants.
4851
4852 2003-05-23 Jason Thorpe <thorpej@wasabisystems.com>
4853
4854 * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define
4855 __sparcv9 in the TARGET_ARCH64 case.
4856
4857 Fri May 23 22:17:32 CEST 2003 Jan Hubicka <jh@suse.cz>
4858
4859 * i386.c (ix86_reorg): Calls are also jumps.
4860
4861 2003-05-23 J"orn Rennecke <joern.rennecke@superh.com>
4862
4863 * cse.c (count_reg_usage): When processing an INSNs REG_EQUAL
4864 note containing an EXPR_LIST, process all the arguments.
4865
4866 Fri May 23 21:19:31 CEST 2003 Jan Hubicka <jh@suse.cz>
4867 Andreas Jaeger <aj@suse.de>
4868
4869 * i386.h (TARGET_CPU_CPP_BUILTINS): Define __amd64 and __amd64__;
4870 do not use assertion.
4871
4872 2003-05-23 Mike Stump <mrs@apple.com>
4873
4874 * tlink.c (scan_linker_output): Add support for darwin linker, as it
4875 emits unresolved symbols one per line, consuming the entire line.
4876
4877 2003-05-23 Larin Hennessy <larin@science.oregonstate.edu>
4878 Zack Weinberg <zack@codesourcery.com>
4879
4880 * explow.c (allocate_dynamic_stack_space): Remove call to gen_probe.
4881 * config/m68k/m68k.c (m68k_output_function_prologue):
4882 Remove code under #if NEED_PROBE.
4883 * config/m68k/m68k.h: Don't define NEED_PROBE.
4884 * config/m68k/m68k.md: Remove "probe" insn.
4885 * doc/md.texi: Remove documentation of "probe" pattern.
4886
4887 2003-05-23 Dorit Naishlos <gcchaifa@il.ibm.com>
4888
4889 * config/rs6000/rs6000.md (save_fpregs_{si,di}): Add branch attribute.
4890
4891 2003-05-23 Eric Botcazou <ebotcazou@libertysurf.fr>
4892
4893 * doc/install.texi: Remove sparc64-*-*. Add sparc64-*-solaris2*.
4894 Document sparcv9-*-solaris2* as a synonym for sparc64-*-solaris2*.
4895
4896 2003-05-22 Roger Sayle <roger@eyesopen.com>
4897
4898 * real.c (real_maxval): New function to return the largest finite
4899 value representable in a given mode (i.e. FLT_MAX and DBL_MAX).
4900 * real.h (real_maxval): Prototype here.
4901 * fold-const.c (fold_inf_compare): Transform comparisons against
4902 +-Infinity into comparisons against DBL_MAX (or equivalent).
4903
4904 2003-05-22 Mike Stump <mrs@apple.com>
4905
4906 * config.gcc (*-*-darwin*): Remove use_collect2=no, as it is the
4907 default.
4908
4909 2003-05-22 DJ Delorie <dj@redhat.com>
4910
4911 * calls.c (expand_call): If the arg block is going to grow
4912 downward, we need argblock to point to the top of the block,
4913 not the bottom.
4914
4915 2003-05-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4916
4917 * c-decl.c (duplicate_decls): Test DECL for ERROR_MARK.
4918
4919 * expr.c (expand_expr, case CONSTRUCTOR): Put into memory if
4920 constant and EXPAND_CONST_ADDRESS, not just EXPAND_INITIALIZER.
4921
4922 2003-05-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4923
4924 * m68hc11.c: Don't use the `0' flag for asm_fprintf specifiers.
4925 * m68k.c: Likewise.
4926 * m68k.h: Likewise.
4927
4928 2003-05-22 Zack Weinberg <zack@codesourcery.com>
4929
4930 PR other/2873
4931 * fixinc/inclhack.def (avoid_wchar_t_type): Add bypass
4932 expressions to prevent triggering on recent curses.h,
4933 linux/nls.h, or X11/Xlib.h.
4934 (stdio_va_list): Add _G_va_list to bypass pattern.
4935 (strict_ansi_not): Add bypass pattern for __SCO_VERSION__.
4936 * fixinc/fixincl.x: Regenerate.
4937
4938 2003-05-22 Rekha Bhintade <rekhad@kpitcummins.com>
4939
4940 * gcc/config/sh/sh.h (TARGET_SWITCHES): Display all the target
4941 switches when --target-help option is specified.
4942
4943 2003-05-22 Eric Botcazou <ebotcazou@libertysurf.fr>
4944
4945 PR bootstrap/10805
4946 * doc/install.texi (sparc-sun-solaris2.7): Document bootstrap
4947 failure with Sun assembler 5.0 Alpha 03/27/98.
4948
4949 2003-05-21 Loren James Rittle <ljrittle@acm.org>
4950
4951 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Add -D__sparcv9
4952 to match system compiler convention.
4953
4954 2003-05-21 Danny Smith <dannysmith@users.sourceforge.net>
4955
4956 * gthr-win32.h (__GTHREAD_HIDE_WIN32API): Test for nonzero
4957 value, not just if defined.
4958 Update copyright year.
4959
4960 2003-05-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4961
4962 PR target/6428
4963 * pa-hpux10.h (LINK_SPEC, LIB_SPEC): Move -L options for profiling
4964 directories from LIB_SPEC to LINK_SPEC. Emit warning if `-p' or `-pg'
4965 option is used without `-static'.
4966 * pa-hpux11.h (LINK_SPEC, LIB_SPEC): Likewise.
4967 * pa64-hpux.h (LINK_SPEC, LIB_SPEC): Likewise.
4968
4969 2003-05-21 Bob Wilson <bob.wilson@acm.org>
4970
4971 * config/xtensa/xtensa.h (MASK_SERIALIZE_VOLATILE,
4972 TARGET_SERIALIZE_VOLATILE): Delete.
4973 (MASK_CONST16, MASK_ABS, MASK_ADDX): Renumber flag bits.
4974 (TARGET_DEFAULT): Remove MASK_SERIALIZE_VOLATILE.
4975 (TARGET_SWITCHES): Remove "-mserialize-volatile" and
4976 "-mno-serialize-volatile".
4977 * config/xtensa/xtensa.c (print_operand): Remove checks of
4978 TARGET_SERIALIZE_VOLATILE.
4979 * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
4980 * doc/invoke.texi (Option Summary, Xtensa Options): Remove
4981 "-mserialize-volatile" and "-mno-serialize-volatile" options.
4982
4983 2003-05-21 Nathan Sidwell <nathan@codesourcery.com>
4984
4985 * c-parse.in (fndef): Set DECL_SOURCE_LINE and FILE earlier.
4986 (nested_function): Likewise.
4987 (notype_nested_function): Likewise.
4988
4989 2003-05-21 Nick Clifton <nickc@redhat.com>
4990
4991 * config/stormy16/stormy-abi: Update overflow type for
4992 R_XSTORMY16_16 reloc.
4993
4994 2003-05-21 Nathan Sidwell <nathan@codesourcery.com>
4995
4996 * c-common.h (enum rid): Remove RID_BOUNDED, RID_UNBOUNDED.
4997 * c-parse.in (reswords): Remove __bounded__ and __unbounded__.
4998 (rid_to_yy): Remove RID_BOUNDED, RID_UNBOUNDED slots.
4999 * print-tree.c (print_node): Remove ambient-boundedness.
5000 * tree.h (tree_common): Remove bounded_flag.
5001 (BOUNDED_INDIRECT_YPE_P, BOUNDED_POINTER_TYPE_P,
5002 BOUNDED_REFERENCE_TYPE_P, MAYBE_BOUNDED_INDIRECT_TYPE_P,
5003 MAYBE_BOUNDED_POINTER_TYPE_P, MAYBE_BOUNDED_REFERENCE_TYPE_P,
5004 TREE_BOUNDED, TYPE_MAIN_VARIANTS_PHYSICALLY_EQUAL_P,
5005 TYPE_MAIN_PHYSICAL_VARIANT, TYPE_BOUNDED, TYPE_QUAL_BOUNDED):
5006 Remove.
5007 (TYPE_QUALS): Remove BOUNDED.
5008 (TREE_EXPR_QUALS, TREE_FUNC_QUALS): Remove.
5009 (TYPE_BOUNDED_VALUE, TYPE_BOUNDED_BASE, TYPE_BOUNDED_EXTENT,
5010 TYPE_BOUNDED_SUBTYPE, TYPE_UNBOUNDED_VARIANT, TYPE_POINTER_DEPTH,
5011 TYPE_AMBIENT_BOUNDEDNESS, MAX_POINTER_DEPT,
5012 VA_LIST_POINTER_DEPTH): Remove.
5013 (struct tree_type): Remove pointer_depth.
5014
5015 2003-05-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5016
5017 * c-pretty-print.c (pp_c_integer_literal): Use
5018 HOST_WIDE_INT_PRINT_DOUBLE_HEX.
5019
5020 2003-05-20 Roger Sayle <roger@eyesopen.com>
5021 Kazu Hirata <kazu@cs.umass.edu>
5022 Joern Rennecke <joern.rennecke@superh.com>
5023
5024 * gcse.c (cprop_jump): Make use of REG_EQUAL notes on both
5025 setcc and jump, if they exist. If substituted instruction
5026 fails to validate, store current effort in a REG_EQUAL note.
5027 (cprop_insn): Don't attempt further substitutions if the
5028 current instruction has been deleted.
5029 (local_cprop_pass): Likewise.
5030
5031 * jump.c (redirect_jump): Also update REG_EQUAL note, if
5032 one is attached to the jump instruction.
5033 (invert_jump): Delete REG_EQUAL note on jump, if one exists.
5034
5035 2003-05-21 Danny Smith <dannysmith@users.sourceforge.net>
5036
5037 PR c++/9738
5038 * config/i386/winnt.c (i386_pe_encode_section_info): Enable
5039 even if not first.
5040
5041 2003-05-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5042
5043 * genautomata.c (output_description, output_automaton_units,
5044 output_state_arcs): Add missing specifiers.
5045
5046 2003-05-20 Bob Wilson <bob.wilson@acm.org>
5047
5048 * config/xtensa/lib1funcs.asm: Avoid use of .Lfe* in .size directives.
5049 (do_abs, do_addx2, do_addx4, do_addx8): New assembler macros.
5050 (__mulsi3): Use do_addx* instead of ADDX* instructions. Formatting.
5051 (nsau): Rename to do_nsau. Provide alternate version for use when
5052 the NSAU instruction is available.
5053 (__udivsi3, __divsi3, __umodsi3, __modsi3): Use do_nsau macro.
5054 (__divsi3, __modsi3): Use do_abs macro instead of ABS instruction.
5055 * config/xtensa/xtensa-config.h: Update comments to match binutils.
5056 (XCHAL_HAVE_ABS, XCHAL_HAVE_ADDX): Define.
5057 * config/xtensa/xtensa.h (MASK_ABS, MASK_ADDX): Define.
5058 (TARGET_ABS, TARGET_ADDX): Define.
5059 (TARGET_DEFAULT): Conditionally add MASK_ABS and MASK_ADDX.
5060 (TARGET_SWITCHES): Add "abs", "no-abs", "addx", and "no-addx".
5061 * config/xtensa/xtensa.md (*addx2, *addx4, *addx8, *subx2, *subx4,
5062 *subx8): Set predicate condition to TARGET_ADDX.
5063 (abssi2): Set predicate condition to TARGET_ABS.
5064 * doc/invoke.texi (Option Summary): Document new "-mabs", "-mno-abs",
5065 "-maddx", and "-mno-addx" options.
5066 (Xtensa Options): Likewise. Also tag some opcode names with @code.
5067
5068 2003-05-20 Kevin Ryde <user42@zip.com.au>
5069 Wolfgang Bangerth <bangerth@dealii.org>
5070
5071 PR/10355
5072 * doc/extend.texi: Put a warning into the documentation
5073 of attribute regparm.
5074
5075 2003-05-20 Jason Merrill <jason@redhat.com>
5076
5077 * tree.c (expr_last): New fn.
5078 * tree.h: Declare it.
5079 * objc/objc-act (expr_last): Rename to objc_expr_last.
5080
5081 2003-05-20 J"orn Rennecke <joern.rennecke@superh.com>
5082
5083 * sh.c (sh_register_move_cost): Add clase for moving between
5084 FP registers and MAC registers.
5085
5086 2003-05-19 John David Anglin <dave.anglin@nrc-gnrc.gc.ca>
5087
5088 * pa/milli64.S ($$mulI): Fix typo.
5089
5090 2003-05-19 Matt Kraai <kraai@alumni.cmu.edu>
5091
5092 * alias.c (nonlocal_mentioned_p, nonlocal_referenced_p)
5093 (nonlocal_set_p): Remove initial blank line.
5094 * dwarf2out.c (simple_type_size_in_bits): Likewise.
5095 * et-forest.c (et_forest_create): Likewise.
5096 * explow.c (stabilize): Likewise.
5097 * fix-header.c (write_lbrac): Likewise.
5098 * graph.c (start_fct, node_data): Likewise.
5099 * jump.c (only_sets_cc0_p, sets_cc0_p): Likewise.
5100 * rtlanal.c (global_reg_mentioned_p): Likewise.
5101 * tree.c (bit_position): Likewise.
5102
5103 2003-05-19 Alexandre Oliva <aoliva@redhat.com>
5104
5105 * config/mips/linux64.h (LIB_SPEC): Add missing -lc and correct
5106 -lthread to -lpthread.
5107
5108 2003-05-19 Neil Booth <neil@daikokuya.co.uk>
5109
5110 * c-opts.c (c_common_decode_option): Don't accept dollars
5111 as identifier characters in assembly.
5112 * doc/cpp.texi: Document this.
5113
5114 2003-05-19 Seth Arnold <sarnold@wirex.com>
5115 Aldy Hernandez <aldyh@redhat.com>
5116
5117 * config/rs6000/rs6000.c (rs6000_stack_info): Do not add
5118 vrsave_size twice.
5119
5120 2003-05-19 Aldy Hernandez <aldyh@redhat.com>
5121
5122 * doc/tm.texi (function_arg): Fix typo.
5123
5124 2003-05-19 Matt Austern <austern@apple.com>
5125
5126 * c-opts.c (COMMAND_LINE_OPTIONS): Add -Winvalid-offsetof option.
5127 * c-common.h (warn_invalid_offsetof): Declare.
5128 * c-common.c (warn_invalid_offsetof): Define.
5129 * doc/invoke.texi: Document -Winvalid-offsetof.
5130 * testsuite/g++.dg/other/offsetof3.C: New.
5131 * testsuite/g++.dg/other/offsetof4.C: New.
5132
5133 2003-05-19 Kevin B. Hendricks <kevin.hendricks@sympatico.ca>
5134 David Edelsohn <edelsohn@gnu.org>
5135
5136 * config/rs6000/rs6000.c (rs6000_alignment_string,
5137 rs6000_alignment_flags): New variables.
5138 (rs6000_parse_alignment_option): New function.
5139 (rs6000_override_options): Call it.
5140 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -malign-XXX option.
5141 (MASK_ALIGN_POWER, MASK_ALIGN_NATURAL, TARGET_ALIGN_NATURAL): New
5142 macros.
5143 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Always use COMPUTED
5144 natural alignment if TARGET_NATURAL_ALIGNMENT
5145 (ROUND_TYPE_ALIGN): Always use default record alignment if
5146 TAGET_NATURAL_ALIGNMENT.
5147 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Same
5148 (ROUND_TYPE_ALIGN): Same.
5149 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Same
5150 (ROUND_TYPE_ALIGN): Same.
5151 * doc/invoke.texi (Option Summary, PowerPC Options): Document
5152 new options.
5153
5154 2003-05-19 J"orn Rennecke <joern.rennecke@superh.com>
5155
5156 * c-decl.c (finish_decl): When setting the DECL_ASSEMBLER_NAME
5157 of a function using ASMSPEC, prepend a star.
5158
5159 2003-05-19 Jason Merrill <jason@redhat.com>
5160
5161 * tree-inline.c (copy_body_r): Avoid generating &* during inline
5162 substitution.
5163
5164 2003-05-19 Andrew Macleod <amacleod@redhat.com>
5165
5166 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Do
5167 not mark assignments to the hard frame pointer as being stack
5168 frame related.
5169 (xstormy16_expand_epilogue): Mark adjustments to the stack
5170 pointer as being stack frame related.
5171
5172 2003-05-19 Richard Sandiford <rsandifo@redhat.com>
5173
5174 * config/mips/mips.h (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY,
5175 ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS): New macros.
5176 (PREDICATE_CODES): Add hilo_operand.
5177 * config/mips/mips.c (hilo_operand): New predicate.
5178 (mips_adjust_insn_length): Account for the number nops that might
5179 be needed to avoid hardware hazards.
5180 * config/mips/mips.md (dslot): Remove attribute.
5181 (hazard): New attribute.
5182 (can_delay): Use it. Check for calls, branches & jumps.
5183 (muldi3): Use the standard dmult pattern for mips16 code.
5184 (muldi3_internal, muldi3_internal2): Adjust conditions accordingly.
5185
5186 2003-05-19 Richard Sandiford <rsandifo@redhat.com>
5187
5188 * config/mips/mips-protos.h (final_prescan_insn,
5189 mips_count_memory_refs, mips_fill_delay_slot): Remove.
5190 * config/mips/mips.h (delay_type, dslots_load_total,
5191 dslots_load_filled, dslots_jump_total, dslots_jump_filled,
5192 dslots_number_nops, num_refs, mips_load_reg, mips_load_reg2,
5193 mips_load_reg3, mips_load_reg4): Remove.
5194 (MASK_STATS): Remove.
5195 (MASK_EXPLICIT_RELOCS): Reuse its value.
5196 (TARGET_STATS): Remove.
5197 (TARGET_SWITCHES): Turn -mstats and -mno-stats into no-ops.
5198 Warn that -mstats is now ignored.
5199 (FINAL_PRESCAN_INSN): Undefine.
5200 (DBR_OUTPUT_SEQEND): Remove handling of dslot statistics.
5201 (ASM_OUTPUT_REG_POP): Likewise.
5202 * config/mips/mips.c (dslots_load_total, dslots_load_filled,
5203 dslots_jump_total, dslots_jump_filled, dslots_number_nops, num_refs,
5204 mips_load_reg, mips_load_reg2, mips_load_reg3, mips_load_reg4,
5205 mips_fill_delay_slot, mips_count_memory_refs,
5206 final_prescan_insn): Remove.
5207 (output_block_move): Remove calls to mips_count_memory_refs.
5208 (print_operand): Remove printing of #nop for TARGET_STATS.
5209 (mips_output_function_epilogue): Remove TARGET_STATS code.
5210 Reorganize setting of fnnmae.
5211 * config/mips/mips.md: Remove handling of dslot statistics
5212 throughout file. Change all fcmp patterns into normal asm
5213 templates, removing calls to mips_fill_delay_slot.
5214 * doc/invoke.texi: Remove documentation of -mstats.
5215
5216 2003-05-19 Richard Sandiford <rsandifo@redhat.com>
5217
5218 * config/mips/mips.c (mips_class_max_nregs): Return the number of
5219 words in the mode.
5220
5221 2003-05-19 Richard Sandiford <rsandifo@redhat.com>
5222
5223 * config/mips/mips.c (override_options): Disable explicit
5224 relocs for old ABIs unless using gas.
5225
5226 2003-05-18 Eric Christopher <echristo@redhat.com>
5227
5228 * config/mips/mips.h: Remove definition of g_switch_value.
5229
5230 2003-05-18 Matt Kraai <kraai@alumni.cmu.edu>
5231
5232 * flags.h (g_switch_value): Change to an unsigned
5233 HOST_WIDE_INT.
5234 * toplev.c (g_switch_value): Likewise.
5235
5236 * config/alpha/alpha.c (small_symbolic_operand): Remove
5237 g_switch_value cast.
5238 (alpha_in_small_data_p): Cast size to an unsigned
5239 HOST_WIDE_INT.
5240
5241 * config/frv/frv.c (frv_in_small_data_p): Cast size to an
5242 unsigned HOST_WIDE_INT.
5243 * config/frv/frv.h (g_switch_value, g_switch_set): Remove.
5244 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Declare g_switch_set.
5245
5246 * config/m32r/m32r.c (m32r_in_small_data_p): Cast size to an
5247 unsigned HOST_WIDE_INT.
5248 (m32r_asm_file_start): Use HOST_WIDE_INT_PRINT_UNSIGNED.
5249 * config/m32r/m32r.h (g_switch_value, g_switch_set): Remove.
5250 (ASM_OUTPUT_ALIGNED_COMMON): Declare g_switch_value.
5251
5252 * config/rs6000/rs6000.c (rs6000_file_start): Use
5253 HOST_WIDE_INT_PRINT_UNSIGNED.
5254 (small_data_operand): Cast summand to unsigned HOST_WIDE_INT.
5255 (rs6000_elf_in_small_data_p): Cast size to unsigned
5256 HOST_WIDE_INT.
5257 * config/rs6000/sysv4.h (g_switch_value, g_switch_set):
5258 Remove.
5259 (SUBTARGET_OVERRIDE_OPTIONS): Declare g_switch_value and
5260 g_switch_set.
5261 (ASM_OUTPUT_ALIGNED_LOCAL): Declare g_switch_value and remove
5262 g_switch_value cast.
5263
5264 2003-05-18 Roger Sayle <roger@eyesopen.com>
5265 Zack Weinberg <zack@codesourcery.com>
5266
5267 PR middle-end/10472
5268 * builtins.c (expand_builtin_memcpy): Call force_operand on
5269 expressions and use simplify_gen_binary to create the addition.
5270
5271 2003-05-18 Andreas Schwab <schwab@suse.de>
5272
5273 * config/m68k/m68k.md: Use define_constants for unspec numbers.
5274
5275 2003-05-18 Neil Booth <neil@daikokuya.co.uk>
5276
5277 * config/sparc/sparc.h: Define sparc for now.
5278 2003-05-18 Nathanael Nerode <neroden@gcc.gnu.org>
5279
5280 * config.gcc: Clear xm_file, md_file at the beginning of each pass.
5281
5282 * config/stormy16/stormy16.h: Remove about 3000 lines of
5283 target-independent comments. Update copyright notice.
5284
5285 * doc/collect2.texi: GNU CC -> GCC.
5286 * doc/headerdirs.texi: GNU CC -> GCC.
5287
5288 2003-05-18 Gabriel Dos Reis <gdr@integrable-solutions.net>
5289
5290 * hashtable.h (struct ht_identifier): Add data member "hash_value".
5291 * hashtable.c (ht_lookup): Use it when searching, remember.
5292 (ht_expand): Do not recompute.
5293 * tree.h (IDENTIFIER_HASH_VALUE): New macro.
5294
5295 2003-05-18 Nathan Sidwell <nathan@codesourcery.com>
5296
5297 * gcov-io.c (gcov_read_bytes): Fix fread thinko.
5298
5299 2003-05-18 Neil Booth <neil@daikokuya.co.uk>
5300
5301 * c-cppbuiltin.c (TARGET_OS_CPP_BUILTINS, TARGET_OBJFMT_CPP_BUILTINS):
5302 Default here.
5303 (c_cpp_builtins): Invoke TARGET_OBJFMT_CPP_BUILTINS().
5304 * defaults.h: Don't default TARGET_OS_CPP_BUILTINS here.
5305 * config/elfos.h (TARGET_OBJFMT_CPP_BUILTINS): Define __ELF__.
5306 * config/freebsd-spec.h, config/netbsd-elf.h, config/alpha/gnu.h,
5307 config/arm/linux-elf.h, config/arm/rtems-elf.h,
5308 config/arm/unknown-elf.h, config/cris/cris.h, config/cris/linux.h,
5309 config/h8300/elf.h, config/i370/linux.h, config/i386/beos-elf.h,
5310 config/i386/gnu.h, config/i386/linux.h, config/i386/linux64.h,
5311 config/i386/moss.h, config/i386/rtemself.h, config/ia64/ia64.h,
5312 config/m68k/rtemself.h, config/mcore/mcore-elf.h, config/mips/linux.h,
5313 config/pa/pa-linux.h, config/rs6000/linux.h, config/rs6000/linux64.h,
5314 config/rs6000/sysv4.h, config/rs6000/vxworks.h, config/s390/linux.h,
5315 config/sh/coff.h, config/sh/elf.h, config/sh/rtemself.h,
5316 config/sh/sh.h, config/sparc/linux.h, config/sparc/linux64.h,
5317 config/sparc/openbsd64.h, config/sparc/sp64-elf.h,
5318 config/sparc/sp86x-elf.h, config/xtensa/elf.h, config/xtensa/linux.h:
5319 Don't define __ELF__.
5320 * config/alpha.h, config/m68k/linux.h (TARGET_OBJFMT_CPP_BUILTINS):
5321 Define __ELF__.
5322 * doc/cpp.texi: Document __ELF__.
5323 * doc/tm.texi: Document TARGET_OBJFMT_CPP_BUILTINS. *
5324
5325 2003-05-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5326
5327 * builtins.c (validate_arglist): Eliminate libiberty VA_ macros,
5328 always use stdarg.
5329 * c-errors.c (pedwarn_c99): Likewise.
5330 * c-format.c (status_warning): Likewise.
5331 * c-semantics.c (build_stmt): Likewise.
5332 * calls.c (emit_library_call, emit_library_call_value): Likewise.
5333 * collect2.c (notice, fatal_perror, fatal, error): Likewise.
5334 * cpperror.c (cpp_error, cpp_error_with_line): Likewise.
5335 * diagnostic.c (build_message_string, output_printf,
5336 output_verbatim, verbatim, inform, warning, pedwarn, error, sorry,
5337 fatal_error, internal_error, warning_with_decl, pedwarn_with_decl,
5338 error_with_decl, fnotice): Likewise.
5339 * dwarf2asm.c (dw2_asm_output_data, dw2_asm_output_delta,
5340 dw2_asm_output_offset, dw2_asm_output_pcrel, dw2_asm_output_addr,
5341 dw2_asm_output_addr_rtx, dw2_asm_output_nstring,
5342 dw2_asm_output_data_uleb128, dw2_asm_output_data_sleb128,
5343 dw2_asm_output_delta_uleb128, dw2_asm_output_delta_sleb128,
5344 dw2_asm_output_encoded_addr_rtx): Likewise.
5345 * emit-rtl.c (gen_rtx, gen_rtvec): Likewise.
5346 * errors.c (warning, error, fatal, internal_error): Likewise.
5347 * final.c (output_operand_lossage, asm_fprintf): Likewise.
5348 * fix-header.c (fatal): Likewise.
5349 * gcc.c (fatal, error, notice): Likewise.
5350 * gcov.c (fnotice): Likewise.
5351 * genattrtab.c (attr_rtx, attr_printf): Likewise.
5352 * gengtype.c (error_at_line, xasprintf, oprintf): Likewise.
5353 * gensupport.c (message_with_line): Likewise.
5354 * mips-tfile.c (fatal, error): Likewise.
5355 * protoize.c (notice): Likewise.
5356 * ra-debug.c (ra_debug_msg): Likewise.
5357 * read-rtl.c (fatal_with_file_and_line): Likewise.
5358 * rtl-error.c (error_for_asm, warning_for_asm): Likewise.
5359 * tree.c (build, build_nt, build_function_type_list): Likewise.
5360
5361 2003-05-17 Neil Booth <neil@daikokuya.co.uk>
5362
5363 * defaults.h (TARGET_CPU_CPP_BUILTINS, CPP_PREDEFINES): Remove.
5364 * gcc.c (cpp_predefines): Remove.
5365 (cpp_unique_options, do_spec_1): Remove handling of CPP_PREDEFINES.
5366 (static_specs): Remove predefines.
5367 * system.h: Poison CPP_PREDEFINES.
5368 * config/freebsd.h, config/openbsd.h, config/ptx4.h, config/svr3.h,
5369 config/svr4.h, doc/tm.texi: Remove references to CPP_PREDEFINES.
5370
5371 2003-05-17 Neil Booth <neil@daikokuya.co.uk>
5372
5373 * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68k-none.h,
5374 config/m68k/m68k.h, config/m68k/m68kemb.h, config/m68k/m68kv4.h,
5375 config/m68k/openbsd.h, config/m68k/rtemself.h: Remove CPP_PREDEFINES,
5376 use TARGET_OS_CPP_BUILTINS and TARGET_CPU_CPP_BUILTINS instead.
5377
5378 2003-05-17 Neil Booth <neil@daikokuya.co.uk>
5379
5380 PR c/9209
5381 * c-common.c, c-common.h (dollars_in_ident): Remove.
5382 * c-opts.c (DOLLARS_IN_IDENTIFIERS): Default to true.
5383 (c_common_init_options, c_common_decode_option): Set dollars_in_ident.
5384 * cpphash.h (warned_dollar): Rename warn_dollars.
5385 * cppinit.c (struct lang_flags, lang_defaults, cpp_set_lang)
5386 Permit dollars regardless of -std=.
5387 (post_options): Set warn_dollars.
5388 * cpplex.c (forms_identifier_p): Use warn_dollars.
5389 * config/darwin.h, config/alpha/vms.h, config/m68hc11/m68hc11.h:
5390 Remove redundant definitions of DOLLARS_IN_IDENTIFIERS.
5391 * doc/cpp.texi, doc/cppopts.texi, doc/invoke.texi, doc/tm.texi:
5392 Update documentation.
5393
5394 2003-05-17 Andreas Schwab <schwab@suse.de>
5395
5396 * config/m68k/m68k.c (m68k_output_function_prologue): Use
5397 HOST_WIDE_INT_PRINT_DEC for fprintf and %wd for asm_fprintf when
5398 formatting a HOST_WIDE_INT.
5399 (m68k_output_function_epilogue): Likewise.
5400
5401 2003-05-17 Zack Weinberg <zack@codesourcery.com>
5402
5403 * doc/install.texi: Remove information about desupported targets.
5404
5405 2003-05-17 Andreas Schwab <schwab@suse.de>
5406
5407 * config/m68k/coff.h: Remove support for Sun FPA and Sun SKY board.
5408 * config/m68k/linux.h: Likewise.
5409 * config/m68k/m68k-none.h: Likewise.
5410 * config/m68k/netbsd-elf.h: Likewise.
5411 * config/m68k/sgs.h: Likewise.
5412 * config/m68k/m68k.h: Likewise.
5413 * config/m68k/m68k.md: Likewise.
5414 * config/m68k/m68k.c: Likewise.
5415 * doc/md.texi (Machine Constraints): Remove Sun FPA specific
5416 constraints.
5417 * doc/invoke.texi (Option Summary): Remove -mfpa.
5418 (M680x0 Options): Likewise.
5419
5420 2003-05-17 David Edelsohn <edelsohn@gnu.org>
5421
5422 * rs6000.c (rs6000_function_value): Simplify REAL_TYPE logic.
5423
5424 2003-05-17 Neil Booth <neil@daikokuya.co.uk>
5425
5426 * config/sol2.h: Add TARGET_SUB_OS_CPP_BUILTINS.
5427 * config/sparc/liteelf.h, config/sparc/openbsd64.h,
5428 config/sparc/rtemself.h, config/sparc/sol2-64.h,
5429 config/sparc/sp64-elf.h, config/sparc/sp86x-elf.h:
5430 Update for use of TARGET_SUB_OS_CPP_BUILTINS.
5431
5432 2003-05-17 Neil Booth <neil@daikokuya.co.uk>
5433
5434 * i960/i960.h, i960/rtems.h: Use TARGET_OS_CPP_BUILTINS and
5435 TARGET_CPU_CPP_BUILTINS in preference to CPP_PREDEFINES.
5436
5437 2003-05-17 Neil Booth <neil@daikokuya.co.uk>
5438
5439 * config.gcc (sparc-*-sysv4*): Add sparc/sysv4-only.h.
5440 * sparc/aout.h, sparc/elf.h, sparc/freebsd.h, sparc/linux.h,
5441 sparc/linux64.h, sparc/lite.h, sparc/litecoff.h, sparc/liteelf.h,
5442 sparc/netbsd-elf.h, sparc/openbsd.h, sparc/openbsd64.h,
5443 sparc/pbd.h, sparc/rtemself.h, sparc/sol2-64.h, sparc/sol2-bi.h,
5444 sparc/sol2.h, sparc/sp64-elf.h, sparc/sp86-elf.h, sparc/sparc.h,
5445 sparc/sysv4.h,
5446 * sparc/sysv4-only.h: New.
5447
5448 2003-05-17 Alan Modra <amodra@bigpond.net.au>
5449
5450 * function.c (assign_parms): Check for zero size args.
5451
5452 2003-05-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5453
5454 * cfgloopanal.c (test_for_iteration): Use string concatentation on
5455 HOST_WIDE_INT_PRINT_* format specifier to collapse multiple
5456 function calls into one.
5457 * dbxout.c (dbxout_symbol): Likewise.
5458 * defaults.h (ASM_OUTPUT_SIZE_DIRECTIVE): Likewise.
5459 * dwarf2asm.c (dw2_asm_output_data_uleb128,
5460 dw2_asm_output_data_sleb128): Likewise.
5461 * genrecog.c (debug_decision_2): Likewise.
5462 * loop.c (emit_prefetch_instructions): Likewise.
5463 * print-rtl.c (print_rtx): Likewise.
5464 * print-tree.c (print_node_brief, print_node): Likewise.
5465 * ra-debug.c (dump_igraph, dump_graph_cost,
5466 dump_static_insn_cost): Likewise.
5467 * ra-rewrite.c (dump_cost): Likewise.
5468 * sdbout.c (PUT_SDB_INT_VAL, PUT_SDB_SIZE): Likewise.
5469 * sreal.c (dump_sreal): Likewise.
5470 * unroll.c (unroll_loop, precondition_loop_p): Likewise.
5471 * varasm.c (assemble_vtable_entry): Likewise.
5472
5473 * avr.c (avr_output_function_prologue,
5474 avr_output_function_epilogue, print_operand): Fix format specifier
5475 warnings.
5476 (init_cumulative_args): Mark parameter with ATTRIBUTE_UNUSED.
5477 * avr.h (FUNCTION_VALUE_REGNO_P): Fix signed/unsigned warnings.
5478
5479 2003-05-16 Geoffrey Keating <geoffk@apple.com>
5480
5481 * config/rs6000/rs6000.c (expand_block_move): Unify the TARGET_STRING
5482 and ! TARGET_STRING cases.
5483
5484 * doc/cppopts.texi (-undef): Fix texinfo warning.
5485
5486 * doc/cppopts.texi (-H): Document that -H works for PCH files too.
5487 * cppfiles.c (validate_pch): When -H is used, print some information
5488 about PCH files found.
5489
5490 2003-05-16 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5491
5492 * config/mips/t-elf: Remove obsolete rules adding dependencies on tm.h.
5493 * config/mips/t-isa3264, config/mips/t-r3900: Likewise.
5494 * config/mips/t-sr71k: Likewise.
5495
5496 2003-05-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5497
5498 * arc.c (arc_output_function_prologue,
5499 arc_output_function_epilogue): Fix format specifier warnings.
5500 * arc.h (LARGE_INT): Fix signed/unsigned warnings.
5501
5502 * v850.c (print_operand): Fix format specifier warnings.
5503
5504 * ns32k.c (ADJSP, ns32k_output_function_prologue): Fix format
5505 specifier warnings.
5506
5507 * mcore.c (mcore_print_operand_address, mcore_print_operand): Fix
5508 format specifier warnings.
5509
5510 * ip2k.c (function_prologue, function_epilogue, print_operand):
5511 Fix format specifier warnings.
5512 * ip2k.md: Likewise.
5513
5514 * i960.c (i960_output_function_prologue, i960_print_operand,
5515 i960_print_operand_addr): Fix format specifier warnings.
5516
5517 * i370.c (ascebc, ebcasc): Wrap in macros controlling usage.
5518 (i370_output_function_prologue): Fix format specifier warnings.
5519 * i370.h (PRINT_OPERAND): Likewise.
5520
5521 * fr30.c (fr30_print_operand): Fix format specifier warnings.
5522
5523 * dsp16xx.c (print_operand_address): Fix format specifier warning.
5524 * dsp16xx.h (INCLUDE_DEFAULTS): Add missing initializers.
5525
5526 * c4x.c (c4x_print_operand, c4x_print_operand_address): Fix format
5527 specifier warnings.
5528
5529 * alpha.c (print_operand_address, alpha_start_function,
5530 unicosmk_output_ssib): Use string concatentation on
5531 HOST_WIDE_INT_PRINT_* format specifier to collapse multiple
5532 function calls into one.
5533 * arm.c (arm_print_operand): Likewise.
5534 * cris.c (cris_asm_output_mi_thunk): Likewise.
5535 * frv.c (frv_asm_output_mi_thunk): Likewise.
5536 * ia64.c (ia64_print_operand, process_set): Likewise.
5537 * m68k.c (m68k_output_function_epilogue, m68k_output_mi_thunk):
5538 Likewise.
5539 * mips/iris5gas.h (PUT_SDB_SIZE): Likewise.
5540 * mips.h (PUT_SDB_INT_VAL, PUT_SDB_SIZE): Likewise.
5541 * pa.c (output_div_insn, pa_asm_output_mi_thunk): Likewise.
5542 * pa.h (PRINT_OPERAND_ADDRESS): Likewise.
5543 * rs6000.c (rs6000_va_start, print_operand_address): Likewise.
5544 * s390.c (s390_assemble_integer): Likewise.
5545 * sparc.c (sparc_flat_function_prologue,
5546 sparc_flat_function_epilogue): Likewise.
5547 * stormy16.c (xstormy16_print_operand_address, xstormy16_print_operand): Likewise.
5548 * vax.c (vax_output_mi_thunk): Likewise.
5549
5550 * frv.c (frv_print_operand_memory_reference): Fix format specifier
5551 warning.
5552 (frv_rtx_costs): Mark parameter with ATTRIBUTE_UNUSED.
5553
5554 * m68k.c (m68k_output_function_epilogue): Fix format specifier
5555 warnings.
5556
5557 * stormy16-protos.h (xs_hi_general_operand,
5558 xs_hi_nonmemory_operand): Prototype.
5559 * stormy16.c (xstormy16_output_shift): Fix format specifier
5560 warnings.
5561
5562 * cris.c: Fix format specifier warnings.
5563
5564 2003-05-16 Nick Clifton <nickc@redhat.com>
5565
5566 * config/arm/lib1funcs.asm: Fix typo: LSM instead of LSYM.
5567
5568 2003-05-16 Wolfgang Bangerth <bangerth@dealii.org>
5569
5570 * doc/bugreport.texi: Remove most of the of the preface of the
5571 bugs section.
5572
5573 2003-05-16 Jakub Jelinek <jakub@redhat.com>
5574
5575 * config/ia64/unwind-ia64.c (uw_update_reg_address): Handle
5576 .save XX, r0.
5577
5578 2003-05-15 Roger Sayle <roger@eyesopen.com>
5579
5580 * config/alpha/alpha.h (ASM_OUTPUT_SKIP): Fix typo.
5581
5582 2003-05-15 Eric Christopher <echristo@redhat.com>
5583
5584 * cfgcleanup.c (merge_blocks): Fix return value.
5585
5586 2003-05-15 Eric Christopher <echristo@redhat.com>
5587
5588 * combine.c (expand_compound_operation): Make sure
5589 that zero_extend operation is profitable.
5590
5591 2003-05-15 Richard Henderson <rth@redhat.com>
5592
5593 * config/alpha/linux.h, config/alpha/linux-elf.h: Remove
5594 code protected by USE_GNULIBC_1.
5595
5596 2003-05-15 Zack Weinberg <zack@codesourcery.com>
5597
5598 * config.gcc: Purge all targets obsoleted in GCC 3.3. Also
5599 remove hppa*-*-mpeix* which could not be built, and prune
5600 files from tmake_file= or tm_file= lists that don't exist.
5601
5602 * config/alpha/alpha-interix.h, config/alpha/alpha32.h
5603 * config/alpha/t-interix, config/arm/conix-elf.h
5604 * config/arm/t-arm-aout, config/arm/t-strongarm-coff
5605 * config/arm/unknown-elf-oabi.h, config/i386/win32.h
5606 * config/m68k/3b1.h, config/m68k/3b1g.h, config/m68k/amix.h
5607 * config/m68k/atari.h, config/m68k/ccur-GAS.h, config/m68k/crds.h
5608 * config/m68k/hp2bsd.h, config/m68k/hp3bsd.h
5609 * config/m68k/hp3bsd44.h, config/m68k/linux-aout.h
5610 * config/m68k/m68k-psos.h, config/m68k/mot3300.h
5611 * config/m68k/pbb.h, config/m68k/plexus.h, config/m68k/sun2.h
5612 * config/m68k/sun2o4.h, config/m68k/sun3.h, config/m68k/sun3mach.h
5613 * config/m68k/sun3n.h, config/m68k/sun3n3.h, config/m68k/sun3o3.h
5614 * config/m68k/t-mot3300, config/m68k/t-mot3300-gald
5615 * config/m68k/t-mot3300-gas, config/m68k/t-mot3300-gld
5616 * config/m68k/tower-as.h, config/m68k/tower.h
5617 * config/m88k/aout-dbx.h, config/m88k/m88k-aout.h
5618 * config/m88k/m88k-modes.def, config/m88k/m88k-move.sh
5619 * config/m88k/m88k-protos.h, config/m88k/m88k.c
5620 * config/m88k/m88k.h, config/m88k/m88k.md, config/m88k/openbsd.h
5621 * config/m88k/sysv4.h, config/m88k/t-luna, config/m88k/t-luna-gas
5622 * config/m88k/t-m88k, config/m88k/t-sysv4, config/mcore/gfloat.h
5623 * config/mips/rtems64.h, config/mips/sni-gas.h
5624 * config/mips/sni-svr4.h, config/mips/t-ecoff
5625 * config/mn10200/lib1funcs.asm, config/mn10200/mn10200-protos.h
5626 * config/mn10200/mn10200.c, config/mn10200/mn10200.h
5627 * config/mn10200/mn10200.md, config/mn10200/t-mn10200
5628 * config/pa/pa-hiux.h, config/pa/pa-hpux7.h, config/pa/pa-hpux9.h
5629 * config/pa/pa-oldas.h, config/pa/t-mpeix, config/psos.h
5630 * config/romp/romp-protos.h, config/romp/romp.c
5631 * config/romp/romp.h, config/romp/romp.md, config/rs6000/aix31.h
5632 * config/rs6000/aix3newas.h, config/rs6000/mach.h
5633 * config/sparc/bsd.h, config/sparc/hal.h
5634 * config/sparc/linux-aout.h, config/sparc/lynx-ng.h
5635 * config/sparc/lynx.h, config/sparc/netbsd.h
5636 * config/sparc/sp86x-aout.h, config/sparc/splet.h
5637 * config/sparc/sun4gas.h, config/sparc/sun4o3.h
5638 * config/sparc/sunos4.h, config/sparc/t-chorus-elf
5639 * config/sparc/t-halos, config/sparc/t-sparcbare
5640 * config/sparc/t-splet, config/sparc/t-sunos41
5641 * config/v850/rtems.h: Delete file.
5642
5643 2003-05-15 Aldy Hernandez <aldyh@redhat.com>
5644
5645 * config/rs6000/rs6000-protos.h (function_value): Protoize.
5646
5647 * config/rs6000/rs6000.h (FUNCTION_VALUE): Call function.
5648
5649 * config/rs6000/rs6000.c (rs6000_function_value): New.
5650
5651 2003-05-15 Philip Blundell <philb@gnu.org>
5652
5653 * config/arm/arm.c (arm_is_xscale): Rename to arm_arch_xscale.
5654 All uses updated.
5655 (arm_tune_xscale): New variable.
5656 (arm_override_options): Set it.
5657 (arm_adjust_cost): Use it in place of arm_arch_xscale.
5658 (arm_gen_load_multiple): Likewise.
5659 (arm_gen_store_multiple): Likewise.
5660 * config/arm/arm.md (is_xscale): Likewise.
5661 * config/arm/arm.h (arm_tune_xscale): Declare.
5662
5663 2003-05-15 Philip Blundell <philb@gnu.org>
5664
5665 PR target/10730
5666 * config/arm/arm.c (adjacent_mem_locations): Reject offsets
5667 involving invalid constants.
5668
5669 2003-05-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5670
5671 * pa.c (hppa_expand_prologue): Remove blockage.
5672
5673 2003-05-15 Wolfgang Bangerth <bangerth@dealii.org>
5674
5675 * doc/bugreport.texi: Remove most of the bug reporting
5676 instructions and merge them into bugs.html.
5677
5678 2003-05-14 Matt Kraai <kraai@alumni.cmu.edu>
5679
5680 * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Cast
5681 g_switch_value to unsigned HOST_WIDE_INT.
5682
5683 2003-05-14 Eric Christopher <echristo@redhat.com>
5684
5685 * combine.c: Fix header comments.
5686 (distribute_notes): Remove usage of elim_i1, elim_i2. Propagate
5687 to all calls and prototype.
5688
5689 2003-05-14 Roger Sayle <roger@eyesopen.com>
5690
5691 PR optimization/10764
5692 * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
5693 Add an explicit clobber to show that UNSPEC_FPATAN clobbers st(1).
5694 (*fyl2x_sfxf3, *fyl2x_dfxf3, *fyl2x_xf3, *fyl2x_tfxf3): Likewise,
5695 add an explicit clobber to show that UNSPEC_FYL2X clobbers st(1).
5696 (logsf2, logdf2, logxf2, logtf2): Update expander patterns to match
5697 the corresponding *fyl2x_?fxf3 instructions.
5698
5699 2003-05-14 Bob Wilson <bob.wilson@acm.org>
5700
5701 * config/xtensa/lib2funcs.S (TRAMPOLINE_SIZE): Change from 49 to 59.
5702 * config/xtensa/xtensa-config.h (XCHAL_HAVE_CONST16,
5703 XCHAL_HAVE_L32R): New.
5704 * config/xtensa/xtensa-protos.h (non_const_move_operand,
5705 xtensa_load_constant, xtensa_function_prologue,
5706 xtensa_function_epilogue): Delete prototypes.
5707 (xtensa_expand_prologue): New.
5708 * config/xtensa/xtensa.c (frame_size_const,
5709 TARGET_ASM_FUNCTION_PROLOGUE, TARGET_MACHINE_DEPENDENT_REORG,
5710 non_const_move_operand, xtensa_load_constant, xtensa_reorg,
5711 xtensa_function_prologue): Delete.
5712 (add_operand, xtensa_mem_offset): Formatting.
5713 (move_operand): If the const16 option is available, allow any SFmode
5714 and SImode constants.
5715 (xtensa_emit_move_sequence): Inline the former contents of
5716 xtensa_load_constant with modifications to handle the const16 option.
5717 (override_options): Add xtensa_char_to_class['W'] and set it to
5718 the general register class only if the const16 option is enabled.
5719 Fix formatting. Disallow PIC when using the const16 option.
5720 (print_operand): Reorganize to switch on "letter" instead of the
5721 RTL code. Add output_operand_lossage calls for invalid cases.
5722 Add support for 't' and 'b' letters.
5723 (xtensa_expand_prologue): New function to replace
5724 xtensa_function_prologue and xtensa_reorg.
5725 (xtensa_function_epilogue): Declare this as static. Delete code
5726 to print the retw.n or retw instruction.
5727 (xtensa_return_addr): Use A0_REG instead of 0.
5728 (xtensa_rtx_costs): Add costs for using the const16 option.
5729 * config/xtensa/xtensa.h (MASK_CONST16, TARGET_CONST16): New.
5730 (TARGET_DEFAULT): Add CONST16 if L32R instructions not available.
5731 (TARGET_SWITCHES): Add "const16" and "no-const16".
5732 (REG_CLASS_FROM_LETTER): Add comment about new 'W' letter.
5733 (EXTRA_CONSTRAINT): Change 'T' constraint to only apply when not
5734 using the const16 option.
5735 (TRAMPOLINE_TEMPLATE): Rewrite to avoid hardwired use of l32r insn.
5736 (TRAMPOLINE_SIZE): Change from 49 to 59.
5737 (INITIALIZE_TRAMPOLINE): Adjust offsets to match new trampoline.
5738 (GO_IF_LEGITIMATE_ADDRESS): Do not allow constant pool addresses
5739 when using the const16 option.
5740 (PREDICATE_CODES): Delete non_const_move_operand.
5741 * config/xtensa/xtensa.md (define_constants): Add A1_REG, A8_REG, and
5742 UNSPECV_ENTRY.
5743 (movdi, movdf): If the source is a constant, always expand to a
5744 sequence of movsi insns.
5745 (movdi_internal, movdf_internal): Remove alternative using l32r insns.
5746 (movsi_internal, movsf_internal): Add alternative using const16 insns.
5747 (movsf): Add const16 support.
5748 (entry, prologue, epilogue): New.
5749 (set_frame_ptr): Add missing mode for unspec_volatile operation.
5750 Likewise for subsequent split pattern.
5751 * doc/invoke.texi (Option Summary, Xtensa Options): Document new
5752 "-mconst16" and "-mno-const16" options.
5753
5754 2003-05-14 Richard Henderson <rth@redhat.com>
5755
5756 * config/ia64/ia64.c (ia64_expand_load_address): Force destination
5757 to be DImode register. Merge load_symptr.
5758 * config/ia64/ia64.md (load_symptr): Remove.
5759
5760 2003-05-14 Richard Henderson <rth@redhat.com>
5761
5762 * rtl.h (TREE_CONSTANT_POOL_ADDRESS_P): Rename from
5763 DEFERRED_CONSTANT_P.
5764 * integrate.c (copy_rtx_and_substitute): Update use.
5765 * varasm.c (build_constant_desc): Set SYMBOL_REF_DECL
5766 to the copy generated.
5767 (maybe_output_constant_def_contents): Examine TREE_ASM_WRITTEN
5768 of the constant to see if we should emit.
5769 (mark_constant): Similarly.
5770 (output_constant_def_contents): Set TREE_ASM_WRITTEN.
5771
5772 2003-05-14 David Edelsohn <edelsohn@gnu.org>
5773
5774 * config/rs6000/rs6000.md (movsi_internal2): Use compare for self
5775 move record condition.
5776 (movdi_internal2): Same.
5777
5778 2003-05-14 Nathan Sidwell <nathan@codesourcery.com>
5779
5780 * gcov-io.h (gcov_write_bytes, gcov_read_bytes): Remove here.
5781 (GCOV_TAG_*) Force type to gcov_unsigned_t.
5782 (GCOV_CHECK, GCOV_CHECK_READING, GCOV_CHECK_WRITING): New.
5783 (struct gcov_var): Remove modified. Add start, length, offset,
5784 overread. Have buffer array for libgcov.
5785 (gcov_sync, gcov_seek): Definitions moved to gcov-io.c.
5786 (gcov_position, gcov_rewrite, gcov_is_eof): Adjust.
5787 * gcov-io.c (gcov_open): Set mode, do not read anything.
5788 (gcov_close): Write final block.
5789 (gcov_write_block, gcov_allocate): New.
5790 (gcov_write_bytes): Make static. Write or allocate buffer.
5791 (gcov_write_unsigned, gcov_write_counter): Buffer can never be
5792 null.
5793 (gcov_write_string): Adjust.
5794 (gcov_write_tag)
5795 (gcov_write_length): Adjust. Flush the block.
5796 (gcov_write_tag_length): Buffer can never be null.
5797 (gcov_read_bytes): Make static. Read in block.
5798 (gcov_sync): Moved here. Adjust.
5799 (gcov_seek): Moved here. Adjust.
5800 * coverage.c (read_counts_file): Adjust.
5801 * gcov-dump.c (print_prefix): Add position parameter.
5802 (flag_dump_positions): New flag.
5803 (options, main, print_usage): Add it.
5804 (dump_file, tag_blocks, tag_arcs, tag_lines, tag_counters,
5805 tag_summary): Adjust.
5806 * gcov.c (read_graph_file, read_count_file): Adjust.
5807 * libgcov.c (gcov_exit): Adjust.
5808
5809 * Makefile.in (LIBGCC_DEPS): Use $(srcdir) on gcov files
5810 (libgcov.a): Depend on libgcc.a.
5811 (gcov.o, gcov-dump.o): Add gcov-io.c.
5812 * mklibgcc.in (libgcov_c_dep): Use $(srcdir).
5813
5814 * loop.c (check_dbra_loop): Factor common test.
5815
5816 2003-05-14 Ben Elliston <bje@wasabisystems.com>
5817
5818 * doc/md.texi (Automaton pipeline description): Grammar fixes.
5819
5820 2003-05-14 Richard Sandiford <rsandifo@redhat.com>
5821
5822 * target-def.h (TARGET_MACHINE_DEPENDENT_REORG): Define.
5823 (TARGET_INITIALIZER): Include it.
5824 * target.h (struct gcc_target): Add machine_dependent_reorg field.
5825 * toplev.c (rest_of_compilation): Use targetm.machine_dependent_reorg.
5826 * system.h: Poison MACHINE_DEPENDENT_REORG.
5827
5828 * config/alpha/alpha-protos.h (alpha_reorg): Remove declaration.
5829 * config/alpha/alpha.h (MACHINE_DEPENDENT_REORG): Remove.
5830 * config/alpha/alpha.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
5831 (alpha_handle_trap_shadows): Remove "first insn" parameter.
5832 (alpha_align_insns): Likewise.
5833 (alpha_reorg): Likewise. Make static. Update calls to above
5834 functions.
5835
5836 * config/arm/arm-protos.h (arm_reorg): Remove declaration.
5837 * config/arm/arm.h (MACHINE_DEPENDENT_REORG): Remove.
5838 * config/arm/arm.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
5839 (arm_reorg): Remove parameter. Make static.
5840
5841 * config/avr/avr-protos.h (machine_dependent_reorg): Remove.
5842 * config/avr/avr.h (MACHINE_DEPENDENT_REORG): Remove.
5843 * config/avr/avr.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
5844 (avr_reorg): Renamed from machine_dependent_reorg. Make static.
5845 Remove parameter.
5846
5847 * config/c4x/c4x-protos.h (c4x_process_after_reload): Remove.
5848 * config/c4x/c4x.h (MACHINE_DEPENDENT_REORG): Remove.
5849 * config/c4x/c4x.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
5850 (c4x_reorg): Renamed from c4x_process_after_reload. Make static.
5851 Remove parameter.
5852
5853 * config/d30v/d30v-protos.h (d30v_machine_dependent_reorg): Remove.
5854 * config/d30v/d30v.h (MACHINE_DEPENDENT_REORG): Remove.
5855 * config/d30v/d30v.c (d30v_machine_dependent_reorg): Remove.
5856
5857 * config/frv/frv-protos.h (frv_machine_dependent_reorg): Remove.
5858 * config/frv/frv.c: Remove orphaned comment.
5859
5860 * config/i386/i386-protos.h (x86_machine_dependent_reorg): Remove.
5861 * config/i386/i386.h (MACHINE_DEPENDENT_REORG): Remove.
5862 * config/i386/i386.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
5863 (ix86_reorg): Renamed from x86_machine_dependent_reorg. Make static.
5864 Remove parameter.
5865
5866 * config/ia64/ia64-protos.h (ia64_reorg): Remove declaration.
5867 * config/ia64/ia64.h (MACHINE_DEPENDENT_REORG): Remove.
5868 * config/ia64/ia64.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
5869 (emit_insn_group_barriers): Remove "first insn" parameter.
5870 (emit_all_insn_group_barriers): Likewise.
5871 (ia64_reorg): Likewise. Make static. Update calls to above functions.
5872 (ia64_output_mi_thunk): Update call to emit_all_insn_group_barriers.
5873
5874 * config/ip2k/ip2k-protos.h (machine_dependent_reorg): Remove.
5875 * config/ip2k/ip2k.h (MACHINE_DEPENDENT_REORG): Remove.
5876 * config/ip2k/ip2k.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
5877 (ip2k_reorg): Renamed from machine_dependent_reorg. Make static.
5878 Remove parameter.
5879
5880 * config/m68hc11/m68hc11-protos.h (m68hc11_reorg): Remove declaration.
5881 * config/m68hc11/m68hc11.h (MACHINE_DEPENDENT_REORG): Remove.
5882 * config/m68hc11/m68hc11.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
5883 (m68hc11_reorg): Make static. Remove parameter.
5884
5885 * config/mcore/mcore-protos.h (mcore_dependent_reorg): Remove.
5886 * config/mcore/mcore.h (MACHINE_DEPENDENT_REORG): Remove.
5887 * config/mcore/mcore.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
5888 (conditionalize_optimization): Remove parameter.
5889 (mcore_reorg): Renamed from mcore_dependent_reorg. Remove parameter.
5890 Make static. Update call to conditionalize_optimization.
5891
5892 * config/mips/mips-protos.h (machine_dependent_reorg): Remove.
5893 * config/mips/mips.h (MACHINE_DEPENDENT_REORG): Remove.
5894 * config/mips/mips.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
5895 (mips_reorg): Renamed from machine_dependent_reorg. Remove parameter.
5896 Make static.
5897
5898 * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg): Remove.
5899 * config/mmix/mmix.h (MACHINE_DEPENDENT_REORG): Remove.
5900 * config/mmix/mmix.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
5901 (mmix_reorg): Renamed from mmix_machine_dependent_reorg. Make static.
5902 Remove parameter.
5903
5904 * config/pa/pa-protos.h (pa_reorg): Remove declaration.
5905 * config/pa/pa.h (MACHINE_DEPENDENT_REORG): Remove.
5906 * config/pa/pa.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
5907 (pa_combine_instructions): Remove "first insn" parameter.
5908 (remove_useless_addtr_insns): Likewise.
5909 (pa_reorg): Likewise. Make static. Update calls to above functions.
5910
5911 * config/rs6000/rs6000.h (MACHINE_DEPENDENT_REORG): Remove
5912 commented-out definition.
5913
5914 * config/s390/s390-protos.h (s390_machine_dependent_reorg): Remove.
5915 * config/s390/s390.h (MACHINE_DEPENDENT_REORG): Remove.
5916 * config/s390/s390.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
5917 (s390_reorg): Renamed from s390_machine_dependent_reorg. Make static.
5918 Remove parameter.
5919
5920 * config/sh/sh-protos.h (machine_dependent_reorg): Remove.
5921 * config/sh/sh.h (MACHINE_DEPENDENT_REORG): Remove.
5922 * config/sh/sh.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
5923 (sh_reorg): Renamed from machine_dependent_reorg. Make static.
5924 Remove parameter.
5925 (sh_output_mi_thunk): Call sh_reorg directly.
5926 * config/sh/sh.md: Update comment.
5927
5928 * config/stormy16/stormy16.h (MACHINE_DEPENDENT_REORG): Remove
5929 commented-out definition.
5930
5931 * config/v850/v850-protos.h (v850_reorg): Remove declaration.
5932 * config/v850/v850.h (MACHINE_DEPENDENT_REORG): Remove.
5933 * config/v850/v850.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
5934 (v850_reorg): Make static. Remove parameter.
5935
5936 * config/xtensa/xtensa-protos.h (xtensa_reorg): Remove declaration.
5937 * config/xtensa/xtensa.h (MACHINE_DEPENDENT_REORG): Remove.
5938 * config/xtensa/xtensa.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
5939 (xtensa_reorg): Make static. Remove parameter.
5940
5941 * doc/tm.texi (MACHINE_DEPENDENT_REORG): Remove.
5942 (TARGET_MACHINE_DEPENDENT_REORG): Document.
5943
5944 2003-05-13 Richard Henderson <rth@redhat.com>
5945
5946 * c-decl.c (duplicate_decls): Re-invoke make_decl_rtl if
5947 the old decl had instantiated DECL_RTL.
5948
5949 2003-05-13 Mike Stump <mrs@apple.com>
5950
5951 * doc/invoke.texi (Option Summary): Kill off documentation for -$.
5952
5953 2003-05-13 Janis Johnson <janis187@us.ibm.com>
5954
5955 * config/rs6000/sysv4.h (OUTPUT_ASM_ALIGNED_LOCAL): Expect
5956 HOST_WIDE_INT argument.
5957
5958 2003-05-13 Jason Merrill <jason@redhat.com>
5959
5960 * tree.h (STRIP_MAIN_TYPE_NOPS): New macro.
5961
5962 * tree.c (iterative_hash_expr): New fn.
5963
5964 * c-semantics.c (emit_local_var): Don't mess with temp slots if
5965 there's no initializer.
5966
5967 2003-05-13 Richard Sandiford <rsandifo@redhat.com>
5968
5969 * final.c (final_scan_insn): Apply the effects of frame-related
5970 delay slot insns before emitting a delayed branch.
5971
5972 2003-05-13 Nick Clifton <nickc@redhat.com>
5973
5974 * config/mcore/mcore.md (jump): Use emit_jump_insn.
5975
5976 2003-05-13 Ulrich Weigand <uweigand@de.ibm.com>
5977
5978 * config/s390/s390.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Second
5979 parameter of ASM_OUTPUT_SKIP must have type unsigned HOST_WIDE_INT.
5980
5981 2003-05-12 DJ Delorie <dj@redhat.com>
5982
5983 * expr.c (move_by_pieces): Honor the alignment of TO and FROM.
5984 (emit_push_insn): Don't use push when the source alignment is less
5985 than the stack's push rounding.
5986
5987 2003-05-13 Zack Weinberg <zack@codesourcery.com>
5988
5989 * diagnostic.c (output_format): Add support for %m.
5990 (output_printf, output_verbatim, diagnostic_set_info,
5991 verbatim): Set err_no field of the text_info structure being
5992 initialized.
5993 (fatal_io_error): Delete function.
5994 * diagnostic.h (text_info): Add err_no field.
5995 * toplev.h (fatal_io_error): Delete prototype.
5996
5997 * c-opts.c, c-pch.c, dwarfout.c, ggc-common.c, ggc-page.c, graph.c
5998 * toplev.c, config/mips/mips.c, config/rs6000/host-darwin.c
5999 * objc/objc-act.c: Replace all calls to fatal_io_error with
6000 calls to fatal_error; add ": %m" to the end of all the affected
6001 error messages.
6002
6003 2003-05-13 Zack Weinberg <zack@codesourcery.com>
6004
6005 * varasm.c (notice_rtl_inlining_of_deferred_constant): New function.
6006 * rtl.h: Prototype it.
6007 * integrate.c (copy_rtx_and_substitute <SYMBOL_REF>): Call it
6008 when appropriate.
6009
6010 2003-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6011
6012 * config/s390/s390.md ("*iordi3_oi"): Do not mark commutative.
6013 ("*iorsi3_oi"): Likewise.
6014
6015 2003-05-13 Richard Earnshaw <rearnsha@arm.com>
6016
6017 * arm.md (compare_scc): Use shorter sequence for EQ case.
6018 (ior_scc_scc_cmp, and_scc_scc_cmp): New insn-and-split patterns.
6019 (and_scc_scc): Ensure split only applies when there is a dominance
6020 of the comparisons.
6021 (and_scc_scc_nodom): New insn-and-split pattern.
6022
6023 2003-05-13 Richard Sandiford <rsandifo@redhat.com>
6024
6025 * unwind-dw2.c (uw_init_context_1): Don't pass &outer_cfa directly
6026 to _Unwind_SetGRPtr().
6027
6028 2003-05-13 Michael Eager <eager@mvista.com>
6029
6030 * Makefile.in: Initialize program_transform_cross_name from
6031 @program_transform_name@ instead of target_alias.
6032
6033 2003-05-12 Janis Johnson <janis187@us.ibm.com>
6034 Alan Modra <amodra@bigpond.net.au>
6035 Jakub Jelinek <jakub@redhat.com>
6036
6037 * configure.in (HAVE_AS_TLS): Add powerpc and powerpc64 tests.
6038 * configure: Rebuild.
6039 * config/rs6000/rs6000-protos.h: Update.
6040 * config/rs6000/rs6000.c (rs6000_tls_size): New.
6041 (rs6000_tls_size_string): New.
6042 (rs6000_parse_tls_size_option): New.
6043 (rs6000_legitimize_tls_address): New.
6044 (rs6000_tls_get_addr): New.
6045 (rs6000_got_sym): New.
6046 (rs6000_tls_symbol_ref): New.
6047 (rs6000_tls_symbol_ref_1): New.
6048 (rs6000_get_some_local_dynamic_name): New.
6049 (rs6000_get_some_local_dynamic_name_1): New.
6050 (TARGET_HAVE_TLS): New.
6051 (TARGET_CANNOT_FORCE_CONST_MEM): New.
6052 (rs6000_override_options): Handle -mtls-size option.
6053 (constant_pool_expr_1): Handle TLS symbols.
6054 (rs6000_legitimize_address): Handle TLS symbols.
6055 (rs6000_tls_referenced_p): New.
6056 (rs6000_legitimate_address): Handle TLS symbols.
6057 (rs6000_emit_move): Handle TLS symbols.
6058 (print_operand): Handle TLS symbols.
6059 (uses_TOC): Handle TLS symbols.
6060 (rs6000_emit_prologue): Use symbol for unspec constant.
6061 * config/rs6000/rs6000.h (HAVE_AS_TLS): New.
6062 (some_ld_name): New.
6063 (LEGITIMATE_CONSTANT_P): Handle TLS symbols.
6064 (PRINT_OPERAND_PUNCT_VALID_P): Handle TLS symbols.
6065 (PREDICATE_CODES): Add rs6000_tls_symbol_ref.
6066 * config/rs6000/rs6000.md (load_toc_v4_PIC_1, load_toc_v4_PIC_1b):
6067 Support TLS.
6068 (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64, tls_dtprel_32,
6069 tls_dtprel_64, tls_dtprel_ha_32, tls_dtprel_ha_64, tls_dtprel_lo_32,
6070 tls_dtprel_lo_64, tls_got_dtprel_32, tls_got_dtprel_64, tls_tprel_32,
6071 tls_tprel_64, tls_tprel_ha_32, tls_tprel_ha_64, tls_tprel_lo_32,
6072 tls_tprel_lo_64, tls_got_tprel_32, tls_got_tprel_64, tls_tls_32,
6073 tls_tls_64): New.
6074 * config/rs6000/sysv4.h (SUBTARGET_OPTIONS): Add tls_size.
6075
6076 2003-05-12 Neil Booth <neil@cat.daikokuya.co.uk>
6077
6078 * Makefile.in (stage2_build, stage3_build, stage4_build):
6079 Set BUILD_CC to the same as CC.
6080
6081 2003-05-12 Neil Booth <neil@daikokuya.co.uk>
6082
6083 * alloc-pool.c (last_id): Put in ENABLE_CHECKING guards.
6084
6085 2003-05-12 Andreas Schwab <schwab@suse.de>
6086
6087 * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Mark 'exp'
6088 as unused.
6089 (bundling): Initialize 'pos'.
6090 (ia64_expand_builtin): Initialize 'rmode'.
6091
6092 2003-05-12 David Edelsohn <edelsohn@gnu.org>
6093
6094 * config/rs6000/xcoff.h (ASM_OUTPUT_SKIP): Accept HOST_WIDE_INT.
6095 (ASM_OUTPUT_ALIGNED_COMMON): Same.
6096 (ASM_OUTPUT_LOCAL): Same.
6097
6098 Mon May 12 21:53:29 CEST 2003 Jan Hubicka <jh@suse.cz>
6099
6100 * varasm.c (output_constant): Fix underflow.
6101
6102 2003-05-12 Mark Mitchell <mark@codesourcery.com>
6103
6104 PR other/10745
6105 * configure.in: Correct detection of GNU ld version number.
6106 * configure: Regenerated.
6107
6108 2003-05-12 Zack Weinberg <zack@codesourcery.com>
6109
6110 * diagnostic.c (diagnostic_for_decl): Take a
6111 diagnostic_context argument. Restructure to be consistent
6112 with diagnostic_report_diagnostic.
6113 (diagnostic_count_diagnostic): Now static. Take a
6114 diagnostic_info argument, not just a diagnostic_t. Some code
6115 moved here from internal_error. Move a case label for
6116 clarity.
6117 (diagnostic_action_after_output): New function. Code moved
6118 here from internal_error and fatal_error.
6119 (bug_report_request): New #define so that this text appears in
6120 only one place.
6121 (diagnostic_report_diagnostic): Update to match changes to
6122 diagnostic_count_diagnostic. Call diagnostic_action_after_output.
6123 (diagnostic_set_info): Call gettext here.
6124
6125 (pedwarn): Update comment. Don't call gettext here.
6126 (sorry): Use report_diagnostic. Don't call gettext here.
6127 (fatal_error): Remove final fnotice and exit, but call
6128 real_abort to prevent warnings about noreturn function returning.
6129 (internal_error): Likewise. Don't do ICE suppression here nor
6130 call context->internal_error.
6131 (warning_with_decl): Suppress for decls in system headers.
6132 Adjust call to diagnostic_for_decl.
6133 (pedwarn_with_decl): Likewise.
6134 (error_with_decl): Adjust call to diagnostic_for_decl.
6135 (error_recursion): Use bug_report_request.
6136
6137 * diagnostic.h: Remove prototype of diagnostic_count_diagnostic.
6138 * objc/objc-act.c (error_with_ivar, warn_with_method): Don't call
6139 diagnostic_count_diagnostic.
6140
6141 2003-05-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6142
6143 * pa64-hpux.h (ASM_OUTPUT_ALIGNED_COMMON): Correct last patch.
6144
6145 Mon May 12 15:57:54 CEST 2003 Jan Hubicka <jh@suse.cz>
6146
6147 * rs6000/darwin.h (ASM_OUTPUT_COMMON): Accept HOST_WIDE_INT
6148 * mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Fix warning.
6149 * mips/mips.h (ASM_OUTPUT_SKIP): Fix typo in the previous patch.
6150
6151 2003-05-12 Roger Sayle <roger@eyesopen.com>
6152
6153 * doc/rtl.texi: Document zero_extract as a valid destination
6154 of a set insn.
6155
6156 2003-05-12 Richard Earnshaw <rearnsha@arm.com>
6157
6158 * arm/lib1funcs.asm (LSYM): Define -- on ELF prefix a local symbol with
6159 '.'. Change all local symbol definitions and references to use LSYM.
6160
6161 Mon May 12 11:32:53 CEST 2003 Jan Hubicka <jh@suse.cz>
6162
6163 * expr.h (assemble_static_space): Update prototype.
6164 * output.h (assemble_zeros, output_constant): Likewise.
6165 * elfos.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON): Make it 64bit clean
6166 * alpha.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASK_OUTPUT_LOCAL): Make
6167 it 64bit clean.
6168 * elf.h (ASM_OTUPUT_SKIP): Likewise.
6169 * unicosmk.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMM): Likewise.
6170 * arm.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
6171 Expect HOST_WIDE_INT operand.
6172 * aout.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
6173 Expect HOST_WIDE_INT operand.
6174 * unknown-elf.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
6175 Expect HOST_WIDE_INT operand.
6176 * avr.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_SKIP): Expect
6177 HOST_WIDE_INT operand.
6178 * c4x.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP,
6179 ASM_OUTPUT_BSS): Expect HOST_WIDE_INT operand.
6180 * aout.h (ASM_OTUPUT_SKIP): Likewise.
6181 * cris.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
6182 * darwin.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_COMMON): Likewise.
6183 * dsp16xx.h (ASM_OTUPUT_SKIP): Likewise.
6184 * frv.h (ASM_OTUPUT_SKIP): Likewise.
6185 * h8300.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_LOCAL): Likewise.
6186 * 370.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
6187 Make it 64bit
6188 clean.
6189 * att.h (ASM_OUTPUT_SKIP): Expect HOST_WIDE_INT operand.
6190 * bsd.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
6191 Make it 64bit clean.
6192 * darwin.h (ASM_OUTPUT_SKIP): Make it 64bit clean..
6193 * sco5.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Expect
6194 HOST_WIDE_INT operand
6195 * svr3gas.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
6196 Expect HOST_WIDE_INT operand
6197 * sysv3.h (ASM_OUTPUT_SKIP): Expect HOST_WIDE_INT operand
6198 * i960.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON,
6199 ASM_OUTPUT_ALIGNED_LOCAL): Expect HOST_WIDE_INT operand
6200 * ip2k.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
6201 Likewise.
6202 * m32r.h (ASM_OUTPUT_COMMON): Likewise.
6203 * 3b1.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
6204 Likewise.
6205 * amix.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
6206 * crds.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
6207 * hp320.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
6208 ASM_OUTPUT_SKIP): Likewise.
6209 * m68k.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
6210 Likewise.
6211 * m68kelf.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
6212 ASM_OUTPUT_SKIP): Likewise.
6213 * m68kv4.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
6214 ASM_OUTPUT_SKIP): Likewise.
6215 * mot3300.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP): Likewise.
6216 * netbsd-elf.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON,
6217 ASM_OUTPUT_SKIP): Likewise.
6218 * sgs.h (ASM_OUTPUT_SKIP): Likewise.
6219 * tower-as.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON,
6220 ASM_OUTPUT_SKIP): Likewise.
6221 * m88k.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON, ASM_OUTPUT_SKIP):
6222 Likewise.
6223 * mcore.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_BSS, ASM_OUTPUT_SKIP): Likewise.
6224 * iris.h (ASM_OUTPUT_LOCAL): Likewise.
6225 * mips.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP): Likewise.
6226 * ns32k.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
6227 ASM_OUTPUT_SKIP): Make it 64bit clean.
6228 * pa-pro-end.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_ALIGNED_LOCAL):
6229 Make it 64bit clean.
6230 * pa.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_ALIGNED_LOCAL,
6231 ASM_OUTPUT_SKIP): Make it 64bit clean.
6232 * hpux.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_ALIGNED_LOCAL): Make it
6233 64bit clean.
6234 * romp.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON): Expect
6235 HOST_WIDE_INT argument
6236 * s390.h (ASM_OUTPUT_SKIP): Expect HOST_WIDE_INT argument.
6237 * sh.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON): Expect
6238 HOST_WIDE_INT argument
6239 * sol2.h (ASM_OUTPUT_SKIP): HOST_WIDE_INT argument
6240 * sparc.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON): HOST_WIDE_INT argument
6241 * svr3.h (ASM_OUTPUT_SKIP): HOST_WIDE_INT argument
6242 * vax.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
6243 HOST_WIDE_INT argument
6244 * vaxv.h (ASM_OUTPUT_LOCAL): HOST_WIDE_INT argument
6245 * xtensa.h (ASM_OUTPUT_LOCAL): HOST_WIDE_INT argument
6246 * varasm.c (asm_output_bss, asm_output_aligned_bss,
6247 asm_emit_uninitialized, assemble_zeros, assemble_static_space):
6248 HOST_WIDE_INT argument
6249
6250 2003-05-10 Steven Bosscher <steven@gcc.gnu.org>
6251
6252 * cgraphunit.c (cgraph_create_edges): Drop walk_tree in
6253 favor of walk_tree_without_duplicates. Add comments.
6254
6255 2003-05-12 Josef Zlomek <zlomekj@suse.cz>
6256
6257 * alloc-pool.h (ALLOC_POOL_ID_TYPE): New type.
6258 (struct alloc_pool_def): New element 'id'.
6259 * alloc-pool.c (fancy_abort): Extern function prototype.
6260 (abort): Macro which uses fancy_abort.
6261 (struct allocation_object_def): New structure.
6262 (ALLOCATION_OBJECT_PTR_FROM_USER_PTR): New macro.
6263 (USER_PTR_FROM_ALLOCATION_OBJECT_PTR): New macro.
6264 (last_id): New variable.
6265 (create_alloc_pool): Add the offset of u.data to size of element,
6266 increase and use last_id.
6267 (free_alloc_pool): Do the checking only when ENABLE_CHECKING.
6268 (pool_alloc): Likewise. Set ID for elements.
6269 (pool_free): Check whether the PTR was allocated from POOL.
6270
6271 2003-05-11 Richard Henderson <rth@redhat.com>
6272
6273 PR c/10675
6274 * c-decl.c: Include hashtab.h.
6275 (detect_field_duplicates): New.
6276 (finish_struct): Use it.
6277 * Makefile.in (c-decl.o): Update.
6278 * c-parse.in (structsp_attr): Nreverse component_decl_list results.
6279 (component_decl_list, component_decl_list2,
6280 components, components_notype): Build list in reverse order.
6281 (enumlist): Clarify docs. Use TREE_CHAIN not chainon.
6282
6283 * tree.c (chainon): Special case op2 null as well.
6284 Reorg for clarity.
6285
6286 2003-05-11 Roger Sayle <roger@eyesopen.com>
6287
6288 * config/i386/i386.md (logsf2, logdf2, logxf2, logdf2): New patterns
6289 to implement log, logf and logl built-ins as inline x87 intrinsics.
6290 (UNSPEC_FYL2X): New unspec to represent x87's "fyl2x" instruction.
6291 (*fyl2x_sfxf3, *fyl2x_dfxf3, *fyl2x_xf3, *fyl2x_tfxf3): New insn
6292 patterns for x87's "fyl2x" instruction, used by log?f2 patterns.
6293
6294 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FYL2X like
6295 UNSPEC_FPATAN, i.e. replaces two stack operands with single result.
6296
6297 2003-05-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6298
6299 * Makefile.in (out_object_file): Don't set -Wno-error for ${cpu}.o.
6300
6301 * sparc.c (print_operand): Fix uninitialized warning.
6302
6303 2003-05-12 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6304
6305 * cfgloopanal.c (num_loop_insns, average_num_loop_insns): Count only
6306 real insns.
6307 * loop-unroll.c (unroll_loop_runtime_iterations): Remove superfluous
6308 condition.
6309
6310 2003-05-11 Neil Booth <neil@cat.daikokuya.co.uk>
6311
6312 * doc/cpp.texi: Fix typos.
6313
6314 2003-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6315
6316 * config/s390/s390.c (s390_function_arg_float): New function.
6317 (s390_function_arg_pass_by_reference): Use it.
6318 (s390_function_arg_advance): Likewise.
6319 (s390_function_arg): Likewise.
6320 (s390_va_arg): Likewise
6321
6322 2003-05-11 Nathan Sidwell <nathan@codesourcery.com>
6323
6324 * coverage.h (coverage_counter_alloc): New function.
6325 * function.h (struct function): Remove arc_profile flag.
6326 * coverage.c (fn_ident): Remove.
6327 (fn_b_ctrs, no_coverage): New.
6328 (get_coverage_counts): Use current_function_funcdef_no.
6329 (coverage_counter_alloc): New.
6330 (coverage_counter_ref): Adjust.
6331 (coverage_begin_output): Check no_coverage. Use
6332 current_function_funcdef_no.
6333 (coverage_end_function): Likewise.
6334 (create_coverage): Set no_coverage. Set DECL_UNINLINEABLE rather
6335 than clearing flag_inline_functions. Do not clear arc_profile
6336 flag.
6337 * function.c (prepare_function_start): Do not set arc_profile
6338 flag.
6339 * profile.c (instrument_edges): Return number of instrumented
6340 edges. Use a for loop.
6341 (branch_prob): Call coverage_counter_alloc. Make BB_TO_GCOV_INDEX
6342 local to here and simplify. Use profile_arc_flag not arc_profile
6343 flag.
6344 (find_spanning_tree): Reformat.
6345 * toplev.c (rest_of_compilation): Use profile_arc_flags and
6346 flag_test_coverage rather than arc_profile flag.
6347
6348 2003-05-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
6349
6350 * doc/invoke.texi (Wctor-dtor-privacy): Update documentation.
6351
6352 2003-05-11 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6353
6354 * varasm.c (copy_constant, case VIEW_CONVERT_EXPR): New case.
6355
6356 2003-05-11 Bruno Haible <bruno@clisp.org>
6357
6358 * cppfiles.c (find_or_create_entry): Preserve errno.
6359
6360 2003-05-11 Neil Booth <neil@cat.daikokuya.co.uk>
6361
6362 * c-cppbuiltin.c (c_cpp_builtins): Move __STDC_HOSTED__ into
6363 cpplib as it's a Standard Predefined Macro.
6364 * c-opts.c (finish_options): Pass flag_hosted to cpp_init_builtins.
6365 * cppinit.c (_cpp_init_builtins): Take HOSTED. Define
6366 __STDC_HOSTED__ appropriately.
6367 * cpplib.h (_cpp_init_builtins): Update.
6368 * fix-header.c (read_scan_file): Update.
6369 * doc/cpp.texi, doc/cppopts.texi: Update documentation.
6370
6371 2003-05-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
6372
6373 PR C++/689
6374 PR C++/9257
6375 * c-opts.c (c_common_decode_option): Don't set
6376 warn_ctor_dtor_privacy wen -Wall.
6377 * c-common.c (warn_ctor_dtor_privacy): Don't turn on by default.
6378
6379 2003-05-10 Alexandre Oliva <aoliva@redhat.com>
6380
6381 * reload1.c (reload_cse_move2add): Revert part of my 2003-05-09's
6382 patch.
6383
6384 2003-05-10 Zack Weinberg <zack@codesourcery.com>
6385
6386 * diagnostic.c: Reorder functions for clarity, putting all the
6387 functions in the "error" family next to each other, and
6388 likewise all the functions in the "error_with_decl" family.
6389 Some other routines were moved too. Add comments.
6390 (vbuild_message_string): Fold into sole caller.
6391
6392
6393 2003-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6394
6395 * except.c (EH_RETURN_STACKADJ_RTX): Do not define.
6396 (EH_RETURN_HANDLER_RTX): Likewise.
6397 (expand_builtin_eh_return): Do not copy stack adjustment
6398 if EH_RETURN_STACKADJ_RTX is not defined.
6399 (expand_eh_return): Likewise. Also, do not pass stack
6400 adjustment as argument to the eh_return pattern.
6401 * except.h (MUST_USE_SJLJ_EXCEPTIONS): Do not define just
6402 because EH_RETURN_STACKADJ_RTX is not defined.
6403 * unwind-dw.c (uw_update_context_1): If EH_RETURN_STACKADJ_RTX
6404 is not defined, treat stack pointer like a regular register.
6405 (uw_init_context_1): Set up fake initial stack pointer register.
6406 (uw_install_context_1): Do not compute stack adjustment if
6407 EH_RETURN_STACKADJ_RTX is not defined.
6408
6409 * config/i386/i386.md ("eh_return"): Remove first argument.
6410 * config/mips/mips.md ("eh_return"): Likewise.
6411 * config/rs6000/rs6000.md ("eh_return"): Likewise.
6412 * config/sh/sh.md ("eh_return"): Likewise.
6413
6414 * config/s390/s390.h (EH_RETURN_STACKADJ_RTX): Remove.
6415
6416 2003-05-10 Alexander Aganichev <aaganichev@yandex.ru>
6417
6418 * config/i386/i386.h (MODES_TIEABLE_P): Fix typo.
6419
6420 2003-05-10 Nathan Sidwell <nathan@codesourcery.com>
6421
6422 * defaults.h (GCOV_TYPE_SIZE): Remove.
6423 * gcov-io.h (gcov_type): Set to specific mode int on target.
6424 (gcov_unsigned_t, gcov_position_t): New.
6425 (GCOV_TYPE_NODE): New.
6426 (GCOV_TAG_SUMMARY_LENGTH): Adjust.
6427 (GCOV_COUNTERS_SUMMABLE): New.
6428 (gcov_ctr_summary, gcov_sumary, gcov_fn_info, gcov_merge_fn,
6429 gcov_ctr_info, gcov_info): Adjust types.
6430 (gcov_var): Adjust types.
6431 (gcov_write_unsigned, gcov_write_tag,
6432 gcov_write_length, gcov_write_tag_length, gcov_write_summary,
6433 gcov_read_unsigned, gcov_read_summary): Adjust gcov types.
6434 (gcov_position, gcov_sync, gcov_seek): Adjust gcov types.
6435 * gcov-io.c (gcov_write_unsigned, gcov_write_tag,
6436 gcov_write_length, gcov_write_tag_length, gcov_write_summary,
6437 gcov_read_unsigned, gcov_read_summary): Adjust gcov types.
6438 * libgcov.c (gcov_crc32, gcov_version_mismatch, gcov_exit,
6439 __gcov_init, __gcov_merge_add): Adjust gcov types.
6440 * coverage.c (ctr_merge_functions): Constify.
6441 (ctr_names): New.
6442 (read_counts_file): Adjust gcov types. Only summarize & merge
6443 summable counters.
6444 (coverage_counter_ref): Use GCOV_TYPE_NODE.
6445 (build_fn_info_type, build_fn_info_value, build_ctr_info_type,
6446 build_ctr_info_value, build_gcov_info): Adjust types.
6447 * profile.c (branch_prob): Adjust gcov types.
6448 * gcov_dump (dump_file): Adjust gcov types.
6449
6450 2003-05-10 Richard Earnshaw <rearnsha@arm.com>
6451
6452 * arm.md (DOM_CC_X_AND_Y, DOM_CC_NX_OR_Y, DOM_CC_X_OR_Y): New
6453 constants.
6454 (ior_scc_scc, and_scc_scc): New insn_and_split patterns.
6455 * arm.c (arm_select_dominance_cc_mode): Renamed from
6456 select_dominance_cc_mode, no-longer static. Use DOM_CC... constants.
6457 Callers updated.
6458 * arm-protos.h (arm_select_dominance_cc_mode): Add prototype.
6459
6460 2003-05-09 Roger Sayle <roger@eyesopen.com>
6461
6462 * config/alpha/alpha.c (alpha_start_function): Declare frame_size
6463 as unsigned to avoid signed/unsigned comparison warnings.
6464
6465 2003-05-09 Bob Wilson <bob.wilson@acm.org>
6466
6467 * config/xtensa/xtensa.c (xtensa_emit_loop_end): Only use "nop.n"
6468 instruction if the Xtensa density option is enabled.
6469
6470 2003-05-09 Matt Kraai <kraai@alumni.cmu.edu>
6471
6472 * mklibgcc.in: Remove extra quotes.
6473
6474 2003-05-09 Mark Mitchell <mark@codesourcery.com>
6475
6476 * config/rs6000/rs6000.c (spe_init_builtins): Fix typo in creation
6477 of int_ftype_void.
6478
6479 2003-05-09 Alexandre Oliva <aoliva@redhat.com>
6480
6481 * reload1.c (reload_cse_move2add): Don't turn an implicit
6482 truncation into a self-set in the narrow mode.
6483
6484 2003-05-09 Richard Earnshaw <rearnsha@arm.com>
6485
6486 * arm.md (clzsi2): The CLZ instruction is predicable.
6487
6488 2003-05-09 Bob Wilson <bob.wilson@acm.org>
6489
6490 * config/xtensa/xtensa.c: Formatting.
6491
6492 2003-05-09 Diego Novillo <dnovillo@redhat.com>
6493
6494 * tree-dump.c (dequeue_and_dump): Use CONSTRUCTOR_ELTS,
6495 instead of TREE_OPERAND to access the operand of a
6496 CONSTRUCTOR node.
6497
6498 2003-05-09 Diego Novillo <dnovillo@redhat.com>
6499
6500 * tree-dump.c (dequeue_and_dump): CONSTRUCTOR nodes contain only
6501 one operand.
6502
6503 2003-05-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
6504
6505 * toplev.h (warning_with_file_and_line): Don't declare.
6506 (error_with_file_and_line): Likewise.
6507 * diagnostic.c (error_with_file_and_line): Remove.
6508 (warning_with_file_and_line): Likewise.
6509
6510 2003-05-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
6511
6512 * c-parse.in (if_stmt_locus): New object.
6513 (if_prefix rule): Use it. Don't use warning_with_file_and_line.
6514 (select_or_iter_stmt rule): Likewise.
6515 (if_stmt_file): Remove.
6516 (if_stmt_line): Likewise.
6517 * jump.c: include "diagnostic.h"
6518 (never_reached_warning): Don't use warning_with_file_and_line.
6519 * Makefile.in (jump.o): Add dependce on diagnostic.h
6520
6521 2003-05-09 Alan Modra <amodra@bigpond.net.au>
6522
6523 * expr.c (move_block_from_reg): Remove "size" parm. Localize vars.
6524 Move code handling pieces not larger than a word to..
6525 * function.c (assign_parms): ..here, but use change_address instead
6526 of adjust_address and operand_subword, and expand_binop instead of
6527 expand_shift. Adjust calls to move_block_from_reg.
6528 * expr.h (move_block_from_reg): Update declaration.
6529 (copy_blkmode_from_reg): Formatting.
6530 * Makefile.in (function.o): Add $(OPTABS_H) to deps.
6531 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Adjust
6532 move_block_from_reg calls.
6533 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
6534 * config/i960/i960.c (i960_setup_incoming_varargs): Likewise.
6535 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
6536 * config/m88k/m88k.c (m88k_builtin_saveregsk): Likewise.
6537 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
6538 * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
6539 * config/romp/romp.h (SETUP_INCOMING_VARARGS): Likewise.
6540 * config/rs6000/rs6000.c (setup_incoming_varargs): Likewise.
6541 * config/sh/sh.c (sh_builtin_saveregs): Likewise.
6542
6543 2003-05-08 DJ Delorie <dj@redhat.com>
6544
6545 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_arg): Fix
6546 to handle arguments for which MUST_PASS_IN_STACK is true (e.g.,
6547 variable-sized types).
6548 (xstormy16_function_arg): New. Pass them that way too.
6549 * config/stormy16/stormy16-protos.h (xstormy16_function_arg): New.
6550 * config/stormy16/stormy16.h (FUNCTION_ARG): Call it.
6551
6552 2003-05-08 Aldy Hernandez <aldyh@redhat.com>
6553
6554 * mklibgcc.in: Use mkinstalldirs when installing multilib
6555 directories.
6556
6557 2003-05-08 J"orn Rennecke <joern.rennecke@superh.com>
6558
6559 * sh.c (gen_block_redirect, split_branches): Use CODE_FOR_jump_compact
6560 instead of CODE_FOR_jump
6561
6562 2003-05-08 Gabriel Dos Reis <gdr@integrable-solutions.net>
6563
6564 * objc/objc-act.c (error_with_ivar): Don't use
6565 error_with_file_and_line.
6566 (warn_with_method): Don't use warning_with_file_and_line.
6567
6568 2003-05-08 Gabriel Dos Reis <gdr@integrable-solutions.net>
6569
6570 * stmt.c (emit_locus): New macro.
6571 (emit_filename): Remove.
6572 (emit_lineno): Likewise.
6573 (struct stmt_status): Replace members x_emit_filename and
6574 x_emit_lineno with x_emit_locus.
6575 (set_file_and_line_for_stmt): Adjust.
6576 (expand_expr_stmt_value): Don't use warning_with_file_and_line.
6577 (warn_if_unused_value): Likewise.
6578 (check_seenlabel): Likewise.
6579
6580 2003-05-08 Gabriel Dos Reis <gdr@integrable-solutions.net>
6581
6582 * c-decl.c (define_label): Tidy. Don't use any of
6583 error_with_file_and_line or warning_with_file_and_file.
6584 (pending_xref_error): Likewise.
6585 (store_parm_decls): Likewise.
6586 (current_function_prototype_locus): New object. Package from
6587 current_function_prototype_file and current_function_prototype_line.
6588 (start_function): Use it.
6589 (current_function_prototype_file): Remove.
6590 (current_function_prototype_line): Remove;
6591
6592 2003-05-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6593
6594 * builtins.c (readonly_data_expr): New function.
6595 (expand_builtin_memmove): Optimize any rodata source, not just
6596 strings.
6597
6598 2003-05-07 David Mosberger <davidm@hpl.hp.com>
6599
6600 * unwind-libunwind.c (_Unwind_FindEnclosingFunction): New.
6601
6602 2003-05-07 Richard Henderson <rth@redhat.com>
6603
6604 * config/i386/i386.c (ix86_split_long_move): Fix base register
6605 mode for XFmode splits for TARGET_64BIT.
6606
6607 2003-05-07 Richard Henderson <rth@redhat.com>
6608
6609 * sched-ebb.c (schedule_ebb): Supply the correct starting
6610 block number to save_line_notes.
6611
6612 2003-05-07 Richard Henderson <rth@redhat.com>
6613
6614 * toplev.c (enum dump_file_index): Swap DFI_ce3, DFI_bbro.
6615 (dump_file): Likewise.
6616
6617 2003-05-07 David Mosberger <davidm@hpl.hp.com>
6618
6619 * config/ia64/crtbegin.asm (__do_jv_register_classes): Don't
6620 forget to preserve gp.
6621 * config/ia64/crtend.asm (__do_global_ctors_au): Ditto.
6622
6623 * config/ia64/crtbegin.asm (__do_jv_register_classes): Add missing
6624 .prologue directive.
6625 Use .skip instead of data8 for .bss section to make Intel
6626 Assembler (ias) happy. Minor whitespace fixups. Make "nop 0"
6627 explicit in the .mib bundles and remove the unnecessary stop
6628 bits. Replace local labels with normal labels, to make ias
6629 happy. Don't register __do_global_ctors_aux here, do it in
6630 crtend.asm instead.
6631
6632 * config/ia64/crtend.asm [HAVE_INIT_FINI_ARRAY]: Register
6633 __do_global_ctors_aux in .init_array section instead of
6634 declaring it as a hidden global. Replace local labels with
6635 ordinary labels to make ias happy.
6636
6637 2003-05-07 Richard Henderson <rth@redhat.com>
6638
6639 PR c++/10570
6640 * except.c: Revert 04-01 and 04-02 forced-unwind changes.
6641 * flags.h, toplev.c, doc/invoke.texi: Likewise.
6642
6643 * unwind-dw2.c (_Unwind_GetCFA): Fix ptr->int conversion warning.
6644 * unwind.inc (_Unwind_DeleteException): Check for null
6645 exception_cleanup.
6646
6647 * unwind-sjlj.c (_Unwind_SjLj_Resume_or_Rethrow): New.
6648 * unwind.inc (_Unwind_Resume_or_Rethrow): New.
6649 * unwind.h: Declare them.
6650 * libgcc-std.ver (GCC_3.3): Export them.
6651
6652 2003-05-07 Richard Henderson <rth@redhat.com>
6653
6654 * unwind-dw2.c (_Unwind_GetCFA): Cast pointer to _Unwind_Ptr,
6655 not _Unwind_Word.
6656
6657 2003-05-07 Zack Weinberg <zack@codesourcery.com>
6658
6659 * stmt.c (force_label_rtx): New function, based on logic
6660 formerly found in expand_expr.
6661 * expr.h: Prototype it.
6662 * expr.c (expand_expr <LABEL_DECL>): Use force_label_rtx if
6663 appropriate.
6664 * varasm.c (decode_addr_const <LABEL_DECL>): Use force_label_rtx.
6665
6666 * print-tree.c (debug_tree): Free the table after we're done
6667 with it. Use putc.
6668
6669 2003-05-07 Aldy Hernandez <aldyh@redhat.com>
6670
6671 * config/rs6000/spe.h: Reverse arguments for __ev_subfw.
6672 Unreverse arguments for __ev_subw.
6673
6674 * config/rs6000/spe.md (evsubfw): Reverse arguments of assembly.
6675
6676 2003-05-07 Nick Clifton <nickc@redhat.com>
6677
6678 * config/stormy16/stormy-abi: Update to include
6679 R_XSTORMY16_FPTR16, R_XSTORMY16_LO16, R_XSTORMY16_HI16 and
6680 R_XSTORMY16_12 relocs.
6681
6682 2003-05-07 Alan Modra <amodra@bigpond.net.au>
6683
6684 * function.c (assign_parms): Correct reversed reg_parm_stack_space
6685 test. Add partial in-regs size to stack_args_size.
6686
6687 2003-05-07 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6688
6689 * doc/invoke.texi (Warning Options): Mark -Wmissing-declarations
6690 as a C only option.
6691
6692 2003-05-07 Nathan Sidwell <nathan@codesourcery.com>
6693
6694 * gcov-io.h (GCOV_LOCKED): New #define.
6695 (GCOV_LINKAGE): Make sure it is #defined.
6696 (gcov_write_string, gcov_write_tag, gcov_write_length,
6697 gcov_read_string, gcov_time): Poison in libgcov.
6698 (gcov_seek_end): Remove.
6699 (gcov_write_tag_length, gcov_sync, gcov_rewrite): New.
6700 (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
6701 GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
6702 GCOV_TAG_SUMMARY_LENGTH): New #defines.
6703 (gcov_write_tag, gcov_write_length): Not in libgcov.
6704 * gcov-io.c (gcov_open): Use GCOV_LOCKED.
6705 (gcov_write_tag, gcov_write_length): Not in libgcov.
6706 (gcov_write_tag_length): New.
6707 (gcov_write_summary): Use gcov_write_tag_length.
6708 * libgcov.c: Always #include gcov-io.h.
6709 (IN_LIBGCOV): -1 for inhibit_libc, +1 otherwise.
6710 (GCOV_LINKAGE): Define to nothing for L_gcov.
6711 (gcov_exit): Replace gcov_write_tag, gcov_write_length with
6712 gcov_write_tag_length. Use gcov_rewrite & gcov_seek.
6713 * gcov.c (read_graph_file): Replace gcov_seek by gcov_sync.
6714 (read_count_file): Likewise.
6715 * gcov-dump.c (dump_file): Likewise.
6716 * coverag.c (read_counts_file): Likewise.
6717
6718 2003-05-06 Mark Mitchell <mark@codesourcery.com>
6719
6720 PR other/10658
6721 * gcc.c (process_command): Update copyright date.
6722
6723 2003-05-06 Phil Edwards <pme@gcc.gnu.org>
6724
6725 * doc/install.texi (mips-*-*): Add note about libstdc++.
6726
6727 2003-05-06 DJ Delorie <dj@redhat.com>
6728
6729 * config/stormy16/stormy16.c (xstormy16_function_profiler): New.
6730 * config/stormy16/stormy16.h (FUNCTION_PROFILER): Call it.
6731 * config/stormy16/stormy16-protos.h (xstormy16_function_profiler): New.
6732
6733 2003-05-06 <neil@cat.daikokuya.co.uk>
6734
6735 * c-opts.c (COMMAND_LINE_OPTIONS): Reject -Wmissing-prototypes
6736 and -Wstrict-prototypes if C++.
6737
6738 2003-05-06 Aldy Hernandez <aldyh@redhat.com>
6739
6740 * config/rs6000/linuxspe.h: New file.
6741
6742 * config.gcc: Add powerpc-*-linux-gnuspe* target.
6743
6744 2003-05-06 Richard Henderson <rth@redhat.com>
6745
6746 * unwind-dw2.c (uw_update_context_1): Only set cfa as sp if
6747 previous frame didn't save sp. Clear sp for next frame.
6748 (uw_install_context_1): Honor saved sp from frame.
6749
6750 2003-05-06 Richard Sandiford <rsandifo@redhat.com>
6751
6752 * config/mips/mips-protos.h (mips_subword, mips_output_move): Declare.
6753 (mips_move_1word, mips_move_2words): Remove declaration.
6754 (mips_split_64bit_move_p, mips_split_64bit_move): Declare.
6755 (mips_restore_gp): Remove insn argument.
6756 * config/mips/mips.h (FP_REG_RTX_P): New macro.
6757 * config/mips/mips.c (volatile_buffer): Remove.
6758 (mips_subword, mips_split_64bit_move_p, mips_split_64bit_move): New.
6759 (mips_move_1word, mips_move_2words): Remove, replacing with...
6760 (mips_output_move): ...this new function.
6761 (mips_restore_gp): Remove insn argument. Adjust for above changes.
6762 (print_operand): Make '%h' print %hi(op) for HIGH operands. Remove
6763 handling of floating-point constants. Handle zero CONST_DOUBLE
6764 arguments.
6765 (mips_annotate_frame_insn): Replace with...
6766 (mips_set_frame_expr): ...this, which just takes one argument.
6767 (mips_frame_set): Change the register argument to an rtx.
6768 (mips_emit_frame_related_store): Use mips_split_64bit_move_p to
6769 check whether moves should be split. Use mips_split_64bit_move
6770 to split them. Use mips_subword to generate the high and low
6771 parts of a paired FPR. Adjust calls to frame_set and
6772 mips_set_frame_expr.
6773 (mips_expand_prologue): Simplify due to above changes.
6774 * config/mips/mips.md: Add splitters for 64-bit moves on 32-bit
6775 targets, replacing xisting register-only versions.
6776 (UNSPEC_STORE_DF_HIGH): New unspec.
6777 (UNSPEC_LOAD_DF_LOW, UNSPEC_LOAD_DF_HIGH): New unspecs.
6778 (mulsi3_r4000, muldi3_internal2): Avoid use of mips_move_1word.
6779 (*paradoxical_extendhidi2): Remove.
6780 (movdi_internal, movdi_internal2): Use mips_output_move.
6781 (*movdi_internal2_mips16, movsi_internal, movcc): Likewise.
6782 (movsf_internal1, movsf_internal2): Likewise.
6783 (movdf_internal1a): Likewise. Fix length and type of f <- G case.
6784 (movdf_internal1b): Use mips_output_move. Fix type of f <- G case.
6785 (movdf_internal2): Use mips_output_move. Fix lengths of FPR moves.
6786 Add m <- G alternative.
6787 (load_df_low, load_df_high, store_df_low): New patterns.
6788 (movhi_internal): Use @ template instead of calling a function.
6789 Remove unnecessary 'z' alternatives.
6790 (movqi_internal): Likewise.
6791 (exception_receiver): Update call to mips_restore_gp.
6792
6793 2003-05-06 Richard Sandiford <rsandifo@redhat.com>
6794
6795 * config/mips/mips-protos.h (mips_simplify_dwarf_addr): Remove.
6796 (mips_delegitimize_address): Declare.
6797 * config/mips/mips.h (ASM_SIMPLIFY_DWARF_ADDR): Undefine.
6798 (FIND_BASE_TERM): Define.
6799 * config/mips/mips.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
6800 (mips_delegitimize_address): Renamed from mips_simplify_dwarf_addr.
6801 Handle small-data addresses.
6802
6803 2003-05-05 Roger Sayle <roger@eyesopen.com>
6804
6805 * real.c (real_powi): New function to calculate the value of
6806 a real raised to an integer power, i.e. pow(x,n) for int n.
6807 (real_sqrt): Convert to using the faster do_add, do_multiply
6808 and do_divide API for consistency with the rest of real.c.
6809 * real.h (real_powi): Prototype here.
6810 * builtins.c (fold_builtin): Avoid local variable mode when
6811 evaluating sqrt at compile time. Attempt to evaluate pow at
6812 compile-time, by checking for an integral exponent.
6813
6814 2003-05-05 Richard Henderson <rth@redhat.com>
6815
6816 * doc/extend.texi (Variable Attributes): Re-sort table and tidy.
6817
6818 2003-05-05 David O'Brien <obrien@FreeBSD.org>
6819
6820 * config/rs6000/sysv4.h (CPP_OS_FREEBSD_SPEC): Add __ELF__ to mirror
6821 other FreeBSD ports.
6822 (LINK_OS_FREEBSD_SPEC): Mirror conventions on other FreeBSD ports.
6823 (_LITTLE_ENDIAN): Use __LITTLE_ENDIAN__ instead.
6824
6825 2003-05-05 Janis Johnson <janis187@us.ibm.com>
6826
6827 * Makefile.in: (site.exp): Add ALT_CC_UNDER_TEST, add quotes around
6828 expanded variables.
6829 * doc/sourcebuild.texi (C tests): Describe gcc.dg/compat tests.
6830
6831 2003-05-05 Zack Weinberg <zack@codesourcery.com>
6832
6833 * rtl.h (STRING_POOL_ADDRESS_P): Rename to DEFERRED_CONSTANT_P.
6834 * varasm.c (struct varasm_status): Add deferred_constants field.
6835 (n_deferred_strings): Delete variable.
6836 (n_deferred_constants): New #define.
6837 (struct constant_descriptor_tree): Kill next and label fields.
6838 (const_hash_table, MAX_HASH_TABLE): Delete.
6839 (const_desc_htab): New static variable.
6840 (const_hash): Rename const_desc_hash, and make it fit the
6841 hashtab.h interface.
6842 (const_desc_eq): New.
6843 (const_hash_1, compare_constant): Const-ify arguments.
6844 (build_constant_desc): Set DEFERRED_CONSTANT_P on all new
6845 SYMBOL_REFs. Clarify comments. Don't set desc->label.
6846 (output_constant_def): Do the lookup/insert using the
6847 hashtab.h interface. Don't muck with n_deferred_constants or
6848 DEFERRED_CONSTANT_P here.
6849 Always call maybe_output_constant_def_contents.
6850 (maybe_output_constant_def_contents): Take a pointer to the
6851 descriptor, not the EXP and RTL separately. Return
6852 immediately if this constant is not deferred. Defer output of
6853 everything, except writable string constants. Update
6854 n_deferred_constants here.
6855 (output_constant_def_contents): Now takes just one argument,
6856 an rtx. Clear DEFERRED_CONSTANT_P here.
6857 (mark_constant_pool): Update for rename of n_deferred_strings.
6858 (mark_constant): Don't clear DEFERRED_CONSTANT_P here.
6859
6860 (init_varasm_status): Clear p->deferred_constants.
6861 (init_varasm_once): Call htab_create_ggc for const_desc_htab.
6862
6863 2003-05-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6864
6865 * builtins.c (expand_builtin_stpcpy): Only expand when the length
6866 of the source string can be evaluated at compile-time.
6867
6868 2003-05-05 Aldy Hernandez <aldyh@redhat.com>
6869
6870 * testsuite/gcc.c-torture/compile/simd-6.c: New.
6871
6872 * c-typeck.c (digest_init): Handle arrays of vector constants.
6873
6874 2003-05-05 Jakub Jelinek <jakub@redhat.com>
6875
6876 * builtins.c (expand_builtin_mempcpy): New function.
6877 (expand_builtin_stpcpy): Optimize stpcpy whose return value is
6878 ignored into strcpy no matter what arguments it has.
6879 (expand_builtin) <case BUILT_IN_MEMPCPY>: Call
6880 expand_builtin_mempcpy.
6881
6882 2003-05-05 Aldy Hernandez <aldyh@redhat.com>
6883
6884 * testsuite/gcc.dg/20030505.c: New.
6885
6886 * c-typeck.c (convert_for_assignment): Opaque pointers can
6887 interconvert.
6888
6889 * config/rs6000/rs6000.c: New global opaque_p_V2SI_type_node.
6890 (rs6000_init_builtins): Initialize opaque_p_V2SI_type_node.
6891 (spe_init_builtins): Rename all pv2si_type_node to
6892 opaque_p_V2SI_type_node.
6893 Remove declaration of pv2si_type_node.
6894 (is_ev64_opaque_type): Accept opaque pointers.
6895
6896 2003-05-05 Geoffrey Keating <geoffk@apple.com>
6897
6898 * config/rs6000/rs6000.c (validate_condition_mode): Use
6899 flag_finite_math_only.
6900 (rs6000_reverse_condition): Never return UNKNOWN; use
6901 flag_finite_math_only.
6902 (rs6000_generate_compare): Use flag_finite_math_only.
6903 (rs6000_emit_cmove): Handle UNLE. Support UNEQ under -ffast-math.
6904 Use HONOR_* rather than flag_unsafe_math_optimizations. Correct
6905 UNGE and GT cases. Handle UNEQ and LTGT when ! HONOR_NANS.
6906
6907 * toplev.c (check_global_declarations): Suppress not-used warning
6908 for volatile variables.
6909
6910 2003-05-05 Olivier Hainque <hainque@act-europe.fr>
6911
6912 * expr.c (expand_expr, case BIT_FIELD_REF): Refine the test forcing
6913 usage of bitfield instructions for mode1 != BLKmode, only ignoring
6914 SLOW_UNALIGNED_ACCESS if the field is not byte aligned.
6915 (store_field): Likewise.
6916
6917 2003-05-05 Aldy Hernandez <aldyh@redhat.com>
6918
6919 * config/rs6000/rs6000.c (rs6000_expand_binop_builtin): Add
6920 evsubifw to builtins accepting 5-bit unsigned constants.
6921 (easy_vector_constant): Return if V1DImode. Fix typo.
6922
6923 2003-05-05 Aldy Hernandez <aldyh@redhat.com>
6924
6925 * config/rs6000/spe.h: Revert licensing change from last patch.
6926
6927 2003-05-05 DJ Delorie <dj@redhat.com>
6928
6929 * config/stormy16/stormy16.md (negsi2): Allocate the pseudos
6930 before reload, but defer the split until after.
6931 * config/stormy16/stormy16.c (xstormy16_expand_arith): Modify
6932 to match.
6933
6934 2003-05-05 David Edelsohn <edelsohn@gnu.org>
6935
6936 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 440 support.
6937 * config/rs6000/vxworks.h (CC1_SPEC): Use -mcpu=440 for t440.
6938
6939 2003-05-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6940
6941 * libgcov.c (__gcov_merge_add): Do not use gcov_type when inhibit_libc
6942 is defined.
6943
6944 2003-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6945
6946 * builtin-attrs.def (ATTR_NOTHROW_NONNULL_1,
6947 ATTR_NOTHROW_NONNULL_2, ATTR_NOTHROW_NONNULL_3): Renamed from
6948 ATTR_NONNULL_1, ATTR_NONNULL_2 and ATTR_NONNULL_3.
6949
6950 (ATTR_NOTHROW_NONNULL_1_2, ATTR_NOTHROW_NONNULL_1_4,
6951 ATTR_CONST_NOTHROW_NONNULL_1, ATTR_PURE_NOTHROW_NONNULL_1,
6952 ATTR_PURE_NOTHROW_NONNULL_1_2, ATTR_MALLOC_NOTHROW_NONNULL_1):
6953 New.
6954
6955 * builtins.def (DEF_EXT_FALLBACK_BUILTIN): Accept ATTRS argument.
6956 (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Update comment
6957
6958 (BUILT_IN_INDEX, BUILT_IN_RINDEX, BUILT_IN_MEMCPY,
6959 BUILT_IN_MEMMOVE, BUILT_IN_MEMCMP, BUILT_IN_MEMSET,
6960 BUILT_IN_MEMPCPY, BUILT_IN_STRCAT, BUILT_IN_STRNCAT,
6961 BUILT_IN_STPCPY, BUILT_IN_STRCPY, BUILT_IN_STRNCPY,
6962 BUILT_IN_STRCMP, BUILT_IN_STRNCMP, BUILT_IN_STRLEN,
6963 BUILT_IN_STRSTR, BUILT_IN_STRPBRK, BUILT_IN_STRSPN,
6964 BUILT_IN_STRCSPN, BUILT_IN_STRCHR, BUILT_IN_STRRCHR, BUILT_IN_NAN,
6965 BUILT_IN_NANF, BUILT_IN_NANL, BUILT_IN_NANS, BUILT_IN_NANSF,
6966 BUILT_IN_NANSL, BUILT_IN_PUTS, BUILT_IN_FPUTC, BUILT_IN_FPUTS,
6967 BUILT_IN_FWRITE, BUILT_IN_PUTS_UNLOCKED, BUILT_IN_FPUTC_UNLOCKED,
6968 BUILT_IN_FPUTS_UNLOCKED, BUILT_IN_FWRITE_UNLOCKED,
6969 BUILT_IN_STRDUP): Add "nonnull" attribute.
6970
6971 2003-05-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6972
6973 * expr.c (store_field): Don't clobber TEMP in shift: it might be
6974 a variable.
6975 (get_inner_reference): Don't go through a VIEW_CONVERT_EXPR
6976 whose purpose is to step up the alignment.
6977 (expand_expr, case ADDR_EXPR): Force LO_SUM into memory, just like REG.
6978
6979 * stor-layout.c (compute_record_mode): Relax restriction
6980 on fields crossing word boundaries forcing BLKmode.
6981
6982 2003-05-04 Neil Booth <neil@daikokuya.co.uk>
6983
6984 * cppinit.c (cpp_create_reader, post_options): Warn about
6985 trigraphs unless explicity set or -trigraphs.
6986 * cpplex.c (warn_in_comment): New.
6987 (_cpp_process_line_notes): Better handling of -Wtrigraphs.
6988 (_cpp_skip_block_comment): Add call to _cpp_process_line_notes.
6989 * doc/cppopts.texi, doc/cpp.texi: Update.
6990
6991 2003-05-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6992
6993 * Makefile.in (LIBGCOV): Add _gcov_merge_add.
6994 * gcov-io.h: Make GCOV_LINKAGE extern in libgcov and prevent resulting
6995 namespace clash.
6996 (GCOV_MERGE_FUNCTIONS): New.
6997 (gcov_merge_fn): Declare.
6998 (struct gcov_ctr_info): New field "merge".
6999 (__gcov_merge_add): Declare.
7000 * coverage.c (ctr_merge_functions): New.
7001 (build_ctr_info_type, build_ctr_info_value): Initialize merge field
7002 of gcov_ctr_info type.
7003 * libgcov.c (__gcov_merge_add): New.
7004 (gcov_exit): Call a hook to merge values of counters.
7005
7006 2003-05-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
7007
7008 * toplev.h (pedwarn_with_file_and_line): Don't declare.
7009 * diagnostic.c (pedwarn_with_file_and_line): Remove.
7010
7011 2003-05-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
7012
7013 * varasm.c (assemble_variable): Don't use error_with_file_and_line.
7014
7015 2003-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7016
7017 * builtins.c (expand_builtin_constant_p, expand_builtin_strlen,
7018 expand_builtin_frame_address): Update prototypes.
7019 (expand_builtin_constant_p, expand_builtin_strlen,
7020 expand_builtin_strcpy, expand_builtin_memset,
7021 expand_builtin_bzero, expand_builtin_args_info,
7022 expand_builtin_frame_address): Pass in just the argument(s)
7023 needed, not the entire expression `exp'.
7024 (expand_builtin): Update all calls to these functions.
7025
7026 2003-05-03 Richard Henderson <rth@redhat.com>
7027
7028 * builtins.c (expand_builtin) <BUILT_IN_DWARF_FP_REGNUM>: Remove.
7029 <BUILT_IN_DWARF_SP_COLUMN>: New.
7030 * builtins.def (BUILT_IN_DWARF_FP_REGNUM): Remove.
7031 (BUILT_IN_DWARF_SP_COLUMN): New.
7032 * dwarf2out.c (expand_builtin_dwarf_fp_regnum): Remove.
7033 (expand_builtin_dwarf_sp_column): New.
7034 * except.h: Update to match.
7035 * unwind-dw2.c (execute_stack_op): Correct stack push typo.
7036 (execute_cfa_program): Record location expression address
7037 before extracting length.
7038 (uw_update_context_1): Install old CFA into stack pointer column.
7039 (uw_init_context_1): Set cfa_reg to stack pointer column.
7040
7041 2003-05-03 Richard Henderson <rth@redhat.com>
7042
7043 * config/rs6000/rs6000.c (constant_pool_expr_p): Make static and
7044 return bool.
7045 (toc_relative_expr_p): Likewise.
7046 (SPE_CONST_OFFSET_OK): Move from rs6000.h.
7047 (legitimate_constant_pool_address_p): Move from rs6000.h, change
7048 into a function, downcase all users.
7049 (legitimate_small_data_p): Likewise.
7050 (legitimate_offset_address_p): Likewise.
7051 (legitimate_indexed_address_p): Likewise.
7052 (legitimate_indirect_address_p): Likewise.
7053 (legitimate_lo_sum_address_p): Likewise.
7054 (rs6000_mode_dependent_address): Likewise.
7055 * rs6000.h (CONSTANT_POOL_EXPR_P, TOC_RELATIVE_EXPR_P): Remove.
7056 (SPE_CONST_OFFSET_OK, LEGITIMATE_CONSTANT_POOL_ADDRESS_P,
7057 LEGITIMATE_SMALL_DATA_P, LEGITIMATE_OFFSET_ADDRESS_P,
7058 LEGITIMATE_INDEXED_ADDRESS_P, LEGITIMATE_INDIRECT_ADDRESS_P,
7059 LEGITIMATE_LO_SUM_ADDRESS_P): Move into rs6000.c.
7060 (LEGITIMATE_ADDRESS_INTEGER_P): Remove.
7061 (GO_IF_MODE_DEPENDENT_ADDRESS): Use rs6000_mode_dependent_address.
7062 * config/rs6000/rs6000-protos.h: Update.
7063
7064 2003-05-03 Geoffrey Keating <geoffk@apple.com>
7065
7066 * config/rs6000/rs6000.h (REVERSIBLE_CC_MODE): Define.
7067 (REVERSE_CONDITION): Define.
7068
7069 * config/rs6000/rs6000.c (scc_comparison_operator): Make equivalent
7070 to branch_positive_comparison_operator.
7071 (ccr_bit): Check that sCOND conditions are actually a positive bit.
7072 (print_operand): Remove %D substitution.
7073 (rs6000_emit_sCOND): Generate complement operation to ensure that
7074 sCOND input is a positive bit.
7075 * config/rs6000/rs6000.md: Rearrange sCOND templates to be in the
7076 same order as bCOND, and add the missing ones. Remove the %D
7077 substitutions from the scc patterns.
7078
7079 * simplify-rtx.c (simplify_relational_operation): Add case for
7080 ! (fabs(x) < 0.0).
7081
7082 2003-05-03 Bruce Korb <bkorb@gnu.org>
7083
7084 * gcc/fixinc/fixincl.tpl(dne): restore this to force merge conflicts
7085 in fixincl.x
7086 * gcc/fixinc/inclhack.def(bsd_stdio_attrs_conflict): fix placement
7087
7088 2003-05-03 Aldy Hernandez <aldyh@redhat.com>
7089
7090 * config/rs6000/spe.h: Remove unecessary casts. Misc cleanups.
7091
7092 2003-05-03 Zack Weinberg <zack@codesourcery.com>
7093
7094 PR c/10604
7095 * c-common.c (warn_sign_compare): Initialize to -1.
7096 * c-opts.c (c_common_init_options): Don't set warn_sign_compare here.
7097 (c_common_decode_option <OPT_Wall>): Set warn_sign_compare
7098 for C++ only.
7099 (c_common_post_options): Set warn_sign_compare from extra_warnings
7100 if it's still -1 at this point.
7101
7102 * toplev.c (maybe_warn_unused_parameter): New static variable.
7103 (set_Wextra): New static function.
7104 (W_options): Remove "extra".
7105 (decode_W_option): Call set_Wextra.
7106 (independent_decode_option): Likewise.
7107 (set_Wunused): Cooperate with set_Wextra in setting
7108 warn_unused_parameter.
7109 (rest_of_compilation): No need to check extra_warnings as
7110 well as warn_uninitialized.
7111
7112 * c-typeck.c (build_binary_op, build_conditional_expr):
7113 No need to check extra_warnings as well as warn_sign_compare.
7114 (internal_build_compound_expr): No need to check extra_warnings
7115 as well as warn_unused_value.
7116 * function.c (expand_function_end): No need to check extra_warnings
7117 as well as warn_unused_parameter.
7118 * stmt.c (expand_expr_stmt_value): No need to check extra_warnings
7119 as well as warn_unused_value.
7120
7121 * doc/invoke.texi: Clarify documentation of -Wsign-compare.
7122
7123 * Makefile.in: Disable -Werror for gengtype-lex.o.
7124
7125 2003-05-03 Olivier Hainque <hainque@act-europe.fr>
7126
7127 * emit-rtl.c (last_call_insn, add_function_usage_to): New functions.
7128 * rtl.h (last_call_insn, add_function_usage_to): New prototypes.
7129 * builtins.c (expand_builtin_apply): Use the new emit-rtl functions.
7130 * calls.c (emit_call_1): Likewise.
7131 (expand_call): For calls initializing constant memory, replace
7132 emission of standalone mem /u clobber with function usage entry.
7133 * expr.c (emit_block_move_via_libcall): Likewise.
7134 * cse.c (count_reg_usage, case EXPR_LIST): New case.
7135 * flow.c (propagate_one_insn): Pass entire operand of
7136 CALL_INSN_FUNCTION_USAGE to mark_used_regs.
7137 * integrate.c (try_constants): For CALL_INSNs, substitute constants
7138 within the FUNCTION_USAGE also.
7139 * loop.c (prescan_loop): Note clobbers of const mem mentioned in
7140 FUNCTION_USAGE lists.
7141 * reload1.c (replace_pseudos_in): Renamed.
7142 (reload): Use it for clobbers surviving until the end of the reload.
7143
7144 2003-05-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7145
7146 * expr.c (expand_expr, case VIEW_CONVERT_EXPR): Don't use
7147 gen_lowpart on non-integer modes.
7148
7149 * stor-layout.c (place_field): When adjusting offset_align, use
7150 desired_align, not DECL_ALIGN.
7151
7152 2003-05-03 Nathan Sidwell <nathan@codesourcery.com>
7153
7154 * c-decl.c (pending_invalid_xref_file): Remove.
7155 (pending_invalid_xref_line): Remove.
7156 (pending_invalid_xref_location): New.
7157 (lookup_label): Use location_t and input_location directly.
7158 (lookup_tag): Likewise.
7159 (pending_xref_error): Likewise.
7160 (c_expand_body_1): Likewise.
7161 * c-common.c (x_expand_start_cond): Likewise.
7162 * c-semantics.c (genrtl_for_stmt): Likewise.
7163 (find_reachable_label): Likewise.
7164 * expr.c (expand_expr): Likewise.
7165 * integrate.c (output_inline_function): Likewise.
7166 * tree-inline.c (find_alloca_call): Likewise.
7167 (find_builtin_longjmp_call): Likewise.
7168 * gcc.c (input_filename): Make static.
7169
7170 2003-05-03 Richard Sandiford <rsandifo@redhat.com>
7171
7172 * config/mips/mips.md: Fix comment typo.
7173
7174 * config/mips/mips.c (mips_integer_op): New structure.
7175 (MIPS_MAX_INTEGER_OPS): Define.
7176 (mips_const_insns): Use mips_build_integer to determine the number
7177 of instructions needed to load a CONST_INT.
7178 (move_operand): Reject compound CONST_INTs.
7179 (mips_build_shift, mips_build_lower, mips_build_integer): New fns.
7180 (mips_move_integer): New fn.
7181 (mips_legitimize_const_move): Pass CONST_INTs to mips_move_integer.
7182 (mips_legitimize_move): Only legitimize constants when moving
7183 word or subword values.
7184
7185 2003-05-02 Matt Kraai <kraai@alumni.cmu.edu>
7186
7187 * Makefile.in (gcov-iov.h): Use move-if-change and a stamp.
7188
7189 2003-05-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7190
7191 * builtins.c (expand_builtin_stpcpy): Copy `arglist' before
7192 modifying it.
7193
7194 2003-05-03 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
7195 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7196
7197 * doc/contrib.texi (Contributors): Add Zdenek Dvorak, Aldy
7198 Hernandez, and Kazu Hirata. Update Richard Henderson.
7199
7200 2003-05-02 Geoffrey Keating <geoffk@apple.com>
7201
7202 * config/rs6000/rs6000.c (rs6000_attribute_table): Add 'extern'
7203 to tentative declaration.
7204
7205 * config/rs6000/sysv4.h (SYMBOL_FLAG_SMALL_V4): Delete.
7206 (SYMBOL_FLAG_SMALL_V4): Delete.
7207 * config/rs6000/rs6000.c (small_data_operand): Use SYMBOL_REF_SMALL_P.
7208 (rs6000_elf_encode_section_info): Don't set SYMBOL_FLAG_SMALL_V4.
7209 (rs6000_elf_in_small_data_p): Add extra section names. Add
7210 comment about TREE_PUBLIC test.
7211
7212 * c-semantics.c (genrtl_switch_stmt, genrtl_if_stmt): Call
7213 expand_stmt on result of expand_unreachable_stmt.
7214
7215 2003-05-02 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7216
7217 * doc/contrib.texi (Contributors): Add Daniel Berlin.
7218
7219 2003-05-02 David Edelsohn <edelsohn@gnu.org>
7220
7221 * config/rs6000/{603.md,6xx.md,7450.md,7xx.md,rs64.md}: Decrease
7222 number of automata.
7223
7224 * config/rs6000/rs6000.c (symbol_ref_operand): Check
7225 SYMBOL_REF_FUNCTION_P on AIX.
7226 (current_file_function_operand): Same.
7227 * config/rs6000/rs6000.md (call,call_value): Force non-function
7228 symbol_ref into register on AIX.
7229
7230 2003-05-02 Alan Modra <amodra@bigpond.net.au>
7231
7232 * calls.c (struct arg_data): Move offset, slot_offset, size and
7233 alignment_pad to struct locate_and_pad_arg_data. Update all refs.
7234 (initialize_argument_information): Adjust call to locate_and_pad_parm.
7235 Delete alignment_pad var. Don't calculate slot_offset here.
7236 (emit_library_call_value_1): Delete alignment_pad, offset and size
7237 vars. Use struct locate_and_pad_arg_data instead. Adjust refs.
7238 Adjust call to locate_and_pad_parm. Don't tweak arg size for
7239 partial in-regs here. Formatting fixes.
7240 * expr.h (struct locate_and_pad_arg_data): New struct.
7241 (locate_and_pad_parm): Adjust declaration.
7242 * function.c (assign_parms): Localize vars. Use "locate" instead of
7243 other arg location vars. Don't invoke FUNCTION_ARG or
7244 FUNCTION_INCOMING_ARG unless pretend_named is different from
7245 named_arg. Heed MUST_PASS_IN_STACK and set up "partial" before
7246 calling locate_and_pad_parm. Adjust locate_and_pad_parm call.
7247 Use slot_offset for stack home of reg parms. Correct test for
7248 parm passed in memory. Formatting fixes.
7249 (locate_and_pad_parm): Add "partial" to params. Replace offset_ptr
7250 arg_size_ptr and alignment pad with "locate". Set slot_offset here.
7251 Correct initial_offset_ptr handling. Localize vars. Always pad
7252 locate->offset even when in_regs.
7253
7254 2003-05-02 Nathan Sidwell <nathan@codesourcery.com>
7255
7256 * Makefile.in (TREE_H): Replace location.h with input.h.
7257 (GTFILES) Remove location.h
7258 (gt-lists.h): Replace gt-location.h with gt-input.h
7259 * input.h (input_filename, input_line): Remove variables.
7260 (location_s, location_t): Move from location.h.
7261 (input_location): New.
7262 (input_filename, input_line): New #defines.
7263 * location.h: Remove.
7264 * tree.h: Replace location.h with input.h.
7265 (input_filename, input_line): Remove.
7266 * diagnostic.h: Replace location.h with input.h.
7267 * gcc.h (input_filename, input_filename_length): Remove declarations.
7268 * toplev.c (input_filename, input_line): Remove.
7269 (input_location): Define.
7270 (push_srcloc, pop_srcloc): Adjust.
7271 * diagnostic.c (diagnostic_report_current_module): Adjust.
7272
7273 2003-05-02 Nick Clifton <nickc@redhat.com>
7274
7275 * configure.in: Add xstormy16 to list of targets that has a nop
7276 instruction and hence which can be tested to see if the
7277 assembler supports the --gdwarf2 switch.
7278 * configure: Regenerate.
7279
7280 2003-05-01 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
7281
7282 PR target/8257
7283 * config/alpha/alpha.c (alpha_sa_mask, alpha_expand_prologue,
7284 alpha_start_function, alpha_expand_epilogue, unicosmk_gen_dsib):
7285 Avoid undefined shifts by making the shift operand unsigned.
7286
7287 2003-05-01 DJ Delorie <dj@redhat.com>
7288
7289 * reload.c (find_reloads): Also check that all of a multi-reg
7290 value is in the class.
7291
7292 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
7293
7294 * scan.h (lineno): Revert the rename here.
7295
7296 2003-05-01 Stan Shebs <shebs@apple.com>
7297
7298 * config/darwin.c (darwin_encode_section_info): Call
7299 default_encode_section_info.
7300
7301 2003-05-01 David Edelsohn <edelsohn@gnu.org>
7302
7303 * config/rs6000/rs6000.md (define_attr "type"): Add mfjmpr.
7304 (movsi_internal1): Use new mfjmpr attribute.
7305 (movhi_internal): Same.
7306 (movqi_internal): Same.
7307 (movcc_internal1): Same.
7308 (movdi_internal64): Same.
7309 * config/rs6000/{40x.md,603.md,6xx.md,7450.md,7xx.md,mpc.md,
7310 power4.md,rios1.md,rios2.md,rs64.md}: Add mfjmpr.
7311 * config/rs6000/40x.md: Add fpu_405.
7312 * config/rs6000/power4.md: Merge power4lsu and power4disp automata
7313 into power4misc automata. Remove extraneous parentheses.
7314 * config/rs6000/440.md: New file.
7315 * config/rs6000/rs6000.c (processor_target_table): Add 440,
7316 440fp. Rename 405f to 405fp.
7317 (function_arg_padding): Correct formatting.
7318 (rs6000_rtx_costs): Add PROCESSOR_PPC440 cases.
7319
7320 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
7321
7322 * input.h (lineno): Rename to ...
7323 (input_line): ... here.
7324 * tree.h (lineno): Rename to ...
7325 (input_line): ... here.
7326 * scan.h (lineno): Rename to ...
7327 (input_line): ... here.
7328 * toplev.c (lineno): Rename to ...
7329 (input_line): ... here.
7330 (push_srcloc, pop_srcloc): Rename lineno to input_line.
7331 * c-common.c (c_expand_start_cond, fname_decl): Likewise.
7332 * c-decl.c (poplevel, pop_label_level, lookup_label, lookup_tag,
7333 store_parm_decls, c_expand_body_1): Likewise.
7334 * c-errors.c (pedwarn_c99): Likewise.
7335 * c-format.c (status_warning): Likewise.
7336 * c-lex.c (fe_file_change, cb_def_pragma, c_lex): Likewise.
7337 * c-opts.c (c_common_post_options, c_common_parse_file): Likewise.
7338 * c-parse.in (save_filename, maybe_type_qual, ifc): Likwise.
7339 * c-semantics.c (finish_stmt_tree, build_stmt, emit_local_var,
7340 gentrtl_goto_stmt, genrtl_expr_stmt_value, genrtl_decl_stmt,
7341 genrtl_if_stmt, genrtl_while_stmt, genrtl_do_stmt,
7342 genrtl_return_stmt, genrtl_for_stmt, build_break_stmt,
7343 build_continue_stmt, genrtl_switch_stmt, genrtl_asm_stmt,
7344 prep_stmt, find_reachable_label, expand_unreachable_stmt): Likewise.
7345 * coverage.c (create_coverage): Likewise.
7346 * diagnostic.c (pedwarn, sorry, error, fatal_error,
7347 internal_error, warning, diagnostic_report_current_module,
7348 inform): Likewise.
7349 * expr.c (expand_expr): Likewise.
7350 * integrate.c (expand_inline_function,
7351 output_inline_function): Likewise.
7352 * rtl-error.c (file_and_line_for_asm): Likewise.
7353 * tree-inline.c (find_alloca_call, find_builtin_longjmp_call,
7354 walk_tree): Likewise.
7355 * tree.c (make_node): Likewise.
7356 * ada, cp, f, java, objc, treelang: Likewise.
7357 * objc/objc-act.c (objc_init): Rename lineno to input_line.
7358 (build_module_descriptor, build_selector_translation_table,
7359 build_protocol_template, build_method_prototype_list_template,
7360 build_category_template, build_selector_table,
7361 build_class_template, build_super_template, build_ivar_template,
7362 build_ivar_list_template, build_method_list_template,
7363 build_method_template, add_instance_variable): Likewise.
7364
7365 * dwarf2out.c (dwarf2out_init, dwarf2out_finish): Change parameter
7366 name from input_filename.
7367
7368 2003-04-30 Eric Christopher <echristo@redhat.com>
7369 Richard Sandiford <rsandifo@redhat.com>
7370
7371 * configure: Regenerate from patches below.
7372 * combine.c (gen_lowpart_for_combine): Fix comment and add tests
7373 for all symbolic operands.
7374 * config/mips/mips.c: Migrate RTX_COSTS and CONST_COSTS
7375 to function.
7376 * config/mips/linux.h: Fix typo.
7377 * Merge from mips-3_4-rewrite branch:
7378
7379 2003-04-07 Richard Sandiford <rsandifo@redhat.com>
7380
7381 * config/mips/mips.c (mips_classify_symbol): Add catch-all case for
7382 handling local labels when TARGET_ABICALLS.
7383
7384 2003-04-04 Richard Sandiford <rsandifo@redhat.com>
7385
7386 * config/mips/mips-protos.h (mips_expand_epilogue): Add an
7387 integer argument.
7388 (mips_expand_call): Likewise.
7389 * config/mips/mips.h (TARGET_SIBCALLS): New macro.
7390 (FIXED_REGISTERS): Clear $31 entry.
7391 (CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTER): Likewise.
7392 (EPILOGUE_USES): Define.
7393 * config/mips/mips.c (mips_function_ok_for_sibcall): New function.
7394 (TARGET_FUNCTION_OK_FOR_SIBCALL): Use it.
7395 (override_options): Add a 'j' register class.
7396 (mips_expand_call): Handle sibcalls
7397 (mips_expand_epilogue): Handle epilogues for sibcalls.
7398 * config/mips/mips.md (epilogue): Adjust call to mips_expand_epilogue.
7399 (sibcall_epilogue): New pattern.
7400 (call, call_value): Adjust calls to mips_expand_call.
7401 (sibcall, sibcall_value): New expanders.
7402 (sibcall_internal, sibcall_value_internal): New patterns.
7403 (sibcall_value_multiple_internal): New pattern.
7404
7405 2003-03-25 Richard Sandiford <rsandifo@redhat.com>
7406
7407 * config/mips/mips.md (extended_mips16): New attribute.
7408 (define_attr length): Default to 8 if extended_mips16 == yes.
7409 (truncdisi2): Set extended_mips16 to yes for the sll alternative.
7410 (truncdihi2, truncdiqi2, *extendsidi2): Likewise.
7411 (call_internal): Set extended_mips16 to yes for direct jumps.
7412 Remove redundant mode attribute.
7413 (call_value_internal, call_value_multiple_internal): Likewise.
7414 (call_split): Remove redundant mode attribute.
7415 (call_value_split, call_value_multiple_split): Likewise.
7416
7417 * config/mips/mips.c (mips_symbol_insns): Rework. Fix handling
7418 of unaligned offsets.
7419
7420 * config/mips/mips.c (mips_splittable_symbol_p): Fix handling
7421 of SYMBOL_GENERAL.
7422
7423 2003-03-22 Richard Sandiford <rsandifo@redhat.com>
7424
7425 * config/mips/mips.h (TARGET_EXPLICIT_RELOCS): Add commentary.
7426 * config/mips/mips.c (override_options): Disable -mexplicit-relocs
7427 for mips16 code.
7428
7429 2003-03-22 Richard Sandiford <rsandifo@redhat.com>
7430
7431 * config/mips/mips.h (ADDRESS_COST): Define.
7432
7433 2003-03-20 Richard Sandiford <rsandifo@redhat.com>
7434
7435 * config/mips/mips.h (EXTRA_CONSTRAINT): Give existing meaning of
7436 'R' to 'U'. Make 'R' mean a single-instruction memory reference.
7437 * config/mips/mips.md: Replace 'R' constraints with 'U'.
7438
7439 2003-03-18 Richard Sandiford <rsandifo@redhat.com>
7440
7441 * config/mips/mips.md (truncdisi2): Add commentary. Use sll instead
7442 of a two-instruction sequence. Add register->memory alternative.
7443 (truncdihi2, truncdiqi2): Likewise.
7444 Rework shift/truncate instructions so that they only handle right
7445 shifts of 32 (or more, in the case of arithmetic shifts).
7446 Add patterns for truncate/sign-extend.
7447
7448 2003-03-13 Richard Sandiford <rsandifo@redhat.com>
7449
7450 * configure.in (mips*-*-*): Check for explicit relocation support.
7451 * configure: Regenerate.
7452
7453 2003-03-13 Richard Sandiford <rsandifo@redhat.com>
7454
7455 * config/mips/mips.h (TARGET_SWITCHES): Add -mexplicit-relocs
7456 and -mno-explicit-relocs.
7457 (MASK_EXPLICIT_RELOCS): Define.
7458 (TARGET_EXPLICIT_RELOCS): Use it.
7459 (mips_split_addresses): Remove declaration.
7460 * config/mips/mips.c (override_options): Update comment for
7461 mips_split_addresses. Clear MASK_EXPLICIT_RELOCS for non-PIC n64.
7462
7463 2003-03-13 Richard Sandiford <rsandifo@redhat.com>
7464
7465 * combine.c (gen_lowpart_for_combine): Treat the lowpart Pmode of
7466 a CONST as identity. Check the return value of gen_lowpart_common.
7467
7468 2003-03-13 Richard Sandiford <rsandifo@redhat.com>
7469
7470 * config/mips/mips.c (mips_legitimize_symbol): Handle small data
7471 references for TARGET_EXPLICIT_RELOCS.
7472 (mips_reloc_string): Return "%gp_rel(" for RELOC_GPREL16 if
7473 !TARGET_MIPS16.
7474
7475 2003-03-13 Richard Sandiford <rsandifo@redhat.com>
7476
7477 * config/mips/mips.md: Replace 'IQ' mips16 constraints with just 'Q'.
7478 (addsi3): Remove redundant constraints.
7479 (addsi3_internal): Use separate register & constant alternatives.
7480 Use a 'Q' constraint and "addiu" insn for the latter.
7481 (adddi3_internal_3, addsi3_internal_2): Likewise.
7482
7483 2003-03-13 Richard Sandiford <rsandifo@redhat.com>
7484
7485 * config/mips/mips-protos.h (mips_expand_unaligned_load): Declare.
7486 (mips_expand_unaligned_store): Declare.
7487 * config/mips/mips.c (mips_get_unaligned_mem): New fn.
7488 (mips_expand_unaligned_load, mips_expand_unaligned_store): New fns.
7489 * config/mips/mips.md (UNSPEC_ULW, UNSPEC_USW): Remove.
7490 (UNSPEC_ULD, UNSPEC_USD): Remove.
7491 (UNSPEC_LWL, UNSPEC_LWR, UNSPEC_SWL, UNSPEC_SWR): New.
7492 (UNSPEC_LDL, UNSPEC_LDR, UNSPEC_SDL, UNSPEC_SDR): New.
7493 (extv, extzv): Use mips_expand_unaligned_load.
7494 (insv): Use mips_expand_unaligned_store. Use a reg_or_0_operand
7495 predicate for operand 3.
7496 (movsi_ulw, movsi_usw): Replace with...
7497 (mov_lwl, mov_lwr, mov_swl, move_swr): ...these new insns.
7498 (movdi_uld, movdi_usd): Likewise replace with...
7499 (mov_ldl, mov_ldr, mov_sdl, move_sdr): ...these insns.
7500
7501 2003-02-26 Richard Sandiford <rsandifo@redhat.com>
7502
7503 * config/mips/mips-protos.h (mips_global_pic_constant_p): Declare.
7504 * config/mips/mips.h (LEA_REGS): New register class.
7505 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for it.
7506 (GR_REG_CLASS_P): Include LEA_REGS.
7507 (DANGEROUS_FOR_LA25_P): New macro.
7508 (EXTRA_CONSTRAINT): Add !DANGEROUS_FOR_LA25_P to R's condition.
7509 Add a T constraint for the DANGEROUS_FOR_LA25_P case.
7510 * config/mips/mips.c (mips_regno_to_class): Change GR_REGS
7511 entries to LEA_REGS.
7512 (mips_global_pic_constant_p): New function.
7513 (override_options): Add 'e' register constraint.
7514 (mips_secondary_reload_class): Return LEA_REGS when reloading
7515 a dangerous constant into a class containing $25.
7516 * config/mips/mips.md (movdi_internal2): Add an e <- T alternative.
7517 (movsi_internal): Likewise.
7518
7519 2003-02-23 Richard Sandiford <rsandifo@redhat.com>
7520
7521 * config/mips/mips.h (TARGET_SPLIT_CALLS): New macro.
7522 * config/mips/mips.md (call_split): New insn.
7523 (call_value_split, call_value_multiple_split): New insns.
7524 (call_internal): Turn into a define_insn_and_split. Split the
7525 instruction into a call and $gp load if TARGET_SPLIT_CALLS.
7526 (call_value_internal, call_value_multiple_internal): Likewise.
7527
7528 2003-02-23 Richard Sandiford <rsandifo@redhat.com>
7529
7530 * config/mips/mips.c (mips_reloc_string): Return "%got(" for
7531 RELOC_GOT_PAGE and RELOC_GOT_DISP if !TARGET_NEWABI.
7532 (mips_encode_section_info): Don't take symbol visibility into
7533 account if TARGET_ABICALLS. Add more commentary.
7534 * config/mips/mips.md: Add commentary above reloc constants.
7535
7536 2003-02-12 Richard Sandiford <rsandifo@redhat.com>
7537
7538 * config/mips/mips.c (mips_legitimize_const_move): New, extracted
7539 from mips_legitimize_move. Legitimize constant pool references.
7540 (mips_legitimize_move): Call mips_legitimize_const_move. Attach
7541 a REG_EQUAL note to the last instruction.
7542
7543 2003-02-11 Richard Sandiford <rsandifo@redhat.com>
7544
7545 * config/mips/mips-protos.h (mips_simplify_dwarf_addr): Declare.
7546 * config/mips/mips.h (TARGET_EXPLICIT_RELOCS, TARGET_NEWABI): New.
7547 (ASM_SIMPLIFY_DWARF_ADDR): Define to mips_simplify_dwarf_addr.
7548 (EXTRA_CONSTRAINT): Allow symbolic call addresses for TARGET_ABICALLS.
7549 * config/mips/mips.md (UNSPEC_HIGH): New constant.
7550 (UNSPEC_RELOC_GPREL16): Rename to...
7551 (RELOC_GPREL16): ...this.
7552 (RELOC_GOT_HI, RELOC_GOT_LO, RELOC_GOT_PAGE, RELOC_GOT_DISP): New.
7553 (RELOC_CALL16, RELOC_CALL_HI, RELOC_CALL_LO): New.
7554 (macro_calls): New attribute.
7555 (length): Use it to set the default length of calls. Don't allow
7556 calls to have delay slots if macro_calls is "yes".
7557 (luisi, luidi): New patterns.
7558 (lowsi, lowdi): Use '%R' to print the relocation.
7559 (lowdi_extend): Remove.
7560 (loadgp): Remove mode from operand 0. Use '%0' instead of '%a0'.
7561 (call_internal): Merge alternatives. Always use "jal".
7562 (call_value_internal, call_value_multiple_internal): Likewise.
7563 (reloc_gprel16): Remove.
7564 * config/mips/mips.c (mips_got_alias_set): New variable.
7565 (mips_classify_constant): Handle the new relocation constants.
7566 (mips_classify_symbol): Reverse the sense of SYMBOL_REF_FLAG for PIC.
7567 (mips_symbolic_address_p): Return false if generating explicit relocs.
7568 Otherwise allow local PIC symbols to have an offset.
7569 (mips_splittable_symbol_p): New function.
7570 (mips_classify_address): Use it to check whether a LO_SUM is valid.
7571 (mips_const_insns): Always accept HIGH.
7572 (call_insn_operand): Don't accept global symbols if using explicit
7573 relocs.
7574 (move_operand): Don't accept HIGH when generating PIC.
7575 (mips_reloc, mips_lui_reloc): New functions.
7576 (mips_force_temporary): Remove MODE argument. Expect VALUE to
7577 be a valid right-hand-side for a SET pattern.
7578 (mips_load_got, mips_load_got16, mips_load_got32): New functions.
7579 (mips_emit_high): New function.
7580 (mips_legitimize_symbol): Use mips_reloc for the mips16 gp-relative
7581 case. Use mips_splittable_symbol_p to check whether a LO_SUM
7582 address should be used. Use mips_emit_high to generate the
7583 high part of such an address. Adjust the global symbol + offset
7584 case to match the change to mips_force_temprorary.
7585 (mips_legitimize_move): Shuffle call to mips_legitimize_symbol.
7586 If generating explicit-reloc PIC, load the address of global
7587 symbols from the GOT. Use mips_emit_high to emit the high part
7588 of an address.
7589 (mips_simplify_dwarf_addr): New function.
7590 (mips_move_1word): Use lwc1 instead of l.s and swc1 instead of s.s.
7591 (mips_move_2words): Likewise ldc1/l.d and sdc1/s.d if TARGET_64BIT.
7592 (mips_expand_call): Load the addresses of global functions using
7593 %call* relocs if generating explicit-reloc PIC. Don't generate
7594 an exception_receiver pattern.
7595 (override_options): Initialize mips_got_alias_set.
7596 (print_relocation): Remove in favor of...
7597 (mips_reloc_string): ...this new function.
7598 (print_operand): Handle '%R'. Use mips_reloc_string.
7599 (print_operand_address): Use print_operand to print the symbolic
7600 part of a LO_SUM address.
7601 (mips_output_function_prologue): Use .cprestore, reverting last patch.
7602 (mips_encode_section_info): Factor out DECL_RTL accesses. Reverse
7603 sense of SYMBOL_REF_FLAG for PIC, using binds_local_p to check
7604 for local symbols.
7605
7606 2003-02-02 Eric Christopher <echristo@redhat.com>
7607
7608 * config/mips/mips.c (mips_sign_extend): Remove.
7609 * config/mips/mips-protos.h: Ditto.
7610 * config/mips/mips.md (movdi_internal2_extend): Remove.
7611 (extendsidi2): Fix mode of convert_memory_address.
7612
7613 2003-01-24 Eric Christopher <echristo@redhat.com>
7614
7615 * config/mips/mips.md: Rewrite zero_extend* and extend*
7616 patterns. Use explicit instructions and split after reload
7617 for register extensions.
7618 (ashlsi3_internal1_extend): New combiner pattern for
7619 shift and extend combinations.
7620 * config/mips/mips.h: Change Pmode back to ptr_mode
7621 for performance enhancement.
7622 * combine.c (expand_compound_operation): Make sure
7623 that zero_extend operation is profitable.
7624
7625 2003-01-14 Richard Sandiford <rsandifo@redhat.com>
7626
7627 * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Make size of stored
7628 addresses depend on ptr_mode rather than Pmode.
7629 (TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT): Update acoordingly.
7630 (INITIALIZE_TRAMPOLINE): Rework to handle Pmode != ptr_mode.
7631 (CASE_VECTOR_MODE): Use ptr_mode for !TARGET_MIPS16.
7632 (ASM_OUTPUT_ADDR_VEC_ELT): Update accordingly.
7633 * config/mips/mips.md (tablejump): Likewise. Remove Pmode
7634 condition for selecting cpaddsi or cpadddi: use cpadd instead.
7635 (tablejump_internal1): Remove condition.
7636 (tablejump_internal2): Change condition to TARGET_64BIT.
7637 (cpaddsi): Rename to...
7638 (cpadd): ...this.
7639 (cpadddi): Remove.
7640
7641 2003-01-09 Richard Sandiford <rsandifo@redhat.com>
7642
7643 * config/mips/mips-protos.h (mips16_constant_after_function_p,
7644 mips_address_cost, mips_check_split, double_memory_operand,
7645 mips16_gp_offset, mips16_gp_offset_p, mips16_constant,
7646 pic_address_needs_scratch, symbolic_operand): Remove declarations.
7647 (mips_legitimate_address_p): Return bool.
7648 (mips_address_insns, mips_fetch_insns, mips_const_insns,
7649 mips_legitimize_address, mips_legitimize_move,
7650 mips_expand_call): Declare.
7651 (mips_return_addr): Move outside #ifdef RTX_CODE.
7652
7653 * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): New macro.
7654 (PIC_FN_ADDR_REG): New reg_class.
7655 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add corresponding entries.
7656 (GR_REG_CLASS_P): True for PIC_FN_ADDR_REG.
7657 (SMALL_OPERAND, SMALL_OPERAND_UNSIGNED, LUI_OPERAND,
7658 CONST_HIGH_PART, CONST_LOW_PART, LUI_INT): New macros.
7659 (SMALL_INT, SMALL_INT_UNSIGNED, CONST_OK_FOR_LETTER_P): Use new macros.
7660 (EXTRA_CONSTRAINTS): Give new meanings to Q, R and S.
7661 (CONSTANT_ADDRESS_P): Use mips_legitimate_address_p.
7662 (LEGITIMATE_PIC_OPERAND): Undefine.
7663 (LEGITIMATE_CONSTANT_P): Use mips_const_insns.
7664 (LEGITIMIZE_ADDRESS): Use mips_legitimize_address.
7665 (CONSTANT_AFTER_FUNCTION_P): Remove definition in #if 0 block.
7666 (FUNCTION_MODE): Change to SImode.
7667 (CONST_COSTS): Use mips_const_insns to calculate the cost of
7668 most constants. Treat const_artih_operands specially if they
7669 occur in a PLUS or MINUS.
7670 (CONSTANT_POOL_COST): New macro.
7671 (RTX_COSTS): Use mips_address_insns for MEMs, with a base cost of 2.
7672 Add LO_SUM handling.
7673 (ADDRESS_COST): Undefine.
7674 (PREDICATE_CODES): Add symbolic_operand and const_arith_operand.
7675 Add CONST to the list of codes for arith_operand. Add LABEL_REF
7676 to call_insn_operand and remove CONST_INT.
7677
7678 * config/mips/mips.c: Include integrate.h.
7679 (SINGLE_WORD_MODE_P): New macro.
7680 (mips_constant_type, mips_symbol_type, mips_address_type): New enums.
7681 (mips_constant_info, mips_address_info): New structs.
7682 (mips_regno_to_class): Map $25 to PIC_FN_ADDR_REG.
7683 (mips_classify_constant, mips_classify_symbol,
7684 mips_valid_base_register_p, mips_symbolic_address_p,
7685 mips_classify_address, mips_symbol_insns,
7686 mips16_unextended_reference_p, mips_address_insns, mips_const_insns,
7687 mips_fetch_insns, mips_force_temporary, mips_add_offset,
7688 mips_legitimize_symbol, mips_legitimize_address, mips_legitimize_move,
7689 mips_print_relocation): New functions.
7690 (const_arith_operand): New operand predicate.
7691 (arith_operand): Use it.
7692 (mips_const_double_ok, mips16_simple_memory_operand,
7693 simple_memory_operand, double_memory_operand, mips_check_split,
7694 mips_address_cost, pic_address_needs_scratch, mips16_gp_offset,
7695 mips16_gp_offset_p, mips16_output_gp_offset,
7696 mips16_constant_after_function_p, mips16_constant): Remove.
7697 (call_insn_operand): Be more fussy about symbolic constants.
7698 Use register_operand.
7699 (move_operand): Use mips_symbolic_address_p to check symbolic
7700 operands and general_operand to check the rest.
7701 (symbolic_operand): Use mips_classify_constant.
7702 (mips_legitimate_address_p): Use mips_classify_address.
7703 (mips_move_1word): Combine handling of symbolic addresses.
7704 Remove special treatment of gp-relative loads for TARGET_MIPS16.
7705 (move_move_2words): Likewise. Assume addresses are offsettable
7706 if they need to refer to more than one word. Add HIGH handling.
7707 (mips_restore_gp): Use ptr_mode for the GP save slot.
7708 (mips_expand_call): New function, combining the old mips.md
7709 call and call_internal define_expands. If the address isn't
7710 a call_insn_operand, force it into a register. For SVR4 PIC,
7711 emit an exception_receiver instruction after the call.
7712 (override_options): Only override flag_pic for TARGET_ABICALLS
7713 if it is currently zero. Allow mips_split_addresses when
7714 Pmode == DImode too, except when ABI_HAS_64BIT_SYMBOLS.
7715 Add new register class letter, 'c'.
7716 (print_operand): Use mips_classify_constant for constant operands.
7717 (print_operand_address): Use mips_classify_address.
7718 (mips_output_function_prologue): Don't use .cprestore.
7719 (mips_expand_epilogue): For TARGET_MIPS16, only adjust the stack
7720 via the frame pointer if current_function_calls_eh_return.
7721 (mips_encode_section_info): For TARGET_ABICALLS, use SYMBOL_REF_FLAG
7722 to mark whether a symbol is local or global.
7723 (build_mips16_call_stub): Expect the address of the function rather
7724 than a MEM reference to it. Update call generation sequences.
7725 (mips16_optimize_gp): Remove Pmode checks. Temporarily disable
7726 small-data adjustments.
7727
7728 * config/mips/mips.md: Remove 'R'/'m' memory distinction. Use default
7729 length for loads and stores.
7730 (UNSPEC_CPADD, UNSPEC_RELOC_GPREL16): New constants.
7731 (define_attr type): Add const and prefetch.
7732 (define_attr length): Use mips_const_insns for const instructions.
7733 Use mips_fetch_insns for load and store instructions.
7734 (define_attr single_insn): New.
7735 (define_attr can_delay): Use it.
7736 (define_attr abicalls): Remove.
7737 (define_delay): Use can_delay. Always allow calls to have delay slots.
7738 (addsi3_internal_2): Add 'Q' constraint.
7739 (movsi_ulw, movsi_usw, movdi_uld, movdi_usd): Set length to 8.
7740 (high): Remove.
7741 (lowsi): Renamed from low.
7742 (lowdi): New pattern.
7743 (movdi, movsi): Use mips_legitimize_move. Remove define_split.
7744 (lwxc1, ldxc1, swxc1, sdxc1): Set length to 4.
7745 (loadgp): Change operand 0 to an immediate_operand.
7746 (tablejump): Use the same patterns for SVR4 PIC but emit a cpadd
7747 beforehand.
7748 (cpaddsi, cpadddi): New patterns.
7749 (tablejump_internal3, tablejump_internal4): Remove define_expands
7750 and associated define_splits.
7751 (call, call_value): Use mips_expand_call.
7752 (call_internal): New, replacing all existing call_internal* insns.
7753 (call_value_internal): Likewise call_value_internal*.
7754 (call_value_multiple_internal): Likewise call_value_multiple_internal*.
7755 (untyped_call): Remove if (operands[0]) magic.
7756 (prefetch_si_address, prefetch_si): Change type to "prefetch".
7757 (prefetch_di_address, prefetch_di): Likewise.
7758 (leasi, leadi): Remove.
7759 (reloc_gprel16): New.
7760
7761 * config/mips/5400.md (ir_vr54_hilo): Include const type.
7762 * config/mips/5500.md (ir_vr55_hilo): Likewise.
7763 * config/mips/sr71k.md (ir_sr70_hilo): Likewise.
7764
7765 2003-01-08 Eric Christopher <echristo@redhat.com>
7766
7767 * config.gcc (mipsisa32*): Change ABI_MEABI to ABI_EABI.
7768 * config/mips/elf.h (STARTFILE_SPEC): Remove ABI_MEABI references and
7769 configure check for libgloss.
7770 * config/mips/elf64.h: Ditto.
7771 * config/mips/mips.c: Remove ABI_MEABI.
7772 * config/mips/mips.h: Ditto.
7773
7774 2002-11-05 Richard Sandiford <rsandifo@redhat.com>
7775
7776 Fix merge fallout.
7777 * config/mips/mips.md (mul_acc_si): Reapply 2002-10-16 change.
7778 (muldi3_internal): Remove outdated comment.
7779 (*muls_di, *umuls_di): Fix comment and 64-bitness.
7780 (*smsac_di, *umsac_di): Likewise. Reformat.
7781 (umulsi3_highpart): Minor formatting tweaks.
7782 (umulsi3_highpart_internal): Use only if !ISA_HAS_MULHI. Remove
7783 redundant scratch operand. Minor formatting tweak.
7784 (umulsi3_highpart_mulhi_internal): Use for !TARGET_64BIT as well.
7785 (umulsi3_highpart_neg_mulhi_internal): Likewise. Fix asm template.
7786 (smulsi3_highpart): As for the unsigned version.
7787 (smulsi3_highpart_internal): Likewise.
7788 (smulsi3_highpart_mulhi_internal): Likewise.
7789 (smulsi3_highpart_neg_mulhi_internal): Likewise.
7790 (smuldi3_highpart, umuldi3_highpart): Minor formatting tweaks.
7791 (*smul_acc_di): Remove duplicated pattern.
7792 (*umul_acc_di, *smul_acc_di): Reapply 2002-10-16 change.
7793 (anddi3) [unnamed mips16 pattern]: Remove reintroduced length.
7794 (zero_extendsidi2_internal2): Remove new, but commented-out pattern.
7795
7796 2002-10-22 Eric Christopher <echristo@redhat.com>
7797
7798 * config/mips/mips-protos.h (mips_return_addr): New.
7799 * config/mips/mips.c (mips_return_addr): New.
7800 (movdi_operand): Remove.
7801 (se_register_operand): Ditto.
7802 (se_reg_or_0_operand): Ditto.
7803 (se_uns_arith_operand): Ditto.
7804 (se_arith_operand): Ditto.
7805 (se_nonmemory_operand): Ditto.
7806 (extend_operator): Ditto.
7807 (highpart_shift_operator): Ditto.
7808 (mips_initial_elimination_offset): Remove return address pointer
7809 elimination.
7810 (mips_reg_names): Remove $ra.
7811 (mips_regno_to_class): Ditto.
7812 * config/mips/mips.h (POINTER_SIZE): Define based on TARGET_LONG64
7813 and TARGET_64BIT.
7814 (POINTER_BOUNDARY): Remove.
7815 (POINTERS_EXTEND_UNSIGNED): Define to 0.
7816 (PROMOTE_MODE): Promote to Pmode.
7817 (SHORT_IMMEDIATES_SIGN_EXTEND): Define.
7818 (Pmode): Define to TARGET_64BIT.
7819 (FUNCTION_MODE): Define as Pmode.
7820 (mips_args): Remove deleted functions.
7821 (SIZE_TYPE): Depend on POINTER_SIZE.
7822 (PTRDIFF_TYPE): Ditto.
7823 (FIXED_REGISTERS): Fix extra registers.
7824 (CALL_USED_REGISTERS): Ditto.
7825 (CALL_REALLY_USED_REGISTERS): Ditto.
7826 (RAP_REG_NUM): Remove.
7827 (RETURN_ADDRESS_POINTER_REGNUM): Ditto.
7828 (RETURN_ADDR_RTX): Define to mips_return_addr.
7829 (ELIMINABLE_REGS): Remove RETURN_ADDRESS_POINTER_REGNUM.
7830 (CAN_ELIMINATE): Ditto.
7831 * config/mips/mips.md: For DImode patterns, take into account
7832 deletions above. Split mulsidi patterns into sign_extend and
7833 zero_extend.
7834
7835 2002-10-16 Richard Sandiford <rsandifo@redhat.com>
7836 Michael Meissner <meissner@redhat.com>
7837
7838 * config/mips/mips.h (ISA_HAS_MACC): True for normal-mode vr4120 code.
7839 * config/mips/mips.md (mulsi3_mult3): Add a define_peephole2 to
7840 mop up unnecessarly moves through LO.
7841 (*mul_acc_si): Remove vr5400 and vr5500 handling from here.
7842 (*macc): New pattern for ISA_HAS_MACC. Add define_peephole2s to
7843 change mtlo/macc sequences into mul/add sequences when a three-
7844 address mul is available.
7845 (*macc2): New pattern. Add a define_peephole2 to generate it.
7846 (*mul_sub_si): Fix contraint for operand 5.
7847 (*muls): Use in 32-bit code as well.
7848 (*msac): Likewise. Use msub instead of msac in vr5500 code
7849 if the destination is LO. Remove duplicate define_split.
7850 (*muls_di): Use only in 32-bit code. Adjust rtl accordingly.
7851 (*msac_di): Likewise. Fix formatting.
7852 (smulsi3_highpart, umulsi3_highpart): Use mulhi in 32-bit code too.
7853 (*xmulsi3_highpart_internal): Use only if !ISA_HAS_MULHI.
7854 (*xmulsi3_highpart_mulhi): Use even if !TARGET_64BIT.
7855 (*xmulsi3_neg_highpart_mulhi): Likewise.
7856 (*mul_acc_64bit_di): Remove.
7857 (*mul_acc_di): Use only in 32-bit code. Handle ISA_HAS_MACC as well.
7858
7859 2002-10-14 Richard Sandiford <rsandifo@redhat.com>
7860
7861 * config/mips/vr.h (DRIVER_SELF_SPECS): Define.
7862 * config/mips/t-vr (MULTILIB_OPTIONS): Remove mlong32.
7863 (MULTILIB_DIRNAMES): Remove long32.
7864 (MULTILIB_EXCEPTIONS): Don't build -mabi=32 -mgp32 multilibs.
7865 (MULTILIB_REDUNDANT_DIRS): Remove.
7866
7867 2002-10-14 Richard Sandiford <rsandifo@redhat.com>
7868
7869 * doc/tm.texi (DRIVER_SELF_SPECS): Document.
7870 * gcc.c (driver_self_specs): New variable.
7871 (do_self_spec): New function.
7872 (main): Use it to process driver_self_specs.
7873
7874 2002-10-09 Richard Sandiford <rsandifo@redhat.com>
7875
7876 * config/mips/mips.md (one_cmpldi2): Use only if TARGET_64BIT.
7877 Remove DImode define_split for !TARGET_64BIT.
7878 (anddi3): Remove !TARGET_64BIT support from here as well.
7879 Change operand 2's predicate to se_uns_arith_operand.
7880 Add constant alternatives to define_insn.
7881 (iordi3, xordi3, *nordi3): Likewise.
7882 (anddi3_internal1, xordi3_immed): Remove.
7883
7884 2002-10-01 Richard Sandiford <rsandifo@redhat.com>
7885
7886 * config/mips/mips.h (PROCESSOR_R4121): Rename to PROCESSOR_R4120.
7887 (TARGET_MIPS4121): Rename to TARGET_MIPS4120.
7888 * config/mips/mips.c (mips_cpu_info): Rename vr4121 to vr4120.
7889 * config/mips/mips.md: Apply same renaming here.
7890
7891 2002-10-01 Richard Sandiford <rsandifo@redhat.com>
7892
7893 * config/mips/mips.c (PROCESSOR_R4320, TARGET_MIPS4320): Remove.
7894 (GENERATE_MULT3_SI): Remove use of TARGET_MIPS4320.
7895 * config/mips/mips.c (mips_cpu_info): Remove vr4320 entry.
7896 * config/mips/mips.md (define_attr cpu): Remove r4320.
7897 Remove vr4320 scheduler and uses of TARGET_MIPS4320.
7898
7899 2002-10-01 Richard Sandiford <rsandifo@redhat.com>
7900
7901 * config/mips/mips.c (mips16_strings): New variable.
7902 (mips_output_function_epilogue): Clear the SYMBOL_REF_FLAG of every
7903 symbol in mips16_strings. Free the list.
7904 (mips_encode_section_info): Keep track of local strings.
7905
7906 2002-10-01 Richard Sandiford <rsandifo@redhat.com>
7907
7908 * config/mips/mips.md (bunge, bltgt, bungt): New define_expands.
7909 (sordered_df, sordered_sf): Remove.
7910 * config/mips/mips.c (get_float_compare_codes): New fn.
7911 (gen_int_relational, gen_conditional_move): Use it.
7912
7913 2002-10-01 Richard Sandiford <rsandifo@redhat.com>
7914
7915 * config/mips/mips-protos.h (mips_emit_fcc_reload): Declare.
7916 * config/mips/mips.h (PREDICATE_CODES): Add fcc_register_operand.
7917 * config/mips/mips.c (fcc_register_operand): New function.
7918 (mips_emit_fcc_reload): New function, extracted from reload_incc.
7919 (override_options): Allow TFmode values in float registers
7920 if ISA_HAS_8CC.
7921 * cnfig/mips/mips.md (reload_incc): Change destination prediate
7922 to fcc_register_operand. Remove misleading source constraint.
7923 Use mips_emit_fcc_reload.
7924 (reload_outcc): Duplicate reload_incc.
7925
7926
7927 2003-04-30 Diego Novillo <dnovillo@redhat.com>
7928
7929 * builtins.def (BUILTIN_CONSTANT_P): Mark as constant.
7930
7931 2003-04-30 Geoffrey Keating <geoffk@apple.com>
7932
7933 * tree-inline.c (inlinable_function_p): Back out last change, it's
7934 unnecessary.
7935
7936 2003-04-30 Steven Bosscher <steven@gcc.gnu.org>
7937
7938 * ggc-page.c (TREE_EXP_SIZE): Define.
7939 (extra_order_size_table): New entry for expr trees with
7940 two operands.
7941
7942 2003-04-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
7943
7944 * c-common.c (if_elt): Use location_t in lieu of "file, line" pair.
7945 (c_expand_start_cond): Adjust.
7946 (c_expand_end_cond): Don't use warning_with_file_and_file.
7947 (shadow_warning): Likewise.
7948
7949 2003-04-30 Nathan Sidwell <nathan@codesourcery.com>
7950
7951 * tree.h (DECL_POINTER_DEPTH): Remove.
7952 (struct tree_decl): Remove pointer_depth.
7953
7954 2003-04-30 Janis Johnson <janis187@us.ibm.com>
7955
7956 * config/rs6000/linux64.h (ASM_OUTPUT_LABELREF): Remove.
7957 * config/rs6000/rs6000.c (rs6000_elf_strip_name_encoding): Remove.
7958 (rs6000_xcoff_encode_section_info): Remove.
7959 (current_file_function_operand): Use SYMBOL_REF_FLAGS; fix latent bug.
7960 (rs6000_output_mi_thunk): Remove dead code; use SYMBOL_REF_FLAGS.
7961 (small_data_operand, rs6000_emit_move, rs6000_elf_in_small_data_p,):
7962 Use SYMBOL_REF_FLAGS.
7963 (rs6000_elf_encode_section_info): Call default_encode_section_info for
7964 generic flags, use SYMBOL_REF_FLAGS; code cleanups.
7965 * sysv4.h (TARGET_STRIP_NAME_ENCODING, ASM_OUTPUT_LABELREF): Remove.
7966 (SYMBOL_FLAG_SMALL_V4, SYMBOL_REF_SMALL_V4_P): New.
7967 * xcoff.h (TARGET_ENCODE_SECTION_INFO): Remove.
7968 (ASM_DECLARE_FUNCTION_NAME): Remove setting of SYMBOL_REF_FLAG.
7969
7970 2003-04-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
7971
7972 * diagnostic.c (output_pointer): Use HOST_PTR_PRINTF.
7973
7974 2003-04-30 Andreas Schwab <schwab@suse.de>
7975
7976 * doc/extend.texi (Other Builtins): Enclose multiple word data
7977 type in braces for @deftypefn.
7978
7979 2003-04-30 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7980
7981 * stor-layout.c (mode_for_size_tree): Use BLKmode if SIZE overflows.
7982
7983 * doc/install.texi (--enable-threads): Document "gnat" option.
7984
7985 2003-04-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
7986
7987 * diagnostic.h (output_formatted_scalar): Tweak.
7988 * diagnostic.c (output_long_decimal): Likewise.
7989 (output_unsigned_decimal): Likewise.
7990 (output_long_unsigned_decimal): Likewise.
7991 (output_octal): Likewise.
7992 (output_long_octal): Likewise.
7993 (output_hexadecimal): Likewise.
7994 (output_long_hexadecimal): Likewise.
7995 (output_pointer): New function.
7996 (output_format): Use it. Recognize "%p" format specifier.
7997
7998 2003-04-30 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7999
8000 * function.c (purge_addressof_1): Postpone insn in fewer cases.
8001
8002 2003-04-29 Geoffrey Keating <geoffk@apple.com>
8003
8004 * config/rs6000/host-darwin.c (segv_handler): When -dH is used,
8005 call abort() after running out of stack space.
8006
8007 * c-typeck.c (function_types_compatible_p): Ignore incompatible
8008 'volatile' qualifiers on a function's return type in GNU mode.
8009
8010 2003-04-29 Aldy Hernandez <aldyh@redhat.com>
8011
8012 * expr.c (emit_group_load): Dump parallels of simd types to
8013 memory.
8014
8015 2003-04-29 Vladimir Makarov <vmakarov@redhat.com>
8016
8017 * genautomata.c (add_vect): Check undefined value for range type
8018 too.
8019
8020 2003-04-29 Phil Edwards <pme@gcc.gnu.org>
8021
8022 * configure.in: More general test for cmp --ignore-initial.
8023 * configure: Regenerate.
8024
8025 2003-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8026
8027 * stor-layout.c (mode_for_size_tree): Use tree_low_cst.
8028 (layout_decl, place_field): Likewise.
8029 Also make minor type and whitespace changes.
8030
8031 * tree.c (save_expr): Don't fold a COMPONENT_REF.
8032
8033 2003-04-29 Olivier Hainque <hainque@act-europe.fr>
8034
8035 * calls.c (expand_call): When modes of target and valreg match, force
8036 sibcall failure when target is a MEM.
8037
8038 2003-04-29 Geoffrey Keating <geoffk@apple.com>
8039
8040 * tree-inline.c (inlinable_function_p): Don't support inlining
8041 functions using varargs.
8042
8043 * doc/invoke.texi (Overall Options): Mention -x objective-c-header.
8044
8045 * dwarf2out.c (output_call_frame_info): No need to output EH
8046 unwind information if all_throwers_are_sibcalls.
8047
8048 * c-semantics.c (expand_unreachable_stmt): Return a tree.
8049 (expand_stmt): Update for change to expand_unreachable_stmt.
8050 (expand_unreachable_if_stmt): Likewise.
8051
8052 * Makefile.in (quickstrap): Pass BOOT_CFLAGS to submake.
8053
8054 2003-04-29 Jason Merrill <jason@redhat.com>
8055
8056 PR middle-end/10336
8057 * jump.c (never_reached_warning): Really stop looking if we reach
8058 the beginning of the function.
8059
8060 2003-04-29 Bob Wilson <bob.wilson@acm.org>
8061
8062 * config/xtensa/elf.h (SIZE_TYPE, PTRDIFF_TYPE, USER_LABEL_PREFIX):
8063 Remove redundant macros.
8064 (WCHAR_TYPE, WCHAR_TYPE_SIZE): Change to "short unsigned int".
8065 (LOCAL_LABEL_PREFIX): Define unconditionally.
8066 (NO_DOT_IN_LABEL): Clarify comment.
8067 * config/xtensa/linux.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Add explicit
8068 definition to "long int".
8069
8070 2003-04-29 Alexander Kabaev <kan@FreeBSD.ORG>
8071
8072 bootstrap/10452
8073 * gengtype-yacc.y: Improve portability.
8074
8075 2003-04-29 Zack Weinberg <zack@codesourcery.com>
8076
8077 * config.gcc: Install obsolete target list for GCC 3.3.
8078 * doc/install.texi: Mention in specific-target instructions
8079 that certain configurations are deprecated.
8080
8081 2003-04-29 Zack Weinberg <zack@codesourcery.com>
8082
8083 * tree.h: Delete no-checking definition of CST_OR_CONSTRUCTOR_CHECK.
8084
8085 2003-04-29 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
8086
8087 * c-pragma.c (maybe_apply_renaming_pragma): Fix typo.
8088 * gcc.c (display_help): Likewise.
8089 * toplev.c (f_options): Likewise.
8090 * params.def (PARAM_MAX_INLINE_SCOPE): Likewise.
8091 * config/c4x/c4x.h (TARGET_SWITCHES): Likewise.
8092 * config/mcore/mcore.h (TARGET_SWITCHES): Likewise.
8093 * config/s390/s390.h (TARGET_SWITCHES): Likewise.
8094 * config/v850/v850.h (TARGET_SWITCHES): Likewise.
8095
8096 2003-04-29 J"orn Rennecke <joern.rennecke@superh.com>
8097
8098 * varasm.c (default_assemble_visibility): Use assemble_name.
8099
8100 2003-04-29 David O'Brien <obrien@FreeBSD.org>
8101
8102 * config/i386/freebsd64.h (LINK_SPEC): Mirror FreeBSD linker.
8103 * config/rs6000/freebsd.h (LINK_SHLIB_SPEC): New macro.
8104 (SIZE_TYPE): New macro.
8105 * config/i386/freebsd-aout.h (NO_PROFILE_COUNTERS): New macro.
8106 (SET_ASM_OP): New macro.
8107 (HANDLE_SYSV_PRAGMA): New macro.
8108 (ASM_WEAKEN_LABEL): New macro.
8109
8110 2003-04-28 Mark Mitchell <mark@codesourcery.com>
8111
8112 PR c++/10180
8113 * tree-inline.c (expand_call_inline): Call push_srcloc when
8114 encountering EXPR_WITH_FILE_LOCATION. Honor warn_inline.
8115
8116 2003-04-28 Mike Stump <mrs@apple.com>
8117
8118 * gdbinit.in: Update to reflect new identifier structure.
8119
8120 2003-04-28 Zack Weinberg <zack@codesourcery.com>
8121
8122 * tree.h (TREE_CST_RTL, CST_OR_CONSTRUCTOR_CHECK): Delete.
8123 (struct tree_int_cst, struct tree_real_cst, struct tree_string,
8124 struct tree_complex, struct tree_vector): Remove RTL field.
8125 (CONSTRUCTOR_ELTS): Use elt 0.
8126 * tree.def (CONSTRUCTOR): Delete first of its two operands.
8127 * varasm.c (output_constant_def): Remove early exit if
8128 TREE_CST_RTL is set. Don't set TREE_CST_RTL.
8129 (decode_addr_const): Don't mention TREE_CST_RTL in comment.
8130 * target.h (select_section): Don't mention TREE_CST_RTL in comment.
8131 * doc/tm.texi (encode_section_info): Don't talk about TREE_CST_RTL.
8132
8133 2003-04-28 Jakub Jelinek <jakub@redhat.com>
8134
8135 * c-decl.c (finish_decl): When prototype with asmspec is found
8136 for built-in, adjust built_in_decls as well as expr.c decls.
8137 * expr.c (init_block_move_fn, init_block_clear_fn): New functions.
8138 (emit_block_move_libcall_fn, clear_storage_libcall_fn): Use it.
8139 * expr.c (init_block_move_fn, init_block_clear_fn): New prototypes.
8140
8141 2003-04-28 Richard Henderson <rth@redhat.com>
8142
8143 * config/sparc/sparc.c (print_operand): Add 's' to sign-extend.
8144 * config/sparc/sparc.md (const_mulsidi3_v8plus): Fix mode of
8145 integral constant mult operand.
8146 (const_mulsidi3_sp32, const_mulsidi3_sp64): Likewise.
8147 (const_smulsi3_highpart_v8plus): Likewise.
8148 (const_smulsi3_highpart): Likewise.
8149 (const_umulsidi3_sp32): Likewise; sign-extend it in the output.
8150 (const_umulsidi3_sp64, const_umulsidi3_v8plus): Likewise.
8151 (const_umulsi3_highpart_v8plus): Likewise.
8152 (const_umulsi3_highpart): Likewise.
8153
8154 2003-04-28 David O'Brien <obrien@FreeBSD.org>
8155
8156 * config/i386/x86-64.h (NO_PROFILE_COUNTERS, HAVE_AS_DWARF2_DEBUG_LINE):
8157 Define as 1.
8158
8159 2003-04-28 David O'Brien <obrien@FreeBSD.org>
8160
8161 * config/i386/i386.h (builtin_define): Add __amd64 and __amd64__.
8162
8163 2003-04-28 Jakub Jelinek <jakub@redhat.com>
8164
8165 * builtins.def (BUILT_IN_BCOPY, BUILT_IN_MEMMOVE): New.
8166 * builtin-types.def (BT_FN_VOID_CONST_PTR_PTR_SIZE): New.
8167 * builtins.c (expand_builtin_memmove, expand_builtin_bcopy): New
8168 functions.
8169 (expand_builtin): Handle BUILT_IN_BCOPY and BUILT_IN_MEMMOVE.
8170
8171 2003-04-28 Nick Clifton <nickc@redhat.com>
8172
8173 * config/arm/elf.h (ASM_OUTPUT_ALIGNED_COMMON): Remove definition.
8174
8175 2003-04-27 Zack Weinberg <zack@codesourcery.com>
8176
8177 * expr.c (expand_expr <COMPLEX_CST, STRING_CST>): Always call
8178 output_constant_def, use its result instead of TREE_CST_RTL (exp).
8179 Can assume it has the form (mem (symbol_ref ".LCxxx")).
8180 (expand_expr <COMPONENT_REF>): Can always just extract the
8181 relevant field of a CONSTRUCTOR.
8182 (expand_expr <ARRAY_REF, COMPONENT_REF, BIT_FIELD_REF,
8183 ARRAY_RANGE_REF>): Make control flow explicit.
8184 * varasm.c (output_constant_def): Can look at TREE_CST_RTL of
8185 an INTEGER_CST.
8186
8187 2003-04-27 Kazu Hirata <kazu@cs.umass.edu>
8188
8189 * reload1.c (reg_set_luid): Fix a comment typo.
8190
8191 2003-04-27 Zack Weinberg <zack@codesourcery.com>
8192
8193 * varasm.c (const_str_htab_hash, const_str_htab_eq, STRHASH,
8194 struct deferred_string, const_str_htab): Kill.
8195 (n_deferred_strings): New static variable.
8196 (build_constant_desc): Set SYMBOL_REF_DECL of the new
8197 symbol_ref to point to the constant.
8198 (output_constant_def): When a deferred string is forced out,
8199 just clear STRING_POOL_ADDRESS_P and decrement n_deferred_strings.
8200 (mark_constant): Likewise.
8201 (maybe_output_constant_def_contents): When deferring a string
8202 constant, just set STRING_POOL_ADDRESS_P and increment
8203 n_deferred_strings.
8204 (mark_constant_pool): Check n_deferred_strings, not the size
8205 of const_str_htab.
8206 (init_varasm_once): No need to create const_str_htab.
8207
8208 * rtl.def, rtl.h, doc/rtl.texi: Document possibility that
8209 SYMBOL_REF_DECL points to a constant.
8210
8211 2003-04-26 Zack Weinberg <zack@codesourcery.com>
8212
8213 * varasm.c (output_constant_def): Split out two new static
8214 functions, build_constant_desc and maybe_output_constant_def_contents.
8215 Restructure for comprehensibility. Don't call
8216 output_addressed_constants. Treat defstr being non-NULL for
8217 STRING_POOL_ADDRESS_P constants as an invariant.
8218 (struct deferred_string): Remove labelno field.
8219 (output_constant_def_contents): Kill labelno argument. Call
8220 output_addressed_constants here. Use ASM_OUTPUT_LABEL, not
8221 asm_out.internal_label.
8222 (mark_constant): Update call to output_constant_def_contents.
8223 Treat defstr being non-NULL for STRING_POOL_ADDRESS_P
8224 constants as an invariant.
8225
8226 2003-04-26 Richard Henderson <rth@redhat.com>
8227
8228 * config/i386/i386.c (output_pic_addr_const): Use SYMBOL_REF_LOCAL_P.
8229 (ix86_expand_call, ix86_rtx_consts): Likewise.
8230
8231 2003-04-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8232
8233 * doc/md.texi (cmpstr): Document additional restrictions.
8234
8235 2003-04-26 Neil Booth <neil@daikokuya.co.uk>
8236
8237 * flags.h (time_report): Remove.
8238 * timevar.c (timevar_enable): New.
8239 (TIMEVAR_ENABLE): Remove, use timevar_enable.
8240 (timevar_init): Rename from init_timevar.
8241 * timevar.h (timevar_init): Rename from init_timevar.
8242 * toplev.c (time_report): Make static.
8243 (do_compile): Conditionally call init_timevar first.
8244 (preprocess_options): Move some code to do_compile.
8245
8246 2003-04-26 Stephane Carrez <stcarrez@nerim.fr>
8247
8248 * doc/install.texi (Binaries): Mention binaries for HC11/HC12.
8249
8250 2003-04-26 Neil Booth <neil@daikokuya.co.uk>
8251
8252 * _cpp_lex_direct: Remove pointless code.
8253
8254 2003-04-26 Stephane Carrez <stcarrez@nerim.fr>
8255
8256 * doc/extend.texi (Function Attributes): Document "near" and "far"
8257 for 68HC11 and 68HC12.
8258
8259 2003-04-25 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8260
8261 * expr.c (store_field): When making temporary for store, don't
8262 make it TYPE_QUAL_CONST.
8263
8264 2003-04-25 Phil Edwards <pme@gcc.gnu.org>
8265
8266 * toplev.c (read_integral_parameter): Use "argument" in error
8267 message to distinguish it from actual invalid options.
8268
8269 2003-04-25 Bob Wilson <bob.wilson@acm.org>
8270
8271 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Back out previous
8272 addition of __PIC__ and __pic__ macros.
8273 * config/xtensa/xtensa.h: Clean up indentation.
8274
8275 2003-04-25 Bob Wilson <bob.wilson@acm.org>
8276
8277 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Remove definition of
8278 _GNU_SOURCE. Add definitions of __PIC__ and __pic__.
8279 (SUBTARGET_CPP_SPEC): Define.
8280 (LIB_SPEC): Delete.
8281 * config/xtensa/xtensa-protos.h (xtensa_declare_object): Delete.
8282 * config/xtensa/xtensa.c (xtensa_declare_object): Delete.
8283 * config/xtensa/xtensa.h (CPP_SPEC, SUBTARGET_CPP_SPEC, EXTRA_SPECS):
8284 Define.
8285 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
8286 (ASM_OUTPUT_ALIGNED_BSS, BSS_SECTION_ASM_OP): Define.
8287
8288 2003-04-25 H.J. Lu <hjl@gnu.org>
8289
8290 * config/ia64/ia64.c (ia64_expand_compare_and_swap): Add rmode
8291 for return mode.
8292 (ia64_expand_builtin): Set rmode to SImode for
8293 IA64_BUILTIN_BOOL_COMPARE_AND_SWAP_SI,
8294 IA64_BUILTIN_VAL_COMPARE_AND_SWAP_SI and
8295 IA64_BUILTIN_BOOL_COMPARE_AND_SWAP_DI. Set remode to DImode
8296 for IA64_BUILTIN_VAL_COMPARE_AND_SWAP_DI.
8297
8298 2003-04-25 Phil Edwards <pme@gcc.gnu.org>
8299
8300 * configure.in (make_compare_target): Test for GNU cmp and set this
8301 variable appropriately.
8302 * Makefile.in (compare, compare3, compare4, compare-lean, compare3-lean,
8303 compare4-lean): Rename actual targets to slowcompare*. New compare*
8304 targets depend on names based on make_compare_target.
8305 * configure: Regenerated.
8306
8307 2003-04-25 Richard Henderson <rth@redhat.com>
8308
8309 * config/ia64/ia64.c (ia64_compute_frame_size): Allow inline asm
8310 to clobber ar.pfs and ar.unat.
8311 (ia64_expand_prologue): Force alloc instruction if ar.pfs saved;
8312 fix test for spilling ar.pfs to the stack.
8313
8314 2003-04-25 Richard Henderson <rth@redhat.com>
8315
8316 PR opt/10315
8317 * config/rs6000/rs6000.c (rs6000_emit_move): Only elide proper
8318 checks during reload; use validize_mem instead of adjust_address.
8319
8320 2003-04-26 Ben Elliston <bje@wasabisystems.com>
8321
8322 * config/arm/arm.c (arm_adjust_cost): Correct logic that tests the
8323 return values from recog_memoized().
8324
8325 2003-04-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8326
8327 PR opt/8705
8328 * gcse.c (try_replace_reg): On a successful substitution of a constant
8329 into a single set, try to simplify the source of the set.
8330 * loop.c (scan_loop): Don't try to optimize a MODE_CC set with a
8331 constant source.
8332
8333 2003-04-24 Neil Booth <neil@daikokuya.co.uk>
8334
8335 * cpplex.c (cpp_token_len): Tighten up.
8336 (cpp_token_as_text): Need extra byte now.
8337 * cpplib.c (glue_header_name): Need extra 2 bytes.
8338 * cppmacro.c (cpp_macro_definition): Need extra byte.
8339
8340 2003-04-24 Alexander Kabaev <kan@FreeBSD.ORG>
8341
8342 * config/sparc/sparc.md (umulsidi3, mulsidi3): Avoid using
8343 const_umulsidi3_sp32 and const_mulsidi3_sp32 on 64bit targets
8344 where they might be not present. Use their _sp64 equivalent
8345 instead.
8346
8347 Thu Apr 24 20:42:12 CEST 2003 Jan Hubicka <jh@suse.cz>
8348
8349 * i386.md (cvtsi2sdq): Fix typo in previous patch.
8350
8351 2003-04-24 Krister Walfridsson <cato@df.lth.se>
8352
8353 * configure.in: Check whether mbstowcs works.
8354 * configure, config.in: Regenerate.
8355 * intl.c: Use HAVE_WORKING_MBSTOWCS.
8356
8357 2003-04-24 H.J. Lu <hjl@gnu.org>
8358
8359 * config/ia64/ia64.c (ia64_init_builtins): Add si_ftype_pdi_di_di
8360 for __sync_bool_compare_and_swap_di for int return type.
8361
8362 * config/ia64/ia64intrin.h (__sync_bool_compare_and_swap_di):
8363 Change return type to int.
8364 (__sync_bool_compare_and_swap): Likewise.
8365
8366 Thu Apr 24 16:55:26 CEST 2003 Jan Hubicka <jh@suse.cz>
8367
8368 * cfgbuild.c (make_edges): Do not use next_nonnote_insn when
8369 looking for fallthru edge.
8370
8371 * athlon.md (athlon-agu, athlon-store, athlon-fany, athlon-faddmul):
8372 Fix.
8373 (athlon-load2, athlon-store2, athlon-fpsched, athlon-fpload,
8374 athlon-fvector): New.
8375 (athlon_*): Revisit to match new optimization guide.
8376 * i386.c (ix86_adjust_cost): Fix memory operand costs on Athlon/k8
8377 * i386.md (cvt??2?? patterns): Fix modes.
8378 (fistp patterns): Set modes.
8379
8380 Accidentaly commited with my earlier reload patch:
8381 PR c/10308
8382 * reload.c (find_reloads_address_1): Reload plus at the place of
8383 index register.
8384
8385 2003-04-24 Nathan Sidwell <nathan@codesourcery.com>
8386
8387 New GCOV_TAG_FUNCTION layout
8388 * coverage.c (struct function_list): Replace name with ident.
8389 (struct counts_entry): Likewise.
8390 (fn_ident): New.
8391 (htab_counts_entry_hash, htab_counts_entry_eq,
8392 htab_counts_entry_del): Adjust.
8393 (reads_count_file, get_coverage_counts,
8394 coverage_begin_output, coverage_end_function): Adjust.
8395 (build_fn_info_type, build_fn_info_value): Likewise.
8396 * gcov-dump.c (tag_function): Adjust.
8397 * gcov-io.c (gcov_write_string, gcov_read_string): Not in LIBGCOV.
8398 * gcov-io.h (gcov_write_string, gcov_read_string): Not in LIBGCOV.
8399 * gcov.c (struct function_info): Add ident.
8400 (read_graph_file, read_count_file): Adjust.
8401 * libgcov.c (gcov_exit): Adjust.
8402
8403 2003-04-23 Richard Henderson <rth@redhat.com>
8404
8405 PR opt/8300
8406 * toplev.c (rest_of_compilation): Delay no_new_pseudos until
8407 after initialize_uninitialized_subregs; update reg info assuming
8408 new pseudos were created.
8409
8410 2003-04-23 Neil Booth <neil@daikokuya.co.uk>
8411
8412 * Makefile.in (c-lex.o, LIBCPP_OBJS, cpplex.o): Update.
8413 * c-lex.c (MULTIBYTE_CHARS): Remove conditionals.
8414 (lex_string): Take cpp_string with full spelling.
8415 (cb_ident): Update.
8416 (c_lex): Update diagnostics.
8417 * cpplex.c (SPELL_NUMBER, SPELL_STRING): Combine into SPELL_LITERAL.
8418 (create_literal): New.
8419 (lex_string): Unterminated literals have type CPP_OTHER.
8420 (_cpp_lex_direct): Update calls to lex_string. Use create_literal
8421 for CPP_OTHER.
8422 (cpp_token_len, cpp_spell_token, cpp_output_token): Simplify.
8423 (_cpp_equiv_tokens, cpp_interpret_charconst): Update.
8424 * cpplib.c (parse_include, do_line, do_linemarker,
8425 destringize_and_run): Update for token storing full spelling.
8426 * cpplib.h: Update token spelling types.
8427 * cppmacro.c (stringify_arg, check_trad_stringification):
8428 Update for token storing full spelling.
8429
8430 2003-04-23 Ulrich Weigand <uweigand@de.ibm.com>
8431
8432 * config/s390/s390.c (s390_expand_cmpstr): Disable CLC loop.
8433
8434 2003-04-23 Richard Earnshaw <rearnsha@arm.com>
8435
8436 * arm.h (TARGET_OPTIONS): Add value field.
8437
8438 2003-04-23 Mark Mitchell <mark@codesourcery.com>
8439
8440 * doc/extend.texi: Remove duplicate 2003 copyright date.
8441
8442 2003-04-23 Nathan Sidwell <nathan@codesourcery.com>
8443
8444 * Makefile.in (LIBGCC_DEPS): Add gcov headers.
8445 (libgcov.a): Depends on LIBGCC_DEPS.
8446 * basic-block.h (profile_info): Moved here from coverage.h. Made
8447 a pointer.
8448 * coverage.c (struct function_list): Fixed array of counter types.
8449 (struct counts_entry): Keyed by counter type, contains summary.
8450 (profile_info): Moved to profile.c.
8451 (prg_ctr_mask, prg_n_ctrs, fn_ctr_mask, fn_n_ctrs): New global
8452 vars.
8453 (profiler_label): Remove.
8454 (ctr_labels): New.
8455 (set_purpose, label_for_tag, build_counter_section_fields,
8456 build_counter_section_value, build_counter_section_data_fields,
8457 build_counter_section_data_values, build_function_info_fields,
8458 build_function_info_value, gcov_info_fields, gcov_info_value): Remove.
8459 (build_fn_info_type, build_fn_info_value, build_ctr_info_type,
8460 build_ctr_info_value, build_gcov_info): New.
8461 (htab_counts_entry_hash, htab_counts_entry_eq): Adjust.
8462 (reads_counts_file): Adjust.
8463 (get_coverage_counts): Takes counter number. Add summary
8464 parameter. Adjust.
8465 (coverage_counter_ref): Tkaes counter number. Adjust. Lazily
8466 create counter array labels.
8467 (coverage_end_function): Adjust.
8468 (create_coverage): Adjust.
8469 (find_counters_section): Remove.
8470 * coverage.h (MAX_COUNTER_SECTIONS): Remove.
8471 (struct section_info, struct profile_info): Remove.
8472 (profile_info): Moved to basic-block.h.
8473 (coverage_counter_ref): Takes a counter number.
8474 (get_coverage_counts): Takes a counter number. Added summary
8475 parameter.
8476 (find_counters_section): Remove.
8477 * gcov-dump.c (tag_arc_counts): Rename to ...
8478 (tag_counters): ... here. Adjust.
8479 (tag_table): Move tag_counters to 3rd entry. Remove
8480 PROGRAM_PLACEHOLDER and PROGRAM_INCORRECT entries.
8481 (dump_file): Check for counter tag values here.
8482 (tag_summary): Adjust.
8483 * gcov-io.c (gcov_write_summary, gcov_read_summary): Adjust.
8484 * gcov-io.h (GCOV_LOCKED): New.
8485 (GCOV_TAG_ARC_COUNTS): Rename to ...
8486 (GCOV_TAG_COUNTS_BASE): ... here.
8487 (GCOV_TAG_PLACEHOLDER_SUMMARY, GCOV_TAG_INCORRECT_SUMMARY):
8488 Remove.
8489 (GCOV_COUNTER_ARCS, GCOV_COUNTERS, GCOV_NAMES): New.
8490 (GCOV_TAG_FOR_COUNTER, GCOV_COUNTER_FOR_TAG,
8491 GCOV_TAG_IS_COUNTER): New.
8492 (struct gcov_ctr_summary): New.
8493 (struct gcov_summary): Adjust.
8494 (struct gcov_counter_section): Remove.
8495 struct gcov_counter_section_data): Remove.
8496 (struct gcov_function_info): Rename to ...
8497 (struct gcov_fn_info): ... here. Adjust.
8498 (struct gcov_ctr_info): New.
8499 (struct gcov_info): Adjust.
8500 * gcov.c (read_count_file): Adjust.
8501 (output_lines): Adjust.
8502 * libgcov.c (gcov_exit): Adjust.
8503 (__gcov_flush): Adjust.
8504 * mklibgcc.in (libgcc2_c_dep): Add gcov headers.
8505 * predict.c (maybe_hot_bb_p, probably_cold_bb_p,
8506 probably_never_executed_bb_p, compute_frequency_function): Adjust
8507 profile_info use.
8508 * profile.c (struct counts_entry): Remove.
8509 (profile_info): Define here.
8510 (get_exec_counts): Adjust get_coverage_counts call.
8511 (compute_branch_probablilities): Remove find_counters_section
8512 call.
8513 (gen_edge_profiler): Adjust coverage_counter_ref call.
8514 * tracer.c (tail_duplicate): Adjust profile_info use.
8515
8516 2003-04-23 Roger Sayle <roger@eyesopen.com>
8517
8518 PR optimization/10339
8519 * builtins.c (expand_builtin_strcmp): Try to emit cmpstrsi insn
8520 directly instead of unsafely transforming call into a memcmp.
8521 (expand_builtin_strncmp): Likewise.
8522
8523 2003-04-22 Roger Sayle <roger@eyesopen.com>
8524
8525 * alias.c (mark_constant_function): Check for constancy and
8526 purity even of void functions. Update both the function decl
8527 and the cgraph RTL info with the results.
8528
8529 2003-04-22 Roger Sayle <roger@eyesopen.com>
8530
8531 * real.c (do_add): Change to return a bool indicating that the
8532 result of the operation may be inexact due to loss of precision.
8533 (do_multiply): Likewise.
8534 (do_divide): Likewise.
8535
8536 2003-04-22 Geoffrey Keating <geoffk@apple.com>
8537 Loren James Rittle <ljrittle@acm.org>
8538
8539 * dwarf2out.c (fde_table_allocated): Mark with GTY.
8540 (decl_die_table_allocated): Likewise.
8541 (abbrev_die_table_allocated): Likewise.
8542 (line_info_table_allocated): Likewise.
8543 (separate_line_info_table_allocated): Likewise.
8544 (pubname_table_allocated): Likewise.
8545 (arange_table_allocated): Likewise.
8546 (ranges_table_allocated): Likewise.
8547 (decl_die_table_in_use): Unconditionalize; mark with GTY.
8548 (abbrev_die_table_in_use): Likewise.
8549 (line_info_table_in_use): Likewise.
8550 (separate_line_info_table_in_use): Likewise.
8551 (pubname_table_in_use): Likewise.
8552 (arange_table_in_use): Likewise.
8553 (ranges_table_in_use): Likewise.
8554 (have_location_lists): Likewise.
8555 (emitcount): New GTY-marked static, moved...
8556 (maybe_emit_file): ...from here.
8557 (label_num): New GTY-marked static, moved...
8558 (gen_internal_sym): ...from here.
8559
8560 2003-04-22 Richard Henderson <rth@redhat.com>
8561
8562 PR 8866
8563 * rtl.h (MEM_NOTRAP_P): New.
8564 (MEM_COPY_ATTRIBUTES): Copy it.
8565 * rtlanal.c (may_trap_p): Check it.
8566 * expr.c (do_tablejump): Set it.
8567 * doc/rtl.texi (Flags): Document it.
8568
8569 * cfgrtl.c (try_redirect_by_replacing_jump): Revert last three changes.
8570
8571 2003-04-22 Olivier Hainque <hainque@act-europe.fr>
8572
8573 * config/alpha/alpha.c (alpha_expand_prologue [OPEN_VMS_ABI]): Don't
8574 set FRP on stack adjustment for outgoing args if frame_pointer_needed.
8575
8576 2003-04-22 Vincent Celier <celier@gnat.com>
8577
8578 * gthr-gnat.h, gthr-gnat.c: new sources for implementation of
8579 --enable-threads=gnat.
8580 * Makefile.in: Add gthr-gnat.c to LIB2ADDEH.
8581 * configure.in: Add gnat to the list of thread packages
8582 * configure: Rebuild.
8583 * config/t-linux: Add gthr-gnat.c to LIB2ADDEH and LIB2ADDEHDEP
8584
8585 2003-04-22 Neil Booth <neil@daikokuya.co.uk>
8586
8587 * cpplex.c (_cpp_get_fresh_line): Pop the buffer if return_at_eof.
8588
8589 2003-04-22 Devang Patel <dpatel@apple.com>
8590
8591 * cpptrad.c (_cpp_replacement_text_len): Add check for macro
8592 parameter count.
8593 (_cpp_copy_replacement_text): Same.
8594
8595 2003-04-22 Neil Booth <neil@daikokuya.co.uk>
8596
8597 * c-lex.c (c_lex): Handle CPP_OTHER differently.
8598 * cppexp.c (_cpp_parse_expr): Similarly.
8599 * cpplex.c (SPELL_CHAR): Remove.
8600 (_cpp_lex_direct): Stray chars are saved as byte strings.
8601 (cpp_spell_token, cpp_output_token, _cpp_equiv_token): Don't
8602 handle SPELL_CHAR.
8603 (cpp_avoid_paste): Update handling of CPP_OTHER.
8604 * cpplib.h: Spell CPP_OTHER like a number.
8605 (struct cpp_token): Remove member c.
8606 * cppmacro.c (stringify_arg): Update handling of CPP_OTHER.
8607
8608 2003-04-22 David Turner <novalis@gnu.org>
8609
8610 * gbl-ctors.h: Add special license exception.
8611 * libgcc2.h: Likewise.
8612 * tsystem.h: Likewise.
8613 * gcov-io.h: Likewise.
8614
8615 2003-04-22 David Edelsohn <edelsohn@gnu.org>
8616
8617 * fold-const.c (fold_range_test): Use RANGE_TEST_NON_SHORT_CIRCUIT
8618 macro defaulting to original BRANCH_COST heuristic.
8619 * doc/tm.texi (RANGE_TEST_NON_SHORT_CIRCUIT): Document.
8620
8621 * config/rs6000/rs6000.h (RANGE_TEST_NON_SHORT_CIRCUIT): Define.
8622
8623 2003-04-22 Aldy Hernandez <aldyh@redhat.com>
8624
8625 * config/rs6000/t-spe: Merge in t-fprules into file.
8626
8627 * config.gcc: Add t-spe to powerpc-eabispe.
8628
8629 2003-04-22 Kean Johnston <jkj@sco.com>
8630
8631 * tlink.c (recompile_files): Add missing '=' to putenv calls
8632
8633 2003-04-22 Nathan Sidwell <nathan@codesourcery.com>
8634
8635 * ginclude/stddef.h: Provide C++ safe offsetof.
8636
8637 2003-04-22 J"orn Rennecke <joern.rennecke@superh.com>
8638
8639 * function.c (purge_addressof_1): In (mem (addressof (reg))) case
8640 for reg notes, if there are no substitutions, just use a SUBREG.
8641
8642 2003-04-21 Mark Mitchell <mark@codesourcery.com>
8643
8644 * Makefile.in (calls.o): Depend on except.h.
8645 * calls.c: Include except.h.
8646 (emit_call_1): Call note_eh_region_may_contain_throw if
8647 appropriate.
8648 * except.c (eh_region): Add may_contain_throw.
8649 (expand_eh_region_end_cleanup): Do not include handler code when
8650 it cannot be reached.
8651 (note_eh_region_may_contain_throw): New function.
8652 * except.h (note_eh_region_may_contain_throw): New function.
8653
8654 2003-04-21 Mark Mitchell <mark@codesourcery.com>
8655
8656 * config/i386/winnt.c (i386_pe_mark_dllimport): Revert previous
8657 changes.
8658
8659 2003-04-21 Aldy Hernandez <aldyh@redhat.com>
8660
8661 * config/rs6000/rs6000.c (rs6000_override_options): No SPE means
8662 64-bit long doubles.
8663
8664 2003-04-21 Olivier Hainque <hainque@act-europe.fr>
8665
8666 * fold-const.c (fold, case PLUS_EXPR and case MULT_EXPR): Restore
8667 a number of conversions required for type consistency and previously
8668 stripped off by STRIP_NOPS.
8669
8670 * calls.c (expand_call): Prevent sibcall optimization for calls to
8671 nested subprograms.
8672
8673 * expmed.c (extract_bit_field): Reverse operands of && condition to
8674 prevent a potential division by zero in the previously first branch.
8675 * config/pa/pa.md (extv, extzv): FAIL if the bitfield length is zero.
8676
8677 2003-04-21 Joel Brobecker <brobecker@gnat.com>
8678
8679 * dwarf2out.c (is_ada, is_ada_subrange_type): New functions.
8680 (subrange_type_die): Likewise.
8681 (modified_type_die): Emit a subrange_type DIE for Ada subrange types.
8682 (is_c_family, is_cxx, is_java, is_fortran): Return bool and clean up.
8683
8684 2003-04-21 Nathan Sidwell <nathan@codesourcery.com>
8685
8686 Break out coverage routines to new file.
8687 * Makefile.in (COVERAGE_H): New variable
8688 (C_OBJS): Add coverage.o
8689 (coverage.o): New target.
8690 (profile.o, loop-init.o, sched-ebb.o, predict.o, tracer.o): Adjust
8691 dependencies.
8692 (GTFILES): Adjust.
8693 (gt-coverage.h): New target.
8694 (gt-profile.h): Remove.
8695 * profile.h: Remove. Move to ...
8696 * coverage.h: ... here. New. #include gcov-io.h.
8697 * gcov-io.h: Move function definitions to ...
8698 * gcov-io.c: ... here. New.
8699 * profile.c: Move coverage routines to coverage.c.
8700 (instrument_edges, get_exec_counts, branch_prob, init_branch_prob,
8701 end_branch_prob): Adjust.
8702 * coverage.c: New. Coverage routines from profile.c
8703 (coverage_counter_ref, coverage_init, coverage_finish,
8704 coverage_end_function, coverage_begin_output,
8705 coverage_counter_ref, get_coverage_counts): Define.
8706 * gcov-dump.c, gcov.c: #include gcov-io.c.
8707 * libgcov.c: Likewise. Adjust.
8708 * loop-init.c: Don't #include profile.h
8709 * tracer.c, predict.c, sched-ebb.c: Adjust #includes.
8710 * rtl.h: Add coverage prototypes.
8711 * toplev.c (compile_file): Init coverage, not branch_prob.
8712 Always call coverage_finish.
8713 (rest_of_compilation): Call coverage_end_function.
8714
8715 2003-04-21 Matt Kraai <kraai@alumni.cmu.edu>
8716
8717 * config/rs6000/rs6000.md (*movsf_softfloat): Add "h" <- "0" case.
8718
8719 2003-04-21 Neil Booth <neil@daikokuya.co.uk>
8720
8721 * c-ppoutput.c (cb_include): Don't take a cpp_token.
8722 * cppfiles.c: Don't undef strcmp.
8723 (find_include_file): Don't take a cpp_token. Check for empty
8724 file names.
8725 (_cpp_execute_include, _cpp_compare_file_date): Don't take a cpp_token.
8726 (cpp_push_include): Simplify.
8727 * cpphash.h (_cpp_execute_include, _cpp_compare_file_date): Update.
8728 * cpplib.c (glue_header_name): Return the file name, not a cpp_token.
8729 (parse_include): Similary. Don't check for zero-length filenames.
8730 (do_include_common, do_pragma_dependency): Update accordingly.
8731 * cpplib.h (struct cpp_callbacks): Change prototype of include.
8732
8733 2003-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8734
8735 * doc/rtl.texi (RTX_UNCHANGING_P): Point to true_dependence for
8736 details of conflict handling.
8737
8738 * fold-const.c (extract_muldiv, case CONVERT_EXPR): Detect case
8739 when conversion overflows.
8740
8741 * stor-layout.c (layout_decl): Don't set DECL_SIZE_UNIT if already set.
8742
8743 * expr.c (store_constructor): Set RTX_UNCHANGING_P if readonly_field_p
8744 before clearing.
8745
8746 2003-04-21 Mark Mitchell <mark@codesourcery.com>
8747
8748 * config/i386/winnt.c (i386_pe_mark_dllimport): Make the new RTL
8749 have the same form as the old RTL.
8750
8751 2003-04-21 Andreas Jaeger <aj@suse.de>
8752
8753 * cppcharset.c (_cpp_valid_ucn): Cast field precision to int.
8754
8755 2003-04-20 Chris Lattner <sabre@nondot.org>
8756 Zack Weinberg <zack@codesourcery.com>
8757
8758 * c-common.h, c-semantics.c: Rename genrtl_decl_cleanup to
8759 genrtl_cleanup_stmt. Correct comment at head of
8760 genrtl_cleanup_stmt (no such thing as a DECL_CLEANUP).
8761
8762 * stmt.c (struct nesting): Kill n_function_calls.
8763 (expand_start_bindings): Don't set
8764 thisblock->data.block.n_function_calls.
8765 (expand_end_bindings): Compare function_call_count against 0.
8766 (expand_cleanups): Kill DONT_DO argument; all callers passed
8767 NULL_TREE. All callers updated to match.
8768
8769 2003-04-20 Zack Weinberg <zack@codesourcery.com>
8770
8771 * varasm.c (struct deferred_constant, defer_addressed_constants_flag)
8772 (defer_addressed_constants, output_deferred_addressed_constants): Kill.
8773 (output_constant_def): Remove code predicated on
8774 defer_addressed_constants_flag.
8775
8776 * output.h: Remove prototypes of deleted functions.
8777 * c-typeck.c (constructor_subconstants_deferred): Kill.
8778 (struct initializer_stack): Remove 'deferred' field.
8779 (start_init): Remove all references to the above.
8780 (finish_init): Likewise. Also remove never-executed call to
8781 output_deferred_addressed_constants. Pull assignment to
8782 defstr out of if expression.
8783
8784 2003-04-20 Neil Booth <neil@daikokuya.co.uk>
8785
8786 * cpphash.h (NOTE_ESC_NL, NOTE_ESC_SPACE_NL, NOTE_TRIGRAPH,
8787 NOTE_NEWLINE): Remove.
8788 * cpplex.c (_cpp_clean_line, _cpp_process_line_notes): Update
8789 to handle new form of line note type.
8790
8791 2003-04-20 Zack Weinberg <zack@codesourcery.com>
8792
8793 * target.h (encode_section_info): Add new argument carrying
8794 the RTL to be modified by the hook.
8795
8796 * varasm.c (make_decl_rtl, output_constant_def): Update calls
8797 to encode_section_info.
8798 (default_encode_section_info): Take and use RTL argument,
8799 don't use TREE_CST_RTL or DECL_RTL.
8800 * output.h: Update prototype of default_encode_section_info.
8801 * config/darwin.h (ASM_DECLARE_OBJECT_NAME)
8802 (ASM_DECLARE_FUNCTION_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL):
8803 Update calls to encode_section_info.
8804
8805 * config/darwin.c, config/arm/arm.c, config/arm/pe.c
8806 * config/h8300/h8300.c, config/i386/winnt.c, config/m32r/m32r.c
8807 * config/m68hc11/m68hc11.c, config/m88k/m88k.c, config/mcore/mcore.c
8808 * config/mips/mips.c, config/mmix/mmix.c, config/pa/pa.c
8809 * config/romp/romp.c, config/rs6000/rs6000.c, config/s390/s390.c
8810 * config/v850/v850.c (TARGET_ENCODE_SECTION_INFO definitions):
8811 Take and use RTL argument, don't use TREE_CST_RTL or DECL_RTL,
8812 except for PE dllimport/dllexport. Update calls to
8813 default_encode_section_info.
8814
8815 * config/darwin-protos.h, config/arm/arm-protos.h, config/i386-protos.h:
8816 Update prototypes.
8817
8818 * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update.
8819
8820 2003-04-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8821
8822 PR/8705
8823 * pa.md (movccfp): New expander.
8824 (setccfp0, setccfp1): Rename to movccfp0 and movccfp1, respectively.
8825 Reverse fcmp conditions.
8826
8827 2003-04-20 Marek Michalkiewicz <marekm@amelek.gda.pl>
8828
8829 * config/avr/avr.md (*cmpqi_sign_extend): Handle negative values
8830 of operand 1 correctly.
8831
8832 2003-04-20 Nathan Sidwell <nathan@codesourcery.com>
8833
8834 * cpplex.c (_cpp_lex_direct): Set BOL for CPP_EOF tokens.
8835 * gcov.c (output_lines): Don't be so fussy about going past EOF.
8836
8837 2003-04-20 Neil Booth <neil@daikokuya.co.uk>
8838
8839 * Makefile.in (LIBCPP_OBJS): Add cppcharset.o.
8840 (cppcharset.o): New target.
8841 * c-lex.c (is_extended_char): Move to cppcharset.c.
8842 (utf8_extend_token): Delete.
8843 * cppcharset.c: New file.
8844 * cpphash.h (_cpp_valid_ucn): New.
8845 * cpplex.c (lex_identifier): Update prototype.
8846 (continues_identifier_p): Rename forms_identifier_p. Handle UCN
8847 escapes.
8848 (maybe_read_ucs): Rename maybe_read_ucn. Update to use code
8849 in cppcharset.c.
8850 (lex_number, lex_identifier, cpp_parse_escape): Update.
8851 (_cpp_lex_direct): Update to handle UCNs.
8852 (cpp_avoid_paste): Don't paste to form a UCN.
8853
8854 2003-04-19 Roger Sayle <roger@eyesopen.com>
8855
8856 * builtins.c (expand_builtin): Don't expand a pure or const
8857 built-in function if the result will be ignored and none of
8858 its arguments are volatile.
8859
8860 2003-04-19 Kean Johnston <jkj@sco.com>
8861
8862 * unwind-dw2.c (_Unwind_GetCFA): cast return to avoid warning
8863 * config.gcc: make SCO use dbxelf.h and elfos.h; only use one
8864 target fragment now: t-sco5; dont compile crti.o.
8865 * config/i386/sco5.h: major overhaul to remove all COFF remnants
8866 and to use elfos.h for most definitions.
8867 (BSS_SECTION_ASM_OP): set correct segment attributes.
8868 (PREFERED_DEBUGGING_TYPE): set to DWARF-2.
8869 (DWARF2_UNWIND_INFO): Always set to 1.
8870 (MD_STARTFILE_PREFIX): Make /usr/gnu/lib the default.
8871 (MD_STARTFILE_PREFIX_1): Define.
8872 (MD_EXEC_PREFIX): Adjust to /usr/gnu/bin if using GAS.
8873 (DEFAULT_LINKER): Define if not specified to configure.
8874 (CTORS_SECTION_ASM_OP): Remove COFF crud.
8875 (DTORS_SECTION_ASM_OP): Remove COFF crud.
8876 (WINT_TYPE): Define.
8877 (SDB_DEBUGGING_INFO): Remove.
8878 (EXTRA_SECTIONS): Likewise.
8879 (EXTRA_SECTION_FUNCTIONS): Likewise.
8880 (CTOR_LIST_BEGIN): Likewise.
8881 (CTOR_LIST_END): Likewise.
8882 (INIT_SECTION_FUNCTION): Likewise.
8883 (FINI_SECTION_FUNCTION): Likewise.
8884 (SUBTARGET_FRAME_POINTER_REQUIRED): Likewise.
8885 (LOCAL_LABEL_PREFIX): Likewise.
8886 (NON_SAVING_SETJMP): Likewise.
8887 (RETURN_POPS_ARGS): Likewise.
8888 (ASM_OUTPUT_SKIP): Likewise.
8889 (TARGET_ASM_NAMED_SECTION): Likewise.
8890 (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
8891 (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
8892 (ASM_OUTPUT_IDENT): Likewise.
8893 (ASM_OUTPUT_CASE_LABEL): Likewise.
8894 (ASM_OUTPUT_ASCII): Likewise.
8895 (ASM_OUTPUT_LIMITED_STRING): Likewise.
8896 (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
8897 (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
8898 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
8899 (ASM_FINISH_DECLARE_OBJECT): Likewise.
8900 (ASM_DECLARE_OBJECT_NAME): Likewise.
8901 (ASM_DECLARE_FUNCTION_SIZE): Likewise.
8902 (ASM_DECLARE_FUNCTION_NAME): Likewise.
8903 (ASM_DECLARE_RESULT): Likewise.
8904 (ASM_WEAKEN_LABEL): Likewise.
8905 (SUPPORTS_WEAK): Likewise.
8906 (APPLY_RESULT_SIZE): Likewise.
8907 (LPREFIX): Likewise.
8908 (ALIGN_ASM_OP): Likewise.
8909 (ASCII_DATA_ASM_OP): Likewise.
8910 (IDENT_ASM_OP): Likewise.
8911 (ASM_SHORT): Likewise.
8912 (ASM_LONG): Likewise.
8913 (TYPE_ASM_OP): Likewise.
8914 (SIZE_ASM_OP): Likewise.
8915 (STRING_ASM_OP): Likewise.
8916 (SKIP_ASM_OP): Likewise.
8917 (EH_FRAME_SECTION_ASM_OP): Likewise.
8918 (READONLY_DATA_SECTION_ASM_OP): Likewise.
8919 (INIT_SECTION_ASM_OP): Likewise.
8920 (FINI_SECTION_ASM_OP): Likewise.
8921 (TEXT_SECTION_ASM_OP): Likewise.
8922 (DATA_SECTION_ASM_OP): Likewise.
8923 (TYPE_OPERANT_FORMAT): Likewise.
8924 (ASM_SPEC): Remove COFF code.
8925 (STARTFILE_SPEC): Likewise. Always use crti.o; add -p and -pp support;
8926 cause -pg to emit an error; use pcrt1elf.o with -pp
8927 (ENDFILE_SPEC): Likewise.
8928 (TARGET_OS_CPP_BUILTINS): Add _SCO_DS_LL.
8929 (CPP_SPEC): Remove COFF crud; always look in /usr/gnu/include first.
8930 (LINK_SPEC): Remove COFF crud; use -E for environment switch not -R;
8931 add -z alt_resolve to support weak symbols the way GCC wants them.
8932 (LIB_SPEC): Use the profiler libraries in -p or -pp mode.
8933 (LIBGCC_SPEC): Dont use -lgcc in -G mode.
8934 (ASM_PREFERED_EH_DATA_FORMAT): Remove.
8935 * config/i386/t-sco5 (TARGET_LIBGCC2_CFLAGS): Remove.
8936 (CRTSTUFF_T_CFLAGS_S): Define.
8937 (MULTILIB_OPTIONS): Likewise.
8938 (MULTILIB_DIRNAMES): Likewise.
8939 (MULTILIB_MATCHES): Likewise.
8940 (MULTILIB_EXTRA_OPTS): Likewise.
8941 (LIBGCC): Likewise.
8942 (INSTALL_LIBGCC): Likewise.
8943 (crti.o): Remove.
8944 * config/i386/t-sco5gas: Remove.
8945 * doc/install.texi: Updated for new OpenServer instructions.
8946 * testsuite/gcc.dg/nest.c: Allow failure on SCO (-pg not supported)
8947
8948 2003-04-19 Kean Johnston <jkj@sco.com>
8949
8950 * fixinc/check.tpl: Allow user to over-ride diff program.
8951 * fixinc/inclhack.def: Removed extraneous #ifndef SVR5.
8952 (sco_math): Added test for SCO math header files.
8953 (sco_regset): Added check for conflicts with ieeefp.h.
8954 (svr4_disable_opt): Removed extraneous #ifdef SVR4.
8955 * fixinc/fixincl.x: Regenerated
8956 * fixinc/tests/base/math.h: Added sco_math tests.
8957 * fixinc/tests/base/string.h: New file.
8958 * fixinc/tests/base/sys/regset.h: New file.
8959
8960 2003-04-19 Neil Booth <neil@daikokuya.co.uk>
8961
8962 * cpphash.h (struct cpp_buffer): Remove backup_to.
8963 * cpplex.c (BACKUP, get_effective_char): Die.
8964 (_cpp_skip_block_comment): Assume '*' is location on entry.
8965 (continues_identifier_p): Respect -fno-dollars-in-identifiers.
8966 (IF_NEXT_IS): Update.
8967 (_cpp_lex_direct): Don't use backup_to; look ahead directly.
8968
8969 2003-04-19 Matt Kraai <kraai@alumni.cmu.edu>
8970
8971 * README.Portability: Move to a new section and obsolete K+R
8972 portability issues.
8973
8974 Sat Apr 19 14:56:17 CEST 2003 Jan Hubicka <jh@suse.cz>
8975
8976 * rtlanal.c (subreg_offset_representable_p): Fix call of
8977 subreg_lowpart.
8978
8979 2003-04-19 Neil Booth <neil@daikokuya.co.uk>
8980
8981 * cpphash.h (struct cpp_reader): New member warned_dollar.
8982 * cpplex.c (continues_identifier_p): New function.
8983 (parse_identifier, parse_number, parse_string): Rename lex_identifer,
8984 lex_number and lex_string, and simplify.
8985 (parse_slow, unescaped_terminator_p): Die.
8986 (_cpp_lex_direct): Update.
8987
8988 2003-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8989
8990 * calls.c (expand_call): Provide init for old_stack_pointer_delta.
8991
8992 2003-04-19 Nathan Sidwell <nathan@codesourcery.com>
8993
8994 * doc/invoke.texi (-fprofile-arcs): Mention -lgcov, locking and
8995 fork behavior.
8996
8997 2003-04-19 Neil Booth <neil@daikokuya.co.uk>
8998
8999 * cppexp.c (eval_token): Permit true and false even if pedantic.
9000
9001 2003-04-19 Neil Booth <neil@daikokuya.co.uk>
9002
9003 * cpplex.c (skip_whitespace): Rearrange to avoid stage1 ICE.
9004
9005 2003-04-19 Neil Booth <neil@daikokuya.co.uk>
9006
9007 * cppfiles.c (ENABLE_VALGRIND_CHECKING, VALGRIND_DISCARD,
9008 MMAP_THRESHOLD, TEST_THRESHOLD, SHOULD_MMAP): Remove.
9009 (struct include_file): Remove fefcnt, mapped members.
9010 (open_file, stack_include_file, _cpp_pop_file_buffer): Disable caching.
9011 (read_include_file): Don't use mmap, terminate buffers in '\r'.
9012 (purge_cache): Don't use munmap.
9013 * cpphash.h (CPP_BUF_COLUMN): Update.
9014 (lexer_state): Remove lexing_comment.
9015 (struct _cpp_line_note): New.
9016 (struct cpp_buffer): New members cur_note, notes_used, notes_cap,
9017 next_line and need_line. Remove col_adjust and saved_flags.
9018 (_cpp_process_line_notes, _cpp_clean_line, _cpp_get_fresh_line,
9019 _cpp_skip_block_comment, scan_out_logical_line): New.
9020 (_cpp_init_mbchar): Remove.
9021 * cppinit.c (init_library): Remove call to _cpp_init_mbchar.
9022 (cpp_read_main_file): Set line to 1 earlier.
9023 (post_options): -traditional-cpp doesn't want trigraphs.
9024 * cpplex.c (MULTIBYTE_CHARS): Remove code predicated on this.
9025 (add_line_note, _cpp_clean_line, _cpp_process_line_notes,
9026 _cpp_get_fresh_line): New.
9027 (handle_newline, skip_escaped_newlines, trigraph_p,
9028 continue_after_nul, _cpp_init_mbchar): Remove.
9029 (get_effective_char): Update.
9030 (_cpp_skip_block_comment): Rename from skip_block_comment, simplify.
9031 (skip_line_comment): Simplify.
9032 (skip_whitespace, parse_identifier, parse_slow, parse_number,
9033 parse_string): Update.
9034 (cpp_lex_direct): Use clean lines and process line notes. Update.
9035 (cpp_interpret_charconst): No MULTIBYTE_CHARS.
9036 * cpplib.c (prepare_directive_trad): Call scan_out_logical_line
9037 directly.
9038 (_cpp_handle_directive): Don't set saved_flags.
9039 (run_directive, destringize_and_run, cpp_define, cpp_define_builtin,
9040 cpp_undef, handle_assertion, cpp_push_buffer): Update.
9041 (_cpp_pop_buffer): Free notes.
9042 * cppmacro.c (builtin_macro, paste_tokens): \n terminate buffer.
9043 * cpppch.c (cpp_read_state): \n terminate buffer.
9044 * cpptrad.c (skip_escaped_newlines, handle_newline): Remove.
9045 (copy_comment): Use _cpp_skip_block_comment.
9046 (skip_whitespace, lex_identifier, _cpp_read_logical_line_trad):
9047 Simplify.
9048 (_cpp_overlay_buffer, _cpp_remove_overlay, push_replacement_text,
9049 save_replacement_text): Update.
9050 (scan_out_logical_line): Update to use clean lines and process
9051 line notes.
9052 * fix-header.c (read_scan_file): Update.
9053
9054 2003-04-18 Douglas B Rupp <rupp@gnat.com>
9055
9056 * unwind-dw2-fde.c (__register_frame_info_bases): Check for
9057 null begin parameter (as well as pointer to null).
9058 (__deregister_frame_info_bases): Likewise.
9059
9060 2003-04-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9061
9062 * function.c (purge_addressof_1): For ADDRESSOF, see if SUB is a
9063 hard or virtual register and copy into pseudo if replacement fails.
9064
9065 * cfgcleanup.c (flow_find_cross_jump): Use INSN_P, not active_insn_p.
9066
9067 * expmed.c (mask_rtx): Avoid undefined shifts for BITSIZE of 0.
9068
9069 2003-04-18 Olivier Hainque <hainque@act-europe.fr>
9070
9071 * calls.c (expand_call): Move special case for constructor calls
9072 to right place. Ensures constructor calls used to initialize
9073 arguments get a clean outgoing argument block for themselves.
9074 Move check for stack deallocation completeness until after last
9075 deallocation. Add stack_pointer_delta to set of state
9076 variables saved and restored along with current stack_level.
9077
9078 * integrate.c (expand_inline_function): Ensure non-const actuals
9079 don't end up const in the caller's flow after conversion to possibly
9080 const formal type.
9081
9082 2003-04-18 Vincent Celier <celier@gnat.com>
9083
9084 * dwarf2out.c (loc_descriptor_from_tree): Treat all *_MOD_EXPR
9085 and *_DIV_EXPR as TRUNC_*_EXPR.
9086
9087 2003-04-18 Mark Mitchell <mark@codesourcery.com>
9088
9089 * cfgrtl.c (try_redirect_by_replacing_jump): Create a basic block
9090 for orphaned jump tables.
9091
9092 2003-04-18 Kazu Hirata <kazu@cs.umass.edu>
9093
9094 * reload1.c: Revert my previous patch on 2002-04-17.
9095
9096 2003-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9097
9098 * doc/contrib.texi (Contributors): Prefer "bug fix" over "bugfix".
9099 Add Segher Boessenkool.
9100
9101 2003-04-18 Alexander Sotirov <sluncho@mirizma.org>
9102
9103 PR c/9177
9104 * c-decl.c (c_expand_body): Don't garbage collect the function
9105 body if we are going to dump it later.
9106
9107 2003-04-18 Richard Henderson <rth@redhat.com>
9108
9109 * config/alpha/alpha.c (SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP): Remove.
9110 (alpha_end_function): Don't set them.
9111 (decl_in_text_section): Remove.
9112 (alpha_encode_section_info): Remove.
9113 (samegp_function_operand): Use SYMBOL_REF LOCAL_P and EXTERNAL_P.
9114 (direct_call_operand): Use SYMBOL_REF_DECL and compare actual
9115 sections, rather than decl_in_text_section results.
9116
9117 2003-04-18 Roger Sayle <roger@eyesopen.com>
9118
9119 * rtlanal.c (reg_overlap_mentioned_p): Handle ZERO_EXTRACT
9120 and SIGN_EXTRACT.
9121
9122 2003-04-18 Eric Botcazou <ebotcazou@libertysurf.fr>
9123
9124 PR optimization/7675
9125 * c-typeck.c (build_external_ref): Set the DECL_NONLOCAL flag
9126 on VAR_DECL, PARM_DECL and FUNCTION_DECL from within
9127 nested functions if they refer to declarations from parent functions.
9128 * stmt.c (expand_decl): Don't put automatic variables in registers
9129 if the DECL_NONLOCAL flag is set.
9130
9131 2003-04-18 Hans-Peter Nilsson <hp@bitrange.com>
9132
9133 * gcse.c (compute_ld_motion_mems): For MEM destinations, only
9134 consider those to be movable where the source matches
9135 want_to_gcse_p.
9136 (update_ld_motion_stores): In comment, refer to
9137 compute_ld_motion_mems for validity of replacement.
9138
9139 Fri Apr 18 01:28:51 CEST 2003 Jan Hubicka <jh@suse.cz>
9140
9141 * gcov-dump.c (tag_summary): Remove max_sum
9142 * gcov-io.h (gcov_summary, gcov_write_summary,
9143 gcov_read_summary): Kill max_sum.
9144 * libgcov.c (gcov_exit): Do one pass over the data. Make error
9145 message more verbose.
9146
9147 * emit-rtl.c (subreg_hard_regno): Check that register is
9148 representable.
9149
9150 * reload.c (reload_inner_reg_of_subreg): When register is not
9151 representable, reload the whole thing.
9152 (find_reloads): Likewsie.
9153 * rtlanal.c (subreg_representable_p): New function.
9154
9155 * profile.c (compute_branch_probabilities): Cleanup sanity checking;
9156 allow negative probabilities for edges from the call to exit.
9157 (branch_prob): Do not add fake edges for functions that may return
9158 twice.
9159
9160 2003-04-17 DJ Delorie <dj@redhat.com>
9161
9162 * toplev.c (target_options): Add value field.
9163 (set_target_switch): Handle target options with values.
9164 * doc/tm.texi: Document how fixed vs variable target
9165 options work.
9166 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
9167 config/c4x/c4x.h, config/cris/aout.h, config/cris/cris.h,
9168 config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
9169 config/frv/frv.h, config/i386/i386.h, config/ia64/ia64.h,
9170 config/m32r/m32r.h, config/m68hc11/m68hc11.h,
9171 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
9172 config/mips/mips.h, config/mmix/mmix.h, config/pa/pa.h,
9173 config/rs6000/rs6000.h, config/rs6000/sysv4.h,
9174 config/s390/s390.h, config/sparc/sparc.h, config/v850/v850.h:
9175 Add value initializer to target options.
9176
9177 2003-04-07 Loren James Rittle <ljrittle@acm.org>
9178
9179 * cpppch.c (cpp_valid_state): Unconditionally initialize nl.
9180
9181 2003-04-17 Kazu Hirata <kazu@cs.umass.edu>
9182
9183 * reload1.c (move2add_last_cc0): New.
9184 (reload_cse_move2add): Detect implicit sets.
9185 (move2add_note_store): Notice a store into cc0.
9186
9187 2003-04-17 Roger Sayle <roger@eyesopen.com>
9188
9189 PR c/10375
9190 * c-decl.c (duplicate_decls): Preserve "const" and "noreturn"
9191 function attributes.
9192
9193 2003-04-17 Janis Johnson <janis187@us.ibm.com>
9194
9195 * doc/sourcebuild.texi (Test Suites): Document support for testing
9196 binary compatibility (moved from testsuite/README.compat).
9197
9198 2003-04-17 Richard Henderson <rth@redhat.com>
9199
9200 * config/ia64/ia64.c (ia64_in_small_data_p): Disallow strings.
9201
9202 2003-04-17 Simon Law <sfllaw@engmail.uwaterloo.ca>
9203
9204 * doc/include/gpl.texi: Fix double-spacing after "MA" to match
9205 the one provided by the FSF.
9206
9207 2003-04-17 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9208
9209 * doc/install.texi (Binaries): Update URL and list of platforms
9210 provided by ftp.thewrittenword.com.
9211
9212 2003-04-17 Richard Henderson <rth@redhat.com>
9213
9214 * config/xtensa/xtensa.c (xtensa_encode_section_info): Remove.
9215 (call_insn_operand): Use SYMBOL_REF_LOCAL_P.
9216 * config/xtensa/xtensa.md (call, call_value): Likewise.
9217
9218 2003-04-17 Richard Henderson <rth@redhat.com>
9219
9220 * config/v850/v850.c (print_operand): Use SYMBOL_REF_[ZST]DA.
9221 (print_operand_address): Likewise.
9222 (ep_memory_operand): Likewise.
9223 (special_symbolref_operand): Likewise.
9224 (v850_encode_data_area): Use SYMBOL_REF_FLAGS.
9225 (v850_encode_section_info): Call default_encode_section_info.
9226 (v850_strip_name_encoding): Remove.
9227 * config/v850/v850.h (EXTRA_CONSTRAINT): Use SYMBOL_REF_[ZST]DA.
9228 (ASM_OUTPUT_LABELREF): Remove.
9229 (ZDA_NAME_FLAG_CHAR, ZDA_NAME_P): Remove.
9230 (SDA_NAME_FLAG_CHAR, SDA_NAME_P): Remove.
9231 (TDA_NAME_FLAG_CHAR, TDA_NAME_P): Remove.
9232 (ENCODED_NAME_P): Remove.
9233 (SYMBOL_FLAG_ZDA, SYMBOL_REF_ZDA_P): New.
9234 (SYMBOL_FLAG_SDA, SYMBOL_REF_SDA_P): New.
9235 (SYMBOL_FLAG_TDA, SYMBOL_REF_TDA_P): New.
9236
9237 2003-04-17 Richard Henderson <rth@redhat.com>
9238
9239 * config/stormy16/stormy16.c (xstormy16_encode_section_info): Kill.
9240 * config/stormy16/stormy16.h (ASM_OUTPUT_SYMBOL_REF): Use
9241 SYMBOL_REF_FUNCTION_P.
9242
9243 2003-04-17 Richard Henderson <rth@redhat.com>
9244
9245 * config/sparc/sparc.c (sparc_encode_section_info): Remove.
9246 (data_segment_operand): Use SYMBOL_REF_FUNCTION_P.
9247 (text_segment_operand): Likewise.
9248
9249 2003-04-17 Richard Henderson <rth@redhat.com>
9250
9251 * config/sh/sh.c (gen_datalabel_ref): Don't add SH_DATALABEL_ENCODING.
9252 (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
9253 (legitimize_pic_address): Use SYMBOL_REF_LOCAL_P.
9254 (sh_encode_section_info): Remove.
9255 (sh_strip_name_encoding): Remove.
9256 * config/sh/sh.h (SH_DATALABEL_ENCODING): Remove.
9257 (DATALABEL_SYMNAME_P, STRIP_DATALABEL_ENCODING): Remove.
9258 (SH_TLS_ENCODING, TLS_SYMNAME_P, STRIP_TLS_ENCODING): Remove.
9259 (ASM_OUTPUT_LABELREF): Remove.
9260 (ASM_OUTPUT_SYMBOL_REF): Use SYMBOL_REF_FUNCTION_P.
9261 * config/sh/sh.md (*): Use SYMBOL_REF_LOCAL_P.
9262
9263 2003-04-17 Richard Henderson <rth@redhat.com>
9264
9265 * config/s390/s390.c (SYMBOL_FLAG_ALIGN1): New.
9266 (tls_model_chars): Remove.
9267 (larl_operand): Use SYMBOL_REF_FLAGS.
9268 (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
9269 (legitimize_pic_address): Use SYMBOL_REF_LOCAL_P.
9270 (s390_output_mi_thunk): Likewise.
9271 (s390_emit_prologue): Set SYMBOL_FLAG_LOCAL as needed.
9272 (s390_function_profiler): Likewise.
9273 (s390_encode_section_info): Use default_encode_section_info
9274 and SYMBOL_FLAG_ALIGN1.
9275 (s390_strip_name_encoding): Remove.
9276 * config/s390/s390.h (ASM_OUTPUT_LABELREF): Remove.
9277 * config/s390/s390.md (call, call_value): Use SYMBOL_REF_LOCAL_P.
9278 (builtin_setjmp_receiver): Set SYMBOL_FLAG_LOCAL as needed.
9279
9280 2003-04-17 Richard Henderson <rth@redhat.com>
9281
9282 * config/ns32k/ns32k.c (ns32k_encode_section_info): Remove.
9283 (global_symbolic_reference_mentioned_p): Use SYMBOL_REF_LOCAL_P.
9284 (print_operand_address): Likewise.
9285
9286 * config/ns32k/ns32k.h (CANNOT_CHANGE_MODE_CLASS): Add CLASS argument.
9287 * config/ns32k/ns32k.c (expand_block_move): Don't check
9288 flag_unroll_loops.
9289
9290 2003-04-17 Richard Henderson <rth@redhat.com>
9291
9292 * config/mcore/mcore.c (mcore_encode_section_info): Don't set
9293 SYMBOL_REF_FLAG.
9294
9295 2003-04-17 Richard Henderson <rth@redhat.com>
9296
9297 * rtl.h (SYMBOL_FLAG_MACH_DEP_SHIFT): New.
9298
9299 * config/m32r/m32r.c (SYMBOL_FLAG_MODEL_SHIFT): New.
9300 (SYMBOL_REF_MODEL): New.
9301 (LIT_NAME_P): Move from m32r.h.
9302 (m32r_select_section): Remove.
9303 (m32r_encode_section_info): Use SYMBOL_REF_FLAGS.
9304 (m32r_strip_name_encoding): Remove.
9305 (m32r_in_small_data_p): New.
9306 (small_data_operand): Use SYMBOL_REF_SMALL_P.
9307 (addr24_operand): Use SYMBOL_REF_MODEL.
9308 (call26_operand): Likewise.
9309 (addr32_operand): Tidy.
9310 (m32r_print_operand): Use HOST_WIDE_INT_PRINT_HEX.
9311 * config/m32r/m32r.h (RODATA_SECTION_ASM_OP): Remove.
9312 (SDATA_SECTION_ASM_OP, SBSS_SECTION_ASM_OP): Remove.
9313 (READONLY_DATA_SECTION_ASM_OP): Remove.
9314 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
9315 (SDATA_SECTION_FUNCTION, SBSS_SECTION_FUNCTION): Remove.
9316 (TARGET_ASM_SELECT_SECTION): Remove.
9317 (SDATA_FLAG_CHAR, MEDIUM_FLAG_CHAR, LARGE_FLAG_CHAR): Remove.
9318 (SDATA_NAME_P, SMALL_NAME_P, MEDIUM_NAME_P): Remove.
9319 (LARGE_NAME_P, ENCODED_NAME_P): Remove.
9320 (ASM_OUTPUT_LABELREF): Remove.
9321
9322 2003-04-17 Richard Henderson <rth@redhat.com>
9323
9324 * config/ip2k/ip2k.c (is_regfile_address): Use SYMBOL_REF_FUNCTION_P.
9325 (encode_section_info): Remove.
9326 * config/ip2k/ip2k-protos.h: Update.
9327
9328 2003-04-17 Richard Henderson <rth@redhat.com>
9329
9330 * varasm.c (default_encode_section_info): Don't set
9331 SYMBOL_FLAG_EXTERNAL if not TREE_PUBLIC.
9332 * config/i370/i370.c (i370_encode_section_info): Remove.
9333 * config/i370/i370.h (CONSTANT_ADDRESS_P): Use SYMBOL_REF_EXTERNAL_P.
9334 (PRINT_OPERAND, PRINT_OPERAND_ADDRESS): Likewise.
9335 * config/i370/i370.md (movsi): Likewise.
9336
9337 * config/i370/t-i370: Add missing backslash.
9338
9339 2003-04-17 Eric Botcazou <ebotcazou@libertysurf.fr>
9340
9341 * doc/invoke.texi (inline-limit): Fix pasto.
9342
9343 2003-04-17 Richard Henderson <rth@redhat.com>
9344
9345 * config/h8300/h8300.c (SYMBOL_FLAG_FUNCVEC_FUNCTION): New.
9346 (small_call_insn_operand): Use it.
9347 (SYMBOL_FLAG_EIGHTBIT_DATA): New.
9348 (h8300_eightbit_constant_address_p): Use it.
9349 (SYMBOL_FLAG_TINY_DATA): New.
9350 (h8300_tiny_constant_address_p): Use it.
9351 (h8300_encode_label, h8300_strip_name_encoding): Remove.
9352 (h8300_encode_section_info): Set SYMBOL_REF_FLAGS.
9353 * config/h8300/h8300.h (TINY_DATA_NAME_P): Remove.
9354 (ASM_OUTPUT_LABELREF): Remove.
9355
9356 2003-04-16 Richard Henderson <rth@redhat.com>
9357
9358 * config/frv/frv.c (symbol_ref_small_data_p): Remove. Replace
9359 all users with SYMBOL_REF_SMALL_P.
9360 (const_small_data_p): Use SYMBOL_REF_SMALL_P.
9361 (frv_encode_section_info): Remove.
9362 (frv_strip_name_encoding): Remove.
9363 (frv_in_small_data_p): Merge tests from encode_section_info.
9364 (frv_print_operand): Use '@' not SDATA_FLAG_CHAR.
9365 * config/frv/frv.h (SDATA_FLAG_CHAR): Remove.
9366 (SDATA_NAME_P): Remove.
9367 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use SIZE not SDATA_NAME_P.
9368 (ASM_OUTPUT_LABELREF): Remove.
9369 (PRINT_OPERAND_PUNCT_VALID_P): Use '@' not SDATA_FLAG_CHAR.
9370
9371 * config/frv/frv.c (frv_asm_out_constructor): New.
9372 (frv_asm_out_destructor): New.
9373 * config/frv/frv.h (CTORS_SECTION_ASM_OP): New.
9374 (DTORS_SECTION_ASM_OP): New.
9375 (ASM_OUTPUT_CONSTRUCTOR): Remove.
9376 (ASM_OUTPUT_DESTRUCTOR): Remove.
9377
9378 2003-04-16 Richard Henderson <rth@redhat.com>
9379
9380 * config/cris/cris.c (cris_gotless_symbol, cris_got_symbol): Use
9381 SYMBOL_REF_LOCAL_P; abort if not pic.
9382 (cris_encode_section_info): Remove.
9383
9384 2003-04-16 Richard Henderson <rth@redhat.com>
9385
9386 * config/c4x/c4x.c (c4x_encode_section_info): Remove.
9387 (c4x_T_constraint): Use SYMBOL_REF_FUNCTION_P.
9388
9389 * config/c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): Declare
9390 flag_inline_trees.
9391
9392 2003-04-16 Richard Henderson <rth@redhat.com>
9393
9394 * config/avr/avr.c (avr_encode_section_info): Remove.
9395 (avr_insert_attributes): New.
9396 (print_operand_address): Use SYMBOL_REF_FUNCTION_P.
9397 (avr_assemble_integer): Likewise.
9398
9399 2003-04-16 Richard Henderson <rth@redhat.com>
9400
9401 * arc.c (arc_encode_section_info): Remove.
9402 (arc_assemble_integer): Use SYMBOL_REF_FUNCTION_P.
9403 (arc_print_operand, arc_print_operand_address): Likewise.
9404 * arc.h (EXTRA_CONSTRAINT): Likewise.
9405
9406 2003-04-16 Roger Sayle <roger@eyesopen.com>
9407
9408 * c-semantics.c (find_reachable_label): New function to find a
9409 potentially reachable label in an expression.
9410 (expand_unreachable_if_stmt): Similar to expand_if_stmt but
9411 assumes the start of the IF_STMT is unreachable (dead) code.
9412 (expand_unreachable_stmt): Similar to expand_stmt but assumes
9413 the start of the statement list is unreachable (dead) code.
9414 (genrtl_if_stmt): If the controlling expression of the IF
9415 is constant, use expand_unreachable_stmt for the THEN or ELSE
9416 clause as appropriate.
9417 (genrtl_switch_stmt): Use expand_unreachable_stmt to expand
9418 the body of a SWITCH statement.
9419 (expand_stmt): The code immediately following a "return",
9420 "break", "continue" or "goto" is unreachable.
9421 * Makefile.in (c-semantics.o): Depend upon tree-inline.h.
9422
9423 2003-04-16 Richard Henderson <rth@redhat.com>
9424
9425 * rtl.h (MEM_ALIAS_SET): Update documentation.
9426 * doc/rtl.texi (Special Accessors): New node.
9427 (SYMBOL_REF_FLAG): Note relationship with SYMBOL_REF_FLAGS.
9428
9429 2003-04-16 Alexandre Oliva <aoliva@redhat.com>
9430
9431 * reload1.c (reload_cse_noop_set_p): Return false if mode of
9432 SET_DEST is not the same as that returned by...
9433 * cselib.h (cselib_reg_set_mode): ... new function.
9434 * cselib.c (cselib_reg_set_mode): Define it.
9435 (REG_VALUES): Document semantics of first element as set mode.
9436 (cselib_subst_to_values): Skip first element if ELT is NULL.
9437 (cselib_lookup): Likewise. Insert past the first element.
9438 (cselib_invalidate_regno): NULLify first element.
9439 (cselib_record_set): Set first element.
9440
9441 2003-04-16 Olivier Hainque <hainque@act-europe.fr>
9442
9443 * tree.c (skip_simple_arithmetics_at, saved_expr_p): New functions.
9444 (save_expr): Replace loop by call to skip_simple_arithmetics_at.
9445 * tree.h: Add prototypes for the two new functions.
9446 * fold-const.c (fold_binary_op_with_conditional_arg): Replace test
9447 updates introduced in the previous revision by call to saved_expr_p.
9448 * stor-layout.c (put_pending_size): Use skip_simple_arithmetics_at.
9449
9450 * expr.c (store_field): Force usage of bitfield instructions when
9451 the field position requires it, whatever SLOW_UNALIGNED_ACCESS.
9452 (expand_expr, case BIT_FIELD_REF): likewise.
9453
9454 2003-04-16 Mark Mitchell <mark@codesourcery.com>
9455
9456 PR middle-end/8866
9457 * cfgtrl.c (try_redirect_by_replacing_jump): Do not delete
9458 jumptables.
9459
9460 2003-04-16 Richard Henderson <rth@redhat.com>
9461
9462 * config/ia64/ia64.c (sdata_symbolic_operand): Use
9463 SYMBOL_REF_SMALL_P and SYMBOL_REF_LOCAL_P.
9464 (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
9465 (function_operand): Use SYMBOL_REF_FUNCTION_P.
9466 (ia64_expand_load_address): Likewise.
9467 (ia64_assemble_integer): Likewise.
9468 (ia64_encode_section_info): Remove.
9469 (ia64_strip_name_encoding): Remove.
9470 * config/ia64/ia64.h (ENCODE_SECTION_INFO_CHAR): Remove.
9471 * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't strip it.
9472
9473 2003-04-16 Richard Henderson <rth@redhat.com>
9474
9475 * config/alpha/alpha.c (SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP): New.
9476 (samegp_function_operand): Use SYMBOL_FLAG_SAMEGP.
9477 (direct_call_operand): Use SYMBOL_FLAG_NEAR.
9478 (local_symbolic_operand): Use SYMBOL_REF_LOCAL_P.
9479 (small_symbolic_operand): Use SYMBOL_REF_SMALL_P.
9480 (global_symbolic_operand): Similarly.
9481 (tls_symbolic_operand_1): Use SYMBOL_REF_TLS_MODEL.
9482 (tls_symbolic_operand_type): Likewise.
9483 (alpha_encode_section_info): Use default_encode_section_info.
9484 (alpha_strip_name_encoding): Remove.
9485 (get_tls_get_addr): Split out from ...
9486 (alpha_legitimize_address): ... here.
9487 (alpha_emit_xfloating_libcall): Use init_one_libfunc.
9488 (get_some_local_dynamic_name_1): Use SYMBOL_REF_TLS_MODEL.
9489 (alpha_initialize_trampoline): Use init_one_libfunc.
9490 (alpha_setup_incoming_varargs): Mark unused parameters.
9491 (alpha_initial_elimination_offset): Likewise.
9492 (alpha_end_function): Use SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP.
9493 (unicosmk_unique_section): Use default_strip_name_encoding.
9494 (unicosmk_ssib_name, unicosmk_output_externs): Likewise.
9495
9496 2003-04-16 Aldy Hernandez <aldyh@redhat.com>
9497
9498 * config.gcc: Add t-spe for eabispe.
9499
9500 * config/rs6000/t-spe: New.
9501
9502 2003-04-16 J"orn Rennecke <joern.rennecke@superh.com>
9503
9504 Re-apply this patch:
9505
9506 2002-05-16 Dale Johannesen <dalej@apple.com>
9507 * combine.c (cant_combine_insn_p): Reenable combinations
9508 involving hard regs unless CLASS_LIKELY_SPILLED_P.
9509
9510 2003-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9511
9512 PR/10271
9513 * pa-protos.h (function_arg): Remove last argument.
9514 * pa.c (function_arg): Likewise. Use CUMULATIVE_ARGS struct instead.
9515 * pa.h (struct hppa_args): Add member incoming.
9516 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Initialize
9517 member incoming.
9518 (FUNCTION_ARG): Revise call to function_arg.
9519 (FUNCTION_INCOMING_ARG): Delete.
9520
9521 2003-04-15 Zack Weinberg <zack@codesourcery.com>
9522
9523 * configure.in: Unify the code which creates symlinks to a
9524 just-built as, ld, objdump, and nm with the code that detects
9525 their presence for purposes of feature tests.
9526 * configure: Regenerate.
9527
9528 2003-04-15 Zack Weinberg <zack@codesourcery.com>
9529
9530 * varasm.c (output_constant_def): Do not consult
9531 CONSTANT_AFTER_FUNCTION_P. Remove all code predicated on it.
9532 (after_function_constants, output_after_function_constants): Delete.
9533 * doc/tm.texi: Delete documentation of CONSTANT_AFTER_FUNCTION_P.
9534 * config/mips/mips-protos.h, config/mips/mips.c
9535 (mips16_constant_after_function_p): Delete.
9536 * config/mips/mips.h: Delete #if-0-ed definition of
9537 CONSTANT_AFTER_FUNCTION_P.
9538 * config/d30v/d30v.h, config/stormy16/stormy16.h: Remove
9539 mention of CONSTANT_AFTER_FUNCTION_P in comment.
9540
9541 2003-04-15 Geoffrey Keating <geoffk@apple.com>
9542
9543 * tree.c (next_decl_uid): Mark with GTY.
9544 (next_type_uid): Likewise.
9545
9546 2003-04-15 J"orn Rennecke <joern.rennecke@superh.com>
9547
9548 PR target/9594:
9549 * sh.c (barrier_align): Also recognize stuff_delay_slot as
9550 an indicator that a barrier was created by branch splitting.
9551
9552 2003-04-15 Mark Mitchell <mark@codesourcery.com>
9553
9554 * c-decl.c (implicitly_declare): Copy declarations that are going
9555 to be placed in a local scope.
9556
9557 2003-04-15 James A. Morrison <ja2morri@uwaterloo.ca>
9558
9559 * invoke.texi (Spec Files): Wrap if-exists-else example.
9560 (MCore): Remove duplicate @itemx entries and @opindex entries.
9561
9562 2003-04-15 Ulrich Weigand <uweigand@de.ibm.com>
9563
9564 * unwind.inc (_Unwind_Backtrace): New function.
9565 * unwind.h (_Unwind_Backtrace): Declare it.
9566 * libgcc-std.ver (_Unwind_Backtrace): Export it.
9567
9568 2003-04-14 Jason Merrill <jason@redhat.com>
9569
9570 PR middle-end/10336, c++/10401
9571 * jump.c (never_reached_warning): Also stop looking if we reach the
9572 beginning of the function.
9573
9574 2003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9575
9576 PR target/10338
9577 PR bootstrap/10198
9578 PR bootstrap/10140
9579 * fixinc/gnu-regex.c (regerror): Use mempcpy not __mempcpy.
9580
9581 2003-04-15 J"orn Rennecke <joern.rennecke@superh.com>
9582
9583 * i386.md (abssf2_if+1): Make condition agree with abssf2_1 .
9584
9585 2003-04-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9586
9587 * optabs.c (expand_binop): In multi-word add cases, ensure
9588 XTARGET is copied to TARGET if they are different.
9589
9590 2003-04-15 Olivier Hainque <hainque@act-europe.fr>
9591
9592 * except.c (resolve_fixup_regions): Avoid dereferencing null pointer
9593 to region, possible after integration of function with unreachable
9594 regions that were optimized away.
9595
9596 2003-04-15 Jakub Jelinek <jakub@redhat.com>
9597
9598 * config/rs6000/rs6000.h (EPILOGUE_USES): Use register 2,
9599 instead of TOC_REGISTER in epilogue in
9600 current_function_calls_eh_return functions.
9601
9602 2003-04-14 Mark Mitchell <mark@codesourcery.com>
9603
9604 * doc/extend.texi (Empty Structures): Correct description of G++'s
9605 handling of these structures.
9606
9607 * c-decl.c (grokdeclarator): Reject extern redeclarations of
9608 static variables.
9609
9610 2003-04-14 Janis Johnson <janis287@us.ibm.com>
9611
9612 * config/rs6000/rs6000.md (define_constants): Define constants for
9613 all UNSPEC usage, including new values for TLS support.
9614 (aux_truncdfsf2, fctiwz, movsi_got, movsi_got_internal,
9615 load_toc_aix_si, load_toc_aix_di, load_toc_v4_pic_si,
9616 load_toc_v4_PIC_1, load_toc_v4_PIC_1b, load_macho_picbase,
9617 macho_correct_pic, blockage, move_from_CR_ov_bit, movesi_from_cr,
9618 stack_tie, movsi_to_cr_one, movsi_to_cr, mtcrfsi, eh_set_lr_si,
9619 eh_set_lr_di): Use them.
9620 * rs6000.c: (mtcrf_operation, uses_TOC, rs6000_emit_prologue,
9621 rs6000_emit_epilogue) Use them.
9622
9623 * rtl.h (SYMBOL_REF_TLS_MODEL): Fix mask value.
9624
9625 2003-04-14 Neil Booth <neil@daikokuya.co.uk>
9626
9627 * Makefile.in (c-opts.o): Use custom action.
9628
9629 2003-04-14 Douglas B Rupp <rupp@gnat.com>
9630
9631 * ifcvt.c (noce_process_if_block): Fail on BLKmode move.
9632
9633 2003-04-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9634
9635 * stor-layout.c (layout_type, case ARRAY_TYPE): Add missing code to
9636 handle "superflat arrays" in Ada.
9637
9638 * integrate.c (expand_inline_function): Don't inline if would
9639 lose /u on a BLKmode TARGET.
9640
9641 2003-04-14 Joel Brobecker <brobecker@gnat.com>
9642
9643 * dbxout.c (print_int_cst_bounds_in_octal_p): New function,
9644 extracted from dbxout_type.
9645 (dbxout_range_type): print large bounds in octal format.
9646 (dbxout_type): Replace extracted code by call to
9647 print_int_cst_bounds_in_octal_p.
9648
9649 * dwarf2out.c (gen_compile_unit_die): Emit DW_LANG_Ada95 instead
9650 of DW_LANG_Ada83 for Ada units.
9651
9652 2003-04-14 Olivier Hainque <hainque@act-europe.fr>
9653
9654 * explow.c (round_push): Use HOST_WIDE_INT instead of int for the
9655 temporary used to round CONST_INT sizes.
9656
9657 * tree.c (int_fits_type_p): Extract generic checks from the case
9658 of constant type bounds. Refine the checks against constant type
9659 bounds to allow for possible decisions against each of these bounds
9660 without requiring both bounds to be constant.
9661 (tree_int_cst_msb): Put back.
9662 * tree.h (tree_int_cst_msb): Likewise.
9663
9664 * global.c (global_conflicts): Prevent allocation of call clobbered
9665 hard regs to pseudos live across abnormal edges, as later passes are
9666 not ready to handle them.
9667
9668 * fold-const.c (fold): Reorder tests for conditional expressions.
9669
9670 * expr.c (highest_pow2_factor): Return unsigned.
9671 * expr.h (offset_address): Likewise.
9672 * emit-rtl.c (offset_address): POW2 argument now unsigned.
9673
9674 2003-04-14 Roger Sayle <roger@eyesopen.com>
9675
9676 * builtins.c (expand_builtin_strlen): Evaluate the lengths of
9677 string literals at compile-time.
9678
9679 2003-04-14 Roger Sayle <roger@eyesopen.com>
9680
9681 * fold-const.c (fold): Transform (c1 - x) cmp c2, where cmp is a
9682 comparison operation and c1/c2 are floating point constants into
9683 x swap(cmp) (c1 - c2).
9684
9685 2003-04-14 Vladimir Makarov <vmakarov@redhat.com>
9686
9687 * genautomata.c (output_translate_vect): Fix a typo in loop
9688 condition.
9689
9690 2003-04-14 Hans-Peter Nilsson <hp@axis.com>
9691
9692 PR target/10377
9693 * config/cris/cris.md ("*mov_sideqi", "*mov_sidehi")
9694 ("*mov_sidesi", "*mov_sideqi_mem", "*mov_sidehi_mem")
9695 ("*mov_sidesi_mem", "*clear_sidesi", "*clear_sidehi")
9696 ("*clear_sideqi", "*ext_sideqihi", "*ext_sideqisi")
9697 ("*ext_sidehisi", "*op_sideqi", "*op_sidehi", "*op_sidesi")
9698 ("*op_swap_sideqi", "*op_swap_sidehi", "*op_swap_sidesi")
9699 ("*extopqihi_side", "*extopqisi_side", "*extophisi_side")
9700 ("*extopqihi_swap_side", "*extopqisi_swap_side")
9701 ("*extophisi_swap_side", 8th, 9th, 10th, 11th, 14th peepholes):
9702 When next to constraint R, replace constraint i with n.
9703
9704 Mon Apr 14 16:18:37 CEST 2003 Jan Hubicka <jh@suse.cz>
9705
9706 PR opt/10024
9707 * cfgrtl.c (force_nonfallthru_and_redirect): Use unchecked_make_edge.
9708
9709 2003-04-14 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
9710
9711 * doc/contrib.texi (Contributors): Correct my entry.
9712
9713 2003-04-13 Roger Sayle <roger@eyesopen.com>
9714
9715 * tree.h (DECL_BUILT_IN_NONANSI): Remove.
9716 * c-common.c (builtin_function_2): Don't set DECL_BUILT_IN_NONANSI.
9717 * c-decl.c (duplicate_decls): Use invariant DECL_BUILT_IN_NONANSI
9718 implies DECL_BUILT_IN to simplify logic.
9719 * print-tree.c (print_node): Don't dump DECL_BUILT_IN_NONANSI.
9720
9721 2003-04-13 Roger Sayle <roger@eyesopen.com>
9722
9723 * builtin-types.def (BT_FN_STRING_CONST_STRING): New builtin type.
9724 (BT_FN_PTR_SIZE_SIZE): Likewise.
9725 * builtins.def (BUILT_IN_MALLOC, BUILT_IN_CALLOC, BUILT_IN_STRDUP):
9726 New built-in functions for malloc, calloc and strdup respectively.
9727 * calls.c (special_function_p): No need to handle malloc-like
9728 functions any longer. ECF_MALLOC is set via built-in attributes.
9729
9730 * c-decl.c (duplicate_decls): Preserve pure and malloc attributes.
9731
9732 * doc/extend.texi: Document these new built-in functions.
9733
9734 2003-04-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9735
9736 * builtins.c (expand_builtin_memcpy): Add `endp' argument, use it.
9737 (expand_builtin_stpcpy): New.
9738 (expand_builtin): Add BUILT_IN_MEMPCPY & BUILT_IN_STPCPY.
9739 * builtins.def: Add mempcpy & stpcpy support.
9740 * doc/extend.texi (mempcpy, stpcpy): Document new builtins.
9741
9742 2003-04-13 Nick Clifton <nickc@redhat.com>
9743
9744 * config/rs6000/rs6000.c: Replace occurrences of "GNU CC" with
9745 "GCC".
9746 * config/rs6000/40x.md, config/rs6000/603.md,
9747 config/rs6000/6xx.md, config/rs6000/7450.md, config/rs6000/7xx.md,
9748 config/rs6000/8540.md, config/rs6000/aix.h, config/rs6000/aix31.h,
9749 config/rs6000/aix3newas.h, config/rs6000/aix41.h,
9750 config/rs6000/aix43.h, config/rs6000/aix51.h,
9751 config/rs6000/aix52.h, config/rs6000/altivec-defs.h,
9752 config/rs6000/altivec.h, config/rs6000/altivec.md,
9753 config/rs6000/beos.h, config/rs6000/darwin.h,
9754 config/rs6000/eabi.h, config/rs6000/eabialtivec.h,
9755 config/rs6000/eabisim.h, config/rs6000/eabispe.h,
9756 config/rs6000/freebsd.h, config/rs6000/gnu.h,
9757 config/rs6000/host-darwin.c, config/rs6000/linux.h,
9758 config/rs6000/linux64.h, config/rs6000/linuxaltivec.h,
9759 config/rs6000/lynx.h, config/rs6000/mach.h, config/rs6000/mpc.md,
9760 config/rs6000/netbsd.h, config/rs6000/power4.md,
9761 config/rs6000/rios1.md, config/rs6000/rios2.md,
9762 config/rs6000/rs6000-c.c, config/rs6000/rs6000-modes.def,
9763 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
9764 config/rs6000/rs6000.h, config/rs6000/rs6000.md,
9765 config/rs6000/rs64.md, config/rs6000/rtems.h, config/rs6000/spe.h,
9766 config/rs6000/spe.md, config/rs6000/sysv4.h,
9767 config/rs6000/sysv4le.h, config/rs6000/vxworks.h,
9768 config/rs6000/windiss.h, config/rs6000/xcoff.h: Likewise.
9769
9770 2003-04-13 Nick Clifton <nickc@redhat.com>
9771
9772 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Delete
9773 support for -mcall-aix switch.
9774 * config/rs6000/eabiaix.h: Delete.
9775 * config/rs6000/rs6000.h (rs6000_abi): Remove ABI_AIX_NODESC.
9776 (RS6000_REG_SAVE, RS6000_SAVE_AREA, FP_ARGS_MAX_REG,
9777 RETURN_ADDRESS_OFFSET): Remove use of ABI_AIX_NODESC.
9778 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Likewise.
9779 * config/rs6000/rs6000.c (print_operand, rs6000_stack_info,
9780 debug_stack_info, output_function_profiler,
9781 rs6000_trampoline_size, rs6000_initialise_trampoline): Likewise.
9782 * config/rs6000/rs6000.md (call, call_value, call_nonlocal_sysv,
9783 call_indirect_nonlocal_sysv, call_value_indirect_nonlocal_sysv,
9784 call_value_nonlocal_sysv, sibcall_value_nonlocal_sysv,
9785 sibcall_nonlocal_sysv, sibcall_value_local64): Likewise.
9786 * config/rs6000/t-ppcgas (MULTILIB_OPTIONS): Remove mcall-aix
9787 multilibs.
9788 (MULTILIB_DIRNAMES): Remove mcall-aix directories.
9789 (MULTILIB_EXCEPTIONS): Delete.
9790 (MULTILIB_MATCHES): Remove mcall-aix matches.
9791
9792 * doc/fragments.texi: Replace -mcall-aix example with an ARM
9793 one.
9794 * doc/install.texi: Delete powerpc-*-eabiaix target.
9795 * doc/invoke.texi: Remove documentation of mcall-aix switch.
9796 * doc/tm.texi: Remove mcall-aix from example CPP_SPEC.
9797 * config.gcc: Delete powerpc-*-eabiaix target.
9798
9799 2003-04-13 Kazu Hirata <kazu@cs.umass.edu>
9800
9801 * doc/invoke.texi: Fix typos.
9802 * doc/tm.texi: Likewise.
9803
9804 2003-04-12 Zack Weinberg <zack@codesourcery.com>
9805
9806 * c-typeck.c (digest_init, push_init_level): Use CONSTRUCTOR_ELTS.
9807
9808 2003-04-12 Zack Weinberg <zack@codesourcery.com>
9809
9810 * tree.c (build_constructor): New function.
9811 * tree.h: Prototype it.
9812
9813 * c-typeck.c (build_c_cast, pop_init_level)
9814 * profile.c (build_function_info_value, build_gcov_info_value)
9815 (create_profiler):
9816 Use build_constructor.
9817
9818 * builtins.c (expand_builtin_args_info): Remove #if 0 blocks.
9819
9820 * objc/objc-act.c (build_constructor):
9821 Rename objc_build_constructor. Use build_constructor.
9822 (build_objc_string_object, objc_add_static_instance)
9823 (init_def_list, init_objc_symtab, init_module_descriptor)
9824 (generate_static_references, build_selector_translation_table)
9825 (build_descriptor_table_initializer, generate_descriptor_table)
9826 (build_protocol_initializer, build_ivar_list_initializer)
9827 (generate_ivars_list, build_dispatch_table_initializer)
9828 (generate_dispatch_table, generate_protocol_list)
9829 (build_category_initializer, build_shared_structure_initializer):
9830 Update to match.
9831
9832 2003-04-12 Zack Weinberg <zack@codesourcery.com>
9833
9834 * intl.h: #define gcc_gettext_width to strlen when !ENABLE_NLS.
9835
9836 2003-04-12 Stephane Carrez <stcarrez@nerim.fr>
9837
9838 * config/m68hc11/m68hc11-protos.h
9839 (m68hc11_eq_compare_operator): Declare
9840 * config/m68hc11/m68hc11.h (PREDICATE_CODES): Register new predicate.
9841 * config/m68hc11/m68hc11.c (m68hc11_eq_compare_operator): New predicate
9842 (d_register_operand): Check the operand mode.
9843 (hard_addr_reg_operand): Likewise.
9844
9845 2003-04-12 Stephane Carrez <stcarrez@nerim.fr>
9846
9847 * config/m68hc11/m68hc11.md ("decrement_and_branch_until_zero"): New
9848 pattern for dbcc/ibcc generation for 68HC12.
9849 ("doloop_end"): New pattern.
9850 ("m68hc12_dbcc_dec_hi"): New pattern for dbeq/dbne.
9851 ("m68hc12_dbcc_inc_hi"): New pattern for ibeq/ibne.
9852 ("m68hc12_dbcc_dec_qi"): New pattern.
9853 ("m68hc12_dbcc_inc_qi"): New pattern.
9854 (split): Add split for the above when we can't use dbcc/ibcc due to
9855 reloading.
9856 (peephole2): Add peephole2 to generate the above when possible.
9857
9858 2003-04-12 Stephane Carrez <stcarrez@nerim.fr>
9859
9860 * config/m68hc11/m68hc11.md ("bitcmpqi" split): No need to test the
9861 mode of operand 0.
9862 (peephole2 optimize const load): Likewise for operand 2.
9863 ("*rotlhi3_with_carry"): Change pattern to a const 1 rotate which
9864 clobbers CC_REGNUM.
9865 ("*rotrhi3_with_carry"): Likewise.
9866 (ashift:DI 1 split): Update pattern to create the above rotate.
9867 (lshiftrt:DI 1 split): Likewise.
9868
9869 2003-04-12 Stephane Carrez <stcarrez@nerim.fr>
9870
9871 * config/m68hc11/m68hc11.md (SOFT_Z_REGNUM): New constant.
9872 ("tstqi_z_used" split): Use it.
9873 ("cmphi_z_used"): Likewise.
9874 ("bitcmpqi_z_used"): Likewise; also use SP_REGNUM constant.
9875 ("cmpqi_z_used"): Likewise.
9876
9877 2003-04-12 Mark Mitchell <mark@codesourcery.com>
9878
9879 PR c++/7910
9880 * config/i386/winnt.c (i386_pe_mark_dllimport): Fix thinko.
9881
9882 2003-04-12 Zack Weinberg <zack@codesourcery.com>
9883
9884 * configure.in: Check for wchar.h, mbstowcs, and wcswidth.
9885 * configure, config.in: Regenerate.
9886 * intl.c (gcc_gettext_width): New function.
9887 * intl.h: Prototype it.
9888
9889 2003-04-12 Stephane Carrez <stcarrez@nerim.fr>
9890
9891 * config/m68hc11/m68hc11.h (TARGET_SWITCHES): Fix -mnominmax option;
9892 recognize -mnorelax.
9893 (reg_class): Add Z_OR_S_REGS to represent soft registers with Z
9894 (REG_CLASS_NAMES): Add its name.
9895 (REG_CLASS_CONTENTS): Define its content.
9896
9897 2003-04-12 Stephane Carrez <stcarrez@nerim.fr>
9898
9899 * config/m68hc11/larith.asm (memcpy): Use ARG macro to access stack
9900 parameters so that offsets are valid for far definition.
9901 (__mulsi3): Likewise and use ret to return.
9902 (___adddi3, ___subdi3, ___notdi2, ): Don't use it to save the result.
9903
9904 2003-04-12 David Edelsohn <edelsohn@gnu.org>
9905
9906 * config/rs6000/rs6000.c (rs6000_hash_constant): Skip '0' fields.
9907
9908 2003-04-12 Alexandre Oliva <aoliva@redhat.com>
9909
9910 * mklibgcc.in (libgcc-stage-start): For every multilib directory
9911 containing a libgcc.a, move lib* to the corresponding stage dir.
9912
9913 * Makefile.in (stage1-start, stage2-start, stage3-start,
9914 stage4-start): Move $(SPECS) to specs in stage dir.
9915 (unstage1 unstage2 unstage3 unstage4): Move specs in stage dir
9916 back as $(SPECS).
9917
9918 * mklibgcc.in (libgcc-stage-start): Move into the stage directory
9919 object files from the non-libgcc/ multilib directories as well.
9920
9921 2003-04-11 Geoffrey Keating <geoffk@apple.com>
9922
9923 * profile.c (read_counts_file): Initialise 'checksum'.
9924
9925 * emit-rtl.c (gen_rtx): Really correct typo.
9926
9927 PR c++/9393
9928 * doc/invoke.texi (Debugging Options): Document -frandom-seed.
9929 * configure.in: Check for gettimeofday.
9930 * tree.c (flag_random_seed): Define.
9931 (default_flag_random_seed): New.
9932 (append_random_chars): Use flag_random_seed rather than trying
9933 to acquire randomness here.
9934 * tree.h (default_flag_random_seed): Declare.
9935 * toplev.c (display_help): Add -frandom-seed and -fstack-limit-*
9936 descriptions.
9937 (decode_f_option): Handle -frandom-seed.
9938 (print_switch_values): Call default_flag_random_seed.
9939 * flags.h (flag_random_seed): Declare.
9940 * configure: Regenerate.
9941 * config.in: Regenerate.
9942 * config/alpha/t-crtfm: Use -frandom-seed.
9943
9944 * doc/extend.texi (Empty Structures): New.
9945
9946 * c-pch.c: Include flags.h. Add comments to routines.
9947 (struct c_pch_validity): New.
9948 (get_ident): Update PCH file version number.
9949 (pch_init): Output current debugging type.
9950 (c_common_valid_pch): Check debugging type.
9951 * Makefile.in (c-pch.o): Update dependencies.
9952 * flags.h (debug_type_names): Declare.
9953 * toplev.c (debug_type_names): Move out of decode_g_option.
9954
9955 2003-04-11 Eric Christopher <echristo@redhat.com>
9956
9957 * emit-rtl.c (gen_rtx): Fix typos.
9958
9959 2003-04-11 Richard Henderson <rth@redhat.com>
9960
9961 * emit-rtl.c (gen_rtx): Zero '0' fields.
9962
9963 2003-04-11 Richard Henderson <rth@redhat.com>
9964
9965 PR c++/10202
9966 * expr.c (expand_expr): Use COMPLETE_OR_UNBOUND_ARRAY_TYPE_P
9967 not COMPLETE_TYPE_P for re-invoking layout_decl.
9968
9969 2003-04-11 Simon Law <sfllaw@engmail.uwaterloo.ca>
9970
9971 * doc/bugreport.texi: Fix paragraph breaking between sections
9972 in preparation for TeXinfo's paragraph indentation fixes.
9973 * doc/extend.texi: Ditto.
9974 * doc/invoke.texi: Ditto.
9975 * doc/objc.texi: Ditto.
9976 * doc/gcov.texi: Wrap 'gcov' in @command{}.
9977 * doc/invoke.texi (Darwin Options): Add a preamble.
9978
9979 2003-04-11 Richard Henderson <rth@redhat.com>
9980
9981 * config/i386/i386.c (tls_model_chars): Remove.
9982 (ix86_encode_section_info, ix86_strip_name_encoding): Remove.
9983 (local_symbolic_operand): Use SYMBOL_REF_LOCAL_P.
9984 (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
9985 (tls_symbolic_operand_1): Likewise.
9986 (legitimate_pic_address_disp_p): Use SYMBOL_REF_LOCAL_P.
9987 * config/i386/i386.h (TARGET_ENCODE_SECTION_INFO): Remove.
9988 (TARGET_STRIP_NAME_ENCODING, ASM_OUTPUT_LABELREF): Remove.
9989 * config/i386/winnt.c (i386_pe_encode_section_info): Replace
9990 bits "copied from i386.h" with default_encode_section_info.
9991
9992 2003-04-11 Richard Henderson <rth@redhat.com>
9993
9994 * rtl.def (SYMBOL_REF): Add two 0 fields.
9995 * gengtype.c (adjust_field_rtx_def): Handle them.
9996 * print-rtl.c (print_rtx): Print them.
9997 * rtl.h (SYMBOL_REF_DECL, SYMBOL_REF_FLAGS): New.
9998 (SYMBOL_FLAG_FUNCTION, SYMBOL_REF_FUNCTION_P): New.
9999 (SYMBOL_FLAG_LOCAL, SYMBOL_REF_LOCAL_P): New.
10000 (SYMBOL_FLAG_SMALL, SYMBOL_REF_SMALL_P): New.
10001 (SYMBOL_FLAG_TLS_SHIFT, SYMBOL_REF_TLS_MODEL): New.
10002 (SYMBOL_FLAG_EXTERNAL, SYMBOL_REF_EXTERNAL_P): New.
10003 (SYMBOL_FLAG_MACH_DEP): New.
10004 * optabs.c (init_one_libfunc): Zap fake SYMBOL_REF_DECL.
10005 * varasm.c (make_decl_rtl): Set SYMBOL_REF_DECL.
10006 (assemble_static_space): Set SYMBOL_REF_FLAGS.
10007 (assemble_trampoline_template): Likewise.
10008 (output_constant_def, force_const_mem): Likewise.
10009 (default_encode_section_info): New.
10010 * output.h: Declare it.
10011 * target-def.h (TARGET_ENCODE_SECTION_INFO): Use it.
10012
10013 2003-04-11 Richard Henderson <rth@redhat.com>
10014
10015 * libfuncs.h (LTI_setbits, LTI_gcov_flush, LTI_gcov_init): New.
10016 (setbits_libfunc, gcov_flush_libfunc, gcov_init_libfunc): New.
10017 * optabs.c (init_optabs): Initialize them.
10018 (init_libfuncs): Use init_one_libfunc.
10019 * calls.c (expand_call): Use gcov_flush_libfunc.
10020 * expr.c (store_constructor): Use setbits_libfunc.
10021 * function.c (expand_main_function): Use init_one_libfunc.
10022 * profile.c (create_profiler): Use gcov_init_libfunc and DECL_RTL.
10023
10024 2003-04-11 Mark Mitchell <mark@codesourcery.com>
10025
10026 * doc/c-tree.texi (Functions): Remove DECL_REAL_CONTEXT
10027 documentation; add DECL_FRIEND_CONTEXT.
10028
10029 2003-04-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10030
10031 * doc/install.texi (hppa): Update links for HP-UX patches. Revise
10032 notes on linker selection and configuration for 64-bit HP-UX port.
10033 * doc/invoke.texi (hppa): Remove hppa text from description for
10034 -ffunction-sections and -fdata-sections. Document -static, -nolibdld
10035 and -threads options.
10036
10037 * pa-hpux10.h (LIB_SPEC): Add link options to resolve dependency of
10038 libc.a on libdld.sl when -static is specified and -nolibdld is not
10039 specified.
10040 * pa64-hpux.h (LIB_SPEC): Likewise.
10041 * pa-hpux11.h (LIB_SPEC): Likewise.
10042 (LINK_SPEC): Add __gcc_plt_call as an undefined symbol when -shared
10043 is not specified.
10044
10045 2003-04-11 Zack Weinberg <zack@codesourcery.com>
10046
10047 * config/darwin-c.c (darwin_pragma_unused): Use lookup_name,
10048 not IDENTIFIER_LOCAL_VALUE.
10049
10050 2003-04-11 Richard Henderson <rth@redhat.com>
10051
10052 PR c/10201
10053 * expr.c (expand_expr): Move DECL_RTL frobbing ...
10054 * stor-layout.c (layout_decl): ... here.
10055
10056 2003-04-11 James A. Morrison <ja2morri@uwaterloo.ca>
10057
10058 * doc/invoke.texi: Eliminate extra white-space caused by
10059 @gccoptlist{ on its own line.
10060 * doc/invoke.texi: Ensured there are two spaces between each option.
10061 * doc/invoke.texi: Re-wrapped option lines that were too wide.
10062 Added @gol to options that didn't have them.
10063
10064 2003-04-11 Nathan Sidwell <nathan@codesourcery.com>
10065
10066 * Makefile.in (loop-init.o): Do not depend on gcov-io.h,
10067 gcov-iov.h.
10068
10069 Simplify interface to gcov reading and writing.
10070 * gcov-io.h (gcov_file, gcov_position, gcov_length, gcov_buffer,
10071 gcov_alloc, gcov_modified, gcov_errored): Move into ...
10072 (struct gcov_var gcov_var): ... this static structure.
10073 (gcov_write_unsigned, gcov_write_counter, gcov_write_string):
10074 Return void.
10075 (gcov_read_unsigned, gcov_read_couter, gcov_read_string): Return
10076 read object.
10077 (gcov_read_bytes, gcov_write_bytes): Set error flag on error.
10078 (gcov_reserve_length): Remove.
10079 (gcov_write_tag): New.
10080 (gcov_write_length): Adjust.
10081 (gcov_read_summary, gcov_write_summary): Adjust.
10082 (gcov_eof, gcov_ok): Rename to ...
10083 (gcov_is_eof, gcov_is_error): ... here. Return error code.
10084 (gcov_save_position, gcov_resync): Rename to ...
10085 (gcov_position, gcov_seek): ... here.
10086 (gcov_skip, gcov_skip_string): Remove.
10087 (gcov_error): Remove.
10088 (gcov_open, gcov_close): Adjust.
10089 * gcov.c (find_source): Take const char *, copy it on allocation.
10090 (read_graph_file): Adjust.
10091 (read_count_file): Adjust.
10092 * libgcov.c (gcov_exit): Adjust.
10093 * gcov-dump.c (tag_function, tag_blocks, tag_arcs, tag_lines,
10094 tag_arc_counts, tag_summary): Return void. Adjust.
10095 (struct tag_format): Adjust proc member.
10096 (dump_file): Adjust gcov calls.
10097
10098 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
10099
10100 * Makefile.in (fixinc.sh): Pass BUILD_LIBERTY as LIBERTY to
10101 mkfixinc.sh.
10102 * fixinc/mkfixinc.sh (defs): Add LIBERTY.
10103 * configure.in (STMP_FIXINC, STMP_FIXPROTO): Don't disable on
10104 build != host sysrooted builds.
10105 * configure.in (SYSTEM_HEADER_DIR): Make sure it contains
10106 TARGET_SYSTEM_ROOT even on sysrooted natives.
10107 * configure: Rebuilt.
10108
10109 2003-04-10 Zack Weinberg <zack@codesourcery.com>
10110
10111 * c-decl.c (struct binding_level): Add shadowed_tags and
10112 function_body; remove this_block, tag_transparent, and
10113 subblocks_tag_transparent; update comments.
10114 (clear_binding_level, lookup_tag_reverse): Kill.
10115 (make_binding_level): Use ggc_alloc_cleared or memset.
10116 (lookup_tag): Remove struct binding_level* parameter. All
10117 callers changed. Just look at IDENTIFIER_TAG_VALUE, and
10118 current_binding_level->tags if asked for thislevel_only or if
10119 we might have to diagnose "struct foo; union foo;"
10120 (pushlevel): Ignore argument. Do not push another binding
10121 level on the transition from the parameters to the top level
10122 of the function body; just tweak the flags and proceed.
10123 (poplevel): Overhaul. Clear IDENTIFIER_TAG_VALUEs; on exiting
10124 a function body, separate the parameter list from the
10125 top-level local variables.
10126 (set_block): Do nothing.
10127 (pushtag): Set IDENTIFIER_TAG_VALUE and add an entry to
10128 shadowed_tags if necessary.
10129 (warn_if_shadowing): Nuke the special case for local shadowing
10130 parameter.
10131 (pushdecl): Do not create a shadow entry if we are replacing
10132 an older decl in the same binding level.
10133 (pushdecl_function_level): Tweak for new way of indicating
10134 function scope.
10135 (shadow_tag_warned): Use TYPE_NAME, not lookup_tag_reverse.
10136 (start_function): Don't set subblocks_tag_transparent.
10137 (finish_function): Fix up the binding_level stack for totally
10138 empty functions. Otherwise, don't call poplevel.
10139
10140 * c-common.c (shadow_warning): MANDATORY argument is no longer
10141 necessary. Always use plain warning.
10142 * c-common.h: Update to match.
10143
10144 * cfglayout.c (scope_to_insns_initialize): Clear block when we
10145 hit the FUNCTION_DECL.
10146 * function.c: Do not create cyclic tree structure.
10147
10148 2003-04-10 Zack Weinberg <zack@codesourcery.com>
10149
10150 * c-tree.h (struct lang_identifier): Replace global_value,
10151 local_value members with symbol_value, tag_value. Kill
10152 implicit_decl and limbo_value.
10153 (IDENTIFIER_GLOBAL_VALUE, IDENTIFIER_LOCAL_VALUE,
10154 IDENTIFIER_LIMBO_VALUE, IDENTIFIER_IMPLICIT_DECL,
10155 C_MISSING_PROTOTYPE_WARNED): Kill.
10156 (IDENTIFIER_SYMBOL_VALUE, IDENTIFIER_TAG_VALUE,
10157 C_DECL_IMPLICIT, C_DECL_ISNT_PROTOTYPE): New.
10158 (C_DECL_ANTICIPATED): Rename to C_DECL_INVISIBLE.
10159 (implicit_decl_warning, lookup_name_current_level,
10160 record_function_scope_shadow): Don't prototype.
10161 (pushdecl_function_level): Prototype.
10162
10163 * c-decl.c (truly_local_externals): New variable.
10164 (struct binding_level): Adjust commentary.
10165 (get_function_binding_level, clear_limbo_values,
10166 record_function_scope_shadow): Kill.
10167 (lookup_name_current_level, implicit_decl_warning): Are now static.
10168 (any_external_decl, record_external_decl): New static functions.
10169 (clone_underlying type): Split out of pushdecl.
10170 (c_print_identifier): Update to match changes to struct
10171 lang_identifier.
10172 (poplevel): Delete #if 0 block. Make externals invisible
10173 instead of clearing their IDENTIFIER_SYMBOL_VALUEs. Don't
10174 call clear_limbo_values. Refer to IDENTIFIER_SYMBOL_VALUE not
10175 IDENTIFIER_GLOBAL_VALUE or IDENTIFIER_LOCAL_VALUE.
10176 (duplicate-decls): For real parm decl after a forward decl,
10177 set TREE_ASM_WRITTEN here. Allow void foo(...) followed by
10178 foo(...) { } with only a warning. Say whether a previous
10179 declaration was implicit.
10180 (warn_if_shadowing): Now handles all shadowing, not just
10181 local-over-local. Clarify comments.
10182 (pushdecl): Rewritten. There is no longer a distinction
10183 between global and local symbol values; they're all
10184 IDENTIFIER_SYMBOL_VALUE. Call record_external_decl on all
10185 DECL_EXTERNAL decls, and use any_external_decl to check
10186 against previous externals. Kill #if 0 blocks. Don't
10187 tolerate error_mark_node being NULL.
10188 (pushdecl_top_level): Handle only those cases which
10189 Objective C (the only user) needs.
10190 (pushdecl_function_level): New function.
10191 (implicitly_declare): Create ordinary decls with
10192 C_DECL_IMPLICIT set. Recycle old decls, however they got
10193 created.
10194 (lookup_name): It's always IDENTIFIER_SYMBOL_VALUE. Return 0
10195 for C_DECL_INVISIBLE symbols.
10196 (lookup_name_current_level): Likewise. Use chain_member.
10197 (c_make_fname_decl): Don't muck with DECL_CONTEXT.
10198 Use pushdecl_function_level.
10199 (builtin_function): Use C_DECL_INVISIBLE.
10200 (start_function): Don't muck with IDENTIFIER_IMPLICIT_DECL.
10201 Use C_DECL_ISNT_PROTOTYPE and C_DECL_IMPLICIT.
10202 (store_parm_decls): It's IDENTIFIER_SYMBOL_VALUE now.
10203 (identifier_global_value): Same. Must scan
10204 global_binding_level in extremis.
10205
10206 * c-typeck.c (undeclared_variable): New static function, split
10207 from build_external_ref.
10208 (build_external_ref): Use DECL_CONTEXT, not
10209 IDENTIFIER_LOCAL_VALUE, to decide whether a local hides
10210 an instance variable. Restructure for clarity.
10211 * objc/objc-act.c: Use identifier_global_value, not
10212 IDENTIFIER_GLOBAL_VALUE.
10213
10214 2003-04-08 Jonathan Wakely <redi@gcc.gnu.org>
10215
10216 * doc/extend.texi (Template Instantiation): Refer to ISO standard,
10217 not Working Paper.
10218 * doc/invoke.texi (C++ Dialect Options): Same.
10219
10220 2003-04-10 Zack Weinberg <zack@codesourcery.com>
10221
10222 * tree.c (tree_operand_check_failed): New function.
10223 * tree.h (TREE_OPERAND_CHECK, TREE_OPERAND_CHECK_CODE,
10224 TREE_RTL_OPERAND_CHECK): New checking macros.
10225 (TREE_OPERAND, SAVE_EXPR_CONTEXT, SAVE_EXPR_RTL,
10226 RTL_EXPR_SEQUENCE, RTL_EXPR_RTL, WITH_CLEANUP_EXPR_RTL,
10227 CONSTRUCTOR_ELTS, LABELED_BLOCK_LABEL, LABELED_BLOCK_BODY,
10228 EXIT_BLOCK_RETURN, LOOP_EXPR_BODY, EXPR_WFL_NODE,
10229 EXPR_WFL_FILENAME_NODE, EXPR_WFL_FILENAME, TARGET_EXPR_SLOT,
10230 TARGET_EXPR_INITIAL, TARGET_EXPR_CLEANUP): Use the new
10231 checking macros.
10232
10233 Thu Apr 10 23:52:30 CEST 2003 Jan Hubicka <jh@suse.cz>
10234
10235 PR inline-asm/8803
10236 * function.c (instantate_virtual_regs): Verify that all ASM statements
10237 match after the virutal regs instantiation.
10238
10239 2003-04-10 Steve Ellcey <sje@cup.hp.com>
10240
10241 * ia64-protos.h (addp4_optimize_ok): New.
10242 * ia64.c (addp4_optimize_ok): New.
10243 * ia64.md (*ptr_extend_plus_1): Use addp4_optimize_ok.
10244 (*ptr_extend_plus_2): Ditto.
10245
10246 2003-04-10 Steve Ellcey <sje@cup.hp.com>
10247
10248 * expr.c (expand_assignment): Extend offset_rtx with convert_to_mode
10249 not with convert_memory_address.
10250 (store_constructor): Ditto, and same for copy_size_rtx.
10251 (expand_expr): Ditto.
10252
10253 2003-04-10 Douglas B Rupp <rupp@gnat.com>
10254
10255 * config/i386/i386.c (ix86_ms_bitfield_layout_p): Fix formatting.
10256
10257 2003-04-10 Bob Wilson <bob.wilson@acm.org>
10258
10259 * config/xtensa/lib2funcs.S (__xtensa_sync_caches): Flush data cache
10260 even if it is configured to be write-through.
10261
10262 2003-04-10 Ulrich Weigand <uweigand@de.ibm.com>
10263
10264 * config/s390/s390.c (larl_operand): Do not allow symbols
10265 marked with '@'.
10266 (s390_encode_section_info): Mark symbols with forced 1-byte
10267 alignment with '@'.
10268 (s390_strip_name_encoding): Strip '@'.
10269 (legitimize_pic_address): Handle symbols that are not valid
10270 LARL operands in 64-bit mode.
10271
10272 2003-04-10 Andrew Haley <aph@redhat.com>
10273
10274 * tree-inline.c (inlinable_function_p): Disable inlining for
10275 synchronized methods.
10276
10277 2003-04-09 Steven Bosscher <steven@gcc.gnu.org>
10278
10279 * c-common.h (lang_statement_code_p): Remove declaration.
10280 (statement_code_p): Ditto.
10281 (c_common_stmt_codes): Define; list of c-common statement codes.
10282 (statement_code_p): New extern declaration.
10283 (STATEMENT_CODE_P): Define.
10284 (INIT_STATEMENT_CODES): Define.
10285 * c-common.c (statement_code_p): Kill the function, declare
10286 as an array of bools instead.
10287 (lang_statement_code_p): Remove.
10288 (walk_stmt_tree): Use STATEMENT_CODE_P not statement_code_p.
10289 (c_safe_from_p): Ditto.
10290 * c-objc-common.c (c_objc_common_init): Use INIT_STATEMENT_CODES
10291 to initialize the statement_code_p array.
10292 * tree-inline.c (walk_tree): Use STATEMENT_CODE_P instead of
10293 statement_code_p.
10294 (copy_tree_r): Ditto.
10295 * cp/cp-tree.h (cp_stmt_codes): Define; list of C++ specific
10296 statement tree codes.
10297 * cp/lex.c (cxx_init): Add missing print line break. Use
10298 INIT_STATEMENT_CODES to initialize the statement_code_p array.
10299 * cp/parser.c (cp_parser_statement): Use STATEMENT_CODE_P
10300 instead of statement_code_p.
10301 * cp/pt.c (tsubst_expr): Ditto.
10302 * cp/tree.c (verify_stmt_tree_r): Ditto.
10303 (cp_statement_code_p): Remove.
10304 (init_tree): Don't set lang_statement_code_p, it's gone.
10305
10306 2003-04-09 Dan Nicolaescu <dann@ics.uci.edu>
10307 Zack Weinberg <zack@codesourcery.com>
10308
10309 * regrename.c (struct du_chain): Use a bitfield for reg_class.
10310 * cse.c (struct qty_table_elem, struct table_elt, struct set):
10311 Use bitfields for fields holding enum rtx_code or
10312 enum machine_mode values. Add comments explaining size choices.
10313
10314 2003-04-09 Alexandre Oliva <aoliva@redhat.com>
10315
10316 * config/fp-bit.c (unpack_d): Handle pair of doubles with
10317 different signs correctly.
10318
10319 2003-04-09 Vladimir Makarov <vmakarov@redhat.com>
10320
10321 * sched-deps.c (reg_pending_barrier_mode): New enumeration.
10322 (reg_pending_barrier): Make it of the enumeration type.
10323 (sched_analyze_2): Define the barrier as MOVE_BARRIER or
10324 TRUE_BARRIER.
10325 (sched_analyze): Ditto.
10326 (sched_analyze_insn): Ditto. Use anti-dependencies for
10327 MOVE_BARRIER and true-dependencies as TRUE_BARRIER.
10328 (init_deps_global): Initialize the barrier as NO_BARRIER.
10329
10330 2003-04-09 Vladimir Makarov <vmakarov@redhat.com>
10331
10332 * config/ia64/ia64.c (issue_nops_and_insn): Add new parameter.
10333 Check that asm insn starts on a new cycle. Add nops after asm
10334 insn to end bundle.
10335 (bundling): Move insn type evaluation from the loop. Call
10336 issue_nops_and_insn with the new parameter. Ignore changing
10337 position for nops after asm insn.
10338
10339 2003-04-09 Alexandre Oliva <aoliva@redhat.com>
10340
10341 * optabs.c: Comment that gen_add2_insn and others may actually
10342 return emitted insns, if the gen functions turn out to return
10343 emitted insns.
10344 * reload1.c (reload_cse_move2add): Cope with emitted insns from
10345 gen_add2_insn.
10346
10347 2003-04-09 Richard Henderson <rth@redhat.com>
10348
10349 * config/ia64/ia64.c (move_operand): Allow symbolic_operand,
10350 but not tls_symbolic_operand.
10351 (ia64_expand_load_address): Remove scratch operand.
10352 (ia64_expand_tls_address): Split out from ia64_expand_move.
10353 (ia64_expand_move): Split symbolics only after reload.
10354 (ia64_emit_cond_move): New.
10355 * config/ia64/ia64-protos.h: Update.
10356 * config/ia64/ia64.md (movsi_symbolic, movdi_symbolic): Remove.
10357 (symbolic splitter): Accept SImode operands too.
10358 (cmove splitter): Use ia64_emit_cond_move.
10359
10360 2003-04-09 Nick Clifton <nickc@redhat.com>
10361
10362 * doc/install.texi: Note that ARM toolchains need binutils 2.13 or
10363 newer.
10364 * config/arm/elf.h (SUBTARGET_ASM_FLOAT_SPEC): Pass -mfpu=softfpa
10365 instead of -mno-fpu.
10366 * config/arm/semi.h (ASM_SPEC): Likewise.
10367 * config/arm/xscale-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise,
10368 but only if -msoft-float is specified pass. Otherwise pass
10369 -mfpu=softvfp.
10370
10371 2003-04-09 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10372
10373 * function.c (purge_addressof): Use free_INSN_LIST_node instead of
10374 free_EXPR_LIST_node.
10375
10376 2003-04-08 Roger Sayle <roger@eyesopen.com>
10377
10378 * fold-const.c (fold): Use "fold" following build in more places.
10379 Optimize sqrt(x)*sqrt(x) as x, pow(x,y)*pow(z,y) as pow(x*z,y),
10380 pow(x,y)*pow(x,z) as pow(x,y+z) and x/pow(y,z) as x*pow(y,-z).
10381
10382 2003-04-08 Roger Sayle <roger@eyesopen.com>
10383
10384 * builtins.c (fold_builtin): Constant fold expressions as x*0.5
10385 instead of x/2.0. Optimize sqrt(pow(x,y)) as pow(x,y*0.5),
10386 log(pow(x,y)) as y*log(x), pow(exp(x),y) as exp(x*y),
10387 pow(sqrt(x),y) as pow(x,y*0.5) and pow(pow(x,y),z) as pow(x,y*z).
10388 Delete function scope "fcode" variable to avoid shadowing.
10389
10390 2003-04-08 Kevin Buettner <kevinb@redhat.com>
10391
10392 * dwarf2out.c (DWARF_ARANGES_HEADER_SIZE, DWARF_ARANGES_PAD_SIZE):
10393 Take into account DWARF_INITIAL_LENGTH_SIZE.
10394
10395 2003-04-08 Hans-Peter Nilsson <hp@axis.com>
10396
10397 * reorg.c (fill_slots_from_thread): When considering changing the
10398 insn following a reg-to-reg copy insn to use the source reg of the
10399 copy, bail out if there's overlap between the registers.
10400
10401 2003-04-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10402
10403 * function.c (postponed_insns): New.
10404 (purge_addressof_1): Postpone processing of insns if addressofs
10405 are not put into stack.
10406 (purge_addressof): Process postponed insns.
10407
10408 2003-04-08 J"orn Rennecke <joern.rennecke@superh.com>
10409
10410 * sh.h (NORMAL_MODE): If interrupt handler and TARGET_FMOVD,
10411 this is FP_MODE_DOUBLE .
10412 * sh.c (ra.h): #include.
10413 (push_regs): Add second parameter. Changed all callers.
10414 If necessary, set fpscr before saving floating point registers.
10415 (calc_live_regs): If interrupt handler and TARGET_FMOVD, always
10416 do saves / restores with SZ == 1.
10417 (sh_expand_prologue): If interrupt handler, don't use gen_toggle_sz.
10418 (sh_expand_epilogue): Likewise. For TARGET_FMOVD, if floating point
10419 registers are being restored, restore FPSCR only after restoring them.
10420
10421 2003-04-08 Aldy Hernandez <aldyh@redhat.com>
10422
10423 * config/rs6000/rs6000.c (rs6000_init_builtins): Set opaque types
10424 regardless of architecture.
10425 (spe_init_builtins): Change V2SI and V2SF types to opaque types.
10426
10427 2003-04-08 J"orn Rennecke <joern.rennecke@superh.com>
10428
10429 * sh.c (push_regs, calc_live_regs): Return int. Take single
10430 HARD_REG_SET * parameter. Changed all callers.
10431
10432 Tue Apr 8 11:12:07 CEST 2003 Jan Hubicka <jh@suse.cz>
10433
10434 * i386.c (legitimate_pic_address_disp_p): Do not accept PLUS in the
10435 GOTOFF operand.
10436 (legitimize_pic_address): Move plus outside the unspec.
10437 * i386.c (legitimate_constant_p): Check (CONST (PLUS (UNSPEC ...
10438 for validity.
10439
10440 2003-04-08 Nathan Sidwell <nathan@codesourcery.com>
10441
10442 * gcov-io.h (gcov_save_position): Remove __inline__ from
10443 declaration.
10444
10445 2003-04-07 Matt Kraai <kraai@alumni.cmu.edu>
10446
10447 * doc/install.texi: Use @command and @samp for single- and
10448 multi-word commands respectively.
10449 * doc/makefile.texi: Likewise.
10450 * doc/sourcebuild.texi: Likewise.
10451
10452 2003-04-07 Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
10453 Richard Henderson <rth@redhat.com>
10454
10455 PR c/9516
10456 * expr.c (safe_from_p): Rearrange to avoid deep recursion in
10457 favor of looping and tail recursion for TREE_LIST and binops.
10458
10459 2003-04-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10460
10461 * loop.h (REGNO_FIRST_LUID, REGNO_LAST_LUID): Provide defaults
10462 for insns without luid.
10463
10464 2003-04-07 Glen Nakamura <glen@imodulo.com>
10465
10466 PR opt/8634
10467 * explow.c (maybe_set_unchanging): Don't flag non-static const
10468 aggregate type initializers with RTX_UNCHANGING_P.
10469
10470 2003-04-07 Richard Henderson <rth@redhat.com>
10471
10472 PR opt/8634
10473 * function.c (purge_addressof_1): Don't try arithmetics for
10474 unchanging memories.
10475
10476 2003-04-07 Janis Johnson <janis187@us.ibm.com>
10477
10478 * doc/sourcebuild.texi (Test Suites): Document testing support for
10479 gcov and profile-directed optimizations; describe gcc.misc-tests.
10480
10481 Mon Apr 7 22:19:59 CEST 2003 Jan Hubicka <jh@suse.cz>
10482
10483 PR target/10077
10484 * i386.md (movsi_1, movsi_nointerunit_1): Fix SSEMOV alternative.
10485
10486 2003-04-07 Eric Botcazou <ebotcazou@libertysurf.fr>
10487
10488 * doc/rtl.texi (Comparison operations): Update to
10489 record the allowed comparison modes.
10490
10491 2003-04-07 Aldy Hernandez <aldyh@redhat.com>
10492
10493 * config/rs6000/rs6000.c (rs6000_common_init_builtins): Rename all
10494 V2SI_type_node to opaque_V2SI_type_node. Rename all
10495 V2SF_type_node to opaque_V2SF_type_node.
10496 (rs6000_init_builtins): Define opaque_V2SI_type_node and
10497 opaque_V2SF_type_node.
10498 (is_ev64_opaque_type): The types opaque_V2SI_type_node and
10499 opaque_V2SF_type_node are opaque types.
10500
10501 2003-04-07 J"orn Rennecke <joern.rennecke@superh.com>
10502
10503 * gcse.c (replace_store_insn): Use single_set.
10504
10505 2003-04-07 Nathan Sidwell <nathan@codesourcery.com>
10506
10507 Change gcov file interface to single file at a time.
10508 * gcov-io.h: Replace IN_LIBGCC1 with IN_LIBGCOV. Use IN_GCOV.
10509 Convert to C89 prototypes.
10510 (gcov_file, gcov_length, gcov_position, gcov_buffer, gcov_alloc,
10511 gcov_error, gcov_modified): New static variables.
10512 (gcov_open, gcov_close, gcov_read_bytes, gcov_write_bytes): New
10513 functions.
10514 (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
10515 gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
10516 (gcov_read_summary, gcov_write_summary): Adjust.
10517 (gcov_save_position, gcov_reserve_length, gcov_write_length):
10518 Adjust.
10519 (gcov_resync, gcov_skip, gcov_skip_string): Adjust.
10520 (da_file_open, da_file_close, da_file_eof, da_file_error): Remove.
10521 (da_file_position, da_file_seek, da_file_write, da_file_read):
10522 Remove.
10523 (gcov_error, gcov_eof, gcov_ok, gcov_time): New functions.
10524 * gcov.c (gcov_type): Don't typedef here.
10525 (IN_GCOV): #define
10526 (read_graph_file, read_count_file): Adjust.
10527 * gcov-dump.c (gcov_type): Don't typedef here.
10528 (IN_GCOV): #define.
10529 (tag_function, tag_blocks, tag_arcs, tag_lines, tag_arc_counts):
10530 Remove FILE parameter, adjust.
10531 (struct tag_format): Adjust proc member.
10532 (dump_file): Adjust.
10533 * libgcov.c (IN_LIBGCOV): #define.
10534 (gcov_exit): Adjust.
10535 * loop-init.c: Don't #include gcov-io.h
10536 * profile.c (struct counts_entry): New structure to hold counter
10537 values.
10538 (struct section_reference, struct da_index_entry): Remove.
10539 (bbg_file, da_file): Remove.
10540 (htab_counts_index_hash, htab_counts_index_eq,
10541 htab_counts_index_del): Replace with ...
10542 (htab_counts_entry_hash, htab_counts_entry_eq,
10543 htab_counts_entry_del): ... these.
10544 (cleanup_counts_index, index_counts_file): Remove.
10545 (read_counts_file): New function.
10546 (get_exec_counts): Adjust.
10547 (compute_branch_probabilities): Don't free the exec counts here.
10548 (branch_prob): Adjust.
10549 (init_branch_prob): Adjust.
10550 (end_branch_prob): Adjust.
10551
10552 2003-04-07 Aldy Hernandez <aldyh@redhat.com>
10553
10554 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
10555 -mfloat-gprs.
10556
10557 * config/rs6000/rs6000.c: Delete rs6000_fprs.
10558 Declare rs6000_float_gprs.
10559 Declare rs6000_float_gprs_string.
10560 (rs6000_parse_float_gprs_option): New.
10561 (rs6000_override_options): Genericize rs6000_parse_* calls to use
10562 rs6000_parse_yes_no_option.
10563 Change check for cpu=8540, to use TARGET_E500.
10564 (rs6000_parse_isel_option): Delete.
10565 (rs6000_parse_spe_option): Delete.
10566 (rs6000_parse_vrsave_option): Delete.
10567
10568 * config/rs6000/rs6000.h: Rename rs6000_fprs to rs6000_float_gprs.
10569 Define rs6000_float_gprs_string.
10570 (TARGET_OPTIONS): Add rs6000_float_gprs option.
10571
10572 * config/rs6000/eabi.h (TARGET_FPRS): Change to use rs6000_float_gprs.
10573
10574 * config/rs6000/eabispe.h: Set rs6000_float_gprs.
10575
10576 Mon Apr 7 14:36:24 CEST 2003 Jan Hubicka <jh@suse.cz>
10577
10578 PR opt/10024
10579 * cfglayout.c (cfg_layout_redirect_edge):
10580 Redirect any branch edges unified with the fallthru one.
10581 * cfgrtl.c (force_nonfallthru_and_redirect): Do not special
10582 case fallthru edges when called via cfglayout.c
10583
10584 2003-04-07 J"orn Rennecke <joern.rennecke@superh.com>
10585
10586 * c-typeck.c (output_init_element): Check for type == error_mark_node.
10587
10588 2003-04-07 Kazu Hirata <kazu@cs.umass.edu>
10589
10590 * config/h8300/h8300.md (*zero_extendqisi2_h8300hs): Always
10591 split.
10592 (a splitter): Do zero-extension via HImode.
10593
10594 2003-04-07 James A. Morrison <ja2morri@uwaterloo.ca>
10595
10596 * doc/invoke.texi: Eliminate extra white-space caused by
10597 @gccoptlist{ on its own line.
10598 * doc/invoke.texi: Ensured there are two spaces between each option.
10599 * doc/invoke.texi: Re-wrapped option lines that were too wide.
10600 Added @gol to options that didn't have them.
10601
10602 2003-04-07 James A Morrison <ja2morri@student.math.uwaterloo.ca>
10603
10604 * doc/extend.texi (Darwin Pragmas): Fix spelling of Mac OS.
10605
10606 2003-04-06 Zack Weinberg <zack@codesourcery.com>
10607
10608 * tree.c (tree_size): For all 'c' and 'x' nodes, look directly
10609 at the sizes of the relevant structures, rather than relying
10610 on TREE_CODE_LENGTH. Call lang_hooks.tree_size to get the
10611 sizes of any such we don't know about. Use
10612 lang_hooks.identifier_size for IDENTIFIER_NODE.
10613
10614 (initializer_zerop): Use CONSTRUCTOR_ELTS.
10615 * tree.def: Update commentary. Make fourth element of
10616 the definition for all 'c' and 'x' nodes zero.
10617
10618 * langhooks.h: New hook, tree_size / LANG_HOOKS_TREE_SIZE.
10619 * langhooks-def.h: Update to match.
10620 * langhooks.c: New default, lhd_tree_size.
10621
10622 * c-common.def (SRCLOC): Kill.
10623 * c-pretty-print.c (pp_c_postfix_expression [case SRCLOC]):
10624 Remove entirely - was already #if-ed out.
10625
10626
10627 2003-04-06 Zack Weinberg <zack@codesourcery.com>
10628
10629 * mklibgcc.in: Use a here document to avoid running afoul of
10630 shells that generate control-A from "echo \1".
10631
10632 2003-04-06 Aldy Hernandez <aldyh@redhat.com>
10633
10634 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mspe
10635 option.
10636
10637 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
10638 rs6000_spe.
10639
10640 * config/rs6000/eabi.h (TARGET_E500): Define.
10641
10642 * config/rs6000/rs6000.h (TARGET_E500): Define.
10643 (TARGET_OPTIONS): Add spe= option.
10644 Declare rs6000_spe and rs6000_spe_string extern.
10645
10646 * config/rs6000/rs6000.c (branch_positive_comparison_operator):
10647 Change TARGET_SPE to TARGET_E500.
10648 (ccr_bit): Change TARGET_SPE to TARGET_E500. Check for
10649 !TARGET_FPRS.
10650 (print_operand): Same.
10651 (rs6000_generate_compare): Same.
10652 (output_cbranch): Same.
10653 (rs6000_spe): Declare.
10654 (rs6000_spe_string): Declare.
10655 (rs6000_override_options): Call rs6000_parse_spe_option.
10656 (rs6000_parse_spe_option): New.
10657
10658 2003-04-06 Steven Bosscher <steven@gcc.gnu.org>
10659
10660 * hashtable.c (gcc_obstack_init): Delete this function
10661 and everything related to it.
10662 * hashtable.h: Remove prototype.
10663 * bitmap.c (bitmap_element_allocate): Cleanup redundant
10664 defines. Cleanup some unnecessary whitespace.
10665 * defaults.h (obstack_chunk_alloc): Redefine with
10666 appropriate casts for libiberty obstacks.
10667 (obstack_chunk_free): Ditto.
10668 (OBSTACK_CHUNK_SIZE): Define, default to 0.
10669 (gcc_obstack_init): Define as a call to _obstack_begin.
10670 * tree.c (print_obstack_statistics): Delete this unused
10671 function.
10672 * tree.h (obstack): Don't forward-declare.
10673 (print_obstack_statistics): Delete prototype.
10674 (print_obstack_name): Ditto.
10675 (gcc_obstack_init): Ditto.
10676 * rtl.h (gcc_obstack_init): Ditto.
10677 * java/jv-scan.c (gcc_obstack_init): Delete this
10678 function, its prototype and related defines.
10679 * java/jvgenmain.c (gcc_obstack_init): Delete this
10680 function, and related defines.
10681 * java/parse-scan.y (obstack_chunk_alloc): Don't define.
10682 (obstack_chunk_free): Ditto
10683
10684 2003-04-06 Geoffrey Keating <geoffk@apple.com>
10685
10686 * dbxout.c (dbxout_handle_pch): Move prototype out from
10687 #if defined DBX_DEBUGGING_INFO.
10688
10689 2003-04-05 Nathan Sidwell <nathan@codesourcery.com>
10690
10691 * gcov.c (struct arc_info): Replace local_span with cycle.
10692 (struct block_info): Replace u.span with u.cycle. Add is_call_return.
10693 (solve_flow_graph): Set is_call_return.
10694 (add_line_counts): Adjust. In block mode, blocks attach to last line.
10695 (accumulate_line_counts): Find graph cycles, not spanning tree.
10696 (output_branch_count): Adjust.
10697 (output_lines): Adjust.
10698 * doc/gcov.texi: Update.
10699
10700 2003-04-06 Kazu Hirata <kazu@cs.umass.edu>
10701
10702 * config/h8300/h8300.md (*zero_extendqisi2_h8300hs): Change
10703 the second alternative to "#".
10704
10705 2003-04-05 Kazu Hirata <kazu@cs.umass.edu>
10706
10707 * config/h8300/h8300.c (single_one_operand): Use GET_MODE_MASK.
10708 (single_zero_operand): Likewise.
10709
10710 2003-04-05 Daniel Berlin <dberlin@dberlin.org>
10711
10712 * Makefile.in (df.o): Depend on alloc-pool.h, not obstack.h.
10713 * df.c: Include alloc-pool.h, not obstack.h.
10714 (df_ref_obstack): Remove.
10715 (df_ref_pool, df_link_pool): Add pools.
10716 (df_alloc): Init the new pools.
10717 (df_free): And free them.
10718 (df_link_create): Use the pools.
10719 (df_ref_create): Ditto.
10720
10721 2003-04-05 Kazu Hirata <kazu@cs.umass.edu>
10722
10723 * simplify-rtx.c: Fix formatting.
10724
10725 2003-04-05 Andrew Pinski <apinski@apple.com>
10726
10727 * config/rs6000/rs6000.c (addrs_ok_for_quad_peep): Allow addr2
10728 reg with reg1 == reg2 and offset1 = -8.
10729
10730 2003-04-05 David Edelsohn <edelsohn@gnu.org>
10731
10732 * config/rs6000/rs6000.c (rs6000_rtx_costs): Halve Power4
10733 multiply costs. Correct Power4 divide costs.
10734 * config/rs6000/power4.md: Restore multiply and FP latency.
10735
10736 2003-04-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10737
10738 * alias.c (find_base_term): Export.
10739 * rtl.h (find_base_term): Declare.
10740 * gcse.c (find_moveable_store): Test for flag_non_call_exceptions
10741 instead of flag_exceptions. Move test for parameter passing ...
10742 (store_killed_in_insn): ... here.
10743
10744 2003-04-05 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10745
10746 PR bootstrap/10267
10747 * doc/install.texi (*-*-solaris2): /bin/ksh is not just recommended
10748 for configuring.
10749
10750 2003-04-04 Geoffrey Keating <geoffk@apple.com>
10751
10752 * dbxout.c (scope_labelno): Add GTY.
10753 (have_used_extensions): Add GTY.
10754 (source_label_number): Add GTY.
10755 (lastfile): Add GTY.
10756 (lastfile_is_base): New.
10757 (base_input_file): New.
10758 (dbxout_handle_pch): New.
10759 (dbx_debug_hooks): Add handle_pch.
10760 (xcoff_debug_hooks): Likewise.
10761 (dbxout_function_end): Remove scope_labelno.
10762 (dbxout_init): Set base_input_file.
10763 (dbxout_handle_pch): New.
10764 (dbxout_source_file): Honour lastfile_is_base.
10765 * dwarfout.c (dwarf_debug_hooks): Add dummy handle_pch.
10766 * sdbout.c (sdb_debug_hooks): Add dummy handle_pch.
10767 * vmsdbgout.c (vmsdbg_debug_hooks): Add dummy handle_pch.
10768 * dwarf2out.c (dwarf2_debug_hooks): Add dummy handle_pch.
10769 * debug.c (do_nothing_debug_hooks): Add dummy handle_pch.
10770 * debug.h (struct gcc_debug_hooks): Add handle_pch.
10771 * c-pch.c (pch_init): Don't call start_source_file, but do call
10772 handle_pch.
10773 (c_common_write_pch): Call handle_pch.
10774 (c_common_read_pch): Don't call start_source_file,
10775 or end_source_file.
10776
10777 Fri Apr 4 17:43:52 2003 Olivier Hainque <hainque@act-europe.fr>
10778
10779 * emit-rtl.c (get_mem_attrs): Adjust alignment tests determining
10780 use of default attributes to agree MEM_ALIGN macro.
10781
10782 Fri Apr 4 17:33:24 2003 Joel Brobecker <brobecker@gnat.com>
10783
10784 * dbxout.c (dbxout_type): When printing type index of range type
10785 whose bounds are printed in octal format, print type of parent type if
10786 it exists so enumerated type descriptions are not transformed
10787 into unsigned types.
10788
10789 2003-04-04 Kazu Hirata <kazu@cs.umass.edu>
10790
10791 * config/h8300/h8300-protos.h: Add a prototype for
10792 compute_a_shift_cc.
10793 * config/h8300/h8300.c (shift_one): Update the CC status.
10794 (shift_two): Likewise.
10795 (output_a_shift_cc): Set cc_inline and cc_special.
10796 (compute_a_shift_cc): New.
10797 * config/h8300/h8300.md (shift insns): Use compute_a_shift_cc.
10798
10799 2003-04-04 Richard Henderson <rth@redhat.com>
10800
10801 * cse.c (fold_rtx): Fix 03-30 change; do check insn non-null.
10802
10803 2003-04-04 Loren James Rittle <ljrittle@acm.org>
10804
10805 * fixinc/inclhack.def (bsd_stdio_attrs_conflict): New.
10806 * fixinc/fixincl.x: Rebuilt.
10807 * fixinc/tests/base/stdio.h: Regenerated.
10808
10809 2003-04-04 Nathan Sidwell <nathan@codesourcery.com>
10810
10811 * gcov.c (accumulate_line_counts): Fix span tree merge bug.
10812
10813 Fri Apr 4 15:58:52 2003 J"orn Rennecke <joern.rennecke@superh.com>
10814
10815 * sh.h (ACTUAL_NORMAL_MODE): New macro, broken out of
10816 (NORMAL_MODE).
10817 * sh.c (fpscr_set_from_mem): Use ACTUAL_NORMAL_MODE.
10818
10819 2003-04-04 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10820
10821 * doc/contrib.texi (Contributors): Add entries for Wolfgang
10822 Bangerth, DJ Delorie, Christian Ehrhardt, Christopher Faylor,
10823 Nathanael Nerode, Diego Novillo, Hartmut Penner, Volker Reichelt,
10824 Danny Smith, and Ulrich Weigand.
10825 Update Kriang Lerdsuwanakij and fix a typo in Janis Johnson's
10826 entry.
10827
10828 2003-04-04 Nick Clifton <nickc@redhat.com>
10829
10830 * config/sparc/sol2-bi.h: Revert previous delta.
10831 * config/sparc/sol2-gas-bi.h (AS_SPARC64_FLAG): Prepend -TSO
10832
10833 2003-04-04 Nick Clifton <nickc@redhat.com>
10834
10835 * config/v850/v850.c (expand_prologue): Only use register save
10836 helper functions if long calls are not being used.
10837 Add a clobber of r11 id using long calls.
10838 (pattern_is_ok_for_prologue): Account for the extra clobber.
10839 (construct_save_jarl): Likewise.
10840 * config/v850/v850.md (prolog pattern): Do not use this pattern
10841 for v850e's.
10842
10843 2003-04-04 Andreas Schwab <schwab@suse.de>
10844
10845 * stor-layout.c (layout_decl): Avoid syntax error in last change
10846 when PCC_BITFIELD_TYPE_MATTERS is defined but not
10847 EMPTY_FIELD_BOUNDARY.
10848
10849 2003-04-03 Jason Merrill <jason@redhat.com>
10850
10851 PR c/10175
10852 * jump.c (never_reached_warning): Revert patch of 2002-11-02.
10853 Look backwards for a line note.
10854
10855 2003-04-03 Neil Booth <neil@daikokuya.co.uk>
10856
10857 * fix-header.c (read_scan_file): Defer switch processing.
10858
10859 2003-04-03 Matt Austern <austern@apple.com>
10860
10861 * cpppch.c (reset_ht): Remove.
10862 (cpp_read_state): Remove loop to reset hashtable identifiers.
10863 * ggc-common.c (gt_pch_save): Add call to gt_pch_fixup_stringpool
10864 after pch file is written.
10865 * ggc.h (gt_pch_fixup_stringpool): Declare.
10866 * stringpool.c (ht_copy_and_clear): Define. Callback. Copy
10867 hashnode's value to another hashtable, then clear the original.
10868 (saved_ident_hash): Define.
10869 (gt_pch_save_stringpool): Create saved_ident_hash, use it to
10870 store definitions in ident_hash, and clear ident_hash.
10871 (gt_pch_fixup_stringpool): Define. Restore definitions from
10872 saved_ident_hash to ident_hash, then destroy saved_ident_hash.
10873
10874 Thu Apr 3 22:27:40 CEST 2003 Jan Hubicka <jh@suse.cz>
10875
10876 * cfgrtl.c (update_bb_for_insn): Do not set block for barriers.
10877
10878 2003-04-03 Eric Botcazou <ebotcazou@libertysurf.fr>
10879
10880 PR optimization/10157
10881 * gcse.c (can_copy_p): Rename it to can_copy.
10882 (can_copy_init_p): Remove.
10883 (compute_can_copy): Use can_copy instead of can_copy_p.
10884 (can_copy_p): New exported function. Call compute_can_copy.
10885 (hash_scan_set): Use it.
10886 (gcse_main): Don't call compute_can_copy.
10887 (bypass_jumps): Don't call compute_can_copy.
10888 * rtl.h (can_copy_p): Declare.
10889 * loop.c (scan_loop): Don't move the source and add a reg-to-reg
10890 copy if the mode doesn't support copy operations.
10891
10892 2003-04-03 Jason Merrill <jason@redhat.com>
10893
10894 * Makefile.in (unstrap): Also remove stage_last.
10895
10896 * dwarf2out.c (lookup_filename): Don't check for "<internal>".
10897 (dwarf2out_source_line): Don't do anything if line==0.
10898
10899 * stor-layout.c (do_type_align): New fn, split out from...
10900 (layout_decl): ...here. Do all alignment calculations for
10901 FIELD_DECLs here.
10902 (update_alignment_for_field): Not here.
10903 (start_record_layout, debug_rli): Remove unpadded_align.
10904 * tree.h (struct record_layout_info_s): Remove unpadded_align.
10905 * c-decl.c (finish_enum): Don't set DECL_SIZE, DECL_ALIGN
10906 or DECL_MODE on the CONST_DECLs.
10907 (finish_struct): Don't mess with DECL_ALIGN.
10908
10909 Thu Apr 3 18:57:19 CEST 2003 Jan Hubicka <jh@suse.cz>
10910
10911 * i386.c (print_operand): Do not bypass output_addr_const at flag_pic.
10912
10913 Thu Apr 3 17:08:09 2003 J"orn Rennecke <joern.rennecke@superh.com>
10914
10915 * sh.c (sh_function_ok_for_sibcall): Return 0 if the current
10916 function is an interrupt handler.
10917
10918 * sh.c (sh_expand_epilogue): Avoid clash of temp register for
10919 restoring target registers with EH_RETURN_STACKADJ_RTX; use
10920 multiple registers in round-robin fashion.
10921
10922 2003-04-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10923
10924 * gengtype-lex.l (IWORD): Add CHAR_BITFIELD.
10925 * system.h (CHAR_BITFIELD): New.
10926
10927 2003-04-03 Kazu Hirata <kazu@cs.umass.edu>
10928
10929 * config/h8300/h8300.md (a peephole2): Generalize to accept GT
10930 and LE.
10931 (another peephole2): Likewise.
10932
10933 2003-04-03 Nick Clifton <nickc@redhat.com>
10934
10935 * config/sparc/sol2-bi.h (ASM_CPU64_DEFAULT_SPEC): Add -TSO.
10936 (DEF_ARCH64_SPEC): Likewise.
10937
10938 Thu Apr 3 09:53:40 CEST 2003 Jan Hubicka <jh@suse.cz>
10939
10940 * i386.c (constant_address_p): Use legitimate_constant_p.
10941 (legitimate_address_p): Do not use CONSTANT_ADDRESS_P.
10942
10943 2003-04-02 Kazu Hirata <kazu@cs.umass.edu>
10944
10945 * config/h8300/h8300-protos.h: Add a prototype for
10946 gtle_operator.
10947 * config/h8300/h8300.c (gtle_operator): New.
10948 * config/h8300/h8300.h (PREDICATE_CODES): Add an entry for
10949 gtle_operator.
10950 * config/h8300/h8300.md (a peephole2): Generalize to accept GT
10951 and LE.
10952
10953 2003-04-02 Richard Henderson <rth@redhat.com>
10954
10955 * libgcc-std.ver (_Unwind_GetCFA): New.
10956 * unwind-dw2.c (_Unwind_GetCFA): New.
10957 * unwind-libunwind.c (_Unwind_GetCFA): New.
10958 * unwind-sjlj.c (_Unwind_GetCFA): New.
10959 * unwind.h: Declare it.
10960
10961 Thu Apr 3 00:31:21 CEST 2003 Jan Hubicka <jh@suse.cz>
10962
10963 PR inline-asm/8088
10964 * i386.c (ix86_hard_regno_mode_ok): Return 0 for MMX/SSE registers
10965 when MMX/SSE is not available.
10966
10967 2003-04-02 Mike Stump <mrs@apple.com>
10968
10969 * doc/install.texi (Specific): Update pointers to apple.com.
10970
10971 Thu Apr 3 00:18:49 CEST 2003 Jan Hubicka <jh@suse.cz>
10972
10973 * i386.c (override_options): Disable red zone by default on i386.
10974 (compute_frame_layout, ix86_force_to_memory, ix86_free_from_memory):
10975 Do not test TARGET_64BIT together with TARGET_RED_ZONE
10976
10977 2003-04-02 Kazu Hirata <kazu@cs.umass.edu>
10978
10979 * config/h8300/h8300.md (a peephole2): Tighten the condition.
10980
10981 2003-04-02 Richard Henderson <rth@redhat.com>
10982
10983 * longlong.h (umul_ppmm) [alpha]: Use __builtin_alpha_umulh.
10984
10985 2003-04-02 Kazu Hirata <kazu@cs.umass.edu>
10986
10987 * config/h8300/h8300.md (a peephole2): New.
10988
10989 2003-04-02 Richard Henderson <rth@redhat.com>
10990
10991 * except.c (sjlj_find_directly_reachable_regions): Recognize when
10992 must-not-throw region has been deleted.
10993
10994 2003-04-02 Richard Henderson <rth@redhat.com>
10995
10996 * dwarf2out.c (output_call_frame_info): Ignore fde->nothrow as an
10997 optimization when flag_exceptions not enabled.
10998
10999 2003-04-02 Vladimir Makarov <vmakarov@redhat.com>
11000
11001 * config/rs6000/rs6000.c
11002 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Redefine the
11003 macros.
11004 (rs6000_issue_rate): Add case for 8540.
11005 (rs6000_use_sched_lookahead): New function.
11006
11007 * config/rs6000/8540.md: Rename SIU units into SU ones and MIU
11008 units into MU ones.
11009 (ppc8540_branch, ppc8540_cr_logical): Add one cycle in the
11010 reservation before retirement.
11011 (ppc8540_multiply, ppc8540_load, ppc8540_store,
11012 ppc8540_simple_float, ppc8540_vector_load, ppc8540_vector_store):
11013 Remove additional cycle in the reservation before retirement.
11014 (ppc8540_mfcr, ppc8540_mtcrf, ppc8540_mtjmpr): Add missed
11015 reservation of ppc8540_issue.
11016
11017 2003-04-02 Andreas Schwab <schwab@suse.de>
11018
11019 * real.c (decode_ieee_single): Fix decoding of SNaN bit.
11020
11021 2003-04-01 Richard Henderson <rth@redhat.com>
11022
11023 * except.c (convert_from_eh_region_ranges_1): Smash REG_EH_REGION
11024 notes for nothrow calls if flag_forced_unwind_exceptions.
11025 (build_post_landing_pads): Mind flag_forced_unwind_exceptions.
11026 (sjlj_find_directly_reachable_regions): Likewise.
11027 (reachable_handlers): Likewise.
11028 (can_throw_external): Likewise.
11029 (collect_one_action_chain): Record cleanups after catch-all and
11030 must-not-throw if flag_forced_unwind_exceptions.
11031 * flags.h (flag_forced_unwind_exceptions): Declare.
11032 * toplev.c (flag_forced_unwind_exceptions): New.
11033 (lang_independent_options): Add it.
11034 * doc/invoke.text: Add it.
11035
11036 2003-04-01 David Mosberger <davidm@hpl.hp.com>
11037
11038 * config/ia64/crti.asm: Clean up trailing whitespace.
11039 Remove trailing hashes (#) from identifiers.
11040
11041 * config/ia64/crtn.asm: Ditto.
11042
11043 * config/ia64/crtend.asm: Remove trailing hashes (#) from
11044 identifiers.
11045 (__do_global_ctors_aux): Align to 32-byte boundary. Add unwind
11046 directives. Drop explicit bundling---it just makes the code
11047 harder to read. Don't save/restore gp needlessly.
11048
11049 * config/ia64/crtbegin.asm: Remove trailing hashes (#) from
11050 identifiers (they're only needed if the identifier would clash
11051 with a register name otherwise).
11052 (__do_global_dtors_aux): Align to 32-byte boundary. Add unwind
11053 directives. Drop explicit bundling---it just makes the code
11054 harder to read.
11055 (__do_jv_register_classes): Ditto.
11056 (.fini_array): Remove "progbits" (newer
11057 assemblers don't like wrong section-types).
11058 (.init_array): Ditto.
11059
11060 2003-04-01 Roger Sayle <roger@eyesopen.com>
11061
11062 PR fortran/9974
11063 * gcse.c (reg_killed_on_edge): New function to test whether the
11064 given reg is overwritten by any instruction queued on an edge.
11065 (bypass_block): Ignore substitutions killed on incoming edges.
11066 Don't bypass outgoing edges that have queued instructions.
11067
11068 2003-04-01 Alexandre Oliva <aoliva@redhat.com>
11069
11070 * real.h (EXP_BITS): Make room for...
11071 (struct real_value): ... added canonical bit.
11072 (struct real_format): Added pnan.
11073 (mips_single_format, mips_double_format, mips_extended_format,
11074 mips_quad_format): New.
11075 * real.c: Copy p to pnan in all formats.
11076 (get_canonical_qnan, get_canonical_snan): Set canonical bit.
11077 (real_nan): Use pnan to compute significand's shift.
11078 (real_identical): Disregard significand in canonical
11079 NaNs.
11080 (real_hash): Likewise. Take signalling into account.
11081 (encode_ieee_single, encode_ieee_double, encode_ieee_quad):
11082 Disregard significand bits in canonical NaNs. Set all bits of
11083 canonical NaN if !qnan_msb_set.
11084 (encode_ibm_extended, decode_ibm_extended): Likewise. Use
11085 qnan_msb_set to tell the base double format.
11086 (ibm_extended_format): Use 53 as pnan.
11087 (mips_single_format, mips_double_format, mips_extended_format,
11088 mips_quad_format): Copied from the corresponding ieee/ibm
11089 formats, with qnan_msb_set false.
11090 * config/mips/iris6.h (MIPS_TFMODE_FORMAT): Use mips_extended_format.
11091 * config/mips/linux64.h (MIPS_TFMODE_FORMAT): Use mips_quad_format.
11092 * config/mips/mips.c (override_options): Use mips_single_format
11093 and mips_double_format. Default TFmode to mips_quad_format.
11094 * config/mips/t-linux64 (tp-bit.c): Define QUIET_NAN_NEGATED.
11095 * config/mips/t-irix6: Likewise.
11096 * config/mips/t-mips (fp-bit.c, dp-bit.c): Likewise.
11097 * config/fp-bit.c (pack_d, unpack_d): Obey it.
11098
11099 2003-04-01 Geoffrey Keating <geoffk@apple.com>
11100
11101 * unwind-dw2-fde-darwin.c (DESTRUCTOR_MAY_BE_CALLED_LIVE): New.
11102 (live_image_destructor): Reset image to initial state.
11103 (examine_objects): Set DESTRUCTOR_MAY_BE_CALLED_LIVE.
11104
11105 2003-04-01 Eric Botcazou <ebotcazou@libertysurf.fr>
11106
11107 * config/sparc/sparc.c (input_operand): Accept bare
11108 CONSTANT_P_RTX operands.
11109
11110 2003-04-01 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11111
11112 * gcse.c (struct ls_expr): Added pattern_regs field.
11113 (ldst_entry): Initialize it.
11114 (extract_mentioned_regs, extract_mentioned_regs_helper): New.
11115 (store_ops_ok): Use regs precomputed by them.
11116 (find_loads, store_killed_in_insn, load_kills_store): Change return
11117 type to bool.
11118 (store_killed_before, store_killed_after): Take position of register
11119 set in account.
11120 (reg_set_info): Store position of the setter.
11121 (gcse_main): Enable store motion.
11122 (mems_conflict_for_gcse_p): Enable load motion of non-symbol mems.
11123 (pre_insert_copy_insn, update_ld_motion_stores, insert_store): Prevent rtl
11124 sharing.
11125 (simple_mem): Enable store motion of non-symbol mems.
11126 (regvec): Type changed.
11127 (LAST_AVAIL_CHECK_FAILURE): New.
11128 (compute_store_table_current_insn): New.
11129 (build_store_vectors): Computation of availability and anticipatability
11130 moved ...
11131 (compute_store_table, find_moveable_store): ... here.
11132 (delete_store): Remove senseless comment.
11133 (store_motion): Reorganize.
11134
11135 2003-04-01 Kevin Buettner <kevinb@redhat.com>
11136
11137 * config/mips/mips.c (override_options): Provide mappings for
11138 HI_REGNUM and LO_REGNUM.
11139 * config/mips/mips.h (MD_DBX_FIRST): Define.
11140
11141 2003-04-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11142
11143 * combine.c (merge_outer_ops): Fix typo.
11144
11145 * varasm.c (make_decl_one_only): Revert 2003-03-09 patch.
11146
11147 2003-04-01 David Edelsohn <edelsohn@gnu.org>
11148
11149 * config/rs6000/{40x.md,603.md,6xx.md,7450.md,7xx.md,mpc.md,
11150 power4.md,rios1.md,rios2.md,rs64.md}: Change mult_compare to
11151 imul_compare. Add lmul_compare.
11152 * config/rs6000/power4.md: Bump some latencies. Model extra cycle
11153 in second pair of dispatch slots. Model stores more accurately.
11154 Tweak multiply model. Add bypasses for CR instructions dependent
11155 on complicated compares.
11156 * config/rs6000/rs6000.md (mulsi3): Name imul_compare patterns.
11157 (muldi3): Add lmul_compare patterns.
11158 * config/rs6000/rs6000.c (rs6000_variable_issue): Move FPLOAD_UX
11159 and FPSTORE_UX to split instructions and add COMPARE,
11160 DELAYED_COMPARE, IMUL_COMPARE, LMUL_COMPARE, IDIV, LDIV.
11161 (rs6000_adjust_cost): Add IMUL_COMPARE and LMUL_COMPARE.
11162 (rs6000_rtx_costs): Separate POWER4 multiply case.
11163
11164 2003-04-01 Ulrich Weigand <uweigand@de.ibm.com>
11165
11166 * config/s390/s390.c (s390_fixup_clobbered_return_reg):
11167 Do nothing if __builtin_return_address was not used.
11168
11169 Tue Apr 1 18:18:23 CEST 2003 Jan Hubicka <jh@suse.cz>
11170
11171 * i386.md (test patterns): Allow memory operand in operand1.
11172
11173 2003-02-31 Aldy Hernandez <aldyh@redhat.com>
11174
11175 * testsuite/gcc.c-torture/execute/simd-3.c: New.
11176
11177 * expr.c (expand_expr): Handle VECTOR_CST.
11178 (const_vector_from_tree): New.
11179
11180 * varasm.c (output_constant): Handle VECTOR_CST.
11181
11182 * c-typeck.c (digest_init): Build a vector constant from a
11183 VECTOR_TYPE.
11184
11185 * config/rs6000/rs6000.c: Remove prototype for
11186 easy_vector_constant.
11187 (easy_vector_constant): Add mode parameter. Rewrite to handle
11188 more easy constants.
11189 (rs6000_emit_move): Pass mode to easy_vector_constant.
11190 Call emit_easy_vector_insn for SPE V2SI vector constant moves.
11191 (emit_easy_vector_insn): New.
11192 (easy_vector_same): New.
11193 (EASY_VECTOR_15): New macro.
11194 (EASY_VECTOR_15_ADD_SELF): New macro.
11195 (bdesc_2arg): Rename to xorv2si3.
11196 (easy_vector_constant_add_self): New.
11197 (input_operand): Allow vector constants.
11198
11199 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
11200 easy_vector_constant, easy_vector_constant_add_self.
11201 (EXTRA_CONSTRAINT): Add 'W'.
11202
11203 * config/rs6000/rs6000-protos.h: Add prototype for
11204 easy_vector_constant, emit_easy_vector_insn.
11205
11206 * config/rs6000/altivec.md (xorv8hi3): New.
11207 (xorv16qi3): New.
11208 Remove all _const0 patterns.
11209 (movv4si_internal): Rewrite to use code. Add vector constant to
11210 vector alternative. Add splitter.
11211 (movv8hi_internal): Same.
11212 (movv16qi_internal): Same.
11213 (movv4sf_internal): Same.
11214 Change the unspecs for vspltis* to use constants.
11215
11216 * config/rs6000/spe.md ("xorv4hi3"): New.
11217 ("spe_evxor"): Rename to xorv2si3.
11218 ("xorv1di3"): New.
11219 Remove all _const0 patterns.
11220 (movv2si_internal): Rewrite to use code. Add vector constant to
11221 alternatives. Add splitter.
11222 (movv4hi_internal): Add vector constant to alternatives.
11223 (movv1di_internal): Same.
11224 (movv2sf_internal): Same.
11225
11226 2003-03-31 Mark Mitchell <mark@codesourcery.com>
11227
11228 PR c/9936
11229 * c-decl.c (grokdeclarator): Clear SAVE_EXPR_CONTEXT for
11230 variably-sized arrays in parameters.
11231 (set_save_expr_context): New function.
11232 (c_expand_body): Use it, via walk_tree.
11233
11234 2003-03-31 Eric Christopher <echristo@redhat.com>
11235
11236 * combine.c (can_combine_p): Allow ZERO_EXTRACT and STRICT_LOW_PART.
11237 (combinable_i3pat): Remove call to expand_field_assignment and
11238 #if 0'd code.
11239
11240 2003-03-31 Mark Mitchell <mark@codesourcery.com>
11241
11242 PR c++/10278
11243 * c-common.c (finish_label_address_expr): Handle the
11244 error_mark_node.
11245
11246 2003-03-31 Richard Henderson <rth@redhat.com>
11247
11248 * real.c (real_identical): Reorg so as to not compare
11249 signalling for normals.
11250
11251 2003-03-31 Stephane Carrez <stcarrez@nerim.fr>
11252
11253 * config/m68hc11/m68hc11.c (hard_reg_operand): Check the mode.
11254
11255 2003-03-31 Stephane Carrez <stcarrez@nerim.fr>
11256
11257 * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Don't rely on REG_WAS_0
11258 notes as they are boggus.
11259 (m68hc11_gen_movqi): Likewise.
11260
11261 2003-03-31 Stephane Carrez <stcarrez@nerim.fr>
11262
11263 * config/m68hc11/m68hc11.c (expand_prologue): For an interrupt handler
11264 save the soft registers after the frame pointer so that gdb can unwind
11265 the frame more easily.
11266 (expand_epilogue): Likewise in opposite order; allow to use X register
11267 as scratch if the return value is by reference.
11268
11269 2003-03-31 Jason Merrill <jason@redhat.com>
11270
11271 PR java/10145
11272 * stor-layout.c (update_alignment_for_field): Respect
11273 DECL_USER_ALIGN for zero-length bitfields, too.
11274 * c-decl.c (finish_struct): Don't set DECL_ALIGN for normal
11275 fields.
11276
11277 2003-03-31 Matt Austern <austern@apple.com>
11278
11279 * cpppch.c (struct cpp_savedstate): Add defs and n_defs members.
11280 (count_defs): Keep track of number of defs as well as total size.
11281 (write_defs): Put every definition in cpp_savedstate's defs array.
11282 (comp_hashnode): Define. Comparison function for qsort.
11283 (cpp_write_pch_deps): Sort definitions before writing them.
11284 (struct ht_node_list): Define. Like cpp_savedstate but simpler.
11285 (collect_ht_nodes): Define.
11286 (cpp_valid_state): When verifying that undefined identifiers in
11287 the pch file are still undefined, read a sorted list of undefined
11288 identifiers, collect all defined identifiers into a sorted list,
11289 and walk through both lists to make sure there's no match.
11290
11291 2003-03-31 Kazu Hirata <kazu@cs.umass.edu>
11292
11293 * config/h8300/h8300.md (a peephole2): New.
11294
11295 2003-03-31 Michael Matz <matz@suse.de>
11296
11297 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Change 1 into 0.
11298
11299 2003-03-31 Segher Boessenkool <segher@koffie.nl>
11300
11301 PR target/10177
11302 * config/rs6000/rs6000.h (HARD_REGNO_RENAME_OK): New.
11303 * config/rs6000/rs6000.c (compute_vrsave_mask): Don't mark
11304 all call-clobbered registers as used.
11305
11306 2003-03-31 Michael Matz <matz@suse.de>
11307
11308 * cppexp.c (cpp_classify_number): Accept '.' after "0x".
11309 * testsuite/gcc.dg/cpp/c99-hexfloat-3.c: New file.
11310
11311 2003-03-31 Nathan Sidwell <nathan@codesourcery.com>
11312
11313 * gcov.c: Add -a & -u options.
11314 (struct arc_info): Add local_span, is_call_non_return,
11315 is_nonlocal_return, is_unconditional flags, remove is_call flag.
11316 (struct block_info): Add flags, is_call_site, is_nonlocal_return
11317 members. Make encodings a union with span member.
11318 (struct function_info): Add blocks_executed, line, src, line_next
11319 members.
11320 (struct coverage_info): Make branches a union with blocks member.
11321 (struct source_info): Add functions member.
11322 (object_summary, program_count): New global variables.
11323 (flag_all_blocks, flag_unconditional): New flags.
11324 (find_source, output_branch_count): New functions.
11325 (print_usage): Adjust.
11326 (options): Adjust.
11327 (process_args): Adjust.
11328 (read_graph_file) <GCOV_TAG_FUNCTION>: Adjust.
11329 <GCOV_TAG_BLOCKS>: Read flags.
11330 <GCOV_TAG_LINES>: Adjust.
11331 (read_count_file): Process SUMMARY tags.
11332 (solve_flow_graph): Set is_unconditional and clear is_call_site
11333 appropriately.
11334 (add_branch_counts): Adjust. Don't count unconditional branches.
11335 (add_line_counts): Deal with all-blocks mode, accumulate block
11336 coverage.
11337 (accumulate_line_counts): Adjust, generate local spanning tree for
11338 all-blocks mode.
11339 (output_lines): Adjust.
11340 * profile.c (branch_prob): Alter GCOV_FUNCTION_TAG record.
11341 * doc/gcov.texi: Document.
11342
11343 2003-03-31 Kazu Hirata <kazu@cs.umass.edu>
11344
11345 * config/h8300/h8300.md: Organize peephole2's that transform
11346 (compare (reg:HI) (const_int)).
11347
11348 2003-03-31 Roger Sayle <roger@eyesopen.com>
11349
11350 * emit-rtl.c (dconstm2, dconsthalf): New real constants.
11351 (init_emit_once): Initialize dconstm2 and dconsthalf here.
11352 * real.h (dconstm2, dconsthalf): Add prototypes here.
11353 * real.c (real_sqrt): Use dconsthalf rather than local copy.
11354 * builtins.c (fold_builtin): When optimizing sqrt(exp(x)) as
11355 exp(x/2.0) remember to fold the division if possible.
11356 Fold sin(0.0) as 0.0, cos(0.0) as 1.0, pow(x,1.0) as x,
11357 pow(x,-1.0) as 1.0/x, pow(x,2.0) as x*x, pow(x,-2.0) as
11358 1.0/(x*x) and pow(x,0.5) as sqrt(x).
11359
11360 2003-03-31 Kazu Hirata <kazu@cs.umass.edu>
11361
11362 * config/h8300/h8300.md (a new peephole2): New.
11363
11364 2003-03-31 Richard Sandiford <rsandifo@redhat.com>
11365
11366 * gcse.c (simple_mem): Return false for floating-point accesses
11367 if flag_float_store is true.
11368
11369 2003-03-30 Roger Sayle <roger@eyesopen.com>
11370
11371 * gcse.c (gcse_constant_p): New function to identify constants
11372 suitable for constant propagation, including COMPARE with two
11373 integer constant arguments.
11374 (hash_scan_set): Use gcse_constant_p.
11375 (find_avail_set): Likewise.
11376 (cprop_insn): Likewise.
11377 (do_local_cprop): Likewise.
11378 (find_implicit_sets): Likewise.
11379 (find_bypass_set): Likewise.
11380
11381 2003-03-30 Matt Kraai <kraai@alumni.cmu.edu>
11382
11383 * except.h: Remove definition of varray_type.
11384
11385 2003-03-30 Richard Henderson <rth@redhat.com>
11386
11387 PR opt/10011, opt/10252:
11388 * toplev.c (rest_of_compilation): Run purge_builtin_constant_p
11389 before post-gcse cse pass.
11390
11391 2003-03-30 Roger Sayle <roger@eyesopen.com>
11392
11393 * dojump.c (do_jump): Copy SUBREGs into a pseudo for comparison.
11394
11395 2003-03-30 DJ Delorie <dj@redhat.com>
11396
11397 * profile.c (instrument_edges): Make sure any newly created
11398 jump insns have correct jump label info.
11399
11400 2003-03-30 Richard Henderson <rth@redhat.com>
11401
11402 * cfgbuild.c (make_edges): Use tablejump_p.
11403 * cfgcleanup.c (label_is_jump_target_p): Likewise.
11404 * cfglayout.c (cfg_layout_can_duplicate_bb_p): Likewise.
11405 * cfgrtl.c (flow_delete_block_noexpunge): Likewise.
11406 (try_redirect_by_replacing_jump): Likewise.
11407 (redirect_edge_and_branch): Likewise.
11408 * cse.c (fold_rtx): Likewise.
11409 * jump.c (delete_related_insns): Likewise.
11410 * rtlanal.c (get_jump_table_offset): Likewise.
11411 * ssa-ccp.c (ssa_ccp_df_delete_unreachable_insns): Likewise.
11412
11413 2003-03-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
11414
11415 * Makefile.in (STRICT_WARN): Don't warn for ISO C constructs.
11416 (STRICT2_WARN): Likewise.
11417
11418 2003-03-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11419
11420 PR other/6955
11421 * collect2.c (collect_wait): Use WCOREDUMP and fix output message.
11422 * system.h (WCOREDUMP, WCOREFLG): Define if necessary.
11423
11424 2003-03-30 Richard Henderson <rth@redhat.com>
11425
11426 PR c/10083
11427 * config/alpha/alpha.md (umuldi3_highpart): Change to expander;
11428 don't zero_extend const inputs.
11429
11430 2003-03-30 Kazu Hirata <kazu@cs.umass.edu>
11431
11432 * reload1.c (reload_cse_move2add): Fix a comment typo.
11433
11434 2003-03-30 Kazu Hirata <kazu@cs.umass.edu>
11435
11436 * config/h8300/h8300.md (a peephole2): Remove useless code.
11437
11438 2003-03-29 Kazu Hirata <kazu@cs.umass.edu>
11439
11440 * config/h8300/h8300.md (*iorsi3_and_ashift): New.
11441 (*iorsi3_and_lshiftrt): Likewise.
11442 (*iorsi3_zero_extract): Likewise.
11443
11444 2003-03-29 Kazu Hirata <kazu@cs.umass.edu>
11445
11446 * config/h8300/h8300.md (*insv_si_8_8): New.
11447 (*insv_si_8_8_lshiftrt_8): Likewise.
11448 (a peephole2): Likewise.
11449
11450 2003-03-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11451
11452 * doc/contrib.texi: Add Eric Botcazou and Roger Sayle.
11453 Uniformly use bugfix instead of bug fix.
11454
11455 2003-03-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11456
11457 PR doc/895
11458 * ONEWS: Remove those items that already appear in the EGCS
11459 release notes on our web pages.
11460
11461 2003-03-29 Alan Modra <amodra@bigpond.net.au>
11462
11463 * config/rs6000/rs6000.h (FUNCTION_VALUE_REGNO_P): Respect
11464 TARGET_HARD_FLOAT. Reformat.
11465 (FUNCTION_ARG_REGNO_P): Likewise, and remove unneeded casts.
11466
11467 2003-03-28 Albert Chin-A-Young <china@thewrittenword.com>
11468
11469 * gcc/fixinc/inclhack.def: Update solaris_mutex_init_1 to
11470 work on Solaris 2.5.1.
11471
11472 2003-03-28 Kazu Hirata <kazu@cs.umass.edu>
11473
11474 * config/h8300/h8300.md (*addsi3_and_r_1): Put under plus:SI
11475 section of h8300.md
11476 (*addsi3_and_nor_r_1): Likewise.
11477
11478 2003-03-29 Ulrich Weigand <uweigand@de.ibm.com>
11479
11480 * config/s390/s390.c (s390_emit_prologoue): Make sure backchain is
11481 set up before any trapping memory access if flag_non_call_exceptions.
11482
11483 2003-03-29 Alan Modra <amodra@bigpond.net.au>
11484
11485 * reload1.c (reload_as_needed): Allow a USE in asm reloads.
11486
11487 * loop.c: (find_mem_in_note_1, find_mem_in_note): Comment.
11488
11489 2003-03-28 Nathanael Nerode <neroden@gcc.gnu.org>
11490
11491 * configure.in: Clarify comments.
11492 * configure: Regenerate.
11493
11494 2003-03-28 Ulrich Weigand <uweigand@de.ibm.com>
11495
11496 * config/s390/s390.md ("literal_pool_31"): Output pool anchor
11497 label even if pool empty when generating PIC.
11498 ("literal_pool_31", "literal_pool_64"): Coding style cleanup.
11499
11500 2003-03-28 Kazu Hirata <kazu@cs.umass.edu>,
11501 Dhananjay Deshpande <dhananjayd@kpit.com>
11502
11503 PR target/10205
11504 * config/h8300/h8300.c (h8300_initial_elimination_offset):
11505 Correct the offset computation when TARGET_NORMAL.
11506
11507 2003-03-28 Eric Botcazou <ebotcazou@libertysurf.fr>
11508
11509 PR target/10067
11510 * config/sparc/sparc.md (jump pattern): Correct order
11511 when issuing the annuling marker.
11512
11513 2003-03-28 Eric Botcazou <ebotcazou@libertysurf.fr>
11514
11515 PR c/8281
11516 * config/sparc/sparc.md (movdi_insn_sp32_v9): Remove 'f-f' alternative.
11517 (movdi reg/reg split): Match only on sparc32, and v9 when int regs.
11518
11519 2003-03-28 Alan Modra <amodra@bigpond.net.au>
11520
11521 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): Remove unnecessary
11522 globalize_label.
11523 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
11524 * config/i960/i960.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
11525 * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
11526 * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
11527 * config/mips/linux.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
11528 * config/sparc/sparc.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
11529 * config/v850/v850.c (v850_output_aligned_bss): Likewise.
11530
11531 2003-03-28 Alan Modra <amodra@bigpond.net.au>
11532
11533 * loop.c: (find_mem_in_note_1, find_mem_in_note): New functions.
11534 (replace_loop_mems): Add "written" param. Remove invalid REG_EQUAL
11535 notes after hoisting.
11536 (load_mems): Adjust replace_loop_mems call.
11537
11538 2003-03-28 Eric Botcazou <ebotcazou@libertysurf.fr>
11539 Richard Henderson <rth@redhat.com>
11540
11541 PR target/10114 and PR target/10084
11542 * dwarf2out.c (mem_loc_descriptor): Handle LO_SUM.
11543
11544 2003-03-27 Richard Henderson <rth@redhat.com>
11545
11546 * config/alpha/alpha.md (adddi_er_high_l): Valid only after reload.
11547
11548 2003-03-27 Roger Sayle <roger@eyesopen.com>
11549
11550 * fold-const.c (fold_inf_compare): New function to simplify FP
11551 comparisons against +Infinity or -Infinity.
11552 (fold): Optimize floating point comparisons against Infs and NaNs.
11553
11554 2003-03-27 Janis Johnson <janis187@us.ibm.com>
11555
11556 * libgcov.c: Provide only dummy functions if libc is not available.
11557
11558 2003-03-27 Richard Henderson <rth@redhat.com>
11559
11560 * real.h (struct real_value): Add signalling.
11561 (EXP_BITS): Decrement.
11562 * real.c (get_canonical_qnan): Don't set MSB-1.
11563 (get_canonical_snan): Likewise. Set signalling.
11564 (real_identical): Compare signalling.
11565 (round_for_format): Remove force-one-bit on code.
11566 (real_nan): Likewise. Set signalling.
11567 (encode_ieee_single): Add force-one-bit code; honor signalling.
11568 (encode_ieee_double, encode_ieee_extended, encode_ieee_quad): Likewise.
11569 (decode_ieee_single): Set signalling.
11570 (decode_ieee_double, decode_ieee_extended, decode_ieee_quad): Likewise.
11571
11572 2003-03-27 Olivier Hainque <hainque@act-europe.fr>
11573
11574 PR ada/9953
11575 * ada/Makefile.in (gnatlib configuration for HPUX): Split
11576 the general section for HPUX into specific sections for
11577 HPUX 10 and HPUX 11. Fix the setting of TGT_LIB in the HPUX
11578 11 case.
11579
11580 2003-03-27 Glen Nakamura <glen@imodulo.com>
11581
11582 PR opt/10087
11583 * loop.c (loop_givs_reduce): Skip bivs with duplicate locations
11584 while incrementing giv.
11585 (record_biv): Check for duplicate biv locations and
11586 set (struct induction *) v->same if found.
11587
11588 2003-03-27 David Mosberger <davidm@hpl.hp.com>
11589
11590 * unwind-libunwind.c (uw_frame_state_for): Adjust for libunwind
11591 v0.9 API change: replace read of UNW_REG_HANDLER with
11592 unw_get_proc_info().
11593 (_Unwind_GetLanguageSpecificData): Replace read of UNW_REG_LSDA
11594 with unw_get_proc_info().
11595 (_Unwind_GetRegionStart): Replace UNW_REG_PROC_START with
11596 unw_get_proc_info().
11597
11598 2003-03-27 Vladimir Makarov <vmakarov@redhat.com>
11599
11600 * config/rs6000/8540.md: Use presence_set instead of absence_set.
11601
11602 2003-03-26 Richard Henderson <rth@redhat.com>
11603
11604 * c-decl.c (finish_function): Always defer if DECL_DECLARED_INLINE_P.
11605
11606 2003-03-26 Roger Sayle <roger@eyesopen.com>
11607
11608 PR bootstrap/10051, PR bootstrap/10169.
11609 * mips-tfile.c (init_file): Don't provide a static initializer.
11610 (initialize_init_file): Initialize the contents of init_file.
11611 (add_file): Call initialize_init_file if not already initialized.
11612
11613 2003-03-26 Ulrich Weigand <uweigand@de.ibm.com>
11614
11615 * config/s390/s390.c (s390_optimize_prolog): Do not save/restore
11616 registers used for global asm variables.
11617 (s390_frame_info, s390_arg_frame_offset): Likewise.
11618 (s390_emit_prologue, s390_emit_epilogue): Likewise.
11619
11620 2003-03-26 Vladimir Makarov <vmakarov@redhat.com>
11621
11622 * config/rs6000/8540.md: New file.
11623
11624 * config/rs6000/{40x.md, 603.md, 6xx.md, 7450.md, 7xx.md, mpc.md,
11625 power4.md, rios1.md, rios2.md, rs64.md}: Add mult_compare to
11626 reservations for imul.
11627
11628 * config/rs6000/rs6000.md: Include 8540.md. Change
11629 delayed_compare onto mult_compare for insns generating
11630 multiplication.
11631 (mult_compare, fpsimple, brinc, vecdiv, veccmpsimple, vecfdiv):
11632 New type attribute values.
11633
11634 * config/rs6000/spe.md (*negsf2_gp, *abssf2_gpr): Use type
11635 fpsimple instead of fp.
11636 (*divsf3_gpr): Use type vecfdiv instead of fp.
11637 (spe_evfsabs, spe_evfsnabs, spe_evfsneg): Use type vecsimple
11638 instead of vecfloat.
11639 (spe_evfsdive): Use type vecfdiv instead of vecfloat.
11640 (spe_brinc): Use type brinc instead of veccomplex.
11641 (spe_evaddw, spe_evaddiw): Use type vecsimple instead of
11642 veccomplex.
11643 (spe_evdivws, spe_evdivwu): Use type vecdiv instead of veccomplex.
11644 (*movv2si_internal, *movv1di_internal, *movv4hi_internal,
11645 *movv2sf_internal): Define type attribute values for all
11646 alternatives.
11647 (cmpsfeq_gpr, cmpsfgt_gpr, cmpsflt_gpr): Use type veccmp instead
11648 of fpcompare.
11649 (tstsfeq_gpr, tstsfgt_gpr, tstsflt_gpr): Use type veccmpsimple
11650 instead of fpcompare.
11651
11652 2003-03-26 David Edelsohn <edelsohn@gnu.org>
11653
11654 * config/rs6000/power4.md: Allow delay between dispatch and
11655 function units for simple instructions. Correct store units.
11656 Allow branch to occupy as many dispatch slots as necessary.
11657
11658 2003-03-26 Jakub Jelinek <jakub@redhat.com>
11659
11660 * config/ia64/ia64.c (ia64_expand_op_and_fetch): Fix comment.
11661 (ia64_expand_compare_and_swap): Use always DImode ar.ccv,
11662 zero extend old to it.
11663 * config/ia64/ia64.md (cmpxchg_acq_si): Remove mode from ccv
11664 operand.
11665
11666 2003-03-26 Eric Botcazou <ebotcazou@libertysurf.fr>
11667
11668 PR target/7784
11669 * reload.c (find_reloads_address): Handle
11670 (PLUS (PLUS (REG) (REG)) (CONST_INT)) form for
11671 all base registers.
11672
11673 2003-03-25 Marcelo Abreu <mmabreu@inf.ufrgs.br>
11674
11675 PR other/10203
11676 * version.c: Reference the GCC web site in the URL.
11677
11678 2003-03-26 Alan Modra <amodra@bigpond.net.au>
11679
11680 * c-incpath.c (add_standard_paths): Add both "translated" and
11681 non-translated header paths.
11682
11683 2003-03-25 Loren James Rittle <ljrittle@acm.org>
11684
11685 * doc/install.texi (*-*-freebsd*): Update with known status.
11686
11687 2003-03-21 Jason Merrill <jason@redhat.com>
11688
11689 PR optimization/10171
11690 * unroll.c (unroll_loop): Don't delete the jump at the end unless
11691 we also delete a jump at the beginning.
11692
11693 2003-03-25 Stephane Carrez <stcarrez@nerim.fr>
11694
11695 * doc/contrib.texi (Contributors): Mention self as 68HC11/68HC12
11696 contributor.
11697
11698 Tue Mar 25 20:35:51 CET 2003 Jan Hubicka <jh@suse.cz>
11699
11700 * i386.c (ix86_rtx_costs): For -fpic and x86-64 local symbolic
11701 constants are not expensive.
11702
11703 Mon Mar 24 20:03:03 CET 2003 Jan Hubicka <jh@suse.cz>
11704
11705 PR opt/10056
11706 * cfglayout.c (fixup_reorder_chain): Fix dealing with the conditional
11707 jump jumping to the next instruction.
11708 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
11709
11710 2003-03-25 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11711
11712 * doc/passes.texi (Passes): Properly document that we do not
11713 perform jump2 any longer; remove command-line option -dJ.
11714
11715 2003-03-25 Eric Botcazou <ebotcazou@libertysurf.fr>
11716
11717 PR optimization/8746
11718 * config/i386/i386.md (and promoting splitters): Disable HImode to
11719 SImode promoting when the sign bit matters and is not preserved, or
11720 when TARGET_FAST_PREFIX is true. Disable promoting when optimizing
11721 for size.
11722
11723 2003-03-24 Kazu Hirata <kazu@cs.umass.edu>
11724
11725 * config/h8300/h8300.md (a peephole2): Extend to support loads
11726 in QImode and HImode.
11727
11728 2003-03-24 Stephane Carrez <stcarrez@nerim.fr>
11729
11730 * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Add _call_far and
11731 _return_far
11732 (MULTILIB_OPTIONS): Don't multilib on -mlong-calls.
11733 (MULTILIB_EXCEPTIONS): Likewise.
11734 * config/m68hc11/m68hc11.md ("call"): Support far calls for 68HC11
11735 by calling some board support routine.
11736 ("call_value"): Likewise.
11737 ("*return_void"): Likewise for return.
11738 ("*return_16bit"): Likewise.
11739 ("*return_32bit"): Likewise.
11740 * config/m68hc11/m68hc11.h (ASM_DECLARE_FUNCTION_NAME): Generate .far
11741 for 68HC11 too.
11742 (DWARF2_ADDR_SIZE): Use 4 so that addresses can
11743 * config/m68hc11/m68hc11.c (m68hc11_override_options): Accept
11744 -mlong-calls for 68HC11.
11745 * config/m68hc11/larith.asm (declare_near): New macro.
11746 (__premain, ___negsi2, ___one_cmplsi2, ___ashlsi3): Use it.
11747 (___ashrsi3, ___lshrsi3, ___lshrhi3, ___lshlhi3): Likewise.
11748 (___rotrhi3, ___rotlhi3, ___ashrhi3, ___ashrqi3): Likewise.
11749 (___lshlqi3, __divmodhi4, ___mulqi3, ___mulhi3): Likewise.
11750 (__mulhi32): Likewise.
11751 (ret): Update macro for 68HC11.
11752 (__far_trampoline): Implement for 68HC11.
11753 (__call_a16, __call_a32, __return_void, __return_16): New support
11754 routines for 68HC11 memory bank switching calling support.
11755 (__return_32): Likewise.
11756
11757 2003-03-24 Neil Booth <neil@daikokuya.co.uk>
11758
11759 * toplev.c (independent_decode_option): Don't skip a 'Y' prefix.
11760
11761 2003-03-24 Janis Johnson <janis187@us.ibm.com>
11762
11763 * doc/install.texi (Testing): Mention test result links from build
11764 status pages.
11765
11766 2003-03-24 Mark Mitchell <mark@codesourcery.com>
11767
11768 * function.c (put_var_into_stack): Change bool parameter to int.
11769 (gen_mem_addressof): Likewise.
11770 * rtl.h (gen_mem_addressof): Likewise.
11771 * tree.h (put_var_into_stack): Likewise.
11772 * config/alpha/alpha.c (alpha_gp_save_rtx): Adjust call to
11773 gen_mem_addressof or put_var_into_stack.
11774 * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
11775 * config/ia64/ia64.c (spill_tfmode_operand): Likewise.
11776
11777 2003-03-24 Kazu Hirata <kazu@cs.umass.edu>
11778
11779 * config/h8300/h8300.md (a peephole2): New.
11780
11781 2003-03-24 Jakub Jelinek <jakub@redhat.com>
11782
11783 * dojump.c (do_jump): Handle UNSAVE_EXPR specially.
11784
11785 2003-03-24 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11786
11787 * doc/contrib.texi (Contributors): Update Janis Johnson.
11788
11789 2003-03-23 Eric Botcazou <ebotcazou@libertysurf.fr>
11790
11791 PR target/10072
11792 * combine.c (simplify_if_then_else): Check that the mode
11793 has MODE_INT class before applying the (OP Z (mult COND C2))
11794 transformation.
11795
11796 2003-03-23 Eric Botcazou <ebotcazou@libertysurf.fr>
11797
11798 PR optimization/9414
11799 * config/sparc/sparc.md (widening peepholes): Use
11800 widen_memory_access instead of change_address.
11801
11802 2003-03-23 Mark Mitchell <mark@codesourcery.com>
11803
11804 PR c++/7086
11805 * c-typeck.c (c_mark_addressable): Adjust calls to
11806 put_var_into_stack.
11807 * expr.c (expand_expr): Likewise.
11808 * function.c (put_var_into_stack): Add rescan parameter. Do not
11809 call fixup_var_refs when rescan is false.
11810 (gen_mem_addressof): Likewise.
11811 (assign_parms): Adjust calls to put_var_into_stack.
11812 (setjmp_protect): Likewise.
11813 (setjmp_protect_args): Likewise.
11814 * rtl.h (gen_mem_addressof): Change prototype.
11815 * stmt.c (expand_decl): Adjust calls to put_var_into_stack.
11816 * tree.h (put_var_into_stack): Change prototype.
11817
11818 2003-03-23 Arpad Beszedes <beszedes@cc.u-szeged.hu>
11819
11820 PR middle-end/9967
11821 * builtins.c (expand_builtin_fputs): When optimizing for size,
11822 don't transform fputs into fwrite.
11823
11824 2003-03-23 Glen Nakamura <glen@imodulo.com>
11825
11826 PR c/8224
11827 * fold-const.c (extract_muldiv_1): Don't pass through type conversions
11828 when signedness changes for division or modulus.
11829
11830 2003-03-24 Alan Modra <amodra@bigpond.net.au>
11831
11832 * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_BSS): Remove unnecessary
11833 globalize_label.
11834
11835 2003-03-23 Roger Sayle <roger@eyesopen.com>
11836
11837 PR c/10178
11838 * stmt.c (expand_end_case_type): Check for overflow in range when
11839 determining whether to use a bit-test implementation.
11840
11841 2003-03-23 Richard Henderson <rth@redhat.com>
11842
11843 * cfgcleanup.c (try_optimize_cfg): Allow merging of tablejumps
11844 before flow2.
11845 * cfgrtl.c (try_redirect_by_replacing_jump): Similarly.
11846
11847 2003-03-23 Richard Henderson <rth@redhat.com>
11848
11849 PR opt/10116
11850 * ifcvt.c (find_if_block): Disallow tablejump insns outgoing
11851 from then_bb or else_bb after flow2.
11852
11853 2003-03-23 Zack Weinberg <zack@codesourcery.com>
11854
11855 * configure.in: Check whether it is necessary to link against
11856 libm to use ldexp.
11857 * configure: Regenerate.
11858 * Makefile.in: Add LDEXP_LIB substitution variable.
11859
11860 2003-03-23 Kazu Hirata <kazu@cs.umass.edu>
11861
11862 * config/h8300/h8300.md: Fix comment typos.
11863
11864 2003-03-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11865
11866 * pa.c (output_cbranch): Fix typo in comment.
11867
11868 2003-03-22 Richard Henderson <rth@redhat.com>
11869
11870 * cfgcleanup.c (insns_match_p): Do not do EQUIV substitution
11871 after reload.
11872
11873 2003-03-22 DJ Delorie <dj at redhat dot com>,
11874 Bruce Korb <bkorb at gnu dot org>
11875
11876 * fixinc/inclhack.def (solaris_mutex_init_1): New; Fix
11877 buggy Solaris 2.6 mutex/cond initializers.
11878 (solaris_mutex_init): Rename to solaris_mutex_init_2.
11879 * fixinc/fixincl.x: Regenerate.
11880 * fixinc/tests/base/pthread.h: Update.
11881 * fixinc/fixincl.c(initialize): be explicit about the default case
11882 and indicate verbose level when being very, very verbose.
11883 * fixinc/check.tpl(VERBOSE): provide a means for passing the value in
11884
11885 2003-03-22 Andreas Jaeger <aj@suse.de>
11886
11887 * config/i386/i386.c (ix86_init_machine_status): Return value.
11888
11889 2003-03-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11890
11891 * pa.c (output_cbranch, output_bb, output_bvb): Output nop for
11892 conditional branch to the following instruction. Use next_real_insn
11893 instead of next_active_insn.
11894 (output_dbra, output_movb, jump_in_call_delay): Use next_real_insn
11895 instead of next_active_insn.
11896
11897 2003-03-22 Ulrich Weigand <uweigand@de.ibm.com>
11898
11899 * config/s390/s390.md ("movti", "*movdi_31", "*movdf_31"): Use 'o'
11900 instead of 'm' constraint in forced-split alternatives.
11901 ("*adddi3_31", "*subdi3_31"): Likewise. Also, pass 0 instead of 1 as
11902 VALIDATE_ADDRESS parameter to operand_subword.
11903
11904 2003-03-22 Kazu Hirata <kazu@cs.umass.edu>
11905
11906 * config/h8300/h8300.c (notice_update_cc): Correctly handle
11907 the case where the set destination is STRICT_LOW_PART.
11908
11909 2003-03-22 Svein E. Seldal <Svein.Seldal@solidas.com>
11910
11911 * config/c4x/t-c4x (INSTALL_LIBGCC): Make gcc recognize a c33 as a
11912 c30 instead of a c40 processor.
11913
11914 2003-03-22 Alan Modra <amodra@bigpond.net.au>
11915
11916 * combine.c (simplify_comparison <AND>): Use gen_int_mode. Tidy.
11917
11918 2003-03-21 Zack Weinberg <zack@codesourcery.com>
11919
11920 * c-common.c: Include intl.h.
11921 (shadow_warning): Rewrite to allow better diagnostic translations.
11922 * c-common.h: Update prototype of shadow_warning. Declare sw_kind enum.
11923 * c-decl.c (warn_if_shadowing): Update calls to shadow_warning;
11924 use it throughout.
11925 * Makefile.in (c-common.o): Add intl.h.
11926
11927 2003-03-21 Nathanael Nerode <neroden@gcc.gnu.org>
11928
11929 * config.gcc: Remove 'float_format'.
11930
11931 * fixproto: Define NULL and size_t in generated stdlib.h and
11932 unistd.h. Kill unused required_stdlib_h, required_unistd_h.
11933 Rearrange file generation loop for readability. Generate time.h,
11934 string.h if missing.
11935 * tsystem.h: Include <string.h>, <time.h> unconditionally.
11936 * config.gcc: Blow away POSIX defines.
11937
11938 2003-03-22 Stephane Carrez <stcarrez@nerim.fr>
11939
11940 * config/m68hc11/m68hc11.md ("call_value"): Fix trap check.
11941
11942 2003-03-22 Stephane Carrez <stcarrez@nerim.fr>
11943
11944 * config/m68hc11/m68hc11.h (ASM_DECLARE_FUNCTION_NAME): Fix typo in
11945 writing .interrupt command.
11946 * config/m68hc11/m68hc11.md ("call"): Look at the symbol to see
11947 if it's a far or near function.
11948 ("call_value"): Likewise.
11949 * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Add far and
11950 near attributes.
11951 (m68hc11_handle_fntype_attribute): Accept attributes on methods.
11952 (m68hc11_override_options): Ignore -mlong-calls for 68HC11.
11953 (m68hc11_initial_elimination_offset): Set current_function_far
11954 according to attributes.
11955 (expand_prologue): Likewise.
11956 (trap_handler_symbol): New global to keep track of trap handlers.
11957 (m68hc11_encode_section_info): Mark symbol as far if needed; set
11958 trap symbol.
11959 (m68hc11_is_far_symbol): New function.
11960 (m68hc11_is_trap_symbol): New function.
11961 * config/m68hc11/m68hc11-protos.h (m68hc11_is_far_symbol): Declare.
11962 (m68hc11_is_trap_symbol): Declare.
11963
11964 2003-03-21 Jan Hubicka <jh@suse.cz>
11965
11966 * i386.c (ix86_compute_frame_layout): Recompute fast prologues
11967 only when amount of saved regs changed.
11968 (ix86_init_machine_status): Initialize use_fast_prologue_epilgoue_nregs.
11969 * i386.h (machine_function): New fields use_fast_prologue_epilgoue_nregs.
11970
11971 2003-03-21 Jan Hubicka <jh@suse.cz>
11972
11973 PR inline-asm/7916
11974 * function.c (instantiate_virtual_regs_lossage): New function.
11975 (instantiate_virtual_regs_1): Use it.
11976 (instantiate_virtual_regs): Do not continue in substition when insn has
11977 been deleted.
11978
11979 2003-03-21 Kazu Hirata <kazu@cs.umass.edu>
11980
11981 * combine.c (make_field_assignment): Fix a warning.
11982
11983 2003-03-21 Kazu Hirata <kazu@cs.umass.edu>
11984
11985 * config/h8300/h8300.md (*insv_si_1_n_lshiftrt_16): New.
11986
11987 2003-03-21 Dale Johannesen <dalej@apple.com>
11988
11989 * config/rs6000/rs6000.h (REG_ALLOC_ORDER): Increase
11990 priority for R2 on Darwin.
11991 (HARD_REGNO_MODE_OK): Don't accept R31 for DFmode.
11992
11993 2003-03-21 Kazu Hirata <kazu@cs.umass.edu>
11994
11995 * combine.c (make_field_assignment): Remove unnecessary AND
11996 when storing into zero_extract.
11997
11998 2003-03-21 Zack Weinberg <zack@codesourcery.com>
11999
12000 * aclocal.m4 (gcc_AC_EXAMINE_OBJECT, gcc_AC_C_FLOAT_FORMAT): Delete.
12001 * configure.in: Don't call gcc_AC_C_FLOAT_FORMAT.
12002 * defaults.h: Remove reference to HOST_FLOAT_WORDS_BIG_ENDIAN
12003 in comment.
12004
12005 2003-03-21 DJ Delorie <dj@redhat.com>
12006
12007 * optabs.c (init_integral_libfuncs): Make sure we init at least up
12008 to "long long" size words.
12009
12010 2003-03-21 Ulrich Weigand <uweigand@de.ibm.com>
12011
12012 * config/s390/s390.h: Do not include fixdfdi.h on s390x.
12013 (TARGET_64BIT): Define as compile-time constant when IN_LIBGCC2.
12014 (MIN_UNITS_PER_WORD): Do not define when IN_LIBGCC2.
12015
12016 2003-03-21 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
12017
12018 PR doc-bug/9813
12019 * doc/extend.texi: Move misplaced paragraph about underscores in
12020 variables in macros.
12021
12022 2003-03-21 Eric Botcazou <ebotcazou@libertysurf.fr>
12023 Richard Henderson <rth@redhat.com>
12024
12025 PR optimization/8366
12026 * config/sparc/sparc.h: (SYMBOLIC_CONST): New macro.
12027 (GO_IF_LEGITIMATE_ADDRESS): Use it. Reject the form
12028 PIC+SYMBOLIC_CONST in other modes than Pmode.
12029 (GO_IF_MODE_DEPENDENT_ADDRESS): Use it. Mark
12030 the form PIC+SYMBOLIC_CONST as mode dependent.
12031
12032 2003-03-21 DJ Delorie <dj@redhat.com>
12033
12034 * config/stormy16/stormy16.c (xstormy16_expand_arith): Make
12035 sure we always emit at least one insn.
12036
12037 2003-03-21 Christopher Faylor <cgf@redhat.com>
12038
12039 * config.gcc (i[34567]86-*-cygwin*): Use new common makefile
12040 stub t-cygming. Use common target header cygming.h. Add extra
12041 c_target_obj and cxx_target_obj file. Default cygwin to posix
12042 threading. Enforce i386 as float format.
12043 (i[34567]86-*-mingw*): Use new common makefile stub t-cygming.
12044 Remove cygwin.h as target header. Use common target header
12045 cygming.h Enforce i386 as float format. Correct typo.
12046 * config/i386/cygming.h: New file, containing definitions
12047 common to mingw32 and cygwin.
12048 * config/i386/cygwin.h: Remove definitions common to cygwin and
12049 mingw. Simplify special spec logic. Define "wrappers" around
12050 certain include path defines to accommodate -mno-cygwin.
12051 Remove some #if 0'ed code.
12052 (STANDARD_INCLUDE_DIR) Always define when not cross-compiling.
12053 (LINK_SPEC): Don't use cyg search prefix when -mno-cygwin.
12054 (GCC_DRIVER_HOST_INITIALIZATION): Define as call to mingw_scan.
12055 * config/i386/mingw32.h: Remove definitions common to cygwin and
12056 mingw.
12057 (EXTRA_OS_CPP_BUILTINS): Adjust.
12058 (TARGET_VERSION): Define.
12059 * config/i386/crtdll.h (EXTRA_OS_CPP_BUILTINS): Override
12060 mingw32.h definitions.
12061 (LIBGCC_SPEC): Add libmingwex.a as in mingw32.h.
12062 * config/i386/t-cygwin (EXTRA_GCC_OBJS): Define as cygwin1.o.
12063 Add compilation rules for cygwin1.o cygwin2.o.
12064 * config/i386/cygwin1.c: New file.
12065 * config/i386/cygwin2.c: New file.
12066 * config/i386/t-cygming: New makefile stub.
12067
12068 2003-03-20 Richard Henderson <rth@redhat.com>
12069
12070 * fold-const.c (extract_muldiv_1): Revert changing order of
12071 operands in case MULT_EXPR of 2003-02-16 patch.
12072
12073 2003-03-20 Daniel Berlin <dberlin@dberlin.org>
12074 Merge changes from new-regalloc-branch
12075
12076 From Michael Matz <matz@suse.de>
12077 * df.c (df_ref_record_1): Move init of loc to safe point.
12078 Only recurse on interesting things in parallels.
12079 Handle CLASS_CANNOT_CHANGE_MODE smarter.
12080 (df_uses_record): Ditto.
12081
12082 * df.h (DF_REF_MEM_OK): New enum member, used to mark ref's which
12083 it's already okay to use memory operands in (IE doesn't require
12084 adding another insn or anything).
12085
12086 2003-03-20 Richard Henderson <rth@redhat.com>
12087
12088 PR middle-end/6348
12089 * explow.c (allocate_dynamic_stack_space): Handle STACK_SIZE_MODE
12090 different from word_mode.
12091
12092 2003-03-20 Kazu Hirata <kazu@cs.umass.edu>
12093
12094 * config/h8300/h8300.md (*insv_si_1_n_lshiftrt): Restrict the
12095 source operand to those that can be extracted with bld.
12096
12097 2003-03-20 Richard Earnshaw <rearnsha@arm.com>
12098
12099 PR 10066
12100 * arm.md (UNSPEC_PIC_BASE): New constant.
12101 (pic_add_dot_plus_four): Wrap with unspec.
12102 (pic_add_dot_plus_eight): Likewise.
12103
12104 2003-03-20 Kazu Hirata <kazu@cs.umass.edu>
12105
12106 * config/h8300/h8300.md (*insv_si_1_n): New.
12107 (*insv_si_1_n_lshiftrt): Likewise.
12108
12109 2003-03-20 Roger Sayle <roger@eyesopen.com>
12110
12111 * fold-const.c (fold_mathfn_compare): New function to simplify
12112 comparisons against built-in math functions. Fold comparisons
12113 of sqrt against constants.
12114 (fold): Call fold_mathfn_compare when appropriate.
12115
12116 2003-03-20 Richard Earnshaw <rearnsha@arm.com>
12117
12118 * ifcvt.c (find_if_case_1): If we add a new bb, update the dominance
12119 information.
12120
12121 2003-03-20 Per Bothner <pbothner@apple.com>
12122
12123 Various cleanups to help compile server.
12124
12125 * cppinit.c (cpp_create_reader): Take extra hash_table* argument,
12126 and pass that to _cpp_init_hashtable.
12127 (cpp_read_main_file): Drop hash_table* argument; don't call
12128 _cpp_init_hashtable.
12129 * cpplib.h: Update declarations to match.
12130 * c-opts.c (c_common_init_options): Pass ident_hash to
12131 cpp_create_reader.
12132 (c_common_post_options): Don't pass ident_hash to cpp_read_main_file.
12133 * fix-header.c (read_scan_file): Likewise pass NULL table to
12134 cpp_create_reader rather than cpp_read_main_file.
12135
12136 * cppfiles.c (cpp_rename_file): Generalized and renamed
12137 to cpp_change_file.
12138 * cpplib.h: Update declaration to match.
12139 * c-opts.c (push_command_line_line, finish_options): Change
12140 cpp_rename_file calls to cpp_change_file.
12141
12142 * line-map.c (add_line_map): Allow leaving the outermost file.
12143 Allowing entering an outermost-file after the initial time.
12144
12145 * toplev.c (pop_srcloc): Allow popping from initial file.
12146
12147 2003-03-20 Kazu Hirata <kazu at cs dot umass dot edu>
12148
12149 * fold-const.c (fold): Fold A - (A & B) into ~B & A.
12150
12151 2003-03-20 Kazu Hirata <kazu@cs.umass.edu>
12152
12153 * config/h8300/h8300.md (a peephole2): New.
12154
12155 2003-03-20 Kazu Hirata <kazu@cs.umass.edu>
12156
12157 * config/h8300/h8300.md (*addsi3_and_r_1): New.
12158 (*addsi3_and_not_r_1): Likewise.
12159
12160 2003-03-19 Loren James Rittle <ljrittle@acm.org>
12161
12162 * Makefile.in (STRICT2_WARN): Add @WERROR@.
12163 (GCC_WARN_CFLAGS): Remove $(WERROR).
12164 (fixinc.sh-warn): New.
12165 * ada/Make-lang.in (ada-warn): Add $(WERROR).
12166 * cp/Make-lang.in (cp-warn): Add $(WERROR).
12167 * f/Make-lang.in (f-warn): Add $(WERROR).
12168 * java/Make-lang.in (java-warn): Add $(WERROR).
12169 * treelang/Make-lang.in (treelang-warn): Add $(WERROR).
12170
12171 2003-03-19 Nathanael Nerode <neroden@gcc.gnu.org>
12172
12173 * c-common.h (c_dump_tree), c-dump.c (c_dump_tree),
12174 langhooks-def.h (lhd_tree_dump_dump_tree),
12175 langhooks.c (lhd_tree_dump_dump_tree), langhooks.h (*dump_tree):
12176 Change return type from 'int' to 'bool'. Replace 0 and 1 with
12177 true and false in return statements.
12178
12179 2003-03-19 Kevin Buettner <kevinb@redhat.com>
12180
12181 * dwarf2out.c (DWARF_INITIAL_LENGTH_SIZE): Define.
12182 (DWARF_COMPILE_UNIT_HEADER_SIZE): Take into account
12183 DWARF_INITIAL_LENGTH_SIZE.
12184 (output_compilation_unit_header, output_pubnames, output_aranges)
12185 (output_line_info): Output 0xffffffff escape value for 64-bit
12186 DWARF extension.
12187 * config/mips/iris6.h (DWARF_INITIAL_LENGTH_SIZE): Define.
12188
12189 2003-03-19 Ulrich Weigand <uweigand@de.ibm.com>
12190
12191 * config/s390/s390.c (s390_preferred_reload_class): Do not
12192 force constants to the pool unless necessary.
12193 (s390_decompose_address): Prefer to use pointer as base,
12194 not index register.
12195 * config/s390/s390.md ("*tsthiCCT_only"): Remove '?' from
12196 Q alternative.
12197 ("*movdi_64", "*movsi", "movhi", "movqi_64", "movqi",
12198 "*movdf_64", "*movsf"): Add '?' to Q->Q alternatives.
12199 ("*extractqi", "*extracthi", "*zero_extendhisi2_31",
12200 "*zero_extendqisi2_31", "*zero_extendqihi2_31",
12201 "*adddi3_31", "*subdi3_31"): Do not set "type" attribute.
12202
12203 2003-03-19 Jan Hubicka <jh@suse.cz>
12204
12205 * i386.h (machine_function): New fields use_fast_prologue_epilogue.
12206 * i386.c (use_fast_prologue_epilogue): Remove.
12207 (ix86_frame): New field save_regs-using_mov;
12208 (ix86_compute_frame_layout): Decide on fast prologues;
12209 allocate saved registers in red zone.
12210 (ix86_expand_epilogue, ix86_expand_prolgoues): Obey new parameters.
12211
12212 2003-03-19 Nick Clifton <nickc@redhat.com>
12213
12214 * config/mcore/mcore.h (CPP_SPEC): Remove trailing semi-colon.
12215
12216 2003-03-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12217
12218 PR 10062
12219 * config/pa/pa-hpux.h (TARGET_HPUX_UNWIND_LIBRARY): Redefine.
12220 * pa-protos.h (output_lbranch): New prototype.
12221 * pa.c (compute_frame_size): Change size of the frame marker on the
12222 64-bit ports to 48 bytes.
12223 (pa_output_function_prologue): Document why SAVE_SP is set.
12224 (hppa_expand_prologue): Save previous stack pointer into frame marker
12225 on targets which use the hpux unwind library.
12226 (output_cbranch): Use output_lbranch.
12227 (output_lbranch): New function to output long unconditional branches.
12228 * pa.h (TARGET_HPUX_UNWIND_LIBRARY): Define.
12229 (STACK_POINTER_OFFSET): Update offset for 48-byte frame marker on
12230 64-bit ports.
12231 * pa.md (jump): Use output_lbranch.
12232 (allocate_stack): New expander for dynamic stack allocation.
12233
12234 2003-03-19 Alan Modra <amodra@bigpond.net.au>
12235
12236 * config/rs6000/rs6000.c (rs6000_stack_info): Only require a frame
12237 when debugging on XCOFF targets. Delete "abi" temp.
12238
12239 PR target/10073
12240 * combine.c (force_to_mode <NOT>): Use gen_int_mode.
12241
12242 2003-03-18 Jakub Jelinek <jakub@redhat.com>
12243
12244 * config/s390/s390.c (s390_output_dwarf_dtprel): New.
12245 * config/s390/s390-protos.h (s390_output_dwarf_dtprel): New proto.
12246 * config/s390/s390.h (ASM_OUTPUT_DWARF_DTPREL): Define.
12247
12248 * config/ia64/ia64.c (ia64_output_dwarf_dtprel): New.
12249 * config/ia64/ia64-protos.h (ia64_output_dwarf_dtprel): New proto.
12250 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_DTPREL): Define.
12251
12252 2003-03-18 Geoffrey Keating <geoffk@apple.com>
12253
12254 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't clone
12255 the result of machopic_function_base_name.
12256 * config/darwin.c (machopic_function_base_name): Use a gc-allocated
12257 string rather than a static array.
12258
12259 * Makefile.in (emit-rtl.o): Add gt-emit-rtl.h to dependencies.
12260
12261 * gengtype.c: Include rtl.h.
12262 (enum rtx_code): Don't define.
12263 (rtx_format): Make declaration match rtl.h.
12264 (rtx_next_new): Rename from rtx_next to avoid conflict. Change all
12265 users.
12266 (adjust_field_rtx_def): Describe strings in NOTE_LINE_NUMBER notes.
12267 * Makefile.in (gengtype.o): Update dependencies.
12268
12269 2003-03-18 Andreas Schwab <schwab@suse.de>
12270
12271 * config/m68k/m68k.md (iordi3): Fix setting low half to -1. From
12272 martin@blom.org.
12273
12274 2003-03-18 Geoffrey Keating <geoffk@apple.com>
12275
12276 * function.c (next_block_index): Mark with GTY.
12277
12278 * config/rs6000/rs6000.md (macho_correct_pic): Correct pattern.
12279
12280 2003-03-18 Richard Henderson <rth@redhat.com>
12281
12282 * config/ia64/ia64.md (UNSPECV_SETJMP_RECEIVER): New.
12283 (builtin_setjmp_receiver): Delay call to ia64_reload_gp
12284 until after reload.
12285
12286 2003-03-18 Richard Henderson <rth@redhat.com>
12287
12288 * builtins.c (expand_builtin_unop): New target_mode operand;
12289 use it to convert the result to the correct mode.
12290 (expand_builtin): Update all callers.
12291
12292 2003-03-18 Ulrich Weigand <uweigand@de.ibm.com>
12293
12294 * config/s390/s390.md ("movti", "movhi", "movqi"): Add "type" attribute.
12295
12296 2003-03-18 Jan Hubicka <jh@suse.cz>
12297
12298 * i386.md: Fix previous commit that mistakely applied the patch
12299 twice.
12300
12301 * alias.c (rtx_equal_for_memref_p): Assume that X and Y has been
12302 canonicalized.
12303 (memrefs_conflict_p): Likewise.
12304 (addr_side_effect_eval): Canonicalize the constructed address.
12305
12306 2003-03-18 Jan Hubicka <jh@suse.cz>
12307
12308 * i386.md (cvtts?2si peep2): New.
12309
12310 2003-03-18 Kazu Hirata <kazu@cs.umass.edu>
12311
12312 * config/h8300/h8300.md (*iorsi3_two_qi_zext): New.
12313
12314 2003-03-18 Andreas Schwab <schwab@suse.de>
12315
12316 * dwarf2out.c (output_file_names): Cast size_t to unsigned long
12317 for format.
12318
12319 2003-03-17 Jason Merrill <jason@redhat.com>
12320
12321 PR c++/10091
12322 * expr.c (expand_expr) [ADDR_EXPR]: Disallow taking the address of
12323 an unaligned member of TREE_ADDRESSABLE type.
12324
12325 2003-03-18 Alan Modra <amodra@bigpond.net.au>
12326
12327 * config/rs6000/linux64.h (MASK_PROFILE_KERNEL): Define.
12328 (TARGET_PROFILE_KERNEL): Define.
12329 (SUBTARGET_SWITCHES): Handle -mprofile-kernel.
12330 (PROFILE_BEFORE_PROLOGUE): Don't define.
12331 (PROFILE_KERNEL): Remove hacks.
12332 * config/rs6000/rs6000.c (TARGET_PROFILE_KERNEL): Define default.
12333 (rs6000_stack_info): No need to save lr if just for profiling when
12334 TARGET_PROFILE_KERNEL.
12335 (output_profile_hook): Output nothing when TARGET_PROFILE_KERNEL.
12336 (output_function_profiler): Localize label generation. Emit code
12337 for kernel profiling.
12338
12339 2003-03-17 Kazu Hirata <kazu@cs.umass.edu>
12340
12341 * config/h8300/h8300-protos.h: Add a prototype for
12342 byte_accesses_mergeable_p.
12343 * config/h8300/h8300.c (byte_accesses_mergeable_p): New.
12344 * config/h8300/h8300.md (*iorhi3_two_qi_mem): Likewise.
12345 (a splitter): Likewise.
12346 (*iorsi3_ashift_16_ashift_24): Likewise.
12347 (*iorsi3_ashift_16_ashift_24_mem): Likewise.
12348
12349 2003-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12350
12351 * dwarf2asm.h: Delete obsolete comment.
12352 (dw2_asm_output_data, dw2_asm_output_delta, dw2_asm_output_offset,
12353 dw2_asm_output_pcrel, dw2_asm_output_addr,
12354 dw2_asm_output_addr_rtx, dw2_asm_output_encoded_addr_rtx,
12355 dw2_asm_output_nstring, dw2_asm_output_data_uleb128,
12356 dw2_asm_output_data_sleb128, dw2_asm_output_delta_uleb128,
12357 dw2_asm_output_delta_sleb128): Add ATTRIBUTE_NULL_PRINTF.
12358
12359 2003-03-17 Zack Weinberg <zack@codesourcery.com>
12360
12361 * c-tree.h (struct lang_identifier): Remove error_locus field.
12362 (IDENTIFIER_ERROR_LOCUS): Kill.
12363 (record_function_scope_shadow): New prototype.
12364 * c-typeck.c (build_external_ref): Don't complain if
12365 decl is error_mark_node. When not at file scope, bind the
12366 decl's local value to error_mark_node to suppress further
12367 warnings, instead of setting IDENTIFIER_ERROR_LOCUS.
12368
12369 * c-decl.c (get_function_binding_level): New static function.
12370 (record_function_scope_shadow): New exported function.
12371 (c_make_fname_decl): Use get_function_binding_level.
12372
12373 2003-03-17 Steve Ellcey <sje@cup.hp.com>
12374
12375 * stmt.c (tail_recursion_args): Call promote_mode to set
12376 unsignedp flag correctly before calling convert_move.
12377
12378 2003-03-17 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12379
12380 * loop-unroll.c (decide_peel_completely,
12381 decide_unroll_constant_iterations, decide_unroll_stupid,
12382 decide_unroll_runtime_iterations, decide_peel_simple): Set
12383 loop->has_desc.
12384
12385 2003-03-17 Jan Hubicka <jh@suse.cz>
12386
12387 * ggc-common.c (ggc_mark_roots): Use htab_traverse_noresize.
12388
12389 2003-03-17 Olivier Hainque <hainque@act-europe.fr>
12390
12391 * function.c (assign_parms): For a struct value address passed as
12392 first argument, delay the function's result RTL setup code until
12393 after the emission of parameter conversions.
12394
12395 2003-03-17 Dave Love <fx@gnu.org>
12396 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12397
12398 * config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Define __digital__,
12399 __arch64__ to match Compaq cc.
12400
12401 2003-03-17 Neil Booth <neil@daikokuya.co.uk>
12402
12403 * c-opts.c: Default TARGET_EBCDIC to 0 if not defined.
12404 (c_common_init): Set EBCDIC in cpp options.
12405 * cpplex.c (maybe_read_ucs, cpp_parse_escape): Use EBCDIC option,
12406 not conditional compilation.
12407 * cpplib.h (struct cpp_options): New entry EBCDIC.
12408
12409 2003-03-17 Neil Booth <neil@daikokuya.co.uk>
12410
12411 * fix-header.c (read_scan_file): Need to malloc arguments to add_path.
12412
12413 2003-03-17 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12414
12415 * function.c (thread_prologue_and_epilogue_insns): Set delete_unused
12416 argument to 0 for redirect_jump.
12417
12418 2003-03-16 Mark Mitchell <mark@codesourcery.com>
12419
12420 PR c++/8805
12421 * except.c (eh_region_u_cleanup): Add prev_try.
12422 (expand_eh_region_end_cleanup): Set it.
12423 (reachable_handlers): Use it to skip over cleanup blocks.
12424
12425 2003-03-17 Andreas Jaeger <aj@suse.de>
12426
12427 * Makefile.in (TAGS): Remove obsolete handling of =*.[chy].
12428
12429 2003-03-17 Alan Modra <amodra@bigpond.net.au>
12430
12431 * config/rs6000/linux64.h (TARGET_64BIT): Redefine.
12432 (TARGET_RELOCATABLE, TARGET_EABI, TARGET_PROTOTYPE): Likewise.
12433 (SUBTARGET_SWITCHES, SUBTARGET_OPTIONS): Likewise.
12434 (SUBTARGET_OVERRIDE_OPTIONS, CPP_SYSV_SPEC): Likewise.
12435
12436 2003-03-16 Richard Henderson <rth@redhat.com>
12437
12438 * simplify-rtx (simplify_binary_operation): Don't abort for
12439 SS_PLUS, US_PLUS, SS_MINUS, US_MINUS.
12440
12441 2003-03-16 Richard Henderson <rth@redhat.com>
12442
12443 * config/i386/i386.md (movstrictqi, movstrictqi_1): Check
12444 optimize_size as well.
12445
12446 2003-03-16 Stephane Carrez <stcarrez@nerim.fr>
12447
12448 * config/m68hc11/m68hc11.c (print_operand): Handle 'b' modifier
12449 for D register to specify the low part of it, aka B.
12450 (m68hc11_gen_movhi): Use REG_WAS_0 note and increment or decrement
12451 the register if we are loading 1 or -1 to it; avoid using temp
12452 register when moving X/Y to Y/X.
12453 (m68hc11_gen_movqi): Likewise.
12454 (m68hc11_check_z_replacement): Fix last insn setting for compare case.
12455
12456 2003-03-14 Mark Mitchell <mark@codesourcery.com>
12457
12458 PR optimization/9016
12459 * config/i386/i386.c (ix86_expand_move): Force more CONST_DOUBLEs
12460 into the constant pool.
12461
12462 2003-03-16 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
12463
12464 PR target/9164
12465 * tree.c (get_narrower): For extensions with unchanged bit number,
12466 return the unsignedness of the outer mode.
12467
12468 2003-03-16 Roger Sayle <roger@eyesopen.com>
12469
12470 * c-typeck.c (build_component_ref): Turn "for" into "do .. while"
12471 to avoid "may be used uninitialized" warning on ia64-hpux.
12472 * config/ia64/ia64-c.c: Include "tm_p.h" for function prototypes.
12473
12474 2003-03-16 Andreas Jaeger <aj@suse.de>
12475
12476 * configure.in: Improve check for memcheck.h.
12477 * configure: Regenerated.
12478
12479 2003-03-16 Neil Booth <neil@daikokuya.co.uk>
12480
12481 * doc/cppopts.texi: Remove documentation of -A-.
12482
12483 2003-03-15 Zack Weinberg <zack@codesourcery.com>
12484
12485 * doc/libgcc.texi: Remove @tie.
12486
12487 2003-03-15 Josef Zlomek <zlomekj@suse.cz>
12488
12489 * rtl.h (subrtx_p): Renamed to rtx_referenced_p.
12490 (rtx_pair): Added new element update_label_nuses, renamed to
12491 replace_label_data.
12492 * cfgcleanup.c (outgoing_edges_match, try_crossjump_to_edge): Use
12493 replace_label_data instead of rtx_pair.
12494 * loop.c (load_mems): Likewise.
12495 * rtlanal.c (replace_label): Replace label in pool constants and in
12496 INSN_LIST (in REG_LABEL note).
12497 (subrtx_p): Renamed to rtx_referenced_p.
12498 (subrtx_p_1): Renamed to rtx_referenced_p_1, compare the interior of
12499 LABEL_REF with CODE_LABEL, traverse constants from pool.
12500
12501 2003-03-15 Aldy Hernandez <aldyh@redhat.com>
12502 Zack Weinberg <zack@codesourcery.com>
12503
12504 * Makefile.in (TEXI_GCCINT_FILES): Add libgcc.texi.
12505 * doc/libgcc.texi: New file.
12506 * doc/interface.texi: Delete paragraph about libgcc interface.
12507 * doc/gccint.texi: Add libgcc menu entry and @include libgcc.texi.
12508
12509 2003-03-15 Jason Merrill <jason@redhat.com>
12510
12511 PR debug/9039
12512 * dwarf2out.c (gen_decl_die): Ignore frontend tree codes.
12513
12514 PR debug/6387
12515 * dwarf2out.c (dwarf2out_decl): If we're at -g1, just stick nested
12516 function DIEs at toplevel.
12517 (decls_for_scope): At -g1, don't descend into subblocks.
12518
12519 2003-03-15 Ulrich Weigand <uweigand@de.ibm.com>
12520
12521 * varasm.c (struct rtx_const): Change type of un.addr member
12522 to struct holding an additional 'symbol' member.
12523 (decode_rtx_const): Re-enable optimization to count SYMBOL_REFs
12524 with equal string addresses as equal.
12525 (simplify_subtraction): Adapt to struct rtx_const change.
12526
12527 2003-03-15 Neil Booth <neil@daikokuya.co.uk>
12528
12529 * fix-header.c (read_scan_file): Read main file before handling -D.
12530
12531 2003-03-15 Roger Sayle <roger@eyesopen.com>
12532
12533 * c-cppbuiltin.c (builtin_define_with_value_n): Fix whitespace.
12534 * c-typeck.c (c_tree_expr_nonnegative_p): Likewise.
12535 * cfgbuild.c (find_many_sub_basic_blocks): Likewise.
12536 (find_sub_basic_blocks): Likewise.
12537 * cgraphunit.c (cgraph_expand_functions): Likewise.
12538 * dwarf2out.c (prune_unused_types): Likewise.
12539 * expr.c (store_field): Likewise.
12540 * genextract.c (print_path): Likewise.
12541 * haifa-sched.c (schedule_insn): Likewise.
12542 * lcm.c (compute_antinout_edge): Likewise.
12543 * loop-unroll.c (decide_peel_once_rolling): Likewise.
12544 * ra-colorize.c (ra_colorize_free_all): Likewise.
12545 * ra-debug.c (dump_igraph): Likewise.
12546 (debug_hard_reg_set): Likewise.
12547 * reg-stack.c (reg_to_stack): Likewise.
12548 * rtlanal.c (refers_to_regno_p): Likewise.
12549 * tracer.c (layout_superblocks): Likewise.
12550
12551 2003-03-15 Neil Booth <neil@daikokuya.co.uk>
12552
12553 * fix-header.c (read_scan_file): Fix thinko.
12554
12555 2003-03-15 Glen Nakamura <glen@imodulo.com>
12556
12557 * reload1.c (choose_reload_regs): Use && instead of ||
12558 with REG_CANNOT_CHANGE_MODE_P condition.
12559
12560 2003-03-15 Neil Booth <neil@daikokuya.co.uk>
12561
12562 * Makefile.in: Update.
12563 * c-common.h (cb_register_builtins): Rename c_cpp_builtins.
12564 * c-lex.c (init_c_lex): Register builtins hook is dead.
12565 * c-opts.c (COMMAND_LINE_OPTIONS, missing_arg): Handle -A, -D and -U.
12566 (c_common_decode_option): Don't call cpp_handle_option.
12567 Handle -A, -D and -U.
12568 (handle_deferred_opts): Simplify.
12569 (finish_options): Define builtins and command line macros.
12570 * c-ppoutput.c (init_pp_output): Register builtins hook is dead.
12571 * cppinit.c: Don't include intl.h.
12572 (init_builtins): Rename cpp_init_builtins. No hook to call.
12573 (init_library): Don't need to sort options.
12574 (cpp_create_reader): Don't set pending.
12575 (cpp_destroy): Don't free pending.
12576 (struct pending_option, cl_directive_handler, struct cpp_pending,
12577 APPEND, free_chain, new_pending_directive, parse_option, opt_comp,
12578 cpp_finish_options, COMMAND_LINE_OPTIONS, DEF_OPT, struct cl_option,
12579 cl_options, cpp_handle_option): Remove.
12580 * cpplib.h (struct cpp_pending, register_builtins, cpp_handle_option,
12581 cpp_finish_options): Remove.
12582 (cpp_init_builtins): New.
12583 * fix-header.c (read_scan_file): Update to handle -D. Fix
12584 handling of -I. Replace call to cpp_finish_options.
12585
12586 2003-03-15 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12587
12588 PR optimization/9387
12589 * function.c (thread_prologue_and_epilogue_insns): Use redirect_jump
12590 for conditional returns.
12591
12592 2003-03-14 Jason Merrill <jason@redhat.com>
12593
12594 PR optimization/6871
12595 * varasm.c (assemble_variable): Leave constant zeroes in .rodata.
12596
12597 2003-03-14 Neil Booth <neil@daikokuya.co.uk>
12598
12599 * c-opts.c (finish_options): New.
12600 (COMMAND_LINE_OPTIONS, c_common_decode_option): Add -imacros.
12601 (missing_arg): Handle OPT_include and OPT_imacros.
12602 (c_common_init, c_common_parse_file): Use finish_options.
12603 (handle_deferred_opts): Update.
12604 * cppinit.c (struct cpp_pending): Remove imacros_head and imacros_tail.
12605 (cpp_finish_options): Don't handle -imacros here.
12606 (no_fil): Remove.
12607 (COMMAND_LINE_OPTIONS, cpp_handle_option): Don't handle -imacros.
12608
12609 2003-03-14 Jakub Jelinek <jakub@redhat.com>
12610
12611 * config/rs6000/rs6000.c (rs6000_emit_load_toc_table): Don't call
12612 rs6000_maybe_dead if !fromprolog.
12613
12614 2003-03-14 Neil Booth <neil@daikokuya.co.uk>
12615
12616 * Makefile.in: Update.
12617 * c-common.h (fe_file_change, pp_file_change): New.
12618 * c-lex.c (init_c_lex): Don't set cb_file_change.
12619 (c_common_parse_file): Move to c-opts.c.
12620 (cb_file_change): Rename fe_file_change.
12621 * c-opts.c: Include debug.h.
12622 (warn_unused_macros, include_cursor): New.
12623 (push_command_line_include, cb_file_change): New.
12624 (COMMAND_LINE_OPTIONS): Handle -include.
12625 (c_common_decode_option): Use local warn_unused_macros.
12626 Handle OPT_include.
12627 (c_common_post_options): Set file change callback.
12628 (handle_deferred_opts): Skip -include. Don't free the array.
12629 (c_common_init): Call cpp_finish_options here, and push an
12630 initial -include file.
12631 * c-ppoutput.c (cb_file_change): Rename pp_file_change.
12632 (preprocess_file): Don't call cpp_finish_options.
12633 (init_pp_output): Don't set the file change callback.
12634 (pp_file_change): Return if no line commands or no output.
12635 * cpphash.h (next_include_file, first_unused_line): Remove.
12636 * cppinit.c (include_head, include_tail): Remove.
12637 (cpp_destroy): Don't free -include chain.
12638 (cpp_finish_options): Don't handle -include, or worry about
12639 -Wunused-macros.
12640 (_cpp_maybe_push_include_file): Remove.
12641 (COMMAND_LINE_OPTIONS, cpp_handle_option): Don't handle -include.
12642 * cpplib.c (_cpp_pop_buffer): Don't handle -include.
12643 * cppmacro.c (_cpp_warn_if_unused_macro, _cpp_create_definition):
12644 Used flag is set based upon the state of the warn_unused_macros
12645 flag, and so use of first_unused_line is unnecessary.
12646
12647 2003-03-13 Jan Hubicka <jh@suse.cz>
12648
12649 * cselib.c (clear_table): Do not take argument; always clear just
12650 used slots.
12651 (cselib_process_insn): Update call of clear_table
12652 (cselib_init): Do not call clear_table.
12653 (cselib_finish): Clear table.
12654
12655 * cse.c (count_reg_usage): Do not check side_effects_p.
12656 * rtlanal.c (set_noop_p): Check side_effects_p only when set looks
12657 like noop.
12658 (find_reg_equal_equiv_note): Do not use find_reg_note.
12659
12660 2003-03-14 Richard Henderson <rth@redhat.com>
12661
12662 PR target/9700
12663 * config/alpha/alpha.c (alpha_va_start): Account for
12664 current_function_pretend_args_size in the AP offset.
12665
12666 * config/alpha/alpha.h (SETUP_INCOMING_VARARGS): Move out of line.
12667 (INITIAL_ELIMINATION_OFFSET): Move out of line.
12668 * config/alpha/alpha.c (alpha_setup_incoming_varargs): New.
12669 (alpha_initial_elimination_offset) New.
12670 * config/alpha/alpha-protos.h: Update.
12671
12672 2003-03-14 Jakub Jelinek <jakub@redhat.com>
12673
12674 * stmt.c (expand_start_case): Call emit_queue ().
12675
12676 2003-03-14 Chris Demetriou <cgd@broadcom.com>
12677 Alexandre Oliva <aoliva@redhat.com>
12678
12679 * config/mips/mips.h (FUNCTION_PROFILER): _mcount() doesn't pop 2
12680 words in new abis.
12681
12682 2003-03-14 Eric Botcazou <ebotcazou@libertysurf.fr>
12683
12684 PR optimization/8396
12685 * tree-inline.c (initialize_inlined_parameters): Make sure the value
12686 of read-only constant arguments is passed with the right type.
12687
12688 2003-03-14 Steven Bosscher <steven@gcc.gnu.org>
12689
12690 * doc/extend.texi (Function Names): Make the example compilable.
12691
12692 2003-03-13 David Edelsohn <edelsohn@gnu.org>
12693
12694 * config/rs6000/rs6000.c (processor_target_table): Really allow
12695 GP optional instructions on Power4.
12696
12697 2003-03-13 Roger Sayle <roger@eyesopen.com>
12698
12699 * calls.c (flags_from_decl_or_type): Factor and remove redundant
12700 conditional tests.
12701
12702 2003-03-13 Mike Stump <mrs@apple.com>
12703
12704 * ggc-page.c (struct page_entry): Remove varray.h header.
12705 Add index_by_depth field.
12706 Remove save_in_use_p field.
12707 (struct globals): Add depth_in_use, depth_max, by_depth_in_use,
12708 by_depth_max, by_depth, and save_in_use fields.
12709 (INITIAL_PTE_COUNT): Add.
12710 (save_in_use_p_i): Add.
12711 (save_in_use_p): Add.
12712 (adjust_depth): Add.
12713 (move_ptes_to_front): Add.
12714 (push_depth): Add.
12715 (push_by_depth): Add.
12716 (prefetch): Add.
12717 (free_page): Add support for and use faster data structures.
12718 (ggc_alloc): Likewise.
12719 (init_ggc): Likewise.
12720 (ggc_recalculate_in_use_p): Likewise.
12721 (ggc_pop_context): Likewise.
12722 (clear_marks): Likewise.
12723 (ggc_pch_read): Likewise.
12724 * Makefile.in (ggc-page.o): Remove varray.h.
12725
12726 2003-03-13 Nathanael Nerode <neroden@gcc.gnu.org>
12727
12728 * ChangeLog: Rotated last year's entries to...
12729 * ChangeLog.8: New.
12730
12731 * config/ia64/fde-glibc.c, config/ia64/freebsd.h,
12732 config/ia64/hpux.h, config/ia64/hpux_longdouble.h,
12733 config/ia64/ia64-c.c, config/ia64/ia64-modes.def,
12734 config/ia64/ia64-protos.h, config/ia64/ia64.c,
12735 config/ia64/ia64.h, config/ia64/ia64.md,
12736 config/ia64/itanium1.md, config/ia64/itanium2.md,
12737 config/ia64/quadlib.c, config/ia64/unwind-ia64.c,
12738 config/ia64/unwind-ia64.h: It's GCC, not GNU CC.
12739
12740 2003-03-13 Aldy Hernandez <aldyh@redhat.com>
12741
12742 * config/rs6000/rs6000.c (rs6000_dwarf_register_span):
12743 Differentiate endianness.
12744 (s6000_override_options): Use cpu type instead of TARGET_SPE.
12745
12746 2003-03-13 Nick Clifton <nickc@redhat.com>
12747
12748 * config/arm/arm.c (print_multi_reg): Do not generate a type 2
12749 LDM instructions with writeback enabled.
12750 (output_return_instruction): Likewise.
12751
12752 * config/arm/pe.h (FIXED_REGISTERS): Remove definition.
12753 (CALL_USED_REGISTERS): Remove definition.
12754 (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Define.
12755
12756 2003-03-13 Alan Modra <amodra@bigpond.net.au>
12757
12758 * config/rs6000/rs6000.c (rs6000_flag_pic): Delete.
12759 (rs6000_xcoff_encode_section_info): #ifdef TARGET_XCOFF.
12760 (rs6000_binds_local_p, TARGET_BINDS_LOCAL_P): #if TARGET_MACHO.
12761 (rs6000_override_options): Don't clear flag_pic for ABI_AIX.
12762 (rs6000_legitimize_address): Formatting.
12763 (rs6000_emit_move): Likewise.
12764 (rs6000_return_addr): Test ABI_AIX as well as flag_pic.
12765 (rs6000_emit_prologue <save_LR_around_toc_setup>): Likewise.
12766 (rs6000_elf_select_section): Comment reason for shlib being
12767 set for ABI_AIX.
12768 (rs6000_elf_unique_section): Likewise.
12769 (rs6000_elf_encode_section_info): Test !TARGET_AIX as well as ABI_AIX.
12770 * config/rs6000/rs6000.h (LEGITIMATE_LO_SUM_ADDRESS_P): Test ABI_AIX
12771 as well as flag_pic.
12772 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
12773 (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
12774 * config/rs6000/linux64.h (TARGET_ENCODE_SECTION_INFO): Don't define.
12775
12776 2003-03-13 Richard Henderson <rth@redhat.com>
12777
12778 * emit-rtl.c (try_split): Handle 1-1 splits of call insns properly.
12779
12780 * config/ia64/ia64.c (TARGET_FUNCTION_OK_FOR_SIBCALL): New.
12781 (ia64_gp_save_reg): Remove.
12782 (struct ia64_frame_info): Move to the beginning of the file;
12783 add reg_save_gp.
12784 (ia64_expand_call): Rearrange for new call patterns.
12785 (ia64_reload_gp): New.
12786 (ia64_split_call): New.
12787 (ia64_compute_frame_size): Allocate reg_save_gp.
12788 (ia64_expand_prologue): Save reg_save_gp.
12789 (ia64_expand_epilogue): Don't restore gp.
12790 (ia64_hard_regno_rename_ok): Remove R4 hack.
12791 (ia64_function_ok_for_sibcall): New.
12792 (ia64_output_mi_thunk): Set reload_completed, no_new_pseudos;
12793 call try_split on sibcall pattern.
12794 * config/ia64/ia64-protos.h: Update.
12795 * config/ia64/ia64.md (call_nogp, call_value_nogp, sibcall_nogp):
12796 Rename from nopic versions. Confiscate 2nd argument to call as
12797 a marker.
12798 (call_pic, call_value_pic, sibcall_pic): Remove.
12799 (call_gp, call_value_gp, sibcall_gp): New.
12800 (builtin_setjmp_setup): Remove.
12801 (builtin_setjmp_receiver): Call ia64_reload_gp.
12802
12803 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
12804
12805 * config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
12806 config/dsp16xx/dsp16xx.h, config/dsp16xx/dsp16xx.md: Replace
12807 "GNU CC" with "GCC".
12808
12809 * config/c4x/c4x-c.c, config/c4x/c4x-modes.def,
12810 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
12811 config/c4x/c4x.md, config/c4x/libgcc.S, config/c4x/rtems.h:
12812 GCC, not GNU CC.
12813
12814 * genattrtab.h, hosthooks-def.h, hosthooks.h, langhooks-def.h,
12815 langhooks.h, tree-inline.h: Replace "GNU CC" with "GCC".
12816
12817 * c-pch.c, dummy-conditions.c, genautomata.c, genconditions.c,
12818 langhooks.c, tree-inline.c, unwind-dw2-fde-darwin.c,
12819 unwind-dw2-fde-glibc.c, unwind-libunwind.c, vmsdbgout.c: Replace
12820 "GNU CC" with "GCC".
12821
12822 * config/v850/lib1funcs.asm, config/v850/rtems.h,
12823 config/v850/v850-c.c, config/v850/v850-protos.h,
12824 config/v850/v850.c, config/v850/v850.h, config/v850/v850.md:
12825 GCC, not GNU CC.
12826
12827 * config/vax/bsd.h, config/vax/elf.h, config/vax/netbsd-elf.h,
12828 config/vax/netbsd.h, config/vax/openbsd.h, config/vax/openbsd1.h,
12829 config/vax/ultrix.h, config/vax/vax-protos.h, config/vax/vax.c,
12830 config/vax/vax.h, config/vax/vax.md, config/vax/vaxv.h: GCC, not
12831 GNU CC.
12832
12833 2003-03-12 Benjamin Kosnik <bkoz@redhat.com>
12834
12835 * cpppch.c (cpp_valid_state): Use DL_WARNING_SYSHDR, not DL_WARNING.
12836
12837 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
12838
12839 * fixinc/fixinc.interix: Remove dead code (most of it).
12840 * fixinc/fixinc.dgux: Remove.
12841
12842 * ginclude/float.h, ginclude/iso646.h, ginclude/stdarg.h,
12843 ginclude/stdbool.h, ginclude/stddef.h: GCC, not GNU CC.
12844
12845 2003-03-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12846
12847 * pa.c (pa_init_builtins): Fix warning.
12848
12849 2003-03-12 Steve Ellcey <sje@cup.hp.com>
12850
12851 * config/ia64/ia64.h (ASM_OUTPUT_XDATA_CHAR): Remove.
12852 (ASM_OUTPUT_XDATA_SHORT): Remove.
12853 (ASM_OUTPUT_XDATA_INT): Remove.
12854 (ASM_OUTPUT_XDATA_DOUBLE_INT): Remove.
12855 (ASM_OUTPUT_ADDR_DIFF_ELT): Handled 32 bit address diffs.
12856 (ASM_PREFERRED_EH_DATA_FORMAT): Handle 32 bit EH pointers.
12857 (CASE_VECTOR_MODE): Handle 32 bit pointers in case statement.
12858
12859 2003-03-12 Andrew Lewycky <andrew@mxc.ca>
12860
12861 PR c++/7050
12862 * expr.c (store_expr): Don't attempt to store void-typed trees,
12863 just evaluate them for side effects.
12864
12865 2003-03-12 Neil Booth <neil@daikokuya.co.uk>
12866
12867 * cppfiles.c (cpp_rename_file, cpp_push_include): New.
12868 * cppinit.c (push_include): Move with changes to cppfiles.c.
12869 (cpp_read_main_file): Mark named operators here...
12870 (cpp_finish_options): ...not here. Update.
12871 (_cpp_maybe_push_include_file): Update.
12872 * cpplib.h (cpp_push_include, cpp_rename_file): New.
12873
12874 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
12875
12876 * aclocal.m4: Introduce gcc_GAS_VERSION_GTE_IFELSE,
12877 _gcc_COMPUTE_GAS_VERSION.
12878 * configure.in: Use them.
12879 * configure: Regenerate.
12880
12881 2003-03-12 Bob Wilson <bob.wilson@acm.org>
12882
12883 * config/xtensa/xtensa.md (adddi3): Don't clobber source operand used
12884 to detect carry.
12885 (subdi3): Reorder emitted instructions.
12886
12887 2003-03-12 Andreas Jaeger <aj@suse.de>
12888
12889 * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Remove call to
12890 NETBSD_OS_CPP_BUILTINS_LP64.
12891
12892 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
12893
12894 * Makefile.in: Eliminate all.indirect. Update and clean up comments.
12895 Rearrange. Reorganize.
12896 * configure.in: Rearrange.
12897 * configure: Regenerate.
12898
12899 2003-03-12 Andreas Jaeger <aj@suse.de>
12900
12901 * c-cppbuiltin.c (cb_register_builtins): Define LP64 builtins for
12902 LP64 targets.
12903
12904 * doc/cpp.texi (Common Predefined Macros): Document __LP64__ and
12905 _LP64.
12906
12907 * config/ia64/ia64.h (TARGET_CPU_CPP_BUILTINS): Do not define
12908 _LP64 macros here.
12909 * config/pa/pa.h (TARGET_CPU_CPP_BUILTINS): Likewise.
12910
12911 * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Remove call to
12912 NETBSD_OS_CPP_BUILTINS_LP64.
12913 * config/sh/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Likewise.
12914 * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Likewise.
12915
12916 * config/netbsd.h (NETBSD_OS_CPP_BUILTINS_LP64): Remove.
12917
12918 2003-03-12 Jan Hubicka <jh@suse.cz>
12919
12920 * i386.c (ix86_setup_incoming_varargs): Set stack_alignment_needed to 128.
12921
12922 2003-03-12 Daniel Jacobowitz <drow@mvista.com>
12923
12924 Fix PR target/9797 and PR c/9853.
12925 * stmt.c (expand_decl_init): Call push_temp_slots () and
12926 pop_temp_slots ().
12927
12928 2003-03-12 J"orn Rennecke <joern.rennecke@superh.com>
12929
12930 * sh.c: Include basic-block.h.
12931 (sh_output_mi_thunk, emit_load_ptr): New functions.
12932 (TARGET_ASM_OUTPUT_MI_THUNK, TARGET_ASM_CAN_OUTPUT_MI_THUNK): Redefine.
12933
12934 2003-03-12 Nick Clifton <nickc@redhat.com>
12935
12936 * config/arm/pe.h (FIXED_REGISTERS): Add Maverick registers.
12937 (CALL_USED_REGISTERS): Likewise.
12938 * config/arm/arm.h (FIRST_PSEUDO_REGISTER): Update comment
12939 describing how this value is calculated.
12940
12941 2003-03-12 Hans-Peter Nilsson <hp@bitrange.com>
12942
12943 * configure.in (rlim_t): Define to long if no valid definition
12944 found in sys/resource.h.
12945 * config.in, configure: Regenerate.
12946
12947 2003-03-12 Neil Booth <neil@daikokuya.co.uk>
12948
12949 * config/mcore/mcore-elf.h (CPP_PREDEFINES): Replace with
12950 TARGET_OS_CPP_BUILTINS.
12951 * config/mcore/mcore-pe.h: Similarly.
12952 * config/mcore/mcore.h: Replace CPP_PREDEFINES and part of
12953 CPP_SPEC with TARGET_CPU_CPP_BUILTINS.
12954
12955 2003-03-12 Eric Botcazou <ebotcazou@libertysurf.fr>
12956
12957 PR c/9928
12958 * c-decl.c (duplicate_decls): Discard the initializer of the new decl
12959 only if it is a VAR_DECL.
12960
12961 2003-03-12 Eric Botcazou <ebotcazou@libertysurf.fr>
12962
12963 PR optimization/9888
12964 * config/i386/i386.md (jcc_1): Fix range.
12965 (jcc_2): Likewise.
12966 (jump): LIkewise.
12967 (doloop_end_internal): Likewise.
12968
12969 2003-03-12 Danny Smith <dannysmith@users.sourceforge.net>
12970
12971 * config/i386/winnt.c (DLL_IMPORT_PREFIX): New define.
12972 Use throughout instead of DLL_IMPORT_EXPORT_PREFIX and "e."
12973 (DLL_EXPORT_PREFIX): New define. Use throughout instead of
12974 DLL_IMPORT_EXPORT_PREFIX and "i."
12975 (i386_pe_dllexport_name_p): Here.
12976 (i386_pe_dllimport_name_p): Here.
12977 (i386_pe_mark_dllexport): Here. Remove DLL_IMPORT_PREFIX,
12978 not 9 chars when getting identifier name.
12979 (i386_pe_mark_dllimport): Here.
12980 (i386_pe_encode_section_info): Here. Remove DLL_IMPORT_PREFIX,
12981 not 9 chars when getting identifier name. Correct comment.
12982 (i386_pe_strip_name_encoding): Here. Add comments for different
12983 cases.
12984 (gen_fastcall_suffix): Break down xmalloc() argument to
12985 components.
12986 (gen_stdcall_suffix): Likewise.
12987 Update copyright year.
12988
12989 2003-03-12 Eric Botcazou <ebotcazou@libertysurf.fr>
12990
12991 PR optimization/9888
12992 * config/i386/i386.md (movsi_1): Remove special alternatives
12993 for %eax register.
12994 (movsi_1_nointernunit): Likewise.
12995 (movhi_1): Likewise.
12996 * config/i386/i386.c (memory_address_length): Do not use
12997 short displacement when there is no base.
12998 (ix86_attr_length_address_default): Handle LEA instructions.
12999
13000 2003-03-12 Neil Booth <neil@daikokuya.co.uk>
13001
13002 * c-cppbuiltin.c (builtin_define_std): Make non-static.
13003
13004 2003-03-11 Loren James Rittle <ljrittle@acm.org>
13005
13006 * config/freebsd-spec.h (FBSD_CPP_PREDEFINES): Remove.
13007 (FBSD_TARGET_OS_CPP_BUILTINS): New port-specific macro.
13008 (FBSD_TARGET_CPU_CPP_BUILTINS): New port-specific macro.
13009 * config/freebsd.h (CPP_PREDEFINES): Remove.
13010 (TARGET_OS_CPP_BUILTINS): New.
13011 * config/alpha/freebsd.h: Use overridden FBSD_TARGET_CPU_CPP_BUILTINS
13012 instead of TARGET_OS_CPP_BUILTINS.
13013 * config/sparc/freebsd.h (CPP_PREDEFINES): Remove.
13014
13015 2003-03-11 Geoffrey Keating <geoffk@apple.com>
13016
13017 * c-cppbuiltin.c (builtin_define_std): Add ATTRIBUTE_UNUSED.
13018
13019 2003-03-11 Aldy Hernandez <aldyh@redhat.com>
13020
13021 * config/rs6000/rs6000.c (rs6000_stack_info): Remove
13022 insn_chain_scanned. Use insn_chain_scanned_p in machine_function.
13023
13024 * config/rs6000/rs6000.h (machine_function): Add insn_chain_scanned_p.
13025
13026 2003-03-11 Alexandre Oliva <aoliva@redhat.com>
13027
13028 * toplev.c (independent_decode_option): Return success for --help,
13029 --target-help and --version.
13030
13031 2003-03-11 Alexandre Oliva <aoliva@redhat.com>
13032
13033 * config/mips/linux64.h (DRIVER_SELF_SPECS): Add endian_spec.
13034 Default to -mips3 on -mabi=64. Don't add -mips* flag if -march is
13035 specified.
13036 (SUBTARGET_ASM_SPEC): Remove -mips*-adding code obviated by
13037 DRIVER_SELF_SPECS.
13038 (LINK_SPEC): Let endian options affect the linker emulation name.
13039
13040 2003-03-11 J"orn Rennecke <joern.rennecke@superh.com>
13041
13042 * sh.md (reload_inqi): Fix mode for source in second set.
13043
13044 2003-03-11 Jan Hubicka <jh@suse.cz>
13045
13046 * cselib.c (cselib_invalidate_mem_1): Move too ...
13047 (cselib_invalidate_mem): ... here; use new list
13048 (dummy_val, first_containing_mem): New static variables.
13049 (clear_table): Initialize first_containing_mem.
13050 (discard_useless_values): Compact the containing_mem list.
13051 (add_mem_for_addr): Add to the list.
13052 * cselib.h (cselib_val): Add next_containing_mem.
13053
13054 2003-03-11 Aldy Hernandez <aldyh@redhat.com>
13055
13056 * config/rs6000/rs6000.c (rs6000_override_options): Disable string
13057 instructions for e500.
13058
13059 2003-03-11 Neil Booth <neil@daikokuya.co.uk>
13060
13061 * Makefile.in: Update.
13062 * c-cppbuiltin.c: Include tm_p.h.
13063
13064 2003-03-11 Aldy Hernandez <aldyh@redhat.com>
13065
13066 * doc/tm.texi (Frame Registers): Document DWARF_REG_TO_UNWIND_COLUMN.
13067
13068 * unwind-dw2.c (DWARF_REG_TO_UNWIND_COLUMN): Define.
13069 (_Unwind_GetGR): Use DWARF_REG_TO_UNWIND_COLUMN.
13070 (_Unwind_SetGR): Same.
13071 (_Unwind_GetGRPtr): New.
13072 (_Unwind_SetGRPtr): New.
13073 (uw_update_context_1): Use accesor functions instead of accessing
13074 context->reg[] directly.
13075 (uw_install_context_1): Same.
13076 (execute_cfa_program): Same.
13077 (__frame_state_for): Same.
13078
13079 * config/rs6000/rs6000.c (spe_synthesize_frame_save): Use 1200 as
13080 the synthetic register offset.
13081
13082 * config/rs6000/rs6000.h (DWARF_REG_TO_UNWIND_COLUMN): New.
13083
13084 2003-03-11 Hans-Peter Nilsson <hp@axis.com>
13085
13086 * config/cris/cris.md: Remove lingering EGCS reference.
13087 ("*extopqihi_side_biap"): For HI operation, match
13088 cris_additive_operand_extend_operator, not
13089 cris_operand_extend_operator. Adjust condition.
13090 ("*extopqihi_side", "*extopqihi"): Ditto.
13091 ("*extopqisi_side_biap"): Correct operand numbers in condition.
13092 ("*extophisi_side_biap", "*extopqisi_swap_side_biap"): Ditto.
13093 ("*extophisi_swap_side_biap", "*extopqisi_swap"): Ditto.
13094 ("*extophisi_swap"): Ditto.
13095 ("*extopqihi_swap_side_biap"): For HI operation, match a simple
13096 PLUS, not cris_operand_extend_operator. Adjust condition and
13097 output template.
13098 ("*extopqihi_swap_side", "*extopqihi_swap"): Ditto.
13099 * config/cris/cris.h (PREDICATE_CODES): Add
13100 cris_additive_operand_extend_operator.
13101 * config/cris/cris.c (cris_additive_operand_extend_operator):
13102 New predicate.
13103
13104 2003-03-11 Hartmut Penner <hpenner@de.ibm.com>
13105
13106 * df.c (read_modify_subreg_p): Change from static to global.
13107 * df.h (read_modify_subreg_p): Add prototype.
13108 * sched-deps.c (sched_analyze_1): Generate true dependency for
13109 strict_low_part, certain subregs and zero/sign_extract.
13110
13111 2003-03-11 Neil Booth <neil@daikokuya.co.uk>
13112
13113 * Makefile.in: Update.
13114 * c-common.c: Don't include real.h or except.h.
13115 (REGISTER_PREFIX): Remove.
13116 (builtin_define_std, builtin_define_with_value,
13117 builtin_define_with_int_value, builtin_define_with_hex_fp_value,
13118 builtin_define_type_max, builtin_define_type_precision,
13119 builtin_define_float_constants): Move to c-cppbuiltin.c.
13120 (c_stddef_cpp_builtins): New.
13121 * c-common.h (builtin_define_with_value, c_stddef_cpp_builtins): New.
13122 * c-cppbuiltin.c: New, extracted from c-common.c.
13123 (define__GNUC__): New.
13124 * cppspec.c (lang_specific_driver): Remove support of -no-gcc.
13125 * gcc.c: Remove support of %v1, %v2 and %v3 specs.
13126 (cpp_unique_options): Don't support no-gcc.
13127 (do_spec_1): Remove support of version specs.
13128 * doc/invoke.texi: Remove documentation of %v1, %v2 and %v3.
13129 * doc/passes.texi: Update.
13130 * doc/tm.texi: Update.
13131
13132 2003-03-10 Aldy Hernandez <aldyh@redhat.com>
13133
13134 * dwarf2out.c (multiple_reg_loc_descriptor): Fix thinko.
13135
13136 2003-03-10 Andrew Pinski <apinski@apple.com>
13137
13138 * config/darwin.c (machopic_function_base_name): If dynamic-no-pic
13139 is on should not get here.
13140 (machopic_indirect_data_reference): If dynamic-no-pic is on just
13141 generate high/low parts of the address.
13142 (machopic_legitimize_pic_address): Change MACHOPIC_PURE to
13143 MACHOPIC_INDIRECT. Dynamic-no-pic uses 0 as the pic base. Generate
13144 symbol and labels with a new reg. Dynamic-no-pic does not have a
13145 pic_offset_table_rtx.
13146 (machopic_select_section): Change references of flag_pic to
13147 MACHOPIC_INDIRECT.
13148 (machopic_asm_out_destructor): Likewise.
13149 * config/darwin.h (ASM_DECLARE_UNRESOLVED_REFERENCE): Change
13150 reference of flag_pic to MACHOPIC_INDIRECT.
13151 (MACHO_DYNAMIC_NO_PIC_P): Define as TARGET_DYNAMIC_NO_PIC.
13152 (MACHOPIC_INDIRECT): Is also true when dynamic-no-pic is on.
13153 (MACHOPIC_JUST_INDIRECT): Is also true when dynamic-no-pic is on.
13154 (MACHOPIC_PURE): Is not pure when dynamic-no-pic is on.
13155 * config/i386/darwin.h (MASK_MACHO_DYNAMIC_NO_PIC): Define as
13156 0 for right now as dynamic-no-pic is not implemented on Darwin/ia32.
13157 * config/rs6000/darwin.h (MASK_MACHO_DYNAMIC_NO_PIC): Define.
13158 (TARGET_DYNAMIC_NO_PIC): Define.
13159 (SUBTARGET_SWITCHES): Define, have sub-target switches for
13160 dynamic-no-pic.
13161 (SUBTARGET_OVERRIDE_OPTIONS): Move check for -fpic from
13162 rs6000_override_options to here. Dynamic-no-pic overrides
13163 pic.
13164 (CC1_SPEC): Change from not static then pic to not static and not
13165 dynamic-no-pic then pic.
13166 * config/rs6000/rs6000.c (rs6000_override_options): Move the
13167 check for -fpic and DARWIN_ABI to config/rs6000/darwin.h
13168 (rs6000_legitimize_reload_address): Add case for loading floating in
13169 dynamic-no-pic.
13170 (rs6000_emit_move): Add case for dynamic-no-pic. Change reference
13171 of flag_pic to MACHOPIC_INDIRECT.
13172 (secondary_reload_class): Conditional change the reference of
13173 flag_pic to MACHOPIC_INDIRECT.
13174 (rs6000_output_mi_thunk): Change reference of flag_pic to
13175 MACHOPIC_INDIRECT.
13176 (output_profile_hook): Likewise.
13177 (machopic_output_stub): Non-pure (dynamic-no-pic) is now supported.
13178 * config/rs6000/rs6000.md (movdf_low): Add the case for
13179 MACHO_DYNAMIC_NO_PIC_P.
13180 (call): Change references for flag_pic in TARGET_MACHO to
13181 MACHOPIC_INDIRECT.
13182 (SUBTARGET_OVERRIDE_OPTIONS): Add case where -fpic is on and
13183 -mdynamic-no-pic is on. Also move case for -fpic from rs6000.c.
13184 * doc/invoke.texi (-mdynamic-no-pic): Document.
13185
13186 2003-03-10 Devang Patel <dpatel@apple.com>
13187
13188 PR c++/9394
13189 * gcc.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
13190 (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove.
13191 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Add.
13192 (DEFAULT_WORD_SWITCH_TAKES_ARG): Add.
13193 * cppspec.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
13194 (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove.
13195
13196 2003-03-10 Steven Bosscher <s.bosscher@student.tudelft.nl>
13197
13198 PR optimization/7189
13199 * toplev.c (rest_of_compilation): Move
13200 check_function_return_warnings up to just after
13201 delete_unreachable_blocks.
13202
13203 2003-03-10 Stephane Carrez <stcarrez@nerim.fr>
13204
13205 * config/m68hc11/m68hc11.h (HARD_REGNO_RENAME_OK): Define.
13206 * config/m68hc11/m68hc11-protos.h (m68hc11_hard_regno_rename_ok):
13207 Declare.
13208 * config/m68hc11/m68hc11.c (m68hc11_hard_regno_rename_ok): New function
13209 for reg rename optimization to avoid using Z and Y registers.
13210
13211 2003-03-10 Stephane Carrez <stcarrez@nerim.fr>
13212
13213 * config/m68hc11/m68hc11.md ("*addhi3_68hc12"): Accept any constant
13214 when adding to X and Y since leax/leay are fast.
13215 ("*addhi3"): Accept 'I' constraint when adding to address register.
13216 ("rotlhi3"): Operand 1 must be a register_operand.
13217 (peephole2): New peephole to optimize some adds.
13218 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_P): Use 'I' constraint
13219 to represent -2 .. 2 small integer range.
13220
13221 2003-03-10 Stephane Carrez <stcarrez@nerim.fr>
13222
13223 * config/m68hc11/m68hc11.c (m68hc11_gen_rotate): Set carry before
13224 each 16-bit rotation.
13225
13226 2003-03-10 Zack Weinberg <zack@codesourcery.com>
13227
13228 * c-opts.c (add_prefixed_path): Don't use concat. When
13229 prefixing with cpp_GCC_INCLUDE_DIR, copy only the first
13230 cpp_GCC_INCLUDE_DIR_len characters.
13231
13232 2003-03-10 Segher Boessenkool <segher@koffie.nl>
13233
13234 * testsuite/gcc.dg/altivec-9.c: New file.
13235
13236 * config/rs6000/rs6000.c (altivec_frame_fixup): Remove.
13237 (rs6000_emit_prologue): Use rs6000_frame_related instead.
13238
13239 2003-03-10 Aldy Hernandez <aldyh@redhat.com>
13240
13241 * config/rs6000/spe.h: Define __ev64_*64__ to use single element
13242 vectors.
13243 (__ev_convert_u64): Remove macro. Define as inline.
13244 (__ev_convert_s64): Same.
13245
13246 2003-03-10 Aldy Hernandez <aldyh@redhat.com>
13247
13248 * config/rs6000/rs6000.h (DWARF_FRAME_REGISTERS): Define.
13249 (rs6000_stack_t): Add spe_64bit_regs_used.
13250
13251 * config/rs6000/rs6000.c (rs6000_stack_info): Calculate
13252 spe_64bit_regs_used, and use it to determine the size of the
13253 frame.
13254 (spe_func_has_64bit_regs_p): New.
13255 (spe_synthesize_frame_save): New.
13256 (rs6000_frame_related): Handle SPE synthetic registers.
13257 (rs6000_emit_prologue): Only save in 64-bits if the function used
13258 any registers in 64-bit mode.
13259 (rs6000_emit_epilogue): Same, but for restore.
13260
13261 2003-03-10 Richard Earnshaw <rearnsha@arm.com>
13262
13263 * arm.h (enum floating_point_type): Delete. Replace with...
13264 (enum fputype): ... new.
13265 (FPUTYPE_DEFAULT): Renamed from FP_DEFAULT. Values reworked.
13266 * linux-elf.h (FPUTYPE_DEFAULT): Likewise.
13267 * arm.md (attr fpu): Reworked for new underlying enum values.
13268 * arm.c (arm_fpu_arch): Now enum fputype.
13269 (arm_fpu_tune): Renamed from arm_fpu. Now enum fputype.
13270 (arm_override_options, arm_output_epilogue, arm_expand_prologue):
13271 Update uses of arm_fpu_arch and arm_fpu_tune.
13272
13273 2003-03-10 Josef Zlomek <zlomekj@suse.cz>
13274
13275 * cfgcleanup.c (outgoing_edges_match): Compare the jump tables.
13276 (try_crossjump_to_edge): Replace refereces to one jump table by
13277 references to identical jump table.
13278 * loop.c (load_mems): Moved setting the JUMP_LABEL to replace_label.
13279 (replace_label): Moved to rtlanal.c.
13280 (struct rtx_pair): Moved to rtl.h.
13281 * rtl.h (struct rtx_pair): Moved from loop.c.
13282 (replace_label): New extern function.
13283 (subrtx_p): New extern function.
13284 (tablejump_p): New extern function.
13285 * rtlanal.c (replace_label): Moved from loop.c.
13286 (subrtx_p_1): New static function.
13287 (subrtx_p): New function.
13288 (tablejump_p): New function.
13289
13290 2003-03-10 Jan Hubicka <jh@suse.cz>
13291
13292 * cfgcleanup.c (try_optimize_cfg): Fix thinko in previous patch.
13293
13294 * cfgcleanup.c (merge_blocks): Return where to iterate next.
13295 (try_optimize_cfg): Use return value of merge_blocks
13296
13297 2003-03-10 Michael Matz <matz@suse.de>
13298
13299 * cfg.c (unchecked_make_edge): New.
13300 (cached_make_edge): Use it.
13301 * basic-block.h (unchecked_make_edge): Declare.
13302 * cfglayout.c (cfg_layout_duplicate_bb): Use it.
13303
13304 2003-03-10 Richard Earnshaw <rearnsha@arm.com>
13305
13306 * fpa.md: New file. Move all patterns relating to FPA co-processor
13307 to here...
13308 * arm.md: ... from here.
13309 (cirrus.md, fpa.md): Include at end of description.
13310 (divsf3, divdf3, modsf3, movdf3, sqrtsf2, sqrtdf2): New expands.
13311 (pic_load_addr_based): Remove register constraint from expander.
13312 (seq, sne, sgt, sle, slt, sge, sgeu, sleu, sgtu, sltu, sunordered)
13313 (sordered, sungt, sunle, sunge, sunlt): Likewise.
13314 (eh_epilogue, tablejump): Likewise.
13315
13316 2003-03-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13317
13318 * tree.c (substitute_in_expr, case 'e'): Only make recursive call
13319 on operands if it has a PLACEHOLDER_EXPR.
13320
13321 2003-03-09 David Edelsohn <edelsohn@gnu.org>
13322 Mostafa Hagog
13323
13324 * config/rs6000/rs6000.md (movsi_update1): Add TARGET_UPDATE final
13325 condition.
13326
13327 2003-03-09 Neil Booth <neil@daikokuya.co.uk>
13328
13329 * config/frv/frv.h: Use TARGET_CPU_CPP_BUILTINS, not CPP_PREDEFINES.
13330 * config/ip2k/ip2k.h: Similarly.
13331 * config/m32r/m32r.h: Similarly.
13332 * config/m68hc11/m68hc11.h: Similarly.
13333 * config/mn10200/mn10200.h: Similarly.
13334 * config/mn10300/mn10300.h: Similarly.
13335 * config/pdp11/pdp11.h: Similarly.
13336 * config/v850/v850.h: Similarly.
13337 * config/rs6000/vxworks.h: Similarly for TARGET_OS_CPP_BUILTINS.
13338 * config/v850/retms.h: Similarly for TARGET_OS_CPP_BUILTINS.
13339 * config/mips/iris3.h: Remove #if 0 block.
13340
13341 2003-03-09 Roger Sayle <roger@eyesopen.com>
13342 Joern Rennecke <joern.rennecke@superh.com>
13343
13344 * gcc.c (do_spec_1) ['{']: Revert 2003-02-24 patch. Don't handle
13345 pending argument upon return from handle_braces here.
13346 (do_spec_2): Instead handle it upon return from do_spec_1 here.
13347
13348 2003-03-09 Roger Sayle <roger@eyesopen.com>
13349 Joern Rennecke <joern.rennecke@superh.com>
13350
13351 * gcc.c (do_spec_1) ['{']: Revert 2003-02-24 patch. Don't handle
13352 pending argument upon return from handle_braces here.
13353 (do_spec_2): Instead handle it upon return from do_spec_1 here.
13354
13355 2003-03-09 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
13356
13357 * varasm.c (make_decl_one_only): Use declare_weak().
13358
13359 2003-03-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13360
13361 PR middle-end/9986
13362 * c-common.c (c_common_nodes_and_builtins): Initialize target builtins
13363 after the common builtins.
13364 * pa-hpux.h (DONT_HAVE_FPUTC_UNLOCKED): Define.
13365 * pa.c (TARGET_INIT_BUILTINS): Define.
13366 (pa_init_builtins): New function.
13367
13368 * pa.md (call, call_value, sibcall, sibcall_value): When sufficient
13369 space has been allocated for the outgoing arguments, set the arg
13370 pointer for a call emitted after virtuals have been instantiated
13371 using the stack pointer offset, otherwise abort.
13372
13373 2003-03-09 DJ Delorie <dj@redhat.com>
13374
13375 * config/stormy16/stormy16.h (DWARF_LINE_MIN_INSTR_LENGTH): Revert.
13376
13377 2003-03-09 Richard Earnshaw <rearnsha@arm.com>
13378
13379 * arm.md (fix_truncsfsi2, fix_truncdfsi2, arm_fix_truncsfsi2)
13380 (arm_fix_truncdfsi2): Add missing fix in floating point mode before
13381 conversion to integer.
13382 * cirrus.md (cirrus_truncsfsi2, cirrus_truncdfsi2): Likewise.
13383
13384 2003-03-09 Roger Sayle <roger@eyesopen.com>
13385
13386 * builtins.def: Fix typo and improve grammar.
13387 * loop-unroll.c (decide_peel_completely): Tidy log message.
13388
13389 2003-03-09 Kazu Hirata <kazu@cs.umass.edu>
13390
13391 * config/h8300/h8300.md (*tstsi_upper_bit): New.
13392 (*iorsi3_e2f): Likewise.
13393
13394 2003-03-08 Kazu Hirata <kazu@cs.umass.edu>
13395
13396 * config/h8300/h8300.c (h8300_and_costs): Return the number of
13397 assembly instructions needed.
13398 (h8300_shift_costs): Likewise.
13399
13400 2003-03-09 Hans-Peter Nilsson <hp@bitrange.com>
13401
13402 * config/cris/aout.h (ENDFILE_SPEC): Undef.
13403
13404 * optabs.c (gen_move_insn): Move logic for synthesizing MODE_CC
13405 moves from here ...
13406 * expr.c (emit_move_insn_1): ... to here.
13407
13408 * config/cris/aout.h (CRIS_CPP_SUBTARGET_SPEC): Move -D__AOUT__ to...
13409 (TARGET_OS_CPP_BUILTINS): New macro.
13410 * config/cris/cris.h (CRIS_CPP_SUBTARGET_SPEC): Move -D__ELF__ to...
13411 (TARGET_OS_CPP_BUILTINS): New macro.
13412 (CPP_PREDEFINES): Don't define. Move old definitions and...
13413 (CPP_SPEC): ...move -D__CRIS_ABI_version=2 to...
13414 (TARGET_CPU_CPP_BUILTINS): New macro.
13415 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Move constant
13416 definitions and the optional __PIC__, __pic__ and
13417 __NO_UNDERSCORES__ definitions to...
13418 (TARGET_OS_CPP_BUILTINS): New macro.
13419
13420 * flags.h (flag_leading_underscore): Declare.
13421
13422 * c-opts.c (c_common_post_options): On fopen failure, return
13423 false, not NULL.
13424
13425 2003-03-08 Hans-Peter Nilsson <hp@bitrange.com>
13426
13427 * config/cris/cris_abi_symbol.c: #include tconfig.h and tm.h, not
13428 config.h.
13429 * config/cris/cris.h (HAVE_GAS_HIDDEN): Don't define here.
13430 * config/cris/aout.h (HAVE_GAS_HIDDEN): Undef.
13431
13432 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
13433
13434 * config/sh/rtemself.h (TARGET_OS_CPP_BUILTINS): Use instead of
13435 CPP_PREDEFINES.
13436 * config/sh/rtems.h (TARGET_OS_CPP_BUILTINS): Use instead of
13437 CPP_PREDEFINES.
13438
13439 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
13440
13441 * c-common.h (c_common_init, c_common_post_options): Update.
13442 * c-objc-common.c (c_objc_common_init): Update for new prototype.
13443 * c-opts.c (saved_lineno): New.
13444 (c_common_post_options, c_common_init): Update prototypes,
13445 move call to cpp_read_main_file from latter to former.
13446 * c-tree.h (c_ojbc_common_init): Update.
13447 * langhooks-def.h (lhd_post_options): New.
13448 (LANG_HOOKS_INIT, LANG_HOOKS_POST_OPTIONS): Update.
13449 * langhooks.c (lhd_post_options): New.
13450 * langhooks.h (struct lang_hooks): Update post_options and init hooks.
13451 * toplev.c (no_backend): New.
13452 (process_options): Call post_options hook and set main_input_filename
13453 and input_filename here.
13454 (lang_dependent_init, do_compile): post_options hook moved to
13455 process_options.
13456 * objc/objc-act.c (objc_init): Update prototype.
13457 * objc/objc-act.h (objc_init): Update prototype.
13458
13459 2003-03-08 Roger Sayle <roger@eyesopen.com>
13460
13461 * emit-rtl.c (gen_lowpart): Don't attempt to load a part of
13462 a complex or vector type, using a load in the original mode.
13463
13464 2003-03-08 Jan Hubicka <jh@suse.cz>
13465
13466 * Makefile.in (cgraph.o): Depend on gt-cgraph.h and varray.h.
13467 * gt-cgraph.h: New GC file.
13468 * cgraph.c (known_fns): New static variable.
13469 (cgraph_node): Add the decl into varray.
13470
13471 2003-03-08 Hans-Peter Nilsson <hp@bitrange.com>
13472
13473 * config/mmix/mmix.md ("*movcc_expanded"): Add missing alternatives.
13474
13475 2003-03-08 Richard Earnshaw <rearnsha@arm.com>
13476
13477 * arm.c (fpa_rhs_operand, fpa_add_operand, const_double_rtx_ok_for_fpa)
13478 (neg_const_double_ok_for_fpa, output_mov_long_double_fpa_from_arm)
13479 (output_mov_long_double_arm_from_fpa, output_mov_double_fpa_from_arm)
13480 (output_mov_double_arm_from_fpa): Renamed to use fpa instead of fpu.
13481 All callers changed.
13482 * arm.md, arm.h, arm-protos.h: Updated.
13483
13484 * arm.h (enum reg_class FPA_REGS): Renamed from FPU_REGS.
13485 (CLASS_MAX_NREGS, REGISTER_MOVE_COST, REG_CLASS_FROM_LETTER): Updated.
13486 * arm.c (arm_regno_class, f_register_operand): Updated.
13487
13488 2003-03-08 Hans-Peter Nilsson <hp@bitrange.com>
13489
13490 * config/cris/cris.h: Remove EGCS references.
13491 (CPP_SPEC): Remove "-$".
13492 (INIT_CUMULATIVE_ARGS): Adjust parameter name to FNDECL.
13493
13494 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
13495
13496 * config/stormy16/stormy16.h (TARGET_CPU_CPP_BUILTINS): Use in
13497 preference to CPP_PREDEFINES.
13498
13499 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
13500
13501 * cppinit.c (cpp_finish_options): Set first_unused_line to -1.
13502
13503 2003-03-08 Kazu Hirata <kazu@cs.umass.edu>
13504
13505 * config/h8300/h8300.md (*extzv_16_8): New.
13506
13507 2003-03-08 Jan Hubicka <jh@suse.cz>
13508
13509 * c-decl.c: (finish_function): Update call of tree_inlinable_function_p.
13510 * cgraph.h: (cgraph_local_info): Add can_inline_once
13511 (cgraph_global_info): Add inline_once.
13512 (cgraph_node): Add previous.
13513 (cgraph_remove_node): New.
13514 * cgraphunit.c (cgraph_mark_functions_to_inline_once): New static
13515 function.
13516 (cgraph_optimize): Call it.
13517 (cgraph_finalize_function): Set inlinable flags.
13518 (cgraph_finalize_compilation_unit): Actually remove the reclaimed nodes.
13519 (cgraph_mark_functions_to_output): Use new inlining heuristics flags.
13520 (cgraph_expand_function): Likewise.
13521 * cgraph.c
13522 (cgraph_node): Put nodes into doubly linked chain.
13523 (cgraph_remove_node): New function.
13524 * flags.h (flag_inline_functions_called_once): Declare.
13525 * tree-inline.c: Include cgraph.h
13526 (inlinable_functions_p): Add extra argument to bypass limits.
13527 (expand_call_inline): Obey cgraph flag.
13528 * tree-inline.h (tree_inlinable_function_p): Update prototype.
13529
13530 2003-03-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
13531
13532 * gcse.c (bypass_block, bypass_conditional_jumps): Do not create
13533 irreducible loops.
13534
13535 * loop-unroll.c (unroll_loop_runtime_iterations): Update irreducible
13536 loops info correctly.
13537
13538 2003-03-08 Eric Botcazou <ebotcazou@libertysurf.fr>
13539
13540 PR middle-end/7796
13541 * unroll.c (calculate_giv_inc): Handle constants being
13542 loaded with LSHIFTRT.
13543
13544 2003-03-07 David Edelsohn <edelsohn@gnu.org>
13545
13546 * config/rs6000/rs6000.c (processor_target_table): Do not disable
13547 GP optional instructions on Power3, Power4, 620, and 630.
13548
13549 2003-03-07 Kazu Hirata <kazu@cs.umass.edu>
13550
13551 * calls.c: Fix comment formatting.
13552 * cfgloopanal.c: Likewise.
13553 * cfgloopmanip.c: Likewise.
13554 * combine.c: Likewise.
13555 * dwarf2out.c: Likewise.
13556 * ggc-common.c: Likewise.
13557 * langhooks.c: Likewise.
13558 * loop-unroll.c: Likewise.
13559 * loop.c: Likewise.
13560 * ra-build.c: Likewise.
13561 * sbitmap.c: Likewise.
13562 * toplev.c: Likewise.
13563
13564 2003-03-07 James E Wilson <wilson@tuliptree.org>
13565
13566 * config/sh/sh.h (HARD_REGNO_NREGS): Round up the XD register count.
13567
13568 2003-03-07 Geoffrey Keating <geoffk@apple.com>
13569
13570 * objc/lang-specs.h (objective-c-header): Use .gch not .pch;
13571 support -no-integrated-cpp.
13572
13573 * c-pch.c (get_ident): Use c_language_kind and flag_objc rather
13574 than langhooks.name.
13575
13576 2003-03-07 Michael Matz <matz@suse.de>
13577
13578 * df.h (enum df_ref_flags.DF_REF_STRIPPED): New.
13579 (DF_FOR_REGALLOC): New.
13580 * df.c (df_ref_record): Set DF_REF_STRIPPED.
13581 (read_modify_subreg_p): Simplify.
13582 (df_def_record_1, df_uses_record): Set DF_REF_MODE_CHANGE more often.
13583 Use DF_FOR_REGALLOC.
13584 * ra.h (struct web): New member subreg_stripped.
13585 (invalid_mode_change_regs): Declare.
13586 * ra.c (invalid_mode_change_regs): New.
13587 (init_ra): Initialize it.
13588 * ra-build.c (init_one_web_common, remember_web_was_spilled): Use it.
13589 Use CANNOT_CHANGE_MODE_CLASS as ifdef guard.
13590 (reinit_one_web, parts_to_web_1): Deal with subreg_stripped.
13591 * ra-colorize.c (colorize_one_web): Use invalid_mode_change_regs.
13592 Use CANNOT_CHANGE_MODE_CLASS as ifdef guard.
13593
13594 2003-03-07 Richard Earnshaw <rearnsha@arm.com>
13595
13596 * arm.md (addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, negsf2)
13597 (negdf2, abssi2, abssf2, absdf2, floatsisf2, floatsidf2)
13598 (fix_truncsfsi2, fix_truncdfsi2, truncdfsf2): Moved back into main
13599 machine description file from ...
13600 * cirrus.md: ... here.
13601
13602 2003-03-06 Kazu Hirata <kazu@cs.umass.edu>
13603
13604 * config/h8300/h8300.md (a peephole2): Don't use
13605 reg_overlap_mentioned_p.
13606
13607 2003-03-06 Geoffrey Keating <geoffk@apple.com>
13608
13609 * c-pch.c: Include langhooks.h.
13610 (IDENT_LENGTH): New.
13611 (get_ident): New.
13612 (pch_ident): Delete.
13613 (pch_init): Use get_ident, IDENT_LENGTH.
13614 (c_common_valid_pch): Likewise. Also, use actual language
13615 in warning message.
13616 * Makefile.in (c-pch.o): Add langhooks.h to dependencies.
13617
13618 * objc/config-lang.in (gtfiles): Add objc-act.c. Remove duplicate
13619 c-parse.in.
13620 * objc/Make-lang.in (objc/objc-act.o): Add dependency on
13621 gt-objc-objc-act.h.
13622 (gt-objc-objc-act.h): New rule.
13623 * objc/lang-specs.h: Support PCH.
13624 * objc/objc-act.c: Include gt-objc-objc-act.h.
13625 (objc_add_static_instance): Move num_static_inst out, mark for PCH.
13626 (build_selector_reference_decl): Move idx out, mark for PCH.
13627 (build_class_reference_decl): Likewise.
13628 (build_objc_string_decl): Move *_idx out, mark for PCH.
13629 (build_tmp_function_decl): Move xxx out, mark for PCH.
13630
13631 2003-03-06 Dale Johannesen <dalej@apple.com>
13632
13633 * config/rs6000/rs6000.c (rs6000_binds_local_p): Consider
13634 global functions for inlining on Darwin.
13635
13636 2003-03-06 Vladimir Makarov <vmakarov@redhat.com>
13637
13638 * haifa-sched.c (schedule_block): Don't call reorder when sorting
13639 is prohibited.
13640
13641 2003-03-06 Neil Booth <neil@daikokuya.co.uk>
13642
13643 * Makefile.in (c-ppoutput.o): Update.
13644 * c-common.h (init_pp_output): New.
13645 (preprocess_file): Update.
13646 * c-lex.c (init_c_lex): Move mbchar initialization to cpplib.
13647 Register builtins.
13648 * c-opts.c (c_common_init): Call init_pp_output if preprocessing.
13649 Make call to cpp_read_main_file common to whether preprocessing
13650 or not. Don't register builtins.
13651 * c-ppoutput.c: Include c-pragma.h.
13652 (setup_callbacks): Rename init_pp_output.
13653 (preprocess_file): No longer setup callbacks or call
13654 cpp_read_main_file.
13655 * cpphash.h (_cpp_init_mbchar): New.
13656 * cppinit.c (init_library): Call _cpp_init_mbchar.
13657 * cpplex.c (_cpp_init_mbchar): New.
13658
13659 2003-03-06 Roger Sayle <roger@eyesopen.com>
13660
13661 * emit-rtl.c (gen_lowpart): When requesting the low-part of a
13662 MEM, try loading the MEM into a register and taking the low-part
13663 of that, to help CSE see the use of the MEM in its true mode.
13664
13665 2003-03-05 Tom Tromey <tromey@redhat.com>
13666
13667 * config/stormy16/stormy16.h (DWARF_LINE_MIN_INSTR_LENGTH):
13668 Define.
13669
13670 2003-03-05 Nick Clifton <nickc@cambridge.redhat.com>
13671
13672 * config/stormy16/stormy16.md ("*eqbranchsi"): Remove '+' on
13673 operand 2.
13674 ("*ineqbranchsi"): Likewise.
13675
13676 2003-03-05 Andrew Haley <aph@cambridge.redhat.com>
13677
13678 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Delete
13679 mem_fake_push_rtx. Instead construct a SEQUENCE to show the
13680 register store followed by a stack increment.
13681
13682 2003-03-05 Chris Moller <cmoller@redhat.com>
13683
13684 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): added a term
13685 to inhibit saving CARRY_REGS.
13686
13687 * config/stormy16/stormy16.c (xs_hi_general_operand):
13688 added predicate to detect and error-out on out-of-range
13689 const_ints for movhi.
13690 * config/stormy16/stormy16.md (movhi): use
13691 xs_hi_general_operand.
13692
13693 * config/stormy16/stormy16.c (xstormy16_expand_prologue):
13694 added a check for local vbl size overflow.
13695 * config/stormy16/stormy16.c (xs_hi_nonmemory_operand):
13696 added predicate to detect and error-out on out-of-range
13697 const_ints for addhi and subhi.
13698 * config/stormy16/stormy16.md (addhi3, addchi4, addchi5,
13699 subhi3, subchi4, subchi5): used xs_hi_nonmemory_operand.
13700
13701 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
13702 add a term to accept PRE_MODIFY addresses.
13703 * config/stormy16/stormy16.c (xstormy16_expand_move):
13704 add code to expand PRE_MODIFY addresses to an add followed
13705 by a move.
13706
13707 2003-03-06 Jason Merrill <jason@redhat.com>
13708
13709 * tree-inline.c (inlinable_function_p): Revert earlier change
13710 pending investigation.
13711
13712 2003-03-06 Kazu Hirata <kazu@cs.umass.edu>
13713
13714 * config/h8300/h8300.md (a new peephole2): New.
13715
13716 2003-03-06 Jan Hubicka <jh@suse.cz>
13717
13718 * cgraph.c (cgraph_node): Do not confuse nested functions and methods.
13719
13720 2003-03-06 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
13721
13722 * dwarf2out.c (size_of_die): Compute size of external reference to
13723 die correctly.
13724
13725 2003-03-06 Hans-Peter Nilsson <hp@bitrange.com>
13726
13727 * config/mmix/mmix.md ("*movcc_expanded"): New pattern.
13728 ("movcc", "movcc_uns", "movcc_fp", "movcc_fpeq", "movcc_fun"): New
13729 expanders.
13730
13731 2003-03-05 Roger Sayle <roger@eyesopen.com>
13732
13733 * expr.h (lang_expand_expr): Delete obsolete prototype.
13734
13735 2003-03-05 Kazu Hirata <kazu@cs.umass.edu>
13736
13737 * emit-rtl.c (gen_highpart_mode): Fix a comment typo.
13738
13739 2003-03-05 Kazu Hirata <kazu@cs.umass.edu>
13740
13741 * config/h8300/h8300.md (a peephole2): Generalize to
13742 accept a memory operand.
13743
13744 2003-03-05 Olivier Hainque <hainque@act-europe.fr>
13745
13746 * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Add '+'.
13747 * config/alpha/alpha.c (print_operand, case '+'): New.
13748 * config/alpha/alpha.md (call_osf_1_noreturn): Document and use.
13749 (call_value_osf_1_noreturn): Likewise.
13750
13751 2003-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13752
13753 * stmt.c (fixup_gotos): Change meaning of DONT_JUMP_IN.
13754 (expand_end_bindings): Likewise.
13755
13756 2003-03-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13757
13758 * pa.md (return_external_pic): Add !TARGET_PA_20 to constraint.
13759 (epilogue): Don't generate return_external_pic when emitting PA 2.0
13760 code.
13761
13762 2003-03-05 Aldy Hernandez <aldyh@redhat.com>
13763
13764 * doc/tm.texi: Document TARGET_DWARF_REGISTER_SPAN.
13765
13766 * config/rs6000/rs6000.c (rs6000_dwarf_register_span): New.
13767
13768 * hooks.c (hook_rtx_rtx_null): New.
13769
13770 * hooks.h (hook_rtx_rtx_null): Protoize.
13771
13772 * target-def.h (TARGET_DWARF_REGISTER_SPAN): New macro.
13773 (TARGET_INITIALIZER): Add TARGET_DWARF_REGISTER_SPAN.
13774
13775 * target.h (struct gcc_target): Add dwarf_register_span.
13776
13777 * dwarf2out.c (multiple_reg_loc_descriptor): New.
13778 (one_reg_loc_descriptor): New.
13779 (reg_loc_descriptor): Add support for values that span more than
13780 one register.
13781
13782 2003-03-05 Jan Hubicka <jh@suse.cz>
13783
13784 * Makefile.in (calls.o, toplev.o alias.o): Depend on cgraph.h
13785 * alias.c: Include cgraph.h
13786 (mark_constant_function): Use cgraph_rtl_info.
13787 * calls.c: Include cgraph.h
13788 (flags_from_decl_or_type): Use cgraph_rtl_info to find pure and const
13789 calls.
13790 (expand_call): Use cgraph_rtl_info to set preferred stack boundary.
13791 * cgraph.c (cgraph_rtl_info): New function.
13792 * cgraph.h (cgraph_rtl_info): Declare
13793 (cgraph_rtl_info): Likewise.
13794 * function.h (struct function): Add recursive_call_emit.
13795 * toplev.c: Include cgraph.h.
13796 (rest_of_compilation): Set preferred_incoming_stack_boundary.
13797
13798 2003-03-05 Kazu Hirata <kazu@cs.umass.edu>
13799
13800 * config/h8300/h8300.c (output_simode_bld): Clear the
13801 destination first if possible.
13802 * config/h8300/h8300.md (extzv_1_r_h8300hs): Add an
13803 alternative.
13804 (extzv_1_r_inv_h8300hs): Likewise.
13805
13806 2003-03-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
13807
13808 * basic-block.h (EDGE_IRREDUCIBLE_LOOP, EDGE_ALL_FLAGS): New.
13809 * cfg.c (dump_edge_info): Add EDGE_IRREDUCIBLE_LOOP flag dump.
13810 * cfgloop.c (flow_loop_free): Made global.
13811 (establish_preds): New static function.
13812 (flow_loop_tree_node_add): Handle subloops of added loop correctly.
13813 (get_loop_exit_edges): New.
13814 (verify_loop_structure): Verify EDGE_IRREDUCIBLE_LOOP flags.
13815 * cfgloop.h (flow_loop_free, get_loop_exit_edges, unloop): Declare.
13816 * cfgloopanal.c (mark_irreducible_loops): Mark edges in irreducible
13817 loops.
13818 * cfgloopmanip.c (loop_delete_branch_edge): Allow to test for
13819 removability of an edge.
13820 (fix_irreducible_loops): New static function.
13821 (find_path, remove_path): Add ability to remove enclosing loops.
13822 (unloop): New.
13823 (copy_bbs, duplicate_loop_to_header_edge): Use EDGE_IRREDUCIBLE_LOOP
13824 flags.
13825 * cfgrtl.c (verify_flow_info): Handle EDGE_IRREDUCIBLE_LOOP flag.
13826 * loop-unroll.c (peel_loops_completely): Do not duplicate loop if
13827 not neccessary.
13828 (decide_peel_completely, peel_loops_completely): Allow complete peeling
13829 of non-duplicable once rolling loops.
13830 * loop-unswitch.c (unswitch_loop): Update EDGE_IRREDUCIBLE_LOOP flags.
13831
13832 2003-03-05 J"orn Rennecke <joern.rennecke@superh.com>
13833
13834 * sh.h (OVERRIDE_OPTIONS): For TARGET_SHMEDIA, the minimum value
13835 for align_jumps is 4.
13836
13837 (SECONDARY_INPUT_RELOAD_CLASS): If reloading a PLUS into FPUL,
13838 use GENERAL_REGS.
13839
13840 2003-03-05 Stephane Carrez <stcarrez@nerim.fr>
13841
13842 * config/m68hc11/m68hc11.h (PAD_VARARGS_DOWN): Define and return
13843 according to va_arg type.
13844 (EXPAND_BUILTIN_VA_ARG): Remove.
13845 * config/m68hc11/m68hc11.c (m68hc11_va_arg): Remove.
13846 * config/m68hc11/m68hc11-protos.h (m68hc11_va_arg): Remove.
13847
13848 2003-03-05 David Edelsohn <edelsohn@gnu.org>
13849
13850 * config/rs6000/rs6000.c (rs6000_variable_issue): Remove unnecessary
13851 else clauses.
13852
13853 2003-03-05 Michael Matz <matz@suse.de>
13854
13855 * i386/i386.c (ix86_save_reg): Also test
13856 current_function_uses_const_pool.
13857
13858 2003-03-05 Michael Matz <matz@suse.de>
13859
13860 * unwind.h: Add the GPL exception.
13861 * Makefile.in (USER_H): Add unwind.h.
13862
13863 2003-03-05 Eric Botcazou <ebotcazou@libertysurf.fr>
13864
13865 PR c/9799
13866 * c-typeck.c (push_init_level): Add sanity check.
13867
13868 2003-03-05 Jan Hubicka <jh@suse.cz>
13869
13870 * toplev.c (rest_of_compilation): Deffer RTL compilation only when
13871 RTL inlining is done.
13872
13873 * cgraphunit.c (cgraph_mark_local_functions): New local function.
13874 (cgraph_optimize): Mark local functions.
13875 * i386-protos.h (init_cumulative_args): Update prototype.
13876 * i386.c (init_cumulative_args): Use register passing convention for
13877 local functions.
13878
13879 * cgraph.c (cgraph_global_info_ready): New global variable
13880 (cgraph_local_info, cgraph_global_info): New functions.
13881 * cgraph.h (struct cgraph_local_info, cgraph_global_info): New
13882 structures.
13883 (cgraph_local_info, cgraph_global_info, cgraph_global_info_ready):
13884 Declare.
13885 * cgraphunit.c (cgraph_finalize_function): Set inline_many.
13886 (cgraph_mark_functions_to_output): Use inline_many.
13887 (cgraph_expand_function): Free DECL_SAVED_TREE uncondtionally.
13888 (cgraph_expand_functions): Expand inline functions last.
13889 (cgraph_optimize): Do not emit uneeded functions.
13890
13891 2003-03-04 Steve Ellcey <sje@cup.hp.com>
13892
13893 * expr.c (convert_modes): Check for legal hard register.
13894
13895 2003-03-04 Tom Tromey <tromey@redhat.com>
13896
13897 * doc/sourcebuild.texi (Front End Directory): Document tags.
13898 * configure: Rebuilt.
13899 * configure.in (target_list): Added tags.
13900 * Makefile.in (TAGS): Depend on lang.clean. Include subdirectory
13901 TAGS files by reference.
13902 * objc/Make-lang.in (objc.tags): New target.
13903
13904 2003-03-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
13905
13906 * gcov-io.h (gcov_save_position, gcov_reserve_length, gcov_resync,
13907 gcov_skip, gcov_skip_string, gcov_write_unsigned, gcov_write_counter,
13908 gcov_write_string, gcov_read_unsigned, gcov_read_counter,
13909 gcov_read_string, gcov_write_length): Modified to enable reading/
13910 writing of whole .da file just once.
13911 (da_file_open, da_file_close, da_file_eof, da_file_error,
13912 da_file_position, da_file_seek, da_file_write, da_file_read): New
13913 functions.
13914 (actual_da_file, actual_da_file_position, actual_da_file_length,
13915 actual_da_file_buffer, actual_da_file_buffer_size): New static
13916 functions.
13917 * libgcov.c (gcov_exit): Modified to read/write the whole .da file at
13918 just once.
13919
13920
13921 2003-03-04 Andreas Schwab <schwab@suse.de>
13922
13923 * config/m68k/m68k.c (m68k_output_function_prologue): Fix CFA
13924 offset without frame pointer.
13925
13926 2003-03-04 Steve Ellcey <sje@cup.hp.com>
13927
13928 * expr.c (expand_expr): Call promote_mode to set unsignedp.
13929
13930 2003-03-04 Daniel Jacobowitz <drow@mvista.com>
13931
13932 * configure.in: Don't always define TARGET_SYSTEM_ROOT.
13933 * configure: Regenerated.
13934 * gcc.c: Check whether TARGET_SYSTEM_ROOT is defined.
13935
13936 2003-03-04 Andreas Jaeger <aj@suse.de>
13937
13938 * configure.in: Check for <memcheck.h>.
13939 * configure: Regenerated.
13940
13941 * config.in: Define HAVE_MEMCHECK_H.
13942
13943 * ggc-common.c: Use <memcheck.h> if available instead of
13944 <valgrind.h>.
13945 * ggc-page.c: Likewise.
13946 * cppfiles.c: Likewise.
13947
13948 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
13949
13950 * config/h8300/h8300.md (*extzv_8_8): Fix cc and lengths.
13951
13952 2003-03-04 Eric Botcazou <ebotcazou@libertysurf.fr>
13953
13954 PR c/9262
13955 * c-typeck.c (do_case): Attach the first case label to the SWITCH_BODY.
13956 (c_finish_case): Rechain the next statements to the SWITCH_STMT.
13957
13958 2003-03-04 Jan Hubicka <jh@suse.cz>
13959
13960 * doc/invoke.texi: Document that unit-at-a-time is enabled for -O3
13961 * toplev.c (parse_options_and_default_flags): Enable flag_unit_at_a_time
13962 for -O3.
13963
13964 2003-03-04 Nathanael Nerode <neroden@gcc.gnu.org>
13965
13966 * configure.in: Delete three unused variables. Move a variable
13967 definition closer to its use. Simplify use_collect2 logic. Start to
13968 organize. Simplify tests for in-tree gas and ld.
13969 * configure: Regenerate.
13970
13971 2003-03-04 Neil Booth <neil@daikokuya.co.uk>
13972
13973 * Makefile.in: Update.
13974 * c-common.c (flag_no_line_commands, flag_no_output,
13975 flag_dump_macros, flag_dump_includes): New.
13976 * c-common.h (flag_no_line_commands, flag_no_output,
13977 flag_dump_macros, flag_dump_includes, preprocess_file): New.
13978 (init_c_lex): Update prototype.
13979 * c-lex.c (init_c_lex): Update prototype; move some code to
13980 c_common_init.
13981 * c-opts.c (preprocess_file): Subsume into c_common_init.
13982 (c_common_decode_option): Update flags.
13983 (c_common_init): Move code from preprocess_file and init_c_lex.
13984 (sanitize_cpp_opts): Update.
13985 * c-ppoutput.c: New, cppmain.c almost verbatim.
13986 * cpphash.h (struct printer): Remove.
13987 (struct cpp_reader): Remove print.
13988 * cpplib.h (dump_none, dump_only, dump_names, dump_definitions,
13989 cpp_preprocess_file): Remove.
13990 (struct cpp_options): Remove no_output, no_line_commands, dump_macros
13991 and dump_includes.
13992 * cppmain.c: Remove.
13993 * doc/passes.texi: Update.
13994
13995 2003-03-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13996
13997 * function.c (STACK_ALIGNMENT_NEEDED): New macro. Default to 1.
13998 (assign_stack_local_1): Perform overall stack alignment only when
13999 STACK_ALIGNMENT_NEEDED is nonzero.
14000 * doc/tm.texi (STACK_ALIGNMENT_NEEDED): Document.
14001
14002 * pa.c (compute_frame_size): Rename fsize to size. Account for
14003 alignment to a word boundary before general register save block. Only
14004 account for double-word alignment before floating point register save
14005 block if one or more are saved. Don't allocate space for %r3 when
14006 frame pointer is needed.
14007 (hppa_expand_prologue): Include alignment to word boundary in local
14008 frame size.
14009 * pa.h (STARTING_FRAME_OFFSET): Define to 8 on both 32 and 64-bit ports.
14010 (STACK_ALIGNMENT_NEEDED): Define.
14011
14012 2003-03-04 Kevin Buettner <kevinb@redhat.com>
14013
14014 * dwarf2out.c (rtl_for_decl_location): Don't return NULL_RTX for
14015 global register variables.
14016
14017 2003-03-04 Alexandre Oliva <aoliva@redhat.com>
14018
14019 * reload.c (reload_adjust_reg_for_mode): New function.
14020 (subst_reloads): Call it.
14021 (operands_match_p): Adjust registers using HARD_REGNO_NREGS.
14022 * reload.h (reload_adjust_reg_for_mode): Declare.
14023 * reload1.c (emit_input_reload_insns, emit_output_reload_insns):
14024 Call it.
14025
14026 2003-03-03 James E Wilson <wilson@tuliptree.org>
14027
14028 * optabs.c (add_equal_note): Delete SUBREG_REG use.
14029 Fixes PR c/7872.
14030
14031 2003-03-03 Kazu Hirata <kazu@cs.umass.edu>
14032
14033 * config/h8300/h8300.md (*ixorsi3_ashift_16): New.
14034 (*ixorsi3_lshiftrt_16): New.
14035 (*iorsi3_ashift_16): Remove.
14036
14037 2003-03-03 Kazu Hirata <kazu@cs.umass.edu>
14038
14039 * config/h8300/h8300.md (*extzv_8_8): Use '?' to simplify the
14040 pattern.
14041
14042 2003-03-03 Geoffrey Keating <geoffk@apple.com>
14043
14044 * doc/install.texi (Specific): Update entry for powerpc-darwin.
14045
14046 2003-03-03 Richard Henderson <rth@redhat.com>
14047
14048 * config/ia64/ia64.h (HAVE_AS_LTOFFX_LDXMOV_RELOCS): Default to 0.
14049
14050 2003-03-03 David Edelsohn <edelsohn@gnu.org>
14051
14052 * config/rs6000/rs6000.c (rs6000_multipass_dfa_lookahead): Delete.
14053 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Delete.
14054 (rs6000_variable_issue): Do not return negative value.
14055 (rs6000_issue_rate): Uniformly set issue rate to 1 for first
14056 scheduling pass.
14057
14058 2003-03-03 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
14059
14060 * dwarf2out.c (dwarf2out_finish): Swap order of break_out_includes and
14061 prune_unused_types calls.
14062
14063 2003-03-03 Jason Merrill <jason@redhat.com>
14064
14065 * tree-inline.c (find_builtin_longjmp_call): Save and restore
14066 lineno and input_filename.
14067 (find_alloca_call): Likewise.
14068 (inlinable_function_p): Run the langhook earlier.
14069
14070 * calls.c (compute_argument_addresses): Give the new MEMs a
14071 minimum alignment of PARM_BOUNDARY.
14072
14073 2003-03-03 J"orn Rennecke <joern.rennecke@superh.com>
14074
14075 * config/sh/sh.h (EXTRA_SPECS): Add subtarget_asm_relax_spec and
14076 subtarget_asm_isa_spec.
14077 (SUBTARGET_ASM_RELAX_SPEC, SUBTARGET_ASM_ISA_SPEC): Define.
14078 (ASM_SPEC): Define as SH_ASM_SPEC.
14079 (SH_ASM_SPEC): New; take the role of ASM_SPEC, but safe from svr4.h.
14080 Use subtarget_asm_relax_spec and subtarget_asm_isa_spec.
14081 * config/sh/elf.h (ASM_SPEC): Use SH_ASM_SPEC.
14082 (SUBTARGET_ASM_ISA_SPEC): Undef / define.
14083
14084 * sh.h (OVERRIDE_OPTIONS): Set default values for align_loops
14085 and align_jumps if not set.
14086 Force align_jumps to be at least 2.
14087 When relaxing, force align_functions to be at least the maximum of
14088 align_loops, align_jumps and 4.
14089 * sh.c (find_barrier, barrier_align): Honour align_jumps_log.
14090 (sh_loop_align): Honour align_loops_log.
14091
14092 * sh.md (length attribute): Use prev_nonnote_insn instead of PREV_INSN
14093 to check for indirect_jump_scratch.
14094 (indirect_jump_scratch): Add second set.
14095 * sh.c (output_far_jump): Use prev_nonnote_insn instead of PREV_INSN
14096 when looking for indirect_jump_scratch.
14097 Extract scratch register taking new structure of indirect_jump_scratch
14098 into account.
14099 (gen_block_redirect): Set INSN_SCOPE for indirect_jump_scratch.
14100
14101 2003-03-03 Jan Hubicka <jh@suse.cz>
14102
14103 * calls.c (rtx_for_function_call): Take the address as an argument
14104 (expand_call): Do not modify the expression.
14105
14106 * toplev.c (rest_of_compilation): Avoid cfg_cleanup calls when not
14107 optimizing.
14108
14109 2003-03-03 Kazu Hirata <kazu@cs.umass.edu>
14110
14111 * config/h8300/h8300.md (*ixorsi3_zext_hi): Restrict to
14112 TARGET_H8300H and TARGET_H8300S.
14113
14114 2003-03-03 Kazu Hirata <kazu@cs.umass.edu>
14115
14116 * config/h8300/h8300.md (a peephole2): New.
14117
14118 2003-03-03 Kazu Hirata <kazu@cs.umass.edu>
14119
14120 * config/h8300/h8300.md (*extzv_8_8): Use shorter code when
14121 operands[0] and operands[1] are different.
14122
14123 2003-03-03 Kazu Hirata <kazu@cs.umass.edu>
14124
14125 * reload1.c (reload_cse_move2add): Remove variable success.
14126
14127 2003-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14128
14129 * ggc-common.c (ggc_rlimit_bound): Cast RLIM_INFINITY to avoid
14130 warnings.
14131
14132 2003-03-02 Richard Henderson <rth@redhat.com>
14133
14134 * configure.in (HAVE_AS_LTOFFX_LDXMOV_RELOCS): New ia64 test.
14135 * config.in, configure: Rebuild.
14136 * config/ia64/ia64.c (ia64_ld_address_bypass_p): Accept lo_sum.
14137 * config/ia64/ia64.md (load_symptr): Use high/lo_sum for the
14138 paired ldtoffx and ldxmov annotations.
14139 (load_symptr_internal1): Remove.
14140 (load_symptr_high, load_symptr_low): New.
14141
14142 2003-03-02 Neil Booth <neil@daikokuya.co.uk>
14143
14144 * c-incpath.c (add_path): Fix sysp assignment.
14145
14146 2003-03-02 Kurt Garloff <garloff@suse.de>
14147
14148 * params.def: Introduce parameter max-inline-insns-rtl for
14149 a separate limit for the RTL inliner.
14150 * params.h: Likewise.
14151 * integrate.c (function_cannot_inline_p): Use it.
14152 * toplev.c (decode_f_option): Set multiple parameters
14153 controlling inlining with -finline-limit.
14154 * params.def: Fix orthographic and typographic errors.
14155 * doc/invoke.texi: Document parameters controlling inlining
14156 and the way -finline-limit sets multiple of them.
14157
14158 * tree.h (struct tree_decl): Introduce inlined_function_flag,
14159 recording whether the function became eligible for inlining
14160 by a compiler flag rather than the declaration.
14161 Provide DID_INLINE_FUNC macro to access it.
14162 * c-decl.c (grokdeclarator): Set DID_INLINE_FUNC.
14163 * cp/decl.c (grokfndecl): Likewise.
14164 * toplev.c (rest_of_compilation): Likewise.
14165 * cp/optimize (maybe_clone_body): Copy DID_INLINE_FUNC.
14166 * print-tree.c (print_node): Report it.
14167 * params.def: Introduce new max-inline-insns-auto limit.
14168 * params.h: Likewise.
14169 * tree-inline.c (inlinable_function_p): Apply it to functions
14170 with DID_INLINE_FUNC set.
14171 * toplev.c (decode_f_option): Initialize it from -finline-limit
14172 value.
14173 * doc/invoke.texi: Document new parameter.
14174
14175 2003-03-02 Geoffrey Keating <geoffk@apple.com>
14176
14177 * fix-header.c (read_scan_file): Don't reference simplify_path.
14178
14179 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
14180
14181 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't enable
14182 min/max instructions by default as may result in reload errors.
14183
14184 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
14185
14186 * config/m68hc11/m68hc11.md ("mulqi3"): Allow address register to
14187 avoid reload problems; define split for it.
14188
14189 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
14190
14191 * config/m68hc11/m68hc11.c (m68hc11_shift_operator): New function.
14192 * config/m68hc11/m68hc11-protos.h (m68hc11_shift_operator): Declare.
14193 * config/m68hc11/m68hc11.h (PREDICATE_CODES): Register.
14194 * config/m68hc11/m68hc11.md ("rotrhi3", "rotlhi3"): New patterns for
14195 rotatert and rotate.
14196 ("rotrhi3_const", "rotlhi3_const"): Rename of old 'rotrhi3' insns.
14197 ("*rotrhi3", "*rotlhi3"): New insn pattern for non-const rotatert.
14198 ("*rotrhi3_addr"): New split for shift insns on address register.
14199 ("*lshrhi3", "*ashrhi3", "*ashlhi3_2"): Use new split.
14200 * config/m68hc11/larith.asm (___rotlhi3): New asm function.
14201 (___rotrhi3): Likewise.
14202 * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Build them.
14203
14204 2003-03-02 Neil Booth <neil@daikokuya.co.uk>
14205
14206 * toplev.c (aux_base_name): Moved from toplev.h.
14207 (filename): Constify.
14208 (lang_dependent_init): Don't duplicate name.
14209 (process_options): Set aux_base_name here, not...
14210 (do_compile): ...here. Change protoype.
14211 (toplev_main): Move some code from do_compile.
14212 * toplev.h: Remove aux_base_name.
14213
14214 2003-03-02 Kazu Hirata <kazu@cs.umass.edu>
14215
14216 * config/h8300/h8300-protos.h: Add a prototype for
14217 iorxor_operator.
14218 * config/h8300/h8300.c (print_operand): Handle 'c'.
14219 (iorxor_operator): New.
14220 * config/h8300/h8300.h (PREDICATE_CODES): Add iorxor_operator.
14221 * config/h8300/h8300.md (*iorhi3_zext): Remove.
14222 (*iorsi3_zexthi): Likewise.
14223 (*iorsi3_zextsi): Likewise.
14224 (*xorhi3_zextqi): Likewise.
14225 (*xorsi3_zexthi): Likewise.
14226 (*xorsi3_zextsi): Likewise.
14227 (*ixorhi3_zext): New.
14228 (*ixorsi3_zext_qi): Likewise.
14229 (*ixorsi3_zext_hi): Likewise.
14230
14231 2003-03-02 Neil Booth <neil@daikokuya.co.uk>
14232
14233 * c-incpath.c (remove_component_p, simplify_path): Move back to
14234 cppfiles.c.
14235 (remove_duplicates): Use cpp_simplify_path.
14236 * c-incpath.h (simplify_path): Remove.
14237 * c-lex.c: Don't include c-incpath.h.
14238 (init_c_lex): Remove simplify_path.
14239 * cppfiles.c (remove_component_p, cpp_simplify_path): Restore.
14240 (find_or_create_entry, validate_pch): Revert.
14241
14242 2003-03-02 Ashif Harji <asharji@uwaterloo.ca>
14243
14244 * gcc.c (default_compilers): Add -no-integrated-cpp flag to invoke
14245 an external cpp during compilation.
14246 (option_map): Likewise.
14247 * objc/lang-specs.h (default_compilers): Similarly.
14248 * doc/invoke.texi: Document -no-integrated-cpp flag.
14249
14250 2003-03-02 Kazu Hirata <kazu@cs.umass.edu>
14251
14252 * config/h8300/h8300.md (zero_extendqisi2): Change to an
14253 expander.
14254 (*zero_extendqisi2_h8300): New.
14255 (*zero_extendqisi2_h8300hs): New.
14256 (two splitters): New.
14257
14258 2003-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14259
14260 * fp-bit.h (float_to_usi): Fix condition wrapping prototype.
14261
14262 2003-03-01 Kazu Hirata <kazu@cs.umass.edu>
14263
14264 * config/h8300/h8300.md (a peephole2): Remove dead code.
14265
14266 2003-03-01 Roger Sayle <roger@eyesopen.com>
14267
14268 PR c++/9367
14269 * builtin-types.def (DEF_FUNCTION_TYPE_VAR_3): New macro.
14270 (BT_FN_INT_CONST_STRING_VALIST_ARG,
14271 BT_FN_INT_STRING_CONST_STRING_VALIST_ARG,
14272 BT_FN_INT_CONST_STRING_CONST_STRING_VALIST_ARG,
14273 BT_FN_INT_STRING_SIZE_CONST_STRING_VALIST_ARG,
14274 BT_FN_INT_STRING_CONST_STRING_VAR,
14275 BT_FN_INT_CONST_STRING_CONST_STRING_VAR,
14276 BT_FN_INT_STRING_SIZE_CONST_STRING_VAR): New built-in types.
14277 * builtin-attrs.def (ATTR_NONNULL_1, ATTR_NONNULL_2,
14278 ATTR_NONNULL_3): Also include the nothrow attribute.
14279 (sprintf, scanf, sscanf, vprintf, vsprintf, snprintf,
14280 vsnprintf, vscanf, vsscanf): Don't define attributes here.
14281 * builtins.def (putchar, puts): Make full C89 built-ins.
14282 (snprintf, sprintf, scanf, sscanf, vprintf, vscanf,
14283 vsscanf, vsnprintf, vsprintf): New built-ins.
14284 * c-common.c (c_common_nodes_and_builtins): Handle new macro
14285 DEF_FUNCTION_TYPE_VAR_3.
14286
14287 * doc/extend.texi: Document these new built-in functions.
14288
14289 2003-03-01 Kazu Hirata <kazu@cs.umass.edu>
14290
14291 * config/h8300/h8300.md (a peephole2): New.
14292
14293 2003-03-01 Richard Earnshaw <rearnsha@arm.com>
14294
14295 * predict.c (estimate_bb_frequencies): Correctly set
14296 real_values_initialized after initialization.
14297
14298 2003-03-01 Neil Booth <neil@daikokuya.co.uk>
14299
14300 * Makefile.in (C_AND_OBJC_OBJS, c-incpath.o, c-lex.o, LIBCPP_OBJS,
14301 cppinit.o, cppdefault.o, fix-header): Update.
14302 * c-incpath.c: New file.
14303 * c-incpath.h: New file.
14304 * c-lex.c: Include c-incpath.h.
14305 (init_c_lex): Register path simplifier.
14306 * c-opts.c: Include cppdefault.h and c-incpath.h.
14307 (TARGET_SYSTEM_ROOT, verbose, iprefix, sysroot, std_inc,
14308 std_cxx_inc, quote_chain_split, add_prefixed_path): New.
14309 (COMMAND_LINE_OPTIONS): Add more options from cpplib.
14310 (missing_arg, c_common_decode_option): Handle them.
14311 (c_common_post_options): Register include chains.
14312 (print_help): Update.
14313 * cppdefault.h (struct default include): Update.
14314 Move some macros to ...
14315 * cppdefault.c: ... here.
14316 (cpp_include_defaults): Add extra field add_sysroot.
14317 * cppfiles.c (include_file, search_from, find_or_create_entry,
14318 cpp_included, find_include_file, remap_filename): Update for
14319 renaming of search_path to cpp_path, and of the chain headers.
14320 (remove_component_p, _cpp_simplify_pathname): Move to c-incpath.c.
14321 * cpphash.h (struct search_path): Move to cpplib.h.
14322 (struct cpp_buffer, struct cpp_reader): Update.
14323 (_cpp_simplify_pathname): Remove.
14324 * cppinit.c: Don't include prefix.h and cppdefault.h.
14325 (INO_T_EQ, INO_T_COPY, path_include, append_include_chain,
14326 remove_dup_dir, remove_dup_nonsys_dirs, remove_dup_dirs,
14327 init_standard_includes, BRACKET, SYSTEM, AFTER, no_dir,
14328 no_pth, cpp_handle_options): Remove.
14329 (struct pending_option): Remove chain members.
14330 (cpp_destroy, cpp_read_main_file, COMMAND_LINE_OPTIONS,
14331 cpp_handle_option): Update.
14332 * cpplib.h (struct cpp_path, cpp_set_include_chains): New.
14333 (struct cpp_options): Remove quote_include, bracket_include,
14334 include_prefix, include_prefix_len, verbose, ignore_srcdir,
14335 no_standard_includes, no_standard_cplusplus_includes.
14336 (struct cpp_callbacks): Add simplify_path.
14337 (cpp_handle_options): Remove.
14338 * fix-header.c: Include c-incpath.h.
14339 (read_scan_file): Update to use c-incpath functionality.
14340 * doc/passes.texi: Update.
14341
14342 2003-03-01 Kazu Hirata <kazu@cs.umass.edu>
14343
14344 * config/h8300/h8300.c (bit_operand): Accept MEM only if it
14345 satisfies EXTRA_CONSTRAINT 'U'.
14346
14347 2003-03-01 Kazu Hirata <kazu@cs.umass.edu>
14348
14349 * config/h8300/h8300.md (*tst_extzv_bitqi_1_n): Take a scratch
14350 register.
14351 (*tst_extzv_memqi_1_n): Change to a splitter.
14352 (a peephole2): Update.
14353
14354 2003-03-01 Richard Earnshaw <rearnsha@arm.com>
14355
14356 * predict.c (estimate_bb_frequencies): Initialize the sreal
14357 constants once per compilation.
14358
14359 2003-02-28 Richard Henderson <rth@redhat.com>
14360
14361 * toplev.c (flag_eliminate_unused_debug_types): Enable by default.
14362
14363 2003-02-28 scott snyder <snyder@fnal.gov>
14364
14365 * flags.h: Add flag_eliminate_unused_debug_types.
14366 * toplev.c: Add flag_eliminate_unused_debug_types.
14367 (f_options): Add -feliminate-unused-debug-types.
14368 * dwarf2out.c (struct file_table): Add emitted member.
14369 (splice_child_die): Fix the parent pointer for the child being
14370 spliced.
14371 (lookup_filename): Maintain file_table.emitted array. Don't
14372 output .file directive here.
14373 (maybe_emit_file): (new)
14374 (init_file_table): Set up file_table.emitted.
14375 (dwarf2out_source_line): Use maybe_emit_file.
14376 (dwarf2out_start_source_file): Use maybe_emit_file.
14377 (dwarf2out_init): Use maybe_emit_file.
14378 (prune_unused_types_walk_attribs): (new)
14379 (prune_unused_types_mark): (new)
14380 (prune_unused_types_walk): (new)
14381 (prune_unused_types_prune): (new)
14382 (prune_unused_types): (new)
14383 (dwarf2out_finish): Call prune_unused_types if
14384 flag_eliminate_unused_debug_types is set.
14385 * doc/invoke.texi (Option Summary): Add
14386 -feliminate-unused-debug-types.
14387 (Debugging Options): Likewise.
14388
14389 2003-02-28 Geoffrey Keating <geoffk@apple.com>
14390
14391 * doc/invoke.texi: Change .pch to .gch.
14392 * cppfiles.c (open_file_pch): Likewise.
14393 * gcc.c (default_compilers): Likewise.
14394
14395 2003-02-28 Aldy Hernandez <aldyh@redhat.com>
14396
14397 * floatlib.c: Remove.
14398
14399 2003-02-28 Jason Merrill <jason@redhat.com>
14400
14401 * stor-layout.c (variable_size): Leave a "minus 1" outside the
14402 SAVE_EXPR.
14403
14404 2003-02-28 David Edelsohn <edelsohn@gnu.org>
14405
14406 * config/rs6000/power4.md: Add compare bypass.
14407
14408 2003-02-28 Jason Thorpe <thorpej@wasabisystems.com>
14409
14410 * config/netbsd.h: Update copyright years.
14411 (NETBSD_CPP_SPEC): Define _REENTRANT and _PTHREADS if
14412 -pthread is specified on the command line.
14413
14414 2003-02-28 Dale Johannesen <dalej@apple.com>
14415
14416 * loop.c (struct movable): Add insert_temp, shrink savemode.
14417 (scan_loop): Accept invariants that require copying; mark as
14418 insert_temp.
14419 (combine_movables): Don't combine insert_temp movables.
14420 (move_movables): Insert copies for insert_temp movables.
14421 Don't record the info based on regno for insert_temp's.
14422
14423 2003-02-28 Joel Sherrill <joel@OARcorp.com>
14424
14425 PR 9638/other
14426 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Ensure the
14427 this constant defaults to 1.
14428
14429 2003-02-28 Bob Wilson <bob.wilson@acm.org>
14430
14431 * config.gcc (xtensa-*-linux*): Add t-slibgcc-elf-ver to tmake_file.
14432
14433 2003-02-28 Richard Earnshaw <rearnsha@arm.com>
14434
14435 * arm.md (mulhisi3, mulhisi3addsi, mulhidi3adddi): Enable for any
14436 ARMv5e processor, not just for XScale. Instructions are predicable.
14437 (mulhisi3tb, mulhisi3bt, mulhisi3tt): New patterns for ARMv5e.
14438
14439 2003-02-28 Nick Clifton <nickc@redhat.com>
14440
14441 * config/arm/arm.c (note_invalid_constants): Change parameter type
14442 from bool to int.
14443
14444 2003-02-28 Kazu Hirata <kazu@cs.umass.edu>
14445
14446 * config/h8300/h8300.md (*tst_extzv_bitqi_1_n): Accept the
14447 test of bit 7.
14448 (*tst_extzv_memqi_1_n): Likewise.
14449 (a peephole2): New.
14450
14451 2003-02-28 Richard Sandiford <rsandifo@redhat.com>
14452
14453 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Wrap in
14454 #ifndef __mips16.
14455
14456 2003-02-28 Jan Hubicka <jh@suse.cz>
14457
14458 * combine.c (gen_lowpart_for_combine): Update handling of
14459 subregs_of_mode
14460 * flow.c (life_analysis, mark_used_regs): Likewise.
14461 * regclass.c (subregs_of_mode): Turn into single bitmap.
14462 (cannot_change-mode_set_regs, invalid_mode_change_p): Update
14463 dealing with subregs_of_mode
14464 * regs.h (subregs_of_mode): Update prototype.
14465
14466 2003-02-28 Josef Zlomek <zlomekj@suse.cz>
14467
14468 * emit-rtl.c (set_reg_attrs_for_parm): New function.
14469 * rtl.h (set_reg_attrs_for_parm): New exported function.
14470 * function.c (assign_parms): Use set_reg_attrs_for_parm instead of
14471 set_reg_attrs_from_mem.
14472
14473 2003-02-27 Roger Sayle <roger@eyesopen.com>
14474 Zack Weinberg <zack@codesourcery.com>
14475
14476 * gcc.c (do_spec_1): Treat %U like %u for unique associations.
14477
14478 2003-02-27 Kazu Hirata <kazu@cs.umass.edu>
14479
14480 * reload1.c (sext_for_mode): Remove.
14481 (reload_cse_move2add): Use trunc_int_for_mode instead of
14482 sext_for_mode.
14483 (move2add_note_store): Likewise.
14484 Reset register information if we see a set in non-integer
14485 mode.
14486
14487 2003-02-27 David Edelsohn <edelsohn@gnu.org>
14488
14489 * config/rs6000/aix43.h (ASM_SPEC): Only emit -mppc64 if no -mcpu
14490 option.
14491 (ASM_CPU_SPEC): Use -m620 for Power3, Power4, 620, 630.
14492 * config/rs6000/aix51.h: Same.
14493 * config/rs6000/aix52.h: Same.
14494 * config/rs6000/power4.md: Additional VMX bypasses.
14495
14496 2003-02-27 Geert Bosch <bosch@gnat.com>
14497
14498 * toplev.c (print_version): Add indentation for GGC heuristics and
14499 output after printing version information.
14500
14501 2003-02-27 James E Wilson <wilson@tuliptree.org>
14502
14503 * combine.c (simplify_comparison): Require integral mode when
14504 permuting SUBREG with AND.
14505
14506 2003-02-27 Steve Ellcey <sje@cup.hp.com>
14507
14508 * config/ia64/hpux.h (STARTFILE_PREFIX_SPEC): Remove.
14509
14510 2003-02-27 Nick Clifton <nickc@redhat.com>
14511
14512 * config/arm/arm.md (extendsfdf2): Add pattern accidentally
14513 deleted when cirrus instructions were added.
14514
14515 2003-02-27 Jason Thorpe <thorpej@wasabisystems.com>
14516
14517 * config.gcc (*-*-netbsd[2-9]*, *-*-netbsdelf[2-9]*): Enable
14518 POSIX thread support by default.
14519
14520 2003-02-27 Roger Sayle <roger@eyesopen.com>
14521
14522 * config/i386/cygwin.h: Don't include any other files directly.
14523 * config/i386/mingw32.h: Don't include cygwin.h directly.
14524 * config.gcc (cygwin, mingw32, uwin): Instead make these files
14525 explicit in the tm_files variable.
14526
14527 2003-02-27 Alan Modra <amodra@bigpond.net.au>
14528
14529 * config/rs6000/rs6000.md: Add TI constant splitter.
14530
14531 2003-02-26 Alexandre Oliva <aoliva@redhat.com>
14532
14533 * builtins.c (purge_builtin_constant_p): Handle subreg of
14534 constant_p_rtx too.
14535
14536 * function.c (assign_stack_local_1): Truncate constant added to
14537 frame_pointer_rtx or virtual_stack_vars_rtx for Pmode.
14538
14539 2003-02-26 David Edelsohn <edelsohn@gnu.org>
14540
14541 * config.gcc: Add power4 to PowerPC with_cpu list.
14542
14543 2003-02-26 Jan Hubicka <jh@suse.cz>
14544
14545 * objc-act.c: (mark_referenced_methods): Fix compilation problem.
14546
14547 2003-02-26 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
14548
14549 * gcov-dump.c (print_prefix): Fix signedness warning.
14550 * gcov-io.h (struct counter_section, struct counter_section_data): New.
14551 (struct function_info): n_arc_counts field removed, n_counter_sections,
14552 counter_sections fields added.
14553 (struct gcov_info): arc_counts, n_arc_counts fields removed,
14554 n_counter_sections, counter_sections fields added.
14555 * libgcov.c (gcov_exit, __gcov_flush): Add support for multiple
14556 profile sections.
14557 * profile.h (MAX_COUNTER_SECTIONS): New.
14558 (struct section_info): New.
14559 (struct profile_info): count_instrumented_edges,
14560 count_edges_instrumented_now fields removed, n_sections, section_info
14561 fields added.
14562 (find_counters_section): Declare.
14563 * profile.c (struct function_list): count_edges field removed,
14564 n_counter_sections, counter_sections fields added.
14565 (set_purpose, label_for_tag, build_counter_section_fields,
14566 build_counter_section_value, build_counter_section_data_fields,
14567 build_counter_section_data_value, build_function_info_fields,
14568 build_function_info_value, build_gcov_info_fields,
14569 build_gcov_info_value): New static functions.
14570 (find_counters_section): New function.
14571 (instrument_edges, get_exec_counts, compute_branch_probabilities,
14572 branch_prob, create_profiler): Modified to support multiple profile
14573 sections.
14574
14575 2003-02-26 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14576
14577 * pa.c (compute_frame_size): Don't assume PREFERRED_STACK_BOUNDARY
14578 is 8 * STACK_BOUNDARY.
14579 * pa.h (PREFERRED_STACK_BOUNDARY): Change to 128 on 64-bit port.
14580
14581 2003-02-26 Michael Matz <matz@suse.de>
14582
14583 * ra-colorize.c (merge_moves): Fix list handling.
14584
14585 2003-02-26 Nick Clifton <nickc@redhat.com>
14586
14587 * config/arm/arm.c (is_load_address): Rename to...
14588 (arm_memory_load_p) ... this and make it check for SUBREGs and
14589 constant loads that will be converted into loads from the
14590 minipool.
14591 (is_cirrus_insn): Rename to ...
14592 (arm_cirrus_insn_p): ... this, for consistency. Replace test
14593 of CIRRUS_NO with CIRRUS_NOT.
14594 (cirrus_reorg): Use renamed functions.
14595 (note_invalid_constants): Change from a void function to bool.
14596 Add an extra parameter, saying whether the fixups should be
14597 pushed. Return true if fixups are needed.
14598 (arm_reorg): Use renamed functions. Use INSN_P. Replace test
14599 of CIRRUS_NO with CIRRUS_NOT.
14600 * config/arm/arm.h (FLOAT_WORDS_BIG_ENDIAN): Mention that
14601 other floating point co-processors can also affect this.
14602 * config/arm/arm.md ("type" attribute): Add mav_farith and
14603 mav_dmult. Replace references to "cirrus_type" attribute with
14604 "type".
14605 * config/arm/cirrus.md ("cirrus_fpu" attribute): Delete.
14606 ("cirrus_type" attribute): Delete - use "type" instead.
14607 ("cirrus" attribute): Replace 'no' with 'not' and 'yes' with
14608 'normal'.
14609
14610 2003-02-25 Jan Hubicka <jh@suse.cz>
14611
14612 * objc-act.c: Include cgraph.h
14613 (mark_referenced_methods): New function.
14614 (objc_init): Call it.
14615 * objc-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Set.
14616
14617 * c-decl.c (finish_function): Honor can_defer_p even in unit-at-a-time
14618 mode.
14619
14620 * optabs.c (expand_fix): Do not widen the input operand.
14621
14622 * expr.c (emit_group_store): Fix crash when converting single
14623 register into complex register.
14624
14625 * Makefile.in (jump.o, regclass.o, alias.o): Add dependency on timevar.h
14626 * alias.c: Include timevar.h
14627 (init_alias_analysis): Set timevar
14628 * jump.c: Include timevar.h
14629 (rebuild_jump_labels): Set timevar
14630 * regcalss.c: Include timevar.h
14631 (reg_scan): Set timevar
14632 * timevar.def (TV_ALIAS_ANALYSIS, TV_REG_SCAN, TV_REBUILD_JUMP): New
14633
14634 2003-02-26 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
14635
14636 * cse.c (count_reg_usage): Fix handling of REG_EQUAL notes.
14637
14638 * Makefile.in (loop-unroll.o): New.
14639 * cfgloop.h (UAP_PEEL, UAP_UNROLL, UAP_UNROLL_ALL): New.
14640 (unroll_and_peel_loops): Declare.
14641 * alias.c (init_alias_analysis): Flag_unroll_loops renamed to
14642 flag_old_unroll_loops.
14643 * loop.c (loop_invariant_p): Ditto.
14644 * unroll.c (unroll_loop): Flag_unroll_all_loops renamed to
14645 flag_old_unroll_all_loops.
14646 * flags.h (flag_unroll_loops): Renamed to flag_old_unroll_loops.
14647 (flag_unroll_all_loops): Renamed to flag_old_unroll_all_loops.
14648 * params.def (PARAM_MAX_UNROLLED_INSNS): Default value changed.
14649 (PARAM_MAX_AVERAGE_UNROLLED_INSNS, PARAM_MAX_UNROLL_TIMES,
14650 PARAM_MAX_PEELED_INSNS, PARAM_MAX_PEEL_TIMES,
14651 PARAM_MAX_COMPLETELY_PEELED_INSNS, PARAM_MAX_COMPLETELY_PEEL_TIMES,
14652 PARAM_MAX_ONCE_PEELED_INSNS): New.
14653 * toplev.h (flag_old_unroll_loops, flag_old_unroll_all_loops): New.
14654 (flag_unroll_loops, flag_unroll_all_loops): Used for new unroller
14655 instead of old one.
14656 (flag_peel_loops): New.
14657 (lang_independent_options): The new flags added.
14658 (rest_of_compilation): Call new unroller.
14659 (process_options): Setup flags for coexistence of old and new unroller.
14660 * doc/invoke.texi: Document new options.
14661 * doc/passes.texi: Document new unroller pass.
14662
14663 2003-02-26 David Billinghurst <David.Billinghurst@riotinto.com>
14664
14665 * fixinc/fixincl.x: Regenerate
14666
14667 2003-02-26 Josef Zlomek <zlomekj@suse.cz>
14668
14669 * function.c (assign_parms): Set reg_attrs for parameters passed in
14670 registers.
14671
14672 2003-02-26 Alan Modra <amodra@bigpond.net.au>
14673
14674 PR target/9681
14675 * tlink.c (scan_linker_output): Drop leading '.' from symbol names.
14676
14677 2003-02-25 David Edelsohn <edelsohn@gnu.org>
14678
14679 * config/rs6000/xcoff.h (ASM_FILE_START): Do not emit machine
14680 pseudo-op.
14681
14682 2003-02-25 Roger Sayle <roger@eyesopen.com>
14683
14684 * combine.c (combine_simplify_rtx, simplfy_comparison): Use CC0_P.
14685 * cse.c (invalidate_skipped_set): Likewise.
14686 * integrate.c (subst_constants): Likewise.
14687 * jump.c (reversed_comparison_code_parts): Likewise.
14688 * loop.c (canonicalize_condition): Likewise.
14689 * simplify-rtx.c (simplify_relational_operation): Likewise.
14690
14691 2003-02-25 Roger Sayle <roger@eyesopen.com>
14692
14693 * builtins.def (DEF_LIB_ALWAYS_BUILTIN, DEF_UNUSED_BUILTIN): Delete.
14694 (abs, labs, fabs, fabsf, fabsl, abort, exit, _exit, _Exit): Use
14695 the appropriate macro to define built-in function.
14696 (fmod,fmodf,fmodl): New built-in functions.
14697
14698 * doc/extend.texi (fmod,fmodf,fmodl): Document new built-ins.
14699
14700 2003-02-25 Richard Henderson <rth@redhat.com>
14701
14702 * config/i386/i386.c (function_arg): Pass variable sized
14703 structures correctly on the stack.
14704
14705 2003-02-25 Kazu Hirata <kazu@cs.umass.edu>
14706
14707 * reload1.c (reload_cse_move2add): Use STRICT_LOW_PART if PLUS
14708 does not reduce the cost of SET.
14709
14710 2003-02-25 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
14711
14712 PR target/9732
14713 * config/rs6000/rs6000.c (first_reg_to_save): Handle
14714 PIC_OFFSET_TABLE_REGNUM for -fPIC too.
14715 (rs6000_emit_prologue): Likewise.
14716 (rs6000_emit_epilogue): Likewise.
14717 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Make
14718 PIC_OFFSET_TABLE_REGNUM a fixed register for -fPIC.
14719
14720 2003-02-25 Richard Henderson <rth@redhat.com>
14721
14722 * real.c (real_to_integer2): Force overflow result only for
14723 unsigned overflow.
14724
14725 2003-02-25 Kazu Hirata <kazu@cs.umass.edu>
14726
14727 * gcse.c (cprop_jump): Revert the 2003-02-23 change.
14728
14729 2003-02-25 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
14730 Richard Henderson <rth@redhat.com>
14731
14732 * sched-ebb.c (add_deps_for_risky_insns): Add the dependence when
14733 there is no similar load.
14734
14735 2003-02-25 Vladimir Makarov <vmakarov@redhat.com>
14736 Richard Henderson <rth@redhat.com>
14737
14738 * sched-int.h (INSN_TRAP_CLASS, WORST_CLASS): Move them from
14739 sched-rgn.c.
14740 (add_forward_dependence): New function prototype.
14741
14742 * sched-rgn.c (INSN_TRAP_CLASS, WORST_CLASS): Move them to
14743 sched-init.h.
14744 (CONST_BASED_ADDRESS_P, may_trap_exp, haifa_classify_insn): Move
14745 them to haifa-sched.c.
14746
14747 * haifa-sched.c (CONST_BASED_ADDRESS_P, may_trap_exp,
14748 haifa_classify_insn): Move them from sched-rgn.c.
14749
14750 * sched-deps.c (add_dependence): Return flag of creating a new
14751 entry.
14752 (add_forward_dependence): New function.
14753 (compute_forward_dependences): Use the function.
14754
14755 * sched-ebb.c (earliest_block_with_similiar_load): New function.
14756 (add_deps_for_risky_insns): New function.
14757 (schedule_ebb): Call the function.
14758
14759 2003-02-20 Aldy Hernandez <aldyh@redhat.com>
14760
14761 * doc/tm.texi: Document Rename TARGET_VECTOR_TYPES_COMPATIBLE to
14762 TARGET_VECTOR_OPAQUE_P. Document accordingly.
14763
14764 * testsuite/gcc.dg/20030218-1.c: Check that initialization of
14765 opaque types fail.
14766
14767 * c-typeck.c (comptypes): Change call to vector_types_compatible
14768 to vector_opaque_p.
14769 (convert_for_assignment): Call vector_opaque_p instead of
14770 vector_types_compatible.
14771 (really_start_incremental_init): Disallow initialization of opaque
14772 types.
14773
14774 * target-def.h: Remove TARGET_VECTOR_TYPES_COMPATIBLE.
14775 Define TARGET_VECTOR_OPAQUE_P.
14776 (TARGET_INITIALIZER): Same.
14777
14778 * target.h (struct gcc_target): Remove vector_types_compatible.
14779 Add vector_opaque_p.
14780
14781 * config/rs6000/rs6000.c (rs6000_spe_vector_types_compatible):
14782 Remove.
14783 (is_ev64_opaque_type): Check for TARGET_SPE and make sure type is
14784 a vector type. Change return type to bool.
14785 (TARGET_VECTOR_TYPES_COMPATIBLE): Remove.
14786 (TARGET_VECTOR_OPAQUE_P): Define.
14787
14788 * cp/parser.c (cp_parser_init_declarator): Call vector_opaque_p
14789 target hook.
14790 Include target.h.
14791 (cp_parser_init_declarator): Fix typo in function comments.
14792
14793 2003-02-25 Jan Hubicka <jh@suse.cz>
14794
14795 * Makefile.in (lcm.o): Add dependency on function.h
14796 * lcm.c (function.h): Include.
14797 * i386.c (machine_function, ix86_stack_locals,
14798 * ix86_save_varrargs_registers) : Move to
14799 ...
14800 * i386.h (machine_function, ix86_stack_locals,
14801 ix86_save_varrargs_registers): ... here; add optimize_mode_switching
14802 (ix86_optimize_mode_switching): New.
14803 * i386.md (fix patterns): Set ix86_optimize_mode_switching
14804
14805 2003-02-25 Nick Clifton <nickc@redhat.com>
14806
14807 * config/d30v/d30v.c (d30v_init_cumulative_args): Fix typo. Name
14808 of fourth arg is 'fndecl' not 'indirect'. Update comment
14809 describing the function's parameters.
14810
14811 2003-02-24 Jan Hubicka <jh@suse.cz>
14812
14813 * combine.c (simplify_shift_const): Fix previous patch.
14814
14815 2003-02-24 Jeff Law <law@redhat.com>
14816
14817 * i386.md (testdi_1_rex64): Discourage reload from using the %eax
14818 alternative.
14819 (testsi_1, testhi_1, testqi_1): Likewise.
14820
14821 2003-02-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14822
14823 * config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Rename
14824 __EXTERN_PREFIX to __PRAGMA_EXTERN_PREFIX.
14825 * doc/extend.texi (Tru64 Pragmas): Reflect this.
14826
14827 * fixinc/inclhack.def (alpha___extern_prefix): Indicate #pragma
14828 extern_prefix support for Tru64 UNIX V5 <sys/stat.h>.
14829 * fixinc/fixincl.x: Regenerate.
14830 * fixinc/tests/base/sys/stat.h [ALPHA___EXTERN_PREFIX_CHECK]: New
14831 testcase.
14832 Fixes PR c/5059, c/6126, other/9671.
14833
14834 2003-02-24 Roger Sayle <roger@eyesopen.com>
14835
14836 * gcc.c (do_spec_1) ['{']: Handle pending argument upon return
14837 from handle_braces in "%{...}".
14838
14839 2003-02-24 Kaz Kojima <kkojima@gcc.gnu.org>
14840
14841 * config/sh/sh.c (TARGET_HAVE_TLS): Conditionally define.
14842 (prepare_move_operands): Handle TLS operands.
14843 (tls_symbolic_operand): New.
14844 (nonpic_symbol_mentioned_p): Handle TLS UNSPECs.
14845 (legitimize_pic_address): Do nothing for the TLS symbol.
14846 (sh_encode_section_info): Handle TLS case.
14847 (sh_strip_name_encoding): Drop TLS encoding.
14848 * config/sh/sh-protos.h (tls_symbolic_operand): Add prototype.
14849 * config/sh/sh.h (SH_TLS_ENCODING): Define.
14850 (TLS_SYMNAME_P, STRIP_TLS_ENCODING): Likewise.
14851 (ASM_OUTPUT_LABELREF): Drop TLS encoding.
14852 (OUTPUT_ADDR_CONST_EXTRA): Handle TLS UNSPECs.
14853 * config/sh/sh.md: Define TLS UNSPEC constants.
14854 (type): Add tls_load.
14855 ("tls_global_dynamic", "tls_local_dynamic"): New insns.
14856 ("sym2DTPOFF", "symDTPOFF2reg", "sym2GOTTPOFF"): New expanders.
14857 ("tls_initial_exec"): New insn.
14858 ("sym2TPOFF", "symTPOFF2reg"): New expanders.
14859 ("load_gbr"): New insn.
14860
14861 * configure.in (HAVE_AS_TLS): Add sh-*-* and sh[34]*-*-* cases.
14862 * configure: Regenerate.
14863
14864 2003-02-24 Alan Modra <amodra@bigpond.net.au>
14865
14866 PR 9297, PR 9722
14867 * calls.c (store_one_arg): Revert 1999-02-16 change. Revert
14868 2000-12-17 change. Pass EXPAND_STACK_PARM to expand_expr.
14869 * expr.h (enum expand_modifier): Define EXPAND_STACK_PARM.
14870 (enum block_op_methods): Reorder for better store_expr optimization.
14871 * expr.c (store_expr): Test bit 1 of "want_value" for call param
14872 stores, test bit 0 for original want_value meaning. Pass
14873 BLOCK_OP_CALL_PARM to emit_block_move when bit 1 set. Adjust
14874 recursive calls, and calls to expand_param.
14875 (expand_expr): Handle EXPAND_STACK_PARM modifier. When cse
14876 expected, set target to 0 rather than to subtarget. Formatting.
14877
14878 2003-02-23 Kazu Hirata <kazu@cs.umass.edu>
14879
14880 * gcse.c (cprop_jump): Use the REG_EQUAL note if available.
14881
14882 2003-02-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14883
14884 * doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Document
14885 new default behavior.
14886 * ggc-common.c: Include sys/resource.h.
14887 (ggc_rlimit_bound): New function.
14888 (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Update
14889 defaults to account for rlimits.
14890
14891 2003-02-22 Richard Henderson <rth@redhat.com>
14892
14893 * i386.c, i386.h (TUNEMASK): Rename from CPUMASK.
14894
14895 2003-02-22 Kelley Cook <kelley@dwhoops.info>
14896
14897 * i386.h, i386.c, i386.md (ix86_tune): Rename from ix86_cpu.
14898 (ix86_tune_string): Rename from ix86_cpu_string.
14899
14900 2003-02-22 Kelley Cook <kelleycook@comcast.net>
14901
14902 * config/i386/i386.c: Replace "mcpu" with "mtune".
14903 * config/i386/i386.h (TARGET_OPTIONS): Likewise.
14904 (CC1_CPU_SPEC): Likewise. New warning for "-mcpu".
14905 * doc/invoke.texi (i386 and x86-64 Options): Replace "mcpu"
14906 with "mtune". Note that "mcpu" is a deprecated synonym for "mtune".
14907
14908 2003-02-23 Andreas Schwab <schwab@suse.de>
14909
14910 * config.gcc: Delete references to m68k/t-linux and
14911 m68k/t-linux-aout.
14912 * config/m68k/t-linux, config/m68k/t-linux-aout: Removed.
14913
14914 2003-02-22 Jan Hubicka <jh@suse.cz>
14915
14916 * toplev.c (rest_of_compilation): Apply fotgotten hunk
14917 of track scheduling patch.
14918
14919 2003-02-22 Jan Hubicka <jh@suse.cz>
14920
14921 * config/linux.h (TARGET_HAS_F_SETLKW): Define.
14922 * config/alpha/linux.h (TARGET_HAS_F_SETLKW): Likewise
14923
14924 2003-02-22 Jan Hubicka <jh@suse.cz>
14925
14926 * c-decl.c (c_expand_body_1): Fix.
14927
14928 2003-02-22 Jan Hubicka <jh@suse.cz>
14929
14930 * expmed.c (expand_divmod): Undo sign extensions for unsigned operands
14931
14932 * cfgcleanup.c (try_forward_edges): Don't check loop structures
14933 when not optimizing.
14934 (cleanup_cfg): Do not iterate trought delete_trivially_dead_insns
14935 when not expensive.
14936 * toplev.c (rest_of_compilation): Duplicate loop headers only when
14937 optimizing; Delete trivially dead insns early; fix optimize check.
14938
14939 * Makefile.in (c-decl.o, c-objc-common.o, cgraph.o, tree-inline.o): Add
14940 dependency on cgraph.h
14941 * c-decl.c: Include cgraph.h
14942 (finish_function): Update call of tree_inlinable_function_p.
14943 * c-objc-common.c: Include cgraph.h
14944 * cgraph.h: New file.
14945 * cgraphunit.c: New file.
14946 * cgraph.c (cgraph_node, cgraph_edge): Move into cgraph.h
14947 (cgraph_nodes, cgraph_n_nodes): Globalize.
14948 (cgraph_finalize_function, cgraph_finalize_compilation_unit
14949 cgraph_create_edges, cgraph_optimize, cgraph_mark_needed_node):
14950 Move into cgraphunit.c
14951 * tree-inline.c: Include cgraph.h
14952 * tree-inline.c: Include cgraph.h
14953
14954 2003-02-22 Josef Zlomek <zlomekj@suse.cz>
14955
14956 * config/i386/i386.md: Use gen_lowpart instead of gen_rtx_REG
14957 for copying a register.
14958
14959 2003-02-22 Steven Bosscher <s.bosscher@student.tudelft.nl>
14960
14961 PR other/3782
14962 * toplev.c (process_options): If flag_detailed_statistics is set,
14963 then set time_report as well.
14964
14965 PR c/8828
14966 * jump.c (never_reached_warning): Don't fall through BARRRIER
14967 insns. Update comments to reflect what the function really does.
14968
14969 2003-02-21 Roger Sayle <roger@eyesopen.com>
14970
14971 * fold-const.c (omit_one_operand): No longer static.
14972 * tree.h (omit_one_operand): Prototype here.
14973 (div_and_round_double): Keep fold-const.c prototypes together.
14974 * builtins.c (builtin_mathfn_code): Handle binary built-in
14975 funtions, such as "pow" and "atan2".
14976 (fold_builtin): Optimize both pow(x,0.0) and pow(1.0,y) to 1.0.
14977 Simplify optimizations using "type" the builtin's return type.
14978
14979 2003-02-22 Hans-Peter Nilsson <hp@axis.com>
14980
14981 * config/cris/cris.c (cris_rtx_costs): Blockify dangling else.
14982 Fix functionalization typo.
14983
14984 * regmove.c (optimize_reg_copy_1): Do not replace a hard register
14985 in an asm.
14986
14987 2003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14988
14989 * Makefile.in (ggc-common.o): Depend on $(PARAMS_H)
14990 * doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Update
14991 documentation.
14992 * ggc-common.c: Include params.h
14993 (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
14994 init_ggc_heuristics): New functions.
14995 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
14996 init_ggc_heuristics): Prototype.
14997 * toplev.c (print_version): Output GGC heuristics.
14998 (parse_options_and_default_flags): Call init_ggc_heuristics.
14999
15000 2003-02-22 Jan Hubicka <jh@suse.cz>
15001
15002 * i386.c (def_builtin): Special case 64bit builtins.
15003 (MASK_SSE164, MASK_SSE264): New constants.
15004 (builtin_description): Add 64bit builtins.
15005 (ix86_init_mmx_sse_builtins): Likewise.
15006 * i386.h (enum ix86_builtins): Likewise.
15007 * i386.md (cvtss2siq, cvttss2siq, cvtsd2siq, cvttsd2siq, cvtsi2sdq,
15008 sse2_movq2dq_rex64, sse2_movsq2q_rex64): New.
15009 (sse2_movq2dq, sse2_movsq2q): Disable for 64bit.
15010 * mmintrin.h (_mm_cvtsi64x_si64, _mm_set_pi64x, _mm_cvtsi64_si64x): New.
15011 * xmmintrin.h (_mm_cvtss_si64x, _mm_cvttss_si64x, _mm_cvtsi64x_ss,
15012 _mm_set_epi64x, _mm_set1_epi64x, _mm_cvtsd_si64x, _mm_cvttsd_si64x,
15013 _mm_cvtsi64x_sd, _mm_cvtsi64x_si128, _mm_cvtsi128_si64x): New.
15014
15015 2003-02-22 Jan Hubicka <jh@suse.cz>
15016
15017 * i386.c (builtin_description): Add __builtin_ia32_paddq and
15018 __builtin_ia32_psubq. Fix __builtin_ia32_paddq128
15019 and __builtin_ia32_psubq128.
15020 * i386.h (IX86_BUILTIN_PADDQ, IX86_BUILTIN_PSUBQ): New.
15021 * i386.md (addv*, mmx_ior*, mmx_xoe*, mmx_and*): Add missing '%'.
15022 (mmx_adddi3, mmx_subdi3): New.
15023 * mmintrin.h (_mm_add_si64, _mm_sub_si64): New.
15024 * xmmintrin.h (_mm_movepi64_pi64): New.
15025 (_mm_add_epi64, _mm_sub_epi64): fix.
15026 (_mm_mul_pu16): Rename to...
15027 (_mm_mul_su32): ... this one.
15028
15029 * builtins.c (expand_builtin_expect): Do not predict
15030 flag_guess_branch_prob is not set.
15031 * c-semantics.c (expand_stmt): Likewise.
15032 * predict.c (predict_insn): Likewise.
15033 * stmt.c (expand_continue_loop): Likewise.
15034 * toplev.c (rest_of_compilation): Do not call
15035 note_prediction_to_br_prob and note_prediction_to_br_prob
15036 when not optimizing.
15037
15038 2003-02-21 Jan Hubicka <jh@suse.cz>
15039
15040 * cfgrtl.c (commit_edge_insertions): Call
15041 find_many_sub_basic_block only when some code has been emitted.
15042 (commit_edge_insertions_watch_calls): Bring into sync with
15043 commit_edge_insertions
15044
15045 2003-02-21 J"orn Rennecke <joern.rennecke@superh.com>
15046
15047 * sh.h (OVERRIDE_OPTIONS): Fix code that clears 'e' register class.
15048
15049 * sh.md (binary_sf_op): Use extra constant operand instead of
15050 negating constant operand 4.
15051 * sh.c (sh_expand_binop_v2sf): Supply it.
15052
15053 2003-02-21 Zack Weinberg <zack@codesourcery.com>
15054
15055 * cpphash.h (struct lexer_state): Add directive_wants_padding.
15056 * cpplib.c (_cpp_handle_directive): Set directive_wants_padding
15057 for directives of type INCL.
15058 (glue_header_name, parse_include): Use get_token_no_padding.
15059 * cppmacro.c (replace_args): If directive_wants_padding,
15060 provide padding tokens.
15061
15062 2003-02-21 Kazu Hirata <kazu@cs.umass.edu>
15063
15064 * config/h8300/h8300.md (a peephole2): New.
15065
15066 2003-02-21 Jan Hubicka <jh@suse.cz>
15067
15068 * cfgrtl.c (commit_one_edge_insertion): Only mark BB for splitting.
15069 (commit_edge_insertions): Call find_many_sub_basic_blocks
15070
15071 * reg-stack.c (convert_regs): Cleax aux for blocks.
15072
15073 2003-02-21 Jan Hubicka <jh@suse.cz>
15074
15075 * toplev.c (parse_options_and_default_flags): Undo accidental commit.
15076
15077 2003-02-21 Glen Nakamura <glen@imodulo.com>
15078
15079 PR optimization/8613
15080 * builtins.c (expand_builtin): Emit postincrements before expanding
15081 builtin functions.
15082
15083 2003-02-21 Ben Elliston <bje@redhat.com>
15084
15085 PR other/5634
15086 * doc/install.texi (Configuration): Explain using $HOME instead of
15087 the ~ metacharacter when referring to home directories.
15088
15089 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
15090
15091 * configure.in (TARGET_SYSTEM_ROOT): Set default to
15092 ${exec_prefix}/${target_alias}/sys-root. Match explicit
15093 '${exec_prefix}' (in addition to the expansion thereof) as
15094 relocatable.
15095 * configure: Rebuilt.
15096
15097 2003-02-20 Kazu Hirata <kazu@cs.umass.edu>
15098
15099 * config/h8300/h8300.md (addhi3_incdec): Change the name to
15100 *addhi3_incdec.
15101 (addsi3_incdec): Change the name to *addsi3_incdec.
15102
15103 2003-02-20 Roger Sayle <roger@eyesopen.com>
15104
15105 * explow.c (force_reg): Avoid useless REG_EQUAL notes.
15106
15107 2003-02-20 Toon Moene <toon@moene.indiv.nluug.nl>
15108
15109 PR fortran/9038
15110 * c-opts.c (sanitize_cpp_opts): Add Fortran front end
15111 options to be ignored.
15112 (c_common_decode_option): Ignore them when preprocessing.
15113
15114 2003-02-20 Jan Hubicka <jh@suse.cz>
15115
15116 * toplev.c (flag_sched2_use_superblocks, flag_sched2_use_traces): New
15117 global variables.
15118 (lang_independent_options): Add -fsched2-use-superblocks
15119 -fsced2-use-traces.
15120 (rest_of_compilation): Deal with it.
15121 * invoke.texi (-fsched2-use-traces, fsched2-use-superblocks): Declare.
15122 * flags.h (flag_sched2_use_superblocks, flag_sched2_use_traces):
15123 Declare.
15124 * rtl.h (reg_to_stack): Update prototype.
15125 * reg-stack.c (reg_to_stack): Return when something has changed;
15126 update liveness when executing after superblock scheduling.
15127
15128 * combine.c (simplify_shift_const): Simplify few special cases
15129 into constants.
15130
15131 2003-02-20 David Edelsohn <edelsohn@gnu.org>
15132
15133 * config/rs6000/rs6000.md: (attr "type"): Add fast_compare.
15134 (add.,subf.,neg.): Change attribute to fast_compare.
15135 All DFA descriptions updated.
15136
15137 2003-02-20 Nathan Sidwell <nathan@codesourcery.com>
15138
15139 Change base class access representation.
15140 * tree.h (TREE_VIA_PUBLIC, TREE_VIA_PROTECTED,
15141 TREE_VIA_PRIVATE): Remove.
15142 (BINFO_BASEACCESSES): New binfo elt.
15143 (BINFO_BASEACCESS): New accessor.
15144 (BINFO_ELTS): Increase.
15145 (TI_ACCESS_PUBLIC, TI_ACCESS_PROTECTED, TI_ACCESS_PRIVATE): New.
15146 (access_public_node, access_protected_node,
15147 access_private_node): New global nodes.
15148 * tree.c (build_common_tree_nodes_2): Initialize access nodes.
15149 * dbxout.c (dbxout_type): Adjust.
15150 * dwarf2out.c (gen_inheritance_die): Add access parameter.
15151 (gen_member_die): Adjust.
15152 * dwarfout.c (output_inheritance_die): ARG is array of two trees.
15153 (output_type): Adjust.
15154 * tree-dump.c (dequeue_and_dump): Adjust binfo dumping.
15155
15156 Change base class access representation. Share virtual base
15157 binfos.
15158 * cp/call.c (build_special_member_call): Remove binfo_for_vbase
15159 call.
15160 * cp/class.c (build_base_path): Likewise.
15161 (build_primary_vtable): Adjust BINFO_NEW_VTABLE_MARKED use.
15162 (build_secondary_vtable): Remove FOR_TYPE arg. Adjust.
15163 (make_new_vtable): Adjust.
15164 (force_canonical_binfo_r): Delete.
15165 (force_canonical_binfo): Delete.
15166 (mark_primary_virtual_base): Delete.
15167 (dfs_unshared_virtual_bases): Delete.
15168 (mark_primary_bases): Adjust.
15169 (maybe_warn_about_overly_private_class): Adjust.
15170 (dfs_base_derived_from): Delete.
15171 (base_derived_from): Follow the inheritance chain.
15172 (struct find_final_overrider_data): Add vpath member.
15173 (dfs_find_final_overrider): Adjust.
15174 (dfs_find_final_overrider_q, dfs_find_final_overrider_post): New.
15175 (find_final_overrider): Adjust.
15176 (update_vtable_entry_for_fn): Adjust.
15177 (modify_all_vtables): Adjust.
15178 (walk_subobject_offsets): Adjust.
15179 (layout_nonempty_base_or_field): Adjust.
15180 (layout_empty_base): Remove last parameter. Adjust.
15181 (build_base_field): Adjust.
15182 (build_base_fields): Adjust.
15183 (propagate_binfo_offsets): Remove last parameter. Adjust.
15184 (dfs_set_offset_for_unshared_vbases): Delete.
15185 (layout_virtual_bases): Adjust.
15186 (finish_struct_1): Adjust.
15187 (init_class_processing): Don't init access nodes.
15188 (dfs_get_primary_binfo): Delete.
15189 (get_primary_binfo): Adjust.
15190 (dump_class_hierarchy_r): Remove most derived arg, add IGO
15191 parameter. Adjust.
15192 (dump_class_hierarchy): Adjust.
15193 (finish_vtbls): Adjust.
15194 (get_original_base): Delete.
15195 (build_vtt_inits): Adjust.
15196 (dfs_build_secondary_vptr_vtt_inits): Adjust.
15197 (dfs_ctor_vtable_bases_queue_p): Adjust.
15198 (build_ctor_vtbl_group): Adjust.
15199 (dfs_accumulate_vtbl_inits): Adjust.
15200 (build_vtbl_initializer): Adjust.
15201 (build_vbase_offset_vtbl_entries): Adjust.
15202 (add_vcall_offset_vtbl_entries_1): Adjust.
15203 * cp/cp-tree.h (CPTI_ACCESS_*): Remove.
15204 (access_*_node): Remove.
15205 (CANONICAL_BINFO): Delete.
15206 (BINFO_UNSHARED_MARKED): Remove.
15207 (BINFO_MARKED): Set LANG_FLAG_0 directly.
15208 (SET_BINFO_MARKED, CLEAR_BINFO_MARKED): Delete.
15209 (BINFO_VTABLE_PATH_MARKED): Set LANG_FLAG_3 directly.
15210 (SET_BINFO_VTABLE_PATH_MARKED, CLEAR_BINFO_VTABLE_PATH_MARKED):
15211 Delete.
15212 (BINFO_NEW_VTABLE_MARKED): Set LANG_FLAG_4 directly.
15213 (SET_BINFO_NEW_VTABLE_MARKED): Adjust.
15214 (SET_BINFO_PUSHDECLS_MARKED, CLEAR_BINFO_PUSHDECLS_MARKED):
15215 Delete.
15216 (BINFO_DEPENDENT_BASE_P): New.
15217 (dfs_walk, dfs_walk_real): Queue function takes derived binfo and
15218 index.
15219 (markedp, unmarkedp): Adjust.
15220 (dfs_unmarked_real_bases_queue_p, dfs_marked_real_bases_queue_p,
15221 dfs_skip_vbases, marked_vtable_pathp, unmarked_vtable_pathp,
15222 find_vbase_instance, binfo_for_vbase): Delete.
15223 (copied_binfo, original_binfo): Declare.
15224 (finish_base_specifier): Add virtual_p arg.
15225 (unshare_base_binfos): Delete.
15226 (copy_base_binfos): Declare.
15227 (reverse_path): Delete.
15228 * cp/decl.c (xref_basetypes): Access and virtuality passed
15229 differently. Don't copy direct base binfos here. Call
15230 copy_base_binfos.
15231 * cp/init.c (dfs_initialize_vtbl_ptrs): Adjust.
15232 (initialize_vtbl_ptrs): Adjust.
15233 (expand_member_init): Adjust.
15234 * cp/parser.c (cp_parser_base_specifier): Adjust.
15235 * cp/pt.c (instantiate_class_template): Adjust.
15236 (get_template_base_recursive): Adjust.
15237 * cp/rtti.c (get_pseudo_ti_init): Adjust.
15238 (get_pseudo_ti_desc): Adjust.
15239 * cp/tree.c (unshare_base_binfos): Rename to ...
15240 (copy_base_binfos): ... here, reimplement.
15241 (make_binfo): Set BINFO_DEPENDENT_BASE_P.
15242 (reverse_path): Remove.
15243 * cp/typeck.c (get_delta_difference): Adjust error messages.
15244 * cp/semantics.c (finish_base_specifier): Add virtual arg, adjust.
15245 * cp/search.c (lookup_base_r): Adjust.
15246 (dynamic_cast_base_recurse): Adjust.
15247 (canonical_binfo): Remove.
15248 (dfs_canonical_queue): Remove.
15249 (dfs_assert_unmarked_p): Remove.
15250 (assert_canonical_unmarked): Remove.
15251 (shared_marked_p, shared_unmarked_p): Remove.
15252 (BINFO_ACCESS, SET_BINFO_ACCESS): Use TREE_PUBLIC & TREE_PRIVATE.
15253 (dfs_access_in_type): Adjust.
15254 (access_in_type): Adjust.
15255 (dfs_accessible_queue_p): Adjust.
15256 (dfs_accessible_p): Adjust.
15257 (is_subobject_of_p_1, is_subobject_of_p): Remove.
15258 (struct lookup_field_info): Remove from_dep_base_p field.
15259 (lookup_field_queue_p): Adjust, test BINFO_DEPENDENT_BASE_P.
15260 (lookup_field_r): Remove dependent base code.
15261 (lookup_member): Likewise.
15262 (dfs_walk, dfs_walk_real): Add access arg to queue fn.
15263 (dfs_unmarked_real_bases_queue_p): Remove.
15264 (dfs_marked_real_bases_queue_p): Remove.
15265 (dfs_skip_vbases): Remove.
15266 (dfs_get_pure_virtuals): Adjust.
15267 (markedp, unmarkedp): Adjust.
15268 (marked_vtable_pathp, unmarked_vtable_pathp): Remove.
15269 (marked_pushdecls_p, unmarked_pushdecls_p): Adjust.
15270 (dfs_unmark): Adjust.
15271 (dfs_get_vbase_types):Remove.
15272 (dfs_build_inheritance_graph_order): Remove.
15273 (get_vbase_types): Remove
15274 (dfs_find_vbase_instance): Remove.
15275 (find_vbase_instance): Remove.
15276 (dfs_debug_unmarkedp): Adjust.
15277 (dependent_base_p): Remove.
15278 (dfs_push_type_decls): Adjust.
15279 (dfs_push_decls): Adjust.
15280 (dfs_no_overlap_yet): Adjust.
15281 (copied_binfo): New function.
15282 (original_binfo): New function.
15283 (binfo_for_vbase): Remove.
15284
15285 Change base class access representation.
15286 * java/class.c (set_super_info): Don't set TREE_VIA_PUBLIC.
15287 (add_interface_do): Likewise.
15288
15289 2003-02-20 David Edelsohn <edelsohn@gnu.org>
15290
15291 * config/rs6000/sysv4.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
15292 * config/rs6000/power4.md (power4-store,power4-vecstore): New
15293 insn reservations.
15294 (power4-fpstore): Compact.
15295
15296 2003-02-20 Kazu Hirata <kazu@cs.umass.edu>
15297
15298 * config/h8300/h8300.md (*iorsi3_w): New.
15299
15300 2003-02-20 Josef Zlomek <zlomekj@suse.cz>
15301
15302 * combine.c (distribute_notes): Kill REG_EXEC_COUNT.
15303 * rtl.c (reg_note_name): Likewise.
15304 * rtl.h (enum reg_note): Likewise.
15305 * doc/invoke.texi: Likewise.
15306 * doc/rtl.texi: Likewise.
15307
15308 2003-02-20 Josef Zlomek <zlomekj@suse.cz>
15309
15310 * bb-reorder.c (find_traces_1_round): Fix comment typo.
15311
15312 2003-02-19 Roger Sayle <roger@eyesopen.com>
15313
15314 * fold-const.c (fold_real_zero_addition_p): Don't fold a zero
15315 addition in the presence of signaling NaNs.
15316
15317 2003-02-19 Krister Walfridsson <cato@df.lth.se>
15318
15319 * tm.texi (INIT_CUMULATIVE_ARGS): Fix typo.
15320
15321 2003-02-19 Kazu Hirata <kazu@cs.umass.edu>
15322
15323 * config/h8300/h8300.c (output_logical_op): Optimize or.l when
15324 ORing with 0xffff??00 with the highest bit of the ?? part set.
15325 (compute_logical_op_length): Update.
15326 (compute_logical_op_cc): Likewise.
15327
15328 2003-02-19 Josef Zlomek <zlomekj@suse.cz>
15329
15330 * bb-reorder.c (find_traces_1_round): Fixed condition for small
15331 destination block with multiple predecessors.
15332 (connect_traces): Check whether the block is a start of trace.
15333
15334 2003-02-19 Jan Hubicka <jh@suse.cz>
15335
15336 * calls.c (expand_call): Update call of INIT_CUMULATIVE_ARGS
15337 * function.c (assign_params): Likewise.
15338 * arm-protos.h (arm_init_cumulative_args): Update prototype.
15339 * arm.c (arm_init_cumulative_args): Update function.
15340 * arm.h (INIT_CUMULATIVE_ARGS): Update.
15341 * avr-protos.h (init_cumulative_args): Update prototype.
15342 * avr.c (init_cumulative_args): Update function.
15343 * avr.h (INIT_CUMULATIVE_ARGS): Update.
15344 * d30v-protos.h (d30v_init_cumulative_args): Update prototype.
15345 * d30v.c (d30v_init_cumulative_args): Update function.
15346 * d30v.h (INIT_CUMULATIVE_ARGS): Update.
15347 * frv-protos.h (frv_init_cumulative_args): Update prototype.
15348 * frv.c (frv_init_cumulative_args): Update function.
15349 * frv.h (INIT_CUMULATIVE_ARGS): Update.
15350 * mips.c (mips_expand_prolgue): Update call of INIT_CUMULATIVE_ARGS.
15351 * pa.h (INIT_CUMULATIVE_ARGS): Update.
15352 * sparc-protos.h (init_cumulative_args): Update prototype.
15353 * sparc.c (init_cumulative_args): Update function.
15354 * sparc.h (INIT_CUMULATIVE_ARGS): Update.
15355 * tm.texi (INIT_CUMULATIVE_ARGS): Update documentation.
15356
15357 2003-02-19 Kazu Hirata <kazu@cs.umass.edu>
15358
15359 * config/h8300/h8300.md (*iorsi3_two_qi_sext): New.
15360 (*ashiftsi_sextqi_7): Likewise.
15361
15362 2003-02-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
15363
15364 * config/mips/iris6.h (TARGET_OS_CPP_BUILTINS): Define __c99 for
15365 ISO C99 and C++.
15366
15367 * fixinc/inclhack.def (irix___restrict): Don't change __restrict
15368 for C++ on IRIX 6.5.1[89].
15369 * fixinc/tests/base/internal/sgimacros.h: New file.
15370
15371 * fixinc/inclhack.def (irix_wcsftime): Use XPG5 variant for C99.
15372 * fixinc/tests/base/internal/wchar_core.h: New file.
15373
15374 * fixinc/inclhack.def (irix_socklen_t): Fix broken IRIX 6.5.1[78]
15375 socklen_t definition.
15376 * fixinc/fixincl.x: Regenerate.
15377 * fixinc/tests/base/sys/socket.h: New file.
15378 Fixes PR libgcj/9652.
15379
15380 2003-02-19 Jan Hubicka <jh@suse.cz>
15381
15382 * i386.md (movsfcc_1, movdfcc_1): Fix constrains.
15383
15384 2003-02-19 David Edelsohn <edelsohn@gnu.org>
15385
15386 * config/rs6000/rs6000.c (rs6000_override_options): Initialize
15387 align_jumps_max_skip and align_loops_max_skip.
15388
15389 2003-02-19 Thierry Moreau <thierry.moreau@connotech.com>
15390
15391 * config/rs6000/rs6000.c (rs6000_encode_section_info): Do not
15392 test size if named section.
15393
15394 2003-02-19 Daniel Jacobowitz <drow@mvista.com>
15395
15396 * expr.c (expand_expr): Use gen_int_mode for the argument
15397 to gen_rtx_MULT.
15398
15399 2003-02-19 Jan Hubicka <jh@suse.cz>
15400
15401 * i386.md (cosxf2): Fix conditional.
15402
15403 2003-02-19 Kazu Hirata <kazu@cs.umass.edu>
15404
15405 * config/h8300/h8300.md (extendqisi2): Change to an expander.
15406 (*extendqisi2_h8300): New.
15407 (*extendqisi2_h8300hs): Likewise.
15408
15409 2003-02-19 Kazu Hirata <kazu@cs.umass.edu>
15410
15411 * config/h8300/h8300-protos.h: Update the prototype for
15412 split_adds_subs. Remove the prototypes for
15413 const_int_le_2_operand and const_int_le_6_operand.
15414 * config/h8300/h8300.c (split_adds_sub): Don't output inc/dec.
15415 (const_int_le_2_operand): Remove.
15416 (const_int_le_6_operand): Likewise.
15417 * config/h8300/h8300.h (PREDICATE_CODES): Remove the entries
15418 for const_int_le_2_operand and const_int_le_6_operand.
15419 * config/h8300/h8300.md: Update all uses of split_adds_subs.
15420 (a peephole2): New.
15421
15422 2003-02-18 Jan Hubicka <jh@suse.cz>
15423
15424 * cgraph.c (NPREDECESORC, SET_NPREDECESORS): Kill.
15425 (cgraph_expand_function): Rewrite.
15426
15427 2003-02-18 Matt Austern <austern@apple.com>
15428
15429 * toplev.c, langhooks.c, langhooks-def.h: Move
15430 write_global_declarations from toplev.c to langhooks.c.
15431
15432 2003-02-18 Kazu Hirata <kazu@cs.umass.edu>
15433
15434 * config/h8300/h8300.c (general_operand_src): Always check
15435 MODE.
15436 (general_operand_dst): Likewise.
15437
15438 2003-02-18 Roger Sayle <roger@eyesopen.com>
15439
15440 * convert.c (convert_to_real): Also optimize (float)log(x) into
15441 logf(x) where x is a float, i.e. also handle BUILT_IN_LOG{,L}.
15442
15443 2003-02-18 Kaz Kojima <kkojima@gcc.gnu.org>
15444
15445 * config/sh/sh.c (unspec_caller_rtx_p): New.
15446 (sh_cannot_copy_insn_p): New.
15447 (TARGET_CANNOT_COPY_INSN_P): New.
15448
15449 2003-02-18 Richard Henderson <rth@redhat.com>
15450
15451 * c-common.c (handle_used_attribute): Accept static data too.
15452
15453 2003-02-18 Nick Clifton <nickc@redhat.com>
15454 Aldy Hernandez <aldyh@redhat.com>
15455
15456 * testsuite/gcc.dg/20030218-1.c: New.
15457
15458 * doc/tm.texi: Document TARGET_VECTOR_TYPES_COMPATIBLE.
15459
15460 * target-def.h (TARGET_INITIALIZER): Add
15461 TARGET_VECTOR_TYPES_COMPATIBLE.
15462 (TARGET_VECTOR_TYPES_COMPATIBLE): New macro.
15463
15464 * target.h (struct gcc_target): Add field vector_types_compatible.
15465
15466 * c-typeck.c (comptypes): Take into account
15467 TARGET_VECTOR_TYPES_COMPATIBLE.
15468 (convert_for_assignment): Same.
15469
15470 * config/rs6000/rs6000.c (is_ev64_opaque_type): New.
15471 (rs6000_spe_vector_types_compatible): New.
15472 (TARGET_VECTOR_TYPES_COMPATIBLE): Define.
15473
15474 2003-02-19 Andreas Schwab <schwab@suse.de>
15475
15476 * Makefile.in (toplev.o): Depend on $(LANGHOOKS_DEF_H).
15477 * toplev.c: Include langhooks-def.h.
15478
15479 2003-02-18 Chris Demetriou <cgd@broadcom.com>
15480
15481 * config/mips/mips.h (enum processor_type): Sort entries
15482 alphabetically.
15483 * config/mips/mips.md (define_attr cpu): Sync with processor_type
15484 enum values, including adding entries that were missing.
15485
15486 2003-02-18 J"orn Rennecke <joern.rennecke@superh.com>
15487
15488 * sh.c (calc_live_regs): Also check GET_CODE when checking if
15489 initial value for PR_REG is still the PR_REG register.
15490
15491 2003-02-18 Jim Wilson <wilson@redhat.com>
15492
15493 * config/ia64/ia64.md (floatdidf2, floatdisf2): Add %, before second
15494 instruction in output template.
15495 (bsp_value): Change output template from string to C code, add %,
15496 before actual instruction.
15497 (flushrs): Mark as not predicable.
15498
15499 2003-02-18 Krister Walfridsson <cato@df.lth.se>
15500
15501 * inclhack.def (netbsd_bogus_semicolon): New fix.
15502 * fixincl.x: Rebuilt.
15503 * tests/base/ctype.h: Update.
15504
15505 2003-02-18 Roger Sayle <roger@eyesopen.com>
15506
15507 * fold-const.c (negate_expr_p): New function to determine whether
15508 an expression can be negated cheaply.
15509 (fold) [MINUS_EXPR]: Use it to determine whether to transform
15510 -A - B into -B - A for floating point types.
15511
15512 2003-02-18 Roger Sayle <roger@eyesopen.com>
15513
15514 * sbitmap.c (sbitmap_resize): New function.
15515 * sbitmap.h (sbitmap_resize): Prototype here.
15516 * recog.c (split_all_insns): Use sbitmap_resize.
15517
15518 2003-02-18 Kazu Hirata <kazu@cs.umass.edu>
15519
15520 * config/h8300/h8300.md (*zero_extendhisi2_h8300): Fix the
15521 insn length.
15522 (extendqisi2): Likewise.
15523 (*extendhisi2_h8300): Likewise.
15524
15525 2003-02-18 Matt Austern <austern@apple.com>
15526
15527 * langhooks.h, langhooks-def.h: introduce new langhook,
15528 final_write_globals, with write_global_declarations as default.
15529 * toplev.c: Move invocation of wrapup_global_declarations from
15530 compile_file to new function, write_global_declarations. Change
15531 compile_file to use final_write_globals hook. Change
15532 wrapup_global_declarations so writing to DECL_DEFER_OUTPUT is
15533 conditional.
15534
15535 2003-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15536
15537 * pa.md: Correct and enhance comment.
15538
15539 2003-02-18 Geoffrey Keating <geoffk@apple.com>
15540
15541 * gcc.c (validate_switches): Don't scan past closing '}'.
15542
15543 2003-02-18 Ben Elliston <bje@redhat.com>
15544
15545 PR c++/1607
15546 * doc/extend.texi (Function Attributes): Document the effect of
15547 the C++ "this" parameter on the counting of arguments for the
15548 "format" and "format_arg" attributes.
15549
15550 2003-02-17 Aldy Hernandez <aldyh@redhat.com>
15551
15552 * config/rs6000/spe.h (__ev_stdd): Cast 2nd arg.
15553 (__ev_stdw): Same.
15554 (__ev_stdh): Same.
15555
15556 2003-02-17 Jan Hubicka <jh@suse.cz>
15557
15558 * recog.c (split_all_insns): Fix memory overflow.
15559
15560 2003-02-17 Kazu Hirata <kazu@cs.umass.edu>
15561
15562 * config/h8300/h8300.md (cmpqi): Remove mode from compare.
15563 (cmphi): Likewise.
15564 (*cmphi_h8300): Likewise.
15565 (*cmphi_h8300hs): Likewise.
15566 (cmpsi): Likewise.
15567 (7 peephole2): Likewise.
15568
15569 2003-02-16 Jan Hubicka <jh@suse.cz>
15570
15571 * c-typeck.c (build_c_cast): Fold constant variables into
15572 initial values.
15573
15574 2003-02-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
15575
15576 * doc/install.texi (Specific): Fix link for m68k-att-sysv.
15577 (Binaries): Ditto for Sinix/Reliant Unix.
15578
15579 2003-02-16 Richard Earnshaw <rearnsha@arm.com>
15580
15581 * arm.c (arm_reload_in_hi): Ensure that the scratch register does
15582 not overlap the final result register.
15583
15584 2003-02-16 Arend Bayer <arend.bayer@web.de>
15585 Richard Henderson <rth@redhat.com>
15586
15587 PR c/8068
15588 * fold-const.c (extract_muldiv_1): Rename from extract_muldiv;
15589 rearrange mult arguments for less recursion.
15590 (extract_muldiv): New. Prevent runaway recursion.
15591
15592 2003-02-16 Danny Smith <dannysmith@users.sourceforge.net>
15593
15594 * config/i386/cygwin.h (TARGET_SUBTARGET_DEFAULT): Set
15595 MASK_ALIGN_DOUBLE.
15596
15597 2003-02-15 Roger Sayle <roger@eyesopen.com>
15598
15599 * config/i386/i386.c (x86_ext_80387_constants): Use 80387 insns
15600 to load mathematical constants on K6, Athlon, Pentium 4 and PPro.
15601 (ext_80387_constants_table): Global table of 80387 special constants
15602 guarded by ext_80387_constants_init flag when not initialized.
15603 (init_ext_80387_constants): New function to initialize this table.
15604 (standard_80387_constant_p): Extend to recognize extra 80387
15605 constants, in XFmode, on processors where this is a win.
15606 (standard_80387_constant_opcode): New function to return the
15607 opcode associated with standard_80387_constant_p.
15608 (standard_80387_constant_rtx): New function to return the XFmode
15609 CONST_DOUBLE associated with standard_80387_constant_p.
15610 (ix86_rtx_costs): Give the new constants the same cost as 1.0.
15611
15612 * config/i386/i386-protos.h (standard_80387_constant_opcode):
15613 Prototype here.
15614 (standard_80387_constant_rtx): Likewise.
15615
15616 * config/i386/i386.md (*movsf1, *movsf1_nointerunit, *movdf_nointeger,
15617 *movdf_integer, *movxf_nointeger, *movtf_nointeger, *movxf_integer,
15618 *movtf_integer): Simplify using new standard_80387_constant_opcode.
15619
15620 2003-02-15 Geoffrey Keating <geoffk@apple.com>
15621
15622 * doc/invoke.texi (Optimize Options): Correct @option syntax.
15623
15624 2003-02-15 Richard Henderson <rth@redhat.com>
15625
15626 * Makefile.in (cfglayout.o): Depend on TARGET_H.
15627 * cfglayout.c: Include target.h.
15628 (cfg_layout_can_duplicate_bb_p): Check targetm.cannot_copy_insn_p.
15629 * target-def.h (TARGET_CANNOT_COPY_INSN_P): New.
15630 * target.h (struct gcc_target): Add cannot_copy_insn_p.
15631
15632 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): New.
15633 (TARGET_CANNOT_COPY_INSN_P): New.
15634 (override_options): Revert 2003-02-08 hack.
15635
15636 2003-02-15 Richard Henderson <rth@redhat.com>
15637
15638 * gcse.c (bypass_block): Use BLOCK_FOR_INSN for resolving LABEL_REFs.
15639 (bypass_conditional_jumps): Accept computed_jump_p insns as well.
15640
15641 2003-02-15 David Edelsohn <edelsohn@gnu.org>
15642
15643 * config/rs6000/rs6000.h (processor_type): Add PPC440.
15644 * config/rs6000/rs6000.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
15645 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
15646 TARGET_SCHED_VARIABLE_ISSUE): Define.
15647 (rs6000_use_dfa_pipeline_interface): New function.
15648 (rs6000_multipass_dfa_lookahead): New Function.
15649 (rs6000_variable_issue): New function.
15650 (rs6000_adjust_cost): Add CMP and DELAYED_CR types.
15651 (rs6000_issue_rate): Add PPC440.
15652 * config/rs6000/rs6000.md (unspec list): Correct typo.
15653 (attr "type"): Add load_ext, load_ext_u, load_ext_ux, load_u,
15654 store_ux, store_u, fpload_ux, fpload_u, fpstore_ux, fpstore_u,
15655 cmp, delayed_cr, mfcr, mtcr.
15656 (automata_option): Set "ndfa".
15657 (extendMMNN2): Update attributes.
15658 (movcc_internal1): Discourage move to non-cr0. Update
15659 attributes.
15660 (movMM_update): Update attributes.
15661 (cmpMM_internal): Update attributes.
15662 (sCC CR materialization): Update attributes.
15663 (branch patterns): Do not discourage non-cr0.
15664 (cr logical patterns): Prefer destructive register allocation.
15665 Update attributes.
15666 (movesi_from_cr): Update attribute.
15667 (mtcrf_operation): Update attribute.
15668 (mtcrfsi): Update attribute.
15669 * config/rs6000/40x.md: New file.
15670 * config/rs6000/603.md: New file.
15671 * config/rs6000/6xx.md: New file.
15672 * config/rs6000/7450.md: New file.
15673 * config/rs6000/7xx.md: New file.
15674 * config/rs6000/mpc.md: New file.
15675 * config/rs6000/power4.md: New file.
15676 * config/rs6000/rios1.md: New file.
15677 * config/rs6000/rios2.md: New file.
15678 * config/rs6000/rs64.md: New file.
15679 [Some DFA descriptions based on work by Michael Hayes]
15680
15681 2003-02-15 Richard Henderson <rth@redhat.com>
15682
15683 * bb-reorder.c (find_traces_1_round): Don't connect easy to copy
15684 successors with multiple predecessors.
15685 (connect_traces): Try harder to copy traces of length 1.
15686
15687 * function.h (struct function): Add computed_goto_common_label,
15688 computed_goto_common_reg.
15689 * function.c (free_after_compilation): Zap them.
15690 * stmt.c (expand_computed_goto): Use them to produce one
15691 indirect branch per function.
15692
15693 2003-02-15 Richard Henderson <rth@redhat.com>
15694
15695 * cfgcleanup.c: Include params.h.
15696 (try_crossjump_bb): Use PARAM_MAX_CROSSJUMP_EDGES. Fix test for
15697 too many outgoing edges from a block.
15698 * Makefile.in (cfgcleanup.o): Depend on PARAMS_H.
15699 * params.def (max-crossjump-edges): New.
15700 * doc/invoke.texi: Document it.
15701
15702 2003-02-15 Richard Henderson <rth@redhat.com>
15703
15704 * recog.c (split_all_insns): Include new blocks in life update;
15705 do a global life update.
15706
15707 2003-02-15 Danny Smith <dannysmith@users.sourceforge.net>
15708
15709 * config/i386/mingw32.h (LIBGCC_SPEC): Add libmingwex.a.
15710 Update copyright.
15711 * config/i386/cygwin.h (LIBGCC_SPEC): Add libmingwex.a for
15712 -mno-cygwin case.
15713
15714 2003-02-14 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
15715
15716 PR optimization/7702
15717 * reload1.c (reload_cse_simplify_set): Honor
15718 CANNOT_CHANGE_MODE_CLASS.
15719
15720 2003-02-14 Alexandre Oliva <aoliva@redhat.com>
15721
15722 * config/mn10300/mn10300.c (mn10300_wide_const_load_uses_clr): New
15723 function.
15724 * config/mn10300/mn10300-protos.h: Declare it.
15725 * config/mn10300/mn10300.md (movdi, movdf): Use it to compute
15726 attribute cc of instructions that may use clr.
15727
15728 2003-02-14 Kazu Hirata <kazu@cs.umass.edu>
15729
15730 * simplify-rtx.c (simplify_binary_operation): Simplify ~y when
15731 (x - (x & y)) is found.
15732
15733 2003-02-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
15734
15735 * configure.in: Fix typo.
15736 * configure: Regenerate.
15737
15738 2003-02-14 Kazu Hirata <kazu@cs.umass.edu>
15739
15740 * config/h8300/h8300.md (*iorsi2_and_1_lshiftrt_1): New.
15741
15742 2003-02-13 Adam Nemet <anemet@lnxw.com>
15743
15744 PR opt/2391
15745 * combine.c: Fix spelling in comment.
15746 (cached_nonzero_bits): New function.
15747 (cached_num_sign_bit_copies): New function.
15748 (nonzero_bits_with_known): New macro.
15749 (num_sign_bit_copies_with_known): New macro.
15750 (nonzero_bits1): Rename from nonzero_bits. Add three new
15751 arguments. Change calls from nonzero_bits to
15752 nonzero_bits_with_known.
15753 (num_sign_bit_copies1): Rename from num_sign_bit_copies. Add
15754 three new arguments. Change calls from num_sign_bit_copies to
15755 num_sign_bit_copies_with_known.
15756 (nonzero_bits): New macro.
15757 (num_sign_bit_copies): New macro.
15758 (update_table_tick): Don't traverse identical subexpression more
15759 than once.
15760 (get_last_value_validate): Likewise.
15761
15762 2003-02-13 Zack Weinberg <zack@codesourcery.com>
15763
15764 * emit-rtl.c (init_emit): Use ggc_alloc for regno_reg_rtx.
15765 * function.h (struct emit_status): Length of regno_pointer_align
15766 and x_regno_reg_rtx as seen by gengtype is only x_reg_rtx_no,
15767 not regno_pointer_align_length (i.e. length actually used, not
15768 length as allocated)
15769
15770 * config/i386/i386.c (struct stack_local_entry): New.
15771 (struct machine_function): Replace huge array with alist.
15772 (assign_386_stack_local): Change to match.
15773
15774 2003-02-13 John David Anglin <dave.anglin@nrc-crnc.gc.ca>
15775
15776 * inclhack.def (hpux_long_double): Tighten select and add bypass
15777 regexp.
15778 * fixincl.x: Rebuilt.
15779
15780 2003-02-13 Josef Zlomek <zlomekj@suse.cz>
15781
15782 * cfgcleanup.c (outgoing_edges_match): When there is single outgoing
15783 edge and block ends with a jump insn it must be simple jump.
15784
15785 2003-02-13 Daniel Jacobowitz <drow@mvista.com>
15786
15787 * Makefile.in (PREPROCESSOR_DEFINES): Add
15788 @TARGET_SYSTEM_ROOT_DEFINE@.
15789 * configure.in (PREFIX_INCLUDE_DIR): Don't define if $with_sysroot
15790 is specified or if building a cross compiler.
15791 (TARGET_SYSTEM_ROOT_DEFINE): Add TARGET_SYSTEM_ROOT_RELOCATABLE
15792 if the sysroot is under $exec_prefix.
15793 * configure: Regenerated.
15794 * cppdefault.h: Use native include paths if TARGET_SYSTEM_ROOT is
15795 defined.
15796 (struct default_include): Add add_sysroot field.
15797 (cpp_SYSROOT): Declare.
15798 * cppdefault.c (cpp_include_defaults): Fill in add_sysroot
15799 field.
15800 (cpp_SYSROOT): New variable.
15801 * cppinit.c (cpp_create_reader): Initialize
15802 CPP_OPTION (pfile, sysroot).
15803 (init_standard_includes): Handle add_sysroot. Do not
15804 add unrelocated copies of relocated directories.
15805 (COMMAND_LINE_OPTIONS): Add -isysroot.
15806 (cpp_handle_option): Handle -isysroot.
15807 * cpplib.h (struct cpp_options): Add sysroot member.
15808 * gcc.c (The Specs Language): Update description of %I.
15809 (target_system_root_changed): New variable.
15810 (process_command): Conditionalize make_relative_prefix call
15811 on !VMS and TARGET_SYSTEM_ROOT_RELOCATABLE. Set
15812 target_system_root_changed.
15813 (do_spec_1): Add -isysroot to %I.
15814 * doc/invoke.texi (Spec Files): Update description of %I.
15815 * doc/install.texi (--with-sysroot): Update comment about
15816 relocation.
15817
15818 2003-02-13 Kazu Hirata <kazu@cs.umass.edu>
15819
15820 * config/h8300/h8300.md (a peephole2): New.
15821
15822 2003-02-13 Robert Lipe <robertlipe@usa.net>
15823 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
15824
15825 * doc/install.texi (Specific): Update three SCO-related URLs.
15826
15827 2003-02-13 Andreas Schwab <schwab@suse.de>
15828
15829 * cgraph.c (SET_NPREDECESORS): Add intermediate cast to size_t.
15830 Parenthesize properly.
15831 (NPREDECESORS): Parenthesize properly.
15832
15833 2003-02-13 Gabriel Dos Reis <gdr@integrable-solutions.net>
15834
15835 * timevar.h (POP_TIMEVAR_AND_RETURN): New macro.
15836
15837 2003-02-12 Roger Sayle <roger@eyesopen.com>
15838
15839 * config/i386/i386.md (UNSPEC_FPATAN): New UNSPEC constant.
15840 (atan2sf3, atan2df3, atan2xf3, atan2tf3): New patterns.
15841
15842 * reg-stack.c (subst_stack_regs_pat): Add support for binary
15843 UNSPEC instructions (e.g. "fpatan").
15844
15845 2003-02-12 Mike Stump <mrs@apple.com>
15846
15847 * varray.c (element_size): Remove.
15848 (uses_ggc): Remove.
15849 (element): Add.
15850 (varray_init): Use new interface.
15851 (varray_grow): Use new interface.
15852 (varray_clear): Use new interface.
15853
15854 2003-02-12 Aldy Hernandez <aldyh@redhat.com>
15855
15856 * config/rs6000/spe.h: Add casts to the arguments of the following
15857 macros: evfsabs, evfsnabs, evfsneg, evfsadd, evfssub, evfsmul,
15858 evfsdiv, evfscfui, evfscfsi evfscfuf evfscfsf, evfsctui, evfsctsi,
15859 evfsctuf, evfsctsf, evfsctuiz, evfsctsiz, __ev_get_upper*,
15860 __ev_get_lower*, __ev_get_u32, __ev_get_s32, __ev_get_fs,
15861 __ev_get_u16, __ev_get_s16.
15862
15863 2003-02-12 Kazu Hirata <kazu@cs.umass.edu>
15864
15865 * config/h8300/h8300.md (a peephole2): New.
15866
15867 2003-02-12 Jan Hubicka <jh@suse.cz>
15868
15869 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-unit-at-a-time
15870 (OBJS): Add callgraph.o
15871 (callgraph.o): New.
15872 * c-decl.c (expand_body_1): Break out from ...
15873 (expand_body): This one; change calling convention
15874 (finish_function): Move some of expand_body logic here.
15875 (c_expand_deferred_function): Update call of expand_body
15876 (c_expand_stmt): Use c_expand_body_1.
15877 * c-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Define.
15878 * c-objc-commin.c (c_objc_common_finish_file): Use callgraph code.
15879 * c-tree.h (c_expand_body): Declare.
15880 * callgraph.c: New file.
15881 * flags.h (flag_unit_at_a_time): Declare.
15882 * langhooks.h (LANG_HOOKS_CALLGRAPH_LOWER_FUNCTION,
15883 LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION,
15884 LANG_HOOKS_CALLGRAPH_INITIALIZER): New macros.
15885 * langhooks.h (struct lang_hooks_for_callgraph): New.
15886 (struct lang_hooks): Add callgraph field.
15887 * toplev.c (flag_unit_at_a_time): New.
15888 (lang_independent_options): Add flag_unit_at_a_time.
15889 (process_options): Disable unit-at-a-time mode for frontends not
15890 supporting callgraph.
15891 * tree-inline.c (typedef struct inline_data): Add "decl"
15892 (expand_call_inline): Update callgraph.
15893 (optimize_inline_calls): Set id.decl.
15894 * tree.h (cgraph_finalize_function, cgraph_finalize_compilation_unit,
15895 cgraph_create_edges, dump_cgraph, cgraph_optimize, cgraph_remove_call
15896 cgraph_calls_p): Declare.
15897 * invoke.texi (-funit-at-a-time): Document
15898
15899 2003-02-12 Aldy Hernandez <aldyh@redhat.com>
15900
15901 * config/rs6000/spe.h: Fix misc formatting.
15902 (__ev_create_ufix32_fs): Cast ev argument.
15903 (__ev_create_sfix32_fs): Same.
15904 (__ev_get_sfix32_fs_internal): Cast arguments to builtins.
15905 (__ev_get_ufix32_fs_internal): Same.
15906
15907 2003-02-12 Ranjit Mathew <rmathew@hotmail.com>
15908
15909 * doc/tm.texi (MODIFY_JNI_METHOD_CALL): Document.
15910 * config/i386/cygwin.h (MODIFY_JNI_METHOD_CALL): New macro.
15911
15912 2003-02-12 Zack Weinberg <zack@codesourcery.com>
15913
15914 * cpplib.c (do_include_common): Move warnings for
15915 #include_next and #import out to callers. Use early-return
15916 instead of nested ifs. Don't do check_eol here.
15917 (parse_include): Do check_eol here with the rest of the
15918 parsing stuff.
15919 (do_include_next, do_import): Now handle warnings.
15920
15921 2003-02-11 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
15922
15923 * doc/install.texi (Specific): Update AVR- and Darwin-related URLs.
15924
15925 2003-02-12 Jan Hubicka <jh@suse.cz>
15926
15927 * predict.c (estimate_probability): Fix roundoff error.
15928
15929 2003-02-12 Kazu Hirata <kazu@cs.umass.edu>
15930
15931 * config/h8300/h8300.md (a peephole2): Don't handle 65535.
15932 (two peephole2): New.
15933
15934 2003-02-12 Kazu Hirata <kazu@cs.umass.edu>
15935
15936 * config/h8300/h8300.md (several peephole2): Replace
15937 find_regno_note with peep2_reg_dead_p.
15938
15939 2003-02-11 Richard Henderson <rth@redhat.com>
15940
15941 * gcse.c (lookup_set): Remove unused argument PAT. Update
15942 both callers.
15943
15944 2003-02-11 Geoffrey Keating <geoffk@apple.com>
15945
15946 * diagnostic.c (real_abort): New.
15947 (diagnostic_report_diagnostic): Call real_abort on error.
15948 * diagnostic.h (diagnostic_abort_on_error): New.
15949 (struct diagnostic_context): Add abort_on_error field.
15950 * toplev.c (setup_core_dumping): New.
15951 (decode_d_option): Handle 'H' case.
15952 * doc/invoke.texi (Debugging Options): Document -dH.
15953
15954 2003-02-11 Nathanael Nerode <neroden@gcc.gnu.org>
15955
15956 * Makefile.in: Remove pointless setting of CXXFLAGS for dejagnu
15957 which refers to obsolete directories.
15958
15959 2003-02-11 Richard Henderson <rth@redhat.com>
15960
15961 * config/alpha/linux.h (TARGET_C99_FUNCTIONS): New.
15962
15963 2002-10-21 Jan Hubicka <jh@suse.cz>
15964
15965 * i386.c (contains_128bit_aligned_vector_p): New function.
15966 (ix86_function_arg_boundary): Properly align vector modes.
15967
15968 2003-02-11 Bob Wilson <bob.wilson@acm.org>
15969
15970 * config/xtensa/xtensa.md (set_frame_ptr): Change rtl to set reg a7.
15971 * config/xtensa/xtensa.c (xtensa_reorg): Search for UNSPECV_SET_FP
15972 as a SET pattern.
15973
15974 2003-02-11 Roger Sayle <roger@eyesopen.com>
15975
15976 * builtins.c: Fix failure caused by commiting wrong patch.
15977
15978 2003-02-11 Dale Johannesen <dalej@apple.com>
15979 * ra-build.c (compare_and_free_webs): Relax checking.
15980 * config/rs6000/darwin.h (HOT_TEXT_SECTION_NAME): Define.
15981 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
15982
15983 2003-02-11 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
15984
15985 PR optimization/9651
15986 * rtlanal.c (may_trap_p): Handle FIX.
15987
15988 2003-02-11 Dave Jones <davej@codemonkey.org.uk>
15989
15990 * config/i386/i386.c (override_options): Define c3-2 as a 686 with SSE.
15991 * doc/invoke.texi: Extra alias.
15992
15993 2003-02-11 Geoffrey Keating <geoffk@apple.com>
15994
15995 * config/rs6000/host-darwin.c: Fix comment.
15996
15997 2003-02-11 David Edelsohn <edelsohn@gnu.org>
15998
15999 * config/rs6000/rs6000.md (divmodsi4): Use register_operand
16000 predicate for mod result.
16001
16002 2003-02-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16003
16004 * inclhack.def (hpux_long_double, hpux10_ctype_declarations1,
16005 hpux10_ctype_declarations2, hpux_ctype_macros): New hacks.
16006 * fixincl.x: Rebuilt.
16007 * tests/base/stdlib.h: Update.
16008 * tests/base/ctype.h: New file.
16009
16010 2003-02-11 Jan Hubicka <jh@suse.cz>
16011
16012 * emit-rtl.c (emit_copy_of_insn_after): Copy insn recog cache too.
16013
16014 2003-02-11 Richard Henderson <rth@redhat.com>
16015
16016 * config/i386/i386.c (ix86_expand_movstr): Fail if esi or edi
16017 appropriated as globals.
16018 (ix86_expand_clrstr): Similarly.
16019 * config/i386/i386.md (cmpstrsi): Similarly.
16020
16021 2003-02-11 Kazu Hirata <kazu@cs.umass.edu>
16022
16023 * config/h8300/h8300.md (a peephole2): Add a case of 255.
16024
16025 2003-02-11 Roger Sayle <roger@eyesopen.com>
16026
16027 * optabs.h (enum optab_index): Add new OTI_pow and OTI_atan2.
16028 (pow_optab, atan2_optab): Define corresponding macros.
16029 * optabs.c (init_optabs): Initialize pow_optab and atan2_optab.
16030 * genopinit.c (optabs): Implement pow_optab and atan2_optab
16031 using pow?f3 and atan2?f3 patterns.
16032 * builtins.c (expand_errno_check): New function to update errno
16033 if necessary, split out from expand_builtin_mathfn.
16034 (expand_builtin_mathfn): Use expand_errno_check.
16035 (expand_builtin_mathfn_2): New function to handle expanding binary
16036 math functions, reusing the code in expand_errno_check.
16037 (expand_builtin): Handle the pow and atan2 math built-ins,
16038 BUILT_IN_{POW,POWF,POWL,ATAN2,ATAN2F,ATAN2L} via the new function
16039 expand_builtin_mathfn_2.
16040
16041 * doc/md.texi: Document new pow?f3 and atan2?f3 patterns.
16042
16043 2003-02-11 Jan Hubicka <jh@suse.cz>
16044
16045 * combine.c (combine_simplify_rtx): Fix folding of
16046 nested float_truncates.
16047
16048 2003-02-11 Kazu Hirata <kazu@cs.umass.edu>
16049
16050 * config/h8300/h8300.md (a peephole2): Fix a typo.
16051
16052 2003-02-11 Richard Earnshaw <rearnsha@arm.com>
16053
16054 * arm.mc (return_address_mask): Use CC_REGNUM for the condition code
16055 register number.
16056
16057 2003-02-11 Kazu Hirata <kazu@cs.umass.edu>
16058
16059 * config/h8300/h8300-protos.h: Add a prototype for
16060 gtuleu_operator.
16061 * config/h8300/h8300.c (gtuleu_operator): New.
16062 * config/h8300/h8300.h (PREDICATE_CODES): Add gtuleu_operator.
16063 * config/h8300/h8300.md (a peephole2): New.
16064
16065 2003-02-11 Jan Hubicka <jh@suse.cz>
16066
16067 * sched-ebb.c (schedule_ebbs): Do not verify_flow_info.
16068
16069 2003-02-11 Jan Hubicka <jh@suse.cz>
16070
16071 * predict.c (choose_function_section): Choose sections correctly.
16072
16073 2003-02-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16074
16075 * reload1.c (first_label_num): New.
16076 (reload): Index offsets_known_at and offsets_at using difference of
16077 label number and first label number. Don't use offset pointers.
16078 (set_label_offsets, set_initial_label_offsets): Likewise.
16079
16080 2003-02-10 Roger Sayle <roger@eyesopen.com>
16081
16082 * mips-tfile.c (init_file): Add missing initializers in the
16083 "#ifdef __alpha" case.
16084 (file_offset, max_file_offset): Declare as unsigned long.
16085 (write_varray): Cast to "unsigned long" in comparisons against
16086 either file_offset or max_file_offset.
16087 (write_object): Likewise.
16088 (read_seek): Likewise.
16089 (copy_object): Likewise. Declare "ifd" as int to match its use
16090 in add_ext_symbol, and avoid signed/unsigned conditional warning.
16091
16092 2003-02-10 Nick Clifton <nickc@redhat.com>
16093 Aldy Hernandez <aldyh@redhat.com>
16094
16095 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Do not
16096 override options which have been specified on the command line.
16097
16098 2003-02-10 Kazu Hirata <kazu@cs.umass.edu>
16099
16100 * config/h8300/h8300.md (abssf2): New.
16101 (*abssf2_h8300): Likewise.
16102 (*abssf2_h8300hs): Likewise.
16103
16104 2003-02-10 Phil Edwards <pme@gcc.gnu.org>
16105
16106 * tree.c (build_tree_list): Fix parameter names in comment.
16107
16108 2003-02-10 Janis Johnson <janis187@us.ibm.com>
16109
16110 * config/rs6000/ppc64-fp.c: New file.
16111 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Add ppc64-fp.c.
16112
16113 2003-02-10 Josef Zlomek <zlomekj@suse.cz>
16114
16115 * Makefile.in (bb-reorder.o): Add dependency on $(FIBHEAP_H).
16116 * bb-reorder.c (make_reorder_chain): Deleted.
16117 (make_reorder_chain_1): Deleted.
16118 (find_traces): New function.
16119 (rotate_loop): New function.
16120 (mark_bb_visited): New function.
16121 (find_traces_1_round): New function.
16122 (copy_bb): New function.
16123 (bb_to_key): New function.
16124 (better_edge_p): New function.
16125 (connect_traces): New function.
16126 (copy_bb_p): New function.
16127 (get_uncond_jump_length): New function.
16128 (reorder_basic_blocks): Use new functions (Software Trace Cache).
16129 * cfgcleanup.c (outgoing_edges_match): Enable crossjumping across loop
16130 boundaries.
16131
16132 2003-02-10 Aldy Hernandez <aldyh@redhat.com>
16133
16134 * config/rs6000/rs6000.c (bdesc_2arg): Change spe_evxor to xorv2si3.
16135
16136 2003-02-09 Dan Nicolaescu <dann@ics.uci.edu>
16137
16138 * tree.h (struct tree_decl): Remove unused live_range_rtl field.
16139 (DECL_LIVE_RANGE_RTL): Remove.
16140
16141 2003-02-10 Nick Clifton <nickc@redhat.com>
16142
16143 * config/arm/aof.h, config/arm/aout.h, config/arm/arm-modes.def,
16144 config/arm/arm-protos.h, config/arm/arm.c, config/arm/arm.h,
16145 config/arm/arm.md, config/arm/cirrus.md, config/arm/coff.h,
16146 config/arm/conix-elf.h, config/arm/ecos-elf.h, config/arm/elf.h,
16147 config/arm/freebsd.h, config/arm/linux-elf.h,
16148 config/arm/linux-gas.h, config/arm/netbsd-elf.h,
16149 config/arm/netbsd.h, config/arm/pe.c, config/arm/pe.h,
16150 config/arm/rtems-elf.h, config/arm/semi.h, config/arm/semiaof.h,
16151 config/arm/strongarm-coff.h, config/arm/strongarm-elf.h,
16152 config/arm/strongarm-pe.h, config/arm/uclinux-elf.h,
16153 config/arm/unknown-elf-oabi.h, config/arm/unknown-elf.h,
16154 config/arm/xscale-elf.h: Replace occurances of "GNU CC" with "GCC"
16155 and reformat as appropriate.
16156
16157 2003-02-10 Kazu Hirata <kazu@cs.umass.edu>
16158
16159 * config/h8300/clzsi2.c: Remove.
16160 * config/h8300/ctzsi2.c: Likewise.
16161 * config/h8300/paritysi2.c: Likewise.
16162 * config/h8300/popcountsi2.c: Likewise.
16163 * config/h8300/t-h8300 (LIB2FUNCS_EXTRA): Remove clzsi2,
16164 ctzsi2, paritysi2, and popcountsi2.
16165
16166 2003-02-10 Eric Botcazou <ebotcazou@libertysurf.fr>
16167 Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
16168
16169 PR c/7741
16170 * c-decl.c (duplicate_decls): Discard the initializer of the
16171 new decl when the types are conflicting.
16172
16173 2003-02-10 Josef Zlomek <zlomekj@suse.cz>
16174
16175 * Makefile.in (sreal.o): Added.
16176 (predict.o): Depends on sreal.h instead of real.h.
16177 * sreal.c: New file.
16178 * sreal.h: New file.
16179 * predict.c: Use sreal.c instead of real.c.
16180
16181 2003-02-10 Nick Clifton <nickc@redhat.com>
16182
16183 * Contributed support for the Cirrus EP9312 "Maverick"
16184 floating point co-processor. Written by Aldy Hernandez
16185 <aldyh@redhat.com>.
16186 (config/arm/arm.c): Add Cirrus support.
16187 (config/arm/arm.h): Likewise.
16188 (config/arm/aout.h): Likewise.
16189 (config/arm/arm.md): Likewise.
16190 (config/arm/arm-protos.h): Likewise.
16191 (config.gcc): Likewise.
16192 (doc/invoke.texi): Describe new -mcpu value and new
16193 -mcirrus-fix-invalid-insns switch,
16194 (cirrus.md): New file.
16195
16196 2003-02-10 Jan Hubicka <jh@suse.cz>
16197
16198 * combine.c (combine_simplify_rtx): Simplify using
16199 (float_truncate (float x)) is (float x)
16200 (float_extend (float_extend x)) is (float_extend x).
16201
16202 2003-02-10 Alan Modra <amodra@bigpond.net.au>
16203
16204 * calls.c (try_to_integrate): Tidy stack_usage_map access.
16205 (emit_library_call_value_1): Likewise. Formatting.
16206 (store_one_arg): Likewise.
16207
16208 2003-02-09 Nick Clifton <nickc@redhat.com>
16209 Aldy Hernandez <aldyh@redhat.com>
16210
16211 * config/rs6000/spe.md: spe_evlhhesplat, spe_evlhhossplat,
16212 spe_evlhhousplat, spe_evlwhsplat, spe_evlwwsplat, spe_evldd,
16213 spe_evldh, spe_evldw, spe_evlwhe, spe_evlwhos, spe_evlwhou,
16214 spe_evstdd, spe_evstdh, spe_evstdw, spe_evstdwx, spe_evstwhe,
16215 spe_evstwho, spe_evstwwe, spe_evstwwo: Fix syntax to match newest
16216 docs. Add range test for immediate value.
16217
16218 2003-02-09 Aldy Hernandez <aldyh@redhat.com>
16219
16220 Rename spe_evxor to xorv2si3.
16221 (xorv4hi3): New.
16222 (xorv1di3): New.
16223
16224 2003-02-10 Glen Nakamura <glen@imodulo.com>
16225
16226 * doc/extend.texi (C++98 Thread-Local Edits): Add missing @item
16227 tag.
16228
16229 2003-02-10 Jan Hubicka <jh@suse.cz>
16230
16231 * i386.c (vector_move_operand): New predicate.
16232 (ix86_expand_vector_move): Be happy about 0.
16233 * i386.h (PREDICATE_CODES): Add sse-move_operand.
16234 * i386.md (mov*_internal): Add 'C' alternative.
16235
16236 2003-02-09 Jan Hubicka <jh@suse.cz>
16237
16238 * i386.md (floathi*): Deal with SSE.
16239
16240 2003-02-09 Jan Hubicka <jh@suse.cz>
16241
16242 * simplify-rtx.c (simplify_unary_operation,
16243 simplify_binary_operation): Deal with vector modes
16244 (simplify_ternary_operation): Deal with no-op VEC_MERGE.
16245
16246 2003-02-09 Richard Sandiford <rsandifo@redhat.com>
16247
16248 * toplev.c (rest_of_compilation): Recompute register usage after
16249 split_all_insns.
16250
16251 2003-02-09 Richard Henderson <rth@redhat.com>
16252
16253 * libgcc-std.ver (__clztf2): New.
16254 (__ctztf2, __popcounttf2, __paritytf2): New.
16255 * libgcc2.c (__clzSI2, __clzDI2, __ctzSI2, __ctzDI2, __popcountSI2,
16256 __popcountDI2, __paritySI2, __parityDI2): Use UWmode and UDWmode;
16257 adjust code to match the different type sizes.
16258 * libgcc2.h (__clzSI2, __ctzSI2, __popcountSI2, __paritySI2,
16259 __clzDI2, __ctzDI2, __popcountDI2, __parityDI2): New macros.
16260
16261 * optabs.c (init_integral_libfuncs): Don't hard-code SImode and
16262 TImode; select word_mode and twice that.
16263 (init_floating_libfuncs): Don't hard-code SFmode and TFmode;
16264 select the modes from float, double, and long double.
16265 (init_optabs): Remove duplicate initializations.
16266
16267 2003-02-09 Wolfgang Bangerth <bangerth@ticam.utexas.edu>
16268
16269 * doc/install.texi: Squeeze and streamline section on
16270 testing and regression checking.
16271
16272 2003-02-09 Jan Hubicka <jh@suse.cz>
16273
16274 * i386.md (ahi?v*3): Set third operand type to TImode.
16275 * i386.c (ix86_expand_binop_builtin): Extend operand when needed.
16276
16277 * simplify-rtx.c (simplify_subreg): Fix conversion from vector into
16278 integer mode.
16279
16280 * rtl.def (VEC_MERGE, VEC_SELECT, VEC_CONCAT, VEC_DUPLICATE):
16281 Change code so they are arithmetic expressions now.
16282 * simplify-rtx.c (simplify_unary_operation, simplify_binary_operation,
16283 simplify_ternary_operation): Deal with VEC_* expressions.
16284
16285 * i386.md (vmaskcmp, pinsrw, movd patterns): Fix RTL representation.
16286
16287 2003-02-08 Jan Hubicka <jh@suse.cz>
16288
16289 * cfgrtl.c (verify_flow_info): Use control_flow_insn_p.
16290 * reload1.c (fixup_abnormal_edges): Split basic blocks when EH edges
16291 possibly got duplicated.
16292
16293 2003-02-08 Richard Henderson <rth@redhat.com>
16294
16295 * config/alpha/alpha.c (override_options): Turn off explicit
16296 relocs until post-peep2 code duplication resolved.
16297
16298 2003-02-08 Kazu Hirata <kazu@cs.umass.edu>
16299
16300 * optabs.c (expand_unop): Widen clz properly when clz is done
16301 via libcall.
16302
16303 2003-02-08 Kazu Hirata <kazu@cs.umass.edu>
16304
16305 * config/h8300/clzsi2.c: Replace "GNU CC" with "GCC".
16306 * config/h8300/crti.asm: Likewise.
16307 * config/h8300/crtn.asm: Likewise.
16308 * config/h8300/ctzsi2.c: Likewise.
16309 * config/h8300/fixunssfsi.c: Likewise.
16310 * config/h8300/h8300-protos.h: Likewise.
16311 * config/h8300/h8300.c: Likewise.
16312 * config/h8300/h8300.h: Likewise.
16313 * config/h8300/h8300.md: Likewise.
16314 * config/h8300/paritysi2.c: Likewise.
16315 * config/h8300/popcountsi2.c: Likewise.
16316 * config/h8300/rtems.h: Likewise.
16317
16318 2003-02-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
16319
16320 * doc/invoke.texi: Documentation for my previous commit.
16321 * doc/passes.texi: Ditto.
16322
16323 2003-02-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
16324
16325 * cfgloop.h (fix_loop_placement, can_duplicate_loop_p,
16326 duplicate_loop_to_header_edge, loopify, remove_path, split_loop_bb):
16327 Declare.
16328 (DLTHE_FLAG_UPDATE_FREQ): New.
16329 * cfgloopmanip.c (duplicate_loop, duplicate_subloops, copy_loops_to,
16330 loop_redirect_edge, loop_delete_branch_edge, copy_bbs, remove_bbs,
16331 rpe_enum_p, find_branch, alp_enum_p, add_loop, fix_loop_placements,
16332 fix_bb_placement, fix_bb_placements, place_new_loop,
16333 scale_loop_frequencies, scale_bbs_frequencies, record_exit_edges):
16334 New static functions.
16335 (fix_loop_placement, can_duplicate_loop_p,
16336 duplicate_loop_to_header_edge, loopify, remove_path, split_loop_bb):
16337 New functions.
16338
16339 * cfgloop.h (loop_optimizer_init, loop_optimizer_finalize,
16340 unswitch_loops): Declare.
16341 * loop-init.c: New file.
16342 * loop-unswitch.c: New file.
16343 * Makefile.in (loop-init.o, loop-unswitch.o): New.
16344 * params.def (PARAM_MAX_UNSWITCH_INSNS, PARAM_MAX_UNSWITCH_LEVEL): New.
16345 * toplev.c (DFI_loop2): New dump.
16346 (flag_unswitch_loops): New.
16347 (lang_independent_options): Add it.
16348 (rest_of_compilation): Call new loop optimizer.
16349 (parse_options_and_default_flags): Turn flag_unswitch_loops on with -O3.
16350
16351 2003-02-08 Kazu Hirata <kazu@cs.umass.edu>
16352
16353 * config/h8300/clzsi2.c: New.
16354 * config/h8300/ctzsi2.c: Likewise.
16355 * config/h8300/paritysi2.c: Likewise.
16356 * config/h8300/popcountsi2.c: Likewise.
16357 * config/h8300/t-h8300 (LIB2FUNCS_EXTRA): Add above files.
16358
16359 2003-02-07 David Edelsohn <edelsohn@gnu.org>
16360
16361 * config/rs6000/rs6000.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
16362 * config/rs6000/rs6000.md (clzsi2): Rename from cntlzw2.
16363 (ctzsi2): New pattern.
16364 (ffssi2): Use clz instead of unspec.
16365 (clzdi2): Rename from cntlzd2.
16366 (ctzdi2): New pattern.
16367 (ffsdi2): Use clz instead of unspec.
16368
16369 2003-02-07 Loren James Rittle <ljrittle@acm.org>
16370
16371 * config/alpha/freebsd.h (LINK_SPEC): Weaken error to notice.
16372 * config/ia64/freebsd.h (LINK_SPEC): Likewise.
16373 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
16374 * config/i386/freebsd.h (LINK_SPEC): Add clause to mirror other arches.
16375
16376 2003-02-07 Wolfgang Bangerth <bangerth@ticam.utexas.edu>
16377
16378 * doc/trouble.texi: Document pitfalls of two-stage name lookup.
16379
16380 2003-02-07 Richard Henderson <rth@redhat.com>
16381
16382 PR 9226
16383 * gcse.c (local_cprop_find_used_regs): New.
16384 (local_cprop_pass): Use it.
16385
16386 2003-02-07 Fred Fish <fnf@intrinsity.com>
16387
16388 * mips-tfile.c (parse_def): Parenthesize assignments to fix
16389 precedence bugs.
16390
16391 2003-02-07 Segher Boessenkool <segher@koffie.nl>
16392
16393 * genoutput.c (output_get_insn_name): Handle NOOP_MOVE_INSN_CODE.
16394
16395 2003-02-07 Roger Sayle <roger@eyesopen.com>
16396
16397 * builtin-types.def (BT_FN_FLOAT_FLOAT_FLOAT): New built-in type.
16398 (BT_FN_LONG_DOUBLE_LONG_DOUBLE_LONG_DOUBLE): Likewise.
16399 (BT_FN_DOUBLE_DOUBLE_DOUBLE): Likewise.
16400 * builtins.def: Define pow, powf, powl, atan2, atan2f and atan2l
16401 builtin functions (and their __builtin_* variants).
16402 * builtins.c (mathfn_built_in): Handle missing log{,f,l} cases.
16403 (expand_builtin): Don't expand log{,f,l}, pow{,f,l} or atan2{,f,l}
16404 when not optimizing.
16405
16406 * doc/extend.texi: Document new pow and atan2 builtins, and
16407 their float and long double variants. Realphabetize builtins.
16408
16409 2003-02-07 Jan Hubicka <jh@suse.cz>
16410
16411 * i386.md (sse2_nandv2di3): Fix.
16412
16413 2003-03-07 Danny Smith <dannysmith@users.sourceforge.net>
16414
16415 * config/i386/i386.h (MS_AGGREGATE_RETURN): New define.
16416 * config/i386/cygwin.h (MS_AGGREGATE_RETURN): Override default
16417 definition.
16418 * config/i386/i386.h (ix86_return_in_memory): Return aggregate
16419 types of up to 8 bytes via registers if MS_AGGREGATE_RETURN.
16420
16421 2003-02-07 Jan Hubicka <jh@suse.cz>
16422
16423 * i386.md (movdi_rex64_1): Fix mmx<->int move opcode.
16424
16425 2003-02-07 Daniel Berlin <dberlin@dberlin.org>
16426
16427 * cfg.c (dump_flow_info): Add back accidently deleted line.
16428
16429 2003-02-07 Andrey Petrov <petrov@netbsd.org>
16430
16431 * optabs.c (expand_float): Search wider integer modes first.
16432
16433 2003-02-07 Bob Wilson <bob.wilson@acm.org>
16434
16435 * config/xtensa/xtensa.h (LIBGCC2_WORDS_BIG_ENDIAN): Set this
16436 based on preprocessor flag.
16437
16438 2003-02-07 Roger Sayle <roger@eyesopen.com>
16439 Richard Henderson <rth@redhat.com>
16440
16441 * gcse.c (implicit_sets): New.
16442 (compute_hash_table_work): Include them in hash table.
16443 (find_implicit_sets, fis_get_condition): New.
16444 (one_cprop_pass): Allocate and free implicit_sets; call
16445 find_implicit_sets before building hash table.
16446
16447 2003-02-07 Jason Thorpe <thorpej@wasabisystems.com>
16448
16449 * config/t-netbsd (USER_H): Revert previous change.
16450
16451 2003-02-07 Gabor Greif <ggreif@lucent.com>
16452
16453 * doc/c-tree.texi (Namespaces): Fix typo.
16454
16455 2003-02-07 Jan Hubicka <jh@suse.cz>
16456
16457 * regrename.c (do_replace, find_oldest_value_reg,
16458 copyprop_hardreg_forward_1): Update register attributes.
16459
16460 2003-02-06 Vladimir Makarov <vmakarov@redhat.com>
16461
16462 * genautomata.c (VLA_PTR_CREATE, VLA_PTR_EXPAND, VLA_PTR_ADD,
16463 VLA_HWINT_CREATE, VLA_HWINT_EXPAND, VLA_HWINT_ADD): Use temporay
16464 variables starting with underscore.
16465 (struct unit_usage): New structure.
16466 (unit_usages, cycle_alt_unit_usages): New global variables.
16467 (check_unit_distribution_in_reserv): Remove it.
16468 (store_alt_unit_usage): New function.
16469 (check_regexp_units_distribution): Rewrite it.
16470
16471 2003-02-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16472
16473 * config.gcc (hppa*-*-linux*): Set MASK_NO_SPACE_REGS in
16474 target_cpu_default.
16475 * pa.c (attr_length_call): Add 8 to call length (long indirect PA 1.X)
16476 if not MASK_NO_SPACE_REGS.
16477 (output_call): Adjust return pointer, don't load new space register
16478 into %sr0, and use %sr4 for call if TARGET_NO_SPACE_REGS is true.
16479 (pa_asm_output_mi_thunk): Don't load new space register into %sr0 if
16480 TARGET_NO_SPACE_REGS is true.
16481 * pa.md (return_external_pic): Add TARGET_NO_SPACE_REGS to insn
16482 conditions.
16483 (epilogue): Always use return_internal if TARGET_NO_SPACE_REGS is true.
16484 (interspace_jump): Add new pattern for when TARGET_NO_SPACE_REGS is
16485 true. Use bve when TARGET_64BIT is true.
16486
16487 2003-02-06 Richard Henderson <rth@redhat.com>
16488
16489 * combine.c (nonzero_bits): Fix double break.
16490
16491 2003-02-06 Eric Botcazou <ebotcazou@libertysurf.fr>
16492 Richard Henderson <rth@redhat.com>
16493
16494 PR c/9530
16495 * config/i386/i386.c (ix86_function_ok_for_sibcall): Forbid sibcalls
16496 from functions that return a float to functions that don't.
16497
16498 2003-02-06 Jan Hubicka <jh@suse.cz>
16499
16500 * i386.c (x86_inter_unit_moves): New variable.
16501 (ix86_secondary_memory_needed): Fix 64bit case, honor
16502 TARGET_INTER_UNIT_MOVES
16503 * i386.h (x86_inter_unit_moves): Declare.
16504 (TARGET_INTER_UNIT_MOVES): New macro.
16505 * i386.md (movsi_1): Cleanup constraints; disable
16506 when not doing inter-unit moves.
16507 (movsi_1_nointernunit): New.
16508 (movdi_1_rex64): Fix constraints; deal with SSE->GPR moves.
16509 (movdi_1_rex64_nointerunit): New.
16510 (mivsf_1): disable when not doing inter-unit moves.
16511 (movsf_1_nointerunit): New.
16512
16513 * basic-block.h (inside_basic_block_p): Declare.
16514 * cfgbuild.c (inside_basic_block_p): Make global.
16515 * haifa-sched.c (unlink_other_notes): Deal with NOT_INSN_BASIC_BLOCK.
16516 * scheudle-ebb.c (schedule_ebb): Return last basic block of trace;
16517 update CFG.
16518 (fix_basic_block_boundaries, add_missing_bbs): New.
16519 (rank): Use profile.
16520 (scheudle_ebbs): Rely on CFG; update coments.
16521
16522 2003-02-05 Geoffrey Keating <geoffk@apple.com>
16523
16524 * Makefile.in (host_hook_obj): New.
16525 (OBJS): Add $(host_hook_obj).
16526 (host_default.o): New rule.
16527 * config.gcc (host_hook_obj): New, default to host-default.o.
16528 (powerpc-*-darwin*): Use host-darwin.o.
16529 (out_host_hook_obj): New.
16530 * configure: Regenerate.
16531 * configure.in: Print information about out_host_hook_obj, substitute
16532 into output files.
16533 * host-default.c: New file.
16534 * hosthooks.h: New file.
16535 * toplev.c (general_init): Call host_hooks.extra_signals.
16536 * config/rs6000/host-darwin.c: New file.
16537 * config/rs6000/x-darwin: New file.
16538 * doc/hostconfig.texi: Add documentation for new host hook.
16539 Rearrange existing documentation.
16540
16541 2003-02-05 Roger Sayle <roger@eyesopen.com>
16542
16543 * dwarf2out.c (mem_loc_descriptor): Replace ASM_SIMPLIFY_DWARF_ADDR
16544 with *targetm.delegitimize_address.
16545 (rtl_for_decl_location): Likewise.
16546 * dwarfout.c (output_mem_loc_descriptor): Likewise. Include target.h.
16547 * Makefile.in (dwarf2out.c, dwarfout.c): Depend upon $(TARGET_H)
16548
16549 * config/i386/i386.h (ASM_SIMPLIFY_DWARF_ADDR): Remove definition.
16550 * config/i386/i386-protos.h (i386_simplify_dwarf_addr): Remove
16551 prototype.
16552 * config/i386/i386.c (ix86_delegitimize_address): Renamed from
16553 i386_simplify_dwarf_addr. Made static. Prototyped.
16554 (TARGET_DELEGITIMIZE_ADDRESS): Update definition from
16555 i386_simplify_dwarf_addr to ix86_delegitimize_address.
16556 (ix86_find_base_term): Likewise.
16557 (maybe_get_pool_constant): Likewise.
16558
16559 * config/s390/s390.h (ASM_SIMPLIFY_DWARF_ADDR): Remove definition.
16560 * config/s390/s390-protos.h (s390_simplify_dwarf_addr): Remove
16561 prototype.
16562 * config/s390/s390.c (s390_delegitimize_address): Renamed from
16563 s390_simplify_dwarf_addr. Made static. Prototyped.
16564 (TARGET_DELEGITIMIZE_ADDRESS): Define as s390_delegitimize_address.
16565
16566 2003-02-05 Richard Henderson <rth@redhat.com>
16567
16568 PR c/8602
16569 * integrate.c (output_inline_function): Reset input_filename
16570 and lineno from the decl before rest_of_compilation.
16571
16572 2003-02-05 Richard Henderson <rth@redhat.com>
16573
16574 * defaults.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
16575 (CTZ_DEFINED_VALUE_AT_ZERO): New.
16576 * doc/rtl.texi, doc/tm.texi: Document them.
16577
16578 * combine.c (nonzero_bits) [CLZ, CTZ]: Handle the definedness
16579 of the value at zero properly.
16580 * fold-const.c (tree_expr_nonnegative_p): Likewise.
16581 * simplify-rtx.c (simplify_unary_operation): Likewise.
16582
16583 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
16584 (CTZ_DEFINED_VALUE_AT_ZERO): New.
16585
16586 * config/arm/arm.c (TARGET_INIT_BUILTINS): Remove.
16587 (TARGET_EXPAND_BUILTIN): Remove.
16588 (def_builtin, arm_init_builtins, arm_expand_builtin): Remove.
16589 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
16590 (enum arm_builtins): Remove.
16591 * config/arm/arm.md (UNSPEC_CLZ): Remove.
16592 (clzsi2): Rename from clz; use clz instead of unspec.
16593 (ctzsi2): New.
16594 * config/arm/arm-protos.h: Update.
16595
16596 2003-02-05 Jan Hubicka <jh@suse.cz>
16597
16598 * i386-protos.h (x86_emit_floatuns): Declare.
16599 * i386.c (x86_emit_floatuns): New global function.
16600 * i386.md (floatunssisf2, floatunsdisf2,
16601 floatunsdidf2): New patterns.
16602
16603 2003-01-25 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
16604
16605 * cfgloopmanip.c (force_single_succ_latches): Fix missindentation.
16606
16607 2003-02-05 Hans Boehm <Hans.Boehm@hp.com>
16608
16609 * config/ia64/unwind-ia64.c: include coretypes.h, tm.h to get
16610 config/ia64/linux.h
16611
16612 2003-02-05 Roger Sayle <roger@eyesopen.com>
16613
16614 * cfgloop.h (flow_bb_inside_loop_p): Correct prototype again.
16615
16616 2003-02-05 Jakub Jelinek <jakub@redhat.com>
16617
16618 PR optimization/8555
16619 * config/i386/i386.md (sse_mov?fcc split): Handle op2 == op3 case
16620 instead of aborting.
16621
16622 2003-02-04 Richard Henderson <rth@redhat.com>
16623
16624 * config/i386/i386.md (UNSPEC_BSF): Remove.
16625 (ffssi2): Split into cmove and no_cmove insns and splitters;
16626 lose pentium float trick for now.
16627 (ffssi_1): Add * to name; use CTZ instead of UNSPEC.
16628 (ctzsi2, clzsi2, bsr): New.
16629
16630 2003-02-04 Richard Henderson <rth@redhat.com>
16631
16632 * config/ia64/ia64.c (rtx_needs_barrier): Handle POPCOUNT,
16633 UNSPEC_GETF_EXP; remove UNSPEC_POPCNT.
16634 * config/ia64/ia64.md (UNSPEC_POPCNT): Remove.
16635 (ffsdi2): Use popcount instead of unspec.
16636 (popcountdi2): Rename from *popcnt.
16637 (ctzdi2, clzdi2, getf_exp_tf): New.
16638
16639 2003-02-04 Kazu Hirata <kazu@cs.umass.edu>
16640
16641 * genconfig.c (main): Generate CC0_P.
16642 * rtl.h (CC0_P): Remove.
16643
16644 2003-02-04 Richard Henderson <rth@redhat.com>
16645
16646 * libgcc2.h, libgcc2.c (__ffsSI2): New.
16647 (__ffsDI2): Rename from __ffsdi2.
16648 * mklibgcc.in (lib2funcs): Add _ffssi2.
16649
16650 2003-02-04 Richard Henderson <rth@redhat.com>
16651
16652 * libgcc2.c (__paritysi2, __paritydi2): Replace last two reduction
16653 rounds with a "bit table" lookup.
16654
16655 2003-02-04 Ulrich Weigand <uweigand@de.ibm.com>
16656
16657 * reload.c (find_reloads): Do not use the mode specified in the insn
16658 pattern as reload mode for address operands. Do not generate optional
16659 reloads for operands where a mandatory reload was already pushed.
16660
16661 2003-02-04 Richard Henderson <rth@redhat.com>
16662
16663 * longlong.h [alpha] (count_leading_zeros, count_trailing_zeros): Use
16664 builtins instead of inline assembly.
16665
16666 2003-02-04 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
16667
16668 PR c/9376
16669 * libgcc2.c (__subvdi3): Fix typo.
16670
16671 2003-02-04 Jan Hubicka <jh@suse.cz>
16672
16673 * i386.md (movti_rex64): Fix constraint.
16674
16675 2003-02-04 Jan Hubicka <jh@suse.cz>
16676
16677 * i386.md (vector push splitters): Fix typo in resolving conflict.
16678
16679 2003-02-04 Rodney Brown <rbrown64@csc.com.au>
16680
16681 * config/i386/i386.c (x86_function_profiler): Fix typo in format.
16682
16683 2003-02-04 Phil Edwards <pme@gcc.gnu.org>
16684
16685 * doc/install.texi (*-*-linux-gnu): Mention glibc requirements
16686 for recent libstdc++. Remove formatting cruft.
16687
16688 2003-02-04 Jakub Jelinek <jakub@redhat.com>
16689
16690 * dwarf2out.c (dwarf2out_finish): Add AT_comp_dir
16691 attribute even if input file name is absolute, but one of the
16692 includes is relative.
16693
16694 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
16695
16696 * doc/gcc.texi, doc/gccint.texi, doc/gcov.texi,
16697 doc/include/fdl.texi, doc/invoke.texi: Update to GFDL 1.2.
16698 * doc/install.texi: Update copyright dates. Update to GFDL 1.2.
16699
16700 2003-02-03 Richard Henderson <rth@redhat.com>
16701
16702 * libgcc2.c (__ffsdi2, __clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
16703 __popcountsi2, __popcountdi2, __paritysi2, __paritydi2): Change
16704 return type to "int". Shuffle declarations and undef int trap.
16705 * libgcc2.h: Remove their declarations.
16706 * optabs.c (expand_unop): Force outmode to int for bitops.
16707
16708 2003-02-03 Bob Wilson <bob.wilson@acm.org>
16709
16710 * config/xtensa/xtensa.c (order_regs_for_local_alloc): Order the
16711 coprocessor registers before floating-point registers.
16712 * config/xtensa/xtensa.h (REG_ALLOC_ORDER): Adjust register numbers
16713 to account for a previously removed register.
16714 (SPEC_REG_FIRST, SPEC_REG_LAST, SPEC_REG_NUM, COUNT_REGISTER_REGNUM):
16715 Delete unused macros.
16716
16717 2003-02-03 Jan Hubicka <jh@suse.cz>
16718
16719 * i386.c (ix86_expand_store_builtin): Always force op1 to register.
16720 (mov*_internal): Fix predicates; require one of operands to not be
16721 memory.
16722 (SSE?MMX move expanders): Fix predicates; force one of operands to
16723 register.
16724 (SSE/MMX push patterns): Reorganize; fix x86-64 code generation.
16725 (movups/movupd/movdqu patterns): Force one of operands to not be
16726 memory.
16727
16728 2003-02-03 Roger Sayle <roger@eyesopen.com>
16729
16730 * hooks.c (hook_rtx_rtx_identity): Generic hook function that
16731 takes a single rtx and returns it unmodified.
16732 * hooks.h (hook_rtx_rtx_identity): Prototype here.
16733 * target.h (struct gcc_target): Add "delegitimize_address"
16734 field to target structure.
16735 * target-def.h (TARGET_DELEGITIMIZE_ADDRESS): Provide default
16736 for delegitimize_address target using hook_rtx_rtx_identity.
16737 (TARGET_INITIALIZER): Initialize delegitimize_address field
16738 using TARGET_DELEGITIMIZE_ADDRESS macro.
16739 * simplify-rtx.c (avoid_constant_pool_reference): Handle float
16740 extensions of constant pool references. Use delegitimize_address
16741 to undo the obfuscation of "-fpic".
16742 * Makefile.in (simplify-rtx.o): Add dependency on target.h.
16743
16744 * config/i386/i386.c (TARGET_DELEGITIMIZE_ADDRESS): Define as
16745 i386_simplify_dwarf_addr.
16746 (ix86_find_base_term): Simplify using i386_simplify_dwarf_addr.
16747 (maybe_get_pool_constant): Likewise.
16748
16749 2003-02-03 Jan Hubicka <jh@suse.cz>
16750
16751 * i386.c (ix86_expand_int_movcc): Fix setcc sign bit case.
16752
16753 2003-02-03 Jan Hubicka <jh@suse.cz>
16754
16755 * regclass.c (cannot_change_mode_set_regs): Correct argument order.
16756
16757 2003-02-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16758
16759 * mips/_tilib.c: Don't include tsystem.h or defaults.h. Don't
16760 define LIBGCC2_WORDS_BIG_ENDIAN. Include coretypes.h and tm.h.
16761
16762 2003-02-02 Andreas Schwab <schwab@suse.de>
16763
16764 * varasm.c (asm_output_aligned_bss): Declare as possibly unused.
16765
16766 2003-02-02 Richard Earnshaw <rearnsha@arm.com>
16767
16768 * arm.md (sibcall_epilogue): Set the "conds" to "clob".
16769 (epilogue_insns): Likewise.
16770
16771 2003-02-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16772
16773 * doc/install.texi (hppa*-hp-hpux11*): Update installation notes.
16774
16775 2003-02-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16776
16777 * pa-protos.h (attr_length_millicode_call): Remove second argument.
16778 (attr_length_indirect_call, attr_length_indirect_call,
16779 attr_length_save_restore_dltp): New prototypes.
16780 * pa.c (attr_length_millicode_call): Remove second argument. Check
16781 INSN_ADDRESSES_SET_P in distance calculation.
16782 (output_millicode_call): Check INSN_ADDRESSES_SET_P before using
16783 INSN_ADDRESSES.
16784 (attr_length_call): Check INSN_ADDRESSES_SET_P in distance calculation.
16785 (output_call): Check INSN_ADDRESSES_SET_P before using INSN_ADDRESSES.
16786 Call attr_length_call directly.
16787 (attr_length_indirect_call, output_indirect_call,
16788 attr_length_save_restore_dltp): New functions.
16789 * pa.md (attr_length_millicode_call): Drop second argument from all
16790 patterns.
16791 (return_internal_pic): Delete.
16792 (return_external_pic): Remove use of PIC register and pic operand and
16793 flag checks.
16794 (epilogue): Use return_internal for both normal and pic code.
16795 (call, call_value): Emit new 32-bit pic patterns for symref and
16796 indirect calls. Remove uses for arg pointer and pic register.
16797 (call_symref_pic, call_symref_pic_post_reload, call_reg_pic,
16798 call_reg_pic_post_reload, call_val_symref_pic,
16799 call_val_symref_pic_post_reload, call_val_reg_pic,
16800 call_val_reg_pic_post_reload): New pre and post reload insn patterns.
16801 Implement define_split and define_peephole2 patterns for pre reload
16802 patterns.
16803 (call_symref_64bit, call_internal_reg_64bit, call_value_symref_64bit,
16804 call_value_internal_reg_64bit): Shorten names.
16805 (all call patterns): Explicitly indicate registers used and clobbered.
16806 Use attr_length_indirect_call and attr_length_save_restore_dltp for
16807 attribute length calculation. Move code generation for indirect calls
16808 to output_indirect_call.
16809 (sibcall, sibcall_value): Don't restore PIC register.
16810 (exception_receiver, builtin_setjmp_receiver): Add blockage after PIC
16811 register retore.
16812
16813 2003-02-02 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
16814
16815 * doc/install.texi (Testing): Simplify and compress instructions
16816 concerning Dejagnu.
16817
16818 2003-02-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16819
16820 * collect2.c (pexecute_pid): Rename to pid.
16821 (collect_wait, collect_execute, scan_prog_file, scan_libraries): Use
16822 pid.
16823
16824 2003-02-01 Geoffrey Keating <geoffk@apple.com>
16825
16826 * doc/extend.texi (Function Attributes): Remove documentation
16827 for PowerPC Windows NT function attributes..
16828
16829 2003-02-01 Daniel Jacobowitz <drow@mvista.com>
16830
16831 * dwarf2out.c (gen_type_die): Check for typedefs before calling
16832 for TYPE_MAIN_VARIANT.
16833
16834 2003-02-01 Richard Henderson <rth@redhat.com>
16835
16836 * libgcc2.c: Include auto-host.h.
16837 (ATTRIBUTE_HIDDEN): New.
16838 (__clz_tab): Don't declare here for clz and ctz.
16839 (__clzsi2, __clzdi2): Use count_leading_zeros.
16840 (__ctzsi2, __ctzdi2): Use count_trailing_zeros.
16841 (__popcount_tab): Mark ATTRIBUTE_HIDDEN.
16842 (__paritysi2, __paritydi2): Use shifts instead of __popcount_tab.
16843 * longlong.h (__clz_tab): Mark ATTRIBUTE_HIDDEN.
16844
16845 2003-02-01 Richard Henderson <rth@redhat.com>
16846
16847 * config/i386/i386.md (addsi_1_zext splitter): Add TARGET_64BIT
16848 to the conditional.
16849 (ashlsi3_1_zext splitter): Likewise.
16850
16851 2003-02-01 Richard Henderson <rth@redhat.com>
16852
16853 * optabs.c (expand_unop): Use word_mode for outmode of bit scaners.
16854 * libgcc2.c (__ffsdi2, __clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
16855 __popcountsi2, __popcountdi2, __paritysi2 __paritydi2): Change
16856 return type to Wtype.
16857
16858 * libgcc-std.ver (GCC_3.4): Fix inheritance.
16859
16860 * config/i386/i386.md (ffssi2): Use nonimmediate_operand for
16861 expander input constraint.
16862
16863 2003-02-01 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
16864
16865 * optabs.h (optab_index): Add OTI_clz, OTI_ctz, OTI_popcount and
16866 OTI_parity.
16867 (clz_optab, ctz_optab, popcount_optab, parity_optab): New.
16868 * optabs.c (widen_clz, expand_parity): New.
16869 (expand_unop): Handle clz and parity. Hardcode SImode as outmode
16870 for libcalls to clz, ctz, popcount, and parity.
16871 (init_optabs): Init clz_optab, ctz_optab, popcount_optab and
16872 parity_optab, and set up libfunc handlers.
16873 * libgcc2.c (__clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
16874 __popcountsi2, __popcountdi2, __paritysi2 __paritydi2,
16875 __popcount_tab): New.
16876 * libgcc2.h: Declare them.
16877 * libgcc-std.ver (GCC_3.4): Add new functions from libgcc2.c.
16878 * genopinit.c (optabs): Add clz_optab, ctz_optab, popcount_optab
16879 and parity_optab.
16880 * builtin-types.def (BT_FN_INT_LONG, BT_FN_INT_LONGLONG): New.
16881 * builtins.def (BUILT_IN_CLZ, BUILT_IN_CTZ, BUILT_IN_POPCOUNT,
16882 BUILT_IN_PARITY, BUILT_IN_FFSL, BUILT_IN_CLZL, BUILT_IN_CTZL,
16883 BUILT_IN_POPCOUNTL, BUILT_IN_PARITYL, BUILT_IN_FFSLL,
16884 BUILT_IN_CLZLL, BUILT_IN_CTZLL, BUILT_IN_POPCOUNTLL,
16885 BUILT_IN_PARITYLL): New.
16886 * builtins.c (expand_builtin_unop): Rename from expand_builtin_ffs
16887 and add optab argument.
16888 (expand_builtin): Expand BUILT_IN_{FFS,CLZ,POPCOUNT,PARITY}*.
16889 * tree.def (CLZ_EXPR, CTZ_EXPR, POPCOUNT_EXPR, PARITY_EXPR): New.
16890 * expr.c (expand_expr): Handle them.
16891 * fold-const.c (tree_expr_nonnegative_p): Likewise.
16892 * rtl.def (CLZ, CTZ, POPCOUNT, PARITY): New.
16893 * reload1.c (eliminate_regs): Handle them.
16894 (elimination_effects): Likewise.
16895 * function.c (instantiate_virtual_regs_1): Likewise
16896 * genattrtab.c (check_attr_value): Likewise.
16897 * simplify-rtx.c (simplify_unary_operation): Likewise.
16898 * c-common.c (c_common_truthvalue_conversion): Handle POPCOUNT_EXPR.
16899 * combine.c (combine_simplify_rtx): Handle POPCOUNT and PARITY.
16900 (nonzero_bits): Handle CLZ, CTZ, POPCOUNT and PARITY.
16901 * config/alpha/alpha.md (clzdi2, ctzdi2, popcountdi2): New.
16902 * config/arm/arm.c (arm_init_builtins): Rename __builtin_clz to
16903 __builtin_arm_clz.
16904 * Makefile.in (LIB2FUNCS_1, LIB2FUNCS_2): Move...
16905 * mklibgcc.in (lib2funcs): ...here and merge. Add new members.
16906 * doc/extend.texi (Other Builtins): Add new builtins.
16907 * doc/md.texi (Standard Names): Add new patterns.
16908
16909 2003-02-01 Ulrich Weigand <uweigand@de.ibm.com>
16910
16911 * reload.c: Revert 2003-01-31 change.
16912
16913 2003-02-01 Jan Hubicka <jh@suse.cz>
16914
16915 * combine.c (combine_simplify_rtx): Use reversed_comparison_code_parts.
16916
16917 2003-02-01 Richard Sandiford <rsandifo@redhat.com>
16918
16919 * flags.h (flag_volatile): Remove declaration.
16920 (flag_volatile_global, flag_volatile_static): Likewise.
16921 * c-typeck.c (build_indirect_ref): Don't check flag_volatile.
16922 * toplev.c (flag_volatile): Remove definition.
16923 (flag_volatile_global, flag_volatile_static): Likewise.
16924 (f_options): Remove corresponding entries here.
16925 * varasm.c (make_decl_rtl): Don't check flag_volatile_global
16926 or flag_volatile_static.
16927 * doc/invoke.texi: Remove documentation of -fvolatile,
16928 -fvolatile-global and -fvolatile-static.
16929
16930 2003-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16931
16932 * pa.c (pa_output_function_prologue, pa_output_function_epilogue): Move
16933 updating of total_code_bytes from prologue to epilogue.
16934
16935 2003-01-31 Ulrich Weigand <uweigand@de.ibm.com>
16936
16937 * reload.c (find_reloads): Do not use the mode specified in the insn
16938 pattern as reload mode for address operands. Do not generate optional
16939 reloads for operands where a mandatory reload was already pushed.
16940 Generate optional reloads only in the final pass though find_reloads.
16941 (have_replacement_p): New function.
16942
16943 2003-01-31 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
16944
16945 * doc/install.texi (Testing): Remove a reference to our obsolete
16946 /testresults web pages and strip redundant information concerning
16947 test results.
16948 (Binaries): Refer to Microsoft Windows instead of listing all
16949 possible variants.
16950
16951 2003-02-01 Jan Hubicka <jh@suse.cz>
16952
16953 * loop.c (emit_prefetch_instructions): Do conversion at right place in
16954 RTL chain.
16955
16956 * combine.c (simplify_set): Reverse order of ragumetns to
16957 REG_CANNOT_CHANGE_MODE_P
16958 * df.c (df_def_record_1): Likewise.
16959 * recog.c (register_operand): Likewise.
16960 * simplify-rtx.c (simplify_subreg): Likewise.
16961 * hard-reg-set.h (REG_CANNOT_CHANGE_MODE_P): Update use of
16962 CANNOT_CHANGE_MODE_CLASS.
16963 * regclass.c (cannot_change_mode_set_regs, invalid_mode_change_p):
16964 Likewise.
16965 * reload.c (push_reload): Likewise.
16966 * alpha.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
16967 * ia64.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
16968 * mips.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
16969 * mips-protos.h (mips_cannot_change_mode_class): Update prototype.
16970 * mips.c (mips_cannot_change_mode_class): Update.
16971 * pa64-regs.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
16972 * rs6000.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
16973 * s390.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
16974 * sh.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
16975 * sh-protos.h (sh_cannot_change_mode_class): Update prototype.
16976 * sh.c (sh_cannot_change_mode_class): Update.
16977 * i386.h (CANNOT_CHANGE_MODE_CLASS): New.
16978 * tm.texi (CANNOT_CHANGE_MODE_CLASS): Update documentation.
16979
16980 2003-01-31 Geoffrey Keating <geoffk@apple.com>
16981
16982 * config/darwin.h (LINK_COMMAND_SPEC): Update for Nathan's recent
16983 change to LINK_COMMAND_SPEC in gcc.c.
16984
16985 2003-01-31 Jan Hubicka <jh@suse.cz>
16986
16987 PR c/9506
16988 * i386.c (override_options): Use DEFAULT_PCC_STRUCT_RETURN.
16989
16990 2003-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16991
16992 * pa32-regs.h (REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Delete
16993 duplicated code.
16994
16995 2003-01-31 Nathan Sidwell <nathan@codesourcery.com>
16996
16997 * tree.h (TYPE_BINFO_SIZE, TYPE_BINFO_SIZE_UNIT): Remove.
16998 (BINFO_ELTS): New #define.
16999 * stor-layout.c (finalize_record_size): Don't set them.
17000 * cp/cp-tree.h (BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX,
17001 BINFO_PRIMARY_BASE_OF): Use BINFO_ELTS.
17002 (BINFO_LANG_ELTS): New #define.
17003 * cp/tree.c (make_binfo): Use BINFO_LANG_ELTS.
17004 * java/class.c (make_class): Use BINFO_ELTS.
17005 (set_super_info): Likewse.
17006 (add_interface_do): Likewise.
17007 * objc/objc-act.c (start_class): Use BINFO_ELTS.
17008
17009 2003-01-31 Danny Smith <dannysmith@users.sourceforge.net>
17010
17011 * timevar.c (getrusage): Don't ever declare if not HAVE_GETRUSAGE.
17012 (times): Don't ever declare if not HAVE_TIMES.
17013 (clock): Don't ever declare if not HAVE_CLOCK.
17014
17015 2003-01-30 Richard Henderson <rth@redhat.com>
17016
17017 * flow.c (update_life_info): Zap life info after cleanup_cfg.
17018 (regno_uninitialized): Use correct live at function entry set.
17019 (regno_clobbered_at_setjmp): Likewise.
17020
17021 * expr.c (store_expr): Promote all MEM intermediates to regs.
17022
17023 2003-01-30 Kazu Hirata <kazu@cs.umass.edu>
17024
17025 * config/arm/arm.c: Fix comment typos.
17026 * config/arm/arm.h: Likewise.
17027 * config/arm/netbsd-elf.h: Likewise.
17028 * config/arm/netbsd.h: Likewise.
17029
17030 2003-01-30 Geoffrey Keating <geoffk@apple.com>
17031
17032 * gengtype.c (struct walk_type_data): Add needs_cast_p.
17033 (walk_type): Set needs_cast_p in walk_type_data.
17034 (write_types_process_field): Supply casts when required to suppress
17035 warnings.
17036 (write_root): Cast gt_pch_n_S to suppress warning.
17037 * Makefile.in: Remove -Wno-error from gtype-desc.o and c-decl.o.
17038 * config/rs6000/rs6000.c (print_operand): Mask off high bits only
17039 when they might exist.
17040 * config/rs6000/t-rs6000: Remove -Wno-error from varasm.o,
17041 insn-conditions.o, and rs6000.o.
17042
17043 2003-01-30 Richard Henderson <rth@redhat.com>
17044
17045 * ggc-page.c (G.context_depth_allocations): New.
17046 (G.context_depth_collections): New.
17047 (alloc_page): Set G.context_depth_allocations.
17048 (ggc_collect): Set G.context_depth_collections.
17049 (ggc_push_context): Limit to HOST_BITS_PER_LONG contexts.
17050 (ggc_pop_context): Early exit for no allocations or collections.
17051
17052 2003-01-30 Richard Henderson <rth@redhat.com>
17053
17054 * tree-inline.c (walk_tree): Streamline duplicate hash table lookup.
17055
17056 2003-01-30 Richard Earnshaw <rearnsha@arm.com>
17057
17058 * arm.c (arm_compute_initial_elimination_offset): If optimizing for
17059 size, the link register is always saved if any other register is
17060 saved.
17061
17062 2003-01-30 Kazu Hirata <kazu@cs.umass.edu>
17063
17064 * config/h8300/h8300-protos.h: Update the prototype for
17065 compute_plussi_cc.
17066 (cpp_reader): Declare before it is used.
17067 * config/h8300/h8300.c (compute_plussi_cc): Change the return
17068 type to int.
17069 * config/h8300/h8300.md (monitor_prologue): Call abort() if we
17070 see an unknown H8 variant.
17071
17072 2003-01-30 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
17073
17074 PR target/9316
17075 * config/rs6000/rtems.h: Add CPP_OS_DEFAULT_SPEC.
17076 * config/rs6000/sysv4.h: Add CPP_OS_RTEMS_SPEC.
17077 * config/rs6000/t-rtems: New file. multilib variants to match OS.
17078 * config.gcc (powerpc-*-rtems*): Use rs6000/t-rtems instead of
17079 rs6000/t-ppcgas so we get the desired multilibs.
17080
17081 2003-01-30 Nick Clifton <nickc@redhat.com>
17082
17083 * config/arm/arm.c (arm_output_epilogue): Update stack pointer
17084 when popping saved IP register off the stack.
17085
17086 2003-01-30 Kazu Hirata <kazu@cs.umass.edu>
17087
17088 * config/rs6000/aix43.h: Fix comment typos.
17089 * config/rs6000/aix51.h: Likewise.
17090 * config/rs6000/aix52.h: Likewise.
17091 * config/rs6000/altivec.h: Likewise.
17092 * config/rs6000/rs6000.c: Likewise.
17093 * config/rs6000/rs6000.h: Likewise.
17094 * config/rs6000/rs6000.md: Likewise.
17095 * config/rs6000/spe.md: Likewise.
17096
17097 2003-01-29 Mark Mitchell <mark@codesourcery.com>
17098
17099 * c-common.c (builtin_define_float_constants): Define
17100 __<TYPE>_HAS_INFINITY__ and __<TYPE>_HAS_QUIET_NAN__.
17101
17102 2003-01-30 Kazu Hirata <kazu@cs.umass.edu>
17103
17104 * config/sh/lib1funcs.asm: Fix comment typos.
17105 * config/sh/linux.h: Likewise.
17106 * config/sh/sh.c: Likewise.
17107 * config/sh/sh.md: Likewise.
17108
17109 2003-01-30 Loren James Rittle <ljrittle@acm.org>
17110
17111 * objc/Make-lang.in (objc-parse.y): Find c-parse.in in $(srcdir).
17112
17113 2003-01-30 Alexandre Oliva <aoliva@redhat.com>
17114
17115 * config/fp-bit.h (__make_dp): Declare if TMODES.
17116
17117 2003-01-29 Kazu Hirata <kazu@cs.umass.edu>
17118
17119 * config/h8300/h8300.h (PREDICATE_CODES): Add entries for
17120 general_operand_src and general_operand_dst.
17121
17122 2003-01-29 David Edelsohn <edelsohn@gnu.org>
17123
17124 * config/rs6000/rs6000.c (function_arg_pass_by_reference):
17125 Return true for variable sized types.
17126 (rs6000_va_arg): Handle variable sized types passed by reference
17127 on non-SVR4 ABI.
17128
17129 2003-01-29 Richard Earnshaw <rearnsha@arm.com>
17130
17131 * arm.c (arm_legtimize_address): New function.
17132 * arm-protos.h (arm_legtimize_address): Add prototype.
17133 * arm.h (ARM_LEGITIMIZE_ADDRESS): Use arm_legitimize_address.
17134 (LEGITIMIZE_ADDRESS, THUMB_LEGITIMIZE_ADDRESS): Wrap with
17135 do ... while (0)
17136
17137 2003-01-29 Joel Sherrill <joel@OARcorp.com>
17138
17139 PR bootstrap/9296
17140 * gthr-rtems.h: Define __GTHREAD_MUTEX_INIT. Apparently no code
17141 depended on it being defined until now.
17142
17143 2003-01-29 Joel Sherrill <joel@OARcorp.com>
17144
17145 PR target/9295
17146 * config/mips/rtems.h: Predefine __USE_INIT_FINI__ so generic
17147 RTEMS code knows which C++ initialization style the toolset
17148 configuration is using.
17149
17150 2003-01-29 Joel Sherrill <joel@OARcorp.com>
17151
17152 PR bootstrap/9293
17153 * config/m68k/t-crtstuff: Replace spaces with tabs, add
17154 $(MULTILIB_CFLAGS) as compiler option and multilib crtbegin/end.o.
17155
17156 2003-01-29 Joel Sherrill <joel@OARcorp.com>
17157
17158 PR bootstrap/9292
17159 * config.gcc (hppa1.1-rtems): Did not include t-rtems nor enable
17160 RTEMS threads.
17161 * config/pa/rtems.h (LIB_SPEC): Use -N when linking.
17162
17163 2003-01-29 Nick Clifton <nickc@redhat.com>
17164
17165 * Makefile.in (c-parse.o): Locate source file in $(parsedir)
17166 not $(srcdir).
17167
17168 2003-01-29 Andrew Haley <aph@redhat.com>
17169
17170 * tree-inline.c (walk_tree): Add CHAR_TYPE.
17171
17172 2003-01-29 Jan Hubicka <jh@suse.cz>
17173
17174 * i386.md (subdi3_carry_rex64): Fix typo.
17175
17176 2003-01-28 Stan Shebs <shebs@apple.com>
17177
17178 * coretypes.h (cpp_reader): Forward declare struct.
17179 * c-pragma.h (cpp_reader): Remove forward declaration.
17180 * hashtable.h (cpp_reader): Likewise.
17181 * scan.h (cpp_reader): Likewise.
17182 * tree.h (cpp_reader): Likewise.
17183 * config/darwin-protos.h (cpp_reader): Likewise.
17184 * config/arm/arm-protos.h (cpp_reader): Likewise.
17185 * config/rs6000/rs6000-protos.h: Remove GCC_CPPLIB_H ifdef, use
17186 struct cpp_reader in prototypes.
17187
17188 2003-01-28 Christian Cornelssen <ccorn@cs.tu-berlin.de>
17189
17190 * doc/install.texi: Add documentation for installation into
17191 tooldirs and with DESTDIR.
17192
17193 2003-01-28 Richard Henderson <rth@redhat.com>
17194
17195 * config.gcc (ia64*-*-aix*): Remove.
17196 * config/ia64/aix.h, config/ia64/t-aix: Remove file.
17197 * config/ia64/unwind-aix.c: Remove file.
17198
17199 2003-01-28 Andreas Schwab <schwab@suse.de>
17200
17201 * config/m68k/m68k.md (tablejump+2): Don't sign extend an address
17202 register.
17203 * config/m68k/apollo68.h (ASM_RETURN_CASE_JUMP): Likewise.
17204 * config/m68k/coff.h (ASM_RETURN_CASE_JUMP): Likewise.
17205 * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Likewise.
17206 * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
17207 * config/m68k/mot3300.h (ASM_RETURN_CASE_JUMP): Likewise.
17208 * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
17209 * config/m68k/pbb.h (ASM_RETURN_CASE_JUMP): Likewise.
17210
17211 2003-01-28 Richard Sandiford <rsandifo@redhat.com>
17212
17213 * combine.c (nonzero_bits): Fix check for negative divide operands.
17214
17215 2003-01-28 Richard Henderson <rth@redhat.com>
17216
17217 * config/ia64/ia64.c (ia64_rwreloc_section_type_flags): New.
17218 * config/ia64/hpux.h (TARGET_SECTION_TYPE_FLAGS): New.
17219
17220 2003-01-28 Richard Henderson <rth@redhat.com>
17221
17222 * cse.c (find_best_addr): Kill !ADDRESS_COST code.
17223
17224 * config/cris/cris.c (cris_address_cost): Make static.
17225 (TARGET_RTX_COSTS, TARGET_ADDRESS_COST): New.
17226 * config/cris/cris.h (ADDRESS_COST): Remove.
17227 * config/cris/cris-protos.h: Update.
17228
17229 2003-01-23 Mike Stump <mrs@apple.com>
17230
17231 * regclass.c (init_reg_autoinc): New function.
17232 (regclass): Move initialization of forbidden_inc_dec_class from
17233 here...
17234 (init_regs): to here. Avoids reinitialization for each function,
17235 saving compilation time.
17236
17237 2003-01-28 Jason Merrill <jason@redhat.com>
17238
17239 * cpplib.h (struct cpp_options): Add warn_deprecated field.
17240 * cppinit.c (cpp_create_reader): Turn it on by default.
17241 * c-opts.c (c_common_decode_option): Set it.
17242 * cpplib.c (do_pragma_once): Only complain about #pragma once
17243 if warn_deprecated is set.
17244
17245 2003-01-28 Dale Johannesen <dalej@apple.com>
17246
17247 * emit-rtl.c (const_double_htab_hash): Use mode in the hash.
17248 * loop.c (scan_loop): Move movables on -Os rich-register targets.
17249 * config/rs6000/rs6000.md (sibcall*): Use match_operand for LR.
17250
17251 2003-01-28 Richard Henderson <rth@redhat.com>
17252
17253 * target.h (targetm.address_cost): New.
17254 * target-def.h (TARGET_ADDRESS_COST): New.
17255 (TARGET_RTX_COSTS): Uncomment. Oops.
17256 * cse.c (address_cost): Use new target hook.
17257 (default_address_cost): New.
17258 * output.h (default_address_cost): Declare.
17259 * hooks.c (hook_int_rtx_0): New.
17260 * hooks.h (hook_int_rtx_0): Declare.
17261 * loop.c (combine_givs_p): Remove if 0 code.
17262 * system.h (ADDRESS_COST): Poison.
17263
17264 * config/alpha/alpha.c, config/alpha/alpha.h, config/d30v/d30v.c,
17265 config/d30v/d30v.h, config/ia64/ia64.c, config/ia64/ia64.h,
17266 config/m32r/m32r.c, config/m32r/m32r.h, config/mcore/mcore.c,
17267 config/mcore/mcore.h, config/mmix/mmix.c, config/mmix/mmix.h,
17268 config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/sparc/sparc.c,
17269 config/sparc/sparc.h, config/v850/v850.c, config/v850/v850.h,
17270 config/xtensa/xtensa.c, config/xtensa/xtensa.h
17271 (TARGET_ADDRESS_COST): Define as hook_int_rtx_0.
17272 (ADDRESS_COST): Remove.
17273
17274 * config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
17275 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
17276 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
17277 config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
17278 config/dsp16xx/dsp16xx.h, config/i386/i386-protos.h,
17279 config/i386/i386.c, config/i386/i386.h, config/i960/i960-protos.h,
17280 config/i960/i960.c, config/i960/i960.h, config/ip2k/ip2k-protos.h,
17281 config/ip2k/ip2k.c, config/ip2k/ip2k.h, config/mips/mips-protos.h,
17282 config/mips/mips.c, config/mips/mips.h,
17283 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
17284 config/m68hc11/m68hc11.h, config/ns32k/ns32k-protos.h,
17285 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa-protos.h,
17286 config/pa/pa.c, config/pa/pa.h, config/s390/s390-protos.h,
17287 config/s390/s390.c, config/s390/s390.h, config/vax/vax-protos.h,
17288 config/vax/vax.c, config/vax/vax.h
17289 (foo_address_cost): Make static.
17290 (TARGET_ADDRESS_COST): New.
17291 (ADDRESS_COST): Remove.
17292
17293 * config/arm/arm.h, config/arm/arm.c, config/m88k/m88k.h,
17294 config/m88k/m88k.c, config/romp/romp.h, config/romp/romp.c,
17295 config/sh/sh.c, config/sh/sh.h, config/stormy16/stormy16.c,
17296 config/stormy16/stormy16.h
17297 (ADDRESS_COST): Move code ...
17298 (foo_address_cost): ... here.
17299 (TARGET_ADDRESS_COST): New.
17300
17301 * config/m32r/m32r.c (m32r_address_cost): Remove.
17302 * config/m32r/m32r-protos.h: Update.
17303
17304 * config/mmix/mmix.c (mmix_address_cost): Remove.
17305 * config/mmix/mmix-protos.h: Update.
17306
17307 * config/mn10300/mn10300.c (mn10300_address_cost_1): Rename from
17308 mn10300_address_cost; move unsig allocation ...
17309 (mn10300_address_cost): ... here.
17310 (TARGET_ADDRESS_COST): New.
17311 * config/mn10300/mn10300-protos.h: Update.
17312 * config/mn10300/mn10300.h (ADDRESS_COST): Remove.
17313
17314 * doc/tm.texi: Update.
17315
17316 2003-01-28 Vladimir Makarov <vmakarov@redhat.com>
17317
17318 * haifa-sched.c (schedule_insn): Return necessary cycle advance
17319 after issuing the insn.
17320 (rank_for_schedule): Make a insn with /S the highest priority
17321 insn.
17322 (move_insn): Ignore schedule groups. Clear SCHED_GROUP_P.
17323 (choose_ready): Check SCHED_GROUP_P.
17324 (schedule_block): Advance cycle after issuing insn if it is
17325 necessary. Don't reorder insns if there is an insn with /S.
17326 (set_priorities): Ignore schedule groups.
17327
17328 * sched-deps.c (remove_dependence, group_leader): Remove the
17329 functions.
17330 (add_dependence): Ignore schedule groups.
17331 (set_sched_group_p): Don't make copy of dependencies from previous
17332 insn of the schedule group. Add anti-dependency to the previous
17333 insn of the schedule group.
17334 (compute_forward_dependences): Ignore schedule groups.
17335
17336 * sched-ebb.c (init_ready_list): Ignore schedule groups.
17337
17338 * sched-rgn.c (init_ready_list): Ditto.
17339 (can_schedule_ready_p): Ditto.
17340
17341 2003-01-28 Vladimir Makarov <vmakarov@redhat.com>
17342
17343 * config/i386/i386.md (*movsi_1): Use movdqa to move one xmm
17344 register to another one.
17345
17346 2003-01-28 Richard Henderson <rth@redhat.com>
17347
17348 * calls.c (default_must_pass_in_stack): Fix typo in !type case.
17349
17350 2003-01-28 Roger Sayle <roger@eyesopen.com>
17351
17352 * cse.c (cse_insn): Avoid redundant REG_EQUAL notes.
17353
17354 2003-01-28 Richard Sandiford <rsandifo@redhat.com>
17355
17356 * config/sh/sh.h (CLASS_MAX_NREGS): If TARGET_SHMEDIA, and the given
17357 class contains a floating-point register, return the size of the
17358 mode in half words.
17359
17360 2003-01-28 Jan Hubicka <jh@suse.cz>
17361
17362 * i386.c (ix86_carry_flag_operator): New predicate.
17363 (fcmov_operator): Fix whitespace.
17364 (ix86_expand_carry_flag_compare): Deal with floating point.
17365 (ix86_expand_int_movcc): Deal with fp; update insn expansion
17366 (ix86_expand_int_addcc): Likewise.
17367 (ix86_expand_strlensi_unroll_1): likewsie.
17368 * i386.h (PREDICATE_CODES): Add ix86_carry_flag_operator.
17369 * i386.md (add?i_carry_rex64): Use new predicate.
17370 (sub?i3_carry_rex64): Likewise.
17371 (x86_mov?icc_0_m1*): Likewise.
17372
17373 2003-01-28 Andreas Schwab <schwab@suse.de>
17374
17375 * cfgloopmanip.c (create_preheader): Initialize src to avoid
17376 warning.
17377
17378 * expmed.c (emit_store_flag): Fix cast to avoid sign
17379 comparison warning.
17380
17381 * combine.c (force_to_mode): Add cast to fix warning when
17382 STORE_FLAG_VALUE is negative.
17383
17384 2003-01-27 Richard Henderson <rth@redhat.com>
17385
17386 * Makefile.in (cse.o): Depend on TARGET_H.
17387 * cse.c (rtx_cost): Use targetm.rtx_costs.
17388 * system.h (CONST_COSTS RTX_COSTS DEFAULT_RTX_COSTS): Poison.
17389 * doc/tm.texi: Update.
17390
17391 * target.h (targetm.rtx_costs): New.
17392 * target-def.h (TARGET_RTX_COSTS): New.
17393 * hooks.c (hook_bool_rtx_int_int_intp_false): New.
17394 * hooks.h: Update.
17395
17396 * config/alpha/alpha.c (alpha_rtx_cost_data): New.
17397 (alpha_rtx_costs, TARGET_RTX_COSTS): New.
17398 * config/alpha/alpha.h (PROCESSOR_MAX): New.
17399 (CONST_COSTS, RTX_COSTS): Remove.
17400
17401 * config/arc/arc.c, config/arc/arc.h, config/c4x/c4x.c,
17402 config/c4x/c4x.h, config/cris/cris.c, config/cris/cris.h,
17403 config/d30v/d30v.c, config/d30v/d30v.h, config/dsp16xx/dsp16xx.c,
17404 config/dsp16xx/dsp16xx.h, config/frv/frv.c, config/frv/frv.h,
17405 config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
17406 config/i370/i370.h, config/i386/i386.c, config/i386/i386.h,
17407 config/i960/i960.c, config/i960/i960.h, config/ia64/ia64.c,
17408 config/ia64/ia64.h, config/m32r/m32r.c, config/m32r/m32r.h,
17409 config/m68k/m68k.c, config/m68k/m68k.h, config/m88k/m88k.c,
17410 config/m88k/m88k.h, config/mcore/mcore.c, config/mcore/mcore.h,
17411 config/mips/mips.c, config/mips/mips.h, config/mn10200/mn10200.c,
17412 config/mn10200/mn10200.h, config/mn10300/mn10300.c,
17413 config/mn10300/mn10300.h, config/ns32k/ns32k.c, config/ns32k/ns32k.h,
17414 config/pa/pa.c, config/pa/pa.h, config/pdp11/pdp11.c,
17415 config/pdp11/pdp11.h, config/romp/romp.c, config/romp/romp.h,
17416 config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/s390/s390.c,
17417 config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
17418 config/stormy16/stormy16.c, config/stormy16/stormy16.h,
17419 config/v850/v850.c, config/v850/v850.h,
17420 config/xtensa/xtensa.c, config/xtensa/xtensa.h
17421 (CONST_COSTS, RTX_COSTS): Move code ...
17422 (foo_rtx_costs, TARGET_RTX_COSTS): ... here.
17423
17424 * config/arm/arm.c (arm_rtx_costs_1): Rename from arm_rtx_costs.
17425 (arm_rtx_costs, TARGET_RTX_COSTS): New.
17426 * config/arm/arm-protos.h: Update.
17427 * config/arm/arm.h (DEFAULT_RTX_COSTS): Remove.
17428
17429 * config/avr/avr.h (CONST_COSTS): Move code ...
17430 * config/avr/avr.c (avr_rtx_costs): ... here.
17431 (default_rtx_costs): Make static.
17432 * config/avr/avr-protos.h: Update.
17433
17434 * config/h8300/h8300.c (const_costs): Make static.
17435 (h8300_and_costs, h8300_shift_costs): Likewise.
17436 * config/h8300/h8300-protos.h: Update.
17437
17438 * config/ip2k/ip2k.h (DEFAULT_RTX_COSTS): Remove.
17439 (CONST_COSTS): Move code ...
17440 * config/ip2k/ip2k.c (ip2k_rtx_costs): ... here. Rename from
17441 default_rtx_costs; update for signature change.
17442 * config/ip2k/ip2k-protos.h: Update.
17443
17444 * config/m68hc11/m68hc11.h (RTX_COSTS): Remove.
17445 (CONST_COSTS): Move code ...
17446 * config/m68hc11/m68hc11.c (m68hc11_rtx_costs): ... here.
17447 (TARGET_RTX_COSTS): New.
17448 (m68hc11_rtx_costs_1): Rename from m68hc11_rtx_costs; make static.
17449 * config/m68hc11/m68hc11-protos.h: Update.
17450
17451 * config/m68k/m68k.c (const_int_cost): Make static.
17452 * config/m68k/m68k-protos.h: Update.
17453
17454 * config/mcore/mcore.c (mcore_const_costs): Make static.
17455 (mcore_and_cost, mcore_ior_cost): Likewise.
17456 * config/mcore/mcore-protos.h: Update.
17457
17458 * config/mmix/mmix.c (mmix_rtx_costs, TARGET_RTX_COSTS): New.
17459 (mmix_rtx_cost_recalculated): Remove.
17460 * config/mmix/mmix.h (DEFAULT_RTX_COSTS): Remove.
17461 * config/mmix/mmix-protos.h: Update.
17462
17463 * config/sh/sh.c (shiftcosts): Make static.
17464 (addsubcosts, andcosts, multcosts): Likewise.
17465 * config/sh/sh-protos.h: Update.
17466
17467 * config/sparc/sparc.c (TARGET_RTX_COSTS): New.
17468 (sparc_rtx_costs): Make static; update for change in signature.
17469 * config/sparc/sparc.h (RTX_COSTS_CASES, RTX_COSTS): Remove.
17470 * config/sparc/sparc-protos.h: Update.
17471
17472 * config/v850/v850.c (const_costs): Make static.
17473 * config/v850/v850-protos.h: Update.
17474
17475 * config/vax/vax.h (RTX_COSTS): Remove.
17476 (CONST_COSTS): Move code ...
17477 * config/vax/vax.c (vax_rtx_costs_1): ... here; rename
17478 from vax_rtx_cost.
17479 (vax_rtx_costs, TARGET_RTX_COSTS): New.
17480
17481 2003-01-27 Richard Henderson <rth@redhat.com>
17482
17483 * config/vax/vax.h (ASM_OUTPUT_MI_THUNK): Remove. Really.
17484 * config/vax/vax-protos.h: Update. Really.
17485
17486 2003-01-28 Alexandre Oliva <aoliva@redhat.com>
17487
17488 * config/mips/mips.h (UNITS_PER_HWFPVALUE): Renamed from...
17489 (UNITS_PER_FPVALUE): Defined as the width of a long double, or
17490 zero if no hardware floating point.
17491 (LONG_DUBLE_TYPE_SIZE): Set to 128 on N32 and N64.
17492 (MAX_FIXED_MODE_SIZE): Define to LONG_DOUBLE_TYPE_SIZE.
17493 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
17494 (BIGGEST_ALIGNMENT): Same as LONG_DOUBLE_TYPE_SIZE.
17495 (FUNCTION_VALUE_REGNO_P): Set for FP_RETURN+2 on N32 and N64.
17496 * config/mips/mips.c (mips_arg_info): Pass TFmode values in
17497 even FP registers on N32 and N64.
17498 (mips_setup_incoming_varargs): Use UNITS_PER_HWFPVALUE.
17499 (mips_va_start): Adjust alignment of ARG_POINTER_REGNUM.
17500 (mips_va_arg): Use UNITS_PER_HWFPVALUE. Impose additional
17501 even-register-like alignment to 128-bit arguments.
17502 (save_restore_insns): Use UNITS_PER_HWFPVALUE.
17503 (mips_function_value): Likewise. Return TFmode in $f0 and $f2
17504 on N32 or N64.
17505 * config/mips/_tilib.c (__negti2, __ashlti3, __lshrti3): New.
17506 * config/mips/t-iris6 (LIB2FUNCS_EXTRA): Add _tilib.c.
17507 (TPBIT): Set to tp-bit.c.
17508 (tp-bit.c): Create out of fp-bit.c.
17509
17510 2003-01-28 Gabriel Dos Reis <gdr@integrable-solutions.net>
17511
17512 * c-parse.in: Remove '%expect 32' directive in objc mode.
17513
17514 2003-01-27 Nathan Sidwell <nathan@codesourcery.com>
17515
17516 * Makefile.in (LIB2FUNCS_ST): Remove _gcov.
17517 (LIBGCOV): New variable.
17518 (libgcc.mk): Add LIBGCOV.
17519 (LIBGCC_DEPS): Add libgcov.c.
17520 (libgcov.a): New target.
17521 (clean): Remove libgcov.a.
17522 (install-libgcc): Do libgcov too.
17523 (stage1-start, stage2-start, stage3-start, stage4-start): Deal
17524 with libgcov.a.
17525 * libgcc2.c (L_gcov): Move into ...
17526 * libgcov.c: ... here. New file.
17527 * mklibgcc.in: Add libgcov rules.
17528 * gcc.c (LINK_COMMAND_SPEC): Add -lgcov when profiling.
17529
17530 * doc/invoke.texi (profile-arcs, test-coverage): Update and
17531 clarify.
17532
17533 * profile.c (index_counts_file): Remove duplicate check for open file.
17534
17535 2003-01-27 Jerry Quinn <jlquinn@optonline.net>
17536
17537 * gcc/doc/invoke.texi (Optimization Options): Group together
17538 optional and experimental flags. Move trapv and bounds-check
17539 out of this section. Group floating point flags together.
17540 (Code Gen Options): Move trapv and bounds-check to here.
17541
17542 2003-01-27 Josef Zlomek <zlomekj@suse.cz>
17543
17544 * gcse.c (constprop_register): Check NEXT_INSN (insn) != NULL.
17545
17546 2003-01-27 Richard Earnshaw <rearnsha@arm.com>
17547
17548 PR optimization/9090
17549 * function.c (purge_addressof_1): After pushing an addressed register
17550 onto the stack, simplify the result.
17551
17552 2003-01-27 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
17553
17554 * doc/extend.texi: Fix typo.
17555
17556 2003-01-27 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
17557
17558 * doc/cppopts.texi: Fix typo.
17559 * doc/objc.texi: Likewise.
17560 * doc/passes.texi: Likewise.
17561
17562 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
17563
17564 * real.c (ibm_extended_format): Add 53 to minimum exponent.
17565 (encode_ibm_extended): Adjust.
17566
17567 2003-01-26 Gabriel Dos Reis <gdr@soliton.integrable-solutions.net>
17568
17569 * timevar.def (TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION): New
17570 timevar_id enumerations.
17571
17572 2003-01-26 Kazu Hirata <kazu@cs.umass.edu>
17573
17574 * combine.c: Fix formatting.
17575
17576 2003-01-26 Kazu Hirata <kazu@cs.umass.edu>
17577
17578 * doc/gccint.texi: Update the copyright.
17579
17580 2003-01-26 Kazu Hirata <kazu@cs.umass.edu>
17581
17582 * doc/cpp.texi: Fix typos.
17583 * doc/extend.texi: Likewise.
17584 * doc/gty.texi: Likewise.
17585 * doc/install.texi: Likewise.
17586 * doc/passes.texi: Likewise.
17587 * doc/rtl.texi: Likewise.
17588 * doc/tm.texi: Likewise.
17589
17590 2003-01-26 Kazu Hirata <kazu@cs.umass.edu>
17591
17592 * config/ia64/fde-glibc.c: Fix comment typos.
17593 * config/ia64/hpux.h: Likewise.
17594 * config/ia64/ia64.c: Likewise.
17595 * config/ia64/ia64.h: Likewise.
17596 * config/ia64/unwind-ia64.c: Likewise.
17597
17598 2003-01-26 Kazu Hirata <kazu@cs.umass.edu>
17599
17600 * config/i386/i386-modes.def: Fix comment typos.
17601 * config/i386/i386.c: Likewise.
17602 * config/i386/i386.md: Likewise.
17603
17604 2003-01-26 Steven Bosscher <s.bosscher@student.tudelft.nl>
17605
17606 * config/avr/avr.h, config/cris/aout.h, config/elfos.h,
17607 config/i386/freebsd-aout.h, config/mips/iris6.h: Undefine
17608 ASM_FINISH_DECLARE_OBJECT before defining it.
17609 * toplev.c (rest_of_decl_compilation): Don't define
17610 ASM_FINISH_DECLARE_OBJECT. Only use it if it is defined.
17611 (rest_of_type_compilation): Don't ATTRIBUTE_UNUSED function
17612 parameters for DWARF2 targets because they _are_ used.
17613
17614 2003-01-26 Alexandre Oliva <aoliva@redhat.com>
17615
17616 * fp-bit.h: Define macros for TFmode floating-point constants
17617 in IBM-extended TFmode types.
17618 (TMODES): Define if __LDBL_MANT_DIG__ has the newly-supported
17619 widths.
17620 * config/fp-bit.c (pack_d, unpack_d): Support IBM-extended
17621 TFmode type.
17622
17623 * config/fp-bit.h: Define macros for TFmode floating-point
17624 constants in IEEE quad TFmode type. Declare functions according
17625 to L_ macros.
17626 (TMODES): Define if __LDBL_MANT_DIG__ is 113.
17627 (TFtype, TItype, UTItype): Define if TMODES is defined.
17628 (MAX_UDI_INT, MAX_DI_INT, BITS_PER_DI): Likewise.
17629 (F_T_BITOFF, D_T_BITOFF): Define.
17630 (IMPLICIT_1, IMPLICIT_2): Cast constants to types that are
17631 guaranteed to be wide enough.
17632 * config/fp-bit.c: Check for L_ macros for tf functions.
17633 (__thenan_tf): New.
17634 (nan): Adjust.
17635 (pack_d, unpack_d): Support IEEE 854 quad type.
17636 (_fpmul_parts): Support TFmode. Compute exponent adjustment
17637 from FRAC_NBITS, FRAC_BITS and NGARDS.
17638 (usi_to_float): Cast constants to be shifted to fractype
17639 instead of assuming long long is wide enough.
17640 (sf_to_tf, df_to_tf, __make_tp, tf_to_df, tf_to_sf): New.
17641
17642 2003-01-26 Andreas Jaeger <aj@suse.de>
17643
17644 * df.c: Remove prototype of unused function df_regno_rtl_debug.
17645
17646 2003-01-26 Alexandre Oliva <aoliva@redhat.com>
17647
17648 * Makefile.in (FPBIT_FUNCS): Added _sf_to_tf.
17649 (DBBIT_FUNCS): Added _df_to_tf.
17650 (TPBIT_FUNCS): New.
17651 (libgcc.mk): Pass TPBIT and TPBIT_FUNCS down.
17652 (LIBGCC_DEPS): Added TPBIT.
17653 * mklibgcc.in: Support TPBIT and TPBIT_FUNCS.
17654
17655 * optabs.c (expand_binop) <add, sub>: Return xtarget if we haven't
17656 been able to move the result to target.
17657
17658 * expr.c (emit_group_store): Initialize dst with CONST0_RTX
17659 for the appropriate mode.
17660
17661 * calls.c (emit_library_call_value_1): Handle return values
17662 in a PARALLEL.
17663
17664 * rtl.c (get_mode_alignment): Moved to...
17665 * stor-layout.c: ... here.
17666
17667 * print-rtl.c (print_rtx): Don't print MEM details in
17668 GENERATOR_FILEs.
17669
17670 2003-01-26 Michael Hayes <mph@paradise.net.nz>
17671
17672 * df.h: Update comments, tidy formatting.
17673 (DF_FORWARD, DF_REVERSE, DF_UNION, DF_INTERSECTION): Rename from FORWARD,
17674 REVERSE, UNION, INTERSECTION. All uses updated.
17675 (OLD_DF_INTERFACE): Remove.
17676 (struct insn_info): Remove commented out insn field.
17677 * df.c: Update comments, tidy formatting.
17678 (df_def_table_realloc): Remove.
17679
17680
17681 2003-01-26 Alan Modra <amodra@bigpond.net.au>
17682
17683 * calls.c (save_fixed_argument_area): Tidy.
17684 (restore_fixed_argument_area): Tidy. Set alignment of stack_area.
17685 (expand_call): Comment typo fixes. Don't init low_to_save. Start
17686 call chain loop at 1 if !try_tail_call. Formatting.
17687 (emit_library_call_value_1): Don't init low_to_save or high_to_save.
17688 Use save_fixed_argument_area and restore_fixed_argument_area.
17689
17690 2003-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17691
17692 * df.c (df_uses_record): Handle CC0.
17693
17694 2003-01-25 Ulrich Weigand <uweigand@de.ibm.com>
17695
17696 * reload.c (maybe_memory_address_p): New function.
17697 (find_reloads_address): Use it instead of memory_address_p.
17698
17699 2003-01-25 Kaz Kojima <kkojima@gcc.gnu.org>
17700
17701 * final.c (shorten_branches): Align the address of code label
17702 when computing initial lengths and addresses.
17703
17704 2003-01-25 Kazu Hirata <kazu@cs.umass.edu>
17705
17706 * config/m68hc11/m68hc11.md: Fix a comment typo.
17707
17708 2003-01-25 Andreas Jaeger <aj@suse.de>
17709
17710 * config/i386/i386.c (x86_output_mi_thunk): Correct test for
17711 TARGET_MACHO.
17712
17713 2003-01-25 Roger Sayle <roger@eyesopen.com>
17714
17715 * gcse.c (bypass_last_basic_block): New global variable.
17716 (bypass_block): Use redirect_edge_and_branch_force to redirect
17717 fall-through edges. Use bypass_last_basic_block to determine
17718 which blocks have valid PRE information.
17719 (bypass_conditional_jumps): Initialize bypass_last_basic_block.
17720
17721 2003-01-25 Jan Hubicka <jh@suse.cz>
17722
17723 * gcse.c (local_cprop_pass): Update reg_sets table when needed.
17724
17725 2003-01-25 Jan Hubicka <jh@suse.cz>
17726 Eric Botcazou <ebotcazou@libertysurf.fr>
17727 PR opt/8492
17728 * gcse.c (one_cprop_pass): Delete unreachable blocks.
17729
17730 2003-01-25 Richard Henderson <rth@redhat.com>
17731
17732 * config/ia64/ia64.c (ia64_rwreloc_select_rtx_section): Rename
17733 from ia64_aix_select_rtx_section.
17734 (ia64_rwreloc_select_section): Simlarly; use default*_1 function
17735 instead of saving and restoring flag_pic.
17736 (ia64_rwreloc_unique_section): Similarly.
17737 * config/ia64/aix.h (TARGET_ASM_SELECT_SECTION,
17738 TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): Update.
17739 * config/ia64/hpux.h (TARGET_ASM_SELECT_SECTION,
17740 TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): New.
17741
17742 2003-01-25 Kazu Hirata <kazu@cs.umass.edu>
17743
17744 * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Update a
17745 comment.
17746
17747 2003-01-25 Richard Henderson <rth@redhat.com>
17748
17749 * config/m68k/m68k-none.h (ASM_SPEC): Adjust inter-option spacing.
17750
17751 2003-01-25 Kelley Cook <kelleycook@comcast.net>
17752
17753 * ggc-simple.c (debug_ggc_tree): Add PTR cast.
17754
17755 2003-01-25 Segher Boessenkool <segher@koffie.nl>
17756
17757 * bitmap.h (BITMAP_WORD): New typedef: fundamental storage
17758 type for bitmaps. Use unsigned long.
17759 (nBITMAP_WORD_BITS): New macro.
17760 (BITMAP_WORD_BITS): New macro.
17761 (rest of file): Use it.
17762 * bitmap.c: Use it.
17763
17764 2003-01-25 Richard Henderson <rth@redhat.com>
17765
17766 2002-02-19 Robert Lipe <robertlipe@usa.net>
17767 * config/i386/t-sco5gas: (CRTSTUFF_T_CFLAGS_S): Delete -mcoff.
17768
17769 2003-01-25 Roger Sayle <roger@eyesopen.com>
17770
17771 * builtins.c (purge_builtin_constant_p): Scan insn stream
17772 sequentially rather than by basic block.
17773 * function.c (purge_addressof): Simplify test with INSN_P.
17774
17775 2003-01-25 Kazu Hirata <kazu@cs.umass.edu>
17776
17777 * combine.c (simplify_comparison, case AND): Remove a redundant test.
17778
17779 2003-01-25 Roger Sayle <roger@eyesopen.com>
17780
17781 * function.h (struct function): New field calls_constant_p.
17782 (current_function_calls_constant_p): New macro for above.
17783 * function.c (prepare_function_start): Initialize calls_eh_return
17784 and calls_constant_p.
17785 * builtins.c (expand_builtin_constant_p): Set calls_constant_p.
17786 * toplev.c (rest_of_compilation): Only call purge_builtin_constant_p
17787 when the current_function_calls_constant_p.
17788 * integrate.c (expand_inline_function): Set calls_constant_p if
17789 the function being inlined has calls_constant_p set.
17790
17791 2003-01-25 Roger Sayle <roger@eyesopen.com>
17792
17793 * cse.c (fold_rtx): Instantiate CONSTANT_P_RTX to 0 when not
17794 optimizing, even if flag_gcse is true.
17795 * toplev.c (rest_of_compilation): purge_builtin_constant_p
17796 only needs to be called when "optimize > 0 && flag_gcse".
17797
17798 2003-01-25 Roger Sayle <roger@eyesopen.com>
17799
17800 * stmt.c (emit_case_bit_tests): New routine to implement suitable
17801 switch statements using the equivalent of "if ((1<<x) & cst) ... ".
17802 (case_bit_test_cmp): New comparison function for "qsort" to order
17803 case_bit_tests by decreasing number of destination nodes.
17804 (lshift_cheap_p): New function to determine if "1 << x" is cheap.
17805 (expand_end_case_type): Use emit_case_bit_tests to implement
17806 suitable switch statments.
17807 (CASE_USE_BIT_TESTS): New target macro to disable the above.
17808 * Makefile.in (stmt.o): Add dependency on optab.h.
17809 * doc/tm.texi (CASE_USE_BIT_TESTS): Document new target macro.
17810
17811 2003-01-23 Andreas Schwab <schwab@suse.de>
17812
17813 * config/ia64/crtend.asm [HAVE_INITFINI_ARRAY]: Make
17814 __do_global_ctors_aux hidden global and don't put it in
17815 .init_array.
17816 * config/ia64/crtbegin.asm [HAVE_INITFINI_ARRAY]: Put it here
17817 instead so that it comes first.
17818
17819 2003-01-25 Jan Hubicka <jh@suse.cz>
17820
17821 * df.c (read_modify_subreg_p): When osize == UNITS_PER_WORD,
17822 subreg is read/modify.
17823
17824 2003-01-25 Jan Hubicka <jh@suse.cz>
17825
17826 * i386.c (ix86_expand_movstr, ix86_expand_clrstr): Consistently
17827 do libcall for large blocks.
17828 * i386.md (comi patterns): Set type to ssecomi.
17829 (sse2_unpck?pd): Fix mode of vec_select.
17830
17831 * cse.c: Include except.h
17832 (cse_set_around_loop): Do not create new basic blocks.
17833 * Makefile.in (cse.o): Add dependnecy on except.h
17834
17835 2003-01-25 Jan Hubicka <jh@suse.cz>
17836
17837 * builtins.c (fold_trunc_transparent_mathfn): New function.
17838 (fold_builtin): Use it.
17839 * convert.c (convert_to_real): Re-enable code to convert
17840 math functions; add support for floor familly functions.
17841
17842 2003-01-25 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
17843
17844 * Makefile.in (cfgloop.o, cfgloopanal.o, cfgloopmanip.o): Add
17845 dependencies on coretypes.h and $(TM_H).
17846
17847 2003-01-25 Jan Hubicka <jh@suse.cz>
17848
17849 * builtins.c (fold_trunc_transparent_mathfn): Undo accidental commit.
17850
17851 2003-01-24 Stuart Hastings <stuart@apple.com>
17852
17853 * config/i386/i386.c (x86_output_mi_thunk): Add Darwin/x86 support.
17854
17855 2003-01-25 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17856
17857 * config/c4x/c4x.md (UNSPEC_BU): New constants.
17858 (UNSPEC_RPTS, UNSPEC_LSH, UNSPEC_CMPHI, UNSPEC_RCPF): Likewise.
17859 (UNSPEC_RND, UNSPEC_RPTB_FILL, UNSPEC_LOADHF_INT): Likewise.
17860 (UNSPEC_STOREHF_INT, UNSPEC_RSQRF, UNSPEC_LOADQF_INT): Likewise.
17861 (UNSPEC_STOREQF_INT, UNSPEC_LDIV, UNSPEC_PUSH_ST): Likewise.
17862 (UNSPEC_POP_ST, UNSPEC_PUSH_DP, UNSPEC_POP_DP): Likewise.
17863 (UNSPEC_POPQI, UNSPEC_POPQF, UNSPEC_ANDN_ST): Likewise.
17864 (UNSPEC_RPTB_INIT, UNSPEC_TOIEEE, UNSPEC_FRIEEE): Likewise.
17865
17866 2003-01-24 Jan Hubicka <jh@suse.cz>
17867
17868 * emit-rtl.c (reg_attrs_htab): New static variable.
17869 (reg_attrs_htab_hash, reg_attrs_htab_eq, get_reg_attrs): New static
17870 functions.
17871 (reg_rtx): Do not maintain regno_decl.
17872 (gen_rtx_REG_offset, set_reg_attrs_from_mem, set_delc_rtx,
17873 set_mem_attrs_from_reg): New global function.
17874 (init_emit): Do not initialize regno_decl.
17875 (init_emit_once): initialize reg_attrs_htab.
17876 * final.c (alter_subreg): Do not replace REG by SUBREG.
17877 (gen_mem_expr_from_op): Improve output.
17878 (output_asm_operands): Likewise.
17879 * function.c (assign_params): Do not set REGNO_DECL.
17880 * function.h (struct function): Kill regno_decl.
17881 (REGNO_DECL): Kill.
17882 * gengtype.c (adjust_field_rtx_def): Handle new field of reg.
17883 * print_rtl.c (print_rtx): Output REG information.
17884 * regclass.c (reg_scan_mark_refs): Update attrs.
17885 * reload1.c (alter_reg): Likewise.
17886 * simplify_rtx.c (simplify_subreg): Likewise.
17887 * stmt.c (expand_decl): Likewise.
17888 * rtl.def (REG): Add new field.
17889 * rtl.h (struct reg_attrs): New.
17890 (rtunion_def): At rtreg.
17891 (X0MEMATTR): Add checking.
17892 (X0REGATTR, REG_ATTRS, REG_EXPR, REG_OFFSET): New macro.
17893 (set_reg_attrs_from_mem, set_mem_attrs_from_reg, gen_rtx_REG_offset):
17894 Declare.
17895 * tree.h (SET_DECL_RTL): Call set_decl_rtl.
17896
17897 2003-01-24 Bob Wilson <bob.wilson@acm.org>
17898
17899 * config/xtensa/xtensa.c: Remove unused include of machmode.h.
17900 (xtensa_emit_call, print_operand): Fix printf format strings
17901 to avoid compile warnings.
17902 (xtensa_function_prologue, xtensa_function_epilogue): Change type
17903 of "size" argument to HOST_WIDE_INT to fix compile warnings.
17904 * config/xtensa/xtensa-protos.h
17905 (xtensa_function_prologue, xtensa_function_epilogue): Ditto.
17906
17907 2003-01-24 Jan Hubicka <jh@suse.cz>
17908
17909 * builtins.c (DEF_BUILTIN): Accept 10 arguments.
17910 (implicit_built_in_decls): New global array.
17911 (mathfn_built_in): New global function.
17912 (fold_trunc_transparent_mathfn): New static function
17913 (expand_builtin_strstr, expand_bultin_strchr,
17914 expand_builtin_strpbrk, expand_builtin_strcpy,
17915 expand_builtin_strncpy, expand_bultin_strcmp,
17916 expand_bultin_strncat, expand_builtin_fputs): Use
17917 implicint_built_in_decls.
17918 (fold_builtin): Fold floor/trunc/round/ceil/nearbyint.
17919 * builtins.def: Fix comments.
17920 (DEF_GCC_BUILTIN, DEF_FALLBACK_BUILTIN, DEF_EXT_FALLBACK_BUILTIN,
17921 DEF_LIB_BUILTIN, DEF_LIB_ALWAYS_BUILTIN, DEF_EXT_LIB_BUILTIN,
17922 DEF_C99_BULTIN, DEF_FRONT_END_LIB_BUILTIN,
17923 DEF_EXT_FRONT_END_LIB_BUILTIN): Pass implicit as needed.
17924 (DEF_C99_C90RES_BULTIN): New.
17925 (*f, *l builtins): Update.
17926 * c-common.c (DEF_BUILTIN): Initialize implicit array.
17927 (c_expand_builtin_printf, c_expand_builtin_fprintf): Update.
17928 * convert.c (strip_float_extensions): New global function.
17929 * tree.h (DEF_BUILTIN): Accept 10 arguments.
17930 (implicit_built_in_decls, mathfn_built_in, strip_float_extension):
17931 Declare.
17932 * java/builtins.c (define_builtin): Handle implicit.
17933 (DEF_BUILTIN): Update.
17934 * tm.texi (TARGET_C99_FUNCTIONS): Document.
17935 * defaults.h (TARGET_C99_FUNCTIONS): Default to 0.
17936 * config/linux.h (TARGET_C99_FUNCTIONS): Default to 1
17937 when using glibc2.
17938
17939 2003-01-24 Bob Wilson <bob.wilson@acm.org>
17940
17941 * config.gcc (xtensa-*-elf*): Removed assignments to with_newlib,
17942 extra_parts, and fixincludes. Add xtensa/t-elf tmake_file.
17943 (xtensa-*-linux*): Add xtensa/t-linux tmake_file.
17944 * config/xtensa/crti.asm: New file.
17945 * config/xtensa/crtn.asm: New file.
17946 * config/xtensa/t-elf: New file.
17947 * config/xtensa/t-linux: New file.
17948 * config/xtensa/t-xtensa: Add rules for crti.o and crtn.o.
17949 Move various CFLAGS settings to new t-elf file.
17950
17951 2003-01-24 Richard Henderson <rth@redhat.com>
17952
17953 PR optimization/4382
17954 * tree-inline.c (find_builtin_longjmp_call_1): New.
17955 (find_builtin_longjmp_call): New.
17956 (inlinable_function_p): Use it.
17957
17958 2003-01-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
17959
17960 * config/i386/i386-protos.h (function_arg_pass_by_reference): Declare.
17961 * config/i386/i386.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use it.
17962 * config/i386/i386.c (function_arg_pass_by_reference): New.
17963 (ix86_va_arg): Support arguments passed by reference.
17964
17965 2003-01-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
17966
17967 * cfgloopanal.c: New file.
17968 * cfgloopmanip.c: New file.
17969 * Makefile.in (cfgloopanal.o, cfgloopmanip.o): New.
17970 (toplev.o, loop.o, doloop.o, unroll.o, cfgloop.o, predict.o,
17971 cfglayout.o): Add dependency on cfgloop.h.
17972 (cfgloop.o): Add flags.h dependency.
17973 * basic-block.h (BB_IRREDUCIBLE_LOOP, BB_SUPERBLOCK): New flags.
17974 (VLS_EXPECT_PREHEADERS, VLS_EXPECT_SIMPLE_LATCHES): Removed.
17975 (struct loop, struct loops, flow_loops_find, flow_loops_update,
17976 flow_loops_free, flow_loops_dump, flow_loop_dump,
17977 flow_loop_scan, flow_loop_tree_node_add, flow_loop_tree_node_remove,
17978 LOOP_TREE,,LOOP_PRE_HEADER, LOOP_ENTRY_EDGES, LOOP_EXIT_EDGES,
17979 LOOP_ALL, flow_loop_outside_edge_p, flow_loop_nested_p,
17980 flow_bb_inside_loop_p, get_loop_body, loop_preheader_edge,
17981 loop_latch_edge, add_bb_to_loop, remove_bb_from_loops,
17982 find_common_loop, verify_loop_structure): Declarations moved to ...
17983 * cfgloop.h: New file.
17984 * bb-reorder.c (reorder_basic_blocks): Modified.
17985 * cfglayout.c: Include cfgloop.h.
17986 (cleanup_unconditional_jumps, cfg_layout_redirect_edge,
17987 cfg_layout_duplicate_bb, cfg_layout_initialize): Update loop structure.
17988 (break_superblocks): New static function.
17989 (cfg_layout_finalize): Use it.
17990 (cfg_layout_split_block): New function.
17991 * cfglayout.h (struct reorder_block_def): Add copy and duplicated
17992 fields.
17993 (cfg_layout_initialize, cfg_layout_redirect_edge): Declaration
17994 changed.
17995 (cfg_layout_split_block): Declare.
17996 * cfgloop.c: Include cfgloop.h and flags.h.
17997 (flow_loop_dump, flow_loops_free, flow_loop_exit_edges_find,
17998 get_loop_body): Avoid signed versus unsigned comparison warnings.
17999 (make_forwarder_block, flow_loops_find, loop_preheader_edge,
18000 loop_latch_edge): Modified.
18001 (verify_loop_structure): Modified to use flags stored in loop structure;
18002 check irreducible loops.
18003 (cancel_loop, cancel_loop_tree): New functions.
18004 (estimate_probability): Use loop analysis code for predictions.
18005 (estimate_loops_at_level): Avoid signed versus unsigned comparison
18006 warnings.
18007 * doloop.c: Include cfgloop.h.
18008 * loop.c: Include cfgloop.h.
18009 * predict.c: Include cfgloop.h.
18010 * toplev.c: Include cfgloop.h.
18011 * unroll.c: Include cfgloop.h.
18012 * tracer.c (tracer): Modified.
18013
18014 2003-01-24 Kazu Hirata <kazu@cs.umass.edu>
18015
18016 * config/h8300/h8300.c (get_shift_alg): Fix a typo.
18017
18018 2003-01-24 Ulrich Weigand <uweigand@de.ibm.com>
18019
18020 * configure.in (HAVE_AS_TLS): Add s390-*-* and s390x-*-* cases.
18021 * configure: Regenerate.
18022
18023 * config/s390/s390-protos.h (tls_symbolic_operand): Add prototype.
18024 (tls_symbolic_reference_mentioned_p): Add prototype.
18025 (s390_tls_get_offset): Add prototype.
18026 (emit_pic_move): Remove prototype, replace by ...
18027 (emit_symbolic_move): .. this new prototype.
18028
18029 * config/s390/s390.c (TARGET_HAVE_TLS): Conditionally define.
18030 (tls_model_chars): New global variable.
18031 (s390_encode_section_info): Encode TLS model.
18032 Use targetm.binds_local_p to check for local symbols.
18033 (s390_strip_name_encoding): New function.
18034 (TARGET_STRIP_NAME_ENCODING): Define.
18035
18036 (get_thread_pointer): New function.
18037 (legitimize_tls_address): New function.
18038 (legitimize_address): Call it.
18039 (emit_pic_move): Remove, replace by ...
18040 (emit_symbolic_move): ... this new function.
18041
18042 (larl_operand): Handle TLS operands.
18043 (legitimate_constant_p): Likewise.
18044 (s390_decompose_address): Likewise.
18045 (s390_cannot_force_const_mem): New function.
18046 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
18047
18048 (s390_output_symbolic_const): Handle TLS unspecs.
18049 (print_operand): New code 'J'.
18050 (machine_function): Add struct member 'some_ld_name'.
18051 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
18052
18053 (enum s390_builtin): New type.
18054 (code_for_builtin_64, code_for_builtin_31): New global variables.
18055 (s390_init_builtins, s390_expand_builtin): New functions.
18056 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
18057
18058 * config/s390/s390.h (TLS_SYMBOLIC_CONST): New macro.
18059 (ASM_OUTPUT_LABELREF): Define.
18060 (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Handle TLS constants.
18061
18062 * config/s390/s390.md: Define TLS UNSPEC constants.
18063 ("movdi", "movsi"): Handle TLS operands.
18064 ("get_tp_64", "get_tp_31", "set_tp_64", "set_tp_31"): New insns.
18065 ("*tls_load_64", "*tls_load_31"): New insns.
18066 ("call_value_tls", "call_value_tls_exp"): New expanders.
18067 ("brasl_tls", "bras_tls", "basr_tls_64", "basr_tls_31",
18068 "bas_tls_64", "bas_tls_31"): New insns.
18069
18070 2003-01-24 Nathan Sidwell <nathan@codesourcery.com>
18071
18072 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Make sure
18073 spe ABI is configured, if requested.
18074
18075 2003-01-24 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
18076
18077 * doc/passes.texi: Fix typo.
18078
18079 2003-01-24 Andreas Schwab <schwab@suse.de>
18080
18081 * stor-layout.c (excess_unit_span): Only define if used.
18082
18083 2003-01-24 Jerry Quinn <jlquinn@optonline.net>
18084
18085 * gcc/doc/invoke.texi (Optimization Options): List -O levels
18086 for each optimization flag.
18087
18088 2003-01-24 Kazu Hirata <kazu@cs.umass.edu>
18089
18090 * config/h8300/h8300.md (*andsi3_ashift_n_lower): New.
18091
18092 2003-01-24 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
18093
18094 * doc/bugreport.texi: Use @command instead of @code for commands.
18095 * doc/collect2.texi: Likewise.
18096 * doc/headerdirs.texi: Likewise.
18097 * doc/invoke.texi: Likewise.
18098 * doc/standards.texi: Likewise.
18099 * doc/tm.texi: Likewise.
18100 * doc/trouble.texi: Likewise.
18101
18102 2003-01-24 Nick Clifton <nickc@redhat.com>
18103
18104 * config/arm/arm.c (use_return_insn): Do not use a single return
18105 instruction for interrupt handelrs which have to create a stack
18106 frame.
18107 (arm_expand_prologue): Do not pre-bias the return address of
18108 interrupt handlers which create a stack frame.
18109
18110 2003-01-24 Nick Clifton <nickc@redhat.com>
18111
18112 * Add sh2e support:
18113
18114 2002-08-12 Alexandre Oliva <aoliva@redhat.com>
18115
18116 * config/sh/sh.c (output_branch) [TARGET_SH2E]: Handle
18117 med_cbranches. Fix logic in short_cbranches.
18118
18119 2002-04-03 Alexandre Oliva <aoliva@redhat.com>
18120
18121 * config/sh/sh.md (delay for cbranch): Don't annul delay
18122 slots on SH2e.
18123 * config/sh/sh.c (sh_insn_length_adjustment): Add 2 for
18124 cbranch with unfilled delay slot on SH2e.
18125 (output_branch): Fill with a nop the delay slot of a
18126 branch that required a delay slot but didn't get one.
18127
18128 2002-04-02 Alexandre Oliva <aoliva@redhat.com>
18129
18130 * doc/invoke.texi (SH options): Document -m2e.
18131 * config/sh/crt1.asm: Add __SH2E__ Next to __SH3E__.
18132 * config/sh/lib1funcs.asm: Likewise.
18133 * config/sh/sh.c: Replace all uses of TARGET_SH3E with SH2E.
18134 * config/sh/sh.h (CPP_SPEC): Define __SH2E__ for -m2e, and
18135 not __sh1__.
18136 (CONDITIONAL_REGISTER_USAGE): Don't disable FP regs from
18137 SH2E up.
18138 (SH3E_BIT): Renamed to...
18139 (SH_E_BIT): ... this. Replace all uses.
18140 (TARGET_SH2E): Define from SH_E_BIT and TARGET_SH2.
18141 Replace all uses of TARGET_SH3E with TARGET_SH2E.
18142 (TARGET_SWITCHES): Added 2e.
18143 (OVERRIDE_OPTIONS): Set sh_cpu for SH2E.
18144 (processor_type): Added PROCESSOR_SH2E.
18145 * config/sh/sh.md: Replace all uses of TARGET_SH3E with
18146 TARGET_SH2E, except in sqrtsf2_i.
18147 (attribute cpu): Added sh2e.
18148 * config/sh/t-sh (MULTILIB_OPTIONS): Replace m3e with m2e.
18149 (MULTILIB_MATCHES): Use m2e multilib for m3e.
18150 * config.gcc: Add sh2e target support.
18151
18152 2003-01-24 Phil Edwards <pme@gcc.gnu.org>
18153
18154 Rename -W to -Wextra.
18155 * c-decl.c: Update comments.
18156 * c-typeck.c: Likewise.
18157 * flags.h: Likewise.
18158 * function.c: Likewise.
18159 * stmt.c: Likewise.
18160 * toplev.c: Update comments.
18161 (W_options): Add 'extra'.
18162 (display_help): Remove '-W'.
18163 (decode_W_option): Special warn_uninitialized treatment in the case
18164 of -Wextra.
18165 * doc/invoke.texi: Update with new entries.
18166
18167 2003-01-23 Richard Henderson <rth@redhat.com>
18168
18169 * ifcvt.c (noce_process_if_block): Re-add check vs X being changed
18170 in no-else-block case. Add commentary.
18171
18172 2003-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18173
18174 * configure.in: Revert last change.
18175
18176 2003-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18177
18178 * configure.in: Don't include ansidecl.h in tconfig.h.
18179 * gcov-io.h (PARAMS, ATTRIBUTE_UNUSED): Define if IN_LIBGCC2.
18180 * unwind-dw2-fde.h (last_fde): Use __attribute__, not
18181 ATTRIBUTE_UNUSED.
18182
18183 * configure: Regenerate.
18184
18185 2003-01-23 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
18186
18187 PR java/6748
18188 * config/rs6000/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Don't destroy
18189 regs->nip. Fix rt_sigreturn frame layout. Add support for newer
18190 kernels.
18191
18192 2003-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18193
18194 * cpplex.c (cpp_interpret_charconst): Squelch warning with cast.
18195
18196 2003-01-23 Ulrich Weigand <uweigand@de.ibm.com>
18197
18198 * genattrtab.c (write_attr_get): Mark 'insn' paramter
18199 as ATTRIBUTE_UNUSED.
18200
18201 2003-01-23 Richard Earnshaw <rearnsha@arm.com>
18202
18203 * arm.c (thumb_base_register_rtx_p): New function.
18204 (thumb_index_register_rtx_p): New function.
18205 (thumb_legitimate_address_p): New function.
18206 (thumb_legitimate_offset_p): New function.
18207 * arm.h (REG_STRICT_P): Define according to setting of REG_OK_STRICT.
18208 (ARM_GO_IF_LEGITIMATE_ADDRESS): Use REG_STRICT_P to avoid duplicate
18209 definitions.
18210 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Use thumb_legitimate_address_p.
18211 (THUMB_LEGITIMATE_OFFSET): Delte.
18212 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use thumb_legitimate_offset.
18213 * arm-protos.h (thumb_legitimate_address_p): Add prototype.
18214 (thumb_legitimate_offset_p): Likewise.
18215
18216 2003-01-23 Andreas Schwab <schwab@suse.de>
18217
18218 * unwind.h (_Unwind_GetTextRelBase): Mark parameter as unused.
18219
18220 2003-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18221
18222 * fixinc/Makefile.in (FL_LIST): Revert last change.
18223
18224 2003-01-23 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
18225
18226 PR other/7341
18227 * invoke.texi (ftest-coverage): Fix broken cross-reference.
18228 Change @code to @command for gcov command.
18229
18230 * gcc.texi: Adjust title of gcov section.
18231 Adjust copyright.
18232 * gcov.texi: Likewise.
18233
18234 2003-01-22 Roger Sayle <roger@eyesopen.com>
18235
18236 PR optimization/8423
18237 * cse.c (fold_rtx): Only eliminate a CONSTANT_P_RTX to 1 when
18238 its argument is constant, or 0 if !flag_gcse.
18239 * simplify-rtx.c (simplify_rtx): Convert CONSTANT_P_RTX to 1
18240 if it's argument is constant.
18241 * gcse.c (want_to_gcse_p): Ignore CONSTANT_P_RTX nodes.
18242 (hash_scan_set): Don't record CONSTANT_P_RTX expressions.
18243 (do_local_cprop): Don't propagate CONSTANT_P_RTX constants.
18244 * builtins.c (purge_builtin_constant_p): New function to force
18245 instantiation of any remaining CONSTANT_P_RTX nodes.
18246 * rtl.h (purge_builtin_constant_p): Prototype here.
18247 * toplev.c (rest_of_compilation): Invoke purge_builtin_constant_p
18248 pass after GCSE and before loop.
18249 (flag_gcse): No longer static.
18250 * flags.h (flag_gcse): Prototype here.
18251
18252 2003-01-22 Ulrich Weigand <uweigand@de.ibm.com>
18253
18254 * config/s390/s390.h (HARD_REGNO_MODE_OK): Fix warning regression
18255 introduced by last change.
18256
18257 2003-01-22 Andreas Schwab <schwab@suse.de>
18258
18259 * ra-rewrite.c (rewrite_program2): Initialize bb to avoid warning.
18260
18261 2003-01-22 Kazu Hirata <kazu@cs.umass.edu>
18262
18263 * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Don't
18264 request a scratch reg on H8S when the shift count is 8.
18265
18266 2003-01-22 Ulrich Weigand <uweigand@de.ibm.com>
18267
18268 * config/s390/s390-protos.h (preferred_la_operand_p):
18269 Remove second parameter.
18270 * config/s390/s390.c (preferred_la_operand_p): Likewise.
18271 * config/s390/s390.h (FRAME_REGNO_P, FRAME_REG_P): New macros.
18272 (HARD_REGNO_MODE_OK): Use FRAME_REGNO_P.
18273 * config/s390/s390.md ("*la_cc_64", "*la_cc_31", splitters): Remove.
18274 Add peepholes to transform ADD to LOAD ADDRESS.
18275
18276 2003-01-22 Richard Earnshaw <rearnsha@arm.com>
18277
18278 * arm.c (arm_address_register_rtx_p): New function.
18279 (arm_legitimate_address_p): New function.
18280 (arm_legitimate_index_p): New function.
18281 (legitimize_pic_address): Use arm_legitimate_index_p.
18282 * arm-protos.h (arm_legtimate_address_p): Add prototype.
18283 * arm.h (ARM_GO_IF_LEGITIMATE_INDEX): Delete.
18284 (ARM_GO_IF_LEGITIMATE_ADDRESS): Call arm_legitimate_address_p.
18285
18286 2003-01-22 Hartmut Penner <hpenner@de.ibm.com>
18287
18288 * config/s390/s390.md (floatdfdi2): Insn has type 'itof'.
18289 * config/s390/2064.md (define_bypass): Correct 'Load' and
18290 'Load-address' bypass values.
18291
18292 2003-01-22 Andreas Schwab <schwab@suse.de>
18293
18294 * config/ia64/t-ia64 (insn-attrtab.o-warn): Define as -Wno-error.
18295
18296 2003-01-21 Zack Weinberg <zack@codesourcery.com>
18297
18298 * genautomata.c (output_internal_insn_latency_func,
18299 output_print_reservation_func): Short circuit when there is no
18300 automaton to generate code for.
18301
18302 2003-01-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18303
18304 * Makefile.in (ssa-ccp.o): Depend on coretypes.h $(TM_H).
18305 (df.o): Delete duplicate dependency on coretypes.h $(TM_H).
18306
18307 2003-01-21 Geoffrey Keating <geoffk@apple.com>
18308
18309 * config/rs6000/rs6000.md: Remove warning.
18310 (builtin_setjmp_receiver): Likewise.
18311 * config/darwin.c (update_stubs): Slightly improve terrible hack
18312 with identifiers. Add comment pointing out problems with it.
18313 (update_non_lazy_ptrs): Likewise.
18314
18315 2003-01-21 Richard Henderson <rth@redhat.com>
18316
18317 * dwarf2out.c (lookup_filename): Fix printf format warning.
18318 * system.h (fread_unlocked, fwrite_unlocked): Undef.
18319
18320 * fixinc/Makefile.in (FL_LIST): Add $($@-warn) hook.
18321 (fixincl.o-warn, gnu-regex.o-warn): New.
18322 * fixinc/fixfixes.c (FIX_PROC_HEAD): Mark parameters unused.
18323 * fixinc/fixtests.c (TEST_FOR_FIX_PROC_HEAD): Likewise.
18324 * fixinc/fixincl.c (process): Fix printf format warning.
18325
18326 2003-01-21 Ulrich Weigand <uweigand@de.ibm.com>
18327
18328 * dwarf2out (output_file_names): Don't crash if called
18329 with empty file_table.
18330
18331 2003-01-21 Zack Weinberg <zack@codesourcery.com>
18332
18333 * genautomata.c (output_internal_insn_latency_func): Add
18334 missing break statement to generated code.
18335
18336 2003-01-21 Roger Sayle <roger@eyesopen.com>
18337
18338 * stmt.c (same_case_target_p): New function to determine whether
18339 two case labels branch to the same target. Split out from...
18340 (group_case_nodes): ... here. Use same_case_target_p instead.
18341 (strip_default_case_nodes): Remove explicit case nodes
18342 that branch to the default destination.
18343 (expand_end_case_type): Call strip_default_case_nodes after
18344 group_case_nodes, to simplify the case-list before we count it.
18345 Only generate table_label RTX when actually needed. Try to share
18346 thiscase->exit_label and thiscase->data.case_stmt.default_label
18347 when a switch has no explicit default case. Simplify test for
18348 constant index.
18349
18350 2003-01-21 Kazu Hirata <kazu@cs.umass.edu>
18351
18352 * config/h8300/h8300.md (*negsf2_h8300): Use \\t instead of
18353 \t.
18354 (*negsf2_h8300hs): Likewise.
18355 (*addsi3_lshiftrt_16_zexthi): Likewise.
18356 (*iorhi3_lshiftrt_8): Likewise.
18357
18358 2003-01-21 Ulrich Weigand <uweigand@de.ibm.com>
18359
18360 * dwarf2out.c (fde_table_in_use): Mark GTY.
18361 (dwarf2out_cfi_label_num): New variable, marked GTY.
18362 (dwarf2out_cfi_label): Use it instead of static label_num.
18363 * emit-rtl.c (label_num): Mark GTY.
18364
18365 2003-01-21 Kazu Hirata <kazu@cs.umass.edu>
18366
18367 * config/h8300/h8300.c (output_plussi): Support H8/300.
18368 (compute_plussi_length): Likewise.
18369 (compute_plussi_cc): Likewise.
18370 * config/h8300/h8300.md (addsi_h8300): Use output_plussi to
18371 output assembly instructions.
18372
18373 2003-01-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18374
18375 * calls.c (fix_unsafe_tree): Prototype.
18376
18377 * Makefile.in (GCC_WARN_CFLAGS): Add $(WERROR) $($@-warn)
18378 (gtype-desc.o-warn, c-decl.o-warn, varasm.o-warn, gcc.o-warn,
18379 insn-conditions.o-warn, out_object_file, gengtype-yacc.o-warn,
18380 c-parse.o-warn): Add -Wno-error.
18381 (STAGE2_FLAGS_TO_PASS): Add WERROR="@WERROR@".
18382
18383 * configure.in (--enable-werror): Add new flag.
18384 * doc/install.texi (--enable-werror): Document.
18385 * configure: Regenerate.
18386
18387 * objc/Make-lang.in (objc/objc-parse.o-warn): Add -Wno-error.
18388
18389 2003-01-21 Andreas Schwab <schwab@suse.de>
18390
18391 * genautomata.c (output_internal_insn_latency_func): Fix missing
18392 close paren in output.
18393
18394 2003-01-21 Zack Weinberg <zack@codesourcery.com>
18395
18396 * genautomata.c: Space savings in generated code:
18397 (output_dfa_insn_code_func): Split out the table-enlargement
18398 path to an out-of-line static function, dfa_insn_code_enlarge.
18399 (output_internal_insn_latency_func): Use a lookup table for the
18400 default latencies.
18401 (output_print_reservation_func): Use a lookup table for the
18402 strings.
18403
18404 2003-01-21 Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
18405
18406 PR opt/7507
18407 * calls.c (fix_unsafe_tree): Split out from ...
18408 (expand_call): ... here. Use it on the function address too.
18409
18410 2003-01-20 Richard Henderson <rth@redhat.com>
18411
18412 * expr.h (default_must_pass_in_stack): Move decl outside ifdef.
18413
18414 2003-01-20 Richard Henderson <rth@redhat.com>
18415
18416 PR opt/7154
18417 * stmt.c (expand_asm_operands): Validize memory operands.
18418
18419 2003-01-20 Richard Henderson <rth@redhat.com>
18420
18421 PR opt/8848
18422 * ifcvt.c (noce_process_if_block): Correct arguments to
18423 modified_between_p for no-else-block case.
18424
18425 2003-01-20 Kazu Hirata <kazu@cs.umass.edu>
18426
18427 * config/h8300/h8300.c (const_costs): Remove a warning.
18428 (output_plussi): Likewise.
18429 (compute_plussi_length): Likewise.
18430 (compute_plussi_cc): Likewise.
18431
18432 2003-01-20 Kazu Hirata <kazu@cs.umass.edu>
18433
18434 * config/h8300/h8300.md (addsi_h8300): Remove the last
18435 alternative.
18436
18437 2003-01-20 Kazu Hirata <kazu@cs.umass.edu>
18438
18439 * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
18440
18441 2003-01-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18442
18443 * system.h (__NO_STRING_INLINES): Define.
18444
18445 2003-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18446
18447 * ifcvt.c (noce_emit_store_flag): Don't emit store flag if mode of x
18448 is not a scalar int mode.
18449
18450 2003-01-20 Roger Sayle <roger@eyesopen.com>
18451
18452 * cse.c (cse_insn): Avoid RTL sharing when updating the RETVAL
18453 insn's notes following a substitution inside a libcall.
18454
18455 2003-01-20 Zack Weinberg <zack@codesourcery.com>
18456
18457 * configure.in: Check for system-provided 'uchar' type.
18458 * configure, config.in: Regenerate.
18459 * cpphash.h: Only typedef 'uchar' if the system doesn't.
18460
18461 2003-01-20 Richard Henderson <rth@redhat.com>
18462
18463 * expr.h (MUST_PASS_IN_STACK): Move implementation...
18464 * calls.c (default_must_pass_in_stack): ... here.
18465
18466 2003-01-20 Vladimir Makarov <vmakarov@redhat.com>
18467
18468 * genattrtab.h (INSN_ALTS_FUNC_NAME): Move it from genautomata.c.
18469
18470 * genautomata.c (INSN_ALTS_FUNC_NAME): Move it into genattrtab.h.
18471
18472 * genattr.c (main): Output default definition of AUTOMATON_ALTS.
18473 Wrap up definition of `insn_alts'.
18474
18475 * genattrtab.c (main): Wrap up `insn_alts'.
18476
18477 2003-01-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18478
18479 * collect2.c (ldgetname): Check HAVE_DECL_LDGETNAME before
18480 prototyping.
18481 * configure.in: Check for <ldfcn.h> and ldgetname() prototype.
18482
18483 * config.in, configure: Regenerate.
18484
18485 2003-01-20 Nick Clifton <nickc@redhat.com>
18486
18487 * config/arm/arm.md (sibcall_epilogue): Add an
18488 UNSPEC_PROLOGUE_USE to prevent the link register from being
18489 considered dead.
18490
18491 2003-01-20 Jan Hubicka <jh@suse.cz>
18492
18493 * i386.md (SSE cmov splitter): Handle memory operand in operand 5.
18494
18495 2003-01-20 Andreas Schwab <schwab@suse.de>
18496
18497 * system.h: Don't declare strsignal if the decl test hasn't been
18498 run yet.
18499
18500 2003-01-20 Kazu Hirata <kazu@cs.umass.edu>
18501
18502 * config/h8300/h8300.c (notice_update_cc): Don't assume that
18503 recog_data.operands[0] is always associated with cc0.
18504
18505 2003-01-19 David Edelsohn <edelsohn@gnu.org>
18506
18507 * collect2.c (ldgetname): Expand declaration to prototype.
18508 * read-rtl.c (atoll): Add prototype.
18509 * system.h (strsignal): Also declare if no declaration found.
18510
18511 2003-01-19 Alexandre Oliva <aoliva@redhat.com>
18512
18513 * config.gcc (mips64*-*-linux*): Added.
18514 * config/mips/linux64.h, config/mips/t-linux64: New file.
18515 * config/mips/iris6.h (MIPS_TFMODE_FORMAT): Define.
18516 * config/mips/mips.c (override_options): Use it.
18517 * config/mips/mips.h (TARGET_SWITCHES): Added...
18518 (SUBTARGET_TARGET_SWITCHES): New, empty by default.
18519 * Makefile.in (SPECS): New.
18520 (STAGESTUFF, specs, mostlyclean, install-common): Use it.
18521 * gcc.c (process_command): Move self-spec processing past spec
18522 file loading.
18523 * doc/tm.texi (DRIVER_SELF_SPECS): Document the change.
18524 * doc/fragments.texi (MULTILIB_EXTRA_OPTS): Document need for
18525 CRTSTUFF_T_CFLAGS.
18526 (SPECS): Document.
18527 * doc/invoke.texi (-mabi-fake-default): Document.
18528
18529 2003-01-19 Stephane Carrez <stcarrez@nerim.fr>
18530
18531 * config/m68hc11/m68hc11.c (stack_push_word, stack_pop_word,
18532 z_reg, z_reg_qi): Declare static and GTY().
18533 (da_reg): Remove.
18534 (create_regs_rtx): Don't create da_reg.
18535 ("gt-m68hc11.h"): Include for GTY roots.
18536 * config/m68hc11/m68hc11.h (ix_reg, iy_reg, d_reg): Declare extern
18537 and GTY() here.
18538 (m68hc11_compare_op0, m68hc11_compare_op1): Likewise.
18539 (m68hc11_soft_tmp_reg): Likewise.
18540 * config/m68hc11/m68hc11-protos.h: Remove above declarations.
18541
18542 2003-01-18 Kazu Hirata <kazu@cs.umass.edu>
18543
18544 * basic-block.h: Fix comment formatting.
18545 * calls.c: Likewise.
18546 * combine.c: Likewise.
18547 * convert.c: Likewise.
18548 * gcov.c: Likewise.
18549 * haifa-sched.c: Likewise.
18550 * libgcc2.c: Likewise.
18551 * loop.c: Likewise.
18552 * profile.c: Likewise.
18553 * system.h: Likewise.
18554
18555 2003-01-18 Roger Sayle <roger@eyesopen.com>
18556
18557 * config/pa/pa.md (muldi3): Avoid invalid sharing of SUBREG RTXs.
18558
18559 2003-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18560
18561 * ra-build.c (undef_to_size_word): Avoid `switch' warning.
18562
18563 2003-01-17 Dale Johannesen <dalej@apple.com>
18564
18565 * config/rs6000/rs6000.md (*floatsidf2_internal): Add earlyclobbers.
18566 (*floatunssidf2_internal): Ditto.
18567
18568 2003-01-17 Kazu Hirata <kazu@cs.umass.edu>
18569
18570 * alias.c: Fix comment typos.
18571 * basic-block.h: Likewise.
18572 * c-common.c: Likewise.
18573 * c-common.h: Likewise.
18574 * c-decl.c: Likewise.
18575 * c-opts.c: Likewise.
18576 * c-pragma.c: Likewise.
18577 * c-pretty-print.h: Likewise.
18578 * cfg.c: Likewise.
18579 * cfganal.c: Likewise.
18580 * cfgbuild.c: Likewise.
18581 * cfgcleanup.c: Likewise.
18582 * cfglayout.c: Likewise.
18583 * cfgrtl.c: Likewise.
18584 * convert.c: Likewise.
18585 * cpphash.h: Likewise.
18586 * cpplex.c: Likewise.
18587 * cpplib.h: Likewise.
18588 * df.h: Likewise.
18589 * diagnostic.c: Likewise.
18590 * diagnostic.h: Likewise.
18591 * dwarf2.h: Likewise.
18592
18593 2003-01-17 Stan Shebs <shebs@apple.com>
18594
18595 * config/darwin-protos.h: Forward-declare struct cpp_reader.
18596
18597 2003-01-17 Douglas B Rupp <rupp@gnat.com>
18598
18599 * config/alpha/alpha.c (alpha_need_linkage): Fix obvious
18600 mistake in last checkin.
18601
18602 2003-01-17 Kazu Hirata <kazu@cs.umass.edu>
18603
18604 * et-forest.c: Fix comment typos.
18605 * et-forest.h: Likewise.
18606 * except.c: Likewise.
18607 * expr.c: Likewise.
18608 * flags.h: Likewise.
18609 * flow.c: Likewise.
18610 * gcc.c: Likewise.
18611 * gcse.c: Likewise.
18612 * genattrtab.c: Likewise.
18613 * genautomata.c: Likewise.
18614 * gengtype.c: Likewise.
18615 * genrecog.c: Likewise.
18616 * global.c: Likewise.
18617 * gthr-rtems.h: Likewise.
18618
18619 2003-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18620
18621 * i386.c (x86_function_profiler): Fix format specifier.
18622
18623 2003-01-17 Richard Henderson <rth@redhat.com>
18624
18625 * gengtype.c (walk_type): Allow paramN_is.
18626
18627 2003-01-17 Nick Clifton <nickc@redhat.com>
18628
18629 * config/i960/t-960bare (i960-c.o): Add missing newline escape.
18630
18631 2003-01-16 Richard Henderson <rth@redhat.com>
18632
18633 * config/alpha/linux-elf.h (LIB_SPEC): Adjust inter-option spacing.
18634
18635 2003-01-16 Richard Henderson <rth@redhat.com>
18636
18637 * config/alpha/alpha.c (alpha_sr_alias_set): Mark GTY.
18638 (alpha_next_sequence_number): Likewise.
18639 (alpha_this_literal_sequence_number): Likewise.
18640 (alpha_this_gpdisp_sequence_number): Likewise.
18641 (struct alpha_funcs, alpha_funcs_num): Likewise.
18642 (struct alpha_links): Fix branch merge error.
18643 (alpha_need_linkage, alpha_use_linkage): Use GC for alpha_funcs.
18644
18645 2003-01-17 Alexandre Oliva <aoliva@redhat.com>
18646
18647 * config/mips/mips.h: Don't use #elif. Reported by Kaveh
18648 R. Ghazi.
18649
18650 2003-01-16 Kazu Hirata <kazu@cs.umass.edu>
18651
18652 * ifcvt.c: Fix comment typos.
18653 * lcm.c: Likewise.
18654 * libgcc2.c: Likewise.
18655 * local-alloc.c: Likewise.
18656 * loop.c: Likewise.
18657 * predict.c: Likewise.
18658 * ra-build.c: Likewise.
18659 * ra.c: Likewise.
18660 * ra-colorize.c: Likewise.
18661 * ra.h: Likewise.
18662 * ra-rewrite.c: Likewise.
18663 * regmove.c: Likewise.
18664 * reload.h: Likewise.
18665 * rtlanal.c: Likewise.
18666 * toplev.c: Likewise.
18667 * tree.h: Likewise.
18668 * unwind-dw2-fde-glibc.c: Likewise.
18669 * vmsdbgout.c: Likewise.
18670
18671 2003-01-16 Richard Henderson <rth@redhat.com>
18672
18673 * dwarf2out.c (struct file_table): Remove.
18674 (FILE_TABLE_INCREMENT): Remove.
18675 (file_table): Make a varray; mark for GC. Update all users.
18676 (file_table_last_lookup_index): Extract from struct file_table.
18677 (output_file_names): Fix unsigned compare warnings.
18678 (add_name_attribute): Remove inline marker.
18679 (add_comp_dir_attribute): Split out from gen_compile_unit_die.
18680 (lookup_filename): Don't manage size of file_table.
18681 (init_file_table): Allocate file_table with GC.
18682 (dwarf2out_init): Don't record main_input_filename here.
18683 (dwarf2out_finish): Do it here instead.
18684
18685 2003-01-16 Bruce Korb <bkorb@gnu.org>
18686
18687 * gcc/fixinc/inclhack.def(limits_ifndef): QNX needs a bypass, too.
18688
18689 2003-01-16 Kaz Kojima <kkojima@gcc.gnu.org>
18690
18691 * config/sh/sh.c (sh_initialize_trampoline): Emit rotrdi3_mextr
18692 instead of rotldi3_mextr.
18693
18694 2003-01-16 Vladimir Makarov <vmakarov@redhat.com>
18695
18696 * haifa-sched.c (move_insn): Restore moving all schedule group.
18697 (set_priorities): Restore taking SCHED_GROUP_P into account.
18698
18699 * sched-deps.c (add_dependence): Restore processing the last group
18700 insn.
18701 (remove_dependence, group_leader): Restore the functions.
18702 (set_sched_group_p): Restore adding dependencies from previous insn
18703 in the group.
18704 (compute_forward_dependences): Restore usage of group_leader.
18705
18706 * sched-ebb.c (init_ready_list): Restore taking SCHED_GROUP_P into
18707 account.
18708
18709 * sched-rgn.c (init_ready_list): Restore taking SCHED_GROUP_P into
18710 account.
18711 (can_schedule_ready_p): Ditto.
18712 (add_branch_dependences): Restore skipping over the group insns.
18713
18714 2003-01-16 Stephane Carrez <stcarrez@nerim.fr>
18715
18716 * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Fix handling
18717 68HC12 pre/post inc/dec side effects.
18718
18719 2003-01-16 Stephane Carrez <stcarrez@nerim.fr>
18720
18721 * config/m68hc11/m68hc11.h (MASK_M6812): Define.
18722
18723 2003-01-16 J"orn Rennecke <amylaar@onetel.net.uk>
18724
18725 * sh.md (mshflo_w_x): Fix description of operation.
18726
18727 2003-01-16 Zack Weinberg <zack@codesourcery.com>
18728
18729 * config/rs6000/rs6000.h: Mention Altivec registers in
18730 commentary. Fix typo.
18731
18732 2003-01-16 David Edelsohn <edelsohn@gnu.org>
18733
18734 * config/rs6000/rs6000.md (movti_string): Remove clobber.
18735 * config/rs6000/rs6000.c (rs6000_emit_move, TImode): Explicitly
18736 generate PARALLEL with clobber for TARGET_POWER.
18737
18738 2003-01-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18739
18740 * ra-colorize.c (colorize_one_web): Initialize variable.
18741 * regmove.c (fixup_match_1): Likewise.
18742 * reload1.c (reload_as_needed): Likewise.
18743 * sdbout.c (SET_KNOWN_TYPE_TAG): Add cast.
18744
18745 2003-01-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
18746
18747 * cfgloop.c (flow_loops_find): Fix handling of abnormal edges.
18748
18749 2003-01-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18750
18751 * dbxout.c (lastfile, cwd): Fix `unused' warning.
18752 * dwarf2out.c (fde_table_in_use, current_funcdef_fde,
18753 dw_cfi_oprnd1_desc, dw_cfi_oprnd2_desc, next_die_offset,
18754 is_main_source, file_table, decl_die_table_in_use,
18755 abbrev_die_table_in_use, line_info_table_in_use,
18756 separate_line_info_table_in_use, pubname_table_in_use,
18757 arange_table_in_use, ranges_table_in_use,
18758 current_function_has_inlines): Likewise.
18759 * flow.c (life_analysis): Likewise.
18760 * genemit.c (gen_insn): Likewise.
18761 * protoize.c (cplus_suffix): Likewise.
18762
18763 * arm.c (ROUND_UP_WORD): Renamed from ROUND_UP.
18764 * arm.h (ROUND_UP_WORD): Likewise.
18765
18766 * arm.h (CONDITIONAL_REGISTER_USAGE): Avoid signed/unsigned
18767 warning.
18768 * emit-rtl.c (gen_rtx_REG, set_mem_attributes_minus_bitpos,
18769 init_emit_once): Likewise.
18770 * flow.c (mark_regs_live_at_end, calculate_global_regs_live):
18771 Likewise.
18772 * function.c (assign_stack_temp_for_type): Likewise.
18773 * loop.c (loop_invariant_p): Likewise.
18774 * recog.c (push_operand): Likewise.
18775 * regclass.c (init_reg_sets_1): Likewise.
18776 * reload.c (update_auto_inc_notes): Likewise.
18777 * reload1.c (reload_as_needed, emit_input_reload_insns): Likewise.
18778 * stmt.c (expand_asm_operands): Likewise.
18779 * stor-layout.c (start_record_layout): Likewise.
18780
18781 2003-01-16 Herman A.J. ten Brugge <hermantenbrugge@home.nl>
18782
18783 * config/c4x/c4x.md (epilogue): Correct last patch.
18784
18785 2003-01-15 Richard Henderson <rth@redhat.com>
18786
18787 * config/alpha/alpha.c (find_lo_sum_using_gp): Rename from find_lo_sum;
18788 also check that GP is being used.
18789 (alpha_find_lo_sum_using_gp): New.
18790 (alpha_does_function_need_gp): Use get_attr_usegp.
18791 * config/alpha/alpha-protos.h: Update.
18792 * config/alpha/alpha.md (attr usegp): New. Annotate patterns
18793 as needed.
18794
18795 2003-01-15 Roger Sayle <roger@eyesopen.com>
18796
18797 * gcse.c (one_cprop_pass): Change function arguments to take both
18798 cprop_jumps and bypass_jumps flags instead of just alter_jumps.
18799 (gcse_main): Update calls to one_cprop_pass, disabling bypassing.
18800 (bypass_jumps): New function to perform separate jump bypassing pass.
18801 * rtl.h (bypass_jumps): Add function prototype.
18802 * timevar.def (TV_BYPASS): New timing variable.
18803 * toplev.c (enum dump_file_index): Add new entry DFI_bypass.
18804 (dump_file): New entry for the bypass RTL dump file.
18805 (rest_of_compilation): Insert new jump bypassing optimization
18806 pass after loop.
18807 * doc/passes.texi: Document new pass.
18808
18809 2003-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
18810
18811 * som.h (SUPPORTS_WEAK, SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY,
18812 ASM_WEAKEN_LABEL, GTHREAD_USE_WEAK): Define.
18813 * pa.h (TARGET_SOM_SDEF): Define.
18814 * pa-hpux11.h (TARGET_SOM_SDEF): Define.
18815
18816 2003-01-16 Stephane Carrez <stcarrez@nerim.fr>
18817
18818 * config/m68hc11/m68hc11.c (expand_prologue): Use push/pop to
18819 allocate 4-bytes of locals on 68HC11.
18820 (expand_epilogue): Likewise.
18821 (m68hc11_memory_move_cost): Increase cost of HI/QI soft registers.
18822
18823 2003-01-15 Stephane Carrez <stcarrez@nerim.fr>
18824
18825 * config/m68hc11/m68hc11.h (ASM_SPEC): Handle -m68hcs12; Pass -mshort
18826 and -mshort-double to the assembler to specify the ABI.
18827 (LINK_SPEC): Likewise.
18828 (CPP_SPEC): Pass HCS12 specific define.
18829 (MASK_M68S12): New define.
18830 (TARGET_M68S12): Likewise.
18831 (TARGET_SWITCHES): New options -m68hcs12 and -m68S12.
18832 (TARGET_VERSION): Update.
18833 * config/m68hc11/m68hc12.h (CPP_SPEC): Pass HCS12 specific define.
18834 (LINK_SPEC): Update.
18835 (ASM_SPEC): Update.
18836 * config/m68hc11/m68hc11.c (m68hc11_asm_file_start): Update.
18837 * doc/invoke.texi (M68hc1x Options): Document -m68hcs12.
18838
18839 2003-01-15 Stephane Carrez <stcarrez@nerim.fr>
18840
18841 * config/m68hc11/m68hc11.md ("return"): Use emit_jump_insn to emit
18842 the return code.
18843
18844 2003-01-15 Josef Zlomek <zlomekj@suse.cz>
18845
18846 * cfganal.c (set_edge_can_fallthru_flag): Clear the EDGE_CAN_FALLTHRU
18847 flag before setting it.
18848
18849 2003-01-15 Roger Sayle <roger@eyesopen.com>
18850
18851 * c-semantics.c (genrtl_while_stmt): Improve initial RTL generation
18852 when loop condition is known true, i.e. "while (1) { ... }".
18853 (genrtl_for_stmt): Similarly for "for" statements.
18854
18855 2003-01-15 Roger Sayle <roger@eyesopen.com>
18856
18857 * real.c (real_sqrt): Return a bool result indicating whether
18858 a floating point exception or trap should be raised.
18859 * real.h (real_sqrt): Update function prototype.
18860 * builtins.c (fold_builtin): Only fold non-trapping square
18861 roots unless we're ignoring errno and trapping math.
18862
18863 2003-01-15 John David Anglin <dave.anglin@nrc.gc.ca>
18864
18865 * expr.h (emit_conditional_add): Add PARAMS to declaration.
18866 * gengtype-lex.l (malloc, realloc): Move defines after include of
18867 system.h. Remove duplicate include of system.h.
18868
18869 2003-01-15 Roger Sayle <roger@eyesopen.com>
18870
18871 PR middle-end/9009
18872 * optabs.c (expand_unop): When manipulating the FP sign bit
18873 using integer operations, account for targets with different
18874 integer and FP word orders.
18875 (expand_abs): Likewise.
18876
18877 2003-01-15 David Edelsohn <edelsohn@gnu.org>
18878
18879 * config/rs6000/rs6000.c (rs6000_gen_section_name): Do not include
18880 file extension in section name.
18881
18882 2003-01-15 Richard Earnshaw <rearnsha@arm.com>
18883
18884 * flow.c (find_auto_inc): Also try to generate a PRE_MODIFY with
18885 constant offset.
18886
18887 2003-01-15 Richard Earnshaw <rearnsha@arm.com>
18888
18889 * arm.h (HAVE_PRE_MODIFY_DISP, HAVE_PRE_MODIFY_REG): Define.
18890 (HAVE_POST_MODIFY_DISP, HAVE_POST_MODIFY_REG): Define.
18891 (ARM_GO_IF_LEGITIMATE_ADDRESS): Handle pre/post-modify addresses.
18892 (ARM_PRINT_OPERAND_ADDRESS): Likewise.
18893
18894 2003-01-15 Jan Hubicka <jh@suse.cz>
18895
18896 PR f/9258
18897 * global.c (struct allocno): Add no_stack_reg.
18898 (global_conflicts): Set no_stack_reg.
18899 (find_reg): Use it.
18900
18901 * convert.c (convert_to_real): Fold - and abs only when profitable.
18902 * fold-const.c (fold): Fold truncates in - and abs.
18903
18904 2003-01-15 Josef Zlomek <zlomekj@suse.cz>
18905
18906 Segher Boessenkool <segher@koffie.nl>
18907
18908 * predict.c (real_inv_br_prob_base): New variable.
18909 (propagate_freq): Use multiply by reciprocal instead of
18910 division. Don't divide by 1.0 at all.
18911 (estimate_bb_frequencies): Similar.
18912
18913 2003-01-15 Alexandre Oliva <aoliva@redhat.com>
18914
18915 * configure.in (libgcc_visibility): Force disabled on IRIX 6 too.
18916 * configure: Rebuilt.
18917
18918 2003-01-15 Hartmut Penner <hpenner@de.ibm.com>
18919
18920 * config/s390/s390.c (s390_safe_attr_type): New function.
18921 (s390_use_dfa_pipeline_interface): New function, return true for z900.
18922 (s390_issue_rate): New function.
18923 (s390_agen_dep_p): New function.
18924 (addr_generation_dependency_p): Use 's390_safe_attr_type'.
18925 (s390_adjust_cost): Return 'cost' if new DFA is used.
18926 (s390_adjust_priority): Delete function.
18927 * config/s390/s390-protos.h: (s390_agen_dep_p): New prototype.
18928 * config/s390/s390.md (atype attribute): Attribute 'atype' default
18929 determined by 'op_type'.
18930 (type attribute): Added more type attributes.
18931 * config/s390/2064.md: New DFA description for z900 pipeline.
18932
18933 2003-01-15 Alexandre Oliva <aoliva@redhat.com>
18934
18935 * config/i386/i386.c (ix86_expand_vector_move): Validize constant
18936 forced to memory. Fixes PR bootstrap/9036.
18937
18938 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Define so as
18939 to set $gp before the call.
18940
18941 2003-01-14 Richard Henderson <rth@redhat.com>
18942
18943 * config/alpha/alpha.c (alpha_expand_mov): Use correct mode
18944 for force_const_mem.
18945
18946 2003-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18947
18948 * genattr.c (main): Rearrange output to avoid prototype warning.
18949 * genautomata.c (transform_3): Fix ambiguous-else warning.
18950 * local-alloc.c (requires_inout): Add parentheses around
18951 assignment used as truth-value.
18952 * timevar.c: Move system includes above local includes. Include
18953 toplev.h
18954 * Makefile.in (timevar.o): Depend on toplev.h.
18955
18956 2003-01-14 Denis Chertykov <denisc@overta.ru>
18957
18958 * config/ip2k/ip2k.h (VALID_MACHINE_DECL_ATTRIBUTE): Remove.
18959 (VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
18960
18961 * config/ip2k/ip2k.c (ip2k_attribute_table): New table of
18962 attributes.
18963 (TARGET_ATTRIBUTE_TABLE): New macro.
18964 (valid_machine_type_attribute): Remove.
18965 (valid_machine_decl_attribute): Remove.
18966 (ip2k_handle_progmem_attribute): New function.
18967 (ip2k_handle_fndecl_attribute): New function.
18968
18969 2003-01-10 Andrew Haley <aph@redhat.com>
18970
18971 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Rename
18972 registers to be in correct order. Add rip.
18973
18974 2003-01-14 Kazu Hirata <kazu@cs.umass.edu>
18975
18976 * config/h8300/h8300.md (*andsi3_lshiftrt_9_sb): New.
18977 (*iorsi3_and_lshiftrt_9_sb): Likewise.
18978
18979 2003-01-14 Jan Hubicka <jh@suse.cz>
18980
18981 * convert.c (strip_float_extensions): Look for narrowest type handling
18982 FP constants.
18983
18984 * fold-const.c (fold): Fold (double)float1 CMP (double)float2 into
18985 float1 CMP float2.
18986 * convert.c (strip_float_extensions): Make global.
18987 * tree.h (strip_float_extensions): Declare.
18988
18989 2003-01-14 Gabriel Dos Reis <gdr@integrable-solutions.net>
18990
18991 * timevar.def: define TV_NAME_LOOKUP.
18992 * timevar.c (timevar_pop): Be verbose when aborting.
18993
18994 2003-01-13 Andreas Schwab <schwab@suse.de>
18995
18996 * Makefile.in ($(parsedir)/gengtype-lex.c): Don't change to
18997 $(parsedir), just move the temporary file at the end.
18998 ($(parsedir)/gengtype-yacc.c): Likewise.
18999
19000 2003-01-13 Alexandre Oliva <aoliva@redhat.com>
19001
19002 * aclocal.m4 (gcc_AC_PROG_GNAT): Don't try to prepend
19003 ${ac_tool_prefix} to ADAC or CC. Protect them from word
19004 splitting.
19005 * configure: Rebuilt.
19006
19007 2003-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19008
19009 * config/sparc/gmon-sol2.c (moncontrol, monstartup, _mcleanup,
19010 internal_mcount): Don't use PARAMS.
19011 (monstartup, _mcleanup, internal_mcount, moncontrol): Convert to
19012 ISO C style.
19013 (internal_mcount): Use __attribute__, not ATTRIBUTE_UNUSED.
19014
19015 2003-01-13 Andreas Schwab <schwab@suse.de>
19016
19017 * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Output type
19018 directive.
19019
19020 2003-01-13 Kazu Hirata <kazu@cs.umass.edu>
19021
19022 * config/h8300/h8300.md (*andsi3_lshift_n_sb): New.
19023 (*iorsi3_and_lshiftrt_n_sb): Likewise.
19024
19025 2003-01-12 Mark Mitchell <mark@codesourcery.com>
19026
19027 PR c++/9264
19028 * c-lex.c (c_lex): Set the token value to error_mark_node for
19029 invalid numeric constants.
19030
19031 2003-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19032
19033 * c-pch.c (asm_file_startpos): Change to `long'.
19034 (pch_init): Use ftell, not ftello.
19035 (c_common_write_pch): Use ftell/fseek, not ftello/fseeko.
19036 Use `long' instead of `off_t'.
19037 (c_common_read_pch): Likewise.
19038 * ggc-common.c (gt_pch_save): Use long/ftell instead of
19039 off_t/ftello.
19040
19041 2003-01-12 Alan Modra <amodra@bigpond.net.au>
19042
19043 * expr.c (expand_expr <RDIV_EXPR>): Correct recursive call args.
19044
19045 2003-01-11 Richard Earnshaw (rearnsha@arm.com)
19046
19047 * arm-protos.h (struct cpp_reader): Add declaration.
19048
19049 2003-01-11 Jan Hubicka <jh@suse.cz>
19050
19051 PR target/9068
19052 * i386.c (output_fp_compare): Fix typo.
19053
19054 2003-01-10 David Edelsohn <edelsohn@gnu.org>
19055
19056 * config/rs6000/rs6000.c (common_mode_defined): Mark for PCH.
19057
19058 2003-01-10 Geoffrey Keating <geoffk@apple.com>
19059
19060 * Makefile.in (parsedir): New variable.
19061 (docobjdir): New variable.
19062 (c-parse.o, c-parse.c, c-parse.y, gengtype-lex.o, gengtype-yacc.o,
19063 gengtype-lex.c, gengtype-yacc.c): Use parsedir.
19064 (info, cpp.info, gcc.info, gccint.info, gccinstall.info,
19065 cppinternals.info, generated-manpages, gcov.1, cpp.1, gcc.1, gfdl.7,
19066 gpl.7, fsf-funding.7, maintainer-clean, install-info, install-man):
19067 Use docobjdir.
19068 * objc/Make-lang.in (objc/objc-parse.c, objc/objc-parse.y,
19069 objc.maintainer-clean): Use parsedir.
19070
19071 * varasm.c (struct constant_descriptor_rtx): Remove unused
19072 `label' field.
19073
19074 * toplev.c (documented_lang_options): Document -Winvalid-pch.
19075
19076 2003-01-10 Richard Henderson <rth@redhat.com>
19077
19078 * config/alpha/alpha.h (NO_PROFILE_COUNTERS): Set.
19079 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Kill.
19080
19081 2003-01-10 Richard Henderson <rth@redhat.com>
19082
19083 * combine.c (make_compound_operation): Use SCALAR_INT_MODE_P,
19084 not INTEGRAL_MODE_P when widening extensions.
19085
19086 2003-01-10 Richard Henderson <rth@redhat.com>
19087
19088 * config/alpha/alpha.c (decl_has_samegp): True for !TREE_PUBLIC.
19089
19090 2003-01-10 Geoffrey Keating <geoffk@apple.com>
19091
19092 * ggc-page.c (ggc_collect): Avoid overflow computing
19093 min_expand.
19094
19095 * Makefile.in (RANLIB_FOR_TARGET): Use RANLIB when native.
19096 (RANLIB_TEST_FOR_TARGET): Delete. Don't pass down to sub-makes.
19097 Remove calls.
19098 * mklibgcc.in: Remove uses of RANLIB_TEST_FOR_TARGET.
19099
19100 2003-01-10 Jan Hubicka <jh@suse.cz>
19101
19102 * ifcvt.c (noce_try_addcc): Do not call emit_conditional_add
19103 with weird operands.
19104
19105 2003-01-10 Dale Johannesen <dalej@apple.com>
19106
19107 * calls.c (load_register_parameters): Add is_sibcall, sibcall_failure
19108 parameters. Call check_sibcall_argument_overlap if indicated.
19109 (check_sibcall_argument_overlap): Add mark_stored_args_map
19110 parameter. Don't mark parameter area as clobbered if not set.
19111 (expand_call): Adjust calls to above.
19112
19113 2003-01-10 Kelley Cook <kelleycook@comcast.net>
19114
19115 * configure.in (linker read-only and read-write section mixing):
19116 Squelch some assembler warnings.
19117 * configure: Likewise.
19118
19119 2003-01-10 Hartmut Penner <hpenner@de.ibm.com>
19120
19121 * doc/invoke.texi: Document -mtune, delete -mcpu
19122 option for S/390 and zSeries.
19123 * config/s390/s390.c (s390_tune_string) New variable.
19124 (s390_cpu_string) Delete variable.
19125 (override_options): Use s390_tune_string instead of
19126 s390_cpu_string.
19127 * config/s390/s390.h: (TARGET_OPTIONS) '-mtune' instead of '-mcpu'.
19128
19129 2003-01-10 Kazu Hirata <kazu@cs.umass.edu>
19130
19131 * config/h8300/h8300.md (*iorsi3_ashift_31): New.
19132
19133 2003-01-10 Josef Zlomek <zlomekj@suse.cz>
19134
19135 * jump.c (next_nonnote_insn_in_loop): New function.
19136 (copy_loop_headers): Use next_nonnote_insn_in_loop instead of
19137 next_nonnote_insn.
19138 (duplicate_loop_exit_test). Likewise.
19139
19140 2003-01-09 Geoffrey Keating <geoffk@apple.com>
19141
19142 Merge from pch-branch:
19143
19144 2003-01-06 Geoffrey Keating <geoffk@apple.com>
19145
19146 * ggc-page.c (ggc_pch_read): Update the statistics after a PCH
19147 load.
19148
19149 2002-12-24 Geoffrey Keating <geoffk@apple.com>
19150
19151 * cpplib.c (count_registered_pragmas): New function.
19152 (save_registered_pragmas): New function.
19153 (_cpp_save_pragma_names): New function.
19154 (restore_registered_pragmas): New function.
19155 (_cpp_restore_pragma_names): New function.
19156 * cpphash.h (_cpp_save_pragma_names): Prototype.
19157 (_cpp_restore_pragma_names): Likewise.
19158 * cpppch.c (struct save_macro_item): Split from save_macro_data.
19159 (struct save_macro_data): New field 'saved_pragmas'.
19160 (save_macros): Update for changes to struct save_macro_data.
19161 (cpp_prepare_state): Call _cpp_save_pragma_names, update
19162 for changes to struct save_macro_data.
19163 (cpp_read_state): Call _cpp_restore_pragma_names, update
19164 for changes to struct save_macro_data.
19165
19166 * cpppch.c (cpp_read_state): Restore the hashtable references
19167 in the cpp_reader.
19168
19169 * tree.h (built_in_decls): Mark for PCH.
19170
19171 * dbxout.c (lastfile): Don't mark for PCH.
19172
19173 * ggc.h: Document PCH calls into memory managers.
19174
19175 2002-12-18 Geoffrey Keating <geoffk@apple.com>
19176
19177 * doc/invoke.texi (Precompiled Headers): Document the
19178 directory form of PCH.
19179 * cppfiles.c (validate_pch): New function.
19180 (open_file_pch): Search suitably-named directories for PCH files.
19181
19182 2002-12-14 Geoffrey Keating <geoffk@apple.com>
19183
19184 * doc/gty.texi (GTY Options): Document chain_next, chain_prev,
19185 reorder options.
19186 (Type Information): Mention that the information is also
19187 used to implement PCH.
19188 * doc/passes.texi (Passes): Improve documentation of
19189 language-specific files.
19190
19191 2002-12-11 Geoffrey Keating <geoffk@apple.com>
19192
19193 * gengtype.c (struct write_types_data): Add reorder_note_routine field.
19194 (struct walk_type_data): Add reorder_fn field.
19195 (walk_type): Process 'reorder' option.
19196 (write_types_process_field): Reorder parameters to gt_pch_note_object,
19197 call reorder_note_routine.
19198 (write_func_for_structure): Reorder parameters to gt_pch_note_object.
19199 (ggc_wtd): Update for change to struct write_types_data.
19200 (pch_wtd): Likewise.
19201 * ggc.h (gt_pch_note_object): Reorder parameters.
19202 (gt_handle_reorder): New definition.
19203 (gt_pch_note_reorder): New prototype.
19204 * ggc-common.c (struct ptr_data): Add reorder_fn.
19205 (gt_pch_note_object): Reorder parameters.
19206 (gt_pch_note_reorder): New.
19207 (gt_pch_save): Call reorder_fn.
19208 * stringpool.c (gt_pch_n_S): Update for change to gt_pch_note_object.
19209
19210 * dbxout.c (cwd): Don't mark for PCH.
19211
19212 2002-12-09 Geoffrey Keating <geoffk@apple.com>
19213
19214 * gengtype.c (finish_root_table): Fix some warnings.
19215 (write_root): Handle TYPE_STRING.
19216 * ggc.h (gt_ggc_m_S): Add prototype.
19217 * stringpool.c (gt_ggc_m_S): New function.
19218
19219 2002-11-30 Geoffrey Keating <geoffk@apple.com>
19220
19221 * dwarf2out.c (dw2_string_counter): New.
19222 (AT_string_form): Use it.
19223 (same_dw_val_p): Update for removal of hashtable.h hash tables.
19224
19225 2002-11-22 Geoffrey Keating <geoffk@apple.com>
19226
19227 * dbxout.c: Include gt-dbxout.h.
19228 (lastfile): Mark for PCH/GGC.
19229 (cwd): Likewise.
19230 (struct typeinfo): Likewise.
19231 (typevec): Likewise.
19232 (typevec_len): Likewise.
19233 (next_type_number): Likewise.
19234 (struct dbx_file): Likewise.
19235 (current_file): Likewise.
19236 (next_file_number): Likewise.
19237 (dbxout_init): Allocate typevec, struct dbx_file with GGC.
19238 (dbxout_start_source_file): Allocate struct dbx_file with GGC.
19239 (dbxout_end_source_file): Don't free struct dbx_file.
19240 (dbxout_type): Use GGC to allocate typevec.
19241 * Makefile.in (dbxout.o): Depend on gt-dbxout.h, $(GGC_H).
19242 (GTFILES): Add dbxout.c.
19243 (gt-dbxout.h): New rule.
19244
19245 * Makefile.in (c-pch.o): Add debug.h as dependency.
19246 * c-pch.c: Include debug.h.
19247 (pch_init): Call start_source_file to keep nesting right.
19248 (c_common_read_pch): Add orig_name parameter. Call
19249 start_source_file debug hook. Call end_source_file debug hook.
19250 * c-common.h (c_common_read_pch): Update prototype.
19251 * cpplib.h (struct cpp_callbacks): Add fourth field to read_pch
19252 callback.
19253 * cppfiles.c (struct include_file): Add new field `header_name'.
19254 (find_or_create_entry): Default it to `name'.
19255 (open_file_pch): Set it to the original header file searched for.
19256 (stack_include_file): Don't stack an empty buffer, just handle
19257 PCH files immediately. Pass header_name field to read_pch callback.
19258
19259 2002-11-19 Geoffrey Keating <geoffk@apple.com>
19260
19261 * function.c (funcdef_no): Mark to be saved in a PCH.
19262
19263 2002-11-15 Geoffrey Keating <geoffk@apple.com>
19264
19265 * ggc-page.c (ggc_pch_read): Remove unused 'bmap_size'.
19266
19267 * cpppch.c (cpp_read_state): Correct size reallocated for 'defn'.
19268
19269 2002-11-14 Geoffrey Keating <geoffk@apple.com>
19270
19271 * optabs.h (code_to_optab): Add GTY marker.
19272
19273 2002-11-13 Geoffrey Keating <geoffk@apple.com>
19274
19275 * Makefile.in (GTFILES): Add cpplib.h.
19276 * c-common.h (struct c_common_identifier): Don't skip 'node' field.
19277 * c-decl.c (build_compound_literal): Don't use var_labelno.
19278 * cpplib.h (struct cpp_hashnode): Use gengtype to mark.
19279 * dwarf2asm.c (dw2_force_const_mem): Don't use const_labelno.
19280 * varasm.c (const_labelno): Use gengtype to mark.
19281 (var_labelno): Likewise.
19282 (in_section): Likewise.
19283 (in_named_name): Likewise.
19284 (struct in_named_entry): Likewise.
19285 (in_named_htab): Likewise.
19286 (set_named_section_flags): Use GGC to allocate struct in_named_entry.
19287 (init_varasm_once): Use GGC to allocate in_named_htab.
19288 * config/darwin.c (current_pic_label_num): Mark for PCH.
19289
19290 2002-11-11 Geoffrey Keating <geoffk@apple.com>
19291
19292 * ggc-simple.c (init_ggc_pch): New stub procedure.
19293 (ggc_pch_count_object): Likewise.
19294 (ggc_pch_total_size): Likewise.
19295 (ggc_pch_this_base): Likewise.
19296 (ggc_pch_alloc_object): Likewise.
19297 (ggc_pch_prepare_write): Likewise.
19298 (ggc_pch_write_object): Likewise
19299 (ggc_pch_finish): Likewise.
19300 (ggc_pch_read): Likewise.
19301
19302 2002-11-08 Geoffrey Keating <geoffk@apple.com>
19303
19304 * c-pch.c (c_common_write_pch): Write the macro definitions after
19305 the GCed data.
19306 (c_common_read_pch): Call cpp_prepare_state. Restore the macro
19307 definitions after the GCed data.
19308 * cpplib.c (save_macros): New.
19309 (reset_ht): New.
19310 (cpp_write_pch_deps): Split out of cpp_write_pch.
19311 (cpp_write_pch_state): Split out of cpp_write_pch.
19312 (cpp_write_pch): Delete.
19313 (struct save_macro_data): Delete.
19314 (cpp_prepare_state): New.
19315 (cpp_read_state): Erase and restore initial macro definitions.
19316 * cpplib.h (struct save_macro_data): Forward-declare.
19317 (cpp_write_pch_deps): Prototype.
19318 (cpp_write_pch_state): Prototype.
19319 (cpp_write_pch): Delete prototype.
19320 (cpp_prepare_state): Prototype.
19321 (cpp_read_state): Add fourth argument.
19322
19323 2002-11-04 Geoffrey Keating <geoffk@apple.com>
19324
19325 * gengtype.c (adjust_field_rtx_def): Don't use skip on valid fields.
19326 (write_array): Remove warning.
19327
19328 * gengtype.c (contains_scalar_p): New.
19329 (finish_root_table): Add the table to all languages, even if it's
19330 empty.
19331 (write_roots): Output gt_pch_scalar_rtab.
19332 * ggc-common.c (gt_pch_save): Write out scalars.
19333 (gt_pch_restore): Read scalars back.
19334
19335 * ggc-page.c (OBJECTS_IN_PAGE): New macro.
19336 (struct page_entry): Delete pch_page field.
19337 (ggc_recalculate_in_use_p): Use OBJECTS_IN_PAGE.
19338 (clear_marks): Likewise.
19339 (sweep_pages): Likewise.
19340 (poison_pages): Likewise.
19341 (ggc_print_statistics): Likewise.
19342 (ggc_pch_read): Don't free objects read from a PCH.
19343 Properly set up in_use_p and page_tails.
19344
19345 2002-10-25 Geoffrey Keating <geoffk@apple.com>
19346
19347 * gengtype.c (struct write_types_data): New.
19348 (struct walk_type_data): Make `cookie' const; add extra
19349 prev_val item; add `orig_s' field.
19350 (walk_type): Update prev_val[3].
19351 (write_types_process_field): New.
19352 (write_func_for_structure): Take write_types_data structure.
19353 (write_types): New.
19354 (ggc_wtd): New.
19355 (pch_wtd): New.
19356 (write_types_local_process_field): New.
19357 (gc_mark_process_field): Delete.
19358 (write_local_func_for_structure): New.
19359 (gc_mark_func_name): Delete.
19360 (write_gc_types): Delete.
19361 (write_local): New.
19362 (finish_root_table): Don't include 'ggc_' in PFX.
19363 (write_root): Rename from write_root. Fill pchw field of structures.
19364 (write_array): New.
19365 (write_roots): Rename from write_gc_roots. Split out to write_array.
19366 Update to changes to other routines. Write gt_pch_cache_rtab table.
19367 (main): Write PCH walking routines.
19368 * ggc-common.c: Include toplev.h, sys/mman.h.
19369 (ggc_mark_roots): For cache hashtables, also mark the hash table
19370 and the array of entries.
19371 (saving_htab): New.
19372 (struct ptr_data): New.
19373 (POINTER_HASH): New.
19374 (gt_pch_note_object): New.
19375 (saving_htab_hash): New.
19376 (saving_htab_eq): New.
19377 (struct traversal_state): New.
19378 (call_count): New.
19379 (call_alloc): New.
19380 (compare_ptr_data): New.
19381 (relocate_ptrs): New.
19382 (write_pch_globals): New.
19383 (struct mmap_info): New.
19384 (gt_pch_save): New.
19385 (gt_pch_restore): New.
19386 * ggc-page.c (ROUND_UP_VALUE): New.
19387 (ROUND_UP): New.
19388 (struct page_entry): Add field `pch_page'.
19389 (init_ggc): Use ROUND_UP.
19390 (struct ggc_pch_data): Declare.
19391 (init_ggc_pch): New.
19392 (ggc_pch_count_object): New.
19393 (ggc_pch_total_size): New.
19394 (ggc_pch_this_base): New.
19395 (ggc_pch_alloc_object): New.
19396 (ggc_pch_prepare_write): New.
19397 (ggc_pch_write_object): New.
19398 (ggc_pch_finish): New.
19399 (ggc_pch_read): New.
19400 * ggc.h (gt_pointer_operator): New.
19401 (gt_note_pointers): New.
19402 (gt_pch_note_object): New prototype.
19403 (gt_pointer_walker): New.
19404 (struct ggc_root_tab): Use gt_pointer_walker, add `pchw' field.
19405 (LAST_GGC_ROOT_TAB): Update.
19406 (gt_pch_cache_rtab): Declare.
19407 (gt_pch_scalar_rtab): Declare.
19408 (struct ggc_cache_tab): Use gt_pointer_walker, add `pchw' field.
19409 (LAST_GGC_CACHE_TAB): Update.
19410 (gt_pch_save_stringpool): Declare.
19411 (gt_pch_restore_stringpool): Declare.
19412 (gt_pch_p_S): Declare.
19413 (gt_pch_n_S): Declare.
19414 (struct ggc_pch_data): Forward-declare.
19415 (init_ggc_pch): Declare.
19416 (ggc_pch_count_object): Declare.
19417 (ggc_pch_total_size): Declare.
19418 (ggc_pch_this_base): Declare.
19419 (ggc_pch_alloc_object): Declare.
19420 (ggc_pch_prepare_write): Declare.
19421 (ggc_pch_write_object): Declare.
19422 (ggc_pch_finish): Declare.
19423 (ggc_pch_read): Declare.
19424 (gt_pch_save): Declare.
19425 (gt_pch_restore): Declare.
19426 * fold-const.c (size_int_type_wide): Allocate size_htab using GGC.
19427 * emit-rtl.c (init_emit_once): Allocate const_int_htab,
19428 const_double_htab, mem_attrs_htab using GGC.
19429 * c-pch.c: Include ggc.h.
19430 (pch_init): Allow reading PCH file back.
19431 (c_common_write_pch): Call gt_pch_save.
19432 (c_common_read_pch): Call gt_pch_restore.
19433 * c-parse.in (init_reswords): Delete now-untrue comment.
19434 Allocate ridpointers using GGC.
19435 * c-objc-common.c (c_objc_common_finish_file): Write PCH before
19436 calling expand_deferred_fns.
19437 * c-common.h (ridpointers): Mark for GTY machinery.
19438 * Makefile.in (stringpool.o): Update dependencies.
19439 (c-pch.o): Update dependencies.
19440 (ggc-common.o): Update dependencies.
19441 * stringpool.c: Include gt-stringpool.h.
19442 (gt_pch_p_S): New.
19443 (gt_pch_n_S): New.
19444 (struct string_pool_data): New.
19445 (spd): New.
19446 (gt_pch_save_stringpool): New.
19447 (gt_pch_restore_stringpool): New.
19448 * tree.c (init_ttree): Make type_hash_table allocated using GC.
19449
19450 2002-10-04 Geoffrey Keating <geoffk@apple.com>
19451
19452 * gengtype.c (adjust_field_rtx_def): Don't pass size_t to printf.
19453 (output_mangled_typename): Don't pass size_t to printf.
19454
19455 * tree.h (union tree_type_symtab): Add tag to `address' field.
19456 (union tree_decl_u2): Add tag to 'i' field.
19457 * varasm.c (union rtx_const_un): Add tags to all fields.
19458 * gengtype.c (struct walk_type_data): New.
19459 (output_escaped_param): Take struct walk_type_data parameter.
19460 (write_gc_structure_fields): Delete.
19461 (walk_type): New.
19462 (write_gc_marker_routine_for_structure): Delete.
19463 (write_func_for_structure): New.
19464 (gc_mark_process_field): New.
19465 (gc_mark_func_name): New.
19466 (gc_counter): Delete.
19467 (write_gc_types): Use write_func_for_structure.
19468 (write_gc_roots): Use walk_type.
19469
19470 2002-10-02 Geoffrey Keating <geoffk@apple.com>
19471
19472 * ggc-common.c (ggc_mark_roots): Delete 'x'.
19473 (ggc_splay_dont_free): Fix warning about unused 'x'.
19474 (ggc_print_common_statistics): Remove warnings.
19475
19476 2002-10-01 Mike Stump <mrs@apple.com>
19477
19478 * ggc-common.c (ggc_splay_alloc): Actually return the allocated area.
19479 * gengtype.c (write_gc_structure_fields): Handle param[digit]_is.
19480
19481 2002-09-01 Geoffrey Keating <geoffk@redhat.com>
19482 Catherine Moore <clm@redhat.com>
19483
19484 * Makefile (c-pch.o): Update dependencies.
19485 (LIBCPP_OBJS): Add cpppch.o.
19486 (cpppch.o): New.
19487 * c-common.c (c_common_init): Don't call pch_init here.
19488 * c-common.h (c_common_read_pch): Update prototype.
19489 * c-lex.c (c_common_parse_file): Call pch_init here.
19490 * c-opts.c (COMMAND_LINE_OPTIONS): Add -Winvalid-pch, -fpch-deps.
19491 (c_common_decode_option): Handle them.
19492 * c-pch.c: Include c-pragma.h.
19493 (save_asm_offset): Delete.
19494 (pch_init): Move contents of save_asm_offset into here, call
19495 cpp_save_state.
19496 (c_common_write_pch): Call cpp_write_pch.
19497 (c_common_valid_pch): Warn only when -Winvalid-pch. Call
19498 cpp_valid_state.
19499 (c_common_read_pch): Add NAME parameter. Call cpp_read_state.
19500 * cppfiles.c (stack_include_file): Update for change to
19501 parameters of cb.read_pch.
19502 * cpphash.h (struct cpp_reader): Add `savedstate' field.
19503 * cpplib.h (struct cpp_options): Add `warn_invalid_pch' and
19504 `restore_pch_deps' fields.
19505 (struct cpp_callbacks): Add NAME parameter to `read_pch'.
19506 (cpp_save_state): Prototype.
19507 (cpp_write_pch): Prototype.
19508 (cpp_valid_state): Prototype.
19509 (cpp_read_state): Prototype.
19510 * cpppch.c: New file.
19511 * flags.h (version_flag): Remove prototype.
19512 * mkdeps.c (deps_save): New.
19513 (deps_restore): New.
19514 * mkdeps.h (deps_save): Prototype.
19515 (deps_restore): Prototype.
19516 * toplev.c (late_init_hook): Delete.
19517 (version_flag): Make static again.
19518 (compile_file): Don't call late_init_hook.
19519 * toplev.h (late_init_hook): Delete.
19520 * doc/cppopts.texi: Document -fpch-deps.
19521 * doc/invoke.texi (Warning Options): Document -Winvalid-pch.
19522
19523 2002-08-27 Geoffrey Keating <geoffk@redhat.com>
19524
19525 * c-pch.c (c_common_write_pch): Rename from c_write_pch, change
19526 callers.
19527 (c_common_valid_pch): Rename from c_valid_pch, change callers.
19528 (c_common_read_pch): Rename from c_read_pch, change callers.
19529
19530 * c-opts.c (COMMAND_LINE_OPTIONS): Allow -output-pch= to have
19531 a space between it and its argument.
19532
19533 2002-08-24 Geoffrey Keating <geoffk@redhat.com>
19534
19535 * c-pch.c: New file.
19536 * toplev.h (late_init_hook): Declare.
19537 * toplev.c (late_init_hook): Define.
19538 (version_flag): Make globally visible.
19539 (compile_file): Call late_init_hook.
19540 (init_asm_output): Make output file seekable.
19541 * gcc.c (default_compilers): Update c-header rule.
19542 * flags.h (version_flag): Declare.
19543 * cpplib.h (struct cpp_callbacks): Add 'valid_pch' and 'read_pch'
19544 fields.
19545 * cppfiles.c (struct include_file): Add 'pch' field.
19546 (INCLUDE_PCH_P): New.
19547 (open_file_pch): New.
19548 (stack_include_file): Handle PCH files specially.
19549 (find_include_file): Call open_file_pch instead of open_file.
19550 (_cpp_read_file): Explain why open_file is used instead of
19551 open_file_pch.
19552 * c-opts.c (c_common_decode_option): Correct OPT__output_pch case.
19553 * c-objc-common.c (c_objc_common_finish_file): Call c_write_pch.
19554 * c-lex.c (init_c_lex): Set valid_pch and read_pch fields
19555 in cpplib callbacks.
19556 * c-common.c (pch_file): Correct comment.
19557 (allow_pch): Define.
19558 (c_common_init): Call pch_init.
19559 * c-common.h (allow_pch): Declare.
19560 (pch_init): Declare.
19561 (c_valid_pch): Declare.
19562 (c_read_pch): Declare.
19563 (c_write_pch): Declare.
19564 * Makefile.in (c-pch.o): New.
19565 (C_AND_OBJC_OBJS): Add c-pch.o.
19566 * doc/invoke.texi (Precompiled Headers): Add index entries,
19567 complete truncated paragraph.
19568
19569 2002-08-17 Geoffrey Keating <geoffk@redhat.com>
19570
19571 * c-common.c: (pch_file): Define.
19572 * c-common.h (pch_file): Declare.
19573 * c-opts.c (COMMAND_LINE_OPTIONS): Add --output-pch=.
19574 (missing_arg): Require --output-pch= to have an argument.
19575 (c_common_decode_option): Handle --output-pch=.
19576 * gcc.c: Document new %V.
19577 (default_compilers): Handle compiling C header files.
19578 (do_spec_1): Implement %V.
19579 (main): Handle "gcc foo.h" without trying to run linker.
19580 * doc/invoke.texi (Invoking GCC): Add new menu item for PCH.
19581 (Overall Options): Document what the driver does with header files,
19582 document new -x option possibilities.
19583 (Invoking G++): More documentation for PCH.
19584 (Precompiled Headers): New.
19585
19586 2002-08-09 Geoffrey Keating <geoffk@redhat.com>
19587
19588 * ggc.h: Don't include varray.h. Rearrange functions to be more
19589 organized.
19590 (ggc_add_root): Delete.
19591 (ggc_mark_rtx): Delete.
19592 (ggc_mark_tree): Delete.
19593 (struct ggc_statistics): Remove contents.
19594 * ggc-common.c: Remove unneeded includes.
19595 (struct ggc_root): Delete.
19596 (roots): Delete.
19597 (ggc_add_root): Delete.
19598 (ggc_mark_roots): Don't mark `roots'. Call ggc_mark_stringpool.
19599 (ggc_print_common_statistics): Remove most of the contents.
19600 * Makefile.in (GGC_H): No longer uses varray.h.
19601 (ggc-common.o): Update dependencies.
19602 (c-parse.o): Add varray.h to dependencies.
19603 (c-common.o): Add varray.h.
19604 * stringpool.c (mark_ident): Use mangled name for tree marker routine.
19605 (mark_ident_hash): Rename to ggc_mark_stringpool.
19606 (init_stringpool): Don't use ggc_add_root.
19607 * c-parse.in: Include varray.h.
19608 * c-common.c: Include varray.h.
19609 * objc/Make-lang.in (objc-act.o): Add varray.h.
19610 * objc/objc-act.c: Include varray.h.
19611
19612 2002-07-25 Geoffrey Keating <geoffk@redhat.com>
19613
19614 * dwarf2out.c (dw_cfi_oprnd2_desc): Fix ISO-only function definition.
19615 (dw_cfi_oprnd1_desc): Likewise.
19616
19617 2002-07-17 Geoffrey Keating <geoffk@redhat.com>
19618
19619 * config/alpha/alpha.c (struct alpha_links): Use gengtype to mark;
19620 move out of ifdef.
19621 (alpha_links): Use gengtype to mark; move out of ifdef.
19622 (mark_alpha_links_node): Delete.
19623 (mark_alpha_links): Delete.
19624 (alpha_need_linkage): Use GGC to allocate splay tree, struct
19625 alpha_links, strings. Don't use ggc_add_root.
19626 * ggc-common.c (ggc_splay_alloc): New.
19627 (ggc_splay_dont_free): New.
19628 * ggc.h (ggc_mark_rtx): Update for changed name mangling.
19629 (ggc_mark_tree): Likewise.
19630 (splay_tree_new_ggc): New.
19631 (ggc_splay_alloc): Declare.
19632 (ggc_splay_dont_free): Declare.
19633 * dwarf2asm.c: Include gt-dwarf2asm.h.
19634 (mark_indirect_pool_entry): Delete.
19635 (mark_indirect_pool): Delete.
19636 (indirect_pool): Use gengtype to mark.
19637 (dw2_force_const_mem): Don't use ggc_add_root.
19638 * Makefile.in (dwarf2asm.o): Depend on gt-dwarf2asm.h.
19639 (GTFILES): Add SPLAY_TREE_H, dwarf2asm.c.
19640 (gt-dwarf2asm.h): Depend on s-gtype.
19641
19642 2002-07-08 Geoffrey Keating <geoffk@redhat.com>
19643
19644 * tree.h (union tree_type_symtab): Mark `die' field.
19645 * Makefile.in (dwarf2out.o): Update dependencies.
19646 * dwarf2out.c: Use GGC to allocate all structures. Convert to htab_t
19647 hash tables.
19648 (dw_cfi_oprnd1_desc): New function.
19649 (dw_cfi_oprnd2_desc): New function.
19650 (indirect_string_alloc): Delete.
19651 (debug_str_do_hash): New function.
19652 (debug_str_eq): New function.
19653 (mark_limbo_die_list): Delete.
19654 (dwarf2out_init): Don't call ggc_add_root.
19655
19656 2003-01-09 Vladimir Makarov <vmakarov@redhat.com>
19657
19658 The following changes are merged from itanium-sched-branch:
19659
19660 2003-01-08 David Edelsohn <edelsohn@gnu.org>
19661
19662 * doc/md.texi: Clarify assignment of units to automata description.
19663
19664 2003-01-08 Vladimir Makarov <vmakarov@redhat.com>
19665
19666 * genautomata.c (unit_decl): Remove members
19667 `the_same_automaton_unit' and
19668 `the_same_automaton_message_reported_p'.
19669 (process_unit_to_form_the_same_automaton_unit_lists,
19670 form_the_same_automaton_unit_lists_from_regexp,
19671 form_the_same_automaton_unit_lists, the_same_automaton_lists):
19672 Remove them.
19673 (annotation_message_reported_p): New global variable.
19674 (check_unit_distribution_in_reserv,
19675 check_regexp_units_distribution): New functions.
19676 (check_unit_distributions_to_automata): Rewrite it.
19677
19678 2003-01-04 Vladimir Makarov <vmakarov@redhat.com>
19679
19680 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
19681 Use continue instead of break if cycle is too big.
19682
19683 2002-12-20 Vladimir Makarov <vmakarov@redhat.com>
19684
19685 * genautomata.c (check_unit_distributions_to_automata): Output at
19686 most one message for a unit.
19687 (process_unit_to_form_the_same_automaton_unit_lists): Check
19688 automaton of units instead of units themself.
19689
19690 * doc/md.texi: Describe the constraint about assigning unit to
19691 automata.
19692
19693 2002-12-20 Jan Hubicka <jH@suse.cz>
19694 Vladimir Makarov <vmakarov@redhat.com>
19695
19696 * genautomata.c (unit_decl): Add new members `min_occ_cycle_num'
19697 and `in_set_p'.
19698 (gen_cpu_unit): Initialize the new members.
19699 (process_regexp_cycles): Calculate minimal finish cycle too. Set
19700 up `min_occ_cycle_num'.
19701 (evaluate_max_reserv_cycles): Change the function call.
19702 (CLEAR_BIT): New macro.
19703 (states_union, state_shift): Use the mask.
19704 (initiate_excl_sets, form_reserv_sets_list): Set up `in_set_p'.
19705 (form_reservs_matter): New function.
19706 (make_automaton): Call the function and use the mask.
19707 (estimate_one_automaton_bound): Take `min_occ_cycle_num' into
19708 account.
19709
19710 2002-12-17 Vladimir Makarov <vmakarov@redhat.com>
19711
19712 * config/ia64/itanium2.md (lfetch): Change the insn reservation.
19713
19714 2002-12-17 Vladimir Makarov <vmakarov@redhat.com>
19715
19716 * config/ia64/ia64.c (bundling): Try to insert 2 nops for M insn
19717 for Itanium.
19718
19719 2002-12-17 Vladimir Makarov <vmakarov@redhat.com>
19720
19721 * config/ia64/ia64.c (ia64_override_options): Make itanium2 as
19722 default cpu.
19723
19724 2002-12-17 Vladimir Makarov <vmakarov@redhat.com>
19725 2002-10-31 Dale Johannesen <dalej@apple.com>
19726
19727 * haifa-sched.c (find_set_reg_weight): New function.
19728 (find_insn_reg_weight): Use the new function.
19729 (schedule_block): Do sorting ready queue always
19730 after insn issue.
19731
19732 2002-11-27 Vladimir Makarov <vmakarov@redhat.com>
19733
19734 * config/ia64/ia64.c (bundling): Use MFI template instead of MLX.
19735
19736 2002-11-19 Vladimir Makarov <vmakarov@redhat.com>
19737
19738 * haifa-sched.c (choice_entry): New structure.
19739 (choice_stack, cycle_issued_insns): New variables.
19740 (max_issue): Rewrite it.
19741 (choose_ready): Set up ready_try for unknown insns too.
19742 (schedule_block): Allocate and free choice_stack. Set up
19743 and modify cycle_issued_insns.
19744
19745 * config/ia64/ia64.c (issue_nops_and_insn): Combine insn issue
19746 with and without filling the bundle.
19747 (bundling): Combine calls of issue_nops_and_insn.
19748
19749 2002-10-17 Vladimir Makarov <vmakarov@redhat.com>
19750
19751 * config/ia64/itanium1.md: New file.
19752
19753 * config/ia64/itanium2.md: New file.
19754
19755 * config/ia64/ia64.md: Move DFA descriptions into the new files.
19756 Remove the old pipeline description.
19757
19758 * config/ia64/ia64.c (ia64_override_options): Add aliases of
19759 itanium processor names.
19760
19761 2002-10-16 Vladimir Makarov <vmakarov@redhat.com>
19762
19763 * config/ia64/ia64.c (bundling): Print states for Itanium2 too.
19764 (ia64_reorg): Set up queried unit codes for Itanium2 too.
19765
19766 * config/ia64/ia64.md: Add descriptions for Itanium2.
19767
19768 2002-10-08 Vladimir Makarov <vmakarov@redhat.com>
19769
19770 * config/ia64/ia64.h (processor_type): New enumeration.
19771 (ia64_tune, ia64_tune_string): New external declarations.
19772 (TARGET_OPTIONS): Add option `tune='.
19773
19774 * config/ia64/ia64.c (ia64_tune, ia64_tune_string): New global
19775 variables.
19776 (ia64_override_options): Set up `ia64_tune'.
19777 (ia64_sched_reorder2): Set up `clocks' only for Itanium.
19778 (ia64_dfa_new_cycle): Set up `add_cycles' only for Itanium.
19779 (bundling): Add nops for MM-insns only for Itanium.
19780 (ia64_reorg): Allocate and free `clocks' and `add_cycles' only for
19781 Itanium.
19782
19783 * config/ia64/ia64.md (cpu): New attribute.
19784 (DFA description): Enable it only for Itanium.
19785
19786 2002-10-08 Vladimir Makarov <vmakarov@redhat.com>
19787 Richard Henderson <rth@redhat.com>
19788
19789 * config/ia64/ia64.h (MASK_TUNE_STOP_BITS): Rename it to
19790 MASK_EARLY_STOP_BITS.
19791 (TARGET_TUNE_STOP_BITS): Rename it to TARGET_EARLY_STOP_BITS.
19792 (TARGET_SWITCHES): Rename option `tune-stop-bits' to
19793 `early-stop-bits'.
19794
19795 * config/ia64/ia64.c (ia64_dfa_new_cycle,
19796 final_emit_insn_group_barriers): Use TARGET_EARLY_STOP_BITS
19797 instead of TARGET_TUNE_STOP_BITS.
19798
19799 * doc/invoke.texi: Rename option `-mtune-stop-bits' to
19800 `-mearly-stop-bits'.
19801
19802 * config/ia64/ia64.c (automata_option "v"): Comment it.
19803
19804 2002-10-07 Vladimir Makarov <vmakarov@redhat.com>
19805
19806 * config/ia64/ia64.h (MASK_TUNE_STOP_BITS, TARGET_TUNE_STOP_BITS):
19807 New macros.
19808 (TARGET_SWITCHES): Add entries for the new option.
19809
19810 * config/ia64/ia64.c (dfa_stop_insn, last_scheduled_insn, rtx
19811 dfa_pre_cycle_insn, ia64_nop): Don't make them as roots for GC.
19812 (stops_p, stop_before_p, clocks_length, clocks, add_cycles): New
19813 global variables.
19814 (ia64_sched_reorder2): Set up `clocks'.
19815 (ia64_variable_issue): Set up `stops_p' and reset `stop_before_p'.
19816 (ia64_dfa_new_cycle): Set up add_cycle. Permit sorting ready
19817 queue when TARGET_TUNE_STOP_BITS.
19818 (bundling): Insert additional nops for MM-insns.
19819 (final_emit_insn_group_barriers): Add insertion of stop bits
19820 according `stops_p'.
19821 (ia64_reorg): Initiate the new varibales.
19822
19823 * doc/invoke.texi: Add description of option `-mtune-stop-bits'.
19824
19825 2002-10-02 Vladimir Makarov <vmakarov@redhat.com>
19826
19827 * haifa-sched.c (schedule_block): Modify INSN_TICK of depended
19828 insns at the end of block insn scheduling.
19829
19830 2002-09-30 Vladimir Makarov <vmakarov@redhat.com>
19831
19832 * sched-deps.c (remove_dependence, group_leader): Remove it.
19833 (add_dependence): Add dependence to group leader to.
19834 (set_sched_group_p): Add dependence to the first insn of the
19835 schedule group too.
19836 (sched_analyze_insn): Make dependence to jump as anti-dependence.
19837 Change true dependence by anti-dependence when
19838 `reg_pending_barrier'.
19839
19840 * sched-rgn.c (init_ready_list, can_schedule_ready_p,
19841 add_branch_dependences): Ignore schedule groups.
19842
19843 * sched-ebb.c (init_ready_list): Ditto.
19844
19845 * (move_insn, set_priorities): Ditto.
19846
19847 * config/ia64/ia64.c (ia64_sched_init): Check that schedule group
19848 flag is clear after reload.
19849 (adjust_cost): Change cost only for output dependencies.
19850
19851 * config/ia64/ia64.md: Add more insns into bypass for MM-insns.
19852
19853 2002-09-26 Vladimir Makarov <vmakarov@redhat.com>
19854
19855 * Makefile.in (sched-ebb.o): Add `$(TARGET_H)' to the entry.
19856
19857 * target.h (gcc_target): Add member
19858 `dependencies_evaluation_hook'.
19859
19860 * target-def.h (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New
19861 macro.
19862 (TARGET_SCHED): Add initiatialization of the new member.
19863
19864 * sched-ebb.c: Include `target.h'.
19865 (schedule_ebb): Call `dependencies_evaluation_hook'.
19866
19867 * sched-rgn.c (schedule_region): Call
19868 `dependencies_evaluation_hook'.
19869
19870 * config/ia64/ia64.c (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
19871 New macro.
19872 (ia64_dependencies_evaluation_hook): New function.
19873
19874 * doc/tm.texi (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
19875 Describe the new hook.
19876
19877 2002-09-25 Vladimir Makarov <vmakarov@redhat.com>
19878
19879 * target.h (gcc_target): Add members
19880 `first_cycle_multipass_dfa_lookahead_guard' and `dfa_new_cycle'.
19881
19882 * target-def.h (TARGET_SCHED_DFA_NEW_CYCLE,
19883 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): New
19884 macros.
19885 (TARGET_SCHED): Add initiatialization of the new members.
19886
19887 * haifa-sched.c (schedule_insn): Update last_clock_var for the 1st
19888 insn scheduling too.
19889 (choose_ready): Use `first_cycle_multipass_dfa_lookahead_guard' to
19890 initialize `ready_try'.
19891 (schedule_block): Use `dfa_new_cycle'. Sort `ready' only unless
19892 `dfa_new_cycle' says not to do it.
19893
19894 * config/ia64/ia64.md: Add DFA Itanium 1 description for insn
19895 bundling.
19896
19897 * config/ia64/ia64.h (CPU_UNITS_QUERY): New macro.
19898
19899 * config/ia64/ia64.c: Include `hashtab.h'.
19900 (ia64_first_cycle_multipass_dfa_lookahead_guard,
19901 ia64_dfa_new_cycle, final_emit_insn_group_barriers,
19902 ia64_dfa_sched_reorder, get_free_bundle_state, free_bundle_state,
19903 initiate_bundle_states, finish_bundle_states, bundle_state_hash,
19904 bundle_state_eq_p, insert_bundle_state,
19905 initiate_bundle_state_table, finish_bundle_state_table,
19906 try_issue_nops, try_issue_insn, issue_nops_and_insn, get_max_pos,
19907 get_template, get_next_important_insn, bundling): New functions.
19908 (ia64_internal_sched_reorder): Remove it.
19909 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
19910 TARGET_SCHED_DFA_NEW_CYCLE): New macros.
19911 (ia64_safe_itanium_requires_unit0): Remove it.
19912 (group_barrier_needed_p): Place group barrier right before a real
19913 insn.
19914 (bundle, ia64_packet, NR_PACKETS, type_names, packets, packets):
19915 Remove them.
19916 (bundle_name): New variable.
19917 (_0mii_, _0mmi_, _0mfi_, _0mmf_, _0bbb_, _0mbb_, _0mib_, _0mmb_,
19918 _0mfb_, _0mlx_, _1mii_, _1mmi_, _1mfi_, _1mmf_, _1bbb_, _1mbb_,
19919 _1mib_, _1mmb_, _1mfb_, _1mlx_, pos_1, pos_2, pos_3, pos_4, pos_5,
19920 pos_6, dfa_stop_insn, last_scheduled_insn, dfa_state_size,
19921 temp_dfa_state, prev_cycle_state): New global variables.
19922 (insn_matches_slot, maybe_rotate, finish_last_head,
19923 rotate_one_bundle, rotate_one_bundles, nop_cycles_until,
19924 cycle_end_fill_slots, packet_matches_p, get_split, find_best_insn,
19925 find_best_packet, itanium_reorder, dump_current_packet,
19926 schedule_stop, gen_nop_type, ia64_emit_nops): Remove them.
19927 (sched_data, sched_ready, sched_types): Remove them.
19928 (ia64_sched_init): Initiate only `last_scheduled_insn' and call
19929 `init_insn_group_barriers'.
19930 (ia64_sched_reorder, ia64_sched_reorder2): Call
19931 ia64_dfa_sched_reorder.
19932 (ia64_variable_issue): Rewrite it.
19933 (bundle_state): New structure.
19934 (index_to_bundle_states, bundle_states_num,
19935 allocated_bundle_states_chain, free_bundle_state_chain): New
19936 global variables.
19937 (ia64_sched_finish): Add stop bits and call `bundling' after the
19938 2nd insn scheduling.
19939 (ia64_use_dfa_pipeline_interface): Return zero always.
19940 (ia64_first_cycle_multipass_dfa_lookahead): Return 6 for the 2nd
19941 insn scheduling.
19942 (ia64_init_dfa_pre_cycle_insn): Initialize `dfa_state_size',
19943 `temp_dfa_state', `prev_cycle_state', and `dfa_stop_insn'.
19944 (ia64_reorg): Add bundling insns.
19945
19946 * doc/tm.texi
19947 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
19948 TARGET_SCHED_DFA_NEW_CYCLE): Describe the new hooks.
19949
19950 2002-09-23 Vladimir Makarov <vmakarov@redhat.com>
19951
19952 * config/ia64/ia64.md: Add Itanium1 DFA description.
19953 (itanium_class): Add `nop' and `pre_cycle'. Add
19954 define_function_unit for `nop'.
19955 (nop): Change attribute `itanium_class'.
19956 (pre_cycle): New define_insn.
19957
19958 * config/ia64/ia64-protos.h (bundling_p): New external variable.
19959 (ia64_st_address_bypass_p, ia64_ld_address_bypass_p,
19960 ia64_produce_address_p): New function prototypes.
19961
19962 * config/ia64/ia64.c (bundling_p): New global variable.
19963 (ia64_use_dfa_pipeline_interface,
19964 ia64_first_cycle_multipass_dfa_lookahead,
19965 ia64_init_dfa_pre_cycle_insn, ia64_dfa_pre_cycle_insn): New
19966 functions.
19967 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
19968 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
19969 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
19970 TARGET_SCHED_DFA_PRE_CYCLE_INSN): New macros.
19971 (ia64_sched_init, ia64_sched_reorder, ia64_sched_reorder2,
19972 ia64_variable_issue, ia64_sched_finish): Do nothing before reload.
19973 (dfa_pre_cycle_insn): New variable.
19974
19975 2002-09-20 Vladimir Makarov <vmakarov@redhat.com>
19976
19977 * rtl.def (FINAL_PRESENCE_SET, FINAL_ABSENCE_SET): New
19978 constructions.
19979
19980 * genattrtab.h (gen_final_presence_set, gen_final_absence_set):
19981 New function prototypes.
19982
19983 * genattrtab.c (main): Process the new constructions.
19984
19985 * genautomata.c (gen_presence_absence_set,
19986 process_presence_absence_names, process_presence_absence_patterns,
19987 add_presence_absence, check_absence_pattern_sets): Add parameter
19988 `final_p'.
19989 (unit_decl): Add new members `final_presence_list' and
19990 `final_absence_list'.
19991 (unit_pattern_rel_decl): Add new member `final_p'.
19992 (gen_final_presence_set, gen_final_absence_set): New functions.
19993 (process_decls): Use member `final_p'.
19994 (temp_reserv): New global variable.
19995 (reserv_sets_are_intersected): Add processing `final_presence_set'
19996 and `final_absence_set'.
19997 (initiate_states): Allocate `temp_reserv'.
19998 (unit_final_presence_set_table, unit_final_absence_set_table): New
19999 gloabal variables.
20000 (initiate_presence_absence_pattern_sets): Initiate them.
20001 (NDFA_to_DFA): Fix typo.
20002 (output_description): Output `final_presence_set' and
20003 `final_absence_set'.
20004
20005 * doc/md.texi (final_presence_set, final_absence_set): Describe
20006 them.
20007
20008 2002-09-20 Vladimir Makarov <vmakarov@redhat.com>
20009
20010 * genautomata.c (transform_3): Process a missing case (nothing on
20011 unit place).
20012
20013 2002-09-20 Vladimir Makarov <vmakarov@redhat.com>
20014
20015 * rtl.def (DEFINE_QUERY_CPU_UNIT, AUTOMATA_OPTION): Change
20016 comments about queried units and the minimization.
20017
20018 * doc/md.texi: Ditto.
20019
20020 * genautomata.c (create_composed_state): Return nonzero if the new
20021 state has been created.
20022 (first_cycle_unit_presence): New function.
20023 (state_is_differed): Add new parameter. Use the new function.
20024 Take queried units into account.
20025 (partition_equiv_class): Pass additional parameter to
20026 `state_is_differed'.
20027 (merge_states): Process composed states too.
20028 (build_automaton, create_automata, output_min_issue_delay_table,
20029 output_tables, output_statistics): Output more information.
20030 (output_reserved_units_table): Use function
20031 `first_cycle_unit_presence'.
20032 (output_tables): Output table of queried units even if the
20033 minimization is switched on.
20034 (write_automata): Output code for querying units even if the
20035 minimization is switched on.
20036
20037 2002-09-19 Vladimir Makarov <vmakarov@redhat.com>
20038
20039 * rtl.def (PRESENCE_SET, ABSENCE_SET): Add comments about extended
20040 syntax of the constructions.
20041
20042 * doc/md.texi (PRESENCE_SET, ABSENCE_SET): Add description of
20043 extended syntax of the constructions.
20044
20045 * genautomata.c (unit_rel_decl): Rename it to
20046 `unit_pattern_rel_decl'.
20047 (pattern_set_el, pattern_reserv): New structures.
20048 (pattern_set_el_t, pattern_reserv_t): New types.
20049 (gen_presence_absence_set): New function.
20050 (process_presence_absence): Remove it.
20051 (process_presence_absence_names,
20052 process_presence_absence_patterns): New functions.
20053 (get_presence_absence_set): Remove it.
20054 (initiate_presence_absence_sets): Rename it on
20055 `initiate_presence_absence_pattern_sets'. Use new function
20056 `form_reserv_sets_list'.
20057 (form_reserv_sets_list, check_presence_pattern_sets,
20058 check_absence_pattern_sets, output_pattern_set_el_list): New
20059 functions.
20060 (unit_decl): Change types of members `presence_list' and
20061 `absence_list'.
20062 (unit_rel_decl): Rename member `names_num' to `all_names_num'.
20063 (decl): Change types of members `excl', `presence', and `absence'.
20064 (get_str_vect): Rename `par_flag' to `paren_p'. Add null element
20065 at the end of the vector.
20066 (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
20067 gen_automaton, gen_regexp_repeat, gen_regexp_allof,
20068 gen_regexp_oneof, gen_regexp_sequence): Use boolean values.
20069 (gen_presence_set, gen_absence_set): Use new function
20070 `gen_presence_absence_set'.
20071 (add_presence_absence): Process `pattern_list' instead of
20072 `source_list'.
20073 (process_decls): USe new functions
20074 `process_presence_absence_names' and
20075 `process_presence_absence_patterns'.
20076 (reserv_sets_are_intersected): Use new function
20077 `check_presence_pattern_sets'.
20078 (presence_set, absence_set): Remove them.
20079 (unit_presence_set_table, unit_absence_set_table): New global
20080 variables.
20081 (output_description): Use new function
20082 `output_pattern_set_el_list'.
20083 (generate): Use `initiate_presence_absence_pattern_sets'.
20084
20085 2002-09-18 Vladimir Makarov <vmakarov@redhat.com>
20086
20087 * genattr.c (main): Add output of prototype of new interface
20088 function `dfa_clean_insn_cache'.
20089
20090 * genautomata.c (output_dfa_clean_insn_cache_func): New function.
20091 (DFA_CLEAN_INSN_CACHE_FUNC_NAME): New macro.
20092 (output_dfa_start_func): Use function `dfa_clean_insn_cache' in
20093 the generated code.
20094 (write_automata): Call the new function.
20095
20096 2003-01-09 Jan Hubicka <jh@suse.cz>
20097
20098 * i386.md (unit, prefix_0f, memory attributes): Hanlde sseicvt
20099 correctly.
20100
20101 2003-01-09 Paolo Carlini <pcarlini@unitus.it>
20102
20103 * doc/tm.texi (EXTRA_ADDRESS_CONSTRAINT): Fix typo.
20104
20105 2003-01-09 J"orn Rennecke <joern.rennecke@superh.com>
20106
20107 * defaults.h (EXTRA_MEMORY_CONSTRAINT): Add STR argument.
20108 (EXTRA_ADDRESS_CONSTRAINT): Likewise.
20109 (CONSTRAINT_LEN): Provide default definition.
20110 (CONST_OK_FOR_CONSTRAINT_P): Likewise.
20111 (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Likewise.
20112 (EXTRA_CONSTRAINT_STR): Likewise.
20113 (REG_CLASS_FROM_CONSTRAINT): Define.
20114 * genoutput.c (check_constraint_len, constraint_len): New functions.
20115 (validate_insn_alternatives): Check CONSTRAINT_LEN for each
20116 constraint / modifier.
20117 (gen_insn): Call check_constraint_len.
20118 * local-alloc.c (block_alloc): Update to use new macros / pass
20119 second argument to EXTRA_{MEMORY,ADDRESS}_CONSTRAINT.
20120 * ra-build.c (handle_asm_insn): Likewise.
20121 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
20122 (constrain_operands, peep2_find_free_register): Likewise.
20123 * regclass.c (record_operand_costs, record_reg_classes): Likewise.
20124 * regmove.c (find_matches): Likewise.
20125 * reload.c (push_secondary_reload, find_reloads): Likewise.
20126 (alternative_allows_memconst): Likewise.
20127 * reload1.c (maybe_fix_stack_asms): Likewise.
20128 (reload_cse_simplify_operands): Likewise.
20129 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
20130 * doc/tm.texi (CONSTRAINT_LEN, REG_CLASS_FROM_CONSTRAINT): Document.
20131 (CONST_OK_FOR_CONSTRAINT_P): Likewise.
20132 (CONST_DOUBLE_OK_FOR_CONSTRAINT_P, EXTRA_CONSTRAINT_STR): Likewise.
20133 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Add STR argument.
20134 * config/s390/s390.h (EXTRA_MEMORY_CONSTRAINT): Likewise.
20135
20136 * sh.h (OVERRIDE_OPTIONS): Allow first scheduling pass for SH5.
20137
20138 2003-01-09 Kazu Hirata <kazu@cs.umass.edu>
20139
20140 * config/h8300/h8300.md (*extzv_1_r_h8300): Correct the insn
20141 length.
20142 (*extzv_1_r_h8300hs): Likewise.
20143 (*extzv_1_r_inv_h8300): Likewise.
20144 (*extzv_1_r_inv_h8300hs): Likewise.
20145
20146 2003-01-09 Kazu Hirata <kazu@cs.umass.edu>
20147
20148 * config/h8300/h8300.h (PREDICATE_CODES): New.
20149
20150 2003-01-09 Kazu Hirata <kazu@cs.umass.edu>
20151
20152 * config/h8300/h8300.md (*addsi3_upper): New.
20153 (*iorsi3_shift): Likewise.
20154 (two splitters): Likewise.
20155 (*addsi3_shift): Likewise.
20156 (two splitters): Likewise.
20157
20158 2003-01-09 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
20159
20160 * Makefile.in (optabs.o): Add dependency on basic-block.h.
20161 * basic-block.h (control_flow_insn_p): Fuction was exported.
20162 * cfgbuild.c (control_flow_insn_p): Fuction was made non-static.
20163 * optabs.c (emit_libcall_block): Emit REG_LIBCALL and REG_RETVAL
20164 notes only when the region is contained in a single basic block.
20165
20166 2003-01-09 Eric Botcazou <ebotcazou@libertysurf.fr>
20167
20168 PR inline-asm/8832
20169 * tree.h (expand_asm): New prototype.
20170 * stmt.c (expand_asm): Set the MEM_VOLATILE_P flag if instructed
20171 to do so.
20172 * c-semantics (genrtl_asm_stmt): Pass the RID_VOLATILE qualifier
20173 down to expand_asm.
20174 * c-typeck.c (simple_asm_stmt): Set the RID_VOLATILE qualifier.
20175 * rtlanal.c (volatile_insn_p) [ASM_INPUT]: Test the MEM_VOLATILE_P flag.
20176 (volatile_refs_p) [ASM_INPUT]: Likewise.
20177 (side_effects_p) [ASM_INPUT]: Likewise.
20178
20179 2003-01-09 Jan Hubicka <jh@suse.cz>
20180
20181 * i386.md (*mul*): FIx constraints; remove confused comment; fix
20182 athlon_decode attributes
20183 (imul/k8 optimization peep2s): New.
20184
20185 * athlon.md (athlon_ssecmp*): Handle ssecomi as well.
20186 * i386.md (type attribute): Add ssecomi.
20187 (unit, memory, prefix attributes): Handle ssecomi.
20188 (cvt?2? patterns): Fix athlon_decode attribute
20189 (comi patterns): Set attribute to ssecomi.
20190
20191 PR target/8343
20192 * m68k.md (umulsidi, mulsidi expanders): Use register operand.
20193
20194 2003-01-09 Richard Sandiford <rsandifo@redhat.com>
20195
20196 * config/mips/mips.h (PREDICATE_CODES): Add ADDRESSOF for predicates
20197 that match register_operands.
20198 * config/mips/mips.c (reg_or_0_operand, true_reg_or_0_operand): Make
20199 register_operand the default case.
20200
20201 2003-01-09 Eric Botcazou <ebotcazou@libertysurf.fr>
20202
20203 PR c/8032
20204 * c-typeck.c (process_init_element) [RECORD_TYPE]: For
20205 an empty element, do not advance the pointer to unfilled
20206 fields if there are pending initializers.
20207
20208 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
20209
20210 * Makefile.in (ORDINARY_FLAGS_TO_PASS): Also pass DESTDIR.
20211 (install-gcc-tooldir, install-cpp, installdirs,
20212 install-common, install-driver, install-info, install-man,
20213 install-headers, install-include-dir, install-headers-tar,
20214 install-headers-cpio, install-headers-cp, install-mkheaders,
20215 install-collect2, uninstall): Prepend $(DESTDIR) to
20216 destination paths in all (un)installation commands.
20217 (install-driver): Rewrite $(LN) commands to support DESTDIR
20218 with "ln" as well as with "ln -s".
20219 (installdirs): Simply use mkinstalldirs.
20220 (install-libgcc, install-multilib): Also pass DESTDIR.
20221 * mklibgcc.in: Prepend $(DESTDIR) to $(libsubdir) in the
20222 installation destination variable ldir.
20223 * config/alpha/t-osf4, config/arm/t-netbsd,
20224 config/ia64/t-hpux, config/mips/t-iris5-6,
20225 config/pa/t-hpux-shlib, config/rs6000/t-aix43,
20226 config/rs6000/t-aix52, config/t-slibgcc-elf-ver,
20227 config/t-slibgcc-sld: Prepend $$(DESTDIR) to $$(slibdir)
20228 in the definition of SHLIB_INSTALL.
20229 * config/arc/t-arc (install-multilib-arc): Prepend $(DESTDIR) to
20230 $(libsubdir) in the installation commands.
20231
20232 2003-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
20233
20234 * config/sh/sh.h (CASE_VECTOR_MODE): Use SImode for a
20235 non-optimizing compile.
20236 (ASM_OUTPUT_ADDR_VEC_ELT): Use .long for a non-optimizing
20237 compile.
20238
20239 2003-01-08 Douglas B Rupp <rupp@gnat.com>
20240
20241 * config/i386/i386.c (ix86_attribute_table): Add new attributes
20242 ms_struct and gcc_struct.
20243 (ix86_handle_struct_attribute): New function.
20244 (ix86_ms_bitfield_layout_p): Update to take new attributes
20245 into account.
20246 * doc/extend.texi: Document new attributes.
20247 * testsuite/gcc.dg/bf-ms-attrib.c: New test.
20248
20249 2003-01-08 Danny Smith <dannysmith@users.sourceforge.net>
20250
20251 PR optimization/8750
20252 * config/i386/i386.c (ix86_expand_prologue): Don't allow
20253 scheduling pass to move insns across __alloca call.
20254
20255 2003-01-08 Dale Johannesen <dalej@apple.com>
20256
20257 * config/rs6000/rs6000.md: Replace *store_multiple_string
20258 with *stmsi[3-8].
20259
20260 2003-01-08 Jeff Sturm <jsturm@one-point.com>
20261
20262 PR target/9210
20263 * config/rs6000/rs6000.c (rs6000_elf_encode_section_info):
20264 Set SYMBOL_REF_FLAG on local data sym_ref.
20265
20266 2003-01-08 Dale Johannesen <dalej@apple.com>
20267
20268 * function.c (assign_parms): Don't set pretend_args_size if
20269 REG_PARM_STACK_SPACE.
20270 config/rs6000/rs6000.c (setup_incoming_varargs): Don't set
20271 pretend_args_size.
20272
20273 2003-01-08 Nathanael Nerode <neroden@gcc.gnu.org>
20274
20275 * gcc.hlp: Delete.
20276
20277 2003-01-09 Jan Hubicka <jh@suse.cz>
20278
20279 * i386.c (ix86_expand_int_addcc): Fix thinko.
20280
20281 2003-01-08 David Edelsohn <edelsohn@gnu.org>
20282
20283 * config/rs6000/rs6000.h (FUNCTION_MODE): Always use SImode.
20284 * config/rs6000/rs6000.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Redefine
20285 as hook_bool_tree_hwi_hwi_tree_true.
20286 (rs6000_emit_allocate_stack): Use TARGET_32BIT.
20287 (rs6000_emit_epilogue): Same.
20288 (rs6000_output_mi_thunk): Re-implement as RTL.
20289 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Call
20290 xcoffout_declare_function if any debugging enabled.
20291
20292 2003-01-08 Chris Demetriou <cgd@broadcom.com>
20293
20294 * config.gcc (mipsisa32r2-*-elf*, mipsisa32r2el-*-elf*): New
20295 targets, to support MIPS32 Release 2 (MIPS32R2) configurations.
20296 * config/mips/mips.h (enum processor_type): Rename
20297 PROCESSOR_R4KC to PROCESSOR_4KC, PROCESSOR_R5KC to
20298 PROCESSOR_5KC, and PROCESSOR_R20KC to PROCESSOR_20KC.
20299 Add PROCESSOR_M4K.
20300 (TARGET_MIPS4KC, TARGET_MIPS5KC): Update for the renaming.
20301 (ISA_MIPS32R2): New define.
20302 (GENERATE_MULT3_SI, ISA_HAS_CONDMOVE, ISA_HAS_8CC)
20303 (ISA_HAS_MADD_MSUB, ISA_HAS_CLZ_CLO)
20304 (ISA_HAS_PREFETCH): Add support for MIPS32R2.
20305 (MIPS_ISA_DEFAULT): Likewise. Also, fix indentation.
20306 (TARGET_CPU_CPP_BUILTINS): Add support for MIPS32R2. Add new
20307 predefine __mips_isa_rev for MIPS32, MIPS32R2, and MIPS64.
20308 (ISA_HAS_ROTR_SI): Add support for MIPS32R2, and avoid if
20309 compiling MIPS16 code.
20310 (ISA_HAS_ROTR_DI): Do not use if compiling MIPS16 code, and fix
20311 comment.
20312 (ISA_HAS_SEB_SEH): New define.
20313 (ASM_SPEC, LINK_SPEC): Pass -mips32r2 to assembler and linker.
20314 * config/mips/mips.c (mips_cpu_info_table): Adjust for enum
20315 processor_type value renaming. Add support for MIPS32R2.
20316 Clean up comments, and move "sb1" entry with other MIPS64 CPU
20317 entries.
20318 (override_options): Reimplement -mipsN option handling so that
20319 it will work correctly for -mips32r2. Avoid branch-likely
20320 instructions on MIPS32R2.
20321 * config/mips/mips.md (mulsi3_mult3): Add support for MIPS32R2.
20322 (extendhisi2): Use extendhisi2_hw if ISA_HAS_SEB_SEH.
20323 (extendqisi2): Use extendqisi2_hw if ISA_HAS_SEB_SEH.
20324 (extendhisi2_hw, extendqisi2_hw): New.
20325 * config/mips/netbsd.h (TARGET_CPU_CPP_BUILTINS): Add support
20326 for MIPS32R2. Add new predefine __mips_isa_rev for MIPS32,
20327 MIPS32R2, and MIPS64.
20328 (LINK_SPEC): Pass -mips32r2 to linker.
20329 * config/mips/t-isa3264: Built -mips32r2 multilibs.
20330 * doc/invoke.texi (MIPS Options): Add -mips32r2, add support
20331 for mips32r2 in the -march description. Alphabetically sort
20332 CPU names in the -march description. Add long-missed -mips32
20333 and -mips64 to MIPS option summary.
20334
20335 * config.gcc: Update copyright years to include 2003.
20336 * config/mips/mips.c: Likewise.
20337 * config/mips/mips.h: Likewise.
20338 * config/mips/mips.md: Likewise.
20339 * config/mips/netbsd.h: Likewise.
20340 * doc/invoke.texi: Likewise.
20341
20342 2003-01-08 Andreas Schwab <schwab@suse.de>
20343
20344 * aclocal.m4 (gcc_AC_INITFINI_ARRAY): Fix spelling of cache
20345 variable.
20346 * configure: Regenerated.
20347
20348 2003-01-08 Kazu Hirata <kazu@cs.umass.edu>
20349
20350 * config/h8300/h8300.c (output_logical_op): Replace byte/word
20351 extraction of det with b0, b1, w0, w2, etc.
20352 (compute_logical_op_length): Likewise.
20353 (compute_logical_op_cc): Likewise.
20354
20355 2003-01-08 Kazu Hirata <kazu@cs.umass.edu>
20356
20357 * config/h8300/h8300.h (CONSTANT_ADDRESS_P): Allow CONST and
20358 HIGH on all variants.
20359
20360 2003-01-08 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
20361
20362 * Makefile.in (PARTITION_H): New.
20363 (BASIC_BLOCK_H): Added hard-reg-set.h and $(PARTITION_H).
20364 * basic-block.h: Include hard-reg-set.h.
20365
20366 2003-01-08 Richard Earnshaw <rearnsha@arm.com>
20367
20368 * arm.h (ENABLE_XF_PATTERNS): Delete.
20369 * arm.md (addxf3, subxf3, mulxf3, divxf3, modxf3, negxf2, absxf2)
20370 (sqrtxf2, floatsixf2, fix_truncxfsi2, truncxfsf2, truncxfdf2)
20371 (extendsfxf2, extenddfxf2, movxf, cmpxf, cmpxf_insn)
20372 (cmpxf_trap): Delete.
20373 (movxf_hard_insn): Remove test of ENABLE_XF_PATTERNS.
20374
20375 2003-01-08 Jan Hubicka <jh@suse.cz>
20376
20377 * i386.md (adddi3_carry_rex64, subdi3_carry_rex64): Name pattern.
20378 (addhi3_carry, addqi3_carry, subhi3_carry, subqi3_carry): New patterns.
20379 (add??cc): New expanders.
20380 * i386.c (expand_int_addcc): New function.
20381 * i386-protos.h (expand_int_addcc): Declare.
20382
20383 * alias.c (memory_modified_1): New static function.
20384 (memory_modified): New static varaible.
20385 (memory_modified_in_insn_p): New global function.
20386 * rtl.h (memory_modified_in_insn_p): Declare.
20387 * rtlanal.c (modified_between_p, modified_in_p): Be smart about memory
20388 references.
20389
20390 * expr.h (emit_conditional_add): Declare.
20391
20392 2003-01-07 Janis Johnson <janis187@us.ibm.com>
20393
20394 PR other/8947
20395 * doc/invoke.texi (-malign-double): Explain that the option breaks
20396 binary compatibility.
20397
20398 2003-01-08 Andreas Schwab <schwab@suse.de>
20399
20400 * config.gcc (m68k-*-linux*): Don't set extra_parts and gnu_ld,
20401 should come from the generic *-*-linux* entry.
20402
20403 2003-01-07 Jan Hubicka <jh@suse.cz>
20404
20405 * cselib.c (cselib_current_insn_in_libcall): New static variable.
20406 (new_elt_loc_list, cselib_process_insn, cselib_init): Keep track on whether
20407 we are inside libcall.
20408 * cselib.h (elt_loc_list): Add in_libcall.
20409 * gcse.c (do_local_cprop): Do not copy propagate using insns
20410 in libcalls.
20411
20412 2003-01-07 David Edelsohn <edelsohn@gnu.org>
20413
20414 * doc/tm.texi (TARGET_SCHED_VARIABLE_ISSUE): CLOBBER and USE do
20415 not normally affect to issue rate.
20416
20417 2003-01-07 Jan Hubicka <jh@suse.cz>
20418
20419 * genopinit.c (optabs): Add addc_optab.
20420 * ifcvt.c (noce_try_store_flag): Rename to ...
20421 (noce_try_addcc): ... this one; handle generic conditional increment.
20422 (noce_process_if_block): Update noce_try_addcc call.
20423 * optabs.c (emit_conditional_add): New.
20424 (init_obtabs): Initialize addc_optab.
20425 * optabs.h (optab_index): Add OTI_addcc.
20426 (addcc_optab): New macro.
20427 * md.texi: Document addMcc
20428
20429 PR target/8322
20430 * i386.c (ix86_init_mmx_sse_builtins): Constify arguments of loads.
20431 * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
20432 * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
20433
20434 * reload1.c (delete_output_reload): Avoid repeated attempts
20435 to delete insn.
20436
20437 2003-01-07 Andreas Schwab <schwab@suse.de>
20438
20439 * configure.in: Restore CFLAGS before gcc_AC_INITFINI_ARRAY.
20440 Move --enable-initfini-array check ...
20441 * aclocal.m4 (gcc_AC_INITFINI_ARRAY): ... here. Define
20442 HAVE_INITFINI_ARRAY also when --enable-initfini-array is given.
20443 Don't AC_SUBST gcc_cv_initfinit_array. Use AC_TRY_RUN.
20444 * configure: Rebuild.
20445
20446 2003-01-07 Richard Henderson <rth@redhat.com>
20447
20448 * alias.c (find_base_value): Only use new_reg_base_value shortcut
20449 if the register is set once.
20450
20451 2003-01-07 Sylvain Pion <Sylvain.Pion@mpi-sb.mpg.de>
20452
20453 * config/i386/i386.c (ix86_init_mmx_sse_builtins):
20454 __builtin_ia32_ldmxcsr and __builtin_ia32_stmxcsr are SSE, not MXX.
20455 * config/i386/i386.md (ldmxcsr, stmxcsr): SSE, not MMX.
20456
20457 2003-01-07 Benjamin Kosnik <bkoz@redhat.com>
20458 Sunil Davasam <sunil.k.davasam@intel.com>
20459
20460 PR libstdc++/9076
20461 * unwind-dw2.c (execute_cfa_program): DW_CFA_undefined,
20462 DW_CFA_same_value, read next and ignore.
20463
20464 2003-01-07 Richard Henderson <rth@redhat.com>
20465
20466 * cfganal.c (flow_call_edges_add): Don't crash on noreturn call.
20467
20468 2003-01-07 Daniel Berlin <dberlin@dberlin.org>
20469
20470 * cfg.c: Include alloc-pool.h
20471 (edge_pool): New pool.
20472 (bb_pool): New pool.
20473 (first_deleted_edge): Remove.
20474 (first_deleted_block): Remove.
20475 (init_flow): Alloc/free the pools.
20476 (free_edge): Use pools.
20477 (alloc_block): Ditto.
20478 (expunge_block): Ditto.
20479 (cached_make_edge): Ditto.
20480
20481 * Makefile.in (cfg.o): Add alloc-pool.h dependency.
20482
20483 2003-01-07 Daniel Berlin <dberlin@dberlin.org>
20484
20485 * et-forest.c: Include alloc-pool.h.
20486 (struct et_forest): Add node_pool and occur_pool.
20487 (et_forest_create): Create the new pools.
20488 (et_forest_delete): Delete them.
20489 (et_forest_add_node): Allocate and free using pools.
20490 (et_forest_add_edge): Ditto.
20491 (et_forest_remove_node): Ditto.
20492 (et_forest_remove_edge): Ditto.
20493
20494 * Makefile.in (et-forest.o): Add alloc-pool.h dependency.
20495
20496 2003-01-07 Kazu Hirata <kazu@cs.umass.edu>
20497
20498 * config/h8300/h8300.c (output_logical_op): Simplify and
20499 optimize the handling of SImode.
20500 * config/h8300/h8300.c (compute_logical_op_length): Update
20501 accordingly.
20502 * config/h8300/h8300.c (compute_logical_op_cc): Likewise.
20503
20504 2003-01-07 Richard Sandiford <rsandifo@redhat.com>
20505
20506 * config/mips/mips.c (mips_va_arg): In the EABI code, apply the
20507 big-endian correction to indirect arguments too.
20508
20509 2003-01-06 Aldy Hernandez <aldyh@redhat.com>
20510
20511 Segher Boessenkool <segher@koffie.nl>
20512
20513 * config/rs6000/rs6000.c (rs6000_reg_names): Add missing registers.
20514 (alt_reg_names): Ditto, fix formatting.
20515 * config/rs6000/rs6000.h (DEBUG_REGISTER_NAMES): Fix formatting.
20516
20517 2003-01-06 Kazu Hirata <kazu@cs.umass.edu>
20518
20519 * config/h8300/h8300.c (final_prescan_insn): Constify uid.
20520 (output_logical_op): Constify intval and det.
20521 (compute_logical_length): Likewise.
20522 (compute_logical_cc): Likewise.
20523 (output_a_shift): Constify mask.
20524 (h8300_encode_label): Constify len.
20525
20526 2003-01-06 Kazu Hirata <kazu@cs.umass.edu>
20527
20528 * config/h8300/h8300.c (h8300_expand_prologue): Remove fsize.
20529 (h8300_expand_epilogue): Likewise.
20530
20531 2003-01-06 Aldy Hernandez <aldyh@redhat.com>
20532
20533 Segher Boessenkool <segher@koffie.nl>
20534
20535 * config/rs6000/altivec.md: Remove spaces from assembler
20536 instruction argument lists.
20537
20538 2003-01-07 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
20539
20540 * config/c4x/c4x.c (c4x_naked_function_p): Rename from
20541 c4x_assembler_function_p.
20542 (c4x_null_epilogue_p): Complement return value, all uses updated.
20543 (c4x_insert_attributes): Add naked.
20544 * config/c4x/c4x.md (c4x_null_epilogue_p): Changes uses.
20545 * doc/extend.texi: Update C4x function attributes.
20546
20547 2003-01-06 Richard Henderson <rth@redhat.com>
20548
20549 * config/alpha/alpha.c (alpha_encode_section_info): Adjust symbol_str
20550 properly when changing "local-ness".
20551 * config/alpha/alpha.md (movdi_er_high_g): Allow all symbols.
20552
20553 2003-01-06 Dale Johannesen <dalej@apple.com>
20554
20555 * config/darwin-protos.h: Add prototypes for new section functions.
20556
20557 2003-01-06 Chris Demetriou <cgd@broadcom.com>
20558
20559 * config.gcc (mipsisa32-*-elf*, mipsisa32el-*-elf*): Default ABI
20560 to EABI.
20561
20562 2003-01-06 Zack Weinberg <zack@codesourcery.com>
20563
20564 * hwint.h: If the current compiler has no 64-bit type at all,
20565 make HOST_WIDEST_INT 32 bits.
20566
20567 2003-01-06 Eric Christopher <echristo@redhat.com>
20568
20569 * config/mips/mips.md (movdf_internal2): Fix constraints.
20570
20571 2003-01-06 Kazu Hirata <kazu@cs.umass.edu>
20572
20573 * config/h8300/h8300.md (*twoshifts_l16_r1): New.
20574
20575 2003-01-06 Richard Sandiford <rsandifo@redhat.com>
20576
20577 * config/mips/mips.md (leadi): Use dla rather than la.
20578
20579 2003-01-06 Svein E. Seldal <Svein.Seldal@solidas.com>
20580
20581 * config/c4x/c4x.h: Updated specs for new gas format. Fixed bug
20582 in C33_FLAG. Added proper C33 support in ASM_FILE_START macro.
20583
20584 2003-01-06 Herman A.J. ten Brugge <hermantenbrugge@home.nl>
20585
20586 * config/c4x/c4x.h: Remove hwint.h include and HOST_WIDE_INT_PRINT_HEX
20587 redefinition.
20588
20589 2003-01-05 Kazu Hirata <kazu@cs.umass.edu>
20590
20591 * config/h8300/h8300.md (*extzv_8_23): New.
20592
20593 2003-01-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
20594
20595 * pa64-hpux.h (JCR_SECTION_NAME): Define.
20596 (PA_INIT_FRAME_DUMMY_ASM_OP): Check EH_FRAME_SECTION_NAME instead of
20597 USE_EH_FRAME_REGISTRY when defining.
20598
20599 2003-01-05 Kazu Hirata <kazu@cs.umass.edu>
20600
20601 * config/h8300/h8300.c (output_a_shift): Do not output a
20602 variable shift.
20603 * config/h8300/h8300.md (two splitters): New.
20604
20605 2003-01-05 Richard Sandiford <rsandifo@redhat.com>
20606
20607 * config/mips/mips.md: Disable the movstrsi define_split.
20608
20609 2003-01-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20610
20611 * alloc-pool.c: Don't include "libiberty.h".
20612 * config/sparc/gmon-sol2.c: Include <fcntl.h>.
20613 * convert.c (convert_to_real): Hide unused variable.
20614
20615 2003-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20616
20617 * Makefile.in (gtyp-gen.h): Const-ify.
20618 * gcov-dump.c (tag_table): Likewise.
20619
20620 2003-01-04 Bruce Korb <bkorb@gnu.org>
20621
20622 * fixinc/fixfixes.c(wrap_fix): the wrapper guard must be a function
20623 of *both* the file name and the fix name.
20624
20625 2003-01-04 John David Anglin <dave.anglin@nrc.ca>
20626
20627 * config.gcc (hppa*64*-*-hpux11*): Define extra_parts. Don't use
20628 collect2.
20629 * pa-hpux11.h (LDD_SUFFIX, PARSE_LDD_OUTPUT): Undefine.
20630 (HAS_INIT_SECTION, LD_INIT_SWITCH, LD_FINI_SWITCH): Define.
20631 * pa64-hpux.h (HP_INIT_ARRAY_SECTION_ASM_OP,
20632 GNU_INIT_ARRAY_SECTION_ASM_OP, HP_FINI_ARRAY_SECTION_ASM_OP,
20633 GNU_FINI_ARRAY_SECTION_ASM_OP): Define.
20634 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Define when not using
20635 elfos.h.
20636 (EH_FRAME_IN_DATA_SECTION): Delete define.
20637 (HAS_INIT_SECTION, LD_INIT_SWITCH, LD_FINI_SWITCH): Undefine.
20638 (STARTFILE_SPEC): Use crtbegin.o.
20639 (ENDFILE_SPEC): Use crtend.o.
20640 (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION,
20641 SUPPORTS_INIT_PRIORITY, PA_CXA_FINALIZE_STUB, PA_INIT_FINI_HACK,
20642 PA_INIT_FRAME_DUMMY_ASM_OP, PA_JV_REGISTERCLASSES_STUB,
20643 DTOR_LIST_BEGIN): Define.
20644 * pa.c (TARGET_ASM_CONSTRUCTOR): Define.
20645 (pa_asm_out_constructor, pa_asm_out_destructor): New functions.
20646 * som.h (SUPPORTS_INIT_PRIORITY): Delete define.
20647
20648 2002-12-31 Larin Hennessy <larin@science.oregonstate.edu>
20649
20650 * fixinc/fixinc.svr4: Remove references to i860, Sony NewsOS, and spur.
20651 * fixinc/inclhack.def: Remove tests for Apple A/UX, ARM/RISCiX, DG/UX,
20652 m88k-*-sysv3*, Sony NewsOS. Remove references to i860.
20653 Cleanup handling of replacement text.
20654 * fixinc/mkfixinc.sh: Remove reference to i?86-*-osf1*
20655
20656 2003-01-04 Bruce Korb <bkorb@gnu.org>
20657
20658 * fixinc/tests/base/math.h: removed obsolete results
20659 * fixinc/tests/base/stdlib.h: ditto
20660 * fixinc/tests/base/sys/param.h: ditto
20661 * fixinc/tests/base/sys/stat.h: ditto
20662 * fixinc/tests/base/time.h: ditto
20663 * fixinc/tests/base/X11/Intrinsic.h: removed obsolete file
20664 * fixinc/tests/base/sys/byteorder.h: ditto
20665 * fixinc/inclhack.def: Remove superfluous backslashes
20666
20667 2003-01-04 Kazu Hirata <kazu@cs.umass.edu>
20668
20669 * config/h8300/h8300-protos.h: Add prototypes for
20670 the new functions defined below.
20671 * config/h8300/h8300.c (TARGET_ASM_FUNCTION_PROLOGUE): Do not
20672 define.
20673 (dosize): Emit RTL instead of assembly code.
20674 (push): Likewise.
20675 (pop): Likewise.
20676 (h8300_output_function_prologue): Remove.
20677 (h8300_expand_prologue): New.
20678 (h8300_expand_epilogue): New.
20679 (h8300_output_function_epilogue): Do only the reset of
20680 pragma_saveall.
20681 * config/h8300/h8300.md (push_h8300): New.
20682 (push_h8300hs): Likewise.
20683 (pop_h8300): Likewise.
20684 (pop_h8300hs): Likewise.
20685 (*stm_h8300s_2): Change the name to stm_h8300s_2.
20686 (*stm_h8300s_3): Change the name to stm_h8300s_3.
20687 (*stm_h8300s_4): Change the name to stm_h8300s_4.
20688 (*ldm_h8300s_2): New.
20689 (*ldm_h8300s_3): Likewise.
20690 (*ldm_h8300s_4): Likewise.
20691 (return): Likewise.
20692 (*return_1): Likewise.
20693 (prologue): Likewise.
20694 (epilogue): Likewise.
20695 (monitor_prologue): Likewise.
20696
20697 2003-01-03 Dale Johannesen <dalej@apple.com>
20698
20699 * config/darwin.h: (EXTRA_SECTIONS): Add machopic_symbol_stub1,
20700 machopic_picsymbol_stub1.
20701 (EXTRA_SECTION_FUNCTIONS): Ditto.
20702 * rs6000/rs6000.c: Update copyright.
20703 (machopic_output_stub): Use them. Remove an insn from stub code.
20704
20705 2003-01-02 Jason Merrill <jason@redhat.com>
20706
20707 * fold-const.c (fold) [COND_EXPR]: Avoid NOP_EXPRs better.
20708
20709 * integrate.c (copy_decl_for_inlining): Don't clear the rtl for
20710 static/external decls.
20711
20712 * c-common.c (finish_fname_decls): Put the DECL_STMTs inside the
20713 outermost scope.
20714 * c-decl.c (c_make_fname_decl): Push the decls there, too.
20715
20716 2003-01-03 Kazu Hirata <kazu@cs.umass.edu>
20717
20718 * config/h8300/h8300-protos.h: Add a prototype for
20719 h8300_current_function_interrupt_function_p.
20720 * config/h8300/h8300.c (interrupt_handler): Remove.
20721 (os_task): Likewise.
20722 (monitor): Likewise.
20723 (pragma_interrupt): New.
20724 (WORD_REG_USED): Use
20725 h8300_current_function_interrupt_function_p.
20726 (dosize): Likewise.
20727 (h8300_output_function_prologue): Likewise.
20728 Do not set interrupt_handler, os_task, monitor.
20729 (h8300_output_function_prologue): Use
20730 h8300_current_function_interrupt_function_p.
20731 Do not set interrupt_handler, os_task, monitor.
20732 (h8300_current_function_interrupt_function_p): New.
20733 (h8300_pr_interrupt): Set pragma_interrupt.
20734 (h8300_insert_attributes): Reset pragma_interrupt.
20735
20736 2003-01-03 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
20737
20738 * doc/install.texi (Configuration): Fix markup for reference to
20739 gcc/config.gcc.
20740
20741 2003-01-02 Kazu Hirata <kazu@cs.umass.edu>
20742
20743 * config/h8300/h8300.md (*iorhi3_zext): Relax the condition.
20744 (*iorhi3_two_qi): Likewise.
20745 (*iorsi3_zexthi): Likewise.
20746 (*xorhi3_zextqi): Likewise.
20747 (*xorsi3_zexthi): Likewise.
20748 (*xorsi3_zextqi): Likewise.
20749
20750 2003-01-02 Kazu Hirata <kazu@cs.umass.edu>
20751
20752 * config/h8300/h8300.c (stack_pointer_operand): New.
20753 (const_int_gt_2_operand): Likewise.
20754 (const_int_ge_8_operand): Likewise.
20755 * config/h8300/h8300.md (a splitter): Likewise.
20756 (a peephole2): Likewise.
20757 * config/h8300/h8300-protos.h: Add prototypes for the new
20758 functions above.
20759
20760 2003-01-02 Steven Bosscher <s.bosscher@student.tudelft.nl>
20761
20762 * objc/Make-lang.in, objc/config-lang.in, objc/lang-specs.h,
20763 objc/objc-act.h: Fix copyright years.
20764
20765 2003-01-02 Steven Bosscher <s.bosscher@student.tudelft.nl>
20766
20767 * doc/passes.texi: Fix documentation for -fssa-ccp
20768
20769 2003-01-02 Neil Booth <neil@daikokuya.co.uk>
20770
20771 * gccbug.in: Update for new categories.
20772
20773 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
20774
20775 * config/h8300/h8300.md: Reorder some patterns.
20776
20777 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
20778
20779 * config/h8300/h8300.c (output_logical_op): Fix a warning.
20780
20781 2003-01-01 Neil Booth <neil@daikokuya.co.uk>
20782
20783 * config/darwin-protos.h, config/c4x/c4x-protos.h,
20784 config/cris/cris-protos.h, config/i370/i370-protos.h,
20785 config/i960/i960-protos.h, config/ia64/ia64-protos.h,
20786 config/v850/v850-protos.h: Use struct, and don't conditionally
20787 compile on GCC_C_PRAGMA_H.
20788
20789 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
20790
20791 * config/arm/arm-protos.h: Remove #ifdef GCC_C_PRAGMA_H.
20792 * config/h8300/h8300-protos.h: Likewise.
20793 * config/sh/sh-protos.h: Likewise.
20794
20795 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
20796
20797 * config/arm/arm-protos.h: Use struct cpp_reader instead of
20798 cpp_reader.
20799 * config/h8300/h8300-protos.h: Likewise.
20800 * config/sh/sh-protos.h: Likewise.
20801
20802 2003-01-01 Neil Booth <neil@daikokuya.co.uk>
20803
20804 * config/arm/arm.c (arm_pr_long_calls, arm_pr_no_long_calls,
20805 arm_pr_long_calls_off): Use struct.
20806 * config/h8300/h8300.c (h8300_pr-interrupt, h8300_pr_saveall)
20807 : Similarly.
20808 Don't include cpplib.h.
20809 * config/sh/sh.c (sh_pr_interrupt, sh_pr_trapa,
20810 sh_pr_nosave_low_regs): Similarly.
20811
20812 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
20813
20814 * config/h8300/h8300.c: Include cpplib.h.
20815
20816 2003-01-01 Steven Bosscher <s.bosscher@student.tudelft.nl>
20817
20818 * objc/Make-lang.in, objc/config-lang.in, objc/lang-options.h,
20819 objc/lang-specs.h, objc/objc-act.c, objc/objc-act.h,
20820 objc/objc-lang.c, objc/objc-tree.def: Replace "GNU CC" with
20821 "GCC" in the copyright header.
20822
20823 2003-01-01 Neil Booth <neil@daikokuya.co.uk>
20824
20825 * c-pragma.c (c_register_pragma): New.
20826 (init_pragma): Use it.
20827 * c-pragma.h (cpp_register_pragma): Don't declare.
20828 (c_register_pragma): New.
20829 * cpplib.h: Remove #ifdef GCC_C_PRAGMA_H.
20830 * config/darwin.h (REGISTER_TARGET_PRAGMAS): Update.
20831 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS): Update.
20832 * config/c4x/c4x.h (REGISTER_TARGET_PRAGMAS): Update.
20833 * config/h8300/h8300.h (REGISTER_TARGET_PRAGMAS): Update.
20834 * config/i370/i370.h (REGISTER_TARGET_PRAGMAS): Update.
20835 * config/i960/i960.h (REGISTER_TARGET_PRAGMAS): Update.
20836 * config/ia64/hpux.h (REGISTER_TARGET_PRAGMAS): Update.
20837 * config/rs6000/rs6000.h (REGISTER_TARGET_PRAGMAS): Update.
20838 * config/sh/sh.h (REGISTER_TARGET_PRAGMAS): Update.
20839 * config/v850/v850.h (REGISTER_TARGET_PRAGMAS): Update.
20840 * doc/tm.texi (REGISTER_TARGET_PRAGMAS): Update
20841
20842 See ChangeLog.8 for earlier changes.