]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog-2003
Simple patch only add assumed-rank to the list of possible attributes.
[thirdparty/gcc.git] / gcc / ChangeLog-2003
CommitLineData
3eb54e5f
ILT
12003-12-31 Jan Hubicka <jh@suse.cz>
2
3 PR opt/13473
4 * recog.c (validate_replace_rtx_1): Take care for RTL sharing inside
5 ASM input operands
6
7 PR opt/12617
8 * toplev.c (dump_file_index): Reorder ce3 and bbro.
9 (dump_file): Likewise.
10 (rest_of_compilation): Likewise.
11
12 PR debug/13367
13 * cgraph.c (cgraph_function_possibly_inlined): Even with
14 flag_really_no_inline we inline always_inline functions.
15 * cgraphunit.c (cgraph_analyze_function): Clear inlinable flag
16 for non-always_inline functions when there is flag_really_no_inline.
17 (cgraph_decide_inlining): Limit work done when not inlining.
18 (cgraph_decide_inlining_incrementally): Likewise.
19 (cgraph_optimize_function): Check whether something got inlined.
20 * c-objc-common.c (c_disregard_inline_limits): Do not always inline
21 extern inline functions when not inlining.
22
23 * opts.c (decode_options): Disable crossjumping at -O1
24 * invoke.texi (-O1): Document change.
25
262003-12-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27
28 * print-rtl.c (print_rtx): For hard register, write out register
29 number and register name instead of calling PRINT_REG.
30 * defaults.h (PRINT_REG): Deleted.
31 * config/i386/i386.c (print_reg): Remove handling of CODE of -1.
32 Move comments here from i386.h.
33 (print_operand, print_operand_address): Call print_reg directly.
34 * config/i386/i386.h (PRINT_REG): Deleted.
35
362003-12-31 Roger Sayle <roger@eyesopen.com>
37
38 * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Define
39 _INCLUDE_LONGLONG.
40
412003-12-31 Zack Weinberg <zack@codesourcery.com>
42
43 * gcc.c (init_spec): Add -lunwind to shared case too if
44 USE_LIBUNWIND_EXCEPTIONS.
45
462003-12-31 Joseph S. Myers <jsm@polyomino.org.uk>
47
48 * doc/include/texinfo.tex: Update to version 2003-12-21.10.
49 * doc/gcc.texi, doc/gccint.texi: Don't set font for
50 @def... commands.
51 * doc/invoke.texi: Don't use empty @opindex.
52
532003-12-31 Mark Mitchell <mark@codesourcery.com>
54
55 * c-common.c (c_expand_expr): Remove code to return a value
56 different from that returned by expand_expr.
57 * expr.c (store_expr): Use the validity of a target MEM, rather
58 than checking DECL_RTL (exp), to figure out if a copy is
59 required.
60
612003-12-31 Kazu Hirata <kazu@cs.umass.edu>
62
63 * config/v850/lib1funcs.asm: Fix comment formatting.
64 * config/v850/v850.c: Likewise.
65 * config/v850/v850.h: Likewise.
66 * config/v850/v850.md: Likewise.
67
682003-12-31 Kazu Hirata <kazu@cs.umass.edu>
69
70 * config/i386/i386.md (*movqi_insv_2): Remove AND in the
71 set source.
72
732003-12-31 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
74
75 * config.gcc: Added m32r-linux m32rle-elf and m32le-linux targets.
76 * doc/invoke.texi: Document -mflush-func, -mflush-trap options.
77 Also add documentation for -mdebug, -malign-loops, -missue-rate,
78 and -mbranch-cost options.
79 * config/m32r/t-linux: New file: m32r-linux support.
80 * config/m32r/xm-linux.h: Likewise.
81 * config/m32r/xm-m32r.h: Likewise.
82 * config/m32r/linux.h: Likewise.
83 * config/m32r/little.h: New file: Little endian code generation
84 support.
85 * config/m32r/m32r-protos.h (m32r_legitimize_pic_address,
86 m32r_legitimate_pic_operand_p, load_pic_register): Add
87 prototypes.
88 * config/m32r/m32r.c (m32r_init): Add options for cache-flush.
89 (addr24_operand): Changes for PIC code generation.
90 * config/m32r/m32r.h (LABEL_ALIGN): Define to calculate PNOP
91 length at labels.
92 (ASM_SPEC): Add PIC support.
93 (FUNCTION_PROFILER): New define.
94 (TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE): Changed to support
95 trampoline.
96 (CONDITIONAL_REGISTER_USAGE, CONSTANT_ADDRESS_P,
97 LEGITIMIZE_ADDRESS, JUMP_TABLES_IN_TEXT_SECTION,
98 PIC_OFFSET_TABLE_REGNUM, FINALIZE_PIC, LEGITIMATE_PIC_OPERAND_P,
99 ASM_OUTPUT_ADDR_DIFF_ELT, CASE_VECTOR_MODE): Define for PIC.
100 (move_src_operand, m32r_compute_frame_size, m32r_expand_prologue,
101 m32r_finalize_pic): Changes for PIC and profile support.
102 (global_offset_table, load_pic_register, m32r_legitimate_pic_operand_p,
103 m32r_legitimize_pic_address): Add for PIC support.
104 (m32r_file_start): Changed for little-endian-target.
105 * config/m32r/m32r.md (mvqi, movhi, movsi, movdi, movsf, movdf,
106 tablejump, tablejump_insn, call, call_value, call_value_via_label):
107 Changes for PIC.
108 (pic_load_addr, get_pc, builtin_setjmp_receiver): Added for PIC.
109 (flush_icache): Changes for cache-flush trap.
110
1112003-12-30 Kazu Hirata <kazu@cs.umass.edu>
112
113 * config/i386/i386.h: Remove an unnecessary #undef.
114
1152003-12-30 Roger Sayle <roger@eyesopen.com>
116
117 * cppfiles.c (pch_open_file): Minor tweak to work-around native
118 HPPA compiler bug.
119
1202003-12-30 Kazu Hirata <kazu@cs.umass.edu>
121
122 * config/rs6000/aix.h: Fix comment formatting.
123 * config/rs6000/rs6000-modes.def: Likewise.
124 * config/rs6000/rs6000.c: Likewise.
125 * config/rs6000/rs6000.h: Likewise.
126 * config/rs6000/rs6000.md: Likewise.
127
1282003-12-30 Kazu Hirata <kazu@cs.umass.edu>
129
130 * config/i386/i386-protos.h: Remove prototype for
131 const_int_1_operand.
132 * config/i386/i386.c (const_int_1_operand): Remove.
133 * config/i386/i386.h (PREDICATE_CODES): Remove
134 const_int_1_operand.
135 * config/i386/i386.md: Replace all uses of const_int_1_operand
136 with const1_operand.
137 * config/i386/pentium.md: Likewise.
138
1392003-12-30 Geoffrey Keating <geoffk@greed.local>
140
141 * doc/tm.texi (PREFERRED_RELOAD_CLASS): Describe use of NO_REGS
142 with constants.
143
1442003-12-30 Mark Mitchell <mark@codesourcery.com>
145
146 * stor-layout.c (layout_decl): Turn bitfields into ordinary
147 fields, even if they are the first field in a structure.
148
1492003-12-30 Roger Sayle <roger@eyesopen.com>
150
151 * fold-const.c (fold) <COND_EXPR>: Don't require strict type
152 equality, instead just prevent replacing a COND_EXPR of non-void
153 type by one of its operands of void type.
154
1552003-12-30 Andreas Schwab <schwab@suse.de>
156
157 * doc/c-tree.texi: Fix @item vs. @itemx.
158 * doc/cpp.texi: Likewise.
159 * doc/install.texi: Likewise.
160 * doc/invoke.texi: Likewise.
161
1622003-12-30 Nathan Sidwell <nathan@codesourcery.com>
163
164 * builtins.c (expand_builtin_apply_args_1): Fix typo in previous
165 change.
166
1672003-12-30 Jan Hubicka <jh@suse.cz>
168
169 PR target/11936
170 * i386.h (CLASS_LIKELY_SPILLED_P): Return true for
171 FP_TOP_REG/FP_SECOND_REG.
172
1732003-12-30 Steven Bosscher <steven@gcc.gnu.org>
174
175 Backport from tree-ssa (relevant changes only):
176 2003-12-18 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
177
178 * et-forest.h (et_forest_create, et_forest_delete,
179 et_forest_add_node, et_forest_add_edge, et_forest_remove_node,
180 et_forest_remove_edge, et_forest_parent,
181 et_forest_common_ancestor, et_forest_node_value,
182 et_forest_enumerate_sons): Declarations removed.
183 (struct et_node): New.
184 (et_new_tree, et_free_tree, et_set_father, et_split, et_nca,
185 et_below): Declare.
186 * et-forest.c (struct et_forest_occurrence, struct et_forest,
187 struct et_forest_node): Removed.
188 (et_forest_create, et_forest_delete,
189 et_forest_add_node, et_forest_add_edge, et_forest_remove_node,
190 et_forest_remove_edge, et_forest_parent,
191 et_forest_common_ancestor, et_forest_node_value,
192 et_forest_enumerate_sons, splay, remove_all_occurrences,
193 find_leftmost_node, find_rightmost_node, calculate_value): Removed.
194 (struct et_occ): New.
195 (et_nodes, et_occurences): New.
196 (set_depth, set_depth_add, set_prev, set_next, et_recomp_min,
197 et_check_occ_sanity, et_check_sanity, et_check_tree_sanity,
198 record_path_before_1, record_path_before, check_path_after_1,
199 check_path_after, et_splay, et_new_occ, et_new_tree,
200 et_free_tree, et_set_father, et_split, et_nca, et_below): New.
201 * basic-block.h (struct basic_block_def): New field dom.
202 (struct dominance_info): Type removed.
203 (calculate_dominance_info, free_dominance_info,
204 nearest_common_dominator, set_immediate_dominator,
205 get_immediate_dominator, dominated_by_p, get_dominated_by,
206 add_to_dominance_info, delete_from_dominance_info,
207 recount_dominator, redirect_immediate_dominators,
208 iterate_fix_dominators, verify_dominators): Declarations
209 changed.
210 (enum dom_state): New.
211 (dom_computed): New variable.
212 (first_dom_son, next_dom_son): Declare.
213 * dominance.c (struct dominance_info): Removed.
214 (BB_NODE, SET_BB_NODE): Removed.
215 (calculate_dominance_info, free_dominance_info,
216 nearest_common_dominator, set_immediate_dominator,
217 get_immediate_dominator, dominated_by_p, get_dominated_by,
218 add_to_dominance_info, delete_from_dominance_info,
219 recount_dominator, redirect_immediate_dominators,
220 iterate_fix_dominators, verify_dominators,
221 debug_dominance_info): Work over new datastructure. Access
222 dominance datastructures through CFG.
223 (assign_dfs_numbers, compute_dom_fast_query, first_dom_son,
224 next_dom_son): New.
225 * bt-load.c (dom): Variable removed.
226 (augment_live_range, combine_btr_defs, migrate_btr_def,
227 migrate_btr_defs, branch_target_load_optimize): Updated for the
228 new interface for dominance information.
229 * cfg.c {exit_entry_blocks): Update initializer.
230 * cfglayout.c (copy_bbs): Removed loops argument. Updated for
231 the new interface for dominance information.
232 * cfglayout.h (copy_bbs): Declaration changed.
233 * cfgloop.c (flow_loop_pre_header_find, flow_loops_cfg_dump,
234 flow_loop_scan, canonicalize_loop_headers, flow_loops_find): Updated
235 for the new interface for dominance information.
236 (flow_loop_scan): Loops argument removed.
237 (flow_loops_free): Don't release dominators.
238 * cfgloop.h (struct cfg): Dom field removed.
239 (flow_loop_scan, loop_split_edge_with, simple_loop_p,
240 just_once_each_iteration_p, split_loop_bb): Declaration changed.
241 * cfgloopanal.c (simple_loop_exit_p, simple_increment,
242 just_once_each_iteration_p, simple_loop_p): Remove loops argument.
243 Updated for the new interface for dominance information.
244 * cfgloopmanip.c (remove_bbs, find_path, create_preheader,
245 split_loop_bb, loopify, duplicate_loop_to_header_edge,
246 force_single_succ_latches, loop_split_edge_with): Ditto.
247 * gcse.c (dominators): Variable removed.
248 (free_code_hoist_mem, compute_code_hoist_data, hoist_code):
249 Updated for the new interface for dominance information.
250 * ifcvt.c (post_dominators): Variable removed.
251 (mark_loop_exit_edges, merge_if_block, find_if_header,
252 find_cond_trap, find_if_case_1, find_if_case_2, if_convert):
253 Updated for the new interface for dominance information.
254 * loop-init.c (rtl_loop_optimizer_init,
255 rtl_loop_optimizer_finalize): Ditto.
256 * loop-unroll.c (decide_peel_simple, decide_peel_once_rolling,
257 decide_peel_completely, decide_unroll_stupid,
258 decide_unroll_constant_iterations,
259 decide_unroll_runtime_iterations): Loops argument removed.
260 Updated for the new interface for dominance information.
261 (unroll_and_peel_loops, peel_loops_completely,
262 unroll_loop_runtime_iterations): Updated for the new interface for
263 dominance information.
264 * loop-unswitch.c (may_unswitch_on_p, unswitch_loops,
265 unswitch_single_loop, unswitch_loop): Updated for the new
266 interface for dominance information.
267 * predict.c (process_note_predictions, process_note_prediction,
268 estimate_probability, note_prediction_to_br_prob): Ditto.
269 * sched-rgn.c (find_rgns, init_regions): Ditto.
270 * toplev.c (rest_of_handle_branch_prob): Free the dominators.
271
2722003-12-30 Jan Hubicka <jh@suse.cz>
273
274 PR target/13456
275 * i386.md (allocate_stack_worker): Use different pattern for pre and
276 post reload expansion.
277 (allocate_stack_worker_1, allocate_stack_worker_rex64): Use
278 match_scratch.
279 (allocate_stack_worder_1_postreload,
280 allocate_stack_worker_rex64_postreload): New.
281
2822003-12-29 Nathan Sidwell <nathan@codesourcery.com>
283
284 * builtins.c (expand_builtin_apply_args_1): Add pretend args size
285 to the virtual incoming args pointer for downward stacks.
286
2872003-12-29 Roger Sayle <roger@eyesopen.com>
288
289 PR fortran/12632
290 * fold-const.c (fold) <COND_EXPR>: Don't fold a constant condition,
291 if the type of the selected branch doesn't match its' parent.
292
2932003-12-29 Jan Hubicka <jh@suse.cz>
294
295 * coverage.c (read_counts_file): Better error messages; cause corrupted
296 profiles to produce hard errors, not just warnings
297 (get_coverage_counts): Similarly.
298
299 * toplev.c (rest_of_handle_loop_optimize): Enable LOOP_AUTO_UNROLL.
300
3012003-12-29 Phil Edwards <phil@codesourcery.com>
302
303 * doc/cppopts.texi: Use of -idirafter, -iprefix, -iwithprefix, and
304 -iwithprefixbefore is not discouraged.
305
3062003-12-28 Mostafa Hagog <mustafa@il.ibm.com>
307
308 * sbitmap.c (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg,
309 sbitmap_a_xor_b_cg): Accumulate "changed" properly.
310 (sbitmap_not): Zero all bits past n_bit.
311
3122003-12-27 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
313
314 PR opt/13159
315 * cfgloopanal.c (mark_irreducible_loops): Fix the strongly connected
316 components detection.
317 * loop-unswitch.c (unswitch_loop): Preserve simple preheaders.
318
3192003-12-27 Bernardo Innocenti <bernie@develer.com>
320
321 * config/m68k/uclinux.h (LIB_SPEC): Add elf2flt magic required for
322 correct linking of executables using id-based shared libraries.
323
3242003-12-27 Kazu Hirata <kazu@cs.umass.edu>
325
326 * config/i386/i386-interix.h: Remove uses of "register"
327 specifier in declarations of arguments and local variables.
328 * config/i386/i386.c: Likewise.
329 * config/i386/i386elf.h: Likewise.
330 * config/i386/ptx4-i.h: Likewise.
331 * config/i386/sysv4.h: Likewise.
332
3332003-12-26 Fariborz Jahanian <fjahanian@apple.com>
334 Geoffrey Keating <geoffk@apple.com>
335 David Edelsohn <edelsohn@gnu.org>
336
337 * config/rs6000/rs6000.c (legitimate_offset_address_p): Do not
338 restrict DFmode and TFmode to word alignment.
339 * config/rs6000/rs6000.md (movdf_hardfloat64): Use 'o' constraint
340 for ld/std and order before mr.
341
3422003-12-26 Andrew Pinski <pinskia@physics.uc.edu>
343
344 * config/darwin.h (LINK_COMMAND_SPEC): Arrange
345 -fprofile-generate to imply -lgcov.
346
3472003-12-26 Kazu Hirata <kazu@cs.umass.edu>
348
349 * config/h8300/h8300.md (ldm_h8300s_2_normal): Use HImode for
350 addresses.
351
3522003-12-25 Kazu Hirata <kazu@cs.umass.edu>
353
354 * config/m32r/m32r.md: Remove a constraint from a splitter.
355
3562003-12-25 Andrew Pinski <pinskia@physics.uc.edu>
357
358 PR C++/13429, C/11944
359 * c-common.c (c_build_qualified_type): Return early when type is
360 error_mark_node.
361 (c_apply_type_quals_to_decl): Likewise.
362
3632003-12-25 Kazu Hirata <kazu@cs.umass.edu>
364
365 * config/alpha/alpha-modes.def: Fix comment formatting.
366 * config/alpha/alpha.c: Likewise.
367 * config/alpha/alpha.h: Likewise.
368 * config/alpha/elf.h: Likewise.
369 * config/alpha/lib1funcs.asm: Likewise.
370 * config/alpha/openbsd.h: Likewise.
371 * config/alpha/vms-cc.c: Likewise.
372 * config/alpha/vms-crt0-64.c: Likewise.
373 * config/alpha/vms-crt0.c: Likewise.
374 * config/alpha/vms-ld.c: Likewise.
375 * config/alpha/vms-psxcrt0-64.c: Likewise.
376 * config/alpha/vms-psxcrt0.c: Likewise.
377 * config/alpha/vms.h: Likewise.
378 * config/arc/arc.c: Likewise.
379 * config/arm/aof.h: Likewise.
380 * config/arm/arm-modes.def: Likewise.
381 * config/arm/arm.c: Likewise.
382 * config/arm/arm.h: Likewise.
383 * config/arm/arm.md: Likewise.
384 * config/arm/linux-elf.h: Likewise.
385 * config/arm/vxworks.h: Likewise.
386 * config/avr/avr.c: Likewise.
387 * config/avr/avr.h: Likewise.
388
3892003-12-24 Kazu Hirata <kazu@cs.umass.edu>
390
391 * config/xtensa/elf.h: Fix comment formatting.
392 * config/xtensa/xtensa-protos.h: Likewise.
393 * config/xtensa/xtensa.c: Likewise.
394 * config/xtensa/xtensa.h: Likewise.
395
3962003-12-24 Kazu Hirata <kazu@cs.umass.edu>
397
398 * config/avr/avr.c: Fix comment formatting.
399 * config/avr/avr.md: Likewise.
400
4012003-12-24 Kazu Hirata <kazu@cs.umass.edu>
402
403 PR target/12721.
404 * config/avr/avr.c: Include ggc.h.
405 (tmp_reg_rtx): Declare with GTY.
406 (zero_reg_rtx): Likewise.
407 (ldi_reg_rtx): Remove.
408 (avr_override_options): Initialize zero_reg_rtx and
409 ldi_reg_rtx.
410 (avr_init): Remove.
411 Include gt-avr.h.
412 * config/avr/avr.h (LDI_REG_REGNO): Remove.
413 Remove externs for tmp_reg_rtx, zero_reg_rtx, and ldi_reg_rtx.
414
4152003-12-24 David Edelsohn <edelsohn@gnu.org>
416
417 * doc/md.texi: Document PowerPC vector register constraint letter.
418
4192003-12-23 Mark Mitchell <mark@codesourcery.com>
420
421 * calls.c (expand_call): Recognize calls to "sqrt" and create
422 corresponding notes.
423
4242003-12-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
425
426 * config/mips/mips.c (override_options): Use `inform' instead
427 of `warning' for -g -mabi=32 and native assembler.
428
429 * config/mips/t-iris6 (CRTSTUFF_T_CFLAGS, TARGET_LIBGCC2_CFLAGS):
430 Don't pass -Wno-error.
431
4322003-12-23 David Edelsohn <edelsohn@gnu.org>
433
434 * function.c (assign_parms): Update max_parm_reg and
435 parm_reg_stack_loc when adding new parm reg.
436
4372003-12-23 Kazu Hirata <kazu@cs.umass.edu>
438
439 * config/ns32k/ns32k.c: Convert to ISO-C.
440
4412003-12-23 Zack Weinberg <zack@codesourcery.com>
442
443 * config/ia64/ia64.c (ia64_va_arg): Pass pointer for
444 variable-sized type through convert_memory_address.
445 (ia64_in_small_data_p): Always return false for FUNCTION_DECLs.
446
4472003-12-23 Jan Hubicka <jh@suse.cz>
448
449 * common.opt (fprofile-generate,fprofile-use): Add.
450 * gcc.c (LINK_COMMAND_SPEC): Arrange -fprofile-generate to imply -lgcov
451 * opts.c (profile_arc_flag_set, flag_profile_values_set,
452 flag_unroll_loops_set, flag_tracer_set,
453 flag_value_profile_transformations_set,
454 flag_peel_loops_set): New static variables.
455 (common_handle_option): Deal with -fprofile-generate/-fprofile-use
456 * invoke.texi (-fprofile-generate, -fprofile-use): Describe.
457
4582003-12-23 Mark Mitchell <mark@codesourcery.com>
459
460 * Makefile.in (OBJS-common): Remove dwarfout.o.
461 (dwarfout.o): Remove.
462 * common.opt: Remove -gdwarf, -gdwarf+.
463 * defaults.h (PREFERRED_DEBUGGING_TYPE): Do not check for
464 DWARF_DEBUGGING_INFO.
465 * dwarf2out.c: Fix typo in comment.
466 * dwarfout.c: Remove.
467 * opts.c (common_handle_option): Remove OPT_gdwarf, OPT_gdwarf_.
468 * toplev.c (process_options): Remove check for
469 DWARF_DEBUGGING_INFO.
470 * config/elfos.h (DWARF_DEBUGGING_INFO): Do not #define it or
471 #undef it.
472 * config/netware.h (DWARF_DEBUGGING_INFO): Likewise.
473 * config/ptx4.h (DWARF_DEBUGGING_INFO): Likewise.
474 * config/vxworks.h (DWARF_DEBUGGING_INFO): Likewise.
475 * config/alpha/unicosmk.h (DWARF_DEBUGGING_INFO): Likewise.
476 * config/arc/arc.h (DWARF_DEBUGGING_INFO): Likewise.
477 * config/i386/sco5.h (DWARF_DEBUGGING_INFO): Likewise.
478 * config/i386/x86-64.h (DWARF_DEBUGGING_INFO): Likewise.
479 * config/m32r/m32r.h (DWARF_DEBUGGING_INFO): Likewise.
480 * config/mcore/mcore-elf.h (DWARF_DEBUGGING_INFO): Likewise.
481 * config/sparc/linux64.h (DWARF_DEBUGGING_INFO): Likewise.
482 * config/sparc/liteelf.h (DWARF_DEBUGGING_INFO): Likewise.
483 * config/sparc/sol26-sld.h (DWARF_DEBUGGING_INFO): Likewise.
484 * config/sparc/sp86x-elf.h (DWARF_DEBUGGING_INFO): Likewise.
485 * doc/invoke.texi: Do not mention -gdwarf, -gdwarf-1, -gdwarf-1+,
486 or -gdwarf+.
487 * doc/tm.texi: Likewise.
488
489 * c-common.c (flag_abi_version): Default to 2.
490 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_ABI_VERSION
491 uniformly for versions above 2.
492 * doc/invoke.texi: Update documentation for -fabi-version.
493
4942003-12-22 Geoffrey Keating <geoffk@apple.com>
495
496 * config/rs6000/rs6000.md: Change many instances of '!
497 TARGET_POWERPC64' to 'TARGET_32BIT' when the pattern being guarded
498 was guarded only because it changed CR0 or the carry bit in XER.
499
5002003-12-23 Eric Botcazou <ebotcazou@libertysurf.fr>
501
502 PR optimization/13394
503 * toplev.c (rest_of_compilation): Move call to
504 check_function_return_warnings right after the sibcall
505 optimization pass.
506
5072003-12-23 Eric Botcazou <ebotcazou@libertysurf.fr>
508
509 PR c/13382
510 * c-typeck.c (convert_for_assignment): When converting from
511 integral type to pointer type, always call convert.
512
5132003-12-22 Mark Mitchell <mark@codesourcery.com>
514
515 * doc/invoke.texi: Deprecate -fwritable-strings.
516
517 * c-common.c (flag_external_templates): Remove.
518 (flag_alt_external_templates): Likewise.
519 * c-common.h (flag_external_templates): Remove.
520 (flag_alt_external_templates): Likewise.
521 * c-opts.c (c_common_handle_option): Unsupport
522 -falt-external-templates and -ftemplates.
523 * doc/invoke.texi: Remove mention of -fexternal-templates and
524 -falt-external-templates.
525
5262003-12-22 Andrew Pinski <pinskia@physics.uc.edu>
527
528 PR target/13466
529 * config.gcc (powerpc-*-darwin): Remove overridden value of need_64bit_hwint.
530
531 * emit-rtl.c (copy_rtx_if_shared): Add comment about its use of
532 copy_rtx_if_shared_1.
533 (copy_rtx_if_shared_1): Add comment about what the function does.
534
535 * c-decl.c (finish_function): Change order of checks.
536 (c_expand_body): Likewise.
537
5382003-12-22 Fariborz Jahanian <fjahanian@apple.com>
539
540 * config/rs6000/rs6000.c (legitimate_offset_address_p): Correct
541 check for the legitimate offset when memory of
542 DImode/DFmode/TFmode/TImode mode is being referenced and target
543 is TARGET_POWERPC64.
544
5452003-12-22 Dale Johannesen <dalej@apple.com>
546
547 * reload1.c: Add reg_reloaded_call_part_clobbered.
548 (reload_as_needed): Use it.
549 (forget_old_reloads_1): Ditto.
550 (emit_reload_insns): Ditto.
551
5522003-12-22 Dale Johannesen <dalej@apple.com>
553
554 PR optimization/12828
555 * loop.c: Add find_regs_nested to look inside CLOBBER(MEM).
556 (scan_loop): Call it.
557 * regclass.c (reg_scan_mark_regs): Look inside CLOBBER(MEM).
558
5592003-12-22 Andrew Pinski <pinskia@physics.uc.edu>
560
561 PR c/9163
562 * c-decl.c (poplevel): Only set DECL_INITIAL of a current function
563 if it is non-null.
564 (finish_function): Check for error_mark_node or null on DECL_RESULT and
565 DECL_RESULT of fndecl.
566 (c_expand_body): Only expand when DECL_INITIAL of fndecl is not
567 error_mark_node and not null.
568
5692003-12-21 Dan Nicolaescu <dann@ics.uci.edu>
570
571 * rtl.h (dump_rtx_statistics): Declare it.
572 * rtl.c (rtx_alloc_counts, rtx_alloc_sizes, rtvec_alloc_counts,
573 rtx_alloc_sizes): New static vars.
574 (rtx_alloc, rtvec_alloc): Update them.
575 (dump_rtx_statistics): New function.
576 * toplev.c (finalize): Call it.
577 * ggc-page.c (struct globals): Fix comments. Add new member
578 total_allocated_per_order.
579 (ggc_alloc): Keep track of the total allocated memory.
580 (ggc_print_statistics): Clarify message. Print total allocated
581 memory stats.
582 * configure.in (gather-detailed-mem-stats): New flag.
583 * configure: Regenerate.
584 * config.in: Regenerate.
585 * doc/install.texi (Configuration): Document
586 --enable-gather-detailed-mem-stats.
587
5882003-12-22 Kazu Hirata <kazu@cs.umass.edu>
589
590 * system.h (CONVERT_HARD_REGISTER_TO_SSA_P): Poison.
591 * config/i386/i386.h (CONVERT_HARD_REGISTER_TO_SSA_P): Remove.
592
5932003-12-21 Roger Sayle <roger@eyesopen.com>
594
595 * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Define _ILP32
596 when compiling in ILP32 mode.
597
5982003-12-21 Andrew Pinski <pinskia@physics.uc.edu>
599
600 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Return early if
601 TARGET_HAVE_TLS is false.
602
6032003-12-21 Kazu Hirata <kazu@cs.umass.edu>
604
605 * config/ip2k/ip2k-protos.h: Remove the prototype for
606 asm_output_section_name.
607 * config/ip2k/ip2k.c (asm_output_section_name): Remove.
608
6092003-12-21 Kazu Hirata <kazu@cs.umass.edu>
610
611 * alias.c: Fix comment formatting.
612 * alloc-pool.c: Likewise.
613 * bitmap.c: Likewise.
614 * bitmap.h: Likewise.
615 * bt-load.c: Likewise.
616 * c-common.c: Likewise.
617 * c-common.h: Likewise.
618 * c-decl.c: Likewise.
619 * c-opts.c: Likewise.
620 * c-pretty-print.c: Likewise.
621 * caller-save.c: Likewise.
622 * cfghooks.h: Likewise.
623 * cgraph.c: Likewise.
624 * collect2.c: Likewise.
625 * cppfiles.c: Likewise.
626 * cpplib.h: Likewise.
627 * dwarf2out.c: Likewise.
628 * dwarfout.c: Likewise.
629 * emit-rtl.c: Likewise.
630 * final.c: Likewise.
631 * function.c: Likewise.
632 * gcov.c: Likewise.
633 * gcse.c: Likewise.
634 * genemit.c: Likewise.
635 * ggc.h: Likewise.
636 * haifa-sched.c: Likewise.
637 * ifcvt.c: Likewise.
638 * libgcc2.h: Likewise.
639 * loop.c: Likewise.
640 * predict.h: Likewise.
641 * unwind-libunwind.c: Likewise.
642 * varasm.c: Likewise.
643
6442003-12-21 Kazu Hirata <kazu@cs.umass.edu>
645
646 * config/mn10300/mn10300.c (mn10300_encode_section_info): Fix
647 a warning.
648
6492003-12-21 Kazu Hirata <kazu@cs.umass.edu>
650
651 * config/arm/arm.c: Convert to ISO-C.
652 * config/avr/avr.h: Likewise.
653 * config/fr30/fr30.c: Likewise.
654 * config/ip2k/ip2k.c: Likewise.
655 * config/mn10300/mn10300.c: Likewise.
656
6572003-12-20 Andrew Pinski <pinskia@gcc.gnu.org>
658 Matt Thomas <matt@3am-software.com>
659
660 PR target/12749
661 * config/i386/i386.c (print_operand): Print only the first
662 8 characters of the float in hex.
663
6642003-12-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
665
666 * pa.h (TRAMPOLINE_TEMPLATE): Shorten sequence when generating PA
667 2.0 code.
668 (TRAMPOLINE_CODE_SIZE, MIN_CACHELINE_SIZE): New defines.
669 (INITIALIZE_TRAMPOLINE): Rework to pass line length, and aligned start
670 and end addresses to I and D cache instruction patterns.
671 * pa.md (anddi3, iordi3): Change predicates of operands 1 and 2 to
672 and_operand and ior_operand, respectively. When generating 64-bit
673 code, only one operand needs to be a register operand.
674 (xordi3): Change predicates of operands 1 and 2 to register_operand.
675 (one_cmpldi2): Change predicate of operand 1 to register_operand.
676 (dcacheflush, icacheflush): Revise to flush an arbitrary number of
677 cache lines.
678
6792003-12-20 Josef Zlomek <zlomekj@suse.cz>
680
681 PR optimization/13430, PR optimization/12322
682 * bb-reorder.c (copy_bb_p): Do not allow block with many successors to
683 be copied.
684 (find_traces_1_round): Surround check for fake edges by
685 #ifdef ENABLE_CHECKING #endif.
686
6872003-12-20 Eric Botcazou <ebotcazou@libertysurf.fr>
688
689 PR other/7956
690 * genmultilib: New variable disable_multilib. Set it to 'yes'
691 if enable_multilib was set to 'no'. Emit DISABLE_MULTILIB
692 if disable_multilib was set to 'yes'.
693 * gcc.c: Include multilib.h before tm.h.
694 * config/sparc/sol2-bi.h (LINK_ARCH_SPEC): Emit an error
695 message for multiarch options if DISABLE_MULTILIB is set.
696 * config/sparc/sol2-gld-bi.h (LINK_ARCH_SPEC): Likewise.
697
6982003-12-20 Eric Botcazou <ebotcazou@libertysurf.fr>
699
700 PR c/12085
701 * c-typeck.c (build_function_call): Issue a warning if a
702 function is called through an incompatible prototype and
703 replace the call by a trap in this case.
704
7052003-12-19 James E Wilson <wilson@specifixinc.com>
706
707 * install.texi (ia64-*-linux): Document minimum libunwind version
708 number.
709
7102003-12-19 Per Bothner <per@bothner.com>
711
712 * langhooks.c (lhd_print_error_function): Fix for PR c/13110.
713 Don't do pp_newline; it causes an extra blank line.
714 * pretty-print.c (pp_base_flush): Clear pp_needs_newline.
715
7162003-12-19 Jason Merrill <jason@redhat.com>
717
718 * tree.c (get_unwidened): Decide whether to narrow a bitfield
719 reference based on TYPE_SIZE, not TYPE_PRECISION.
720
721 * stmt.c (parse_output_constraint): Warn about in-out constraint
722 that doesn't allow a register.
723 (parse_input_constraint): Warn about matching constraint that
724 doesn't allow a register.
725
7262003-12-19 James E Wilson <wilson@specifixinc.com>
727
728 * flow.c (mark_set_regs, case PARALLEL): Scan loop forwards.
729 Add case for ASM_OPERANDS.
730 * global.c (global_alloc): Set regs_ever_live for regs_asm_clobbered
731 registers.
732
7332003-12-19 Kazu Hirata <kazu@cs.umass.edu>
734
735 * expr.c (check_max_integer_computation_mode): Remove.
736 * dojump.c (do_jump): Don't use MAX_INTEGER_COMPUTATION_MODE.
737 * fold-const.c (fold): Likewise.
738 * system.h (MAX_INTEGER_COMPUTATION_MODE): Poison.
739 * doc/tm.texi (MAX_INTEGER_COMPUTATION_MODE): Remove.
740
7412003-12-19 James E Wilson <wilson@specifixinc.com>
742
743 * configure.in: Delete libunwind_has_eh_support test.
744 * configure: Regenerate.
745 * config.gcc (ia64*-*-linux*): Delete reference to t-libunwind-no-eh
746 and libunwind_has_eh_support check.
747 * config/t-libunwind-no-eh: Delete.
748
7492003-12-19 Joseph S. Myers <jsm@polyomino.org.uk>
750
751 * c-format.c (print_char_table): Allow 'I' flag on floating point
752 decimal formats.
753
7542003-12-19 Stuart Hastings <stuart@apple.com>
755
756 * gcc/config/i386/i386.c (ix86_expand_call, x86_output_mi_thunk):
757 Trivial fixes for i386.c on Darwin/x86.
758
7592003-12-19 Fariborz Jahanian <fjahanian@apple.com>
760
761 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Add code to
762 recognize macho-style lo_sum adrress patterns.
763
7642003-12-19 Kazu Hirata <kazu@cs.umass.edu>
765
766 * dwarfout.c: Remove uses of "register" specifier in
767 declarations of arguments and local variables.
768 * gensupport.c: Likewise.
769 * local-alloc.c: Likewise.
770 * regclass.c: Likewise.
771
7722003-12-19 Kelley Cook <kelleycook@wideopenwest.com>
773
774 * config.guess: Remove.
775
7762003-12-19 Jakub Jelinek <jakub@redhat.com>
777
778 * config/ia64/unwind-ia64.c (ia64_copy_rbs): New function.
779 (unw_access_gr): Only call ia64_rse_rnat_addr if addr is above
780 regstk_top.
781 (uw_frame_state_for): Handle locations inside bundles.
782 (uw_init_context_1): Initialize context->rnat.
783 Set context->regstk_top to lowest rbs address which has nat collection
784 in context->rnat.
785 (uw_install_context): Fix rnat restoring.
786 Restore ar.rsc to previous state.
787 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR,
788 MD_HANDLE_UNWABI): Handle unwinding through SA_ONSTACK frames.
789
7902003-12-19 Jakub Jelinek <jakub@redhat.com>
791
792 PR c++/13239
793 * builtins.c (expand_builtin_expect_jump): Update
794 TREE_VALUE (arglist) if unsave_expr_now langhook
795 created a new tree.
796
7972003-12-19 Richard Earnshaw <rearnsha@arm.com>
798
799 * arm.c (thumb_base_register_rtx_p): Use regno in comparison against
800 FIRST_PSEUDO_REGISTER.
801
8022003-12-18 Hartmut Penner <hpenner@de.ibm.com>
803
804 * gcc/config/rs6000/rs6000.c (USE_ALTIVEC_FOR_ARG_P): Don't check
805 for SVR4 ABI.
806
8072003-12-18 Geoffrey Keating <geoffk@apple.com>
808
809 * config/rs6000/aix.h (OS_MISSING_POWERPC64): Define.
810 (OS_MISSING_ALTIVEC): Define.
811 * config/rs6000/darwin.h (ASM_SPEC): Be generous about supplying
812 -force_cpusubtype_ALL.
813 * config/rs6000/rs6000.c (rs6000_override_options): Rearrange
814 CPU information table; now always set all CPU-specific values.
815 Also, use Altivec and powerpc64 when chip and OS supports them.
816
8172003-12-18 Geoffrey Keating <geoffk@apple.com>
818
819 * fixinc/inclhack.def (darwin_macho_dyldh): New.
820 * fixinc/fixincl.x: Regenerate.
821
8222003-12-18 Dara Hazeghi <dhazeghi@yahoo.com>
823
824 * version.c (version_string): Renumber as 3.4.0
825 * doc/include/gcc-common.texi: Likewise
826
8272003-12-18 Richard Henderson <rth@redhat.com>
828
829 * genrecog.c (print_host_wide_int): New.
830 (write_switch, write_cond): Use it.
831
8322003-12-18 Richard Henderson <rth@redhat.com>
833
834 * c-decl.c (check_bitfield_type_and_width): Remove enum special
835 case suppression of pedwarn.
836 * system.h (ENUM_BITFIELD): Use __extension__.
837 (CHAR_BITFIELD): Likewise.
838
8392003-12-18 Ulrich Weigand <uweigand@de.ibm.com>
840 Mark Dettinger <dettinge@de.ibm.com>
841
842 * config/s390/s390.md (UNSPEC_SRST): New constant.
843 ("strlendi", "strlensi"): New expanders.
844 ("*strlendi", "*strlensi"): New insns.
845
8462003-12-18 Mark Mitchell <mark@codesourcery.com>
847
848 * config/sol2.h (LINK_ARCH32_SPEC): Define in terms of ...
849 (LINK_ARCH32_SPEC_BASE): ... this new macro.
850 * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC): Define in terms of
851 ...
852 (LINK_ARCH64_SPEC_BASE): ... this new macro.
853 * config/sparc/sol2-gld-bi.h (LINK_ARCH32_SPEC): New macro.
854 (LINK_ARCH64_SPEC): Likewise.
855
8562003-12-18 Jason Merrill <jason@redhat.com>
857
858 PR middle-end/13234
859 * tree-dump.c (dequeue_and_dump): Handle 'r' and 's' code
860 classes.
861
8622003-12-18 Steven Bosscher <stevenb@suse.de>
863
864 * Makefile.in (tracer.o, bb-reorder.o): Depend on timevar.h
865 * toplev.c (rest_of_handle_reorder_blocks, rest_of_handle_tracer):
866 Don't push and pop TV_REORDER_BLOCKS timevars, do it...
867 * bb-reorder.c (reorder_basic_blocks): ...here, and...
868 * tracer.c (tracer): here.
869
8702003-12-18 Ulrich Weigand <uweigand@de.ibm.com>
871
872 * loop.c (move_movables): Handle combination of m->consec,
873 m->move_insn_first, and m->insert_temp all nonzero correctly.
874
8752003-12-18 Kazu Hirata <kazu@cs.umass.edu>
876
877 * calls.c (load_register_parameters): Don't use
878 LOAD_ARGS_REVERSED.
879 * system.h (LOAD_ARGS_REVERSED): Poison.
880 * doc/tm.texi (LOAD_ARGS_REVERSED): Remove.
881
8822003-12-17 Per Bothner <per@bothner.com>
883
884 * emit-rtl.c (set_new_first_and_last_label_num): Remove function.
885 * rtl.h (set_new_first_and_last_label_num): Remove declaration.
886
8872003-12-17 Alexandre Oliva <aoliva@redhat.com>
888
889 * config/frv/frv.c (frv_ifcvt_modify_insn): Don't leave alone
890 scratch insns of the then branch that clobber regs needed by the
891 else branch.
892
8932003-12-17 Kazu Hirata <kazu@cs.umass.edu>
894
895 * calls.c (expand_call): Update comments.
896 * system.h (PRETEND_OUTGOING_VARARGS_NAMED): Poison.
897 * targhooks.c: Do not refer to PRETEND_OUTGOING_VARARGS_NAMED.
898
8992003-12-17 James E Wilson <wilson@specifixinc.com>
900 Roger Sayle <roger@eyesopen.com>
901
902 * Makefile.in (gcse.o): Add $(TREE_H) to dependencies.
903 * gcse.c: Include tree.h.
904 (implicit_set_cond_p): New.
905 (find_implicit_sets): Call it.
906
9072003-12-17 Santiago Vila <sanvila@unex.es>
908
909 * config/kfreebsdgnu.h (TARGET_OS_CPP_BUILTINS): Rename from
910 TARET_OS_CPP_BUILTINS.
911
9122003-12-16 Kazu Hirata <kazu@cs.umass.edu>
913
914 * emit-rtl.c: Fix signed/unsigned comparison warnings.
915
9162003-12-17 Joseph S. Myers <jsm@polyomino.org.uk>
917
918 * predict.c (struct block_info_def, struct edge_info_def): Change
919 bit-fields of width 1 to unsigned int.
920
9212003-12-16 Geoffrey Keating <geoffk@apple.com>
922
923 PR 12480
924 * c-pch.c (pch_init): Improve error message when precompiled
925 header can't be written.
926
927 PR 12606
928 * c-pch.c (pch_init): Make a PCH file appear invalid while it's
929 being written.
930 (c_common_write_pch): Make it valid once it's done.
931
9322003-12-17 Ulrich Weigand <uweigand@de.ibm.com>
933
934 PR target/11992
935 * config/s390/s390.md ("*cmpmem_long_64"): Use CLCLE instruction
936 instead of CLCL.
937 ("*cmpmem_long_31"): Likewise.
938
9392003-12-17 Vladimir Makarov <vmakarov@redhat.com>
940
941 * config/ia64/ia64.c: Add more comments about insn bundling.
942
9432003-12-17 Richard Earnshaw <rearnsha@arm.com>
944
945 PR optimization/10592
946 * caller-save.c (mark_referenced_regs): Don't short-circuit a reg
947 or subreg in SET_DEST if it isn't a hard register.
948
9492003-12-17 David Edelsohn <edelsohn@gnu.org>
950
951 * collect2.c (main): Add -fno-profile-arcs -fno-test-coverage
952 -fno-branch-probabilities to arguments when compiling ctors and
953 dtors.
954
9552003-12-17 Eric Botcazou <ebotcazou@libertysurf.fr>
956
957 * config/sparc/sol2.h: Set SUPPORTS_INIT_PRIORITY to 0.
958 * config/sparc/sol2-gld.h: Set SUPPORTS_INIT_PRIORITY to 1.
959
9602003-12-17 Richard Earnshaw <rearnsha@arm.com>
961
962 * arm.c (thumb_base_register_rtx_p): Don't allow virtual registers
963 as base registers for sub-word operations.
964 (thumb_legitimate_address_p): Simplify REG+REG test.
965
9662003-12-17 Segher Boessenkool <boessen@de.ibm.com>
967
968 * opts.c (wrap_help): Fix overflow.
969
9702003-12-17 Fred Fish <fnf@redhat.com>
971
972 * configure.in: Remove code to examine linker scripts and set
973 HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES.
974 * configure, config.in: Regenerate.
975
9762003-12-16 Mark Mitchell <mark@codesourcery.com>
977
978 PR c++/12218
979 * varasm.c (initializer_constant_valid_p): Allow a conversion from
980 an integral constant to an OFFSET_TYPE.
981
9822003-12-16 Kazu Hirata <kazu@cs.umass.edu>
983
984 PR target/11012
985 * config/m32r/m32r.c (gen_compare): Call gen_addsi3 instead of
986 gen_cmp_ne_small_const_insn.
987 * config/m32r/m32r.md (cmp_ne_small_const_insn): Remove.
988
9892003-12-17 Neil Booth <neil@daikokuya.co.uk>
990 Joseph S. Myers <jsm@polyomino.org.uk>
991
992 PR c/3347
993 * c-decl.c (enum_decl_context): Remove BITFIELD.
994 (grokdeclarator): Take bit-field width as an input.
995 Perform bit-field width validation with
996 check_bitfield_type_and_width rather than waiting for
997 finish_struct.
998 (groktypename, groktypename_in_parm_context, start_decl,
999 push_parm_decl, grokfield, start_function): Update calls to
1000 grokdeclarator.
1001 (check_bitfield_type_and_width): New function.
1002 (finish_struct): Move bit-field validation to grokdeclarator
1003 and check_bitfield_type_and_width.
1004
10052003-12-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1006
1007 PR bootstrap/13386
1008 * configure.in (gcc_cv_ld_hidden): Set to yes on hppa64*-*-hpux* when
1009 using HP native linker.
1010 * configure: Rebuilt.
1011
10122003-12-16 Mark Mitchell <mark@codesourcery.com>
1013
1014 PR c++/13275
1015 * c-common.h (enum rid): Add RID_OFFSETOF.
1016 * c-parser.in (rid_to_yy): Ignore RID_OFFSETOF.
1017 * ginclude/stddef.h (offsetof): Reimplement for C++, using
1018 __offsetof__.
1019 * doc/extend.texi: Document __offsetof__.
1020
10212003-12-16 Stan Cox <scox@redhat.com>
1022
1023 * config/iq2000/iq2000.h: Formatting.
1024 (MAX_INT_TYPE_SIZE, MAX_INT_TYPE_SIZE, CONST_COSTS, RTX_COSTS)
1025 (ADDRESS_COST, ASM_OUTPUT_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL)
1026 (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR, SLOW_ZERO_EXTEND): Remove
1027 * config/iq2000/iq2000.c: Formatting.
1028 (iq2000_rtx_costs): New.
1029
10302003-12-16 Richard Earnshaw <rearnsha@arm.com>
1031
1032 * arm.md (addsi3_carryin_shift): Add missing register constraints.
1033
10342003-12-16 Loren James Rittle <ljrittle@acm.org>
1035
1036 * testsuite/g++.old-deja/g++.eh/badalloc1.C: Tweak to
1037 pass with -pthread on FreeBSD systems.
1038
10392003-12-16 Richard Sandiford <rsandifo@redhat.com>
1040
1041 * config/mips/mips.c (mips_file_end): Only write symbols that have
1042 been referenced at some point.
1043
10442003-12-16 Richard Sandiford <rsandifo@redhat.com>
1045
1046 * config/mips/mips.c: Include langhooks.h
1047 (mips_build_builtin_va_list): Use lang_hooks.types.make_type.
1048
10492003-12-16 Eric Botcazou <ebotcazou@libertysurf.fr>
1050
1051 PR optimization/13313
1052 * combine.c (make_extraction) [REG]: Do not use
1053 gen_lowpart_for_combine when POS is non-zero.
1054
10552003-12-16 Hartmut Penner <hpenner@de.ibm.com>
1056
1057 * altivec.h (vec_cmple, vec_all_numeric): Fix typo.
1058 * testsuite/gcc.dg/altivec-10.c: Test for above.
1059
10602003-12-15 David O'Brien <obrien@FreeBSD.org>
1061
1062 * Makefile.in (CPPFLAGS): Initialize from configure.
1063
10642003-12-15 Roger Sayle <roger@eyesopen.com>
1065
1066 PR middle-end/13400
1067 * ifcvt.c (noce_process_if_block): Disable unconditional write
1068 optimizations if we could introduce a store to trapping memory
1069 that wasn't present previously.
1070
10712003-12-15 Kazu Hirata <kazu@cs.umass.edu>
1072
1073 * system.h (DEFAULT_CALLER_SAVES): Poison.
1074 * toplev.c (flag_caller_saves): Always initialize with 0.
1075 * doc/tm.texi (DEFAULT_CALLER_SAVES): Remove.
1076
10772003-12-15 Kazu Hirata <kazu@cs.umass.edu>
1078
1079 * flow.c (EXIT_IGNORE_STACK): Move to ...
1080 * defaults.h (EXIT_IGNORE_STACK): ... here.
1081 * dojump.c (clear_pending_stack_adjust): Don't use #ifdef
1082 EXIT_IGNORE_STACK.
1083 * function.c (expand_function_end): Likewise.
1084 * global.c (global_alloc): Likewise.
1085 * ra.c (init_ra): Likewise.
1086 * reload1.c (init_elim_table): Likewise.
1087 * reorg.c (fill_simple_delay_slots): Likewise.
1088 * resource.c (init_resource_info): Likewise.
1089 * doc/tm.texi (EXIT_IGNORE_STACK): Document that the default
1090 is 0.
1091
10922003-12-15 J"orn Rennecke <joern.rennecke@superh.com>
1093
1094 * reload.c (reg_overlap_mentioned_for_reload_p):
1095 When looking at a PLUS in X, avoid spuriously returning nonzero
1096 when IN is a REG or another simple PLUS, or a MEM containing one.
1097
1098 * loop.c (loop_invariant_p): Amend comment about where new registers
1099 might come from.
1100
11012003-12-15 Andreas Jaeger <aj@suse.de>
1102
1103 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Remove
1104 handling of obsolete language CHILL.
1105
11062003-12-15 Waldek Hebisch <hebisch@math.uni.wroc.pl>
1107
1108 * tree.c (initializer_zerop): Add test for empty set.
1109 * integrate.c (function_cannot_inline_p): Forbid inlining
1110 functions calling `longjmp'.
1111
11122003-12-15 Nathan Sidwell <nathan@codesourcery.com>
1113
1114 PR c++/11773
1115 * doc/gcov.texi (Gcov and Optimization): Document inline function
1116 behaviour. Fix some file suffixes.
1117
11182003-12-14 David O'Brien <obrien@FreeBSD.org>
1119
1120 * config/i386/i386.h (__amd64, __amd64__): Remove duplicates.
1121
11222003-12-14 Mark Mitchell <mark@codesourcery.com>
1123
1124 * c-common.h (c_parse_error): Declare it.
1125 * c-common.c (c_parse_error): New function.
1126 * c-parse.y (yyerror): Use it.
1127
11282003-12-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1129
1130 PR target/13054
1131 * pa-protos.h (indexed_memory_operand, borx_reg_operand,
1132 move_dest_operand, move_src_operand): New protypes.
1133 (basereg_operand, move_operand, reg_or_nonsymb_mem_operand): Deleted.
1134 * pa.c (copy_reg_pointer, indexed_memory_operand, move_dest_operand,
1135 move_src_operand): New functions.
1136 (basereg_operand, reg_or_nonsymb_mem_operand, move_operand): Delete.
1137 (reg_or_0_or_nonsymb_mem_operand): Return false for unscaled indexed
1138 address until cse is not expected on targets with non-equivalent
1139 space registers.
1140 (hppa_legitimize_address): Canonicalize unscaled indexed addresses
1141 on targets non-equivalent space registers.
1142 (emit_move_sequence): Break out indexed addresses from destination
1143 operand. Similarly, break out unscaled indexed addresses from
1144 source operand on targets with non-equivalent space registers. Fix
1145 REG_POINTER flag when possible. Mark register pointer when creating
1146 new pointers.
1147 (print_operand): Handle unscaled index addresses.
1148 * pa.h (IS_INDEX_ADDR_P, IS_LO_SUM_DLT_ADDR_P): New macro subroutines
1149 for EXTRA_CONSTRAINT.
1150 (EXTRA_CONSTRAINT): Rework to make more readable.
1151 (MODE_OK_FOR_SCALED_INDEXING_P, MODE_OK_FOR_UNSCALED_INDEXING_P): New
1152 subroutines for GO_IF_LEGITIMATE_ADDRESS.
1153 (GO_IF_LEGITIMATE_ADDRESS): Rework using new subroutines. Allow scaled
1154 and unscaled addresses. Canonicalize unscaled indexed addresses on
1155 targets with non-equivalent space registers. Document issues in
1156 handling indexed address modes on PA-RISC.
1157 (PREDICATE_CODES): Update for new and deleted predicates.
1158 * pa.md (move_dest_operand, move_src_operand, indexed_memory_operand):
1159 Use new predicates in move patterns.
1160 Add peephole2 patterns to optimize floating point stores. Fix
1161 constrain preferencing in move patterns. Delete patterns for handling
1162 unscaled indexed memory loads. Add missing load and store with
1163 base-register modification patterns. Correct SFmode floating point
1164 store pattern. Add missing zero extension loads.
1165
11662003-12-13 Steven Bosscher <stevenb@suse.de>
1167
1168 * ggc-zone.c (struct alloc_zone): Don't pre-declare, it already
1169 comes in with ggc.h. Add a new bool field `dead'.
1170 (destroy_ggc_zone): Don't destroy a zone at once. Instead, only
1171 set the `dead' flag for the dead zone. Wrap a sanity check in
1172 ENABLE_CHECKING.
1173 (ggc_collect_1): Always mark and sweep if a zone has the `dead'
1174 flag set.
1175 (ggc_collect): Free dead zones after collecting.
1176
11772003-12-13 Jan Hubicka <jh@suse.cz>
1178
1179 * coverage.c (get_coverage_counts): Use inform instead of warning
1180 about missing profile.
1181
11822003-12-12 Steven Bosscher <stevenb@suse.de>
1183
1184 * Makefile.in (opts.o, explow.o): Depend on langhooks.h
1185
11862003-12-12 Geoffrey Keating <geoffk@apple.com>
1187
1188 * config.gcc <i[34567]86-*-darwin*>: Don't use fixproto.
1189 <powerpc-*-darwin*>: Likewise.
1190
11912003-12-12 Jakub Jelinek <jakub@redhat.com>
1192
1193 * config/ia64/linux.h (IA64_GATE_AREA_END): Increase by 64K.
1194 (MD_FALLBACK_FRAME_STATE_FOR): Set fpsr_loc, br_loc[6] and
1195 br_loc[7]. Update comment.
1196 (MD_HANDLE_UNWABI): Define.
1197 * config/ia64/unwind-ia64.c (struct unw_state_record): Add
1198 unwabi field.
1199 (struct _Unwind_Context): Increase br_loc array size to 8 entries.
1200 (desc_abi): Set unwabi.
1201 (uw_update_reg_address): Allow br up to 7.
1202 (uw_update_context): Invoke MD_HANDLE_UNWABI if defined.
1203 (uw_install_context): Load b1..b5 from correct locations.
1204 Fix insn loading ar.fpsr.
1205 * doc/tm.texi: Document MD_HANDLE_UNWABI.
1206
12072003-12-12 Roger Sayle <roger@eyesopen.com>
1208
1209 PR optimization/13037
1210 * loop.c (update_giv_derive): Ignore redundant sets of a biv when
1211 calculating how to derive a giv from a biv.
1212
12132003-12-12 Neil Booth <neil@daikokuya.co.uk>
1214
1215 PR preprocessor/12935 preprocessor/12952 preprocessor/13046
1216 * cpplib.c (prepare_directive_trad): Clear skipping only in
1217 #if and #elif directives.
1218 (do_undef): Call the handler even if the identifier is not a macro.
1219 * cpptrad.c (scan_parameters): Emit an error message.
1220 (_cpp_create_trad_definition): Remember the params list even on
1221 failure.
1222
12232003-12-11 Zack Weinberg <zack@codesourcery.com>
1224
1225 * arm.c (ARM_ADDRESS_COST, THUMB_ADDRESS_COST): Convert macros
1226 to inline functions: arm_arm_address_cost, arm_thumb_address_cost
1227 respectively.
1228 (arm_address_cost): Use 'em.
1229
12302003-12-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1231
1232 * config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Define
1233 __STDC_VERSION__ to ISO C94 for C++.
1234
1235 * fixinc/inclhack.def (alpha_wchar): New fix.
1236 * fixinc/fixincl.x: Regenerate.
1237 * fixinc/tests/base/wchar.h: New file.
1238
12392003-12-11 David Mosberger <davidm@hpl.hp.com>
1240
1241 * unwind-libunwind.c (_Unwind_SetGR): Clear the NaT bit as
1242 required by C++ ABI for Itanium.
1243 * config/t-libunwind (LIB2ADDEH): Remove unwind-libunwind.c.
1244 * config/t-libunwind-no-eh: New file.
1245 * configure.in: Check libunwind for _Unwind_Resume() and if it's
1246 present, set libunwind_has_eh_support to "yes".
1247 * configure: Regenerate.
1248 * config.gcc (ia64*-*-linux*): If $libunwind_has_eh_support is
1249 set to yes, use t-libunwind, otherwise, use t-libunwind-no-eh.
1250
12512003-12-11 Richard Sandiford <rsandifo@redhat.com>
1252
1253 * config/mips/mips.c (mips_global_pointer): Force functions with
1254 a nonlocal goto to set up $gp.
1255
12562003-12-11 James E Wilson <wilson@specifixinc.com>
1257
1258 PR target/13132
1259 * function.c (gen_mem_addressof): When no decl, explicitly clear flag
1260 bits.
1261
12622003-12-12 Nick Clifton <nickc@redhat.com>
1263
1264 * config/m32r/m32r.c: Convert to ISO-C
1265
12662003-12-12 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1267
1268 * doc/invoke.texi: Replace Mitsubishi with Renesas.
1269 * config/m32r/m32r.h: Ditto.
1270 * config/m32r/m32r.c: Ditto.
1271 * config/m32r/m32r.md: Ditto.
1272
12732003-12-11 Steven Bosscher <steven@gcc.gnu.org>
1274
1275 * basic-block.h (BLOCK_HEAD, BLOCK_END): Remove.
1276 (BLOCK_HEAD_TREE, BLOCK_END_TREE): Remove.
1277 (basic_block_def): Rename `head' to `head_' and `end' to `end_'.
1278 (BB_HEAD, BB_END): New accessor macros for the `head_' and `end_'
1279 fields of a basic block.
1280 * bb-reorder.c, bt-load.c, caller-save.c, cfg.c, cfganal.c,
1281 cfgbuild.c, cfgcleanup.c, cfglayout.c, cfgloop.c, cfgloopanal.c,
1282 cfgloopmanip.c, cfgrtl.c, combine.c, conflict.c, df.c, emit-rtl.c,
1283 final.c, flow.c, function.c, gcse.c, global.c, graph.c,
1284 haifa-sched.c, ifcvt.c, lcm.c, local-alloc.c, loop-unswitch.c,
1285 loop.c, postreload.c, predict.c, profile.c, ra-build.c, ra-debug.c,
1286 ra-rewrite.c, ra.c, recog.c, reg-stack.c, regclass.c, regmove.c,
1287 regrename.c, reload1.c, resource.c, sched-ebb.c, sched-rgn.c,
1288 sibcall.c, tracer.c, config/frv/frv.c, config/i386/i386.c,
1289 config/ia64/ia64.c: Use the BB_HEAD and BB_END macros instead of
1290 accessing the `head' and `end' fields of a basic block directly.
1291
1292 * gengtype.c: Teach about "void**" pointers and "void *" function
1293 types. Fixes earlier commit.
1294
12952003-12-10 Geoffrey Keating <geoffk@apple.com>
1296
1297 * doc/extend.texi (Vector Extensions): Document that bitwise
1298 operations also work on vectors.
1299
13002003-12-10 Richard Earnshaw <rearnsha@arm.com>
1301
1302 * arm.md: New split patterns for optimizing bitfield accesses.
1303
13042003-12-10 Steven Bosscher <stevenb@suse.de>
1305
1306 * README.Portability: Remove K+R section.
1307
1308 * gengtype-lex.l: Teach about "void**" pointers and
1309 "void*" function types.
1310
13112003-12-10 Eric Botcazou <ebotcazou@libertysurf.fr>
1312
1313 PR target/13354
1314 * config/sparc/sparc.c (sparc_output_mi_thunk): Load DELTA
1315 manually if one can do that with only one instruction.
1316
13172003-12-10 Nick Clifton <nickc@redhat.com>
1318
1319 * config.gcc (arm-linux): Include linux.h in tm_file so that
1320 LINUX_TARGET_OS_CPP_BUILTINS is defined.
1321 * config/arm/linux-elf.h (LIB_SPEC): Protect the definition.
1322
13232003-12-09 James E Wilson <wilson@specifixinc.com>
1324
1325 * rtl.def (CODE_LABEL, NOTE): Correct operand numbers in comments.
1326
13272003-12-09 Matt Austern <austern@apple.com>
1328
1329 PR c/13134
1330 * c-decl.c (duplicate_decls): Copy visibility flag when appropriate.
1331
13322003-12-09 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1333
1334 * config/m32r/m32r.h: Add support for m32r2 processor. Including
1335 a new command line option -m32r2 to select it.
1336 * config/m32r/m32r.c: Add support for the new processor variant.
1337 * config/m32r/m32r.md: Likewise.
1338 * config/m32r/t-m32r: Add m32r2 multilibs.
1339 * doc/invoke.texi: Document the new command line switch.
1340
13412003-12-08 Kazu Hirata <kazu@cs.umass.edu>
1342
1343 * defaults.h (LOCAL_REGNO): Give the default definition.
1344 * flow.c (LOCAL_REGNO): Remove.
1345 * reload1.c (LOCAL_REGNO): Likewise.
1346
13472003-12-08 Geoffrey Keating <geoffk@apple.com>
1348
1349 PR target/11848
1350 * rs6000.h (CANNOT_CHANGE_MODE_CLASS): Allow change of mode
1351 in floating-point registers between TFmode and DImode.
1352 * rs6000.c (rs6000_emit_move): Split moves early.
1353 (secondary_reload_class): Random Whitespace Change.
1354 (rs6000_split_multireg_move): Support moves involving FP registers.
1355 Emit instructions directly.
1356 * rs6000-protos.h (rs6000_split_multireg_move): Update prototype.
1357 * altivec.md: Update for changes to rs6000_split_multireg_move.
1358 * rs6000.md: Update for changes to rs6000_split_multireg_move.
1359 (movtf_internal): Support moves to/from GPRs.
1360
13612003-12-08 Stuart Hastings <stuart@apple.com>
1362
1363 * config/i386/i386.md: Typo in split of fp-valued if_then_else.
1364
13652003-12-08 James E Wilson <wilson@specifixinc.com>
1366
1367 PR target/13132
1368 * expmed.c (extract_bit_field): Only call mode_for_size for scalar
1369 integer modes.
1370
13712003-12-08 Nathanael Nerode <neroden@gcc.gnu.org>
1372
1373 * doc/install.texi: Revert change of Dec 7; gcc is still a 2.13
1374 directory.
1375
13762003-12-08 Alexandre Oliva <aoliva@redhat.com>
1377
1378 * config/frv/frv.md (subdi2): Merge with _internal insn_and_split,
1379 by using match_scratch.
1380 (negdi2): New.
1381
13822003-12-08 Jason Merrill <jason@redhat.com>
1383 Daniel Berlin <dberlin@dberlin.org>
1384
1385 PR debug/11114
1386 Support namespaces in DWARF 2 output.
1387 * dwarf2out.c (gen_namespace_die): New function.
1388 (force_namespace_die, setup_namespace_context): New fns.
1389 (declare_in_namespace): New fn.
1390 (gen_decl_die): Call declare_in_namespace. Handle namespaces.
1391 (dwarf2out_decl): Handle namespaces.
1392 (scope_die_for): Pass through a namespace scope.
1393 (class_scope_p): Rename to class_or_namespace_scope_p.
1394 (gen_subprogram_die, gen_variable_die): Adjust.
1395 (gen_struct_or_union_die): Always emit a declaration
1396 if context_die is a namespace.
1397
13982003-12-08 Jan Hubicka <jh@suse.cz>
1399
1400 * unwind-pe.h (read_uleb128): Fix handling of large values
1401 (read_sleb128): Fix handling of large values
1402
14032003-12-08 Andrew Pinski <pinskia@physics.uc.edu>
1404
1405 PR middle-end/10060
1406 * emit-rtl.c (copy_rtx_if_shared): Split out into ...
1407 (copy_rtx_if_shared_1): here and optimize the last one
1408 in the sequence into tail-recursion.
1409 (reset_used_flags): Optimize the last one
1410 in the sequence into tail-recursion.
1411
14122003-12-08 Richard Earnshaw <rearnsha@arm.com>
1413
1414 * arm.md: New split to transform ((X << y) - 1) into ~(~(X-1) << y)
1415 for constant X.
1416
14172003-12-08 Richard Sandiford <rsandifo@redhat.com>
1418
1419 * calls.c (expand_call): Don't try using tail or recursive calls
1420 after the function body has been expanded.
1421
14222003-12-08 Jan Hubicka <jh@suse.cz>
1423
1424 * i386.md (cmpstr expander): Obey TARGET_INLINE_ALL_STRINGOPS
1425
14262003-12-08 Arnaud Charlet <charlet@act-europe.fr>
1427
1428 PR ada/13324, PR ada/12614
1429 * doc/install.texi: Update requirements for building Ada.
1430
14312003-12-07 David Edelsohn <edelsohn@gnu.org>
1432 Graham Reed <greed@pobox.com>
1433
1434 * collect2.c (GCC_OK_SYMBOL): Add support for AIX C_WEAKEXT.
1435 (GCC_UNDEF_SYMBOL): Same.
1436
14372003-12-07 Kazu Hirata <kazu@cs.umass.edu>
1438
1439 * final.c (final_scan_insn): Don't use FINAL_PRESCAN_LABEL.
1440 * system.h (FINAL_PRESCAN_LABEL): Poison.
1441 * doc/tm.texi (FINAL_PRESCAN_LABEL): Remove.
1442
14432003-12-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1444
1445 * Makefile.in (compare): Combine toplevel and $(SUBDIRS) cases.
1446
14472003-12-07 Nathanael Nerode <neroden@gcc.gnu.org>
1448
1449 * configure.in, aclocal.m4: Revert to pre-2.5x conversion status.
1450 * configure: Regenerate with autoconf 2.13.
1451
1452 * configure.in: Replace AC_INIT, AC_OUTPUT, AC_CANONICAL_SYSTEM
1453 with modern equivalents.
1454 * configure: Regenerate.
1455
1456 * configure.in: Replace gcc_AC_CHECK_TYPE with AC_CHECK_TYPE.
1457 * aclocal.m4 (gcc_AC_CHECK_TYPE): Remove.
1458 * configure: Regenerate.
1459
1460 * configure: Regenerate with (preferred) autoconf 2.57.
1461 * doc/install.texi: Note that 'gcc' is now a 2.57 directory.
1462
14632003-12-07 Eric Botcazou <ebotcazou@libertysurf.fr>
1464
1465 PR optimization/12965
1466 * caller-save.c (save_call_clobbered_regs): Do not save/restore
1467 registers around no-return calls.
1468
14692003-12-07 Nathanael Nerode <neroden@gcc.gnu.org>
1470
1471 * configure.in: Make minimum necessary changes for autoconf 2.5x.
1472 * aclocal.m4: Make minimum necessary changes for autoconf 2.5x.
1473 * configure: Regenerate with autoconf 2.58.
1474
14752003-12-07 Eric Botcazou <ebotcazou@libertysurf.fr>
1476
1477 PR optimization/13318
1478 * loop.c (express_from): Protect integer division from overflow.
1479
14802003-12-07 Eric Botcazou <ebotcazou@libertysurf.fr>
1481
1482 PR optimization/13060
1483 * function.c (fixup_var_refs_1) [SUBREG]: Recognize even if a
1484 replacement already exists. Fix again the whole insn if that fails.
1485
14862003-12-06 Andrew Pinski <pinskia@physics.uc.edu>
1487
1488 * config/rs6000/rs6000.c (macho_branch_islands): Use
1489 HOST_WIDE_INT_PRINT_UNSIGNED.
1490
14912003-12-06 Richard Sandiford <rsandifo@redhat.com>
1492
1493 * varasm.c (incorporeal_function_p): New.
1494 (assemble_external): Use it as a filter.
1495 * config/mips/mips.c (mips_output_external): Don't check for builtin
1496 functions here.
1497
14982003-12-06 Richard Earnshaw <reanrsha@arm.com>
1499
1500 * arm.md (IOR (COMPARISON) (AND)): New define_splits.
1501
15022003-12-06 Kelley Cook <kcook@gcc.gnu.org>
1503
1504 * Makefile.in (program_transform_cross_name): Delete.
1505 (GCC_CROSS_NAME, CPP_CROSS_NAME): Delete.
1506 (PROTOIZE_CROSS_NAME, UNPROTOIZE_CROSS_NAME): Delete.
1507 (AR_FOR_TARGET, RANLIB_FOR_TARGET, NM_FOR_TARGET): Adjust for above.
1508 (install_cpp, install_driver, install-man, uninstall): Likewise.
1509
15102003-12-06 Alan Modra <amodra@bigpond.net.au>
1511
1512 PR 13169
1513 * basic-block.h (PROP_ASM_SCAN): Define.
1514 * final.c (regs_asm_clobbered): New array.
1515 * regs.h (regs_asm_clobbered): Declare.
1516 * flow.c (life_analysis): Init it.
1517 (mark_set_regs): Set PROP_ASM_SCAN for asms.
1518 (mark_set_1): Set regs_asm_clobbered.
1519 * global.c (global_alloc): Don't set eliminable_regset when
1520 regs_asm_clobbered.
1521
15222003-12-05 Mark Mitchell <mark@codesourcery.com>
1523
1524 * config/ia64/ia64.h (MUST_PASS_IN_STACK): Define.
1525
1526 PR c++/13314
1527 * emit-rtl.c (set_mem_attributes_minus_bitpos): Robustify.
1528
15292003-12-05 Andrew Pinski <pinskia@physics.uc.edu>
1530
1531 PR driver/13211
1532 * gcc.c (execute) Increment execution_count when returning
1533 early because verbose_only_flag is true.
1534
15352003-12-05 Per Bothner <pbothner@apple.com>
1536
1537 * cppfiles.c (file_hash_hash): New static function.
1538 (hash_string_eq): Renamed static function to file_hash_eq.
1539 (_cpp_init_files): Create file_hash table with above callbacks.
1540 (cpp_included): Must use htab_find_with_hash insead of htab_find.
1541 (_cpp_find_find, make_cpp_dir): Must use htab_find_slot_with_hash.
1542
15432003-12-05 Per Bothner <pbothner@apple.com>
1544
1545 * line-map.h (source_location): New typedef.
1546 (fileline): Redefined as source_location.
1547 (struct line_map, linemap_add, linemap_lookup): Replace filefile
1548 by source_location.
1549 * line-map.c (linemap_add, linemap_lookup): Use source_location.
1550
15512003-12-05 Richard Henderson <rth@redhat.com>
1552
1553 * config/alpha/alpha.c (alpha_build_builtin_va_list): Add dummy
1554 field to suppress -Wpadded warnings.
1555
15562003-12-05 Stuart Hastings <stuart@apple.com>
1557
1558 * config/rs6000/rs6000.md: Correct macro test of TARGET_MACHO.
1559
15602003-12-05 Stuart Menefy <stuart.menefy@st.com>
1561 J"orn Rennecke <joern.rennecke@superh.com>
1562
1563 PR target/13302
1564 * sh.c (sh_build_builtin_va_list): Use (*lang_hooks.types.make_type).
1565
15662003-12-05 Roger Sayle <roger@eyesopen.com>
1567
1568 * dojump.c (do_jump): If the expression being compared against
1569 zero, is the subreg of a promoted variable, perform the comparison
1570 in the promoted mode.
1571 * simplify-rtx.c (simplify_unary_operation): Optimize sign and
1572 zero-extensions of subregs of promoted variables where the
1573 extension is identical to that used to promote the variable.
1574
15752003-12-05 Hans-Peter Nilsson <hp@axis.com>
1576
1577 PR target/13256
1578 * resource.h (enum mark_resource_type): Remove member MARK_DEST.
1579 The only user changed as follows:
1580 * resource.c (mark_set_resources) <case SET>: Always recurse for
1581 SET_SRC (x).
1582 <case SIGN_EXTRACT, case ZERO_EXTRACT>: Always recurse on
1583 operands.
1584 <case STRICT_LOW_PART>: Delete, deferring to default code.
1585
15862003-12-05 Waldek Hebisch <hebisch@math.uni.wroc.pl>
1587
1588 * stmt.c (expand_nl_goto_receiver): Copy hard register clobbers
1589 and ASM_INPUT barrier from expand_builtin_setjmp_receiver.
1590
15912003-12-05 Richard Sandiford <rsandifo@redhat.com>
1592
1593 * config/mips/mips.c (mips_expand_call): Don't allow laziy binding
1594 for n32 & n64 abicalls.
1595
15962003-12-05 Richard Sandiford <rsandifo@redhat.com>
1597
1598 PR bootstrap/13145
1599 * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Adjust comment.
1600 * config/mips/mips.c (mips_reg_names, mips_sw_reg_names): Add $fcall.
1601 (mips_load_got): Always create a constant MEM.
1602 (mips_expand_call): Use load_callsi and load_calldi.
1603 * config/mips/mips.md (UNSPEC_LOAD_CALL, FAKE_CALL_REGNO): New consts.
1604 (load_callsi, load_calldi): New patterns.
1605
16062003-12-05 Peter Gerwinski <peter@gerwinski.de>
1607
1608 * tree.def (PLACEHOLDER_EXPR): Clarify commentary.
1609
16102003-12-05 Steven Bosscher <stevenb@suse.de>
1611
1612 * config/d30v/d30v-protos.h , config/d30v/d30v.c,
1613 config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
1614 config/fr30/fr30-protos.h, config/fr30/fr30.c,
1615 config/i370/i370-protos.h, config/i370/i370.c,
1616 config/i960/i960-protos.h, config/i960/i960.c,
1617 config/ip2k/ip2k-protos.h, config/ip2k/ip2k.c,
1618 config/m32r/m32r-protos.h, config/m32r/m32r.c,
1619 config/mn10300/mn10300-protos.h, config/mn10300/mn10300.c,
1620 config/ns32k/ns32k-protos.h, config/ns32k/ns32k.c:
1621 Convert to ISO C90 function declarations and definitions.
1622
16232003-12-05 Eric Botcazou <ebotcazou@libertysurf.fr>
1624
1625 * doc/extend.texi (Constructing Calls): Add warning about
1626 the limitations of the functions.
1627
16282003-12-05 Eric Botcazou <ebotcazou@libertysurf.fr>
1629
1630 PR middle-end/11151
1631 * function.h (struct function): New field 'x_naked_return_label'.
1632 * function.c (free_after_compilation): Set it to NULL.
1633 (expand_function_end): Emit 'naked_return_label' if it exists.
1634 * rtl.h (expand_naked_return): Declare.
1635 * stmt.c (expand_naked_return): New function to generate a
1636 jump to 'naked_return_label'.
1637 * builtins.c (expand_builtin_return): Call expand_naked_return
1638 instead of expand_null_return.
1639 * config/sparc/sparc.md (untyped_return): Likewise.
1640
16412003-12-04 Andrew Pinski <pinskia@physics.uc.edu>
1642
1643 PR target/11322
1644 * config/sh/netbsd-elf.h (NO_PROFILE_COUNTERS): Define.
1645
1646 PR target/12467
1647 * config/rs6000/altivec.md (altivec_vmsummbm): Fix typo.
1648
16492003-12-04 Stuart Hastings <stuart@apple.com>
1650
1651 * rs6000.c (output_call, macho_branch_islands,
1652 add_compiler_branch_island, no_previous_def, get_previous_label)
1653 Revisions of xx_stub functions for branch islands,
1654 add -fPIC support for Darwin.
1655 * rs6000-protos.h (output_call) Prototype.
1656 * rs6000.md Use output_call.
1657 * invoke.texi Explain Darwin semantics of -longcall.
1658 * testsuite/gcc.dg/darwin-abi-1.c Revise testcase for -longcall/jbsr.
1659
16602003-12-04 Richard Henderson <rth@redhat.com>
1661
1662 * config/i386/i386.md (addqi3_carry): Use q not r constraints.
1663 (subqi3_carry): Likewise.
1664
16652003-12-04 J"orn Rennecke <joern.rennecke@superh.com>
1666
1667 PR optimization/13260
1668 * sh-protos.h (sh_expand_t_scc): Declare.
1669 * sh.h (PREDICATE_CODES): Add cmpsi_operand.
1670 * sh.c (cmpsi_operand, sh_expand_t_scc): New functions.
1671 * sh.md (cmpsi): Use cmpsi_operand. If T_REG is compared to
1672 something that is not a CONST_INT, copy it into a pseudo register.
1673 (subc): Fix description of new T value.
1674 (slt, sgt, sge, sgtu): Don't clobber T after rtl generation is over.
1675 (sltu, sleu, sgeu): Likewise.
1676 (seq, sne): Likewise. Use sh_expand_t_scc.
1677
16782003-12-04 Nathanael Nerode <neroden@gcc.gnu.org>
1679
1680 * configure.in: Generalize the CONFIG_HEADERS pattern under which
1681 we stamp cstamp-h.
1682 * configure: Regenerate.
1683
1684 * configure.in: Pull AC_CHECK_HEADER call out of shell if statement
1685 to avoid trouble when updating to autoconf 2.5x.
1686 * configure: Regenerate (with autoconf 2.13 still).
1687
16882003-12-04 J"orn Rennecke <joern.rennecke@superh.com>
1689
1690 * sh.md (truncdiqi2): Use andi opcode for immediate.
1691 (reload_outdf+1,reload_outdf+2): Remove constraints.
1692 (movv16sf_i): Fxi multiplier for SUBREG_BYTE.
1693 (movv8qi_i+2): Zero-extend low byte before adding it to high byte.
1694 (fipr, ftrv): Add .s suffix to opcode.
1695
16962003-12-04 Richard Sandiford <rsandifo@redhat.com>
1697
1698 PR target/13186
1699
1700 Revert all of the following patch, except the addition of
1701 hook_bool_machine_mode_true:
1702
1703 2003-11-02 Richard Sandiford <rsandifo@redhat.com>
1704
1705 * Makefile.in (targhooks.o, reload.o): Update dependencies.
1706 (GTFILES): Add targhooks.c.
1707 (gt-targhooks.h): New rule; depend on s-gtype.
1708 * target.h (direct_pool_load_p): New hook.
1709 * target-def.h (TARGET_DIRECT_POOL_LOAD_P): New macro.
1710 (TARGET_INITIALIZER): Include it.
1711 * targhooks.h (default_direct_pool_load_p): Declare.
1712 (hook_bool_machine_mode_true): Declare.
1713 * targhooks.c: Include insn-config.h, recog.h, ggc.h and
1714 gt-targhooks.h.
1715 (pool_symbol): New variable.
1716 (default_direct_pool_load_p): New function.
1717 (hook_bool_machine_mode_true): New function.
1718 * reload.c: Include target.h.
1719 (find_reloads): If an alternative will force a constant into memory,
1720 count an extra reload if constant pool symbols are not valid
1721 addresses. If an alternative uses memory to move values between
1722 registers, count the move as two reloads rather than one.
1723 * config/s390/s390.c (TARGET_DIRECT_POOL_LOAD_P): Define.
1724 * doc/tm.texi (TARGET_DIRECT_POOL_LOAD_P): Document.
1725
17262003-12-03 Mark Mitchell <mark@codesourcery.com>
1727
1728 * config/ia64/hpux.h (TARGET_HAVE_TLS): Define it to false.
1729 * config/ia64/ia64.h (TARGET_HAVE_TLS): Define it to true if
1730 HAVE_AS_TLS is true.
1731 * config/ia64/ia64.c (TARGET_HAVE_TLS): Do not define it.
1732
17332003-12-03 James E Wilson <wilson@specifixinc.com>
1734
1735 * gcc.c (init_spec): Pass -lunwind to init_gcc_specs in eh_name.
1736
1737 * gcc-page.c (extra_order_size_tab): Correct comment.
1738
17392003-12-03 Kazu Hirata <kazu@cs.umass.edu>
1740
1741 * config/h8300/h8300.c (push): Call gen_push_h8300hs_advanced
1742 instead of gen_push_h8300hs.
1743 (pop): Call gen_pop_h8300hs_advanced instead of
1744 gen_pop_h8300hs.
1745 * config/h8300/h8300.h (TRAMPOLINE_SIZE): Use Pmode.
1746 * config/h8300/h8300.md (*tablejump_h8300hs_advanced):
1747 Tighten the predicate.
1748 (*tablejump_h8300hs_normal): Tighten the predicate.
1749 (push_h8300hs): Change to
1750 push_h8300hs_advanced.
1751 (pop_h8300hs): Change to pop_h8300hs_advanced.
1752
17532003-12-03 Eric Christopher <echristo@redhat.com>
1754
1755 * rtl.c: Fix typo.
1756 * config/mips/mips.h: Ditto. Fix formatting.
1757
17582003-12-04 Ben Elliston <bje@wasabisystems.com>
1759
1760 * future.options: Remove. Move to gnu.org web pages.
1761
17622003-12-03 Eric Christopher <echristo@redhat.com>
1763
1764 * c-parse.in (c_in_iteration_stmt, c_in_case_stmt): Move
1765 from here...
1766 * c-tree.h: to here.
1767
17682003-12-03 Jan Hubicka <jh@suse.cz>
1769
1770 PR optimization/12324
1771 * toplev.c (rest_of_decl_compilation): Do not deffer when compiling
1772 in unit-at-a-time mode.
1773
17742003-12-03 Jakub Jelinek <jakub@redhat.com>
1775
1776 * expr.c (store_constructor): Only set RTX_UNCHANGING_P for
1777 read-only field if cleared is 0.
1778
17792003-12-03 Nathanael Nerode <neroden@gcc.gnu.org>
1780
1781 * config.gcc: Mark obsolete targets for GCC 3.4.
1782
17832003-12-03 Zack Weinberg <zack@codesourcery.com>
1784
1785 * aclocal.m4 (AM_ICONV): Add explicit check for iconv.h.
1786 * config.in, configure.in: Regenerate.
1787 * cpphash.h: Check both HAVE_ICONV and HAVE_ICONV_H before
1788 including iconv.h.
1789
17902003-12-03 Alan Modra <amodra@bigpond.net.au>
1791
1792 PR target/11229
1793 * cse.c (cse_insn): Set classp using src_const_elt if
1794 src_eqv_elt is NULL.
1795
17962003-12-03 Richard Earnshaw <rearnsha@arm.com>
1797
1798 * gcse.c (reg_clear_last_set): New function.
1799 (reg_set_info): If data is non-null, treat it as an sbitmap of
1800 registers, set the bit for the register being set.
1801 (compute_store_table): Allocate last_set_in with xcalloc. Do not
1802 memset this array on each iteration. Pass reg_set_in_block[bb->index]
1803 to note_stores while computing last_set_in instead of scanning
1804 last_set_in after the first pass through the insns.
1805 Clear last_set_in using reg_clear_last_set instead of explicitly
1806 rescanning after each insn. If checking is enabled, assert that
1807 last_set_in is completely zeroed after each bb has been processed.
1808
18092003-12-02 Geoffrey Keating <geoffk@geoffk.org>
1810
1811 * df.c (df_uses_record) <MEM>: The argument of a MEM is read-only,
1812 never read-write.
1813 <REG>: Delete incorrect comment.
1814 <SET>: Remove 'use_flags' variable.
1815
18162003-12-03 David Edelsohn <edelsohn@gnu.org>
1817
1818 * function.c (assign_parms): Make sure parm PARALLEL combined
1819 in reg is composed of more than one object and the mode really
1820 produces a reg.
1821
18222003-12-03 Jan Hubicka <jh@suse.cz>
1823
1824 * i386.c (classify_argument): Make it 64bit clean.
1825
18262003-12-02 Richard Sandiford <rsandifo@redhat.com>
1827
1828 * config/mips/mips.c (mips_output_external): Replace checks for
1829 specific builtin-in functions with a check for DECL_BUILTIN_IN.
1830
18312003-12-02 Richard Henderson <rth@redhat.com>
1832
1833 * rtl.h (PUT_CODE, PUT_MODE): Remove ENUM_BITFIELD cast.
1834 * tree.h (TREE_SET_CODE): Likewise.
1835 * recog.h (struct insn_operand_data): Move const after ENUM_BITFIELD.
1836
18372003-12-02 Ben Elliston <bje@wasabisystems.com>
1838
1839 * dbxstclass.h: Rename from this ..
1840 * xcoff.h: .. to this.
1841 * xcoffout.c: Include xcoff.h.
1842
18432003-12-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1844
1845 * Makefile.in (GCC_CFLAGS): Add -Wold-style-definition.
1846
18472003-12-01 James Lemke <jim@wasabisystems.com>
1848
1849 * config/arm/arm.c (arm_rtx_costs): Improve for xscale multiply.
1850
18512003-12-01 Roger Sayle <roger@eyesopen.com>
1852
1853 PR optimization/11634
1854 * recog.c (split_insn): Factor test of INSN_P and handling of
1855 set_noop_p out of here into the two callers.
1856 (split_all_insns): Add INSN_P test and set_noop_p handling here.
1857 If deleting a no-op set after reload that has a REG_UNUSED note,
1858 mark the basic block as changed and recalculate life information.
1859 (split_all_insns_noflow): Add INSN_P test and set_noop_p handling
1860 here.
1861
18622003-12-01 Roger Sayle <roger@eyesopen.com>
1863
1864 PR optimization/12322
1865 * gcse.c (struct ls_expr): Change type of hash_index from int to
1866 unsigned int.
1867 (hash_expr): Document hash_table_size parameter and wrap long line.
1868 (ldst_entry): Calculate expression's hash_index and record in ptr.
1869 (trim_ld_motion_mems): Use hash_index to search a single bucket
1870 instead of scanning the entire hash_table. Remove the "del" local
1871 variable and use the equivalent "expr == 0" instead. Change last
1872 to be a pointer to the pointer to the current element, to simplify
1873 and speed-up deleting from a linked list.
1874
18752003-12-01 James E Wilson <wilson@specifixinc.com>
1876
1877 * doc/contrib.texi: Update David Mosberger.
1878
1879 * doc/c-tree.texi (CONSTRUCTOR): Clarify element order and handling
1880 of missing fields.
1881
1882 PR target/8407
1883 * config/ia64/ia64.c (ia64_function_arg): For single-reg HFA, call
1884 gen_rtx_REG to create new reg with argument mode.
1885
18862003-12-01 Steven Bosscher <stevenb@suse.de>
1887
1888 * ggc.h (struct alloc_zone): Move forward declaration up.
1889 (new_ggc_zone): New function prototype.
1890 (destroy_ggc_zone): Ditto.
1891 * ggc-simple.c (new_ggc_zone): New function, does nothing.
1892 (destroy_ggc_zone): Ditto.
1893 * ggc-page.c (new_ggc_zone): New function, does nothing.
1894 (destroy_ggc_zone): Ditto.
1895 * ggc-zone.c (struct page_entry): Fix comment.
1896 (ggc_alloc_typed): Use a switch statement instead of ifs.
1897 (new_ggc_zone): New function to set up a new GC zone.
1898 (destroy_ggc_zone): New function to remove a GC zone.
1899 init_ggc): Use new_ggc_zone to set up the default zones.
1900 (ggc_collect): Walk a list of zones, instead of just the
1901 default zones. Report statistics using the zone name.
1902
19032003-12-01 Ulrich Weigand <uweigand@de.ibm.com>
1904
1905 * unroll.c (find_splittable_givs): Add missing extend_value_for_giv.
1906
19072003-12-01 Roger Sayle <roger@eyesopen.com>
1908
1909 PR optimization/12628
1910 * toplev.c (rest_of_handle_jump_bypass): Call reg_scan.
1911 * regclass.c (reg_scan): Include allocate_reg_info time in
1912 TV_REG_SCAN. Minor clean-ups.
1913 (reg_scan_update): Minor clean-ups.
1914
19152003-12-01 Ulrich Weigand <uweigand@de.ibm.com>
1916
1917 * config.gcc (s390x-ibm-tpf*): Add extra_parts.
1918
19192003-12-01 James E Wilson <wilson@specifixinc.com>
1920
1921 * config/ia64/ia64.h (FUNCTION_ARG_REGNO_P): Use AR_REG_FIRST not
1922 GR_ARG_FIRST.
1923
19242003-12-01 Zack Weinberg <zack@codesourcery.com>
1925
1926 * common.opt: Remove -fgnu-linker.
1927 * flags.h: Remove flag_gnu_linker.
1928 * opts.c: Don't handle OPT_fgnu_linker.
1929 * toplev.c: Don't initialize flag_gnu_linker.
1930 Remove gnu-linker entry from f_options.
1931 * config/dsp16xx/dsp16xx.h (OPTIMIZATION_OPTIONS):
1932 Don't reset flag_gnu_linker.
1933 * config/mips/mips.c (override_options): Likewise.
1934 * doc/invoke.texi: Remove all mention of -fgnu-linker.
1935
19362003-12-01 Daniel Berlin <dberlin@dberlin.org>
1937
1938 * ggc-zone.c (ggc_pch_write_object): Calculate object size using
1939 ggc_get_size (which accounts for large objects properly).
1940
19412003-12-01 Jeff Sturm <jsturm@one-point.com>
1942
1943 PR optimization/13024
1944 * toplev.c (rest_of_handle_new_regalloc): Remove rebuild_notes
1945 parameter.
1946 (rest_of_handle_old_regalloc): Likewise. Add rebuild_notes
1947 declaration. Rebuild jump labels following local_alloc if necessary.
1948 (rest_of_compilation): Remove rebuild_label_notes_after_reload
1949 declaration. Don't pass rebuild_notes parameter to
1950 rest_of_handle_new_regalloc and rest_of_handle_old_regalloc.
1951 Don't rebuild jump labels.
1952
19532003-12-01 Jeff Law <law@redhat.com>
1954
1955 * flow.c (count_or_remove_death_notes_bb): New. Extracted from
1956 count_or_remove_death_notes.
1957 (count_or_remove_death_notes): Use EXECUTE_IF_SET_IN_SBITMAP.
1958
19592003-12-01 Andreas Krebbel <krebbel1@de.ibm.com>
1960
1961 * builtins.c (expand_builtin_longjmp): Added two memory clobbers.
1962
19632003-12-01 Ulrich Weigand <uweigand@de.ibm.com>
1964
1965 * reload.c (find_reloads_address): Split addresses of type
1966 (plus (plus (reg) (reg)) (const_int)) only if one register
1967 is either a valid base register or else one of the stack
1968 frame related registers (sp/fp/ap).
1969
19702003-12-01 Steven Bosscher <stevenb@suse.de>
1971
1972 * function.c (update_epilogue_consts): Don't use PARAMS.
1973 * rtl.h (web_main): Ditto.
1974 * target.h (is_costly_dependence): Ditto
1975
19762003-12-01 Eric Botcazou <ebotcazou@libertysurf.fr>
1977
1978 PR middle-end/7847
1979 * expr.c (expand_expr) [normal_inner_ref]: When 'offset' is non-zero,
1980 do not recheck that 'op0' is a MEM. Move comment. When testing for
1981 unaligned objects, take also into account the alignment of 'op0' and
1982 'mode1' if 'op0' is a MEM.
1983
19842003-12-01 Gabriel Dos Reis <gdr@integrable-solutions.net>
1985
1986 * doc/c-tree.texi (Function Bodies): Update HANDLER documentation.
1987
19882003-12-01 Kelley Cook <kcook@gcc.gnu.org>
1989
1990 * doc/install.texi: Note that fastjar is built with automake 1.7.x
1991 and autoconf 2.57.
1992
19932003-12-01 Alan Modra <amodra@bigpond.net.au>
1994
1995 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
1996 target_flags directly rather than using TARGET_* defines.
1997
19982003-11-30 Ben Elliston <bje@wasabisystems.com>
1999
2000 * doschk.c: Remove.
2001
20022003-11-30 Richard Sandiford <rsandifo@redhat.com>
2003
2004 PR target/12727
2005 * config/mips/mips.c (mips_save_reg): Fix frame information for sdc1
2006 on 32-bit big-endian targets.
2007
20082003-11-30 Kazu Hirata <kazu@cs.umass.edu>
2009
2010 * genemit.c (register_constraints): Remove.
2011
20122003-11-30 Andreas Krebbel <krebbel1@de.ibm.com>
2013
2014 * config/s390/s390.md ("tmdi_reg", "tmsi_reg", "*movdi_64", "*movdi_31",
2015 "iordi3"): Insns now use multiple letter constraints.
2016 ("*movdi_lhi", "*movdi_lli", "*movdi_lay"): Insns deleted. They are now
2017 covered by "*movdi_64".
2018 ("*movsi_lhi", "*movsi_lli", "*movsi_lay"): Insns deleted. They are now
2019 covered by "*movsi_zarch" and "*movsi_esa".
2020 ("*movsi_zarch", "*movsi_!zarch"): New insns.
2021 ("*llgt_sisi_split", "*llgt_didi_split"): Insns deleted. Now covered
2022 by "*andsi3_zarch" and "anddi3".
2023 ("*anddi3_ni"): Insn merged with "anddi3".
2024 ("*andsi3_ni"): Insn merged with "*andsi3_zarch".
2025 ("*andsi3_zarch", "*andsi3_esa"): New insns.
2026 ("*iordi3_oi"): Insn merged with "iordi3".
2027 ("*iorsi3_oi"): Insn merged with "*iorsi3_zarch".
2028 ("*iorsi3_zarch", "*iorsi3_esa"): New insns.
2029
2030 * config/s390/s390.c (s390_single_qi, s390_single_hi): Functions
2031 merged to s390_single_part.
2032 (s390_single_part): New function.
2033 NOTE: Semantics have changed a bit. Now the value of the part must
2034 be different from the others to get a non-negative return value.
2035 (s390_extract_qi, s390_extract_hi): Functions merged to
2036 s390_extract_part.
2037 (s390_extract_part, s390_extra_constraint_str,
2038 s390_const_ok_for_constraint_p): New functions. The L constraint got a
2039 new meaning and the N constraint was added as a multiple letter
2040 constraint.
2041 (s390_extra_constraint): Function deleted.
2042 (print_operand): New output modifier 'i' and 'j' added.
2043 All uses of CONST_OK_FOR_LETTER_P were replaced by
2044 CONST_OK_FOR_CONSTRAINT_P.
2045
2046 * config/s390/s390-protos.h: Function prototypes adapted.
2047 * doc/md.texi: Documentation for new constraint letters added.
2048
20492003-11-30 Andreas Schwab <schwab@suse.de>
2050
2051 * Makefile.in ($(DESTDIR)$(infodir)/%.info): Fix missing semicolon.
2052
20532003-11-29 James E Wilson <wilson@specifixinc.com>
2054
2055 * gcc.c (init_spec): Pass -lunwind to init_gcc_specs in eh_name
2056 instead of in shared_name.
2057
2058 * final.c (final_start_function): Delete code for NON_SAVING_SETJMP.
2059 * reload1.c (reload): Re-add it here.
2060
20612003-11-30 Alan Modra <amodra@bigpond.net.au>
2062
2063 * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Don't
2064 set SECTION_WRITE on TARGET_RELOCATABLE.
2065
20662003-11-29 Kazu Hirata <kazu@cs.umass.edu>
2067
2068 * config/h8300/h8300.h (LIBCALL_VALUE): Use R0_REG.
2069
20702003-11-28 Gunther Nikl <gni@gecko.de>
2071
2072 * config/m68k/m68k.c (MOTOROLA): Move from here...
2073 * config/m68k/m68k.h (MOTOROLA): ... to here.
2074 (OUTPUT_JUMP): Use do {...} while (0).
2075 * config/m68k/m68k.md: Replace #ifdef MOTOROLA with C statements.
2076
20772003-11-28 Gunther Nikl <gni@gecko.de>
2078
2079 * config.gcc (m68020-*-elf*, m68k-*-elf*, m68010-*-netbsdelf*,
2080 m68k*-*-netbsdelf*, m68k-*-rtems*): Add tm_defines containing
2081 MOTOROLA and USE_GAS.
2082 * config/m68k/rtemself.h (MOTOROLA): Delete.
2083 * config/m68k/netbsd-elf.h (MOTOROLA, USE_GAS): Delete.
2084 * config/m68k/m68kelf.h (MOTOROLA, USE_GAS, SGS_CMP_ORDER): Delete.
2085
20862003-11-29 Kazu Hirata <kazu@cs.umass.edu>
2087
2088 * config/h8300/h8300.h (WORDS_BIG_ENDIAN): Update the comment.
2089
20902003-11-29 Kelley Cook <kcook@gcc.gnu.org>
2091
2092 * Makefile.in (install-info): Install gccinstall.info too.
2093
20942003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
2095
2096 * config/s390/s390.md ("cmpint_di"): Fix incorrect instruction lengths.
2097
20982003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
2099
2100 * config/s390/s390.md ("movhi"): Do not emit extender pattern
2101 when loading from a (MEM (ADDRESSOF ...)).
2102 ("movqi"): Likewise.
2103
21042003-11-29 Joseph S. Myers <jsm@polyomino.org.uk>
2105
2106 PR c/10333
2107 * c-parse.in (typespec_reserved_nonattr): Reject typeof on
2108 bit-fields.
2109
21102003-11-29 Richard Sandiford <rsandifo@redhat.com>
2111
2112 * stmt.c (expand_asm_operands): Check whether force_const_mem
2113 succeeded.
2114
21152003-11-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2116
2117 * config/gnu.h (HURD_TARGET_OS_CPP_BUILTINS): New.
2118 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): New.
2119
2120 * config/alpha/gnu.h, config/alpha/linux.h,
2121 config/arm/linux-elf.h, config/cris/cris.h, config/cris/linux.h,
2122 config/i370/linux.h, config/i386/gnu.h, config/i386/i386.h,
2123 config/i386/linux-aout.h, config/i386/linux.h,
2124 config/i386/linux64.h, config/ia64/linux.h, config/m68k/linux.h,
2125 config/m68k/uclinux.h, config/mips/linux.h,
2126 config/mn10300/linux.h, config/pa/pa-linux.h,
2127 config/rs6000/sysv4.h, config/s390/linux.h, config/sh/linux.h,
2128 config/sparc/linux.h, config/sparc/linux64.h,
2129 config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Use
2130 HURD_TARGET_OS_CPP_BUILTINS/LINUX_TARGET_OS_CPP_BUILTINS or ensure
2131 all necessary assertions are included.
2132
21332003-11-28 Jan Hubicka <jh@suse.cz>
2134
2135 * emit-rtl.c (set_used_flags): New.
2136 (verify_rtx_sharing, verify_rtl_sharing): New.
2137 (unshare_all_rtl_1): Rename to....
2138 (unshare_all_rtl_in_chain): ... this one; make static.
2139 (copy_rtx_if_shared): LABEL_REF chan be shared.
2140 * ifcvt.c (unshare_ifcvt_sequence): New.
2141 (noce_try_move, noce_try_store_flag, noce_try_store_flag_constants,
2142 noce_try_addcc, noce_try_addcc, noce_try_store_flag_mask,
2143 noce_try_cmove, noce_try_store_flag_mask, noce_try_minmax,
2144 noce_try_abs, noce_process_if_block, find_cond_trap
2145 * rtl.h (verify_rtl_sharing, set_used_flags, unshare_all_rtl_in_chain):
2146 Declare.
2147
21482003-11-28 Kazu Hirata <kazu@cs.umass.edu>
2149
2150 * config/h8300/h8300.md: Fix a comment typo.
2151
21522003-11-28 Kazu Hirata <kazu@cs.umass.edu>
2153
2154 * config/h8300/h8300.md (*movsf_h8300h): Change to
2155 *movsf_h8300hs.
2156 (addsi_h8300): Change to *addsi_h8300.
2157 (addsi_h8300h): Change to *addsi_h8300hs.
2158 (subsi3_h8300): Change to *subsi3_h8300.
2159 (subsi3_h8300h): Change to *subsi3_h8300hs.
2160 (neghi2_h8300h): Change to *neghi2_h8300hs.
2161 (negsi2_h8300h): Change to *negsi2_h8300hs.
2162
21632003-11-28 Kazu Hirata <kazu@cs.umass.edu>
2164
2165 * config/h8300/h8300.md (*subhi3_h8300): Remove '&' from the
2166 constraint.
2167 (*subhi3_h8300hs): Likewise.
2168
21692003-11-28 David Edelsohn <edelsohn@gnu.org>
2170
2171 * config/rs6000/rs6000.h (MASK_MFCRF): New.
2172 (TARGET_MFCRF): Test target_flags, not processor type.
2173 (TARGET_SWITCHES): Add mfcrf and no-mfcrf.
2174 Change Don't to Do not.
2175 * config/rs6000/rs6000.c (processors_target_table): Add MASK_MFCRF
2176 to power4, 970, G5.
2177
21782003-11-27 J"orn Rennecke <joern.rennecke@superh.com>
2179
2180 * cse.c (cse_set_around_loop): When changing a constant load
2181 to a register -register copy, add a REG_EQUAL note.
2182
21832003-11-27 Randolph Chung <tausq@debian.org>
2184 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2185
2186 * pa.c (hppa_profile_hook): Split gen_call_profiler into separate
2187 insns. Use the regular call expander for the call to the profiler.
2188 * pa.md (call_profiler): Delete.
2189 (load_offset_label_address): New insn to load the address of the
2190 current function for the profiler.
2191 (lcla1, lcla2): New insns to output a code label and load its address.
2192
21932003-11-27 Kazu Hirata <kazu@cs.umass.edu>
2194
2195 * final.c (final_scan_insn): Remove commented-out code.
2196
21972003-11-27 Nathanael Nerode <neroden@gcc.gnu.org>
2198
2199 * doc/install.texi: Remove ADAC reference and make accurate.
2200
22012003-11-27 Kazu Hirata <kazu@cs.umass.edu>
2202
2203 * config/h8300/h8300.h (FUNCTION_VALUE): Use R0_REG.
2204 (FUNCTION_VALUE_REGNO_P): Likewise.
2205 * config/h8300/h8300.md: Define R0_REG.
2206
22072003-11-27 Kazu Hirata <kazu@cs.umass.edu>
2208
2209 * config/h8300/h8300.c: Fix formatting.
2210 * config/h8300/h8300.md: Likewise.
2211
22122003-11-27 Kazu Hirata <kazu@cs.umass.edu>
2213
2214 * config/h8300/h8300.h (ELIMINABLE_REGS): Update a comment.
2215
22162003-11-27 Kazu Hirata <kazu@cs.umass.edu>
2217
2218 * config/h8300/h8300.md: Give names to anonymous insns.
2219
22202003-11-27 Kazu Hirata <kazu@cs.umass.edu>
2221
2222 * config/h8300/h8300.md (extendqisi2): Remove constraints.
2223
22242003-11-27 Gunther Nikl <gni@gecko.de>
2225
2226 * doc/tm.texi (SYSROOT_HEADERS_SUFFIX_SPEC): Fix typo.
2227
22282003-11-27 Eric Botcazou <ebotcazou@libertysurf.fr>
2229
2230 PR optimization/13041
2231 * final.c (frame_pointer_needed): Fix comment.
2232 * reload1.c (reload): Decrease alignment of the frame
2233 pointer if it was used for register allocation.
2234
22352003-11-27 Eric Botcazou <ebotcazou@libertysurf.fr>
2236
2237 PR target/12900
2238 * reg-stack (move_for_stack_reg): New prototype. Return
2239 whether a control flow insn was deleted.
2240 (subst_stack_regs_pat): Likewise, using the information provided
2241 by move_for_stack_reg.
2242 (subst_stack_regs): Likewise, using the information provided
2243 by subst_stack_regs_pat.
2244 (convert_regs_1): Record whether a control flow insn was deleted,
2245 using the information provided by subst_stack_regs. Purge dead
2246 edges only if a control flow insn was deleted.
2247
22482003-11-27 Eric Botcazou <ebotcazou@libertysurf.fr>
2249
2250 PR middle-end/8028
2251 PR middle-end/9890
2252 PR middle-end/11151
2253 PR middle-end/12210
2254 PR middle-end/12503
2255 PR middle-end/12692
2256 * builtins.c (expand_builtin_apply): Use virtual_outgoing_args_rtx
2257 as the base address to copy the memory arguments to.
2258
22592003-11-26 Danny Smith <dannysmith@users.sourceforge.net>
2260
2261 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Declare
2262 function aliases as functions.
2263
22642003-11-26 Nathanael Nerode <neroden@gcc.gnu.org>
2265
2266 * aclocal.m4 (gcc_AC_PROG_GNAT): Rewrite to account for removal
2267 of ADAC.
2268 * configure: Regenerate.
2269
2270 * Makefile.in: Remove references to ADAC.
2271
2272 * configure.in: Remove check for whether ${ADAC} accepts -Wno-long-long.
2273 * configure: Regenerate.
2274
22752003-11-26 Eric Botcazou <ebotcazou@libertysurf.fr>
2276 Olivier Hainque <hainque@act-europe.fr>
2277
2278 PR target/6466
2279 * config/sparc/sparc-protos.h (compute_frame_size): New prototype.
2280 (sparc_flat_compute_frame_size): Likewise.
2281 (sparc_flat_save_restore): Move prototype...
2282 * config/sparc/sparc.c (sparc_flat_save_restore): ...here.
2283 (save_regs): New prototype.
2284 (build_big_number): Likewise.
2285 (apparent_fsize): Change type to HOST_WIDE_INT.
2286 (actual_fsize): Likewise.
2287 (frame_base_offset): Likewise.
2288 (build_big_number): Add support for HOST_BITS_PER_WIDE_INT == 64.
2289 Change string descriptor to HOST_WIDE_INT_PRINT_DEC.
2290 [TARGET_ARCH64]: Use the sequence of sparc_emit_set_const64_longway
2291 to load a 64-bit constant.
2292 (sparc_nonflat_function_prologue): Change string descriptor to
2293 HOST_WIDE_INT_PRINT_DEC. Change offset type to HOST_WIDE_INT.
2294 (output_restore_regs): Change offset type to HOST_WIDE_INT.
2295 (sparc_nonflat_function_epilogue): Change string descriptor to
2296 HOST_WIDE_INT_PRINT_DEC. Use build_big_number.
2297 (output_sibcall): Change size type to HOST_WIDE_INT. Use
2298 build_big_number. Change string descriptor to HOST_WIDE_INT_PRINT_DEC.
2299 (sparc_frame_info): Change types for several components.
2300 (sparc_flat_compute_frame_size): Update types according to previous
2301 change.
2302 (sparc_flat_function_prologue): Change string descriptor to
2303 HOST_WIDE_INT_PRINT_DEC. Change offset type to int. Use
2304 build_big_number.
2305 (sparc_flat_function_epilogue): Change offset type to int.
2306 Rename 'size1' into 'reg_offset1'. Change string descriptor to
2307 HOST_WIDE_INT_PRINT_DEC. Use build_big_number. Change big number
2308 limit to 4096 instead of 4095.
2309
2310 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Change offset type to
2311 HOST_WIDE_INT.
2312
23132003-11-24 Waldek Hebisch <hebisch@math.uni.wroc.pl>
2314
2315 * function.c: Make outer_function-chain external.
2316 * function.h: Likewise.
2317
23182003-11-24 Richard Sandiford <rsandifo@redhat.com>
2319
2320 * config.gcc (mips-sgi-irix6*): Add t-iris6gld to tmake_file when
2321 using GNU ld.
2322 * config/mips/iris6.h (IRIX6_STARTFILE_SPEC): New, taking the
2323 whole of the previous STARTFILE_SPEC except crtbegin.o%s.
2324 (IRIX6_ENDFILE_SPEC): Likewise ENDFILE_SPEC and crtend.o%s.
2325 (STARTFILE_SPEC, ENDFILE_SPEC): Define in terms of the above.
2326 (SUBTARGET_EXTRA_SPECS): Define.
2327 * config/mips/iris6gld.h (LINK_SPEC): Change -init function
2328 to __gcc_init and -fini function to __gcc_fini.
2329 (STARTFILE_SPEC): Redefine, including irix6-crti.o before crtbegin.o.
2330 (ENDFILE_SPEC): Likewise, including irix6-crtn.o after crtend.o.
2331 (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP): Define.
2332 * config/mips/t-iris6gld,
2333 * config/mips/irix6-crti.asm,
2334 * config/mips/irix6-crtn.asm: New files.
2335
23362003-11-24 Eric Christopher <echristo@redhat.com>
2337
2338 PR C/13014
2339 * c-decl.c (c_in_iteration_stmt, c_in_case_stmt): New.
2340 (start_function): Use.
2341 (c_push_function_context): Ditto.
2342 (c-pop_function_context): Ditto.
2343 (language_function): Move...
2344 * c-tree.h: ... here. Add x_in_iteration_stmt, and
2345 x_in_case_stmt.
2346 * c-parse.in (do_stmt_start, select_or_iter_stmt, stmt): Use
2347 c_in_iteration_stmt, c_in_case_stmt for parser state. Move
2348 check for valid break or continue statment here...
2349 * c-semantics.c (genrtl_break_stmt, genrtl_continue_stmt): From
2350 here. Change original errors to abort.
2351
23522003-11-24 Jan Hubicka <jh@suse.cz>
2353
2354 * fold-const.c (fold): Do not return early when optimizing
2355 COMPONENT_REF and constant.
2356
23572003-11-24 Kazu Hirata <kazu@cs.umass.edu>
2358
2359 * config/h8300/h8300.md (tablejump_h8300): Change to
2360 *tablejump_h8300.
2361 (tablejump_h8300h): Change to *tablejump_h8300hs_advanced.
2362 (tablejump_normal_mode): Change to *tablejump_h8300hs_normal.
2363 (indirect_jump_h8300): Change to *indirect_jump_h8300.
2364 (indirect_jump_h8300h): Change to
2365 *indirect_jump_h8300hs_advanced.
2366 (indirect_jump_normal_mode): Change to
2367 *indirect_jump_h8300hs_normal.
2368
23692003-11-24 Kazu Hirata <kazu@cs.umass.edu>
2370
2371 * config/h8300/h8300.md: Remove constraints from expanders.
2372
23732003-11-24 Kazu Hirata <kazu@cs.umass.edu>
2374
2375 * config/h8300/h8300.md: (stm_h8300s_2): Change the name to
2376 stm_h8300s_2_advanced.
2377 (stm_h8300s_2_normal): New.
2378 (stm_h8300s_2): Likewise.
2379 (stm_h8300s_3): Change the name to stm_h8300s_3_advanced.
2380 (stm_h8300s_3_normal): New.
2381 (stm_h8300s_3): Likewise.
2382 (stm_h8300s_4): Change the name to stm_h8300s_4_advanced.
2383 (stm_h8300s_4_normal): New.
2384 (stm_h8300s_4): Likewise.
2385 (ldm_h8300s_2): Change the name to ldm_h8300s_2_advanced.
2386 (ldm_h8300s_2_normal): New.
2387 (ldm_h8300s_2): Likewise.
2388 (ldm_h8300s_3): Change the name to ldm_h8300s_3_advanced.
2389 (ldm_h8300s_3_normal): New.
2390 (ldm_h8300s_3): Likewise.
2391 (ldm_h8300s_4): Change the name to ldm_h8300s_4_advanced.
2392 (ldm_h8300s_4_normal): New.
2393 (ldm_h8300s_4): Likewise.
2394 (two peephole2's): Enable only with !TARGET_NORMAL_MODE.
2395 (two peephole2's): New.
2396
23972003-11-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2398
2399 * genattrtab.c (simplify_cond): Update indices correctly.
2400 (attr_alt_subset_p, attr_alt_subset_of_compl_p, attr_alt_intersection,
2401 attr_alt_union, attr_alt_complement, attr_alt_bit_p, mk_attr_alt): New.
2402 (check_attr_test, encode_units_mask, compute_alternative_mask,
2403 make_alternative_compare, simplify_and_tree,
2404 attr_rtx_cost, simplify_test_exp, gen_attr,
2405 write_test_expr, walk_attr_value): Handle EQ_ATTR_ALT.
2406 * rtl.def (EQ_ATTR_ALT): New.
2407
24082003-11-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2409
2410 * genattrtab.c (strcmp_check, DEF_ATTR_STRING): New macros.
2411 (length_str, delay_type_str, delay_1_0_str, num_delay_slots_str):
2412 New variables.
2413 (main): Initialize them.
2414 (find_attr): Canonicalize the attribute name string.
2415 (attr_rtx_1, copy_boolean, expand_delays, gen_unit): Always canonicalize
2416 string arguments.
2417 (attr_printf, attr_eq): Use DEF_ATTR_STRING.
2418 (check_attr_test, check_attr_value, make_length_attrs,
2419 write_length_unit_log, simplify_by_exploding, gen_attr,
2420 write_test_expr, write_attr_value, write_eligible_delay,
2421 write_complex_function, make_internal_attr,
2422 write_const_num_delay_slots): Changed due to change of type of
2423 find_attr.
2424 (fill_attr, evaluate_eq_attr, simplify_and_tree,
2425 attr_rtx_cost, simplify_by_exploding, walk_attr_value): Use
2426 strcmp_check.
2427
24282003-11-23 Kazu Hirata <kazu@cs.umass.edu>
2429
2430 PR target/13122
2431 * config/h8300/h8300.c (push): Call push_h8300hs_normal in
2432 normal mode.
2433 (pop): Call pop_h8300hs_normal in normal mode.
2434 * config/h8300/h8300.md: Likewise.
2435 (pushqi1_h8300hs_normal): New.
2436 (pushqi1): Call pushqi1_h8300hs_normal in normal mode.
2437 (pushhi1_h8300hs_normal): New.
2438 (pushhi1): Call pushhi1_h8300hs_normal in normal mode.
2439 (push_h8300hs_normal): New.
2440 (pop_h8300hs_normal): Likewise.
2441
24422003-11-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2443
2444 * genattrtab.c (count_sub_rtxs): Removed.
2445
24462003-11-23 Richard Earnshaw <rearnsha@arm.com>
2447
2448 * recog.c (preprocess_constraints): Only zero those elements of
2449 recog_op_alt that are needed for this insn.
2450 * arm.c (note_invalid_constants): A function can't contain invalid
2451 constants if it has no constraints.
2452
24532003-11-22 Jan Hubicka <jh@suse.cz>
2454
2455 * i386.c (classify_argument): Pass __float128 in memory.
2456 (ix86_return_in_memory): Likewise.
2457 (ix86_libcall_value): Likewsie.
2458
24592003-11-22 Kazu Hirata <kazu@cs.umass.edu>
2460
2461 * config/h8300/h8300.c (dosize): Convert to ISO-C.
2462
24632003-11-22 J"orn Rennecke <joern.rennecke@superh.com>
2464
2465 * flow.c (update_life_info): Amend comment about when a register
2466 can become dead.
2467
24682003-11-21 Kelley Cook <kcook@gcc.gnu.org>
2469
2470 * doc/.cvsignore: Delete.
2471
24722003-11-21 Daniel Berlin <dberlin@dberlin.org>
2473 David Edelsohn <edelsohn@gnu.org>
2474
2475 * dwarf2out.c (add_location_or_const_value_attribute): Add support
2476 for PARALLEL.
2477
24782003-11-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2479
2480 * config/mips/t-iris6 (CRTSTUFF_T_CFLAGS): Add -Wno-error.
2481 (TARGET_LIBGCC2_CFLAGS): Define.
2482
2483 * crtstuff.c [HAS_INIT_SECTION] (__do_global_dtors): Declare.
2484 (__do_global_ctors): Likewise.
2485
24862003-11-21 Mark Wielaard <mark@klomp.org>
2487
2488 * doc/invoke.texi (-O2): Doesn't enable -fweb.
2489
24902003-11-21 Kazu Hirata <kazu@cs.umass.edu>
2491
2492 * doc/invoke.texi: Mention dV and dZ.
2493
24942003-11-21 Kazu Hirata <kazu@cs.umass.edu>
2495
2496 * doc/invoke.texi: Update dump file names.
2497 Remove de, dW, and dX.
2498
24992003-11-20 James E Wilson <wilson@specifixinc.com>
2500
2501 PR c/13133
2502 * reload1.c (reload): Delete special handling for setjmp.
2503
25042003-11-21 Andreas Tobler <a.tobler@schweiz.ch>
2505
2506 * mklibgcc.in: Evaluate shlib_slibdir_qual during link
2507 step too.
2508 * config/t-slibgcc-darwin: Adjust install path.
2509 * config/rs6000/t-darwin: Revert multilib matches since
2510 it is not used on darwin.
2511
25122003-11-20 Richard Henderson <rth@redhat.com>
2513
2514 * ssa.c, ssa-dce.c, ssa-ccp.c: Remove files.
2515 * Makefile.in (OBJS-common, GTFILES): Don't reference them.
2516 (gtype-desc.o, toplev.o, flow.o): Remove ssa.h.
2517 (ssa.o, ssa-dce.o, ssa-ccp.o): Remove.
2518 * flow.c: Don't include ssa.h.
2519 (set_phi_alternative_reg): Remove.
2520 (calculate_global_regs_live): Don't call it.
2521 (mark_used_regs): Don't handle PHI.
2522 * gengtype.c (open_base_files): Don't reference ssa.h.
2523 * rtl.def (PHI): Remove.
2524 * timevar.def (TV_TO_SSA, TV_SSA_CCP, TV_SSA_DCE, TV_FROM_SSA): Kill.
2525 * common.opt: Remove -fssa, -fssa-ccp, -fssa-dce.
2526 * opts.c (common_handle_option): Likewise.
2527 * toplev.c (f_options): Likewise.
2528 (DFI_ssa, DFI_ssa_ccp, DFI_ssa_dce, DFI_ussa): Remove.
2529 (dump_file): Update to match.
2530 (flag_ssa, flag_ssa_ccp, flag_ssa_dce): Remove.
2531 (rest_of_handle_ssa): Remove.
2532 (rest_of_compilation): Don't call it.
2533 * toplev.h (flag_ssa, flag_ssa_dce, flag_ssa_ccp): Remove.
2534 * doc/invoke.texi: Remove -fssa, -fssa-ccp, -fssa-dce.
2535 * doc/passes.texi (SSA optimizations): Remove.
2536
25372003-11-20 Bob Wilson <bob.wilson@acm.org>
2538
2539 * configure.in: Add xtensa-*-* targets to test for dwarf2 debug_line.
2540 * configure: Regenerate.
2541
25422003-11-20 Kelley Cook <kcook@gcc.gnu.org>
2543
2544 * Makefile.in (Makefile): Pass along CONFIG_SHELL.
2545
25462003-11-20 David Mosberger <davidm@hpl.hp.com>
2547
2548 * config/t-libunwind (LIB2ADDEH): Add unwind-c.c.
2549 (SHLIB_LC): Define.
2550 * unwind-libunwind.c (_Unwind_GetCFA): Implement.
2551 (_Unwind_GetBSP) [UNW_TARGET_IA64]: New function.
2552
25532003-11-20 Fariborz Jahanian <fjahanian@apple.com>
2554 David Edelsohn <edelsohn@gnu.org>
2555
2556 * calls.c (expand_call): Allocate new temp in pass1.
2557 (store_one_arg): If PARALLEL, calculate excess using mode size of
2558 rtvec elt.
2559 * expr.c (emit_push_insn): If PARALLEL, calculate offset using
2560 mode size of rtvec elt.
2561 * function.c (assign_parms): Use parm in register, if available.
2562
25632003-11-20 Kazu Hirata <kazu@cs.umass.edu>
2564
2565 * config/h8300/lib1funcs.asm (MOVP): Remove.
2566 (ADDP): Likewise.
2567 (CMPP): Likewise.
2568
25692003-11-20 Richard Earnshaw <rearnsha@arm.com>
2570
2571 * arm.c (use_return_insn): New argument, SIBLING. Support returning
2572 with a single instruction if the stack has been decremented by 4
2573 and we have a frame pointer. Update all callers.
2574 (output_return_instruction): Likewise.
2575 (arm_output_epilogue): Change argument to SIBLING. Calculate
2576 really_return from the new argument. Update all callers.
2577 * arm.h (USE_RETURN_INSN): Pass NULL for the sibling.
2578 * arm.md (sibcall_epilogue): Call use_return_insn directly, and
2579 pass the sibling call.
2580 * arm-protos.h (use_return_insn, arm_output_epilogue): Update
2581 prototypes.
2582
25832003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
2584
2585 * Makefile.in (extraclean): Delete.
2586 * configure.in (target_list): Remove extraclean.
2587 * configure: Regenerate.
2588 * doc/makefile.texi, doc/sourcebuild.texi: Update.
2589 * objc/Make-lang.in (objc.extraclean): Delete.
2590
25912003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
2592
2593 * Makefile.in (lang_checks): Add.
2594 (check-c++, check-f77, check-java, check-g++, check-g77,
2595 check-objc): Remove hardcoded targets.
2596 * doc/sourcebuild.texi: Document testsuite hooks.
2597 * objc/Make-lang.in (check-objc, lang_checks): Add.
2598
25992003-11-19 Scott Snyder <snyder@fnal.gov>
2600
2601 PR target/13131
2602 * dwarf2out.c (gen_array_type_die): DW_AT_declaration should be a
2603 flag, not a constant.
2604
26052003-11-19 Kelley Cook <kcook@gcc.gnu.org>
2606
2607 * config/arc/arc-protos.h: Update to C90 prototypes.
2608 * config/arc/arc.c: Likewise.
2609 * config/arc/initfini.c: Likewise.
2610
26112003-11-19 Andreas Krebbel <krebbel1@de.ibm.com>
2612
2613 * stmt.c (expand_goto): Memory clobbers added.
2614
26152003-11-19 Andreas Krebbel <krebbel1@de.ibm.com>
2616
2617 * reload.c (find_reloads): Added missing type casts.
2618
26192003-11-19 James E Wilson <wilson@specifixinc.com>
2620
2621 * combine.c (sets_function_arg_p): Delete unused function.
2622
26232003-11-19 Eric Christopher <echristo@redhat.com>
2624
2625 * reload1.c (reload): Revert 2 previous checkins.
2626
26272003-11-19 Nathanael Nerode <neroden@gcc.gnu.org>
2628
2629 * cpptrad.c (_cpp_scan_out_logical_line): Improve test for
2630 whether directive begins at the beginning of a line.
2631
26322003-11-19 Richard Sandiford <rsandifo@redhat.com>
2633
2634 * config/frv/frv.c (frv_init_libfuncs): Correct ufix_optab entries.
2635
26362003-11-19 Gerald Pfeifer <gp@suse.de>
2637
2638 * doc/install.texi (Specific): Remove information on old versions
2639 of glibc versus old versions of GCC.
2640
26412003-11-19 Richard SAndiford <rsandifo@redhat.com>
2642
2643 * emit-rtl.c (gen_lowpart): Don't force MEMs into a register unless
2644 the register lowpart is a TRULY_NOOP_TRUNCATION.
2645
26462003-11-19 Richard Henderson <rth@redhat.com>
2647
2648 * config/i386/i386.c (print_reg): Handle QI and HI modes for
2649 non Q regs.
2650
26512003-11-19 Andreas Tobler <a.tobler@schweiz.ch>
2652
2653 * config/config.gcc (powerpc-*-darwin*): Add libgcc build
2654 specification file.
2655 * config/t-slibgcc-darwin: New file, libgcc build specification.
2656 * config/t-darwin: Add libgcc2 flag -fPIC.
2657 * config/rs6000/t-darwin: Multilib matches float.
2658 * libgcc-darwin.ver: New file, contains libgcc symbols.
2659
26602003-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
2661
2662 * config/ns32k/ns32k.h: Remove obsolete comment.
2663
26642003-11-18 Roger Sayle <roger@eyesopen.com>
2665
2666 PR middle-end/11821
2667 * config/arm/arm.c (arm_rtx_costs_1): Improve estimate of the code
2668 size for calls to libgcc's div & mod subroutines when using -Os.
2669
26702003-11-18 Jan Hubicka <jh@suse.cz>
2671
2672 * cgraph.c (change_decl_assembler_name): Avoid bogus warnings.
2673
26742003-11-18 Marc Espie <espie@openbsd.org>
2675
2676 * config/rs6000/sysv4.h: OpenBSD hooks.
2677
26782003-11-18 Richard Henderson <rth@redhat.com>
2679
2680 * expr.c (expand_expr): Don't look through constant arrays if
2681 they don't bind locally.
2682
26832003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2684
2685 * expr.c (convert_move): Use GET_MODE_PRECISION instead of bitsize
2686 when seeing if truncation or extension.
2687
26882003-11-17 Eric Christopher <echristo@redhat.com>
2689
2690 * reload1.c (reload): Fix previous change.
2691
26922003-11-17 Scott Snyder <snyder@fnal.gov>
2693
2694 PR debug/11325
2695 * dwarf2out.c (struct die_struct): Add die_definition field.
2696 (add_AT_specification): New.
2697 (gen_subprogram_die, gen_variable_die,
2698 gen_struct_or_union_type_die): Use it.
2699 (prune_unused_types_mark): If we're marking a forward declaration,
2700 also mark the full definition, if it exists.
2701
27022003-11-16 Nick Clifton <nickc@redhat.com>
2703
2704 * config/stormy16/stormy16.h (BUILD_VA_LIST_TYPE): Delete.
2705 * config/stormy16/stormy16-protos.h (xstormy16_build_va_list):
2706 Remove prototype.
2707 * config/stormy16/stormy16.c (xstormy16_build_va_list): Rename
2708 to xstormy16_build_builtin_va_list and make static.
2709 (TARGET_BUILD_BUILTIN_VA_LIST): Define.
2710
27112003-11-16 Kazu Hirata <kazu@cs.umass.edu>
2712
2713 * config/h8300/h8300-protos.h: Add the prototype for
2714 same_cmp_following_p.
2715 * config/h8300/h8300.c (same_cmp_following_p): New.
2716 * config/h8300/h8300.md (peephole2): Use it.
2717
27182003-11-16 Kazu Hirata <kazu@cs.umass.edu>
2719
2720 * config/h8300/h8300.md: Don't use REGNO when its operand is
2721 not guaranteed to be a REG.
2722
27232003-11-16 Richard Sandiford <rsandifo@redhat.com>
2724
2725 * Makefile.in (expr.o): Depend on $(TARGET_H).
2726 * target.h (return_in_msb): New target hook.
2727 * target-def.h (TARGET_RETURN_IN_MSB): New macro.
2728 (TARGET_CALLS): Include it.
2729 * calls.c (shift_returned_value): New function.
2730 (expand_call): Use it.
2731 * expr.c: Include target.h.
2732 (copy_blkmode_from_reg): Check targetm.calls.return_in_msb when
2733 deciding what padding is needed. Change the name of the local
2734 padding variable from big_endian_correction to padding_correction.
2735 * stmt.c (shift_return_value): New function.
2736 (expand_return): Use it. Adjust memory->register copy in the same
2737 way as copy_blkmode_from_reg. Only change the return register's
2738 mode if it was originally BLKmode.
2739 * doc/tm.texi (TARGET_RETURN_IN_MSB): Document.
2740 * config/mips/mips.c (TARGET_RETURN_IN_MSB): Define.
2741 (mips_fpr_return_fields): New, split out from mips_function_value.
2742 (mips_return_in_msb, mips_return_fpr_pair): New functions.
2743 (mips_function_value): Rework to use the functions above.
2744 * config/mips/irix6-libc-compat.c: Delete.
2745 * config/mips/t-iris6 (LIB2FUNCS_STATIC_EXTRA): Undefine.
2746
27472003-11-16 Kazu Hirata <kazu@cs.umass.edu>
2748
2749 * doc/install.texi (--enable-checking): Update valgrind's URL.
2750
27512003-11-16 Kazu Hirata <kazu@cs.umass.edu>
2752
2753 * config/h8300/h8300.md: Fix warnings by replacing -2147483648
2754 with -2147483647 - 1.
2755
27562003-11-16 Gerald Pfeifer <gerald@pfeifer.com>
2757
2758 Fix links in online manuals.
2759 * doc/invoke.texi (H8/300 Options): @xref to ld, not ld.info.
2760 (Precompiled Headers): @pxref to cpp, not cpp.info.
2761
27622003-11-16 Jason Merrill <jason@redhat.com>
2763
2764 * Makefile.in, objc/Make-lang.in (objc.tags): Create TAGS.sub
2765 files in each directory and TAGS files that include them for each
2766 front end.
2767
27682003-11-15 Kazu Hirata <kazu@cs.umass.edu>
2769
2770 * config/h8300/lib1funcs.asm (divnorm): Store the sign in bit
2771 3 of S2L.
2772 (modnorm): Likewise.
2773 (exitdiv): Look at bit 3 of S2L only.
2774
27752003-11-15 Kazu Hirata <kazu@cs.umass.edu>
2776
2777 * config/h8300/h8300.h (DO_GLOBAL_CTORS_BODY): Fix warnings.
2778 (DO_GLOBAL_DTORS_BODY): Likewise.
2779
27802003-11-15 Joseph S. Myers <jsm@polyomino.org.uk>
2781
2782 * doc/install.texi (Prerequisites): Refine documentation of
2783 autoconf, automake and perl requirements. Document required
2784 gettext version.
2785
2786<2003-11-14 Jason Merrill <jason@redhat.com>
2787
2788 * function.c (assign_parms): Use TREE_TYPE to determine the real
2789 type of the argument object.
2790
27912003-11-14 Kazu Hirata <kazu@cs.umass.edu>
2792
2793 * config/h8300/lib1funcs.asm (___udivsi3): Peel off the first
2794 iteration.
2795
27962003-11-14 Fariborz Jahanian <fjahanian@apple.com>
2797
2798 * config/rs6000/rs6000.c (rs6000_move_block_from_reg):
2799 New routine to save vararg registers on stack. Support for
2800 -mpowerpc64 in mixed mode.
2801
28022003-11-14 Bernardo Innocenti <bernie@develer.com>
2803
2804 * config/m68k/m68k.c: Use C statements instead of #ifdef's when testing
2805 for MOTOROLA versus MIT syntax. Improves readability and provides
2806 better compile-time error checking for both code paths.
2807
28082003-11-14 Kelley Cook <kcook@gcc.gnu.org>
2809
2810 * config/frv/frv-protos.h: Update for C90.
2811 * config/frv/frv.h: Likewise.
2812 * config/frv/frvbegin.c: Likewise.
2813 * config/frv/frv.c: Likewise.
2814 (frv_adjust_field_align): Delete unused variable.
2815
28162003-11-14 Geoffrey Keating <geoffk@apple.com>
2817
2818 * config/rs6000/rs6000.md: Add 'DEFAULT_ABI == ABI_DARWIN'
2819 to each place where TARGET_LONG_DOUBLE_128 is used with
2820 DEFAULT_ABI == ABI_AIX.
2821
2822 * cppfiles.c (_cpp_find_file): Make 'one or more PCH files were found'
2823 message comply with GNU standards.
2824
28252003-11-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2826
2827 PR/6552
2828 * function.c (struct epi_info): New field const_equiv.
2829 (update_epilogue_consts): New function.
2830 (keep_stack_depressed): Clear new field and verify scratch register
2831 doesn't have it set.
2832 Call new function via note_stores.
2833 (handle_epilogue_set): Allow setting SP equiv reg in different mode.
2834 Allow PLUS where second operand is register known set to constant.
2835 (emit_equiv_load): Write load using proper mode if source different.
2836 * config/mips/mips.md (return_internal): Put (return) first.
2837
28382003-11-14 Kazu Hirata <kazu@cs.umass.edu>
2839
2840 * config/h8300/lib1funcs.asm (___udivsi3): Add a comment.
2841
28422003-11-14 Kazu Hirata <kazu@cs.umass.edu>
2843
2844 * config/h8300/lib1funcs.asm (modsi3): Don't save unused
2845 registers.
2846 (divsi3): Likewise.
2847 (reti): Don't restore unused registers.
2848
28492003-11-14 Nick Clifton <nickc@redhat.com>
2850
2851 * config/fr30/fr30.c: Include toplev.h
2852
28532003-11-14 Richard Earnshaw <rearnsha@arm.com>
2854
2855 * except.c (sjlj_emit_function_enter): Mark internal label as LOCAL.
2856
28572003-11-14 Richard Earnshaw <rearnsha@arm.com>
2858
2859 * arm.c (arm_emit_vector_const, arm_output_load_gr): Use ISO C
2860 function definition syntax.
2861
28622003-11-14 Eric Christopher <echristo@redhat.com>
2863
2864 * reload1.c (reload): Revert previous patch. Make
2865 check for assignment into reg_equiv_address stricter.
2866
28672003-11-14 Arnaud Charlet <charlet@act-europe.fr>
2868
2869 * Makefile.in (POSTSTAGE1_FLAGS_TO_PASS): Pass ADAFLAGS.
2870
28712003-11-14 Richard Sandiford <rsandifo@redhat.com>
2872
2873 * config/frv/frv.c (frv_in_small_data_p): Return false for unknown
2874 section names.
2875
28762003-11-14 Jason Merrill <jason@redhat.com>
2877
2878 PR middle-end/12526
2879 * tree.c (build): A CALL_EXPR has side-effects if its arguments do.
2880 * calls.c (call_expr_flags): New fn.
2881 * tree.h: Declare it.
2882
28832003-11-13 Kazu Hirata <kazu@cs.umass.edu>
2884
2885 * config/h8300/lib1funcs.asm (__udivsi3): Remove.
2886 (divmodsi3): Change the name to ___udivsi3.
2887 Update all callers.
2888
28892003-11-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2890
2891 * libgcc2.c (__negdi2, __addvsi3, __addvdi3, __subvsi3, __subvdi3,
2892 __mulvsi3, __negvsi2, __negvdi2, __mulvdi3, __lshrdi3, __ashldi3,
2893 __ashrdi3, __ffsDI2, __muldi3, __clzDI2, __ctzDI2, __parityDI2,
2894 __udivmoddi4, __divdi3, __moddi3, __cmpdi2, __ucmpdi2,
2895 __fixunstfDI, __fixunsxfDI, __fixunsdfDI, __fixunssfDI,
2896 __floatdixf, __floatditf, __floatdidf, __floatdisf, __gcc_bcmp):
2897 Const-ify and/or initialize automatic variables at declaration.
2898
28992003-11-13 Kazu Hirata <kazu@cs.umass.edu>
2900
2901 * config/h8300/lib1funcs.asm (divmodsi4): Replace all the uses
2902 of er4 with er3. Adjust all callers.
2903
29042003-11-13 Andrew Pinski <apinski@apple.com>
2905
2906 * config/darwin.c (machopic_output_possible_stub_label):
2907 Allow stub symbol be not defined when outputting possible
2908 stub label.
2909
29102003-11-13 Kazu Hirata <kazu@cs.umass.edu>
2911
2912 * config/h8300/lib1funcs.asm (___udivsi3): Jump to reti
2913 instead of exitdiv.
2914 (___umodsi3): Likewise.
2915 (exitdiv): Do not restore any register.
2916 (reti): Restore registers.
2917
29182003-11-13 Steven Bosscher <stevenb@suse.de>
2919
2920 * tree-inline.c (walk_tree): Handle PLACEHOLDER_EXPR.
2921
29222003-11-13 Kazu Hirata <kazu@cs.umass.edu>
2923
2924 * config/h8300/lib1funcs.asm: Fix comment typos.
2925
29262003-11-13 Kazu Hirata <kazu@cs.umass.edu>
2927
2928 * config/h8300/lib1funcs.asm (udivsi3): Don't save/restore
2929 unused registers. Don't jump to exitdiv.
2930 (umodsi3): Likewise.
2931
29322003-11-13 Mark Mitchell <mark@codesourcery.com>
2933 Kean Johnston <jkj@sco.com>
2934
2935 PR c/13029
2936 * toplev.c (check_global_declarations): Do not warn about unused
2937 static consts.
2938
29392003-11-13 Pavel Pisa <pisa@cmp.felk.cvut.cz>
2940 Kazu Hirata <kazu@cs.umass.edu>
2941
2942 * config/h8300/lib1funcs.asm (DenHighNonZero): Optimize using
2943 the approximate quotient method.
2944
29452003-11-13 Richard Earnshaw <rearnsha@arm.com>
2946
2947 * combine.c (distribute_notes): When re-distributing the notes from
2948 an insn we are about to delete, ensure we can't end up with a cyclic
2949 list of notes.
2950
29512003-11-13 Eric Botcazou <ebotcazou@libertysurf.fr>
2952
2953 PR optimization/12926
2954 * expr.c (expand_assignment) [COMPONENT_REF]: Don't put
2955 the UNCHANGING_RTX_P flag on memory references to read-only
2956 components that are not addressable.
2957
29582003-11-12 Kazu Hirata <kazu@cs.umass.edu>
2959
2960 * config/h8300/lib1funcs.asm (divmodsi4): Clear S0P in
2961 DenHighNonZero.
2962
29632003-11-13 Jan Hubicka <jh@suse.cz>
2964
2965 PR opt/12275
2966 * c-decl.c (finish_decl): Use change_decl_assembler_name.
2967 * c-pragma.c (handle_pragma_redefine_extname): Likewise.
2968 * varasm.c (make_decl_rtl): Likewise.
2969 * cgraph.c (change_decl_assembler_name): New function.
2970 * tree.h (set_decl_assembler_name): Kill dead declaration.
2971 (change_decl_assembler_name): Declare.
2972
2973 * decl.c (make_rtl_for_nonlocal_decl): Use change_decl_assembler_name.
2974 * decl2.c (make_rtl_for_nonlocal_decl): Use change_decl_assembler_name.
2975
29762003-11-12 Kazu Hirata <kazu@cs.umass.edu>
2977
2978 * config/h8300/lib1funcs.asm (___mulsi3): Don't save/restore
2979 an unused register.
2980
29812003-11-12 Richard Sandiford <rsandifo@redhat.com>
2982
2983 PR bootstrap/12752
2984 * config/mips/t-iris6 (MULTILIB_OPTIONS): Put -mabi=n32 first.
2985 (MULTILIB_OSDIRNAMES): Reorder accordingly.
2986
29872003-11-12 Janis Johnson <janis187@us.ibm.com>
2988
2989 * rs6000-protos.h (rs6000_initial_elimination_offset): Add.
2990 (rs6000_stack_info): Remove. (debug_stack_info): Remove.
2991 (rs6000_emit_eh_reg_restore): Add
2992 * rs6000.c (rs6000_stack_t): Move from rs6000.h, change data type
2993 of vars_size and total_size to HOST_WIDE_INT.
2994 (emit_frame_save): Change parameter size to HOST_WIDE_INT.
2995 (rs6000_stack_info): Make static; change data size to HOST_WIDE_INT.
2996 (debug_stack_info): Make static; change output format of HOST_WIDE_INT
2997 values.
2998 (rs6000_emit_eh_reg_restore): New, with code formerly in rs6000.md.
2999 (rs6000_initial_elimination_offset): New, with code formerly in
3000 INITIAL_ELIMINATION_OFFSET.
3001 * rs6000.h (rs6000_stack_t): Remove.
3002 (INITIAL_ELIMINATION_OFFSET): Replace code with call to function
3003 rs6000_initial_elimination_offset.
3004 * rs6000.md (UNSPECV_EH_RR split): Replace code with call to
3005 rs6000_emit_eh_reg_restore.
3006
30072003-11-12 Mike Stump <mrs@apple.com>
3008
3009 * c-typeck.c (c_convert_parm_for_inlining): Add argnum, which
3010 is the argumnt we are processing so that warnings and errors
3011 will have that information.
3012 * c-tree.h (c_convert_parm_for_inlining): Add argnum.
3013 * lang-hooks-def.h
3014 (lhd_tree_inlining_convert_parm_for_inlining): Likewse.
3015 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): Likewise.
3016 * langhooks.h (convert_parm_for_inlining): Likewise.
3017 * tree-inline.c (initialize_inlined_parameters): Compute and
3018 pass argnum down.
3019
30202003-11-12 Alexey Starovoytov <alexey.starovoytov@sun.com>
3021 Roger Sayle <roger@eyesopen.com>
3022
3023 PR optimization/12953
3024 * tree-inline.c (inline_forbidden_p_1): Added check for BUILT_IN
3025 before switch by FUNCTION_CODE.
3026
30272003-11-12 Richard Earnshaw <rearnsha@arm.com>
3028
3029 * arm.md (storehi): Avoid use of explicit subreg.
3030 (storehi_bigend, storeinthi, movhi_bigend): Likewise.
3031
30322003-11-12 J"orn Rennecke <joern.rennecke@superh.com>
3033
3034 * config/sh/sh.md (prefetch): New pattern.
3035
30362003-11-11 Eric Christopher <echristo@redhat.com>
3037
3038 * reload1.c (reload): Verify that addresses for
3039 reg_equiv_* are valid for the architecture.
3040
30412003-11-11 Eric Christopher <echristo@redhat.com>
3042
3043 * function.c (purge_addressof_1): Add libcall check.
3044 Remove test for cached replacements on fallback case.
3045 Simplify mode comparisons. Add libcall test for
3046 paradoxical subregs.
3047
30482003-11-11 Kazu Hirata <kazu@cs.umass.edu>
3049
3050 * config/h8300/t-h8300: Fix an obsolete comment.
3051
30522003-11-11 James E Wilson <wilson@specifixinc.com>
3053
3054 * expmed.c (store_bit_field, extract_bit_field): Revert last two
3055 changes.
3056
30572003-11-11 Kazu Hirata <kazu@cs.umass.edu>
3058
3059 * config/h8300/lib1funcs.asm: Replace DenHighZero with
3060 DenHighNonZero.
3061
30622003-11-11 Jan Hubicka <jh@suse.cz>
3063
3064 * cgraphunit.c (cgraph_function_possibly_inlined_p): Use
3065 really_no_inline.
3066
30672003-11-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3068
3069 * pa.h (TRAMPOLINE_TEMPLATE): Fix flushing of cache lines when
3070 generating 64-bit code.
3071
30722003-11-10 David Edelsohn <edelsohn@gnu.org>
3073
3074 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Remove
3075 accidental commit in previous change.
3076
30772003-11-10 Fariborz Jahanian <fjahanian@apple.com>
3078
3079 * config/rs6000/rs6000.h (STACK_SIZE_MODE): Add definition.
3080 * config/rs6000/rs6000.c (reg_or_mem_operand): Add macho-style
3081 address recognition.
3082 (macho_lo_sum_memory_operand): Routine to recognize macho-style
3083 address recognition.
3084
30852003-11-10 Richard Henderson <rth@redhat.com>
3086
3087 * dwarf2out.c (gen_label_die): Cope with DECL_RTL not set.
3088
30892003-11-10 Matt Austern <austern@apple.com>
3090
3091 * config/darwin-protos.h (darwin_assemble_visibility): Declare.
3092 * config/darwin.c (darwin_assemble_visibility): Define. Warn for
3093 anything other than VISIBILITY_DEFAULT and VISIBILITY_HIDDEN.
3094 * config/darwin.h (TARGET_ASM_ASSEMBLE_VISIBILITY): Use
3095 darwin_assemble_visibility instead of default.
3096
30972003-11-10 Waldek Hebisch <hebisch@math.uni.wroc.pl>
3098
3099 PR target/12865
3100 * config/sparc/sparc.c (sparc_initialize_trampoline): Call
3101 __enable_execute_stack only after writing onto the stack.
3102 (sparc64_initialize_trampoline): Likewise.
3103
31042003-11-09 Roger Sayle <roger@eyesopen.com>
3105
3106 * loop.c (check_dbra_loop): Try swapping the comparison operands
3107 of the loop condition to identify a suitable induction variable.
3108 * unroll.c (loop_iterations): Likewise.
3109
31102003-11-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3111
3112 * config/sparc/sparc.h (TARGET_CPU_CPP_BUILTINS): Fix sparc vs
3113 sparc64 #cpu and #machine assertions.
3114
31152003-11-09 Richard Henderson <rth@redhat.com>
3116
3117 * Makefile.in (rtlanal.o): Depend on BASIC_BLOCK_H.
3118
31192003-11-09 Jan Hubicka <jh@suse.cz>
3120
3121 * tree-optimize.c (tree_rest_of_compilation): Fix warning.
3122
3123 * cgraphunit.c (cgraph_expand_function): Use
3124 cgraph_possibly_inlined_p.
3125 * tree-optimize.c (tree_rest_of_compilation): Do not kill saved tree.
3126
3127 * opts.c (common_handle_option): Do not set max-inline-insns.
3128 * params.def: Update comments.
3129 (PARAM_MAX_INLINE_INSNS): Kill.
3130 * invoke.texi (max-inline-insns): Kill.
3131
31322003-11-08 Joseph S. Myers <jsm@polyomino.org.uk>
3133
3134 PR c/3190
3135 PR c/8714
3136 * c-format.c (set_Wformat): Do not enable -Wformat-y2k by default.
3137 * invoke.texi: Update.
3138
31392003-11-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3140
3141 PR optimization/12630
3142 * pa.c (compute_movstrsi_length): Rename to compute_movstr_length.
3143 Handle length computation 64-bit moves.
3144 (compute_clrstr_length, output_block_clear): Implement block clear.
3145 (output_block_move): Handle 64-bit moves.
3146 (pa_adjust_insn_length): Use compute_movstr_length and
3147 compute_clrstr_length.
3148 * pa.md (movstrsi): Revise operand order and comments. Don't use
3149 match_scratch.
3150 (movstrsi_internal): Delete.
3151 (movstrsi_prereload, movstrsi_postreload): New insns. Define splitter
3152 and peephole2 patterns to transform prereload to postreload form.
3153 (movstrdi, movstrdi_prereload, movstrdi_postreload, clrstrsi,
3154 clrstrsi_prereload, clrstrsi_postreload, clrstrdi, clrstrdi_prereload,
3155 clrstrdi_postreload): New patterns for 64-bit block move, and block
3156 clear.
3157 * pa-protos.h (output_block_clear): New prototype.
3158
31592003-11-08 Andreas Schwab <schwab@suse.de>
3160
3161 * dbxout.c (current_file): Also wrap inside DBX_DEBUGGING_INFO ||
3162 XCOFF_DEBUGGING_INFO.
3163
31642003-11-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3165
3166 * dbxout.c (current_file): Wrap declaration in DBX_USE_BINCL.
3167
31682003-11-07 Geoffrey Keating <geoffk@apple.com>
3169
3170 * config/rs6000/rs6000.c (rs6000_legitimize_address): Remove
3171 redundant parens.
3172
3173 * cppfiles.c (pch_open_file): New parameter 'invalid_pch', set it.
3174 (find_file_in_dir): Likewise.
3175 (_cpp_find_file): Print message if no header file is found
3176 but an invalid PCH file was.
3177
31782003-11-08 Joseph S. Myers <jsm@polyomino.org.uk>
3179
3180 * c-typeck.c (pedantic_lvalue_warning): Deprecate compound
3181 expressions as lvalues.
3182 (internal_build_compound_expr): Remove special handling for
3183 non-pedantic case.
3184 * doc/extend.texi: Document that all extended lvalues are now
3185 deprecated.
3186
31872003-11-07 Geoffrey Keating <geoffk@apple.com>
3188
3189 PR 11654
3190 * dbxout.c (struct dbx_file): Do not save for PCH.
3191 (current_file): Likewise.
3192 (dbxout_init): Don't allocate struct dbx_file using GC.
3193 (dbxout_start_source_file): Likewise.
3194
31952003-11-07 Falk Hueffner <falk@debian.org>
3196
3197 * config/alpha/elf.h, config/alpha/unicosmk.h,
3198 config/alpha/vms.h: Convert to ISO C90.
3199
32002003-11-07 Nathanael Nerode <neroden@gcc.gnu.org>
3201
3202 * config/arm/pe.h: Convert to ISO C90.
3203
32042003-11-07 J"orn Rennecke <joern.rennecke@superh.com>
3205
3206 * sh-protos.h (sh_pch_valid_p): Declare.
3207 * sh.c ("intl.h"): Include.
3208 (TARGET_PCH_VALID_P): Override.
3209 (sh_target_switches): New variable.
3210 (target_switches): Define.
3211 (sh_pch_valid_p): New function.
3212
3213 * sh.h (MODE_AFTER): Don't change mode unless TARGET_HITACHI.
3214
32152003-11-07 Jan Hubicka <jh@suse.cz>
3216
3217 * i386.c (x86_64_sign_extended_value): Return false from tls variables.
3218 (x86_64_zero_extended_value): likewise.
3219
32202003-11-07 Richard Sandiford <rsandifo@redhat.com>
3221
3222 * config/mips/mips.md (loadgp): Take $25 as a second operand.
3223 * config/mips/mips.c (mips_expand_prologue): Modify accordingly.
3224
32252003-11-06 Matt Austern <austern@apple.com>
3226
3227 * c-common.c (handle_visibility_attribute): Set DECL_VISIBILITY
3228 field instead of hanging an attribute object off the decl.
3229 * tree.h (DECL_VISIBLITY): New accessor macro for
3230 symbol_visibility field in struct tree_decl.
3231 (enum symbol_visibility): Move definition to before tree_decl.
3232 (struct tree_decl): Define new two-bit field, symbol_visibility.
3233 (decl_visibility): Remove declaration.
3234 * varasm.c (maybe_assemble_visibility): Use DECL_VISIBILITY
3235 instead of decl_visibility.
3236 (default_binds_local_p_1): Use DECL_VISIBILITY instead of
3237 decl_visibility.
3238 (decl_visibility): Remove.
3239
32402003-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3241
3242 * config/s390/s390.c (s390_emit_epilogue): Recognize more cases
3243 where register 14 will be saved.
3244
32452003-11-06 Geoffrey Keating <geoffk@apple.com>
3246
3247 * config/rs6000/rs6000.h (USE_FP_FOR_ARG_P): Move to rs6000.c.
3248 (USE_ALTIVEC_FOR_ARG_P): Likewise.
3249 * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Move from rs6000.h.
3250 Take a pointer as the CUM parameter. Update callers.
3251 (USE_ALTIVEC_FOR_ARG_P): Likewise. Also correct for Darwin/AIX
3252 32-bit ABIs.
3253 (function_arg_advance): Use USE_ALTIVEC_FOR_ARG_P. Correct case
3254 of vector parameters as named arguments of stdarg function.
3255 (function_arg): Likewise.
3256
3257 * config/rs6000/darwin.h (ASM_SPEC): Use -force_cpusubtype_ALL when
3258 -maltivec is specified, not the non-existent -faltivec.
3259
32602003-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3261
3262 * config/s390/s390-protos.h (s390_function_value): Declare.
3263 * config/s390/s390.c (TARGET_RETURN_IN_MEMORY): Define.
3264 (s390_return_in_memory): New function.
3265 (s390_function_value): New function.
3266 (s390_function_arg_float): Return false for all arguments larger
3267 than 8 bytes.
3268 (s390_function_arg_pass_by_reference): Likewise. Return true for
3269 all vector arguments.
3270 (s390_function_arg_integer): New function.
3271 (s390_function_arg_advance): Call it. Add sanity checks.
3272 (s390_function_arg): Likewise.
3273 * config/s390/s390.h (FUNCTION_VALUE): Call s390_function_value.
3274 (LIBCALL_VALUE): Likewise.
3275 (RET_REG): Remove.
3276 (RETURN_IN_MEMORY): Remove.
3277
32782003-11-06 Richard Sandiford <rsandifo@redhat.com>
3279
3280 * config/mips/mips-protos.h (mips_initial_elimination_offset): Change
3281 return type to HOST_WIDE_INT.
3282 * config/mips/mips.c (mips_frame_info): Give sizes type HOST_WIDE_INT.
3283 Make initialized a bool. Make register masks unsigned ints.
3284 (compute_frame_size): Make same mask change here. Use HOST_WIDE_INT
3285 where appropriate.
3286 (mips_initial_elimination_offset): Return a HOST_WIDE_INT.
3287 (mips_output_function_prologue): Print sizes as HOST_WIDE_INTs.
3288
32892003-11-06 Richard Sandiford <rsandifo@redhat.com>
3290
3291 * config/frv/frv.c (frv_initial_elimination_offset): Remove bogus
3292 negation.
3293
32942003-11-06 Richard Sandiford <rsandifo@redhat.com>
3295
3296 * config/frv/frv.h (ASM_OUTPUT_ALIGN_WITH_NOP): Define.
3297
32982003-11-06 Momchil Velikov <velco@fadata.bg>
3299
3300 * config/mips/mips.c (override_options): Set MASK_SOFT_FLOAT
3301 for VR4111 too.
3302
33032003-11-06 Jan Hubicka <jh@suse.cz>
3304
3305 * builtins.c (simplify_builtin_strrchr, simplify_builtin_strpbrk): Add
3306 missing casts.
3307
33082003-11-06 Zack Weinberg <zack@codesourcery.com>
3309
3310 * genmodes.c: Change the word "bitsize" to "precision" throughout.
3311 * machmode.def: Likewise.
3312 * machmode.h (GET_MODE_SIZE): Cast value to unsigned short.
3313 (GET_MODE_BITSIZE): Define as GET_MODE_SIZE * BITS_PER_UNIT.
3314 (GET_MODE_PRECISION): New macro.
3315 (mode_bitsize): Renamed mode_precision.
3316 * stor-layout.c (mode_for_size, smallest_mode_for_size):
3317 Use GET_MODE_PRECISION; clarify comments.
3318
33192003-11-05 Joseph S. Myers <jsm@polyomino.org.uk>
3320
3321 * doc/install-old.texi: Remove old documentation of building
3322 cross-compilers.
3323 * doc/install.texi: Move some of it to here.
3324
33252003-11-05 Per Bothner <pbothner@apple.com>
3326
3327 PR preprocessor/12891
3328 * c-opts.c (finish_options): Set include_cursor to disable premature
3329 calls to push_command_line_include from cpp_scan_nooutput.
3330 Fixes bug reported by DJ Delorie.
3331
33322003-11-05 Geoffrey Keating <geoffk@apple.com>
3333
3334 * config/rs6000/rs6000.c (setup_incoming_varargs): Remove
3335 code supporting old-style varargs.
3336
3337 * config/rs6000/rs6000.c (rs6000_machopic_legitimize_pic_address): Use
3338 an intermediate register for better optimisation.
3339
33402003-11-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3341
3342 PR optimization/10080
3343 * cfgloopanal.c (variable_initial_value, variable_initial_values,
3344 simple_loop_exit_p): Record the fact that initial value is extended
3345 from inner mode.
3346 (count_strange_loop_iterations, count_loop_iterations): Handle
3347 ivs that iterate in a narrower mode. Fix handling of overflows.
3348 Improve handling of NE conditions.
3349 (inverse, fits_in_mode_p): New static functions.
3350 (simple_increment): Detect variables that iterate in a narrower mode.
3351 * cfgloop.h (struct loop_desc): Fields inner_mode and extend added.
3352
33532003-11-05 Geoffrey Keating <geoffk@apple.com>
3354
3355 * config/rs6000/rs6000.c (compute_vrsave_mask): Correct off-by-one
3356 error.
3357
3358 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Darwin
3359 needs VRSAVE.
3360
33612003-11-05 Joseph S. Myers <jsm@polyomino.org.uk>
3362
3363 * c-typeck.c (pedantic_lvalue_warning): Deprecate use of
3364 conditional expressions as lvalues.
3365
33662003-11-05 Kazu Hirata <kazu@cs.umass.edu>
3367
3368 * tsystem.h: Add the prototype of strlen.
3369 * unwind-pe.h (read_encoded_value_with_base): Add an
3370 appropriate cast to handle a case where the pointer size is
3371 smaller than sizeof (int).
3372
33732003-11-04 Richard Sandiford <rsandifo@redhat.com>
3374
3375 * config/mips/mips-protos.h (mips_global_pic_constant_p): Delete.
3376 (mips_delegitimize_address): Delete.
3377 (mips_gotoff_global, mips_load_got_page): Declare.
3378 (mips_load_got_global, mips_rewrite_small_data): Declare.
3379
3380 * config/mips/mips.h (FIND_BASE_TERM): Remove definition.
3381 (DANGEROUS_FOR_LA25_P): Use global_got_operand.
3382 (PREDICATE_CODES): Add global_got_operand, local_got_operand and
3383 small_data_pattern. Remove CONST from const_arith_operand's entry.
3384
3385 * config/mips/mips.c (UNSPEC_ADDRESS_P, CONST_GP_P): New macros.
3386 (UNSPEC_ADDRESS, UNSPEC_ADDRESS_TYPE): Likewise.
3387 (mips_constant_type): Delete.
3388 (mips_symbol_type): Add SYMBOL_GOTOFF_PAGE, SYMBOL_GOTOFF_GLOBAL,
3389 SYMBOL_GOTOFF_CALL and SYMBOL_GOTOFF_LOADGP.
3390 (NUM_SYMBOL_TYPES): New macro.
3391 (mips_address_type): Remove ADDRESS_INVALID.
3392 (machine_function): Add has_gp_insn_p.
3393 (mips_constant_info): Delete.
3394 (mips_address_info): Add the address type as an extra field. Replace
3395 the c field with symbol_type.
3396 (mips_split_p, mips_lo_relocs, mips_hi_relocs): New arrays.
3397 (TARGET_DELEGITIMIZE_ADDRESS): Remove definition.
3398 (mips_reloc_offset_ok_p, mips_classify_constant): Delete.
3399 (mips_split_const, mips_symbolic_constant_p): New functions.
3400 (mips_symbolic_address_p): Take the symbol type and mode as arguments.
3401 (mips_classify_address): Return true if the address is valid, storing
3402 its type in INFO. Use mips_symbolic_constant_p. Use mips_lo_relocs[]
3403 to test whether a LO_SUM address is allowed.
3404 (mips_symbol_insns): Return 0 for general mips16 symbols.
3405 Reorder SYMBOL_GOT_GLOBAL case to match mips_symbol_type definition.
3406 Handle the new SYMBOL_GOTOFF_*s.
3407 (mips_address_insns): Update call to mips_classify_address.
3408 (mips_const_insns): Be more fussy about HIGH constants. Remove use
3409 of mips_classify_constant. Be more accurate about CONSTs.
3410 (mips_global_pic_constant_p): Delete.
3411 (const_arith_operand): Only accept CONST_INTs.
3412 (call_insn_operand): Remove call to mips_classify_constant.
3413 Let mips_symbolic_constant_p check for invalid offsets.
3414 (move_operand): Check for general_operands first. Only accept symbolic
3415 constants if they satisfy mips_symbolic_constant_p and cannot be split.
3416 (symbolic_constant): Use mips_symbolic_constant_p.
3417 (global_got_operand, local_got_operand): New predicates.
3418 (stack_operand): Update call to mips_classify_address.
3419 (mips_legitimate_address_p): Likewise.
3420 (mips_reloc, mips_lui_reloc): Delete.
3421 (mips_force_temporary): Only use the given temporary if no_new_pseudos.
3422 Use emit_move_insn.
3423 (mips_split_symbol, mips_unspec_address): New functions.
3424 (mips_unspec_offset_high): New function.
3425 (mips_load_got): Replace reloc argument with a symbol_type.
3426 Use mips_unspec_address to create the address and put it in a
3427 LO_SUM with the base register.
3428 (mips_load_got16, mips_load_got32): Delete.
3429 (mips_emit_high, mips_legitimize_symbol): Delete.
3430 (mips_gotoff_global): New function.
3431 (mips_load_got_page, mips_load_got_global): New functions.
3432 (mips_legitimize_symbol): Inline handling of LO_SUM splits.
3433 (mips_legitimize_const_move): Likewise. Remove HIGH handling.
3434 Inline code to handle constants plus invalid offsets. Use
3435 mips_split_symbol to legitimize constant pool addresses.
3436 (mips_delegitimize_address): Delete.
3437 (mips_rtx_costs): Give legitimate symbolic constants and CONST_DOUBLEs
3438 a cost of 1 insn. Give the rest a cost of CONSTANT_POOL_ADDRESS.
3439 (mips_subword): Pass memrefs through mips_rewrite_small_data.
3440 (mips_output_move): Remove use of mips_classify_constant.
3441 (mips_expand_call): Use mips_unspec_offset_high to calculate the
3442 high part of the GOT address for calls to global functions.
3443 (override_options): Initialize mips_split_p[], mips_lo_relocs[]
3444 and mips_hi_relocs[].
3445 (print_operand): Use print_operand_reloc to handle '%h' and '%R'.
3446 Remove use of mips_classify_constant.
3447 (mips_reloc_string): Delete.
3448 (print_operand_reloc): New function.
3449 (print_operand_address): Update call to mips_classify_address.
3450 (mips_rewrite_small_data_p, small_data_pattern_1): New functions.
3451 (small_data_pattern): New predicate.
3452 (mips_rewrite_small_data_1, mips_rewrite_small_data): New functions.
3453 (mips_function_has_gp_insn): New function.
3454 (mips_global_pointer): Use it.
3455 (mips_gp_insn): Delete.
3456 (mips_expand_prologue): When compiling for n32/n64 abicalls, use a
3457 single loadgp pattern to initialize $gp. Pass it the offset of _gp
3458 from the start of the current function.
3459 (mips16_gp_pseudo_reg): Revert last patch.
3460
3461 * config/mips/mips.md (RELOC_*): Delete.
3462 (UNSPEC_LOADGP, UNSPEC_FIRST_ADDRESS): New constants.
3463 (got): New insn attribute.
3464 (type): Set to "load" if got == load.
3465 (length): Set to 4 if got == load, 8 if got == xgot_high.
3466 (lui[sd]i): Delete.
3467 (*xgot_hi[sd]i, *xgot_lo[sd]i): New patterns.
3468 (*got_disp[sd]i, *got_page[sd]i): Likewise.
3469 (*low[sd]i): Change constraints to "d". Add a new define_split to
3470 rewrite small data constants into LO_SUMs.
3471 (loadgp): New insns.
3472
34732003-11-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3474
3475 * config/mips/_tilib.c: Use _ABI* in _MIPS_SIM tests.
3476
34772003-11-04 DJ Delorie <dj@redhat.com>
3478
3479 * config/v850/v850.md (mulhisi3): Expand the const_int case
3480 separately to avoid trying to sign extend the const.
3481
34822003-11-04 Richard Sandiford <rsandifo@redhat.com>
3483
3484 * emit-rtl.c (copy_rtx_if_shared): Don't allow MEMs with constant
3485 addresses to be shared.
3486 (force_const_mem): Return a copy of the pool entry.
3487
34882003-11-03 Andreas Jaeger <aj@suse.de>
3489
3490 * Makefile.in (GCC_CFLAGS): Remove @WERROR@ again.
3491
34922003-11-03 Kelley Cook <kcook@gcc.gnu.org>
3493
3494 * Makefile.in (cpp.dvi): New target split from cpp.info.
3495 (gcc.dvi): New target split from gcc.info.
3496 (gccint.dvi): New target split from gccint.info.
3497 (cppinternals.dvi): New target split from cppinternals.info
3498 (gccinstall.info): New specific rule.
3499 (gccinstall.dvi): Likewise.
3500 (dvi): Move targets to $(docobjdir).
3501 ($(docobjdir)/%.dvi): New implicit rule.
3502
35032003-11-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3504
3505 * doc/gty.texi (tag, desc): Say more about role of desc values in
3506 selecting between tags.
3507
35082003-11-03 Alexander Kabaev <ak03@gte.com>
3509
3510 * real.c (encode_ieee_single): Ensure proper promotion.
3511
35122003-11-03 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
3513
3514 * doc/contrib.texi: Add Giovanni Bajo, Dara Hazeghi, Falk Hueffner,
3515 and Andrew Pinski.
3516
35172003-11-03 Syd Polk <spolk@apple.com>
3518
3519 * config/rs6000/rs6000.c (rs6000_override_options): Add G3, G4, and G5
3520 marketing names to the list of supported processors.
3521 * config/rs6000/rs6000.h: Ditto.
3522 * doc/invoke.texi: Ditto.
3523 * config.gcc: Ditto.
3524
35252003-11-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3526
3527 * fixinc/inclhack.def (stdio_va_list): Allow tab before va_list.
3528 Merge two substitutions.
3529 * fixinc/fixincl.x: Regenerate.
3530 Fixes PR bootstrap/12666.
3531
35322003-11-03 Joseph S. Myers <jsm@polyomino.org.uk>
3533
3534 * doc/install-old.texi: Remove VMS documentation.
3535
35362003-11-03 Jan Hubicka <jh@suse.cz>
3537
3538 * i386.c (override_options): Remove hack enabling 128bit long double
3539 commited by accident.
3540
35412003-11-02 Per Bothner <per@bothner.com>
3542
3543 * c-opts.c (needValue): Do cpp_find_main_file before processing
3544 any imacros flags, so pfile->main_file is set for the latter.
3545
35462003-11-03 Andreas Jaeger <aj@suse.de>
3547 Zack Weinberg <zack@codesourcery.com>
3548
3549 * Makefile.in (GCC_CFLAGS): Allow blacklisting of warnings.
3550 (SYSCALLS.c.X-warn): Suppress warnings.
3551
35522003-11-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3553
3554 PR optimization/12845
3555 * pa.c (output_cbranch): Use cmpb for DImode comparisons with 0.
3556
35572003-11-02 Zack Weinberg <zack@codesourcery.com>
3558
3559 * print-rtl.c (print_rtx): Call PRINT_REG with second argument -1.
3560 * config/i386/i386.c (print_reg): Abort on a virtual register
3561 if code != -1; not if file == asm_out_file.
3562 * config/i386/i386.h (PRINT_REG): Document meaning of CODE == -1.
3563 (DEBUG_PRINT_REG): Delete, unused.
3564
35652003-11-02 Andreas Schwab <schwab@suse.de>
3566
3567 * config/ia64/fde-glibc.c (_GNU_SOURCE): Define to 1 instead of
3568 empty to avoid conflict with the definition from configure.
3569
35702003-11-02 Roger Sayle <roger@eyesopen.com>
3571
3572 PR optimization/10817
3573 * ifcvt.c (noce_emit_move_insn): Improve documentation comment.
3574 (noce_try_move): New function to optimize an if-the-else into an
3575 unconditional move, i.e. "if (a!=b) x=a; else x=b" into "x=a".
3576 (noce_process_if_block): Attempt simplification with noce_try_move.
3577
3578 * simplify-rtx.c (simplify_ternary_operation): Some minor fixes
3579 and improvements to the optimizations of IF_THEN_ELSE expressions.
3580 (simplify_subreg): Silence signed/unsigned comparison warning.
3581
35822003-11-02 Richard Sandiford <rsandifo@redhat.com>
3583
3584 * Makefile.in (targhooks.o, reload.o): Update dependencies.
3585 (GTFILES): Add targhooks.c.
3586 (gt-targhooks.h): New rule; depend on s-gtype.
3587 * target.h (direct_pool_load_p): New hook.
3588 * target-def.h (TARGET_DIRECT_POOL_LOAD_P): New macro.
3589 (TARGET_INITIALIZER): Include it.
3590 * targhooks.h (default_direct_pool_load_p): Declare.
3591 (hook_bool_machine_mode_true): Declare.
3592 * targhooks.c: Include insn-config.h, recog.h, ggc.h and
3593 gt-targhooks.h.
3594 (pool_symbol): New variable.
3595 (default_direct_pool_load_p): New function.
3596 (hook_bool_machine_mode_true): New function.
3597 * reload.c: Include target.h.
3598 (find_reloads): If an alternative will force a constant into memory,
3599 count an extra reload if constant pool symbols are not valid
3600 addresses. If an alternative uses memory to move values between
3601 registers, count the move as two reloads rather than one.
3602 * config/s390/s390.c (TARGET_DIRECT_POOL_LOAD_P): Define.
3603 * doc/tm.texi (TARGET_DIRECT_POOL_LOAD_P): Document.
3604
36052003-11-02 Eric Botcazou <ebotcazou@libertysurf.fr>
3606
3607 PR optimization/12799
3608 * postreload.c (reload_cse_move2add): Generate the add2
3609 patterns manually.
3610
36112003-11-02 Eric Botcazou <ebotcazou@libertysurf.fr>
3612
3613 * config/sparc/sparc.c (function_arg_partial_nregs) [TARGET_ARCH64]:
3614 Return 0 for all complex modes whose size is lesser or equal to
3615 a word. Add a ??? comment for the condition used with 16-byte
3616 aligned modes.
3617
36182003-11-01 Kelley Cook <kcook@gcc.gnu.org>
3619
3620 * .cvsignore: Remove c-parse* and tradcif.c.
3621 * objc/.cvsignore: Delete.
3622
36232003-11-01 Roger Sayle <roger@eyesopen.com>
3624
3625 * unwind-sjlj.c (_Unwind_GetCFA): Return (_Unwind_Word)0 instead
3626 of NULL.
3627
36282003-11-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3629
3630 * som.h (DO_GLOBAL_DTORS_BODY): Change to C90 declaration.
3631
3632 * libgcc2.c (SYMBOL__MAIN): Provide C90 declaration.
3633
3634 * collect2.c (scan_libraries): Fix typos.
3635
3636 PR preprocessor/12847
3637 * cppfiles.c, cppexp.c, cpperror.c, cpplib.h, cpplib.c, cpplex.c,
3638 cppinit.c, cpptrad.c, cppmacro.c, fix-header.c, cpppch.c, c-pch.c,
3639 c-incpath.c, cppcharset.c (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN,
3640 DL_ERROR, DL_ICE, DL_EXTRACT, DL_WARNING_P): Prefix macro names with
3641 "CPP_".
3642
36432003-11-01 Fariborz Jahanian <fjahanian@apple.com>
3644
3645 * config/rs6000/rs6000.c (rs6000_mixed_function_arg): Correct
3646 no_units calculation.
3647
36482003-11-01 Andreas Jaeger <aj@suse.de>
3649
3650 * unwind-dw2.c (_Unwind_FrameState): Remove commas at end of
3651 enumeration list.
3652
36532003-11-01 Andreas Schwab <schwab@suse.de>
3654
3655 * config/ia64/sysv4.h (SDATA_SECTION_FUNCTION): Update to C90
3656 prototypes.
3657 (SBSS_SECTION_FUNCTION): Likewise.
3658
36592003-11-01 Andreas Jaeger <aj@suse.de>
3660
3661 * Makefile.in (GCC_CFLAGS): Add @WERROR@ for target files.
3662
36632003-11-01 Andreas Tobler <a.tobler@schweiz.ch>
3664
3665 * config/rs6000/sysv4.h (EXTRA_SECTION_FUNCTIONS): Update to C90
3666 prototypes.
3667
36682003-11-01 Andreas Jaeger <aj@suse.de>
3669
3670 * unwind-dw2.c (_Unwind_FindEnclosingFunction): Constify variable.
3671 (uw_frame_state_for): Constify variables.
3672 (extract_cie_info): Constify first argument.
3673
3674 * unwind-dw2-fde-darwin.c: Adjust prototype of
3675 _Unwind_Find_registered_FDE for recent changes.
3676 (examine_objects): Constify return value and local variable result.
3677 (_Unwind_Find_FDE): Constify return value and local variable ret.
3678
36792003-10-31 Per Bothner <pbothner@apple.com>
3680
3681 * c-opts.c (finish_options): Change to returns boolean - false iff
3682 the call to cpp_find_main_file fails.
3683 (c_common_init): Skip preprocess_file if finish_options failed.
3684 (c_common_parse_file): Break if finish_options failed.
3685 Fixes PR preprocessor/12545.
3686
36872003-10-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3688
3689 * aclocal.m4: Blacklist ultrix* for mmap file.
3690 * configure: Rebuilt.
3691
3692 * function.c (assign_parms): Add ATTRIBUTE_UNUSED to variable
3693 reg_parm_stack_space.
3694 * toplev.c (default_get_pch_validity): Fix warning.
3695
3696 * vax.c: Include toplev.h.
3697 (vax_init_libfuncs): Fix typo (umod).
3698 * vax.h (ASM_COMMENT_START): Define.
3699 (PRINT_OPERAND): Fix warning when HOST_WIDE_INT is a long long.
3700
37012003-10-31 Roger Sayle <roger@eyesopen.com>
3702
3703 PR middle-end/11968
3704 * expr.c (expand_expr <MULT_EXPR>): Remove inappropriate and
3705 confusing comment; distributivity isn't handled in expand_expr.
3706 * fold-const.c (extract_muldiv_1 <PLUS_EXPR>): Allow overflow
3707 in distributivity, if wrap-around semantics are specified with
3708 -fwrapv.
3709
37102003-11-01 Alan Modra <amodra@bigpond.net.au>
3711
3712 PR 12315
3713 * final.c (profile_function): Allow for NULL svrtx.
3714
37152003-10-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3716
3717 * pa.c (pa_select_section): Use new style declaration.
3718 * som.h (readonly_data): Likewise.
3719
37202003-10-31 Kelley Cook <kcook@gcc.gnu.org>
3721
3722 * config/rs6000/rs6000.c: Update to C90 prototypes.
3723
37242003-10-31 Richard Earnshaw <rearnsha@arm.com>
3725
3726 PR target/7513
3727 * arm.h (CONDITIONAL_REGISTER_USAGE): Disable use of LR in Thumb
3728 code.
3729
37302003-10-31 Andreas Jaeger <aj@suse.de>,
3731 Zack Weinberg <zack@codesourcery.com>
3732
3733
3734 * crtstuff.c (__register_frame_info, __register_frame_info_bases)
3735 (__deregister_frame_info, __deregister_frame_info_bases):
3736 Constify void * argument.
3737 * unwind-dw2-fde.h (struct fde_vector):
3738 Constify 'orig_data' and 'array' fields.
3739 (__register_frame_info, __register_frame_info_bases)
3740 (__deregister_frame_info, __deregister_frame_info_bases):
3741 Constify void * argument.
3742 (get_cie, next_fde, _Unwind_Find_FDE): Constify arguments,
3743 return values, and casts of type fde *, struct dwarf_fde *,
3744 and struct dwarf_cie *.
3745 * unwind-dw2-fde.c (__register_frame_info, __register_frame_info_bases)
3746 (__deregister_frame_info, __deregister_frame_info_bases):
3747 Constify void * argument.
3748 (get_cie_encoding, ): Constify struct dwarf_cie * argument.
3749 (get_fde_encoding, fde_unencoded_compare, fde_single_encoding_compare)
3750 (fde_mixed_encoding_compare, fde_compare_t, start_fde_sort, fde_insert)
3751 fde_split, SWAP, frame_downheap, frame_heapsort)
3752 (classify_object_over_fdes, add_fdes, linear_search_fdes,
3753 binary_search_unencoded_fdes, binary_search_single_encoding_fdes,
3754 binary_search_mixed_encoding_fdes, search_object, _Unwind_Find_FDE):
3755 Constify arguments, local variables, return values, and casts
3756 of type fde *, fde **, struct dwarf_fde *, and struct dwarf_cie *.
3757 Use const pointer types in sizeof expressions, for clarity.
3758 * unwind-dw2-fde-glibc.c
3759 (_Unwind_find_registered_FDE, _Unwind_find_FDE): Constify return value.
3760 (struct unw_eh_callback_data): Constify 'ret' field.
3761
37622003-10-31 Fariborz Jahanian <fjahanian@apple.com>
3763 David Edelsohn <edelsohn@gnu.org>
3764
3765 * config/rs6000/rs6000.c (rs6000_mixed_function_arg): New.
3766 (function_arg): Call it.
3767 (rs6000_function_value): Widen integral return value to mode based
3768 on TARGET_32BIT, not word_mode.
3769 * config/rs6000/rs6000.h (PROMOTE_MODE): Likewise.
3770 (UNITS_PER_ARG): New.
3771 (RS6000_ARG_SIZE): Use it.
3772
37732003-10-31 Gerald Pfeifer <gerald@pfeifer.com>
3774
3775 * .cvsignore: No longer ignore gengtype-lex.c, gengtype-yacc.c,
3776 and gengtype-yacc.h.
3777
37782003-10-31 Richard Earnshaw <rearnsha@arm.com>
3779
3780 PR optimization/8896
3781 * postreload.c (reload_combine): Check that REGY doesn't die in an
3782 insn of the form (set (regx) (plus (regx) (regy))), ie REGX != REGY.
3783
37842003-10-31 Josef Zlomek <zlomekj@suse.cz>
3785
3786 PR/10239
3787 * cfgrtl.c (delete_insn): Decrease LABEL_NUSES for all REG_LABEL notes.
3788
37892003-10-31 Josef Zlomek <zlomekj@suse.cz>
3790
3791 PR/11640
3792 * cfgrtl.c (try_redirect_by_replacing_jump): Move jump
3793 immediatelly before BARRIER.
3794
37952003-10-31 Kelley Cook <kcook@gcc.gnu.org>
3796
3797 * Makefile.in (STRICT2_WARN): Add -Wold-style-definition.
3798
37992003-10-31 Richard Earnshaw <rearnsha@arm.com>
3800
3801 PR target/11271
3802 * reload.c (find_reloads_address): Handle any register in
3803 (PLUS (PLUS (REG) (REG)) (CONST_INT).
3804
38052003-10-31 Richard Earnshaw <rearnsha@arm.com>
3806
3807 * ggc-page.c (ggc_pch_read): Wrap call to poison_pages in
3808 ENABLE_GC_CHECKING not in GGC_POISON.
3809
38102003-10-31 Nathanael Nerode <neroden@gcc.gnu.org>
3811
3812 PR bootstrap/9863
3813 * configure.in: Bail out if awk is missing.
3814 * configure: Regenerate.
3815
3816 PR ada/12761
3817 * Makefile.in: Move default definitions of X_ADA_CFLAGS,
3818 T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from ada/Make-lang.in to here.
3819
38202003-10-30 Richard Henderson <rth@redhat.com>
3821
3822 * c-objc-common.c (c_tree_printer): Handle types correctly.
3823 Factor code a bit.
3824
38252003-10-30 Kelley Cook <kcook@gcc.gnu.org>
3826
3827 * value-prof.c, web.c: Update to C90.
3828
38292003-10-30 Eric Christopher <echristo@redhat.com>
3830
3831 * function.c (purge_addressof_1): Add case for REG_RETVAL
3832 notes when modes are unequal.
3833
38342003-10-31 Jan Hubicka <jh@suse.cz>
3835
3836 * i386-modes.def: Add XFmode format adjustment.
3837
38382003-10-30 Jan Hubicka <jh@suse.cz>
3839
3840 * real.c (encode_ieee_extended): Back out previous patch.
3841
38422003-10-30 Jan Hubicka <jh@suse.cz>
3843
3844 * real.c (encode_ieee_extended): Initialize whole array.
3845 * reg-stack.c (move_for_stack_reg0: Use always XFmode.
3846 * i386-modes.def: Change definitions of TFmode and XFmode.
3847 * i386.c (classify_argument): Rename TFmodes to XFmodes; add new TFmode
3848 code.
3849 (construct_container): Allow constructing of TFmode integer containers.
3850 (ix86_return_in_memory): XFmode is not returned in memory.
3851 (init_ext_80387_constants): Always use XFmode.
3852 (print_operand): Likewise.
3853 (ix86_prepare_fp_compare_regs): Likewise.
3854 (split_to_parts): Deal with TFmode.
3855 (split_long_move): Simplify.
3856 (ix86_init_mmx_sse_builtins): Add __float80, __float128.
3857 (ix86_memory_move_cost): Do not confuse TFmode.
3858 * i386.h (LONG_DOUBLE_TYPE_SIZE): Set to 96.
3859 (IS_STACK_MODE): TFmode is not stack mode.
3860 (HARD_REGNO_NREGS, CLASS_MAX_NREGS): Deal nicely with XFmode.
3861 (VALID_SSE_REG_MODE): Allow TFmode.
3862 (VALID_FP_MODE_P): Disallow TFmode.
3863 (VALID_INT_MODE_P): Allow TFmode in 64bit mode.
3864 * i386.md (TFmode patterns): Kill.
3865 (movtf, motf_rex64): New patterns.
3866
38672003-10-30 Richard Sandiford <rsandifo@redhat.com>
3868
3869 * config/mips/mips.md (adddi3): Fix typo in mips16 stack pointer code.
3870
38712003-10-30 Richard Sandiford <rsandifo@redhat.com>
3872
3873 * config/mips/mips.md (mov_lwl): Use memory_operand where appropriate.
3874 (mov_lwr, mov_swl, mov_swr): Likewise.
3875 (mov_ldl, mov_ldr, mov_sdl, mov_sdr): Likewise.
3876
38772003-10-30 Richard Sandiford <rsandifo@redhat.com>
3878
3879 * config/mips/mips.c (mips_global_pointer): Don't try to use $25.
3880
38812003-10-30 Richard Henderson <rth@redhat.com>
3882
3883 * config/mips/mips.c (mips_build_builtin_va_list): Use runtime
3884 test for irix6 rather than preprocessor test.
3885
38862003-10-30 Richard Henderson <rth@redhat.com>
3887
3888 * cppcharset.c (one_utf8_to_utf16): Initialize 's' to silence warning.
3889
38902003-10-30 Ulrich Weigand <uweigand@de.ibm.com>
3891
3892 * config/s390/s390.c (struct machine_function): Use save_return_addr_p
3893 as a general flag that the return address register needs to be saved,
3894 not necessarily because of __builtin_return_addr (0).
3895 (s390_split_branches): Remove TEMP_REG and TEMP_USED arguments,
3896 remove special handling of zSeries machines.
3897 (s390_optimize_prolog): Remove TEMP_USED argument, treat the return
3898 register as a regular register on zSeries machines.
3899 (s390_reorg): Adjust calls to s390_split_branches and
3900 s390_optimize_prolog.
3901 (s390_frame_info): On zSeries machines, do not assume the return
3902 register is always used. Update regs_ever_live with current data
3903 for the special registers.
3904 (s390_emit_epilogue): Use save_return_addr_p to determine whether
3905 the return register was saved.
3906 * config/s390/s390.h (CONDITIONAL_REGISTER_USAGE): Do not mark
3907 RETURN_REGNUM fixed on zSeries machines.
3908 (REG_ALLOC_ORDER): Use RETURN_REGNUM last.
3909 * config/s390/s390.md ("*doloop_si"): Handle branch overflow
3910 via ahi-jgne pair on zSeries machines.
3911 ("*doloop_di"): Likewise.
3912 ("*doloop_di_long"): Remove.
3913
39142003-10-30 Richard Earnshaw <rearnsha@arm.com>
3915
3916 * arm.c (arm_override_options): Revert change of arm_constant_limit
3917 when optimizing for size.
3918
39192003-10-29 Richard Henderson <rth@redhat.com>
3920
3921 * fold-const.c (fold_single_bit_test): Convert the input to the
3922 operational intermediate type.
3923
39242003-10-29 Richard Henderson <rth@redhat.com>
3925
3926 * builtins.c (std_build_builtin_va_list): New.
3927 * expr.h (std_build_builtin_va_list): Declare.
3928 * defaults.h (BUILD_VA_LIST_TYPE): New.
3929 * system.h (BUILD_VA_LIST_TYPE): Poison.
3930 * target-def.h (TARGET_BUILD_BUILTIN_VA_LIST): New.
3931 * target.h (struct gcc_target): Add build_builtin_va_list.
3932 * tree.c (build_common_tree_nodes_2): Use it.
3933
3934 * config/alpha/alpha-protos.h, config/alpha/alpha.c,
3935 config/alpha/alpha.h, config/alpha/unicosmk.h,
3936 config/d30v/d30v-protos.h, config/d30v/d30v.c, config/d30v/d30v.h,
3937 config/i386/i386-protos.h, config/i386/i386.c, config/i386/i386.h,
3938 config/i860/i860-protos.h, config/i860/i860.c, config/i860/i860.h,
3939 config/i960/i960-protos.h, config/i960/i960.c, config/i960/i960.h,
3940 config/mips/iris6.h, config/mips/mips-protos.h, config/mips/mips.c,
3941 config/mips/mips.h, config/rs6000/rs6000-protos.h,
3942 config/rs6000/rs6000.c, config/rs6000/rs6000.h,
3943 config/s390/s390-protos.h, config/s390/s390.c, config/s390/s390.h,
3944 config/sh/sh-protos.h, config/sh/sh.c, config/sh/sh.h,
3945 config/xtensa/xtensa-protos.h, config/xtensa/xtensa.c,
3946 config/xtensa/xtensa.h: Rename foo_build_va_list to
3947 foo_build_builtin_va_list; make it static. Define
3948 TARGET_BUILD_BUILTIN_VA_LIST. Remove BUILD_VA_LIST_TYPE.
3949 Update protos.
3950
3951 * config/i386/i386.c (ix86_expand_carry_flag_compare): Make static.
3952 * config/iq2000/iq2000.h (BUILD_VA_LIST_TYPE): Remove.
3953
39542003-10-29 James E Wilson <wilson@specifixinc.com>
3955
3956 * recog.c (asm_operand_ok): Add missing break after case 'X'.
3957 Change if statements to else if statements in default case.
3958 (extract_constrain_insn_cached): Fix misspelling of constrain_operands
3959 in comment.
3960 (constrain_operands_cached): Likewise.
3961 (constrain_operands): Change if statements to else if statements in
3962 default case.
3963 * reload.c (find_reloads): Likewise.
3964
39652003-10-29 Richard Henderson <rth@redhat.com>
3966
3967 * config/m68k/m68k.c (notice_update_cc): Clear cc status for
3968 shifts and rotates.
3969
39702003-10-30 Alan Modra <amodra@bigpond.net.au>
3971
3972 * config/rs6000/rs6000.md: Remove duplicate pattern.
3973
39742003-10-29 Hans-Peter Nilsson <hp@axis.com>
3975
3976 * real.c (do_divide): Initialize result with a 0.
3977
3978 * configure.in <enable-checking for valgrind>: Look for
3979 <valgrind/memcheck.h> first. AC_DEFINE HAVE_VALGRIND_MEMCHECK_H
3980 if it exists.
3981 * configure, config.in: Regenerate.
3982 * ggc-common.c [ENABLE_VALGRIND_CHECKING &&
3983 HAVE_VALGRIND_MEMCHECK_H]: Include <valgrind/memcheck.h>. Use
3984 #elif for other alternatives.
3985 * ggc-page.c: Ditto.
3986 * ggc-zone.c: Don't assume <valgrind/memcheck.h>; instead copy
3987 include structure from ggc-common.c.
3988
39892003-10-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3990
3991 * pa-linux.h (ASM_OUTPUT_ADDR_VEC_ELT): Use label in big switch ELTs.
3992 (ASM_OUTPUT_ADDR_DIFF_ELT): Use label difference in big switch ELTs.
3993 * pa.c (pa_adjust_insn_length): Check for btable branches using
3994 attribute TYPE_BTABLE_BRANCH.
3995 (pa_reorg): Simplify.
3996 * pa.h (CASE_VECTOR_MODE): Change big switch mode to SImode.
3997 (ASM_OUTPUT_ADDR_VEC_ELT): As above.
3998 (ASM_OUTPUT_ADDR_DIFF_ELT): As above.
3999 * pa.md (btable_branch): New instruction type.
4000 (in_branch_delay, in_nullified_branch_delay, in_call_delay): Disallow
4001 btable branches.
4002 (define_delay): Add btable branches to insn types that may have an
4003 insn in the delay position.
4004 (Z2, Z3): Add btable branch to list.
4005 Simplify unamed pattern set copy pic_label_operand to register. Add
4006 PA 2.0 variant.
4007 (short_jump): New jump for use in branch tables.
4008 (casesi, casesi0): Revise for new branch table formats.
4009 (casesi32, casesi32p, casesi64p): New casesi patterns.
4010 (indirect_jump): Move.
4011
40122003-10-29 David Edelsohn <edelsohn@gnu.org>
4013
4014 * config/rs6000/rs6000.h (UNITS_PER_WORD): Revert to
4015 !TARGET_POWERPC64.
4016 (UNITS_PER_GPR_WORD): Delete.
4017 (HARD_REGNO_NREGS): Revert to UNITS_PER_WORD.
4018 (HARD_REGNO_MODE_OK): Same.
4019 (CLASS_MAX_NREGS): Same.
4020
40212003-10-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4022
4023 * pa.h (ASM_COMMENT_START): Define.
4024
40252003-10-29 Zack Weinberg <zack@codesourcery.com>
4026
4027 * genmodes.c (complete_mode): Record MODE_CC, MODE_INT,
4028 MODE_FLOAT, and MODE_PARTIAL_INT modes as having one
4029 component, not zero.
4030
40312003-10-29 Andreas Schwab <schwab@suse.de>
4032
4033 * config/ia64/t-ia64 (LIB2ADDEH): Add $(srcdir)/gthr-gnat.c.
4034
40352003-10-29 Eric Botcazou <ebotcazou@libertysurf.fr>
4036
4037 * config/sparc/sparc.c (function_arg_partial_nregs) [TARGET_ARCH64]:
4038 Never return 1 for complex integral modes whose size is lesser or
4039 equal to a word.
4040 (function_arg_pass_by_reference) [TARGET_ARCH64]: Mention CTImode
4041 in the comment.
4042 (function_arg_advance) [TARGET_ARCH64]: Don't special-case complex
4043 modes.
4044 (sparc_va_arg) [TARGET_ARCH64]: Handle any types whose size is
4045 greater than 16 bytes by reference.
4046
40472003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4048
4049 * config/ia64/ia64.c (ia64_assemble_integer): Test POINTER_SIZE,
4050 not TARGET_ILP32.
4051 (ia64_initialize_trampoline): Use globalize_label target call.
4052
40532003-10-29 Andreas Schwab <schwab@suse.de>
4054
4055 * doc/install.texi (Building): Add a sentence about building Ada
4056 for a canadian cross.
4057
40582003-10-28 Zack Weinberg <zack@codesourcery.com>
4059
4060 * config/ia64/ia64.c (cmptf_libfunc): New static.
4061 (ia64_expand_compare): Add logic to open-code calls to
4062 _U_Qfcmp for TFmode comparisons.
4063 (ia64_hpux_init_libfuncs): Initialize cmptf_libfunc.
4064 Set libfuncs for TFmode eq/ne/gt/ge/lt/gt to 0; these should
4065 never be generated anymore.
4066 * config/ia64/ia64.md (cmptf): New expander.
4067
40682003-10-28 Zack Weinberg <zack@codesourcery.com>
4069
4070 * ia64.md (UNSPEC_SETF_EXP,UNSPEC_FR_SQRT_RECIP_APPROX): New constants.
4071 (*sqrt_approx): New instruction pattern for approximate square roots.
4072 (*setf_exp_xf): New instruction pattern for exponentiation.
4073 (*maddxf4_alts_truncsf): New instruction pattern for truncation.
4074 (sqrtsf2_internal_thr): New define_and_split implementing
4075 throughput-optimized inline calculation of SFmode square root.
4076 (sqrtdf2_internal_thr): Likewise for DFmode.
4077 (sqrtxf2_internal_thr): Likewise for XFmode.
4078 (sqrtsf2, sqrtdf2, sqrtxf2): New expanders to choose between
4079 latency- and throughput-optimized square root algorithms.
4080 * ia64.h (MASK_INLINE_SQRT_LAT, MASK_INLINE_SQRT_THR,
4081 TARGET_INLINE_SQRT_LAT, TARGET_INLINE_SQRT_THR, TARGET_INLINE_SQRT):
4082 New macros.
4083 (TARGET_SWITCHES): Add -minline-sqrt-min-latency and
4084 -minline-sqrt-max-throughput.
4085 * ia64.c (ia64_override_options): If both -minline-sqrt-min-latency
4086 and -minline-sqrt-max-throughput are given, notify the user
4087 that both options cannot be used simultaneously.
4088 If -minline-sqrt-min-latency is given, notify the user that
4089 this mode is not yet implemented.
4090 (rtx_needs_barrier): Reformat initial comment to obey
4091 72-character width limit. Support UNSPEC_SETF_EXP and
4092 UNSPEC_FR_SQRT_RECIP_APPROX.
4093
40942003-10-29 Alan Modra <amodra@bigpond.net.au>
4095
4096 * config/rs6000/rs6000.md (movdf_softfloat64): Allow dummy ctr,ctr
4097 moves.
4098
40992003-10-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4100
4101 PR target/11598
4102 PR libgcj/10610
4103 * config/rs6000/sysv4.h (PREFERRED_STACK_BOUNDARY): New macro.
4104
41052003-10-28 Richard Earnshaw <rearnsha@arm.com>
4106
4107 * arm.c (arm_output_epilogue): When using a frame pointer, don't emit
4108 an extra stack adjustment insn if the stack pointer is already
4109 pointing at the right place.
4110 (use_return_insn): Allow a return insn to be used when we have a
4111 frame pointer if the stack pointer is in the right place.
4112 (output_return_instruction): Handle it.
4113
41142003-10-28 Andreas Jaeger <aj@suse.de>
4115
4116 * ggc-zone.c (check_cookies): Add missing variable.
4117 Add void to prototypes.
4118
41192003-10-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4120
4121 * config/mips/irix6-libc-compat.c (inet_makeaddr): Prototype.
4122 * crtstuff.c (__do_global_ctors_1): Move prototype.
4123 * unwind-dw2.c (NO_SIZE_OF_ENCODED_VALUE): Define when
4124 appropriate.
4125 * unwind-sjlj.c (_Unwind_GetCFA, _Unwind_FindEnclosingFunction):
4126 Mark parameter with __attribute__((unused)).
4127
41282003-10-27 Zack Weinberg <zack@codesourcery.com>
4129
4130 * c-decl.c (pushdecl): Clarify comment.
4131
41322003-10-27 Arnaud Charlet <charlet@act-europe.fr>
4133
4134 * doc/install.texi: Update instructions for Ada cross builds
4135
4136 PR ada/5909:
4137 * doc/sourcebuild.texi: Document Ada test suite.
4138
41392003-10-27 Stephane Carrez <stcarrez@nerim.fr>
4140
4141 * config/m68hc11/m68hc11.c: Convert to ISO C90.
4142 * config/m68hc11/m68hc11-protos.h: Likewise.
4143
41442003-10-27 Jan Hubicka <jh@suse.cz>
4145 Eric Botcazou <ebotcazou@libertysurf.fr>
4146
4147 * toplev.c (enum dump_file_index, dump_file): Fix ordering of
4148 webizer pass dump.
4149
41502003-10-27 Jakub Jelinek <jakub@redhat.com>
4151 Jan Hubicka <jh@suse.cz>
4152
4153 * reload1.c (struct elim_table): Change offset, initial_offset and
4154 previous_offset fields to HOST_WIDE_INT.
4155 (offsets_at): Change from int to HOST_WIDE_INT.
4156 (reload): Adjust offsets_at initialization.
4157 (eliminate_regs_in_insn): Change type of offset to HOST_WIDE_INT.
4158 (verify_initial_elim_offsets): Change type of t to HOST_WIDE_INT.
4159 * config/i386/i386.c (ix86_compute_frame_layout): Change offset type
4160 to HOST_WIDE_INT. Don't save regs using mov for huge frame sizes
4161 if TARGET_64BIT.
4162 (pro_epilogue_adjust_stack): New function.
4163 (ix86_expand_prologue, ix86_expand_epilogue): Use it.
4164 * config/i386/i386.md (pro_epilogue_adjust_stack): Remove.
4165 (pro_epilogue_adjust_stack_1): Remove * in front of name.
4166 (pro_epilogue_adjust_stack_rex64): Handle -2147483648 properly.
4167 (pro_epilogue_adjust_stack_rex64_2): New insn.
4168
4169 * config/i386/i386.c (ix86_expand_epilogue): Fix comment typo.
4170
4171 * config/i386/i386.c (ix86_expand_call): Replace 40 with
4172 FIRST_REX_INT_REG + 3 /* R11 */.
4173
41742003-10-26 Richard Henderson <rth@redhat.com>
4175
4176 * config/alpha/alpha.md (attr cannot_copy): New.
4177 (call_osf_2_er, call_value_osf_2_er, ldgp_er_1, ldgp_er_2,
4178 prologue_ldgp_er_2, prologue_ldgp_1): Set it.
4179 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Test it.
4180
41812003-10-26 Daniel Berlin <dberlin@dberlin.org>
4182
4183 * ggc-zone.c: New file, zone allocating collector.
4184 * configure: Accept zone option for --with-gc
4185 * configure.in: Ditto.
4186 * ggc.h (ggc_pch_count_object): Pass bool indicating
4187 stringiness. Update all callers.
4188 (ggc_pch_alloc_object): Ditto.
4189 (ggc_pch_write_object): Ditto.
4190 (ggc_alloc_rtx): Use typed allocation, since all RTX's are of a single
4191 type.
4192 (ggc_alloc_rtvec): Ditto.
4193 (ggc_alloc_tree): Use zone allocation, since some things using this macro
4194 aren't a single typecode.
4195 * ggc-none.c (ggc_alloc_typed): New function.
4196 (ggc_alloc_zone): Ditto.
4197 * ggc-page.c: Ditto on both functions.
4198
41992003-10-26 Gunther Nikl <gni@gecko.de>
4200
4201 * config/m68k/m68k.c (m68k_compute_frame_layout): Ensure FPU related
4202 frame information is always valid.
4203 (m68k_output_function_prologue): Remove superfluous TARGET_68881
4204 test; fix formatting.
4205
42062003-10-26 Gunther Nikl <gni@gecko.de>
4207
4208 * config/m68k/m68k.c (m68k_compute_frame_layout): Swap reg_mask and
4209 reg_rev_mask computation.
4210 (m68k_output_function_prologue): Fix usage of current_frame (one typo
4211 and one missing); use reg_rev_mask not reg_mask.
4212 (m68k_output_function_epilogue): Fix usage of current_frame;
4213 use fpu_rev_mask not fpu_mask.
4214
42152003-10-26 Bernardo Innocenti <bernie@develer.com>
4216
4217 * config/m68k/m68k.c (m68k_output_function_prologue): Eliminate
4218 num_saved_regs, use current_frame.reg_no instead.
4219
42202003-10-26 Bernardo Innocenti <bernie@develer.com>
4221 Paul Dale <pauli@snapgear.com>
4222
4223 * doc/extend.texi (interrupt_handler): Add m68k to the
4224 list of processors implementing it.
4225 * doc/invoke.texi (-msep-data): Document new m68k option.
4226 (-mno-sep-data): Likewise.
4227 (-mid-shared-library): Likewise.
4228 (-mno-id-shared-library): Likewise.
4229 (-mshared-library-id): Likewise.
4230
42312003-10-26 Andreas Jaeger <aj@suse.de>
4232
4233 * unwind-dw2.c (_Unwind_GetGR): Avoid warning about unsigned
4234 comparison.
4235 (_Unwind_SetGR): Likewise.
4236
42372003-10-26 Ottavio Campana <ottavio@campana.vi.it>
4238
4239 PR target/12690
4240 * config/i386/mmintrin.h (_mm_set1_pi8): Fix comment.
4241
42422003-10-26 Gunther Nikl <gni@gecko.de>
4243
4244 * config/m68k/m68k.c (m68k_output_function_prologue): Move front
4245 comment from here to...
4246 (m68k_save_reg): ...here. Fix comment formatting.
4247 (m68k_output_function_prologue): Fix comment formatting.
4248 (m68k_output_function_epilogue): Likewise.
4249 (const_method): Likewise.
4250
42512003-10-26 Kazu Hirata <kazu@cs.umass.edu>
4252
4253 * toplev.c (default_get_pch_validity): Guard the use of
4254 target_options with #ifdef TARGET_OPTIONS.
4255 (default_pch_valid_p): Likewise.
4256
42572003-10-26 Andreas Jaeger <aj@suse.de>
4258 Zack Weinberg <zack@codesourcery.com>
4259 Andreas Tobler <toa@pop.agri.ch>
4260
4261 * dwarf2out.c (output_cfi): Use HOST_WIDE_INT_PRINT.
4262 (output_die): Likewise.
4263 (print_die): Likewise.
4264
42652003-10-26 Andreas Jaeger <aj@suse.de>
4266
4267 * tree.h (dwarf2out_def_cfa, dwarf2out_args_size,
4268 dwarf2out_reg_save, new_loc_descr): Update prototypes for recent
4269 dwarf2out.c change.
4270
4271 * toplev.c (default_pch_valid_p): Fix warning.
4272
42732003-10-25 Roger Sayle <roger@eyesopen.com>
4274
4275 * simplify-rtx.c (simplify_replace_rtx): Avoid allocating duplicate
4276 RTL nodes. If an operator's operands are unchanged, return the
4277 original argument unchanged.
4278
42792003-10-26 Graham Stott <graham.stott@btinternet.com>
4280
4281 Fix bootstrap failure.
4282 * expmed.c (store_bit_field): Don't compare bitsize against
4283 modes with zero bit-size.
4284
4285 (extract_bit_field): Likewise
4286
42872003-10-25 Jan Hubicka <jh@suse.cz>
4288
4289 * dwarf2out.c (dw_cfi_oprnd_struct): Offset is HOST_WIDE_INT.
4290 (cfa_loc): Likewise.
4291 (reg_save, stack_adjust_offset, queue_reg_save): Replace long by
4292 HOST_WIDE_INT.
4293 (args_size, old_args_size): change type to HOST_WIDE_INT.
4294 (dwarf2out_def_cfa, dwarf2out_args_size,
4295 dwarf2out_reg_save, new_loc_descr): offset is HOST_WIDE_INT.
4296 (dw_val_struct): integers, unsigneds and offsets are HOST_WIDE_INT.
4297 (add_AT_int, add_AT_unsigned, att_AT_offset, AT_int, AT_unsigned,
4298 AT_offset): Use HOST_WIDE_INT.
4299 (based_loc_descr): offset is HOST_WIDE_INT.
4300 (add_data_member): Likewise.
4301 (add_const_value_attribute): Simplify.
4302
43032003-10-25 Richard Henderson <rth@redhat.com>
4304
4305 * config/i386/i386.c (ix86_eax_live_at_start_p): New.
4306 (ix86_expand_prologue): Save and restore eax around stack probe
4307 if it's live.
4308
43092003-10-25 Jan Hubicka <jh@suse.cz>
4310
4311 * cppcharset.c (one_utf8_to_utf32): Initialize 's' to silence warning.
4312
43132003-10-25 Eric Botcazou <ebotcazou@libertysurf.fr>
4314
4315 PR target/12712
4316 * reg-stack.c (convert_regs_1): Create an arbitrary input stack
4317 if the block has no predecessors.
4318 (convert_regs_2): Document the problem with successors whose
4319 only predecessor is the block to be processed.
4320 (convert_regs): Don't create the arbitrary input stack here.
4321
43222003-10-24 Zack Weinberg <zack@codesourcery.com>
4323
4324 * genmodes.c (struct mode_data): Add contained and next_cont
4325 fields.
4326 (complete_mode): Maintain linked list of modes that have a
4327 given component.
4328 (emit_mode_unit_size): Delete.
4329 (emit_mode_nunits): New.
4330 (emit_insn_modes_c): Update to match.
4331 (emit_mode_adjustments): Propagate size and alignment
4332 adjustments from component modes to their containers.
4333 * machmode.h (mode_unit_size): Delete.
4334 (mode_nunits): New.
4335 (GET_MODE_NUNITS): Just return the value in the table.
4336 (GET_MODE_UNIT_SIZE): Compute using GET_MODE_INNER and
4337 GET_MODE_SIZE.
4338 * expmed.c (store_bit_field, extract_bit_field): Can use a
4339 plain move instruction if bitsize >= GET_MODE_BITSIZE of
4340 destination/source mode, respectively.
4341 * varasm.c (assemble_real): Write out the full size of the
4342 constant, not just its bitsize.
4343 (output_constant): Honor TYPE_MODE of TREE_REAL_CSTs.
4344
4345 * config/ia64/ia64-modes.def: Define XFmode as well as TFmode.
4346 Use ADJUST_BYTESIZE and ADJUST_ALIGNMENT to set size and
4347 alignment of XF and TF modes in compliance with ia64 ABIs.
4348 Can now hardwire the format of both modes.
4349 * config/ia64/ia64.c: Change TFmode to XFmode wherever appropriate.
4350 (general_tfmode_operand, destination_tfmode_operand)
4351 (tfreg_or_fp01_operand, spill_tfmode_operand): Rename to
4352 general_xfmode_operand, destination_xfmode_operand,
4353 xfreg_or_fp01_operand, spill_xfmode_operand respectively.
4354 (ia64_init_builtins): Make TYPE_PRECISION of fpreg_type
4355 and float80_type be 96 so they get XFmode. Use !TARGET_HPUX,
4356 not INTEL_EXTENDED_IEEE_FORMAT, to decide how to define
4357 __float128.
4358 * config/ia64/ia64.h: Default TARGET_HPUX to 0.
4359 Change TFmode to XFmode wherever appropriate. Remove all
4360 references to INTEL_EXTENDED_IEEE_FORMAT.
4361 (LONG_DOUBLE_TYPE_SIZE): Varies with TARGET_HPUX.
4362 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define (always 96).
4363 (PREDICATE_CODES): Update to match function renames.
4364 * config/ia64/ia64.md: Change TF to XF throughout; rename all
4365 patterns to match. Remove all references to
4366 INTEL_EXTENDED_IEEE_FORMAT. Update predicate calls to match
4367 function renames.
4368 * config/ia64/ia64-protos.c: Update all prototypes to match
4369 renamed functions.
4370 * config/ia64/hpux.h: Redefine TARGET_HPUX to 1.
4371 Remove all references to INTEL_EXTENDED_IEEE_FORMAT.
4372 * config/ia64/lib1funcs.asm: Add __divxf3 as new name for
4373 __divtf3; keep old name for backward compatibility.
4374 (L__compat): New section providing forwarding stubs for
4375 __fixtfti, __fixunstfti, __floattitf.
4376 * config/ia64/t-ia64: Add __compat to LIB1ASMFUNCS.
4377
43782003-10-24 Geoffrey Keating <geoffk@apple.com>
4379
4380 PR 10757
4381 * c-pch.c: Include target.h. Improve comments.
4382 (struct c_pch_validity): Add target_data_length.
4383 (pch_init): Add target's validity data.
4384 (c_common_valid_pch): Check target's validity data.
4385 * target-def.h (TARGET_GET_PCH_VALIDITY): New.
4386 (TARGET_PCH_VALID_P): New.
4387 (TARGET_INITIALIZER): Add new fields.
4388 * target.h: Include tm.h.
4389 (struct gcc_target): Add get_pch_validity, pch_valid_p.
4390 * toplev.h (default_get_pch_validity): New prototype.
4391 (default_pch_valid_p): New prototype.
4392 * toplev.c (default_get_pch_validity): New routine.
4393 (default_pch_valid_p): New routine.
4394 * Makefile.in (TARGET_H): Add TM_H. Replace all users of
4395 target.h with $(TARGET_H).
4396 (c-pch.o): Add TARGET_H.
4397 * doc/tm.texi (PCH Target): New node.
4398 (TARGET_GET_PCH_VALIDITY): Document.
4399 (TARGET_PCH_VALID_P): Document.
4400
44012003-10-24 Kelley Cook <kcook@gcc.gnu.org>
4402
4403 * Makefile.in: Define a vpath for %.texi. Remove explicit $(docdir)
4404 and $(docdir)/include from any *.texi dependencies.
4405 ($(docobjdir)/%.dvi): Depend on stmp-docobjdir.
4406 ($(docobjdir)/%.1): Depend on .pod instead of .texi.
4407 ($(docobjdir)/%.7): Likewise.
4408 (%.pod): New implicit rule.
4409 (cpp.pod): New dependency only rule.
4410 (gcc.pod): New intermediate rule with dependencies and commands.
4411 (gfdl.pod): Likewise.
4412 (fsf-funding.pod): Likewise.
4413
44142003-10-24 Nathanael Nerode <neroden@gcc.gnu.org>
4415
4416 * fixinc/mkfixinc.sh: Remove special cases for svr4 and ptx, and
4417 related code.
4418 * fixinc/fixinc.ptx: Remove.
4419 * fixinc/fixinc.svr4: Remove.
4420
44212003-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4422
4423 * config/s390/s390.c (load_multiple_operation): Allow both SImode
4424 and DImode if word_mode is DImode.
4425 (store_multiple_operation): Likewise.
4426 * config/s390/s390.md ("load_multiple", "store_multiple"): Likewise.
4427 ("*load_multiple_di"): Allow only if word_mode == DImode.
4428 ("movqi"): Use LLGC whenever TARGET_ZARCH.
4429 ("fix_truncdfsi2"): Fix incorrect temporary size.
4430 ("fix_truncsfsi2"): Likewise.
4431 ("*bras_r", "*brasl_r", "*basr_r"): Remove predicate and constraint
4432 string for function return value operand.
4433 ("*bras_tls", "*brasl_tls", "*basr_tls"): Likewise.
4434
44352003-10-24 Joseph S. Myers <jsm@polyomino.org.uk>
4436
4437 * c-parse.in (array_declarator): Use expr_no_commas.
4438 Fixes PR c/11943.
4439
44402003-10-24 Richard Sandiford <rsandifo@redhat.com>
4441
4442 * config/mips/linux.h: Wrap MD_FALLBACK_FRAME_STATE_FOR and
4443 associated includes in #ifndef inhibit_libc.
4444
44452003-10-24 Roger Sayle <roger@eyesopen.com>
4446
4447 * doc/libgcc.texi: Document some more of the libgcc API.
4448
44492003-10-24 Richard Earnshaw <rearnsha@arm.com>
4450
4451 * arm.c (arm_rtx_costs_1, case TARGET_THUMB): Adjust costs for
4452 comparing a constant with small negative numbers and add costing
4453 for constants in conjunction with AND.
4454 (note_invalid_constants): Tidy previous change.
4455 (thumb_cmp_operand): Tidy.
4456 (thumb_cmpneg_operand): New function.
4457 * arm.h (CONDITIONAL_REGISTER_USAGE): Don't use HI regs if optimizing
4458 for size.
4459 (FIRST_LO_REGNUM, FIRST_HI_REGNUM, LAST_HI_REGNUM): Define.
4460 (PREDICATE_CODES): Add thumb_cmpneg_operand.
4461 * arm.md (cbranchsi4): Convert to define_expand. Handle comparison
4462 with a negative constant.
4463 (cbranchsi4_insn): Matcher for cbranchsi4.
4464 (cbranchsi4_scratch): Similar, but a scratch is available for
4465 handling negative constants.
4466 (movsi_cbranchsi4): New pattern.
4467 (tstsi3_cbranch): Renamed from andsi3_cbranch_scratch, remove scratch
4468 and use the TST instruction.
4469 (andsi3_cbranch, orrsi3_cbranch, xorsi3_cbranch, cbranchne_decr1)
4470 (addsi3_cbranch, subsi3_cbranch): Ensure that register preferencing
4471 cannot see high regs or memory alternatives.
4472 (bicsi3_cbranch_scratch, bicsi3_cbranch): New patterns.
4473
44742003-10-24 Richard Earnshaw <rearnsha@arm.com>
4475
4476 * arm.c (note_invalid_constants): Try to extract the constant
4477 pool value using avoid_constant_pool_reference; only use
4478 get_pool_constant if that returns the original reference.
4479
44802003-10-24 Jan Hubicka <jh@suse.cz>
4481
4482 PR c++/12624
4483 * varasm.c (notice_global_symbol): Disqualify global registers.
4484
44852003-10-23 Roger Sayle <roger@eyesopen.com>
4486
4487 PR middle-end/11414
4488 * loop.c (load_mems): Use redirect_jump to forward jumps from
4489 the original loop end label to the new "loop sink" block's label.
4490
44912003-10-23 Roger Sayle <roger@eyesopen.com>
4492
4493 PR middle-end/12705
4494 * optabs.c (expand_binop): When expanding complex operations
4495 inline, always calculate result into a new temporary register.
4496 Minor code clean-ups.
4497
44982003-10-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4499
4500 * objc/lang-specs.h: Handle -print-objc-runtime-info.
4501 * doc/invoke.texi (Objective-C Dialect Options): Document it.
4502
45032003-10-24 Danny Smith <dannysmith@users.sourceforge.net>
4504
4505 * config/i386/cygwin.asm: Add copyright notice. Add comment
4506 on why this code is needed.
4507
45082003-10-23 Kazu Hirata <kazu@cs.umass.edu>
4509
4510 * config/h8300/clzhi2.c: Fix warnings.
4511 * config/h8300/ctzhi2.c: Likewise.
4512 * config/h8300/fixunssfsi.c: Likewise.
4513 * config/h8300/parityhi2.c: Likewise.
4514 * config/h8300/popcounthi2.c: Likewise.
4515
45162003-10-23 James E Wilson <wilson@specifixinc.com>
4517
4518 * gcc.c (option_map): Delete --target and --use-version.
4519
45202003-10-23 Fariborz Jahanian <fjahanian@apple.com>
4521 David Edelsohn <edelsohn@gnu.org>
4522
4523 * config/rs6000/rs6000.h (UNITS_PER_WORD): Use TARGET_32BIT, not
4524 TARGET_POWREPC64.
4525 (UNITS_PER_GPR_WORD): Define.
4526 (HARD_REGNO_NREGS): Use UNITS_PER_GPR_WORD.
4527 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
4528 (HARD_REGNO_MODE_OK): Use UNITS_PER_GPR_WORD.
4529 (CLASS_MAX_NREGS): Use UNITS_PER_GPR_WORD.
4530 * config/rs6000/rs6000.c (function_arg): Generate PARALLEL for
4531 DFmode and DImode in 32-bit ABI / 64-bit computation mode.
4532 (rs6000_emit_prologue): Select reg_mode and reg_size using
4533 TARGET_32BIT, not TARGET_POWERPC64.
4534 (rs6000_function_value): Generate PARALLEL for DImode in 32-bit
4535 ABI / 64-bit computation mode
4536
45372003-10-22 Andrew Haley <aph@redhat.com>
4538
4539 * toplev.c (output_file_directive): Allow for null input_name.
4540
45412003-10-22 Waldek Hebisch <hebisch@math.uni.wroc.pl>
4542
4543 * config/i386/i386.c (classify_argument): Handle SET_TYPE.
4544
45452003-10-22 Chris Demetriou <cgd@broadcom.com>
4546
4547 * configure.in: In --enable-generated-files-in-srcdir option
4548 handling, fix default case handling.
4549 * configure: Regenerate.
4550
45512003-10-22 Phil Edwards <phil@codesourcery.com>
4552
4553 * config.gcc: Update *-*-vxworks* generic hook and comments.
4554 (arm-wrs-vxworks, i[4567]86-wrs-vxworks, mips-wrs-vxworks,
4555 mips-wrs-windiss, sh-wrs-vxworks): New stanzas.
4556 * genmultilib: Allow the MULTILIB_OSDIRNAMES to be mapped directly.
4557 * config/svr4.h (SWITCH_TAKES_ARG): Undefine it before redefining it.
4558 * config/windiss.h: New file.
4559 * config/arm/t-vxworks: New file.
4560 * config/arm/vxworks.h: New file.
4561 * config/i386/t-vxworks: New file.
4562 * config/i386/vxworks.h: New file.
4563 * config/mips/t-vxworks: New file.
4564 * config/mips/vxworks.h: New file.
4565 * config/mips/windiss.h: New file.
4566 * config/sh/t-vxworks: New file.
4567 * config/sh/vxworks.h: New file.
4568
45692003-10-22 Kazu Hirata <kazu@cs.umass.edu>
4570
4571 * config/h8300/h8300.c (h8300_output_function_epilogue): Remove.
4572 (h8300_saveall_function_p): New.
4573 (h8300_insert_attributes): Insert the saveall attribute if
4574 #pragma saveall is specified.
4575 (h8300_attribute_table): Add saveall.
4576 (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
4577 * doc/extend.texi: Mention the saveall attribute.
4578
45792003-10-22 Joseph S. Myers <jsm@polyomino.org.uk>
4580
4581 * c-typeck.c (pedantic_lvalue_warning): Unconditionally warn of
4582 deprecation of casts as lvalues.
4583 * fixinc/inclhack.def (obstack_lvalue_cast): New fix.
4584 * fixinc/fixincl.x: Regenerate.
4585 * fixinc/tests/base/obstack.h: New test.
4586
45872003-10-22 Andreas Schwab <schwab@suse.de>
4588
4589 PR target/12676
4590 * config/m68k/m68k.c (output_addsi3): Fix range check to work on
4591 LP64 platforms.
4592
45932003-10-22 Jan Hubicka <jh@suse.cz>
4594
4595 * dwarf2out.c (dwarf2out_abstract_function): Use DW_AT to check
4596 presence of DW_AT_inline.
4597 (gen_subprogram_die): Likewise; do not abort instead of emitting
4598 DW_AT_not_inline.
4599
46002003-10-22 Jan Hubicka <jh@suse.cz>
4601
4602 * cgraph.c (cgraph_function_possibly_inlined_p): Be conservative when
4603 global info is not ready.
4604
46052003-10-22 Kazu Hirata <kazu@cs.umass.edu>
4606
4607 * doc/extend.texi: Mention H8S wherever H8/300H is mentioned.
4608
46092003-10-22 Ulrich Weigand <uweigand@de.ibm.com>
4610
4611 * config/s390/s390.md ("movstr_short_64", "movstr_short_31"): Merge ...
4612 ("*movstr_short"): ... into this insn pattern.
4613 ("movstr_short"): New expander.
4614 ("*movstr_long_64"): Rename from "movstr_long_64", simplify.
4615 ("*movstr_long_31"): Rename from "movstr_long_31", simplify.
4616 ("movstr_long"): New expander.
4617 ("clrstr_short_64", "clrstr_short_31"): Merge ...
4618 ("*clrstr_short"): ... into this insn pattern.
4619 ("clrstr_short"): New expander.
4620 ("*clrstr_long_64"): Rename from "clrstr_long_64", simplify.
4621 ("*clrstr_long_31"): Rename from "clrstr_long_31", simplify.
4622 ("clrstr_long"): New expander.
4623 ("cmpmem_short_64", "cmpmem_short_31"): Merge ...
4624 ("*cmpmem_short"): ... into this insn pattern.
4625 ("cmpmem_short"): New expander.
4626 ("*cmpmem_long_64"): Rename from "cmpmem_long_64".
4627 ("*cmpmem_long_31"): Rename from "cmpmem_long_31".
4628 ("cmpmem_long"): New expander.
4629 * config/s390/s390.c (s390_expand_movstr): Use new expanders.
4630 (s390_expand_clrstr): Likewise.
4631 (s390_expand_cmpmem): Likewise.
4632
46332003-10-22 Mark Mitchell <mark@codesourcery.com>
4634
4635 * c-pch.c (struct c_pch_validity): Add pch_init field.
4636 (pch_init): Set it.
4637 (c_common_valid_pch): Check it.
4638
46392003-10-22 David Taylor <dtaylor@emc.com>
4640
4641 PR debug/12500
4642 * dbxout.c (dbxout_typedefs): Use COMPLETE_OR_VOID_TYPE_P.
4643
46442003-10-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4645
4646 * config/alpha/alpha.c (function_value [ENABLE_CHECKING]): Don't call
4647 alpha_return_in_memory if no VALTYPE specified.
4648
46492003-10-22 Jan Hubicka <jh@suse.cz>
4650
4651 PR debug/12389
4652 * Makefile.in (dwarf2out.o): Depend on cgraph.h.
4653 * cgraph.c (cgraph_function_possibly_inlined_p): New function.
4654 * cgraph.h (cgraph_function_possibly_inlined_p): Declare.
4655 (cgraph_global_info): Add flag inlined
4656 * dwarf2out.c (gen_subprogram_die, gen_decl_die): Use
4657 cgraph_function_possibly_inded_p
4658 * cgraphunit.c (mark_inline): Set inlined flag.
4659 * toplev.c (rest_of_decl_compilation): Call outlining_inline_function
4660 only for possibly inlined functions.
4661 * c-decl.c (duplicate_decls): Never output abstract DIE representing old
4662 body of function.
4663
46642003-10-22 Andrew Haley <aph@redhat.com>
4665
4666 * varasm.c (output_constructor): Make constructor annotation
4667 conditional on ASM_COMMENT_START.
4668
46692003-10-21 Jason Merrill <jason@redhat.com>
4670
4671 * tree.c (get_unwidened): Check TREE_UNSIGNED on the field's type.
4672 (get_narrower): Likewise.
4673
4674 * stor-layout.c (layout_decl): Do packed field alignment for
4675 bit-fields, too.
4676
46772003-10-21 Eric Christopher <echristo@redhat.com>
4678
4679 * expr.c (convert_move): Use FLOAT_EXTEND for extensions.
4680
46812003-10-21 Geoffrey Keating <geoffk@apple.com>
4682
4683 * c-pch.c: Add comments in various places.
4684 (struct c_pch_validity): Add the lengths of various strings.
4685 (host_machine): New static.
4686 (target_machine): New static.
4687 (get_ident): Bump version number.
4688 (pch_init): Write out version, host, target validity data.
4689 (c_common_valid_pch): Check version, host, target.
4690 * Makefile.in (c-pch.o): Add version.h; define HOST_MACHINE and
4691 TARGET_MACHINE.
4692
46932003-10-21 Jason Merrill <jason@redhat.com>
4694
4695 * tree.h (IS_EXPR_CODE_CLASS): Use strchr.
4696 (EXPR_P): New macro.
4697
46982003-10-21 Zack Weinberg <zack@codesourcery.com>
4699
4700 * config/ia64/ia64.md (cmpxchg_acq_si): Mark operand 3 as DImode.
4701 * config/ia64/ia64.c (ia64_expand_fetch_and_op,
4702 ia64_expand_op_and_fetch): Make sure the REG for ar.ccv is
4703 DImode. Use convert_move to load ar.ccv.
4704 (ia64_expand_compare_and_swap): Likewise.
4705 If expand_expr doesn't put 'old' and 'new' in the proper
4706 modes, run them through convert_to_mode.
4707
47082003-10-21 Eric Christopher <echristo@redhat.com>
4709
4710 * config/frv/frv.c (frv_adjust_field_align): Check DECL_ARTIFICIAL
4711 for too large bitfields.
4712
47132003-10-21 Mark Mitchell <mark@codesourcery.com>
4714
4715 * Makefile.in ($(docobjdir)/%.info): Honor BUILD_INFO.
4716
47172003-10-21 Andrew Haley <aph@redhat.com>
4718
4719 * varasm.c (output_constructor): Annotate constructor.
4720
47212003-10-21 Mark Mitchell <mark@codesourcery.com>
4722
4723 * Makefile.in ($(DESTDIR)$(infodir)/%.info): Conditionalize chmod
4724 on existence of destination file.
4725
47262003-10-21 Jan Hubicka <jh@suse.cz>
4727
4728 * haifa-sched.c (choose_ready): Initialize index.
4729
47302003-10-21 Jason Merrill <jason@redhat.com>
4731
4732 * tree.c (build1): Fix off-by-one error.
4733
47342003-10-21 Robert Millan <robertmh@gnu.org>
4735
4736 * config/i386/kfreebsdgnu.h: New. i386-*-kfreebsd-gnu definitions.
4737 * config/kfreebsdgnu.h: New. *-*-kfreebsd-gnu definitions.
4738 * config/t-kfreebsd-gnu: New. *-*-kfreebsd-gnu tmake_file.
4739 * config.gcc: Add *-*-kfreebsd*-gnu and i[34567]86-*-kfreebsd*-gnu.
4740
47412003-10-21 Eric Botcazou <ebotcazou@libertysurf.fr>
4742
4743 * web.c: Fix various comments.
4744
47452003-10-20 Nicolas Pitre <nico@cam.org>
4746
4747 * config/arm/arm.c (arm_override_options): Set arm_constant_limit
4748 to 2 instead of 1 when optimize_size is true. Gather code based on
4749 optimize_size together. Add comment about XScale load latency.
4750
47512003-10-21 Gunther Nikl <gni@gecko.de>
4752
4753 * config/m68k/m68k.c (m68k_output_function_prologue): Remove
4754 obsolete comments.
4755
47562003-10-20 Kelley Cook <kcook@gcc.gnu.org>
4757
4758 * Makefile.in: Get parsedir and docobjdir from configure.
4759 * configure.in: Recogonize --enable-generated-files-in-srcdir.
4760 Pass along parsedir and docobjdir.
4761 * configure: Regenerate.
4762 * doc/install.texi: Document --enable-generated-files-in-srcdir.
4763
47642003-10-20 Kelley Cook <kcook@gcc.gnu.org>
4765
4766 * Makefile.in: Define $(docdir) before the Make-lang.in fragments are
4767 included.
4768
47692003-10-20 Joseph S. Myers <jsm@polyomino.org.uk>
4770
4771 * c-common.c (expand_tree_builtin): Ensure creal and cimag
4772 functions do not return lvalues.
4773
47742003-10-20 Jason Merrill <jason@redhat.com>
4775
4776 PR c/12553
4777 * tree.c (build1) <ADDR_EXPR>: Set TREE_SIDE_EFFECTS
4778 appropriately.
4779
4780 PR c/11446
4781 * stor-layout.c (layout_decl): Fix alignment handling.
4782
47832003-10-20 Joseph S. Myers <jsm@polyomino.org.uk>
4784
4785 * doc/extend.texi: Deprecate casts as lvalues.
4786
47872003-10-20 Jan Hubicka <jh@suse.cz>
4788
4789 * toplev.c (rest_of_compilation): Fix webizer pass ordering.
4790
4791 * cgraphunit.c (decide_is_function_needed): Fix test dealing
4792 with functions implicitly made inline.
4793
4794 * cgraphunit.c (cgraph_decide_inlining_incrementally): New function.
4795 (cgraph_finalize_function): Use it.
4796 (cgraph_mark_inline): Allow incrmental decisions
4797 * invoke.texi (max-inline-slope, min-inline-insns): Kill.
4798 * params.def (PARAM_MAX_INLINE_SLOPE, PARAM_MIN_INLINE_INSNS): Kill.
4799 * tree-inline.c (limits_allow_inlining): Kill.
4800 (expand_call_inline): Always use unit-at-a-time path.
4801
48022003-10-20 Zack Weinberg <zack@codesourcery.com>
4803
4804 * fixinc/inclhack.def (hpux11_snprintf): New edit.
4805 * fixinc/fixincl.x: Regenerate.
4806 * fixinc/tests/base/stdio.h: Add test for hpux11_snprintf.
4807
48082003-10-20 Mark Mitchell <mark@codesourcery.com>
4809
4810 * Makefile.in (install-info): Simplify.
4811 ($(DESTDIR)$(infodir)/%.info): New rule.
4812 * configure.in (target_list): Remove install-info.
4813 * doc/.cvsignore (gcc.info*): Remove.
4814 (gccint.info*): Likewise.
4815 (gccinstall.info*): Likewise.
4816 (cpp.info*): Likewise.
4817 (cppinternals.info*): Likewise.
4818 (*.info*): Add it.
4819 * doc/sourcebuild.texi: Update description of install-info.
4820 * objc/Make-lang.in (objc.install-info): Remove.
4821
48222003-10-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4823
4824 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Define _ABIO32.
4825 Use it in _MIPS_SIM definition.
4826 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Likewise.
4827
48282003-10-20 Zack Weinberg <zack@codesourcery.com>
4829
4830 * config/i386/i386.c (print_reg): Abort if REGNO (x) is a
4831 virtual register, but only if file == asm_out_file.
4832 * config/i386/i386.h (HI_REGISTER_NAMES): Use "argp", not "",
4833 for ARG_POINTER_REGNUM.
4834
48352003-10-20 Zack Weinberg <zack@codesourcery.com>
4836
4837 * c-common.c (registered_builtin_types): New static.
4838 (c_common_type_for_mode): Consult registered_builtin_types.
4839 (c_register_builtin_type): Add type to registered_builtin_types.
4840 * optabs.c (init_floating_libfuncs): Initialize libfuncs for
4841 all MODE_FLOAT modes, not just the ones corresponding to
4842 float_type_node, double_type_node, and long_double_type_node.
4843
48442003-10-20 Richard Henderson <rth@redhat.com>
4845
4846 * config/alpha/alpha.h (PREDICATE_CODES): Add normal_memory_operand.
4847 * config/alpha/alpha-protos.h: Remove PREDICATE_CODES prototypes.
4848
48492003-10-20 Dorit Naishlos <dorit@il.ibm.com>
4850
4851 * config/rs6000/rs6000.h: (rs6000_sched_insert_nops):
4852 support new flag -minsert-sched-nops.
4853 (DEFAULT_SCHED_FINISH_NOP_INSERTION_SCHEME): Define.
4854 * config/rs6000/rs6000.c: (rs6000_sched_insert_nops):
4855 support new flag -minsert-sched-nops.
4856 (is_cracked_insn, is_microcoded_insn): New functions.
4857 (rs6000_sched_finish): New function.
4858 (rs6000_issue_rate): Return 5 for power4.
4859 (get_next_active_insn, insn_terminates_group_p): New
4860 functions.
4861 (is_costly_group, force_new_group): New functions.
4862 (redefine_groups, pad_groups): New functions.
4863 (rs6000_variable_issue): Use new functions.
4864 * doc/invoke.texi (-minsert-sched-nops): Document new
4865 option.
4866
48672003-10-20 David S. Miller <davem@redhat.com>
4868
4869 * config/sparc/sparc.md (type attribute): Add new insn types
4870 fpa, fpm_pack, fgm_mul, fgm_pdist, and fgm_cmp for VIS.
4871 (patterns emitting VIS insns): Use them.
4872 * config/sparc/ultra1_2.md: Add VIS scheduling rules.
4873 * config/sparc/ultra3.md: Likewise.
4874
48752003-10-20 Falk Hueffner <falk@debian.org>
4876
4877 PR target/12654
4878 * config/alpha/alpha.c (alpha_emit_conditional_branch): Don't do
4879 comparison against constant by adjusting the argument except for
4880 EQ and NE.
4881
48822003-10-19 Mark Mitchell <mark@codesourcery.com>
4883
4884 * config.gcc: Add support for arm926ejs, arm1026ejs, arm1136js,
4885 arm1136jfs, and armv6j.
4886 * config/arm/arm.c (FL_ARCH6J): New macro.
4887 (FL_VFPV2): Likewise.
4888 (all_cores): Add entries for arm926ejs, arm1026ejs, arm1136js,
4889 and arm1136jfs.
4890 (all_architectures): Add entry for armv6j.
4891 (arm_override_options): Add entries for arm926ejs, arm1026ejs,
4892 arm1136js, and arm1136jfs.
4893 * config/arm/arm.h (TARGET_CPU_arm926ej_s): New macro.
4894 (TARGET_CPU_arm1026ej_s): Likewise.
4895 (TARGET_CPU_arm1136j_s): Likewise.
4896 (TARGET_CPU_arm1136jf_s): Likewise.
4897 * doc/invoke.texi: Document new ARM cores and architecture
4898 variants.
4899
49002003-10-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4901
4902 * Makefile.in (toplev.o): Add value-prof.h dependency.
4903 (value-prof.o): Add REGS_H dependency.
4904 * common.opt (fprofile-values, fvpt): New.
4905 * flags.h (flag_value_profile_transformations): Declare.
4906 * opts.c (common_handle_option): Handle -fprofile_values and
4907 -fvpt.
4908 * profile.c (branch_prob): Don't remove death notes here.
4909 * timevar.def (TV_VPT): New.
4910 * value-prof.c: Include regs.h.
4911 (insn_divmod_values_to_profile, gen_divmod_fixed_value, gen_mod_pow2,
4912 gen_mod_subtract, divmod_fixed_value_transform,mod_pow2_value_transform,
4913 mod_subtract_transform, value_profile_transformations): New.
4914 (insn_values_to_profile): Call insn_divmod_values_to_profile.
4915 (find_values_to_profile): Add dumps.
4916 * value-prof.h (value_profile_transformations): Declare.
4917 * toplev.c: Include value-prof.h.
4918 (rest_of_handle_value_profile_transformations): New.
4919 (enum dump_file_index): Add DFI_vpt.
4920 (dump_file): Add vpt dump.
4921 (flag_value_profile_transformations): New.
4922 (lang_independent_options): Add flag_profile_values and
4923 flag_value_profile_transformations.
4924 (rest_of_compilation): Call
4925 rest_of_handle_value_profile_transformations.
4926 (process_options): Let -fvpt imply -fprofile-values.
4927 * doc/invoke.texi (-fvpt): Document.
4928
49292003-10-19 Jan Hubicka <jh@suse.cz>
4930
4931 * i386.c (print_reg): Do not abort on certain registers.
4932
4933 PR optimization/12612
4934 * reg-stack.c (subst_stack_regs_pat): Use st(1) for clobbers.
4935 * i386.md (fpatan, fyl2x, fscale patterns and expanders): Use
4936 match_scratch; avoid bogus paralles.
4937
4938 PR target/12674
4939 * i386.c (ix86_function_regparm): Disable implicit register passing
4940 conventions when profiling.
4941
49422003-10-19 Eric Botcazou <ebotcazou@libertysurf.fr>
4943 Richard Henderson <rth@redhat.com>
4944
4945 PR optimization/8178
4946 * config/i386/i386.md (*movsi_zero): Delete.
4947 (*ffs_no_cmove): Use ix86_expand_clear to zero the third operand.
4948
49492003-10-19 Richard Henderson <rth@redhat.com>
4950
4951 * config/alpha/alpha.c (fix_operator): New.
4952 (divmod_operator): Tidy.
4953 (alpha_emit_xfloating_cvt): Handle UNSIGNED_FIX.
4954 * config/alpha/alpha.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
4955 (PREDICATE_CODES): Update.
4956 * config/alpha/alpha.md (fix_truncdfsi_ieee): Use match_operator.
4957 (fix_truncdfsi_internal, fix_truncdfdi_ieee): Likewise.
4958 (fix_truncsfsi_ieee, fix_truncsfsi_internal): Likewise.
4959 (fix_truncsfdi_ieee): Likewise.
4960 (fix_truncdfdi2, fix_truncsfdi2): Turn into define_expand.
4961 (fixuns_truncdfdi2, fixuns_truncsfdi2, fixuns_trunctfdi2): New.
4962 * config/alpha/alpha-protos.h: Update.
4963
49642003-10-19 Richard Sandiford <rsandifo@redhat.com>
4965
4966 * config/mips/mips.h (INITIALIZE_TRAMPOLINE): Simplify.
4967 * config/mips/mips.c (mips_load_got): Assume Pmode == ptr_mode.
4968 * config/mips/mips.md (extendsidi2, *extendsidi2): Merge. Don't accept
4969 constant operands.
4970
49712003-10-18 Kazu Hirata <kazu@cs.umass.edu>
4972
4973 * doc/extend.texi: Fix typos.
4974 * doc/invoke.texi: Likewise.
4975
49762003-10-18 Nicolas Pitre <nico@cam.org>
4977
4978 * config/arm/arm.c (arm_override_options): Use arm_tune_xscale for
4979 XScale optimizations not arm_arch_xscale.
4980 * config/arm/arm.h (CONSTANT_ALIGNMENT_FACTOR, MOVE_RATIO): Likewise.
4981
49822003-10-18 Ulrich Weigand <uweigand@de.ibm.com>
4983
4984 * config/s390/s390-protos.h (shift_count_operand): Add prototype.
4985 * config/s390/s390.c (shift_count_operand): New function.
4986 (s390_extra_constraint): Use it to implement 'Y' constraint.
4987 (print_shift_count_operand): New function.
4988 (print_operand): Use it to implement '%Y'.
4989 * config/s390/s390.h (EXTRA_ADDRESS_CONSTRAINT): Add 'Y' constraint.
4990 (PREDICATE_CODES): Add shift_count_operand.
4991 * config/s390/s390.md ("rotldi3"): Merge alternatives,
4992 using "shift_count_operand" predicate and "Y" constraint,
4993 and "%Y" to output the combined shift count.
4994 ("rotlsi3"): Likewise.
4995 ("ashldi3", "*ashldi3_31", "*ashldi3_64"): Likewise.
4996 ("ashrdi3", "*ashrdi3_31", "*ashrdi3_64", "*ashrdi3_cc_31",
4997 "*ashrdi3_cc_64", "*ashrdi3_cconly_31", "*ashrdi3_cconly_64"): Likewise.
4998 ("ashlsi3", "ashrsi3", "*ashrsi3_cc", "*ashrsi3_cconly"): Likewise.
4999 ("lshrdi3", "*lshrdi3_31", "*lshrdi3_64"): Likewise.
5000 ("lshrsi3"): Likewise.
5001
50022003-10-18 Gunther Nikl <gni@gecko.de>
5003
5004 * config/m68k/m68k.c (m68k_output_function_epilogue): Add missing
5005 argument to asm_fprintf statement.
5006
50072003-10-18 Fariborz Jahanian <fjahanian@apple.com>
5008
5009 * rs6000.md: Separate TARGET_POWERPC64 patterns for TARGET_64BIT or TARGET_32BIT.
5010 (ashrdisi3_noppc64) Generate more efficient code for 32-bit right-shift of
5011 a "long long" argument.
5012
50132003-10-18 Alexandre Oliva <aoliva@redhat.com>
5014
5015 * final.c (final_scan_insn): Run FINAL_PRESCAN_INSNS on asm insns
5016 as well.
5017
50182003-10-18 Richard Sandiford <rsandifo@redhat.com>
5019
5020 * rtl.h (rtl_size): Declare.
5021 (rtunion): Remove rtwint.
5022 (rtx_def): Replace 'fld' with a union of an rtunion or a HOST_WIDE_INT.
5023 (RTX_HDR_SIZE, RTX_SIZE): New macros.
5024 (RTL_CHECK1): Adjust for new rtx_def layout.
5025 (RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2): Likewise.
5026 (XWINT, XCWINT): Likewise. Access the rtx structure directly.
5027 (X0WINT): Remove.
5028 (X0ANY): New macro.
5029 * rtl.def: Adjust comments for new rtx_def layout.
5030 * ggc.h (ggc_alloc_rtx): Take the rtx code as argument, not the
5031 number of slots.
5032 * rtl.c (rtx_size): New array.
5033 (rtx_alloc): Adjust call to ggc_alloc_rtx. Use RTX_HDR_SIZE.
5034 (copy_rtx): Use RTX_HDR_SIZE. Adjust for new rtx_def layout.
5035 (shallow_copy_rtx): Adjust call to ggc_alloc_rtx. Use RTX_SIZE.
5036 * integrate.c (copy_rtx_and_substitute): Use X0ANY to copy '0' fields.
5037 * emit-rtl.c (copy_most_rtx): Likewise.
5038 (copy_rtx_if_shared): Use RTX_SIZE.
5039 (copy_insn_1): Use RTX_HDR_SIZE. Adjust for new rtx_def layout.
5040 * gengenrtl.c (gendef): Adjust ggc_alloc_rtx call. Use RTX_HDR_SIZE.
5041 * gengtype.c (write_rtx_next): Use RTX_HDR_SIZE.
5042 (adjust_field_rtx_def): Expect "rtx_def" to be a union rather than
5043 an array. Adjust output for new rtx_def layout.
5044 * ggc-page.c (RTL_SIZE): Use RTX_HDR_SIZE.
5045 * reload1.c (eliminate_regs): Use RTX_SIZE.
5046 * rtlanal.c (loc_mentioned_in_p): Adjust for new rtx_def layout.
5047 * gdbinit.in (pi): Likewise.
5048
50492003-10-18 Jan Hubicka <jh@suse.cz>
5050
5051 * integrate.c (copy_decl_for_inlining): Revert previous patch.
5052
50532003-10-18 Jan Hubicka <jh@suse.cz>
5054
5055 * integrate.c (copy_decl_for_inlining): Fix copying of copies.
5056
50572003-10-18 Roger Sayle <roger@eyesopen.com>
5058
5059 * libgcc.texi: Group multi-word types, such as "long double" and
5060 "unsigned int", using braces in @deftypefn and @deftypefnx nodes.
5061 Document __unord?f2 as returning a non-zero value, not just one.
5062
50632003-10-18 Hans-Peter Nilsson <hp@bitrange.com>
5064
5065 * config/mmix/t-mmix (CRTSTUFF_T_CFLAGS): Define.
5066 ($(T)crti.o, $(T)crtn.o): Pass CRTSTUFF_T_CFLAGS here too.
5067
50682003-10-18 Eric Botcazou <ebotcazou@libertysurf.fr>
5069
5070 * config/i386/k6.md (k6_alux): Use the 'mode' attribute instead of
5071 match_operand.
5072
50732003-10-18 Eric Botcazou <ebotcazou@libertysurf.fr>
5074
5075 * config/sparc/sparc.c (function_arg_record_value_1): New fourth
5076 parameter packed_p. Search for a DECL_PACKED field only if
5077 packed_p is false. Pass packed_p recursively.
5078 (function_arg_record_value_2): Likewise.
5079 (function_arg_record_value): Update calls to
5080 function_arg_record_value_1 and function_arg_record_value_2.
5081
50822003-10-18 Eric Botcazou <ebotcazou@libertysurf.fr>
5083
5084 * cse.c (cse_insn) [src_folded]: Check that the tentative replacement
5085 was successfully forced to memory before using the result.
5086
50872003-10-18 Eric Botcazou <ebotcazou@libertysurf.fr>
5088
5089 PR optimization/8178
5090 * config/i386/i386.md (*movsi_zero): New insn to set
5091 a register to zero on TARGET_USE_MOV0 targets.
5092
50932003-10-18 Kelley Cook <kcook@gcc.gnu.org>
5094
5095 * Makefile.in (Makefile): Depend on the all Make-lang.in fragments.
5096 (POSTSTAGE1_FLAGS_TO_PASS): Pass down MAKEINFO and MAKEINFOFLAGS.
5097
50982003-10-17 David Edelsohn <edelsohn@gnu.org>
5099
5100 * doc/invoke.texi (gcse-las): Fix typo.
5101
51022003-10-17 Andrew Pinski <pinskia@physics.uc.edu>
5103
5104 * doc/install.texi: Remove first part of the sentence for
5105 zsh not working. Change gcc to GCC.
5106
5107 PR bootstrap/12546
5108 * doc/install.texi: Document that zsh does not work when
5109 configuring gcc.
5110
51112003-10-17 Nathanael Nerode <neroden@gcc.gnu.org>
5112
5113 * config/ptx4.h: Switch to DWARF 2; update comments.
5114
51152003-10-17 Segher Boessenkool <boessen@de.ibm.com>
5116 Hartmut Penner <hpenner@de.ibm.com>
5117
5118 PR 10404, partial 11591, partial 11601
5119 * config/rs6000/altivec.md ("altivec_dst", "altivec_dstt",
5120 "altivec_dstst", "altivec_dststt", "altivec_lvsl", "altivec_lvsr",
5121 "altivec_lvebx", "altivec_lvehx", "altivec_lvewx", "altivec_lvxl",
5122 "altivec_lvx", "altivec_stvx", "altivec_stvxl", "altivec_stvebx",
5123 "altivec_stvehx", "altivec_stvewx"): Use a memory_operand.
5124 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): New function.
5125 (altivec_expand_stv_builtin): Adjust for the memory_operand.
5126 (altivec_expand_builtin): Call altivec_expand_lv_builtin.
5127 (altivec_init_builtins): Use `long int' for memory offsets.
5128
51292003-10-17 Jan Hubicka <jh@suse.cz>
5130
5131 * opts.c (common_handle_option): Handle OPT_fweb
5132 * invoke.texi (-fweb): Add missing parts of documentation.
5133
51342003-10-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5135
5136 * config/mips/linux.h (FUNCTION_NAME_ALREADY_DECLARED): Undef
5137 before redefinition.
5138
51392003-10-17 Mostafa Hagog <mustafa@il.ibm.com>
5140
5141 * common.opt: Add description of the new -fgcse-las flag.
5142 * flags.h (flag_gcse_las): Declaration of global flag_gcse_las.
5143 * gcse.c (hash_scan_set): Handle the case of store expression and
5144 insert the memory expression to the hash table, this way we make it
5145 possible to discover redundant loads after stores and remove them.
5146 (pre_insert_copy_insn): moved the call to update_ld_motion_stores,
5147 to pre_insert_copies, it is not the correct place to call it after
5148 adding stores to be in the available expression hash table.
5149 (pre_insert_copies): Added the call to update_ld_motion_stores when
5150 one or more copies were inserted.
5151 * opts.c (common_handle_option): Handle the -fgcse-las flag.
5152 * toplev.c (flag_gcse_las): Initialization of flag_gcse_las.
5153
5154 * doc/invoke.tex: Document new -fgcse-las flag.
5155
51562003-10-18 Alan Modra <amodra@bigpond.net.au>
5157
5158 * config/rs6000/crtsavres.asm: Correct alignment of powerpc64 code
5159 for posterity, then remove it.
5160
51612003-10-17 Richard Earnshaw <rearnsha@arm.com>
5162 Nathan Sidwell <nathan@codesourcery.com>
5163
5164 * config/arm/arm.c (use_return_insn): Not a single instruction, if
5165 there's a frame pointer.
5166 (arm_output_epilogue): Protect stack pointer from being corrupted
5167 on interrupt.
5168
51692003-10-17 Ulrich Weigand <uweigand@de.ibm.com>
5170
5171 * ifcvt.c (noce_try_addcc): Handle ifs with 'else' case.
5172
51732003-10-17 Ulrich Weigand <uweigand@de.ibm.com>
5174
5175 * combine.c (simplify_set): Do not clear out undobuf.other_insn
5176 already set elsewhere.
5177
51782003-10-17 Kelley Cook <kcook@gcc.gnu.org>
5179
5180 * config/i386/i386.c (ix86_expand_prologue): Use
5181 gen_allocate_stack_worker.
5182
51832003-10-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5184
5185 * config.gcc (mips-sgi-irix6*o32): Only enable use_collect2
5186 without gas.
5187 (mips-sgi-irix6*): Likewise.
5188
5189 * config/mips/iris6gas.h: New file.
5190 * gcc/config.gcc (mips-sgi-irix6*): Use it.
5191
5192 * config/mips/mips.h (TARGET_IRIX): Provide default.
5193 (TARGET_IRIX5): Likewise.
5194 (TARGET_SGI_O32_AS): Likewise.
5195 * config/mips/iris5.h (TARGET_IRIX): Redefine as 1.
5196 (TARGET_IRIX5): Likewise.
5197 * config/mips/iris6.h (TARGET_IRIX6): Remove.
5198 (TARGET_IRIX5): Redefine as 0.
5199
5200 * config/mips/mips.c (mips_output_external): Test for IRIX 6 O32
5201 linker workaround with TARGET_IRIX and mips_abi instead of
5202 ASM_OUTPUT_UNDEF_FUNCTION.
5203 (mips_file_end): Inline old ASM_OUTPUT_UNDEF_FUNCTION definition,
5204 testing TARGET_IRIX and mips_abi explicitly.
5205 * config/mips/iris5.h (ASM_OUTPUT_UNDEF_FUNCTION): Remove.
5206 * config/mips/iris6.h (ASM_OUTPUT_UNDEF_FUNCTION): Remove undef.
5207
5208 * config/mips/mips.c (irix_output_external_libcall): Renamed from
5209 mips_output_external_libcall.
5210 Use new TARGET_IRIX in guard.
5211 * config/mips/mips-protos.h (irix_output_external_libcall): Match
5212 this.
5213 * config/mips/iris5.h (TARGET_ASM_EXTERNAL_LIBCALL): Likewise.
5214
5215 * config/mips/iris5gas.h (HAVE_GAS_SHF_MERGE): Update comment.
5216 Define as 0.
5217
5218 * config/mips/iris6.h (FUNCTION_NAME_ALREADY_DECLARED): Define
5219 depending on mips_abi.
5220 * config/mips/linux.h (FUNCTION_NAME_ALREADY_DECLARED): Define as 1.
5221 * config/mips/mips.c (mips_output_function_prologue): Test
5222 FUNCTION_NAME_ALREADY_DECLARED at runtime.
5223 (mips_output_function_epilogue): Likewise.
5224 (build_mips16_function_stub): Likewise.
5225 (build_mips16_call_stub): Likewise.
5226 * config/mips/mips.h (FUNCTION_NAME_ALREADY_DECLARED): Provide
5227 default.
5228
5229 * config/mips/iris6.h (DWARF2_UNWIND_INFO): Don't define for native
5230 IRIX 6 O32 assembler.
5231 (SUBTARGET_CC1_SPEC): Enforce mips2 ISA with O32 ABI.
5232 (TARGET_OS_CPP_BUILTINS): Define _ABIO32, use it to define
5233 _MIPS_SIM for O32 ABI.
5234 (DWARF2_FRAME_INFO): Don't define for native IRIX 6 O32 assembler.
5235 (ASM_DECLARE_FUNCTION_NAME): Integrate mips.h version.
5236 (ASM_DECLARE_FUNCTION_SIZE): Move undef before redefinition.
5237 Integrate O32 version.
5238 (SUBTARGET_ASM_SPEC): Handle -mabi=32.
5239 (SUBTARGET_ASM_DEBUGGING_SPEC): Add mdebug_asm_spec for gas with
5240 O32 ABI.
5241 (BSS_SECTION_ASM_OP_32): Define.
5242 (BSS_SECTION_ASM_OP_64): Likewise.
5243 (BSS_SECTION_ASM_OP): Define differently for O32 and N32/N64 ABIs
5244 using them.
5245 (TARGET_ASM_NAMED_SECTION): Reflect renaming.
5246 Move up to allow override for O32 ABI without GNU as.
5247 (EH_FRAME_SECTION_NAME): Define explicitly.
5248 (MUST_USE_SJLJ_EXCEPTIONS): Define.
5249 [_MIPS_SIM == _ABIO32 && !GAS] (CTORS_SECTION_ASM_OP,
5250 DTORS_SECTION_ASM_OP): Dummy definitions.
5251 (TARGET_ASM_NAMED_SECTION): Undef statically.
5252 (EH_FRAME_SECTION_NAME): Likewise.
5253 (ASM_OUTPUT_FILENAME): Integrate mips.h version.
5254 (LINK_SPEC): Only use default options -call_shared -no_unresolved
5255 without -r.
5256 Don't pass -init, -fini with -mabi=32.
5257 (COLLECT_PARSE_FLAG): Define.
5258
5259 * config/mips/mips.c (iris6_asm_named_section_1): Changed guard to
5260 TARGET_IRIX.
5261 Renamed to use irix_ prefix.
5262 (iris6_asm_named_section): Likewise.
5263 (iris_section_align_entry_eq): Likewise.
5264 (iris_section_align_entry_hash): Likewise.
5265 (iris6_file_start): Likewise.
5266 (iris6_section_align_1): Likewise.
5267 (iris6_file_end): Likewise.
5268 (iris6_section_type_flags): Likewise.
5269 (iris_section_align_htab): Likewise.
5270 (iris_orig_asm_out_file): Likewise.
5271 [TARGET_IRIX] (TARGET_ASM_FILE_START): Reflect rename.
5272 (TARGET_ASM_FILE_END): Likewise.
5273 (TARGET_SECTION_TYPE_FLAGS): Likewise.
5274
5275 * config/mips/mips.c [TARGET_IRIX5 && !TARGET_IRIX6]
5276 (TARGET_ASM_UNALIGNED_HI_OP): Use runtime initialization in
5277 override_options instead.
5278 (TARGET_ASM_UNALIGNED_SI_OP): Likewise.
5279 (TARGET_ASM_UNALIGNED_DI_OP): Likewise.
5280 * config/mips/mips.c (override_options) [USE_COLLECT2]: Restore
5281 flag_gnu_linker to defaults without USE_COLLECT2 for non-IRIX O32
5282 assemblers.
5283 Likewise for constructor/destructor handling.
5284 (override_options): Handle IRIX O32 assembler quirks.
5285 [TARGET_IRIX] (irix_asm_named_section): Handle O32 ABI with and
5286 without gas.
5287 (mips_file_start): Use new TARGET_IRIX.
5288 (mips_declare_object_name): No special processing for IRIX O32
5289 assembler.
5290 (mips_finish_declare_object): Likewise.
5291 (irix_asm_output_align): Renamed from iris6_asm_output_align.
5292 Don't record alignment for O32 ABI.
5293 (irix_file_start): Renamed from iris6_file_start.
5294 Return early for O32 ABI.
5295 (irix_file_end): Renamed from iris6_file_end.
5296 Don't emit .section directives for O32 ABI.
5297 * config/mips/iris6.h (ASM_OUTPUT_ALIGN): Reflect renaming.
5298 * config/mips/mips-protos.h (irix_asm_output_align): Likewise.
5299
5300 * config/mips/t-iris6 (MULTILIB_OPTIONS): Add mabi=32.
5301 (MULTILIB_OSDIRNAMES): Likewise.
5302
53032003-10-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5304
5305 * collect2.c (COLLECT_PARSE_FLAG): Provide default.
5306 (main): Use it.
5307 * doc/tm.texi (COLLECT_PARSE_FLAG): Document it.
5308
53092003-10-17 Richard Earnshaw <rearnsha@arm.com>
5310
5311 * arm-modes.def (CC_Nmode): New condition code mode.
5312 * arm.c (thumb_condition_code): Delete.
5313 (arm_select_cc_mode): Handle single-bit test for Thumb.
5314 (arm_print_operand, cases 'd' and 'D'): Don't special case the
5315 condition code logic for Thumb.
5316 (get_arm_condition_code): Handle CC_Nmode.
5317 (thumb_cbrch_target_operand): New function.
5318 * arm.h (PREDICATE_CODES): Add thumb_cbrch_target_operand.
5319 * arm-protos.h (thumb_cbrch_target_operand): Add prototype.
5320 * arm.md: Add Thumb split patterns for zero_extract and
5321 sign_extract.
5322 (tbit_cbranch, andsi3_cbranch_scratch, andsi3_cbranch)
5323 (orrsi3_cbranch_scratch, orrsi3_cbranch, xorsi3_cbranch_scratch)
5324 (xorsi3_cbranch, addsi3_cbranch, addsi3_cbranch_scratch)
5325 (subsi3_cbranch, subsi3_cbranch_scratch): New Thumb patterns.
5326 (cbranchne_decr1): Re-work to use CC_Nmode.
5327
5328 * arm.c (thumb_expand_epilogue): Add clobbers of registers restored
5329 by the return instruction. Add a use of the link register if it
5330 wasn't stored.
5331
53322003-10-17 Richard Earnshaw <rearnsha@arm.com>
5333
5334 * flow.c (init_propagate_block_info): Don't abort if a conditional
5335 jump is not a comparison of a register. Instead, just don't record
5336 conditional life information.
5337
53382003-10-16 Jan Hubicka <jh@suse.cz>
5339
5340 PR optimization/12630
5341 * pa.md (movstrsi, movstrsi_internal): Use match_scratch in clobbers
5342 for operands 7 and 8.
5343
53442003-10-16 Kelley Cook <kcook@gcc.gnu.org>
5345
5346 * objc/Make-lang.in (objc-parse.o): Honor $(parsedir) for objc-parse.c.
5347
53482003-10-16 Danny Smith <dannysmith@users.sourceforge.net>
5349
5350 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
5351
5352 * config/i386/winnt.c (gen_stdcall_suffix): Make static
5353 (gen_fastcall_suffix): Likewise.
5354 (i386_pe_dllexport_p): Likewise.
5355 (i386_pe_dllimport_p): Likewise.
5356 (i386_pe_mark_dllexport): Likewise.
5357 (i386_pe_mark_dllimport): Likewise.
5358 (i386_pe_asm_named_section): Fix formatting.
5359
53602003-10-16 Zack Weinberg <zack@codesourcery.com>
5361
5362 * configure.in: Add snprintf to gcc_AC_CHECK_DECLS list.
5363 * system.h: Declare snprintf if necessary.
5364 * configure, config.in: Regenerate.
5365
53662003-10-15 David Edelsohn <edelsohn@gnu.org>
5367
5368 * config/rs6000/rs6000.c (rs6000_va_arg): Only align vector
5369 arguments if TARGET_ALTIVEC_ABI.
5370
53712003-10-15 Roger Sayle <roger@eyesopen.com>
5372
5373 * builtins.c (fold_builtin_memcpy, fold_builtin_mempcpy,
5374 fold_builtin_memmove, fold_builtin_strcpy, fold_builtin_strncpy,
5375 fold_builtin_memcmp, fold_builtin_strcmp, fold_builtin_strncmp):
5376 New functions.
5377 (expand_builtin_memcpy): Use integer_zerop instead of testing
5378 host_integerp and tree_low_cst directly. Move misapplied hunk
5379 for optimization wher SRC and DEST point to the same location.
5380 (expand_builtin_mempcpy): From here.
5381 (expand_builtin_memmove): Use integer_zerop instead of testing
5382 host_integerp and tree_low_cst_directly.
5383 (expand_builtin_memset): Likewise.
5384 (expand_builtin_memcmp): Likewise (and for integer_onep).
5385 (expand_builtin_strncmp): Likewise.
5386 (fold_builtin): Call the appropriate fold_builtin_foo functions
5387 to optimize memcpy, mempcpy, memmove, strcpy, strncpy, memcmp,
5388 strcmp and strncmp.
5389
53902003-10-15 Geoffrey Keating <geoffk@apple.com>
5391
5392 * config/darwin-protos.h (machopic_non_lazy_ptr_name): Delete
5393 prototype. Clean up some whitespace.
5394 * config/darwin.c: Use gen_rtx_FOO (...) rather than
5395 gen_rtx (FOO, ...).
5396 (machopic_non_lazy_ptr_name): Make static.
5397 (name_needs_quotes): Allow '.' and '$' unquoted.
5398 (machopic_legitimize_pic_address): Improve codegen in dynamic-no-pic
5399 case.
5400
719bb4e3 54012003-10-15 Gábor Lóki <alga@rgai.hu>
3eb54e5f
ILT
5402
5403 * fold-const.c (tree_swap_operands_p): Disable some features
5404 when optimizing for size.
5405
54062003-10-15 David Daney <ddaney@avtrex.com>
5407
5408 * config/mips/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New
5409 * config/mips/mips.h (DWARF_FRAME_REGNUM): Fixed to allow unwind
5410 from leaf functions.
5411 (DWARF_FRAME_RETURN_COLUMN): Ditto.
5412 (SIGNAL_UNWIND_RETURN_COLUMN): New, used
5413 by MD_FALLBACK_FRAME_STATE_FOR.
5414 * testsuite/gcc.dg/cleanup-9.c: Added mips*-*-linux* target.
5415
54162003-10-15 Zack Weinberg <zack@codesourcery.com>
5417
5418 * genmodes.c: Include hashtab.h.
5419 (modes_by_name, hash_mode, eq_mode, struct mode_adjust)
5420 (adj_bytesize, adj_alignment, adj_format, new_adjust)
5421 (_ADD_ADJUST, ADJUST_BYTESIZE, ADJUST_ALIGNMENT, ADJUST_FORMAT)
5422 (print_maybe_const_decl, emit_mode_adjustments): New.
5423 (known_modes): Rename to modes.
5424 (find_mode): Kill class argument; look up in hash table.
5425 (new_mode): Insert into hash table also.
5426 (new_adjust): New.
5427 (reset_float_format, make_partial_integer_mode)
5428 (make_vector_mode): Tweak error reporting.
5429 (reset_float_format): Correct type of fourth argument.
5430 (emit_insn_modes_h): Add #defines to help make mode_size,
5431 mode_base_align, and real_format_for_mode conditionally const.
5432 (emit_mode_size, emit_mode_base_align): Use print_maybe_const_decl.
5433 (emit_real_format_for_mode): Likewise, but temporarily disabled.
5434 (emit_insn_modes_c): Call emit_mode_adjustments.
5435 (main): Initialize modes_by_name.
5436 * Makefile.in: Update dependencies.
5437 * machmode.def: Document EXPR arguments and new ADJUST_* statements.
5438 * machmode.h: Use CONST_MODE_SIZE and CONST_MODE_BASE_ALIGN in
5439 declarations of mode_size and mode_base_align. Declare
5440 init_adjust_machine_modes.
5441 * toplev.c (backend_init): Call init_adjust_machine_modes.
5442
54432003-10-15 Olivier Hainque <hainque@act-europe.fr>
5444
5445 * genmodes.c (calc_wider_mode): Allocate enough room for all the
5446 entries we'll possibly assign in the sort buffer.
5447
54482003-10-15 Ulrich Weigand <uweigand@de.ibm.com>
5449
5450 * config.gcc (s390x-ibm-tpf*): New target.
5451 * doc/install.texi: Document it.
5452 * config/s390/t-tpf: New file.
5453 * config/s390/tpf.h: New file.
5454
54552003-10-15 Hans-Peter Nilsson <hp@axis.com>
5456
5457 PR target/12598
5458 * config/cris/cris.md (define_split "*mov_sidesi_biap_mem"+1)
5459 (define_splits "*mov_sidesi_mem"+1, "casesi"+9, +10, +11, +12):
5460 Use cris_mem_op and replace_equiv_address, not gen_rtx_MEM.
5461 ("call", "call_value", define_split "*mov_sidesi_mem"+19, +20)
5462 (define_split "*mov_sidesi_mem"+21, +22, +23, +24, +25, +26, +27)
5463 (define_split "*mov_sidesi_mem"+28, +29, +30): Use
5464 replace_equiv_address, not gen_rtx_MEM.
5465 * config/cris/cris.c (cris_mem_op): New match_operator function.
5466 (cris_notice_update_cc): Use replace_equiv_address, not
5467 gen_rtx_MEM.
5468 * config/cris/cris.h (PREDICATE_CODES): Add cris_mem_op.
5469
54702003-10-15 Bernardo Innocenti <bernie@develer.com>
5471
5472 * config/m68k/m68k.h (MASK_SEP_DATA, TARGET_SEP_DATA,
5473 MASK_ID_SHARED_LIBRARY, TARGET_ID_SHARED_LIBRARY): Move
5474 definitions after the other flags.
5475
54762003-10-14 Ziemowit Laski <zlaski@apple.com>
5477
5478 * c-parse.in (methoddef, methodproto): Call objc_add_method()
5479 instead of add_method().
5480 * objc/objc-act.c (objc_check_decl): Do not check for
5481 constant_string_type.
5482 (add_method): Rename to objc_add_method().
5483 (really_start_method): Call objc_add_method() instead of
5484 add_method().
5485 * objc/objc-act.h (add_method): Rename to objc_add_method().
5486
54872003-10-14 Ulrich Weigand <uweigand@de.ibm.com>
5488
5489 * config/s390/s390-protos.h (s390_alc_comparison): Add prototype.
5490 (s390_slb_comparison): Likewise.
5491 * config/s390/s390.c (s390_alc_comparison, s390_slb_comparison):
5492 New functions.
5493 * config/s390/s390.h (PREDICATE_CODES): Add s390_alc_comparison
5494 and s390_slb_comparison.
5495 * config/s390/s390.md ("*adddi3_31", "*subdi3_31"): Do not use on
5496 zSeries machines.
5497 ("*adddi3_31z", "*subdi3_31z"): New insns.
5498 ("*adddi3_alc_cc", "*adddi3_alc", "*subdi3_slb_cc", "*subdi3_slb",
5499 "*addsi3_alc_cc", "*addsi3_alc", "*subsi3_slb_cc", "*subsi3_slb"):
5500 New insns.
5501
55022003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
5503
5504 * configure.in: Clean up some feedback echoes.
5505 * configure: Regenerate.
5506
5507 * aclocal.m4: Properly quote names of macros being defined.
5508
5509 * config.gcc (am33_2.0-*-linux*): Use t-slibgcc-elf-ver.
5510
55112003-10-14 Steve Ellcey <sje@cup.hp.com>
5512
5513 * config/ia64/ia64.c (ia64_expand_call): Force function address
5514 to DImode.
5515 * config/ia64/ia64.md (call_gp): Put DImode on operand 0.
5516
55172003-10-14 Ulrich Weigand <uweigand@de.ibm.com>
5518
5519 * config/s390/s390.md ("muldf3", "*muldf3", "*muldf3_ibm",
5520 "mulsf3", "*mulsf3", "*mulsf3_ibm"): Do not clobber CC.
5521 ("divdf3", "*divdf3", "*divdf3_ibm", "divsf3", "*divsf3",
5522 "*divsf3_ibm"): Likewise.
5523
55242003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
5525
5526 * config.gcc, config/m68hc11/t-m68hc11-gas: Replace uses of
5527 target_alias with target_noncanonical.
5528
55292003-10-14 Geoffrey Keating <geoffk@apple.com>
5530
5531 * expr.c (block_move_libcall_safe_for_call_parm): Clean up,
5532 and add case for machines where outgoing register parameters
5533 get stack space.
5534
5535 * config/darwin.c (machopic_indirect_data_reference): Use a scratch
5536 register when generating indirect address.
5537
55382003-10-14 Richard Earnshaw <rearnsha@arm.com>
5539
5540 * arm.c (arm_addimm_operand): MODE arguemnt is unused.
5541 * arm.md (cbranchne_decr1): Fix bootstrap warning.
5542
55432003-10-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5544
5545 * fixinc/inclhack.def (alpha_pthread_gcc): New fix.
5546 * fixinc/fixincl.x: Regenerate.
5547 * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_GCC_CHECK]: New
5548 testcase.
5549 Fixes PR bootstrap/9330.
5550
55512003-10-13 Eric Christopher <echristo@redhat.com>
5552
5553 * config/frv/frv.c (frv_adjust_field_align): Redo check for
5554 too wide bitfields.
5555 (frv_hard_regno_mode_ok): Add SPR_P and AP_FIRST.
5556 * config/frv/frv.h (FUNCTION_PROFILER): Remove abort call.
5557 (SBSS_SECTION_ASM_OP): Remove.
5558 (EXTRA_SECTIONS): Remove in_sbss.
5559 (EXTRA_SECTION_FUNCTIONS): Remove SBSS_SECTION_FUNCTION.
5560 (SBSS_SECTION_FUNCTION, sbss_section): Remove.
5561 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Change sbss_section to
5562 named_section.
5563
55642003-10-13 Nathanael Nerode <neroden@gcc.gnu.org>
5565
5566 * Makefile.in, configure.in, config.host, mkheaders.in: Replace
5567 uses of ${target_alias} for directory names (and other places which
5568 won't like the empty string) with ${target_noncanonical}. Introduce
5569 call early in configure.in to _GCC_TOPLEV_NONCANONICAL_TARGET so it's
5570 available.
5571 * configure: Regenerate.
5572
55732003-10-13 Ian Lance Taylor <ian@wasabisystems.com>
5574
5575 * config/arm/iwmmxt.md (cond_iwmmxt_movsi_insn): New pattern.
5576 * config/arm/arm.md: For splits which rely on conditional moves,
5577 remove ! TARGET_IWMMXT condition.
5578
55792003-10-13 David S. Miller <davem@redhat.com>
5580
5581 * ifcvt.c (num_removed_blocks): Rename to num_true_changes.
5582 (find_cond_trap): Always increment if we emit a conditional
5583 trap insn.
5584
55852003-10-13 Zack Weinberg <zack@codesourcery.com>
5586
5587 * Makefile.in (BUILD_RTL): Replace $(BUILD_PREFIX)insn-modes.o
5588 with min-insn-modes.o.
5589 (STAGESTUFF): Add min-insn-modes.c.
5590 (genobjs): Add genmodes.o.
5591 (print-rtl.o, print-rtl1.o): Depend on $(TM_P_H).
5592 (insn-modes.o): Depend on $(TM_H) not $(GTM_H); also real.h.
5593 (min-insn-modes.c, min-insn-modes.o): New rules.
5594 (s-modes): Also generate min-insn-modes.c.
5595 ($(BUILD_PREFIX_1)insn-modes.o): Kill.
5596 * genmodes.c (struct mode_data): Add format field.
5597 (blank_mode, validate_mode, complete_mode): Update to match.
5598 (make_scalar_mode): Separate into make_int_mode and make_float_mode.
5599 (_SCALAR_MODE): Kill.
5600 (FLOAT_MODE, FRACTIONAL_FLOAT_MODE): Add format argument.
5601 (emit_insn_modes_c_header): Adjust.
5602 (emit_min_insn_modes_c_header, emit_real_format_for_mode)
5603 (emit_min_insn_modes_c): New functions.
5604 (emit_insn_modes_c): Call emit_real_format_for_mode.
5605 (main): Add -m option to generate min-insn-modes.c.
5606 * machmode.h: Update documentation. Add format argument to
5607 all uses of FLOAT_MODE.
5608 * real.c: Don't define real_format_for_mode here.
5609
5610 * dwarfout.c: Move default definition of PRINT_REG...
5611 * defaults.h: ...here.
5612 * print-rtl.c: Include tm_p.h.
5613 (DEBUG_PRINT_REG, DEBUG_REGISTER_NAMES, debug_reg_names, reg_names):
5614 Kill.
5615 (print_rtx): Use PRINT_REG, not DEBUG_PRINT_REG. But surround
5616 this entire block with #ifndef GENERATOR_FILE.
5617 * regclass.c: Unconditionally define reg_names.
5618 * config/mips/mips.h, config/rs6000/rs6000.h, config/sh/sh.h
5619 Don't define DEBUG_REGISTER_NAMES.
5620 * config/rs6000/darwin.h: Don't use DEBUG_REGISTER_NAMES in
5621 redefinition of REGISTER_NAMES.
5622 * config/i386/i386.h: Don't define DEBUG_PRINT_REG.
5623
5624 * combine.c: Change all preprocessor conditionals on
5625 EXTRA_CC_MODES to use SELECT_CC_MODE instead; rearrange a bit
5626 for clarity.
5627 * genopinit.c: Remove mention of EXTRA_CC_MODES in comment.
5628 * configure.in: Don't define EXTRA_CC_MODES.
5629 * configure, config.in: Regenerate.
5630 * doc/tm.texi: Remove documentation of EXTRA_CC_MODES.
5631
5632 * config/arc/arc.c, config/m32r/m32r.c, config/sparc/sparc.c:
5633 May assume that GET_MODE_CLASS is accurate for extra CC modes
5634 at all times.
5635
5636 * config/i860/i860.h (INIT_CUMULATIVE_ARGS): Pass correct
5637 number of arguments to aggregate_value_p.
5638
5639 * genmodes.c (RESET_FLOAT_FORMAT, reset_float_format): New.
5640 * machmode.def: Explain ARCH-modes.def. Document
5641 RESET_FLOAT_FORMAT. Improve commentary on various mode
5642 clusters. Do not define OI, PQI, PHI, PSI, PDI, QF, HF, TQF,
5643 XF, or TF modes here. Remove backward-compatibility
5644 definition of CC.
5645
5646 * config/alpha/alpha-modes.def: New file; define TF mode.
5647 * config/arc/arm-modes.def: Define XF mode.
5648 * config/c4x/c4x-modes.def: Define QF and HF modes. Unset
5649 float format for SF and DF modes.
5650 * config/dsp16xx/dsp16xx-modes.def: New file; define HF mode.
5651 * config/i386/i386-modes.def: Define XF and TF modes.
5652 * config/i960/i960-modes.def: Define TF mode.
5653 * config/ia64/ia64-modes.def: Define TF and OI modes.
5654 * config/m68k/m68k-modes.def: New file; define XF mode.
5655 * config/mips/mips-modes.def: New file; define TF mode, reset
5656 formats for SF and DF modes.
5657 * config/pa/pa-modes.def: Define TF mode.
5658 * config/rs6000/rs6000.c: Define TF and PSI modes.
5659 * config/s390/s390-modes.def: Define OI mode.
5660 * config/sh/sh-modes.def: New file; define PSI mode.
5661 * config/sparc/sparc-modes.def: Define TF mode.
5662 * config/vax/vax-modes.def: New file; reset formats for SF and
5663 DF modes.
5664
5665 * config/c4x/c4x.c (c4x_override_options): No need to mess
5666 with real_format_for_mode or set REAL_MODE_FORMATs.
5667 (c4x_immed_int_constant): Don't apply GET_MODE_CLASS to rtx
5668 variable.
5669 * config/i386/i386.c (override_options): No need to set
5670 REAL_MODE_FORMATs here.
5671 * config/i960/i960.c (i960_initialize): Likewise.
5672 * config/m68k/m68k.c (m68k_override_options): Likewise.
5673 * config/ia64/ia64.c (ia64_override_options): Set REAL_MODE_FORMAT
5674 for TFmode only if not the default.
5675 * config/mips/mips.c (override_options): Likewise.
5676 * config/vax/vax.c (override_optionms): Set REAL_MODE_FORMAT for
5677 DFmode only if not the default.
5678
5679 * config/i370/i370.h (RET_REG): Don't consider TFmode.
5680 * config/m68hc11/m68hc11.c (print_operand): Don't consider XFmode.
5681 * config/dsp16xx/dsp16xx.c (hard_regno_mode_ok): #if 0 out use
5682 of modes that don't appear anywhere in the machine description.
5683
5684 * config/arc/arc-modes.def, config/arm/arm-modes.def
5685 * config/c4x/c4x-modes.def, config/frv/frv-modes.def
5686 * config/i386/i386-modes.def, config/i960/i960-modes.def
5687 * config/ia64/ia64-modes.def, config/mmix/mmix-modes.def
5688 * config/pa/pa-modes.def, config/pdp11/pdp11-modes.def
5689 * config/rs6000/rs6000-modes.def, config/s390/s390-modes.def
5690 * config/sparc/sparc-modes.def: Convert to new style for
5691 declaring extra CC modes.
5692
56932003-10-13 Zack Weinberg <zack@codesourcery.com>
5694
5695 * cpplex.c (_cpp_clean_line): In the common case of a line
5696 with no trigraphs and no \-newline, avoid writing to memory.
5697 (_cpp_skip_block_comment): Use a local 'cur' pointer instead
5698 of the buffer member. Make c an uchar to avoid unnecessary
5699 sign extensions.
5700
57012003-10-13 Nathanael Nerode <neroden@gcc.gnu.org>
5702
5703 * configure.in: Remove unnecessary test.
5704 * configure: Regenerate.
5705
5706 * configure.in: Fix grammatical error. Move UWIN host error to...
5707 * config.host: Here.
5708 * configure: Regenerate.
5709
57102003-10-13 Andreas Krebbel <krebbel1@de.ibm.com>
5711
5712 * config/s390/s390.md ("*fmadddf4", "*fmsubdf4", "*fmaddsf4",
5713 "*fmsubsf4"): Insns are now dependent on TARGET_FUSED_MADD instead
5714 of flag_unsafe_math_optimizations.
5715 * config/s390/s390.h ("MASK_NO_FUSED_MADD", "TARGET_NO_FUSED_MADD",
5716 "TARGET_FUSED_MADD", "TARGET_SWITCHES"): Introduced new target flags
5717 fused-madd and no-fused-madd.
5718 * doc/invoke.texi: Documented the new options fused-madd and
5719 no-fused-madd for S/390.
5720
57212003-10-14 Alan Modra <amodra@bigpond.net.au>
5722
5723 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Choose
5724 MASK_ALIGN_NATURAL if rs6000_alignment_string not given. Don't
5725 assign DEFAULT_ABI.
5726 (ADJUST_FIELD_ALIGN, ROUND_TYPE_ALIGN): Update comment.
5727 * config/rs6000/rs6000.c: Formatting.
5728 (rs6000_parse_alignment_option): Only set rs6000_alignment_flags
5729 when rs6000_alignment_string given.
5730
57312003-10-13 Eric Botcazou <ebotcazou@libertysurf.fr>
5732
5733 PR target/12538
5734 * config/sparc/sparc.c (MUST_SAVE_REGISTER): Delete.
5735 (sparc_flat_must_save_register_p): New function to decide whether
5736 a register must be saved/restored in the function prologue/epilogue.
5737 (sparc_flat_compute_frame_size): Use it instead of MUST_SAVE_REGISTER.
5738
57392003-10-12 Steven Bosscher <steven@gcc.gnu.org>
5740
5741 * config/avr/avr.c, config/avr/avr-protos.h: Convert to
5742 ISO C90 function declarations and definitions.
5743 * config/sh/sh.c, config/sh/sh-protos.h: Likewise.
5744
57452003-10-12 Nathanael Nerode <neroden@gcc.gnu.org>
5746
5747 * config.gcc (*-*-freebsd*): Use tm_defines instead of tiny
5748 config files which do the same thing.
5749 * config/freebsd3.h, config/freebsd4.h, config/freebsd5.h,
5750 config/freebsd6.h: Remove now unnecessary files.
5751
57522003-10-12 Steven Bosscher <steven@gcc.gnu.org>
5753
5754 * c-common.c (c_common_truthvalue_conversion): Warn if the
5755 address of a non-weak function is used as a truth value.
5756
57572003-10-12 Kazu Hirata <kazu@cs.umass.edu>
5758
5759 * config/h8300/h8300.c (WORD_REG_USED): Use SP_REG instead of
5760 a literal.
5761 * config/h8300/h8300.h (REGNO_OK_FOR_BASE_P): Use MAC_REG
5762 instead of a literal.
5763
57642003-10-12 Hans-Peter Nilsson <hp@bitrange.com>
5765
5766 * doc/extend.texi (Function Attributes): Mention the exceptional
5767 path for noreturn-marked functions.
5768
57692003-10-12 Jan Hubicka <jh@suse.cz>
5770
5771 * cgraphunit.c (cgraph_decide_inlining): Fix uninitialized variable
5772 warning.
5773
57742003-10-12 Danny Smith <dannysmith@users.sourceforge.net>
5775
5776 * config/i386/i386.c (x86_this_parameter): Fix typo.
5777
611bcfc0 57782003-10-11 Jan Hubicka <jh@suse.cz>
3eb54e5f
ILT
5779
5780 * Makefile.in (web.o): New.
5781 * web.c: New file.
5782 * rtl.h (web_main): Declare.
5783 * timervar.def (TV_WEB): New.
5784 * toplev.c (dump_file_index, dump_file_info): Add DFI_web.
5785 (rest_of_hanle_web): New.
5786 (flag_web): New static variable.
5787 (lang_independent_options): Add "web".
5788 (rest_of_compilation): Call rest_of_handle_web.
5789 * invoke.texi (-fweb): Document.
5790 * common.opt (fweb): New.
5791 * flags.h (flag_web): New.
5792 * opts.c (decode_options): Set flag_web at -O3.
5793
5794 * passes.texi (web construction): Document.
5795 * invoke.texi (-O3): Document that -fweb is enabled.
5796
5797 * regrename.c (regrename_optimize): Deal better with situation when
5798 replacement failed.
5799
5800 * sched-ebb.c: Include params.h and profile.h
5801 (schedule_ebbs): Use tracer parameters to discover superblocks
5802 * Makefile.in (sched-ebb.o): Add dependencies.
5803
58042003-10-11 Roger Sayle <roger@eyesopen.com>
5805
5806 * fold-const.c (negate_mathfn_p): New function to determine whether
5807 a built-in mathematical function is sign preserving, f(-x) == -f(x).
5808 Add support for BUILT_IN_ASIN, BUILT_IN_ASINF and BUILT_IN_ASINL.
5809 (tree_swap_operands_p): Change API to take an additional argument
5810 indicating that the swapped operands evaluate in reverse order.
5811 Canonicalize VAR_DECLs and PARM_DECLs last if we can, i.e. neither
5812 operand side-effects or we don't care about flag_evaluation_order.
5813 (reorder_operands_p): New function to check whether its safe to
5814 evaluate the given operands in reverse order.
5815 (negate_expr_p): We can always negate integer constants unless
5816 we honor -ftrapv and the signed type would overflow. Only allow
5817 -(A-B) into B-A if reorder_operands_p says that its OK. Allow
5818 negation of COMPLEX_CST if both real and imaginary parts can be
5819 negated. Allow negation through floating point extensions and
5820 sign-preserving built-in functions.
5821 (negate_expr): Move the code to negate integers from "fold" to
5822 here. Always negate integer constants unless we honor -ftrapv
5823 and the signed type would overflow. Always negate real constants
5824 unless we honor -ftrapping-math. Only convert -(A-B) into B-A
5825 if allowed by reorder_operands_p. Add support for COMPLEX_CST.
5826 Optimize negation through floating point extensions and
5827 sign-preserving built-in functions (as defined by negate_mathfn_p).
5828 (fold): Adjust calls to tree_swap_operands_p.
5829 (fold <NEGATE_EXPR>): Move the remaining negation optimizations
5830 to negate_expr_p/negate_expr.
5831 (fold <MINUS_EXPR>): Use reorder_operands_p to check whether we're
5832 allowed to convert (-A) - B into (-B) - A.
5833
58342003-10-11 Roger Sayle <roger@eyesopen.com>
5835
5836 * builtins.c (expand_builtin_strcmp): Defend against the possibility
5837 that gen_cmpstrsi may fail: Stabilize the argument list against
5838 re-evaluation and expand the library call directly using this saved
5839 argument list if a cmpstrsi sequence can't be generated.
5840 (expand_builtin_strncmp): Likewise.
5841
5842 * config/i386/i386.md (cmpstrsi, movstrsi): Disable with -Os.
5843
58442003-10-11 Roger Sayle <roger@eyesopen.com>
5845
5846 PR optimization/12260
5847 * simplify-rtx.c (simplify_unary_operation): Simplify all unary
5848 operations through CONST nodes. Optimize (neg (plus X C)) as
5849 (minus -C X) for constant values C.
5850 (simplify_binary_operation): Optimize (minus (neg X) C) as
5851 (minus -C X) for constant values C.
5852 (simplify_plus_minus): Avoid creating (neg (const (plus X C)),
5853 instead create (minus -C X).
5854
58552003-10-11 Roger Sayle <roger@eyesopen.com>
5856
5857 * expr.c (expand_expr <PLUS_EXPR>): Let expand_operands call
5858 safe_from_p for us, once it chooses an evaluation order.
5859 (expand_expr <MULT_EXPR>): Likewise.
5860 (expand_expr <MIN_EXPR> <MAX_EXPR>): Likewise. If expand_operands
5861 places the second operand in "target", swap the operands.
5862 (do_store_flag): Let expand_operands call safe_from_p for us.
5863
58642003-10-11 Eric Botcazou <ebotcazou@libertysurf.fr>
5865
5866 PR optimization/12544
5867 * function.c (put_var_into_stack): Don't generate ADDRESSOFs
5868 for DECL_NONLOCAL decls.
5869
58702003-10-11 Kazu Hirata <kazu@cs.umass.edu>
5871
5872 * expr.c: Follow spelling conventions.
5873 * final.c: Likewise.
5874 * optabs.c: Likewise.
5875 * sched-deps.c: Likewise.
5876 * sdbout.c: Likewise.
5877
5878Sat Oct 11 12:24:23 CEST 2003 Jan Hubicka <jh@suse.cz>
5879
5880 * varasm.c (notice_global_symbol): Fix handling of variables; avoid
5881 re-computing of variable.
5882
58832003-10-11 Richard Henderson <rth@redhat.com>
5884
5885 * config/alpha/alpha.c (alpha_return_in_memory): Rename from
5886 return_in_memory, make static, change signature to match target hook.
5887 (alpha_setup_incoming_varargs): Make static, change signature to
5888 match target hook, add code for vms and unicos.
5889 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
5890 TARGET_PROMOTE_PROTOTYPES, TARGET_STRUCT_VALUE_RTX,
5891 TARGET_RETURN_IN_MEMORY, TARGET_SETUP_INCOMING_VARARGS,
5892 TARGET_STRICT_ARGUMENT_NAMING,
5893 TARGET_PRETEND_OUTGOING_VARARGS_NAMED): New.
5894 * config/alpha/alpha-protos.h: Update.
5895 * config/alpha/alpha.h (PROMOTE_FUNCTION_ARGS,
5896 PROMOTE_FUNCTION_RETURN, RETURN_IN_MEMORY,
5897 SETUP_INCOMING_VARARGS): Remove.
5898 * config/alpha/unicosmk.h (SETUP_INCOMING_VARARGS): Remove.
5899 * config/alpha/vms.h (SETUP_INCOMING_VARARGS): Remove.
5900
59012003-10-11 Ian Lance Taylor <ian@wasabisystems.com>
5902
5903 * config/arm/arm.c (arm_regno_class): Handle IWMMXT_GR_REGS.
5904
59052003-10-11 Kazu Hirata <kazu@cs.umass.edu>
5906
5907 * config/m68k/lb1sf68.asm: Follow spelling conventions.
5908 * config/m68k/m68k.c: Likewise.
5909 * config/m68k/m68k.h: Likewise.
5910 * config/m68k/m68k.md: Likewise.
5911
59122003-10-11 Roger Sayle <roger@eyesopen.com>
5913
5914 * builtins.c (expand_builtin_memcpy): Optimize case when the two
5915 pointer arguments are the equal, non-volatile and side-effect free.
5916 (expand_builtin_mempcpy): Likewise.
5917 (expand_builtin_memmove): Likewise.
5918 (expand_builtin_strcpy): Likewise.
5919 (expand_builtin_memcmp): Likewise.
5920 (expand_builtin_strcmp): Likewise.
5921 (expand_builtin_strncmp): Likewise.
5922
59232003-10-11 Roger Sayle <roger@eyesopen.com>
5924
5925 * combine.c (apply_distributive_law): Enable "distributive" floating
5926 point optimizations with -funsafe-math-optimizations.
5927
59282003-10-11 Andrew Pinski <pinskia@physics.uc.edu>
5929
5930 * genmodes.c (emit_mode_mask) Change MASK to MODE_MASK.
5931
59322003-10-11 Kazu Hirata <kazu@cs.umass.edu>
5933
5934 * config/m68k/m68k-protos.h: Remove the prototype for
5935 finalize_pic.
5936
59372003-10-11 Kazu Hirata <kazu@cs.umass.edu>
5938
5939 * config/m68k/m68k.c: Fix comment typos.
5940
59412003-10-11 Bernardo Innocenti <bernie@develer.com>
5942
5943 * config/m68k/m68k-protos.h (use_return_insn): Change return type from
5944 int to bool.
5945 * config/m68k/m68k.c (struct m68k_frame): Add funcdef_no member.
5946 (current_frame): New global var.
5947 (m68k_compute_frame_layout): Cache computations in current_frame.
5948 (m68k_initial_elimination_offset): Use values from current_frame
5949 instead of recomputing them.
5950 (use_return_insn): Likewise.
5951 (m68k_output_function_prologue): Likewise.
5952 (m68k_output_function_epilogue): Likewise.
5953 * config/m68k/m68k.h (TARGET_CPU_CPP_PREDEFINES): Fold __PIC__ handling
5954 inside the block for __pic__.
5955
59562003-10-11 Peter Barada <peter@baradas.org>
5957 Bernardo Innocenti <bernie@develer.com>
5958
5959 * config/m68k/m68k.c (m68k_frame): Move before protos referencing it.
5960 (m68k_save_reg): Add boolean parameter `interrupt_handler'.
5961 (m68k_interrupt_function_p): New function.
5962 (m68k_handle_fndecl_attribute): Ditto.
5963 (m68k_compute_frame_layout): Ditto.
5964 (m68k_attribute_table): Define back-end specific attributes.
5965 (m68k_output_function_epilogue): Emit RTE instruction for interrupt
5966 functions.
5967
59682003-10-11 Bernardo Innocenti <bernie@develer.com>
5969
5970 * config/m68k/t-uclinux: New target Makefile fragment.
5971 * config/m68k/uclinux.h: New target macro file.
5972 * config.gcc (m68k-*-uclinux): New target definition.
5973
59742003-10-10 Roger Sayle <roger@eyesopen.com>
5975
5976 * builtins.c (builtin_mathfn_code): Generalize to check whether
5977 the call is to any built-in function by comparing the call's
5978 argument list against the builtin decl's function type.
5979
59802003-10-10 Roger Sayle <roger@eyesopen.com>
5981
5982 * cse.c (constant_pool_entries_regcost): New global variable to
5983 hold the register cost component of constant_pool_entries_cost.
5984 (fold_rtx): Calculate constant_pool_entries_regcost at the same
5985 time as constant_pool_entries_cost.
5986 (cse_insn): Set both src_folded_cost and src_folded_regcost from
5987 constant_pool_entries_cost and constant_pool_entries_regcost.
5988 (cse_main): Initialize constant_pool_entries_regcost to zero.
5989
5990 * optabs.c (expand_unop): Attach a REG_EQUAL note describing
5991 the semantics of the sequence of bit operations used to negate
5992 a floating-point value.
5993 (expand_abs_nojump): Likewise attach a REG_EQUAL note describing
5994 the semantics of the bit operations used to abs a floating point
5995 value.
5996
59972003-10-11 Bernardo Innocenti <bernie@develer.com>
5998 Paul Dale <pauli@snapgear.com>
5999
6000 * config/m68k/lb1sf68.asm: Add __PIC__ and __ID_SHARED_LIBRARY__
6001 support.
6002 * config/m68k/m68k-none.h (ASM_SPEC): Pass --pcrel to assembler on
6003 -fpic, -fPIC, -msep-data and -mid-shared-library.
6004 * config/m68k/m68k.c (m68k_library_id_string): New global variable.
6005 (override_options): Add -msep-data and -mshared-library-id support.
6006 (m68k_output_function_prologue): Generate code to load A5 for
6007 TARGET_ID_SHARED_LIBRARY and TARGET_SEP_DATA.
6008 (m68k_output_mi_thunk): Emit indirect jump on TARGET_ID_SHARED_LIBRARY.
6009 (m68k_output_pic_call): New function.
6010 * gcc/config/m68k/m68k.h (TARGET_SEP_DATA): New target flag.
6011 (TARGET_ID_SHARED_LIBRARY): Ditto.
6012 (TARGET_SWITCHES): Add switches for -mid-shared-library and -msep-data.
6013 * gcc/config/m68k/m68k.md (call): Call m68k_output_pic_call().
6014 (call_value): Likewise.
6015
60162003-10-10 Zack Weinberg <zack@codesourcery.com>
6017
6018 * gengenrtl.c (find_formats, genheader): Make i an unsigned
6019 int, remove cast of NUM_RTX_CODE.
6020 * machmode.h: Make the HAVE_MACHINE_MODES #ifdef encompass the
6021 entire file. Remove the #ifs on GET_MODE_MASK etc and
6022 GET_MODE_WIDER_MODE etc.
6023
60242003-10-10 Eric Christopher <echristo@redhat.com>
6025
6026 * lcm.c (optimize_mode_switching): Change NORMAL_MODE
6027 to MODE_ENTRY and MODE_EXIT. Add MODE_AFTER for insns
6028 that set mode.
6029 * config/sh/sh.h (MODE_ENTRY): New macro.
6030 (MODE_EXIT): Ditto.
6031 (MODE_AFTER): Ditto.
6032 * config/sh/sh.md: Change for MODE_AFTER. Add
6033 fp_set attribute.
6034 * doc/tm.texi: Document MODE_AFTER, MODE_ENTRY, and MODE_EXIT.
6035
60362003-10-10 Zack Weinberg <zack@codesourcery.com>
6037
6038 * genmodes.c, mode-classes.def: New files.
6039 * machmode.def: Rewritten to genmodes.c interface.
6040 * Makefile.in (extra_modes_file): New substitution variable.
6041 (MACHMODE_H): No longer includes machmode.def or
6042 @extra_modes_file@; instead, mode-classes.def and insn-modes.h.
6043 (BUILD_RTL): Add $(BUILD_PREFIX)insn-modes.o.
6044 (OBJS-common): Add insn-modes.o.
6045 (STAGESTUFF): Add insn-modes.c, insn-modes.h, s-modes, and
6046 genmodes$(build_exeext).
6047 (insn-modes.o, insn-modes.c, insn-modes.h, s-modes, genmodes.o,
6048 genmodes$(build_exeext), $(BUILD_PREFIX_1)insn-modes.o): New targets.
6049 (s-genrtl): Don't depend on $(RTL_BASE_H).
6050 (gengenrtl.o): Don't depend on coretypes.h, $(GTM_H), real.h,
6051 or $(RTL_BASE_H); just rtl.def.
6052 * gengenrtl.c: Don't include coretypes.h, tm.h, rtl.h, or
6053 real.h. Give fake definition of CONST_DOUBLE_FORMAT and
6054 substitute definition of NUM_RTX_CODE. Add casts to avoid
6055 warnings.
6056 * machmode.h: Include insn-modes.h, not machmode.def. Include
6057 mode-classes.def to define enum mode_class. Tweak definitions
6058 of GET_MODE_CLASS, GET_MODE_SIZE, GET_MODE_BITSIZE, GET_MODE_MASK,
6059 GET_MODE_INNER, GET_MODE_WIDER_MODE, GET_CLASS_NARROWEST_MODE.
6060 (inner_mode_array): Renamed mode_inner.
6061 (mode_base_align): New.
6062 * rtl.c (mode_name, mode_class, mode_bitsize, mode_size,
6063 mode_unit_size, mode_wider_mode, mode_mask_array,
6064 inner_mode_array, class_narrowest_mode): Delete definitions.
6065 * stor-layout.c (get_mode_alignment): Use mode_base_align.
6066 * real.h: Use MIN_MODE_FLOAT and MAX_MODE_FLOAT, not QFmode
6067 and TFmode, in real_format_for_mode and REAL_MODE_FORMAT.
6068
6069 * config/ip2k/ip2k.h, config/iq2000/iq2000.h:
6070 No need to define BITS_PER_UNIT.
6071
60722003-10-10 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6073
6074 * config/ia64/ia64.c (ia64_vms_init_libfuncs): New function.
6075 (ia64_output_function_prologue): Only write .prologue if --with-gnu-as.
6076 (ia64_initialize_trampoline): If not using GAS, declare trampoline
6077 as global.
6078 * config/ia64/ia64.h (ASM_APP_ON, ASM_APP_OFF): Add vers for not GAS.
6079 (ASM_OUTPUT_DEBUG_LABEL): Likewise.
6080
6081 * stor-layout.c (compute_record_mode): Don't force BLKmode if
6082 field is zero-length BLKmode.
6083 * expr.c (expand_expr, case COMPONENT_REF): Handle case of BLKmode
6084 zero-size references.
6085
6086 * combine.c (distribute_links): Properly test for REG being set.
6087
6088 * config/alpha/alpha.c (alpha_expand_block_mode): Don't use
6089 gen_lowpart and company except for REG.
6090
60912003-10-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6092
6093 * pa64-hpux.h (LINK_SPEC): Use `-z' option with HP ld.
6094
60952003-10-10 Nathanael Nerode <neroden@gcc.gnu.org>
6096
6097 * config.gcc (mips*-*-netbsd*): Remove content-free line.
6098
60992003-10-10 Herman A.J. ten Brugge <hermantenbrugge@home.nl>
6100
6101 * gcov-io.h: Check BITS_PER_UNIT when defining gcov_unsigned_t,
6102 gcov_position_t and gcov_type.
6103
61042003-10-09 Kaz Kojima <kkojima@gcc.gnu.org>
6105
6106 * configure.in (HAVE_AS_TLS): Add sh-*-* and sh[34]*-*-* cases.
6107 * configure: Regenerate.
6108
61092003-10-09 Kazu Hirata <kazu@cs.umass.edu>
6110
6111 * config/h8300/h8300.md (define_asm_attributes): Specify
6112 the length of an asm insn more precisely.
6113
61142003-10-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6115
6116 * config/mips/iris6.h (SUBTARGET_CPP_SPEC): Define.
6117
61182003-10-09 Bob Wilson <bob.wilson@acm.org>
6119
6120 * config/xtensa/xtensa.c (xtensa_dbx_register_number): Change first
6121 FP register number to 48 and MAC16 accumulator to 0x210.
6122
61232003-10-09 Nathanael Nerode <neroden@gcc.gnu.org>
6124
6125 * config.gcc: Remove redundant thread_file setting clauses for
6126 various *-*-linux* targets.
6127
61282003-10-09 Kazu Hirata <kazu@cs.umass.edu>
6129
6130 * config/h8300/h8300.md (define_asm_attributes): New.
6131
61322003-10-09 Roger Sayle <roger@eyesopen.com>
6133
6134 * optabs.c (prepare_float_lib_cmp): Always attach a REG_EQUAL note
6135 to the comparison, as emit_libcall_block calls copy_rtx on equiv.
6136
61372003-10-09 Dorit Naishlos <dorit@il.ibm.com>
6138
6139 * haifa-sched.c (ok_for_early_schedule): New function.
6140 (early_queue_to_ready): New function.
6141 (schedule_block): Allow early removal of insns from Q.
6142 (schedule_insn): Update INSN_TICK in case of premature
6143 issue.
6144 * common.opt (sched_stalled_insns): New flag.
6145 (sched_stalled_insns_dep): New flag.
6146 * flags.h: Same above flags.
6147 * opts.c: Same as above.
6148 * toplev.c: Same as above.
6149 * target.h (targetm.sched.is_costly_dependence): New
6150 hook.
6151 * target-def.h: Same as above.
6152 * config/rs6000/rs6000.h: (rs6000_sched_costly_dep):
6153 Support new flag -msched-costly-dep.
6154 (DEFAULT_SCHED_COSTLY_DEP): Define.
6155 * config/rs6000/rs6000.c:
6156 (rs6000_is_costly_dependence): New function.
6157 (is_load_insn, is_store_insn): New functions.
6158 (is_load_insn1, is_store_insn1, is_mem_ref): New
6159 functions.
6160 * doc/invoke.texi (-fsched-stalled-insns-dep)
6161 (-fsched-stalled-insns, -msched-costly-dep): Document
6162 options.
6163 * doc/tm.texi (is_costly_dependence): Define new
6164 scheduler target hook.
6165
61662003-10-09 Jason Merrill <jason@redhat.com>
6167
6168 PR c++/6392
6169 * c-common.c (c_build_qualified_type): Look through arrays first.
6170 (c_apply_type_quals_to_decl): Look through arrays.
6171
6172 * c-common.c (c_apply_type_quals_to_decl): Unset TREE_READONLY for
6173 types with constructors.
6174
6175 * coverage.c (build_ctr_info_value): Use build_decl to make a
6176 VAR_DECL.
6177 (create_coverage): Likewise.
6178
6179 * stmt.c (resolve_asm_operand_names): Call check_unique_operand_names
6180 here.
6181 (expand_asm_operands): Not here.
6182 (parse_input_constraint): No longer static.
6183 * tree.h: Declare it.
6184
61852003-10-08 Kaz Kojima <kkojima@gcc.gnu.org>
6186
6187 * config/sh/t-linux (SHLIB_LINK): Override to use a linker script
6188 libgcc_s.so.
6189 (SHLIB_INSTALL): Likewise.
6190
61912003-10-08 Nathanael Nerode <neroden@gcc.gnu.org>
6192
6193 * doc/install.texi: Remove reference to removed 'pthreads' thread
6194 option.
6195
61962003-10-08 Aldy Hernandez <aldyh@redhat.com>
6197
6198 * config/rs6000/rs6000.md ("abssi2_isel"): Add early clobber to
6199 operand 2.
6200
62012003-10-08 Nathanael Nerode <neroden@gcc.gnu.org>
6202
6203 * config.gcc: Don't accept --enable-threads=pthreads. Clean
6204 up related case statements.
6205 * configure.in: Don't accept --enable-threads=pthreads,
6206 decosf1, mach, or os2 (none of which work anyway). Alphabetize
6207 supported thread files in case clause.
6208 * configure: Regenerate.
6209
62102003-10-08 Geoffrey Keating <geoffk@apple.com>
6211
6212 * function.c (pad_to_arg_alignment): Move 'boundary_in_bytes'
6213 definition to above SPARC_STACK_BOUNDARY_HACK.
6214
62152003-10-08 Jason Merrill <jason@redhat.com>
6216
6217 * c-pretty-print.c (pp_c_postfix_expression)
6218 <COMPOUND_LITERAL_EXPR>: Fix thinko.
6219
62202003-10-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6221
6222 * mklibgcc.in: Don't hide undefined or typeless symbols.
6223
62242003-10-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6225
6226 PR optimization/12142
6227 * cse.c (count_reg_usage): In a SET with a REG SET_DEST, count the
6228 uses of the register in the SET_SRC. Remove unnecessary argument.
6229 * pa.c (legitimize_pic_address): Before reload, use a scratch register
6230 for the intermediate result in loading the address of a SYMBOL_REF.
6231 Set the MEM_NOTRAP_P flag for the MEM. Add a REG_EQUAL to the insn
6232 which loads the SYMBOL_REF address.
6233
62342003-10-08 Timo Kokkonen <tjko@iki.fi>
6235 Eric Botcazou <ebotcazou@libertysurf.fr>
6236
6237 PR bootstrap/12490
6238 * scan-decls.c (MAX_EXTERN_C_BRACES): New preprocessor constant
6239 to define the size of the extern_C_braces array. Set it to 200.
6240 (scan_decls): Abort when extern_C_braces_length is out-of-bounds.
6241
62422003-10-08 Carlo Wood <carlo@alinoe.com>
6243
6244 * Makefile.in (gengtype-lex.c): flex 2.5.4[a] doesn't understand
6245 a space after the -o option. flex 2.5.31 understands both, with
6246 and without the space. Removed that space.
6247
62482003-10-08 Richard Sandiford <rsandifo@redhat.com>
6249
6250 * config/mips/mips.c (mips_frame_info): Add cprestore_size field.
6251 (compute_frame_size): Initialize it. Remove the .cprestore slot
6252 from args_size.
6253 (mips_output_function_prologue): Simplify accordingly.
6254 (mips_debugger_offset): Change the mips16 frame pointer offset from
6255 current_function_outgoing_args to cfun->machine->frame.args_size.
6256 (mips_initial_elimination_offset): Likewise.
6257 (mips_expand_prologue): Likewise.
6258 (mips_expand_epilogue): Likewise.
6259
62602003-10-08 Richard Sandiford <rsandifo@redhat.com>
6261
6262 * config/mips/mips.h (EXTRA_CONSTRAINT): Add 'W' constraint.
6263 (EXTRA_MEMORY_CONSTRAINT): Define.
6264 (CAN_ELIMINATE): Remove lwu workaround.
6265 * config/mips/mips.md (*zero_extendsidi2_mem): Enable for mips16 too.
6266 Use a 'W' constraint for the source operand.
6267
62682003-10-08 Kazu Hirata <kazu@cs.umass.edu>
6269
6270 * genopinit.c (main): Output code to declare undefined
6271 variables.
6272
62732003-10-07 Kelley Cook <kcook@gcc.gnu.org>
6274
6275 * gengtype-lex.l: Remove -Wtraditional cruft.
6276 * Makefile.in (gengtype-lex.c): Likewise.
6277
62782003-10-07 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6279
6280 * cfgloopmanip.c (fix_irreducible_loops): Initialize e correctly.
6281
62822003-10-07 Jason Merrill <jason@redhat.com>
6283
6284 PR c++/12519
6285 * c-semantics.c (genrtl_cleanup_stmt): Ignore the CLEANUP_DECL if
6286 it isn't a decl.
6287
62882003-10-07 Alexandre Oliva <aoliva@redhat.com>
6289
6290 * gcc.c (cpp_options): Only pass -fworking-directory for -g* if
6291 not overridden.
6292 Fixes PR bootstrap/12173.
6293
62942003-10-07 Zack Weinberg <zack@codesourcery.com>
6295
6296 * errors.c: Don't include coretypes.h or tm.h.
6297 (trim_filename): Use IS_DIR_SEPARATOR.
6298 * Makefile.in: Update dependencies of errors.o and
6299 $(BUILD_PREFIX_1)errors.o.
6300
63012003-10-07 Geoffrey Keating <geoffk@apple.com>
6302
6303 * function.c (pad_to_arg_alignment): Take STACK_POINTER_OFFSET into
6304 account when aligning arguments.
6305 * calls.c (STACK_POINTER_OFFSET): Move default from here ...
6306 * defaults.h (STACK_POINTER_OFFSET): ... to here.
6307 * config/sparc/sparc.h (STACK_BOUNDARY): Add comment about how
6308 it's wrong when TARGET_ARCH64 && TARGET_STACK_BIAS.
6309 (SPARC_STACK_BOUNDARY_HACK): Define.
6310 * config/rs6000/rs6000.c (function_arg): On non-SVR4 systems,
6311 arrange for vector parameters to varargs functions to be passed
6312 in both memory and GPRs when appropriate.
6313 (rs6000_va_arg): Vector arguments passed in memory are 16-byte
6314 aligned.
6315
6316 * hooks.c (hook_bool_tree_true): New.
6317 (hook_rtx_tree_int_null): New.
6318 (hook_rtx_rtx_null): Use NULL, not 0.
6319 * hooks.h: Add 'extern' to everything.
6320 (hook_bool_tree_true): New.
6321 (hook_rtx_tree_int_null): New.
6322 * targhooks.c (hook_bool_CUMULATIVE_ARGS_true): New.
6323 * targhooks.h (hook_bool_CUMULATIVE_ARGS_true): New.
6324 * config/rs6000/rs6000-protos.h (setup_incoming_varargs): Remove
6325 prototype.
6326 * config/rs6000/rs6000.c (rs6000_return_in_memory): New.
6327 (setup_incoming_varargs): Prototype.
6328 (TARGET_PROMOTE_FUNCTION_ARGS): Define.
6329 (TARGET_PROMOTE_FUNCTION_RETURN): Define.
6330 (TARGET_STRUCT_VALUE_RTX): Define.
6331 (TARGET_RETURN_IN_MEMORY): Define.
6332 (TARGET_SETUP_INCOMING_VARARGS): Define.
6333 (TARGET_STRICT_ARGUMENT_NAMING): Define.
6334 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Define.
6335 (init_cumulative_args): Use rs6000_return_in_memory.
6336 (setup_incoming_varargs): Make 'static'.
6337 * config/rs6000/rs6000.h (PROMOTE_FUNCTION_ARGS): Delete.
6338 (PROMOTE_FUNCTION_RETURN): Delete.
6339 (STRUCT_VALUE): Delete.
6340 (RETURN_IN_MEMORY): Delete.
6341 (SETUP_INCOMING_VARARGS): Delete.
6342
63432003-10-07 Gerald Pfeifer <gerald@pfeifer.com>
6344
6345 * doc/invoke.texi (Warning Options): Simplify and clarify the
6346 descriptions of -Wnonnull and -Winit-self.
6347
63482003-10-07 Richard Earnshaw <rearnsha@arm.com>
6349
6350 * optabs.c (init_intraclass_conv_libfuncs): Fix order of array
6351 indicees for floating-point conversersion libcalls.
6352
63532003-10-07 Nathanael Nerode <neroden@gcc.gnu.org>
6354
6355 * Makefile.in: Add more comments separating large conceptually
6356 separate sections.
6357
6358 * configure.in: Clean up thread file logic.
6359 * configure: Regenerate.
6360
63612003-10-07 Danny Smith <dannysmith@users.sourceforge.net>
6362
6363 * config/i386/cygming.h (READONLY_DATA_SECTION_ASM_OP): Define.
6364 (switch_to_section): Handle in_readonly_data.
6365 * config/i386/winnt.c (i386_pe_asm_named_section): Handle
6366 readonly data.
6367
63682003-10-07 Richard Earnshaw <rearnsha@arm.com>
6369
6370 * arm.md (cmpsi2_addneg): New ARM pattern. Add peephole2 to generate
6371 it.
6372 (cbranchne_decr1): New Thumb pattern.
6373 * arm.c (arm_addimm_operand): New insn predicate.
6374 * arm-protos.h: Add a prototype for it.
6375 * arm.h (PREDICATE_CODES): Add it.
6376
63772003-10-07 Dorit Naishlos <dorit@il.ibm.com>
6378
6379 * sched-int.h (sched_info): New field
6380 sched_max_insns_priority.
6381 * sched-rgn.c (init_ready_list): Add invocations to
6382 targetm.sched.adjust_priority.
6383 (sched_max_insns_priority): Init new field.
6384 * sched-ebb.c (sched_max_insns_priority): Init new field.
6385 * haifa-sched.c (set_priorities): Set
6386 sched_info->sched_max_insns_priority.
6387 * config/rs6000/rs6000.h:
6388 (rs6000_sched_restricted_insns_priority_str): Support new
6389 flag -mprioritize-restricted-insns.
6390 (DEFAULT_RESTRICTED_INSNS_PRIORITY): Define.
6391 * config/rs6000/rs6000.c (is_dispatch_slot_restricted): New
6392 function.
6393 (rs6000_adjust_priority): Change priority of restricted
6394 insns, using above new function and new flag.
6395 * doc/invoke.texi (-mprioritize-restricted-insns): Document
6396 new option.
6397
63982003-10-07 Zack Weinberg <zack@codesourcery.com>
6399
6400 * expr.c (cmpstr_optab, cmpmem_optab): New.
6401 * genopinit.c: Initialize them.
6402 * optabs.h: Declare them.
6403 * optabs.c (init_optabs): Clear them.
6404 (prepare_cmp_insn): Use cmpstr_optab and cmpmem_optab to find
6405 block memory compare insns, not conditional chains. Restructure
6406 the fallback generation of a call to memcmp/bcmp for better
6407 readability.
6408
64092003-10-07 Richard Sandiford <rsandifo@redhat.com>
6410
6411 * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): New macro.
6412 (mips_save_restore_fn): New typedef.
6413 (mips_add_large_offset_to_sp, mips_emit_frame_related_store): Remove.
6414 (mips_set_frame_expr, mips_frame_set): Move above prologue code.
6415 (save_restore_insns): Remove, replacing with...
6416 (mips_save_restore_reg, mips_for_each_saved_reg): ...these new fns.
6417 (mips_save_reg, mips_restore_reg): New function.
6418 (mips_expand_prologue, mips_expand_epilogue): Rework.
6419 * config/mips/mips.h (MIPS_TEMP1_REGNUM, MIPS_TEMP2_REGNUM): Remove.
6420 (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): New macros.
6421 (MIPS_PROLOGUE_TEMP, MIPS_EPILOGUE_TEMP): New macros.
6422
64232003-10-07 Richard Sandiford <rsandifo@redhat.com>
6424
6425 * config/mips/mips.c (mips_expand_prologue): Remove unused
6426 traversal of function arguments.
6427
64282003-10-07 Richard Sandiford <rsandifo@redhat.com>
6429
6430 * doc/invoke.texi: Remove documentation of -mentry.
6431 * config/mips/mips.c (mips_entry_string, mips_entry): Remove.
6432 (override_options, mips_save_reg_p): Remove handling.
6433 (compute_frame_size, mips_output_function_prologue): Likewise.
6434 (mips_expand_prologue, mips_expand_epilogue): Likewise.
6435 * config/mips/mips.h (mips_entry_string): Remove declaration.
6436 (TARGET_OPTIONS): Remove -mentry.
6437 * config/mips/mips16.S: Remove mention of -mentry.
6438
64392003-10-06 Zack Weinberg <zack@codesourcery.com>
6440
6441 * libfuncs.h (LTI_extendsfdf2, LTI_extendsfxf2, LTI_extendsftf2)
6442 (LTI_extenddfxf2, LTI_extenddftf2, LTI_truncdfsf2, LTI_truncxfsf2)
6443 (LTI_trunctfsf2, LTI_truncxfdf2, LTI_trunctfdf2, LTI_floatsisf)
6444 (LTI_floatdisf, LTI_floattisf, LTI_floatsidf, LTI_floatdidf)
6445 (LTI_floattidf, LTI_floatsixf, LTI_floatdixf, LTI_floattixf)
6446 (LTI_floatsitf, LTI_floatditf, LTI_floattitf, LTI_fixsfsi, LTI_fixsfdi)
6447 (LTI_fixsfti, LTI_fixdfsi, LTI_fixdfdi, LTI_fixdfti, LTI_fixxfsi)
6448 (LTI_fixxfdi, LTI_fixxfti, LTI_fixtfsi, LTI_fixtfdi, LTI_fixtfti)
6449 (LTI_fixunssfsi, LTI_fixunssfdi, LTI_fixunssfti, LTI_fixunsdfsi)
6450 (LTI_fixunsdfdi, LTI_fixunsdfti, LTI_fixunsxfsi, LTI_fixunsxfdi)
6451 (LTI_fixunsxfti, LTI_fixunstfsi, LTI_fixunstfdi, LTI_fixunstfti)
6452 (extendsfdf2_libfunc, extendsfxf2_libfunc, extendsftf2_libfunc)
6453 (extenddfxf2_libfunc, extenddftf2_libfunc, truncdfsf2_libfunc)
6454 (truncxfsf2_libfunc, trunctfsf2_libfunc, truncxfdf2_libfunc)
6455 (trunctfdf2_libfunc, floatsisf_libfunc, floatdisf_libfunc)
6456 (floattisf_libfunc, floatsidf_libfunc, floatdidf_libfunc)
6457 (floattidf_libfunc, floatsixf_libfunc, floatdixf_libfunc)
6458 (floattixf_libfunc, floatsitf_libfunc, floatditf_libfunc)
6459 (floattitf_libfunc, fixsfsi_libfunc, fixsfdi_libfunc, fixsfti_libfunc)
6460 (fixdfsi_libfunc, fixdfdi_libfunc, fixdfti_libfunc, fixxfsi_libfunc)
6461 (fixxfdi_libfunc, fixxfti_libfunc, fixtfsi_libfunc, fixtfdi_libfunc)
6462 (fixtfti_libfunc, fixunssfsi_libfunc, fixunssfdi_libfunc)
6463 (fixunssfti_libfunc, fixunsdfsi_libfunc, fixunsdfdi_libfunc)
6464 (fixunsdfti_libfunc, fixunsxfsi_libfunc, fixunsxfdi_libfunc)
6465 (fixunsxfti_libfunc, fixunstfsi_libfunc, fixunstfdi_libfunc)
6466 (fixunstfti_libfunc): Delete.
6467 * optabs.h (struct optab_handlers): Break out of struct optab.
6468 (struct convert_optab, convert_optab, enum convert_optab_index,
6469 convert_optab_table, sext_optab, zext_optab, trunc_optab,
6470 sfix_optab, ufix_optab, sfixtrunc_optab, ufixtrunc_optab,
6471 sfloat_optab, ufloat_optab): New.
6472 (set_conv_libfunc): Prototype.
6473 (GEN_FCN): Use C90 indirect call syntax, remove unnecessary cast.
6474 (trunc_optab): Renamed btrunc_optab.
6475 * builtins.c (expand_builtin_mathfn): Update to match.
6476 * optabs.c (extendtab, fixtab, fixtrunctab, floattab): Delete.
6477 (convert_optab_table, new_convert_optab, init_convert_optab)
6478 (init_interclass_conv_libfuncs, init_intraclass_conv_libfuncs)
6479 (set_conv_libfunc): New.
6480 (can_extend_p, gen_extend_insn, can_fix_p, can_float_p)
6481 (expand_float, expand_fix): Use new conversion optabs,
6482 not old insn code tables or long chains of ifs.
6483 (init_optabs): No need to clear old insn code tables.
6484 Initialize the new optabs, not the old libfunc array entries.
6485 Don't handle FIXUNS_TRUNC_LIKE_FIX_TRUNC here.
6486 * genopinit.c: Initialize conversion optabs, not the
6487 former insn code tables. Remove unnecessary casts.
6488 Handle FIXUNS_TRUNC_LIKE_FIX_TRUNC here.
6489 * expr.c (convert_move): Remove redundant check that
6490 to_real==from_real. Use the conversion optabs instead
6491 of long chains of tests of modes. Move partial-integer-mode
6492 interconversion above all integer conversion. Do not recurse
6493 on a value forced into a register in the original mode.
6494
6495 * config/gofast.h, config/frv/frv.c, config/ia64/ia64.c
6496 * config/mips/mips.c, config/pa/pa.c, config/rs6000/rs6000.c
6497 * config/sparc/sparc.c: Use set_conv_libfunc to adjust entries
6498 in new conversion optabs; do not reference the old libfunc
6499 array entries. No need to include libfuncs.h.
6500
65012003-10-06 Roger Sayle <roger@eyesopen.com>
6502
6503 * config/i386/i386.c (ix86_expand_setcc): Annotate the floating
6504 point comparison sequence with a REG_EQUAL note that describes
6505 the comparison's semantics.
6506
65072003-10-06 Roger Sayle <roger@eyesopen.com>
6508
6509 * expr.c (expand_expr <COND_EXPR>): Handle the void type semantics
6510 of COND_EXPR when expanding the "A op 0 ? FOO : A" optimizations.
6511
65122003-10-06 Roger Sayle <roger@eyesopen.com>
6513 Zack Weinberg <zack@codesourcery.com>
6514
6515 * optabs.c (prepare_float_lib_cmp): Avoid searching for REG_RETVAL
6516 instruction by using LCT_CONST and then calling emit_libcall_block
6517 ourselves.
6518
65192003-10-06 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
6520
6521 PR optimization/11974
6522 * optabs.c (expand_unop): Promote libcall outmode according to
6523 hard_libcall_value.
6524
65252003-10-06 Zack Weinberg <zack@codesourcery.com>
6526
6527 * real.h (REAL_MODE_FORMAT): New macro.
6528 * c-cppbuiltin.c, optabs.c, real.c, config/alpha/alpha.c
6529 * config/c4x/c4x.c, config/i370/i370.c, config/i386/freebsd.h
6530 * config/i386/i386.c, config/i960/i960.c, config/ia64/ia64.c
6531 * config/m68k/m68k.c, config/mips/mips.c, config/rs6000/rs6000.c
6532 * config/vax/vax.c: Use REAL_MODE_FORMAT instead of referring
6533 directly to real_format_for_mode array, wherever possible.
6534
65352003-10-06 Devang Patel <dpatel@apple.com>
6536
6537 * dwarf2out.c (is_main_source): Remove variable.
6538 (dwarf2out_start_source_file): Do not check is_main_source.
6539 Do not reset is_main_source.
6540 (dwarf2out_init): Do not initialize is_main_source.
6541
65422003-10-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6543
6544 * fixinc/inclhack.def (stdio_va_list): Removed _ap fix.
6545 (irix_stdio_va_list): Don't require leading printf, IRIX 6.5.21
6546 introduced some multi-line prototypes.
6547 * fixinc/fixincl.x: Regenerate.
6548
65492003-10-06 Richard Sandiford <rsandifo@redhat.com>
6550
6551 * config/mips/mips.h (PREDICATE_CODES): Add stack_operand.
6552 * config/mips/mips.c (stack_operand): New predicate.
6553 * config/mips/mips.md: Use it for the destination of mips16 insns
6554 that store $31.
6555
65562003-10-06 Richard Sandiford <rsandifo@redhat.com>
6557
6558 * config/mips/mips.md (*lowsi): Renamed from lowsi.
6559 (*lowdi): Likewise lowdi.
6560 (*lowsi_mips16, *lowdi_mips16): New patterns.
6561 * config/mips/mips.c (mips_const_insns, mips_output_move): Remove
6562 mips16 CONSTANT_RELOC handling.
6563 (mips_delegitimize_address): Adjust for new sdata representation.
6564
65652003-10-06 Richard Sandiford <rsandifo@redhat.com>
6566
6567 * config/mips/mips.c (mips_arg_info): If MUST_PASS_IN_STACK,
6568 skip any remaining register arguments.
6569
65702003-10-06 Ulrich Weigand <uweigand@de.ibm.com>
6571
6572 * reload.c (find_reloads_subreg_address): Use correct offset for
6573 paradoxical MEM subregs on big-endian targets.
6574
65752003-10-06 Andrew Haley <aph@redhat.com>
6576
6577 * tree.c (get_callee_fndecl): Call
6578 lang_hooks.lang_get_callee_fndecl.
6579 * langhooks-def.h (LANG_HOOKS_GET_CALLEE_FNDECL): New.
6580 (lhd_get_callee_fndecl): New.
6581
65822003-10-06 Andrew Pinski <apinski@apple.com>
6583
6584 * config/darwin.c (machopic_non_lazy_ptr_name): Fix off by one
6585 error in calculating the length of the string.
6586 (machopic_stub_name): Likewise.
6587
65882003-10-06 Roger Sayle <roger@eyesopen.com>
6589
6590 * optabs.c (prepare_float_lib_cmp): Attach a REG_EQUAL note
6591 describing the return value of the comparison libcall to the
6592 REG_RETVAL instruction of the emitted sequence.
6593
65942003-10-06 Eric Botcazou <ebotcazou@libertysurf.fr>
6595
6596 PR optimization/12215
6597 * cse.c (cse_set_around_loop): Emit the move at the beginning
6598 of the next basic block for trapping sets.
6599
66002003-10-06 Eric Botcazou <ebotcazou@libertysurf.fr>
6601
6602 PR optimization/11637
6603 * combine.c (adjust_for_new_dest): New function to adjust the
6604 notes and LOG_LINKS when the dest of an insn has changed.
6605 (try_combine): Use it when deleting the first insn of a two-insn
6606 parallel or splitting a two-load parallel.
6607
66082003-10-06 Richard Sandiford <rsandifo@redhat.com>
6609
6610 * config/mips/mips.c (mips_classify_constant): Only allow UNSPECs
6611 if TARGET_EXPLICIT_RELOCS.
6612
66132003-10-06 Mark Mitchell <mark@codesourcery.com>
6614
6615 PR bootstrap/12512
6616 * Makefile.in (info): Use double-colon rules.
6617 (dvi): Likewise.
6618 (generated-manpages): Likewise.
6619 * configure.in: Do not create lang.info, lang.dvi, or
6620 lang.generated-manpages hooks.
6621 * configure: Regenerated.
6622 * objc/Make-lang.in (objc.info): Remove.
6623 (objc.dvi): Remove.
6624 (objc.generated-manpages): Remove.
6625 * doc/sourcebuild.texi: Update description of info, dvi, and
6626 generated-manpages hooks.
6627
66282003-10-06 Richard Sandiford <rsandifo@redhat.com>
6629
6630 * config/mips/mips.md: Merge mips16 lw/srl pattern with its splitter.
6631
66322003-10-05 Andrew Pinski <apinski@apple.com>
6633
6634 * config/darwin.c (machopic_non_lazy_ptr_name): Fix off by one
6635 errors in memcpy destinations.
6636 (machopic_stub_name): Likewise.
6637
66382003-10-05 Andrew Pinski <apinski@apple.com>
6639
6640 * config/darwin.c (machopic_non_lazy_ptr_name):
6641 Change strcat to memcpy and add length together.
6642 (machopic_stub_name): Likewise.
6643
66442003-10-05 Kaz Kojima <kkojima@gcc.gnu.org>
6645
6646 * config/sh/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Handle new
6647 signal trampoline codes.
6648
66492003-10-05 Chris Demetriou <cgd@broadcom.com>
6650
6651 * config/mips/mips.md (*divsf3): Move description of
6652 SB-1 F2 erratum from here to...
6653 (divsf3): Here. Disable if TARGET_FIX_SB1 is set and
6654 flag_unsafe_math_optimizations is not.
6655
66562003-10-05 Aldy Hernandez <aldyh@redhat.com>
6657
6658 * config/rs6000/linuxspe.h: Define TARGET_SPE_ABI, TARGET_SPE,
6659 TARGET_E500, TARGET_ISEL, and TARGET_FPRS.
6660
66612003-10-05 Kazu Hirata <kazu@cs.umass.edu>
6662
6663 * c-pretty-print.c: Fix comment typos.
6664 * c-pretty-print.h: Likewise.
6665 * calls.c: Likewise.
6666 * cfgloopmanip.c: Likewise.
6667 * cgraphunit.c: Likewise.
6668 * cppfiles.c: Likewise.
6669 * final.c: Likewise.
6670 * function.c: Likewise.
6671 * gcov-io.h: Likewise.
6672 * gcse.c: Likewise.
6673 * genoutput.c: Likewise.
6674 * loop.c: Likewise.
6675 * postreload.c: Likewise.
6676 * reg-stack.c: Likewise.
6677 * regmove.c: Likewise.
6678 * sched-int.h: Likewise.
6679 * sched-rgn.c: Likewise.
6680 * simplify-rtx.c: Likewise.
6681 * tree-inline.c: Likewise.
6682 * config/m68hc11/m68hc11.h: Likewise.
6683 * config/mmix/mmix.c: Likewise.
6684 * config/mn10300/mn10300.md: Likewise.
6685 * config/sh/sh.h: Likewise.
6686
66872003-10-05 Richard Henderson <rth@redhat.com>
6688
6689 * tree-inline.c (remap_type): New.
6690 (remap_decl): Use it. Remap DECL_SIZE*.
6691 (copy_body_r): Use it.
6692 (walk_tree): Walk TREE_TYPE too.
6693 (copy_tree_r): Don't walk subtrees of types.
6694 * tree.c (variably_modified_type_p): Restructure. Consider integer
6695 types with non-const bounds variably modified.
6696
66972003-10-05 Kazu Hirata <kazu@cs.umass.edu>
6698
6699 * doc/invoke.texi: Fix typos.
6700
67012003-10-05 Kazu Hirata <kazu@cs.umass.edu>
6702
6703 * fold-const.c: Follow spelling conventions.
6704 * function.c: Likewise.
6705 * config/c4x/c4x.h: Likewise.
6706 * config/c4x/c4x.md: Likewise.
6707 * config/frv/frv.md: Likewise.
6708 * config/rs6000/aix.h: Likewise.
6709 * config/rs6000/linux64.h: Likewise.
6710 * config/xtensa/xtensa.c: Likewise.
6711
67122003-10-05 Kazu Hirata <kazu@cs.umass.edu>
6713
6714 * c-pretty-print.c: Fix comment formatting.
6715 * cfglayout.c: Likewise.
6716 * cfgloopanal.c: Likewise.
6717 * cppcharset.c: Likewise.
6718 * dbxout.c: Likewise.
6719 * ggc-page.c: Likewise.
6720 * ggc.h: Likewise.
6721 * target.h: Likewise.
6722
67232003-10-04 Kelley Cook <kelleycook@wideopenwest.com>
6724
6725 * gengtype-lex.l: Recognize typedef of functions without PARAMS macro.
6726
67272003-10-04 Nathanael Nerode <neroden@gcc.gnu.org>
6728
6729 * config/v850/v850-c.c, config/v850/v850-protos.h, config/v850/v850.c:
6730 Convert to ISO C90 function declarations and definitions.
6731
67322003-10-04 Zack Weinberg <zack@codesourcery.com>
6733
6734 * libfuncs.h
6735 (LTI_eqhf2, LTI_nehf2, LTI_gthf2, LTI_gehf2, LTI_lthf2)
6736 (LTI_lehf2, LTI_unordhf2, LTI_eqsf2, LTI_nesf2, LTI_gtsf2)
6737 (LTI_gesf2, LTI_ltsf2, LTI_lesf2, LTI_unordsf2, LTI_eqdf2)
6738 (LTI_nedf2, LTI_gtdf2, LTI_gedf2, LTI_ltdf2, LTI_ledf2)
6739 (LTI_unorddf2, LTI_eqxf2, LTI_nexf2, LTI_gtxf2, LTI_gexf2)
6740 (LTI_ltxf2, LTI_lexf2, LTI_unordxf2, LTI_eqtf2, LTI_netf2)
6741 (LTI_gttf2, LTI_getf2, LTI_lttf2, LTI_letf2, LTI_unordtf2)
6742 (eqhf2_libfunc, nehf2_libfunc, gthf2_libfunc, gehf2_libfunc)
6743 (lthf2_libfunc, lehf2_libfunc, unordhf2_libfunc, eqsf2_libfunc)
6744 (nesf2_libfunc, gtsf2_libfunc, gesf2_libfunc, ltsf2_libfunc)
6745 (lesf2_libfunc, unordsf2_libfunc eqdf2_libfunc, nedf2_libfunc)
6746 (gtdf2_libfunc, gedf2_libfunc, ltdf2_libfunc, ledf2_libfunc)
6747 (unorddf2_libfunc eqxf2_libfunc, nexf2_libfunc, gtxf2_libfunc)
6748 (gexf2_libfunc, ltxf2_libfunc, lexf2_libfunc, unordxf2_libfunc
6749 (eqtf2_libfunc, netf2_libfunc, gttf2_libfunc, getf2_libfunc)
6750 (lttf2_libfunc, letf2_libfunc, unordtf2_libfunc):
6751 Delete.
6752 * optabs.h (OTI_eq, OTI_ne, OTI_gt, OTI_ge, OTI_lt, OTI_le)
6753 (OTI_unord, eq_optab, ne_optab, gt_optab, ge_optab, lt_optab)
6754 (le_optab, unord_optab): New.
6755
6756 * optabs.c (prepare_float_lib_cmp): Rewrite. Get the libfuncs
6757 from the code_to_optab table, not a giant switch; use
6758 swap_condition; do widening only if a comparison function that
6759 we can call exists in a wider mode, not if a cmp_optab insn or
6760 libfunc exists in a wider mode; call protect_from_queue
6761 exactly once on each operand.
6762 (init_optabs): Initialize the new optabs, not the deleted libfuncs.
6763
6764 * config/gofast.h, config/ia64/ia64.c, config/mips/mips.c
6765 * config/pa/pa.c, config/rs6000/rs6000.c, config/sparc/sparc.c:
6766 Set floating point comparison libfuncs using set_optab_libfunc
6767 on the appropriate optab.
6768
6769 * config/ia64/ia64.c (ia64_hpux_init_libfuncs): Fix typo.
6770 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Correct ABI
6771 selector conditionals.
6772
67732003-10-04 Stephane Carrez <stcarrez@nerim.fr>
6774
6775 * config/m68hc11/t-m68hc11-gas (MULTILIB_MATCHES): m68hcs12 is
6776 identical to m68hc12 as far as libraries are concerned.
6777
67782003-10-04 Eric Botcazou <ebotcazou@libertysurf.fr>
6779
6780 PR c/12446
6781 * c-typeck.c (convert_for_assignment): Issue an error for
6782 array to pointer assignment after default conversion.
6783 (digest_init): Likewise.
6784
67852003-10-04 Fariborz Jahanian <fjahanian@apple.com>
6786
6787 * c-decl.c (duplicate_decls): retain DECL_COMMON of old declaration
6788
67892003-10-03 Gerald Pfeifer <gerald@pfeifer.com>
6790
6791 * doc/extend.texi (Function Attributes): Fix title of GNU C
6792 Preprocessor manual.
6793 (C++ Extensions): Fix reference to "Predefined Macros" in the
6794 GNU C Preprocessor manual.
6795
67962003-10-04 Richard Earnshaw <reanrsha@arm.com>
6797
6798 * doc/extend.texi: Document how GCC estimates and relies on the size
6799 of an asm.
6800
68012003-10-04 Richard Sandiford <rsandifo@redhat.com>
6802
6803 * config/mips/mips.c (mips_pad_arg_upward): Pad floating-point
6804 arguments downward for big-endian o64.
6805
68062003-10-03 Robert Bowdidge <bowdidge@apple.com>
6807
6808 * ggc-page.c (ggc_pch_write_object): Replace fseek() with fwrite() in
6809 PCH generation, avoiding too-frequent flushes when writing to NFS
6810 file system.
6811
68122003-10-03 Ziemowit Laski <zlaski@apple.com>
6813
6814 * objc/objc-act.c (lookup_category): Mark as 'inline'.
6815
68162003-10-03 Alexander Malmberg <alexander@malmberg.org>
6817 Ziemowit Laski <zlaski@apple.com>
6818
6819 * objc/objc-act.c (add_method_to_hash_list, lookup_category):
6820 New functions.
6821 (lookup_method_in_hash_lists): New parameter indicating whether
6822 we are messaging 'Class' or 'id'.
6823 (check_duplicates): Likewise; do not assume all methods will
6824 be either class or instance methods.
6825 (generate_category, finish_class): Use lookup_category().
6826 (add_method): Use add_method_to_hash_list(); insert instance
6827 methods of root classes into the global class method hash table.
6828 (add_category): Use lookup_category(); avoid constructing
6829 duplicate categories.
6830 (really_start_method): Add method to corresponding @interface,
6831 if not already there (and if the @interface exists).
6832 (finish_message_expr, finish_objc): Adjust calls to
6833 check_duplicates().
6834
68352003-10-03 Roger Sayle <roger@eyesopen.com>
6836
6837 PR optimization/9325, PR java/6391
6838 * fold-const.c (fold_convert): For floating point to integer
6839 conversions, return the maximum/minimum representable integer
6840 value if the real constant overflows the destination type.
6841 * tree.c (real_value_from_int_cst): Allow the type to be NULL,
6842 meaning don't truncate the result to a floating point mode.
6843 Simplify the logic by calling real_from_integer directly.
6844 * simplify-rtx.c (simplify_unary_operation): Implement the
6845 same semantics for folding floating point to integer conversions
6846 in RTL.
6847
68482003-10-03 Chris Demetriou <cgd@broadcom.com>
6849
6850 * config/mips/mips.c (mips_emit_prefetch): Restructure
6851 to avoid use of arrays, handle indexed prefetch.
6852 * config/mips/mips.h (ISA_HAS_FP4, ISA_HAS_PREFETCH): Update comments.
6853 (ISA_HAS_PREFETCHX): New deffine.
6854 * config/mips/mips.md ("type" attr): Add new "prefetchx" value,
6855 update comments.
6856 (prefetch_indexed_di, prefetch_indexed_si): New insns.
6857
68582003-10-03 Jeff Sturm <jsturm@one-point.com>
6859 Roger Sayle <roger@eyesopen.com>
6860
6861 PR optimization/12289
6862 * calls.c (emit_call_1): Pretend to have popped the arguments
6863 to noreturn and longjmp functions instead of ignoring them.
6864 (expand_call): Don't adjust stack_pointer_dela while
6865 inhibit_defer_pop is set.
6866
68672003-10-03 Andreas Schwab <schwab@suse.de>
6868
6869 PR bootstrap/12276
6870 * configure.in: Check for libunwind on the host only if building
6871 a native compiler.
6872 * configure: Regenerated.
6873
68742003-10-03 Paolo Carlini <pcarlini@unitus.it>
6875
6876 * unwind-pe.h (read_encoded_value_with_base): Constify u and
6877 its inizialization cast.
6878
68792003-10-03 Richard Sandiford <rsandifo@redhat.com>
6880
6881 PR target/12485
6882 * config/mips/mips.c (mips_load_got): GOT accesses can't trap.
6883
68842003-10-02 Mark Mitchell <mark@codesourcery.com>
6885
6886 PR optimization/12180
6887 * tree-inline.c (inline_forbidden_p_1): Do not permit inlining of
6888 functions containing calls to __builtin_next_arg.
6889
68902003-10-02 Chris Demetriou <cgd@broadcom.com>
6891
6892 * config/mips/mips.c (mips_emit_prefetch): Use operand 3
6893 in instructions being output.
6894 * config/mips/mips.md (prefetch_si_address): Change third
6895 operand's constraint letter to 'I'.
6896 (prefetch_di_address): Likewise.
6897 (prefetch_si, prefetch_di): Set third operand to const0_rtx.
6898
68992003-10-02 Zack Weinberg <zack@codesourcery.com>
6900
6901 * system.h: Poison macros obsoleted by earlier patch.
6902 * config/cris/cris.c: C90-ify a function definition.
6903
69042003-10-02 Josef Zlomek <zlomekj@suse.cz>
6905
6906 PR/12292
6907 * combine.c (make_field_assignment): Check whether rtx's code
6908 is CONST_INT before using INTVAL.
6909
69102003-10-02 Josef Zlomek <zlomekj@suse.cz>
6911
6912 * cgraph.c (cgraph_node): Use INSERT instead of 1 in
6913 htab_find_slot_with_hash.
6914 (cgraph_node_for_identifier): Use NO_INSERT.
6915 (cgraph_remove_node): Use NO_INSERT.
6916 (cgraph_varpool_node): Use INSERT.
6917 (cgraph_varpool_node_for_identifier): Use NO_INSERT.
6918
69192003-10-02 Josef Zlomek <zlomekj@suse.cz>
6920
6921 Waldek Hebisch <hebisch@math.uni.wroc.pl>
6922 PR/12072
6923 * varasm.c (compare_constant): Fix thinko.
6924
69252003-10-02 Richard Sandiford <rsandifo@redhat.com>
6926
6927 * config/frv/frv.c (frv_issue_rate): New function.
6928 (frv_pack_insns): Use it.
6929 (TARGET_SCHED_ISSUE_RATE): Define.
6930
69312003-10-02 Steven Bosscher <s.bosscher@student.tudelft.nl>
6932
6933 * config/mcore/mcore.c: Convert to ISO C90 function declarations
6934 and definitions.
6935 * config/mcore/mcore.h: Likewise.
6936 * config/mcore/mcore-protos.h: Likewise.
6937
69382003-10-02 Richard Sandiford <rsandifo@redhat.com>
6939
6940 * config/frv/frv.c (frv_use_dfa_pipeline_interface): New function.
6941 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
6942
69432003-10-01 Per Bothner <pbothner@apple.com>
6944
6945 * c-lex.c (src_line): Remove unneeded static variable.
6946 (cb_line_change): Set input_line directly, instead of src_line.
6947 (get_non_padding_token): We no longer need to compensate for the
6948 "horrible things" the C++ front-end does with the current line number,
6949
6950 * cpplib.c (_cpp_pop_buffer): Do generate a _cpp_do_file_change
6951 callback even when popping the main file.
6952 * c-lex.c (fe_file_change): Handle a NULL new_map.
6953 * fix-header.c (cb_file_change): Likewise.
6954 * c-ppoutput.c (pp_file_change): Likewise.
6955
6956 * cppinit.c (cpp_read_main_file): Split into two functions:
6957 Distribute _cpp_stack_file call over the two functions.
6958 (cpp_find_main_file): New function.
6959 Don't call _cpp_do_file_change even if working_directory flag set.
6960 (cpp_push_main_file): New function.
6961 * cppfiles.c (_cpp_find_failed): New helper function.
6962 (find_file): Made non-static and renamed to _cpp_find_file.
6963 (_cpp_stack_file): No longer needed. But note the following.
6964 (stack_file): Made non-static and renamed to _cpp_stack_file.
6965 * fix-header.c (cpp_read_main_file): Replace cpp_read_main_file
6966 call with calls to cpp_find_main_file and cpp_push_main_file.
6967 (search_path_head): If there is no current buffer, use main_file.
6968 * cpphash.h: Update function declarations.
6969 * cpplib.h: Update function declarations.
6970
6971 * c-opts.c (c_common_post_options): Don't call cpp_find_main_file yet.
6972 (c_common_parse_file): No longer need to call cpp_read_main_file
6973 when file_index > 0 (as in multi-file or server compiation).
6974 (finish_options): Change to <built-in> is an LC_ENTER, not LC_RENAME
6975 as this now happens before cpp_push_main_file.
6976 (push_command_line_include): When done with options, pass LC_LEAVE
6977 instead of LC_RENAME to cpp_change_file and finally cpp_push_main_file.
6978 (fe_file_change): Handle NULL new_map, and simplify.
6979 * cpplex.c (_cpp_get_fresh_line): Revert my no-longer-needed
6980 08-28 change, since we're never called with a NULL buffer.
6981 (_cpp_lex_direct): Likewise.
6982 * cpptrad.c (_cpp_read_logical_line_trad): Likewise.
6983 Return false if buffer is NULL at end.
6984
6985 * cpplex.c (_cpp_get_fresh_line): Return value now just depends on
6986 whether pfile->buffer is NULL after pop, ignoring return_at_eof.
6987 * cpphash.h (struct cpp_buffer): Remove unused return_at_eof field.
6988 * cpplib.c (cpp_push_buffer): Since we no longer set return_at_eof,
6989 remove the unused return_at_eof parameter.
6990 * cppfiles.c, cpplib.c, cppmacro.c, cpppch.c, fix-header.c:
6991 Update callers of cpp_push_buffer.
6992
69932003-10-01 Zack Weinberg <zack@codesourcery.com>
6994
6995 * target.h (init_libfuncs): New hook.
6996 * target-def.h: Default TARGET_INIT_BUILTINS and
6997 TARGET_INIT_LIBFUNCS to hook_void_void. Add
6998 TARGET_INIT_LIBFUNCS to TARGET_INITIALIZER.
6999 * builtins.c (default_init_builtins): Delete.
7000 * expr.h (default_init_builtins): Delete prototype.
7001 * doc/tm.texi: Document TARGET_INIT_LIBFUNCS and US_SOFTWARE_GOFAST.
7002 Tweak documentation of TARGET_FLOAT_LIB_COMPARE_RETURNS_BOOL.
7003 Remove documentation of INIT_TARGET_OPTABS, MULSI3_LIBCALL,
7004 DIVSI3_LIBCALL, UDIVSI3_LIBCALL, MODSI3_LIBCALL, UMODSI3_LIBCALL,
7005 MULDI3_LIBCALL, DIVDI3_LIBCALL, UDIVDI3_LIBCALL, MODDI3_LIBCALL,
7006 and UMODDI3_LIBCALL,
7007
7008 * Makefile.in (optabs.o): Depends on target.h.
7009 * defaults.h: Provide default for FLOAT_LIB_COMPARE_RETURNS_BOOL.
7010 * optabs.c: Include target.h.
7011 (prepare_float_lib_cmp): No need for #ifdef around use of
7012 FLOAT_LIB_COMPARE_RETURNS_BOOL.
7013 (set_optab_libfunc): New function.
7014 (init_optabs): Delete use of all *_LIBCALL defines.
7015 Call targetm.init_libfuncs not INIT_TARGET_OPTABS.
7016 * optabs.h: Prototype set_optab_libfunc.
7017
7018 * config.gcc: Remove all references to pa/long_double.h,
7019 ia64/hpux_longdouble.h, and gofast.h.
7020 (mips-*-*): When --enable-gofast, just add US_SOFTWARE_GOFAST
7021 to tm_defines; don't set INIT_SUBTARGET_OPTABS or change tm_file.
7022
7023 * config/alpha/alpha.c, config/c4x/c4x.c, config/cris/cris.c
7024 * config/frv/frv.c, config/h8300/h8300.c, config/i860/i860.c
7025 * config/ia64/ia64.c, config/ip2k/ip2k.c, config/m68hc11/m68hc11.c
7026 * config/mips/mips.c, config/pa/pa.c, config/rs6000/rs6000.c
7027 * config/sparc/sparc.c, config/vax/vax.c:
7028 Provide a definition for TARGET_INIT_LIBFUNCS. Where
7029 necessary, include optabs.h, libfuncs.h, and/or config/gofast.h.
7030
7031 * config/alpha/unicosmk.h, config/alpha/vms.h, config/c4x/c4x.h
7032 * config/avr/avr.h, config/cris/cris.h, config/frv/frv.h
7033 * config/h8300/h8300.h, config/i860/i860.h, config/ip2k/ip2k.h
7034 * config/iq2000/iq2000.h, config/m68hc11/m68hc11.h, config/mips/mips.h
7035 * config/rs6000/aix.h, config/rs6000/sysv4.h, config/sparc/elf.h
7036 * config/sparc/lite.h, config/sparc/netbsd-elf.h, config/sparc/sol2.h
7037 * config/sparc/sparc.h, config/v850/v850.h, config/vax/vax.h
7038 * config/vax/elf.h: Don't define or use INIT_TARGET_OPTABS,
7039 INIT_SUBTARGET_OPTABS, or any *_LIBCALL macros.
7040
7041 * config/ia64/hpux.h: Redefine INTEL_EXTENDED_IEEE_FORMAT to 0.
7042 Set TARGET_INIT_LIBFUNCS and FLOAT_LIB_COMPARE_RETURNS_BOOL here.
7043 * config/pa/pa-hpux.h: Define LONG_DOUBLE_TYPE_SIZE,
7044 HPUX_LONG_DOUBLE_LIBRARY, and FLOAT_LIB_COMPARE_RETURNS_BOOL here.
7045 * config/ia64/hpux_longdouble.h, config/pa/long_double.h: Delete.
7046
7047 * config/rs6000/xcoff.h: Don't define RS6000_ITRUNC nor RS6000_UITRUNC.
7048 * config/sparc/sparc.h: Default SUN_CONVERSION_LIBFUNCS and
7049 SUN_INTEGER_MULTIPLY_64 to 0.
7050 * config/sparc/sol2.h: Redefine SUN_CONVERSION_LIBFUNCS and
7051 SUN_INTEGER_MULTIPLY_64 to 1.
7052 * config/sparc/elf.h: Redefine SUN_CONVERSION_LIBFUNCS and
7053 SUN_INTEGER_MULTIPLY_64 to 0.
7054 * config/sparc/lite.h, config/sparc/liteelf.h, config/sparc/sp86x-elf.h:
7055 Define US_SOFTWARE_GOFAST.
7056 * config/vax/vax.h: Default TARGET_ELF to 0.
7057 * config/vax/elf.h: Redefine TARGET_ELF to 1.
7058
7059 * config/gofast.h: Don't define any macros here. Provide one
7060 static function, gofast_maybe_init_libfuncs, which does what
7061 INIT_GOFAST_LIBFUNCS used to do but only if US_SOFTWARE_GOFAST
7062 is already defined. Do not clear negation libfuncs. Do
7063 not mess with HFmode, XFmode, or TFmode libfuncs.
7064
7065 * config/avr/avr.c (avr_init_once): #if 0 out; mark FIXME.
7066
70672003-10-01 Kelley Cook <kelleycook@wideopenwest.com>
7068
7069 PR C/12466
7070 * c-parse.in (parmlist_2): Mark declaration with an ellipsis as ISO C.
7071
70722003-10-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7073
7074 * config/mips/xm-iris5.h: Remove, unnecessary.
7075 * config.build (mips-sgi-irix5*): Remove.
7076 (mips-sgi-irix6*o32): Likewise.
7077 * config.gcc (mips-sgi-irix6*o32): Remove xm_file.
7078 (mips-sgi-irix5cross64): Likewise.
7079 (mips-sgi-irix5*): Likewise.
7080 * config.host (mips-sgi-irix5*): Remove.
7081 (mips-sgi-irix6*o32): Likewise.
7082
70832003-10-01 Zack Weinberg <zack@codesourcery.com>
7084
7085 * dbxout.c (dbxout_fptype_value): Delete.
7086 (dbxout_type): Emit R3 for all COMPLEX_TYPEs.
7087
70882003-10-01 Alexandre Oliva <aoliva@redhat.com>
7089
7090 * output.h (compute_reloc_for_constant): Declare.
7091 * varasm.c (compute_reloc_for_constant): Extract from...
7092 (output_addressed_constants): ... here. Adjust all callers.
7093
70942003-10-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7095
7096 * aclocal.m4: Add hpux10* and hpux11.00 to /dev/zero blacklist.
7097 * configure: Rebuilt.
7098
70992003-10-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7100
7101 * fold-const.c (make_range): When handling unsigned, don't reverse
7102 range if high bound is zero.
7103
71042003-09-30 Alexandre Oliva <aoliva@redhat.com>
7105
7106 * config/frv/frv.h (PREDICATE_CODES): Added
7107 condexec_si_media_operator, condexec_sf_add_operator and
7108 condexec_sf_conv_operator. Removed condexec_sf_binary_operator
7109 and condexec_sf_unary_operator.
7110
71112003-10-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7112
7113 * aclocal.m4: Add ultrix* to /dev/zero blacklist.
7114 * configure: Rebuilt.
7115
71162003-10-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7117
7118 * except.h (MUST_USE_SJLJ_EXCEPTIONS): Revert 2003-09-23 change.
7119 Allow override.
7120 * doc/tm.texi (MUST_USE_SJLJ_EXCEPTIONS): Document.
7121
71222003-09-23 David S. Miller <davem@redhat.com>
7123
7124 * config/sparc/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Undefine
7125 before redefining.
7126 * config/sparc/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
7127
71282003-10-01 Steven Bosscher <steven@gcc.gnu.org>
7129
7130 * config/cris/cris-protos.h, config/cris/cris.c: Convert to ISO
7131 C90 function declarations and definitions.
7132
71332003-10-01 Nathanael Nerode <neroden@gcc.gnu.org>
7134
7135 * config.gcc (cris-*-linux*): Revert mistaken commit.
7136
71372003-10-01 Eric Botcazou <ebotcazou@libertysurf.fr>
7138
7139 PR optimization/11753
7140 * config/sparc/sparc.md (length attribute) [fcc branch]: Add 1 to
7141 the length in the non-V9 case.
7142
71432003-09-30 Richard Henderson <rth@redhat.com>
7144
7145 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Honor
7146 DWARF_ALT_FRAME_RETURN_COLUMN.
7147 * unwind-dw2.c (dwarf_reg_size_table): Expand by one.
7148 (_Unwind_GetGR, _Unwind_SetGR): Validate lookup column.
7149 (uw_frame_state_for): Return end-of-stack for null return address.
7150 * doc/tm.texi (DWARF_ALT_FRAME_RETURN_COLUMN): Add.
7151
7152 * config/alpha/alpha.c (alpha_sa_mask): Add r31 for eh_return.
7153 (alpha_expand_prologue): Store a zero for it.
7154 (alpha_expand_epilogue): Don't reload it.
7155 * config/alpha/alpha.h (DWARF_ALT_FRAME_RETURN_COLUMN): New.
7156 * config/alpha/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Use column 64
7157 for the sigframe return address.
7158
71592003-09-30 Kelley Cook <kelleycoook@wideopenwest.com>
7160
7161 * sdbout.c: Convert to ISO C90 prototypes.
7162 * objc/objc-act.c: Likewise.
7163
71642003-09-30 Kelley Cook <kelleycoook@wideopenwest.com>
7165
7166 * config/i386/cygwin1.c: Convert to ISO C90 prototypes.
7167 * config/i386/winnt.c: Likewise.
7168 * config/i386/cygming.h: Likewise.
7169
71702003-09-30 Kazu Hirata <kazu@cs.umass.edu>
7171
7172 * fold-const.c (fold): Fold (A & ~B) - (A & B) into
7173 (A ^ B) - B for any B.
7174
71752003-09-30 Nathanael Nerode <neroden@gcc.gnu.org>
7176
7177 * config.gcc (arm*-*-kaos*, i[34567]86-*-kaos*, powerpc-*-kaos*,
7178 powerpcle-*-kaos*, strongarm-*-kaos*): Disable fixproto.
7179
71802003-09-30 Richard Earnshaw <rearnsha@arm.com>
7181
7182 * arm/ieee754-sf.S: Tidy formatting.
7183
71842003-09-30 Nicolas Pitre <nico@cam.org>
7185
7186 * arm/lib1funcs.asm (ARM_DIV_MOD_BODY): Split into ARM_DIV_BODY
7187 and ARM_MOD_BODY.
7188 (ARM_MOD_BODY): Rewritten. added clz insns for __ARM_ARCH__ >= 5.
7189 (ARM_DIV_BODY): Added clz insns for __ARM_ARCH__ >= 5,
7190 added better divisor alignment in the other case.
7191 (ARM_DIV2_ORDER): Added, finds the order of a single bit divisor.
7192 (__divsi3, __udivsi3, __modsi3, __umodsi3): rewritten using the
7193 macros above, add fast exits for divisor >= dividend, etc.
7194
71952003-09-30 Nicolas Pitre <nico@cam.org>
7196
7197 * arm/ieee754-df.S: Split compilation of fixunsdfsi from
7198 L_fixdfsi target.
7199 * arm/t-arm-elf (LIB1ASMFUNCS): Add _fixunsdfsi.
7200
72012003-09-30 Nathanael Nerode <neroden@gcc.gnu.org>
7202
7203 * config.gcc: Default use_fixproto to 'no'.
7204
72052003-09-30 Richard Sandiford <rsandifo@redhat.com>
7206
7207 PR optimization/12345
7208 * config/mips/mips-protos.h (mips_restore_gp): Remove.
7209 (mips_gp_save_slot): Declare.
7210 * config/mips/mips.c (mips_restore_gp): Remove in favor of...
7211 (mips_gp_save_slot): ...this new function.
7212 * config/mips/mips.md (exception_receiver): Use mips_gp_save_slot
7213 and mips_output_move to generate the output template.
7214 (call_internal): Force splitting if TARGET_SPLIT_CALLS. Don't emit
7215 a gp load after a noreturn call. Load the gp using a move rather
7216 than an exception_receiver pattern.
7217 (call_value_internal, call_value_multiple_internal): Likewise.
7218 (call_split, call_value_split, call_value_multiple_split): Clobber $28.
7219
72202003-09-30 Carlo Wood <carlo@alinoe.com>
7221
7222 PR debug/12319
7223 * cfglayout.c (insn_scope): Use prologue_locator and
7224 epilogue_locator; return the outer function scope for
7225 pro- and epilogue insns.
7226
72272003-09-29 Zack Weinberg <zack@codesourcery.com>
7228
7229 * objc/objc-act.c (encode_type): Encode INTEGER_TYPEs and
7230 REAL_TYPEs based on the bitsize of the type's mode, not the
7231 mode directly.
7232
72332003-09-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7234
7235 * dwarf2out.c (default_eh_frame_section): Split into ...
7236 (named_section_eh_frame_section, collect2_eh_frame_section): ... new
7237 functions.
7238 * output.h (named_section_eh_frame_section): Declare.
7239 (collect2_eh_frame_section): Likewise.
7240
72412003-09-29 Zack Weinberg <zack@codesourcery.com>
7242
7243 * real.c (real_sqrt): Use get_canonical_qnan directly.
7244
7245 * dwarf2out.c (add_const_value_attribute): Use real_to_target.
7246
7247 * varasm.c (assemble_real): Use real_to_target directly,
7248 calculate the number of significant elements of the result
7249 array and write them out in a loop, instead of using a giant
7250 switch statement to pick the correct REAL_VALUE_TO_TARGET_*
7251 macro.
7252
72532003-09-29 Jan Hubicka <jh@suse.cz>
7254
7255 PR c++/12175
7256 * varasm.c (notice_global_symbol): Discard external symbols.
7257
7258 PR optimization/12286
7259 * gcov-io.c (gcov_read_words): Fix memmove call.
7260 * profile.c (compute_branch_probabilities): Add extra sanity checks.
7261
72622003-09-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7263
7264 * config.gcc (sparc-*-solaris2*): Handle Solaris 10 and up like
7265 Solaris 7-9.
7266
7267 * fixinc/inclhack.def (solaris_widec): Replace solaris2.[0-5]* by
7268 wildcards which explicitly match micro versions.
7269 * fixinc/fixincl.x: Regenerate.
7270
72712003-09-29 Kazu Hirata <kazu@cs.umass.edu>
7272
7273 * fold-const.c (fold): Fold (A & ~B) - (A & B) into
7274 (A ^ B) - B, where B is any power of 2 minus 1.
7275
72762003-09-29 Jan Hubicka <jh@suse.cz>
7277
7278 * libgcov.c (gcov_exit): Fix two pastos.
7279
72802003-09-29 Kazu Hirata <kazu@cs.umass.edu>
7281
7282 * config/h8300/h8300.md (*tst_extzv_1_n): Combine with the
7283 define_split immediately below to form define_insn_and_split.
7284
72852003-09-29 Kazu Hirata <kazu@cs.umass.edu>
7286
7287 * config/h8300/h8300.md (*tstsi_variable_bit): New.
7288 (*tstsi_variable_bit_qi): Likewise.
7289
72902003-09-28 Phil Edwards <phil@codesourcery.com>
7291
7292 * doc/cppopts.texi: Use 'dashMP' instead of '-MP' as a cross-
7293 reference name.
7294
72952003-09-28 Richard Henderson <rth@redhat.com>
7296
7297 * c-decl.c (duplicate_decls): Copy DECL_SOURCE_LOCATION, not
7298 file and line separately.
7299
73002003-09-28 Ulrich Weigand <uweigand@de.ibm.com>
7301
7302 * config/s390/s390.md ("*adddi3_carry1_cc", "*adddi3_carry1_cconly",
7303 "*adddi3_carry2_cc", "*adddi3_carry2_cconly", "*subdi3_borrow_cc",
7304 "*subdi3_borrow_cconly"): New insns.
7305 ("*addsi3_sub", "*subsi3_sub"): Remove.
7306 ("*subdi3_cc", *subdi3_cconly"): Use only if TARGET_64BIT.
7307 ("*subsi3_cc"): Fix op_type attribute.
7308
73092003-09-28 Richard Henderson <rth@redhat.com>
7310
7311 * stmt.c (expand_asm_operands): Take a location_t, instead of
7312 individual file and line.
7313 * c-typeck.c (c_expand_asm_operands): Likewise.
7314 * tree.h (expand_asm_operands): Update decl.
7315 * c-common.h (c_expand_asm_operands): Likewise.
7316 * c-semantics (genrtl_asm_stmt): Update call.
7317
73182003-09-28 Philip Blundell <philb@gnu.org>
7319
7320 * config/arm/arm.c (legitimize_pic_address): Check
7321 SYMBOL_REF_LOCAL_P, not ENCODED_SHORT_CALL_ATTR_P.
7322 (arm_assemble_integer): Likewise.
7323
73242003-09-28 Steven Bosscher <steven@gcc.gnu.org>
7325
7326 * config/pdp11/pdp11-protos.h, config/pdp11/pdp11.c,
7327 config/c4x/c4x-c.c, config/c4x/c4x-protos.h, config/c4x/c4x.c,
7328 config/c4x/c4x.h:
7329 Convert to ISO C90 function declarations and definitions.
7330
73312003-09-28 Steven Bosscher <steven@gcc.gnu.org>
7332
7333 * config/stormy16/stormy16.c, config/stormy16/stormy16-protos.h:
7334 Convert to ISO C90 function declarations and definitions.
7335
73362003-09-28 Richard Sandiford <rsandifo@redhat.com>
7337
7338 * config/mips/mips.c (mips_constant_info): Add reloc field.
7339 (mips_classify_constant): Initialize it. Always set SYMBOL to the
7340 underlying symbol, not to an unspec.
7341 (mips_delegitimize_address, print_operand): Clean up accordingly.
7342
73432003-09-28 Richard Sandiford <rsandifo@redhat.com>
7344
7345 * config/mips/mips-protos.h (mips16_gp_pseudo_reg): Remove.
7346 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Remove orphaned comment.
7347 * config/mips/mips.c (mips_reloc_offset_ok_p): New function.
7348 (mips_classify_constant): Use it.
7349 (mips_splittable_symbol_p): Add an offset argument.
7350 (mips_classify_address): Adjust call accordingly.
7351 (mips_legitimize_symbol): Handle sdata references with LO_SUM rather
7352 than a relocation unspec. Update call to mips_splittable_symbol_p.
7353 Generalize the code that copes with symbols + invalid offsets.
7354 (print_operand): Allow '%R' to be applied to small data addresses.
7355 (mips_reloc_string): Remove RELOC_GPREL16.
7356 (mips_sdata_pointer): Renamed from mips16_gp_pseudo_reg. Return $gp
7357 for TARGET_EXPLICIT_RELOCS. Return null if we can't use gp-relative
7358 relocation operators.
7359 * config/mips/mips.md (RELOC_GPREL16): Remove. Shuffle other reloc
7360 constants accordingly.
7361
73622003-09-27 Roger Sayle <roger@eyesopen.com>
7363
7364 * toplev.c (flag_evaluation_order): New global variable.
7365 * flags.h (flag_evaluation_order): Prototype here.
7366 * expr.c (expand_operands): If we need to preserve observable
7367 evaluation order, protect exp1 from clobbering exp0's result.
7368
73692003-09-28 Andreas Jaeger <aj@suse.de>
7370
7371 * c-decl.c (finish_function): Convert definition to ISO C90.
7372 * ifcvt.c (mark_loop_exit_edges): Likewise.
7373 * ra-rewrite.c (emit_colors): Likewise.
7374
73752003-09-27 Nathanael Nerode <neroden@gcc.gnu.org>
7376
7377 * config.gcc (alpha*-dec-osf[45]*): Disable fixproto.
7378 * config.gcc (arm*-*-uclinux*): Disable fixproto.
7379 * config.gcc (powerpc-*-eabispe*, powerpc-*-eabisimaltivec*,
7380 powerpc-*-eabialtivec*): Disable fixproto.
7381
73822003-09-27 Eric Botcazou <ebotcazou@libertysurf.fr>
7383
7384 PR optimization/12340
7385 * loop.h (struct induction): Document the new semantics
7386 of the 'same' field for bivs.
7387 * unroll.c (biv_total_increment): Don't count the same
7388 biv increment several times.
7389 (loop_iterations) [GENERAL_INDUCT]: Likewise.
7390
73912003-09-27 Graham Stott <graham.stott@btinternet.com>
7392
7393 * unroll.c (loop_interations)[GT]: Add missing break.
7394
73952003-09-27 Kelley Cook <kcook@gcc.gnu.org>
7396
7397 * config/chorus.h, config/darwin-c.c, config/darwin-protos.h,
7398 config/darwin.c, config/darwin.h, config/dbx.h, config/dbxcoff.h,
7399 config/dbxelf.h, config/elfos.h, config/fp-bit.h,
7400 config/freebsd-nthr.h, config/freebsd-spec.h, config/freebsd.h,
7401 config/freebsd3.h, config/freebsd4.h, config/freebsd5.h,
7402 config/freebsd6.h, config/netbsd-aout.h, config/netbsd-elf.h,
7403 config/netbsd.h, config/netware.h, config/openbsd-oldgas.h,
7404 config/openbsd.h, config/ptx4.h, config/alpha/alpha-protos.h,
7405 config/alpha/alpha.c, config/alpha/alpha.h, config/alpha/alpha.md,
7406 config/alpha/elf.h, config/alpha/ev4.md, config/alpha/ev5.md,
7407 config/alpha/ev6.md, config/alpha/freebsd.h, config/alpha/linux-elf.h,
7408 config/alpha/linux.h, config/alpha/netbsd.h, config/alpha/openbsd.h,
7409 config/alpha/osf.h, config/alpha/osf5.h, config/alpha/unicosmk.h,
7410 config/alpha/vms-cc.c, config/alpha/vms-crt0-64.c,
7411 config/alpha/vms-crt0.c, config/alpha/vms-dwarf2.asm,
7412 config/alpha/vms-dwarf2eh.asm, config/alpha/vms-ld.c,
7413 config/alpha/vms-psxcrt0-64.c, config/alpha/vms-psxcrt0.c,
7414 config/alpha/vms.h, config/alpha/vms64.h, config/alpha/vms_tramp.asm,
7415 config/alpha/xm-vms.h, config/arc/arc-modes.def,
7416 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
7417 config/arc/arc.md, config/arc/initfini.c, config/arc/lib1funcs.asm,
7418 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
7419 config/avr/avr.md, config/d30v/d30v-protos.h, config/d30v/d30v.h,
7420 config/d30v/d30v.md, config/fr30/fr30-protos.h, config/fr30/fr30.c,
7421 config/fr30/fr30.h, config/fr30/fr30.md, config/fr30/lib1funcs.asm,
7422 config/frv/cmovd.c, config/frv/cmovh.c, config/frv/cmovw.c,
7423 config/frv/frv-abi.h, config/frv/frv-asm.h, config/frv/frv-modes.def,
7424 config/frv/frv-protos.h, config/frv/frv.c, config/frv/frv.h,
7425 config/frv/frv.md, config/frv/frvbegin.c, config/frv/frvend.c,
7426 config/frv/lib1funcs.asm, config/h8300/clzhi2.c, config/h8300/ctzhi2.c,
7427 config/h8300/parityhi2.c, config/h8300/popcounthi2.c,
7428 config/i370/i370-c.c, config/i370/i370-protos.h, config/i370/i370.c,
7429 config/i370/i370.h, config/i370/i370.md, config/i370/linux.h,
7430 config/i370/mvs.h, config/i370/oe.h, config/i386/darwin.h,
7431 config/i960/i960-c.c, config/i960/i960-coff.h,
7432 config/i960/i960-modes.def, config/i960/i960-protos.h,
7433 config/i960/i960.c, config/i960/i960.h, config/i960/i960.md,
7434 config/i960/rtems.h, config/ia64/elf.h, config/ia64/ia64.h,
7435 config/m32r/initfini.c, config/m32r/m32r-protos.h, config/m32r/m32r.c,
7436 config/m32r/m32r.h, config/m32r/m32r.md, config/m68hc11/larith.asm,
7437 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
7438 config/m68hc11/m68hc11.h, config/m68hc11/m68hc11.md,
7439 config/m68hc11/m68hc12.h, config/m68k/coff.h, config/m68k/crti.s,
7440 config/m68k/crtn.s, config/m68k/hp320.h, config/m68k/hp320base.h,
7441 config/m68k/lb1sf68.asm, config/m68k/linux.h, config/m68k/m68020-elf.h,
7442 config/m68k/m68k-aout.h, config/m68k/m68k-none.h,
7443 config/m68k/m68k-protos.h, config/m68k/m68k.c, config/m68k/m68k.h,
7444 config/m68k/m68k.md, config/m68k/m68kelf.h, config/m68k/m68kv4.h,
7445 config/m68k/netbsd-elf.h, config/m68k/openbsd.h,
7446 config/m68k/rtemself.h, config/m68k/sgs.h, config/mcore/lib1.asm,
7447 config/mcore/mcore-elf.h, config/mcore/mcore-pe.h,
7448 config/mcore/mcore-protos.h, config/mcore/mcore.c,
7449 config/mcore/mcore.md, config/mips/elf.h, config/mips/elf64.h,
7450 config/mips/elforion.h, config/mips/iris5.h, config/mips/iris6.h,
7451 config/mips/iris6gld.h, config/mips/irix6-libc-compat.c,
7452 config/mips/linux.h, config/mips/mips-protos.h, config/mips/mips.c,
7453 config/mips/mips.h, config/mips/mips.md, config/mips/netbsd.h,
7454 config/mips/openbsd.h, config/mips/r3900.h, config/mips/rtems.h,
7455 config/mips/vr.h, config/mn10300/linux.h,
7456 config/mn10300/mn10300-protos.h, config/mn10300/mn10300.c,
7457 config/mn10300/mn10300.h, config/mn10300/mn10300.md,
7458 config/ns32k/__unorddf2.c, config/ns32k/__unordsf2.c,
7459 config/ns32k/netbsd.h, config/ns32k/ns32k-protos.h,
7460 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/ns32k/ns32k.md,
7461 config/pdp11/2bsd.h, config/pdp11/pdp11-modes.def,
7462 config/pdp11/pdp11-protos.h, config/pdp11/pdp11.c,
7463 config/pdp11/pdp11.h, config/pdp11/pdp11.md, config/rs6000/biarch64.h,
7464 config/rs6000/default64.h, config/sh/coff.h, config/sh/crt1.asm,
7465 config/sh/crti.asm, config/sh/crtn.asm, config/sh/elf.h,
7466 config/sh/embed-elf.h, config/sh/linux.h, config/sh/little.h,
7467 config/sh/netbsd-elf.h, config/sh/rtems.h, config/sh/rtemself.h,
7468 config/sh/sh-protos.h, config/sh/sh.c, config/sh/sh.h,
7469 config/sh/sh.md, config/sh/sh64.h, config/sh/shmedia.h,
7470 config/sh/sshmedia.h, config/sh/ushmedia.h, config/sparc/pbd.h,
7471 config/sparc/sparc.h, doc/install-old.texi, fixinc/fixinc.ptx,
7472 fixinc/fixinc.svr4: GNU CC -> GCC.
7473
74742003-09-26 Loren James Rittle <ljrittle@acm.org>
7475
7476 * objc/objc-act.c (tm_p.h): Tweak order.
7477 * objc/Make-lang.in (objc/objc-act.o): Add $(TM_P_H).
7478
74792003-09-26 Nathanael Nerode <neroden@gcc.gnu.org>
7480
7481 * config.gcc (hppa*64*-*-linux* | parisc*64*-*-linux*):
7482 Include t-slibgcc-elf-ver and t-linux in tmake_file.
7483 * config.gcc (hppa*64*-*-linux* | parisc*64-*-linux*):
7484 Disable fixproto.
7485 * config.gcc (i960-*-coff*, m68k-*-aout*, sparclite-*-coff*):
7486 Disable fixproto.
7487 * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*,
7488 sparcv9-*-solaris2*, sparc-*-solaris2*): Disable fixproto.
7489
7490 * config/i386/unix.h: Remove (unused) DEFAULT_ASSEMBLER_DIALECT.
7491
74922003-09-26 Loren James Rittle <ljrittle@acm.org>
7493
7494 * config/i386/i386.h (ix86_return_in_memory): Revert my last patch.
7495 * objc/objc-act.c (tm_p.h): Include.
7496
74972003-09-26 Per Bothner <pbothner@apple.com>
7498
7499 * dbxout.c (dbxout_typedefs): Output typedefs in forward order.
7500 No longer any need to reverse by recursion.
7501
75022003-09-26 Roger Sayle <roger@eyesopen.com>
7503 Richard Henderson <rth@redhat.com>
7504
7505 PR optimization/11741
7506 * gcse.c (pre_insert_copy_insn): Tweak the logic for finding the
7507 appropriate set to match that in hash_scan_insn. Fall back to
7508 the original copy method, if we can't validate changing insn.
7509 (pre_delete): Only delete instructions that have a single_set,
7510 instead of aborting when we encounter an PARALLEL insn with more
7511 then one SET.
7512
75132003-09-26 Andreas Krebbel <krebbel1@de.ibm.com>
7514
7515 * config/s390/s390.md ("builtin_setjmp_setup"): Insn deleted.
7516 ("builtin_longjmp"): Insn deleted.
7517 ("save_stack_nonlocal"): Save literal pool base pointer behind
7518 backchain and stack pointer.
7519 ("restore_stack_nonlocal"): Restore literal pool base pointer.
7520 * config/s390/s390.h (STACK_SAVEAREA_MODE): Double size of
7521 the stack save area for the nonlocal goto case.
7522
75232003-09-26 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7524
7525 PR bootstrap/12358
7526 * pa.c (output_bvb): Fix typo.
7527
75282003-09-26 Richard Sandiford <rsandifo@redhat.com>
7529
7530 * expmed.c (store_bit_field): Don't search for an integer mode
7531 unless we need the result.
7532
75332003-09-26 Richard Sandiford <rsandifo@redhat.com>
7534
7535 * expr.c (emit_move_insn_1): If there is no move pattern for the
7536 original mode, try using a pattern for the corresponding integer mode.
7537
75382003-09-26 Richard Sandiford <rsandifo@redhat.com>
7539
7540 PR middle-end/9200
7541 * combine.c (if_then_else_cond): Tighten mode check.
7542
75432003-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
7544
7545 * cppcharset.c, cpphash.h: Rename 'struct strbuf' to
7546 'struct _cpp_strbuf'.
7547
7548 * config/i386/netbsd-elf.h, config/i386/netbsd64.h,
7549 config/i386/netware.h, config/i386/nto.h, config/i386/openbsd.h,
7550 config/i386/pentium.md, config/i386/pmmintrin.h, config/i386/ppro.md,
7551 config/i386/ptx4-i.h, config/i386/rtemself.h, config/i386/sco5.h,
7552 config/i386/sol2.h, config/i386/svr3gas.h, config/i386/sysv3.h,
7553 config/i386/sysv4-cpp.h, config/i386/sysv4.h, config/i386/sysv5.h,
7554 config/i386/unix.h, config/i386/uwin.h, config/i386/vsta.h,
7555 config/i386/xm-cygwin.h, config/i386/xm-djgpp.h,
7556 config/i386/xm-mingw32.h, config/i386/xmmintrin.h: Replace
7557 "GNU CC", "GNU compiler", and "GNU C-compiler" with "GCC".
7558 * config/i386/i386-aout.h, config/i386/i386-coff.h,
7559 config/i386/i386-interix.h, config/i386/i386-interix3.h,
7560 config/i386/i386-modes.def, config/i386/i386-protos.h,
7561 config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
7562 config/i386/i386elf.h, config/i386/k6.md, config/i386/kaos-i386.h,
7563 config/i386/linux-aout.h, config/i386/linux.h, config/i386/linux64.h,
7564 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mingw32.h,
7565 config/i386/mmintrin.h, config/i386/moss.h: GNU CC -> GCC.
7566 "GNU compiler" -> GCC.
7567 * config/i386/att.h, config/i386/beos-elf.h, config/i386/biarch64.h,
7568 config/i386/bsd.h, config/i386/crtdll.h, config/i386/cygming.h,
7569 config/i386/cygwin.h, config/i386/cygwin1.c, config/i386/cygwin2.c,
7570 config/i386/darwin.h, config/i386/djgpp.h, config/i386/emmintrin.h,
7571 config/i386/freebsd-aout.h, config/i386/freebsd.h,
7572 config/i386/freebsd64.h, config/i386/gas.h: GNU CC -> GCC.
7573
75742003-09-25 Kelley Cook <kelleycook@wideopenwest.com>
7575
7576 * cgraph.c (dump_cgraph): Don't output newline before dump. Add in
7577 "local" to the callgraph dump. Output "after inlining" earlier.
7578 * cgraphunit.c: Fix dumpfile whitespace and commonize headers of the
7579 callgraph dumps. Correct misspellings.
7580 (cgraph_decide_inlining): Output number of insns before inlining.
7581 Output the calling function into which a function is inlined.
7582 (cgraph_decide_small_functions): Format dump file like always_inline.
7583
75842003-09-25 Loren James Rittle <ljrittle@acm.org>
7585
7586 * config/i386/i386.h (ix86_return_in_memory): Add prototype.
7587
75882003-09-25 Ulrich Weigand <uweigand@de.ibm.com>
7589
7590 * config/s390/s390.c (s390_emit_prologue): Simplify accesses to
7591 FPR slots in the save area.
7592 (s390_emit_epilogue): Likewise.
7593
75942003-09-25 Richard Sandiford <rsandifo@redhat.com>
7595
7596 * cgraph.h (cgraph_remove_edge): Declare.
7597 * cgraph.c (cgraph_remove_edge): Make extern.
7598 * cgraphunit.c (cgraph_finalize_function): Call cgraph_remove_edge
7599 instead of cgraph_remove_call.
7600
76012003-09-25 Ulrich Weigand <uweigand@de.ibm.com>
7602
7603 * objc/objc-act.c (gen_declaration_1): Fix printf format.
7604
76052003-09-25 Richard Earnshaw <rearnsha@arm.com>
7606
7607 * arm.c (all_cores): arm710t, arm720t and arm740t are all based on the
7608 arm7tdmi core.
7609
76102003-09-25 Ziemowit Laski <zlaski@apple.com>
7611
7612 * config/darwin-protos.h (objc_image_info_section):
7613 New prototype.
7614
76152003-09-25 Ziemowit Laski <zlaski@apple.com>
7616
7617 * Makefile.in (stub-objc.o): Depend on $(GGC_H).
7618
76192003-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
7620
7621 * config.gcc: Get rid of more gratuitious 'x'es. Actually allow
7622 tsc701 as a --with-cpu, --with-tune setting for sparc.
7623
76242003-09-25 Ziemowit Laski <zlaski@apple.com>
7625
7626 * c-parse.in (objc_try_stmt): Do not specify a %type.
7627
76282003-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
7629
7630 * config.gcc: New 'widely ported system' clause for rtems.
7631 Set thread file there, not in individual clauses.
7632
76332003-09-25 Richard Sandiford <rsandifo@redhat.com>
7634
7635 PR target/6222
7636 * config/mips/mips.c (mips_va_arg): Handle arguments that must be
7637 passed on the stack.
7638
76392003-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
7640
7641 * config.gcc (widely ported systems section): Mostly alphabetize
7642 by system. Comment the case where we can't.
7643 * config.gcc (widely ported systems section): Reindent and clean up.
7644
7645 * config.gcc: Remove some unnecessary uses of 'x' in case statements.
7646 Actually allow ep9312 as an arm --with-arch setting.
7647
7648 * config.gcc (*-hpux11): Disable fixproto.
7649
76502003-09-24 Phil Edwards <phil@codesourcery.com>
7651
7652 PR pch/12112
7653 * gcc/cppfiles.c (pch_open_file): Return based on combined
7654 result of all files.
7655 (validate_pch): Return validate flag for current file.
7656
76572003-09-24 Roger Sayle <roger@eyesopen.com>
7658
7659 PR bootstrap/12358
7660 * fold-const.c (tree_swap_operands_p): Only reorder operands when
7661 one of the operands is constant.
7662
76632003-09-24 Ziemowit Laski <zlaski@apple.com>
7664
7665 MERGE OF objc-improvements-branch into MAINLINE:
7666 * Makefile.in (C_OBJS): Add in stub-objc.o.
7667 (c-parse.y): Change sed demarcations to begin with '@@'.
7668 (stub-objc.o): New rule.
7669 * c-common.c (flag_nil_receivers, flag_objc_exceptions, flag_zero_link,
7670 flag_replace_objc_classes): New flags.
7671 * c-common.h (RID_AT_THROW, RID_AT_TRY, RID_AT_CATCH, RID_AT_FINALLY,
7672 RID_AT_SYNCHRONIZED): New keywords.
7673 (flag_nil_receivers, flag_objc_exceptions, flag_zero_link,
7674 flag_replace_objc_classes): New flags.
7675 (lookup_interface, is_class_name, objc_is_object_ptr, objc_check_decl,
7676 objc_comptypes, objc_message_selector, lookup_objc_ivar,
7677 get_current_scope, objc_mark_locals_volatile): New prototypes,
7678 some moved from c-tree.h.
7679 * c-decl.c (get_current_scope, objc_mark_locals_volatile): New functions.
7680 (finish_decl): Adjust where objc_check_decl() gets called.
7681 * c-lang.c (lookup_interface, is_class_name, objc_is_id, objc_check_decl,
7682 objc_comptypes, objc_message_selector, lookup_objc_ivar): Remove stubs.
7683 * c-opts.c (c_common_handle_option): Add handling for flag_nil_receivers,
7684 flag_objc_exceptions, flag_replace_objc_classes and flag_zero_link.
7685 * c-parse.in: Replace 'ifc' and 'end ifc' sed markers with '@@ifc' and
7686 '@@end_ifc', respectively.
7687 (AT_THROW, AT_TRY, AT_CATCH, AT_FINALLY, AT_SYNCHRONIZED): New %tokens.
7688 (objc_try_stmt, superclass, class_ivars, objc_try_catch-stmt,
7689 objc_finally_block): New rules.
7690 (component_decl_list2): Clean up semantic action for @defs construct.
7691 (component_decl, c99_block_start): Remove call to add_objc_decls().
7692 (poplevel): Add call to objc_clear_super_receiver().
7693 (stmt): Add rules for @throw, @try..@catch..@finally and @synchronized
7694 constructs.
7695 (classdef, methodprotolist): Clean up/simplify.
7696 (methodprotolist2): Eliminate.
7697 (methodproto): Call add_method() instead of add_class_method() and
7698 add_instance_method().
7699 (receiver): Add TYPENAME production.
7700 (reswords): Add "throw", "try", "catch", "finally" and "synchronized".
7701 (rid_to_yy): Add AT_THROW, AT_TRY, AT_CATCH, AT_FINALLY and
7702 AT_SYNCHRONIZED.
7703 * c-tree.h (lookup_interface, is_class_name, objc_is_id, objc_check_decl,
7704 objc_comptypes, objc_message_selector)
7705 * c-typeck.c (comptypes): In ObjC mode, call objc_comptypes() for
7706 struct and pointer types.
7707 (build_c_cast): Do not discard ObjC protocol qualifiers.
7708 (convert_for_assignment): Cache result of comp_target_types() instead
7709 of calling it more than once.
7710 * c.opt (fnext-runtime): Update description string.
7711 (fnil-receivers, fobjc-exceptions, freplace-objc-classes, fzero-link):
7712 New ObjC/ObjC++-specific flags.
7713 * function.h (GCC_FUNCTION_H): Header guard.
7714 * gengtype-lex.l: Teach lexer about new @@... sed demarcations.
7715 * stub-objc.c: New file, to be used to satisfy references to ObjC
7716 functions by the C and C++ front-ends.
7717 * config/darwin.c (_OBJC_IMAGE_INFO): New global metadata.
7718 * config/darwin.h (FUNCTION): Add in_objc_image_info.
7719 (SECTION_FUNCTION): Add objc_image_info_section.
7720 * doc/invoke.texi: Link to GCC web site for Objective-C information.
7721 (-fconstant-string-class): Update documentation.
7722 (-fno-nil-receivers, -fobjc-exceptions, -freplace-objc-classes,
7723 -fzero-link): New documentation.
7724 * objc/Make-lang.in (objc-parse.y): Change sed demarcations to begin
7725 with '@@'.
7726 * objc/lang-specs.h (@objective-c-header): Fix -E spec.
7727 * objc/objc/objc-act.c: Replace TYPE_NAME with OBJC_TYPE_NAME
7728 throughout; provide casts for return values from memory allocation
7729 functions (xmalloc, alloca, ggc_alloc, etc.).
7730 (OBJC_VOID_AT_END): New macro.
7731 (rtl.h): Do not #include any more.
7732 (STRING_OBJECT_GLOBAL_NAME): Replaced with STRING_OBJECT_GLOBAL_FORMAT.
7733 (TAG_MSGSEND_STRET, TAG_MSGSENDSUPER_STRET, TAG_MSGSEND_NONNIL,
7734 TAG_MSGSEND_NONNIL_STRET, TAG_EXCEPTIONEXTRACT, TAG_EXCEPTIONTRYENTER,
7735 TAG_EXCEPTIONTRYEXIT, TAG_EXCEPTIONMATCH, TAG_EXCEPTIONTHROW,
7736 TAG_SYNCENTER, TAG_SYNCEXIT): New NeXT runtime entry points.
7737 (struct val_stack, catch_count_stack, exc_binding_stack, val_stack_push,
7738 val_stack_pop): New.
7739 (objc_check_decl): Fix precondition for error message, along with
7740 the message itself.
7741 (lookup_and_install_protocols): Remove nonexistent protocols from
7742 protocol list instead of returning error_mark_node.
7743 (create_builtin_decl): Use DECL_ARTIFICIAL only for VAR_DECLs.
7744 (setup_string_decl): Generalize to use STRING_OBJECT_GLOBAL_FORMAT.
7745 (synth_module_prologue): General clean-up; construct NeXT-specific
7746 runtime API prototypes if needed.
7747 (build_string_class_template): Remove.
7748 (check_string_class_template, string_layout_checked): New.
7749 (build_objc_string_object): Generalize to work with
7750 -fconstant-string-class.
7751 (build_objc_symtab_template): Fix layout for the NeXT runtime.
7752 (build_metadata_decl): New.
7753 (forward_declare_categories): Call build_metadata_decl() instead of
7754 create_builtin_decl() et al.
7755 (build_module_descriptor): Use OBJC_VOID_AT_END instead of
7756 void_list_node_1.
7757 (build_selector_reference_decl, build_class_reference_decl,
7758 build_objc_string_decl): Do not set TREE_READONLY.
7759 (get_proto_encoding): Do not call hack_method_prototype().
7760 (get_class_reference): Add failure mode for invalid class names;
7761 support -fzero-link; defer if in an ObjC++ template declaration.
7762 (objc_declare_alias, objc_declare_class): Fix up duplicate name
7763 lookup; check for global scope if in ObjC++.
7764 (is_class_name): Generalize to work with various tree nodes (TYPE_DECL,
7765 RECORD_TYPE, IDENTIFIER_NODE, etc.)
7766 (objc_is_id): Removed.
7767 (objc_is_object_ptr): New function.
7768 (get_class_ivars_from_name): New function, used for @defs construct.
7769 (get_class_ivars): Add option to return raw ivars; create a
7770 ClASS_OWN_IVARS list for each class as needed.
7771 (objc_enter_block, objc_exit_block, objc_declare_variable,
7772 objc_build_throw_stmt, val_stack_push, val_stack_pop,
7773 objc_build_try_enter_fragment, objc_build_extract_expr,
7774 objc_build_try_exit_fragment, objc_build_extract_fragment,
7775 objc_build_try_prologue, objc_build_try_epilogue,
7776 objc_build_catch_stmt, objc_build_catch_epilogue,
7777 objc_build_finally_prologue, objc_build_finally_epilogue,
7778 objc_build_try_catch_finally_stmt, objc_build_synchronized_prologue,
7779 objc_build_synchronized_epilogue, build_objc_exception_stuff):
7780 New functions.
7781 (_JBLEN): _setjmp jmpbuf size (needs to be made a target hook in
7782 the future).
7783 (build_private_template): Fix up calls to get_class_ivars().
7784 (offset_is_register, forwarding_offset): Remove.
7785 (objc_method_parm_type, objc_encoded_type_size): New functions.
7786 (encode_method_prototype): Simplify to no longer depend on
7787 back-end information.
7788 (build_tmp_function_decl_xxx, build_tmp_function_decl,
7789 hack_method_prototype): Removed.
7790 (generate_protocol_references): Remove calls to
7791 build_tmp_function_decl().
7792 (generate_protocols): Adjust calls to encode_method_prototype().
7793 (build_class_template): Generate sel_id' and 'gc_object_type' fields
7794 for the NeXT runtime.
7795 (synth_forward_declarations): Call build_metadata_decl().
7796 (check_ivars): Check that the number of ivars matches also.
7797 (build_super_template): Modify super_type directly; disable debugging
7798 output while generating decl.
7799 (build_ivar_list_initializer): Skip list elements that are not
7800 FIELD_DECLs.
7801 (ivar_list_length): New function.
7802 (generate_ivar_lists): Call ivar_list_length() instead of list_length()
7803 and encode_method_prototype() instead of encode_method_def().
7804 (build_shared_structure_initializer): Generate 'sel_id' field for
7805 the NeXT runtime.
7806 (generate_category): Do not set TREE_USED.
7807 (build_keyword_selector): Ditto; transform into a function argument
7808 chain.
7809 (get_arg_type_list): If there are no user-specified arguments, use
7810 '...'; use OBJC_VOID_AT_END.
7811 (check_duplicates): Add a parameter indicating whether methods or
7812 selectors are being checked.
7813 (receiver_is_class_object): Add parameters indicating whether
7814 receiver is 'self' or 'super'; robustify.
7815 (build_message_expr): Defer call to finish_message_expr() if
7816 inside an ObjC++ template.
7817 (lookup_method_in_hash_lists): New function.
7818 (finish_message_expr): Complete rewrite/fix.
7819 (build_objc_method_call): Ditto; factor out commonalities between
7820 the GNU and NeXT runtimes; acccommodate ..._stret and ...NonNil
7821 messenger variants on the NeXT.
7822 (lookup_instance_method_static, lookup_class_method_static):
7823 Fold into a single lookup_method_static() function with an
7824 additional parameter.
7825 (add_class_method, add_instance_method): Fold into a single
7826 add_method() function with an additional parameter.
7827 (add_category): Make duplicate categories a hard error in ObjC++.
7828 (add_instance_variable): Properly handle unnamed ivars, arrays of
7829 zero or no size and bitfields. In ObjC++, check for nontrivial
7830 C++ class instances.
7831 (is_public): Allow C functions to access non-@public ivars, with
7832 a warning.
7833 (start_class): Move common initializations to
7834 synth_module_prologue(); check for global scope if in ObjC++.
7835 (continue_class): Fix calls to finish_struct().
7836 (objc_declare_protocols, start_protocol): Check for global scope
7837 if in ObjC++.
7838 (encode_pointer): Encode 'BOOL *' specially on the NeXT.
7839 (encode_aggregate_within): Rewrite to properly distinguish
7840 struct tags from typedefs in both ObjC and ObjC++.
7841 (encode_bitfield, encode_complete_bitfield): Remove.
7842 (encode_next_bitfield, encode_gnu_bitfield): New functions.
7843 (encode_field_decl): Call encode_next_bitfield() or
7844 encode_gnu_bitfield() as needed.
7845 (synth_self_and_ucmd_args): New function.
7846 (start_method_def): Use it.
7847 (objc_types_are_equivalent): New function.
7848 (comp_proto_with_proto): Use it instead of comptypes(), since
7849 we need symmetry.
7850 (really_start_method): Use lookup_method_static() instead of
7851 lookup_class_method_static() and lookup_instance_method_static();
7852 Emit 'extern "C"' if in ObjC++ mode.
7853 (add_objc_decls): Removed.
7854 (UOBJC_SUPER_scope): New variable.
7855 (get_super_receiver): Move construction of 'super' from
7856 add_objc_decls(); remove dependency on struct objc_class.
7857 (encode_method_def): Removed; encode_method_prototype() is
7858 used instead.
7859 (objc_clear_super_receiver): New function.
7860 (objc_expand_function_end): Do not do anything for ordinary
7861 C functions.
7862 (finish_method_def): Mark ObjC methods as un-inlinable.
7863 (gen_declaration_1): Emit widths of bitfields.
7864 (finish_objc): Call generate_objc_image_info() if needed;
7865 use check_duplicates() when checking for selector duplicates.
7866 (generate_objc_image_info): New function.
7867 * objc/objc-act.h (add_instance_method, add_class_method,
7868 get_class_ivars): Remove prototypes.
7869 (objc_build_throw_stmt, objc_build_try_catch_finally_stmt,
7870 objc_build_synchronized_prologue, objc_build_synchronized_epilogue,
7871 objc_build_catch_stmt, objc_build_catch_epilogue,
7872 objc_build_finally_prologue, objc_build_finally_epilogue,
7873 add_method, get_class_ivars_from_name): New prototypes.
7874 (CLASS_BINFO_ELTS, PROTOCOL_BINFO_ELTS): New.
7875 (TYPE_PROTOCOL_LIST): Robustify to distinguish from
7876 TRANSLATION_UNIT_DECLs.
7877 (OBJC_TYPE_NAME): New.
7878 (objc_tree_code): Ensure that either <c-tree.h> or <cp/cp-tree.h>
7879 got included.
7880 (IS_SUPER): Robustify.
7881 (umsg_stret_decl, umsg_super_stret_decl, umsg_nonnil_decl,
7882 umsg_nonnil_stret_decl, objc_storage_class, objc_exception_extract_decl,
7883 objc_exception_try_enter_decl, objc_exception_try_exit_decl,
7884 objc_exception_match_decl, objc_exception_throw_decl,
7885 objc_sync_enter_decl, objc_sync_exit_decl, objc_exception_data_template,
7886 objc_setjmp_decl, objc_stack_exception_data, objc_caught_exception,
7887 objc_rethrow_exception, objc_eval_once, objc_exception_block_stack,
7888 objc_catch_type): New ObjC/ObjC++ roots.
7889 * objc/objc-tree.def (MESSAGE_SEND_EXPR, CLASS_REFERENCE_EXPR): New
7890 ObjC/ObjC++ tree node codes.
7891
78922003-09-24 Alexandre Oliva <aoliva@redhat.com>
7893
7894 * cpplib.c (do_pragma): Reintroduce cb_line_change call in the
7895 code path that calls a handler.
7896
78972003-09-24 Nathanael Nerode <neroden@gcc.gnu.org>
7898
7899 * config.gcc (c4x-*, tic4x-*, d30v-*, mmix-knuth-mmixware):
7900 Disable fixproto.
7901
7902 * config.gcc: Clean up and reindent $with_cpu=yes|no clause and
7903 the section giving $with_cpu defaults by target.
7904
7905 * config.gcc (arm-*-coff*, armel-*-coff*, arm*-*-ecos-elf,
7906 arm*-*-elf, ep9312-*-elf, arm*-wince-pe*, arm*-*-pe*, arm*-*-pe*,
7907 rs6000-ibm-aix4.[3456789]*, powerpc-ibm-aix4.[3456789]*,
7908 rs6000-ibm-aix5.1.*, powerpc-ibm-aix5.1.*,
7909 rs6000-ibm-aix[56789].*, powerpc-ibm-aix[56789].*,
7910 i[34567]86-pc-msdosdjgpp*): Disable fixproto.
7911
79122003-09-24 David Edelsohn <edelsohn@gnu.org>
7913
7914 * config/rs6000/rs6000.md (movti_power): Collapse case 1 and 2
7915 together. Protect load string instruction with TARGET_STRING.
7916 (movti_string): Collapse case 1 and 2 together.
7917
79182003-09-24 Nathan Sidwell <nathan@codesourcery.com>
7919
7920 * c-common.c (c_common_type_for_mode): Check for VOIDmode.
7921
79222003-09-24 Richard Earnshaw <rearnsha@arm.com>
7923
7924 * arm.h (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Wrap in
7925 do...while(0)
7926
79272003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
7928
7929 * config.gcc: Move use_fixproto=no from generic vxworks clause to
7930 specific one.
7931
7932 * config.gcc (powerpc-*-gnu-gnualtivec*): Disable fixproto
7933 (accidentally missed in last pass).
7934
79352003-09-23 Andrew Pinski <apinski@apple.com>
7936
7937 PR bootstrap/12383
7938 * configure: Regenerate.
7939
79402003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
7941
7942 * config.gcc (x86_64-*-freebsd*): Disable fixproto (accidentally
7943 missed in last pass).
7944
79452003-09-23 Alexandre Oliva <aoliva@redhat.com>
7946
7947 * config/mn10300/mn10300.md (andsi3): Fix cut&pasto in 0xfffffffe
7948 constant.
7949
79502003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
7951
7952 * config.gcc: Move vax-*-vms* unsupported notice up with the rest.
7953
7954 * config.gcc (alpha64*-dec-*vms*, alpha*-dec-*vms*,
7955 powerpc-*-eabisim*, powerpc-*-eabi*, powerpcle-*-eabisim*,
7956 powerpcle-*-eabi*): Disable fixproto.
7957
7958 * config.gcc: Move use_fixproto=no from generic FreeBSD clause to
7959 specific FreeBSD clauses.
7960 * config.gcc: Move use_fixproto=no from generic NetBSD clause to
7961 specific NetBSD clauses.
7962 * config.gcc: Move use_fixproto=no from generic OpenBSD clause
7963 to specific OpenBSD clauses.
7964
79652003-09-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7966
7967 * pa.c (hppa_expand_prologue): Do pic register save in frame marker
7968 without adding a frame note.
7969 * pa.md (allocate_stack): Save pic register in new frame marker when
7970 generating pic code.
7971
79722003-09-23 Kelley Cook <kelleycook@wideopenwest.com>
7973
7974 * cgraphunit.c (cgraph_expand_all_functions): Renamed from
7975 cgraph_expand_functions.
7976
79772003-09-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7978
7979 * Makefile.in (gnucompare*): Merge into ...
7980 (slowcompare*): ... here.
7981 (fastcompare*): New targets.
7982 * aclocal.m4 (gcc_AC_PROG_CMP_IGNORE_INITIAL): Add checks for
7983 other "fast" cmp programs.
7984 * configure: Regenerate.
7985
79862003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7987
7988 * targhooks.c: Include output.h.
7989 * Makefile.in (targhooks.o): Add output.h to dependency list.
7990
79912003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7992
7993 * config.host: Removed superfluous newline.
7994
79952003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
7996
7997 * config.gcc: Use ${target}, not $machine.
7998 * configure.in: Don't set $machine.
7999 * configure: Regenerate.
8000
80012003-09-23 Geoffrey Keating <geoffk@apple.com>
8002
8003 * config/t-darwin (crt2.o): Add stmp-int-hdrs to dependencies.
8004
8005 * config/rs6000/rs6000.c (function_arg_pass_by_reference): Don't
8006 pass zero-size arrays by reference.
8007 (rs6000_va_arg): Likewise.
8008
80092003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
8010
8011 * config.gcc: Set use_fixproto=no in each specific *-gnu*
8012 configuration, rather than the generic one.
8013
80142003-09-23 Richard Henderson <rth@redhat.com>
8015
8016 * tree-inline.c (remap_save_expr): Map new save_expr to identity
8017 rather than to error_mark_node.
8018
80192003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8020
8021 * configure.in (HAVE_GAS_SHF_MERGE): Always define to test result.
8022 Update description.
8023 * configure: Regenerate.
8024 * config.in: Likewise.
8025 * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test for
8026 HAVE_GAS_SHF_MERGE value.
8027 * varasm.c (mergeable_string_section): Likewise.
8028 (mergeable_constant_section): Likewise.
8029
80302003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8031
8032 * except.h (MUST_USE_SJLJ_EXCEPTIONS): Test for DWARF2_UNWIND_INFO
8033 value.
8034
80352003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8036
8037 * target.h (struct gcc_target): New member external_libcall.
8038 * target-def.h (TARGET_ASM_EXTERNAL_LIBCALL): Provide default.
8039 (TARGET_ASM_OUT): Use it.
8040 * doc/tm.texi (TARGET_ASM_EXTERNAL_LIBCALL): Document.
8041 * targhooks.c: Convert to ISO C 90.
8042 (default_external_libcall): New function.
8043 * targhooks.h (default_external_libcall): Declare.
8044 * varasm.c (assemble_external_libcall): Use
8045 targetm.asm_out.external_libcall instead of
8046 ASM_OUTPUT_EXTERNAL_LIBCALL.
8047 * config/mips/mips-protos.h [TARGET_IRIX5 || TARGET_IRIX 6]
8048 (mips_output_external_libcall): Declare.
8049 * config/mips/mips.c (mips_output_external_libcall): Change
8050 definition guard.
8051 Change to match TARGET_ASM_EXTERNAL_LIBCALL.
8052 Only operate for O32 ABI.
8053 * config/mips/iris5.h (TARGET_ASM_EXTERNAL_LIBCALL): Define
8054 instead of ASM_OUTPUT_EXTERNAL_LIBCALL.
8055 * config/mips/iris6.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Don't undef,
8056 superceded by TARGET_ASM_EXTERNAL_LIBCALL.
8057
80582003-09-22 Nathnael Nerode <neroden@gcc.gnu.org>
8059
8060 * config.gcc: Do per-target disabling of fixproto here in clauses,
8061 not in t- fragments.
8062 * configure.in: Adjust to set STMP_FIXPROTO correctly.
8063 * configure: Regenerate.
8064 * config/arm/t-semi, config/cris/t-cris, config/i386/t-beos,
8065 config/i386/t-cygming, config/i386/t-nto, config/ia64/t-hpux,
8066 t-freebsd, t-linux, t-netbsd, t-openbsd, t-rtems, t-vxworks,
8067 xtensa/t-xtensa: Remove setting of STMP_FIXPROTO.
8068 * config/i370/t-oe, config/i386/t-netware, config/pa/t-bsd,
8069 t-interix, t-linux-aout: Delete files consisting only of
8070 setting of STMP_FIXPROTO.
8071
8072 * config.host: Allow unknown hosts (not targets). Allow
8073 ns32k-*-netbsdelf* as a host (not a target). Remove redundant
8074 empty clauses. Remove useless obsolete-configuration clause.
8075 Prune unsupported configuration list. Collapse identical
8076 clauses for closely related systems. Rewrite comment for
8077 unsupported hosts list. Reorganize a little.
8078
80792003-09-22 Richard Henderson <rth@redhat.com>
8080
8081 * c-common.c (c_common_signed_or_unsigned_type): Examine mode,
8082 not precision.
8083
80842003-09-22 David Edelsohn <edelsohn@gnu.org>
8085 Hartmut Penner <hpenner@de.ibm.com>
8086 Segher Boessenkool <boessen@de.ibm.com>
8087
8088 * config/rs6000/rs6000.c (altivec_in_gprs_p): Rename to ...
8089 (gpr_or_gpr_p): Test INT_REGNO_P and convert to boolean.
8090 (rs6000_split_altivec_in_gprs): Rename to ...
8091 (rs6000_split_multireg_move): Add support for update addressing.
8092 * config/rs6000/rs6000-protos.h: Same.
8093 * config/rs6000/altivec.md: Same.
8094 * config/rs6000/rs6000.md (movdi_internal32): Use new splitter for
8095 multiple GPRs.
8096 (movti): Remove TARGET_STRING || TARGET_POWERPC64 final condition.
8097 (movti_power): Use new splitter for multiple GPRs.
8098 (movti_string): Same.
8099 (movti_ppc64): Same.
8100
81012003-09-22 Bob Wilson <bob.wilson@acm.org>
8102
8103 * config/xtensa/xtensa-protos.h: Convert to ISO C90.
8104 * config/xtensa/xtensa.c: Convert to ISO C90. Minor formatting fixes.
8105
81062003-09-22 Alexandre Oliva <aoliva@redhat.com>
8107
8108 * config/mn10300/mn10300.md: Revert 2003-09-17's patch.
8109 (andsi3): Set attr cc to set_zn when using shifts or adds.
8110
81112003-09-22 Bernardo Innocenti <bernie@develer.com>
8112
8113 * doc/contrib.texi: Add Peter Barada, Paul Dale and myself.
8114
81152003-09-22 Bernardo Innocenti <bernie@develer.com>
8116
8117 * config/m68k/m68k.h (MASK_RTD, TARGET_RTD, RETURN_POPS_ARGS):
8118 Resurrect -mrtd option.
8119
81202003-09-21 Andrew Pinski <pinskia@physics.uc.edu>
8121
8122 PR target/12281
8123 * config/darwin.c (machopic_validate_stub_or_non_lazy_ptr): Call
8124 mark_referenced instead of setting TREE_SYMBOL_REFERENCED.
8125
81262003-09-22 Olivier Hainque <hainque@act-europe.fr>
8127
8128 PR target/9786
8129 * reg-stack.c (convert_regs_1): Purge possible dead eh edges
8130 after potential deletion of trapping insn. Avoids later ICE
8131 from call to fixup_abnormal_edges.
8132 (convert_regs_2): Stack the current block successors before
8133 processing this block, that is, before the potential deletion of
8134 dead edges by convert_regs_1, because these edges have been used
8135 to initialize the predecessors count.
8136
81372003-09-22 Eric Botcazou <ebotcazou@libertysurf.fr>
8138
8139 * real.c: Fix several nits in the head comment.
8140
81412003-09-21 Richard Henderson <rth@redhat.com>
8142
8143 * tree.h c-aux-info.c, c-decl.c, c-parse.in, coverage.c, dbxout.c,
8144 diagnostic.c, dwarf2out.c, dwarfout.c, function.c, integrate.c,
8145 print-tree.c, stmt.c, toplev.c, tree-dump.c, tree-inline.c,
8146 tree-optimize.c, tree.c, tree.def, xcoffout.c, config/alpha/alpha.c,
8147 config/mips/mips.c, doc/c-tree.texi, objc/objc-act.c: Revert.
8148
81492003-09-21 Richard Henderson <rth@redhat.com>
8150
8151 * tree.h (TREE_LOCUS): Rename from DECL_SOURCE_LOCATION; make const.
8152 (TREE_FILENAME, TREE_LINENO): Likewise.
8153 (set_tree_locus, copy_tree_locus, set_tree_file_line): New.
8154 (TREE_LOCUS_SET_P): New.
8155 * c-aux-info.c, c-decl.c, c-parse.in, coverage.c, dbxout.c,
8156 diagnostic.c, dwarf2out.c, dwarfout.c, function.c, integrate.c,
8157 print-tree.c, stmt.c, toplev.c, tree-dump.c, tree-inline.c,
8158 tree-optimize.c, tree.c, tree.def, xcoffout.c, config/alpha/alpha.c,
8159 config/mips/mips.c, doc/c-tree.texi, objc/objc-act.c: Update to match.
8160
81612003-09-21 Nathanael Nerode <neroden@gcc.gnu.org>
8162
8163 * config/vax/vax-protos.h: Convert to ISO C90.
8164 * config/vax/vax.c: Convert to ISO C90.
8165
81662003-09-21 Graham Stott <grahams@btinternet.com>
8167
8168 PR target/12353
8169 * config/i386/i386.md(ffs_no_cmove): Fix operand 2 constraint.
8170
81712003-09-21 Eric Botcazou <ebotcazou@libertysurf.fr>
8172
8173 PR target/12301
8174 * reorg.c (stop_search_p): Return 1 for insns that can
8175 throw internally.
8176
81772003-09-20 Richard Henderson <rth@redhat.com>
8178
8179 * c-format.c (gcc_diag_char_table): Add %J.
8180 (gcc_cdiag_char_table, gcc_cxxdiag_char_table): Likewise.
8181 (check_format_types): Fix wanted_type name lookup.
8182 (init_dynamic_diag_info): Setup %J.
8183 * diagnostic.c (text_specifies_location): Implement %J.
8184 * c-common.c, c-decl.c, c-objc-common.c, c-pragma.c, calls.c,
8185 dwarfout.c, expr.c, function.c, stmt.c, stor-layout.c, toplev.c,
8186 tree-inline.c, tree-optimize.c, varasm.c, config/arm/pe.c,
8187 config/i386/winnt.c, config/ia64/ia64.c, config/mcore/mcore.c,
8188 config/v850/v850.c, objc/objc-act.c: Use %J in diagnostics.
8189
8190 * tree-inline.c: Include intl.h
8191 (inline_forbidden_p_1): Fix i18n of inline_forbidden_reason.
8192 * Makefile.in (tree-inline.o): Update.
8193
81942003-09-20 Roger Sayle <roger@eyesopen.com>
8195
8196 * config/i386/i386.c (ix86_expand_carry_flag_compare): Fix
8197 transformation of a>=0 into (unsigned)a<0x80000000.
8198
81992003-09-20 Andrew Pinski <apinski@apple.com>
8200
8201 * config/darwin.c (machopic_select_rtx_section): Fix check for PIC code.
8202
82032003-09-20 Nathanael Nerode <neroden@gcc.gnu.org>
8204
8205 * Makefile.in: Don't set (unused) DLLTOOL.
8206
8207 * config/arm/t-linux, config/arm/t-netbsd, config/arm-t-semi:
8208 Remove obsolete references to ENQUIRE.
8209
82102003-09-19 Nathanael Nerode <neroden@gcc.gnu.org>
8211
8212 * configure.in: Remove --with-elf, which doesn't work.
8213 * configure: Regenerate.
8214 * config.gcc: Remove references to $elf, which does nothing.
8215
8216 * config/i386/xm-vsta.h: Remove xm-file believed useless.
8217 * config.build (i386-vsta): Remove reference to it.
8218 * config.host (i386-vsta): Remove reference to it.
8219
82202003-09-19 Phil Edwards <phil@codesourcery.com>
8221
8222 * doc/install.texi: Document the multiple testsuite options.
8223
82242003-09-19 Gerald Pfeifer <gerald@pfeifer.com>
8225
8226 * doc/install.texi (Specific): Add the specific versions of GCC
8227 where support for FreeBSD 1, HP-UX version 9 and older, and AIX
8228 version 3 and older was discontinued.
8229
82302003-09-19 Joel Sherrill <joel@oarcorp.com>
8231
8232 * config/m68k/t-m68kbare, config/m68k/t-rtems: Change 68681 to
8233 68881.
8234
82352003-09-19 Bernardo Innocenti <bernie@develer.com>
8236
8237 * config/m68k/m68k.h (TARGET_CPU_CPP_PREDEFINES): Add predefines
8238 for -m68030, -m68020-60 and -m68020-40.
8239 * config/m68k/m68k.h (TARGET_68030): New target flag.
8240 * config/m68k/m68k.h (MASK_RTD, TARGET_RTD, MASK_REGPARM,
8241 TARGET_REGPARM): Remove.
8242 * config/m68k/m68k.h: Regroup and renumber target flags.
8243 * config/m68k/m68k.h (TARGET_SWITCHES): Fix some tabulations.
8244 * config/m68k/m68k.h (RETURN_POPS_ARGS): Always evaluate to 0.
8245 * config/m68k/m68k.h (FUNCTION_ARG): Likewise.
8246 * config/m68k/m68k.h (FUNCTION_ARG_PARTIAL_NREGS): Likewise.
8247 * config/m68k/m68k-none.h: Use MASK_xxx values in M68K_CPU_xxx macros.
8248
82492003-09-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
8250
8251 * config/m68k/t-rtems (m68k-*-rtems*): New.
8252 * config.gcc: Use config/m68k/t-rtems.
8253
82542003-09-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
8255
8256 * config/mips/t-rtems: New.
8257 * config.gcc (mips*-*-rtems*): Use config/mips/t-rtems.
8258
82592003-09-19 Kelley Cook <kelleycook@wideopenwest.com>
8260
8261 * cgraph.c: Fix typo in debugging output.
8262
82632003-09-19 T. Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
8264 Eric Botcazou <ebotcazou@libertysurf.fr>
8265
8266 PR target/12166
8267 * config/sparc/sol2-c1.asm (start): Set __Argv if GCRT1.
8268
82692003-09-18 Mike Stump <mrs@apple.com>
8270
8271 * c-ppoutput.c (print): Use fileline typedef for field 'line'.
8272 (print_line, maybe_print_line, cb_define, cb_undef, cb_include,
8273 cb_ident, cb_def_pragma): Use fileline typedef.
8274 * cpphash.h (struct cpp_reader): Likewise for field out.first_line.
8275
82762003-09-18 Danny Smith <dannysmith@users.sourceforge.net>
8277
8278 * config/i386/winnt.c (gen_stdcall_suffix): Quit summation of
8279 total parm size if a parm has incomplete type.
8280 (gen_fastcall_suffix): Likewise.
8281
82822003-09-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8283
8284 * except.c (output_function_exception_table): Adjust last change
8285 to handle TYPE of INTEGER_CST.
8286
82872003-09-18 Mark Mitchell <mark@codesourcery.com>
8288
8289 PR target/11184
8290 * builtins.c (expand_builtin_apply): Use convert_memory_address
8291 before returning the value.
8292
8293 * alias.c (find_base_value): Simplify use of
8294 convert_memory_address.
8295 (find_base_term): Likewise.
8296 * builtins.c (expand_builtin_stejmp_setup): Likewise.
8297 (expand_builtin_longjmp): Likewise.
8298 (expand_builtin_prefetch): Likewise.
8299 (get_memory_rtx): Likewise.
8300 (expand_builtin_return): Likewise.
8301 (expand_builtin_memcpy): Likewise.
8302 (expand_builtin_strncpy): Likewise.
8303 (expand_builtin_memset): Likewise.
8304 (expand_builtin_va_arg): Likewise.
8305 (expand_builtin_va_copy): Likewise.
8306 (expand_builtin_alloca): Likewise.
8307 * calls.c (expand_call): Likewise.
8308 * except.c (expand_builtin_extract_return_addr): Likewise.
8309 (expand_builtin_eh_return): Likewise.
8310 * explow.c (convert_memory_address): Define even when
8311 POINTER_EXTEND_UNSIGNED is not defined. Do nothing if the address
8312 is already in the right mode.
8313 * explow.c (memory_address): Simplify use of convert_memory_address.
8314 (probe_stack_range): Likewise.
8315 * expmed.c (make_tree): Likewise.
8316 * expr.c (emit_block_move_in_libcall): Likewise.
8317 (expand_assignment): Likewise.
8318 (expand_expr): Likewise.
8319 * function.c (assign_parms): Likewise.
8320 (expand_function_end): Likewise.
8321 * integrate.c (copy_rtx_and_substitute): Likewise.
8322 * stmt.c (expand_computed_goto): Likewise.
8323
83242003-09-18 Roger Sayle <roger@eyesopen.com>
8325
8326 * simplify-rtx.c (simplify_unary_operation): Only transform
8327 (not (eq X Y)) into (ne X Y) when mode is BImode or STORE_FLAG_VALUE
8328 is -1. RTL "not" is a bit-wise not, "~", not a logical not "!".
8329
83302003-09-18 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8331
8332 PR target/11674
8333 * config/i386/i386.c (x86_emit_floatuns): Also handle SImode operand.
8334
83352003-09-18 Roger Sayle <roger@eyesopen.com>
8336
8337 * tree.def (FFS_EXPR, CLZ_EXPR, CTZ_EXPR, POPCOUNT_EXPR,
8338 PARITY_EXPR): Delete unused tree codes.
8339 * c-common.c (c_common_truthvalue_conversion): Delete references
8340 to FFS_EXPR and POPCOUNT_EXPR.
8341 * c-pretty-print.c (pp_c_postfix_expression): Remove FFS_EXPR.
8342 (pp_c_expression): Likewise.
8343 * expr.c (expand_expr): Delete RTL expansion of FFS_EXPR, CLZ_EXPR,
8344 CTZ_EXPR, POPCOUNT_EXPR and PARITY_EXPR.
8345 * fold-const.c (tree_expr_nonnegative_p): Remove FFS_EXPR, CLZ_EXPR,
8346 CTZ_EXPR, POPCOUNT_EXPR and PARITY_EXPR. Add support for calls to
8347 BUILT_IN_FFS, BUILT_IN_PARITY and BUILT_IN_POPCOUNT and their long
8348 and long long variants.
8349
83502003-09-18 Gabriel Dos Reis <gdr@integrable-solutions.net>
8351
8352 * c-pretty-print.h (pp_type_specifier_seq): Fix thinko.
8353 * c-pretty-print.c: Fix formatting.
8354 (pp_c_integer_constant): Append type annotation to literals. Tidy.
8355 (pp_c_type_specifier): Tidy.
8356 (pp_c_compound_literal): New function.
8357 (pp_c_initializer): Simplify..
8358 (pp_c_initializer_list): Likewise.
8359 (pp_c_brace_enclosed_initializer_list): New function.
8360 (pp_c_postfix_expression): Simplify.
8361
83622003-09-17 Alexandre Oliva <aoliva@redhat.com>
8363
8364 * config/mn10300/mn10300.md (andsi3, iorsi3, xorsi3,
8365 one_complsi2, bit-clear, bit-set, iorqi3): Make them set_zn.
8366
83672003-09-17 Richard Henderson <rth@redhat.com>
8368
8369 * tree-optimize.c (tree_rest_of_compilation): Save and restore
8370 input_location.
8371
83722003-09-17 Daniel Jacobowitz <drow@mvista.com>
8373
8374 * config/rs6000/sysv4.h (LIB_LINUX_SPEC): Give -lpthread before -lc.
8375
83762003-09-17 Richard Henderson <rth@redhat.com>
8377
8378 * cfg.c (dump_flow_info): Skip register dump if reg_n_info null.
8379
83802003-09-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8381
8382 * configure.in (gcc_cv_ld_hidden): Don't test gnu_ld_flag.
8383 * configure: Regenerate.
8384
83852003-09-17 Mark Mitchell <mark@codesourcery.com>
8386
8387 PR debug/12066
8388 * dbxout.c (dbxout_init): Use a langhook to find builtin types.
8389 * langhooks-def.h (lhd_return_null_tree_v): New function.
8390 (LANG_HOOKS_BUILTIN_TYPE_DECLS): New macro.
8391 (LANG_HOOKS_DECLS): Add it to the intializer.
8392 * langhooks.c (lhd_return_null_tree_v): New function.
8393 * langhooks.h (lang_hooks_for_decls): Add builtin_type_decls.
8394
83952003-09-17 Daniel Jacobowitz <drow@mvista.com>
8396
8397 * configure.in: Quote gcc_config_arguments for configargs.h.
8398 * configure: Regenerated.
8399 * gccbug.in: Don't shell-expand gcc_config_arguments.
8400
84012003-09-17 Gabriel Dos Reis <gdr@integrable-solutions.net>
8402
8403 PR c++/11357
8404 * c-pretty-print.c (pp_c_floating_constant): Append
8405 type-annotation to floating constants.
8406
84072003-09-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8408
8409 * config/mips/iris5.h (TARGET_OS_CPP_BUILTINS): Define _LONGLONG.
8410 Define _ABIO32.
8411 Use it for _MIPS_SIM.
8412 * config/mips/iris6-o32.h (TARGET_OS_CPP_BUILTINS): Removed.
8413
8414 * config/mips/iris6-o32-as.h (SUBTARGET_ASM_OPTIMIZING_SPEC):
8415 Moved ...
8416 * config/mips/iris5.h (SUBTARGET_ASM_OPTIMIZING_SPEC): ... here,
8417 updating comment.
8418 Fixes PR target/10190.
8419
84202003-09-17 Daniel Jacobowitz <drow@mvista.com>
8421
8422 * config/rs6000/sysv4.h (LIB_LINUX_SPEC): Make -pthread apply
8423 to shared libraries.
8424
84252003-09-17 Eric Botcazou <ebotcazou@libertysurf.fr>
8426
8427 PR optimization/11646
8428 * cfgrtl.c (purge_dead_edges) [JUMP_INSN]: Rematerialize the
8429 EDGE_ABNORMAL flag for EH edges.
8430 * toplev.c (rest_of_handle_cse): Delete unreachable blocks
8431 if dead edges were purged.
8432
84332003-09-16 Bernardo Innocenti <bernie@develer.com>
8434
8435 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Add target predefines.
8436 * config/m68k/m68k-none.h (CPP_CPU_DEFAULT_SPEC): Kill all definitions.
8437 * config/m68k/m68k-none.h (CPP_FPU_SPEC): Remove.
8438 * config/m68k/m68k-none.h (CPP_SPEC): Likewise.
8439
84402003-09-16 Ian Lance Taylor <ian@wasabisystems.com>
8441
8442 * cfgcleanup.c (label_is_jump_target_p): Correct use of table
8443 returned by tablejump_p.
8444
84452003-09-16 Joel Brobecker <brobecker@gnat.com>
8446
8447 * dwarf2asm.c (dw2_asm_output_nstring): Add comment.
8448
84492003-09-16 Roger Sayle <roger@eyesopen.com>
8450
8451 PR bootstrap/12269
8452 * simplify-rtx.c (simplify_gen_relational): Allow the cmp_mode
8453 argument to be VOIDmode, taking the mode of the comparison from
8454 the operands. Only call simplify_relational_operation if we
8455 know the mode of the comparison. Honor FLOAT_STORE_FLAG_VALUE
8456 if comparison has a floating point result. Ensure that the
8457 result is always of the specified mode.
8458 (simplify_replace_rtx): Simplify call to simplify_gen_relational.
8459 (simplify_unary_operation): Ensure the correct mode and cmp_mode
8460 are always passed to simplify_gen_relational. Simplify NOT of
8461 comparison operator in any mode, not just BImode.
8462 (simplify_ternary_operation): Correct tests on the return value
8463 of simplify_relational_operation to use const_true_rtx, not
8464 const1_rtx. Abort if it ever returns a non-constant result.
8465
8466 * cfgloopanal.c (count_strange_loop_iterations): Use the function
8467 simplify_relational_operation, not simplify_gen_relational, if
8468 we're only interested in constant comparisons and will ignore
8469 non-constant results.
8470
84712003-09-16 Roger Sayle <roger@eyesopen.com>
8472
8473 * fold-const.c (tree_swap_operands_p): New function to determine
8474 the prefered ordering of operands.
8475 (fold): Numerous clean-ups. Use tree_swap_operands_p when swapping
8476 operands to commutative, comparison or ternary operators. Replace
8477 uses of TREE_SET_CODE with recursive call to fold. Remove duplicate
8478 transformation of A ? B : C into !A ? C : B.
8479
84802003-09-16 Jakub Jelinek <jakub@redhat.com>
8481
8482 * config/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
8483 * config/alpha/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
8484 * config/arm/linux-elf.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
8485 * config/rs6000/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
8486 * config/rs6000/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
8487 * config/sh/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
8488 * config/sparc/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
8489 * config/sparc/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
8490
84912003-09-16 Jason Merrill <jason@redhat.com>
8492 Jakub Jelinek <jakub@redhat.com>
8493
8494 * c-common.c (handle_warn_unused_result_attribute): New function.
8495 (c_common_attribute_table): Add warn_unused_result.
8496 (c_expand_expr): Issue warning when result of inlined function
8497 with warn_unused_result attribute is ignored.
8498 * calls.c (expand_call): Issue warning when result of function
8499 with warn_unused_result attribute is ignored.
8500 * c-common.h (STMT_EXPR_WARN_UNUSED_RESULT): Define.
8501 * expr.c (expr_wfl_stack): Define.
8502 (expand_expr) <case EXPR_WITH_FILE_LOCATION>: If ignore,
8503 pass const0_rtx as target. Chain locations into expr_wfl_stack.
8504 * tree-inline.c (expand_call_inline): Set STMT_EXPR_WARN_UNUSED_RESULT
8505 bit if inlined function has warn_unused_result attribute.
8506 * input.h (expr_wfl_stack): Declare.
8507 * doc/extend.texi: Document warn_unused_result attribute.
8508
85092003-09-15 Alexandre Oliva <aoliva@redhat.com>
8510
8511 * cpplib.c (do_pragma): Remove unnecessary cb_line_change.
8512
85132003-09-15 Bob Wilson <bob.wilson@acm.org>
8514
8515 * config/xtensa/xtensa.c (xtensa_multibss_section_type_flags): Add
8516 ATTRIBUTE_UNUSED.
8517 (call_insn_operand): For PIC, don't allow a direct call to a
8518 function in a different section than the current one.
8519
85202003-09-16 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
8521
8522 * doc/invoke.texi (Warning Options): Add missing hyphen before
8523 "Wimport". Change "-Wno-endif-labels" to "-Wendif-labels".
8524 Move "-Wold-style-definition" to the C-only section.
8525 Fix the ordering of the warning options.
8526
85272003-09-15 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8528 Jeff Law <law@redhat.com>
8529
8530 * gcse.c (remove_reachable_equiv_notes): New.
8531 replace_store_insn): Call it. Update antic list.
8532 (store_killed_in_insn): Take REG_EQUAL notes into account.
8533 (build_store_vectors, delete_store): Add parameter to
8534 replace_store_insn call.
8535
85362003-09-15 Bob Wilson <bob.wilson@acm.org>
8537
8538 * config/xtensa/xtensa.h (LEGITIMATE_PIC_OPERAND_P): Use
8539 SYMBOL_REF_LOCAL_P.
8540
85412003-09-15 Kazu Hirata <kazu@cs.umass.edu>
8542
8543 * expr.h (DEFAULT_FUNCTION_ARG_PADDING): New.
8544 (FUNCTION_ARG_PADDING): Use DEFAULT_FUNCTION_ARG_PADDING.
8545 * config/ia64/ia64.c (ia64_hpux_function_arg_padding):
8546 Likewise.
8547 * config/m68hc11/m68hc11.c (m68hc11_function_arg_padding):
8548 Likewise.
8549 * config/rs6000/rs6000.c (function_arg_padding): Likewise.
8550 * config/sparc/sparc.c (function_arg_padding): Likewise.
8551
85522003-09-15 Vladimir Makarov <vmakarov@redhat.com>
8553
8554 * haifa-sched.c (schedule_block): Use ready_remove_first instead
8555 of choose_ready for non-dfa insn scheduling.
8556
85572003-09-15 Andreas Jaeger <aj@suse.de>
8558 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8559
8560 * doc/invoke.texi (Warning Options): Describe -Wold-style-definition.
8561 * c-opts.c (c_common_handle_option): Handle OPT_Wold_style_definition.
8562 * c-parse.in: Warn about old-style parameter definition.
8563 * c-common.c: Define warn_old_style_defintion.
8564 * c-common.h: Declare it.
8565 * c.opt: Add Wold-style-defintion.
8566
85672003-09-15 Andreas Jaeger <aj@suse.de>
8568
8569 * config/rs6000/altivec.h: Convert () prototypes to ISO C90.
8570 * config/rs6000/rs6000.c: Likewise.
8571
85722003-09-12 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8573
8574 PR optimization/10914
8575 * expr.h (get_condition, canonicalize_condition): Declaration changed.
8576 * cfgloopanal.c (simple_loop_exit_p): Add parameter to a get_condition
8577 and canonicalize_condition calls.
8578 * gcse.c (fis_get_condition, delete_null_pointer_checks_1,
8579 delete_null_pointer_checks): Ditto.
8580 * ifcvt.c (noce_get_alt_condition, noce_get_condition): Ditto.
8581 * predict.c (estimate_probability, expected_value_to_br_prob): Ditto.
8582 * loop.c (check_dbra_loop, get_condition_for_loop): Ditto.
8583 (canonicalize_condition, get_condition): Allow to return comparisons
8584 of cc mode registers.
8585 * loop-unswitch.c (may_unswitch_on_p, unswitch_single_loop): Allow
8586 cc mode registers comparison in condition.
8587
85882003-09-12 Mark Mitchell <mark@codesourcery.com>
8589
8590 * coverage.c (create_coverage): Do not call pushlevel/poplevel.
8591 * langhooks-def.h (lhd_do_nothing_iii_return_null_tree): New
8592 function.
8593 * langhooks.c (lhd_do_nothing_iii_return_null_tree): Define it.
8594
85952003-09-14 Kazu Hirata <kazu@cs.umass.edu>
8596
8597 * combine.c (simplify_comparison): Convert
8598 (ne (and (lshiftrt (xor X CST) Y) 1) 0) into
8599 (eq (and (lshiftrt X Y) 1) 0).
8600
86012003-09-14 Kazu Hirata <kazu@cs.umass.edu>
8602
8603 * alias.c: Follow spelling conventions.
8604 * cpphash.h: Likewise.
8605 * fold-const.c: Likewise.
8606
86072003-09-14 Alexandre Oliva <aoliva@redhat.com>
8608
8609 * c-ppoutput.c (cb_line_change): Revert 2003-08-04's change.
8610 * c-lex.c (cb_line_change): Skip line changing whenever
8611 c-ppoutput.c would.
8612
86132003-09-14 Steven Bosscher <steven@gcc.gnu.org>
8614
8615 * ra.c: Convert to ISO C90 prototypes.
8616 * ra-build.c: Likewise.
8617 * ra-colorize.c: Likewise.
8618 * ra-debug.c: Likewise.
8619 * ra-rewrite.c: Likewise.
8620
86212003-09-14 Richard Sandiford <rsandifo@redhat.com>
8622
8623 * Makefile.in (%.dvi): Remove excess $(docdir).
8624
86252003-09-14 Richard Sandiford <rsandifo@redhat.com>
8626
8627 * function.c (STACK_BYTES): Move definition to head of file.
8628 (assign_parms): Don't pass current_function_pretend_args_size
8629 directly to SETUP_INCOMING_VARARGS. For partial register arguments,
8630 round current_function_pretend_args_size up to STACK_BYTES. Skip any
8631 excess before laying out the argument.
8632
86332003-09-14 Andreas Jaeger <aj@suse.de>
8634
8635 * objc/objc-act.c: Convert to ISO C90 prototypes.
8636 * objc/objc-act.h: Likewise.
8637
86382003-09-14 Olaf Hering <olh@suse.de>
8639
8640 * config/rs6000/rs6000.c: Fix typo: Remove extra ')'.
8641
86422003-09-13 Andrew Pinski <pinskia@physics.uc.edu>
8643
8644 PR target/12021
8645 * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Remove the asserts
8646 as they already are done in config/m68k/m68k.h.
8647 * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Likewise
8648
8649 * config/rs6000/rs6000.c (GEN_LOCAL_LABEL_FOR_SYMBOL): Remove.
8650 (machopic_output_stub): Only generate pic base symbols when using pic
8651 and generate them in the form L00000000$spb.
8652
86532003-09-13 Richard Henderson <rth@redhat.com>
8654
8655 * cgraphunit.c (cgraph_assemble_pending_functions): Export.
8656 (cgraph_finalize_function): Revert TREE_ASM_WRITTEN check.
8657 * cgraph.h: Update.
8658
86592003-09-12 Dale Johannesen <dalej@apple.com>
8660
8661 * config/rs6000/rs6000.c: Fix typos in previous.
8662
86632003-09-12 Ziemowit Laski <zlaski@apple.com>
8664
8665 * pretty-print.c (pp_construct): Use xcalloc instead of xmalloc
8666 when allocating pp->buffer.
8667
86682003-09-12 Geoffrey Keating <geoffk@apple.com>
8669
8670 * config/darwin.c (machopic_select_rtx_section): Use
8671 const_data_section for things that might require relocation.
8672
86732003-09-12 H.J. Lu <hongjiu.lu@intel.com>
8674
8675 PR bootstrap/12264
8676 * tree-inline.c (inline_forbidden_p_1): Cast the 3rd arg to tree.
8677
86782003-09-12 Bob Wilson <bob.wilson@acm.org>
8679
8680 * config/xtensa/elf.h (ASM_SPEC): Remove no-density option. Reformat.
8681 * config/xtensa/linux.h (ASM_SPEC): Likewise.
8682 * config/xtensa/xtensa.h (TARGET_SWITCHES): Remove -mbig-endian,
8683 -mlittle-endian, -m[no-]density, -m[no-]abs, -m[no-]addx, -m[no-]mac16,
8684 -m[no-]mul16, -m[no-]mul32, -m[no-]nsa, -m[no-]minmax, -m[no-]sext,
8685 -m[no-]booleans, -mhard-float, -msoft-float, -m[no-]hard-float-div,
8686 -m[no-]hard-float-recip, -m[no-]hard-float-sqrt, and
8687 -m[no-]hard-float-rsqrt options. Delete corresponding MASK_* macros
8688 and redefine corresponding TARGET_* macros with constants from the
8689 xtensa-config.h header.
8690 * doc/invoke.texi (Option Summary, Xtensa Options): Remove documention
8691 for the options listed above.
8692
86932003-09-12 Dale Johannesen <dalej@apple.com>
8694
8695 * config/rs6000/rs6000-protos.h: Use C90 prototypes.
8696 * config/rs6000/rs6000-c.c: Ditto.
8697 * config/rs6000/rs6000.c: Ditto.
8698 * config/rs6000/ sysv4.h: Ditto.
8699
87002003-09-12 Chris Lattner <sabre@nondot.org>
8701
8702 * loop.c: Move comments describing BIV's and GIV's to top of file
8703
87042003-09-12 Roger Sayle <roger@eyesopen.com>
8705
8706 PR optimization/8967
8707 * alias.c (write_dependence_p): Modify to take an additional constp
8708 argument that controls whether the UNCHANGING_RTX_P flags are used.
8709 (anti_dependence, output_dependence): Adjust write_dependence_p
8710 callers to pass this additional argument, to return the same result.
8711 (unchanging_anti_dependence): New variant of anti_dependence that
8712 ignores the UNCHANGING_RTX_P property on memory references.
8713 * rtl.h (unchaning_anti_dependence): Prototype here.
8714 * flow.c (init_propagate_block): Place fake constant mem writes on
8715 the mem_set_list so that dead writes to const variables are deleted.
8716 (insn_dead_p): Change anti_dependence to unchanging_anti_dependence.
8717 (mark_used_regs): Likewise.
8718
87192003-09-12 Richard Sandiford <rsandifo@redhat.com>
8720
8721 * config/mcore/mcore-protos.h (mcore_r15_operand_p): Declare.
8722 (mcore_secondary_reload_class): Declare.
8723 (mcore_output_inline_const_forced): Remove.
8724 * config/mcore/mcore.md (movsi): Remove the code that forced
8725 non-inlineable constants into a register if the target was r15
8726 or the stack pointer. Remove constant restrictions from the main
8727 define_insn. Remove r <- I, r <- M and r <- N alternatives in favor
8728 of an r <- P alternative. Remove fallback define_insn for reload.
8729 (movhi, movqi): Use gen_lowpart rather than gen_SUBREG. Remove reload
8730 define_insn. Use mcore_output_move in the remaining define_insn.
8731 Adjust condition and constraints in the way as for movsi.
8732 (movdi): Always split unacceptable constants into two. Use
8733 simplify_gen_subreg instead of operand_subword{,_force}.
8734 * config/mcore/mcore.c (mcore_output_inline_const_forced): Remove.
8735 (mcore_output_move): Support HImode and QImode moves as well.
8736 (mcore_m15_operand_p): New function.
8737 (mcore_reload_class): Use it to detect cases where LRW_REGS are better.
8738 (mcore_secondary_reload_class): New function.
8739 * config/mcore/mcore.h (SECONDARY_RELOAD_CLASS): Redefine in
8740 terms of mcore_secondary_reload_class.
8741
87422003-09-11 Mike Stump <mrs@apple.com>
8743
8744 * c-lex.c (fe_file_change): Don't transform to_line with SOURCE_LINE.
8745
87462003-09-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8747
8748 * builtins.c (fold_builtin_logarithm): if N can't be truncated to
8749 MODE exactly, then only convert logN(N) -> 1.0 if
8750 flag_unsafe_math_optimizations is set.
8751
8752 * builtins.c (builtin_dconsts_init, dconstpi, dconste,
8753 init_builtin_dconsts): Delete.
8754 * emit-rtl.c (dconstpi, dconste): Define.
8755 (init_emit_once): Initialize dconstpi & dconste.
8756 * real.h (dconstpi, dconste): Declare.
8757
87582003-09-11 Alexandre Oliva <aoliva@redhat.com>
8759
8760 PR fortran/11522
8761 * dwarf2out.c (gen_inlined_subroutine_die): Emit abstract function
8762 for ultimate origin even if block is abstract.
8763
87642003-09-11 Roger Sayle <roger@eyesopen.com>
8765
8766 * combine.c (combine_simplify_rtx): Move several NOT and NEG
8767 optimizations from here...
8768 * simplify-rtx.c (simplify_unary_operation): to here. Recursively
8769 simplify expressions using simplify_gen_*ary instead of gen_rtx_*.
8770
87712003-09-11 Richard Henderson <rth@redhat.com>
8772
8773 * cgraphunit.c (cgraph_finalize_function): Add nested arg.
8774 Tweek tests for function already generated.
8775 (cgraph_expand_function): Don't double announce in !unit-at-a-time.
8776 * cgraph.h (cgraph_finalize_function): Update for extra arg.
8777 * c-decl.c (finish_function): Likewise.
8778
87792003-09-10 Joe Buck <jbuck@welsh-buck.org>
8780
8781 * c-decl.c (poplevel): Eliminate use of |= in function_body assignment.
8782
87832003-09-10 Jerry Quinn <jlquinn@optonline.net>
8784
8785 * real.c: Update URL to VAX floating point docs.
8786 (decode_vax_d): Extract 8 exponent bits instead of 7.
8787
87882003-09-10 Ian Lance Taylor <ian@wasabisystems.com>
8789
8790 * combine.c (force_to_mode): Set fuller_mask based only on mask,
8791 not op_mode.
8792
87932003-09-11 Jan Hubicka <jh@suse.cz>
8794
8795 * c-objc-common.c (c_cannot_inline_tree_fn): Warn
8796 on why function is not inlinable; do not check
8797 the body.
8798 (inline_forbidden_p): Move to...
8799 * tree-inline.c (inline_forbidden_p_1): ... here; Add warnings;
8800 deal with alloca, longjmp.
8801 (inline_forbidden_p): New static function.
8802 (find_alloca_call_1, find_alloca_call, find_builtin_longjmp_call_1,
8803 find_builtin_longjmp_call): Kill.
8804
88052003-09-10 Richard Henderson <rth@redhat.com>
8806
8807 * cgraph.h (struct cgraph_node): Rename lowered to analyzed.
8808 * cgraphunit.c: Update to match.
8809 (record_call_1): Rearrange. Call lang hook for language nodes.
8810 (cgraph_analyze_function): Don't call lower_function.
8811 * langhooks.h (struct lang_hooks_for_callgraph): Replace
8812 lower_function with analyze_expr.
8813 * langhooks-def.h: Update to match.
8814 * langhooks.c (lhd_callgraph_analyze_expr): New.
8815
88162003-09-10 Martin Husemann <martin@duskware.de>
8817
8818 PR target/11965
8819 * config/sparc/sparc.c (sparc_v8plus_shift): Protect against
8820 constants greater than 63.
8821 * config/sparc/sparc.md (ashlsi3, ashrsi3, lshrsi3): Protect
8822 against constants greater than 31.
8823 (*ashldi3_sp64, *ashrdi3_sp64, *lshrdi3_sp64): Protect against
8824 constants greater than 63.
8825
88262003-09-09 Richard Henderson <rth@redhat.com>
8827
8828 * cgraphunit.c (cgraph_finalize_function): Remove unused argument.
8829 * cgraph.h (cgraph_finalize_function): Update.
8830 * c-decl.c (finish_function): Update.
8831
88322003-09-09 Devang Patel <dpatel@apple.com>
8833
8834 * config/darwin.h (LINK_SPEC): Pass -nofixprebinding to linker.
8835 * doc/invoke.texi: Document new Darwin linker option -nofixprebinding.
8836
88372003-09-09 Eric Christopher <echristo@redhat.com>
8838
8839 * configure.in: Change usage of 'head' to 'sed 1q'.
8840 * configure: Regenerate.
8841
88422003-09-09 Richard Henderson <rth@redhat.com>
8843
8844 * except.c: Include cgraph.h.
8845 (output_function_exception_table): Invoke
8846 cgraph_varpool_mark_needed_node.
8847 * Makefile.in (except.o): Update.
8848
88492003-09-07 Kelley Cook <kelleycook@wideopenwest.com>
8850
8851 * Makefile.in: Define REMAKEFLAGS for LANGUAGES & BOOT_CFLAGS
8852 and use it throughout.
8853
88542003-09-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8855
8856 * builtins.c (real_dconstp, fold_builtin_logarithm,
8857 fold_builtin_exponent): New, split out from fold_builtin. Also
8858 generalize to add log2, log10, exp2 and exp10/pow10 equivalents.
8859 * emit-rtl.c (dconst3, dconst10, dconstthird): New.
8860 (init_emit_once): Initialize new dconsts, use ARRAY_SIZE in lieu
8861 of hardcoded array size.
8862 * fold-const.c (fold): Add cases for exp2, exp10 and pow10.
8863 (tree_expr_nonnegative_p): Likewise.
8864 * real.h (dconst3, dconst10, dconstthird): New.
8865
88662003-09-09 Jan Hubicka <jh@suse.cz>
8867
8868 * cgraphunit.c (cgraph_finalize_function): Fix handling of extern
8869 inline functions.
8870 (cgraph_finalize_compilation_unit): Fix crash when dealing with lost
8871 DECL_SAVED_TREE.
8872
88732003-09-09 Roger Sayle <roger@eyesopen.com>
8874
8875 * builtins.c (fold_builtin_cabs): Protect the complex argument
8876 against multiple evaluation when optimizing cabs* into sqrt*.
8877
88782003-09-09 Jan Hubicka <jh@suse.cz>
8879
8880 * varasm.c (notice_global_symbol): Properly deal with weak symbols.
8881
88822003-09-08 Kelley Cook <kelleycook@wideopenwest.com>
8883
8884 * Makefile.in: Revert yesterday's change.
8885
88862003-09-08 Bernardo Innocenti <bernie@develer.com>
8887 Peter Barada <peter@baradas.org>
8888
8889 * config/m68k/coff.h (REGISTER_NAMES): Add fake register `argptr'
8890 * config/m68k/hp320.h (REGISTER_NAMES): Likewise.
8891 * config/m68k/linux.h (REGISTER_NAMES): Likewise.
8892 * config/m68k/m68kelf.h (REGISTER_NAMES): Likewise.
8893 * gcc/config/m68k/sgs.h (REGISTER_NAMES): Likewise.
8894 * config/m68k/m68k-protos.h (m68k_initial_elimination_offset): Add prototype.
8895 * config/m68k/m68k.c (m68k_frame): New struct, simular to ix86 back-end.
8896 (m68k_compute_frame_layout): New function.
8897 (m68k_initial_elimination_offset): New function.
8898 (m68k_output_function_prologue): ColdFire-specific movem handling.
8899 (m68k_output_function_epilogue): Likewise.
8900 * config/m68k/m68k.h (FIRST_PSEUDO_REGISTER): Make room for argptr reg.
8901 (ARG_POINTER_REGNUM): Add new definition.
8902 (INITIAL_FRAME_POINTER_OFFSET): Remove macro.
8903 (ELIMINABLE_REGS): Define new macro, like in ix86 back-end.
8904 (CAN_ELIMINATE): Likewise.
8905 (INITIAL_ELIMINATION_OFFSET): Likewise.
8906
89072003-09-08 Bernardo Innocenti <bernie@develer.com>
8908
8909 * config/m68k/m68k.c (m68k_output_function_prologue): Simplify
8910 by removing redundant variable cfa_store_offset.
8911
89122003-09-08 Mark Mitchell <mark@codesourcery.com>
8913
8914 * langhooks-def.h (lhd_register_builtin_type): New function.
8915 (LANG_HOOKS_REGISTER_BUILTIN_TYPE): New macro.
8916 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
8917 * langhooks.h (lang_hooks_for_types): Add register_builtin_type.
8918 * langhooks.c (lhd_register_builtin_type): New function.
8919 * c-common.h (c_register_builtin_type): Declare.
8920 * c-common.c (c_register_builtin_type): New function.
8921 * c-lang.c (LANG_HOOKS_REGISTER_BUILTIN_TYPE): Define to
8922 c_register_builtin_type.
8923 * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Remove __fpreg,
8924 __float80, and __float128 macros.
8925 * config/ia64/ia64.c (ia64_init_builtins): Create __fpreg,
8926 __float80, and __float128 types.
8927
89282003-09-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8929
8930 * builtin-types.def
8931 (BT_FN_COMPLEX_LONGDOUBLE_COMPLEX_LONGDOUBLE_COMPLEX_LONGDOUBLE,
8932 BT_FN_COMPLEX_DOUBLE_COMPLEX_DOUBLE_COMPLEX_DOUBLE,
8933 BT_FN_COMPLEX_FLOAT_COMPLEX_FLOAT_COMPLEX_FLOAT): New.
8934 * builtins.def (BUILT_IN_CACOS, BUILT_IN_CACOSF, BUILT_IN_CACOSH,
8935 BUILT_IN_CACOSHF, BUILT_IN_CACOSHL, BUILT_IN_CACOSL,
8936 BUILT_IN_CARG, BUILT_IN_CARGF, BUILT_IN_CARGL, BUILT_IN_CASIN,
8937 BUILT_IN_CASINF, BUILT_IN_CASINH, BUILT_IN_CASINHF,
8938 BUILT_IN_CASINHL, BUILT_IN_CASINL, BUILT_IN_CATAN,
8939 BUILT_IN_CATANF, BUILT_IN_CATANH, BUILT_IN_CATANHF,
8940 BUILT_IN_CATANHL, BUILT_IN_CATANL, BUILT_IN_CCOS, BUILT_IN_CCOSF,
8941 BUILT_IN_CCOSH, BUILT_IN_CCOSHF, BUILT_IN_CCOSHL, BUILT_IN_CCOSL,
8942 BUILT_IN_CEXP, BUILT_IN_CEXPF, BUILT_IN_CEXPL, BUILT_IN_CPOW,
8943 BUILT_IN_CPOWF, BUILT_IN_CPOWL, BUILT_IN_CPROJ, BUILT_IN_CPROJF,
8944 BUILT_IN_CPROJL, BUILT_IN_CSIN, BUILT_IN_CSINF, BUILT_IN_CSINH,
8945 BUILT_IN_CSINHF, BUILT_IN_CSINHL, BUILT_IN_CSINL, BUILT_IN_CSQRT,
8946 BUILT_IN_CSQRTF, BUILT_IN_CSQRTL, BUILT_IN_CTAN, BUILT_IN_CTANF,
8947 BUILT_IN_CTANH, BUILT_IN_CTANHF, BUILT_IN_CTANHL, BUILT_IN_CTANL):
8948 New.
8949 * doc/extend.texi: Document new builtins.
8950
89512003-09-09 Jan Hubicka <jh@suse.cz>
8952
8953 * cgraph.c (cgraph_varpool_finalize_decl): Sanity check duplicated
8954 finalization.
8955 * cgraphunit.c (decide_is_fnction_needed): Avoid special case of nested
8956 functions, check for COMDAT.
8957 (cgraph_assemble_pending_functions): Break out from...
8958 (cgraph_finalize_function): ... here; allow redefinig of extern inline
8959 functions.
8960 (record_call_1): Record function references only in non-unit-at-a-time
8961 mode.
8962 (cgraph_analyze_function): Reset current_function_decl.
8963 (cgraph_finalize_compilation_unit): Assemble pending functions.
8964
89652003-09-08 Mark Mitchell <mark@codesourcery.com>
8966
8967 * mklibgcc.in (libcc.a): Depend on stmp-dirs.
8968 (libgov.a): Likewise.
8969 (libgcc_eh.a): Likewise.
8970
89712003-09-08 Roger Sayle <roger@eyesopen.com>
8972
8973 * fold-const.c (operand_equal_p): Clarify documentation.
8974
89752003-09-08 Richard Henderson <rth@redhat.com>
8976
8977 * c-decl.c (c_expand_body_1): Push and pop function context here.
8978 * tree-optimize.c (tree_rest_of_compilation): ... not here. Take
8979 nested argument instead of computing nesting ourselves.
8980
89812003-09-08 Jakub Jelinek <jakub@redhat.com>
8982
8983 * toplev.c (rest_of_handle_stack_regs): Call split_all_insns before
8984 regstack if optimizing but not scheduling after reload.
8985
89862003-09-08 Jakub Jelinek <jakub@redhat.com>
8987
8988 * config/sparc/sparc.c (struct machine_function): New type.
8989 (TARGET_HAVE_TLS, TARGET_CANNOT_FORCE_CONST_MEM): Define.
8990 (sparc_override_options): Initialize init_machine_status.
8991 (tls_symbolic_operand, tgd_symbolic_operand, tld_symbolic_operand,
8992 tie_symbolic_operand, tle_symbolic_operand): New functions.
8993 (symbolic_operand): Disallow tls_symbolic_operand.
8994 (symbolic_memory_operand): Likewise.
8995 (tls_call_delay, sparc_cannot_force_const_mem, legitimate_constant_p,
8996 constant_address_p, legitimate_pic_operand_p, legitimate_address_p):
8997 New functions.
8998 (sparc_tls_symbol): New variable.
8999 (sparc_tls_get_addr, sparc_tls_got, legitimize_tls_address,
9000 legitimize_address): New functions.
9001 (print_operand): Handle %&.
9002 (sparc_init_machine_status, get_some_local_dynamic_name,
9003 get_some_local_dynamic_name_1): New functions.
9004 (sparc_output_dwarf_dtprel): New function.
9005 * config/sparc/sparc.h (CONSTANT_ADDRESS_P): Moved into
9006 constant_address_p.
9007 (LEGITIMATE_PIC_OPERAND_P): Moved into legitimate_pic_operand_p.
9008 (LEGITIMATE_CONSTANT_P): Moved into legitimate_constant_p.
9009 (GO_IF_LEGITIMATE_ADDRESS): Moved into legitimate_address_p.
9010 (LEGITIMIZE_ADDRESS): Moved into legitimize_address.
9011 (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
9012 (TARGET_TLS, TARGET_SUN_TLS, TARGET_GNU_TLS): Define.
9013 (ASM_OUTPUT_DWARF_DTPREL): Define.
9014 (PREDICATE_CODES): Add tgd_symbolic_operand, tld_symbolic_operand,
9015 tie_symbolic_operand, tle_symbolic_operand.
9016 * config/sparc/sparc.md (UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_TLSLDO,
9017 UNSPEC_TLSIE, UNSPEC_TLSLE, UNSPEC_TLSLD_BASE): New constants.
9018 (tls_call_delay): New attribute.
9019 (in_call_delay): Use it.
9020 (movqi, movhi, movsi, movdi): Call legitimize_tls_address if needed.
9021 (tgd_hi22, tgd_lo10, tgd_add32, tgd_add64, tgd_call32, tgd_call64,
9022 tldm_hi22, tldm_lo10, tldm_add32, tldm_add64, tldm_call32, tldm_call64,
9023 tldo_hix22, tldo_lox10, tldo_add32, tldo_add64, tie_hi22, tie_lo10,
9024 tie_ld32, tie_ld64, tie_add32, tie_add64, tle_hix22_sp32,
9025 tle_lox10_sp32, tle_hix22_sp64, tle_lox10_sp64): New insns.
9026 (tldo_ldub_sp32, tldo_ldub1_sp32, tldo_ldub2_sp32, tldo_ldsb1_sp32,
9027 tldo_ldsb2_sp32, tldo_ldub_sp64, tldo_ldub1_sp64, tldo_ldub2_sp64,
9028 tldo_ldub3_sp64, tldo_ldsb1_sp64, tldo_ldsb2_sp64, tldo_ldsb3_sp64,
9029 tldo_lduh_sp32, tldo_lduh1_sp32, tldo_ldsh1_sp32, tldo_lduh_sp64,
9030 tldo_lduh1_sp64, tldo_lduh2_sp64, tldo_ldsh1_sp64, tldo_ldsh2_sp64,
9031 tldo_lduw_sp32, tldo_lduw_sp64, tldo_lduw1_sp64, tldo_ldsw1_sp64,
9032 tldo_ldx_sp64, tldo_stb_sp32, tldo_stb_sp64, tldo_sth_sp32,
9033 tldo_sth_sp64, tldo_stw_sp32, tldo_stw_sp64, tldo_stx_sp64): New
9034 insns.
9035 * config/sparc/sparc-protos.h (legitimate_constant_p,
9036 constant_address_p, legitimate_pic_operand_p, legitimate_address_p,
9037 legitimize_tls_address, legitimize_address, tls_symbolic_operand,
9038 tls_call_delay, sparc_output_dwarf_dtprel): New prototypes.
9039 * config/sparc/linux.h (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
9040 * config/sparc/linux64.h (TARGET_GNU_TLS, TARGET_SUN_TLS): Likewise.
9041 * configure.in (sparc*-*-*): Add TLS check.
9042 * configure: Rebuilt.
9043
90442003-09-07 Eric Botcazou <ebotcazou@libertysurf.fr>
9045
9046 PR target/11689
9047 * config/i386/i386.c (memory_address_length): Fix computation when
9048 the base is esp or ebp.
9049
90502003-09-07 Mark Mitchell <mark@codesourcery.com>
9051
9052 PR c++/11852
9053 * varasm.c (initializer_constant_valid_p): Correct logic for
9054 CONSTRUCTORs.
9055
90562003-09-07 Roger Sayle <roger@eyesopen.com>
9057
9058 * expr.c (expand_operands): New function to expand an operand pair.
9059 (expand_expr): Call expand_operands whenever we need to expand both
9060 operands of a binary operator.
9061 (do_store_flag): Likewise for operands of comparison operations.
9062
90632003-09-07 Roger Sayle <roger@eyesopen.com>
9064
9065 * combine.c (combine_simplify_rtx): Don't convert -(A*B) into
9066 (-A)*B if we care about sign-dependent rounding.
9067
90682003-09-07 Gabriel Dos Reis <gcc@integrable-solutions.net>
9069
9070 * c-pretty-print.h (pp_c_left_brace): Declare.
9071 (pp_c_right_brace): Likewise.
9072 * c-pretty-print.c (pp_c_left_brace): Now a function
9073 (pp_c_right_brace): Likewise.
9074
90752003-09-07 Jan Hubicka <jh@suse.cz>
9076
9077 * cfgcleanup.c (try_simplify_condjump): Fix again the preivous patch.
9078
90792003-09-07 Gabriel Dos Reis <gdr@integrable-solutions.net>
9080
9081 * diagnostic.c (warn_deprecated_use): Move to toplev.c
9082
90832003-09-07 Gabriel Dos Reis <gdr@integrable-solutions.net>
9084
9085 * langhooks.c (lhd_print_error_function): Move from diagnostic.c.
9086 * Makefile.in (langhooks.o): Depend on diagnostic.h
9087
90882003-09-06 James E Wilson <wilson@tuliptree.org>
9089
9090 * loop.c (loop_regs_update): Delete else clause for PATTERN rtx and
9091 simplify.
9092
90932003-09-07 Kelley Cook <kelleycook@wideopenwest.com>
9094
9095 * Makefile.in: Define $REMAKE to be $MAKE with LANGUAGES & BOOT_CFLAGS
9096 and use it throughout.
9097
90982003-09-07 Jan Hubicka <jh@suse.cz>
9099
9100 * cfgcleanup.c (try_simplify_condjump): Fix my previous patch.
9101
9102 * toplev.c (rest_of_decl_compilation): Do not finalize external
9103 virables.
9104
9105 * cgraph.c (cgraph_mark_reachable_node): Only enqueue finalized
9106 functions.
9107 (cgraph_varpool_finalize_decl): Notice global symbol when needed.
9108
91092003-09-06 Jan Hubicka <jh@suse.cz>
9110
9111 PR target/12070
9112 * calls.c (emit_library_call_value_1): Fix saving of BLKmode arguments.
9113
9114 PR opt/12082
9115 * cfgcleanup.c (try_simplify_condjump): Avoid unreachable code warning.
9116
91172003-09-06 Gabriel Dos Reis <gdr@integrable-solutions.net>
9118
9119 * diagnostic.c (announce_function): Move to toplev.c.
9120
91212003-09-06 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9122
9123 * gcse.c (expr_equiv_p): Don't consider anything to be equal to
9124 volatile mem.
9125
91262003-09-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9127
9128 * ggc-common.c (init_ggc_heuristics): Don't use the heuristics
9129 when gc checking is enabled.
9130
91312003-09-06 Steven Bosscher <steven@gcc.gnu.org>
9132
9133 PR c/9862
9134 * c-decl.c (c_expand_body_1): Move return warning from here...
9135 (finish_function): ...to here.
9136
91372003-09-05 Geoffrey Keating <geoffk@apple.com>
9138
9139 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Always return
9140 a subset of the input class.
9141
91422003-09-05 Kazu Hirata <kazu@cs.umass.edu>
9143
9144 * config/i860/i860.c: Follow spelling conventions.
9145 * config/i860/i860.h: Likewise.
9146 * config/sh/sh.h: Likewise.
9147
91482003-09-05 Nitin Yewale <NitinY@KPITCummins.com>
9149
9150 * config/h8300/h8300-protos.h: Declare h8300_hard_regno_rename_ok
9151 * config/h8300/h8300.h (HARD_REGNO_RENAME_OK): New.
9152 * config/h8300/h8300.c (h8300_hard_regno_rename_ok): New.
9153
91542003-09-05 Roger Sayle <roger@eyesopen.com>
9155 Richard Henderson <rth@redhat.com>
9156
9157 PR optimization/1823
9158 * expmed.c (expand_divmod <EXACT_DIV_EXPR>): Use an unsigned
9159 multiplication to implement division by constant integer.
9160
91612003-09-05 Jan Hubicka <jh@suse.cz>
9162
9163 * opts.c (decode_options): Enable unit-at-a-time at -O2.
9164 * params.def (max-inline-insns-single): Set to 500
9165 (max-inline-insns-auto): Set to 150
9166 * invoke.texi (max-inline-insns-single, max-inline-insns-auto): Update.
9167
91682003-09-04 Richard Henderson <rth@redhat.com>
9169
9170 * cgraph.c (cgraph_mark_reachable_node): Split out from ...
9171 (cgraph_mark_needed_node): Remove needed argument.
9172 * cgraph.h: Update to match.
9173 * cgraphunit.c (decide_is_function_needed): Split out from ...
9174 (cgraph_finalize_function): Reorg. Avoid deferred_inline_function
9175 if we generated the function.
9176 (record_call_1): Update for cgraph_mark_reachable_node.
9177 * varasm.c (mark_referenced): Likewise.
9178 * objc/objc-act.c (mark_referenced_methods): Likewise.
9179
91802003-09-04 DJ Delorie <dj@redhat.com>
9181
9182 * targhooks.c: Add comment explaining the migration process.
9183
91842003-09-04 Eric Christopher <echristo@redhat.com>
9185
9186 * config/frv/t-frv: Fix path for frv-abi.h.
9187 * config/frv/frv-asm.h: Fix string concatenation.
9188
91892003-09-04 DJ Delorie <dj@redhat.com>
9190
9191 * builtins.c (apply_args_size): Guard against a NULL cfun.
9192 (expand_builtin_apply_args_1): Likewise.
9193 (expand_builtin_apply): Likewise.
9194 Fixes PR bootstrap/12172.
9195
91962003-09-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9197
9198 * configure.in (gcc_cv_as_ix86_cmov_sun_syntax): Check if
9199 assembler supports Sun syntax for cmov.
9200 * configure: Regenerate.
9201 * config.in: Likewise.
9202 * config/i386/i386.c: Rename CMOV_SUN_AS_SYNTAX to
9203 HAVE_AS_IX86_CMOV_SUN_SYNTAX.
9204 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Remove.
9205 Fixes PR target/12101.
9206
92072003-09-04 Matt Austern <austern@apple.com>
9208
9209 * c-common.c (fname_as_string): Use lang_hooks.decl_printable_name
9210 with verbosity 0, instead of DECL_NAME, for human-readable string.
9211
92122003-09-04 Eric Christopher <echristo@redhat.com>
9213
9214 * targhooks.c (default_return_in_memory): Allow
9215 unconverted ports.
9216
92172003-09-04 Eric Christopher <echristo@redhat.com>
9218
9219 * targhooks.c (default_return_in_memory): Fix typo
9220 in last checkin.
9221
92222003-09-04 Eric Christopher <echristo@redhat.com>
9223
9224 * targhooks.c (default_return_in_memory): Fix default
9225 definition.
9226
92272003-09-04 Bernardo Innocenti <bernie@develer.com>
9228
9229 * config/m68k/m68k.c (m68k_coff_asm_named_section): Restore
9230 deleted function.
9231 * config/m68k/coff.h (M68K_TARGET_COFF): Add flag used to
9232 enable coff-only code in m68k.c.
9233
92342003-09-04 Nick Clifton <nickc@redhat.com>
9235
9236 * config.gcc: Add v850e1 target. Allow --with-cpu to accept
9237 v850e1.
9238 * config/v850/v850.h: Accept v850e1 as a default CPU.
9239 Accept -mv850e1 as a command line option.
9240 * doc/invoke.texi: Document new -mv850e1 command line switch.
9241 * config/v850/t-v850: Treat -mv850e1 as a multilib alias for
9242 -mv850e.
9243
92442003-09-04 Nick Clifton <nickc@redhat.com>
9245
9246 * config.gcc (v850e-*-*): Use t-v850e makefile fragment.
9247 * config/v850/t-v850: Only produce one extra multilib - for
9248 the v850e.
9249 * config/v850/t-v850e: New file: Only produce one extra
9250 multilib - for the v850.
9251
92522003-09-04 Jakub Jelinek <jakub@redhat.com>
9253
9254 * config/ia64/libgcc-ia64.ver: Export _Unwind_GetBSP@@GCC_3.3.2.
9255 * config/ia64/unwind-ia64.c (_Unwind_GetBSP): New function.
9256 * unwind.h (_Unwind_GetBSP): New prototype.
9257 * libgcc-std.ver: Add empty GCC_3.3.2 version.
9258 * mkmap-symver.awk: For symbol versions with no exported symbols,
9259 don't put anything into version script, just change all symbol
9260 versions which inherit from it to inherit from its ancestor.
9261
92622003-09-04 Eric Christopher <echristo@redhat.com>
9263
9264 * config/mips/mips.c (mips_expand_prologue): Convert to
9265 calls.struct_value_rtx hook.
9266 (reg_or_const_float_1_operand): New.
9267 * config/mips/mips.h: Update Comments.
9268 (mips_arg): Add reg_or_const_float_1_operand.
9269 * config/mips/mips.md (divdf3); Convert to expander.
9270 (divsf3): Ditto.
9271 (*divdf3): New pattern.
9272 (*divsf3): Ditto.
9273
92742003-09-04 Jan Hubicka <jh@suse.cz>
9275
9276 * toplev.c (wrapup_global_declarations): Fix final pass in
9277 unit-at-atime mode.
9278
92792003-09-04 Mark Mitchell <mark@codesourcery.com>
9280
9281 * doc/extend.texi: Document removal of cast-as-lvalue extension in
9282 C++.
9283
92842003-09-04 Nicolas Roche <roche@act-europe.fr>
9285
9286 * gcc.c (process_command): Fix typo.
9287
92882003-09-03 David O'Brien <obrien@FreeBSD.org>
9289
9290 optimization/11980
9291 * config/i386/freebsd.h (SIZE_TYPE): Support TARGET_64BIT.
9292 (PTRDIFF_TYPE): Likewise.
9293 (WCHAR_TYPE_SIZE): Likewise.
9294
92952003-09-03 DJ Delorie <dj@redhat.com>
9296
9297 * targhooks.c: New file.
9298 * targhooks.h: New file.
9299 * Makefile.in: Add targhooks.o support.
9300 (function.o): Depend on$(TARGET_H).
9301 (stmt.o): Likewise.
9302 (combine.o): Depend on $(TREE_H) and $(TARGET_H).
9303 * builtins.c (apply_args_size, expand_builtin_apply_args_1,
9304 expand_builtin_apply): Convert to calls.struct_value_rtx hook.
9305 (expand_builtin_saveregs): Convert to
9306 calls.expand_builtin_saveregs hook.
9307 * c-decl.c (start_decl): Handle new calls.promote_prototypes hook
9308 here, instead of ...
9309 (get_parm_info) ... here.
9310 (store_parm_decls_oldstyle): Convert to calls.promote_prototypes
9311 hook.
9312 (finish_function): Handle calls.promote_prototypes hook here too.
9313 * c-typeck.c (convert_arguments): Convert to
9314 calls.promote_prototypes hook.
9315 (c_convert_parm_for_inlining): Likewise.
9316 * calls.c (initialize_argument_information): Convert to
9317 calls.promote_function_args hook.
9318 (expand_call): Convert to calls.struct_value_rtx,
9319 calls.strict_argument_naming,
9320 calls.pretend_outgoing_varargs_named, and
9321 calls.promote_function_return hooks. Pass fndecl to
9322 aggregate_value_p. Initialize CUMULATIVE_ARGS before calling
9323 hooks, so they can use that.
9324 (emit_library_call_value_1): Likewise.
9325 * combine.c (setup_incoming_promotions): Convert to
9326 calls.promote_function_args hook.
9327 * emit-rtl.c: Convert to calls.struct_value_rtx hook.
9328 * expr.c (expand_assignment): Pass call to aggregate_value_p.
9329 (expand_expr): Likewise.
9330 * expr.h: Remove support for SETUP_INCOMING_VARARGS,
9331 STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED,
9332 RETURN_IN_MEMORY macro defaults.
9333 * final.c (profile_function): Convert to calls.struct_value_rtx
9334 hook.
9335 * function.c (aggregate_value_p): Accept function type tree as
9336 second parameter; try to deduce fntype from it. Convert to
9337 calls.return_in_memory hook.
9338 (assign_parms): Convert to calls.setup_incoming_varargs,
9339 calls.strict_argument_naming, calls.promote_function_args,
9340 calls.pretend_outgoing_varargs_named hooks. Pass fndecl to
9341 aggregate_value_p.
9342 (expand_function_start): Likewise. Convert to
9343 calls.struct_value_rtx hook.
9344 (expand_function_end): Convert to calls.promote_function_return hook.
9345 (allocate_struct_function): Pass fndecl to aggregate_value_p.
9346 * hard-reg-set.h: Update comments to new hook names.
9347 * integrate.c (expand_inline_function): Pass fndecl to aggregate_value_p.
9348 * reg-stack.c (stack_result): Likewise.
9349 * rtl.h (struct_value_rtx, struct_value_incoming_rtx): Delete.
9350 * stmt.c (expand_value_return): Convert to
9351 calls.promote_function_return hook.
9352 * target-def.h: Add TARGET_PROMOTE_FUNCTION_ARGS,
9353 TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES,
9354 TARGET_STRUCT_VALUE_RTX, TARGET_RETURN_IN_MEMORY,
9355 TARGET_EXPAND_BUILTIN_SAVEREGS, TARGET_SETUP_INCOMING_VARARGS,
9356 TARGET_STRICT_ARGUMENT_NAMING,
9357 TARGET_PRETEND_OUTGOING_VARARGS_NAMED, and TARGET_CALLS.
9358 * target.h: Likewise.
9359 * tree.h (aggregate_value_p): Also takes a tree to deduce function
9360 attributes from (for target hooks).
9361 * doc/tm.texi (PROMOTE_FUNCTION_ARGS, PROMOTE_FUNCTION_RETURN,
9362 PROMOTE_PROTOTYPES, RETURN_IN_MEMORY, STRUCT_VALUE_REGNUM,
9363 STRUCT_VALUE, STRUCT_VALUE_INCOMING_REGNUM, STRUCT_VALUE_INCOMING,
9364 EXPAND_BUILTIN_SAVEREGS, SETUP_INCOMING_VARARGS,
9365 STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED): Convert
9366 to hooks.
9367
9368 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Pass function
9369 to aggregate_value_p.
9370 * config/arm/arm.c (arm_init_cumulative_args,
9371 arm_output_mi_thunk): Likewise.
9372 * config/i386/i386.c (ix86_return_pops_args, x86_this_parameter):
9373 Likewise.
9374 * config/mips/mips.c (mips_save_reg_p, mips_expand_prologue,
9375 mips_can_use_return_insn): Likewise.
9376 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
9377 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
9378 * config/sparc/sparc.c (sparc_output_mi_thunk): Pass function to
9379 aggregate_value_p.
9380 * config/story16/stormy16.c (xstormy16_asm_output_mi_thunk): Pass
9381 function to aggregate_value_p.
9382 * objc/objc-act.c (generate_struct_by_value_array): Pass NULL to
9383 aggregate_value_p.
9384
9385 * config/sh/sh-protos.h (sh_builtin_saveregs): Remove.
9386 (sh_attr_renesas_p, sh_cfun_attr_renesas_p, sh_function_arg,
9387 sh_function_arg_advance, sh_pass_in_reg_p): New. * config/sh/sh.c
9388 (sh_handle_renesas_attribute, sh_promote_prototypes,
9389 sh_struct_value_rtx, sh_return_in_memory, sh_builtin_saveregs,
9390 sh_setup_incoming_varargs, sh_strict_argument_naming,
9391 sh_pretend_outgoing_varargs_named): New decls.
9392 (targetm): Add new hooks.
9393 (calc_live_regs): Save MACL and MACH if the function has the
9394 renesas attribute.
9395 (sh_expand_prologue): Support renesas attribute.
9396 (sh_builtin_saveregs): Make static.
9397 (sh_build_va_list): Support renesas attribute.
9398 (sh_va_start): Likewise.
9399 (sh_va_arg): Likewise.
9400 (sh_promote_prototypes): New.
9401 (sh_function_arg): New, moved from sh.h. Support renesas
9402 attribute.
9403 (sh_function_arg_advance): Likewise.
9404 (sh_return_in_memory): Likewise.
9405 (sh_strict_argument_naming): Likewise.
9406 (sh_pretend_outgoing_varargs_named): Likewise.
9407 (sh_struct_value_rtx): New.
9408 (sh_attribute): Add renesas attribute.
9409 (sh_handle_renesas_attribute): New.
9410 (sh_attr_renesas_p, sh_cfun_attr_renesas_p): New.
9411 (sh_ms_bitfield_layout_p): Support renesas attribute also.
9412 (sh_output_mi_thunk): Pass function to aggregate_value_p. *
9413 config/sh/sh.h (TARGET_SWITCHES): Add -mrenesas as an alias for
9414 -mhitachi.
9415 (STRUCT_VALUE_REGNUM, STRUCT_VALUE, RETURN_IN_MEMORY): Moved to
9416 target hooks.
9417 (sh_args): Add renesas_abi flag.
9418 (INIT_CUMULATIVE_ARGS): Set it. Pass fndecl to aggregate_value_p.
9419 (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Move to sh.c.
9420 (PASS_IN_REG_P): Support renesas attribute. Pass DF and TF on the
9421 stack for the renesas abi.
9422 (STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED,
9423 SETUP_INCOMING_VARARGS, EXPAND_BUILTIN_SAVEREGS,
9424 PROMOTE_PROTOTYPES): Moved to sh.c. * config/sh/sh.md (call): Set
9425 call cookie to indicate renesas calls.
9426
94272003-09-03 Mostafa Hagog <mustafa@il.ibm.com>
9428
9429 * gcse.c (replace_one_set): New function.
9430 (pre_insert_copy_insn): Change the order of copying
9431 to make copy propagation discover additional PRE opportunities.
9432
94332003-09-03 Roger Sayle <roger@eyesopen.com>
9434
9435 PR optimization/11700.
9436 * simplify-rtx.c (simplify_subreg): Check that the subreg offset
9437 of a hard register is representable before trying to simplify it
9438 using subreg_hard_regno.
9439
94402003-09-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9441
9442 * configure.in (gcc_cv_ld_hidden): Disable unless using GNU ld.
9443 * configure: Regenerate.
9444
94452003-09-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9446
9447 * intl.h (N_): Remove parentheses.
9448
94492003-09-03 Bernardo Innocenti <bernie@develer.com>
9450
9451 * config.gcc (m68k-*-linux*): Remove definition of LINUX_DEFAULT_ELF.
9452 * config/i370/linux.h (LINUX_DEFAULT_ELF): Remove unconditional
9453 definition and code blocks compiled when not defined.
9454 * config/i386/linux.h (LINUX_DEFAULT_ELF): Likewise.
9455 * config/i386/linux64.h (LINUX_DEFAULT_ELF): Likewise.
9456 * config/sparc/linux.h: (LINUX_DEFAULT_ELF): Likewise.
9457 * config/sparc/linux64.h: (LINUX_DEFAULT_ELF): Likewise.
9458
94592003-09-03 Jeff Sturm <jsturm@one-point.com>
9460
9461 * cgraphunit.c (visited_nodes): New static variable.
9462 (record_call_1): Use walk_tree with visited_nodes.
9463 (cgraph_create_edges): Use walk_tree with visited_nodes.
9464 Setup/teardown visited_nodes hashtable.
9465
94662003-09-03 Roger Sayle <roger@eyesopen.com>
9467
9468 * toplev.c (flag_rounding_math): New global variable.
9469 (f_options): Add to the list of language independent options.
9470 * flags.h (flag_rounding_math): Prototype here.
9471 (HONOR_SIGN_DEPENDENT_ROUNDING): Use flag_rounding_math instead.
9472 * common.opt (frounding-math): New common command line option.
9473 * opts.c (common_handle_option): Handle OPT_frounding_math.
9474 (set_fast_math_flags): -ffast-math clears flag_rounding_math.
9475
9476 * doc/invoke.texi: Document this new command line option.
9477
94782003-09-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9479
9480 * config/sol2.h (NO_IMPLICIT_EXTERN_C): Update comment.
9481
94822003-09-03 Jan Hubicka <jh@suse.cz>
9483
9484 * Makefile.in (c-objc-common.o): Kill gt-c-objc-common.h dependency.
9485 * c-decl.c (finish_function): Kill arguments, always use cgraph path.
9486 * c-objc-common.c: Kill include of gt-c-objc-common.h
9487 (expand_deferred_fns, deffer_fn): Kill function.
9488 (deferred_fns): Kill variable.
9489 (finish_cdtor): Update finish_function call.
9490 (c_objc_common_finish_file): Always call cgraph code.
9491 * c-parse.c: Regenerate.
9492 * c-parse.y: Regenerate.
9493 * c-tree.h (finish_function): Update prototype.
9494 * objc-acct.c (build_module_descriptor, finish_method_def):
9495 Update call of finish_function.
9496 * cgraphunit.c (cgraph_default_inline_p, cgraph_analyze_function): Add
9497 forward prototype.
9498 (cgraph_finalize_function): In non-unit-at-a-time mode analyze the
9499 function and assemble it if needed.
9500 (cgraph_finalize_compilation_unit): Do nothing in non-unit-at-a-time
9501 mode.
9502 (cgraph_optimize): Likewise.
9503 (cgraph_expand_function): In non-unit-at-a-time mode keep function body
9504 even when it has no inline callees.
9505 * c-parse.in: Update calls to finish_function.
9506
95072003-09-03 Nick Clifton <nickc@redhat.com>
9508
9509 * config/arm/arm.h: Handle TARGET_CPU_iwmmxt.
9510 Use #error to generate the message if TARGET_DEFAULT is not
9511 recognised.
9512
95132003-09-03 Richard Sandiford <rsandifo@redhat.com>
9514
9515 * config/mips/mips.h (MASK_UNUSED1): Remove.
9516 (MASK_XGOT, TARGET_XGOT): Define.
9517 (TARGET_SWITCHES): Add an entry for -mxgot.
9518 (ASM_SPEC): Map -mxgot to -xgot.
9519 * config/mips/mips.c (mips_symbol_insns): Use TARGET_XGOT to decide
9520 whether we're using a big-GOT sequences.
9521 (mips_legitimize_const_move, mips_expand_call): Likewise.
9522 (override_options): Revert 2003-01-09 change.
9523 * doc/invoke.texi: Document -mxgot.
9524
95252003-09-02 Jason Merrill <jason@redhat.com>
9526
9527 * config/sol2.h (NO_IMPLICIT_EXTERN_C): Define here.
9528 * config/sparc/sol2.h: Not here.
9529
95302003-09-02 Roger Sayle <roger@eyesopen.com>
9531
9532 * expr.c (expand_expr): The code following both_summands performs
9533 the same task as simplify_gen_binary. Replace all gotos to
9534 both_summands with a call to simplify_gen_binary and delete the
9535 now unused label.
9536
95372003-09-02 Jason Merrill <jason@redhat.com>
9538
9539 PR c++/7327
9540 * config/sparc/sol2.h (NO_IMPLICIT_EXTERN_C): Define.
9541
95422003-09-02 Jeff Sturm <jsturm@one-point.com>
9543
9544 * cgraphunit.c (record_call_1): Use walk_tree_without_duplicates.
9545 (cgraph_optimize_function): Set current_function_decl to the
9546 fndecl we're integrating from.
9547
95482003-09-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9549
9550 * builtins.def: Break out _Complex math functions into their
9551 own category.
9552
95532003-09-02 Andreas Jaeger <aj@suse.de>
9554
9555 * langhooks-def.h (LANG_HOOKS_RTL_EXPAND_STMT): Cast properly.
9556
95572003-09-02 Josef Zlomek <zlomekj@suse.cz>
9558
9559 * cfgbuild.c (compute_outgoing_frequencies): Use NOTE instead of
9560 finding the note again.
9561
95622003-09-02 Nathanael Nerode <neroden@gcc.gnu.org>
9563
9564 * config.gcc: Remove host-specific rewrites of target_alias.
9565
95662003-09-01 Mark Mitchell <mark@codesourcery.com>
9567
9568 * Makefile.in (genprogs): Fix typo.
9569
9570 * Makefile.in (gencheck.o): Remove build commands.
9571 (dummy-conditions.o): Likewise.
9572 (read-rtl.o): Likewise.
9573 (gensupport.o): Likewise.
9574 (genconfig$(build_exeext)): Remove rule.
9575 (genconfig.o): Remove build commands.
9576 (genflags$(build_exeext)): Remove rule.
9577 (genflags.o): Remove build commands.
9578 (gencodes$(build_exeext)): Remove rule.
9579 (gencodes.o): Remove build commands.
9580 (genconstants.o): Remove build commands.
9581 (genemit$(build_exeext)): Remove rule.
9582 (genemit.o): Remove build commands.
9583 (genrecog$(build_exeext)): Remove rule.
9584 (genrecog.o): Remove build commands.
9585 (genextract$(build_exeext)): Remove rule.
9586 (genextract.o): Remove build commands.
9587 (genpeep$(build_exeext)): Remove rule.
9588 (genpeep.o): Remove build commands.
9589 (genattr$(build_exeext)): Remove rule.
9590 (genattr.o): Remove build commands.
9591 (genprognames): New variable.
9592 (genprogs): Likewise.
9593 (genobjs): Likewise.
9594 (genprogs): New rule.
9595 (genobjs): Likewise.
9596 (genattrtab.o): Remove build commands.
9597 (genautomata.o): Likewise.
9598 (genoutput$(build_exeext)): Remove rule.
9599 (genoutput.o): Remove build commands.
9600 (gengenrtl.o): Likewise.
9601 (genpreds.o): Likewise.
9602 (gengtype.o): Likewise.
9603 (genconditions.o): Likewise.
9604 (gen-protos.o): Likewise.
9605 (scan.o): Likewise.
9606 (fix-header.o): Likewise.
9607 (scan-decls.o): Likewise.
9608 (check-g++): Combine with other check targets.
9609 (check-gcc): Likewise.
9610 (check-g77): Likewise.
9611 (check-objc): Likewise.
9612
96132003-09-01 Nathanael Nerode <neroden@gcc.gnu.org>
9614
9615 * config.gcc: Remove host-specific stuff which is unused here
9616 since the introduction of config.host.
9617
9618 * doc/fragments.texi: Mention config.host.
9619 * doc/sourcebuild.texi: Mention config.host. Give brief descriptions
9620 of config.build, config.host, and config.gcc.
9621
96222003-09-01 Zack Weinberg <zack@codesourcery.com>
9623
9624 * c-decl.c (pushdecl): Don't put variables on
9625 C_TYPE_INCOMPLETE_VARS of a type unless that type is itself
9626 incomplete.
9627
96282003-09-01 Nathanael Nerode <neroden@gcc.gnu.org>
9629
9630 * config.host: New file.
9631 * config.gcc: Remove some host-specific stuff and some
9632 logic needed only for repeated invocation.
9633 * configure.in: Use config.host.
9634 * configure: Regenerate.
9635
96362003-09-01 Josef Zlomek <zlomekj@suse.cz>
9637
9638 * c-typeck.c (build_binary_op): Kill BIT_ANDTC_EXPR.
9639 * convert.c (convert_to_integer): Kill BIT_ANDTC_EXPR.
9640 * fold-const.c (int_const_binop): Kill BIT_ANDTC_EXPR.
9641 (fold): Kill BIT_ANDTC_EXPR and label bit_and.
9642 * tree.def (BIT_ANDTC_EXPR): Kill.
9643
96442003-08-31 Nathanael Nerode <neroden@gcc.gnu.org>
9645
9646 * configure.in: Remove uses of "for x in .. ${foo}" idiom.
9647 * configure: Regenerate.
9648
9649 * config.gcc: Remove references to install_headers_dir, now unused
9650 since introduction of config.build.
9651 * config.gcc (i860-*-sysv4*): Don't set unused USG, SVR3 defines.
9652
9653 * doc/fragments.texi, doc/sourcebuild.texi: Mention new file
9654 config.build.
9655
9656 * config.build: New file.
9657 * config.gcc: Remove some build-specific stuff.
9658 * configure.in: Use config.build.
9659 * configure: Regnerate.
9660
96612003-08-31 Steven Bosscher <steven@gcc.gnu.org>
9662 Roger Sayle <roger@eyesopen.com>
9663
9664 PR middle-end/11823
9665 * stmt.c (expand_end_case_type): Only use jump tables for dense
9666 switch statements when optimizing for size.
9667
96682003-08-31 Olivier Hainque <hainque@act-europe.fr>
9669
9670 * builtins.c (expand_builtin_setjmp): Use emit_jump to jump around
9671 the != 0 case, which ensures pending stack adjustments are flushed.
9672
96732003-08-30 Zack Weinberg <zack@codesourcery.com>
9674
9675 * configure.frag: Delete file.
9676 * configure.in: Rename the substitution variables
9677 dep_host_xmake_file and dep_tmake_file to xmake_file and
9678 tmake_file respectively. Do not expand $srcdir in the
9679 value of these; leave that for Make. Introduce a new
9680 substitution varaible, all_lang_makefrags, which lists
9681 subdirectory Make-lang.in files; exclude these from
9682 all_lang_makefiles, which is now only for subdirectory
9683 outputs. Do not invoke configure.frag. Do not set nor
9684 AC_SUBST_FILE target_overrides, host_overrides, or
9685 language_fragments. Create build subdirectories in
9686 config.status extra commands.
9687 * configure: Regenerate.
9688 * Makefile.in: Update substitutions to match changes to
9689 configure. Use include directives instead of @-insertions
9690 to read in host, target, and language fragments.
9691 (Makefile rule): Do not invoke configure.frag. Do not copy
9692 config.status to config.run before executing it. Set
9693 CONFIG_HEADERS and CONFIG_FILES so that only Makefile gets
9694 regenerated.
9695 (cstamp-h rule): Set CONFIG_FILES as well as CONFIG_HEADERS.
9696
96972003-08-30 Zack Weinberg <zack@codesourcery.com>
9698
9699 * c-tree.h: Delete COMPARE_DIFFERENT_TU from enumeration.
9700 * c-typeck.c (same_translation_unit_p): New function.
9701 (comptypes): Use it instead of flags parameter to identify
9702 structure types from different translation units.
9703 * c-decl.c (duplicate_decls): Always call comptypes with
9704 COMPTYPE_STRICT flags argument.
9705 (c_reset_state): Set BLOCK_SUPERCONTEXT of the block formed
9706 to file_scope_decl.
9707
97082003-08-30 Zack Weinberg <zack@codesourcery.com>
9709
9710 * c-tree.h (C_TYPE_INCOMPLETE_VARS): New macro.
9711 * c-decl.c (struct c_scope): Remove "incomplete" field.
9712 (pushdecl): Attach variables with incomplete types to
9713 the TYPE_MAIN_VARIANT of the incomplete type in question.
9714 (finish_struct): Look at C_TYPE_INCOMPLETE_VARS for variables
9715 to complete, not at current_scope->incomplete. All such
9716 variables do need completion.
9717
97182003-08-30 Richard Earnshaw <rearnsha@arm.com>
9719 Nicolas Pitre <nico@cam.org>
9720
9721 * arm/lib1funcs.asm (RETCOND): Delete.
9722 (RETLDM): New assembler macro. Use it for returning with ldm/ldr.
9723 (ARM_LDIV0, THUMB_LDIV0): Collapse multiple definitions.
9724 (__ARM_ARCH__): Move here from ieee754-?f.S.
9725 (RET, RETc): Clean up definitions.
9726 (DIV_FUNC_END): Renamed from FUNC_END. All uses changed.
9727 (FUNC_END): New macro that marks the end of any function.
9728 (ARM_FUNC_START): New macro that allows an assembler routine to be
9729 implemented in ARM code even if a Thumb-only build.
9730 Unconditionally include ieee754-?f.S.
9731 * arm/ieee754-df.S: Delete macros moved to lib1funcs.asm.
9732 Mark ends of functions.
9733 Split into separate conditionally-compiled units.
9734 Use RETLDM to return from routines.
9735 * arm/ieee754-sf.S: Similarly.
9736 * t-arm-elf (LIB1ASMFUNCS): Remove _ieee754_dp and _ieee754_sp.
9737 Add _negdf2 _addsubdf3 _muldivdf3 _cmpdf2 _unorddf2 _fixdfsi
9738 _truncdfsf2 _negsf2 _addsubsf3 _muldivsf3 _cmpsf2 _unordsf2
9739 _fixsfsi and _fixunssfsi.
9740
9741 * arm/ieee754-df.S (__muldf3): Fix bug when result of a
9742 multiplication underflows to zero.
9743 (__adddf3): Fix bug when using VFP ordering on little-endian
9744 processors.
9745 (__fixdfsi): Use rrx to extract the carry into a register instead of
9746 MRS instruction. Optimize later use of result.
9747 * arm/ieee754-sf.S (__fixsfsi): Likewise.
9748 (__fixunssfsi): Use a better sequence for handling negative-or-zero.
9749
97502003-08-29 Richard Henderson <rth@redhat.com>
9751
9752 * tree-optimize.c: New file.
9753 * Makefile.in (OBJS-archive): Add tree-optimize.o.
9754 (tree-optimize.o): New.
9755 * c-decl.c (store_parm_decls): Use allocate_struct_function.
9756 (finish_function): Don't free_after_parsing or free_after_compilation.
9757 (set_save_expr_context): Move to tree-optimize.c.
9758 (c_expand_body_1): Use tree_rest_of_compilation.
9759 * c-lang.c (LANG_HOOKS_RTL_EXPAND_STMT): New.
9760 * objc/objc-lang.c (LANG_HOOKS_RTL_EXPAND_STMT): New.
9761 * c-objc-common.c (expand_deferred_fns): Don't emit unused inlines;
9762 iterate until closure.
9763 * langhooks-def.h (LANG_HOOKS_RTL_EXPAND_START,
9764 LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_RTL_EXPAND_END): New.
9765 (LANG_HOOKS_RTL_EXPAND_INITIALIZER): New.
9766 * langhooks.h (struct lang_hooks_for_rtl_expansion): New.
9767 * toplev.h (tree_rest_of_compilation): Declare it.
9768
97692003-08-29 Richard Henderson <rth@redhat.com>
9770
9771 * function.h (struct function): Add rtl_inline_init, saved_for_inline.
9772 * integrate.c (save_for_inline): Set saved_for_inline.
9773 * c-semantics.c (genrtl_scope_stmt): Check it.
9774 * toplev.c (wrapup_global_declarations): Check it.
9775 (rest_of_handle_inlining): Set and check rtl_inline_init.
9776 (rest_of_compilation): Remove out of date comment.
9777
97782003-08-29 Richard Henderson <rth@redhat.com>
9779
9780 * function.c (allocate_struct_function): New, split out of ...
9781 (prepare_function_start, init_function_start): ... here.
9782 * expr.c (init_expr): Use ggc_alloc_cleared.
9783 * stmt.c (init_stmt_for_function): Likewise.
9784 * tree.h (allocate_struct_function): Declare.
9785
97862003-08-29 Nathanael Nerode <neroden@gcc.gnu.org>
9787
9788 * config.gcc: Don't use negated character class in shell case
9789 clause.
9790
97912003-08-29 Richard Henderson <rth@redhat.com>
9792
9793 * function.h (struct function): Move function_frequency and
9794 max_jumptable_ents before start of bit field members.
9795
97962003-08-29 Richard Henderson <rth@redhat.com>
9797
9798 * builtins.c (expand_builtin_constant_p): Check cse_not_expected here,
9799 (fold_builtin_constant_p) ... not here.
9800
98012003-08-29 Richard Henderson <rth@redhat.com>
9802
9803 * c-tree.h (C_DECL_FILE_SCOPE): Move ...
9804 * tree.h (DECL_FILE_SCOPE_P): ... here, and rename.
9805 * c-decl.c, c-objc-common.c, c-typeck.c: Update to match.
9806
98072003-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9808
9809 * builtins.def: Fix typos.
9810 (ATTR_MATHFN_FPROUNDING_STORE): New macro.
9811 (BUILT_IN_FREXP, BUILT_IN_FREXPF, BUILT_IN_FREXPL, BUILT_IN_MODF,
9812 BUILT_IN_MODFF, BUILT_IN_MODFL, BUILT_IN_REMQUO, BUILT_IN_REMQUOF,
9813 BUILT_IN_REMQUOL, BUILT_IN_SINCOS, BUILT_IN_SINCOSF,
9814 BUILT_IN_SINCOSL): Use ATTR_MATHFN_FPROUNDING_STORE.
9815
9816 * builtins.def (BUILT_IN_ERFC, BUILT_IN_ERFCF, BUILT_IN_ERFCL):
9817 Use ATTR_MATHFN_FPROUNDING_ERRNO.
9818
98192003-08-29 Nathanael Nerode <neroden@gcc.gnu.org>
9820
9821 * config.gcc (i386-*-vsta): Fix obvious bogosity.
9822
9823 * fixinc/inclhack.def: Remove special cases for unsupported
9824 PTX 1 and PTX 2 (including i[34567]86-sequent-sysv3).
9825 * fixinc/fixincl.x: Regenerate.
9826
98272003-08-29 Mark Mitchell <mark@codesourcery.com>
9828
9829 * Makefile.in (cpp.info): Just state dependencies.
9830 (gcc.info): Likewise.
9831 (gccint.info): Likewise.
9832 (gccinstall.info): Likewise.
9833 (cppinternals.info): Likewise.
9834 (cpp.dvi): Likewise.
9835 (gcc.dvi): Likewise.
9836 (gccint.dvi): Likewise.
9837 (gccinstall.dvi): Likewise.
9838 (cppinternals.dvi): Likewise.
9839 (gcov.1): Likewise.
9840 (cpp.1): Likewise.
9841 (gcc.1): Likewise.
9842 (gfdl.7): Likewise.
9843 (gpl.7): Likewise.
9844 (fsf-funding.7): Likewise.
9845 ($(objdir)/%.info): New pattern rule.
9846 (%.dvi): Likewise.
9847
98482003-08-29 Kelley Cook <kelleycook@wideopenwest.com>
9849
9850 * Makefile.in (restage1): Pass BOOT_CFLAGS to recursive make.
9851 (restage2): Likewise.
9852 (restage3): Likewise.
9853 (restage4): Likewise.
9854 (restageprofile): Likewise.
9855 (restagefeedback): Likewise.
9856 (bubblestrap): Likewise.
9857
98582003-08-29 Nathanael Nerode <neroden@gcc.gnu.org>
9859
9860 * config.gcc: Narrow unsupported target match to avoid clobbering
9861 i?86-sequent-sysv4*.
9862
98632003-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9864
9865 * builtins.c (mathfn_built_in): Handle new math builtins.
9866
98672003-08-28 Per Bothner <per@bothner.com>
9868
9869 Fix (hopefully temporary) for breakage caused by my 08-21 patch.
9870 * cpplex.c (_cpp_get_fresh_line): Check for null buffer.
9871 (_cpp_lex_buffer): Likewise.
9872 * cpptrad.c (_cpp_read_logical_line_trad): Likewise.
9873
98742003-08-28 Ulrich Weigand <uweigand@de.ibm.com>
9875
9876 * config/s390/s390.md ("*mulsi3_sign"): New insn.
9877 ("mulsidi3" expander, "mulsi_6432" insn): Remove, replace by ...
9878 ("mulsidi3"): ... this new insn.
9879 ("umulsidi3"): New insn.
9880 ("divmoddi3", "divmodtidi3", "divmodtisi3"): Simplify by using
9881 mixed-mode matching constraints.
9882 ("udivmodsi4", "udivmoddisi3"): New insns.
9883 ("udivsi3", "umodsi3"): Use only in ESA/390 mode.
9884
98852003-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9886
9887 * builtin-types.def (BT_INT_PTR, BT_FLOAT_PTR, BT_DOUBLE_PTR,
9888 BT_LONGDOUBLE_PTR, BT_FN_FLOAT_FLOAT_FLOATPTR,
9889 BT_FN_DOUBLE_DOUBLE_DOUBLEPTR,
9890 BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLEPTR,
9891 BT_FN_FLOAT_FLOAT_INTPTR, BT_FN_DOUBLE_DOUBLE_INTPTR,
9892 BT_FN_LONGDOUBLE_LONGDOUBLE_INTPTR,
9893 BT_FN_FLOAT_FLOAT_FLOAT_INTPTR, BT_FN_DOUBLE_DOUBLE_DOUBLE_INTPTR,
9894 BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE_INTPTR,
9895 BT_FN_VOID_FLOAT_FLOATPTR_FLOATPTR,
9896 BT_FN_VOID_DOUBLE_DOUBLEPTR_DOUBLEPTR,
9897 BT_FN_VOID_LONGDOUBLE_LONGDOUBLEPTR_LONGDOUBLEPTR): New.
9898 * builtins.def (BUILT_IN_FREXP, BUILT_IN_FREXPF, BUILT_IN_FREXPL,
9899 BUILT_IN_MODF, BUILT_IN_MODFF, BUILT_IN_MODFL, BUILT_IN_REMQUO,
9900 BUILT_IN_REMQUOF, BUILT_IN_REMQUOL, BUILT_IN_SINCOS,
9901 BUILT_IN_SINCOSF, BUILT_IN_SINCOSL): New.
9902 * tree.c: Assign new type_nodes.
9903 * tree.h (tree_index): Add TI_FLOAT_PTR_TYPE, TI_DOUBLE_PTR_TYPE,
9904 TI_LONG_DOUBLE_PTR_TYPE, TI_INTEGER_PTR_TYPE.
9905 (float_ptr_type_node, double_ptr_type_node,
9906 long_double_ptr_type_node, integer_ptr_type_node): New type_nodes.
9907
9908 * doc/extend.texi: Document new builtins.
9909
99102003-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9911
9912 * builtin-types.def (BT_FN_FLOAT_INT_FLOAT,
9913 BT_FN_DOUBLE_INT_DOUBLE, BT_FN_LONGDOUBLE_INT_LONGDOUBLE): New.
9914
9915 * builtins.def (BUILT_IN_ERF, BUILT_IN_ERFC, BUILT_IN_ERFCF,
9916 BUILT_IN_ERFCL, BUILT_IN_ERFF, BUILT_IN_ERFL, BUILT_IN_GAMMA,
9917 BUILT_IN_GAMMAF, BUILT_IN_GAMMAL, BUILT_IN_J0, BUILT_IN_J0F,
9918 BUILT_IN_J0L, BUILT_IN_J1, BUILT_IN_J1F, BUILT_IN_J1L,
9919 BUILT_IN_JN, BUILT_IN_JNF, BUILT_IN_JNL, BUILT_IN_LGAMMA,
9920 BUILT_IN_LGAMMAF, BUILT_IN_LGAMMAL, BUILT_IN_SIGNIFICAND,
9921 BUILT_IN_SIGNIFICANDF, BUILT_IN_SIGNIFICANDL, BUILT_IN_TGAMMA,
9922 BUILT_IN_TGAMMAF, BUILT_IN_TGAMMAL, BUILT_IN_Y0, BUILT_IN_Y0F,
9923 BUILT_IN_Y0L, BUILT_IN_Y1, BUILT_IN_Y1F, BUILT_IN_Y1L,
9924 BUILT_IN_YN, BUILT_IN_YNF, BUILT_IN_YNL): New.
9925
9926 * doc/extend.texi: Document new builtins.
9927
99282003-08-28 Nathanael Nerode <neroden@gcc.gnu.org>
9929
9930 * fixinc/mkfixinc.sh: Remove special case code for unsupported
9931 variants of i?86, powerpcle, and thumb.
9932 * fixinc/mkfixinc.sh: Remove special case code for unsupported
9933 arm and hppa variants.
9934
99352003-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9936
9937 * builtin-types.def (BT_FN_INT_FLOAT, BT_FN_INT_DOUBLE,
9938 BT_FN_INT_LONGDOUBLE, BT_FN_LONG_FLOAT, BT_FN_LONG_DOUBLE,
9939 BT_FN_LONG_LONGDOUBLE, BT_FN_LONGLONG_FLOAT,
9940 BT_FN_LONGLONG_DOUBLE, BT_FN_LONGLONG_LONGDOUBLE,
9941 BT_FN_FLOAT_FLOAT_LONGDOUBLE, BT_FN_DOUBLE_DOUBLE_LONGDOUBLE,
9942 BT_FN_FLOAT_FLOAT_INT, BT_FN_DOUBLE_DOUBLE_INT,
9943 BT_FN_LONGDOUBLE_LONGDOUBLE_INT, BT_FN_FLOAT_FLOAT_LONG,
9944 BT_FN_DOUBLE_DOUBLE_LONG, BT_FN_LONGDOUBLE_LONGDOUBLE_LONG,
9945 BT_FN_FLOAT_FLOAT_FLOAT_FLOAT, BT_FN_DOUBLE_DOUBLE_DOUBLE_DOUBLE,
9946 BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE): New.
9947
9948 * builtins.def (BUILT_IN_ACOS, BUILT_IN_ACOSF, BUILT_IN_ACOSH,
9949 BUILT_IN_ACOSHF, BUILT_IN_ACOSHL, BUILT_IN_ACOSL, BUILT_IN_ASIN,
9950 BUILT_IN_ASINF, BUILT_IN_ASINH, BUILT_IN_ASINHF, BUILT_IN_ASINHL,
9951 BUILT_IN_ASINL, BUILT_IN_ATANH, BUILT_IN_ATANHF, BUILT_IN_ATANHL,
9952 BUILT_IN_CBRT, BUILT_IN_CBRTF, BUILT_IN_CBRTL, BUILT_IN_COPYSIGN,
9953 BUILT_IN_COPYSIGNF, BUILT_IN_COPYSIGNL, BUILT_IN_COSH,
9954 BUILT_IN_COSHF, BUILT_IN_COSHL, BUILT_IN_DREM, BUILT_IN_DREMF,
9955 BUILT_IN_DREML, BUILT_IN_EXP10, BUILT_IN_EXP10F, BUILT_IN_EXP10L,
9956 BUILT_IN_EXP2, BUILT_IN_EXP2F, BUILT_IN_EXP2L, BUILT_IN_EXPM1,
9957 BUILT_IN_EXPM1F, BUILT_IN_EXPM1L, BUILT_IN_FDIM, BUILT_IN_FDIMF,
9958 BUILT_IN_FDIML, BUILT_IN_FMA, BUILT_IN_FMAF, BUILT_IN_FMAL,
9959 BUILT_IN_FMAX, BUILT_IN_FMAXF, BUILT_IN_FMAXL, BUILT_IN_FMIN,
9960 BUILT_IN_FMINF, BUILT_IN_FMINL, BUILT_IN_HYPOT, BUILT_IN_HYPOTF,
9961 BUILT_IN_HYPOTL, BUILT_IN_ILOGB, BUILT_IN_ILOGBF, BUILT_IN_ILOGBL,
9962 BUILT_IN_LDEXP, BUILT_IN_LDEXPF, BUILT_IN_LDEXPL, BUILT_IN_LLRINT,
9963 BUILT_IN_LLRINTF, BUILT_IN_LLRINTL, BUILT_IN_LLROUND,
9964 BUILT_IN_LLROUNDF, BUILT_IN_LLROUNDL, BUILT_IN_LOG10,
9965 BUILT_IN_LOG10F, BUILT_IN_LOG10L, BUILT_IN_LOG1P, BUILT_IN_LOG1PF,
9966 BUILT_IN_LOG1PL, BUILT_IN_LOG2, BUILT_IN_LOG2F, BUILT_IN_LOG2L,
9967 BUILT_IN_LOGB, BUILT_IN_LOGBF, BUILT_IN_LOGBL, BUILT_IN_LRINT,
9968 BUILT_IN_LRINTF, BUILT_IN_LRINTL, BUILT_IN_LROUND,
9969 BUILT_IN_LROUNDF, BUILT_IN_LROUNDL, BUILT_IN_NEXTAFTER,
9970 BUILT_IN_NEXTAFTERF, BUILT_IN_NEXTAFTERL, BUILT_IN_NEXTTOWARD,
9971 BUILT_IN_NEXTTOWARDF, BUILT_IN_NEXTTOWARDL, BUILT_IN_POW10,
9972 BUILT_IN_POW10F, BUILT_IN_POW10L, BUILT_IN_REMAINDER,
9973 BUILT_IN_REMAINDERF, BUILT_IN_REMAINDERL, BUILT_IN_RINT,
9974 BUILT_IN_RINTF, BUILT_IN_RINTL, BUILT_IN_SCALB, BUILT_IN_SCALBF,
9975 BUILT_IN_SCALBL, BUILT_IN_SCALBLN, BUILT_IN_SCALBLNF,
9976 BUILT_IN_SCALBLNL, BUILT_IN_SCALBN, BUILT_IN_SCALBNF,
9977 BUILT_IN_SCALBNL, BUILT_IN_SINH, BUILT_IN_SINHF, BUILT_IN_SINHL,
9978 BUILT_IN_TANH, BUILT_IN_TANHF, BUILT_IN_TANHL): New.
9979
9980 * doc/extend.texi: Document new builtins.
9981
99822003-08-28 Ulrich Weigand <uweigand@de.ibm.com>
9983
9984 * config/s390/s390.c (legitmate_constant_p): Use LARL on
9985 zSeries machines even in 31-bit addressing mode.
9986 (legitimate_reload_constant_p): Likewise.
9987 (legitimize_pic_address): Likewise.
9988 (legitimize_tls_address): Likewise.
9989 (s390_split_branches): Likewise.
9990 (s390_dump_pool): Likewise.
9991 (s390_mainpool_finish): Likewise.
9992 (s390_chunkify_start): Likewise.
9993 (s390_select_rtx_section): Likewise.
9994 * config/s390/s390.md ("doloop_si"): Likewise.
9995 ("pool_start_31", "pool_end_31"): Likewise.
9996 ("pool_start_64", "pool_end_64"): Likewise.
9997 ("main_base_31_small", "main_base_31_large"): Likewise.
9998 ("main_base_64"): Likewise.
9999 ("reload_base_31", "reload_base_64"): Likewise.
10000 ("*movsi_larl"): New insn.
10001 ("cjump", "icjump"): Use long branches on zSeries machines.
10002 ("jump"): Likewise.
10003 ("call"): Use BRASL on zSeries machines.
10004 ("call_value", "call_value_tls"): Likewise.
10005 ("brasl", "bras", "basr_64", "basr_31", "bas_64", "bas_31"): Remove
10006 and replace by ...
10007 ("*bras", "*brasl", "*basr") ... these new insns.
10008 ("brasl_r", "bras_r", "basr_64_r", "basr_31_r", "bas_64_r",
10009 "bas_31_r"): Remove and replace by ...
10010 ("*bras_r", "*brasl_r", "*basr_r") ... these new insns.
10011 ("brasl_tls", "bras_tls", "basr_64_tls", "basr_31_tls",
10012 "bas_64_tls", "bas_31_tls"): Remove and replace by ...
10013 ("*bras_tls", "*brasl_tls", "*basr_tls") ... these new insns.
10014 ("*return_si", "*return_di"): Remove and replace by ...
10015 ("*return"): ... this new insn.
10016 ("rotlsi3"): Allow on zSeries machines.
10017
10018 * config/s390/s390.c (legitimize_reload_constant_p): Use
10019 LL/LH type instructions in z/Architecture mode.
10020 * config/s390/s390.md ("*movsi_lli"): Likewise.
10021 ("*andsi3_ni", "*andhi3_ni", "*andqi3_ni"): Likewise.
10022 ("*iorsi3_ni", "*iorhi3_ni", "*iorqi3_ni"): Likewise.
10023 ("*extendqisi2"): Use LB in z/Architecture mode.
10024 ("*zero_extendqisi2_64", "*zero_extendqisi2_31"): Use LLGC in
10025 z/Architecture mode.
10026 ("zero_extendqihi2", "*zero_extendqihi2_64", "*zero_extendqihi2_31"):
10027 Likewise.
10028
10029 * config/s390/s390.md ("*tmdi_ext"): Allow in both 64-bit
10030 and 31-bit mode.
10031 ("ptr_extend"): Allow only in 64-bit mode.
10032
100332003-08-27 Daniel Jacobowitz <drow@mvista.com>
10034
10035 * gcc.c (STANDARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX)
10036 (TOOLDIR_BASE_PREFIX, STANDARD_BINDIR_PREFIX): Remove unnecessary
10037 definitions.
10038 (main): Only use standard_startfile_prefix if native.
10039 * doc/tm.texi (STANDARD_STARTFILE_PREFIX): Update.
10040
100412003-08-27 Per Bothner <pbothner@apple.com>
10042
10043 * cpperror.c (print_location): Don't check for !pfile->buffer. That
10044 test fails following my 08-21 change, and it seems unnecessary anyway.
10045 (cpp_error): Likewise.
10046
100472003-08-27 Jason Merrill <jason@redhat.com>
10048
10049 * real.c (do_multiply): Initialize with memset.
10050
100512003-08-27 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10052
10053 * gcov.c (typedef struct arc_info): New field cs_count.
10054 (accumulate_line_counts): Find cycles correctly.
10055
100562003-08-27 Ulrich Weigand <uweigand@de.ibm.com>
10057
10058 * config/s390/s390.c (struct machine_function): Remove member
10059 literal_pool_label.
10060 (s390_optimize_prolog): Replace TEMP_REG argument with
10061 TEMP_USED and BASE_USED. Do not check get_pool_size ().
10062 (general_s_operand): Accept all immediates before reload if
10063 ALLOW_IMMEDIATE. If not ALLOW_IMMEDIATE, reject literal pool
10064 references.
10065 (s390_output_symbolic_const): Remove UNSPEC_LTREL_OFFSET handling.
10066 (find_constant_pool_ref): Ignore UNSPECV_POOL_ENTRY insns.
10067 (s390_alloc_pool): New function.
10068 (s390_new_pool): Call it.
10069 (s390_dump_pool): Add REMOTE_LABEL argument.
10070 (s390_chunkify_start): Add BASE_REG argument. Do not check
10071 get_pool_size ().
10072 (s390_chunkify_finish): Add BASE_REG argument. Adapt
10073 s390_dump_pool call.
10074 (s390_pool_count, s390_nr_constants): Remove.
10075 (s390_output_constant_pool): Remove.
10076 (s390_mainpool_start): New function.
10077 (s390_mainpool_finish): New function.
10078 (s390_mainpool_cancel): New function.
10079 (s390_reorg): Implement main literal pool handling.
10080 (s390_emit_prologue): Emit main_pool placeholder instead of
10081 literal_pool_31 / literal_pool_64 insns.
10082 * config/s390/s390.h (s390_pool_count, s390_nr_constants): Remove.
10083 (ASM_OUTPUT_POOL_PROLOGUE, ASM_OUTPUT_SPECIAL_POOL_ENTRY): Remove.
10084 * config/s390/s390.md (UNSPEC_MAIN_BASE): New symbolic constant.
10085 ("main_base_31_small", "main_base_31_large"): New insns.
10086 ("main_base_64", "main_pool"): New insns.
10087 ("literal_pool_31", "literal_pool_64"): Remove.
10088
100892003-08-27 Nathanael Nerode <neroden@gcc.gnu.org>
10090
10091 * fixinc/inclhack.def (ptx_netswap): New disabled fix, ported from
10092 fixinc.ptx.
10093 * fixinc/inclhack.def (undefine_null): Don't generate \r characters.
10094 Prettify a little.
10095 * fixinc/fixincl.x: Regenerate.
10096
100972003-08-27 Richard Earnshaw <rearnsha@arm.com>
10098
10099 * lib1funcs.asm (L_ieee754_sp): New. Include ieee754-sf.S.
10100 (L_ieee754_dp): New. Include ieee754-df.S.
10101 * arm/ieee754-sf.S: Rework to allow interworking, calling from Thumb,
10102 and compilation in apcs-26 mode.
10103 * arm/ieee754-df.S: Likewise.
10104 * t-arm-elf (DPBIT, FPBIT, fp-bit.c dp-bit.c): Delete rules
10105 (LIB1ASMFUNCS): Add _ieee754_sp and _ieee754_dp targets.
10106
101072003-08-27 Nicolas Pitre <nico@cam.org>
10108
10109 * arm/ieee754-sf.S: New.
10110 * arm/ieee754-df.S: New.
10111
101122003-08-27 Jakub Jelinek <jakub@redhat.com>
10113
10114 * builtins.c (expand_builtin_expect_jump): Save pending_stack_adjust
10115 and restore it if returning NULL.
10116
101172003-08-27 Richard Sandiford <rsandifo@redhat.com>
10118
10119 * calls.c (initialize_argument_information): If an argument has no
10120 stack space associated with it, and BLOCK_REG_PADDING is defined,
10121 use it to decide at which end the argument should be padded.
10122 * function.c (assign_parms): Allocate BLKmode stack slots.
10123 * config/mips/mips-protos.h (mips_pad_arg_upward): Declare.
10124 (mips_pad_reg_upward): Declare.
10125 * config/mips/mips.h (PAD_VARARGS_DOWN): Use FUNCTION_ARG_PADDING.
10126 (CUMULATIVE_ARGS): Remove num_adjusts and adjusts.
10127 (FUNCTION_ARG_PADDING): Use mips_pad_arg_upward.
10128 (BLOCK_REG_PADDING): Use mips_pad_reg_upward.
10129 * config/mips/mips.c (struct mips_arg_info): Remove struct_p.
10130 (mips_expand_call): Remove code for generating structure shifts.
10131 (mips_arg_info): Don't set struct_p. Don't set fpr_p for non-float
10132 types unless using the EABI.
10133 (function_arg_advance): Don't generate shift instructions.
10134 (function_arg): Don't return them. Don't short-circuit the
10135 check for double structure chunks for DFmode arguments.
10136 (mips_pad_arg_upward, mips_pad_reg_upward): New functions.
10137 (mips_expand_prologue): Remove code to emit structure shifts.
10138 * config/mips/irix6-libc-compat.c: Remove workarounds for buggy
10139 structure passing (inet_ntoa, inet_lnaof, inet_netof). Update
10140 comments to say that only structure returns are a problem.
10141
101422003-08-26 Nathanael Nerode <neroden@gcc.gnu.org>
10143
10144 * fixinc/tests/base/string.h, fixinc/tests/base/sys/regset.h:
10145 Fix to match produced versions.
10146 * fixinc/inclhack.def (longlong_t): New disabled test, ported
10147 from fixinc.svr4.
10148 * fixinc/inclhack.def (ptx_pwd_h): New disabled fix, ported
10149 from fixinc.ptx.
10150 * fixinc/inclhack.def (ptx_sys_mc_param_h): New disabled fix,
10151 ported from fixinc.ptx.
10152
101532003-08-26 Per Bothner <pbothner@apple.com>
10154
10155 * cpplib.h (struct cpp_token): Change type of field line to fileline.
10156 (cpp_error_with_line): Use fileline for appropriate parameter.
10157 * cpphash.h (struct cpp_macro): Change type of field line to fileline.
10158 (struct cpp_reader): Likewise for fields line and directive_line.
10159 (_cpp_begin_message): Use fileline for appropriate parameter.
10160 * cpperror.c (print_location, _cpp_begin_message, cpp_error_with_line,
10161 cpp_error): Use fileline for appropriate parameters and variables.
10162 (print_location): New local lin, since it is not a fileline.
10163
101642003-08-26 Roger Sayle <roger@eyesopen.com>
10165
10166 PR middle-end/12002
10167 * tree.h (SCALAR_FLOAT_TYPE_P, COMPLEX_FLOAT_TYPE_P): New macros.
10168 (FLOAT_TYPE_P): Define in terms of these two new macros.
10169 * fold-const.c (fold <PLUS_EXPR>): Don't convert x+x into x*2.0
10170 for complex floating point types.
10171
101722003-08-26 Ulrich Weigand <uweigand@de.ibm.com>
10173
10174 * config/s390/s390.c (emit_prologue): Don't check literal pool size.
10175 * config/s390/s390.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Call
10176 s390_output_pool_entry.
10177
101782003-08-26 Nathanael Nerode <neroden@gcc.gnu.org>
10179
10180 * fixinc/inclhack.def (svr4_preproc_lint_on,
10181 svr4_preproc_lint_off, svr4_preproc_machine): New disabled
10182 fixes, ported from fixinc.svr4.
10183
101842003-08-26 Mark Mitchell <mark@codesourcery.com>
10185
10186 * doc/install.texi (Prerequisites): Mention GNU make requirement.
10187
10188 * Makefile.in (AR_FOR_TARGET): Export it.
10189 (AR_CREATE_FOR_TARGET): Likewise.
10190 (AR_FLAGS_FOR_TARGET): Likewise.
10191 (AR_EXTRACT_FOR_TARGET): Likewise.
10192 (AWK): Likewise.
10193 (BUILD_PREFIX): Likewise.
10194 (BUILD_PREFIX_1): Likewise.
10195 (DESTDIR): Likewise.
10196 (GCC_FOR_TARGET): Likewise.
10197 (INCLUDES): Likewise.
10198 (INSTALL_DATA): Likewise.
10199 (LIB1ASMSRC): Likewise.
10200 (LIBGCC2_CFLAGS): Likewise.
10201 (MACHMODE_H): Likewise.
10202 (NM_FOR_TARGET): Likewise.
10203 (RANLIB_FOR_TARGET): Likewise.
10204 (libsubdir): Likewise.
10205 (slibdir): Likewise.
10206 (ORDINARY_FLAGS_TO_PASS): Remove stuff that we're
10207 exporting.
10208 (libgcc.a): Don't pass them here.
10209 (stmp-multilib): Or here.
10210 (install-libgcc): Or here.
10211 (install-multilib): Or here.
10212 (POSTSTAGE1_FLAGS_TO_PASS): Or here.
10213 (stage1_build): Or here.
10214
102152003-08-26 Andreas Krebbel <krebbel1@de.ibm.com>
10216
10217 * config/s390/s390.md ("*llgt_sisi", "*llgt_sisi_split", "*llgt_didi",
10218 "*llgt_didi_split", "*llgt_sidi", "*llgt_sidi_split"): New insns.
10219
102202003-08-26 Andreas Krebbel <krebbel1@de.ibm.com>
10221
10222 * config/s390/s390.md ("*fmadddf", "*fmsubdf",
10223 "*fmaddsf", "*fmsubsf"): New insns.
10224
102252003-08-26 Roger Sayle <roger@eyesopen.com>
10226
10227 * fold-const.c (fold <MULT_EXPR>): Optimize (C1/X)*C2 into
10228 (C1*C2)/X when unsafe math optimizations are allowed.
10229 (fold <RDIV_EXPR>): Optimize C1/(X*C2) into (C1/C2)/X with unsafe
10230 math optimizations. Minor code clean-ups. Recursively call
10231 fold when constructing sub-expressions.
10232
102332003-08-26 Roger Sayle <roger@eyesopen.com>
10234
10235 * builtins.c (fold_builtin_bitop): New function to perform constant
10236 folding of ffs, clz, ctz, popcount and parity builtin functions
10237 and their long and long long variants (such as ffsl and ffsll).
10238 (fold_builtin): fold_builtin_bitop when appropriate.
10239 * simplify-rtx.c (simplify_unary_operation): Honor both
10240 CLZ_DEFINED_VALUE_AT_ZERO and CTZ_DEFINED_VALUE_AT_ZERO when
10241 evaluating clz and ctz at compile-time, for operands wider
10242 than HOST_WIDE_INT.
10243
102442003-08-26 Nathan Sidwell <nathan@codesourcery.com>
10245
10246 * builtins.c (build_function_call_expr): Don't set
10247 TREE_SIDE_EFFECTS here.
10248 * expr.c (emit_block_move_via_libcall): Likewise.
10249 (clear_storage_via_libcall): Likewise.
10250 * tree.c (build): Set TREE_SIDE_EFFECTS for non-const, non-pure
10251 CALL_EXPRs.
10252
10253 * gcse.c (is_too_expensive): New function.
10254 (gcse_main, delete_null_pointer_checks, bypass_jumps): Use it.
10255
102562003-08-25 Zack Weinberg <zack@codesourcery.com>
10257
10258 * config.gcc (hppa*-*-hpux11*, ia64*-*-hpux*): Remove
10259 commented-out logic to use DCE threads (if present), add
10260 support for POSIX threads.
10261 * config/ia64/hpux.h: Define CPP_SPEC to set appropriate
10262 #defines for -pthread. Add -lpthread to LIB_SPEC when
10263 -pthread. In both cases take -mt as a synonym for -pthread
10264 for acc compatibility.
10265 Define GTHREAD_USE_WEAK to 0.
10266 * config/pa/pa-hpux11.h: Likewise for CPP_SPEC and LIB_SPEC.
10267 Remove old logic for DCE threads from LIB_SPEC.
10268 * config/pa/pa64-hpux.h: Define GTHREAD_USE_WEAK to 0.
10269
102702003-08-25 Roger Sayle <roger@eyesopen.com>
10271
10272 * builtins.c (expand_builtin_mathfn): Rearrange so that we only
10273 return 0 for invalid argument types. Instead drop through to a
10274 call of expand_call at the bottom of function. If op is SQRT,
10275 try attaching a SQRT rtx as the REQ_EQUAL note of the libcall.
10276
102772003-08-25 Richard Henderson <rth@redhat.com>
10278
10279 * config/ia64/ia64.c (ia64_expand_tls_address): Properly truncate
10280 result when op0 is SImode.
10281
102822003-08-25 Nathanael Nerode <neroden@twcny.rr.com>
10283
10284 * fixinc/inclhack.def (svr4_sighandler_type): New fix, ported
10285 from fixinc.svr4.
10286 * fixinc/fixincl.x: Regenerate.
10287 * fixinc/tests/base/sys/signal.h: Regenerate.
10288
102892003-08-25 Ulrich Weigand <uweigand@de.ibm.com>
10290
10291 * combine.c (simplify_comparison): Re-enable widening of comparisons
10292 with non-paradoxical subregs of non-REG expressions.
10293
102942003-08-25 Ulrich Weigand <uweigand@de.ibm.com>
10295
10296 * combine.c (distribute_notes): Handle REG_ALWAYS_RETURN.
10297
102982003-08-25 Ulrich Weigand <uweigand@de.ibm.com>
10299
10300 * combine.c (combine_simplify_rtx): Fix RTL sharing bug.
10301
103022003-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
10303
10304 * pretty-print.h (pp_maybe_newline_and_indent): New macro.
10305 * c-pretty-print.h (c_pretty_printer): Now typedef to the
10306 structure. Be consistent with pretty-print.h abd cxx-pretty-print.h
10307 (struct c_pretty_print_info): Document. Add new fields.
10308 (pp_type_specifier_seq): Rename from pp_c_type_specifier.
10309 (pp_direct_abstract_declarator): New macro.
10310 (pp_ptr_operator): Likewise.
10311 (pp_simple_type_specifier): Likewise.
10312 (pp_expression): Likewise.
10313 (pp_parameter_list): Rename from pp_parameter_declaration.
10314 * c-pretty-print.c (pp_c_whitespace): Now a function.
10315 (pp_c_left_paren): Likewise.
10316 (pp_c_right_paren): Likewise.
10317 (pp_c_dot): Likewise.
10318 (pp_c_ampersand): Likewise.
10319 (pp_c_arrow): Likewise.
10320 (pp_c_semicolon): Likewise.
10321 (pp_c_type_cast): New function.
10322 (pp_c_space_for_pointer_operator): Likewise.
10323 (pp_c_call_argument_list): Likewise.
10324 (pp_c_cv_qualifier): Adjust prototype.
10325 (pp_c_type_qualifier_list): Likewise.
10326 (pp_c_pointer): Likewise. Handle REFERENCE_TYPE here.
10327 (pp_c_type_specifier): Rename from pp_c_simple_type_specifier.
10328 Adjust to follow standard grammar.
10329 (pp_c_specifier_qualifier_list): Adjusr prototype. Handle
10330 REFERENCE_TYPE. Tidy.
10331 (pp_c_parameter_type_list): Adjust prototype. Tidy.
10332 (pp_c_parameter_declaration): Remove.
10333 (pp_c_abstract_declarator): Adjust prototype.
10334 (pp_c_direct_abstract_declarator): Likewise.
10335 (pp_c_type_id): Likewise.
10336 (pp_c_storage_class_specifier): Likewise.
10337 (pp_c_function_specifier): Likewise.
10338 (pp_c_declaration_specifiers): Likewise.
10339 (pp_c_direct_declarator): Likewise.
10340 (pp_c_declarator): Likewise.
10341 (pp_c_declarator): Likewise.
10342 (pp_c_declaration): Likewise.
10343 (pp_c_attributes): Likewise. Tidy.
10344 (pp_c_function_definition): Adjust prototype.
10345 (pp_c_char): Likewise.
10346 (pp_c_string_literal): Likewise.
10347 (pp_c_integer_constant): Likewise.
10348 (pp_c_character_constant): Likewise.
10349 (pp_c_bool_constant): Likewise.
10350 (pp_c_enumeration_constant): Likewise.
10351 (pp_c_floating_constant): Likewise.
10352 (pp_c_constant): Likewise.
10353 (pp_c_identifier): Likewise.
10354 (pp_c_primary_expression): Likewise. Remove TARGET_EXPR case. Tidy.
10355 (pp_c_initializer): Adjust prototype.
10356 (pp_c_init_declarator): Likewise.
10357 (pp_c_initializer_list): Likewise.
10358 (pp_c_id_expression): Likewise.
10359 (pp_c_postfix_expression): Likewise.
10360 (pp_c_expression_list): Likewise.
10361 (pp_c_unary_expression): Likewise.
10362 (pp_c_cast_expression): Likewise.
10363 (pp_c_multiplicative_expression): Likewise.
10364 (pp_c_additive_expression): Likewise.
10365 (pp_c_shift_expression): Likewise.
10366 (pp_c_relational_expression): Likewise.
10367 (pp_c_equality_expression): Likewise.
10368 (pp_c_and_expression): Likewise.
10369 (pp_c_exclusive_or_expression): Likewise.
10370 (pp_c_inclusive_or_expression): Likewise.
10371 (pp_c_logical_and_expression): Likewise.
10372 (pp_c_logical_or_expression): Likewise.
10373 (pp_c_conditional_expression): Likewise.
10374 (pp_c_assignment_expression): Likewise.
10375 (pp_c_expression): Likewise. Tidy.
10376 (pp_c_statement): Likewise. Document.
10377 (pp_c_pretty_printer_init): Adjust prototype. Tidy.
10378
10379 * c-lang.c (c_initialize_diagnostics): Update.
10380 * c-common.h (strip_pointer_operator): Declare.
10381 * c-common.c (strip_pointer_operator): Define.
10382
103832003-08-25 Mark Mitchell <mark@codesourcery.com>
10384
10385 PR c++/8795
10386 * tree.h (build_method_type_directly): Declare.
10387 * c-common.c (handle_vector_size_attributes): Handle METHOD_TYPEs.
10388 (vector_size_helper): Likewise.
10389 * tree.c (build_method_type_directly): New function.
10390 (build_method_type): Use it.
10391
103922003-08-24 Richard Henderson <rth@redhat.com>
10393
10394 * config/i386.i386.c (ix86_return_in_memory): Reformat. Return true
10395 for 16-byte vector modes if sse not enabled; warn for abi change.
10396 (ix86_value_regno): Only return xmm0 for 16-byte vector types.
10397
103982003-08-24 Kazu Hirata <kazu@cs.umass.edu>
10399
10400 * rtlanal.c (may_trap_p): Simplify an integer comparison.
10401
104022003-08-24 Nathanael Nerode <neroden@gcc.gnu.org>
10403
10404 * fixinc/inclhack.def (AAB_svr4_replace_byteorder): Enhance
10405 comment. Enable for DYNIX/ptx systems (when they switch to
10406 regular fixincludes).
10407 * fixinc/fixincl.x: Regenerate.
10408
104092003-08-23 Jason Eckhardt <jle@rice.edu>
10410
10411 * config/i860/t-i860: New.
10412 * config.gcc (i860-*-sysv4*): Add t-i860 to tmake_file.
10413
104142003-08-23 Jakub Jelinek <jakub@redhat.com>
10415
10416 * c-decl.c (pushdecl): Only put decls which finish_struct will do
10417 something about onto incomplete chain.
10418 (finish_struct): If not removing type from incomplete
10419 list, update prev.
10420
104212003-08-20 Jan Hubicka <jh@suse.cz>
10422
10423 PR target/11369
10424 * i386.c (ix86_expand_carry_flag_compare): Validate operand.
10425
10426 PR target/11031
10427 * i386.c (const_0_to_3_operand, const_0_to_7_operand,
10428 const_0_to_15_operand, const_0_to_255_operand): New predicates.
10429 * i386.h (PREDICATE_CODES): Add these.
10430 * i386.c (pinsrw and pextrw patterns): Use them.
10431
10432 PR target/10984
10433 * i386.c (ix86_expand_binop_builtin): Behave sanely for VOIDmodes.
10434
10435 PR target/8869
10436 * expr.c (convert_modes): Deal properly with integer to vector
10437 constant conversion.
10438
10439 PR target/8871
10440 * i386.md (zero_extendsidi2*): Add MMX and SSE alternatives.
10441
104422003-08-23 Ulrich Weigand <uweigand@de.ibm.com>
10443
10444 * config/s390/s390.h (LOAD_EXTEND_OP): Remove.
10445 * config/s390/s390.md ("movhi"): New expander; old insn renamed to ...
10446 ("*movhi"): ... this.
10447 ("movqi", "*movqi"): Likewise.
10448 ("movqi_64"): Remove.
10449 ("*zero_extendhisi2_31"): Change predicate to s_operand.
10450
104512003-08-23 Dale Johannesen <dalej@apple.com>
10452 * calls.c (emit_library_call_value_1): Fix obvious errors in
10453 arguments to emit_group_store.
10454
104552003-08-23 Jason Eckhardt <jle@rice.edu>
10456
10457 * calls.c (emit_library_call_value_1): Remove code related
10458 to LIBGCC_NEEDS_DOUBLE.
10459 * config/stormy16/stormy16.h: Remove mention of LIBGCC_NEEDS_DOUBLE.
10460 * doc/tm.texi: Likewise.
10461 * system.h: Poison the LIBGCC_NEEDS_DOUBLE macro.
10462
104632003-08-23 Richard Sandiford <rsandifo@redhat.com>
10464
10465 * config/mips/linux64.h (STARTFILE_PREFIX_SPEC): Remove.
10466
104672003-08-23 Richard Sandiford <rsandifo@redhat.com>
10468
10469 * config/mips/mips.c (mips_setup_incoming_varargs): Handle o32 and o64
10470 as well. Put memory references in the varargs alias set.
10471 (mips_expand_prologue): Remove varargs handling from here.
10472
104732003-08-23 Ulrich Weigand <uweigand@de.ibm.com>
10474
10475 * config/s390/s390.c (s390_expand_movstr, s390_expand_clrstr,
10476 s390_expand_cmpmem, s390_output_constant_pool, s390_build_va_list,
10477 s390_function_profiler, s390_output_mi_thunk): Use ISO C syntax
10478 for function pointer calls.
10479 * config/s390/s390.md ("*negdi2_31"): Likewise.
10480
104812003-08-23 Roger Sayle <roger@eyesopen.com>
10482
10483 * combine.c (apply_distributive_law): Correct comment.
10484
104852003-08-23 Jason Eckhardt <jle@rice.edu>
10486
10487 * config/i860/i860.h: Remove comment mentioning LIBGCC_NEEDS_DOUBLE.
10488
104892003-08-22 Jason Eckhardt <jle@rice.edu>
10490
10491 * config/i860/i860.c (i860_build_va_list): Create the va_decl
10492 declaration. Document the va_list structure.
10493 (i860_va_start): Initialize the va_list structure.
10494 (i860_va_arg): Rewrite completely.
10495 * config/i860/i860.h (LIBGCC_NEEDS_DOUBLE): Don't define.
10496 * config/i860/varargs.asm: Do not allocate or initialize
10497 a va_list. Return the address of the register save area.
10498
104992003-08-22 Kazu Hirata <kazu@cs.umass.edu>
10500
10501 * config/iq2000/iq2000.c: Fix comment typos.
10502 * config/iq2000/iq2000.md: Likewise.
10503
105042003-08-22 Kazu Hirata <kazu@cs.umass.edu>
10505
10506 * config/iq2000/iq2000.c: Follow spelling conventions.
10507 * config/iq2000/iq2000.h: Likewise.
10508 * config/mn10300/mn10300.c: Likewise.
10509
105102003-08-22 Jason Eckhardt <jle@rice.edu>
10511
10512 * config/i860/i860.c (output_move_double): Don't set latehalf
10513 to zero for CONST_INT (since it could be, e.g., -1).
10514
10515 * config/i860/i860.h (REMSI3_LIBCALL): Replace this macro...
10516 (MODSI3_LIBCALL): ...with this one.
10517 (UREMSI3_LIBCALL): Replace this macro...
10518 (UMODSI3_LIBCALL): ...with this one.
10519
105202003-08-22 Jason Eckhardt <jle@rice.edu>
10521
10522 * config/i860/i860-protos.h (output_delay_insn): Remove prototype.
10523 (output_delayed_branch): Remove prototype.
10524 (single_insn_src_p): Remove prototype.
10525 * config/i860/i860.c (single_insn_src_p): Remove function.
10526 (output_delayed_branch): Remove function.
10527 (output_delay_insn): Remove function.
10528 (va_start): Remove unconditional test and dead code, re-format.
10529 Fix coding style and spelling problems in various comments.
10530 * config/i860/i860.md (UNSPECV_BLOCKAGE): Define constant...
10531 (blockage pattern): ...and use it here.
10532 (all define_peephole patterns related to delayed branches): Remove.
10533 Fix coding style and spelling problems in various comments.
10534
105352003-08-22 Jason Eckhardt <jle@rice.edu>
10536
10537 * config/i860/i860.c: Replace all occurrences of 'GNU CC' with 'GCC'.
10538 Remove all uses of the PARAMS macro. Remove superflous prototypes.
10539 Convert all function definitions from traditional to ISO C90 syntax.
10540 * config/i860/i860-protos.h: Replace all occurrences of 'GNU CC'
10541 with 'GCC'. Remove all uses of the PARAMS macro.
10542 * config/i860/i860.h: Replace all occurrences of 'GNU CC' with 'GCC'.
10543 * config/i860/i860.md: Likewise.
10544 * config/i860/sysv4.h: Likewise.
10545 * config/i860/varargs.asm: Likewise.
10546
105472003-08-22 Jason Eckhardt <jle@rice.edu>
10548
10549 * config/i860/i860-protos.h (i860_va_start): Remove 'stdarg_p'
10550 argument.
10551 (tdesc_section): Add prototype.
10552 Update copyright dates.
10553 * config/i860/i860.c: Include coretypes.h, tm.h, and toplev.h.
10554 (TARGET_ASM_FUNCTION_PROLOGUE): Move definition to end of file.
10555 (TARGET_ASM_FUNCTION_EPILOGUE): Likewise.
10556 (targetm): Likewise.
10557 (i860_output_function_prologue): Substitute HOST_WIDE_INT_PRINT_DEC
10558 for '%d' where necessary.
10559 (i860_va_start): Remove 'stdarg_p' argument. Make conditional checks
10560 on 'stdarg_p' unconditional. Divide current_function_args_info.ints
10561 by UNITS_PER_WORD when referencing (likewise for .floats).
10562 (I860_SVR4_VARARGS): Rename...
10563 (I860_SVR4_VA_LIST): ...to this.
10564 Call build() with 't' rather than 'field'.
10565 (i860_rtx_costs): New function.
10566 (TARGET_RTX_COSTS): Define.
10567 (i860_internal_label): New function.
10568 (TARGET_ASM_INTERNAL_LABEL): Define.
10569 (i860_file_start): New function.
10570 Update copyright dates.
10571 * config/i860/i860.h (CPP_PREDEFINES): Remove.
10572 (TARGET_CPU_CPP_BUILTINS): Define.
10573 (EXPAND_BUILTIN_VA_START): Remove 'stdarg' argument.
10574 (CONST_COSTS): Remove (and move code to i860_rtx_costs).
10575 (ASM_FILE_START): Remove.
10576 (ASM_FILE_START_1): Remove.
10577 (ASM_GLOBALIZE_LABEL): Remove.
10578 (ASM_OUTPUT_INTERNAL_LABEL): Remove.
10579 (ASM_OUTPUT_CASE_LABEL): Replace call of ASM_OUTPUT_INTERNAL_LABEL
10580 with targetm.asm_out.internal_label.
10581 Update copyright dates.
10582 * config/i860/sysv4.h (USER_LABEL_PREFIX): Define.
10583 (CPP_PREDEFINES): Remove.
10584 (TARGET_OS_CPP_BUILTINS): Define.
10585 (GLOBAL_ASM_OP): Define.
10586 (ASM_FILE_START): Remove.
10587 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Define.
10588 (TARGET_ASM_FILE_START): Define.
10589 Update copyright dates.
10590
105912003-08-22 Jason Eckhardt <jle@rice.edu>
10592
10593 * gcc/config.gcc (i860-*-sysv4*): Add target.
10594 * config/i860/i860-protos.h: New.
10595 * config/i860/i860.c: New.
10596 * config/i860/i860.h: New.
10597 * config/i860/i860.md: New.
10598 * config/i860/sysv4.h: New.
10599 * config/i860/varargs.asm: New.
10600 * config/i860/x-sysv4: New.
10601
106022003-08-22 Jason Eckhardt <jle@rice.edu>
10603
10604 * config/pa/pa.c: Replace 'GNU CC' with 'GCC'.
10605 Remove all uses of PARAMS macro.
10606 Convert all function definitions to ISO C90 syntax.
10607 * config/pa/elf.h: Replace 'GNU CC' with 'GCC'.
10608 * config/pa/fptr.c: Likewise.
10609 * config/pa/lib2funcs.asm: Likewise.
10610 * config/pa/long_double.h: Likewise.
10611 * config/pa/milli64.S: Likewise.
10612 * config/pa/pa-64.h: Likewise.
10613 * config/pa/pa-hpux.h: Likewise.
10614 * config/pa/pa-hpux10.h: Likewise.
10615 * config/pa/pa-hpux11.h: Likewise.
10616 * config/pa/pa-linux.h: Likewise.
10617 * config/pa/pa-modes.def: Likewise.
10618 * config/pa/pa-osf.h: Likewise.
10619 * config/pa/pa-pro-end.h: Likewise.
10620 * config/pa/pa.md: Likewise.
10621 * config/pa/pa32-linux.h: Likewise.
10622 * config/pa/pa64-linux.h: Likewise.
10623 * config/pa/pa64-hpux.h: Likewise.
10624 * config/pa/pa64-regs.h: Likewise.
10625 * config/pa/quadlib.c: Likewise.
10626 * config/pa/rtems.h: Likewise.
10627 * config/pa/pa-protos.h: Replace 'GNU CC' with 'GCC' and remove
10628 all uses of the PARAMS macro.
10629 * config/pa/pa.h: Likewise.
10630 * config/pa/som.h: Likewise.
10631
10632 * config/iq2000/iq2000.c: Replace 'GNU CC' with 'GCC'.
10633 Remove all uses of PARAMS macro.
10634 Convert all function definitions to ISO C90 syntax.
10635 * config/iq2000-protos.h: Replace 'GNU CC' with 'GCC'.
10636 Remove all uses of PARAMS macro.
10637 * config/iq2000.h: Remove all uses of PARAMS macro.
10638 * config/iq2000/iq2000.md: Replace 'GNU CC' with 'GCC'.
10639
106402003-08-23 Ulrich Weigand <uweigand@de.ibm.com>
10641
10642 * config/s390/s390-protos.h (s390_output_pool_entry): Declare.
10643 * config/s390/s390.c (gen_consttable): Remove.
10644 (s390_dump_pool): Use UNSPECV_POOL_ENTRY for pool entry insns.
10645 (s390_output_pool_entry): New function.
10646 * config/s390/s390.md (UNSPECV_POOL_QI, UNSPECV_POOL_HI,
10647 UNSPECV_POOL_SI, UNSPECV_POOL_DI, UNSPECV_POOL_TI,
10648 UNSPECV_POOL_SF, UNSPECV_POOL_DF): Remove, replace by ...
10649 (UNSPECV_POOL_ENTRY): ... this new constant.
10650 ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
10651 "consttable_ti", "consttable_sf", "consttable_df"): Remove ...
10652 ("*pool_entry"): ... and replace by this new insn.
10653 ("literal_pool_31"): Do not emit anchor label if pool empty.
10654
10655 * config/s390/s390.c (struct machine_function): Add save_return_addr_p.
10656 (s390_optimize_prolog): Save RETURN_REGNUM if save_return_addr_p.
10657 (s390_fixup_clobbered_return_reg): Remove.
10658 (s390_reorg): Don't call s390_fixup_clobbered_return_reg.
10659 (s390_return_addr_rtx): Always retrieve return address from save area
10660 slot. Use save_return_addr_p to force slot to be filled.
10661 (s390_emit_prologue): Remove has_hard_reg_initial_val test.
10662
106632003-08-22 Chris Demetriou <cgd@broadcom.com>
10664
10665 * config/mips/mips.h (MASK_FIX_SB1, TARGET_FIX_SB1): New defines.
10666 (TARGET_SWITCHES): Add -mfix-sb1 and -mno-fix-sb1.
10667 * config/mips/mips.md (divdf3, divsf3, sqrtdf2, sqrtsf2): Work
10668 around SB-1 errata if TARGET_FIX_SB1 is set.
10669 (recip.d insn, recip.s insn, rsqrt.d insn, rsqrt.s insn): Likewise.
10670 * doc/invoke.texi: Document MIPS -mfix-sb1 and -mno-fix-sb1.
10671
106722003-08-22 Roger Sayle <roger@eyesopen.com>
10673
10674 * hashtable.c (ht_expand): Avoid calculating rehash for the common
10675 case that the first probe hits an empty hash table slot.
10676
106772003-08-22 Mark Mitchell <mark@codesourcery.com>
10678
10679 * config/ia64/hpux.h (SUPPORTS_INIT_PRIORITY): Define to 0.
10680
106812003-08-22 Mark Mitchell <mark@codesourcery.com>
10682
10683 * config/ia64/ia64.md (*ptr_extend_plus_1): Rename to ...
10684 (ptr_extend_plus_imm): ... this.
10685 * config/ia64/ia64.c (addp4_optimize_ok): Do not disable addp4
10686 optimization in C++.
10687 (ia64_output_mi_thunk): Support ILP32 mode.
10688
106892003-08-22 Bernardo Innocenti <bernie@develer.com>
10690
10691 * gcc/config/m68k/m68k.c (m68k_coff_asm_named_section): remove unused
10692 function.
10693 * gcc/config/m68k/m68k.c (-m68k_svr3_asm_out_constructor): likewise.
10694
106952003-08-22 Kazu Hirata <kazu@cs.umass.edu>
10696
10697 * config/i386/i386.c (const_int_1_operand): Simplify an
10698 integer comparison.
10699
107002003-08-22 Alan Modra <amodra@bigpond.net.au>
10701
10702 * config/fp-bit.c: Specify config/ dir for include of fp-bit.h.
10703 * config/rs6000/ppc64-fp.c: Likewise.
10704
107052003-08-22 Kazu Hirata <kazu@cs.umass.edu>
10706
10707 * cfgcleanup.c: Fix comment typos.
10708 * emit-rtl.c: Likewise.
10709 * optabs.c: Likewise.
10710 * ra-build.c: Likewise.
10711 * rtlanal.c: Likewise.
10712 * tree.h: Likewise.
10713
107142003-08-22 Kazu Hirata <kazu@cs.umass.edu>
10715
10716 * c-decl.c: Fix comment formatting.
10717 * cfgrtl.c: Likewise.
10718 * combine.c: Likewise.
10719 * convert.c: Likewise.
10720 * dominance.c: Likewise.
10721 * dwarf2out.c: Likewise.
10722 * dwarfout.c: Likewise.
10723 * expmed.c: Likewise.
10724 * fold-const.c: Likewise.
10725 * gcov.c: Likewise.
10726 * genattrtab.c: Likewise.
10727 * ggc-common.c: Likewise.
10728 * mips-tfile.c: Likewise.
10729 * regmove.c: Likewise.
10730
107312003-08-22 Kazu Hirata <kazu@cs.umass.edu>
10732
10733 * builtin-attrs.def: Fix comment formatting.
10734 * c-pretty-print.c: Likewise.
10735 * diagnostic.h: Likewise.
10736 * langhooks.h: Likewise.
10737 * recog.c: Likewise.
10738 * simplify-rtx.c: Likewise.
10739 * tree.def: Likewise.
10740
107412003-08-22 Bernardo Innocenti <bernie@develer.com>
10742
10743 * config/m68k/m68k-protos.h: Convert to ISO C90.
10744 * config/m68k/m68k.c: Likewise.
10745
107462003-08-21 Bernardo Innocenti <bernie@develer.com>
10747 Paul Dale <pauli@snapgear.com>
10748 Peter Barada <peter@baradas.org>
10749
10750 * config/m68k/m68k.c (m68k_rtx_costs): Adjust mul/div costs for
10751 ColdFire cores.
10752
107532003-08-21 Zack Weinberg <zack@codesourcery.com>
10754
10755 * Makefile.in (INCLUDES): Remove -I$(srcdir)/config.
10756 * config.gcc (*-*-openbsd): Don't set tm_file.
10757 (alpha*-*-openbsd, arm*-*-coff*, arm*-wince-pe*,
10758 arm-*-pe*, avr-*-*, h8300-*-rtems*, h8300-*-elf*,
10759 h8300-*-*, hppa*-*-osf*, hppa*-*-bsd*, hppa*-*-hpux*,
10760 i370-*-opened*, i370-*-mvs*, i370-*-linux*, i?86-*-openbsd*,
10761 i?86-*-lynxos, i?86-*-nto-qnx*, iq2000*-*-elf*, m68000-hp-hpux*,
10762 m68k-hp-hpux*, m68k-*-aout*, m68k-*-coff*, m68020-*-elf*,
10763 m68k-*-elf*, m68k*-*-netbsd*, m68k*-*-openbsd*, m68k-*-sysv4*,
10764 m68k-*-linux*, m68k-*-rtems*, mcore-*-pe*, mips*-*-netbsd*,
10765 mips*-*-openbsd*, rs6000-*-lynxos*, sh*-*-elf*, sh*-*-ka,
10766 sh-*-rtemself, sparc-*-openbsd*, strongarm-*-pe, vax-*-openbsd*,
10767 xscale-*-coff): Use explicit and complete lists of target headers
10768 to include. Move definitions to tm_defines where appropriate.
10769 (hppa*-*-openbsd*, powerpc-*-openbsd*): Comment out stanza for
10770 not-yet-contributed configuration.
10771
10772 * config/lynx.h, config/alpha/openbsd.h, config/arm/coff.h
10773 * config/avr/avr.h, config/frv/frv.h, config/h8300/elf.h
10774 * config/i370/linux.h, config/i370/mvs.h, config/i370/oe.h
10775 * config/i386/nto.h, config/iq2000/iq2000.h,
10776 * config/m68k/coff.h, config/m68k/hp310.h, config/m68k/hp320.h
10777 * config/m68k/linux.h, config/m68k/m68k-aout.h
10778 * config/m68k/m68k-none.h, config/m68k/m68kv4.h
10779 * config/m68k/netbsd.h, config/m68k/openbsd.h
10780 * config/m68k/sgs.h, config/mcore/mcore-pe.h,
10781 * config/mips/netbsd.h, config/mips/openbsd.h, config/pa/pa.h,
10782 * config/rs6000/lynx.h, config/sh/embed-elf.h, config/sparc/openbsd.h:
10783 Remove includes of other target config headers, and
10784 definitions of macros moved to tm_defines lists. Add #undefs
10785 where now necessary to prevent redefinition warnings.
10786
10787 * config/h8300/coff.h: New file split out of...
10788 * config/h8300/elf.h: ...here.
10789 * config/m68k/hp320base.h: New file split out of...
10790 * config/m68k/hp320.h: ...here.
10791 * config/rs6000/lynxbase.h: New file split out of...
10792 * config/rs6000/lynx.h: ...here.
10793
10794 * config/m68k/hp310g.h, config/m68k/hp320g.h, config/m68k/hpux7.h
10795 * config/m68k/m68k-coff.h, config/mips/openbsd-be.h: Delete file.
10796
10797 * config/sol2.h: Remove #if 0-ed #include of sys/mman.h.
10798 * config/m68k/m68kelf.h: Remove commented out #include of m68k/sgs.h.
10799 * config/mcore/mcore.h: Don't include hwint.h nor machmode.h.
10800 Remove unnecessary #ifndef.
10801 * config/s390/s390.h: Prefix #include of s390/fixdfdi.h
10802 [under IN_LIBGCC2] with config/.
10803
108042003-08-21 Per Bothner <pbothner@apple.com>
10805
10806 * cppfiles.c (stack_file): Correctly pass return_at_eof parameter
10807 to cpp_push_buffer.
10808 * cpplex.c (_cpp_get_fresh_line): Don't buffer->prev - handled
10809 by return_at_eof check. Always call _cpp_pop_buffer at end.
10810
108112003-08-21 Kazu Hirata <kazu@cs.umass.edu>
10812
10813 PR target/11805
10814 * config/h8300/h8300.md (two anonymous patterns): Remove.
10815
108162003-08-21 Richard Sandiford <rsandifo@redhat.com>
10817
10818 * config/mips/mips.h (MUST_PASS_IN_STACK): Remove BLKmode clause.
10819 * config/mips/mips.c (function_arg_pass_by_reference): Never return
10820 true for n32 & n64.
10821
108222003-08-21 Josef Zlomek <zlomekj@suse.cz>
10823
10824 * fold-const.c (fold): Fix bug in (A & C) == D where D & ~C != 0
10825 and similarly in (A | C) == D where C & ~D != 0.
10826
108272003-08-20 Geoffrey Keating <geoffk@apple.com>
10828
10829 PR 8180
10830 * configure.in: When testing with_libs and with_headers, treat
10831 'no' as unset. Based on a patch by Dan Kegel <dank@kegel.com>.
10832 * configure: Regenerate.
10833
108342003-08-20 Peter Barada <peter@baradas.org>
10835
10836 * longlong.h (umul_ppmm): Add ColdFire support.
10837
108382003-08-20 Peter Barada <peter@baradas.org>
10839 Bernardo Innocenti <bernie@develer.com>
10840
10841 * config/m68k/m68k-none.h: Introduce new ColdFire archs.
10842 * config/m68k/m68k.h: Likewise.
10843 * config/m68k/lb1sf68.asm: Rename __mcf5200__ to __mcoldfire__.
10844 * config/m68k/coff.h: Rename TARGET_5200 to TARGET_COLDFIRE.
10845 * config/m68k/linux.h: Likewise.
10846 * config/m68k/m68k.c: Likewise.
10847 * config/m68k/m68k.md: Likewise.
10848 * config/m68k/m68kelf.h: Likewise.
10849 * config/m68k/netbsd-elf.h: Likewise.
10850 * config/m68k/t-m68kelf: Add multilib targets for new ColdFire archs.
10851
108522003-08-20 Bernardo Innocenti <bernie@develer.com>
10853
10854 * config/m68k/m68k.c: Strip away code depending on NO_ADDSUB_Q definition.
10855 * config/m68k/m68k.md: Likewise.
10856
108572003-08-20 Mark Mitchell <mark@codesourcery.com>
10858
10859 PR java/11996
10860 Revert this change:
10861 2003-08-19 Mark Mitchell <mark@codesourcery.com>
10862 * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
10863 types with precisions other than those given by native machine
10864 modes.
10865
108662003-08-20 Gunther Nikl <gni@gecko.de>
10867
10868 * config/m68k/m68k.md (anonymous define_insn): remove obsolete code
10869 selected by FSGLMUL_USE_S and FSGLDIV_USE_S
10870 * config/m68k/m68k.c (output_move_himode): remove SGS_NO_LI check
10871 * config/m68k/m68k.md (anonymous define_insn): Likewise
10872 * config/m68k/m68k.md (anonymous define_insn): remove ISI_OV check
10873 * config/m68k/m68k.c (standard_68881_constant_p): remove obsolete
10874 code selected by NO_ASM_FMOVECR
10875
108762003-08-20 Gunther Nikl <gni@gecko.de>
10877
10878 * config/m68k/m68k.c (output_move_const_into_data_reg,
10879 output_move_himode): unify MOTOROLA/MIT handling of moveq
10880 * config/m68k/m68k.md (movsi_const0, anonymous define_insn):
10881 Likewise
10882
108832003-08-20 Gunther Nikl <gni@gecko.de>
10884
10885 * config/m68k/m68k.c (m68k_output_function_prologue): use %U in
10886 label name
10887 * config/m68k/m68k.c (m68k_output_function_epilogue): replace
10888 HOST_WIDE_INT_PRINT_DEC with %wd
10889
108902003-08-20 Loren James Rittle <ljrittle@acm.org>
10891
10892 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Handle
10893 redefine warning.
10894
108952003-08-20 Roger Sayle <roger@eyesopen.com>
10896
10897 PR middle-end/11984
10898 * fold-const.c (fold <PLUS_EXPR>): Check for integer constant
10899 operands before calling tree_int_cst_lt when performing associative
10900 transformations.
10901
109022003-08-20 Jason Merrill <jason@redhat.com>
10903
10904 * tree.h (IS_EXPR_CODE_CLASS): Also include 'r' and 's'.
10905 (EXPR_CHECK): Don't check for 'r' or 's' if we're
10906 checking IS_EXPR_CODE_CLASS.
10907 * calls.c (calls_function_1): Likewise.
10908 * fold-const.c (fold): Likewise.
10909 * tree.c (iterative_hash_expr): Likewise.
10910 * tree-inline.c (walk_tree, copy_tree_r): Likewise.
10911
109122003-08-20 Gunther Nikl <gni@gecko.de>
10913
10914 * config/m68k/m68k.c (m68k_output_mi_thunk): delete obsolete code
10915 depending on MOTOROLA_BSR
10916 * config/m68k/m68k.md (anonymous define_insn): Likewise
10917
109182003-08-20 Jason Merrill <jason@redhat.com>
10919
10920 * builtins.c (expand_builtin_mathfn): Use get_callee_fndecl.
10921 (expand_builtin_mathfn2, expand_builtin, builtin_mathfn_code,
10922 fold_trunc_transparent_mathfn, fold_builtin): Likewise.
10923 * dojump.c (do_jump): Likewise.
10924 * fold-const.c (operand_equal_p, fold): Likewise.
10925 (tree_expr_nonnegative_p): Likewise.
10926
10927 * stor-layout.c (do_type_align): Only copy DECL_USER_ALIGN from
10928 TYPE_USER_ALIGN for FIELD_DECLs.
10929
10930 * attribs.c (decl_attributes): Rebuild the function pointer type after
10931 changing the target type.
10932 * tree.c (get_qualified_type): Also check that the attributes match.
10933
109342003-08-19 Matt Kraai <kraai@alumni.cmu.edu>
10935
10936 * Makefile.in (STAGESTUFF): Move cc1obj$(exeext) from here ...
10937 * objc/config-lang.in (stagestuff): ... to here.
10938
109392003-08-19 Mark Mitchell <mark@codesourcery.com>
10940
10941 PR c++/11946
10942 * convert.c (convert_to_integer): Use CONVERT_EXPR (instead of
10943 NOP_EXPR) when necessary.
10944 * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
10945 types with precisions other than those given by native machine
10946 modes.
10947
109482003-08-19 Geoffrey Keating <geoffk@apple.com>
10949
10950 * cpppch.c (cpp_valid_state): Re-add warning about PCH not used
10951 because some macro is defined.
10952
10953 * config/darwin.h (LINK_COMMAND_SPEC): Add -arch and -arch_only
10954 options.
10955 * config/i386/darwin.h (ASM_SPEC): New.
10956 (SUBTARGET_EXTRA_SPECS): New.
10957 * config/rs6000/darwin.h (ASM_SPEC): New.
10958 (SUBTARGET_EXTRA_SPECS): New.
10959 * configure.in: Don't set CROSS or SYSTEM_HEADER_DIR when building
10960 a cross-compiler between two different processors on Darwin.
10961 * configure: Regenerate.
10962
109632003-08-19 Kazu Hirata <kazu@cs.umass.edu>
10964
10965 * builtins.c: Fix comment typos.
10966 * c-common.c: Likewise.
10967 * c-decl.c: Likewise.
10968 * c-pretty-print.c: Likewise.
10969 * cfgbuild.c: Likewise.
10970 * cfglayout.c: Likewise.
10971 * cfgloopanal.c: Likewise.
10972 * cgraphunit.c: Likewise.
10973 * cppfiles.c: Likewise.
10974 * dwarfout.c: Likewise.
10975 * expr.c: Likewise.
10976 * fold-const.c: Likewise.
10977 * gcse.c: Likewise.
10978 * ggc-page.c: Likewise.
10979 * haifa-sched.c: Likewise.
10980 * pretty-print.c: Likewise.
10981 * tree.c: Likewise.
10982 * tree.h: Likewise.
10983 * value-prof.c: Likewise.
10984
109852003-08-19 Kazu Hirata <kazu@cs.umass.edu>
10986
10987 * c-decl.c: Follow spelling conventions.
10988 * cppfiles.c: Likewise.
10989
109902003-08-19 Kazu Hirata <kazu@cs.umass.edu>
10991
10992 * c-common.c: Fix comment formatting.
10993 * c-common.h: Likewise.
10994 * c-decl.c: Likewise.
10995 * cppinit.c: Likewise.
10996 * cpplib.h: Likewise.
10997 * emit-rtl.c: Likewise.
10998 * input.h: Likewise.
10999 * line-map.h: Likewise.
11000 * opts.c: Likewise.
11001 * opts.h: Likewise.
11002 * simplify-rtx.c: Likewise.
11003
110042003-08-19 Daniel Jacobowitz <drow@mvista.com>
11005
11006 * unwind-c.c: Add libgcc-style exception.
11007 * unwind-dw2.c: Likewise.
11008 * unwind-pe.h: Likewise.
11009 * unwind-sjlj.c: Likewise.
11010 * unwind.inc: Likewise.
11011
110122003-08-19 Andrew Pinski <pinskia@physics.uc.edu>
11013
11014 PR c/5582 PR c++/10538
11015 * langhooks-def.h (lhd_decl_uninit): Declare.
11016 (LANG_HOOKS_DECL_UNINIT): New macro.
11017 (LANG_HOOKS_INITIALIZER): Adjust.
11018 * langhooks.h (struct lang_hooks): Add new field
11019 decl_uninit.
11020 * langhooks.c (lhd_decl_uninit): Define.
11021 * c-common.c (c_decl_uninit_1): New function.
11022 (c_decl_uninit): New function.
11023 (warn_init_self): Define.
11024 * c-common.h (c_decl_uninit): Declare.
11025 (warn_init_self): Declare.
11026 * c.opt: Introduce -Winit-self.
11027 * c-opts.c (c_common_handle_options): Set warn_init_self.
11028 * c-lang.c (LANG_HOOKS_DECL_UNINIT): Define.
11029 * objc/objc-lang.c (LANG_HOOKS_DECL_UNINIT): Define.
11030 * function.c (uninitialized_vars_warning): Call the language hook.
11031 * doc/invoke.texi: Document -Winit-self.
11032
110332003-08-19 Chris Demetriou <cgd@broadcom.com>
11034
11035 * config/mips/mips.md: Adjust SI-mode "trap_if" instruction
11036 to use better predicates and constraints. Define new
11037 instruction to handle "trap_if" with DI-mode arguments.
11038 (conditional_trap): FAIL if trap code is not 0.
11039
110402003-08-19 Andrew Pinski <pinskia@physics.uc.edu>
11041
11042 * config/i386/i386.c (legitimate_pic_address_disp_p): Change the
11043 strstr with $pb to a strcompare with "<pic base>"
11044 (ix86_output_addr_diff_elt): Output the real pic base.
11045
110462003-08-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
11047
11048 * langhooks-def.h (LANG_HOOKS_INITIALIZE_DIAGNOSTICS): Fix spelling.
11049 (LANG_HOOKS_INITIALIZER): Correct.
11050 * c-lang.c: Likewise.
11051
110522003-08-19 Jan Hubicka <jh@suse.cz>
11053
11054 * cgraph.c (cgraph_mark_needed_node): Call notice_global_symbol.
11055 (cgraph_varpool_mark_needed_node): Likewise.
11056 * cgraph.h (notice_global_symbol): Declare
11057 * varasm.c (notice_global_symbol): Break out from ...
11058 (assemble_start_function): ... here; update for variables.
11059 (assemble_variable): Use notice_global_symbol.
11060
110612003-08-19 Richard Sandiford <rsandifo@redhat.com>
11062
11063 * config/mips/mips.c (mips_va_arg): If EABI_FLOAT_VARARGS_P,
11064 expect SFmode and DFmode arguments to be passed in FPRs,
11065 regardless of the underlying type.
11066
110672003-08-19 Richard Sandiford <rsandifo@redhat.com>
11068
11069 PR target/11924
11070 * config/mips/mips.c (INTERNAL_SYMBOL_P): New macro.
11071 (mips_classify_symbol, m16_usym8_4, m16_usym5_4): Use it.
11072
110732003-08-18 Matt Kraai <kraai@alumni.cmu.edu>
11074
11075 PR c/11207
11076 * c-typeck.c (set_init_index): Check for negative index.
11077
110782003-08-18 Bob Wilson <bob.wilson@acm.org>
11079
11080 * config/xtensa/crti.asm (_init, _fini): Add alternate code for new
11081 call0 ABI.
11082 * config/xtensa/crtn.asm (_init, _fini): Likewise.
11083 * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
11084 __umodsi3, __modsi3): Likewise.
11085 * config/xtensa/t-xtensa (crti.o, crtn.o): Add $(GCC_CFLAGS) and
11086 $(INCLUDES).
11087
110882003-08-18 Aldy Hernandez <aldyh@redhat.com>
11089
11090 * config/rs6000/spe.md ("*nabssf2_gpr"): New.
11091
110922003-08-18 Richard Sandiford <rsandifo@redhat.com>
11093
11094 * config/mips/mips.md: Quote C code in braces. Remove use of
11095 fake const0_rtx operands. Remove double backslashes. Use \;.
11096 Remove workarounds for bogus warnings.
11097
110982003-08-18 Richard Sandiford <rsandifo@redhat.com>
11099
11100 * config/mips/mips.md (muldf3, mulsf3): Don't call a gen_* function.
11101 (muldf3_internal, muldf3_r4300): Select based on TARGET_4300_MUL_FIX
11102 rather than TARGET_MIPS4300.
11103 (mulsf3_internal, mulsf3_r4300): Likewise.
11104
111052003-08-18 Richard Sandiford <rsandifo@redhat.com>
11106
11107 * config/mips/mips.md: Renumber unspecs. Clean up comments.
11108
111092003-08-17 Roger Sayle <roger@eyesopen.com>
11110
11111 * simplify-rtx.c (associative_constant_p): New function to test
11112 whether an RTX expression is an immediate constant.
11113 (simplify_associative_operation): New function to perform some
11114 reassociation optimizations of associative binary expressions.
11115 (simplify_binary_operation): Use simplify_associative_operation
11116 to simplify PLUS, MULT, AND, IOR, XOR, SMIN, SMAX, UMIN and UMAX.
11117 Floating point expressions are only reassociated when unsafe
11118 math optimizations are permitted.
11119
111202003-08-17 Andreas Jaeger <aj@suse.de>
11121
11122 * config/alpha/alpha.md: Remove usage of PARAMS.
11123
11124 * config/i386/cygwin.h: Convert K&R prototypes to ISO C90.
11125 * config/i386/i386-interix.h: Likewise.
11126 * config/i386/winnt.c: Likewise.
11127 * config/i386/cygming.h: Likewise.
11128 * config/i386/cygwin2.c: Likewise.
11129 * config/darwin.c: Likewise.
11130 * config/darwin-c.c: Likewise.
11131 * config/darwin-protos.h: Likewise.
11132 * config/darwin.h: Likewise.
11133 * config/s390/s390-protos.h: Likewise.
11134 * config/s390/s390.c: Likewise.
11135 * config/ia64/ia64.c: Likewse
11136 * config/ia64/ia64-protos.h: Likewise.
11137 * config/ia64/ia64-c.c: Likewise.
11138
111392003-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11140
11141 * config/sparc/sparc.c: Convert to ISO C.
11142
11143 * config/sparc/sparc-protos.h: Don't use the PARAMS macro.
11144 * config/sparc/sparc.c: Likewise.
11145
111462003-08-16 Nathan Sidwell <nathan@codesourcery.com>
11147
11148 PR c++/11512
11149 * stmt.c (expand_expr_stmt_value): Don't warn about any void
11150 typed expression.
11151
111522003-08-16 Jan Hubicka <jh@suse.cz>
11153
11154 * i386.c (ix86_fntype_regparm): Rename from ...
11155 (ix86_function_regparm): ... this one; add fastcall and local
11156 functions.
11157 (ix86_function_ok_for_sibcall): Update.
11158 (ix86_return_pops_args): Likewise.
11159 (init_cumulative_args): Likewise.
11160 (x86_can_output_mi_thunk): Likewise.
11161 (function_arg): Fix formating.
11162 (x86_this_parameter): Fix fastcall.
11163 (x86_output_mi_thunk): Likewise.
11164
11165 * cgraph.c (cgraph_mark_needed_node): Do not mark functions without
11166 body as reachable; mark nested functions as needed too.
11167 (dump_cgraph): Do not output global.calls.
11168 * cgraph.h (cgraph_global_info): Kill.
11169 * cgraphunit.c (cgraph_finalize_function): Enqueue needed functions.
11170 (record_call_1): Speedup.
11171 (cgraph_analyze_function): Break out from ...; compute inlining
11172 parameters.
11173 (cgraph_finalize_compilation_unit): ... here.
11174 (cgraph_mark_inline): Kill computation of calls.
11175 (cgraph_decide_inlining): Do not compute most of initial values.
11176
111772003-08-14 Roger Sayle <roger@eyesopen.com>
11178
11179 * fold-const.c (negate_expr_p): MULT_EXPRs and RDIV_EXPRs are easy
11180 to negate if either operand is easy to negate, if we don't care
11181 about sign-dependent rounding.
11182 (negate_expr): Make the logic to negate a REAL_CST explicit.
11183 Attempt to negate a MULT_EXPR or RDIV_EXPR by negating an operand
11184 that's easy to negate, if we don't honor sign-dependent rounding.
11185 (fold <MULT_EXPR>): Optimize -A * B as A * -B if B is easy to
11186 negate, and the symmetric A * -B as -A * B if A is easy to negate.
11187 (fold <RDIV_EXPR>): Likewise, optimize -A/B and C/-D as A/-B and
11188 -C/D if B and C are cheap to negate. Add an explicit rule to
11189 optimize X/-1.0 as -X when we don't care about signaling NaNs.
11190
111912003-08-14 Zack Weinberg <zack@codesourcery.com>
11192
11193 * Makefile.in (tm_file): Rename tm_include_list.
11194 (tm_p_file): Rename tm_p_include_list.
11195 (build_xm_file): Rename build_xm_include_list.
11196 (host_xm_file): Rename host_xm_include_list.
11197 (xm_file): Rename xm_include_list.
11198 (xm_file_list): Add to be substituted.
11199 (cs-config.h, cs-bconfig.h, cs-tconfig.h, cs-tm.h, cs-tm_p.h):
11200 Update to match.
11201 (bt-load.o): Add missing dependency on $(TM_H).
11202 * configure.in: Prefix value of EXTRA_MODES_FILE with config/.
11203 For each of tm_file, tm_p_file, xm_file, host_xm_file, and
11204 build_xm_file, generate both *_file_list and *_include_list
11205 values from it. (xm_file_list was formerly not being generated.)
11206 In *_include_list, prefix the names of all headers found in
11207 $(srcdir)/config with config/. In each loop, consider only
11208 the special case files that can actually appear in that list.
11209 AC_SUBST all *_file_list and all *_include_list variables; do
11210 not AC_SUBST the plain *_file variables.
11211 * configure: Regenerate.
11212
112132003-08-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11214
11215 * cfg.c (dump_edge_info): Add name of loop_exit edge flag.
11216
112172003-08-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11218
11219 * pa.c (pa_adjust_insn_length): Delete adjustment for delay slot in
11220 direct calls.
11221 (attr_length_call): Include it here. Improve length estimate for
11222 local calls.
11223 (output_call): Use targetm.binds_local_p.
11224
112252003-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11226
11227 * builtins.c (CASE_MATHFN): New helper macro.
11228 (mathfn_built_in): Simplify and sort.
11229
11230 * protoize.c (substr): Delete, callers changed to `strstr'.
11231
112322003-08-13 Zack Weinberg <zack@codesourcery.com>
11233
11234 * config.gcc (iq2000*-*-elf*): Don't set xm_file.
11235 * config/iq2000/xm-iq2000.h: Delete file.
11236
112372003-08-13 Geoffrey Keating <geoffk@apple.com>
11238
11239 * gengtype.c (walk_type): Process a subobject before processing
11240 the pointer that points to the subobject.
11241
112422003-08-13 Per Bothner <pbothner@apple.com>
11243
11244 * regclass.c (init_reg_modes): Make non-static.
11245 Rename to init_reg_modes_once per new naming convention.
11246 (init_regs): Don't call init_reg_modes here.
11247 * emit-rtl.c (init_emit_once): Call init_reg_modes_once here instead.
11248 * rtl.h (init_reg_modes_once): New declaration.
11249 * toplev.c (backend_init): Call init_regs after init_emit_once.
11250
112512003-08-13 Kaz Kojima <kkojima@gcc.gnu.org>
11252
11253 * config/sh/linux.h (DBX_REGISTER_NUMBER): Define so to map a
11254 special index for MD_FALLBACK_FRAME_STATE_FOR to itself.
11255
112562003-08-13 J"orn Rennecke <joern.rennecke@superh.com>
11257
11258 * sh.c (sh_get_pr_initial_val): Always wrap in unspec for TARGET_SH1.
11259 * sh.md (load_ra): Change insn predicate to TARGET_SH1.
11260
112612003-08-13 Dale Johannesen <dalej@apple.com>
11262
11263 * config/rs6000/rs6000.md (ctrsi, ctrdi): Reenable
11264 handling of decrement-and-branch farther than 32 bits.
11265
112662003-08-12 Kelley Cook <kelleycook@wideopenwest.com>
11267
11268 * configure.in (make_compare_target): Move test to ...
11269 * aclocal.m4 (gcc_AC_PROG_CMP_IGNORE_INITIAL): here.
11270 * configure: Regenerate.
11271
112722003-08-12 Richard Sandiford <rsandifo@redhat.com>
11273
11274 * config/mips/iris6.h: Convert to C90 prototypes.
11275 * config/mips/irix6-libc-compat.c: Likewise.
11276 * config/mips/mips-protos.h: Likewise.
11277 * config/mips/mips.c: Likewise.
11278
112792003-08-12 Nathanael Nerode <neroden@gcc.gnu.org>
11280
11281 fixinc/inclhack.def (svr4_krnl): Rename from svr4_kernel. Enable
11282 for selected machines. Comment heavily.
11283 fixinc/fixincl.x: Rebuild.
11284 fixinc/tests/base/fs/rfs/rf_cache.h: New file.
11285
112862003-08-12 Richard Sandiford <rsandifo@redhat.com>
11287
11288 * config/mips/mips.h: Tweak various comments.
11289 * config/mips/mips.c: Likewise.
11290
112912003-08-11 James E Wilson <wilson@tuliptree.org>
11292
11293 PR optimization/11319
11294 PR target/10021
11295 * alias.c (find_base_value, case REG): Return 0 not src if no base
11296 found.
11297
112982003-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11299
11300 * gcse.c (gmalloc): Fix last change.
11301
113022003-08-11 Roger Sayle <roger@eyesopen.com>
11303
11304 * simplify-rtx.c (simplify_binary_operation): Replace calls to
11305 gen_rtx_NEG and gen_rtx_NOT with calls to simplify_gen_unary,
11306 and calls to gen_rtx_PLUS, gen_rtx_MULT, gen_rtx_LSHIFTRT,
11307 gen_rtx_ASHIFT and gen_rtx_AND with calls to simplify_gen_binary.
11308
113092003-08-11 Roger Sayle <roger@eyesopen.com>
11310
11311 * expr.c (expand_expr): If an ABS_EXPR has a complex type, abort.
11312 * c-typeck.c (build_unary_op): COMPLEX_TYPE is not a valid
11313 typecode for an ABS_EXPR.
11314
11315 * doc/c-tree.texi: Document ABS_EXPR.
11316
113172003-08-11 Roger Sayle <roger@eyesopen.com>
11318
11319 * fold-const.c (fold): Optimize any associative floating point
11320 operator with -funsafe-math-optimizations, not just MULT_EXPR.
11321
113222003-08-11 Kaz Kojima <kkojima@gcc.gnu.org>
11323
11324 * config/sh/lib1funcs.asm (__udivdi3): Add .type and .size
11325 information in SHmedia case too.
11326 (__divdi3, __umoddi3, __moddi3, __init_trampoline, __ic_invalidate):
11327 Likewise.
11328 (__set_fpscr): Use an access via GOT for PIC case.
11329
113302003-08-11 Kelley Cook <kelleycook@wideopenwest.com>
11331
11332 * configure.in (intermodule): Make switch test more portable.
11333 * configure: Regenerate.
11334
113352003-08-11 Kelley Cook <kelleycook@wideopenwest.com>
11336
11337 * Makefile.in (cleanstrap): Pass BOOT_CFLAGS to bootstrap.
11338 (restrap): Likewise.
11339
113402003-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11341
11342 * gcse.c (gmalloc): Argument is a size_t. Add ATTRIBUTE_MALLOC.
11343 (grealloc): Size argument is a size_t.
11344 (gcalloc): New function. Use throughout in lieu of
11345 gmalloc/memset.
11346
11347 * config/avr/avr.c (avr_init_once): Use xcalloc in lieu of
11348 xmalloc/memset.
11349 * config/ia64/ia64.c (ia64_reorg): Likewise.
11350 * conflict.c (conflict_graph_new): Likewise.
11351 * fixinc/fixincl.c (run_compiles): Likewise.
11352 * genattrtab.c (optimize_attrs): Likewise.
11353 * genrecog.c (new_decision): Likewise.
11354 * haifa-sched.c (schedule_block): Likewise.
11355 * hashtable.c (ht_create): Likewise.
11356
113572003-08-11 Bob Wilson <bob.wilson@acm.org>
11358
11359 * config/xtensa/lib2funcs.S: Fix whitespace.
11360 * config/xtensa/xtensa.md (all insns and expanders): Use brace block
11361 syntax where appropriate. Remove unnecessary backslash escapes.
11362 Reformat comments and fix some code formatting.
11363 (extendqisi2): Rearrange conditional.
11364 (*btrue, *bfalse, *ubtrue, *ubfalse, *bittrue, *bitfalse, *masktrue,
11365 *maskfalse, movsicc_internal0, movsfcc_internal0): Call abort instead
11366 of fatal_insn.
11367
113682003-08-11 Richard Sandiford <rsandifo@redhat.com>
11369
11370 * config/mips/mips.c: Various formatting fixes.
11371 (override_options): Resync -mtune handling with gas.
11372 (mips_issue_rate): Rearrange like mips_use_dfa_pipeline_interface.
11373 * config/mips/mips.h: More formatting fixes.
11374 (mips_abi): Move declaration.
11375 * config/mips/mips.md (exception_receiver): Add mode to
11376 unspec_volatile.
11377
113782003-08-11 Aldy Hernandez <aldyh@redhat.com>
11379
11380 * config/rs6000/rs6000.c (spe_init_builtins): Handle evsplati and
11381 evsplatfi here.
11382 (bdesc_1arg): Remove evsplati and evsplatfi.
11383
113842003-08-11 J"orn Rennecke <joern.rennecke@superh.com>
11385
11386 * dwarf2asm.c (dw2_output_indirect_constant_1): Take user_label_prefix
11387 into account.
11388
113892003-08-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11390
11391 * builtins.c (expand_builtin_strcat): Optimize constant strings.
11392
113932003-08-10 Gabriel Dos Reis <gdr@integrable-solutions.net>
11394
11395 * pretty-print.c (pp_base_indent): Rename from pp_indent.
11396 * c-pretty-print.h (pp_c_pretty_print_flag)s: New datatype.
11397 (struct c_pretty_print_info): Add more fields.
11398 (pp_c_left_paren): Move to c-pretty-print.c.
11399 (pp_c_right_paren): Likewise.
11400 (pp_c_left_brace): Likewise.
11401 (pp_c_right_brace): Likewise.
11402 (pp_c_left_bracket): Likewise.
11403 (pp_c_right_bracket): Likewise.
11404 (pp_c_declarator): Declare.
11405 (pp_c_direct_declarator): Likewise.
11406 (pp_c_specifier_qualifier_list): Likewise.
11407 (pp_c_type_id): Likewise.
11408 * c-pretty-print.c (pp_c_cv_qualifier): Change prootype. Rework..
11409 (pp_c_type_qualifier_list): New.
11410 (pp_c_pointer): Likewise.
11411 (pp_c_parameter_type_list): Likewise.
11412 (pp_c_function_definition): Likewise.
11413 (pp_c_id_expression): Likewise.
11414 (pp_c_simple_type_specifier): Tidy.
11415 (pp_c_unary_expression): Likewise.
11416 (pp_c_expression): Likewise.
11417 (pp_c_pretty_printer_init): Likewise.
11418 (pp_c_specifier_qualifier_list): Rework..
11419 (pp_c_abstract_declarator): Likewise.
11420 (pp_c_postfix_expression): Likewise.
11421 (pp_c_primary_expression): Likewise.
11422 (pp_c_cast_expression): Likewise.
11423 (pp_c_direct_abstract_declarator): Likewise.
11424 (pp_c_storage_class_specifier): Likewise.
11425 (pp_c_function_specifier): Likewise.
11426 (pp_c_declaration_specifiers): Likewise.
11427 (pp_c_direct_declarator): Likewise.
11428 (pp_c_declarator): Likewise.
11429 (pp_c_declaration): Likewise.
11430 (pp_c_statement): Likewise.
11431 (pp_c_integer_constant): Rename from pp_c_integer_literal.
11432 (pp_c_character_constant): Rename from pp_c_character_literal.
11433 (pp_c_bool_constant): Rename from pp_c_bool_literal.
11434 (pp_c_enumeration_constant): Rename from pp_c_enumerator.
11435 (pp_c_floating_constant): Rename from pp_c_real_literal.
11436 (pp_c_constant): Rename from pp_c_literal.
11437 * c-lang.c: Include diagnostic.h and c-pretty-print.h
11438 (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): Define.
11439 (c_initialize_diagnostics): New.
11440 * Makefile.in (c-lang.o): Update dependency.
11441
114422003-08-10 Nathan Sidwell <nathan@codesourcery.com>
11443
11444 * c-typeck.c (digest_init): Add conversion for VECTOR_TYPEs.
11445
114462003-08-10 Richard Sandiford <rsandifo@redhat.com>
11447
11448 * config/mips/mips.c (mips_no_mips16_string): Remove.
11449 (override_options): Don't handle -mips16 as part of -mipsN.
11450 * config/mips/mips.h (mips_no_mips16_string): Remove declaration.
11451 (TARGET_SWITCHES): Add -mips16 and -mno-mips16 entries.
11452 (TARGET_OPTIONS): Remove -mno-mips16.
11453
114542003-08-10 Richard Sandiford <rsandifo@redhat.com>
11455
11456 * config/mips/mips-protos.h (coprocessor_operand): Remove declaration.
11457 (coprocessor2_operand): Likewise.
11458 * config/mips/mips.c (STAB_CODE_TYPE): Remove.
11459 (lookup_name): Remove declaration.
11460 (abort_with_insn): Remove. Replace all uses with fatal_insn.
11461 (mips16, mips_abicalls): Remove.
11462 (mips_char_to_class): Remove initialiser: all entries are NO_REGS.
11463 (arith32_operand, large_int, true_reg_or_0_operand): Remove.
11464 (coprocessor_operand, coprocessor2_operand): Remove.
11465 (override_options): Don't set mips16 or mips_abicalls.
11466 (print_operand): Don't expect SIGN_EXTEND operands.
11467 (mips_secondary_reload_class): Likewise.
11468 (mips_output_conditional_branch): Remove disabled long-branch code.
11469 * config/mips/mips.h (call_used_regs): Remove declaration.
11470 (may_call_alloca): Likewise.
11471 (mips_cpu_attr, mips_abicalls_type, mips_abicalls_attr): Remove.
11472 (mips_abicalls, mips16): Remove declarations.
11473 (ASM_FINAL_SPEC, LIB_SPEC): Remove.
11474 (CC1_SPEC): Remove outdated comment.
11475 (MIPS_VERSION, MACHINE_TYPE): Remove.
11476 (TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
11477 (PC_REGNUM, STACK_POINTER_OFFSET): Remove disabled definitions.
11478 (STRUCT_VALUE_RETURN_REGNUM, STACK_DYNAMIC_OFFSET): Likewise.
11479 (PUSH_ROUNDING): Likewise.
11480 (ASSEMBLER_SCRATCH_REGNUM): Remove.
11481 * config/mips/mips.md: Replace mips_cpu_attr with mips_tune
11482 and mips16 with TARGET_MIPS16.
11483
114842003-08-09 Per Bothner <pbothner@apple.com>
11485
11486 * cppinit.c (cpp_read_main_file): Split out source-independent
11487 initialization to separate function ...
11488 (cpp_post_options): New function.
11489 * cppfiles.c (cpp_stack_file): Rename public name to ...
11490 (_cpp_stack_file): New internal function name.
11491 * cpplib.h: Update accordingly.
11492 * cppinit.c: (cpp_create_reader): Initialize cpp_readers line here.
11493 (cpp_read_main_file): Don't initialize line here.
11494 * c-opts.c (c_common_post_options): Call cpp_post_options.
11495 (c_common_parse_file): Call cpp_read_main_file, not cpp_stack_file.
11496 * fix-header.c (read_scan_file): Call cpp_post_options.
11497
114982003-08-09 Per Bothner <per@bothner.com>
11499
11500 * c-decl.c (SCOPE_LIST_APPEND): Remove bogus line continuation.
11501
115022003-08-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11503
11504 * pa.c (pa_asm_output_mi_thunk): Fix typo.
11505
115062003-08-09 Neil Booth <neil@daikokuya.co.uk>
11507
11508 PR preprocessor/11839
11509 * cppfiles.c (open_file): Handle ENOTDIR.
11510
115112003-08-09 Richard Sandiford <rsandifo@redhat.com>
11512
11513 PR target/11699
11514 * config/mips/mips.c (override_options): Reject -mabi=eabi -mabicalls.
11515
115162003-08-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11517
11518 * pa.md (extzv, extv, insv): Fix operand limit checks. Fail if
11519 source/destination is not a register operand.
11520
115212003-08-08 Richard Henderson <rth@redhat.com>
11522
11523 PR target/11535
11524 * config/ia64/ia64.c (ia64_initial_elimination_offset): Remove
11525 RETURN_ADDRESS_POINTER_REGNUM.
11526 (ia64_expand_prologue): Don't frob it.
11527 (ia64_output_function_epilogue): Likewise.
11528 (ia64_return_addr_rtx): New.
11529 (ia64_split_return_addr_rtx): New.
11530 * config/ia64/ia64-protos.h: Update.
11531 * config/ia64/ia64.h (FIRST_PSEUDO_REGISTER): Decrement.
11532 (RETURN_ADDRESS_POINTER_REGNUM): Remove.
11533 (GENERAL_REGNO_P): Don't check it.
11534 (AR_*_REGNUM): Renumber.
11535 (FIXED_REGISTERS): Remove RETURN_ADDRESS_POINTER_REGNUM.
11536 (CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS): Likewise.
11537 (REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Likewise.
11538 (ELIMINABLE_REGS, REGISTER_NAMES): Likewise.
11539 (RETURN_ADDR_RTX): Use ia64_return_addr_rtx.
11540 * config/ia64/ia64.md (UNSPEC_RET_ADDR): New.
11541 (movdi_ret_addr): New.
11542
115432003-08-08 Geoffrey Keating <geoffk@apple.com>
11544
11545 * config.gcc (powerpc-*-darwin*): Don't build a soft-float multilib.
11546
115472003-08-08 Roger Sayle <roger@eyesopen.com>
11548
11549 * tree.h (get_identifier) Define a macro form of get_identifier
11550 that calls get_identifier_with_length when the string is constant.
11551 (get_identifier_with_length): Change type of second argument to
11552 size_t in prototype.
11553 * stringpool.c (get_identifier): Undefine the macro before giving
11554 the function definition.
11555 (get_identifier_with_length): Change type of second argument to
11556 size_t in function definition.
11557 * hashtable.c (calc_hash): Change type of second argument to size_t.
11558 (ht_lookup): Change type of third argument to size_t. Reorganize
11559 to speed-up the cases where the hash table slot is empty, or the
11560 first probe matches (i.e. there isn't a collision).
11561 * hashtable.h (ht_lookup): Adjust function prototype.
11562
115632003-08-08 Bernardo Innocenti <bernie@develer.com>
11564
11565 PR target/9697
11566 PR target/11777
11567 * longlong.h (count_leading_zeros): Exclude on __mcpu32__.
11568
115692003-08-08 Neil Booth <neil@daikokuya.co.uk>
11570
11571 * common.opt: Add debug switches.
11572 * flags.h (use_gnu_debug_info_extensions): Boolify.
11573 * opts.c (write_symbols, debug_info_level,
11574 use_gnu_debug_info_extensions): Move from toplev.c.
11575 (set_debug_level): New.
11576 (common_handle_options): Handle debug switches.
11577 (print_help): Display target options directly.
11578 * toplev.c (debug_hooks): Don't initialize.
11579 (write_symbols, debug_info_level,
11580 use_gnu_debug_info_extensions): Move to opts.c.
11581 (debug_args, display_help, decode_g_option): Remove.
11582 (process_options): Set no debug if level zero here,
11583 and no-debug-hooks. Error here if impossible debug format selected.
11584 * toplev.h (display_help, decode_g_option): Remove.
11585
115862003-08-08 Richard Sandiford <rsandifo@redhat.com>
11587
11588 * tree.c (get_file_function_name_long): Fix size of alloca() area.
11589
115902003-08-08 Kelley Cook <kelleycook@wideopenwest.com>
11591
11592 * configure.in (gcc_cv_prog_cmp_skip): Flipflop make_compare_target
11593 and gcc_cv_prog_cmp_skip.
11594 * configure: Regenerate.
11595
115962003-08-08 Stan Cox <scox@redhat.com>
11597
11598 * config/iq2000: New port.
11599 * config.gcc (iq2000-*-elf): Added.
11600 * doc/install.texi (Specific): Add iq2000 description.
11601
116022003-08-08 Andreas Schwab <schwab@suse.de>
11603
11604 * configure.in (gcc_cv_as_ia64_ltoffx_ldxmov_relocs): Fix quoting
11605 and insert missing empty argument.
11606 * configure: Regenerate.
11607
116082003-08-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11609
11610 * pa.c (update_total_code_bytes): Use new macro IN_NAMED_SECTION_P.
11611 (attr_length_millicode_call): Likewise.
11612 (attr_length_call): Likewise. Revise some maximum insn lengths.
11613 (attr_length_indirect_call): Likewise.
11614 (output_call): Fix thinko that added extra nop.
11615 * pa.h (IN_NAMED_SECTION_P): Define.
11616
11617 PR c++/11712
11618 * pa-hpux.h, pa-hpux10.h, pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define
11619 __STDC_EXT__ when using C++ dialect.
11620
116212003-08-07 J"orn Rennecke <joern.rennecke@superh.com>
11622
11623 * sh.c (calc_live_regs): If the return address pointer is live,
11624 force pr live.
11625 (sh5_schedule_saves): Exclude PR_MEDIA_REG from being a temp register
11626 for saves / restores.
11627 (sh_expand_epilogue): If sh_media_register_for_return returns a
11628 register number, flag the instructions that restores PR_MEDIA_REG
11629 as possibly dead.
11630 Remove dead update of offset.
11631 (sh_get_pr_initial_val): Use UNSPEC_RA if we don't know yet if
11632 we can use the result of get_hard_reg_initial_val.
11633 * sh.md (UNSPEC_RA): New constant.
11634 (movsi_i_lowpart+1): Changed into a define_insn_and_split, named:
11635 (load_ra). Handle UNSPEC_RA.
11636 (sibcall_media): Use PR_MEDIA_REG.
11637
11638 * sh.h (CALL_USED_REGISTERS): Include PR_REG and PR_MEDIA_REG.
11639 * sh.c (calc_live_regs): Use sh_pr_n_sets to determine if pr
11640 needs saving on SHmedia.
11641
116422003-08-07 Ulrich Weigand <uweigand@de.ibm.com>
11643
11644 * config/s390/s390.md: Replace all occurrences of \\t with \t.
11645
116462003-08-07 Richard Sandiford <rsandifo@redhat.com>
11647
11648 * local-alloc.c (combine_regs): Fix comment typo.
11649
116502003-08-06 Zack Weinberg <zack@codesourcery.com>
11651
11652 * c-decl.c (builtin_decls): Replace with first_builtin_decl
11653 and last_builtin_decl.
11654 (c_init_decl_processing): Initialize both.
11655 (c_reset_state): Iterate from first_builtin_decl to
11656 last_builtin_decl inclusive to reintroduce builtins.
11657
116582003-08-06 David Mosberger <davidm@hpl.hp.com>
11659
11660 * doc/extend.texi (Function Attributes): Document the IA-64 version
11661 of the "model" attribute.
11662
11663 * config/ia64/ia64.h (SYMBOL_FLAG_SMALL_ADDR): New macro.
11664 (SYMBOL_REF_SMALL_ADDR_P): Ditto.
11665 (PREDICATE_CODES): Mention "small_addr_symbolic_operand".
11666
11667 * config/ia64/ia64.c (ia64_handle_model_attribute): New function.
11668 (ia64_encode_section_info): Likewise.
11669 (ia64_attribute_table): Add "model" attribute.
11670 (TARGET_ENCODE_SECTION_INFO): Define.
11671 (small_addr_symbolic_operand): New function.
11672 (got_symbolic_operand): Return 0 for a symbolref to an object
11673 in the small address area.
11674 (enum ia64_addr_area): New type.
11675 (small_ident1): New variable.
11676 (small_ident2): Likewise.
11677 (init_idents): New function.
11678 (ia64_get_addr_area): Likewise.
11679 (ia64_encode_addr_area): Likewise.
11680 (ia64_encode_section_info): Likewise.
11681 (ia64_expand_load_address): For symbolic references to objects in
11682 the small-address-area, load the address via gen_rtx_SET() (which,
11683 eventually, will expand into "addl").
11684
116852003-08-06 Per Bothner <pbothner@apple.com>
11686
11687 * line-map.h (fileline): New typedef.
11688 (struct line_map, linemap_add, linemap_lookup): Use it.
11689 * input.h (struct location_s): Comment notes that long-term we want
11690 to replace it by fileline.
11691
116922003-08-06 J"orn Rennecke <joern.rennecke@superh.com>
11693
11694 Fix SHcompact exception handling:
11695 * sh.c (sh_get_pr_initial_val): If PR is or miight be clobbered
11696 by the prologue, return a MEM with return_address_pointer_rtx
11697 as address.
11698 * sh.h (HARD_REGNO_MODE_OK): PR is OK for SImode.
11699 (RETURN_ADDR_OFFSET): Don't define.
11700 (SH_DBX_REGISTER_NUMBER): Use SHmedia numbers for SHmedia
11701 registers that are visible in compact mode. Show that SHmedia
11702 registers still exist in compact mode, even if there are not
11703 readily accessible.
11704 (ASM_PREFERRED_EH_DATA_FORMAT): Supply DW_EH_PE_indirect
11705 if GLOBAL. Use DW_EH_PE_textrel (nominally) for CODE,
11706 and DW_EH_PE_pcrel for pic data.
11707 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): If DW_EH_PE_textrel,
11708 set SYMBOL_FLAG_FUNCTION in symbol, and actually use
11709 DW_EH_PE_pcrel / DW_EH_PE_absptr encoding.
11710 (ALLOCATE_INITIAL_VALUE): Put PR on stack if prologue clobbers it.
11711 * sh.md (movsi_media-1): New splitter.
11712
117132003-08-06 Graeme Peterson <gp@qnx.com>
11714
11715 * config/i386/nto.h: New.
11716 * config/i386/t-nto: New.
11717 * config.gcc (i[34567]86-*-nto-qnx*): New.
11718
117192003-08-06 Phil Edwards <pme@gcc.gnu.org>
11720
11721 * doc/install.texi (*-*-solaris2*): Refine configure instructions.
11722
117232003-08-06 Alan Modra <amodra@bigpond.net.au>
11724
11725 * calls.c (load_register_parameters): Arrange for call_fusage to
11726 report the whole register as used when shifting to the msb.
11727
117282003-08-05 Roger Sayle <roger@eyesopen.com>
11729
11730 * builtins.c (expand_builtin): When not optimizing, call the library
11731 function for all builtins that have library functions (except alloca).
11732
117332003-08-05 Alexandre Oliva <aoliva@redhat.com>
11734
11735 * c.opt: Introduce -fworking-directory.
11736 * doc/cpp.texi, doc/invoke.texi, doc/cppopts.texi: Document it.
11737 * c-common.h (flag_working_directory): Declare.
11738 * c-common.c (flag_working_directory): Define.
11739 * c-opts.c (c_common_handle_options): Set it.
11740 (sanitize_cpp_opts): Set...
11741 * cpplib.h (struct cpp_options): ... working_directory option.
11742 (struct cpp_callbacks): Add dir_change.
11743 * cppinit.c (read_original_filename): Call...
11744 (read_original_directory): New. Look for # 1 "directory//"
11745 and process it.
11746 (cpp_read_main_file): Call dir_change callback if working_directory
11747 option is set.
11748 * gcc.c (cpp_unique_options): Pass -g*.
11749 * c-lex.c (cb_dir_change): New.
11750 (init_c_lex): Set dir_change callback.
11751 * toplev.c (src_pwd): New static variable.
11752 (set_src_pwd, get_src_pwd): New functions.
11753 * toplev.h (get_src_pwd, set_src_pwd): Declare.
11754 * dbxout.c (dbxout_init): Call get_src_pwd() instead of getpwd().
11755 * dwarf2out.c (gen_compile_unit_die): Likewise.
11756 * dwarfout.c (output_compile_unit_die, dwarfout_init): Likewise.
11757
117582003-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
11759
11760 * pretty-print.h (pp_set_line_maximum_length): Make macro.
11761 (pp_set_prefix): Likewise.
11762 (pp_destroy_prefix): Likewise.
11763 (pp_remaining_character_count_for_line): Likewise.
11764 (pp_clear_output_area): Likewise.
11765 (pp_formatted_text): Likewise.
11766 (pp_last_position_in_text): Likewise.
11767 (pp_emit_prefix): Likewise.
11768 (pp_append_text): Likewise.
11769 (pp_flush): Likewise.
11770 (pp_format_text): Likewise.
11771 (pp_format_verbatim): Likewise.
11772 (pp_tree_identifier): Tidy.
11773 * pretty-print.c (pp_base_format_text): Rename from pp_format_text.
11774 (pp_base_format_verbatim): Rename from pp_format_verbatim.
11775 (pp_base_flush): Rename from pp_flush.
11776 (pp_base_set_line_maximum_length): Rename from
11777 pp_set_line_maximum_length.
11778 (pp_base_clear_output_area): Rename from pp_clear_output_area.
11779 (pp_base_set_prefix): Rename from pp_set_prefix.
11780 (pp_base_destroy_prefix): Rename from pp_destroy_prefix.
11781 (pp_base_emit_prefix): Rename from pp_emit_prefix.
11782 (pp_base_append_text): Rename from pp_append_text.
11783 (pp_base_formatted_text): Rename from pp_formatted_text.
11784 (pp_base_last_position_in_text): Rename from pp_last_position_in_text.
11785 (pp_base_remaining_character_count_for_line): Rename from
11786 pp_remaining_character_count_for_line.
11787 * diagnostic.h (diagnostic_format_decoder): Tidy.
11788 (diagnostic_flush_buffer): Likewise.
11789 * c-pretty-print.h: (pp_c_string_literal): Declare.
11790 (pp_c_real_literal): Likewise.
11791 (pp_c_integer_literal): Likewise.
11792 * c-pretty-print.c (pp_c_char): Use pp_string in lieu of
11793 pp_identifier.
11794 (pp_c_character_literal): Tidy.
11795 (pp_c_string_literal): Make public.
11796 (pp_c_bool_literal): Likewise.
11797 (pp_c_integer_literal): Likewise.
11798 (pp_c_real_literal): Likewise.
11799
11800 * Makefile.in (C_PRETTY_PRINT_H): New variable.
11801 (c-pretty-print.o): Update dependence.
11802
118032003-08-05 Chris Demetriou <cgd@broadcom.com>
11804
11805 * config/mips/mips.md (fix_truncdfsi2_macro): Properly restore
11806 ".set nomacro" state.
11807 (fix_truncsfsi2_macro): Likewise.
11808
118092003-08-05 Steven Bosscher <steven@gcc.gnu.org>
11810
11811 * tree.h (DID_INLINE_FUNC): Remove macro.
11812 (DECL_DECLARED_INLINE_P): Move from c-tree.h and cp/cp-tree.h,
11813 add tree check for FUNCTION_DECL.
11814 (DECL_ESTIMATED_INSNS): Move from c-common.h and java/java-tree.h.
11815 (struct tree_decl): Rename inlined_function_flag to
11816 declared_inline_flag.
11817 * c-common.h (c_lang_decl): Remove.
11818 (DECL_ESTIMATED_INSNS): Remove.
11819 * c-tree.h (struct lang_decl): Don't include c_lang_decl.
11820 (DECL_DECLARED_INLINE_P): Remove.
11821 * c-decl.c (grokdeclarator): Update comment. With -finline-functions,
11822 do not reset DECL_DECLARED_INLINE_P. Don't use DID_INLINE_FUNC.
11823 (finish_function): Make uninlinable a bool. Fixup call to
11824 tree_inlinable_function_p() and fix some code style issues.
11825 * cgraph.h (disgread_inline_limits): Fix spelling: `disregard'.
11826 * cgraph.c (dump_cgraph): Likewise.
11827 * cgraphunit.c (cgraph_decide_inlining): Likewise
11828 (cgraph_finalize_compilation_unit): Likewise.
11829 Also update call to tree_inlinable_function_p().
11830 (cgraph_default_inline_p): Don't use DID_INLINE_FUNC. Instead
11831 look at DECL_DECLARED_INLINE and reverse logic.
11832 * print-tree.c (print_node): Likewise.
11833 * toplev.c (rest_of_handle_inlining): Don't use DID_INLINE_FUNC.
11834 * tree-inline.h (tree_inlinable_function_p): Make a bool. Update
11835 prototype.
11836 * tree-inline.c (inlinable_function_p): Split up in this function to
11837 check for basic inlining inhibiting conditions, and new
11838 limits_allow_inlining() function. Warn if inlining is impossible
11839 because the inline candidate calls alloca or uses sjlj exceptions.
11840 (limits_allow_inlining): this new function to check if the inlining
11841 limits are satisfied. Throttle from currfn_max_inline_insns, not from
11842 MAX_INLINE_INSNS_SINGLE. The latter only makes sense if
11843 MAX_INLINE_INSNS_AUTO and MAX_INLINE_INSNS_SINGLE are equal.
11844 Update prototypes.
11845 (tree_inlinable_function_p): Make a bool. Update call to
11846 inlinable_function_p
11847 (expand_call_inline): Use limits_allow_inlining() when not in
11848 unit-at-a-time mode to decide on inlining. Don't use DID_INLINE_FUNC,
11849 instead see if the function was declared `inline'.
11850
118512003-08-05 Josef Zlomek <zlomekj@suse.cz>
11852
11853 * gcse.c (try_replace_reg): Fix updating of note.
11854
118552003-08-04 Roger Sayle <roger@eyesopen.com>
11856
11857 PR middle-end/11771
11858 * fold-const.c (negate_expr_p <MINUS_EXPR>): Change to match the
11859 logic in negate_expr, i.e. we don't invert (A-B) for floating
11860 point types unless flag_unsafe_math_optimizations.
11861
118622003-08-04 Roger Sayle <roger@eyesopen.com>
11863
11864 * fold-const.c (fold <PLUS_EXPR>): Transform x+x into x*2.0.
11865 Optimize x*c+x and x+x*c into x*(c+1) and x*c1+x*c2 into x*(c1+c2)
11866 for floating point expressions with -ffast-math.
11867 (fold <MULT_EXPR>): Don't transform x*2.0 into x+x.
11868 * expmed.c (expand_mult): Wrap long line. Expand x*2.0 as x+x.
11869
118702003-08-04 Roger Sayle <roger@eyesopen.com>
11871
11872 * c-common.c (flag_noniso_default_format_attributes): Delete.
11873 (built_in_attribute): Don't define/undefine DEF_FN_ATTR.
11874 (c_attrs_initialized): Delete.
11875 (c_common_nodes_and_builtins): Don't test c_attrs_initialized,
11876 always call c_init_attributes.
11877 (c_init_attributes): Don't define/undefine DEF_FN_ATTR. Don't
11878 set c_attrs_initialized when done.
11879 (c_common_insert_default_attributes): Delete.
11880 * c-common.h (flag_noniso_default_format_attributes): Delete.
11881 (c_coomon_insert_default_attributes): Delete prototype.
11882 * c-opts.c (set_std_c89, set_std_c99, set_std_cxx98): Dont set
11883 flag_noniso_default_format_attributes.
11884
11885 * c-decl.c (c_insert_default_attributes): Delete.
11886 * c-tree.h (c_insert_default_attributes): Delete prototype.
11887
11888 * attribs.c (decl_attributes): Don't call insert_default_attributes
11889 langhook. Update function description comment.
11890 * langhooks.h (lang_hooks): Remove insert_default_attributes field.
11891 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Delete.
11892 * c-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't define.
11893 * system.h: Poison LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES macro.
11894
11895 * objc/objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't
11896 define.
11897
118982003-08-04 Richard Sandiford <rsandif@redhat.com>
11899
11900 * config/mips/mips.c (override_options): Disable -G on targets that
11901 have no .section support.
11902 (mips_select_section): Use default_select_section for such targets.
11903
119042003-08-04 Nathanael Nerode <neroden@gcc.gnu.org>
11905
11906 * fixinc/inclhack.def (svr4_undeclared_getrnge): Introduce and enable.
11907 * fixinc/inclhack.def (static_getrnge): Remove disabled hack.
11908 * fixinc/fixincl.x: Rebuild.
11909 * fixinc/tests/base/regexp.h: New test.
11910
119112003-08-04 Alexandre Oliva <aoliva@redhat.com>
11912
11913 * c-ppoutput.c (cb_line_change): Don't skip line changing while
11914 parsing macro arguments in the top-level context.
11915
119162003-08-04 Neil Booth <neil@daikokuya.co.uk>
11917
11918 * config.in: Remove HAVE_LSTAT.
11919 * configure, configure.in: Don't test for lstat.
11920
119212003-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
11922
11923 * opts.c (decode_options): Do language-specific initialization for
11924 the global diagnostic context.
11925 * langhooks-def.h (lhd_initialize_diagnostics): Declare.
11926 (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): New macro.
11927 (LANG_HOOKS_INITIALIZER): Adjust.
11928 * langhooks.h (struct lang_hooks): Add new field
11929 initialize_diagnostics.
11930 * langhooks.c (lhd_initialize_diagnostics): Define.
11931
119322003-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
11933
11934 * pretty-print.h: Adjust macro definitions.
11935 * pretty-print.c (pp_newline): Rename to pp_base_newline.
11936 (pp_character): Rename to pp_base_character.
11937 (pp_string): Rename to pp_base_string.
11938 * c-pretty-print.c (pp_buffer): Move to pretty-print.h
11939 (pp_newline): Likewise. Adjust.
11940 (pp_c_char): Adjust.
11941
119422003-08-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11943
11944 * builtins.def (BUILT_IN_ABS, BUILT_IN_IMAXABS, BUILT_IN_LABS,
11945 BUILT_IN_LLABS): Move to miscellaneous section.
11946
119472003-08-03 Neil Booth <neil@daikokuya.co.uk>
11948
11949 PR preprocessor/11534
11950 * cppexp.c (parse_defined): Warn only if -pedantic.
11951
119522003-08-03 Neil Booth <neil@daikokuya.co.uk>
11953
11954 * cppfiles.c (stack_file): Use file path.
11955
119562003-08-02 Roger Sayle <roger@eyesopen.com>
11957
11958 * builtin-types.def (BT_SSIZE): New primitive type.
11959 (BT_FN_INT_PTR_CONST_STRING_VALIST_ARG,
11960 BT_FN_STRING_CONST_STRING_CONST_STRING_INT,
11961 BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR,
11962 BT_FN_SSIZE_STRING_SIZE_CONST_STRING_VAR): New function types.
11963 * builtins.def (BUILT_IN_DCGETTEXT, BUILT_IN_DGETTEXT,
11964 BUILT_IN_FSCANF, BUILT_IN_GETTEXT, BUILT_IN_STRFMON,
11965 BUILT_IN_STRFTIME, BUILT_IN_VFPRINTF, BUILT_IN_VFSCANF): New builtins.
11966 * builtin-attrs.def: Remove DEF_FN_ATTR construct and the last
11967 few functions that define default attributes using it.
11968 * c-common.c (c_common_insert_default_attributes): Do nothing.
11969
11970 * doc/extend.texi: Document these "new" builtins.
11971
119722003-08-02 Kaz Kojima <kkojima@gcc.gnu.org>
11973
11974 * config/sh/linux.h (SUBTARGET_LINK_SPEC): Don't set rpath.
11975 (LIB_SPEC): Set -lpthread always when -pthread set. Set -lieee
11976 when -mieee-fp set and -shared not set.
11977 (SH_FALLBACK_FRAME_FLOAT_STATE): Don't define for SH5.
11978
119792003-08-02 Neil Booth <neil@daikokuya.co.uk>
11980
11981 * cppfiles.c (struct _cpp_file): Rename once_only_next to
11982 next_file. Remove import and pragma_once, add once_only.
11983 (find_file): Add new file structures to the all_files list.
11984 (should_stack_file): Mark #import-ed files once-only, and
11985 don't stack them if the file has already been stacked.
11986 (_cp_mark_file_once_only): Simplify.
11987 * cpphash.h (struct cpp_reader): Rename once_only_files
11988 to all_files. Rename saw_pragma_once to seen_once_only.
11989 (_cpp_mark_file_once_only): Update prototype.
11990 * cpplib.c (do_pragma_once): Update.
11991
119922003-08-02 Neil Booth <neil@daikokuya.co.uk>
11993
11994 * cppfiles.c (ENOTDIR): Remove.
11995 (open_file_in_dir): Rename find_file_in_dir. Handle errors
11996 other than ENOENT here.
11997 (once_only_file_p): Rename should_stack_file.
11998 (find_file, open_file_failed, read_file_guts): Report errors
11999 with full path name.
12000 (read_file): Move pch handling to should_stack_file.
12001 (should_stack_file): Handle PCH and once-only issues, and
12002 reading the file.
12003 (stack_file): Don't do file reads.
12004
120052003-08-02 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12006
12007 * libgcov.c (gcov_exit): Cleanup and fix.
12008 * profile.c (compute_value_histograms): Don't try to read profiles
12009 that are not present.
12010
120112003-08-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12012
12013 * builtins.def: Categorize.
12014
12015 * builtins.def (BUILT_IN_CABS, BUILT_IN_CABSF, BUILT_IN_CABSL):
12016 Mind fp rounding.
12017 (BUILT_IN_FFSL): Use DEF_EXT_LIB_BUILTIN.
12018
120192003-08-02 Andreas Tobler <a.tobler@schweiz.ch>
12020
12021 * config.gcc: Enable posix threads by default on darwin.
12022
120232003-08-01 Jakub Jelinek <jakub@redhat.com>
12024
12025 * cfgcleanup.c (outgoing_edges_match): Check REG_EH_REGION notes
12026 even if nehedges1 is 0.
12027
120282003-08-01 Nathanael Nerode <neroden@gcc.gnu.org>
12029
12030 * fixinc/fixfixes.c, fixinc/fixlib.c, fixinc/fixlib.h,
12031 fixinc/fixtests.c, fixinc/procopen.c, fixinc/server.c,
12032 fixinc/server.h, fixinc/fixincl.c: ANSIfy function prototypes
12033 and defintions.
12034
12035 * fixinc/inclhack.def (broken_cabs): Make matching more generous.
12036 * fixinc/fixincl.x: Regenerate.
12037 * fixinc/tests/base/math.h: Regenerate to match test_text change.
12038
120392003-08-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12040
12041 * ggc-common.c (gt_pch_restore): Case MAP_FAILED to void *.
12042
120432003-08-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12044
12045 * except.c (sjlj_emit_dispatch_table): Use ptr_mode, not Pmode,
12046 for accesses to exc_ptr.
12047
120482003-08-01 Geoffrey Keating <geoffk@apple.com>
12049
12050 * doc/sourcebuild.texi (Front End Directory): Don't make references
12051 to libsubdir, it's not part of the interface to frontends.
12052 * doc/install.texi (Configuration): Help users read faster by saying
12053 that GCC's configure options are the standard autoconf ones.
12054 Mention --libdir. Update the default rules for finding the
12055 assembler. Don't use libsubdir since we haven't said what it means.
12056 (Specific): In the Solaris 7 notes, update the place to put the
12057 assembler.
12058 * doc/invoke.texi: Update lib/gcc-lib to lib/gcc.
12059 * doc/cpp.texi (Search Path): Actually, the search path
12060 depends on libdir, which can relocate with cpp.
12061 * doc/tm.texi (Driver): Don't document STANDARD_EXEC_PREFIX, it's
12062 now a private interface between the Makefile and the driver.
12063
120642003-08-01 Richard Henderson <rth@redhat.com>
12065
12066 * system.h: Poison ASM_SIMPLIFY_DWARF_ADDR.
12067
12068 * varasm.c (lookup_constant_def): New function.
12069 * rtl.h (lookup_constant_def): Declare it.
12070 * dwarf2out.c (loc_descriptor_from_tree): Use it.
12071 Use targetm.delegitimize_address, not ASM_SIMPLIFY_DWARF_ADDR.
12072
120732003-08-01 Zack Weinberg <zack@codesourcery.com>
12074
12075 * c-decl.c (gettags, pushdecl_function_level): Delete.
12076 (last_function_parm_vars): Rename last_function_parm_others.
12077 (current_function_parm_vars): Rename current_function_parm_others.
12078 (struct c_scope): Rewrite comment explaining this data structure.
12079 Add names_last, blocks_last, parms_last fields. Rename
12080 incomplete_list to incomplete.
12081 (SCOPE_LIST_APPEND, SCOPE_LIST_CONCAT): New macros.
12082 (poplevel): Ignore second argument. No need to nreverse
12083 anything. Restructure such that each list is processed
12084 exactly once. Use 'const location_t *locus' syntactic sugar
12085 variable where useful. Issue unused variable warnings
12086 ourselves, do not rely on function.c.
12087 (insert_block, pushdecl, bind_label): Use SCOPE_LIST_APPEND.
12088 (pushdecl_top_level): Likewise. Don't call duplicate_decls.
12089 (implicitly_declare): decl cannot be error_mark_node.
12090 (undeclared_variable): Manipulate scope structure directly.
12091 (c_make_fname_decl): Likewise.
12092 (getdecls, c_init_decl_processing): Fix comment.
12093 (mark_forward_parm_decls): Use SCOPE_LIST_CONCAT. No need
12094 for 'last' variable.
12095 (grokparms): No need to nreverse parms list.
12096 (store_parm_decls_newstyle): Set up the parms_last and
12097 names_last fields of the new scope too.
12098 (store_parm_decls_oldstyle): Can assume DECL_WEAK is not set
12099 on parms to begin with; check this under ENABLE_CHECKING. Set
12100 up parms_last.
12101 (check_for_loop_decls): Refer directly to current_scope->tags.
12102 Use consistent quote style in diagnostics.
12103 (c_write_global_declarations): The names list is not backward.
12104
12105 * c-common.h: Don't prototype gettags.
12106 * c-parse.in: Call poplevel with second argument 0 always.
12107
121082003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12109
12110 * builtins.def: Resort builtins.
12111
121122003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12113
12114 * builtins.def (DEF_GCC_BUILTIN, DEF_LIB_BUILTIN,
12115 DEF_EXT_LIB_BUILTIN, DEF_C99_BUILTIN, DEF_C99_C90RES_BUILTIN):
12116 Prepend "__builtin_" onto NAME with string concatenation. Remove
12117 explicit "__builtin_" from each macro call.
12118
12119 Reformat entire file.
12120
121212003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12122
12123 * builtins.def (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
12124 ATTR_MATHFN_FPROUNDING_ERRNO): New macros. Use throughout.
12125
121262003-08-01 Andreas Krebbel <krebbel1@de.ibm.com>
12127
12128 * config/s390/s390.c (s390_select_ccmode): Do not attempt to use CCL,
12129 CCL1, or CCL2 modes with floating point operations.
12130
12131 * config/s390/s390.md ("*addsf3_cc", "*addsf3_cconly", "*adddf3_cc",
12132 "*adddf3_cconly", "*subsf3_cc", "*subsf3_cconly", "*subdf3_cc",
12133 "*subdf3_cconly"): New insns.
12134 ("*negabssi2", "*negabsdi2", "*negabsdf2", "*negabssf2"): Likewise.
12135
121362003-08-01 Neil Booth <neil@daikokuya.co.uk>
12137
12138 * Makefile.in: Refine dependencies.
12139 * c-opts.c (c_common_handle_option): Do nothing for -Wimport.
12140 * c.opt: Update help for -Wimport.
12141 * cppfiles.c: Include hashtab.h. Update comments.
12142 (stack_file): Read the file before updating dependencies.
12143 (once_only_file_p): Be smarter about marking once-only files.
12144 (_cpp_mark_file_once_only): Correct the check for existence on
12145 the list.
12146 (open_file_failed): Use name not path, which is NULL.
12147 * cpphash.h: Don't include hashtab.h.
12148 (struct _cpp_file): Remove.
12149 (struct cpp_reader): Update.
12150 * cppinit.c (cpp_create_reader): Don't initialize warn_import.
12151 * cpplib.h (struct cpp_options): Remove warn_import.
12152 (cpp_simplify_path): Remove.
12153
121542003-08-01 Nathan Sidwell <nathan@codesourcery.com>
12155
12156 PR c++/11295
12157 * doc/extend.texi (Statement Expressions): Document C++ semantics.
12158
121592003-07-31 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
12160
12161 * config.gcc (sh-*-linux*): Do not override sh/t-linux with sh/t-le.
12162
121632003-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12164
12165 * builtin-types.def: Use `LONGDOUBLE' instead of `LONG_DOUBLE'
12166 throughout.
12167 * builtins.def: Likewise.
12168
121692003-07-31 Jason Merrill <jason@redhat.com>
12170
12171 * Makefile.in (bubblestrap): Don't require a previous full
12172 bootstrap.
12173
12174 * expr.c (mostly_zeros_p): No longer static.
12175 * tree.h: Declare it.
12176 * stmt.c (resolve_asm_operand_names): Don't copy the pattern
12177 unless we need to do substitutions.
12178
121792003-07-31 Roger Sayle <roger@eyesopen.com>
12180
12181 * fold-const.c (fold <MULT_EXPR>): Optimize both x*pow(x,c) and
12182 pow(x,c)*x as pow(x,c+1) for constant values c. Optimize x*x
12183 as pow(x,2.0) when the latter will be expanded back into x*x.
12184 (fold <RDIV_EXPR>): Optimize pow(x,c)/x as pow(x,c-1).
12185 * builtins.c (expand_builtin_pow): Ignore flag_errno_math as
12186 pow can never set errno when used with an integer exponent.
12187 Always use expand_powi when exponent is -1, 0, 1 or 2.
12188 (fold_builtin): Don't rewrite pow(x,2.0) as x*x nor pow(x,-2.0)
12189 as 1.0/(x*x). This avoids unbounded recursion as we now prefer
12190 the pow forms of these expressions.
12191
121922003-07-31 Geoffrey Keating <geoffk@apple.com>
12193
12194 * Makefile.in (libexecdir): New.
12195 (libsubdir): Use gcc instead of gcc-lib.
12196 (libexecsubdir): New.
12197 (ORDINARY_FLAGS_TO_PASS): Add libexecsubdir.
12198 (DRIVER_DEFINES): Add STANDARD_LIBEXEC_PREFIX, use gcc instead of
12199 gcc-lib.
12200 (installdirs): Make libexecsubdir.
12201 (install-common): Put executables in libexecsubdir.
12202 (itoolsdir): Use libexecsubdir.
12203 (itoolsdatadir): New.
12204 (install-mkheaders): Separate data files and executables.
12205 (install-collect2): Put executables in libexecsubdir.
12206 (uninstall): Remove libexecsubdir.
12207 * mkheaders.in: Update for new arrangement of files.
12208 (libexecdir): New.
12209 (libexecsubdir): New.
12210 (itoolsdir): Use libexecsubdir.
12211 (itoolsdatadir): New.
12212 * gcc.c (gcc_libexec_prefix): New.
12213 (STANDARD_LIBEXEC_PREFIX): Use gcc instead of gcc-lib.
12214 (standard_exec_prefix_1): Use libexec.
12215 (standard_exec_prefix_2): New.
12216 (standard_libexec_prefix): New.
12217 (process_command): Update for new arrangement of files. Compute
12218 gcc_libexec_prefix. Update for change from gcc-lib to gcc.
12219
122202003-07-31 Nathanael Nerode <neroden@gcc.gnu.org>
12221
12222 * inclhack.def (stdio_va_list): Avoid bogus replacement which
12223 triggers on Interix.
12224 * fixincl.x: Regenerate.
12225
122262003-07-31 Jakub Jelinek <jakub@redhat.com>
12227
12228 * config/i386/i386.c (legitimate_pic_address_disp_p): Disallow TLS
12229 SYMBOL_REFs not inside UNSPEC even in PLUS rtx.
12230
122312003-07-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12232
12233 * dwarf2out.c (loc_descriptor_from_tree, case CONSTRUCTOR): New case.
12234
122352003-07-31 Per Bothner <pbothner@apple.com>
12236
12237 * opts.c (in_fnames, num_in_fnames): Moved here from c-opts.
12238 (add_input_filename): New function.
12239 (handle_options): Call add_input_filename directly instead of
12240 with a lang hook.
12241 * opts.h (in_fnames, num_in_fnames): Moved here.
12242 (add_input_filename): Declare.
12243 * c-decl.c: Need to #include opts.h.
12244 * Makefile.in (c-decl.o): Also depends on opts.h.
12245 * c-opts.c (in_fnames, num_in_fnames): Moved to opts.c.
12246 (c_common_handle_filename): Replaced by add_input_filename.
12247 * c-common.h (in_fnames, num_in_fnames, c_common_handle_filename):
12248 Remove.
12249 * langhooks.h (struct lang_hooks): Remove handle_filename hook.
12250 * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME): Remove macro.
12251 (LANG_HOOKS_INITIALIZER): Remove use of LANG_HOOKS_HANDLE_FILENAME.
12252 * c-lang.c (LANG_HOOKS_HANDLE_FILENAME): Remove macro.
12253
122542003-07-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12255
12256 * combine.c (try_combine): Set JUMP_LABEL for newly created
12257 unconditional jump.
12258
122592003-07-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12260
12261 * fold-const.c (fold): Fold some comparisons of bit operations.
12262
122632003-07-31 Jan Hubicka <jh@suse.cz>
12264
12265 * cgraph.c (create_edge): Fix typo.
12266 * i386.c (pic_symbolic_operand): Reorder tests.
12267
122682003-07-31 Nathan Sidwell <nathan@codesourcery.com>
12269
12270 * doc/gcov.texi (Invoking Gcov): Describe output name mangling
12271 more fully.
12272 (Gcov Data Files): Update.
12273
122742003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12275
12276 * config.gcc (alpha*-dec-osf[45]*): Enable POSIX thread support by
12277 default.
12278
12279 * gthr-posix.c: New file.
12280 * gthr-posix.h: Define _REENTRANT if missing.
12281 Make _LIBOBJC #pragma weak visible with _LIBOBJC_WEAK.
12282
12283 * config/alpha/t-osf4 (SHLIB_LINK): Hide dummy functions provided
12284 by gthr-posix.o.
12285 * config/alpha/t-osf-pthread: New file.
12286
12287 * fixinc/inclhack.def (alpha_pthread): New fix.
12288 * fixinc/fixincl.x: Regenerate.
12289 * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_CHECK]: New testcase.
12290
12291 * doc/install.texi (alpha*-dec-osf*): Remove --enable-threads
12292 warning.
12293 Fixes PR bootstrap/9330.
12294
122952003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12296
12297 * configure.in (gcc_cv_ld_hidden): Also disable on mips-sgi-irix5*
12298 without GNU ld.
12299 Update comment.
12300 * configure: Regenerate.
12301
123022003-07-31 Vladimir Makarov <vmakarov@redhat.com>
12303
12304 * sched-deps.c (sched_analyze_2): Prevent interblock move of CC0
12305 setter.
12306
123072003-07-30 Roger Sayle <roger@eyesopen.com>
12308
12309 * builtins.def: Alphabetize.
12310
123112003-07-30 Matt Kraai <kraai@alumni.cmu.edu>
12312
12313 * doc/c-tree.texi: Normalize spellings of "lowercase" and
12314 "uppercase".
12315 * doc/cpp.texi: Likewise.
12316 * doc/md.texi: Likewise.
12317 * doc/rtl.texi: Likewise.
12318 * doc/tm.texi: Likewise.
12319
123202003-07-30 Matt Kraai <kraai@alumni.cmu.edu>
12321
12322 * objc/Make-lang.in (objc.stage1, objc.stage2, objc.stage3)
12323 (objc.stage4, objc.stageprofile, objc.stagefeedback): Remove moves
12324 of cc1obj.
12325
123262003-07-30 Chris Demetriou <cgd@broadcom.com>
12327
12328 * config/mips/mips.h (SIZE_TYPE, PTRDIFF_TYPE): Undef these
12329 macros before defining them.
12330
123312003-07-31 Ulrich Weigand <uweigand@de.ibm.com>
12332
12333 * config/s390/s390.md (UNSPEC_ROUND, UNSPEC_SETHIGH,
12334 UNSPECV_BLOCKAGE): New constants.
12335 ("*sethighqisi", "*sethighhisi", "*sethiqidi_64", "*sethiqidi_31",
12336 "*extractqi", "*extracthi", "*extendqidi2" splitter, "*extendqisi2"
12337 splitter, "fix_truncdfdi2_ieee", "fix_truncdfsi2_ieee",
12338 "fix_truncsfdi2", "fix_truncsfsi2", "blockage"): Use them.
12339
12340 (all insns and expanders): Write output control string as brace block
12341 where appropriate. Remove \-escapes for doublequote characters.
12342
123432003-07-31 Jan Hubicka <jh@suse.cz>
12344
12345 * gcse.c (insert_store): Fix typo in previous patch.
12346
123472003-07-30 Neil Booth <neil@daikokuya.co.uk>
12348
12349 * cppfiles.c (stack_file, open_file_failed): Use path for deps.
12350
123512003-07-30 Andi Kleen <ak@muc.de>
12352
12353 * loop.c (check_dbra_loop): Allow LTU in the loop condition.
12354
123552003-07-30 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12356
12357 * combine.c (distribute_notes): Cancel REG_VALUE_PROFILE notes.
12358 * gcov-io.h (GCOV_FIRST_VALUE_COUNTER, GCOV_LAST_VALUE_COUNTER,
12359 GCOV_N_VALUE_COUNTERS): New.
12360 * profile.c (compute_value_histograms): New static function.
12361 (branch_prob): Read back the value histograms.
12362 * rtl.c (reg_note_name): Add name for REG_VALUE_PROFILE note.
12363 * rtl.h (enum reg_note): Add REG_VALUE_PROFILE note.
12364 * value-prof.c: Add comment on reading the profile.
12365 * value-prof.h (COUNTER_FOR_HIST_TYPE, HIST_TYPE_FOR_COUNTER): New.
12366 * doc/invoke.texi (-fprofile-values): Document behavior with
12367 -fbranch-probabilities.
12368
123692003-07-30 David Edelsohn <edelsohn@gnu.org>
12370
12371 * longlong.h (PowerPC umul_ppmm): Do not test __vxworks__.
12372
123732003-07-30 Ulrich Weigand <uweigand@de.ibm.com>
12374
12375 * config/s390/s390.h (EH_RETURN_HANDLER_RTX): Compute offset
12376 symbolically.
12377
123782003-07-30 Jan Hubicka <jh@suse.cz>
12379
12380 * gcse.c (insert_store): Ignore fake edges.
12381
12382 * c-common.c (flag_vtable_gc): Kill.
12383 * c-common.g (flag_vtable_gc): Kill.
12384 * c-opts (c_common_handle_option): Kill.
12385 * c.opt (fvtable-gc): Kill.
12386 * final.c (final_scan_insn): Do not call assemble_vtable_entry.
12387 * output.h (assemble_vtable_entry, assemble_vtable_inherit): Kill.
12388 * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): Kill.
12389
12390 * invoke.texi (-ftable-gc): Kill documentation.
12391
12392 * tree-inline.c (inlinable_function_p): Don't set DECL_UNINLINABLE
12393 just because function body is missing.
12394
12395 * i386.c (pic_symbolic_operand): Properly detect RIP relative unspecs.
12396
123972003-07-30 Ranjit Mathew <rmathew@hotmail.com>
12398
12399 * unwind-sjlj.c: Fix typo in file description.
12400
124012003-07-30 Alan Modra <amodra@bigpond.net.au>
12402
12403 * calls.c (load_register_parameters): When shifting reg sized values
12404 to the msb, move the value to a reg first.
12405
124062003-07-29 Geoffrey Keating <geoffk@apple.com>
12407
12408 * cppfiles.c (stack_file): Leave filename as "" rather than "<stdin>".
12409 * line-map.h (linemap_add): Update comments.
12410 * line-map.c (linemap_add): Update comments, interpret zero-length
12411 filename as "<stdin>".
12412
124132003-07-29 Nathanael Nerode <neroden@gcc.gnu.org>
12414
12415 * mkinstalldirs: Import autoconf 2.57 / automake 1.7 version.
12416
124172003-07-29 Zack Weinberg <zack@codesourcery.com>
12418
12419 * c-decl.c (last_function_parm_vars, current_function_parm_vars):
12420 New static variables.
12421 (struct c_scope): Add parms and warned_forward_parm_decls
12422 fields; remove parm_order.
12423 (storedecls, storetags): Delete.
12424 (poplevel): Also clear bindings on the parms chain.
12425 (pushdecl): Handle forward declarations of parameters, and
12426 chain PARM_DECLs on the parms list, not the names list.
12427 (lookup_name_current_level): Check for PARM_DECLs on the parms
12428 list too.
12429 (push_parm_decl): Don't update parm_order.
12430 (clear_parm_order): Rename mark_forward_parm_decls. Issue the
12431 warning, only once per parameter list, and set TREE_ASM_WRITTEN
12432 on the decls here. Then move the forward decls to the names list.
12433 (grokparms): Set last_function_parm_vars.
12434 (get_parm_info): Don't use gettags or getdecls. No need to
12435 extract non-parms from the parms list, or reorganize the parms
12436 list. Feed nonparms back in the TREE_TYPE of the list node
12437 returned. Issue only one error per parameter list for "void"
12438 appearing more than once in said parameter list. Collapse
12439 parmlist_tags_warning into this function to avoid double scan
12440 of tags list.
12441 (start_function): Set current_function_parm_vars.
12442 (store_parm_decls_newstyle): Bypass pushdecl, manipulate scope
12443 directly. Get non-parms from current_function_parm_vars; no
12444 need to extract them from the parms chain. Properly bind tags
12445 in the new scope.
12446 (store_parm_decls_oldstyle): No need to extract non-parameters
12447 from the parms chain, nor to store them back afterward. Move
12448 declaration to top of function, restructure code reordering
12449 DECL_ARGUMENTS.
12450 (store_parm_decls): No need to save and restore warn_shadow.
12451 * c-parse.in: Don't call parmlist_tags_warning nor
12452 clear_parm_order. Call mark_forward_parm_decls when forward
12453 parm decls are encountered.
12454 * c-tree.h: Prototype mark_forward_parm_decls; not
12455 clear_parm_order or parmlist_tags_warning.
12456
124572003-07-29 Geoffrey Keating <geoffk@apple.com>
12458
12459 * c-common.c (allow_pch): Remove.
12460 * c-common.h (allow_pch): Remove.
12461 (c_common_no_more_pch): Declare.
12462 * c-lex.c (c_lex): Call c_common_no_more_pch when appropriate.
12463 * c-pch.c: Include hosthooks.h.
12464 (c_common_valid_pch): Don't check allow_pch.
12465 (c_common_read_pch): Clear valid_pch to prevent reading PCH files.
12466 (c_common_no_more_pch): New.
12467 * ggc-common.c: Include hosthooks.h.
12468 (gt_pch_save): Call gt_pch_get_address.
12469 (gt_pch_restore): Call gt_pch_use_address.
12470 * hooks.c (hook_voidp_size_t_null): New.
12471 (hook_bool_voidp_size_t_false): New.
12472 * hooks.h (hook_voidp_size_t_null): New.
12473 (hook_bool_voidp_size_t_false): New.
12474 * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): New.
12475 (HOST_HOOKS_GT_PCH_USE_ADDRESS): New.
12476 (HOST_HOOKS_INITIALIZER): Add HOST_HOOKS_GT_PCH_GET_ADDRESS,
12477 HOST_HOOKS_GT_PCH_USE_ADDRESS.
12478 * hosthooks.h (struct host_hooks): Add gt_pch_get_address,
12479 gt_pch_use_address.
12480 * doc/hostconfig.texi (Host Common): Document
12481 HOST_HOOKS_GT_PCH_GET_ADDRESS, HOST_HOOKS_GT_PCH_USE_ADDRESS.
12482 * Makefile.in (c-pch.o): Depend on hosthooks.h.
12483 (ggc-common.o): Likewise.
12484
12485 * config/rs6000/host-darwin.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Define.
12486 (HOST_HOOKS_GT_PCH_USE_ADDRESS): Define.
12487 (pch_address_space): New.
12488 (darwin_rs6000_gt_pch_get_address): New.
12489 (darwin_rs6000_gt_pch_use_address): New.
12490
124912003-07-29 Neil Booth <neil@daikokuya.co.uk>
12492
12493 PR preprocessor/11569
12494 PR preprocessor/11649
12495 * Makefile.in (LIBCPP_DEPS): Add HASHTAB_H.
12496 * cppfiles.c: Completely rewritten.
12497 * c-incpath.c (free_path, remove_duplicates, heads, tails, add_path):
12498 struct cpp_path is now struct cpp_dir.
12499 (remove_duplicates): Don't simplify path names.
12500 * c-opts.c (c_common_parse_file): cpp_read_next_file renamed
12501 cpp_stack_file.
12502 * cpphash.h: Include hashtab.h.
12503 (_cpp_file): Declare.
12504 (struct cpp_buffer): struct include_file is now struct _cpp_file,
12505 and struct cpp_path is now struct cpp_dir. Rename members.
12506 (struct cpp_reader): Similarly. New members once_only_files,
12507 file_hash, file_hash_entries, quote_ignores_source_dir,
12508 no_search_path, saw_pragma_once. Remove all_include_files and
12509 max_include_len. Make some members bool.
12510 (_cpp_mark_only_only): Renamed from _cpp_never_reread.
12511 (_cpp_stack_file): Renamed from _cpp_read_file.
12512 (_cpp_stack_include): Renamed from _cpp_execute_include.
12513 (_cpp_init_files): Renamed from _cpp_init_includes.
12514 (_cpp_cleanup_files): Renamed from _cpp_cleanup_includes.
12515 * cppinit.c (cpp_create_reader): Initialize no_search_path. Update.
12516 (cpp_read_next_file): Rename and move to cppfiles.c.
12517 (cpp_read_main_file): Update.
12518 * cpplib.c (run_directive): Update for renamed members.
12519 (do_include_common, _cpp_pop_buffer): Update.
12520 (do_import): Undeprecate #import.
12521 (do_pragma_once): Undeprecate. Use _cpp_mark_file_once_only.
12522 * cpplib.h: Remove file_name_map_list.
12523 (cpp_options): Remove map_list.
12524 (cpp_dir): Rename from cpp_path. New datatype for name_map.
12525 (cpp_set_include_chains, cpp_stack_file, cpp_included): Update.
12526
125272003-07-29 Phil Edwards <pme@gcc.gnu.org>
12528
12529 * Makefile.in: Make stamp-objdir safe for parallel builds.
12530
125312003-07-29 Phil Edwards <pme@gcc.gnu.org>
12532
12533 * Makefile.in (stmp-docobjdir): New target; ensure $docobjdir exists.
12534 (info): Depend on stmp-docobjdir.
12535
125362003-07-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12537
12538 * configure: Regenerate.
12539
125402003-07-29 Jan Hubicka <jh@suse.cz>
12541
12542 PR C++/11131
12543 * tree-inline.c (expand_call_inline): Always call inlinable_function_p
12544 in !unit-at-a-time mode.
12545
125462003-07-28 Geoffrey Keating <geoffk@apple.com>
12547
12548 * c-decl.c (c_expand_body_1): Use C_DECL_FILE_SCOPE to detect
12549 main function.
12550
125512003-07-28 Mark Mitchell <mark@codesourcery.com>
12552
12553 PR c++/11667
12554 * c-common.c (shorten_compare): Take into account differences
12555 between C and C++ representation for enumeration types.
12556 * tree.h (set_min_and_max_values_for_integral_type): Declare.
12557 * stor-layout.c (set_min_and_max_values_for_integral_type): New
12558 function, broken out from ...
12559 (fixup_signed_type): ... here and ...
12560 (fixup_unsigned_type): ... here.
12561
125622003-07-28 Zack Weinberg <zack@codesourcery.com>
12563
12564 * c-decl.c: Update commentary, adjust blank lines throughout.
12565 (struct c_scope): Fix indentation. Reorder members so
12566 outer-context pointers come first, booleans last.
12567 (duplicate_decls, define_label): Use a 'locus' variable for
12568 diagnostic locations in a few more places.
12569 (warn_if_shadowing): Un-split a conditional that fits on one line.
12570 (c_init_decl_processing): No need to clear current_scope and
12571 current_function_scope.
12572 (start_decl): Merge if/else if statements with same action.
12573 (push_parm_decl): Rename old_immediate_size_expand to use
12574 save_foo convention; save/restore around entire function.
12575 (grokdeclarator): Remove unnecessary braces.
12576
125772003-07-28 Hans-Peter Nilsson <hp@bitrange.com>
12578 Michael Culbertson <Michael.J.Culbertson@wheaton.edu>
12579
12580 * c-parse.in (lineno_stmt_decl_or_labels_ending_decl): Also warn
12581 when warn_declaration_after_statement. Call pedwarn_c90, not
12582 pedwarn. Correct message: it's "ISO C90", not "ISO C89".
12583 * c-common.c (warn_declaration_after_statement): Define.
12584 * c-common.h (warn_declaration_after_statement): Declare.
12585 * c.opt (Wdeclaration-after-statement): New.
12586 * c-errors.c (pedwarn_c90): New function.
12587 * c-opts.c (c_common_handle_option) <case
12588 OPT_Wdeclaration_after_statement>: New.
12589 * c-tree.h (pedwarn_c90): Declare.
12590 * doc/invoke.texi (Option Summary): Document
12591 -Wdeclaration-after-statement.
12592 (Warning Options): Ditto.
12593
125942003-07-28 Jan Hubicka <jh@suse.cz>
12595
12596 * i386.md (memory attribute) Avoid accessing uninitialized memory
12597 for ishift1 type instructions.
12598
125992003-07-28 Jakub Jelinek <jakub@redhat.com>
12600
12601 * configure.in (--enable-checking): Add fold category.
12602 (ENABLE_FOLD_CHECKING): Define if requested.
12603 * configure: Rebuilt.
12604 * config.in: Rebuilt.
12605 * doc/install.texi: Document it.
12606 * fold-const.c: Include md5.h.
12607 [ENABLE_FOLD_CHECKING] (fold): Define to fold_1.
12608 [ENABLE_FOLD_CHECKING] (fold, fold_checksum_tree, fold_check_failed,
12609 print_fold_checksum): New functions.
12610
12611 * fold-const.c (fold): Never modify argument passed to fold, instead
12612 change a copy and return it.
12613 * convert.c (convert_to_integer): Likewise.
12614
126152003-07-27 Nathanael Nerode <neroden@gcc.gnu.org>
12616
12617 * fixinc/fixinc.svr4: Remove dead code. Remove now-unnecessary
12618 cleanup of junk after #else and #endif directives. Collapse repeated
12619 clauses into for statment.
12620
12621 * fixinc/fixincl.sh: GNU C -> GCC. Add usage comment.
12622
126232003-07-27 Zack Weinberg <zack@codesourcery.com>
12624
12625 * c-decl.c (struct c_scope): Remove keep_if_subblocks field.
12626 (keep_next_if_subblocks): Rename next_is_function_body.
12627 (pushlevel): Adjust commentary. Always set ->keep on the
12628 outermost level of a function. Don't set ->keep_if_subblocks.
12629 (poplevel): Adjust commentary. Don't look at ->keep_if_subblocks.
12630 (store_parm_decls): Adjust to match.
12631 (finish_function): Adjust to match.
12632 Call poplevel with all three arguments zero.
12633
12634 * c-decl.c (store_parm_decls_newstyle, store_parm_decls_oldstyle):
12635 New functions split out of store_parm_decls.
12636 Avoid unnecessary work. Use local variables consistently.
12637 (store_parm_decls): Likewise.
12638
12639 (finish_function): No need to set functionbody flag on call to
12640 poplevel.
12641 (struct language_function): Remove scope field.
12642 (c_push_function_context, c_pop_function_context): No need to
12643 save and restore current_scope.
12644
126452003-07-27 Nathan Sidwell <nathan@codesourcery.com>
12646
12647 * doc/extend.texi (Deprecated Features): Implicit typename is
12648 gone. Default args on types is going.
12649
126502003-07-26 J"orn Rennecke <joern.rennecke@superh.com>
12651
12652 * Makefile.in (ifcvt.o): Depend on target.h
12653 * ifcvt.c (target.h): Include.
12654 (if_convert): Don't call mark_loop_exit_edges if we can't
12655 modify jumps.
12656
126572003-07-26 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
12658
12659 * doc/install.texi (Testing): Adjust required versions of DejaGnu.
12660
126612003-07-26 Richard Henderson <rth@redhat.com>
12662
12663 PR inline-asm/11676
12664 * cse.c (count_reg_usage): Handle asm_operands properly.
12665
126662003-07-26 Roger Sayle <roger@eyesopen.com>
12667
12668 * builtins.def (DEF_FALLBACK_BUILTIN): Delete.
12669 (DEF_EXT_FALLBACK_BUILTIN): Delete.
12670 (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Declare using
12671 the regular DEF_EXT_LIB_BUILTIN macro.
12672 (BUILT_IN_FPUTC, BUILT_IN_FPUTS, BUILT_IN_FWRITE): Declare using
12673 the regular DEF_LIB_BUILTIN macro.
12674 (BUILT_IN_PUTCHAR_UNLOCKED, BUILT_IN_PUTS_UNLOCKED,
12675 BUILT_IN_FPUTC_UNLOCKED, BUILT_IN_FPUTS_UNLOCKED,
12676 BUILT_IN_FWRITE_UNLOCKED): Declare using the regular
12677 DEF_EXT_LIB_BUILTIN macro.
12678
12679 * c-decl.c (duplicate_decls): Remove code to handle builtin
12680 functions prototyped without an argument list.
12681
126822003-07-26 Danny Smith <dannysmith@users.sourceforge.net>
12683
12684 * config/i386/winnt.c: Revert 2003-07-08 change.
12685 (i386_pe_section_type_flags): Remove error_with_decl here too.
12686
126872003-07-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
12688
12689 * config/arm/pe.c (arm_mark_dllimport): Don't use xxx_with_decl.
12690 * config/mcore/mcore.c (mcore_mark_dllimport): Likewise.
12691 * config/v850/v850.c (v850_handle_data_area_attribute): Likewise.
12692 (v850_handle_data_area_attribute): Likewise.
12693
126942003-07-26 Geoffrey Keating <geoffk@apple.com>
12695
12696 * varasm.c (output_constant_def_contents): Use
12697 ASM_DECLARE_CONSTANT_NAME if defined.
12698 * doc/tm.texi (Label Output): Document ASM_DECLARE_CONSTANT_NAME.
12699 * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Ensure zero-sized
12700 objects get at least one byte to prevent assembler problems.
12701 (ASM_DECLARE_CONSTANT_NAME): New.
12702
12703 * Makefile.in (libbackend.o): Remove options_.h.
12704 (mostlyclean): Likewise.
12705
12706 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
12707 insert a label at the end of an function under Mach-O.
12708
12709 * c-decl.c (c_static_assembler_name): Remove TREE_STATIC test.
12710
127112003-07-25 Aldy Hernandez <aldyh@redhat.com>
12712
12713 * config/rs6000/rs6000.c (is_ev64_opaque_type): Only check pointer
12714 equality.
12715 (spe_init_builtins): Declare __ev64_opaque__ as a builtin type.
12716
12717 * config/rs6000/spe.h: Remove __ev64_opaque__ definition.
12718
127192003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
12720
12721 * doc/passes.texi (Passes): Mention pretty-printing and
12722 diagnostic files.
12723
127242003-07-25 Nathan Sidwell <nathan@codesourcery.com>
12725
12726 * doc/extend.texi (Function Attributes): GNU C++ does now allow
12727 unused parameter decls.
12728 (Attribute Syntax): GNU C++ does not allow label attributes to be
12729 after the ':'.
12730
127312003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
12732
12733 * objc/objc-act.c (objc_check_decl): Don't use xxx_with_decl.
12734 (objc_declare_class): Likewise.
12735 (error_with_ivar): Likewise.
12736 (start_class): Likewise.
12737 (warn_with_method): Likewise.
12738
127392003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
12740
12741 Remove pedwarn_with_decl, warning_with_decl and error_with_decl
12742 from GCC.
12743 * calls.c (try_to_integrate): Don't use xxx_with_decl.
12744 (expand_call): Likewise.
12745 * dwarfout.c (output_reg_number): Likewise.
12746 * expr.c (expand_expr): Likewise.
12747 * function.c (assign_temp): Likewise.
12748 (uninitialized_vars_warning): Likewise.
12749 (setjmp_args_warning): Likewise.
12750 (expand_function_end): Likewise.
12751 * stmt.c (fixup_gotos): Likewise.
12752 (warn_about_unused_variables): Likewise.
12753 (expand_end_bindings): Likewise.
12754 * stor-layout.c (layout_decl): Likewise.
12755 (place_field): Likewise.
12756 * toplev.c (check_global_declarations): Likewise.
12757 (rest_of_handle_inlining): Likewise.
12758 (default_tree_printer): New function.
12759 (general_init): Initialize diagnostic machinery before routing
12760 signals to the ICE machinery. Set default tree printer.
12761 * toplev.h (pedwarn_with_decl): Remove declaration.
12762 (warning_with_decl): Likewise.
12763 (error_with_decl): Likewise.
12764 (pedwarn): Remove attribute for the time being.
12765 * tree-inline.c (expand_call_inline): Don't use xxx_with_decl.
12766 * varasm.c (named_section): Likewise.
12767 (make_decl_rtl): Likewise.
12768 (assemble_variable): Likewise.
12769 (merge_weak): Likewise.
12770 (declare_weak): Likewise.
12771
12772 * diagnostic.h: Move non-diagnostic stuff into pretty-print.h.
12773 * diagnostic.c: Move non-diagnostic stuff into pretty-print.c.
12774 (format_with_decl): Remove.
12775 (diagnostic_for_decl): Likewise.
12776 (pedwarn_with_decl): Likewise.
12777 (warning_with_decl): Likewise.
12778 (error_with_decl): Likewise.
12779 (diagnostic_initialize): Adjust.
12780 (diagnostic_count_diagnostic): Likewise.
12781 (announce_function): Likewise.
12782 (lhd_print_error_function): Likewise.
12783 (diagnostic_report_current_module): Likewise.
12784 (default_diagnostic_starter): Likewise.
12785 (diagnostic_report_diagnostic): Likewise.
12786 (default_diagnostic_finalizer): Likewise.
12787 (verbatim): Likewise.
12788 (error): Likewise.
12789 (warning): Likewise.
12790 * opts.c (common_handle_option): Likewise.
12791 * pretty-print.c: New file.
12792 * c-pretty-print.h (pp_base): Override.
12793 * c-pretty-print.c: Adjust use of macros throughout.
12794 (pp_buffer): New macro.
12795 (pp_newline): Likewise.
12796 * c-objc-common.c (c_tree_printer): Adjust prototype. Tidy.
12797 * Makefile.in (DIAGNOSTIC_H): New variable.
12798 (c-errors.o): Use it.
12799 (c-objc-common.o): Likewise.
12800 (c-common.o): Likewise.
12801 (c-opts.o): Likewise.
12802 (c-format.o): Likewise.
12803 (diagnostic.o): Likewise.
12804 (opts.o): Likewise.
12805 (toplev.o): Likewise.
12806 (rtl-error.o): Likewise.
12807 (dwarf2out.o): Likewise.
12808 (jump.o): Likewise.
12809 (pretty-print.o): New rule.
12810
128112003-07-24 Roger Sayle <roger@eyesopen.com>
12812
12813 * builtins.def (BUILT_IN_PRINTF, BUILT_IN_FPRINTF): Changed from
12814 front-end builtins to normal builtins, using DEF_LIB_BUILTIN.
12815 (BUILT_IN_PRINTF_UNLOCKED, BUILT_IN_FPRINTF_UNLOCKED): Changed
12816 from front-end to normal builtins, using DEF_EXT_LIB_BUILTIN.
12817 (DEF_FRONT_END_LIB_BUILTIN): Delete.
12818 (DEF_EXT_FRONT_END_LIB_BUILTIN): Delete.
12819 (BUILT_IN_FWRITE_UNLOCKED): Wrap long line.
12820
12821 * builtins.c (build_string_literal): New function to construct
12822 a char* pointer to a string literal.
12823 (expand_builtin_fputs): Change 2nd argument from "int ignore" to
12824 "rtx target" to be consistent with other expand_builtin_* functions.
12825 Change 3rd argument from "int unlocked" to "bool unlocked".
12826 (expand_builtin_printf): Rewrite of c_expand_builtin_printf from
12827 c-common.c to avoid front-end dependencies. Optimize printf("")
12828 as a no-op when the result isn't required. Handle embedded NULs
12829 in format string.
12830 (expand_builtin_fprintf): A rewrite of c_expand_builtin_fprintf
12831 from c-common.c to avoid front-end dependencies. Likewise, optimize
12832 fprintf(fp,"") as a no-op when the result isn't required, evaluating
12833 fp for side-effects. Handle embedded NULs in format string.
12834 (expand_builtin_sprintf): Fix typo.
12835 (expand_builtin): Don't expand BUILT_IN_FPRINT{,_UNLOCKED} when not
12836 optimizing. Adjust calls of expand_builtin_fputs to match the API
12837 change. Expand BUILT_IN_PRINTF and BUILT_IN_PRINTF_UNLOCKED using
12838 expand_builtin_printf. Likewise, expand BUILT_IN_FPRINTF_UNLOCKED
12839 and BUILT_IN_FPRINTF using expand_builtin_fprintf.
12840
12841 * c-common.c (is_valid_printf_arglist): Delete.
12842 (c_expand_builtin): Delete.
12843 (c_expand_builtin_printf): Moved to builtins.c. Delete.
12844 (c_expand_builtin_fprintf): Moved to builtins.c. Delete.
12845 (c_expand_expr): No longer treat CALL_EXPRs specially.
12846 (CALLED_AS_BUILT_IN): Delete.
12847
128482003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12849
12850 PR optimization/11631
12851 * gcse.c (store_motion): Connect infinite loops to exit.
12852
128532003-07-24 Jason Merrill <jason@redhat.com>
12854
12855 * tree.h (boolean_type_node): Move from C/C++/Java frontends.
12856 (boolean_true_node, boolean_false_node): Likewise.
12857 (enum tree_index): Add TI_BOOLEAN_{TYPE,FALSE,TRUE}.
12858 * tree.c (build_common_tree_nodes): Init boolean_type_node.
12859 (build_common_tree_nodes_2): Init boolean_{true,false}_node.
12860 * stor-layout.c (set_sizetype): Handle an early BOOLEAN_TYPE.
12861 * c-common.h (truthvalue_type_node): Renamed from boolean_type_node.
12862 (truthvalue_true_node): Renamed from boolean_true_node.
12863 (truthvalue_false_node): Renamed from boolean_false_node.
12864 * c-decl.c: Just set truthvalue_* to integer_*.
12865 * c-*.[ch]: s/boolean/truthvalue/. s/c_bool/boolean/.
12866
128672003-07-24 Roger Sayle <roger@eyesopen.com>
12868
12869 * c-decl.c (match_builtin_function_types): New subroutine of
12870 duplicate_decls to test whether a redeclaration of a builtin
12871 function is suitably close, i.e. the return type and all of
12872 the argument types have the same modes as the builtin expects.
12873 (duplicate_decls): Fuzzy type matching for builtin functions
12874 moved to match_builtin_function_types.
12875
128762003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12877
12878 * cfgloopmanip.c (duplicate_loop_to_header_edge): Update irreducible
12879 flag correctly.
12880
128812003-07-24 Zack Weinberg <zack@codesourcery.com>
12882
12883 * c-decl.c: Search-and-replace change 'binding level' to
12884 'scope' in commentary.
12885 (struct binding_level): Now struct c_scope.
12886 (current_binding_level): Now current_scope.
12887 (free_binding_level): Now scope_freelist.
12888 (current_function_level): Now current_function_scope.
12889 (global_binding_level): Now global_scope.
12890 (make_binding_level): Now make_scope.
12891 (pop_binding_level): Now pop_scope.
12892
128932003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12894
12895 * configure.in (libgcc_visibility): Add missing whitespace.
12896
128972003-07-24 Richard Henderson <rth@redhat.com>
12898
12899 * libgcc-std.ver (GCC_3.3.1): Export __gcc_personality_sj0,
12900 __gcc_personality_v0.
12901
129022003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12903
12904 * Makefile.in: Replace pwd by ${PWD_COMMAND}.
12905
129062003-07-24 Nathan Sidwell <nathan@codesourcery.com>
12907
12908 * doc/invoke.texi (-fprofile-arcs, -ftest-coverage): Update
12909 documentation missed from my 2003-07-09 patch.
12910
129112003-07-24 Nathanael Nerode <neroden@gcc.gnu.org>
12912
12913 * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Set patch level to 0 if
12914 it's not provided.
12915 * configure: Rebuild.
12916
129172003-07-24 Steven Bosscher <steven@gcc.gnu.org>
12918
12919 PR c/10602
12920 * c-typeck.c (type_lists_compatible_p): Do not compare
12921 arguments if one of them is an error_mark_node
12922
129232003-07-24 Alan Modra <amodra@bigpond.net.au>
12924
12925 * config/rs6000/rs6000.c (rs6000_emit_prologue): Save fp regs inline
12926 if current_function_calls_eh_return.
12927
129282003-07-23 Mark Mitchell <mark@codesourcery.com>
12929
12930 * doc/c-tree.texi (OFFSET_TYPE): Update description.
12931
129322003-07-23 Bob Wilson <bob.wilson@acm.org>
12933
12934 * config/xtensa/crti.asm (_init, _fini): Increase frame size to 64.
12935 * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
12936 __umodsi3, __modsi3): Increase frame size to 32.
12937
129382003-07-23 Geoffrey Keating <geoffk@apple.com>
12939
12940 * config/rs6000/host-darwin.c: ANSIfy, update comment for sigaltstack
12941 prototype.
12942
129432003-07-23 Mark Mitchell <mark@codesourcery.com>
12944
12945 * doc/c-tree.texi (Types): Update documentation for OFFSET_TYPE.
12946
12947 PR optimization/10679
12948 * tree-inline.c (inlinable_function_p): Honor MIN_INLINE_INSNS.
12949
129502003-07-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12951
12952 PR target/11607 and PR target/11516
12953 * pa.md (extzv, extv, insv): Revert latter half of last patch.
12954
129552003-07-22 Mark Mitchell <mark@codesourcery.com>
12956
12957 * fold-const.c (force_fit_type): Handle OFFSET_TYPE.
12958 * varasam.c (output_constant): Likewise.
12959
129602003-07-22 Kazu Hirata <kazu@cs.umass.edu>
12961
12962 * alias.c: Fix comment formatting.
12963 * c-common.c: Likewise.
12964 * c-decl.c: Likewise.
12965 * c-opts.c: Likewise.
12966 * combine.c: Likewise.
12967 * cpplib.c: Likewise.
12968 * diagnostic.c: Likewise.
12969 * dojump.c: Likewise.
12970 * final.c: Likewise.
12971 * fold-const.c: Likewise.
12972 * gcc.c: Likewise.
12973 * gcse.c: Likewise.
12974 * ggc-page.c: Likewise.
12975 * jump.c: Likewise.
12976 * loop.c: Likewise.
12977 * mips-tfile.c: Likewise.
12978 * recog.c: Likewise.
12979 * regclass.c: Likewise.
12980 * regmove.c: Likewise.
12981 * tree.c: Likewise.
12982 * tree.h: Likewise.
12983
129842003-07-22 Per Bothner <pbothner@apple.com>
12985
12986 * line-map.c (add_line_map): Handle invalid LEAVE request.
12987 Fixes PR preprocessor/11361.
12988
129892003-07-22 Per Bothner <pbothner@apple.com>
12990
12991 * diagnostic.c.(diagnostic_report_current_module): Update to match
12992 2003-06-05 changes to push_srcloc and pop_srcloc.
12993
129942003-07-22 Wolfgang Bangerth <bangerth@dealii.org>
12995
12996 * doc/trouble.texi: Better document two-stage name lookup.
12997
129982003-07-22 Eric Christopher <echristo@redhat.com>
12999
13000 * config/s390.c (s390_valid_pointer_mode): New.
13001 (TARGET_VALID_POINTER_MODE): Use.
13002 (s390_emit_prologue): Add tpf profiling hooks.
13003 (s390_emit_epilogue): Ditto.
13004 * config/s390.h (MASK_TPF): New.
13005 (TARGET_TPF): Use.
13006 (POINTERS_EXTEND_UNSIGNED): Define.
13007 * config/s390.md (ptr_extend): New pattern.
13008
130092003-07-22 Zack Weinberg <zack@codesourcery.com>
13010
13011 * hashtable.c (approx_sqrt): Make static.
13012 * hashtable.h: Don't prototype approx_sqrt.
13013 * line-map.c (init_line_maps): Rename linemap_init.
13014 (free_line_maps): Rename linemap_free.
13015 (add_line_map): Rename linemap_add.
13016 (lookup_line): Rename linemap_lookup.
13017 (print_containing_files): Rename linemap_print_containing_files.
13018 * linemap.h: Update to match.
13019
13020 * cpperror.c, cppinit.c, cpplib.c, cppmacro.c: Update calls to
13021 linemap routines to use new names.
13022
130232003-07-16 Nathan Sidwell <nathan@codesourcery.com>
13024
13025 * c-common.c (handle_packed_attribute): Don't pack a struct via a
13026 typedef. Propagate packedness from a main variant.
13027
130282003-07-22 Nathanael Nerode <neroden@gcc.gnu.org>
13029
13030 * Makefile.in (install-common): Add dependency on installdirs.
13031
130322003-07-21 Alexandre Oliva <aoliva@redhat.com>
13033
13034 * c-common.c (c_common_type_for_mode): Return integer types for
13035 pointer modes.
13036
130372003-07-22 Geoffrey Keating <geoffk@apple.com>
13038
13039 * c-decl.c (start_decl): Don't call maybe_apply_pragma_weak here.
13040 (finish_decl): Call maybe_apply_pragma_weak here.
13041 (grokdeclarator): Check that DECL_ASSEMBLER_NAME isn't set before
13042 TREE_PUBLIC and TREE_STATIC are decided.
13043 (start_function): Move call to maybe_apply_pragma_weak. Check that
13044 DECL_ASSEMBLER_NAME isn't set too early.
13045
13046 * cpplex.c (_cpp_process_line_notes): Mention option name in
13047 trigraphs warning.
13048
130492003-07-22 Kazu Hirata <kazu@cs.umass.edu>
13050
13051 * combine.c (if_then_else_cond): Simplify the comparison of
13052 rtx against -1, 0, and 1.
13053 * loop.c (check_dbra_loop): Likewise.
13054 * optabs.c (emit_conditional_move): Likewise.
13055 (emit_conditional_add): Likewise.
13056 * config/i386/i386.md (*movsi_or): Likewise.
13057 (*movdi_or_rex6): Likewise.
13058
130592003-07-22 Jan Hubicka <jh@suse.cz>
13060
13061 * cgraphunit.c (cgraph_finalize_compilation_unit): Remove redundant if.
13062
130632003-07-21 Neil Booth <neil@daikokuya.co.uk>
13064
13065 * cppfiles.c (open_file_pch): Don't put unused entries in the
13066 splay tree. Remove dead code.
13067
130682003-07-21 Geoffrey Keating <geoffk@apple.com>
13069
13070 * c-common.h (num_in_fnames): Declare.
13071 (c_static_assembler_name): Move from here...
13072 * c-tree.h (c_static_assembler_name): ... to here.
13073 * c-opts.c: Don't include langhooks-def.h.
13074 (c_static_assembler_name): Move to c-decl.c.
13075 (num_in_fnames): Make externally visible.
13076 * c-decl.c: Include langhooks-def.h.
13077 (c_static_assembler_name): Move from c-opts.c.
13078 * Makefile.in (c-decl.o): Add $(LANGHOOKS_DEF_H).
13079 (c-opts.o): Remove $(LANGHOOKS_DEF_H).
13080
13081 * c-pragma.c (maybe_apply_pragma_weak): Don't get DECL_ASSEMBLER_NAME
13082 when it's not needed.
13083
130842003-07-21 Jakub Jelinek <jakub@redhat.com>
13085
13086 * config/rs6000/rs6000.h (machine_function): Add ra_need_lr.
13087 * config/rs6000/rs6000.c (rs6000_return_addr): Set it.
13088 (rs6000_emit_prologue): Save FPRs inline if set.
13089
130902003-07-21 H.J. Lu <hongjiu.lu@intel.com>
13091
13092 * config/ia64/ia64.md (prefetch): Support predicate.
13093
130942003-07-21 Josef Zlomek <zlomekj@suse.cz>
13095
13096 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Use tablejump_p.
13097 * rtlanal.c (tablejump_p): Use next_active_insn for finding the jump
13098 table.
13099
131002003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
13101
13102 PR optimization/11536
13103 * unroll.c (loop_iterations): Do not replace a register holding
13104 the final value by its equivalent before the loop if it is not
13105 invariant.
13106
131072003-07-21 Dave Fluri <dave.fluri@onlink.net>
13108
13109 * doc/extend.texi: Fixes to spelling, grammar, and diction.
13110
131112003-07-21 Ben Elliston <bje@wasabisystems.com>
13112
13113 * doc/invoke.texi (Optimize Options): Replace "it's" with "its".
13114 (V850 Options): Spelling fixes.
13115
131162003-07-20 Lisa M. Goldstein <opus@gnu.org>
13117
13118 * doc/invoke.texi: Fixes to style, grammar and diction.
13119
131202003-07-20 Roger Sayle <roger@eyesopen.com>
13121
13122 * builtins.def (BUILT_IN_ALLOCA): Remove "#if SMALL_STACK" form.
13123 * system.h (SMALL_STACK): Poison obsolete target macro.
13124 * doc/tm.texi (SMALL_STACK): Remove target macro documentation.
13125
131262003-07-20 Phil Edwards <pme@gcc.gnu.org>
13127
13128 * configure.in: Cache the results of testing for cmp's capabilities.
13129 * configure: Regenerate.
13130
131312003-07-20 Mark Mitchell <mark@codesourcery.com>
13132
13133 PR debug/11279
13134 * dwarf2out.c (gen_enumeration_type_die): Remember that
13135 enumerators can be unsigned.
13136
131372003-07-19 Zack Weinberg <zack@codesourcery.com>
13138
13139 * c-decl.c (named_labels, shadowed_labels, label_level_chain)
13140 (push_label_level, pop_label_level): Kill.
13141 (struct binding_level): Rename level_chain to outer.
13142 Add outer_function field. Change parm_flag, function_body,
13143 keep, keep_if_subblocks to 1-bit bitfields of type bool.
13144 (current_function_level): New variable.
13145 (keep_next_level_flag, keep_next_if_subblocks): Change type to bool.
13146 (keep_next_level, declare_parm_level, warn_if_shadowing):
13147 Update to match.
13148 (struct language_function): Kill named_labels, shadowed_labels fields.
13149 (c_init_decl_processing, start_function, c_push__function_context)
13150 (c_pop_function_context): No need to muck with named_labels nor
13151 shadowed_labels.
13152
13153 (make_binding_level): No need to clear the structure here.
13154 (pop_binding_level): Always operate on current_binding_level.
13155 Update current_function_level if necessary.
13156 (pushlevel): Don't clear named_labels. Update current_function_level
13157 if necessary. Use "true" and "false" where appropriate.
13158 (poplevel): Diagnose labels defined but not used, or vice
13159 versa, and clear out label-meanings leaving scope, while
13160 walking down the decls list, for all binding levels.
13161 Handle LABEL_DECLs appearing in the shadowed list.
13162 pop_binding_level takes no arguments.
13163 (pushdecl_function_level): Use current_function_level.
13164
13165 (make_label, bind_label): New static functions.
13166 (declare_label): New exported function.
13167 (lookup_label, define_label): Rewritten for new data structure.
13168 (shadow_label): Kill.
13169
13170 * c-tree.h: Prototype declare_label; don't prototype
13171 push_label_level, pop_label_level, nor shadow_label.
13172 * c-parse.in: Remove all calls to push_label_level and
13173 pop_label_level. Use declare_label for __label__ decls.
13174
13175 * doc/extend.texi: Clarify that __label__ can be used to
13176 declare labels with local scope in any nested block, not
13177 just statement expressions. Cross-reference nested functions
13178 section from local labels section.
13179
131802003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
13181
13182 * sched-rgn.c (find_rgns): Initialize current_edge correctly.
13183
131842003-07-19 Phil Edwards <pme@gcc.gnu.org>
13185
13186 * doc/makefile.texi (restrap, profiledbootstrap): Document targets.
13187
131882003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13189
13190 * fixinc/fixfixes.c fixinc/fixincl.c fixinc/fixlib.c
13191 fixinc/server.c objc/objc-act.c: Remove unnecessary casts.
13192
131932003-07-19 Ulrich Weigand <uweigand@de.ibm.com>
13194
13195 * config/s390/s390.c (legitimize_pic_address): Access local symbols
13196 relative to the GOT instead of relative to the literal pool base.
13197 (s390_output_symbolic_const): Handle new GOT-relative accesses.
13198 * config/s390/s390.md ("call"): Access local functions and PLT stubs
13199 relative to the GOT instead of relative to the literal pool base.
13200 ("call_value"): Likewise.
13201 ("call_value_tls"): Likewise.
13202
13203 * config/s390/s390.c (s390_chunkify_start): Remove pool anchor
13204 reloading. Support LTREL_BASE / LTREL_OFFSET construct.
13205 (s390_chunkify_finish): Likewise.
13206 (s390_chunkify_cancel): Likewise.
13207 (s390_reorg): Adapt caller.
13208 (find_base_register_in_addr,
13209 find_base_register_ref, replace_base_register_ref): Delete.
13210 (find_ltrel_base, replace_ltrel_base): New functions.
13211 (find_constant_pool_ref): Handle LTREL_BASE unspecs.
13212 (s390_decompose_address): Handle LTREL_BASE unspecs. Optimize
13213 base vs. index register usage.
13214 (struct constant_pool): Remove 'anchor'.
13215 (s390_add_anchor): Delete.
13216 (s390_dump_pool): Remove anchor handling.
13217 * config/s390/s390.md ("reload_anchor"): Remove.
13218
13219 * config/s390/s390.c (s390_split_branches): Use LTREL_BASE/OFFSET.
13220 (s390_load_got): New function. Use LTREL_BASE/OFFSET.
13221 (s390_emit_prologue): Use it.
13222 * config/s390/s390.md ("builtin_longjmp", "builtin_setjmp_setup",
13223 "builtin_setjmp_receiver"): Cleanup. Use s390_load_got. Do not
13224 hard-code register 14.
13225 * config/s390/s390-protos.h (s390_load_got): Declare.
13226
13227 * config/s390/s390.c (NR_C_MODES, constant_modes, gen_consttable):
13228 Support TImode constants.
13229 * config/s390/s390.md ("consttable_ti"): New.
13230 ("consttable_si", "consttable_di"): Handle TLS symbols correctly.
13231
13232 * config/s390/s390.md (UNSPEC_LTREL_OFFSET, UNSPEC_LTREL_BASE,
13233 UNSPEC_GOTENT, UNSPEC_GOT, UNSPEC_GOTOFF, UNSPEC_PLT, UNSPEC_PLTOFF,
13234 UNSPEC_RELOAD_BASE, UNSPECV_POOL, UNSPECV_POOL_START, UNSPECV_POOL_END,
13235 UNSPECV_POOL_QI, UNSPECV_POOL_HI, UNSPECV_POOL_SI, UNSPECV_POOL_DI,
13236 UNSPECV_POOL_TI, UNSPECV_POOL_SF, UNSPECV_POOL_DF, UNSPECV_MAIN_POOL):
13237 New symbolic constants.
13238 ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
13239 "consttable_sf", "consttable_df", "pool_start_31", "pool_end_31",
13240 "pool_start_64", "pool_end_64", "reload_base_31", "reload_base_64",
13241 "pool", "literal_pool_31", "literal_pool_64"): Cleanup. Use
13242 symbolic UNSPEC values.
13243 * config/s390/s390.c (larl_operand, s390_short_displacement,
13244 bras_sym_operand, s390_cannot_force_const_mem,
13245 s390_delegitimize_address, s390_decompose_address,
13246 legitimize_pic_address, s390_output_symbolic_const,
13247 s390_function_profiler): Use symbolic UNSPEC values.
13248
132492003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13250
13251 * alias.c alloc-pool.c bitmap.c bitmap.h bt-load.c builtins.c
13252 c-common.c c-decl.c c-incpath.c c-lex.c c-opts.c c-parse.in
13253 c-pragma.c c-typeck.c calls.c cfg.c cfganal.c cfgloop.c cfgrtl.c
13254 collect2.c combine.c conflict.c coverage.c cppexp.c cppfiles.c
13255 cpphash.c cppinit.c cpplex.c cpplib.c cppmacro.c cppspec.c
13256 cpptrad.c cse.c cselib.c dbxout.c defaults.h df.c dominance.c
13257 dwarf2out.c dwarfout.c emit-rtl.c except.c expmed.c expr.c final.c
13258 fix-header.c flow.c fold-const.c function.c gcc.c gccspec.c gcov.c
13259 gcse.c genattr.c genattrtab.c genautomata.c genconditions.c
13260 genemit.c genextract.c genoutput.c genrecog.c gensupport.c
13261 ggc-page.c ggc-simple.c global.c graph.c haifa-sched.c hashtable.c
13262 integrate.c jump.c langhooks.c lcm.c line-map.c local-alloc.c
13263 loop.c mips-tdump.c mips-tfile.c mkdeps.c optabs.c params.c
13264 postreload.c prefix.c print-tree.c protoize.c ra-build.c
13265 ra-colorize.c ra-rewrite.c ra.c recog.c reg-stack.c regclass.c
13266 regmove.c regrename.c reload.c reload1.c reorg.c resource.c
13267 sbitmap.c sched-deps.c sched-rgn.c sched-vis.c sdbout.c
13268 simplify-rtx.c ssa-ccp.c ssa.c stmt.c stor-layout.c timevar.c
13269 tlink.c toplev.c tree-dump.c tree.c unroll.c unwind-dw2-fde.c
13270 varasm.c varray.c vmsdbgout.c xcoffout.c: Remove unnecessary
13271 casts.
13272
132732003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
13274
13275 * c-pragma.c (apply_pragma_weak): Don't use warning_with_decl.
13276 * toplev.h (warning): Remove attribute.
13277
132782003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
13279
13280 * c-decl.c (c_finish_incomplete_decl): Don't use xxx_with_decl.
13281 (pop_label_level): Likewise.
13282 (duplicate_decls): Likewise.
13283 (implicitly_declare): Likewise.
13284 (shadow_label): Likewise.
13285 (start_decl): Likewise.
13286 (finish_decl): Likewise.
13287 (grokdeclarator): Likewise.
13288 (get_parm_info): Likewise.
13289 (detect_field_duplicates): Likewise.
13290 (finish_struct): Likewise.
13291 (start_function): Likewise.
13292 (store_parm_decls): Likewise.
13293 (finish_function): Likewise.
13294 (c_expand_body_1): Likewise.
13295 (check_for_loop_decls): Likewise.
13296 (merge_translation_unit_decls): Likewise.
13297
132982003-07-19 Neil Booth <neil@daikokuya.co.uk>
13299
13300 * common.opt: Document --param.
13301 * opts.c (columns, undocumented_msg): New.
13302 (print_help): Get number of columns from environment. Print
13303 --param help. Tweak newline handling.
13304 (print_param_help): New.
13305 (print_filtered_help): Better handling of duplicates. Complain
13306 about undocumented switches.
13307 (print_switch): New.
13308 (wrap_help): Improve wrapping, use COLUMNS.
13309 * opts.sh: Ignore comments in records.
13310 * params.def: Fix typos and remove trailing periods.
13311 * toplev.c (display_help): Don't dump --param help.
13312 * doc/sourcebuild.texi: Update.
13313
133142003-07-18 Richard Henderson <rth@redhat.com>
13315
13316 PR target/11556
13317 * optabs.c (prepare_operand): Fail gracefully instead of abort
13318 if the predicate doesn't satisfy.
13319 (gen_cond_trap): Allow prepare_operand to fail.
13320
133212003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
13322
13323 * c-common.c: Don't undefine GCC_DIAG_STYLE.
13324 (fname_decl): Don't use xxx_with_decl.
13325 (c_add_case_label): Likewise.
13326 (handle_section_attribute): Likewise.
13327 (handle_alias_attribute): Likewise.
13328 (handle_no_instrument_function_attribute): Likewise.
13329 (handle_no_limit_stack_attribute): Likewise.
13330 * c-objc-common.c (c_tree_printer): Print IDENTIFIER_NODEs.
13331 * c-format.c (gcc_cdiag_char_table): Add '%E' format-specifier.
13332
133332003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
13334
13335 * Makefile.in (ifcvt.o): Add cfgloop.h.
13336 * basic-block.h (EDGE_LOOP_EXIT): New flag.
13337 * cfgrtl.c (rtl_verify_flow_info_1): Handle it correctly.
13338 * ifcvt.c: Include cfgloop.h.
13339 (mark_loop_exit_edges): New static function.
13340 (if_convert): Call it.
13341 (find_if_header): Ignore branches out of loops.
13342
133432003-07-18 Kazu Hirata <kazu@cs.umass.edu>
13344
13345 * combine.c (simplify_comparison): Don't share rtx when converting
13346 (ne (and (not X) 1) 0) to (eq (and X 1) 0).
13347
133482003-07-18 David Edelsohn <edelsohn@gnu.org>
13349
13350 * config/rs6000/aix.h (AGGREGATE_PADDING_FIXED): Define.
13351 (AGGREGATES_PAD_UPWARD_ALWAYS): Define.
13352 (MUST_PASS_IN_STACK): Define.
13353 (BLOCK_REG_PADDING): Define.
13354
133552003-07-18 Richard Henderson <rth@redhat.com>
13356
13357 * cfgrtl.c (force_nonfallthru_and_redirect): Use tablejump_p
13358 to skip the addr_vec.
13359
133602003-07-18 Alexandre Oliva <aoliva@redhat.com>
13361
13362 * combine.c (combinable_i3pat): Don't forbid occurrences of
13363 i2dest or i1dest in inner_dest if inner_dest is a mem.
13364
133652003-07-18 Jan Hubicka <jh@suse.cz>
13366
13367 * cgraph.c (cgraph_remove_node): Clear the hash table slot.
13368
133692003-07-17 Jakub Jelinek <jakub@redhat.com>
13370
13371 PR target/11087
13372 * loop.c (basic_induction_var): Check if convert_modes emitted any
13373 instructions. Remove them and return 0 if so.
13374
133752003-07-18 Eric Botcazou <ebotcazou@libertysurf.fr>
13376
13377 PR optimization/11083
13378 * toplev.c (rest_of_handle_addresof): Rename into
13379 rest_of_handle_addressof. Delete unreachable blocks
13380 if dead edges were purged after the addressof pass.
13381
133822003-07-18 Neil Booth <neil@daikokuya.co.uk>
13383
13384 * Makefile.in, configure, configure.in: Remove handling of
13385 lang-options.h and options_.h.
13386 * toplev.c (struct lang_opt, documented_lang_options): Remove.
13387 (display_help): Don't use documented_lang_options.
13388
133892003-07-17 Zack Weinberg <zack@codesourcery.com>
13390
13391 * c-decl.c (pushdecl_function_level): Make static, return nothing.
13392 (kept_level_p): Fold into poplevel.
13393 (undeclared_variable): Moved here from c-typeck.c. Export.
13394 * c-tree.h (KEEP_YES, KEEP_NO, KEEP_MAYBE): New #defines.
13395 (undeclared_variable): Prototype here. Don't prototype
13396 kept_level_p nor pushdecl_function_level.
13397 * c-parse.in: Change first argument to poplevel from
13398 "kept_level_p()" to "KEEP_MAYBE".
13399 * c-typeck.c (undeclared_variable): Moved to c-decl.c.
13400
134012003-07-17 Roger Sayle <roger@eyesopen.com>
13402
13403 * simplify-rtx.c (simplify_rtx): Use simplify_gen_binary to swap
13404 commutative operands instead of modifying the RTL in-place.
13405
134062003-07-17 Mark Mitchell <mark@codesourcery.com>
13407
13408 PR optimization/11557
13409 * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK
13410 unless we know which function is being called.
13411
134122003-07-17 Roger Sayle <roger@eyesopen.com>
13413
13414 * cse.c (fold_rtx): Use swap_commutative_operands_p to determine
13415 whether to reorder the operands of a commutative binary operator.
13416
134172003-07-17 Roger Sayle <roger@eyesopen.com>
13418
13419 * fold-const.c (const_binop): Avoid performing the FP operation at
13420 compile-time, if either operand is NaN and we honor signaling NaNs,
13421 or if we're dividing by zero and either flag_trapping_math is set
13422 or the desired mode doesn't support infinities.
13423 (fold_initializer): New function to fold an expression ignoring any
13424 potential run-time exceptions or traps.
13425 * tree.h (fold_initializer): Prototype here.
13426 * c-typeck.c (build_binary_op): Move to the end of the file so
13427 that intializer_stack is in scope. If constructing an initializer,
13428 i.e. when initializer_stack is not NULL, use fold_initializer to
13429 fold expressions.
13430 * simplify-rtx.c (simplify_binary_operation): Likewise, avoid
13431 performing FP operations at compile-time, if they would raise an
13432 exception at run-time.
13433
134342003-07-17 Geoffrey Keating <geoffk@apple.com>
13435
13436 PR 11498
13437 * Makefile.in (c-opts.o): Add $(LANGHOOKS_DEF_H).
13438 (langhooks.o): Add $(GGC_H), gt-langhooks.h.
13439 (GTFILES): Add langhooks.c.
13440 (gt-langhooks.h): New.
13441 * c-common.h (c_static_assembler_name): Prototype.
13442 * c-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
13443 * objc/objc-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
13444 * c-opts.c: Include langhooks-def.h.
13445 (c_static_assembler_name): New.
13446 * langhooks.c: Include ggc.h. Include gt-langhooks.h.
13447 (var_labelno): New.
13448 (lhd_set_decl_assembler_name): Give static objects with context
13449 unique names.
13450 * varasm.c (var_labelno): Delete.
13451 (make_decl_rtl): Don't change the assembler name once it's set.
13452
13453 * c-opts.c (this_input_filename): New.
13454 (finish_options): Take new parameter, name of file being compiled.
13455 Update callers. Set this_input_filename.
13456 (push_command_line_include): Use this_input_filename not
13457 main_input_filename.
13458
134592003-07-17 Neil Booth <neil@daikokuya.co.uk>
13460
13461 * Makefile.in: Depend .pot generation on options.c.
13462 * po/exgettext: Add an extra_files variable containing additional
13463 files to scan.
13464
134652003-07-17 Zack Weinberg <zack@codesourcery.com>
13466
13467 * objc/objc-lang.c: Override LANG_HOOKS_WRITE_GLOBALS to
13468 c_write_global_declarations.
13469
13470 * c-decl.c: Fix typos in several comments. Remove all
13471 #if 0 blocks; reindent as needed. Remove unused argument
13472 to declare_parm_level; all callers changed.
13473 * c-parse.in: Update calls to declare_parm_level. Avoid
13474 issuing a double warning in some circumstances.
13475 * c-typeck.c: Update calls to declare_parm_level.
13476 * c-tree.h: Update prototype of declare_parm_level.
13477
13478 * c-pragma.c (apply_pragma_weak): Don't complain about a
13479 redundant #pragma weak.
13480
13481 * objc/objc-act.c (forward_declare_categories,
13482 build_selector_reference_decl, build_class_reference_decl,
13483 build_objc_string_decl, synth_forward_declarations,
13484 build_protocol_reference): Set TREE_PUBLIC on synthetic
13485 forward decl to 0, consistent with eventual definition.
13486 Correct comments to match.
13487
13488 * fixinc/inclhack.def (solaris_mutex_init_2): Escape braces
13489 in regexp that don't form a range expression.
13490 * fixinc/fixincl.def: Regenerate.
13491
134922003-07-17 Richard Henderson <rth@redhat.com>
13493
13494 PR target/10907
13495 * config/ia64/ia64.c (ia64_epilogue_uses): GP is live at end
13496 even with !TARGET_CONST_GP.
13497 (ia64_function_ok_for_sibcall): Reject non-local functions.
13498
134992003-07-17 Steven Bosscher <steven@gcc.gnu.org>
13500
13501 * c-common.c (c_estimate_num_insns_1): Don't handle
13502 METHOD_CALL_EXPR.
13503 * expr.c (safe_from_p): Likewise.
13504 * gengtype.c (adjust_field_tree_exp): Likewise.
13505 * stmt.c (warn_if_unused_value): Likewise
13506 * tree.c (first_rtl_op): Likewise.
13507 * tree.def: Don't define METHOD_CALL_EXPR.
13508 * java/lang.c (java_estimate_num_insns_1): Don't handle
13509 METHOD_CALL_EXPR.
13510
135112003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
13512
13513 PR other/11466
13514 * doc/invoke.texi (SPARC Options): Document "-mlittle-endian"
13515 and its restrictions for the SPARC64 port.
13516 Move the entry of "-mimpure-text" before that of "-mv8".
13517
135182003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
13519 Phil Edwards <phil@jaj.com>
13520
13521 * doc/install.texi (*-*-solaris2*): Document the step-by-step
13522 procedure to bootstrap and install.
13523 Document the preference for the legacy Sun tools in /usr/bin
13524 over the POSIX tools in /usr/xpg4/bin for the build process.
13525
135262003-07-17 Neil Booth <neil@daikokuya.co.uk>
13527
13528 * c.opt: Document Uncodumented; use it. Document ObjC options.
13529 * opts.c (print_filtered_help): Skip undocumented switches.
13530 * opts.h (CL_UNDOCUMENTED): New.
13531 * opts.sh: Handle Undocumented.
13532 * toplev.c (documented_lang_options): Prevent its becoming empty.
13533objc:
13534 * lang-options.h: Remove.
13535
135362003-07-16 Ulrich Weigand <uweigand@de.ibm.com>
13537
13538 * loop.c (check_ext_dependent_givs): Pass const struct loop *
13539 instead of struct loop_info * as argument. Accept BIVs with
13540 increment +/- 1 provided there is a friendly exit test against
13541 a loop-invariant value.
13542 (strength_reduce): Adapt call to check_ext_dependent_givs.
13543
135442003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
13545 Con Bradley <con.bradley@superh.com>
13546
13547 * sh-protos.h (sh_get_pr_initial_val): Declare.
13548 * sh.c (regno_reg_class): Make its elements type enum reg_class.
13549 (output_stack_adjust): Remove emit_fn argument. Add epilogue_p
13550 and live_regs_mask arguments. Changed all callers.
13551 (save_schedule_s): New structure.
13552 (save_schedule): New typedef.
13553 (scavenge_reg, sh5_schedule_saves, sh5_schedule_saves): New functions.
13554 (calc_live_regs): For TARGET_SHMEDIA, use leaf_function_p.
13555 In interrupts handlers, also save registers that are usually
13556 partially saved, and make sure there is at least one general purpose
13557 register saved if a target register needs saving.
13558 Add casts in comparisons to avoid warnings.
13559 (sh_media_register_for_return): return -1 for interrupt handlers.
13560 (MAX_SAVED_REGS, MAX_TEMPS): New defines.
13561 (sh_expand_prologue): Use sh5_schedule_saves. Check that any temp
13562 registers used are available.
13563 Set RTX_FRAME_RELATED_P where appropriate.
13564 Add an REG_FRAME_RELATED_EXPR for r0 + offset addressing.
13565 (sh_expand_epilogue, sh_set_return_address): Use sh5_schedule_saves.
13566 (initial_elimination_offset): Likewise.
13567 * sh.h (DWARF_CIE_DATA_ALIGNMENT): Set to -4.
13568 (LOCAL_ALIGNMENT, GENERAL_REGISTER_P): Add casts to avoid warnings.
13569 (FP_REGISTER_P): Add casts to fix broken handling of unsigned REGNO.
13570 (XD_REGISTER_P, TARGET_REGISTER_P): Likewise.
13571 (HARD_REGNO_CALL_PART_CLOBBERED): Also yield nonzero for r15,
13572 and for target registers.
13573 (RETURN_IN_MEMORY): Add parentheses to avoid warnings.
13574 (regno_reg_class): Make its elements type enum reg_class.
13575 (CONSTRAINT_LEN): Don't use isdigit.
13576 (FUNCTION_ARG_REGNO_P): Add casts to avoid warnings.
13577 (FUNCTION_ARG): Add parentheses to avoid warnings.
13578 (RETURN_ADDR_RTX): Use sh_get_pr_initial_val.
13579 (RETURN_ADDR_OFFSET): Define to -1 for TARGET_SH5.
13580 (SH_DBX_REGISTER_NUMBER): Add casts to avoid warnings.
13581 (EH_RETURN_DATA_REGNO): Use unsigned constants to avoid warnings.
13582 * sh.md (xordi3+1): Remove unused variable regno.
13583 (return_media): Check that tr0 is available before using it.
13584
135852003-07-16 Neil Booth <neil@daikokuya.co.uk>
13586
13587 * c.opt: Document more options.
13588
135892003-07-16 Roger Sayle <roger@eyesopen.com>
13590
13591 * combine.c (subst): Also handle (subreg (const_double ...)) case
13592 if created by a substitution, by using the original inner mode.
13593
135942003-07-16 Roger Sayle <roger@eyesopen.com>
13595
13596 * simplify-rtx.c (simplify_replace_rtx): Convert constant comparisons
13597 to MODE_FLOAT constants if FLOAT_STORE_FLAG_VALUE is defined.
13598 (simplify_rtx): Likewise. Simplify (lo_sum (high X) X) as X.
13599
136002003-07-16 Andrew Pinski <pinskia@physics.uc.edu>
13601
13602 * doc/install.texi (--without-headers): New.
13603
13604 Partial Fix PR/10129
13605 * config/darwin.c (machopic_function_base_name): Only Return "<pic base>".
13606 (machopic_output_function_base_name): New; print the true pic label.
13607 (machopic_classify_ident): Pic Base is always a defined data.
13608 * config/darwin.h (ASM_OUTPUT_LABELREF): Support the pic base label.
13609 * config/darwin-proto.h (machopic_output_function_base_name): Prototype.
13610
13611 * gcse.c (gcse_constant_p): COMPARE of the same registers is a constant
13612 if they are not floating point registers.
13613
13614 PR c/10962
13615 * ggc.h: Add header guards.
13616 * c-decl.c (finish_struct): Sort fields if
13617 number greater than 15 and there are no
13618 anonymous structs/unions.
13619 * c-common.h: Include ggc.h.
13620 (sorted_fields_type): New struct.
13621 (field_decl_cmp): New prototype.
13622 (resort_sorted_fields): New prototype.
13623 (DECL_DECLARES_TYPE_NON_TEMPLATE_P): New macro.
13624 * c-tree.h: (lang_type): Use pointer to sorted_fields_type
13625 as s, removing other fields.
13626 * c-typeck.c (lookup_field): Use s in lang_type.
13627 These were mostly moved from cp/class.c:
13628 * c-common.c (field_decl_cmp): New static function.
13629 (field_decl_cmp): New function.
13630 (resort_sorted_fields): New function.
13631
136322003-07-16 Geoffrey Keating <geoffk@apple.com>
13633
13634 * config/darwin.c (machopic_select_section): Use decl_readonly_section
13635 to do most of the work.
13636
136372003-07-16 Hans-Peter Nilsson <hp@bitrange.com>
13638
13639 * config/mmix/mmix-protos.h: Convert prototypes to ISO C90.
13640 * config/mmix/mmix.c: Convert functions to ISO C90.
13641 (mmix_eh_return_handler_rtx, mmix_output_shifted_value): Tweak
13642 formatting.
13643 (mmix_get_hard_reg_initial_val): Tweak section head comment.
13644
136452003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
13646
13647 * c-pragma.h (HANDLE_PRAGMA_WEAK): Always define to SUPPORTS_WEAK.
13648
136492003-07-16 Jakub Jelinek <jakub@redhat.com>
13650
13651 * unwind-dw2.c (MD_FROB_UPDATE_CONTEXT): Define.
13652 (uw_update_context_1): Use it.
13653 * config/rs6000/rs6000.c (insn_after_throw): Remove.
13654 (rs6000_aix_emit_builtin_unwind_init): Save $r2 to its location
13655 in parent frame if _Unwind_* called directly instead of through
13656 .plt.
13657 (rs6000_emit_eh_toc_restore): Remove.
13658 (rs6000_emit_prologue): Update stack pointer before doing any saving
13659 if current_function_calls_eh_return. Generate unwind info for $r2.
13660 (rs6000_emit_epilogue): Restore stack pointer after doing all
13661 restoring if current_function_calls_eh_return. Restore $r2.
13662 * config/rs6000/rs6000-protos.h (rs6000_emit_eh_toc_restore): Remove.
13663 * config/rs6000/rs6000.md (eh_return): Remove call to
13664 rs6000_emit_eh_toc_restore.
13665 * config/rs6000/linux64.h (MD_FROB_UPDATE_CONTEXT): Define.
13666 * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Define.
13667
136682003-07-15 Jakub Jelinek <jakub@redhat.com>
13669
13670 * expr.c (emit_block_move): Don't move anything if size is const 0.
13671 (clear_storage): Test against const0_rtx instead of comparing INTVAL
13672 against 0.
13673
136742003-07-15 David S. Miller <davem@redhat.com>
13675
13676 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Only
13677 emit nop if the last real insn is CALL_INSN.
13678
136792003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
13680
13681 * config/i386/xm-mingw32.h (HOST_BIT_BUCKET): Define
13682 as "nul".
13683 * config/i386/xm-mingw32.h: Change GNU CC to GCC.
13684
136852003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
13686
13687 * config/i386/winnt.c (associated_type): Artificial methods are not
13688 affected by the import/export status of their class unless they are
13689 COMDAT.
13690 (i386_pe_dllimport_p): Do not mark artificial methods as dllimport.
13691
13692 * config/i386/winnt.c: Fix GCC copyright comment.
13693
136942003-07-16 Gabriel Dos Reis <gcc@integrable-solutions.net>
13695
13696 PR c++/11531
13697 * diagnostic.c (diagnostic_report_diagnostic): Don't ICE if we're
13698 not recursing on hard error.
13699 (diagnostic_for_decl): Likewise.
13700 * diagnostic.def: Rearrange.
13701
137022003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
13703
13704 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
13705 If DWARF_FRAME_RETURN_COLUMN doesn't have a register mode, use Pmode.
13706
137072003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
13708 Richard Henderson <rth@redhat.com>
13709
13710 * unwind-dw2.c (_Unwind_GetGR): Use dwarf_reg_size_table
13711 to decide if to access a _Unwind_Ptr or a _Unwind_Word.
13712 (_Unwind_SetGR): Likewise.
13713 (_Unwind_GetPtr, _Unwind_SetSpColumn): New functions.
13714 (Unwind_SpTmp): New typedef.
13715 (uw_update_context_1): Use _Unwind_SetSpColumn and _Unwind_GetPtr.
13716 (uw_update_context): Use _Unwind_GetPtr.
13717 (init_dwarf_reg_size_table): Move above uw_init_context_1.
13718 (uw_init_context_1): Initialize dwarf_reg_size_table if necessary.
13719 Use _Unwind_SetSpColumn.
13720 (uw_install_context_1): Don't initialize dwarf_reg_size_table.
13721 Use _Unwind_GetPtr.
13722
137232003-07-15 Neil Booth <neil@daikokuya.co.uk>
13724
13725 * c.opt: Document more options.
13726 * toplev.c (documented_lang_options): Remove all local help strings.
13727
137282003-07-15 Mark Mitchell <mark@codesourcery.com>
13729
13730 PR debug/11473
13731 * dbxout.c (dbxout_type): Use TYPE_SIZE to determine the sizes of
13732 base classes.
13733
137342003-07-15 Kazu Hirata <kazu@cs.umass.edu>
13735
13736 PR target/10795
13737 * config/i386/i386.c (ix86_expand_carry_flag_compare): Don't
13738 swap comparison operands if doing so would generate an
13739 unrecognizable insn.
13740
137412003-07-15 Eric Botcazou <ebotcazou@libertysurf.fr>
13742
13743 PR optimization/11320
13744 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
13745 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
13746 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
13747 current_sched_info->compute_jump_reg_dependencies. Record which
13748 registers are used and which registers are set by the jump.
13749 Clear deps->reg_conditional_sets after a barrier.
13750 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
13751 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
13752 (init_deps): Initialize reg_conditional_sets.
13753 (free_deps): Clear reg_conditional_sets.
13754 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
13755 Mark registers live on entry of the fallthrough block and conditionally
13756 set as set by the jump. Mark registers live on entry of non-fallthrough
13757 blocks as used by the jump.
13758 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
13759 Mark new parameters as unused.
13760
137612003-07-15 Richard Sandiford <rsandifo@redhat.com>
13762
13763 * doc/invoke.texi: Resync MIPS -march documentation.
13764
137652003-07-15 Richard Sandiford <rsandifo@redhat.com>
13766
13767 * config/mips/mips.h (PROCESSOR_R9000): New processor_type.
13768 (TARGET_MIPS9000, TUNE_MIPS9000): New macros.
13769 (GENERATE_MULT3_SI): True for TARGET_MIPS9000.
13770 * config/mips/mips.c (mips_cpu_info_table): Add rm9000 entry.
13771 (mips_rtx_costs): Adjust integer multiplication costs for the rm9000.
13772 (mips_issue_rate): Handle PROCESSOR_R9000.
13773 (mips_use_dfa_pipeline_interface): Likewise.
13774 * config/mips/9000.md: New file.
13775 * config/mips/mips.md: Include it.
13776 (define_attr cpu): Add r9000.
13777 (mulsi3_mult3): Use "mul" for rm9000 code.
13778
137792003-07-15 Stan Cox <scox@redhat.com>
13780
13781 * config/mips/mips.h (PROCESSOR_R7000): New processor_type.
13782 (TARGET_MIPS7000, TUNE_MIPS7000): New macros.
13783 (GENERATE_MULT3_SI): True for TARGET_MIPS7000.
13784 * config/mips/mips.c (mips_cpu_info_table): Add rm7000 entry.
13785 (mips_rtx_costs): Adjust integer multiplication costs for the rm7000.
13786 (mips_issue_rate): Handle PROCESSOR_R7000.
13787 (mips_use_dfa_pipeline_interface): Likewise.
13788 * config/mips/7000.md: New file.
13789 * config/mips/mips.md: Include it.
13790 (define_attr cpu): Add r7000.
13791 (mulsi3_mult3): Use "mul" for rm7000 code.
13792
137932003-07-15 Richard Sandiford <rsandifo@redhat.com>
13794
13795 * config/mips/mips.md (define_attr type): Add condmove. Use it for
13796 the conditional move patterns.
13797 * config/mips/5400.md (ir_vr54_move): Rename to ir_vr54_condmove.
13798 Check for condmove type.
13799 (ir_vr54_arith): Add move type.
13800 * config/mips/5500.md (ir_vr55_move, ir_vr55_arith): Likewise.
13801 * config/mips/sr71k.md (ir_sr70_move, ir_sr70_arith): Likewise.
13802
138032003-07-15 Neil Booth <neil@daikokuya.co.uk>
13804
13805 * c-opts.c (print_help): Remove.
13806 (c_common_handle_option): Don't handle --help.
13807 * c.opt: Document some options.
13808 (--help): Remove.
13809 * opts.c (print_filtered_help): New.
13810 (print_help): Use it.
13811
138122003-07-14 Geoffrey Keating <geoffk@apple.com>
13813
13814 * c-common.c (c_common_type_for_mode): Handle V4DFmode.
13815 * tree.c: (build_common_tree_nodes_2): Likewise.
13816 * tree.h (enum tree_index): Add TI_V4DF_TYPE.
13817 (V4DF_type_node): New.
13818
13819 * c-opts.c (push_command_line_include): Don't free deferred_opts,
13820 we'll need it.
13821 (finish_options): Reset init_cursor.
13822
138232003-07-15 Kazu Hirata <kazu@cs.umass.edu>
13824
13825 * expr.c (expand_assignment): Remove an unused argument
13826 SUGGEST_REG.
13827 * expr.h: Update the prototype.
13828 * function.c: Update the callers.
13829 * stmt.c: Likewise.
13830
138312003-07-14 Mark Mitchell <mark@codesourcery.com>
13832
13833 PR debug/11098
13834 * integrate.c (copy_decl_for_inlining): Do not mark copied decls
13835 as DECL_ABSTRACT.
13836
138372003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
13838
13839 * fixinc/inclhack.def (avoid_bool_define, avoid_bool_type): Bypass
13840 with __cplusplus, not "we must use the C++ compiler's type"
13841 * fixinc/inclhack.def (void_null): Note that Interix needs this.
13842 * fixinc/fixincl.x: Regenerate.
13843
138442003-07-14 Geoffrey Keating <geoffk@apple.com>
13845
13846 * unwind-dw2-fde-darwin.c (live_image_destructor): Get seen_objects
13847 and unseen_objects from the global data before calling
13848 __deregister_frame_info_bases.
13849 (examine_objects): Insert objects into the seen_objects list,
13850 not unseen_objects.
13851 (_Unwind_Find_FDE): Always unlock the global object lists, even if
13852 we couldn't allocate a data structure to put in it.
13853
13854 * objc/objc-act.h (CLASS_SUPER_NAME): Add a little typechecking.
13855 (TYPE_PROTOCOL_LIST): Share use of type.context with C frontend.
13856 (SET_TYPE_PROTOCOL_LIST): New.
13857 * objc/objc-act.c (get_static_reference): Use SET_TYPE_PROTOCOL_LIST.
13858 (get_object_reference): Likewise.
13859
138602003-07-14 Jan Hubicka <jh@suse.cz>
13861
13862 * cfglayout.c (locator_file): Break out from ....
13863 (insn_file): ... here.
13864 (locator_line): Break out from ....
13865 (insn_line): ... here.
13866 * rtl.h (locator_file, locator_line): Declare.
13867 (final_start_function): Set proper line/file info.
13868
138692003-07-14 Gabriel Dos Reis <gdr@integrable-solutions.net>
13870
13871 * c-pretty-print.c (pp_c_unary_expression): A CONVERT_EXPR is
13872 handled by pp_c_cast_expression.
13873
138742003-07-14 Richard Sandiford <rsandifo@redhat.com>
13875
13876 * config/mips/mips.c (mips_expand_prologue): Use a single insn to
13877 allocate 32768 bytes of stack. Use addition rather than subtraction
13878 when a single insn is enough.
13879 * config/mips/mips.md: Remove insns and splitters for subtracting
13880 constants.
13881 (subsi3): Only accept register operands.
13882 (subsi3_internal): Likewise. Use for TARGET_MIPS16 as well.
13883 (subdi3_internal_3, subsi3_internal_2): Likewise.
13884 (casesi): Use expand_binop to subtract the lower bound.
13885
138862003-07-14 Richard Sandiford <rsandifo@redhat.com>
13887
13888 * config/mips/mips.c (mips_in_small_data_p): Don't handle
13889 TARGET_MIPS16 specially.
13890
138912003-07-14 Richard Sandiford <rsandifo@redhat.com>
13892
13893 * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Use
13894 mips_output_aligned_bss.
13895 * config/mips/linux.h: Likewise.
13896 * config/mips/mips-protos.h (mips_output_aligned_bss): Declare.
13897 * config/mips/mips.c (mips_output_aligned_bss): New function.
13898
13899 * config/mips/elf.h (DBX_DEBUGGING_INFO): Delete.
13900 * config/mips/elf64.h: Likewise.
13901
13902 * config/mips/elf.h (ASM_DECLARE_OBJECT_NAME): Use
13903 mips_declare_object_name.
13904 (ASM_FINISH_DECLARE_OBJECT): Likewise mips_finish_declare_object.
13905 * config/mips/elf64.h: As for elf.h.
13906 * config/mips/iris6.h: Likewise.
13907 * config/mips/linux.h (ASM_DECLARE_OBJECT_NAME): As for elf.h.
13908 * config/mips/mips.h (ASM_DECLARE_OBJECT_NAME): Remove unnecessary
13909 do...while (0) block.
13910 * config/mips/mips-protos.h (mips_declare_object_name): Declare.
13911 (mips_finish_declare_object): Declare.
13912 * config/mips/mips.c (mips_declare_object_name): New function.
13913 (mips_finish_declare_object): New function.
13914
13915 * config/mips/elf.h (SBSS_SECTION_ASM_OP): Delete.
13916 * config/mips/linux.h: Likewise.
13917
13918 * config/mips/mips.c (inside_function): Delete.
13919 (file_in_function_warning, ignore_line_number): Delete.
13920 (mips_output_filename): Don't warn about changing filenames within
13921 a function.
13922 (mips_output_lineno): Update accordingly.
13923 (mips_output_function_prologue): Don't reset the deleted variables.
13924 * config/mips/mips.h (inside_function): Delete.
13925 (file_in_function_warning, ignore_line_number): Delete.
13926
13927 * config/mips/elf.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Remove undefs.
13928 * config/mips/elf64.h: Likewise.
13929 * config/mips/openbsd.h: Likewise.
13930 * config/mips/iris5.h (OBJECT_FORMAT_COFF): Remove undefs.
13931 * config/mips/linux.h: Likewise.
13932 * config/mips/mips.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Delete.
13933 (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB, MIPS_UNMARK_STAB): Delete.
13934
13935 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Add mips/sdb.h
13936 to the list of include files when using gas.
13937 (mips*el-*-openbsd*, mips*-*-openbsd*): Add mips/sdb.h unconditionally.
13938 * config/mips/elf.h: Remove #undef SDB_DEBUGGING_INFO.
13939 * config/mips/elf64.h: Likewise.
13940 * config/mips/iris5.h: Likewise.
13941 * config/mips/linux.h: Likewise.
13942 * config/mips/iris5gas.h (SDB_DEBUGGING_INFO): Remove definition.
13943 * config/mips/mips.h (PREFERRED_DEBUGGING_TYPE): Likewise.
13944 (SDB_DEBUGGING_INFO, sdb*, SDB_ALLOW_*, PUT_SDB*): Move to...
13945 * config/mips/sdb.h: ...this new file.
13946
139472003-07-14 Douglas Rupp <rupp@gnat.com>
13948
13949 * fixinc/server.c (server_setup): Don't use non-POSIX NULL first
13950 argument to getcwd; use fixed buffer instead.
13951
139522003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
13953
13954 * fixinc/mkfixinc.sh: Treat OpenBSD normally.
13955 * fixinc/fixinc.wrap: Delete.
13956
139572003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
13958
13959 * ggc-page.c (extra_order_size_table): Insns have 9 slots. Regs
13960 don't have 2.
13961
139622003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
13963
13964 * ggc-page.c (struct globals): Add new fields to keep track of the
13965 total allocated memory and overhead.
13966 (ggc_print_statistics): Print them.
13967 (ggc_alloc): Keep track of the total allocated memory and the
13968 overhead.
13969
13970 * tree.c (dump_tree_statistics): Increase spacing.
13971 (enum tree_node_kind): Move to ...
13972 * tree.h (enum tree_node_kind): ... here.
13973 (tree_node_counts, tree_node_sizes): Declare.
13974
139752003-07-14 James A. Morrison <ja2morri@student.math.uwaterloo.ca>
13976
13977 * doc/include/texinfo.tex: Upgrade to texinfo 4.6.
13978
139792003-07-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
13980
13981 PR optimization/11440
13982 * gcse.c (try_replace_reg): Don't attach notes to ZERO_EXTRACT or
13983 SIGN_EXTRACT SETs.
13984
139852003-07-14 Alan Modra <amodra@bigpond.net.au>
13986
13987 * doc/tm.texi (BLOCK_REG_PADDING): Describe.
13988 * expr.h (struct locate_and_pad_arg_data): Add where_pad.
13989 (emit_group_load, emit_group_store): Adjust declarations.
13990 Remove most occurrences of #ifdef TREE_CODE.
13991 * expr.c (emit_group_load): Add "type" param, and use
13992 BLOCK_REG_PADDING to determine need for a shift. Optimize non-
13993 aligned accesses if !SLOW_UNALIGNED_ACCESS.
13994 (emit_group_store): Likewise.
13995 (emit_push_insn, expand_assignment, store_expr, expand_expr): Adjust
13996 emit_group_load and emit_group_store calls.
13997 * calls.c (store_unaligned_arguments_into_pseudos): Tidy. Use
13998 BLOCK_REG_PADDING to determine whether we need endian_correction.
13999 (load_register_parameters): Localize vars. Handle shifting of
14000 small values to the correct end of regs. Adjust emit_group_load
14001 call.
14002 (expand_call, emit_library_call_value_1): Adjust emit_group_load
14003 and emit_group_store calls.
14004 * function.c (assign_parms): Set mem alignment for stack slots.
14005 Adjust emit_group_store call. Store values at the "wrong" end
14006 of regs to the stack. Use BLOCK_REG_PADDING.
14007 (locate_and_pad_parm): Save where_pad.
14008 (expand_function_end): Adjust emit_group_load call.
14009 * stmt.c (expand_value_return): Adjust emit_group_load call.
14010 * Makefile.in (calls.o): Depend on $(OPTABS_H).
14011 * config/rs6000/linux64.h (TARGET_LITTLE_ENDIAN): Redefine as 0.
14012 (AGGREGATE_PADDING_FIXED, AGGREGATES_PAD_UPWARD_ALWAYS): Define.
14013 (MUST_PASS_IN_STACK): Define.
14014 (BLOCK_REG_PADDING): Define.
14015 * config/rs6000/rs6000.h (struct rs6000_args): Remove orig_nargs.
14016 (PAD_VARARGS_DOWN): Define in terms of FUNCTION_ARG_PADDING.
14017 * config/rs6000/rs6000.c (init_cumulative_args): Don't set orig_nargs.
14018 (function_arg_padding): !AGGREGATE_PADDING_FIXED compatibility code.
14019 Act on AGGREGATES_PAD_UPWARD_ALWAYS.
14020
140212003-07-13 Aaron W. LaFramboise <awlaframboise@aol.com>
14022
14023 * config/i386/gthr-win32.c (__GTHREAD_HIDE_WIN32API): Define to 1.
14024
140252003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14026
14027 * expr.c (expand_expr, case COMPONENT_REF): If reg, copy OP0 to MEM
14028 both if OFFSET specified and if result BLKmode for ARRAY_RANGE_REF.
14029
140302003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
14031
14032 PR other/11123
14033 * toplev.c: Don't cut off option names.
14034
140352003-07-13 Andreas Jaeger <aj@suse.de>
14036
14037 * c-decl.c (link_hash_hash): Avoid warning about casting pointer
14038 to integer of different size.
14039
140402003-07-13 Kazu Hirata <kazu@cs.umass.edu>
14041
14042 * combine.c (simplify_comparison): Convert (ne (and (not X) 1) 0)
14043 to (eq (and X 1) 0).
14044
140452003-07-13 Andreas Jaeger <aj@suse.de>
14046
14047 * config.gcc: Add pmmintrin.h for x86_64-*-*.
14048
140492003-07-13 Zack Weinberg <zack@codesourcery.com>
14050
14051 * Makefile.in (LIBCPP_DEPS): Remove coretypes.h and $(TM_H).
14052 (hashtable.o, line-map.o, mkdeps.o): Likewise, from dependency
14053 list. Move these all together down by cpplib.
14054
14055 * cpplib.h: Don't refer to MAX_WCHAR_TYPE_SIZE when determining
14056 definition of CPPCHAR_SIGNED_T.
14057
14058 * cppcharset.c, cpperror.c, cppexp.c, cppfiles.c, cpphash.c, cppinit.c
14059 * cpplex.c, cpplib.c, cppmacro.c, cpppch.c, cpptrad.c, hashtable.c
14060 * line-map.c, mkdeps.c: Don't include coretypes.h or tm.h.
14061
14062 * cpphash.c (_cpp_init_hashtable): Don't use gcc_obstack_init.
14063 * cppinit.c (cpp_create_reader): Likewise.
14064
14065 * cpphash.h (scan_out_logical_line): Rename _cpp_scan_out_logical_line.
14066 * cpptrad.c: Likewise. All callers changed.
14067 * cpplib.c: All callers changed.
14068 * c-ppoutput.c: Replace 'uchar' with 'unsigned char' throughout.
14069 * hashtable.h: Define GTY(x) to nothing here too.
14070
140712003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14072
14073 * stor-layout.c (compute_record_mode): Remove very obsolete test
14074 that forces BLKmode for records with fields crossing word boundary.
14075
140762003-07-13 Zack Weinberg <zack@codesourcery.com>
14077
14078 * Makefile.in: Remove orphan reference to acconfig.h.
14079
140802003-07-13 Andreas Jaeger <aj@suse.de>
14081
14082 * cgraphunit.c: Convert prototypes to ISO C90.
14083
140842003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
14085
14086 * fixinc/inclhack.def (avoid_wchar_t_type): Use __cplusplus bypass
14087 (for OpenBSD).
14088 * fixinc/fixincl.x: Rebuild.
14089
140902003-07-12 Zack Weinberg <zack@codesourcery.com>
14091
14092 * configure.in: Always define HAVE_AS_GOTOFF_IN_DATA for
14093 i?86-*-*. Use correct name of cache variable.
14094 * configure: Regenerate.
14095
140962003-07-12 Kazu Hirata <kazu@cs.umass.edu>
14097
14098 * config/alpha/alpha.c: Fix comment typos.
14099 * config/alpha/alpha.md: Likewise.
14100 * config/arm/arm.c: Likewise.
14101 * config/arm/arm.md: Likewise.
14102 * config/arm/lib1funcs.asm: Likewise.
14103 * config/avr/avr.md: Likewise.
14104 * config/arm/README-interworking: Fix typos.
14105
141062003-07-12 Kazu Hirata <kazu@cs.umass.edu>
14107
14108 * c-format.c: Fix comment formatting.
14109 * c-typeck.c: Likewise.
14110 * coverage.c: Likewise.
14111 * cppcharset.c: Likewise.
14112 * cpplib.c: Likewise.
14113 * dbxout.c: Likewise.
14114 * gcov-io.h: Likewise.
14115 * toplev.c: Likewise.
14116
141172003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
14118
14119 * fixinc/inclhack.def (alpha_sbrk): Note that OpenBSD needs this
14120 fix.
14121
141222003-07-12 Zack Weinberg <zack@codesourcery.com>
14123
14124 * aclocal.m4 (gcc_AC_CHECK_TYPE): Clone of AC_CHECK_TYPE,
14125 uses three-argument AC_DEFINE so no acconfig.h entries are
14126 needed.
14127 (_gcc_COMPUTE_GAS_VERSION): Also provide gcc_cv_gas_vers
14128 which contains the GAS version number as a scaled integer.
14129 (gcc_GAS_VERSION_GTE_IFELSE): Use gcc_cv_gas_vers. Add
14130 ability to check for ELF assembler.
14131 (gcc_GAS_CHECK_FEATURE): New macro.
14132 * configure.in: Use gcc_AC_CHECK_TYPE. Rewrite all
14133 assembler feature checks using gcc_GAS_CHECK_FEATURE.
14134 Use three-argument AC_DEFINE everywhere.
14135 * acconfig.h: Deleted.
14136 * config.in, configure: Regenerate.
14137
141382003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
14139
14140 * fixinc/inclhack.def (struct_sockaddr): Avoid "fixing" sockaddr_in
14141 (on OpenBSD).
14142 * fixinc/fixincl.x: Regenerate.
14143
14144 * fixinc/inclhack.def (gnu_types): Improve comment.
14145
141462003-07-12 Andreas Jaeger <aj@suse.de>
14147
14148 * fp-test.c (main): Use ISO C90 prototype.
14149
14150 * version.c: Remove unneded include of ansidecl.h.
14151
14152 * cgraph.h: Convert prototypes to ISO C90.
14153 * cgraph.c: Likewise.
14154 * fix-header.c: Likewise.
14155 * ra.h: Likewise.
14156 * protoize.c: Likewise.
14157
141582003-07-12 Jan Hubicka <jh@suse.cz>
14159
14160 * cgraphunit.c (cgraph_inlined_into, cgraph_inlined_calees): Fix
14161 warning.
14162
141632003-07-12 Jan Hubicka <jh@suse.cz>
14164 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
14165
14166 * cgraph.c (cgraph_max_uid): New global variable.
14167 (cgraph_node): Set uid field.
14168 (create_edge): Keep inline flags consistent.
14169 (dump_cgraph): Dump more info.
14170 * cgraph.h (struct cgraph_local_info): Remove inline_many and
14171 can_inline_once; add inlinable, disgread_inline_limits, and self_insn
14172 (struct cgraph_global_info): Add insns, calls, cloned_times,
14173 will_be_output.
14174 (struct cgraph_node): Add uid.
14175 (struct cgraph_edge): Add inline_call.
14176 (cgraph_max_uid, cgraph_inline_p): Declare.
14177 * cgraph.c: Include params.h and fibheap.h
14178 (cgraph_mark_functions_to_inline_once): Kill.
14179 (INSNS_PER_CALL): New constant.
14180 (ncalls_inlined, nfunctions_inlined, initial_insns, overall_insns): New
14181 static variables.
14182 (cgraph_finalize_function): Do not analyze inlining.
14183 (cgraph_finalize_compilation_unit): Set inlining attributes.
14184 (cgraph_mark_functions_to_output): More consistency checks.
14185 (cgraph_optimize_function): Set current_function_decl to NULL.
14186 (cgraph_expand_function): Use new inline flags.
14187 (cgraph_postorder): Expand from cgraph_expand_functions.
14188 (INLINED_TIMES, SET_INLINED_TIMES): New macros.
14189 (cgraph_inlined_into, cgraph_inlined_callees,
14190 cgraph_estimate_size_after_inlining, cgraph_estimate_growth,
14191 cgraph_mark_inline, cgraph_check_inline_limits,
14192 cgraph_default_inline_p, cgraph_decide_inling_of_small_functions,
14193 cgraph_decide_inlining, cgraph_inline_p): New functions.
14194 * params.def (PARAM_LARGE_FUNCTION_INSNS, PARAM_LARGE_FUNCTION_GROWTH,
14195 PARAM_INLINE_UNIT_GROWTH): New parameters.
14196 * tree-inline.c (struct inline_data): New field current_decl.
14197 (expand_call_inline): Avoid forward declarations; use
14198 inlinable_function_p.
14199 (optimize_inline_calls): Set id.current_decl.
14200
142012003-07-11 Andrew Pinski <pinskia@physics.uc.edu>
14202
14203 * configure.in: Remove wrongly added definition of
14204 local_prefix.
14205 * configure: Regenerate.
14206
142072003-07-11 Dan Nicolaescu <dann@ics.uci.edu>
14208
14209 * rtl.def (NOTE): Do not use padding.
14210
142112003-07-11 Dara Hazeghi <dhazeghi@yahoo.com>
14212
14213 * doc/install.tex: Update required binutils for i?86-*-linux*
14214
142152003-07-11 Richard Henderson <rth@redhat.com>
14216
14217 * Makefile.in (stage1_build): Force OBJS-onestep=OBJS.
14218
142192003-07-11 Mark Mitchell <mark@codesourcery.com>
14220
14221 * varasm.c (make_decl_rtl): Treat decls with a DECL_CONTEXT of
14222 TRANSLATION_UNIT_DECL as top_level.
14223
142242003-07-11 Jakub Jelinek <jakub@redhat.com>
14225
14226 * optabs.c (prepare_cmp_insn): Try cmpmemM first if it exists,
14227 then fall back to cmpstrM.
14228 * builtins.c (expand_builtin_memcmp): Likewise.
14229 * config/s390/s390-protos.h (s390_expand_cmpstr): Rename to...
14230 (s390_expand_cmpmem): ... this.
14231 * config/s390/s390.md (cmpmemdi, cmpmemsi, cmpmem_short_64,
14232 cmpmem_short_31, cmpmem_long_64, cmpmem_long_31): Renamed
14233 from cmpstr* patterns. Rename call to s390_expand_cmpstr
14234 to s390_expand_cmpmem.
14235 * config/s390/s390.c (s390_expand_cmpstr): Rename to...
14236 (s390_expand_cmpstr): ... this. Rename cmpstr* instructions
14237 to cmpmem*.
14238 * config/i370/i370.md (cmpmemsi, cmpmemsi_1): Renamed from
14239 cmpstr* patterns.
14240 * doc/md.texi (cmpstrM): Describe as String compare insn, not
14241 Block compare insn.
14242 (cmpmemM): Add.
14243
142442003-07-11 Loren James Rittle <ljrittle@acm.org>
14245
14246 * config/i386/freebsd.h (SET_ASM_OP): Remove.
14247 (SUBTARGET_OVERRIDE_OPTIONS): Handle TARGET_64BIT case.
14248 (ASM_COMMENT_START, ASM_APP_ON, ASM_APP_OFF, DBX_REGISTER_NUMBER
14249 MCOUNT_NAME, SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE_SIZE): Whitespace.
14250
142512003-07-11 Richard Henderson <rth@redhat.com>
14252
14253 * function.c (assign_parms): Don't recombine complex args if
14254 fnargs is unchanged from orig_fnargs.
14255 (split_complex_args): Return args without complex before copying.
14256 Re-layout the modified parameters.
14257
142582003-07-11 J"orn Rennecke <joern.rennecke@superh.com>
14259
14260 * regclass.c (choose_hard_reg_mode): Add third argument.
14261 Changed all callers.
14262 * rtl.h (choose_hard_reg_mode): Update declaration.
14263 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
14264 Take HARD_REGNO_CALL_PART_CLOBBERED into account.
14265
142662003-07-11 Geoffrey Keating <geoffk@apple.com>
14267
14268 * c-decl.c (finish_decl): Handle 'used' here...
14269 * cgraphunit.c (cgraph_finalize_function): ... and here ...
14270 * c-common.c: (handle_used_attribute): ... not here.
14271
14272 * configure.in (onstep): Support --enable-intermodule.
14273 * Makefile.in (OBJS-common): New.
14274 (OBJS-md): New.
14275 (OBJS-archive): New.
14276 (OBJS): Build from OBJS-common, OBJS-md, OBJS-archive.
14277 (OBJS-onestep): New.
14278 (libbackend.a): Support @onestep@.
14279 (libbackend.o): New.
14280 * configure: Regenerate.
14281
14282 * c-common.h (c_reset_state): New prototype.
14283 (c_parse_file): New prototype.
14284 (finish_file): Move prototype from c-tree.h.
14285 * c-decl.c: Include <hashtab.h>.
14286 (builtin_decls): New.
14287 (current_file_decl): New.
14288 (duplicate_decls): Add extra parameter. Change all callers. Don't
14289 output duplicate common symbols.
14290 (link_hash_hash): New.
14291 (link_hash_eq): New.
14292 (poplevel): Handle popping of the top level.
14293 (warn_if_shadowing): Handle TRANSLATION_UNIT_DECL.
14294 (pushdecl): Set DECL_CONTEXT to TRANSLATION_UNIT_DECL if appropriate.
14295 (pushdecl_top_level): Likewise.
14296 (redeclaration_error_message): Handle TRANSLATION_UNIT_DECL.
14297 (c_init_decl_processing): Create TRANSLATION_UNIT_DECL.
14298 (finish_decl): Handle TRANSLATION_UNIT_DECL.
14299 (merge_translation_unit_decls): New.
14300 (c_write_global_declarations): New.
14301 (c_reset_state): New.
14302 (implicitly_declare): Handle TRANSLATION_UNIT_DECL.
14303 * c-lang.c (LANG_HOOKS_WRITE_GLOBALS): New.
14304 * c-objc-common.c (c_cannot_inline_tree_fn): Handle
14305 TRANSLATION_UNIT_DECL.
14306 (c_objc_common_finish_file): Call merge_translation_unit_decls.
14307 * c-opts.c (in_fnames): Rename from in_fname.
14308 (c_common_decode_option): Handle multiple input filenames.
14309 (c_common_post_options): Likewise.
14310 (c_common_parse_file): Likewise; also, call c_parse_file rather than
14311 yyparse.
14312 * c-parse.in: Move cleanup code to c_parse_file.
14313 (free_parser_stacks): Move contents to c_parse_file.
14314 (c_parse_file): New.
14315 * c-tree.h (union lang_tree_node): Chain along TYPE_NEXT_VARIANT
14316 for integer types.
14317 (C_DECL_FILE_SCOPE): New.
14318 (finish_file): Move prototype to c-common.h.
14319 (merge_translation_unit_decls): New prototype.
14320 (comptypes): Add extra parameter to prototype.
14321 (c_write_global_declarations): New prototype.
14322 * c-typeck.c (tagged_types_tu_compatible_p): New.
14323 (function_types_compatible_p): Add extra parameter, change all callers.
14324 (type_lists_compatible_p): Likewise.
14325 (comptypes): Likewise.
14326 (struct tagged_tu_seen): New.
14327 (tagged_tu_seen_base): New.
14328 (build_unary_op): Handle TRANSLATION_UNIT_DECL.
14329 (c_mark_addressable): Remove #if 0 code.
14330 * calls.c (special_function_p): Handle TRANSLATION_UNIT_DECL, add
14331 comment explaining why it shouldn't have to.
14332 * cgraph.h (struct cgraph_node): Add chain_next and chain_prev GTY
14333 options.
14334 * cppinit.c (cpp_read_next_file): New.
14335 (cpp_read_main_file): Use it.
14336 * cpplib.c (undefine_macros): New.
14337 (cpp_undef_all): New.
14338 * cpplib.h (cpp_read_next_file): Prototype.
14339 (cpp_undef_all): Prototype.
14340 * langhooks-def.h (write_global_declarations): Remove prototype.
14341 * toplev.h (write_global_declarations): Add prototype.
14342 * tree.c (decl_type_context): Use switch statement, handle
14343 TRANSLATION_UNIT_DECL.
14344 * tree.def: Update documentation for TRANSLATION_UNIT_DECL.
14345 (TRANSLATION_UNIT_DECL): New kind of tree.
14346 * tree.h: Update documentation for TRANSLATION_UNIT_DECL.
14347 * Makefile.in (c-decl.o): Add $(HASHTAB_H) to dependencies.
14348 * doc/invoke.texi: Make attempt to document new functionality.
14349
14350 2003-05-19 Per Bothner <bothner@apple.com>
14351
14352 * gcc.c (combine_inputs): New.
14353 (process_command): Set combine_inputs.
14354 (do_spec_1): Handle combine_inputs.
14355 (main): Likewise.
14356
143572003-07-10 James E Wilson <wilson@tuliptree.org>
14358
14359 PR optimization/9745
14360 * loop.c (loop_iv_add_mult_emit_before): Call loop_regs_update before
14361 loop_insn_emit_before.
14362 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
14363
143642003-07-10 Zack Weinberg <zack@codesourcery.com>
14365
14366 * cppcharset.c: Fix comment.
14367 (iconv_close [!HAVE_ICONV]): #define to (void)0 to prevent warning.
14368 (EILSEQ): #define to EINVAL if not already defined.
14369 (convert_using_iconv): #if out when !HAVE_ICONV.
14370 (init_iconv_desc): Handle !HAVE_ICONV here...
14371 (cpp_init_iconv): ...not here.
14372
143732003-07-11 Neil Booth <neil@daikokuya.co.uk>
14374
14375 * common.opt: More --help messages.
14376 * opts.c (print_help): Use puts().
14377 * toplev.c (f_options): Remove help text.
14378 (display_help): Don't dump f_options.
14379
143802003-07-11 Nathanael Nerode <neroden@gcc.gnu.org>
14381
14382 * fixinc/mkfixinc.sh: Drop reference to unsupported alpha-*-interix*.
14383 Move i?86-*-interix* to the don't-fix list.
14384 * fixinc/fixinc.interix: Delete with extreme prejudice.
14385
143862003-07-10 Dara Hazeghi <dhazeghi@yahoo.com>
14387
14388 PR bootstrap/10758
14389 * doc/install.texi: Document requirements for ia64-*-hpux* target.
14390
143912003-07-10 Roger Sayle <roger@eyesopen.com>
14392
14393 * config/ia64/hpux.h (TARGET_C99_FUNCTIONS): Define.
14394
143952003-07-10 Zack Weinberg <zack@codesourcery.com>
14396
14397 * cppcharset.c (one_utf8_to_cppchar, one_cppchar_to_utf8,
14398 one_utf8_to_utf32, one_utf32_to_utf8, one_utf8_to_utf16,
14399 one_utf16_to_utf8, conversion_loop, convert_utf8_utf16,
14400 convert_utf8_utf32, convert_utf16_utf8, convert_utf32_utf8,
14401 convert_no_conversion, convert_using_iconv): New functions.
14402 (APPLY_CONVERSION): New macro.
14403 (struct conversion, conversion_tab): New data structure.
14404 (init_iconv_desc): Check conversion_tab for a custom conversion
14405 primitive before trying to use iconv.
14406 (convert_cset): Deleted.
14407 (cpp_init_iconv): Use UTF- terminology, not UCS-.
14408 (_cpp_destroy_iconv): Update to match.
14409 (_cpp_valid_ucn): We don't need iconv to implement UCNs.
14410 (convert_ucn): Use one_cppchar_to_utf8 and APPLY_CONVERSION.
14411 (convert_escape, cpp_interpret_string): Use APPLY_CONVERSION.
14412 (_cpp_interpret_string_notranslate): New function, moved here
14413 from cpplib.c.
14414
14415 * cpphash.h (convert_f, struct cset_converter): New types.
14416 (struct cpp_reader): narrow_cset_desc and wide_cset_desc
14417 are now struct cset_converter, not bare iconv_t.
14418 Update prototypes.
14419 * cpplib.c (interpret_string_notranslate): Moved to cppcharset.c;
14420 all callers changed.
14421
144222003-07-10 Kelley Cook <kelleycook@wideopenwest.com>
14423
14424 * Makefile.in (options.h): Depend on Makefile. Add move-if-change
14425 to opts.sh command line.
14426 * opts.sh: Write to temporary files with a move-if-change at the end.
14427
144282003-07-10 Denis Chertykov <denisc@overta.ru>
14429 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14430
14431 * combine.c (gen_binary): Handle the CLOBBER rtx and
14432 don't build a binary operation with it.
14433
144342003-07-10 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
14435
14436 * gcse.c (load_kills_store, find_loads, store_killed_in_insn,
14437 store_killed_after, store_killed_before): Keep track of the correct
14438 dependency function to use.
14439
144402003-07-10 Steven Bosscher <steven@gcc.gnu.org>
14441 * toplev.c (do_compile): Don't try to open dump files before
14442 lang_dependent_init initializes dump_base_name.
14443
144442003-07-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14445
14446 * config/arm/arm.c (arm_init_iwmmxt_builtins, arm_expand_builtin):
14447 Use ARRAY_SIZE.
14448 * config/frv/frv.c (frv_expand_builtin): Likewise.
14449 * config/sh/sh.c (sh_media_init_builtins): Likewise.
14450
144512003-07-09 Mark Mitchell <mark@codesourcery.com>
14452
14453 PR c++/10032
14454 * doc/invoke.texi (C++ Dialect Options): Change documentation of
14455 -fpermissive.
14456
144572003-07-10 J"orn Rennecke <joern.rennecke@superh.com>
14458
14459 * tm.texi (RETURN_ADDR_OFFSET): Document.
14460
144612003-07-10 Nathan Sidwell <nathan@codesourcery.com>
14462
14463 * gcov-io.h: Update documentation.
14464 (GCOV_UNSIGNED2STRING): New.
14465 (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
14466 GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
14467 GCOV_TAG_SUMMARY_LENGTH): Adjust.
14468 (GCOV_TAG_BLOCKS_NUM, GCOV_TAG_ARCS_NUM,
14469 GCOV_TAG_COUNTER_NUM): New.
14470 (GCOV_BLOCK_SIZE): Number of words.
14471 (gcov_var): Adjust buffer type.
14472 * gcov-io.c (gcov_write_bytes, gcov_read_bytes): Rename to ...
14473 (gcov_write_words, gcov_read_words): ... here. Take a 4-byte word
14474 count, not byte count.
14475 (gcov_open): Adjust overread init.
14476 (gcov_allocate, gcov_write_unsigned, gcov_write_counter,
14477 gcov_write_string, gcov_write_tag, gcov_write_length,
14478 gcov_write_tag_length): Adjust.
14479 (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
14480 (gcov_sync, gcov_seek): Adjust.
14481 * gcov-dump.c (print_usage): Show gcc version only.
14482 (dump_file): Use GCOV_UNSIGNED2STRING.
14483 (tag_blocks, tag_arcs, tag_counters): Use GCOV_TAG_*_NUM macros.
14484 * gcov.c (print_version): Show gcc version only.
14485 (read_graph_file): Use GCOV_UNSIGNED2STRING. Use
14486 GCOV_TAG_*_NUM macros.
14487 (read_count_file): Use GCOV_UNSIGNED2STRING. Use
14488 GCOV_TAG_COUNTER_LENGTH.
14489 * coverage.c (read_counts_file): Use GCOV_UNSIGNED2STRING.
14490 Use GCOV_TAG_COUNTER_NUM.
14491 * libgcov.c (gcov_version): Use GCOV_UNSIGNED2STRING.
14492 (__gcov_merge_single, __gcov_merge_delta): Use GCOV_CHECK.
14493
144942003-07-10 Andreas Schwab <schwab@suse.de>
14495
14496 * gcov-dump.c (dump_file): Fix missing address operator.
14497
144982003-07-10 Kazu Hirata <kazu@cs.umass.edu>
14499
14500 PR c/11449
14501 * fold-const.c (sign_bit_p): Return EXP if VAL is the sign bit
14502 of HOST_WIDE_INT.
14503 (fold_single_bit_test): If sign_bit_p() fails, assume that the
14504 bit being tested is not a sign bit.
14505
145062003-07-10 Kazu Hirata <kazu@cs.umass.edu>
14507
14508 * config/h8300/h8300.md (a peephole2): New.
14509
145102003-07-10 Alexandre Oliva <aoliva@redhat.com>
14511
14512 2001-12-13 Alexandre Oliva <aoliva@redhat.com>
14513 * config/mn10300/linux.h (LINK_SPEC): Rename the dynamic linker
14514 from ld-linux.so.2 to ld.so.1.
14515 2001-11-18 Alexandre Oliva <aoliva@redhat.com>
14516 * config/mn10300/linux.h (LINK_SPEC): -lpthread, not -lthread.
14517 * config/mn10300/linux.h (LINK_SPEC): Don't handle -Wl,-rpath
14518 nor -Wl,-rpath-link.
14519 (LIB_SPEC): Add -rpath-link if !static.
14520 2001-08-22 Alexandre Oliva <aoliva@redhat.com>
14521 * config/mn10300/mn10300.c (mn10300_protect_label): New
14522 variable.
14523 * config/mn10300/linux.h (PRINT_OPERAND,
14524 PRINT_OPERAND_ADDRESS): Set it during their execution.
14525 (ASM_OUTPUT_LABELREF): Output `+' before symbol name if
14526 mn10300_protect_label is set.
14527 * config/mn10300/linux.h (LINK_SPEC): Recognize -Wl,-rpath and
14528 -Wl,-rpath-link.
14529 (LIB_SPEC, STARTFILE_SPEC): Define.
14530 2001-05-11 Alexandre Oliva <aoliva@redhat.com>
14531 * config/mn10300/t-linux (dp-bit.c, fp-bit.c): Don't define
14532 FLOAT_BIT_ORDER_MISMATCH.
14533 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
14534 * config.gcc (am33_2.0-*-linux*): Added.
14535 * config/mn10300/linux.h: New.
14536 * config/mn10300/t-linux: New.
14537
145382003-07-10 Andreas Jaeger <aj@suse.de>
14539
14540 * fold-const.c: Properly wrap prototypes.
14541
145422003-07-09 Alexandre Oliva <aoliva@redhat.com>
14543
14544 2003-06-16 Alexandre Oliva <aoliva@redhat.com>
14545 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter):
14546 Moved from...
14547 * config/mn10300/mn10300.md (GOTaddr2picreg): ... here.
14548 * config/mn10300/mn10300.h: GTY-declare it.
14549 2003-06-11 Alexandre Oliva <aoliva@redhat.com>
14550 * config/mn10300/mn10300.c (mn10300_encode_section_info): Fix
14551 prototype. Use incoming RTL argument.
14552 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
14553 * config/mn10300/mn10300.md (int_label): Move C statements...
14554 (GOTaddr2picreg): ... here.
14555 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
14556 * config/mn10300/mn10300.h (ENCODE_SECTION_INFO): Move...
14557 * config/mn10300/mn10300.c (mn10300_encode_section_info):
14558 ... here. New function.
14559 (TARGET_ENCODE_SECTION_INFO): Define to it.
14560 2001-11-04 Alexandre Oliva <aoliva@redhat.com>
14561 * config/mn10300/mn10300.md (builtin_setjmp_receiver): Fix typo in
14562 pattern name.
14563 (mn10300_loadPC): Define as insn splittable after reload.
14564 2001-05-13 Alexandre Oliva <aoliva@redhat.com>
14565 * config/sh/mn10300.h (JUMP_TABLES_IN_TEXT_SECTION): Let them
14566 be defined in .rodata even in PIC, now that the assembler
14567 supports that.
14568 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
14569 * config/mn10300/mn10300.h (GOT_SYMBOL_NAME): Don't let the
14570 symbol take an underscore prefix.
14571 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
14572 * config/mn10300/mn10300-protos.h (legitimate_pic_operand_p,
14573 legitimize_pic_address): Declare.
14574 * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Mark
14575 the PIC register as fixed.
14576 (EXTRA_CONSTRAINT): Match UNSPEC_PLT and UNSPEC_PIC for 'S'.
14577 (GO_IF_LEGITIMATE_ADDRESS): Require legitimate_pic_operand for
14578 PIC.
14579 (LEGITIMATE_PIC_OPERAND_P): Define.
14580 (PIC_OFFSET_TABLE_REGNUM): Define.
14581 (GOT_SYMBOL_NAME): Define.
14582 (SYMBOLIC_CONST_P): Define.
14583 (ENCODE_SECTION_INFO): Use SYMBOL_REF_FLAG to mark local
14584 symbols.
14585 (MN10300_GLOBAL_P): Test it.
14586 (OUTPUT_ADDR_CONST_EXTRA): Handle PIC-related unspecs.
14587 (JUMP_TABLES_IN_TEXT_SECTION): Enable for PIC.
14588 * config/mn10300/mn10300.c (print_operand): Handle unspec.
14589 (expand_prologue): Set PIC register.
14590 (call_address_operand): Don't match SYMBOL_REFs in PIC.
14591 (legitimize_address): Call legitimize_pic_address.
14592 (legitimize_pic_address): New fn.
14593 (legitimate_pic_operand_p): New fn.
14594 * config/mn10300/mn10300.md (PIC_REG, SP_REG): New constants.
14595 (UNSPEC_INT_LABEL, UNSPEC_PIC, UNSPEC_GOT, UNSPEC_GOTOFF,
14596 UNSPEC_PLT): New constants.
14597 (pop_pic_reg): New insn.
14598 (movsi): Adjust non-PIC addresses.
14599 (builtin_setjmp_receiver): Restore the PIC register.
14600 (casesi): New insn.
14601 (call): Adjust non-PIC addresses.
14602 (int_label, GOTaddr2picreg): New expands.
14603 (am33_loadPC): New insn.
14604 (mn10300_loadPC): New expand.
14605 (call_next_insn): New insn.
14606 (add_GOT_to_pic_reg): New expand.
14607 (symGOT2reg, symGOT2reg_i): New expands.
14608 (symGOTOFF2reg, symGOTOFF2reg_i): New expands.
14609 (sym2PIC, sym2PLT): New expands.
14610
146112003-07-09 Alexandre Oliva <aoliva@redhat.com>
14612
14613 * config/mn10300/mn10300.h (PREDICATE_CODES): Define.
14614 2001-05-01 Alexandre Oliva <aoliva@redhat.com>
14615 * config/mn10300/mn10300.md (sqrtsf2): flag_fast_math was renamed
14616 to flag_unsafe_math_optimizations.
14617 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
14618 * config/mn10300/mn10300.c (expand_prologue): Mark
14619 FP-register-saving insns as frame-related.
14620 2001-02-13 Alexandre Oliva <aoliva@redhat.com>
14621 * config/mn10300/mn10300.c
14622 (mn10300_get_live_callee_saved_regs): Don't search past
14623 LAST_EXTENDED_REGNUM.
14624 (mn10300_gen_multiple_store, store_multiple_operation): Likewise.
14625 * config/mn10300/mn10300.md: Remove excessive line breaks from
14626 `@' output patterns that were accounted as additional
14627 alternatives.
14628 * config/mn10300/mn10300.md, config/mn10300/mn10300.c:
14629 Re-introduce changes accidentally removed in Richard Sandiford's
14630 2000-12-05's patch.
14631 * config/mn10300/t-mn10300 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
14632 Re-instate am33-2 lost in merge from net GCC.
14633 2000-08-26 Alexandre Oliva <aoliva@redhat.com>
14634 * config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Added
14635 floating-point registers.
14636 2000-08-07 Alexandre Oliva <aoliva@redhat.com>
14637 * config/mn10300/mn10300.md (movdf): Revert some am33-specific
14638 pessimizations that had gone in on 2000-05-08.
14639 2000-06-28 Graham Stott <grahams@cygnus.co.uk>
14640 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Fix typo.
14641 2000-06-22 Graham Stott <grahams@cygnus.co.uk>
14642 * config/mn10300/mn10300.md (movqi): Use nonimmediate_operand for
14643 operand 0.
14644 * (movhi): Likewise.
14645 * (movsi): Likewise.
14646 * (movsf): Likewise.
14647 * (movdi): Likewise.
14648 * (movdf): Likewise.
14649 2000-05-24 Alexandre Oliva <aoliva@cygnus.com>
14650 * config/mn10300/mn10300.c (fp_regs_to_save): New function.
14651 (can_use_return_insn, initial_offset): Add fp_regs_to_save.
14652 (expand_prologue, expand_epilogue): Save and restore FP regs.
14653 2000-05-20 Alexandre Oliva <aoliva@cygnus.com>
14654 * config/mn10300/mn10300.md (movdi, movdf): 64-bit clean-up.
14655 2000-05-13 Alexandre Oliva <aoliva@cygnus.com>
14656 * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2, addsf3,
14657 subsf3, mulsf3, divsf3, fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4):
14658 Do not clobber cc0.
14659 2000-05-12 Alexandre Oliva <aoliva@cygnus.com>
14660 * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2):
14661 Discourage the two-argument, longer opcodes.
14662 (addsf3, subsf3, mulsf3, divsf3): Likewise for three-argument
14663 ones.
14664 * config/mn10300/mn10300.h (struct mn10300_cc_status_mdep): New.
14665 (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Define.
14666 * config/mn10300/mn10300.md (cmpsf): New pattern.
14667 (branch): Test mdep.fpCC and output fbCC.
14668 * config/mn10300/mn10300.c (print_operand): Output conditions.
14669 (notice_cc_update): Recognize fcmp and set mdep.fpCC.
14670 2000-05-10 Alexandre Oliva <aoliva@cygnus.com>
14671 * config/mn10300/mn10300.md (movsf, movdf, addsf3, subsf3,
14672 mulsf3, divsf3): Use the `F' constraint for FP values.
14673 * config/mn10300/mn10300.c (const_1f_operand): New function.
14674 * config/mn10300/mn10300-protos.h (const_1f_operand): Declare.
14675 * config/mn10300/mn10300.md (sqrtsf2): New expand.
14676 (rsqrtsf2): New insn.
14677 2000-05-09 Alexandre Oliva <aoliva@cygnus.com>
14678 * config/mn10300/mn10300.md (movdf): Oops, I missed it in my
14679 previous check-in.
14680 2000-05-08 Alexandre Oliva <aoliva@cygnus.com>
14681 * config/mn10300/mn10300.md (abssf2, negdf2): On
14682 TARGET_AM33_2, expand to...
14683 (abssf2_am33_2, negdf2_am33_2): New insns.
14684 (addsf3, subsf3, mulsf3, divsf3): Likewise.
14685 (fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4): Likewise.
14686 * config/mn10300/mn10300.md (movqi, movhi, movsi, movsf,
14687 movdi, movdf): Added FP regs.
14688 * invoke.texi (-mam33-2, -mno-am33-2): Document.
14689 2000-04-29 Alexandre Oliva <aoliva@cygnus.com>
14690 * config/mn10300/mn10300.h (FIRST_FP_REGNUM, LAST_FP_REGNUM):
14691 New macros.
14692 (REGNO_AM33_2_FP_P): Renamed to...
14693 (REGNO_FP_P): Redefine in terms of FIRST_* and LAST_*.
14694 (CONDITIONAL_REGISTER_USAGE, REGNO_REG_CLASS): Likewise.
14695 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
14696 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Remove FP
14697 regs from GENERAL_REGS.
14698 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
14699 * config/mn10300/mn10300.h (REGNO_AM33_2_FP_P): New macro.
14700 * config/mn10300/mn10300.c (mn10300_address_cost): Added FP_REGS.
14701 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Added FP_REGS.
14702 2000-04-23 Alexandre Oliva <aoliva@cygnus.com>
14703 * config/mn10300/mn10300.h (CLASS_CANNOT_CHANGE_SIZE): Defined
14704 as FP_REGS.
14705 2000-04-21 Alexandre Oliva <aoliva@cygnus.com>
14706 * config/mn10300/mn10300.h (OK_FOR_Q): New macro.
14707 (EXTRA_CONSTRAINT): Added OK_FOR_Q.
14708 * config/mn10300/mn10300.c (secondary_reload_class): Adjust.
14709 * config/mn10300/mn10300.c (print_operand): Support `D' for doubles.
14710 * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Adjust.
14711 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER): Added
14712 AM33/2.0 floating-point registers.
14713 (CONDITIONAL_REGISTER_USAGE): Adjust.
14714 (enum reg_class, REG_CLASS_NAMES): Added FP_REGS and FP_ACC_REGS.
14715 (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Adjust.
14716 (REG_CLASS_FROM_LETTER): Added `f' and `A'.
14717 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Adjust.
14718 * config/mn10300/t-mn10300 (MULTILIB_OPTIONS): Added am33-2.
14719 (MULTILIB_DIRNAMES): Likewise.
14720 * config/mn10300/mn10300.h (CPP_SPEC): Define `__AM33__=2' and
14721 `__AM33_2__' when `-mam33-2' is given.
14722 (TARGET_AM33_2): Define.
14723 (TARGET_SWITCHES): Adjust.
14724 * config/mn10300/mn10300.c (asm_file_start): Print `.am33_2'
14725 when appropriate.
14726
147272003-07-09 Matt Kraai <kraai@alumni.cmu.edu>
14728
14729 * doc/install.texi: Add missing @.
14730
147312003-07-09 Bob Wilson <bob.wilson@acm.org>
14732
14733 * config/xtensa/xtensa.h (CRT_CALL_STATIC_FUNCTION): Define.
14734
147352003-07-09 Aldy Hernandez <aldyh@redhat.com>
14736
14737 PR/11144
14738 * config/i386/i386.c (ix86_function_arg_boundary): Remove abort.
14739
147402003-07-09 Nathanael Nerode <neroden@gcc.gnu.org>
14741
14742 PR bootstrap/11043
14743 * config/arc/t-arc: Replace bogus references to "x-crtinit.o",
14744 "x-crtfini.o" with "crtinit.o", "crtfini.o".
14745
14746 * fixinc/inclhack.def (limits_ifndefs): Add select test.
14747 * fixinc/fixincl.x: Rebuild.
14748
14749 * fixinc/inclhack.def (math_exception): Improve bypass and comment.
14750 * fixinc/fixincl.x: Rebuild.
14751
147522003-07-09 Hans-Peter Nilsson <hp@bitrange.com>
14753
14754 * doc/install.texi (Configuration): Document the valgrind option
14755 to --enable-checking.
14756
147572003-07-09 Jan Hubicka <jh@suse.cz>
14758
14759 * objc-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
14760
147612003-07-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14762
14763 * c-lex.c (cb_ident): Cast cstr.text to const char *.
14764
147652003-07-09 Nathan Sidwell <nathan@codesourcery.com>
14766
14767 * gcov-io.h: Update documentation.
14768 (GCOV_GRAPH_SUFFIX, GCOV_GRAPH_MAGIC): Rename to GCOV_NOTE_SUFFIX,
14769 GCOV_NOTE_MAGIC.
14770 (GCOV_DATA_SUFFIX, GCOV_NOTE_SUFFIX): Update.
14771 (GCOV_DATA_MAGIC, GCOV_NOTE_MAGIC): Make non-palindromic.
14772 (struct gcov_var): Change buffer's type. Add endian flag.
14773 (gcov_open): Remove mode in libgcov.
14774 (gcov_magic): Prototype.
14775 * gcov-io.c (from_file): New.
14776 (gcov_open): Clear endian flag.
14777 (gcov_magic): New.
14778 (gcov_write_bytes, gcov_read_bytes): Return gcov_unsigned_t
14779 pointers.
14780 (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
14781 gcov_write_tag, gcov_write_length, gcov_write_tag_length): Update.
14782 (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Update.
14783 * gcov-iov.c (main): Correct cast.
14784 * coverage.c (read_counts_file): Use gcov_magic. Remove endianness
14785 conversion.
14786 (gcov_begin_output): Use GCOV_NOTE_MAGIC.
14787 (coverage_init): Use GCOV_NOTE_SUFFIX.
14788 * libgcov.c (gcov_version_mismatch): Remove endianness conversion.
14789 Rename to gcov_version, and return flag.
14790 (gcov_exit): Use gcov_version.
14791 (__gcov_init): Use gcov_version.
14792 * Makefile.in (coverageexts): Update.
14793 * gcov.c (print_version): Remove endianness conversion.
14794 (create_file_names): Use GCOV_NOTE_SUFFIX.
14795 (read_graph_file): Use gcov_magic.
14796 (read_count_file): Likewise.
14797 * gcov-dump.c (dump_file): Remove endianness conversion, use
14798 gcov_magic.
14799
148002003-07-09 Nathan Sidwell <nathan@codesourcery.com>
14801
14802 * configure.in (BUILD_PREFIX, BUILD_PREFIX_1): Set if enable
14803 coverage is on.
14804 * configure: Regenerated.
14805 * Makefile.in (ALL_CFLAGS): Correct its comment.
14806
148072003-07-08 Mark Mitchell <mark@codesourcery.com>
14808
14809 * fold-const.c (make_range): Do not access operand 1 for a
14810 zero-operand operator.
14811
148122003-07-09 Neil Booth <neil@daikokuya.co.uk>
14813
14814 * toplev.c (warn_dummy, W_options): Die.
14815 (display_help): Don't print W_options.
14816 * common.opt: Add W_options help from toplev.c.
14817
148182003-07-09 Andreas Jaeger <aj@suse.de>
14819
14820 * opts.c (wrap_help): Only pass int arguments as arguments to
14821 printf's '*' modifier. Change argument of function.
14822
148232003-07-08 Matt Kraai <kraai@alumni.cmu.edu>
14824
14825 * doc/invoke.texi: Fix misspelling of "@item".
14826
148272003-07-08 Kazu Hirata <kazu@cs.umass.edu>
14828
14829 * config/i386/i386.md: Remove an old comment about
14830 NOTICE_UPDATE_CC.
14831
148322003-07-09 Jan Hubicka <jh@suse.cz>
14833
14834 * cgraph.c (cgraph_node_name): New function.
14835 (dump_cgraph): Use it.
14836 * cgraph.h (cgraph_dump_file): Declare.
14837 (cgraph_node_name): Declare.
14838 * cgraphunit.c: Include timevar.h
14839 (cgraph_finalize_compilation_unit): Use timevar; reorganize dumps.
14840 (cgraph_optimize_function): Use TV_INTEGRATION.
14841 (cgraph_mark_local_functions): reorganize dumps.
14842 (cgraph_mark_functions_to_inline_once): Likewise.
14843 (cgraph_optimize): Likewise; use timevar.
14844 * timevar.def (TV_CGRAPH, TV_CGRAPHOPT): New.
14845 * toplev.c (dump_file_index): Add DFI_cgraph.
14846 (dump_file_info): Likewise.
14847 (cgraph_dump_file): New global variable.
14848 (do_compile): Open and close cgraph dump.
14849 * invoke.texi (-d): Document new flag; renumber.
14850
148512003-07-08 Roger Sayle <roger@eyesopen.com>
14852
14853 PR c/11370
14854 * calls.c (emit_call_1): Don't bother popping the arguments off of
14855 the stack after a noreturn function call; The adjustment is dead.
14856 (expand_call): Likewise.
14857
148582003-07-08 Geoffrey Keating <geoffk@apple.com>
14859
14860 * expr.c (MOVE_MAX_PIECES): Move from here...
14861 * defaults.h (MOVE_MAX_PIECES): ... to here.
14862
148632003-07-08 Matt Kraai <kraai@alumni.cmu.edu>
14864
14865 * Makefile.in (stage1-start): Handle an empty SUBDIRS.
14866
148672003-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14868
14869 * genattr.c (internal_dfa_insn_code): Don't prototype.
14870 * genattrtab.c (attr_desc): Add `static_p' field.
14871 (expand_units): Make blockage range and ready cost functions
14872 static.
14873 (write_attr_get): Don't add extern prototypes in C file. Mark
14874 static functions as appropriate.
14875 (find_attr, make_internal_attr): Initialize static_p.
14876 * genattrtab.h (ATTR_STATIC): New macro.
14877 * genautomata.c (output_internal_reset_func): Mark output function
14878 as inline.
14879 (make_internal_dfa_insn_code_attr): Mark output function as static.
14880
148812003-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14882
14883 * genattrtab.h: Add new macros for attr `special' flags.
14884 * genattrtab.c (attr_desc): Reorder/resize fields better.
14885 Use attr `special' macros in all calls to make_internal_attr.
14886 * genautomata.c: Likewise.
14887
148882003-07-09 Jan Hubicka <jh@suse.cz>
14889
14890 * c-common.c (c_estimate_num_insns_1): New static function.
14891 (c_estimate_num_insns): New global function.
14892 * c-common.h (DECL_NUM_STMTS): Rename to...
14893 (DECL_ESTIMATED_INSNS): ... this.
14894 (c_estimate_num_insns): Declare.
14895 * c-decl.c (duplicate_decls): Use DECL_ESTIMATED_INSNS.
14896 * c-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
14897 * c-semantics.c (add_stmt): Do not account statements.
14898 * langhooks-def.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS):
14899 New.
14900 * langhooks.h (lang_hooks_for_tree_inlining): Add
14901 estimate_num_insns
14902 * params.def (max-inline-insns-auto, max-inline-insns-auto): set
14903 to 100.
14904 (max-inline-insns): set to 300.
14905 (min-inline-insns): set to 10.
14906 * tree-inline.c (struct inline_data): Rename inlined_stmts to
14907 inlined-insns.
14908 (INSNS_PER_STMT): Kill.
14909 (inlinable_function_p): Compute and store body size.
14910 (expand_call_inline): Likewise.
14911 (optimize_inline_calls): Likewise.
14912
149132003-07-08 James E Wilson <wilson@tuliptree.org>
14914
14915 PR target/10021
14916 * emit-rtl.c (set_mem_attribute_minus_bitpos): When handle ARRAY_REF,
14917 loop over new variable t2 instead of t.
14918
149192003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
14920
14921 PR bootstrap/11455
14922 * config/i386/winnt.c: Replace use of error(), warning() with
14923 error_with_decl(), warning_with_decl(), throughout.
14924
149252003-07-08 Neil Booth <neil@daikokuya.co.uk>
14926
14927 * opts.c (wrap_help): Use unsigned int, not size_t.
14928
149292003-07-08 Stephane Carrez <stcarrez@nerim.fr>
14930
14931 * config/m68hc11/m68hc11.h (HAVE_AS_DWARF2_DEBUG_LINE): Don't define
14932 as .file/.loc directives are incompatible with linker relaxation.
14933
149342003-07-08 Zack Weinberg <zack@codesourcery.com>
14935
14936 * Makefile.in (fixinc.sh): Remove gnu-regex.[ch] from dependencies.
14937 * fixinc/Makefile.in: Remove all references to gnu-regex.[och].
14938 * fixinc/fixfixes.c, fixinc/fixincl.c, fixinc/fixlib.c
14939 * fixinc/fixtests.c: Use xregexec not regexec, xregcomp not regcomp.
14940 * fixinc/fixlib.h: Include xregex.h not gnu-regex.h.
14941 * fixinc/inclhack.def (hpux10_cpp_pow_inline, hpux11_cpp_pow_inline):
14942 Escape { and } characters which are not part of range expressions.
14943 * fixinc/fixincl.x: Regenerate.
14944 * fixinc/gnu-regex.c, fixinc/gnu-regex.h: Delete file.
14945
149462003-07-08 Steven Bosscher <steven@gcc.gnu.org>
14947
14948 PR c/1687
14949 * tree-inline.c (find_alloca_call): Use
14950 walk_tree_without_duplicates, instead of walk_tree.
14951 (find_builtin_longjmp_call): Likewise.
14952 * c-objc-common.c (c_cannot_inline_fn): Likewise.
14953 * c-semantics.c (find_reachable_label): Likewise.
14954
149552003-07-08 Jakub Jelinek <jakub@redhat.com>
14956
14957 PR c/11420
14958 * config/i386/i386.c (ix86_check_movabs): New function.
14959 * config/i386/i386-protos.h (ix86_check_movabs): New prototype.
14960 * config/i386/i386.md (movabs[shqd]i_1_rex64): Kill broken alternative.
14961 (movabs[shqd]i_[12]_rex64): Add ix86_check_movabs check to conditions.
14962
149632003-07-08 Chris Demetriou <cgd@broadcom.com>
14964
14965 * Makefile.in (install-po): Cope with empty CATALOGS.
14966
149672003-07-08 Richard Sandiford <rsandifo@redhat.com>
14968
14969 * config/mips/elf64.h (TARGET_ASM_UNIQUE_SECTION): Delete.
14970 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
14971 (SECTION_FUNCTION_TEMPLATE): Delete.
14972 * config/mips/elf.h: As for elf64.h.
14973 (ASM_OUTPUT_ALIGNED_BSS): Use named_section rather than sbss_section.
14974 * config/mips/linux.h: As for elf.h
14975 * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
14976 * config/mips/iris6.h (EXTRA_SECTIONS): Delete.
14977 (EXTRA_SECTION_FUNCTIONS): Remove sdata_section. Remove the handling
14978 of in_sdata from current_section_name and current_section_flags.
14979 * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
14980 * config/mips/mips.h (sdata_section, sbss_section): Remove prototypes.
14981 (MASK_GP_OPT, TARGET_GP_OPT): Delete.
14982 (MASK_NO_FUSED_MADD): Use MASK_GP_OPT's old value.
14983 (TARGET_SWITCHES): Neuter gpOPT, gpopt, no-gpOPT and no-gpopt.
14984 (SMALL_DATA_SECTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
14985 * config/mips/mips.c (TARGET_IN_SMALL_DATA_P): Override.
14986 (TARGET_SECTION_TYPE_FLAGS): Override if TARGET_IRIX6.
14987 (mips_classify_symbol): Use SYMBOL_REF_SMALL_P.
14988 (override_options): Remove setting of MASK_GPOPT.
14989 (mips_output_external): Use mips_in_small_data_p to check whether a
14990 symbol needs an .extern directive. Don't emit such directives for
14991 TARGET_EXPLICIT_RELOCS.
14992 (mips_declare_object): Update accordingly.
14993 (mips_select_rtx_section): Call named_section rather than
14994 SMALL_DATA_SECTION.
14995 (mips_select_section): Use default_elf_section_section for everything
14996 except .text string constants.
14997 (mips_in_small_data_p): New function.
14998 (mips_encode_section_info): Remove small data handling.
14999 (mips_unique_section): Delete.
15000 (iris6_section_type_flags): New function.
15001 * doc/tm.texi: Remove documentation of -mgpopt and -mhalf-pic.
15002
150032003-07-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15004
15005 PR Target/11453
15006 * pa.md: Disparage all mtsar constraints.
15007 (extzv, extv, insv): Don't fail on length of {32|64}.
15008
150092003-07-08 Zack Weinberg <zack@codesourcery.com>
15010
15011 * system.h: Poison MAP_CHARACTER.
15012 * config/i370/i370-protos.h (mvs_map_char): Delete.
15013 * config/i370/i370.c (ascebc, ebcasc, mvs_map_char): Delete.
15014 * config/i370/i370.h (MAP_CHARACTER): Delete definition.
15015 (ASM_OUTPUT_ASCII): Don't use MAP_CHARACTER.
15016
150172003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
15018
15019 * toplev.c (randomize): Correct call to time().
15020
150212003-07-08 Jakub Jelinek <jakub@redhat.com>
15022
15023 * unroll.c (reg_dead_after_loop): Check for reg in REG_EQUAL and
15024 REG_EQUIV notes as well.
15025
150262003-07-08 Kazu Hirata <kazu@cs.umass.edu>
15027
15028 * doc/md.texi: Fix the description of addmodecc.
15029
150302003-07-07 Zack Weinberg <zack@codesourcery.com>
15031
15032 * Makefile.in (top_builddir): Set to "..", not ".".
15033 (INTLLIBS, INTLDEPS): Delete.
15034 (LIBINTL, LIBINTL_DEP, LIBICONV_DEP): New variables to be substituted.
15035 (LIBDEPS): Add $(LIBICONV_DEP).
15036 (LIBS): Take out $(INTLLIBS), add $(LIBINTL) and $(LIBICONV).
15037 (INCLUDES): Replace -I../intl with @INCINTL@.
15038 ($(top_builddir)/intl/libintl.a): Delete rule.
15039 (stage2-start, stage3-start, stage4-start, stageprofile-start,
15040 stagefeedback-start): Use $$ for variable to be evaluated by
15041 shell, not make.
15042 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT,
15043 HAVE_LC_MESSAGES, HAVE_STPCPY): Delete.
15044 * aclocal.m4: sinclude ../config/progtest.m4. Add
15045 contents of lcmessage.m4 from gettext distro.
15046 * configure.in: Check for wchar.h and setlocale. Set
15047 LIBICONV_DEP to the empty string and substitute it.
15048 Call AM_LC_MESSAGES. Delete AC_ARG_ENABLE for --enable-nls;
15049 this is handled elsewhere. Use ZW_GNU_GETTEXT_SISTER_DIR,
15050 not CY_GNU_GETTEXT. Clear $LIBICONV if its text is included
15051 in $LIBINTL, to avoid linking it twice.
15052 * configure, config.in: Regenerate.
15053
150542003-07-08 Nathanael Nerode <neroden@gcc.gnu.org>
15055
15056 * fixinc/mkfixinc.sh: Remove winnt support.
15057 * fixinc/fixinc.winnt: Delete with extreme prejudice.
15058
150592003-07-08 Neil Booth <neil@daikokuya.co.uk>
15060
15061 * Makefile.in: Update.
15062 * c-opts.c (c_common_handle_option): opt_text now contains the '-'.
15063 * c.opt: Update documentation.
15064 * common.opt: Add some help text.
15065 * opts.c: Include intl.h.
15066 (wrap_help, print_help): New.
15067 (find_opt, handle_option, common_handle_option): opt_text now
15068 contains the '-'. Use print_help to output help.
15069 * opts.h (struct cl_option): New member "help".
15070 * opts.sh: Update to handle help text output and to prepend
15071 options with '-'.
15072 * toplev.c (display_help): Remove some help text.
15073
150742003-07-07 David Edelsohn <edelsohn@gnu.org>
15075 Fariborz Jahanian <fjahanian@apple.com>
15076
15077 * configure.in: Test for PowerPC mfcr field support in assembler.
15078 * config.in, configure: Regenderated.
15079
15080 * config/rs6000/power4.md: Add mfcrf reservation.
15081 * config/rs6000/rs6000-protos.h (mfcr_operation): Declare.
15082 * config/rs6000/rs6000.c (mfcr_operation): Define.
15083 (print_operand): Add 'Q' case for mfcrf.
15084 * config/rs6000/rs6000.h (TARGET_MFCRF): New.
15085 * config/rs6000/rs6000.md (attribute "type"): Add mfcrf.
15086 (movcc_internal1): Emit optional field operand for mfcr and set
15087 "type" attribute appropriately.
15088 (mfcr SCC): Likewise.
15089 (movesi_from_cr_one): New.
15090
150912003-07-07 Roger Sayle <roger@eyesopen.com>
15092
15093 * config/i386/i386.md: Correct check-in of incorrect version.
15094
150952003-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15096
15097 * bitmap.c (debug_bitmap_file): Merge uses of HOST_PTR_PRINTF with
15098 adjacent stdio calls.
15099 * c-decl.c (c_print_identifier): Likewise.
15100 * mips-tfile.c (write_varray, write_object, allocate_cluster): Likewise.
15101 * print-rtl.c (print_rtx): Likewise.
15102 * print-tree.c (print_node_brief, print_node): Likewise.
15103 * system.h (HOST_PTR_PRINTF): Ensure we have a literal string.
15104
15105 * configure.in (AC_COMPILE_CHECK_SIZEOF): Check for `void *'.
15106 * config.in, configure: Regenerated.
15107
151082003-07-07 Roger Sayle <roger@eyesopen.com>
15109
15110 PR target/10979
15111 * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
15112 Changed to define_expand patterns that copy operand[1] to prevent
15113 it from being clobbered before emitting an atan2?f3_1 insn.
15114 (atan2df3_1, atan2sf3_1, atan2xf_1, atan2tf3_1): New define_insn
15115 patterns that actually specify the behaviour of x87's FPATAN.
15116
151172003-07-07 Jakub Jelinek <jakub@redhat.com>
15118
15119 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Remove bogus
15120 clearing of SYMBOL_FLAG_LOCAL bit.
15121 If vcall_offset fits into signed 16-bit immediate, use
15122 one instruction for both addition and load.
15123
151242003-07-07 Neil Booth <neil@daikokuya.co.uk>
15125
15126 * opts.c (common_handle_option): Correct handling of the
15127 -falign- switches that do and don't take an argument.
15128
151292003-07-07 Kazu Hirata <kazu@cs.umass.edu>
15130
15131 * config/h8300/h8300.md (pushqi1_h8300hs): Revert my patch
15132 today.
15133 (pushhi1_h8300hs): Likewise.
15134
151352003-07-07 Andreas Jaeger <aj@suse.de>
15136
15137 * genextract.c: Convert remaining prototypes to ISO C90.
15138
15139 * cpplex.c (_cpp_free_buff): Convert prototype to ISO C90.
15140 * fold-const.c (fold_single_bit_test): Likewise.
15141 * diagnostic.c (default_diagnostic_finalizer): Likewise.
15142 * cfgrtl.c (rtl_redirect_edge_and_branch): Likewise.
15143
15144 * gengtype.c (write_array): Generate ISO C90 prototypes.
15145
15146 * genflags.c (gen_proto): Generate ISO C90 prototypes.
15147
151482003-07-07 Roger Sayle <roger@eyesopen.com>
15149
15150 PR optimization/11059
15151 * expr.c (can_store_by_pieces): Return true if length is zero.
15152 (store_by_pieces): If length is zero and endp is two, abort,
15153 othwerise, if length is zero and endp is not two, return "to".
15154 (clear_by_pieces): Do nothing if length is zero.
15155 (clear_storage): Do nothing if length is zero.
15156 (store_constructor): Simplify code when size is zero, or the
15157 target has already been cleared. This avoids emitting a
15158 blockage instruction when initializing empty structures.
15159
151602003-07-07 Andreas Jaeger <aj@suse.de>
15161
15162 * mips-tfile.c: Convert prototypes to ISO C90.
15163 * mips-tdump.c: Convert prototypes to ISO C90.
15164
151652003-07-07 Nathan Sidwell <nathan@codesourcery.com>
15166
15167 * rtl.h (emit_line_note): Take a location_t.
15168 (emit_line_note_force): Remove.
15169 (set_file_and_line_for_statement): Take a location_t.
15170 * tree.g (emit_line_note): Take a location_t.
15171 * emit-rtl.c (emit_line_note): Take a location_t.
15172 (emit_line_note_force): Remove.
15173 * function.c (init_function_start): Adjust emit_line_note call.
15174 (expand_function_end): Use force_next_line_note, not
15175 emit_line_note_force.
15176 * c-parse.in (maybe_type_qual): Adjust emit_line_note calls.
15177 * c-semantics.c (genrtl_do_pushlevel, genrtl_goto_stmt,
15178 genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
15179 genrtl_while_stmt, genrtl_do_stmt_1, genrtl_return_stmt,
15180 genrtl_for_stmt, genrtl_break_stmt, genrtl_continue_stmt,
15181 genrtl_continue_stmt, genrtl_switch_stmt,
15182 genrtl_asm_stmt): Likewise.
15183 * expr.c (expand_expr): Likewise.
15184 * integrate.c (expand_inline_function): Likewise.
15185 * stmt.c (set_file_and_line_for_stmt): Take a location_t.
15186 (expand_decl_init): Adjust emit_line_note call.
15187
151882003-07-07 Dale Johannesen <dalej@apple.com>
15189
15190 * config/rs6000/darwin-tramp.asm: Fix trampolines. PR 10900.
15191
151922003-07-07 Andreas Jaeger <aj@suse.de>
15193
15194 * config/i386/i386-protos.h: Convert prototypes to ISO C90.
15195 * config/i386/i386.c: Likewise.
15196
151972003-07-07 Kazu Hirata <kazu@cs.umass.edu>
15198
15199 * config/h8300/h8300.md: Use gen_int_mode instead of
15200 GEN_INT (trunc_int_for_mode (...)).
15201
152022003-07-07 Kazu Hirata <kazu@cs.umass.edu>
15203
15204 * config/h8300/h8300.md (pushqi1_h8300hs): Optimize by pushing
15205 2 bytes and then subtract 2 from the stack pointer.
15206 (pushhi1_h8300hs): Likewise.
15207
152082003-07-07 Nathan Sidwell <nathan@codesourcery.com>
15209
15210 * configure.in (enable_coverage): Remove -DSELF_COVERAGE, add
15211 -frandom-seed.
15212 * configure: Regenerated.
15213 * Makefile.in: Remove extraneous comment.
15214 * toplev.c (randomize): Protect against potential multiple calls.
15215 * doc/invoke.texi (-frandom-seed): Document use for in coverage
15216 files.
15217
152182003-07-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15219 Eric Botcazou <ebotcazou@libertysurf.fr>
15220
15221 PR optimization/11198
15222 * alias.c (objects_must_conflict_p): Return 1 if the types have
15223 the same alias set, not if the alias sets only conflict.
15224
152252003-07-07 Andrew Pinski <pinskia@physics.uc.edu>
15226
15227 * cppcharset.c (ICONV_CONST): Define iff !HAVE_ICONV.
15228 (convert_cset): Change inbuf to type ICONV_CONST char.
15229 * Makefile.in (LIBS): Add LIBICONV.
15230
15231 * doc/invoke.texi (-falign-functions): Document that
15232 when n is zero then a machine-dependent default is used.
15233 (-falign-labels): Document that when n is zero then a
15234 machine-dependent default is used and that -falign-labels =1
15235 is equivalent to -fno-align-labels.
15236 (-falign-loops): Likewise.
15237 (-falign-jumps): Likewise.
15238
152392003-07-06 Art Haas <ahaas@airmail.net>
15240
15241 * f/global.c (ffeglobal_type_string_): Fix obsolete GCC array
15242 initializer syntax.
15243
152442003-07-06 James E Wilson <wilson@tuliptree.org>
15245
15246 PR optimization/9812
15247 * rtl.h (mem_for_const_double): Delete prototype.
15248 * varasm.c (mem_for_const_double): Delete function.
15249 * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68kelf.h,
15250 config/m68k/m68kv4.h, config/m68k/netbsd-elf.h
15251 (LEGITIMATE_PIC_OPERAND_P): Delete duplicate definitions.
15252 * config/m68k/m68k.h (LEGITIMATE_CONSTANT_P): Disallow XFmode.
15253 (LEGITIMATE_PIC_OPERAND_P): Delete CONST_DOUBLE tests.
15254 * config/m68k/m68k.md (movxf): Add reload_in_progress guard. Add
15255 comment about confused support for XFmode constants.
15256
152572003-07-07 Jan Hubicka <jh@suse.cz>
15258
15259 * cfglayout.c (fixup_reorder_chain): Call delete_dead_jumptables.
15260
152612003-07-06 Kazu Hirata <kazu@cs.umass.edu>
15262
15263 * config/h8300/h8300.c: Fix comment typos.
15264 * config/h8300/h8300.md: Likewise.
15265 * config/i386/athlon.md: Likewise.
15266 * config/i386/i386.c: Likewise.
15267 * config/i386/pentium.md: Likewise.
15268 * config/ia64/ia64.c: Likewise.
15269 * config/ia64/itanium1.md: Likewise.
15270 * config/ia64/itanium2.md: Likewise.
15271 * config/m32r/m32r.md: Likewise.
15272 * config/m68hc11/m68hc11.c: Likewise.
15273 * config/mcore/mcore.c: Likewise.
15274 * config/mips/sr71k.md: Likewise.
15275 * config/mips/t-iris5-as: Likewise.
15276 * config/mmix/mmix.h: Likewise.
15277 * config/ns32k/ns32k.h: Likewise.
15278 * config/ns32k/NOTES: Fix a typo.
15279
152802003-07-06 Andreas Jaeger <aj@suse.de>
15281
15282 * stmt.c: Convert remaining prototypes to ISO C90.
15283 * cfglayout.c: Likewise.
15284 * dbxout.c: Likewise.
15285 * gcc.c: Likewise.
15286 * genemit.c: Likewise.
15287
15288 * basic-block.h: Convert prototypes to ISO C90.
15289 * c-parse.in: Likewise.
15290 * c-pragma.h: Likewise.
15291 * c-typeck.c: Likewise.
15292 * cfghooks.h: Likewise.
15293 * cfgloopanal.c: Likewise.
15294 * dbxout.h: Likewise.
15295 * debug.h: Likewise.
15296 * dwarf2asm.h: Likewise.
15297 * gcov.c: Likewise.
15298 * gengtype-lex.l: Likewise.
15299 * sched-int.h: Likewise.
15300 * timevar.c: Likewise.
15301
153022003-07-06 Neil Booth <neil@daikokuya.co.uk>
15303
15304 * c-common.h (c_comon_handle_filename,
15305 c_common_missing_arguement): New.
15306 * c-lang.c (LANG_HOOKS_HANDLE_FILENAME,
15307 LANG_HOOKS_MISSING_ARGUMENT): New.
15308 * c-opts.c (missing_arg): Rename c_common_missing_argument,
15309 update to be an appropriate langhook.
15310 (c_common_handle_option): Don't handle filenames.
15311 (c_common_handle_filename): New.
15312 * hooks.c (hook_void_constcharptr,
15313 hook_bool_constcharptr_size_t_false): New.
15314 * hooks.h (hook_void_constcharptr,
15315 hook_bool_constcharptr_size_t_false): New.
15316 * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME,
15317 LANG_HOOKS_MISSING_ARGUMENT): New.
15318 (LANG_HOOKS_INITIALIZER): Update.
15319 * langhooks.h (struct lang_hooks): Add handle_filename and
15320 missing_argument.
15321 * opts.c (handle_option): Don't handle filenames here, but ...
15322 (handle_options): ... here.
15323 (common_handle_option): Don't handle missing arguments here.
15324 * objc/objc-lang.c (LANG_HOOKS_HANDLE_FILENAME,
15325 LANG_HOOKS_MISSING_ARGUMENT): New.
15326
153272003-07-06 Neil Booth <neil@daikokuya.co.uk>
15328
15329 * Makfile.in: Remove traces of mbchar.
15330 * c-parse.in (MULTIBYTE_CHARS): Remove.
15331 * config.in (MULTIBYTE_CHARS): Remove.
15332 * configure: Remove --enable-mbchar.
15333 * configure.in: Remove --enable-mbchar.
15334 * mbchar.c, mbchar.h: Remove.
15335 * system.h: Poison MULTIBYTE_CHARS.
15336 * config/linux-aout.h (MULTIBYTE_CHARS): Remove.
15337 * config/linux.h (MULTIBYTE_CHARS): Remove.
15338 * config/svr4.h (MULTIBYTE_CHARS): Remove.
15339 * config/sparc/linux.h (MULTIBYTE_CHARS): Remove.
15340
153412003-07-06 Andreas Jaeger <aj@suse.de>
15342
15343 * varray.c (varray_check_failed): Fix typo.
15344
15345 * unroll.c: Convert prototypes to ISO C90.
15346 * varasm.c: Likewise.
15347 * varray.c: Likewise.
15348 * varray.h: Likewise.
15349 * vmsdbgout.c: Likewise.
15350 * xcoffout.c: Likewise.
15351 * xcoffout.h: Likewise.
15352
153532003-07-06 Nathan Sidwell <nathan@codesourcery.com>
15354
15355 * gcov-io.h: Add a local time stamp.
15356 (struct gcov_info): Add stamp field.
15357 (gcov_truncate): New.
15358 * coverage.c (read_counts_file): Skip the stamp.
15359 (coverage_begin_output): Write the stamp.
15360 (build_gcov_info): Declare and init the stamp.
15361 (coverage_finish): Only unlink data file, if stamp is zero.
15362 * gcov-dump.c (dump_file): Dump the stamp.
15363 * gcov.c (bbg_stamp): New.
15364 (release_structures): Clear bbg_stamp.
15365 (read_graph_file): Read stamp.
15366 (read_count_file): Check stamp.
15367 * libgcov.c (gcov_exit): Check stamp and truncate if needed.
15368
153692003-07-06 Nathan Sidwell <nathan@codesourcery.com>
15370
15371 * tree.h (default_flag_random_seed): Remove.
15372 * toplev.h (local_tick): Declare.
15373 * tree.c (flag_random_seed, default_flag_random_seed): Move to
15374 toplev.c.
15375 (append_random_chars): Don't call default_flag_random_seed.
15376 * toplev.c (flag_random_seed): Define here. Set local_tick.
15377 (local_tick): Define.
15378 (randomize): New, moved from tree.c.
15379 (print_switch_values): Adjust.
15380 (toplev_main): Call randomize.
15381
153822003-07-06 Nathan Sidwell <nathan@codesourcery.com>
15383
15384 * tree.h (crc32_string): Declare.
15385 * tree.c (append_random_chars): Remove.
15386 (crc32_string): New.
15387 (get_file_function_name_long): Use crc32_string here.
15388
153892003-07-06 Andreas Jaeger <aj@suse.de>
15390
15391 * gcc.c: Convert prototypes to ISO C90.
15392 * gcc.h: Likewise.
15393 * gcov-dump.c: Likewise.
15394 * gcov-iov.c: Likewise.
15395 * gcse.c: Likewise.
15396 * genattrtab.h: Likewise.
15397 * ggc.h: Likewise.
15398 * global.c: Likewise.
15399 * graph.c: Likewise.
15400 * graph.h: Likewise.
15401 * hosthooks.h: Likewise.
15402 * hooks.h: Likewise.
15403 * hooks.c: Likewise.
15404 * hashtable.h: Likewise.
15405 * hashtable.c: Likewise.
15406 * haifa-sched.c: Likewise.
15407 * integrate.h: Likewise.
15408 * integrate.c: Likewise.
15409 * input.h: Likewise.
15410 * ifcvt.c: Likewise.
15411 * jump.c: Likewise.
15412 * langhooks-def.h: Likewise. Add extern to prototypes.
15413 * langhooks.c: Likewise.
15414 * langhooks.h: Likewise.
15415 * lcm.c: Likewise.
15416 * local-alloc.c: Likewise.
15417 * loop-init.c: Likewise.
15418 * loop-unroll.c: Likewise.
15419 * loop-unswitch.c: Likewise.
15420 * loop.c: Likewise.
15421 * loop.h: Likewise. Add extern to prototypes.
15422 * machmode.h: Likewise.
15423 * main.c: Likewise.
15424 * mbchar.c: Likewise.
15425 * mbchar.h: Likewise.
15426 * mkdeps.c: Likewise.
15427 * mkdeps.h: Likewise.
15428 * optabs.c: Likewise.
15429 * optabs.h: Likewise.
15430 * output.h: Likewise.
15431 * gccspec.c: Likwise.
15432 * postreload.c: Likewise.
15433 * prefix.c: Likewise.
15434 * prefix.h: Likewise.
15435 * print-rtl.c: Likewise.
15436 * print-tree.c: Likewise.
15437 * profile.c: Likewise.
15438 * read-rtl.c: Likewise.
15439 * real.c: Likewise.
15440 * real.h: Likewise.
15441 * recog.c: Likewise.
15442 * recog.h: Likewise.
15443 * reg-stack.c: Likewise.
15444 * regclass.c: Likewise.
15445 * regmove.c: Likewise.
15446 * regrename.c: Likewise.
15447 * regs.h: Likewise.
15448 * reload.c: Likewise.
15449 * reload.h: Likewise.
15450 * reload1.c: Likewise.
15451 * reorg.c: Likewise.
15452 * resource.c: Likewise.
15453 * resource.h: Likewise.
15454 * rtl-error.c: Likewise.
15455 * rtl.c: Likewise.
15456 * rtl.h: Likewise.
15457 * rtlanal.c: Likewise.
15458 * sbitmap.c: Likewise.
15459 * sbitmap.h: Likewise.
15460 * scan-decls.c: Likewise.
15461 * scan.c: Likewise.
15462 * sched-deps.c: Likewise.
15463 * sched-ebb.c: Likewise.
15464 * sched-int.h: Likewise.
15465 * sched-rgn.c: Likewise.
15466 * sched-vis.c: Likewise.
15467 * sibcall.c: Likewise.
15468 * simplify-rtx.c: Likewise.
15469 * sreal.c: Likewise.
15470 * sreal.h: Likewise.
15471 * ssa-ccp.c: Likewise.
15472 * ssa-dce.c: Likewise.
15473 * ssa.c: Likewise.
15474 * ssa.h: Likewise.
15475 * stack.h: Likewise.
15476 * stmt.c: Likewise.
15477 * stor-layout.c: Likewise.
15478 * stringpool.c: Likewise.
15479 * target.h: Likewise.
15480 * timevar.c: Likewise.
15481 * timevar.h: Likewise.
15482 * tlink.c: Likewise.
15483 * tracer.c: Likewise.
15484 * tree-inline.c: Likewise.
15485 * tree-inline.h: Likewise.
15486 * tree.c: Likewise.
15487 * tree.h: Likewise.
15488
154892003-07-05 Kazu Hirata <kazu@cs.umass.edu>
15490
15491 * combine.c (nonzero_bits1): Fix a warning.
15492
154932003-07-05 Kazu Hirata <kazu@cs.umass.edu>
15494
15495 * config/h8300/h8300.c (compute_mov_length): Correct the
15496 length of loading CONST0_RTX (SFmode).
15497
154982003-07-05 Nathan Sidwell <nathan@codesourcery.com>
15499
15500 * toplev.c (output_clean_symbol_name): Remove.
15501 * toplev.h (output_clean_symbol_name): Remove.
15502 * config/alpha/alpha.c (unicosmk_output_module_name): Use
15503 lbasename & clean_symbol_name.
15504
155052003-07-05 Kazu Hirata <kazu@cs.umass.edu>
15506
15507 * ggc.h: Follow spelling conventions.
15508 * config/i386/i386.c: Likewise.
15509 * config/i386/winnt.c: Likewise.
15510 * config/rs6000/rs6000.c: Likewise.
15511
155122003-07-05 Kazu Hirata <kazu@cs.umass.edu>
15513
15514 * bt-load.c: Fix comment typos.
15515 * c-incpath.c: Likewise.
15516 * cfg.c: Likewise.
15517 * cfgcleanup.c: Likewise.
15518 * cfgloop.h: Likewise.
15519 * cfgloopmanip.c: Likewise.
15520 * cfgrtl.c: Likewise.
15521 * diagnostic.h: Likewise.
15522 * dwarfout.c: Likewise.
15523 * emit-rtl.c: Likewise.
15524 * et-forest.c: Likewise.
15525 * et-forest.h: Likewise.
15526 * expr.c: Likewise.
15527 * gcse.c: Likewise.
15528 * genattr.c: Likewise.
15529 * jump.c: Likewise.
15530 * langhooks.h: Likewise.
15531 * local-alloc.c: Likewise.
15532 * loop-unroll.c: Likewise.
15533 * loop-unswitch.c: Likewise.
15534 * ra-build.c: Likewise.
15535 * regclass.c: Likewise.
15536 * regmove.c: Likewise.
15537 * rtl.def: Likewise.
15538 * rtlanal.c: Likewise.
15539 * sched-ebb.c: Likewise.
15540 * sched-rgn.c: Likewise.
15541 * simplify-rtx.c: Likewise.
15542 * ssa.c: Likewise.
15543 * tracer.c: Likewise.
15544 * tree.c: Likewise.
15545
155462003-07-05 Zack Weinberg <zack@codesourcery.com>
15547
15548 * cppcharset.c: Use the correct return type for the fallback iconv
15549 macro.
15550
155512003-07-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
15552
15553 Blame to Jan Hubicka <jh@suse.cz>
15554 * cfglayout.c (record_effective_endpoints): Split insns before
15555 first basic block correctly.
15556
155572003-07-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15558
15559 * expr.c (expand_expr, case COMPONENT_REF): When seeing if should use
15560 bitfield operations, use STRICT_ALIGNMENT, not SLOW_UNALIGNED_ACCESS
15561 if EXPAND_CONST_ADDRESS or EXPAND_INITIALIZER.
15562
155632003-07-05 Andreas Jaeger <aj@suse.de>
15564
15565 * genattrtab.c (write_attr_get): Revert part of last patch to
15566 always write out a prototype.
15567
15568 * genemit.c (gen_split): Readd lost unused attributes in last
15569 patch.
15570
155712003-07-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
15572
15573 * cfgloopmanip.c (force_single_succ_latches): Force latch to be
15574 different from header.
15575
155762003-07-05 Andreas Schwab <schwab@suse.de>
15577
15578 * config/m68k/m68k.c: Remove code protected by CRDS.
15579 * config/m68k/m68k.md: Likewise.
15580
155812003-07-05 Neil Booth <neil@daikokuya.co.uk>
15582
15583 PR driver/11417
15584 * c-opts.c (permit_fortran_options): New.
15585 (c_common_init_options): Accept fortran front end options if
15586 it looks like we might be preprocessing Fortran.
15587 (c_common_handle_option): Don't reject switch if permit_fotran_options.
15588
155892003-07-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15590
15591 * genattr.c (internal_dfa_insn_code): Output prototype.
15592 * genattrtab.c: Don't output unnecessary decls, output in ISO C.
15593 * genautomata.c: Likewise.
15594 * genconditions.c: Likewise.
15595 * genemit.c: Likewise.
15596 * genextract.c: Likewise.
15597 * gengenrtl.c: Likewise.
15598 * gengtype.c: Likewise.
15599 * genopinit.c: Likewise.
15600 * genoutput.c: Likewise.
15601 * genpeep.c: Likewise.
15602 * genrecog.c: Likewise.
15603
156042003-07-04 Zack Weinberg <zack@codesourcery.com>
15605
15606 * cpplib.h (CPP_AT_NAME, CPP_OBJC_STRING): New token types.
15607 (struct cpp_options): Add narrow_charset, wide_charset,
15608 bytes_big_endian fields. Remove EBCDIC field.
15609 (cpp_init_iconv, cpp_interpret_string): New external interfaces.
15610
15611 * cpphash.h: Include <iconv.h> if we have it, otherwise
15612 provide a dummy definition of iconv_t.
15613 (struct cpp_reader): Add narrow_cset_desc and wide_cset_desc fields.
15614 (_cpp_valid_ucn): Update prototype.
15615 (_cpp_destroy_iconv): New prototype.
15616
15617 * doc/cpp.texi: Document character set handling.
15618 * doc/cppopts.texi: Document -fexec-charset= and -fexec-wide-charset=.
15619 * doc/extend.texi: Delete entire section on multiline strings.
15620 Rewrite section on __FUNCTION__ etc now that these are
15621 variables in C.
15622
15623 * cppucnid.tab, cppucnid.pl: New files.
15624 * cppucnid.h: New generated file.
15625 * cppcharset.c: Include cppucnid.h. Lots of commentary added.
15626 (iconv_open, iconv, iconv_close): Provide dummy definitions
15627 if !HAVE_ICONV.
15628 (SOURCE_CHARSET, struct strbuf, init_iconv_desc, cpp_init_iconv,
15629 _cpp_destroy_iconv, convert_cset, width_to_mask, convert_ucn,
15630 emit_numeric_escape, convert_hex, convert_oct, convert_escape,
15631 cpp_interpret_string, narrow_str_to_charconst,
15632 wide_str_to_charconst): New.
15633 (ucn_valid_in_identifier): Use a binary search through the
15634 ucnranges table defined in cppucnid.h, not a long chain of if
15635 statements.
15636 (_cpp_valid_ucn): Add a limit pointer. Downgrade "universal
15637 character names are only valid in C++ and C99" to a warning.
15638 Issue the "meaning of \[uU] is different in traditional C"
15639 warning here. Take care not to let iconv see an invalid UCS
15640 value if we get a malformed UCN. Issue an error if we don't
15641 have iconv.
15642 (cpp_interpret_charconst): Moved here from cpplex.c. Use
15643 cpp_interpret_string to do the heavy lifting.
15644
15645 * cppinit.c (cpp_create_reader): Initialize bytes_big_endian,
15646 narrow_charset, wide_charset fields of options structure.
15647 (cpp_destroy): Call _cpp_destroy_iconv.
15648 * cpplex.c (forms_identifier_p): Adjust call to _cpp_valid_ucn.
15649 (maybe_read_ucn, hex_digit_value, cpp_parse_escape): Delete.
15650 (cpp_interpret_charconst): Moved to cppcharset.c.
15651 * cpplib.c (dequote_string): Delete.
15652 (interpret_string_notranslate): New.
15653 (do_line, do_linemarker): Use interpret_string_notranslate.
15654
15655 * Makefile.in (cppcharset.o): Depend on cppucnid.h.
15656
15657 * c-common.c (fname_string, combine_strings): Delete.
15658 * c-common.h (fname_string, combine_strings): Delete prototypes.
15659 * c-lex.c (ignore_escape_flag): Delete.
15660 (cb_ident): Use cpp_interpret_string, not lex_string.
15661 (get_nonpadding_token): New function.
15662 (c_lex): Handle Objective-C @-prefixed identifiers and strings here.
15663 Adjust calls to lex_string. Don't write *value twice.
15664 (lex_string): Now handles string constant concatenation.
15665 Most of the work handed off to cpp_interpret_string.
15666 Call fix_string_type here.
15667 * c-parse.in (STRING_FUNC_NAME, VAR_FUNC_NAME): Replace with
15668 FUNC_NAME, throughout.
15669 (OBJC_STRING): New token type.
15670 (primary:STRING): No need to call fix_string_type here.
15671 (primary:objc_string): Make that OBJC_STRING.
15672 (objc_string nonterminal): Delete.
15673 (yylexname): Delete code to handle fake string constants.
15674 (yylexstring): Delete entirely.
15675 (_yylex): Handle CPP_AT_NAME and CPP_OBJC_STRING. No need
15676 to handle CPP_ATSIGN.
15677
15678 * c.opt (-fexec-charset=, -fwide-exec-charset=): New options.
15679 * c-opts.c (missing_arg, c_common_handle_option): Handle
15680 OPT_fexec_charset_ and OPT_fwide_exec_charset_.
15681 (c_common_init): Set cpp_opts->bytes_big_endian, not
15682 cpp_opts->EBCDIC. Call cpp_init_iconv.
15683 (print_help): Document -fexec-charset= and -fexec-wide-charset=.
15684 (TARGET_EBCDIC): Delete default definition.
15685
15686 * objc/objc-act.c (build_objc_string_object): No need to
15687 handle string constant concatenation.
15688
156892003-07-04 Kazu Hirata <kazu@cs.umass.edu>
15690
15691 * doc/install.texi: Fix typos.
15692 * doc/invoke.texi: Likewise.
15693 * doc/tm.texi: Likewise.
15694
156952003-07-04 Kazu Hirata <kazu@cs.umass.edu>
15696
15697 * config/pa/fptr.c: Fix comment typos.
15698 * config/pa/pa-64.h: Likewise.
15699 * config/pa/pa.c: Likewise.
15700 * config/pa/pa.h: Likewise.
15701 * config/rs6000/603.md: Likewise.
15702 * config/rs6000/7xx.md: Likewise.
15703 * config/rs6000/darwin.h: Likewise.
15704 * config/rs6000/freebsd.h: Likewise.
15705 * config/rs6000/rs6000.c: Likewise.
15706 * config/rs6000/rs6000.md: Likewise.
15707 * config/rs6000/spe.h: Likewise.
15708
157092003-07-04 Ulrich Weigand <uweigand@de.ibm.com>
15710
15711 * config/s390/2064.md: Change GNU CC to GCC.
15712 * config/s390/2084.md: Likewise.
15713 * config/s390/fixdfdi.h: Likewise.
15714 * config/s390/linux.h: Likewise.
15715 * config/s390/s390-modes.def: Likewise.
15716 * config/s390/s390-protos.h: Likewise.
15717 * config/s390/s390.c: Likewise.
15718 * config/s390/s390.h: Likewise.
15719 * config/s390/s390.md: Likewise.
15720 * config/s390/s390x.h: Likewise.
15721
157222003-07-04 Jeff Law <law@redhat.com>
15723
15724 PR c/11428
15725 * expr.c (do_store_flag): Pass in the correct result type
15726 when calling fold_single_bit_test.
15727 * fold-const.c (fold_single_bit_test): Use result_type for the
15728 result when folding a sign bit test.
15729
157302003-07-04 Neil Booth <neil@daikokuya.co.uk>
15731
15732 * opts.c (common_handle_options): Negate sense of -falign- switches.
15733
157342003-07-04 H.J. Lu <hongjiu.lu@intel.com>
15735
15736 * Makefile.in: Replace PWD with PWD_COMMAND.
15737
157382003-07-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
15739
15740 * cfgloopanal.c (count_strange_loop_iterations): New static function.
15741 (constant_iterations, count_loop_iterations, simple_loop_exit_p):
15742 Handle strange loops.
15743
157442003-07-04 Toon Moene <toon@moene.indiv.nluug.nl>
15745
15746 * install.texi: Even the g77 manpage is derived from
15747 the full g77 manual.
15748
157492003-07-04 Zack Weinberg <zack@codesourcery.com>
15750
15751 * ABOUT-NLS: Delete.
15752 * intl: Delete entire directory.
15753 * aclocal.m4: Include ../config/gettext.m4. Delete
15754 AC_ISC_POSIX, AM_LANGINFO_CODESET, jm_GLIBC21, AM_LC_MESSAGES,
15755 AM_PATH_PROG_WITH_TEST, AM_WITH_NLS, and AM_GNU_GETTEXT.
15756 * configure.in: Use CY_GNU_GETTEXT, not AM_GNU_GETTEXT.
15757 Remove intl/Makefile from all_outputs.
15758 * configure, config.in: Regenerate.
15759 * Makefile.in: Expunge all references to intl subdirectory.
15760 Add -I../intl to INCLUDES.
15761 * intl.h: Include libintl.h if and only if ENABLE_NLS is defined.
15762
157632003-07-04 Roger Sayle <roger@eyesopen.com>
15764
15765 * config/rs6000/aix51.h (TARGET_C99_FUNCTIONS): Define.
15766 * config/rs6000/aix52.h (TARGET_C99_FUNCTIONS): Likewise.
15767
157682003-07-04 Danny Smith <dannysmith@users.sourceforge.net>
15769
15770 PR c++/5287, PR c++/7910, PR c++/11021
15771 * config/i386/winnt.c (ix86_handle_dll_attribute): Don't add
15772 dllimport attribute if function is defined at declaration, but
15773 report error instead. Likewise for dllimport'd variable
15774 definitions. Set implicit TREE_PUBLIC for dllimport'd variables
15775 declared within functions, Report error if dllimport or dllexport
15776 symbol is not global.
15777 (i386_pe_dllimport_p): Ignore dllimport attribute of functions
15778 if defined after declaration or if inlined. Don't allow definition
15779 of static data members of C++ classes. Don't dllimport virtual
15780 methods.
15781 (i386_pe_mark_dllexport): Warn about inconsistent dll attributes.
15782 (i386_pe_mark_dllimport): Remove unnecessary checks.
15783 (i386_pe_encode_section_info): Warn if the dllimport attribute
15784 and symbol prefix have been instantiated and then overridden.
15785
15786 * doc/extend.texi: Document dllimport and dllexport attributes.
15787
15788 * config/i386/winnt.c (i386_pe_output_labelref): Fix indents.
15789
157902003-07-03 Uwe Stieber <uwe@kaos-group.de>
15791
15792 * config/kaos.h (CPP_PREDEFINES): Delete.
15793 (TARGET_OS_CPP_BUILTINS): New.
15794
157952003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15796
15797 * c-aux-info.c: Include toplev.h after c-tree.h.
15798 * c-common.c: Likewise.
15799 (GCC_DIAG_STYLE): Undef.
15800 * c-semantics.c (GCC_DIAG_STYLE): Define.
15801 * c-tree.h (GCC_DIAG_STYLE): Likewise.
15802 * diagnostic.h (inform): Move prototype to toplev.h.
15803 * jump.c: Include diagnostic.h before toplev.h.
15804 * toplev.h (GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG): Define.
15805 (warning, error, fatal_error, pedwarn, sorry, inform,
15806 error_for_asm, warning_for_asm): Mark with ATTRIBUTE_GCC_CXXDIAG.
15807
158082003-07-03 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
15809
15810 * cfglayout.c (cfg_layout_duplicate_bb): Do not update frequencies
15811 at all if edge is not specified.
15812 (can_copy_bbs_p, copy_bbs): New.
15813 * cfglayout.h (can_copy_bbs_p, copy_bbs): Declare.
15814 * cfgloop.c (get_loop_body): Comment more precisely.
15815 * cfgloopmanip.c (copy_bbs, record_exit_edges): Removed.
15816 (scale_bbs_frequencies): Fix comment typo.
15817 (can_duplicate_loop_p): Use can_copy_bbs_p.
15818 (duplicate_loop_to_header_edge): Simplify by using copy_bbs.
15819
158202003-07-03 Devang Patel <dpatel@apple.com>
15821
15822 * c-opts.c (c_common_parse_file): Remove extra
15823 debug_hooks->start_source_file call.
15824
158252003-07-03 Roger Sayle <roger@eyesopen.com>
15826
15827 * real.c (real_trunc, real_floor, real_ceil): New functions
15828 to implement trunc, floor and ceil respectively.
15829 * real.h (real_trunc, real_floor, real_ceil): Prototype here.
15830 * builtins.c (integer_valued_real_p): New function to test if
15831 a floating point expression has an integer valued result.
15832 (fold_trunc_transparent_mathfn): Optimize foo(foo(x)) as
15833 foo(x) where foo is an integer rounding function. Similarly,
15834 optimize foo(bar(x)) as bar(x), and foo((double)(int)x) as
15835 (double)(int)x when both foo and bar are integer rounding
15836 functions and we don't need to honor errno.
15837 (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil):
15838 New functions to fold trunc, floor and ceil.
15839 (fold_builtin): Use fold_builtin_trunc to fold BUILT_IN_TRUNC*,
15840 fold_builtin_floor to fold BUILT_IN_FLOOR* and fold_builtin_ceil
15841 to fold BUILT_IN_CEIL*.
15842 * fold-const.c (tree_expr_nonnegative_p): Handle FLOAT_EXPR and
15843 the remaining integer rounding functions.
15844
158452003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
15846
15847 * config/sparc/sparc.c (function_arg_partial_nregs): Use
15848 SPARC_INT_ARG_MAX to determine where to split unnamed
15849 complex FP arguments.
15850
158512003-07-03 Jan Hubicka <jh@suse.cz>
15852
15853 * basic-block.h (create_basic_block, merge_blocks_nomove): Kill.
15854 * cfgcleanup.c (merge_blocks): Rename to merge_blocks_move.
15855 (merge_blocks_move_predecessor_nojumps,
15856 merge_blocks_move_successor_nojumps): Use merge_blocks.
15857 (try_optimize_cfg): Use merge_blocks_move.
15858 * cfgrtl.c (create_basic_block): Rename to rtl_create_basic_block.
15859 (merge_blocks_nomove): Rename to rtl_merge_blocks.
15860 (cfg_layout_create_basic_block): New.
15861 (rtl_can_merge_blocks): New.
15862 (cfg_layout_split_block): Do not alloc aux by hand.
15863 * cfghooks.h (cfg_hooks): Add create_basic_block, can_merge_blocks_p,
15864 merge_blocks.
15865 (create_basic_block, can_merge_blocks_p, merge_blocks): New macros.
15866 * cfglayout.c (cfg_layout_duplicate_bb): Do not allocate aux by hand.
15867 * cfgloopmanip.c (loop_split_edge_with): Likewise.
15868 * ifcvt.c (merge_if_block): Use merge_blocks_nomove.
15869
15870 * basic-block.h (basic_block_def): Add field 'rbi'.
15871 * bb-reorder.c (find_traces, rotate_loop, mark_bb_visited,
15872 find_traces_1_round, copy_bb, connect_traces): Update use of rbi.
15873 * cfg.c (entry_exit_blocks): Add new field.
15874 * cfglayout.c: Include alloc-pool.h;
15875 (cfg_layout_pool): New.
15876 (record_effective_endpoints, fixup_reorder_chain,
15877 fixup_fallthru_exit_predecessor, cfg_layout_duplicate_bb): Update use
15878 of rbi.
15879 (cfg_layout_initialize_rbi): New function.
15880 (cfg_layout_initialize): Use it.
15881 (cfg_layout_finalize): Clear rbi fields.
15882 * cfglayout.h (RBI): Kill.
15883 (cfg_layout_initialize_rbi): Declare.
15884 * cfgloopmanip.c (copy_bbs): Use rbi.
15885 (record_exit_edges): Likewise.
15886 (duplicate_loop_to_header_edge): Likewise.
15887 * cfgrtl.c (cfg_layout_create_basic_block): Use
15888 cfg_layout_initialize_rbi.
15889 (cfg_layout_split_block): Use rbi.
15890 (cfg_layout_delete_block): Likewise.
15891 * loop-init.c (loop_optimizer_finalize): Likewise.
15892 * loop-unswitch.c (unswitch_loop): Likewise.
15893 * tracer.c (seen, tail_duplicate, layout_superblocks): Likewise.
15894
15895 * cfgrtl.c: Update comments.
15896 (try_redirect_by_replacing_jump): New argument.
15897 (redirect_branch_edge): Break out from ...
15898 (rtl_redirect_edge_and_branch): ... this one.
15899 (update_cfg_after_block_merging): Break out from ...
15900 (rtl_merge_blocks): ... this one.
15901 (cfg_layout_split_edge): New.
15902 (cfg_layout_merge_blocks): New.
15903 (cfg_layout_can_merge_blocks_p): New.
15904 (cfg_layout_redirect_edge_and_branch): Reorganize.
15905 (cfg_layout_rtl_cfg_hooks): Fill in.
15906 (cfg_layout_delete_block): Kill barriers.
15907 * cfganal.c (can_fallthru): Deal with exit blocks
15908 * cfglayout.c (cfg_layout_function_header): New function
15909 (record_effective_endpoints): Record function header.
15910 (fixup_reorder_chain): Fixup dead jumptables; place header
15911
15912 * basic-block.h (CLEANUP_CFGLAYOUT): New flag.
15913 * bb-reorder.c (cfg_layout_initialize): Update call.
15914 * cfgcleanup.c (try_optimize_cfg): Supress optimizations of fallthru
15915 edges in cfglayout mode.
15916 * cfglayout.c (cleanup_unconditional_jumps): Kill.
15917 (cfg_layout_initialize): Kill agrument loops; use cfgcleanup.
15918 * cfglayout.h (cfg_layout_initialize): Update prototype.
15919 * cfgloop.h (CP_INSIDE_CFGLAYOUT): Kill.
15920 * cfgloopmanip.c (loop_split_edge_with): Use split_edge.
15921 * flow.c (propagate_block): Do not crash when basic block ends
15922 by first insn in the chain.
15923 * loop-init.c (loop_optimizer_init): First enter cfglayout mode; later
15924 do loop discovery.
15925 * tracer.c (tracer): Update call of cfg_layout_initialize.
15926
159272003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15928
15929 * Makefile.in: Use dependency variables in lieu of explicit
15930 files throughout.
15931
159322003-07-03 Steven Bosscher <steven@gcc.gnu.org>
15933
15934 * rtl.h (ECF_*, flags_from_decl_or_type): Move from here...
15935 * tree.h: ...to here.
15936
159372003-07-03 Kazu Hirata <kazu@cs.umass.edu>
15938
15939 * config/s390/2064.md: Fix comment typos.
15940 * config/s390/2084.md: Likewise.
15941 * config/s390/s390.c: Likewise.
15942 * config/s390/s390.md: Likewise.
15943 * config/sh/sh.c: Likewise.
15944 * config/sh/sh.h: Likewise.
15945 * config/sh/sh.md: Likewise.
15946 * config/sparc/sparc.c: Likewise.
15947 * config/sparc/sparc.h: Likewise.
15948 * config/sparc/sparc.md: Likewise.
15949 * config/stormy16/stormy16.c: Likewise.
15950 * config/stormy16/stormy16.h: Likewise.
15951 * config/stormy16/stormy-abi: Fix a typo.
15952
159532003-07-03 Kelley Cook <kelleycook@wideopenwest.org>
15954
15955 * Makefile.in (ifcvt.o): Depend on OPTABS_H.
15956
159572003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15958
15959 * config/mips/mips.h (save_argv): Delete.
15960
159612003-07-03 Roger Sayle <roger@eyesopen.com>
15962
15963 PR target/10700
15964 * fold-const.c (extract_muldiv_1): There's nothing that can be done
15965 if the expression is a SAVE_EXPR.
15966
159672003-07-03 Kazu Hirata <kazu@cs.umass.edu>
15968
15969 * config/m32r/m32r.c: Fix comment typos.
15970 * config/m68hc11/m68hc11.c: Likewise.
15971 * config/m68hc11/m68hc11.h: Likewise.
15972 * config/m68k/m68k.c: Likewise.
15973 * config/mcore/mcore.c: Likewise.
15974 * config/mcore/mcore.h: Likewise.
15975 * config/mcore/mcore.md: Likewise.
15976 * config/mips/mips.c: Likewise.
15977 * config/mips/mips.h: Likewise.
15978 * config/mips/mips.md: Likewise.
15979 * config/mips/netbsd.h: Likewise.
15980 * config/mn10300/mn10300.c: Likewise.
15981
159822003-07-03 Andreas Schwab <schwab@suse.de>
15983
15984 * dbxout.c (pending_bincls): Move decl down inside
15985 DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO section.
15986
159872003-07-02 Nathan Sidwell <nathan@codesourcery.com>
15988
15989 * rtl.h (NOTE_DATA): Refer to whole union.
15990 * emit-rtl.c (emit_note): Use memset to clear NOTE_DATA.
15991
159922003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
15993
15994 PR optimization/11381
15995 * simplify-rtx.c (simplify_relational_operation): Check that
15996 two equal operands have no side-effects before simplifying
15997 the comparison.
15998
159992003-07-02 Jeff Law <law@redhat.com>
16000
16001 * expr.c (do_store_flag): Remove special case folding for
16002 single bit tests. Instead call back into the commonized folder
16003 routine.
16004 * fold-const.c (fold_single_bit_test): New function, mostly
16005 extracted from do_store_flag, with an additional case extracted
16006 from fold.
16007 (fold): Call fold_single_bit_test appropriately.
16008 * tree.h (fold_single_bit_test): Prototype.
16009
160102003-07-02 Zack Weinberg <zack@codesourcery.com>
16011
16012 * system.h: Include filenames.h.
16013 (IS_DIR_SEPARATOR, IS_ABSOLUTE_PATHNAME): Don't define.
16014 (DIR_SEPARATOR, DIR_SEPARATOR_2): If not already defined,
16015 define based on HAVE_DOS_BASED_FILE_SYSTEM.
16016 * config/i386/xm-cygwin.h, config/i386/xm-djgpp.h
16017 * config/i386/xm-mingw32.h: Don't define
16018 HAVE_DOS_BASED_FILE_SYSTEM,
16019 DIR_SEPARATOR, or DIR_SEPARATOR_2.
16020 * doc/hostconfig.texi: Update to match.
16021
16022 * cppfiles.c, gcc.c, gensupport.c, protoize.c,
16023 config/i386/cygwin.h:
16024 Use IS_ABSOLUTE_PATH throughout.
16025 * gcc.c (DIR_UP): Delete, unused.
16026 * protoize.c (IS_SAME_PATH): Define in terms of
16027 FILENAME_CMP.
16028 (is_abspath): Delete.
16029
160302003-07-02 Kazu Hirata <kazu@cs.umass.edu>
16031
16032 * config/i386/emmintrin.h: Fix comment typos.
16033 * config/i386/i386.c: Likewise.
16034 * config/i386/i386.h: Likewise.
16035 * config/i386/sco5.h: Likewise.
16036 * config/ia64/ia64.c: Likewise.
16037 * config/ia64/itanium2.md: Likewise.
16038
160392003-07-02 H.J. Lu <hongjiu.lu@intel.com>
16040
16041 * dbxout.c (pending_bincls): Replace DBX_USE_BINCLS with
16042 DBX_USE_BINCL.
16043 (emit_bincl_stab): Same.
16044 (emit_pending_bincls): Same.
16045
160462003-07-02 Kazu Hirata <kazu@cs.umass.edu>
16047
16048 * config/h8300/h8300.c (compute_mov_length): Fix the length of
16049 loading CONST0_RTX (SFmode).
16050 * config/h8300/h8300.h (CONST_DOUBLE_OK_FOR_LETTER_P): Change
16051 'G' to CONST0_RTX (SFmode).
16052 * config/h8300/h8300.md (movsf_h8300): Change the first
16053 constraint to 'G'.
16054 (movsf_h8300h): Likewise.
16055
160562003-07-02 Neil Booth <neil@daikokuya.co.uk>
16057
16058 * c-common.h (c_common_init_options): New prototype.
16059 * c-opts.c (deferred_size): Remove.
16060 (defer_opt): Array is now pre-allocated.
16061 (c_common_init_options): Pre-allocate deferred_opts. Make
16062 lang_flags unsigned.
16063 (push_command_line_options): Free deferred_opts.
16064 * hooks.c (hook_uint_uint_constcharptrptr_0): New.
16065 * hooks.h (hook_uint_uint_constcharptrptr_0): New.
16066 * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): Update.
16067 * langhooks.h (struct lang_hooks): New prototype for init_options.
16068 * main.c (main): Cast argv.
16069 * opts.c (handle_option, handle_options): Update prototypes.
16070 (decode_options): save_argc, save_argv are not global. Constify.
16071 * opts.h (decode_options): New prototype.
16072 * toplev.c (general_init): New protoype.
16073 (save_argv): Make static.
16074 (save_argc): Remove.
16075 (print_switch_values, general_init): Constify.
16076 (toplev_main): Save argv.
16077 * toplev.h (toplev_main): Update prototype.
16078 (save_argc, save_argv): Remove.
16079
160802003-07-02 David Edelsohn <edelsohn@gnu.org>
16081
16082 * dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.
16083 (emit_bincl_stab): Same.
16084 (emit_pending_bincls): Same.
16085
160862003-07-02 Nathan Sidwell <nathan@codesourcery.com>
16087
16088 PR c++/11072
16089 * ginclude/stddef.h (offsetof): Remove cast to 'char &'. Explain why.
16090
160912003-07-02 Andreas Schwab <schwab@suse.de>
16092
16093 * dbxout.c (pending_bincls): Only define if DBX_DEBUGGING_INFO.
16094
160952003-07-02 Eric Botcazou <ebotcazou@libertysurf.fr>
16096
16097 PR optimization/11210
16098 * expr.c (handled_component_p) [NOP_EXPR]: Add ??? note
16099 about the behaviour with regard to bitfields.
16100 * fold-const (decode_field_reference): Record outermost type in
16101 case the expression is a NOP. Strip all NOPs. Set the signedness
16102 to that of the outermost type (if any) when the bitsize is equal
16103 to the size of the type.
16104
161052003-07-02 Richard Sandiford <rsandifo@redhat.com>
16106
16107 * config/mips/mips.md (addsi3): Remove workaround for adds of -32768.
16108 (addsi3_internal, adddi3, adddi3_internal_2): Likewise.
16109 (adddi3_internal_3, addsi3_internal_2): Likewise.
16110
161112003-07-02 Richard Sandiford <rsandifo@redhat.com>
16112
16113 * config/mips/mips.c (machine_function): Add new fields:
16114 ignore_hazard_length_p and all_noreorder_p.
16115 (mips_flag_delayed_branch): New variable.
16116 (override_options): Treat '/' as an operand punctuation character.
16117 Set up mips_flag_delayed_branch.
16118 (print_operand): Handle '/'.
16119 (mips_output_function_prologue): Put the whole function in
16120 .set noreorder and .set nomacro if all_noreorder_p is true.
16121 (mips_output_function_epilogue): End the noreorder/nomacro sequence.
16122 (mips16_optimize_gp): Remove "first insn" parameter.
16123 (mips16_lay_out_constants): New function, split out from mips_reorg.
16124 (mips_avoid_hazard, mips_avoid_hazards): New functions.
16125 (mips_reorg): For mips16 code, call mips16_lay_out_constant
16126 and (optionally) mips16_optimize. If TARGET_EXPLICIT_RELOCS,
16127 do delayed-branch scheduling followed by hazard detection.
16128 (mips_adjust_insn_length): Only account for hazards if
16129 !ignore_hazard_length_p.
16130 (mips_output_load_label): Add a nop to the o32 sequence if
16131 the target suffers from load delays.
16132 (mips_output_conditional_branch): Add %/ to the end of branches.
16133 (mips_output_division): Fill the branch delay slot with %#.
16134 * config/mips/mips.md: Remove redundant '%*' from mips16 branch
16135 instructions. End all other %* branches with %/.
16136 (ffssi2, ffsdi2): Fix lengths.
16137 (truncdisi2, truncdihi2, truncdiqi2): Add store attributes.
16138 (fix_truncdfsi2_macro): Turn off .set nomacro if appropriate.
16139 (fix_truncsfsi2_macro): Likewise.
16140 (mov_lwl): Set hazard to "none".
16141 (ashldi3_internal): Fill the branch delay slot with %#.
16142 (ashrdi3_internal, lshrdi3_internal): Likewise.
16143 (exception_receiver): Explicitly set $28.
16144 (hazard_nop): New pattern.
16145
161462003-07-02 Jan Hubicka <jh@suse.cz>
16147
16148 * cgraphunit.c (cgraph_finalize_unit): Set current_function_decl
16149 before calling tree_inlinable_function_p.
16150
161512003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
16152
16153 * fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5
16154 <internal/stdio_core.h> too.
16155 (stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> and
16156 <internal/wchar_core.h> too.
16157 Substitute va_list uses in inline definition.
16158 * fixinc/fixincl.x: Regenerate.
16159
161602003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
16161
16162 * config/mips/iris5.h (SET_FILE_NUMBER): Moved here from iris3.h.
16163 Undef before redefinition.
16164 (LABEL_AFTER_LOC): Likewise.
16165 (DEFAULT_SIGNED_CHAR): Likewise.
16166 (ASM_OUTPUT_ASCII): Moved here from iris4.h.
16167 Fix IRIX spelling.
16168
16169 * config/mips/iris3.h: Remove, unused.
16170 * config/mips/iris4.h: Likewise.
16171
16172 * config/mips/mips.h (STACK_ARGS_ADJUST): Remove, unused.
16173
16174 * config/mips/iris5.h (TARGET_DEFAULT): Move ...
16175 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here to
16176 target_cpu_default.
16177
16178 * config/mips/iris5.h: Move explicit includes ...
16179 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here.
16180
16181 * config/mips/iris6.h (MIPS_ISA_DEFAULT, MIPS_ABI_DEFAULT): Move ...
16182 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
16183 tm_defines.
16184
16185 * config/mips/iris6.h (TARGET_DEFAULT): Move ...
16186 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
16187 target_cpu_default.
16188
16189 * config/mips/iris6.h: Fix IRIX spelling.
16190 (MULTILIB_DEFAULTS): Undef before redefinition.
16191
16192 * config/mips/iris6.h: Move explicit includes ...
16193 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here.
16194
161952003-07-02 Jan Hubicka <jh@suse.cz>
16196
16197 * cgraph.c (cgraph_mark_needed_node, cgraph_varpool_mark_needed_node,
16198 cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
16199 Use next_needed field instead of aux to maintain the queue.
16200 * cgraph.h (cgraph_node): Add next_needed.
16201 (cgraph_varpool_node): Add next_needed; remove aux.
16202 * cgraphunit.c (cgraph_finalize_compilation_unit): Use next_needed.
16203
162042003-07-02 Jan Hubicka <jh@suse.cz>
16205
16206 * cgraphunit.c (cgraph_finalize_function): Set finalized.
16207 (cgraph_finalize_function): Do not examine inlinablility.
16208 (cgraph_finalize_compilation_unit): Do it here.
16209 * cgraph.h (cgraph_local_info): Add finalized field.
16210
162112003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
16212
16213 * ggc-common.c (gt_pch_save): Cast MAP_FAILED to void *.
16214 (gt_pch_restore): Likewise.
16215
162162003-07-01 Kazu Hirata <kazu@cs.umass.edu>
16217
16218 * config/alpha/alpha.c: Fix comment typos.
16219 * config/alpha/elf.h: Likewise.
16220 * config/arm/arm.c: Likewise.
16221 * config/arm/arm.h: Likewise.
16222 * config/arm/arm.md: Likewise.
16223 * config/arm/t-arm-coff: Likewise.
16224 * config/arm/t-strongarm-pe: Likewise.
16225 * config/arm/xscale-elf.h: Likewise.
16226 * config/avr/avr.h: Likewise.
16227
162282003-07-01 Jeff Law <law@redhat.com>
16229
16230 * stmt.c (any_pending_cleanups): Remove another redundant test.
16231
162322003-07-01 David Edelsohn <edelsohn@gnu.org>
16233 J"orn Rennecke <joern.rennecke@superh.com>
16234
16235 * config/rs6000/rs6000.md (ctr{s,d}i_internal?): Add earlyclobber
16236 for MEM case.
16237
162382003-07-01 Devang Patel <dpatel@apple.com>
16239
16240 * dbxout.c (DBXOUT_DECR_NESTING): Emit pending bincls, if required.
16241 (binclstatus): New.
16242 (struct dbx_file): New members - bincl_status, pending_bincl_name and
16243 prev.
16244 (pending_bincls): New.
16245 (dbxout_init): Initialize new dbx_file members.
16246 (dbxout_start_source_file): Same.
16247 (emit_bincl_stab): New function.
16248 (emit_pending_bincls): Same.
16249 (emit_pending_bincls_if_required): Same.
16250 (dbxout_end_source_file): Emit EINCL stab only if BINCL is already
16251 processed.
16252 (dbxout_begin_block): Emit pending BINCL stabs.
16253 (dbxout_end_block): Same.
16254 (dbxout_function_decl): Same.
16255 (dbxout_continue): Same.
16256 (dbxout_type): Same.
16257 (dbxout_class_name_qualifiers): Same.
16258 (dbxout_symbol): Same.
16259 (dbxout_symbol_location): Same.
16260 (dbxout_parms): Same.
16261
162622003-07-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16263
16264 * c-semantics.c (genrtl_case_label): Fix format specifier bug.
16265 * cfgrtl.c (rtl_verify_flow_info_1): Likewise.
16266
162672003-07-01 Andreas Jaeger <aj@suse.de>
16268
16269 * fold-const.c: Convert prototypes to ISO C90.
16270 * function.c: Likewise.
16271 * function.h: Likewise.
16272
162732003-07-01 Kazu Hirata <kazu@cs.umass.edu>
16274
16275 * doc/contrib.texi: Fix typos.
16276 * doc/invoke.texi: Likewise.
16277 * doc/passes.texi: Likewise.
16278 * doc/sourcebuild.texi: Likewise.
16279 * doc/tm.texi: Likewise.
16280
162812003-07-01 Kazu Hirata <kazu@cs.umass.edu>
16282
16283 * basic-block.h: Fix comment typos.
16284 * bb-reorder.c: Likewise.
16285 * c-format.c: Likewise.
16286 * cfgcleanup.c: Likewise.
16287 * cfghooks.h: Likewise.
16288 * cfgloop.c: Likewise.
16289 * cfgloopmanip.c: Likewise.
16290 * cfgrtl.c: Likewise.
16291 * cgraph.h: Likewise.
16292 * cgraphunit.c: Likewise.
16293 * combine.c: Likewise.
16294 * convert.c: Likewise.
16295 * dbxout.c: Likewise.
16296 * df.c: Likewise.
16297 * df.h: Likewise.
16298 * diagnostic.c: Likewise.
16299 * dwarf2out.c: Likewise.
16300 * et-forest.h: Likewise.
16301 * flow.c: Likewise.
16302 * fold-const.c: Likewise.
16303 * function.h: Likewise.
16304 * gcov-io.h: Likewise.
16305 * gcov.c: Likewise.
16306 * gcse.c: Likewise.
16307 * genautomata.c: Likewise.
16308 * ggc-common.c: Likewise.
16309 * ggc-page.c: Likewise.
16310 * loop-unroll.c: Likewise.
16311 * loop-unswitch.c: Likewise.
16312 * loop.c: Likewise.
16313 * mips-tfile.c: Likewise.
16314 * optabs.c: Likewise.
16315 * ra-build.c: Likewise.
16316 * ra-colorize.c: Likewise.
16317 * ra-rewrite.c: Likewise.
16318 * ra.h: Likewise.
16319 * regmove.c: Likewise.
16320 * reload.c: Likewise.
16321 * rtlanal.c: Likewise.
16322 * sched-ebb.c: Likewise.
16323 * sched-int.h: Likewise.
16324 * sched-vis.c: Likewise.
16325 * sreal.c: Likewise.
16326 * ssa-ccp.c: Likewise.
16327 * ssa.c: Likewise.
16328 * toplev.c: Likewise.
16329 * tree-inline.c: Likewise.
16330 * value-prof.c: Likewise.
16331 * value-prof.h: Likewise.
16332
163332003-07-01 Nathan Sidwell <nathan@codesourcery.com>
16334
16335 * rtl.h (emit_line_note_after): Remove.
16336 (emit_note_copy_after, emit_note_copy): New.
16337 * emit-rtl.c (reorder_insns_with_line_notes): Replace
16338 emit_line_note_after with emit_note_copy_after.
16339 (emit_insn_after_with_line_notes): Likewise.
16340 (emit_line_note_after): Kill.
16341 (emit_note_copy_after): New.
16342 (emit_note_copy): New.
16343 * function.c (emit_return_into_block): Use emit_note_copy_after.
16344 (thread_prologue_and_epilogue_insns): Likewise.
16345 * integrate.c (expand_inline_function): Use emit_note_copy.
16346 (copy_insn_list): Likewise.
16347 * unroll.c (copy_loop_body): Likewise.
16348 * cfglayout.c (duplicate_insn_chain): Likewise.
16349
163502003-07-01 Nathan Sidwell <nathan@codesourcery.com>
16351
16352 * c-tree.h (define_label): Replace filename and lineno arguments
16353 with a location_t.
16354 * c-decl.c (poplevel): Adjust define_label call.
16355 (pop_label_level): Likewise.
16356 (define_label): Replace filename and lineno arguments with a
16357 location_t.
16358 (store_parm_decls): Use DECL_SOURCE_LOCATION.
16359 * c-parse.in (label): Adjust define_label call.
16360
163612003-07-01 Neil Booth <neil@daikokuya.co.uk>
16362
16363 * config/sol2.h, config/alpha/alpha.h, config/alpha/linux.h,
16364 config/i386/i386-interix.h, config/ia64/hpux.h, config/mips/iris6.h,
16365 config/mips/linux.h, config/mips/mips.h, config/pa/pa-hpux.h,
16366 config/pa/pa-hpux10.h, config/pa/pa-hpux11.h, config/pa/pa-pro-end.h,
16367 config/pa/pa.h, config/pa/rtems.h: Use c_dialect_ macros.
16368
163692003-07-01 Andreas Jaeger <aj@suse.de>
16370
16371 * final.c: Convert prototypes to ISO C90.
16372 * flow.c: Likewise.
16373 * flags.h: Likewise.
16374 * gcov-io.c: Likewise.
16375 * gcov-io.h: Likewise.
16376
2a868fac
KH
163772003-06-30 Bruno Haible <bruno@clisp.org>
16378
16379 PR middle-end/6578
16380 * libgcc2.c (__subvsi3): Remove simplification that would not work
16381 when subtracting -0x80000000.
16382 (__subvdi3): Remove simplification that would return a wrong result.
16383 (__mulvsi3): Fix overflow check.
16384 (__absvdi2): Fix simplification that would return a wrong result.
16385 (__mulvdi3): Fix overflow check.
16386
163872003-06-30 Jeff Law <law@redhat.com>
16388
16389 * stmt.c (any_pending_cleanups): Lose argument THIS_CONTOUR, it
16390 was always passed in the value '1'. Simplify body appropriately.
16391 * tree.h (any_pending_cleanups): Corresponding changes.
16392 * calls.c: (expand_call): Corresponding changes.
16393
163942003-06-30 Kazu Hirata <kazu@cs.umass.edu>
16395
16396 * combine.c (distribute_notes): Don't bother REG_WAS_0.
16397 * cse.c (cse_insn): Likewise.
16398 * final.c (final_scan_insn): Likewise.
16399 * jump.c (duplicate_loop_exit_test): Likewise.
16400 * rtl.c (reg_note_name): Remove REG_WAS_0.
16401 * rtl.h (REG_WAS_0): Remove.
16402 * unroll.c (final_reg_note_copy): Don't bother REG_WAS_0.
16403 * config/avr/avr.c (output_movqi): Don't use reg_was_0.
16404 (output_movhi): Likewise.
16405 (output_movsisf): Likewise.
16406 (reg_was_0): Remove.
16407 * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Don't use
16408 REG_WAS_0.
16409 (m68hc11_gen_movqi): Likewise.
16410 * config/vax/vax-protos.h: Remove the prototype for
16411 reg_was_0_p.
16412 * config/vax/vax.c (follows_p): Remove.
16413 (reg_was_0_p): Likewise.
16414 * config/vax/vax.md (movsi): Don't use reg_was_0_p.
16415 (movhi): Likewise.
16416 (movqi): Likewise.
16417 * doc/rtl.texi (REG_WAS_0): Remove.
16418
164192003-06-30 Mark Mitchell <mark@codesourcery.com>
16420
16421 * config/rs6000/spe.h (__ev_set_spefscr_frmc): Set the flag.
16422
164232003-06-30 Bob Wilson <bob.wilson@acm.org>
16424
16425 * config/xtensa/lib1funcs.asm: Use "xtensa-config.h" from
16426 top-level include directory.
16427 * config/xtensa/lib2funcs.S: Likewise.
16428 * config/xtensa/xtensa.h: Likewise.
16429 * config/xtensa/xtensa-config.h: Remove.
16430 * doc/install.texi: Update location of "xtensa-config.h" header.
16431
164322003-06-30 Ulrich Weigand <uweigand@de.ibm.com>
16433
16434 * config/s390/s390.c (s390_extra_constraint): New function.
16435 * config/s390/s390-protos.h (s390_extra_constraint): Declare it.
16436 * config/s390/s390.h (EXTRA_CONSTRAINT): Use it.
16437 * config/s390/s390.c (q_constraint): Remove.
16438 * config/s390/s390-protos.h (q_constraint): Likewise.
16439 * config/s390/s390.h (EXTRA_MEMORY_CONSTRAINT): Add 'R', 'S', 'T'.
16440 (EXTRA_ADDRESS_CONSTRAINT): Define.
16441
16442 * config/s390/s390.c (larl_operand): Refuse out-of-range operands.
16443 (DISP_IN_RANGE, s390_short_displacement): New.
16444 (legitimate_reload_operand_p): Support long displacements.
16445 (s390_decompose_address): Likewise.
16446 (legitimize_pic_address): Likewise.
16447 (legitimize_address): Likewise.
16448 (s390_fixup_clobbered_return_reg): Likewise.
16449 (s390_emit_prologue, s390_emit_epilogue): Likewise.
16450 (s390_output_mi_thunk): Likewise.
16451
16452 * config/s390/s390.md (attr "op_type"): Add "RXY", "RSY", "SIY".
16453 (attr "atype", attr "length"): Add defaults for new op_types.
16454 (all insns): Change op_type attribute where appropriate.
16455
16456 ("*movdi_lay", "*movsi_lay", "*extendqidi2", "*extendqisi2"): New insns.
16457 ("*tmqi_ext", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem", *tmqi_mem",
16458 "*tstsi", "*tstsi_cconly", "*tsthiCCT", "*tsthiCCT_cconly",
16459 "*tsthi", "*tsthi_cconly", "*tstqiCCT", "*tstqiCCT_cconly",
16460 "*tstqi", "*tstqi_cconly", "*cmpsi_ccs_sign", "*cmpsi_ccs",
16461 "*cmpsi_ccu", "*cmphi_ccu", "*cmpqi_ccu", "*cli",
16462 "movti", "*movdi_64", "*movdi_31", "*movsi", "movhi", "movqi_64",
16463 "movqi", "*movstrictqi", "*movstricthi", "movstrictsi",
16464 "*movdf_64", "*movdf_31", "*movsf",
16465 "*load_multiple_si", "*store_multiple_di",
16466 "*sethighqisi", "*sethighhisi", "*sethighqidi_31", "*extendhisi2",
16467 "*la_64", "*la_31", "*la_31_and", "force_la_31",
16468 "*addsi3_carry1_cc", *addsi3_carry1_cconly",
16469 "*addsi3_carry2_cc", *addsi3_carry2_cconly",
16470 "*addsi3_cc", "*addsi3_cconly", "*addsi3_cconly2",
16471 "*addsi3_sign", "*addsi3_sub", "addsi3",
16472 "*subsi3_borrow_cc", "*subsi3_borrow_cconly", "*subsi3_cc",
16473 "*subsi3_cconly", "*subsi3_sign", "*subsi3_sub", "subsi3",
16474 "mulsi3"
16475 "*andsi3_cc", "*andsi3_cconly", "andsi3",
16476 "*andqi3_ss", "*andqi3_ss_inv",
16477 "*iorsi3_cc", "*iorsi3_cconly", "iorsi3",
16478 "*iorqi3_ss", "*iorqi3_ss_inv",
16479 "*xorsi3_cc", "*xorsi3_cconly", "xorsi3",
16480 "*xorqi3_ss", "*xorqi3_ss_inv",
16481 "*tls_load_31"): Add alternatives for long-displacement instructions.
16482
16483 ("*cmpdf_ccs", "*cmpdf_ccs_ibm", "*cmpsf_ccs", "*cmpsf_ccs_ibm",
16484 "*load_multiple_di", "*store_multiple_di",
16485 "*sethighqidi_64", "*zero_extendhisi2_31",
16486 "truncdfsf2_ibm", "extendsfdf2_ieee", "extendsfdf2_ibm",
16487 "adddf3", "*adddf3", "*adddf3_ibm",
16488 "addsf3", "*addsf3", "*addsf3_ibm",
16489 "subdf3", "*subdf3", "*subdf3_ibm",
16490 "subsf3", "*subsf3", "*subsf3_ibm",
16491 "mulsi_6432", "divmoddisi3",
16492 "muldf3", "*muldf3", "*muldf3_ibm",
16493 "mulsf3", "*mulsf3", "*mulsf3_ibm",
16494 "divdf3", "*divdf3", "*divdf3_ibm",
16495 "divsf3", "div*sf3", "*divsf3_ibm",
16496 "sqrtdf2", "sqrtsf2",
16497 "*cjump_long", "*icjump_long", "indirect_jump", "casesi_jump",
16498 "*doloop_si_long", "*doloop_di_long", "bas_64", "bas_31",
16499 "bas_r_64", "bas_r_31", "bas_tls_31", "bas_tls_64"): Adapt memory
16500 and address constraints for instructions that do not accept long
16501 displacements.
16502
165032003-06-30 Hartmut Penner <hpenner@de.ibm.com>
16504 Ulrich Weigand <uweigand@de.ibm.com>
16505
16506 * config/s390/2084.md: New file.
16507 * config/s390/s390.md: Include it.
16508 * config/s390/s390.c (s390_adjust_priority): New function.
16509 (TARGET_SCHED_ADJUST_PRIORITY): Define.
16510 (s390_first_cycle_multipass_dfa_lookahead): New function.
16511 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
16512 (s390_sched_reorder2): New function.
16513 (TARGET_SCHED_REORDER2): Define.
16514 (s390_adjust_cost): Support PROCESSOR_2084_Z990 cpu type.
16515 (s390_issue_rate): Likewise.
16516
16517Mon Jun 30 23:47:33 CEST 2003 Jan Hubicka <jh@suse.cz>
16518
16519 * Makefile.in (GTFILES): Add cgraph.h.
16520 * cgraph.c (known_decls): Remove.
16521 (cgraph_hash, cgraph_nodes, cgraph_nodes_queue,
16522 cgraph_varpool_hash, cgraph_varpool_nodes_queue): GTYize.
16523 (cgraph_node): Do not allocate known_decls; use polutate hashtable.
16524 (cgraph_varpool_node): Likewise; add next pointer.
16525 (cgraph_varpool_nodes): New static variable.
16526 * cgraph.h (cgraph_local_info, cgraph_global_info, cgraph_rtl_info,
16527 cgraph_node, cgraph_edge, cgraph_varpool_node, cgraph_nodes, cgraph_n_nodes,
16528 cgraph_varpool_n_nodes, cgraph_varpool_nodes_queue): GTYize.
16529 * gengtype.c (open_base_files): Include cgraph.h
16530
165312003-06-30 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
16532
16533 * Changelog: Remove ">>>>>>>" from previous change.
16534
165352003-06-30 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
16536
16537 * config/cris/cris.c: Fix spelling for "testcase".
16538 * config/cris/cris.h: Likewise.
16539 * config/cris/cris.md: Likewise.
16540 * config/mmix/crti.asm: Likewise.
16541 * config/mmix/mmix.h: Likewise.
16542 * config/mmix/mmix.md: Likewise.
16543
165442003-06-30 Kazu Hirata <kazu@cs.umass.edu>
16545
16546 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Make it always
16547 1.
16548
165492003-06-30 Ulrich Weigand <uweigand@de.ibm.com>
16550
16551 * config.gcc [s390*-*-*]: Support --with-arch, --with-tune, and
16552 --with-mode configure options.
16553 * config/s390/s390.h (OPTION_DEFAULT_SPECS): Define.
16554 (DRIVER_SELF_SPECS): Define.
16555 * config/s390/linux.h (ASM_SPEC): Pass architecture mode and cpu
16556 architecture to assembler.
16557 (LINK_SPEC): Merge 31-bit and 64-bit variants.
16558 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC, EXTRA_SPECS): Remove.
16559 * config/s390/s390.c (override_options): New default rules for
16560 architecture mode and cpu architecture selection.
16561 * doc/invoke.texi (-mesa, -mzarch, -march, -mtune): Document
16562 new default rules.
16563
16564 * config/s390/s390.h (enum processor_type): Add PROCESSOR_2084_Z990.
16565 * config/s390/s390.md (attr "cpu"): Add "z990" processor type.
16566 * config/s390/s390.c (override_options): Add "z990" to
16567 processor_alias_table.
16568 * doc/invoke.texi (-march): Document "z990" processor type.
16569
16570 * config/s390/s390.c (s390_tune_flags, s390_arch_flags): New variables.
16571 * config/s390/s390.h (s390_tune_flags, s390_arch_flags): Declare.
16572 (enum processor_flags, TARGET_CPU_IEEE_FLOAT, TARGET_CPU_ZARCH,
16573 TARGET_CPU_LONG_DISPLACEMENT, TARGET_LONG_DISPLACEMENT): New.
16574 * config/s390/s390.c (override_options): Replace enum pta_flags by
16575 enum processor_flags. Fill in s390_tune_flags and s390_arch_flags.
16576
16577 * config/s390/s390.c (s390_cpu): Rename to ...
16578 (s390_tune): ... this.
16579 * config/s390/s390.h (s390_cpu, s390_tune): Likewise.
16580 * config/s390/s390.c (s390_issue_rate, override_options): Likewise.
16581 * config/s390/s390.md (attr "cpu"): Likewise.
16582
165832003-06-30 Neil Booth <neil@daikokuya.co.uk>
16584
16585 * c-common.c (enum c_language_kind, flag_objc): Remove.
16586 (fix_string_type, check_case_value, c_common_nodes_and_builtins,
16587 c_add_case_label, finish_label_addr_expr, boolean_increment):
16588 Use c_dialect_ macros.
16589 * c-common.h (enum c_language_kind): Extend.
16590 (c_dialect_cxx, c_dialect_objc): New.
16591 (flag_objc): Remove.
16592 (c_common_init_options): Update prototype.
16593 * c-cppbuiltin.c (define__GNUC__, c_cpp_builtins): Use c_dialect_
16594 macros.
16595 * c-decl.c (finsih_decl, grokfield, finish_struct): Use c_dialect_
16596 macros.
16597 * c-format.c (C_STD_VER, C_STD_NAME): Similarly.
16598 * c-lang.c (c_init_options): Remove.
16599 (c_language): Define.
16600 (LANG_HOOKS_INIT_OPTIONS): Use common hook.
16601 * c-lex.c (lex_charconst): Use c_dialect_ macros.
16602 * c-opts.c (lang_flags): Make function-local.
16603 (c_common_init_options): Use c_dialect_ macros. Handle
16604 C++ diagnostic requirements.
16605 (c_common_handle_option, c_common_post_options): Use flag_cxx.
16606 * c-parse.in (init_reswords): Use c_dialect_objc ().
16607 * c-pch.c (get_ident): Use c_language.
16608 * c-pretty-print.c (pp_c_bool_literal): Use c_dialect_ macros.
16609 * c-typeck.c (comptypes, build_c_cast): Similarly.
16610 * objc/objc-lang.c (c_language): Define.
16611 (LANG_HOOKS_INIT_OPTIONS): Use common hook.
16612 (objc_init_options): Remove.
16613
166142003-06-30 Kazu Hirata <kazu@cs.umass.edu>
16615
16616 * config/alpha/alpha.h (FUNCTION_ARG_PADDING): Remove.
16617 * config/alpha/unicosmk.h: Don't #undef FUNCTION_ARG_PADDING.
16618
166192003-06-30 Wolfgang Bangerth <bangerth@dealii.org>
16620
16621 * doc/sourcebuild.texi: Don't reference gnats.html any more.
16622
166232003-06-30 Kazu Hirata <kazu@cs.umass.edu>
16624
16625 * config/h8300/h8300.c (compute_mov_length): Fix length of
16626 mov:SF on H8/300.
16627
166282003-06-30 Nick Clifton <nickc@redhat.com>
16629
16630 * config/arm/arm.h (BIGGEST_FIELD_ALIGNMENT): Make defintion
16631 constant.
16632
16633Mon Jun 30 15:36:29 CEST 2003 Jan Hubicka <jh@suse.cz>
16634
16635 (fyl2x_sfxf3, fyl2x_dfxf3, fscale_sfxf3, fscale_dfxf3): Fix condition.
16636
166372003-06-30 Hartmut Penner <hpenner@de.ibm.com>
16638
16639 * config/rs6000/rs6000.c (rs6000_split_altivec_in_gprs): New function.
16640 (altivec_in_gprs_p): New function.
16641
16642 * config/rs6000/rs6000-protos (rs6000_split_altivec_in_gprs): New
16643 prototype.
16644 (altivec_in_gprs_p): New prototype.
16645
16646 * config/rs6000/altivec.md (*movv4si_internal): Change
16647 multi-assembler alternative to '#'. Add postreload splitter to
16648 handle this cases.
16649 (*movv4hi_internal): Likewise.
16650 (*movv4qi_internal): Likewise.
16651 (*movv4sf_internal): Likewise.
16652
166532003-06-30 Jason Merrill <jason@redhat.com>
16654
16655 * defaults.h (PUSH_ARGS_REVERSED): Define default here.
16656 * calls.c: Not here.
16657
166582003-06-30 Ben Elliston <bje@wasabisystems.com>
16659
16660 * config/arm/arm.c (arm_rtx_costs): Remove #if 0 block.
16661 (bad_signed_byte_operand): Likewise.
16662 (arm_output_epilogue): Likewise.
16663 (arm_final_prescan_insn): Likewise.
16664
166652003-06-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
16666
16667 * cfgrtl.c (mark_killed_regs): Cast HARD_REGNO_NREGS to int.
16668
166692003-06-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
16670
16671 * c-pch.c (c_common_write_pch): Flush asm_out_file to allow for
16672 subsequent writes.
16673
16674Mon Jun 30 10:03:02 CEST 2003 Jan Hubicka <jh@suse.cz>
16675
16676 * cfgrtl.c (verify_flow_info): Accept degenerated condjumps
16677 in cfglayout mode.
16678
16679Mon Jun 30 09:52:39 CEST 2003 Jan Hubicka <jh@suse.cz>
16680
16681 * i386.c (standard_80387_constant_p): Accept TFmode constants too.
16682 (init_ext_80387_constants): Likewise.
16683 (standard_80387_constant_rtx): Likewise.
16684 * i386.md (atanxf): Disable for TARGET_128BIT_LONG_LONG
16685 (atantf): Disable for !TARGET_128BIT_LONG_LONG
16686 (fyl2x_sfxf3, fyl2x_dfxf3): Accept TFmode operands.
16687 (fyl2x_xfxf3, fyl2x_tfxf3): Enable/disable as needed.
16688 (fscale_sfxf3, fscale_dfxf3): Accept TFmode operands.
16689 (fscale_xfxf3, fscale_tfxf3): Enable/disable as needed.
16690 (frndinttf2): New.
16691 (f2xm1tf2): New.
16692 (exp?f2): Use expsf2_tf when needed.
16693 (exp?f2_tf): New.
16694 (exptf): New.
16695
166962003-06-29 Uwe Stieber <uwe@kaos-group.de>
16697
16698 * config.gcc (sh*-*-kaos*): Put tm_file setting in separate case
16699 statement from tmake_file set.
16700
167012003-06-29 James E Wilson <wilson@tuliptree.org>
16702
16703 * reload.c (find_reloads): Change push_reloads to push_reload in
16704 comment.
16705 * reload1.c (eliminate_regs): Likewise.
16706 (dump_needs): Delete prototype for deleted function.
16707
167082003-06-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16709
16710 * builtin-attrs.def (gcc_diag, gcc_cdiag, gcc_cxxdiag): New
16711 format attributes.
16712 * c-format.c (enum format_type): Add gcc_diag_format_type,
16713 gcc_cdiag_format_type, and gcc_cxxdiag_format_type.
16714 (gcc_diag_length_specs, gcc_cdiag_length_specs,
16715 gcc_cxxdiag_length_specs, gcc_diag_flag_pairs,
16716 gcc_cdiag_flag_pairs, gcc_cxxdiag_flag_pairs, gcc_diag_flag_specs,
16717 gcc_cdiag_flag_specs, gcc_cxxdiag_flag_specs, gcc_diag_char_table,
16718 gcc_cdiag_char_table, gcc_cxxdiag_char_table): New.
16719 (format_types_orig): Add new data.
16720 (find_char_info_specifier_index, init_dynamic_diag_info): New
16721 functions.
16722 (handle_format_attribute): Update to handle new format attributes.
16723
167242003-06-29 Dara Hazeghi <dhazeghi@yahoo.com>
16725
16726 * doc/install.texi: Remove install documentation for obsoleted targets
16727 i?86-*-sco, i?86-*-sco3.2v4, powerpcle-*-pe, powerpcle-*-winnt,
16728 arm-*-aof.
16729 Update information about IA64 toolchain, AIX make requirements,
16730 and binutils for m68k-*-hpux and *-*-linuxaout targets.
16731
16732Mon Jun 30 00:50:43 CEST 2003 Jan Hubicka <jh@suse.cz>
16733
16734 * regmove.c (regmove_optimize): Don't try to make src and dst match
16735 when they are in different modes.
16736
16737Sun Jun 29 23:06:32 CEST 2003 Jan Hubicka <jh@suse.cz>
16738
16739 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2): Avoid
16740 busy work when builtin is not supported by the backend.
16741
167422003-06-29 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
16743
16744 * loop.c (count_one_set): Fix detection of registers set in more
16745 than one basic block.
16746
167472003-06-29 Andreas Jaeger <aj@suse.de>
16748
16749 * target-def.h: Remove usage of OBJECT_FORMAT_ROSE.
16750 * system.h: Poison OBJ_FORMAT_ROSE.
16751 * doc/tm.texi (Macros for Initialization): Remove documentatin of
16752 OBJECT_FORMAT_ROSE.
16753 * config/rs6000/lynx.h: Remove undef of OBJECT_FORMAT_ROSE.
16754 * collect2.c: Remove usage of OBJECT_FORMAT_ROSE.
16755
167562003-06-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16757
16758 * pa.c (update_total_code_bytes): New function.
16759 (last_address): Number of bytes output for a function and its
16760 associated thunks.
16761 (compute_frame_size): Use BITS_PER_UNIT.
16762 (pa_output_function_epilogue): Compute last_address. Use
16763 update_total_code_bytes.
16764 (output_lbranch): Handle long branch on portable runtime.
16765 (attr_length_millicode_call, attr_length_call,
16766 attr_length_indirect_call): Only use total_code_bytes for calls in
16767 the text section.
16768 (output_call): Only use an indirect call sequence when the target is
16769 not local.
16770 (pa_asm_output_mi_thunk): Handle updating of total_code_bytes. Improve
16771 test to determine when an IA-relative branch can be used. Add various
16772 long branch sequences. Avoid using an indirect branch on all ports
16773 except SOM.
16774
167752003-06-29 Ulrich Weigand <uweigand@de.ibm.com>
16776
16777 * expr.c (clear_by_pieces): Fix prototype.
16778
167792003-06-29 Andreas Jaeger <aj@suse.de>
16780
16781 * cse.c: Convert prototypes to ISO C90.
16782 * cselib.c: Likewise.
16783 * cselib.h: Likewise.
16784 * dbxout.c: Likewise.
16785 * debug.c: Likewise.
16786 * df.c: Likewise.
16787 * df.h: Likewise.
16788 * dojump.c: Likewise.
16789 * doloop.c: Likewise.
16790 * dominance.c: Likewise.
16791 * dwarf2asm.c: Likewise.
16792 * dwarf2out.c: Likewise.
16793 * dwarf2out.h: Likewise.
16794 * dwarfout.c: Likewise.
16795 * except.c: Likewise.
16796 * except.h: Likewise.
16797 * emit-rtl.c: Likewise.
16798 * et-forest.c: Likewise.
16799 * et-forest.h: Likewise.
16800 * except.c: Likewise.
16801 * explow.c: Likewise.
16802 * expmed.c: Likewise.
16803 * expr.c: Likewise.
16804 * expr.h: Likewise.
16805
168062003-06-29 Kazu Hirata <kazu@cs.umass.edu>
16807
16808 * alloc-pool.c: Fix comment formatting.
16809 * bitmap.c: Likewise.
16810 * bitmap.h: Likewise.
16811 * bt-load.c: Likewise.
16812 * builtins.c: Likewise.
16813 * caller-save.c: Likewise.
16814 * cfganal.c: Likewise.
16815 * cfgrtl.c: Likewise.
16816 * collect2.c: Likewise.
16817 * cse.c: Likewise.
16818 * df.c: Likewise.
16819 * diagnostic.c: Likewise.
16820 * dwarf2out.c: Likewise.
16821 * dwarfout.c: Likewise.
16822 * expmed.c: Likewise.
16823 * final.c: Likewise.
16824 * flags.h: Likewise.
16825 * fold-const.c: Likewise.
16826 * gcc.c: Likewise.
16827 * gcov-io.h: Likewise.
16828 * gcov.c: Likewise.
16829 * genattrtab.c: Likewise.
16830 * genautomata.c: Likewise.
16831 * libgcov.c: Likewise.
16832 * mips-tfile.c: Likewise.
16833 * optabs.c: Likewise.
16834 * prefix.c: Likewise.
16835 * rtlanal.c: Likewise.
16836 * stmt.c: Likewise.
16837 * stor-layout.c: Likewise.
16838 * toplev.c: Likewise.
16839 * varasm.c: Likewise.
16840 * vmsdbgout.c: Likewise.
16841
168422003-06-29 Kazu Hirata <kazu@cs.umass.edu>
16843
16844 * expr.c (emit_single_push_insn): If padding is needed
16845 downward, adjust the stack pointer first, and then store the
16846 data into the stack location using an offset.
16847
168482003-06-29 Andreas Jaeger <aj@suse.de>
16849
16850 * collect2.h: Convert prototypes to ISO C90.
16851 * collect2.c: Likewise.
16852 * conflict.c: Likewise.
16853 * coverage.c: Likewise.
16854 * convert.h: Likewise.
16855 * convert.c: Likewise.
16856
168572003-06-29 Nathan Sidwell <nathan@codesourcery.com>
16858
16859 * c-decl.c (c_init_decl_processing): Use a location_t. Set input
16860 filename to <internal>.
16861 * tree.c (make_node): Just copy the current location.
16862
168632003-06-29 Eric Botcazou <ebotcazou@libertysurf.fr>
16864
16865 PR optimization/11210
16866 * fold-const (decode_field_reference): Revert 2003-06-26 patch.
16867
168682003-06-29 Neil Booth <neil@daikokuya.co.uk>
16869
16870 * toplev.c (flag_dummy): Remove.
16871 (f_options): Restore flag pointers.
16872
168732003-06-29 David Edelsohn <edelsohn@gnu.org>
16874
16875 * config/rs6000/rs6000.c (processor_target_table): Add 970.
16876 * config.gcc: Add 970.
16877
168782003-06-29 Kazu Hirata <kazu@cs.umass.edu>
16879
16880 * dwarf2out.c (add_AT_string): Replace ggc_alloc_string (X,
16881 -1) with ggc_strdup.
16882 * stmt.c (expand_asm_operands): Likewise.
16883 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
16884
168852003-06-28 Kazu Hirata <kazu@cs.umass.edu>
16886
16887 * config/ip2k/ip2k.c (ip2k_reorg): Use INSN_P instead of its
16888 definition.
16889
168902003-06-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
16891
16892 * opts.c: Include insn-attr.h.
16893 * Makefile.in (opts.o): Depend on INSN_ATTR_H.
16894
168952003-06-27 J"orn Rennecke <joern.rennecke@superh.com>
16896
16897 * flow.c (propagate_one_insn): Use proper test for a register
16898 being part of the return value.
16899
169002003-06-28 Kazu Hirata <kazu@cs.umass.edu>
16901
16902 * config/avr/avr.c: Fix a comment typo.
16903
169042003-06-28 Kazu Hirata <kazu@cs.umass.edu>
16905
16906 * config/avr/avr-protos.h: Replace avr_simplify_comparision_p
16907 with avr_simplify_comparison_p.
16908 * config/avr/avr.c: Likewise.
16909
169102003-06-28 Kazu Hirata <kazu@cs.umass.edu>
16911
16912 * builtins.c: Follow spelling conventions.
16913 * cgraph.c: Likewise.
16914 * cpplex.c: Likewise.
16915 * config/arm/arm.c: Likewise.
16916 * config/arm/iwmmxt.md: Likewise.
16917 * config/c4x/c4x-modes.def: Likewise.
16918 * config/c4x/c4x.c: Likewise.
16919 * config/c4x/c4x.h: Likewise.
16920 * config/c4x/c4x.md: Likewise.
16921 * config/i386/i386-interix.h: Likewise.
16922 * config/mips/mips.h: Likewise.
16923
169242003-06-28 Neil Booth <neil@daikokuya.co.uk>
16925
16926 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Predicate
16927 __mc68020__ on TARGET_68020.
16928
169292003-06-28 Kazu Hirata <kazu@cs.umass.edu>
16930
16931 * config/h8300/h8300.c: Fix a comment typo.
16932
169332003-06-28 Nathan Sidwell <nathan@codesourcery.com>
16934
16935 * c-parse.in (yylexstring): Use a location_t.
16936
16937 * diagnostic.h (diagnostic_set_info): Replace file and lineno
16938 parameters with a location_t.
16939 * diagnostic.c (diagnostic_set_info): Replace file and lineno
16940 parameters with a location_t.
16941 (inform, warning, pedwarn, error, sorry, fatal_error,
16942 internal_error, warning_with_decl, pedwarn_with_decl,
16943 error_with_decl): Adjust.
16944 * c-error.c (pedwarn_c99): Adjust.
16945 * c-format.c (status_warning): Adjust.
16946 * rtl-error.c (file_and_line_for_asm): Rename to ...
16947 (location_for_asm): Return a location_t.
16948 (diagnostic_for_asm): Adjust.
16949
169502003-06-28 Neil Booth <neil@daikokuya.co.uk>
16951
16952 * cpptrad.c (skip_macro_block_comment): New.
16953 (copy_comment): Use it if appropriate.
16954
169552003-06-28 Kazu Hirata <kazu@cs.umass.edu>
16956
16957 * gcse.c (compute_ld_motion_mems): Use INSN_P instead of its
16958 definition.
16959 (store_killed_in_insn): Likewise.
16960 * print-rtl.c (print_rtx): Likewise.
16961 * config/frv/frv.c (frv_final_prescan_insn): Likewise.
16962 * config/m68hc11/m68hc11.c (dead_register_here): Likewise.
16963 (m68hc11_reassign_regs): Likewise.
16964 (m68hc11_reorg): Likewise.
16965
169662003-06-28 Gabriel Dos Reis <gdr@integrable-solutions.net>
16967
16968 * diagnostic.c (output_integer_with_precision): New macro.
16969 (output_format): Use it. Handle more format specifiers.
16970 (output_long_decimal): Remove.
16971 (output_unsigned_decimal): Likewise.
16972 (output_long_unsigned_decimal): Likewise.
16973 (output_octal): Likewise.
16974 (output_long_octal): Likewise.
16975 (output_hexadecimal): Likewise.
16976 (output_long_hexadecimal): Likewise.
16977 (output_long_long_decimal): Likewise.
16978
169792003-06-28 Andreas Schwab <schwab@suse.de>
16980
16981 * config/ia64/ia64.md: Follow recent emit_note API change.
16982
169832003-06-28 Nathan Sidwell <nathan@codesourcery.com>
16984
16985 * c-parse.in (%union): Replace filename & lineno with location.
16986 (save_filename, save_lineno): Remove.
16987 (save_location): New.
16988 (fndef, old_style_parm_decls_1, lineno_datadecl, lineno_decl,
16989 nested_function, notype_nested_function, if_prefix, lineno_stmt,
16990 lineno_label, label): Adjust.
16991
169922003-06-28 Jakub Jelinek <jakub@redhat.com>
16993
16994 * builtins.c (c_strlen): Add only_value argument.
16995 Handle COND_EXPR and COMPOUND_EXPR.
16996 (expand_builtin_strlen): Optimize also strlen (i++ ? "foo" : "bar").
16997 Adjust c_strlen callers.
16998 (expand_builtin_strcpy, expand_builtin_strncpy,
16999 expand_builtin_strcmp, expand_builtin_strncmp,
17000 expand_builtin_fputs, expand_builtin_sprintf,
17001 fold_builtin): Adjust c_strlen callers.
17002
170032003-06-28 Josef Zlomek <zlomekj@suse.cz>
17004
17005 * bb-reorder.c (find_traces_1_round): Do not send basic block
17006 to next round when we are in the last round.
17007
170082003-06-28 Neil Booth <neil@daikokuya.co.uk>
17009
17010 * Makefile.in: Update.
17011 * opts.c: Include tm_p.h.
17012 (handle_options): Make static.
17013 (decode_options): Copied from toplev.c.
17014 * opts.h (decode_options): New.
17015 * toplev.c (parse_options_and_default_flags): Move most to opts.c,
17016 some to...
17017 (general_init): ...here.
17018 (toplev_main): Use decode_options instead.
17019 * toplev.h (save_argc, save_argv): New.
17020
170212003-06-28 Kazu Hirata <kazu@cs.umass.edu>
17022
17023 * explow.c (find_next_ref): Remove.
17024 * rtl.h: Remove the prototype for find_next_ref.
17025
170262003-06-27 Roger Sayle <roger@eyesopen.com>
17027
17028 * config/alpha/alpha.md (anonymous define_split): Adjust emit_note
17029 call to match recent API change.
17030
170312003-06-27 Zack Weinberg <zack@codesourcery.com>
17032
17033 * dbxout.c (flag_debug_only_used_symbols): Delete redundant
17034 declaration.
17035
17036 * c-format.c (check_format_string, get_constant)
17037 * cfgrtl.c (rtl_split_edge):
17038 Mark the definition static, matching the forward declaration.
17039
170402003-06-27 Gunther Nikl <gni@gecko.de>
17041
17042 * unwind-c.c (PERSONALITY_FUNCTION): Delete duplicate define.
17043
17044 PR target/11014
17045 * config/m68k/m68k.c (m68k_output_mi_thunk): Use correct assembly
17046 syntax for MIT / MOTOROLA.
17047
17048 PR other/10240
17049 * configure.in: Removed $(XCFLAGS) from BUILD_CFLAGS for build != host.
17050 * configure: Rebuilt.
17051
170522003-06-27 Chris Demetriou <cgd@broadcom.com>
17053
17054 * config/mips/mips.c (mips_build_va_list): Make padding in
17055 va_list structure explicit to avoid -Wpadded warnings.
17056
170572003-06-27 Ulrich Weigand <uweigand@de.ibm.com>
17058
17059 * config/s390/s390.h (SECONDARY_OUTPUT_RELOAD_CLASS): Define.
17060 * config/s390/s390.c (s390_secondary_output_reload_class): New function.
17061 * config/s390/s390-protos.h (s390_secondary_output_reload_class):
17062 Declare it.
17063 * config/s390/s390.md ("reload_outti", "reload_outdi",
17064 "reload_outdf"): New expanders.
17065
17066 * config/s390/s390.md ("movti" + splitters): Handle non-offsettable
17067 memory operands as source.
17068 ("movdi" + splitters): Likewise.
17069 ("movdf" + splitters): Likewise.
17070 * config/s390/s390.c (s390_split_ok_p): New function.
17071 * config/s390/s390-protos.h (s390_split_ok_p): Declare it.
17072
170732003-06-27 Kazu Hirata <kazu@cs.umass.edu>
17074
17075 * combine.c (force_to_mode): Replace the equality comparison
17076 of INTVALs with a pointer equality comparison.
17077 (simplify_comparison): Likewise.
17078
170792003-06-27 Kazu Hirata <kazu@cs.umass.edu>
17080
17081 * jump.c (rtx_renumbered_equal_p): Replace an expression that
17082 is known to be 0 with 0.
17083
170842003-06-27 Kazu Hirata <kazu@cs.umass.edu>
17085
17086 * gcse.c (expr_equiv_p): Replace expressions that are known to
17087 be 0 with 0.
17088
170892003-06-27 Kazu Hirata <kazu@cs.umass.edu>
17090
17091 * cse.c (fold_rtx): Replace the equality comparison of INTVALs
17092 with a pointer equality comparison.
17093
170942003-06-27 Kazu Hirata <kazu@cs.umass.edu>
17095
17096 * rtlanal.c (reg_mentioned_p): Return 0 earlier if REG and IN
17097 are known to be not equivalent.
17098
170992003-06-27 Richard Henderson <rth@redhat.com>
17100
17101 * config/alpha/alpha.c (function_arg): Don't pass small aggregates
17102 in floating point registers. Validate that we don't receive complex
17103 values here. Use #elif.
17104 (return_in_memory, function_value): New.
17105 (alpha_va_arg): Handle complex values as two arguments.
17106 * config/alpha/alpha.h (RETURN_IN_MEMORY): Use return_in_memory.
17107 (FUNCTION_VALUE, LIBCALL_VALUE): Use function_value.
17108 (SPLIT_COMPLEX_ARGS): New.
17109 * config/alpha/alpha-protos.h: Update.
17110
171112003-06-27 Ulrich Weigand <uweigand@de.ibm.com>
17112
17113 * ggc-page.c (inverse_table): Change type of mult to size_t.
17114 (compute_inverse): Compute inverse using size_t, not unsigned int.
17115 Compute inverse also for sizes larger than half a machine page.
17116
17117Fri Jun 27 18:36:12 CEST 2003 Jan Hubicka <jh@suse.cz>
17118
17119 * toplev.c (rest_of_decl_compilation): Only varpoolize argument
17120 when called before cgraph_optimize.
17121
171222003-06-27 Zack Weinberg <zack@codesourcery.com>
17123
17124 * config/darwin.h, config/elfos.h, config/i960/i960-coff.h
17125 * config/m68k/coff.h: ASM_FILE_START_FILE_DIRECTIVE should
17126 be TARGET_ASM_FILE_START_FILE_DIRECTIVE.
17127
17128Fri Jun 27 17:41:16 CEST 2003 Jan Hubicka <jh@suse.cz>
17129
17130 * cgraph.c (cgraph_node, cgraph_varpool_node): Avoid re-initializing
17131 of known_decls.
17132
171332003-06-27 Hans-Peter Nilsson <hp@axis.com>
17134
17135 * defaults.h (REGISTER_MOVE_COST): Define default here.
17136 * regclass.c: Don't define default REGISTER_MOVE_COST here.
17137 * reload.c, reload1.c: Ditto.
17138
171392003-06-27 Richard Earnshaw <rearnsha@arm.com>
17140
17141 * flags.h: Really install previous change.
17142
171432003-06-27 Nathan Sidwell <nathan@codesourcery.com>
17144
17145 * rtl.h (emit_note): Remove FILE parameter.
17146 * emit-rtl.c (emit_line_note): Adjust emit_note call.
17147 (emit_note): Remove FILE parameter. Adjust.
17148 * builtins.c (expand_builtin_expect): Adjust emit_note call.
17149 * c-semantics.c (genrtl_scope_stmt): Likewise.
17150 (expand_stmt): Likewise.
17151 * cfglayout.c (reemit_insn_block_notes): Likewise.
17152 (duplicate_insn_chain): Likewise.
17153 * except.c (expand_eh_region_start, expand_eh_region_end,
17154 sjlj_emit_function_enter): Likewise.
17155 * explow.c (probe_stack_range): Likewise.
17156 * expr.c (emit_block_move_via_loop): Likewise.
17157 * function.c (init_function_start, expand_function_start,
17158 expand_function_end, thread_prologue_and_epilogue_insns): Likewise.
17159 * integrate.c (expand_inline_function, copy_insn_list): Likewise.
17160 * reg-stack.c (compensate_edge): Likewise.
17161 * reload1.c (reload): Likewise.
17162 * rtlanal.c (hoist_insn_to_edge): Likewise.
17163 * stmt.c (expand_fixup, expand_start_loop, expand_start_null_loop,
17164 expand_loop_continue_here, expand_end_loop, expand_continue_loop,
17165 expand_exit_loop_top_cond, expand_value_return,
17166 expand_start_bindings_and_block, expand_end_bindings,
17167 expand_decl_cleanup, expand_start_case): Likewise.
17168 * unroll.c (copy_loop_body
17169 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Likewise.
17170 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
17171 * config/rs6000/rs6000.c (rs6000_emit_eh_toc_restore,
17172 rs6000_emit_allocate_stack, rs6000_output_function_prologue,
17173 rs6000_output_function_epilogue, rs6000_output_mi_thunk): Likewise.
17174 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
17175 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
17176
171772003-06-27 Nathan Sidwell <nathan@codesourcery.com>
17178
17179 * c-tree.h (grokfield): Remove unused filename and line parameters.
17180 * c-decl.c (grokfield): Remove unused filename and line parameters.
17181 * c-parse.in (component_decl): Adjust field grokking rules, adjust
17182 grokfield calls.
17183 (component_declarator): Likewise.
17184 (component_notype_declarator): Likewise.
17185 * objc/objc-act.c (build_module_descriptor): Adjust grokfield
17186 calls.
17187 (build_protocol_template, build_method_prototype_list_template,
17188 build_method_prototype_template, build_category_template,
17189 build_selector_template, build_class_template,
17190 build_super_template, build_ivar_template,
17191 build_ivar_list_template, build_method_list_template,
17192 build_method_template, add_instance_variable): Likewise.
17193
171942003-06-27 Kazu Hirata <kazu@cs.umass.edu>
17195
17196 * stmt.c (do_jump_if_equal): Return 0 earlier if OP1 and
17197 OP2 are known to be not equivalent.
17198
171992003-06-26 Devang Patel <dpatel@apple.com>
17200
17201 * final.c (debug_flush_symbol_queue): New function.
17202 (debug_queue_symbol): New function.
17203 (debug_free_queue): New function.
17204 (debug_nesting): New variable.
17205 (symbol_queue): New variable.
17206 (symbol_queue_index): Same.
17207 (symbol_queue_size): Same.
17208 * debug.h (debug_flush_symbol_queue): New.
17209 (debug_queue_symbol): New.
17210 (debug_free_queue): New.
17211 (debug_nesting): New.
17212 (symbol_queue_index): New.
17213 * dbxout.c (DBXOUT_DECR_NESTING): New macro.
17214 (DBXOUT_DECR_NESTING_AND_RETURN): New macro.
17215 (dbxout_init): Delay symbol output.
17216 (dbxout_global_decl): Save, set and reset TREE_USED bit around
17217 dbxout_symbol() call.
17218 (dbxout_begin_function): Same.
17219 (dbxout_finish): Free symbol queue.
17220 (dbxout_type): Put appropriate symbols in queue.
17221 (dbxout_symbol): Put info for symbol's type in queue.
17222 Decrement/Increment nesting counts flush symbol queue appropriately.
17223 (dbxout_parms): Increment dbxout nesting.
17224 (dbxout_reg_parms): Same.
17225 * flags.h (flag_debug_only_used_symbols): New.
17226 * toplev.c (flag_debug_only_used_symbols): New variable.
17227 (lang_independent_options): Add entries for new option
17228 -feliminate-unused-debug-symbols.
17229 * common.opt: Add entry for -feliminate-unused-debug-symbols.
17230 * opts.c (common_handle_options): Same.
17231 * config/rs6000/darwin.h (CC1_SPEC): Interpret -gused as
17232 -feliminate-unused-debug-symbols.
17233 * doc/invoke.texi (Debugging Options): Document
17234 -feliminate-unused-debug-symbols.
17235
172362003-06-26 Roger Sayle <roger@eyesopen.com>
17237 Jakub Jelinek <jakub@redhat.com>
17238
17239 * builtins.c (expand_builtin_sprintf): Use c_getstr and strlen to
17240 obtain the format string instead of using TREE_STRING_POINTER and
17241 TREE_STRING_LENGTH. Only optimize sprintf(dst,"%s",src) when the
17242 return value is unused or the length of src is a known constant.
17243
172442003-06-26 Richard Henderson <rth@redhat.com>
17245
17246 * config/ia64/ia64.h (REGISTER_NAMES): R0 is really AP.
17247
172482003-06-26 Richard Henderson <rth@redhat.com>
17249
17250 * config/ia64/ia64.c (ia64_expand_call): Don't add ar.pfs for sibcalls.
17251 (ia64_split_call): Only load descriptor for GP register inputs.
17252 (ia64_expand_epilogue): Check current_frame_info.mask not
17253 current_function_is_leaf to restore ar.pfs.
17254
172552003-06-26 Richard Henderson <rth@redhat.com>
17256
17257 * emit-rtl.c (try_split): Append to new CALL_INSN_FUNCTION_USAGE
17258 instead of replacing it.
17259
172602003-06-26 Richard Henderson <rth@redhat.com>
17261
17262 * flow.c (propagate_one_insn): Kill function return value
17263 registers across tail calls.
17264
17265 * flow.c (propagate_one_insn): Preserve live-at-end registers
17266 across tail calls.
17267
172682003-06-26 J"orn Rennecke <joern.rennecke@superh.com>
17269
17270 * reload.c (can_reload_into): New function.
17271 (push_reload): Use it.
17272
172732003-06-26 Kazu Hirata <kazu@cs.umass.edu>
17274
17275 * config/h8300/h8300.c (compute_a_rotate_length): Fix the
17276 references to the amount of a rotation.
17277
172782003-06-26 Nathanael Nerode <neroden@gcc.gnu.org>
17279
17280 * config/sh/coff.h: Don't include dbxcoff.h.
17281 * config.gcc: List it here.
17282
172832003-06-26 Kazu Hirata <kazu@cs.umass.edu>
17284
17285 * postreload.c (reload_cse_simplify_set): Call cselib_lookup
17286 earlier. Don't check if SRC is a constant.
17287
172882003-06-26 Kazu Hirata <kazu@cs.umass.edu>
17289
17290 * Makefile.in (OBJS): Add postreload.o.
17291 Remove cselib.h from the dependency list for reload1.o.
17292 Add a dependency list for postreload.o.
17293 * reload.h: Change the comment for the prototype of
17294 reload_cse_regs.
17295 * reload1.c: Don't include cselib.h.
17296 (reload_cse_regs): Move to postreload.c
17297 (reload_cse_regs_1): Likewise.
17298 (reload_cse_noop_set_p): Likewise.
17299 (reload_cse_simplify_set): Likewise.
17300 (reload_cse_simplify_operands): Likewise.
17301 (RELOAD_COMBINE_MAX_USES): Likewise.
17302 (reload_combine_ruid): Likewise.
17303 (LABEL_LIVE): Likewise.
17304 (reload_combine): Likewise.
17305 (reload_combine_note_use): Likewise.
17306 (reload_combine_note_store): Likewise.
17307 (reg_set_luid): Likewise.
17308 (reg_offset): Likewise.
17309 (reg_base_reg): Likewise.
17310 (reg_mode): Likewise.
17311 (move2add_luid): Likewise.
17312 (move2add_last_label_luid): Likewise.
17313 (MODES_OK_FOR_MOVE2ADD): Likewise.
17314 (reload_cse_move2add): Likewise.
17315 (move2add_note_store): Likewise.
17316 (reload_cse_simplify): Likewise.
17317 * postreload.c: New.
17318
173192003-06-26 Kazu Hirata <kazu@cs.umass.edu>
17320
17321 * config/avr/avr.c (final_prescan_insn): Remove support for
17322 -mrtl.
17323 * config/avr/avr.h (MASK_RTL_DUMP): Remove.
17324 (TARGET_RTL_DUMP): Likewise.
17325 (TARGET_SWITCHES): Remove -mrtl.
17326
173272003-06-26 Kazu Hirata <kazu@cs.umass.edu>
17328
17329 * config/h8300/h8300-protos.h: Change emit_a_rotate to
17330 output_a_rotate. Add a prototype for compute_a_rotate_length.
17331 * config/h8300/h8300.c (emit_a_rotate): Change to
17332 output_a_rotate.
17333 (compute_a_rotate_length): New.
17334 (h8300_adjust_insn_length): Remove.
17335 * config/h8300/h8300.h (ADJUST_INSN_LENGTH): Remove.
17336 * config/h8300/h8300.md (adjust_length): Remove.
17337 (*rotlqi3_1): Use output_a_rotate and compute_a_rotate_length.
17338 (*rotlhi3_1): Likewise.
17339 (*rotlsi3_1): Likewise.
17340
173412003-06-26 Roger Sayle <roger@eyesopen.com>
17342 Richard Henderson <rth@redhat.com>
17343
17344 * builtins.c (expand_builtin_mathfn): Always stabilize the argument
17345 list against re-evaluation. If expand_unop fails, call expand_call
17346 with the stabilized argument list rather than return NULL_RTX.
17347 (expand_builtin_mathfn2): Likewise, always stabilize the argument
17348 list, and call expand_call ourselves if expand_binop fails.
17349
173502003-06-26 Eric Botcazou <ebotcazou@libertysurf.fr>
17351
17352 PR optimization/11210
17353 * fold-const (decode_field_reference): Strip only NOPs that
17354 don't affect the sign.
17355
173562003-06-26 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
17357
17358 * gcc/config/sh/sh.md (push_fpscr): Enable for TARGET_SH2E.
17359 (pop_fpscr, fpu_switch): Likewise.
17360
173612003-06-26 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
17362
17363 * value-prof.c: New.
17364 * value-prof.h: New.
17365 * Makefile.in (value-prof.o): New.
17366 (LIBGCOV): Add _gcov_merge_single and _gcov_merge_delta
17367 (profile.o): Add value-prof.h and tree.h dependency.
17368 * flags.h (flag_profile_values): Declare.
17369 * gcov-io.h (GCOV_COUNTERS, GCOV_COUNTER_NAMES, GCOV_MERGE_FUNCTIONS):
17370 Add new counters.
17371 (GCOV_COUNTER_V_INTERVAL, GCOV_COUNTER_V_POW2, GCOV_COUNTER_V_SINGLE,
17372 GCOV_COUNTER_V_DELTA): New counter sections.
17373 (__gcov_merge_single, __gcov_merge_delta): Declare.
17374 * flow.c (mark_used_regs): Set subregs_of_mode only when the
17375 structure is initialized.
17376 * libgcov.c (__gcov_merge_single, __gcov_merge_delta): New functions.
17377 * profile.c: Include value-prof.h and tree.h.
17378 (gen_interval_profiler, gen_pow2_profiler, gen_one_value_profiler,
17379 gen_const_delta_profiler, instrument_values): New static functions.
17380 (get_exec_counts): Fix comment.
17381 (branch_prob): Invoke instrument_values.
17382 * toplev.c (flag_profile_values): New flag.
17383 * doc/invoke.texi (-fprofile-values): Document.
17384
173852003-06-26 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
17386
17387 * Makefile.in (cfgrtl.o): Add expr.h dependency.
17388 * cfgrtl.c: Include expr.h.
17389 (mark_killed_regs, safe_insert_insn_on_edge): New
17390 functions.
17391 * config/i386/i386.h (AVOID_CCMODE_COPIES): Define.
17392 * basic-block.h (safe_insert_insn_on_edge): Declare.
17393
173942003-06-26 Neil Booth <neil@daikokuya.co.uk>
17395
17396 * c-opts.c (missing_arg): Make non-static.
17397 (c_common_handle_option): Don't check for missing arguments.
17398 * opts.c (handle_option): Check for missing arguments.
17399
174002003-06-26 David Edelsohn <edelsohn@gnu.org>
17401
17402 * config/rs6000/power4.md (power4-veccomplex): Correct latency.
17403
174042003-06-25 Loren James Rittle <ljrittle@acm.org>
17405
17406 * configure.in (ld_vers): Portability [sed].
17407 * configure: Regenerate with autoconf213.
17408
174092003-06-25 H.J. Lu <hongjiu.lu@intel.com>
17410
17411 * doc/extend.texi: Document new builtin functions for Intel
17412 Prescott New Intrunctions.
17413
17414 * doc/invoke.texi: Document new command-line options, -mpni and
17415 -mno-pni, for Intel Prescott New Intrunctions.
17416
17417 * config.gcc (extra_headers): Add pmmintrin.h for i[34567]86-*-*.
17418
17419 * config/i386/i386.c (override_options): Turn on MASK_SSE2
17420 for -mpni. Turn on MASK_SSE for -msse2.
17421 (bdesc_2arg): Add PNI builtins with 2 args.
17422 (bdesc_1arg): Add PNI builtins with 1 arg.
17423 (ix86_init_mmx_sse_builtins): Handle PNI builtins.
17424 (ix86_expand_builtin): Likewise.
17425
17426 * config/i386/i386.h (MASK_3DNOW, MASK_3DNOW_A,
17427 MASK_128BIT_LONG_DOUBLE, MASK_64BIT, MASK_MS_BITFIELD_LAYOUT,
17428 MASK_TLS_DIRECT_SEG_REFS): Renumbered.
17429 (TARGET_PNI): New.
17430 (TARGET_SWITCHES): Don't enable MASK_SSE for -msse2 here. Add
17431 -mpni and -mno-pni.
17432 (TARGET_CPU_CPP_BUILTINS): Defined __PNI__ for PNI.
17433 (ix86_builtins): Add PNI builtins.
17434 (config/i386/i386.md): Add PNI patterns.
17435
17436 * config/i386/pmmintrin.h: New file.
17437
174382003-06-25 Kazu Hirata <kazu@cs.umass.edu>
17439
17440 * config/h8300/h8300.md (call): Fix the insn lengths.
17441 (call_value): Likewise.
17442
17443Thu Jun 26 00:13:35 CEST 2003 Jan Hubicka <jh@suse.cz>
17444
17445 * c-common.c (handle_used_attribute): Use mark_referenced.
17446 * varasm.c (mark_referenced): Break out from ...
17447 (assemble_name): ... here.
17448 * tree.h (mark_referenced): Declare.
17449
174502003-06-25 Wolfgang Bangerth <bangerth@dealii.org>
17451
17452 * gccbug.in: Add PCH to list of categories.
17453
174542003-06-25 Martin Schaffner <schaffner@gmx.li>
17455
17456 * cppfiles.c: Clarify comments.
17457 * cpphash.h: Likewise.
17458 * cpplib.h: Likewise.
17459 * cppmacro.c: Likewise.
17460 * mkdeps.h: Likewise.
17461
174622003-06-25 Neil Booth <neil@daikokuya.co.uk>
17463
17464 * c-opts.c (complain_wrong_lang, write_langs): Remove.
17465 (c_common_handle_option): Complaints about wrong language are
17466 handled in opts.c now.
17467 * opts.c (complain_wrong_lang, write_langs, handle_options): New.
17468 (find_opt): Fix thinko.
17469 (handle_option): Update prototype. Complain about switches for
17470 a different front end.
17471 * opts.h (lang_names, handle_options): New.
17472 (handle_option): Remove.
17473 * opts.sh: Write out language names array.
17474 * toplev.c (parse_options_and_default_flags): Use handle_options.
17475
174762003-06-25 H.J. Lu <hongjiu.lu@intel.com>
17477
17478 * config/i386/i386.c (MASK_SSE1): Removed.
17479 (MASK_SSE164): Removed.
17480 (MASK_SSE264): Removed.
17481 (bdesc_2arg): Replace MASK_SSE1 with MASK_SSE. Replace
17482 MASK_SSE164 with MASK_SSE | MASK_64BIT. Replace MASK_SSE264
17483 with MASK_SSE2 | MASK_64BIT.
17484 (bdesc_1arg): Likewise.
17485 (ix86_init_mmx_sse_builtins): Likewise.
17486
17487 * config/i386/i386.h (TARGET_SSE): Remove MASK_SSE2.
17488 (TARGET_SWITCHES): Enable both MASK_SSE and MASK_SSE2 for
17489 -msse2.
17490
174912003-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17492
17493 * hwint.h (HOST_WIDE_INT_PRINT, HOST_WIDE_INT_PRINT_C): New macros.
17494 (HOST_WIDE_INT_PRINT_DEC_SPACE,
17495 HOST_WIDE_INT_PRINT_UNSIGNED_SPACE,
17496 HOST_WIDEST_INT_PRINT_DEC_SPACE,
17497 HOST_WIDEST_INT_PRINT_UNSIGNED_SPACE): Delete.
17498 (HOST_WIDE_INT_PRINT_DEC, HOST_WIDE_INT_PRINT_DEC_C,
17499 HOST_WIDE_INT_PRINT_UNSIGNED, HOST_WIDE_INT_PRINT_HEX): Define in
17500 terms of HOST_WIDE_INT_PRINT and possibly HOST_WIDE_INT_PRINT_C.
17501
17502 * final.c (asm_fprintf): Use HOST_WIDE_INT_PRINT.
17503 * ra-debug.c (dump_static_insn_cost): Likewise.
17504
175052003-06-26 Nick Clifton <nickc@redhat.com>
17506
17507 * config/arm/arm.h (BIGGEST_FIELD_ALIGNMENT): Define instead
17508 of ADJUST_FIELD_ALIGN if IN_TARGET_LIBS.
17509 Replace occurances of '???' with 'XXX' incase they are
17510 mistaken for trigraphs.
17511 (THUMB_PRINT_OPERAND_ADDRESS): abort if a compound address
17512 does not have a register for the first operand.
17513
175142003-06-25 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
17515
17516 * config/sh/sh.c (sh_register_move_cost):
17517 Add case for moving between MAC_REGS.
17518
175192003-06-25 Zack Weinberg <zack@codesourcery.com>
17520
17521 PR 10178
17522 * langhooks.h (struct lang_hooks): Add no_body_blocks bool.
17523 * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): New; default false.
17524 * c-lang.c, objc/objc-lang.c: Override LANG_HOOKS_NO_BODY_BLOCKS
17525 to true.
17526 * stmt.c (is_body_block): If lang_hooks.no_body_blocks, always
17527 return 0.
17528
175292003-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17530
17531 * Makefile.in (bt-load.o): Depend on $(TM_P_H).
17532 * bt-load.c: Include "tm_p.h".
17533
175342003-06-25 Kazu Hirata <kazu@cs.umass.edu>
17535
17536 * config/h8300/h8300.c (compute_mov_length): Adjust for the
17537 new optimization.
17538 * config/h8300/h8300.md (*movsi_h8300): Optimize the load of
17539 an SImode constant whose upper and lower are the same.
17540
17541Wed Jun 25 11:31:59 CEST 2003 Jan Hubicka <jh@suse.cz>
17542
17543 * varasm.c (assemble_name): Mark needed variables even when
17544 global info is ready.
17545
175462003-06-24 Jerry Quinn <jlquinn@optonline.net>
17547
17548 PR other/11280
17549 * gcc/doc/invoke.texi (Optimization Options): Remove -Os from
17550 -freorder-functions description.
17551
175522003-06-25 Josef Zlomek <zlomekj@suse.cz>
17553
17554 * dwarf2out.c (gen_field_die): Return if type of decl is error mark.
17555
175562003-06-25 Neil Booth <neil@daikokuya.co.uk>
17557
17558 * opts.c (common_handle_option): Add missing break;s.
17559
175602003-06-24 Kazu Hirata <kazu@cs.umass.edu>
17561
17562 * config/h8300/h8300-protos.h: Add a prototype for
17563 compute_mov_length.
17564 * config/h8300/h8300.c (compute_mov_length): New.
17565 * config/h8300/h8300.md (*movqi_h8300): Use it.
17566 (*movqi_h8300hs): Likewise.
17567 (movstrictqi): Likewise.
17568 (*movhi_h8300): Likewise.
17569 (*movhi_h8300hs): Likewise.
17570 (movstricthi): Likewise.
17571 (*movsi_h8300): Likewise.
17572 (*movsf_h8300): Likewise.
17573 (*movsi_h8300hs): Likewise.
17574 (*movsf_h8300hs): Likewise.
17575
175762003-06-24 Kazu Hirata <kazu@cs.umass.edu>
17577
17578 * jump.c (next_nondeleted_insn): Remove.
17579 * rtl.h: Remove the prototype for next_nondeleted_insn.
17580
175812003-06-24 Roger Sayle <roger@eyesopen.com>
17582
17583 PR optimization/11311
17584 * builtins.c (powi_cost): Fix typo. The number of multiplications
17585 required is the number to reduce the argument, result, plus the
17586 cost of calculating the residual, val [not n, the original value].
17587
175882003-06-24 Roger Sayle <roger@eyesopen.com>
17589
17590 * config/alpha/osf5.h (TARGET_C99_FUNCTIONS): Define.
17591
175922003-06-24 Richard Henderson <rth@redhat.com>
17593 (blame to: Loren James Rittle <ljrittle@acm.org>)
17594
17595 * real.h (ieee_extended_intel_96_round_53_format): New.
17596 * real.c (ieee_extended_intel_96_round_53_format): New.
17597 * config/i386/freebsd.h (SUBTARGET_OVERRIDE_OPTIONS): Use it
17598 for XFmode and TFmode.
17599
176002003-06-24 Kazu Hirata <kazu@cs.umass.edu>
17601
17602 * config/h8300/h8300.md (4 anonymous patterns): Give internal
17603 names.
17604 (movsi_h8300): Change the name to *movsi_h8300.
17605 (movsi_h8300hs): Change the name to *movsi_h8300hs.
17606 (movsf_h8300): Change the name to *movsf_h8300.
17607 (movsf_h8300hs): Change the name to *movsf_h8300hs.
17608
176092003-06-24 Jakub Jelinek <jakub@redhat.com>
17610
17611 * builtins.c (expand_builtin_strcpy): Don't evaluate side-effects in
17612 src twice.
17613
176142003-06-24 J"orn Rennecke <joern.rennecke@superh.com>
17615
17616 Back out these patches:
17617 2003-06-02 J"orn Rennecke <joern.rennecke@superh.com>
17618 * sh.h (OLD_ARG_MODE): New macro.
17619 (FUNCTION_ARG_ADVANCE, FUNCTION_ARG_PASS_BY_REFERENCE): Use it.
17620 (FUNCTION_ARG_1): Break out of:
17621 (FUNCTION_ARG). Use OLD_ARG_MODE.
17622 2003-06-06 J"orn Rennecke <joern.rennecke@superh.com>
17623 * sh.h (FUNCTION_ARG_1): Consistently use NEW_MODE for the mode
17624 of the generated register.
17625
17626 * sh.h (FUNCTION_ARG_SCmode_WART): Define.
17627 (FUNCTION_ARG): Unless FUNCTION_ARG_SCmode_WART is defined and
17628 an even number of floating point regs are in use, use the same
17629 sequence of argument passing registers for SCmode as would be
17630 used for two SFmode values.
17631 * sh.c (sh_va_arg): If FUNCTION_ARG_SCmode_WART is defined,
17632 swap real / imaginary parts in incoming SCmode values passed
17633 in registers.
17634
176352003-06-24 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
17636
17637 PR target/11260
17638 * config/alpha/alpha.md (sqrtdf2): Fix operand substitution.
17639
17640Tue Jun 24 18:49:33 CEST 2003 Jan Hubicka <jh@suse.cz>
17641
17642 * Makefile.in (cgraph.o): Depend on output.h, not depend on
17643 tree-inline.h
17644 * cgraph.c: Do not include tree-inline.h; include output.h
17645 (known_fns): Rename to ...
17646 (known_decls): ... this one; update all uses.
17647 (cgraph_varpool_hash): New static variable.
17648 (cgraph_varpool_n_nodes, cgraph_varpool_nodes_queue): New global
17649 variables.
17650 (cgraph_varpool_hash_node, eq_cgraph_varpool_node, cgraph_varpool_node,
17651 cgraph_varpool_node_for_identifier, cgraph_varpool_mark_needed_node,
17652 cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
17653 New functions.
17654 * cgraph.h (cgraph_varpool_node): New structure.
17655 (cgraph_varpool_n_nodes, cgraph_varpool_nodes_queue): Declare.
17656 (cgraph_varpool_node, cgraph_varpool_node_for_identifier,
17657 cgraph_varpool_finalize_decl, cgraph_varpool_mark_needed_node,
17658 cgraph_varpool_asemble_pending_decls): Declare.
17659 * cgraphunit.c (record_call_1): Notice variable references.
17660 (cgraph_finalize_compilation_unit): Assemble pending variables.
17661 * toplev.c (wrapup_global_declarations): Use varpool.
17662 (compile_file): Assemble pending declarations.
17663 (rest_of_decl_compilation): Use varpool in unit-at-a-time mode.
17664 * varasm.c (assemble_name): Notice varpool references.
17665
17666Tue Jun 24 13:52:11 CEST 2003 Jan Hubicka <jh@suse.cz>
17667
17668 * langhooks-def.h (LANG_HOOKS_PREPARE_ASSEMBLE_VARIABLE): New macro.
17669 * langhooks.h (lang_hooks_for_decls): Add prepare_assemble_variable.
17670 * varasm.c (assemble_variable): Call prepare_assemble_variable.
17671
176722003-06-23 Roger Sayle <roger@eyesopen.com>
17673
17674 * builtins.c (expand_builtin): Use expand_builtin_pow to expand
17675 calls for pow, powf, powl and their __builtin_ variants.
17676 (expand_builtin_pow): If the second argument is a constant
17677 integer and compiling with -ffast-math, use expand_powi to
17678 generate RTL if powi_cost is less than POWI_MAX_MULTS.
17679 (powi_cost): New function to return the number of multiplications
17680 necessary to evaluate an Nth power, for integer constant N.
17681 (expand_powi): New function to expand the RTL for evaluating
17682 the Nth power of a floating point value, for integer constant N.
17683
17684 * doc/tm.texi (POWI_MAX_MULTS): Document new target macro.
17685
17686Mon Jun 23 23:07:35 CEST 2003 Jan Hubicka <jh@suse.cz>
17687
17688 * cgraph.c (cgraph_nodes_queue): Declare.
17689 (eq_node): Take identifier as p2.
17690 (cgraph_node): Update htab_find_slot_with_hash call.
17691 (cgraph_node_for_identifier): New.
17692 (cgraph_mark_needed_node): Move here from cgraphunit.c.
17693 * cgraph.h (cgraph_nodes_queue): Declare.
17694 (cgraph_node_for_identifier): Declare.
17695 * cgraphunit.c (cgraph_finalize_function): Collect entry points here
17696 instead of in cgraph_finalize_compilation_unit; constructors and
17697 destructors are entry points.
17698 (cgraph_finalize_compilation_unit): Reorganize debug outout;
17699 examine nested functions after lowerng; call collect_functions hook.
17700 (cgraph_mark_local_functions): DECL_COMDAT functions are not local.
17701 (cgraph_finalize_compilation_unit): Do not collect entry points.
17702 * varasm.c: Include cgraph.h
17703 (assemble_name): Mark referenced identifier as needed.
17704
17705 * cgraphunit.c (record_call_1): Use get_callee_fndecl.
17706
177072003-06-23 Jakub Jelinek <jakub@redhat.com>
17708
17709 * config/i386/i386.c (x86_output_mi_thunk): Don't pass MEM to %P0,
17710 just SYMBOL_REF.
17711 * config/s390/s390.c (s390_output_mi_thunk): Avoid .plt in -m31
17712 mode, as it requires pic register loaded.
17713
17714 * varasm.c (resolve_unique_section): Remove prototype. No longer
17715 static.
17716 * tree.h (resolve_unique_section): New prototype.
17717
177182003-06-23 Andreas Schwab <schwab@suse.de>
17719
17720 PR debug/9905
17721 * dwarf2out.c (loc_descriptor_from_tree): Handle MODIFY_EXPR by
17722 recursing through first argument.
17723
177242003-06-23 Kazu Hirata <kazu@cs.umass.edu>
17725
17726 * ChangeLog.1: Fix a typo.
17727 * cfgrtl.c: Fix comment typos.
17728 * dwarf2out.c: Likewise.
17729 * expmed.c: Likewise.
17730 * genrecog.c: Likewise.
17731 * jump.c: Likewise.
17732 * rtlanal.c: Likewise.
17733 * ssa-dce.c: Likewise.
17734 * toplev.c: Likewise.
17735
177362003-06-23 Kazu Hirata <kazu@cs.umass.edu>
17737
17738 * doc/extend.texi: Fix typos.
17739 * doc/md.texi: Likewise.
17740 * doc/tm.texi: Likewise.
17741
177422003-06-23 Kazu Hirata <kazu@cs.umass.edu>
17743
17744 * basic-block.h: Fix comment formatting.
17745 * bt-load.c: Likewise.
17746 * builtins.c: Likewise.
17747 * c-common.c: Likewise.
17748 * c-common.h: Likewise.
17749 * c-format.c: Likewise.
17750 * coverage.c: Likewise.
17751 * cpplib.h: Likewise.
17752 * cpppch.c: Likewise.
17753 * dbxout.c: Likewise.
17754 * diagnostic.c: Likewise.
17755 * dwarf2out.c: Likewise.
17756 * expr.c: Likewise.
17757 * fold-const.c: Likewise.
17758 * function.c: Likewise.
17759 * gcc.c: Likewise.
17760 * gcov-io.c: Likewise.
17761 * gcov-io.h: Likewise.
17762 * gcov.c: Likewise.
17763 * profile.c: Likewise.
17764 * real.h: Likewise.
17765 * sched-deps.c: Likewise.
17766
177672003-06-23 Roger Sayle <roger@eyesopen.com>
17768 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
17769
17770 * doc/contrib.texi (Contributors): Add a note on testing and
17771 remove duplicates from testers list.
17772
177732003-06-23 Nick Clifton <nickc@redhat.com>
17774
17775 * read-rtl.c (read_braced_string): Check for EOF. If
17776 encountered issue an error message.
17777
177782003-06-23 Kazu Hirata <kazu@cs.umass.edu>
17779
17780 * doc/invoke.texi: Document dump options, dT and dW.
17781
177822003-06-23 Kazu Hirata <kazu@cs.umass.edu>
17783
17784 * genrecog.c (pred_table): Remove the entry for
17785 mode_independent_operand.
17786 * recog.c (next_insns_test_no_inequality): Remove.
17787 (mode_independent_operand): Likewise.
17788 * recog.h: Remove the prototype for mode_independent_operand.
17789
177902003-06-22 Kazu Hirata <kazu@cs.umass.edu>
17791
17792 * config/h8300/h8300.c (output_simode_bld): Use rotxl.l to
17793 store into bit 0.
17794 * config/h8300/h8300.md (*extzv_1_r_h8300hs): Change cc of the
17795 second alternative to set_znv.
17796 (*extzv_1_r_inv_h8300hs): Likewise.
17797
177982003-06-23 Hans-Peter Nilsson <hp@bitrange.com>
17799
17800 * configure.in (in_tree_gas): Find out here whether GAS is ELF,
17801 set in_tree_gas_is_elf accordingly.
17802 (in_tree_ld): Find out whether LD emulation is ELF, set
17803 in_tree_ld_is_elf accordingly.
17804 (gcc_cv_as_subsections, gcc_cv_as_hidden, gcc_cv_as_leb128)
17805 (gcc_cv_as_eh_frame, gcc_cv_as_shf_merge)
17806 (gcc_cv_as_dwarf2_debug_line, gcc_cv_as_gdwarf2_flag)
17807 (gcc_cv_as_gstabs_flag): Use $in_tree_gas_is_elf instead of
17808 grepping gas/Makefile.
17809 (gcc_cv_ld_ro_rw_mix, gcc_cv_ld_eh_frame_hdr, gcc_cv_ld_pie): Use
17810 $in_tree_ld_is_elf instead of grepping ld/Makefile.
17811 * configure: Regenerate.
17812
178132003-06-22 Roger Sayle <roger@eyesopen.com>
17814
17815 * builtins.c (expand_builtin_mathfn_2): Use tree_cons to build
17816 up the stabilized argument list, not build_tree_list.
17817 (expand_builtin_strcpy): Construct new argument list manually
17818 instead of using chainon to modify the original argument list.
17819 (expand_builtin_stpcpy): Construct new argument list manually
17820 instead of using copy_list and chainon.
17821 (expand_builtin_sprintf): New function. Optimize calls to
17822 sprintf when the format is "%s" or doesn't contain a '%'.
17823 (expand_builtin): Expand BUILT_IN_SPRINTF using the new function
17824 expand_builtin_sprintf.
17825
178262003-06-22 Andreas Schwab <schwab@suse.de>
17827
17828 * function.c (set_insn_locators): Mark as unused.
17829
178302003-06-22 Neil Booth <neil@daikokuya.co.uk>
17831
17832 * common.opt: Add -finline-limit.
17833 * opts.c (common_handle_options): Handle it.
17834 * opts.sh: Temporary kludge for -finline-limit.
17835 * toplev.c (decode_f_option, independent_decode_option): Die.
17836 (parse_options_and_default_flags): No independent_decode_option.
17837
178382003-06-22 Andreas Jaeger <aj@suse.de>
17839
17840 * calls.c (emit_call_1): Readd lost ATTRIBUTE_UNUSED.
17841
178422003-06-22 Kazu Hirata <kazu@cs.umass.edu>
17843
17844 * doc/invoke.texi: Document dumps, .btl, .cfg, and .bypass.
17845
178462003-06-22 Andreas Schwab <schwab@suse.de>
17847
17848 * doc/invoke.texi: Remove leading `-' from options in index.
17849
178502003-06-22 Kazu Hirata <kazu@cs.umass.edu>
17851
17852 * bt-load.c: Follow spelling conventions.
17853
178542003-06-22 Kazu Hirata <kazu@cs.umass.edu>
17855
17856 * expr.c (emit_move_insn_1): Fix a comment typo.
17857
178582003-06-22 Kazu Hirata <kazu@cs.umass.edu>
17859
17860 * doc/invoke.texi: Alphabetize dump options.
17861
178622003-06-22 Kazu Hirata <kazu@cs.umass.edu>
17863
17864 * doc/invoke.texi: Remove a duplicate -dk.
17865
178662003-06-22 Kazu Hirata <kazu@cs.umass.edu>
17867
17868 * doc/invoke.texi: Update dump file names.
17869
178702003-06-22 Zack Weinberg <zack@codesourcery.com>
17871
17872 * config/i370/i370.c, config/i370/i370.h: Use HOST_CHARSET_ASCII
17873 and HOST_CHARSET_EBCDIC, not HC_ASCII and HC_EBCDIC.
17874
178752003-06-22 Kazu Hirata <kazu@cs.umass.edu>
17876
17877 * doc/rtl.texi: Fix the @findex for pre_modify.
17878
178792003-06-22 Andreas Jaeger <aj@suse.de>
17880
17881 * caller-save.c: Convert to ISO C90.
17882 * calls.c: Likewise.
17883 * cfg.c: Likewise.
17884 * cfganal.c: Likewise.
17885 * cfgbuild.c: Likewise.
17886 * cfgcleanup.c: Likewise.
17887 * cfghooks.c: Likewise.
17888 * cfglayout.c: Likewise.
17889 * cfglayout.h: Likewise.
17890 * cfgloop.c: Likewise.
17891 * cfgloop.h: Likewise.
17892 * cfgloopanal.c: Likewise.
17893 * cfgloopmainip.c: Likewise.
17894 * cfgrtl.c: Likewise.
17895
178962003-06-22 Richard Earnshaw <rearnsha@arm.com>
17897
17898 * arm.h (BIGGEST_ALIGNMENT): Use TARGET_REALLY_IWMMXT for selecting
17899 64-bit alignment.
17900
179012003-06-22 Richard Earnshaw <rearnsha@arm.com>
17902
17903 * arm.md (all call_value patterns): Remove register constraints on
17904 value operand.
17905
179062003-06-22 Neil Booth <neil@daikokuya.co.uk>
17907
17908 * common.opt: More -f switches.
17909 * opts.c (common_handle_options): Handle them.
17910 * toplev.c (time_report): Make extern.
17911 (f_options): USe flag_dummy.
17912 (decode_f_option): No need to use f_options now.
17913 * toplev.h (flag_cprop_registers, flag_ssa, flag_ssa_ccp,
17914 flag_ssa_dce, time_report, flag_new_regalloc): Make extern.
17915
179162003-06-22 Andreas Jaeger <aj@suse.de>
17917
17918 * c-lex.c: Convert to ISO C90.
17919 * c-objc-common.c: Likewise.
17920 * c-opts.c: Likewise.
17921 * c-pch.c: Likewise.
17922 * c-ppoutput.c: Likewise.
17923 * c-pragma.h: Likewise.
17924 * c-pretty-print.c: Likewise.
17925 * c-pretty-print.h: Likewise.
17926 * c-semantics.c: Likewise.
17927 * c-tree.h: Likewise.
17928 * c-typeck.c: Likewise.
17929
17930 * c-lang.c: Convert to ISO C90.
17931
179322003-06-22 Neil Booth <neil@daikokuya.co.uk>
17933
17934 * opts.c (find_opt): Fix to always guarantee a find of a
17935 switch with joined parameter.
17936 * opts.h (struct cl_option): New member back_chain.
17937 * opts.sh: Update to calculate and add back_chain member.
17938
179392003-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
17940
17941 * diagnostic.h (output_host_wide_integer): Declare.
17942 * diagnostic.c (output_long_long_decicaml): New function.
17943 (output_host_wide_integer): Likewise.
17944 (output_format): Use them. Handle "%ll" and "%w".
17945
179462003-06-21 Jason Thorpe <thorpej@wasabisystems.com>
17947
17948 * config.gcc (*-*-netbsd*): Add t-libgcc-pic to tmake_file.
17949
179502003-06-21 Zack Weinberg <zack@codesourcery.com>
17951
17952 * aclocal.m4 (gcc_AC_C_CHARSET): Delete.
17953 * configure.in: Don't use gcc_AC_C_CHARSET.
17954 * configure, config.in: Regenerate.
17955 * config/i370/i370.c, config/i370/i370.h: Use
17956 (HOST_CHARSET == HC_EBCDIC) or (HOST_CHARSET == HC_ASCII)
17957 instead of HOST_EBCDIC or !HOST_EBCDIC. Clarify comments a tad.
17958
179592003-06-21 Neil Booth <neil@daikokuya.co.uk>
17960
17961 * Makefile.in: Update.
17962 * common.opt: New switches.
17963 * opts.c: Include diagnostic.h.
17964 (common_handle_option): Handle new switches.
17965 * toplev.c (flag_loop_optimize, flag_crossjumping, flag_if_conversion,
17966 flag_if_conversion2, flag_delete_null_pointer_checks,
17967 flag_rerun_cse_after_loop): Make extern.
17968 (flag_dummy): New.
17969 (f_options): Update to use flag_dummy for moved options.
17970 (decode_f_option): Some switches moved to opts.c.
17971 * toplev.h (flag_loop_optimize, flag_crossjumping, flag_if_conversion,
17972 flag_if_conversion2, flag_delete_null_pointer_checks,
17973 flag_rerun_cse_after_loop, flag_keep_static_consts, flag_peel_loops,
17974 flag_tracer, flag_thread_jumps, flag_unroll_loops,
17975 flag_unroll_all_loops, flag_unswitch_loops): New.
17976
17977Sat Jun 21 13:41:00 CEST 2003 Jan Hubicka <jh@suse.cz>
17978
17979 * i386.c (ix86_va_arg): Fix allocation of temporary slot.
17980
179812003-06-20 Kazu Hirata <kazu@cs.umass.edu>
17982
17983 * config/h8300/h8300-protos.h: Add a prototype for
17984 same_cmp_preceding_p.
17985 * config/h8300/h8300.c (same_cmp_preceding): New.
17986 * config/h8300/h8300.md: Extend peephole2's that transform
17987 compare:SI into shorter sequences so that they can deal with
17988 signed comparisons.
17989
179902003-06-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
17991
17992 * doc/contrib.texi (Contributors): Use Windows instead of Win32.
17993
17994 Update Andreas Jaeger's entry.
17995
17996 Merge the two entries of Kaveh Ghazi, David Edelsohn, and
17997 Loren J. Rittle.
17998
179992003-06-21 Nathanael Nerode <neroden@gcc.gnu.org>
18000
18001 * mkconfig.sh: Add multiple inclusion guards to generated headers.
18002
180032003-06-20 Neil Booth <neil@daikokuya.co.uk>
18004
18005 * c-decl.c (store_parm_decls): Make saved_warn_shadow boolean.
18006 * common.opt: Add remaining -W options and -g.
18007 * diagnostic.c (warnings_are_errors): Remove.
18008 * flags.h: Make most warning flags boolean.
18009 * opts.c (common_handle_option): Handle remaining -W options, and -g.
18010 Move many warning flags from toplev.c, making them boolean.
18011 * toplev.c: Remove many warning flags.
18012 (decode_W_option): Remove.
18013 (decode_g_option): Make extern. Error on unknown switch.
18014 (lang_independent_W_options): Use warn_dummy.
18015 (independent_decode_option): Just handle -f switches now.
18016 * toplev.h (decode_g_option): New.
18017
180182003-06-20 Aldy Hernandez <aldyh@redhat.com>
18019
18020 PR/11092
18021 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Adjust for
18022 vectors.
18023
180242003-06-20 Kelley Cook <kelleycook@wideopenwest.com>
18025
18026 * opts.sh: Tweak awk script for portability.
18027
180282003-06-20 Mark Mitchell <mark@codesourcery.com>
18029
18030 PR c++/10888
18031 * tree-inline.c (expand_call_inline): Do not warn about failing to
18032 inline functions declared in system headers.
18033 * doc/invoke.texi (-Winline): Expand on documentation.
18034
180352003-06-20 Richard Henderson <rth@redhat.com>
18036
18037 * config/alpha/alpha.c (alpha_file_start): Disable
18038 file_start_file_directive for ELF and not MDEBUG.
18039
180402003-06-20 J"orn Rennecke <joern.rennecke@superh.com>
18041
18042 * sh.h (ROUND_TYPE_ALIGN): Remove.
18043
180442003-06-20 Richard Henderson <rth@redhat.com>
18045
18046 * hooks.c (hook_int_void_no_regs): Rename from
18047 hook_reg_class_void_no_regs; change return type.
18048 * hooks.h: Update.
18049 * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Update.
18050 * target.h (branch_target_register_class): Change return type to int.
18051 Add documentation.
18052 * config/sh/sh.c (sh_target_reg_class): Change return type.
18053 * doc/tm.texi (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
18054
180552003-06-20 Andreas Tobler <toa@pop.agri.ch>
18056
18057 * c-format.c: Change _Bool to bool reverting part of the last
18058 patch.
18059
180602003-06-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18061
18062 * som.h (ASM_OUTPUT_SOURCE_LINE): Use targetm.strip_name_encoding to
18063 strip name encoding.
18064
180652003-06-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
18066
18067 * configure.in (gcc_cv_as_gstabs_flag): Disable if assembler warns.
18068 * configure: Regenerate.
18069 Fixes PR driver/9362.
18070
180712003-06-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18072
18073 * config/alpha/alpha.c (alpha_file_start): Fix typo.
18074
180752003-06-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
18076
18077 * config/mips/mips.h (PUT_SDB_FUNCTION_END): Pass 0 as third arg
18078 to ASM_OUTPUT_SOURCE_LINE.
18079
180802003-06-20 Daniel Egger <degger@fhm.edu>
18081 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
18082
18083 * doc/install.texi (Building): Correct and improve statement
18084 about parallel builds.
18085
180862003-06-20 Andreas Jaeger <aj@suse.de>
18087
18088 * c-common.c: Change _Bool to bool reverting part of the last
18089 patch.
18090
180912003-06-20 Nathan Sidwell <nathan@codesourcery.com>
18092
18093 * tree.h (expand_function_end): Remove all parameters.
18094 * function.c (expand_function_end): Remove all parameters.
18095 Use input_location. Never expand_end_bindings.
18096 * c-decl.c (c_expand_body_1): Adjust expand_function_end call.
18097 * coverage.c (create_coverage): Likewise.
18098
180992003-06-20 Nick Clifton <nickc@redhat.com>
18100
18101 * doc/extend.texi (ARM Built-in Functions): New node. Document
18102 ARM builtin functions for iWMMXt support.
18103
181042003-06-20 Eric Botcazou <ebotcazou@libertysurf.fr>
18105
18106 * doc/install.texi (--with-gnu-as): Mention SPARC/Solaris and
18107 SPARC64/Solaris as platforms where --with-gnu-as makes a difference.
18108 (--with-as): Add @anchor.
18109 (--with-gnu-ld): Fix typo.
18110 (--with-ld): Add @uref to --with-as.
18111
181122003-06-19 Zack Weinberg <zack@codesourcery.com>
18113
18114 * doc/tm.texi: Uniformly use @defmac for macros, rather than
18115 @table items. Minor formatting and editorial corrections.
18116
181172003-06-20 Neil Booth <neil@daikokuya.co.uk>
18118
18119 * line-map.c, line-map.h: Convert to ISO prototypes.
18120
181212003-06-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
18122
18123 * gcse.c (store_killed_in_insn): Fix.
18124
181252003-06-19 Zack Weinberg <zack@codesourcery.com>
18126
18127 * target.h (asm_out.file_start, file_start_app_off,
18128 file_start_file_directive): New hooks.
18129 * target-def.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
18130 TARGET_ASM_FILE_START_APP_OFF, TARGET_ASM_FILE_START):
18131 New hook-definition macros.
18132 * doc/tm.texi: Document new hooks; remove docs of ASM_FILE_START.
18133 * varasm.c (default_file_start): New.
18134 * output.h: Prototype it.
18135 * toplev.c (init_asm_output): Use targetm.asm_out.file_start.
18136 * system.h: Poison ASM_FILE_START.
18137
18138 * config/alpha/alpha.c (alpha_write_verstamp): Delete.
18139 (alpha_file_start): New, define if !TARGET_ABI_UNICOSMK.
18140 (unicosmk_asm_file_start): Rename unicosmk_file_start,
18141 make static, take no arguments.
18142 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_END,
18143 TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set as appropriate.
18144 * config/alpha/unicosmk.h: Don't define ASM_FILE_START nor
18145 TARGET_ASM_FILE_END. Remove reference to ASM_FILE_START in
18146 comment.
18147 * config/arc/arc.c (arc_asm_file_start): Rename
18148 arc_file_start, take no arguments, make static.
18149 (TARGET_ASM_FILE_START): Set it.
18150 * config/arm/arm.c (aof_file_start): New static function.
18151 (TARGET_ASM_FILE_START): Set it, when appropriate.
18152 * config/arm/coff.h, config/arm/elf.h:
18153 Set TARGET_ASM_FILE_START_APP_OFF to true.
18154 * config/avr/avr.c (asm_file_start): Rename avr_file_start,
18155 take no arguments, make static.
18156 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE):
18157 Set them.
18158 * config/c4x/c4x.c (c4x_file_start): New static function.
18159 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE):
18160 Set them.
18161 * config/cris/cris.c (cris_file_start): New static function.
18162 (TARGET_ASM_FILE_START): Set it.
18163 * config/dsp16xx/dsp16xx.c (coff_dsp16xx_file_start): Rename
18164 dsp16xx_file_start, make static.
18165 (luxworks_dsp16xx_file_start): Delete.
18166 (TARGET_ASM_FILE_START): Set it.
18167 * config/h8300/h8300.c (asm_file_start): Rename
18168 h8300_file_start, make static, take no arguments.
18169 (TARGET_ASM_FILE_START): Set it.
18170 * config/i370/i370.c (i370_file_start): New static function.
18171 (TARGET_ASM_FILE_START): Set it.
18172 * config/i386/i386.c (x86_file_start): New static function.
18173 (TARGET_ASM_FILE_START): Set it.
18174 * config/i386/i386.h (X86_FILE_START_VERSION_DIRECTIVE,
18175 X86_FILE_START_FLTUSED): New macros, default to false.
18176 * config/i386/i386-interix.h: Override X86_FILE_START_FLTUSED to 1.
18177 * config/i386/sysv4.h, config/i386/sco5.h: Override
18178 X86_FILE_START_VERSION_DIRECTIVE to true.
18179 * config/ia64/ia64.c (ia64_file_start): New static function.
18180 (TARGET_ASM_FILE_START): Set it.
18181 (emit_safe_across_calls): Take no arguments.
18182 * config/ia64/ia64.md: Update to match.
18183 * config/m32r/m32r.c (m32r_asm_file_start): Rename
18184 m32r_file_start, make static, take no arguments.
18185 (TARGET_ASM_FILE_START): Set it.
18186 * config/m68hc11/m68hc11.c (m68hc11_asm_file_start): Rename
18187 m68hc11_file_start, make static, take no arguments.
18188 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
18189 (print_options): Delete.
18190 * config/m68k/m68k.c (m68k_hp320_file_start): New static function.
18191 (TARGET_ASM_FILE_START_APP_OFF): Set.
18192 * config/m68k/hp320.h: Set TARGET_ASM_FILE_START to
18193 m68k_hp320_file_start.
18194 * config/mips/mips.c (iris6_asm_file_start, mips_asm_file_start):
18195 Make static, take no arguments.
18196 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
18197 * config/mmix/mmix.c (mmix_asm_file_start): Rename
18198 mmix_file_start, make static, take no arguments.
18199 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
18200 * config/mn10300/mn10300.c (asm_file_start): Rename
18201 mn10300_file_start, make static, take no arguments.
18202 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
18203 * config/ns32k/ns32k.c (TARGET_ASM_FILE_START_APP_OFF): Set.
18204 * config/pa/pa.c (pa_file_start_level, pa_file_start_space,
18205 pa_file_start_file, pa_file_start_mcount, pa_elf_file_start,
18206 pa_som_file_start, pa_linux_file_start, pa_hpux64_gas_file_start,
18207 pa_hpux64_hpas_file_start): New static functions.
18208 * config/pa/elf.h: Set TARGET_ASM_FILE_START to pa_elf_file_start.
18209 * config/pa/pa-linux.h: Set TARGET_ASM_FILE_START to
18210 pa_linux_file_start.
18211 * config/pa/pa64-hpux.h: Set TARGET_ASM_FILE_START to
18212 pa_hpux64_gas_file_start or pa_hpux64_hpas_file_start, as
18213 appropriate.
18214 * config/pa/som.h: Set TARGET_ASM_FILE_START to pa_som_file_start.
18215 * config/rs6000/rs6000.c: Include xcoffout.h when TARGET_XCOFF.
18216 (rs6000_file_start): Make static, take no arguments. Reset
18217 default_cpu under certain conditions.
18218 (rs6000_xcoff_file_start): New function.
18219 * config/rs6000/rs6000.h (TARGET_ASM_FILE_START): Set.
18220 * config/rs6000/xcoff.h (TARGET_ASM_FILE_START,
18221 TARGET_ASM_FILE_START_FILE_DIRECTIVE): Override.
18222 * config/sh/sh.c (output_file_start): Rename
18223 sh_file_start, make static, take no arguments. Merge in old
18224 code from sh/elf.h's ASM_FILE_START, conditioned on TARGET_ELF.
18225 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
18226 * config/sh/sh.c (TARGET_ELF): Define to 0.
18227 * config/sh/elf.h (TARGET_ELF): Redefine to 1.
18228 * config/v850/v850.c (asm_file_start): Delete.
18229 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
18230 * config/vax/vax.c (vax_file_start): New static function.
18231 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_APP_OFF): Set.
18232
18233 * config/darwin.h: Override ASM_FILE_START_FILE_DIRECTIVE to false.
18234 * config/elfos.h, config/svr3.h, config/arm/elf.h, config/arm/pe.h
18235 * config/i386/att.h, config/i386/gas.h, config/i386/linux.h
18236 * config/i386/sysv4.h, config/i386/sco5.h, config/i960/i960-coff.h
18237 * config/m68k/coff.h, config/m68k/hp320.h, config/mcore/mcore-pe.h
18238 * config/vax/vaxv.h: Set ASM_FILE_START_FILE_DIRECTIVE to true.
18239
18240 * config/darwin.h, config/elfos.h, config/alpha/elf.h
18241 * config/alpha/openbsd.h, config/alpha/osf.h, config/alpha/vms.h
18242 * config/arc/arc.h, config/arm/aof.h, config/arm/aout.h
18243 * config/arm/coff.h, config/arm/elf.h, config/arm/pe.h
18244 * config/avr/avr.h, config/c4x/c4x.h, config/cris/cris.h
18245 * config/dsp16xx/dsp16xx.h, config/h8300/elf.h, config/h8300/h8300.h
18246 * config/i370/i370.h, config/i386/att.h, config/i386/gas.h
18247 * config/i386/i386-interix.h, config/i386/linux.h, config/i386/sysv4.h
18248 * config/i386/sco5.h, config/i960/i960-coff.h, config/i960/i960.h
18249 * config/ia64/ia64.h, config/ia64/sysv4.h, config/m32r/m32r.h
18250 * config/m68hc11/m68hc11.h, config/m68k/coff.h, config/m68k/m68k.h
18251 * config/mcore/mcore-pe.h, config/mips/iris6.h, config/mips/mips.h
18252 * config/mmix/mmix.h, config/mn10300/mn10300.h, config/ns32k/ns32k.h
18253 * config/pa/elf.h, config/pa/pa-linux.h, config/pa/pa64-hpux.h
18254 * config/pa/som.h, config/pdp11/pdp11.h, config/rs6000/linux64.h
18255 * config/rs6000/lynx.h, config/rs6000/xcoff.h, config/sh/elf.h
18256 * config/sh/sh.h, config/sparc/sparc.h, config/v850/v850.h
18257 * config/vax/vax.h, config/vax/vaxv.h: Don't (re)define ASM_FILE_START.
18258
18259 * config/alpha/alpha-protos.h, config/arc/arc-protos.h
18260 * config/avr/avr-protos.h, config/dsp16xx/dsp16xx-protos.h
18261 * config/h8300/h8300-protos.h, config/ia64/ia64-protos.h
18262 * config/m32r/m32r-protos.h, config/m68hc11/m68hc11-protos.h
18263 * config/mips/mips-protos.h, config/mmix/mmix-protos.h
18264 * config/mn10300/mn10300-protos.h, config/rs6000/rs6000-protos.h
18265 * config/sh/sh-protos.h, config/v850/v850-protos.h: Update.
18266
18267 * xcoffout.h, config/rs6000/aix.h, config/rs6000/xcoff.h:
18268 Remove reference to ASM_FILE_START in comment.
18269 * config/arm/aof.h, config/arm/aout.h, config/arm/freebsd.h
18270 * config/arm/linux-gas.h, config/arm/netbsd-elf.h
18271 * config/arm/netbsd.h: Delete definition of ARM_OS_NAME.
18272
182732003-06-19 Graeme Peterson <gp@qnx.com>
18274
18275 * gcc.c (target_sysroot_suffix, target_sysroot_hdrs_suffix,
18276 SYSROOT_SUFFIX_SPEC, SYSROOT_HEADERS_SUFFIX_SPEC, sysroot_suffix_spec,
18277 sysroot_hdrs_suffix_spec): New.
18278 (static_specs): Initialize new variables.
18279 (add_sysroot_suffix_prefix, do_spec_1, main): Use new variables.
18280 * doc/tm.texi (SYSROOT_SUFFIX_SPEC, SYSROOT_HEADERS_SUFFIX_SPEC):
18281 New macros.
18282
182832003-06-19 Andreas Jaeger <aj@suse.de>
18284
18285 * c-aux-info.c: Convert to ISO C90.
18286 * c-pragma.c: Likewise.
18287 * c-common.c: Likewise.
18288 * c-common.h: Likewise.
18289 * c-convert.c: Likewise.
18290 * c-cppbuiltin.c: Likewise.
18291 * c-dump.c: Likewise.
18292 * c-decl.c: Likewise
18293 * c-format.c: Likewise.
18294 * c-incpath.c: Likewise.
18295 * c-incpath.h: Likewise.
18296
182972003-06-19 Roger Sayle <roger@eyesopen.com>
18298
18299 * builtins.c (expand_errno_check): Assume that flag_errno_math
18300 and HONOR_NANS have been tested before calling here. Only try
18301 to set errno ourselves if the decl can't throw an exception.
18302 (expand_builtin_mathfn): Move the code to stabilize the arg
18303 after the main switch, so that that its only done when needed.
18304 BUILT_IN_SQRT{,F,L} doesn't set errno if its arg is nonnegative.
18305 Don't modify the original expr when stabilizing the argument.
18306 (expand_builtin_mathfn_2): Likewise, move the code to stabilize
18307 the args after the main switch, and don't modify the orginal exp.
18308
183092003-06-19 Aldy Hernandez <aldyh@redhat.com>
18310
18311 * expr.c (const_vector_from_tree): Initialize remaining elements
18312 to 0.
18313
183142003-06-19 Aldy Hernandez <aldyh@redhat.com>
18315
18316 * config/rs6000/spe.md ("spe_evfscfsi"): Change operand types.
18317 Change "fix" to "float".
18318
183192003-06-19 Andreas Jaeger <aj@suse.de>
18320
18321 * c-tree.h: Remove declaration of poplevel.
18322
18323 * tree.h: Remove declaration of approx_sqrt.
18324
18325 * c-lex.c: Remove redundant declaration of asm_out_file.
18326
18327 * flags.h: Remove declaration of warn_unknown_pragma and
18328 main_input_filename.
18329
18330 * rtl.h: Remove functions from fold-const.c since they're already
18331 declared in tree.h.
18332
18333 * regs.h: Remove redundant declaration of reg_names.
18334
18335 * bt-load.c (migrate_btr_defs): Correct printf arguments.
18336
18337 * protoize.c: Fix breakage from last patch.
18338
183392003-06-19 J"orn Rennecke <joern.rennecke@superh.com>
18340
18341 * hooks.h (hook_reg_class_void_no_regs): Only declare if tm.h
18342 has been included.
18343
183442003-06-18 James A Morrison <ja2morri@student.math.uwaterloo.ca>
18345
18346 * config/sparc/sparc.c: Update copyright year.
18347
183482003-06-19 David Edelsohn <edelsohn@gnu.org>
18349
18350 * config/rs6000/rs6000.c (init_cumulative_args): Limit CALL_LIBCALL
18351 to ABI_V4.
18352
183532003-06-18 Joseph S. Myers <jsm@polyomino.org.uk>
18354
18355 PR bootstrap/4068
18356 * config/i386/liunx.h: Don't include sys/ucontext.h for glibc 2.0.
18357
183582003-06-19 Kazu Hirata <kazu@cs.umass.edu>
18359
18360 * config/h8300/h8300.c (TARGET_INITIALIZER and friends): Move
18361 to the end of the file. Remove unnecessary prototypes.
18362
183632003-06-19 Hans-Peter Nilsson <hp@axis.com>
18364
18365 * bt-load.c (migrate_btr_def) [INSN_SCHEDULING]: Conditionalize
18366 calls to insn_default_latency and result_ready_cost. Initialize
18367 def_latency to 1.
18368
183692003-06-18 Richard Henderson <rth@redhat.com>
18370
18371 * config/ia64/unwind-ia64.c (_Unwind_GetCFA): New.
18372 (_Unwind_FindEnclosingFunction): Implement.
18373
183742003-06-18 Kazu Hirata <kazu@cs.umass.edu>
18375
18376 * toplev.c (rest_of_handle_sched): Hide the entire function if
18377 INSN_SCHEDULING is not defined.
18378 (rest_of_compilation): Call rest_of_handle_sched() only when
18379 INSN_SCHEDULING is defined.
18380
183812003-06-18 Stephen Clarke <stephen.clarke@superh.com>
18382 J"orn Rennecke <joern.rennecke@superh.com>
18383
18384 * bt-load.c: New file.
18385 * Makefile.in (OBJS): Include bt-load.o
18386 (bt-load.o): Add dependencies.
18387 * flags.h (flag_branch_target_load_optimize): Declare.
18388 (flag_branch_target_load_optimize2): Likewise.
18389 * hooks.c (hook_reg_class_void_no_regs): New function.
18390 (hook_bool_bool_false): Likewise.
18391 * hooks.h (hook_reg_class_void_no_regs, hook_bool_bool_false): Declare.
18392 * rtl.h (branch_target_load_optimize): Declare.
18393 * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define.
18394 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
18395 (TARGET_INITIALIZER): Include these.
18396 * target.h (struct gcc_target): Add branch_target_register_class
18397 and branch_target_register_callee_saved members.
18398 * toplev.c (enum dump_file_index): Add DFI_branch_target_load
18399 (dump_file) Add "tars" entry.
18400 (flag_branch_target_load_optimize): New variable.
18401 (flag_branch_target_load_optimize2): Likewise.
18402 (lang_independent_options): Add entries for new options.
18403 (rest_of_compilation): Call branch_target_load_optimize.
18404 * doc/tm.texi (TARGET_BRANCH_TARGET_REGISTER_CLASS): Document.
18405 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
18406 * doc/invoke.texi: Document -fbranch-target-load-optimize and
18407 -fbranch-target-load-optimize2.
18408 * rtl.h (epilogue_completed): Declare.
18409 * recog.c (epilogue_completed): New variable.
18410 * toplev.c (rest_of_compilation): Set it.
18411 * flow.c (mark_regs_live_at_end): Use it.
18412 * config/ia64/ia64.c (ia64_output_mi_thunk): Set it.
18413 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
18414 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
18415 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
18416
18417 * sh.c (shmedia_space_reserved_for_target_registers): New variable.
18418 (sh_target_reg_class): New function.
18419 (sh_optimize_target_register_callee_saved): Likwise.
18420 (shmedia_target_regs_stack_space): Likewise.
18421 (shmedia_reserve_space_for_target_registers_p): Likewise.
18422 (shmedia_target_regs_stack_adjust): Likewise.
18423 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Override.
18424 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
18425 (calc_live_regs): If flag_branch_target_load_optimize2 and
18426 TARGET_SAVE_ALL_TARGET_REGS is enabled, and we have space reserved
18427 for target registers, make sure that we save all target registers.
18428 (sh_expand_prologue, sh_expand_epilogue): Take target register
18429 optimizations into account. Collapse stack adjustments if that
18430 is beneficial.
18431 (initial_elimination_offset): Reserve space for target registers
18432 if necessary.
18433 * sh.h (SAVE_ALL_TR_BIT, TARGET_SAVE_ALL_TARGET_REGS): Define.
18434 (OPTIMIZATION_OPTIONS): Enable flag_branch_target_load_optimize.
18435
184362003-06-18 Nick Clifton <nickc@redhat.com>
18437
18438 * config.gcc: Add an extra_header for ARM targets.
18439 Support configuring with --with-cpu=iwmmxt.
18440 * doc/invoke.texi: Document new value for -mcpu= ARM switch.
18441 * config/arm/aof.h (REGISTER_NAMES): Add iwmmxt register
18442 names. Fix formatting.
18443 * config/arm/aout.h (REGISTER_NAMES): Add iwmmxt register
18444 names.
18445 * config/arm/arm-protos.h (arm_emit_vector_const): New
18446 prototype.
18447 (arm_output_load_gr): New prototype.
18448 * config/arm/arm.c (extra_reg_names1): Delete.
18449 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN, FL_IWMMXT,
18450 * arch_is_iwmmxt): Define.
18451 (all_cores, all_architecture): Add entry for iwmmxt.
18452 (arm_override_options): Add support for iwmmxt.
18453 (use_return_insn, arm_function_arg, arm_legitimate_index_p,
18454 arm_print_value, arm_rtx_costs_1, output_move_double,
18455 arm_compute_save_reg_mask, arm_output_epilogue,
18456 arm_get_frame_size, arm_expand_prologue, arm_print_operand,
18457 arm_assemble_integer, arm_hard_regno_ok, arm_regno_class):
18458 Likewise.
18459 (arm_init_cumulative_args): Count iwmmxt registers.
18460 (arm_function_ok_for_sibcall): Return false of sibcall_blocked
18461 has been set.
18462 (struct minipool_node): Add fix_size field.
18463 (add_minipool_forward_ref): Add support for 8-byte aligning of
18464 the pool.
18465 (add_minipool_backward_ref, add_minipool_offsets,
18466 dump_minipool, push_minipool_fix): Likewise.
18467 (struct builtin_description): New struct.
18468 (builtin_description): New array of iwmmxt builtin functions.
18469 (arm_init_iwmmxt_builtins): New function.
18470 (arm_init_builtins): New function.
18471 (safe_vector_operand): New function.
18472 (arm_expand_binop_builtin): New function.
18473 (arm_expand_unop_builtin): New function.
18474 (arm_expand_builtin): New function.
18475 (arm_emit_vector_const): New function.
18476 (arm_output_load_gr): New function.
18477 * config/arm/arm.h (TARGET_CPU_iwmmxt, TARGET_IWMMXT,
18478 TARGET_REALLY_IWMMXT, arm_arch_iwmmxt, IWMMXT_ALIGNMENT,
18479 TYPE_NEEDS_IWMMXT_ALIGNMENT, ADJUST_FIELD_ALIGN,
18480 DATA_ALIGNMENT, LOCAL_ALIGNMENT, VECTOR_MODE_SUPPORTED_P): Define.
18481 (BIGGEST_ALIGNMENT): Set to 64 if ATPCS support is enabled.
18482 (CPP_CPU_ARCH_SPEC): Add entries for iwmmxt.
18483 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER,
18484 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
18485 REG_CLASS_FOR_LETTER): Add iwmmxt registers.
18486 (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Disable iwmmxt
18487 registers unless the iwmmxt target is selected.
18488 (FIRST_IWMMXT_GR_REGNUM, LAST_IWMMXT_GR_REGNUM,
18489 FIRST_IWMMXT_REGNUM, LAST_IWMMXT_REGNUM, IS_IWMMXT_REGNUM,
18490 IS_IWMMXT_GR_REGNUM): Define.
18491 (FIRST_PSEUDO_REGISTER): Bump to 63.
18492 (struct machine_function): Add sibcall_blocked field.
18493 (Struct CUMULATIVE_ARGS): Add iwmmxt_nregs, named_count and
18494 nargs fields.
18495 (enum arm_builtins): New enum list.
18496 * config/arm/arm.md (UNSPEC_WSHUFH, UNSPEC_WACC,
18497 UNSPEC_TMOVMSK, UNSPEC_WSAD, UNSPEC_WSADZ, UNSPEC_WMACS,
18498 UNSPEC_WMACU, UNSPEC_WMACSZ, UNSPEC_WMACUZ, UNSPEC_CLRDI,
18499 UNSPEC_WMADDS, UNSPEC_WMADDU): New unspecs.
18500 (VUNSPEC_TMRC, VUNSPEC_TMCR, VUNSPEC_ALIGN8, VUNSPEC_WCMP_EQ,
18501 VUNSPEC_WCMP_GTU, VUNSPEC_WCMP_GT): New vunspecs.
18502 (movv2si, movv4hi, movv8qi): New expands for vector moves.
18503 Include iwmmxt.md.
18504 * config/arm/t-xscale-elf (MULTILIB_OPITONS): Add iwmmxt
18505 multilib.
18506 (MULTILIB_DIRNAMES, MULTILIB_REDUNDANT_DIRS): Likewise.
18507 * config/arm/mmintrin.h: New ARM specific header file.
18508 * config/arm/iwmmx.md: New iWMMXt specific machine patterns.
18509
185102003-06-18 J"orn Rennecke <joern.rennecke@superh.com>
18511
18512 * toplev.c (Remaining -d letters summary): Update.
18513
185142003-06-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
18515
18516 * config/rs6000/rs6000.c (init_cumulative_args): Add and handle LIBCALL
18517 argument.
18518 (function_arg): Handle CALL_LIBCALL flag.
18519 * config/rs6000/rs6000-protos.h (init_cumulative_args): Update
18520 prototype.
18521 * config/rs6000/rs6000.h (CALL_LIBCALL): New macro.
18522 (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
18523 (INIT_CUMULATIVE_ARGS): Add LIBCALL argument.
18524 (INIT_CUMULATIVE_INCOMING_ARGS): Likewise.
18525
185262003-06-18 Neil Booth <neil@daikokuya.co.uk>
18527
18528 * Makefile.in: Update.
18529 * common.opt: New options.
18530 * opts.c (maybe_warn_unused_parameter, set_Wextra, handle_param,
18531 set_Wunused): New.
18532 (common_handle_option): Handle new options.
18533 * toplev.c (set_target_switch): Export.
18534 (set_Wextra, set_Wunused, maybe_warn_unused_parameter): Move to opts.c.
18535 (decode_W_option): -Wunused and -Wextra handled in opts.c now.
18536 (independent_decode_option): More options handled in opts.c now.
18537 Change prototype.
18538 * toplev.h (set_target_switch): New.
18539
185402003-06-17 Robert Abeles <rabeles@archaelogic.com>
18541
18542 PR debug/4252
18543 * c-opts.c (c_common_handle_option): Pass -fdump argument suffix
18544 to dump_switch_p().
18545 * tree-dump.c (dump_switch_p): Remove redundant 'dump-' prefix
18546 from static strings in dump_files.
18547
185482003-06-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18549
18550 * system.h (ANSI_PROTOTYPES, PTR_CONST, LONG_DOUBLE, VPARAMS,
18551 VA_OPEN, VA_FIXEDARG, VA_CLOSE, VA_START): undef and poison these
18552 libiberty macros.
18553
185542003-06-17 Jason Merrill <jason@redhat.com>
18555
18556 PR c++/10929
18557 * tree-inline.c (expand_call_inline): Don't warn about failing to
18558 inline a function which was made inline by -finline-functions.
18559
185602003-06-17 Kazu Hirata <kazu@cs.umass.edu>
18561
18562 * config/h8300/h8300-protos.h: Update to ISO C.
18563 * config/h8300/h8300.c: Likewise.
18564 * config/h8300/h8300.h: Likewise.
18565 * config/h8300/h8300.md: Likewise.
18566
185672003-06-16 Nathanael Nerode <neroden@gcc.gnu.org>
18568
18569 * configure.in: Replace BUILD_CC references with CC_FOR_BUILD.
18570 * configure: Regenerate.
18571 * Makefile.in: Replace BUILD_CC references with CC_FOR_BUILD.
18572
185732003-06-17 Ranjit Mathew <rmathew@hotmail.com>
18574
18575 * install.texi (Testing): Add information on how to run Java
18576 runtime tests separately.
18577
185782003-06-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
18579
18580 * config/mips/mips.md (trap): Use break 0 when !TARGET_GAS.
18581
18582 * config/mips/iris6-o32.h (MIPS_ISA_DEFAULT): Remove.
18583 (MIPS_CPU_STRING_DEFAULT): Redefine to mips2.
18584
185852003-06-17 Christopher Faylor <cgf@redhat.com>
18586
18587 * doc/install.texi: Add msvc rebuild caveat.
18588
185892003-06-17 Kazu Hirata <kazu@cs.umass.edu>
18590
18591 * config/sh/coff.h: Replace Hitachi with Renesas.
18592 * config/sh/elf.h: Likewise.
18593 * config/sh/embed-elf.h: Likewise.
18594 * config/sh/lib1funcs.asm: Likewise.
18595 * config/sh/sh-protos.h: Likewise.
18596 * config/sh/sh.c: Likewise.
18597 * config/sh/sh.h: Likewise.
18598 * config/sh/sh.md: Likewise.
18599
186002003-06-17 Kazu Hirata <kazu@cs.umass.edu>
18601
18602 * ChangeLog.3: Fix comment typos.
18603 * ChangeLog.6: Likewise.
18604 * config/d30v/d30v.c: Likewise.
18605 * config/h8300/h8300.md: Likewise.
18606 * config/m32r/m32r.md: Likewise.
18607 * config/mips/mips.c: Likewise.
18608 * config/mips/mips.md: Likewise.
18609 * config/ns32k/NOTES: Likewise.
18610
186112003-06-17 Ranjit Mathew <rmathew@hotmail.com>
18612 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
18613
18614 * doc/sourcebuild.texi (libgcj Tests): Simplify instructions on how
18615 to run Java runtime tests separately.
18616
186172003-06-17 Kazu Hirata <kazu@cs.umass.edu>
18618
18619 * config/h8300/h8300-protos.h: Update a comment.
18620
186212003-06-17 J"orn Rennecke <joern.rennecke@superh.com>
18622
18623 * sh.h (ROUND_TYPE_ALIGN, LOCAL_ALIGNMENT): Complex modes
18624 are aligned like integral modes.
18625 (SH5_WOULD_BE_PARTIAL_NREGS): Also test for CDImode and DCmode.
18626
18627 * sh.h (EXTRA_CONSTRAINT_Csy): Allow PIC_DIRECT_ADDR_P.
18628 (LEGITIMATE_PIC_OPERAND_P): Allow LABEL_REF.
18629 * sh.md (*pt): Remove.
18630
18631 * sh.h (REG_ALLOC_ORDER): Avoid squandering call-saved registers.
18632
18633 * sh.md (return_media_rte): New pattern.
18634 (return_media): Use it.
18635
186362003-06-17 Kazu Hirata <kazu@cs.umass.edu>
18637
18638 * doc/contrib.texi: Replace Hitachi with Renesas.
18639 * doc/install.texi: Likewise.
18640 * doc/invoke.texi: Likewise.
18641
186422003-06-17 J"orn Rennecke <joern.rennecke@superh.com>
18643
18644 * sh.h (CONST_OK_FOR_J16): Fix HOST_BITS_PER_WIDE_INT >= 64
18645 behaviour.
18646
186472003-06-17 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
18648
18649 * doc/tm.texi (MD_FALLBACK_FRAME_STATE_FOR): Mention MAKE_THROW_FRAME.
18650
18651 * config/rs6000/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Partly revert
18652 2003-01-23 patch. Corrected to handle kernels with changed ucontext.
18653
18654 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Error on invalid
18655 -msdata=eabi usages.
18656
18657 * gcc/config/rs6000/sysv4.h (USE_LIBC_1): Delete all uses.
18658
186592003-06-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18660
18661 * alloc-pool.c: Don't check HAVE_LONG_DOUBLE.
18662 * fixinc/gnu-regex.c: Don't define `volatile'.
18663 * ggc-page.c: Don't check HAVE_LONG_DOUBLE.
18664 * ggc-simple.c: Likewise.
18665 * system.h: Don't define `volatile'.
18666
18667 * aclocal.m4 (gcc_AC_C_VOLATILE, gcc_AC_C_LONG_DOUBLE): Delete.
18668 * configure.in (gcc_AC_C_VOLATILE, gcc_AC_C_LONG_DOUBLE): Don't
18669 call these macros.
18670 * config.in, configure: Regenerated.
18671
186722003-06-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18673
18674 * config/ia64/ia64.c (ia64_expand_builtin, case IA64_BUILTIN_BSP):
18675 Handle POINTERS_EXTEND_UNSIGNED.
18676
186772003-06-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
18678
18679 * config/mips/mips.c (TARGET_ASM_UNALIGNED_DI_OP) [TARGET_IRIX5 &&
18680 !TARGET_IRIX6]: Define as NULL.
18681
186822003-06-17 Eric Botcazou <ebotcazou@libertysurf.fr>
18683
18684 * config/sparc/sparc.c (sparc_va_arg): Don't align 16-byte+ structures.
18685
186862003-06-17 Eric Botcazou <ebotcazou@libertysurf.fr>
18687
18688 * dbxout.c (dbxout_source_line_counter): New global variable.
18689 Mark it with GTY(()).
18690 (dbxout_source_line): Increment dbxout_source_line_counter
18691 and pass it to ASM_OUTPUT_SOURCE_LINE.
18692 * sdbout.c (sdbout_source_line_counter): New global variable.
18693 Mark it with GTY(()).
18694 (unnamed_struct_number): Mark it with GTY(()).
18695 (sdbout_source_line): Increment sdbout_source_line_counter
18696 and pass it to ASM_OUTPUT_SOURCE_LINE.
18697 * xcoffout.c (ASM_OUTPUT_SOURCE_LINE): Add third parameter
18698 (xcoffout_source_line): Pass 0 as third argument to
18699 ASM_OUTPUT_SOURCE_LINE.
18700 (xcoffout_begin_prologue): Likewise.
18701 * config/dbxout.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
18702 Use it instead of 'sym_lineno' but without incrementing it.
18703 * config/dbxelf.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
18704 * config/lynx.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
18705 * config/ptx4.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
18706 * config/alpha/alpha.c (alpha_start_function): Pass 0 as third
18707 argument to ASM_OUTPUT_SOURCE_LINE.
18708 * config/alpha/alpha.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
18709 * config/arm/aout.h: Remove useless comment.
18710 * config/avr/avr.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
18711 * config/i960/i960.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
18712 * config/m32r/m32r.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
18713 Use it instead of 'sym_lineno' but without incrementing it.
18714 * config/m68k/hp320.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
18715 * config/mcore/mcore-pe.h (ASM_OUTPUT_SOURCE_LINE): Add third
18716 parameter. Use it instead of 'sym_lineno' but without incrementing it.
18717 * config/mips/mips.c (mips_output_function_prologue): Pass 0 as third
18718 argument to ASM_OUTPUT_SOURCE_LINE.
18719 * config/mips/mips.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
18720 * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
18721 * config/pa/som.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
18722 Use it instead of 'sym_lineno' but without incrementing it.
18723 * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
18724 * config/sh/elf.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
18725 * config/sparc/aout.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
18726 * config/sparc/pbd.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
18727 * doc/tm.texi (ASM_OUTPUT_SOURCE_LINE): Document third parameter.
18728
187292003-06-17 Richard Sandiford <rsandifo@redhat.com>
18730
18731 * config/mips/mips-protos.h (mips_expand_block_move): Declare.
18732 (expand_block_move, output_block_move): Remove.
18733 * config/mips/mips.h (enum block_move_type): Remove.
18734 * config/mips/mips.c (block_move_call, output_block_move): Remove.
18735 (mips_block_move_straight, mips_adjust_block_mem): New function.
18736 (mips_block_move_loop): Renamed and reworked from block_move_loop.
18737 (mips_expand_block_move): Likewise expand_block_move. Return false
18738 to fall back on the target-independent code.
18739 * config/mips/mips.md (movstrsi): Use mips_expand_block_move.
18740 (movstrsi_internal*): Remove.
18741
187422003-06-16 Zack Weinberg <zack@codesourcery.com>
18743
18744 * cpplib.h, cpphash.h, cppcharset.c, cpperror.c, cppexp.c
18745 * cppfiles.c, cpphash.c, cppinit.c, cpplex.c, cpplib.c
18746 * cppmacro.c, cpppch.c, cpptrad.c, cppspec.c: Convert to
18747 ISO C: new-style function declarations, no need for PARAMS,
18748 no special punctuation on indirect function calls, use string
18749 constant concatenation where convenient.
18750
187512003-06-17 Andreas Jaeger <aj@suse.de>
18752
18753 * rtl.h: Remove declarations from coverage.h.
18754 * toplev.c: Include coverage.h.
18755 * Makefile.in (toplev.o): Depend on coverage.h.
18756
18757 * toplev.h: Remove extra declaration of print_time.
18758
18759 * gengtype.c (close_output_files): Remove duplicated declaration.
18760
187612003-06-16 Nathanael Nerode <neroden@gcc.gnu.org>
18762
18763 * config/sparc/sysv4.h: Remove target-independent comment;
18764 replace "GNU CC" with "GCC".
18765 * config/vxworks.h: Replace "GNU compiler" with "GCC".
18766 * config/sparc/aout.h, config/sparc/biarch64.h, config/sparc/elf.h,
18767 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
18768 config/sparc/lite.h, config/sparc/litecoff.h, config/sparc/liteelf.h,
18769 config/sparc/netbsd-elf.h, config/sparc/openbsd.h,
18770 config/sparc/rtemself.h, config/sparc/sol2-64.h,
18771 config/sparc/sol2-bi.h, config/sparc/sol2-gas-bi.h,
18772 config/sparc/sol2-gld-bi.h, config/sparc/sol2-gld.h,
18773 config/sparc/sol2.h, config/sparc/sp64-aout.h,
18774 config/sparc/sp64-elf.h, config/sparc/sp86x-elf.h,
18775 config/sparc/sparc-protos.h, config/sparc/sysv4-only.h: Replace
18776 "GNU compiler", "GNU CC" with "GCC".
18777 * config/sparc/cypress.md, config/sparc/hypersparc.md,
18778 config/sparc/sparc-modes.def, config/sparc/sparc.c,
18779 config/sparc/sparc.md, config/sparc/sparclet.md,
18780 config/sparc/supersparc.md, config/sparc/ultra1_2.md,
18781 config/sparc/ultra3.md: Replace "GNU CC", "GNU Compiler", and
18782 "GNU C Compiler" with "GCC".
18783 * config/ip2k/ip2k.h: Replace "GNU CC" and "GNU compiler" with "GCC".
18784
187852003-06-16 Aldy Hernandez <aldyh@redhat.com>
18786
18787 * simplify-rtx.c (simplify_subreg): Do not over-extend vector
18788 constants.
18789
18790 * testsuite/gcc.c-torture/execute/simd-4.c: New.
18791
187922003-06-16 Nathanael Nerode <neroden@gcc.gnu.org>
18793
18794 * config/ip2k/ip2k.h: Remove target-independent comments.
18795
18796 * config.gcc: Explicitly mention elfos.h in ip2k entry.
18797 * config/ip2k/ip2k.h: Don't #include it here.
18798
187992003-06-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18800
18801 * bitmap.c, builtins.c, c-incpath.c, cgraph.c, config/frv/frv.c,
18802 config/mips/mips.c, cppfiles.c, cpphash.c, cppinit.c, cpplib.c,
18803 dwarf2out.c, dwarfout.c, except.c, expr.c, expr.h, fold-const.c,
18804 function.c, gcc.c, genoutput.c, gensupport.c, global.c,
18805 haifa-sched.c, hashtable.c, ifcvt.c, integrate.c, local-alloc.c,
18806 loop.c, mips-tdump.c, mips-tfile.c, mkdeps.c, protoize.c,
18807 read-rtl.c, recog.h, reload1.c, sbitmap.c, ssa-dce.c,
18808 stringpool.c, tlink.c, tree.c, varasm.c, varray.c: Don't use
18809 the PTR macro.
18810
18811 * gengtype.c: Don't use UNION_INIT_ZERO.
18812 * system.h (UNION_INIT_ZERO): Delete.
18813
188142003-06-16 Richard Henderson <rth@redhat.com>
18815
18816 * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE instead of
18817 GET_MODE_UNIT_SIZE when simplifying constant vectors.
18818
188192003-06-16 Andreas Jaeger <aj@suse.de>
18820
18821 * timevar.c (get_run_time): Remove function provided also by
18822 libiberty.
18823 * timevar.h: Remove get_run_time declaration.
18824
188252003-06-16 Kazu Hirata <kazu@cs.umass.edu>
18826
18827 * config/m68hc11/m68hc11.c (m68hc11_rtx_costs): Remove
18828 unreachable code.
18829
188302003-06-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18831
18832 * builtin-attrs.def, builtin-attrs.def, builtins.c, cpplex.c,
18833 cpplib.c, gencheck.c, gengenrtl.c, machmode.def, protoize.c: Don't
18834 use macros from "symcat.h", instead rely on ISO C.
18835
18836 * system.h: Don't include "symcat.h".
18837 * configure.in (AC_C_STRINGIZE): Delete.
18838 * config.in, configure: Regenerate.
18839
188402003-06-16 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18841
18842 * Makefile.in (install-mkheaders): Use INSTALL_SCRIPT for scripts.
18843
18844 * tree.h (STMT_CHECK): New macro.
18845 Also upper-case argument names on all checking macros and
18846 fix some whitespace problems; assume CODE argument does not
18847 have side-effects.
18848
188492003-06-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18850
18851 * scan.h: Convert to ISO C.
18852 * system.h: Likewise.
18853
18854 * c-format.c (dynamic_format_types): New pointer for dynamic data.
18855 (find_length_info_modifier_index, init_dynamic_asm_fprintf_info):
18856 New functions split out of...
18857 (handle_format_attribute): ...here.
18858
188592003-06-16 J"orn Rennecke <joern.rennecke@superh.com>
18860
18861 * sh.h (REG_CLASS_FROM_LETTER): Change to:
18862 (REG_CLASS_FROM_CONSTRAINT).
18863 (CONST_OK_FOR_I): Rename to:
18864 (CONST_OK_FOR_I08). Changed all users.
18865 (CONST_OK_FOR_J): Rename to:
18866 (CONST_OK_FOR_I16). Changed all users.
18867 (CONST_OK_FOR_K): Rename to:
18868 (CONST_OK_FOR_P27). Changed all users.
18869 (CONST_OK_FOR_L): Rename to:
18870 (CONST_OK_FOR_K08). Changed all users.
18871 (CONST_OK_FOR_O): Rename to:
18872 (CONST_OK_FOR_I06). Changed all users.
18873 (CONST_OK_FOR_P): Rename to:
18874 (CONST_OK_FOR_I10). Changed all users.
18875 (CONSTRAINT_LEN, CONST_OK_FOR_I, CONST_OK_FOR_J16): Define.
18876 (CONST_OK_FOR_J, CONST_OK_FOR_K, CONST_OK_FOR_P): Likewise.
18877 (EXTRA_CONSTRAINT_A, EXTRA_CONSTRAINT_Bsc): Likewise.
18878 (EXTRA_CONSTRAINT_B, PIC_OFFSET_P, PIC_DIRECT_ADDR_P): Likewise.
18879 (EXTRA_CONSTRAINT_Cpg, EXTRA_CONSTRAINT_C): Likewise.
18880 (EXTRA_MEMORY_CONSTRAINT,(EXTRA_CONSTRAINT_Sr0): Likewise.
18881 (CONST_OK_FOR_LETTER_P): Replace with
18882 (CONST_OK_FOR_CONSTRAINT_P).
18883 (EXTRA_CONSTRAINT_S): Rename to:
18884 (EXTRA_CONSTRAINT_C16). Changed all users.
18885 (MOVI_SHORI_BASE_OPERAND_P): Don't allow direct addresses.
18886 (EXTRA_CONSTRAINT_T): Rename to:
18887 (EXTRA_CONSTRAINT_Csy). Changed all users.
18888 (EXTRA_CONSTRAINT_Z): Remove.
18889 (EXTRA_CONSTRAINT): Replace with:
18890 (EXTRA_CONSTRAINT_STR).
18891 (EXTRA_CONSTRAINT_U): Rename to:
18892 (EXTRA_CONSTRAINT_Z). Changed all users.
18893 * sh.c (and_operand): Use CONST_OK_FOR_J16.
18894 * sh.md (cmpeqsi_t-1, cmpeqsi_t, adddi3_media): Use new constraints.
18895 (addsi3_media, addsi3_compact, andsi3_compact, anddi3): Likewise.
18896 (iorsi3, iordi3, xorsi3, xordi3, ashlsi3_std, ashlhi3_k): Likewise.
18897 (lshrsi3_k, movsi_i, movsi_ie, movsi_i_lowpart, movsi_media): Likewise.
18898 (movsi_media_nofpu, movqi_media, movhi_i, movhi_media): Likewise.
18899 (*movdi_i, movdi_media, movdi_media_nofpu, shori_media): Likewise.
18900 (movdf_media, movdf_media_nofpu, movv2sf_i, movv4sf_i): Likewise.
18901 (movsf_media, movsf_media_nofpu, movsi_y, beq_media): Likewise.
18902 (beq_media_i, bne_media, pt, ptb, movv8qi_i, movv2hi_i): Likewise.
18903 (movv4hi_i, movv2si_i, negcmpeqv8qi, negcmpeqv2si): Likewise.
18904 (negcmpeqv4hi, negcmpgtuv8qi, negcmpgtv2si, negcmpgtv4hi): Likewise.
18905 (mcmv, mcnvs_lw, mcnvs_wb, mcnvs_wub, mextr_rl, mextr_lr): Likewise.
18906 (mextr1, mextr2, mextr3, mextr4, mextr5, mextr6, mextr7): Likewise.
18907 (mperm_w, mperm_w_little, mperm_w_big, msad_ubq_i): Likewise.
18908 (mshards_q, mshfhi_b, mshflo_b, mshf4_b, mshf0_b, mshfhi_l): Likewise.
18909 (mshflo_l, mshf4_l, mshf0_l, mshfhi_w, mshflo_w, mshf4_w): Likewise.
18910 (mshf0_w, mshflo_w_x, mshfhi_l_di, mshfhi_l_di_rev): Likewise.
18911 (mshflo_l_di_rev, mshflo_l_di_x, concat_v2sf): Likewise.
18912 (mshflo_l_di_x_rev, subv2si3, subv4hi3, sssubv2si3): Likewise.
18913 (sssubv4hi3): Likewise.
18914 (movsf_i): Change I[08]/r to G/r.
18915 (movsf_ie): Change f/{G,H}/c/X to f/{G,H}/c/Bsc.
18916
18917 * sh.c (sh_output_mi_thunk): Use CONST_OK_FOR_ADD.
18918
189192003-06-16 Vladimir Makarov <vmakarov@redhat.com>
18920
18921 * config/i386/i386.c (ix86_memory_move_cost): Fix typo.
18922
189232003-06-16 Andreas Jaeger <aj@suse.de>
18924
18925 * basic-block.h: Remove duplicate prototype of
18926 note_prediction_to_br_prob.
18927
18928 * tree.h: Remove duplicate prototype of strip_float_extensions.
18929
189302003-06-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18931
18932 * config/c4x/c4x.c: Don't include "c-tree.h".
18933 * config/pa/pa.c: Likewise.
18934 * langhooks.c: Likewise.
18935 * tree.h (poplevel): Declare.
18936
189372003-06-16 Kazu Hirata <kazu@cs.umass.edu>
18938
18939 * config/h8300/h8300.c (const_costs): Move this to ...
18940 (h8300_rtx_costs): ... here.
18941
189422003-06-16 Roger Sayle <roger@eyesopen.com>
18943
18944 * optabs.h (enum optab_index): Add new OTI_tan and OTI_atan.
18945 (tan_optab, atan_optab): Define corresponding macros.
18946 * optabs.c (init_optabs): Initialize tan_optab and atan_optab.
18947 * genopinit.c (optabs): Implement tan_optab and atan_optab
18948 using tan?f2 and atan?f2 patterns.
18949 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_TAN{,F,L}
18950 using tan_optab, and BUILT_IN_ATAN{,F,L} using atan_optab.
18951 Change the default value of errno_set to false.
18952 (expand_builtin): Expand BUILT_IN_TAN{,F,L} and BUILT_IN_ATAN{,F,L}
18953 using expand_builtin_mathfn.
18954
18955 * config/i386/i386.md (atansf2, atandf2, atanxf2, atantf2): New
18956 expander patterns implemented using existing atan2?f3 patterns.
18957
189582003-06-16 Roger Sayle <roger@eyesopen.com>
18959
18960 * expr.c (expand_expr <PLUS_EXPR>): If operand_equal_p considers
18961 both operands of the addition equal, reuse the expanded RTL.
18962 (expand_expr <MULT_EXPR>): Likewise for multiplication.
18963
189642003-06-16 Roger Sayle <roger@eyesopen.com>
18965 Jeff Law <law@redhat.com>
18966
18967 * fold-const.c (operand_equal_p): Consider two calls to "const"
18968 functions with identical non-volatile arguments to be equal.
18969 Consider the FUNCTION_DECL for the "__builtin_foo" form of a
18970 built-in function to be equal to the "foo" form.
18971
189722003-06-16 Nathanael Nerode <neroden@gcc.gnu.org>
18973
18974 * config/rs6000/sysv4le.h: Remove target-independent comment.
18975 Replace "GNU compiler" with "GCC" in comment.
18976
189772003-06-16 Andreas Jaeger <aj@suse.de>
18978
18979 * tracer.c: Remove duplicate declaration.
18980
18981 * toplev.c: Remove extra declaration of decode_d_option.
18982
18983 * ssa.c: Remove duplicate declaration.
18984
18985 * sreal.c: Remove extra declaration of dump_sreal.
18986
18987 * reload1.c: Remove duplicate declarations.
18988
18989 * integrate.c: Remove extra declaration of
18990 set_decl_abstract_flags.
18991
18992 * flow.c: Remove extra declaration of dump_flow_info.
18993
18994 * alias.c: Remove extra declaration of get_addr.
18995
189962003-06-16 Nathanael Nerode <neroden@gcc.gnu.org>
18997
18998 * config/rtems.h, config/sol2.h, config/svr4.h, config/usegas.h,
18999 config/vxworks.h: GNU CC -> GCC.
19000
19001 * convert.c, dwarf2out.c, dwarfout.c, emit-rtl.c, function.c,
19002 lists.c, print-rtl.c, print-tree.c, read-rtl.c, rtl-error.c,
19003 stmt.c, toplev.c, integrate.h, loop.h, machmode.h, rtl.h,
19004 ssa.h, tree.def: Replace overly specific references to "GNU C"
19005 and "GNU C Compiler" with references to "GCC".
19006
190072003-06-16 J"orn Rennecke <joern.rennecke@superh.com>
19008
19009 * sh.c (prepare_move_operand): Check if operand 0 is an invalid
19010 memory reference. Fix test that checks if operand 1 is using r0.
19011 * sh.md (movhi_i): Don't allow st.w r0,@(rX,rY) .
19012
19013 * defaults.h (REG_CLASS_FROM_CONSTRAINT): Only define if not already
19014 defined.
19015
190162003-06-15 Nathan Sidwell <nathan@codesourcery.com>
19017
19018 * function.h (struct emit_status): Remove x_last_linenum,
19019 x_last_filename. Add x_last_location.
19020 * rtl.h: #include "input.h".
19021 (NOTE_DATA): New.
19022 * cfglayout.c (duplicate_insn_chain): Use emit_line_note for line
19023 number notes.
19024 * emit-rtl.c (last_linenum, last_filename): Remove.
19025 (last_location): New.
19026 (emit_line_note_after): LINE must always be >= 0.
19027 (emit_line_note): Likewise. Check not duplicate here...
19028 (emit_note): ... rather than here.
19029 (emit_line_note_force, force_next_line_note, init_emit): Adjust.
19030 * integrate.c (expand_inline_function): Use emit_line_note for
19031 line number notes.
19032 (copy_insn_list): Likewise.
19033 * unroll.c (copy_loop_body): Likewise.
19034 * Makefile.in (RTL_H): Add input.h.
19035
190362003-06-16 Richard Sandiford <rsandifo@redhat.com>
19037
19038 * optabs.c (emit_libcall_block): Don't hoist insns past a label.
19039
190402003-06-16 Richard Henderson <rth@redhat.com>
19041
19042 * config/alpha/alpha-protos.h, config/alpha/elf.h,
19043 config/alpha/osf.h, config/alpha/unicosmk.h, config/alpha/vms.h,
19044 config/alpha/vms-cc.c, config/alpha/vms-ld.c: Update to ISO C.
19045 * config/alpha/alpha.c: Likewise. Move targetm init to end of file.
19046 Remove unneeded static function decls.
19047
190482003-06-16 Neil Booth <neil@daikokuya.co.uk>
19049
19050 * c-opts.c (c_common_handle_option): s/on/value/.
19051 (OPT_fabi_version_, OPT_ftabstop_, OPT_ftemplate_depth_): Use value
19052 directly rather than converting the argument.
19053 * c.opt: Update docs. Use UInteger where appropriate.
19054 * common.opt: Use UInteger where appropriate.
19055 * opts.c (integral_argument): New.
19056 (handle_argument): Handle integral arguments, and optional
19057 joined arguments.
19058 (common_handle_option): Update.
19059 * opts.h (CL_MISSING_OK, CL_UINTEGER): New.
19060 * opts.sh: Handle JoinedOrMissing and UInteger flags.
19061
190622003-06-16 Neil Booth <neil@daikokuya.co.uk>
19063
19064 * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Remove
19065 unnecessary extern declaration.
19066
190672003-06-15 Nathanael Nerode <neroden@gcc.gnu.org>
19068
19069 * config/gofast.h, config/interix.h, config/interix3.h,
19070 config/libgloss.h, config/linux-aout.h, config/linux.h,
19071 config/lynx-ng.h, config/lynx.h: GNU CC -> GCC.
19072 * config/kaos.h: "GNU compiler" -> GCC.
19073 * config/linux-aout.h, config/lynx.h: Clarify comment describing file.
19074
19075 * config/ip2k/crt0.S, config/ip2k/ip2k-protos.h,
19076 config/ip2k/ip2k.c, config/ip2k/ip2k.md, config/ip2k/libgcc.S:
19077 GNU CC -> GCC.
19078
19079 * config/svr3.h: Remove #if 0 code, misleading comments.
19080 GNU CC -> GCC.
19081
190822003-06-15 Zack Weinberg <zack@codesourcery.com>
19083
19084 * vmsdbgout.c (vmsdbgout_finish): Rename parameter to
19085 main_input_filename to avoid conflict with input_filename macro.
19086
190872003-06-15 Neil Booth <neil@daikokuya.co.uk>
19088
19089 * config/mips/mips.h (asm_file_name, g_switch_set,
19090 g_switch_value): Remove.
19091 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
19092 unnecessary extern declarations.
19093
190942003-06-15 Neil Booth <neil@daikokuya.co.uk>
19095
19096 * config/frv/frv.h: Remove declaration of g_switch_value.
19097 * config/m32r/m32r.h: Remove declaration of g_switch_value.
19098 * config/m68hc11/m68hc11.c: Remove declaration of asm_file_name.
19099
191002003-06-15 Neil Booth <neil@daikokuya.co.uk>
19101
19102 * opts.sh: Quote '+' in regex.
19103
191042003-06-15 Andrew Pinski <pinskia@physics.uc.edu>
19105
19106 * config/rs6000/t-rs6000: Add dependence of cfglayout.h to rs6000.o.
19107 * config/rs6000/rs6000.c: Include cfglayout.h.
19108 * config/alpha/alpha.c: Likewise.
19109 * config/ia64/ia64.c: Likewise.
19110 * config/sparc/sparc.c: Likewise.
19111 * config/sh/sh.c: Likewise.
19112
191132003-06-15 Neil Booth <neil@daikokuya.co.uk>
19114
19115 * opts.sh: Quote '+' in regex.
19116
191172003-06-15 Neil Booth <neil@daikokuya.co.uk>
19118
19119 * c-opts.c (lang_flags): Update for new spelling of flags.
19120 (write_langs): Similarly.
19121 * c.opt: Specify languages.
19122 * opts.h: Remove languages.
19123 * opts.sh: Recognise front-end defined languages.
19124 * doc/sourcebuild.texi: Update.
19125
191262003-06-15 Andreas Jaeger <aj@suse.de>
19127
19128 * alloc-pool.c: Convert to ISO C90 prototypes.
19129 * alloc-pool.h: Likewise.
19130 * alias.c: Likewise.
19131 * attribs.c: Likewise.
19132 * bb-reorder.c: Likewise.
19133 * bitmap.h: Likewise.
19134 * bitmap.c: Likewise.
19135 * builtins.c: Likewise.
19136
19137 * tree.h: Convert prototypes of attribs.c to ISO C90.
19138 * basic-block.h: Convert prototypes of bb-reorder.c to ISO C90.
19139 * rtl.h: Convert prototypes of alias.c and builtins.c to ISO C90.
19140 * expr.h: Convert prototypes of builtins.c to ISO C90.
19141
191422003-06-15 Roger Sayle <roger@eyesopen.com>
19143
19144 * config/i386/i386.md (expsf2, expdf2, expxf2): New patterns to
19145 implement exp, expf and expl built-ins as inline x87 intrinsics.
19146 (UNSPEC_FSCALE, UNSPEC_FRNDINT, UNSPEC_F2XM1): New unspecs to
19147 represent x87's fscale, frndint and f2xm1 insns respectively.
19148 (*fscale_sfxf3, *fscale_dfxf3, *fscale_xf3): New insn patterns
19149 to encode x87's "fscale" instruction followed by a pop.
19150 (*frndintxf2): New insn pattern for "frndint".
19151 (*f2xm1xf2): New insn pattern for "f2xm1".
19152
19153 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FRNDINT and
19154 UNSPEC_F2XM1 like UNSPEC_{SIN,COS} and handle UNSPEC_FSCALE like
19155 UNSPEC_FPATAN.
19156
191572003-06-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19158
19159 * gencheck.c (main): Avoid generating duplicate macros.
19160
19161 * Makefile.in (stagefeedback-start): Use $(SUBDIRS) instead of
19162 knowing names of language subdirectories.
19163
191642003-06-15 Neil Booth <neil@daikokuya.co.uk>
19165
19166 * c-pch.c (asm_file_name): Remove.
19167 * common.opt: Add more switches.
19168 * flags.h (g_switch_set): Boolify.
19169 * opts.c (g_switch_value, g_switch_set, exit_after_options,
19170 version_flag): Move from toplev.c.
19171 (common_handle_option): Handle more switches from toplev.c.
19172 * toplev.c (display_help, display_target_options, decode_d_option,
19173 print_version): Make non-static, remove prototypes.
19174 (aux_base_name, asm_file_name, aux_info_file_name): Constify.
19175 (version_flag, g_switch_value, g_switch_set, exit_after_options):
19176 Remove.
19177 (independent_decode_option): Move some handlers to opts.c.
19178 * toplev.h (aux_info_file_name, aux_base_name, asm_file_name,
19179 exit_after_options, version_flag, display_help, display_target_options,
19180 print_version, decode_d_option): New.
19181
191822003-06-15 Kazu Hirata <kazu@cs.umass.edu>
19183
19184 * config/alpha/alpha.md: Follow spelling conventions.
19185 * config/arm/arm.c: Likewise.
19186 * config/arm/arm.h: Likewise.
19187 * config/arm/arm.md: Likewise.
19188 * config/arm/crtn.asm: Likewise.
19189 * config/m32r/m32r.c: Likewise.
19190 * config/m32r/m32r.md: Likewise.
19191 * config/rs6000/rs6000.c: Likewise.
19192
191932003-06-15 Richard Henderson <rth@redhat.com>
19194
19195 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
19196 insn_locators_initialize.
19197 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
19198 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
19199 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
19200 * config/sh/sh.c (sh_output_mi_thunk): Do it later.
19201
192022003-06-15 Kazu Hirata <kazu@cs.umass.edu>
19203
19204 * builtins.c (expand_builtin_expect_jump): Remove redundant
19205 tests that are also in any_condjump_p().
19206
192072003-06-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19208
19209 * libgcc2.c: Delete sysV68 L_trampoline section.
19210 * config/m68k/mot3300-crt0.S: Delete file.
19211 * config/m68k/mot3300Mcrt0.S: Likewise.
19212
192132003-06-15 Nathanael Nerode <neroden@gcc.gnu.org>
19214
19215 * config/aoutos.h: Remove.
19216 * config.gcc: Remove reference to aoutos.h.
19217 * config/m68k/m68k-aout.h: Remove reference to aoutos.h.
19218
192192003-06-14 Kazu Hirata <kazu@cs.umass.edu>
19220
19221 * doc/install.texi: Follow spelling conventions.
19222 * doc/tm.texi: Likewise.
19223 * config/fp-bit.c: Likewise.
19224 * config/arm/arm.c: Likewise.
19225 * config/frv/frv.c: Likewise.
19226 * config/ns32k/NOTES: Likewise.
19227 * config/ns32k/STATUS: Likewise.
19228
192292003-06-14 Roger Sayle <roger@eyesopen.com>
19230 Zack Weinberg <zack@codesourcery.com>
19231
19232 * rtl.h (STORE_FLAG_VALUE): Remove default definition from here.
19233 * defaults.h (STORE_FLAG_VALUE): Move default definition to here.
19234 * doc/tm.texi (STORE_FLAG_VALUE): Document the default value.
19235
19236 * config/alpha/alpha.h (STORE_FLAG_VALUE): Remove definition.
19237 * config/arc/arc.h (STORE_FLAG_VALUE): Likewise.
19238 * config/arm/arm.h (STORE_FLAG_VALUE): Likewise.
19239 * config/cris/cris.h (STORE_FLAG_VALUE): Likewise.
19240 * config/i370/i370.h (STORE_FLAG_VALUE): Likewise.
19241 * config/i386/i386.h (STORE_FLAG_VALUE): Likewise.
19242 * config/i960/i960.h (STORE_FLAG_VALUE): Likewise.
19243 * config/ia64/ia64.h (STORE_FLAG_VALUE): Likewise.
19244 * config/ip2k/ip2k.h (STORE_FLAG_VALUE): Likewise.
19245 * config/m32r/m32r.h (STORE_FLAG_VALUE): Likewise.
19246 * config/mcore/mcore.h (STORE_FLAG_VALUE): Likewise.
19247 * config/mips/mips.h (STORE_FLAG_VALUE): Likewise.
19248 * config/mmix/mmix.h (STORE_FLAG_VALUE): Likewise.
19249 * config/ns32k/ns32k.h (STORE_FLAG_VALUE): Likewise.
19250 * config/pa/pa.h (STORE_FLAG_VALUE): Likewise.
19251 * config/pdp11/pdp11.h (STORE_FLAG_VALUE): Likewise.
19252 * config/sh/sh.h (STORE_FLAG_VALUE): Likewise.
19253 * config/sparc/sparc.h (STORE_FLAG_VALUE): Likewise.
19254 * config/v850/v850.h (STORE_FLAG_VALUE): Likewise.
19255 * config/xtensa/xtensa.h (STORE_FLAG_VALUE): Likewise.
19256
192572003-06-14 Nathan Sidwell <nathan@codesourcery.com>
19258
19259 * opts.sh (POSIXLY_CORRECT): Unset it.
19260
19261 * tree.h (init_function_start): Remove filename and line paramters.
19262 * function.c (init_function_start): Remove filename and line
19263 parameters. Use DECL_SOURCE_LOCATION.
19264 * c-decl.c (store_parm_decls): Adjust init_function_start call.
19265 (c_expand_body_1): Likewise.
19266 * coverage.c (create_coverage): Likewise.
19267 * objc/objc-act.c (build_tmp_function_decl): Set line number to
19268 zero.
19269 (hack_method_prototype): Adjust init_function_start call.
19270
192712003-06-14 Richard Earnshaw <rearnsha@arm.com>
19272
19273 PR target/3724
19274 * arm/linux-elf.h (PROFILE_HOOK): Define.
19275
192762003-06-14 Richard Earnshaw <rearnsha@arm.com>
19277
19278 PR target/11183
19279 * arm.h (CANNOT_CHANGE_MODE_CLASS): Define.
19280
192812003-06-14 Roger Sayle <roger@eyesopen.com>
19282
19283 * opts.sh: Work around a mysterious feature in cygwin's gawk
19284 where specifying the input files explicitly has a different
19285 behavior to piping them via stdin.
19286
192872003-06-14 Neil Booth <neil@daikokuya.co.uk>
19288
19289 * doc/sourcebuild.texi: Update.
19290
192912003-06-14 Richard Earnshaw <rearnsha@arm.com>
19292
19293 PR target/11183
19294 * arm.c (output_move_double): Pass SImode to adjust_address.
19295
192962003-06-14 Neil Booth <neil@daikokuya.co.uk>
19297
19298 * Makefile.in: Update to use common.opt and lang_opt_files.
19299 (c-options.c, c-options.h): Remove.
19300 (options.c, options.h): Add.
19301 * c-opts.c: Include options.h not c-options.h.
19302 * common.opt: New file.
19303 * configure, configure.in: Add lang_opt_files.
19304 * opts.c: Include flags.h and diagnostic.h.
19305 (common_handle_option): New.
19306 (handle_option): Update to recognize common options and all
19307 language-dependent options.
19308 * opts.h (CL_F77, CL_JAVA, CL_ADA, CL_COMMON, CL_TREELANG): New.
19309 (struct cl_option): Make flags of type int.
19310 * opts.h: Flag option with front ends to which it applies.
19311 Handle duplicate options.
19312 * toplev.c (filename): Remove.
19313 (independent_decode_option): Don't handle filenames and -quiet.
19314 (process_options, do_compile): Update.
19315
193162003-06-14 Nick Clifton <nickc@redhat.com>
19317
19318 * doc/install.texi (Specific): Add description of different
19319 ARM supported file format targets.
19320
19321Sat Jun 14 11:12:04 CEST 2003 Jan Hubicka <jh@suse.cz>
19322
19323 * reorg.c (emit_delay_sequence, dbr_schedule): Clear insn locators
19324 inside delay slots.
19325
193262003-06-13 Matt Kraai <kraai@alumni.cmu.edu>
19327
19328 * unwind-c.c: Define NO_SIZE_OF_ENCODED_VALUE.
19329 * unwind-pe.h (size_of_encoded_value): Do not define if
19330 NO_SIZE_OF_ENCODED_VALUE is defined.
19331
193322003-06-13 Roger Sayle <roger@eyesopen.com>
19333
19334 * expr.c (expand_expr <COMPLEX_CST>): Handle the case of
19335 expanding a complex constant into a CONCAT target.
19336
193372003-06-13 Zack Weinberg <zack@codesourcery.com>
19338
19339 * config/svr3.h (ASM_FILE_START): Don't use ASM_FILE_START_1.
19340 (ASM_FILE_START_1): Delete.
19341 * config/i386/att.h, config/i386/sco5.h,
19342 config/i386/sysv3.h
19343 (ASM_FILE_START_1): Delete.
19344
193452003-06-13 Kelley Cook <kelleycook@wideopenwest.com>
19346
19347 * config/i386/bsd.h: Remove ASM_FILE_START.
19348 * config/i386/djgpp.h: Likewise.
19349 * config/i386/gas.h (ASM_FILE_START): Output .file before .intel_syntax.
19350
19351 * config/i386/djgpp.h: Move included unix.h, bsd.h, gas.h to ...
19352 * config.gcc (i[34567]86-pc-msdosdjgpp): ... here.
19353
193542003-06-13 Vladimir Makarov <vmakarov@redhat.com>
19355
19356 PR bootstrap/10835
19357 * haifa-sched.c (max_lookahead_tries,
19358 cached_first_cycle_multipass_dfa_lookahead,
19359 cached_issue_rate): New variables.
19360 (max_issue): Check the number of tries.
19361 (choose_ready): Calculate max_lookahead_tries.
19362 (sched_init): Check cached_issue_rate.
19363
193642003-06-13 Richard Henderson <rth@redhat.com>
19365
19366 * cfgbuild.c (make_edges): Set ABNORMAL with SIBCALL.
19367 * cfgrtl.c (purge_dead_edges): Expect it too.
19368
193692003-06-13 Jim Wilson <wilson@tuliptree.org>
19370 Eric Botcazou <ebotcazou@libertysurf.fr>
19371
19372 PR bootstrap/10983
19373 * combine.c (make_extraction): Use gen_lowpart_for_combine
19374 when extracting from a REG and not in the destination of a SET.
19375
193762003-06-13 Doug Evans <dje@sebabeach.org>
19377
19378 * tsystem.h (abort): Declare in inhibit_libc case to remove build
19379 warnings for addvsi3, et.al.
19380
193812003-06-13 Aldy Hernandez <aldyh@redhat.com>
19382
19383 * c-common.c (handle_mode_attribute): Use VECTOR_MODE_P macro.
19384
19385 * simplify-rtx.c (simplify_subreg): Same.
19386
19387 * emit-rtl.c (gen_lowpart_common): Same.
19388
193892003-06-13 Kazu Hirata <kazu@cs.umass.edu>
19390
19391 * builtins.c: Fix comment typos.
19392 * fold-const.c: Likewise.
19393
193942003-06-13 Doug Evans <dje@sebabeach.org>
19395 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
19396
19397 * config/m32r/m32r-protos.h (m32r_pass_by_reference): Declare.
19398 * config/m32r/m32r.c (m32r_pass_by_reference): New fn.
19399 (m32r_va_arg): Use it.
19400 * config/m32r/m32r.h (FUNCTION_ARG_PASS_BY_REFERENCE): Ditto.
19401 (RETURN_IN_MEMORY): Ditto.
19402
194032003-06-13 Nathanael Nerode <neroden@gcc.gnu.org>
19404
19405 * c-typeck.c: Remove #if 0 clauses.
19406
19407 PR other/1494
19408 * config/alpha/openbsd.h, config/i386/openbsd.h,
19409 config/m68k/openbsd.h, config/sparc/openbsd.h: Remove
19410 residual reference to EGCS.
19411
194122003-06-13 Richard Earnshaw <rearnsha@arm.com>
19413
19414 * arm.c (output_call_mem): If the address references the link-register
19415 use an instruction sequence that avoids early-clobbering IP.
19416 (eliminate_lr2ip): Delete.
19417
194182003-06-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19419
19420 * c-format.c (format_types_orig): Disallow '*' width/precision in
19421 asm_fprintf format checks.
19422
194232003-06-13 Ulrich Weigand <uweigand@de.ibm.com>
19424
19425 * config/s390/s390.c (s390_va_arg): Fix alignment when retrieving
19426 non-integral types from integer register save area slots.
19427
194282003-06-13 Nathanael Nerode <neroden@gcc.gnu.org>
19429
19430 * config/i386/svr3dbx.h: GNU CC -> GCC; Intel 385 -> Intel 386.
19431
194322003-06-13 Florian Weimer <fw@deneb.enyo.de>
19433
19434 * doc/invoke.texi (SPARC Options): Document ``-mimpure-text''.
19435
194362003-06-13 Kaz Kojima <kkojima@gcc.gnu.org>
19437
19438 * config/sh/linux.h (TARGET_ASM_FILE_END): Set TARGET_ASM_FILE_END
19439 to file_end_indicate_exec_stack.
19440
194412003-06-12 Richard Henderson <rth@redhat.com>
19442
19443 PR target/11089
19444 * config/i386/i386.md (sse_movaps): Use an expander to force
19445 one operand to be a register.
19446 (sse_movups): Likewise.
19447
194482003-06-13 Doug Evans <dje@sebabeach.org>
19449
19450 Remove some build warnings.
19451 * config/m32r/initfini.c (__CTOR_LIST__,__DTOR_LIST__): Attribute used.
19452 (__do_global_ctors,__do_global_dtors): Ditto.
19453
194542003-06-12 Richard Henderson <rth@redhat.com>
19455
19456 PR middle-end/10557
19457 * rtlanal.c (subreg_offset_representable_p): Relax subreg check.
19458
194592003-06-13 Kazu Hirata <kazu@cs.umass.edu>
19460
19461 * config/m32r/m32r.md: Fix a comment typo.
19462
194632003-06-13 Eric Botcazou <ebotcazou@libertysurf.fr>
19464 Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
19465
19466 PR target/10142
19467 * config/sparc/sparc.c (function_arg_record_value_parms): Add
19468 new 'stack' field.
19469 (function_arg_record_value_1): Set 'stack' to 1 if we run out of
19470 integer slots for an integer field.
19471 (function_arg_record_value_3): Shift vector index.
19472 (function_arg_record_value_2): Likewise.
19473 (function_arg_record_value): Initialize 'stack' to 0.
19474 Set 'stack' to 1 if we run out of integer slots for an integer field.
19475 Generate (parallel [(expr_list (nil) ...) ...]) if 'stack' is set to 1.
19476
194772003-06-13 Eric Botcazou <ebotcazou@libertysurf.fr>
19478
19479 PR optimization/10955
19480 * unroll.c (unroll_loop): Fix off-by-one bug.
19481
194822003-06-12 Aldy Hernandez <aldyh@redhat.com>
19483
19484 * config/rs6000/rs6000.c (function_arg): Remove typo.
19485
194862003-06-12 Richard Henderson <rth@redhat.com>
19487
19488 * config/i386/i386.c (legitimate_constant_p): Handle UNSPEC_NTPOFF
19489 and UNSPEC_DTPOFF.
19490
194912003-06-12 Richard Henderson <rth@redhat.com>
19492
19493 PR middle-end/10475
19494 * expmed.c (emit_store_flag): Use simplify_gen_subreg directly
19495 for extracting sub-words.
19496
194972003-06-12 Richard Henderson <rth@redhat.com>
19498
19499 PR target/7594
19500 * config/m68k/m68k.md (zero_extendhisi2): Use gen_lowpart_SUBREG.
19501 (zero_extendqihi2, zero_extendqisi2): Likewise.
19502
195032003-06-12 Aldy Hernandez <aldyh@redhat.com>
19504
19505 * config/rs6000/rs6000.c (function_arg): Always split vectors for
19506 e500 if it's a stdarg function.
19507 (function_arg_advance): Advance 2 registers for vectors in a
19508 stdarg function.
19509 (init_cumulative_args): Initialize stdarg.
19510 (rs6000_spe_function_arg): New.
19511
19512 * config/rs6000/rs6000.h (rs6000_args): Add stdarg.
19513
195142003-06-12 Aldy Hernandez <aldyh@redhat.com>
19515
19516 * config/rs6000/rs6000.h (MODES_TIEABLE_P): Add SPE vectors.
19517
195182003-06-12 Roger Sayle <roger@eyesopen.com>
19519
19520 PR middle-end/168
19521 * fold-const.c (tree_expr_nonnegative_p): Handle addition
19522 and multiplication of zero extensions, floating point division,
19523 and integer<->fp, fp<->fp and zero extension conversions.
19524 The built-in ceil and floor functions preserve signedness.
19525
195262003-06-12 Kazu Hirata <kazu@cs.umass.edu>
19527
19528 * ChangeLog: Follow spelling conventions.
19529 * ChangeLog.2: Likewise.
19530 * c-decl.c: Likewise.
19531 * cfgloop.h: Likewise.
19532 * cgraph.c: Likewise.
19533 * coverage.c: Likewise.
19534 * cppcharset.c: Likewise.
19535 * cpphash.h: Likewise.
19536 * cpplex.c: Likewise.
19537 * cpplib.c: Likewise.
19538 * dbxout.c: Likewise.
19539 * df.c: Likewise.
19540 * dwarf2out.c: Likewise.
19541 * dwarfout.c: Likewise.
19542 * emit-rtl.c: Likewise.
19543 * explow.c: Likewise.
19544 * gcov-io.c: Likewise.
19545 * gcov-io.h: Likewise.
19546 * gcov.c: Likewise.
19547 * gengtype.c: Likewise.
19548 * ggc.h: Likewise.
19549 * opts.c: Likewise.
19550 * real.c: Likewise.
19551 * reload.c: Likewise.
19552 * stmt.c: Likewise.
19553
195542003-06-12 Janis Johnson <janis187@us.ibm.com>
19555
19556 * doc/install.texi (m32r-*-elf): Change company to Renesas.
19557
19558Thu Jun 12 20:00:55 CEST 2003 Jan Hubicka <jh@suse.cz>
19559
19560 * basic-block.h (flow_delete_block_noexpunge): Kill.
19561 * cfgrtl.c (flow_delete_block_noexpunge): Merge to
19562 rtl_delete_block.
19563
195642003-06-10 Richard Henderson <rth@redhat.com>
19565
19566 PR inline-asm/4823
19567 * reg-stack.c (any_malformed_asm): New.
19568 (check_asm_stack_operands): Set it.
19569 (convert_regs_1): Check it before aborting.
19570
195712003-06-12 Aldy Hernandez <aldyh@redhat.com>
19572
19573 * config/rs6000/spe.md: Change all clobbers of the accumulator to sets.
19574
195752003-06-12 Jakub Jelinek <jakub@redhat.com>
19576
19577 * c-opts.c (complain_wrong_lang): Add on argument.
19578 Print no- switch if on is false.
19579 (c_common_decode_option): Adjust caller.
19580
195812003-06-12 Ulrich Weigand <uweigand@de.ibm.com>
19582
19583 * config/s390/s390.c (s390_emit_prologue): Use LA instead of AR
19584 to initialize GOT register.
19585
195862003-06-12 Roger Sayle <roger@eyesopen.com>
19587
19588 * fold-const.c (tree_expr_nonnegative_p): Add support for
19589 floating point constants, addition and multiplication.
19590
195912003-06-12 J"orn Rennecke <joern.rennecke@superh.com>
19592
19593 * sh.md (adddi3_compact, subdi3_compact): Add earlyclobber
19594 constraint modifier for operand 0.
19595
195962003-06-12 Hans-Peter Nilsson <hp@axis.com>
19597
19598 Don't warn on dollars in builtin macro definitions,
19599 e.g. __REGISTER_PREFIX__.
19600 * cpphash.h (struct cpp_reader): Move member warn_dollars...
19601 * cpplib.h (struct cpp_options): ...to here. Change type to
19602 unsigned char.
19603 * cppinit.c (cpp_create_reader): Set it to 1 here.
19604 (post_options): Don't set it here.
19605 * c-opts.c (c_common_init_options): Reset it to 0 here.
19606 (finish_options): Set it here.
19607 * cpplex.c (forms_identifier_p): Tweak for new location of
19608 warn_dollars.
19609
19610 * configure.in (assembler dwarf2 debug_line support): Define insn
19611 for cris-*-* and mmix-*-*.
19612 * configure: Regenerate.
19613
196142003-06-11 Uwe Stieber <uwe@kaos-group.de>
19615
19616 * config.gcc (arm*-*-kaos*, i[34567]86-*-kaos*, powerpc-*-kaos*,
19617 powerpcle-*-kaos*, strongarm-*-kaos*): New targets.
19618 (sh-*-elf*): Add sh*-*-kaos* support.
19619 * config/kaos.h, config/arm/kaos-strongarm.h, config/arm/kaos-arm.h,
19620 config/i386/kaos-i386.h, config/rs6000/kaos-ppc.h,
19621 config/sh/kaos-sh.h: New files.
19622
196232003-06-12 Kazu Hirata <kazu@cs.umass.edu>
19624
19625 * gcse.c (fis_get_condition): Make it a global function.
19626 * reload1.c (reload_cse_move2add): Detect implicit sets.
19627 * rtl.h: Add a prototype for fis_get_condition.
19628
196292003-06-11 Richard Henderson <rth@redhat.com>
19630
19631 * stmt.c (expand_asm_operands): Don't warn for memories with
19632 queued addresses.
19633
196342003-06-11 Kaz Kojima <kkojima@gcc.gnu.org>
19635
19636 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC): Rewrite without
19637 brackets.
19638
196392003-06-11 Neil Booth <neil@daikokuya.co.uk>
19640
19641 * hooks.c (hook_int_size_t_constcharptr_int_0): New.
19642 * hooks.h (hook_int_size_t_constcharptr_int_0): New.
19643 * langhooks-def.h (lhd_decode_option, LANG_HOOKS_DECODE_OPTION): Die.
19644 (LANG_HOOKS_HANDLE_OPTION, LANG_HOOKS_INITIALIZER): Update.
19645 * langhooks.c (lhd_decode_option): Remove.
19646 * langhooks.h (struct lang_hooks): Remove decode_option.
19647 * opts.c (handle_option): No longer use decode_option.
19648
196492003-06-11 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
19650
19651 * cfgloopanal.c (variable_initial_value): Update the set of altered
19652 registers correctly.
19653
196542003-06-11 Roger Sayle <roger@eyesopen.com>
19655 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19656
19657 * config/d30v/d30v.h: Delete reference to ASM_FINAL_SPEC.
19658 * config/i386/netbsd-elf.h: Likewise.
19659 * config/m32r/m32r.h: Likewise.
19660 * config/mn10300/mn10300.h: Likewise.
19661 * config/stormy16/stormy16.h: Likewise.
19662 * config/v850/v850.h: Likewise.
19663 * config/vax/netbsd-elf.h: Likewise.
19664 * config/xtensa/elf.h: Likewise.
19665 * config/xtensa/linux.h: Likewise.
19666
196672003-06-11 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
19668
19669 * config/mips/iris5gas.h (MDEBUG_ASM_SPEC): Override to match
19670 DWARF 2 default.
19671
19672 * config/mips/dbxmdebug.h: New file.
19673 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it with
19674 gas and --with-stabs.
19675
196762003-06-11 Ulrich Weigand <uweigand@de.ibm.com>
19677
19678 * expr.c (can_move_by_pieces): align argument may be unused.
19679
196802003-06-11 J"orn Rennecke <joern.rennecke@superh.com>
19681
19682 * expr.c (convert_move): Handle moves between two CONCATs.
19683
196842003-06-11 Kazu Hirata <kazu@cs.umass.edu>
19685
19686 * config/h8300/h8300.h (RETURN_IN_MEMORY): Accept DImode if
19687 !TARGET_H8300.
19688
196892003-06-11 Kazu Hirata <kazu@cs.umass.edu>
19690
19691 * config/h8300/h8300.c (final_prescan_insn): Don't dump rtl.
19692 * config/h8300/h8300.h (MASK_RTL_DUMP): Remove.
19693 (TARGET_RTL_DUMP): Likewise.
19694 (TARGET_SWITHCES): Remove -mrtl-dump.
19695
196962003-06-10 Richard Henderson <rth@redhat.com>
19697
19698 * optabs.c (gen_cond_trap): Fix prepare_operand typo.
19699
197002003-06-10 Richard Henderson <rth@redhat.com>
19701
19702 * config/ia64/ia64.md (call_gp): Fix memory mode.
19703
197042003-06-10 James E Wilson <wilson@tuliptree.org>
19705
19706 PR target/8812
19707 * reload1.c (choose_reload_regs): For equiv reg, add loop over all
19708 hard regs for reload_reg_used_at_all and reg_class_contents checks.
19709
197102003-06-10 Kazu Hirata <kazu@cs.umass.edu>
19711
19712 * config/h8300/h8300.c (print_operand): Remove support for
19713 operand character 'b'.
19714 Add the AND case to operand character 'c'.
19715 * config/h8300/h8300.md (two anonymous patterns): Replace
19716 operand character 'b' with 'c'.
19717
197182003-06-10 Kazu Hirata <kazu@cs.umass.edu>
19719
19720 * config/h8300/h8300.c (print_operand): Remove support for
19721 operand character 'u'.
19722
197232003-06-10 Nathanael Nerode <neroden@gcc.gnu.org>
19724
19725 * configure.in: Fix typo.
19726 * configure: Regenerate.
19727
197282003-06-10 Loren James Rittle <ljrittle@acm.org>
19729
19730 * config/alpha/alpha.c (unicosmk_file_end): Add conditional
19731 compilation guard.
19732
197332003-06-10 J"orn Rennecke <joern.rennecke@superh.com>
19734
19735 * sh-protos.h (function_symbol): Declare.
19736 * sh.c (expand_block_move, expand_ashiftrt): Use it.
19737 (sh_expand_prologue, sh_expand_epilogue): Likewise.
19738 (sh_initialize_trampoline): Likewise.
19739 (function_symbol): New function.
19740 * sh.md (udivsi3, divsi3, mulsi3, ic_invalidate_line): Use it.
19741 (initialize_trampoline, call, call_pop, call_value, sibcall): Likewise.
19742 (call_value_pop, shcompact_return_tramp): Likewise.
19743
19744 * sh.h (OVERRIDE_OPTIONS): Don't suppress --profile-arc-flag.
19745
19746 * sh.md (GOTaddr2picreg): Use gen_lowpart to get lowpart of
19747 target register.
19748
197492003-06-10 DJ Delorie <dj@redhat.com>
19750
19751 * doc/md.texi (Machine Constraints): Document stormy's Z
19752 constraint.
19753
197542003-06-10 Geoffrey Keating <geoffk@apple.com>
19755
19756 * except.c (call_site_base): Mark with GTY.
19757
197582003-06-10 Richard Earnshaw <rearnsha@arm.com>
19759
19760 * arm-proto.h: Convert to ISO C90 prototypes.
19761 * arm.c: Likewise.
19762
197632003-06-10 J"orn Rennecke <joern.rennecke@superh.com>
19764
19765 * sh.c (sh_output_mi_thunk): Call insn_locators_initialize.
19766
197672003-06-10 Steve Ellcey <sje@cup.hp.com>
19768
19769 * calls.c (expand_call): Convert structure_value_addr to Pmode if
19770 necessary.
19771
197722003-06-10 Andrew Haley <aph@redhat.com>
19773
19774 * langhooks-def.h (LANG_HOOKS_DECL_OK_FOR_SIBCALL): New.
19775 (LANG_HOOKS_DECLS): Add LANG_HOOKS_DECL_OK_FOR_SIBCALL.
19776 (lhd_decl_ok_for_sibcall): New.
19777 * langhooks.c (lhd_decl_ok_for_sibcall): New.
19778 * langhooks.h (lang_hooks_for_decls.ok_for_sibcall): New field.
19779 * calls.c (expand_call): Check lang_hook before generating a
19780 sibcall.
19781
197822003-06-10 DJ Delorie <dj@redhat.com>
19783
19784 * config/stormy16/stormy16.c (xstormy16_extra_constraint_p): Add Z,
19785 which matches (const_int 0) for addhi3.
19786 * config/stormy16/stormy16.md: Document known constraints.
19787 (addhi3): Handle adding zero.
19788
197892003-06-10 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
19790
19791 * config/m32r/m32r.h (HARD_REGNO_RENAME_OK): New.
19792 * config/m32r/m32r.c (m32r_hard_regno_rename_ok): New.
19793 * config/m32r/m32r-protos.h: Prototype it.
19794
197952003-06-10 Janis Johnson <janis187@us.ibm.com>
19796
19797 * config/rs6000/eabi.h (TARGET_OS_CPP_BUILTINS): Define builtins
19798 common to rs6000 sysv targets.
19799 * config/rs6000/eabisim.h (TARGET_OS_CPP_BUILTINS): Ditto.
19800 * config/rs6000/rtems.h (TARGET_OS_CPP_BUILTINS): Ditto.
19801
198022003-06-10 Nick Clifton <nickc@redhat.com>
19803
19804 * config.gcc: Add arm-wince-pe target.
19805 * config/arm/pe.h (MULTILIB_DEFAULTS): Define.
19806 Add comment about default apcs26 support.
19807 * config/arm/t-pe (MULTILIB_OPTIONS): Add an -mapcs-32
19808 multilib.
19809 (MULTILIB_DIRNAMES): Add 'apcs32'.
19810 * config/arm/t-wince-pe: New makefile fragment.
19811 * config/arm/wince-pe.h: New file. Overrides a few definitions
19812 in arm/pe.h
19813
198142003-06-10 Roger Sayle <roger@eyesopen.com>
19815
19816 * builtins.c (fold_builtin): Optimize cos(-x) as cos(x).
19817 * fold-const.c (fold <NEGATE_EXPR>): Convert -f(x) into f(-x)
19818 when x is easily negated and f is sin, tan or atan.
19819 (fold <MULT_EXPR>): Optimize tan(x)*cos(x) and cos(x)*tan(x) as
19820 sin(x) with flag_unsafe_math_optimizations.
19821 (fold <RDIV_EXPR>): With flag_unsafe_math_optimizations fold
19822 sin(x)/cos(x) as tan(x) and cos(x)/sin(x) as 1.0/tan(x).
19823
198242003-06-10 Roger Sayle <roger@eyesopen.com>
19825
19826 * fold-const.c (fold <EQ_EXPR>): Don't fold x == x only if x
19827 is a floating point type *and* we currently honor NaNs.
19828 (fold <NE_EXPR>): Likewise.
19829
198302003-06-10 Mark Mitchell <mark@codesourcery.com>
19831
19832 PR c++/11131
19833 * tree-inline.c (inlinable_function_p): Call the language-specific
19834 hook early.
19835
198362003-06-09 David Taylor <dtaylor@emc.com>
19837
19838 * config/rs6000/rs6000.c (rs6000_va_start, rs6000_va_arg): Skip over
19839 the f_res field.
19840
198412003-06-09 Nathanael Nerode <neroden@gcc.gnu.org>
19842
19843 * configure.in: Remove references to host_truncate_target.
19844 * configure: Regenerate.
19845 * config.gcc: Remove references to truncate_target,
19846 host_truncate_target.
19847
19848 * Makefile.in, configure.in, config/m68hc11/t-m68hc11-gas:
19849 Replace "build_canonical" with build, "host_canonical" with host.
19850 * configure.in: Use GCC_TOPLEV_SUBDIRS.
19851 * aclocal.m4: Include ../config/acx.m4.
19852 * configure: Regenerate.
19853
198542003-06-09 David Taylor <dtaylor@emc.com>
19855
19856 * config/rs6000/rs6000.c (rs6000_build_va_list): Give the two
19857 bytes of padding in the __va_list_tag structure a name (reserved).
19858
198592003-06-09 Jason Merrill <jason@redhat.com>
19860
19861 * fold-const.c (operand_equal_p): Handle ADDR_EXPR and TRUTH_NOT_EXPR.
19862
198632003-06-09 Osku Salerma <osku@iki.fi>
19864
19865 * c-format.c (check_format_string, get_constant): New.
19866 (handle_format_attribute, handle_format_arg_attribute,
19867 decode_format_attr): Change to use above functions.
19868
198692003-06-09 Richard Henderson <rth@redhat.com>
19870
19871 * stmt.c (expand_asm_operands): Re-word warning.
19872
198732003-06-08 Andrew Pinski <pinskia@physics.uc.edu>
19874
19875 PR target/8787
19876 * config/i386/djgpp.h (ASM_FILE_START): emit `.intel_syntax'
19877 if -masm=intel.
19878
198792003-06-09 James E Wilson <wilson@tuliptree.org>
19880
19881 * config/frv/cmovc.c, config/frv/cmovh.c, config/frv/cmovw.c,
19882 config/frv/frvbegin.c, config/frv/frvend.c, config/frv/lib1funcs.asm:
19883 Add libgcc exception.
19884
198852003-06-09 David Edelsohn <edelsohn@gnu.org>
19886 Ayal Zaks <gcchaifa@us.ibm.com>
19887
19888 * config/rs6000/rs6000.md (define_attr "type"): Add insert_word.
19889 (insvsi*): Add insert_word attribute.
19890 * config/rs6000/rs6000.c (rs6000_variable_issue): Add TYPE_INSERT_WORD.
19891 * config/rs6000/{40x.md,603.md,6xx.md,7450.md,7xx.md,mpc.md,
19892 power4.md,rios1.md,rios2.md,rs64.md}: Add insert_word.
19893
198942003-06-09 Kazu Hirata <kazu@cs.umass.edu>
19895
19896 * fold-const.c (fold): Fix a comment typo.
19897
198982003-06-09 Nathan Sidwell <nathan@codesourcery.com>
19899
19900 * tree-inline.c (expand_call_inline): DECL_SOURCE_LINE_FIRST is
19901 removed.
19902
199032003-06-09 J"orn Rennecke <joern.rennecke@superh.com>
19904
19905 * sh.c (gen_block_redirect): Use locators.
19906
199072003-06-09 Richard Earnshaw <rearnsha@arm.com>
19908
19909 * arm.h (THUMB_PRINT_OPERAND_ADDRESS): Use %wd in format and remove
19910 cast to int.
19911
199122003-06-09 Richard Sandiford <rsandifo@redhat.com>
19913
19914 * configure.in: Assume gas 2.14 and above can handle MIPS relocation
19915 operators.
19916 * configure: Regenerated.
19917
199182003-06-09 Richard Sandiford <rsandifo@redhat.com>
19919 Alexandre Oliva <aoliva@redhat.com>
19920
19921 * config/mips/mips.h (GLOBAL_POINTER_REGNUM): New macro.
19922 (PIC_OFFSET_TABLE_REGNUM): Look at pic_offset_table_rtx after reload.
19923 (STARTING_FRAME_OFFSET): Don't allocate a cprestore slot for
19924 n32/64 PIC.
19925 (MUST_SAVE_REGISTERS): Delete.
19926 * config/mips/mips.c (mips_frame_info): Remove extra_size field.
19927 (machine_function): Add global_pointer field.
19928 (mips_classify_constant): Check for (const $gp) using pointer equality
19929 with pic_offset_table_rtx.
19930 (mips_classify_constant): Handle RELOC_LOADGP_HI and RELOC_LOADGP_LO.
19931 (mips_restore_gp): Use current_function_outgoing_args_size.
19932 (print_operand): Use PIC_OFFSET_TABLE_REGNUM instead of
19933 GP_REG_FIRST + 28. Handle relocation strings that have
19934 more than one '('.
19935 (mips_reloc_string): Handle RELOC_LOADGP_HI and RELOC_LOADGP_LO.
19936 (mips_global_pointer): New function.
19937 (mips_save_reg_p): New function, mostly split out from...
19938 (compute_frame_size): ...here. Remove handling of extra_size.
19939 Reclaim args_size if no variables depend on it. Don't treat gp
19940 as a special case: handle it in the main GPR loop.
19941 (mips_initial_elimination_offset): Fix comment.
19942 (save_restore_insns): Save every register in the GPR mask,
19943 removing distinction between mask and real_mask.
19944 (mips_output_function_prologue): Update .frame psuedo-op after
19945 the removal of extra_size. Move the SVR4 PIC stack allocation
19946 and cprestore instructions to mips_expand_prologue.
19947 (mips_gp_insn): New function.
19948 (mips_expand_prologue): Set REGNO (pic_offset_table_rtx) to
19949 the chosen global pointer. Handle SVR4 PIC stack allocation
19950 in the same way as other ABIs. Adjust varargs code accordingly.
19951 Emit a cprestore insn after allocating the stack. Use mips_gp_insn
19952 to emit the loadgp sequence. Follow it with a loadgp_blockage
19953 if not using explicit relocs.
19954 (mips_output_function_epilogue): Reinstate the default gp register.
19955 (mips16_gp_pseudo_reg): Use pic_offset_table_rtx.
19956 (mips16_optimize_gp): Likewise.
19957 * config/mips/mips.md (UNSPEC_LOADGP): Remove.
19958 (UNSPEC_SETJMP, UNSPEC_LONGJMP): Remove.
19959 (UNSPEC_CPRESTORE, RELOC_LOADGP_HI, RELOC_LOADGP_LO): New.
19960 (loadgp): Remove.
19961 (loadgp_blockage, cprestore): New instructions.
19962 (builtin_setjmp_setup): Implement using emit_move_insn. Use
19963 pic_offset_table_rtx.
19964 (builtin_setjmp_setup_32, builtin_setjmp_setup_64): Remove.
19965 (builtin_longjmp): Use gen_raw_REG to force use of $28.
19966
199672003-06-09 Richard Sandiford <rsandifo@redhat.com>
19968
19969 * config/mips/mips-protos.h (mips_output_division): Declare.
19970 * config/mips/mips.h (MASK_CHECK_RANGE_DIV): Remove.
19971 (MASK_BRANCHLIKELY): Use MASK_CHECK_RANGE_DIV's old number.
19972 (TARGET_NO_CHECK_ZERO_DIV, TARGET_CHECK_RANGE_DIV): Remove.
19973 (TARGET_CHECK_ZERO_DIV): New macro.
19974 (TARGET_SWITCHES): Remove -mcheck-range-div & -mno-check-range-div.
19975 * config/mips/mips.c (mips_output_division): New function.
19976 * config/mips/mips.md (length): Take TARGET_CHECK_ZERO_DIV into
19977 account when calculating the default length of a division.
19978 (divmodsi4, divmoddi4, udivmodsi4, udivmoddi4): Turn into define_insns.
19979 Enable regardless of optimization level. Use mips_output_division.
19980 (divmodsi4_internal, divmoddi4_internal, udivmodsi4_internal,
19981 udivmoddi4_internal, div_trap, div_trap_normal, div_trap_mips16,
19982 divsi3, divsi3_internal, divdi3, divdi3_internal, modsi3,
19983 modsi3_internal, moddi3, moddi3_internal, udivsi3, udivsi3_internal,
19984 udivdi3, udivdi3_internal, umodsi3, umodsi3_internal, umoddi3,
19985 umoddi3_internal): Remove.
19986
199872003-06-09 Richard Sandiford <rsandifo@redhat.com>
19988
19989 * config/mips/mips.c (mips_reg_names): Change hilo entry to "".
19990 (mips_sw_reg_names): Likewise.
19991 (mips_regno_to_class): Change hilo entry to NO_REGS.
19992 (hilo_operand): Use MD_REG_P.
19993 (extend_operator): New predicate.
19994 (override_options): Remove 'a' constraint.
19995 (mips_secondary_reload_class): Remove hilo handling. Also remove
19996 handling of (plus sp reg) reloads for mips16.
19997 (mips_register_move_cost): Remove hilo handling.
19998 * config/mips/mips.h (FIXED_REGISTERS): Make hilo entry fixed.
19999 (MD_REG_LAST): Remove hilo from range.
20000 (HILO_REGNUM): Delete.
20001 (reg_class): Remove HILO_REG and HILO_AND_GR_REGS.
20002 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
20003 (PREDICATE_CODES): Add entry for extend_operator.
20004 (DEBUG_REGISTER_NAMES): Change hilo entry to "".
20005 * config/mips/mips.md: Remove hilo clobbers wherever they occur.
20006 Remove constraints from multiplication define_expands. Remove
20007 clobbers from "decorative" define_expand patterns.
20008 (UNSPEC_HILO_DELAY): Delete.
20009 (*mul_acc_si, *mul_sub_si): Add early-clobber to operand 6.
20010 (mulsidi3, umulsidi3): Change pattern to match the TARGET_64BIT case.
20011 Adjust C code to just emit insns for !TARGET_64BIT.
20012 (mulsidi3_internal): Rename to mulsidi3_32bit.
20013 (mulsidi3_64bit): Use a "d" constraint for the destination.
20014 Use extend_operator so that the pattern can handle umulsidi3 as well.
20015 Split the instruction after reload.
20016 (*mulsidi3_64bit_parts): New pattern, generated by mulsidi3_64bit.
20017 (umulsidi3_internal): Rename to umulsidi3_32bit.
20018 (umulsidi3_64bit): Remove.
20019 (*smsac_di, *umsac_di): Line-wrap fixes.
20020 (udivsi3_internal): Don't allow operand 2 to be constant.
20021 (udivdi3_internal, umodsi3_internal, umoddi3_internal): Likewise.
20022 (movdi_internal2, movsi_internal): Remove hilo alternatives.
20023 (reload_in[sd]i, reload_out[sd]i, hilo_delay): Remove.
20024
200252003-06-09 Richard Sandiford <rsandifo@redhat.com>
20026
20027 PR target/10913
20028 * config/mips/mips.h (TARGET_FILE_SWITCHING, NO_DBX_FUNCTION_END,
20029 PUT_SDB_SCL, PUT_SDB_INT_VAL, PUT_SDB_VAL, PUT_SDB_ENDEF,
20030 PUT_SDB_TYPE, PUT_SDB_SIZE, PUT_SDB_DIM, PUT_SDB_START_DIM,
20031 PUT_SDB_NEXT_DIM, PUT_SDB_LAST_DIM, PUT_SDB_TAG, PUT_SDB_SRC_FILE,
20032 SDB_GENERATE_FAKE, TEXT_SECTION): Delete.
20033 (PUT_SDB_DEF, PUT_SDB_PLAIN_DEF, PUT_SDB_BLOCK_START,
20034 PUT_SDB_BLOCK_END, PUT_SDB_FUNCTION_END): Replace use of
20035 asm_out_text_file with asm_out_file.
20036 * config/mips/iris5gas.h (PUT_SDB_SIZE, PUT_SDB_TYPE): Likewise.
20037 * config/mips/elf.h (TEXT_SECTION): Undefine.
20038 * config/mips/elf64.h (TEXT_SECION): Undefine.
20039 * config/mips/openbsd.h (TEXT_SECION): Undefine.
20040 * config/mips/mips.c (asm_out_text_file, asm_out_data_file): Delete.
20041 (override_options): Disable small-data optimizations unless using
20042 gas or explicit relocations.
20043 (mips_asm_file_start, mips_asm_file_end, mips_output_function_epilogue,
20044 iris6_asm_named_section, iris6_asm_file_start): Remove code for
20045 handling TARGET_FILE_SWITCHING.
20046 (copy_file_data): Move into TARGET_IRIX6 block.
20047
200482003-06-08 Richard Henderson <rth@redhat.com>
20049
20050 * expr.h (EXPAND_MEMORY): New.
20051 * expr.c (expand_expr): Check it.
20052 * stmt.c (expand_asm_operands): Provide it when the constraint
20053 requires a memory. Warn for memory input constraints without
20054 a memory operand.
20055
200562003-06-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20057
20058 * varasm.c: Don't include c-tree.h.
20059
200602003-06-08 Andreas Jaeger <aj@suse.de>
20061
20062 * predict.h: Convert to ISO C90 prototypes.
20063 * predict.c: Likewise.
20064 * tree-dump.h: Likewise.
20065 * tree-dump.c: Likewise.
20066 * diagnostic.h: Likewise.
20067 * diagnostic.c: Likewise.
20068 * combine.c: Likewise.
20069
20070 * rtl.h: Convert prototypes of combine.c to ISO C90.
20071
20072Sun Jun 8 21:27:41 CEST 2003 Jan Hubicka <jh@suse.cz>
20073
20074 * cfglayout.c (insn_scope): New static function
20075 (block_locators_*, line_locators*, file_locators*): New static varrays.
20076 (scope_to_insns_initialize): Use them.
20077 (insn_line, insn_file): New functions.
20078 (scope_to_insns_finalize): Use insn_scope.
20079 (prologue_locator, epilogue_locator): New global variables.
20080 * emit-rt.c (try_split, make_insn_raw, make_jump_insn_raw,
20081 make_call_insn_raw, emit_copy_of_insn_after): Use locators.
20082 (emit_insn_after_scope, emit_insn_before_scope
20083 emit_jump_insn_after_scope, emit_jump_insn_before_scope
20084 emit_call_insn_after_scope, emit_call_insn_before_scope): Rename to...
20085 (emit_insn_after_setloc, emit_insn_before_setloc
20086 emit_jump_insn_after_setloc, emit_jump_insn_before_setloc
20087 emit_call_insn_after_setloc, emit_call_insn_before_setloc): ... these;
20088 use locators.
20089 * final.c (notice_source_line): Use locators.
20090 (final_start_function): Set initial source file and line.
20091 (final_scan_insn): Use locators.
20092 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
20093 noce_try_addcc, noce_try_store_flag_mask, noce_try_cmove,
20094 noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
20095 noce_process_if_block, find_cond_trap): Likewise.
20096 * integrate.c (copy_insn_list): Likewise.
20097 * jump.c (duplicate_loop_exit_test): LIkewise.
20098 * print-rtl.c (print_rtx): Print locators.
20099 * recog.c (peephole2_optimize): Likewise.
20100 * rtl.h (INSN_SCOPE): Remove.
20101 (emit_insn_after_scope, emit_insn_before_scope
20102 emit_jump_insn_after_scope, emit_jump_insn_before_scope
20103 emit_call_insn_after_scope, emit_call_insn_before_scope): Rename to...
20104 (emit_insn_after_setloc, emit_insn_before_setloc
20105 emit_jump_insn_after_setloc, emit_jump_insn_before_setloc
20106 emit_call_insn_after_setloc, emit_call_insn_before_setloc): ... these;
20107 (insn_file, insn_line, prologue_locator, epilogue_locator): Declare.
20108 * unroll.c (copy_loop_body): Use locators.
20109 * function.c (set_insn_locators): New function.
20110 (thread_prologue_and_epilogue_insns): Set the locators accordingly.
20111
201122003-06-08 Kazu Hirata <kazu@cs.umass.edu>
20113
20114 * config/h8300/h8300.h (LONG_LONG_TYPE_SIZE): Set to 64.
20115 * config/h8300/t-h8300 (LIB1ASMFUNCS): Remove _floatdisf
20116 _fixsfdi _fixunssfdi.
20117 (LIB2FUNCS_EXTRA): Add entries for clzhi2, ctzhi2, parityhi2,
20118 popcounthi2.
20119 (TARGET_LIBGCC2_CFLAGS): Remove -DDI=SI.
20120 * config/h8300/clzhi2.c: New.
20121 * config/h8300/ctzhi2.c: Likewise.
20122 * config/h8300/parityhi2.c: Likewise.
20123 * config/h8300/popcounthi2.c: Likewise.
20124
20125Sun Jun 8 15:52:17 CEST 2003 Jan Hubicka <jh@suse.cz>
20126
20127 * i386.md (subsi_3_zext, sse2_nandv2di3): Fix predicates.
20128 * i386.c (k8_avoid_jump_misspredicts): Fix debug output.
20129
20130 * cfg.c (verify_flow_info): Move IL independent checks from cfgrtl here.
20131 (dump_bb): New based on old dump_bb in cfgrtl.c
20132 (debug_bb, debug_bb_n): Move the functions from cfgrtl.c here.
20133 * cfghooks.h (cfgh_verify_flow_info): Return status.
20134 * cfglayout.c (cfg_layout_finalize): Verify CFG correctness.
20135 * cfgrtl.c (debug_bb, debug_bb_n): Move to cfg.c
20136 (dump_bb): Remove generic parts.
20137 (rtl_verify_flow_info_1): Break out from rtl_verify_flow_info.
20138 (rtl_verify_flow_info): Only check things dependeing on linearized RTL.
20139
201402003-06-08 Neil Booth <neil@daikokuya.co.uk>
20141
20142 * Makefile.in: Rename options.c and options.h to c-options.c and
20143 c-options.h.
20144 (OBJS): Remove options.o.
20145 * c-opts.c: Don'tInclude c-options.h instead of options.h.
20146 * opts.c: Don't include options.h.
20147 (find_opt): Can't use enum opt_code or N_OPTS.
20148 * opts.h (struct cl_option, cl_options, cl_options_count): Move from...
20149 * opts.sh: ... here.
20150
201512003-06-07 Eric Botcazou <ebotcazou@libertysurf.fr>
20152 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20153
20154 PR pch/9830
20155 * ggc-common.c (HAVE_MMAP_FILE): Include sys/types.h
20156 if HAVE_MINCORE is defined.
20157 (MAP_FAILED): Define if not defined.
20158 (gt_pch_save): Test against MAP_FAILED.
20159 (gt_pch_restore): If HAVE_MINCORE, use MAP_FIXED to force
20160 the mapping address to the preferred base after checking it
20161 is possible to do so. Test against MAP_FAILED.
20162 * configure.in: Test for the presence of mincore in libc.
20163 * config.in: Regenerate.
20164 * configure: Regenerate.
20165
201662003-06-07 Richard Henderson <rth@redhat.com>
20167
20168 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Fix
20169 conditional compilation guard.
20170
201712003-06-08 Kazu Hirata <kazu@cs.umass.edu>
20172
20173 * optabs.c (expand_abs): Set result_unsignedp to 1 if
20174 flag_trav is zero.
20175
201762003-06-07 Richard Henderson <rth@redhat.com>
20177
20178 * c-cppbuiltin.c (c_cpp_builtins): Define __EXCEPTIONS for C also.
20179
201802003-06-07 Richard Henderson <rth@redhat.com>
20181
20182 * basic-block.h (EDGE_SIBCALL): New.
20183 (EDGE_ALL_FLAGS): Update.
20184 * cfg.c (dump_edge_info): Add sibcall name.
20185 * cfgbuild.c (make_edges): Use EDGE_SIBCALL.
20186 * cfgrtl.c (purge_dead_edges): Handle sibcalls.
20187
201882003-06-07 Andreas Jaeger <aj@suse.de>
20189
20190 * mklibgcc.in (lib2funcs): Remove _exit.
20191 * libgcc2.c: Remove L_exit.
20192 * gbl-ctors.h: Remove declarations dependend on NEED_ATEXIT.
20193
20194 * system.h: Poison NEED_ATEXIT, ON_EXIT, EXIT_BODY.
20195
20196 * doc/tm.texi (Misc): Remove NEED_ATEXIT, ON_EXIT, EXIT_BODY.
20197
20198 * ggc.h: Convert to ISO C90 prototypes.
20199 * ggc-none.c: Likewise.
20200 * ggc-common.c: Likewise.
20201 * ggc-page.c: Likewise.
20202 * ggc-simple.c: Likewise.
20203
20204 * crtstuff.c: Remove undefined usage of INIT_SECTION_PREAMBLE.
20205
20206 * system.h: Poison INIT_SECTION_PREAMBLE.
20207
202082003-06-07 Zack Weinberg <zack@codesourcery.com>
20209
20210 * config.gcc (with_cpu handling): Translate sparc64 in
20211 $machine to --with-cpu=v9.
20212 * config/alpha/alpha.c
20213 (TARGET_ASM_GLOBALIZE_LABEL [TARGET_ABI_UNICOSMK]): Correct definition.
20214 (alpha_setup_incoming_varargs): #ifdef out when TARGET_ABI_UNICOSMK.
20215
20216 * target.h: New hook asm_out.file_end.
20217 * target.h: Update to match. New hook macro TARGET_ASM_FILE_END.
20218 * toplev.c (compile_file): Use targetm.asm_out.file_end.
20219 * system.h: Poison ASM_FILE_END.
20220 * varasm.c (file_end_indicate_exec_stack): New.
20221 * output.h: Prototype it.
20222 * doc/tm.texi: Document TARGET_ASM_FILE_END and
20223 file_end_indicate_exec_stack. Delete references to attasm.h.
20224
20225 * config/darwin.h (TARGET_ASM_FILE_END): Reset to darwin_file_end.
20226 (ASM_FILE_END): Delete; move code...
20227 * config/darwin.c (darwin_file_end): Here; new function.
20228 * config/darwin-protos.h: Prototype it.
20229 * config/alpha/alpha.c (unicosmk_asm_file_end): Make static,
20230 rename unicosmk_file_end.
20231 * config/arm/aof.h (ASM_FILE_END): Delete; move code...
20232 * config/arm/arm.c (aof_file_end): ... here; new static function.
20233 Set TARGET_ASM_FILE_END to aof_file_end if AOF_ASSEMBLER.
20234 Make aof_dump_imports and aof_dump_pic_table static.
20235 * config/avr/avr.c (asm_file_end): Rename avr_file_end, make static.
20236 Set TARGET_ASM_FILE_END to avr_file_end.
20237 * config/c4x/c4x.c (c4x_file_end): Make static. Take no arguments.
20238 Set TARGET_ASM_FILE_END to c4x_file_end.
20239 * config/h8300/h8300.c (asm_file_end): Rename h8300_file_end,
20240 make static. Take no arguments. Set TARGET_ASM_FILE_END to
20241 h8300_file_end.
20242 * config/i370/i370.h (ASM_FILE_END): Delete; move code...
20243 * config/i370/i370.c (i370_file_end): ... here; new static function.
20244 Set TARGET_ASM_FILE_END to i370_file_end.
20245 * config/i386/i386.c (ix86_asm_file_end): Rename ix86_file_end.
20246 Take no arguments. Call file_end_indicate_exec_stack if
20247 NEED_INDICATE_EXEC_STACK; don't use SUBTARGET_FILE_END.
20248 * config/i386/i386.h: Set TARGET_ASM_FILE_END, not ASM_FILE_END.
20249 Define NEED_INDICATE_EXEC_STACK to 0.
20250 * config/i386/linux.h, config/i386/linux64.h: Redefine
20251 NEED_INDICATE_EXEC_STACK to 1 instead of setting SUBTARGET_FILE_END.
20252 * config/i386/winnt.c (i386_pe_asm_file_end): Rename to
20253 i386_pe_file_end. Take no arguments. Use ix86_file_end.
20254 * config/ia64/ia64.c (ia64_hpux_asm_file_end): Rename to
20255 ia64_hpux_file_end, make static. Take no arguments.
20256 * config/ip2k/ip2k.c (asm_file_start, asm_file_end,
20257 commands_in_prologues, commands_in_epilogues): Delete.
20258 (function_epilogue): Update to match.
20259 * config/mips/mips.c (mips_asm_file_end): Rename mips_file_end,
20260 make static. Take no arguments.
20261 (iris6_asm_file_end): Rename iris6_file_end, make static, use
20262 mips_file_end, take no arguments.
20263 Set TARGET_ASM_FILE_END to iris6_file_end or mips_file_end as
20264 appropriate.
20265 * config/mmix/mmix.c (mmix_asm_file_end): Rename mmix_file_end,
20266 make static, take no arguments. Set TARGET_ASM_FILE_END to
20267 mmix_file_end.
20268 * config/pa/pa.c (output_deferred_plabels): Make static, take
20269 no arguments. Set TARGET_ASM_FILE_END to output_deferred_plabels.
20270 * config/rs6000/xcoff.h (TARGET_ASM_FILE_END): Set it.
20271 (ASM_FILE_END): Delete; move code...
20272 * config/rs6000/rs6000.c (rs6000_xcoff_file_end): ... here;
20273 new static function.
20274
20275 * config/avr/avr.h, config/cris/cris.h, config/h8300/h8300.h
20276 * config/mmix/mmix.h, config/mips/iris6.h, config/mips/mips.h:
20277 Don't set ASM_FILE_END.
20278 * config/alpha/linux-elf.h, config/m68k/linux.h, config/rs6000/linux.h
20279 * config/rs6000/linux64.h, config/s390/linux.h, config/sparc/linux.h
20280 * config/sparc/linux64.h: Set TARGET_ASM_FILE_END to
20281 file_end_indicate_exec_stack; don't set ASM_FILE_END.
20282 * config/alpha/unicosmk.h, config/i386/cygming.h
20283 * config/ia64/hpux.h: Set TARGET_ASM_FILE_END, not ASM_FILE_END.
20284 * config/arm/arm-protos.h, config/alpha/alpha-protos.h
20285 * config/avr/avr-protos.h, config/c4x/c4x-protos.h
20286 * config/h8300/h8300-protos.h, config/ia64/ia64-protos.h
20287 * config/ip2k/ip2k-protos.h, config/mips/mips-protos.h
20288 * config/mmix/mmix-protos.h, config/pa/pa-protos.h: Update.
20289
20290Sat Jun 7 18:32:13 CEST 2003 Jan Hubicka <jh@suse.cz>
20291
20292 * i386.h (OPTION_DEFAULT_SPECS): Avoid -mcpu default when -march is
20293 specified.
20294
20295Sat Jun 7 15:20:01 CEST 2003 Jan Hubicka <jh@suse.cz>
20296
20297 * Makefile.in (stageprofile_build): Kill redundant target.
20298 * i386.c (mdep_reorg): Don't pad jumps for Athlon.
20299
203002003-06-07 Andreas Jaeger <aj@suse.de>
20301
20302 * doc/tm.texi (Costs): Remove DONT_REDUCE_ADDR documentation.
20303
20304 * config/avr/avr.h: Remove comment regarding DONT_REDUCE_ADDR.
20305 * config/dsp16xx/dsp16xx.h: Likewise.
20306 * config/i386/i386.h: Likewise.
20307 * config/ip2k/ip2k.h: Likewise.
20308
203092003-06-07 Neil Booth <neil@daikokuya.co.uk>
20310
20311 * Makefile.in (OJBS, c-opts.o): Update.
20312 (c-options.c, c-options.h): Rename options.h and options.c.
20313 (options.h): Rename options_.h.
20314 (opts.o): New.
20315 * c-common.h (c_common_handle_option): Replace c_common_decode_option.
20316 (c_common_init_options): Update prototype.
20317 * c-lang.c (c_init_options): Update prototype.
20318 (LANG_HOOKS_HANDLE_OPTION): Override.
20319 (LANG_HOOKS_DECODE_OPTION): Drop.
20320 * c-opts.c: Include opts.h and options.h instead of c-options.h
20321 and c-options.c.
20322 (lang_flags): Move to file scope.
20323 (find_opt, c_common_decode_option): Remove.
20324 (CL_C, CL_OBJC, CL_CXX, CL_OBJCXX, CL_JOINED, CL_SEPARATE,
20325 CL_REJECT_NEGATIVE): Move to opts.h.
20326 (missing_arg): Update prototype.
20327 (c_common_init_options): Update for new prototype.
20328 (c_common_handle_options): Filenames are passed as N_OPTS.
20329 * hooks.c (hook_int_void_0): New.
20330 * hooks.h (hook_int_void_0): New.
20331 * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): New default.
20332 (LANG_HOOKS_HANDLE_OPTION): Default to NULL for now.
20333 (LANG_HOOKS_INITIALIZER): Update.
20334 * langhooks.h (init_options): Update.
20335 (handle_option): New.
20336 * opts.c, opts.h: New files.
20337 * opts.sh: Update c file to include opts.h and options.h.
20338 * toplev.c: Include opts.h; change options.h to options_.h.
20339 (parse_options_and_default_flags): Get lang_mask, use
20340 handle_option for language-specific handling.
20341 * objc/objc-lang.c (LANG_HOOKS_DECODE_OPTON): Drop.
20342 (LANG_HOOKS_HANDLE_OPTION): Override.
20343 (objc_init_options): Update.
20344
203452003-06-07 Magnus Kreth <magnus.kreth@gmx.de>
20346 Thibaud Gaillard <thibaud.gaillard@nto.atmel.com>
20347
20348 PR other/7031
20349 * Makefile.in (install-common): Remove GCOV_INSTALL_NAME instead of
20350 gcov.
20351
203522003-06-07 Kelley Cook <kelleycook@wideopenwest.com>
20353
20354 * configure.in (HAVE_LD_RO_RW_SECTION_MIXING): Remove quotes in
20355 section names.
20356 * configure: Regenerate.
20357
203582003-06-07 Alan Modra <amodra@bigpond.net.au>
20359
20360 * config/rs6000/linux64.h (CRT_CALL_STATIC_FUNCTION): Define.
20361
203622003-06-06 James E Wilson <wilson@tuliptree.org>
20363
20364 PR inline-asm/10890
20365 * reload1.c (merge_assigned_reloads): Abort only if two reloads have
20366 different in fields.
20367
203682003-06-06 Nathanael Nerode <neroden@gcc.gnu.org>
20369
20370 * configure.in: Make $(target_subdir) correspond with top level usage.
20371 * Makefile.in: Likewise.
20372 * configure: Regenerate.
20373
203742003-06-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20375
20376 * pa.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_ALIGNED_COMMON,
20377 ASM_OUTPUT_ALIGNED_LOCAL): Cast `SIZE' and `ALIGNED' parameters to
20378 unsigned HOST_WIDE_INT.
20379 * pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMOM, ASM_OUTPUT_ALIGNED_LOCAL):
20380 Likewise.
20381 * pa64-hpux.h (ASM_OUTPUT_ALIGNED_COMMON, ASM_OUTPUT_ALIGNED_LOCAL):
20382 Likewise.
20383
203842003-06-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20385
20386 * doc/install.texi (Prerequisites): New section documenting
20387 tools and packages necessary prior to building and/or
20388 modifying GCC.
20389 * doc/install.texi2html: Also generate prerequisites.html.
20390
203912003-06-06 Richard Earnshaw <rearnsha@arm.com>
20392
20393 PR target/11052
20394 * ifcvt.c (noce_process_if_block): Fail if the destination has
20395 side-effects.
20396
203972003-06-06 Jason Merrill <jason@redhat.com>
20398
20399 * stmt.c (resolve_asm_operand_names): Rename from
20400 resolve_operand_names. No longer static. Avoid needless copying.
20401 Don't build array of constraints.
20402 (expand_asm_operands): Build it here.
20403 * tree.h: Declare resolve_asm_operand_names.
20404
20405 * stmt.c (expand_decl): Put artificial vars into registers even
20406 when not optimizing, and don't mark the regs as user vars.
20407
204082003-06-06 J"orn Rennecke <joern.rennecke@superh.com>
20409
20410 * sh.h (FUNCTION_ARG_1): Consistently use NEW_MODE for the mode
20411 of the generated register.
20412
204132003-06-06 Daniel Jacobowitz <drow@mvista.com>
20414
20415 * config.gcc: Add a missing sparc64 case.
20416
204172003-06-06 Jakub Jelinek <jakub@redhat.com>
20418
20419 * mklibgcc.in: Propagate .note.GNU-stack section if needed into
20420 the .hidden assembly stubs.
20421
204222003-06-06 H.J. Lu <hongjiu.lu@intel.com>
20423
20424 * config.gcc (extra_headers): Add emmintrin.h for i[34567]86-*-*
20425 and x86_64-*-*.
20426
20427 * config/i386/mmintrin.h: Update version and add alternate
20428 intrinsic names.
20429 * config/i386/xmmintrin.h: Likewise.
20430
20431 * config/i386/xmmintrin.h: Include <emmintrin.h>. Move SSE2
20432 intrinsics to ...
20433 * config/i386/emmintrin.h: Here. New file.
20434
204352003-06-06 Roger Sayle <roger@eyesopen.com>
20436
20437 * fold-const.c (fold <ABS_EXPR>): Re-fold the result of folding
20438 fabs(-x) into fabs(x). Use tree_expr_nonnegative_p to determine
20439 when the ABS_EXPR (fabs or abs) is not required.
20440 (tree_expr_nonnegative_p): Move the logic that sqrt and exp are
20441 always nonnegative from fold to here. Additionally, cabs and fabs
20442 are always non-negative, and pow and atan are non-negative if
20443 their first argument is non-negative.
20444
20445 * builtins.c (fold_builtin_cabs): New function to fold cabs{,f,l}.
20446 Evaluate cabs of a constant at compile-time. Convert cabs of a
20447 non-complex argument into fabs. Convert cabs(z) into
20448 sqrt(z.r*z.r + z.i*z.i) at the tree-level with -ffast-math or
20449 -funsafe-math-optimizations or -ffast-math.
20450 (fold_builtin): Convert BUILT_IN_FABS{,F,L} into an ABS_EXPR.
20451 Fold BUILT_IN_CABS{,F,L} using fold_builtin_cabs.
20452
20453Thu Jun 5 20:51:09 CEST 2003 Jan Hubicka <jh@suse.cz>
20454
20455 * sourcebuild.texi (Front End Directory): Document new hooks.
20456
20457Fri Jun 6 11:02:35 CEST 2003 Jan Hubicka <jh@suse.cz>
20458
20459 * function.c (FLOOR_ROUND, CEIL_ROUND): Fix.
20460 * i386.md (gen_pro_epilogue_adjust_stack): Deal with gigantic
20461 stack frames.
20462 (pro_epilogue_adjust_stack_rex64_2): New pattern
20463
20464Fri Jun 6 11:03:14 CEST 2003 Jan Hubicka <jh@suse.cz>
20465 Pop Sebastian
20466 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
20467
20468 * cfghooks.h, cfghooks.c: New files.
20469 * Makefile.in (BASIC_BLOCK_H): Depends on cfghooks.h.
20470 (OBJS): Add cfghooks.o.
20471 (cfghooks.o): New rule.
20472 * basic-block.h (split_edge): Rename to rtl_split_edge.
20473 (verify_flow_info): Rename to rtl_verify_flow_info.
20474 (cfghooks.h): Included here.
20475 * cfgrtl.c (split_edge): Renamed rtl_split_edge.
20476 (verify_flow_info): Renamed rtl_verify_flow_info.
20477 * toplev.c (rest_of_compilation): Call rtl_register_cfg_hooks.
20478
20479 * basic-block.h (split_block, split_edge, flow_delete_block,
20480 redirect_edge_and_branch, redirect_edge_and_branch_force): Delete.
20481 (flow_delete_block_noexpunge): Return void.
20482 * cfg.c (verify_flow_info): New function.
20483 * cfgcleanup.c (try_simplify_condjump, outgoing_edges_match,
20484 try_crossjump_to_edge, try_optimize_cfg, delete_unreachable_blocks):
20485 Use delete_block.
20486 * cfglayout.c (function_footer): Rename to...
20487 (cfg_layout_function_footer): ... this variable
20488 (unlink_insn_chain): Make global.
20489 (fixup_reorder_chain, record_effective_endpoints): Update.
20490 (cleanup_unconditional_jumps): Use delete_block.
20491 (cfg_layout_redirect_edge, cfg_layout_split_block): Move to cfgrtl.c
20492 (cfg_layout_duplicate_bb): Use redirect_edge_and_branch_force.
20493 (cfg_layout_initialize, cfg_layout_finalize): Update hooks.
20494 * cfglayout.h (cfg_layout_redirect_edge, cfg_layout_split_block): Delete.
20495 (cfg_layout_function_footer): Declare.
20496 * cfgloopmanip (split_loop_bb): Do not update RBI.
20497 (remove_bbs): Use delete_block.
20498 (loop_reidrect_edge, loop_delete_branch_edge): Use
20499 redirect_edge_and_branch.
20500 (create_preheader): Use split_block and redirect_edge_and_branch_force.
20501 (split_edge_with): Likewise.
20502 * cfgrtl.c: Include cfglayout.h
20503 (split_edge): Rename to ...
20504 (rtl_split_edge) ... this one; make local.
20505 (redirect_edge_and_branch): Rename to ...
20506 (rtl_redirect_edge_and_branch) ... this one; make local.
20507 (redirect_edge_and_branch_force): Rename to ...
20508 (rtl_redirect_edge_and_branch_force) ... this one; make local.
20509 (cfg_layout_delete_block, cfg_layout_delete_edge_and_branch_force): New.
20510 (cfg_layout_redirect_edge_and_branch, cfg_layout_split_block): Move here from
20511 cfglayout.c; update to directly call RTL counterparts.
20512 (rtl_cfg_hooks, cfg_layout_rtl_cfg_hooks): New functions.
20513 * ifcvt.c (find_cond_trap): Use delete_block.
20514 (find_if_case_1): Use delete_block.
20515 (find_if_case_2): Use delete_block.
20516 * rtl.h (unlink_insn_chain): Declare.
20517 * toplev.c (rtl_reigster_cfg_hooks): New.
20518
205192003-06-05 Richard Henderson <rth@redhat.com>
20520
20521 * recog.c (peephole2_optimize): Revert last change.
20522
205232003-06-05 Richard Henderson <rth@redhat.com>
20524
20525 * recog.c (peephole2_optimize): Don't split block unless
20526 can_throw_internal.
20527
205282003-06-06 Kazu Hirata <kazu@cs.umass.edu>
20529
20530 * config/h8300/h8300.c (get_shift_alg): Correct the syntax of rotxl.
20531 * config/h8300/h8300.md (*addsi3_lshiftrt_16_zexthi): Likewise.
20532
205332003-06-05 Kelley Cook <kelleycook@wideopenwest.com>
20534
20535 PR optimization/4490
20536 * config/i386/i386.md: Don't use XFMode if TARGET_128BIT_LONG_DOUBLE.
20537 * doc/invoke.texi (m96bit-long-double, m128bit-long-double): Reword
20538 documentation to accurately reflect what these options do.
20539
205402003-06-06 Kaz Kojima <kkojima@gcc.gnu.org>
20541
20542 * config/sh/linux.h (STARTFILE_SPEC): Handle -pie. Simplify.
20543 (ENDFILE_SPEC): Redefine to handle -pie.
20544
205452003-06-05 Phil Edwards <phil@jaj.com>
20546
20547 * Makefile.in (qmtest-g++): Use target_alias, not target.
20548
205492003-06-05 Per Bothner <pbothner@apple.com>
20550
20551 * toplev.c (push_srcloc): Simplify behavior to save current location
20552 and set current location to parameters.
20553 (pop_srcloc): Simplify semantics.
20554 (lang_dependent_init): Remove now-useless initial push_srcloc.
20555
205562003-05-06 Richard Henderson <rth@redhat.com>
20557
20558 * dwarf2out.c (loc_descriptor_from_tree): Return 0 for
20559 language-specific tree codes.
20560
205612003-06-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20562
20563 PR middle-end/9986
20564 * pa.c (pa_init_builtins): Also set implicit_built_in_decls for
20565 BUILT_IN_FPUTC_UNLOCKED to NULL_TREE.
20566
20567Thu Jun 5 18:32:46 CEST 2003 Jan Hubicka <jh@suse.cz>
20568
20569 * install.tex: Document profiledbootstrap.
20570
20571 * configure.in: Add support for lang.stageprofile and
20572 lang.stagefeedback
20573 * Makefile.in (clean, distclean): Kill new stages
20574 (POSTSTAGE1_FLAGS_TO_PASS): Break from ...
20575 (STAGE2_FLAGS_TO_PASS): ... this one.
20576 (STAGEPROFILE_FLAGS_TO_PASS, STAGEFEEDBACK_FLAGS_TO_PASS): New.
20577 (stage[2-4]_build): Add POSTSTAGE1_FLAGS_TO_PASS.
20578 (stageprofile_build, stageprofile_copy, stagefeedback_build,
20579 stagefeedback_copy): New.
20580 (restageprofile, restagefeedback, stageprofile-start,
20581 stageprofile, stagefeedback-start): Likewise.
20582
205832003-06-05 David Miller <davem@redhat.com>
20584 Richard Henderson <rth@redhat.com>
20585
20586 * optabs.c (HAVE_conditional_trap): Provide default.
20587 (gen_conditional_trap): Likewise.
20588 (init_optabs): Merge init_traps.
20589 (gen_cond_trap): Use prepare_operand. Restructure and avoid ifdef.
20590
20591Thu Jun 5 14:59:44 CEST 2003 Jan Hubicka <jh@suse.cz>
20592
20593 * combine.c (simplify_if_then_else): (IF_THEN_ELSE (NE REG 0) (0) (8))
20594 is REG for nonzero_bits (REG) == 8.
20595
20596Thu Jun 5 13:23:51 CEST 2003 Jan Hubicka <jh@suse.cz>
20597
20598 * i386.md (align): Fix warning; clarify what to do when no p2align
20599 is available.
20600
206012003-06-05 Nick Clifton <nickc@redhat.com>
20602
20603 * config.gcc (m32r-elf): Revert previous delta.
20604 * config/m32r/t-m32r (crtinit.o): Fix rule to work with
20605 multilibs. Remove m32rx specific version.
20606 (crtfini.o): Likewise.
20607 (EXTRA_MULTILIB_PARTS): Define.
20608
206092003-06-05 Eric Botcazou <ebotcazou@libertysurf.fr>
20610
20611 * doc/md.texi (Machine Constraints): Correct the meaning of
20612 constraints related to floating-point registers on SPARC.
20613
206142003-06-05 Eric Botcazou <ebotcazou@libertysurf.fr>
20615 Paolo Bonzini <bonzini@gnu.org>
20616
20617 PR target/10663
20618 * configure.in (HAVE_LD_RO_RW_SECTION_MIXING): Redirect
20619 assembler and linker output to /dev/null.
20620 Use a 'sed' construct instead of 'grep -A1'.
20621 * configure: Regenerate.
20622
206232003-06-04 Richard Henderson <rth@redhat.com>
20624
20625 * config/i386/i386.c (struct ix86_address): Add seg.
20626 (no_seg_address_operand): New.
20627 (ix86_decompose_address): Restructure PLUS loop. Accept one
20628 UNSPEC_TP if TARGET_TLS_DIRECT_SEG_REFS. Adjust ESP swap test
20629 to test for a regnum, not stack_pointer_rtx.
20630 (ix86_address_cost): Reduce cost if non-default segment.
20631 (legitimate_address_p): Remove UNSPEC_TP check.
20632 (get_thread_pointer): Add to_reg argument. Don't represent
20633 the thread pointer as a memory load.
20634 (legitimize_tls_address): Split out of ...
20635 (legitimize_address): ... here.
20636 (print_operand_address): Handle parts.seg.
20637 (ix86_expand_move): Use legitimize_tls_address.
20638 (ix86_rtx_costs): Handle UNSPEC_TP.
20639 * config/i386/i386.h (MASK_TLS_DIRECT_SEG_REFS): New.
20640 (TARGET_TLS_DIRECT_SEG_REFS): New.
20641 (TARGET_SWITCHES): Add tls-direct-seg-refs.
20642 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Default.
20643 (PREDICATE_CODES): Add no_seg_address_operand.
20644 * config/i386/i386.md (lea_1): Use it.
20645 (lea_1_rex64, lea_1_zext, lea_2_rex64): Likewise.
20646 (load_tp_si, add_tp_si, load_tp_di, add_tp_di): New.
20647 * config/i386/linux.h (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): New.
20648 * config/i386/linux64.h (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): New.
20649 * doc/invoke.texi: Add -mtls-direct-seg-refs.
20650
206512003-06-04 Mark Mitchell <mark@codesourcery.com>
20652
20653 * Makefile.in (QMTESTRUNFLAGS): Set for DejaGNU emulation.
20654 (QMTEST_GPP_TESTS): Use "g++" by default.
20655 (stamp-qmtest): Tweak database creation.
20656 (QMTEST_DIR/context): Update context file format.
20657 (qmtest-g++): Tweak command-line.
20658
206592003-06-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20660
20661 * Makefile.in (varasm.o): Don't set -Wno-error.
20662 * rs6000/t-rs6000 (varasm.o, out_object_file): Don't clear.
20663
206642003-06-04 Zack Weinberg <zack@codesourcery.com>
20665
20666 PR bootstrap/3163
20667 * aclocal.m4 (AC_FUNC_MMAP_ANYWHERE, AC_FUNC_MMAP_FILE): Delete.
20668 (gcc_AC_FUNC_MMAP_BLACKLIST): New.
20669 * configure.in: Check for sys/mman.h and mmap in AC_CHECK_HEADERS
20670 and AC_CHECK_FUNCS lists, respectively. Use
20671 gcc_AC_FUNC_MMAP_BLACKLIST, not AC_FUNC_MMAP_ANYWHERE nor
20672 AC_FUNC_MMAP_FILE.
20673 * configure, config.in: Regenerate.
20674
206752003-06-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20676
20677 * arm/aout.h (ASM_OUTPUT_SKIP): Fix cast for format specifier warning.
20678 * arm.c (arm_output_function_prologue): Fix format specifiers.
20679 * arm.h (ARM_PRINT_OPERAND_ADDRESS): Likewise.
20680 * m68k.c (m68k_output_mi_thunk): Use more readable %wd instead of
20681 HOST_WIDE_INT_PRINT_DEC.
20682 * vax.c (vax_output_function_prologue): Fix format specifiers.
20683
206842003-06-04 Richard Henderson <rth@redhat.com>
20685
20686 * cse.c (find_best_addr): Consider binary operators even if second
20687 argument is not CONST_INT.
20688
206892003-06-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
20690
20691 * doc/invoke.texi (max-cse-path-length): Document.
20692
206932003-06-04 Richard Henderson <rth@redhat.com>
20694
20695 * config/i386/i386.md (align): Use ASM_OUTPUT_*ALIGN macros.
20696
206972003-06-04 Andrew Pinski <pinskia@physics.uc.edu>
20698
20699 * config/rs6000/darwin.h (RS6000_OUTPUT_BASENAME):
20700 Remove semi-colon at the end of the expression.
20701
207022003-06-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20703
20704 * i370.c (mvs_function_name_length): Fix signed/unsigned warnings.
20705 * i370.h (mvs_function_name_length): Likewise.
20706 * i960.h (CONSTANT_ALIGNMENT): Likewise.
20707 * mips/linux.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
20708 * pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
20709 * pa.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
20710 * rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Delete unused
20711 variable.
20712
207132003-06-04 Daniel Jacobowitz <drow@mvista.com>
20714
20715 * config.gcc: Reorganize --with-cpu logic. Set
20716 configure_default_options according to the default CPU, --with-cpu,
20717 --with-arch, --with-tune, --with-schedule, --with-abi, and
20718 --with-float. Check for legal values of various options.
20719 * configure.in: Define configure_default_options in configargs.h.
20720 * configure: Regenerated.
20721 * config/mips/mips.h (TARGET_DEFAULT_ARCH_P)
20722 (TARGET_DEFAULT_FLOAT_P): New macros.
20723 * gcc.c (do_option_spec): New function.
20724 (struct default_spec, option_default_specs): New.
20725 (main): Call do_option_spec.
20726 * config/alpha/alpha.h, config/arm/arm.h, config/i386/i386.h,
20727 config/mips/mips.h, config/pa/pa.h, config/rs6000/rs6000.h,
20728 config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Define.
20729
20730 * doc/install.texi: Update --with-cpu documentation. Mention
20731 --with-arch, --with-schedule, --with-tune, --with-abi, and
20732 --with-float.
20733 * doc/tm.texi (Driver): Document OPTION_DEFAULT_SPECS.
20734
207352003-06-04 Daniel Jacobowitz <drow@mvista.com>
20736
20737 * config.gcc: Only process --with-cpu logic in the third pass.
20738
207392003-06-04 Daniel Jacobowitz <drow@mvista.com>
20740
20741 * config.gcc: Reorganize --with-cpu section. Remove an
20742 obsolete comment about the default CPU for x86-64. Fix
20743 a typo for the ep9312. Update the list of supported PowerPC
20744 CPUs. Support a limited set of new --with-cpu options
20745 for i386.
20746
207472003-06-04 Aldy Hernandez <aldyh@redhat.com>
20748
20749 * config/rs6000/rs6000.c (rs6000_complex_function_value): Unpack
20750 complex numbers <= 32 bits into two registers.
20751
207522003-06-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20753
20754 * alpha.c (print_operand_address): Fix format specifier warnings.
20755 * alpha/elf.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
20756 * alpha/vms.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
20757 * arm/aof.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
20758 * arm/pe.h (ASM_OUTPUT_COMMON): Likewise.
20759 * avr.h (ASM_OUTPUT_COMMON, ASM_GENERATE_INTERNAL_LABEL,
20760 ASM_OUTPUT_SKIP): Likewise.
20761 * c4x.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
20762 * dsp16xx.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
20763 * h8300.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_COMMON):
20764 Likewise.
20765 * i370.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
20766 * i386/cygming.h (ASM_OUTPUT_COMMON): Likewise.
20767 * i386/darwin.h (ASM_OUTPUT_COMMON): Likewise.
20768 * i960.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
20769 * m68k/hp320.h (PRINT_OPERAND_ADDRESS): Likewise.
20770 * mcore.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
20771 * pdp11.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
20772 * ptx4.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
20773 * sparc/freebsd.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
20774 * svr3.h (ASM_OUTPUT_COMMON): Likewise.
20775
207762003-06-04 J"orn Rennecke <joern.rennecke@superh.com>
20777
20778 * c-decl.c (c_init_decl_processing): Clear input_file_name
20779 while building common nodes.
20780 * dwarf2out.c (gen_compile_unit_die, dwarf2out_finish):
20781 Don't add working directory for strings like <built-in> .
20782
207832003-06-04 David Edelsohn <edelsohn@gnu.org>
20784
20785 * doc/install.texi (*-ibm-aix*): Native as and ld required
20786 to bootstrap on AIX 5L.
20787
207882003-06-04 Richard Henderson <rth@redhat.com>
20789
20790 * c-common.c (handle_cleanup_attribute): New.
20791 (c_common_attributes): Add it.
20792 * c-decl.c (finish_decl): Honor the cleanup attribute.
20793 * doc/extend.texi (Variable Attributes): Document it.
20794
20795 * unwind-c.c: New file.
20796 * Makefile.in (LIB2ADDEH): Add it.
20797 * config/t-darwin, config/t-linux, config/t-linux-gnulibc1,
20798 config/ia64/t-ia64: Likewise.
20799
208002003-06-04 Jakub Jelinek <jakub@redhat.com>
20801
20802 * function.c (trampolines_created): New variable.
20803 (expand_function_end): Set it when doing INITIALIZE_TRAMPOLINE.
20804 * function.h (trampolines_created): Add.
20805 * config/s390/linux.h (ASM_FILE_END): Define.
20806 * config/alpha/linux-elf.h (ASM_FILE_END): Define.
20807 * config/m68k/linux.h (ASM_FILE_END): Define.
20808 * config/rs6000/linux.h (ASM_FILE_END): Define.
20809 * config/rs6000/linux64.h (ASM_FILE_END): Define.
20810 * config/rs6000/ppc-asm.h: Add .note.GNU-stack on powerpc-linux.
20811 * config/sparc/linux.h (ASM_FILE_END): Define.
20812 * config/sparc/linux64.h (ASM_FILE_END): Define.
20813 * config/i386/i386.c (ix86_asm_file_end): Use SUBTARGET_FILE_END.
20814 * config/i386/linux.h (SUBTARGET_FILE_END): Define.
20815 * config/i386/linux64.h (SUBTARGET_FILE_END): Define.
20816
20817Wed Jun 4 18:39:33 CEST 2003 Jan Hubicka <jh@suse.cz>
20818
20819 * i386.c (min_insn_size, k8_avoid_jump_misspredicts): New functions
20820 (ix86_reorg): Use it.
20821 * i386.md (align): New insn pattern.
20822
208232003-06-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20824
20825 * toplev.c (rest_of_type_compilation): Fix typo.
20826
208272003-06-04 Jakub Jelinek <jakub@redhat.com>
20828 Alan Modra <amodra@bigpond.net.au>
20829
20830 * config/i386/linux.h (NO_PROFILE_COUNTERS): Define to 1.
20831 * config/i386/freebsd.h (NO_PROFILE_COUNTERS): Likewise.
20832 * config/i386/netbsd-elf.h (NO_PROFILE_COUNTERS): Likewise.
20833 * config/xtensa/xtensa.h (NO_PROFILE_COUTNERS): Likewise.
20834 * config/darwin.h (NO_PROFILE_COUNTERS): Likewise.
20835 * final.c (NO_PROFILE_COUNTERS): Define to 0 if not defined.
20836 (profile_function): Allow NO_PROFILE_COUNTERS to be non-constant.
20837 * config/rs6000/rs6000.c (output_profile_hook): Likewise.
20838
20839 * configure.in (powerpc*-*, s390*-*): Set tls_as_opt.
20840 Pass it to $gcc_cv_as.
20841 * configure: Rebuilt.
20842
20843 * config/rs6000/rs6000.c (rs6000_abi_name): Remove initializer.
20844 (print_operand): Allow TARGET_AIX to be non-constant.
20845 (rs6000_aix_emit_builtin_unwind_init, rs6000_emit_eh_toc_restore):
20846 Define unconditionally.
20847 (rs6000_elf_declare_function_name): New function.
20848 * config/rs6000/rs6000.md (eh_return): Allow TARGET_AIX to be
20849 non-constant.
20850 * config/rs6000/linux64.h [!RS6000_BI_ARCH] (TARGET_64BIT): Define
20851 to 1.
20852 (DEFAULT_ARCH64_P, RS6000_BI_ARCH_P): Define.
20853 [IN_LIBGCC2] (TARGET_64BIT): Define based on whether __powerpc64__
20854 is defined.
20855 (TARGET_AIX): Define to 1 if TARGET_64BIT.
20856 (PROCESSOR_DEFAULT): Remove.
20857 (TARGET_RELOCATABLE, RS6000_ABI_NAME, INVALID_64BIT,
20858 INVALID_32BIT, SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
20859 [RS6000_BI_ARCH] (OVERRIDE_OPTIONS, ASM_FILE_START): Define.
20860 (ASM_DEFAULT_SPEC, ASM_SPEC, LINK_OS_LINUX_SPEC): Define for both
20861 -m32 and -m64.
20862 (MULTILIB_DEFAULTS): Define.
20863 (SUBSUBTARGET_EXTRA_SPECS): Define.
20864 (ASM_SPEC32, ASM_SPEC64, ASM_SPEC_COMMON): Define.
20865 (TARGET_TOC): Define only if !RS6000_BI_ARCH.
20866 (TARGET_NO_TOC): Remove.
20867 [!RS6000_BI_ARCH] (TARGET_RELOCATABLE, TARGET_EABI,
20868 TARGET_PROTOTYPE): Define to 0.
20869 (NO_PROFILE_COUNTERS): Define to TARGET_64BIT.
20870 (PROFILE_HOOK): Only call output_profile_hook if TARGET_64BIT.
20871 (ADJUST_FIELD_ALIGN, ROUND_TYPE_ALIGN): Adjust to work properly
20872 if !TARGET_64BIT.
20873 (USER_LABEL_PREFIX): Remove.
20874 (JUMP_TABLES_IN_TEXT_SECTION): Define to TARGET_64BIT.
20875 (SETUP_FRAME_ADDRESSES): Only call rs6000_aix_emit_builtin_unwind_init
20876 if TARGET_64BIT.
20877 (TARGET_OS_CPP_BUILTINS): Handle both -m32 and -m64.
20878 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Define.
20879 (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Remove.
20880 (TOC_SECTION_ASM_OP): Define depending on TARGET_64BIT.
20881 (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
20882 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE): Define depending on
20883 TARGET_64BIT.
20884 (RS6000_CALL_GLUE): Likewise.
20885 (SAVE_FP_PREFIX, SAVE_FP_SUFFIX, RESTORE_FP_PREFIX,
20886 RESTORE_FP_SUFFIX): Likewise.
20887 (ASM_DECLARE_FUNCTION_NAME): Remove.
20888 (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_SOURCE_LINE,
20889 DBX_OUTPUT_BRAC, DBX_OUTPUT_NFUN): Only output dot before function
20890 name if TARGET_64BIT.
20891 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Handle both TARGET_64BIT and
20892 !TARGET_64BIT.
20893 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Remove undefs.
20894 (ASM_PREFERRED_EH_DATA_FORMAT): Take TARGET_64BIT into account.
20895 (DRAFT_V4_STRUCT_RET): Define.
20896 (SIGNAL_FRAMESIZE): New enum value.
20897 (MD_FALLBACK_FRAME_STATE_FOR): Define.
20898 * config/rs6000/default64.h: New file.
20899 * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -m32 and -m64
20900 options.
20901 (SUBTARGET_OVERRIDE_OPTIONS): If rs6000_abi_name is NULL, set it
20902 to RS6000_ABI_NAME. Only disallow mixing of -fPIC with -mcall-aixdesc
20903 if !TARGET_64BIT.
20904 [!RS6000_BI_ARCH] (SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
20905 (ASM_DECLARE_FUNCTION_NAME): Use rs6000_elf_declare_function_name
20906 function.
20907 (TARGET_OS_SYSV_CPP_BUILTINS): Define.
20908 (TARGET_OS_CPP_BUILTINS): Use it.
20909 (CPP_SYSV_SPEC): Remove.
20910 (CPP_SPEC): Remove cpp_sysv.
20911 (SUBTARGET_EXTRA_SPECS): Remove cpp_sysv.
20912 Add SUBSUBTARGET_EXTRA_SPECS.
20913 (SUBSUBTARGET_EXTRA_SPECS): Define.
20914 * config/rs6000/biarch64.h: New file.
20915 * config/rs6000/rs6000-protos.h (rs6000_elf_declare_function_name):
20916 New prototype.
20917 * config/rs6000/x-linux64: New file.
20918 * config/rs6000/t-linux64: Build -m64, -m32 and -m32 -msoft-float
20919 multilibs.
20920 * config/rs6000/eabi-ci.asm: Protect with #ifndef __powerpc64__.
20921 * config/rs6000/eabi-cn.asm: Likewise.
20922 * config/rs6000/tramp.asm: Likewise.
20923 * config/rs6000/sol-ci.asm: Likewise.
20924 * config/rs6000/sol-cn.asm: Likewise.
20925 * config/rs6000/linux.h (TARGET_64BIT): Define to 0.
20926 (TARGET_OS_CPP_BUILTINS): Use TARGET_OS_SYSV_CPP_BUILTINS.
20927 * config/rs6000/ppc-asm.h: Move __powerpc64__ section before
20928 _CALL_AIXDESC section.
20929 * config.gcc (powerpc64-*-linux*): Configure a bi-arch compiler,
20930 defaulting to -m64 unless --with-cpu= is one of the 32-bit CPUs
20931 or default32.
20932
209332003-06-04 Daniel Jacobowitz <drow@mvista.com>
20934
20935 * config.gcc: Revert accidentally committed ARM changes.
20936
209372003-06-04 Roger Sayle <roger@eyesopen.com>
20938
20939 * builtins.c (dconstpi, dconste): New mathematical constants.
20940 (init_builtin_dconsts): New function to initialize dconstpi
20941 and dconste.
20942 (fold_builtin): Optimize exp(1.0) = e. Evaluate exp(x) at
20943 compile time with -ffast-math when x is an integer constant.
20944 Optimize tan(0.0) = 0.0. Optimize atan(0.0) = 0.0,
20945 atan(1.0) = pi/4 and tan(atan(x)) = x with -ffast-math.
20946
209472003-06-04 Roger Sayle <roger@eyesopen.com>
20948
20949 * calls.c (expand_call): Avoid calling pure or const functions
20950 when the result is ignored (or void) and none of the arguments
20951 are volatile. Move warning diagnostic earlier in function.
20952
209532003-06-04 Andreas Jaeger <aj@suse.de>
20954
20955 * system.h: Do not poison TDESC_SECTION_ASM_OP,
20956 RDATA_SECTION_ASM_OP and SUBTARGET_PROLOGUE.
20957
209582003-06-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20959
20960 * final.c (asm_fprintf): Update comments, accept "-+ #0" flags,
20961 optimize '%' case, handle %c, don't accept %p, %e, %f or %g,
20962 handle %ll, optimize regular character case.
20963
209642003-06-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
20965
20966 * Makefile.in (cse.o): Add params.h dependency.
20967 * cse.c: Include params.h.
20968 (PATHLENGTH): Removed.
20969 (struct cse_basic_block_data): Make path array dynamic.
20970 (cse_end_of_basic_block): Use PARAM_MAX_CSE_PATH_LENGTH instead
20971 of PATHLENGTH.
20972 (cse_main, cse_basic_block): Allocate path array.
20973 * params.def (PARAM_MAX_CSE_PATH_LENGTH): New.
20974
20975Wed Jun 4 09:49:21 CEST 2003 Jan Hubicka <jh@suse.cz>
20976
20977 * i386.c (ix86_reorg): Replace the jump instead of adding nop.
20978 * i386.md (UNSPEC_REP): New constant.
20979 (return_internal_long): New pattern.
20980
209812003-06-04 Eric Botcazou <ebotcazou@libertysurf.fr>
20982
20983 PR optimization/11018
20984 * config/sparc/sparc.c (sparc_v8plus_shift): Use which_alternative
20985 consistently to decide whether the scratch register is really
20986 required.
20987
209882003-06-04 Eric Botcazou <ebotcazou@libertysurf.fr>
20989
20990 PR optimization/10876
20991 * config/sparc/sparc.h (CONST_OK_FOR_LETTER): Add
20992 new 'O' constraint for constant 4096.
20993 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
20994 * config/sparc/sparc.md (adddi3 expander): Canonicalize pattern.
20995 Do not transform into MINUS insn for constant 4096.
20996 (*adddi3_sp64 insn): Canonicalize pattern. Add new alternative
20997 for constant 4096 as third operand.
20998 (addsi3 expander): Remove.
20999 (*addsi3 insn): Rename into 'addsi3'. Canonicalize pattern. Add
21000 new alternative for constant 4096 as third operand.
21001 (subdi3 expander): Do not transform into PLUS insn for constant 4096.
21002 (*subdi3_sp64 insn): Add new alternative for constant 4096 as third
21003 operand.
21004 (subsi3 expander): Remove.
21005 (*subsi3 insn): Rename into 'subsi3'. Add new alternative for
21006 constant 4096 as third operand.
21007 * doc/md.texi (Machine Constraints): Document new 'O' constraint for
21008 the SPARC port.
21009
210102003-06-03 Chris Demetriou <cgd@broadcom.com>
21011
21012 * config/mips/t-linux64 (CRTSTUFF_T_CFLAGS_S): Define.
21013
210142003-06-04 Andreas Jaeger <aj@suse.de>
21015
21016 * config/i386/uwin.h: Remove SUBTARGET_PROLOGUE.
21017
21018 * config/i386/i386.c (ix86_expand_prologue): Do not use
21019 SUBTARGET_PROLOGUE.
21020
21021 * system.h: Poision SUBTARGET_PROLOGUE.
21022
21023 * config/arm/arm-protos.h: Remove unused rdate_section prototype.
21024
21025 * output.h: Remove TDESC_SECTION_ASM_OP and RDATA_SECTION_ASM_OP
21026 dependend code.
21027
21028 * system.h: Poison TDESC_SECTION_ASM_OP and RDATA_SECTION_ASM_OP.
21029
21030 * system.h: Poison INSN_CACHE_DEPTH, INSN_CACHE_SIZE and
21031 INSN_CACHE_LINE_WIDTH.
21032
21033 * libgcc2.c (INSN_CACHE_PLANE_SIZE): Removed.
21034 (__clear_cache): Remove code dependend on INSN_CACHE_DEPTH,
21035 INSN_CACHE_SIZE and INSN_CACHE_LINE_WIDTH.
21036
21037 * doc/tm.texi (Trampolines): Remove INSN_CACHE_DEPTH,
21038 INSN_CACHE_SIZE and INSN_CACHE_LINE_WIDTH.
21039
21040 * dbxout.c (dbxout_type): Remove usage of DBX_OUTPUT_ENUM.
21041 (dbxout_symbol): Remove usage of DBX_OUTPUT_CONSTANT_SYMBOL.
21042 (dbxout_block): Remove usage of DBX_OUTPUT_CATCH.
21043 (dbxout_block): Remove usage of DBX_LBRAC_FIRST.
21044 (dbxout_source_file): Remove usage of DBX_OUTPUT_SOURCE_FILENAME.
21045 (dbxout_init): Remove test for DBX_WORKING_DIRECTORY.
21046
21047 * doc/tm.texi (DBX Options): Do not document DBX_LBRAC_FIRST,
21048 DBX_OUTPUT_SOURCE_FILENAME and DBX_OUTPUT_ENUM and
21049 DBX_WORKING_DIRECTORY.
21050
21051 * system.h: Poison DBX_LBRAC_FIRST, DBX_OUTPUT_ENUM,
21052 DBX_OUTPUT_SOURCE_FILENAME and DBX_WORKING_DIRECTORY.
21053
21054 * config/frv/frv-protos.h: Remove unused const_section
21055 declaration.
21056 * config/vax/vax-protos.h: Likewise.
21057
21058 * output.h: Remove CONST_SECTION_ASM_OP usage.
21059
21060 * system.h: Poison CONST_SECTION_ASM_OP.
21061
21062 * crtstuff.c (__do_global_dtors_aux): Remove usage of
21063 CRT_GET_RFIB_TEXT.
21064 (frame_dummy): Likewise.
21065 * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Likewise.
21066 * system.h: Poison CRT_GET_RFIB_TEXT.
21067
21068 * collect2.c (is_ctor_dtor): Remove CFRONT_LOSSAGE dependend code.
21069
21070 * fix-header.c: Remove ADD_MISSING_EXTERN_C dependend variables.
21071 (write_lbrac): Remove ADD_MISSING_EXTERN_C dependend code.
21072 (recognized_function): Likewise.
21073 (read_scan_file): Likewise.
21074
210752003-06-03 Roger Sayle <roger@eyesopen.com>
21076
21077 * optabs.c (expand_binop): Optimize complex multiplication for
21078 the case of squaring a complex argument.
21079
210802003-06-03 Roger Sayle <roger@eyesopen.com>
21081
21082 * optabs.c (expand_binop): Attempt to reuse pseudos for duplicate
21083 non-volatile operands of binary operations.
21084 (prepare_cmp_insn): Likewise.
21085
210862003-06-03 Roger Sayle <roger@eyesopen.com>
21087
21088 * varasm.c (force_const_mem): Handle alignment of constants not
21089 representable as a type in the front-end language.
21090
210912003-06-03 Kazu Hirata <kazu@cs.umass.edu>
21092
21093 * flow.c (initialize_uninitialized_subregs): Use
21094 emit_move_insn instead of emitting a hardcoded move.
21095
210962003-06-03 Richard Henderson <rth@redhat.com>
21097
21098 * optabs.c (expand_abs_nojump): Split out from ...
21099 (expand_abs): ... here.
21100 * optabs.h (expand_abs_nojump): Declare.
21101 * ifcvt.c: (noce_try_abs): Use expand_abs_nojump.
21102 * Makefile.in (ifcvt.o): Depend on optabs.h.
21103
211042003-06-03 Alan Modra <amodra@bigpond.net.au>
21105
21106 * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Heed flag_merge_constants.
21107
211082003-06-03 Jason Thorpe <thorpej@wasabisystems.com>
21109
21110 * config.gcc (default_use_cxa_atexit): New variable, defaults to no.
21111 (*-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*): Set default_use_cxa_atexit
21112 to yes.
21113 * configure.in: Allow default_use_cxa_atexit to determine the
21114 value of DEFAULT_USE_CXA_ATEXIT if not explicitly enabled or
21115 disabled.
21116 * configure: Regenerate.
21117
211182003-06-03 Douglas B Rupp <rupp@gnat.com>
21119
21120 * Makefile.in (TEXI_GCC_FILES): Remove vms.texi entry.
21121 * doc/gcc.texi: Remove vms.texi section.
21122 * doc/vms.texi: Remove obsolete file.
21123
211242003-05-23 J"orn Rennecke <joern.rennecke@superh.com>
21125
21126 * configure.in (inhibit_libc): Don't define when configuring
21127 with --with-newlib --with-headers.
21128 * configure: Regenerate.
21129
21130 * t-sh: Remove LIB2FUNCS_EXTRA and embed-bb.c rules.
21131
211322003-06-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
21133
21134 * configure.in (gcc_cv_as_hidden): Disable .hidden completely on
21135 IRIX 6 without GNU ld.
21136 * configure: Regenerate.
21137
211382003-06-03 Roger Sayle <roger@eyesopen.com>
21139
21140 * expr.c (emit_move_insn_1): Use emit_move_insn to move the parts
21141 of a complex number rather than invoke mov_optab directly.
21142
211432003-06-03 Kazu Hirata <kazu@cs.umass.edu>
21144
21145 * combine.c (simplify_set): Don't move a subreg in SET_SRC to
21146 SET_DEST if WORD_REGISTER_OPERATIONS is not defined.
21147
211482003-06-03 Nathanael Nerode <neroden@gcc.gnu.org>
21149
21150 * config/i386/x86-64.h: Remove two target-independent comments;
21151 replace "GNU CC" with "GCC".
21152
211532003-06-03 Anthony Green <green@redhat.com>
21154
21155 * config/frv/t-frv (EXTRA_HEADERS): Remove media.h
21156
211572003-06-03 Roger Sayle <roger@eyesopen.com>
21158
21159 * builtins.def (BUILT_IN_CABS, BUILT_IN_CABSF, BUILT_IN_CABSL):
21160 New builtins representing ISO C99's cabs, cabsf and cabsl.
21161 * builtins.c (expand_builtin_fabs): New function.
21162 (expand_builtin_cabs): New function.
21163 (expand_builtin): Expand BUILT_IN_FABS{,F,L} and BUILT_IN_CABS{,F,L}
21164 using expand_builtin_fabs and expand_builtin_cabs respectively.
21165
21166 * doc/extend.texi: Document new cabs, cabsf and cabsl builtins.
21167
211682003-06-03 Aldy Hernandez <aldyh@redhat.com>
21169
21170 * function.c (assign_parms): Split complex arguments.
21171
21172 * doc/tm.texi (SPLIT_COMPLEX_ARGS): Document.
21173
21174 * expr.h (SPLIT_COMPLEX_ARGS): Define.
21175 (split_complex_types): Protoize.
21176 (split_complex_values): Protoize.
21177
21178 * calls.c (expand_call): Split complex arguments on architectures
21179 that require it.
21180 (split_complex_values): New.
21181 (split_complex_types): New.
21182
21183 * config/rs6000/rs6000.c (rs6000_libcall_value): New.
21184 (rs6000_function_value): Handle complex values on AIX.
21185 (rs6000_complex_function_value): New.
21186
21187 * config/rs6000/rs6000-protos.h (rs6000_libcall_value): Protoize.
21188
21189 * config/rs6000/rs6000.h (LIBCALL_VALUE): Call function.
21190 (SPLIT_COMPLEX_ARGS): New.
21191
211922003-06-03 Jakub Jelinek <jakub@redhat.com>
21193
21194 * configure.in (HAVE_LD_PIE): Check for ld -pie.
21195 * config.in: Rebuilt.
21196 * configure: Rebuilt.
21197 * toplev.c (flag_pie, flag_shlib): New variables.
21198 (f_options): Add -fpie and -fPIE.
21199 (parse_options_and_default_flags): Set flag_pic if -fpie/-fPIE.
21200 Set flag_shlib if flag_pic and not -fpie/-fPIE.
21201 * flags.h (flag_pic, flag_shlib): Add.
21202 * varasm.c (default_binds_local_p): Use flag_shlib instead of
21203 flag_pic.
21204 * gcc.c (LINK_PIE_SPEC): Define.
21205 (LINK_COMMAND_SPEC): Use LINK_PIE_SPEC.
21206 (option_map): Add --pie -> -pie mapping.
21207 * config/sol2.h (ASM_SPEC): Handle -fpie the same way as -fpic
21208 and -fPIE the same way as -fPIC.
21209 * config/openbsd.h (ASM_SPEC): Likewise.
21210 * config/frv/frv.h (ASM_SPEC): Likewise.
21211 * config/arm/linux-gas.h (SUBTARGET_CPP_SPEC): Likewise.
21212 * config/arm/semi.h (ASM_SPEC): Likewise.
21213 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
21214 * config/freebsd-spec.h (FBSD_CPP_SPEC): Likewise.
21215 * config/i386/beos-elf.h (CC1_SPEC): Likewise.
21216 * config/i386/freebsd-aout.h (ASM_SPEC): Likewise.
21217 * config/m68k/linux.h (CPP_SPEC): Likewise.
21218 * config/m68k/netbsd.h (ASM_SPEC): Likewise.
21219 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
21220 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
21221 * config/mips/linux.h (SUBTARGET_CPP_SPEC): Likewise.
21222 * config/mips/openbsd.h (SUBTARGET_ASM_SPEC): Likewise.
21223 * config/pa/pa-linux.h (CPP_SPEC): Likewise.
21224 * config/netbsd-aout.h (ASM_SPEC): Likewise.
21225 * config/rs6000/sysv4.h (ASM_SPEC, CPP_SYSV_SPEC): Likewise.
21226 * config/rs6000/vxworks.h (CPP_SPEC): Likewise.
21227 * config/sparc/linux.h (CPP_SUBTARGET_SPEC, ASM_SPEC): Likewise.
21228 * config/sparc/linux64.h (CPP_SUBTARGET_SPEC, ASM_SPEC): Likewise.
21229 * config/sparc/sparc.h (ASM_SPEC): Likewise.
21230 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
21231 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
21232 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
21233 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
21234 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
21235 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC): Handle -pie.
21236 Simplify.
21237 * config/alpha/elf.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
21238 * config/i386/linux64.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
21239 * config/ia64/linux.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
21240 * config/rs6000/sysv4.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
21241 * config/rs6000/linux64.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
21242 * config/sparc/linux.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
21243 * config/sparc/linux64.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
21244 * doc/invoke.texi: Document -pie, -fpie and -fPIE options.
21245
212462003-06-03 Jakub Jelinek <jakub@redhat.com>
21247
21248 * builtins.c (expand_builtin_memcpy): Remove endp argument and endp
21249 != 0 handling. Pass 0 to store_by_pieces.
21250 (expand_builtin_mempcpy): Add endp argument. Don't call
21251 expand_builtin_memcpy, call store_by_pieces resp. move_by_pieces
21252 directly. If ignoring result, only do expand_call.
21253 (expand_builtin_stpcpy): Likewise. Call expand_builtin_mempcpy
21254 otherwise.
21255 (expand_builtin_strncpy, expand_builtin_memset): Adjust
21256 store_by_pices callers.
21257 (expand_builtin): Adjust expand_builtin_memcpy and
21258 expand_builtin_mempcpy callers.
21259 * expr.c (can_move_by_pieces): New function.
21260 (move_by_pieces): Add endp argument, return to resp. memory at end
21261 or one byte earlier depending on endp.
21262 (store_by_pieces): Likewise.
21263 (emit_block_move): Adjust call to move_by_pieces.
21264 (emit_push_insn): Adjust move_by_pieces caller.
21265 * expr.h (can_move_by_pieces): New prototype.
21266 (store_by_pieces): Adjust prototypes.
21267 * rtl.h (move_by_pieces): Adjust prototype.
21268 * config/mips/mips.c (expand_block_move): Adjust move_by_pieces
21269 caller.
21270
212712003-06-03 Ben Elliston <bje@wasabisystems.com>
21272
21273 * doc/md.texi (Processor pipeline description): Improve wording.
21274
212752003-06-03 Neil Booth <neil@daikokuya.co.uk>
21276
21277 * c-opts.c (c_common_handle_option): New, pulled out of
21278 c_common_decode_option. Substitute uses of argv.
21279 (c_common_decode_option): Broken into two.
21280
212812003-06-02 Roger Sayle <roger@eyesopen.com>
21282 Zack Weinberg <zack@codesourcery.com>
21283
21284 * emit-rtl.c (gen_complex_constant_part): Remove unnecessary
21285 test of TREE_CONSTANT_POOL_ADDRESS_P.
21286
212872003-06-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21288
21289 * mips.c: Don't include output.h twice.
21290 * stormy16.c: Likewise.
21291 * xtensa.c: Likewise.
21292 * output.h: Protect against multiple inclusion.
21293
212942003-06-02 J"orn Rennecke <joern.rennecke@superh.com>
21295
21296 * sh.h (OLD_ARG_MODE): New macro.
21297 (FUNCTION_ARG_ADVANCE, FUNCTION_ARG_PASS_BY_REFERENCE): Use it.
21298 (FUNCTION_ARG_1): Break out of:
21299 (FUNCTION_ARG). Use OLD_ARG_MODE.
21300
213012003-06-02 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
21302
21303 * gcc/config.gcc Add support multilib parts for m32rx processor.
21304
213052003-06-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21306
21307 * Makefile.in (c-options.c): Pass in $(AWK) to opts.sh.
21308 (mostlyclean): Delete c-options.c and c-options.h.
21309
213102003-06-02 Neil Booth <neil@daikokuya.co.uk>
21311
21312 * c-opts.c (CL_REJECT_NEGATIVE): New.
21313 (c_common_decode_option): Update to use it.
21314 * c.opt: Update documentation; use RejectNegative.
21315 * opts.sh: Handle RejectNegative.
21316
213172003-06-01 Zack Weinberg <zack@codesourcery.com>
21318
21319 * ggc-page.c (init_ggc): Give better diagnostics on failure to
21320 open /dev/zero.
21321 * toplev.c (crash_signal): Reset handling for received signal
21322 to SIG_DFL.
21323
213242003-06-02 Ben Elliston <bje@wasabisystems.com>
21325
21326 * config/arm/arm.c (arm_use_dfa_pipeline_interface): Declare.
21327 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define if not already.
21328 (arm_use_dfa_pipeline_interface): Implement.
21329 * config/arm/arm.md (arm): New automaton.
21330 (write_buf): Remove function units; new cpu unit.
21331 (write_blockage): Remove function units; new cpu unit.
21332 (core): Remove function units; new cpu unit.
21333 (r_mem_f_wbuf): New instruction reservation.
21334 (store1_wbuf, store2_wbuf, store3_wbuf, store4_wbuf): Likewise.
21335 (store1_ldsched, store2, store3, store4): Likewise.
21336 (load_ldsched, load_ldsched_xscale, load_or_store): Likewise.
21337 (mult, mult_ldsched, mult_ldsched_strongarm): Likewise.
21338 (multi_cycle, single_cycle): Likewise.
21339 * config/arm/fpa.md (armfp): New automaton.
21340 (fpa): Remove function units; new cpu unit.
21341 (fpa_mem): Remove function unit; new cpu unit.
21342 (fdivx, fdivd, fdivs, fmul, ffmul, farith, ffarith): New reservations.
21343 (r_2_f, f_2_r, f_load, f_store, r_mem_f, f_mem_r): Likewise.
21344
213452003-06-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21346
21347 * builtin-attrs.def (ATTR_ASM_FPRINTF): New.
21348 * c-format.c (enum format_type): Add asm_fprintf_format_type.
21349 (NOARGUMENTS, asm_fprintf_length_specs, asm_fprintf_flag_specs,
21350 asm_fprintf_flag_pairs, asm_fprintf_char_table): New.
21351 (format_types_orig): Renamed from format_types. Add new data.
21352 (format_types): Declare as pointer.
21353 (handle_format_attribute): Move later in file so we have all
21354 necessary declarations. Add section to capture HOST_WIDE_INT.
21355 * output.h (ATTRIBUTE_ASM_FPRINTF, __gcc_host_wide_int__): New.
21356 (asm_fprintf): Mark with ATTRIBUTE_ASM_FPRINTF.
21357
213582003-06-01 Andreas Jaeger <aj@suse.de>
21359
21360 * doc/tm.texi (Storage Layout): Remove ROUND_TYPE_SIZE and
21361 ROUND_TYPE_SIZE_UNIT.
21362
21363 * stor-layout.c (finalize_record_size): Remove usages of
21364 ROUND_TYPE_SIZE and ROUND_TYPE_SIZE_UNIT.
21365 (finalize_type_size): Likewise.
21366 (layout_type): Likewise.
21367
21368 * system.h: Poison ROUND_TYPE_SIZE and ROUND_TYPE_SIZE_UNIT.
21369
21370 * loop.c (check_insn_for_givs): Remove DONT_REDUCE_ADDR macro.
21371
21372 * config/d30v/d30v.h: Remove text copied from the manual.
21373
213742003-06-01 Roger Sayle <roger@eyesopen.com>
21375 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21376 Geoffrey Keating <geoffk@apple.com>
21377
21378 * emit-rtl.c (gen_lowpart_common): Handle interpreting integer
21379 constants as condition code values.
21380
213812003-06-01 DJ Delorie <dj@redhat.com>
21382
21383 * cppmacro.c (warn_of_redefinition): Handle cases where the two
21384 definitions have different numbers of tokens.
21385
213862003-06-01 Andreas Jaeger <aj@suse.de>
21387
21388 * gen-protos.c (main): Readd unused attribute for argc.
21389
213902003-06-01 Neil Booth <neil@daikokuya.co.uk>
21391
21392 * Makefile.in (c-options.c, c-options.h): Parallel make safe.
21393 * c.opt: End in blank line.
21394 * opts.sh: Take AWK from environment if available; use C locale.
21395
213962003-06-01 Andreas Schwab <schwab@suse.de>
21397
21398 * config/m68k/linux.h: Remove code protected by USE_GNULIBC_1.
21399
214002003-06-01 Andreas Jaeger <aj@suse.de>
21401
21402 * gen-protos.c (main): Revert patch to check for argument.
21403
214042003-06-01 Eric Botcazou <ebotcazou@libertysurf.fr>
21405
21406 PR target/11044
21407 * config/i386/i386.md (length attribute): Set length to 4
21408 for instructions of type "fcmp".
21409
214102003-06-01 Andreas Jaeger <aj@suse.de>
21411
21412 * toplev.c: Use ISO C90 prototypes.
21413
21414 * toplev.h: Use ISO C90 prototypes.
21415
21416 * genrecog.c: Use ISO C90 prototypes.
21417 (nodes_identical): Correct declaration to match prototype.
21418 (maybe_both_true): Likewise.
21419 (merge_trees): Likewise.
21420
21421 * genpeep.c (gen_peephole): Remove #if 0 code.
21422 Use ISO C90 prototypes.
21423
21424 * genattrtab.c (copy_rtx_unchanging): Remove #if 0'ed code.
21425 Remove #if 0'ed function simplify_by_alternatives.
21426 (optimize_attrs): Remove #if 0'ed code.
21427 Remove ^L.
21428 Use ISO C90 prototypes.
21429 (make_canonical): Remove #if 0'ed code.
21430 (convert_const_symbol_ref): Remove #if 0'ed function.
21431
21432 * gen-protos.c (main): Check for argument.
21433
21434 * rtl.h: Use ISO C90 prototypes for functions from lists.c.
21435
21436 * params.h: Use ISO C90 prototypes.
21437 * params.c: Likewise.
21438 * intl.c: Likewise.
21439 * intl.h: Likewise.
21440 * lists.c: Likewise.
21441 * errors.c: Likewise.
21442 * errors.h: Likewise.
21443 * gencodes.c: Likewise.
21444 * genpreds.c: Likewise.
21445 * genattr.c: Likewise.
21446 * gen-protos.c: Likewise.
21447 * genflags.c: Likewise
21448 * genconditions.c: Likewise.
21449 * genautomata.c: Likewise.
21450 * gencheck.c: Likewise.
21451 * genconfig.c: Likewise.
21452 * genconstants.c: Likewise.
21453 * genemit.c: Likewise.
21454 * genextract.c: Likewise.
21455 * gengenrtl.c: Likewise.
21456 * gengtype.c: Likewise.
21457 * gengtype.h: Likewise.
21458 * genopinit.c: Likewise.
21459 * genoutput.c: Likewise.
21460 * gensupport.c: Likewise.
21461 * gensupport.h: Likewise.
21462
21463 * sdbout.h: Use ISO C90 prototypes.
21464
21465 * sdbout.c (CONTIN): Removed empty macro.
21466 (sdbout_one_type): Remove CONTIN usages.
21467 Remove ^Ls.
21468 (tag_of_ru_type): Remove #if 0'ed function.
21469 (sdbout_symbol): Remove #if 0'ed code.
21470 (sdbout_one_type): Remove a #if 1.
21471 (sdbout_one_type): Remove #if 0'ed code.
21472 (sdbout_init): Remove RMS_QUICK_HACK_1 code.
21473 Remove PARAMS, use ISO C90 prototypes for all functions.
21474
214752003-06-01 Josef Zlomek <zlomekj@suse.cz>
21476
21477 * rtl.def (CONST_DOUBLE): Update comment.
21478
214792003-06-01 Neil Booth <neil@daikokuya.co.uk>
21480
21481 * opts.sh: Remove path from sort.
21482
214832003-06-01 Aldy Hernandez <aldyh@redhat.com>
21484
21485 PR/9680
21486 * config/rs6000/rs6000.h (CANNOT_CHANGE_MODE_CLASS): Require
21487 TARGET_SPE for SPE_VECTOR_MODE.
21488
214892003-05-31 Aldy Hernandez <aldyh@redhat.com>
21490
21491 * toplev.c (botch): Remove.
21492 (do_abort): Remove.
21493 (set_Wunused): Comment.
21494 (set_Wextra): Comment.
21495 Remove ^L's.
21496 (rest_of_compilation): Factor out common code into functions.
21497 (rest_of_handle_inlining): New.
21498 (rest_of_handle_ssa): New.
21499 (rest_of_handle_cse): New.
21500 (rest_of_handle_gcse): New.
21501 (rest_of_handle_loop_optimize): New.
21502 (rest_of_handle_jump_bypass): New.
21503 (rest_of_handle_sibling_calls): New.
21504 (rest_of_handle_null_pointer): New.
21505 (rest_of_handle_addresof): New.
21506 (rest_of_handle_flow): New.
21507 (rest_of_handle_branch_prob): New.
21508 (rest_of_handle_if_conversion): New.
21509 (rest_of_handle_tracer): New.
21510 (rest_of_handle_loop2): New.
21511 (rest_of_handle_cse2): New.
21512 (rest_of_handle_life): New.
21513 (rest_of_handle_combine): New.
21514 (rest_of_handle_if_after_combine): New.
21515 (rest_of_handle_regmove): New.
21516 (rest_of_handle_sched): New.
21517 (rest_of_handle_old_regalloc): New.
21518 (rest_of_handle_new_regalloc): New.
21519 (rest_of_handle_regrename): New.
21520 (rest_of_handle_reorder_blocks): New.
21521 (rest_of_handle_sched2): New.
21522 (rest_of_handle_new_regalloc): New.
21523 (rest_of_handle_old_regalloc): New.
21524 (rest_of_handle_regrename): New.
21525 (rest_of_handle_reorder_blocks): New.
21526 (rest_of_handle_stack_regs): New.
21527 (rest_of_handle_machine_reorg): New.
21528 (rest_of_handle_delay_slots): New.
21529 (rest_of_handle_final): New.
21530
21531 * toplev.h (botch): Remove prototype.
21532 (do_abort): Same.
21533
215342003-05-31 Neil Booth <neil@daikokuya.co.uk>
21535
21536 * Makefile.in (c-opts.o, c-options.h): Update dependencies.
21537 * c-opts.c: Include c-options.h and c-options.c.
21538 (CL_C_ONLY, CL_OBJC_ONLY, CL_CXX_ONLY, CL_OBJCXX_ONLY):
21539 Rename CL_C, CL_OBJC, CL_CXX, CL_OBJCXX.
21540 (CL_ARG, CL_ALL, COMMAND_LINE_OPTIONS, struct cl_option,
21541 OPT, opt_comp): Remove.
21542 (missing_arg, c_common_init_options, c_common_decode_option,
21543 write_langs): Update for macro redefinitions and enumeration
21544 name changes.
21545 * c.opt, opts.sh: New files.
21546 * doc/passes.texi: Update.
21547
215482003-05-31 Andreas Jaeger <aj@suse.de>
21549
21550 * function.c (trampoline_address): Remove ALLOCATE_TRAMPOLINE
21551 usage.
21552
21553 * doc/tm.texi (Trampolines): Remove ALLOCATE_TRAMPOLINE.
21554
21555 * config/d30v/d30v.h: Remove traces of ALLOCATE_TRAMPOLINE.
21556
21557 * system.h: Poison ALLOCATE_TRAMPOLINE.
21558
21559 * doc/tm.texi (Misc): Remove HANDLE_PRAGMA.
21560 * system.h: Poison HANDLE_PRAGMA.
21561
215622003-05-31 Kazu Hirata <kazu@cs.umass.edu>
21563
21564 * doc/invoke.texi: Update dump file names.
21565
215662003-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21567
21568 * c-format.c (format_length_info, format_char_info,
21569 format_flag_spec, format_flag_pair, format_kind_info):
21570 De-const-ify structure members.
21571
215722003-05-31 Roger Sayle <roger@eyesopen.com>
21573
21574 * flags.h (flag_wrapv): New flag controlling overflow semantics.
21575 * toplev.c (flag_wrapv): Declare the variable with default false.
21576 (lang_independent_options): New option "-fwrapv" to set the above.
21577
21578 * fold-const.c (extract_muldiv_1): Disable optimization of (2*x)/2
21579 as x, when signed arithmetic overflow wraps around.
21580 (fold): Optimize "-A - B" as "-B - A" if overflow wraps around.
21581 * loop.c (basic_induction_var): Ignore BIVs that rely on undefined
21582 overflow when flag_wrapv is true.
21583
21584 * doc/invoke.texi: Document new -fwrapv command line option.
21585 * doc/c-tree.texi: Mention that the overflow semantics of
21586 NEGATE_EXPR, PLUS_EXPR, MINUS_EXPR and MULT_EXPR is dependent
21587 upon both flag_wrapv and flag_trapv.
21588
215892003-05-31 Eric Botcazou <ebotcazou@libertysurf.fr>
21590
21591 * doc/install.texi (mips-sgi-irix5): Add missing
21592 HTML <hr> marker.
21593
215942003-05-31 Eric Botcazou <ebotcazou@libertysurf.fr>
21595
21596 * doc/md.texi (Machine Constraints): Document
21597 missing SPARC constraints.
21598
215992003-05-31 Eric Botcazou <ebotcazou@libertysurf.fr>
21600
21601 * doc/md.texi (Automaton pipeline description): Use
21602 "type" instead of "cpu" as the attribute in the examples.
21603
216042003-05-30 Stan Shebs <shebs@apple.com>
21605
21606 * system.h: Poison OBJC_PROLOGUE.
21607
216082003-05-30 Roger Sayle <roger@eyesopen.com>
21609
21610 * emit-rtl.c (gen_complex_constant_part): New function for getting
21611 the constant real or imaginary part of a complex constant.
21612 (gen_realpart): Use it.
21613 (gen_imagpart): Likewise.
21614
216152003-05-30 Kazu Hirata <kazu@cs.umass.edu>
21616
21617 * doc/invoke.texi: Fix typos.
21618 * doc/rtl.texi: Likewise.
21619
216202003-05-30 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
21621
21622 * config/h8300/crti.asm: Use .h8300hn and .h8300sn for normal
21623 mode.
21624 * config/h8300/crtn.asm: Likewise.
21625 * config/h8300/lib1funcs.asm: Likewise.
21626 * config/h8300/h8300.c (asm_file_start): Likewise.
21627 * config/h8300/elf.h (LINK_SPEC): Use h8300hnelf and
21628 h8300snelf emulations for normal mode.
21629 * config/h8300/h8300.h (LINK_SPEC): Use h8300hn and h8300sn
21630 emulations for normal mode.
21631
216322003-05-30 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
21633
21634 * config/h8300/h8300.c (h8300_tiny_constant_address_p): Return
21635 true if TARGET_NORMAL_MODE.
21636
216372003-05-30 Roger Sayle <roger@eyesopen.com>
21638
21639 * cse.c (cse_insn): Simplify REG_EQUAL note on libcalls when
21640 making a substitution.
21641 (dead_libcall_p): If directly replacing a libcall with a
21642 constant value produces an invalid instruction, also try forcing
21643 the constant into the constant pool.
21644 * expr.c (emit_move_insn): Add a REG_EQUAL note when it is not
21645 obvious that the source is a constant.
21646 (compress_float_constant): Use set_unique_reg_note to place
21647 REG_EQUAL notes on instructions.
21648
216492003-05-30 Eric Christopher <echristo@redhat.com>
21650
21651 * config/mips/mips.c (extern_list): Add GTY marker.
21652 (extern_head): Separate out definition. Add marker.
21653 (mips_output_external): Use ggc_alloc for extern_list
21654 allocation.
21655 (mips_output_external_libcall): Ditto.
21656
216572003-05-30 Florian Weimer <fw@deneb.enyo.de>
21658
21659 * doc/install.texi: Ada-enabled bootstrap requires GNAT 3.14 or
21660 later.
21661
216622003-05-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21663
21664 * vax.h (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier
21665 warnings.
21666 (PRINT_OPERAND): Likewise.
21667
216682003-05-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
21669
21670 * config/mips/mips.h (SUBTARGET_ASM_DEBUGGING_SPEC): Move
21671 -mdebug/-no-mdebug switches ...
21672 (MDEBUG_ASM_SPEC): ... here.
21673 Use only with gas.
21674 (EXTRA_SPECS): Initialize mdebug_asm_spec.
21675
216762003-05-29 Matt Kraai <kraai@alumni.cmu.edu>
21677
21678 * gthr-gnat.c: Remove #undef UNUSED.
21679 (__gnat_default_lock, __gnat_default_unlock): Prototype.
21680 (__gnat_task_lock, __gnat_task_unlock): Make declarations
21681 prototypes.
21682 (__gnat_install_locks): Convert declaration to ISO C90, make
21683 parameter declarations prototypes, and remove blank line.
21684 * gthr-gnat.h (__gnat_install_locks): Make parameter
21685 declarations prototypes.
21686
216872003-05-29 Jason Merrill <jason@redhat.com>
21688
21689 * Makefile.in (unstrap): Remove stage_last after make unstage1.
21690
216912003-05-29 Roger Sayle <roger@eyesopen.com>
21692
21693 * mips-tfile.c (PAGE_SIZE): Increase page size to 32K.
21694
216952003-05-29 Roger Sayle <roger@eyesopen.com>
21696 Kaveh Ghazi <ghazi@caip.rutgers.edu>
21697
21698 PR bootstrap/10169
21699 * mips-tfile.c (main): Use getopt_long instead of getopt.
21700 Add new command line option --version to display version.
21701 Treat --verbose like -v to report a single line version.
21702 (options): New global variable for getopt_long.
21703 * mips-tdump.c (main): Use getopt_long instead of getopt.
21704 New command line options -v, --version and -verbose to display
21705 the program version number (to match mips-tfile's behavior).
21706 (options): New global variable for getopt_long.
21707
21708 * gcov.c (options): Zero-terminate getopt_long array.
21709 * gcov-dump.c (options): Likewise.
21710
21711 * Makefile.in (mips-tdump.o): Add dependency on version.h.
21712
217132003-05-29 Stan Shebs <shebs@apple.com>
21714
21715 Remove OBJC_PROLOGUE everywhere.
21716 * objc/objc-act.c (finish_objc): Remove use of OBJC_PROLOGUE.
21717 * config/avr/avr.h: Remove no-op ref to OBJC_PROLOGUE.
21718 * config/d30v/d30v.h: Similarly.
21719 * config/ip2k/ip2k.h: Similarly.
21720 * doc/tm.texi: Remove doc of OBJC_PROLOGUE.
21721
217222003-05-29 Roger Sayle <roger@eyesopen.com>
21723
21724 * c-semantics.c (genrtl_do_stmt_1): New function split out from...
21725 (gen_rtl_do_stmt): ... here. Call genrtl_do_stmt_1.
21726 (expand_unreachable_stmt): Expand unreachable while statements
21727 using genrtl_do_stmt_1.
21728
217292003-05-29 Richard Sandiford <rsandifo@redhat.com>
21730
21731 * config/mips/mips-protos.h (mips_output_load_label): Declare.
21732 * config/mips/mips.c (mips_output_load_label): New function.
21733 (mips_output_conditional_branch): Use it.
21734 * config/mips/mips.md (jump): And here.
21735
217362003-05-28 Bob Wilson <bob.wilson@acm.org>
21737
21738 * config/xtensa/xtensa-protos.h (smalloffset_double_mem_p): Delete.
21739 (xtensa_split_operand_pair): New proto.
21740 * config/xtensa/xtensa.c (move_operand): Handle DFmode and DImode.
21741 (smalloffset_double_mem_p): Delete.
21742 (gen_float_relational, printx, print_operand, xtensa_va_arg):
21743 Fix whitespace.
21744 (xtensa_split_operand_pair): New.
21745 (xtensa_dbx_register_number): Fix formatting.
21746 * config/xtensa/xtensa.h (EXTRA_CONSTRAINT): Remove 'S' constraint.
21747 * config/xtensa/xtensa.md (movdi, movdf): Force constants to memory
21748 instead of splitting them into single-word moves. Remove unnecessary
21749 checks for reload_in_progress and reload_completed.
21750 (movdi_internal, movdf_internal): Change to post-reload split patterns.
21751 Add constraints to allow constant operands.
21752 (movsf_internal): Allow CONST_INT operands.
21753
217542003-05-27 Danny Smith <dannysmith@users.sourceforge.net>
21755
21756 * config.gcc (i[34567]86-*-mingw32*): Add host makefile
21757 fragment i386/x-mingw32.
21758 * config/i386/x-mingw32: New file. Make local_includedir
21759 relative to EXEC_PREFIX.
21760
217612003-05-27 Aaron W. LaFramboise <awlaframboise@aol.com>
21762
21763 * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Update.
21764 (MD_STARTFILE_PREFIX): Define.
21765
217662003-05-27 Denis Chertykov <denisc@overta.ru>
21767
21768 * cselib.c (cselib_invalidate_regno): Abort if hardreg have a
21769 VOIDmode.
21770 * cselib.c (cselib_process_insn): Pass reg_raw_mode for hardreg in
21771 call of cselib_invalidate_regno.
21772
217732003-05-28 Daniel Jacobowitz <drow@mvista.com>
21774
21775 * config/mips/linux.h (LIB_SPEC): Add missing -lc and correct
21776 -lthread to -lpthread.
21777
217782003-05-28 Eric Botcazou <ebotcazou@libertysurf.fr>
21779 Bruce Korb <bkorb@gnu.org>
21780 Arno Klaassen <arno@heho.snv.jussieu.fr>
21781
21782 * fixinc/inclhack.def: Add missing declaration of getpagesize()
21783 to unistd.h on Solaris 2.5.1.
21784 Fix prototype of recv() and send() in sys/socket.h on
21785 Solaris 2.5.1 and 2.6.
21786 * fixinc/tests/base/unistd.h: Add solaris_unistd fix test.
21787 * fixinc/tests/base/sys/socket.h: Add solaris_socket test.
21788 * fixinc/check.tpl: Use 'diff -c', not 'diff -u'.
21789 * fixinc/fixincl.x: Regenerate.
21790
217912003-05-27 Jason Merrill <jason@redhat.com>
21792
21793 * tree.c (expr_first, expr_length): New fns.
21794 * tree.h: Declare them.
21795
21796 * tree.c (iterative_hash_expr): Hash commutative expressions
21797 consistently.
21798
217992003-05-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21800
21801 * tree.h (contains_placeholder_p): Now returns bool.
21802 (CONTAINS_PLACEHOLDER_P): New macro.
21803 (type_contains_placeholder_p): New function.
21804 * tree.c (save_expr): Remove code avoiding folding COMPONENT_REF.
21805 (contains_placeholder_p): Now returns bool.
21806 Rework to use CONTAINS_PLACEHOLDER_P macro.
21807 (type_contains_placeholder_p): New function.
21808 * fold-const.c (fold, case COMPONENT_REF): Don't fold if
21809 type_contains_placeholder_p.
21810 (fold_range_test, fold_mathfn_compare, fold_inf_compare, fold):
21811 Use CONTAINS_PLACEHOLDER_P macro.
21812 * builtins.c (fold_builtin): Likewise.
21813 * calls.c (initialize_argument_information): Likewise.
21814 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
21815 * explow.c (expr_size): Likewise.
21816 * expr.c (store_constructor, get_inner_reference): Likewise.
21817 * function.c (assign_parms): Likewise.
21818 * stor-layout.c (variable_size): Likewise.
21819
218202003-05-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
21821
21822 * diagnostic.h (output_verbatim, verbatim): Remove printf
21823 attribute.
21824
218252003-05-25 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
21826
21827 * doc/contrib.texi (Contributors): Update Kean Johnston.
21828
218292003-05-24 David Edelsohn <edelsohn@gnu.org>
21830
21831 * config/rs6000/rs6000.md (save_fpregs_{si,di}): Add length attribute.
21832
218332003-05-24 Nathanael Nerode <neroden@gcc.gnu.org>
21834
21835 * config/rs6000/440.md, config/stormy16/stormy16protos.h,
21836 config/stormy16/stormy16.c, config/stormy16/stormy16.md:
21837 Replace "GNU CC" with "GCC".
21838
218392003-05-24 Matt Kraai <kraai@alumni.cmu.edu>
21840
21841 * builtins.c (expand_builtin_memcpy): Use mode of dest_addr for
21842 intermediate computation.
21843
218442003-05-23 Eric Christopher <echristo@redhat.com>
21845
21846 * config/mips/mips.md (clzsi, clzdi): New patterns.
21847
218482003-05-23 Geoffrey Keating <geoffk@apple.com>
21849
21850 * gcc.c (default_compilers): Use -o to specify preprocessor's output
21851 file. Make -no-integrated-cpp work when building PCH files.
21852 * objc/lang-specs.h: Likewise.
21853
218542003-05-23 Nathanael Nerode <neroden@gcc.gnu.org>
21855
21856 * fixinc/Makefile.in: Correct description.
21857 * fixinc/Makefile.in, fixinc/fixfixes.c, fixinc/fixincl.c,
21858 fixinc/fixlib.c, fixinc/fixlib.h, fixinc/fixtests.c,
21859 fixinc/genfixes: Replace "GNU CC" with "GCC".
21860
218612003-05-23 Roger Sayle <roger@eyesopen.com>
21862
21863 * builtins.def: Define atan, atanf, atanl, tan, tanf and tanl
21864 builtin functions (and their __builtin_* variants).
21865 * builtins.c (mathfn_built_in): Handle tan{,f,l} and atan{,f,l}.
21866 (expand_builtin): Don't expand tan{,f,l} or atan{,f,l} when not
21867 optimizing.
21868
21869 * doc/extend.texi: Document new tan and atan builtins, and
21870 their float and long double variants.
21871
218722003-05-23 Jason Thorpe <thorpej@wasabisystems.com>
21873
21874 * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define
21875 __sparcv9 in the TARGET_ARCH64 case.
21876
21877Fri May 23 22:17:32 CEST 2003 Jan Hubicka <jh@suse.cz>
21878
21879 * i386.c (ix86_reorg): Calls are also jumps.
21880
218812003-05-23 J"orn Rennecke <joern.rennecke@superh.com>
21882
21883 * cse.c (count_reg_usage): When processing an INSNs REG_EQUAL
21884 note containing an EXPR_LIST, process all the arguments.
21885
21886Fri May 23 21:19:31 CEST 2003 Jan Hubicka <jh@suse.cz>
21887 Andreas Jaeger <aj@suse.de>
21888
21889 * i386.h (TARGET_CPU_CPP_BUILTINS): Define __amd64 and __amd64__;
21890 do not use assertion.
21891
218922003-05-23 Mike Stump <mrs@apple.com>
21893
21894 * tlink.c (scan_linker_output): Add support for darwin linker, as it
21895 emits unresolved symbols one per line, consuming the entire line.
21896
218972003-05-23 Larin Hennessy <larin@science.oregonstate.edu>
21898 Zack Weinberg <zack@codesourcery.com>
21899
21900 * explow.c (allocate_dynamic_stack_space): Remove call to gen_probe.
21901 * config/m68k/m68k.c (m68k_output_function_prologue):
21902 Remove code under #if NEED_PROBE.
21903 * config/m68k/m68k.h: Don't define NEED_PROBE.
21904 * config/m68k/m68k.md: Remove "probe" insn.
21905 * doc/md.texi: Remove documentation of "probe" pattern.
21906
219072003-05-23 Dorit Naishlos <gcchaifa@il.ibm.com>
21908
21909 * config/rs6000/rs6000.md (save_fpregs_{si,di}): Add branch attribute.
21910
219112003-05-23 Eric Botcazou <ebotcazou@libertysurf.fr>
21912
21913 * doc/install.texi: Remove sparc64-*-*. Add sparc64-*-solaris2*.
21914 Document sparcv9-*-solaris2* as a synonym for sparc64-*-solaris2*.
21915
219162003-05-22 Roger Sayle <roger@eyesopen.com>
21917
21918 * real.c (real_maxval): New function to return the largest finite
21919 value representable in a given mode (i.e. FLT_MAX and DBL_MAX).
21920 * real.h (real_maxval): Prototype here.
21921 * fold-const.c (fold_inf_compare): Transform comparisons against
21922 +-Infinity into comparisons against DBL_MAX (or equivalent).
21923
219242003-05-22 Mike Stump <mrs@apple.com>
21925
21926 * config.gcc (*-*-darwin*): Remove use_collect2=no, as it is the
21927 default.
21928
219292003-05-22 DJ Delorie <dj@redhat.com>
21930
21931 * calls.c (expand_call): If the arg block is going to grow
21932 downward, we need argblock to point to the top of the block,
21933 not the bottom.
21934
219352003-05-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21936
21937 * c-decl.c (duplicate_decls): Test DECL for ERROR_MARK.
21938
21939 * expr.c (expand_expr, case CONSTRUCTOR): Put into memory if
21940 constant and EXPAND_CONST_ADDRESS, not just EXPAND_INITIALIZER.
21941
219422003-05-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21943
21944 * m68hc11.c: Don't use the `0' flag for asm_fprintf specifiers.
21945 * m68k.c: Likewise.
21946 * m68k.h: Likewise.
21947
219482003-05-22 Zack Weinberg <zack@codesourcery.com>
21949
21950 PR other/2873
21951 * fixinc/inclhack.def (avoid_wchar_t_type): Add bypass
21952 expressions to prevent triggering on recent curses.h,
21953 linux/nls.h, or X11/Xlib.h.
21954 (stdio_va_list): Add _G_va_list to bypass pattern.
21955 (strict_ansi_not): Add bypass pattern for __SCO_VERSION__.
21956 * fixinc/fixincl.x: Regenerate.
21957
219582003-05-22 Rekha Bhintade <rekhad@kpitcummins.com>
21959
21960 * gcc/config/sh/sh.h (TARGET_SWITCHES): Display all the target
21961 switches when --target-help option is specified.
21962
219632003-05-22 Eric Botcazou <ebotcazou@libertysurf.fr>
21964
21965 PR bootstrap/10805
21966 * doc/install.texi (sparc-sun-solaris2.7): Document bootstrap
21967 failure with Sun assembler 5.0 Alpha 03/27/98.
21968
219692003-05-21 Loren James Rittle <ljrittle@acm.org>
21970
21971 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Add -D__sparcv9
21972 to match system compiler convention.
21973
219742003-05-21 Danny Smith <dannysmith@users.sourceforge.net>
21975
21976 * gthr-win32.h (__GTHREAD_HIDE_WIN32API): Test for nonzero
21977 value, not just if defined.
21978 Update copyright year.
21979
219802003-05-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21981
21982 PR target/6428
21983 * pa-hpux10.h (LINK_SPEC, LIB_SPEC): Move -L options for profiling
21984 directories from LIB_SPEC to LINK_SPEC. Emit warning if `-p' or `-pg'
21985 option is used without `-static'.
21986 * pa-hpux11.h (LINK_SPEC, LIB_SPEC): Likewise.
21987 * pa64-hpux.h (LINK_SPEC, LIB_SPEC): Likewise.
21988
219892003-05-21 Bob Wilson <bob.wilson@acm.org>
21990
21991 * config/xtensa/xtensa.h (MASK_SERIALIZE_VOLATILE,
21992 TARGET_SERIALIZE_VOLATILE): Delete.
21993 (MASK_CONST16, MASK_ABS, MASK_ADDX): Renumber flag bits.
21994 (TARGET_DEFAULT): Remove MASK_SERIALIZE_VOLATILE.
21995 (TARGET_SWITCHES): Remove "-mserialize-volatile" and
21996 "-mno-serialize-volatile".
21997 * config/xtensa/xtensa.c (print_operand): Remove checks of
21998 TARGET_SERIALIZE_VOLATILE.
21999 * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
22000 * doc/invoke.texi (Option Summary, Xtensa Options): Remove
22001 "-mserialize-volatile" and "-mno-serialize-volatile" options.
22002
220032003-05-21 Nathan Sidwell <nathan@codesourcery.com>
22004
22005 * c-parse.in (fndef): Set DECL_SOURCE_LINE and FILE earlier.
22006 (nested_function): Likewise.
22007 (notype_nested_function): Likewise.
22008
220092003-05-21 Nick Clifton <nickc@redhat.com>
22010
22011 * config/stormy16/stormy-abi: Update overflow type for
22012 R_XSTORMY16_16 reloc.
22013
220142003-05-21 Nathan Sidwell <nathan@codesourcery.com>
22015
22016 * c-common.h (enum rid): Remove RID_BOUNDED, RID_UNBOUNDED.
22017 * c-parse.in (reswords): Remove __bounded__ and __unbounded__.
22018 (rid_to_yy): Remove RID_BOUNDED, RID_UNBOUNDED slots.
22019 * print-tree.c (print_node): Remove ambient-boundedness.
22020 * tree.h (tree_common): Remove bounded_flag.
22021 (BOUNDED_INDIRECT_YPE_P, BOUNDED_POINTER_TYPE_P,
22022 BOUNDED_REFERENCE_TYPE_P, MAYBE_BOUNDED_INDIRECT_TYPE_P,
22023 MAYBE_BOUNDED_POINTER_TYPE_P, MAYBE_BOUNDED_REFERENCE_TYPE_P,
22024 TREE_BOUNDED, TYPE_MAIN_VARIANTS_PHYSICALLY_EQUAL_P,
22025 TYPE_MAIN_PHYSICAL_VARIANT, TYPE_BOUNDED, TYPE_QUAL_BOUNDED):
22026 Remove.
22027 (TYPE_QUALS): Remove BOUNDED.
22028 (TREE_EXPR_QUALS, TREE_FUNC_QUALS): Remove.
22029 (TYPE_BOUNDED_VALUE, TYPE_BOUNDED_BASE, TYPE_BOUNDED_EXTENT,
22030 TYPE_BOUNDED_SUBTYPE, TYPE_UNBOUNDED_VARIANT, TYPE_POINTER_DEPTH,
22031 TYPE_AMBIENT_BOUNDEDNESS, MAX_POINTER_DEPT,
22032 VA_LIST_POINTER_DEPTH): Remove.
22033 (struct tree_type): Remove pointer_depth.
22034
220352003-05-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22036
22037 * c-pretty-print.c (pp_c_integer_literal): Use
22038 HOST_WIDE_INT_PRINT_DOUBLE_HEX.
22039
220402003-05-20 Roger Sayle <roger@eyesopen.com>
22041 Kazu Hirata <kazu@cs.umass.edu>
22042 Joern Rennecke <joern.rennecke@superh.com>
22043
22044 * gcse.c (cprop_jump): Make use of REG_EQUAL notes on both
22045 setcc and jump, if they exist. If substituted instruction
22046 fails to validate, store current effort in a REG_EQUAL note.
22047 (cprop_insn): Don't attempt further substitutions if the
22048 current instruction has been deleted.
22049 (local_cprop_pass): Likewise.
22050
22051 * jump.c (redirect_jump): Also update REG_EQUAL note, if
22052 one is attached to the jump instruction.
22053 (invert_jump): Delete REG_EQUAL note on jump, if one exists.
22054
220552003-05-21 Danny Smith <dannysmith@users.sourceforge.net>
22056
22057 PR c++/9738
22058 * config/i386/winnt.c (i386_pe_encode_section_info): Enable
22059 even if not first.
22060
220612003-05-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22062
22063 * genautomata.c (output_description, output_automaton_units,
22064 output_state_arcs): Add missing specifiers.
22065
220662003-05-20 Bob Wilson <bob.wilson@acm.org>
22067
22068 * config/xtensa/lib1funcs.asm: Avoid use of .Lfe* in .size directives.
22069 (do_abs, do_addx2, do_addx4, do_addx8): New assembler macros.
22070 (__mulsi3): Use do_addx* instead of ADDX* instructions. Formatting.
22071 (nsau): Rename to do_nsau. Provide alternate version for use when
22072 the NSAU instruction is available.
22073 (__udivsi3, __divsi3, __umodsi3, __modsi3): Use do_nsau macro.
22074 (__divsi3, __modsi3): Use do_abs macro instead of ABS instruction.
22075 * config/xtensa/xtensa-config.h: Update comments to match binutils.
22076 (XCHAL_HAVE_ABS, XCHAL_HAVE_ADDX): Define.
22077 * config/xtensa/xtensa.h (MASK_ABS, MASK_ADDX): Define.
22078 (TARGET_ABS, TARGET_ADDX): Define.
22079 (TARGET_DEFAULT): Conditionally add MASK_ABS and MASK_ADDX.
22080 (TARGET_SWITCHES): Add "abs", "no-abs", "addx", and "no-addx".
22081 * config/xtensa/xtensa.md (*addx2, *addx4, *addx8, *subx2, *subx4,
22082 *subx8): Set predicate condition to TARGET_ADDX.
22083 (abssi2): Set predicate condition to TARGET_ABS.
22084 * doc/invoke.texi (Option Summary): Document new "-mabs", "-mno-abs",
22085 "-maddx", and "-mno-addx" options.
22086 (Xtensa Options): Likewise. Also tag some opcode names with @code.
22087
220882003-05-20 Kevin Ryde <user42@zip.com.au>
22089 Wolfgang Bangerth <bangerth@dealii.org>
22090
22091 PR/10355
22092 * doc/extend.texi: Put a warning into the documentation
22093 of attribute regparm.
22094
220952003-05-20 Jason Merrill <jason@redhat.com>
22096
22097 * tree.c (expr_last): New fn.
22098 * tree.h: Declare it.
22099 * objc/objc-act (expr_last): Rename to objc_expr_last.
22100
221012003-05-20 J"orn Rennecke <joern.rennecke@superh.com>
22102
22103 * sh.c (sh_register_move_cost): Add clase for moving between
22104 FP registers and MAC registers.
22105
221062003-05-19 John David Anglin <dave.anglin@nrc-gnrc.gc.ca>
22107
22108 * pa/milli64.S ($$mulI): Fix typo.
22109
221102003-05-19 Matt Kraai <kraai@alumni.cmu.edu>
22111
22112 * alias.c (nonlocal_mentioned_p, nonlocal_referenced_p)
22113 (nonlocal_set_p): Remove initial blank line.
22114 * dwarf2out.c (simple_type_size_in_bits): Likewise.
22115 * et-forest.c (et_forest_create): Likewise.
22116 * explow.c (stabilize): Likewise.
22117 * fix-header.c (write_lbrac): Likewise.
22118 * graph.c (start_fct, node_data): Likewise.
22119 * jump.c (only_sets_cc0_p, sets_cc0_p): Likewise.
22120 * rtlanal.c (global_reg_mentioned_p): Likewise.
22121 * tree.c (bit_position): Likewise.
22122
221232003-05-19 Alexandre Oliva <aoliva@redhat.com>
22124
22125 * config/mips/linux64.h (LIB_SPEC): Add missing -lc and correct
22126 -lthread to -lpthread.
22127
221282003-05-19 Neil Booth <neil@daikokuya.co.uk>
22129
22130 * c-opts.c (c_common_decode_option): Don't accept dollars
22131 as identifier characters in assembly.
22132 * doc/cpp.texi: Document this.
22133
221342003-05-19 Seth Arnold <sarnold@wirex.com>
22135 Aldy Hernandez <aldyh@redhat.com>
22136
22137 * config/rs6000/rs6000.c (rs6000_stack_info): Do not add
22138 vrsave_size twice.
22139
221402003-05-19 Aldy Hernandez <aldyh@redhat.com>
22141
22142 * doc/tm.texi (function_arg): Fix typo.
22143
221442003-05-19 Matt Austern <austern@apple.com>
22145
22146 * c-opts.c (COMMAND_LINE_OPTIONS): Add -Winvalid-offsetof option.
22147 * c-common.h (warn_invalid_offsetof): Declare.
22148 * c-common.c (warn_invalid_offsetof): Define.
22149 * doc/invoke.texi: Document -Winvalid-offsetof.
22150 * testsuite/g++.dg/other/offsetof3.C: New.
22151 * testsuite/g++.dg/other/offsetof4.C: New.
22152
221532003-05-19 Kevin B. Hendricks <kevin.hendricks@sympatico.ca>
22154 David Edelsohn <edelsohn@gnu.org>
22155
22156 * config/rs6000/rs6000.c (rs6000_alignment_string,
22157 rs6000_alignment_flags): New variables.
22158 (rs6000_parse_alignment_option): New function.
22159 (rs6000_override_options): Call it.
22160 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -malign-XXX option.
22161 (MASK_ALIGN_POWER, MASK_ALIGN_NATURAL, TARGET_ALIGN_NATURAL): New
22162 macros.
22163 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Always use COMPUTED
22164 natural alignment if TARGET_NATURAL_ALIGNMENT
22165 (ROUND_TYPE_ALIGN): Always use default record alignment if
22166 TAGET_NATURAL_ALIGNMENT.
22167 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Same
22168 (ROUND_TYPE_ALIGN): Same.
22169 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Same
22170 (ROUND_TYPE_ALIGN): Same.
22171 * doc/invoke.texi (Option Summary, PowerPC Options): Document
22172 new options.
22173
221742003-05-19 J"orn Rennecke <joern.rennecke@superh.com>
22175
22176 * c-decl.c (finish_decl): When setting the DECL_ASSEMBLER_NAME
22177 of a function using ASMSPEC, prepend a star.
22178
221792003-05-19 Jason Merrill <jason@redhat.com>
22180
22181 * tree-inline.c (copy_body_r): Avoid generating &* during inline
22182 substitution.
22183
221842003-05-19 Andrew Macleod <amacleod@redhat.com>
22185
22186 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Do
22187 not mark assignments to the hard frame pointer as being stack
22188 frame related.
22189 (xstormy16_expand_epilogue): Mark adjustments to the stack
22190 pointer as being stack frame related.
22191
221922003-05-19 Richard Sandiford <rsandifo@redhat.com>
22193
22194 * config/mips/mips.h (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY,
22195 ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS): New macros.
22196 (PREDICATE_CODES): Add hilo_operand.
22197 * config/mips/mips.c (hilo_operand): New predicate.
22198 (mips_adjust_insn_length): Account for the number nops that might
22199 be needed to avoid hardware hazards.
22200 * config/mips/mips.md (dslot): Remove attribute.
22201 (hazard): New attribute.
22202 (can_delay): Use it. Check for calls, branches & jumps.
22203 (muldi3): Use the standard dmult pattern for mips16 code.
22204 (muldi3_internal, muldi3_internal2): Adjust conditions accordingly.
22205
222062003-05-19 Richard Sandiford <rsandifo@redhat.com>
22207
22208 * config/mips/mips-protos.h (final_prescan_insn,
22209 mips_count_memory_refs, mips_fill_delay_slot): Remove.
22210 * config/mips/mips.h (delay_type, dslots_load_total,
22211 dslots_load_filled, dslots_jump_total, dslots_jump_filled,
22212 dslots_number_nops, num_refs, mips_load_reg, mips_load_reg2,
22213 mips_load_reg3, mips_load_reg4): Remove.
22214 (MASK_STATS): Remove.
22215 (MASK_EXPLICIT_RELOCS): Reuse its value.
22216 (TARGET_STATS): Remove.
22217 (TARGET_SWITCHES): Turn -mstats and -mno-stats into no-ops.
22218 Warn that -mstats is now ignored.
22219 (FINAL_PRESCAN_INSN): Undefine.
22220 (DBR_OUTPUT_SEQEND): Remove handling of dslot statistics.
22221 (ASM_OUTPUT_REG_POP): Likewise.
22222 * config/mips/mips.c (dslots_load_total, dslots_load_filled,
22223 dslots_jump_total, dslots_jump_filled, dslots_number_nops, num_refs,
22224 mips_load_reg, mips_load_reg2, mips_load_reg3, mips_load_reg4,
22225 mips_fill_delay_slot, mips_count_memory_refs,
22226 final_prescan_insn): Remove.
22227 (output_block_move): Remove calls to mips_count_memory_refs.
22228 (print_operand): Remove printing of #nop for TARGET_STATS.
22229 (mips_output_function_epilogue): Remove TARGET_STATS code.
22230 Reorganize setting of fnnmae.
22231 * config/mips/mips.md: Remove handling of dslot statistics
22232 throughout file. Change all fcmp patterns into normal asm
22233 templates, removing calls to mips_fill_delay_slot.
22234 * doc/invoke.texi: Remove documentation of -mstats.
22235
222362003-05-19 Richard Sandiford <rsandifo@redhat.com>
22237
22238 * config/mips/mips.c (mips_class_max_nregs): Return the number of
22239 words in the mode.
22240
222412003-05-19 Richard Sandiford <rsandifo@redhat.com>
22242
22243 * config/mips/mips.c (override_options): Disable explicit
22244 relocs for old ABIs unless using gas.
22245
222462003-05-18 Eric Christopher <echristo@redhat.com>
22247
22248 * config/mips/mips.h: Remove definition of g_switch_value.
22249
222502003-05-18 Matt Kraai <kraai@alumni.cmu.edu>
22251
22252 * flags.h (g_switch_value): Change to an unsigned
22253 HOST_WIDE_INT.
22254 * toplev.c (g_switch_value): Likewise.
22255
22256 * config/alpha/alpha.c (small_symbolic_operand): Remove
22257 g_switch_value cast.
22258 (alpha_in_small_data_p): Cast size to an unsigned
22259 HOST_WIDE_INT.
22260
22261 * config/frv/frv.c (frv_in_small_data_p): Cast size to an
22262 unsigned HOST_WIDE_INT.
22263 * config/frv/frv.h (g_switch_value, g_switch_set): Remove.
22264 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Declare g_switch_set.
22265
22266 * config/m32r/m32r.c (m32r_in_small_data_p): Cast size to an
22267 unsigned HOST_WIDE_INT.
22268 (m32r_asm_file_start): Use HOST_WIDE_INT_PRINT_UNSIGNED.
22269 * config/m32r/m32r.h (g_switch_value, g_switch_set): Remove.
22270 (ASM_OUTPUT_ALIGNED_COMMON): Declare g_switch_value.
22271
22272 * config/rs6000/rs6000.c (rs6000_file_start): Use
22273 HOST_WIDE_INT_PRINT_UNSIGNED.
22274 (small_data_operand): Cast summand to unsigned HOST_WIDE_INT.
22275 (rs6000_elf_in_small_data_p): Cast size to unsigned
22276 HOST_WIDE_INT.
22277 * config/rs6000/sysv4.h (g_switch_value, g_switch_set):
22278 Remove.
22279 (SUBTARGET_OVERRIDE_OPTIONS): Declare g_switch_value and
22280 g_switch_set.
22281 (ASM_OUTPUT_ALIGNED_LOCAL): Declare g_switch_value and remove
22282 g_switch_value cast.
22283
222842003-05-18 Roger Sayle <roger@eyesopen.com>
22285 Zack Weinberg <zack@codesourcery.com>
22286
22287 PR middle-end/10472
22288 * builtins.c (expand_builtin_memcpy): Call force_operand on
22289 expressions and use simplify_gen_binary to create the addition.
22290
222912003-05-18 Andreas Schwab <schwab@suse.de>
22292
22293 * config/m68k/m68k.md: Use define_constants for unspec numbers.
22294
222952003-05-18 Neil Booth <neil@daikokuya.co.uk>
22296
22297 * config/sparc/sparc.h: Define sparc for now.
22298
222992003-05-18 Nathanael Nerode <neroden@gcc.gnu.org>
22300
22301 * config.gcc: Clear xm_file, md_file at the beginning of each pass.
22302
22303 * config/stormy16/stormy16.h: Remove about 3000 lines of
22304 target-independent comments. Update copyright notice.
22305
22306 * doc/collect2.texi: GNU CC -> GCC.
22307 * doc/headerdirs.texi: GNU CC -> GCC.
22308
223092003-05-18 Gabriel Dos Reis <gdr@integrable-solutions.net>
22310
22311 * hashtable.h (struct ht_identifier): Add data member "hash_value".
22312 * hashtable.c (ht_lookup): Use it when searching, remember.
22313 (ht_expand): Do not recompute.
22314 * tree.h (IDENTIFIER_HASH_VALUE): New macro.
22315
223162003-05-18 Nathan Sidwell <nathan@codesourcery.com>
22317
22318 * gcov-io.c (gcov_read_bytes): Fix fread thinko.
22319
223202003-05-18 Neil Booth <neil@daikokuya.co.uk>
22321
22322 * c-cppbuiltin.c (TARGET_OS_CPP_BUILTINS, TARGET_OBJFMT_CPP_BUILTINS):
22323 Default here.
22324 (c_cpp_builtins): Invoke TARGET_OBJFMT_CPP_BUILTINS().
22325 * defaults.h: Don't default TARGET_OS_CPP_BUILTINS here.
22326 * config/elfos.h (TARGET_OBJFMT_CPP_BUILTINS): Define __ELF__.
22327 * config/freebsd-spec.h, config/netbsd-elf.h, config/alpha/gnu.h,
22328 config/arm/linux-elf.h, config/arm/rtems-elf.h,
22329 config/arm/unknown-elf.h, config/cris/cris.h, config/cris/linux.h,
22330 config/h8300/elf.h, config/i370/linux.h, config/i386/beos-elf.h,
22331 config/i386/gnu.h, config/i386/linux.h, config/i386/linux64.h,
22332 config/i386/moss.h, config/i386/rtemself.h, config/ia64/ia64.h,
22333 config/m68k/rtemself.h, config/mcore/mcore-elf.h, config/mips/linux.h,
22334 config/pa/pa-linux.h, config/rs6000/linux.h, config/rs6000/linux64.h,
22335 config/rs6000/sysv4.h, config/rs6000/vxworks.h, config/s390/linux.h,
22336 config/sh/coff.h, config/sh/elf.h, config/sh/rtemself.h,
22337 config/sh/sh.h, config/sparc/linux.h, config/sparc/linux64.h,
22338 config/sparc/openbsd64.h, config/sparc/sp64-elf.h,
22339 config/sparc/sp86x-elf.h, config/xtensa/elf.h, config/xtensa/linux.h:
22340 Don't define __ELF__.
22341 * config/alpha.h, config/m68k/linux.h (TARGET_OBJFMT_CPP_BUILTINS):
22342 Define __ELF__.
22343 * doc/cpp.texi: Document __ELF__.
22344 * doc/tm.texi: Document TARGET_OBJFMT_CPP_BUILTINS. *
22345
223462003-05-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22347
22348 * builtins.c (validate_arglist): Eliminate libiberty VA_ macros,
22349 always use stdarg.
22350 * c-errors.c (pedwarn_c99): Likewise.
22351 * c-format.c (status_warning): Likewise.
22352 * c-semantics.c (build_stmt): Likewise.
22353 * calls.c (emit_library_call, emit_library_call_value): Likewise.
22354 * collect2.c (notice, fatal_perror, fatal, error): Likewise.
22355 * cpperror.c (cpp_error, cpp_error_with_line): Likewise.
22356 * diagnostic.c (build_message_string, output_printf,
22357 output_verbatim, verbatim, inform, warning, pedwarn, error, sorry,
22358 fatal_error, internal_error, warning_with_decl, pedwarn_with_decl,
22359 error_with_decl, fnotice): Likewise.
22360 * dwarf2asm.c (dw2_asm_output_data, dw2_asm_output_delta,
22361 dw2_asm_output_offset, dw2_asm_output_pcrel, dw2_asm_output_addr,
22362 dw2_asm_output_addr_rtx, dw2_asm_output_nstring,
22363 dw2_asm_output_data_uleb128, dw2_asm_output_data_sleb128,
22364 dw2_asm_output_delta_uleb128, dw2_asm_output_delta_sleb128,
22365 dw2_asm_output_encoded_addr_rtx): Likewise.
22366 * emit-rtl.c (gen_rtx, gen_rtvec): Likewise.
22367 * errors.c (warning, error, fatal, internal_error): Likewise.
22368 * final.c (output_operand_lossage, asm_fprintf): Likewise.
22369 * fix-header.c (fatal): Likewise.
22370 * gcc.c (fatal, error, notice): Likewise.
22371 * gcov.c (fnotice): Likewise.
22372 * genattrtab.c (attr_rtx, attr_printf): Likewise.
22373 * gengtype.c (error_at_line, xasprintf, oprintf): Likewise.
22374 * gensupport.c (message_with_line): Likewise.
22375 * mips-tfile.c (fatal, error): Likewise.
22376 * protoize.c (notice): Likewise.
22377 * ra-debug.c (ra_debug_msg): Likewise.
22378 * read-rtl.c (fatal_with_file_and_line): Likewise.
22379 * rtl-error.c (error_for_asm, warning_for_asm): Likewise.
22380 * tree.c (build, build_nt, build_function_type_list): Likewise.
22381
223822003-05-17 Neil Booth <neil@daikokuya.co.uk>
22383
22384 * defaults.h (TARGET_CPU_CPP_BUILTINS, CPP_PREDEFINES): Remove.
22385 * gcc.c (cpp_predefines): Remove.
22386 (cpp_unique_options, do_spec_1): Remove handling of CPP_PREDEFINES.
22387 (static_specs): Remove predefines.
22388 * system.h: Poison CPP_PREDEFINES.
22389 * config/freebsd.h, config/openbsd.h, config/ptx4.h, config/svr3.h,
22390 config/svr4.h, doc/tm.texi: Remove references to CPP_PREDEFINES.
22391
223922003-05-17 Neil Booth <neil@daikokuya.co.uk>
22393
22394 * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68k-none.h,
22395 config/m68k/m68k.h, config/m68k/m68kemb.h, config/m68k/m68kv4.h,
22396 config/m68k/openbsd.h, config/m68k/rtemself.h: Remove CPP_PREDEFINES,
22397 use TARGET_OS_CPP_BUILTINS and TARGET_CPU_CPP_BUILTINS instead.
22398
223992003-05-17 Neil Booth <neil@daikokuya.co.uk>
22400
22401 PR c/9209
22402 * c-common.c, c-common.h (dollars_in_ident): Remove.
22403 * c-opts.c (DOLLARS_IN_IDENTIFIERS): Default to true.
22404 (c_common_init_options, c_common_decode_option): Set dollars_in_ident.
22405 * cpphash.h (warned_dollar): Rename warn_dollars.
22406 * cppinit.c (struct lang_flags, lang_defaults, cpp_set_lang)
22407 Permit dollars regardless of -std=.
22408 (post_options): Set warn_dollars.
22409 * cpplex.c (forms_identifier_p): Use warn_dollars.
22410 * config/darwin.h, config/alpha/vms.h, config/m68hc11/m68hc11.h:
22411 Remove redundant definitions of DOLLARS_IN_IDENTIFIERS.
22412 * doc/cpp.texi, doc/cppopts.texi, doc/invoke.texi, doc/tm.texi:
22413 Update documentation.
22414
224152003-05-17 Andreas Schwab <schwab@suse.de>
22416
22417 * config/m68k/m68k.c (m68k_output_function_prologue): Use
22418 HOST_WIDE_INT_PRINT_DEC for fprintf and %wd for asm_fprintf when
22419 formatting a HOST_WIDE_INT.
22420 (m68k_output_function_epilogue): Likewise.
22421
224222003-05-17 Zack Weinberg <zack@codesourcery.com>
22423
22424 * doc/install.texi: Remove information about desupported targets.
22425
224262003-05-17 Andreas Schwab <schwab@suse.de>
22427
22428 * config/m68k/coff.h: Remove support for Sun FPA and Sun SKY board.
22429 * config/m68k/linux.h: Likewise.
22430 * config/m68k/m68k-none.h: Likewise.
22431 * config/m68k/netbsd-elf.h: Likewise.
22432 * config/m68k/sgs.h: Likewise.
22433 * config/m68k/m68k.h: Likewise.
22434 * config/m68k/m68k.md: Likewise.
22435 * config/m68k/m68k.c: Likewise.
22436 * doc/md.texi (Machine Constraints): Remove Sun FPA specific
22437 constraints.
22438 * doc/invoke.texi (Option Summary): Remove -mfpa.
22439 (M680x0 Options): Likewise.
22440
224412003-05-17 David Edelsohn <edelsohn@gnu.org>
22442
22443 * rs6000.c (rs6000_function_value): Simplify REAL_TYPE logic.
22444
224452003-05-17 Neil Booth <neil@daikokuya.co.uk>
22446
22447 * config/sol2.h: Add TARGET_SUB_OS_CPP_BUILTINS.
22448 * config/sparc/liteelf.h, config/sparc/openbsd64.h,
22449 config/sparc/rtemself.h, config/sparc/sol2-64.h,
22450 config/sparc/sp64-elf.h, config/sparc/sp86x-elf.h:
22451 Update for use of TARGET_SUB_OS_CPP_BUILTINS.
22452
224532003-05-17 Neil Booth <neil@daikokuya.co.uk>
22454
22455 * i960/i960.h, i960/rtems.h: Use TARGET_OS_CPP_BUILTINS and
22456 TARGET_CPU_CPP_BUILTINS in preference to CPP_PREDEFINES.
22457
224582003-05-17 Neil Booth <neil@daikokuya.co.uk>
22459
22460 * config.gcc (sparc-*-sysv4*): Add sparc/sysv4-only.h.
22461 * sparc/aout.h, sparc/elf.h, sparc/freebsd.h, sparc/linux.h,
22462 sparc/linux64.h, sparc/lite.h, sparc/litecoff.h, sparc/liteelf.h,
22463 sparc/netbsd-elf.h, sparc/openbsd.h, sparc/openbsd64.h,
22464 sparc/pbd.h, sparc/rtemself.h, sparc/sol2-64.h, sparc/sol2-bi.h,
22465 sparc/sol2.h, sparc/sp64-elf.h, sparc/sp86-elf.h, sparc/sparc.h,
22466 sparc/sysv4.h,
22467 * sparc/sysv4-only.h: New.
22468
224692003-05-17 Alan Modra <amodra@bigpond.net.au>
22470
22471 * function.c (assign_parms): Check for zero size args.
22472
224732003-05-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22474
22475 * cfgloopanal.c (test_for_iteration): Use string concatentation on
22476 HOST_WIDE_INT_PRINT_* format specifier to collapse multiple
22477 function calls into one.
22478 * dbxout.c (dbxout_symbol): Likewise.
22479 * defaults.h (ASM_OUTPUT_SIZE_DIRECTIVE): Likewise.
22480 * dwarf2asm.c (dw2_asm_output_data_uleb128,
22481 dw2_asm_output_data_sleb128): Likewise.
22482 * genrecog.c (debug_decision_2): Likewise.
22483 * loop.c (emit_prefetch_instructions): Likewise.
22484 * print-rtl.c (print_rtx): Likewise.
22485 * print-tree.c (print_node_brief, print_node): Likewise.
22486 * ra-debug.c (dump_igraph, dump_graph_cost,
22487 dump_static_insn_cost): Likewise.
22488 * ra-rewrite.c (dump_cost): Likewise.
22489 * sdbout.c (PUT_SDB_INT_VAL, PUT_SDB_SIZE): Likewise.
22490 * sreal.c (dump_sreal): Likewise.
22491 * unroll.c (unroll_loop, precondition_loop_p): Likewise.
22492 * varasm.c (assemble_vtable_entry): Likewise.
22493
22494 * avr.c (avr_output_function_prologue,
22495 avr_output_function_epilogue, print_operand): Fix format specifier
22496 warnings.
22497 (init_cumulative_args): Mark parameter with ATTRIBUTE_UNUSED.
22498 * avr.h (FUNCTION_VALUE_REGNO_P): Fix signed/unsigned warnings.
22499
225002003-05-16 Geoffrey Keating <geoffk@apple.com>
22501
22502 * config/rs6000/rs6000.c (expand_block_move): Unify the TARGET_STRING
22503 and ! TARGET_STRING cases.
22504
22505 * doc/cppopts.texi (-undef): Fix texinfo warning.
22506
22507 * doc/cppopts.texi (-H): Document that -H works for PCH files too.
22508 * cppfiles.c (validate_pch): When -H is used, print some information
22509 about PCH files found.
22510
225112003-05-16 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22512
22513 * config/mips/t-elf: Remove obsolete rules adding dependencies on tm.h.
22514 * config/mips/t-isa3264, config/mips/t-r3900: Likewise.
22515 * config/mips/t-sr71k: Likewise.
22516
225172003-05-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22518
22519 * arc.c (arc_output_function_prologue,
22520 arc_output_function_epilogue): Fix format specifier warnings.
22521 * arc.h (LARGE_INT): Fix signed/unsigned warnings.
22522
22523 * v850.c (print_operand): Fix format specifier warnings.
22524
22525 * ns32k.c (ADJSP, ns32k_output_function_prologue): Fix format
22526 specifier warnings.
22527
22528 * mcore.c (mcore_print_operand_address, mcore_print_operand): Fix
22529 format specifier warnings.
22530
22531 * ip2k.c (function_prologue, function_epilogue, print_operand):
22532 Fix format specifier warnings.
22533 * ip2k.md: Likewise.
22534
22535 * i960.c (i960_output_function_prologue, i960_print_operand,
22536 i960_print_operand_addr): Fix format specifier warnings.
22537
22538 * i370.c (ascebc, ebcasc): Wrap in macros controlling usage.
22539 (i370_output_function_prologue): Fix format specifier warnings.
22540 * i370.h (PRINT_OPERAND): Likewise.
22541
22542 * fr30.c (fr30_print_operand): Fix format specifier warnings.
22543
22544 * dsp16xx.c (print_operand_address): Fix format specifier warning.
22545 * dsp16xx.h (INCLUDE_DEFAULTS): Add missing initializers.
22546
22547 * c4x.c (c4x_print_operand, c4x_print_operand_address): Fix format
22548 specifier warnings.
22549
22550 * alpha.c (print_operand_address, alpha_start_function,
22551 unicosmk_output_ssib): Use string concatentation on
22552 HOST_WIDE_INT_PRINT_* format specifier to collapse multiple
22553 function calls into one.
22554 * arm.c (arm_print_operand): Likewise.
22555 * cris.c (cris_asm_output_mi_thunk): Likewise.
22556 * frv.c (frv_asm_output_mi_thunk): Likewise.
22557 * ia64.c (ia64_print_operand, process_set): Likewise.
22558 * m68k.c (m68k_output_function_epilogue, m68k_output_mi_thunk):
22559 Likewise.
22560 * mips/iris5gas.h (PUT_SDB_SIZE): Likewise.
22561 * mips.h (PUT_SDB_INT_VAL, PUT_SDB_SIZE): Likewise.
22562 * pa.c (output_div_insn, pa_asm_output_mi_thunk): Likewise.
22563 * pa.h (PRINT_OPERAND_ADDRESS): Likewise.
22564 * rs6000.c (rs6000_va_start, print_operand_address): Likewise.
22565 * s390.c (s390_assemble_integer): Likewise.
22566 * sparc.c (sparc_flat_function_prologue,
22567 sparc_flat_function_epilogue): Likewise.
22568 * stormy16.c (xstormy16_print_operand_address, xstormy16_print_operand): Likewise.
22569 * vax.c (vax_output_mi_thunk): Likewise.
22570
22571 * frv.c (frv_print_operand_memory_reference): Fix format specifier
22572 warning.
22573 (frv_rtx_costs): Mark parameter with ATTRIBUTE_UNUSED.
22574
22575 * m68k.c (m68k_output_function_epilogue): Fix format specifier
22576 warnings.
22577
22578 * stormy16-protos.h (xs_hi_general_operand,
22579 xs_hi_nonmemory_operand): Prototype.
22580 * stormy16.c (xstormy16_output_shift): Fix format specifier
22581 warnings.
22582
22583 * cris.c: Fix format specifier warnings.
22584
225852003-05-16 Nick Clifton <nickc@redhat.com>
22586
22587 * config/arm/lib1funcs.asm: Fix typo: LSM instead of LSYM.
22588
225892003-05-16 Wolfgang Bangerth <bangerth@dealii.org>
22590
22591 * doc/bugreport.texi: Remove most of the of the preface of the
22592 bugs section.
22593
225942003-05-16 Jakub Jelinek <jakub@redhat.com>
22595
22596 * config/ia64/unwind-ia64.c (uw_update_reg_address): Handle
22597 .save XX, r0.
22598
225992003-05-15 Roger Sayle <roger@eyesopen.com>
22600
22601 * config/alpha/alpha.h (ASM_OUTPUT_SKIP): Fix typo.
22602
226032003-05-15 Eric Christopher <echristo@redhat.com>
22604
22605 * cfgcleanup.c (merge_blocks): Fix return value.
22606
226072003-05-15 Eric Christopher <echristo@redhat.com>
22608
22609 * combine.c (expand_compound_operation): Make sure
22610 that zero_extend operation is profitable.
22611
226122003-05-15 Richard Henderson <rth@redhat.com>
22613
22614 * config/alpha/linux.h, config/alpha/linux-elf.h: Remove
22615 code protected by USE_GNULIBC_1.
22616
226172003-05-15 Zack Weinberg <zack@codesourcery.com>
22618
22619 * config.gcc: Purge all targets obsoleted in GCC 3.3. Also
22620 remove hppa*-*-mpeix* which could not be built, and prune
22621 files from tmake_file= or tm_file= lists that don't exist.
22622
22623 * config/alpha/alpha-interix.h, config/alpha/alpha32.h
22624 * config/alpha/t-interix, config/arm/conix-elf.h
22625 * config/arm/t-arm-aout, config/arm/t-strongarm-coff
22626 * config/arm/unknown-elf-oabi.h, config/i386/win32.h
22627 * config/m68k/3b1.h, config/m68k/3b1g.h, config/m68k/amix.h
22628 * config/m68k/atari.h, config/m68k/ccur-GAS.h, config/m68k/crds.h
22629 * config/m68k/hp2bsd.h, config/m68k/hp3bsd.h
22630 * config/m68k/hp3bsd44.h, config/m68k/linux-aout.h
22631 * config/m68k/m68k-psos.h, config/m68k/mot3300.h
22632 * config/m68k/pbb.h, config/m68k/plexus.h, config/m68k/sun2.h
22633 * config/m68k/sun2o4.h, config/m68k/sun3.h, config/m68k/sun3mach.h
22634 * config/m68k/sun3n.h, config/m68k/sun3n3.h, config/m68k/sun3o3.h
22635 * config/m68k/t-mot3300, config/m68k/t-mot3300-gald
22636 * config/m68k/t-mot3300-gas, config/m68k/t-mot3300-gld
22637 * config/m68k/tower-as.h, config/m68k/tower.h
22638 * config/m88k/aout-dbx.h, config/m88k/m88k-aout.h
22639 * config/m88k/m88k-modes.def, config/m88k/m88k-move.sh
22640 * config/m88k/m88k-protos.h, config/m88k/m88k.c
22641 * config/m88k/m88k.h, config/m88k/m88k.md, config/m88k/openbsd.h
22642 * config/m88k/sysv4.h, config/m88k/t-luna, config/m88k/t-luna-gas
22643 * config/m88k/t-m88k, config/m88k/t-sysv4, config/mcore/gfloat.h
22644 * config/mips/rtems64.h, config/mips/sni-gas.h
22645 * config/mips/sni-svr4.h, config/mips/t-ecoff
22646 * config/mn10200/lib1funcs.asm, config/mn10200/mn10200-protos.h
22647 * config/mn10200/mn10200.c, config/mn10200/mn10200.h
22648 * config/mn10200/mn10200.md, config/mn10200/t-mn10200
22649 * config/pa/pa-hiux.h, config/pa/pa-hpux7.h, config/pa/pa-hpux9.h
22650 * config/pa/pa-oldas.h, config/pa/t-mpeix, config/psos.h
22651 * config/romp/romp-protos.h, config/romp/romp.c
22652 * config/romp/romp.h, config/romp/romp.md, config/rs6000/aix31.h
22653 * config/rs6000/aix3newas.h, config/rs6000/mach.h
22654 * config/sparc/bsd.h, config/sparc/hal.h
22655 * config/sparc/linux-aout.h, config/sparc/lynx-ng.h
22656 * config/sparc/lynx.h, config/sparc/netbsd.h
22657 * config/sparc/sp86x-aout.h, config/sparc/splet.h
22658 * config/sparc/sun4gas.h, config/sparc/sun4o3.h
22659 * config/sparc/sunos4.h, config/sparc/t-chorus-elf
22660 * config/sparc/t-halos, config/sparc/t-sparcbare
22661 * config/sparc/t-splet, config/sparc/t-sunos41
22662 * config/v850/rtems.h: Delete file.
22663
226642003-05-15 Aldy Hernandez <aldyh@redhat.com>
22665
22666 * config/rs6000/rs6000-protos.h (function_value): Protoize.
22667
22668 * config/rs6000/rs6000.h (FUNCTION_VALUE): Call function.
22669
22670 * config/rs6000/rs6000.c (rs6000_function_value): New.
22671
226722003-05-15 Philip Blundell <philb@gnu.org>
22673
22674 * config/arm/arm.c (arm_is_xscale): Rename to arm_arch_xscale.
22675 All uses updated.
22676 (arm_tune_xscale): New variable.
22677 (arm_override_options): Set it.
22678 (arm_adjust_cost): Use it in place of arm_arch_xscale.
22679 (arm_gen_load_multiple): Likewise.
22680 (arm_gen_store_multiple): Likewise.
22681 * config/arm/arm.md (is_xscale): Likewise.
22682 * config/arm/arm.h (arm_tune_xscale): Declare.
22683
226842003-05-15 Philip Blundell <philb@gnu.org>
22685
22686 PR target/10730
22687 * config/arm/arm.c (adjacent_mem_locations): Reject offsets
22688 involving invalid constants.
22689
226902003-05-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22691
22692 * pa.c (hppa_expand_prologue): Remove blockage.
22693
226942003-05-15 Wolfgang Bangerth <bangerth@dealii.org>
22695
22696 * doc/bugreport.texi: Remove most of the bug reporting
22697 instructions and merge them into bugs.html.
22698
226992003-05-14 Matt Kraai <kraai@alumni.cmu.edu>
22700
22701 * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Cast
22702 g_switch_value to unsigned HOST_WIDE_INT.
22703
227042003-05-14 Eric Christopher <echristo@redhat.com>
22705
22706 * combine.c: Fix header comments.
22707 (distribute_notes): Remove usage of elim_i1, elim_i2. Propagate
22708 to all calls and prototype.
22709
227102003-05-14 Roger Sayle <roger@eyesopen.com>
22711
22712 PR optimization/10764
22713 * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
22714 Add an explicit clobber to show that UNSPEC_FPATAN clobbers st(1).
22715 (*fyl2x_sfxf3, *fyl2x_dfxf3, *fyl2x_xf3, *fyl2x_tfxf3): Likewise,
22716 add an explicit clobber to show that UNSPEC_FYL2X clobbers st(1).
22717 (logsf2, logdf2, logxf2, logtf2): Update expander patterns to match
22718 the corresponding *fyl2x_?fxf3 instructions.
22719
227202003-05-14 Bob Wilson <bob.wilson@acm.org>
22721
22722 * config/xtensa/lib2funcs.S (TRAMPOLINE_SIZE): Change from 49 to 59.
22723 * config/xtensa/xtensa-config.h (XCHAL_HAVE_CONST16,
22724 XCHAL_HAVE_L32R): New.
22725 * config/xtensa/xtensa-protos.h (non_const_move_operand,
22726 xtensa_load_constant, xtensa_function_prologue,
22727 xtensa_function_epilogue): Delete prototypes.
22728 (xtensa_expand_prologue): New.
22729 * config/xtensa/xtensa.c (frame_size_const,
22730 TARGET_ASM_FUNCTION_PROLOGUE, TARGET_MACHINE_DEPENDENT_REORG,
22731 non_const_move_operand, xtensa_load_constant, xtensa_reorg,
22732 xtensa_function_prologue): Delete.
22733 (add_operand, xtensa_mem_offset): Formatting.
22734 (move_operand): If the const16 option is available, allow any SFmode
22735 and SImode constants.
22736 (xtensa_emit_move_sequence): Inline the former contents of
22737 xtensa_load_constant with modifications to handle the const16 option.
22738 (override_options): Add xtensa_char_to_class['W'] and set it to
22739 the general register class only if the const16 option is enabled.
22740 Fix formatting. Disallow PIC when using the const16 option.
22741 (print_operand): Reorganize to switch on "letter" instead of the
22742 RTL code. Add output_operand_lossage calls for invalid cases.
22743 Add support for 't' and 'b' letters.
22744 (xtensa_expand_prologue): New function to replace
22745 xtensa_function_prologue and xtensa_reorg.
22746 (xtensa_function_epilogue): Declare this as static. Delete code
22747 to print the retw.n or retw instruction.
22748 (xtensa_return_addr): Use A0_REG instead of 0.
22749 (xtensa_rtx_costs): Add costs for using the const16 option.
22750 * config/xtensa/xtensa.h (MASK_CONST16, TARGET_CONST16): New.
22751 (TARGET_DEFAULT): Add CONST16 if L32R instructions not available.
22752 (TARGET_SWITCHES): Add "const16" and "no-const16".
22753 (REG_CLASS_FROM_LETTER): Add comment about new 'W' letter.
22754 (EXTRA_CONSTRAINT): Change 'T' constraint to only apply when not
22755 using the const16 option.
22756 (TRAMPOLINE_TEMPLATE): Rewrite to avoid hardwired use of l32r insn.
22757 (TRAMPOLINE_SIZE): Change from 49 to 59.
22758 (INITIALIZE_TRAMPOLINE): Adjust offsets to match new trampoline.
22759 (GO_IF_LEGITIMATE_ADDRESS): Do not allow constant pool addresses
22760 when using the const16 option.
22761 (PREDICATE_CODES): Delete non_const_move_operand.
22762 * config/xtensa/xtensa.md (define_constants): Add A1_REG, A8_REG, and
22763 UNSPECV_ENTRY.
22764 (movdi, movdf): If the source is a constant, always expand to a
22765 sequence of movsi insns.
22766 (movdi_internal, movdf_internal): Remove alternative using l32r insns.
22767 (movsi_internal, movsf_internal): Add alternative using const16 insns.
22768 (movsf): Add const16 support.
22769 (entry, prologue, epilogue): New.
22770 (set_frame_ptr): Add missing mode for unspec_volatile operation.
22771 Likewise for subsequent split pattern.
22772 * doc/invoke.texi (Option Summary, Xtensa Options): Document new
22773 "-mconst16" and "-mno-const16" options.
22774
227752003-05-14 Richard Henderson <rth@redhat.com>
22776
22777 * config/ia64/ia64.c (ia64_expand_load_address): Force destination
22778 to be DImode register. Merge load_symptr.
22779 * config/ia64/ia64.md (load_symptr): Remove.
22780
227812003-05-14 Richard Henderson <rth@redhat.com>
22782
22783 * rtl.h (TREE_CONSTANT_POOL_ADDRESS_P): Rename from
22784 DEFERRED_CONSTANT_P.
22785 * integrate.c (copy_rtx_and_substitute): Update use.
22786 * varasm.c (build_constant_desc): Set SYMBOL_REF_DECL
22787 to the copy generated.
22788 (maybe_output_constant_def_contents): Examine TREE_ASM_WRITTEN
22789 of the constant to see if we should emit.
22790 (mark_constant): Similarly.
22791 (output_constant_def_contents): Set TREE_ASM_WRITTEN.
22792
227932003-05-14 David Edelsohn <edelsohn@gnu.org>
22794
22795 * config/rs6000/rs6000.md (movsi_internal2): Use compare for self
22796 move record condition.
22797 (movdi_internal2): Same.
22798
227992003-05-14 Nathan Sidwell <nathan@codesourcery.com>
22800
22801 * gcov-io.h (gcov_write_bytes, gcov_read_bytes): Remove here.
22802 (GCOV_TAG_*) Force type to gcov_unsigned_t.
22803 (GCOV_CHECK, GCOV_CHECK_READING, GCOV_CHECK_WRITING): New.
22804 (struct gcov_var): Remove modified. Add start, length, offset,
22805 overread. Have buffer array for libgcov.
22806 (gcov_sync, gcov_seek): Definitions moved to gcov-io.c.
22807 (gcov_position, gcov_rewrite, gcov_is_eof): Adjust.
22808 * gcov-io.c (gcov_open): Set mode, do not read anything.
22809 (gcov_close): Write final block.
22810 (gcov_write_block, gcov_allocate): New.
22811 (gcov_write_bytes): Make static. Write or allocate buffer.
22812 (gcov_write_unsigned, gcov_write_counter): Buffer can never be
22813 null.
22814 (gcov_write_string): Adjust.
22815 (gcov_write_tag)
22816 (gcov_write_length): Adjust. Flush the block.
22817 (gcov_write_tag_length): Buffer can never be null.
22818 (gcov_read_bytes): Make static. Read in block.
22819 (gcov_sync): Moved here. Adjust.
22820 (gcov_seek): Moved here. Adjust.
22821 * coverage.c (read_counts_file): Adjust.
22822 * gcov-dump.c (print_prefix): Add position parameter.
22823 (flag_dump_positions): New flag.
22824 (options, main, print_usage): Add it.
22825 (dump_file, tag_blocks, tag_arcs, tag_lines, tag_counters,
22826 tag_summary): Adjust.
22827 * gcov.c (read_graph_file, read_count_file): Adjust.
22828 * libgcov.c (gcov_exit): Adjust.
22829
22830 * Makefile.in (LIBGCC_DEPS): Use $(srcdir) on gcov files
22831 (libgcov.a): Depend on libgcc.a.
22832 (gcov.o, gcov-dump.o): Add gcov-io.c.
22833 * mklibgcc.in (libgcov_c_dep): Use $(srcdir).
22834
22835 * loop.c (check_dbra_loop): Factor common test.
22836
228372003-05-14 Ben Elliston <bje@wasabisystems.com>
22838
22839 * doc/md.texi (Automaton pipeline description): Grammar fixes.
22840
228412003-05-14 Richard Sandiford <rsandifo@redhat.com>
22842
22843 * target-def.h (TARGET_MACHINE_DEPENDENT_REORG): Define.
22844 (TARGET_INITIALIZER): Include it.
22845 * target.h (struct gcc_target): Add machine_dependent_reorg field.
22846 * toplev.c (rest_of_compilation): Use targetm.machine_dependent_reorg.
22847 * system.h: Poison MACHINE_DEPENDENT_REORG.
22848
22849 * config/alpha/alpha-protos.h (alpha_reorg): Remove declaration.
22850 * config/alpha/alpha.h (MACHINE_DEPENDENT_REORG): Remove.
22851 * config/alpha/alpha.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
22852 (alpha_handle_trap_shadows): Remove "first insn" parameter.
22853 (alpha_align_insns): Likewise.
22854 (alpha_reorg): Likewise. Make static. Update calls to above
22855 functions.
22856
22857 * config/arm/arm-protos.h (arm_reorg): Remove declaration.
22858 * config/arm/arm.h (MACHINE_DEPENDENT_REORG): Remove.
22859 * config/arm/arm.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
22860 (arm_reorg): Remove parameter. Make static.
22861
22862 * config/avr/avr-protos.h (machine_dependent_reorg): Remove.
22863 * config/avr/avr.h (MACHINE_DEPENDENT_REORG): Remove.
22864 * config/avr/avr.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
22865 (avr_reorg): Renamed from machine_dependent_reorg. Make static.
22866 Remove parameter.
22867
22868 * config/c4x/c4x-protos.h (c4x_process_after_reload): Remove.
22869 * config/c4x/c4x.h (MACHINE_DEPENDENT_REORG): Remove.
22870 * config/c4x/c4x.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
22871 (c4x_reorg): Renamed from c4x_process_after_reload. Make static.
22872 Remove parameter.
22873
22874 * config/d30v/d30v-protos.h (d30v_machine_dependent_reorg): Remove.
22875 * config/d30v/d30v.h (MACHINE_DEPENDENT_REORG): Remove.
22876 * config/d30v/d30v.c (d30v_machine_dependent_reorg): Remove.
22877
22878 * config/frv/frv-protos.h (frv_machine_dependent_reorg): Remove.
22879 * config/frv/frv.c: Remove orphaned comment.
22880
22881 * config/i386/i386-protos.h (x86_machine_dependent_reorg): Remove.
22882 * config/i386/i386.h (MACHINE_DEPENDENT_REORG): Remove.
22883 * config/i386/i386.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
22884 (ix86_reorg): Renamed from x86_machine_dependent_reorg. Make static.
22885 Remove parameter.
22886
22887 * config/ia64/ia64-protos.h (ia64_reorg): Remove declaration.
22888 * config/ia64/ia64.h (MACHINE_DEPENDENT_REORG): Remove.
22889 * config/ia64/ia64.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
22890 (emit_insn_group_barriers): Remove "first insn" parameter.
22891 (emit_all_insn_group_barriers): Likewise.
22892 (ia64_reorg): Likewise. Make static. Update calls to above functions.
22893 (ia64_output_mi_thunk): Update call to emit_all_insn_group_barriers.
22894
22895 * config/ip2k/ip2k-protos.h (machine_dependent_reorg): Remove.
22896 * config/ip2k/ip2k.h (MACHINE_DEPENDENT_REORG): Remove.
22897 * config/ip2k/ip2k.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
22898 (ip2k_reorg): Renamed from machine_dependent_reorg. Make static.
22899 Remove parameter.
22900
22901 * config/m68hc11/m68hc11-protos.h (m68hc11_reorg): Remove declaration.
22902 * config/m68hc11/m68hc11.h (MACHINE_DEPENDENT_REORG): Remove.
22903 * config/m68hc11/m68hc11.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
22904 (m68hc11_reorg): Make static. Remove parameter.
22905
22906 * config/mcore/mcore-protos.h (mcore_dependent_reorg): Remove.
22907 * config/mcore/mcore.h (MACHINE_DEPENDENT_REORG): Remove.
22908 * config/mcore/mcore.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
22909 (conditionalize_optimization): Remove parameter.
22910 (mcore_reorg): Renamed from mcore_dependent_reorg. Remove parameter.
22911 Make static. Update call to conditionalize_optimization.
22912
22913 * config/mips/mips-protos.h (machine_dependent_reorg): Remove.
22914 * config/mips/mips.h (MACHINE_DEPENDENT_REORG): Remove.
22915 * config/mips/mips.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
22916 (mips_reorg): Renamed from machine_dependent_reorg. Remove parameter.
22917 Make static.
22918
22919 * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg): Remove.
22920 * config/mmix/mmix.h (MACHINE_DEPENDENT_REORG): Remove.
22921 * config/mmix/mmix.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
22922 (mmix_reorg): Renamed from mmix_machine_dependent_reorg. Make static.
22923 Remove parameter.
22924
22925 * config/pa/pa-protos.h (pa_reorg): Remove declaration.
22926 * config/pa/pa.h (MACHINE_DEPENDENT_REORG): Remove.
22927 * config/pa/pa.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
22928 (pa_combine_instructions): Remove "first insn" parameter.
22929 (remove_useless_addtr_insns): Likewise.
22930 (pa_reorg): Likewise. Make static. Update calls to above functions.
22931
22932 * config/rs6000/rs6000.h (MACHINE_DEPENDENT_REORG): Remove
22933 commented-out definition.
22934
22935 * config/s390/s390-protos.h (s390_machine_dependent_reorg): Remove.
22936 * config/s390/s390.h (MACHINE_DEPENDENT_REORG): Remove.
22937 * config/s390/s390.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
22938 (s390_reorg): Renamed from s390_machine_dependent_reorg. Make static.
22939 Remove parameter.
22940
22941 * config/sh/sh-protos.h (machine_dependent_reorg): Remove.
22942 * config/sh/sh.h (MACHINE_DEPENDENT_REORG): Remove.
22943 * config/sh/sh.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
22944 (sh_reorg): Renamed from machine_dependent_reorg. Make static.
22945 Remove parameter.
22946 (sh_output_mi_thunk): Call sh_reorg directly.
22947 * config/sh/sh.md: Update comment.
22948
22949 * config/stormy16/stormy16.h (MACHINE_DEPENDENT_REORG): Remove
22950 commented-out definition.
22951
22952 * config/v850/v850-protos.h (v850_reorg): Remove declaration.
22953 * config/v850/v850.h (MACHINE_DEPENDENT_REORG): Remove.
22954 * config/v850/v850.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
22955 (v850_reorg): Make static. Remove parameter.
22956
22957 * config/xtensa/xtensa-protos.h (xtensa_reorg): Remove declaration.
22958 * config/xtensa/xtensa.h (MACHINE_DEPENDENT_REORG): Remove.
22959 * config/xtensa/xtensa.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
22960 (xtensa_reorg): Make static. Remove parameter.
22961
22962 * doc/tm.texi (MACHINE_DEPENDENT_REORG): Remove.
22963 (TARGET_MACHINE_DEPENDENT_REORG): Document.
22964
229652003-05-13 Richard Henderson <rth@redhat.com>
22966
22967 * c-decl.c (duplicate_decls): Re-invoke make_decl_rtl if
22968 the old decl had instantiated DECL_RTL.
22969
229702003-05-13 Mike Stump <mrs@apple.com>
22971
22972 * doc/invoke.texi (Option Summary): Kill off documentation for -$.
22973
229742003-05-13 Janis Johnson <janis187@us.ibm.com>
22975
22976 * config/rs6000/sysv4.h (OUTPUT_ASM_ALIGNED_LOCAL): Expect
22977 HOST_WIDE_INT argument.
22978
229792003-05-13 Jason Merrill <jason@redhat.com>
22980
22981 * tree.h (STRIP_MAIN_TYPE_NOPS): New macro.
22982
22983 * tree.c (iterative_hash_expr): New fn.
22984
22985 * c-semantics.c (emit_local_var): Don't mess with temp slots if
22986 there's no initializer.
22987
229882003-05-13 Richard Sandiford <rsandifo@redhat.com>
22989
22990 * final.c (final_scan_insn): Apply the effects of frame-related
22991 delay slot insns before emitting a delayed branch.
22992
229932003-05-13 Nick Clifton <nickc@redhat.com>
22994
22995 * config/mcore/mcore.md (jump): Use emit_jump_insn.
22996
229972003-05-13 Ulrich Weigand <uweigand@de.ibm.com>
22998
22999 * config/s390/s390.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Second
23000 parameter of ASM_OUTPUT_SKIP must have type unsigned HOST_WIDE_INT.
23001
230022003-05-12 DJ Delorie <dj@redhat.com>
23003
23004 * expr.c (move_by_pieces): Honor the alignment of TO and FROM.
23005 (emit_push_insn): Don't use push when the source alignment is less
23006 than the stack's push rounding.
23007
230082003-05-13 Zack Weinberg <zack@codesourcery.com>
23009
23010 * diagnostic.c (output_format): Add support for %m.
23011 (output_printf, output_verbatim, diagnostic_set_info,
23012 verbatim): Set err_no field of the text_info structure being
23013 initialized.
23014 (fatal_io_error): Delete function.
23015 * diagnostic.h (text_info): Add err_no field.
23016 * toplev.h (fatal_io_error): Delete prototype.
23017
23018 * c-opts.c, c-pch.c, dwarfout.c, ggc-common.c, ggc-page.c, graph.c
23019 * toplev.c, config/mips/mips.c, config/rs6000/host-darwin.c
23020 * objc/objc-act.c: Replace all calls to fatal_io_error with
23021 calls to fatal_error; add ": %m" to the end of all the affected
23022 error messages.
23023
230242003-05-13 Zack Weinberg <zack@codesourcery.com>
23025
23026 * varasm.c (notice_rtl_inlining_of_deferred_constant): New function.
23027 * rtl.h: Prototype it.
23028 * integrate.c (copy_rtx_and_substitute <SYMBOL_REF>): Call it
23029 when appropriate.
23030
230312003-05-13 Ulrich Weigand <uweigand@de.ibm.com>
23032
23033 * config/s390/s390.md ("*iordi3_oi"): Do not mark commutative.
23034 ("*iorsi3_oi"): Likewise.
23035
230362003-05-13 Richard Earnshaw <rearnsha@arm.com>
23037
23038 * arm.md (compare_scc): Use shorter sequence for EQ case.
23039 (ior_scc_scc_cmp, and_scc_scc_cmp): New insn-and-split patterns.
23040 (and_scc_scc): Ensure split only applies when there is a dominance
23041 of the comparisons.
23042 (and_scc_scc_nodom): New insn-and-split pattern.
23043
230442003-05-13 Richard Sandiford <rsandifo@redhat.com>
23045
23046 * unwind-dw2.c (uw_init_context_1): Don't pass &outer_cfa directly
23047 to _Unwind_SetGRPtr().
23048
230492003-05-13 Michael Eager <eager@mvista.com>
23050
23051 * Makefile.in: Initialize program_transform_cross_name from
23052 @program_transform_name@ instead of target_alias.
23053
230542003-05-12 Janis Johnson <janis187@us.ibm.com>
23055 Alan Modra <amodra@bigpond.net.au>
23056 Jakub Jelinek <jakub@redhat.com>
23057
23058 * configure.in (HAVE_AS_TLS): Add powerpc and powerpc64 tests.
23059 * configure: Rebuild.
23060 * config/rs6000/rs6000-protos.h: Update.
23061 * config/rs6000/rs6000.c (rs6000_tls_size): New.
23062 (rs6000_tls_size_string): New.
23063 (rs6000_parse_tls_size_option): New.
23064 (rs6000_legitimize_tls_address): New.
23065 (rs6000_tls_get_addr): New.
23066 (rs6000_got_sym): New.
23067 (rs6000_tls_symbol_ref): New.
23068 (rs6000_tls_symbol_ref_1): New.
23069 (rs6000_get_some_local_dynamic_name): New.
23070 (rs6000_get_some_local_dynamic_name_1): New.
23071 (TARGET_HAVE_TLS): New.
23072 (TARGET_CANNOT_FORCE_CONST_MEM): New.
23073 (rs6000_override_options): Handle -mtls-size option.
23074 (constant_pool_expr_1): Handle TLS symbols.
23075 (rs6000_legitimize_address): Handle TLS symbols.
23076 (rs6000_tls_referenced_p): New.
23077 (rs6000_legitimate_address): Handle TLS symbols.
23078 (rs6000_emit_move): Handle TLS symbols.
23079 (print_operand): Handle TLS symbols.
23080 (uses_TOC): Handle TLS symbols.
23081 (rs6000_emit_prologue): Use symbol for unspec constant.
23082 * config/rs6000/rs6000.h (HAVE_AS_TLS): New.
23083 (some_ld_name): New.
23084 (LEGITIMATE_CONSTANT_P): Handle TLS symbols.
23085 (PRINT_OPERAND_PUNCT_VALID_P): Handle TLS symbols.
23086 (PREDICATE_CODES): Add rs6000_tls_symbol_ref.
23087 * config/rs6000/rs6000.md (load_toc_v4_PIC_1, load_toc_v4_PIC_1b):
23088 Support TLS.
23089 (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64, tls_dtprel_32,
23090 tls_dtprel_64, tls_dtprel_ha_32, tls_dtprel_ha_64, tls_dtprel_lo_32,
23091 tls_dtprel_lo_64, tls_got_dtprel_32, tls_got_dtprel_64, tls_tprel_32,
23092 tls_tprel_64, tls_tprel_ha_32, tls_tprel_ha_64, tls_tprel_lo_32,
23093 tls_tprel_lo_64, tls_got_tprel_32, tls_got_tprel_64, tls_tls_32,
23094 tls_tls_64): New.
23095 * config/rs6000/sysv4.h (SUBTARGET_OPTIONS): Add tls_size.
23096
230972003-05-12 Neil Booth <neil@cat.daikokuya.co.uk>
23098
23099 * Makefile.in (stage2_build, stage3_build, stage4_build):
23100 Set BUILD_CC to the same as CC.
23101
231022003-05-12 Neil Booth <neil@daikokuya.co.uk>
23103
23104 * alloc-pool.c (last_id): Put in ENABLE_CHECKING guards.
23105
231062003-05-12 Andreas Schwab <schwab@suse.de>
23107
23108 * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Mark 'exp'
23109 as unused.
23110 (bundling): Initialize 'pos'.
23111 (ia64_expand_builtin): Initialize 'rmode'.
23112
231132003-05-12 David Edelsohn <edelsohn@gnu.org>
23114
23115 * config/rs6000/xcoff.h (ASM_OUTPUT_SKIP): Accept HOST_WIDE_INT.
23116 (ASM_OUTPUT_ALIGNED_COMMON): Same.
23117 (ASM_OUTPUT_LOCAL): Same.
23118
23119Mon May 12 21:53:29 CEST 2003 Jan Hubicka <jh@suse.cz>
23120
23121 * varasm.c (output_constant): Fix underflow.
23122
231232003-05-12 Mark Mitchell <mark@codesourcery.com>
23124
23125 PR other/10745
23126 * configure.in: Correct detection of GNU ld version number.
23127 * configure: Regenerated.
23128
231292003-05-12 Zack Weinberg <zack@codesourcery.com>
23130
23131 * diagnostic.c (diagnostic_for_decl): Take a
23132 diagnostic_context argument. Restructure to be consistent
23133 with diagnostic_report_diagnostic.
23134 (diagnostic_count_diagnostic): Now static. Take a
23135 diagnostic_info argument, not just a diagnostic_t. Some code
23136 moved here from internal_error. Move a case label for
23137 clarity.
23138 (diagnostic_action_after_output): New function. Code moved
23139 here from internal_error and fatal_error.
23140 (bug_report_request): New #define so that this text appears in
23141 only one place.
23142 (diagnostic_report_diagnostic): Update to match changes to
23143 diagnostic_count_diagnostic. Call diagnostic_action_after_output.
23144 (diagnostic_set_info): Call gettext here.
23145
23146 (pedwarn): Update comment. Don't call gettext here.
23147 (sorry): Use report_diagnostic. Don't call gettext here.
23148 (fatal_error): Remove final fnotice and exit, but call
23149 real_abort to prevent warnings about noreturn function returning.
23150 (internal_error): Likewise. Don't do ICE suppression here nor
23151 call context->internal_error.
23152 (warning_with_decl): Suppress for decls in system headers.
23153 Adjust call to diagnostic_for_decl.
23154 (pedwarn_with_decl): Likewise.
23155 (error_with_decl): Adjust call to diagnostic_for_decl.
23156 (error_recursion): Use bug_report_request.
23157
23158 * diagnostic.h: Remove prototype of diagnostic_count_diagnostic.
23159 * objc/objc-act.c (error_with_ivar, warn_with_method): Don't call
23160 diagnostic_count_diagnostic.
23161
231622003-05-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23163
23164 * pa64-hpux.h (ASM_OUTPUT_ALIGNED_COMMON): Correct last patch.
23165
23166Mon May 12 15:57:54 CEST 2003 Jan Hubicka <jh@suse.cz>
23167
23168 * rs6000/darwin.h (ASM_OUTPUT_COMMON): Accept HOST_WIDE_INT
23169 * mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Fix warning.
23170 * mips/mips.h (ASM_OUTPUT_SKIP): Fix typo in the previous patch.
23171
231722003-05-12 Roger Sayle <roger@eyesopen.com>
23173
23174 * doc/rtl.texi: Document zero_extract as a valid destination
23175 of a set insn.
23176
231772003-05-12 Richard Earnshaw <rearnsha@arm.com>
23178
23179 * arm/lib1funcs.asm (LSYM): Define -- on ELF prefix a local symbol with
23180 '.'. Change all local symbol definitions and references to use LSYM.
23181
23182Mon May 12 11:32:53 CEST 2003 Jan Hubicka <jh@suse.cz>
23183
23184 * expr.h (assemble_static_space): Update prototype.
23185 * output.h (assemble_zeros, output_constant): Likewise.
23186 * elfos.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON): Make it 64bit clean
23187 * alpha.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASK_OUTPUT_LOCAL): Make
23188 it 64bit clean.
23189 * elf.h (ASM_OTUPUT_SKIP): Likewise.
23190 * unicosmk.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMM): Likewise.
23191 * arm.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
23192 Expect HOST_WIDE_INT operand.
23193 * aout.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
23194 Expect HOST_WIDE_INT operand.
23195 * unknown-elf.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
23196 Expect HOST_WIDE_INT operand.
23197 * avr.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_SKIP): Expect
23198 HOST_WIDE_INT operand.
23199 * c4x.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP,
23200 ASM_OUTPUT_BSS): Expect HOST_WIDE_INT operand.
23201 * aout.h (ASM_OTUPUT_SKIP): Likewise.
23202 * cris.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
23203 * darwin.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_COMMON): Likewise.
23204 * dsp16xx.h (ASM_OTUPUT_SKIP): Likewise.
23205 * frv.h (ASM_OTUPUT_SKIP): Likewise.
23206 * h8300.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_LOCAL): Likewise.
23207 * 370.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
23208 Make it 64bit
23209 clean.
23210 * att.h (ASM_OUTPUT_SKIP): Expect HOST_WIDE_INT operand.
23211 * bsd.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
23212 Make it 64bit clean.
23213 * darwin.h (ASM_OUTPUT_SKIP): Make it 64bit clean..
23214 * sco5.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Expect
23215 HOST_WIDE_INT operand
23216 * svr3gas.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
23217 Expect HOST_WIDE_INT operand
23218 * sysv3.h (ASM_OUTPUT_SKIP): Expect HOST_WIDE_INT operand
23219 * i960.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON,
23220 ASM_OUTPUT_ALIGNED_LOCAL): Expect HOST_WIDE_INT operand
23221 * ip2k.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
23222 Likewise.
23223 * m32r.h (ASM_OUTPUT_COMMON): Likewise.
23224 * 3b1.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
23225 Likewise.
23226 * amix.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
23227 * crds.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
23228 * hp320.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
23229 ASM_OUTPUT_SKIP): Likewise.
23230 * m68k.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
23231 Likewise.
23232 * m68kelf.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
23233 ASM_OUTPUT_SKIP): Likewise.
23234 * m68kv4.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
23235 ASM_OUTPUT_SKIP): Likewise.
23236 * mot3300.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP): Likewise.
23237 * netbsd-elf.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON,
23238 ASM_OUTPUT_SKIP): Likewise.
23239 * sgs.h (ASM_OUTPUT_SKIP): Likewise.
23240 * tower-as.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON,
23241 ASM_OUTPUT_SKIP): Likewise.
23242 * m88k.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON, ASM_OUTPUT_SKIP):
23243 Likewise.
23244 * mcore.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_BSS, ASM_OUTPUT_SKIP): Likewise.
23245 * iris.h (ASM_OUTPUT_LOCAL): Likewise.
23246 * mips.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP): Likewise.
23247 * ns32k.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
23248 ASM_OUTPUT_SKIP): Make it 64bit clean.
23249 * pa-pro-end.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_ALIGNED_LOCAL):
23250 Make it 64bit clean.
23251 * pa.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_ALIGNED_LOCAL,
23252 ASM_OUTPUT_SKIP): Make it 64bit clean.
23253 * hpux.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_ALIGNED_LOCAL): Make it
23254 64bit clean.
23255 * romp.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON): Expect
23256 HOST_WIDE_INT argument
23257 * s390.h (ASM_OUTPUT_SKIP): Expect HOST_WIDE_INT argument.
23258 * sh.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON): Expect
23259 HOST_WIDE_INT argument
23260 * sol2.h (ASM_OUTPUT_SKIP): HOST_WIDE_INT argument
23261 * sparc.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON): HOST_WIDE_INT argument
23262 * svr3.h (ASM_OUTPUT_SKIP): HOST_WIDE_INT argument
23263 * vax.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
23264 HOST_WIDE_INT argument
23265 * vaxv.h (ASM_OUTPUT_LOCAL): HOST_WIDE_INT argument
23266 * xtensa.h (ASM_OUTPUT_LOCAL): HOST_WIDE_INT argument
23267 * varasm.c (asm_output_bss, asm_output_aligned_bss,
23268 asm_emit_uninitialized, assemble_zeros, assemble_static_space):
23269 HOST_WIDE_INT argument
23270
232712003-05-10 Steven Bosscher <steven@gcc.gnu.org>
23272
23273 * cgraphunit.c (cgraph_create_edges): Drop walk_tree in
23274 favor of walk_tree_without_duplicates. Add comments.
23275
232762003-05-12 Josef Zlomek <zlomekj@suse.cz>
23277
23278 * alloc-pool.h (ALLOC_POOL_ID_TYPE): New type.
23279 (struct alloc_pool_def): New element 'id'.
23280 * alloc-pool.c (fancy_abort): Extern function prototype.
23281 (abort): Macro which uses fancy_abort.
23282 (struct allocation_object_def): New structure.
23283 (ALLOCATION_OBJECT_PTR_FROM_USER_PTR): New macro.
23284 (USER_PTR_FROM_ALLOCATION_OBJECT_PTR): New macro.
23285 (last_id): New variable.
23286 (create_alloc_pool): Add the offset of u.data to size of element,
23287 increase and use last_id.
23288 (free_alloc_pool): Do the checking only when ENABLE_CHECKING.
23289 (pool_alloc): Likewise. Set ID for elements.
23290 (pool_free): Check whether the PTR was allocated from POOL.
23291
232922003-05-11 Richard Henderson <rth@redhat.com>
23293
23294 PR c/10675
23295 * c-decl.c: Include hashtab.h.
23296 (detect_field_duplicates): New.
23297 (finish_struct): Use it.
23298 * Makefile.in (c-decl.o): Update.
23299 * c-parse.in (structsp_attr): Nreverse component_decl_list results.
23300 (component_decl_list, component_decl_list2,
23301 components, components_notype): Build list in reverse order.
23302 (enumlist): Clarify docs. Use TREE_CHAIN not chainon.
23303
23304 * tree.c (chainon): Special case op2 null as well.
23305 Reorg for clarity.
23306
233072003-05-11 Roger Sayle <roger@eyesopen.com>
23308
23309 * config/i386/i386.md (logsf2, logdf2, logxf2, logdf2): New patterns
23310 to implement log, logf and logl built-ins as inline x87 intrinsics.
23311 (UNSPEC_FYL2X): New unspec to represent x87's "fyl2x" instruction.
23312 (*fyl2x_sfxf3, *fyl2x_dfxf3, *fyl2x_xf3, *fyl2x_tfxf3): New insn
23313 patterns for x87's "fyl2x" instruction, used by log?f2 patterns.
23314
23315 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FYL2X like
23316 UNSPEC_FPATAN, i.e. replaces two stack operands with single result.
23317
233182003-05-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
23319
23320 * Makefile.in (out_object_file): Don't set -Wno-error for ${cpu}.o.
23321
23322 * sparc.c (print_operand): Fix uninitialized warning.
23323
233242003-05-12 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
23325
23326 * cfgloopanal.c (num_loop_insns, average_num_loop_insns): Count only
23327 real insns.
23328 * loop-unroll.c (unroll_loop_runtime_iterations): Remove superfluous
23329 condition.
23330
233312003-05-11 Neil Booth <neil@cat.daikokuya.co.uk>
23332
23333 * doc/cpp.texi: Fix typos.
23334
233352003-05-11 Ulrich Weigand <uweigand@de.ibm.com>
23336
23337 * config/s390/s390.c (s390_function_arg_float): New function.
23338 (s390_function_arg_pass_by_reference): Use it.
23339 (s390_function_arg_advance): Likewise.
23340 (s390_function_arg): Likewise.
23341 (s390_va_arg): Likewise
23342
233432003-05-11 Nathan Sidwell <nathan@codesourcery.com>
23344
23345 * coverage.h (coverage_counter_alloc): New function.
23346 * function.h (struct function): Remove arc_profile flag.
23347 * coverage.c (fn_ident): Remove.
23348 (fn_b_ctrs, no_coverage): New.
23349 (get_coverage_counts): Use current_function_funcdef_no.
23350 (coverage_counter_alloc): New.
23351 (coverage_counter_ref): Adjust.
23352 (coverage_begin_output): Check no_coverage. Use
23353 current_function_funcdef_no.
23354 (coverage_end_function): Likewise.
23355 (create_coverage): Set no_coverage. Set DECL_UNINLINEABLE rather
23356 than clearing flag_inline_functions. Do not clear arc_profile
23357 flag.
23358 * function.c (prepare_function_start): Do not set arc_profile
23359 flag.
23360 * profile.c (instrument_edges): Return number of instrumented
23361 edges. Use a for loop.
23362 (branch_prob): Call coverage_counter_alloc. Make BB_TO_GCOV_INDEX
23363 local to here and simplify. Use profile_arc_flag not arc_profile
23364 flag.
23365 (find_spanning_tree): Reformat.
23366 * toplev.c (rest_of_compilation): Use profile_arc_flags and
23367 flag_test_coverage rather than arc_profile flag.
23368
233692003-05-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
23370
23371 * doc/invoke.texi (Wctor-dtor-privacy): Update documentation.
23372
233732003-05-11 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23374
23375 * varasm.c (copy_constant, case VIEW_CONVERT_EXPR): New case.
23376
233772003-05-11 Bruno Haible <bruno@clisp.org>
23378
23379 * cppfiles.c (find_or_create_entry): Preserve errno.
23380
233812003-05-11 Neil Booth <neil@cat.daikokuya.co.uk>
23382
23383 * c-cppbuiltin.c (c_cpp_builtins): Move __STDC_HOSTED__ into
23384 cpplib as it's a Standard Predefined Macro.
23385 * c-opts.c (finish_options): Pass flag_hosted to cpp_init_builtins.
23386 * cppinit.c (_cpp_init_builtins): Take HOSTED. Define
23387 __STDC_HOSTED__ appropriately.
23388 * cpplib.h (_cpp_init_builtins): Update.
23389 * fix-header.c (read_scan_file): Update.
23390 * doc/cpp.texi, doc/cppopts.texi: Update documentation.
23391
233922003-05-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
23393
23394 PR C++/689
23395 PR C++/9257
23396 * c-opts.c (c_common_decode_option): Don't set
23397 warn_ctor_dtor_privacy wen -Wall.
23398 * c-common.c (warn_ctor_dtor_privacy): Don't turn on by default.
23399
234002003-05-10 Alexandre Oliva <aoliva@redhat.com>
23401
23402 * reload1.c (reload_cse_move2add): Revert part of my 2003-05-09's
23403 patch.
23404
234052003-05-10 Zack Weinberg <zack@codesourcery.com>
23406
23407 * diagnostic.c: Reorder functions for clarity, putting all the
23408 functions in the "error" family next to each other, and
23409 likewise all the functions in the "error_with_decl" family.
23410 Some other routines were moved too. Add comments.
23411 (vbuild_message_string): Fold into sole caller.
23412
23413
234142003-05-11 Ulrich Weigand <uweigand@de.ibm.com>
23415
23416 * except.c (EH_RETURN_STACKADJ_RTX): Do not define.
23417 (EH_RETURN_HANDLER_RTX): Likewise.
23418 (expand_builtin_eh_return): Do not copy stack adjustment
23419 if EH_RETURN_STACKADJ_RTX is not defined.
23420 (expand_eh_return): Likewise. Also, do not pass stack
23421 adjustment as argument to the eh_return pattern.
23422 * except.h (MUST_USE_SJLJ_EXCEPTIONS): Do not define just
23423 because EH_RETURN_STACKADJ_RTX is not defined.
23424 * unwind-dw.c (uw_update_context_1): If EH_RETURN_STACKADJ_RTX
23425 is not defined, treat stack pointer like a regular register.
23426 (uw_init_context_1): Set up fake initial stack pointer register.
23427 (uw_install_context_1): Do not compute stack adjustment if
23428 EH_RETURN_STACKADJ_RTX is not defined.
23429
23430 * config/i386/i386.md ("eh_return"): Remove first argument.
23431 * config/mips/mips.md ("eh_return"): Likewise.
23432 * config/rs6000/rs6000.md ("eh_return"): Likewise.
23433 * config/sh/sh.md ("eh_return"): Likewise.
23434
23435 * config/s390/s390.h (EH_RETURN_STACKADJ_RTX): Remove.
23436
234372003-05-10 Alexander Aganichev <aaganichev@yandex.ru>
23438
23439 * config/i386/i386.h (MODES_TIEABLE_P): Fix typo.
23440
234412003-05-10 Nathan Sidwell <nathan@codesourcery.com>
23442
23443 * defaults.h (GCOV_TYPE_SIZE): Remove.
23444 * gcov-io.h (gcov_type): Set to specific mode int on target.
23445 (gcov_unsigned_t, gcov_position_t): New.
23446 (GCOV_TYPE_NODE): New.
23447 (GCOV_TAG_SUMMARY_LENGTH): Adjust.
23448 (GCOV_COUNTERS_SUMMABLE): New.
23449 (gcov_ctr_summary, gcov_sumary, gcov_fn_info, gcov_merge_fn,
23450 gcov_ctr_info, gcov_info): Adjust types.
23451 (gcov_var): Adjust types.
23452 (gcov_write_unsigned, gcov_write_tag,
23453 gcov_write_length, gcov_write_tag_length, gcov_write_summary,
23454 gcov_read_unsigned, gcov_read_summary): Adjust gcov types.
23455 (gcov_position, gcov_sync, gcov_seek): Adjust gcov types.
23456 * gcov-io.c (gcov_write_unsigned, gcov_write_tag,
23457 gcov_write_length, gcov_write_tag_length, gcov_write_summary,
23458 gcov_read_unsigned, gcov_read_summary): Adjust gcov types.
23459 * libgcov.c (gcov_crc32, gcov_version_mismatch, gcov_exit,
23460 __gcov_init, __gcov_merge_add): Adjust gcov types.
23461 * coverage.c (ctr_merge_functions): Constify.
23462 (ctr_names): New.
23463 (read_counts_file): Adjust gcov types. Only summarize & merge
23464 summable counters.
23465 (coverage_counter_ref): Use GCOV_TYPE_NODE.
23466 (build_fn_info_type, build_fn_info_value, build_ctr_info_type,
23467 build_ctr_info_value, build_gcov_info): Adjust types.
23468 * profile.c (branch_prob): Adjust gcov types.
23469 * gcov_dump (dump_file): Adjust gcov types.
23470
234712003-05-10 Richard Earnshaw <rearnsha@arm.com>
23472
23473 * arm.md (DOM_CC_X_AND_Y, DOM_CC_NX_OR_Y, DOM_CC_X_OR_Y): New
23474 constants.
23475 (ior_scc_scc, and_scc_scc): New insn_and_split patterns.
23476 * arm.c (arm_select_dominance_cc_mode): Renamed from
23477 select_dominance_cc_mode, no-longer static. Use DOM_CC... constants.
23478 Callers updated.
23479 * arm-protos.h (arm_select_dominance_cc_mode): Add prototype.
23480
234812003-05-09 Roger Sayle <roger@eyesopen.com>
23482
23483 * config/alpha/alpha.c (alpha_start_function): Declare frame_size
23484 as unsigned to avoid signed/unsigned comparison warnings.
23485
234862003-05-09 Bob Wilson <bob.wilson@acm.org>
23487
23488 * config/xtensa/xtensa.c (xtensa_emit_loop_end): Only use "nop.n"
23489 instruction if the Xtensa density option is enabled.
23490
234912003-05-09 Matt Kraai <kraai@alumni.cmu.edu>
23492
23493 * mklibgcc.in: Remove extra quotes.
23494
234952003-05-09 Mark Mitchell <mark@codesourcery.com>
23496
23497 * config/rs6000/rs6000.c (spe_init_builtins): Fix typo in creation
23498 of int_ftype_void.
23499
235002003-05-09 Alexandre Oliva <aoliva@redhat.com>
23501
23502 * reload1.c (reload_cse_move2add): Don't turn an implicit
23503 truncation into a self-set in the narrow mode.
23504
235052003-05-09 Richard Earnshaw <rearnsha@arm.com>
23506
23507 * arm.md (clzsi2): The CLZ instruction is predicable.
23508
235092003-05-09 Bob Wilson <bob.wilson@acm.org>
23510
23511 * config/xtensa/xtensa.c: Formatting.
23512
235132003-05-09 Diego Novillo <dnovillo@redhat.com>
23514
23515 * tree-dump.c (dequeue_and_dump): Use CONSTRUCTOR_ELTS,
23516 instead of TREE_OPERAND to access the operand of a
23517 CONSTRUCTOR node.
23518
235192003-05-09 Diego Novillo <dnovillo@redhat.com>
23520
23521 * tree-dump.c (dequeue_and_dump): CONSTRUCTOR nodes contain only
23522 one operand.
23523
235242003-05-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
23525
23526 * toplev.h (warning_with_file_and_line): Don't declare.
23527 (error_with_file_and_line): Likewise.
23528 * diagnostic.c (error_with_file_and_line): Remove.
23529 (warning_with_file_and_line): Likewise.
23530
235312003-05-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
23532
23533 * c-parse.in (if_stmt_locus): New object.
23534 (if_prefix rule): Use it. Don't use warning_with_file_and_line.
23535 (select_or_iter_stmt rule): Likewise.
23536 (if_stmt_file): Remove.
23537 (if_stmt_line): Likewise.
23538 * jump.c: include "diagnostic.h"
23539 (never_reached_warning): Don't use warning_with_file_and_line.
23540 * Makefile.in (jump.o): Add dependce on diagnostic.h
23541
235422003-05-09 Alan Modra <amodra@bigpond.net.au>
23543
23544 * expr.c (move_block_from_reg): Remove "size" parm. Localize vars.
23545 Move code handling pieces not larger than a word to..
23546 * function.c (assign_parms): ..here, but use change_address instead
23547 of adjust_address and operand_subword, and expand_binop instead of
23548 expand_shift. Adjust calls to move_block_from_reg.
23549 * expr.h (move_block_from_reg): Update declaration.
23550 (copy_blkmode_from_reg): Formatting.
23551 * Makefile.in (function.o): Add $(OPTABS_H) to deps.
23552 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Adjust
23553 move_block_from_reg calls.
23554 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
23555 * config/i960/i960.c (i960_setup_incoming_varargs): Likewise.
23556 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
23557 * config/m88k/m88k.c (m88k_builtin_saveregsk): Likewise.
23558 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
23559 * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
23560 * config/romp/romp.h (SETUP_INCOMING_VARARGS): Likewise.
23561 * config/rs6000/rs6000.c (setup_incoming_varargs): Likewise.
23562 * config/sh/sh.c (sh_builtin_saveregs): Likewise.
23563
235642003-05-08 DJ Delorie <dj@redhat.com>
23565
23566 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_arg): Fix
23567 to handle arguments for which MUST_PASS_IN_STACK is true (e.g.,
23568 variable-sized types).
23569 (xstormy16_function_arg): New. Pass them that way too.
23570 * config/stormy16/stormy16-protos.h (xstormy16_function_arg): New.
23571 * config/stormy16/stormy16.h (FUNCTION_ARG): Call it.
23572
235732003-05-08 Aldy Hernandez <aldyh@redhat.com>
23574
23575 * mklibgcc.in: Use mkinstalldirs when installing multilib
23576 directories.
23577
235782003-05-08 J"orn Rennecke <joern.rennecke@superh.com>
23579
23580 * sh.c (gen_block_redirect, split_branches): Use CODE_FOR_jump_compact
23581 instead of CODE_FOR_jump
23582
235832003-05-08 Gabriel Dos Reis <gdr@integrable-solutions.net>
23584
23585 * objc/objc-act.c (error_with_ivar): Don't use
23586 error_with_file_and_line.
23587 (warn_with_method): Don't use warning_with_file_and_line.
23588
235892003-05-08 Gabriel Dos Reis <gdr@integrable-solutions.net>
23590
23591 * stmt.c (emit_locus): New macro.
23592 (emit_filename): Remove.
23593 (emit_lineno): Likewise.
23594 (struct stmt_status): Replace members x_emit_filename and
23595 x_emit_lineno with x_emit_locus.
23596 (set_file_and_line_for_stmt): Adjust.
23597 (expand_expr_stmt_value): Don't use warning_with_file_and_line.
23598 (warn_if_unused_value): Likewise.
23599 (check_seenlabel): Likewise.
23600
236012003-05-08 Gabriel Dos Reis <gdr@integrable-solutions.net>
23602
23603 * c-decl.c (define_label): Tidy. Don't use any of
23604 error_with_file_and_line or warning_with_file_and_file.
23605 (pending_xref_error): Likewise.
23606 (store_parm_decls): Likewise.
23607 (current_function_prototype_locus): New object. Package from
23608 current_function_prototype_file and current_function_prototype_line.
23609 (start_function): Use it.
23610 (current_function_prototype_file): Remove.
23611 (current_function_prototype_line): Remove;
23612
236132003-05-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
23614
23615 * builtins.c (readonly_data_expr): New function.
23616 (expand_builtin_memmove): Optimize any rodata source, not just
23617 strings.
23618
236192003-05-07 David Mosberger <davidm@hpl.hp.com>
23620
23621 * unwind-libunwind.c (_Unwind_FindEnclosingFunction): New.
23622
236232003-05-07 Richard Henderson <rth@redhat.com>
23624
23625 * config/i386/i386.c (ix86_split_long_move): Fix base register
23626 mode for XFmode splits for TARGET_64BIT.
23627
236282003-05-07 Richard Henderson <rth@redhat.com>
23629
23630 * sched-ebb.c (schedule_ebb): Supply the correct starting
23631 block number to save_line_notes.
23632
236332003-05-07 Richard Henderson <rth@redhat.com>
23634
23635 * toplev.c (enum dump_file_index): Swap DFI_ce3, DFI_bbro.
23636 (dump_file): Likewise.
23637
236382003-05-07 David Mosberger <davidm@hpl.hp.com>
23639
23640 * config/ia64/crtbegin.asm (__do_jv_register_classes): Don't
23641 forget to preserve gp.
23642 * config/ia64/crtend.asm (__do_global_ctors_au): Ditto.
23643
23644 * config/ia64/crtbegin.asm (__do_jv_register_classes): Add missing
23645 .prologue directive.
23646 Use .skip instead of data8 for .bss section to make Intel
23647 Assembler (ias) happy. Minor whitespace fixups. Make "nop 0"
23648 explicit in the .mib bundles and remove the unnecessary stop
23649 bits. Replace local labels with normal labels, to make ias
23650 happy. Don't register __do_global_ctors_aux here, do it in
23651 crtend.asm instead.
23652
23653 * config/ia64/crtend.asm [HAVE_INIT_FINI_ARRAY]: Register
23654 __do_global_ctors_aux in .init_array section instead of
23655 declaring it as a hidden global. Replace local labels with
23656 ordinary labels to make ias happy.
23657
236582003-05-07 Richard Henderson <rth@redhat.com>
23659
23660 PR c++/10570
23661 * except.c: Revert 04-01 and 04-02 forced-unwind changes.
23662 * flags.h, toplev.c, doc/invoke.texi: Likewise.
23663
23664 * unwind-dw2.c (_Unwind_GetCFA): Fix ptr->int conversion warning.
23665 * unwind.inc (_Unwind_DeleteException): Check for null
23666 exception_cleanup.
23667
23668 * unwind-sjlj.c (_Unwind_SjLj_Resume_or_Rethrow): New.
23669 * unwind.inc (_Unwind_Resume_or_Rethrow): New.
23670 * unwind.h: Declare them.
23671 * libgcc-std.ver (GCC_3.3): Export them.
23672
236732003-05-07 Richard Henderson <rth@redhat.com>
23674
23675 * unwind-dw2.c (_Unwind_GetCFA): Cast pointer to _Unwind_Ptr,
23676 not _Unwind_Word.
23677
236782003-05-07 Zack Weinberg <zack@codesourcery.com>
23679
23680 * stmt.c (force_label_rtx): New function, based on logic
23681 formerly found in expand_expr.
23682 * expr.h: Prototype it.
23683 * expr.c (expand_expr <LABEL_DECL>): Use force_label_rtx if
23684 appropriate.
23685 * varasm.c (decode_addr_const <LABEL_DECL>): Use force_label_rtx.
23686
23687 * print-tree.c (debug_tree): Free the table after we're done
23688 with it. Use putc.
23689
236902003-05-07 Aldy Hernandez <aldyh@redhat.com>
23691
23692 * config/rs6000/spe.h: Reverse arguments for __ev_subfw.
23693 Unreverse arguments for __ev_subw.
23694
23695 * config/rs6000/spe.md (evsubfw): Reverse arguments of assembly.
23696
236972003-05-07 Nick Clifton <nickc@redhat.com>
23698
23699 * config/stormy16/stormy-abi: Update to include
23700 R_XSTORMY16_FPTR16, R_XSTORMY16_LO16, R_XSTORMY16_HI16 and
23701 R_XSTORMY16_12 relocs.
23702
237032003-05-07 Alan Modra <amodra@bigpond.net.au>
23704
23705 * function.c (assign_parms): Correct reversed reg_parm_stack_space
23706 test. Add partial in-regs size to stack_args_size.
23707
237082003-05-07 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
23709
23710 * doc/invoke.texi (Warning Options): Mark -Wmissing-declarations
23711 as a C only option.
23712
237132003-05-07 Nathan Sidwell <nathan@codesourcery.com>
23714
23715 * gcov-io.h (GCOV_LOCKED): New #define.
23716 (GCOV_LINKAGE): Make sure it is #defined.
23717 (gcov_write_string, gcov_write_tag, gcov_write_length,
23718 gcov_read_string, gcov_time): Poison in libgcov.
23719 (gcov_seek_end): Remove.
23720 (gcov_write_tag_length, gcov_sync, gcov_rewrite): New.
23721 (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
23722 GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
23723 GCOV_TAG_SUMMARY_LENGTH): New #defines.
23724 (gcov_write_tag, gcov_write_length): Not in libgcov.
23725 * gcov-io.c (gcov_open): Use GCOV_LOCKED.
23726 (gcov_write_tag, gcov_write_length): Not in libgcov.
23727 (gcov_write_tag_length): New.
23728 (gcov_write_summary): Use gcov_write_tag_length.
23729 * libgcov.c: Always #include gcov-io.h.
23730 (IN_LIBGCOV): -1 for inhibit_libc, +1 otherwise.
23731 (GCOV_LINKAGE): Define to nothing for L_gcov.
23732 (gcov_exit): Replace gcov_write_tag, gcov_write_length with
23733 gcov_write_tag_length. Use gcov_rewrite & gcov_seek.
23734 * gcov.c (read_graph_file): Replace gcov_seek by gcov_sync.
23735 (read_count_file): Likewise.
23736 * gcov-dump.c (dump_file): Likewise.
23737 * coverag.c (read_counts_file): Likewise.
23738
237392003-05-06 Mark Mitchell <mark@codesourcery.com>
23740
23741 PR other/10658
23742 * gcc.c (process_command): Update copyright date.
23743
237442003-05-06 Phil Edwards <pme@gcc.gnu.org>
23745
23746 * doc/install.texi (mips-*-*): Add note about libstdc++.
23747
237482003-05-06 DJ Delorie <dj@redhat.com>
23749
23750 * config/stormy16/stormy16.c (xstormy16_function_profiler): New.
23751 * config/stormy16/stormy16.h (FUNCTION_PROFILER): Call it.
23752 * config/stormy16/stormy16-protos.h (xstormy16_function_profiler): New.
23753
237542003-05-06 <neil@cat.daikokuya.co.uk>
23755
23756 * c-opts.c (COMMAND_LINE_OPTIONS): Reject -Wmissing-prototypes
23757 and -Wstrict-prototypes if C++.
23758
237592003-05-06 Aldy Hernandez <aldyh@redhat.com>
23760
23761 * config/rs6000/linuxspe.h: New file.
23762
23763 * config.gcc: Add powerpc-*-linux-gnuspe* target.
23764
237652003-05-06 Richard Henderson <rth@redhat.com>
23766
23767 * unwind-dw2.c (uw_update_context_1): Only set cfa as sp if
23768 previous frame didn't save sp. Clear sp for next frame.
23769 (uw_install_context_1): Honor saved sp from frame.
23770
237712003-05-06 Richard Sandiford <rsandifo@redhat.com>
23772
23773 * config/mips/mips-protos.h (mips_subword, mips_output_move): Declare.
23774 (mips_move_1word, mips_move_2words): Remove declaration.
23775 (mips_split_64bit_move_p, mips_split_64bit_move): Declare.
23776 (mips_restore_gp): Remove insn argument.
23777 * config/mips/mips.h (FP_REG_RTX_P): New macro.
23778 * config/mips/mips.c (volatile_buffer): Remove.
23779 (mips_subword, mips_split_64bit_move_p, mips_split_64bit_move): New.
23780 (mips_move_1word, mips_move_2words): Remove, replacing with...
23781 (mips_output_move): ...this new function.
23782 (mips_restore_gp): Remove insn argument. Adjust for above changes.
23783 (print_operand): Make '%h' print %hi(op) for HIGH operands. Remove
23784 handling of floating-point constants. Handle zero CONST_DOUBLE
23785 arguments.
23786 (mips_annotate_frame_insn): Replace with...
23787 (mips_set_frame_expr): ...this, which just takes one argument.
23788 (mips_frame_set): Change the register argument to an rtx.
23789 (mips_emit_frame_related_store): Use mips_split_64bit_move_p to
23790 check whether moves should be split. Use mips_split_64bit_move
23791 to split them. Use mips_subword to generate the high and low
23792 parts of a paired FPR. Adjust calls to frame_set and
23793 mips_set_frame_expr.
23794 (mips_expand_prologue): Simplify due to above changes.
23795 * config/mips/mips.md: Add splitters for 64-bit moves on 32-bit
23796 targets, replacing xisting register-only versions.
23797 (UNSPEC_STORE_DF_HIGH): New unspec.
23798 (UNSPEC_LOAD_DF_LOW, UNSPEC_LOAD_DF_HIGH): New unspecs.
23799 (mulsi3_r4000, muldi3_internal2): Avoid use of mips_move_1word.
23800 (*paradoxical_extendhidi2): Remove.
23801 (movdi_internal, movdi_internal2): Use mips_output_move.
23802 (*movdi_internal2_mips16, movsi_internal, movcc): Likewise.
23803 (movsf_internal1, movsf_internal2): Likewise.
23804 (movdf_internal1a): Likewise. Fix length and type of f <- G case.
23805 (movdf_internal1b): Use mips_output_move. Fix type of f <- G case.
23806 (movdf_internal2): Use mips_output_move. Fix lengths of FPR moves.
23807 Add m <- G alternative.
23808 (load_df_low, load_df_high, store_df_low): New patterns.
23809 (movhi_internal): Use @ template instead of calling a function.
23810 Remove unnecessary 'z' alternatives.
23811 (movqi_internal): Likewise.
23812 (exception_receiver): Update call to mips_restore_gp.
23813
238142003-05-06 Richard Sandiford <rsandifo@redhat.com>
23815
23816 * config/mips/mips-protos.h (mips_simplify_dwarf_addr): Remove.
23817 (mips_delegitimize_address): Declare.
23818 * config/mips/mips.h (ASM_SIMPLIFY_DWARF_ADDR): Undefine.
23819 (FIND_BASE_TERM): Define.
23820 * config/mips/mips.c (TARGET_DELEGITIMIZE_ADDRESS): Defi~e.
23821 (mips_delegitimize_address): Renamed from mips_simplify_dwarf_addr.
23822 Handle small-data addresses.
23823
238242003-05-05 Roger Sayle <roger@eyesopen.com>
23825
23826 * real.c (real_powi): New function to calculate the value of
23827 a real raised to an integer power, i.e. pow(x,n) for int n.
23828 (real_sqrt): Convert to using the faster do_add, do_multiply
23829 and do_divide API for consistency with the rest of real.c.
23830 * real.h (real_powi): Prototype here.
23831 * builtins.c (fold_builtin): Avoid local variable mode when
23832 evaluating sqrt at compile time. Attempt to evaluate pow at
23833 compile-time, by checking for an integral exponent.
23834
238352003-05-05 Richard Henderson <rth@redhat.com>
23836
23837 * doc/extend.texi (Variable Attributes): Re-sort table and tidy.
23838
238392003-05-05 David O'Brien <obrien@FreeBSD.org>
23840
23841 * config/rs6000/sysv4.h (CPP_OS_FREEBSD_SPEC): Add __ELF__ to mirror
23842 other FreeBSD ports.
23843 (LINK_OS_FREEBSD_SPEC): Mirror conventions on other FreeBSD ports.
23844 (_LITTLE_ENDIAN): Use __LITTLE_ENDIAN__ instead.
23845
238462003-05-05 Janis Johnson <janis187@us.ibm.com>
23847
23848 * Makefile.in: (site.exp): Add ALT_CC_UNDER_TEST, add quotes around
23849 expanded variables.
23850 * doc/sourcebuild.texi (C tests): Describe gcc.dg/compat tests.
23851
238522003-05-05 Zack Weinberg <zack@codesourcery.com>
23853
23854 * rtl.h (STRING_POOL_ADDRESS_P): Rename to DEFERRED_CONSTANT_P.
23855 * varasm.c (struct varasm_status): Add deferred_constants field.
23856 (n_deferred_strings): Delete variable.
23857 (n_deferred_constants): New #define.
23858 (struct constant_descriptor_tree): Kill next and label fields.
23859 (const_hash_table, MAX_HASH_TABLE): Delete.
23860 (const_desc_htab): New static variable.
23861 (const_hash): Rename const_desc_hash, and make it fit the
23862 hashtab.h interface.
23863 (const_desc_eq): New.
23864 (const_hash_1, compare_constant): Const-ify arguments.
23865 (build_constant_desc): Set DEFERRED_CONSTANT_P on all new
23866 SYMBOL_REFs. Clarify comments. Don't set desc->label.
23867 (output_constant_def): Do the lookup/insert using the
23868 hashtab.h interface. Don't muck with n_deferred_constants or
23869 DEFERRED_CONSTANT_P here.
23870 Always call maybe_output_constant_def_contents.
23871 (maybe_output_constant_def_contents): Take a pointer to the
23872 descriptor, not the EXP and RTL separately. Return
23873 immediately if this constant is not deferred. Defer output of
23874 everything, except writable string constants. Update
23875 n_deferred_constants here.
23876 (output_constant_def_contents): Now takes just one argument,
23877 an rtx. Clear DEFERRED_CONSTANT_P here.
23878 (mark_constant_pool): Update for rename of n_deferred_strings.
23879 (mark_constant): Don't clear DEFERRED_CONSTANT_P here.
23880
23881 (init_varasm_status): Clear p->deferred_constants.
23882 (init_varasm_once): Call htab_create_ggc for const_desc_htab.
23883
238842003-05-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
23885
23886 * builtins.c (expand_builtin_stpcpy): Only expand when the length
23887 of the source string can be evaluated at compile-time.
23888
238892003-05-05 Aldy Hernandez <aldyh@redhat.com>
23890
23891 * testsuite/gcc.c-torture/compile/simd-6.c: New.
23892
23893 * c-typeck.c (digest_init): Handle arrays of vector constants.
23894
238952003-05-05 Jakub Jelinek <jakub@redhat.com>
23896
23897 * builtins.c (expand_builtin_mempcpy): New function.
23898 (expand_builtin_stpcpy): Optimize stpcpy whose return value is
23899 ignored into strcpy no matter what arguments it has.
23900 (expand_builtin) <case BUILT_IN_MEMPCPY>: Call
23901 expand_builtin_mempcpy.
23902
239032003-05-05 Aldy Hernandez <aldyh@redhat.com>
23904
23905 * testsuite/gcc.dg/20030505.c: New.
23906
23907 * c-typeck.c (convert_for_assignment): Opaque pointers can
23908 interconvert.
23909
23910 * config/rs6000/rs6000.c: New global opaque_p_V2SI_type_node.
23911 (rs6000_init_builtins): Initialize opaque_p_V2SI_type_node.
23912 (spe_init_builtins): Rename all pv2si_type_node to
23913 opaque_p_V2SI_type_node.
23914 Remove declaration of pv2si_type_node.
23915 (is_ev64_opaque_type): Accept opaque pointers.
23916
239172003-05-05 Geoffrey Keating <geoffk@apple.com>
23918
23919 * config/rs6000/rs6000.c (validate_condition_mode): Use
23920 flag_finite_math_only.
23921 (rs6000_reverse_condition): Never return UNKNOWN; use
23922 flag_finite_math_only.
23923 (rs6000_generate_compare): Use flag_finite_math_only.
23924 (rs6000_emit_cmove): Handle UNLE. Support UNEQ under -ffast-math.
23925 Use HONOR_* rather than flag_unsafe_math_optimizations. Correct
23926 UNGE and GT cases. Handle UNEQ and LTGT when ! HONOR_NANS.
23927
23928 * toplev.c (check_global_declarations): Suppress not-used warning
23929 for volatile variables.
23930
239312003-05-05 Olivier Hainque <hainque@act-europe.fr>
23932
23933 * expr.c (expand_expr, case BIT_FIELD_REF): Refine the test forcing
23934 usage of bitfield instructions for mode1 != BLKmode, only ignoring
23935 SLOW_UNALIGNED_ACCESS if the field is not byte aligned.
23936 (store_field): Likewise.
23937
239382003-05-05 Aldy Hernandez <aldyh@redhat.com>
23939
23940 * config/rs6000/rs6000.c (rs6000_expand_binop_builtin): Add
23941 evsubifw to builtins accepting 5-bit unsigned constants.
23942 (easy_vector_constant): Return if V1DImode. Fix typo.
23943
239442003-05-05 Aldy Hernandez <aldyh@redhat.com>
23945
23946 * config/rs6000/spe.h: Revert licensing change from last patch.
23947
239482003-05-05 DJ Delorie <dj@redhat.com>
23949
23950 * config/stormy16/stormy16.md (negsi2): Allocate the pseudos
23951 before reload, but defer the split until after.
23952 * config/stormy16/stormy16.c (xstormy16_expand_arith): Modify
23953 to match.
23954
239552003-05-05 David Edelsohn <edelsohn@gnu.org>
23956
23957 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 440 support.
23958 * config/rs6000/vxworks.h (CC1_SPEC): Use -mcpu=440 for t440.
23959
239602003-05-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
23961
23962 * libgcov.c (__gcov_merge_add): Do not use gcov_type when inhibit_libc
23963 is defined.
23964
239652003-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
23966
23967 * builtin-attrs.def (ATTR_NOTHROW_NONNULL_1,
23968 ATTR_NOTHROW_NONNULL_2, ATTR_NOTHROW_NONNULL_3): Renamed from
23969 ATTR_NONNULL_1, ATTR_NONNULL_2 and ATTR_NONNULL_3.
23970
23971 (ATTR_NOTHROW_NONNULL_1_2, ATTR_NOTHROW_NONNULL_1_4,
23972 ATTR_CONST_NOTHROW_NONNULL_1, ATTR_PURE_NOTHROW_NONNULL_1,
23973 ATTR_PURE_NOTHROW_NONNULL_1_2, ATTR_MALLOC_NOTHROW_NONNULL_1):
23974 New.
23975
23976 * builtins.def (DEF_EXT_FALLBACK_BUILTIN): Accept ATTRS argument.
23977 (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Update comment
23978
23979 (BUILT_IN_INDEX, BUILT_IN_RINDEX, BUILT_IN_MEMCPY,
23980 BUILT_IN_MEMMOVE, BUILT_IN_MEMCMP, BUILT_IN_MEMSET,
23981 BUILT_IN_MEMPCPY, BUILT_IN_STRCAT, BUILT_IN_STRNCAT,
23982 BUILT_IN_STPCPY, BUILT_IN_STRCPY, BUILT_IN_STRNCPY,
23983 BUILT_IN_STRCMP, BUILT_IN_STRNCMP, BUILT_IN_STRLEN,
23984 BUILT_IN_STRSTR, BUILT_IN_STRPBRK, BUILT_IN_STRSPN,
23985 BUILT_IN_STRCSPN, BUILT_IN_STRCHR, BUILT_IN_STRRCHR, BUILT_IN_NAN,
23986 BUILT_IN_NANF, BUILT_IN_NANL, BUILT_IN_NANS, BUILT_IN_NANSF,
23987 BUILT_IN_NANSL, BUILT_IN_PUTS, BUILT_IN_FPUTC, BUILT_IN_FPUTS,
23988 BUILT_IN_FWRITE, BUILT_IN_PUTS_UNLOCKED, BUILT_IN_FPUTC_UNLOCKED,
23989 BUILT_IN_FPUTS_UNLOCKED, BUILT_IN_FWRITE_UNLOCKED,
23990 BUILT_IN_STRDUP): Add "nonnull" attribute.
23991
239922003-05-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23993
23994 * expr.c (store_field): Don't clobber TEMP in shift: it might be
23995 a variable.
23996 (get_inner_reference): Don't go through a VIEW_CONVERT_EXPR
23997 whose purpose is to step up the alignment.
23998 (expand_expr, case ADDR_EXPR): Force LO_SUM into memory, just like REG.
23999
24000 * stor-layout.c (compute_record_mode): Relax restriction
24001 on fields crossing word boundaries forcing BLKmode.
24002
240032003-05-04 Neil Booth <neil@daikokuya.co.uk>
24004
24005 * cppinit.c (cpp_create_reader, post_options): Warn about
24006 trigraphs unless explicity set or -trigraphs.
24007 * cpplex.c (warn_in_comment): New.
24008 (_cpp_process_line_notes): Better handling of -Wtrigraphs.
24009 (_cpp_skip_block_comment): Add call to _cpp_process_line_notes.
24010 * doc/cppopts.texi, doc/cpp.texi: Update.
24011
240122003-05-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
24013
24014 * Makefile.in (LIBGCOV): Add _gcov_merge_add.
24015 * gcov-io.h: Make GCOV_LINKAGE extern in libgcov and prevent resulting
24016 namespace clash.
24017 (GCOV_MERGE_FUNCTIONS): New.
24018 (gcov_merge_fn): Declare.
24019 (struct gcov_ctr_info): New field "merge".
24020 (__gcov_merge_add): Declare.
24021 * coverage.c (ctr_merge_functions): New.
24022 (build_ctr_info_type, build_ctr_info_value): Initialize merge field
24023 of gcov_ctr_info type.
24024 * libgcov.c (__gcov_merge_add): New.
24025 (gcov_exit): Call a hook to merge values of counters.
24026
240272003-05-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
24028
24029 * toplev.h (pedwarn_with_file_and_line): Don't declare.
24030 * diagnostic.c (pedwarn_with_file_and_line): Remove.
24031
240322003-05-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
24033
24034 * varasm.c (assemble_variable): Don't use error_with_file_and_line.
24035
240362003-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24037
24038 * builtins.c (expand_builtin_constant_p, expand_builtin_strlen,
24039 expand_builtin_frame_address): Update prototypes.
24040 (expand_builtin_constant_p, expand_builtin_strlen,
24041 expand_builtin_strcpy, expand_builtin_memset,
24042 expand_builtin_bzero, expand_builtin_args_info,
24043 expand_builtin_frame_address): Pass in just the argument(s)
24044 needed, not the entire expression `exp'.
24045 (expand_builtin): Update all calls to these functions.
24046
240472003-05-03 Richard Henderson <rth@redhat.com>
24048
24049 * builtins.c (expand_builtin) <BUILT_IN_DWARF_FP_REGNUM>: Remove.
24050 <BUILT_IN_DWARF_SP_COLUMN>: New.
24051 * builtins.def (BUILT_IN_DWARF_FP_REGNUM): Remove.
24052 (BUILT_IN_DWARF_SP_COLUMN): New.
24053 * dwarf2out.c (expand_builtin_dwarf_fp_regnum): Remove.
24054 (expand_builtin_dwarf_sp_column): New.
24055 * except.h: Update to match.
24056 * unwind-dw2.c (execute_stack_op): Correct stack push typo.
24057 (execute_cfa_program): Record location expression address
24058 before extracting length.
24059 (uw_update_context_1): Install old CFA into stack pointer column.
24060 (uw_init_context_1): Set cfa_reg to stack pointer column.
24061
240622003-05-03 Richard Henderson <rth@redhat.com>
24063
24064 * config/rs6000/rs6000.c (constant_pool_expr_p): Make static and
24065 return bool.
24066 (toc_relative_expr_p): Likewise.
24067 (SPE_CONST_OFFSET_OK): Move from rs6000.h.
24068 (legitimate_constant_pool_address_p): Move from rs6000.h, change
24069 into a function, downcase all users.
24070 (legitimate_small_data_p): Likewise.
24071 (legitimate_offset_address_p): Likewise.
24072 (legitimate_indexed_address_p): Likewise.
24073 (legitimate_indirect_address_p): Likewise.
24074 (legitimate_lo_sum_address_p): Likewise.
24075 (rs6000_mode_dependent_address): Likewise.
24076 * rs6000.h (CONSTANT_POOL_EXPR_P, TOC_RELATIVE_EXPR_P): Remove.
24077 (SPE_CONST_OFFSET_OK, LEGITIMATE_CONSTANT_POOL_ADDRESS_P,
24078 LEGITIMATE_SMALL_DATA_P, LEGITIMATE_OFFSET_ADDRESS_P,
24079 LEGITIMATE_INDEXED_ADDRESS_P, LEGITIMATE_INDIRECT_ADDRESS_P,
24080 LEGITIMATE_LO_SUM_ADDRESS_P): Move into rs6000.c.
24081 (LEGITIMATE_ADDRESS_INTEGER_P): Remove.
24082 (GO_IF_MODE_DEPENDENT_ADDRESS): Use rs6000_mode_dependent_address.
24083 * config/rs6000/rs6000-protos.h: Update.
24084
240852003-05-03 Geoffrey Keating <geoffk@apple.com>
24086
24087 * config/rs6000/rs6000.h (REVERSIBLE_CC_MODE): Define.
24088 (REVERSE_CONDITION): Define.
24089
24090 * config/rs6000/rs6000.c (scc_comparison_operator): Make equivalent
24091 to branch_positive_comparison_operator.
24092 (ccr_bit): Check that sCOND conditions are actually a positive bit.
24093 (print_operand): Remove %D substitution.
24094 (rs6000_emit_sCOND): Generate complement operation to ensure that
24095 sCOND input is a positive bit.
24096 * config/rs6000/rs6000.md: Rearrange sCOND templates to be in the
24097 same order as bCOND, and add the missing ones. Remove the %D
24098 substitutions from the scc patterns.
24099
24100 * simplify-rtx.c (simplify_relational_operation): Add case for
24101 ! (fabs(x) < 0.0).
24102
241032003-05-03 Bruce Korb <bkorb@gnu.org>
24104
24105 * gcc/fixinc/fixincl.tpl(dne): restore this to force merge conflicts
24106 in fixincl.x
24107 * gcc/fixinc/inclhack.def(bsd_stdio_attrs_conflict): fix placement
24108
241092003-05-03 Aldy Hernandez <aldyh@redhat.com>
24110
24111 * config/rs6000/spe.h: Remove unecessary casts. Misc cleanups.
24112
241132003-05-03 Zack Weinberg <zack@codesourcery.com>
24114
24115 PR c/10604
24116 * c-common.c (warn_sign_compare): Initialize to -1.
24117 * c-opts.c (c_common_init_options): Don't set warn_sign_compare here.
24118 (c_common_decode_option <OPT_Wall>): Set warn_sign_compare
24119 for C++ only.
24120 (c_common_post_options): Set warn_sign_compare from extra_warnings
24121 if it's still -1 at this point.
24122
24123 * toplev.c (maybe_warn_unused_parameter): New static variable.
24124 (set_Wextra): New static function.
24125 (W_options): Remove "extra".
24126 (decode_W_option): Call set_Wextra.
24127 (independent_decode_option): Likewise.
24128 (set_Wunused): Cooperate with set_Wextra in setting
24129 warn_unused_parameter.
24130 (rest_of_compilation): No need to check extra_warnings as
24131 well as warn_uninitialized.
24132
24133 * c-typeck.c (build_binary_op, build_conditional_expr):
24134 No need to check extra_warnings as well as warn_sign_compare.
24135 (internal_build_compound_expr): No need to check extra_warnings
24136 as well as warn_unused_value.
24137 * function.c (expand_function_end): No need to check extra_warnings
24138 as well as warn_unused_parameter.
24139 * stmt.c (expand_expr_stmt_value): No need to check extra_warnings
24140 as well as warn_unused_value.
24141
24142 * doc/invoke.texi: Clarify documentation of -Wsign-compare.
24143
24144 * Makefile.in: Disable -Werror for gengtype-lex.o.
24145
241462003-05-03 Olivier Hainque <hainque@act-europe.fr>
24147
24148 * emit-rtl.c (last_call_insn, add_function_usage_to): New functions.
24149 * rtl.h (last_call_insn, add_function_usage_to): New prototypes.
24150 * builtins.c (expand_builtin_apply): Use the new emit-rtl functions.
24151 * calls.c (emit_call_1): Likewise.
24152 (expand_call): For calls initializing constant memory, replace
24153 emission of standalone mem /u clobber with function usage entry.
24154 * expr.c (emit_block_move_via_libcall): Likewise.
24155 * cse.c (count_reg_usage, case EXPR_LIST): New case.
24156 * flow.c (propagate_one_insn): Pass entire operand of
24157 CALL_INSN_FUNCTION_USAGE to mark_used_regs.
24158 * integrate.c (try_constants): For CALL_INSNs, substitute constants
24159 within the FUNCTION_USAGE also.
24160 * loop.c (prescan_loop): Note clobbers of const mem mentioned in
24161 FUNCTION_USAGE lists.
24162 * reload1.c (replace_pseudos_in): Renamed.
24163 (reload): Use it for clobbers surviving until the end of the reload.
24164
241652003-05-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24166
24167 * expr.c (expand_expr, case VIEW_CONVERT_EXPR): Don't use
24168 gen_lowpart on non-integer modes.
24169
24170 * stor-layout.c (place_field): When adjusting offset_align, use
24171 desired_align, not DECL_ALIGN.
24172
241732003-05-03 Nathan Sidwell <nathan@codesourcery.com>
24174
24175 * c-decl.c (pending_invalid_xref_file): Remove.
24176 (pending_invalid_xref_line): Remove.
24177 (pending_invalid_xref_location): New.
24178 (lookup_label): Use location_t and input_location directly.
24179 (lookup_tag): Likewise.
24180 (pending_xref_error): Likewise.
24181 (c_expand_body_1): Likewise.
24182 * c-common.c (x_expand_start_cond): Likewise.
24183 * c-semantics.c (genrtl_for_stmt): Likewise.
24184 (find_reachable_label): Likewise.
24185 * expr.c (expand_expr): Likewise.
24186 * integrate.c (output_inline_function): Likewise.
24187 * tree-inline.c (find_alloca_call): Likewise.
24188 (find_builtin_longjmp_call): Likewise.
24189 * gcc.c (input_filename): Make static.
24190
241912003-05-03 Richard Sandiford <rsandifo@redhat.com>
24192
24193 * config/mips/mips.md: Fix comment typo.
24194
24195 * config/mips/mips.c (mips_integer_op): New structure.
24196 (MIPS_MAX_INTEGER_OPS): Define.
24197 (mips_const_insns): Use mips_build_integer to determine the number
24198 of instructions needed to load a CONST_INT.
24199 (move_operand): Reject compound CONST_INTs.
24200 (mips_build_shift, mips_build_lower, mips_build_integer): New fns.
24201 (mips_move_integer): New fn.
24202 (mips_legitimize_const_move): Pass CONST_INTs to mips_move_integer.
24203 (mips_legitimize_move): Only legitimize constants when moving
24204 word or subword values.
24205
242062003-05-02 Matt Kraai <kraai@alumni.cmu.edu>
24207
24208 * Makefile.in (gcov-iov.h): Use move-if-change and a stamp.
24209
242102003-05-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24211
24212 * builtins.c (expand_builtin_stpcpy): Copy `arglist' before
24213 modifying it.
24214
242152003-05-03 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
24216 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
24217
24218 * doc/contrib.texi (Contributors): Add Zdenek Dvorak, Aldy
24219 Hernandez, and Kazu Hirata. Update Richard Henderson.
24220
242212003-05-02 Geoffrey Keating <geoffk@apple.com>
24222
24223 * config/rs6000/rs6000.c (rs6000_attribute_table): Add 'extern'
24224 to tentative declaration.
24225
24226 * config/rs6000/sysv4.h (SYMBOL_FLAG_SMALL_V4): Delete.
24227 (SYMBOL_FLAG_SMALL_V4): Delete.
24228 * config/rs6000/rs6000.c (small_data_operand): Use SYMBOL_REF_SMALL_P.
24229 (rs6000_elf_encode_section_info): Don't set SYMBOL_FLAG_SMALL_V4.
24230 (rs6000_elf_in_small_data_p): Add extra section names. Add
24231 comment about TREE_PUBLIC test.
24232
24233 * c-semantics.c (genrtl_switch_stmt, genrtl_if_stmt): Call
24234 expand_stmt on result of expand_unreachable_stmt.
24235
242362003-05-02 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
24237
24238 * doc/contrib.texi (Contributors): Add Daniel Berlin.
24239
242402003-05-02 David Edelsohn <edelsohn@gnu.org>
24241
24242 * config/rs6000/{603.md,6xx.md,7450.md,7xx.md,rs64.md}: Decrease
24243 number of automata.
24244
24245 * config/rs6000/rs6000.c (symbol_ref_operand): Check
24246 SYMBOL_REF_FUNCTION_P on AIX.
24247 (current_file_function_operand): Same.
24248 * config/rs6000/rs6000.md (call,call_value): Force non-function
24249 symbol_ref into register on AIX.
24250
242512003-05-02 Alan Modra <amodra@bigpond.net.au>
24252
24253 * calls.c (struct arg_data): Move offset, slot_offset, size and
24254 alignment_pad to struct locate_and_pad_arg_data. Update all refs.
24255 (initialize_argument_information): Adjust call to locate_and_pad_parm.
24256 Delete alignment_pad var. Don't calculate slot_offset here.
24257 (emit_library_call_value_1): Delete alignment_pad, offset and size
24258 vars. Use struct locate_and_pad_arg_data instead. Adjust refs.
24259 Adjust call to locate_and_pad_parm. Don't tweak arg size for
24260 partial in-regs here. Formatting fixes.
24261 * expr.h (struct locate_and_pad_arg_data): New struct.
24262 (locate_and_pad_parm): Adjust declaration.
24263 * function.c (assign_parms): Localize vars. Use "locate" instead of
24264 other arg location vars. Don't invoke FUNCTION_ARG or
24265 FUNCTION_INCOMING_ARG unless pretend_named is different from
24266 named_arg. Heed MUST_PASS_IN_STACK and set up "partial" before
24267 calling locate_and_pad_parm. Adjust locate_and_pad_parm call.
24268 Use slot_offset for stack home of reg parms. Correct test for
24269 parm passed in memory. Formatting fixes.
24270 (locate_and_pad_parm): Add "partial" to params. Replace offset_ptr
24271 arg_size_ptr and alignment pad with "locate". Set slot_offset here.
24272 Correct initial_offset_ptr handling. Localize vars. Always pad
24273 locate->offset even when in_regs.
24274
242752003-05-02 Nathan Sidwell <nathan@codesourcery.com>
24276
24277 * Makefile.in (TREE_H): Replace location.h with input.h.
24278 (GTFILES) Remove location.h
24279 (gt-lists.h): Replace gt-location.h with gt-input.h
24280 * input.h (input_filename, input_line): Remove variables.
24281 (location_s, location_t): Move from location.h.
24282 (input_location): New.
24283 (input_filename, input_line): New #defines.
24284 * location.h: Remove.
24285 * tree.h: Replace location.h with input.h.
24286 (input_filename, input_line): Remove.
24287 * diagnostic.h: Replace location.h with input.h.
24288 * gcc.h (input_filename, input_filename_length): Remove declarations.
24289 * toplev.c (input_filename, input_line): Remove.
24290 (input_location): Define.
24291 (push_srcloc, pop_srcloc): Adjust.
24292 * diagnostic.c (diagnostic_report_current_module): Adjust.
24293
242942003-05-02 Nick Clifton <nickc@redhat.com>
24295
24296 * configure.in: Add xstormy16 to list of targets that has a nop
24297 instruction and hence which can be tested to see if the
24298 assembler supports the --gdwarf2 switch.
24299 * configure: Regenerate.
24300
243012003-05-01 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
24302
24303 PR target/8257
24304 * config/alpha/alpha.c (alpha_sa_mask, alpha_expand_prologue,
24305 alpha_start_function, alpha_expand_epilogue, unicosmk_gen_dsib):
24306 Avoid undefined shifts by making the shift operand unsigned.
24307
243082003-05-01 DJ Delorie <dj@redhat.com>
24309
24310 * reload.c (find_reloads): Also check that all of a multi-reg
24311 value is in the class.
24312
243132003-05-01 Nathan Sidwell <nathan@codesourcery.com>
24314
24315 * scan.h (lineno): Revert the rename here.
24316
243172003-05-01 Stan Shebs <shebs@apple.com>
24318
24319 * config/darwin.c (darwin_encode_section_info): Call
24320 default_encode_section_info.
24321
243222003-05-01 David Edelsohn <edelsohn@gnu.org>
24323
24324 * config/rs6000/rs6000.md (define_attr "type"): Add mfjmpr.
24325 (movsi_internal1): Use new mfjmpr attribute.
24326 (movhi_internal): Same.
24327 (movqi_internal): Same.
24328 (movcc_internal1): Same.
24329 (movdi_internal64): Same.
24330 * config/rs6000/{40x.md,603.md,6xx.md,7450.md,7xx.md,mpc.md,
24331 power4.md,rios1.md,rios2.md,rs64.md}: Add mfjmpr.
24332 * config/rs6000/40x.md: Add fpu_405.
24333 * config/rs6000/power4.md: Merge power4lsu and power4disp automata
24334 into power4misc automata. Remove extraneous parentheses.
24335 * config/rs6000/440.md: New file.
24336 * config/rs6000/rs6000.c (processor_target_table): Add 440,
24337 440fp. Rename 405f to 405fp.
24338 (function_arg_padding): Correct formatting.
24339 (rs6000_rtx_costs): Add PROCESSOR_PPC440 cases.
24340
243412003-05-01 Nathan Sidwell <nathan@codesourcery.com>
24342
24343 * input.h (lineno): Rename to ...
24344 (input_line): ... here.
24345 * tree.h (lineno): Rename to ...
24346 (input_line): ... here.
24347 * scan.h (lineno): Rename to ...
24348 (input_line): ... here.
24349 * toplev.c (lineno): Rename to ...
24350 (input_line): ... here.
24351 (push_srcloc, pop_srcloc): Rename lineno to input_line.
24352 * c-common.c (c_expand_start_cond, fname_decl): Likewise.
24353 * c-decl.c (poplevel, pop_label_level, lookup_label, lookup_tag,
24354 store_parm_decls, c_expand_body_1): Likewise.
24355 * c-errors.c (pedwarn_c99): Likewise.
24356 * c-format.c (status_warning): Likewise.
24357 * c-lex.c (fe_file_change, cb_def_pragma, c_lex): Likewise.
24358 * c-opts.c (c_common_post_options, c_common_parse_file): Likewise.
24359 * c-parse.in (save_filename, maybe_type_qual, ifc): Likwise.
24360 * c-semantics.c (finish_stmt_tree, build_stmt, emit_local_var,
24361 gentrtl_goto_stmt, genrtl_expr_stmt_value, genrtl_decl_stmt,
24362 genrtl_if_stmt, genrtl_while_stmt, genrtl_do_stmt,
24363 genrtl_return_stmt, genrtl_for_stmt, build_break_stmt,
24364 build_continue_stmt, genrtl_switch_stmt, genrtl_asm_stmt,
24365 prep_stmt, find_reachable_label, expand_unreachable_stmt): Likewise.
24366 * coverage.c (create_coverage): Likewise.
24367 * diagnostic.c (pedwarn, sorry, error, fatal_error,
24368 internal_error, warning, diagnostic_report_current_module,
24369 inform): Likewise.
24370 * expr.c (expand_expr): Likewise.
24371 * integrate.c (expand_inline_function,
24372 output_inline_function): Likewise.
24373 * rtl-error.c (file_and_line_for_asm): Likewise.
24374 * tree-inline.c (find_alloca_call, find_builtin_longjmp_call,
24375 walk_tree): Likewise.
24376 * tree.c (make_node): Likewise.
24377 * ada, cp, f, java, objc, treelang: Likewise.
24378 * objc/objc-act.c (objc_init): Rename lineno to input_line.
24379 (build_module_descriptor, build_selector_translation_table,
24380 build_protocol_template, build_method_prototype_list_template,
24381 build_category_template, build_selector_table,
24382 build_class_template, build_super_template, build_ivar_template,
24383 build_ivar_list_template, build_method_list_template,
24384 build_method_template, add_instance_variable): Likewise.
24385
24386 * dwarf2out.c (dwarf2out_init, dwarf2out_finish): Change parameter
24387 name from input_filename.
24388
243892003-04-30 Eric Christopher <echristo@redhat.com>
24390 Richard Sandiford <rsandifo@redhat.com>
24391
24392 * configure: Regenerate from patches below.
24393 * combine.c (gen_lowpart_for_combine): Fix comment and add tests
24394 for all symbolic operands.
24395 * config/mips/mips.c: Migrate RTX_COSTS and CONST_COSTS
24396 to function.
24397 * config/mips/linux.h: Fix typo.
24398 * Merge from mips-3_4-rewrite branch:
24399
24400 2003-04-07 Richard Sandiford <rsandifo@redhat.com>
24401
24402 * config/mips/mips.c (mips_classify_symbol): Add catch-all case for
24403 handling local labels when TARGET_ABICALLS.
24404
24405 2003-04-04 Richard Sandiford <rsandifo@redhat.com>
24406
24407 * config/mips/mips-protos.h (mips_expand_epilogue): Add an
24408 integer argument.
24409 (mips_expand_call): Likewise.
24410 * config/mips/mips.h (TARGET_SIBCALLS): New macro.
24411 (FIXED_REGISTERS): Clear $31 entry.
24412 (CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTER): Likewise.
24413 (EPILOGUE_USES): Define.
24414 * config/mips/mips.c (mips_function_ok_for_sibcall): New function.
24415 (TARGET_FUNCTION_OK_FOR_SIBCALL): Use it.
24416 (override_options): Add a 'j' register class.
24417 (mips_expand_call): Handle sibcalls
24418 (mips_expand_epilogue): Handle epilogues for sibcalls.
24419 * config/mips/mips.md (epilogue): Adjust call to mips_expand_epilogue.
24420 (sibcall_epilogue): New pattern.
24421 (call, call_value): Adjust calls to mips_expand_call.
24422 (sibcall, sibcall_value): New expanders.
24423 (sibcall_internal, sibcall_value_internal): New patterns.
24424 (sibcall_value_multiple_internal): New pattern.
24425
24426 2003-03-25 Richard Sandiford <rsandifo@redhat.com>
24427
24428 * config/mips/mips.md (extended_mips16): New attribute.
24429 (define_attr length): Default to 8 if extended_mips16 == yes.
24430 (truncdisi2): Set extended_mips16 to yes for the sll alternative.
24431 (truncdihi2, truncdiqi2, *extendsidi2): Likewise.
24432 (call_internal): Set extended_mips16 to yes for direct jumps.
24433 Remove redundant mode attribute.
24434 (call_value_internal, call_value_multiple_internal): Likewise.
24435 (call_split): Remove redundant mode attribute.
24436 (call_value_split, call_value_multiple_split): Likewise.
24437
24438 * config/mips/mips.c (mips_symbol_insns): Rework. Fix handling
24439 of unaligned offsets.
24440
24441 * config/mips/mips.c (mips_splittable_symbol_p): Fix handling
24442 of SYMBOL_GENERAL.
24443
24444 2003-03-22 Richard Sandiford <rsandifo@redhat.com>
24445
24446 * config/mips/mips.h (TARGET_EXPLICIT_RELOCS): Add commentary.
24447 * config/mips/mips.c (override_options): Disable -mexplicit-relocs
24448 for mips16 code.
24449
24450 2003-03-22 Richard Sandiford <rsandifo@redhat.com>
24451
24452 * config/mips/mips.h (ADDRESS_COST): Define.
24453
24454 2003-03-20 Richard Sandiford <rsandifo@redhat.com>
24455
24456 * config/mips/mips.h (EXTRA_CONSTRAINT): Give existing meaning of
24457 'R' to 'U'. Make 'R' mean a single-instruction memory reference.
24458 * config/mips/mips.md: Replace 'R' constraints with 'U'.
24459
24460 2003-03-18 Richard Sandiford <rsandifo@redhat.com>
24461
24462 * config/mips/mips.md (truncdisi2): Add commentary. Use sll instead
24463 of a two-instruction sequence. Add register->memory alternative.
24464 (truncdihi2, truncdiqi2): Likewise.
24465 Rework shift/truncate instructions so that they only handle right
24466 shifts of 32 (or more, in the case of arithmetic shifts).
24467 Add patterns for truncate/sign-extend.
24468
24469 2003-03-13 Richard Sandiford <rsandifo@redhat.com>
24470
24471 * configure.in (mips*-*-*): Check for explicit relocation support.
24472 * configure: Regenerate.
24473
24474 2003-03-13 Richard Sandiford <rsandifo@redhat.com>
24475
24476 * config/mips/mips.h (TARGET_SWITCHES): Add -mexplicit-relocs
24477 and -mno-explicit-relocs.
24478 (MASK_EXPLICIT_RELOCS): Define.
24479 (TARGET_EXPLICIT_RELOCS): Use it.
24480 (mips_split_addresses): Remove declaration.
24481 * config/mips/mips.c (override_options): Update comment for
24482 mips_split_addresses. Clear MASK_EXPLICIT_RELOCS for non-PIC n64.
24483
24484 2003-03-13 Richard Sandiford <rsandifo@redhat.com>
24485
24486 * combine.c (gen_lowpart_for_combine): Treat the lowpart Pmode of
24487 a CONST as identity. Check the return value of gen_lowpart_common.
24488
24489 2003-03-13 Richard Sandiford <rsandifo@redhat.com>
24490
24491 * config/mips/mips.c (mips_legitimize_symbol): Handle small data
24492 references for TARGET_EXPLICIT_RELOCS.
24493 (mips_reloc_string): Return "%gp_rel(" for RELOC_GPREL16 if
24494 !TARGET_MIPS16.
24495
24496 2003-03-13 Richard Sandiford <rsandifo@redhat.com>
24497
24498 * config/mips/mips.md: Replace 'IQ' mips16 constraints with just 'Q'.
24499 (addsi3): Remove redundant constraints.
24500 (addsi3_internal): Use separate register & constant alternatives.
24501 Use a 'Q' constraint and "addiu" insn for the latter.
24502 (adddi3_internal_3, addsi3_internal_2): Likewise.
24503
24504 2003-03-13 Richard Sandiford <rsandifo@redhat.com>
24505
24506 * config/mips/mips-protos.h (mips_expand_unaligned_load): Declare.
24507 (mips_expand_unaligned_store): Declare.
24508 * config/mips/mips.c (mips_get_unaligned_mem): New fn.
24509 (mips_expand_unaligned_load, mips_expand_unaligned_store): New fns.
24510 * config/mips/mips.md (UNSPEC_ULW, UNSPEC_USW): Remove.
24511 (UNSPEC_ULD, UNSPEC_USD): Remove.
24512 (UNSPEC_LWL, UNSPEC_LWR, UNSPEC_SWL, UNSPEC_SWR): New.
24513 (UNSPEC_LDL, UNSPEC_LDR, UNSPEC_SDL, UNSPEC_SDR): New.
24514 (extv, extzv): Use mips_expand_unaligned_load.
24515 (insv): Use mips_expand_unaligned_store. Use a reg_or_0_operand
24516 predicate for operand 3.
24517 (movsi_ulw, movsi_usw): Replace with...
24518 (mov_lwl, mov_lwr, mov_swl, move_swr): ...these new insns.
24519 (movdi_uld, movdi_usd): Likewise replace with...
24520 (mov_ldl, mov_ldr, mov_sdl, move_sdr): ...these insns.
24521
24522 2003-02-26 Richard Sandiford <rsandifo@redhat.com>
24523
24524 * config/mips/mips-protos.h (mips_global_pic_constant_p): Declare.
24525 * config/mips/mips.h (LEA_REGS): New register class.
24526 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for it.
24527 (GR_REG_CLASS_P): Include LEA_REGS.
24528 (DANGEROUS_FOR_LA25_P): New macro.
24529 (EXTRA_CONSTRAINT): Add !DANGEROUS_FOR_LA25_P to R's condition.
24530 Add a T constraint for the DANGEROUS_FOR_LA25_P case.
24531 * config/mips/mips.c (mips_regno_to_class): Change GR_REGS
24532 entries to LEA_REGS.
24533 (mips_global_pic_constant_p): New function.
24534 (override_options): Add 'e' register constraint.
24535 (mips_secondary_reload_class): Return LEA_REGS when reloading
24536 a dangerous constant into a class containing $25.
24537 * config/mips/mips.md (movdi_internal2): Add an e <- T alternative.
24538 (movsi_internal): Likewise.
24539
24540 2003-02-23 Richard Sandiford <rsandifo@redhat.com>
24541
24542 * config/mips/mips.h (TARGET_SPLIT_CALLS): New macro.
24543 * config/mips/mips.md (call_split): New insn.
24544 (call_value_split, call_value_multiple_split): New insns.
24545 (call_internal): Turn into a define_insn_and_split. Split the
24546 instruction into a call and $gp load if TARGET_SPLIT_CALLS.
24547 (call_value_internal, call_value_multiple_internal): Likewise.
24548
24549 2003-02-23 Richard Sandiford <rsandifo@redhat.com>
24550
24551 * config/mips/mips.c (mips_reloc_string): Return "%got(" for
24552 RELOC_GOT_PAGE and RELOC_GOT_DISP if !TARGET_NEWABI.
24553 (mips_encode_section_info): Don't take symbol visibility into
24554 account if TARGET_ABICALLS. Add more commentary.
24555 * config/mips/mips.md: Add commentary above reloc constants.
24556
24557 2003-02-12 Richard Sandiford <rsandifo@redhat.com>
24558
24559 * config/mips/mips.c (mips_legitimize_const_move): New, extracted
24560 from mips_legitimize_move. Legitimize constant pool references.
24561 (mips_legitimize_move): Call mips_legitimize_const_move. Attach
24562 a REG_EQUAL note to the last instruction.
24563
24564 2003-02-11 Richard Sandiford <rsandifo@redhat.com>
24565
24566 * config/mips/mips-protos.h (mips_simplify_dwarf_addr): Declare.
24567 * config/mips/mips.h (TARGET_EXPLICIT_RELOCS, TARGET_NEWABI): New.
24568 (ASM_SIMPLIFY_DWARF_ADDR): Define to mips_simplify_dwarf_addr.
24569 (EXTRA_CONSTRAINT): Allow symbolic call addresses for TARGET_ABICALLS.
24570 * config/mips/mips.md (UNSPEC_HIGH): New constant.
24571 (UNSPEC_RELOC_GPREL16): Rename to...
24572 (RELOC_GPREL16): ...this.
24573 (RELOC_GOT_HI, RELOC_GOT_LO, RELOC_GOT_PAGE, RELOC_GOT_DISP): New.
24574 (RELOC_CALL16, RELOC_CALL_HI, RELOC_CALL_LO): New.
24575 (macro_calls): New attribute.
24576 (length): Use it to set the default length of calls. Don't allow
24577 calls to have delay slots if macro_calls is "yes".
24578 (luisi, luidi): New patterns.
24579 (lowsi, lowdi): Use '%R' to print the relocation.
24580 (lowdi_extend): Remove.
24581 (loadgp): Remove mode from operand 0. Use '%0' instead of '%a0'.
24582 (call_internal): Merge alternatives. Always use "jal".
24583 (call_value_internal, call_value_multiple_internal): Likewise.
24584 (reloc_gprel16): Remove.
24585 * config/mips/mips.c (mips_got_alias_set): New variable.
24586 (mips_classify_constant): Handle the new relocation constants.
24587 (mips_classify_symbol): Reverse the sense of SYMBOL_REF_FLAG for PIC.
24588 (mips_symbolic_address_p): Return false if generating explicit relocs.
24589 Otherwise allow local PIC symbols to have an offset.
24590 (mips_splittable_symbol_p): New function.
24591 (mips_classify_address): Use it to check whether a LO_SUM is valid.
24592 (mips_const_insns): Always accept HIGH.
24593 (call_insn_operand): Don't accept global symbols if using explicit
24594 relocs.
24595 (move_operand): Don't accept HIGH when generating PIC.
24596 (mips_reloc, mips_lui_reloc): New functions.
24597 (mips_force_temporary): Remove MODE argument. Expect VALUE to
24598 be a valid right-hand-side for a SET pattern.
24599 (mips_load_got, mips_load_got16, mips_load_got32): New functions.
24600 (mips_emit_high): New function.
24601 (mips_legitimize_symbol): Use mips_reloc for the mips16 gp-relative
24602 case. Use mips_splittable_symbol_p to check whether a LO_SUM
24603 address should be used. Use mips_emit_high to generate the
24604 high part of such an address. Adjust the global symbol + offset
24605 case to match the change to mips_force_temprorary.
24606 (mips_legitimize_move): Shuffle call to mips_legitimize_symbol.
24607 If generating explicit-reloc PIC, load the address of global
24608 symbols from the GOT. Use mips_emit_high to emit the high part
24609 of an address.
24610 (mips_simplify_dwarf_addr): New function.
24611 (mips_move_1word): Use lwc1 instead of l.s and swc1 instead of s.s.
24612 (mips_move_2words): Likewise ldc1/l.d and sdc1/s.d if TARGET_64BIT.
24613 (mips_expand_call): Load the addresses of global functions using
24614 %call* relocs if generating explicit-reloc PIC. Don't generate
24615 an exception_receiver pattern.
24616 (override_options): Initialize mips_got_alias_set.
24617 (print_relocation): Remove in favor of...
24618 (mips_reloc_string): ...this new function.
24619 (print_operand): Handle '%R'. Use mips_reloc_string.
24620 (print_operand_address): Use print_operand to print the symbolic
24621 part of a LO_SUM address.
24622 (mips_output_function_prologue): Use .cprestore, reverting last patch.
24623 (mips_encode_section_info): Factor out DECL_RTL accesses. Reverse
24624 sense of SYMBOL_REF_FLAG for PIC, using binds_local_p to check
24625 for local symbols.
24626
24627 2003-02-02 Eric Christopher <echristo@redhat.com>
24628
24629 * config/mips/mips.c (mips_sign_extend): Remove.
24630 * config/mips/mips-protos.h: Ditto.
24631 * config/mips/mips.md (movdi_internal2_extend): Remove.
24632 (extendsidi2): Fix mode of convert_memory_address.
24633
24634 2003-01-24 Eric Christopher <echristo@redhat.com>
24635
24636 * config/mips/mips.md: Rewrite zero_extend* and extend*
24637 patterns. Use explicit instructions and split after reload
24638 for register extensions.
24639 (ashlsi3_internal1_extend): New combiner pattern for
24640 shift and extend combinations.
24641 * config/mips/mips.h: Change Pmode back to ptr_mode
24642 for performance enhancement.
24643 * combine.c (expand_compound_operation): Make sure
24644 that zero_extend operation is profitable.
24645
24646 2003-01-14 Richard Sandiford <rsandifo@redhat.com>
24647
24648 * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Make size of stored
24649 addresses depend on ptr_mode rather than Pmode.
24650 (TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT): Update acoordingly.
24651 (INITIALIZE_TRAMPOLINE): Rework to handle Pmode != ptr_mode.
24652 (CASE_VECTOR_MODE): Use ptr_mode for !TARGET_MIPS16.
24653 (ASM_OUTPUT_ADDR_VEC_ELT): Update accordingly.
24654 * config/mips/mips.md (tablejump): Likewise. Remove Pmode
24655 condition for selecting cpaddsi or cpadddi: use cpadd instead.
24656 (tablejump_internal1): Remove condition.
24657 (tablejump_internal2): Change condition to TARGET_64BIT.
24658 (cpaddsi): Rename to...
24659 (cpadd): ...this.
24660 (cpadddi): Remove.
24661
24662 2003-01-09 Richard Sandiford <rsandifo@redhat.com>
24663
24664 * config/mips/mips-protos.h (mips16_constant_after_function_p,
24665 mips_address_cost, mips_check_split, double_memory_operand,
24666 mips16_gp_offset, mips16_gp_offset_p, mips16_constant,
24667 pic_address_needs_scratch, symbolic_operand): Remove declarations.
24668 (mips_legitimate_address_p): Return bool.
24669 (mips_address_insns, mips_fetch_insns, mips_const_insns,
24670 mips_legitimize_address, mips_legitimize_move,
24671 mips_expand_call): Declare.
24672 (mips_return_addr): Move outside #ifdef RTX_CODE.
24673
24674 * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): New macro.
24675 (PIC_FN_ADDR_REG): New reg_class.
24676 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add corresponding entries.
24677 (GR_REG_CLASS_P): True for PIC_FN_ADDR_REG.
24678 (SMALL_OPERAND, SMALL_OPERAND_UNSIGNED, LUI_OPERAND,
24679 CONST_HIGH_PART, CONST_LOW_PART, LUI_INT): New macros.
24680 (SMALL_INT, SMALL_INT_UNSIGNED, CONST_OK_FOR_LETTER_P): Use new macros.
24681 (EXTRA_CONSTRAINTS): Give new meanings to Q, R and S.
24682 (CONSTANT_ADDRESS_P): Use mips_legitimate_address_p.
24683 (LEGITIMATE_PIC_OPERAND): Undefine.
24684 (LEGITIMATE_CONSTANT_P): Use mips_const_insns.
24685 (LEGITIMIZE_ADDRESS): Use mips_legitimize_address.
24686 (CONSTANT_AFTER_FUNCTION_P): Remove definition in #if 0 block.
24687 (FUNCTION_MODE): Change to SImode.
24688 (CONST_COSTS): Use mips_const_insns to calculate the cost of
24689 most constants. Treat const_artih_operands specially if they
24690 occur in a PLUS or MINUS.
24691 (CONSTANT_POOL_COST): New macro.
24692 (RTX_COSTS): Use mips_address_insns for MEMs, with a base cost of 2.
24693 Add LO_SUM handling.
24694 (ADDRESS_COST): Undefine.
24695 (PREDICATE_CODES): Add symbolic_operand and const_arith_operand.
24696 Add CONST to the list of codes for arith_operand. Add LABEL_REF
24697 to call_insn_operand and remove CONST_INT.
24698
24699 * config/mips/mips.c: Include integrate.h.
24700 (SINGLE_WORD_MODE_P): New macro.
24701 (mips_constant_type, mips_symbol_type, mips_address_type): New enums.
24702 (mips_constant_info, mips_address_info): New structs.
24703 (mips_regno_to_class): Map $25 to PIC_FN_ADDR_REG.
24704 (mips_classify_constant, mips_classify_symbol,
24705 mips_valid_base_register_p, mips_symbolic_address_p,
24706 mips_classify_address, mips_symbol_insns,
24707 mips16_unextended_reference_p, mips_address_insns, mips_const_insns,
24708 mips_fetch_insns, mips_force_temporary, mips_add_offset,
24709 mips_legitimize_symbol, mips_legitimize_address, mips_legitimize_move,
24710 mips_print_relocation): New functions.
24711 (const_arith_operand): New operand predicate.
24712 (arith_operand): Use it.
24713 (mips_const_double_ok, mips16_simple_memory_operand,
24714 simple_memory_operand, double_memory_operand, mips_check_split,
24715 mips_address_cost, pic_address_needs_scratch, mips16_gp_offset,
24716 mips16_gp_offset_p, mips16_output_gp_offset,
24717 mips16_constant_after_function_p, mips16_constant): Remove.
24718 (call_insn_operand): Be more fussy about symbolic constants.
24719 Use register_operand.
24720 (move_operand): Use mips_symbolic_address_p to check symbolic
24721 operands and general_operand to check the rest.
24722 (symbolic_operand): Use mips_classify_constant.
24723 (mips_legitimate_address_p): Use mips_classify_address.
24724 (mips_move_1word): Combine handling of symbolic addresses.
24725 Remove special treatment of gp-relative loads for TARGET_MIPS16.
24726 (move_move_2words): Likewise. Assume addresses are offsettable
24727 if they need to refer to more than one word. Add HIGH handling.
24728 (mips_restore_gp): Use ptr_mode for the GP save slot.
24729 (mips_expand_call): New function, combining the old mips.md
24730 call and call_internal define_expands. If the address isn't
24731 a call_insn_operand, force it into a register. For SVR4 PIC,
24732 emit an exception_receiver instruction after the call.
24733 (override_options): Only override flag_pic for TARGET_ABICALLS
24734 if it is currently zero. Allow mips_split_addresses when
24735 Pmode == DImode too, except when ABI_HAS_64BIT_SYMBOLS.
24736 Add new register class letter, 'c'.
24737 (print_operand): Use mips_classify_constant for constant operands.
24738 (print_operand_address): Use mips_classify_address.
24739 (mips_output_function_prologue): Don't use .cprestore.
24740 (mips_expand_epilogue): For TARGET_MIPS16, only adjust the stack
24741 via the frame pointer if current_function_calls_eh_return.
24742 (mips_encode_section_info): For TARGET_ABICALLS, use SYMBOL_REF_FLAG
24743 to mark whether a symbol is local or global.
24744 (build_mips16_call_stub): Expect the address of the function rather
24745 than a MEM reference to it. Update call generation sequences.
24746 (mips16_optimize_gp): Remove Pmode checks. Temporarily disable
24747 small-data adjustments.
24748
24749 * config/mips/mips.md: Remove 'R'/'m' memory distinction. Use default
24750 length for loads and stores.
24751 (UNSPEC_CPADD, UNSPEC_RELOC_GPREL16): New constants.
24752 (define_attr type): Add const and prefetch.
24753 (define_attr length): Use mips_const_insns for const instructions.
24754 Use mips_fetch_insns for load and store instructions.
24755 (define_attr single_insn): New.
24756 (define_attr can_delay): Use it.
24757 (define_attr abicalls): Remove.
24758 (define_delay): Use can_delay. Always allow calls to have delay slots.
24759 (addsi3_internal_2): Add 'Q' constraint.
24760 (movsi_ulw, movsi_usw, movdi_uld, movdi_usd): Set length to 8.
24761 (high): Remove.
24762 (lowsi): Renamed from low.
24763 (lowdi): New pattern.
24764 (movdi, movsi): Use mips_legitimize_move. Remove define_split.
24765 (lwxc1, ldxc1, swxc1, sdxc1): Set length to 4.
24766 (loadgp): Change operand 0 to an immediate_operand.
24767 (tablejump): Use the same patterns for SVR4 PIC but emit a cpadd
24768 beforehand.
24769 (cpaddsi, cpadddi): New patterns.
24770 (tablejump_internal3, tablejump_internal4): Remove define_expands
24771 and associated define_splits.
24772 (call, call_value): Use mips_expand_call.
24773 (call_internal): New, replacing all existing call_internal* insns.
24774 (call_value_internal): Likewise call_value_internal*.
24775 (call_value_multiple_internal): Likewise call_value_multiple_internal*.
24776 (untyped_call): Remove if (operands[0]) magic.
24777 (prefetch_si_address, prefetch_si): Change type to "prefetch".
24778 (prefetch_di_address, prefetch_di): Likewise.
24779 (leasi, leadi): Remove.
24780 (reloc_gprel16): New.
24781
24782 * config/mips/5400.md (ir_vr54_hilo): Include const type.
24783 * config/mips/5500.md (ir_vr55_hilo): Likewise.
24784 * config/mips/sr71k.md (ir_sr70_hilo): Likewise.
24785
24786 2003-01-08 Eric Christopher <echristo@redhat.com>
24787
24788 * config.gcc (mipsisa32*): Change ABI_MEABI to ABI_EABI.
24789 * config/mips/elf.h (STARTFILE_SPEC): Remove ABI_MEABI references and
24790 configure check for libgloss.
24791 * config/mips/elf64.h: Ditto.
24792 * config/mips/mips.c: Remove ABI_MEABI.
24793 * config/mips/mips.h: Ditto.
24794
24795 2002-11-05 Richard Sandiford <rsandifo@redhat.com>
24796
24797 Fix merge fallout.
24798 * config/mips/mips.md (mul_acc_si): Reapply 2002-10-16 change.
24799 (muldi3_internal): Remove outdated comment.
24800 (*muls_di, *umuls_di): Fix comment and 64-bitness.
24801 (*smsac_di, *umsac_di): Likewise. Reformat.
24802 (umulsi3_highpart): Minor formatting tweaks.
24803 (umulsi3_highpart_internal): Use only if !ISA_HAS_MULHI. Remove
24804 redundant scratch operand. Minor formatting tweak.
24805 (umulsi3_highpart_mulhi_internal): Use for !TARGET_64BIT as well.
24806 (umulsi3_highpart_neg_mulhi_internal): Likewise. Fix asm template.
24807 (smulsi3_highpart): As for the unsigned version.
24808 (smulsi3_highpart_internal): Likewise.
24809 (smulsi3_highpart_mulhi_internal): Likewise.
24810 (smulsi3_highpart_neg_mulhi_internal): Likewise.
24811 (smuldi3_highpart, umuldi3_highpart): Minor formatting tweaks.
24812 (*smul_acc_di): Remove duplicated pattern.
24813 (*umul_acc_di, *smul_acc_di): Reapply 2002-10-16 change.
24814 (anddi3) [unnamed mips16 pattern]: Remove reintroduced length.
24815 (zero_extendsidi2_internal2): Remove new, but commented-out pattern.
24816
24817 2002-10-22 Eric Christopher <echristo@redhat.com>
24818
24819 * config/mips/mips-protos.h (mips_return_addr): New.
24820 * config/mips/mips.c (mips_return_addr): New.
24821 (movdi_operand): Remove.
24822 (se_register_operand): Ditto.
24823 (se_reg_or_0_operand): Ditto.
24824 (se_uns_arith_operand): Ditto.
24825 (se_arith_operand): Ditto.
24826 (se_nonmemory_operand): Ditto.
24827 (extend_operator): Ditto.
24828 (highpart_shift_operator): Ditto.
24829 (mips_initial_elimination_offset): Remove return address pointer
24830 elimination.
24831 (mips_reg_names): Remove $ra.
24832 (mips_regno_to_class): Ditto.
24833 * config/mips/mips.h (POINTER_SIZE): Define based on TARGET_LONG64
24834 and TARGET_64BIT.
24835 (POINTER_BOUNDARY): Remove.
24836 (POINTERS_EXTEND_UNSIGNED): Define to 0.
24837 (PROMOTE_MODE): Promote to Pmode.
24838 (SHORT_IMMEDIATES_SIGN_EXTEND): Define.
24839 (Pmode): Define to TARGET_64BIT.
24840 (FUNCTION_MODE): Define as Pmode.
24841 (mips_args): Remove deleted functions.
24842 (SIZE_TYPE): Depend on POINTER_SIZE.
24843 (PTRDIFF_TYPE): Ditto.
24844 (FIXED_REGISTERS): Fix extra registers.
24845 (CALL_USED_REGISTERS): Ditto.
24846 (CALL_REALLY_USED_REGISTERS): Ditto.
24847 (RAP_REG_NUM): Remove.
24848 (RETURN_ADDRESS_POINTER_REGNUM): Ditto.
24849 (RETURN_ADDR_RTX): Define to mips_return_addr.
24850 (ELIMINABLE_REGS): Remove RETURN_ADDRESS_POINTER_REGNUM.
24851 (CAN_ELIMINATE): Ditto.
24852 * config/mips/mips.md: For DImode patterns, take into account
24853 deletions above. Split mulsidi patterns into sign_extend and
24854 zero_extend.
24855
24856 2002-10-16 Richard Sandiford <rsandifo@redhat.com>
24857 Michael Meissner <meissner@redhat.com>
24858
24859 * config/mips/mips.h (ISA_HAS_MACC): True for normal-mode vr4120 code.
24860 * config/mips/mips.md (mulsi3_mult3): Add a define_peephole2 to
24861 mop up unnecessarly moves through LO.
24862 (*mul_acc_si): Remove vr5400 and vr5500 handling from here.
24863 (*macc): New pattern for ISA_HAS_MACC. Add define_peephole2s to
24864 change mtlo/macc sequences into mul/add sequences when a three-
24865 address mul is available.
24866 (*macc2): New pattern. Add a define_peephole2 to generate it.
24867 (*mul_sub_si): Fix contraint for operand 5.
24868 (*muls): Use in 32-bit code as well.
24869 (*msac): Likewise. Use msub instead of msac in vr5500 code
24870 if the destination is LO. Remove duplicate define_split.
24871 (*muls_di): Use only in 32-bit code. Adjust rtl accordingly.
24872 (*msac_di): Likewise. Fix formatting.
24873 (smulsi3_highpart, umulsi3_highpart): Use mulhi in 32-bit code too.
24874 (*xmulsi3_highpart_internal): Use only if !ISA_HAS_MULHI.
24875 (*xmulsi3_highpart_mulhi): Use even if !TARGET_64BIT.
24876 (*xmulsi3_neg_highpart_mulhi): Likewise.
24877 (*mul_acc_64bit_di): Remove.
24878 (*mul_acc_di): Use only in 32-bit code. Handle ISA_HAS_MACC as well.
24879
24880 2002-10-14 Richard Sandiford <rsandifo@redhat.com>
24881
24882 * config/mips/vr.h (DRIVER_SELF_SPECS): Define.
24883 * config/mips/t-vr (MULTILIB_OPTIONS): Remove mlong32.
24884 (MULTILIB_DIRNAMES): Remove long32.
24885 (MULTILIB_EXCEPTIONS): Don't build -mabi=32 -mgp32 multilibs.
24886 (MULTILIB_REDUNDANT_DIRS): Remove.
24887
24888 2002-10-14 Richard Sandiford <rsandifo@redhat.com>
24889
24890 * doc/tm.texi (DRIVER_SELF_SPECS): Document.
24891 * gcc.c (driver_self_specs): New variable.
24892 (do_self_spec): New function.
24893 (main): Use it to process driver_self_specs.
24894
24895 2002-10-09 Richard Sandiford <rsandifo@redhat.com>
24896
24897 * config/mips/mips.md (one_cmpldi2): Use only if TARGET_64BIT.
24898 Remove DImode define_split for !TARGET_64BIT.
24899 (anddi3): Remove !TARGET_64BIT support from here as well.
24900 Change operand 2's predicate to se_uns_arith_operand.
24901 Add constant alternatives to define_insn.
24902 (iordi3, xordi3, *nordi3): Likewise.
24903 (anddi3_internal1, xordi3_immed): Remove.
24904
24905 2002-10-01 Richard Sandiford <rsandifo@redhat.com>
24906
24907 * config/mips/mips.h (PROCESSOR_R4121): Rename to PROCESSOR_R4120.
24908 (TARGET_MIPS4121): Rename to TARGET_MIPS4120.
24909 * config/mips/mips.c (mips_cpu_info): Rename vr4121 to vr4120.
24910 * config/mips/mips.md: Apply same renaming here.
24911
24912 2002-10-01 Richard Sandiford <rsandifo@redhat.com>
24913
24914 * config/mips/mips.c (PROCESSOR_R4320, TARGET_MIPS4320): Remove.
24915 (GENERATE_MULT3_SI): Remove use of TARGET_MIPS4320.
24916 * config/mips/mips.c (mips_cpu_info): Remove vr4320 entry.
24917 * config/mips/mips.md (define_attr cpu): Remove r4320.
24918 Remove vr4320 scheduler and uses of TARGET_MIPS4320.
24919
24920 2002-10-01 Richard Sandiford <rsandifo@redhat.com>
24921
24922 * config/mips/mips.c (mips16_strings): New variable.
24923 (mips_output_function_epilogue): Clear the SYMBOL_REF_FLAG of every
24924 symbol in mips16_strings. Free the list.
24925 (mips_encode_section_info): Keep track of local strings.
24926
24927 2002-10-01 Richard Sandiford <rsandifo@redhat.com>
24928
24929 * config/mips/mips.md (bunge, bltgt, bungt): New define_expands.
24930 (sordered_df, sordered_sf): Remove.
24931 * config/mips/mips.c (get_float_compare_codes): New fn.
24932 (gen_int_relational, gen_conditional_move): Use it.
24933
24934 2002-10-01 Richard Sandiford <rsandifo@redhat.com>
24935
24936 * config/mips/mips-protos.h (mips_emit_fcc_reload): Declare.
24937 * config/mips/mips.h (PREDICATE_CODES): Add fcc_register_operand.
24938 * config/mips/mips.c (fcc_register_operand): New function.
24939 (mips_emit_fcc_reload): New function, extracted from reload_incc.
24940 (override_options): Allow TFmode values in float registers
24941 if ISA_HAS_8CC.
24942 * cnfig/mips/mips.md (reload_incc): Change destination prediate
24943 to fcc_register_operand. Remove misleading source constraint.
24944 Use mips_emit_fcc_reload.
24945 (reload_outcc): Duplicate reload_incc.
24946
24947
249482003-04-30 Diego Novillo <dnovillo@redhat.com>
24949
24950 * builtins.def (BUILTIN_CONSTANT_P): Mark as constant.
24951
249522003-04-30 Geoffrey Keating <geoffk@apple.com>
24953
24954 * tree-inline.c (inlinable_function_p): Back out last change, it's
24955 unnecessary.
24956
249572003-04-30 Steven Bosscher <steven@gcc.gnu.org>
24958
24959 * ggc-page.c (TREE_EXP_SIZE): Define.
24960 (extra_order_size_table): New entry for expr trees with
24961 two operands.
24962
249632003-04-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
24964
24965 * c-common.c (if_elt): Use location_t in lieu of "file, line" pair.
24966 (c_expand_start_cond): Adjust.
24967 (c_expand_end_cond): Don't use warning_with_file_and_file.
24968 (shadow_warning): Likewise.
24969
249702003-04-30 Nathan Sidwell <nathan@codesourcery.com>
24971
24972 * tree.h (DECL_POINTER_DEPTH): Remove.
24973 (struct tree_decl): Remove pointer_depth.
24974
249752003-04-30 Janis Johnson <janis187@us.ibm.com>
24976
24977 * config/rs6000/linux64.h (ASM_OUTPUT_LABELREF): Remove.
24978 * config/rs6000/rs6000.c (rs6000_elf_strip_name_encoding): Remove.
24979 (rs6000_xcoff_encode_section_info): Remove.
24980 (current_file_function_operand): Use SYMBOL_REF_FLAGS; fix latent bug.
24981 (rs6000_output_mi_thunk): Remove dead code; use SYMBOL_REF_FLAGS.
24982 (small_data_operand, rs6000_emit_move, rs6000_elf_in_small_data_p,):
24983 Use SYMBOL_REF_FLAGS.
24984 (rs6000_elf_encode_section_info): Call default_encode_section_info for
24985 generic flags, use SYMBOL_REF_FLAGS; code cleanups.
24986 * sysv4.h (TARGET_STRIP_NAME_ENCODING, ASM_OUTPUT_LABELREF): Remove.
24987 (SYMBOL_FLAG_SMALL_V4, SYMBOL_REF_SMALL_V4_P): New.
24988 * xcoff.h (TARGET_ENCODE_SECTION_INFO): Remove.
24989 (ASM_DECLARE_FUNCTION_NAME): Remove setting of SYMBOL_REF_FLAG.
24990
249912003-04-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
24992
24993 * diagnostic.c (output_pointer): Use HOST_PTR_PRINTF.
24994
249952003-04-30 Andreas Schwab <schwab@suse.de>
24996
24997 * doc/extend.texi (Other Builtins): Enclose multiple word data
24998 type in braces for @deftypefn.
24999
250002003-04-30 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25001
25002 * stor-layout.c (mode_for_size_tree): Use BLKmode if SIZE overflows.
25003
25004 * doc/install.texi (--enable-threads): Document "gnat" option.
25005
250062003-04-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
25007
25008 * diagnostic.h (output_formatted_scalar): Tweak.
25009 * diagnostic.c (output_long_decimal): Likewise.
25010 (output_unsigned_decimal): Likewise.
25011 (output_long_unsigned_decimal): Likewise.
25012 (output_octal): Likewise.
25013 (output_long_octal): Likewise.
25014 (output_hexadecimal): Likewise.
25015 (output_long_hexadecimal): Likewise.
25016 (output_pointer): New function.
25017 (output_format): Use it. Recognize "%p" format specifier.
25018
250192003-04-30 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
25020
25021 * function.c (purge_addressof_1): Postpone insn in fewer cases.
25022
250232003-04-29 Geoffrey Keating <geoffk@apple.com>
25024
25025 * config/rs6000/host-darwin.c (segv_handler): When -dH is used,
25026 call abort() after running out of stack space.
25027
25028 * c-typeck.c (function_types_compatible_p): Ignore incompatible
25029 'volatile' qualifiers on a function's return type in GNU mode.
25030
250312003-04-29 Aldy Hernandez <aldyh@redhat.com>
25032
25033 * expr.c (emit_group_load): Dump parallels of simd types to
25034 memory.
25035
250362003-04-29 Vladimir Makarov <vmakarov@redhat.com>
25037
25038 * genautomata.c (add_vect): Check undefined value for range type
25039 too.
25040
250412003-04-29 Phil Edwards <pme@gcc.gnu.org>
25042
25043 * configure.in: More general test for cmp --ignore-initial.
25044 * configure: Regenerate.
25045
250462003-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25047
25048 * stor-layout.c (mode_for_size_tree): Use tree_low_cst.
25049 (layout_decl, place_field): Likewise.
25050 Also make minor type and whitespace changes.
25051
25052 * tree.c (save_expr): Don't fold a COMPONENT_REF.
25053
250542003-04-29 Olivier Hainque <hainque@act-europe.fr>
25055
25056 * calls.c (expand_call): When modes of target and valreg match, force
25057 sibcall failure when target is a MEM.
25058
250592003-04-29 Geoffrey Keating <geoffk@apple.com>
25060
25061 * tree-inline.c (inlinable_function_p): Don't support inlining
25062 functions using varargs.
25063
25064 * doc/invoke.texi (Overall Options): Mention -x objective-c-header.
25065
25066 * dwarf2out.c (output_call_frame_info): No need to output EH
25067 unwind information if all_throwers_are_sibcalls.
25068
25069 * c-semantics.c (expand_unreachable_stmt): Return a tree.
25070 (expand_stmt): Update for change to expand_unreachable_stmt.
25071 (expand_unreachable_if_stmt): Likewise.
25072
25073 * Makefile.in (quickstrap): Pass BOOT_CFLAGS to submake.
25074
250752003-04-29 Jason Merrill <jason@redhat.com>
25076
25077 PR middle-end/10336
25078 * jump.c (never_reached_warning): Really stop looking if we reach
25079 the beginning of the function.
25080
250812003-04-29 Bob Wilson <bob.wilson@acm.org>
25082
25083 * config/xtensa/elf.h (SIZE_TYPE, PTRDIFF_TYPE, USER_LABEL_PREFIX):
25084 Remove redundant macros.
25085 (WCHAR_TYPE, WCHAR_TYPE_SIZE): Change to "short unsigned int".
25086 (LOCAL_LABEL_PREFIX): Define unconditionally.
25087 (NO_DOT_IN_LABEL): Clarify comment.
25088 * config/xtensa/linux.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Add explicit
25089 definition to "long int".
25090
250912003-04-29 Alexander Kabaev <kan@FreeBSD.ORG>
25092
25093 bootstrap/10452
25094 * gengtype-yacc.y: Improve portability.
25095
250962003-04-29 Zack Weinberg <zack@codesourcery.com>
25097
25098 * config.gcc: Install obsolete target list for GCC 3.3.
25099 * doc/install.texi: Mention in specific-target instructions
25100 that certain configurations are deprecated.
25101
251022003-04-29 Zack Weinberg <zack@codesourcery.com>
25103
25104 * tree.h: Delete no-checking definition of CST_OR_CONSTRUCTOR_CHECK.
25105
251062003-04-29 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
25107
25108 * c-pragma.c (maybe_apply_renaming_pragma): Fix typo.
25109 * gcc.c (display_help): Likewise.
25110 * toplev.c (f_options): Likewise.
25111 * params.def (PARAM_MAX_INLINE_SCOPE): Likewise.
25112 * config/c4x/c4x.h (TARGET_SWITCHES): Likewise.
25113 * config/mcore/mcore.h (TARGET_SWITCHES): Likewise.
25114 * config/s390/s390.h (TARGET_SWITCHES): Likewise.
25115 * config/v850/v850.h (TARGET_SWITCHES): Likewise.
25116
251172003-04-29 J"orn Rennecke <joern.rennecke@superh.com>
25118
25119 * varasm.c (default_assemble_visibility): Use assemble_name.
25120
251212003-04-29 David O'Brien <obrien@FreeBSD.org>
25122
25123 * config/i386/freebsd64.h (LINK_SPEC): Mirror FreeBSD linker.
25124 * config/rs6000/freebsd.h (LINK_SHLIB_SPEC): New macro.
25125 (SIZE_TYPE): New macro.
25126 * config/i386/freebsd-aout.h (NO_PROFILE_COUNTERS): New macro.
25127 (SET_ASM_OP): New macro.
25128 (HANDLE_SYSV_PRAGMA): New macro.
25129 (ASM_WEAKEN_LABEL): New macro.
25130
251312003-04-28 Mark Mitchell <mark@codesourcery.com>
25132
25133 PR c++/10180
25134 * tree-inline.c (expand_call_inline): Call push_srcloc when
25135 encountering EXPR_WITH_FILE_LOCATION. Honor warn_inline.
25136
251372003-04-28 Mike Stump <mrs@apple.com>
25138
25139 * gdbinit.in: Update to reflect new identifier structure.
25140
251412003-04-28 Zack Weinberg <zack@codesourcery.com>
25142
25143 * tree.h (TREE_CST_RTL, CST_OR_CONSTRUCTOR_CHECK): Delete.
25144 (struct tree_int_cst, struct tree_real_cst, struct tree_string,
25145 struct tree_complex, struct tree_vector): Remove RTL field.
25146 (CONSTRUCTOR_ELTS): Use elt 0.
25147 * tree.def (CONSTRUCTOR): Delete first of its two operands.
25148 * varasm.c (output_constant_def): Remove early exit if
25149 TREE_CST_RTL is set. Don't set TREE_CST_RTL.
25150 (decode_addr_const): Don't mention TREE_CST_RTL in comment.
25151 * target.h (select_section): Don't mention TREE_CST_RTL in comment.
25152 * doc/tm.texi (encode_section_info): Don't talk about TREE_CST_RTL.
25153
251542003-04-28 Jakub Jelinek <jakub@redhat.com>
25155
25156 * c-decl.c (finish_decl): When prototype with asmspec is found
25157 for built-in, adjust built_in_decls as well as expr.c decls.
25158 * expr.c (init_block_move_fn, init_block_clear_fn): New functions.
25159 (emit_block_move_libcall_fn, clear_storage_libcall_fn): Use it.
25160 * expr.c (init_block_move_fn, init_block_clear_fn): New prototypes.
25161
251622003-04-28 Richard Henderson <rth@redhat.com>
25163
25164 * config/sparc/sparc.c (print_operand): Add 's' to sign-extend.
25165 * config/sparc/sparc.md (const_mulsidi3_v8plus): Fix mode of
25166 integral constant mult operand.
25167 (const_mulsidi3_sp32, const_mulsidi3_sp64): Likewise.
25168 (const_smulsi3_highpart_v8plus): Likewise.
25169 (const_smulsi3_highpart): Likewise.
25170 (const_umulsidi3_sp32): Likewise; sign-extend it in the output.
25171 (const_umulsidi3_sp64, const_umulsidi3_v8plus): Likewise.
25172 (const_umulsi3_highpart_v8plus): Likewise.
25173 (const_umulsi3_highpart): Likewise.
25174
251752003-04-28 David O'Brien <obrien@FreeBSD.org>
25176
25177 * config/i386/x86-64.h (NO_PROFILE_COUNTERS, HAVE_AS_DWARF2_DEBUG_LINE):
25178 Define as 1.
25179
251802003-04-28 David O'Brien <obrien@FreeBSD.org>
25181
25182 * config/i386/i386.h (builtin_define): Add __amd64 and __amd64__.
25183
251842003-04-28 Jakub Jelinek <jakub@redhat.com>
25185
25186 * builtins.def (BUILT_IN_BCOPY, BUILT_IN_MEMMOVE): New.
25187 * builtin-types.def (BT_FN_VOID_CONST_PTR_PTR_SIZE): New.
25188 * builtins.c (expand_builtin_memmove, expand_builtin_bcopy): New
25189 functions.
25190 (expand_builtin): Handle BUILT_IN_BCOPY and BUILT_IN_MEMMOVE.
25191
251922003-04-28 Nick Clifton <nickc@redhat.com>
25193
25194 * config/arm/elf.h (ASM_OUTPUT_ALIGNED_COMMON): Remove definition.
25195
251962003-04-27 Zack Weinberg <zack@codesourcery.com>
25197
25198 * expr.c (expand_expr <COMPLEX_CST, STRING_CST>): Always call
25199 output_constant_def, use its result instead of TREE_CST_RTL (exp).
25200 Can assume it has the form (mem (symbol_ref ".LCxxx")).
25201 (expand_expr <COMPONENT_REF>): Can always just extract the
25202 relevant field of a CONSTRUCTOR.
25203 (expand_expr <ARRAY_REF, COMPONENT_REF, BIT_FIELD_REF,
25204 ARRAY_RANGE_REF>): Make control flow explicit.
25205 * varasm.c (output_constant_def): Can look at TREE_CST_RTL of
25206 an INTEGER_CST.
25207
252082003-04-27 Kazu Hirata <kazu@cs.umass.edu>
25209
25210 * reload1.c (reg_set_luid): Fix a comment typo.
25211
252122003-04-27 Zack Weinberg <zack@codesourcery.com>
25213
25214 * varasm.c (const_str_htab_hash, const_str_htab_eq, STRHASH,
25215 struct deferred_string, const_str_htab): Kill.
25216 (n_deferred_strings): New static variable.
25217 (build_constant_desc): Set SYMBOL_REF_DECL of the new
25218 symbol_ref to point to the constant.
25219 (output_constant_def): When a deferred string is forced out,
25220 just clear STRING_POOL_ADDRESS_P and decrement n_deferred_strings.
25221 (mark_constant): Likewise.
25222 (maybe_output_constant_def_contents): When deferring a string
25223 constant, just set STRING_POOL_ADDRESS_P and increment
25224 n_deferred_strings.
25225 (mark_constant_pool): Check n_deferred_strings, not the size
25226 of const_str_htab.
25227 (init_varasm_once): No need to create const_str_htab.
25228
25229 * rtl.def, rtl.h, doc/rtl.texi: Document possibility that
25230 SYMBOL_REF_DECL points to a constant.
25231
252322003-04-26 Zack Weinberg <zack@codesourcery.com>
25233
25234 * varasm.c (output_constant_def): Split out two new static
25235 functions, build_constant_desc and maybe_output_constant_def_contents.
25236 Restructure for comprehensibility. Don't call
25237 output_addressed_constants. Treat defstr being non-NULL for
25238 STRING_POOL_ADDRESS_P constants as an invariant.
25239 (struct deferred_string): Remove labelno field.
25240 (output_constant_def_contents): Kill labelno argument. Call
25241 output_addressed_constants here. Use ASM_OUTPUT_LABEL, not
25242 asm_out.internal_label.
25243 (mark_constant): Update call to output_constant_def_contents.
25244 Treat defstr being non-NULL for STRING_POOL_ADDRESS_P
25245 constants as an invariant.
25246
252472003-04-26 Richard Henderson <rth@redhat.com>
25248
25249 * config/i386/i386.c (output_pic_addr_const): Use SYMBOL_REF_LOCAL_P.
25250 (ix86_expand_call, ix86_rtx_consts): Likewise.
25251
252522003-04-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
25253
25254 * doc/md.texi (cmpstr): Document additional restrictions.
25255
252562003-04-26 Neil Booth <neil@daikokuya.co.uk>
25257
25258 * flags.h (time_report): Remove.
25259 * timevar.c (timevar_enable): New.
25260 (TIMEVAR_ENABLE): Remove, use timevar_enable.
25261 (timevar_init): Rename from init_timevar.
25262 * timevar.h (timevar_init): Rename from init_timevar.
25263 * toplev.c (time_report): Make static.
25264 (do_compile): Conditionally call init_timevar first.
25265 (preprocess_options): Move some code to do_compile.
25266
252672003-04-26 Stephane Carrez <stcarrez@nerim.fr>
25268
25269 * doc/install.texi (Binaries): Mention binaries for HC11/HC12.
25270
252712003-04-26 Neil Booth <neil@daikokuya.co.uk>
25272
25273 * _cpp_lex_direct: Remove pointless code.
25274
252752003-04-26 Stephane Carrez <stcarrez@nerim.fr>
25276
25277 * doc/extend.texi (Function Attributes): Document "near" and "far"
25278 for 68HC11 and 68HC12.
25279
252802003-04-25 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25281
25282 * expr.c (store_field): When making temporary for store, don't
25283 make it TYPE_QUAL_CONST.
25284
252852003-04-25 Phil Edwards <pme@gcc.gnu.org>
25286
25287 * toplev.c (read_integral_parameter): Use "argument" in error
25288 message to distinguish it from actual invalid options.
25289
252902003-04-25 Bob Wilson <bob.wilson@acm.org>
25291
25292 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Back out previous
25293 addition of __PIC__ and __pic__ macros.
25294 * config/xtensa/xtensa.h: Clean up indentation.
25295
252962003-04-25 Bob Wilson <bob.wilson@acm.org>
25297
25298 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Remove definition of
25299 _GNU_SOURCE. Add definitions of __PIC__ and __pic__.
25300 (SUBTARGET_CPP_SPEC): Define.
25301 (LIB_SPEC): Delete.
25302 * config/xtensa/xtensa-protos.h (xtensa_declare_object): Delete.
25303 * config/xtensa/xtensa.c (xtensa_declare_object): Delete.
25304 * config/xtensa/xtensa.h (CPP_SPEC, SUBTARGET_CPP_SPEC, EXTRA_SPECS):
25305 Define.
25306 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
25307 (ASM_OUTPUT_ALIGNED_BSS, BSS_SECTION_ASM_OP): Define.
25308
253092003-04-25 H.J. Lu <hjl@gnu.org>
25310
25311 * config/ia64/ia64.c (ia64_expand_compare_and_swap): Add rmode
25312 for return mode.
25313 (ia64_expand_builtin): Set rmode to SImode for
25314 IA64_BUILTIN_BOOL_COMPARE_AND_SWAP_SI,
25315 IA64_BUILTIN_VAL_COMPARE_AND_SWAP_SI and
25316 IA64_BUILTIN_BOOL_COMPARE_AND_SWAP_DI. Set remode to DImode
25317 for IA64_BUILTIN_VAL_COMPARE_AND_SWAP_DI.
25318
253192003-04-25 Phil Edwards <pme@gcc.gnu.org>
25320
25321 * configure.in (make_compare_target): Test for GNU cmp and set this
25322 variable appropriately.
25323 * Makefile.in (compare, compare3, compare4, compare-lean, compare3-lean,
25324 compare4-lean): Rename actual targets to slowcompare*. New compare*
25325 targets depend on names based on make_compare_target.
25326 * configure: Regenerated.
25327
253282003-04-25 Richard Henderson <rth@redhat.com>
25329
25330 * config/ia64/ia64.c (ia64_compute_frame_size): Allow inline asm
25331 to clobber ar.pfs and ar.unat.
25332 (ia64_expand_prologue): Force alloc instruction if ar.pfs saved;
25333 fix test for spilling ar.pfs to the stack.
25334
253352003-04-25 Richard Henderson <rth@redhat.com>
25336
25337 PR opt/10315
25338 * config/rs6000/rs6000.c (rs6000_emit_move): Only elide proper
25339 checks during reload; use validize_mem instead of adjust_address.
25340
253412003-04-26 Ben Elliston <bje@wasabisystems.com>
25342
25343 * config/arm/arm.c (arm_adjust_cost): Correct logic that tests the
25344 return values from recog_memoized().
25345
253462003-04-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
25347
25348 PR opt/8705
25349 * gcse.c (try_replace_reg): On a successful substitution of a constant
25350 into a single set, try to simplify the source of the set.
25351 * loop.c (scan_loop): Don't try to optimize a MODE_CC set with a
25352 constant source.
25353
253542003-04-24 Neil Booth <neil@daikokuya.co.uk>
25355
25356 * cpplex.c (cpp_token_len): Tighten up.
25357 (cpp_token_as_text): Need extra byte now.
25358 * cpplib.c (glue_header_name): Need extra 2 bytes.
25359 * cppmacro.c (cpp_macro_definition): Need extra byte.
25360
253612003-04-24 Alexander Kabaev <kan@FreeBSD.ORG>
25362
25363 * config/sparc/sparc.md (umulsidi3, mulsidi3): Avoid using
25364 const_umulsidi3_sp32 and const_mulsidi3_sp32 on 64bit targets
25365 where they might be not present. Use their _sp64 equivalent
25366 instead.
25367
25368Thu Apr 24 20:42:12 CEST 2003 Jan Hubicka <jh@suse.cz>
25369
25370 * i386.md (cvtsi2sdq): Fix typo in previous patch.
25371
253722003-04-24 Krister Walfridsson <cato@df.lth.se>
25373
25374 * configure.in: Check whether mbstowcs works.
25375 * configure, config.in: Regenerate.
25376 * intl.c: Use HAVE_WORKING_MBSTOWCS.
25377
253782003-04-24 H.J. Lu <hjl@gnu.org>
25379
25380 * config/ia64/ia64.c (ia64_init_builtins): Add si_ftype_pdi_di_di
25381 for __sync_bool_compare_and_swap_di for int return type.
25382
25383 * config/ia64/ia64intrin.h (__sync_bool_compare_and_swap_di):
25384 Change return type to int.
25385 (__sync_bool_compare_and_swap): Likewise.
25386
25387Thu Apr 24 16:55:26 CEST 2003 Jan Hubicka <jh@suse.cz>
25388
25389 * cfgbuild.c (make_edges): Do not use next_nonnote_insn when
25390 looking for fallthru edge.
25391
25392 * athlon.md (athlon-agu, athlon-store, athlon-fany, athlon-faddmul):
25393 Fix.
25394 (athlon-load2, athlon-store2, athlon-fpsched, athlon-fpload,
25395 athlon-fvector): New.
25396 (athlon_*): Revisit to match new optimization guide.
25397 * i386.c (ix86_adjust_cost): Fix memory operand costs on Athlon/k8
25398 * i386.md (cvt??2?? patterns): Fix modes.
25399 (fistp patterns): Set modes.
25400
25401 Accidentaly commited with my earlier reload patch:
25402 PR c/10308
25403 * reload.c (find_reloads_address_1): Reload plus at the place of
25404 index register.
25405
254062003-04-24 Nathan Sidwell <nathan@codesourcery.com>
25407
25408 New GCOV_TAG_FUNCTION layout
25409 * coverage.c (struct function_list): Replace name with ident.
25410 (struct counts_entry): Likewise.
25411 (fn_ident): New.
25412 (htab_counts_entry_hash, htab_counts_entry_eq,
25413 htab_counts_entry_del): Adjust.
25414 (reads_count_file, get_coverage_counts,
25415 coverage_begin_output, coverage_end_function): Adjust.
25416 (build_fn_info_type, build_fn_info_value): Likewise.
25417 * gcov-dump.c (tag_function): Adjust.
25418 * gcov-io.c (gcov_write_string, gcov_read_string): Not in LIBGCOV.
25419 * gcov-io.h (gcov_write_string, gcov_read_string): Not in LIBGCOV.
25420 * gcov.c (struct function_info): Add ident.
25421 (read_graph_file, read_count_file): Adjust.
25422 * libgcov.c (gcov_exit): Adjust.
25423
254242003-04-23 Richard Henderson <rth@redhat.com>
25425
25426 PR opt/8300
25427 * toplev.c (rest_of_compilation): Delay no_new_pseudos until
25428 after initialize_uninitialized_subregs; update reg info assuming
25429 new pseudos were created.
25430
254312003-04-23 Neil Booth <neil@daikokuya.co.uk>
25432
25433 * Makefile.in (c-lex.o, LIBCPP_OBJS, cpplex.o): Update.
25434 * c-lex.c (MULTIBYTE_CHARS): Remove conditionals.
25435 (lex_string): Take cpp_string with full spelling.
25436 (cb_ident): Update.
25437 (c_lex): Update diagnostics.
25438 * cpplex.c (SPELL_NUMBER, SPELL_STRING): Combine into SPELL_LITERAL.
25439 (create_literal): New.
25440 (lex_string): Unterminated literals have type CPP_OTHER.
25441 (_cpp_lex_direct): Update calls to lex_string. Use create_literal
25442 for CPP_OTHER.
25443 (cpp_token_len, cpp_spell_token, cpp_output_token): Simplify.
25444 (_cpp_equiv_tokens, cpp_interpret_charconst): Update.
25445 * cpplib.c (parse_include, do_line, do_linemarker,
25446 destringize_and_run): Update for token storing full spelling.
25447 * cpplib.h: Update token spelling types.
25448 * cppmacro.c (stringify_arg, check_trad_stringification):
25449 Update for token storing full spelling.
25450
254512003-04-23 Ulrich Weigand <uweigand@de.ibm.com>
25452
25453 * config/s390/s390.c (s390_expand_cmpstr): Disable CLC loop.
25454
254552003-04-23 Richard Earnshaw <rearnsha@arm.com>
25456
25457 * arm.h (TARGET_OPTIONS): Add value field.
25458
254592003-04-23 Mark Mitchell <mark@codesourcery.com>
25460
25461 * doc/extend.texi: Remove duplicate 2003 copyright date.
25462
254632003-04-23 Nathan Sidwell <nathan@codesourcery.com>
25464
25465 * Makefile.in (LIBGCC_DEPS): Add gcov headers.
25466 (libgcov.a): Depends on LIBGCC_DEPS.
25467 * basic-block.h (profile_info): Moved here from coverage.h. Made
25468 a pointer.
25469 * coverage.c (struct function_list): Fixed array of counter types.
25470 (struct counts_entry): Keyed by counter type, contains summary.
25471 (profile_info): Moved to profile.c.
25472 (prg_ctr_mask, prg_n_ctrs, fn_ctr_mask, fn_n_ctrs): New global
25473 vars.
25474 (profiler_label): Remove.
25475 (ctr_labels): New.
25476 (set_purpose, label_for_tag, build_counter_section_fields,
25477 build_counter_section_value, build_counter_section_data_fields,
25478 build_counter_section_data_values, build_function_info_fields,
25479 build_function_info_value, gcov_info_fields, gcov_info_value): Remove.
25480 (build_fn_info_type, build_fn_info_value, build_ctr_info_type,
25481 build_ctr_info_value, build_gcov_info): New.
25482 (htab_counts_entry_hash, htab_counts_entry_eq): Adjust.
25483 (reads_counts_file): Adjust.
25484 (get_coverage_counts): Takes counter number. Add summary
25485 parameter. Adjust.
25486 (coverage_counter_ref): Tkaes counter number. Adjust. Lazily
25487 create counter array labels.
25488 (coverage_end_function): Adjust.
25489 (create_coverage): Adjust.
25490 (find_counters_section): Remove.
25491 * coverage.h (MAX_COUNTER_SECTIONS): Remove.
25492 (struct section_info, struct profile_info): Remove.
25493 (profile_info): Moved to basic-block.h.
25494 (coverage_counter_ref): Takes a counter number.
25495 (get_coverage_counts): Takes a counter number. Added summary
25496 parameter.
25497 (find_counters_section): Remove.
25498 * gcov-dump.c (tag_arc_counts): Rename to ...
25499 (tag_counters): ... here. Adjust.
25500 (tag_table): Move tag_counters to 3rd entry. Remove
25501 PROGRAM_PLACEHOLDER and PROGRAM_INCORRECT entries.
25502 (dump_file): Check for counter tag values here.
25503 (tag_summary): Adjust.
25504 * gcov-io.c (gcov_write_summary, gcov_read_summary): Adjust.
25505 * gcov-io.h (GCOV_LOCKED): New.
25506 (GCOV_TAG_ARC_COUNTS): Rename to ...
25507 (GCOV_TAG_COUNTS_BASE): ... here.
25508 (GCOV_TAG_PLACEHOLDER_SUMMARY, GCOV_TAG_INCORRECT_SUMMARY):
25509 Remove.
25510 (GCOV_COUNTER_ARCS, GCOV_COUNTERS, GCOV_NAMES): New.
25511 (GCOV_TAG_FOR_COUNTER, GCOV_COUNTER_FOR_TAG,
25512 GCOV_TAG_IS_COUNTER): New.
25513 (struct gcov_ctr_summary): New.
25514 (struct gcov_summary): Adjust.
25515 (struct gcov_counter_section): Remove.
25516 struct gcov_counter_section_data): Remove.
25517 (struct gcov_function_info): Rename to ...
25518 (struct gcov_fn_info): ... here. Adjust.
25519 (struct gcov_ctr_info): New.
25520 (struct gcov_info): Adjust.
25521 * gcov.c (read_count_file): Adjust.
25522 (output_lines): Adjust.
25523 * libgcov.c (gcov_exit): Adjust.
25524 (__gcov_flush): Adjust.
25525 * mklibgcc.in (libgcc2_c_dep): Add gcov headers.
25526 * predict.c (maybe_hot_bb_p, probably_cold_bb_p,
25527 probably_never_executed_bb_p, compute_frequency_function): Adjust
25528 profile_info use.
25529 * profile.c (struct counts_entry): Remove.
25530 (profile_info): Define here.
25531 (get_exec_counts): Adjust get_coverage_counts call.
25532 (compute_branch_probablilities): Remove find_counters_section
25533 call.
25534 (gen_edge_profiler): Adjust coverage_counter_ref call.
25535 * tracer.c (tail_duplicate): Adjust profile_info use.
25536
255372003-04-23 Roger Sayle <roger@eyesopen.com>
25538
25539 PR optimization/10339
25540 * builtins.c (expand_builtin_strcmp): Try to emit cmpstrsi insn
25541 directly instead of unsafely transforming call into a memcmp.
25542 (expand_builtin_strncmp): Likewise.
25543
255442003-04-22 Roger Sayle <roger@eyesopen.com>
25545
25546 * alias.c (mark_constant_function): Check for constancy and
25547 purity even of void functions. Update both the function decl
25548 and the cgraph RTL info with the results.
25549
255502003-04-22 Roger Sayle <roger@eyesopen.com>
25551
25552 * real.c (do_add): Change to return a bool indicating that the
25553 result of the operation may be inexact due to loss of precision.
25554 (do_multiply): Likewise.
25555 (do_divide): Likewise.
25556
255572003-04-22 Geoffrey Keating <geoffk@apple.com>
25558 Loren James Rittle <ljrittle@acm.org>
25559
25560 * dwarf2out.c (fde_table_allocated): Mark with GTY.
25561 (decl_die_table_allocated): Likewise.
25562 (abbrev_die_table_allocated): Likewise.
25563 (line_info_table_allocated): Likewise.
25564 (separate_line_info_table_allocated): Likewise.
25565 (pubname_table_allocated): Likewise.
25566 (arange_table_allocated): Likewise.
25567 (ranges_table_allocated): Likewise.
25568 (decl_die_table_in_use): Unconditionalize; mark with GTY.
25569 (abbrev_die_table_in_use): Likewise.
25570 (line_info_table_in_use): Likewise.
25571 (separate_line_info_table_in_use): Likewise.
25572 (pubname_table_in_use): Likewise.
25573 (arange_table_in_use): Likewise.
25574 (ranges_table_in_use): Likewise.
25575 (have_location_lists): Likewise.
25576 (emitcount): New GTY-marked static, moved...
25577 (maybe_emit_file): ...from here.
25578 (label_num): New GTY-marked static, moved...
25579 (gen_internal_sym): ...from here.
25580
255812003-04-22 Richard Henderson <rth@redhat.com>
25582
25583 PR 8866
25584 * rtl.h (MEM_NOTRAP_P): New.
25585 (MEM_COPY_ATTRIBUTES): Copy it.
25586 * rtlanal.c (may_trap_p): Check it.
25587 * expr.c (do_tablejump): Set it.
25588 * doc/rtl.texi (Flags): Document it.
25589
25590 * cfgrtl.c (try_redirect_by_replacing_jump): Revert last three changes.
25591
255922003-04-22 Olivier Hainque <hainque@act-europe.fr>
25593
25594 * config/alpha/alpha.c (alpha_expand_prologue [OPEN_VMS_ABI]): Don't
25595 set FRP on stack adjustment for outgoing args if frame_pointer_needed.
25596
255972003-04-22 Vincent Celier <celier@gnat.com>
25598
25599 * gthr-gnat.h, gthr-gnat.c: new sources for implementation of
25600 --enable-threads=gnat.
25601 * Makefile.in: Add gthr-gnat.c to LIB2ADDEH.
25602 * configure.in: Add gnat to the list of thread packages
25603 * configure: Rebuild.
25604 * config/t-linux: Add gthr-gnat.c to LIB2ADDEH and LIB2ADDEHDEP
25605
256062003-04-22 Neil Booth <neil@daikokuya.co.uk>
25607
25608 * cpplex.c (_cpp_get_fresh_line): Pop the buffer if return_at_eof.
25609
256102003-04-22 Devang Patel <dpatel@apple.com>
25611
25612 * cpptrad.c (_cpp_replacement_text_len): Add check for macro
25613 parameter count.
25614 (_cpp_copy_replacement_text): Same.
25615
256162003-04-22 Neil Booth <neil@daikokuya.co.uk>
25617
25618 * c-lex.c (c_lex): Handle CPP_OTHER differently.
25619 * cppexp.c (_cpp_parse_expr): Similarly.
25620 * cpplex.c (SPELL_CHAR): Remove.
25621 (_cpp_lex_direct): Stray chars are saved as byte strings.
25622 (cpp_spell_token, cpp_output_token, _cpp_equiv_token): Don't
25623 handle SPELL_CHAR.
25624 (cpp_avoid_paste): Update handling of CPP_OTHER.
25625 * cpplib.h: Spell CPP_OTHER like a number.
25626 (struct cpp_token): Remove member c.
25627 * cppmacro.c (stringify_arg): Update handling of CPP_OTHER.
25628
256292003-04-22 David Turner <novalis@gnu.org>
25630
25631 * gbl-ctors.h: Add special license exception.
25632 * libgcc2.h: Likewise.
25633 * tsystem.h: Likewise.
25634 * gcov-io.h: Likewise.
25635
256362003-04-22 David Edelsohn <edelsohn@gnu.org>
25637
25638 * fold-const.c (fold_range_test): Use RANGE_TEST_NON_SHORT_CIRCUIT
25639 macro defaulting to original BRANCH_COST heuristic.
25640 * doc/tm.texi (RANGE_TEST_NON_SHORT_CIRCUIT): Document.
25641
25642 * config/rs6000/rs6000.h (RANGE_TEST_NON_SHORT_CIRCUIT): Define.
25643
256442003-04-22 Aldy Hernandez <aldyh@redhat.com>
25645
25646 * config/rs6000/t-spe: Merge in t-fprules into file.
25647
25648 * config.gcc: Add t-spe to powerpc-eabispe.
25649
256502003-04-22 Kean Johnston <jkj@sco.com>
25651
25652 * tlink.c (recompile_files): Add missing '=' to putenv calls
25653
256542003-04-22 Nathan Sidwell <nathan@codesourcery.com>
25655
25656 * ginclude/stddef.h: Provide C++ safe offsetof.
25657
256582003-04-22 J"orn Rennecke <joern.rennecke@superh.com>
25659
25660 * function.c (purge_addressof_1): In (mem (addressof (reg))) case
25661 for reg notes, if there are no substitutions, just use a SUBREG.
25662
256632003-04-21 Mark Mitchell <mark@codesourcery.com>
25664
25665 * Makefile.in (calls.o): Depend on except.h.
25666 * calls.c: Include except.h.
25667 (emit_call_1): Call note_eh_region_may_contain_throw if
25668 appropriate.
25669 * except.c (eh_region): Add may_contain_throw.
25670 (expand_eh_region_end_cleanup): Do not include handler code when
25671 it cannot be reached.
25672 (note_eh_region_may_contain_throw): New function.
25673 * except.h (note_eh_region_may_contain_throw): New function.
25674
256752003-04-21 Mark Mitchell <mark@codesourcery.com>
25676
25677 * config/i386/winnt.c (i386_pe_mark_dllimport): Revert previous
25678 changes.
25679
256802003-04-21 Aldy Hernandez <aldyh@redhat.com>
25681
25682 * config/rs6000/rs6000.c (rs6000_override_options): No SPE means
25683 64-bit long doubles.
25684
256852003-04-21 Olivier Hainque <hainque@act-europe.fr>
25686
25687 * fold-const.c (fold, case PLUS_EXPR and case MULT_EXPR): Restore
25688 a number of conversions required for type consistency and previously
25689 stripped off by STRIP_NOPS.
25690
25691 * calls.c (expand_call): Prevent sibcall optimization for calls to
25692 nested subprograms.
25693
25694 * expmed.c (extract_bit_field): Reverse operands of && condition to
25695 prevent a potential division by zero in the previously first branch.
25696 * config/pa/pa.md (extv, extzv): FAIL if the bitfield length is zero.
25697
256982003-04-21 Joel Brobecker <brobecker@gnat.com>
25699
25700 * dwarf2out.c (is_ada, is_ada_subrange_type): New functions.
25701 (subrange_type_die): Likewise.
25702 (modified_type_die): Emit a subrange_type DIE for Ada subrange types.
25703 (is_c_family, is_cxx, is_java, is_fortran): Return bool and clean up.
25704
257052003-04-21 Nathan Sidwell <nathan@codesourcery.com>
25706
25707 Break out coverage routines to new file.
25708 * Makefile.in (COVERAGE_H): New variable
25709 (C_OBJS): Add coverage.o
25710 (coverage.o): New target.
25711 (profile.o, loop-init.o, sched-ebb.o, predict.o, tracer.o): Adjust
25712 dependencies.
25713 (GTFILES): Adjust.
25714 (gt-coverage.h): New target.
25715 (gt-profile.h): Remove.
25716 * profile.h: Remove. Move to ...
25717 * coverage.h: ... here. New. #include gcov-io.h.
25718 * gcov-io.h: Move function definitions to ...
25719 * gcov-io.c: ... here. New.
25720 * profile.c: Move coverage routines to coverage.c.
25721 (instrument_edges, get_exec_counts, branch_prob, init_branch_prob,
25722 end_branch_prob): Adjust.
25723 * coverage.c: New. Coverage routines from profile.c
25724 (coverage_counter_ref, coverage_init, coverage_finish,
25725 coverage_end_function, coverage_begin_output,
25726 coverage_counter_ref, get_coverage_counts): Define.
25727 * gcov-dump.c, gcov.c: #include gcov-io.c.
25728 * libgcov.c: Likewise. Adjust.
25729 * loop-init.c: Don't #include profile.h
25730 * tracer.c, predict.c, sched-ebb.c: Adjust #includes.
25731 * rtl.h: Add coverage prototypes.
25732 * toplev.c (compile_file): Init coverage, not branch_prob.
25733 Always call coverage_finish.
25734 (rest_of_compilation): Call coverage_end_function.
25735
257362003-04-21 Matt Kraai <kraai@alumni.cmu.edu>
25737
25738 * config/rs6000/rs6000.md (*movsf_softfloat): Add "h" <- "0" case.
25739
257402003-04-21 Neil Booth <neil@daikokuya.co.uk>
25741
25742 * c-ppoutput.c (cb_include): Don't take a cpp_token.
25743 * cppfiles.c: Don't undef strcmp.
25744 (find_include_file): Don't take a cpp_token. Check for empty
25745 file names.
25746 (_cpp_execute_include, _cpp_compare_file_date): Don't take a cpp_token.
25747 (cpp_push_include): Simplify.
25748 * cpphash.h (_cpp_execute_include, _cpp_compare_file_date): Update.
25749 * cpplib.c (glue_header_name): Return the file name, not a cpp_token.
25750 (parse_include): Similary. Don't check for zero-length filenames.
25751 (do_include_common, do_pragma_dependency): Update accordingly.
25752 * cpplib.h (struct cpp_callbacks): Change prototype of include.
25753
257542003-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25755
25756 * doc/rtl.texi (RTX_UNCHANGING_P): Point to true_dependence for
25757 details of conflict handling.
25758
25759 * fold-const.c (extract_muldiv, case CONVERT_EXPR): Detect case
25760 when conversion overflows.
25761
25762 * stor-layout.c (layout_decl): Don't set DECL_SIZE_UNIT if already set.
25763
25764 * expr.c (store_constructor): Set RTX_UNCHANGING_P if readonly_field_p
25765 before clearing.
25766
257672003-04-21 Mark Mitchell <mark@codesourcery.com>
25768
25769 * config/i386/winnt.c (i386_pe_mark_dllimport): Make the new RTL
25770 have the same form as the old RTL.
25771
257722003-04-21 Andreas Jaeger <aj@suse.de>
25773
25774 * cppcharset.c (_cpp_valid_ucn): Cast field precision to int.
25775
257762003-04-20 Chris Lattner <sabre@nondot.org>
25777 Zack Weinberg <zack@codesourcery.com>
25778
25779 * c-common.h, c-semantics.c: Rename genrtl_decl_cleanup to
25780 genrtl_cleanup_stmt. Correct comment at head of
25781 genrtl_cleanup_stmt (no such thing as a DECL_CLEANUP).
25782
25783 * stmt.c (struct nesting): Kill n_function_calls.
25784 (expand_start_bindings): Don't set
25785 thisblock->data.block.n_function_calls.
25786 (expand_end_bindings): Compare function_call_count against 0.
25787 (expand_cleanups): Kill DONT_DO argument; all callers passed
25788 NULL_TREE. All callers updated to match.
25789
257902003-04-20 Zack Weinberg <zack@codesourcery.com>
25791
25792 * varasm.c (struct deferred_constant, defer_addressed_constants_flag)
25793 (defer_addressed_constants, output_deferred_addressed_constants): Kill.
25794 (output_constant_def): Remove code predicated on
25795 defer_addressed_constants_flag.
25796
25797 * output.h: Remove prototypes of deleted functions.
25798 * c-typeck.c (constructor_subconstants_deferred): Kill.
25799 (struct initializer_stack): Remove 'deferred' field.
25800 (start_init): Remove all references to the above.
25801 (finish_init): Likewise. Also remove never-executed call to
25802 output_deferred_addressed_constants. Pull assignment to
25803 defstr out of if expression.
25804
258052003-04-20 Neil Booth <neil@daikokuya.co.uk>
25806
25807 * cpphash.h (NOTE_ESC_NL, NOTE_ESC_SPACE_NL, NOTE_TRIGRAPH,
25808 NOTE_NEWLINE): Remove.
25809 * cpplex.c (_cpp_clean_line, _cpp_process_line_notes): Update
25810 to handle new form of line note type.
25811
258122003-04-20 Zack Weinberg <zack@codesourcery.com>
25813
25814 * target.h (encode_section_info): Add new argument carrying
25815 the RTL to be modified by the hook.
25816
25817 * varasm.c (make_decl_rtl, output_constant_def): Update calls
25818 to encode_section_info.
25819 (default_encode_section_info): Take and use RTL argument,
25820 don't use TREE_CST_RTL or DECL_RTL.
25821 * output.h: Update prototype of default_encode_section_info.
25822 * config/darwin.h (ASM_DECLARE_OBJECT_NAME)
25823 (ASM_DECLARE_FUNCTION_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL):
25824 Update calls to encode_section_info.
25825
25826 * config/darwin.c, config/arm/arm.c, config/arm/pe.c
25827 * config/h8300/h8300.c, config/i386/winnt.c, config/m32r/m32r.c
25828 * config/m68hc11/m68hc11.c, config/m88k/m88k.c, config/mcore/mcore.c
25829 * config/mips/mips.c, config/mmix/mmix.c, config/pa/pa.c
25830 * config/romp/romp.c, config/rs6000/rs6000.c, config/s390/s390.c
25831 * config/v850/v850.c (TARGET_ENCODE_SECTION_INFO definitions):
25832 Take and use RTL argument, don't use TREE_CST_RTL or DECL_RTL,
25833 except for PE dllimport/dllexport. Update calls to
25834 default_encode_section_info.
25835
25836 * config/darwin-protos.h, config/arm/arm-protos.h, config/i386-protos.h:
25837 Update prototypes.
25838
25839 * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update.
25840
258412003-04-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
25842
25843 PR/8705
25844 * pa.md (movccfp): New expander.
25845 (setccfp0, setccfp1): Rename to movccfp0 and movccfp1, respectively.
25846 Reverse fcmp conditions.
25847
258482003-04-20 Marek Michalkiewicz <marekm@amelek.gda.pl>
25849
25850 * config/avr/avr.md (*cmpqi_sign_extend): Handle negative values
25851 of operand 1 correctly.
25852
258532003-04-20 Nathan Sidwell <nathan@codesourcery.com>
25854
25855 * cpplex.c (_cpp_lex_direct): Set BOL for CPP_EOF tokens.
25856 * gcov.c (output_lines): Don't be so fussy about going past EOF.
25857
258582003-04-20 Neil Booth <neil@daikokuya.co.uk>
25859
25860 * Makefile.in (LIBCPP_OBJS): Add cppcharset.o.
25861 (cppcharset.o): New target.
25862 * c-lex.c (is_extended_char): Move to cppcharset.c.
25863 (utf8_extend_token): Delete.
25864 * cppcharset.c: New file.
25865 * cpphash.h (_cpp_valid_ucn): New.
25866 * cpplex.c (lex_identifier): Update prototype.
25867 (continues_identifier_p): Rename forms_identifier_p. Handle UCN
25868 escapes.
25869 (maybe_read_ucs): Rename maybe_read_ucn. Update to use code
25870 in cppcharset.c.
25871 (lex_number, lex_identifier, cpp_parse_escape): Update.
25872 (_cpp_lex_direct): Update to handle UCNs.
25873 (cpp_avoid_paste): Don't paste to form a UCN.
25874
258752003-04-19 Roger Sayle <roger@eyesopen.com>
25876
25877 * builtins.c (expand_builtin): Don't expand a pure or const
25878 built-in function if the result will be ignored and none of
25879 its arguments are volatile.
25880
258812003-04-19 Kean Johnston <jkj@sco.com>
25882
25883 * unwind-dw2.c (_Unwind_GetCFA): cast return to avoid warning
25884 * config.gcc: make SCO use dbxelf.h and elfos.h; only use one
25885 target fragment now: t-sco5; dont compile crti.o.
25886 * config/i386/sco5.h: major overhaul to remove all COFF remnants
25887 and to use elfos.h for most definitions.
25888 (BSS_SECTION_ASM_OP): set correct segment attributes.
25889 (PREFERED_DEBUGGING_TYPE): set to DWARF-2.
25890 (DWARF2_UNWIND_INFO): Always set to 1.
25891 (MD_STARTFILE_PREFIX): Make /usr/gnu/lib the default.
25892 (MD_STARTFILE_PREFIX_1): Define.
25893 (MD_EXEC_PREFIX): Adjust to /usr/gnu/bin if using GAS.
25894 (DEFAULT_LINKER): Define if not specified to configure.
25895 (CTORS_SECTION_ASM_OP): Remove COFF crud.
25896 (DTORS_SECTION_ASM_OP): Remove COFF crud.
25897 (WINT_TYPE): Define.
25898 (SDB_DEBUGGING_INFO): Remove.
25899 (EXTRA_SECTIONS): Likewise.
25900 (EXTRA_SECTION_FUNCTIONS): Likewise.
25901 (CTOR_LIST_BEGIN): Likewise.
25902 (CTOR_LIST_END): Likewise.
25903 (INIT_SECTION_FUNCTION): Likewise.
25904 (FINI_SECTION_FUNCTION): Likewise.
25905 (SUBTARGET_FRAME_POINTER_REQUIRED): Likewise.
25906 (LOCAL_LABEL_PREFIX): Likewise.
25907 (NON_SAVING_SETJMP): Likewise.
25908 (RETURN_POPS_ARGS): Likewise.
25909 (ASM_OUTPUT_SKIP): Likewise.
25910 (TARGET_ASM_NAMED_SECTION): Likewise.
25911 (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
25912 (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
25913 (ASM_OUTPUT_IDENT): Likewise.
25914 (ASM_OUTPUT_CASE_LABEL): Likewise.
25915 (ASM_OUTPUT_ASCII): Likewise.
25916 (ASM_OUTPUT_LIMITED_STRING): Likewise.
25917 (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
25918 (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
25919 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
25920 (ASM_FINISH_DECLARE_OBJECT): Likewise.
25921 (ASM_DECLARE_OBJECT_NAME): Likewise.
25922 (ASM_DECLARE_FUNCTION_SIZE): Likewise.
25923 (ASM_DECLARE_FUNCTION_NAME): Likewise.
25924 (ASM_DECLARE_RESULT): Likewise.
25925 (ASM_WEAKEN_LABEL): Likewise.
25926 (SUPPORTS_WEAK): Likewise.
25927 (APPLY_RESULT_SIZE): Likewise.
25928 (LPREFIX): Likewise.
25929 (ALIGN_ASM_OP): Likewise.
25930 (ASCII_DATA_ASM_OP): Likewise.
25931 (IDENT_ASM_OP): Likewise.
25932 (ASM_SHORT): Likewise.
25933 (ASM_LONG): Likewise.
25934 (TYPE_ASM_OP): Likewise.
25935 (SIZE_ASM_OP): Likewise.
25936 (STRING_ASM_OP): Likewise.
25937 (SKIP_ASM_OP): Likewise.
25938 (EH_FRAME_SECTION_ASM_OP): Likewise.
25939 (READONLY_DATA_SECTION_ASM_OP): Likewise.
25940 (INIT_SECTION_ASM_OP): Likewise.
25941 (FINI_SECTION_ASM_OP): Likewise.
25942 (TEXT_SECTION_ASM_OP): Likewise.
25943 (DATA_SECTION_ASM_OP): Likewise.
25944 (TYPE_OPERANT_FORMAT): Likewise.
25945 (ASM_SPEC): Remove COFF code.
25946 (STARTFILE_SPEC): Likewise. Always use crti.o; add -p and -pp support;
25947 cause -pg to emit an error; use pcrt1elf.o with -pp
25948 (ENDFILE_SPEC): Likewise.
25949 (TARGET_OS_CPP_BUILTINS): Add _SCO_DS_LL.
25950 (CPP_SPEC): Remove COFF crud; always look in /usr/gnu/include first.
25951 (LINK_SPEC): Remove COFF crud; use -E for environment switch not -R;
25952 add -z alt_resolve to support weak symbols the way GCC wants them.
25953 (LIB_SPEC): Use the profiler libraries in -p or -pp mode.
25954 (LIBGCC_SPEC): Dont use -lgcc in -G mode.
25955 (ASM_PREFERED_EH_DATA_FORMAT): Remove.
25956 * config/i386/t-sco5 (TARGET_LIBGCC2_CFLAGS): Remove.
25957 (CRTSTUFF_T_CFLAGS_S): Define.
25958 (MULTILIB_OPTIONS): Likewise.
25959 (MULTILIB_DIRNAMES): Likewise.
25960 (MULTILIB_MATCHES): Likewise.
25961 (MULTILIB_EXTRA_OPTS): Likewise.
25962 (LIBGCC): Likewise.
25963 (INSTALL_LIBGCC): Likewise.
25964 (crti.o): Remove.
25965 * config/i386/t-sco5gas: Remove.
25966 * doc/install.texi: Updated for new OpenServer instructions.
25967 * testsuite/gcc.dg/nest.c: Allow failure on SCO (-pg not supported)
25968
259692003-04-19 Kean Johnston <jkj@sco.com>
25970
25971 * fixinc/check.tpl: Allow user to over-ride diff program.
25972 * fixinc/inclhack.def: Removed extraneous #ifndef SVR5.
25973 (sco_math): Added test for SCO math header files.
25974 (sco_regset): Added check for conflicts with ieeefp.h.
25975 (svr4_disable_opt): Removed extraneous #ifdef SVR4.
25976 * fixinc/fixincl.x: Regenerated
25977 * fixinc/tests/base/math.h: Added sco_math tests.
25978 * fixinc/tests/base/string.h: New file.
25979 * fixinc/tests/base/sys/regset.h: New file.
25980
259812003-04-19 Neil Booth <neil@daikokuya.co.uk>
25982
25983 * cpphash.h (struct cpp_buffer): Remove backup_to.
25984 * cpplex.c (BACKUP, get_effective_char): Die.
25985 (_cpp_skip_block_comment): Assume '*' is location on entry.
25986 (continues_identifier_p): Respect -fno-dollars-in-identifiers.
25987 (IF_NEXT_IS): Update.
25988 (_cpp_lex_direct): Don't use backup_to; look ahead directly.
25989
259902003-04-19 Matt Kraai <kraai@alumni.cmu.edu>
25991
25992 * README.Portability: Move to a new section and obsolete K+R
25993 portability issues.
25994
25995Sat Apr 19 14:56:17 CEST 2003 Jan Hubicka <jh@suse.cz>
25996
25997 * rtlanal.c (subreg_offset_representable_p): Fix call of
25998 subreg_lowpart.
25999
260002003-04-19 Neil Booth <neil@daikokuya.co.uk>
26001
26002 * cpphash.h (struct cpp_reader): New member warned_dollar.
26003 * cpplex.c (continues_identifier_p): New function.
26004 (parse_identifier, parse_number, parse_string): Rename lex_identifer,
26005 lex_number and lex_string, and simplify.
26006 (parse_slow, unescaped_terminator_p): Die.
26007 (_cpp_lex_direct): Update.
26008
260092003-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26010
26011 * calls.c (expand_call): Provide init for old_stack_pointer_delta.
26012
260132003-04-19 Nathan Sidwell <nathan@codesourcery.com>
26014
26015 * doc/invoke.texi (-fprofile-arcs): Mention -lgcov, locking and
26016 fork behavior.
26017
260182003-04-19 Neil Booth <neil@daikokuya.co.uk>
26019
26020 * cppexp.c (eval_token): Permit true and false even if pedantic.
26021
260222003-04-19 Neil Booth <neil@daikokuya.co.uk>
26023
26024 * cpplex.c (skip_whitespace): Rearrange to avoid stage1 ICE.
26025
260262003-04-19 Neil Booth <neil@daikokuya.co.uk>
26027
26028 * cppfiles.c (ENABLE_VALGRIND_CHECKING, VALGRIND_DISCARD,
26029 MMAP_THRESHOLD, TEST_THRESHOLD, SHOULD_MMAP): Remove.
26030 (struct include_file): Remove fefcnt, mapped members.
26031 (open_file, stack_include_file, _cpp_pop_file_buffer): Disable caching.
26032 (read_include_file): Don't use mmap, terminate buffers in '\r'.
26033 (purge_cache): Don't use munmap.
26034 * cpphash.h (CPP_BUF_COLUMN): Update.
26035 (lexer_state): Remove lexing_comment.
26036 (struct _cpp_line_note): New.
26037 (struct cpp_buffer): New members cur_note, notes_used, notes_cap,
26038 next_line and need_line. Remove col_adjust and saved_flags.
26039 (_cpp_process_line_notes, _cpp_clean_line, _cpp_get_fresh_line,
26040 _cpp_skip_block_comment, scan_out_logical_line): New.
26041 (_cpp_init_mbchar): Remove.
26042 * cppinit.c (init_library): Remove call to _cpp_init_mbchar.
26043 (cpp_read_main_file): Set line to 1 earlier.
26044 (post_options): -traditional-cpp doesn't want trigraphs.
26045 * cpplex.c (MULTIBYTE_CHARS): Remove code predicated on this.
26046 (add_line_note, _cpp_clean_line, _cpp_process_line_notes,
26047 _cpp_get_fresh_line): New.
26048 (handle_newline, skip_escaped_newlines, trigraph_p,
26049 continue_after_nul, _cpp_init_mbchar): Remove.
26050 (get_effective_char): Update.
26051 (_cpp_skip_block_comment): Rename from skip_block_comment, simplify.
26052 (skip_line_comment): Simplify.
26053 (skip_whitespace, parse_identifier, parse_slow, parse_number,
26054 parse_string): Update.
26055 (cpp_lex_direct): Use clean lines and process line notes. Update.
26056 (cpp_interpret_charconst): No MULTIBYTE_CHARS.
26057 * cpplib.c (prepare_directive_trad): Call scan_out_logical_line
26058 directly.
26059 (_cpp_handle_directive): Don't set saved_flags.
26060 (run_directive, destringize_and_run, cpp_define, cpp_define_builtin,
26061 cpp_undef, handle_assertion, cpp_push_buffer): Update.
26062 (_cpp_pop_buffer): Free notes.
26063 * cppmacro.c (builtin_macro, paste_tokens): \n terminate buffer.
26064 * cpppch.c (cpp_read_state): \n terminate buffer.
26065 * cpptrad.c (skip_escaped_newlines, handle_newline): Remove.
26066 (copy_comment): Use _cpp_skip_block_comment.
26067 (skip_whitespace, lex_identifier, _cpp_read_logical_line_trad):
26068 Simplify.
26069 (_cpp_overlay_buffer, _cpp_remove_overlay, push_replacement_text,
26070 save_replacement_text): Update.
26071 (scan_out_logical_line): Update to use clean lines and process
26072 line notes.
26073 * fix-header.c (read_scan_file): Update.
26074
260752003-04-18 Douglas B Rupp <rupp@gnat.com>
26076
26077 * unwind-dw2-fde.c (__register_frame_info_bases): Check for
26078 null begin parameter (as well as pointer to null).
26079 (__deregister_frame_info_bases): Likewise.
26080
260812003-04-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26082
26083 * function.c (purge_addressof_1): For ADDRESSOF, see if SUB is a
26084 hard or virtual register and copy into pseudo if replacement fails.
26085
26086 * cfgcleanup.c (flow_find_cross_jump): Use INSN_P, not active_insn_p.
26087
26088 * expmed.c (mask_rtx): Avoid undefined shifts for BITSIZE of 0.
26089
260902003-04-18 Olivier Hainque <hainque@act-europe.fr>
26091
26092 * calls.c (expand_call): Move special case for constructor calls
26093 to right place. Ensures constructor calls used to initialize
26094 arguments get a clean outgoing argument block for themselves.
26095 Move check for stack deallocation completeness until after last
26096 deallocation. Add stack_pointer_delta to set of state
26097 variables saved and restored along with current stack_level.
26098
26099 * integrate.c (expand_inline_function): Ensure non-const actuals
26100 don't end up const in the caller's flow after conversion to possibly
26101 const formal type.
26102
261032003-04-18 Vincent Celier <celier@gnat.com>
26104
26105 * dwarf2out.c (loc_descriptor_from_tree): Treat all *_MOD_EXPR
26106 and *_DIV_EXPR as TRUNC_*_EXPR.
26107
261082003-04-18 Mark Mitchell <mark@codesourcery.com>
26109
26110 * cfgrtl.c (try_redirect_by_replacing_jump): Create a basic block
26111 for orphaned jump tables.
26112
261132003-04-18 Kazu Hirata <kazu@cs.umass.edu>
26114
26115 * reload1.c: Revert my previous patch on 2002-04-17.
26116
261172003-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
26118
26119 * doc/contrib.texi (Contributors): Prefer "bug fix" over "bugfix".
26120 Add Segher Boessenkool.
26121
261222003-04-18 Alexander Sotirov <sluncho@mirizma.org>
26123
26124 PR c/9177
26125 * c-decl.c (c_expand_body): Don't garbage collect the function
26126 body if we are going to dump it later.
26127
261282003-04-18 Richard Henderson <rth@redhat.com>
26129
26130 * config/alpha/alpha.c (SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP): Remove.
26131 (alpha_end_function): Don't set them.
26132 (decl_in_text_section): Remove.
26133 (alpha_encode_section_info): Remove.
26134 (samegp_function_operand): Use SYMBOL_REF LOCAL_P and EXTERNAL_P.
26135 (direct_call_operand): Use SYMBOL_REF_DECL and compare actual
26136 sections, rather than decl_in_text_section results.
26137
261382003-04-18 Roger Sayle <roger@eyesopen.com>
26139
26140 * rtlanal.c (reg_overlap_mentioned_p): Handle ZERO_EXTRACT
26141 and SIGN_EXTRACT.
26142
261432003-04-18 Eric Botcazou <ebotcazou@libertysurf.fr>
26144
26145 PR optimization/7675
26146 * c-typeck.c (build_external_ref): Set the DECL_NONLOCAL flag
26147 on VAR_DECL, PARM_DECL and FUNCTION_DECL from within
26148 nested functions if they refer to declarations from parent functions.
26149 * stmt.c (expand_decl): Don't put automatic variables in registers
26150 if the DECL_NONLOCAL flag is set.
26151
261522003-04-18 Hans-Peter Nilsson <hp@bitrange.com>
26153
26154 * gcse.c (compute_ld_motion_mems): For MEM destinations, only
26155 consider those to be movable where the source matches
26156 want_to_gcse_p.
26157 (update_ld_motion_stores): In comment, refer to
26158 compute_ld_motion_mems for validity of replacement.
26159
26160Fri Apr 18 01:28:51 CEST 2003 Jan Hubicka <jh@suse.cz>
26161
26162 * gcov-dump.c (tag_summary): Remove max_sum
26163 * gcov-io.h (gcov_summary, gcov_write_summary,
26164 gcov_read_summary): Kill max_sum.
26165 * libgcov.c (gcov_exit): Do one pass over the data. Make error
26166 message more verbose.
26167
26168 * emit-rtl.c (subreg_hard_regno): Check that register is
26169 representable.
26170
26171 * reload.c (reload_inner_reg_of_subreg): When register is not
26172 representable, reload the whole thing.
26173 (find_reloads): Likewsie.
26174 * rtlanal.c (subreg_representable_p): New function.
26175
26176 * profile.c (compute_branch_probabilities): Cleanup sanity checking;
26177 allow negative probabilities for edges from the call to exit.
26178 (branch_prob): Do not add fake edges for functions that may return
26179 twice.
26180
261812003-04-17 DJ Delorie <dj@redhat.com>
26182
26183 * toplev.c (target_options): Add value field.
26184 (set_target_switch): Handle target options with values.
26185 * doc/tm.texi: Document how fixed vs variable target
26186 options work.
26187 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
26188 config/c4x/c4x.h, config/cris/aout.h, config/cris/cris.h,
26189 config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
26190 config/frv/frv.h, config/i386/i386.h, config/ia64/ia64.h,
26191 config/m32r/m32r.h, config/m68hc11/m68hc11.h,
26192 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
26193 config/mips/mips.h, config/mmix/mmix.h, config/pa/pa.h,
26194 config/rs6000/rs6000.h, config/rs6000/sysv4.h,
26195 config/s390/s390.h, config/sparc/sparc.h, config/v850/v850.h:
26196 Add value initializer to target options.
26197
261982003-04-07 Loren James Rittle <ljrittle@acm.org>
26199
26200 * cpppch.c (cpp_valid_state): Unconditionally initialize nl.
26201
262022003-04-17 Kazu Hirata <kazu@cs.umass.edu>
26203
26204 * reload1.c (move2add_last_cc0): New.
26205 (reload_cse_move2add): Detect implicit sets.
26206 (move2add_note_store): Notice a store into cc0.
26207
262082003-04-17 Roger Sayle <roger@eyesopen.com>
26209
26210 PR c/10375
26211 * c-decl.c (duplicate_decls): Preserve "const" and "noreturn"
26212 function attributes.
26213
262142003-04-17 Janis Johnson <janis187@us.ibm.com>
26215
26216 * doc/sourcebuild.texi (Test Suites): Document support for testing
26217 binary compatibility (moved from testsuite/README.compat).
26218
262192003-04-17 Richard Henderson <rth@redhat.com>
26220
26221 * config/ia64/ia64.c (ia64_in_small_data_p): Disallow strings.
26222
262232003-04-17 Simon Law <sfllaw@engmail.uwaterloo.ca>
26224
26225 * doc/include/gpl.texi: Fix double-spacing after "MA" to match
26226 the one provided by the FSF.
26227
262282003-04-17 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
26229
26230 * doc/install.texi (Binaries): Update URL and list of platforms
26231 provided by ftp.thewrittenword.com.
26232
262332003-04-17 Richard Henderson <rth@redhat.com>
26234
26235 * config/xtensa/xtensa.c (xtensa_encode_section_info): Remove.
26236 (call_insn_operand): Use SYMBOL_REF_LOCAL_P.
26237 * config/xtensa/xtensa.md (call, call_value): Likewise.
26238
262392003-04-17 Richard Henderson <rth@redhat.com>
26240
26241 * config/v850/v850.c (print_operand): Use SYMBOL_REF_[ZST]DA.
26242 (print_operand_address): Likewise.
26243 (ep_memory_operand): Likewise.
26244 (special_symbolref_operand): Likewise.
26245 (v850_encode_data_area): Use SYMBOL_REF_FLAGS.
26246 (v850_encode_section_info): Call default_encode_section_info.
26247 (v850_strip_name_encoding): Remove.
26248 * config/v850/v850.h (EXTRA_CONSTRAINT): Use SYMBOL_REF_[ZST]DA.
26249 (ASM_OUTPUT_LABELREF): Remove.
26250 (ZDA_NAME_FLAG_CHAR, ZDA_NAME_P): Remove.
26251 (SDA_NAME_FLAG_CHAR, SDA_NAME_P): Remove.
26252 (TDA_NAME_FLAG_CHAR, TDA_NAME_P): Remove.
26253 (ENCODED_NAME_P): Remove.
26254 (SYMBOL_FLAG_ZDA, SYMBOL_REF_ZDA_P): New.
26255 (SYMBOL_FLAG_SDA, SYMBOL_REF_SDA_P): New.
26256 (SYMBOL_FLAG_TDA, SYMBOL_REF_TDA_P): New.
26257
262582003-04-17 Richard Henderson <rth@redhat.com>
26259
26260 * config/stormy16/stormy16.c (xstormy16_encode_section_info): Kill.
26261 * config/stormy16/stormy16.h (ASM_OUTPUT_SYMBOL_REF): Use
26262 SYMBOL_REF_FUNCTION_P.
26263
262642003-04-17 Richard Henderson <rth@redhat.com>
26265
26266 * config/sparc/sparc.c (sparc_encode_section_info): Remove.
26267 (data_segment_operand): Use SYMBOL_REF_FUNCTION_P.
26268 (text_segment_operand): Likewise.
26269
262702003-04-17 Richard Henderson <rth@redhat.com>
26271
26272 * config/sh/sh.c (gen_datalabel_ref): Don't add SH_DATALABEL_ENCODING.
26273 (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
26274 (legitimize_pic_address): Use SYMBOL_REF_LOCAL_P.
26275 (sh_encode_section_info): Remove.
26276 (sh_strip_name_encoding): Remove.
26277 * config/sh/sh.h (SH_DATALABEL_ENCODING): Remove.
26278 (DATALABEL_SYMNAME_P, STRIP_DATALABEL_ENCODING): Remove.
26279 (SH_TLS_ENCODING, TLS_SYMNAME_P, STRIP_TLS_ENCODING): Remove.
26280 (ASM_OUTPUT_LABELREF): Remove.
26281 (ASM_OUTPUT_SYMBOL_REF): Use SYMBOL_REF_FUNCTION_P.
26282 * config/sh/sh.md (*): Use SYMBOL_REF_LOCAL_P.
26283
262842003-04-17 Richard Henderson <rth@redhat.com>
26285
26286 * config/s390/s390.c (SYMBOL_FLAG_ALIGN1): New.
26287 (tls_model_chars): Remove.
26288 (larl_operand): Use SYMBOL_REF_FLAGS.
26289 (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
26290 (legitimize_pic_address): Use SYMBOL_REF_LOCAL_P.
26291 (s390_output_mi_thunk): Likewise.
26292 (s390_emit_prologue): Set SYMBOL_FLAG_LOCAL as needed.
26293 (s390_function_profiler): Likewise.
26294 (s390_encode_section_info): Use default_encode_section_info
26295 and SYMBOL_FLAG_ALIGN1.
26296 (s390_strip_name_encoding): Remove.
26297 * config/s390/s390.h (ASM_OUTPUT_LABELREF): Remove.
26298 * config/s390/s390.md (call, call_value): Use SYMBOL_REF_LOCAL_P.
26299 (builtin_setjmp_receiver): Set SYMBOL_FLAG_LOCAL as needed.
26300
263012003-04-17 Richard Henderson <rth@redhat.com>
26302
26303 * config/ns32k/ns32k.c (ns32k_encode_section_info): Remove.
26304 (global_symbolic_reference_mentioned_p): Use SYMBOL_REF_LOCAL_P.
26305 (print_operand_address): Likewise.
26306
26307 * config/ns32k/ns32k.h (CANNOT_CHANGE_MODE_CLASS): Add CLASS argument.
26308 * config/ns32k/ns32k.c (expand_block_move): Don't check
26309 flag_unroll_loops.
26310
263112003-04-17 Richard Henderson <rth@redhat.com>
26312
26313 * config/mcore/mcore.c (mcore_encode_section_info): Don't set
26314 SYMBOL_REF_FLAG.
26315
263162003-04-17 Richard Henderson <rth@redhat.com>
26317
26318 * rtl.h (SYMBOL_FLAG_MACH_DEP_SHIFT): New.
26319
26320 * config/m32r/m32r.c (SYMBOL_FLAG_MODEL_SHIFT): New.
26321 (SYMBOL_REF_MODEL): New.
26322 (LIT_NAME_P): Move from m32r.h.
26323 (m32r_select_section): Remove.
26324 (m32r_encode_section_info): Use SYMBOL_REF_FLAGS.
26325 (m32r_strip_name_encoding): Remove.
26326 (m32r_in_small_data_p): New.
26327 (small_data_operand): Use SYMBOL_REF_SMALL_P.
26328 (addr24_operand): Use SYMBOL_REF_MODEL.
26329 (call26_operand): Likewise.
26330 (addr32_operand): Tidy.
26331 (m32r_print_operand): Use HOST_WIDE_INT_PRINT_HEX.
26332 * config/m32r/m32r.h (RODATA_SECTION_ASM_OP): Remove.
26333 (SDATA_SECTION_ASM_OP, SBSS_SECTION_ASM_OP): Remove.
26334 (READONLY_DATA_SECTION_ASM_OP): Remove.
26335 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
26336 (SDATA_SECTION_FUNCTION, SBSS_SECTION_FUNCTION): Remove.
26337 (TARGET_ASM_SELECT_SECTION): Remove.
26338 (SDATA_FLAG_CHAR, MEDIUM_FLAG_CHAR, LARGE_FLAG_CHAR): Remove.
26339 (SDATA_NAME_P, SMALL_NAME_P, MEDIUM_NAME_P): Remove.
26340 (LARGE_NAME_P, ENCODED_NAME_P): Remove.
26341 (ASM_OUTPUT_LABELREF): Remove.
26342
263432003-04-17 Richard Henderson <rth@redhat.com>
26344
26345 * config/ip2k/ip2k.c (is_regfile_address): Use SYMBOL_REF_FUNCTION_P.
26346 (encode_section_info): Remove.
26347 * config/ip2k/ip2k-protos.h: Update.
26348
263492003-04-17 Richard Henderson <rth@redhat.com>
26350
26351 * varasm.c (default_encode_section_info): Don't set
26352 SYMBOL_FLAG_EXTERNAL if not TREE_PUBLIC.
26353 * config/i370/i370.c (i370_encode_section_info): Remove.
26354 * config/i370/i370.h (CONSTANT_ADDRESS_P): Use SYMBOL_REF_EXTERNAL_P.
26355 (PRINT_OPERAND, PRINT_OPERAND_ADDRESS): Likewise.
26356 * config/i370/i370.md (movsi): Likewise.
26357
26358 * config/i370/t-i370: Add missing backslash.
26359
263602003-04-17 Eric Botcazou <ebotcazou@libertysurf.fr>
26361
26362 * doc/invoke.texi (inline-limit): Fix pasto.
26363
263642003-04-17 Richard Henderson <rth@redhat.com>
26365
26366 * config/h8300/h8300.c (SYMBOL_FLAG_FUNCVEC_FUNCTION): New.
26367 (small_call_insn_operand): Use it.
26368 (SYMBOL_FLAG_EIGHTBIT_DATA): New.
26369 (h8300_eightbit_constant_address_p): Use it.
26370 (SYMBOL_FLAG_TINY_DATA): New.
26371 (h8300_tiny_constant_address_p): Use it.
26372 (h8300_encode_label, h8300_strip_name_encoding): Remove.
26373 (h8300_encode_section_info): Set SYMBOL_REF_FLAGS.
26374 * config/h8300/h8300.h (TINY_DATA_NAME_P): Remove.
26375 (ASM_OUTPUT_LABELREF): Remove.
26376
263772003-04-16 Richard Henderson <rth@redhat.com>
26378
26379 * config/frv/frv.c (symbol_ref_small_data_p): Remove. Replace
26380 all users with SYMBOL_REF_SMALL_P.
26381 (const_small_data_p): Use SYMBOL_REF_SMALL_P.
26382 (frv_encode_section_info): Remove.
26383 (frv_strip_name_encoding): Remove.
26384 (frv_in_small_data_p): Merge tests from encode_section_info.
26385 (frv_print_operand): Use '@' not SDATA_FLAG_CHAR.
26386 * config/frv/frv.h (SDATA_FLAG_CHAR): Remove.
26387 (SDATA_NAME_P): Remove.
26388 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use SIZE not SDATA_NAME_P.
26389 (ASM_OUTPUT_LABELREF): Remove.
26390 (PRINT_OPERAND_PUNCT_VALID_P): Use '@' not SDATA_FLAG_CHAR.
26391
26392 * config/frv/frv.c (frv_asm_out_constructor): New.
26393 (frv_asm_out_destructor): New.
26394 * config/frv/frv.h (CTORS_SECTION_ASM_OP): New.
26395 (DTORS_SECTION_ASM_OP): New.
26396 (ASM_OUTPUT_CONSTRUCTOR): Remove.
26397 (ASM_OUTPUT_DESTRUCTOR): Remove.
26398
263992003-04-16 Richard Henderson <rth@redhat.com>
26400
26401 * config/cris/cris.c (cris_gotless_symbol, cris_got_symbol): Use
26402 SYMBOL_REF_LOCAL_P; abort if not pic.
26403 (cris_encode_section_info): Remove.
26404
264052003-04-16 Richard Henderson <rth@redhat.com>
26406
26407 * config/c4x/c4x.c (c4x_encode_section_info): Remove.
26408 (c4x_T_constraint): Use SYMBOL_REF_FUNCTION_P.
26409
26410 * config/c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): Declare
26411 flag_inline_trees.
26412
264132003-04-16 Richard Henderson <rth@redhat.com>
26414
26415 * config/avr/avr.c (avr_encode_section_info): Remove.
26416 (avr_insert_attributes): New.
26417 (print_operand_address): Use SYMBOL_REF_FUNCTION_P.
26418 (avr_assemble_integer): Likewise.
26419
264202003-04-16 Richard Henderson <rth@redhat.com>
26421
26422 * arc.c (arc_encode_section_info): Remove.
26423 (arc_assemble_integer): Use SYMBOL_REF_FUNCTION_P.
26424 (arc_print_operand, arc_print_operand_address): Likewise.
26425 * arc.h (EXTRA_CONSTRAINT): Likewise.
26426
264272003-04-16 Roger Sayle <roger@eyesopen.com>
26428
26429 * c-semantics.c (find_reachable_label): New function to find a
26430 potentially reachable label in an expression.
26431 (expand_unreachable_if_stmt): Similar to expand_if_stmt but
26432 assumes the start of the IF_STMT is unreachable (dead) code.
26433 (expand_unreachable_stmt): Similar to expand_stmt but assumes
26434 the start of the statement list is unreachable (dead) code.
26435 (genrtl_if_stmt): If the controlling expression of the IF
26436 is constant, use expand_unreachable_stmt for the THEN or ELSE
26437 clause as appropriate.
26438 (genrtl_switch_stmt): Use expand_unreachable_stmt to expand
26439 the body of a SWITCH statement.
26440 (expand_stmt): The code immediately following a "return",
26441 "break", "continue" or "goto" is unreachable.
26442 * Makefile.in (c-semantics.o): Depend upon tree-inline.h.
26443
264442003-04-16 Richard Henderson <rth@redhat.com>
26445
26446 * rtl.h (MEM_ALIAS_SET): Update documentation.
26447 * doc/rtl.texi (Special Accessors): New node.
26448 (SYMBOL_REF_FLAG): Note relationship with SYMBOL_REF_FLAGS.
26449
264502003-04-16 Alexandre Oliva <aoliva@redhat.com>
26451
26452 * reload1.c (reload_cse_noop_set_p): Return false if mode of
26453 SET_DEST is not the same as that returned by...
26454 * cselib.h (cselib_reg_set_mode): ... new function.
26455 * cselib.c (cselib_reg_set_mode): Define it.
26456 (REG_VALUES): Document semantics of first element as set mode.
26457 (cselib_subst_to_values): Skip first element if ELT is NULL.
26458 (cselib_lookup): Likewise. Insert past the first element.
26459 (cselib_invalidate_regno): NULLify first element.
26460 (cselib_record_set): Set first element.
26461
264622003-04-16 Olivier Hainque <hainque@act-europe.fr>
26463
26464 * tree.c (skip_simple_arithmetics_at, saved_expr_p): New functions.
26465 (save_expr): Replace loop by call to skip_simple_arithmetics_at.
26466 * tree.h: Add prototypes for the two new functions.
26467 * fold-const.c (fold_binary_op_with_conditional_arg): Replace test
26468 updates introduced in the previous revision by call to saved_expr_p.
26469 * stor-layout.c (put_pending_size): Use skip_simple_arithmetics_at.
26470
26471 * expr.c (store_field): Force usage of bitfield instructions when
26472 the field position requires it, whatever SLOW_UNALIGNED_ACCESS.
26473 (expand_expr, case BIT_FIELD_REF): likewise.
26474
264752003-04-16 Mark Mitchell <mark@codesourcery.com>
26476
26477 PR middle-end/8866
26478 * cfgtrl.c (try_redirect_by_replacing_jump): Do not delete
26479 jumptables.
26480
264812003-04-16 Richard Henderson <rth@redhat.com>
26482
26483 * config/ia64/ia64.c (sdata_symbolic_operand): Use
26484 SYMBOL_REF_SMALL_P and SYMBOL_REF_LOCAL_P.
26485 (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
26486 (function_operand): Use SYMBOL_REF_FUNCTION_P.
26487 (ia64_expand_load_address): Likewise.
26488 (ia64_assemble_integer): Likewise.
26489 (ia64_encode_section_info): Remove.
26490 (ia64_strip_name_encoding): Remove.
26491 * config/ia64/ia64.h (ENCODE_SECTION_INFO_CHAR): Remove.
26492 * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't strip it.
26493
264942003-04-16 Richard Henderson <rth@redhat.com>
26495
26496 * config/alpha/alpha.c (SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP): New.
26497 (samegp_function_operand): Use SYMBOL_FLAG_SAMEGP.
26498 (direct_call_operand): Use SYMBOL_FLAG_NEAR.
26499 (local_symbolic_operand): Use SYMBOL_REF_LOCAL_P.
26500 (small_symbolic_operand): Use SYMBOL_REF_SMALL_P.
26501 (global_symbolic_operand): Similarly.
26502 (tls_symbolic_operand_1): Use SYMBOL_REF_TLS_MODEL.
26503 (tls_symbolic_operand_type): Likewise.
26504 (alpha_encode_section_info): Use default_encode_section_info.
26505 (alpha_strip_name_encoding): Remove.
26506 (get_tls_get_addr): Split out from ...
26507 (alpha_legitimize_address): ... here.
26508 (alpha_emit_xfloating_libcall): Use init_one_libfunc.
26509 (get_some_local_dynamic_name_1): Use SYMBOL_REF_TLS_MODEL.
26510 (alpha_initialize_trampoline): Use init_one_libfunc.
26511 (alpha_setup_incoming_varargs): Mark unused parameters.
26512 (alpha_initial_elimination_offset): Likewise.
26513 (alpha_end_function): Use SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP.
26514 (unicosmk_unique_section): Use default_strip_name_encoding.
26515 (unicosmk_ssib_name, unicosmk_output_externs): Likewise.
26516
265172003-04-16 Aldy Hernandez <aldyh@redhat.com>
26518
26519 * config.gcc: Add t-spe for eabispe.
26520
26521 * config/rs6000/t-spe: New.
26522
265232003-04-16 J"orn Rennecke <joern.rennecke@superh.com>
26524
26525 Re-apply this patch:
26526
26527 2002-05-16 Dale Johannesen <dalej@apple.com>
26528 * combine.c (cant_combine_insn_p): Reenable combinations
26529 involving hard regs unless CLASS_LIKELY_SPILLED_P.
26530
265312003-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
26532
26533 PR/10271
26534 * pa-protos.h (function_arg): Remove last argument.
26535 * pa.c (function_arg): Likewise. Use CUMULATIVE_ARGS struct instead.
26536 * pa.h (struct hppa_args): Add member incoming.
26537 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Initialize
26538 member incoming.
26539 (FUNCTION_ARG): Revise call to function_arg.
26540 (FUNCTION_INCOMING_ARG): Delete.
26541
265422003-04-15 Zack Weinberg <zack@codesourcery.com>
26543
26544 * configure.in: Unify the code which creates symlinks to a
26545 just-built as, ld, objdump, and nm with the code that detects
26546 their presence for purposes of feature tests.
26547 * configure: Regenerate.
26548
265492003-04-15 Zack Weinberg <zack@codesourcery.com>
26550
26551 * varasm.c (output_constant_def): Do not consult
26552 CONSTANT_AFTER_FUNCTION_P. Remove all code predicated on it.
26553 (after_function_constants, output_after_function_constants): Delete.
26554 * doc/tm.texi: Delete documentation of CONSTANT_AFTER_FUNCTION_P.
26555 * config/mips/mips-protos.h, config/mips/mips.c
26556 (mips16_constant_after_function_p): Delete.
26557 * config/mips/mips.h: Delete #if-0-ed definition of
26558 CONSTANT_AFTER_FUNCTION_P.
26559 * config/d30v/d30v.h, config/stormy16/stormy16.h: Remove
26560 mention of CONSTANT_AFTER_FUNCTION_P in comment.
26561
265622003-04-15 Geoffrey Keating <geoffk@apple.com>
26563
26564 * tree.c (next_decl_uid): Mark with GTY.
26565 (next_type_uid): Likewise.
26566
265672003-04-15 J"orn Rennecke <joern.rennecke@superh.com>
26568
26569 PR target/9594:
26570 * sh.c (barrier_align): Also recognize stuff_delay_slot as
26571 an indicator that a barrier was created by branch splitting.
26572
265732003-04-15 Mark Mitchell <mark@codesourcery.com>
26574
26575 * c-decl.c (implicitly_declare): Copy declarations that are going
26576 to be placed in a local scope.
26577
265782003-04-15 James A. Morrison <ja2morri@uwaterloo.ca>
26579
26580 * invoke.texi (Spec Files): Wrap if-exists-else example.
26581 (MCore): Remove duplicate @itemx entries and @opindex entries.
26582
265832003-04-15 Ulrich Weigand <uweigand@de.ibm.com>
26584
26585 * unwind.inc (_Unwind_Backtrace): New function.
26586 * unwind.h (_Unwind_Backtrace): Declare it.
26587 * libgcc-std.ver (_Unwind_Backtrace): Export it.
26588
265892003-04-14 Jason Merrill <jason@redhat.com>
26590
26591 PR middle-end/10336, c++/10401
26592 * jump.c (never_reached_warning): Also stop looking if we reach the
26593 beginning of the function.
26594
265952003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
26596
26597 PR target/10338
26598 PR bootstrap/10198
26599 PR bootstrap/10140
26600 * fixinc/gnu-regex.c (regerror): Use mempcpy not __mempcpy.
26601
266022003-04-15 J"orn Rennecke <joern.rennecke@superh.com>
26603
26604 * i386.md (abssf2_if+1): Make condition agree with abssf2_1 .
26605
266062003-04-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26607
26608 * optabs.c (expand_binop): In multi-word add cases, ensure
26609 XTARGET is copied to TARGET if they are different.
26610
266112003-04-15 Olivier Hainque <hainque@act-europe.fr>
26612
26613 * except.c (resolve_fixup_regions): Avoid dereferencing null pointer
26614 to region, possible after integration of function with unreachable
26615 regions that were optimized away.
26616
266172003-04-15 Jakub Jelinek <jakub@redhat.com>
26618
26619 * config/rs6000/rs6000.h (EPILOGUE_USES): Use register 2,
26620 instead of TOC_REGISTER in epilogue in
26621 current_function_calls_eh_return functions.
26622
266232003-04-14 Mark Mitchell <mark@codesourcery.com>
26624
26625 * doc/extend.texi (Empty Structures): Correct description of G++'s
26626 handling of these structures.
26627
26628 * c-decl.c (grokdeclarator): Reject extern redeclarations of
26629 static variables.
26630
266312003-04-14 Janis Johnson <janis287@us.ibm.com>
26632
26633 * config/rs6000/rs6000.md (define_constants): Define constants for
26634 all UNSPEC usage, including new values for TLS support.
26635 (aux_truncdfsf2, fctiwz, movsi_got, movsi_got_internal,
26636 load_toc_aix_si, load_toc_aix_di, load_toc_v4_pic_si,
26637 load_toc_v4_PIC_1, load_toc_v4_PIC_1b, load_macho_picbase,
26638 macho_correct_pic, blockage, move_from_CR_ov_bit, movesi_from_cr,
26639 stack_tie, movsi_to_cr_one, movsi_to_cr, mtcrfsi, eh_set_lr_si,
26640 eh_set_lr_di): Use them.
26641 * rs6000.c: (mtcrf_operation, uses_TOC, rs6000_emit_prologue,
26642 rs6000_emit_epilogue) Use them.
26643
26644 * rtl.h (SYMBOL_REF_TLS_MODEL): Fix mask value.
26645
266462003-04-14 Neil Booth <neil@daikokuya.co.uk>
26647
26648 * Makefile.in (c-opts.o): Use custom action.
26649
266502003-04-14 Douglas B Rupp <rupp@gnat.com>
26651
26652 * ifcvt.c (noce_process_if_block): Fail on BLKmode move.
26653
266542003-04-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26655
26656 * stor-layout.c (layout_type, case ARRAY_TYPE): Add missing code to
26657 handle "superflat arrays" in Ada.
26658
26659 * integrate.c (expand_inline_function): Don't inline if would
26660 lose /u on a BLKmode TARGET.
26661
266622003-04-14 Joel Brobecker <brobecker@gnat.com>
26663
26664 * dbxout.c (print_int_cst_bounds_in_octal_p): New function,
26665 extracted from dbxout_type.
26666 (dbxout_range_type): print large bounds in octal format.
26667 (dbxout_type): Replace extracted code by call to
26668 print_int_cst_bounds_in_octal_p.
26669
26670 * dwarf2out.c (gen_compile_unit_die): Emit DW_LANG_Ada95 instead
26671 of DW_LANG_Ada83 for Ada units.
26672
266732003-04-14 Olivier Hainque <hainque@act-europe.fr>
26674
26675 * explow.c (round_push): Use HOST_WIDE_INT instead of int for the
26676 temporary used to round CONST_INT sizes.
26677
26678 * tree.c (int_fits_type_p): Extract generic checks from the case
26679 of constant type bounds. Refine the checks against constant type
26680 bounds to allow for possible decisions against each of these bounds
26681 without requiring both bounds to be constant.
26682 (tree_int_cst_msb): Put back.
26683 * tree.h (tree_int_cst_msb): Likewise.
26684
26685 * global.c (global_conflicts): Prevent allocation of call clobbered
26686 hard regs to pseudos live across abnormal edges, as later passes are
26687 not ready to handle them.
26688
26689 * fold-const.c (fold): Reorder tests for conditional expressions.
26690
26691 * expr.c (highest_pow2_factor): Return unsigned.
26692 * expr.h (offset_address): Likewise.
26693 * emit-rtl.c (offset_address): POW2 argument now unsigned.
26694
266952003-04-14 Roger Sayle <roger@eyesopen.com>
26696
26697 * builtins.c (expand_builtin_strlen): Evaluate the lengths of
26698 string literals at compile-time.
26699
267002003-04-14 Roger Sayle <roger@eyesopen.com>
26701
26702 * fold-const.c (fold): Transform (c1 - x) cmp c2, where cmp is a
26703 comparison operation and c1/c2 are floating point constants into
26704 x swap(cmp) (c1 - c2).
26705
267062003-04-14 Vladimir Makarov <vmakarov@redhat.com>
26707
26708 * genautomata.c (output_translate_vect): Fix a typo in loop
26709 condition.
26710
267112003-04-14 Hans-Peter Nilsson <hp@axis.com>
26712
26713 PR target/10377
26714 * config/cris/cris.md ("*mov_sideqi", "*mov_sidehi")
26715 ("*mov_sidesi", "*mov_sideqi_mem", "*mov_sidehi_mem")
26716 ("*mov_sidesi_mem", "*clear_sidesi", "*clear_sidehi")
26717 ("*clear_sideqi", "*ext_sideqihi", "*ext_sideqisi")
26718 ("*ext_sidehisi", "*op_sideqi", "*op_sidehi", "*op_sidesi")
26719 ("*op_swap_sideqi", "*op_swap_sidehi", "*op_swap_sidesi")
26720 ("*extopqihi_side", "*extopqisi_side", "*extophisi_side")
26721 ("*extopqihi_swap_side", "*extopqisi_swap_side")
26722 ("*extophisi_swap_side", 8th, 9th, 10th, 11th, 14th peepholes):
26723 When next to constraint R, replace constraint i with n.
26724
26725Mon Apr 14 16:18:37 CEST 2003 Jan Hubicka <jh@suse.cz>
26726
26727 PR opt/10024
26728 * cfgrtl.c (force_nonfallthru_and_redirect): Use unchecked_make_edge.
26729
267302003-04-14 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
26731
26732 * doc/contrib.texi (Contributors): Correct my entry.
26733
267342003-04-13 Roger Sayle <roger@eyesopen.com>
26735
26736 * tree.h (DECL_BUILT_IN_NONANSI): Remove.
26737 * c-common.c (builtin_function_2): Don't set DECL_BUILT_IN_NONANSI.
26738 * c-decl.c (duplicate_decls): Use invariant DECL_BUILT_IN_NONANSI
26739 implies DECL_BUILT_IN to simplify logic.
26740 * print-tree.c (print_node): Don't dump DECL_BUILT_IN_NONANSI.
26741
267422003-04-13 Roger Sayle <roger@eyesopen.com>
26743
26744 * builtin-types.def (BT_FN_STRING_CONST_STRING): New builtin type.
26745 (BT_FN_PTR_SIZE_SIZE): Likewise.
26746 * builtins.def (BUILT_IN_MALLOC, BUILT_IN_CALLOC, BUILT_IN_STRDUP):
26747 New built-in functions for malloc, calloc and strdup respectively.
26748 * calls.c (special_function_p): No need to handle malloc-like
26749 functions any longer. ECF_MALLOC is set via built-in attributes.
26750
26751 * c-decl.c (duplicate_decls): Preserve pure and malloc attributes.
26752
26753 * doc/extend.texi: Document these new built-in functions.
26754
267552003-04-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
26756
26757 * builtins.c (expand_builtin_memcpy): Add `endp' argument, use it.
26758 (expand_builtin_stpcpy): New.
26759 (expand_builtin): Add BUILT_IN_MEMPCPY & BUILT_IN_STPCPY.
26760 * builtins.def: Add mempcpy & stpcpy support.
26761 * doc/extend.texi (mempcpy, stpcpy): Document new builtins.
26762
267632003-04-13 Nick Clifton <nickc@redhat.com>
26764
26765 * config/rs6000/rs6000.c: Replace occurrences of "GNU CC" with
26766 "GCC".
26767 * config/rs6000/40x.md, config/rs6000/603.md,
26768 config/rs6000/6xx.md, config/rs6000/7450.md, config/rs6000/7xx.md,
26769 config/rs6000/8540.md, config/rs6000/aix.h, config/rs6000/aix31.h,
26770 config/rs6000/aix3newas.h, config/rs6000/aix41.h,
26771 config/rs6000/aix43.h, config/rs6000/aix51.h,
26772 config/rs6000/aix52.h, config/rs6000/altivec-defs.h,
26773 config/rs6000/altivec.h, config/rs6000/altivec.md,
26774 config/rs6000/beos.h, config/rs6000/darwin.h,
26775 config/rs6000/eabi.h, config/rs6000/eabialtivec.h,
26776 config/rs6000/eabisim.h, config/rs6000/eabispe.h,
26777 config/rs6000/freebsd.h, config/rs6000/gnu.h,
26778 config/rs6000/host-darwin.c, config/rs6000/linux.h,
26779 config/rs6000/linux64.h, config/rs6000/linuxaltivec.h,
26780 config/rs6000/lynx.h, config/rs6000/mach.h, config/rs6000/mpc.md,
26781 config/rs6000/netbsd.h, config/rs6000/power4.md,
26782 config/rs6000/rios1.md, config/rs6000/rios2.md,
26783 config/rs6000/rs6000-c.c, config/rs6000/rs6000-modes.def,
26784 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
26785 config/rs6000/rs6000.h, config/rs6000/rs6000.md,
26786 config/rs6000/rs64.md, config/rs6000/rtems.h, config/rs6000/spe.h,
26787 config/rs6000/spe.md, config/rs6000/sysv4.h,
26788 config/rs6000/sysv4le.h, config/rs6000/vxworks.h,
26789 config/rs6000/windiss.h, config/rs6000/xcoff.h: Likewise.
26790
267912003-04-13 Nick Clifton <nickc@redhat.com>
26792
26793 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Delete
26794 support for -mcall-aix switch.
26795 * config/rs6000/eabiaix.h: Delete.
26796 * config/rs6000/rs6000.h (rs6000_abi): Remove ABI_AIX_NODESC.
26797 (RS6000_REG_SAVE, RS6000_SAVE_AREA, FP_ARGS_MAX_REG,
26798 RETURN_ADDRESS_OFFSET): Remove use of ABI_AIX_NODESC.
26799 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Likewise.
26800 * config/rs6000/rs6000.c (print_operand, rs6000_stack_info,
26801 debug_stack_info, output_function_profiler,
26802 rs6000_trampoline_size, rs6000_initialise_trampoline): Likewise.
26803 * config/rs6000/rs6000.md (call, call_value, call_nonlocal_sysv,
26804 call_indirect_nonlocal_sysv, call_value_indirect_nonlocal_sysv,
26805 call_value_nonlocal_sysv, sibcall_value_nonlocal_sysv,
26806 sibcall_nonlocal_sysv, sibcall_value_local64): Likewise.
26807 * config/rs6000/t-ppcgas (MULTILIB_OPTIONS): Remove mcall-aix
26808 multilibs.
26809 (MULTILIB_DIRNAMES): Remove mcall-aix directories.
26810 (MULTILIB_EXCEPTIONS): Delete.
26811 (MULTILIB_MATCHES): Remove mcall-aix matches.
26812
26813 * doc/fragments.texi: Replace -mcall-aix example with an ARM
26814 one.
26815 * doc/install.texi: Delete powerpc-*-eabiaix target.
26816 * doc/invoke.texi: Remove documentation of mcall-aix switch.
26817 * doc/tm.texi: Remove mcall-aix from example CPP_SPEC.
26818 * config.gcc: Delete powerpc-*-eabiaix target.
26819
268202003-04-13 Kazu Hirata <kazu@cs.umass.edu>
26821
26822 * doc/invoke.texi: Fix typos.
26823 * doc/tm.texi: Likewise.
26824
268252003-04-12 Zack Weinberg <zack@codesourcery.com>
26826
26827 * c-typeck.c (digest_init, push_init_level): Use CONSTRUCTOR_ELTS.
26828
268292003-04-12 Zack Weinberg <zack@codesourcery.com>
26830
26831 * tree.c (build_constructor): New function.
26832 * tree.h: Prototype it.
26833
26834 * c-typeck.c (build_c_cast, pop_init_level)
26835 * profile.c (build_function_info_value, build_gcov_info_value)
26836 (create_profiler):
26837 Use build_constructor.
26838
26839 * builtins.c (expand_builtin_args_info): Remove #if 0 blocks.
26840
26841 * objc/objc-act.c (build_constructor):
26842 Rename objc_build_constructor. Use build_constructor.
26843 (build_objc_string_object, objc_add_static_instance)
26844 (init_def_list, init_objc_symtab, init_module_descriptor)
26845 (generate_static_references, build_selector_translation_table)
26846 (build_descriptor_table_initializer, generate_descriptor_table)
26847 (build_protocol_initializer, build_ivar_list_initializer)
26848 (generate_ivars_list, build_dispatch_table_initializer)
26849 (generate_dispatch_table, generate_protocol_list)
26850 (build_category_initializer, build_shared_structure_initializer):
26851 Update to match.
26852
268532003-04-12 Zack Weinberg <zack@codesourcery.com>
26854
26855 * intl.h: #define gcc_gettext_width to strlen when !ENABLE_NLS.
26856
268572003-04-12 Stephane Carrez <stcarrez@nerim.fr>
26858
26859 * config/m68hc11/m68hc11-protos.h
26860 (m68hc11_eq_compare_operator): Declare
26861 * config/m68hc11/m68hc11.h (PREDICATE_CODES): Register new predicate.
26862 * config/m68hc11/m68hc11.c (m68hc11_eq_compare_operator): New predicate
26863 (d_register_operand): Check the operand mode.
26864 (hard_addr_reg_operand): Likewise.
26865
268662003-04-12 Stephane Carrez <stcarrez@nerim.fr>
26867
26868 * config/m68hc11/m68hc11.md ("decrement_and_branch_until_zero"): New
26869 pattern for dbcc/ibcc generation for 68HC12.
26870 ("doloop_end"): New pattern.
26871 ("m68hc12_dbcc_dec_hi"): New pattern for dbeq/dbne.
26872 ("m68hc12_dbcc_inc_hi"): New pattern for ibeq/ibne.
26873 ("m68hc12_dbcc_dec_qi"): New pattern.
26874 ("m68hc12_dbcc_inc_qi"): New pattern.
26875 (split): Add split for the above when we can't use dbcc/ibcc due to
26876 reloading.
26877 (peephole2): Add peephole2 to generate the above when possible.
26878
268792003-04-12 Stephane Carrez <stcarrez@nerim.fr>
26880
26881 * config/m68hc11/m68hc11.md ("bitcmpqi" split): No need to test the
26882 mode of operand 0.
26883 (peephole2 optimize const load): Likewise for operand 2.
26884 ("*rotlhi3_with_carry"): Change pattern to a const 1 rotate which
26885 clobbers CC_REGNUM.
26886 ("*rotrhi3_with_carry"): Likewise.
26887 (ashift:DI 1 split): Update pattern to create the above rotate.
26888 (lshiftrt:DI 1 split): Likewise.
26889
268902003-04-12 Stephane Carrez <stcarrez@nerim.fr>
26891
26892 * config/m68hc11/m68hc11.md (SOFT_Z_REGNUM): New constant.
26893 ("tstqi_z_used" split): Use it.
26894 ("cmphi_z_used"): Likewise.
26895 ("bitcmpqi_z_used"): Likewise; also use SP_REGNUM constant.
26896 ("cmpqi_z_used"): Likewise.
26897
268982003-04-12 Mark Mitchell <mark@codesourcery.com>
26899
26900 PR c++/7910
26901 * config/i386/winnt.c (i386_pe_mark_dllimport): Fix thinko.
26902
269032003-04-12 Zack Weinberg <zack@codesourcery.com>
26904
26905 * configure.in: Check for wchar.h, mbstowcs, and wcswidth.
26906 * configure, config.in: Regenerate.
26907 * intl.c (gcc_gettext_width): New function.
26908 * intl.h: Prototype it.
26909
269102003-04-12 Stephane Carrez <stcarrez@nerim.fr>
26911
26912 * config/m68hc11/m68hc11.h (TARGET_SWITCHES): Fix -mnominmax option;
26913 recognize -mnorelax.
26914 (reg_class): Add Z_OR_S_REGS to represent soft registers with Z
26915 (REG_CLASS_NAMES): Add its name.
26916 (REG_CLASS_CONTENTS): Define its content.
26917
269182003-04-12 Stephane Carrez <stcarrez@nerim.fr>
26919
26920 * config/m68hc11/larith.asm (memcpy): Use ARG macro to access stack
26921 parameters so that offsets are valid for far definition.
26922 (__mulsi3): Likewise and use ret to return.
26923 (___adddi3, ___subdi3, ___notdi2, ): Don't use it to save the result.
26924
269252003-04-12 David Edelsohn <edelsohn@gnu.org>
26926
26927 * config/rs6000/rs6000.c (rs6000_hash_constant): Skip '0' fields.
26928
269292003-04-12 Alexandre Oliva <aoliva@redhat.com>
26930
26931 * mklibgcc.in (libgcc-stage-start): For every multilib directory
26932 containing a libgcc.a, move lib* to the corresponding stage dir.
26933
26934 * Makefile.in (stage1-start, stage2-start, stage3-start,
26935 stage4-start): Move $(SPECS) to specs in stage dir.
26936 (unstage1 unstage2 unstage3 unstage4): Move specs in stage dir
26937 back as $(SPECS).
26938
26939 * mklibgcc.in (libgcc-stage-start): Move into the stage directory
26940 object files from the non-libgcc/ multilib directories as well.
26941
269422003-04-11 Geoffrey Keating <geoffk@apple.com>
26943
26944 * profile.c (read_counts_file): Initialise 'checksum'.
26945
26946 * emit-rtl.c (gen_rtx): Really correct typo.
26947
26948 PR c++/9393
26949 * doc/invoke.texi (Debugging Options): Document -frandom-seed.
26950 * configure.in: Check for gettimeofday.
26951 * tree.c (flag_random_seed): Define.
26952 (default_flag_random_seed): New.
26953 (append_random_chars): Use flag_random_seed rather than trying
26954 to acquire randomness here.
26955 * tree.h (default_flag_random_seed): Declare.
26956 * toplev.c (display_help): Add -frandom-seed and -fstack-limit-*
26957 descriptions.
26958 (decode_f_option): Handle -frandom-seed.
26959 (print_switch_values): Call default_flag_random_seed.
26960 * flags.h (flag_random_seed): Declare.
26961 * configure: Regenerate.
26962 * config.in: Regenerate.
26963 * config/alpha/t-crtfm: Use -frandom-seed.
26964
26965 * doc/extend.texi (Empty Structures): New.
26966
26967 * c-pch.c: Include flags.h. Add comments to routines.
26968 (struct c_pch_validity): New.
26969 (get_ident): Update PCH file version number.
26970 (pch_init): Output current debugging type.
26971 (c_common_valid_pch): Check debugging type.
26972 * Makefile.in (c-pch.o): Update dependencies.
26973 * flags.h (debug_type_names): Declare.
26974 * toplev.c (debug_type_names): Move out of decode_g_option.
26975
269762003-04-11 Eric Christopher <echristo@redhat.com>
26977
26978 * emit-rtl.c (gen_rtx): Fix typos.
26979
269802003-04-11 Richard Henderson <rth@redhat.com>
26981
26982 * emit-rtl.c (gen_rtx): Zero '0' fields.
26983
269842003-04-11 Richard Henderson <rth@redhat.com>
26985
26986 PR c++/10202
26987 * expr.c (expand_expr): Use COMPLETE_OR_UNBOUND_ARRAY_TYPE_P
26988 not COMPLETE_TYPE_P for re-invoking layout_decl.
26989
269902003-04-11 Simon Law <sfllaw@engmail.uwaterloo.ca>
26991
26992 * doc/bugreport.texi: Fix paragraph breaking between sections
26993 in preparation for TeXinfo's paragraph indentation fixes.
26994 * doc/extend.texi: Ditto.
26995 * doc/invoke.texi: Ditto.
26996 * doc/objc.texi: Ditto.
26997 * doc/gcov.texi: Wrap 'gcov' in @command{}.
26998 * doc/invoke.texi (Darwin Options): Add a preamble.
26999
270002003-04-11 Richard Henderson <rth@redhat.com>
27001
27002 * config/i386/i386.c (tls_model_chars): Remove.
27003 (ix86_encode_section_info, ix86_strip_name_encoding): Remove.
27004 (local_symbolic_operand): Use SYMBOL_REF_LOCAL_P.
27005 (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
27006 (tls_symbolic_operand_1): Likewise.
27007 (legitimate_pic_address_disp_p): Use SYMBOL_REF_LOCAL_P.
27008 * config/i386/i386.h (TARGET_ENCODE_SECTION_INFO): Remove.
27009 (TARGET_STRIP_NAME_ENCODING, ASM_OUTPUT_LABELREF): Remove.
27010 * config/i386/winnt.c (i386_pe_encode_section_info): Replace
27011 bits "copied from i386.h" with default_encode_section_info.
27012
270132003-04-11 Richard Henderson <rth@redhat.com>
27014
27015 * rtl.def (SYMBOL_REF): Add two 0 fields.
27016 * gengtype.c (adjust_field_rtx_def): Handle them.
27017 * print-rtl.c (print_rtx): Print them.
27018 * rtl.h (SYMBOL_REF_DECL, SYMBOL_REF_FLAGS): New.
27019 (SYMBOL_FLAG_FUNCTION, SYMBOL_REF_FUNCTION_P): New.
27020 (SYMBOL_FLAG_LOCAL, SYMBOL_REF_LOCAL_P): New.
27021 (SYMBOL_FLAG_SMALL, SYMBOL_REF_SMALL_P): New.
27022 (SYMBOL_FLAG_TLS_SHIFT, SYMBOL_REF_TLS_MODEL): New.
27023 (SYMBOL_FLAG_EXTERNAL, SYMBOL_REF_EXTERNAL_P): New.
27024 (SYMBOL_FLAG_MACH_DEP): New.
27025 * optabs.c (init_one_libfunc): Zap fake SYMBOL_REF_DECL.
27026 * varasm.c (make_decl_rtl): Set SYMBOL_REF_DECL.
27027 (assemble_static_space): Set SYMBOL_REF_FLAGS.
27028 (assemble_trampoline_template): Likewise.
27029 (output_constant_def, force_const_mem): Likewise.
27030 (default_encode_section_info): New.
27031 * output.h: Declare it.
27032 * target-def.h (TARGET_ENCODE_SECTION_INFO): Use it.
27033
270342003-04-11 Richard Henderson <rth@redhat.com>
27035
27036 * libfuncs.h (LTI_setbits, LTI_gcov_flush, LTI_gcov_init): New.
27037 (setbits_libfunc, gcov_flush_libfunc, gcov_init_libfunc): New.
27038 * optabs.c (init_optabs): Initialize them.
27039 (init_libfuncs): Use init_one_libfunc.
27040 * calls.c (expand_call): Use gcov_flush_libfunc.
27041 * expr.c (store_constructor): Use setbits_libfunc.
27042 * function.c (expand_main_function): Use init_one_libfunc.
27043 * profile.c (create_profiler): Use gcov_init_libfunc and DECL_RTL.
27044
270452003-04-11 Mark Mitchell <mark@codesourcery.com>
27046
27047 * doc/c-tree.texi (Functions): Remove DECL_REAL_CONTEXT
27048 documentation; add DECL_FRIEND_CONTEXT.
27049
270502003-04-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
27051
27052 * doc/install.texi (hppa): Update links for HP-UX patches. Revise
27053 notes on linker selection and configuration for 64-bit HP-UX port.
27054 * doc/invoke.texi (hppa): Remove hppa text from description for
27055 -ffunction-sections and -fdata-sections. Document -static, -nolibdld
27056 and -threads options.
27057
27058 * pa-hpux10.h (LIB_SPEC): Add link options to resolve dependency of
27059 libc.a on libdld.sl when -static is specified and -nolibdld is not
27060 specified.
27061 * pa64-hpux.h (LIB_SPEC): Likewise.
27062 * pa-hpux11.h (LIB_SPEC): Likewise.
27063 (LINK_SPEC): Add __gcc_plt_call as an undefined symbol when -shared
27064 is not specified.
27065
270662003-04-11 Zack Weinberg <zack@codesourcery.com>
27067
27068 * config/darwin-c.c (darwin_pragma_unused): Use lookup_name,
27069 not IDENTIFIER_LOCAL_VALUE.
27070
270712003-04-11 Richard Henderson <rth@redhat.com>
27072
27073 PR c/10201
27074 * expr.c (expand_expr): Move DECL_RTL frobbing ...
27075 * stor-layout.c (layout_decl): ... here.
27076
270772003-04-11 James A. Morrison <ja2morri@uwaterloo.ca>
27078
27079 * doc/invoke.texi: Eliminate extra white-space caused by
27080 @gccoptlist{ on its own line.
27081 * doc/invoke.texi: Ensured there are two spaces between each option.
27082 * doc/invoke.texi: Re-wrapped option lines that were too wide.
27083 Added @gol to options that didn't have them.
27084
270852003-04-11 Nathan Sidwell <nathan@codesourcery.com>
27086
27087 * Makefile.in (loop-init.o): Do not depend on gcov-io.h,
27088 gcov-iov.h.
27089
27090 Simplify interface to gcov reading and writing.
27091 * gcov-io.h (gcov_file, gcov_position, gcov_length, gcov_buffer,
27092 gcov_alloc, gcov_modified, gcov_errored): Move into ...
27093 (struct gcov_var gcov_var): ... this static structure.
27094 (gcov_write_unsigned, gcov_write_counter, gcov_write_string):
27095 Return void.
27096 (gcov_read_unsigned, gcov_read_couter, gcov_read_string): Return
27097 read object.
27098 (gcov_read_bytes, gcov_write_bytes): Set error flag on error.
27099 (gcov_reserve_length): Remove.
27100 (gcov_write_tag): New.
27101 (gcov_write_length): Adjust.
27102 (gcov_read_summary, gcov_write_summary): Adjust.
27103 (gcov_eof, gcov_ok): Rename to ...
27104 (gcov_is_eof, gcov_is_error): ... here. Return error code.
27105 (gcov_save_position, gcov_resync): Rename to ...
27106 (gcov_position, gcov_seek): ... here.
27107 (gcov_skip, gcov_skip_string): Remove.
27108 (gcov_error): Remove.
27109 (gcov_open, gcov_close): Adjust.
27110 * gcov.c (find_source): Take const char *, copy it on allocation.
27111 (read_graph_file): Adjust.
27112 (read_count_file): Adjust.
27113 * libgcov.c (gcov_exit): Adjust.
27114 * gcov-dump.c (tag_function, tag_blocks, tag_arcs, tag_lines,
27115 tag_arc_counts, tag_summary): Return void. Adjust.
27116 (struct tag_format): Adjust proc member.
27117 (dump_file): Adjust gcov calls.
27118
271192003-04-11 Alexandre Oliva <aoliva@redhat.com>
27120
27121 * Makefile.in (fixinc.sh): Pass BUILD_LIBERTY as LIBERTY to
27122 mkfixinc.sh.
27123 * fixinc/mkfixinc.sh (defs): Add LIBERTY.
27124 * configure.in (STMP_FIXINC, STMP_FIXPROTO): Don't disable on
27125 build != host sysrooted builds.
27126 * configure.in (SYSTEM_HEADER_DIR): Make sure it contains
27127 TARGET_SYSTEM_ROOT even on sysrooted natives.
27128 * configure: Rebuilt.
27129
271302003-04-10 Zack Weinberg <zack@codesourcery.com>
27131
27132 * c-decl.c (struct binding_level): Add shadowed_tags and
27133 function_body; remove this_block, tag_transparent, and
27134 subblocks_tag_transparent; update comments.
27135 (clear_binding_level, lookup_tag_reverse): Kill.
27136 (make_binding_level): Use ggc_alloc_cleared or memset.
27137 (lookup_tag): Remove struct binding_level* parameter. All
27138 callers changed. Just look at IDENTIFIER_TAG_VALUE, and
27139 current_binding_level->tags if asked for thislevel_only or if
27140 we might have to diagnose "struct foo; union foo;"
27141 (pushlevel): Ignore argument. Do not push another binding
27142 level on the transition from the parameters to the top level
27143 of the function body; just tweak the flags and proceed.
27144 (poplevel): Overhaul. Clear IDENTIFIER_TAG_VALUEs; on exiting
27145 a function body, separate the parameter list from the
27146 top-level local variables.
27147 (set_block): Do nothing.
27148 (pushtag): Set IDENTIFIER_TAG_VALUE and add an entry to
27149 shadowed_tags if necessary.
27150 (warn_if_shadowing): Nuke the special case for local shadowing
27151 parameter.
27152 (pushdecl): Do not create a shadow entry if we are replacing
27153 an older decl in the same binding level.
27154 (pushdecl_function_level): Tweak for new way of indicating
27155 function scope.
27156 (shadow_tag_warned): Use TYPE_NAME, not lookup_tag_reverse.
27157 (start_function): Don't set subblocks_tag_transparent.
27158 (finish_function): Fix up the binding_level stack for totally
27159 empty functions. Otherwise, don't call poplevel.
27160
27161 * c-common.c (shadow_warning): MANDATORY argument is no longer
27162 necessary. Always use plain warning.
27163 * c-common.h: Update to match.
27164
27165 * cfglayout.c (scope_to_insns_initialize): Clear block when we
27166 hit the FUNCTION_DECL.
27167 * function.c: Do not create cyclic tree structure.
27168
271692003-04-10 Zack Weinberg <zack@codesourcery.com>
27170
27171 * c-tree.h (struct lang_identifier): Replace global_value,
27172 local_value members with symbol_value, tag_value. Kill
27173 implicit_decl and limbo_value.
27174 (IDENTIFIER_GLOBAL_VALUE, IDENTIFIER_LOCAL_VALUE,
27175 IDENTIFIER_LIMBO_VALUE, IDENTIFIER_IMPLICIT_DECL,
27176 C_MISSING_PROTOTYPE_WARNED): Kill.
27177 (IDENTIFIER_SYMBOL_VALUE, IDENTIFIER_TAG_VALUE,
27178 C_DECL_IMPLICIT, C_DECL_ISNT_PROTOTYPE): New.
27179 (C_DECL_ANTICIPATED): Rename to C_DECL_INVISIBLE.
27180 (implicit_decl_warning, lookup_name_current_level,
27181 record_function_scope_shadow): Don't prototype.
27182 (pushdecl_function_level): Prototype.
27183
27184 * c-decl.c (truly_local_externals): New variable.
27185 (struct binding_level): Adjust commentary.
27186 (get_function_binding_level, clear_limbo_values,
27187 record_function_scope_shadow): Kill.
27188 (lookup_name_current_level, implicit_decl_warning): Are now static.
27189 (any_external_decl, record_external_decl): New static functions.
27190 (clone_underlying type): Split out of pushdecl.
27191 (c_print_identifier): Update to match changes to struct
27192 lang_identifier.
27193 (poplevel): Delete #if 0 block. Make externals invisible
27194 instead of clearing their IDENTIFIER_SYMBOL_VALUEs. Don't
27195 call clear_limbo_values. Refer to IDENTIFIER_SYMBOL_VALUE not
27196 IDENTIFIER_GLOBAL_VALUE or IDENTIFIER_LOCAL_VALUE.
27197 (duplicate-decls): For real parm decl after a forward decl,
27198 set TREE_ASM_WRITTEN here. Allow void foo(...) followed by
27199 foo(...) { } with only a warning. Say whether a previous
27200 declaration was implicit.
27201 (warn_if_shadowing): Now handles all shadowing, not just
27202 local-over-local. Clarify comments.
27203 (pushdecl): Rewritten. There is no longer a distinction
27204 between global and local symbol values; they're all
27205 IDENTIFIER_SYMBOL_VALUE. Call record_external_decl on all
27206 DECL_EXTERNAL decls, and use any_external_decl to check
27207 against previous externals. Kill #if 0 blocks. Don't
27208 tolerate error_mark_node being NULL.
27209 (pushdecl_top_level): Handle only those cases which
27210 Objective C (the only user) needs.
27211 (pushdecl_function_level): New function.
27212 (implicitly_declare): Create ordinary decls with
27213 C_DECL_IMPLICIT set. Recycle old decls, however they got
27214 created.
27215 (lookup_name): It's always IDENTIFIER_SYMBOL_VALUE. Return 0
27216 for C_DECL_INVISIBLE symbols.
27217 (lookup_name_current_level): Likewise. Use chain_member.
27218 (c_make_fname_decl): Don't muck with DECL_CONTEXT.
27219 Use pushdecl_function_level.
27220 (builtin_function): Use C_DECL_INVISIBLE.
27221 (start_function): Don't muck with IDENTIFIER_IMPLICIT_DECL.
27222 Use C_DECL_ISNT_PROTOTYPE and C_DECL_IMPLICIT.
27223 (store_parm_decls): It's IDENTIFIER_SYMBOL_VALUE now.
27224 (identifier_global_value): Same. Must scan
27225 global_binding_level in extremis.
27226
27227 * c-typeck.c (undeclared_variable): New static function, split
27228 from build_external_ref.
27229 (build_external_ref): Use DECL_CONTEXT, not
27230 IDENTIFIER_LOCAL_VALUE, to decide whether a local hides
27231 an instance variable. Restructure for clarity.
27232 * objc/objc-act.c: Use identifier_global_value, not
27233 IDENTIFIER_GLOBAL_VALUE.
27234
272352003-04-08 Jonathan Wakely <redi@gcc.gnu.org>
27236
27237 * doc/extend.texi (Template Instantiation): Refer to ISO standard,
27238 not Working Paper.
27239 * doc/invoke.texi (C++ Dialect Options): Same.
27240
272412003-04-10 Zack Weinberg <zack@codesourcery.com>
27242
27243 * tree.c (tree_operand_check_failed): New function.
27244 * tree.h (TREE_OPERAND_CHECK, TREE_OPERAND_CHECK_CODE,
27245 TREE_RTL_OPERAND_CHECK): New checking macros.
27246 (TREE_OPERAND, SAVE_EXPR_CONTEXT, SAVE_EXPR_RTL,
27247 RTL_EXPR_SEQUENCE, RTL_EXPR_RTL, WITH_CLEANUP_EXPR_RTL,
27248 CONSTRUCTOR_ELTS, LABELED_BLOCK_LABEL, LABELED_BLOCK_BODY,
27249 EXIT_BLOCK_RETURN, LOOP_EXPR_BODY, EXPR_WFL_NODE,
27250 EXPR_WFL_FILENAME_NODE, EXPR_WFL_FILENAME, TARGET_EXPR_SLOT,
27251 TARGET_EXPR_INITIAL, TARGET_EXPR_CLEANUP): Use the new
27252 checking macros.
27253
27254Thu Apr 10 23:52:30 CEST 2003 Jan Hubicka <jh@suse.cz>
27255
27256 PR inline-asm/8803
27257 * function.c (instantate_virtual_regs): Verify that all ASM statements
27258 match after the virutal regs instantiation.
27259
272602003-04-10 Steve Ellcey <sje@cup.hp.com>
27261
27262 * ia64-protos.h (addp4_optimize_ok): New.
27263 * ia64.c (addp4_optimize_ok): New.
27264 * ia64.md (*ptr_extend_plus_1): Use addp4_optimize_ok.
27265 (*ptr_extend_plus_2): Ditto.
27266
272672003-04-10 Steve Ellcey <sje@cup.hp.com>
27268
27269 * expr.c (expand_assignment): Extend offset_rtx with convert_to_mode
27270 not with convert_memory_address.
27271 (store_constructor): Ditto, and same for copy_size_rtx.
27272 (expand_expr): Ditto.
27273
272742003-04-10 Douglas B Rupp <rupp@gnat.com>
27275
27276 * config/i386/i386.c (ix86_ms_bitfield_layout_p): Fix formatting.
27277
272782003-04-10 Bob Wilson <bob.wilson@acm.org>
27279
27280 * config/xtensa/lib2funcs.S (__xtensa_sync_caches): Flush data cache
27281 even if it is configured to be write-through.
27282
272832003-04-10 Ulrich Weigand <uweigand@de.ibm.com>
27284
27285 * config/s390/s390.c (larl_operand): Do not allow symbols
27286 marked with '@'.
27287 (s390_encode_section_info): Mark symbols with forced 1-byte
27288 alignment with '@'.
27289 (s390_strip_name_encoding): Strip '@'.
27290 (legitimize_pic_address): Handle symbols that are not valid
27291 LARL operands in 64-bit mode.
27292
272932003-04-10 Andrew Haley <aph@redhat.com>
27294
27295 * tree-inline.c (inlinable_function_p): Disable inlining for
27296 synchronized methods.
27297
272982003-04-09 Steven Bosscher <steven@gcc.gnu.org>
27299
27300 * c-common.h (lang_statement_code_p): Remove declaration.
27301 (statement_code_p): Ditto.
27302 (c_common_stmt_codes): Define; list of c-common statement codes.
27303 (statement_code_p): New extern declaration.
27304 (STATEMENT_CODE_P): Define.
27305 (INIT_STATEMENT_CODES): Define.
27306 * c-common.c (statement_code_p): Kill the function, declare
27307 as an array of bools instead.
27308 (lang_statement_code_p): Remove.
27309 (walk_stmt_tree): Use STATEMENT_CODE_P not statement_code_p.
27310 (c_safe_from_p): Ditto.
27311 * c-objc-common.c (c_objc_common_init): Use INIT_STATEMENT_CODES
27312 to initialize the statement_code_p array.
27313 * tree-inline.c (walk_tree): Use STATEMENT_CODE_P instead of
27314 statement_code_p.
27315 (copy_tree_r): Ditto.
27316 * cp/cp-tree.h (cp_stmt_codes): Define; list of C++ specific
27317 statement tree codes.
27318 * cp/lex.c (cxx_init): Add missing print line break. Use
27319 INIT_STATEMENT_CODES to initialize the statement_code_p array.
27320 * cp/parser.c (cp_parser_statement): Use STATEMENT_CODE_P
27321 instead of statement_code_p.
27322 * cp/pt.c (tsubst_expr): Ditto.
27323 * cp/tree.c (verify_stmt_tree_r): Ditto.
27324 (cp_statement_code_p): Remove.
27325 (init_tree): Don't set lang_statement_code_p, it's gone.
27326
273272003-04-09 Dan Nicolaescu <dann@ics.uci.edu>
27328 Zack Weinberg <zack@codesourcery.com>
27329
27330 * regrename.c (struct du_chain): Use a bitfield for reg_class.
27331 * cse.c (struct qty_table_elem, struct table_elt, struct set):
27332 Use bitfields for fields holding enum rtx_code or
27333 enum machine_mode values. Add comments explaining size choices.
27334
273352003-04-09 Alexandre Oliva <aoliva@redhat.com>
27336
27337 * config/fp-bit.c (unpack_d): Handle pair of doubles with
27338 different signs correctly.
27339
273402003-04-09 Vladimir Makarov <vmakarov@redhat.com>
27341
27342 * sched-deps.c (reg_pending_barrier_mode): New enumeration.
27343 (reg_pending_barrier): Make it of the enumeration type.
27344 (sched_analyze_2): Define the barrier as MOVE_BARRIER or
27345 TRUE_BARRIER.
27346 (sched_analyze): Ditto.
27347 (sched_analyze_insn): Ditto. Use anti-dependencies for
27348 MOVE_BARRIER and true-dependencies as TRUE_BARRIER.
27349 (init_deps_global): Initialize the barrier as NO_BARRIER.
27350
273512003-04-09 Vladimir Makarov <vmakarov@redhat.com>
27352
27353 * config/ia64/ia64.c (issue_nops_and_insn): Add new parameter.
27354 Check that asm insn starts on a new cycle. Add nops after asm
27355 insn to end bundle.
27356 (bundling): Move insn type evaluation from the loop. Call
27357 issue_nops_and_insn with the new parameter. Ignore changing
27358 position for nops after asm insn.
27359
273602003-04-09 Alexandre Oliva <aoliva@redhat.com>
27361
27362 * optabs.c: Comment that gen_add2_insn and others may actually
27363 return emitted insns, if the gen functions turn out to return
27364 emitted insns.
27365 * reload1.c (reload_cse_move2add): Cope with emitted insns from
27366 gen_add2_insn.
27367
273682003-04-09 Richard Henderson <rth@redhat.com>
27369
27370 * config/ia64/ia64.c (move_operand): Allow symbolic_operand,
27371 but not tls_symbolic_operand.
27372 (ia64_expand_load_address): Remove scratch operand.
27373 (ia64_expand_tls_address): Split out from ia64_expand_move.
27374 (ia64_expand_move): Split symbolics only after reload.
27375 (ia64_emit_cond_move): New.
27376 * config/ia64/ia64-protos.h: Update.
27377 * config/ia64/ia64.md (movsi_symbolic, movdi_symbolic): Remove.
27378 (symbolic splitter): Accept SImode operands too.
27379 (cmove splitter): Use ia64_emit_cond_move.
27380
273812003-04-09 Nick Clifton <nickc@redhat.com>
27382
27383 * doc/install.texi: Note that ARM toolchains need binutils 2.13 or
27384 newer.
27385 * config/arm/elf.h (SUBTARGET_ASM_FLOAT_SPEC): Pass -mfpu=softfpa
27386 instead of -mno-fpu.
27387 * config/arm/semi.h (ASM_SPEC): Likewise.
27388 * config/arm/xscale-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise,
27389 but only if -msoft-float is specified pass. Otherwise pass
27390 -mfpu=softvfp.
27391
273922003-04-09 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
27393
27394 * function.c (purge_addressof): Use free_INSN_LIST_node instead of
27395 free_EXPR_LIST_node.
27396
273972003-04-08 Roger Sayle <roger@eyesopen.com>
27398
27399 * fold-const.c (fold): Use "fold" following build in more places.
27400 Optimize sqrt(x)*sqrt(x) as x, pow(x,y)*pow(z,y) as pow(x*z,y),
27401 pow(x,y)*pow(x,z) as pow(x,y+z) and x/pow(y,z) as x*pow(y,-z).
27402
274032003-04-08 Roger Sayle <roger@eyesopen.com>
27404
27405 * builtins.c (fold_builtin): Constant fold expressions as x*0.5
27406 instead of x/2.0. Optimize sqrt(pow(x,y)) as pow(x,y*0.5),
27407 log(pow(x,y)) as y*log(x), pow(exp(x),y) as exp(x*y),
27408 pow(sqrt(x),y) as pow(x,y*0.5) and pow(pow(x,y),z) as pow(x,y*z).
27409 Delete function scope "fcode" variable to avoid shadowing.
27410
274112003-04-08 Kevin Buettner <kevinb@redhat.com>
27412
27413 * dwarf2out.c (DWARF_ARANGES_HEADER_SIZE, DWARF_ARANGES_PAD_SIZE):
27414 Take into account DWARF_INITIAL_LENGTH_SIZE.
27415
274162003-04-08 Hans-Peter Nilsson <hp@axis.com>
27417
27418 * reorg.c (fill_slots_from_thread): When considering changing the
27419 insn following a reg-to-reg copy insn to use the source reg of the
27420 copy, bail out if there's overlap between the registers.
27421
274222003-04-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
27423
27424 * function.c (postponed_insns): New.
27425 (purge_addressof_1): Postpone processing of insns if addressofs
27426 are not put into stack.
27427 (purge_addressof): Process postponed insns.
27428
274292003-04-08 J"orn Rennecke <joern.rennecke@superh.com>
27430
27431 * sh.h (NORMAL_MODE): If interrupt handler and TARGET_FMOVD,
27432 this is FP_MODE_DOUBLE .
27433 * sh.c (ra.h): #include.
27434 (push_regs): Add second parameter. Changed all callers.
27435 If necessary, set fpscr before saving floating point registers.
27436 (calc_live_regs): If interrupt handler and TARGET_FMOVD, always
27437 do saves / restores with SZ == 1.
27438 (sh_expand_prologue): If interrupt handler, don't use gen_toggle_sz.
27439 (sh_expand_epilogue): Likewise. For TARGET_FMOVD, if floating point
27440 registers are being restored, restore FPSCR only after restoring them.
27441
274422003-04-08 Aldy Hernandez <aldyh@redhat.com>
27443
27444 * config/rs6000/rs6000.c (rs6000_init_builtins): Set opaque types
27445 regardless of architecture.
27446 (spe_init_builtins): Change V2SI and V2SF types to opaque types.
27447
274482003-04-08 J"orn Rennecke <joern.rennecke@superh.com>
27449
27450 * sh.c (push_regs, calc_live_regs): Return int. Take single
27451 HARD_REG_SET * parameter. Changed all callers.
27452
27453Tue Apr 8 11:12:07 CEST 2003 Jan Hubicka <jh@suse.cz>
27454
27455 * i386.c (legitimate_pic_address_disp_p): Do not accept PLUS in the
27456 GOTOFF operand.
27457 (legitimize_pic_address): Move plus outside the unspec.
27458 * i386.c (legitimate_constant_p): Check (CONST (PLUS (UNSPEC ...
27459 for validity.
27460
274612003-04-08 Nathan Sidwell <nathan@codesourcery.com>
27462
27463 * gcov-io.h (gcov_save_position): Remove __inline__ from
27464 declaration.
27465
274662003-04-07 Matt Kraai <kraai@alumni.cmu.edu>
27467
27468 * doc/install.texi: Use @command and @samp for single- and
27469 multi-word commands respectively.
27470 * doc/makefile.texi: Likewise.
27471 * doc/sourcebuild.texi: Likewise.
27472
274732003-04-07 Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
27474 Richard Henderson <rth@redhat.com>
27475
27476 PR c/9516
27477 * expr.c (safe_from_p): Rearrange to avoid deep recursion in
27478 favor of looping and tail recursion for TREE_LIST and binops.
27479
274802003-04-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
27481
27482 * loop.h (REGNO_FIRST_LUID, REGNO_LAST_LUID): Provide defaults
27483 for insns without luid.
27484
274852003-04-07 Glen Nakamura <glen@imodulo.com>
27486
27487 PR opt/8634
27488 * explow.c (maybe_set_unchanging): Don't flag non-static const
27489 aggregate type initializers with RTX_UNCHANGING_P.
27490
274912003-04-07 Richard Henderson <rth@redhat.com>
27492
27493 PR opt/8634
27494 * function.c (purge_addressof_1): Don't try arithmetics for
27495 unchanging memories.
27496
274972003-04-07 Janis Johnson <janis187@us.ibm.com>
27498
27499 * doc/sourcebuild.texi (Test Suites): Document testing support for
27500 gcov and profile-directed optimizations; describe gcc.misc-tests.
27501
27502Mon Apr 7 22:19:59 CEST 2003 Jan Hubicka <jh@suse.cz>
27503
27504 PR target/10077
27505 * i386.md (movsi_1, movsi_nointerunit_1): Fix SSEMOV alternative.
27506
275072003-04-07 Eric Botcazou <ebotcazou@libertysurf.fr>
27508
27509 * doc/rtl.texi (Comparison operations): Update to
27510 record the allowed comparison modes.
27511
275122003-04-07 Aldy Hernandez <aldyh@redhat.com>
27513
27514 * config/rs6000/rs6000.c (rs6000_common_init_builtins): Rename all
27515 V2SI_type_node to opaque_V2SI_type_node. Rename all
27516 V2SF_type_node to opaque_V2SF_type_node.
27517 (rs6000_init_builtins): Define opaque_V2SI_type_node and
27518 opaque_V2SF_type_node.
27519 (is_ev64_opaque_type): The types opaque_V2SI_type_node and
27520 opaque_V2SF_type_node are opaque types.
27521
275222003-04-07 J"orn Rennecke <joern.rennecke@superh.com>
27523
27524 * gcse.c (replace_store_insn): Use single_set.
27525
275262003-04-07 Nathan Sidwell <nathan@codesourcery.com>
27527
27528 Change gcov file interface to single file at a time.
27529 * gcov-io.h: Replace IN_LIBGCC1 with IN_LIBGCOV. Use IN_GCOV.
27530 Convert to C89 prototypes.
27531 (gcov_file, gcov_length, gcov_position, gcov_buffer, gcov_alloc,
27532 gcov_error, gcov_modified): New static variables.
27533 (gcov_open, gcov_close, gcov_read_bytes, gcov_write_bytes): New
27534 functions.
27535 (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
27536 gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
27537 (gcov_read_summary, gcov_write_summary): Adjust.
27538 (gcov_save_position, gcov_reserve_length, gcov_write_length):
27539 Adjust.
27540 (gcov_resync, gcov_skip, gcov_skip_string): Adjust.
27541 (da_file_open, da_file_close, da_file_eof, da_file_error): Remove.
27542 (da_file_position, da_file_seek, da_file_write, da_file_read):
27543 Remove.
27544 (gcov_error, gcov_eof, gcov_ok, gcov_time): New functions.
27545 * gcov.c (gcov_type): Don't typedef here.
27546 (IN_GCOV): #define
27547 (read_graph_file, read_count_file): Adjust.
27548 * gcov-dump.c (gcov_type): Don't typedef here.
27549 (IN_GCOV): #define.
27550 (tag_function, tag_blocks, tag_arcs, tag_lines, tag_arc_counts):
27551 Remove FILE parameter, adjust.
27552 (struct tag_format): Adjust proc member.
27553 (dump_file): Adjust.
27554 * libgcov.c (IN_LIBGCOV): #define.
27555 (gcov_exit): Adjust.
27556 * loop-init.c: Don't #include gcov-io.h
27557 * profile.c (struct counts_entry): New structure to hold counter
27558 values.
27559 (struct section_reference, struct da_index_entry): Remove.
27560 (bbg_file, da_file): Remove.
27561 (htab_counts_index_hash, htab_counts_index_eq,
27562 htab_counts_index_del): Replace with ...
27563 (htab_counts_entry_hash, htab_counts_entry_eq,
27564 htab_counts_entry_del): ... these.
27565 (cleanup_counts_index, index_counts_file): Remove.
27566 (read_counts_file): New function.
27567 (get_exec_counts): Adjust.
27568 (compute_branch_probabilities): Don't free the exec counts here.
27569 (branch_prob): Adjust.
27570 (init_branch_prob): Adjust.
27571 (end_branch_prob): Adjust.
27572
275732003-04-07 Aldy Hernandez <aldyh@redhat.com>
27574
27575 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
27576 -mfloat-gprs.
27577
27578 * config/rs6000/rs6000.c: Delete rs6000_fprs.
27579 Declare rs6000_float_gprs.
27580 Declare rs6000_float_gprs_string.
27581 (rs6000_parse_float_gprs_option): New.
27582 (rs6000_override_options): Genericize rs6000_parse_* calls to use
27583 rs6000_parse_yes_no_option.
27584 Change check for cpu=8540, to use TARGET_E500.
27585 (rs6000_parse_isel_option): Delete.
27586 (rs6000_parse_spe_option): Delete.
27587 (rs6000_parse_vrsave_option): Delete.
27588
27589 * config/rs6000/rs6000.h: Rename rs6000_fprs to rs6000_float_gprs.
27590 Define rs6000_float_gprs_string.
27591 (TARGET_OPTIONS): Add rs6000_float_gprs option.
27592
27593 * config/rs6000/eabi.h (TARGET_FPRS): Change to use rs6000_float_gprs.
27594
27595 * config/rs6000/eabispe.h: Set rs6000_float_gprs.
27596
27597Mon Apr 7 14:36:24 CEST 2003 Jan Hubicka <jh@suse.cz>
27598
27599 PR opt/10024
27600 * cfglayout.c (cfg_layout_redirect_edge):
27601 Redirect any branch edges unified with the fallthru one.
27602 * cfgrtl.c (force_nonfallthru_and_redirect): Do not special
27603 case fallthru edges when called via cfglayout.c
27604
276052003-04-07 J"orn Rennecke <joern.rennecke@superh.com>
27606
27607 * c-typeck.c (output_init_element): Check for type == error_mark_node.
27608
276092003-04-07 Kazu Hirata <kazu@cs.umass.edu>
27610
27611 * config/h8300/h8300.md (*zero_extendqisi2_h8300hs): Always
27612 split.
27613 (a splitter): Do zero-extension via HImode.
27614
276152003-04-07 James A. Morrison <ja2morri@uwaterloo.ca>
27616
27617 * doc/invoke.texi: Eliminate extra white-space caused by
27618 @gccoptlist{ on its own line.
27619 * doc/invoke.texi: Ensured there are two spaces between each option.
27620 * doc/invoke.texi: Re-wrapped option lines that were too wide.
27621 Added @gol to options that didn't have them.
27622
276232003-04-07 James A Morrison <ja2morri@student.math.uwaterloo.ca>
27624
27625 * doc/extend.texi (Darwin Pragmas): Fix spelling of Mac OS.
27626
276272003-04-06 Zack Weinberg <zack@codesourcery.com>
27628
27629 * tree.c (tree_size): For all 'c' and 'x' nodes, look directly
27630 at the sizes of the relevant structures, rather than relying
27631 on TREE_CODE_LENGTH. Call lang_hooks.tree_size to get the
27632 sizes of any such we don't know about. Use
27633 lang_hooks.identifier_size for IDENTIFIER_NODE.
27634
27635 (initializer_zerop): Use CONSTRUCTOR_ELTS.
27636 * tree.def: Update commentary. Make fourth element of
27637 the definition for all 'c' and 'x' nodes zero.
27638
27639 * langhooks.h: New hook, tree_size / LANG_HOOKS_TREE_SIZE.
27640 * langhooks-def.h: Update to match.
27641 * langhooks.c: New default, lhd_tree_size.
27642
27643 * c-common.def (SRCLOC): Kill.
27644 * c-pretty-print.c (pp_c_postfix_expression [case SRCLOC]):
27645 Remove entirely - was already #if-ed out.
27646
27647
276482003-04-06 Zack Weinberg <zack@codesourcery.com>
27649
27650 * mklibgcc.in: Use a here document to avoid running afoul of
27651 shells that generate control-A from "echo \1".
27652
276532003-04-06 Aldy Hernandez <aldyh@redhat.com>
27654
27655 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mspe
27656 option.
27657
27658 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
27659 rs6000_spe.
27660
27661 * config/rs6000/eabi.h (TARGET_E500): Define.
27662
27663 * config/rs6000/rs6000.h (TARGET_E500): Define.
27664 (TARGET_OPTIONS): Add spe= option.
27665 Declare rs6000_spe and rs6000_spe_string extern.
27666
27667 * config/rs6000/rs6000.c (branch_positive_comparison_operator):
27668 Change TARGET_SPE to TARGET_E500.
27669 (ccr_bit): Change TARGET_SPE to TARGET_E500. Check for
27670 !TARGET_FPRS.
27671 (print_operand): Same.
27672 (rs6000_generate_compare): Same.
27673 (output_cbranch): Same.
27674 (rs6000_spe): Declare.
27675 (rs6000_spe_string): Declare.
27676 (rs6000_override_options): Call rs6000_parse_spe_option.
27677 (rs6000_parse_spe_option): New.
27678
276792003-04-06 Steven Bosscher <steven@gcc.gnu.org>
27680
27681 * hashtable.c (gcc_obstack_init): Delete this function
27682 and everything related to it.
27683 * hashtable.h: Remove prototype.
27684 * bitmap.c (bitmap_element_allocate): Cleanup redundant
27685 defines. Cleanup some unnecessary whitespace.
27686 * defaults.h (obstack_chunk_alloc): Redefine with
27687 appropriate casts for libiberty obstacks.
27688 (obstack_chunk_free): Ditto.
27689 (OBSTACK_CHUNK_SIZE): Define, default to 0.
27690 (gcc_obstack_init): Define as a call to _obstack_begin.
27691 * tree.c (print_obstack_statistics): Delete this unused
27692 function.
27693 * tree.h (obstack): Don't forward-declare.
27694 (print_obstack_statistics): Delete prototype.
27695 (print_obstack_name): Ditto.
27696 (gcc_obstack_init): Ditto.
27697 * rtl.h (gcc_obstack_init): Ditto.
27698 * java/jv-scan.c (gcc_obstack_init): Delete this
27699 function, its prototype and related defines.
27700 * java/jvgenmain.c (gcc_obstack_init): Delete this
27701 function, and related defines.
27702 * java/parse-scan.y (obstack_chunk_alloc): Don't define.
27703 (obstack_chunk_free): Ditto
27704
277052003-04-06 Geoffrey Keating <geoffk@apple.com>
27706
27707 * dbxout.c (dbxout_handle_pch): Move prototype out from
27708 #if defined DBX_DEBUGGING_INFO.
27709
277102003-04-05 Nathan Sidwell <nathan@codesourcery.com>
27711
27712 * gcov.c (struct arc_info): Replace local_span with cycle.
27713 (struct block_info): Replace u.span with u.cycle. Add is_call_return.
27714 (solve_flow_graph): Set is_call_return.
27715 (add_line_counts): Adjust. In block mode, blocks attach to last line.
27716 (accumulate_line_counts): Find graph cycles, not spanning tree.
27717 (output_branch_count): Adjust.
27718 (output_lines): Adjust.
27719 * doc/gcov.texi: Update.
27720
277212003-04-06 Kazu Hirata <kazu@cs.umass.edu>
27722
27723 * config/h8300/h8300.md (*zero_extendqisi2_h8300hs): Change
27724 the second alternative to "#".
27725
277262003-04-05 Kazu Hirata <kazu@cs.umass.edu>
27727
27728 * config/h8300/h8300.c (single_one_operand): Use GET_MODE_MASK.
27729 (single_zero_operand): Likewise.
27730
277312003-04-05 Daniel Berlin <dberlin@dberlin.org>
27732
27733 * Makefile.in (df.o): Depend on alloc-pool.h, not obstack.h.
27734 * df.c: Include alloc-pool.h, not obstack.h.
27735 (df_ref_obstack): Remove.
27736 (df_ref_pool, df_link_pool): Add pools.
27737 (df_alloc): Init the new pools.
27738 (df_free): And free them.
27739 (df_link_create): Use the pools.
27740 (df_ref_create): Ditto.
27741
277422003-04-05 Kazu Hirata <kazu@cs.umass.edu>
27743
27744 * simplify-rtx.c: Fix formatting.
27745
277462003-04-05 Andrew Pinski <apinski@apple.com>
27747
27748 * config/rs6000/rs6000.c (addrs_ok_for_quad_peep): Allow addr2
27749 reg with reg1 == reg2 and offset1 = -8.
27750
277512003-04-05 David Edelsohn <edelsohn@gnu.org>
27752
27753 * config/rs6000/rs6000.c (rs6000_rtx_costs): Halve Power4
27754 multiply costs. Correct Power4 divide costs.
27755 * config/rs6000/power4.md: Restore multiply and FP latency.
27756
277572003-04-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
27758
27759 * alias.c (find_base_term): Export.
27760 * rtl.h (find_base_term): Declare.
27761 * gcse.c (find_moveable_store): Test for flag_non_call_exceptions
27762 instead of flag_exceptions. Move test for parameter passing ...
27763 (store_killed_in_insn): ... here.
27764
277652003-04-05 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
27766
27767 PR bootstrap/10267
27768 * doc/install.texi (*-*-solaris2): /bin/ksh is not just recommended
27769 for configuring.
27770
277712003-04-04 Geoffrey Keating <geoffk@apple.com>
27772
27773 * dbxout.c (scope_labelno): Add GTY.
27774 (have_used_extensions): Add GTY.
27775 (source_label_number): Add GTY.
27776 (lastfile): Add GTY.
27777 (lastfile_is_base): New.
27778 (base_input_file): New.
27779 (dbxout_handle_pch): New.
27780 (dbx_debug_hooks): Add handle_pch.
27781 (xcoff_debug_hooks): Likewise.
27782 (dbxout_function_end): Remove scope_labelno.
27783 (dbxout_init): Set base_input_file.
27784 (dbxout_handle_pch): New.
27785 (dbxout_source_file): Honour lastfile_is_base.
27786 * dwarfout.c (dwarf_debug_hooks): Add dummy handle_pch.
27787 * sdbout.c (sdb_debug_hooks): Add dummy handle_pch.
27788 * vmsdbgout.c (vmsdbg_debug_hooks): Add dummy handle_pch.
27789 * dwarf2out.c (dwarf2_debug_hooks): Add dummy handle_pch.
27790 * debug.c (do_nothing_debug_hooks): Add dummy handle_pch.
27791 * debug.h (struct gcc_debug_hooks): Add handle_pch.
27792 * c-pch.c (pch_init): Don't call start_source_file, but do call
27793 handle_pch.
27794 (c_common_write_pch): Call handle_pch.
27795 (c_common_read_pch): Don't call start_source_file,
27796 or end_source_file.
27797
27798Fri Apr 4 17:43:52 2003 Olivier Hainque <hainque@act-europe.fr>
27799
27800 * emit-rtl.c (get_mem_attrs): Adjust alignment tests determining
27801 use of default attributes to agree MEM_ALIGN macro.
27802
27803Fri Apr 4 17:33:24 2003 Joel Brobecker <brobecker@gnat.com>
27804
27805 * dbxout.c (dbxout_type): When printing type index of range type
27806 whose bounds are printed in octal format, print type of parent type if
27807 it exists so enumerated type descriptions are not transformed
27808 into unsigned types.
27809
278102003-04-04 Kazu Hirata <kazu@cs.umass.edu>
27811
27812 * config/h8300/h8300-protos.h: Add a prototype for
27813 compute_a_shift_cc.
27814 * config/h8300/h8300.c (shift_one): Update the CC status.
27815 (shift_two): Likewise.
27816 (output_a_shift_cc): Set cc_inline and cc_special.
27817 (compute_a_shift_cc): New.
27818 * config/h8300/h8300.md (shift insns): Use compute_a_shift_cc.
27819
278202003-04-04 Richard Henderson <rth@redhat.com>
27821
27822 * cse.c (fold_rtx): Fix 03-30 change; do check insn non-null.
27823
278242003-04-04 Loren James Rittle <ljrittle@acm.org>
27825
27826 * fixinc/inclhack.def (bsd_stdio_attrs_conflict): New.
27827 * fixinc/fixincl.x: Rebuilt.
27828 * fixinc/tests/base/stdio.h: Regenerated.
27829
278302003-04-04 Nathan Sidwell <nathan@codesourcery.com>
27831
27832 * gcov.c (accumulate_line_counts): Fix span tree merge bug.
27833
27834Fri Apr 4 15:58:52 2003 J"orn Rennecke <joern.rennecke@superh.com>
27835
27836 * sh.h (ACTUAL_NORMAL_MODE): New macro, broken out of
27837 (NORMAL_MODE).
27838 * sh.c (fpscr_set_from_mem): Use ACTUAL_NORMAL_MODE.
27839
278402003-04-04 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
27841
27842 * doc/contrib.texi (Contributors): Add entries for Wolfgang
27843 Bangerth, DJ Delorie, Christian Ehrhardt, Christopher Faylor,
27844 Nathanael Nerode, Diego Novillo, Hartmut Penner, Volker Reichelt,
27845 Danny Smith, and Ulrich Weigand.
27846 Update Kriang Lerdsuwanakij and fix a typo in Janis Johnson's
27847 entry.
27848
278492003-04-04 Nick Clifton <nickc@redhat.com>
27850
27851 * config/sparc/sol2-bi.h: Revert previous delta.
27852 * config/sparc/sol2-gas-bi.h (AS_SPARC64_FLAG): Prepend -TSO
27853
278542003-04-04 Nick Clifton <nickc@redhat.com>
27855
27856 * config/v850/v850.c (expand_prologue): Only use register save
27857 helper functions if long calls are not being used.
27858 Add a clobber of r11 id using long calls.
27859 (pattern_is_ok_for_prologue): Account for the extra clobber.
27860 (construct_save_jarl): Likewise.
27861 * config/v850/v850.md (prolog pattern): Do not use this pattern
27862 for v850e's.
27863
278642003-04-04 Andreas Schwab <schwab@suse.de>
27865
27866 * stor-layout.c (layout_decl): Avoid syntax error in last change
27867 when PCC_BITFIELD_TYPE_MATTERS is defined but not
27868 EMPTY_FIELD_BOUNDARY.
27869
278702003-04-03 Jason Merrill <jason@redhat.com>
27871
27872 PR c/10175
27873 * jump.c (never_reached_warning): Revert patch of 2002-11-02.
27874 Look backwards for a line note.
27875
278762003-04-03 Neil Booth <neil@daikokuya.co.uk>
27877
27878 * fix-header.c (read_scan_file): Defer switch processing.
27879
278802003-04-03 Matt Austern <austern@apple.com>
27881
27882 * cpppch.c (reset_ht): Remove.
27883 (cpp_read_state): Remove loop to reset hashtable identifiers.
27884 * ggc-common.c (gt_pch_save): Add call to gt_pch_fixup_stringpool
27885 after pch file is written.
27886 * ggc.h (gt_pch_fixup_stringpool): Declare.
27887 * stringpool.c (ht_copy_and_clear): Define. Callback. Copy
27888 hashnode's value to another hashtable, then clear the original.
27889 (saved_ident_hash): Define.
27890 (gt_pch_save_stringpool): Create saved_ident_hash, use it to
27891 store definitions in ident_hash, and clear ident_hash.
27892 (gt_pch_fixup_stringpool): Define. Restore definitions from
27893 saved_ident_hash to ident_hash, then destroy saved_ident_hash.
27894
27895Thu Apr 3 22:27:40 CEST 2003 Jan Hubicka <jh@suse.cz>
27896
27897 * cfgrtl.c (update_bb_for_insn): Do not set block for barriers.
27898
278992003-04-03 Eric Botcazou <ebotcazou@libertysurf.fr>
27900
27901 PR optimization/10157
27902 * gcse.c (can_copy_p): Rename it to can_copy.
27903 (can_copy_init_p): Remove.
27904 (compute_can_copy): Use can_copy instead of can_copy_p.
27905 (can_copy_p): New exported function. Call compute_can_copy.
27906 (hash_scan_set): Use it.
27907 (gcse_main): Don't call compute_can_copy.
27908 (bypass_jumps): Don't call compute_can_copy.
27909 * rtl.h (can_copy_p): Declare.
27910 * loop.c (scan_loop): Don't move the source and add a reg-to-reg
27911 copy if the mode doesn't support copy operations.
27912
279132003-04-03 Jason Merrill <jason@redhat.com>
27914
27915 * Makefile.in (unstrap): Also remove stage_last.
27916
27917 * dwarf2out.c (lookup_filename): Don't check for "<internal>".
27918 (dwarf2out_source_line): Don't do anything if line==0.
27919
27920 * stor-layout.c (do_type_align): New fn, split out from...
27921 (layout_decl): ...here. Do all alignment calculations for
27922 FIELD_DECLs here.
27923 (update_alignment_for_field): Not here.
27924 (start_record_layout, debug_rli): Remove unpadded_align.
27925 * tree.h (struct record_layout_info_s): Remove unpadded_align.
27926 * c-decl.c (finish_enum): Don't set DECL_SIZE, DECL_ALIGN
27927 or DECL_MODE on the CONST_DECLs.
27928 (finish_struct): Don't mess with DECL_ALIGN.
27929
27930Thu Apr 3 18:57:19 CEST 2003 Jan Hubicka <jh@suse.cz>
27931
27932 * i386.c (print_operand): Do not bypass output_addr_const at flag_pic.
27933
27934Thu Apr 3 17:08:09 2003 J"orn Rennecke <joern.rennecke@superh.com>
27935
27936 * sh.c (sh_function_ok_for_sibcall): Return 0 if the current
27937 function is an interrupt handler.
27938
27939 * sh.c (sh_expand_epilogue): Avoid clash of temp register for
27940 restoring target registers with EH_RETURN_STACKADJ_RTX; use
27941 multiple registers in round-robin fashion.
27942
279432003-04-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
27944
27945 * gengtype-lex.l (IWORD): Add CHAR_BITFIELD.
27946 * system.h (CHAR_BITFIELD): New.
27947
279482003-04-03 Kazu Hirata <kazu@cs.umass.edu>
27949
27950 * config/h8300/h8300.md (a peephole2): Generalize to accept GT
27951 and LE.
27952 (another peephole2): Likewise.
27953
279542003-04-03 Nick Clifton <nickc@redhat.com>
27955
27956 * config/sparc/sol2-bi.h (ASM_CPU64_DEFAULT_SPEC): Add -TSO.
27957 (DEF_ARCH64_SPEC): Likewise.
27958
27959Thu Apr 3 09:53:40 CEST 2003 Jan Hubicka <jh@suse.cz>
27960
27961 * i386.c (constant_address_p): Use legitimate_constant_p.
27962 (legitimate_address_p): Do not use CONSTANT_ADDRESS_P.
27963
279642003-04-02 Kazu Hirata <kazu@cs.umass.edu>
27965
27966 * config/h8300/h8300-protos.h: Add a prototype for
27967 gtle_operator.
27968 * config/h8300/h8300.c (gtle_operator): New.
27969 * config/h8300/h8300.h (PREDICATE_CODES): Add an entry for
27970 gtle_operator.
27971 * config/h8300/h8300.md (a peephole2): Generalize to accept GT
27972 and LE.
27973
279742003-04-02 Richard Henderson <rth@redhat.com>
27975
27976 * libgcc-std.ver (_Unwind_GetCFA): New.
27977 * unwind-dw2.c (_Unwind_GetCFA): New.
27978 * unwind-libunwind.c (_Unwind_GetCFA): New.
27979 * unwind-sjlj.c (_Unwind_GetCFA): New.
27980 * unwind.h: Declare it.
27981
27982Thu Apr 3 00:31:21 CEST 2003 Jan Hubicka <jh@suse.cz>
27983
27984 PR inline-asm/8088
27985 * i386.c (ix86_hard_regno_mode_ok): Return 0 for MMX/SSE registers
27986 when MMX/SSE is not available.
27987
279882003-04-02 Mike Stump <mrs@apple.com>
27989
27990 * doc/install.texi (Specific): Update pointers to apple.com.
27991
27992Thu Apr 3 00:18:49 CEST 2003 Jan Hubicka <jh@suse.cz>
27993
27994 * i386.c (override_options): Disable red zone by default on i386.
27995 (compute_frame_layout, ix86_force_to_memory, ix86_free_from_memory):
27996 Do not test TARGET_64BIT together with TARGET_RED_ZONE
27997
279982003-04-02 Kazu Hirata <kazu@cs.umass.edu>
27999
28000 * config/h8300/h8300.md (a peephole2): Tighten the condition.
28001
280022003-04-02 Richard Henderson <rth@redhat.com>
28003
28004 * longlong.h (umul_ppmm) [alpha]: Use __builtin_alpha_umulh.
28005
280062003-04-02 Kazu Hirata <kazu@cs.umass.edu>
28007
28008 * config/h8300/h8300.md (a peephole2): New.
28009
280102003-04-02 Richard Henderson <rth@redhat.com>
28011
28012 * except.c (sjlj_find_directly_reachable_regions): Recognize when
28013 must-not-throw region has been deleted.
28014
280152003-04-02 Richard Henderson <rth@redhat.com>
28016
28017 * dwarf2out.c (output_call_frame_info): Ignore fde->nothrow as an
28018 optimization when flag_exceptions not enabled.
28019
280202003-04-02 Vladimir Makarov <vmakarov@redhat.com>
28021
28022 * config/rs6000/rs6000.c
28023 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Redefine the
28024 macros.
28025 (rs6000_issue_rate): Add case for 8540.
28026 (rs6000_use_sched_lookahead): New function.
28027
28028 * config/rs6000/8540.md: Rename SIU units into SU ones and MIU
28029 units into MU ones.
28030 (ppc8540_branch, ppc8540_cr_logical): Add one cycle in the
28031 reservation before retirement.
28032 (ppc8540_multiply, ppc8540_load, ppc8540_store,
28033 ppc8540_simple_float, ppc8540_vector_load, ppc8540_vector_store):
28034 Remove additional cycle in the reservation before retirement.
28035 (ppc8540_mfcr, ppc8540_mtcrf, ppc8540_mtjmpr): Add missed
28036 reservation of ppc8540_issue.
28037
280382003-04-02 Andreas Schwab <schwab@suse.de>
28039
28040 * real.c (decode_ieee_single): Fix decoding of SNaN bit.
28041
280422003-04-01 Richard Henderson <rth@redhat.com>
28043
28044 * except.c (convert_from_eh_region_ranges_1): Smash REG_EH_REGION
28045 notes for nothrow calls if flag_forced_unwind_exceptions.
28046 (build_post_landing_pads): Mind flag_forced_unwind_exceptions.
28047 (sjlj_find_directly_reachable_regions): Likewise.
28048 (reachable_handlers): Likewise.
28049 (can_throw_external): Likewise.
28050 (collect_one_action_chain): Record cleanups after catch-all and
28051 must-not-throw if flag_forced_unwind_exceptions.
28052 * flags.h (flag_forced_unwind_exceptions): Declare.
28053 * toplev.c (flag_forced_unwind_exceptions): New.
28054 (lang_independent_options): Add it.
28055 * doc/invoke.text: Add it.
28056
280572003-04-01 David Mosberger <davidm@hpl.hp.com>
28058
28059 * config/ia64/crti.asm: Clean up trailing whitespace.
28060 Remove trailing hashes (#) from identifiers.
28061
28062 * config/ia64/crtn.asm: Ditto.
28063
28064 * config/ia64/crtend.asm: Remove trailing hashes (#) from
28065 identifiers.
28066 (__do_global_ctors_aux): Align to 32-byte boundary. Add unwind
28067 directives. Drop explicit bundling---it just makes the code
28068 harder to read. Don't save/restore gp needlessly.
28069
28070 * config/ia64/crtbegin.asm: Remove trailing hashes (#) from
28071 identifiers (they're only needed if the identifier would clash
28072 with a register name otherwise).
28073 (__do_global_dtors_aux): Align to 32-byte boundary. Add unwind
28074 directives. Drop explicit bundling---it just makes the code
28075 harder to read.
28076 (__do_jv_register_classes): Ditto.
28077 (.fini_array): Remove "progbits" (newer
28078 assemblers don't like wrong section-types).
28079 (.init_array): Ditto.
28080
280812003-04-01 Roger Sayle <roger@eyesopen.com>
28082
28083 PR fortran/9974
28084 * gcse.c (reg_killed_on_edge): New function to test whether the
28085 given reg is overwritten by any instruction queued on an edge.
28086 (bypass_block): Ignore substitutions killed on incoming edges.
28087 Don't bypass outgoing edges that have queued instructions.
28088
280892003-04-01 Alexandre Oliva <aoliva@redhat.com>
28090
28091 * real.h (EXP_BITS): Make room for...
28092 (struct real_value): ... added canonical bit.
28093 (struct real_format): Added pnan.
28094 (mips_single_format, mips_double_format, mips_extended_format,
28095 mips_quad_format): New.
28096 * real.c: Copy p to pnan in all formats.
28097 (get_canonical_qnan, get_canonical_snan): Set canonical bit.
28098 (real_nan): Use pnan to compute significand's shift.
28099 (real_identical): Disregard significand in canonical
28100 NaNs.
28101 (real_hash): Likewise. Take signalling into account.
28102 (encode_ieee_single, encode_ieee_double, encode_ieee_quad):
28103 Disregard significand bits in canonical NaNs. Set all bits of
28104 canonical NaN if !qnan_msb_set.
28105 (encode_ibm_extended, decode_ibm_extended): Likewise. Use
28106 qnan_msb_set to tell the base double format.
28107 (ibm_extended_format): Use 53 as pnan.
28108 (mips_single_format, mips_double_format, mips_extended_format,
28109 mips_quad_format): Copied from the corresponding ieee/ibm
28110 formats, with qnan_msb_set false.
28111 * config/mips/iris6.h (MIPS_TFMODE_FORMAT): Use mips_extended_format.
28112 * config/mips/linux64.h (MIPS_TFMODE_FORMAT): Use mips_quad_format.
28113 * config/mips/mips.c (override_options): Use mips_single_format
28114 and mips_double_format. Default TFmode to mips_quad_format.
28115 * config/mips/t-linux64 (tp-bit.c): Define QUIET_NAN_NEGATED.
28116 * config/mips/t-irix6: Likewise.
28117 * config/mips/t-mips (fp-bit.c, dp-bit.c): Likewise.
28118 * config/fp-bit.c (pack_d, unpack_d): Obey it.
28119
281202003-04-01 Geoffrey Keating <geoffk@apple.com>
28121
28122 * unwind-dw2-fde-darwin.c (DESTRUCTOR_MAY_BE_CALLED_LIVE): New.
28123 (live_image_destructor): Reset image to initial state.
28124 (examine_objects): Set DESTRUCTOR_MAY_BE_CALLED_LIVE.
28125
281262003-04-01 Eric Botcazou <ebotcazou@libertysurf.fr>
28127
28128 * config/sparc/sparc.c (input_operand): Accept bare
28129 CONSTANT_P_RTX operands.
28130
281312003-04-01 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
28132
28133 * gcse.c (struct ls_expr): Added pattern_regs field.
28134 (ldst_entry): Initialize it.
28135 (extract_mentioned_regs, extract_mentioned_regs_helper): New.
28136 (store_ops_ok): Use regs precomputed by them.
28137 (find_loads, store_killed_in_insn, load_kills_store): Change return
28138 type to bool.
28139 (store_killed_before, store_killed_after): Take position of register
28140 set in account.
28141 (reg_set_info): Store position of the setter.
28142 (gcse_main): Enable store motion.
28143 (mems_conflict_for_gcse_p): Enable load motion of non-symbol mems.
28144 (pre_insert_copy_insn, update_ld_motion_stores, insert_store): Prevent rtl
28145 sharing.
28146 (simple_mem): Enable store motion of non-symbol mems.
28147 (regvec): Type changed.
28148 (LAST_AVAIL_CHECK_FAILURE): New.
28149 (compute_store_table_current_insn): New.
28150 (build_store_vectors): Computation of availability and anticipatability
28151 moved ...
28152 (compute_store_table, find_moveable_store): ... here.
28153 (delete_store): Remove senseless comment.
28154 (store_motion): Reorganize.
28155
281562003-04-01 Kevin Buettner <kevinb@redhat.com>
28157
28158 * config/mips/mips.c (override_options): Provide mappings for
28159 HI_REGNUM and LO_REGNUM.
28160 * config/mips/mips.h (MD_DBX_FIRST): Define.
28161
281622003-04-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
28163
28164 * combine.c (merge_outer_ops): Fix typo.
28165
28166 * varasm.c (make_decl_one_only): Revert 2003-03-09 patch.
28167
281682003-04-01 David Edelsohn <edelsohn@gnu.org>
28169
28170 * config/rs6000/{40x.md,603.md,6xx.md,7450.md,7xx.md,mpc.md,
28171 power4.md,rios1.md,rios2.md,rs64.md}: Change mult_compare to
28172 imul_compare. Add lmul_compare.
28173 * config/rs6000/power4.md: Bump some latencies. Model extra cycle
28174 in second pair of dispatch slots. Model stores more accurately.
28175 Tweak multiply model. Add bypasses for CR instructions dependent
28176 on complicated compares.
28177 * config/rs6000/rs6000.md (mulsi3): Name imul_compare patterns.
28178 (muldi3): Add lmul_compare patterns.
28179 * config/rs6000/rs6000.c (rs6000_variable_issue): Move FPLOAD_UX
28180 and FPSTORE_UX to split instructions and add COMPARE,
28181 DELAYED_COMPARE, IMUL_COMPARE, LMUL_COMPARE, IDIV, LDIV.
28182 (rs6000_adjust_cost): Add IMUL_COMPARE and LMUL_COMPARE.
28183 (rs6000_rtx_costs): Separate POWER4 multiply case.
28184
281852003-04-01 Ulrich Weigand <uweigand@de.ibm.com>
28186
28187 * config/s390/s390.c (s390_fixup_clobbered_return_reg):
28188 Do nothing if __builtin_return_address was not used.
28189
28190Tue Apr 1 18:18:23 CEST 2003 Jan Hubicka <jh@suse.cz>
28191
28192 * i386.md (test patterns): Allow memory operand in operand1.
28193
3bfd98c4 281942003-04-01 Aldy Hernandez <aldyh@redhat.com>
2a868fac
KH
28195
28196 * testsuite/gcc.c-torture/execute/simd-3.c: New.
28197
28198 * expr.c (expand_expr): Handle VECTOR_CST.
28199 (const_vector_from_tree): New.
28200
28201 * varasm.c (output_constant): Handle VECTOR_CST.
28202
28203 * c-typeck.c (digest_init): Build a vector constant from a
28204 VECTOR_TYPE.
28205
28206 * config/rs6000/rs6000.c: Remove prototype for
28207 easy_vector_constant.
28208 (easy_vector_constant): Add mode parameter. Rewrite to handle
28209 more easy constants.
28210 (rs6000_emit_move): Pass mode to easy_vector_constant.
28211 Call emit_easy_vector_insn for SPE V2SI vector constant moves.
28212 (emit_easy_vector_insn): New.
28213 (easy_vector_same): New.
28214 (EASY_VECTOR_15): New macro.
28215 (EASY_VECTOR_15_ADD_SELF): New macro.
28216 (bdesc_2arg): Rename to xorv2si3.
28217 (easy_vector_constant_add_self): New.
28218 (input_operand): Allow vector constants.
28219
28220 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
28221 easy_vector_constant, easy_vector_constant_add_self.
28222 (EXTRA_CONSTRAINT): Add 'W'.
28223
28224 * config/rs6000/rs6000-protos.h: Add prototype for
28225 easy_vector_constant, emit_easy_vector_insn.
28226
28227 * config/rs6000/altivec.md (xorv8hi3): New.
28228 (xorv16qi3): New.
28229 Remove all _const0 patterns.
28230 (movv4si_internal): Rewrite to use code. Add vector constant to
28231 vector alternative. Add splitter.
28232 (movv8hi_internal): Same.
28233 (movv16qi_internal): Same.
28234 (movv4sf_internal): Same.
28235 Change the unspecs for vspltis* to use constants.
28236
28237 * config/rs6000/spe.md ("xorv4hi3"): New.
28238 ("spe_evxor"): Rename to xorv2si3.
28239 ("xorv1di3"): New.
28240 Remove all _const0 patterns.
28241 (movv2si_internal): Rewrite to use code. Add vector constant to
28242 alternatives. Add splitter.
28243 (movv4hi_internal): Add vector constant to alternatives.
28244 (movv1di_internal): Same.
28245 (movv2sf_internal): Same.
28246
282472003-03-31 Mark Mitchell <mark@codesourcery.com>
28248
28249 PR c/9936
28250 * c-decl.c (grokdeclarator): Clear SAVE_EXPR_CONTEXT for
28251 variably-sized arrays in parameters.
28252 (set_save_expr_context): New function.
28253 (c_expand_body): Use it, via walk_tree.
28254
282552003-03-31 Eric Christopher <echristo@redhat.com>
28256
28257 * combine.c (can_combine_p): Allow ZERO_EXTRACT and STRICT_LOW_PART.
28258 (combinable_i3pat): Remove call to expand_field_assignment and
28259 #if 0'd code.
28260
282612003-03-31 Mark Mitchell <mark@codesourcery.com>
28262
28263 PR c++/10278
28264 * c-common.c (finish_label_address_expr): Handle the
28265 error_mark_node.
28266
282672003-03-31 Richard Henderson <rth@redhat.com>
28268
28269 * real.c (real_identical): Reorg so as to not compare
28270 signalling for normals.
28271
282722003-03-31 Stephane Carrez <stcarrez@nerim.fr>
28273
28274 * config/m68hc11/m68hc11.c (hard_reg_operand): Check the mode.
28275
282762003-03-31 Stephane Carrez <stcarrez@nerim.fr>
28277
28278 * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Don't rely on REG_WAS_0
28279 notes as they are boggus.
28280 (m68hc11_gen_movqi): Likewise.
28281
282822003-03-31 Stephane Carrez <stcarrez@nerim.fr>
28283
28284 * config/m68hc11/m68hc11.c (expand_prologue): For an interrupt handler
28285 save the soft registers after the frame pointer so that gdb can unwind
28286 the frame more easily.
28287 (expand_epilogue): Likewise in opposite order; allow to use X register
28288 as scratch if the return value is by reference.
28289
282902003-03-31 Jason Merrill <jason@redhat.com>
28291
28292 PR java/10145
28293 * stor-layout.c (update_alignment_for_field): Respect
28294 DECL_USER_ALIGN for zero-length bitfields, too.
28295 * c-decl.c (finish_struct): Don't set DECL_ALIGN for normal
28296 fields.
28297
282982003-03-31 Matt Austern <austern@apple.com>
28299
28300 * cpppch.c (struct cpp_savedstate): Add defs and n_defs members.
28301 (count_defs): Keep track of number of defs as well as total size.
28302 (write_defs): Put every definition in cpp_savedstate's defs array.
28303 (comp_hashnode): Define. Comparison function for qsort.
28304 (cpp_write_pch_deps): Sort definitions before writing them.
28305 (struct ht_node_list): Define. Like cpp_savedstate but simpler.
28306 (collect_ht_nodes): Define.
28307 (cpp_valid_state): When verifying that undefined identifiers in
28308 the pch file are still undefined, read a sorted list of undefined
28309 identifiers, collect all defined identifiers into a sorted list,
28310 and walk through both lists to make sure there's no match.
28311
283122003-03-31 Kazu Hirata <kazu@cs.umass.edu>
28313
28314 * config/h8300/h8300.md (a peephole2): New.
28315
283162003-03-31 Michael Matz <matz@suse.de>
28317
28318 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Change 1 into 0.
28319
283202003-03-31 Segher Boessenkool <segher@koffie.nl>
28321
28322 PR target/10177
28323 * config/rs6000/rs6000.h (HARD_REGNO_RENAME_OK): New.
28324 * config/rs6000/rs6000.c (compute_vrsave_mask): Don't mark
28325 all call-clobbered registers as used.
28326
283272003-03-31 Michael Matz <matz@suse.de>
28328
28329 * cppexp.c (cpp_classify_number): Accept '.' after "0x".
28330 * testsuite/gcc.dg/cpp/c99-hexfloat-3.c: New file.
28331
283322003-03-31 Nathan Sidwell <nathan@codesourcery.com>
28333
28334 * gcov.c: Add -a & -u options.
28335 (struct arc_info): Add local_span, is_call_non_return,
28336 is_nonlocal_return, is_unconditional flags, remove is_call flag.
28337 (struct block_info): Add flags, is_call_site, is_nonlocal_return
28338 members. Make encodings a union with span member.
28339 (struct function_info): Add blocks_executed, line, src, line_next
28340 members.
28341 (struct coverage_info): Make branches a union with blocks member.
28342 (struct source_info): Add functions member.
28343 (object_summary, program_count): New global variables.
28344 (flag_all_blocks, flag_unconditional): New flags.
28345 (find_source, output_branch_count): New functions.
28346 (print_usage): Adjust.
28347 (options): Adjust.
28348 (process_args): Adjust.
28349 (read_graph_file) <GCOV_TAG_FUNCTION>: Adjust.
28350 <GCOV_TAG_BLOCKS>: Read flags.
28351 <GCOV_TAG_LINES>: Adjust.
28352 (read_count_file): Process SUMMARY tags.
28353 (solve_flow_graph): Set is_unconditional and clear is_call_site
28354 appropriately.
28355 (add_branch_counts): Adjust. Don't count unconditional branches.
28356 (add_line_counts): Deal with all-blocks mode, accumulate block
28357 coverage.
28358 (accumulate_line_counts): Adjust, generate local spanning tree for
28359 all-blocks mode.
28360 (output_lines): Adjust.
28361 * profile.c (branch_prob): Alter GCOV_FUNCTION_TAG record.
28362 * doc/gcov.texi: Document.
28363
283642003-03-31 Kazu Hirata <kazu@cs.umass.edu>
28365
28366 * config/h8300/h8300.md: Organize peephole2's that transform
28367 (compare (reg:HI) (const_int)).
28368
283692003-03-31 Roger Sayle <roger@eyesopen.com>
28370
28371 * emit-rtl.c (dconstm2, dconsthalf): New real constants.
28372 (init_emit_once): Initialize dconstm2 and dconsthalf here.
28373 * real.h (dconstm2, dconsthalf): Add prototypes here.
28374 * real.c (real_sqrt): Use dconsthalf rather than local copy.
28375 * builtins.c (fold_builtin): When optimizing sqrt(exp(x)) as
28376 exp(x/2.0) remember to fold the division if possible.
28377 Fold sin(0.0) as 0.0, cos(0.0) as 1.0, pow(x,1.0) as x,
28378 pow(x,-1.0) as 1.0/x, pow(x,2.0) as x*x, pow(x,-2.0) as
28379 1.0/(x*x) and pow(x,0.5) as sqrt(x).
28380
283812003-03-31 Kazu Hirata <kazu@cs.umass.edu>
28382
28383 * config/h8300/h8300.md (a new peephole2): New.
28384
283852003-03-31 Richard Sandiford <rsandifo@redhat.com>
28386
28387 * gcse.c (simple_mem): Return false for floating-point accesses
28388 if flag_float_store is true.
28389
283902003-03-30 Roger Sayle <roger@eyesopen.com>
28391
28392 * gcse.c (gcse_constant_p): New function to identify constants
28393 suitable for constant propagation, including COMPARE with two
28394 integer constant arguments.
28395 (hash_scan_set): Use gcse_constant_p.
28396 (find_avail_set): Likewise.
28397 (cprop_insn): Likewise.
28398 (do_local_cprop): Likewise.
28399 (find_implicit_sets): Likewise.
28400 (find_bypass_set): Likewise.
28401
284022003-03-30 Matt Kraai <kraai@alumni.cmu.edu>
28403
28404 * except.h: Remove definition of varray_type.
28405
284062003-03-30 Richard Henderson <rth@redhat.com>
28407
28408 PR opt/10011, opt/10252:
28409 * toplev.c (rest_of_compilation): Run purge_builtin_constant_p
28410 before post-gcse cse pass.
28411
284122003-03-30 Roger Sayle <roger@eyesopen.com>
28413
28414 * dojump.c (do_jump): Copy SUBREGs into a pseudo for comparison.
28415
284162003-03-30 DJ Delorie <dj@redhat.com>
28417
28418 * profile.c (instrument_edges): Make sure any newly created
28419 jump insns have correct jump label info.
28420
284212003-03-30 Richard Henderson <rth@redhat.com>
28422
28423 * cfgbuild.c (make_edges): Use tablejump_p.
28424 * cfgcleanup.c (label_is_jump_target_p): Likewise.
28425 * cfglayout.c (cfg_layout_can_duplicate_bb_p): Likewise.
28426 * cfgrtl.c (flow_delete_block_noexpunge): Likewise.
28427 (try_redirect_by_replacing_jump): Likewise.
28428 (redirect_edge_and_branch): Likewise.
28429 * cse.c (fold_rtx): Likewise.
28430 * jump.c (delete_related_insns): Likewise.
28431 * rtlanal.c (get_jump_table_offset): Likewise.
28432 * ssa-ccp.c (ssa_ccp_df_delete_unreachable_insns): Likewise.
28433
284342003-03-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
28435
28436 * Makefile.in (STRICT_WARN): Don't warn for ISO C constructs.
28437 (STRICT2_WARN): Likewise.
28438
284392003-03-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
28440
28441 PR other/6955
28442 * collect2.c (collect_wait): Use WCOREDUMP and fix output message.
28443 * system.h (WCOREDUMP, WCOREFLG): Define if necessary.
28444
284452003-03-30 Richard Henderson <rth@redhat.com>
28446
28447 PR c/10083
28448 * config/alpha/alpha.md (umuldi3_highpart): Change to expander;
28449 don't zero_extend const inputs.
28450
284512003-03-30 Kazu Hirata <kazu@cs.umass.edu>
28452
28453 * reload1.c (reload_cse_move2add): Fix a comment typo.
28454
284552003-03-30 Kazu Hirata <kazu@cs.umass.edu>
28456
28457 * config/h8300/h8300.md (a peephole2): Remove useless code.
28458
284592003-03-29 Kazu Hirata <kazu@cs.umass.edu>
28460
28461 * config/h8300/h8300.md (*iorsi3_and_ashift): New.
28462 (*iorsi3_and_lshiftrt): Likewise.
28463 (*iorsi3_zero_extract): Likewise.
28464
284652003-03-29 Kazu Hirata <kazu@cs.umass.edu>
28466
28467 * config/h8300/h8300.md (*insv_si_8_8): New.
28468 (*insv_si_8_8_lshiftrt_8): Likewise.
28469 (a peephole2): Likewise.
28470
284712003-03-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
28472
28473 * doc/contrib.texi: Add Eric Botcazou and Roger Sayle.
28474 Uniformly use bugfix instead of bug fix.
28475
284762003-03-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
28477
28478 PR doc/895
28479 * ONEWS: Remove those items that already appear in the EGCS
28480 release notes on our web pages.
28481
284822003-03-29 Alan Modra <amodra@bigpond.net.au>
28483
28484 * config/rs6000/rs6000.h (FUNCTION_VALUE_REGNO_P): Respect
28485 TARGET_HARD_FLOAT. Reformat.
28486 (FUNCTION_ARG_REGNO_P): Likewise, and remove unneeded casts.
28487
284882003-03-28 Albert Chin-A-Young <china@thewrittenword.com>
28489
28490 * gcc/fixinc/inclhack.def: Update solaris_mutex_init_1 to
28491 work on Solaris 2.5.1.
28492
284932003-03-28 Kazu Hirata <kazu@cs.umass.edu>
28494
28495 * config/h8300/h8300.md (*addsi3_and_r_1): Put under plus:SI
28496 section of h8300.md
28497 (*addsi3_and_nor_r_1): Likewise.
28498
284992003-03-29 Ulrich Weigand <uweigand@de.ibm.com>
28500
28501 * config/s390/s390.c (s390_emit_prologoue): Make sure backchain is
28502 set up before any trapping memory access if flag_non_call_exceptions.
28503
285042003-03-29 Alan Modra <amodra@bigpond.net.au>
28505
28506 * reload1.c (reload_as_needed): Allow a USE in asm reloads.
28507
28508 * loop.c: (find_mem_in_note_1, find_mem_in_note): Comment.
28509
285102003-03-28 Nathanael Nerode <neroden@gcc.gnu.org>
28511
28512 * configure.in: Clarify comments.
28513 * configure: Regenerate.
28514
285152003-03-28 Ulrich Weigand <uweigand@de.ibm.com>
28516
28517 * config/s390/s390.md ("literal_pool_31"): Output pool anchor
28518 label even if pool empty when generating PIC.
28519 ("literal_pool_31", "literal_pool_64"): Coding style cleanup.
28520
285212003-03-28 Kazu Hirata <kazu@cs.umass.edu>,
28522 Dhananjay Deshpande <dhananjayd@kpit.com>
28523
28524 PR target/10205
28525 * config/h8300/h8300.c (h8300_initial_elimination_offset):
28526 Correct the offset computation when TARGET_NORMAL.
28527
285282003-03-28 Eric Botcazou <ebotcazou@libertysurf.fr>
28529
28530 PR target/10067
28531 * config/sparc/sparc.md (jump pattern): Correct order
28532 when issuing the annuling marker.
28533
285342003-03-28 Eric Botcazou <ebotcazou@libertysurf.fr>
28535
28536 PR c/8281
28537 * config/sparc/sparc.md (movdi_insn_sp32_v9): Remove 'f-f' alternative.
28538 (movdi reg/reg split): Match only on sparc32, and v9 when int regs.
28539
285402003-03-28 Alan Modra <amodra@bigpond.net.au>
28541
28542 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): Remove unnecessary
28543 globalize_label.
28544 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
28545 * config/i960/i960.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
28546 * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
28547 * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
28548 * config/mips/linux.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
28549 * config/sparc/sparc.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
28550 * config/v850/v850.c (v850_output_aligned_bss): Likewise.
28551
285522003-03-28 Alan Modra <amodra@bigpond.net.au>
28553
28554 * loop.c: (find_mem_in_note_1, find_mem_in_note): New functions.
28555 (replace_loop_mems): Add "written" param. Remove invalid REG_EQUAL
28556 notes after hoisting.
28557 (load_mems): Adjust replace_loop_mems call.
28558
285592003-03-28 Eric Botcazou <ebotcazou@libertysurf.fr>
28560 Richard Henderson <rth@redhat.com>
28561
28562 PR target/10114 and PR target/10084
28563 * dwarf2out.c (mem_loc_descriptor): Handle LO_SUM.
28564
285652003-03-27 Richard Henderson <rth@redhat.com>
28566
28567 * config/alpha/alpha.md (adddi_er_high_l): Valid only after reload.
28568
285692003-03-27 Roger Sayle <roger@eyesopen.com>
28570
28571 * fold-const.c (fold_inf_compare): New function to simplify FP
28572 comparisons against +Infinity or -Infinity.
28573 (fold): Optimize floating point comparisons against Infs and NaNs.
28574
285752003-03-27 Janis Johnson <janis187@us.ibm.com>
28576
28577 * libgcov.c: Provide only dummy functions if libc is not available.
28578
285792003-03-27 Richard Henderson <rth@redhat.com>
28580
28581 * real.h (struct real_value): Add signalling.
28582 (EXP_BITS): Decrement.
28583 * real.c (get_canonical_qnan): Don't set MSB-1.
28584 (get_canonical_snan): Likewise. Set signalling.
28585 (real_identical): Compare signalling.
28586 (round_for_format): Remove force-one-bit on code.
28587 (real_nan): Likewise. Set signalling.
28588 (encode_ieee_single): Add force-one-bit code; honor signalling.
28589 (encode_ieee_double, encode_ieee_extended, encode_ieee_quad): Likewise.
28590 (decode_ieee_single): Set signalling.
28591 (decode_ieee_double, decode_ieee_extended, decode_ieee_quad): Likewise.
28592
285932003-03-27 Olivier Hainque <hainque@act-europe.fr>
28594
28595 PR ada/9953
28596 * ada/Makefile.in (gnatlib configuration for HPUX): Split
28597 the general section for HPUX into specific sections for
28598 HPUX 10 and HPUX 11. Fix the setting of TGT_LIB in the HPUX
28599 11 case.
28600
286012003-03-27 Glen Nakamura <glen@imodulo.com>
28602
28603 PR opt/10087
28604 * loop.c (loop_givs_reduce): Skip bivs with duplicate locations
28605 while incrementing giv.
28606 (record_biv): Check for duplicate biv locations and
28607 set (struct induction *) v->same if found.
28608
286092003-03-27 David Mosberger <davidm@hpl.hp.com>
28610
28611 * unwind-libunwind.c (uw_frame_state_for): Adjust for libunwind
28612 v0.9 API change: replace read of UNW_REG_HANDLER with
28613 unw_get_proc_info().
28614 (_Unwind_GetLanguageSpecificData): Replace read of UNW_REG_LSDA
28615 with unw_get_proc_info().
28616 (_Unwind_GetRegionStart): Replace UNW_REG_PROC_START with
28617 unw_get_proc_info().
28618
286192003-03-27 Vladimir Makarov <vmakarov@redhat.com>
28620
28621 * config/rs6000/8540.md: Use presence_set instead of absence_set.
28622
286232003-03-26 Richard Henderson <rth@redhat.com>
28624
28625 * c-decl.c (finish_function): Always defer if DECL_DECLARED_INLINE_P.
28626
286272003-03-26 Roger Sayle <roger@eyesopen.com>
28628
28629 PR bootstrap/10051, PR bootstrap/10169.
28630 * mips-tfile.c (init_file): Don't provide a static initializer.
28631 (initialize_init_file): Initialize the contents of init_file.
28632 (add_file): Call initialize_init_file if not already initialized.
28633
286342003-03-26 Ulrich Weigand <uweigand@de.ibm.com>
28635
28636 * config/s390/s390.c (s390_optimize_prolog): Do not save/restore
28637 registers used for global asm variables.
28638 (s390_frame_info, s390_arg_frame_offset): Likewise.
28639 (s390_emit_prologue, s390_emit_epilogue): Likewise.
28640
286412003-03-26 Vladimir Makarov <vmakarov@redhat.com>
28642
28643 * config/rs6000/8540.md: New file.
28644
28645 * config/rs6000/{40x.md, 603.md, 6xx.md, 7450.md, 7xx.md, mpc.md,
28646 power4.md, rios1.md, rios2.md, rs64.md}: Add mult_compare to
28647 reservations for imul.
28648
28649 * config/rs6000/rs6000.md: Include 8540.md. Change
28650 delayed_compare onto mult_compare for insns generating
28651 multiplication.
28652 (mult_compare, fpsimple, brinc, vecdiv, veccmpsimple, vecfdiv):
28653 New type attribute values.
28654
28655 * config/rs6000/spe.md (*negsf2_gp, *abssf2_gpr): Use type
28656 fpsimple instead of fp.
28657 (*divsf3_gpr): Use type vecfdiv instead of fp.
28658 (spe_evfsabs, spe_evfsnabs, spe_evfsneg): Use type vecsimple
28659 instead of vecfloat.
28660 (spe_evfsdive): Use type vecfdiv instead of vecfloat.
28661 (spe_brinc): Use type brinc instead of veccomplex.
28662 (spe_evaddw, spe_evaddiw): Use type vecsimple instead of
28663 veccomplex.
28664 (spe_evdivws, spe_evdivwu): Use type vecdiv instead of veccomplex.
28665 (*movv2si_internal, *movv1di_internal, *movv4hi_internal,
28666 *movv2sf_internal): Define type attribute values for all
28667 alternatives.
28668 (cmpsfeq_gpr, cmpsfgt_gpr, cmpsflt_gpr): Use type veccmp instead
28669 of fpcompare.
28670 (tstsfeq_gpr, tstsfgt_gpr, tstsflt_gpr): Use type veccmpsimple
28671 instead of fpcompare.
28672
286732003-03-26 David Edelsohn <edelsohn@gnu.org>
28674
28675 * config/rs6000/power4.md: Allow delay between dispatch and
28676 function units for simple instructions. Correct store units.
28677 Allow branch to occupy as many dispatch slots as necessary.
28678
286792003-03-26 Jakub Jelinek <jakub@redhat.com>
28680
28681 * config/ia64/ia64.c (ia64_expand_op_and_fetch): Fix comment.
28682 (ia64_expand_compare_and_swap): Use always DImode ar.ccv,
28683 zero extend old to it.
28684 * config/ia64/ia64.md (cmpxchg_acq_si): Remove mode from ccv
28685 operand.
28686
286872003-03-26 Eric Botcazou <ebotcazou@libertysurf.fr>
28688
28689 PR target/7784
28690 * reload.c (find_reloads_address): Handle
28691 (PLUS (PLUS (REG) (REG)) (CONST_INT)) form for
28692 all base registers.
28693
286942003-03-25 Marcelo Abreu <mmabreu@inf.ufrgs.br>
28695
28696 PR other/10203
28697 * version.c: Reference the GCC web site in the URL.
28698
286992003-03-26 Alan Modra <amodra@bigpond.net.au>
28700
28701 * c-incpath.c (add_standard_paths): Add both "translated" and
28702 non-translated header paths.
28703
287042003-03-25 Loren James Rittle <ljrittle@acm.org>
28705
28706 * doc/install.texi (*-*-freebsd*): Update with known status.
28707
287082003-03-21 Jason Merrill <jason@redhat.com>
28709
28710 PR optimization/10171
28711 * unroll.c (unroll_loop): Don't delete the jump at the end unless
28712 we also delete a jump at the beginning.
28713
287142003-03-25 Stephane Carrez <stcarrez@nerim.fr>
28715
28716 * doc/contrib.texi (Contributors): Mention self as 68HC11/68HC12
28717 contributor.
28718
28719Tue Mar 25 20:35:51 CET 2003 Jan Hubicka <jh@suse.cz>
28720
28721 * i386.c (ix86_rtx_costs): For -fpic and x86-64 local symbolic
28722 constants are not expensive.
28723
28724Mon Mar 24 20:03:03 CET 2003 Jan Hubicka <jh@suse.cz>
28725
28726 PR opt/10056
28727 * cfglayout.c (fixup_reorder_chain): Fix dealing with the conditional
28728 jump jumping to the next instruction.
28729 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
28730
287312003-03-25 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
28732
28733 * doc/passes.texi (Passes): Properly document that we do not
28734 perform jump2 any longer; remove command-line option -dJ.
28735
287362003-03-25 Eric Botcazou <ebotcazou@libertysurf.fr>
28737
28738 PR optimization/8746
28739 * config/i386/i386.md (and promoting splitters): Disable HImode to
28740 SImode promoting when the sign bit matters and is not preserved, or
28741 when TARGET_FAST_PREFIX is true. Disable promoting when optimizing
28742 for size.
28743
287442003-03-24 Kazu Hirata <kazu@cs.umass.edu>
28745
28746 * config/h8300/h8300.md (a peephole2): Extend to support loads
28747 in QImode and HImode.
28748
287492003-03-24 Stephane Carrez <stcarrez@nerim.fr>
28750
28751 * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Add _call_far and
28752 _return_far
28753 (MULTILIB_OPTIONS): Don't multilib on -mlong-calls.
28754 (MULTILIB_EXCEPTIONS): Likewise.
28755 * config/m68hc11/m68hc11.md ("call"): Support far calls for 68HC11
28756 by calling some board support routine.
28757 ("call_value"): Likewise.
28758 ("*return_void"): Likewise for return.
28759 ("*return_16bit"): Likewise.
28760 ("*return_32bit"): Likewise.
28761 * config/m68hc11/m68hc11.h (ASM_DECLARE_FUNCTION_NAME): Generate .far
28762 for 68HC11 too.
28763 (DWARF2_ADDR_SIZE): Use 4 so that addresses can
28764 * config/m68hc11/m68hc11.c (m68hc11_override_options): Accept
28765 -mlong-calls for 68HC11.
28766 * config/m68hc11/larith.asm (declare_near): New macro.
28767 (__premain, ___negsi2, ___one_cmplsi2, ___ashlsi3): Use it.
28768 (___ashrsi3, ___lshrsi3, ___lshrhi3, ___lshlhi3): Likewise.
28769 (___rotrhi3, ___rotlhi3, ___ashrhi3, ___ashrqi3): Likewise.
28770 (___lshlqi3, __divmodhi4, ___mulqi3, ___mulhi3): Likewise.
28771 (__mulhi32): Likewise.
28772 (ret): Update macro for 68HC11.
28773 (__far_trampoline): Implement for 68HC11.
28774 (__call_a16, __call_a32, __return_void, __return_16): New support
28775 routines for 68HC11 memory bank switching calling support.
28776 (__return_32): Likewise.
28777
287782003-03-24 Neil Booth <neil@daikokuya.co.uk>
28779
28780 * toplev.c (independent_decode_option): Don't skip a 'Y' prefix.
28781
287822003-03-24 Janis Johnson <janis187@us.ibm.com>
28783
28784 * doc/install.texi (Testing): Mention test result links from build
28785 status pages.
28786
287872003-03-24 Mark Mitchell <mark@codesourcery.com>
28788
28789 * function.c (put_var_into_stack): Change bool parameter to int.
28790 (gen_mem_addressof): Likewise.
28791 * rtl.h (gen_mem_addressof): Likewise.
28792 * tree.h (put_var_into_stack): Likewise.
28793 * config/alpha/alpha.c (alpha_gp_save_rtx): Adjust call to
28794 gen_mem_addressof or put_var_into_stack.
28795 * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
28796 * config/ia64/ia64.c (spill_tfmode_operand): Likewise.
28797
287982003-03-24 Kazu Hirata <kazu@cs.umass.edu>
28799
28800 * config/h8300/h8300.md (a peephole2): New.
28801
288022003-03-24 Jakub Jelinek <jakub@redhat.com>
28803
28804 * dojump.c (do_jump): Handle UNSAVE_EXPR specially.
28805
288062003-03-24 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
28807
28808 * doc/contrib.texi (Contributors): Update Janis Johnson.
28809
288102003-03-23 Eric Botcazou <ebotcazou@libertysurf.fr>
28811
28812 PR target/10072
28813 * combine.c (simplify_if_then_else): Check that the mode
28814 has MODE_INT class before applying the (OP Z (mult COND C2))
28815 transformation.
28816
288172003-03-23 Eric Botcazou <ebotcazou@libertysurf.fr>
28818
28819 PR optimization/9414
28820 * config/sparc/sparc.md (widening peepholes): Use
28821 widen_memory_access instead of change_address.
28822
288232003-03-23 Mark Mitchell <mark@codesourcery.com>
28824
28825 PR c++/7086
28826 * c-typeck.c (c_mark_addressable): Adjust calls to
28827 put_var_into_stack.
28828 * expr.c (expand_expr): Likewise.
28829 * function.c (put_var_into_stack): Add rescan parameter. Do not
28830 call fixup_var_refs when rescan is false.
28831 (gen_mem_addressof): Likewise.
28832 (assign_parms): Adjust calls to put_var_into_stack.
28833 (setjmp_protect): Likewise.
28834 (setjmp_protect_args): Likewise.
28835 * rtl.h (gen_mem_addressof): Change prototype.
28836 * stmt.c (expand_decl): Adjust calls to put_var_into_stack.
28837 * tree.h (put_var_into_stack): Change prototype.
28838
288392003-03-23 Arpad Beszedes <beszedes@cc.u-szeged.hu>
28840
28841 PR middle-end/9967
28842 * builtins.c (expand_builtin_fputs): When optimizing for size,
28843 don't transform fputs into fwrite.
28844
288452003-03-23 Glen Nakamura <glen@imodulo.com>
28846
28847 PR c/8224
28848 * fold-const.c (extract_muldiv_1): Don't pass through type conversions
28849 when signedness changes for division or modulus.
28850
288512003-03-24 Alan Modra <amodra@bigpond.net.au>
28852
28853 * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_BSS): Remove unnecessary
28854 globalize_label.
28855
288562003-03-23 Roger Sayle <roger@eyesopen.com>
28857
28858 PR c/10178
28859 * stmt.c (expand_end_case_type): Check for overflow in range when
28860 determining whether to use a bit-test implementation.
28861
288622003-03-23 Richard Henderson <rth@redhat.com>
28863
28864 * cfgcleanup.c (try_optimize_cfg): Allow merging of tablejumps
28865 before flow2.
28866 * cfgrtl.c (try_redirect_by_replacing_jump): Similarly.
28867
288682003-03-23 Richard Henderson <rth@redhat.com>
28869
28870 PR opt/10116
28871 * ifcvt.c (find_if_block): Disallow tablejump insns outgoing
28872 from then_bb or else_bb after flow2.
28873
288742003-03-23 Zack Weinberg <zack@codesourcery.com>
28875
28876 * configure.in: Check whether it is necessary to link against
28877 libm to use ldexp.
28878 * configure: Regenerate.
28879 * Makefile.in: Add LDEXP_LIB substitution variable.
28880
288812003-03-23 Kazu Hirata <kazu@cs.umass.edu>
28882
28883 * config/h8300/h8300.md: Fix comment typos.
28884
288852003-03-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
28886
28887 * pa.c (output_cbranch): Fix typo in comment.
28888
288892003-03-22 Richard Henderson <rth@redhat.com>
28890
28891 * cfgcleanup.c (insns_match_p): Do not do EQUIV substitution
28892 after reload.
28893
288942003-03-22 DJ Delorie <dj at redhat dot com>,
28895 Bruce Korb <bkorb at gnu dot org>
28896
28897 * fixinc/inclhack.def (solaris_mutex_init_1): New; Fix
28898 buggy Solaris 2.6 mutex/cond initializers.
28899 (solaris_mutex_init): Rename to solaris_mutex_init_2.
28900 * fixinc/fixincl.x: Regenerate.
28901 * fixinc/tests/base/pthread.h: Update.
28902 * fixinc/fixincl.c(initialize): be explicit about the default case
28903 and indicate verbose level when being very, very verbose.
28904 * fixinc/check.tpl(VERBOSE): provide a means for passing the value in
28905
289062003-03-22 Andreas Jaeger <aj@suse.de>
28907
28908 * config/i386/i386.c (ix86_init_machine_status): Return value.
28909
289102003-03-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
28911
28912 * pa.c (output_cbranch, output_bb, output_bvb): Output nop for
28913 conditional branch to the following instruction. Use next_real_insn
28914 instead of next_active_insn.
28915 (output_dbra, output_movb, jump_in_call_delay): Use next_real_insn
28916 instead of next_active_insn.
28917
289182003-03-22 Ulrich Weigand <uweigand@de.ibm.com>
28919
28920 * config/s390/s390.md ("movti", "*movdi_31", "*movdf_31"): Use 'o'
28921 instead of 'm' constraint in forced-split alternatives.
28922 ("*adddi3_31", "*subdi3_31"): Likewise. Also, pass 0 instead of 1 as
28923 VALIDATE_ADDRESS parameter to operand_subword.
28924
289252003-03-22 Kazu Hirata <kazu@cs.umass.edu>
28926
28927 * config/h8300/h8300.c (notice_update_cc): Correctly handle
28928 the case where the set destination is STRICT_LOW_PART.
28929
289302003-03-22 Svein E. Seldal <Svein.Seldal@solidas.com>
28931
28932 * config/c4x/t-c4x (INSTALL_LIBGCC): Make gcc recognize a c33 as a
28933 c30 instead of a c40 processor.
28934
289352003-03-22 Alan Modra <amodra@bigpond.net.au>
28936
28937 * combine.c (simplify_comparison <AND>): Use gen_int_mode. Tidy.
28938
289392003-03-21 Zack Weinberg <zack@codesourcery.com>
28940
28941 * c-common.c: Include intl.h.
28942 (shadow_warning): Rewrite to allow better diagnostic translations.
28943 * c-common.h: Update prototype of shadow_warning. Declare sw_kind enum.
28944 * c-decl.c (warn_if_shadowing): Update calls to shadow_warning;
28945 use it throughout.
28946 * Makefile.in (c-common.o): Add intl.h.
28947
289482003-03-21 Nathanael Nerode <neroden@gcc.gnu.org>
28949
28950 * config.gcc: Remove 'float_format'.
28951
28952 * fixproto: Define NULL and size_t in generated stdlib.h and
28953 unistd.h. Kill unused required_stdlib_h, required_unistd_h.
28954 Rearrange file generation loop for readability. Generate time.h,
28955 string.h if missing.
28956 * tsystem.h: Include <string.h>, <time.h> unconditionally.
28957 * config.gcc: Blow away POSIX defines.
28958
289592003-03-22 Stephane Carrez <stcarrez@nerim.fr>
28960
28961 * config/m68hc11/m68hc11.md ("call_value"): Fix trap check.
28962
289632003-03-22 Stephane Carrez <stcarrez@nerim.fr>
28964
28965 * config/m68hc11/m68hc11.h (ASM_DECLARE_FUNCTION_NAME): Fix typo in
28966 writing .interrupt command.
28967 * config/m68hc11/m68hc11.md ("call"): Look at the symbol to see
28968 if it's a far or near function.
28969 ("call_value"): Likewise.
28970 * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Add far and
28971 near attributes.
28972 (m68hc11_handle_fntype_attribute): Accept attributes on methods.
28973 (m68hc11_override_options): Ignore -mlong-calls for 68HC11.
28974 (m68hc11_initial_elimination_offset): Set current_function_far
28975 according to attributes.
28976 (expand_prologue): Likewise.
28977 (trap_handler_symbol): New global to keep track of trap handlers.
28978 (m68hc11_encode_section_info): Mark symbol as far if needed; set
28979 trap symbol.
28980 (m68hc11_is_far_symbol): New function.
28981 (m68hc11_is_trap_symbol): New function.
28982 * config/m68hc11/m68hc11-protos.h (m68hc11_is_far_symbol): Declare.
28983 (m68hc11_is_trap_symbol): Declare.
28984
289852003-03-21 Jan Hubicka <jh@suse.cz>
28986
28987 * i386.c (ix86_compute_frame_layout): Recompute fast prologues
28988 only when amount of saved regs changed.
28989 (ix86_init_machine_status): Initialize use_fast_prologue_epilgoue_nregs.
28990 * i386.h (machine_function): New fields use_fast_prologue_epilgoue_nregs.
28991
289922003-03-21 Jan Hubicka <jh@suse.cz>
28993
28994 PR inline-asm/7916
28995 * function.c (instantiate_virtual_regs_lossage): New function.
28996 (instantiate_virtual_regs_1): Use it.
28997 (instantiate_virtual_regs): Do not continue in substition when insn has
28998 been deleted.
28999
290002003-03-21 Kazu Hirata <kazu@cs.umass.edu>
29001
29002 * combine.c (make_field_assignment): Fix a warning.
29003
290042003-03-21 Kazu Hirata <kazu@cs.umass.edu>
29005
29006 * config/h8300/h8300.md (*insv_si_1_n_lshiftrt_16): New.
29007
290082003-03-21 Dale Johannesen <dalej@apple.com>
29009
29010 * config/rs6000/rs6000.h (REG_ALLOC_ORDER): Increase
29011 priority for R2 on Darwin.
29012 (HARD_REGNO_MODE_OK): Don't accept R31 for DFmode.
29013
290142003-03-21 Kazu Hirata <kazu@cs.umass.edu>
29015
29016 * combine.c (make_field_assignment): Remove unnecessary AND
29017 when storing into zero_extract.
29018
290192003-03-21 Zack Weinberg <zack@codesourcery.com>
29020
29021 * aclocal.m4 (gcc_AC_EXAMINE_OBJECT, gcc_AC_C_FLOAT_FORMAT): Delete.
29022 * configure.in: Don't call gcc_AC_C_FLOAT_FORMAT.
29023 * defaults.h: Remove reference to HOST_FLOAT_WORDS_BIG_ENDIAN
29024 in comment.
29025
290262003-03-21 DJ Delorie <dj@redhat.com>
29027
29028 * optabs.c (init_integral_libfuncs): Make sure we init at least up
29029 to "long long" size words.
29030
290312003-03-21 Ulrich Weigand <uweigand@de.ibm.com>
29032
29033 * config/s390/s390.h: Do not include fixdfdi.h on s390x.
29034 (TARGET_64BIT): Define as compile-time constant when IN_LIBGCC2.
29035 (MIN_UNITS_PER_WORD): Do not define when IN_LIBGCC2.
29036
290372003-03-21 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
29038
29039 PR doc-bug/9813
29040 * doc/extend.texi: Move misplaced paragraph about underscores in
29041 variables in macros.
29042
290432003-03-21 Eric Botcazou <ebotcazou@libertysurf.fr>
29044 Richard Henderson <rth@redhat.com>
29045
29046 PR optimization/8366
29047 * config/sparc/sparc.h: (SYMBOLIC_CONST): New macro.
29048 (GO_IF_LEGITIMATE_ADDRESS): Use it. Reject the form
29049 PIC+SYMBOLIC_CONST in other modes than Pmode.
29050 (GO_IF_MODE_DEPENDENT_ADDRESS): Use it. Mark
29051 the form PIC+SYMBOLIC_CONST as mode dependent.
29052
290532003-03-21 DJ Delorie <dj@redhat.com>
29054
29055 * config/stormy16/stormy16.c (xstormy16_expand_arith): Make
29056 sure we always emit at least one insn.
29057
290582003-03-21 Christopher Faylor <cgf@redhat.com>
29059
29060 * config.gcc (i[34567]86-*-cygwin*): Use new common makefile
29061 stub t-cygming. Use common target header cygming.h. Add extra
29062 c_target_obj and cxx_target_obj file. Default cygwin to posix
29063 threading. Enforce i386 as float format.
29064 (i[34567]86-*-mingw*): Use new common makefile stub t-cygming.
29065 Remove cygwin.h as target header. Use common target header
29066 cygming.h Enforce i386 as float format. Correct typo.
29067 * config/i386/cygming.h: New file, containing definitions
29068 common to mingw32 and cygwin.
29069 * config/i386/cygwin.h: Remove definitions common to cygwin and
29070 mingw. Simplify special spec logic. Define "wrappers" around
29071 certain include path defines to accommodate -mno-cygwin.
29072 Remove some #if 0'ed code.
29073 (STANDARD_INCLUDE_DIR) Always define when not cross-compiling.
29074 (LINK_SPEC): Don't use cyg search prefix when -mno-cygwin.
29075 (GCC_DRIVER_HOST_INITIALIZATION): Define as call to mingw_scan.
29076 * config/i386/mingw32.h: Remove definitions common to cygwin and
29077 mingw.
29078 (EXTRA_OS_CPP_BUILTINS): Adjust.
29079 (TARGET_VERSION): Define.
29080 * config/i386/crtdll.h (EXTRA_OS_CPP_BUILTINS): Override
29081 mingw32.h definitions.
29082 (LIBGCC_SPEC): Add libmingwex.a as in mingw32.h.
29083 * config/i386/t-cygwin (EXTRA_GCC_OBJS): Define as cygwin1.o.
29084 Add compilation rules for cygwin1.o cygwin2.o.
29085 * config/i386/cygwin1.c: New file.
29086 * config/i386/cygwin2.c: New file.
29087 * config/i386/t-cygming: New makefile stub.
29088
290892003-03-20 Richard Henderson <rth@redhat.com>
29090
29091 * fold-const.c (extract_muldiv_1): Revert changing order of
29092 operands in case MULT_EXPR of 2003-02-16 patch.
29093
290942003-03-20 Daniel Berlin <dberlin@dberlin.org>
29095 Merge changes from new-regalloc-branch
29096
29097 From Michael Matz <matz@suse.de>
29098 * df.c (df_ref_record_1): Move init of loc to safe point.
29099 Only recurse on interesting things in parallels.
29100 Handle CLASS_CANNOT_CHANGE_MODE smarter.
29101 (df_uses_record): Ditto.
29102
29103 * df.h (DF_REF_MEM_OK): New enum member, used to mark ref's which
29104 it's already okay to use memory operands in (IE doesn't require
29105 adding another insn or anything).
29106
291072003-03-20 Richard Henderson <rth@redhat.com>
29108
29109 PR middle-end/6348
29110 * explow.c (allocate_dynamic_stack_space): Handle STACK_SIZE_MODE
29111 different from word_mode.
29112
291132003-03-20 Kazu Hirata <kazu@cs.umass.edu>
29114
29115 * config/h8300/h8300.md (*insv_si_1_n_lshiftrt): Restrict the
29116 source operand to those that can be extracted with bld.
29117
291182003-03-20 Richard Earnshaw <rearnsha@arm.com>
29119
29120 PR 10066
29121 * arm.md (UNSPEC_PIC_BASE): New constant.
29122 (pic_add_dot_plus_four): Wrap with unspec.
29123 (pic_add_dot_plus_eight): Likewise.
29124
291252003-03-20 Kazu Hirata <kazu@cs.umass.edu>
29126
29127 * config/h8300/h8300.md (*insv_si_1_n): New.
29128 (*insv_si_1_n_lshiftrt): Likewise.
29129
291302003-03-20 Roger Sayle <roger@eyesopen.com>
29131
29132 * fold-const.c (fold_mathfn_compare): New function to simplify
29133 comparisons against built-in math functions. Fold comparisons
29134 of sqrt against constants.
29135 (fold): Call fold_mathfn_compare when appropriate.
29136
291372003-03-20 Richard Earnshaw <rearnsha@arm.com>
29138
29139 * ifcvt.c (find_if_case_1): If we add a new bb, update the dominance
29140 information.
29141
291422003-03-20 Per Bothner <pbothner@apple.com>
29143
29144 Various cleanups to help compile server.
29145
29146 * cppinit.c (cpp_create_reader): Take extra hash_table* argument,
29147 and pass that to _cpp_init_hashtable.
29148 (cpp_read_main_file): Drop hash_table* argument; don't call
29149 _cpp_init_hashtable.
29150 * cpplib.h: Update declarations to match.
29151 * c-opts.c (c_common_init_options): Pass ident_hash to
29152 cpp_create_reader.
29153 (c_common_post_options): Don't pass ident_hash to cpp_read_main_file.
29154 * fix-header.c (read_scan_file): Likewise pass NULL table to
29155 cpp_create_reader rather than cpp_read_main_file.
29156
29157 * cppfiles.c (cpp_rename_file): Generalized and renamed
29158 to cpp_change_file.
29159 * cpplib.h: Update declaration to match.
29160 * c-opts.c (push_command_line_line, finish_options): Change
29161 cpp_rename_file calls to cpp_change_file.
29162
29163 * line-map.c (add_line_map): Allow leaving the outermost file.
29164 Allowing entering an outermost-file after the initial time.
29165
29166 * toplev.c (pop_srcloc): Allow popping from initial file.
29167
291682003-03-20 Kazu Hirata <kazu at cs dot umass dot edu>
29169
29170 * fold-const.c (fold): Fold A - (A & B) into ~B & A.
29171
291722003-03-20 Kazu Hirata <kazu@cs.umass.edu>
29173
29174 * config/h8300/h8300.md (a peephole2): New.
29175
291762003-03-20 Kazu Hirata <kazu@cs.umass.edu>
29177
29178 * config/h8300/h8300.md (*addsi3_and_r_1): New.
29179 (*addsi3_and_not_r_1): Likewise.
29180
291812003-03-19 Loren James Rittle <ljrittle@acm.org>
29182
29183 * Makefile.in (STRICT2_WARN): Add @WERROR@.
29184 (GCC_WARN_CFLAGS): Remove $(WERROR).
29185 (fixinc.sh-warn): New.
29186 * ada/Make-lang.in (ada-warn): Add $(WERROR).
29187 * cp/Make-lang.in (cp-warn): Add $(WERROR).
29188 * f/Make-lang.in (f-warn): Add $(WERROR).
29189 * java/Make-lang.in (java-warn): Add $(WERROR).
29190 * treelang/Make-lang.in (treelang-warn): Add $(WERROR).
29191
291922003-03-19 Nathanael Nerode <neroden@gcc.gnu.org>
29193
29194 * c-common.h (c_dump_tree), c-dump.c (c_dump_tree),
29195 langhooks-def.h (lhd_tree_dump_dump_tree),
29196 langhooks.c (lhd_tree_dump_dump_tree), langhooks.h (*dump_tree):
29197 Change return type from 'int' to 'bool'. Replace 0 and 1 with
29198 true and false in return statements.
29199
292002003-03-19 Kevin Buettner <kevinb@redhat.com>
29201
29202 * dwarf2out.c (DWARF_INITIAL_LENGTH_SIZE): Define.
29203 (DWARF_COMPILE_UNIT_HEADER_SIZE): Take into account
29204 DWARF_INITIAL_LENGTH_SIZE.
29205 (output_compilation_unit_header, output_pubnames, output_aranges)
29206 (output_line_info): Output 0xffffffff escape value for 64-bit
29207 DWARF extension.
29208 * config/mips/iris6.h (DWARF_INITIAL_LENGTH_SIZE): Define.
29209
292102003-03-19 Ulrich Weigand <uweigand@de.ibm.com>
29211
29212 * config/s390/s390.c (s390_preferred_reload_class): Do not
29213 force constants to the pool unless necessary.
29214 (s390_decompose_address): Prefer to use pointer as base,
29215 not index register.
29216 * config/s390/s390.md ("*tsthiCCT_only"): Remove '?' from
29217 Q alternative.
29218 ("*movdi_64", "*movsi", "movhi", "movqi_64", "movqi",
29219 "*movdf_64", "*movsf"): Add '?' to Q->Q alternatives.
29220 ("*extractqi", "*extracthi", "*zero_extendhisi2_31",
29221 "*zero_extendqisi2_31", "*zero_extendqihi2_31",
29222 "*adddi3_31", "*subdi3_31"): Do not set "type" attribute.
29223
292242003-03-19 Jan Hubicka <jh@suse.cz>
29225
29226 * i386.h (machine_function): New fields use_fast_prologue_epilogue.
29227 * i386.c (use_fast_prologue_epilogue): Remove.
29228 (ix86_frame): New field save_regs-using_mov;
29229 (ix86_compute_frame_layout): Decide on fast prologues;
29230 allocate saved registers in red zone.
29231 (ix86_expand_epilogue, ix86_expand_prolgoues): Obey new parameters.
29232
292332003-03-19 Nick Clifton <nickc@redhat.com>
29234
29235 * config/mcore/mcore.h (CPP_SPEC): Remove trailing semi-colon.
29236
292372003-03-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
29238
29239 PR 10062
29240 * config/pa/pa-hpux.h (TARGET_HPUX_UNWIND_LIBRARY): Redefine.
29241 * pa-protos.h (output_lbranch): New prototype.
29242 * pa.c (compute_frame_size): Change size of the frame marker on the
29243 64-bit ports to 48 bytes.
29244 (pa_output_function_prologue): Document why SAVE_SP is set.
29245 (hppa_expand_prologue): Save previous stack pointer into frame marker
29246 on targets which use the hpux unwind library.
29247 (output_cbranch): Use output_lbranch.
29248 (output_lbranch): New function to output long unconditional branches.
29249 * pa.h (TARGET_HPUX_UNWIND_LIBRARY): Define.
29250 (STACK_POINTER_OFFSET): Update offset for 48-byte frame marker on
29251 64-bit ports.
29252 * pa.md (jump): Use output_lbranch.
29253 (allocate_stack): New expander for dynamic stack allocation.
29254
292552003-03-19 Alan Modra <amodra@bigpond.net.au>
29256
29257 * config/rs6000/rs6000.c (rs6000_stack_info): Only require a frame
29258 when debugging on XCOFF targets. Delete "abi" temp.
29259
29260 PR target/10073
29261 * combine.c (force_to_mode <NOT>): Use gen_int_mode.
29262
292632003-03-18 Jakub Jelinek <jakub@redhat.com>
29264
29265 * config/s390/s390.c (s390_output_dwarf_dtprel): New.
29266 * config/s390/s390-protos.h (s390_output_dwarf_dtprel): New proto.
29267 * config/s390/s390.h (ASM_OUTPUT_DWARF_DTPREL): Define.
29268
29269 * config/ia64/ia64.c (ia64_output_dwarf_dtprel): New.
29270 * config/ia64/ia64-protos.h (ia64_output_dwarf_dtprel): New proto.
29271 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_DTPREL): Define.
29272
292732003-03-18 Geoffrey Keating <geoffk@apple.com>
29274
29275 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't clone
29276 the result of machopic_function_base_name.
29277 * config/darwin.c (machopic_function_base_name): Use a gc-allocated
29278 string rather than a static array.
29279
29280 * Makefile.in (emit-rtl.o): Add gt-emit-rtl.h to dependencies.
29281
29282 * gengtype.c: Include rtl.h.
29283 (enum rtx_code): Don't define.
29284 (rtx_format): Make declaration match rtl.h.
29285 (rtx_next_new): Rename from rtx_next to avoid conflict. Change all
29286 users.
29287 (adjust_field_rtx_def): Describe strings in NOTE_LINE_NUMBER notes.
29288 * Makefile.in (gengtype.o): Update dependencies.
29289
292902003-03-18 Andreas Schwab <schwab@suse.de>
29291
29292 * config/m68k/m68k.md (iordi3): Fix setting low half to -1. From
29293 martin@blom.org.
29294
292952003-03-18 Geoffrey Keating <geoffk@apple.com>
29296
29297 * function.c (next_block_index): Mark with GTY.
29298
29299 * config/rs6000/rs6000.md (macho_correct_pic): Correct pattern.
29300
293012003-03-18 Richard Henderson <rth@redhat.com>
29302
29303 * config/ia64/ia64.md (UNSPECV_SETJMP_RECEIVER): New.
29304 (builtin_setjmp_receiver): Delay call to ia64_reload_gp
29305 until after reload.
29306
293072003-03-18 Richard Henderson <rth@redhat.com>
29308
29309 * builtins.c (expand_builtin_unop): New target_mode operand;
29310 use it to convert the result to the correct mode.
29311 (expand_builtin): Update all callers.
29312
293132003-03-18 Ulrich Weigand <uweigand@de.ibm.com>
29314
29315 * config/s390/s390.md ("movti", "movhi", "movqi"): Add "type" attribute.
29316
293172003-03-18 Jan Hubicka <jh@suse.cz>
29318
29319 * i386.md: Fix previous commit that mistakely applied the patch
29320 twice.
29321
29322 * alias.c (rtx_equal_for_memref_p): Assume that X and Y has been
29323 canonicalized.
29324 (memrefs_conflict_p): Likewise.
29325 (addr_side_effect_eval): Canonicalize the constructed address.
29326
293272003-03-18 Jan Hubicka <jh@suse.cz>
29328
29329 * i386.md (cvtts?2si peep2): New.
29330
293312003-03-18 Kazu Hirata <kazu@cs.umass.edu>
29332
29333 * config/h8300/h8300.md (*iorsi3_two_qi_zext): New.
29334
293352003-03-18 Andreas Schwab <schwab@suse.de>
29336
29337 * dwarf2out.c (output_file_names): Cast size_t to unsigned long
29338 for format.
29339
293402003-03-17 Jason Merrill <jason@redhat.com>
29341
29342 PR c++/10091
29343 * expr.c (expand_expr) [ADDR_EXPR]: Disallow taking the address of
29344 an unaligned member of TREE_ADDRESSABLE type.
29345
293462003-03-18 Alan Modra <amodra@bigpond.net.au>
29347
29348 * config/rs6000/linux64.h (MASK_PROFILE_KERNEL): Define.
29349 (TARGET_PROFILE_KERNEL): Define.
29350 (SUBTARGET_SWITCHES): Handle -mprofile-kernel.
29351 (PROFILE_BEFORE_PROLOGUE): Don't define.
29352 (PROFILE_KERNEL): Remove hacks.
29353 * config/rs6000/rs6000.c (TARGET_PROFILE_KERNEL): Define default.
29354 (rs6000_stack_info): No need to save lr if just for profiling when
29355 TARGET_PROFILE_KERNEL.
29356 (output_profile_hook): Output nothing when TARGET_PROFILE_KERNEL.
29357 (output_function_profiler): Localize label generation. Emit code
29358 for kernel profiling.
29359
293602003-03-17 Kazu Hirata <kazu@cs.umass.edu>
29361
29362 * config/h8300/h8300-protos.h: Add a prototype for
29363 byte_accesses_mergeable_p.
29364 * config/h8300/h8300.c (byte_accesses_mergeable_p): New.
29365 * config/h8300/h8300.md (*iorhi3_two_qi_mem): Likewise.
29366 (a splitter): Likewise.
29367 (*iorsi3_ashift_16_ashift_24): Likewise.
29368 (*iorsi3_ashift_16_ashift_24_mem): Likewise.
29369
293702003-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
29371
29372 * dwarf2asm.h: Delete obsolete comment.
29373 (dw2_asm_output_data, dw2_asm_output_delta, dw2_asm_output_offset,
29374 dw2_asm_output_pcrel, dw2_asm_output_addr,
29375 dw2_asm_output_addr_rtx, dw2_asm_output_encoded_addr_rtx,
29376 dw2_asm_output_nstring, dw2_asm_output_data_uleb128,
29377 dw2_asm_output_data_sleb128, dw2_asm_output_delta_uleb128,
29378 dw2_asm_output_delta_sleb128): Add ATTRIBUTE_NULL_PRINTF.
29379
293802003-03-17 Zack Weinberg <zack@codesourcery.com>
29381
29382 * c-tree.h (struct lang_identifier): Remove error_locus field.
29383 (IDENTIFIER_ERROR_LOCUS): Kill.
29384 (record_function_scope_shadow): New prototype.
29385 * c-typeck.c (build_external_ref): Don't complain if
29386 decl is error_mark_node. When not at file scope, bind the
29387 decl's local value to error_mark_node to suppress further
29388 warnings, instead of setting IDENTIFIER_ERROR_LOCUS.
29389
29390 * c-decl.c (get_function_binding_level): New static function.
29391 (record_function_scope_shadow): New exported function.
29392 (c_make_fname_decl): Use get_function_binding_level.
29393
293942003-03-17 Steve Ellcey <sje@cup.hp.com>
29395
29396 * stmt.c (tail_recursion_args): Call promote_mode to set
29397 unsignedp flag correctly before calling convert_move.
29398
293992003-03-17 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
29400
29401 * loop-unroll.c (decide_peel_completely,
29402 decide_unroll_constant_iterations, decide_unroll_stupid,
29403 decide_unroll_runtime_iterations, decide_peel_simple): Set
29404 loop->has_desc.
29405
294062003-03-17 Jan Hubicka <jh@suse.cz>
29407
29408 * ggc-common.c (ggc_mark_roots): Use htab_traverse_noresize.
29409
294102003-03-17 Olivier Hainque <hainque@act-europe.fr>
29411
29412 * function.c (assign_parms): For a struct value address passed as
29413 first argument, delay the function's result RTL setup code until
29414 after the emission of parameter conversions.
29415
294162003-03-17 Dave Love <fx@gnu.org>
29417 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
29418
29419 * config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Define __digital__,
29420 __arch64__ to match Compaq cc.
29421
294222003-03-17 Neil Booth <neil@daikokuya.co.uk>
29423
29424 * c-opts.c: Default TARGET_EBCDIC to 0 if not defined.
29425 (c_common_init): Set EBCDIC in cpp options.
29426 * cpplex.c (maybe_read_ucs, cpp_parse_escape): Use EBCDIC option,
29427 not conditional compilation.
29428 * cpplib.h (struct cpp_options): New entry EBCDIC.
29429
294302003-03-17 Neil Booth <neil@daikokuya.co.uk>
29431
29432 * fix-header.c (read_scan_file): Need to malloc arguments to add_path.
29433
294342003-03-17 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
29435
29436 * function.c (thread_prologue_and_epilogue_insns): Set delete_unused
29437 argument to 0 for redirect_jump.
29438
294392003-03-16 Mark Mitchell <mark@codesourcery.com>
29440
29441 PR c++/8805
29442 * except.c (eh_region_u_cleanup): Add prev_try.
29443 (expand_eh_region_end_cleanup): Set it.
29444 (reachable_handlers): Use it to skip over cleanup blocks.
29445
294462003-03-17 Andreas Jaeger <aj@suse.de>
29447
29448 * Makefile.in (TAGS): Remove obsolete handling of =*.[chy].
29449
294502003-03-17 Alan Modra <amodra@bigpond.net.au>
29451
29452 * config/rs6000/linux64.h (TARGET_64BIT): Redefine.
29453 (TARGET_RELOCATABLE, TARGET_EABI, TARGET_PROTOTYPE): Likewise.
29454 (SUBTARGET_SWITCHES, SUBTARGET_OPTIONS): Likewise.
29455 (SUBTARGET_OVERRIDE_OPTIONS, CPP_SYSV_SPEC): Likewise.
29456
294572003-03-16 Richard Henderson <rth@redhat.com>
29458
29459 * simplify-rtx (simplify_binary_operation): Don't abort for
29460 SS_PLUS, US_PLUS, SS_MINUS, US_MINUS.
29461
294622003-03-16 Richard Henderson <rth@redhat.com>
29463
29464 * config/i386/i386.md (movstrictqi, movstrictqi_1): Check
29465 optimize_size as well.
29466
294672003-03-16 Stephane Carrez <stcarrez@nerim.fr>
29468
29469 * config/m68hc11/m68hc11.c (print_operand): Handle 'b' modifier
29470 for D register to specify the low part of it, aka B.
29471 (m68hc11_gen_movhi): Use REG_WAS_0 note and increment or decrement
29472 the register if we are loading 1 or -1 to it; avoid using temp
29473 register when moving X/Y to Y/X.
29474 (m68hc11_gen_movqi): Likewise.
29475 (m68hc11_check_z_replacement): Fix last insn setting for compare case.
29476
294772003-03-14 Mark Mitchell <mark@codesourcery.com>
29478
29479 PR optimization/9016
29480 * config/i386/i386.c (ix86_expand_move): Force more CONST_DOUBLEs
29481 into the constant pool.
29482
294832003-03-16 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
29484
29485 PR target/9164
29486 * tree.c (get_narrower): For extensions with unchanged bit number,
29487 return the unsignedness of the outer mode.
29488
294892003-03-16 Roger Sayle <roger@eyesopen.com>
29490
29491 * c-typeck.c (build_component_ref): Turn "for" into "do .. while"
29492 to avoid "may be used uninitialized" warning on ia64-hpux.
29493 * config/ia64/ia64-c.c: Include "tm_p.h" for function prototypes.
29494
294952003-03-16 Andreas Jaeger <aj@suse.de>
29496
29497 * configure.in: Improve check for memcheck.h.
29498 * configure: Regenerated.
29499
295002003-03-16 Neil Booth <neil@daikokuya.co.uk>
29501
29502 * doc/cppopts.texi: Remove documentation of -A-.
29503
295042003-03-15 Zack Weinberg <zack@codesourcery.com>
29505
29506 * doc/libgcc.texi: Remove @tie.
29507
295082003-03-15 Josef Zlomek <zlomekj@suse.cz>
29509
29510 * rtl.h (subrtx_p): Renamed to rtx_referenced_p.
29511 (rtx_pair): Added new element update_label_nuses, renamed to
29512 replace_label_data.
29513 * cfgcleanup.c (outgoing_edges_match, try_crossjump_to_edge): Use
29514 replace_label_data instead of rtx_pair.
29515 * loop.c (load_mems): Likewise.
29516 * rtlanal.c (replace_label): Replace label in pool constants and in
29517 INSN_LIST (in REG_LABEL note).
29518 (subrtx_p): Renamed to rtx_referenced_p.
29519 (subrtx_p_1): Renamed to rtx_referenced_p_1, compare the interior of
29520 LABEL_REF with CODE_LABEL, traverse constants from pool.
29521
295222003-03-15 Aldy Hernandez <aldyh@redhat.com>
29523 Zack Weinberg <zack@codesourcery.com>
29524
29525 * Makefile.in (TEXI_GCCINT_FILES): Add libgcc.texi.
29526 * doc/libgcc.texi: New file.
29527 * doc/interface.texi: Delete paragraph about libgcc interface.
29528 * doc/gccint.texi: Add libgcc menu entry and @include libgcc.texi.
29529
295302003-03-15 Jason Merrill <jason@redhat.com>
29531
29532 PR debug/9039
29533 * dwarf2out.c (gen_decl_die): Ignore frontend tree codes.
29534
29535 PR debug/6387
29536 * dwarf2out.c (dwarf2out_decl): If we're at -g1, just stick nested
29537 function DIEs at toplevel.
29538 (decls_for_scope): At -g1, don't descend into subblocks.
29539
295402003-03-15 Ulrich Weigand <uweigand@de.ibm.com>
29541
29542 * varasm.c (struct rtx_const): Change type of un.addr member
29543 to struct holding an additional 'symbol' member.
29544 (decode_rtx_const): Re-enable optimization to count SYMBOL_REFs
29545 with equal string addresses as equal.
29546 (simplify_subtraction): Adapt to struct rtx_const change.
29547
295482003-03-15 Neil Booth <neil@daikokuya.co.uk>
29549
29550 * fix-header.c (read_scan_file): Read main file before handling -D.
29551
295522003-03-15 Roger Sayle <roger@eyesopen.com>
29553
29554 * c-cppbuiltin.c (builtin_define_with_value_n): Fix whitespace.
29555 * c-typeck.c (c_tree_expr_nonnegative_p): Likewise.
29556 * cfgbuild.c (find_many_sub_basic_blocks): Likewise.
29557 (find_sub_basic_blocks): Likewise.
29558 * cgraphunit.c (cgraph_expand_functions): Likewise.
29559 * dwarf2out.c (prune_unused_types): Likewise.
29560 * expr.c (store_field): Likewise.
29561 * genextract.c (print_path): Likewise.
29562 * haifa-sched.c (schedule_insn): Likewise.
29563 * lcm.c (compute_antinout_edge): Likewise.
29564 * loop-unroll.c (decide_peel_once_rolling): Likewise.
29565 * ra-colorize.c (ra_colorize_free_all): Likewise.
29566 * ra-debug.c (dump_igraph): Likewise.
29567 (debug_hard_reg_set): Likewise.
29568 * reg-stack.c (reg_to_stack): Likewise.
29569 * rtlanal.c (refers_to_regno_p): Likewise.
29570 * tracer.c (layout_superblocks): Likewise.
29571
295722003-03-15 Neil Booth <neil@daikokuya.co.uk>
29573
29574 * fix-header.c (read_scan_file): Fix thinko.
29575
295762003-03-15 Glen Nakamura <glen@imodulo.com>
29577
29578 * reload1.c (choose_reload_regs): Use && instead of ||
29579 with REG_CANNOT_CHANGE_MODE_P condition.
29580
295812003-03-15 Neil Booth <neil@daikokuya.co.uk>
29582
29583 * Makefile.in: Update.
29584 * c-common.h (cb_register_builtins): Rename c_cpp_builtins.
29585 * c-lex.c (init_c_lex): Register builtins hook is dead.
29586 * c-opts.c (COMMAND_LINE_OPTIONS, missing_arg): Handle -A, -D and -U.
29587 (c_common_decode_option): Don't call cpp_handle_option.
29588 Handle -A, -D and -U.
29589 (handle_deferred_opts): Simplify.
29590 (finish_options): Define builtins and command line macros.
29591 * c-ppoutput.c (init_pp_output): Register builtins hook is dead.
29592 * cppinit.c: Don't include intl.h.
29593 (init_builtins): Rename cpp_init_builtins. No hook to call.
29594 (init_library): Don't need to sort options.
29595 (cpp_create_reader): Don't set pending.
29596 (cpp_destroy): Don't free pending.
29597 (struct pending_option, cl_directive_handler, struct cpp_pending,
29598 APPEND, free_chain, new_pending_directive, parse_option, opt_comp,
29599 cpp_finish_options, COMMAND_LINE_OPTIONS, DEF_OPT, struct cl_option,
29600 cl_options, cpp_handle_option): Remove.
29601 * cpplib.h (struct cpp_pending, register_builtins, cpp_handle_option,
29602 cpp_finish_options): Remove.
29603 (cpp_init_builtins): New.
29604 * fix-header.c (read_scan_file): Update to handle -D. Fix
29605 handling of -I. Replace call to cpp_finish_options.
29606
296072003-03-15 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
29608
29609 PR optimization/9387
29610 * function.c (thread_prologue_and_epilogue_insns): Use redirect_jump
29611 for conditional returns.
29612
296132003-03-14 Jason Merrill <jason@redhat.com>
29614
29615 PR optimization/6871
29616 * varasm.c (assemble_variable): Leave constant zeroes in .rodata.
29617
296182003-03-14 Neil Booth <neil@daikokuya.co.uk>
29619
29620 * c-opts.c (finish_options): New.
29621 (COMMAND_LINE_OPTIONS, c_common_decode_option): Add -imacros.
29622 (missing_arg): Handle OPT_include and OPT_imacros.
29623 (c_common_init, c_common_parse_file): Use finish_options.
29624 (handle_deferred_opts): Update.
29625 * cppinit.c (struct cpp_pending): Remove imacros_head and imacros_tail.
29626 (cpp_finish_options): Don't handle -imacros here.
29627 (no_fil): Remove.
29628 (COMMAND_LINE_OPTIONS, cpp_handle_option): Don't handle -imacros.
29629
296302003-03-14 Jakub Jelinek <jakub@redhat.com>
29631
29632 * config/rs6000/rs6000.c (rs6000_emit_load_toc_table): Don't call
29633 rs6000_maybe_dead if !fromprolog.
29634
296352003-03-14 Neil Booth <neil@daikokuya.co.uk>
29636
29637 * Makefile.in: Update.
29638 * c-common.h (fe_file_change, pp_file_change): New.
29639 * c-lex.c (init_c_lex): Don't set cb_file_change.
29640 (c_common_parse_file): Move to c-opts.c.
29641 (cb_file_change): Rename fe_file_change.
29642 * c-opts.c: Include debug.h.
29643 (warn_unused_macros, include_cursor): New.
29644 (push_command_line_include, cb_file_change): New.
29645 (COMMAND_LINE_OPTIONS): Handle -include.
29646 (c_common_decode_option): Use local warn_unused_macros.
29647 Handle OPT_include.
29648 (c_common_post_options): Set file change callback.
29649 (handle_deferred_opts): Skip -include. Don't free the array.
29650 (c_common_init): Call cpp_finish_options here, and push an
29651 initial -include file.
29652 * c-ppoutput.c (cb_file_change): Rename pp_file_change.
29653 (preprocess_file): Don't call cpp_finish_options.
29654 (init_pp_output): Don't set the file change callback.
29655 (pp_file_change): Return if no line commands or no output.
29656 * cpphash.h (next_include_file, first_unused_line): Remove.
29657 * cppinit.c (include_head, include_tail): Remove.
29658 (cpp_destroy): Don't free -include chain.
29659 (cpp_finish_options): Don't handle -include, or worry about
29660 -Wunused-macros.
29661 (_cpp_maybe_push_include_file): Remove.
29662 (COMMAND_LINE_OPTIONS, cpp_handle_option): Don't handle -include.
29663 * cpplib.c (_cpp_pop_buffer): Don't handle -include.
29664 * cppmacro.c (_cpp_warn_if_unused_macro, _cpp_create_definition):
29665 Used flag is set based upon the state of the warn_unused_macros
29666 flag, and so use of first_unused_line is unnecessary.
29667
296682003-03-13 Jan Hubicka <jh@suse.cz>
29669
29670 * cselib.c (clear_table): Do not take argument; always clear just
29671 used slots.
29672 (cselib_process_insn): Update call of clear_table
29673 (cselib_init): Do not call clear_table.
29674 (cselib_finish): Clear table.
29675
29676 * cse.c (count_reg_usage): Do not check side_effects_p.
29677 * rtlanal.c (set_noop_p): Check side_effects_p only when set looks
29678 like noop.
29679 (find_reg_equal_equiv_note): Do not use find_reg_note.
29680
296812003-03-14 Richard Henderson <rth@redhat.com>
29682
29683 PR target/9700
29684 * config/alpha/alpha.c (alpha_va_start): Account for
29685 current_function_pretend_args_size in the AP offset.
29686
29687 * config/alpha/alpha.h (SETUP_INCOMING_VARARGS): Move out of line.
29688 (INITIAL_ELIMINATION_OFFSET): Move out of line.
29689 * config/alpha/alpha.c (alpha_setup_incoming_varargs): New.
29690 (alpha_initial_elimination_offset) New.
29691 * config/alpha/alpha-protos.h: Update.
29692
296932003-03-14 Jakub Jelinek <jakub@redhat.com>
29694
29695 * stmt.c (expand_start_case): Call emit_queue ().
29696
296972003-03-14 Chris Demetriou <cgd@broadcom.com>
29698 Alexandre Oliva <aoliva@redhat.com>
29699
29700 * config/mips/mips.h (FUNCTION_PROFILER): _mcount() doesn't pop 2
29701 words in new abis.
29702
297032003-03-14 Eric Botcazou <ebotcazou@libertysurf.fr>
29704
29705 PR optimization/8396
29706 * tree-inline.c (initialize_inlined_parameters): Make sure the value
29707 of read-only constant arguments is passed with the right type.
29708
297092003-03-14 Steven Bosscher <steven@gcc.gnu.org>
29710
29711 * doc/extend.texi (Function Names): Make the example compilable.
29712
297132003-03-13 David Edelsohn <edelsohn@gnu.org>
29714
29715 * config/rs6000/rs6000.c (processor_target_table): Really allow
29716 GP optional instructions on Power4.
29717
297182003-03-13 Roger Sayle <roger@eyesopen.com>
29719
29720 * calls.c (flags_from_decl_or_type): Factor and remove redundant
29721 conditional tests.
29722
297232003-03-13 Mike Stump <mrs@apple.com>
29724
29725 * ggc-page.c (struct page_entry): Remove varray.h header.
29726 Add index_by_depth field.
29727 Remove save_in_use_p field.
29728 (struct globals): Add depth_in_use, depth_max, by_depth_in_use,
29729 by_depth_max, by_depth, and save_in_use fields.
29730 (INITIAL_PTE_COUNT): Add.
29731 (save_in_use_p_i): Add.
29732 (save_in_use_p): Add.
29733 (adjust_depth): Add.
29734 (move_ptes_to_front): Add.
29735 (push_depth): Add.
29736 (push_by_depth): Add.
29737 (prefetch): Add.
29738 (free_page): Add support for and use faster data structures.
29739 (ggc_alloc): Likewise.
29740 (init_ggc): Likewise.
29741 (ggc_recalculate_in_use_p): Likewise.
29742 (ggc_pop_context): Likewise.
29743 (clear_marks): Likewise.
29744 (ggc_pch_read): Likewise.
29745 * Makefile.in (ggc-page.o): Remove varray.h.
29746
297472003-03-13 Nathanael Nerode <neroden@gcc.gnu.org>
29748
29749 * ChangeLog: Rotated last year's entries to...
29750 * ChangeLog.8: New.
29751
29752 * config/ia64/fde-glibc.c, config/ia64/freebsd.h,
29753 config/ia64/hpux.h, config/ia64/hpux_longdouble.h,
29754 config/ia64/ia64-c.c, config/ia64/ia64-modes.def,
29755 config/ia64/ia64-protos.h, config/ia64/ia64.c,
29756 config/ia64/ia64.h, config/ia64/ia64.md,
29757 config/ia64/itanium1.md, config/ia64/itanium2.md,
29758 config/ia64/quadlib.c, config/ia64/unwind-ia64.c,
29759 config/ia64/unwind-ia64.h: It's GCC, not GNU CC.
29760
297612003-03-13 Aldy Hernandez <aldyh@redhat.com>
29762
29763 * config/rs6000/rs6000.c (rs6000_dwarf_register_span):
29764 Differentiate endianness.
29765 (s6000_override_options): Use cpu type instead of TARGET_SPE.
29766
297672003-03-13 Nick Clifton <nickc@redhat.com>
29768
29769 * config/arm/arm.c (print_multi_reg): Do not generate a type 2
29770 LDM instructions with writeback enabled.
29771 (output_return_instruction): Likewise.
29772
29773 * config/arm/pe.h (FIXED_REGISTERS): Remove definition.
29774 (CALL_USED_REGISTERS): Remove definition.
29775 (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Define.
29776
297772003-03-13 Alan Modra <amodra@bigpond.net.au>
29778
29779 * config/rs6000/rs6000.c (rs6000_flag_pic): Delete.
29780 (rs6000_xcoff_encode_section_info): #ifdef TARGET_XCOFF.
29781 (rs6000_binds_local_p, TARGET_BINDS_LOCAL_P): #if TARGET_MACHO.
29782 (rs6000_override_options): Don't clear flag_pic for ABI_AIX.
29783 (rs6000_legitimize_address): Formatting.
29784 (rs6000_emit_move): Likewise.
29785 (rs6000_return_addr): Test ABI_AIX as well as flag_pic.
29786 (rs6000_emit_prologue <save_LR_around_toc_setup>): Likewise.
29787 (rs6000_elf_select_section): Comment reason for shlib being
29788 set for ABI_AIX.
29789 (rs6000_elf_unique_section): Likewise.
29790 (rs6000_elf_encode_section_info): Test !TARGET_AIX as well as ABI_AIX.
29791 * config/rs6000/rs6000.h (LEGITIMATE_LO_SUM_ADDRESS_P): Test ABI_AIX
29792 as well as flag_pic.
29793 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
29794 (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
29795 * config/rs6000/linux64.h (TARGET_ENCODE_SECTION_INFO): Don't define.
29796
297972003-03-13 Richard Henderson <rth@redhat.com>
29798
29799 * emit-rtl.c (try_split): Handle 1-1 splits of call insns properly.
29800
29801 * config/ia64/ia64.c (TARGET_FUNCTION_OK_FOR_SIBCALL): New.
29802 (ia64_gp_save_reg): Remove.
29803 (struct ia64_frame_info): Move to the beginning of the file;
29804 add reg_save_gp.
29805 (ia64_expand_call): Rearrange for new call patterns.
29806 (ia64_reload_gp): New.
29807 (ia64_split_call): New.
29808 (ia64_compute_frame_size): Allocate reg_save_gp.
29809 (ia64_expand_prologue): Save reg_save_gp.
29810 (ia64_expand_epilogue): Don't restore gp.
29811 (ia64_hard_regno_rename_ok): Remove R4 hack.
29812 (ia64_function_ok_for_sibcall): New.
29813 (ia64_output_mi_thunk): Set reload_completed, no_new_pseudos;
29814 call try_split on sibcall pattern.
29815 * config/ia64/ia64-protos.h: Update.
29816 * config/ia64/ia64.md (call_nogp, call_value_nogp, sibcall_nogp):
29817 Rename from nopic versions. Confiscate 2nd argument to call as
29818 a marker.
29819 (call_pic, call_value_pic, sibcall_pic): Remove.
29820 (call_gp, call_value_gp, sibcall_gp): New.
29821 (builtin_setjmp_setup): Remove.
29822 (builtin_setjmp_receiver): Call ia64_reload_gp.
29823
298242003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
29825
29826 * config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
29827 config/dsp16xx/dsp16xx.h, config/dsp16xx/dsp16xx.md: Replace
29828 "GNU CC" with "GCC".
29829
29830 * config/c4x/c4x-c.c, config/c4x/c4x-modes.def,
29831 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
29832 config/c4x/c4x.md, config/c4x/libgcc.S, config/c4x/rtems.h:
29833 GCC, not GNU CC.
29834
29835 * genattrtab.h, hosthooks-def.h, hosthooks.h, langhooks-def.h,
29836 langhooks.h, tree-inline.h: Replace "GNU CC" with "GCC".
29837
29838 * c-pch.c, dummy-conditions.c, genautomata.c, genconditions.c,
29839 langhooks.c, tree-inline.c, unwind-dw2-fde-darwin.c,
29840 unwind-dw2-fde-glibc.c, unwind-libunwind.c, vmsdbgout.c: Replace
29841 "GNU CC" with "GCC".
29842
29843 * config/v850/lib1funcs.asm, config/v850/rtems.h,
29844 config/v850/v850-c.c, config/v850/v850-protos.h,
29845 config/v850/v850.c, config/v850/v850.h, config/v850/v850.md:
29846 GCC, not GNU CC.
29847
29848 * config/vax/bsd.h, config/vax/elf.h, config/vax/netbsd-elf.h,
29849 config/vax/netbsd.h, config/vax/openbsd.h, config/vax/openbsd1.h,
29850 config/vax/ultrix.h, config/vax/vax-protos.h, config/vax/vax.c,
29851 config/vax/vax.h, config/vax/vax.md, config/vax/vaxv.h: GCC, not
29852 GNU CC.
29853
298542003-03-12 Benjamin Kosnik <bkoz@redhat.com>
29855
29856 * cpppch.c (cpp_valid_state): Use DL_WARNING_SYSHDR, not DL_WARNING.
29857
298582003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
29859
29860 * fixinc/fixinc.interix: Remove dead code (most of it).
29861 * fixinc/fixinc.dgux: Remove.
29862
29863 * ginclude/float.h, ginclude/iso646.h, ginclude/stdarg.h,
29864 ginclude/stdbool.h, ginclude/stddef.h: GCC, not GNU CC.
29865
298662003-03-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
29867
29868 * pa.c (pa_init_builtins): Fix warning.
29869
298702003-03-12 Steve Ellcey <sje@cup.hp.com>
29871
29872 * config/ia64/ia64.h (ASM_OUTPUT_XDATA_CHAR): Remove.
29873 (ASM_OUTPUT_XDATA_SHORT): Remove.
29874 (ASM_OUTPUT_XDATA_INT): Remove.
29875 (ASM_OUTPUT_XDATA_DOUBLE_INT): Remove.
29876 (ASM_OUTPUT_ADDR_DIFF_ELT): Handled 32 bit address diffs.
29877 (ASM_PREFERRED_EH_DATA_FORMAT): Handle 32 bit EH pointers.
29878 (CASE_VECTOR_MODE): Handle 32 bit pointers in case statement.
29879
298802003-03-12 Andrew Lewycky <andrew@mxc.ca>
29881
29882 PR c++/7050
29883 * expr.c (store_expr): Don't attempt to store void-typed trees,
29884 just evaluate them for side effects.
29885
298862003-03-12 Neil Booth <neil@daikokuya.co.uk>
29887
29888 * cppfiles.c (cpp_rename_file, cpp_push_include): New.
29889 * cppinit.c (push_include): Move with changes to cppfiles.c.
29890 (cpp_read_main_file): Mark named operators here...
29891 (cpp_finish_options): ...not here. Update.
29892 (_cpp_maybe_push_include_file): Update.
29893 * cpplib.h (cpp_push_include, cpp_rename_file): New.
29894
298952003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
29896
29897 * aclocal.m4: Introduce gcc_GAS_VERSION_GTE_IFELSE,
29898 _gcc_COMPUTE_GAS_VERSION.
29899 * configure.in: Use them.
29900 * configure: Regenerate.
29901
299022003-03-12 Bob Wilson <bob.wilson@acm.org>
29903
29904 * config/xtensa/xtensa.md (adddi3): Don't clobber source operand used
29905 to detect carry.
29906 (subdi3): Reorder emitted instructions.
29907
299082003-03-12 Andreas Jaeger <aj@suse.de>
29909
29910 * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Remove call to
29911 NETBSD_OS_CPP_BUILTINS_LP64.
29912
299132003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
29914
29915 * Makefile.in: Eliminate all.indirect. Update and clean up comments.
29916 Rearrange. Reorganize.
29917 * configure.in: Rearrange.
29918 * configure: Regenerate.
29919
299202003-03-12 Andreas Jaeger <aj@suse.de>
29921
29922 * c-cppbuiltin.c (cb_register_builtins): Define LP64 builtins for
29923 LP64 targets.
29924
29925 * doc/cpp.texi (Common Predefined Macros): Document __LP64__ and
29926 _LP64.
29927
29928 * config/ia64/ia64.h (TARGET_CPU_CPP_BUILTINS): Do not define
29929 _LP64 macros here.
29930 * config/pa/pa.h (TARGET_CPU_CPP_BUILTINS): Likewise.
29931
29932 * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Remove call to
29933 NETBSD_OS_CPP_BUILTINS_LP64.
29934 * config/sh/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Likewise.
29935 * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Likewise.
29936
29937 * config/netbsd.h (NETBSD_OS_CPP_BUILTINS_LP64): Remove.
29938
299392003-03-12 Jan Hubicka <jh@suse.cz>
29940
29941 * i386.c (ix86_setup_incoming_varargs): Set stack_alignment_needed to 128.
29942
299432003-03-12 Daniel Jacobowitz <drow@mvista.com>
29944
29945 Fix PR target/9797 and PR c/9853.
29946 * stmt.c (expand_decl_init): Call push_temp_slots () and
29947 pop_temp_slots ().
29948
299492003-03-12 J"orn Rennecke <joern.rennecke@superh.com>
29950
29951 * sh.c: Include basic-block.h.
29952 (sh_output_mi_thunk, emit_load_ptr): New functions.
29953 (TARGET_ASM_OUTPUT_MI_THUNK, TARGET_ASM_CAN_OUTPUT_MI_THUNK): Redefine.
29954
299552003-03-12 Nick Clifton <nickc@redhat.com>
29956
29957 * config/arm/pe.h (FIXED_REGISTERS): Add Maverick registers.
29958 (CALL_USED_REGISTERS): Likewise.
29959 * config/arm/arm.h (FIRST_PSEUDO_REGISTER): Update comment
29960 describing how this value is calculated.
29961
299622003-03-12 Hans-Peter Nilsson <hp@bitrange.com>
29963
29964 * configure.in (rlim_t): Define to long if no valid definition
29965 found in sys/resource.h.
29966 * config.in, configure: Regenerate.
29967
299682003-03-12 Neil Booth <neil@daikokuya.co.uk>
29969
29970 * config/mcore/mcore-elf.h (CPP_PREDEFINES): Replace with
29971 TARGET_OS_CPP_BUILTINS.
29972 * config/mcore/mcore-pe.h: Similarly.
29973 * config/mcore/mcore.h: Replace CPP_PREDEFINES and part of
29974 CPP_SPEC with TARGET_CPU_CPP_BUILTINS.
29975
299762003-03-12 Eric Botcazou <ebotcazou@libertysurf.fr>
29977
29978 PR c/9928
29979 * c-decl.c (duplicate_decls): Discard the initializer of the new decl
29980 only if it is a VAR_DECL.
29981
299822003-03-12 Eric Botcazou <ebotcazou@libertysurf.fr>
29983
29984 PR optimization/9888
29985 * config/i386/i386.md (jcc_1): Fix range.
29986 (jcc_2): Likewise.
29987 (jump): LIkewise.
29988 (doloop_end_internal): Likewise.
29989
299902003-03-12 Danny Smith <dannysmith@users.sourceforge.net>
29991
29992 * config/i386/winnt.c (DLL_IMPORT_PREFIX): New define.
29993 Use throughout instead of DLL_IMPORT_EXPORT_PREFIX and "e."
29994 (DLL_EXPORT_PREFIX): New define. Use throughout instead of
29995 DLL_IMPORT_EXPORT_PREFIX and "i."
29996 (i386_pe_dllexport_name_p): Here.
29997 (i386_pe_dllimport_name_p): Here.
29998 (i386_pe_mark_dllexport): Here. Remove DLL_IMPORT_PREFIX,
29999 not 9 chars when getting identifier name.
30000 (i386_pe_mark_dllimport): Here.
30001 (i386_pe_encode_section_info): Here. Remove DLL_IMPORT_PREFIX,
30002 not 9 chars when getting identifier name. Correct comment.
30003 (i386_pe_strip_name_encoding): Here. Add comments for different
30004 cases.
30005 (gen_fastcall_suffix): Break down xmalloc() argument to
30006 components.
30007 (gen_stdcall_suffix): Likewise.
30008 Update copyright year.
30009
300102003-03-12 Eric Botcazou <ebotcazou@libertysurf.fr>
30011
30012 PR optimization/9888
30013 * config/i386/i386.md (movsi_1): Remove special alternatives
30014 for %eax register.
30015 (movsi_1_nointernunit): Likewise.
30016 (movhi_1): Likewise.
30017 * config/i386/i386.c (memory_address_length): Do not use
30018 short displacement when there is no base.
30019 (ix86_attr_length_address_default): Handle LEA instructions.
30020
300212003-03-12 Neil Booth <neil@daikokuya.co.uk>
30022
30023 * c-cppbuiltin.c (builtin_define_std): Make non-static.
30024
300252003-03-11 Loren James Rittle <ljrittle@acm.org>
30026
30027 * config/freebsd-spec.h (FBSD_CPP_PREDEFINES): Remove.
30028 (FBSD_TARGET_OS_CPP_BUILTINS): New port-specific macro.
30029 (FBSD_TARGET_CPU_CPP_BUILTINS): New port-specific macro.
30030 * config/freebsd.h (CPP_PREDEFINES): Remove.
30031 (TARGET_OS_CPP_BUILTINS): New.
30032 * config/alpha/freebsd.h: Use overridden FBSD_TARGET_CPU_CPP_BUILTINS
30033 instead of TARGET_OS_CPP_BUILTINS.
30034 * config/sparc/freebsd.h (CPP_PREDEFINES): Remove.
30035
300362003-03-11 Geoffrey Keating <geoffk@apple.com>
30037
30038 * c-cppbuiltin.c (builtin_define_std): Add ATTRIBUTE_UNUSED.
30039
300402003-03-11 Aldy Hernandez <aldyh@redhat.com>
30041
30042 * config/rs6000/rs6000.c (rs6000_stack_info): Remove
30043 insn_chain_scanned. Use insn_chain_scanned_p in machine_function.
30044
30045 * config/rs6000/rs6000.h (machine_function): Add insn_chain_scanned_p.
30046
300472003-03-11 Alexandre Oliva <aoliva@redhat.com>
30048
30049 * toplev.c (independent_decode_option): Return success for --help,
30050 --target-help and --version.
30051
300522003-03-11 Alexandre Oliva <aoliva@redhat.com>
30053
30054 * config/mips/linux64.h (DRIVER_SELF_SPECS): Add endian_spec.
30055 Default to -mips3 on -mabi=64. Don't add -mips* flag if -march is
30056 specified.
30057 (SUBTARGET_ASM_SPEC): Remove -mips*-adding code obviated by
30058 DRIVER_SELF_SPECS.
30059 (LINK_SPEC): Let endian options affect the linker emulation name.
30060
300612003-03-11 J"orn Rennecke <joern.rennecke@superh.com>
30062
30063 * sh.md (reload_inqi): Fix mode for source in second set.
30064
300652003-03-11 Jan Hubicka <jh@suse.cz>
30066
30067 * cselib.c (cselib_invalidate_mem_1): Move too ...
30068 (cselib_invalidate_mem): ... here; use new list
30069 (dummy_val, first_containing_mem): New static variables.
30070 (clear_table): Initialize first_containing_mem.
30071 (discard_useless_values): Compact the containing_mem list.
30072 (add_mem_for_addr): Add to the list.
30073 * cselib.h (cselib_val): Add next_containing_mem.
30074
300752003-03-11 Aldy Hernandez <aldyh@redhat.com>
30076
30077 * config/rs6000/rs6000.c (rs6000_override_options): Disable string
30078 instructions for e500.
30079
300802003-03-11 Neil Booth <neil@daikokuya.co.uk>
30081
30082 * Makefile.in: Update.
30083 * c-cppbuiltin.c: Include tm_p.h.
30084
300852003-03-11 Aldy Hernandez <aldyh@redhat.com>
30086
30087 * doc/tm.texi (Frame Registers): Document DWARF_REG_TO_UNWIND_COLUMN.
30088
30089 * unwind-dw2.c (DWARF_REG_TO_UNWIND_COLUMN): Define.
30090 (_Unwind_GetGR): Use DWARF_REG_TO_UNWIND_COLUMN.
30091 (_Unwind_SetGR): Same.
30092 (_Unwind_GetGRPtr): New.
30093 (_Unwind_SetGRPtr): New.
30094 (uw_update_context_1): Use accesor functions instead of accessing
30095 context->reg[] directly.
30096 (uw_install_context_1): Same.
30097 (execute_cfa_program): Same.
30098 (__frame_state_for): Same.
30099
30100 * config/rs6000/rs6000.c (spe_synthesize_frame_save): Use 1200 as
30101 the synthetic register offset.
30102
30103 * config/rs6000/rs6000.h (DWARF_REG_TO_UNWIND_COLUMN): New.
30104
301052003-03-11 Hans-Peter Nilsson <hp@axis.com>
30106
30107 * config/cris/cris.md: Remove lingering EGCS reference.
30108 ("*extopqihi_side_biap"): For HI operation, match
30109 cris_additive_operand_extend_operator, not
30110 cris_operand_extend_operator. Adjust condition.
30111 ("*extopqihi_side", "*extopqihi"): Ditto.
30112 ("*extopqisi_side_biap"): Correct operand numbers in condition.
30113 ("*extophisi_side_biap", "*extopqisi_swap_side_biap"): Ditto.
30114 ("*extophisi_swap_side_biap", "*extopqisi_swap"): Ditto.
30115 ("*extophisi_swap"): Ditto.
30116 ("*extopqihi_swap_side_biap"): For HI operation, match a simple
30117 PLUS, not cris_operand_extend_operator. Adjust condition and
30118 output template.
30119 ("*extopqihi_swap_side", "*extopqihi_swap"): Ditto.
30120 * config/cris/cris.h (PREDICATE_CODES): Add
30121 cris_additive_operand_extend_operator.
30122 * config/cris/cris.c (cris_additive_operand_extend_operator):
30123 New predicate.
30124
301252003-03-11 Hartmut Penner <hpenner@de.ibm.com>
30126
30127 * df.c (read_modify_subreg_p): Change from static to global.
30128 * df.h (read_modify_subreg_p): Add prototype.
30129 * sched-deps.c (sched_analyze_1): Generate true dependency for
30130 strict_low_part, certain subregs and zero/sign_extract.
30131
301322003-03-11 Neil Booth <neil@daikokuya.co.uk>
30133
30134 * Makefile.in: Update.
30135 * c-common.c: Don't include real.h or except.h.
30136 (REGISTER_PREFIX): Remove.
30137 (builtin_define_std, builtin_define_with_value,
30138 builtin_define_with_int_value, builtin_define_with_hex_fp_value,
30139 builtin_define_type_max, builtin_define_type_precision,
30140 builtin_define_float_constants): Move to c-cppbuiltin.c.
30141 (c_stddef_cpp_builtins): New.
30142 * c-common.h (builtin_define_with_value, c_stddef_cpp_builtins): New.
30143 * c-cppbuiltin.c: New, extracted from c-common.c.
30144 (define__GNUC__): New.
30145 * cppspec.c (lang_specific_driver): Remove support of -no-gcc.
30146 * gcc.c: Remove support of %v1, %v2 and %v3 specs.
30147 (cpp_unique_options): Don't support no-gcc.
30148 (do_spec_1): Remove support of version specs.
30149 * doc/invoke.texi: Remove documentation of %v1, %v2 and %v3.
30150 * doc/passes.texi: Update.
30151 * doc/tm.texi: Update.
30152
301532003-03-10 Aldy Hernandez <aldyh@redhat.com>
30154
30155 * dwarf2out.c (multiple_reg_loc_descriptor): Fix thinko.
30156
301572003-03-10 Andrew Pinski <apinski@apple.com>
30158
30159 * config/darwin.c (machopic_function_base_name): If dynamic-no-pic
30160 is on should not get here.
30161 (machopic_indirect_data_reference): If dynamic-no-pic is on just
30162 generate high/low parts of the address.
30163 (machopic_legitimize_pic_address): Change MACHOPIC_PURE to
30164 MACHOPIC_INDIRECT. Dynamic-no-pic uses 0 as the pic base. Generate
30165 symbol and labels with a new reg. Dynamic-no-pic does not have a
30166 pic_offset_table_rtx.
30167 (machopic_select_section): Change references of flag_pic to
30168 MACHOPIC_INDIRECT.
30169 (machopic_asm_out_destructor): Likewise.
30170 * config/darwin.h (ASM_DECLARE_UNRESOLVED_REFERENCE): Change
30171 reference of flag_pic to MACHOPIC_INDIRECT.
30172 (MACHO_DYNAMIC_NO_PIC_P): Define as TARGET_DYNAMIC_NO_PIC.
30173 (MACHOPIC_INDIRECT): Is also true when dynamic-no-pic is on.
30174 (MACHOPIC_JUST_INDIRECT): Is also true when dynamic-no-pic is on.
30175 (MACHOPIC_PURE): Is not pure when dynamic-no-pic is on.
30176 * config/i386/darwin.h (MASK_MACHO_DYNAMIC_NO_PIC): Define as
30177 0 for right now as dynamic-no-pic is not implemented on Darwin/ia32.
30178 * config/rs6000/darwin.h (MASK_MACHO_DYNAMIC_NO_PIC): Define.
30179 (TARGET_DYNAMIC_NO_PIC): Define.
30180 (SUBTARGET_SWITCHES): Define, have sub-target switches for
30181 dynamic-no-pic.
30182 (SUBTARGET_OVERRIDE_OPTIONS): Move check for -fpic from
30183 rs6000_override_options to here. Dynamic-no-pic overrides
30184 pic.
30185 (CC1_SPEC): Change from not static then pic to not static and not
30186 dynamic-no-pic then pic.
30187 * config/rs6000/rs6000.c (rs6000_override_options): Move the
30188 check for -fpic and DARWIN_ABI to config/rs6000/darwin.h
30189 (rs6000_legitimize_reload_address): Add case for loading floating in
30190 dynamic-no-pic.
30191 (rs6000_emit_move): Add case for dynamic-no-pic. Change reference
30192 of flag_pic to MACHOPIC_INDIRECT.
30193 (secondary_reload_class): Conditional change the reference of
30194 flag_pic to MACHOPIC_INDIRECT.
30195 (rs6000_output_mi_thunk): Change reference of flag_pic to
30196 MACHOPIC_INDIRECT.
30197 (output_profile_hook): Likewise.
30198 (machopic_output_stub): Non-pure (dynamic-no-pic) is now supported.
30199 * config/rs6000/rs6000.md (movdf_low): Add the case for
30200 MACHO_DYNAMIC_NO_PIC_P.
30201 (call): Change references for flag_pic in TARGET_MACHO to
30202 MACHOPIC_INDIRECT.
30203 (SUBTARGET_OVERRIDE_OPTIONS): Add case where -fpic is on and
30204 -mdynamic-no-pic is on. Also move case for -fpic from rs6000.c.
30205 * doc/invoke.texi (-mdynamic-no-pic): Document.
30206
302072003-03-10 Devang Patel <dpatel@apple.com>
30208
30209 PR c++/9394
30210 * gcc.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
30211 (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove.
30212 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Add.
30213 (DEFAULT_WORD_SWITCH_TAKES_ARG): Add.
30214 * cppspec.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
30215 (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove.
30216
302172003-03-10 Steven Bosscher <s.bosscher@student.tudelft.nl>
30218
30219 PR optimization/7189
30220 * toplev.c (rest_of_compilation): Move
30221 check_function_return_warnings up to just after
30222 delete_unreachable_blocks.
30223
302242003-03-10 Stephane Carrez <stcarrez@nerim.fr>
30225
30226 * config/m68hc11/m68hc11.h (HARD_REGNO_RENAME_OK): Define.
30227 * config/m68hc11/m68hc11-protos.h (m68hc11_hard_regno_rename_ok):
30228 Declare.
30229 * config/m68hc11/m68hc11.c (m68hc11_hard_regno_rename_ok): New function
30230 for reg rename optimization to avoid using Z and Y registers.
30231
302322003-03-10 Stephane Carrez <stcarrez@nerim.fr>
30233
30234 * config/m68hc11/m68hc11.md ("*addhi3_68hc12"): Accept any constant
30235 when adding to X and Y since leax/leay are fast.
30236 ("*addhi3"): Accept 'I' constraint when adding to address register.
30237 ("rotlhi3"): Operand 1 must be a register_operand.
30238 (peephole2): New peephole to optimize some adds.
30239 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_P): Use 'I' constraint
30240 to represent -2 .. 2 small integer range.
30241
302422003-03-10 Stephane Carrez <stcarrez@nerim.fr>
30243
30244 * config/m68hc11/m68hc11.c (m68hc11_gen_rotate): Set carry before
30245 each 16-bit rotation.
30246
302472003-03-10 Zack Weinberg <zack@codesourcery.com>
30248
30249 * c-opts.c (add_prefixed_path): Don't use concat. When
30250 prefixing with cpp_GCC_INCLUDE_DIR, copy only the first
30251 cpp_GCC_INCLUDE_DIR_len characters.
30252
302532003-03-10 Segher Boessenkool <segher@koffie.nl>
30254
30255 * testsuite/gcc.dg/altivec-9.c: New file.
30256
30257 * config/rs6000/rs6000.c (altivec_frame_fixup): Remove.
30258 (rs6000_emit_prologue): Use rs6000_frame_related instead.
30259
302602003-03-10 Aldy Hernandez <aldyh@redhat.com>
30261
30262 * config/rs6000/spe.h: Define __ev64_*64__ to use single element
30263 vectors.
30264 (__ev_convert_u64): Remove macro. Define as inline.
30265 (__ev_convert_s64): Same.
30266
302672003-03-10 Aldy Hernandez <aldyh@redhat.com>
30268
30269 * config/rs6000/rs6000.h (DWARF_FRAME_REGISTERS): Define.
30270 (rs6000_stack_t): Add spe_64bit_regs_used.
30271
30272 * config/rs6000/rs6000.c (rs6000_stack_info): Calculate
30273 spe_64bit_regs_used, and use it to determine the size of the
30274 frame.
30275 (spe_func_has_64bit_regs_p): New.
30276 (spe_synthesize_frame_save): New.
30277 (rs6000_frame_related): Handle SPE synthetic registers.
30278 (rs6000_emit_prologue): Only save in 64-bits if the function used
30279 any registers in 64-bit mode.
30280 (rs6000_emit_epilogue): Same, but for restore.
30281
302822003-03-10 Richard Earnshaw <rearnsha@arm.com>
30283
30284 * arm.h (enum floating_point_type): Delete. Replace with...
30285 (enum fputype): ... new.
30286 (FPUTYPE_DEFAULT): Renamed from FP_DEFAULT. Values reworked.
30287 * linux-elf.h (FPUTYPE_DEFAULT): Likewise.
30288 * arm.md (attr fpu): Reworked for new underlying enum values.
30289 * arm.c (arm_fpu_arch): Now enum fputype.
30290 (arm_fpu_tune): Renamed from arm_fpu. Now enum fputype.
30291 (arm_override_options, arm_output_epilogue, arm_expand_prologue):
30292 Update uses of arm_fpu_arch and arm_fpu_tune.
30293
302942003-03-10 Josef Zlomek <zlomekj@suse.cz>
30295
30296 * cfgcleanup.c (outgoing_edges_match): Compare the jump tables.
30297 (try_crossjump_to_edge): Replace refereces to one jump table by
30298 references to identical jump table.
30299 * loop.c (load_mems): Moved setting the JUMP_LABEL to replace_label.
30300 (replace_label): Moved to rtlanal.c.
30301 (struct rtx_pair): Moved to rtl.h.
30302 * rtl.h (struct rtx_pair): Moved from loop.c.
30303 (replace_label): New extern function.
30304 (subrtx_p): New extern function.
30305 (tablejump_p): New extern function.
30306 * rtlanal.c (replace_label): Moved from loop.c.
30307 (subrtx_p_1): New static function.
30308 (subrtx_p): New function.
30309 (tablejump_p): New function.
30310
303112003-03-10 Jan Hubicka <jh@suse.cz>
30312
30313 * cfgcleanup.c (try_optimize_cfg): Fix thinko in previous patch.
30314
30315 * cfgcleanup.c (merge_blocks): Return where to iterate next.
30316 (try_optimize_cfg): Use return value of merge_blocks
30317
303182003-03-10 Michael Matz <matz@suse.de>
30319
30320 * cfg.c (unchecked_make_edge): New.
30321 (cached_make_edge): Use it.
30322 * basic-block.h (unchecked_make_edge): Declare.
30323 * cfglayout.c (cfg_layout_duplicate_bb): Use it.
30324
303252003-03-10 Richard Earnshaw <rearnsha@arm.com>
30326
30327 * fpa.md: New file. Move all patterns relating to FPA co-processor
30328 to here...
30329 * arm.md: ... from here.
30330 (cirrus.md, fpa.md): Include at end of description.
30331 (divsf3, divdf3, modsf3, movdf3, sqrtsf2, sqrtdf2): New expands.
30332 (pic_load_addr_based): Remove register constraint from expander.
30333 (seq, sne, sgt, sle, slt, sge, sgeu, sleu, sgtu, sltu, sunordered)
30334 (sordered, sungt, sunle, sunge, sunlt): Likewise.
30335 (eh_epilogue, tablejump): Likewise.
30336
303372003-03-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30338
30339 * tree.c (substitute_in_expr, case 'e'): Only make recursive call
30340 on operands if it has a PLACEHOLDER_EXPR.
30341
303422003-03-09 David Edelsohn <edelsohn@gnu.org>
30343 Mostafa Hagog
30344
30345 * config/rs6000/rs6000.md (movsi_update1): Add TARGET_UPDATE final
30346 condition.
30347
303482003-03-09 Neil Booth <neil@daikokuya.co.uk>
30349
30350 * config/frv/frv.h: Use TARGET_CPU_CPP_BUILTINS, not CPP_PREDEFINES.
30351 * config/ip2k/ip2k.h: Similarly.
30352 * config/m32r/m32r.h: Similarly.
30353 * config/m68hc11/m68hc11.h: Similarly.
30354 * config/mn10200/mn10200.h: Similarly.
30355 * config/mn10300/mn10300.h: Similarly.
30356 * config/pdp11/pdp11.h: Similarly.
30357 * config/v850/v850.h: Similarly.
30358 * config/rs6000/vxworks.h: Similarly for TARGET_OS_CPP_BUILTINS.
30359 * config/v850/retms.h: Similarly for TARGET_OS_CPP_BUILTINS.
30360 * config/mips/iris3.h: Remove #if 0 block.
30361
303622003-03-09 Roger Sayle <roger@eyesopen.com>
30363 Joern Rennecke <joern.rennecke@superh.com>
30364
30365 * gcc.c (do_spec_1) ['{']: Revert 2003-02-24 patch. Don't handle
30366 pending argument upon return from handle_braces here.
30367 (do_spec_2): Instead handle it upon return from do_spec_1 here.
30368
303692003-03-09 Roger Sayle <roger@eyesopen.com>
30370 Joern Rennecke <joern.rennecke@superh.com>
30371
30372 * gcc.c (do_spec_1) ['{']: Revert 2003-02-24 patch. Don't handle
30373 pending argument upon return from handle_braces here.
30374 (do_spec_2): Instead handle it upon return from do_spec_1 here.
30375
303762003-03-09 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
30377
30378 * varasm.c (make_decl_one_only): Use declare_weak().
30379
303802003-03-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
30381
30382 PR middle-end/9986
30383 * c-common.c (c_common_nodes_and_builtins): Initialize target builtins
30384 after the common builtins.
30385 * pa-hpux.h (DONT_HAVE_FPUTC_UNLOCKED): Define.
30386 * pa.c (TARGET_INIT_BUILTINS): Define.
30387 (pa_init_builtins): New function.
30388
30389 * pa.md (call, call_value, sibcall, sibcall_value): When sufficient
30390 space has been allocated for the outgoing arguments, set the arg
30391 pointer for a call emitted after virtuals have been instantiated
30392 using the stack pointer offset, otherwise abort.
30393
303942003-03-09 DJ Delorie <dj@redhat.com>
30395
30396 * config/stormy16/stormy16.h (DWARF_LINE_MIN_INSTR_LENGTH): Revert.
30397
303982003-03-09 Richard Earnshaw <rearnsha@arm.com>
30399
30400 * arm.md (fix_truncsfsi2, fix_truncdfsi2, arm_fix_truncsfsi2)
30401 (arm_fix_truncdfsi2): Add missing fix in floating point mode before
30402 conversion to integer.
30403 * cirrus.md (cirrus_truncsfsi2, cirrus_truncdfsi2): Likewise.
30404
304052003-03-09 Roger Sayle <roger@eyesopen.com>
30406
30407 * builtins.def: Fix typo and improve grammar.
30408 * loop-unroll.c (decide_peel_completely): Tidy log message.
30409
304102003-03-09 Kazu Hirata <kazu@cs.umass.edu>
30411
30412 * config/h8300/h8300.md (*tstsi_upper_bit): New.
30413 (*iorsi3_e2f): Likewise.
30414
304152003-03-08 Kazu Hirata <kazu@cs.umass.edu>
30416
30417 * config/h8300/h8300.c (h8300_and_costs): Return the number of
30418 assembly instructions needed.
30419 (h8300_shift_costs): Likewise.
30420
304212003-03-09 Hans-Peter Nilsson <hp@bitrange.com>
30422
30423 * config/cris/aout.h (ENDFILE_SPEC): Undef.
30424
30425 * optabs.c (gen_move_insn): Move logic for synthesizing MODE_CC
30426 moves from here ...
30427 * expr.c (emit_move_insn_1): ... to here.
30428
30429 * config/cris/aout.h (CRIS_CPP_SUBTARGET_SPEC): Move -D__AOUT__ to...
30430 (TARGET_OS_CPP_BUILTINS): New macro.
30431 * config/cris/cris.h (CRIS_CPP_SUBTARGET_SPEC): Move -D__ELF__ to...
30432 (TARGET_OS_CPP_BUILTINS): New macro.
30433 (CPP_PREDEFINES): Don't define. Move old definitions and...
30434 (CPP_SPEC): ...move -D__CRIS_ABI_version=2 to...
30435 (TARGET_CPU_CPP_BUILTINS): New macro.
30436 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Move constant
30437 definitions and the optional __PIC__, __pic__ and
30438 __NO_UNDERSCORES__ definitions to...
30439 (TARGET_OS_CPP_BUILTINS): New macro.
30440
30441 * flags.h (flag_leading_underscore): Declare.
30442
30443 * c-opts.c (c_common_post_options): On fopen failure, return
30444 false, not NULL.
30445
304462003-03-08 Hans-Peter Nilsson <hp@bitrange.com>
30447
30448 * config/cris/cris_abi_symbol.c: #include tconfig.h and tm.h, not
30449 config.h.
30450 * config/cris/cris.h (HAVE_GAS_HIDDEN): Don't define here.
30451 * config/cris/aout.h (HAVE_GAS_HIDDEN): Undef.
30452
304532003-03-08 Neil Booth <neil@daikokuya.co.uk>
30454
30455 * config/sh/rtemself.h (TARGET_OS_CPP_BUILTINS): Use instead of
30456 CPP_PREDEFINES.
30457 * config/sh/rtems.h (TARGET_OS_CPP_BUILTINS): Use instead of
30458 CPP_PREDEFINES.
30459
304602003-03-08 Neil Booth <neil@daikokuya.co.uk>
30461
30462 * c-common.h (c_common_init, c_common_post_options): Update.
30463 * c-objc-common.c (c_objc_common_init): Update for new prototype.
30464 * c-opts.c (saved_lineno): New.
30465 (c_common_post_options, c_common_init): Update prototypes,
30466 move call to cpp_read_main_file from latter to former.
30467 * c-tree.h (c_ojbc_common_init): Update.
30468 * langhooks-def.h (lhd_post_options): New.
30469 (LANG_HOOKS_INIT, LANG_HOOKS_POST_OPTIONS): Update.
30470 * langhooks.c (lhd_post_options): New.
30471 * langhooks.h (struct lang_hooks): Update post_options and init hooks.
30472 * toplev.c (no_backend): New.
30473 (process_options): Call post_options hook and set main_input_filename
30474 and input_filename here.
30475 (lang_dependent_init, do_compile): post_options hook moved to
30476 process_options.
30477 * objc/objc-act.c (objc_init): Update prototype.
30478 * objc/objc-act.h (objc_init): Update prototype.
30479
304802003-03-08 Roger Sayle <roger@eyesopen.com>
30481
30482 * emit-rtl.c (gen_lowpart): Don't attempt to load a part of
30483 a complex or vector type, using a load in the original mode.
30484
304852003-03-08 Jan Hubicka <jh@suse.cz>
30486
30487 * Makefile.in (cgraph.o): Depend on gt-cgraph.h and varray.h.
30488 * gt-cgraph.h: New GC file.
30489 * cgraph.c (known_fns): New static variable.
30490 (cgraph_node): Add the decl into varray.
30491
304922003-03-08 Hans-Peter Nilsson <hp@bitrange.com>
30493
30494 * config/mmix/mmix.md ("*movcc_expanded"): Add missing alternatives.
30495
304962003-03-08 Richard Earnshaw <rearnsha@arm.com>
30497
30498 * arm.c (fpa_rhs_operand, fpa_add_operand, const_double_rtx_ok_for_fpa)
30499 (neg_const_double_ok_for_fpa, output_mov_long_double_fpa_from_arm)
30500 (output_mov_long_double_arm_from_fpa, output_mov_double_fpa_from_arm)
30501 (output_mov_double_arm_from_fpa): Renamed to use fpa instead of fpu.
30502 All callers changed.
30503 * arm.md, arm.h, arm-protos.h: Updated.
30504
30505 * arm.h (enum reg_class FPA_REGS): Renamed from FPU_REGS.
30506 (CLASS_MAX_NREGS, REGISTER_MOVE_COST, REG_CLASS_FROM_LETTER): Updated.
30507 * arm.c (arm_regno_class, f_register_operand): Updated.
30508
305092003-03-08 Hans-Peter Nilsson <hp@bitrange.com>
30510
30511 * config/cris/cris.h: Remove EGCS references.
30512 (CPP_SPEC): Remove "-$".
30513 (INIT_CUMULATIVE_ARGS): Adjust parameter name to FNDECL.
30514
305152003-03-08 Neil Booth <neil@daikokuya.co.uk>
30516
30517 * config/stormy16/stormy16.h (TARGET_CPU_CPP_BUILTINS): Use in
30518 preference to CPP_PREDEFINES.
30519
305202003-03-08 Neil Booth <neil@daikokuya.co.uk>
30521
30522 * cppinit.c (cpp_finish_options): Set first_unused_line to -1.
30523
305242003-03-08 Kazu Hirata <kazu@cs.umass.edu>
30525
30526 * config/h8300/h8300.md (*extzv_16_8): New.
30527
305282003-03-08 Jan Hubicka <jh@suse.cz>
30529
30530 * c-decl.c: (finish_function): Update call of tree_inlinable_function_p.
30531 * cgraph.h: (cgraph_local_info): Add can_inline_once
30532 (cgraph_global_info): Add inline_once.
30533 (cgraph_node): Add previous.
30534 (cgraph_remove_node): New.
30535 * cgraphunit.c (cgraph_mark_functions_to_inline_once): New static
30536 function.
30537 (cgraph_optimize): Call it.
30538 (cgraph_finalize_function): Set inlinable flags.
30539 (cgraph_finalize_compilation_unit): Actually remove the reclaimed nodes.
30540 (cgraph_mark_functions_to_output): Use new inlining heuristics flags.
30541 (cgraph_expand_function): Likewise.
30542 * cgraph.c
30543 (cgraph_node): Put nodes into doubly linked chain.
30544 (cgraph_remove_node): New function.
30545 * flags.h (flag_inline_functions_called_once): Declare.
30546 * tree-inline.c: Include cgraph.h
30547 (inlinable_functions_p): Add extra argument to bypass limits.
30548 (expand_call_inline): Obey cgraph flag.
30549 * tree-inline.h (tree_inlinable_function_p): Update prototype.
30550
305512003-03-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
30552
30553 * gcse.c (bypass_block, bypass_conditional_jumps): Do not create
30554 irreducible loops.
30555
30556 * loop-unroll.c (unroll_loop_runtime_iterations): Update irreducible
30557 loops info correctly.
30558
305592003-03-08 Eric Botcazou <ebotcazou@libertysurf.fr>
30560
30561 PR middle-end/7796
30562 * unroll.c (calculate_giv_inc): Handle constants being
30563 loaded with LSHIFTRT.
30564
305652003-03-07 David Edelsohn <edelsohn@gnu.org>
30566
30567 * config/rs6000/rs6000.c (processor_target_table): Do not disable
30568 GP optional instructions on Power3, Power4, 620, and 630.
30569
305702003-03-07 Kazu Hirata <kazu@cs.umass.edu>
30571
30572 * calls.c: Fix comment formatting.
30573 * cfgloopanal.c: Likewise.
30574 * cfgloopmanip.c: Likewise.
30575 * combine.c: Likewise.
30576 * dwarf2out.c: Likewise.
30577 * ggc-common.c: Likewise.
30578 * langhooks.c: Likewise.
30579 * loop-unroll.c: Likewise.
30580 * loop.c: Likewise.
30581 * ra-build.c: Likewise.
30582 * sbitmap.c: Likewise.
30583 * toplev.c: Likewise.
30584
305852003-03-07 James E Wilson <wilson@tuliptree.org>
30586
30587 * config/sh/sh.h (HARD_REGNO_NREGS): Round up the XD register count.
30588
305892003-03-07 Geoffrey Keating <geoffk@apple.com>
30590
30591 * objc/lang-specs.h (objective-c-header): Use .gch not .pch;
30592 support -no-integrated-cpp.
30593
30594 * c-pch.c (get_ident): Use c_language_kind and flag_objc rather
30595 than langhooks.name.
30596
305972003-03-07 Michael Matz <matz@suse.de>
30598
30599 * df.h (enum df_ref_flags.DF_REF_STRIPPED): New.
30600 (DF_FOR_REGALLOC): New.
30601 * df.c (df_ref_record): Set DF_REF_STRIPPED.
30602 (read_modify_subreg_p): Simplify.
30603 (df_def_record_1, df_uses_record): Set DF_REF_MODE_CHANGE more often.
30604 Use DF_FOR_REGALLOC.
30605 * ra.h (struct web): New member subreg_stripped.
30606 (invalid_mode_change_regs): Declare.
30607 * ra.c (invalid_mode_change_regs): New.
30608 (init_ra): Initialize it.
30609 * ra-build.c (init_one_web_common, remember_web_was_spilled): Use it.
30610 Use CANNOT_CHANGE_MODE_CLASS as ifdef guard.
30611 (reinit_one_web, parts_to_web_1): Deal with subreg_stripped.
30612 * ra-colorize.c (colorize_one_web): Use invalid_mode_change_regs.
30613 Use CANNOT_CHANGE_MODE_CLASS as ifdef guard.
30614
306152003-03-07 Richard Earnshaw <rearnsha@arm.com>
30616
30617 * arm.md (addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, negsf2)
30618 (negdf2, abssi2, abssf2, absdf2, floatsisf2, floatsidf2)
30619 (fix_truncsfsi2, fix_truncdfsi2, truncdfsf2): Moved back into main
30620 machine description file from ...
30621 * cirrus.md: ... here.
30622
306232003-03-06 Kazu Hirata <kazu@cs.umass.edu>
30624
30625 * config/h8300/h8300.md (a peephole2): Don't use
30626 reg_overlap_mentioned_p.
30627
306282003-03-06 Geoffrey Keating <geoffk@apple.com>
30629
30630 * c-pch.c: Include langhooks.h.
30631 (IDENT_LENGTH): New.
30632 (get_ident): New.
30633 (pch_ident): Delete.
30634 (pch_init): Use get_ident, IDENT_LENGTH.
30635 (c_common_valid_pch): Likewise. Also, use actual language
30636 in warning message.
30637 * Makefile.in (c-pch.o): Add langhooks.h to dependencies.
30638
30639 * objc/config-lang.in (gtfiles): Add objc-act.c. Remove duplicate
30640 c-parse.in.
30641 * objc/Make-lang.in (objc/objc-act.o): Add dependency on
30642 gt-objc-objc-act.h.
30643 (gt-objc-objc-act.h): New rule.
30644 * objc/lang-specs.h: Support PCH.
30645 * objc/objc-act.c: Include gt-objc-objc-act.h.
30646 (objc_add_static_instance): Move num_static_inst out, mark for PCH.
30647 (build_selector_reference_decl): Move idx out, mark for PCH.
30648 (build_class_reference_decl): Likewise.
30649 (build_objc_string_decl): Move *_idx out, mark for PCH.
30650 (build_tmp_function_decl): Move xxx out, mark for PCH.
30651
306522003-03-06 Dale Johannesen <dalej@apple.com>
30653
30654 * config/rs6000/rs6000.c (rs6000_binds_local_p): Consider
30655 global functions for inlining on Darwin.
30656
306572003-03-06 Vladimir Makarov <vmakarov@redhat.com>
30658
30659 * haifa-sched.c (schedule_block): Don't call reorder when sorting
30660 is prohibited.
30661
306622003-03-06 Neil Booth <neil@daikokuya.co.uk>
30663
30664 * Makefile.in (c-ppoutput.o): Update.
30665 * c-common.h (init_pp_output): New.
30666 (preprocess_file): Update.
30667 * c-lex.c (init_c_lex): Move mbchar initialization to cpplib.
30668 Register builtins.
30669 * c-opts.c (c_common_init): Call init_pp_output if preprocessing.
30670 Make call to cpp_read_main_file common to whether preprocessing
30671 or not. Don't register builtins.
30672 * c-ppoutput.c: Include c-pragma.h.
30673 (setup_callbacks): Rename init_pp_output.
30674 (preprocess_file): No longer setup callbacks or call
30675 cpp_read_main_file.
30676 * cpphash.h (_cpp_init_mbchar): New.
30677 * cppinit.c (init_library): Call _cpp_init_mbchar.
30678 * cpplex.c (_cpp_init_mbchar): New.
30679
306802003-03-06 Roger Sayle <roger@eyesopen.com>
30681
30682 * emit-rtl.c (gen_lowpart): When requesting the low-part of a
30683 MEM, try loading the MEM into a register and taking the low-part
30684 of that, to help CSE see the use of the MEM in its true mode.
30685
306862003-03-05 Tom Tromey <tromey@redhat.com>
30687
30688 * config/stormy16/stormy16.h (DWARF_LINE_MIN_INSTR_LENGTH):
30689 Define.
30690
306912003-03-05 Nick Clifton <nickc@cambridge.redhat.com>
30692
30693 * config/stormy16/stormy16.md ("*eqbranchsi"): Remove '+' on
30694 operand 2.
30695 ("*ineqbranchsi"): Likewise.
30696
306972003-03-05 Andrew Haley <aph@cambridge.redhat.com>
30698
30699 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Delete
30700 mem_fake_push_rtx. Instead construct a SEQUENCE to show the
30701 register store followed by a stack increment.
30702
307032003-03-05 Chris Moller <cmoller@redhat.com>
30704
30705 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): added a term
30706 to inhibit saving CARRY_REGS.
30707
30708 * config/stormy16/stormy16.c (xs_hi_general_operand):
30709 added predicate to detect and error-out on out-of-range
30710 const_ints for movhi.
30711 * config/stormy16/stormy16.md (movhi): use
30712 xs_hi_general_operand.
30713
30714 * config/stormy16/stormy16.c (xstormy16_expand_prologue):
30715 added a check for local vbl size overflow.
30716 * config/stormy16/stormy16.c (xs_hi_nonmemory_operand):
30717 added predicate to detect and error-out on out-of-range
30718 const_ints for addhi and subhi.
30719 * config/stormy16/stormy16.md (addhi3, addchi4, addchi5,
30720 subhi3, subchi4, subchi5): used xs_hi_nonmemory_operand.
30721
30722 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
30723 add a term to accept PRE_MODIFY addresses.
30724 * config/stormy16/stormy16.c (xstormy16_expand_move):
30725 add code to expand PRE_MODIFY addresses to an add followed
30726 by a move.
30727
307282003-03-06 Jason Merrill <jason@redhat.com>
30729
30730 * tree-inline.c (inlinable_function_p): Revert earlier change
30731 pending investigation.
30732
307332003-03-06 Kazu Hirata <kazu@cs.umass.edu>
30734
30735 * config/h8300/h8300.md (a new peephole2): New.
30736
307372003-03-06 Jan Hubicka <jh@suse.cz>
30738
30739 * cgraph.c (cgraph_node): Do not confuse nested functions and methods.
30740
307412003-03-06 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
30742
30743 * dwarf2out.c (size_of_die): Compute size of external reference to
30744 die correctly.
30745
307462003-03-06 Hans-Peter Nilsson <hp@bitrange.com>
30747
30748 * config/mmix/mmix.md ("*movcc_expanded"): New pattern.
30749 ("movcc", "movcc_uns", "movcc_fp", "movcc_fpeq", "movcc_fun"): New
30750 expanders.
30751
307522003-03-05 Roger Sayle <roger@eyesopen.com>
30753
30754 * expr.h (lang_expand_expr): Delete obsolete prototype.
30755
307562003-03-05 Kazu Hirata <kazu@cs.umass.edu>
30757
30758 * emit-rtl.c (gen_highpart_mode): Fix a comment typo.
30759
307602003-03-05 Kazu Hirata <kazu@cs.umass.edu>
30761
30762 * config/h8300/h8300.md (a peephole2): Generalize to
30763 accept a memory operand.
30764
307652003-03-05 Olivier Hainque <hainque@act-europe.fr>
30766
30767 * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Add '+'.
30768 * config/alpha/alpha.c (print_operand, case '+'): New.
30769 * config/alpha/alpha.md (call_osf_1_noreturn): Document and use.
30770 (call_value_osf_1_noreturn): Likewise.
30771
307722003-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30773
30774 * stmt.c (fixup_gotos): Change meaning of DONT_JUMP_IN.
30775 (expand_end_bindings): Likewise.
30776
307772003-03-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
30778
30779 * pa.md (return_external_pic): Add !TARGET_PA_20 to constraint.
30780 (epilogue): Don't generate return_external_pic when emitting PA 2.0
30781 code.
30782
307832003-03-05 Aldy Hernandez <aldyh@redhat.com>
30784
30785 * doc/tm.texi: Document TARGET_DWARF_REGISTER_SPAN.
30786
30787 * config/rs6000/rs6000.c (rs6000_dwarf_register_span): New.
30788
30789 * hooks.c (hook_rtx_rtx_null): New.
30790
30791 * hooks.h (hook_rtx_rtx_null): Protoize.
30792
30793 * target-def.h (TARGET_DWARF_REGISTER_SPAN): New macro.
30794 (TARGET_INITIALIZER): Add TARGET_DWARF_REGISTER_SPAN.
30795
30796 * target.h (struct gcc_target): Add dwarf_register_span.
30797
30798 * dwarf2out.c (multiple_reg_loc_descriptor): New.
30799 (one_reg_loc_descriptor): New.
30800 (reg_loc_descriptor): Add support for values that span more than
30801 one register.
30802
308032003-03-05 Jan Hubicka <jh@suse.cz>
30804
30805 * Makefile.in (calls.o, toplev.o alias.o): Depend on cgraph.h
30806 * alias.c: Include cgraph.h
30807 (mark_constant_function): Use cgraph_rtl_info.
30808 * calls.c: Include cgraph.h
30809 (flags_from_decl_or_type): Use cgraph_rtl_info to find pure and const
30810 calls.
30811 (expand_call): Use cgraph_rtl_info to set preferred stack boundary.
30812 * cgraph.c (cgraph_rtl_info): New function.
30813 * cgraph.h (cgraph_rtl_info): Declare
30814 (cgraph_rtl_info): Likewise.
30815 * function.h (struct function): Add recursive_call_emit.
30816 * toplev.c: Include cgraph.h.
30817 (rest_of_compilation): Set preferred_incoming_stack_boundary.
30818
308192003-03-05 Kazu Hirata <kazu@cs.umass.edu>
30820
30821 * config/h8300/h8300.c (output_simode_bld): Clear the
30822 destination first if possible.
30823 * config/h8300/h8300.md (extzv_1_r_h8300hs): Add an
30824 alternative.
30825 (extzv_1_r_inv_h8300hs): Likewise.
30826
308272003-03-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
30828
30829 * basic-block.h (EDGE_IRREDUCIBLE_LOOP, EDGE_ALL_FLAGS): New.
30830 * cfg.c (dump_edge_info): Add EDGE_IRREDUCIBLE_LOOP flag dump.
30831 * cfgloop.c (flow_loop_free): Made global.
30832 (establish_preds): New static function.
30833 (flow_loop_tree_node_add): Handle subloops of added loop correctly.
30834 (get_loop_exit_edges): New.
30835 (verify_loop_structure): Verify EDGE_IRREDUCIBLE_LOOP flags.
30836 * cfgloop.h (flow_loop_free, get_loop_exit_edges, unloop): Declare.
30837 * cfgloopanal.c (mark_irreducible_loops): Mark edges in irreducible
30838 loops.
30839 * cfgloopmanip.c (loop_delete_branch_edge): Allow to test for
30840 removability of an edge.
30841 (fix_irreducible_loops): New static function.
30842 (find_path, remove_path): Add ability to remove enclosing loops.
30843 (unloop): New.
30844 (copy_bbs, duplicate_loop_to_header_edge): Use EDGE_IRREDUCIBLE_LOOP
30845 flags.
30846 * cfgrtl.c (verify_flow_info): Handle EDGE_IRREDUCIBLE_LOOP flag.
30847 * loop-unroll.c (peel_loops_completely): Do not duplicate loop if
30848 not neccessary.
30849 (decide_peel_completely, peel_loops_completely): Allow complete peeling
30850 of non-duplicable once rolling loops.
30851 * loop-unswitch.c (unswitch_loop): Update EDGE_IRREDUCIBLE_LOOP flags.
30852
308532003-03-05 J"orn Rennecke <joern.rennecke@superh.com>
30854
30855 * sh.h (OVERRIDE_OPTIONS): For TARGET_SHMEDIA, the minimum value
30856 for align_jumps is 4.
30857
30858 (SECONDARY_INPUT_RELOAD_CLASS): If reloading a PLUS into FPUL,
30859 use GENERAL_REGS.
30860
308612003-03-05 Stephane Carrez <stcarrez@nerim.fr>
30862
30863 * config/m68hc11/m68hc11.h (PAD_VARARGS_DOWN): Define and return
30864 according to va_arg type.
30865 (EXPAND_BUILTIN_VA_ARG): Remove.
30866 * config/m68hc11/m68hc11.c (m68hc11_va_arg): Remove.
30867 * config/m68hc11/m68hc11-protos.h (m68hc11_va_arg): Remove.
30868
308692003-03-05 David Edelsohn <edelsohn@gnu.org>
30870
30871 * config/rs6000/rs6000.c (rs6000_variable_issue): Remove unnecessary
30872 else clauses.
30873
308742003-03-05 Michael Matz <matz@suse.de>
30875
30876 * i386/i386.c (ix86_save_reg): Also test
30877 current_function_uses_const_pool.
30878
308792003-03-05 Michael Matz <matz@suse.de>
30880
30881 * unwind.h: Add the GPL exception.
30882 * Makefile.in (USER_H): Add unwind.h.
30883
308842003-03-05 Eric Botcazou <ebotcazou@libertysurf.fr>
30885
30886 PR c/9799
30887 * c-typeck.c (push_init_level): Add sanity check.
30888
308892003-03-05 Jan Hubicka <jh@suse.cz>
30890
cea949a6 30891 * toplev.c (rest_of_compilation): Defer RTL compilation only when
2a868fac
KH
30892 RTL inlining is done.
30893
30894 * cgraphunit.c (cgraph_mark_local_functions): New local function.
30895 (cgraph_optimize): Mark local functions.
30896 * i386-protos.h (init_cumulative_args): Update prototype.
30897 * i386.c (init_cumulative_args): Use register passing convention for
30898 local functions.
30899
30900 * cgraph.c (cgraph_global_info_ready): New global variable
30901 (cgraph_local_info, cgraph_global_info): New functions.
30902 * cgraph.h (struct cgraph_local_info, cgraph_global_info): New
30903 structures.
30904 (cgraph_local_info, cgraph_global_info, cgraph_global_info_ready):
30905 Declare.
30906 * cgraphunit.c (cgraph_finalize_function): Set inline_many.
30907 (cgraph_mark_functions_to_output): Use inline_many.
30908 (cgraph_expand_function): Free DECL_SAVED_TREE uncondtionally.
30909 (cgraph_expand_functions): Expand inline functions last.
30910 (cgraph_optimize): Do not emit uneeded functions.
30911
309122003-03-04 Steve Ellcey <sje@cup.hp.com>
30913
30914 * expr.c (convert_modes): Check for legal hard register.
30915
309162003-03-04 Tom Tromey <tromey@redhat.com>
30917
30918 * doc/sourcebuild.texi (Front End Directory): Document tags.
30919 * configure: Rebuilt.
30920 * configure.in (target_list): Added tags.
30921 * Makefile.in (TAGS): Depend on lang.clean. Include subdirectory
30922 TAGS files by reference.
30923 * objc/Make-lang.in (objc.tags): New target.
30924
309252003-03-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
30926
30927 * gcov-io.h (gcov_save_position, gcov_reserve_length, gcov_resync,
30928 gcov_skip, gcov_skip_string, gcov_write_unsigned, gcov_write_counter,
30929 gcov_write_string, gcov_read_unsigned, gcov_read_counter,
30930 gcov_read_string, gcov_write_length): Modified to enable reading/
30931 writing of whole .da file just once.
30932 (da_file_open, da_file_close, da_file_eof, da_file_error,
30933 da_file_position, da_file_seek, da_file_write, da_file_read): New
30934 functions.
30935 (actual_da_file, actual_da_file_position, actual_da_file_length,
30936 actual_da_file_buffer, actual_da_file_buffer_size): New static
30937 functions.
30938 * libgcov.c (gcov_exit): Modified to read/write the whole .da file at
30939 just once.
30940
30941
309422003-03-04 Andreas Schwab <schwab@suse.de>
30943
30944 * config/m68k/m68k.c (m68k_output_function_prologue): Fix CFA
30945 offset without frame pointer.
30946
309472003-03-04 Steve Ellcey <sje@cup.hp.com>
30948
30949 * expr.c (expand_expr): Call promote_mode to set unsignedp.
30950
309512003-03-04 Daniel Jacobowitz <drow@mvista.com>
30952
30953 * configure.in: Don't always define TARGET_SYSTEM_ROOT.
30954 * configure: Regenerated.
30955 * gcc.c: Check whether TARGET_SYSTEM_ROOT is defined.
30956
309572003-03-04 Andreas Jaeger <aj@suse.de>
30958
30959 * configure.in: Check for <memcheck.h>.
30960 * configure: Regenerated.
30961
30962 * config.in: Define HAVE_MEMCHECK_H.
30963
30964 * ggc-common.c: Use <memcheck.h> if available instead of
30965 <valgrind.h>.
30966 * ggc-page.c: Likewise.
30967 * cppfiles.c: Likewise.
30968
309692003-03-04 Kazu Hirata <kazu@cs.umass.edu>
30970
30971 * config/h8300/h8300.md (*extzv_8_8): Fix cc and lengths.
30972
309732003-03-04 Eric Botcazou <ebotcazou@libertysurf.fr>
30974
30975 PR c/9262
30976 * c-typeck.c (do_case): Attach the first case label to the SWITCH_BODY.
30977 (c_finish_case): Rechain the next statements to the SWITCH_STMT.
30978
309792003-03-04 Jan Hubicka <jh@suse.cz>
30980
30981 * doc/invoke.texi: Document that unit-at-a-time is enabled for -O3
30982 * toplev.c (parse_options_and_default_flags): Enable flag_unit_at_a_time
30983 for -O3.
30984
309852003-03-04 Nathanael Nerode <neroden@gcc.gnu.org>
30986
30987 * configure.in: Delete three unused variables. Move a variable
30988 definition closer to its use. Simplify use_collect2 logic. Start to
30989 organize. Simplify tests for in-tree gas and ld.
30990 * configure: Regenerate.
30991
309922003-03-04 Neil Booth <neil@daikokuya.co.uk>
30993
30994 * Makefile.in: Update.
30995 * c-common.c (flag_no_line_commands, flag_no_output,
30996 flag_dump_macros, flag_dump_includes): New.
30997 * c-common.h (flag_no_line_commands, flag_no_output,
30998 flag_dump_macros, flag_dump_includes, preprocess_file): New.
30999 (init_c_lex): Update prototype.
31000 * c-lex.c (init_c_lex): Update prototype; move some code to
31001 c_common_init.
31002 * c-opts.c (preprocess_file): Subsume into c_common_init.
31003 (c_common_decode_option): Update flags.
31004 (c_common_init): Move code from preprocess_file and init_c_lex.
31005 (sanitize_cpp_opts): Update.
31006 * c-ppoutput.c: New, cppmain.c almost verbatim.
31007 * cpphash.h (struct printer): Remove.
31008 (struct cpp_reader): Remove print.
31009 * cpplib.h (dump_none, dump_only, dump_names, dump_definitions,
31010 cpp_preprocess_file): Remove.
31011 (struct cpp_options): Remove no_output, no_line_commands, dump_macros
31012 and dump_includes.
31013 * cppmain.c: Remove.
31014 * doc/passes.texi: Update.
31015
310162003-03-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
31017
31018 * function.c (STACK_ALIGNMENT_NEEDED): New macro. Default to 1.
31019 (assign_stack_local_1): Perform overall stack alignment only when
31020 STACK_ALIGNMENT_NEEDED is nonzero.
31021 * doc/tm.texi (STACK_ALIGNMENT_NEEDED): Document.
31022
31023 * pa.c (compute_frame_size): Rename fsize to size. Account for
31024 alignment to a word boundary before general register save block. Only
31025 account for double-word alignment before floating point register save
31026 block if one or more are saved. Don't allocate space for %r3 when
31027 frame pointer is needed.
31028 (hppa_expand_prologue): Include alignment to word boundary in local
31029 frame size.
31030 * pa.h (STARTING_FRAME_OFFSET): Define to 8 on both 32 and 64-bit ports.
31031 (STACK_ALIGNMENT_NEEDED): Define.
31032
310332003-03-04 Kevin Buettner <kevinb@redhat.com>
31034
31035 * dwarf2out.c (rtl_for_decl_location): Don't return NULL_RTX for
31036 global register variables.
31037
310382003-03-04 Alexandre Oliva <aoliva@redhat.com>
31039
31040 * reload.c (reload_adjust_reg_for_mode): New function.
31041 (subst_reloads): Call it.
31042 (operands_match_p): Adjust registers using HARD_REGNO_NREGS.
31043 * reload.h (reload_adjust_reg_for_mode): Declare.
31044 * reload1.c (emit_input_reload_insns, emit_output_reload_insns):
31045 Call it.
31046
310472003-03-03 James E Wilson <wilson@tuliptree.org>
31048
31049 * optabs.c (add_equal_note): Delete SUBREG_REG use.
31050 Fixes PR c/7872.
31051
310522003-03-03 Kazu Hirata <kazu@cs.umass.edu>
31053
31054 * config/h8300/h8300.md (*ixorsi3_ashift_16): New.
31055 (*ixorsi3_lshiftrt_16): New.
31056 (*iorsi3_ashift_16): Remove.
31057
310582003-03-03 Kazu Hirata <kazu@cs.umass.edu>
31059
31060 * config/h8300/h8300.md (*extzv_8_8): Use '?' to simplify the
31061 pattern.
31062
310632003-03-03 Geoffrey Keating <geoffk@apple.com>
31064
31065 * doc/install.texi (Specific): Update entry for powerpc-darwin.
31066
310672003-03-03 Richard Henderson <rth@redhat.com>
31068
31069 * config/ia64/ia64.h (HAVE_AS_LTOFFX_LDXMOV_RELOCS): Default to 0.
31070
310712003-03-03 David Edelsohn <edelsohn@gnu.org>
31072
31073 * config/rs6000/rs6000.c (rs6000_multipass_dfa_lookahead): Delete.
31074 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Delete.
31075 (rs6000_variable_issue): Do not return negative value.
31076 (rs6000_issue_rate): Uniformly set issue rate to 1 for first
31077 scheduling pass.
31078
310792003-03-03 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
31080
31081 * dwarf2out.c (dwarf2out_finish): Swap order of break_out_includes and
31082 prune_unused_types calls.
31083
310842003-03-03 Jason Merrill <jason@redhat.com>
31085
31086 * tree-inline.c (find_builtin_longjmp_call): Save and restore
31087 lineno and input_filename.
31088 (find_alloca_call): Likewise.
31089 (inlinable_function_p): Run the langhook earlier.
31090
31091 * calls.c (compute_argument_addresses): Give the new MEMs a
31092 minimum alignment of PARM_BOUNDARY.
31093
310942003-03-03 J"orn Rennecke <joern.rennecke@superh.com>
31095
31096 * config/sh/sh.h (EXTRA_SPECS): Add subtarget_asm_relax_spec and
31097 subtarget_asm_isa_spec.
31098 (SUBTARGET_ASM_RELAX_SPEC, SUBTARGET_ASM_ISA_SPEC): Define.
31099 (ASM_SPEC): Define as SH_ASM_SPEC.
31100 (SH_ASM_SPEC): New; take the role of ASM_SPEC, but safe from svr4.h.
31101 Use subtarget_asm_relax_spec and subtarget_asm_isa_spec.
31102 * config/sh/elf.h (ASM_SPEC): Use SH_ASM_SPEC.
31103 (SUBTARGET_ASM_ISA_SPEC): Undef / define.
31104
31105 * sh.h (OVERRIDE_OPTIONS): Set default values for align_loops
31106 and align_jumps if not set.
31107 Force align_jumps to be at least 2.
31108 When relaxing, force align_functions to be at least the maximum of
31109 align_loops, align_jumps and 4.
31110 * sh.c (find_barrier, barrier_align): Honour align_jumps_log.
31111 (sh_loop_align): Honour align_loops_log.
31112
31113 * sh.md (length attribute): Use prev_nonnote_insn instead of PREV_INSN
31114 to check for indirect_jump_scratch.
31115 (indirect_jump_scratch): Add second set.
31116 * sh.c (output_far_jump): Use prev_nonnote_insn instead of PREV_INSN
31117 when looking for indirect_jump_scratch.
31118 Extract scratch register taking new structure of indirect_jump_scratch
31119 into account.
31120 (gen_block_redirect): Set INSN_SCOPE for indirect_jump_scratch.
31121
311222003-03-03 Jan Hubicka <jh@suse.cz>
31123
31124 * calls.c (rtx_for_function_call): Take the address as an argument
31125 (expand_call): Do not modify the expression.
31126
31127 * toplev.c (rest_of_compilation): Avoid cfg_cleanup calls when not
31128 optimizing.
31129
311302003-03-03 Kazu Hirata <kazu@cs.umass.edu>
31131
31132 * config/h8300/h8300.md (*ixorsi3_zext_hi): Restrict to
31133 TARGET_H8300H and TARGET_H8300S.
31134
311352003-03-03 Kazu Hirata <kazu@cs.umass.edu>
31136
31137 * config/h8300/h8300.md (a peephole2): New.
31138
311392003-03-03 Kazu Hirata <kazu@cs.umass.edu>
31140
31141 * config/h8300/h8300.md (*extzv_8_8): Use shorter code when
31142 operands[0] and operands[1] are different.
31143
311442003-03-03 Kazu Hirata <kazu@cs.umass.edu>
31145
31146 * reload1.c (reload_cse_move2add): Remove variable success.
31147
311482003-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
31149
31150 * ggc-common.c (ggc_rlimit_bound): Cast RLIM_INFINITY to avoid
31151 warnings.
31152
311532003-03-02 Richard Henderson <rth@redhat.com>
31154
31155 * configure.in (HAVE_AS_LTOFFX_LDXMOV_RELOCS): New ia64 test.
31156 * config.in, configure: Rebuild.
31157 * config/ia64/ia64.c (ia64_ld_address_bypass_p): Accept lo_sum.
31158 * config/ia64/ia64.md (load_symptr): Use high/lo_sum for the
31159 paired ldtoffx and ldxmov annotations.
31160 (load_symptr_internal1): Remove.
31161 (load_symptr_high, load_symptr_low): New.
31162
311632003-03-02 Neil Booth <neil@daikokuya.co.uk>
31164
31165 * c-incpath.c (add_path): Fix sysp assignment.
31166
311672003-03-02 Kurt Garloff <garloff@suse.de>
31168
31169 * params.def: Introduce parameter max-inline-insns-rtl for
31170 a separate limit for the RTL inliner.
31171 * params.h: Likewise.
31172 * integrate.c (function_cannot_inline_p): Use it.
31173 * toplev.c (decode_f_option): Set multiple parameters
31174 controlling inlining with -finline-limit.
31175 * params.def: Fix orthographic and typographic errors.
31176 * doc/invoke.texi: Document parameters controlling inlining
31177 and the way -finline-limit sets multiple of them.
31178
31179 * tree.h (struct tree_decl): Introduce inlined_function_flag,
31180 recording whether the function became eligible for inlining
31181 by a compiler flag rather than the declaration.
31182 Provide DID_INLINE_FUNC macro to access it.
31183 * c-decl.c (grokdeclarator): Set DID_INLINE_FUNC.
31184 * cp/decl.c (grokfndecl): Likewise.
31185 * toplev.c (rest_of_compilation): Likewise.
31186 * cp/optimize (maybe_clone_body): Copy DID_INLINE_FUNC.
31187 * print-tree.c (print_node): Report it.
31188 * params.def: Introduce new max-inline-insns-auto limit.
31189 * params.h: Likewise.
31190 * tree-inline.c (inlinable_function_p): Apply it to functions
31191 with DID_INLINE_FUNC set.
31192 * toplev.c (decode_f_option): Initialize it from -finline-limit
31193 value.
31194 * doc/invoke.texi: Document new parameter.
31195
311962003-03-02 Geoffrey Keating <geoffk@apple.com>
31197
31198 * fix-header.c (read_scan_file): Don't reference simplify_path.
31199
312002003-03-02 Stephane Carrez <stcarrez@nerim.fr>
31201
31202 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't enable
31203 min/max instructions by default as may result in reload errors.
31204
312052003-03-02 Stephane Carrez <stcarrez@nerim.fr>
31206
31207 * config/m68hc11/m68hc11.md ("mulqi3"): Allow address register to
31208 avoid reload problems; define split for it.
31209
312102003-03-02 Stephane Carrez <stcarrez@nerim.fr>
31211
31212 * config/m68hc11/m68hc11.c (m68hc11_shift_operator): New function.
31213 * config/m68hc11/m68hc11-protos.h (m68hc11_shift_operator): Declare.
31214 * config/m68hc11/m68hc11.h (PREDICATE_CODES): Register.
31215 * config/m68hc11/m68hc11.md ("rotrhi3", "rotlhi3"): New patterns for
31216 rotatert and rotate.
31217 ("rotrhi3_const", "rotlhi3_const"): Rename of old 'rotrhi3' insns.
31218 ("*rotrhi3", "*rotlhi3"): New insn pattern for non-const rotatert.
31219 ("*rotrhi3_addr"): New split for shift insns on address register.
31220 ("*lshrhi3", "*ashrhi3", "*ashlhi3_2"): Use new split.
31221 * config/m68hc11/larith.asm (___rotlhi3): New asm function.
31222 (___rotrhi3): Likewise.
31223 * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Build them.
31224
312252003-03-02 Neil Booth <neil@daikokuya.co.uk>
31226
31227 * toplev.c (aux_base_name): Moved from toplev.h.
31228 (filename): Constify.
31229 (lang_dependent_init): Don't duplicate name.
31230 (process_options): Set aux_base_name here, not...
31231 (do_compile): ...here. Change protoype.
31232 (toplev_main): Move some code from do_compile.
31233 * toplev.h: Remove aux_base_name.
31234
312352003-03-02 Kazu Hirata <kazu@cs.umass.edu>
31236
31237 * config/h8300/h8300-protos.h: Add a prototype for
31238 iorxor_operator.
31239 * config/h8300/h8300.c (print_operand): Handle 'c'.
31240 (iorxor_operator): New.
31241 * config/h8300/h8300.h (PREDICATE_CODES): Add iorxor_operator.
31242 * config/h8300/h8300.md (*iorhi3_zext): Remove.
31243 (*iorsi3_zexthi): Likewise.
31244 (*iorsi3_zextsi): Likewise.
31245 (*xorhi3_zextqi): Likewise.
31246 (*xorsi3_zexthi): Likewise.
31247 (*xorsi3_zextsi): Likewise.
31248 (*ixorhi3_zext): New.
31249 (*ixorsi3_zext_qi): Likewise.
31250 (*ixorsi3_zext_hi): Likewise.
31251
312522003-03-02 Neil Booth <neil@daikokuya.co.uk>
31253
31254 * c-incpath.c (remove_component_p, simplify_path): Move back to
31255 cppfiles.c.
31256 (remove_duplicates): Use cpp_simplify_path.
31257 * c-incpath.h (simplify_path): Remove.
31258 * c-lex.c: Don't include c-incpath.h.
31259 (init_c_lex): Remove simplify_path.
31260 * cppfiles.c (remove_component_p, cpp_simplify_path): Restore.
31261 (find_or_create_entry, validate_pch): Revert.
31262
312632003-03-02 Ashif Harji <asharji@uwaterloo.ca>
31264
31265 * gcc.c (default_compilers): Add -no-integrated-cpp flag to invoke
31266 an external cpp during compilation.
31267 (option_map): Likewise.
31268 * objc/lang-specs.h (default_compilers): Similarly.
31269 * doc/invoke.texi: Document -no-integrated-cpp flag.
31270
312712003-03-02 Kazu Hirata <kazu@cs.umass.edu>
31272
31273 * config/h8300/h8300.md (zero_extendqisi2): Change to an
31274 expander.
31275 (*zero_extendqisi2_h8300): New.
31276 (*zero_extendqisi2_h8300hs): New.
31277 (two splitters): New.
31278
312792003-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
31280
31281 * fp-bit.h (float_to_usi): Fix condition wrapping prototype.
31282
312832003-03-01 Kazu Hirata <kazu@cs.umass.edu>
31284
31285 * config/h8300/h8300.md (a peephole2): Remove dead code.
31286
312872003-03-01 Roger Sayle <roger@eyesopen.com>
31288
31289 PR c++/9367
31290 * builtin-types.def (DEF_FUNCTION_TYPE_VAR_3): New macro.
31291 (BT_FN_INT_CONST_STRING_VALIST_ARG,
31292 BT_FN_INT_STRING_CONST_STRING_VALIST_ARG,
31293 BT_FN_INT_CONST_STRING_CONST_STRING_VALIST_ARG,
31294 BT_FN_INT_STRING_SIZE_CONST_STRING_VALIST_ARG,
31295 BT_FN_INT_STRING_CONST_STRING_VAR,
31296 BT_FN_INT_CONST_STRING_CONST_STRING_VAR,
31297 BT_FN_INT_STRING_SIZE_CONST_STRING_VAR): New built-in types.
31298 * builtin-attrs.def (ATTR_NONNULL_1, ATTR_NONNULL_2,
31299 ATTR_NONNULL_3): Also include the nothrow attribute.
31300 (sprintf, scanf, sscanf, vprintf, vsprintf, snprintf,
31301 vsnprintf, vscanf, vsscanf): Don't define attributes here.
31302 * builtins.def (putchar, puts): Make full C89 built-ins.
31303 (snprintf, sprintf, scanf, sscanf, vprintf, vscanf,
31304 vsscanf, vsnprintf, vsprintf): New built-ins.
31305 * c-common.c (c_common_nodes_and_builtins): Handle new macro
31306 DEF_FUNCTION_TYPE_VAR_3.
31307
31308 * doc/extend.texi: Document these new built-in functions.
31309
313102003-03-01 Kazu Hirata <kazu@cs.umass.edu>
31311
31312 * config/h8300/h8300.md (a peephole2): New.
31313
313142003-03-01 Richard Earnshaw <rearnsha@arm.com>
31315
31316 * predict.c (estimate_bb_frequencies): Correctly set
31317 real_values_initialized after initialization.
31318
313192003-03-01 Neil Booth <neil@daikokuya.co.uk>
31320
31321 * Makefile.in (C_AND_OBJC_OBJS, c-incpath.o, c-lex.o, LIBCPP_OBJS,
31322 cppinit.o, cppdefault.o, fix-header): Update.
31323 * c-incpath.c: New file.
31324 * c-incpath.h: New file.
31325 * c-lex.c: Include c-incpath.h.
31326 (init_c_lex): Register path simplifier.
31327 * c-opts.c: Include cppdefault.h and c-incpath.h.
31328 (TARGET_SYSTEM_ROOT, verbose, iprefix, sysroot, std_inc,
31329 std_cxx_inc, quote_chain_split, add_prefixed_path): New.
31330 (COMMAND_LINE_OPTIONS): Add more options from cpplib.
31331 (missing_arg, c_common_decode_option): Handle them.
31332 (c_common_post_options): Register include chains.
31333 (print_help): Update.
31334 * cppdefault.h (struct default include): Update.
31335 Move some macros to ...
31336 * cppdefault.c: ... here.
31337 (cpp_include_defaults): Add extra field add_sysroot.
31338 * cppfiles.c (include_file, search_from, find_or_create_entry,
31339 cpp_included, find_include_file, remap_filename): Update for
31340 renaming of search_path to cpp_path, and of the chain headers.
31341 (remove_component_p, _cpp_simplify_pathname): Move to c-incpath.c.
31342 * cpphash.h (struct search_path): Move to cpplib.h.
31343 (struct cpp_buffer, struct cpp_reader): Update.
31344 (_cpp_simplify_pathname): Remove.
31345 * cppinit.c: Don't include prefix.h and cppdefault.h.
31346 (INO_T_EQ, INO_T_COPY, path_include, append_include_chain,
31347 remove_dup_dir, remove_dup_nonsys_dirs, remove_dup_dirs,
31348 init_standard_includes, BRACKET, SYSTEM, AFTER, no_dir,
31349 no_pth, cpp_handle_options): Remove.
31350 (struct pending_option): Remove chain members.
31351 (cpp_destroy, cpp_read_main_file, COMMAND_LINE_OPTIONS,
31352 cpp_handle_option): Update.
31353 * cpplib.h (struct cpp_path, cpp_set_include_chains): New.
31354 (struct cpp_options): Remove quote_include, bracket_include,
31355 include_prefix, include_prefix_len, verbose, ignore_srcdir,
31356 no_standard_includes, no_standard_cplusplus_includes.
31357 (struct cpp_callbacks): Add simplify_path.
31358 (cpp_handle_options): Remove.
31359 * fix-header.c: Include c-incpath.h.
31360 (read_scan_file): Update to use c-incpath functionality.
31361 * doc/passes.texi: Update.
31362
313632003-03-01 Kazu Hirata <kazu@cs.umass.edu>
31364
31365 * config/h8300/h8300.c (bit_operand): Accept MEM only if it
31366 satisfies EXTRA_CONSTRAINT 'U'.
31367
313682003-03-01 Kazu Hirata <kazu@cs.umass.edu>
31369
31370 * config/h8300/h8300.md (*tst_extzv_bitqi_1_n): Take a scratch
31371 register.
31372 (*tst_extzv_memqi_1_n): Change to a splitter.
31373 (a peephole2): Update.
31374
313752003-03-01 Richard Earnshaw <rearnsha@arm.com>
31376
31377 * predict.c (estimate_bb_frequencies): Initialize the sreal
31378 constants once per compilation.
31379
313802003-02-28 Richard Henderson <rth@redhat.com>
31381
31382 * toplev.c (flag_eliminate_unused_debug_types): Enable by default.
31383
313842003-02-28 scott snyder <snyder@fnal.gov>
31385
31386 * flags.h: Add flag_eliminate_unused_debug_types.
31387 * toplev.c: Add flag_eliminate_unused_debug_types.
31388 (f_options): Add -feliminate-unused-debug-types.
31389 * dwarf2out.c (struct file_table): Add emitted member.
31390 (splice_child_die): Fix the parent pointer for the child being
31391 spliced.
31392 (lookup_filename): Maintain file_table.emitted array. Don't
31393 output .file directive here.
31394 (maybe_emit_file): (new)
31395 (init_file_table): Set up file_table.emitted.
31396 (dwarf2out_source_line): Use maybe_emit_file.
31397 (dwarf2out_start_source_file): Use maybe_emit_file.
31398 (dwarf2out_init): Use maybe_emit_file.
31399 (prune_unused_types_walk_attribs): (new)
31400 (prune_unused_types_mark): (new)
31401 (prune_unused_types_walk): (new)
31402 (prune_unused_types_prune): (new)
31403 (prune_unused_types): (new)
31404 (dwarf2out_finish): Call prune_unused_types if
31405 flag_eliminate_unused_debug_types is set.
31406 * doc/invoke.texi (Option Summary): Add
31407 -feliminate-unused-debug-types.
31408 (Debugging Options): Likewise.
31409
314102003-02-28 Geoffrey Keating <geoffk@apple.com>
31411
31412 * doc/invoke.texi: Change .pch to .gch.
31413 * cppfiles.c (open_file_pch): Likewise.
31414 * gcc.c (default_compilers): Likewise.
31415
314162003-02-28 Aldy Hernandez <aldyh@redhat.com>
31417
31418 * floatlib.c: Remove.
31419
314202003-02-28 Jason Merrill <jason@redhat.com>
31421
31422 * stor-layout.c (variable_size): Leave a "minus 1" outside the
31423 SAVE_EXPR.
31424
314252003-02-28 David Edelsohn <edelsohn@gnu.org>
31426
31427 * config/rs6000/power4.md: Add compare bypass.
31428
314292003-02-28 Jason Thorpe <thorpej@wasabisystems.com>
31430
31431 * config/netbsd.h: Update copyright years.
31432 (NETBSD_CPP_SPEC): Define _REENTRANT and _PTHREADS if
31433 -pthread is specified on the command line.
31434
314352003-02-28 Dale Johannesen <dalej@apple.com>
31436
31437 * loop.c (struct movable): Add insert_temp, shrink savemode.
31438 (scan_loop): Accept invariants that require copying; mark as
31439 insert_temp.
31440 (combine_movables): Don't combine insert_temp movables.
31441 (move_movables): Insert copies for insert_temp movables.
31442 Don't record the info based on regno for insert_temp's.
31443
314442003-02-28 Joel Sherrill <joel@OARcorp.com>
31445
31446 PR 9638/other
31447 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Ensure the
31448 this constant defaults to 1.
31449
314502003-02-28 Bob Wilson <bob.wilson@acm.org>
31451
31452 * config.gcc (xtensa-*-linux*): Add t-slibgcc-elf-ver to tmake_file.
31453
314542003-02-28 Richard Earnshaw <rearnsha@arm.com>
31455
31456 * arm.md (mulhisi3, mulhisi3addsi, mulhidi3adddi): Enable for any
31457 ARMv5e processor, not just for XScale. Instructions are predicable.
31458 (mulhisi3tb, mulhisi3bt, mulhisi3tt): New patterns for ARMv5e.
31459
314602003-02-28 Nick Clifton <nickc@redhat.com>
31461
31462 * config/arm/arm.c (note_invalid_constants): Change parameter type
31463 from bool to int.
31464
314652003-02-28 Kazu Hirata <kazu@cs.umass.edu>
31466
31467 * config/h8300/h8300.md (*tst_extzv_bitqi_1_n): Accept the
31468 test of bit 7.
31469 (*tst_extzv_memqi_1_n): Likewise.
31470 (a peephole2): New.
31471
314722003-02-28 Richard Sandiford <rsandifo@redhat.com>
31473
31474 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Wrap in
31475 #ifndef __mips16.
31476
314772003-02-28 Jan Hubicka <jh@suse.cz>
31478
31479 * combine.c (gen_lowpart_for_combine): Update handling of
31480 subregs_of_mode
31481 * flow.c (life_analysis, mark_used_regs): Likewise.
31482 * regclass.c (subregs_of_mode): Turn into single bitmap.
31483 (cannot_change-mode_set_regs, invalid_mode_change_p): Update
31484 dealing with subregs_of_mode
31485 * regs.h (subregs_of_mode): Update prototype.
31486
314872003-02-28 Josef Zlomek <zlomekj@suse.cz>
31488
31489 * emit-rtl.c (set_reg_attrs_for_parm): New function.
31490 * rtl.h (set_reg_attrs_for_parm): New exported function.
31491 * function.c (assign_parms): Use set_reg_attrs_for_parm instead of
31492 set_reg_attrs_from_mem.
31493
314942003-02-27 Roger Sayle <roger@eyesopen.com>
31495 Zack Weinberg <zack@codesourcery.com>
31496
31497 * gcc.c (do_spec_1): Treat %U like %u for unique associations.
31498
314992003-02-27 Kazu Hirata <kazu@cs.umass.edu>
31500
31501 * reload1.c (sext_for_mode): Remove.
31502 (reload_cse_move2add): Use trunc_int_for_mode instead of
31503 sext_for_mode.
31504 (move2add_note_store): Likewise.
31505 Reset register information if we see a set in non-integer
31506 mode.
31507
315082003-02-27 David Edelsohn <edelsohn@gnu.org>
31509
31510 * config/rs6000/aix43.h (ASM_SPEC): Only emit -mppc64 if no -mcpu
31511 option.
31512 (ASM_CPU_SPEC): Use -m620 for Power3, Power4, 620, 630.
31513 * config/rs6000/aix51.h: Same.
31514 * config/rs6000/aix52.h: Same.
31515 * config/rs6000/power4.md: Additional VMX bypasses.
31516
315172003-02-27 Geert Bosch <bosch@gnat.com>
31518
31519 * toplev.c (print_version): Add indentation for GGC heuristics and
31520 output after printing version information.
31521
315222003-02-27 James E Wilson <wilson@tuliptree.org>
31523
31524 * combine.c (simplify_comparison): Require integral mode when
31525 permuting SUBREG with AND.
31526
315272003-02-27 Steve Ellcey <sje@cup.hp.com>
31528
31529 * config/ia64/hpux.h (STARTFILE_PREFIX_SPEC): Remove.
31530
315312003-02-27 Nick Clifton <nickc@redhat.com>
31532
31533 * config/arm/arm.md (extendsfdf2): Add pattern accidentally
31534 deleted when cirrus instructions were added.
31535
315362003-02-27 Jason Thorpe <thorpej@wasabisystems.com>
31537
31538 * config.gcc (*-*-netbsd[2-9]*, *-*-netbsdelf[2-9]*): Enable
31539 POSIX thread support by default.
31540
315412003-02-27 Roger Sayle <roger@eyesopen.com>
31542
31543 * config/i386/cygwin.h: Don't include any other files directly.
31544 * config/i386/mingw32.h: Don't include cygwin.h directly.
31545 * config.gcc (cygwin, mingw32, uwin): Instead make these files
31546 explicit in the tm_files variable.
31547
315482003-02-27 Alan Modra <amodra@bigpond.net.au>
31549
31550 * config/rs6000/rs6000.md: Add TI constant splitter.
31551
315522003-02-26 Alexandre Oliva <aoliva@redhat.com>
31553
31554 * builtins.c (purge_builtin_constant_p): Handle subreg of
31555 constant_p_rtx too.
31556
31557 * function.c (assign_stack_local_1): Truncate constant added to
31558 frame_pointer_rtx or virtual_stack_vars_rtx for Pmode.
31559
315602003-02-26 David Edelsohn <edelsohn@gnu.org>
31561
31562 * config.gcc: Add power4 to PowerPC with_cpu list.
31563
315642003-02-26 Jan Hubicka <jh@suse.cz>
31565
31566 * objc-act.c: (mark_referenced_methods): Fix compilation problem.
31567
315682003-02-26 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
31569
31570 * gcov-dump.c (print_prefix): Fix signedness warning.
31571 * gcov-io.h (struct counter_section, struct counter_section_data): New.
31572 (struct function_info): n_arc_counts field removed, n_counter_sections,
31573 counter_sections fields added.
31574 (struct gcov_info): arc_counts, n_arc_counts fields removed,
31575 n_counter_sections, counter_sections fields added.
31576 * libgcov.c (gcov_exit, __gcov_flush): Add support for multiple
31577 profile sections.
31578 * profile.h (MAX_COUNTER_SECTIONS): New.
31579 (struct section_info): New.
31580 (struct profile_info): count_instrumented_edges,
31581 count_edges_instrumented_now fields removed, n_sections, section_info
31582 fields added.
31583 (find_counters_section): Declare.
31584 * profile.c (struct function_list): count_edges field removed,
31585 n_counter_sections, counter_sections fields added.
31586 (set_purpose, label_for_tag, build_counter_section_fields,
31587 build_counter_section_value, build_counter_section_data_fields,
31588 build_counter_section_data_value, build_function_info_fields,
31589 build_function_info_value, build_gcov_info_fields,
31590 build_gcov_info_value): New static functions.
31591 (find_counters_section): New function.
31592 (instrument_edges, get_exec_counts, compute_branch_probabilities,
31593 branch_prob, create_profiler): Modified to support multiple profile
31594 sections.
31595
315962003-02-26 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
31597
31598 * pa.c (compute_frame_size): Don't assume PREFERRED_STACK_BOUNDARY
31599 is 8 * STACK_BOUNDARY.
31600 * pa.h (PREFERRED_STACK_BOUNDARY): Change to 128 on 64-bit port.
31601
316022003-02-26 Michael Matz <matz@suse.de>
31603
31604 * ra-colorize.c (merge_moves): Fix list handling.
31605
316062003-02-26 Nick Clifton <nickc@redhat.com>
31607
31608 * config/arm/arm.c (is_load_address): Rename to...
31609 (arm_memory_load_p) ... this and make it check for SUBREGs and
31610 constant loads that will be converted into loads from the
31611 minipool.
31612 (is_cirrus_insn): Rename to ...
31613 (arm_cirrus_insn_p): ... this, for consistency. Replace test
31614 of CIRRUS_NO with CIRRUS_NOT.
31615 (cirrus_reorg): Use renamed functions.
31616 (note_invalid_constants): Change from a void function to bool.
31617 Add an extra parameter, saying whether the fixups should be
31618 pushed. Return true if fixups are needed.
31619 (arm_reorg): Use renamed functions. Use INSN_P. Replace test
31620 of CIRRUS_NO with CIRRUS_NOT.
31621 * config/arm/arm.h (FLOAT_WORDS_BIG_ENDIAN): Mention that
31622 other floating point co-processors can also affect this.
31623 * config/arm/arm.md ("type" attribute): Add mav_farith and
31624 mav_dmult. Replace references to "cirrus_type" attribute with
31625 "type".
31626 * config/arm/cirrus.md ("cirrus_fpu" attribute): Delete.
31627 ("cirrus_type" attribute): Delete - use "type" instead.
31628 ("cirrus" attribute): Replace 'no' with 'not' and 'yes' with
31629 'normal'.
31630
316312003-02-25 Jan Hubicka <jh@suse.cz>
31632
31633 * objc-act.c: Include cgraph.h
31634 (mark_referenced_methods): New function.
31635 (objc_init): Call it.
31636 * objc-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Set.
31637
31638 * c-decl.c (finish_function): Honor can_defer_p even in unit-at-a-time
31639 mode.
31640
31641 * optabs.c (expand_fix): Do not widen the input operand.
31642
31643 * expr.c (emit_group_store): Fix crash when converting single
31644 register into complex register.
31645
31646 * Makefile.in (jump.o, regclass.o, alias.o): Add dependency on timevar.h
31647 * alias.c: Include timevar.h
31648 (init_alias_analysis): Set timevar
31649 * jump.c: Include timevar.h
31650 (rebuild_jump_labels): Set timevar
31651 * regcalss.c: Include timevar.h
31652 (reg_scan): Set timevar
31653 * timevar.def (TV_ALIAS_ANALYSIS, TV_REG_SCAN, TV_REBUILD_JUMP): New
31654
316552003-02-26 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
31656
31657 * cse.c (count_reg_usage): Fix handling of REG_EQUAL notes.
31658
31659 * Makefile.in (loop-unroll.o): New.
31660 * cfgloop.h (UAP_PEEL, UAP_UNROLL, UAP_UNROLL_ALL): New.
31661 (unroll_and_peel_loops): Declare.
31662 * alias.c (init_alias_analysis): Flag_unroll_loops renamed to
31663 flag_old_unroll_loops.
31664 * loop.c (loop_invariant_p): Ditto.
31665 * unroll.c (unroll_loop): Flag_unroll_all_loops renamed to
31666 flag_old_unroll_all_loops.
31667 * flags.h (flag_unroll_loops): Renamed to flag_old_unroll_loops.
31668 (flag_unroll_all_loops): Renamed to flag_old_unroll_all_loops.
31669 * params.def (PARAM_MAX_UNROLLED_INSNS): Default value changed.
31670 (PARAM_MAX_AVERAGE_UNROLLED_INSNS, PARAM_MAX_UNROLL_TIMES,
31671 PARAM_MAX_PEELED_INSNS, PARAM_MAX_PEEL_TIMES,
31672 PARAM_MAX_COMPLETELY_PEELED_INSNS, PARAM_MAX_COMPLETELY_PEEL_TIMES,
31673 PARAM_MAX_ONCE_PEELED_INSNS): New.
31674 * toplev.h (flag_old_unroll_loops, flag_old_unroll_all_loops): New.
31675 (flag_unroll_loops, flag_unroll_all_loops): Used for new unroller
31676 instead of old one.
31677 (flag_peel_loops): New.
31678 (lang_independent_options): The new flags added.
31679 (rest_of_compilation): Call new unroller.
31680 (process_options): Setup flags for coexistence of old and new unroller.
31681 * doc/invoke.texi: Document new options.
31682 * doc/passes.texi: Document new unroller pass.
31683
316842003-02-26 David Billinghurst <David.Billinghurst@riotinto.com>
31685
31686 * fixinc/fixincl.x: Regenerate
31687
316882003-02-26 Josef Zlomek <zlomekj@suse.cz>
31689
31690 * function.c (assign_parms): Set reg_attrs for parameters passed in
31691 registers.
31692
316932003-02-26 Alan Modra <amodra@bigpond.net.au>
31694
31695 PR target/9681
31696 * tlink.c (scan_linker_output): Drop leading '.' from symbol names.
31697
316982003-02-25 David Edelsohn <edelsohn@gnu.org>
31699
31700 * config/rs6000/xcoff.h (ASM_FILE_START): Do not emit machine
31701 pseudo-op.
31702
317032003-02-25 Roger Sayle <roger@eyesopen.com>
31704
31705 * combine.c (combine_simplify_rtx, simplfy_comparison): Use CC0_P.
31706 * cse.c (invalidate_skipped_set): Likewise.
31707 * integrate.c (subst_constants): Likewise.
31708 * jump.c (reversed_comparison_code_parts): Likewise.
31709 * loop.c (canonicalize_condition): Likewise.
31710 * simplify-rtx.c (simplify_relational_operation): Likewise.
31711
317122003-02-25 Roger Sayle <roger@eyesopen.com>
31713
31714 * builtins.def (DEF_LIB_ALWAYS_BUILTIN, DEF_UNUSED_BUILTIN): Delete.
31715 (abs, labs, fabs, fabsf, fabsl, abort, exit, _exit, _Exit): Use
31716 the appropriate macro to define built-in function.
31717 (fmod,fmodf,fmodl): New built-in functions.
31718
31719 * doc/extend.texi (fmod,fmodf,fmodl): Document new built-ins.
31720
317212003-02-25 Richard Henderson <rth@redhat.com>
31722
31723 * config/i386/i386.c (function_arg): Pass variable sized
31724 structures correctly on the stack.
31725
317262003-02-25 Kazu Hirata <kazu@cs.umass.edu>
31727
31728 * reload1.c (reload_cse_move2add): Use STRICT_LOW_PART if PLUS
31729 does not reduce the cost of SET.
31730
317312003-02-25 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
31732
31733 PR target/9732
31734 * config/rs6000/rs6000.c (first_reg_to_save): Handle
31735 PIC_OFFSET_TABLE_REGNUM for -fPIC too.
31736 (rs6000_emit_prologue): Likewise.
31737 (rs6000_emit_epilogue): Likewise.
31738 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Make
31739 PIC_OFFSET_TABLE_REGNUM a fixed register for -fPIC.
31740
317412003-02-25 Richard Henderson <rth@redhat.com>
31742
31743 * real.c (real_to_integer2): Force overflow result only for
31744 unsigned overflow.
31745
317462003-02-25 Kazu Hirata <kazu@cs.umass.edu>
31747
31748 * gcse.c (cprop_jump): Revert the 2003-02-23 change.
31749
317502003-02-25 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
31751 Richard Henderson <rth@redhat.com>
31752
31753 * sched-ebb.c (add_deps_for_risky_insns): Add the dependence when
31754 there is no similar load.
31755
317562003-02-25 Vladimir Makarov <vmakarov@redhat.com>
31757 Richard Henderson <rth@redhat.com>
31758
31759 * sched-int.h (INSN_TRAP_CLASS, WORST_CLASS): Move them from
31760 sched-rgn.c.
31761 (add_forward_dependence): New function prototype.
31762
31763 * sched-rgn.c (INSN_TRAP_CLASS, WORST_CLASS): Move them to
31764 sched-init.h.
31765 (CONST_BASED_ADDRESS_P, may_trap_exp, haifa_classify_insn): Move
31766 them to haifa-sched.c.
31767
31768 * haifa-sched.c (CONST_BASED_ADDRESS_P, may_trap_exp,
31769 haifa_classify_insn): Move them from sched-rgn.c.
31770
31771 * sched-deps.c (add_dependence): Return flag of creating a new
31772 entry.
31773 (add_forward_dependence): New function.
31774 (compute_forward_dependences): Use the function.
31775
31776 * sched-ebb.c (earliest_block_with_similiar_load): New function.
31777 (add_deps_for_risky_insns): New function.
31778 (schedule_ebb): Call the function.
31779
317802003-02-20 Aldy Hernandez <aldyh@redhat.com>
31781
31782 * doc/tm.texi: Document Rename TARGET_VECTOR_TYPES_COMPATIBLE to
31783 TARGET_VECTOR_OPAQUE_P. Document accordingly.
31784
31785 * testsuite/gcc.dg/20030218-1.c: Check that initialization of
31786 opaque types fail.
31787
31788 * c-typeck.c (comptypes): Change call to vector_types_compatible
31789 to vector_opaque_p.
31790 (convert_for_assignment): Call vector_opaque_p instead of
31791 vector_types_compatible.
31792 (really_start_incremental_init): Disallow initialization of opaque
31793 types.
31794
31795 * target-def.h: Remove TARGET_VECTOR_TYPES_COMPATIBLE.
31796 Define TARGET_VECTOR_OPAQUE_P.
31797 (TARGET_INITIALIZER): Same.
31798
31799 * target.h (struct gcc_target): Remove vector_types_compatible.
31800 Add vector_opaque_p.
31801
31802 * config/rs6000/rs6000.c (rs6000_spe_vector_types_compatible):
31803 Remove.
31804 (is_ev64_opaque_type): Check for TARGET_SPE and make sure type is
31805 a vector type. Change return type to bool.
31806 (TARGET_VECTOR_TYPES_COMPATIBLE): Remove.
31807 (TARGET_VECTOR_OPAQUE_P): Define.
31808
31809 * cp/parser.c (cp_parser_init_declarator): Call vector_opaque_p
31810 target hook.
31811 Include target.h.
31812 (cp_parser_init_declarator): Fix typo in function comments.
31813
318142003-02-25 Jan Hubicka <jh@suse.cz>
31815
31816 * Makefile.in (lcm.o): Add dependency on function.h
31817 * lcm.c (function.h): Include.
31818 * i386.c (machine_function, ix86_stack_locals,
31819 * ix86_save_varrargs_registers) : Move to
31820 ...
31821 * i386.h (machine_function, ix86_stack_locals,
31822 ix86_save_varrargs_registers): ... here; add optimize_mode_switching
31823 (ix86_optimize_mode_switching): New.
31824 * i386.md (fix patterns): Set ix86_optimize_mode_switching
31825
318262003-02-25 Nick Clifton <nickc@redhat.com>
31827
31828 * config/d30v/d30v.c (d30v_init_cumulative_args): Fix typo. Name
31829 of fourth arg is 'fndecl' not 'indirect'. Update comment
31830 describing the function's parameters.
31831
318322003-02-24 Jan Hubicka <jh@suse.cz>
31833
31834 * combine.c (simplify_shift_const): Fix previous patch.
31835
318362003-02-24 Jeff Law <law@redhat.com>
31837
31838 * i386.md (testdi_1_rex64): Discourage reload from using the %eax
31839 alternative.
31840 (testsi_1, testhi_1, testqi_1): Likewise.
31841
318422003-02-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
31843
31844 * config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Rename
31845 __EXTERN_PREFIX to __PRAGMA_EXTERN_PREFIX.
31846 * doc/extend.texi (Tru64 Pragmas): Reflect this.
31847
31848 * fixinc/inclhack.def (alpha___extern_prefix): Indicate #pragma
31849 extern_prefix support for Tru64 UNIX V5 <sys/stat.h>.
31850 * fixinc/fixincl.x: Regenerate.
31851 * fixinc/tests/base/sys/stat.h [ALPHA___EXTERN_PREFIX_CHECK]: New
31852 testcase.
31853 Fixes PR c/5059, c/6126, other/9671.
31854
318552003-02-24 Roger Sayle <roger@eyesopen.com>
31856
31857 * gcc.c (do_spec_1) ['{']: Handle pending argument upon return
31858 from handle_braces in "%{...}".
31859
318602003-02-24 Kaz Kojima <kkojima@gcc.gnu.org>
31861
31862 * config/sh/sh.c (TARGET_HAVE_TLS): Conditionally define.
31863 (prepare_move_operands): Handle TLS operands.
31864 (tls_symbolic_operand): New.
31865 (nonpic_symbol_mentioned_p): Handle TLS UNSPECs.
31866 (legitimize_pic_address): Do nothing for the TLS symbol.
31867 (sh_encode_section_info): Handle TLS case.
31868 (sh_strip_name_encoding): Drop TLS encoding.
31869 * config/sh/sh-protos.h (tls_symbolic_operand): Add prototype.
31870 * config/sh/sh.h (SH_TLS_ENCODING): Define.
31871 (TLS_SYMNAME_P, STRIP_TLS_ENCODING): Likewise.
31872 (ASM_OUTPUT_LABELREF): Drop TLS encoding.
31873 (OUTPUT_ADDR_CONST_EXTRA): Handle TLS UNSPECs.
31874 * config/sh/sh.md: Define TLS UNSPEC constants.
31875 (type): Add tls_load.
31876 ("tls_global_dynamic", "tls_local_dynamic"): New insns.
31877 ("sym2DTPOFF", "symDTPOFF2reg", "sym2GOTTPOFF"): New expanders.
31878 ("tls_initial_exec"): New insn.
31879 ("sym2TPOFF", "symTPOFF2reg"): New expanders.
31880 ("load_gbr"): New insn.
31881
31882 * configure.in (HAVE_AS_TLS): Add sh-*-* and sh[34]*-*-* cases.
31883 * configure: Regenerate.
31884
318852003-02-24 Alan Modra <amodra@bigpond.net.au>
31886
31887 PR 9297, PR 9722
31888 * calls.c (store_one_arg): Revert 1999-02-16 change. Revert
31889 2000-12-17 change. Pass EXPAND_STACK_PARM to expand_expr.
31890 * expr.h (enum expand_modifier): Define EXPAND_STACK_PARM.
31891 (enum block_op_methods): Reorder for better store_expr optimization.
31892 * expr.c (store_expr): Test bit 1 of "want_value" for call param
31893 stores, test bit 0 for original want_value meaning. Pass
31894 BLOCK_OP_CALL_PARM to emit_block_move when bit 1 set. Adjust
31895 recursive calls, and calls to expand_param.
31896 (expand_expr): Handle EXPAND_STACK_PARM modifier. When cse
31897 expected, set target to 0 rather than to subtarget. Formatting.
31898
318992003-02-23 Kazu Hirata <kazu@cs.umass.edu>
31900
31901 * gcse.c (cprop_jump): Use the REG_EQUAL note if available.
31902
319032003-02-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
31904
31905 * doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Document
31906 new default behavior.
31907 * ggc-common.c: Include sys/resource.h.
31908 (ggc_rlimit_bound): New function.
31909 (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Update
31910 defaults to account for rlimits.
31911
319122003-02-22 Richard Henderson <rth@redhat.com>
31913
31914 * i386.c, i386.h (TUNEMASK): Rename from CPUMASK.
31915
319162003-02-22 Kelley Cook <kelley@dwhoops.info>
31917
31918 * i386.h, i386.c, i386.md (ix86_tune): Rename from ix86_cpu.
31919 (ix86_tune_string): Rename from ix86_cpu_string.
31920
319212003-02-22 Kelley Cook <kelleycook@comcast.net>
31922
31923 * config/i386/i386.c: Replace "mcpu" with "mtune".
31924 * config/i386/i386.h (TARGET_OPTIONS): Likewise.
31925 (CC1_CPU_SPEC): Likewise. New warning for "-mcpu".
31926 * doc/invoke.texi (i386 and x86-64 Options): Replace "mcpu"
31927 with "mtune". Note that "mcpu" is a deprecated synonym for "mtune".
31928
319292003-02-23 Andreas Schwab <schwab@suse.de>
31930
31931 * config.gcc: Delete references to m68k/t-linux and
31932 m68k/t-linux-aout.
31933 * config/m68k/t-linux, config/m68k/t-linux-aout: Removed.
31934
319352003-02-22 Jan Hubicka <jh@suse.cz>
31936
31937 * toplev.c (rest_of_compilation): Apply fotgotten hunk
31938 of track scheduling patch.
31939
319402003-02-22 Jan Hubicka <jh@suse.cz>
31941
31942 * config/linux.h (TARGET_HAS_F_SETLKW): Define.
31943 * config/alpha/linux.h (TARGET_HAS_F_SETLKW): Likewise
31944
319452003-02-22 Jan Hubicka <jh@suse.cz>
31946
31947 * c-decl.c (c_expand_body_1): Fix.
31948
319492003-02-22 Jan Hubicka <jh@suse.cz>
31950
31951 * expmed.c (expand_divmod): Undo sign extensions for unsigned operands
31952
31953 * cfgcleanup.c (try_forward_edges): Don't check loop structures
31954 when not optimizing.
31955 (cleanup_cfg): Do not iterate trought delete_trivially_dead_insns
31956 when not expensive.
31957 * toplev.c (rest_of_compilation): Duplicate loop headers only when
31958 optimizing; Delete trivially dead insns early; fix optimize check.
31959
31960 * Makefile.in (c-decl.o, c-objc-common.o, cgraph.o, tree-inline.o): Add
31961 dependency on cgraph.h
31962 * c-decl.c: Include cgraph.h
31963 (finish_function): Update call of tree_inlinable_function_p.
31964 * c-objc-common.c: Include cgraph.h
31965 * cgraph.h: New file.
31966 * cgraphunit.c: New file.
31967 * cgraph.c (cgraph_node, cgraph_edge): Move into cgraph.h
31968 (cgraph_nodes, cgraph_n_nodes): Globalize.
31969 (cgraph_finalize_function, cgraph_finalize_compilation_unit
31970 cgraph_create_edges, cgraph_optimize, cgraph_mark_needed_node):
31971 Move into cgraphunit.c
31972 * tree-inline.c: Include cgraph.h
31973 * tree-inline.c: Include cgraph.h
31974
319752003-02-22 Josef Zlomek <zlomekj@suse.cz>
31976
31977 * config/i386/i386.md: Use gen_lowpart instead of gen_rtx_REG
31978 for copying a register.
31979
319802003-02-22 Steven Bosscher <s.bosscher@student.tudelft.nl>
31981
31982 PR other/3782
31983 * toplev.c (process_options): If flag_detailed_statistics is set,
31984 then set time_report as well.
31985
31986 PR c/8828
31987 * jump.c (never_reached_warning): Don't fall through BARRRIER
31988 insns. Update comments to reflect what the function really does.
31989
319902003-02-21 Roger Sayle <roger@eyesopen.com>
31991
31992 * fold-const.c (omit_one_operand): No longer static.
31993 * tree.h (omit_one_operand): Prototype here.
31994 (div_and_round_double): Keep fold-const.c prototypes together.
31995 * builtins.c (builtin_mathfn_code): Handle binary built-in
31996 funtions, such as "pow" and "atan2".
31997 (fold_builtin): Optimize both pow(x,0.0) and pow(1.0,y) to 1.0.
31998 Simplify optimizations using "type" the builtin's return type.
31999
320002003-02-22 Hans-Peter Nilsson <hp@axis.com>
32001
32002 * config/cris/cris.c (cris_rtx_costs): Blockify dangling else.
32003 Fix functionalization typo.
32004
32005 * regmove.c (optimize_reg_copy_1): Do not replace a hard register
32006 in an asm.
32007
320082003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
32009
32010 * Makefile.in (ggc-common.o): Depend on $(PARAMS_H)
32011 * doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Update
32012 documentation.
32013 * ggc-common.c: Include params.h
32014 (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
32015 init_ggc_heuristics): New functions.
32016 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
32017 init_ggc_heuristics): Prototype.
32018 * toplev.c (print_version): Output GGC heuristics.
32019 (parse_options_and_default_flags): Call init_ggc_heuristics.
32020
320212003-02-22 Jan Hubicka <jh@suse.cz>
32022
32023 * i386.c (def_builtin): Special case 64bit builtins.
32024 (MASK_SSE164, MASK_SSE264): New constants.
32025 (builtin_description): Add 64bit builtins.
32026 (ix86_init_mmx_sse_builtins): Likewise.
32027 * i386.h (enum ix86_builtins): Likewise.
32028 * i386.md (cvtss2siq, cvttss2siq, cvtsd2siq, cvttsd2siq, cvtsi2sdq,
32029 sse2_movq2dq_rex64, sse2_movsq2q_rex64): New.
32030 (sse2_movq2dq, sse2_movsq2q): Disable for 64bit.
32031 * mmintrin.h (_mm_cvtsi64x_si64, _mm_set_pi64x, _mm_cvtsi64_si64x): New.
32032 * xmmintrin.h (_mm_cvtss_si64x, _mm_cvttss_si64x, _mm_cvtsi64x_ss,
32033 _mm_set_epi64x, _mm_set1_epi64x, _mm_cvtsd_si64x, _mm_cvttsd_si64x,
32034 _mm_cvtsi64x_sd, _mm_cvtsi64x_si128, _mm_cvtsi128_si64x): New.
32035
320362003-02-22 Jan Hubicka <jh@suse.cz>
32037
32038 * i386.c (builtin_description): Add __builtin_ia32_paddq and
32039 __builtin_ia32_psubq. Fix __builtin_ia32_paddq128
32040 and __builtin_ia32_psubq128.
32041 * i386.h (IX86_BUILTIN_PADDQ, IX86_BUILTIN_PSUBQ): New.
32042 * i386.md (addv*, mmx_ior*, mmx_xoe*, mmx_and*): Add missing '%'.
32043 (mmx_adddi3, mmx_subdi3): New.
32044 * mmintrin.h (_mm_add_si64, _mm_sub_si64): New.
32045 * xmmintrin.h (_mm_movepi64_pi64): New.
32046 (_mm_add_epi64, _mm_sub_epi64): fix.
32047 (_mm_mul_pu16): Rename to...
32048 (_mm_mul_su32): ... this one.
32049
32050 * builtins.c (expand_builtin_expect): Do not predict
32051 flag_guess_branch_prob is not set.
32052 * c-semantics.c (expand_stmt): Likewise.
32053 * predict.c (predict_insn): Likewise.
32054 * stmt.c (expand_continue_loop): Likewise.
32055 * toplev.c (rest_of_compilation): Do not call
32056 note_prediction_to_br_prob and note_prediction_to_br_prob
32057 when not optimizing.
32058
320592003-02-21 Jan Hubicka <jh@suse.cz>
32060
32061 * cfgrtl.c (commit_edge_insertions): Call
32062 find_many_sub_basic_block only when some code has been emitted.
32063 (commit_edge_insertions_watch_calls): Bring into sync with
32064 commit_edge_insertions
32065
320662003-02-21 J"orn Rennecke <joern.rennecke@superh.com>
32067
32068 * sh.h (OVERRIDE_OPTIONS): Fix code that clears 'e' register class.
32069
32070 * sh.md (binary_sf_op): Use extra constant operand instead of
32071 negating constant operand 4.
32072 * sh.c (sh_expand_binop_v2sf): Supply it.
32073
320742003-02-21 Zack Weinberg <zack@codesourcery.com>
32075
32076 * cpphash.h (struct lexer_state): Add directive_wants_padding.
32077 * cpplib.c (_cpp_handle_directive): Set directive_wants_padding
32078 for directives of type INCL.
32079 (glue_header_name, parse_include): Use get_token_no_padding.
32080 * cppmacro.c (replace_args): If directive_wants_padding,
32081 provide padding tokens.
32082
320832003-02-21 Kazu Hirata <kazu@cs.umass.edu>
32084
32085 * config/h8300/h8300.md (a peephole2): New.
32086
320872003-02-21 Jan Hubicka <jh@suse.cz>
32088
32089 * cfgrtl.c (commit_one_edge_insertion): Only mark BB for splitting.
32090 (commit_edge_insertions): Call find_many_sub_basic_blocks
32091
32092 * reg-stack.c (convert_regs): Cleax aux for blocks.
32093
320942003-02-21 Jan Hubicka <jh@suse.cz>
32095
32096 * toplev.c (parse_options_and_default_flags): Undo accidental commit.
32097
320982003-02-21 Glen Nakamura <glen@imodulo.com>
32099
32100 PR optimization/8613
32101 * builtins.c (expand_builtin): Emit postincrements before expanding
32102 builtin functions.
32103
321042003-02-21 Ben Elliston <bje@redhat.com>
32105
32106 PR other/5634
32107 * doc/install.texi (Configuration): Explain using $HOME instead of
32108 the ~ metacharacter when referring to home directories.
32109
321102003-02-20 Alexandre Oliva <aoliva@redhat.com>
32111
32112 * configure.in (TARGET_SYSTEM_ROOT): Set default to
32113 ${exec_prefix}/${target_alias}/sys-root. Match explicit
32114 '${exec_prefix}' (in addition to the expansion thereof) as
32115 relocatable.
32116 * configure: Rebuilt.
32117
321182003-02-20 Kazu Hirata <kazu@cs.umass.edu>
32119
32120 * config/h8300/h8300.md (addhi3_incdec): Change the name to
32121 *addhi3_incdec.
32122 (addsi3_incdec): Change the name to *addsi3_incdec.
32123
321242003-02-20 Roger Sayle <roger@eyesopen.com>
32125
32126 * explow.c (force_reg): Avoid useless REG_EQUAL notes.
32127
321282003-02-20 Toon Moene <toon@moene.indiv.nluug.nl>
32129
32130 PR fortran/9038
32131 * c-opts.c (sanitize_cpp_opts): Add Fortran front end
32132 options to be ignored.
32133 (c_common_decode_option): Ignore them when preprocessing.
32134
321352003-02-20 Jan Hubicka <jh@suse.cz>
32136
32137 * toplev.c (flag_sched2_use_superblocks, flag_sched2_use_traces): New
32138 global variables.
32139 (lang_independent_options): Add -fsched2-use-superblocks
32140 -fsced2-use-traces.
32141 (rest_of_compilation): Deal with it.
32142 * invoke.texi (-fsched2-use-traces, fsched2-use-superblocks): Declare.
32143 * flags.h (flag_sched2_use_superblocks, flag_sched2_use_traces):
32144 Declare.
32145 * rtl.h (reg_to_stack): Update prototype.
32146 * reg-stack.c (reg_to_stack): Return when something has changed;
32147 update liveness when executing after superblock scheduling.
32148
32149 * combine.c (simplify_shift_const): Simplify few special cases
32150 into constants.
32151
321522003-02-20 David Edelsohn <edelsohn@gnu.org>
32153
32154 * config/rs6000/rs6000.md: (attr "type"): Add fast_compare.
32155 (add.,subf.,neg.): Change attribute to fast_compare.
32156 All DFA descriptions updated.
32157
321582003-02-20 Nathan Sidwell <nathan@codesourcery.com>
32159
32160 Change base class access representation.
32161 * tree.h (TREE_VIA_PUBLIC, TREE_VIA_PROTECTED,
32162 TREE_VIA_PRIVATE): Remove.
32163 (BINFO_BASEACCESSES): New binfo elt.
32164 (BINFO_BASEACCESS): New accessor.
32165 (BINFO_ELTS): Increase.
32166 (TI_ACCESS_PUBLIC, TI_ACCESS_PROTECTED, TI_ACCESS_PRIVATE): New.
32167 (access_public_node, access_protected_node,
32168 access_private_node): New global nodes.
32169 * tree.c (build_common_tree_nodes_2): Initialize access nodes.
32170 * dbxout.c (dbxout_type): Adjust.
32171 * dwarf2out.c (gen_inheritance_die): Add access parameter.
32172 (gen_member_die): Adjust.
32173 * dwarfout.c (output_inheritance_die): ARG is array of two trees.
32174 (output_type): Adjust.
32175 * tree-dump.c (dequeue_and_dump): Adjust binfo dumping.
32176
32177 Change base class access representation. Share virtual base
32178 binfos.
32179 * cp/call.c (build_special_member_call): Remove binfo_for_vbase
32180 call.
32181 * cp/class.c (build_base_path): Likewise.
32182 (build_primary_vtable): Adjust BINFO_NEW_VTABLE_MARKED use.
32183 (build_secondary_vtable): Remove FOR_TYPE arg. Adjust.
32184 (make_new_vtable): Adjust.
32185 (force_canonical_binfo_r): Delete.
32186 (force_canonical_binfo): Delete.
32187 (mark_primary_virtual_base): Delete.
32188 (dfs_unshared_virtual_bases): Delete.
32189 (mark_primary_bases): Adjust.
32190 (maybe_warn_about_overly_private_class): Adjust.
32191 (dfs_base_derived_from): Delete.
32192 (base_derived_from): Follow the inheritance chain.
32193 (struct find_final_overrider_data): Add vpath member.
32194 (dfs_find_final_overrider): Adjust.
32195 (dfs_find_final_overrider_q, dfs_find_final_overrider_post): New.
32196 (find_final_overrider): Adjust.
32197 (update_vtable_entry_for_fn): Adjust.
32198 (modify_all_vtables): Adjust.
32199 (walk_subobject_offsets): Adjust.
32200 (layout_nonempty_base_or_field): Adjust.
32201 (layout_empty_base): Remove last parameter. Adjust.
32202 (build_base_field): Adjust.
32203 (build_base_fields): Adjust.
32204 (propagate_binfo_offsets): Remove last parameter. Adjust.
32205 (dfs_set_offset_for_unshared_vbases): Delete.
32206 (layout_virtual_bases): Adjust.
32207 (finish_struct_1): Adjust.
32208 (init_class_processing): Don't init access nodes.
32209 (dfs_get_primary_binfo): Delete.
32210 (get_primary_binfo): Adjust.
32211 (dump_class_hierarchy_r): Remove most derived arg, add IGO
32212 parameter. Adjust.
32213 (dump_class_hierarchy): Adjust.
32214 (finish_vtbls): Adjust.
32215 (get_original_base): Delete.
32216 (build_vtt_inits): Adjust.
32217 (dfs_build_secondary_vptr_vtt_inits): Adjust.
32218 (dfs_ctor_vtable_bases_queue_p): Adjust.
32219 (build_ctor_vtbl_group): Adjust.
32220 (dfs_accumulate_vtbl_inits): Adjust.
32221 (build_vtbl_initializer): Adjust.
32222 (build_vbase_offset_vtbl_entries): Adjust.
32223 (add_vcall_offset_vtbl_entries_1): Adjust.
32224 * cp/cp-tree.h (CPTI_ACCESS_*): Remove.
32225 (access_*_node): Remove.
32226 (CANONICAL_BINFO): Delete.
32227 (BINFO_UNSHARED_MARKED): Remove.
32228 (BINFO_MARKED): Set LANG_FLAG_0 directly.
32229 (SET_BINFO_MARKED, CLEAR_BINFO_MARKED): Delete.
32230 (BINFO_VTABLE_PATH_MARKED): Set LANG_FLAG_3 directly.
32231 (SET_BINFO_VTABLE_PATH_MARKED, CLEAR_BINFO_VTABLE_PATH_MARKED):
32232 Delete.
32233 (BINFO_NEW_VTABLE_MARKED): Set LANG_FLAG_4 directly.
32234 (SET_BINFO_NEW_VTABLE_MARKED): Adjust.
32235 (SET_BINFO_PUSHDECLS_MARKED, CLEAR_BINFO_PUSHDECLS_MARKED):
32236 Delete.
32237 (BINFO_DEPENDENT_BASE_P): New.
32238 (dfs_walk, dfs_walk_real): Queue function takes derived binfo and
32239 index.
32240 (markedp, unmarkedp): Adjust.
32241 (dfs_unmarked_real_bases_queue_p, dfs_marked_real_bases_queue_p,
32242 dfs_skip_vbases, marked_vtable_pathp, unmarked_vtable_pathp,
32243 find_vbase_instance, binfo_for_vbase): Delete.
32244 (copied_binfo, original_binfo): Declare.
32245 (finish_base_specifier): Add virtual_p arg.
32246 (unshare_base_binfos): Delete.
32247 (copy_base_binfos): Declare.
32248 (reverse_path): Delete.
32249 * cp/decl.c (xref_basetypes): Access and virtuality passed
32250 differently. Don't copy direct base binfos here. Call
32251 copy_base_binfos.
32252 * cp/init.c (dfs_initialize_vtbl_ptrs): Adjust.
32253 (initialize_vtbl_ptrs): Adjust.
32254 (expand_member_init): Adjust.
32255 * cp/parser.c (cp_parser_base_specifier): Adjust.
32256 * cp/pt.c (instantiate_class_template): Adjust.
32257 (get_template_base_recursive): Adjust.
32258 * cp/rtti.c (get_pseudo_ti_init): Adjust.
32259 (get_pseudo_ti_desc): Adjust.
32260 * cp/tree.c (unshare_base_binfos): Rename to ...
32261 (copy_base_binfos): ... here, reimplement.
32262 (make_binfo): Set BINFO_DEPENDENT_BASE_P.
32263 (reverse_path): Remove.
32264 * cp/typeck.c (get_delta_difference): Adjust error messages.
32265 * cp/semantics.c (finish_base_specifier): Add virtual arg, adjust.
32266 * cp/search.c (lookup_base_r): Adjust.
32267 (dynamic_cast_base_recurse): Adjust.
32268 (canonical_binfo): Remove.
32269 (dfs_canonical_queue): Remove.
32270 (dfs_assert_unmarked_p): Remove.
32271 (assert_canonical_unmarked): Remove.
32272 (shared_marked_p, shared_unmarked_p): Remove.
32273 (BINFO_ACCESS, SET_BINFO_ACCESS): Use TREE_PUBLIC & TREE_PRIVATE.
32274 (dfs_access_in_type): Adjust.
32275 (access_in_type): Adjust.
32276 (dfs_accessible_queue_p): Adjust.
32277 (dfs_accessible_p): Adjust.
32278 (is_subobject_of_p_1, is_subobject_of_p): Remove.
32279 (struct lookup_field_info): Remove from_dep_base_p field.
32280 (lookup_field_queue_p): Adjust, test BINFO_DEPENDENT_BASE_P.
32281 (lookup_field_r): Remove dependent base code.
32282 (lookup_member): Likewise.
32283 (dfs_walk, dfs_walk_real): Add access arg to queue fn.
32284 (dfs_unmarked_real_bases_queue_p): Remove.
32285 (dfs_marked_real_bases_queue_p): Remove.
32286 (dfs_skip_vbases): Remove.
32287 (dfs_get_pure_virtuals): Adjust.
32288 (markedp, unmarkedp): Adjust.
32289 (marked_vtable_pathp, unmarked_vtable_pathp): Remove.
32290 (marked_pushdecls_p, unmarked_pushdecls_p): Adjust.
32291 (dfs_unmark): Adjust.
32292 (dfs_get_vbase_types):Remove.
32293 (dfs_build_inheritance_graph_order): Remove.
32294 (get_vbase_types): Remove
32295 (dfs_find_vbase_instance): Remove.
32296 (find_vbase_instance): Remove.
32297 (dfs_debug_unmarkedp): Adjust.
32298 (dependent_base_p): Remove.
32299 (dfs_push_type_decls): Adjust.
32300 (dfs_push_decls): Adjust.
32301 (dfs_no_overlap_yet): Adjust.
32302 (copied_binfo): New function.
32303 (original_binfo): New function.
32304 (binfo_for_vbase): Remove.
32305
32306 Change base class access representation.
32307 * java/class.c (set_super_info): Don't set TREE_VIA_PUBLIC.
32308 (add_interface_do): Likewise.
32309
323102003-02-20 David Edelsohn <edelsohn@gnu.org>
32311
32312 * config/rs6000/sysv4.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
32313 * config/rs6000/power4.md (power4-store,power4-vecstore): New
32314 insn reservations.
32315 (power4-fpstore): Compact.
32316
323172003-02-20 Kazu Hirata <kazu@cs.umass.edu>
32318
32319 * config/h8300/h8300.md (*iorsi3_w): New.
32320
323212003-02-20 Josef Zlomek <zlomekj@suse.cz>
32322
32323 * combine.c (distribute_notes): Kill REG_EXEC_COUNT.
32324 * rtl.c (reg_note_name): Likewise.
32325 * rtl.h (enum reg_note): Likewise.
32326 * doc/invoke.texi: Likewise.
32327 * doc/rtl.texi: Likewise.
32328
323292003-02-20 Josef Zlomek <zlomekj@suse.cz>
32330
32331 * bb-reorder.c (find_traces_1_round): Fix comment typo.
32332
323332003-02-19 Roger Sayle <roger@eyesopen.com>
32334
32335 * fold-const.c (fold_real_zero_addition_p): Don't fold a zero
32336 addition in the presence of signaling NaNs.
32337
323382003-02-19 Krister Walfridsson <cato@df.lth.se>
32339
32340 * tm.texi (INIT_CUMULATIVE_ARGS): Fix typo.
32341
323422003-02-19 Kazu Hirata <kazu@cs.umass.edu>
32343
32344 * config/h8300/h8300.c (output_logical_op): Optimize or.l when
32345 ORing with 0xffff??00 with the highest bit of the ?? part set.
32346 (compute_logical_op_length): Update.
32347 (compute_logical_op_cc): Likewise.
32348
323492003-02-19 Josef Zlomek <zlomekj@suse.cz>
32350
32351 * bb-reorder.c (find_traces_1_round): Fixed condition for small
32352 destination block with multiple predecessors.
32353 (connect_traces): Check whether the block is a start of trace.
32354
323552003-02-19 Jan Hubicka <jh@suse.cz>
32356
32357 * calls.c (expand_call): Update call of INIT_CUMULATIVE_ARGS
32358 * function.c (assign_params): Likewise.
32359 * arm-protos.h (arm_init_cumulative_args): Update prototype.
32360 * arm.c (arm_init_cumulative_args): Update function.
32361 * arm.h (INIT_CUMULATIVE_ARGS): Update.
32362 * avr-protos.h (init_cumulative_args): Update prototype.
32363 * avr.c (init_cumulative_args): Update function.
32364 * avr.h (INIT_CUMULATIVE_ARGS): Update.
32365 * d30v-protos.h (d30v_init_cumulative_args): Update prototype.
32366 * d30v.c (d30v_init_cumulative_args): Update function.
32367 * d30v.h (INIT_CUMULATIVE_ARGS): Update.
32368 * frv-protos.h (frv_init_cumulative_args): Update prototype.
32369 * frv.c (frv_init_cumulative_args): Update function.
32370 * frv.h (INIT_CUMULATIVE_ARGS): Update.
32371 * mips.c (mips_expand_prolgue): Update call of INIT_CUMULATIVE_ARGS.
32372 * pa.h (INIT_CUMULATIVE_ARGS): Update.
32373 * sparc-protos.h (init_cumulative_args): Update prototype.
32374 * sparc.c (init_cumulative_args): Update function.
32375 * sparc.h (INIT_CUMULATIVE_ARGS): Update.
32376 * tm.texi (INIT_CUMULATIVE_ARGS): Update documentation.
32377
323782003-02-19 Kazu Hirata <kazu@cs.umass.edu>
32379
32380 * config/h8300/h8300.md (*iorsi3_two_qi_sext): New.
32381 (*ashiftsi_sextqi_7): Likewise.
32382
323832003-02-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
32384
32385 * config/mips/iris6.h (TARGET_OS_CPP_BUILTINS): Define __c99 for
32386 ISO C99 and C++.
32387
32388 * fixinc/inclhack.def (irix___restrict): Don't change __restrict
32389 for C++ on IRIX 6.5.1[89].
32390 * fixinc/tests/base/internal/sgimacros.h: New file.
32391
32392 * fixinc/inclhack.def (irix_wcsftime): Use XPG5 variant for C99.
32393 * fixinc/tests/base/internal/wchar_core.h: New file.
32394
32395 * fixinc/inclhack.def (irix_socklen_t): Fix broken IRIX 6.5.1[78]
32396 socklen_t definition.
32397 * fixinc/fixincl.x: Regenerate.
32398 * fixinc/tests/base/sys/socket.h: New file.
32399 Fixes PR libgcj/9652.
32400
324012003-02-19 Jan Hubicka <jh@suse.cz>
32402
32403 * i386.md (movsfcc_1, movdfcc_1): Fix constrains.
32404
324052003-02-19 David Edelsohn <edelsohn@gnu.org>
32406
32407 * config/rs6000/rs6000.c (rs6000_override_options): Initialize
32408 align_jumps_max_skip and align_loops_max_skip.
32409
324102003-02-19 Thierry Moreau <thierry.moreau@connotech.com>
32411
32412 * config/rs6000/rs6000.c (rs6000_encode_section_info): Do not
32413 test size if named section.
32414
324152003-02-19 Daniel Jacobowitz <drow@mvista.com>
32416
32417 * expr.c (expand_expr): Use gen_int_mode for the argument
32418 to gen_rtx_MULT.
32419
324202003-02-19 Jan Hubicka <jh@suse.cz>
32421
32422 * i386.md (cosxf2): Fix conditional.
32423
324242003-02-19 Kazu Hirata <kazu@cs.umass.edu>
32425
32426 * config/h8300/h8300.md (extendqisi2): Change to an expander.
32427 (*extendqisi2_h8300): New.
32428 (*extendqisi2_h8300hs): Likewise.
32429
324302003-02-19 Kazu Hirata <kazu@cs.umass.edu>
32431
32432 * config/h8300/h8300-protos.h: Update the prototype for
32433 split_adds_subs. Remove the prototypes for
32434 const_int_le_2_operand and const_int_le_6_operand.
32435 * config/h8300/h8300.c (split_adds_sub): Don't output inc/dec.
32436 (const_int_le_2_operand): Remove.
32437 (const_int_le_6_operand): Likewise.
32438 * config/h8300/h8300.h (PREDICATE_CODES): Remove the entries
32439 for const_int_le_2_operand and const_int_le_6_operand.
32440 * config/h8300/h8300.md: Update all uses of split_adds_subs.
32441 (a peephole2): New.
32442
324432003-02-18 Jan Hubicka <jh@suse.cz>
32444
32445 * cgraph.c (NPREDECESORC, SET_NPREDECESORS): Kill.
32446 (cgraph_expand_function): Rewrite.
32447
324482003-02-18 Matt Austern <austern@apple.com>
32449
32450 * toplev.c, langhooks.c, langhooks-def.h: Move
32451 write_global_declarations from toplev.c to langhooks.c.
32452
324532003-02-18 Kazu Hirata <kazu@cs.umass.edu>
32454
32455 * config/h8300/h8300.c (general_operand_src): Always check
32456 MODE.
32457 (general_operand_dst): Likewise.
32458
324592003-02-18 Roger Sayle <roger@eyesopen.com>
32460
32461 * convert.c (convert_to_real): Also optimize (float)log(x) into
32462 logf(x) where x is a float, i.e. also handle BUILT_IN_LOG{,L}.
32463
324642003-02-18 Kaz Kojima <kkojima@gcc.gnu.org>
32465
32466 * config/sh/sh.c (unspec_caller_rtx_p): New.
32467 (sh_cannot_copy_insn_p): New.
32468 (TARGET_CANNOT_COPY_INSN_P): New.
32469
324702003-02-18 Richard Henderson <rth@redhat.com>
32471
32472 * c-common.c (handle_used_attribute): Accept static data too.
32473
324742003-02-18 Nick Clifton <nickc@redhat.com>
32475 Aldy Hernandez <aldyh@redhat.com>
32476
32477 * testsuite/gcc.dg/20030218-1.c: New.
32478
32479 * doc/tm.texi: Document TARGET_VECTOR_TYPES_COMPATIBLE.
32480
32481 * target-def.h (TARGET_INITIALIZER): Add
32482 TARGET_VECTOR_TYPES_COMPATIBLE.
32483 (TARGET_VECTOR_TYPES_COMPATIBLE): New macro.
32484
32485 * target.h (struct gcc_target): Add field vector_types_compatible.
32486
32487 * c-typeck.c (comptypes): Take into account
32488 TARGET_VECTOR_TYPES_COMPATIBLE.
32489 (convert_for_assignment): Same.
32490
32491 * config/rs6000/rs6000.c (is_ev64_opaque_type): New.
32492 (rs6000_spe_vector_types_compatible): New.
32493 (TARGET_VECTOR_TYPES_COMPATIBLE): Define.
32494
324952003-02-19 Andreas Schwab <schwab@suse.de>
32496
32497 * Makefile.in (toplev.o): Depend on $(LANGHOOKS_DEF_H).
32498 * toplev.c: Include langhooks-def.h.
32499
325002003-02-18 Chris Demetriou <cgd@broadcom.com>
32501
32502 * config/mips/mips.h (enum processor_type): Sort entries
32503 alphabetically.
32504 * config/mips/mips.md (define_attr cpu): Sync with processor_type
32505 enum values, including adding entries that were missing.
32506
325072003-02-18 J"orn Rennecke <joern.rennecke@superh.com>
32508
32509 * sh.c (calc_live_regs): Also check GET_CODE when checking if
32510 initial value for PR_REG is still the PR_REG register.
32511
325122003-02-18 Jim Wilson <wilson@redhat.com>
32513
32514 * config/ia64/ia64.md (floatdidf2, floatdisf2): Add %, before second
32515 instruction in output template.
32516 (bsp_value): Change output template from string to C code, add %,
32517 before actual instruction.
32518 (flushrs): Mark as not predicable.
32519
325202003-02-18 Krister Walfridsson <cato@df.lth.se>
32521
32522 * inclhack.def (netbsd_bogus_semicolon): New fix.
32523 * fixincl.x: Rebuilt.
32524 * tests/base/ctype.h: Update.
32525
325262003-02-18 Roger Sayle <roger@eyesopen.com>
32527
32528 * fold-const.c (negate_expr_p): New function to determine whether
32529 an expression can be negated cheaply.
32530 (fold) [MINUS_EXPR]: Use it to determine whether to transform
32531 -A - B into -B - A for floating point types.
32532
325332003-02-18 Roger Sayle <roger@eyesopen.com>
32534
32535 * sbitmap.c (sbitmap_resize): New function.
32536 * sbitmap.h (sbitmap_resize): Prototype here.
32537 * recog.c (split_all_insns): Use sbitmap_resize.
32538
325392003-02-18 Kazu Hirata <kazu@cs.umass.edu>
32540
32541 * config/h8300/h8300.md (*zero_extendhisi2_h8300): Fix the
32542 insn length.
32543 (extendqisi2): Likewise.
32544 (*extendhisi2_h8300): Likewise.
32545
325462003-02-18 Matt Austern <austern@apple.com>
32547
32548 * langhooks.h, langhooks-def.h: introduce new langhook,
32549 final_write_globals, with write_global_declarations as default.
32550 * toplev.c: Move invocation of wrapup_global_declarations from
32551 compile_file to new function, write_global_declarations. Change
32552 compile_file to use final_write_globals hook. Change
32553 wrapup_global_declarations so writing to DECL_DEFER_OUTPUT is
32554 conditional.
32555
325562003-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
32557
32558 * pa.md: Correct and enhance comment.
32559
325602003-02-18 Geoffrey Keating <geoffk@apple.com>
32561
32562 * gcc.c (validate_switches): Don't scan past closing '}'.
32563
325642003-02-18 Ben Elliston <bje@redhat.com>
32565
32566 PR c++/1607
32567 * doc/extend.texi (Function Attributes): Document the effect of
32568 the C++ "this" parameter on the counting of arguments for the
32569 "format" and "format_arg" attributes.
32570
325712003-02-17 Aldy Hernandez <aldyh@redhat.com>
32572
32573 * config/rs6000/spe.h (__ev_stdd): Cast 2nd arg.
32574 (__ev_stdw): Same.
32575 (__ev_stdh): Same.
32576
325772003-02-17 Jan Hubicka <jh@suse.cz>
32578
32579 * recog.c (split_all_insns): Fix memory overflow.
32580
325812003-02-17 Kazu Hirata <kazu@cs.umass.edu>
32582
32583 * config/h8300/h8300.md (cmpqi): Remove mode from compare.
32584 (cmphi): Likewise.
32585 (*cmphi_h8300): Likewise.
32586 (*cmphi_h8300hs): Likewise.
32587 (cmpsi): Likewise.
32588 (7 peephole2): Likewise.
32589
325902003-02-16 Jan Hubicka <jh@suse.cz>
32591
32592 * c-typeck.c (build_c_cast): Fold constant variables into
32593 initial values.
32594
325952003-02-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
32596
32597 * doc/install.texi (Specific): Fix link for m68k-att-sysv.
32598 (Binaries): Ditto for Sinix/Reliant Unix.
32599
326002003-02-16 Richard Earnshaw <rearnsha@arm.com>
32601
32602 * arm.c (arm_reload_in_hi): Ensure that the scratch register does
32603 not overlap the final result register.
32604
326052003-02-16 Arend Bayer <arend.bayer@web.de>
32606 Richard Henderson <rth@redhat.com>
32607
32608 PR c/8068
32609 * fold-const.c (extract_muldiv_1): Rename from extract_muldiv;
32610 rearrange mult arguments for less recursion.
32611 (extract_muldiv): New. Prevent runaway recursion.
32612
326132003-02-16 Danny Smith <dannysmith@users.sourceforge.net>
32614
32615 * config/i386/cygwin.h (TARGET_SUBTARGET_DEFAULT): Set
32616 MASK_ALIGN_DOUBLE.
32617
326182003-02-15 Roger Sayle <roger@eyesopen.com>
32619
32620 * config/i386/i386.c (x86_ext_80387_constants): Use 80387 insns
32621 to load mathematical constants on K6, Athlon, Pentium 4 and PPro.
32622 (ext_80387_constants_table): Global table of 80387 special constants
32623 guarded by ext_80387_constants_init flag when not initialized.
32624 (init_ext_80387_constants): New function to initialize this table.
32625 (standard_80387_constant_p): Extend to recognize extra 80387
32626 constants, in XFmode, on processors where this is a win.
32627 (standard_80387_constant_opcode): New function to return the
32628 opcode associated with standard_80387_constant_p.
32629 (standard_80387_constant_rtx): New function to return the XFmode
32630 CONST_DOUBLE associated with standard_80387_constant_p.
32631 (ix86_rtx_costs): Give the new constants the same cost as 1.0.
32632
32633 * config/i386/i386-protos.h (standard_80387_constant_opcode):
32634 Prototype here.
32635 (standard_80387_constant_rtx): Likewise.
32636
32637 * config/i386/i386.md (*movsf1, *movsf1_nointerunit, *movdf_nointeger,
32638 *movdf_integer, *movxf_nointeger, *movtf_nointeger, *movxf_integer,
32639 *movtf_integer): Simplify using new standard_80387_constant_opcode.
32640
326412003-02-15 Geoffrey Keating <geoffk@apple.com>
32642
32643 * doc/invoke.texi (Optimize Options): Correct @option syntax.
32644
326452003-02-15 Richard Henderson <rth@redhat.com>
32646
32647 * Makefile.in (cfglayout.o): Depend on TARGET_H.
32648 * cfglayout.c: Include target.h.
32649 (cfg_layout_can_duplicate_bb_p): Check targetm.cannot_copy_insn_p.
32650 * target-def.h (TARGET_CANNOT_COPY_INSN_P): New.
32651 * target.h (struct gcc_target): Add cannot_copy_insn_p.
32652
32653 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): New.
32654 (TARGET_CANNOT_COPY_INSN_P): New.
32655 (override_options): Revert 2003-02-08 hack.
32656
326572003-02-15 Richard Henderson <rth@redhat.com>
32658
32659 * gcse.c (bypass_block): Use BLOCK_FOR_INSN for resolving LABEL_REFs.
32660 (bypass_conditional_jumps): Accept computed_jump_p insns as well.
32661
326622003-02-15 David Edelsohn <edelsohn@gnu.org>
32663
32664 * config/rs6000/rs6000.h (processor_type): Add PPC440.
32665 * config/rs6000/rs6000.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
32666 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
32667 TARGET_SCHED_VARIABLE_ISSUE): Define.
32668 (rs6000_use_dfa_pipeline_interface): New function.
32669 (rs6000_multipass_dfa_lookahead): New Function.
32670 (rs6000_variable_issue): New function.
32671 (rs6000_adjust_cost): Add CMP and DELAYED_CR types.
32672 (rs6000_issue_rate): Add PPC440.
32673 * config/rs6000/rs6000.md (unspec list): Correct typo.
32674 (attr "type"): Add load_ext, load_ext_u, load_ext_ux, load_u,
32675 store_ux, store_u, fpload_ux, fpload_u, fpstore_ux, fpstore_u,
32676 cmp, delayed_cr, mfcr, mtcr.
32677 (automata_option): Set "ndfa".
32678 (extendMMNN2): Update attributes.
32679 (movcc_internal1): Discourage move to non-cr0. Update
32680 attributes.
32681 (movMM_update): Update attributes.
32682 (cmpMM_internal): Update attributes.
32683 (sCC CR materialization): Update attributes.
32684 (branch patterns): Do not discourage non-cr0.
32685 (cr logical patterns): Prefer destructive register allocation.
32686 Update attributes.
32687 (movesi_from_cr): Update attribute.
32688 (mtcrf_operation): Update attribute.
32689 (mtcrfsi): Update attribute.
32690 * config/rs6000/40x.md: New file.
32691 * config/rs6000/603.md: New file.
32692 * config/rs6000/6xx.md: New file.
32693 * config/rs6000/7450.md: New file.
32694 * config/rs6000/7xx.md: New file.
32695 * config/rs6000/mpc.md: New file.
32696 * config/rs6000/power4.md: New file.
32697 * config/rs6000/rios1.md: New file.
32698 * config/rs6000/rios2.md: New file.
32699 * config/rs6000/rs64.md: New file.
32700 [Some DFA descriptions based on work by Michael Hayes]
32701
327022003-02-15 Richard Henderson <rth@redhat.com>
32703
32704 * bb-reorder.c (find_traces_1_round): Don't connect easy to copy
32705 successors with multiple predecessors.
32706 (connect_traces): Try harder to copy traces of length 1.
32707
32708 * function.h (struct function): Add computed_goto_common_label,
32709 computed_goto_common_reg.
32710 * function.c (free_after_compilation): Zap them.
32711 * stmt.c (expand_computed_goto): Use them to produce one
32712 indirect branch per function.
32713
327142003-02-15 Richard Henderson <rth@redhat.com>
32715
32716 * cfgcleanup.c: Include params.h.
32717 (try_crossjump_bb): Use PARAM_MAX_CROSSJUMP_EDGES. Fix test for
32718 too many outgoing edges from a block.
32719 * Makefile.in (cfgcleanup.o): Depend on PARAMS_H.
32720 * params.def (max-crossjump-edges): New.
32721 * doc/invoke.texi: Document it.
32722
327232003-02-15 Richard Henderson <rth@redhat.com>
32724
32725 * recog.c (split_all_insns): Include new blocks in life update;
32726 do a global life update.
32727
327282003-02-15 Danny Smith <dannysmith@users.sourceforge.net>
32729
32730 * config/i386/mingw32.h (LIBGCC_SPEC): Add libmingwex.a.
32731 Update copyright.
32732 * config/i386/cygwin.h (LIBGCC_SPEC): Add libmingwex.a for
32733 -mno-cygwin case.
32734
327352003-02-14 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
32736
32737 PR optimization/7702
32738 * reload1.c (reload_cse_simplify_set): Honor
32739 CANNOT_CHANGE_MODE_CLASS.
32740
327412003-02-14 Alexandre Oliva <aoliva@redhat.com>
32742
32743 * config/mn10300/mn10300.c (mn10300_wide_const_load_uses_clr): New
32744 function.
32745 * config/mn10300/mn10300-protos.h: Declare it.
32746 * config/mn10300/mn10300.md (movdi, movdf): Use it to compute
32747 attribute cc of instructions that may use clr.
32748
327492003-02-14 Kazu Hirata <kazu@cs.umass.edu>
32750
32751 * simplify-rtx.c (simplify_binary_operation): Simplify ~y when
32752 (x - (x & y)) is found.
32753
327542003-02-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
32755
32756 * configure.in: Fix typo.
32757 * configure: Regenerate.
32758
327592003-02-14 Kazu Hirata <kazu@cs.umass.edu>
32760
32761 * config/h8300/h8300.md (*iorsi2_and_1_lshiftrt_1): New.
32762
327632003-02-13 Adam Nemet <anemet@lnxw.com>
32764
32765 PR opt/2391
32766 * combine.c: Fix spelling in comment.
32767 (cached_nonzero_bits): New function.
32768 (cached_num_sign_bit_copies): New function.
32769 (nonzero_bits_with_known): New macro.
32770 (num_sign_bit_copies_with_known): New macro.
32771 (nonzero_bits1): Rename from nonzero_bits. Add three new
32772 arguments. Change calls from nonzero_bits to
32773 nonzero_bits_with_known.
32774 (num_sign_bit_copies1): Rename from num_sign_bit_copies. Add
32775 three new arguments. Change calls from num_sign_bit_copies to
32776 num_sign_bit_copies_with_known.
32777 (nonzero_bits): New macro.
32778 (num_sign_bit_copies): New macro.
32779 (update_table_tick): Don't traverse identical subexpression more
32780 than once.
32781 (get_last_value_validate): Likewise.
32782
327832003-02-13 Zack Weinberg <zack@codesourcery.com>
32784
32785 * emit-rtl.c (init_emit): Use ggc_alloc for regno_reg_rtx.
32786 * function.h (struct emit_status): Length of regno_pointer_align
32787 and x_regno_reg_rtx as seen by gengtype is only x_reg_rtx_no,
32788 not regno_pointer_align_length (i.e. length actually used, not
32789 length as allocated)
32790
32791 * config/i386/i386.c (struct stack_local_entry): New.
32792 (struct machine_function): Replace huge array with alist.
32793 (assign_386_stack_local): Change to match.
32794
327952003-02-13 John David Anglin <dave.anglin@nrc-crnc.gc.ca>
32796
32797 * inclhack.def (hpux_long_double): Tighten select and add bypass
32798 regexp.
32799 * fixincl.x: Rebuilt.
32800
328012003-02-13 Josef Zlomek <zlomekj@suse.cz>
32802
32803 * cfgcleanup.c (outgoing_edges_match): When there is single outgoing
32804 edge and block ends with a jump insn it must be simple jump.
32805
328062003-02-13 Daniel Jacobowitz <drow@mvista.com>
32807
32808 * Makefile.in (PREPROCESSOR_DEFINES): Add
32809 @TARGET_SYSTEM_ROOT_DEFINE@.
32810 * configure.in (PREFIX_INCLUDE_DIR): Don't define if $with_sysroot
32811 is specified or if building a cross compiler.
32812 (TARGET_SYSTEM_ROOT_DEFINE): Add TARGET_SYSTEM_ROOT_RELOCATABLE
32813 if the sysroot is under $exec_prefix.
32814 * configure: Regenerated.
32815 * cppdefault.h: Use native include paths if TARGET_SYSTEM_ROOT is
32816 defined.
32817 (struct default_include): Add add_sysroot field.
32818 (cpp_SYSROOT): Declare.
32819 * cppdefault.c (cpp_include_defaults): Fill in add_sysroot
32820 field.
32821 (cpp_SYSROOT): New variable.
32822 * cppinit.c (cpp_create_reader): Initialize
32823 CPP_OPTION (pfile, sysroot).
32824 (init_standard_includes): Handle add_sysroot. Do not
32825 add unrelocated copies of relocated directories.
32826 (COMMAND_LINE_OPTIONS): Add -isysroot.
32827 (cpp_handle_option): Handle -isysroot.
32828 * cpplib.h (struct cpp_options): Add sysroot member.
32829 * gcc.c (The Specs Language): Update description of %I.
32830 (target_system_root_changed): New variable.
32831 (process_command): Conditionalize make_relative_prefix call
32832 on !VMS and TARGET_SYSTEM_ROOT_RELOCATABLE. Set
32833 target_system_root_changed.
32834 (do_spec_1): Add -isysroot to %I.
32835 * doc/invoke.texi (Spec Files): Update description of %I.
32836 * doc/install.texi (--with-sysroot): Update comment about
32837 relocation.
32838
328392003-02-13 Kazu Hirata <kazu@cs.umass.edu>
32840
32841 * config/h8300/h8300.md (a peephole2): New.
32842
328432003-02-13 Robert Lipe <robertlipe@usa.net>
32844 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
32845
32846 * doc/install.texi (Specific): Update three SCO-related URLs.
32847
328482003-02-13 Andreas Schwab <schwab@suse.de>
32849
32850 * cgraph.c (SET_NPREDECESORS): Add intermediate cast to size_t.
32851 Parenthesize properly.
32852 (NPREDECESORS): Parenthesize properly.
32853
328542003-02-13 Gabriel Dos Reis <gdr@integrable-solutions.net>
32855
32856 * timevar.h (POP_TIMEVAR_AND_RETURN): New macro.
32857
328582003-02-12 Roger Sayle <roger@eyesopen.com>
32859
32860 * config/i386/i386.md (UNSPEC_FPATAN): New UNSPEC constant.
32861 (atan2sf3, atan2df3, atan2xf3, atan2tf3): New patterns.
32862
32863 * reg-stack.c (subst_stack_regs_pat): Add support for binary
32864 UNSPEC instructions (e.g. "fpatan").
32865
328662003-02-12 Mike Stump <mrs@apple.com>
32867
32868 * varray.c (element_size): Remove.
32869 (uses_ggc): Remove.
32870 (element): Add.
32871 (varray_init): Use new interface.
32872 (varray_grow): Use new interface.
32873 (varray_clear): Use new interface.
32874
328752003-02-12 Aldy Hernandez <aldyh@redhat.com>
32876
32877 * config/rs6000/spe.h: Add casts to the arguments of the following
32878 macros: evfsabs, evfsnabs, evfsneg, evfsadd, evfssub, evfsmul,
32879 evfsdiv, evfscfui, evfscfsi evfscfuf evfscfsf, evfsctui, evfsctsi,
32880 evfsctuf, evfsctsf, evfsctuiz, evfsctsiz, __ev_get_upper*,
32881 __ev_get_lower*, __ev_get_u32, __ev_get_s32, __ev_get_fs,
32882 __ev_get_u16, __ev_get_s16.
32883
328842003-02-12 Kazu Hirata <kazu@cs.umass.edu>
32885
32886 * config/h8300/h8300.md (a peephole2): New.
32887
328882003-02-12 Jan Hubicka <jh@suse.cz>
32889
32890 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-unit-at-a-time
cea949a6
BE
32891 (OBJS): Add cgraph.o
32892 (cgraph.o): New.
2a868fac
KH
32893 * c-decl.c (expand_body_1): Break out from ...
32894 (expand_body): This one; change calling convention
32895 (finish_function): Move some of expand_body logic here.
32896 (c_expand_deferred_function): Update call of expand_body
32897 (c_expand_stmt): Use c_expand_body_1.
32898 * c-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Define.
32899 * c-objc-commin.c (c_objc_common_finish_file): Use callgraph code.
32900 * c-tree.h (c_expand_body): Declare.
cea949a6 32901 * cgraph.c: New file.
2a868fac
KH
32902 * flags.h (flag_unit_at_a_time): Declare.
32903 * langhooks.h (LANG_HOOKS_CALLGRAPH_LOWER_FUNCTION,
32904 LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION,
32905 LANG_HOOKS_CALLGRAPH_INITIALIZER): New macros.
32906 * langhooks.h (struct lang_hooks_for_callgraph): New.
32907 (struct lang_hooks): Add callgraph field.
32908 * toplev.c (flag_unit_at_a_time): New.
32909 (lang_independent_options): Add flag_unit_at_a_time.
32910 (process_options): Disable unit-at-a-time mode for frontends not
32911 supporting callgraph.
32912 * tree-inline.c (typedef struct inline_data): Add "decl"
32913 (expand_call_inline): Update callgraph.
32914 (optimize_inline_calls): Set id.decl.
32915 * tree.h (cgraph_finalize_function, cgraph_finalize_compilation_unit,
32916 cgraph_create_edges, dump_cgraph, cgraph_optimize, cgraph_remove_call
32917 cgraph_calls_p): Declare.
cea949a6 32918 * invoke.texi (-funit-at-a-time): Document.
2a868fac
KH
32919
329202003-02-12 Aldy Hernandez <aldyh@redhat.com>
32921
32922 * config/rs6000/spe.h: Fix misc formatting.
32923 (__ev_create_ufix32_fs): Cast ev argument.
32924 (__ev_create_sfix32_fs): Same.
32925 (__ev_get_sfix32_fs_internal): Cast arguments to builtins.
32926 (__ev_get_ufix32_fs_internal): Same.
32927
329282003-02-12 Ranjit Mathew <rmathew@hotmail.com>
32929
32930 * doc/tm.texi (MODIFY_JNI_METHOD_CALL): Document.
32931 * config/i386/cygwin.h (MODIFY_JNI_METHOD_CALL): New macro.
32932
329332003-02-12 Zack Weinberg <zack@codesourcery.com>
32934
32935 * cpplib.c (do_include_common): Move warnings for
32936 #include_next and #import out to callers. Use early-return
32937 instead of nested ifs. Don't do check_eol here.
32938 (parse_include): Do check_eol here with the rest of the
32939 parsing stuff.
32940 (do_include_next, do_import): Now handle warnings.
32941
329422003-02-11 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
32943
32944 * doc/install.texi (Specific): Update AVR- and Darwin-related URLs.
32945
329462003-02-12 Jan Hubicka <jh@suse.cz>
32947
32948 * predict.c (estimate_probability): Fix roundoff error.
32949
329502003-02-12 Kazu Hirata <kazu@cs.umass.edu>
32951
32952 * config/h8300/h8300.md (a peephole2): Don't handle 65535.
32953 (two peephole2): New.
32954
329552003-02-12 Kazu Hirata <kazu@cs.umass.edu>
32956
32957 * config/h8300/h8300.md (several peephole2): Replace
32958 find_regno_note with peep2_reg_dead_p.
32959
329602003-02-11 Richard Henderson <rth@redhat.com>
32961
32962 * gcse.c (lookup_set): Remove unused argument PAT. Update
32963 both callers.
32964
329652003-02-11 Geoffrey Keating <geoffk@apple.com>
32966
32967 * diagnostic.c (real_abort): New.
32968 (diagnostic_report_diagnostic): Call real_abort on error.
32969 * diagnostic.h (diagnostic_abort_on_error): New.
32970 (struct diagnostic_context): Add abort_on_error field.
32971 * toplev.c (setup_core_dumping): New.
32972 (decode_d_option): Handle 'H' case.
32973 * doc/invoke.texi (Debugging Options): Document -dH.
32974
329752003-02-11 Nathanael Nerode <neroden@gcc.gnu.org>
32976
32977 * Makefile.in: Remove pointless setting of CXXFLAGS for dejagnu
32978 which refers to obsolete directories.
32979
329802003-02-11 Richard Henderson <rth@redhat.com>
32981
32982 * config/alpha/linux.h (TARGET_C99_FUNCTIONS): New.
32983
ad41bd84 329842003-10-21 Jan Hubicka <jh@suse.cz>
2a868fac
KH
32985
32986 * i386.c (contains_128bit_aligned_vector_p): New function.
32987 (ix86_function_arg_boundary): Properly align vector modes.
32988
329892003-02-11 Bob Wilson <bob.wilson@acm.org>
32990
32991 * config/xtensa/xtensa.md (set_frame_ptr): Change rtl to set reg a7.
32992 * config/xtensa/xtensa.c (xtensa_reorg): Search for UNSPECV_SET_FP
32993 as a SET pattern.
32994
329952003-02-11 Roger Sayle <roger@eyesopen.com>
32996
32997 * builtins.c: Fix failure caused by commiting wrong patch.
32998
329992003-02-11 Dale Johannesen <dalej@apple.com>
33000 * ra-build.c (compare_and_free_webs): Relax checking.
33001 * config/rs6000/darwin.h (HOT_TEXT_SECTION_NAME): Define.
33002 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
33003
330042003-02-11 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
33005
33006 PR optimization/9651
33007 * rtlanal.c (may_trap_p): Handle FIX.
33008
330092003-02-11 Dave Jones <davej@codemonkey.org.uk>
33010
33011 * config/i386/i386.c (override_options): Define c3-2 as a 686 with SSE.
33012 * doc/invoke.texi: Extra alias.
33013
330142003-02-11 Geoffrey Keating <geoffk@apple.com>
33015
33016 * config/rs6000/host-darwin.c: Fix comment.
33017
330182003-02-11 David Edelsohn <edelsohn@gnu.org>
33019
33020 * config/rs6000/rs6000.md (divmodsi4): Use register_operand
33021 predicate for mod result.
33022
330232003-02-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
33024
33025 * inclhack.def (hpux_long_double, hpux10_ctype_declarations1,
33026 hpux10_ctype_declarations2, hpux_ctype_macros): New hacks.
33027 * fixincl.x: Rebuilt.
33028 * tests/base/stdlib.h: Update.
33029 * tests/base/ctype.h: New file.
33030
330312003-02-11 Jan Hubicka <jh@suse.cz>
33032
33033 * emit-rtl.c (emit_copy_of_insn_after): Copy insn recog cache too.
33034
330352003-02-11 Richard Henderson <rth@redhat.com>
33036
33037 * config/i386/i386.c (ix86_expand_movstr): Fail if esi or edi
33038 appropriated as globals.
33039 (ix86_expand_clrstr): Similarly.
33040 * config/i386/i386.md (cmpstrsi): Similarly.
33041
330422003-02-11 Kazu Hirata <kazu@cs.umass.edu>
33043
33044 * config/h8300/h8300.md (a peephole2): Add a case of 255.
33045
330462003-02-11 Roger Sayle <roger@eyesopen.com>
33047
33048 * optabs.h (enum optab_index): Add new OTI_pow and OTI_atan2.
33049 (pow_optab, atan2_optab): Define corresponding macros.
33050 * optabs.c (init_optabs): Initialize pow_optab and atan2_optab.
33051 * genopinit.c (optabs): Implement pow_optab and atan2_optab
33052 using pow?f3 and atan2?f3 patterns.
33053 * builtins.c (expand_errno_check): New function to update errno
33054 if necessary, split out from expand_builtin_mathfn.
33055 (expand_builtin_mathfn): Use expand_errno_check.
33056 (expand_builtin_mathfn_2): New function to handle expanding binary
33057 math functions, reusing the code in expand_errno_check.
33058 (expand_builtin): Handle the pow and atan2 math built-ins,
33059 BUILT_IN_{POW,POWF,POWL,ATAN2,ATAN2F,ATAN2L} via the new function
33060 expand_builtin_mathfn_2.
33061
33062 * doc/md.texi: Document new pow?f3 and atan2?f3 patterns.
33063
330642003-02-11 Jan Hubicka <jh@suse.cz>
33065
33066 * combine.c (combine_simplify_rtx): Fix folding of
33067 nested float_truncates.
33068
330692003-02-11 Kazu Hirata <kazu@cs.umass.edu>
33070
33071 * config/h8300/h8300.md (a peephole2): Fix a typo.
33072
330732003-02-11 Richard Earnshaw <rearnsha@arm.com>
33074
33075 * arm.mc (return_address_mask): Use CC_REGNUM for the condition code
33076 register number.
33077
330782003-02-11 Kazu Hirata <kazu@cs.umass.edu>
33079
33080 * config/h8300/h8300-protos.h: Add a prototype for
33081 gtuleu_operator.
33082 * config/h8300/h8300.c (gtuleu_operator): New.
33083 * config/h8300/h8300.h (PREDICATE_CODES): Add gtuleu_operator.
33084 * config/h8300/h8300.md (a peephole2): New.
33085
330862003-02-11 Jan Hubicka <jh@suse.cz>
33087
33088 * sched-ebb.c (schedule_ebbs): Do not verify_flow_info.
33089
330902003-02-11 Jan Hubicka <jh@suse.cz>
33091
33092 * predict.c (choose_function_section): Choose sections correctly.
33093
330942003-02-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
33095
33096 * reload1.c (first_label_num): New.
33097 (reload): Index offsets_known_at and offsets_at using difference of
33098 label number and first label number. Don't use offset pointers.
33099 (set_label_offsets, set_initial_label_offsets): Likewise.
33100
331012003-02-10 Roger Sayle <roger@eyesopen.com>
33102
33103 * mips-tfile.c (init_file): Add missing initializers in the
33104 "#ifdef __alpha" case.
33105 (file_offset, max_file_offset): Declare as unsigned long.
33106 (write_varray): Cast to "unsigned long" in comparisons against
33107 either file_offset or max_file_offset.
33108 (write_object): Likewise.
33109 (read_seek): Likewise.
33110 (copy_object): Likewise. Declare "ifd" as int to match its use
33111 in add_ext_symbol, and avoid signed/unsigned conditional warning.
33112
331132003-02-10 Nick Clifton <nickc@redhat.com>
33114 Aldy Hernandez <aldyh@redhat.com>
33115
33116 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Do not
33117 override options which have been specified on the command line.
33118
331192003-02-10 Kazu Hirata <kazu@cs.umass.edu>
33120
33121 * config/h8300/h8300.md (abssf2): New.
33122 (*abssf2_h8300): Likewise.
33123 (*abssf2_h8300hs): Likewise.
33124
331252003-02-10 Phil Edwards <pme@gcc.gnu.org>
33126
33127 * tree.c (build_tree_list): Fix parameter names in comment.
33128
331292003-02-10 Janis Johnson <janis187@us.ibm.com>
33130
33131 * config/rs6000/ppc64-fp.c: New file.
33132 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Add ppc64-fp.c.
33133
331342003-02-10 Josef Zlomek <zlomekj@suse.cz>
33135
33136 * Makefile.in (bb-reorder.o): Add dependency on $(FIBHEAP_H).
33137 * bb-reorder.c (make_reorder_chain): Deleted.
33138 (make_reorder_chain_1): Deleted.
33139 (find_traces): New function.
33140 (rotate_loop): New function.
33141 (mark_bb_visited): New function.
33142 (find_traces_1_round): New function.
33143 (copy_bb): New function.
33144 (bb_to_key): New function.
33145 (better_edge_p): New function.
33146 (connect_traces): New function.
33147 (copy_bb_p): New function.
33148 (get_uncond_jump_length): New function.
33149 (reorder_basic_blocks): Use new functions (Software Trace Cache).
33150 * cfgcleanup.c (outgoing_edges_match): Enable crossjumping across loop
33151 boundaries.
33152
331532003-02-10 Aldy Hernandez <aldyh@redhat.com>
33154
33155 * config/rs6000/rs6000.c (bdesc_2arg): Change spe_evxor to xorv2si3.
33156
331572003-02-09 Dan Nicolaescu <dann@ics.uci.edu>
33158
33159 * tree.h (struct tree_decl): Remove unused live_range_rtl field.
33160 (DECL_LIVE_RANGE_RTL): Remove.
33161
331622003-02-10 Nick Clifton <nickc@redhat.com>
33163
33164 * config/arm/aof.h, config/arm/aout.h, config/arm/arm-modes.def,
33165 config/arm/arm-protos.h, config/arm/arm.c, config/arm/arm.h,
33166 config/arm/arm.md, config/arm/cirrus.md, config/arm/coff.h,
33167 config/arm/conix-elf.h, config/arm/ecos-elf.h, config/arm/elf.h,
33168 config/arm/freebsd.h, config/arm/linux-elf.h,
33169 config/arm/linux-gas.h, config/arm/netbsd-elf.h,
33170 config/arm/netbsd.h, config/arm/pe.c, config/arm/pe.h,
33171 config/arm/rtems-elf.h, config/arm/semi.h, config/arm/semiaof.h,
33172 config/arm/strongarm-coff.h, config/arm/strongarm-elf.h,
33173 config/arm/strongarm-pe.h, config/arm/uclinux-elf.h,
33174 config/arm/unknown-elf-oabi.h, config/arm/unknown-elf.h,
33175 config/arm/xscale-elf.h: Replace occurances of "GNU CC" with "GCC"
33176 and reformat as appropriate.
33177
331782003-02-10 Kazu Hirata <kazu@cs.umass.edu>
33179
33180 * config/h8300/clzsi2.c: Remove.
33181 * config/h8300/ctzsi2.c: Likewise.
33182 * config/h8300/paritysi2.c: Likewise.
33183 * config/h8300/popcountsi2.c: Likewise.
33184 * config/h8300/t-h8300 (LIB2FUNCS_EXTRA): Remove clzsi2,
33185 ctzsi2, paritysi2, and popcountsi2.
33186
331872003-02-10 Eric Botcazou <ebotcazou@libertysurf.fr>
33188 Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
33189
33190 PR c/7741
33191 * c-decl.c (duplicate_decls): Discard the initializer of the
33192 new decl when the types are conflicting.
33193
331942003-02-10 Josef Zlomek <zlomekj@suse.cz>
33195
33196 * Makefile.in (sreal.o): Added.
33197 (predict.o): Depends on sreal.h instead of real.h.
33198 * sreal.c: New file.
33199 * sreal.h: New file.
33200 * predict.c: Use sreal.c instead of real.c.
33201
332022003-02-10 Nick Clifton <nickc@redhat.com>
33203
33204 * Contributed support for the Cirrus EP9312 "Maverick"
33205 floating point co-processor. Written by Aldy Hernandez
33206 <aldyh@redhat.com>.
33207 (config/arm/arm.c): Add Cirrus support.
33208 (config/arm/arm.h): Likewise.
33209 (config/arm/aout.h): Likewise.
33210 (config/arm/arm.md): Likewise.
33211 (config/arm/arm-protos.h): Likewise.
33212 (config.gcc): Likewise.
33213 (doc/invoke.texi): Describe new -mcpu value and new
33214 -mcirrus-fix-invalid-insns switch,
33215 (cirrus.md): New file.
33216
332172003-02-10 Jan Hubicka <jh@suse.cz>
33218
33219 * combine.c (combine_simplify_rtx): Simplify using
33220 (float_truncate (float x)) is (float x)
33221 (float_extend (float_extend x)) is (float_extend x).
33222
332232003-02-10 Alan Modra <amodra@bigpond.net.au>
33224
33225 * calls.c (try_to_integrate): Tidy stack_usage_map access.
33226 (emit_library_call_value_1): Likewise. Formatting.
33227 (store_one_arg): Likewise.
33228
332292003-02-09 Nick Clifton <nickc@redhat.com>
33230 Aldy Hernandez <aldyh@redhat.com>
33231
33232 * config/rs6000/spe.md: spe_evlhhesplat, spe_evlhhossplat,
33233 spe_evlhhousplat, spe_evlwhsplat, spe_evlwwsplat, spe_evldd,
33234 spe_evldh, spe_evldw, spe_evlwhe, spe_evlwhos, spe_evlwhou,
33235 spe_evstdd, spe_evstdh, spe_evstdw, spe_evstdwx, spe_evstwhe,
33236 spe_evstwho, spe_evstwwe, spe_evstwwo: Fix syntax to match newest
33237 docs. Add range test for immediate value.
33238
332392003-02-09 Aldy Hernandez <aldyh@redhat.com>
33240
33241 Rename spe_evxor to xorv2si3.
33242 (xorv4hi3): New.
33243 (xorv1di3): New.
33244
332452003-02-10 Glen Nakamura <glen@imodulo.com>
33246
33247 * doc/extend.texi (C++98 Thread-Local Edits): Add missing @item
33248 tag.
33249
332502003-02-10 Jan Hubicka <jh@suse.cz>
33251
33252 * i386.c (vector_move_operand): New predicate.
33253 (ix86_expand_vector_move): Be happy about 0.
33254 * i386.h (PREDICATE_CODES): Add sse-move_operand.
33255 * i386.md (mov*_internal): Add 'C' alternative.
33256
332572003-02-09 Jan Hubicka <jh@suse.cz>
33258
33259 * i386.md (floathi*): Deal with SSE.
33260
332612003-02-09 Jan Hubicka <jh@suse.cz>
33262
33263 * simplify-rtx.c (simplify_unary_operation,
33264 simplify_binary_operation): Deal with vector modes
33265 (simplify_ternary_operation): Deal with no-op VEC_MERGE.
33266
332672003-02-09 Richard Sandiford <rsandifo@redhat.com>
33268
33269 * toplev.c (rest_of_compilation): Recompute register usage after
33270 split_all_insns.
33271
332722003-02-09 Richard Henderson <rth@redhat.com>
33273
33274 * libgcc-std.ver (__clztf2): New.
33275 (__ctztf2, __popcounttf2, __paritytf2): New.
33276 * libgcc2.c (__clzSI2, __clzDI2, __ctzSI2, __ctzDI2, __popcountSI2,
33277 __popcountDI2, __paritySI2, __parityDI2): Use UWmode and UDWmode;
33278 adjust code to match the different type sizes.
33279 * libgcc2.h (__clzSI2, __ctzSI2, __popcountSI2, __paritySI2,
33280 __clzDI2, __ctzDI2, __popcountDI2, __parityDI2): New macros.
33281
33282 * optabs.c (init_integral_libfuncs): Don't hard-code SImode and
33283 TImode; select word_mode and twice that.
33284 (init_floating_libfuncs): Don't hard-code SFmode and TFmode;
33285 select the modes from float, double, and long double.
33286 (init_optabs): Remove duplicate initializations.
33287
332882003-02-09 Wolfgang Bangerth <bangerth@ticam.utexas.edu>
33289
33290 * doc/install.texi: Squeeze and streamline section on
33291 testing and regression checking.
33292
332932003-02-09 Jan Hubicka <jh@suse.cz>
33294
33295 * i386.md (ahi?v*3): Set third operand type to TImode.
33296 * i386.c (ix86_expand_binop_builtin): Extend operand when needed.
33297
33298 * simplify-rtx.c (simplify_subreg): Fix conversion from vector into
33299 integer mode.
33300
33301 * rtl.def (VEC_MERGE, VEC_SELECT, VEC_CONCAT, VEC_DUPLICATE):
33302 Change code so they are arithmetic expressions now.
33303 * simplify-rtx.c (simplify_unary_operation, simplify_binary_operation,
33304 simplify_ternary_operation): Deal with VEC_* expressions.
33305
33306 * i386.md (vmaskcmp, pinsrw, movd patterns): Fix RTL representation.
33307
333082003-02-08 Jan Hubicka <jh@suse.cz>
33309
33310 * cfgrtl.c (verify_flow_info): Use control_flow_insn_p.
33311 * reload1.c (fixup_abnormal_edges): Split basic blocks when EH edges
33312 possibly got duplicated.
33313
333142003-02-08 Richard Henderson <rth@redhat.com>
33315
33316 * config/alpha/alpha.c (override_options): Turn off explicit
33317 relocs until post-peep2 code duplication resolved.
33318
333192003-02-08 Kazu Hirata <kazu@cs.umass.edu>
33320
33321 * optabs.c (expand_unop): Widen clz properly when clz is done
33322 via libcall.
33323
333242003-02-08 Kazu Hirata <kazu@cs.umass.edu>
33325
33326 * config/h8300/clzsi2.c: Replace "GNU CC" with "GCC".
33327 * config/h8300/crti.asm: Likewise.
33328 * config/h8300/crtn.asm: Likewise.
33329 * config/h8300/ctzsi2.c: Likewise.
33330 * config/h8300/fixunssfsi.c: Likewise.
33331 * config/h8300/h8300-protos.h: Likewise.
33332 * config/h8300/h8300.c: Likewise.
33333 * config/h8300/h8300.h: Likewise.
33334 * config/h8300/h8300.md: Likewise.
33335 * config/h8300/paritysi2.c: Likewise.
33336 * config/h8300/popcountsi2.c: Likewise.
33337 * config/h8300/rtems.h: Likewise.
33338
333392003-02-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
33340
33341 * doc/invoke.texi: Documentation for my previous commit.
33342 * doc/passes.texi: Ditto.
33343
333442003-02-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
33345
33346 * cfgloop.h (fix_loop_placement, can_duplicate_loop_p,
33347 duplicate_loop_to_header_edge, loopify, remove_path, split_loop_bb):
33348 Declare.
33349 (DLTHE_FLAG_UPDATE_FREQ): New.
33350 * cfgloopmanip.c (duplicate_loop, duplicate_subloops, copy_loops_to,
33351 loop_redirect_edge, loop_delete_branch_edge, copy_bbs, remove_bbs,
33352 rpe_enum_p, find_branch, alp_enum_p, add_loop, fix_loop_placements,
33353 fix_bb_placement, fix_bb_placements, place_new_loop,
33354 scale_loop_frequencies, scale_bbs_frequencies, record_exit_edges):
33355 New static functions.
33356 (fix_loop_placement, can_duplicate_loop_p,
33357 duplicate_loop_to_header_edge, loopify, remove_path, split_loop_bb):
33358 New functions.
33359
33360 * cfgloop.h (loop_optimizer_init, loop_optimizer_finalize,
33361 unswitch_loops): Declare.
33362 * loop-init.c: New file.
33363 * loop-unswitch.c: New file.
33364 * Makefile.in (loop-init.o, loop-unswitch.o): New.
33365 * params.def (PARAM_MAX_UNSWITCH_INSNS, PARAM_MAX_UNSWITCH_LEVEL): New.
33366 * toplev.c (DFI_loop2): New dump.
33367 (flag_unswitch_loops): New.
33368 (lang_independent_options): Add it.
33369 (rest_of_compilation): Call new loop optimizer.
33370 (parse_options_and_default_flags): Turn flag_unswitch_loops on with -O3.
33371
333722003-02-08 Kazu Hirata <kazu@cs.umass.edu>
33373
33374 * config/h8300/clzsi2.c: New.
33375 * config/h8300/ctzsi2.c: Likewise.
33376 * config/h8300/paritysi2.c: Likewise.
33377 * config/h8300/popcountsi2.c: Likewise.
33378 * config/h8300/t-h8300 (LIB2FUNCS_EXTRA): Add above files.
33379
333802003-02-07 David Edelsohn <edelsohn@gnu.org>
33381
33382 * config/rs6000/rs6000.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
33383 * config/rs6000/rs6000.md (clzsi2): Rename from cntlzw2.
33384 (ctzsi2): New pattern.
33385 (ffssi2): Use clz instead of unspec.
33386 (clzdi2): Rename from cntlzd2.
33387 (ctzdi2): New pattern.
33388 (ffsdi2): Use clz instead of unspec.
33389
333902003-02-07 Loren James Rittle <ljrittle@acm.org>
33391
33392 * config/alpha/freebsd.h (LINK_SPEC): Weaken error to notice.
33393 * config/ia64/freebsd.h (LINK_SPEC): Likewise.
33394 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
33395 * config/i386/freebsd.h (LINK_SPEC): Add clause to mirror other arches.
33396
333972003-02-07 Wolfgang Bangerth <bangerth@ticam.utexas.edu>
33398
33399 * doc/trouble.texi: Document pitfalls of two-stage name lookup.
33400
334012003-02-07 Richard Henderson <rth@redhat.com>
33402
33403 PR 9226
33404 * gcse.c (local_cprop_find_used_regs): New.
33405 (local_cprop_pass): Use it.
33406
334072003-02-07 Fred Fish <fnf@intrinsity.com>
33408
33409 * mips-tfile.c (parse_def): Parenthesize assignments to fix
33410 precedence bugs.
33411
334122003-02-07 Segher Boessenkool <segher@koffie.nl>
33413
33414 * genoutput.c (output_get_insn_name): Handle NOOP_MOVE_INSN_CODE.
33415
334162003-02-07 Roger Sayle <roger@eyesopen.com>
33417
33418 * builtin-types.def (BT_FN_FLOAT_FLOAT_FLOAT): New built-in type.
33419 (BT_FN_LONG_DOUBLE_LONG_DOUBLE_LONG_DOUBLE): Likewise.
33420 (BT_FN_DOUBLE_DOUBLE_DOUBLE): Likewise.
33421 * builtins.def: Define pow, powf, powl, atan2, atan2f and atan2l
33422 builtin functions (and their __builtin_* variants).
33423 * builtins.c (mathfn_built_in): Handle missing log{,f,l} cases.
33424 (expand_builtin): Don't expand log{,f,l}, pow{,f,l} or atan2{,f,l}
33425 when not optimizing.
33426
33427 * doc/extend.texi: Document new pow and atan2 builtins, and
33428 their float and long double variants. Realphabetize builtins.
33429
334302003-02-07 Jan Hubicka <jh@suse.cz>
33431
33432 * i386.md (sse2_nandv2di3): Fix.
33433
334342003-03-07 Danny Smith <dannysmith@users.sourceforge.net>
33435
33436 * config/i386/i386.h (MS_AGGREGATE_RETURN): New define.
33437 * config/i386/cygwin.h (MS_AGGREGATE_RETURN): Override default
33438 definition.
33439 * config/i386/i386.h (ix86_return_in_memory): Return aggregate
33440 types of up to 8 bytes via registers if MS_AGGREGATE_RETURN.
33441
334422003-02-07 Jan Hubicka <jh@suse.cz>
33443
33444 * i386.md (movdi_rex64_1): Fix mmx<->int move opcode.
33445
334462003-02-07 Daniel Berlin <dberlin@dberlin.org>
33447
33448 * cfg.c (dump_flow_info): Add back accidently deleted line.
33449
334502003-02-07 Andrey Petrov <petrov@netbsd.org>
33451
33452 * optabs.c (expand_float): Search wider integer modes first.
33453
334542003-02-07 Bob Wilson <bob.wilson@acm.org>
33455
33456 * config/xtensa/xtensa.h (LIBGCC2_WORDS_BIG_ENDIAN): Set this
33457 based on preprocessor flag.
33458
334592003-02-07 Roger Sayle <roger@eyesopen.com>
33460 Richard Henderson <rth@redhat.com>
33461
33462 * gcse.c (implicit_sets): New.
33463 (compute_hash_table_work): Include them in hash table.
33464 (find_implicit_sets, fis_get_condition): New.
33465 (one_cprop_pass): Allocate and free implicit_sets; call
33466 find_implicit_sets before building hash table.
33467
334682003-02-07 Jason Thorpe <thorpej@wasabisystems.com>
33469
33470 * config/t-netbsd (USER_H): Revert previous change.
33471
334722003-02-07 Gabor Greif <ggreif@lucent.com>
33473
33474 * doc/c-tree.texi (Namespaces): Fix typo.
33475
334762003-02-07 Jan Hubicka <jh@suse.cz>
33477
33478 * regrename.c (do_replace, find_oldest_value_reg,
33479 copyprop_hardreg_forward_1): Update register attributes.
33480
334812003-02-06 Vladimir Makarov <vmakarov@redhat.com>
33482
33483 * genautomata.c (VLA_PTR_CREATE, VLA_PTR_EXPAND, VLA_PTR_ADD,
33484 VLA_HWINT_CREATE, VLA_HWINT_EXPAND, VLA_HWINT_ADD): Use temporay
33485 variables starting with underscore.
33486 (struct unit_usage): New structure.
33487 (unit_usages, cycle_alt_unit_usages): New global variables.
33488 (check_unit_distribution_in_reserv): Remove it.
33489 (store_alt_unit_usage): New function.
33490 (check_regexp_units_distribution): Rewrite it.
33491
334922003-02-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
33493
33494 * config.gcc (hppa*-*-linux*): Set MASK_NO_SPACE_REGS in
33495 target_cpu_default.
33496 * pa.c (attr_length_call): Add 8 to call length (long indirect PA 1.X)
33497 if not MASK_NO_SPACE_REGS.
33498 (output_call): Adjust return pointer, don't load new space register
33499 into %sr0, and use %sr4 for call if TARGET_NO_SPACE_REGS is true.
33500 (pa_asm_output_mi_thunk): Don't load new space register into %sr0 if
33501 TARGET_NO_SPACE_REGS is true.
33502 * pa.md (return_external_pic): Add TARGET_NO_SPACE_REGS to insn
33503 conditions.
33504 (epilogue): Always use return_internal if TARGET_NO_SPACE_REGS is true.
33505 (interspace_jump): Add new pattern for when TARGET_NO_SPACE_REGS is
33506 true. Use bve when TARGET_64BIT is true.
33507
335082003-02-06 Richard Henderson <rth@redhat.com>
33509
33510 * combine.c (nonzero_bits): Fix double break.
33511
335122003-02-06 Eric Botcazou <ebotcazou@libertysurf.fr>
33513 Richard Henderson <rth@redhat.com>
33514
33515 PR c/9530
33516 * config/i386/i386.c (ix86_function_ok_for_sibcall): Forbid sibcalls
33517 from functions that return a float to functions that don't.
33518
335192003-02-06 Jan Hubicka <jh@suse.cz>
33520
33521 * i386.c (x86_inter_unit_moves): New variable.
33522 (ix86_secondary_memory_needed): Fix 64bit case, honor
33523 TARGET_INTER_UNIT_MOVES
33524 * i386.h (x86_inter_unit_moves): Declare.
33525 (TARGET_INTER_UNIT_MOVES): New macro.
33526 * i386.md (movsi_1): Cleanup constraints; disable
33527 when not doing inter-unit moves.
33528 (movsi_1_nointernunit): New.
33529 (movdi_1_rex64): Fix constraints; deal with SSE->GPR moves.
33530 (movdi_1_rex64_nointerunit): New.
33531 (mivsf_1): disable when not doing inter-unit moves.
33532 (movsf_1_nointerunit): New.
33533
33534 * basic-block.h (inside_basic_block_p): Declare.
33535 * cfgbuild.c (inside_basic_block_p): Make global.
33536 * haifa-sched.c (unlink_other_notes): Deal with NOT_INSN_BASIC_BLOCK.
33537 * scheudle-ebb.c (schedule_ebb): Return last basic block of trace;
33538 update CFG.
33539 (fix_basic_block_boundaries, add_missing_bbs): New.
33540 (rank): Use profile.
33541 (scheudle_ebbs): Rely on CFG; update coments.
33542
335432003-02-05 Geoffrey Keating <geoffk@apple.com>
33544
33545 * Makefile.in (host_hook_obj): New.
33546 (OBJS): Add $(host_hook_obj).
33547 (host_default.o): New rule.
33548 * config.gcc (host_hook_obj): New, default to host-default.o.
33549 (powerpc-*-darwin*): Use host-darwin.o.
33550 (out_host_hook_obj): New.
33551 * configure: Regenerate.
33552 * configure.in: Print information about out_host_hook_obj, substitute
33553 into output files.
33554 * host-default.c: New file.
33555 * hosthooks.h: New file.
33556 * toplev.c (general_init): Call host_hooks.extra_signals.
33557 * config/rs6000/host-darwin.c: New file.
33558 * config/rs6000/x-darwin: New file.
33559 * doc/hostconfig.texi: Add documentation for new host hook.
33560 Rearrange existing documentation.
33561
335622003-02-05 Roger Sayle <roger@eyesopen.com>
33563
33564 * dwarf2out.c (mem_loc_descriptor): Replace ASM_SIMPLIFY_DWARF_ADDR
33565 with *targetm.delegitimize_address.
33566 (rtl_for_decl_location): Likewise.
33567 * dwarfout.c (output_mem_loc_descriptor): Likewise. Include target.h.
33568 * Makefile.in (dwarf2out.c, dwarfout.c): Depend upon $(TARGET_H)
33569
33570 * config/i386/i386.h (ASM_SIMPLIFY_DWARF_ADDR): Remove definition.
33571 * config/i386/i386-protos.h (i386_simplify_dwarf_addr): Remove
33572 prototype.
33573 * config/i386/i386.c (ix86_delegitimize_address): Renamed from
33574 i386_simplify_dwarf_addr. Made static. Prototyped.
33575 (TARGET_DELEGITIMIZE_ADDRESS): Update definition from
33576 i386_simplify_dwarf_addr to ix86_delegitimize_address.
33577 (ix86_find_base_term): Likewise.
33578 (maybe_get_pool_constant): Likewise.
33579
33580 * config/s390/s390.h (ASM_SIMPLIFY_DWARF_ADDR): Remove definition.
33581 * config/s390/s390-protos.h (s390_simplify_dwarf_addr): Remove
33582 prototype.
33583 * config/s390/s390.c (s390_delegitimize_address): Renamed from
33584 s390_simplify_dwarf_addr. Made static. Prototyped.
33585 (TARGET_DELEGITIMIZE_ADDRESS): Define as s390_delegitimize_address.
33586
335872003-02-05 Richard Henderson <rth@redhat.com>
33588
33589 PR c/8602
33590 * integrate.c (output_inline_function): Reset input_filename
33591 and lineno from the decl before rest_of_compilation.
33592
335932003-02-05 Richard Henderson <rth@redhat.com>
33594
33595 * defaults.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
33596 (CTZ_DEFINED_VALUE_AT_ZERO): New.
33597 * doc/rtl.texi, doc/tm.texi: Document them.
33598
33599 * combine.c (nonzero_bits) [CLZ, CTZ]: Handle the definedness
33600 of the value at zero properly.
33601 * fold-const.c (tree_expr_nonnegative_p): Likewise.
33602 * simplify-rtx.c (simplify_unary_operation): Likewise.
33603
33604 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
33605 (CTZ_DEFINED_VALUE_AT_ZERO): New.
33606
33607 * config/arm/arm.c (TARGET_INIT_BUILTINS): Remove.
33608 (TARGET_EXPAND_BUILTIN): Remove.
33609 (def_builtin, arm_init_builtins, arm_expand_builtin): Remove.
33610 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
33611 (enum arm_builtins): Remove.
33612 * config/arm/arm.md (UNSPEC_CLZ): Remove.
33613 (clzsi2): Rename from clz; use clz instead of unspec.
33614 (ctzsi2): New.
33615 * config/arm/arm-protos.h: Update.
33616
336172003-02-05 Jan Hubicka <jh@suse.cz>
33618
33619 * i386-protos.h (x86_emit_floatuns): Declare.
33620 * i386.c (x86_emit_floatuns): New global function.
33621 * i386.md (floatunssisf2, floatunsdisf2,
33622 floatunsdidf2): New patterns.
33623
336242003-01-25 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
33625
33626 * cfgloopmanip.c (force_single_succ_latches): Fix missindentation.
33627
336282003-02-05 Hans Boehm <Hans.Boehm@hp.com>
33629
33630 * config/ia64/unwind-ia64.c: include coretypes.h, tm.h to get
33631 config/ia64/linux.h
33632
336332003-02-05 Roger Sayle <roger@eyesopen.com>
33634
33635 * cfgloop.h (flow_bb_inside_loop_p): Correct prototype again.
33636
336372003-02-05 Jakub Jelinek <jakub@redhat.com>
33638
33639 PR optimization/8555
33640 * config/i386/i386.md (sse_mov?fcc split): Handle op2 == op3 case
33641 instead of aborting.
33642
336432003-02-04 Richard Henderson <rth@redhat.com>
33644
33645 * config/i386/i386.md (UNSPEC_BSF): Remove.
33646 (ffssi2): Split into cmove and no_cmove insns and splitters;
33647 lose pentium float trick for now.
33648 (ffssi_1): Add * to name; use CTZ instead of UNSPEC.
33649 (ctzsi2, clzsi2, bsr): New.
33650
336512003-02-04 Richard Henderson <rth@redhat.com>
33652
33653 * config/ia64/ia64.c (rtx_needs_barrier): Handle POPCOUNT,
33654 UNSPEC_GETF_EXP; remove UNSPEC_POPCNT.
33655 * config/ia64/ia64.md (UNSPEC_POPCNT): Remove.
33656 (ffsdi2): Use popcount instead of unspec.
33657 (popcountdi2): Rename from *popcnt.
33658 (ctzdi2, clzdi2, getf_exp_tf): New.
33659
336602003-02-04 Kazu Hirata <kazu@cs.umass.edu>
33661
33662 * genconfig.c (main): Generate CC0_P.
33663 * rtl.h (CC0_P): Remove.
33664
336652003-02-04 Richard Henderson <rth@redhat.com>
33666
33667 * libgcc2.h, libgcc2.c (__ffsSI2): New.
33668 (__ffsDI2): Rename from __ffsdi2.
33669 * mklibgcc.in (lib2funcs): Add _ffssi2.
33670
336712003-02-04 Richard Henderson <rth@redhat.com>
33672
33673 * libgcc2.c (__paritysi2, __paritydi2): Replace last two reduction
33674 rounds with a "bit table" lookup.
33675
336762003-02-04 Ulrich Weigand <uweigand@de.ibm.com>
33677
33678 * reload.c (find_reloads): Do not use the mode specified in the insn
33679 pattern as reload mode for address operands. Do not generate optional
33680 reloads for operands where a mandatory reload was already pushed.
33681
336822003-02-04 Richard Henderson <rth@redhat.com>
33683
33684 * longlong.h [alpha] (count_leading_zeros, count_trailing_zeros): Use
33685 builtins instead of inline assembly.
33686
336872003-02-04 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
33688
33689 PR c/9376
33690 * libgcc2.c (__subvdi3): Fix typo.
33691
336922003-02-04 Jan Hubicka <jh@suse.cz>
33693
33694 * i386.md (movti_rex64): Fix constraint.
33695
336962003-02-04 Jan Hubicka <jh@suse.cz>
33697
33698 * i386.md (vector push splitters): Fix typo in resolving conflict.
33699
337002003-02-04 Rodney Brown <rbrown64@csc.com.au>
33701
33702 * config/i386/i386.c (x86_function_profiler): Fix typo in format.
33703
337042003-02-04 Phil Edwards <pme@gcc.gnu.org>
33705
33706 * doc/install.texi (*-*-linux-gnu): Mention glibc requirements
33707 for recent libstdc++. Remove formatting cruft.
33708
337092003-02-04 Jakub Jelinek <jakub@redhat.com>
33710
33711 * dwarf2out.c (dwarf2out_finish): Add AT_comp_dir
33712 attribute even if input file name is absolute, but one of the
33713 includes is relative.
33714
337152003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
33716
33717 * doc/gcc.texi, doc/gccint.texi, doc/gcov.texi,
33718 doc/include/fdl.texi, doc/invoke.texi: Update to GFDL 1.2.
33719 * doc/install.texi: Update copyright dates. Update to GFDL 1.2.
33720
337212003-02-03 Richard Henderson <rth@redhat.com>
33722
33723 * libgcc2.c (__ffsdi2, __clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
33724 __popcountsi2, __popcountdi2, __paritysi2, __paritydi2): Change
33725 return type to "int". Shuffle declarations and undef int trap.
33726 * libgcc2.h: Remove their declarations.
33727 * optabs.c (expand_unop): Force outmode to int for bitops.
33728
337292003-02-03 Bob Wilson <bob.wilson@acm.org>
33730
33731 * config/xtensa/xtensa.c (order_regs_for_local_alloc): Order the
33732 coprocessor registers before floating-point registers.
33733 * config/xtensa/xtensa.h (REG_ALLOC_ORDER): Adjust register numbers
33734 to account for a previously removed register.
33735 (SPEC_REG_FIRST, SPEC_REG_LAST, SPEC_REG_NUM, COUNT_REGISTER_REGNUM):
33736 Delete unused macros.
33737
337382003-02-03 Jan Hubicka <jh@suse.cz>
33739
33740 * i386.c (ix86_expand_store_builtin): Always force op1 to register.
33741 (mov*_internal): Fix predicates; require one of operands to not be
33742 memory.
33743 (SSE?MMX move expanders): Fix predicates; force one of operands to
33744 register.
33745 (SSE/MMX push patterns): Reorganize; fix x86-64 code generation.
33746 (movups/movupd/movdqu patterns): Force one of operands to not be
33747 memory.
33748
337492003-02-03 Roger Sayle <roger@eyesopen.com>
33750
33751 * hooks.c (hook_rtx_rtx_identity): Generic hook function that
33752 takes a single rtx and returns it unmodified.
33753 * hooks.h (hook_rtx_rtx_identity): Prototype here.
33754 * target.h (struct gcc_target): Add "delegitimize_address"
33755 field to target structure.
33756 * target-def.h (TARGET_DELEGITIMIZE_ADDRESS): Provide default
33757 for delegitimize_address target using hook_rtx_rtx_identity.
33758 (TARGET_INITIALIZER): Initialize delegitimize_address field
33759 using TARGET_DELEGITIMIZE_ADDRESS macro.
33760 * simplify-rtx.c (avoid_constant_pool_reference): Handle float
33761 extensions of constant pool references. Use delegitimize_address
33762 to undo the obfuscation of "-fpic".
33763 * Makefile.in (simplify-rtx.o): Add dependency on target.h.
33764
33765 * config/i386/i386.c (TARGET_DELEGITIMIZE_ADDRESS): Define as
33766 i386_simplify_dwarf_addr.
33767 (ix86_find_base_term): Simplify using i386_simplify_dwarf_addr.
33768 (maybe_get_pool_constant): Likewise.
33769
337702003-02-03 Jan Hubicka <jh@suse.cz>
33771
33772 * i386.c (ix86_expand_int_movcc): Fix setcc sign bit case.
33773
337742003-02-03 Jan Hubicka <jh@suse.cz>
33775
33776 * regclass.c (cannot_change_mode_set_regs): Correct argument order.
33777
337782003-02-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
33779
33780 * mips/_tilib.c: Don't include tsystem.h or defaults.h. Don't
33781 define LIBGCC2_WORDS_BIG_ENDIAN. Include coretypes.h and tm.h.
33782
337832003-02-02 Andreas Schwab <schwab@suse.de>
33784
33785 * varasm.c (asm_output_aligned_bss): Declare as possibly unused.
33786
337872003-02-02 Richard Earnshaw <rearnsha@arm.com>
33788
33789 * arm.md (sibcall_epilogue): Set the "conds" to "clob".
33790 (epilogue_insns): Likewise.
33791
337922003-02-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
33793
33794 * doc/install.texi (hppa*-hp-hpux11*): Update installation notes.
33795
337962003-02-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
33797
33798 * pa-protos.h (attr_length_millicode_call): Remove second argument.
33799 (attr_length_indirect_call, attr_length_indirect_call,
33800 attr_length_save_restore_dltp): New prototypes.
33801 * pa.c (attr_length_millicode_call): Remove second argument. Check
33802 INSN_ADDRESSES_SET_P in distance calculation.
33803 (output_millicode_call): Check INSN_ADDRESSES_SET_P before using
33804 INSN_ADDRESSES.
33805 (attr_length_call): Check INSN_ADDRESSES_SET_P in distance calculation.
33806 (output_call): Check INSN_ADDRESSES_SET_P before using INSN_ADDRESSES.
33807 Call attr_length_call directly.
33808 (attr_length_indirect_call, output_indirect_call,
33809 attr_length_save_restore_dltp): New functions.
33810 * pa.md (attr_length_millicode_call): Drop second argument from all
33811 patterns.
33812 (return_internal_pic): Delete.
33813 (return_external_pic): Remove use of PIC register and pic operand and
33814 flag checks.
33815 (epilogue): Use return_internal for both normal and pic code.
33816 (call, call_value): Emit new 32-bit pic patterns for symref and
33817 indirect calls. Remove uses for arg pointer and pic register.
33818 (call_symref_pic, call_symref_pic_post_reload, call_reg_pic,
33819 call_reg_pic_post_reload, call_val_symref_pic,
33820 call_val_symref_pic_post_reload, call_val_reg_pic,
33821 call_val_reg_pic_post_reload): New pre and post reload insn patterns.
33822 Implement define_split and define_peephole2 patterns for pre reload
33823 patterns.
33824 (call_symref_64bit, call_internal_reg_64bit, call_value_symref_64bit,
33825 call_value_internal_reg_64bit): Shorten names.
33826 (all call patterns): Explicitly indicate registers used and clobbered.
33827 Use attr_length_indirect_call and attr_length_save_restore_dltp for
33828 attribute length calculation. Move code generation for indirect calls
33829 to output_indirect_call.
33830 (sibcall, sibcall_value): Don't restore PIC register.
33831 (exception_receiver, builtin_setjmp_receiver): Add blockage after PIC
33832 register retore.
33833
338342003-02-02 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
33835
33836 * doc/install.texi (Testing): Simplify and compress instructions
33837 concerning Dejagnu.
33838
338392003-02-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
33840
33841 * collect2.c (pexecute_pid): Rename to pid.
33842 (collect_wait, collect_execute, scan_prog_file, scan_libraries): Use
33843 pid.
33844
338452003-02-01 Geoffrey Keating <geoffk@apple.com>
33846
33847 * doc/extend.texi (Function Attributes): Remove documentation
33848 for PowerPC Windows NT function attributes..
33849
338502003-02-01 Daniel Jacobowitz <drow@mvista.com>
33851
33852 * dwarf2out.c (gen_type_die): Check for typedefs before calling
33853 for TYPE_MAIN_VARIANT.
33854
338552003-02-01 Richard Henderson <rth@redhat.com>
33856
33857 * libgcc2.c: Include auto-host.h.
33858 (ATTRIBUTE_HIDDEN): New.
33859 (__clz_tab): Don't declare here for clz and ctz.
33860 (__clzsi2, __clzdi2): Use count_leading_zeros.
33861 (__ctzsi2, __ctzdi2): Use count_trailing_zeros.
33862 (__popcount_tab): Mark ATTRIBUTE_HIDDEN.
33863 (__paritysi2, __paritydi2): Use shifts instead of __popcount_tab.
33864 * longlong.h (__clz_tab): Mark ATTRIBUTE_HIDDEN.
33865
338662003-02-01 Richard Henderson <rth@redhat.com>
33867
33868 * config/i386/i386.md (addsi_1_zext splitter): Add TARGET_64BIT
33869 to the conditional.
33870 (ashlsi3_1_zext splitter): Likewise.
33871
338722003-02-01 Richard Henderson <rth@redhat.com>
33873
33874 * optabs.c (expand_unop): Use word_mode for outmode of bit scaners.
33875 * libgcc2.c (__ffsdi2, __clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
33876 __popcountsi2, __popcountdi2, __paritysi2 __paritydi2): Change
33877 return type to Wtype.
33878
33879 * libgcc-std.ver (GCC_3.4): Fix inheritance.
33880
33881 * config/i386/i386.md (ffssi2): Use nonimmediate_operand for
33882 expander input constraint.
33883
338842003-02-01 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
33885
33886 * optabs.h (optab_index): Add OTI_clz, OTI_ctz, OTI_popcount and
33887 OTI_parity.
33888 (clz_optab, ctz_optab, popcount_optab, parity_optab): New.
33889 * optabs.c (widen_clz, expand_parity): New.
33890 (expand_unop): Handle clz and parity. Hardcode SImode as outmode
33891 for libcalls to clz, ctz, popcount, and parity.
33892 (init_optabs): Init clz_optab, ctz_optab, popcount_optab and
33893 parity_optab, and set up libfunc handlers.
33894 * libgcc2.c (__clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
33895 __popcountsi2, __popcountdi2, __paritysi2 __paritydi2,
33896 __popcount_tab): New.
33897 * libgcc2.h: Declare them.
33898 * libgcc-std.ver (GCC_3.4): Add new functions from libgcc2.c.
33899 * genopinit.c (optabs): Add clz_optab, ctz_optab, popcount_optab
33900 and parity_optab.
33901 * builtin-types.def (BT_FN_INT_LONG, BT_FN_INT_LONGLONG): New.
33902 * builtins.def (BUILT_IN_CLZ, BUILT_IN_CTZ, BUILT_IN_POPCOUNT,
33903 BUILT_IN_PARITY, BUILT_IN_FFSL, BUILT_IN_CLZL, BUILT_IN_CTZL,
33904 BUILT_IN_POPCOUNTL, BUILT_IN_PARITYL, BUILT_IN_FFSLL,
33905 BUILT_IN_CLZLL, BUILT_IN_CTZLL, BUILT_IN_POPCOUNTLL,
33906 BUILT_IN_PARITYLL): New.
33907 * builtins.c (expand_builtin_unop): Rename from expand_builtin_ffs
33908 and add optab argument.
33909 (expand_builtin): Expand BUILT_IN_{FFS,CLZ,POPCOUNT,PARITY}*.
33910 * tree.def (CLZ_EXPR, CTZ_EXPR, POPCOUNT_EXPR, PARITY_EXPR): New.
33911 * expr.c (expand_expr): Handle them.
33912 * fold-const.c (tree_expr_nonnegative_p): Likewise.
33913 * rtl.def (CLZ, CTZ, POPCOUNT, PARITY): New.
33914 * reload1.c (eliminate_regs): Handle them.
33915 (elimination_effects): Likewise.
33916 * function.c (instantiate_virtual_regs_1): Likewise
33917 * genattrtab.c (check_attr_value): Likewise.
33918 * simplify-rtx.c (simplify_unary_operation): Likewise.
33919 * c-common.c (c_common_truthvalue_conversion): Handle POPCOUNT_EXPR.
33920 * combine.c (combine_simplify_rtx): Handle POPCOUNT and PARITY.
33921 (nonzero_bits): Handle CLZ, CTZ, POPCOUNT and PARITY.
33922 * config/alpha/alpha.md (clzdi2, ctzdi2, popcountdi2): New.
33923 * config/arm/arm.c (arm_init_builtins): Rename __builtin_clz to
33924 __builtin_arm_clz.
33925 * Makefile.in (LIB2FUNCS_1, LIB2FUNCS_2): Move...
33926 * mklibgcc.in (lib2funcs): ...here and merge. Add new members.
33927 * doc/extend.texi (Other Builtins): Add new builtins.
33928 * doc/md.texi (Standard Names): Add new patterns.
33929
339302003-02-01 Ulrich Weigand <uweigand@de.ibm.com>
33931
33932 * reload.c: Revert 2003-01-31 change.
33933
339342003-02-01 Jan Hubicka <jh@suse.cz>
33935
33936 * combine.c (combine_simplify_rtx): Use reversed_comparison_code_parts.
33937
339382003-02-01 Richard Sandiford <rsandifo@redhat.com>
33939
33940 * flags.h (flag_volatile): Remove declaration.
33941 (flag_volatile_global, flag_volatile_static): Likewise.
33942 * c-typeck.c (build_indirect_ref): Don't check flag_volatile.
33943 * toplev.c (flag_volatile): Remove definition.
33944 (flag_volatile_global, flag_volatile_static): Likewise.
33945 (f_options): Remove corresponding entries here.
33946 * varasm.c (make_decl_rtl): Don't check flag_volatile_global
33947 or flag_volatile_static.
33948 * doc/invoke.texi: Remove documentation of -fvolatile,
33949 -fvolatile-global and -fvolatile-static.
33950
339512003-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
33952
33953 * pa.c (pa_output_function_prologue, pa_output_function_epilogue): Move
33954 updating of total_code_bytes from prologue to epilogue.
33955
339562003-01-31 Ulrich Weigand <uweigand@de.ibm.com>
33957
33958 * reload.c (find_reloads): Do not use the mode specified in the insn
33959 pattern as reload mode for address operands. Do not generate optional
33960 reloads for operands where a mandatory reload was already pushed.
33961 Generate optional reloads only in the final pass though find_reloads.
33962 (have_replacement_p): New function.
33963
339642003-01-31 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
33965
33966 * doc/install.texi (Testing): Remove a reference to our obsolete
33967 /testresults web pages and strip redundant information concerning
33968 test results.
33969 (Binaries): Refer to Microsoft Windows instead of listing all
33970 possible variants.
33971
339722003-02-01 Jan Hubicka <jh@suse.cz>
33973
33974 * loop.c (emit_prefetch_instructions): Do conversion at right place in
33975 RTL chain.
33976
33977 * combine.c (simplify_set): Reverse order of ragumetns to
33978 REG_CANNOT_CHANGE_MODE_P
33979 * df.c (df_def_record_1): Likewise.
33980 * recog.c (register_operand): Likewise.
33981 * simplify-rtx.c (simplify_subreg): Likewise.
33982 * hard-reg-set.h (REG_CANNOT_CHANGE_MODE_P): Update use of
33983 CANNOT_CHANGE_MODE_CLASS.
33984 * regclass.c (cannot_change_mode_set_regs, invalid_mode_change_p):
33985 Likewise.
33986 * reload.c (push_reload): Likewise.
33987 * alpha.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
33988 * ia64.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
33989 * mips.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
33990 * mips-protos.h (mips_cannot_change_mode_class): Update prototype.
33991 * mips.c (mips_cannot_change_mode_class): Update.
33992 * pa64-regs.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
33993 * rs6000.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
33994 * s390.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
33995 * sh.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
33996 * sh-protos.h (sh_cannot_change_mode_class): Update prototype.
33997 * sh.c (sh_cannot_change_mode_class): Update.
33998 * i386.h (CANNOT_CHANGE_MODE_CLASS): New.
33999 * tm.texi (CANNOT_CHANGE_MODE_CLASS): Update documentation.
34000
340012003-01-31 Geoffrey Keating <geoffk@apple.com>
34002
34003 * config/darwin.h (LINK_COMMAND_SPEC): Update for Nathan's recent
34004 change to LINK_COMMAND_SPEC in gcc.c.
34005
340062003-01-31 Jan Hubicka <jh@suse.cz>
34007
34008 PR c/9506
34009 * i386.c (override_options): Use DEFAULT_PCC_STRUCT_RETURN.
34010
340112003-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
34012
34013 * pa32-regs.h (REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Delete
34014 duplicated code.
34015
340162003-01-31 Nathan Sidwell <nathan@codesourcery.com>
34017
34018 * tree.h (TYPE_BINFO_SIZE, TYPE_BINFO_SIZE_UNIT): Remove.
34019 (BINFO_ELTS): New #define.
34020 * stor-layout.c (finalize_record_size): Don't set them.
34021 * cp/cp-tree.h (BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX,
34022 BINFO_PRIMARY_BASE_OF): Use BINFO_ELTS.
34023 (BINFO_LANG_ELTS): New #define.
34024 * cp/tree.c (make_binfo): Use BINFO_LANG_ELTS.
34025 * java/class.c (make_class): Use BINFO_ELTS.
34026 (set_super_info): Likewse.
34027 (add_interface_do): Likewise.
34028 * objc/objc-act.c (start_class): Use BINFO_ELTS.
34029
340302003-01-31 Danny Smith <dannysmith@users.sourceforge.net>
34031
34032 * timevar.c (getrusage): Don't ever declare if not HAVE_GETRUSAGE.
34033 (times): Don't ever declare if not HAVE_TIMES.
34034 (clock): Don't ever declare if not HAVE_CLOCK.
34035
340362003-01-30 Richard Henderson <rth@redhat.com>
34037
34038 * flow.c (update_life_info): Zap life info after cleanup_cfg.
34039 (regno_uninitialized): Use correct live at function entry set.
34040 (regno_clobbered_at_setjmp): Likewise.
34041
34042 * expr.c (store_expr): Promote all MEM intermediates to regs.
34043
340442003-01-30 Kazu Hirata <kazu@cs.umass.edu>
34045
34046 * config/arm/arm.c: Fix comment typos.
34047 * config/arm/arm.h: Likewise.
34048 * config/arm/netbsd-elf.h: Likewise.
34049 * config/arm/netbsd.h: Likewise.
34050
340512003-01-30 Geoffrey Keating <geoffk@apple.com>
34052
34053 * gengtype.c (struct walk_type_data): Add needs_cast_p.
34054 (walk_type): Set needs_cast_p in walk_type_data.
34055 (write_types_process_field): Supply casts when required to suppress
34056 warnings.
34057 (write_root): Cast gt_pch_n_S to suppress warning.
34058 * Makefile.in: Remove -Wno-error from gtype-desc.o and c-decl.o.
34059 * config/rs6000/rs6000.c (print_operand): Mask off high bits only
34060 when they might exist.
34061 * config/rs6000/t-rs6000: Remove -Wno-error from varasm.o,
34062 insn-conditions.o, and rs6000.o.
34063
340642003-01-30 Richard Henderson <rth@redhat.com>
34065
34066 * ggc-page.c (G.context_depth_allocations): New.
34067 (G.context_depth_collections): New.
34068 (alloc_page): Set G.context_depth_allocations.
34069 (ggc_collect): Set G.context_depth_collections.
34070 (ggc_push_context): Limit to HOST_BITS_PER_LONG contexts.
34071 (ggc_pop_context): Early exit for no allocations or collections.
34072
340732003-01-30 Richard Henderson <rth@redhat.com>
34074
34075 * tree-inline.c (walk_tree): Streamline duplicate hash table lookup.
34076
340772003-01-30 Richard Earnshaw <rearnsha@arm.com>
34078
34079 * arm.c (arm_compute_initial_elimination_offset): If optimizing for
34080 size, the link register is always saved if any other register is
34081 saved.
34082
340832003-01-30 Kazu Hirata <kazu@cs.umass.edu>
34084
34085 * config/h8300/h8300-protos.h: Update the prototype for
34086 compute_plussi_cc.
34087 (cpp_reader): Declare before it is used.
34088 * config/h8300/h8300.c (compute_plussi_cc): Change the return
34089 type to int.
34090 * config/h8300/h8300.md (monitor_prologue): Call abort() if we
34091 see an unknown H8 variant.
34092
340932003-01-30 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
34094
34095 PR target/9316
34096 * config/rs6000/rtems.h: Add CPP_OS_DEFAULT_SPEC.
34097 * config/rs6000/sysv4.h: Add CPP_OS_RTEMS_SPEC.
34098 * config/rs6000/t-rtems: New file. multilib variants to match OS.
34099 * config.gcc (powerpc-*-rtems*): Use rs6000/t-rtems instead of
34100 rs6000/t-ppcgas so we get the desired multilibs.
34101
341022003-01-30 Nick Clifton <nickc@redhat.com>
34103
34104 * config/arm/arm.c (arm_output_epilogue): Update stack pointer
34105 when popping saved IP register off the stack.
34106
341072003-01-30 Kazu Hirata <kazu@cs.umass.edu>
34108
34109 * config/rs6000/aix43.h: Fix comment typos.
34110 * config/rs6000/aix51.h: Likewise.
34111 * config/rs6000/aix52.h: Likewise.
34112 * config/rs6000/altivec.h: Likewise.
34113 * config/rs6000/rs6000.c: Likewise.
34114 * config/rs6000/rs6000.h: Likewise.
34115 * config/rs6000/rs6000.md: Likewise.
34116 * config/rs6000/spe.md: Likewise.
34117
341182003-01-29 Mark Mitchell <mark@codesourcery.com>
34119
34120 * c-common.c (builtin_define_float_constants): Define
34121 __<TYPE>_HAS_INFINITY__ and __<TYPE>_HAS_QUIET_NAN__.
34122
341232003-01-30 Kazu Hirata <kazu@cs.umass.edu>
34124
34125 * config/sh/lib1funcs.asm: Fix comment typos.
34126 * config/sh/linux.h: Likewise.
34127 * config/sh/sh.c: Likewise.
34128 * config/sh/sh.md: Likewise.
34129
341302003-01-30 Loren James Rittle <ljrittle@acm.org>
34131
34132 * objc/Make-lang.in (objc-parse.y): Find c-parse.in in $(srcdir).
34133
341342003-01-30 Alexandre Oliva <aoliva@redhat.com>
34135
34136 * config/fp-bit.h (__make_dp): Declare if TMODES.
34137
341382003-01-29 Kazu Hirata <kazu@cs.umass.edu>
34139
34140 * config/h8300/h8300.h (PREDICATE_CODES): Add entries for
34141 general_operand_src and general_operand_dst.
34142
341432003-01-29 David Edelsohn <edelsohn@gnu.org>
34144
34145 * config/rs6000/rs6000.c (function_arg_pass_by_reference):
34146 Return true for variable sized types.
34147 (rs6000_va_arg): Handle variable sized types passed by reference
34148 on non-SVR4 ABI.
34149
341502003-01-29 Richard Earnshaw <rearnsha@arm.com>
34151
34152 * arm.c (arm_legtimize_address): New function.
34153 * arm-protos.h (arm_legtimize_address): Add prototype.
34154 * arm.h (ARM_LEGITIMIZE_ADDRESS): Use arm_legitimize_address.
34155 (LEGITIMIZE_ADDRESS, THUMB_LEGITIMIZE_ADDRESS): Wrap with
34156 do ... while (0)
34157
341582003-01-29 Joel Sherrill <joel@OARcorp.com>
34159
34160 PR bootstrap/9296
34161 * gthr-rtems.h: Define __GTHREAD_MUTEX_INIT. Apparently no code
34162 depended on it being defined until now.
34163
341642003-01-29 Joel Sherrill <joel@OARcorp.com>
34165
34166 PR target/9295
34167 * config/mips/rtems.h: Predefine __USE_INIT_FINI__ so generic
34168 RTEMS code knows which C++ initialization style the toolset
34169 configuration is using.
34170
341712003-01-29 Joel Sherrill <joel@OARcorp.com>
34172
34173 PR bootstrap/9293
34174 * config/m68k/t-crtstuff: Replace spaces with tabs, add
34175 $(MULTILIB_CFLAGS) as compiler option and multilib crtbegin/end.o.
34176
341772003-01-29 Joel Sherrill <joel@OARcorp.com>
34178
34179 PR bootstrap/9292
34180 * config.gcc (hppa1.1-rtems): Did not include t-rtems nor enable
34181 RTEMS threads.
34182 * config/pa/rtems.h (LIB_SPEC): Use -N when linking.
34183
341842003-01-29 Nick Clifton <nickc@redhat.com>
34185
34186 * Makefile.in (c-parse.o): Locate source file in $(parsedir)
34187 not $(srcdir).
34188
341892003-01-29 Andrew Haley <aph@redhat.com>
34190
34191 * tree-inline.c (walk_tree): Add CHAR_TYPE.
34192
341932003-01-29 Jan Hubicka <jh@suse.cz>
34194
34195 * i386.md (subdi3_carry_rex64): Fix typo.
34196
341972003-01-28 Stan Shebs <shebs@apple.com>
34198
34199 * coretypes.h (cpp_reader): Forward declare struct.
34200 * c-pragma.h (cpp_reader): Remove forward declaration.
34201 * hashtable.h (cpp_reader): Likewise.
34202 * scan.h (cpp_reader): Likewise.
34203 * tree.h (cpp_reader): Likewise.
34204 * config/darwin-protos.h (cpp_reader): Likewise.
34205 * config/arm/arm-protos.h (cpp_reader): Likewise.
34206 * config/rs6000/rs6000-protos.h: Remove GCC_CPPLIB_H ifdef, use
34207 struct cpp_reader in prototypes.
34208
342092003-01-28 Christian Cornelssen <ccorn@cs.tu-berlin.de>
34210
34211 * doc/install.texi: Add documentation for installation into
34212 tooldirs and with DESTDIR.
34213
342142003-01-28 Richard Henderson <rth@redhat.com>
34215
34216 * config.gcc (ia64*-*-aix*): Remove.
34217 * config/ia64/aix.h, config/ia64/t-aix: Remove file.
34218 * config/ia64/unwind-aix.c: Remove file.
34219
342202003-01-28 Andreas Schwab <schwab@suse.de>
34221
34222 * config/m68k/m68k.md (tablejump+2): Don't sign extend an address
34223 register.
34224 * config/m68k/apollo68.h (ASM_RETURN_CASE_JUMP): Likewise.
34225 * config/m68k/coff.h (ASM_RETURN_CASE_JUMP): Likewise.
34226 * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Likewise.
34227 * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
34228 * config/m68k/mot3300.h (ASM_RETURN_CASE_JUMP): Likewise.
34229 * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
34230 * config/m68k/pbb.h (ASM_RETURN_CASE_JUMP): Likewise.
34231
342322003-01-28 Richard Sandiford <rsandifo@redhat.com>
34233
34234 * combine.c (nonzero_bits): Fix check for negative divide operands.
34235
342362003-01-28 Richard Henderson <rth@redhat.com>
34237
34238 * config/ia64/ia64.c (ia64_rwreloc_section_type_flags): New.
34239 * config/ia64/hpux.h (TARGET_SECTION_TYPE_FLAGS): New.
34240
342412003-01-28 Richard Henderson <rth@redhat.com>
34242
34243 * cse.c (find_best_addr): Kill !ADDRESS_COST code.
34244
34245 * config/cris/cris.c (cris_address_cost): Make static.
34246 (TARGET_RTX_COSTS, TARGET_ADDRESS_COST): New.
34247 * config/cris/cris.h (ADDRESS_COST): Remove.
34248 * config/cris/cris-protos.h: Update.
34249
342502003-01-23 Mike Stump <mrs@apple.com>
34251
34252 * regclass.c (init_reg_autoinc): New function.
34253 (regclass): Move initialization of forbidden_inc_dec_class from
34254 here...
34255 (init_regs): to here. Avoids reinitialization for each function,
34256 saving compilation time.
34257
342582003-01-28 Jason Merrill <jason@redhat.com>
34259
34260 * cpplib.h (struct cpp_options): Add warn_deprecated field.
34261 * cppinit.c (cpp_create_reader): Turn it on by default.
34262 * c-opts.c (c_common_decode_option): Set it.
34263 * cpplib.c (do_pragma_once): Only complain about #pragma once
34264 if warn_deprecated is set.
34265
342662003-01-28 Dale Johannesen <dalej@apple.com>
34267
34268 * emit-rtl.c (const_double_htab_hash): Use mode in the hash.
34269 * loop.c (scan_loop): Move movables on -Os rich-register targets.
34270 * config/rs6000/rs6000.md (sibcall*): Use match_operand for LR.
34271
342722003-01-28 Richard Henderson <rth@redhat.com>
34273
34274 * target.h (targetm.address_cost): New.
34275 * target-def.h (TARGET_ADDRESS_COST): New.
34276 (TARGET_RTX_COSTS): Uncomment. Oops.
34277 * cse.c (address_cost): Use new target hook.
34278 (default_address_cost): New.
34279 * output.h (default_address_cost): Declare.
34280 * hooks.c (hook_int_rtx_0): New.
34281 * hooks.h (hook_int_rtx_0): Declare.
34282 * loop.c (combine_givs_p): Remove if 0 code.
34283 * system.h (ADDRESS_COST): Poison.
34284
34285 * config/alpha/alpha.c, config/alpha/alpha.h, config/d30v/d30v.c,
34286 config/d30v/d30v.h, config/ia64/ia64.c, config/ia64/ia64.h,
34287 config/m32r/m32r.c, config/m32r/m32r.h, config/mcore/mcore.c,
34288 config/mcore/mcore.h, config/mmix/mmix.c, config/mmix/mmix.h,
34289 config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/sparc/sparc.c,
34290 config/sparc/sparc.h, config/v850/v850.c, config/v850/v850.h,
34291 config/xtensa/xtensa.c, config/xtensa/xtensa.h
34292 (TARGET_ADDRESS_COST): Define as hook_int_rtx_0.
34293 (ADDRESS_COST): Remove.
34294
34295 * config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
34296 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
34297 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
34298 config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
34299 config/dsp16xx/dsp16xx.h, config/i386/i386-protos.h,
34300 config/i386/i386.c, config/i386/i386.h, config/i960/i960-protos.h,
34301 config/i960/i960.c, config/i960/i960.h, config/ip2k/ip2k-protos.h,
34302 config/ip2k/ip2k.c, config/ip2k/ip2k.h, config/mips/mips-protos.h,
34303 config/mips/mips.c, config/mips/mips.h,
34304 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
34305 config/m68hc11/m68hc11.h, config/ns32k/ns32k-protos.h,
34306 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa-protos.h,
34307 config/pa/pa.c, config/pa/pa.h, config/s390/s390-protos.h,
34308 config/s390/s390.c, config/s390/s390.h, config/vax/vax-protos.h,
34309 config/vax/vax.c, config/vax/vax.h
34310 (foo_address_cost): Make static.
34311 (TARGET_ADDRESS_COST): New.
34312 (ADDRESS_COST): Remove.
34313
34314 * config/arm/arm.h, config/arm/arm.c, config/m88k/m88k.h,
34315 config/m88k/m88k.c, config/romp/romp.h, config/romp/romp.c,
34316 config/sh/sh.c, config/sh/sh.h, config/stormy16/stormy16.c,
34317 config/stormy16/stormy16.h
34318 (ADDRESS_COST): Move code ...
34319 (foo_address_cost): ... here.
34320 (TARGET_ADDRESS_COST): New.
34321
34322 * config/m32r/m32r.c (m32r_address_cost): Remove.
34323 * config/m32r/m32r-protos.h: Update.
34324
34325 * config/mmix/mmix.c (mmix_address_cost): Remove.
34326 * config/mmix/mmix-protos.h: Update.
34327
34328 * config/mn10300/mn10300.c (mn10300_address_cost_1): Rename from
34329 mn10300_address_cost; move unsig allocation ...
34330 (mn10300_address_cost): ... here.
34331 (TARGET_ADDRESS_COST): New.
34332 * config/mn10300/mn10300-protos.h: Update.
34333 * config/mn10300/mn10300.h (ADDRESS_COST): Remove.
34334
34335 * doc/tm.texi: Update.
34336
343372003-01-28 Vladimir Makarov <vmakarov@redhat.com>
34338
34339 * haifa-sched.c (schedule_insn): Return necessary cycle advance
34340 after issuing the insn.
34341 (rank_for_schedule): Make a insn with /S the highest priority
34342 insn.
34343 (move_insn): Ignore schedule groups. Clear SCHED_GROUP_P.
34344 (choose_ready): Check SCHED_GROUP_P.
34345 (schedule_block): Advance cycle after issuing insn if it is
34346 necessary. Don't reorder insns if there is an insn with /S.
34347 (set_priorities): Ignore schedule groups.
34348
34349 * sched-deps.c (remove_dependence, group_leader): Remove the
34350 functions.
34351 (add_dependence): Ignore schedule groups.
34352 (set_sched_group_p): Don't make copy of dependencies from previous
34353 insn of the schedule group. Add anti-dependency to the previous
34354 insn of the schedule group.
34355 (compute_forward_dependences): Ignore schedule groups.
34356
34357 * sched-ebb.c (init_ready_list): Ignore schedule groups.
34358
34359 * sched-rgn.c (init_ready_list): Ditto.
34360 (can_schedule_ready_p): Ditto.
34361
343622003-01-28 Vladimir Makarov <vmakarov@redhat.com>
34363
34364 * config/i386/i386.md (*movsi_1): Use movdqa to move one xmm
34365 register to another one.
34366
343672003-01-28 Richard Henderson <rth@redhat.com>
34368
34369 * calls.c (default_must_pass_in_stack): Fix typo in !type case.
34370
343712003-01-28 Roger Sayle <roger@eyesopen.com>
34372
34373 * cse.c (cse_insn): Avoid redundant REG_EQUAL notes.
34374
343752003-01-28 Richard Sandiford <rsandifo@redhat.com>
34376
34377 * config/sh/sh.h (CLASS_MAX_NREGS): If TARGET_SHMEDIA, and the given
34378 class contains a floating-point register, return the size of the
34379 mode in half words.
34380
343812003-01-28 Jan Hubicka <jh@suse.cz>
34382
34383 * i386.c (ix86_carry_flag_operator): New predicate.
34384 (fcmov_operator): Fix whitespace.
34385 (ix86_expand_carry_flag_compare): Deal with floating point.
34386 (ix86_expand_int_movcc): Deal with fp; update insn expansion
34387 (ix86_expand_int_addcc): Likewise.
34388 (ix86_expand_strlensi_unroll_1): likewsie.
34389 * i386.h (PREDICATE_CODES): Add ix86_carry_flag_operator.
34390 * i386.md (add?i_carry_rex64): Use new predicate.
34391 (sub?i3_carry_rex64): Likewise.
34392 (x86_mov?icc_0_m1*): Likewise.
34393
343942003-01-28 Andreas Schwab <schwab@suse.de>
34395
34396 * cfgloopmanip.c (create_preheader): Initialize src to avoid
34397 warning.
34398
34399 * expmed.c (emit_store_flag): Fix cast to avoid sign
34400 comparison warning.
34401
34402 * combine.c (force_to_mode): Add cast to fix warning when
34403 STORE_FLAG_VALUE is negative.
34404
344052003-01-27 Richard Henderson <rth@redhat.com>
34406
34407 * Makefile.in (cse.o): Depend on TARGET_H.
34408 * cse.c (rtx_cost): Use targetm.rtx_costs.
34409 * system.h (CONST_COSTS RTX_COSTS DEFAULT_RTX_COSTS): Poison.
34410 * doc/tm.texi: Update.
34411
34412 * target.h (targetm.rtx_costs): New.
34413 * target-def.h (TARGET_RTX_COSTS): New.
34414 * hooks.c (hook_bool_rtx_int_int_intp_false): New.
34415 * hooks.h: Update.
34416
34417 * config/alpha/alpha.c (alpha_rtx_cost_data): New.
34418 (alpha_rtx_costs, TARGET_RTX_COSTS): New.
34419 * config/alpha/alpha.h (PROCESSOR_MAX): New.
34420 (CONST_COSTS, RTX_COSTS): Remove.
34421
34422 * config/arc/arc.c, config/arc/arc.h, config/c4x/c4x.c,
34423 config/c4x/c4x.h, config/cris/cris.c, config/cris/cris.h,
34424 config/d30v/d30v.c, config/d30v/d30v.h, config/dsp16xx/dsp16xx.c,
34425 config/dsp16xx/dsp16xx.h, config/frv/frv.c, config/frv/frv.h,
34426 config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
34427 config/i370/i370.h, config/i386/i386.c, config/i386/i386.h,
34428 config/i960/i960.c, config/i960/i960.h, config/ia64/ia64.c,
34429 config/ia64/ia64.h, config/m32r/m32r.c, config/m32r/m32r.h,
34430 config/m68k/m68k.c, config/m68k/m68k.h, config/m88k/m88k.c,
34431 config/m88k/m88k.h, config/mcore/mcore.c, config/mcore/mcore.h,
34432 config/mips/mips.c, config/mips/mips.h, config/mn10200/mn10200.c,
34433 config/mn10200/mn10200.h, config/mn10300/mn10300.c,
34434 config/mn10300/mn10300.h, config/ns32k/ns32k.c, config/ns32k/ns32k.h,
34435 config/pa/pa.c, config/pa/pa.h, config/pdp11/pdp11.c,
34436 config/pdp11/pdp11.h, config/romp/romp.c, config/romp/romp.h,
34437 config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/s390/s390.c,
34438 config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
34439 config/stormy16/stormy16.c, config/stormy16/stormy16.h,
34440 config/v850/v850.c, config/v850/v850.h,
34441 config/xtensa/xtensa.c, config/xtensa/xtensa.h
34442 (CONST_COSTS, RTX_COSTS): Move code ...
34443 (foo_rtx_costs, TARGET_RTX_COSTS): ... here.
34444
34445 * config/arm/arm.c (arm_rtx_costs_1): Rename from arm_rtx_costs.
34446 (arm_rtx_costs, TARGET_RTX_COSTS): New.
34447 * config/arm/arm-protos.h: Update.
34448 * config/arm/arm.h (DEFAULT_RTX_COSTS): Remove.
34449
34450 * config/avr/avr.h (CONST_COSTS): Move code ...
34451 * config/avr/avr.c (avr_rtx_costs): ... here.
34452 (default_rtx_costs): Make static.
34453 * config/avr/avr-protos.h: Update.
34454
34455 * config/h8300/h8300.c (const_costs): Make static.
34456 (h8300_and_costs, h8300_shift_costs): Likewise.
34457 * config/h8300/h8300-protos.h: Update.
34458
34459 * config/ip2k/ip2k.h (DEFAULT_RTX_COSTS): Remove.
34460 (CONST_COSTS): Move code ...
34461 * config/ip2k/ip2k.c (ip2k_rtx_costs): ... here. Rename from
34462 default_rtx_costs; update for signature change.
34463 * config/ip2k/ip2k-protos.h: Update.
34464
34465 * config/m68hc11/m68hc11.h (RTX_COSTS): Remove.
34466 (CONST_COSTS): Move code ...
34467 * config/m68hc11/m68hc11.c (m68hc11_rtx_costs): ... here.
34468 (TARGET_RTX_COSTS): New.
34469 (m68hc11_rtx_costs_1): Rename from m68hc11_rtx_costs; make static.
34470 * config/m68hc11/m68hc11-protos.h: Update.
34471
34472 * config/m68k/m68k.c (const_int_cost): Make static.
34473 * config/m68k/m68k-protos.h: Update.
34474
34475 * config/mcore/mcore.c (mcore_const_costs): Make static.
34476 (mcore_and_cost, mcore_ior_cost): Likewise.
34477 * config/mcore/mcore-protos.h: Update.
34478
34479 * config/mmix/mmix.c (mmix_rtx_costs, TARGET_RTX_COSTS): New.
34480 (mmix_rtx_cost_recalculated): Remove.
34481 * config/mmix/mmix.h (DEFAULT_RTX_COSTS): Remove.
34482 * config/mmix/mmix-protos.h: Update.
34483
34484 * config/sh/sh.c (shiftcosts): Make static.
34485 (addsubcosts, andcosts, multcosts): Likewise.
34486 * config/sh/sh-protos.h: Update.
34487
34488 * config/sparc/sparc.c (TARGET_RTX_COSTS): New.
34489 (sparc_rtx_costs): Make static; update for change in signature.
34490 * config/sparc/sparc.h (RTX_COSTS_CASES, RTX_COSTS): Remove.
34491 * config/sparc/sparc-protos.h: Update.
34492
34493 * config/v850/v850.c (const_costs): Make static.
34494 * config/v850/v850-protos.h: Update.
34495
34496 * config/vax/vax.h (RTX_COSTS): Remove.
34497 (CONST_COSTS): Move code ...
34498 * config/vax/vax.c (vax_rtx_costs_1): ... here; rename
34499 from vax_rtx_cost.
34500 (vax_rtx_costs, TARGET_RTX_COSTS): New.
34501
345022003-01-27 Richard Henderson <rth@redhat.com>
34503
34504 * config/vax/vax.h (ASM_OUTPUT_MI_THUNK): Remove. Really.
34505 * config/vax/vax-protos.h: Update. Really.
34506
345072003-01-28 Alexandre Oliva <aoliva@redhat.com>
34508
34509 * config/mips/mips.h (UNITS_PER_HWFPVALUE): Renamed from...
34510 (UNITS_PER_FPVALUE): Defined as the width of a long double, or
34511 zero if no hardware floating point.
34512 (LONG_DUBLE_TYPE_SIZE): Set to 128 on N32 and N64.
34513 (MAX_FIXED_MODE_SIZE): Define to LONG_DOUBLE_TYPE_SIZE.
34514 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
34515 (BIGGEST_ALIGNMENT): Same as LONG_DOUBLE_TYPE_SIZE.
34516 (FUNCTION_VALUE_REGNO_P): Set for FP_RETURN+2 on N32 and N64.
34517 * config/mips/mips.c (mips_arg_info): Pass TFmode values in
34518 even FP registers on N32 and N64.
34519 (mips_setup_incoming_varargs): Use UNITS_PER_HWFPVALUE.
34520 (mips_va_start): Adjust alignment of ARG_POINTER_REGNUM.
34521 (mips_va_arg): Use UNITS_PER_HWFPVALUE. Impose additional
34522 even-register-like alignment to 128-bit arguments.
34523 (save_restore_insns): Use UNITS_PER_HWFPVALUE.
34524 (mips_function_value): Likewise. Return TFmode in $f0 and $f2
34525 on N32 or N64.
34526 * config/mips/_tilib.c (__negti2, __ashlti3, __lshrti3): New.
34527 * config/mips/t-iris6 (LIB2FUNCS_EXTRA): Add _tilib.c.
34528 (TPBIT): Set to tp-bit.c.
34529 (tp-bit.c): Create out of fp-bit.c.
34530
345312003-01-28 Gabriel Dos Reis <gdr@integrable-solutions.net>
34532
34533 * c-parse.in: Remove '%expect 32' directive in objc mode.
34534
345352003-01-27 Nathan Sidwell <nathan@codesourcery.com>
34536
34537 * Makefile.in (LIB2FUNCS_ST): Remove _gcov.
34538 (LIBGCOV): New variable.
34539 (libgcc.mk): Add LIBGCOV.
34540 (LIBGCC_DEPS): Add libgcov.c.
34541 (libgcov.a): New target.
34542 (clean): Remove libgcov.a.
34543 (install-libgcc): Do libgcov too.
34544 (stage1-start, stage2-start, stage3-start, stage4-start): Deal
34545 with libgcov.a.
34546 * libgcc2.c (L_gcov): Move into ...
34547 * libgcov.c: ... here. New file.
34548 * mklibgcc.in: Add libgcov rules.
34549 * gcc.c (LINK_COMMAND_SPEC): Add -lgcov when profiling.
34550
34551 * doc/invoke.texi (profile-arcs, test-coverage): Update and
34552 clarify.
34553
34554 * profile.c (index_counts_file): Remove duplicate check for open file.
34555
345562003-01-27 Jerry Quinn <jlquinn@optonline.net>
34557
34558 * gcc/doc/invoke.texi (Optimization Options): Group together
34559 optional and experimental flags. Move trapv and bounds-check
34560 out of this section. Group floating point flags together.
34561 (Code Gen Options): Move trapv and bounds-check to here.
34562
345632003-01-27 Josef Zlomek <zlomekj@suse.cz>
34564
34565 * gcse.c (constprop_register): Check NEXT_INSN (insn) != NULL.
34566
345672003-01-27 Richard Earnshaw <rearnsha@arm.com>
34568
34569 PR optimization/9090
34570 * function.c (purge_addressof_1): After pushing an addressed register
34571 onto the stack, simplify the result.
34572
345732003-01-27 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
34574
34575 * doc/extend.texi: Fix typo.
34576
345772003-01-27 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
34578
34579 * doc/cppopts.texi: Fix typo.
34580 * doc/objc.texi: Likewise.
34581 * doc/passes.texi: Likewise.
34582
345832003-01-27 Alexandre Oliva <aoliva@redhat.com>
34584
34585 * real.c (ibm_extended_format): Add 53 to minimum exponent.
34586 (encode_ibm_extended): Adjust.
34587
345882003-01-26 Gabriel Dos Reis <gdr@soliton.integrable-solutions.net>
34589
34590 * timevar.def (TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION): New
34591 timevar_id enumerations.
34592
345932003-01-26 Kazu Hirata <kazu@cs.umass.edu>
34594
34595 * combine.c: Fix formatting.
34596
345972003-01-26 Kazu Hirata <kazu@cs.umass.edu>
34598
34599 * doc/gccint.texi: Update the copyright.
34600
346012003-01-26 Kazu Hirata <kazu@cs.umass.edu>
34602
34603 * doc/cpp.texi: Fix typos.
34604 * doc/extend.texi: Likewise.
34605 * doc/gty.texi: Likewise.
34606 * doc/install.texi: Likewise.
34607 * doc/passes.texi: Likewise.
34608 * doc/rtl.texi: Likewise.
34609 * doc/tm.texi: Likewise.
34610
346112003-01-26 Kazu Hirata <kazu@cs.umass.edu>
34612
34613 * config/ia64/fde-glibc.c: Fix comment typos.
34614 * config/ia64/hpux.h: Likewise.
34615 * config/ia64/ia64.c: Likewise.
34616 * config/ia64/ia64.h: Likewise.
34617 * config/ia64/unwind-ia64.c: Likewise.
34618
346192003-01-26 Kazu Hirata <kazu@cs.umass.edu>
34620
34621 * config/i386/i386-modes.def: Fix comment typos.
34622 * config/i386/i386.c: Likewise.
34623 * config/i386/i386.md: Likewise.
34624
346252003-01-26 Steven Bosscher <s.bosscher@student.tudelft.nl>
34626
34627 * config/avr/avr.h, config/cris/aout.h, config/elfos.h,
34628 config/i386/freebsd-aout.h, config/mips/iris6.h: Undefine
34629 ASM_FINISH_DECLARE_OBJECT before defining it.
34630 * toplev.c (rest_of_decl_compilation): Don't define
34631 ASM_FINISH_DECLARE_OBJECT. Only use it if it is defined.
34632 (rest_of_type_compilation): Don't ATTRIBUTE_UNUSED function
34633 parameters for DWARF2 targets because they _are_ used.
34634
346352003-01-26 Alexandre Oliva <aoliva@redhat.com>
34636
34637 * fp-bit.h: Define macros for TFmode floating-point constants
34638 in IBM-extended TFmode types.
34639 (TMODES): Define if __LDBL_MANT_DIG__ has the newly-supported
34640 widths.
34641 * config/fp-bit.c (pack_d, unpack_d): Support IBM-extended
34642 TFmode type.
34643
34644 * config/fp-bit.h: Define macros for TFmode floating-point
34645 constants in IEEE quad TFmode type. Declare functions according
34646 to L_ macros.
34647 (TMODES): Define if __LDBL_MANT_DIG__ is 113.
34648 (TFtype, TItype, UTItype): Define if TMODES is defined.
34649 (MAX_UDI_INT, MAX_DI_INT, BITS_PER_DI): Likewise.
34650 (F_T_BITOFF, D_T_BITOFF): Define.
34651 (IMPLICIT_1, IMPLICIT_2): Cast constants to types that are
34652 guaranteed to be wide enough.
34653 * config/fp-bit.c: Check for L_ macros for tf functions.
34654 (__thenan_tf): New.
34655 (nan): Adjust.
34656 (pack_d, unpack_d): Support IEEE 854 quad type.
34657 (_fpmul_parts): Support TFmode. Compute exponent adjustment
34658 from FRAC_NBITS, FRAC_BITS and NGARDS.
34659 (usi_to_float): Cast constants to be shifted to fractype
34660 instead of assuming long long is wide enough.
34661 (sf_to_tf, df_to_tf, __make_tp, tf_to_df, tf_to_sf): New.
34662
346632003-01-26 Andreas Jaeger <aj@suse.de>
34664
34665 * df.c: Remove prototype of unused function df_regno_rtl_debug.
34666
346672003-01-26 Alexandre Oliva <aoliva@redhat.com>
34668
34669 * Makefile.in (FPBIT_FUNCS): Added _sf_to_tf.
34670 (DBBIT_FUNCS): Added _df_to_tf.
34671 (TPBIT_FUNCS): New.
34672 (libgcc.mk): Pass TPBIT and TPBIT_FUNCS down.
34673 (LIBGCC_DEPS): Added TPBIT.
34674 * mklibgcc.in: Support TPBIT and TPBIT_FUNCS.
34675
34676 * optabs.c (expand_binop) <add, sub>: Return xtarget if we haven't
34677 been able to move the result to target.
34678
34679 * expr.c (emit_group_store): Initialize dst with CONST0_RTX
34680 for the appropriate mode.
34681
34682 * calls.c (emit_library_call_value_1): Handle return values
34683 in a PARALLEL.
34684
34685 * rtl.c (get_mode_alignment): Moved to...
34686 * stor-layout.c: ... here.
34687
34688 * print-rtl.c (print_rtx): Don't print MEM details in
34689 GENERATOR_FILEs.
34690
346912003-01-26 Michael Hayes <mph@paradise.net.nz>
34692
34693 * df.h: Update comments, tidy formatting.
34694 (DF_FORWARD, DF_REVERSE, DF_UNION, DF_INTERSECTION): Rename from FORWARD,
34695 REVERSE, UNION, INTERSECTION. All uses updated.
34696 (OLD_DF_INTERFACE): Remove.
34697 (struct insn_info): Remove commented out insn field.
34698 * df.c: Update comments, tidy formatting.
34699 (df_def_table_realloc): Remove.
34700
34701
347022003-01-26 Alan Modra <amodra@bigpond.net.au>
34703
34704 * calls.c (save_fixed_argument_area): Tidy.
34705 (restore_fixed_argument_area): Tidy. Set alignment of stack_area.
34706 (expand_call): Comment typo fixes. Don't init low_to_save. Start
34707 call chain loop at 1 if !try_tail_call. Formatting.
34708 (emit_library_call_value_1): Don't init low_to_save or high_to_save.
34709 Use save_fixed_argument_area and restore_fixed_argument_area.
34710
347112003-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
34712
34713 * df.c (df_uses_record): Handle CC0.
34714
347152003-01-25 Ulrich Weigand <uweigand@de.ibm.com>
34716
34717 * reload.c (maybe_memory_address_p): New function.
34718 (find_reloads_address): Use it instead of memory_address_p.
34719
347202003-01-25 Kaz Kojima <kkojima@gcc.gnu.org>
34721
34722 * final.c (shorten_branches): Align the address of code label
34723 when computing initial lengths and addresses.
34724
347252003-01-25 Kazu Hirata <kazu@cs.umass.edu>
34726
34727 * config/m68hc11/m68hc11.md: Fix a comment typo.
34728
347292003-01-25 Andreas Jaeger <aj@suse.de>
34730
34731 * config/i386/i386.c (x86_output_mi_thunk): Correct test for
34732 TARGET_MACHO.
34733
347342003-01-25 Roger Sayle <roger@eyesopen.com>
34735
34736 * gcse.c (bypass_last_basic_block): New global variable.
34737 (bypass_block): Use redirect_edge_and_branch_force to redirect
34738 fall-through edges. Use bypass_last_basic_block to determine
34739 which blocks have valid PRE information.
34740 (bypass_conditional_jumps): Initialize bypass_last_basic_block.
34741
347422003-01-25 Jan Hubicka <jh@suse.cz>
34743
34744 * gcse.c (local_cprop_pass): Update reg_sets table when needed.
34745
347462003-01-25 Jan Hubicka <jh@suse.cz>
34747 Eric Botcazou <ebotcazou@libertysurf.fr>
34748
34749 PR opt/8492
34750 * gcse.c (one_cprop_pass): Delete unreachable blocks.
34751
347522003-01-25 Richard Henderson <rth@redhat.com>
34753
34754 * config/ia64/ia64.c (ia64_rwreloc_select_rtx_section): Rename
34755 from ia64_aix_select_rtx_section.
34756 (ia64_rwreloc_select_section): Simlarly; use default*_1 function
34757 instead of saving and restoring flag_pic.
34758 (ia64_rwreloc_unique_section): Similarly.
34759 * config/ia64/aix.h (TARGET_ASM_SELECT_SECTION,
34760 TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): Update.
34761 * config/ia64/hpux.h (TARGET_ASM_SELECT_SECTION,
34762 TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): New.
34763
347642003-01-25 Kazu Hirata <kazu@cs.umass.edu>
34765
34766 * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Update a
34767 comment.
34768
347692003-01-25 Richard Henderson <rth@redhat.com>
34770
34771 * config/m68k/m68k-none.h (ASM_SPEC): Adjust inter-option spacing.
34772
347732003-01-25 Kelley Cook <kelleycook@comcast.net>
34774
34775 * ggc-simple.c (debug_ggc_tree): Add PTR cast.
34776
347772003-01-25 Segher Boessenkool <segher@koffie.nl>
34778
34779 * bitmap.h (BITMAP_WORD): New typedef: fundamental storage
34780 type for bitmaps. Use unsigned long.
34781 (nBITMAP_WORD_BITS): New macro.
34782 (BITMAP_WORD_BITS): New macro.
34783 (rest of file): Use it.
34784 * bitmap.c: Use it.
34785
347862003-01-25 Richard Henderson <rth@redhat.com>
34787
34788 2002-02-19 Robert Lipe <robertlipe@usa.net>
34789 * config/i386/t-sco5gas: (CRTSTUFF_T_CFLAGS_S): Delete -mcoff.
34790
347912003-01-25 Roger Sayle <roger@eyesopen.com>
34792
34793 * builtins.c (purge_builtin_constant_p): Scan insn stream
34794 sequentially rather than by basic block.
34795 * function.c (purge_addressof): Simplify test with INSN_P.
34796
347972003-01-25 Kazu Hirata <kazu@cs.umass.edu>
34798
34799 * combine.c (simplify_comparison, case AND): Remove a redundant test.
34800
348012003-01-25 Roger Sayle <roger@eyesopen.com>
34802
34803 * function.h (struct function): New field calls_constant_p.
34804 (current_function_calls_constant_p): New macro for above.
34805 * function.c (prepare_function_start): Initialize calls_eh_return
34806 and calls_constant_p.
34807 * builtins.c (expand_builtin_constant_p): Set calls_constant_p.
34808 * toplev.c (rest_of_compilation): Only call purge_builtin_constant_p
34809 when the current_function_calls_constant_p.
34810 * integrate.c (expand_inline_function): Set calls_constant_p if
34811 the function being inlined has calls_constant_p set.
34812
348132003-01-25 Roger Sayle <roger@eyesopen.com>
34814
34815 * cse.c (fold_rtx): Instantiate CONSTANT_P_RTX to 0 when not
34816 optimizing, even if flag_gcse is true.
34817 * toplev.c (rest_of_compilation): purge_builtin_constant_p
34818 only needs to be called when "optimize > 0 && flag_gcse".
34819
348202003-01-25 Roger Sayle <roger@eyesopen.com>
34821
34822 * stmt.c (emit_case_bit_tests): New routine to implement suitable
34823 switch statements using the equivalent of "if ((1<<x) & cst) ... ".
34824 (case_bit_test_cmp): New comparison function for "qsort" to order
34825 case_bit_tests by decreasing number of destination nodes.
34826 (lshift_cheap_p): New function to determine if "1 << x" is cheap.
34827 (expand_end_case_type): Use emit_case_bit_tests to implement
34828 suitable switch statments.
34829 (CASE_USE_BIT_TESTS): New target macro to disable the above.
34830 * Makefile.in (stmt.o): Add dependency on optab.h.
34831 * doc/tm.texi (CASE_USE_BIT_TESTS): Document new target macro.
34832
348332003-01-23 Andreas Schwab <schwab@suse.de>
34834
34835 * config/ia64/crtend.asm [HAVE_INITFINI_ARRAY]: Make
34836 __do_global_ctors_aux hidden global and don't put it in
34837 .init_array.
34838 * config/ia64/crtbegin.asm [HAVE_INITFINI_ARRAY]: Put it here
34839 instead so that it comes first.
34840
348412003-01-25 Jan Hubicka <jh@suse.cz>
34842
34843 * df.c (read_modify_subreg_p): When osize == UNITS_PER_WORD,
34844 subreg is read/modify.
34845
348462003-01-25 Jan Hubicka <jh@suse.cz>
34847
34848 * i386.c (ix86_expand_movstr, ix86_expand_clrstr): Consistently
34849 do libcall for large blocks.
34850 * i386.md (comi patterns): Set type to ssecomi.
34851 (sse2_unpck?pd): Fix mode of vec_select.
34852
34853 * cse.c: Include except.h
34854 (cse_set_around_loop): Do not create new basic blocks.
34855 * Makefile.in (cse.o): Add dependnecy on except.h
34856
348572003-01-25 Jan Hubicka <jh@suse.cz>
34858
34859 * builtins.c (fold_trunc_transparent_mathfn): New function.
34860 (fold_builtin): Use it.
34861 * convert.c (convert_to_real): Re-enable code to convert
34862 math functions; add support for floor familly functions.
34863
348642003-01-25 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
34865
34866 * Makefile.in (cfgloop.o, cfgloopanal.o, cfgloopmanip.o): Add
34867 dependencies on coretypes.h and $(TM_H).
34868
348692003-01-25 Jan Hubicka <jh@suse.cz>
34870
34871 * builtins.c (fold_trunc_transparent_mathfn): Undo accidental commit.
34872
348732003-01-24 Stuart Hastings <stuart@apple.com>
34874
34875 * config/i386/i386.c (x86_output_mi_thunk): Add Darwin/x86 support.
34876
348772003-01-25 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
34878
34879 * config/c4x/c4x.md (UNSPEC_BU): New constants.
34880 (UNSPEC_RPTS, UNSPEC_LSH, UNSPEC_CMPHI, UNSPEC_RCPF): Likewise.
34881 (UNSPEC_RND, UNSPEC_RPTB_FILL, UNSPEC_LOADHF_INT): Likewise.
34882 (UNSPEC_STOREHF_INT, UNSPEC_RSQRF, UNSPEC_LOADQF_INT): Likewise.
34883 (UNSPEC_STOREQF_INT, UNSPEC_LDIV, UNSPEC_PUSH_ST): Likewise.
34884 (UNSPEC_POP_ST, UNSPEC_PUSH_DP, UNSPEC_POP_DP): Likewise.
34885 (UNSPEC_POPQI, UNSPEC_POPQF, UNSPEC_ANDN_ST): Likewise.
34886 (UNSPEC_RPTB_INIT, UNSPEC_TOIEEE, UNSPEC_FRIEEE): Likewise.
34887
348882003-01-24 Jan Hubicka <jh@suse.cz>
34889
34890 * emit-rtl.c (reg_attrs_htab): New static variable.
34891 (reg_attrs_htab_hash, reg_attrs_htab_eq, get_reg_attrs): New static
34892 functions.
34893 (reg_rtx): Do not maintain regno_decl.
34894 (gen_rtx_REG_offset, set_reg_attrs_from_mem, set_delc_rtx,
34895 set_mem_attrs_from_reg): New global function.
34896 (init_emit): Do not initialize regno_decl.
34897 (init_emit_once): initialize reg_attrs_htab.
34898 * final.c (alter_subreg): Do not replace REG by SUBREG.
34899 (gen_mem_expr_from_op): Improve output.
34900 (output_asm_operands): Likewise.
34901 * function.c (assign_params): Do not set REGNO_DECL.
34902 * function.h (struct function): Kill regno_decl.
34903 (REGNO_DECL): Kill.
34904 * gengtype.c (adjust_field_rtx_def): Handle new field of reg.
34905 * print_rtl.c (print_rtx): Output REG information.
34906 * regclass.c (reg_scan_mark_refs): Update attrs.
34907 * reload1.c (alter_reg): Likewise.
34908 * simplify_rtx.c (simplify_subreg): Likewise.
34909 * stmt.c (expand_decl): Likewise.
34910 * rtl.def (REG): Add new field.
34911 * rtl.h (struct reg_attrs): New.
34912 (rtunion_def): At rtreg.
34913 (X0MEMATTR): Add checking.
34914 (X0REGATTR, REG_ATTRS, REG_EXPR, REG_OFFSET): New macro.
34915 (set_reg_attrs_from_mem, set_mem_attrs_from_reg, gen_rtx_REG_offset):
34916 Declare.
34917 * tree.h (SET_DECL_RTL): Call set_decl_rtl.
34918
349192003-01-24 Bob Wilson <bob.wilson@acm.org>
34920
34921 * config/xtensa/xtensa.c: Remove unused include of machmode.h.
34922 (xtensa_emit_call, print_operand): Fix printf format strings
34923 to avoid compile warnings.
34924 (xtensa_function_prologue, xtensa_function_epilogue): Change type
34925 of "size" argument to HOST_WIDE_INT to fix compile warnings.
34926 * config/xtensa/xtensa-protos.h
34927 (xtensa_function_prologue, xtensa_function_epilogue): Ditto.
34928
349292003-01-24 Jan Hubicka <jh@suse.cz>
34930
34931 * builtins.c (DEF_BUILTIN): Accept 10 arguments.
34932 (implicit_built_in_decls): New global array.
34933 (mathfn_built_in): New global function.
34934 (fold_trunc_transparent_mathfn): New static function
34935 (expand_builtin_strstr, expand_bultin_strchr,
34936 expand_builtin_strpbrk, expand_builtin_strcpy,
34937 expand_builtin_strncpy, expand_bultin_strcmp,
34938 expand_bultin_strncat, expand_builtin_fputs): Use
34939 implicint_built_in_decls.
34940 (fold_builtin): Fold floor/trunc/round/ceil/nearbyint.
34941 * builtins.def: Fix comments.
34942 (DEF_GCC_BUILTIN, DEF_FALLBACK_BUILTIN, DEF_EXT_FALLBACK_BUILTIN,
34943 DEF_LIB_BUILTIN, DEF_LIB_ALWAYS_BUILTIN, DEF_EXT_LIB_BUILTIN,
34944 DEF_C99_BULTIN, DEF_FRONT_END_LIB_BUILTIN,
34945 DEF_EXT_FRONT_END_LIB_BUILTIN): Pass implicit as needed.
34946 (DEF_C99_C90RES_BULTIN): New.
34947 (*f, *l builtins): Update.
34948 * c-common.c (DEF_BUILTIN): Initialize implicit array.
34949 (c_expand_builtin_printf, c_expand_builtin_fprintf): Update.
34950 * convert.c (strip_float_extensions): New global function.
34951 * tree.h (DEF_BUILTIN): Accept 10 arguments.
34952 (implicit_built_in_decls, mathfn_built_in, strip_float_extension):
34953 Declare.
34954 * java/builtins.c (define_builtin): Handle implicit.
34955 (DEF_BUILTIN): Update.
34956 * tm.texi (TARGET_C99_FUNCTIONS): Document.
34957 * defaults.h (TARGET_C99_FUNCTIONS): Default to 0.
34958 * config/linux.h (TARGET_C99_FUNCTIONS): Default to 1
34959 when using glibc2.
34960
349612003-01-24 Bob Wilson <bob.wilson@acm.org>
34962
34963 * config.gcc (xtensa-*-elf*): Removed assignments to with_newlib,
34964 extra_parts, and fixincludes. Add xtensa/t-elf tmake_file.
34965 (xtensa-*-linux*): Add xtensa/t-linux tmake_file.
34966 * config/xtensa/crti.asm: New file.
34967 * config/xtensa/crtn.asm: New file.
34968 * config/xtensa/t-elf: New file.
34969 * config/xtensa/t-linux: New file.
34970 * config/xtensa/t-xtensa: Add rules for crti.o and crtn.o.
34971 Move various CFLAGS settings to new t-elf file.
34972
349732003-01-24 Richard Henderson <rth@redhat.com>
34974
34975 PR optimization/4382
34976 * tree-inline.c (find_builtin_longjmp_call_1): New.
34977 (find_builtin_longjmp_call): New.
34978 (inlinable_function_p): Use it.
34979
349802003-01-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
34981
34982 * config/i386/i386-protos.h (function_arg_pass_by_reference): Declare.
34983 * config/i386/i386.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use it.
34984 * config/i386/i386.c (function_arg_pass_by_reference): New.
34985 (ix86_va_arg): Support arguments passed by reference.
34986
349872003-01-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
34988
34989 * cfgloopanal.c: New file.
34990 * cfgloopmanip.c: New file.
34991 * Makefile.in (cfgloopanal.o, cfgloopmanip.o): New.
34992 (toplev.o, loop.o, doloop.o, unroll.o, cfgloop.o, predict.o,
34993 cfglayout.o): Add dependency on cfgloop.h.
34994 (cfgloop.o): Add flags.h dependency.
34995 * basic-block.h (BB_IRREDUCIBLE_LOOP, BB_SUPERBLOCK): New flags.
34996 (VLS_EXPECT_PREHEADERS, VLS_EXPECT_SIMPLE_LATCHES): Removed.
34997 (struct loop, struct loops, flow_loops_find, flow_loops_update,
34998 flow_loops_free, flow_loops_dump, flow_loop_dump,
34999 flow_loop_scan, flow_loop_tree_node_add, flow_loop_tree_node_remove,
35000 LOOP_TREE,,LOOP_PRE_HEADER, LOOP_ENTRY_EDGES, LOOP_EXIT_EDGES,
35001 LOOP_ALL, flow_loop_outside_edge_p, flow_loop_nested_p,
35002 flow_bb_inside_loop_p, get_loop_body, loop_preheader_edge,
35003 loop_latch_edge, add_bb_to_loop, remove_bb_from_loops,
35004 find_common_loop, verify_loop_structure): Declarations moved to ...
35005 * cfgloop.h: New file.
35006 * bb-reorder.c (reorder_basic_blocks): Modified.
35007 * cfglayout.c: Include cfgloop.h.
35008 (cleanup_unconditional_jumps, cfg_layout_redirect_edge,
35009 cfg_layout_duplicate_bb, cfg_layout_initialize): Update loop structure.
35010 (break_superblocks): New static function.
35011 (cfg_layout_finalize): Use it.
35012 (cfg_layout_split_block): New function.
35013 * cfglayout.h (struct reorder_block_def): Add copy and duplicated
35014 fields.
35015 (cfg_layout_initialize, cfg_layout_redirect_edge): Declaration
35016 changed.
35017 (cfg_layout_split_block): Declare.
35018 * cfgloop.c: Include cfgloop.h and flags.h.
35019 (flow_loop_dump, flow_loops_free, flow_loop_exit_edges_find,
35020 get_loop_body): Avoid signed versus unsigned comparison warnings.
35021 (make_forwarder_block, flow_loops_find, loop_preheader_edge,
35022 loop_latch_edge): Modified.
35023 (verify_loop_structure): Modified to use flags stored in loop structure;
35024 check irreducible loops.
35025 (cancel_loop, cancel_loop_tree): New functions.
35026 (estimate_probability): Use loop analysis code for predictions.
35027 (estimate_loops_at_level): Avoid signed versus unsigned comparison
35028 warnings.
35029 * doloop.c: Include cfgloop.h.
35030 * loop.c: Include cfgloop.h.
35031 * predict.c: Include cfgloop.h.
35032 * toplev.c: Include cfgloop.h.
35033 * unroll.c: Include cfgloop.h.
35034 * tracer.c (tracer): Modified.
35035
350362003-01-24 Kazu Hirata <kazu@cs.umass.edu>
35037
35038 * config/h8300/h8300.c (get_shift_alg): Fix a typo.
35039
350402003-01-24 Ulrich Weigand <uweigand@de.ibm.com>
35041
35042 * configure.in (HAVE_AS_TLS): Add s390-*-* and s390x-*-* cases.
35043 * configure: Regenerate.
35044
35045 * config/s390/s390-protos.h (tls_symbolic_operand): Add prototype.
35046 (tls_symbolic_reference_mentioned_p): Add prototype.
35047 (s390_tls_get_offset): Add prototype.
35048 (emit_pic_move): Remove prototype, replace by ...
35049 (emit_symbolic_move): .. this new prototype.
35050
35051 * config/s390/s390.c (TARGET_HAVE_TLS): Conditionally define.
35052 (tls_model_chars): New global variable.
35053 (s390_encode_section_info): Encode TLS model.
35054 Use targetm.binds_local_p to check for local symbols.
35055 (s390_strip_name_encoding): New function.
35056 (TARGET_STRIP_NAME_ENCODING): Define.
35057
35058 (get_thread_pointer): New function.
35059 (legitimize_tls_address): New function.
35060 (legitimize_address): Call it.
35061 (emit_pic_move): Remove, replace by ...
35062 (emit_symbolic_move): ... this new function.
35063
35064 (larl_operand): Handle TLS operands.
35065 (legitimate_constant_p): Likewise.
35066 (s390_decompose_address): Likewise.
35067 (s390_cannot_force_const_mem): New function.
35068 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
35069
35070 (s390_output_symbolic_const): Handle TLS unspecs.
35071 (print_operand): New code 'J'.
35072 (machine_function): Add struct member 'some_ld_name'.
35073 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
35074
35075 (enum s390_builtin): New type.
35076 (code_for_builtin_64, code_for_builtin_31): New global variables.
35077 (s390_init_builtins, s390_expand_builtin): New functions.
35078 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
35079
35080 * config/s390/s390.h (TLS_SYMBOLIC_CONST): New macro.
35081 (ASM_OUTPUT_LABELREF): Define.
35082 (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Handle TLS constants.
35083
35084 * config/s390/s390.md: Define TLS UNSPEC constants.
35085 ("movdi", "movsi"): Handle TLS operands.
35086 ("get_tp_64", "get_tp_31", "set_tp_64", "set_tp_31"): New insns.
35087 ("*tls_load_64", "*tls_load_31"): New insns.
35088 ("call_value_tls", "call_value_tls_exp"): New expanders.
35089 ("brasl_tls", "bras_tls", "basr_tls_64", "basr_tls_31",
35090 "bas_tls_64", "bas_tls_31"): New insns.
35091
350922003-01-24 Nathan Sidwell <nathan@codesourcery.com>
35093
35094 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Make sure
35095 spe ABI is configured, if requested.
35096
350972003-01-24 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
35098
35099 * doc/passes.texi: Fix typo.
35100
351012003-01-24 Andreas Schwab <schwab@suse.de>
35102
35103 * stor-layout.c (excess_unit_span): Only define if used.
35104
351052003-01-24 Jerry Quinn <jlquinn@optonline.net>
35106
35107 * gcc/doc/invoke.texi (Optimization Options): List -O levels
35108 for each optimization flag.
35109
351102003-01-24 Kazu Hirata <kazu@cs.umass.edu>
35111
35112 * config/h8300/h8300.md (*andsi3_ashift_n_lower): New.
35113
351142003-01-24 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
35115
35116 * doc/bugreport.texi: Use @command instead of @code for commands.
35117 * doc/collect2.texi: Likewise.
35118 * doc/headerdirs.texi: Likewise.
35119 * doc/invoke.texi: Likewise.
35120 * doc/standards.texi: Likewise.
35121 * doc/tm.texi: Likewise.
35122 * doc/trouble.texi: Likewise.
35123
351242003-01-24 Nick Clifton <nickc@redhat.com>
35125
35126 * config/arm/arm.c (use_return_insn): Do not use a single return
35127 instruction for interrupt handelrs which have to create a stack
35128 frame.
35129 (arm_expand_prologue): Do not pre-bias the return address of
35130 interrupt handlers which create a stack frame.
35131
351322003-01-24 Nick Clifton <nickc@redhat.com>
35133
35134 * Add sh2e support:
35135
35136 2002-08-12 Alexandre Oliva <aoliva@redhat.com>
35137
35138 * config/sh/sh.c (output_branch) [TARGET_SH2E]: Handle
35139 med_cbranches. Fix logic in short_cbranches.
35140
35141 2002-04-03 Alexandre Oliva <aoliva@redhat.com>
35142
35143 * config/sh/sh.md (delay for cbranch): Don't annul delay
35144 slots on SH2e.
35145 * config/sh/sh.c (sh_insn_length_adjustment): Add 2 for
35146 cbranch with unfilled delay slot on SH2e.
35147 (output_branch): Fill with a nop the delay slot of a
35148 branch that required a delay slot but didn't get one.
35149
35150 2002-04-02 Alexandre Oliva <aoliva@redhat.com>
35151
35152 * doc/invoke.texi (SH options): Document -m2e.
35153 * config/sh/crt1.asm: Add __SH2E__ Next to __SH3E__.
35154 * config/sh/lib1funcs.asm: Likewise.
35155 * config/sh/sh.c: Replace all uses of TARGET_SH3E with SH2E.
35156 * config/sh/sh.h (CPP_SPEC): Define __SH2E__ for -m2e, and
35157 not __sh1__.
35158 (CONDITIONAL_REGISTER_USAGE): Don't disable FP regs from
35159 SH2E up.
35160 (SH3E_BIT): Renamed to...
35161 (SH_E_BIT): ... this. Replace all uses.
35162 (TARGET_SH2E): Define from SH_E_BIT and TARGET_SH2.
35163 Replace all uses of TARGET_SH3E with TARGET_SH2E.
35164 (TARGET_SWITCHES): Added 2e.
35165 (OVERRIDE_OPTIONS): Set sh_cpu for SH2E.
35166 (processor_type): Added PROCESSOR_SH2E.
35167 * config/sh/sh.md: Replace all uses of TARGET_SH3E with
35168 TARGET_SH2E, except in sqrtsf2_i.
35169 (attribute cpu): Added sh2e.
35170 * config/sh/t-sh (MULTILIB_OPTIONS): Replace m3e with m2e.
35171 (MULTILIB_MATCHES): Use m2e multilib for m3e.
35172 * config.gcc: Add sh2e target support.
35173
351742003-01-24 Phil Edwards <pme@gcc.gnu.org>
35175
35176 Rename -W to -Wextra.
35177 * c-decl.c: Update comments.
35178 * c-typeck.c: Likewise.
35179 * flags.h: Likewise.
35180 * function.c: Likewise.
35181 * stmt.c: Likewise.
35182 * toplev.c: Update comments.
35183 (W_options): Add 'extra'.
35184 (display_help): Remove '-W'.
35185 (decode_W_option): Special warn_uninitialized treatment in the case
35186 of -Wextra.
35187 * doc/invoke.texi: Update with new entries.
35188
351892003-01-23 Richard Henderson <rth@redhat.com>
35190
35191 * ifcvt.c (noce_process_if_block): Re-add check vs X being changed
35192 in no-else-block case. Add commentary.
35193
351942003-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
35195
35196 * configure.in: Revert last change.
35197
351982003-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
35199
35200 * configure.in: Don't include ansidecl.h in tconfig.h.
35201 * gcov-io.h (PARAMS, ATTRIBUTE_UNUSED): Define if IN_LIBGCC2.
35202 * unwind-dw2-fde.h (last_fde): Use __attribute__, not
35203 ATTRIBUTE_UNUSED.
35204
35205 * configure: Regenerate.
35206
352072003-01-23 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
35208
35209 PR java/6748
35210 * config/rs6000/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Don't destroy
35211 regs->nip. Fix rt_sigreturn frame layout. Add support for newer
35212 kernels.
35213
352142003-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
35215
35216 * cpplex.c (cpp_interpret_charconst): Squelch warning with cast.
35217
352182003-01-23 Ulrich Weigand <uweigand@de.ibm.com>
35219
35220 * genattrtab.c (write_attr_get): Mark 'insn' paramter
35221 as ATTRIBUTE_UNUSED.
35222
352232003-01-23 Richard Earnshaw <rearnsha@arm.com>
35224
35225 * arm.c (thumb_base_register_rtx_p): New function.
35226 (thumb_index_register_rtx_p): New function.
35227 (thumb_legitimate_address_p): New function.
35228 (thumb_legitimate_offset_p): New function.
35229 * arm.h (REG_STRICT_P): Define according to setting of REG_OK_STRICT.
35230 (ARM_GO_IF_LEGITIMATE_ADDRESS): Use REG_STRICT_P to avoid duplicate
35231 definitions.
35232 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Use thumb_legitimate_address_p.
35233 (THUMB_LEGITIMATE_OFFSET): Delte.
35234 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use thumb_legitimate_offset.
35235 * arm-protos.h (thumb_legitimate_address_p): Add prototype.
35236 (thumb_legitimate_offset_p): Likewise.
35237
352382003-01-23 Andreas Schwab <schwab@suse.de>
35239
35240 * unwind.h (_Unwind_GetTextRelBase): Mark parameter as unused.
35241
352422003-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
35243
35244 * fixinc/Makefile.in (FL_LIST): Revert last change.
35245
352462003-01-23 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
35247
35248 PR other/7341
35249 * invoke.texi (ftest-coverage): Fix broken cross-reference.
35250 Change @code to @command for gcov command.
35251
35252 * gcc.texi: Adjust title of gcov section.
35253 Adjust copyright.
35254 * gcov.texi: Likewise.
35255
352562003-01-22 Roger Sayle <roger@eyesopen.com>
35257
35258 PR optimization/8423
35259 * cse.c (fold_rtx): Only eliminate a CONSTANT_P_RTX to 1 when
35260 its argument is constant, or 0 if !flag_gcse.
35261 * simplify-rtx.c (simplify_rtx): Convert CONSTANT_P_RTX to 1
35262 if it's argument is constant.
35263 * gcse.c (want_to_gcse_p): Ignore CONSTANT_P_RTX nodes.
35264 (hash_scan_set): Don't record CONSTANT_P_RTX expressions.
35265 (do_local_cprop): Don't propagate CONSTANT_P_RTX constants.
35266 * builtins.c (purge_builtin_constant_p): New function to force
35267 instantiation of any remaining CONSTANT_P_RTX nodes.
35268 * rtl.h (purge_builtin_constant_p): Prototype here.
35269 * toplev.c (rest_of_compilation): Invoke purge_builtin_constant_p
35270 pass after GCSE and before loop.
35271 (flag_gcse): No longer static.
35272 * flags.h (flag_gcse): Prototype here.
35273
352742003-01-22 Ulrich Weigand <uweigand@de.ibm.com>
35275
35276 * config/s390/s390.h (HARD_REGNO_MODE_OK): Fix warning regression
35277 introduced by last change.
35278
352792003-01-22 Andreas Schwab <schwab@suse.de>
35280
35281 * ra-rewrite.c (rewrite_program2): Initialize bb to avoid warning.
35282
352832003-01-22 Kazu Hirata <kazu@cs.umass.edu>
35284
35285 * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Don't
35286 request a scratch reg on H8S when the shift count is 8.
35287
352882003-01-22 Ulrich Weigand <uweigand@de.ibm.com>
35289
35290 * config/s390/s390-protos.h (preferred_la_operand_p):
35291 Remove second parameter.
35292 * config/s390/s390.c (preferred_la_operand_p): Likewise.
35293 * config/s390/s390.h (FRAME_REGNO_P, FRAME_REG_P): New macros.
35294 (HARD_REGNO_MODE_OK): Use FRAME_REGNO_P.
35295 * config/s390/s390.md ("*la_cc_64", "*la_cc_31", splitters): Remove.
35296 Add peepholes to transform ADD to LOAD ADDRESS.
35297
352982003-01-22 Richard Earnshaw <rearnsha@arm.com>
35299
35300 * arm.c (arm_address_register_rtx_p): New function.
35301 (arm_legitimate_address_p): New function.
35302 (arm_legitimate_index_p): New function.
35303 (legitimize_pic_address): Use arm_legitimate_index_p.
35304 * arm-protos.h (arm_legtimate_address_p): Add prototype.
35305 * arm.h (ARM_GO_IF_LEGITIMATE_INDEX): Delete.
35306 (ARM_GO_IF_LEGITIMATE_ADDRESS): Call arm_legitimate_address_p.
35307
353082003-01-22 Hartmut Penner <hpenner@de.ibm.com>
35309
35310 * config/s390/s390.md (floatdfdi2): Insn has type 'itof'.
35311 * config/s390/2064.md (define_bypass): Correct 'Load' and
35312 'Load-address' bypass values.
35313
353142003-01-22 Andreas Schwab <schwab@suse.de>
35315
35316 * config/ia64/t-ia64 (insn-attrtab.o-warn): Define as -Wno-error.
35317
353182003-01-21 Zack Weinberg <zack@codesourcery.com>
35319
35320 * genautomata.c (output_internal_insn_latency_func,
35321 output_print_reservation_func): Short circuit when there is no
35322 automaton to generate code for.
35323
353242003-01-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
35325
35326 * Makefile.in (ssa-ccp.o): Depend on coretypes.h $(TM_H).
35327 (df.o): Delete duplicate dependency on coretypes.h $(TM_H).
35328
353292003-01-21 Geoffrey Keating <geoffk@apple.com>
35330
35331 * config/rs6000/rs6000.md: Remove warning.
35332 (builtin_setjmp_receiver): Likewise.
35333 * config/darwin.c (update_stubs): Slightly improve terrible hack
35334 with identifiers. Add comment pointing out problems with it.
35335 (update_non_lazy_ptrs): Likewise.
35336
353372003-01-21 Richard Henderson <rth@redhat.com>
35338
35339 * dwarf2out.c (lookup_filename): Fix printf format warning.
35340 * system.h (fread_unlocked, fwrite_unlocked): Undef.
35341
35342 * fixinc/Makefile.in (FL_LIST): Add $($@-warn) hook.
35343 (fixincl.o-warn, gnu-regex.o-warn): New.
35344 * fixinc/fixfixes.c (FIX_PROC_HEAD): Mark parameters unused.
35345 * fixinc/fixtests.c (TEST_FOR_FIX_PROC_HEAD): Likewise.
35346 * fixinc/fixincl.c (process): Fix printf format warning.
35347
353482003-01-21 Ulrich Weigand <uweigand@de.ibm.com>
35349
35350 * dwarf2out (output_file_names): Don't crash if called
35351 with empty file_table.
35352
353532003-01-21 Zack Weinberg <zack@codesourcery.com>
35354
35355 * genautomata.c (output_internal_insn_latency_func): Add
35356 missing break statement to generated code.
35357
353582003-01-21 Roger Sayle <roger@eyesopen.com>
35359
35360 * stmt.c (same_case_target_p): New function to determine whether
35361 two case labels branch to the same target. Split out from...
35362 (group_case_nodes): ... here. Use same_case_target_p instead.
35363 (strip_default_case_nodes): Remove explicit case nodes
35364 that branch to the default destination.
35365 (expand_end_case_type): Call strip_default_case_nodes after
35366 group_case_nodes, to simplify the case-list before we count it.
35367 Only generate table_label RTX when actually needed. Try to share
35368 thiscase->exit_label and thiscase->data.case_stmt.default_label
35369 when a switch has no explicit default case. Simplify test for
35370 constant index.
35371
353722003-01-21 Kazu Hirata <kazu@cs.umass.edu>
35373
35374 * config/h8300/h8300.md (*negsf2_h8300): Use \\t instead of
35375 \t.
35376 (*negsf2_h8300hs): Likewise.
35377 (*addsi3_lshiftrt_16_zexthi): Likewise.
35378 (*iorhi3_lshiftrt_8): Likewise.
35379
353802003-01-21 Ulrich Weigand <uweigand@de.ibm.com>
35381
35382 * dwarf2out.c (fde_table_in_use): Mark GTY.
35383 (dwarf2out_cfi_label_num): New variable, marked GTY.
35384 (dwarf2out_cfi_label): Use it instead of static label_num.
35385 * emit-rtl.c (label_num): Mark GTY.
35386
353872003-01-21 Kazu Hirata <kazu@cs.umass.edu>
35388
35389 * config/h8300/h8300.c (output_plussi): Support H8/300.
35390 (compute_plussi_length): Likewise.
35391 (compute_plussi_cc): Likewise.
35392 * config/h8300/h8300.md (addsi_h8300): Use output_plussi to
35393 output assembly instructions.
35394
353952003-01-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
35396
35397 * calls.c (fix_unsafe_tree): Prototype.
35398
35399 * Makefile.in (GCC_WARN_CFLAGS): Add $(WERROR) $($@-warn)
35400 (gtype-desc.o-warn, c-decl.o-warn, varasm.o-warn, gcc.o-warn,
35401 insn-conditions.o-warn, out_object_file, gengtype-yacc.o-warn,
35402 c-parse.o-warn): Add -Wno-error.
35403 (STAGE2_FLAGS_TO_PASS): Add WERROR="@WERROR@".
35404
35405 * configure.in (--enable-werror): Add new flag.
35406 * doc/install.texi (--enable-werror): Document.
35407 * configure: Regenerate.
35408
35409 * objc/Make-lang.in (objc/objc-parse.o-warn): Add -Wno-error.
35410
354112003-01-21 Andreas Schwab <schwab@suse.de>
35412
35413 * genautomata.c (output_internal_insn_latency_func): Fix missing
35414 close paren in output.
35415
354162003-01-21 Zack Weinberg <zack@codesourcery.com>
35417
35418 * genautomata.c: Space savings in generated code:
35419 (output_dfa_insn_code_func): Split out the table-enlargement
35420 path to an out-of-line static function, dfa_insn_code_enlarge.
35421 (output_internal_insn_latency_func): Use a lookup table for the
35422 default latencies.
35423 (output_print_reservation_func): Use a lookup table for the
35424 strings.
35425
354262003-01-21 Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
35427
35428 PR opt/7507
35429 * calls.c (fix_unsafe_tree): Split out from ...
35430 (expand_call): ... here. Use it on the function address too.
35431
354322003-01-20 Richard Henderson <rth@redhat.com>
35433
35434 * expr.h (default_must_pass_in_stack): Move decl outside ifdef.
35435
354362003-01-20 Richard Henderson <rth@redhat.com>
35437
35438 PR opt/7154
35439 * stmt.c (expand_asm_operands): Validize memory operands.
35440
354412003-01-20 Richard Henderson <rth@redhat.com>
35442
35443 PR opt/8848
35444 * ifcvt.c (noce_process_if_block): Correct arguments to
35445 modified_between_p for no-else-block case.
35446
354472003-01-20 Kazu Hirata <kazu@cs.umass.edu>
35448
35449 * config/h8300/h8300.c (const_costs): Remove a warning.
35450 (output_plussi): Likewise.
35451 (compute_plussi_length): Likewise.
35452 (compute_plussi_cc): Likewise.
35453
354542003-01-20 Kazu Hirata <kazu@cs.umass.edu>
35455
35456 * config/h8300/h8300.md (addsi_h8300): Remove the last
35457 alternative.
35458
354592003-01-20 Kazu Hirata <kazu@cs.umass.edu>
35460
35461 * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
35462
354632003-01-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
35464
35465 * system.h (__NO_STRING_INLINES): Define.
35466
354672003-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
35468
35469 * ifcvt.c (noce_emit_store_flag): Don't emit store flag if mode of x
35470 is not a scalar int mode.
35471
354722003-01-20 Roger Sayle <roger@eyesopen.com>
35473
35474 * cse.c (cse_insn): Avoid RTL sharing when updating the RETVAL
35475 insn's notes following a substitution inside a libcall.
35476
354772003-01-20 Zack Weinberg <zack@codesourcery.com>
35478
35479 * configure.in: Check for system-provided 'uchar' type.
35480 * configure, config.in: Regenerate.
35481 * cpphash.h: Only typedef 'uchar' if the system doesn't.
35482
354832003-01-20 Richard Henderson <rth@redhat.com>
35484
35485 * expr.h (MUST_PASS_IN_STACK): Move implementation...
35486 * calls.c (default_must_pass_in_stack): ... here.
35487
354882003-01-20 Vladimir Makarov <vmakarov@redhat.com>
35489
35490 * genattrtab.h (INSN_ALTS_FUNC_NAME): Move it from genautomata.c.
35491
35492 * genautomata.c (INSN_ALTS_FUNC_NAME): Move it into genattrtab.h.
35493
35494 * genattr.c (main): Output default definition of AUTOMATON_ALTS.
35495 Wrap up definition of `insn_alts'.
35496
35497 * genattrtab.c (main): Wrap up `insn_alts'.
35498
354992003-01-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
35500
35501 * collect2.c (ldgetname): Check HAVE_DECL_LDGETNAME before
35502 prototyping.
35503 * configure.in: Check for <ldfcn.h> and ldgetname() prototype.
35504
35505 * config.in, configure: Regenerate.
35506
355072003-01-20 Nick Clifton <nickc@redhat.com>
35508
35509 * config/arm/arm.md (sibcall_epilogue): Add an
35510 UNSPEC_PROLOGUE_USE to prevent the link register from being
35511 considered dead.
35512
355132003-01-20 Jan Hubicka <jh@suse.cz>
35514
35515 * i386.md (SSE cmov splitter): Handle memory operand in operand 5.
35516
355172003-01-20 Andreas Schwab <schwab@suse.de>
35518
35519 * system.h: Don't declare strsignal if the decl test hasn't been
35520 run yet.
35521
355222003-01-20 Kazu Hirata <kazu@cs.umass.edu>
35523
35524 * config/h8300/h8300.c (notice_update_cc): Don't assume that
35525 recog_data.operands[0] is always associated with cc0.
35526
355272003-01-19 David Edelsohn <edelsohn@gnu.org>
35528
35529 * collect2.c (ldgetname): Expand declaration to prototype.
35530 * read-rtl.c (atoll): Add prototype.
35531 * system.h (strsignal): Also declare if no declaration found.
35532
355332003-01-19 Alexandre Oliva <aoliva@redhat.com>
35534
35535 * config.gcc (mips64*-*-linux*): Added.
35536 * config/mips/linux64.h, config/mips/t-linux64: New file.
35537 * config/mips/iris6.h (MIPS_TFMODE_FORMAT): Define.
35538 * config/mips/mips.c (override_options): Use it.
35539 * config/mips/mips.h (TARGET_SWITCHES): Added...
35540 (SUBTARGET_TARGET_SWITCHES): New, empty by default.
35541 * Makefile.in (SPECS): New.
35542 (STAGESTUFF, specs, mostlyclean, install-common): Use it.
35543 * gcc.c (process_command): Move self-spec processing past spec
35544 file loading.
35545 * doc/tm.texi (DRIVER_SELF_SPECS): Document the change.
35546 * doc/fragments.texi (MULTILIB_EXTRA_OPTS): Document need for
35547 CRTSTUFF_T_CFLAGS.
35548 (SPECS): Document.
35549 * doc/invoke.texi (-mabi-fake-default): Document.
35550
355512003-01-19 Stephane Carrez <stcarrez@nerim.fr>
35552
35553 * config/m68hc11/m68hc11.c (stack_push_word, stack_pop_word,
35554 z_reg, z_reg_qi): Declare static and GTY().
35555 (da_reg): Remove.
35556 (create_regs_rtx): Don't create da_reg.
35557 ("gt-m68hc11.h"): Include for GTY roots.
35558 * config/m68hc11/m68hc11.h (ix_reg, iy_reg, d_reg): Declare extern
35559 and GTY() here.
35560 (m68hc11_compare_op0, m68hc11_compare_op1): Likewise.
35561 (m68hc11_soft_tmp_reg): Likewise.
35562 * config/m68hc11/m68hc11-protos.h: Remove above declarations.
35563
355642003-01-18 Kazu Hirata <kazu@cs.umass.edu>
35565
35566 * basic-block.h: Fix comment formatting.
35567 * calls.c: Likewise.
35568 * combine.c: Likewise.
35569 * convert.c: Likewise.
35570 * gcov.c: Likewise.
35571 * haifa-sched.c: Likewise.
35572 * libgcc2.c: Likewise.
35573 * loop.c: Likewise.
35574 * profile.c: Likewise.
35575 * system.h: Likewise.
35576
355772003-01-18 Roger Sayle <roger@eyesopen.com>
35578
35579 * config/pa/pa.md (muldi3): Avoid invalid sharing of SUBREG RTXs.
35580
355812003-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
35582
35583 * ra-build.c (undef_to_size_word): Avoid `switch' warning.
35584
355852003-01-17 Dale Johannesen <dalej@apple.com>
35586
35587 * config/rs6000/rs6000.md (*floatsidf2_internal): Add earlyclobbers.
35588 (*floatunssidf2_internal): Ditto.
35589
355902003-01-17 Kazu Hirata <kazu@cs.umass.edu>
35591
35592 * alias.c: Fix comment typos.
35593 * basic-block.h: Likewise.
35594 * c-common.c: Likewise.
35595 * c-common.h: Likewise.
35596 * c-decl.c: Likewise.
35597 * c-opts.c: Likewise.
35598 * c-pragma.c: Likewise.
35599 * c-pretty-print.h: Likewise.
35600 * cfg.c: Likewise.
35601 * cfganal.c: Likewise.
35602 * cfgbuild.c: Likewise.
35603 * cfgcleanup.c: Likewise.
35604 * cfglayout.c: Likewise.
35605 * cfgrtl.c: Likewise.
35606 * convert.c: Likewise.
35607 * cpphash.h: Likewise.
35608 * cpplex.c: Likewise.
35609 * cpplib.h: Likewise.
35610 * df.h: Likewise.
35611 * diagnostic.c: Likewise.
35612 * diagnostic.h: Likewise.
35613 * dwarf2.h: Likewise.
35614
356152003-01-17 Stan Shebs <shebs@apple.com>
35616
35617 * config/darwin-protos.h: Forward-declare struct cpp_reader.
35618
356192003-01-17 Douglas B Rupp <rupp@gnat.com>
35620
35621 * config/alpha/alpha.c (alpha_need_linkage): Fix obvious
35622 mistake in last checkin.
35623
356242003-01-17 Kazu Hirata <kazu@cs.umass.edu>
35625
35626 * et-forest.c: Fix comment typos.
35627 * et-forest.h: Likewise.
35628 * except.c: Likewise.
35629 * expr.c: Likewise.
35630 * flags.h: Likewise.
35631 * flow.c: Likewise.
35632 * gcc.c: Likewise.
35633 * gcse.c: Likewise.
35634 * genattrtab.c: Likewise.
35635 * genautomata.c: Likewise.
35636 * gengtype.c: Likewise.
35637 * genrecog.c: Likewise.
35638 * global.c: Likewise.
35639 * gthr-rtems.h: Likewise.
35640
356412003-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
35642
35643 * i386.c (x86_function_profiler): Fix format specifier.
35644
356452003-01-17 Richard Henderson <rth@redhat.com>
35646
35647 * gengtype.c (walk_type): Allow paramN_is.
35648
356492003-01-17 Nick Clifton <nickc@redhat.com>
35650
35651 * config/i960/t-960bare (i960-c.o): Add missing newline escape.
35652
356532003-01-16 Richard Henderson <rth@redhat.com>
35654
35655 * config/alpha/linux-elf.h (LIB_SPEC): Adjust inter-option spacing.
35656
356572003-01-16 Richard Henderson <rth@redhat.com>
35658
35659 * config/alpha/alpha.c (alpha_sr_alias_set): Mark GTY.
35660 (alpha_next_sequence_number): Likewise.
35661 (alpha_this_literal_sequence_number): Likewise.
35662 (alpha_this_gpdisp_sequence_number): Likewise.
35663 (struct alpha_funcs, alpha_funcs_num): Likewise.
35664 (struct alpha_links): Fix branch merge error.
35665 (alpha_need_linkage, alpha_use_linkage): Use GC for alpha_funcs.
35666
356672003-01-17 Alexandre Oliva <aoliva@redhat.com>
35668
35669 * config/mips/mips.h: Don't use #elif. Reported by Kaveh
35670 R. Ghazi.
35671
356722003-01-16 Kazu Hirata <kazu@cs.umass.edu>
35673
35674 * ifcvt.c: Fix comment typos.
35675 * lcm.c: Likewise.
35676 * libgcc2.c: Likewise.
35677 * local-alloc.c: Likewise.
35678 * loop.c: Likewise.
35679 * predict.c: Likewise.
35680 * ra-build.c: Likewise.
35681 * ra.c: Likewise.
35682 * ra-colorize.c: Likewise.
35683 * ra.h: Likewise.
35684 * ra-rewrite.c: Likewise.
35685 * regmove.c: Likewise.
35686 * reload.h: Likewise.
35687 * rtlanal.c: Likewise.
35688 * toplev.c: Likewise.
35689 * tree.h: Likewise.
35690 * unwind-dw2-fde-glibc.c: Likewise.
35691 * vmsdbgout.c: Likewise.
35692
356932003-01-16 Richard Henderson <rth@redhat.com>
35694
35695 * dwarf2out.c (struct file_table): Remove.
35696 (FILE_TABLE_INCREMENT): Remove.
35697 (file_table): Make a varray; mark for GC. Update all users.
35698 (file_table_last_lookup_index): Extract from struct file_table.
35699 (output_file_names): Fix unsigned compare warnings.
35700 (add_name_attribute): Remove inline marker.
35701 (add_comp_dir_attribute): Split out from gen_compile_unit_die.
35702 (lookup_filename): Don't manage size of file_table.
35703 (init_file_table): Allocate file_table with GC.
35704 (dwarf2out_init): Don't record main_input_filename here.
35705 (dwarf2out_finish): Do it here instead.
35706
357072003-01-16 Bruce Korb <bkorb@gnu.org>
35708
35709 * gcc/fixinc/inclhack.def(limits_ifndef): QNX needs a bypass, too.
35710
357112003-01-16 Kaz Kojima <kkojima@gcc.gnu.org>
35712
35713 * config/sh/sh.c (sh_initialize_trampoline): Emit rotrdi3_mextr
35714 instead of rotldi3_mextr.
35715
357162003-01-16 Vladimir Makarov <vmakarov@redhat.com>
35717
35718 * haifa-sched.c (move_insn): Restore moving all schedule group.
35719 (set_priorities): Restore taking SCHED_GROUP_P into account.
35720
35721 * sched-deps.c (add_dependence): Restore processing the last group
35722 insn.
35723 (remove_dependence, group_leader): Restore the functions.
35724 (set_sched_group_p): Restore adding dependencies from previous insn
35725 in the group.
35726 (compute_forward_dependences): Restore usage of group_leader.
35727
35728 * sched-ebb.c (init_ready_list): Restore taking SCHED_GROUP_P into
35729 account.
35730
35731 * sched-rgn.c (init_ready_list): Restore taking SCHED_GROUP_P into
35732 account.
35733 (can_schedule_ready_p): Ditto.
35734 (add_branch_dependences): Restore skipping over the group insns.
35735
357362003-01-16 Stephane Carrez <stcarrez@nerim.fr>
35737
35738 * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Fix handling
35739 68HC12 pre/post inc/dec side effects.
35740
357412003-01-16 Stephane Carrez <stcarrez@nerim.fr>
35742
35743 * config/m68hc11/m68hc11.h (MASK_M6812): Define.
35744
357452003-01-16 J"orn Rennecke <amylaar@onetel.net.uk>
35746
35747 * sh.md (mshflo_w_x): Fix description of operation.
35748
357492003-01-16 Zack Weinberg <zack@codesourcery.com>
35750
35751 * config/rs6000/rs6000.h: Mention Altivec registers in
35752 commentary. Fix typo.
35753
357542003-01-16 David Edelsohn <edelsohn@gnu.org>
35755
35756 * config/rs6000/rs6000.md (movti_string): Remove clobber.
35757 * config/rs6000/rs6000.c (rs6000_emit_move, TImode): Explicitly
35758 generate PARALLEL with clobber for TARGET_POWER.
35759
357602003-01-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
35761
35762 * ra-colorize.c (colorize_one_web): Initialize variable.
35763 * regmove.c (fixup_match_1): Likewise.
35764 * reload1.c (reload_as_needed): Likewise.
35765 * sdbout.c (SET_KNOWN_TYPE_TAG): Add cast.
35766
357672003-01-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
35768
35769 * cfgloop.c (flow_loops_find): Fix handling of abnormal edges.
35770
357712003-01-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
35772
35773 * dbxout.c (lastfile, cwd): Fix `unused' warning.
35774 * dwarf2out.c (fde_table_in_use, current_funcdef_fde,
35775 dw_cfi_oprnd1_desc, dw_cfi_oprnd2_desc, next_die_offset,
35776 is_main_source, file_table, decl_die_table_in_use,
35777 abbrev_die_table_in_use, line_info_table_in_use,
35778 separate_line_info_table_in_use, pubname_table_in_use,
35779 arange_table_in_use, ranges_table_in_use,
35780 current_function_has_inlines): Likewise.
35781 * flow.c (life_analysis): Likewise.
35782 * genemit.c (gen_insn): Likewise.
35783 * protoize.c (cplus_suffix): Likewise.
35784
35785 * arm.c (ROUND_UP_WORD): Renamed from ROUND_UP.
35786 * arm.h (ROUND_UP_WORD): Likewise.
35787
35788 * arm.h (CONDITIONAL_REGISTER_USAGE): Avoid signed/unsigned
35789 warning.
35790 * emit-rtl.c (gen_rtx_REG, set_mem_attributes_minus_bitpos,
35791 init_emit_once): Likewise.
35792 * flow.c (mark_regs_live_at_end, calculate_global_regs_live):
35793 Likewise.
35794 * function.c (assign_stack_temp_for_type): Likewise.
35795 * loop.c (loop_invariant_p): Likewise.
35796 * recog.c (push_operand): Likewise.
35797 * regclass.c (init_reg_sets_1): Likewise.
35798 * reload.c (update_auto_inc_notes): Likewise.
35799 * reload1.c (reload_as_needed, emit_input_reload_insns): Likewise.
35800 * stmt.c (expand_asm_operands): Likewise.
35801 * stor-layout.c (start_record_layout): Likewise.
35802
358032003-01-16 Herman A.J. ten Brugge <hermantenbrugge@home.nl>
35804
35805 * config/c4x/c4x.md (epilogue): Correct last patch.
35806
358072003-01-15 Richard Henderson <rth@redhat.com>
35808
35809 * config/alpha/alpha.c (find_lo_sum_using_gp): Rename from find_lo_sum;
35810 also check that GP is being used.
35811 (alpha_find_lo_sum_using_gp): New.
35812 (alpha_does_function_need_gp): Use get_attr_usegp.
35813 * config/alpha/alpha-protos.h: Update.
35814 * config/alpha/alpha.md (attr usegp): New. Annotate patterns
35815 as needed.
35816
358172003-01-15 Roger Sayle <roger@eyesopen.com>
35818
35819 * gcse.c (one_cprop_pass): Change function arguments to take both
35820 cprop_jumps and bypass_jumps flags instead of just alter_jumps.
35821 (gcse_main): Update calls to one_cprop_pass, disabling bypassing.
35822 (bypass_jumps): New function to perform separate jump bypassing pass.
35823 * rtl.h (bypass_jumps): Add function prototype.
35824 * timevar.def (TV_BYPASS): New timing variable.
35825 * toplev.c (enum dump_file_index): Add new entry DFI_bypass.
35826 (dump_file): New entry for the bypass RTL dump file.
35827 (rest_of_compilation): Insert new jump bypassing optimization
35828 pass after loop.
35829 * doc/passes.texi: Document new pass.
35830
358312003-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
35832
35833 * som.h (SUPPORTS_WEAK, SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY,
35834 ASM_WEAKEN_LABEL, GTHREAD_USE_WEAK): Define.
35835 * pa.h (TARGET_SOM_SDEF): Define.
35836 * pa-hpux11.h (TARGET_SOM_SDEF): Define.
35837
358382003-01-16 Stephane Carrez <stcarrez@nerim.fr>
35839
35840 * config/m68hc11/m68hc11.c (expand_prologue): Use push/pop to
35841 allocate 4-bytes of locals on 68HC11.
35842 (expand_epilogue): Likewise.
35843 (m68hc11_memory_move_cost): Increase cost of HI/QI soft registers.
35844
358452003-01-15 Stephane Carrez <stcarrez@nerim.fr>
35846
35847 * config/m68hc11/m68hc11.h (ASM_SPEC): Handle -m68hcs12; Pass -mshort
35848 and -mshort-double to the assembler to specify the ABI.
35849 (LINK_SPEC): Likewise.
35850 (CPP_SPEC): Pass HCS12 specific define.
35851 (MASK_M68S12): New define.
35852 (TARGET_M68S12): Likewise.
35853 (TARGET_SWITCHES): New options -m68hcs12 and -m68S12.
35854 (TARGET_VERSION): Update.
35855 * config/m68hc11/m68hc12.h (CPP_SPEC): Pass HCS12 specific define.
35856 (LINK_SPEC): Update.
35857 (ASM_SPEC): Update.
35858 * config/m68hc11/m68hc11.c (m68hc11_asm_file_start): Update.
35859 * doc/invoke.texi (M68hc1x Options): Document -m68hcs12.
35860
358612003-01-15 Stephane Carrez <stcarrez@nerim.fr>
35862
35863 * config/m68hc11/m68hc11.md ("return"): Use emit_jump_insn to emit
35864 the return code.
35865
358662003-01-15 Josef Zlomek <zlomekj@suse.cz>
35867
35868 * cfganal.c (set_edge_can_fallthru_flag): Clear the EDGE_CAN_FALLTHRU
35869 flag before setting it.
35870
358712003-01-15 Roger Sayle <roger@eyesopen.com>
35872
35873 * c-semantics.c (genrtl_while_stmt): Improve initial RTL generation
35874 when loop condition is known true, i.e. "while (1) { ... }".
35875 (genrtl_for_stmt): Similarly for "for" statements.
35876
358772003-01-15 Roger Sayle <roger@eyesopen.com>
35878
35879 * real.c (real_sqrt): Return a bool result indicating whether
35880 a floating point exception or trap should be raised.
35881 * real.h (real_sqrt): Update function prototype.
35882 * builtins.c (fold_builtin): Only fold non-trapping square
35883 roots unless we're ignoring errno and trapping math.
35884
358852003-01-15 John David Anglin <dave.anglin@nrc.gc.ca>
35886
35887 * expr.h (emit_conditional_add): Add PARAMS to declaration.
35888 * gengtype-lex.l (malloc, realloc): Move defines after include of
35889 system.h. Remove duplicate include of system.h.
35890
358912003-01-15 Roger Sayle <roger@eyesopen.com>
35892
35893 PR middle-end/9009
35894 * optabs.c (expand_unop): When manipulating the FP sign bit
35895 using integer operations, account for targets with different
35896 integer and FP word orders.
35897 (expand_abs): Likewise.
35898
358992003-01-15 David Edelsohn <edelsohn@gnu.org>
35900
35901 * config/rs6000/rs6000.c (rs6000_gen_section_name): Do not include
35902 file extension in section name.
35903
359042003-01-15 Richard Earnshaw <rearnsha@arm.com>
35905
35906 * flow.c (find_auto_inc): Also try to generate a PRE_MODIFY with
35907 constant offset.
35908
359092003-01-15 Richard Earnshaw <rearnsha@arm.com>
35910
35911 * arm.h (HAVE_PRE_MODIFY_DISP, HAVE_PRE_MODIFY_REG): Define.
35912 (HAVE_POST_MODIFY_DISP, HAVE_POST_MODIFY_REG): Define.
35913 (ARM_GO_IF_LEGITIMATE_ADDRESS): Handle pre/post-modify addresses.
35914 (ARM_PRINT_OPERAND_ADDRESS): Likewise.
35915
359162003-01-15 Jan Hubicka <jh@suse.cz>
35917
35918 PR f/9258
35919 * global.c (struct allocno): Add no_stack_reg.
35920 (global_conflicts): Set no_stack_reg.
35921 (find_reg): Use it.
35922
35923 * convert.c (convert_to_real): Fold - and abs only when profitable.
35924 * fold-const.c (fold): Fold truncates in - and abs.
35925
359262003-01-15 Josef Zlomek <zlomekj@suse.cz>
35927
35928 Segher Boessenkool <segher@koffie.nl>
35929
35930 * predict.c (real_inv_br_prob_base): New variable.
35931 (propagate_freq): Use multiply by reciprocal instead of
35932 division. Don't divide by 1.0 at all.
35933 (estimate_bb_frequencies): Similar.
35934
359352003-01-15 Alexandre Oliva <aoliva@redhat.com>
35936
35937 * configure.in (libgcc_visibility): Force disabled on IRIX 6 too.
35938 * configure: Rebuilt.
35939
359402003-01-15 Hartmut Penner <hpenner@de.ibm.com>
35941
35942 * config/s390/s390.c (s390_safe_attr_type): New function.
35943 (s390_use_dfa_pipeline_interface): New function, return true for z900.
35944 (s390_issue_rate): New function.
35945 (s390_agen_dep_p): New function.
35946 (addr_generation_dependency_p): Use 's390_safe_attr_type'.
35947 (s390_adjust_cost): Return 'cost' if new DFA is used.
35948 (s390_adjust_priority): Delete function.
35949 * config/s390/s390-protos.h: (s390_agen_dep_p): New prototype.
35950 * config/s390/s390.md (atype attribute): Attribute 'atype' default
35951 determined by 'op_type'.
35952 (type attribute): Added more type attributes.
35953 * config/s390/2064.md: New DFA description for z900 pipeline.
35954
359552003-01-15 Alexandre Oliva <aoliva@redhat.com>
35956
35957 * config/i386/i386.c (ix86_expand_vector_move): Validize constant
35958 forced to memory. Fixes PR bootstrap/9036.
35959
35960 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Define so as
35961 to set $gp before the call.
35962
359632003-01-14 Richard Henderson <rth@redhat.com>
35964
35965 * config/alpha/alpha.c (alpha_expand_mov): Use correct mode
35966 for force_const_mem.
35967
359682003-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
35969
35970 * genattr.c (main): Rearrange output to avoid prototype warning.
35971 * genautomata.c (transform_3): Fix ambiguous-else warning.
35972 * local-alloc.c (requires_inout): Add parentheses around
35973 assignment used as truth-value.
35974 * timevar.c: Move system includes above local includes. Include
35975 toplev.h
35976 * Makefile.in (timevar.o): Depend on toplev.h.
35977
359782003-01-14 Denis Chertykov <denisc@overta.ru>
35979
35980 * config/ip2k/ip2k.h (VALID_MACHINE_DECL_ATTRIBUTE): Remove.
35981 (VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
35982
35983 * config/ip2k/ip2k.c (ip2k_attribute_table): New table of
35984 attributes.
35985 (TARGET_ATTRIBUTE_TABLE): New macro.
35986 (valid_machine_type_attribute): Remove.
35987 (valid_machine_decl_attribute): Remove.
35988 (ip2k_handle_progmem_attribute): New function.
35989 (ip2k_handle_fndecl_attribute): New function.
35990
359912003-01-10 Andrew Haley <aph@redhat.com>
35992
35993 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Rename
35994 registers to be in correct order. Add rip.
35995
359962003-01-14 Kazu Hirata <kazu@cs.umass.edu>
35997
35998 * config/h8300/h8300.md (*andsi3_lshiftrt_9_sb): New.
35999 (*iorsi3_and_lshiftrt_9_sb): Likewise.
36000
360012003-01-14 Jan Hubicka <jh@suse.cz>
36002
36003 * convert.c (strip_float_extensions): Look for narrowest type handling
36004 FP constants.
36005
36006 * fold-const.c (fold): Fold (double)float1 CMP (double)float2 into
36007 float1 CMP float2.
36008 * convert.c (strip_float_extensions): Make global.
36009 * tree.h (strip_float_extensions): Declare.
36010
360112003-01-14 Gabriel Dos Reis <gdr@integrable-solutions.net>
36012
36013 * timevar.def: define TV_NAME_LOOKUP.
36014 * timevar.c (timevar_pop): Be verbose when aborting.
36015
360162003-01-13 Andreas Schwab <schwab@suse.de>
36017
36018 * Makefile.in ($(parsedir)/gengtype-lex.c): Don't change to
36019 $(parsedir), just move the temporary file at the end.
36020 ($(parsedir)/gengtype-yacc.c): Likewise.
36021
360222003-01-13 Alexandre Oliva <aoliva@redhat.com>
36023
36024 * aclocal.m4 (gcc_AC_PROG_GNAT): Don't try to prepend
36025 ${ac_tool_prefix} to ADAC or CC. Protect them from word
36026 splitting.
36027 * configure: Rebuilt.
36028
360292003-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
36030
36031 * config/sparc/gmon-sol2.c (moncontrol, monstartup, _mcleanup,
36032 internal_mcount): Don't use PARAMS.
36033 (monstartup, _mcleanup, internal_mcount, moncontrol): Convert to
36034 ISO C style.
36035 (internal_mcount): Use __attribute__, not ATTRIBUTE_UNUSED.
36036
360372003-01-13 Andreas Schwab <schwab@suse.de>
36038
36039 * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Output type
36040 directive.
36041
360422003-01-13 Kazu Hirata <kazu@cs.umass.edu>
36043
36044 * config/h8300/h8300.md (*andsi3_lshift_n_sb): New.
36045 (*iorsi3_and_lshiftrt_n_sb): Likewise.
36046
360472003-01-12 Mark Mitchell <mark@codesourcery.com>
36048
36049 PR c++/9264
36050 * c-lex.c (c_lex): Set the token value to error_mark_node for
36051 invalid numeric constants.
36052
360532003-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
36054
36055 * c-pch.c (asm_file_startpos): Change to `long'.
36056 (pch_init): Use ftell, not ftello.
36057 (c_common_write_pch): Use ftell/fseek, not ftello/fseeko.
36058 Use `long' instead of `off_t'.
36059 (c_common_read_pch): Likewise.
36060 * ggc-common.c (gt_pch_save): Use long/ftell instead of
36061 off_t/ftello.
36062
360632003-01-12 Alan Modra <amodra@bigpond.net.au>
36064
36065 * expr.c (expand_expr <RDIV_EXPR>): Correct recursive call args.
36066
360672003-01-11 Richard Earnshaw (rearnsha@arm.com)
36068
36069 * arm-protos.h (struct cpp_reader): Add declaration.
36070
360712003-01-11 Jan Hubicka <jh@suse.cz>
36072
36073 PR target/9068
36074 * i386.c (output_fp_compare): Fix typo.
36075
360762003-01-10 David Edelsohn <edelsohn@gnu.org>
36077
36078 * config/rs6000/rs6000.c (common_mode_defined): Mark for PCH.
36079
360802003-01-10 Geoffrey Keating <geoffk@apple.com>
36081
36082 * Makefile.in (parsedir): New variable.
36083 (docobjdir): New variable.
36084 (c-parse.o, c-parse.c, c-parse.y, gengtype-lex.o, gengtype-yacc.o,
36085 gengtype-lex.c, gengtype-yacc.c): Use parsedir.
36086 (info, cpp.info, gcc.info, gccint.info, gccinstall.info,
36087 cppinternals.info, generated-manpages, gcov.1, cpp.1, gcc.1, gfdl.7,
36088 gpl.7, fsf-funding.7, maintainer-clean, install-info, install-man):
36089 Use docobjdir.
36090 * objc/Make-lang.in (objc/objc-parse.c, objc/objc-parse.y,
36091 objc.maintainer-clean): Use parsedir.
36092
36093 * varasm.c (struct constant_descriptor_rtx): Remove unused
36094 `label' field.
36095
36096 * toplev.c (documented_lang_options): Document -Winvalid-pch.
36097
360982003-01-10 Richard Henderson <rth@redhat.com>
36099
36100 * config/alpha/alpha.h (NO_PROFILE_COUNTERS): Set.
36101 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Kill.
36102
361032003-01-10 Richard Henderson <rth@redhat.com>
36104
36105 * combine.c (make_compound_operation): Use SCALAR_INT_MODE_P,
36106 not INTEGRAL_MODE_P when widening extensions.
36107
361082003-01-10 Richard Henderson <rth@redhat.com>
36109
36110 * config/alpha/alpha.c (decl_has_samegp): True for !TREE_PUBLIC.
36111
361122003-01-10 Geoffrey Keating <geoffk@apple.com>
36113
36114 * ggc-page.c (ggc_collect): Avoid overflow computing
36115 min_expand.
36116
36117 * Makefile.in (RANLIB_FOR_TARGET): Use RANLIB when native.
36118 (RANLIB_TEST_FOR_TARGET): Delete. Don't pass down to sub-makes.
36119 Remove calls.
36120 * mklibgcc.in: Remove uses of RANLIB_TEST_FOR_TARGET.
36121
361222003-01-10 Jan Hubicka <jh@suse.cz>
36123
36124 * ifcvt.c (noce_try_addcc): Do not call emit_conditional_add
36125 with weird operands.
36126
361272003-01-10 Dale Johannesen <dalej@apple.com>
36128
36129 * calls.c (load_register_parameters): Add is_sibcall, sibcall_failure
36130 parameters. Call check_sibcall_argument_overlap if indicated.
36131 (check_sibcall_argument_overlap): Add mark_stored_args_map
36132 parameter. Don't mark parameter area as clobbered if not set.
36133 (expand_call): Adjust calls to above.
36134
361352003-01-10 Kelley Cook <kelleycook@comcast.net>
36136
36137 * configure.in (linker read-only and read-write section mixing):
36138 Squelch some assembler warnings.
36139 * configure: Likewise.
36140
361412003-01-10 Hartmut Penner <hpenner@de.ibm.com>
36142
36143 * doc/invoke.texi: Document -mtune, delete -mcpu
36144 option for S/390 and zSeries.
36145 * config/s390/s390.c (s390_tune_string) New variable.
36146 (s390_cpu_string) Delete variable.
36147 (override_options): Use s390_tune_string instead of
36148 s390_cpu_string.
36149 * config/s390/s390.h: (TARGET_OPTIONS) '-mtune' instead of '-mcpu'.
36150
361512003-01-10 Kazu Hirata <kazu@cs.umass.edu>
36152
36153 * config/h8300/h8300.md (*iorsi3_ashift_31): New.
36154
361552003-01-10 Josef Zlomek <zlomekj@suse.cz>
36156
36157 * jump.c (next_nonnote_insn_in_loop): New function.
36158 (copy_loop_headers): Use next_nonnote_insn_in_loop instead of
36159 next_nonnote_insn.
36160 (duplicate_loop_exit_test). Likewise.
36161
361622003-01-09 Geoffrey Keating <geoffk@apple.com>
36163
36164 Merge from pch-branch:
36165
36166 2003-01-06 Geoffrey Keating <geoffk@apple.com>
36167
36168 * ggc-page.c (ggc_pch_read): Update the statistics after a PCH
36169 load.
36170
36171 2002-12-24 Geoffrey Keating <geoffk@apple.com>
36172
36173 * cpplib.c (count_registered_pragmas): New function.
36174 (save_registered_pragmas): New function.
36175 (_cpp_save_pragma_names): New function.
36176 (restore_registered_pragmas): New function.
36177 (_cpp_restore_pragma_names): New function.
36178 * cpphash.h (_cpp_save_pragma_names): Prototype.
36179 (_cpp_restore_pragma_names): Likewise.
36180 * cpppch.c (struct save_macro_item): Split from save_macro_data.
36181 (struct save_macro_data): New field 'saved_pragmas'.
36182 (save_macros): Update for changes to struct save_macro_data.
36183 (cpp_prepare_state): Call _cpp_save_pragma_names, update
36184 for changes to struct save_macro_data.
36185 (cpp_read_state): Call _cpp_restore_pragma_names, update
36186 for changes to struct save_macro_data.
36187
36188 * cpppch.c (cpp_read_state): Restore the hashtable references
36189 in the cpp_reader.
36190
36191 * tree.h (built_in_decls): Mark for PCH.
36192
36193 * dbxout.c (lastfile): Don't mark for PCH.
36194
36195 * ggc.h: Document PCH calls into memory managers.
36196
36197 2002-12-18 Geoffrey Keating <geoffk@apple.com>
36198
36199 * doc/invoke.texi (Precompiled Headers): Document the
36200 directory form of PCH.
36201 * cppfiles.c (validate_pch): New function.
36202 (open_file_pch): Search suitably-named directories for PCH files.
36203
36204 2002-12-14 Geoffrey Keating <geoffk@apple.com>
36205
36206 * doc/gty.texi (GTY Options): Document chain_next, chain_prev,
36207 reorder options.
36208 (Type Information): Mention that the information is also
36209 used to implement PCH.
36210 * doc/passes.texi (Passes): Improve documentation of
36211 language-specific files.
36212
36213 2002-12-11 Geoffrey Keating <geoffk@apple.com>
36214
36215 * gengtype.c (struct write_types_data): Add reorder_note_routine field.
36216 (struct walk_type_data): Add reorder_fn field.
36217 (walk_type): Process 'reorder' option.
36218 (write_types_process_field): Reorder parameters to gt_pch_note_object,
36219 call reorder_note_routine.
36220 (write_func_for_structure): Reorder parameters to gt_pch_note_object.
36221 (ggc_wtd): Update for change to struct write_types_data.
36222 (pch_wtd): Likewise.
36223 * ggc.h (gt_pch_note_object): Reorder parameters.
36224 (gt_handle_reorder): New definition.
36225 (gt_pch_note_reorder): New prototype.
36226 * ggc-common.c (struct ptr_data): Add reorder_fn.
36227 (gt_pch_note_object): Reorder parameters.
36228 (gt_pch_note_reorder): New.
36229 (gt_pch_save): Call reorder_fn.
36230 * stringpool.c (gt_pch_n_S): Update for change to gt_pch_note_object.
36231
36232 * dbxout.c (cwd): Don't mark for PCH.
36233
36234 2002-12-09 Geoffrey Keating <geoffk@apple.com>
36235
36236 * gengtype.c (finish_root_table): Fix some warnings.
36237 (write_root): Handle TYPE_STRING.
36238 * ggc.h (gt_ggc_m_S): Add prototype.
36239 * stringpool.c (gt_ggc_m_S): New function.
36240
36241 2002-11-30 Geoffrey Keating <geoffk@apple.com>
36242
36243 * dwarf2out.c (dw2_string_counter): New.
36244 (AT_string_form): Use it.
36245 (same_dw_val_p): Update for removal of hashtable.h hash tables.
36246
36247 2002-11-22 Geoffrey Keating <geoffk@apple.com>
36248
36249 * dbxout.c: Include gt-dbxout.h.
36250 (lastfile): Mark for PCH/GGC.
36251 (cwd): Likewise.
36252 (struct typeinfo): Likewise.
36253 (typevec): Likewise.
36254 (typevec_len): Likewise.
36255 (next_type_number): Likewise.
36256 (struct dbx_file): Likewise.
36257 (current_file): Likewise.
36258 (next_file_number): Likewise.
36259 (dbxout_init): Allocate typevec, struct dbx_file with GGC.
36260 (dbxout_start_source_file): Allocate struct dbx_file with GGC.
36261 (dbxout_end_source_file): Don't free struct dbx_file.
36262 (dbxout_type): Use GGC to allocate typevec.
36263 * Makefile.in (dbxout.o): Depend on gt-dbxout.h, $(GGC_H).
36264 (GTFILES): Add dbxout.c.
36265 (gt-dbxout.h): New rule.
36266
36267 * Makefile.in (c-pch.o): Add debug.h as dependency.
36268 * c-pch.c: Include debug.h.
36269 (pch_init): Call start_source_file to keep nesting right.
36270 (c_common_read_pch): Add orig_name parameter. Call
36271 start_source_file debug hook. Call end_source_file debug hook.
36272 * c-common.h (c_common_read_pch): Update prototype.
36273 * cpplib.h (struct cpp_callbacks): Add fourth field to read_pch
36274 callback.
36275 * cppfiles.c (struct include_file): Add new field `header_name'.
36276 (find_or_create_entry): Default it to `name'.
36277 (open_file_pch): Set it to the original header file searched for.
36278 (stack_include_file): Don't stack an empty buffer, just handle
36279 PCH files immediately. Pass header_name field to read_pch callback.
36280
36281 2002-11-19 Geoffrey Keating <geoffk@apple.com>
36282
36283 * function.c (funcdef_no): Mark to be saved in a PCH.
36284
36285 2002-11-15 Geoffrey Keating <geoffk@apple.com>
36286
36287 * ggc-page.c (ggc_pch_read): Remove unused 'bmap_size'.
36288
36289 * cpppch.c (cpp_read_state): Correct size reallocated for 'defn'.
36290
36291 2002-11-14 Geoffrey Keating <geoffk@apple.com>
36292
36293 * optabs.h (code_to_optab): Add GTY marker.
36294
36295 2002-11-13 Geoffrey Keating <geoffk@apple.com>
36296
36297 * Makefile.in (GTFILES): Add cpplib.h.
36298 * c-common.h (struct c_common_identifier): Don't skip 'node' field.
36299 * c-decl.c (build_compound_literal): Don't use var_labelno.
36300 * cpplib.h (struct cpp_hashnode): Use gengtype to mark.
36301 * dwarf2asm.c (dw2_force_const_mem): Don't use const_labelno.
36302 * varasm.c (const_labelno): Use gengtype to mark.
36303 (var_labelno): Likewise.
36304 (in_section): Likewise.
36305 (in_named_name): Likewise.
36306 (struct in_named_entry): Likewise.
36307 (in_named_htab): Likewise.
36308 (set_named_section_flags): Use GGC to allocate struct in_named_entry.
36309 (init_varasm_once): Use GGC to allocate in_named_htab.
36310 * config/darwin.c (current_pic_label_num): Mark for PCH.
36311
36312 2002-11-11 Geoffrey Keating <geoffk@apple.com>
36313
36314 * ggc-simple.c (init_ggc_pch): New stub procedure.
36315 (ggc_pch_count_object): Likewise.
36316 (ggc_pch_total_size): Likewise.
36317 (ggc_pch_this_base): Likewise.
36318 (ggc_pch_alloc_object): Likewise.
36319 (ggc_pch_prepare_write): Likewise.
36320 (ggc_pch_write_object): Likewise
36321 (ggc_pch_finish): Likewise.
36322 (ggc_pch_read): Likewise.
36323
36324 2002-11-08 Geoffrey Keating <geoffk@apple.com>
36325
36326 * c-pch.c (c_common_write_pch): Write the macro definitions after
36327 the GCed data.
36328 (c_common_read_pch): Call cpp_prepare_state. Restore the macro
36329 definitions after the GCed data.
36330 * cpplib.c (save_macros): New.
36331 (reset_ht): New.
36332 (cpp_write_pch_deps): Split out of cpp_write_pch.
36333 (cpp_write_pch_state): Split out of cpp_write_pch.
36334 (cpp_write_pch): Delete.
36335 (struct save_macro_data): Delete.
36336 (cpp_prepare_state): New.
36337 (cpp_read_state): Erase and restore initial macro definitions.
36338 * cpplib.h (struct save_macro_data): Forward-declare.
36339 (cpp_write_pch_deps): Prototype.
36340 (cpp_write_pch_state): Prototype.
36341 (cpp_write_pch): Delete prototype.
36342 (cpp_prepare_state): Prototype.
36343 (cpp_read_state): Add fourth argument.
36344
36345 2002-11-04 Geoffrey Keating <geoffk@apple.com>
36346
36347 * gengtype.c (adjust_field_rtx_def): Don't use skip on valid fields.
36348 (write_array): Remove warning.
36349
36350 * gengtype.c (contains_scalar_p): New.
36351 (finish_root_table): Add the table to all languages, even if it's
36352 empty.
36353 (write_roots): Output gt_pch_scalar_rtab.
36354 * ggc-common.c (gt_pch_save): Write out scalars.
36355 (gt_pch_restore): Read scalars back.
36356
36357 * ggc-page.c (OBJECTS_IN_PAGE): New macro.
36358 (struct page_entry): Delete pch_page field.
36359 (ggc_recalculate_in_use_p): Use OBJECTS_IN_PAGE.
36360 (clear_marks): Likewise.
36361 (sweep_pages): Likewise.
36362 (poison_pages): Likewise.
36363 (ggc_print_statistics): Likewise.
36364 (ggc_pch_read): Don't free objects read from a PCH.
36365 Properly set up in_use_p and page_tails.
36366
36367 2002-10-25 Geoffrey Keating <geoffk@apple.com>
36368
36369 * gengtype.c (struct write_types_data): New.
36370 (struct walk_type_data): Make `cookie' const; add extra
36371 prev_val item; add `orig_s' field.
36372 (walk_type): Update prev_val[3].
36373 (write_types_process_field): New.
36374 (write_func_for_structure): Take write_types_data structure.
36375 (write_types): New.
36376 (ggc_wtd): New.
36377 (pch_wtd): New.
36378 (write_types_local_process_field): New.
36379 (gc_mark_process_field): Delete.
36380 (write_local_func_for_structure): New.
36381 (gc_mark_func_name): Delete.
36382 (write_gc_types): Delete.
36383 (write_local): New.
36384 (finish_root_table): Don't include 'ggc_' in PFX.
36385 (write_root): Rename from write_root. Fill pchw field of structures.
36386 (write_array): New.
36387 (write_roots): Rename from write_gc_roots. Split out to write_array.
36388 Update to changes to other routines. Write gt_pch_cache_rtab table.
36389 (main): Write PCH walking routines.
36390 * ggc-common.c: Include toplev.h, sys/mman.h.
36391 (ggc_mark_roots): For cache hashtables, also mark the hash table
36392 and the array of entries.
36393 (saving_htab): New.
36394 (struct ptr_data): New.
36395 (POINTER_HASH): New.
36396 (gt_pch_note_object): New.
36397 (saving_htab_hash): New.
36398 (saving_htab_eq): New.
36399 (struct traversal_state): New.
36400 (call_count): New.
36401 (call_alloc): New.
36402 (compare_ptr_data): New.
36403 (relocate_ptrs): New.
36404 (write_pch_globals): New.
36405 (struct mmap_info): New.
36406 (gt_pch_save): New.
36407 (gt_pch_restore): New.
36408 * ggc-page.c (ROUND_UP_VALUE): New.
36409 (ROUND_UP): New.
36410 (struct page_entry): Add field `pch_page'.
36411 (init_ggc): Use ROUND_UP.
36412 (struct ggc_pch_data): Declare.
36413 (init_ggc_pch): New.
36414 (ggc_pch_count_object): New.
36415 (ggc_pch_total_size): New.
36416 (ggc_pch_this_base): New.
36417 (ggc_pch_alloc_object): New.
36418 (ggc_pch_prepare_write): New.
36419 (ggc_pch_write_object): New.
36420 (ggc_pch_finish): New.
36421 (ggc_pch_read): New.
36422 * ggc.h (gt_pointer_operator): New.
36423 (gt_note_pointers): New.
36424 (gt_pch_note_object): New prototype.
36425 (gt_pointer_walker): New.
36426 (struct ggc_root_tab): Use gt_pointer_walker, add `pchw' field.
36427 (LAST_GGC_ROOT_TAB): Update.
36428 (gt_pch_cache_rtab): Declare.
36429 (gt_pch_scalar_rtab): Declare.
36430 (struct ggc_cache_tab): Use gt_pointer_walker, add `pchw' field.
36431 (LAST_GGC_CACHE_TAB): Update.
36432 (gt_pch_save_stringpool): Declare.
36433 (gt_pch_restore_stringpool): Declare.
36434 (gt_pch_p_S): Declare.
36435 (gt_pch_n_S): Declare.
36436 (struct ggc_pch_data): Forward-declare.
36437 (init_ggc_pch): Declare.
36438 (ggc_pch_count_object): Declare.
36439 (ggc_pch_total_size): Declare.
36440 (ggc_pch_this_base): Declare.
36441 (ggc_pch_alloc_object): Declare.
36442 (ggc_pch_prepare_write): Declare.
36443 (ggc_pch_write_object): Declare.
36444 (ggc_pch_finish): Declare.
36445 (ggc_pch_read): Declare.
36446 (gt_pch_save): Declare.
36447 (gt_pch_restore): Declare.
36448 * fold-const.c (size_int_type_wide): Allocate size_htab using GGC.
36449 * emit-rtl.c (init_emit_once): Allocate const_int_htab,
36450 const_double_htab, mem_attrs_htab using GGC.
36451 * c-pch.c: Include ggc.h.
36452 (pch_init): Allow reading PCH file back.
36453 (c_common_write_pch): Call gt_pch_save.
36454 (c_common_read_pch): Call gt_pch_restore.
36455 * c-parse.in (init_reswords): Delete now-untrue comment.
36456 Allocate ridpointers using GGC.
36457 * c-objc-common.c (c_objc_common_finish_file): Write PCH before
36458 calling expand_deferred_fns.
36459 * c-common.h (ridpointers): Mark for GTY machinery.
36460 * Makefile.in (stringpool.o): Update dependencies.
36461 (c-pch.o): Update dependencies.
36462 (ggc-common.o): Update dependencies.
36463 * stringpool.c: Include gt-stringpool.h.
36464 (gt_pch_p_S): New.
36465 (gt_pch_n_S): New.
36466 (struct string_pool_data): New.
36467 (spd): New.
36468 (gt_pch_save_stringpool): New.
36469 (gt_pch_restore_stringpool): New.
36470 * tree.c (init_ttree): Make type_hash_table allocated using GC.
36471
36472 2002-10-04 Geoffrey Keating <geoffk@apple.com>
36473
36474 * gengtype.c (adjust_field_rtx_def): Don't pass size_t to printf.
36475 (output_mangled_typename): Don't pass size_t to printf.
36476
36477 * tree.h (union tree_type_symtab): Add tag to `address' field.
36478 (union tree_decl_u2): Add tag to 'i' field.
36479 * varasm.c (union rtx_const_un): Add tags to all fields.
36480 * gengtype.c (struct walk_type_data): New.
36481 (output_escaped_param): Take struct walk_type_data parameter.
36482 (write_gc_structure_fields): Delete.
36483 (walk_type): New.
36484 (write_gc_marker_routine_for_structure): Delete.
36485 (write_func_for_structure): New.
36486 (gc_mark_process_field): New.
36487 (gc_mark_func_name): New.
36488 (gc_counter): Delete.
36489 (write_gc_types): Use write_func_for_structure.
36490 (write_gc_roots): Use walk_type.
36491
36492 2002-10-02 Geoffrey Keating <geoffk@apple.com>
36493
36494 * ggc-common.c (ggc_mark_roots): Delete 'x'.
36495 (ggc_splay_dont_free): Fix warning about unused 'x'.
36496 (ggc_print_common_statistics): Remove warnings.
36497
36498 2002-10-01 Mike Stump <mrs@apple.com>
36499
36500 * ggc-common.c (ggc_splay_alloc): Actually return the allocated area.
36501 * gengtype.c (write_gc_structure_fields): Handle param[digit]_is.
36502
36503 2002-09-01 Geoffrey Keating <geoffk@redhat.com>
36504 Catherine Moore <clm@redhat.com>
36505
36506 * Makefile (c-pch.o): Update dependencies.
36507 (LIBCPP_OBJS): Add cpppch.o.
36508 (cpppch.o): New.
36509 * c-common.c (c_common_init): Don't call pch_init here.
36510 * c-common.h (c_common_read_pch): Update prototype.
36511 * c-lex.c (c_common_parse_file): Call pch_init here.
36512 * c-opts.c (COMMAND_LINE_OPTIONS): Add -Winvalid-pch, -fpch-deps.
36513 (c_common_decode_option): Handle them.
36514 * c-pch.c: Include c-pragma.h.
36515 (save_asm_offset): Delete.
36516 (pch_init): Move contents of save_asm_offset into here, call
36517 cpp_save_state.
36518 (c_common_write_pch): Call cpp_write_pch.
36519 (c_common_valid_pch): Warn only when -Winvalid-pch. Call
36520 cpp_valid_state.
36521 (c_common_read_pch): Add NAME parameter. Call cpp_read_state.
36522 * cppfiles.c (stack_include_file): Update for change to
36523 parameters of cb.read_pch.
36524 * cpphash.h (struct cpp_reader): Add `savedstate' field.
36525 * cpplib.h (struct cpp_options): Add `warn_invalid_pch' and
36526 `restore_pch_deps' fields.
36527 (struct cpp_callbacks): Add NAME parameter to `read_pch'.
36528 (cpp_save_state): Prototype.
36529 (cpp_write_pch): Prototype.
36530 (cpp_valid_state): Prototype.
36531 (cpp_read_state): Prototype.
36532 * cpppch.c: New file.
36533 * flags.h (version_flag): Remove prototype.
36534 * mkdeps.c (deps_save): New.
36535 (deps_restore): New.
36536 * mkdeps.h (deps_save): Prototype.
36537 (deps_restore): Prototype.
36538 * toplev.c (late_init_hook): Delete.
36539 (version_flag): Make static again.
36540 (compile_file): Don't call late_init_hook.
36541 * toplev.h (late_init_hook): Delete.
36542 * doc/cppopts.texi: Document -fpch-deps.
36543 * doc/invoke.texi (Warning Options): Document -Winvalid-pch.
36544
36545 2002-08-27 Geoffrey Keating <geoffk@redhat.com>
36546
36547 * c-pch.c (c_common_write_pch): Rename from c_write_pch, change
36548 callers.
36549 (c_common_valid_pch): Rename from c_valid_pch, change callers.
36550 (c_common_read_pch): Rename from c_read_pch, change callers.
36551
36552 * c-opts.c (COMMAND_LINE_OPTIONS): Allow -output-pch= to have
36553 a space between it and its argument.
36554
36555 2002-08-24 Geoffrey Keating <geoffk@redhat.com>
36556
36557 * c-pch.c: New file.
36558 * toplev.h (late_init_hook): Declare.
36559 * toplev.c (late_init_hook): Define.
36560 (version_flag): Make globally visible.
36561 (compile_file): Call late_init_hook.
36562 (init_asm_output): Make output file seekable.
36563 * gcc.c (default_compilers): Update c-header rule.
36564 * flags.h (version_flag): Declare.
36565 * cpplib.h (struct cpp_callbacks): Add 'valid_pch' and 'read_pch'
36566 fields.
36567 * cppfiles.c (struct include_file): Add 'pch' field.
36568 (INCLUDE_PCH_P): New.
36569 (open_file_pch): New.
36570 (stack_include_file): Handle PCH files specially.
36571 (find_include_file): Call open_file_pch instead of open_file.
36572 (_cpp_read_file): Explain why open_file is used instead of
36573 open_file_pch.
36574 * c-opts.c (c_common_decode_option): Correct OPT__output_pch case.
36575 * c-objc-common.c (c_objc_common_finish_file): Call c_write_pch.
36576 * c-lex.c (init_c_lex): Set valid_pch and read_pch fields
36577 in cpplib callbacks.
36578 * c-common.c (pch_file): Correct comment.
36579 (allow_pch): Define.
36580 (c_common_init): Call pch_init.
36581 * c-common.h (allow_pch): Declare.
36582 (pch_init): Declare.
36583 (c_valid_pch): Declare.
36584 (c_read_pch): Declare.
36585 (c_write_pch): Declare.
36586 * Makefile.in (c-pch.o): New.
36587 (C_AND_OBJC_OBJS): Add c-pch.o.
36588 * doc/invoke.texi (Precompiled Headers): Add index entries,
36589 complete truncated paragraph.
36590
36591 2002-08-17 Geoffrey Keating <geoffk@redhat.com>
36592
36593 * c-common.c: (pch_file): Define.
36594 * c-common.h (pch_file): Declare.
36595 * c-opts.c (COMMAND_LINE_OPTIONS): Add --output-pch=.
36596 (missing_arg): Require --output-pch= to have an argument.
36597 (c_common_decode_option): Handle --output-pch=.
36598 * gcc.c: Document new %V.
36599 (default_compilers): Handle compiling C header files.
36600 (do_spec_1): Implement %V.
36601 (main): Handle "gcc foo.h" without trying to run linker.
36602 * doc/invoke.texi (Invoking GCC): Add new menu item for PCH.
36603 (Overall Options): Document what the driver does with header files,
36604 document new -x option possibilities.
36605 (Invoking G++): More documentation for PCH.
36606 (Precompiled Headers): New.
36607
36608 2002-08-09 Geoffrey Keating <geoffk@redhat.com>
36609
36610 * ggc.h: Don't include varray.h. Rearrange functions to be more
36611 organized.
36612 (ggc_add_root): Delete.
36613 (ggc_mark_rtx): Delete.
36614 (ggc_mark_tree): Delete.
36615 (struct ggc_statistics): Remove contents.
36616 * ggc-common.c: Remove unneeded includes.
36617 (struct ggc_root): Delete.
36618 (roots): Delete.
36619 (ggc_add_root): Delete.
36620 (ggc_mark_roots): Don't mark `roots'. Call ggc_mark_stringpool.
36621 (ggc_print_common_statistics): Remove most of the contents.
36622 * Makefile.in (GGC_H): No longer uses varray.h.
36623 (ggc-common.o): Update dependencies.
36624 (c-parse.o): Add varray.h to dependencies.
36625 (c-common.o): Add varray.h.
36626 * stringpool.c (mark_ident): Use mangled name for tree marker routine.
36627 (mark_ident_hash): Rename to ggc_mark_stringpool.
36628 (init_stringpool): Don't use ggc_add_root.
36629 * c-parse.in: Include varray.h.
36630 * c-common.c: Include varray.h.
36631 * objc/Make-lang.in (objc-act.o): Add varray.h.
36632 * objc/objc-act.c: Include varray.h.
36633
36634 2002-07-25 Geoffrey Keating <geoffk@redhat.com>
36635
36636 * dwarf2out.c (dw_cfi_oprnd2_desc): Fix ISO-only function definition.
36637 (dw_cfi_oprnd1_desc): Likewise.
36638
36639 2002-07-17 Geoffrey Keating <geoffk@redhat.com>
36640
36641 * config/alpha/alpha.c (struct alpha_links): Use gengtype to mark;
36642 move out of ifdef.
36643 (alpha_links): Use gengtype to mark; move out of ifdef.
36644 (mark_alpha_links_node): Delete.
36645 (mark_alpha_links): Delete.
36646 (alpha_need_linkage): Use GGC to allocate splay tree, struct
36647 alpha_links, strings. Don't use ggc_add_root.
36648 * ggc-common.c (ggc_splay_alloc): New.
36649 (ggc_splay_dont_free): New.
36650 * ggc.h (ggc_mark_rtx): Update for changed name mangling.
36651 (ggc_mark_tree): Likewise.
36652 (splay_tree_new_ggc): New.
36653 (ggc_splay_alloc): Declare.
36654 (ggc_splay_dont_free): Declare.
36655 * dwarf2asm.c: Include gt-dwarf2asm.h.
36656 (mark_indirect_pool_entry): Delete.
36657 (mark_indirect_pool): Delete.
36658 (indirect_pool): Use gengtype to mark.
36659 (dw2_force_const_mem): Don't use ggc_add_root.
36660 * Makefile.in (dwarf2asm.o): Depend on gt-dwarf2asm.h.
36661 (GTFILES): Add SPLAY_TREE_H, dwarf2asm.c.
36662 (gt-dwarf2asm.h): Depend on s-gtype.
36663
36664 2002-07-08 Geoffrey Keating <geoffk@redhat.com>
36665
36666 * tree.h (union tree_type_symtab): Mark `die' field.
36667 * Makefile.in (dwarf2out.o): Update dependencies.
36668 * dwarf2out.c: Use GGC to allocate all structures. Convert to htab_t
36669 hash tables.
36670 (dw_cfi_oprnd1_desc): New function.
36671 (dw_cfi_oprnd2_desc): New function.
36672 (indirect_string_alloc): Delete.
36673 (debug_str_do_hash): New function.
36674 (debug_str_eq): New function.
36675 (mark_limbo_die_list): Delete.
36676 (dwarf2out_init): Don't call ggc_add_root.
36677
366782003-01-09 Vladimir Makarov <vmakarov@redhat.com>
36679
36680 The following changes are merged from itanium-sched-branch:
36681
36682 2003-01-08 David Edelsohn <edelsohn@gnu.org>
36683
36684 * doc/md.texi: Clarify assignment of units to automata description.
36685
36686 2003-01-08 Vladimir Makarov <vmakarov@redhat.com>
36687
36688 * genautomata.c (unit_decl): Remove members
36689 `the_same_automaton_unit' and
36690 `the_same_automaton_message_reported_p'.
36691 (process_unit_to_form_the_same_automaton_unit_lists,
36692 form_the_same_automaton_unit_lists_from_regexp,
36693 form_the_same_automaton_unit_lists, the_same_automaton_lists):
36694 Remove them.
36695 (annotation_message_reported_p): New global variable.
36696 (check_unit_distribution_in_reserv,
36697 check_regexp_units_distribution): New functions.
36698 (check_unit_distributions_to_automata): Rewrite it.
36699
36700 2003-01-04 Vladimir Makarov <vmakarov@redhat.com>
36701
36702 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
36703 Use continue instead of break if cycle is too big.
36704
36705 2002-12-20 Vladimir Makarov <vmakarov@redhat.com>
36706
36707 * genautomata.c (check_unit_distributions_to_automata): Output at
36708 most one message for a unit.
36709 (process_unit_to_form_the_same_automaton_unit_lists): Check
36710 automaton of units instead of units themself.
36711
36712 * doc/md.texi: Describe the constraint about assigning unit to
36713 automata.
36714
36715 2002-12-20 Jan Hubicka <jH@suse.cz>
36716 Vladimir Makarov <vmakarov@redhat.com>
36717
36718 * genautomata.c (unit_decl): Add new members `min_occ_cycle_num'
36719 and `in_set_p'.
36720 (gen_cpu_unit): Initialize the new members.
36721 (process_regexp_cycles): Calculate minimal finish cycle too. Set
36722 up `min_occ_cycle_num'.
36723 (evaluate_max_reserv_cycles): Change the function call.
36724 (CLEAR_BIT): New macro.
36725 (states_union, state_shift): Use the mask.
36726 (initiate_excl_sets, form_reserv_sets_list): Set up `in_set_p'.
36727 (form_reservs_matter): New function.
36728 (make_automaton): Call the function and use the mask.
36729 (estimate_one_automaton_bound): Take `min_occ_cycle_num' into
36730 account.
36731
36732 2002-12-17 Vladimir Makarov <vmakarov@redhat.com>
36733
36734 * config/ia64/itanium2.md (lfetch): Change the insn reservation.
36735
36736 2002-12-17 Vladimir Makarov <vmakarov@redhat.com>
36737
36738 * config/ia64/ia64.c (bundling): Try to insert 2 nops for M insn
36739 for Itanium.
36740
36741 2002-12-17 Vladimir Makarov <vmakarov@redhat.com>
36742
36743 * config/ia64/ia64.c (ia64_override_options): Make itanium2 as
36744 default cpu.
36745
36746 2002-12-17 Vladimir Makarov <vmakarov@redhat.com>
36747 2002-10-31 Dale Johannesen <dalej@apple.com>
36748
36749 * haifa-sched.c (find_set_reg_weight): New function.
36750 (find_insn_reg_weight): Use the new function.
36751 (schedule_block): Do sorting ready queue always
36752 after insn issue.
36753
36754 2002-11-27 Vladimir Makarov <vmakarov@redhat.com>
36755
36756 * config/ia64/ia64.c (bundling): Use MFI template instead of MLX.
36757
36758 2002-11-19 Vladimir Makarov <vmakarov@redhat.com>
36759
36760 * haifa-sched.c (choice_entry): New structure.
36761 (choice_stack, cycle_issued_insns): New variables.
36762 (max_issue): Rewrite it.
36763 (choose_ready): Set up ready_try for unknown insns too.
36764 (schedule_block): Allocate and free choice_stack. Set up
36765 and modify cycle_issued_insns.
36766
36767 * config/ia64/ia64.c (issue_nops_and_insn): Combine insn issue
36768 with and without filling the bundle.
36769 (bundling): Combine calls of issue_nops_and_insn.
36770
36771 2002-10-17 Vladimir Makarov <vmakarov@redhat.com>
36772
36773 * config/ia64/itanium1.md: New file.
36774
36775 * config/ia64/itanium2.md: New file.
36776
36777 * config/ia64/ia64.md: Move DFA descriptions into the new files.
36778 Remove the old pipeline description.
36779
36780 * config/ia64/ia64.c (ia64_override_options): Add aliases of
36781 itanium processor names.
36782
36783 2002-10-16 Vladimir Makarov <vmakarov@redhat.com>
36784
36785 * config/ia64/ia64.c (bundling): Print states for Itanium2 too.
36786 (ia64_reorg): Set up queried unit codes for Itanium2 too.
36787
36788 * config/ia64/ia64.md: Add descriptions for Itanium2.
36789
36790 2002-10-08 Vladimir Makarov <vmakarov@redhat.com>
36791
36792 * config/ia64/ia64.h (processor_type): New enumeration.
36793 (ia64_tune, ia64_tune_string): New external declarations.
36794 (TARGET_OPTIONS): Add option `tune='.
36795
36796 * config/ia64/ia64.c (ia64_tune, ia64_tune_string): New global
36797 variables.
36798 (ia64_override_options): Set up `ia64_tune'.
36799 (ia64_sched_reorder2): Set up `clocks' only for Itanium.
36800 (ia64_dfa_new_cycle): Set up `add_cycles' only for Itanium.
36801 (bundling): Add nops for MM-insns only for Itanium.
36802 (ia64_reorg): Allocate and free `clocks' and `add_cycles' only for
36803 Itanium.
36804
36805 * config/ia64/ia64.md (cpu): New attribute.
36806 (DFA description): Enable it only for Itanium.
36807
36808 2002-10-08 Vladimir Makarov <vmakarov@redhat.com>
36809 Richard Henderson <rth@redhat.com>
36810
36811 * config/ia64/ia64.h (MASK_TUNE_STOP_BITS): Rename it to
36812 MASK_EARLY_STOP_BITS.
36813 (TARGET_TUNE_STOP_BITS): Rename it to TARGET_EARLY_STOP_BITS.
36814 (TARGET_SWITCHES): Rename option `tune-stop-bits' to
36815 `early-stop-bits'.
36816
36817 * config/ia64/ia64.c (ia64_dfa_new_cycle,
36818 final_emit_insn_group_barriers): Use TARGET_EARLY_STOP_BITS
36819 instead of TARGET_TUNE_STOP_BITS.
36820
36821 * doc/invoke.texi: Rename option `-mtune-stop-bits' to
36822 `-mearly-stop-bits'.
36823
36824 * config/ia64/ia64.c (automata_option "v"): Comment it.
36825
36826 2002-10-07 Vladimir Makarov <vmakarov@redhat.com>
36827
36828 * config/ia64/ia64.h (MASK_TUNE_STOP_BITS, TARGET_TUNE_STOP_BITS):
36829 New macros.
36830 (TARGET_SWITCHES): Add entries for the new option.
36831
36832 * config/ia64/ia64.c (dfa_stop_insn, last_scheduled_insn, rtx
36833 dfa_pre_cycle_insn, ia64_nop): Don't make them as roots for GC.
36834 (stops_p, stop_before_p, clocks_length, clocks, add_cycles): New
36835 global variables.
36836 (ia64_sched_reorder2): Set up `clocks'.
36837 (ia64_variable_issue): Set up `stops_p' and reset `stop_before_p'.
36838 (ia64_dfa_new_cycle): Set up add_cycle. Permit sorting ready
36839 queue when TARGET_TUNE_STOP_BITS.
36840 (bundling): Insert additional nops for MM-insns.
36841 (final_emit_insn_group_barriers): Add insertion of stop bits
36842 according `stops_p'.
36843 (ia64_reorg): Initiate the new varibales.
36844
36845 * doc/invoke.texi: Add description of option `-mtune-stop-bits'.
36846
36847 2002-10-02 Vladimir Makarov <vmakarov@redhat.com>
36848
36849 * haifa-sched.c (schedule_block): Modify INSN_TICK of depended
36850 insns at the end of block insn scheduling.
36851
36852 2002-09-30 Vladimir Makarov <vmakarov@redhat.com>
36853
36854 * sched-deps.c (remove_dependence, group_leader): Remove it.
36855 (add_dependence): Add dependence to group leader to.
36856 (set_sched_group_p): Add dependence to the first insn of the
36857 schedule group too.
36858 (sched_analyze_insn): Make dependence to jump as anti-dependence.
36859 Change true dependence by anti-dependence when
36860 `reg_pending_barrier'.
36861
36862 * sched-rgn.c (init_ready_list, can_schedule_ready_p,
36863 add_branch_dependences): Ignore schedule groups.
36864
36865 * sched-ebb.c (init_ready_list): Ditto.
36866
36867 * (move_insn, set_priorities): Ditto.
36868
36869 * config/ia64/ia64.c (ia64_sched_init): Check that schedule group
36870 flag is clear after reload.
36871 (adjust_cost): Change cost only for output dependencies.
36872
36873 * config/ia64/ia64.md: Add more insns into bypass for MM-insns.
36874
36875 2002-09-26 Vladimir Makarov <vmakarov@redhat.com>
36876
36877 * Makefile.in (sched-ebb.o): Add `$(TARGET_H)' to the entry.
36878
36879 * target.h (gcc_target): Add member
36880 `dependencies_evaluation_hook'.
36881
36882 * target-def.h (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New
36883 macro.
36884 (TARGET_SCHED): Add initiatialization of the new member.
36885
36886 * sched-ebb.c: Include `target.h'.
36887 (schedule_ebb): Call `dependencies_evaluation_hook'.
36888
36889 * sched-rgn.c (schedule_region): Call
36890 `dependencies_evaluation_hook'.
36891
36892 * config/ia64/ia64.c (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
36893 New macro.
36894 (ia64_dependencies_evaluation_hook): New function.
36895
36896 * doc/tm.texi (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
36897 Describe the new hook.
36898
36899 2002-09-25 Vladimir Makarov <vmakarov@redhat.com>
36900
36901 * target.h (gcc_target): Add members
36902 `first_cycle_multipass_dfa_lookahead_guard' and `dfa_new_cycle'.
36903
36904 * target-def.h (TARGET_SCHED_DFA_NEW_CYCLE,
36905 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): New
36906 macros.
36907 (TARGET_SCHED): Add initiatialization of the new members.
36908
36909 * haifa-sched.c (schedule_insn): Update last_clock_var for the 1st
36910 insn scheduling too.
36911 (choose_ready): Use `first_cycle_multipass_dfa_lookahead_guard' to
36912 initialize `ready_try'.
36913 (schedule_block): Use `dfa_new_cycle'. Sort `ready' only unless
36914 `dfa_new_cycle' says not to do it.
36915
36916 * config/ia64/ia64.md: Add DFA Itanium 1 description for insn
36917 bundling.
36918
36919 * config/ia64/ia64.h (CPU_UNITS_QUERY): New macro.
36920
36921 * config/ia64/ia64.c: Include `hashtab.h'.
36922 (ia64_first_cycle_multipass_dfa_lookahead_guard,
36923 ia64_dfa_new_cycle, final_emit_insn_group_barriers,
36924 ia64_dfa_sched_reorder, get_free_bundle_state, free_bundle_state,
36925 initiate_bundle_states, finish_bundle_states, bundle_state_hash,
36926 bundle_state_eq_p, insert_bundle_state,
36927 initiate_bundle_state_table, finish_bundle_state_table,
36928 try_issue_nops, try_issue_insn, issue_nops_and_insn, get_max_pos,
36929 get_template, get_next_important_insn, bundling): New functions.
36930 (ia64_internal_sched_reorder): Remove it.
36931 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
36932 TARGET_SCHED_DFA_NEW_CYCLE): New macros.
36933 (ia64_safe_itanium_requires_unit0): Remove it.
36934 (group_barrier_needed_p): Place group barrier right before a real
36935 insn.
36936 (bundle, ia64_packet, NR_PACKETS, type_names, packets, packets):
36937 Remove them.
36938 (bundle_name): New variable.
36939 (_0mii_, _0mmi_, _0mfi_, _0mmf_, _0bbb_, _0mbb_, _0mib_, _0mmb_,
36940 _0mfb_, _0mlx_, _1mii_, _1mmi_, _1mfi_, _1mmf_, _1bbb_, _1mbb_,
36941 _1mib_, _1mmb_, _1mfb_, _1mlx_, pos_1, pos_2, pos_3, pos_4, pos_5,
36942 pos_6, dfa_stop_insn, last_scheduled_insn, dfa_state_size,
36943 temp_dfa_state, prev_cycle_state): New global variables.
36944 (insn_matches_slot, maybe_rotate, finish_last_head,
36945 rotate_one_bundle, rotate_one_bundles, nop_cycles_until,
36946 cycle_end_fill_slots, packet_matches_p, get_split, find_best_insn,
36947 find_best_packet, itanium_reorder, dump_current_packet,
36948 schedule_stop, gen_nop_type, ia64_emit_nops): Remove them.
36949 (sched_data, sched_ready, sched_types): Remove them.
36950 (ia64_sched_init): Initiate only `last_scheduled_insn' and call
36951 `init_insn_group_barriers'.
36952 (ia64_sched_reorder, ia64_sched_reorder2): Call
36953 ia64_dfa_sched_reorder.
36954 (ia64_variable_issue): Rewrite it.
36955 (bundle_state): New structure.
36956 (index_to_bundle_states, bundle_states_num,
36957 allocated_bundle_states_chain, free_bundle_state_chain): New
36958 global variables.
36959 (ia64_sched_finish): Add stop bits and call `bundling' after the
36960 2nd insn scheduling.
36961 (ia64_use_dfa_pipeline_interface): Return zero always.
36962 (ia64_first_cycle_multipass_dfa_lookahead): Return 6 for the 2nd
36963 insn scheduling.
36964 (ia64_init_dfa_pre_cycle_insn): Initialize `dfa_state_size',
36965 `temp_dfa_state', `prev_cycle_state', and `dfa_stop_insn'.
36966 (ia64_reorg): Add bundling insns.
36967
36968 * doc/tm.texi
36969 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
36970 TARGET_SCHED_DFA_NEW_CYCLE): Describe the new hooks.
36971
36972 2002-09-23 Vladimir Makarov <vmakarov@redhat.com>
36973
36974 * config/ia64/ia64.md: Add Itanium1 DFA description.
36975 (itanium_class): Add `nop' and `pre_cycle'. Add
36976 define_function_unit for `nop'.
36977 (nop): Change attribute `itanium_class'.
36978 (pre_cycle): New define_insn.
36979
36980 * config/ia64/ia64-protos.h (bundling_p): New external variable.
36981 (ia64_st_address_bypass_p, ia64_ld_address_bypass_p,
36982 ia64_produce_address_p): New function prototypes.
36983
36984 * config/ia64/ia64.c (bundling_p): New global variable.
36985 (ia64_use_dfa_pipeline_interface,
36986 ia64_first_cycle_multipass_dfa_lookahead,
36987 ia64_init_dfa_pre_cycle_insn, ia64_dfa_pre_cycle_insn): New
36988 functions.
36989 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
36990 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
36991 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
36992 TARGET_SCHED_DFA_PRE_CYCLE_INSN): New macros.
36993 (ia64_sched_init, ia64_sched_reorder, ia64_sched_reorder2,
36994 ia64_variable_issue, ia64_sched_finish): Do nothing before reload.
36995 (dfa_pre_cycle_insn): New variable.
36996
36997 2002-09-20 Vladimir Makarov <vmakarov@redhat.com>
36998
36999 * rtl.def (FINAL_PRESENCE_SET, FINAL_ABSENCE_SET): New
37000 constructions.
37001
37002 * genattrtab.h (gen_final_presence_set, gen_final_absence_set):
37003 New function prototypes.
37004
37005 * genattrtab.c (main): Process the new constructions.
37006
37007 * genautomata.c (gen_presence_absence_set,
37008 process_presence_absence_names, process_presence_absence_patterns,
37009 add_presence_absence, check_absence_pattern_sets): Add parameter
37010 `final_p'.
37011 (unit_decl): Add new members `final_presence_list' and
37012 `final_absence_list'.
37013 (unit_pattern_rel_decl): Add new member `final_p'.
37014 (gen_final_presence_set, gen_final_absence_set): New functions.
37015 (process_decls): Use member `final_p'.
37016 (temp_reserv): New global variable.
37017 (reserv_sets_are_intersected): Add processing `final_presence_set'
37018 and `final_absence_set'.
37019 (initiate_states): Allocate `temp_reserv'.
37020 (unit_final_presence_set_table, unit_final_absence_set_table): New
37021 gloabal variables.
37022 (initiate_presence_absence_pattern_sets): Initiate them.
37023 (NDFA_to_DFA): Fix typo.
37024 (output_description): Output `final_presence_set' and
37025 `final_absence_set'.
37026
37027 * doc/md.texi (final_presence_set, final_absence_set): Describe
37028 them.
37029
37030 2002-09-20 Vladimir Makarov <vmakarov@redhat.com>
37031
37032 * genautomata.c (transform_3): Process a missing case (nothing on
37033 unit place).
37034
37035 2002-09-20 Vladimir Makarov <vmakarov@redhat.com>
37036
37037 * rtl.def (DEFINE_QUERY_CPU_UNIT, AUTOMATA_OPTION): Change
37038 comments about queried units and the minimization.
37039
37040 * doc/md.texi: Ditto.
37041
37042 * genautomata.c (create_composed_state): Return nonzero if the new
37043 state has been created.
37044 (first_cycle_unit_presence): New function.
37045 (state_is_differed): Add new parameter. Use the new function.
37046 Take queried units into account.
37047 (partition_equiv_class): Pass additional parameter to
37048 `state_is_differed'.
37049 (merge_states): Process composed states too.
37050 (build_automaton, create_automata, output_min_issue_delay_table,
37051 output_tables, output_statistics): Output more information.
37052 (output_reserved_units_table): Use function
37053 `first_cycle_unit_presence'.
37054 (output_tables): Output table of queried units even if the
37055 minimization is switched on.
37056 (write_automata): Output code for querying units even if the
37057 minimization is switched on.
37058
37059 2002-09-19 Vladimir Makarov <vmakarov@redhat.com>
37060
37061 * rtl.def (PRESENCE_SET, ABSENCE_SET): Add comments about extended
37062 syntax of the constructions.
37063
37064 * doc/md.texi (PRESENCE_SET, ABSENCE_SET): Add description of
37065 extended syntax of the constructions.
37066
37067 * genautomata.c (unit_rel_decl): Rename it to
37068 `unit_pattern_rel_decl'.
37069 (pattern_set_el, pattern_reserv): New structures.
37070 (pattern_set_el_t, pattern_reserv_t): New types.
37071 (gen_presence_absence_set): New function.
37072 (process_presence_absence): Remove it.
37073 (process_presence_absence_names,
37074 process_presence_absence_patterns): New functions.
37075 (get_presence_absence_set): Remove it.
37076 (initiate_presence_absence_sets): Rename it on
37077 `initiate_presence_absence_pattern_sets'. Use new function
37078 `form_reserv_sets_list'.
37079 (form_reserv_sets_list, check_presence_pattern_sets,
37080 check_absence_pattern_sets, output_pattern_set_el_list): New
37081 functions.
37082 (unit_decl): Change types of members `presence_list' and
37083 `absence_list'.
37084 (unit_rel_decl): Rename member `names_num' to `all_names_num'.
37085 (decl): Change types of members `excl', `presence', and `absence'.
37086 (get_str_vect): Rename `par_flag' to `paren_p'. Add null element
37087 at the end of the vector.
37088 (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
37089 gen_automaton, gen_regexp_repeat, gen_regexp_allof,
37090 gen_regexp_oneof, gen_regexp_sequence): Use boolean values.
37091 (gen_presence_set, gen_absence_set): Use new function
37092 `gen_presence_absence_set'.
37093 (add_presence_absence): Process `pattern_list' instead of
37094 `source_list'.
37095 (process_decls): USe new functions
37096 `process_presence_absence_names' and
37097 `process_presence_absence_patterns'.
37098 (reserv_sets_are_intersected): Use new function
37099 `check_presence_pattern_sets'.
37100 (presence_set, absence_set): Remove them.
37101 (unit_presence_set_table, unit_absence_set_table): New global
37102 variables.
37103 (output_description): Use new function
37104 `output_pattern_set_el_list'.
37105 (generate): Use `initiate_presence_absence_pattern_sets'.
37106
37107 2002-09-18 Vladimir Makarov <vmakarov@redhat.com>
37108
37109 * genattr.c (main): Add output of prototype of new interface
37110 function `dfa_clean_insn_cache'.
37111
37112 * genautomata.c (output_dfa_clean_insn_cache_func): New function.
37113 (DFA_CLEAN_INSN_CACHE_FUNC_NAME): New macro.
37114 (output_dfa_start_func): Use function `dfa_clean_insn_cache' in
37115 the generated code.
37116 (write_automata): Call the new function.
37117
371182003-01-09 Jan Hubicka <jh@suse.cz>
37119
37120 * i386.md (unit, prefix_0f, memory attributes): Hanlde sseicvt
37121 correctly.
37122
371232003-01-09 Paolo Carlini <pcarlini@unitus.it>
37124
37125 * doc/tm.texi (EXTRA_ADDRESS_CONSTRAINT): Fix typo.
37126
371272003-01-09 J"orn Rennecke <joern.rennecke@superh.com>
37128
37129 * defaults.h (EXTRA_MEMORY_CONSTRAINT): Add STR argument.
37130 (EXTRA_ADDRESS_CONSTRAINT): Likewise.
37131 (CONSTRAINT_LEN): Provide default definition.
37132 (CONST_OK_FOR_CONSTRAINT_P): Likewise.
37133 (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Likewise.
37134 (EXTRA_CONSTRAINT_STR): Likewise.
37135 (REG_CLASS_FROM_CONSTRAINT): Define.
37136 * genoutput.c (check_constraint_len, constraint_len): New functions.
37137 (validate_insn_alternatives): Check CONSTRAINT_LEN for each
37138 constraint / modifier.
37139 (gen_insn): Call check_constraint_len.
37140 * local-alloc.c (block_alloc): Update to use new macros / pass
37141 second argument to EXTRA_{MEMORY,ADDRESS}_CONSTRAINT.
37142 * ra-build.c (handle_asm_insn): Likewise.
37143 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
37144 (constrain_operands, peep2_find_free_register): Likewise.
37145 * regclass.c (record_operand_costs, record_reg_classes): Likewise.
37146 * regmove.c (find_matches): Likewise.
37147 * reload.c (push_secondary_reload, find_reloads): Likewise.
37148 (alternative_allows_memconst): Likewise.
37149 * reload1.c (maybe_fix_stack_asms): Likewise.
37150 (reload_cse_simplify_operands): Likewise.
37151 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
37152 * doc/tm.texi (CONSTRAINT_LEN, REG_CLASS_FROM_CONSTRAINT): Document.
37153 (CONST_OK_FOR_CONSTRAINT_P): Likewise.
37154 (CONST_DOUBLE_OK_FOR_CONSTRAINT_P, EXTRA_CONSTRAINT_STR): Likewise.
37155 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Add STR argument.
37156 * config/s390/s390.h (EXTRA_MEMORY_CONSTRAINT): Likewise.
37157
37158 * sh.h (OVERRIDE_OPTIONS): Allow first scheduling pass for SH5.
37159
371602003-01-09 Kazu Hirata <kazu@cs.umass.edu>
37161
37162 * config/h8300/h8300.md (*extzv_1_r_h8300): Correct the insn
37163 length.
37164 (*extzv_1_r_h8300hs): Likewise.
37165 (*extzv_1_r_inv_h8300): Likewise.
37166 (*extzv_1_r_inv_h8300hs): Likewise.
37167
371682003-01-09 Kazu Hirata <kazu@cs.umass.edu>
37169
37170 * config/h8300/h8300.h (PREDICATE_CODES): New.
37171
371722003-01-09 Kazu Hirata <kazu@cs.umass.edu>
37173
37174 * config/h8300/h8300.md (*addsi3_upper): New.
37175 (*iorsi3_shift): Likewise.
37176 (two splitters): Likewise.
37177 (*addsi3_shift): Likewise.
37178 (two splitters): Likewise.
37179
371802003-01-09 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
37181
37182 * Makefile.in (optabs.o): Add dependency on basic-block.h.
37183 * basic-block.h (control_flow_insn_p): Fuction was exported.
37184 * cfgbuild.c (control_flow_insn_p): Fuction was made non-static.
37185 * optabs.c (emit_libcall_block): Emit REG_LIBCALL and REG_RETVAL
37186 notes only when the region is contained in a single basic block.
37187
371882003-01-09 Eric Botcazou <ebotcazou@libertysurf.fr>
37189
37190 PR inline-asm/8832
37191 * tree.h (expand_asm): New prototype.
37192 * stmt.c (expand_asm): Set the MEM_VOLATILE_P flag if instructed
37193 to do so.
37194 * c-semantics (genrtl_asm_stmt): Pass the RID_VOLATILE qualifier
37195 down to expand_asm.
37196 * c-typeck.c (simple_asm_stmt): Set the RID_VOLATILE qualifier.
37197 * rtlanal.c (volatile_insn_p) [ASM_INPUT]: Test the MEM_VOLATILE_P flag.
37198 (volatile_refs_p) [ASM_INPUT]: Likewise.
37199 (side_effects_p) [ASM_INPUT]: Likewise.
37200
372012003-01-09 Jan Hubicka <jh@suse.cz>
37202
37203 * i386.md (*mul*): FIx constraints; remove confused comment; fix
37204 athlon_decode attributes
37205 (imul/k8 optimization peep2s): New.
37206
37207 * athlon.md (athlon_ssecmp*): Handle ssecomi as well.
37208 * i386.md (type attribute): Add ssecomi.
37209 (unit, memory, prefix attributes): Handle ssecomi.
37210 (cvt?2? patterns): Fix athlon_decode attribute
37211 (comi patterns): Set attribute to ssecomi.
37212
37213 PR target/8343
37214 * m68k.md (umulsidi, mulsidi expanders): Use register operand.
37215
372162003-01-09 Richard Sandiford <rsandifo@redhat.com>
37217
37218 * config/mips/mips.h (PREDICATE_CODES): Add ADDRESSOF for predicates
37219 that match register_operands.
37220 * config/mips/mips.c (reg_or_0_operand, true_reg_or_0_operand): Make
37221 register_operand the default case.
37222
372232003-01-09 Eric Botcazou <ebotcazou@libertysurf.fr>
37224
37225 PR c/8032
37226 * c-typeck.c (process_init_element) [RECORD_TYPE]: For
37227 an empty element, do not advance the pointer to unfilled
37228 fields if there are pending initializers.
37229
372302003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
37231
37232 * Makefile.in (ORDINARY_FLAGS_TO_PASS): Also pass DESTDIR.
37233 (install-gcc-tooldir, install-cpp, installdirs,
37234 install-common, install-driver, install-info, install-man,
37235 install-headers, install-include-dir, install-headers-tar,
37236 install-headers-cpio, install-headers-cp, install-mkheaders,
37237 install-collect2, uninstall): Prepend $(DESTDIR) to
37238 destination paths in all (un)installation commands.
37239 (install-driver): Rewrite $(LN) commands to support DESTDIR
37240 with "ln" as well as with "ln -s".
37241 (installdirs): Simply use mkinstalldirs.
37242 (install-libgcc, install-multilib): Also pass DESTDIR.
37243 * mklibgcc.in: Prepend $(DESTDIR) to $(libsubdir) in the
37244 installation destination variable ldir.
37245 * config/alpha/t-osf4, config/arm/t-netbsd,
37246 config/ia64/t-hpux, config/mips/t-iris5-6,
37247 config/pa/t-hpux-shlib, config/rs6000/t-aix43,
37248 config/rs6000/t-aix52, config/t-slibgcc-elf-ver,
37249 config/t-slibgcc-sld: Prepend $$(DESTDIR) to $$(slibdir)
37250 in the definition of SHLIB_INSTALL.
37251 * config/arc/t-arc (install-multilib-arc): Prepend $(DESTDIR) to
37252 $(libsubdir) in the installation commands.
37253
372542003-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
37255
37256 * config/sh/sh.h (CASE_VECTOR_MODE): Use SImode for a
37257 non-optimizing compile.
37258 (ASM_OUTPUT_ADDR_VEC_ELT): Use .long for a non-optimizing
37259 compile.
37260
372612003-01-08 Douglas B Rupp <rupp@gnat.com>
37262
37263 * config/i386/i386.c (ix86_attribute_table): Add new attributes
37264 ms_struct and gcc_struct.
37265 (ix86_handle_struct_attribute): New function.
37266 (ix86_ms_bitfield_layout_p): Update to take new attributes
37267 into account.
37268 * doc/extend.texi: Document new attributes.
37269 * testsuite/gcc.dg/bf-ms-attrib.c: New test.
37270
372712003-01-08 Danny Smith <dannysmith@users.sourceforge.net>
37272
37273 PR optimization/8750
37274 * config/i386/i386.c (ix86_expand_prologue): Don't allow
37275 scheduling pass to move insns across __alloca call.
37276
372772003-01-08 Dale Johannesen <dalej@apple.com>
37278
37279 * config/rs6000/rs6000.md: Replace *store_multiple_string
37280 with *stmsi[3-8].
37281
372822003-01-08 Jeff Sturm <jsturm@one-point.com>
37283
37284 PR target/9210
37285 * config/rs6000/rs6000.c (rs6000_elf_encode_section_info):
37286 Set SYMBOL_REF_FLAG on local data sym_ref.
37287
372882003-01-08 Dale Johannesen <dalej@apple.com>
37289
37290 * function.c (assign_parms): Don't set pretend_args_size if
37291 REG_PARM_STACK_SPACE.
37292 config/rs6000/rs6000.c (setup_incoming_varargs): Don't set
37293 pretend_args_size.
37294
372952003-01-08 Nathanael Nerode <neroden@gcc.gnu.org>
37296
37297 * gcc.hlp: Delete.
37298
372992003-01-09 Jan Hubicka <jh@suse.cz>
37300
37301 * i386.c (ix86_expand_int_addcc): Fix thinko.
37302
373032003-01-08 David Edelsohn <edelsohn@gnu.org>
37304
37305 * config/rs6000/rs6000.h (FUNCTION_MODE): Always use SImode.
37306 * config/rs6000/rs6000.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Redefine
37307 as hook_bool_tree_hwi_hwi_tree_true.
37308 (rs6000_emit_allocate_stack): Use TARGET_32BIT.
37309 (rs6000_emit_epilogue): Same.
37310 (rs6000_output_mi_thunk): Re-implement as RTL.
37311 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Call
37312 xcoffout_declare_function if any debugging enabled.
37313
373142003-01-08 Chris Demetriou <cgd@broadcom.com>
37315
37316 * config.gcc (mipsisa32r2-*-elf*, mipsisa32r2el-*-elf*): New
37317 targets, to support MIPS32 Release 2 (MIPS32R2) configurations.
37318 * config/mips/mips.h (enum processor_type): Rename
37319 PROCESSOR_R4KC to PROCESSOR_4KC, PROCESSOR_R5KC to
37320 PROCESSOR_5KC, and PROCESSOR_R20KC to PROCESSOR_20KC.
37321 Add PROCESSOR_M4K.
37322 (TARGET_MIPS4KC, TARGET_MIPS5KC): Update for the renaming.
37323 (ISA_MIPS32R2): New define.
37324 (GENERATE_MULT3_SI, ISA_HAS_CONDMOVE, ISA_HAS_8CC)
37325 (ISA_HAS_MADD_MSUB, ISA_HAS_CLZ_CLO)
37326 (ISA_HAS_PREFETCH): Add support for MIPS32R2.
37327 (MIPS_ISA_DEFAULT): Likewise. Also, fix indentation.
37328 (TARGET_CPU_CPP_BUILTINS): Add support for MIPS32R2. Add new
37329 predefine __mips_isa_rev for MIPS32, MIPS32R2, and MIPS64.
37330 (ISA_HAS_ROTR_SI): Add support for MIPS32R2, and avoid if
37331 compiling MIPS16 code.
37332 (ISA_HAS_ROTR_DI): Do not use if compiling MIPS16 code, and fix
37333 comment.
37334 (ISA_HAS_SEB_SEH): New define.
37335 (ASM_SPEC, LINK_SPEC): Pass -mips32r2 to assembler and linker.
37336 * config/mips/mips.c (mips_cpu_info_table): Adjust for enum
37337 processor_type value renaming. Add support for MIPS32R2.
37338 Clean up comments, and move "sb1" entry with other MIPS64 CPU
37339 entries.
37340 (override_options): Reimplement -mipsN option handling so that
37341 it will work correctly for -mips32r2. Avoid branch-likely
37342 instructions on MIPS32R2.
37343 * config/mips/mips.md (mulsi3_mult3): Add support for MIPS32R2.
37344 (extendhisi2): Use extendhisi2_hw if ISA_HAS_SEB_SEH.
37345 (extendqisi2): Use extendqisi2_hw if ISA_HAS_SEB_SEH.
37346 (extendhisi2_hw, extendqisi2_hw): New.
37347 * config/mips/netbsd.h (TARGET_CPU_CPP_BUILTINS): Add support
37348 for MIPS32R2. Add new predefine __mips_isa_rev for MIPS32,
37349 MIPS32R2, and MIPS64.
37350 (LINK_SPEC): Pass -mips32r2 to linker.
37351 * config/mips/t-isa3264: Built -mips32r2 multilibs.
37352 * doc/invoke.texi (MIPS Options): Add -mips32r2, add support
37353 for mips32r2 in the -march description. Alphabetically sort
37354 CPU names in the -march description. Add long-missed -mips32
37355 and -mips64 to MIPS option summary.
37356
37357 * config.gcc: Update copyright years to include 2003.
37358 * config/mips/mips.c: Likewise.
37359 * config/mips/mips.h: Likewise.
37360 * config/mips/mips.md: Likewise.
37361 * config/mips/netbsd.h: Likewise.
37362 * doc/invoke.texi: Likewise.
37363
373642003-01-08 Andreas Schwab <schwab@suse.de>
37365
37366 * aclocal.m4 (gcc_AC_INITFINI_ARRAY): Fix spelling of cache
37367 variable.
37368 * configure: Regenerated.
37369
373702003-01-08 Kazu Hirata <kazu@cs.umass.edu>
37371
37372 * config/h8300/h8300.c (output_logical_op): Replace byte/word
37373 extraction of det with b0, b1, w0, w2, etc.
37374 (compute_logical_op_length): Likewise.
37375 (compute_logical_op_cc): Likewise.
37376
373772003-01-08 Kazu Hirata <kazu@cs.umass.edu>
37378
37379 * config/h8300/h8300.h (CONSTANT_ADDRESS_P): Allow CONST and
37380 HIGH on all variants.
37381
373822003-01-08 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
37383
37384 * Makefile.in (PARTITION_H): New.
37385 (BASIC_BLOCK_H): Added hard-reg-set.h and $(PARTITION_H).
37386 * basic-block.h: Include hard-reg-set.h.
37387
373882003-01-08 Richard Earnshaw <rearnsha@arm.com>
37389
37390 * arm.h (ENABLE_XF_PATTERNS): Delete.
37391 * arm.md (addxf3, subxf3, mulxf3, divxf3, modxf3, negxf2, absxf2)
37392 (sqrtxf2, floatsixf2, fix_truncxfsi2, truncxfsf2, truncxfdf2)
37393 (extendsfxf2, extenddfxf2, movxf, cmpxf, cmpxf_insn)
37394 (cmpxf_trap): Delete.
37395 (movxf_hard_insn): Remove test of ENABLE_XF_PATTERNS.
37396
373972003-01-08 Jan Hubicka <jh@suse.cz>
37398
37399 * i386.md (adddi3_carry_rex64, subdi3_carry_rex64): Name pattern.
37400 (addhi3_carry, addqi3_carry, subhi3_carry, subqi3_carry): New patterns.
37401 (add??cc): New expanders.
37402 * i386.c (expand_int_addcc): New function.
37403 * i386-protos.h (expand_int_addcc): Declare.
37404
37405 * alias.c (memory_modified_1): New static function.
37406 (memory_modified): New static varaible.
37407 (memory_modified_in_insn_p): New global function.
37408 * rtl.h (memory_modified_in_insn_p): Declare.
37409 * rtlanal.c (modified_between_p, modified_in_p): Be smart about memory
37410 references.
37411
37412 * expr.h (emit_conditional_add): Declare.
37413
374142003-01-07 Janis Johnson <janis187@us.ibm.com>
37415
37416 PR other/8947
37417 * doc/invoke.texi (-malign-double): Explain that the option breaks
37418 binary compatibility.
37419
374202003-01-08 Andreas Schwab <schwab@suse.de>
37421
37422 * config.gcc (m68k-*-linux*): Don't set extra_parts and gnu_ld,
37423 should come from the generic *-*-linux* entry.
37424
374252003-01-07 Jan Hubicka <jh@suse.cz>
37426
37427 * cselib.c (cselib_current_insn_in_libcall): New static variable.
37428 (new_elt_loc_list, cselib_process_insn, cselib_init): Keep track on whether
37429 we are inside libcall.
37430 * cselib.h (elt_loc_list): Add in_libcall.
37431 * gcse.c (do_local_cprop): Do not copy propagate using insns
37432 in libcalls.
37433
374342003-01-07 David Edelsohn <edelsohn@gnu.org>
37435
37436 * doc/tm.texi (TARGET_SCHED_VARIABLE_ISSUE): CLOBBER and USE do
37437 not normally affect to issue rate.
37438
374392003-01-07 Jan Hubicka <jh@suse.cz>
37440
37441 * genopinit.c (optabs): Add addc_optab.
37442 * ifcvt.c (noce_try_store_flag): Rename to ...
37443 (noce_try_addcc): ... this one; handle generic conditional increment.
37444 (noce_process_if_block): Update noce_try_addcc call.
37445 * optabs.c (emit_conditional_add): New.
37446 (init_obtabs): Initialize addc_optab.
37447 * optabs.h (optab_index): Add OTI_addcc.
37448 (addcc_optab): New macro.
37449 * md.texi: Document addMcc
37450
37451 PR target/8322
37452 * i386.c (ix86_init_mmx_sse_builtins): Constify arguments of loads.
37453 * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
37454 * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
37455
37456 * reload1.c (delete_output_reload): Avoid repeated attempts
37457 to delete insn.
37458
374592003-01-07 Andreas Schwab <schwab@suse.de>
37460
37461 * configure.in: Restore CFLAGS before gcc_AC_INITFINI_ARRAY.
37462 Move --enable-initfini-array check ...
37463 * aclocal.m4 (gcc_AC_INITFINI_ARRAY): ... here. Define
37464 HAVE_INITFINI_ARRAY also when --enable-initfini-array is given.
37465 Don't AC_SUBST gcc_cv_initfinit_array. Use AC_TRY_RUN.
37466 * configure: Rebuild.
37467
374682003-01-07 Richard Henderson <rth@redhat.com>
37469
37470 * alias.c (find_base_value): Only use new_reg_base_value shortcut
37471 if the register is set once.
37472
374732003-01-07 Sylvain Pion <Sylvain.Pion@mpi-sb.mpg.de>
37474
37475 * config/i386/i386.c (ix86_init_mmx_sse_builtins):
37476 __builtin_ia32_ldmxcsr and __builtin_ia32_stmxcsr are SSE, not MXX.
37477 * config/i386/i386.md (ldmxcsr, stmxcsr): SSE, not MMX.
37478
374792003-01-07 Benjamin Kosnik <bkoz@redhat.com>
37480 Sunil Davasam <sunil.k.davasam@intel.com>
37481
37482 PR libstdc++/9076
37483 * unwind-dw2.c (execute_cfa_program): DW_CFA_undefined,
37484 DW_CFA_same_value, read next and ignore.
37485
374862003-01-07 Richard Henderson <rth@redhat.com>
37487
37488 * cfganal.c (flow_call_edges_add): Don't crash on noreturn call.
37489
374902003-01-07 Daniel Berlin <dberlin@dberlin.org>
37491
37492 * cfg.c: Include alloc-pool.h
37493 (edge_pool): New pool.
37494 (bb_pool): New pool.
37495 (first_deleted_edge): Remove.
37496 (first_deleted_block): Remove.
37497 (init_flow): Alloc/free the pools.
37498 (free_edge): Use pools.
37499 (alloc_block): Ditto.
37500 (expunge_block): Ditto.
37501 (cached_make_edge): Ditto.
37502
37503 * Makefile.in (cfg.o): Add alloc-pool.h dependency.
37504
375052003-01-07 Daniel Berlin <dberlin@dberlin.org>
37506
37507 * et-forest.c: Include alloc-pool.h.
37508 (struct et_forest): Add node_pool and occur_pool.
37509 (et_forest_create): Create the new pools.
37510 (et_forest_delete): Delete them.
37511 (et_forest_add_node): Allocate and free using pools.
37512 (et_forest_add_edge): Ditto.
37513 (et_forest_remove_node): Ditto.
37514 (et_forest_remove_edge): Ditto.
37515
37516 * Makefile.in (et-forest.o): Add alloc-pool.h dependency.
37517
375182003-01-07 Kazu Hirata <kazu@cs.umass.edu>
37519
37520 * config/h8300/h8300.c (output_logical_op): Simplify and
37521 optimize the handling of SImode.
37522 * config/h8300/h8300.c (compute_logical_op_length): Update
37523 accordingly.
37524 * config/h8300/h8300.c (compute_logical_op_cc): Likewise.
37525
375262003-01-07 Richard Sandiford <rsandifo@redhat.com>
37527
37528 * config/mips/mips.c (mips_va_arg): In the EABI code, apply the
37529 big-endian correction to indirect arguments too.
37530
375312003-01-06 Aldy Hernandez <aldyh@redhat.com>
37532
37533 Segher Boessenkool <segher@koffie.nl>
37534
37535 * config/rs6000/rs6000.c (rs6000_reg_names): Add missing registers.
37536 (alt_reg_names): Ditto, fix formatting.
37537 * config/rs6000/rs6000.h (DEBUG_REGISTER_NAMES): Fix formatting.
37538
375392003-01-06 Kazu Hirata <kazu@cs.umass.edu>
37540
37541 * config/h8300/h8300.c (final_prescan_insn): Constify uid.
37542 (output_logical_op): Constify intval and det.
37543 (compute_logical_length): Likewise.
37544 (compute_logical_cc): Likewise.
37545 (output_a_shift): Constify mask.
37546 (h8300_encode_label): Constify len.
37547
375482003-01-06 Kazu Hirata <kazu@cs.umass.edu>
37549
37550 * config/h8300/h8300.c (h8300_expand_prologue): Remove fsize.
37551 (h8300_expand_epilogue): Likewise.
37552
375532003-01-06 Aldy Hernandez <aldyh@redhat.com>
37554
37555 Segher Boessenkool <segher@koffie.nl>
37556
37557 * config/rs6000/altivec.md: Remove spaces from assembler
37558 instruction argument lists.
37559
375602003-01-07 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
37561
37562 * config/c4x/c4x.c (c4x_naked_function_p): Rename from
37563 c4x_assembler_function_p.
37564 (c4x_null_epilogue_p): Complement return value, all uses updated.
37565 (c4x_insert_attributes): Add naked.
37566 * config/c4x/c4x.md (c4x_null_epilogue_p): Changes uses.
37567 * doc/extend.texi: Update C4x function attributes.
37568
375692003-01-06 Richard Henderson <rth@redhat.com>
37570
37571 * config/alpha/alpha.c (alpha_encode_section_info): Adjust symbol_str
37572 properly when changing "local-ness".
37573 * config/alpha/alpha.md (movdi_er_high_g): Allow all symbols.
37574
375752003-01-06 Dale Johannesen <dalej@apple.com>
37576
37577 * config/darwin-protos.h: Add prototypes for new section functions.
37578
375792003-01-06 Chris Demetriou <cgd@broadcom.com>
37580
37581 * config.gcc (mipsisa32-*-elf*, mipsisa32el-*-elf*): Default ABI
37582 to EABI.
37583
375842003-01-06 Zack Weinberg <zack@codesourcery.com>
37585
37586 * hwint.h: If the current compiler has no 64-bit type at all,
37587 make HOST_WIDEST_INT 32 bits.
37588
375892003-01-06 Eric Christopher <echristo@redhat.com>
37590
37591 * config/mips/mips.md (movdf_internal2): Fix constraints.
37592
375932003-01-06 Kazu Hirata <kazu@cs.umass.edu>
37594
37595 * config/h8300/h8300.md (*twoshifts_l16_r1): New.
37596
375972003-01-06 Richard Sandiford <rsandifo@redhat.com>
37598
37599 * config/mips/mips.md (leadi): Use dla rather than la.
37600
376012003-01-06 Svein E. Seldal <Svein.Seldal@solidas.com>
37602
37603 * config/c4x/c4x.h: Updated specs for new gas format. Fixed bug
37604 in C33_FLAG. Added proper C33 support in ASM_FILE_START macro.
37605
376062003-01-06 Herman A.J. ten Brugge <hermantenbrugge@home.nl>
37607
37608 * config/c4x/c4x.h: Remove hwint.h include and HOST_WIDE_INT_PRINT_HEX
37609 redefinition.
37610
376112003-01-05 Kazu Hirata <kazu@cs.umass.edu>
37612
37613 * config/h8300/h8300.md (*extzv_8_23): New.
37614
376152003-01-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
37616
37617 * pa64-hpux.h (JCR_SECTION_NAME): Define.
37618 (PA_INIT_FRAME_DUMMY_ASM_OP): Check EH_FRAME_SECTION_NAME instead of
37619 USE_EH_FRAME_REGISTRY when defining.
37620
376212003-01-05 Kazu Hirata <kazu@cs.umass.edu>
37622
37623 * config/h8300/h8300.c (output_a_shift): Do not output a
37624 variable shift.
37625 * config/h8300/h8300.md (two splitters): New.
37626
376272003-01-05 Richard Sandiford <rsandifo@redhat.com>
37628
37629 * config/mips/mips.md: Disable the movstrsi define_split.
37630
376312003-01-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
37632
37633 * alloc-pool.c: Don't include "libiberty.h".
37634 * config/sparc/gmon-sol2.c: Include <fcntl.h>.
37635 * convert.c (convert_to_real): Hide unused variable.
37636
376372003-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
37638
37639 * Makefile.in (gtyp-gen.h): Const-ify.
37640 * gcov-dump.c (tag_table): Likewise.
37641
376422003-01-04 Bruce Korb <bkorb@gnu.org>
37643
37644 * fixinc/fixfixes.c(wrap_fix): the wrapper guard must be a function
37645 of *both* the file name and the fix name.
37646
376472003-01-04 John David Anglin <dave.anglin@nrc.ca>
37648
37649 * config.gcc (hppa*64*-*-hpux11*): Define extra_parts. Don't use
37650 collect2.
37651 * pa-hpux11.h (LDD_SUFFIX, PARSE_LDD_OUTPUT): Undefine.
37652 (HAS_INIT_SECTION, LD_INIT_SWITCH, LD_FINI_SWITCH): Define.
37653 * pa64-hpux.h (HP_INIT_ARRAY_SECTION_ASM_OP,
37654 GNU_INIT_ARRAY_SECTION_ASM_OP, HP_FINI_ARRAY_SECTION_ASM_OP,
37655 GNU_FINI_ARRAY_SECTION_ASM_OP): Define.
37656 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Define when not using
37657 elfos.h.
37658 (EH_FRAME_IN_DATA_SECTION): Delete define.
37659 (HAS_INIT_SECTION, LD_INIT_SWITCH, LD_FINI_SWITCH): Undefine.
37660 (STARTFILE_SPEC): Use crtbegin.o.
37661 (ENDFILE_SPEC): Use crtend.o.
37662 (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION,
37663 SUPPORTS_INIT_PRIORITY, PA_CXA_FINALIZE_STUB, PA_INIT_FINI_HACK,
37664 PA_INIT_FRAME_DUMMY_ASM_OP, PA_JV_REGISTERCLASSES_STUB,
37665 DTOR_LIST_BEGIN): Define.
37666 * pa.c (TARGET_ASM_CONSTRUCTOR): Define.
37667 (pa_asm_out_constructor, pa_asm_out_destructor): New functions.
37668 * som.h (SUPPORTS_INIT_PRIORITY): Delete define.
37669
376702002-12-31 Larin Hennessy <larin@science.oregonstate.edu>
37671
37672 * fixinc/fixinc.svr4: Remove references to i860, Sony NewsOS, and spur.
37673 * fixinc/inclhack.def: Remove tests for Apple A/UX, ARM/RISCiX, DG/UX,
37674 m88k-*-sysv3*, Sony NewsOS. Remove references to i860.
37675 Cleanup handling of replacement text.
37676 * fixinc/mkfixinc.sh: Remove reference to i?86-*-osf1*
37677
376782003-01-04 Bruce Korb <bkorb@gnu.org>
37679
37680 * fixinc/tests/base/math.h: removed obsolete results
37681 * fixinc/tests/base/stdlib.h: ditto
37682 * fixinc/tests/base/sys/param.h: ditto
37683 * fixinc/tests/base/sys/stat.h: ditto
37684 * fixinc/tests/base/time.h: ditto
37685 * fixinc/tests/base/X11/Intrinsic.h: removed obsolete file
37686 * fixinc/tests/base/sys/byteorder.h: ditto
37687 * fixinc/inclhack.def: Remove superfluous backslashes
37688
376892003-01-04 Kazu Hirata <kazu@cs.umass.edu>
37690
37691 * config/h8300/h8300-protos.h: Add prototypes for
37692 the new functions defined below.
37693 * config/h8300/h8300.c (TARGET_ASM_FUNCTION_PROLOGUE): Do not
37694 define.
37695 (dosize): Emit RTL instead of assembly code.
37696 (push): Likewise.
37697 (pop): Likewise.
37698 (h8300_output_function_prologue): Remove.
37699 (h8300_expand_prologue): New.
37700 (h8300_expand_epilogue): New.
37701 (h8300_output_function_epilogue): Do only the reset of
37702 pragma_saveall.
37703 * config/h8300/h8300.md (push_h8300): New.
37704 (push_h8300hs): Likewise.
37705 (pop_h8300): Likewise.
37706 (pop_h8300hs): Likewise.
37707 (*stm_h8300s_2): Change the name to stm_h8300s_2.
37708 (*stm_h8300s_3): Change the name to stm_h8300s_3.
37709 (*stm_h8300s_4): Change the name to stm_h8300s_4.
37710 (*ldm_h8300s_2): New.
37711 (*ldm_h8300s_3): Likewise.
37712 (*ldm_h8300s_4): Likewise.
37713 (return): Likewise.
37714 (*return_1): Likewise.
37715 (prologue): Likewise.
37716 (epilogue): Likewise.
37717 (monitor_prologue): Likewise.
37718
377192003-01-03 Dale Johannesen <dalej@apple.com>
37720
37721 * config/darwin.h: (EXTRA_SECTIONS): Add machopic_symbol_stub1,
37722 machopic_picsymbol_stub1.
37723 (EXTRA_SECTION_FUNCTIONS): Ditto.
37724 * rs6000/rs6000.c: Update copyright.
37725 (machopic_output_stub): Use them. Remove an insn from stub code.
37726
377272003-01-02 Jason Merrill <jason@redhat.com>
37728
37729 * fold-const.c (fold) [COND_EXPR]: Avoid NOP_EXPRs better.
37730
37731 * integrate.c (copy_decl_for_inlining): Don't clear the rtl for
37732 static/external decls.
37733
37734 * c-common.c (finish_fname_decls): Put the DECL_STMTs inside the
37735 outermost scope.
37736 * c-decl.c (c_make_fname_decl): Push the decls there, too.
37737
377382003-01-03 Kazu Hirata <kazu@cs.umass.edu>
37739
37740 * config/h8300/h8300-protos.h: Add a prototype for
37741 h8300_current_function_interrupt_function_p.
37742 * config/h8300/h8300.c (interrupt_handler): Remove.
37743 (os_task): Likewise.
37744 (monitor): Likewise.
37745 (pragma_interrupt): New.
37746 (WORD_REG_USED): Use
37747 h8300_current_function_interrupt_function_p.
37748 (dosize): Likewise.
37749 (h8300_output_function_prologue): Likewise.
37750 Do not set interrupt_handler, os_task, monitor.
37751 (h8300_output_function_prologue): Use
37752 h8300_current_function_interrupt_function_p.
37753 Do not set interrupt_handler, os_task, monitor.
37754 (h8300_current_function_interrupt_function_p): New.
37755 (h8300_pr_interrupt): Set pragma_interrupt.
37756 (h8300_insert_attributes): Reset pragma_interrupt.
37757
377582003-01-03 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
37759
37760 * doc/install.texi (Configuration): Fix markup for reference to
37761 gcc/config.gcc.
37762
377632003-01-02 Kazu Hirata <kazu@cs.umass.edu>
37764
37765 * config/h8300/h8300.md (*iorhi3_zext): Relax the condition.
37766 (*iorhi3_two_qi): Likewise.
37767 (*iorsi3_zexthi): Likewise.
37768 (*xorhi3_zextqi): Likewise.
37769 (*xorsi3_zexthi): Likewise.
37770 (*xorsi3_zextqi): Likewise.
37771
377722003-01-02 Kazu Hirata <kazu@cs.umass.edu>
37773
37774 * config/h8300/h8300.c (stack_pointer_operand): New.
37775 (const_int_gt_2_operand): Likewise.
37776 (const_int_ge_8_operand): Likewise.
37777 * config/h8300/h8300.md (a splitter): Likewise.
37778 (a peephole2): Likewise.
37779 * config/h8300/h8300-protos.h: Add prototypes for the new
37780 functions above.
37781
377822003-01-02 Steven Bosscher <s.bosscher@student.tudelft.nl>
37783
37784 * objc/Make-lang.in, objc/config-lang.in, objc/lang-specs.h,
37785 objc/objc-act.h: Fix copyright years.
37786
377872003-01-02 Steven Bosscher <s.bosscher@student.tudelft.nl>
37788
37789 * doc/passes.texi: Fix documentation for -fssa-ccp
37790
377912003-01-02 Neil Booth <neil@daikokuya.co.uk>
37792
37793 * gccbug.in: Update for new categories.
37794
377952003-01-01 Kazu Hirata <kazu@cs.umass.edu>
37796
37797 * config/h8300/h8300.md: Reorder some patterns.
37798
377992003-01-01 Kazu Hirata <kazu@cs.umass.edu>
37800
37801 * config/h8300/h8300.c (output_logical_op): Fix a warning.
37802
378032003-01-01 Neil Booth <neil@daikokuya.co.uk>
37804
37805 * config/darwin-protos.h, config/c4x/c4x-protos.h,
37806 config/cris/cris-protos.h, config/i370/i370-protos.h,
37807 config/i960/i960-protos.h, config/ia64/ia64-protos.h,
37808 config/v850/v850-protos.h: Use struct, and don't conditionally
37809 compile on GCC_C_PRAGMA_H.
37810
378112003-01-01 Kazu Hirata <kazu@cs.umass.edu>
37812
37813 * config/arm/arm-protos.h: Remove #ifdef GCC_C_PRAGMA_H.
37814 * config/h8300/h8300-protos.h: Likewise.
37815 * config/sh/sh-protos.h: Likewise.
37816
378172003-01-01 Kazu Hirata <kazu@cs.umass.edu>
37818
37819 * config/arm/arm-protos.h: Use struct cpp_reader instead of
37820 cpp_reader.
37821 * config/h8300/h8300-protos.h: Likewise.
37822 * config/sh/sh-protos.h: Likewise.
37823
378242003-01-01 Neil Booth <neil@daikokuya.co.uk>
37825
37826 * config/arm/arm.c (arm_pr_long_calls, arm_pr_no_long_calls,
37827 arm_pr_long_calls_off): Use struct.
37828 * config/h8300/h8300.c (h8300_pr-interrupt, h8300_pr_saveall)
37829 : Similarly.
37830 Don't include cpplib.h.
37831 * config/sh/sh.c (sh_pr_interrupt, sh_pr_trapa,
37832 sh_pr_nosave_low_regs): Similarly.
37833
378342003-01-01 Kazu Hirata <kazu@cs.umass.edu>
37835
37836 * config/h8300/h8300.c: Include cpplib.h.
37837
378382003-01-01 Steven Bosscher <s.bosscher@student.tudelft.nl>
37839
37840 * objc/Make-lang.in, objc/config-lang.in, objc/lang-options.h,
37841 objc/lang-specs.h, objc/objc-act.c, objc/objc-act.h,
37842 objc/objc-lang.c, objc/objc-tree.def: Replace "GNU CC" with
37843 "GCC" in the copyright header.
37844
378452003-01-01 Neil Booth <neil@daikokuya.co.uk>
37846
37847 * c-pragma.c (c_register_pragma): New.
37848 (init_pragma): Use it.
37849 * c-pragma.h (cpp_register_pragma): Don't declare.
37850 (c_register_pragma): New.
37851 * cpplib.h: Remove #ifdef GCC_C_PRAGMA_H.
37852 * config/darwin.h (REGISTER_TARGET_PRAGMAS): Update.
37853 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS): Update.
37854 * config/c4x/c4x.h (REGISTER_TARGET_PRAGMAS): Update.
37855 * config/h8300/h8300.h (REGISTER_TARGET_PRAGMAS): Update.
37856 * config/i370/i370.h (REGISTER_TARGET_PRAGMAS): Update.
37857 * config/i960/i960.h (REGISTER_TARGET_PRAGMAS): Update.
37858 * config/ia64/hpux.h (REGISTER_TARGET_PRAGMAS): Update.
37859 * config/rs6000/rs6000.h (REGISTER_TARGET_PRAGMAS): Update.
37860 * config/sh/sh.h (REGISTER_TARGET_PRAGMAS): Update.
37861 * config/v850/v850.h (REGISTER_TARGET_PRAGMAS): Update.
37862 * doc/tm.texi (REGISTER_TARGET_PRAGMAS): Update
ad41bd84
JM
37863
37864\f
37865Copyright (C) 2003 Free Software Foundation, Inc.
37866
37867Copying and distribution of this file, with or without modification,
37868are permitted in any medium without royalty provided the copyright
37869notice and this notice are preserved.